]> git.saurik.com Git - wxWidgets.git/blame - configure
removed #ifdef wxTopLevelWindowNative -- it's now defined for all ports
[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;}
a848cd7e
SC
2127esac
2128
2129
2130
2131
2132 wx_arg_cache_file="configarg.cache"
2133 echo "loading argument cache $wx_arg_cache_file"
2134 rm -f ${wx_arg_cache_file}.tmp
2135 touch ${wx_arg_cache_file}.tmp
2136 touch ${wx_arg_cache_file}
2137
2138
2139DEBUG_CONFIGURE=0
2140if test $DEBUG_CONFIGURE = 1; then
2141 DEFAULT_wxUSE_UNIVERSAL=no
2142 DEFAULT_wxUSE_STL=no
2143
2144 DEFAULT_wxUSE_NANOX=no
2145
2146 DEFAULT_wxUSE_THREADS=yes
2147
2148 DEFAULT_wxUSE_SHARED=yes
2149 DEFAULT_wxUSE_OPTIMISE=no
2150 DEFAULT_wxUSE_PROFILE=no
2151 DEFAULT_wxUSE_NO_DEPS=no
2152 DEFAULT_wxUSE_NO_RTTI=no
2153 DEFAULT_wxUSE_NO_EXCEPTIONS=no
7afc46ab 2154 DEFAULT_wxUSE_UNIVERSAL_BINARY=no
ffa0583f 2155 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2156 DEFAULT_wxUSE_PERMISSIVE=no
2157 DEFAULT_wxUSE_DEBUG_FLAG=yes
2158 DEFAULT_wxUSE_DEBUG_INFO=yes
2159 DEFAULT_wxUSE_DEBUG_GDB=yes
2160 DEFAULT_wxUSE_MEM_TRACING=no
2161 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2162 DEFAULT_wxUSE_DMALLOC=no
2163 DEFAULT_wxUSE_APPLE_IEEE=no
2164
2165 DEFAULT_wxUSE_EXCEPTIONS=no
2166 DEFAULT_wxUSE_LOG=yes
2167 DEFAULT_wxUSE_LOGWINDOW=no
2168 DEFAULT_wxUSE_LOGGUI=no
2169 DEFAULT_wxUSE_LOGDIALOG=no
2170
2171 DEFAULT_wxUSE_GUI=yes
2172 DEFAULT_wxUSE_CONTROLS=no
2173
2174 DEFAULT_wxUSE_REGEX=no
2175 DEFAULT_wxUSE_XML=no
2176 DEFAULT_wxUSE_EXPAT=no
2177 DEFAULT_wxUSE_ZLIB=no
2178 DEFAULT_wxUSE_LIBPNG=no
2179 DEFAULT_wxUSE_LIBJPEG=no
2180 DEFAULT_wxUSE_LIBTIFF=no
2181 DEFAULT_wxUSE_LIBXPM=no
2182 DEFAULT_wxUSE_LIBMSPACK=no
2183 DEFAULT_wxUSE_LIBSDL=no
d1c38808 2184 DEFAULT_wxUSE_LIBGNOMEPRINT=no
2b850ae1 2185 DEFAULT_wxUSE_LIBGNOMEVFS=no
3565d135 2186 DEFAULT_wxUSE_LIBHILDON=no
a848cd7e
SC
2187 DEFAULT_wxUSE_ODBC=no
2188 DEFAULT_wxUSE_OPENGL=no
2189
2190 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
eaff0f0d 2191 DEFAULT_wxUSE_STACKWALKER=no
36b6448c 2192 DEFAULT_wxUSE_DEBUGREPORT=no
a848cd7e
SC
2193 DEFAULT_wxUSE_SNGLINST_CHECKER=no
2194 DEFAULT_wxUSE_STD_IOSTREAM=no
59746b65 2195 DEFAULT_wxUSE_STD_STRING=no
a848cd7e
SC
2196 DEFAULT_wxUSE_CMDLINE_PARSER=no
2197 DEFAULT_wxUSE_DATETIME=no
2198 DEFAULT_wxUSE_TIMER=no
2199 DEFAULT_wxUSE_STOPWATCH=no
2200 DEFAULT_wxUSE_FILE=no
2201 DEFAULT_wxUSE_FFILE=no
07158944 2202 DEFAULT_wxUSE_STDPATHS=no
a848cd7e
SC
2203 DEFAULT_wxUSE_TEXTBUFFER=no
2204 DEFAULT_wxUSE_TEXTFILE=no
2205 DEFAULT_wxUSE_SOUND=no
3b57de8b 2206 DEFAULT_wxUSE_MEDIACTRL=no
f10e38c4 2207 DEFAULT_wxUSE_GSTREAMER8=no
8f3773fd 2208 DEFAULT_wxUSE_PRINTF_POS_PARAMS=no
a848cd7e
SC
2209 DEFAULT_wxUSE_INTL=no
2210 DEFAULT_wxUSE_CONFIG=no
2211 DEFAULT_wxUSE_FONTMAP=no
2212 DEFAULT_wxUSE_STREAMS=no
2213 DEFAULT_wxUSE_SOCKETS=no
2214 DEFAULT_wxUSE_OLE=no
2215 DEFAULT_wxUSE_DATAOBJ=no
2216 DEFAULT_wxUSE_DIALUP_MANAGER=no
2217 DEFAULT_wxUSE_JOYSTICK=no
2218 DEFAULT_wxUSE_DYNLIB_CLASS=no
2219 DEFAULT_wxUSE_DYNAMIC_LOADER=no
2220 DEFAULT_wxUSE_LONGLONG=no
2221 DEFAULT_wxUSE_GEOMETRY=no
2222
2223 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2224 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2225 DEFAULT_wxUSE_POSTSCRIPT=no
2226
2227 DEFAULT_wxUSE_CLIPBOARD=no
2228 DEFAULT_wxUSE_TOOLTIPS=no
2229 DEFAULT_wxUSE_DRAG_AND_DROP=no
2230 DEFAULT_wxUSE_DRAGIMAGE=no
2231 DEFAULT_wxUSE_SPLINES=no
fbe2ca43 2232 DEFAULT_wxUSE_MOUSEWHEEL=no
a848cd7e 2233
8a7b1113 2234 DEFAULT_wxUSE_MDI=no
a848cd7e
SC
2235 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2236 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2237 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2238
2239 DEFAULT_wxUSE_RESOURCES=no
2240 DEFAULT_wxUSE_CONSTRAINTS=no
2241 DEFAULT_wxUSE_IPC=no
2242 DEFAULT_wxUSE_HELP=no
2243 DEFAULT_wxUSE_MS_HTML_HELP=no
2244 DEFAULT_wxUSE_WXHTML_HELP=no
2245 DEFAULT_wxUSE_TREELAYOUT=no
2246 DEFAULT_wxUSE_METAFILE=no
2247 DEFAULT_wxUSE_MIMETYPE=no
2248 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2249 DEFAULT_wxUSE_PROTOCOL=no
2250 DEFAULT_wxUSE_PROTOCOL_HTTP=no
2251 DEFAULT_wxUSE_PROTOCOL_FTP=no
2252 DEFAULT_wxUSE_PROTOCOL_FILE=no
2253 DEFAULT_wxUSE_URL=no
2254
2255 DEFAULT_wxUSE_COMMONDLGS=no
2256 DEFAULT_wxUSE_CHOICEDLG=no
2257 DEFAULT_wxUSE_COLOURDLG=no
2258 DEFAULT_wxUSE_DIRDLG=no
2259 DEFAULT_wxUSE_FILEDLG=no
2260 DEFAULT_wxUSE_FINDREPLDLG=no
2261 DEFAULT_wxUSE_FONTDLG=no
2262 DEFAULT_wxUSE_MSGDLG=no
2263 DEFAULT_wxUSE_NUMBERDLG=no
2264 DEFAULT_wxUSE_TEXTDLG=no
2265 DEFAULT_wxUSE_SPLASH=no
2266 DEFAULT_wxUSE_STARTUP_TIPS=no
2267 DEFAULT_wxUSE_PROGRESSDLG=no
2268 DEFAULT_wxUSE_WIZARDDLG=no
2269
2270 DEFAULT_wxUSE_MENUS=no
2271 DEFAULT_wxUSE_MINIFRAME=no
2272 DEFAULT_wxUSE_HTML=no
91dea314 2273 DEFAULT_wxUSE_RICHTEXT=no
9a8f0513 2274 DEFAULT_wxUSE_XRC=no
3f60522a 2275 DEFAULT_wxUSE_AUI=no
646b6ec1 2276 DEFAULT_wxUSE_WEBKIT=no
a848cd7e
SC
2277 DEFAULT_wxUSE_FILESYSTEM=no
2278 DEFAULT_wxUSE_FS_INET=no
2279 DEFAULT_wxUSE_FS_ZIP=no
2280 DEFAULT_wxUSE_BUSYINFO=no
9e8e867f 2281 DEFAULT_wxUSE_ARCHIVE_STREAMS=no
a848cd7e 2282 DEFAULT_wxUSE_ZIPSTREAM=no
a848cd7e
SC
2283 DEFAULT_wxUSE_VALIDATORS=no
2284
2285 DEFAULT_wxUSE_ACCEL=no
2286 DEFAULT_wxUSE_BUTTON=no
2287 DEFAULT_wxUSE_BMPBUTTON=no
2288 DEFAULT_wxUSE_CALCTRL=no
2289 DEFAULT_wxUSE_CARET=no
2290 DEFAULT_wxUSE_CHECKBOX=no
2291 DEFAULT_wxUSE_CHECKLST=no
2292 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 2293 DEFAULT_wxUSE_CHOICEBOOK=no
e9263684 2294 DEFAULT_wxUSE_COLOURPICKERCTRL=no
a848cd7e 2295 DEFAULT_wxUSE_COMBOBOX=no
a57d600f 2296 DEFAULT_wxUSE_COMBOCTRL=no
da98e9be 2297 DEFAULT_wxUSE_DATEPICKCTRL=no
a848cd7e 2298 DEFAULT_wxUSE_DISPLAY=no
e9263684
VZ
2299 DEFAULT_wxUSE_DIRPICKERCTRL=no
2300 DEFAULT_wxUSE_FILEPICKERCTRL=no
2301 DEFAULT_wxUSE_FONTPICKERCTRL=no
a848cd7e
SC
2302 DEFAULT_wxUSE_GAUGE=no
2303 DEFAULT_wxUSE_GRID=no
6954625c 2304 DEFAULT_wxUSE_HYPERLINKCTRL=no
20e34ecc 2305 DEFAULT_wxUSE_DATAVIEWCTRL=no
a848cd7e
SC
2306 DEFAULT_wxUSE_IMAGLIST=no
2307 DEFAULT_wxUSE_LISTBOOK=no
2308 DEFAULT_wxUSE_LISTBOX=no
2309 DEFAULT_wxUSE_LISTCTRL=no
2310 DEFAULT_wxUSE_NOTEBOOK=no
a57d600f 2311 DEFAULT_wxUSE_ODCOMBOBOX=no
a848cd7e
SC
2312 DEFAULT_wxUSE_RADIOBOX=no
2313 DEFAULT_wxUSE_RADIOBTN=no
2314 DEFAULT_wxUSE_SASH=no
2315 DEFAULT_wxUSE_SCROLLBAR=no
2316 DEFAULT_wxUSE_SLIDER=no
2317 DEFAULT_wxUSE_SPINBTN=no
2318 DEFAULT_wxUSE_SPINCTRL=no
2319 DEFAULT_wxUSE_SPLITTER=no
2320 DEFAULT_wxUSE_STATBMP=no
2321 DEFAULT_wxUSE_STATBOX=no
2322 DEFAULT_wxUSE_STATLINE=no
2323 DEFAULT_wxUSE_STATTEXT=no
2324 DEFAULT_wxUSE_STATUSBAR=yes
f10e38c4 2325 DEFAULT_wxUSE_TAB_DIALOG=no
a848cd7e
SC
2326 DEFAULT_wxUSE_TEXTCTRL=no
2327 DEFAULT_wxUSE_TOGGLEBTN=no
2328 DEFAULT_wxUSE_TOOLBAR=no
2329 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
2330 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
0093c2fc 2331 DEFAULT_wxUSE_TREEBOOK=no
5ec3bc43 2332 DEFAULT_wxUSE_TOOLBOOK=no
a848cd7e
SC
2333 DEFAULT_wxUSE_TREECTRL=no
2334 DEFAULT_wxUSE_POPUPWIN=no
2335 DEFAULT_wxUSE_TIPWINDOW=no
2336
2337 DEFAULT_wxUSE_UNICODE=no
2338 DEFAULT_wxUSE_UNICODE_MSLU=no
2339 DEFAULT_wxUSE_WCSRTOMBS=no
2340
2341 DEFAULT_wxUSE_PALETTE=no
2342 DEFAULT_wxUSE_IMAGE=no
2343 DEFAULT_wxUSE_GIF=no
2344 DEFAULT_wxUSE_PCX=no
2345 DEFAULT_wxUSE_PNM=no
2346 DEFAULT_wxUSE_IFF=no
2347 DEFAULT_wxUSE_XPM=no
2348 DEFAULT_wxUSE_ICO_CUR=no
2349 DEFAULT_wxUSE_ACCESSIBILITY=no
2350
2351 DEFAULT_wxUSE_MONOLITHIC=no
2352 DEFAULT_wxUSE_PLUGINS=no
2353 DEFAULT_wxUSE_OFFICIAL_BUILD=no
2354else
2355 DEFAULT_wxUSE_UNIVERSAL=no
2356 DEFAULT_wxUSE_STL=no
2357
2358 DEFAULT_wxUSE_NANOX=no
2359
2360 DEFAULT_wxUSE_THREADS=yes
2361
2362 DEFAULT_wxUSE_SHARED=yes
2363 DEFAULT_wxUSE_OPTIMISE=yes
2364 DEFAULT_wxUSE_PROFILE=no
2365 DEFAULT_wxUSE_NO_DEPS=no
2366 DEFAULT_wxUSE_NO_RTTI=no
2367 DEFAULT_wxUSE_NO_EXCEPTIONS=no
7afc46ab 2368 DEFAULT_wxUSE_UNIVERSAL_BINARY=no
ffa0583f 2369 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2370 DEFAULT_wxUSE_PERMISSIVE=no
2371 DEFAULT_wxUSE_DEBUG_FLAG=no
2372 DEFAULT_wxUSE_DEBUG_INFO=no
2373 DEFAULT_wxUSE_DEBUG_GDB=no
2374 DEFAULT_wxUSE_MEM_TRACING=no
2375 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2376 DEFAULT_wxUSE_DMALLOC=no
2377 DEFAULT_wxUSE_APPLE_IEEE=yes
2378
2379 DEFAULT_wxUSE_EXCEPTIONS=yes
2380 DEFAULT_wxUSE_LOG=yes
2381 DEFAULT_wxUSE_LOGWINDOW=yes
2382 DEFAULT_wxUSE_LOGGUI=yes
2383 DEFAULT_wxUSE_LOGDIALOG=yes
2384
2385 DEFAULT_wxUSE_GUI=yes
2386
2387 DEFAULT_wxUSE_REGEX=yes
2388 DEFAULT_wxUSE_XML=yes
2389 DEFAULT_wxUSE_EXPAT=yes
2390 DEFAULT_wxUSE_ZLIB=yes
2391 DEFAULT_wxUSE_LIBPNG=yes
2392 DEFAULT_wxUSE_LIBJPEG=yes
2393 DEFAULT_wxUSE_LIBTIFF=yes
2394 DEFAULT_wxUSE_LIBXPM=yes
2395 DEFAULT_wxUSE_LIBMSPACK=yes
2396 DEFAULT_wxUSE_LIBSDL=no
a03b8b04 2397 DEFAULT_wxUSE_LIBGNOMEPRINT=no
2b850ae1 2398 DEFAULT_wxUSE_LIBGNOMEVFS=no
3565d135 2399 DEFAULT_wxUSE_LIBHILDON=no
a848cd7e 2400 DEFAULT_wxUSE_ODBC=no
52cb607e 2401 DEFAULT_wxUSE_OPENGL=no
a848cd7e
SC
2402
2403 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
eaff0f0d 2404 DEFAULT_wxUSE_STACKWALKER=yes
6671c68b 2405 DEFAULT_wxUSE_DEBUGREPORT=yes
a848cd7e 2406 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
a03b8b04
RD
2407 DEFAULT_wxUSE_STD_IOSTREAM=$DEFAULT_STD_FLAG
2408 DEFAULT_wxUSE_STD_STRING=$DEFAULT_STD_FLAG
a848cd7e
SC
2409 DEFAULT_wxUSE_CMDLINE_PARSER=yes
2410 DEFAULT_wxUSE_DATETIME=yes
2411 DEFAULT_wxUSE_TIMER=yes
2412 DEFAULT_wxUSE_STOPWATCH=yes
2413 DEFAULT_wxUSE_FILE=yes
2414 DEFAULT_wxUSE_FFILE=yes
07158944 2415 DEFAULT_wxUSE_STDPATHS=yes
a848cd7e
SC
2416 DEFAULT_wxUSE_TEXTBUFFER=yes
2417 DEFAULT_wxUSE_TEXTFILE=yes
2418 DEFAULT_wxUSE_SOUND=yes
3b57de8b 2419 DEFAULT_wxUSE_MEDIACTRL=no
f10e38c4 2420 DEFAULT_wxUSE_GSTREAMER8=no
8f3773fd 2421 DEFAULT_wxUSE_PRINTF_POS_PARAMS=no
a848cd7e
SC
2422 DEFAULT_wxUSE_INTL=yes
2423 DEFAULT_wxUSE_CONFIG=yes
2424 DEFAULT_wxUSE_FONTMAP=yes
2425 DEFAULT_wxUSE_STREAMS=yes
2426 DEFAULT_wxUSE_SOCKETS=yes
2427 DEFAULT_wxUSE_OLE=yes
2428 DEFAULT_wxUSE_DATAOBJ=yes
2429 DEFAULT_wxUSE_DIALUP_MANAGER=yes
2430 DEFAULT_wxUSE_JOYSTICK=yes
2431 DEFAULT_wxUSE_DYNLIB_CLASS=yes
2432 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
2433 DEFAULT_wxUSE_LONGLONG=yes
2434 DEFAULT_wxUSE_GEOMETRY=yes
2435
2436 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2437 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2438 DEFAULT_wxUSE_POSTSCRIPT=yes
2439
2440 DEFAULT_wxUSE_CLIPBOARD=yes
2441 DEFAULT_wxUSE_TOOLTIPS=yes
2442 DEFAULT_wxUSE_DRAG_AND_DROP=yes
2443 DEFAULT_wxUSE_DRAGIMAGE=yes
2444 DEFAULT_wxUSE_SPLINES=yes
fbe2ca43 2445 DEFAULT_wxUSE_MOUSEWHEEL=yes
a848cd7e 2446
8a7b1113 2447 DEFAULT_wxUSE_MDI=yes
a848cd7e
SC
2448 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2449 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2450 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2451
2452 DEFAULT_wxUSE_RESOURCES=no
2453 DEFAULT_wxUSE_CONSTRAINTS=yes
2454 DEFAULT_wxUSE_IPC=yes
2455 DEFAULT_wxUSE_HELP=yes
2456 DEFAULT_wxUSE_MS_HTML_HELP=yes
2457 DEFAULT_wxUSE_WXHTML_HELP=yes
2458 DEFAULT_wxUSE_TREELAYOUT=yes
2459 DEFAULT_wxUSE_METAFILE=yes
2460 DEFAULT_wxUSE_MIMETYPE=yes
2461 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
2462 DEFAULT_wxUSE_PROTOCOL=yes
2463 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2464 DEFAULT_wxUSE_PROTOCOL_FTP=yes
2465 DEFAULT_wxUSE_PROTOCOL_FILE=yes
2466 DEFAULT_wxUSE_URL=yes
2467
2468 DEFAULT_wxUSE_COMMONDLGS=yes
2469 DEFAULT_wxUSE_CHOICEDLG=yes
2470 DEFAULT_wxUSE_COLOURDLG=yes
2471 DEFAULT_wxUSE_DIRDLG=yes
2472 DEFAULT_wxUSE_FILEDLG=yes
2473 DEFAULT_wxUSE_FINDREPLDLG=yes
2474 DEFAULT_wxUSE_FONTDLG=yes
2475 DEFAULT_wxUSE_MSGDLG=yes
2476 DEFAULT_wxUSE_NUMBERDLG=yes
2477 DEFAULT_wxUSE_TEXTDLG=yes
2478 DEFAULT_wxUSE_SPLASH=yes
2479 DEFAULT_wxUSE_STARTUP_TIPS=yes
2480 DEFAULT_wxUSE_PROGRESSDLG=yes
2481 DEFAULT_wxUSE_WIZARDDLG=yes
2482
2483 DEFAULT_wxUSE_MENUS=yes
2484 DEFAULT_wxUSE_MINIFRAME=yes
2485 DEFAULT_wxUSE_HTML=yes
91dea314 2486 DEFAULT_wxUSE_RICHTEXT=yes
9a8f0513 2487 DEFAULT_wxUSE_XRC=yes
3f60522a 2488 DEFAULT_wxUSE_AUI=yes
646b6ec1 2489 DEFAULT_wxUSE_WEBKIT=yes
a848cd7e
SC
2490 DEFAULT_wxUSE_FILESYSTEM=yes
2491 DEFAULT_wxUSE_FS_INET=yes
2492 DEFAULT_wxUSE_FS_ZIP=yes
2493 DEFAULT_wxUSE_BUSYINFO=yes
9e8e867f 2494 DEFAULT_wxUSE_ARCHIVE_STREAMS=yes
a848cd7e 2495 DEFAULT_wxUSE_ZIPSTREAM=yes
a848cd7e
SC
2496 DEFAULT_wxUSE_VALIDATORS=yes
2497
2498 DEFAULT_wxUSE_ACCEL=yes
2499 DEFAULT_wxUSE_BUTTON=yes
2500 DEFAULT_wxUSE_BMPBUTTON=yes
2501 DEFAULT_wxUSE_CALCTRL=yes
2502 DEFAULT_wxUSE_CARET=yes
2503 DEFAULT_wxUSE_CHECKBOX=yes
2504 DEFAULT_wxUSE_CHECKLST=yes
2505 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 2506 DEFAULT_wxUSE_CHOICEBOOK=yes
e9263684 2507 DEFAULT_wxUSE_COLOURPICKERCTRL=yes
a848cd7e 2508 DEFAULT_wxUSE_COMBOBOX=yes
a57d600f 2509 DEFAULT_wxUSE_COMBOCTRL=yes
da98e9be 2510 DEFAULT_wxUSE_DATEPICKCTRL=yes
a848cd7e 2511 DEFAULT_wxUSE_DISPLAY=yes
e9263684
VZ
2512 DEFAULT_wxUSE_DIRPICKERCTRL=yes
2513 DEFAULT_wxUSE_FILEPICKERCTRL=yes
2514 DEFAULT_wxUSE_FONTPICKERCTRL=yes
a848cd7e
SC
2515 DEFAULT_wxUSE_GAUGE=yes
2516 DEFAULT_wxUSE_GRID=yes
6954625c 2517 DEFAULT_wxUSE_HYPERLINKCTRL=yes
20e34ecc 2518 DEFAULT_wxUSE_DATAVIEWCTRL=no
a848cd7e
SC
2519 DEFAULT_wxUSE_IMAGLIST=yes
2520 DEFAULT_wxUSE_LISTBOOK=yes
2521 DEFAULT_wxUSE_LISTBOX=yes
2522 DEFAULT_wxUSE_LISTCTRL=yes
2523 DEFAULT_wxUSE_NOTEBOOK=yes
a57d600f 2524 DEFAULT_wxUSE_ODCOMBOBOX=yes
a848cd7e
SC
2525 DEFAULT_wxUSE_RADIOBOX=yes
2526 DEFAULT_wxUSE_RADIOBTN=yes
2527 DEFAULT_wxUSE_SASH=yes
2528 DEFAULT_wxUSE_SCROLLBAR=yes
2529 DEFAULT_wxUSE_SLIDER=yes
2530 DEFAULT_wxUSE_SPINBTN=yes
2531 DEFAULT_wxUSE_SPINCTRL=yes
2532 DEFAULT_wxUSE_SPLITTER=yes
2533 DEFAULT_wxUSE_STATBMP=yes
2534 DEFAULT_wxUSE_STATBOX=yes
2535 DEFAULT_wxUSE_STATLINE=yes
2536 DEFAULT_wxUSE_STATTEXT=yes
2537 DEFAULT_wxUSE_STATUSBAR=yes
f10e38c4 2538 DEFAULT_wxUSE_TAB_DIALOG=no
a848cd7e
SC
2539 DEFAULT_wxUSE_TEXTCTRL=yes
2540 DEFAULT_wxUSE_TOGGLEBTN=yes
2541 DEFAULT_wxUSE_TOOLBAR=yes
2542 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
2543 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
0093c2fc 2544 DEFAULT_wxUSE_TREEBOOK=yes
5ec3bc43 2545 DEFAULT_wxUSE_TOOLBOOK=yes
a848cd7e
SC
2546 DEFAULT_wxUSE_TREECTRL=yes
2547 DEFAULT_wxUSE_POPUPWIN=yes
2548 DEFAULT_wxUSE_TIPWINDOW=yes
2549
78de529b 2550 DEFAULT_wxUSE_UNICODE=no
a848cd7e
SC
2551 DEFAULT_wxUSE_UNICODE_MSLU=yes
2552 DEFAULT_wxUSE_WCSRTOMBS=no
2553
2554 DEFAULT_wxUSE_PALETTE=yes
2555 DEFAULT_wxUSE_IMAGE=yes
2556 DEFAULT_wxUSE_GIF=yes
2557 DEFAULT_wxUSE_PCX=yes
2558 DEFAULT_wxUSE_IFF=no
2559 DEFAULT_wxUSE_PNM=yes
2560 DEFAULT_wxUSE_XPM=yes
2561 DEFAULT_wxUSE_ICO_CUR=yes
2562 DEFAULT_wxUSE_ACCESSIBILITY=no
2563
2564 DEFAULT_wxUSE_MONOLITHIC=no
2565 DEFAULT_wxUSE_PLUGINS=no
2566 DEFAULT_wxUSE_OFFICIAL_BUILD=no
9f45f08e 2567
f34ca037 2568 DEFAULT_wxUSE_GTK2=yes
a848cd7e
SC
2569fi
2570
2571
2572
f34ca037 2573
a848cd7e
SC
2574for toolkit in `echo $ALL_TOOLKITS`; do
2575 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2576 if test "x$LINE" != "x" ; then
2577 has_toolkit_in_cache=1
2578 eval "DEFAULT_$LINE"
2579 eval "CACHE_$toolkit=1"
f34ca037
MW
2580
2581 LINE=`grep "wx${toolkit}_VERSION=" ${wx_arg_cache_file}`
2582 if test "x$LINE" != "x" ; then
2583 eval "DEFAULT_$LINE"
2584 fi
a848cd7e
SC
2585 fi
2586done
2587
2588
2589
2590 enablestring=
2591 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2592echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
2593 no_cache=0
2594 # Check whether --enable-gui or --disable-gui was given.
2595if test "${enable_gui+set}" = set; then
2596 enableval="$enable_gui"
2597
2598 if test "$enableval" = yes; then
2599 ac_cv_use_gui='wxUSE_GUI=yes'
2600 else
2601 ac_cv_use_gui='wxUSE_GUI=no'
2602 fi
2603
2604else
2605
2606 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2607 if test "x$LINE" != x ; then
2608 eval "DEFAULT_$LINE"
2609 else
2610 no_cache=1
2611 fi
2612
2613 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
2614
2615fi;
2616
2617 eval "$ac_cv_use_gui"
2618 if test "$no_cache" != 1; then
2619 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2620 fi
2621
2622 if test "$wxUSE_GUI" = yes; then
2623 echo "$as_me:$LINENO: result: yes" >&5
2624echo "${ECHO_T}yes" >&6
2625 else
2626 echo "$as_me:$LINENO: result: no" >&5
2627echo "${ECHO_T}no" >&6
2628 fi
2629
2630
2631 enablestring=
2632 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2633echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2634 no_cache=0
2635 # Check whether --enable-monolithic or --disable-monolithic was given.
2636if test "${enable_monolithic+set}" = set; then
2637 enableval="$enable_monolithic"
2638
2639 if test "$enableval" = yes; then
2640 ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2641 else
2642 ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2643 fi
2644
2645else
2646
2647 LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2648 if test "x$LINE" != x ; then
2649 eval "DEFAULT_$LINE"
2650 else
2651 no_cache=1
2652 fi
2653
2654 ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2655
2656fi;
2657
2658 eval "$ac_cv_use_monolithic"
2659 if test "$no_cache" != 1; then
2660 echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2661 fi
2662
2663 if test "$wxUSE_MONOLITHIC" = yes; then
2664 echo "$as_me:$LINENO: result: yes" >&5
2665echo "${ECHO_T}yes" >&6
2666 else
2667 echo "$as_me:$LINENO: result: no" >&5
2668echo "${ECHO_T}no" >&6
2669 fi
2670
2671
2672 enablestring=
2673 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
2674echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6
2675 no_cache=0
2676 # Check whether --enable-plugins or --disable-plugins was given.
2677if test "${enable_plugins+set}" = set; then
2678 enableval="$enable_plugins"
2679
2680 if test "$enableval" = yes; then
2681 ac_cv_use_plugins='wxUSE_PLUGINS=yes'
2682 else
2683 ac_cv_use_plugins='wxUSE_PLUGINS=no'
2684 fi
2685
2686else
2687
2688 LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}`
2689 if test "x$LINE" != x ; then
2690 eval "DEFAULT_$LINE"
2691 else
2692 no_cache=1
2693 fi
2694
2695 ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS
2696
2697fi;
2698
2699 eval "$ac_cv_use_plugins"
2700 if test "$no_cache" != 1; then
2701 echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp
2702 fi
2703
2704 if test "$wxUSE_PLUGINS" = yes; then
2705 echo "$as_me:$LINENO: result: yes" >&5
2706echo "${ECHO_T}yes" >&6
2707 else
2708 echo "$as_me:$LINENO: result: no" >&5
2709echo "${ECHO_T}no" >&6
2710 fi
2711
2712
1c14217d
VZ
2713 withstring=without
2714 echo "$as_me:$LINENO: checking for --${withstring:-with}-subdirs" >&5
2715echo $ECHO_N "checking for --${withstring:-with}-subdirs... $ECHO_C" >&6
2716 no_cache=0
2717
2718# Check whether --with-subdirs or --without-subdirs was given.
2719if test "${with_subdirs+set}" = set; then
2720 withval="$with_subdirs"
2721
2722 if test "$withval" = yes; then
2723 ac_cv_use_subdirs='wxWITH_SUBDIRS=yes'
2724 else
2725 ac_cv_use_subdirs='wxWITH_SUBDIRS=no'
2726 fi
2727
2728else
2729
2730 LINE=`grep "wxWITH_SUBDIRS" ${wx_arg_cache_file}`
2731 if test "x$LINE" != x ; then
2732 eval "DEFAULT_$LINE"
2733 else
2734 no_cache=1
2735 fi
2736
2737 ac_cv_use_subdirs='wxWITH_SUBDIRS='$DEFAULT_wxWITH_SUBDIRS
2738
2739fi;
2740
2741 eval "$ac_cv_use_subdirs"
2742 if test "$no_cache" != 1; then
2743 echo $ac_cv_use_subdirs >> ${wx_arg_cache_file}.tmp
2744 fi
2745
2746 if test "$wxWITH_SUBDIRS" = yes; then
2747 echo "$as_me:$LINENO: result: yes" >&5
2748echo "${ECHO_T}yes" >&6
2749 else
2750 echo "$as_me:$LINENO: result: no" >&5
2751echo "${ECHO_T}no" >&6
2752 fi
2753
2754
a848cd7e
SC
2755if test "$wxUSE_GUI" = "yes"; then
2756
2757
2758 enablestring=
2759 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2760echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
2761 no_cache=0
2762 # Check whether --enable-universal or --disable-universal was given.
2763if test "${enable_universal+set}" = set; then
2764 enableval="$enable_universal"
2765
2766 if test "$enableval" = yes; then
2767 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2768 else
2769 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2770 fi
2771
2772else
2773
2774 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2775 if test "x$LINE" != x ; then
2776 eval "DEFAULT_$LINE"
2777 else
2778 no_cache=1
2779 fi
2780
2781 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
2782
2783fi;
2784
2785 eval "$ac_cv_use_universal"
2786 if test "$no_cache" != 1; then
2787 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2788 fi
2789
2790 if test "$wxUSE_UNIVERSAL" = yes; then
2791 echo "$as_me:$LINENO: result: yes" >&5
2792echo "${ECHO_T}yes" >&6
2793 else
2794 echo "$as_me:$LINENO: result: no" >&5
2795echo "${ECHO_T}no" >&6
2796 fi
2797
2798
2799# Check whether --with-gtk or --without-gtk was given.
2800if test "${with_gtk+set}" = set; then
2801 withval="$with_gtk"
2802 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
2803fi;
2804
2805# Check whether --with-motif or --without-motif was given.
2806if test "${with_motif+set}" = set; then
2807 withval="$with_motif"
2808 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
2809fi;
2810
2811# Check whether --with-mac or --without-mac was given.
2812if test "${with_mac+set}" = set; then
2813 withval="$with_mac"
c228d3a4 2814 wxUSE_MAC="$withval" CACHE_MAC=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2815fi;
2816
2817# Check whether --with-cocoa or --without-cocoa was given.
2818if test "${with_cocoa+set}" = set; then
2819 withval="$with_cocoa"
c228d3a4 2820 wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2821fi;
2822
2823# Check whether --with-wine or --without-wine was given.
2824if test "${with_wine+set}" = set; then
2825 withval="$with_wine"
2826 wxUSE_WINE="$withval" CACHE_WINE=1
2827fi;
2828
2829# Check whether --with-msw or --without-msw was given.
2830if test "${with_msw+set}" = set; then
2831 withval="$with_msw"
2832 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
2833fi;
2834
2835# Check whether --with-pm or --without-pm was given.
2836if test "${with_pm+set}" = set; then
2837 withval="$with_pm"
2838 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
2839fi;
2840
2841# Check whether --with-mgl or --without-mgl was given.
2842if test "${with_mgl+set}" = set; then
2843 withval="$with_mgl"
2844 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
2845fi;
2846
2847# Check whether --with-microwin or --without-microwin was given.
2848if test "${with_microwin+set}" = set; then
2849 withval="$with_microwin"
2850 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
2851fi;
2852
2853# Check whether --with-x11 or --without-x11 was given.
2854if test "${with_x11+set}" = set; then
2855 withval="$with_x11"
2856 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
2857fi;
2858
2859 enablestring=
2860 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2861echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
2862 no_cache=0
2863 # Check whether --enable-nanox or --disable-nanox was given.
2864if test "${enable_nanox+set}" = set; then
2865 enableval="$enable_nanox"
2866
2867 if test "$enableval" = yes; then
2868 ac_cv_use_nanox='wxUSE_NANOX=yes'
2869 else
2870 ac_cv_use_nanox='wxUSE_NANOX=no'
2871 fi
2872
2873else
2874
2875 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2876 if test "x$LINE" != x ; then
2877 eval "DEFAULT_$LINE"
2878 else
2879 no_cache=1
2880 fi
2881
2882 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
2883
2884fi;
2885
2886 eval "$ac_cv_use_nanox"
2887 if test "$no_cache" != 1; then
2888 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
2889 fi
2890
2891 if test "$wxUSE_NANOX" = yes; then
2892 echo "$as_me:$LINENO: result: yes" >&5
2893echo "${ECHO_T}yes" >&6
2894 else
2895 echo "$as_me:$LINENO: result: no" >&5
2896echo "${ECHO_T}no" >&6
2897 fi
2898
2899
f34ca037
MW
2900# Check whether --enable-gtk2 or --disable-gtk2 was given.
2901if test "${enable_gtk2+set}" = set; then
2902 enableval="$enable_gtk2"
2903 wxUSE_GTK2="$enableval"
2904fi;
a848cd7e 2905
a848cd7e
SC
2906 enablestring=
2907 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
2908echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6
2909 no_cache=0
2910 # Check whether --enable-gpe or --disable-gpe was given.
2911if test "${enable_gpe+set}" = set; then
2912 enableval="$enable_gpe"
2913
2914 if test "$enableval" = yes; then
2915 ac_cv_use_gpe='wxUSE_GPE=yes'
2916 else
2917 ac_cv_use_gpe='wxUSE_GPE=no'
2918 fi
2919
2920else
2921
2922 LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}`
2923 if test "x$LINE" != x ; then
2924 eval "DEFAULT_$LINE"
2925 else
2926 no_cache=1
2927 fi
2928
2929 ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE
2930
2931fi;
2932
2933 eval "$ac_cv_use_gpe"
2934 if test "$no_cache" != 1; then
2935 echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp
2936 fi
2937
2938 if test "$wxUSE_GPE" = yes; then
2939 echo "$as_me:$LINENO: result: yes" >&5
2940echo "${ECHO_T}yes" >&6
2941 else
2942 echo "$as_me:$LINENO: result: no" >&5
2943echo "${ECHO_T}no" >&6
2944 fi
2945
2946
2947
2948 echo "$as_me:$LINENO: checking for --with-libpng" >&5
2949echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
2950 no_cache=0
2951
2952# Check whether --with-libpng or --without-libpng was given.
2953if test "${with_libpng+set}" = set; then
2954 withval="$with_libpng"
2955
2956 if test "$withval" = yes; then
2957 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
2958 elif test "$withval" = no; then
2959 ac_cv_use_libpng='wxUSE_LIBPNG=no'
2960 elif test "$withval" = sys; then
2961 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
2962 elif test "$withval" = builtin; then
2963 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
2964 else
2965 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2966echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2967 { (exit 1); exit 1; }; }
2968 fi
2969
2970else
2971
2972 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
2973 if test "x$LINE" != x ; then
2974 eval "DEFAULT_$LINE"
2975 else
2976 no_cache=1
2977 fi
2978
2979 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
2980
2981fi;
2982
2983 eval "$ac_cv_use_libpng"
2984 if test "$no_cache" != 1; then
2985 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
2986 fi
2987
2988 if test "$wxUSE_LIBPNG" = yes; then
2989 echo "$as_me:$LINENO: result: yes" >&5
2990echo "${ECHO_T}yes" >&6
2991 elif test "$wxUSE_LIBPNG" = no; then
2992 echo "$as_me:$LINENO: result: no" >&5
2993echo "${ECHO_T}no" >&6
2994 elif test "$wxUSE_LIBPNG" = sys; then
2995 echo "$as_me:$LINENO: result: system version" >&5
2996echo "${ECHO_T}system version" >&6
2997 elif test "$wxUSE_LIBPNG" = builtin; then
2998 echo "$as_me:$LINENO: result: builtin version" >&5
2999echo "${ECHO_T}builtin version" >&6
3000 else
3001 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
3002echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
3003 { (exit 1); exit 1; }; }
3004 fi
3005
3006
3007 echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
3008echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
3009 no_cache=0
3010
3011# Check whether --with-libjpeg or --without-libjpeg was given.
3012if test "${with_libjpeg+set}" = set; then
3013 withval="$with_libjpeg"
3014
3015 if test "$withval" = yes; then
3016 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
3017 elif test "$withval" = no; then
3018 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
3019 elif test "$withval" = sys; then
3020 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
3021 elif test "$withval" = builtin; then
3022 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
3023 else
3024 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
3025echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
3026 { (exit 1); exit 1; }; }
3027 fi
3028
3029else
3030
3031 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
3032 if test "x$LINE" != x ; then
3033 eval "DEFAULT_$LINE"
3034 else
3035 no_cache=1
3036 fi
3037
3038 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
3039
3040fi;
3041
3042 eval "$ac_cv_use_libjpeg"
3043 if test "$no_cache" != 1; then
3044 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
3045 fi
3046
3047 if test "$wxUSE_LIBJPEG" = yes; then
3048 echo "$as_me:$LINENO: result: yes" >&5
3049echo "${ECHO_T}yes" >&6
3050 elif test "$wxUSE_LIBJPEG" = no; then
3051 echo "$as_me:$LINENO: result: no" >&5
3052echo "${ECHO_T}no" >&6
3053 elif test "$wxUSE_LIBJPEG" = sys; then
3054 echo "$as_me:$LINENO: result: system version" >&5
3055echo "${ECHO_T}system version" >&6
3056 elif test "$wxUSE_LIBJPEG" = builtin; then
3057 echo "$as_me:$LINENO: result: builtin version" >&5
3058echo "${ECHO_T}builtin version" >&6
3059 else
3060 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
3061echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
3062 { (exit 1); exit 1; }; }
3063 fi
3064
3065
3066 echo "$as_me:$LINENO: checking for --with-libtiff" >&5
3067echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
3068 no_cache=0
3069
3070# Check whether --with-libtiff or --without-libtiff was given.
3071if test "${with_libtiff+set}" = set; then
3072 withval="$with_libtiff"
3073
3074 if test "$withval" = yes; then
3075 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
3076 elif test "$withval" = no; then
3077 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
3078 elif test "$withval" = sys; then
3079 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
3080 elif test "$withval" = builtin; then
3081 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
3082 else
3083 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
3084echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
3085 { (exit 1); exit 1; }; }
3086 fi
3087
3088else
3089
3090 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
3091 if test "x$LINE" != x ; then
3092 eval "DEFAULT_$LINE"
3093 else
3094 no_cache=1
3095 fi
3096
3097 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
3098
3099fi;
3100
3101 eval "$ac_cv_use_libtiff"
3102 if test "$no_cache" != 1; then
3103 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
3104 fi
3105
3106 if test "$wxUSE_LIBTIFF" = yes; then
3107 echo "$as_me:$LINENO: result: yes" >&5
3108echo "${ECHO_T}yes" >&6
3109 elif test "$wxUSE_LIBTIFF" = no; then
3110 echo "$as_me:$LINENO: result: no" >&5
3111echo "${ECHO_T}no" >&6
3112 elif test "$wxUSE_LIBTIFF" = sys; then
3113 echo "$as_me:$LINENO: result: system version" >&5
3114echo "${ECHO_T}system version" >&6
3115 elif test "$wxUSE_LIBTIFF" = builtin; then
3116 echo "$as_me:$LINENO: result: builtin version" >&5
3117echo "${ECHO_T}builtin version" >&6
3118 else
3119 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
3120echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
3121 { (exit 1); exit 1; }; }
3122 fi
3123
3124
3125 echo "$as_me:$LINENO: checking for --with-libxpm" >&5
3126echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6
3127 no_cache=0
3128
3129# Check whether --with-libxpm or --without-libxpm was given.
3130if test "${with_libxpm+set}" = set; then
3131 withval="$with_libxpm"
3132
3133 if test "$withval" = yes; then
3134 ac_cv_use_libxpm='wxUSE_LIBXPM=yes'
3135 elif test "$withval" = no; then
3136 ac_cv_use_libxpm='wxUSE_LIBXPM=no'
3137 elif test "$withval" = sys; then
3138 ac_cv_use_libxpm='wxUSE_LIBXPM=sys'
3139 elif test "$withval" = builtin; then
3140 ac_cv_use_libxpm='wxUSE_LIBXPM=builtin'
3141 else
3142 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3143echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3144 { (exit 1); exit 1; }; }
3145 fi
3146
3147else
3148
3149 LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}`
3150 if test "x$LINE" != x ; then
3151 eval "DEFAULT_$LINE"
3152 else
3153 no_cache=1
3154 fi
3155
3156 ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM
3157
3158fi;
3159
3160 eval "$ac_cv_use_libxpm"
3161 if test "$no_cache" != 1; then
3162 echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp
3163 fi
3164
3165 if test "$wxUSE_LIBXPM" = yes; then
3166 echo "$as_me:$LINENO: result: yes" >&5
3167echo "${ECHO_T}yes" >&6
3168 elif test "$wxUSE_LIBXPM" = no; then
3169 echo "$as_me:$LINENO: result: no" >&5
3170echo "${ECHO_T}no" >&6
3171 elif test "$wxUSE_LIBXPM" = sys; then
3172 echo "$as_me:$LINENO: result: system version" >&5
3173echo "${ECHO_T}system version" >&6
3174 elif test "$wxUSE_LIBXPM" = builtin; then
3175 echo "$as_me:$LINENO: result: builtin version" >&5
3176echo "${ECHO_T}builtin version" >&6
3177 else
3178 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3179echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3180 { (exit 1); exit 1; }; }
3181 fi
3182
3183
1c14217d
VZ
3184 withstring=
3185 echo "$as_me:$LINENO: checking for --${withstring:-with}-libmspack" >&5
3186echo $ECHO_N "checking for --${withstring:-with}-libmspack... $ECHO_C" >&6
a848cd7e
SC
3187 no_cache=0
3188
3189# Check whether --with-libmspack or --without-libmspack was given.
3190if test "${with_libmspack+set}" = set; then
3191 withval="$with_libmspack"
3192
3193 if test "$withval" = yes; then
3194 ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
3195 else
3196 ac_cv_use_libmspack='wxUSE_LIBMSPACK=no'
3197 fi
3198
3199else
3200
3201 LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}`
3202 if test "x$LINE" != x ; then
3203 eval "DEFAULT_$LINE"
3204 else
3205 no_cache=1
3206 fi
3207
3208 ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK
3209
3210fi;
3211
3212 eval "$ac_cv_use_libmspack"
3213 if test "$no_cache" != 1; then
3214 echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp
3215 fi
3216
3217 if test "$wxUSE_LIBMSPACK" = yes; then
3218 echo "$as_me:$LINENO: result: yes" >&5
3219echo "${ECHO_T}yes" >&6
3220 else
3221 echo "$as_me:$LINENO: result: no" >&5
3222echo "${ECHO_T}no" >&6
3223 fi
3224
3225
1c14217d
VZ
3226 withstring=
3227 echo "$as_me:$LINENO: checking for --${withstring:-with}-sdl" >&5
3228echo $ECHO_N "checking for --${withstring:-with}-sdl... $ECHO_C" >&6
a848cd7e
SC
3229 no_cache=0
3230
3231# Check whether --with-sdl or --without-sdl was given.
3232if test "${with_sdl+set}" = set; then
3233 withval="$with_sdl"
3234
3235 if test "$withval" = yes; then
3236 ac_cv_use_sdl='wxUSE_LIBSDL=yes'
3237 else
3238 ac_cv_use_sdl='wxUSE_LIBSDL=no'
3239 fi
3240
3241else
3242
3243 LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}`
3244 if test "x$LINE" != x ; then
3245 eval "DEFAULT_$LINE"
3246 else
3247 no_cache=1
3248 fi
3249
3250 ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL
3251
3252fi;
3253
3254 eval "$ac_cv_use_sdl"
3255 if test "$no_cache" != 1; then
3256 echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp
3257 fi
3258
3259 if test "$wxUSE_LIBSDL" = yes; then
3260 echo "$as_me:$LINENO: result: yes" >&5
3261echo "${ECHO_T}yes" >&6
3262 else
3263 echo "$as_me:$LINENO: result: no" >&5
3264echo "${ECHO_T}no" >&6
3265 fi
3266
3267
1c14217d
VZ
3268 withstring=
3269 echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomeprint" >&5
3270echo $ECHO_N "checking for --${withstring:-with}-gnomeprint... $ECHO_C" >&6
d1c38808
VZ
3271 no_cache=0
3272
3273# Check whether --with-gnomeprint or --without-gnomeprint was given.
3274if test "${with_gnomeprint+set}" = set; then
3275 withval="$with_gnomeprint"
3276
3277 if test "$withval" = yes; then
3278 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes'
3279 else
3280 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no'
3281 fi
3282
3283else
3284
3285 LINE=`grep "wxUSE_LIBGNOMEPRINT" ${wx_arg_cache_file}`
3286 if test "x$LINE" != x ; then
3287 eval "DEFAULT_$LINE"
3288 else
3289 no_cache=1
3290 fi
3291
3292 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT='$DEFAULT_wxUSE_LIBGNOMEPRINT
3293
3294fi;
3295
3296 eval "$ac_cv_use_gnomeprint"
3297 if test "$no_cache" != 1; then
3298 echo $ac_cv_use_gnomeprint >> ${wx_arg_cache_file}.tmp
3299 fi
3300
3301 if test "$wxUSE_LIBGNOMEPRINT" = yes; then
3302 echo "$as_me:$LINENO: result: yes" >&5
3303echo "${ECHO_T}yes" >&6
3304 else
3305 echo "$as_me:$LINENO: result: no" >&5
3306echo "${ECHO_T}no" >&6
3307 fi
3308
3309
2b850ae1
RR
3310 withstring=
3311 echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomevfs" >&5
3312echo $ECHO_N "checking for --${withstring:-with}-gnomevfs... $ECHO_C" >&6
3313 no_cache=0
3314
3315# Check whether --with-gnomevfs or --without-gnomevfs was given.
3316if test "${with_gnomevfs+set}" = set; then
3317 withval="$with_gnomevfs"
3318
3319 if test "$withval" = yes; then
3320 ac_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=yes'
3321 else
3322 ac_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=no'
3323 fi
3324
3325else
3326
3327 LINE=`grep "wxUSE_LIBGNOMEVFS" ${wx_arg_cache_file}`
3328 if test "x$LINE" != x ; then
3329 eval "DEFAULT_$LINE"
3330 else
3331 no_cache=1
3332 fi
3333
3334 ac_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS='$DEFAULT_wxUSE_LIBGNOMEVFS
3335
3336fi;
3337
3338 eval "$ac_cv_use_gnomevfs"
3339 if test "$no_cache" != 1; then
3340 echo $ac_cv_use_gnomevfs >> ${wx_arg_cache_file}.tmp
3341 fi
3342
3343 if test "$wxUSE_LIBGNOMEVFS" = yes; then
3344 echo "$as_me:$LINENO: result: yes" >&5
3345echo "${ECHO_T}yes" >&6
3346 else
3347 echo "$as_me:$LINENO: result: no" >&5
3348echo "${ECHO_T}no" >&6
3349 fi
3350
3351
3565d135
RR
3352 withstring=
3353 echo "$as_me:$LINENO: checking for --${withstring:-with}-hildon" >&5
3354echo $ECHO_N "checking for --${withstring:-with}-hildon... $ECHO_C" >&6
3355 no_cache=0
3356
3357# Check whether --with-hildon or --without-hildon was given.
3358if test "${with_hildon+set}" = set; then
3359 withval="$with_hildon"
3360
3361 if test "$withval" = yes; then
3362 ac_cv_use_hildon='wxUSE_LIBHILDON=yes'
3363 else
3364 ac_cv_use_hildon='wxUSE_LIBHILDON=no'
3365 fi
3366
3367else
3368
3369 LINE=`grep "wxUSE_LIBHILDON" ${wx_arg_cache_file}`
3370 if test "x$LINE" != x ; then
3371 eval "DEFAULT_$LINE"
3372 else
3373 no_cache=1
3374 fi
3375
3376 ac_cv_use_hildon='wxUSE_LIBHILDON='$DEFAULT_wxUSE_LIBHILDON
3377
3378fi;
3379
3380 eval "$ac_cv_use_hildon"
3381 if test "$no_cache" != 1; then
3382 echo $ac_cv_use_hildon >> ${wx_arg_cache_file}.tmp
3383 fi
3384
3385 if test "$wxUSE_LIBHILDON" = yes; then
3386 echo "$as_me:$LINENO: result: yes" >&5
3387echo "${ECHO_T}yes" >&6
3388 else
3389 echo "$as_me:$LINENO: result: no" >&5
3390echo "${ECHO_T}no" >&6
3391 fi
3392
3393
1c14217d
VZ
3394 withstring=
3395 echo "$as_me:$LINENO: checking for --${withstring:-with}-opengl" >&5
3396echo $ECHO_N "checking for --${withstring:-with}-opengl... $ECHO_C" >&6
a848cd7e
SC
3397 no_cache=0
3398
3399# Check whether --with-opengl or --without-opengl was given.
3400if test "${with_opengl+set}" = set; then
3401 withval="$with_opengl"
3402
3403 if test "$withval" = yes; then
3404 ac_cv_use_opengl='wxUSE_OPENGL=yes'
3405 else
3406 ac_cv_use_opengl='wxUSE_OPENGL=no'
3407 fi
3408
3409else
3410
3411 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
3412 if test "x$LINE" != x ; then
3413 eval "DEFAULT_$LINE"
3414 else
3415 no_cache=1
3416 fi
3417
3418 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
3419
3420fi;
3421
3422 eval "$ac_cv_use_opengl"
3423 if test "$no_cache" != 1; then
3424 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
3425 fi
3426
3427 if test "$wxUSE_OPENGL" = yes; then
3428 echo "$as_me:$LINENO: result: yes" >&5
3429echo "${ECHO_T}yes" >&6
3430 else
3431 echo "$as_me:$LINENO: result: no" >&5
3432echo "${ECHO_T}no" >&6
3433 fi
3434
3435
3436fi
3437
3438
1c14217d
VZ
3439 withstring=
3440 echo "$as_me:$LINENO: checking for --${withstring:-with}-dmalloc" >&5
3441echo $ECHO_N "checking for --${withstring:-with}-dmalloc... $ECHO_C" >&6
a848cd7e
SC
3442 no_cache=0
3443
3444# Check whether --with-dmalloc or --without-dmalloc was given.
3445if test "${with_dmalloc+set}" = set; then
3446 withval="$with_dmalloc"
3447
3448 if test "$withval" = yes; then
3449 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
3450 else
3451 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
3452 fi
3453
3454else
3455
3456 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
3457 if test "x$LINE" != x ; then
3458 eval "DEFAULT_$LINE"
3459 else
3460 no_cache=1
3461 fi
3462
3463 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
3464
3465fi;
3466
3467 eval "$ac_cv_use_dmalloc"
3468 if test "$no_cache" != 1; then
3469 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
3470 fi
3471
3472 if test "$wxUSE_DMALLOC" = yes; then
3473 echo "$as_me:$LINENO: result: yes" >&5
3474echo "${ECHO_T}yes" >&6
3475 else
3476 echo "$as_me:$LINENO: result: no" >&5
3477echo "${ECHO_T}no" >&6
3478 fi
3479
3480
3481 echo "$as_me:$LINENO: checking for --with-regex" >&5
3482echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3483 no_cache=0
3484
3485# Check whether --with-regex or --without-regex was given.
3486if test "${with_regex+set}" = set; then
3487 withval="$with_regex"
3488
3489 if test "$withval" = yes; then
3490 ac_cv_use_regex='wxUSE_REGEX=yes'
3491 elif test "$withval" = no; then
3492 ac_cv_use_regex='wxUSE_REGEX=no'
3493 elif test "$withval" = sys; then
3494 ac_cv_use_regex='wxUSE_REGEX=sys'
3495 elif test "$withval" = builtin; then
3496 ac_cv_use_regex='wxUSE_REGEX=builtin'
3497 else
3498 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3499echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3500 { (exit 1); exit 1; }; }
3501 fi
3502
3503else
3504
3505 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
3506 if test "x$LINE" != x ; then
3507 eval "DEFAULT_$LINE"
3508 else
3509 no_cache=1
3510 fi
3511
3512 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3513
3514fi;
3515
3516 eval "$ac_cv_use_regex"
3517 if test "$no_cache" != 1; then
3518 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
3519 fi
3520
3521 if test "$wxUSE_REGEX" = yes; then
3522 echo "$as_me:$LINENO: result: yes" >&5
3523echo "${ECHO_T}yes" >&6
3524 elif test "$wxUSE_REGEX" = no; then
3525 echo "$as_me:$LINENO: result: no" >&5
3526echo "${ECHO_T}no" >&6
3527 elif test "$wxUSE_REGEX" = sys; then
3528 echo "$as_me:$LINENO: result: system version" >&5
3529echo "${ECHO_T}system version" >&6
3530 elif test "$wxUSE_REGEX" = builtin; then
3531 echo "$as_me:$LINENO: result: builtin version" >&5
3532echo "${ECHO_T}builtin version" >&6
3533 else
3534 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3535echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3536 { (exit 1); exit 1; }; }
3537 fi
3538
3539
3540 echo "$as_me:$LINENO: checking for --with-zlib" >&5
3541echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
3542 no_cache=0
3543
3544# Check whether --with-zlib or --without-zlib was given.
3545if test "${with_zlib+set}" = set; then
3546 withval="$with_zlib"
3547
3548 if test "$withval" = yes; then
3549 ac_cv_use_zlib='wxUSE_ZLIB=yes'
3550 elif test "$withval" = no; then
3551 ac_cv_use_zlib='wxUSE_ZLIB=no'
3552 elif test "$withval" = sys; then
3553 ac_cv_use_zlib='wxUSE_ZLIB=sys'
3554 elif test "$withval" = builtin; then
3555 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
3556 else
3557 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3558echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3559 { (exit 1); exit 1; }; }
3560 fi
3561
3562else
3563
3564 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
3565 if test "x$LINE" != x ; then
3566 eval "DEFAULT_$LINE"
3567 else
3568 no_cache=1
3569 fi
3570
3571 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
3572
3573fi;
3574
3575 eval "$ac_cv_use_zlib"
3576 if test "$no_cache" != 1; then
3577 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
3578 fi
3579
3580 if test "$wxUSE_ZLIB" = yes; then
3581 echo "$as_me:$LINENO: result: yes" >&5
3582echo "${ECHO_T}yes" >&6
3583 elif test "$wxUSE_ZLIB" = no; then
3584 echo "$as_me:$LINENO: result: no" >&5
3585echo "${ECHO_T}no" >&6
3586 elif test "$wxUSE_ZLIB" = sys; then
3587 echo "$as_me:$LINENO: result: system version" >&5
3588echo "${ECHO_T}system version" >&6
3589 elif test "$wxUSE_ZLIB" = builtin; then
3590 echo "$as_me:$LINENO: result: builtin version" >&5
3591echo "${ECHO_T}builtin version" >&6
3592 else
3593 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3594echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3595 { (exit 1); exit 1; }; }
3596 fi
3597
3598
3599 echo "$as_me:$LINENO: checking for --with-odbc" >&5
3600echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
3601 no_cache=0
3602
3603# Check whether --with-odbc or --without-odbc was given.
3604if test "${with_odbc+set}" = set; then
3605 withval="$with_odbc"
3606
3607 if test "$withval" = yes; then
3608 ac_cv_use_odbc='wxUSE_ODBC=yes'
3609 elif test "$withval" = no; then
3610 ac_cv_use_odbc='wxUSE_ODBC=no'
3611 elif test "$withval" = sys; then
3612 ac_cv_use_odbc='wxUSE_ODBC=sys'
3613 elif test "$withval" = builtin; then
3614 ac_cv_use_odbc='wxUSE_ODBC=builtin'
3615 else
3616 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3617echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3618 { (exit 1); exit 1; }; }
3619 fi
3620
3621else
3622
3623 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
3624 if test "x$LINE" != x ; then
3625 eval "DEFAULT_$LINE"
3626 else
3627 no_cache=1
3628 fi
3629
3630 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
3631
3632fi;
3633
3634 eval "$ac_cv_use_odbc"
3635 if test "$no_cache" != 1; then
3636 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3637 fi
3638
3639 if test "$wxUSE_ODBC" = yes; then
3640 echo "$as_me:$LINENO: result: yes" >&5
3641echo "${ECHO_T}yes" >&6
3642 elif test "$wxUSE_ODBC" = no; then
3643 echo "$as_me:$LINENO: result: no" >&5
3644echo "${ECHO_T}no" >&6
3645 elif test "$wxUSE_ODBC" = sys; then
3646 echo "$as_me:$LINENO: result: system version" >&5
3647echo "${ECHO_T}system version" >&6
3648 elif test "$wxUSE_ODBC" = builtin; then
3649 echo "$as_me:$LINENO: result: builtin version" >&5
3650echo "${ECHO_T}builtin version" >&6
3651 else
3652 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3653echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3654 { (exit 1); exit 1; }; }
3655 fi
3656
3657
3658 echo "$as_me:$LINENO: checking for --with-expat" >&5
3659echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3660 no_cache=0
3661
3662# Check whether --with-expat or --without-expat was given.
3663if test "${with_expat+set}" = set; then
3664 withval="$with_expat"
3665
3666 if test "$withval" = yes; then
3667 ac_cv_use_expat='wxUSE_EXPAT=yes'
3668 elif test "$withval" = no; then
3669 ac_cv_use_expat='wxUSE_EXPAT=no'
3670 elif test "$withval" = sys; then
3671 ac_cv_use_expat='wxUSE_EXPAT=sys'
3672 elif test "$withval" = builtin; then
3673 ac_cv_use_expat='wxUSE_EXPAT=builtin'
3674 else
3675 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3676echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3677 { (exit 1); exit 1; }; }
3678 fi
3679
3680else
3681
3682 LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3683 if test "x$LINE" != x ; then
3684 eval "DEFAULT_$LINE"
3685 else
3686 no_cache=1
3687 fi
3688
3689 ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3690
3691fi;
3692
3693 eval "$ac_cv_use_expat"
3694 if test "$no_cache" != 1; then
3695 echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3696 fi
3697
3698 if test "$wxUSE_EXPAT" = yes; then
3699 echo "$as_me:$LINENO: result: yes" >&5
3700echo "${ECHO_T}yes" >&6
3701 elif test "$wxUSE_EXPAT" = no; then
3702 echo "$as_me:$LINENO: result: no" >&5
3703echo "${ECHO_T}no" >&6
3704 elif test "$wxUSE_EXPAT" = sys; then
3705 echo "$as_me:$LINENO: result: system version" >&5
3706echo "${ECHO_T}system version" >&6
3707 elif test "$wxUSE_EXPAT" = builtin; then
3708 echo "$as_me:$LINENO: result: builtin version" >&5
3709echo "${ECHO_T}builtin version" >&6
3710 else
3711 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3712echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3713 { (exit 1); exit 1; }; }
3714 fi
3715
3716
3717
3718
3719 enablestring=
3720 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3721echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
3722 no_cache=0
3723 # Check whether --enable-shared or --disable-shared was given.
3724if test "${enable_shared+set}" = set; then
3725 enableval="$enable_shared"
3726
3727 if test "$enableval" = yes; then
3728 ac_cv_use_shared='wxUSE_SHARED=yes'
3729 else
3730 ac_cv_use_shared='wxUSE_SHARED=no'
3731 fi
3732
3733else
3734
3735 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3736 if test "x$LINE" != x ; then
3737 eval "DEFAULT_$LINE"
3738 else
3739 no_cache=1
3740 fi
3741
3742 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
3743
3744fi;
3745
3746 eval "$ac_cv_use_shared"
3747 if test "$no_cache" != 1; then
3748 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3749 fi
3750
3751 if test "$wxUSE_SHARED" = yes; then
3752 echo "$as_me:$LINENO: result: yes" >&5
3753echo "${ECHO_T}yes" >&6
3754 else
3755 echo "$as_me:$LINENO: result: no" >&5
3756echo "${ECHO_T}no" >&6
3757 fi
3758
3759
3760 enablestring=
3761 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3762echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
3763 no_cache=0
3764 # Check whether --enable-optimise or --disable-optimise was given.
3765if test "${enable_optimise+set}" = set; then
3766 enableval="$enable_optimise"
3767
3768 if test "$enableval" = yes; then
3769 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3770 else
3771 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3772 fi
3773
3774else
3775
3776 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3777 if test "x$LINE" != x ; then
3778 eval "DEFAULT_$LINE"
3779 else
3780 no_cache=1
3781 fi
3782
3783 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
3784
3785fi;
3786
3787 eval "$ac_cv_use_optimise"
3788 if test "$no_cache" != 1; then
3789 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3790 fi
3791
3792 if test "$wxUSE_OPTIMISE" = yes; then
3793 echo "$as_me:$LINENO: result: yes" >&5
3794echo "${ECHO_T}yes" >&6
3795 else
3796 echo "$as_me:$LINENO: result: no" >&5
3797echo "${ECHO_T}no" >&6
3798 fi
3799
3800
3801 enablestring=
3802 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3803echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
3804 no_cache=0
3805 # Check whether --enable-debug or --disable-debug was given.
3806if test "${enable_debug+set}" = set; then
3807 enableval="$enable_debug"
3808
3809 if test "$enableval" = yes; then
3810 ac_cv_use_debug='wxUSE_DEBUG=yes'
3811 else
3812 ac_cv_use_debug='wxUSE_DEBUG=no'
3813 fi
3814
3815else
3816
3817 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3818 if test "x$LINE" != x ; then
3819 eval "DEFAULT_$LINE"
3820 else
3821 no_cache=1
3822 fi
3823
3824 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
3825
3826fi;
3827
3828 eval "$ac_cv_use_debug"
3829 if test "$no_cache" != 1; then
3830 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3831 fi
3832
3833 if test "$wxUSE_DEBUG" = yes; then
3834 echo "$as_me:$LINENO: result: yes" >&5
3835echo "${ECHO_T}yes" >&6
3836 else
3837 echo "$as_me:$LINENO: result: no" >&5
3838echo "${ECHO_T}no" >&6
3839 fi
3840
3841
3842 enablestring=
3843 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3844echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3845 no_cache=0
3846 # Check whether --enable-stl or --disable-stl was given.
3847if test "${enable_stl+set}" = set; then
3848 enableval="$enable_stl"
3849
3850 if test "$enableval" = yes; then
3851 ac_cv_use_stl='wxUSE_STL=yes'
3852 else
3853 ac_cv_use_stl='wxUSE_STL=no'
3854 fi
3855
3856else
3857
3858 LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3859 if test "x$LINE" != x ; then
3860 eval "DEFAULT_$LINE"
3861 else
3862 no_cache=1
3863 fi
3864
3865 ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3866
3867fi;
3868
3869 eval "$ac_cv_use_stl"
3870 if test "$no_cache" != 1; then
3871 echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3872 fi
3873
3874 if test "$wxUSE_STL" = yes; then
3875 echo "$as_me:$LINENO: result: yes" >&5
3876echo "${ECHO_T}yes" >&6
3877 else
3878 echo "$as_me:$LINENO: result: no" >&5
3879echo "${ECHO_T}no" >&6
3880 fi
3881
3882if test "$USE_OS2" = "1"; then
69120ee4 3883 DEFAULT_wxUSE_OMF=no
a848cd7e
SC
3884
3885 enablestring=
3886 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
3887echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6
3888 no_cache=0
3889 # Check whether --enable-omf or --disable-omf was given.
3890if test "${enable_omf+set}" = set; then
3891 enableval="$enable_omf"
3892
3893 if test "$enableval" = yes; then
3894 ac_cv_use_omf='wxUSE_OMF=yes'
3895 else
3896 ac_cv_use_omf='wxUSE_OMF=no'
3897 fi
3898
3899else
3900
3901 LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}`
3902 if test "x$LINE" != x ; then
3903 eval "DEFAULT_$LINE"
3904 else
3905 no_cache=1
3906 fi
3907
3908 ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF
3909
3910fi;
3911
3912 eval "$ac_cv_use_omf"
3913 if test "$no_cache" != 1; then
3914 echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp
3915 fi
3916
3917 if test "$wxUSE_OMF" = yes; then
3918 echo "$as_me:$LINENO: result: yes" >&5
3919echo "${ECHO_T}yes" >&6
3920 else
3921 echo "$as_me:$LINENO: result: no" >&5
3922echo "${ECHO_T}no" >&6
3923 fi
3924
3925fi
3926
3927if test "$wxUSE_DEBUG" = "yes"; then
3928 DEFAULT_wxUSE_DEBUG_FLAG=yes
3929 DEFAULT_wxUSE_DEBUG_INFO=yes
3930 BUILD=debug
3931elif test "$wxUSE_DEBUG" = "no"; then
3932 DEFAULT_wxUSE_DEBUG_FLAG=no
3933 DEFAULT_wxUSE_DEBUG_INFO=no
3934 BUILD=release
3935fi
3936
3937
3938 enablestring=
3939 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
3940echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
3941 no_cache=0
3942 # Check whether --enable-debug_flag or --disable-debug_flag was given.
3943if test "${enable_debug_flag+set}" = set; then
3944 enableval="$enable_debug_flag"
3945
3946 if test "$enableval" = yes; then
3947 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
3948 else
3949 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
3950 fi
3951
3952else
3953
3954 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
3955 if test "x$LINE" != x ; then
3956 eval "DEFAULT_$LINE"
3957 else
3958 no_cache=1
3959 fi
3960
3961 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
3962
3963fi;
3964
3965 eval "$ac_cv_use_debug_flag"
3966 if test "$no_cache" != 1; then
3967 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
3968 fi
3969
3970 if test "$wxUSE_DEBUG_FLAG" = yes; then
3971 echo "$as_me:$LINENO: result: yes" >&5
3972echo "${ECHO_T}yes" >&6
3973 else
3974 echo "$as_me:$LINENO: result: no" >&5
3975echo "${ECHO_T}no" >&6
3976 fi
3977
3978
3979 enablestring=
3980 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
3981echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
3982 no_cache=0
3983 # Check whether --enable-debug_info or --disable-debug_info was given.
3984if test "${enable_debug_info+set}" = set; then
3985 enableval="$enable_debug_info"
3986
3987 if test "$enableval" = yes; then
3988 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
3989 else
3990 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
3991 fi
3992
3993else
3994
3995 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
3996 if test "x$LINE" != x ; then
3997 eval "DEFAULT_$LINE"
3998 else
3999 no_cache=1
4000 fi
4001
4002 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
4003
4004fi;
4005
4006 eval "$ac_cv_use_debug_info"
4007 if test "$no_cache" != 1; then
4008 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
4009 fi
4010
4011 if test "$wxUSE_DEBUG_INFO" = yes; then
4012 echo "$as_me:$LINENO: result: yes" >&5
4013echo "${ECHO_T}yes" >&6
4014 else
4015 echo "$as_me:$LINENO: result: no" >&5
4016echo "${ECHO_T}no" >&6
4017 fi
4018
4019
4020 enablestring=
4021 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
4022echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
4023 no_cache=0
4024 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
4025if test "${enable_debug_gdb+set}" = set; then
4026 enableval="$enable_debug_gdb"
4027
4028 if test "$enableval" = yes; then
4029 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
4030 else
4031 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
4032 fi
4033
4034else
4035
4036 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
4037 if test "x$LINE" != x ; then
4038 eval "DEFAULT_$LINE"
4039 else
4040 no_cache=1
4041 fi
4042
4043 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
4044
4045fi;
4046
4047 eval "$ac_cv_use_debug_gdb"
4048 if test "$no_cache" != 1; then
4049 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
4050 fi
4051
4052 if test "$wxUSE_DEBUG_GDB" = yes; then
4053 echo "$as_me:$LINENO: result: yes" >&5
4054echo "${ECHO_T}yes" >&6
4055 else
4056 echo "$as_me:$LINENO: result: no" >&5
4057echo "${ECHO_T}no" >&6
4058 fi
4059
4060
4061 enablestring=
4062 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
4063echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
4064 no_cache=0
4065 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
4066if test "${enable_debug_cntxt+set}" = set; then
4067 enableval="$enable_debug_cntxt"
4068
4069 if test "$enableval" = yes; then
4070 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
4071 else
4072 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
4073 fi
4074
4075else
4076
4077 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
4078 if test "x$LINE" != x ; then
4079 eval "DEFAULT_$LINE"
4080 else
4081 no_cache=1
4082 fi
4083
4084 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
4085
4086fi;
4087
4088 eval "$ac_cv_use_debug_cntxt"
4089 if test "$no_cache" != 1; then
4090 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
4091 fi
4092
4093 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
4094 echo "$as_me:$LINENO: result: yes" >&5
4095echo "${ECHO_T}yes" >&6
4096 else
4097 echo "$as_me:$LINENO: result: no" >&5
4098echo "${ECHO_T}no" >&6
4099 fi
4100
4101
4102 enablestring=
4103 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
4104echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
4105 no_cache=0
4106 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
4107if test "${enable_mem_tracing+set}" = set; then
4108 enableval="$enable_mem_tracing"
4109
4110 if test "$enableval" = yes; then
4111 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
4112 else
4113 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
4114 fi
4115
4116else
4117
4118 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
4119 if test "x$LINE" != x ; then
4120 eval "DEFAULT_$LINE"
4121 else
4122 no_cache=1
4123 fi
4124
4125 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
4126
4127fi;
4128
4129 eval "$ac_cv_use_mem_tracing"
4130 if test "$no_cache" != 1; then
4131 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
4132 fi
4133
4134 if test "$wxUSE_MEM_TRACING" = yes; then
4135 echo "$as_me:$LINENO: result: yes" >&5
4136echo "${ECHO_T}yes" >&6
4137 else
4138 echo "$as_me:$LINENO: result: no" >&5
4139echo "${ECHO_T}no" >&6
4140 fi
4141
4142
4143 enablestring=
4144 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
4145echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
4146 no_cache=0
4147 # Check whether --enable-profile or --disable-profile was given.
4148if test "${enable_profile+set}" = set; then
4149 enableval="$enable_profile"
4150
4151 if test "$enableval" = yes; then
4152 ac_cv_use_profile='wxUSE_PROFILE=yes'
4153 else
4154 ac_cv_use_profile='wxUSE_PROFILE=no'
4155 fi
4156
4157else
4158
4159 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
4160 if test "x$LINE" != x ; then
4161 eval "DEFAULT_$LINE"
4162 else
4163 no_cache=1
4164 fi
4165
4166 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
4167
4168fi;
4169
4170 eval "$ac_cv_use_profile"
4171 if test "$no_cache" != 1; then
4172 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
4173 fi
4174
4175 if test "$wxUSE_PROFILE" = yes; then
4176 echo "$as_me:$LINENO: result: yes" >&5
4177echo "${ECHO_T}yes" >&6
4178 else
4179 echo "$as_me:$LINENO: result: no" >&5
4180echo "${ECHO_T}no" >&6
4181 fi
4182
4183
4184 enablestring=
4185 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
4186echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
4187 no_cache=0
4188 # Check whether --enable-no_rtti or --disable-no_rtti was given.
4189if test "${enable_no_rtti+set}" = set; then
4190 enableval="$enable_no_rtti"
4191
4192 if test "$enableval" = yes; then
4193 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
4194 else
4195 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
4196 fi
4197
4198else
4199
4200 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
4201 if test "x$LINE" != x ; then
4202 eval "DEFAULT_$LINE"
4203 else
4204 no_cache=1
4205 fi
4206
4207 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
4208
4209fi;
4210
4211 eval "$ac_cv_use_no_rtti"
4212 if test "$no_cache" != 1; then
4213 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
4214 fi
4215
4216 if test "$wxUSE_NO_RTTI" = yes; then
4217 echo "$as_me:$LINENO: result: yes" >&5
4218echo "${ECHO_T}yes" >&6
4219 else
4220 echo "$as_me:$LINENO: result: no" >&5
4221echo "${ECHO_T}no" >&6
4222 fi
4223
4224
4225 enablestring=
4226 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
4227echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
4228 no_cache=0
4229 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
4230if test "${enable_no_exceptions+set}" = set; then
4231 enableval="$enable_no_exceptions"
4232
4233 if test "$enableval" = yes; then
4234 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
4235 else
4236 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
4237 fi
4238
4239else
4240
4241 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
4242 if test "x$LINE" != x ; then
4243 eval "DEFAULT_$LINE"
4244 else
4245 no_cache=1
4246 fi
4247
4248 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
4249
4250fi;
4251
4252 eval "$ac_cv_use_no_exceptions"
4253 if test "$no_cache" != 1; then
4254 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
4255 fi
4256
4257 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
4258 echo "$as_me:$LINENO: result: yes" >&5
4259echo "${ECHO_T}yes" >&6
4260 else
4261 echo "$as_me:$LINENO: result: no" >&5
4262echo "${ECHO_T}no" >&6
4263 fi
4264
4265
4266 enablestring=
4267 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
4268echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
4269 no_cache=0
4270 # Check whether --enable-permissive or --disable-permissive was given.
4271if test "${enable_permissive+set}" = set; then
4272 enableval="$enable_permissive"
4273
4274 if test "$enableval" = yes; then
4275 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
4276 else
4277 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
4278 fi
4279
4280else
4281
4282 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
4283 if test "x$LINE" != x ; then
4284 eval "DEFAULT_$LINE"
4285 else
4286 no_cache=1
4287 fi
4288
4289 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
4290
4291fi;
4292
4293 eval "$ac_cv_use_permissive"
4294 if test "$no_cache" != 1; then
4295 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
4296 fi
4297
4298 if test "$wxUSE_PERMISSIVE" = yes; then
4299 echo "$as_me:$LINENO: result: yes" >&5
4300echo "${ECHO_T}yes" >&6
4301 else
4302 echo "$as_me:$LINENO: result: no" >&5
4303echo "${ECHO_T}no" >&6
4304 fi
4305
4306
4307 enablestring=
4308 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
4309echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
4310 no_cache=0
4311 # Check whether --enable-no_deps or --disable-no_deps was given.
4312if test "${enable_no_deps+set}" = set; then
4313 enableval="$enable_no_deps"
4314
4315 if test "$enableval" = yes; then
4316 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
4317 else
4318 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
4319 fi
4320
4321else
4322
4323 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
4324 if test "x$LINE" != x ; then
4325 eval "DEFAULT_$LINE"
4326 else
4327 no_cache=1
4328 fi
4329
4330 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
4331
4332fi;
4333
4334 eval "$ac_cv_use_no_deps"
4335 if test "$no_cache" != 1; then
4336 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
4337 fi
4338
4339 if test "$wxUSE_NO_DEPS" = yes; then
4340 echo "$as_me:$LINENO: result: yes" >&5
4341echo "${ECHO_T}yes" >&6
4342 else
4343 echo "$as_me:$LINENO: result: no" >&5
4344echo "${ECHO_T}no" >&6
4345 fi
4346
4347
95768535 4348 enablestring=
7afc46ab
KO
4349 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal_binary" >&5
4350echo $ECHO_N "checking for --${enablestring:-enable}-universal_binary... $ECHO_C" >&6
4351 no_cache=0
4352 # Check whether --enable-universal_binary or --disable-universal_binary was given.
4353if test "${enable_universal_binary+set}" = set; then
4354 enableval="$enable_universal_binary"
4355
95768535 4356 wx_cv_use_universal_binary="wxUSE_UNIVERSAL_BINARY='$enableval'"
7afc46ab
KO
4357
4358else
4359
4360 LINE=`grep "wxUSE_UNIVERSAL_BINARY" ${wx_arg_cache_file}`
4361 if test "x$LINE" != x ; then
4362 eval "DEFAULT_$LINE"
95768535 4363 wx_cv_use_universal_binary='wxUSE_UNIVERSAL_BINARY='$DEFAULT_wxUSE_UNIVERSAL_BINARY
7afc46ab
KO
4364 else
4365 no_cache=1
95768535 4366 wx_cv_use_universal_binary="wxUSE_UNIVERSAL_BINARY=no"
7afc46ab
KO
4367 fi
4368
7afc46ab
KO
4369fi;
4370
95768535 4371 eval "$wx_cv_use_universal_binary"
7afc46ab 4372 if test "$no_cache" != 1; then
95768535 4373 echo $wx_cv_use_universal_binary >> ${wx_arg_cache_file}.tmp
7afc46ab
KO
4374 fi
4375
95768535
MW
4376 echo "$as_me:$LINENO: result: $wxUSE_UNIVERSAL_BINARY" >&5
4377echo "${ECHO_T}$wxUSE_UNIVERSAL_BINARY" >&6
7afc46ab
KO
4378
4379
a848cd7e 4380
dee1a63f
MB
4381 enablestring=enable
4382 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
4383echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
a848cd7e 4384 no_cache=0
dee1a63f
MB
4385 # Check whether --enable-compat24 or --disable-compat24 was given.
4386if test "${enable_compat24+set}" = set; then
4387 enableval="$enable_compat24"
a848cd7e
SC
4388
4389 if test "$enableval" = yes; then
dee1a63f 4390 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
a848cd7e 4391 else
dee1a63f 4392 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
a848cd7e
SC
4393 fi
4394
4395else
4396
dee1a63f 4397 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
a848cd7e
SC
4398 if test "x$LINE" != x ; then
4399 eval "DEFAULT_$LINE"
4400 else
4401 no_cache=1
4402 fi
4403
dee1a63f 4404 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
a848cd7e
SC
4405
4406fi;
4407
dee1a63f 4408 eval "$ac_cv_use_compat24"
a848cd7e 4409 if test "$no_cache" != 1; then
dee1a63f 4410 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
4411 fi
4412
dee1a63f 4413 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
a848cd7e
SC
4414 echo "$as_me:$LINENO: result: yes" >&5
4415echo "${ECHO_T}yes" >&6
4416 else
4417 echo "$as_me:$LINENO: result: no" >&5
4418echo "${ECHO_T}no" >&6
4419 fi
4420
4421
4422 enablestring=disable
dee1a63f
MB
4423 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat26" >&5
4424echo $ECHO_N "checking for --${enablestring:-enable}-compat26... $ECHO_C" >&6
a848cd7e 4425 no_cache=0
dee1a63f
MB
4426 # Check whether --enable-compat26 or --disable-compat26 was given.
4427if test "${enable_compat26+set}" = set; then
4428 enableval="$enable_compat26"
a848cd7e
SC
4429
4430 if test "$enableval" = yes; then
dee1a63f 4431 ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=yes'
a848cd7e 4432 else
dee1a63f 4433 ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=no'
a848cd7e
SC
4434 fi
4435
4436else
4437
dee1a63f 4438 LINE=`grep "WXWIN_COMPATIBILITY_2_6" ${wx_arg_cache_file}`
a848cd7e
SC
4439 if test "x$LINE" != x ; then
4440 eval "DEFAULT_$LINE"
4441 else
4442 no_cache=1
4443 fi
4444
dee1a63f 4445 ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6='$DEFAULT_WXWIN_COMPATIBILITY_2_6
a848cd7e
SC
4446
4447fi;
4448
dee1a63f 4449 eval "$ac_cv_use_compat26"
a848cd7e 4450 if test "$no_cache" != 1; then
dee1a63f 4451 echo $ac_cv_use_compat26 >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
4452 fi
4453
dee1a63f 4454 if test "$WXWIN_COMPATIBILITY_2_6" = yes; then
a848cd7e
SC
4455 echo "$as_me:$LINENO: result: yes" >&5
4456echo "${ECHO_T}yes" >&6
4457 else
4458 echo "$as_me:$LINENO: result: no" >&5
4459echo "${ECHO_T}no" >&6
4460 fi
4461
4462
ffa0583f
RL
4463
4464 enablestring=
4465 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5
4466echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6
4467 no_cache=0
4468 # Check whether --enable-rpath or --disable-rpath was given.
a848cd7e
SC
4469if test "${enable_rpath+set}" = set; then
4470 enableval="$enable_rpath"
ffa0583f
RL
4471
4472 if test "$enableval" = yes; then
4473 ac_cv_use_rpath='wxUSE_RPATH=yes'
4474 else
4475 ac_cv_use_rpath='wxUSE_RPATH=no'
4476 fi
4477
4478else
4479
4480 LINE=`grep "wxUSE_RPATH" ${wx_arg_cache_file}`
4481 if test "x$LINE" != x ; then
4482 eval "DEFAULT_$LINE"
4483 else
4484 no_cache=1
4485 fi
4486
4487 ac_cv_use_rpath='wxUSE_RPATH='$DEFAULT_wxUSE_RPATH
4488
a848cd7e
SC
4489fi;
4490
ffa0583f
RL
4491 eval "$ac_cv_use_rpath"
4492 if test "$no_cache" != 1; then
4493 echo $ac_cv_use_rpath >> ${wx_arg_cache_file}.tmp
4494 fi
4495
4496 if test "$wxUSE_RPATH" = yes; then
4497 echo "$as_me:$LINENO: result: yes" >&5
4498echo "${ECHO_T}yes" >&6
4499 else
4500 echo "$as_me:$LINENO: result: no" >&5
4501echo "${ECHO_T}no" >&6
4502 fi
4503
a848cd7e
SC
4504
4505
4506
4507
4508 enablestring=
4509 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
4510echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
4511 no_cache=0
4512 # Check whether --enable-intl or --disable-intl was given.
4513if test "${enable_intl+set}" = set; then
4514 enableval="$enable_intl"
4515
4516 if test "$enableval" = yes; then
4517 ac_cv_use_intl='wxUSE_INTL=yes'
4518 else
4519 ac_cv_use_intl='wxUSE_INTL=no'
4520 fi
4521
4522else
4523
4524 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
4525 if test "x$LINE" != x ; then
4526 eval "DEFAULT_$LINE"
4527 else
4528 no_cache=1
4529 fi
4530
4531 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
4532
4533fi;
4534
4535 eval "$ac_cv_use_intl"
4536 if test "$no_cache" != 1; then
4537 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
4538 fi
4539
4540 if test "$wxUSE_INTL" = yes; then
4541 echo "$as_me:$LINENO: result: yes" >&5
4542echo "${ECHO_T}yes" >&6
4543 else
4544 echo "$as_me:$LINENO: result: no" >&5
4545echo "${ECHO_T}no" >&6
4546 fi
4547
4548
4549 enablestring=
4550 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
4551echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
4552 no_cache=0
4553 # Check whether --enable-config or --disable-config was given.
4554if test "${enable_config+set}" = set; then
4555 enableval="$enable_config"
4556
4557 if test "$enableval" = yes; then
4558 ac_cv_use_config='wxUSE_CONFIG=yes'
4559 else
4560 ac_cv_use_config='wxUSE_CONFIG=no'
4561 fi
4562
4563else
4564
4565 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
4566 if test "x$LINE" != x ; then
4567 eval "DEFAULT_$LINE"
4568 else
4569 no_cache=1
4570 fi
4571
4572 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
4573
4574fi;
4575
4576 eval "$ac_cv_use_config"
4577 if test "$no_cache" != 1; then
4578 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
4579 fi
4580
4581 if test "$wxUSE_CONFIG" = yes; then
4582 echo "$as_me:$LINENO: result: yes" >&5
4583echo "${ECHO_T}yes" >&6
4584 else
4585 echo "$as_me:$LINENO: result: no" >&5
4586echo "${ECHO_T}no" >&6
4587 fi
4588
4589
4590
4591 enablestring=
4592 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
4593echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
4594 no_cache=0
4595 # Check whether --enable-protocols or --disable-protocols was given.
4596if test "${enable_protocols+set}" = set; then
4597 enableval="$enable_protocols"
4598
4599 if test "$enableval" = yes; then
4600 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
4601 else
4602 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
4603 fi
4604
4605else
4606
4607 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4608 if test "x$LINE" != x ; then
4609 eval "DEFAULT_$LINE"
4610 else
4611 no_cache=1
4612 fi
4613
4614 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4615
4616fi;
4617
4618 eval "$ac_cv_use_protocols"
4619 if test "$no_cache" != 1; then
4620 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
4621 fi
4622
4623 if test "$wxUSE_PROTOCOL" = yes; then
4624 echo "$as_me:$LINENO: result: yes" >&5
4625echo "${ECHO_T}yes" >&6
4626 else
4627 echo "$as_me:$LINENO: result: no" >&5
4628echo "${ECHO_T}no" >&6
4629 fi
4630
4631
4632 enablestring=
4633 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
4634echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
4635 no_cache=0
4636 # Check whether --enable-ftp or --disable-ftp was given.
4637if test "${enable_ftp+set}" = set; then
4638 enableval="$enable_ftp"
4639
4640 if test "$enableval" = yes; then
4641 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
4642 else
4643 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
4644 fi
4645
4646else
4647
4648 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4649 if test "x$LINE" != x ; then
4650 eval "DEFAULT_$LINE"
4651 else
4652 no_cache=1
4653 fi
4654
4655 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4656
4657fi;
4658
4659 eval "$ac_cv_use_ftp"
4660 if test "$no_cache" != 1; then
4661 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
4662 fi
4663
4664 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4665 echo "$as_me:$LINENO: result: yes" >&5
4666echo "${ECHO_T}yes" >&6
4667 else
4668 echo "$as_me:$LINENO: result: no" >&5
4669echo "${ECHO_T}no" >&6
4670 fi
4671
4672
4673 enablestring=
4674 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
4675echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
4676 no_cache=0
4677 # Check whether --enable-http or --disable-http was given.
4678if test "${enable_http+set}" = set; then
4679 enableval="$enable_http"
4680
4681 if test "$enableval" = yes; then
4682 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
4683 else
4684 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
4685 fi
4686
4687else
4688
4689 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4690 if test "x$LINE" != x ; then
4691 eval "DEFAULT_$LINE"
4692 else
4693 no_cache=1
4694 fi
4695
4696 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4697
4698fi;
4699
4700 eval "$ac_cv_use_http"
4701 if test "$no_cache" != 1; then
4702 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
4703 fi
4704
4705 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4706 echo "$as_me:$LINENO: result: yes" >&5
4707echo "${ECHO_T}yes" >&6
4708 else
4709 echo "$as_me:$LINENO: result: no" >&5
4710echo "${ECHO_T}no" >&6
4711 fi
4712
4713
4714 enablestring=
4715 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
4716echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
4717 no_cache=0
4718 # Check whether --enable-fileproto or --disable-fileproto was given.
4719if test "${enable_fileproto+set}" = set; then
4720 enableval="$enable_fileproto"
4721
4722 if test "$enableval" = yes; then
4723 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4724 else
4725 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4726 fi
4727
4728else
4729
4730 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4731 if test "x$LINE" != x ; then
4732 eval "DEFAULT_$LINE"
4733 else
4734 no_cache=1
4735 fi
4736
4737 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4738
4739fi;
4740
4741 eval "$ac_cv_use_fileproto"
4742 if test "$no_cache" != 1; then
4743 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4744 fi
4745
4746 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4747 echo "$as_me:$LINENO: result: yes" >&5
4748echo "${ECHO_T}yes" >&6
4749 else
4750 echo "$as_me:$LINENO: result: no" >&5
4751echo "${ECHO_T}no" >&6
4752 fi
4753
4754
4755 enablestring=
4756 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4757echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
4758 no_cache=0
4759 # Check whether --enable-sockets or --disable-sockets was given.
4760if test "${enable_sockets+set}" = set; then
4761 enableval="$enable_sockets"
4762
4763 if test "$enableval" = yes; then
4764 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4765 else
4766 ac_cv_use_sockets='wxUSE_SOCKETS=no'
4767 fi
4768
4769else
4770
4771 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4772 if test "x$LINE" != x ; then
4773 eval "DEFAULT_$LINE"
4774 else
4775 no_cache=1
4776 fi
4777
4778 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
4779
4780fi;
4781
4782 eval "$ac_cv_use_sockets"
4783 if test "$no_cache" != 1; then
4784 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4785 fi
4786
4787 if test "$wxUSE_SOCKETS" = yes; then
4788 echo "$as_me:$LINENO: result: yes" >&5
4789echo "${ECHO_T}yes" >&6
4790 else
4791 echo "$as_me:$LINENO: result: no" >&5
4792echo "${ECHO_T}no" >&6
4793 fi
4794
4795
4796 enablestring=
4797 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4798echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
4799 no_cache=0
4800 # Check whether --enable-ole or --disable-ole was given.
4801if test "${enable_ole+set}" = set; then
4802 enableval="$enable_ole"
4803
4804 if test "$enableval" = yes; then
4805 ac_cv_use_ole='wxUSE_OLE=yes'
4806 else
4807 ac_cv_use_ole='wxUSE_OLE=no'
4808 fi
4809
4810else
4811
4812 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4813 if test "x$LINE" != x ; then
4814 eval "DEFAULT_$LINE"
4815 else
4816 no_cache=1
4817 fi
4818
4819 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
4820
4821fi;
4822
4823 eval "$ac_cv_use_ole"
4824 if test "$no_cache" != 1; then
4825 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4826 fi
4827
4828 if test "$wxUSE_OLE" = yes; then
4829 echo "$as_me:$LINENO: result: yes" >&5
4830echo "${ECHO_T}yes" >&6
4831 else
4832 echo "$as_me:$LINENO: result: no" >&5
4833echo "${ECHO_T}no" >&6
4834 fi
4835
4836
4837 enablestring=
4838 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4839echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
4840 no_cache=0
4841 # Check whether --enable-dataobj or --disable-dataobj was given.
4842if test "${enable_dataobj+set}" = set; then
4843 enableval="$enable_dataobj"
4844
4845 if test "$enableval" = yes; then
4846 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4847 else
4848 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4849 fi
4850
4851else
4852
4853 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4854 if test "x$LINE" != x ; then
4855 eval "DEFAULT_$LINE"
4856 else
4857 no_cache=1
4858 fi
4859
4860 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
4861
4862fi;
4863
4864 eval "$ac_cv_use_dataobj"
4865 if test "$no_cache" != 1; then
4866 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4867 fi
4868
4869 if test "$wxUSE_DATAOBJ" = yes; then
4870 echo "$as_me:$LINENO: result: yes" >&5
4871echo "${ECHO_T}yes" >&6
4872 else
4873 echo "$as_me:$LINENO: result: no" >&5
4874echo "${ECHO_T}no" >&6
4875 fi
4876
4877
4878
4879 enablestring=
4880 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4881echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
4882 no_cache=0
4883 # Check whether --enable-ipc or --disable-ipc was given.
4884if test "${enable_ipc+set}" = set; then
4885 enableval="$enable_ipc"
4886
4887 if test "$enableval" = yes; then
4888 ac_cv_use_ipc='wxUSE_IPC=yes'
4889 else
4890 ac_cv_use_ipc='wxUSE_IPC=no'
4891 fi
4892
4893else
4894
4895 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
4896 if test "x$LINE" != x ; then
4897 eval "DEFAULT_$LINE"
4898 else
4899 no_cache=1
4900 fi
4901
4902 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
4903
4904fi;
4905
4906 eval "$ac_cv_use_ipc"
4907 if test "$no_cache" != 1; then
4908 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
4909 fi
4910
4911 if test "$wxUSE_IPC" = yes; then
4912 echo "$as_me:$LINENO: result: yes" >&5
4913echo "${ECHO_T}yes" >&6
4914 else
4915 echo "$as_me:$LINENO: result: no" >&5
4916echo "${ECHO_T}no" >&6
4917 fi
4918
4919
4920
4921 enablestring=
4922 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4923echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
4924 no_cache=0
4925 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4926if test "${enable_apple_ieee+set}" = set; then
4927 enableval="$enable_apple_ieee"
4928
4929 if test "$enableval" = yes; then
4930 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
4931 else
4932 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
4933 fi
4934
4935else
4936
4937 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
4938 if test "x$LINE" != x ; then
4939 eval "DEFAULT_$LINE"
4940 else
4941 no_cache=1
4942 fi
4943
4944 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
4945
4946fi;
4947
4948 eval "$ac_cv_use_apple_ieee"
4949 if test "$no_cache" != 1; then
4950 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
4951 fi
4952
4953 if test "$wxUSE_APPLE_IEEE" = yes; then
4954 echo "$as_me:$LINENO: result: yes" >&5
4955echo "${ECHO_T}yes" >&6
4956 else
4957 echo "$as_me:$LINENO: result: no" >&5
4958echo "${ECHO_T}no" >&6
4959 fi
4960
4961
81f90336
MW
4962 enablestring=
4963 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5
4964echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6
4965 no_cache=0
4966 # Check whether --enable-arcstream or --disable-arcstream was given.
4967if test "${enable_arcstream+set}" = set; then
4968 enableval="$enable_arcstream"
4969
4970 if test "$enableval" = yes; then
9e8e867f 4971 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes'
81f90336 4972 else
9e8e867f 4973 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no'
81f90336
MW
4974 fi
4975
4976else
4977
9e8e867f 4978 LINE=`grep "wxUSE_ARCHIVE_STREAMS" ${wx_arg_cache_file}`
81f90336
MW
4979 if test "x$LINE" != x ; then
4980 eval "DEFAULT_$LINE"
4981 else
4982 no_cache=1
4983 fi
4984
9e8e867f 4985 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS='$DEFAULT_wxUSE_ARCHIVE_STREAMS
81f90336
MW
4986
4987fi;
4988
4989 eval "$ac_cv_use_arcstream"
4990 if test "$no_cache" != 1; then
4991 echo $ac_cv_use_arcstream >> ${wx_arg_cache_file}.tmp
4992 fi
4993
9e8e867f 4994 if test "$wxUSE_ARCHIVE_STREAMS" = yes; then
81f90336
MW
4995 echo "$as_me:$LINENO: result: yes" >&5
4996echo "${ECHO_T}yes" >&6
4997 else
4998 echo "$as_me:$LINENO: result: no" >&5
4999echo "${ECHO_T}no" >&6
5000 fi
5001
5002
a848cd7e 5003 enablestring=
36b6448c
VZ
5004 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5
5005echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6
a848cd7e 5006 no_cache=0
36b6448c
VZ
5007 # Check whether --enable-backtrace or --disable-backtrace was given.
5008if test "${enable_backtrace+set}" = set; then
5009 enableval="$enable_backtrace"
a848cd7e
SC
5010
5011 if test "$enableval" = yes; then
36b6448c 5012 ac_cv_use_backtrace='wxUSE_STACKWALKER=yes'
a848cd7e 5013 else
36b6448c 5014 ac_cv_use_backtrace='wxUSE_STACKWALKER=no'
a848cd7e
SC
5015 fi
5016
5017else
5018
36b6448c 5019 LINE=`grep "wxUSE_STACKWALKER" ${wx_arg_cache_file}`
a848cd7e
SC
5020 if test "x$LINE" != x ; then
5021 eval "DEFAULT_$LINE"
5022 else
5023 no_cache=1
5024 fi
5025
36b6448c 5026 ac_cv_use_backtrace='wxUSE_STACKWALKER='$DEFAULT_wxUSE_STACKWALKER
a848cd7e
SC
5027
5028fi;
5029
36b6448c 5030 eval "$ac_cv_use_backtrace"
a848cd7e 5031 if test "$no_cache" != 1; then
36b6448c 5032 echo $ac_cv_use_backtrace >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
5033 fi
5034
36b6448c 5035 if test "$wxUSE_STACKWALKER" = yes; then
a848cd7e
SC
5036 echo "$as_me:$LINENO: result: yes" >&5
5037echo "${ECHO_T}yes" >&6
5038 else
5039 echo "$as_me:$LINENO: result: no" >&5
5040echo "${ECHO_T}no" >&6
5041 fi
5042
5043
eaff0f0d 5044 enablestring=
36b6448c
VZ
5045 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
5046echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
eaff0f0d 5047 no_cache=0
36b6448c
VZ
5048 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
5049if test "${enable_catch_segvs+set}" = set; then
5050 enableval="$enable_catch_segvs"
eaff0f0d
VZ
5051
5052 if test "$enableval" = yes; then
36b6448c 5053 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
eaff0f0d 5054 else
36b6448c 5055 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
eaff0f0d
VZ
5056 fi
5057
5058else
5059
36b6448c 5060 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
eaff0f0d
VZ
5061 if test "x$LINE" != x ; then
5062 eval "DEFAULT_$LINE"
5063 else
5064 no_cache=1
5065 fi
5066
36b6448c 5067 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
eaff0f0d
VZ
5068
5069fi;
5070
36b6448c 5071 eval "$ac_cv_use_catch_segvs"
eaff0f0d 5072 if test "$no_cache" != 1; then
36b6448c 5073 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
eaff0f0d
VZ
5074 fi
5075
36b6448c 5076 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
eaff0f0d
VZ
5077 echo "$as_me:$LINENO: result: yes" >&5
5078echo "${ECHO_T}yes" >&6
5079 else
5080 echo "$as_me:$LINENO: result: no" >&5
5081echo "${ECHO_T}no" >&6
5082 fi
5083
5084
a848cd7e
SC
5085 enablestring=
5086 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
5087echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
5088 no_cache=0
5089 # Check whether --enable-cmdline or --disable-cmdline was given.
5090if test "${enable_cmdline+set}" = set; then
5091 enableval="$enable_cmdline"
5092
5093 if test "$enableval" = yes; then
5094 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
5095 else
5096 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
5097 fi
5098
5099else
5100
5101 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
5102 if test "x$LINE" != x ; then
5103 eval "DEFAULT_$LINE"
5104 else
5105 no_cache=1
5106 fi
5107
5108 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
5109
5110fi;
5111
5112 eval "$ac_cv_use_cmdline"
5113 if test "$no_cache" != 1; then
5114 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
5115 fi
5116
5117 if test "$wxUSE_CMDLINE_PARSER" = yes; then
5118 echo "$as_me:$LINENO: result: yes" >&5
5119echo "${ECHO_T}yes" >&6
5120 else
5121 echo "$as_me:$LINENO: result: no" >&5
5122echo "${ECHO_T}no" >&6
5123 fi
5124
5125
5126 enablestring=
5127 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
5128echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
5129 no_cache=0
5130 # Check whether --enable-datetime or --disable-datetime was given.
5131if test "${enable_datetime+set}" = set; then
5132 enableval="$enable_datetime"
5133
5134 if test "$enableval" = yes; then
5135 ac_cv_use_datetime='wxUSE_DATETIME=yes'
5136 else
5137 ac_cv_use_datetime='wxUSE_DATETIME=no'
5138 fi
5139
5140else
5141
5142 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
5143 if test "x$LINE" != x ; then
5144 eval "DEFAULT_$LINE"
5145 else
5146 no_cache=1
5147 fi
5148
5149 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
5150
5151fi;
5152
5153 eval "$ac_cv_use_datetime"
5154 if test "$no_cache" != 1; then
5155 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
5156 fi
5157
5158 if test "$wxUSE_DATETIME" = yes; then
5159 echo "$as_me:$LINENO: result: yes" >&5
5160echo "${ECHO_T}yes" >&6
5161 else
5162 echo "$as_me:$LINENO: result: no" >&5
5163echo "${ECHO_T}no" >&6
5164 fi
5165
5166
36b6448c
VZ
5167 enablestring=
5168 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debugreport" >&5
5169echo $ECHO_N "checking for --${enablestring:-enable}-debugreport... $ECHO_C" >&6
5170 no_cache=0
5171 # Check whether --enable-debugreport or --disable-debugreport was given.
5172if test "${enable_debugreport+set}" = set; then
5173 enableval="$enable_debugreport"
5174
5175 if test "$enableval" = yes; then
5176 ac_cv_use_debugreport='wxUSE_DEBUGREPORT=yes'
5177 else
5178 ac_cv_use_debugreport='wxUSE_DEBUGREPORT=no'
5179 fi
5180
5181else
5182
5183 LINE=`grep "wxUSE_DEBUGREPORT" ${wx_arg_cache_file}`
5184 if test "x$LINE" != x ; then
5185 eval "DEFAULT_$LINE"
5186 else
5187 no_cache=1
5188 fi
5189
5190 ac_cv_use_debugreport='wxUSE_DEBUGREPORT='$DEFAULT_wxUSE_DEBUGREPORT
5191
5192fi;
5193
5194 eval "$ac_cv_use_debugreport"
5195 if test "$no_cache" != 1; then
5196 echo $ac_cv_use_debugreport >> ${wx_arg_cache_file}.tmp
5197 fi
5198
5199 if test "$wxUSE_DEBUGREPORT" = yes; then
5200 echo "$as_me:$LINENO: result: yes" >&5
5201echo "${ECHO_T}yes" >&6
5202 else
5203 echo "$as_me:$LINENO: result: no" >&5
5204echo "${ECHO_T}no" >&6
5205 fi
5206
5207
a848cd7e
SC
5208 enablestring=
5209 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
5210echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
5211 no_cache=0
5212 # Check whether --enable-dialupman or --disable-dialupman was given.
5213if test "${enable_dialupman+set}" = set; then
5214 enableval="$enable_dialupman"
5215
5216 if test "$enableval" = yes; then
5217 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
5218 else
5219 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
5220 fi
5221
5222else
5223
5224 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
5225 if test "x$LINE" != x ; then
5226 eval "DEFAULT_$LINE"
5227 else
5228 no_cache=1
5229 fi
5230
5231 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
5232
5233fi;
5234
5235 eval "$ac_cv_use_dialupman"
5236 if test "$no_cache" != 1; then
5237 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
5238 fi
5239
5240 if test "$wxUSE_DIALUP_MANAGER" = yes; then
5241 echo "$as_me:$LINENO: result: yes" >&5
5242echo "${ECHO_T}yes" >&6
5243 else
5244 echo "$as_me:$LINENO: result: no" >&5
5245echo "${ECHO_T}no" >&6
5246 fi
5247
5248
5249 enablestring=
5250 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
5251echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
5252 no_cache=0
5253 # Check whether --enable-dynlib or --disable-dynlib was given.
5254if test "${enable_dynlib+set}" = set; then
5255 enableval="$enable_dynlib"
5256
5257 if test "$enableval" = yes; then
5258 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
5259 else
5260 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
5261 fi
5262
5263else
5264
5265 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
5266 if test "x$LINE" != x ; then
5267 eval "DEFAULT_$LINE"
5268 else
5269 no_cache=1
5270 fi
5271
5272 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
5273
5274fi;
5275
5276 eval "$ac_cv_use_dynlib"
5277 if test "$no_cache" != 1; then
5278 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
5279 fi
5280
5281 if test "$wxUSE_DYNLIB_CLASS" = yes; then
5282 echo "$as_me:$LINENO: result: yes" >&5
5283echo "${ECHO_T}yes" >&6
5284 else
5285 echo "$as_me:$LINENO: result: no" >&5
5286echo "${ECHO_T}no" >&6
5287 fi
5288
5289
5290 enablestring=
5291 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
5292echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
5293 no_cache=0
5294 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
5295if test "${enable_dynamicloader+set}" = set; then
5296 enableval="$enable_dynamicloader"
5297
5298 if test "$enableval" = yes; then
5299 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
5300 else
5301 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
5302 fi
5303
5304else
5305
5306 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
5307 if test "x$LINE" != x ; then
5308 eval "DEFAULT_$LINE"
5309 else
5310 no_cache=1
5311 fi
5312
5313 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
5314
5315fi;
5316
5317 eval "$ac_cv_use_dynamicloader"
5318 if test "$no_cache" != 1; then
5319 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
5320 fi
5321
5322 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
5323 echo "$as_me:$LINENO: result: yes" >&5
5324echo "${ECHO_T}yes" >&6
5325 else
5326 echo "$as_me:$LINENO: result: no" >&5
5327echo "${ECHO_T}no" >&6
5328 fi
5329
5330
5331 enablestring=
5332 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
5333echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6
5334 no_cache=0
5335 # Check whether --enable-exceptions or --disable-exceptions was given.
5336if test "${enable_exceptions+set}" = set; then
5337 enableval="$enable_exceptions"
5338
5339 if test "$enableval" = yes; then
5340 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
5341 else
5342 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
5343 fi
5344
5345else
5346
5347 LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}`
5348 if test "x$LINE" != x ; then
5349 eval "DEFAULT_$LINE"
5350 else
5351 no_cache=1
5352 fi
5353
5354 ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS
5355
5356fi;
5357
5358 eval "$ac_cv_use_exceptions"
5359 if test "$no_cache" != 1; then
5360 echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp
5361 fi
5362
5363 if test "$wxUSE_EXCEPTIONS" = yes; then
5364 echo "$as_me:$LINENO: result: yes" >&5
5365echo "${ECHO_T}yes" >&6
5366 else
5367 echo "$as_me:$LINENO: result: no" >&5
5368echo "${ECHO_T}no" >&6
5369 fi
5370
5371
5372 enablestring=
5373 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
5374echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
5375 no_cache=0
5376 # Check whether --enable-ffile or --disable-ffile was given.
5377if test "${enable_ffile+set}" = set; then
5378 enableval="$enable_ffile"
5379
5380 if test "$enableval" = yes; then
5381 ac_cv_use_ffile='wxUSE_FFILE=yes'
5382 else
5383 ac_cv_use_ffile='wxUSE_FFILE=no'
5384 fi
5385
5386else
5387
5388 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
5389 if test "x$LINE" != x ; then
5390 eval "DEFAULT_$LINE"
5391 else
5392 no_cache=1
5393 fi
5394
5395 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
5396
5397fi;
5398
5399 eval "$ac_cv_use_ffile"
5400 if test "$no_cache" != 1; then
5401 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
5402 fi
5403
5404 if test "$wxUSE_FFILE" = yes; then
5405 echo "$as_me:$LINENO: result: yes" >&5
5406echo "${ECHO_T}yes" >&6
5407 else
5408 echo "$as_me:$LINENO: result: no" >&5
5409echo "${ECHO_T}no" >&6
5410 fi
5411
5412
5413 enablestring=
5414 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
5415echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
5416 no_cache=0
5417 # Check whether --enable-file or --disable-file was given.
5418if test "${enable_file+set}" = set; then
5419 enableval="$enable_file"
5420
5421 if test "$enableval" = yes; then
5422 ac_cv_use_file='wxUSE_FILE=yes'
5423 else
5424 ac_cv_use_file='wxUSE_FILE=no'
5425 fi
5426
5427else
5428
5429 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
5430 if test "x$LINE" != x ; then
5431 eval "DEFAULT_$LINE"
5432 else
5433 no_cache=1
5434 fi
5435
5436 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
5437
5438fi;
5439
5440 eval "$ac_cv_use_file"
5441 if test "$no_cache" != 1; then
5442 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
5443 fi
5444
5445 if test "$wxUSE_FILE" = yes; then
5446 echo "$as_me:$LINENO: result: yes" >&5
5447echo "${ECHO_T}yes" >&6
5448 else
5449 echo "$as_me:$LINENO: result: no" >&5
5450echo "${ECHO_T}no" >&6
5451 fi
5452
5453
5454 enablestring=
5455 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
5456echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
5457 no_cache=0
5458 # Check whether --enable-filesystem or --disable-filesystem was given.
5459if test "${enable_filesystem+set}" = set; then
5460 enableval="$enable_filesystem"
5461
5462 if test "$enableval" = yes; then
5463 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
5464 else
5465 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
5466 fi
5467
5468else
5469
5470 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
5471 if test "x$LINE" != x ; then
5472 eval "DEFAULT_$LINE"
5473 else
5474 no_cache=1
5475 fi
5476
5477 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
5478
5479fi;
5480
5481 eval "$ac_cv_use_filesystem"
5482 if test "$no_cache" != 1; then
5483 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
5484 fi
5485
5486 if test "$wxUSE_FILESYSTEM" = yes; then
5487 echo "$as_me:$LINENO: result: yes" >&5
5488echo "${ECHO_T}yes" >&6
5489 else
5490 echo "$as_me:$LINENO: result: no" >&5
5491echo "${ECHO_T}no" >&6
5492 fi
5493
5494
5495 enablestring=
5496 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
5497echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
5498 no_cache=0
5499 # Check whether --enable-fontmap or --disable-fontmap was given.
5500if test "${enable_fontmap+set}" = set; then
5501 enableval="$enable_fontmap"
5502
5503 if test "$enableval" = yes; then
5504 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
5505 else
5506 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
5507 fi
5508
5509else
5510
5511 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
5512 if test "x$LINE" != x ; then
5513 eval "DEFAULT_$LINE"
5514 else
5515 no_cache=1
5516 fi
5517
5518 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
5519
5520fi;
5521
5522 eval "$ac_cv_use_fontmap"
5523 if test "$no_cache" != 1; then
5524 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
5525 fi
5526
5527 if test "$wxUSE_FONTMAP" = yes; then
5528 echo "$as_me:$LINENO: result: yes" >&5
5529echo "${ECHO_T}yes" >&6
5530 else
5531 echo "$as_me:$LINENO: result: no" >&5
5532echo "${ECHO_T}no" >&6
5533 fi
5534
5535
5536 enablestring=
5537 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
5538echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
5539 no_cache=0
5540 # Check whether --enable-fs_inet or --disable-fs_inet was given.
5541if test "${enable_fs_inet+set}" = set; then
5542 enableval="$enable_fs_inet"
5543
5544 if test "$enableval" = yes; then
5545 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
5546 else
5547 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
5548 fi
5549
5550else
5551
5552 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
5553 if test "x$LINE" != x ; then
5554 eval "DEFAULT_$LINE"
5555 else
5556 no_cache=1
5557 fi
5558
5559 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
5560
5561fi;
5562
5563 eval "$ac_cv_use_fs_inet"
5564 if test "$no_cache" != 1; then
5565 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
5566 fi
5567
5568 if test "$wxUSE_FS_INET" = yes; then
5569 echo "$as_me:$LINENO: result: yes" >&5
5570echo "${ECHO_T}yes" >&6
5571 else
5572 echo "$as_me:$LINENO: result: no" >&5
5573echo "${ECHO_T}no" >&6
5574 fi
5575
5576
5577 enablestring=
5578 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
5579echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
5580 no_cache=0
5581 # Check whether --enable-fs_zip or --disable-fs_zip was given.
5582if test "${enable_fs_zip+set}" = set; then
5583 enableval="$enable_fs_zip"
5584
5585 if test "$enableval" = yes; then
5586 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
5587 else
5588 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
5589 fi
5590
5591else
5592
5593 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
5594 if test "x$LINE" != x ; then
5595 eval "DEFAULT_$LINE"
5596 else
5597 no_cache=1
5598 fi
5599
5600 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
5601
5602fi;
5603
5604 eval "$ac_cv_use_fs_zip"
5605 if test "$no_cache" != 1; then
5606 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
5607 fi
5608
5609 if test "$wxUSE_FS_ZIP" = yes; then
5610 echo "$as_me:$LINENO: result: yes" >&5
5611echo "${ECHO_T}yes" >&6
5612 else
5613 echo "$as_me:$LINENO: result: no" >&5
5614echo "${ECHO_T}no" >&6
5615 fi
5616
5617
5618 enablestring=
5619 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
5620echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
5621 no_cache=0
5622 # Check whether --enable-geometry or --disable-geometry was given.
5623if test "${enable_geometry+set}" = set; then
5624 enableval="$enable_geometry"
5625
5626 if test "$enableval" = yes; then
5627 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
5628 else
5629 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
5630 fi
5631
5632else
5633
5634 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
5635 if test "x$LINE" != x ; then
5636 eval "DEFAULT_$LINE"
5637 else
5638 no_cache=1
5639 fi
5640
5641 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
5642
5643fi;
5644
5645 eval "$ac_cv_use_geometry"
5646 if test "$no_cache" != 1; then
5647 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
5648 fi
5649
5650 if test "$wxUSE_GEOMETRY" = yes; then
5651 echo "$as_me:$LINENO: result: yes" >&5
5652echo "${ECHO_T}yes" >&6
5653 else
5654 echo "$as_me:$LINENO: result: no" >&5
5655echo "${ECHO_T}no" >&6
5656 fi
5657
5658
5659 enablestring=
5660 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
5661echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
5662 no_cache=0
5663 # Check whether --enable-log or --disable-log was given.
5664if test "${enable_log+set}" = set; then
5665 enableval="$enable_log"
5666
5667 if test "$enableval" = yes; then
5668 ac_cv_use_log='wxUSE_LOG=yes'
5669 else
5670 ac_cv_use_log='wxUSE_LOG=no'
5671 fi
5672
5673else
5674
5675 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
5676 if test "x$LINE" != x ; then
5677 eval "DEFAULT_$LINE"
5678 else
5679 no_cache=1
5680 fi
5681
5682 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
5683
5684fi;
5685
5686 eval "$ac_cv_use_log"
5687 if test "$no_cache" != 1; then
5688 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
5689 fi
5690
5691 if test "$wxUSE_LOG" = yes; then
5692 echo "$as_me:$LINENO: result: yes" >&5
5693echo "${ECHO_T}yes" >&6
5694 else
5695 echo "$as_me:$LINENO: result: no" >&5
5696echo "${ECHO_T}no" >&6
5697 fi
5698
5699
5700 enablestring=
5701 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
5702echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
5703 no_cache=0
5704 # Check whether --enable-longlong or --disable-longlong was given.
5705if test "${enable_longlong+set}" = set; then
5706 enableval="$enable_longlong"
5707
5708 if test "$enableval" = yes; then
5709 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
5710 else
5711 ac_cv_use_longlong='wxUSE_LONGLONG=no'
5712 fi
5713
5714else
5715
5716 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
5717 if test "x$LINE" != x ; then
5718 eval "DEFAULT_$LINE"
5719 else
5720 no_cache=1
5721 fi
5722
5723 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
5724
5725fi;
5726
5727 eval "$ac_cv_use_longlong"
5728 if test "$no_cache" != 1; then
5729 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
5730 fi
5731
5732 if test "$wxUSE_LONGLONG" = yes; then
5733 echo "$as_me:$LINENO: result: yes" >&5
5734echo "${ECHO_T}yes" >&6
5735 else
5736 echo "$as_me:$LINENO: result: no" >&5
5737echo "${ECHO_T}no" >&6
5738 fi
5739
5740
5741 enablestring=
5742 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5743echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
5744 no_cache=0
5745 # Check whether --enable-mimetype or --disable-mimetype was given.
5746if test "${enable_mimetype+set}" = set; then
5747 enableval="$enable_mimetype"
5748
5749 if test "$enableval" = yes; then
5750 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5751 else
5752 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5753 fi
5754
5755else
5756
5757 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5758 if test "x$LINE" != x ; then
5759 eval "DEFAULT_$LINE"
5760 else
5761 no_cache=1
5762 fi
5763
5764 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
5765
5766fi;
5767
5768 eval "$ac_cv_use_mimetype"
5769 if test "$no_cache" != 1; then
5770 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5771 fi
5772
5773 if test "$wxUSE_MIMETYPE" = yes; then
5774 echo "$as_me:$LINENO: result: yes" >&5
5775echo "${ECHO_T}yes" >&6
5776 else
5777 echo "$as_me:$LINENO: result: no" >&5
5778echo "${ECHO_T}no" >&6
5779 fi
5780
5781
5782 enablestring=
5783 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5784echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
5785 no_cache=0
5786 # Check whether --enable-mslu or --disable-mslu was given.
5787if test "${enable_mslu+set}" = set; then
5788 enableval="$enable_mslu"
5789
5790 if test "$enableval" = yes; then
5791 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5792 else
5793 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5794 fi
5795
5796else
5797
5798 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5799 if test "x$LINE" != x ; then
5800 eval "DEFAULT_$LINE"
5801 else
5802 no_cache=1
5803 fi
5804
5805 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
5806
5807fi;
5808
5809 eval "$ac_cv_use_mslu"
5810 if test "$no_cache" != 1; then
5811 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5812 fi
5813
5814 if test "$wxUSE_UNICODE_MSLU" = yes; then
5815 echo "$as_me:$LINENO: result: yes" >&5
5816echo "${ECHO_T}yes" >&6
5817 else
5818 echo "$as_me:$LINENO: result: no" >&5
5819echo "${ECHO_T}no" >&6
5820 fi
5821
5822
5823 enablestring=
5824 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5825echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
5826 no_cache=0
5827 # Check whether --enable-snglinst or --disable-snglinst was given.
5828if test "${enable_snglinst+set}" = set; then
5829 enableval="$enable_snglinst"
5830
5831 if test "$enableval" = yes; then
5832 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
5833 else
5834 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
5835 fi
5836
5837else
5838
5839 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
5840 if test "x$LINE" != x ; then
5841 eval "DEFAULT_$LINE"
5842 else
5843 no_cache=1
5844 fi
5845
5846 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
5847
5848fi;
5849
5850 eval "$ac_cv_use_snglinst"
5851 if test "$no_cache" != 1; then
5852 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
5853 fi
5854
5855 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
5856 echo "$as_me:$LINENO: result: yes" >&5
5857echo "${ECHO_T}yes" >&6
5858 else
5859 echo "$as_me:$LINENO: result: no" >&5
5860echo "${ECHO_T}no" >&6
5861 fi
5862
5863
5864 enablestring=
07158944
VZ
5865 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5866echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
a848cd7e 5867 no_cache=0
07158944
VZ
5868 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5869if test "${enable_std_iostreams+set}" = set; then
5870 enableval="$enable_std_iostreams"
a848cd7e
SC
5871
5872 if test "$enableval" = yes; then
07158944 5873 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
a848cd7e 5874 else
07158944 5875 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
a848cd7e
SC
5876 fi
5877
5878else
5879
07158944 5880 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
a848cd7e
SC
5881 if test "x$LINE" != x ; then
5882 eval "DEFAULT_$LINE"
5883 else
5884 no_cache=1
5885 fi
5886
07158944 5887 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
a848cd7e
SC
5888
5889fi;
5890
07158944 5891 eval "$ac_cv_use_std_iostreams"
a848cd7e 5892 if test "$no_cache" != 1; then
07158944 5893 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
5894 fi
5895
07158944 5896 if test "$wxUSE_STD_IOSTREAM" = yes; then
a848cd7e
SC
5897 echo "$as_me:$LINENO: result: yes" >&5
5898echo "${ECHO_T}yes" >&6
5899 else
5900 echo "$as_me:$LINENO: result: no" >&5
5901echo "${ECHO_T}no" >&6
5902 fi
5903
5904
59746b65
MW
5905 enablestring=
5906 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_string" >&5
5907echo $ECHO_N "checking for --${enablestring:-enable}-std_string... $ECHO_C" >&6
5908 no_cache=0
5909 # Check whether --enable-std_string or --disable-std_string was given.
5910if test "${enable_std_string+set}" = set; then
5911 enableval="$enable_std_string"
5912
5913 if test "$enableval" = yes; then
5914 ac_cv_use_std_string='wxUSE_STD_STRING=yes'
5915 else
5916 ac_cv_use_std_string='wxUSE_STD_STRING=no'
5917 fi
5918
5919else
5920
5921 LINE=`grep "wxUSE_STD_STRING" ${wx_arg_cache_file}`
5922 if test "x$LINE" != x ; then
5923 eval "DEFAULT_$LINE"
5924 else
5925 no_cache=1
5926 fi
5927
5928 ac_cv_use_std_string='wxUSE_STD_STRING='$DEFAULT_wxUSE_STD_STRING
5929
5930fi;
5931
5932 eval "$ac_cv_use_std_string"
5933 if test "$no_cache" != 1; then
5934 echo $ac_cv_use_std_string >> ${wx_arg_cache_file}.tmp
5935 fi
5936
5937 if test "$wxUSE_STD_STRING" = yes; then
5938 echo "$as_me:$LINENO: result: yes" >&5
5939echo "${ECHO_T}yes" >&6
5940 else
5941 echo "$as_me:$LINENO: result: no" >&5
5942echo "${ECHO_T}no" >&6
5943 fi
5944
5945
a848cd7e 5946 enablestring=
07158944
VZ
5947 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stdpaths" >&5
5948echo $ECHO_N "checking for --${enablestring:-enable}-stdpaths... $ECHO_C" >&6
a848cd7e 5949 no_cache=0
07158944
VZ
5950 # Check whether --enable-stdpaths or --disable-stdpaths was given.
5951if test "${enable_stdpaths+set}" = set; then
5952 enableval="$enable_stdpaths"
a848cd7e
SC
5953
5954 if test "$enableval" = yes; then
07158944 5955 ac_cv_use_stdpaths='wxUSE_STDPATHS=yes'
a848cd7e 5956 else
07158944 5957 ac_cv_use_stdpaths='wxUSE_STDPATHS=no'
a848cd7e
SC
5958 fi
5959
5960else
5961
07158944 5962 LINE=`grep "wxUSE_STDPATHS" ${wx_arg_cache_file}`
a848cd7e
SC
5963 if test "x$LINE" != x ; then
5964 eval "DEFAULT_$LINE"
5965 else
5966 no_cache=1
5967 fi
5968
07158944 5969 ac_cv_use_stdpaths='wxUSE_STDPATHS='$DEFAULT_wxUSE_STDPATHS
a848cd7e
SC
5970
5971fi;
5972
07158944 5973 eval "$ac_cv_use_stdpaths"
a848cd7e 5974 if test "$no_cache" != 1; then
07158944 5975 echo $ac_cv_use_stdpaths >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
5976 fi
5977
07158944 5978 if test "$wxUSE_STDPATHS" = yes; then
a848cd7e
SC
5979 echo "$as_me:$LINENO: result: yes" >&5
5980echo "${ECHO_T}yes" >&6
5981 else
5982 echo "$as_me:$LINENO: result: no" >&5
5983echo "${ECHO_T}no" >&6
5984 fi
5985
5986
5987 enablestring=
5988 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
5989echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
5990 no_cache=0
5991 # Check whether --enable-stopwatch or --disable-stopwatch was given.
5992if test "${enable_stopwatch+set}" = set; then
5993 enableval="$enable_stopwatch"
5994
5995 if test "$enableval" = yes; then
5996 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
5997 else
5998 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
5999 fi
6000
6001else
6002
6003 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
6004 if test "x$LINE" != x ; then
6005 eval "DEFAULT_$LINE"
6006 else
6007 no_cache=1
6008 fi
6009
6010 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
6011
6012fi;
6013
6014 eval "$ac_cv_use_stopwatch"
6015 if test "$no_cache" != 1; then
6016 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
6017 fi
6018
6019 if test "$wxUSE_STOPWATCH" = yes; then
6020 echo "$as_me:$LINENO: result: yes" >&5
6021echo "${ECHO_T}yes" >&6
6022 else
6023 echo "$as_me:$LINENO: result: no" >&5
6024echo "${ECHO_T}no" >&6
6025 fi
6026
6027
07158944
VZ
6028 enablestring=
6029 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
6030echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
6031 no_cache=0
6032 # Check whether --enable-streams or --disable-streams was given.
6033if test "${enable_streams+set}" = set; then
6034 enableval="$enable_streams"
6035
6036 if test "$enableval" = yes; then
6037 ac_cv_use_streams='wxUSE_STREAMS=yes'
6038 else
6039 ac_cv_use_streams='wxUSE_STREAMS=no'
6040 fi
6041
6042else
6043
6044 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
6045 if test "x$LINE" != x ; then
6046 eval "DEFAULT_$LINE"
6047 else
6048 no_cache=1
6049 fi
6050
6051 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
6052
6053fi;
6054
6055 eval "$ac_cv_use_streams"
6056 if test "$no_cache" != 1; then
6057 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
6058 fi
6059
6060 if test "$wxUSE_STREAMS" = yes; then
6061 echo "$as_me:$LINENO: result: yes" >&5
6062echo "${ECHO_T}yes" >&6
6063 else
6064 echo "$as_me:$LINENO: result: no" >&5
6065echo "${ECHO_T}no" >&6
6066 fi
6067
6068
a848cd7e
SC
6069 enablestring=
6070 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
6071echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
6072 no_cache=0
6073 # Check whether --enable-system_options or --disable-system_options was given.
6074if test "${enable_system_options+set}" = set; then
6075 enableval="$enable_system_options"
6076
6077 if test "$enableval" = yes; then
6078 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
6079 else
6080 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
6081 fi
6082
6083else
6084
6085 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
6086 if test "x$LINE" != x ; then
6087 eval "DEFAULT_$LINE"
6088 else
6089 no_cache=1
6090 fi
6091
6092 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
6093
6094fi;
6095
6096 eval "$ac_cv_use_system_options"
6097 if test "$no_cache" != 1; then
6098 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
6099 fi
6100
6101 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
6102 echo "$as_me:$LINENO: result: yes" >&5
6103echo "${ECHO_T}yes" >&6
6104 else
6105 echo "$as_me:$LINENO: result: no" >&5
6106echo "${ECHO_T}no" >&6
6107 fi
6108
6109
6110 enablestring=
6111 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
6112echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
6113 no_cache=0
6114 # Check whether --enable-textbuf or --disable-textbuf was given.
6115if test "${enable_textbuf+set}" = set; then
6116 enableval="$enable_textbuf"
6117
6118 if test "$enableval" = yes; then
6119 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
6120 else
6121 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
6122 fi
6123
6124else
6125
6126 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
6127 if test "x$LINE" != x ; then
6128 eval "DEFAULT_$LINE"
6129 else
6130 no_cache=1
6131 fi
6132
6133 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
6134
6135fi;
6136
6137 eval "$ac_cv_use_textbuf"
6138 if test "$no_cache" != 1; then
6139 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
6140 fi
6141
6142 if test "$wxUSE_TEXTBUFFER" = yes; then
6143 echo "$as_me:$LINENO: result: yes" >&5
6144echo "${ECHO_T}yes" >&6
6145 else
6146 echo "$as_me:$LINENO: result: no" >&5
6147echo "${ECHO_T}no" >&6
6148 fi
6149
6150
6151 enablestring=
6152 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
6153echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
6154 no_cache=0
6155 # Check whether --enable-textfile or --disable-textfile was given.
6156if test "${enable_textfile+set}" = set; then
6157 enableval="$enable_textfile"
6158
6159 if test "$enableval" = yes; then
6160 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
6161 else
6162 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
6163 fi
6164
6165else
6166
6167 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
6168 if test "x$LINE" != x ; then
6169 eval "DEFAULT_$LINE"
6170 else
6171 no_cache=1
6172 fi
6173
6174 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
6175
6176fi;
6177
6178 eval "$ac_cv_use_textfile"
6179 if test "$no_cache" != 1; then
6180 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
6181 fi
6182
6183 if test "$wxUSE_TEXTFILE" = yes; then
6184 echo "$as_me:$LINENO: result: yes" >&5
6185echo "${ECHO_T}yes" >&6
6186 else
6187 echo "$as_me:$LINENO: result: no" >&5
6188echo "${ECHO_T}no" >&6
6189 fi
6190
6191
6192 enablestring=
6193 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
6194echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
6195 no_cache=0
6196 # Check whether --enable-timer or --disable-timer was given.
6197if test "${enable_timer+set}" = set; then
6198 enableval="$enable_timer"
6199
6200 if test "$enableval" = yes; then
6201 ac_cv_use_timer='wxUSE_TIMER=yes'
6202 else
6203 ac_cv_use_timer='wxUSE_TIMER=no'
6204 fi
6205
6206else
6207
6208 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
6209 if test "x$LINE" != x ; then
6210 eval "DEFAULT_$LINE"
6211 else
6212 no_cache=1
6213 fi
6214
6215 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
6216
6217fi;
6218
6219 eval "$ac_cv_use_timer"
6220 if test "$no_cache" != 1; then
6221 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
6222 fi
6223
6224 if test "$wxUSE_TIMER" = yes; then
6225 echo "$as_me:$LINENO: result: yes" >&5
6226echo "${ECHO_T}yes" >&6
6227 else
6228 echo "$as_me:$LINENO: result: no" >&5
6229echo "${ECHO_T}no" >&6
6230 fi
6231
6232
6233 enablestring=
6234 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
6235echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
6236 no_cache=0
6237 # Check whether --enable-unicode or --disable-unicode was given.
6238if test "${enable_unicode+set}" = set; then
6239 enableval="$enable_unicode"
6240
6241 if test "$enableval" = yes; then
6242 ac_cv_use_unicode='wxUSE_UNICODE=yes'
6243 else
6244 ac_cv_use_unicode='wxUSE_UNICODE=no'
6245 fi
6246
6247else
6248
6249 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
6250 if test "x$LINE" != x ; then
6251 eval "DEFAULT_$LINE"
6252 else
6253 no_cache=1
6254 fi
6255
6256 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
6257
6258fi;
6259
6260 eval "$ac_cv_use_unicode"
6261 if test "$no_cache" != 1; then
6262 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
6263 fi
6264
6265 if test "$wxUSE_UNICODE" = yes; then
6266 echo "$as_me:$LINENO: result: yes" >&5
6267echo "${ECHO_T}yes" >&6
6268 else
6269 echo "$as_me:$LINENO: result: no" >&5
6270echo "${ECHO_T}no" >&6
6271 fi
6272
6273
6274 enablestring=
6275 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
6276echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6
6277 no_cache=0
6278 # Check whether --enable-sound or --disable-sound was given.
6279if test "${enable_sound+set}" = set; then
6280 enableval="$enable_sound"
6281
6282 if test "$enableval" = yes; then
6283 ac_cv_use_sound='wxUSE_SOUND=yes'
6284 else
6285 ac_cv_use_sound='wxUSE_SOUND=no'
6286 fi
6287
6288else
6289
6290 LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}`
6291 if test "x$LINE" != x ; then
6292 eval "DEFAULT_$LINE"
6293 else
6294 no_cache=1
6295 fi
6296
6297 ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND
6298
6299fi;
6300
6301 eval "$ac_cv_use_sound"
6302 if test "$no_cache" != 1; then
6303 echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp
6304 fi
6305
6306 if test "$wxUSE_SOUND" = yes; then
6307 echo "$as_me:$LINENO: result: yes" >&5
6308echo "${ECHO_T}yes" >&6
6309 else
6310 echo "$as_me:$LINENO: result: no" >&5
6311echo "${ECHO_T}no" >&6
6312 fi
6313
6314
3b57de8b
RL
6315 enablestring=
6316 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5
6317echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6
6318 no_cache=0
6319 # Check whether --enable-mediactrl or --disable-mediactrl was given.
6320if test "${enable_mediactrl+set}" = set; then
6321 enableval="$enable_mediactrl"
6322
6323 if test "$enableval" = yes; then
6324 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=yes'
6325 else
6326 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=no'
6327 fi
6328
6329else
6330
6331 LINE=`grep "wxUSE_MEDIACTRL" ${wx_arg_cache_file}`
6332 if test "x$LINE" != x ; then
6333 eval "DEFAULT_$LINE"
6334 else
6335 no_cache=1
6336 fi
6337
6338 ac_cv_use_mediactrl='wxUSE_MEDIACTRL='$DEFAULT_wxUSE_MEDIACTRL
6339
6340fi;
6341
6342 eval "$ac_cv_use_mediactrl"
6343 if test "$no_cache" != 1; then
6344 echo $ac_cv_use_mediactrl >> ${wx_arg_cache_file}.tmp
6345 fi
6346
6347 if test "$wxUSE_MEDIACTRL" = yes; then
6348 echo "$as_me:$LINENO: result: yes" >&5
6349echo "${ECHO_T}yes" >&6
6350 else
6351 echo "$as_me:$LINENO: result: no" >&5
6352echo "${ECHO_T}no" >&6
6353 fi
6354
6355
f10e38c4
VZ
6356 enablestring=
6357 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gstreamer8" >&5
6358echo $ECHO_N "checking for --${enablestring:-enable}-gstreamer8... $ECHO_C" >&6
6359 no_cache=0
6360 # Check whether --enable-gstreamer8 or --disable-gstreamer8 was given.
6361if test "${enable_gstreamer8+set}" = set; then
6362 enableval="$enable_gstreamer8"
6363
6364 if test "$enableval" = yes; then
6365 ac_cv_use_gstreamer8='wxUSE_GSTREAMER8=yes'
6366 else
6367 ac_cv_use_gstreamer8='wxUSE_GSTREAMER8=no'
6368 fi
6369
6370else
6371
6372 LINE=`grep "wxUSE_GSTREAMER8" ${wx_arg_cache_file}`
6373 if test "x$LINE" != x ; then
6374 eval "DEFAULT_$LINE"
6375 else
6376 no_cache=1
6377 fi
6378
6379 ac_cv_use_gstreamer8='wxUSE_GSTREAMER8='$DEFAULT_wxUSE_GSTREAMER8
6380
6381fi;
6382
6383 eval "$ac_cv_use_gstreamer8"
6384 if test "$no_cache" != 1; then
6385 echo $ac_cv_use_gstreamer8 >> ${wx_arg_cache_file}.tmp
6386 fi
6387
6388 if test "$wxUSE_GSTREAMER8" = yes; then
6389 echo "$as_me:$LINENO: result: yes" >&5
6390echo "${ECHO_T}yes" >&6
6391 else
6392 echo "$as_me:$LINENO: result: no" >&5
6393echo "${ECHO_T}no" >&6
6394 fi
6395
6396
a848cd7e 6397 enablestring=
8b6682b9
JS
6398 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printfposparam" >&5
6399echo $ECHO_N "checking for --${enablestring:-enable}-printfposparam... $ECHO_C" >&6
a848cd7e 6400 no_cache=0
8b6682b9
JS
6401 # Check whether --enable-printfposparam or --disable-printfposparam was given.
6402if test "${enable_printfposparam+set}" = set; then
6403 enableval="$enable_printfposparam"
a848cd7e
SC
6404
6405 if test "$enableval" = yes; then
8b6682b9 6406 ac_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=yes'
a848cd7e 6407 else
8b6682b9 6408 ac_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=no'
a848cd7e
SC
6409 fi
6410
6411else
6412
8b6682b9 6413 LINE=`grep "wxUSE_PRINTF_POS_PARAMS" ${wx_arg_cache_file}`
a848cd7e
SC
6414 if test "x$LINE" != x ; then
6415 eval "DEFAULT_$LINE"
6416 else
6417 no_cache=1
6418 fi
6419
8b6682b9 6420 ac_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS='$DEFAULT_wxUSE_PRINTF_POS_PARAMS
a848cd7e
SC
6421
6422fi;
6423
8b6682b9 6424 eval "$ac_cv_use_printfposparam"
a848cd7e 6425 if test "$no_cache" != 1; then
8b6682b9 6426 echo $ac_cv_use_printfposparam >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
6427 fi
6428
8b6682b9 6429 if test "$wxUSE_PRINTF_POS_PARAMS" = yes; then
a848cd7e
SC
6430 echo "$as_me:$LINENO: result: yes" >&5
6431echo "${ECHO_T}yes" >&6
6432 else
6433 echo "$as_me:$LINENO: result: no" >&5
6434echo "${ECHO_T}no" >&6
6435 fi
6436
6437
6438 enablestring=
6439 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
6440echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
6441 no_cache=0
6442 # Check whether --enable-zipstream or --disable-zipstream was given.
6443if test "${enable_zipstream+set}" = set; then
6444 enableval="$enable_zipstream"
6445
6446 if test "$enableval" = yes; then
6447 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
6448 else
6449 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
6450 fi
6451
6452else
6453
6454 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
6455 if test "x$LINE" != x ; then
6456 eval "DEFAULT_$LINE"
6457 else
6458 no_cache=1
6459 fi
6460
6461 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
6462
6463fi;
6464
6465 eval "$ac_cv_use_zipstream"
6466 if test "$no_cache" != 1; then
6467 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
6468 fi
6469
6470 if test "$wxUSE_ZIPSTREAM" = yes; then
6471 echo "$as_me:$LINENO: result: yes" >&5
6472echo "${ECHO_T}yes" >&6
6473 else
6474 echo "$as_me:$LINENO: result: no" >&5
6475echo "${ECHO_T}no" >&6
6476 fi
6477
6478
a848cd7e
SC
6479
6480 enablestring=
6481 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
6482echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
6483 no_cache=0
6484 # Check whether --enable-url or --disable-url was given.
6485if test "${enable_url+set}" = set; then
6486 enableval="$enable_url"
6487
6488 if test "$enableval" = yes; then
6489 ac_cv_use_url='wxUSE_URL=yes'
6490 else
6491 ac_cv_use_url='wxUSE_URL=no'
6492 fi
6493
6494else
6495
6496 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
6497 if test "x$LINE" != x ; then
6498 eval "DEFAULT_$LINE"
6499 else
6500 no_cache=1
6501 fi
6502
6503 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
6504
6505fi;
6506
6507 eval "$ac_cv_use_url"
6508 if test "$no_cache" != 1; then
6509 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
6510 fi
6511
6512 if test "$wxUSE_URL" = yes; then
6513 echo "$as_me:$LINENO: result: yes" >&5
6514echo "${ECHO_T}yes" >&6
6515 else
6516 echo "$as_me:$LINENO: result: no" >&5
6517echo "${ECHO_T}no" >&6
6518 fi
6519
6520
6521 enablestring=
6522 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
6523echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
6524 no_cache=0
6525 # Check whether --enable-protocol or --disable-protocol was given.
6526if test "${enable_protocol+set}" = set; then
6527 enableval="$enable_protocol"
6528
6529 if test "$enableval" = yes; then
6530 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
6531 else
6532 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
6533 fi
6534
6535else
6536
6537 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
6538 if test "x$LINE" != x ; then
6539 eval "DEFAULT_$LINE"
6540 else
6541 no_cache=1
6542 fi
6543
6544 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
6545
6546fi;
6547
6548 eval "$ac_cv_use_protocol"
6549 if test "$no_cache" != 1; then
6550 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
6551 fi
6552
6553 if test "$wxUSE_PROTOCOL" = yes; then
6554 echo "$as_me:$LINENO: result: yes" >&5
6555echo "${ECHO_T}yes" >&6
6556 else
6557 echo "$as_me:$LINENO: result: no" >&5
6558echo "${ECHO_T}no" >&6
6559 fi
6560
6561
6562 enablestring=
6563 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
6564echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
6565 no_cache=0
6566 # Check whether --enable-protocol_http or --disable-protocol_http was given.
6567if test "${enable_protocol_http+set}" = set; then
6568 enableval="$enable_protocol_http"
6569
6570 if test "$enableval" = yes; then
6571 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
6572 else
6573 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
6574 fi
6575
6576else
6577
6578 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
6579 if test "x$LINE" != x ; then
6580 eval "DEFAULT_$LINE"
6581 else
6582 no_cache=1
6583 fi
6584
6585 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
6586
6587fi;
6588
6589 eval "$ac_cv_use_protocol_http"
6590 if test "$no_cache" != 1; then
6591 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
6592 fi
6593
6594 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
6595 echo "$as_me:$LINENO: result: yes" >&5
6596echo "${ECHO_T}yes" >&6
6597 else
6598 echo "$as_me:$LINENO: result: no" >&5
6599echo "${ECHO_T}no" >&6
6600 fi
6601
6602
6603 enablestring=
6604 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
6605echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
6606 no_cache=0
6607 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
6608if test "${enable_protocol_ftp+set}" = set; then
6609 enableval="$enable_protocol_ftp"
6610
6611 if test "$enableval" = yes; then
6612 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
6613 else
6614 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
6615 fi
6616
6617else
6618
6619 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
6620 if test "x$LINE" != x ; then
6621 eval "DEFAULT_$LINE"
6622 else
6623 no_cache=1
6624 fi
6625
6626 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
6627
6628fi;
6629
6630 eval "$ac_cv_use_protocol_ftp"
6631 if test "$no_cache" != 1; then
6632 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
6633 fi
6634
6635 if test "$wxUSE_PROTOCOL_FTP" = yes; then
6636 echo "$as_me:$LINENO: result: yes" >&5
6637echo "${ECHO_T}yes" >&6
6638 else
6639 echo "$as_me:$LINENO: result: no" >&5
6640echo "${ECHO_T}no" >&6
6641 fi
6642
6643
6644 enablestring=
6645 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
6646echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
6647 no_cache=0
6648 # Check whether --enable-protocol_file or --disable-protocol_file was given.
6649if test "${enable_protocol_file+set}" = set; then
6650 enableval="$enable_protocol_file"
6651
6652 if test "$enableval" = yes; then
6653 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
6654 else
6655 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
6656 fi
6657
6658else
6659
6660 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
6661 if test "x$LINE" != x ; then
6662 eval "DEFAULT_$LINE"
6663 else
6664 no_cache=1
6665 fi
6666
6667 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
6668
6669fi;
6670
6671 eval "$ac_cv_use_protocol_file"
6672 if test "$no_cache" != 1; then
6673 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
6674 fi
6675
6676 if test "$wxUSE_PROTOCOL_FILE" = yes; then
6677 echo "$as_me:$LINENO: result: yes" >&5
6678echo "${ECHO_T}yes" >&6
6679 else
6680 echo "$as_me:$LINENO: result: no" >&5
6681echo "${ECHO_T}no" >&6
6682 fi
6683
6684
6685
6686
6687
6688 enablestring=
6689 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
6690echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
6691 no_cache=0
6692 # Check whether --enable-threads or --disable-threads was given.
6693if test "${enable_threads+set}" = set; then
6694 enableval="$enable_threads"
6695
6696 if test "$enableval" = yes; then
6697 ac_cv_use_threads='wxUSE_THREADS=yes'
6698 else
6699 ac_cv_use_threads='wxUSE_THREADS=no'
6700 fi
6701
6702else
6703
6704 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
6705 if test "x$LINE" != x ; then
6706 eval "DEFAULT_$LINE"
6707 else
6708 no_cache=1
6709 fi
6710
6711 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
6712
6713fi;
6714
6715 eval "$ac_cv_use_threads"
6716 if test "$no_cache" != 1; then
6717 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
6718 fi
6719
6720 if test "$wxUSE_THREADS" = yes; then
6721 echo "$as_me:$LINENO: result: yes" >&5
6722echo "${ECHO_T}yes" >&6
6723 else
6724 echo "$as_me:$LINENO: result: no" >&5
6725echo "${ECHO_T}no" >&6
6726 fi
6727
6728
6729if test "$wxUSE_GUI" = "yes"; then
6730
6731
6732
6733 enablestring=
6734 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
6735echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
6736 no_cache=0
6737 # Check whether --enable-docview or --disable-docview was given.
6738if test "${enable_docview+set}" = set; then
6739 enableval="$enable_docview"
6740
6741 if test "$enableval" = yes; then
6742 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
6743 else
6744 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
6745 fi
6746
6747else
6748
6749 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
6750 if test "x$LINE" != x ; then
6751 eval "DEFAULT_$LINE"
6752 else
6753 no_cache=1
6754 fi
6755
6756 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
6757
6758fi;
6759
6760 eval "$ac_cv_use_docview"
6761 if test "$no_cache" != 1; then
6762 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
6763 fi
6764
6765 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
6766 echo "$as_me:$LINENO: result: yes" >&5
6767echo "${ECHO_T}yes" >&6
6768 else
6769 echo "$as_me:$LINENO: result: no" >&5
6770echo "${ECHO_T}no" >&6
6771 fi
6772
6773
6774 enablestring=
6775 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
6776echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
6777 no_cache=0
6778 # Check whether --enable-help or --disable-help was given.
6779if test "${enable_help+set}" = set; then
6780 enableval="$enable_help"
6781
6782 if test "$enableval" = yes; then
6783 ac_cv_use_help='wxUSE_HELP=yes'
6784 else
6785 ac_cv_use_help='wxUSE_HELP=no'
6786 fi
6787
6788else
6789
6790 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
6791 if test "x$LINE" != x ; then
6792 eval "DEFAULT_$LINE"
6793 else
6794 no_cache=1
6795 fi
6796
6797 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
6798
6799fi;
6800
6801 eval "$ac_cv_use_help"
6802 if test "$no_cache" != 1; then
6803 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
6804 fi
6805
6806 if test "$wxUSE_HELP" = yes; then
6807 echo "$as_me:$LINENO: result: yes" >&5
6808echo "${ECHO_T}yes" >&6
6809 else
6810 echo "$as_me:$LINENO: result: no" >&5
6811echo "${ECHO_T}no" >&6
6812 fi
6813
6814
6815 enablestring=
6816 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
6817echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
6818 no_cache=0
6819 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
6820if test "${enable_mshtmlhelp+set}" = set; then
6821 enableval="$enable_mshtmlhelp"
6822
6823 if test "$enableval" = yes; then
6824 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
6825 else
6826 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
6827 fi
6828
6829else
6830
6831 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
6832 if test "x$LINE" != x ; then
6833 eval "DEFAULT_$LINE"
6834 else
6835 no_cache=1
6836 fi
6837
6838 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
6839
6840fi;
6841
6842 eval "$ac_cv_use_mshtmlhelp"
6843 if test "$no_cache" != 1; then
6844 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
6845 fi
6846
6847 if test "$wxUSE_MS_HTML_HELP" = yes; then
6848 echo "$as_me:$LINENO: result: yes" >&5
6849echo "${ECHO_T}yes" >&6
6850 else
6851 echo "$as_me:$LINENO: result: no" >&5
6852echo "${ECHO_T}no" >&6
6853 fi
6854
6855
6856 enablestring=
6857 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
6858echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
6859 no_cache=0
6860 # Check whether --enable-html or --disable-html was given.
6861if test "${enable_html+set}" = set; then
6862 enableval="$enable_html"
6863
6864 if test "$enableval" = yes; then
6865 ac_cv_use_html='wxUSE_HTML=yes'
6866 else
6867 ac_cv_use_html='wxUSE_HTML=no'
6868 fi
6869
6870else
6871
6872 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
6873 if test "x$LINE" != x ; then
6874 eval "DEFAULT_$LINE"
6875 else
6876 no_cache=1
6877 fi
6878
6879 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
6880
6881fi;
6882
6883 eval "$ac_cv_use_html"
6884 if test "$no_cache" != 1; then
6885 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
6886 fi
6887
6888 if test "$wxUSE_HTML" = yes; then
6889 echo "$as_me:$LINENO: result: yes" >&5
6890echo "${ECHO_T}yes" >&6
6891 else
6892 echo "$as_me:$LINENO: result: no" >&5
6893echo "${ECHO_T}no" >&6
6894 fi
6895
6896
6897 enablestring=
6898 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
6899echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
6900 no_cache=0
6901 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
6902if test "${enable_htmlhelp+set}" = set; then
6903 enableval="$enable_htmlhelp"
6904
6905 if test "$enableval" = yes; then
6906 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
6907 else
6908 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
6909 fi
6910
6911else
6912
6913 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
6914 if test "x$LINE" != x ; then
6915 eval "DEFAULT_$LINE"
6916 else
6917 no_cache=1
6918 fi
6919
6920 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
6921
6922fi;
6923
6924 eval "$ac_cv_use_htmlhelp"
6925 if test "$no_cache" != 1; then
6926 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
6927 fi
6928
6929 if test "$wxUSE_WXHTML_HELP" = yes; then
6930 echo "$as_me:$LINENO: result: yes" >&5
6931echo "${ECHO_T}yes" >&6
6932 else
6933 echo "$as_me:$LINENO: result: no" >&5
6934echo "${ECHO_T}no" >&6
6935 fi
6936
6937
9a8f0513
VS
6938 enablestring=
6939 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5
6940echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6
6941 no_cache=0
6942 # Check whether --enable-xrc or --disable-xrc was given.
6943if test "${enable_xrc+set}" = set; then
6944 enableval="$enable_xrc"
6945
6946 if test "$enableval" = yes; then
6947 ac_cv_use_xrc='wxUSE_XRC=yes'
6948 else
6949 ac_cv_use_xrc='wxUSE_XRC=no'
6950 fi
6951
6952else
6953
6954 LINE=`grep "wxUSE_XRC" ${wx_arg_cache_file}`
6955 if test "x$LINE" != x ; then
6956 eval "DEFAULT_$LINE"
6957 else
6958 no_cache=1
6959 fi
6960
6961 ac_cv_use_xrc='wxUSE_XRC='$DEFAULT_wxUSE_XRC
6962
6963fi;
6964
6965 eval "$ac_cv_use_xrc"
6966 if test "$no_cache" != 1; then
6967 echo $ac_cv_use_xrc >> ${wx_arg_cache_file}.tmp
6968 fi
6969
6970 if test "$wxUSE_XRC" = yes; then
6971 echo "$as_me:$LINENO: result: yes" >&5
6972echo "${ECHO_T}yes" >&6
6973 else
6974 echo "$as_me:$LINENO: result: no" >&5
6975echo "${ECHO_T}no" >&6
6976 fi
6977
6978
3f60522a
JS
6979 enablestring=
6980 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-aui" >&5
6981echo $ECHO_N "checking for --${enablestring:-enable}-aui... $ECHO_C" >&6
6982 no_cache=0
6983 # Check whether --enable-aui or --disable-aui was given.
6984if test "${enable_aui+set}" = set; then
6985 enableval="$enable_aui"
6986
6987 if test "$enableval" = yes; then
6988 ac_cv_use_aui='wxUSE_AUI=yes'
6989 else
6990 ac_cv_use_aui='wxUSE_AUI=no'
6991 fi
6992
6993else
6994
6995 LINE=`grep "wxUSE_AUI" ${wx_arg_cache_file}`
6996 if test "x$LINE" != x ; then
6997 eval "DEFAULT_$LINE"
6998 else
6999 no_cache=1
7000 fi
7001
7002 ac_cv_use_aui='wxUSE_AUI='$DEFAULT_wxUSE_AUI
7003
7004fi;
7005
7006 eval "$ac_cv_use_aui"
7007 if test "$no_cache" != 1; then
7008 echo $ac_cv_use_aui >> ${wx_arg_cache_file}.tmp
7009 fi
7010
7011 if test "$wxUSE_AUI" = yes; then
7012 echo "$as_me:$LINENO: result: yes" >&5
7013echo "${ECHO_T}yes" >&6
7014 else
7015 echo "$as_me:$LINENO: result: no" >&5
7016echo "${ECHO_T}no" >&6
7017 fi
7018
7019
a848cd7e
SC
7020 enablestring=
7021 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
7022echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
7023 no_cache=0
7024 # Check whether --enable-constraints or --disable-constraints was given.
7025if test "${enable_constraints+set}" = set; then
7026 enableval="$enable_constraints"
7027
7028 if test "$enableval" = yes; then
7029 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
7030 else
7031 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
7032 fi
7033
7034else
7035
7036 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
7037 if test "x$LINE" != x ; then
7038 eval "DEFAULT_$LINE"
7039 else
7040 no_cache=1
7041 fi
7042
7043 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
7044
7045fi;
7046
7047 eval "$ac_cv_use_constraints"
7048 if test "$no_cache" != 1; then
7049 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
7050 fi
7051
7052 if test "$wxUSE_CONSTRAINTS" = yes; then
7053 echo "$as_me:$LINENO: result: yes" >&5
7054echo "${ECHO_T}yes" >&6
7055 else
7056 echo "$as_me:$LINENO: result: no" >&5
7057echo "${ECHO_T}no" >&6
7058 fi
7059
7060
7061 enablestring=
7062 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
7063echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
7064 no_cache=0
7065 # Check whether --enable-printarch or --disable-printarch was given.
7066if test "${enable_printarch+set}" = set; then
7067 enableval="$enable_printarch"
7068
7069 if test "$enableval" = yes; then
7070 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
7071 else
7072 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
7073 fi
7074
7075else
7076
7077 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
7078 if test "x$LINE" != x ; then
7079 eval "DEFAULT_$LINE"
7080 else
7081 no_cache=1
7082 fi
7083
7084 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
7085
7086fi;
7087
7088 eval "$ac_cv_use_printarch"
7089 if test "$no_cache" != 1; then
7090 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
7091 fi
7092
7093 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
7094 echo "$as_me:$LINENO: result: yes" >&5
7095echo "${ECHO_T}yes" >&6
7096 else
7097 echo "$as_me:$LINENO: result: no" >&5
7098echo "${ECHO_T}no" >&6
7099 fi
7100
7101
7102 enablestring=
7103 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
7104echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
7105 no_cache=0
7106 # Check whether --enable-mdi or --disable-mdi was given.
7107if test "${enable_mdi+set}" = set; then
7108 enableval="$enable_mdi"
7109
7110 if test "$enableval" = yes; then
8a7b1113 7111 ac_cv_use_mdi='wxUSE_MDI=yes'
a848cd7e 7112 else
8a7b1113 7113 ac_cv_use_mdi='wxUSE_MDI=no'
a848cd7e
SC
7114 fi
7115
7116else
7117
8a7b1113 7118 LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}`
a848cd7e
SC
7119 if test "x$LINE" != x ; then
7120 eval "DEFAULT_$LINE"
7121 else
7122 no_cache=1
7123 fi
7124
8a7b1113 7125 ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI
a848cd7e
SC
7126
7127fi;
7128
7129 eval "$ac_cv_use_mdi"
7130 if test "$no_cache" != 1; then
7131 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
7132 fi
7133
8a7b1113
VZ
7134 if test "$wxUSE_MDI" = yes; then
7135 echo "$as_me:$LINENO: result: yes" >&5
7136echo "${ECHO_T}yes" >&6
7137 else
7138 echo "$as_me:$LINENO: result: no" >&5
7139echo "${ECHO_T}no" >&6
7140 fi
7141
7142
7143 enablestring=
7144 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
7145echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6
7146 no_cache=0
7147 # Check whether --enable-mdidoc or --disable-mdidoc was given.
7148if test "${enable_mdidoc+set}" = set; then
7149 enableval="$enable_mdidoc"
7150
7151 if test "$enableval" = yes; then
7152 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
7153 else
7154 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
7155 fi
7156
7157else
7158
7159 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
7160 if test "x$LINE" != x ; then
7161 eval "DEFAULT_$LINE"
7162 else
7163 no_cache=1
7164 fi
7165
7166 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
7167
7168fi;
7169
7170 eval "$ac_cv_use_mdidoc"
7171 if test "$no_cache" != 1; then
7172 echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp
7173 fi
7174
a848cd7e
SC
7175 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
7176 echo "$as_me:$LINENO: result: yes" >&5
7177echo "${ECHO_T}yes" >&6
7178 else
7179 echo "$as_me:$LINENO: result: no" >&5
7180echo "${ECHO_T}no" >&6
7181 fi
7182
7183
7184 enablestring=
7185 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
7186echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
7187 no_cache=0
7188 # Check whether --enable-loggui or --disable-loggui was given.
7189if test "${enable_loggui+set}" = set; then
7190 enableval="$enable_loggui"
7191
7192 if test "$enableval" = yes; then
7193 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
7194 else
7195 ac_cv_use_loggui='wxUSE_LOGGUI=no'
7196 fi
7197
7198else
7199
7200 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
7201 if test "x$LINE" != x ; then
7202 eval "DEFAULT_$LINE"
7203 else
7204 no_cache=1
7205 fi
7206
7207 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
7208
7209fi;
7210
7211 eval "$ac_cv_use_loggui"
7212 if test "$no_cache" != 1; then
7213 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
7214 fi
7215
7216 if test "$wxUSE_LOGGUI" = yes; then
7217 echo "$as_me:$LINENO: result: yes" >&5
7218echo "${ECHO_T}yes" >&6
7219 else
7220 echo "$as_me:$LINENO: result: no" >&5
7221echo "${ECHO_T}no" >&6
7222 fi
7223
7224
7225 enablestring=
7226 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
7227echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
7228 no_cache=0
7229 # Check whether --enable-logwin or --disable-logwin was given.
7230if test "${enable_logwin+set}" = set; then
7231 enableval="$enable_logwin"
7232
7233 if test "$enableval" = yes; then
7234 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
7235 else
7236 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
7237 fi
7238
7239else
7240
7241 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
7242 if test "x$LINE" != x ; then
7243 eval "DEFAULT_$LINE"
7244 else
7245 no_cache=1
7246 fi
7247
7248 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
7249
7250fi;
7251
7252 eval "$ac_cv_use_logwin"
7253 if test "$no_cache" != 1; then
7254 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
7255 fi
7256
7257 if test "$wxUSE_LOGWINDOW" = yes; then
7258 echo "$as_me:$LINENO: result: yes" >&5
7259echo "${ECHO_T}yes" >&6
7260 else
7261 echo "$as_me:$LINENO: result: no" >&5
7262echo "${ECHO_T}no" >&6
7263 fi
7264
7265
7266 enablestring=
7267 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
7268echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
7269 no_cache=0
7270 # Check whether --enable-logdialog or --disable-logdialog was given.
7271if test "${enable_logdialog+set}" = set; then
7272 enableval="$enable_logdialog"
7273
7274 if test "$enableval" = yes; then
7275 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
7276 else
7277 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
7278 fi
7279
7280else
7281
7282 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
7283 if test "x$LINE" != x ; then
7284 eval "DEFAULT_$LINE"
7285 else
7286 no_cache=1
7287 fi
7288
7289 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
7290
7291fi;
7292
7293 eval "$ac_cv_use_logdialog"
7294 if test "$no_cache" != 1; then
7295 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
7296 fi
7297
7298 if test "$wxUSE_LOGDIALOG" = yes; then
7299 echo "$as_me:$LINENO: result: yes" >&5
7300echo "${ECHO_T}yes" >&6
7301 else
7302 echo "$as_me:$LINENO: result: no" >&5
7303echo "${ECHO_T}no" >&6
7304 fi
7305
7306
646b6ec1
VS
7307 enablestring=
7308 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
7309echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6
7310 no_cache=0
7311 # Check whether --enable-webkit or --disable-webkit was given.
7312if test "${enable_webkit+set}" = set; then
7313 enableval="$enable_webkit"
7314
7315 if test "$enableval" = yes; then
7316 ac_cv_use_webkit='wxUSE_WEBKIT=yes'
7317 else
7318 ac_cv_use_webkit='wxUSE_WEBKIT=no'
7319 fi
7320
7321else
7322
7323 LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}`
7324 if test "x$LINE" != x ; then
7325 eval "DEFAULT_$LINE"
7326 else
7327 no_cache=1
7328 fi
7329
7330 ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT
7331
7332fi;
7333
7334 eval "$ac_cv_use_webkit"
7335 if test "$no_cache" != 1; then
7336 echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp
7337 fi
7338
7339 if test "$wxUSE_WEBKIT" = yes; then
7340 echo "$as_me:$LINENO: result: yes" >&5
7341echo "${ECHO_T}yes" >&6
7342 else
7343 echo "$as_me:$LINENO: result: no" >&5
7344echo "${ECHO_T}no" >&6
7345 fi
7346
7347
91dea314
MW
7348 enablestring=
7349 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
7350echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
7351 no_cache=0
7352 # Check whether --enable-html or --disable-html was given.
7353if test "${enable_html+set}" = set; then
7354 enableval="$enable_html"
7355
7356 if test "$enableval" = yes; then
7357 ac_cv_use_html='wxUSE_RICHTEXT=yes'
7358 else
7359 ac_cv_use_html='wxUSE_RICHTEXT=no'
7360 fi
7361
7362else
7363
7364 LINE=`grep "wxUSE_RICHTEXT" ${wx_arg_cache_file}`
7365 if test "x$LINE" != x ; then
7366 eval "DEFAULT_$LINE"
7367 else
7368 no_cache=1
7369 fi
7370
7371 ac_cv_use_html='wxUSE_RICHTEXT='$DEFAULT_wxUSE_RICHTEXT
7372
7373fi;
7374
7375 eval "$ac_cv_use_html"
7376 if test "$no_cache" != 1; then
7377 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
7378 fi
7379
7380 if test "$wxUSE_RICHTEXT" = yes; then
7381 echo "$as_me:$LINENO: result: yes" >&5
7382echo "${ECHO_T}yes" >&6
7383 else
7384 echo "$as_me:$LINENO: result: no" >&5
7385echo "${ECHO_T}no" >&6
7386 fi
7387
7388
a848cd7e
SC
7389
7390 enablestring=
7391 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
7392echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
7393 no_cache=0
7394 # Check whether --enable-postscript or --disable-postscript was given.
7395if test "${enable_postscript+set}" = set; then
7396 enableval="$enable_postscript"
7397
7398 if test "$enableval" = yes; then
7399 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
7400 else
7401 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
7402 fi
7403
7404else
7405
7406 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
7407 if test "x$LINE" != x ; then
7408 eval "DEFAULT_$LINE"
7409 else
7410 no_cache=1
7411 fi
7412
7413 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
7414
7415fi;
7416
7417 eval "$ac_cv_use_postscript"
7418 if test "$no_cache" != 1; then
7419 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
7420 fi
7421
7422 if test "$wxUSE_POSTSCRIPT" = yes; then
7423 echo "$as_me:$LINENO: result: yes" >&5
7424echo "${ECHO_T}yes" >&6
7425 else
7426 echo "$as_me:$LINENO: result: no" >&5
7427echo "${ECHO_T}no" >&6
7428 fi
7429
7430
7431
7432
7433
7434 enablestring=
7435 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
7436echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
7437 no_cache=0
7438 # Check whether --enable-prologio or --disable-prologio was given.
7439if test "${enable_prologio+set}" = set; then
7440 enableval="$enable_prologio"
7441
7442 if test "$enableval" = yes; then
7443 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
7444 else
7445 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
7446 fi
7447
7448else
7449
7450 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
7451 if test "x$LINE" != x ; then
7452 eval "DEFAULT_$LINE"
7453 else
7454 no_cache=1
7455 fi
7456
7457 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
7458
7459fi;
7460
7461 eval "$ac_cv_use_prologio"
7462 if test "$no_cache" != 1; then
7463 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
7464 fi
7465
7466 if test "$wxUSE_PROLOGIO" = yes; then
7467 echo "$as_me:$LINENO: result: yes" >&5
7468echo "${ECHO_T}yes" >&6
7469 else
7470 echo "$as_me:$LINENO: result: no" >&5
7471echo "${ECHO_T}no" >&6
7472 fi
7473
7474
7475 enablestring=
7476 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
7477echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
7478 no_cache=0
7479 # Check whether --enable-resources or --disable-resources was given.
7480if test "${enable_resources+set}" = set; then
7481 enableval="$enable_resources"
7482
7483 if test "$enableval" = yes; then
7484 ac_cv_use_resources='wxUSE_RESOURCES=yes'
7485 else
7486 ac_cv_use_resources='wxUSE_RESOURCES=no'
7487 fi
7488
7489else
7490
7491 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
7492 if test "x$LINE" != x ; then
7493 eval "DEFAULT_$LINE"
7494 else
7495 no_cache=1
7496 fi
7497
7498 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
7499
7500fi;
7501
7502 eval "$ac_cv_use_resources"
7503 if test "$no_cache" != 1; then
7504 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
7505 fi
7506
7507 if test "$wxUSE_RESOURCES" = yes; then
7508 echo "$as_me:$LINENO: result: yes" >&5
7509echo "${ECHO_T}yes" >&6
7510 else
7511 echo "$as_me:$LINENO: result: no" >&5
7512echo "${ECHO_T}no" >&6
7513 fi
7514
7515
7516
7517
7518 enablestring=
7519 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
7520echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
7521 no_cache=0
7522 # Check whether --enable-clipboard or --disable-clipboard was given.
7523if test "${enable_clipboard+set}" = set; then
7524 enableval="$enable_clipboard"
7525
7526 if test "$enableval" = yes; then
7527 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
7528 else
7529 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
7530 fi
7531
7532else
7533
7534 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
7535 if test "x$LINE" != x ; then
7536 eval "DEFAULT_$LINE"
7537 else
7538 no_cache=1
7539 fi
7540
7541 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
7542
7543fi;
7544
7545 eval "$ac_cv_use_clipboard"
7546 if test "$no_cache" != 1; then
7547 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
7548 fi
7549
7550 if test "$wxUSE_CLIPBOARD" = yes; then
7551 echo "$as_me:$LINENO: result: yes" >&5
7552echo "${ECHO_T}yes" >&6
7553 else
7554 echo "$as_me:$LINENO: result: no" >&5
7555echo "${ECHO_T}no" >&6
7556 fi
7557
7558
7559 enablestring=
7560 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
7561echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
7562 no_cache=0
7563 # Check whether --enable-dnd or --disable-dnd was given.
7564if test "${enable_dnd+set}" = set; then
7565 enableval="$enable_dnd"
7566
7567 if test "$enableval" = yes; then
7568 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
7569 else
7570 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
7571 fi
7572
7573else
7574
7575 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
7576 if test "x$LINE" != x ; then
7577 eval "DEFAULT_$LINE"
7578 else
7579 no_cache=1
7580 fi
7581
7582 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
7583
7584fi;
7585
7586 eval "$ac_cv_use_dnd"
7587 if test "$no_cache" != 1; then
7588 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
7589 fi
7590
7591 if test "$wxUSE_DRAG_AND_DROP" = yes; then
7592 echo "$as_me:$LINENO: result: yes" >&5
7593echo "${ECHO_T}yes" >&6
7594 else
7595 echo "$as_me:$LINENO: result: no" >&5
7596echo "${ECHO_T}no" >&6
7597 fi
7598
7599
7600 enablestring=
7601 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
7602echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
7603 no_cache=0
7604 # Check whether --enable-metafile or --disable-metafile was given.
7605if test "${enable_metafile+set}" = set; then
7606 enableval="$enable_metafile"
7607
7608 if test "$enableval" = yes; then
7609 ac_cv_use_metafile='wxUSE_METAFILE=yes'
7610 else
7611 ac_cv_use_metafile='wxUSE_METAFILE=no'
7612 fi
7613
7614else
7615
7616 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
7617 if test "x$LINE" != x ; then
7618 eval "DEFAULT_$LINE"
7619 else
7620 no_cache=1
7621 fi
7622
7623 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
7624
7625fi;
7626
7627 eval "$ac_cv_use_metafile"
7628 if test "$no_cache" != 1; then
7629 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
7630 fi
7631
7632 if test "$wxUSE_METAFILE" = yes; then
7633 echo "$as_me:$LINENO: result: yes" >&5
7634echo "${ECHO_T}yes" >&6
7635 else
7636 echo "$as_me:$LINENO: result: no" >&5
7637echo "${ECHO_T}no" >&6
7638 fi
7639
7640
7641
7642
7643
7644 enablestring=
7645 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
7646echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
7647 no_cache=0
7648 # Check whether --enable-controls or --disable-controls was given.
7649if test "${enable_controls+set}" = set; then
7650 enableval="$enable_controls"
7651
7652 if test "$enableval" = yes; then
7653 ac_cv_use_controls='wxUSE_CONTROLS=yes'
7654 else
7655 ac_cv_use_controls='wxUSE_CONTROLS=no'
7656 fi
7657
7658else
7659
7660 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
7661 if test "x$LINE" != x ; then
7662 eval "DEFAULT_$LINE"
7663 else
7664 no_cache=1
7665 fi
7666
7667 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
7668
7669fi;
7670
7671 eval "$ac_cv_use_controls"
7672 if test "$no_cache" != 1; then
7673 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
7674 fi
7675
7676 if test "$wxUSE_CONTROLS" = yes; then
7677 echo "$as_me:$LINENO: result: yes" >&5
7678echo "${ECHO_T}yes" >&6
7679 else
7680 echo "$as_me:$LINENO: result: no" >&5
7681echo "${ECHO_T}no" >&6
7682 fi
7683
7684
7685if test "$wxUSE_CONTROLS" = "yes"; then
7686 DEFAULT_wxUSE_ACCEL=yes
7687 DEFAULT_wxUSE_BMPBUTTON=yes
7688 DEFAULT_wxUSE_BUTTON=yes
da98e9be 7689 DEFAULT_wxUSE_CALCTRL=yes
a848cd7e
SC
7690 DEFAULT_wxUSE_CARET=yes
7691 DEFAULT_wxUSE_COMBOBOX=yes
7692 DEFAULT_wxUSE_CHECKBOX=yes
7693 DEFAULT_wxUSE_CHECKLISTBOX=yes
7694 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 7695 DEFAULT_wxUSE_CHOICEBOOK=yes
e9263684
VZ
7696 DEFAULT_wxUSE_COLOURPICKERCTRL=yes
7697 DEFAULT_wxUSE_COMBOBOX=yes
da98e9be 7698 DEFAULT_wxUSE_DATEPICKCTRL=yes
e9263684
VZ
7699 DEFAULT_wxUSE_DISPLAY=yes
7700 DEFAULT_wxUSE_DIRPICKERCTRL=yes
7701 DEFAULT_wxUSE_FILEPICKERCTRL=yes
7702 DEFAULT_wxUSE_FONTPICKERCTRL=yes
a848cd7e
SC
7703 DEFAULT_wxUSE_GAUGE=yes
7704 DEFAULT_wxUSE_GRID=yes
6954625c 7705 DEFAULT_wxUSE_HYPERLINKCTRL=yes
20e34ecc 7706 DEFAULT_wxUSE_DATAVIEWCTRL=no
a848cd7e
SC
7707 DEFAULT_wxUSE_IMAGLIST=yes
7708 DEFAULT_wxUSE_LISTBOOK=yes
7709 DEFAULT_wxUSE_LISTBOX=yes
7710 DEFAULT_wxUSE_LISTCTRL=yes
7711 DEFAULT_wxUSE_NOTEBOOK=yes
7712 DEFAULT_wxUSE_RADIOBOX=yes
7713 DEFAULT_wxUSE_RADIOBTN=yes
7714 DEFAULT_wxUSE_SASH=yes
7715 DEFAULT_wxUSE_SCROLLBAR=yes
7716 DEFAULT_wxUSE_SLIDER=yes
7717 DEFAULT_wxUSE_SPINBTN=yes
7718 DEFAULT_wxUSE_SPINCTRL=yes
7719 DEFAULT_wxUSE_SPLITTER=yes
7720 DEFAULT_wxUSE_STATBMP=yes
7721 DEFAULT_wxUSE_STATBOX=yes
7722 DEFAULT_wxUSE_STATLINE=yes
7723 DEFAULT_wxUSE_STATUSBAR=yes
7724 DEFAULT_wxUSE_TAB_DIALOG=yes
7725 DEFAULT_wxUSE_TOGGLEBTN=yes
7726 DEFAULT_wxUSE_TOOLBAR=yes
7727 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
7728 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
7729 DEFAULT_wxUSE_TOOLTIPS=yes
0093c2fc 7730 DEFAULT_wxUSE_TREEBOOK=yes
5ec3bc43 7731 DEFAULT_wxUSE_TOOLBOOK=yes
a848cd7e
SC
7732 DEFAULT_wxUSE_TREECTRL=yes
7733 DEFAULT_wxUSE_POPUPWIN=yes
7734 DEFAULT_wxUSE_TIPWINDOW=yes
7735elif test "$wxUSE_CONTROLS" = "no"; then
7736 DEFAULT_wxUSE_ACCEL=no
7737 DEFAULT_wxUSE_BMPBUTTON=no
7738 DEFAULT_wxUSE_BUTTON=no
7739 DEFAULT_wxUSE_CALCTRL=no
7740 DEFAULT_wxUSE_CARET=no
7741 DEFAULT_wxUSE_COMBOBOX=no
7742 DEFAULT_wxUSE_CHECKBOX=no
7743 DEFAULT_wxUSE_CHECKLISTBOX=no
7744 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 7745 DEFAULT_wxUSE_CHOICEBOOK=no
e9263684
VZ
7746 DEFAULT_wxUSE_COLOURPICKERCTRL=no
7747 DEFAULT_wxUSE_COMBOBOX=no
da98e9be 7748 DEFAULT_wxUSE_DATEPICKCTRL=no
e9263684
VZ
7749 DEFAULT_wxUSE_DISPLAY=no
7750 DEFAULT_wxUSE_DIRPICKERCTRL=no
7751 DEFAULT_wxUSE_FILEPICKERCTRL=no
7752 DEFAULT_wxUSE_FONTPICKERCTRL=no
a848cd7e
SC
7753 DEFAULT_wxUSE_GAUGE=no
7754 DEFAULT_wxUSE_GRID=no
6954625c 7755 DEFAULT_wxUSE_HYPERLINKCTRL=no
20e34ecc 7756 DEFAULT_wxUSE_DATAVIEWCTRL=no
a848cd7e
SC
7757 DEFAULT_wxUSE_IMAGLIST=no
7758 DEFAULT_wxUSE_LISTBOOK=no
7759 DEFAULT_wxUSE_LISTBOX=no
7760 DEFAULT_wxUSE_LISTCTRL=no
7761 DEFAULT_wxUSE_NOTEBOOK=no
7762 DEFAULT_wxUSE_RADIOBOX=no
7763 DEFAULT_wxUSE_RADIOBTN=no
7764 DEFAULT_wxUSE_SASH=no
7765 DEFAULT_wxUSE_SCROLLBAR=no
7766 DEFAULT_wxUSE_SLIDER=no
7767 DEFAULT_wxUSE_SPINBTN=no
7768 DEFAULT_wxUSE_SPINCTRL=no
7769 DEFAULT_wxUSE_SPLITTER=no
7770 DEFAULT_wxUSE_STATBMP=no
7771 DEFAULT_wxUSE_STATBOX=no
7772 DEFAULT_wxUSE_STATLINE=no
7773 DEFAULT_wxUSE_STATUSBAR=no
7774 DEFAULT_wxUSE_TAB_DIALOG=no
7775 DEFAULT_wxUSE_TOGGLEBTN=no
7776 DEFAULT_wxUSE_TOOLBAR=no
7777 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
7778 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
7779 DEFAULT_wxUSE_TOOLTIPS=no
0093c2fc 7780 DEFAULT_wxUSE_TREEBOOK=no
5ec3bc43 7781 DEFAULT_wxUSE_TOOLBOOK=no
a848cd7e
SC
7782 DEFAULT_wxUSE_TREECTRL=no
7783 DEFAULT_wxUSE_POPUPWIN=no
7784 DEFAULT_wxUSE_TIPWINDOW=no
7785fi
7786
a848cd7e
SC
7787
7788 enablestring=
7789 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
7790echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
7791 no_cache=0
7792 # Check whether --enable-accel or --disable-accel was given.
7793if test "${enable_accel+set}" = set; then
7794 enableval="$enable_accel"
7795
7796 if test "$enableval" = yes; then
7797 ac_cv_use_accel='wxUSE_ACCEL=yes'
7798 else
7799 ac_cv_use_accel='wxUSE_ACCEL=no'
7800 fi
7801
7802else
7803
7804 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
7805 if test "x$LINE" != x ; then
7806 eval "DEFAULT_$LINE"
7807 else
7808 no_cache=1
7809 fi
7810
7811 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
7812
7813fi;
7814
7815 eval "$ac_cv_use_accel"
7816 if test "$no_cache" != 1; then
7817 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
7818 fi
7819
7820 if test "$wxUSE_ACCEL" = yes; then
7821 echo "$as_me:$LINENO: result: yes" >&5
7822echo "${ECHO_T}yes" >&6
7823 else
7824 echo "$as_me:$LINENO: result: no" >&5
7825echo "${ECHO_T}no" >&6
7826 fi
7827
7828
7829 enablestring=
7830 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
7831echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
7832 no_cache=0
7833 # Check whether --enable-button or --disable-button was given.
7834if test "${enable_button+set}" = set; then
7835 enableval="$enable_button"
7836
7837 if test "$enableval" = yes; then
7838 ac_cv_use_button='wxUSE_BUTTON=yes'
7839 else
7840 ac_cv_use_button='wxUSE_BUTTON=no'
7841 fi
7842
7843else
7844
7845 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
7846 if test "x$LINE" != x ; then
7847 eval "DEFAULT_$LINE"
7848 else
7849 no_cache=1
7850 fi
7851
7852 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
7853
7854fi;
7855
7856 eval "$ac_cv_use_button"
7857 if test "$no_cache" != 1; then
7858 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
7859 fi
7860
7861 if test "$wxUSE_BUTTON" = yes; then
7862 echo "$as_me:$LINENO: result: yes" >&5
7863echo "${ECHO_T}yes" >&6
7864 else
7865 echo "$as_me:$LINENO: result: no" >&5
7866echo "${ECHO_T}no" >&6
7867 fi
7868
7869
7870 enablestring=
7871 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
7872echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
7873 no_cache=0
7874 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
7875if test "${enable_bmpbutton+set}" = set; then
7876 enableval="$enable_bmpbutton"
7877
7878 if test "$enableval" = yes; then
7879 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
7880 else
7881 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
7882 fi
7883
7884else
7885
7886 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
7887 if test "x$LINE" != x ; then
7888 eval "DEFAULT_$LINE"
7889 else
7890 no_cache=1
7891 fi
7892
7893 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
7894
7895fi;
7896
7897 eval "$ac_cv_use_bmpbutton"
7898 if test "$no_cache" != 1; then
7899 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
7900 fi
7901
7902 if test "$wxUSE_BMPBUTTON" = yes; then
7903 echo "$as_me:$LINENO: result: yes" >&5
7904echo "${ECHO_T}yes" >&6
7905 else
7906 echo "$as_me:$LINENO: result: no" >&5
7907echo "${ECHO_T}no" >&6
7908 fi
7909
7910
7911 enablestring=
7912 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
7913echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
7914 no_cache=0
7915 # Check whether --enable-calendar or --disable-calendar was given.
7916if test "${enable_calendar+set}" = set; then
7917 enableval="$enable_calendar"
7918
7919 if test "$enableval" = yes; then
7920 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
7921 else
7922 ac_cv_use_calendar='wxUSE_CALCTRL=no'
7923 fi
7924
7925else
7926
7927 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
7928 if test "x$LINE" != x ; then
7929 eval "DEFAULT_$LINE"
7930 else
7931 no_cache=1
7932 fi
7933
7934 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
7935
7936fi;
7937
7938 eval "$ac_cv_use_calendar"
7939 if test "$no_cache" != 1; then
7940 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
7941 fi
7942
7943 if test "$wxUSE_CALCTRL" = yes; then
7944 echo "$as_me:$LINENO: result: yes" >&5
7945echo "${ECHO_T}yes" >&6
7946 else
7947 echo "$as_me:$LINENO: result: no" >&5
7948echo "${ECHO_T}no" >&6
7949 fi
7950
7951
7952 enablestring=
7953 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
7954echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
7955 no_cache=0
7956 # Check whether --enable-caret or --disable-caret was given.
7957if test "${enable_caret+set}" = set; then
7958 enableval="$enable_caret"
7959
7960 if test "$enableval" = yes; then
7961 ac_cv_use_caret='wxUSE_CARET=yes'
7962 else
7963 ac_cv_use_caret='wxUSE_CARET=no'
7964 fi
7965
7966else
7967
7968 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
7969 if test "x$LINE" != x ; then
7970 eval "DEFAULT_$LINE"
7971 else
7972 no_cache=1
7973 fi
7974
7975 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
7976
7977fi;
7978
7979 eval "$ac_cv_use_caret"
7980 if test "$no_cache" != 1; then
7981 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
7982 fi
7983
7984 if test "$wxUSE_CARET" = yes; then
7985 echo "$as_me:$LINENO: result: yes" >&5
7986echo "${ECHO_T}yes" >&6
7987 else
7988 echo "$as_me:$LINENO: result: no" >&5
7989echo "${ECHO_T}no" >&6
7990 fi
7991
7992
7993 enablestring=
7994 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
7995echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
7996 no_cache=0
7997 # Check whether --enable-checkbox or --disable-checkbox was given.
7998if test "${enable_checkbox+set}" = set; then
7999 enableval="$enable_checkbox"
8000
8001 if test "$enableval" = yes; then
8002 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
8003 else
8004 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
8005 fi
8006
8007else
8008
8009 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
8010 if test "x$LINE" != x ; then
8011 eval "DEFAULT_$LINE"
8012 else
8013 no_cache=1
8014 fi
8015
8016 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
8017
8018fi;
8019
8020 eval "$ac_cv_use_checkbox"
8021 if test "$no_cache" != 1; then
8022 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
8023 fi
8024
8025 if test "$wxUSE_CHECKBOX" = yes; then
8026 echo "$as_me:$LINENO: result: yes" >&5
8027echo "${ECHO_T}yes" >&6
8028 else
8029 echo "$as_me:$LINENO: result: no" >&5
8030echo "${ECHO_T}no" >&6
8031 fi
8032
8033
8034 enablestring=
8035 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
8036echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
8037 no_cache=0
8038 # Check whether --enable-checklst or --disable-checklst was given.
8039if test "${enable_checklst+set}" = set; then
8040 enableval="$enable_checklst"
8041
8042 if test "$enableval" = yes; then
8043 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
8044 else
8045 ac_cv_use_checklst='wxUSE_CHECKLST=no'
8046 fi
8047
8048else
8049
8050 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
8051 if test "x$LINE" != x ; then
8052 eval "DEFAULT_$LINE"
8053 else
8054 no_cache=1
8055 fi
8056
8057 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
8058
8059fi;
8060
8061 eval "$ac_cv_use_checklst"
8062 if test "$no_cache" != 1; then
8063 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
8064 fi
8065
8066 if test "$wxUSE_CHECKLST" = yes; then
8067 echo "$as_me:$LINENO: result: yes" >&5
8068echo "${ECHO_T}yes" >&6
8069 else
8070 echo "$as_me:$LINENO: result: no" >&5
8071echo "${ECHO_T}no" >&6
8072 fi
8073
8074
8075 enablestring=
8076 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
8077echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
8078 no_cache=0
8079 # Check whether --enable-choice or --disable-choice was given.
8080if test "${enable_choice+set}" = set; then
8081 enableval="$enable_choice"
8082
8083 if test "$enableval" = yes; then
8084 ac_cv_use_choice='wxUSE_CHOICE=yes'
8085 else
8086 ac_cv_use_choice='wxUSE_CHOICE=no'
8087 fi
8088
8089else
8090
8091 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
8092 if test "x$LINE" != x ; then
8093 eval "DEFAULT_$LINE"
8094 else
8095 no_cache=1
8096 fi
8097
8098 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
8099
8100fi;
8101
8102 eval "$ac_cv_use_choice"
8103 if test "$no_cache" != 1; then
8104 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
8105 fi
8106
8107 if test "$wxUSE_CHOICE" = yes; then
8108 echo "$as_me:$LINENO: result: yes" >&5
8109echo "${ECHO_T}yes" >&6
8110 else
8111 echo "$as_me:$LINENO: result: no" >&5
8112echo "${ECHO_T}no" >&6
8113 fi
8114
8115
92bbdbcd
WS
8116 enablestring=
8117 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
8118echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6
8119 no_cache=0
8120 # Check whether --enable-choicebook or --disable-choicebook was given.
8121if test "${enable_choicebook+set}" = set; then
8122 enableval="$enable_choicebook"
8123
8124 if test "$enableval" = yes; then
8125 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
8126 else
8127 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
8128 fi
8129
8130else
8131
8132 LINE=`grep "wxUSE_CHOICEBOOK" ${wx_arg_cache_file}`
8133 if test "x$LINE" != x ; then
8134 eval "DEFAULT_$LINE"
8135 else
8136 no_cache=1
8137 fi
8138
8139 ac_cv_use_choicebook='wxUSE_CHOICEBOOK='$DEFAULT_wxUSE_CHOICEBOOK
8140
8141fi;
8142
8143 eval "$ac_cv_use_choicebook"
8144 if test "$no_cache" != 1; then
8145 echo $ac_cv_use_choicebook >> ${wx_arg_cache_file}.tmp
8146 fi
8147
8148 if test "$wxUSE_CHOICEBOOK" = yes; then
8149 echo "$as_me:$LINENO: result: yes" >&5
8150echo "${ECHO_T}yes" >&6
8151 else
8152 echo "$as_me:$LINENO: result: no" >&5
8153echo "${ECHO_T}no" >&6
8154 fi
8155
8156
e9263684
VZ
8157 enablestring=
8158 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-colourpicker" >&5
8159echo $ECHO_N "checking for --${enablestring:-enable}-colourpicker... $ECHO_C" >&6
8160 no_cache=0
8161 # Check whether --enable-colourpicker or --disable-colourpicker was given.
8162if test "${enable_colourpicker+set}" = set; then
8163 enableval="$enable_colourpicker"
8164
8165 if test "$enableval" = yes; then
8166 ac_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=yes'
8167 else
8168 ac_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=no'
8169 fi
8170
8171else
8172
8173 LINE=`grep "wxUSE_COLOURPICKERCTRL" ${wx_arg_cache_file}`
8174 if test "x$LINE" != x ; then
8175 eval "DEFAULT_$LINE"
8176 else
8177 no_cache=1
8178 fi
8179
8180 ac_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL='$DEFAULT_wxUSE_COLOURPICKERCTRL
8181
8182fi;
8183
8184 eval "$ac_cv_use_colourpicker"
8185 if test "$no_cache" != 1; then
8186 echo $ac_cv_use_colourpicker >> ${wx_arg_cache_file}.tmp
8187 fi
8188
8189 if test "$wxUSE_COLOURPICKERCTRL" = yes; then
8190 echo "$as_me:$LINENO: result: yes" >&5
8191echo "${ECHO_T}yes" >&6
8192 else
8193 echo "$as_me:$LINENO: result: no" >&5
8194echo "${ECHO_T}no" >&6
8195 fi
8196
8197
a848cd7e
SC
8198 enablestring=
8199 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
8200echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
8201 no_cache=0
8202 # Check whether --enable-combobox or --disable-combobox was given.
8203if test "${enable_combobox+set}" = set; then
8204 enableval="$enable_combobox"
8205
8206 if test "$enableval" = yes; then
8207 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
8208 else
8209 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
8210 fi
8211
8212else
8213
8214 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
8215 if test "x$LINE" != x ; then
8216 eval "DEFAULT_$LINE"
8217 else
8218 no_cache=1
8219 fi
8220
8221 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
8222
8223fi;
8224
8225 eval "$ac_cv_use_combobox"
8226 if test "$no_cache" != 1; then
8227 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
8228 fi
8229
8230 if test "$wxUSE_COMBOBOX" = yes; then
8231 echo "$as_me:$LINENO: result: yes" >&5
8232echo "${ECHO_T}yes" >&6
8233 else
8234 echo "$as_me:$LINENO: result: no" >&5
8235echo "${ECHO_T}no" >&6
8236 fi
8237
8238
642bcba9 8239 enablestring=
a57d600f
VZ
8240 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-comboctrl" >&5
8241echo $ECHO_N "checking for --${enablestring:-enable}-comboctrl... $ECHO_C" >&6
642bcba9 8242 no_cache=0
a57d600f
VZ
8243 # Check whether --enable-comboctrl or --disable-comboctrl was given.
8244if test "${enable_comboctrl+set}" = set; then
8245 enableval="$enable_comboctrl"
642bcba9
VZ
8246
8247 if test "$enableval" = yes; then
a57d600f 8248 ac_cv_use_comboctrl='wxUSE_COMBOCTRL=yes'
642bcba9 8249 else
a57d600f 8250 ac_cv_use_comboctrl='wxUSE_COMBOCTRL=no'
642bcba9
VZ
8251 fi
8252
8253else
8254
a57d600f 8255 LINE=`grep "wxUSE_COMBOCTRL" ${wx_arg_cache_file}`
642bcba9
VZ
8256 if test "x$LINE" != x ; then
8257 eval "DEFAULT_$LINE"
8258 else
8259 no_cache=1
8260 fi
8261
a57d600f 8262 ac_cv_use_comboctrl='wxUSE_COMBOCTRL='$DEFAULT_wxUSE_COMBOCTRL
642bcba9
VZ
8263
8264fi;
8265
a57d600f 8266 eval "$ac_cv_use_comboctrl"
642bcba9 8267 if test "$no_cache" != 1; then
a57d600f 8268 echo $ac_cv_use_comboctrl >> ${wx_arg_cache_file}.tmp
642bcba9
VZ
8269 fi
8270
a57d600f 8271 if test "$wxUSE_COMBOCTRL" = yes; then
642bcba9
VZ
8272 echo "$as_me:$LINENO: result: yes" >&5
8273echo "${ECHO_T}yes" >&6
8274 else
8275 echo "$as_me:$LINENO: result: no" >&5
8276echo "${ECHO_T}no" >&6
8277 fi
8278
8279
da98e9be
VZ
8280 enablestring=
8281 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5
8282echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6
8283 no_cache=0
8284 # Check whether --enable-datepick or --disable-datepick was given.
8285if test "${enable_datepick+set}" = set; then
8286 enableval="$enable_datepick"
8287
8288 if test "$enableval" = yes; then
8289 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=yes'
8290 else
8291 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=no'
8292 fi
8293
8294else
8295
8296 LINE=`grep "wxUSE_DATEPICKCTRL" ${wx_arg_cache_file}`
8297 if test "x$LINE" != x ; then
8298 eval "DEFAULT_$LINE"
8299 else
8300 no_cache=1
8301 fi
8302
8303 ac_cv_use_datepick='wxUSE_DATEPICKCTRL='$DEFAULT_wxUSE_DATEPICKCTRL
8304
8305fi;
8306
8307 eval "$ac_cv_use_datepick"
8308 if test "$no_cache" != 1; then
8309 echo $ac_cv_use_datepick >> ${wx_arg_cache_file}.tmp
8310 fi
8311
8312 if test "$wxUSE_DATEPICKCTRL" = yes; then
8313 echo "$as_me:$LINENO: result: yes" >&5
8314echo "${ECHO_T}yes" >&6
8315 else
8316 echo "$as_me:$LINENO: result: no" >&5
8317echo "${ECHO_T}no" >&6
8318 fi
8319
8320
e9263684
VZ
8321 enablestring=
8322 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirpicker" >&5
8323echo $ECHO_N "checking for --${enablestring:-enable}-dirpicker... $ECHO_C" >&6
8324 no_cache=0
8325 # Check whether --enable-dirpicker or --disable-dirpicker was given.
8326if test "${enable_dirpicker+set}" = set; then
8327 enableval="$enable_dirpicker"
8328
8329 if test "$enableval" = yes; then
8330 ac_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=yes'
8331 else
8332 ac_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=no'
8333 fi
8334
8335else
8336
8337 LINE=`grep "wxUSE_DIRPICKERCTRL" ${wx_arg_cache_file}`
8338 if test "x$LINE" != x ; then
8339 eval "DEFAULT_$LINE"
8340 else
8341 no_cache=1
8342 fi
8343
8344 ac_cv_use_dirpicker='wxUSE_DIRPICKERCTRL='$DEFAULT_wxUSE_DIRPICKERCTRL
8345
8346fi;
8347
8348 eval "$ac_cv_use_dirpicker"
8349 if test "$no_cache" != 1; then
8350 echo $ac_cv_use_dirpicker >> ${wx_arg_cache_file}.tmp
8351 fi
8352
8353 if test "$wxUSE_DIRPICKERCTRL" = yes; then
8354 echo "$as_me:$LINENO: result: yes" >&5
8355echo "${ECHO_T}yes" >&6
8356 else
8357 echo "$as_me:$LINENO: result: no" >&5
8358echo "${ECHO_T}no" >&6
8359 fi
8360
8361
a848cd7e
SC
8362 enablestring=
8363 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
8364echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
8365 no_cache=0
8366 # Check whether --enable-display or --disable-display was given.
8367if test "${enable_display+set}" = set; then
8368 enableval="$enable_display"
8369
8370 if test "$enableval" = yes; then
8371 ac_cv_use_display='wxUSE_DISPLAY=yes'
8372 else
8373 ac_cv_use_display='wxUSE_DISPLAY=no'
8374 fi
8375
8376else
8377
8378 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
8379 if test "x$LINE" != x ; then
8380 eval "DEFAULT_$LINE"
8381 else
8382 no_cache=1
8383 fi
8384
8385 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
8386
8387fi;
8388
8389 eval "$ac_cv_use_display"
8390 if test "$no_cache" != 1; then
8391 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
8392 fi
8393
8394 if test "$wxUSE_DISPLAY" = yes; then
8395 echo "$as_me:$LINENO: result: yes" >&5
8396echo "${ECHO_T}yes" >&6
8397 else
8398 echo "$as_me:$LINENO: result: no" >&5
8399echo "${ECHO_T}no" >&6
8400 fi
8401
8402
e9263684
VZ
8403 enablestring=
8404 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filepicker" >&5
8405echo $ECHO_N "checking for --${enablestring:-enable}-filepicker... $ECHO_C" >&6
8406 no_cache=0
8407 # Check whether --enable-filepicker or --disable-filepicker was given.
8408if test "${enable_filepicker+set}" = set; then
8409 enableval="$enable_filepicker"
8410
8411 if test "$enableval" = yes; then
8412 ac_cv_use_filepicker='wxUSE_FILEPICKERCTRL=yes'
8413 else
8414 ac_cv_use_filepicker='wxUSE_FILEPICKERCTRL=no'
8415 fi
8416
8417else
8418
8419 LINE=`grep "wxUSE_FILEPICKERCTRL" ${wx_arg_cache_file}`
8420 if test "x$LINE" != x ; then
8421 eval "DEFAULT_$LINE"
8422 else
8423 no_cache=1
8424 fi
8425
8426 ac_cv_use_filepicker='wxUSE_FILEPICKERCTRL='$DEFAULT_wxUSE_FILEPICKERCTRL
8427
8428fi;
8429
8430 eval "$ac_cv_use_filepicker"
8431 if test "$no_cache" != 1; then
8432 echo $ac_cv_use_filepicker >> ${wx_arg_cache_file}.tmp
8433 fi
8434
8435 if test "$wxUSE_FILEPICKERCTRL" = yes; then
8436 echo "$as_me:$LINENO: result: yes" >&5
8437echo "${ECHO_T}yes" >&6
8438 else
8439 echo "$as_me:$LINENO: result: no" >&5
8440echo "${ECHO_T}no" >&6
8441 fi
8442
8443
8444 enablestring=
8445 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontpicker" >&5
8446echo $ECHO_N "checking for --${enablestring:-enable}-fontpicker... $ECHO_C" >&6
8447 no_cache=0
8448 # Check whether --enable-fontpicker or --disable-fontpicker was given.
8449if test "${enable_fontpicker+set}" = set; then
8450 enableval="$enable_fontpicker"
8451
8452 if test "$enableval" = yes; then
8453 ac_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=yes'
8454 else
8455 ac_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=no'
8456 fi
8457
8458else
8459
8460 LINE=`grep "wxUSE_FONTPICKERCTRL" ${wx_arg_cache_file}`
8461 if test "x$LINE" != x ; then
8462 eval "DEFAULT_$LINE"
8463 else
8464 no_cache=1
8465 fi
8466
8467 ac_cv_use_fontpicker='wxUSE_FONTPICKERCTRL='$DEFAULT_wxUSE_FONTPICKERCTRL
8468
8469fi;
8470
8471 eval "$ac_cv_use_fontpicker"
8472 if test "$no_cache" != 1; then
8473 echo $ac_cv_use_fontpicker >> ${wx_arg_cache_file}.tmp
8474 fi
8475
8476 if test "$wxUSE_FONTPICKERCTRL" = yes; then
8477 echo "$as_me:$LINENO: result: yes" >&5
8478echo "${ECHO_T}yes" >&6
8479 else
8480 echo "$as_me:$LINENO: result: no" >&5
8481echo "${ECHO_T}no" >&6
8482 fi
8483
8484
a848cd7e
SC
8485 enablestring=
8486 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
8487echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
8488 no_cache=0
8489 # Check whether --enable-gauge or --disable-gauge was given.
8490if test "${enable_gauge+set}" = set; then
8491 enableval="$enable_gauge"
8492
8493 if test "$enableval" = yes; then
8494 ac_cv_use_gauge='wxUSE_GAUGE=yes'
8495 else
8496 ac_cv_use_gauge='wxUSE_GAUGE=no'
8497 fi
8498
8499else
8500
8501 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
8502 if test "x$LINE" != x ; then
8503 eval "DEFAULT_$LINE"
8504 else
8505 no_cache=1
8506 fi
8507
8508 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
8509
8510fi;
8511
8512 eval "$ac_cv_use_gauge"
8513 if test "$no_cache" != 1; then
8514 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
8515 fi
8516
8517 if test "$wxUSE_GAUGE" = yes; then
8518 echo "$as_me:$LINENO: result: yes" >&5
8519echo "${ECHO_T}yes" >&6
8520 else
8521 echo "$as_me:$LINENO: result: no" >&5
8522echo "${ECHO_T}no" >&6
8523 fi
8524
8525
8526 enablestring=
8527 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
8528echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
8529 no_cache=0
8530 # Check whether --enable-grid or --disable-grid was given.
8531if test "${enable_grid+set}" = set; then
8532 enableval="$enable_grid"
8533
8534 if test "$enableval" = yes; then
8535 ac_cv_use_grid='wxUSE_GRID=yes'
8536 else
8537 ac_cv_use_grid='wxUSE_GRID=no'
8538 fi
8539
8540else
8541
8542 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
8543 if test "x$LINE" != x ; then
8544 eval "DEFAULT_$LINE"
8545 else
8546 no_cache=1
8547 fi
8548
8549 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
8550
8551fi;
8552
8553 eval "$ac_cv_use_grid"
8554 if test "$no_cache" != 1; then
8555 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
8556 fi
8557
8558 if test "$wxUSE_GRID" = yes; then
8559 echo "$as_me:$LINENO: result: yes" >&5
8560echo "${ECHO_T}yes" >&6
8561 else
8562 echo "$as_me:$LINENO: result: no" >&5
8563echo "${ECHO_T}no" >&6
8564 fi
8565
8566
20e34ecc
RR
8567 enablestring=
8568 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataviewctrl" >&5
8569echo $ECHO_N "checking for --${enablestring:-enable}-dataviewctrl... $ECHO_C" >&6
8570 no_cache=0
8571 # Check whether --enable-dataviewctrl or --disable-dataviewctrl was given.
8572if test "${enable_dataviewctrl+set}" = set; then
8573 enableval="$enable_dataviewctrl"
8574
8575 if test "$enableval" = yes; then
8576 ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=yes'
8577 else
8578 ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=no'
8579 fi
8580
8581else
8582
8583 LINE=`grep "wxUSE_DATAVIEWCTRL" ${wx_arg_cache_file}`
8584 if test "x$LINE" != x ; then
8585 eval "DEFAULT_$LINE"
8586 else
8587 no_cache=1
8588 fi
8589
8590 ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL='$DEFAULT_wxUSE_DATAVIEWCTRL
8591
8592fi;
8593
8594 eval "$ac_cv_use_dataviewctrl"
8595 if test "$no_cache" != 1; then
8596 echo $ac_cv_use_dataviewctrl >> ${wx_arg_cache_file}.tmp
8597 fi
8598
8599 if test "$wxUSE_DATAVIEWCTRL" = yes; then
8600 echo "$as_me:$LINENO: result: yes" >&5
8601echo "${ECHO_T}yes" >&6
8602 else
8603 echo "$as_me:$LINENO: result: no" >&5
8604echo "${ECHO_T}no" >&6
8605 fi
8606
8607
6954625c
VZ
8608 enablestring=
8609 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-hyperlink" >&5
8610echo $ECHO_N "checking for --${enablestring:-enable}-hyperlink... $ECHO_C" >&6
8611 no_cache=0
8612 # Check whether --enable-hyperlink or --disable-hyperlink was given.
8613if test "${enable_hyperlink+set}" = set; then
8614 enableval="$enable_hyperlink"
8615
8616 if test "$enableval" = yes; then
8617 ac_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=yes'
8618 else
8619 ac_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=no'
8620 fi
8621
8622else
8623
8624 LINE=`grep "wxUSE_HYPERLINKCTRL" ${wx_arg_cache_file}`
8625 if test "x$LINE" != x ; then
8626 eval "DEFAULT_$LINE"
8627 else
8628 no_cache=1
8629 fi
8630
8631 ac_cv_use_hyperlink='wxUSE_HYPERLINKCTRL='$DEFAULT_wxUSE_HYPERLINKCTRL
8632
8633fi;
8634
8635 eval "$ac_cv_use_hyperlink"
8636 if test "$no_cache" != 1; then
8637 echo $ac_cv_use_hyperlink >> ${wx_arg_cache_file}.tmp
8638 fi
8639
8640 if test "$wxUSE_HYPERLINKCTRL" = yes; then
8641 echo "$as_me:$LINENO: result: yes" >&5
8642echo "${ECHO_T}yes" >&6
8643 else
8644 echo "$as_me:$LINENO: result: no" >&5
8645echo "${ECHO_T}no" >&6
8646 fi
8647
8648
a848cd7e
SC
8649 enablestring=
8650 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
8651echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
8652 no_cache=0
8653 # Check whether --enable-imaglist or --disable-imaglist was given.
8654if test "${enable_imaglist+set}" = set; then
8655 enableval="$enable_imaglist"
8656
8657 if test "$enableval" = yes; then
8658 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
8659 else
8660 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
8661 fi
8662
8663else
8664
8665 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
8666 if test "x$LINE" != x ; then
8667 eval "DEFAULT_$LINE"
8668 else
8669 no_cache=1
8670 fi
8671
8672 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
8673
8674fi;
8675
8676 eval "$ac_cv_use_imaglist"
8677 if test "$no_cache" != 1; then
8678 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
8679 fi
8680
8681 if test "$wxUSE_IMAGLIST" = yes; then
8682 echo "$as_me:$LINENO: result: yes" >&5
8683echo "${ECHO_T}yes" >&6
8684 else
8685 echo "$as_me:$LINENO: result: no" >&5
8686echo "${ECHO_T}no" >&6
8687 fi
8688
8689
8690 enablestring=
8691 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
8692echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6
8693 no_cache=0
8694 # Check whether --enable-listbook or --disable-listbook was given.
8695if test "${enable_listbook+set}" = set; then
8696 enableval="$enable_listbook"
8697
8698 if test "$enableval" = yes; then
8699 ac_cv_use_listbook='wxUSE_LISTBOOK=yes'
8700 else
8701 ac_cv_use_listbook='wxUSE_LISTBOOK=no'
8702 fi
8703
8704else
8705
8706 LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}`
8707 if test "x$LINE" != x ; then
8708 eval "DEFAULT_$LINE"
8709 else
8710 no_cache=1
8711 fi
8712
8713 ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK
8714
8715fi;
8716
8717 eval "$ac_cv_use_listbook"
8718 if test "$no_cache" != 1; then
8719 echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp
8720 fi
8721
8722 if test "$wxUSE_LISTBOOK" = yes; then
8723 echo "$as_me:$LINENO: result: yes" >&5
8724echo "${ECHO_T}yes" >&6
8725 else
8726 echo "$as_me:$LINENO: result: no" >&5
8727echo "${ECHO_T}no" >&6
8728 fi
8729
8730
8731 enablestring=
8732 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
8733echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
8734 no_cache=0
8735 # Check whether --enable-listbox or --disable-listbox was given.
8736if test "${enable_listbox+set}" = set; then
8737 enableval="$enable_listbox"
8738
8739 if test "$enableval" = yes; then
8740 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
8741 else
8742 ac_cv_use_listbox='wxUSE_LISTBOX=no'
8743 fi
8744
8745else
8746
8747 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
8748 if test "x$LINE" != x ; then
8749 eval "DEFAULT_$LINE"
8750 else
8751 no_cache=1
8752 fi
8753
8754 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
8755
8756fi;
8757
8758 eval "$ac_cv_use_listbox"
8759 if test "$no_cache" != 1; then
8760 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
8761 fi
8762
8763 if test "$wxUSE_LISTBOX" = yes; then
8764 echo "$as_me:$LINENO: result: yes" >&5
8765echo "${ECHO_T}yes" >&6
8766 else
8767 echo "$as_me:$LINENO: result: no" >&5
8768echo "${ECHO_T}no" >&6
8769 fi
8770
8771
8772 enablestring=
8773 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
8774echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
8775 no_cache=0
8776 # Check whether --enable-listctrl or --disable-listctrl was given.
8777if test "${enable_listctrl+set}" = set; then
8778 enableval="$enable_listctrl"
8779
8780 if test "$enableval" = yes; then
8781 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
8782 else
8783 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
8784 fi
8785
8786else
8787
8788 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
8789 if test "x$LINE" != x ; then
8790 eval "DEFAULT_$LINE"
8791 else
8792 no_cache=1
8793 fi
8794
8795 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
8796
8797fi;
8798
8799 eval "$ac_cv_use_listctrl"
8800 if test "$no_cache" != 1; then
8801 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
8802 fi
8803
8804 if test "$wxUSE_LISTCTRL" = yes; then
8805 echo "$as_me:$LINENO: result: yes" >&5
8806echo "${ECHO_T}yes" >&6
8807 else
8808 echo "$as_me:$LINENO: result: no" >&5
8809echo "${ECHO_T}no" >&6
8810 fi
8811
8812
8813 enablestring=
8814 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
8815echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
8816 no_cache=0
8817 # Check whether --enable-notebook or --disable-notebook was given.
8818if test "${enable_notebook+set}" = set; then
8819 enableval="$enable_notebook"
8820
8821 if test "$enableval" = yes; then
8822 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
8823 else
8824 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
8825 fi
8826
8827else
8828
8829 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
8830 if test "x$LINE" != x ; then
8831 eval "DEFAULT_$LINE"
8832 else
8833 no_cache=1
8834 fi
8835
8836 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
8837
8838fi;
8839
8840 eval "$ac_cv_use_notebook"
8841 if test "$no_cache" != 1; then
8842 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
8843 fi
8844
8845 if test "$wxUSE_NOTEBOOK" = yes; then
8846 echo "$as_me:$LINENO: result: yes" >&5
8847echo "${ECHO_T}yes" >&6
8848 else
8849 echo "$as_me:$LINENO: result: no" >&5
8850echo "${ECHO_T}no" >&6
8851 fi
8852
8853
642bcba9 8854 enablestring=
a57d600f
VZ
8855 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-odcombobox" >&5
8856echo $ECHO_N "checking for --${enablestring:-enable}-odcombobox... $ECHO_C" >&6
642bcba9 8857 no_cache=0
a57d600f
VZ
8858 # Check whether --enable-odcombobox or --disable-odcombobox was given.
8859if test "${enable_odcombobox+set}" = set; then
8860 enableval="$enable_odcombobox"
642bcba9
VZ
8861
8862 if test "$enableval" = yes; then
a57d600f 8863 ac_cv_use_odcombobox='wxUSE_ODCOMBOBOX=yes'
642bcba9 8864 else
a57d600f 8865 ac_cv_use_odcombobox='wxUSE_ODCOMBOBOX=no'
642bcba9
VZ
8866 fi
8867
8868else
8869
a57d600f 8870 LINE=`grep "wxUSE_ODCOMBOBOX" ${wx_arg_cache_file}`
642bcba9
VZ
8871 if test "x$LINE" != x ; then
8872 eval "DEFAULT_$LINE"
8873 else
8874 no_cache=1
8875 fi
8876
a57d600f 8877 ac_cv_use_odcombobox='wxUSE_ODCOMBOBOX='$DEFAULT_wxUSE_ODCOMBOBOX
642bcba9
VZ
8878
8879fi;
8880
a57d600f 8881 eval "$ac_cv_use_odcombobox"
642bcba9 8882 if test "$no_cache" != 1; then
a57d600f 8883 echo $ac_cv_use_odcombobox >> ${wx_arg_cache_file}.tmp
642bcba9
VZ
8884 fi
8885
a57d600f 8886 if test "$wxUSE_ODCOMBOBOX" = yes; then
642bcba9
VZ
8887 echo "$as_me:$LINENO: result: yes" >&5
8888echo "${ECHO_T}yes" >&6
8889 else
8890 echo "$as_me:$LINENO: result: no" >&5
8891echo "${ECHO_T}no" >&6
8892 fi
8893
8894
a848cd7e
SC
8895 enablestring=
8896 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
8897echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
8898 no_cache=0
8899 # Check whether --enable-radiobox or --disable-radiobox was given.
8900if test "${enable_radiobox+set}" = set; then
8901 enableval="$enable_radiobox"
8902
8903 if test "$enableval" = yes; then
8904 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
8905 else
8906 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
8907 fi
8908
8909else
8910
8911 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
8912 if test "x$LINE" != x ; then
8913 eval "DEFAULT_$LINE"
8914 else
8915 no_cache=1
8916 fi
8917
8918 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
8919
8920fi;
8921
8922 eval "$ac_cv_use_radiobox"
8923 if test "$no_cache" != 1; then
8924 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
8925 fi
8926
8927 if test "$wxUSE_RADIOBOX" = yes; then
8928 echo "$as_me:$LINENO: result: yes" >&5
8929echo "${ECHO_T}yes" >&6
8930 else
8931 echo "$as_me:$LINENO: result: no" >&5
8932echo "${ECHO_T}no" >&6
8933 fi
8934
8935
8936 enablestring=
8937 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
8938echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
8939 no_cache=0
8940 # Check whether --enable-radiobtn or --disable-radiobtn was given.
8941if test "${enable_radiobtn+set}" = set; then
8942 enableval="$enable_radiobtn"
8943
8944 if test "$enableval" = yes; then
8945 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
8946 else
8947 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
8948 fi
8949
8950else
8951
8952 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
8953 if test "x$LINE" != x ; then
8954 eval "DEFAULT_$LINE"
8955 else
8956 no_cache=1
8957 fi
8958
8959 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
8960
8961fi;
8962
8963 eval "$ac_cv_use_radiobtn"
8964 if test "$no_cache" != 1; then
8965 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
8966 fi
8967
8968 if test "$wxUSE_RADIOBTN" = yes; then
8969 echo "$as_me:$LINENO: result: yes" >&5
8970echo "${ECHO_T}yes" >&6
8971 else
8972 echo "$as_me:$LINENO: result: no" >&5
8973echo "${ECHO_T}no" >&6
8974 fi
8975
8976
8977 enablestring=
8978 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
8979echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
8980 no_cache=0
8981 # Check whether --enable-sash or --disable-sash was given.
8982if test "${enable_sash+set}" = set; then
8983 enableval="$enable_sash"
8984
8985 if test "$enableval" = yes; then
8986 ac_cv_use_sash='wxUSE_SASH=yes'
8987 else
8988 ac_cv_use_sash='wxUSE_SASH=no'
8989 fi
8990
8991else
8992
8993 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
8994 if test "x$LINE" != x ; then
8995 eval "DEFAULT_$LINE"
8996 else
8997 no_cache=1
8998 fi
8999
9000 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
9001
9002fi;
9003
9004 eval "$ac_cv_use_sash"
9005 if test "$no_cache" != 1; then
9006 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
9007 fi
9008
9009 if test "$wxUSE_SASH" = yes; then
9010 echo "$as_me:$LINENO: result: yes" >&5
9011echo "${ECHO_T}yes" >&6
9012 else
9013 echo "$as_me:$LINENO: result: no" >&5
9014echo "${ECHO_T}no" >&6
9015 fi
9016
9017
9018 enablestring=
9019 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
9020echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
9021 no_cache=0
9022 # Check whether --enable-scrollbar or --disable-scrollbar was given.
9023if test "${enable_scrollbar+set}" = set; then
9024 enableval="$enable_scrollbar"
9025
9026 if test "$enableval" = yes; then
9027 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
9028 else
9029 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
9030 fi
9031
9032else
9033
9034 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
9035 if test "x$LINE" != x ; then
9036 eval "DEFAULT_$LINE"
9037 else
9038 no_cache=1
9039 fi
9040
9041 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
9042
9043fi;
9044
9045 eval "$ac_cv_use_scrollbar"
9046 if test "$no_cache" != 1; then
9047 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
9048 fi
9049
9050 if test "$wxUSE_SCROLLBAR" = yes; then
9051 echo "$as_me:$LINENO: result: yes" >&5
9052echo "${ECHO_T}yes" >&6
9053 else
9054 echo "$as_me:$LINENO: result: no" >&5
9055echo "${ECHO_T}no" >&6
9056 fi
9057
9058
9059 enablestring=
9060 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
9061echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
9062 no_cache=0
9063 # Check whether --enable-slider or --disable-slider was given.
9064if test "${enable_slider+set}" = set; then
9065 enableval="$enable_slider"
9066
9067 if test "$enableval" = yes; then
9068 ac_cv_use_slider='wxUSE_SLIDER=yes'
9069 else
9070 ac_cv_use_slider='wxUSE_SLIDER=no'
9071 fi
9072
9073else
9074
9075 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
9076 if test "x$LINE" != x ; then
9077 eval "DEFAULT_$LINE"
9078 else
9079 no_cache=1
9080 fi
9081
9082 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
9083
9084fi;
9085
9086 eval "$ac_cv_use_slider"
9087 if test "$no_cache" != 1; then
9088 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
9089 fi
9090
9091 if test "$wxUSE_SLIDER" = yes; then
9092 echo "$as_me:$LINENO: result: yes" >&5
9093echo "${ECHO_T}yes" >&6
9094 else
9095 echo "$as_me:$LINENO: result: no" >&5
9096echo "${ECHO_T}no" >&6
9097 fi
9098
9099
9100 enablestring=
9101 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
9102echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
9103 no_cache=0
9104 # Check whether --enable-spinbtn or --disable-spinbtn was given.
9105if test "${enable_spinbtn+set}" = set; then
9106 enableval="$enable_spinbtn"
9107
9108 if test "$enableval" = yes; then
9109 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
9110 else
9111 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
9112 fi
9113
9114else
9115
9116 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
9117 if test "x$LINE" != x ; then
9118 eval "DEFAULT_$LINE"
9119 else
9120 no_cache=1
9121 fi
9122
9123 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
9124
9125fi;
9126
9127 eval "$ac_cv_use_spinbtn"
9128 if test "$no_cache" != 1; then
9129 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
9130 fi
9131
9132 if test "$wxUSE_SPINBTN" = yes; then
9133 echo "$as_me:$LINENO: result: yes" >&5
9134echo "${ECHO_T}yes" >&6
9135 else
9136 echo "$as_me:$LINENO: result: no" >&5
9137echo "${ECHO_T}no" >&6
9138 fi
9139
9140
9141 enablestring=
9142 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
9143echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
9144 no_cache=0
9145 # Check whether --enable-spinctrl or --disable-spinctrl was given.
9146if test "${enable_spinctrl+set}" = set; then
9147 enableval="$enable_spinctrl"
9148
9149 if test "$enableval" = yes; then
9150 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
9151 else
9152 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
9153 fi
9154
9155else
9156
9157 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
9158 if test "x$LINE" != x ; then
9159 eval "DEFAULT_$LINE"
9160 else
9161 no_cache=1
9162 fi
9163
9164 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
9165
9166fi;
9167
9168 eval "$ac_cv_use_spinctrl"
9169 if test "$no_cache" != 1; then
9170 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
9171 fi
9172
9173 if test "$wxUSE_SPINCTRL" = yes; then
9174 echo "$as_me:$LINENO: result: yes" >&5
9175echo "${ECHO_T}yes" >&6
9176 else
9177 echo "$as_me:$LINENO: result: no" >&5
9178echo "${ECHO_T}no" >&6
9179 fi
9180
9181
9182 enablestring=
9183 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
9184echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
9185 no_cache=0
9186 # Check whether --enable-splitter or --disable-splitter was given.
9187if test "${enable_splitter+set}" = set; then
9188 enableval="$enable_splitter"
9189
9190 if test "$enableval" = yes; then
9191 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
9192 else
9193 ac_cv_use_splitter='wxUSE_SPLITTER=no'
9194 fi
9195
9196else
9197
9198 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
9199 if test "x$LINE" != x ; then
9200 eval "DEFAULT_$LINE"
9201 else
9202 no_cache=1
9203 fi
9204
9205 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
9206
9207fi;
9208
9209 eval "$ac_cv_use_splitter"
9210 if test "$no_cache" != 1; then
9211 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
9212 fi
9213
9214 if test "$wxUSE_SPLITTER" = yes; then
9215 echo "$as_me:$LINENO: result: yes" >&5
9216echo "${ECHO_T}yes" >&6
9217 else
9218 echo "$as_me:$LINENO: result: no" >&5
9219echo "${ECHO_T}no" >&6
9220 fi
9221
9222
9223 enablestring=
9224 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
9225echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
9226 no_cache=0
9227 # Check whether --enable-statbmp or --disable-statbmp was given.
9228if test "${enable_statbmp+set}" = set; then
9229 enableval="$enable_statbmp"
9230
9231 if test "$enableval" = yes; then
9232 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
9233 else
9234 ac_cv_use_statbmp='wxUSE_STATBMP=no'
9235 fi
9236
9237else
9238
9239 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
9240 if test "x$LINE" != x ; then
9241 eval "DEFAULT_$LINE"
9242 else
9243 no_cache=1
9244 fi
9245
9246 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
9247
9248fi;
9249
9250 eval "$ac_cv_use_statbmp"
9251 if test "$no_cache" != 1; then
9252 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
9253 fi
9254
9255 if test "$wxUSE_STATBMP" = yes; then
9256 echo "$as_me:$LINENO: result: yes" >&5
9257echo "${ECHO_T}yes" >&6
9258 else
9259 echo "$as_me:$LINENO: result: no" >&5
9260echo "${ECHO_T}no" >&6
9261 fi
9262
9263
9264 enablestring=
9265 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
9266echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
9267 no_cache=0
9268 # Check whether --enable-statbox or --disable-statbox was given.
9269if test "${enable_statbox+set}" = set; then
9270 enableval="$enable_statbox"
9271
9272 if test "$enableval" = yes; then
9273 ac_cv_use_statbox='wxUSE_STATBOX=yes'
9274 else
9275 ac_cv_use_statbox='wxUSE_STATBOX=no'
9276 fi
9277
9278else
9279
9280 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
9281 if test "x$LINE" != x ; then
9282 eval "DEFAULT_$LINE"
9283 else
9284 no_cache=1
9285 fi
9286
9287 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
9288
9289fi;
9290
9291 eval "$ac_cv_use_statbox"
9292 if test "$no_cache" != 1; then
9293 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
9294 fi
9295
9296 if test "$wxUSE_STATBOX" = yes; then
9297 echo "$as_me:$LINENO: result: yes" >&5
9298echo "${ECHO_T}yes" >&6
9299 else
9300 echo "$as_me:$LINENO: result: no" >&5
9301echo "${ECHO_T}no" >&6
9302 fi
9303
9304
9305 enablestring=
9306 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
9307echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
9308 no_cache=0
9309 # Check whether --enable-statline or --disable-statline was given.
9310if test "${enable_statline+set}" = set; then
9311 enableval="$enable_statline"
9312
9313 if test "$enableval" = yes; then
9314 ac_cv_use_statline='wxUSE_STATLINE=yes'
9315 else
9316 ac_cv_use_statline='wxUSE_STATLINE=no'
9317 fi
9318
9319else
9320
9321 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
9322 if test "x$LINE" != x ; then
9323 eval "DEFAULT_$LINE"
9324 else
9325 no_cache=1
9326 fi
9327
9328 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
9329
9330fi;
9331
9332 eval "$ac_cv_use_statline"
9333 if test "$no_cache" != 1; then
9334 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
9335 fi
9336
9337 if test "$wxUSE_STATLINE" = yes; then
9338 echo "$as_me:$LINENO: result: yes" >&5
9339echo "${ECHO_T}yes" >&6
9340 else
9341 echo "$as_me:$LINENO: result: no" >&5
9342echo "${ECHO_T}no" >&6
9343 fi
9344
9345
9346 enablestring=
9347 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
9348echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
9349 no_cache=0
9350 # Check whether --enable-stattext or --disable-stattext was given.
9351if test "${enable_stattext+set}" = set; then
9352 enableval="$enable_stattext"
9353
9354 if test "$enableval" = yes; then
9355 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
9356 else
9357 ac_cv_use_stattext='wxUSE_STATTEXT=no'
9358 fi
9359
9360else
9361
9362 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
9363 if test "x$LINE" != x ; then
9364 eval "DEFAULT_$LINE"
9365 else
9366 no_cache=1
9367 fi
9368
9369 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
9370
9371fi;
9372
9373 eval "$ac_cv_use_stattext"
9374 if test "$no_cache" != 1; then
9375 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
9376 fi
9377
9378 if test "$wxUSE_STATTEXT" = yes; then
9379 echo "$as_me:$LINENO: result: yes" >&5
9380echo "${ECHO_T}yes" >&6
9381 else
9382 echo "$as_me:$LINENO: result: no" >&5
9383echo "${ECHO_T}no" >&6
9384 fi
9385
9386
9387 enablestring=
9388 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
9389echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
9390 no_cache=0
9391 # Check whether --enable-statusbar or --disable-statusbar was given.
9392if test "${enable_statusbar+set}" = set; then
9393 enableval="$enable_statusbar"
9394
9395 if test "$enableval" = yes; then
9396 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
9397 else
9398 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
9399 fi
9400
9401else
9402
9403 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
9404 if test "x$LINE" != x ; then
9405 eval "DEFAULT_$LINE"
9406 else
9407 no_cache=1
9408 fi
9409
9410 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
9411
9412fi;
9413
9414 eval "$ac_cv_use_statusbar"
9415 if test "$no_cache" != 1; then
9416 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
9417 fi
9418
9419 if test "$wxUSE_STATUSBAR" = yes; then
9420 echo "$as_me:$LINENO: result: yes" >&5
9421echo "${ECHO_T}yes" >&6
9422 else
9423 echo "$as_me:$LINENO: result: no" >&5
9424echo "${ECHO_T}no" >&6
9425 fi
9426
9427
9428 enablestring=
9429 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
9430echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
9431 no_cache=0
9432 # Check whether --enable-tabdialog or --disable-tabdialog was given.
9433if test "${enable_tabdialog+set}" = set; then
9434 enableval="$enable_tabdialog"
9435
9436 if test "$enableval" = yes; then
f10e38c4 9437 ac_cv_use_tabdialog='wxUSE_TAB_DIALOG=yes'
a848cd7e 9438 else
f10e38c4 9439 ac_cv_use_tabdialog='wxUSE_TAB_DIALOG=no'
a848cd7e
SC
9440 fi
9441
9442else
9443
f10e38c4 9444 LINE=`grep "wxUSE_TAB_DIALOG" ${wx_arg_cache_file}`
a848cd7e
SC
9445 if test "x$LINE" != x ; then
9446 eval "DEFAULT_$LINE"
9447 else
9448 no_cache=1
9449 fi
9450
f10e38c4 9451 ac_cv_use_tabdialog='wxUSE_TAB_DIALOG='$DEFAULT_wxUSE_TAB_DIALOG
a848cd7e
SC
9452
9453fi;
9454
9455 eval "$ac_cv_use_tabdialog"
9456 if test "$no_cache" != 1; then
9457 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
9458 fi
9459
f10e38c4 9460 if test "$wxUSE_TAB_DIALOG" = yes; then
a848cd7e
SC
9461 echo "$as_me:$LINENO: result: yes" >&5
9462echo "${ECHO_T}yes" >&6
9463 else
9464 echo "$as_me:$LINENO: result: no" >&5
9465echo "${ECHO_T}no" >&6
9466 fi
9467
9468
9469 enablestring=
9470 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
9471echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
9472 no_cache=0
9473 # Check whether --enable-textctrl or --disable-textctrl was given.
9474if test "${enable_textctrl+set}" = set; then
9475 enableval="$enable_textctrl"
9476
9477 if test "$enableval" = yes; then
9478 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
9479 else
9480 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
9481 fi
9482
9483else
9484
9485 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
9486 if test "x$LINE" != x ; then
9487 eval "DEFAULT_$LINE"
9488 else
9489 no_cache=1
9490 fi
9491
9492 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
9493
9494fi;
9495
9496 eval "$ac_cv_use_textctrl"
9497 if test "$no_cache" != 1; then
9498 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
9499 fi
9500
9501 if test "$wxUSE_TEXTCTRL" = yes; then
9502 echo "$as_me:$LINENO: result: yes" >&5
9503echo "${ECHO_T}yes" >&6
9504 else
9505 echo "$as_me:$LINENO: result: no" >&5
9506echo "${ECHO_T}no" >&6
9507 fi
9508
9509
9510 enablestring=
9511 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
9512echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
9513 no_cache=0
9514 # Check whether --enable-togglebtn or --disable-togglebtn was given.
9515if test "${enable_togglebtn+set}" = set; then
9516 enableval="$enable_togglebtn"
9517
9518 if test "$enableval" = yes; then
9519 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
9520 else
9521 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
9522 fi
9523
9524else
9525
9526 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
9527 if test "x$LINE" != x ; then
9528 eval "DEFAULT_$LINE"
9529 else
9530 no_cache=1
9531 fi
9532
9533 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
9534
9535fi;
9536
9537 eval "$ac_cv_use_togglebtn"
9538 if test "$no_cache" != 1; then
9539 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
9540 fi
9541
9542 if test "$wxUSE_TOGGLEBTN" = yes; then
9543 echo "$as_me:$LINENO: result: yes" >&5
9544echo "${ECHO_T}yes" >&6
9545 else
9546 echo "$as_me:$LINENO: result: no" >&5
9547echo "${ECHO_T}no" >&6
9548 fi
9549
9550
9551 enablestring=
9552 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
9553echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
9554 no_cache=0
9555 # Check whether --enable-toolbar or --disable-toolbar was given.
9556if test "${enable_toolbar+set}" = set; then
9557 enableval="$enable_toolbar"
9558
9559 if test "$enableval" = yes; then
9560 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
9561 else
9562 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
9563 fi
9564
9565else
9566
9567 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
9568 if test "x$LINE" != x ; then
9569 eval "DEFAULT_$LINE"
9570 else
9571 no_cache=1
9572 fi
9573
9574 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
9575
9576fi;
9577
9578 eval "$ac_cv_use_toolbar"
9579 if test "$no_cache" != 1; then
9580 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
9581 fi
9582
9583 if test "$wxUSE_TOOLBAR" = yes; then
9584 echo "$as_me:$LINENO: result: yes" >&5
9585echo "${ECHO_T}yes" >&6
9586 else
9587 echo "$as_me:$LINENO: result: no" >&5
9588echo "${ECHO_T}no" >&6
9589 fi
9590
9591
9592 enablestring=
9593 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
9594echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
9595 no_cache=0
9596 # Check whether --enable-tbarnative or --disable-tbarnative was given.
9597if test "${enable_tbarnative+set}" = set; then
9598 enableval="$enable_tbarnative"
9599
9600 if test "$enableval" = yes; then
9601 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
9602 else
9603 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
9604 fi
9605
9606else
9607
9608 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
9609 if test "x$LINE" != x ; then
9610 eval "DEFAULT_$LINE"
9611 else
9612 no_cache=1
9613 fi
9614
9615 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
9616
9617fi;
9618
9619 eval "$ac_cv_use_tbarnative"
9620 if test "$no_cache" != 1; then
9621 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
9622 fi
9623
9624 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
9625 echo "$as_me:$LINENO: result: yes" >&5
9626echo "${ECHO_T}yes" >&6
9627 else
9628 echo "$as_me:$LINENO: result: no" >&5
9629echo "${ECHO_T}no" >&6
9630 fi
9631
9632
9633 enablestring=
9634 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5
9635echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6
9636 no_cache=0
9637 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
9638if test "${enable_tbarsmpl+set}" = set; then
9639 enableval="$enable_tbarsmpl"
9640
9641 if test "$enableval" = yes; then
9642 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
9643 else
9644 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
9645 fi
9646
9647else
9648
9649 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
9650 if test "x$LINE" != x ; then
9651 eval "DEFAULT_$LINE"
9652 else
9653 no_cache=1
9654 fi
9655
9656 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
9657
9658fi;
9659
9660 eval "$ac_cv_use_tbarsmpl"
9661 if test "$no_cache" != 1; then
9662 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
9663 fi
9664
9665 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
9666 echo "$as_me:$LINENO: result: yes" >&5
9667echo "${ECHO_T}yes" >&6
9668 else
9669 echo "$as_me:$LINENO: result: no" >&5
9670echo "${ECHO_T}no" >&6
9671 fi
9672
9673
0093c2fc
VZ
9674 enablestring=
9675 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treebook" >&5
9676echo $ECHO_N "checking for --${enablestring:-enable}-treebook... $ECHO_C" >&6
9677 no_cache=0
9678 # Check whether --enable-treebook or --disable-treebook was given.
9679if test "${enable_treebook+set}" = set; then
9680 enableval="$enable_treebook"
9681
9682 if test "$enableval" = yes; then
9683 ac_cv_use_treebook='wxUSE_TREEBOOK=yes'
9684 else
9685 ac_cv_use_treebook='wxUSE_TREEBOOK=no'
9686 fi
9687
9688else
9689
9690 LINE=`grep "wxUSE_TREEBOOK" ${wx_arg_cache_file}`
9691 if test "x$LINE" != x ; then
9692 eval "DEFAULT_$LINE"
9693 else
9694 no_cache=1
9695 fi
9696
9697 ac_cv_use_treebook='wxUSE_TREEBOOK='$DEFAULT_wxUSE_TREEBOOK
9698
9699fi;
9700
9701 eval "$ac_cv_use_treebook"
9702 if test "$no_cache" != 1; then
9703 echo $ac_cv_use_treebook >> ${wx_arg_cache_file}.tmp
9704 fi
9705
9706 if test "$wxUSE_TREEBOOK" = yes; then
9707 echo "$as_me:$LINENO: result: yes" >&5
9708echo "${ECHO_T}yes" >&6
9709 else
9710 echo "$as_me:$LINENO: result: no" >&5
9711echo "${ECHO_T}no" >&6
9712 fi
9713
9714
5ec3bc43
JS
9715 enablestring=
9716 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbook" >&5
9717echo $ECHO_N "checking for --${enablestring:-enable}-toolbook... $ECHO_C" >&6
9718 no_cache=0
9719 # Check whether --enable-toolbook or --disable-toolbook was given.
9720if test "${enable_toolbook+set}" = set; then
9721 enableval="$enable_toolbook"
9722
9723 if test "$enableval" = yes; then
9724 ac_cv_use_toolbook='wxUSE_TOOLBOOK=yes'
9725 else
9726 ac_cv_use_toolbook='wxUSE_TOOLBOOK=no'
9727 fi
9728
9729else
9730
9731 LINE=`grep "wxUSE_TOOLBOOK" ${wx_arg_cache_file}`
9732 if test "x$LINE" != x ; then
9733 eval "DEFAULT_$LINE"
9734 else
9735 no_cache=1
9736 fi
9737
9738 ac_cv_use_toolbook='wxUSE_TOOLBOOK='$DEFAULT_wxUSE_TOOLBOOK
9739
9740fi;
9741
9742 eval "$ac_cv_use_toolbook"
9743 if test "$no_cache" != 1; then
9744 echo $ac_cv_use_toolbook >> ${wx_arg_cache_file}.tmp
9745 fi
9746
9747 if test "$wxUSE_TOOLBOOK" = yes; then
9748 echo "$as_me:$LINENO: result: yes" >&5
9749echo "${ECHO_T}yes" >&6
9750 else
9751 echo "$as_me:$LINENO: result: no" >&5
9752echo "${ECHO_T}no" >&6
9753 fi
9754
9755
a848cd7e
SC
9756 enablestring=
9757 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
9758echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
9759 no_cache=0
9760 # Check whether --enable-treectrl or --disable-treectrl was given.
9761if test "${enable_treectrl+set}" = set; then
9762 enableval="$enable_treectrl"
9763
9764 if test "$enableval" = yes; then
9765 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
9766 else
9767 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
9768 fi
9769
9770else
9771
9772 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
9773 if test "x$LINE" != x ; then
9774 eval "DEFAULT_$LINE"
9775 else
9776 no_cache=1
9777 fi
9778
9779 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
9780
9781fi;
9782
9783 eval "$ac_cv_use_treectrl"
9784 if test "$no_cache" != 1; then
9785 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
9786 fi
9787
9788 if test "$wxUSE_TREECTRL" = yes; then
9789 echo "$as_me:$LINENO: result: yes" >&5
9790echo "${ECHO_T}yes" >&6
9791 else
9792 echo "$as_me:$LINENO: result: no" >&5
9793echo "${ECHO_T}no" >&6
9794 fi
9795
9796
9797 enablestring=
9798 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
9799echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
9800 no_cache=0
9801 # Check whether --enable-tipwindow or --disable-tipwindow was given.
9802if test "${enable_tipwindow+set}" = set; then
9803 enableval="$enable_tipwindow"
9804
9805 if test "$enableval" = yes; then
9806 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
9807 else
9808 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
9809 fi
9810
9811else
9812
9813 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
9814 if test "x$LINE" != x ; then
9815 eval "DEFAULT_$LINE"
9816 else
9817 no_cache=1
9818 fi
9819
9820 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
9821
9822fi;
9823
9824 eval "$ac_cv_use_tipwindow"
9825 if test "$no_cache" != 1; then
9826 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
9827 fi
9828
9829 if test "$wxUSE_TIPWINDOW" = yes; then
9830 echo "$as_me:$LINENO: result: yes" >&5
9831echo "${ECHO_T}yes" >&6
9832 else
9833 echo "$as_me:$LINENO: result: no" >&5
9834echo "${ECHO_T}no" >&6
9835 fi
9836
9837
9838 enablestring=
9839 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
9840echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
9841 no_cache=0
9842 # Check whether --enable-popupwin or --disable-popupwin was given.
9843if test "${enable_popupwin+set}" = set; then
9844 enableval="$enable_popupwin"
9845
9846 if test "$enableval" = yes; then
9847 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
9848 else
9849 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
9850 fi
9851
9852else
9853
9854 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
9855 if test "x$LINE" != x ; then
9856 eval "DEFAULT_$LINE"
9857 else
9858 no_cache=1
9859 fi
9860
9861 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
9862
9863fi;
9864
9865 eval "$ac_cv_use_popupwin"
9866 if test "$no_cache" != 1; then
9867 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
9868 fi
9869
9870 if test "$wxUSE_POPUPWIN" = yes; then
9871 echo "$as_me:$LINENO: result: yes" >&5
9872echo "${ECHO_T}yes" >&6
9873 else
9874 echo "$as_me:$LINENO: result: no" >&5
9875echo "${ECHO_T}no" >&6
9876 fi
9877
9878
9879
9880
9881 enablestring=
9882 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
9883echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
9884 no_cache=0
9885 # Check whether --enable-commondlg or --disable-commondlg was given.
9886if test "${enable_commondlg+set}" = set; then
9887 enableval="$enable_commondlg"
9888
9889 if test "$enableval" = yes; then
9890 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
9891 else
9892 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
9893 fi
9894
9895else
9896
9897 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
9898 if test "x$LINE" != x ; then
9899 eval "DEFAULT_$LINE"
9900 else
9901 no_cache=1
9902 fi
9903
9904 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
9905
9906fi;
9907
9908 eval "$ac_cv_use_commondlg"
9909 if test "$no_cache" != 1; then
9910 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
9911 fi
9912
9913 if test "$wxUSE_COMMONDLGS" = yes; then
9914 echo "$as_me:$LINENO: result: yes" >&5
9915echo "${ECHO_T}yes" >&6
9916 else
9917 echo "$as_me:$LINENO: result: no" >&5
9918echo "${ECHO_T}no" >&6
9919 fi
9920
9921
9922 enablestring=
9923 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
9924echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
9925 no_cache=0
9926 # Check whether --enable-choicedlg or --disable-choicedlg was given.
9927if test "${enable_choicedlg+set}" = set; then
9928 enableval="$enable_choicedlg"
9929
9930 if test "$enableval" = yes; then
9931 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
9932 else
9933 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
9934 fi
9935
9936else
9937
9938 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
9939 if test "x$LINE" != x ; then
9940 eval "DEFAULT_$LINE"
9941 else
9942 no_cache=1
9943 fi
9944
9945 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
9946
9947fi;
9948
9949 eval "$ac_cv_use_choicedlg"
9950 if test "$no_cache" != 1; then
9951 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
9952 fi
9953
9954 if test "$wxUSE_CHOICEDLG" = yes; then
9955 echo "$as_me:$LINENO: result: yes" >&5
9956echo "${ECHO_T}yes" >&6
9957 else
9958 echo "$as_me:$LINENO: result: no" >&5
9959echo "${ECHO_T}no" >&6
9960 fi
9961
9962
9963 enablestring=
9964 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
9965echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
9966 no_cache=0
9967 # Check whether --enable-coldlg or --disable-coldlg was given.
9968if test "${enable_coldlg+set}" = set; then
9969 enableval="$enable_coldlg"
9970
9971 if test "$enableval" = yes; then
9972 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
9973 else
9974 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
9975 fi
9976
9977else
9978
9979 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
9980 if test "x$LINE" != x ; then
9981 eval "DEFAULT_$LINE"
9982 else
9983 no_cache=1
9984 fi
9985
9986 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
9987
9988fi;
9989
9990 eval "$ac_cv_use_coldlg"
9991 if test "$no_cache" != 1; then
9992 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
9993 fi
9994
9995 if test "$wxUSE_COLOURDLG" = yes; then
9996 echo "$as_me:$LINENO: result: yes" >&5
9997echo "${ECHO_T}yes" >&6
9998 else
9999 echo "$as_me:$LINENO: result: no" >&5
10000echo "${ECHO_T}no" >&6
10001 fi
10002
10003
10004 enablestring=
10005 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
10006echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
10007 no_cache=0
10008 # Check whether --enable-filedlg or --disable-filedlg was given.
10009if test "${enable_filedlg+set}" = set; then
10010 enableval="$enable_filedlg"
10011
10012 if test "$enableval" = yes; then
10013 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
10014 else
10015 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
10016 fi
10017
10018else
10019
10020 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
10021 if test "x$LINE" != x ; then
10022 eval "DEFAULT_$LINE"
10023 else
10024 no_cache=1
10025 fi
10026
10027 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
10028
10029fi;
10030
10031 eval "$ac_cv_use_filedlg"
10032 if test "$no_cache" != 1; then
10033 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
10034 fi
10035
10036 if test "$wxUSE_FILEDLG" = yes; then
10037 echo "$as_me:$LINENO: result: yes" >&5
10038echo "${ECHO_T}yes" >&6
10039 else
10040 echo "$as_me:$LINENO: result: no" >&5
10041echo "${ECHO_T}no" >&6
10042 fi
10043
10044
10045 enablestring=
10046 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
10047echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
10048 no_cache=0
10049 # Check whether --enable-finddlg or --disable-finddlg was given.
10050if test "${enable_finddlg+set}" = set; then
10051 enableval="$enable_finddlg"
10052
10053 if test "$enableval" = yes; then
10054 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
10055 else
10056 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
10057 fi
10058
10059else
10060
10061 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
10062 if test "x$LINE" != x ; then
10063 eval "DEFAULT_$LINE"
10064 else
10065 no_cache=1
10066 fi
10067
10068 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
10069
10070fi;
10071
10072 eval "$ac_cv_use_finddlg"
10073 if test "$no_cache" != 1; then
10074 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
10075 fi
10076
10077 if test "$wxUSE_FINDREPLDLG" = yes; then
10078 echo "$as_me:$LINENO: result: yes" >&5
10079echo "${ECHO_T}yes" >&6
10080 else
10081 echo "$as_me:$LINENO: result: no" >&5
10082echo "${ECHO_T}no" >&6
10083 fi
10084
10085
10086 enablestring=
10087 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
10088echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
10089 no_cache=0
10090 # Check whether --enable-fontdlg or --disable-fontdlg was given.
10091if test "${enable_fontdlg+set}" = set; then
10092 enableval="$enable_fontdlg"
10093
10094 if test "$enableval" = yes; then
10095 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
10096 else
10097 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
10098 fi
10099
10100else
10101
10102 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
10103 if test "x$LINE" != x ; then
10104 eval "DEFAULT_$LINE"
10105 else
10106 no_cache=1
10107 fi
10108
10109 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
10110
10111fi;
10112
10113 eval "$ac_cv_use_fontdlg"
10114 if test "$no_cache" != 1; then
10115 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
10116 fi
10117
10118 if test "$wxUSE_FONTDLG" = yes; then
10119 echo "$as_me:$LINENO: result: yes" >&5
10120echo "${ECHO_T}yes" >&6
10121 else
10122 echo "$as_me:$LINENO: result: no" >&5
10123echo "${ECHO_T}no" >&6
10124 fi
10125
10126
10127 enablestring=
10128 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
10129echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
10130 no_cache=0
10131 # Check whether --enable-dirdlg or --disable-dirdlg was given.
10132if test "${enable_dirdlg+set}" = set; then
10133 enableval="$enable_dirdlg"
10134
10135 if test "$enableval" = yes; then
10136 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
10137 else
10138 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
10139 fi
10140
10141else
10142
10143 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
10144 if test "x$LINE" != x ; then
10145 eval "DEFAULT_$LINE"
10146 else
10147 no_cache=1
10148 fi
10149
10150 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
10151
10152fi;
10153
10154 eval "$ac_cv_use_dirdlg"
10155 if test "$no_cache" != 1; then
10156 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
10157 fi
10158
10159 if test "$wxUSE_DIRDLG" = yes; then
10160 echo "$as_me:$LINENO: result: yes" >&5
10161echo "${ECHO_T}yes" >&6
10162 else
10163 echo "$as_me:$LINENO: result: no" >&5
10164echo "${ECHO_T}no" >&6
10165 fi
10166
10167
10168 enablestring=
10169 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
10170echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
10171 no_cache=0
10172 # Check whether --enable-msgdlg or --disable-msgdlg was given.
10173if test "${enable_msgdlg+set}" = set; then
10174 enableval="$enable_msgdlg"
10175
10176 if test "$enableval" = yes; then
10177 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
10178 else
10179 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
10180 fi
10181
10182else
10183
10184 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
10185 if test "x$LINE" != x ; then
10186 eval "DEFAULT_$LINE"
10187 else
10188 no_cache=1
10189 fi
10190
10191 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
10192
10193fi;
10194
10195 eval "$ac_cv_use_msgdlg"
10196 if test "$no_cache" != 1; then
10197 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
10198 fi
10199
10200 if test "$wxUSE_MSGDLG" = yes; then
10201 echo "$as_me:$LINENO: result: yes" >&5
10202echo "${ECHO_T}yes" >&6
10203 else
10204 echo "$as_me:$LINENO: result: no" >&5
10205echo "${ECHO_T}no" >&6
10206 fi
10207
10208
10209 enablestring=
10210 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
10211echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
10212 no_cache=0
10213 # Check whether --enable-numberdlg or --disable-numberdlg was given.
10214if test "${enable_numberdlg+set}" = set; then
10215 enableval="$enable_numberdlg"
10216
10217 if test "$enableval" = yes; then
10218 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
10219 else
10220 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
10221 fi
10222
10223else
10224
10225 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
10226 if test "x$LINE" != x ; then
10227 eval "DEFAULT_$LINE"
10228 else
10229 no_cache=1
10230 fi
10231
10232 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
10233
10234fi;
10235
10236 eval "$ac_cv_use_numberdlg"
10237 if test "$no_cache" != 1; then
10238 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
10239 fi
10240
10241 if test "$wxUSE_NUMBERDLG" = yes; then
10242 echo "$as_me:$LINENO: result: yes" >&5
10243echo "${ECHO_T}yes" >&6
10244 else
10245 echo "$as_me:$LINENO: result: no" >&5
10246echo "${ECHO_T}no" >&6
10247 fi
10248
10249
10250 enablestring=
10251 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
10252echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
10253 no_cache=0
10254 # Check whether --enable-splash or --disable-splash was given.
10255if test "${enable_splash+set}" = set; then
10256 enableval="$enable_splash"
10257
10258 if test "$enableval" = yes; then
10259 ac_cv_use_splash='wxUSE_SPLASH=yes'
10260 else
10261 ac_cv_use_splash='wxUSE_SPLASH=no'
10262 fi
10263
10264else
10265
10266 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
10267 if test "x$LINE" != x ; then
10268 eval "DEFAULT_$LINE"
10269 else
10270 no_cache=1
10271 fi
10272
10273 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
10274
10275fi;
10276
10277 eval "$ac_cv_use_splash"
10278 if test "$no_cache" != 1; then
10279 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
10280 fi
10281
10282 if test "$wxUSE_SPLASH" = yes; then
10283 echo "$as_me:$LINENO: result: yes" >&5
10284echo "${ECHO_T}yes" >&6
10285 else
10286 echo "$as_me:$LINENO: result: no" >&5
10287echo "${ECHO_T}no" >&6
10288 fi
10289
10290
10291 enablestring=
10292 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
10293echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
10294 no_cache=0
10295 # Check whether --enable-textdlg or --disable-textdlg was given.
10296if test "${enable_textdlg+set}" = set; then
10297 enableval="$enable_textdlg"
10298
10299 if test "$enableval" = yes; then
10300 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
10301 else
10302 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
10303 fi
10304
10305else
10306
10307 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
10308 if test "x$LINE" != x ; then
10309 eval "DEFAULT_$LINE"
10310 else
10311 no_cache=1
10312 fi
10313
10314 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
10315
10316fi;
10317
10318 eval "$ac_cv_use_textdlg"
10319 if test "$no_cache" != 1; then
10320 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
10321 fi
10322
10323 if test "$wxUSE_TEXTDLG" = yes; then
10324 echo "$as_me:$LINENO: result: yes" >&5
10325echo "${ECHO_T}yes" >&6
10326 else
10327 echo "$as_me:$LINENO: result: no" >&5
10328echo "${ECHO_T}no" >&6
10329 fi
10330
10331
10332 enablestring=
10333 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
10334echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
10335 no_cache=0
10336 # Check whether --enable-tipdlg or --disable-tipdlg was given.
10337if test "${enable_tipdlg+set}" = set; then
10338 enableval="$enable_tipdlg"
10339
10340 if test "$enableval" = yes; then
10341 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
10342 else
10343 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
10344 fi
10345
10346else
10347
10348 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
10349 if test "x$LINE" != x ; then
10350 eval "DEFAULT_$LINE"
10351 else
10352 no_cache=1
10353 fi
10354
10355 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
10356
10357fi;
10358
10359 eval "$ac_cv_use_tipdlg"
10360 if test "$no_cache" != 1; then
10361 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
10362 fi
10363
10364 if test "$wxUSE_STARTUP_TIPS" = yes; then
10365 echo "$as_me:$LINENO: result: yes" >&5
10366echo "${ECHO_T}yes" >&6
10367 else
10368 echo "$as_me:$LINENO: result: no" >&5
10369echo "${ECHO_T}no" >&6
10370 fi
10371
10372
10373 enablestring=
10374 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
10375echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
10376 no_cache=0
10377 # Check whether --enable-progressdlg or --disable-progressdlg was given.
10378if test "${enable_progressdlg+set}" = set; then
10379 enableval="$enable_progressdlg"
10380
10381 if test "$enableval" = yes; then
10382 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
10383 else
10384 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
10385 fi
10386
10387else
10388
10389 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
10390 if test "x$LINE" != x ; then
10391 eval "DEFAULT_$LINE"
10392 else
10393 no_cache=1
10394 fi
10395
10396 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
10397
10398fi;
10399
10400 eval "$ac_cv_use_progressdlg"
10401 if test "$no_cache" != 1; then
10402 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
10403 fi
10404
10405 if test "$wxUSE_PROGRESSDLG" = yes; then
10406 echo "$as_me:$LINENO: result: yes" >&5
10407echo "${ECHO_T}yes" >&6
10408 else
10409 echo "$as_me:$LINENO: result: no" >&5
10410echo "${ECHO_T}no" >&6
10411 fi
10412
10413
10414 enablestring=
10415 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
10416echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
10417 no_cache=0
10418 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
10419if test "${enable_wizarddlg+set}" = set; then
10420 enableval="$enable_wizarddlg"
10421
10422 if test "$enableval" = yes; then
10423 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
10424 else
10425 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
10426 fi
10427
10428else
10429
10430 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
10431 if test "x$LINE" != x ; then
10432 eval "DEFAULT_$LINE"
10433 else
10434 no_cache=1
10435 fi
10436
10437 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
10438
10439fi;
10440
10441 eval "$ac_cv_use_wizarddlg"
10442 if test "$no_cache" != 1; then
10443 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
10444 fi
10445
10446 if test "$wxUSE_WIZARDDLG" = yes; then
10447 echo "$as_me:$LINENO: result: yes" >&5
10448echo "${ECHO_T}yes" >&6
10449 else
10450 echo "$as_me:$LINENO: result: no" >&5
10451echo "${ECHO_T}no" >&6
10452 fi
10453
10454
10455
10456
10457 enablestring=
10458 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
10459echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
10460 no_cache=0
10461 # Check whether --enable-menus or --disable-menus was given.
10462if test "${enable_menus+set}" = set; then
10463 enableval="$enable_menus"
10464
10465 if test "$enableval" = yes; then
10466 ac_cv_use_menus='wxUSE_MENUS=yes'
10467 else
10468 ac_cv_use_menus='wxUSE_MENUS=no'
10469 fi
10470
10471else
10472
10473 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
10474 if test "x$LINE" != x ; then
10475 eval "DEFAULT_$LINE"
10476 else
10477 no_cache=1
10478 fi
10479
10480 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
10481
10482fi;
10483
10484 eval "$ac_cv_use_menus"
10485 if test "$no_cache" != 1; then
10486 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
10487 fi
10488
10489 if test "$wxUSE_MENUS" = yes; then
10490 echo "$as_me:$LINENO: result: yes" >&5
10491echo "${ECHO_T}yes" >&6
10492 else
10493 echo "$as_me:$LINENO: result: no" >&5
10494echo "${ECHO_T}no" >&6
10495 fi
10496
10497
10498 enablestring=
10499 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
10500echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
10501 no_cache=0
10502 # Check whether --enable-miniframe or --disable-miniframe was given.
10503if test "${enable_miniframe+set}" = set; then
10504 enableval="$enable_miniframe"
10505
10506 if test "$enableval" = yes; then
10507 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
10508 else
10509 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
10510 fi
10511
10512else
10513
10514 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
10515 if test "x$LINE" != x ; then
10516 eval "DEFAULT_$LINE"
10517 else
10518 no_cache=1
10519 fi
10520
10521 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
10522
10523fi;
10524
10525 eval "$ac_cv_use_miniframe"
10526 if test "$no_cache" != 1; then
10527 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
10528 fi
10529
10530 if test "$wxUSE_MINIFRAME" = yes; then
10531 echo "$as_me:$LINENO: result: yes" >&5
10532echo "${ECHO_T}yes" >&6
10533 else
10534 echo "$as_me:$LINENO: result: no" >&5
10535echo "${ECHO_T}no" >&6
10536 fi
10537
10538
10539 enablestring=
10540 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
10541echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
10542 no_cache=0
10543 # Check whether --enable-tooltips or --disable-tooltips was given.
10544if test "${enable_tooltips+set}" = set; then
10545 enableval="$enable_tooltips"
10546
10547 if test "$enableval" = yes; then
10548 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
10549 else
10550 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
10551 fi
10552
10553else
10554
10555 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
10556 if test "x$LINE" != x ; then
10557 eval "DEFAULT_$LINE"
10558 else
10559 no_cache=1
10560 fi
10561
10562 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
10563
10564fi;
10565
10566 eval "$ac_cv_use_tooltips"
10567 if test "$no_cache" != 1; then
10568 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
10569 fi
10570
10571 if test "$wxUSE_TOOLTIPS" = yes; then
10572 echo "$as_me:$LINENO: result: yes" >&5
10573echo "${ECHO_T}yes" >&6
10574 else
10575 echo "$as_me:$LINENO: result: no" >&5
10576echo "${ECHO_T}no" >&6
10577 fi
10578
10579
10580 enablestring=
10581 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
10582echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
10583 no_cache=0
10584 # Check whether --enable-splines or --disable-splines was given.
10585if test "${enable_splines+set}" = set; then
10586 enableval="$enable_splines"
10587
10588 if test "$enableval" = yes; then
10589 ac_cv_use_splines='wxUSE_SPLINES=yes'
10590 else
10591 ac_cv_use_splines='wxUSE_SPLINES=no'
10592 fi
10593
10594else
10595
10596 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
10597 if test "x$LINE" != x ; then
10598 eval "DEFAULT_$LINE"
10599 else
10600 no_cache=1
10601 fi
10602
10603 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
10604
10605fi;
10606
10607 eval "$ac_cv_use_splines"
10608 if test "$no_cache" != 1; then
10609 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
10610 fi
10611
10612 if test "$wxUSE_SPLINES" = yes; then
10613 echo "$as_me:$LINENO: result: yes" >&5
10614echo "${ECHO_T}yes" >&6
10615 else
10616 echo "$as_me:$LINENO: result: no" >&5
10617echo "${ECHO_T}no" >&6
10618 fi
10619
10620
fbe2ca43
SN
10621 enablestring=
10622 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mousewheel" >&5
10623echo $ECHO_N "checking for --${enablestring:-enable}-mousewheel... $ECHO_C" >&6
10624 no_cache=0
10625 # Check whether --enable-mousewheel or --disable-mousewheel was given.
10626if test "${enable_mousewheel+set}" = set; then
10627 enableval="$enable_mousewheel"
10628
10629 if test "$enableval" = yes; then
10630 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=yes'
10631 else
10632 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=no'
10633 fi
10634
10635else
10636
10637 LINE=`grep "wxUSE_MOUSEWHEEL" ${wx_arg_cache_file}`
10638 if test "x$LINE" != x ; then
10639 eval "DEFAULT_$LINE"
10640 else
10641 no_cache=1
10642 fi
10643
10644 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL='$DEFAULT_wxUSE_MOUSEWHEEL
10645
10646fi;
10647
10648 eval "$ac_cv_use_mousewheel"
10649 if test "$no_cache" != 1; then
10650 echo $ac_cv_use_mousewheel >> ${wx_arg_cache_file}.tmp
10651 fi
10652
10653 if test "$wxUSE_MOUSEWHEEL" = yes; then
10654 echo "$as_me:$LINENO: result: yes" >&5
10655echo "${ECHO_T}yes" >&6
10656 else
10657 echo "$as_me:$LINENO: result: no" >&5
10658echo "${ECHO_T}no" >&6
10659 fi
10660
10661
a848cd7e
SC
10662 enablestring=
10663 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
10664echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
10665 no_cache=0
10666 # Check whether --enable-validators or --disable-validators was given.
10667if test "${enable_validators+set}" = set; then
10668 enableval="$enable_validators"
10669
10670 if test "$enableval" = yes; then
10671 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
10672 else
10673 ac_cv_use_validators='wxUSE_VALIDATORS=no'
10674 fi
10675
10676else
10677
10678 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
10679 if test "x$LINE" != x ; then
10680 eval "DEFAULT_$LINE"
10681 else
10682 no_cache=1
10683 fi
10684
10685 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
10686
10687fi;
10688
10689 eval "$ac_cv_use_validators"
10690 if test "$no_cache" != 1; then
10691 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
10692 fi
10693
10694 if test "$wxUSE_VALIDATORS" = yes; then
10695 echo "$as_me:$LINENO: result: yes" >&5
10696echo "${ECHO_T}yes" >&6
10697 else
10698 echo "$as_me:$LINENO: result: no" >&5
10699echo "${ECHO_T}no" >&6
10700 fi
10701
10702
10703 enablestring=
10704 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
10705echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
10706 no_cache=0
10707 # Check whether --enable-busyinfo or --disable-busyinfo was given.
10708if test "${enable_busyinfo+set}" = set; then
10709 enableval="$enable_busyinfo"
10710
10711 if test "$enableval" = yes; then
10712 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
10713 else
10714 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
10715 fi
10716
10717else
10718
10719 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
10720 if test "x$LINE" != x ; then
10721 eval "DEFAULT_$LINE"
10722 else
10723 no_cache=1
10724 fi
10725
10726 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
10727
10728fi;
10729
10730 eval "$ac_cv_use_busyinfo"
10731 if test "$no_cache" != 1; then
10732 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
10733 fi
10734
10735 if test "$wxUSE_BUSYINFO" = yes; then
10736 echo "$as_me:$LINENO: result: yes" >&5
10737echo "${ECHO_T}yes" >&6
10738 else
10739 echo "$as_me:$LINENO: result: no" >&5
10740echo "${ECHO_T}no" >&6
10741 fi
10742
10743
10744 enablestring=
10745 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
10746echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
10747 no_cache=0
10748 # Check whether --enable-joystick or --disable-joystick was given.
10749if test "${enable_joystick+set}" = set; then
10750 enableval="$enable_joystick"
10751
10752 if test "$enableval" = yes; then
10753 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
10754 else
10755 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
10756 fi
10757
10758else
10759
10760 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
10761 if test "x$LINE" != x ; then
10762 eval "DEFAULT_$LINE"
10763 else
10764 no_cache=1
10765 fi
10766
10767 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
10768
10769fi;
10770
10771 eval "$ac_cv_use_joystick"
10772 if test "$no_cache" != 1; then
10773 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
10774 fi
10775
10776 if test "$wxUSE_JOYSTICK" = yes; then
10777 echo "$as_me:$LINENO: result: yes" >&5
10778echo "${ECHO_T}yes" >&6
10779 else
10780 echo "$as_me:$LINENO: result: no" >&5
10781echo "${ECHO_T}no" >&6
10782 fi
10783
10784
10785 enablestring=
10786 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
10787echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
10788 no_cache=0
10789 # Check whether --enable-metafile or --disable-metafile was given.
10790if test "${enable_metafile+set}" = set; then
10791 enableval="$enable_metafile"
10792
10793 if test "$enableval" = yes; then
10794 ac_cv_use_metafile='wxUSE_METAFILE=yes'
10795 else
10796 ac_cv_use_metafile='wxUSE_METAFILE=no'
10797 fi
10798
10799else
10800
10801 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
10802 if test "x$LINE" != x ; then
10803 eval "DEFAULT_$LINE"
10804 else
10805 no_cache=1
10806 fi
10807
10808 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
10809
10810fi;
10811
10812 eval "$ac_cv_use_metafile"
10813 if test "$no_cache" != 1; then
10814 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
10815 fi
10816
10817 if test "$wxUSE_METAFILE" = yes; then
10818 echo "$as_me:$LINENO: result: yes" >&5
10819echo "${ECHO_T}yes" >&6
10820 else
10821 echo "$as_me:$LINENO: result: no" >&5
10822echo "${ECHO_T}no" >&6
10823 fi
10824
10825
10826 enablestring=
10827 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
10828echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
10829 no_cache=0
10830 # Check whether --enable-dragimage or --disable-dragimage was given.
10831if test "${enable_dragimage+set}" = set; then
10832 enableval="$enable_dragimage"
10833
10834 if test "$enableval" = yes; then
10835 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
10836 else
10837 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
10838 fi
10839
10840else
10841
10842 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
10843 if test "x$LINE" != x ; then
10844 eval "DEFAULT_$LINE"
10845 else
10846 no_cache=1
10847 fi
10848
10849 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
10850
10851fi;
10852
10853 eval "$ac_cv_use_dragimage"
10854 if test "$no_cache" != 1; then
10855 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
10856 fi
10857
10858 if test "$wxUSE_DRAGIMAGE" = yes; then
10859 echo "$as_me:$LINENO: result: yes" >&5
10860echo "${ECHO_T}yes" >&6
10861 else
10862 echo "$as_me:$LINENO: result: no" >&5
10863echo "${ECHO_T}no" >&6
10864 fi
10865
10866
10867 enablestring=
10868 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
10869echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
10870 no_cache=0
10871 # Check whether --enable-accessibility or --disable-accessibility was given.
10872if test "${enable_accessibility+set}" = set; then
10873 enableval="$enable_accessibility"
10874
10875 if test "$enableval" = yes; then
10876 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
10877 else
10878 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
10879 fi
10880
10881else
10882
10883 LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
10884 if test "x$LINE" != x ; then
10885 eval "DEFAULT_$LINE"
10886 else
10887 no_cache=1
10888 fi
10889
10890 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
10891
10892fi;
10893
10894 eval "$ac_cv_use_accessibility"
10895 if test "$no_cache" != 1; then
10896 echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
10897 fi
10898
10899 if test "$wxUSE_ACCESSIBILITY" = yes; then
10900 echo "$as_me:$LINENO: result: yes" >&5
10901echo "${ECHO_T}yes" >&6
10902 else
10903 echo "$as_me:$LINENO: result: no" >&5
10904echo "${ECHO_T}no" >&6
10905 fi
10906
10907
38b4a946
VZ
10908if test "$wxUSE_MSW" = "1"; then
10909
10910 enablestring=
10911 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dccache" >&5
10912echo $ECHO_N "checking for --${enablestring:-enable}-dccache... $ECHO_C" >&6
10913 no_cache=0
10914 # Check whether --enable-dccache or --disable-dccache was given.
10915if test "${enable_dccache+set}" = set; then
10916 enableval="$enable_dccache"
10917
10918 if test "$enableval" = yes; then
10919 ac_cv_use_dccache='wxUSE_DC_CACHEING=yes'
10920 else
10921 ac_cv_use_dccache='wxUSE_DC_CACHEING=no'
10922 fi
10923
10924else
10925
10926 LINE=`grep "wxUSE_DC_CACHEING" ${wx_arg_cache_file}`
10927 if test "x$LINE" != x ; then
10928 eval "DEFAULT_$LINE"
10929 else
10930 no_cache=1
10931 fi
10932
10933 ac_cv_use_dccache='wxUSE_DC_CACHEING='$DEFAULT_wxUSE_DC_CACHEING
10934
10935fi;
10936
10937 eval "$ac_cv_use_dccache"
10938 if test "$no_cache" != 1; then
10939 echo $ac_cv_use_dccache >> ${wx_arg_cache_file}.tmp
10940 fi
10941
10942 if test "$wxUSE_DC_CACHEING" = yes; then
10943 echo "$as_me:$LINENO: result: yes" >&5
10944echo "${ECHO_T}yes" >&6
10945 else
10946 echo "$as_me:$LINENO: result: no" >&5
10947echo "${ECHO_T}no" >&6
10948 fi
10949
10950fi
10951
a848cd7e
SC
10952
10953
10954 enablestring=
10955 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
10956echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
10957 no_cache=0
10958 # Check whether --enable-palette or --disable-palette was given.
10959if test "${enable_palette+set}" = set; then
10960 enableval="$enable_palette"
10961
10962 if test "$enableval" = yes; then
10963 ac_cv_use_palette='wxUSE_PALETTE=yes'
10964 else
10965 ac_cv_use_palette='wxUSE_PALETTE=no'
10966 fi
10967
10968else
10969
10970 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
10971 if test "x$LINE" != x ; then
10972 eval "DEFAULT_$LINE"
10973 else
10974 no_cache=1
10975 fi
10976
10977 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
10978
10979fi;
10980
10981 eval "$ac_cv_use_palette"
10982 if test "$no_cache" != 1; then
10983 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
10984 fi
10985
10986 if test "$wxUSE_PALETTE" = yes; then
10987 echo "$as_me:$LINENO: result: yes" >&5
10988echo "${ECHO_T}yes" >&6
10989 else
10990 echo "$as_me:$LINENO: result: no" >&5
10991echo "${ECHO_T}no" >&6
10992 fi
10993
10994
10995 enablestring=
10996 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
10997echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
10998 no_cache=0
10999 # Check whether --enable-image or --disable-image was given.
11000if test "${enable_image+set}" = set; then
11001 enableval="$enable_image"
11002
11003 if test "$enableval" = yes; then
11004 ac_cv_use_image='wxUSE_IMAGE=yes'
11005 else
11006 ac_cv_use_image='wxUSE_IMAGE=no'
11007 fi
11008
11009else
11010
11011 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
11012 if test "x$LINE" != x ; then
11013 eval "DEFAULT_$LINE"
11014 else
11015 no_cache=1
11016 fi
11017
11018 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
11019
11020fi;
11021
11022 eval "$ac_cv_use_image"
11023 if test "$no_cache" != 1; then
11024 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
11025 fi
11026
11027 if test "$wxUSE_IMAGE" = yes; then
11028 echo "$as_me:$LINENO: result: yes" >&5
11029echo "${ECHO_T}yes" >&6
11030 else
11031 echo "$as_me:$LINENO: result: no" >&5
11032echo "${ECHO_T}no" >&6
11033 fi
11034
11035
11036 enablestring=
11037 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
11038echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
11039 no_cache=0
11040 # Check whether --enable-gif or --disable-gif was given.
11041if test "${enable_gif+set}" = set; then
11042 enableval="$enable_gif"
11043
11044 if test "$enableval" = yes; then
11045 ac_cv_use_gif='wxUSE_GIF=yes'
11046 else
11047 ac_cv_use_gif='wxUSE_GIF=no'
11048 fi
11049
11050else
11051
11052 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
11053 if test "x$LINE" != x ; then
11054 eval "DEFAULT_$LINE"
11055 else
11056 no_cache=1
11057 fi
11058
11059 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
11060
11061fi;
11062
11063 eval "$ac_cv_use_gif"
11064 if test "$no_cache" != 1; then
11065 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
11066 fi
11067
11068 if test "$wxUSE_GIF" = yes; then
11069 echo "$as_me:$LINENO: result: yes" >&5
11070echo "${ECHO_T}yes" >&6
11071 else
11072 echo "$as_me:$LINENO: result: no" >&5
11073echo "${ECHO_T}no" >&6
11074 fi
11075
11076
11077 enablestring=
11078 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
11079echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
11080 no_cache=0
11081 # Check whether --enable-pcx or --disable-pcx was given.
11082if test "${enable_pcx+set}" = set; then
11083 enableval="$enable_pcx"
11084
11085 if test "$enableval" = yes; then
11086 ac_cv_use_pcx='wxUSE_PCX=yes'
11087 else
11088 ac_cv_use_pcx='wxUSE_PCX=no'
11089 fi
11090
11091else
11092
11093 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
11094 if test "x$LINE" != x ; then
11095 eval "DEFAULT_$LINE"
11096 else
11097 no_cache=1
11098 fi
11099
11100 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
11101
11102fi;
11103
11104 eval "$ac_cv_use_pcx"
11105 if test "$no_cache" != 1; then
11106 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
11107 fi
11108
11109 if test "$wxUSE_PCX" = yes; then
11110 echo "$as_me:$LINENO: result: yes" >&5
11111echo "${ECHO_T}yes" >&6
11112 else
11113 echo "$as_me:$LINENO: result: no" >&5
11114echo "${ECHO_T}no" >&6
11115 fi
11116
11117
11118 enablestring=
11119 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
11120echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
11121 no_cache=0
11122 # Check whether --enable-iff or --disable-iff was given.
11123if test "${enable_iff+set}" = set; then
11124 enableval="$enable_iff"
11125
11126 if test "$enableval" = yes; then
11127 ac_cv_use_iff='wxUSE_IFF=yes'
11128 else
11129 ac_cv_use_iff='wxUSE_IFF=no'
11130 fi
11131
11132else
11133
11134 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
11135 if test "x$LINE" != x ; then
11136 eval "DEFAULT_$LINE"
11137 else
11138 no_cache=1
11139 fi
11140
11141 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
11142
11143fi;
11144
11145 eval "$ac_cv_use_iff"
11146 if test "$no_cache" != 1; then
11147 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
11148 fi
11149
11150 if test "$wxUSE_IFF" = yes; then
11151 echo "$as_me:$LINENO: result: yes" >&5
11152echo "${ECHO_T}yes" >&6
11153 else
11154 echo "$as_me:$LINENO: result: no" >&5
11155echo "${ECHO_T}no" >&6
11156 fi
11157
11158
11159 enablestring=
11160 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
11161echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
11162 no_cache=0
11163 # Check whether --enable-pnm or --disable-pnm was given.
11164if test "${enable_pnm+set}" = set; then
11165 enableval="$enable_pnm"
11166
11167 if test "$enableval" = yes; then
11168 ac_cv_use_pnm='wxUSE_PNM=yes'
11169 else
11170 ac_cv_use_pnm='wxUSE_PNM=no'
11171 fi
11172
11173else
11174
11175 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
11176 if test "x$LINE" != x ; then
11177 eval "DEFAULT_$LINE"
11178 else
11179 no_cache=1
11180 fi
11181
11182 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
11183
11184fi;
11185
11186 eval "$ac_cv_use_pnm"
11187 if test "$no_cache" != 1; then
11188 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
11189 fi
11190
11191 if test "$wxUSE_PNM" = yes; then
11192 echo "$as_me:$LINENO: result: yes" >&5
11193echo "${ECHO_T}yes" >&6
11194 else
11195 echo "$as_me:$LINENO: result: no" >&5
11196echo "${ECHO_T}no" >&6
11197 fi
11198
11199
11200 enablestring=
11201 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
11202echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
11203 no_cache=0
11204 # Check whether --enable-xpm or --disable-xpm was given.
11205if test "${enable_xpm+set}" = set; then
11206 enableval="$enable_xpm"
11207
11208 if test "$enableval" = yes; then
11209 ac_cv_use_xpm='wxUSE_XPM=yes'
11210 else
11211 ac_cv_use_xpm='wxUSE_XPM=no'
11212 fi
11213
11214else
11215
11216 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
11217 if test "x$LINE" != x ; then
11218 eval "DEFAULT_$LINE"
11219 else
11220 no_cache=1
11221 fi
11222
11223 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
11224
11225fi;
11226
11227 eval "$ac_cv_use_xpm"
11228 if test "$no_cache" != 1; then
11229 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
11230 fi
11231
11232 if test "$wxUSE_XPM" = yes; then
11233 echo "$as_me:$LINENO: result: yes" >&5
11234echo "${ECHO_T}yes" >&6
11235 else
11236 echo "$as_me:$LINENO: result: no" >&5
11237echo "${ECHO_T}no" >&6
11238 fi
11239
11240
11241 enablestring=
11242 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
11243echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
11244 no_cache=0
11245 # Check whether --enable-ico_cur or --disable-ico_cur was given.
11246if test "${enable_ico_cur+set}" = set; then
11247 enableval="$enable_ico_cur"
11248
11249 if test "$enableval" = yes; then
11250 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
11251 else
11252 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
11253 fi
11254
11255else
11256
11257 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
11258 if test "x$LINE" != x ; then
11259 eval "DEFAULT_$LINE"
11260 else
11261 no_cache=1
11262 fi
11263
11264 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
11265
11266fi;
11267
11268 eval "$ac_cv_use_ico_cur"
11269 if test "$no_cache" != 1; then
11270 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
11271 fi
11272
11273 if test "$wxUSE_ICO_CUR" = yes; then
11274 echo "$as_me:$LINENO: result: yes" >&5
11275echo "${ECHO_T}yes" >&6
11276 else
11277 echo "$as_me:$LINENO: result: no" >&5
11278echo "${ECHO_T}no" >&6
11279 fi
11280
11281
11282fi
11283
11284
11285
ceec2216
RL
11286# Check whether --with-flavour or --without-flavour was given.
11287if test "${with_flavour+set}" = set; then
11288 withval="$with_flavour"
11289 WX_FLAVOUR="$withval"
11290fi;
11291
11292
11293
a848cd7e
SC
11294 enablestring=
11295 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
11296echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
11297 no_cache=0
11298 # Check whether --enable-official_build or --disable-official_build was given.
11299if test "${enable_official_build+set}" = set; then
11300 enableval="$enable_official_build"
11301
11302 if test "$enableval" = yes; then
11303 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
11304 else
11305 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
11306 fi
11307
11308else
11309
11310 LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
11311 if test "x$LINE" != x ; then
11312 eval "DEFAULT_$LINE"
11313 else
11314 no_cache=1
11315 fi
11316
11317 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
11318
11319fi;
11320
11321 eval "$ac_cv_use_official_build"
11322 if test "$no_cache" != 1; then
11323 echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
11324 fi
11325
11326 if test "$wxUSE_OFFICIAL_BUILD" = yes; then
11327 echo "$as_me:$LINENO: result: yes" >&5
11328echo "${ECHO_T}yes" >&6
11329 else
11330 echo "$as_me:$LINENO: result: no" >&5
11331echo "${ECHO_T}no" >&6
11332 fi
11333
11334# Check whether --enable-vendor or --disable-vendor was given.
11335if test "${enable_vendor+set}" = set; then
11336 enableval="$enable_vendor"
11337 VENDOR="$enableval"
11338fi;
11339if test "x$VENDOR" = "x"; then
11340 VENDOR="custom"
11341fi
11342
a848cd7e
SC
11343
11344
11345
11346 echo "saving argument cache $wx_arg_cache_file"
11347 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
11348
11349
11350
11351echo "$as_me:$LINENO: checking for toolkit" >&5
11352echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
11353
11354# In Wine, we need to default to MSW, not GTK or MOTIF
11355if test "$wxUSE_WINE" = "yes"; then
11356 DEFAULT_DEFAULT_wxUSE_GTK=0
11357 DEFAULT_DEFAULT_wxUSE_MOTIF=0
11358 DEFAULT_DEFAULT_wxUSE_MSW=1
11359 wxUSE_SHARED=no
11360fi
11361
f597b41c 11362
a848cd7e
SC
11363if test "$wxUSE_GUI" = "yes"; then
11364
11365 if test "$USE_BEOS" = 1; then
11366 { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
11367echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
11368 { (exit 1); exit 1; }; }
11369 fi
11370
11371 if test "$TOOLKIT_GIVEN" = 1; then
11372 for toolkit in `echo $ALL_TOOLKITS`; do
11373 var=wxUSE_$toolkit
11374 eval "value=\$${var}"
f34ca037
MW
11375 if test "x$value" = "xno"; then
11376 eval "$var=0"
11377 elif test "x$value" != "x"; then
11378 eval "$var=1"
11379 fi
11380
11381 if test "x$value" != "x" -a "x$value" != "xyes" -a "x$value" != "xno"; then
11382 eval "wx${toolkit}_VERSION=$value"
11383 fi
a848cd7e
SC
11384 done
11385 else
11386 for toolkit in `echo $ALL_TOOLKITS`; do
11387 if test "$has_toolkit_in_cache" != 1; then
11388 var=DEFAULT_DEFAULT_wxUSE_$toolkit
11389 else
11390 var=DEFAULT_wxUSE_$toolkit
f34ca037
MW
11391
11392 eval "version=\$DEFAULT_wx${toolkit}_VERSION"
11393 if test "x$version" != "x"; then
11394 eval "wx${toolkit}_VERSION=$version"
11395 fi
a848cd7e
SC
11396 fi
11397 eval "wxUSE_$toolkit=\$${var}"
11398 done
11399 fi
11400
11401 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
11402 + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
11403 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
11404
11405 case "${host}" in
11406 *-pc-os2_emx | *-pc-os2-emx )
11407 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
11408 esac
11409
11410 case "$NUM_TOOLKITS" in
11411 1)
11412 ;;
11413 0)
11414 { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
11415echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
11416 { (exit 1); exit 1; }; }
11417 ;;
11418 *)
11419 { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
11420echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
11421 { (exit 1); exit 1; }; }
11422 esac
11423
f34ca037
MW
11424 # to be removed when --disable-gtk2 isn't needed
11425 if test "x$wxUSE_GTK2" = "xyes"; then
11426 wxGTK_VERSION=2
11427 elif test "x$wxUSE_GTK2" = "xno"; then
11428 wxGTK_VERSION=1
11429 fi
11430
a848cd7e
SC
11431 for toolkit in `echo $ALL_TOOLKITS`; do
11432 var=wxUSE_$toolkit
11433 eval "value=\$${var}"
11434 if test "x$value" != x; then
11435 cache_var=CACHE_$toolkit
11436 eval "cache=\$${cache_var}"
11437 if test "$cache" = 1; then
11438 echo "$var=$value" >> ${wx_arg_cache_file}
f34ca037
MW
11439 eval "version=\$wx${toolkit}_VERSION"
11440 if test "x$version" != "x"; then
11441 echo "wx${toolkit}_VERSION=$version" >> ${wx_arg_cache_file}
11442 fi
a848cd7e
SC
11443 fi
11444 if test "$value" = 1; then
11445 toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
11446 echo "$as_me:$LINENO: result: $toolkit_echo" >&5
11447echo "${ECHO_T}$toolkit_echo" >&6
11448 fi
11449 fi
11450 done
11451else
11452 if test "x$host_alias" != "x"; then
11453 echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
11454echo "${ECHO_T}base ($host_alias hosted) only" >&6
11455 else
11456 echo "$as_me:$LINENO: result: base only" >&5
11457echo "${ECHO_T}base only" >&6
11458 fi
11459fi
11460
11461wants_win32=0
11462doesnt_want_win32=0
11463case "${host}" in
11464 *-*-cygwin*)
11465 if test "$wxUSE_MSW" = 1 ; then
11466 wants_win32=1
7275146d 11467 BAKEFILE_FORCE_PLATFORM=win32
a848cd7e
SC
11468 else
11469 doesnt_want_win32=1
11470 fi
11471 ;;
11472 *-*-mingw*)
11473 wants_win32=1
11474 ;;
11475esac
11476
11477if test "$wxUSE_WINE" = "yes"; then
11478 wants_win32=1
11479 CC=winegcc
11480 CXX=wineg++
a848cd7e
SC
11481 LDFLAGS_GUI="-mwindows"
11482fi
11483
11484if test "$wants_win32" = 1 ; then
11485 USE_UNIX=0
11486 USE_WIN32=1
11487 cat >>confdefs.h <<\_ACEOF
11488#define __WIN32__ 1
11489_ACEOF
11490
11491 cat >>confdefs.h <<\_ACEOF
11492#define __WIN95__ 1
11493_ACEOF
11494
11495 cat >>confdefs.h <<\_ACEOF
11496#define __WINDOWS__ 1
11497_ACEOF
11498
11499 cat >>confdefs.h <<\_ACEOF
11500#define __GNUWIN32__ 1
11501_ACEOF
11502
11503 cat >>confdefs.h <<\_ACEOF
11504#define STRICT 1
11505_ACEOF
11506
11507 cat >>confdefs.h <<\_ACEOF
11508#define WINVER 0x0400
11509_ACEOF
11510
11511fi
11512if test "$doesnt_want_win32" = 1 ; then
11513 USE_UNIX=1
11514 USE_WIN32=0
11515fi
11516
11517if test "$USE_UNIX" = 1 ; then
11518 wxUSE_UNIX=yes
11519 cat >>confdefs.h <<\_ACEOF
11520#define __UNIX__ 1
11521_ACEOF
11522
11523fi
11524
11525
11526cat >confcache <<\_ACEOF
11527# This file is a shell script that caches the results of configure
11528# tests run on this system so they can be shared between configure
11529# scripts and configure runs, see configure's option --config-cache.
11530# It is not useful on other systems. If it contains results you don't
11531# want to keep, you may remove or edit it.
11532#
11533# config.status only pays attention to the cache file if you give it
11534# the --recheck option to rerun configure.
11535#
11536# `ac_cv_env_foo' variables (set or unset) will be overridden when
11537# loading this file, other *unset* `ac_cv_foo' will be assigned the
11538# following values.
11539
11540_ACEOF
11541
11542# The following way of writing the cache mishandles newlines in values,
11543# but we know of no workaround that is simple, portable, and efficient.
11544# So, don't put newlines in cache variables' values.
11545# Ultrix sh set writes to stderr and can't be redirected directly,
11546# and sets the high bit in the cache file unless we assign to the vars.
11547{
11548 (set) 2>&1 |
11549 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11550 *ac_space=\ *)
11551 # `set' does not quote correctly, so add quotes (double-quote
11552 # substitution turns \\\\ into \\, and sed turns \\ into \).
11553 sed -n \
ac1cb8d3
VS
11554 "s/'/'\\\\''/g;
11555 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
11556 ;;
11557 *)
11558 # `set' quotes correctly as required by POSIX, so do not add quotes.
11559 sed -n \
ac1cb8d3 11560 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
11561 ;;
11562 esac;
11563} |
11564 sed '
11565 t clear
11566 : clear
11567 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11568 t end
11569 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11570 : end' >>confcache
11571if diff $cache_file confcache >/dev/null 2>&1; then :; else
11572 if test -w $cache_file; then
11573 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11574 cat confcache >$cache_file
11575 else
11576 echo "not updating unwritable cache $cache_file"
11577 fi
11578fi
11579rm -f confcache
11580
a848cd7e 11581CFLAGS=${CFLAGS:=}
6dcfc289
DE
11582
11583
3006edc0 11584
6dcfc289 11585 ac_ext=c
a848cd7e
SC
11586ac_cpp='$CPP $CPPFLAGS'
11587ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11588ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11589ac_compiler_gnu=$ac_cv_c_compiler_gnu
11590if test -n "$ac_tool_prefix"; then
11591 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11592set dummy ${ac_tool_prefix}gcc; ac_word=$2
11593echo "$as_me:$LINENO: checking for $ac_word" >&5
11594echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11595if test "${ac_cv_prog_CC+set}" = set; then
11596 echo $ECHO_N "(cached) $ECHO_C" >&6
11597else
11598 if test -n "$CC"; then
11599 ac_cv_prog_CC="$CC" # Let the user override the test.
11600else
11601as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11602for as_dir in $PATH
11603do
11604 IFS=$as_save_IFS
11605 test -z "$as_dir" && as_dir=.
11606 for ac_exec_ext in '' $ac_executable_extensions; do
11607 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11608 ac_cv_prog_CC="${ac_tool_prefix}gcc"
11609 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11610 break 2
11611 fi
11612done
11613done
11614
11615fi
11616fi
11617CC=$ac_cv_prog_CC
11618if test -n "$CC"; then
11619 echo "$as_me:$LINENO: result: $CC" >&5
11620echo "${ECHO_T}$CC" >&6
11621else
11622 echo "$as_me:$LINENO: result: no" >&5
11623echo "${ECHO_T}no" >&6
11624fi
11625
11626fi
11627if test -z "$ac_cv_prog_CC"; then
11628 ac_ct_CC=$CC
11629 # Extract the first word of "gcc", so it can be a program name with args.
11630set dummy gcc; ac_word=$2
11631echo "$as_me:$LINENO: checking for $ac_word" >&5
11632echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11633if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11634 echo $ECHO_N "(cached) $ECHO_C" >&6
11635else
11636 if test -n "$ac_ct_CC"; then
11637 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11638else
11639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11640for as_dir in $PATH
11641do
11642 IFS=$as_save_IFS
11643 test -z "$as_dir" && as_dir=.
11644 for ac_exec_ext in '' $ac_executable_extensions; do
11645 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11646 ac_cv_prog_ac_ct_CC="gcc"
11647 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11648 break 2
11649 fi
11650done
11651done
11652
11653fi
11654fi
11655ac_ct_CC=$ac_cv_prog_ac_ct_CC
11656if test -n "$ac_ct_CC"; then
11657 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11658echo "${ECHO_T}$ac_ct_CC" >&6
11659else
11660 echo "$as_me:$LINENO: result: no" >&5
11661echo "${ECHO_T}no" >&6
11662fi
11663
11664 CC=$ac_ct_CC
11665else
11666 CC="$ac_cv_prog_CC"
11667fi
11668
11669if test -z "$CC"; then
11670 if test -n "$ac_tool_prefix"; then
11671 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11672set dummy ${ac_tool_prefix}cc; ac_word=$2
11673echo "$as_me:$LINENO: checking for $ac_word" >&5
11674echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11675if test "${ac_cv_prog_CC+set}" = set; then
11676 echo $ECHO_N "(cached) $ECHO_C" >&6
11677else
11678 if test -n "$CC"; then
11679 ac_cv_prog_CC="$CC" # Let the user override the test.
11680else
11681as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11682for as_dir in $PATH
11683do
11684 IFS=$as_save_IFS
11685 test -z "$as_dir" && as_dir=.
11686 for ac_exec_ext in '' $ac_executable_extensions; do
11687 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11688 ac_cv_prog_CC="${ac_tool_prefix}cc"
11689 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11690 break 2
11691 fi
11692done
11693done
11694
11695fi
11696fi
11697CC=$ac_cv_prog_CC
11698if test -n "$CC"; then
11699 echo "$as_me:$LINENO: result: $CC" >&5
11700echo "${ECHO_T}$CC" >&6
11701else
11702 echo "$as_me:$LINENO: result: no" >&5
11703echo "${ECHO_T}no" >&6
11704fi
11705
11706fi
11707if test -z "$ac_cv_prog_CC"; then
11708 ac_ct_CC=$CC
11709 # Extract the first word of "cc", so it can be a program name with args.
11710set dummy cc; ac_word=$2
11711echo "$as_me:$LINENO: checking for $ac_word" >&5
11712echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11713if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11714 echo $ECHO_N "(cached) $ECHO_C" >&6
11715else
11716 if test -n "$ac_ct_CC"; then
11717 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11718else
11719as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11720for as_dir in $PATH
11721do
11722 IFS=$as_save_IFS
11723 test -z "$as_dir" && as_dir=.
11724 for ac_exec_ext in '' $ac_executable_extensions; do
11725 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11726 ac_cv_prog_ac_ct_CC="cc"
11727 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11728 break 2
11729 fi
11730done
11731done
11732
11733fi
11734fi
11735ac_ct_CC=$ac_cv_prog_ac_ct_CC
11736if test -n "$ac_ct_CC"; then
11737 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11738echo "${ECHO_T}$ac_ct_CC" >&6
11739else
11740 echo "$as_me:$LINENO: result: no" >&5
11741echo "${ECHO_T}no" >&6
11742fi
11743
11744 CC=$ac_ct_CC
11745else
11746 CC="$ac_cv_prog_CC"
11747fi
11748
11749fi
11750if test -z "$CC"; then
11751 # Extract the first word of "cc", so it can be a program name with args.
11752set dummy cc; ac_word=$2
11753echo "$as_me:$LINENO: checking for $ac_word" >&5
11754echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11755if test "${ac_cv_prog_CC+set}" = set; then
11756 echo $ECHO_N "(cached) $ECHO_C" >&6
11757else
11758 if test -n "$CC"; then
11759 ac_cv_prog_CC="$CC" # Let the user override the test.
11760else
11761 ac_prog_rejected=no
11762as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11763for as_dir in $PATH
11764do
11765 IFS=$as_save_IFS
11766 test -z "$as_dir" && as_dir=.
11767 for ac_exec_ext in '' $ac_executable_extensions; do
11768 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11769 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11770 ac_prog_rejected=yes
11771 continue
11772 fi
11773 ac_cv_prog_CC="cc"
11774 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11775 break 2
11776 fi
11777done
11778done
11779
11780if test $ac_prog_rejected = yes; then
11781 # We found a bogon in the path, so make sure we never use it.
11782 set dummy $ac_cv_prog_CC
11783 shift
11784 if test $# != 0; then
11785 # We chose a different compiler from the bogus one.
11786 # However, it has the same basename, so the bogon will be chosen
11787 # first if we set CC to just the basename; use the full file name.
11788 shift
11789 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11790 fi
11791fi
11792fi
11793fi
11794CC=$ac_cv_prog_CC
11795if test -n "$CC"; then
11796 echo "$as_me:$LINENO: result: $CC" >&5
11797echo "${ECHO_T}$CC" >&6
11798else
11799 echo "$as_me:$LINENO: result: no" >&5
11800echo "${ECHO_T}no" >&6
11801fi
11802
11803fi
11804if test -z "$CC"; then
11805 if test -n "$ac_tool_prefix"; then
11806 for ac_prog in cl
11807 do
11808 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11809set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11810echo "$as_me:$LINENO: checking for $ac_word" >&5
11811echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11812if test "${ac_cv_prog_CC+set}" = set; then
11813 echo $ECHO_N "(cached) $ECHO_C" >&6
11814else
11815 if test -n "$CC"; then
11816 ac_cv_prog_CC="$CC" # Let the user override the test.
11817else
11818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11819for as_dir in $PATH
11820do
11821 IFS=$as_save_IFS
11822 test -z "$as_dir" && as_dir=.
11823 for ac_exec_ext in '' $ac_executable_extensions; do
11824 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11825 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11826 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11827 break 2
11828 fi
11829done
11830done
11831
11832fi
11833fi
11834CC=$ac_cv_prog_CC
11835if test -n "$CC"; then
11836 echo "$as_me:$LINENO: result: $CC" >&5
11837echo "${ECHO_T}$CC" >&6
11838else
11839 echo "$as_me:$LINENO: result: no" >&5
11840echo "${ECHO_T}no" >&6
11841fi
11842
11843 test -n "$CC" && break
11844 done
11845fi
11846if test -z "$CC"; then
11847 ac_ct_CC=$CC
11848 for ac_prog in cl
11849do
11850 # Extract the first word of "$ac_prog", so it can be a program name with args.
11851set dummy $ac_prog; ac_word=$2
11852echo "$as_me:$LINENO: checking for $ac_word" >&5
11853echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11854if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11855 echo $ECHO_N "(cached) $ECHO_C" >&6
11856else
11857 if test -n "$ac_ct_CC"; then
11858 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11859else
11860as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11861for as_dir in $PATH
11862do
11863 IFS=$as_save_IFS
11864 test -z "$as_dir" && as_dir=.
11865 for ac_exec_ext in '' $ac_executable_extensions; do
11866 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11867 ac_cv_prog_ac_ct_CC="$ac_prog"
11868 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11869 break 2
11870 fi
11871done
11872done
11873
11874fi
11875fi
11876ac_ct_CC=$ac_cv_prog_ac_ct_CC
11877if test -n "$ac_ct_CC"; then
11878 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11879echo "${ECHO_T}$ac_ct_CC" >&6
11880else
11881 echo "$as_me:$LINENO: result: no" >&5
11882echo "${ECHO_T}no" >&6
11883fi
11884
11885 test -n "$ac_ct_CC" && break
11886done
11887
11888 CC=$ac_ct_CC
11889fi
11890
11891fi
11892
11893
11894test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
11895See \`config.log' for more details." >&5
11896echo "$as_me: error: no acceptable C compiler found in \$PATH
11897See \`config.log' for more details." >&2;}
11898 { (exit 1); exit 1; }; }
11899
11900# Provide some information about the compiler.
11901echo "$as_me:$LINENO:" \
11902 "checking for C compiler version" >&5
11903ac_compiler=`set X $ac_compile; echo $2`
11904{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11905 (eval $ac_compiler --version </dev/null >&5) 2>&5
11906 ac_status=$?
11907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11908 (exit $ac_status); }
11909{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11910 (eval $ac_compiler -v </dev/null >&5) 2>&5
11911 ac_status=$?
11912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11913 (exit $ac_status); }
11914{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11915 (eval $ac_compiler -V </dev/null >&5) 2>&5
11916 ac_status=$?
11917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11918 (exit $ac_status); }
11919
11920cat >conftest.$ac_ext <<_ACEOF
11921/* confdefs.h. */
11922_ACEOF
11923cat confdefs.h >>conftest.$ac_ext
11924cat >>conftest.$ac_ext <<_ACEOF
11925/* end confdefs.h. */
11926
11927int
11928main ()
11929{
11930
11931 ;
11932 return 0;
11933}
11934_ACEOF
11935ac_clean_files_save=$ac_clean_files
11936ac_clean_files="$ac_clean_files a.out a.exe b.out"
11937# Try to create an executable without -o first, disregard a.out.
11938# It will help us diagnose broken compilers, and finding out an intuition
11939# of exeext.
ac1cb8d3
VS
11940echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
11941echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
a848cd7e
SC
11942ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
11943if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
11944 (eval $ac_link_default) 2>&5
11945 ac_status=$?
11946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11947 (exit $ac_status); }; then
11948 # Find the output, starting from the most likely. This scheme is
11949# not robust to junk in `.', hence go to wildcards (a.*) only as a last
11950# resort.
11951
11952# Be careful to initialize this variable, since it used to be cached.
11953# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
11954ac_cv_exeext=
11955# b.out is created by i960 compilers.
11956for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
11957do
11958 test -f "$ac_file" || continue
11959 case $ac_file in
11960 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
ac1cb8d3 11961 ;;
a848cd7e 11962 conftest.$ac_ext )
ac1cb8d3
VS
11963 # This is the source file.
11964 ;;
a848cd7e 11965 [ab].out )
ac1cb8d3
VS
11966 # We found the default executable, but exeext='' is most
11967 # certainly right.
11968 break;;
a848cd7e 11969 *.* )
ac1cb8d3
VS
11970 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
11971 # FIXME: I believe we export ac_cv_exeext for Libtool,
11972 # but it would be cool to find out if it's true. Does anybody
11973 # maintain Libtool? --akim.
11974 export ac_cv_exeext
11975 break;;
a848cd7e 11976 * )
ac1cb8d3 11977 break;;
a848cd7e
SC
11978 esac
11979done
11980else
11981 echo "$as_me: failed program was:" >&5
11982sed 's/^/| /' conftest.$ac_ext >&5
11983
11984{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
11985See \`config.log' for more details." >&5
11986echo "$as_me: error: C compiler cannot create executables
11987See \`config.log' for more details." >&2;}
11988 { (exit 77); exit 77; }; }
11989fi
11990
11991ac_exeext=$ac_cv_exeext
11992echo "$as_me:$LINENO: result: $ac_file" >&5
11993echo "${ECHO_T}$ac_file" >&6
11994
11995# Check the compiler produces executables we can run. If not, either
11996# the compiler is broken, or we cross compile.
11997echo "$as_me:$LINENO: checking whether the C compiler works" >&5
11998echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
11999# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
12000# If not cross compiling, check that we can run a simple program.
12001if test "$cross_compiling" != yes; then
12002 if { ac_try='./$ac_file'
12003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12004 (eval $ac_try) 2>&5
12005 ac_status=$?
12006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12007 (exit $ac_status); }; }; then
12008 cross_compiling=no
12009 else
12010 if test "$cross_compiling" = maybe; then
12011 cross_compiling=yes
12012 else
12013 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
12014If you meant to cross compile, use \`--host'.
12015See \`config.log' for more details." >&5
12016echo "$as_me: error: cannot run C compiled programs.
12017If you meant to cross compile, use \`--host'.
12018See \`config.log' for more details." >&2;}
12019 { (exit 1); exit 1; }; }
12020 fi
12021 fi
12022fi
12023echo "$as_me:$LINENO: result: yes" >&5
12024echo "${ECHO_T}yes" >&6
12025
12026rm -f a.out a.exe conftest$ac_cv_exeext b.out
12027ac_clean_files=$ac_clean_files_save
12028# Check the compiler produces executables we can run. If not, either
12029# the compiler is broken, or we cross compile.
12030echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
12031echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
12032echo "$as_me:$LINENO: result: $cross_compiling" >&5
12033echo "${ECHO_T}$cross_compiling" >&6
12034
12035echo "$as_me:$LINENO: checking for suffix of executables" >&5
12036echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
12037if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12038 (eval $ac_link) 2>&5
12039 ac_status=$?
12040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12041 (exit $ac_status); }; then
12042 # If both `conftest.exe' and `conftest' are `present' (well, observable)
12043# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
12044# work properly (i.e., refer to `conftest.exe'), while it won't with
12045# `rm'.
12046for ac_file in conftest.exe conftest conftest.*; do
12047 test -f "$ac_file" || continue
12048 case $ac_file in
12049 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
12050 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
ac1cb8d3
VS
12051 export ac_cv_exeext
12052 break;;
a848cd7e
SC
12053 * ) break;;
12054 esac
12055done
12056else
12057 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
12058See \`config.log' for more details." >&5
12059echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
12060See \`config.log' for more details." >&2;}
12061 { (exit 1); exit 1; }; }
12062fi
12063
12064rm -f conftest$ac_cv_exeext
12065echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
12066echo "${ECHO_T}$ac_cv_exeext" >&6
12067
12068rm -f conftest.$ac_ext
12069EXEEXT=$ac_cv_exeext
12070ac_exeext=$EXEEXT
12071echo "$as_me:$LINENO: checking for suffix of object files" >&5
12072echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
12073if test "${ac_cv_objext+set}" = set; then
12074 echo $ECHO_N "(cached) $ECHO_C" >&6
12075else
12076 cat >conftest.$ac_ext <<_ACEOF
12077/* confdefs.h. */
12078_ACEOF
12079cat confdefs.h >>conftest.$ac_ext
12080cat >>conftest.$ac_ext <<_ACEOF
12081/* end confdefs.h. */
12082
12083int
12084main ()
12085{
12086
12087 ;
12088 return 0;
12089}
12090_ACEOF
12091rm -f conftest.o conftest.obj
12092if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12093 (eval $ac_compile) 2>&5
12094 ac_status=$?
12095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12096 (exit $ac_status); }; then
12097 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
12098 case $ac_file in
12099 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
12100 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
12101 break;;
12102 esac
12103done
12104else
12105 echo "$as_me: failed program was:" >&5
12106sed 's/^/| /' conftest.$ac_ext >&5
12107
12108{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
12109See \`config.log' for more details." >&5
12110echo "$as_me: error: cannot compute suffix of object files: cannot compile
12111See \`config.log' for more details." >&2;}
12112 { (exit 1); exit 1; }; }
12113fi
12114
12115rm -f conftest.$ac_cv_objext conftest.$ac_ext
12116fi
12117echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
12118echo "${ECHO_T}$ac_cv_objext" >&6
12119OBJEXT=$ac_cv_objext
12120ac_objext=$OBJEXT
12121echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
12122echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
12123if test "${ac_cv_c_compiler_gnu+set}" = set; then
12124 echo $ECHO_N "(cached) $ECHO_C" >&6
12125else
12126 cat >conftest.$ac_ext <<_ACEOF
12127/* confdefs.h. */
12128_ACEOF
12129cat confdefs.h >>conftest.$ac_ext
12130cat >>conftest.$ac_ext <<_ACEOF
12131/* end confdefs.h. */
12132
12133int
12134main ()
12135{
12136#ifndef __GNUC__
12137 choke me
12138#endif
12139
12140 ;
12141 return 0;
12142}
12143_ACEOF
12144rm -f conftest.$ac_objext
12145if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12146 (eval $ac_compile) 2>conftest.er1
a848cd7e 12147 ac_status=$?
ac1cb8d3
VS
12148 grep -v '^ *+' conftest.er1 >conftest.err
12149 rm -f conftest.er1
12150 cat conftest.err >&5
a848cd7e
SC
12151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12152 (exit $ac_status); } &&
c9a66001 12153 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12155 (eval $ac_try) 2>&5
12156 ac_status=$?
12157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12158 (exit $ac_status); }; } &&
12159 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12161 (eval $ac_try) 2>&5
12162 ac_status=$?
12163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12164 (exit $ac_status); }; }; then
12165 ac_compiler_gnu=yes
12166else
12167 echo "$as_me: failed program was:" >&5
12168sed 's/^/| /' conftest.$ac_ext >&5
12169
12170ac_compiler_gnu=no
12171fi
ac1cb8d3 12172rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12173ac_cv_c_compiler_gnu=$ac_compiler_gnu
12174
12175fi
12176echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
12177echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
12178GCC=`test $ac_compiler_gnu = yes && echo yes`
12179ac_test_CFLAGS=${CFLAGS+set}
12180ac_save_CFLAGS=$CFLAGS
8aeeb05c 12181CFLAGS="-g"
a848cd7e
SC
12182echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12183echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
12184if test "${ac_cv_prog_cc_g+set}" = set; then
12185 echo $ECHO_N "(cached) $ECHO_C" >&6
12186else
12187 cat >conftest.$ac_ext <<_ACEOF
12188/* confdefs.h. */
12189_ACEOF
12190cat confdefs.h >>conftest.$ac_ext
12191cat >>conftest.$ac_ext <<_ACEOF
12192/* end confdefs.h. */
12193
12194int
12195main ()
12196{
12197
12198 ;
12199 return 0;
12200}
12201_ACEOF
12202rm -f conftest.$ac_objext
12203if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12204 (eval $ac_compile) 2>conftest.er1
a848cd7e 12205 ac_status=$?
ac1cb8d3
VS
12206 grep -v '^ *+' conftest.er1 >conftest.err
12207 rm -f conftest.er1
12208 cat conftest.err >&5
a848cd7e
SC
12209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12210 (exit $ac_status); } &&
c9a66001 12211 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12213 (eval $ac_try) 2>&5
12214 ac_status=$?
12215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12216 (exit $ac_status); }; } &&
12217 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12219 (eval $ac_try) 2>&5
12220 ac_status=$?
12221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12222 (exit $ac_status); }; }; then
12223 ac_cv_prog_cc_g=yes
12224else
12225 echo "$as_me: failed program was:" >&5
12226sed 's/^/| /' conftest.$ac_ext >&5
12227
12228ac_cv_prog_cc_g=no
12229fi
ac1cb8d3 12230rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12231fi
12232echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12233echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
12234if test "$ac_test_CFLAGS" = set; then
12235 CFLAGS=$ac_save_CFLAGS
12236elif test $ac_cv_prog_cc_g = yes; then
12237 if test "$GCC" = yes; then
12238 CFLAGS="-g -O2"
12239 else
12240 CFLAGS="-g"
12241 fi
12242else
12243 if test "$GCC" = yes; then
12244 CFLAGS="-O2"
12245 else
12246 CFLAGS=
12247 fi
12248fi
12249echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
12250echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
12251if test "${ac_cv_prog_cc_stdc+set}" = set; then
12252 echo $ECHO_N "(cached) $ECHO_C" >&6
12253else
12254 ac_cv_prog_cc_stdc=no
12255ac_save_CC=$CC
12256cat >conftest.$ac_ext <<_ACEOF
12257/* confdefs.h. */
12258_ACEOF
12259cat confdefs.h >>conftest.$ac_ext
12260cat >>conftest.$ac_ext <<_ACEOF
12261/* end confdefs.h. */
12262#include <stdarg.h>
12263#include <stdio.h>
12264#include <sys/types.h>
12265#include <sys/stat.h>
12266/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
12267struct buf { int x; };
12268FILE * (*rcsopen) (struct buf *, struct stat *, int);
12269static char *e (p, i)
12270 char **p;
12271 int i;
12272{
12273 return p[i];
12274}
12275static char *f (char * (*g) (char **, int), char **p, ...)
12276{
12277 char *s;
12278 va_list v;
12279 va_start (v,p);
12280 s = g (p, va_arg (v,int));
12281 va_end (v);
12282 return s;
12283}
ac1cb8d3
VS
12284
12285/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
12286 function prototypes and stuff, but not '\xHH' hex character constants.
12287 These don't provoke an error unfortunately, instead are silently treated
12288 as 'x'. The following induces an error, until -std1 is added to get
12289 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
12290 array size at least. It's necessary to write '\x00'==0 to get something
12291 that's true only with -std1. */
12292int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12293
a848cd7e
SC
12294int test (int i, double x);
12295struct s1 {int (*f) (int a);};
12296struct s2 {int (*f) (double a);};
12297int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12298int argc;
12299char **argv;
12300int
12301main ()
12302{
12303return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
12304 ;
12305 return 0;
12306}
12307_ACEOF
12308# Don't try gcc -ansi; that turns off useful extensions and
12309# breaks some systems' header files.
12310# AIX -qlanglvl=ansi
12311# Ultrix and OSF/1 -std1
12312# HP-UX 10.20 and later -Ae
12313# HP-UX older versions -Aa -D_HPUX_SOURCE
12314# SVR4 -Xc -D__EXTENSIONS__
12315for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12316do
12317 CC="$ac_save_CC $ac_arg"
12318 rm -f conftest.$ac_objext
12319if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12320 (eval $ac_compile) 2>conftest.er1
a848cd7e 12321 ac_status=$?
ac1cb8d3
VS
12322 grep -v '^ *+' conftest.er1 >conftest.err
12323 rm -f conftest.er1
12324 cat conftest.err >&5
a848cd7e
SC
12325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12326 (exit $ac_status); } &&
c9a66001 12327 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12329 (eval $ac_try) 2>&5
12330 ac_status=$?
12331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12332 (exit $ac_status); }; } &&
12333 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12335 (eval $ac_try) 2>&5
12336 ac_status=$?
12337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12338 (exit $ac_status); }; }; then
12339 ac_cv_prog_cc_stdc=$ac_arg
12340break
12341else
12342 echo "$as_me: failed program was:" >&5
12343sed 's/^/| /' conftest.$ac_ext >&5
12344
12345fi
ac1cb8d3 12346rm -f conftest.err conftest.$ac_objext
a848cd7e
SC
12347done
12348rm -f conftest.$ac_ext conftest.$ac_objext
12349CC=$ac_save_CC
12350
12351fi
12352
12353case "x$ac_cv_prog_cc_stdc" in
12354 x|xno)
12355 echo "$as_me:$LINENO: result: none needed" >&5
12356echo "${ECHO_T}none needed" >&6 ;;
12357 *)
12358 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
12359echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
12360 CC="$CC $ac_cv_prog_cc_stdc" ;;
12361esac
12362
12363# Some people use a C++ compiler to compile C. Since we use `exit',
12364# in C++ we need to declare it. In case someone uses the same compiler
12365# for both compiling C and C++ we need to have the C++ compiler decide
12366# the declaration of exit, since it's the most demanding environment.
12367cat >conftest.$ac_ext <<_ACEOF
12368#ifndef __cplusplus
12369 choke me
12370#endif
12371_ACEOF
12372rm -f conftest.$ac_objext
12373if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12374 (eval $ac_compile) 2>conftest.er1
a848cd7e 12375 ac_status=$?
ac1cb8d3
VS
12376 grep -v '^ *+' conftest.er1 >conftest.err
12377 rm -f conftest.er1
12378 cat conftest.err >&5
a848cd7e
SC
12379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12380 (exit $ac_status); } &&
c9a66001 12381 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12383 (eval $ac_try) 2>&5
12384 ac_status=$?
12385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12386 (exit $ac_status); }; } &&
12387 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12389 (eval $ac_try) 2>&5
12390 ac_status=$?
12391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12392 (exit $ac_status); }; }; then
12393 for ac_declaration in \
ac1cb8d3 12394 '' \
a848cd7e
SC
12395 'extern "C" void std::exit (int) throw (); using std::exit;' \
12396 'extern "C" void std::exit (int); using std::exit;' \
12397 'extern "C" void exit (int) throw ();' \
12398 'extern "C" void exit (int);' \
12399 'void exit (int);'
12400do
12401 cat >conftest.$ac_ext <<_ACEOF
12402/* confdefs.h. */
12403_ACEOF
12404cat confdefs.h >>conftest.$ac_ext
12405cat >>conftest.$ac_ext <<_ACEOF
12406/* end confdefs.h. */
de59c161 12407$ac_declaration
ac1cb8d3 12408#include <stdlib.h>
a848cd7e
SC
12409int
12410main ()
12411{
12412exit (42);
12413 ;
12414 return 0;
12415}
12416_ACEOF
12417rm -f conftest.$ac_objext
12418if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12419 (eval $ac_compile) 2>conftest.er1
a848cd7e 12420 ac_status=$?
ac1cb8d3
VS
12421 grep -v '^ *+' conftest.er1 >conftest.err
12422 rm -f conftest.er1
12423 cat conftest.err >&5
a848cd7e
SC
12424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12425 (exit $ac_status); } &&
c9a66001 12426 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12428 (eval $ac_try) 2>&5
12429 ac_status=$?
12430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12431 (exit $ac_status); }; } &&
12432 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12434 (eval $ac_try) 2>&5
12435 ac_status=$?
12436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12437 (exit $ac_status); }; }; then
12438 :
12439else
12440 echo "$as_me: failed program was:" >&5
12441sed 's/^/| /' conftest.$ac_ext >&5
12442
12443continue
12444fi
ac1cb8d3 12445rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12446 cat >conftest.$ac_ext <<_ACEOF
12447/* confdefs.h. */
12448_ACEOF
12449cat confdefs.h >>conftest.$ac_ext
12450cat >>conftest.$ac_ext <<_ACEOF
12451/* end confdefs.h. */
12452$ac_declaration
12453int
12454main ()
12455{
12456exit (42);
12457 ;
12458 return 0;
12459}
12460_ACEOF
12461rm -f conftest.$ac_objext
12462if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12463 (eval $ac_compile) 2>conftest.er1
a848cd7e 12464 ac_status=$?
ac1cb8d3
VS
12465 grep -v '^ *+' conftest.er1 >conftest.err
12466 rm -f conftest.er1
12467 cat conftest.err >&5
a848cd7e
SC
12468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12469 (exit $ac_status); } &&
c9a66001 12470 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12472 (eval $ac_try) 2>&5
12473 ac_status=$?
12474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12475 (exit $ac_status); }; } &&
12476 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12478 (eval $ac_try) 2>&5
12479 ac_status=$?
12480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12481 (exit $ac_status); }; }; then
12482 break
12483else
12484 echo "$as_me: failed program was:" >&5
12485sed 's/^/| /' conftest.$ac_ext >&5
12486
12487fi
ac1cb8d3 12488rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12489done
12490rm -f conftest*
12491if test -n "$ac_declaration"; then
12492 echo '#ifdef __cplusplus' >>confdefs.h
12493 echo $ac_declaration >>confdefs.h
12494 echo '#endif' >>confdefs.h
12495fi
12496
12497else
12498 echo "$as_me: failed program was:" >&5
12499sed 's/^/| /' conftest.$ac_ext >&5
12500
12501fi
ac1cb8d3 12502rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12503ac_ext=c
12504ac_cpp='$CPP $CPPFLAGS'
12505ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12506ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12507ac_compiler_gnu=$ac_cv_c_compiler_gnu
12508
ab0ad5f1
VZ
12509
12510
12511 ac_ext=c
12512ac_cpp='$CPP $CPPFLAGS'
12513ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12514ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12515ac_compiler_gnu=$ac_cv_c_compiler_gnu
12516
12517 echo "$as_me:$LINENO: checking whether we are using the Intel C compiler" >&5
12518echo $ECHO_N "checking whether we are using the Intel C compiler... $ECHO_C" >&6
12519if test "${bakefile_cv_c_compiler___INTEL_COMPILER+set}" = set; then
12520 echo $ECHO_N "(cached) $ECHO_C" >&6
12521else
12522 cat >conftest.$ac_ext <<_ACEOF
12523/* confdefs.h. */
12524_ACEOF
12525cat confdefs.h >>conftest.$ac_ext
12526cat >>conftest.$ac_ext <<_ACEOF
12527/* end confdefs.h. */
12528
12529int
12530main ()
12531{
12532
12533 #ifndef __INTEL_COMPILER
12534 choke me
12535 #endif
12536
12537 ;
12538 return 0;
12539}
12540_ACEOF
12541rm -f conftest.$ac_objext
12542if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12543 (eval $ac_compile) 2>conftest.er1
12544 ac_status=$?
12545 grep -v '^ *+' conftest.er1 >conftest.err
12546 rm -f conftest.er1
12547 cat conftest.err >&5
12548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12549 (exit $ac_status); } &&
c9a66001 12550 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ab0ad5f1
VZ
12551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12552 (eval $ac_try) 2>&5
12553 ac_status=$?
12554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12555 (exit $ac_status); }; } &&
12556 { ac_try='test -s conftest.$ac_objext'
12557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12558 (eval $ac_try) 2>&5
12559 ac_status=$?
12560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12561 (exit $ac_status); }; }; then
12562 bakefile_cv_c_compiler___INTEL_COMPILER=yes
12563else
12564 echo "$as_me: failed program was:" >&5
12565sed 's/^/| /' conftest.$ac_ext >&5
12566
12567bakefile_cv_c_compiler___INTEL_COMPILER=no
12568
12569fi
12570rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12571
12572
12573fi
12574echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER" >&5
12575echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER" >&6
12576 ac_ext=c
12577ac_cpp='$CPP $CPPFLAGS'
12578ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12579ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12580ac_compiler_gnu=$ac_cv_c_compiler_gnu
12581
12582 if test "x$bakefile_cv_c_compiler___INTEL_COMPILER" = "xyes"; then
12583 :; INTELCC=yes
12584 else
12585 :;
12586 fi
12587
12588
12589 if test "x$GCC" != "xyes"; then
3006edc0
VZ
12590 if test "xCC" = "xC"; then
12591 echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
480ccd21 12592echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6
0093c2fc 12593if test "${bakefile_cv_c_exto+set}" = set; then
480ccd21
DE
12594 echo $ECHO_N "(cached) $ECHO_C" >&6
12595else
12596 cat >conftest.$ac_ext <<_ACEOF
12597/* confdefs.h. */
12598_ACEOF
12599cat confdefs.h >>conftest.$ac_ext
12600cat >>conftest.$ac_ext <<_ACEOF
12601/* end confdefs.h. */
12602
12603int
12604main ()
12605{
12606
12607 ;
12608 return 0;
12609}
12610_ACEOF
12611rm -f conftest.$ac_objext conftest.$ac_ext.o
12612if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12613 (eval $ac_compile) 2>&5
12614 ac_status=$?
12615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12616 (exit $ac_status); }; then
12617 for ac_file in `(ls conftest.* 2>/dev/null)`; do
12618 case $ac_file in
12619 conftest.$ac_ext.o)
0093c2fc 12620 bakefile_cv_c_exto="-ext o"
480ccd21
DE
12621 ;;
12622 *)
12623 ;;
12624 esac
12625done
12626else
12627 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
12628See \`config.log' for more details." >&5
12629echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
12630See \`config.log' for more details." >&2;}
12631 { (exit 1); exit 1; }; }
12632
12633fi
12634
12635rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
12636
12637fi
0093c2fc
VZ
12638echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5
12639echo "${ECHO_T}$bakefile_cv_c_exto" >&6
12640if test "x$bakefile_cv_c_exto" '!=' "x"; then
480ccd21 12641 if test "c" = "c"; then
0093c2fc 12642 CFLAGS="$bakefile_cv_c_exto $CFLAGS"
480ccd21
DE
12643 fi
12644 if test "c" = "cxx"; then
0093c2fc 12645 CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS"
480ccd21
DE
12646 fi
12647fi
12648
0093c2fc 12649 if test "x$bakefile_cv_c_exto" '!=' "x"; then
3006edc0
VZ
12650 unset ac_cv_prog_cc_g
12651 ac_test_CFLAGS=${CFLAGS+set}
480ccd21 12652ac_save_CFLAGS=$CFLAGS
8aeeb05c 12653CFLAGS="-g"
480ccd21
DE
12654echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12655echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
12656if test "${ac_cv_prog_cc_g+set}" = set; then
12657 echo $ECHO_N "(cached) $ECHO_C" >&6
12658else
12659 cat >conftest.$ac_ext <<_ACEOF
12660/* confdefs.h. */
12661_ACEOF
12662cat confdefs.h >>conftest.$ac_ext
12663cat >>conftest.$ac_ext <<_ACEOF
12664/* end confdefs.h. */
12665
12666int
12667main ()
12668{
12669
12670 ;
12671 return 0;
12672}
12673_ACEOF
12674rm -f conftest.$ac_objext
12675if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12676 (eval $ac_compile) 2>conftest.er1
12677 ac_status=$?
12678 grep -v '^ *+' conftest.er1 >conftest.err
12679 rm -f conftest.er1
12680 cat conftest.err >&5
12681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12682 (exit $ac_status); } &&
c9a66001 12683 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
480ccd21
DE
12684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12685 (eval $ac_try) 2>&5
12686 ac_status=$?
12687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12688 (exit $ac_status); }; } &&
12689 { ac_try='test -s conftest.$ac_objext'
12690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12691 (eval $ac_try) 2>&5
12692 ac_status=$?
12693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12694 (exit $ac_status); }; }; then
12695 ac_cv_prog_cc_g=yes
12696else
12697 echo "$as_me: failed program was:" >&5
12698sed 's/^/| /' conftest.$ac_ext >&5
12699
12700ac_cv_prog_cc_g=no
12701fi
12702rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12703fi
12704echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12705echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
12706if test "$ac_test_CFLAGS" = set; then
12707 CFLAGS=$ac_save_CFLAGS
12708elif test $ac_cv_prog_cc_g = yes; then
12709 if test "$GCC" = yes; then
12710 CFLAGS="-g -O2"
12711 else
12712 CFLAGS="-g"
12713 fi
12714else
12715 if test "$GCC" = yes; then
12716 CFLAGS="-O2"
12717 else
12718 CFLAGS=
12719 fi
12720fi
3006edc0 12721 fi
ab0ad5f1 12722 fi
3006edc0
VZ
12723
12724 case `uname -s` in
12725 AIX*)
12726 ac_ext=c
12727ac_cpp='$CPP $CPPFLAGS'
12728ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12729ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12730ac_compiler_gnu=$ac_cv_c_compiler_gnu
12731
12732echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
12733echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6
0093c2fc 12734if test "${bakefile_cv_c_compiler_xlc+set}" = set; then
3006edc0
VZ
12735 echo $ECHO_N "(cached) $ECHO_C" >&6
12736else
12737 cat >conftest.$ac_ext <<_ACEOF
12738/* confdefs.h. */
12739_ACEOF
12740cat confdefs.h >>conftest.$ac_ext
12741cat >>conftest.$ac_ext <<_ACEOF
12742/* end confdefs.h. */
12743
12744int
12745main ()
12746{
12747#ifndef __xlC__
12748 choke me
12749#endif
12750
12751 ;
12752 return 0;
12753}
12754_ACEOF
12755rm -f conftest.$ac_objext
12756if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12757 (eval $ac_compile) 2>conftest.er1
12758 ac_status=$?
12759 grep -v '^ *+' conftest.er1 >conftest.err
12760 rm -f conftest.er1
12761 cat conftest.err >&5
12762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12763 (exit $ac_status); } &&
c9a66001 12764 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3006edc0
VZ
12765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12766 (eval $ac_try) 2>&5
12767 ac_status=$?
12768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12769 (exit $ac_status); }; } &&
12770 { ac_try='test -s conftest.$ac_objext'
12771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12772 (eval $ac_try) 2>&5
12773 ac_status=$?
12774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12775 (exit $ac_status); }; }; then
0093c2fc 12776 bakefile_compiler_xlc=yes
3006edc0
VZ
12777else
12778 echo "$as_me: failed program was:" >&5
12779sed 's/^/| /' conftest.$ac_ext >&5
12780
0093c2fc 12781bakefile_compiler_xlc=no
3006edc0
VZ
12782fi
12783rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 12784 bakefile_cv_c_compiler_xlc=$bakefile_compiler_xlc
3006edc0
VZ
12785
12786fi
0093c2fc
VZ
12787echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_xlc" >&5
12788echo "${ECHO_T}$bakefile_cv_c_compiler_xlc" >&6
3006edc0 12789
0093c2fc 12790XLCC=`test $bakefile_cv_c_compiler_xlc = yes && echo yes`
3006edc0
VZ
12791ac_ext=c
12792ac_cpp='$CPP $CPPFLAGS'
12793ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12794ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12795ac_compiler_gnu=$ac_cv_c_compiler_gnu
12796
12797
12798 ;;
12799
12800 Darwin)
12801 ac_ext=c
95986553
DE
12802ac_cpp='$CPP $CPPFLAGS'
12803ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12804ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12805ac_compiler_gnu=$ac_cv_c_compiler_gnu
12806
12807echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5
12808echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6
12809if test "${bakefile_cv_c_compiler_mwerks+set}" = set; then
12810 echo $ECHO_N "(cached) $ECHO_C" >&6
12811else
12812 cat >conftest.$ac_ext <<_ACEOF
12813/* confdefs.h. */
12814_ACEOF
12815cat confdefs.h >>conftest.$ac_ext
12816cat >>conftest.$ac_ext <<_ACEOF
12817/* end confdefs.h. */
12818
12819int
12820main ()
12821{
12822#ifndef __MWERKS__
12823 choke me
12824#endif
12825
12826 ;
12827 return 0;
12828}
12829_ACEOF
12830rm -f conftest.$ac_objext
12831if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12832 (eval $ac_compile) 2>conftest.er1
12833 ac_status=$?
12834 grep -v '^ *+' conftest.er1 >conftest.err
12835 rm -f conftest.er1
12836 cat conftest.err >&5
12837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12838 (exit $ac_status); } &&
c9a66001 12839 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
95986553
DE
12840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12841 (eval $ac_try) 2>&5
12842 ac_status=$?
12843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12844 (exit $ac_status); }; } &&
12845 { ac_try='test -s conftest.$ac_objext'
12846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12847 (eval $ac_try) 2>&5
12848 ac_status=$?
12849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12850 (exit $ac_status); }; }; then
12851 bakefile_compiler_mwerks=yes
12852else
12853 echo "$as_me: failed program was:" >&5
12854sed 's/^/| /' conftest.$ac_ext >&5
12855
12856bakefile_compiler_mwerks=no
12857fi
12858rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12859 bakefile_cv_c_compiler_mwerks=$bakefile_compiler_mwerks
12860
12861fi
12862echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_mwerks" >&5
12863echo "${ECHO_T}$bakefile_cv_c_compiler_mwerks" >&6
12864
0e6fa1d9 12865MWCC=`test $bakefile_cv_c_compiler_mwerks = yes && echo yes`
95986553
DE
12866ac_ext=c
12867ac_cpp='$CPP $CPPFLAGS'
12868ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12869ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12870ac_compiler_gnu=$ac_cv_c_compiler_gnu
12871
12872
3006edc0 12873 ac_ext=c
9273ffba
DE
12874ac_cpp='$CPP $CPPFLAGS'
12875ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12876ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12877ac_compiler_gnu=$ac_cv_c_compiler_gnu
12878
12879echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
12880echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6
0093c2fc 12881if test "${bakefile_cv_c_compiler_xlc+set}" = set; then
9273ffba
DE
12882 echo $ECHO_N "(cached) $ECHO_C" >&6
12883else
12884 cat >conftest.$ac_ext <<_ACEOF
12885/* confdefs.h. */
12886_ACEOF
12887cat confdefs.h >>conftest.$ac_ext
12888cat >>conftest.$ac_ext <<_ACEOF
12889/* end confdefs.h. */
12890
12891int
12892main ()
12893{
12894#ifndef __xlC__
12895 choke me
12896#endif
12897
12898 ;
12899 return 0;
12900}
12901_ACEOF
12902rm -f conftest.$ac_objext
12903if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12904 (eval $ac_compile) 2>conftest.er1
12905 ac_status=$?
12906 grep -v '^ *+' conftest.er1 >conftest.err
12907 rm -f conftest.er1
12908 cat conftest.err >&5
12909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12910 (exit $ac_status); } &&
c9a66001 12911 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9273ffba
DE
12912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12913 (eval $ac_try) 2>&5
12914 ac_status=$?
12915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12916 (exit $ac_status); }; } &&
12917 { ac_try='test -s conftest.$ac_objext'
12918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12919 (eval $ac_try) 2>&5
12920 ac_status=$?
12921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12922 (exit $ac_status); }; }; then
0093c2fc 12923 bakefile_compiler_xlc=yes
9273ffba
DE
12924else
12925 echo "$as_me: failed program was:" >&5
12926sed 's/^/| /' conftest.$ac_ext >&5
12927
0093c2fc 12928bakefile_compiler_xlc=no
9273ffba
DE
12929fi
12930rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 12931 bakefile_cv_c_compiler_xlc=$bakefile_compiler_xlc
9273ffba
DE
12932
12933fi
0093c2fc
VZ
12934echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_xlc" >&5
12935echo "${ECHO_T}$bakefile_cv_c_compiler_xlc" >&6
9273ffba 12936
0093c2fc 12937XLCC=`test $bakefile_cv_c_compiler_xlc = yes && echo yes`
9273ffba
DE
12938ac_ext=c
12939ac_cpp='$CPP $CPPFLAGS'
12940ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12941ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12942ac_compiler_gnu=$ac_cv_c_compiler_gnu
12943
12944
3006edc0
VZ
12945 ;;
12946
12947 IRIX*)
a848cd7e 12948
6dcfc289 12949
0ad5d837
VZ
12950 ac_ext=c
12951ac_cpp='$CPP $CPPFLAGS'
12952ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12953ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12954ac_compiler_gnu=$ac_cv_c_compiler_gnu
12955
12956 echo "$as_me:$LINENO: checking whether we are using the SGI C compiler" >&5
12957echo $ECHO_N "checking whether we are using the SGI C compiler... $ECHO_C" >&6
12958if test "${bakefile_cv_c_compiler__SGI_COMPILER_VERSION+set}" = set; then
12959 echo $ECHO_N "(cached) $ECHO_C" >&6
12960else
12961 cat >conftest.$ac_ext <<_ACEOF
12962/* confdefs.h. */
12963_ACEOF
12964cat confdefs.h >>conftest.$ac_ext
12965cat >>conftest.$ac_ext <<_ACEOF
12966/* end confdefs.h. */
12967
12968int
12969main ()
12970{
12971
12972 #ifndef _SGI_COMPILER_VERSION
12973 choke me
12974 #endif
12975
12976 ;
12977 return 0;
12978}
12979_ACEOF
12980rm -f conftest.$ac_objext
12981if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12982 (eval $ac_compile) 2>conftest.er1
12983 ac_status=$?
12984 grep -v '^ *+' conftest.er1 >conftest.err
12985 rm -f conftest.er1
12986 cat conftest.err >&5
12987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12988 (exit $ac_status); } &&
c9a66001 12989 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
0ad5d837
VZ
12990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12991 (eval $ac_try) 2>&5
12992 ac_status=$?
12993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12994 (exit $ac_status); }; } &&
12995 { ac_try='test -s conftest.$ac_objext'
12996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12997 (eval $ac_try) 2>&5
12998 ac_status=$?
12999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13000 (exit $ac_status); }; }; then
13001 bakefile_cv_c_compiler__SGI_COMPILER_VERSION=yes
13002else
13003 echo "$as_me: failed program was:" >&5
13004sed 's/^/| /' conftest.$ac_ext >&5
13005
13006bakefile_cv_c_compiler__SGI_COMPILER_VERSION=no
13007
13008fi
13009rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13010
13011
13012fi
13013echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&5
13014echo "${ECHO_T}$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&6
13015 ac_ext=c
13016ac_cpp='$CPP $CPPFLAGS'
13017ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13018ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13019ac_compiler_gnu=$ac_cv_c_compiler_gnu
13020
13021 if test "x$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" = "xyes"; then
13022 :; SGICC=yes
13023 else
13024 :;
13025 fi
13026
13027
3006edc0
VZ
13028 ;;
13029
0093c2fc 13030 HP-UX*)
3006edc0
VZ
13031
13032
13033 ac_ext=c
13034ac_cpp='$CPP $CPPFLAGS'
13035ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13036ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13037ac_compiler_gnu=$ac_cv_c_compiler_gnu
13038
0093c2fc
VZ
13039 echo "$as_me:$LINENO: checking whether we are using the HP C compiler" >&5
13040echo $ECHO_N "checking whether we are using the HP C compiler... $ECHO_C" >&6
13041if test "${bakefile_cv_c_compiler___HP_cc+set}" = set; then
3006edc0
VZ
13042 echo $ECHO_N "(cached) $ECHO_C" >&6
13043else
13044 cat >conftest.$ac_ext <<_ACEOF
13045/* confdefs.h. */
13046_ACEOF
13047cat confdefs.h >>conftest.$ac_ext
13048cat >>conftest.$ac_ext <<_ACEOF
13049/* end confdefs.h. */
13050
13051int
13052main ()
13053{
13054
0093c2fc 13055 #ifndef __HP_cc
3006edc0
VZ
13056 choke me
13057 #endif
13058
13059 ;
13060 return 0;
13061}
13062_ACEOF
13063rm -f conftest.$ac_objext
13064if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13065 (eval $ac_compile) 2>conftest.er1
13066 ac_status=$?
13067 grep -v '^ *+' conftest.er1 >conftest.err
13068 rm -f conftest.er1
13069 cat conftest.err >&5
13070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13071 (exit $ac_status); } &&
c9a66001 13072 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3006edc0
VZ
13073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13074 (eval $ac_try) 2>&5
13075 ac_status=$?
13076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13077 (exit $ac_status); }; } &&
13078 { ac_try='test -s conftest.$ac_objext'
13079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13080 (eval $ac_try) 2>&5
13081 ac_status=$?
13082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13083 (exit $ac_status); }; }; then
0093c2fc 13084 bakefile_cv_c_compiler___HP_cc=yes
3006edc0
VZ
13085else
13086 echo "$as_me: failed program was:" >&5
13087sed 's/^/| /' conftest.$ac_ext >&5
13088
0093c2fc 13089bakefile_cv_c_compiler___HP_cc=no
3006edc0
VZ
13090
13091fi
13092rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13093
13094
13095fi
0093c2fc
VZ
13096echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___HP_cc" >&5
13097echo "${ECHO_T}$bakefile_cv_c_compiler___HP_cc" >&6
3006edc0
VZ
13098 ac_ext=c
13099ac_cpp='$CPP $CPPFLAGS'
13100ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13101ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13102ac_compiler_gnu=$ac_cv_c_compiler_gnu
13103
0093c2fc
VZ
13104 if test "x$bakefile_cv_c_compiler___HP_cc" = "xyes"; then
13105 :; HPCC=yes
a1aa0349
VZ
13106 else
13107 :;
13108 fi
13109
13110
13111 ;;
13112
0093c2fc 13113 OSF1)
a1aa0349
VZ
13114
13115
13116 ac_ext=c
13117ac_cpp='$CPP $CPPFLAGS'
13118ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13119ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13120ac_compiler_gnu=$ac_cv_c_compiler_gnu
13121
0093c2fc
VZ
13122 echo "$as_me:$LINENO: checking whether we are using the Compaq C compiler" >&5
13123echo $ECHO_N "checking whether we are using the Compaq C compiler... $ECHO_C" >&6
13124if test "${bakefile_cv_c_compiler___DECC+set}" = set; then
a1aa0349
VZ
13125 echo $ECHO_N "(cached) $ECHO_C" >&6
13126else
13127 cat >conftest.$ac_ext <<_ACEOF
13128/* confdefs.h. */
13129_ACEOF
13130cat confdefs.h >>conftest.$ac_ext
13131cat >>conftest.$ac_ext <<_ACEOF
13132/* end confdefs.h. */
13133
13134int
13135main ()
13136{
13137
0093c2fc 13138 #ifndef __DECC
a1aa0349
VZ
13139 choke me
13140 #endif
13141
13142 ;
13143 return 0;
13144}
13145_ACEOF
13146rm -f conftest.$ac_objext
13147if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13148 (eval $ac_compile) 2>conftest.er1
13149 ac_status=$?
13150 grep -v '^ *+' conftest.er1 >conftest.err
13151 rm -f conftest.er1
13152 cat conftest.err >&5
13153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13154 (exit $ac_status); } &&
c9a66001 13155 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a1aa0349
VZ
13156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13157 (eval $ac_try) 2>&5
13158 ac_status=$?
13159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13160 (exit $ac_status); }; } &&
13161 { ac_try='test -s conftest.$ac_objext'
13162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13163 (eval $ac_try) 2>&5
13164 ac_status=$?
13165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13166 (exit $ac_status); }; }; then
0093c2fc 13167 bakefile_cv_c_compiler___DECC=yes
a1aa0349
VZ
13168else
13169 echo "$as_me: failed program was:" >&5
13170sed 's/^/| /' conftest.$ac_ext >&5
13171
0093c2fc 13172bakefile_cv_c_compiler___DECC=no
a1aa0349
VZ
13173
13174fi
13175rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13176
13177
13178fi
0093c2fc
VZ
13179echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___DECC" >&5
13180echo "${ECHO_T}$bakefile_cv_c_compiler___DECC" >&6
a1aa0349
VZ
13181 ac_ext=c
13182ac_cpp='$CPP $CPPFLAGS'
13183ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13184ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13185ac_compiler_gnu=$ac_cv_c_compiler_gnu
13186
0093c2fc
VZ
13187 if test "x$bakefile_cv_c_compiler___DECC" = "xyes"; then
13188 :; COMPAQCC=yes
13189 else
13190 :;
13191 fi
13192
13193
13194 ;;
13195
13196 SunOS)
13197
13198
13199 ac_ext=c
13200ac_cpp='$CPP $CPPFLAGS'
13201ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13202ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13203ac_compiler_gnu=$ac_cv_c_compiler_gnu
13204
13205 echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
13206echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6
13207if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
13208 echo $ECHO_N "(cached) $ECHO_C" >&6
13209else
13210 cat >conftest.$ac_ext <<_ACEOF
13211/* confdefs.h. */
13212_ACEOF
13213cat confdefs.h >>conftest.$ac_ext
13214cat >>conftest.$ac_ext <<_ACEOF
13215/* end confdefs.h. */
13216
13217int
13218main ()
13219{
13220
13221 #ifndef __SUNPRO_C
13222 choke me
13223 #endif
13224
13225 ;
13226 return 0;
13227}
13228_ACEOF
13229rm -f conftest.$ac_objext
13230if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13231 (eval $ac_compile) 2>conftest.er1
13232 ac_status=$?
13233 grep -v '^ *+' conftest.er1 >conftest.err
13234 rm -f conftest.er1
13235 cat conftest.err >&5
13236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13237 (exit $ac_status); } &&
c9a66001 13238 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
0093c2fc
VZ
13239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13240 (eval $ac_try) 2>&5
13241 ac_status=$?
13242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13243 (exit $ac_status); }; } &&
13244 { ac_try='test -s conftest.$ac_objext'
13245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13246 (eval $ac_try) 2>&5
13247 ac_status=$?
13248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13249 (exit $ac_status); }; }; then
13250 bakefile_cv_c_compiler___SUNPRO_C=yes
13251else
13252 echo "$as_me: failed program was:" >&5
13253sed 's/^/| /' conftest.$ac_ext >&5
13254
13255bakefile_cv_c_compiler___SUNPRO_C=no
13256
13257fi
13258rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13259
13260
13261fi
13262echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
13263echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6
13264 ac_ext=c
13265ac_cpp='$CPP $CPPFLAGS'
13266ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13267ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13268ac_compiler_gnu=$ac_cv_c_compiler_gnu
13269
13270 if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
13271 :; SUNCC=yes
3006edc0
VZ
13272 else
13273 :;
13274 fi
13275
13276
13277 ;;
13278 esac
ab0ad5f1 13279 fi
a9e5b1f0
MW
13280
13281
3006edc0 13282
a848cd7e
SC
13283ac_ext=c
13284ac_cpp='$CPP $CPPFLAGS'
13285ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13286ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13287ac_compiler_gnu=$ac_cv_c_compiler_gnu
13288echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
13289echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
13290# On Suns, sometimes $CPP names a directory.
13291if test -n "$CPP" && test -d "$CPP"; then
13292 CPP=
13293fi
13294if test -z "$CPP"; then
13295 if test "${ac_cv_prog_CPP+set}" = set; then
13296 echo $ECHO_N "(cached) $ECHO_C" >&6
13297else
13298 # Double quotes because CPP needs to be expanded
13299 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
13300 do
13301 ac_preproc_ok=false
13302for ac_c_preproc_warn_flag in '' yes
13303do
13304 # Use a header file that comes with gcc, so configuring glibc
13305 # with a fresh cross-compiler works.
13306 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13307 # <limits.h> exists even on freestanding compilers.
13308 # On the NeXT, cc -E runs the code through the compiler's parser,
13309 # not just through cpp. "Syntax error" is here to catch this case.
13310 cat >conftest.$ac_ext <<_ACEOF
13311/* confdefs.h. */
13312_ACEOF
13313cat confdefs.h >>conftest.$ac_ext
13314cat >>conftest.$ac_ext <<_ACEOF
13315/* end confdefs.h. */
13316#ifdef __STDC__
13317# include <limits.h>
13318#else
13319# include <assert.h>
13320#endif
ac1cb8d3 13321 Syntax error
a848cd7e
SC
13322_ACEOF
13323if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13324 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13325 ac_status=$?
13326 grep -v '^ *+' conftest.er1 >conftest.err
13327 rm -f conftest.er1
13328 cat conftest.err >&5
13329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13330 (exit $ac_status); } >/dev/null; then
13331 if test -s conftest.err; then
13332 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13333 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13334 else
13335 ac_cpp_err=
13336 fi
13337else
13338 ac_cpp_err=yes
13339fi
13340if test -z "$ac_cpp_err"; then
13341 :
13342else
13343 echo "$as_me: failed program was:" >&5
13344sed 's/^/| /' conftest.$ac_ext >&5
13345
13346 # Broken: fails on valid input.
13347continue
13348fi
13349rm -f conftest.err conftest.$ac_ext
13350
13351 # OK, works on sane cases. Now check whether non-existent headers
13352 # can be detected and how.
13353 cat >conftest.$ac_ext <<_ACEOF
13354/* confdefs.h. */
13355_ACEOF
13356cat confdefs.h >>conftest.$ac_ext
13357cat >>conftest.$ac_ext <<_ACEOF
13358/* end confdefs.h. */
13359#include <ac_nonexistent.h>
13360_ACEOF
13361if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13362 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13363 ac_status=$?
13364 grep -v '^ *+' conftest.er1 >conftest.err
13365 rm -f conftest.er1
13366 cat conftest.err >&5
13367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13368 (exit $ac_status); } >/dev/null; then
13369 if test -s conftest.err; then
13370 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13371 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13372 else
13373 ac_cpp_err=
13374 fi
13375else
13376 ac_cpp_err=yes
13377fi
13378if test -z "$ac_cpp_err"; then
13379 # Broken: success on invalid input.
13380continue
13381else
13382 echo "$as_me: failed program was:" >&5
13383sed 's/^/| /' conftest.$ac_ext >&5
13384
13385 # Passes both tests.
13386ac_preproc_ok=:
13387break
13388fi
13389rm -f conftest.err conftest.$ac_ext
13390
13391done
13392# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13393rm -f conftest.err conftest.$ac_ext
13394if $ac_preproc_ok; then
13395 break
13396fi
13397
13398 done
13399 ac_cv_prog_CPP=$CPP
13400
13401fi
13402 CPP=$ac_cv_prog_CPP
13403else
13404 ac_cv_prog_CPP=$CPP
13405fi
13406echo "$as_me:$LINENO: result: $CPP" >&5
13407echo "${ECHO_T}$CPP" >&6
13408ac_preproc_ok=false
13409for ac_c_preproc_warn_flag in '' yes
13410do
13411 # Use a header file that comes with gcc, so configuring glibc
13412 # with a fresh cross-compiler works.
13413 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13414 # <limits.h> exists even on freestanding compilers.
13415 # On the NeXT, cc -E runs the code through the compiler's parser,
13416 # not just through cpp. "Syntax error" is here to catch this case.
13417 cat >conftest.$ac_ext <<_ACEOF
13418/* confdefs.h. */
13419_ACEOF
13420cat confdefs.h >>conftest.$ac_ext
13421cat >>conftest.$ac_ext <<_ACEOF
13422/* end confdefs.h. */
13423#ifdef __STDC__
13424# include <limits.h>
13425#else
13426# include <assert.h>
13427#endif
ac1cb8d3 13428 Syntax error
a848cd7e
SC
13429_ACEOF
13430if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13431 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13432 ac_status=$?
13433 grep -v '^ *+' conftest.er1 >conftest.err
13434 rm -f conftest.er1
13435 cat conftest.err >&5
13436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13437 (exit $ac_status); } >/dev/null; then
13438 if test -s conftest.err; then
13439 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13440 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13441 else
13442 ac_cpp_err=
13443 fi
13444else
13445 ac_cpp_err=yes
13446fi
13447if test -z "$ac_cpp_err"; then
13448 :
13449else
13450 echo "$as_me: failed program was:" >&5
13451sed 's/^/| /' conftest.$ac_ext >&5
13452
13453 # Broken: fails on valid input.
13454continue
13455fi
13456rm -f conftest.err conftest.$ac_ext
13457
13458 # OK, works on sane cases. Now check whether non-existent headers
13459 # can be detected and how.
13460 cat >conftest.$ac_ext <<_ACEOF
13461/* confdefs.h. */
13462_ACEOF
13463cat confdefs.h >>conftest.$ac_ext
13464cat >>conftest.$ac_ext <<_ACEOF
13465/* end confdefs.h. */
13466#include <ac_nonexistent.h>
13467_ACEOF
13468if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13469 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13470 ac_status=$?
13471 grep -v '^ *+' conftest.er1 >conftest.err
13472 rm -f conftest.er1
13473 cat conftest.err >&5
13474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13475 (exit $ac_status); } >/dev/null; then
13476 if test -s conftest.err; then
13477 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13478 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13479 else
13480 ac_cpp_err=
13481 fi
13482else
13483 ac_cpp_err=yes
13484fi
13485if test -z "$ac_cpp_err"; then
13486 # Broken: success on invalid input.
13487continue
13488else
13489 echo "$as_me: failed program was:" >&5
13490sed 's/^/| /' conftest.$ac_ext >&5
13491
13492 # Passes both tests.
13493ac_preproc_ok=:
13494break
13495fi
13496rm -f conftest.err conftest.$ac_ext
13497
13498done
13499# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13500rm -f conftest.err conftest.$ac_ext
13501if $ac_preproc_ok; then
13502 :
13503else
13504 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
13505See \`config.log' for more details." >&5
13506echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
13507See \`config.log' for more details." >&2;}
13508 { (exit 1); exit 1; }; }
13509fi
13510
13511ac_ext=c
13512ac_cpp='$CPP $CPPFLAGS'
13513ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13514ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13515ac_compiler_gnu=$ac_cv_c_compiler_gnu
13516
13517
13518echo "$as_me:$LINENO: checking for egrep" >&5
13519echo $ECHO_N "checking for egrep... $ECHO_C" >&6
13520if test "${ac_cv_prog_egrep+set}" = set; then
13521 echo $ECHO_N "(cached) $ECHO_C" >&6
13522else
13523 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
13524 then ac_cv_prog_egrep='grep -E'
13525 else ac_cv_prog_egrep='egrep'
13526 fi
13527fi
13528echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
13529echo "${ECHO_T}$ac_cv_prog_egrep" >&6
13530 EGREP=$ac_cv_prog_egrep
13531
13532
13533if test $ac_cv_c_compiler_gnu = yes; then
13534 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
13535echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
13536if test "${ac_cv_prog_gcc_traditional+set}" = set; then
13537 echo $ECHO_N "(cached) $ECHO_C" >&6
13538else
13539 ac_pattern="Autoconf.*'x'"
13540 cat >conftest.$ac_ext <<_ACEOF
13541/* confdefs.h. */
13542_ACEOF
13543cat confdefs.h >>conftest.$ac_ext
13544cat >>conftest.$ac_ext <<_ACEOF
13545/* end confdefs.h. */
13546#include <sgtty.h>
13547Autoconf TIOCGETP
13548_ACEOF
13549if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13550 $EGREP "$ac_pattern" >/dev/null 2>&1; then
13551 ac_cv_prog_gcc_traditional=yes
13552else
13553 ac_cv_prog_gcc_traditional=no
13554fi
13555rm -f conftest*
13556
13557
13558 if test $ac_cv_prog_gcc_traditional = no; then
13559 cat >conftest.$ac_ext <<_ACEOF
13560/* confdefs.h. */
13561_ACEOF
13562cat confdefs.h >>conftest.$ac_ext
13563cat >>conftest.$ac_ext <<_ACEOF
13564/* end confdefs.h. */
13565#include <termio.h>
13566Autoconf TCGETA
13567_ACEOF
13568if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13569 $EGREP "$ac_pattern" >/dev/null 2>&1; then
13570 ac_cv_prog_gcc_traditional=yes
13571fi
13572rm -f conftest*
13573
13574 fi
13575fi
13576echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
13577echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
13578 if test $ac_cv_prog_gcc_traditional = yes; then
13579 CC="$CC -traditional"
13580 fi
13581fi
13582
13583
a848cd7e
SC
13584ac_ext=cc
13585ac_cpp='$CXXCPP $CPPFLAGS'
13586ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13587ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13588ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13589
13590
13591CXXFLAGS=${CXXFLAGS:=}
6dcfc289
DE
13592
13593
3006edc0 13594
6dcfc289 13595 ac_ext=cc
a848cd7e
SC
13596ac_cpp='$CXXCPP $CPPFLAGS'
13597ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13598ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13599ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13600if test -n "$ac_tool_prefix"; then
13601 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
13602 do
13603 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13604set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13605echo "$as_me:$LINENO: checking for $ac_word" >&5
13606echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13607if test "${ac_cv_prog_CXX+set}" = set; then
13608 echo $ECHO_N "(cached) $ECHO_C" >&6
13609else
13610 if test -n "$CXX"; then
13611 ac_cv_prog_CXX="$CXX" # Let the user override the test.
13612else
13613as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13614for as_dir in $PATH
13615do
13616 IFS=$as_save_IFS
13617 test -z "$as_dir" && as_dir=.
13618 for ac_exec_ext in '' $ac_executable_extensions; do
13619 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13620 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
13621 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13622 break 2
13623 fi
13624done
13625done
13626
13627fi
13628fi
13629CXX=$ac_cv_prog_CXX
13630if test -n "$CXX"; then
13631 echo "$as_me:$LINENO: result: $CXX" >&5
13632echo "${ECHO_T}$CXX" >&6
13633else
13634 echo "$as_me:$LINENO: result: no" >&5
13635echo "${ECHO_T}no" >&6
13636fi
13637
13638 test -n "$CXX" && break
13639 done
13640fi
13641if test -z "$CXX"; then
13642 ac_ct_CXX=$CXX
13643 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
13644do
13645 # Extract the first word of "$ac_prog", so it can be a program name with args.
13646set dummy $ac_prog; ac_word=$2
13647echo "$as_me:$LINENO: checking for $ac_word" >&5
13648echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13649if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
13650 echo $ECHO_N "(cached) $ECHO_C" >&6
13651else
13652 if test -n "$ac_ct_CXX"; then
13653 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
13654else
13655as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13656for as_dir in $PATH
13657do
13658 IFS=$as_save_IFS
13659 test -z "$as_dir" && as_dir=.
13660 for ac_exec_ext in '' $ac_executable_extensions; do
13661 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13662 ac_cv_prog_ac_ct_CXX="$ac_prog"
13663 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13664 break 2
13665 fi
13666done
13667done
13668
13669fi
13670fi
13671ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
13672if test -n "$ac_ct_CXX"; then
13673 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
13674echo "${ECHO_T}$ac_ct_CXX" >&6
13675else
13676 echo "$as_me:$LINENO: result: no" >&5
13677echo "${ECHO_T}no" >&6
13678fi
13679
13680 test -n "$ac_ct_CXX" && break
13681done
13682test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
13683
13684 CXX=$ac_ct_CXX
13685fi
13686
13687
13688# Provide some information about the compiler.
13689echo "$as_me:$LINENO:" \
13690 "checking for C++ compiler version" >&5
13691ac_compiler=`set X $ac_compile; echo $2`
13692{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
13693 (eval $ac_compiler --version </dev/null >&5) 2>&5
13694 ac_status=$?
13695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13696 (exit $ac_status); }
13697{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
13698 (eval $ac_compiler -v </dev/null >&5) 2>&5
13699 ac_status=$?
13700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13701 (exit $ac_status); }
13702{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
13703 (eval $ac_compiler -V </dev/null >&5) 2>&5
13704 ac_status=$?
13705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13706 (exit $ac_status); }
13707
13708echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
13709echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
13710if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
13711 echo $ECHO_N "(cached) $ECHO_C" >&6
13712else
13713 cat >conftest.$ac_ext <<_ACEOF
13714/* confdefs.h. */
13715_ACEOF
13716cat confdefs.h >>conftest.$ac_ext
13717cat >>conftest.$ac_ext <<_ACEOF
13718/* end confdefs.h. */
13719
13720int
13721main ()
13722{
13723#ifndef __GNUC__
13724 choke me
13725#endif
13726
13727 ;
13728 return 0;
13729}
13730_ACEOF
13731rm -f conftest.$ac_objext
13732if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13733 (eval $ac_compile) 2>conftest.er1
a848cd7e 13734 ac_status=$?
ac1cb8d3
VS
13735 grep -v '^ *+' conftest.er1 >conftest.err
13736 rm -f conftest.er1
13737 cat conftest.err >&5
a848cd7e
SC
13738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13739 (exit $ac_status); } &&
c9a66001 13740 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13742 (eval $ac_try) 2>&5
13743 ac_status=$?
13744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13745 (exit $ac_status); }; } &&
13746 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13748 (eval $ac_try) 2>&5
13749 ac_status=$?
13750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13751 (exit $ac_status); }; }; then
13752 ac_compiler_gnu=yes
13753else
13754 echo "$as_me: failed program was:" >&5
13755sed 's/^/| /' conftest.$ac_ext >&5
13756
13757ac_compiler_gnu=no
13758fi
ac1cb8d3 13759rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13760ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
13761
13762fi
13763echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
13764echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
13765GXX=`test $ac_compiler_gnu = yes && echo yes`
13766ac_test_CXXFLAGS=${CXXFLAGS+set}
13767ac_save_CXXFLAGS=$CXXFLAGS
13768CXXFLAGS="-g"
13769echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
13770echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
13771if test "${ac_cv_prog_cxx_g+set}" = set; then
13772 echo $ECHO_N "(cached) $ECHO_C" >&6
13773else
13774 cat >conftest.$ac_ext <<_ACEOF
13775/* confdefs.h. */
13776_ACEOF
13777cat confdefs.h >>conftest.$ac_ext
13778cat >>conftest.$ac_ext <<_ACEOF
13779/* end confdefs.h. */
13780
13781int
13782main ()
13783{
13784
13785 ;
13786 return 0;
13787}
13788_ACEOF
13789rm -f conftest.$ac_objext
13790if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13791 (eval $ac_compile) 2>conftest.er1
a848cd7e 13792 ac_status=$?
ac1cb8d3
VS
13793 grep -v '^ *+' conftest.er1 >conftest.err
13794 rm -f conftest.er1
13795 cat conftest.err >&5
a848cd7e
SC
13796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13797 (exit $ac_status); } &&
c9a66001 13798 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13800 (eval $ac_try) 2>&5
13801 ac_status=$?
13802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13803 (exit $ac_status); }; } &&
13804 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13806 (eval $ac_try) 2>&5
13807 ac_status=$?
13808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13809 (exit $ac_status); }; }; then
13810 ac_cv_prog_cxx_g=yes
13811else
13812 echo "$as_me: failed program was:" >&5
13813sed 's/^/| /' conftest.$ac_ext >&5
13814
13815ac_cv_prog_cxx_g=no
13816fi
ac1cb8d3 13817rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13818fi
13819echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
13820echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
13821if test "$ac_test_CXXFLAGS" = set; then
13822 CXXFLAGS=$ac_save_CXXFLAGS
13823elif test $ac_cv_prog_cxx_g = yes; then
13824 if test "$GXX" = yes; then
8aeeb05c 13825 CXXFLAGS="-g -O2"
a848cd7e 13826 else
8aeeb05c 13827 CXXFLAGS="-g"
a848cd7e
SC
13828 fi
13829else
13830 if test "$GXX" = yes; then
13831 CXXFLAGS="-O2"
13832 else
13833 CXXFLAGS=
13834 fi
13835fi
13836for ac_declaration in \
ac1cb8d3 13837 '' \
a848cd7e
SC
13838 'extern "C" void std::exit (int) throw (); using std::exit;' \
13839 'extern "C" void std::exit (int); using std::exit;' \
13840 'extern "C" void exit (int) throw ();' \
13841 'extern "C" void exit (int);' \
13842 'void exit (int);'
13843do
13844 cat >conftest.$ac_ext <<_ACEOF
13845/* confdefs.h. */
13846_ACEOF
13847cat confdefs.h >>conftest.$ac_ext
13848cat >>conftest.$ac_ext <<_ACEOF
13849/* end confdefs.h. */
de59c161 13850$ac_declaration
ac1cb8d3 13851#include <stdlib.h>
a848cd7e
SC
13852int
13853main ()
13854{
13855exit (42);
13856 ;
13857 return 0;
13858}
13859_ACEOF
13860rm -f conftest.$ac_objext
13861if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13862 (eval $ac_compile) 2>conftest.er1
a848cd7e 13863 ac_status=$?
ac1cb8d3
VS
13864 grep -v '^ *+' conftest.er1 >conftest.err
13865 rm -f conftest.er1
13866 cat conftest.err >&5
a848cd7e
SC
13867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13868 (exit $ac_status); } &&
c9a66001 13869 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13871 (eval $ac_try) 2>&5
13872 ac_status=$?
13873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13874 (exit $ac_status); }; } &&
13875 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13877 (eval $ac_try) 2>&5
13878 ac_status=$?
13879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13880 (exit $ac_status); }; }; then
13881 :
13882else
13883 echo "$as_me: failed program was:" >&5
13884sed 's/^/| /' conftest.$ac_ext >&5
13885
13886continue
13887fi
ac1cb8d3 13888rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13889 cat >conftest.$ac_ext <<_ACEOF
13890/* confdefs.h. */
13891_ACEOF
13892cat confdefs.h >>conftest.$ac_ext
13893cat >>conftest.$ac_ext <<_ACEOF
13894/* end confdefs.h. */
13895$ac_declaration
13896int
13897main ()
13898{
13899exit (42);
13900 ;
13901 return 0;
13902}
13903_ACEOF
13904rm -f conftest.$ac_objext
13905if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13906 (eval $ac_compile) 2>conftest.er1
a848cd7e 13907 ac_status=$?
ac1cb8d3
VS
13908 grep -v '^ *+' conftest.er1 >conftest.err
13909 rm -f conftest.er1
13910 cat conftest.err >&5
a848cd7e
SC
13911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13912 (exit $ac_status); } &&
c9a66001 13913 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13915 (eval $ac_try) 2>&5
13916 ac_status=$?
13917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13918 (exit $ac_status); }; } &&
13919 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13921 (eval $ac_try) 2>&5
13922 ac_status=$?
13923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13924 (exit $ac_status); }; }; then
13925 break
13926else
13927 echo "$as_me: failed program was:" >&5
13928sed 's/^/| /' conftest.$ac_ext >&5
13929
13930fi
ac1cb8d3 13931rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13932done
13933rm -f conftest*
13934if test -n "$ac_declaration"; then
13935 echo '#ifdef __cplusplus' >>confdefs.h
13936 echo $ac_declaration >>confdefs.h
13937 echo '#endif' >>confdefs.h
13938fi
13939
13940ac_ext=cc
13941ac_cpp='$CXXCPP $CPPFLAGS'
13942ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13943ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13944ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13945
ab0ad5f1
VZ
13946
13947
13948 ac_ext=cc
13949ac_cpp='$CXXCPP $CPPFLAGS'
13950ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13951ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13952ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13953
13954 echo "$as_me:$LINENO: checking whether we are using the Intel C++ compiler" >&5
13955echo $ECHO_N "checking whether we are using the Intel C++ compiler... $ECHO_C" >&6
13956if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER+set}" = set; then
13957 echo $ECHO_N "(cached) $ECHO_C" >&6
13958else
13959 cat >conftest.$ac_ext <<_ACEOF
13960/* confdefs.h. */
13961_ACEOF
13962cat confdefs.h >>conftest.$ac_ext
13963cat >>conftest.$ac_ext <<_ACEOF
13964/* end confdefs.h. */
13965
13966int
13967main ()
13968{
13969
13970 #ifndef __INTEL_COMPILER
13971 choke me
13972 #endif
13973
13974 ;
13975 return 0;
13976}
13977_ACEOF
13978rm -f conftest.$ac_objext
13979if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13980 (eval $ac_compile) 2>conftest.er1
13981 ac_status=$?
13982 grep -v '^ *+' conftest.er1 >conftest.err
13983 rm -f conftest.er1
13984 cat conftest.err >&5
13985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13986 (exit $ac_status); } &&
c9a66001 13987 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ab0ad5f1
VZ
13988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13989 (eval $ac_try) 2>&5
13990 ac_status=$?
13991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13992 (exit $ac_status); }; } &&
13993 { ac_try='test -s conftest.$ac_objext'
13994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13995 (eval $ac_try) 2>&5
13996 ac_status=$?
13997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13998 (exit $ac_status); }; }; then
13999 bakefile_cv_cxx_compiler___INTEL_COMPILER=yes
14000else
14001 echo "$as_me: failed program was:" >&5
14002sed 's/^/| /' conftest.$ac_ext >&5
14003
14004bakefile_cv_cxx_compiler___INTEL_COMPILER=no
14005
14006fi
14007rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14008
14009
14010fi
14011echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER" >&5
14012echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER" >&6
14013 ac_ext=cc
14014ac_cpp='$CXXCPP $CPPFLAGS'
14015ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14016ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14017ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14018
14019 if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER" = "xyes"; then
14020 :; INTELCXX=yes
14021 else
14022 :;
14023 fi
14024
14025
3006edc0
VZ
14026 if test "x$GCXX" != "xyes"; then
14027 if test "xCXX" = "xC"; then
14028 echo "$as_me:$LINENO: checking if the C++ compiler requires -ext o" >&5
480ccd21 14029echo $ECHO_N "checking if the C++ compiler requires -ext o... $ECHO_C" >&6
0093c2fc 14030if test "${bakefile_cv_cxx_exto+set}" = set; then
480ccd21
DE
14031 echo $ECHO_N "(cached) $ECHO_C" >&6
14032else
14033 cat >conftest.$ac_ext <<_ACEOF
14034/* confdefs.h. */
14035_ACEOF
14036cat confdefs.h >>conftest.$ac_ext
14037cat >>conftest.$ac_ext <<_ACEOF
14038/* end confdefs.h. */
14039
14040int
14041main ()
14042{
14043
14044 ;
14045 return 0;
14046}
14047_ACEOF
14048rm -f conftest.$ac_objext conftest.$ac_ext.o
14049if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14050 (eval $ac_compile) 2>&5
14051 ac_status=$?
14052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14053 (exit $ac_status); }; then
14054 for ac_file in `(ls conftest.* 2>/dev/null)`; do
14055 case $ac_file in
14056 conftest.$ac_ext.o)
0093c2fc 14057 bakefile_cv_cxx_exto="-ext o"
480ccd21
DE
14058 ;;
14059 *)
14060 ;;
14061 esac
14062done
14063else
14064 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
14065See \`config.log' for more details." >&5
14066echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
14067See \`config.log' for more details." >&2;}
14068 { (exit 1); exit 1; }; }
14069
14070fi
14071
14072rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
14073
14074fi
0093c2fc
VZ
14075echo "$as_me:$LINENO: result: $bakefile_cv_cxx_exto" >&5
14076echo "${ECHO_T}$bakefile_cv_cxx_exto" >&6
14077if test "x$bakefile_cv_cxx_exto" '!=' "x"; then
480ccd21 14078 if test "cxx" = "c"; then
0093c2fc 14079 CFLAGS="$bakefile_cv_cxx_exto $CFLAGS"
480ccd21
DE
14080 fi
14081 if test "cxx" = "cxx"; then
0093c2fc 14082 CXXFLAGS="$bakefile_cv_cxx_exto $CXXFLAGS"
480ccd21
DE
14083 fi
14084fi
14085
0093c2fc 14086 if test "x$bakefile_cv_c_exto" '!=' "x"; then
3006edc0
VZ
14087 unset ac_cv_prog_cc_g
14088 ac_test_CFLAGS=${CFLAGS+set}
14089ac_save_CFLAGS=$CFLAGS
8aeeb05c 14090CFLAGS="-g"
3006edc0
VZ
14091echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
14092echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
14093if test "${ac_cv_prog_cc_g+set}" = set; then
480ccd21
DE
14094 echo $ECHO_N "(cached) $ECHO_C" >&6
14095else
14096 cat >conftest.$ac_ext <<_ACEOF
14097/* confdefs.h. */
14098_ACEOF
14099cat confdefs.h >>conftest.$ac_ext
14100cat >>conftest.$ac_ext <<_ACEOF
14101/* end confdefs.h. */
14102
14103int
14104main ()
14105{
14106
14107 ;
14108 return 0;
14109}
14110_ACEOF
14111rm -f conftest.$ac_objext
14112if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14113 (eval $ac_compile) 2>conftest.er1
14114 ac_status=$?
14115 grep -v '^ *+' conftest.er1 >conftest.err
14116 rm -f conftest.er1
14117 cat conftest.err >&5
14118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14119 (exit $ac_status); } &&
c9a66001 14120 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
480ccd21
DE
14121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14122 (eval $ac_try) 2>&5
14123 ac_status=$?
14124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14125 (exit $ac_status); }; } &&
14126 { ac_try='test -s conftest.$ac_objext'
14127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14128 (eval $ac_try) 2>&5
14129 ac_status=$?
14130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14131 (exit $ac_status); }; }; then
3006edc0 14132 ac_cv_prog_cc_g=yes
480ccd21
DE
14133else
14134 echo "$as_me: failed program was:" >&5
14135sed 's/^/| /' conftest.$ac_ext >&5
14136
3006edc0 14137ac_cv_prog_cc_g=no
480ccd21
DE
14138fi
14139rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14140fi
3006edc0
VZ
14141echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
14142echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
14143if test "$ac_test_CFLAGS" = set; then
14144 CFLAGS=$ac_save_CFLAGS
14145elif test $ac_cv_prog_cc_g = yes; then
14146 if test "$GCC" = yes; then
14147 CFLAGS="-g -O2"
480ccd21 14148 else
3006edc0 14149 CFLAGS="-g"
480ccd21
DE
14150 fi
14151else
3006edc0
VZ
14152 if test "$GCC" = yes; then
14153 CFLAGS="-O2"
480ccd21 14154 else
3006edc0 14155 CFLAGS=
480ccd21
DE
14156 fi
14157fi
3006edc0 14158 fi
ab0ad5f1 14159 fi
3006edc0
VZ
14160
14161 case `uname -s` in
14162 AIX*)
14163 ac_ext=cc
14164ac_cpp='$CXXCPP $CPPFLAGS'
14165ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14166ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14167ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14168
14169echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
14170echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6
0093c2fc 14171if test "${bakefile_cv_cxx_compiler_xlc+set}" = set; then
3006edc0
VZ
14172 echo $ECHO_N "(cached) $ECHO_C" >&6
14173else
14174 cat >conftest.$ac_ext <<_ACEOF
14175/* confdefs.h. */
14176_ACEOF
14177cat confdefs.h >>conftest.$ac_ext
14178cat >>conftest.$ac_ext <<_ACEOF
14179/* end confdefs.h. */
14180
14181int
14182main ()
14183{
14184#ifndef __xlC__
14185 choke me
14186#endif
14187
14188 ;
14189 return 0;
14190}
14191_ACEOF
14192rm -f conftest.$ac_objext
14193if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14194 (eval $ac_compile) 2>conftest.er1
14195 ac_status=$?
14196 grep -v '^ *+' conftest.er1 >conftest.err
14197 rm -f conftest.er1
14198 cat conftest.err >&5
14199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14200 (exit $ac_status); } &&
c9a66001 14201 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3006edc0
VZ
14202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14203 (eval $ac_try) 2>&5
14204 ac_status=$?
14205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14206 (exit $ac_status); }; } &&
14207 { ac_try='test -s conftest.$ac_objext'
14208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14209 (eval $ac_try) 2>&5
14210 ac_status=$?
14211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14212 (exit $ac_status); }; }; then
0093c2fc 14213 bakefile_compiler_xlc=yes
3006edc0
VZ
14214else
14215 echo "$as_me: failed program was:" >&5
14216sed 's/^/| /' conftest.$ac_ext >&5
14217
0093c2fc 14218bakefile_compiler_xlc=no
3006edc0
VZ
14219fi
14220rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 14221 bakefile_cv_cxx_compiler_xlc=$bakefile_compiler_xlc
3006edc0
VZ
14222
14223fi
0093c2fc
VZ
14224echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_xlc" >&5
14225echo "${ECHO_T}$bakefile_cv_cxx_compiler_xlc" >&6
3006edc0 14226
0093c2fc 14227XLCXX=`test $bakefile_cv_cxx_compiler_xlc = yes && echo yes`
3006edc0
VZ
14228ac_ext=cc
14229ac_cpp='$CXXCPP $CPPFLAGS'
14230ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14231ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14232ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14233
14234
14235 ;;
14236
14237 Darwin)
14238 ac_ext=cc
95986553
DE
14239ac_cpp='$CXXCPP $CPPFLAGS'
14240ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14241ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14242ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14243
14244echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5
14245echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6
14246if test "${bakefile_cv_cxx_compiler_mwerks+set}" = set; then
14247 echo $ECHO_N "(cached) $ECHO_C" >&6
14248else
14249 cat >conftest.$ac_ext <<_ACEOF
14250/* confdefs.h. */
14251_ACEOF
14252cat confdefs.h >>conftest.$ac_ext
14253cat >>conftest.$ac_ext <<_ACEOF
14254/* end confdefs.h. */
14255
14256int
14257main ()
14258{
14259#ifndef __MWERKS__
14260 choke me
14261#endif
14262
14263 ;
14264 return 0;
14265}
14266_ACEOF
14267rm -f conftest.$ac_objext
14268if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14269 (eval $ac_compile) 2>conftest.er1
14270 ac_status=$?
14271 grep -v '^ *+' conftest.er1 >conftest.err
14272 rm -f conftest.er1
14273 cat conftest.err >&5
14274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14275 (exit $ac_status); } &&
c9a66001 14276 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
95986553
DE
14277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14278 (eval $ac_try) 2>&5
14279 ac_status=$?
14280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14281 (exit $ac_status); }; } &&
14282 { ac_try='test -s conftest.$ac_objext'
14283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14284 (eval $ac_try) 2>&5
14285 ac_status=$?
14286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14287 (exit $ac_status); }; }; then
14288 bakefile_compiler_mwerks=yes
14289else
14290 echo "$as_me: failed program was:" >&5
14291sed 's/^/| /' conftest.$ac_ext >&5
14292
14293bakefile_compiler_mwerks=no
14294fi
14295rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14296 bakefile_cv_cxx_compiler_mwerks=$bakefile_compiler_mwerks
14297
14298fi
14299echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_mwerks" >&5
14300echo "${ECHO_T}$bakefile_cv_cxx_compiler_mwerks" >&6
14301
0e6fa1d9 14302MWCXX=`test $bakefile_cv_cxx_compiler_mwerks = yes && echo yes`
95986553
DE
14303ac_ext=cc
14304ac_cpp='$CXXCPP $CPPFLAGS'
14305ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14306ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14307ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14308
14309
3006edc0 14310 ac_ext=cc
9273ffba
DE
14311ac_cpp='$CXXCPP $CPPFLAGS'
14312ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14313ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14314ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14315
14316echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
14317echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6
0093c2fc 14318if test "${bakefile_cv_cxx_compiler_xlc+set}" = set; then
9273ffba
DE
14319 echo $ECHO_N "(cached) $ECHO_C" >&6
14320else
14321 cat >conftest.$ac_ext <<_ACEOF
14322/* confdefs.h. */
14323_ACEOF
14324cat confdefs.h >>conftest.$ac_ext
14325cat >>conftest.$ac_ext <<_ACEOF
14326/* end confdefs.h. */
14327
14328int
14329main ()
14330{
14331#ifndef __xlC__
14332 choke me
14333#endif
14334
14335 ;
14336 return 0;
14337}
14338_ACEOF
14339rm -f conftest.$ac_objext
14340if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14341 (eval $ac_compile) 2>conftest.er1
14342 ac_status=$?
14343 grep -v '^ *+' conftest.er1 >conftest.err
14344 rm -f conftest.er1
14345 cat conftest.err >&5
14346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14347 (exit $ac_status); } &&
c9a66001 14348 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9273ffba
DE
14349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14350 (eval $ac_try) 2>&5
14351 ac_status=$?
14352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14353 (exit $ac_status); }; } &&
14354 { ac_try='test -s conftest.$ac_objext'
14355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14356 (eval $ac_try) 2>&5
14357 ac_status=$?
14358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14359 (exit $ac_status); }; }; then
0093c2fc 14360 bakefile_compiler_xlc=yes
9273ffba
DE
14361else
14362 echo "$as_me: failed program was:" >&5
14363sed 's/^/| /' conftest.$ac_ext >&5
14364
0093c2fc 14365bakefile_compiler_xlc=no
9273ffba
DE
14366fi
14367rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 14368 bakefile_cv_cxx_compiler_xlc=$bakefile_compiler_xlc
9273ffba
DE
14369
14370fi
0093c2fc
VZ
14371echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_xlc" >&5
14372echo "${ECHO_T}$bakefile_cv_cxx_compiler_xlc" >&6
9273ffba 14373
0093c2fc 14374XLCXX=`test $bakefile_cv_cxx_compiler_xlc = yes && echo yes`
9273ffba
DE
14375ac_ext=cc
14376ac_cpp='$CXXCPP $CPPFLAGS'
14377ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14378ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14379ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14380
14381
3006edc0
VZ
14382 ;;
14383
14384 IRIX*)
95986553 14385
6dcfc289 14386
0ad5d837
VZ
14387 ac_ext=cc
14388ac_cpp='$CXXCPP $CPPFLAGS'
14389ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14390ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14391ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14392
14393 echo "$as_me:$LINENO: checking whether we are using the SGI C++ compiler" >&5
14394echo $ECHO_N "checking whether we are using the SGI C++ compiler... $ECHO_C" >&6
14395if test "${bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION+set}" = set; then
14396 echo $ECHO_N "(cached) $ECHO_C" >&6
14397else
14398 cat >conftest.$ac_ext <<_ACEOF
14399/* confdefs.h. */
14400_ACEOF
14401cat confdefs.h >>conftest.$ac_ext
14402cat >>conftest.$ac_ext <<_ACEOF
14403/* end confdefs.h. */
14404
14405int
14406main ()
14407{
14408
14409 #ifndef _SGI_COMPILER_VERSION
14410 choke me
14411 #endif
14412
14413 ;
14414 return 0;
14415}
14416_ACEOF
14417rm -f conftest.$ac_objext
14418if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14419 (eval $ac_compile) 2>conftest.er1
14420 ac_status=$?
14421 grep -v '^ *+' conftest.er1 >conftest.err
14422 rm -f conftest.er1
14423 cat conftest.err >&5
14424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14425 (exit $ac_status); } &&
c9a66001 14426 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0ad5d837
VZ
14427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14428 (eval $ac_try) 2>&5
14429 ac_status=$?
14430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14431 (exit $ac_status); }; } &&
14432 { ac_try='test -s conftest.$ac_objext'
14433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14434 (eval $ac_try) 2>&5
14435 ac_status=$?
14436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14437 (exit $ac_status); }; }; then
14438 bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=yes
14439else
14440 echo "$as_me: failed program was:" >&5
14441sed 's/^/| /' conftest.$ac_ext >&5
14442
14443bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=no
14444
14445fi
14446rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14447
14448
14449fi
14450echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&5
14451echo "${ECHO_T}$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&6
14452 ac_ext=cc
14453ac_cpp='$CXXCPP $CPPFLAGS'
14454ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14455ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14456ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14457
14458 if test "x$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" = "xyes"; then
14459 :; SGICXX=yes
14460 else
14461 :;
14462 fi
14463
14464
3006edc0
VZ
14465 ;;
14466
0093c2fc 14467 HP-UX*)
3006edc0
VZ
14468
14469
14470 ac_ext=cc
14471ac_cpp='$CXXCPP $CPPFLAGS'
14472ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14473ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14474ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14475
0093c2fc
VZ
14476 echo "$as_me:$LINENO: checking whether we are using the HP C++ compiler" >&5
14477echo $ECHO_N "checking whether we are using the HP C++ compiler... $ECHO_C" >&6
14478if test "${bakefile_cv_cxx_compiler___HP_aCC+set}" = set; then
3006edc0
VZ
14479 echo $ECHO_N "(cached) $ECHO_C" >&6
14480else
14481 cat >conftest.$ac_ext <<_ACEOF
14482/* confdefs.h. */
14483_ACEOF
14484cat confdefs.h >>conftest.$ac_ext
14485cat >>conftest.$ac_ext <<_ACEOF
14486/* end confdefs.h. */
14487
14488int
14489main ()
14490{
14491
0093c2fc 14492 #ifndef __HP_aCC
3006edc0
VZ
14493 choke me
14494 #endif
14495
14496 ;
14497 return 0;
14498}
14499_ACEOF
14500rm -f conftest.$ac_objext
14501if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14502 (eval $ac_compile) 2>conftest.er1
14503 ac_status=$?
14504 grep -v '^ *+' conftest.er1 >conftest.err
14505 rm -f conftest.er1
14506 cat conftest.err >&5
14507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14508 (exit $ac_status); } &&
c9a66001 14509 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3006edc0
VZ
14510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14511 (eval $ac_try) 2>&5
14512 ac_status=$?
14513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14514 (exit $ac_status); }; } &&
14515 { ac_try='test -s conftest.$ac_objext'
14516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14517 (eval $ac_try) 2>&5
14518 ac_status=$?
14519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14520 (exit $ac_status); }; }; then
0093c2fc 14521 bakefile_cv_cxx_compiler___HP_aCC=yes
3006edc0
VZ
14522else
14523 echo "$as_me: failed program was:" >&5
14524sed 's/^/| /' conftest.$ac_ext >&5
14525
0093c2fc 14526bakefile_cv_cxx_compiler___HP_aCC=no
3006edc0
VZ
14527
14528fi
14529rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14530
14531
14532fi
0093c2fc
VZ
14533echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___HP_aCC" >&5
14534echo "${ECHO_T}$bakefile_cv_cxx_compiler___HP_aCC" >&6
3006edc0
VZ
14535 ac_ext=cc
14536ac_cpp='$CXXCPP $CPPFLAGS'
14537ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14538ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14539ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14540
0093c2fc
VZ
14541 if test "x$bakefile_cv_cxx_compiler___HP_aCC" = "xyes"; then
14542 :; HPCXX=yes
a1aa0349
VZ
14543 else
14544 :;
14545 fi
14546
14547
14548 ;;
14549
0093c2fc 14550 OSF1)
a1aa0349
VZ
14551
14552
14553 ac_ext=cc
14554ac_cpp='$CXXCPP $CPPFLAGS'
14555ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14556ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14557ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14558
0093c2fc
VZ
14559 echo "$as_me:$LINENO: checking whether we are using the Compaq C++ compiler" >&5
14560echo $ECHO_N "checking whether we are using the Compaq C++ compiler... $ECHO_C" >&6
14561if test "${bakefile_cv_cxx_compiler___DECCXX+set}" = set; then
a1aa0349
VZ
14562 echo $ECHO_N "(cached) $ECHO_C" >&6
14563else
14564 cat >conftest.$ac_ext <<_ACEOF
14565/* confdefs.h. */
14566_ACEOF
14567cat confdefs.h >>conftest.$ac_ext
14568cat >>conftest.$ac_ext <<_ACEOF
14569/* end confdefs.h. */
14570
14571int
14572main ()
14573{
14574
0093c2fc 14575 #ifndef __DECCXX
a1aa0349
VZ
14576 choke me
14577 #endif
14578
14579 ;
14580 return 0;
14581}
14582_ACEOF
14583rm -f conftest.$ac_objext
14584if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14585 (eval $ac_compile) 2>conftest.er1
14586 ac_status=$?
14587 grep -v '^ *+' conftest.er1 >conftest.err
14588 rm -f conftest.er1
14589 cat conftest.err >&5
14590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14591 (exit $ac_status); } &&
c9a66001 14592 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
a1aa0349
VZ
14593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14594 (eval $ac_try) 2>&5
14595 ac_status=$?
14596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14597 (exit $ac_status); }; } &&
14598 { ac_try='test -s conftest.$ac_objext'
14599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14600 (eval $ac_try) 2>&5
14601 ac_status=$?
14602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14603 (exit $ac_status); }; }; then
0093c2fc 14604 bakefile_cv_cxx_compiler___DECCXX=yes
a1aa0349
VZ
14605else
14606 echo "$as_me: failed program was:" >&5
14607sed 's/^/| /' conftest.$ac_ext >&5
14608
0093c2fc 14609bakefile_cv_cxx_compiler___DECCXX=no
a1aa0349
VZ
14610
14611fi
14612rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14613
14614
14615fi
0093c2fc
VZ
14616echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___DECCXX" >&5
14617echo "${ECHO_T}$bakefile_cv_cxx_compiler___DECCXX" >&6
a1aa0349
VZ
14618 ac_ext=cc
14619ac_cpp='$CXXCPP $CPPFLAGS'
14620ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14621ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14622ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14623
0093c2fc
VZ
14624 if test "x$bakefile_cv_cxx_compiler___DECCXX" = "xyes"; then
14625 :; COMPAQCXX=yes
14626 else
14627 :;
14628 fi
14629
14630
14631 ;;
14632
14633 SunOS)
14634
14635
14636 ac_ext=cc
14637ac_cpp='$CXXCPP $CPPFLAGS'
14638ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14639ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14640ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14641
14642 echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
14643echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6
14644if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
14645 echo $ECHO_N "(cached) $ECHO_C" >&6
14646else
14647 cat >conftest.$ac_ext <<_ACEOF
14648/* confdefs.h. */
14649_ACEOF
14650cat confdefs.h >>conftest.$ac_ext
14651cat >>conftest.$ac_ext <<_ACEOF
14652/* end confdefs.h. */
14653
14654int
14655main ()
14656{
14657
14658 #ifndef __SUNPRO_CC
14659 choke me
14660 #endif
14661
14662 ;
14663 return 0;
14664}
14665_ACEOF
14666rm -f conftest.$ac_objext
14667if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14668 (eval $ac_compile) 2>conftest.er1
14669 ac_status=$?
14670 grep -v '^ *+' conftest.er1 >conftest.err
14671 rm -f conftest.er1
14672 cat conftest.err >&5
14673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14674 (exit $ac_status); } &&
c9a66001 14675 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0093c2fc
VZ
14676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14677 (eval $ac_try) 2>&5
14678 ac_status=$?
14679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14680 (exit $ac_status); }; } &&
14681 { ac_try='test -s conftest.$ac_objext'
14682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14683 (eval $ac_try) 2>&5
14684 ac_status=$?
14685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14686 (exit $ac_status); }; }; then
14687 bakefile_cv_cxx_compiler___SUNPRO_CC=yes
14688else
14689 echo "$as_me: failed program was:" >&5
14690sed 's/^/| /' conftest.$ac_ext >&5
14691
14692bakefile_cv_cxx_compiler___SUNPRO_CC=no
14693
14694fi
14695rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14696
14697
14698fi
14699echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
14700echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6
14701 ac_ext=cc
14702ac_cpp='$CXXCPP $CPPFLAGS'
14703ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14704ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14705ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14706
14707 if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
14708 :; SUNCXX=yes
3006edc0
VZ
14709 else
14710 :;
ab0ad5f1 14711 fi
a9e5b1f0
MW
14712
14713
3006edc0
VZ
14714 ;;
14715 esac
14716 fi
14717
14718
14719
a848cd7e
SC
14720if test -n "$ac_tool_prefix"; then
14721 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14722set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14723echo "$as_me:$LINENO: checking for $ac_word" >&5
14724echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14725if test "${ac_cv_prog_RANLIB+set}" = set; then
14726 echo $ECHO_N "(cached) $ECHO_C" >&6
14727else
14728 if test -n "$RANLIB"; then
14729 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14730else
14731as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14732for as_dir in $PATH
14733do
14734 IFS=$as_save_IFS
14735 test -z "$as_dir" && as_dir=.
14736 for ac_exec_ext in '' $ac_executable_extensions; do
14737 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14738 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14739 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14740 break 2
14741 fi
14742done
14743done
14744
14745fi
14746fi
14747RANLIB=$ac_cv_prog_RANLIB
14748if test -n "$RANLIB"; then
14749 echo "$as_me:$LINENO: result: $RANLIB" >&5
14750echo "${ECHO_T}$RANLIB" >&6
14751else
14752 echo "$as_me:$LINENO: result: no" >&5
14753echo "${ECHO_T}no" >&6
14754fi
14755
14756fi
14757if test -z "$ac_cv_prog_RANLIB"; then
14758 ac_ct_RANLIB=$RANLIB
14759 # Extract the first word of "ranlib", so it can be a program name with args.
14760set dummy ranlib; ac_word=$2
14761echo "$as_me:$LINENO: checking for $ac_word" >&5
14762echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14763if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14764 echo $ECHO_N "(cached) $ECHO_C" >&6
14765else
14766 if test -n "$ac_ct_RANLIB"; then
14767 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14768else
14769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14770for as_dir in $PATH
14771do
14772 IFS=$as_save_IFS
14773 test -z "$as_dir" && as_dir=.
14774 for ac_exec_ext in '' $ac_executable_extensions; do
14775 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14776 ac_cv_prog_ac_ct_RANLIB="ranlib"
14777 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14778 break 2
14779 fi
14780done
14781done
14782
14783 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
14784fi
14785fi
14786ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14787if test -n "$ac_ct_RANLIB"; then
14788 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14789echo "${ECHO_T}$ac_ct_RANLIB" >&6
14790else
14791 echo "$as_me:$LINENO: result: no" >&5
14792echo "${ECHO_T}no" >&6
14793fi
14794
14795 RANLIB=$ac_ct_RANLIB
14796else
14797 RANLIB="$ac_cv_prog_RANLIB"
14798fi
14799
14800
8c80d384
DE
14801if test -n "$ac_tool_prefix"; then
14802 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14803set dummy ${ac_tool_prefix}ar; ac_word=$2
a848cd7e
SC
14804echo "$as_me:$LINENO: checking for $ac_word" >&5
14805echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14806if test "${ac_cv_prog_AR+set}" = set; then
14807 echo $ECHO_N "(cached) $ECHO_C" >&6
14808else
14809 if test -n "$AR"; then
14810 ac_cv_prog_AR="$AR" # Let the user override the test.
14811else
14812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14813for as_dir in $PATH
14814do
14815 IFS=$as_save_IFS
14816 test -z "$as_dir" && as_dir=.
14817 for ac_exec_ext in '' $ac_executable_extensions; do
14818 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8c80d384 14819 ac_cv_prog_AR="${ac_tool_prefix}ar"
a848cd7e
SC
14820 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14821 break 2
14822 fi
14823done
14824done
14825
14826fi
14827fi
14828AR=$ac_cv_prog_AR
14829if test -n "$AR"; then
14830 echo "$as_me:$LINENO: result: $AR" >&5
14831echo "${ECHO_T}$AR" >&6
14832else
14833 echo "$as_me:$LINENO: result: no" >&5
14834echo "${ECHO_T}no" >&6
14835fi
14836
8c80d384
DE
14837fi
14838if test -z "$ac_cv_prog_AR"; then
14839 ac_ct_AR=$AR
14840 # Extract the first word of "ar", so it can be a program name with args.
14841set dummy ar; ac_word=$2
14842echo "$as_me:$LINENO: checking for $ac_word" >&5
14843echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14844if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
14845 echo $ECHO_N "(cached) $ECHO_C" >&6
14846else
14847 if test -n "$ac_ct_AR"; then
14848 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14849else
14850as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14851for as_dir in $PATH
14852do
14853 IFS=$as_save_IFS
14854 test -z "$as_dir" && as_dir=.
14855 for ac_exec_ext in '' $ac_executable_extensions; do
14856 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14857 ac_cv_prog_ac_ct_AR="ar"
14858 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14859 break 2
14860 fi
14861done
14862done
14863
14864fi
14865fi
14866ac_ct_AR=$ac_cv_prog_ac_ct_AR
14867if test -n "$ac_ct_AR"; then
14868 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
14869echo "${ECHO_T}$ac_ct_AR" >&6
14870else
14871 echo "$as_me:$LINENO: result: no" >&5
14872echo "${ECHO_T}no" >&6
14873fi
14874
14875 AR=$ac_ct_AR
14876else
14877 AR="$ac_cv_prog_AR"
14878fi
14879
a848cd7e 14880if test "x$AR" = "x" ; then
77ffb593
JS
14881 { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
14882echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
a848cd7e
SC
14883 { (exit 1); exit 1; }; }
14884fi
14885
14886# Find a good install program. We prefer a C program (faster),
14887# so one script is as good as another. But avoid the broken or
14888# incompatible versions:
14889# SysV /etc/install, /usr/sbin/install
14890# SunOS /usr/etc/install
14891# IRIX /sbin/install
14892# AIX /bin/install
14893# AmigaOS /C/install, which installs bootblocks on floppy discs
14894# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
14895# AFS /usr/afsws/bin/install, which mishandles nonexistent args
14896# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 14897# OS/2's system install, which has a completely different semantic
a848cd7e
SC
14898# ./install, which can be erroneously created by make from ./install.sh.
14899echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
14900echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
14901if test -z "$INSTALL"; then
14902if test "${ac_cv_path_install+set}" = set; then
14903 echo $ECHO_N "(cached) $ECHO_C" >&6
14904else
14905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14906for as_dir in $PATH
14907do
14908 IFS=$as_save_IFS
14909 test -z "$as_dir" && as_dir=.
14910 # Account for people who put trailing slashes in PATH elements.
14911case $as_dir/ in
14912 ./ | .// | /cC/* | \
14913 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 14914 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
14915 /usr/ucb/* ) ;;
14916 *)
14917 # OSF1 and SCO ODT 3.0 have their own names for install.
14918 # Don't use installbsd from OSF since it installs stuff as root
14919 # by default.
14920 for ac_prog in ginstall scoinst install; do
14921 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
14922 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
14923 if test $ac_prog = install &&
14924 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
14925 # AIX install. It has an incompatible calling convention.
14926 :
14927 elif test $ac_prog = install &&
14928 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
14929 # program-specific install script used by HP pwplus--don't use.
14930 :
14931 else
14932 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
14933 break 3
14934 fi
14935 fi
a848cd7e
SC
14936 done
14937 done
14938 ;;
14939esac
14940done
14941
14942
14943fi
14944 if test "${ac_cv_path_install+set}" = set; then
14945 INSTALL=$ac_cv_path_install
14946 else
14947 # As a last resort, use the slow shell script. We don't cache a
14948 # path for INSTALL within a source directory, because that will
14949 # break other packages using the cache if that directory is
14950 # removed, or if the path is relative.
14951 INSTALL=$ac_install_sh
14952 fi
14953fi
14954echo "$as_me:$LINENO: result: $INSTALL" >&5
14955echo "${ECHO_T}$INSTALL" >&6
14956
14957# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
14958# It thinks the first close brace ends the variable substitution.
14959test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
14960
14961test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
14962
14963test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
14964
14965
14966case ${INSTALL} in
14967 /* ) # Absolute
14968 ;;
14969 ?:* ) # Drive letter, considered as absolute.
14970 ;;
14971 *)
14972 INSTALL=`pwd`/${INSTALL} ;;
14973esac
14974
a848cd7e
SC
14975
14976case "${host}" in
14977
cfda0ea8 14978 *-*-darwin* )
a848cd7e
SC
14979 INSTALL_PROGRAM="cp -fp"
14980 INSTALL_DATA="cp -fp"
14981 ;;
14982 *)
14983 ;;
14984esac
14985
8c80d384
DE
14986if test -n "$ac_tool_prefix"; then
14987 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14988set dummy ${ac_tool_prefix}strip; ac_word=$2
a848cd7e
SC
14989echo "$as_me:$LINENO: checking for $ac_word" >&5
14990echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14991if test "${ac_cv_prog_STRIP+set}" = set; then
14992 echo $ECHO_N "(cached) $ECHO_C" >&6
14993else
14994 if test -n "$STRIP"; then
14995 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14996else
14997as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14998for as_dir in $PATH
14999do
15000 IFS=$as_save_IFS
15001 test -z "$as_dir" && as_dir=.
15002 for ac_exec_ext in '' $ac_executable_extensions; do
15003 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8c80d384 15004 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
a848cd7e
SC
15005 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15006 break 2
15007 fi
15008done
15009done
15010
a848cd7e
SC
15011fi
15012fi
15013STRIP=$ac_cv_prog_STRIP
15014if test -n "$STRIP"; then
15015 echo "$as_me:$LINENO: result: $STRIP" >&5
15016echo "${ECHO_T}$STRIP" >&6
15017else
15018 echo "$as_me:$LINENO: result: no" >&5
15019echo "${ECHO_T}no" >&6
15020fi
15021
8c80d384
DE
15022fi
15023if test -z "$ac_cv_prog_STRIP"; then
15024 ac_ct_STRIP=$STRIP
15025 # Extract the first word of "strip", so it can be a program name with args.
15026set dummy strip; ac_word=$2
15027echo "$as_me:$LINENO: checking for $ac_word" >&5
15028echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15029if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
15030 echo $ECHO_N "(cached) $ECHO_C" >&6
15031else
15032 if test -n "$ac_ct_STRIP"; then
15033 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
15034else
15035as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15036for as_dir in $PATH
15037do
15038 IFS=$as_save_IFS
15039 test -z "$as_dir" && as_dir=.
15040 for ac_exec_ext in '' $ac_executable_extensions; do
15041 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15042 ac_cv_prog_ac_ct_STRIP="strip"
15043 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15044 break 2
15045 fi
15046done
15047done
15048
15049 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP="true"
15050fi
15051fi
15052ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
15053if test -n "$ac_ct_STRIP"; then
15054 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
15055echo "${ECHO_T}$ac_ct_STRIP" >&6
15056else
15057 echo "$as_me:$LINENO: result: no" >&5
15058echo "${ECHO_T}no" >&6
15059fi
15060
15061 STRIP=$ac_ct_STRIP
15062else
15063 STRIP="$ac_cv_prog_STRIP"
15064fi
15065
15066
15067if test "$wxUSE_WINE" = "yes"; then
15068 if test -n "$ac_tool_prefix"; then
15069 # Extract the first word of "${ac_tool_prefix}wrc", so it can be a program name with args.
15070set dummy ${ac_tool_prefix}wrc; ac_word=$2
15071echo "$as_me:$LINENO: checking for $ac_word" >&5
15072echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 15073if test "${ac_cv_prog_WINDRES+set}" = set; then
8c80d384
DE
15074 echo $ECHO_N "(cached) $ECHO_C" >&6
15075else
8ced02f6
DE
15076 if test -n "$WINDRES"; then
15077 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8c80d384
DE
15078else
15079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15080for as_dir in $PATH
15081do
15082 IFS=$as_save_IFS
15083 test -z "$as_dir" && as_dir=.
15084 for ac_exec_ext in '' $ac_executable_extensions; do
15085 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 15086 ac_cv_prog_WINDRES="${ac_tool_prefix}wrc"
8c80d384
DE
15087 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15088 break 2
15089 fi
15090done
15091done
15092
15093fi
15094fi
8ced02f6
DE
15095WINDRES=$ac_cv_prog_WINDRES
15096if test -n "$WINDRES"; then
15097 echo "$as_me:$LINENO: result: $WINDRES" >&5
15098echo "${ECHO_T}$WINDRES" >&6
8c80d384
DE
15099else
15100 echo "$as_me:$LINENO: result: no" >&5
15101echo "${ECHO_T}no" >&6
15102fi
15103
15104fi
8ced02f6
DE
15105if test -z "$ac_cv_prog_WINDRES"; then
15106 ac_ct_WINDRES=$WINDRES
8c80d384
DE
15107 # Extract the first word of "wrc", so it can be a program name with args.
15108set dummy wrc; ac_word=$2
15109echo "$as_me:$LINENO: checking for $ac_word" >&5
15110echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 15111if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
8c80d384
DE
15112 echo $ECHO_N "(cached) $ECHO_C" >&6
15113else
8ced02f6
DE
15114 if test -n "$ac_ct_WINDRES"; then
15115 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
8c80d384
DE
15116else
15117as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15118for as_dir in $PATH
15119do
15120 IFS=$as_save_IFS
15121 test -z "$as_dir" && as_dir=.
15122 for ac_exec_ext in '' $ac_executable_extensions; do
15123 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 15124 ac_cv_prog_ac_ct_WINDRES="wrc"
8c80d384
DE
15125 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15126 break 2
15127 fi
15128done
15129done
15130
15131fi
15132fi
8ced02f6
DE
15133ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
15134if test -n "$ac_ct_WINDRES"; then
15135 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
15136echo "${ECHO_T}$ac_ct_WINDRES" >&6
8c80d384
DE
15137else
15138 echo "$as_me:$LINENO: result: no" >&5
15139echo "${ECHO_T}no" >&6
15140fi
15141
8ced02f6 15142 WINDRES=$ac_ct_WINDRES
8c80d384 15143else
8ced02f6 15144 WINDRES="$ac_cv_prog_WINDRES"
8c80d384
DE
15145fi
15146
004ee6da 15147 RESCOMP="$WINDRES"
8c80d384
DE
15148else
15149 case "${host}" in
15150 *-*-cygwin* | *-*-mingw32* )
004ee6da
RL
15151 if test -n "$ac_tool_prefix"; then
15152 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
15153set dummy ${ac_tool_prefix}windres; ac_word=$2
15154echo "$as_me:$LINENO: checking for $ac_word" >&5
15155echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15156if test "${ac_cv_prog_WINDRES+set}" = set; then
15157 echo $ECHO_N "(cached) $ECHO_C" >&6
15158else
15159 if test -n "$WINDRES"; then
15160 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
15161else
15162as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15163for as_dir in $PATH
15164do
15165 IFS=$as_save_IFS
15166 test -z "$as_dir" && as_dir=.
15167 for ac_exec_ext in '' $ac_executable_extensions; do
15168 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15169 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
15170 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15171 break 2
15172 fi
15173done
15174done
15175
15176fi
15177fi
15178WINDRES=$ac_cv_prog_WINDRES
15179if test -n "$WINDRES"; then
15180 echo "$as_me:$LINENO: result: $WINDRES" >&5
15181echo "${ECHO_T}$WINDRES" >&6
15182else
15183 echo "$as_me:$LINENO: result: no" >&5
15184echo "${ECHO_T}no" >&6
15185fi
15186
15187fi
15188if test -z "$ac_cv_prog_WINDRES"; then
15189 ac_ct_WINDRES=$WINDRES
15190 # Extract the first word of "windres", so it can be a program name with args.
15191set dummy windres; ac_word=$2
15192echo "$as_me:$LINENO: checking for $ac_word" >&5
15193echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15194if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
15195 echo $ECHO_N "(cached) $ECHO_C" >&6
15196else
15197 if test -n "$ac_ct_WINDRES"; then
15198 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
15199else
15200as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15201for as_dir in $PATH
15202do
15203 IFS=$as_save_IFS
15204 test -z "$as_dir" && as_dir=.
15205 for ac_exec_ext in '' $ac_executable_extensions; do
15206 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15207 ac_cv_prog_ac_ct_WINDRES="windres"
15208 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15209 break 2
15210 fi
15211done
15212done
15213
15214fi
15215fi
15216ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
15217if test -n "$ac_ct_WINDRES"; then
15218 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
15219echo "${ECHO_T}$ac_ct_WINDRES" >&6
15220else
15221 echo "$as_me:$LINENO: result: no" >&5
15222echo "${ECHO_T}no" >&6
15223fi
15224
15225 WINDRES=$ac_ct_WINDRES
15226else
15227 WINDRES="$ac_cv_prog_WINDRES"
15228fi
15229
15230 RESCOMP="$WINDRES"
15231 if test -n "$ac_tool_prefix"; then
8c80d384
DE
15232 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
15233set dummy ${ac_tool_prefix}dlltool; ac_word=$2
15234echo "$as_me:$LINENO: checking for $ac_word" >&5
15235echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15236if test "${ac_cv_prog_DLLTOOL+set}" = set; then
15237 echo $ECHO_N "(cached) $ECHO_C" >&6
15238else
15239 if test -n "$DLLTOOL"; then
15240 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
15241else
15242as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15243for as_dir in $PATH
15244do
15245 IFS=$as_save_IFS
15246 test -z "$as_dir" && as_dir=.
15247 for ac_exec_ext in '' $ac_executable_extensions; do
15248 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15249 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
15250 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15251 break 2
15252 fi
15253done
15254done
15255
15256fi
15257fi
15258DLLTOOL=$ac_cv_prog_DLLTOOL
15259if test -n "$DLLTOOL"; then
15260 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
15261echo "${ECHO_T}$DLLTOOL" >&6
15262else
15263 echo "$as_me:$LINENO: result: no" >&5
15264echo "${ECHO_T}no" >&6
15265fi
15266
15267fi
15268if test -z "$ac_cv_prog_DLLTOOL"; then
15269 ac_ct_DLLTOOL=$DLLTOOL
15270 # Extract the first word of "dlltool", so it can be a program name with args.
15271set dummy dlltool; ac_word=$2
15272echo "$as_me:$LINENO: checking for $ac_word" >&5
15273echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15274if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
15275 echo $ECHO_N "(cached) $ECHO_C" >&6
15276else
15277 if test -n "$ac_ct_DLLTOOL"; then
15278 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
15279else
15280as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15281for as_dir in $PATH
15282do
15283 IFS=$as_save_IFS
15284 test -z "$as_dir" && as_dir=.
15285 for ac_exec_ext in '' $ac_executable_extensions; do
15286 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15287 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
15288 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15289 break 2
15290 fi
15291done
15292done
15293
15294fi
15295fi
15296ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
15297if test -n "$ac_ct_DLLTOOL"; then
15298 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
15299echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
15300else
15301 echo "$as_me:$LINENO: result: no" >&5
15302echo "${ECHO_T}no" >&6
15303fi
15304
15305 DLLTOOL=$ac_ct_DLLTOOL
15306else
15307 DLLTOOL="$ac_cv_prog_DLLTOOL"
15308fi
15309
15310 ;;
15311 esac
15312fi
a848cd7e
SC
15313
15314echo "$as_me:$LINENO: checking if make is GNU make" >&5
15315echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
15316if test "${wx_cv_prog_makeisgnu+set}" = set; then
15317 echo $ECHO_N "(cached) $ECHO_C" >&6
15318else
15319
15320 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
15321 egrep -s GNU > /dev/null); then
15322 wx_cv_prog_makeisgnu="yes"
15323 else
15324 wx_cv_prog_makeisgnu="no"
15325 fi
15326
15327fi
15328echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
15329echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
15330
15331if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
15332 IF_GNU_MAKE=""
15333else
15334 IF_GNU_MAKE="#"
15335fi
15336
15337
15338
15339if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
15340echo "$as_me:$LINENO: checking if make supports VPATH" >&5
15341echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
15342if test "${wx_cv_prog_makevpath+set}" = set; then
15343 echo $ECHO_N "(cached) $ECHO_C" >&6
15344else
15345
15346cat - << EOF > confMake
15347check : file
15348 cp \$? \$@
15349 cp \$? final_file
15350EOF
15351
15352if test ! -d sub ; then
15353 mkdir sub
15354fi
15355echo dummy > sub/file
15356${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
15357RESULT=$?
15358rm -f sub/file check final_file confMake
15359rmdir sub
15360if test "$RESULT" = 0; then
15361 wx_cv_prog_makevpath="yes"
15362else
15363 wx_cv_prog_makevpath="no"
15364fi
15365
15366fi
15367echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
15368echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
15369
15370if test "x$wx_cv_prog_makevpath" != "xyes"; then
15371{ { echo "$as_me:$LINENO: error:
15372You need a make-utility that is able to use the variable
15373VPATH correctly.
15374If your version of make does not support VPATH correctly,
15375please install GNU-make (possibly as gmake), and start
15376configure with the following command:
15377export MAKE=gmake; ./configure for sh-type shells
15378setenv MAKE gmake; ./configure for csh-type shells
15379Also please do remember to use gmake in this case every time
15380you are trying to compile.
15381" >&5
15382echo "$as_me: error:
15383You need a make-utility that is able to use the variable
15384VPATH correctly.
15385If your version of make does not support VPATH correctly,
15386please install GNU-make (possibly as gmake), and start
15387configure with the following command:
15388export MAKE=gmake; ./configure for sh-type shells
15389setenv MAKE gmake; ./configure for csh-type shells
15390Also please do remember to use gmake in this case every time
15391you are trying to compile.
15392" >&2;}
15393 { (exit 1); exit 1; }; }
15394fi fi
15395echo "$as_me:$LINENO: checking whether ln -s works" >&5
15396echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
15397LN_S=$as_ln_s
15398if test "$LN_S" = "ln -s"; then
15399 echo "$as_me:$LINENO: result: yes" >&5
15400echo "${ECHO_T}yes" >&6
15401else
15402 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
15403echo "${ECHO_T}no, using $LN_S" >&6
15404fi
15405
15406
bcaab0f9 15407
a848cd7e 15408
2113bc77 15409if test "x$XLCXX" = "xyes" -a "x$USE_AIX" = "x1"; then
c92ad099 15410 CXXFLAGS="-qunique $CXXFLAGS"
9273ffba
DE
15411fi
15412
4d7ec9f1
DE
15413case "${host}" in
15414 powerpc-*-darwin* )
15415 echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5
15416echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6
15417 cat >conftest.$ac_ext <<_ACEOF
15418/* confdefs.h. */
15419_ACEOF
15420cat confdefs.h >>conftest.$ac_ext
15421cat >>conftest.$ac_ext <<_ACEOF
15422/* end confdefs.h. */
15423
15424int
15425main ()
15426{
15427#ifndef __POWERPC__
15428 choke me for lack of PowerPC
15429#endif
15430
15431 ;
15432 return 0;
15433}
15434_ACEOF
15435rm -f conftest.$ac_objext
15436if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15437 (eval $ac_compile) 2>conftest.er1
15438 ac_status=$?
15439 grep -v '^ *+' conftest.er1 >conftest.err
15440 rm -f conftest.er1
15441 cat conftest.err >&5
15442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15443 (exit $ac_status); } &&
c9a66001 15444 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
15445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15446 (eval $ac_try) 2>&5
15447 ac_status=$?
15448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15449 (exit $ac_status); }; } &&
15450 { ac_try='test -s conftest.$ac_objext'
15451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15452 (eval $ac_try) 2>&5
15453 ac_status=$?
15454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15455 (exit $ac_status); }; }; then
15456 echo "$as_me:$LINENO: result: yes" >&5
15457echo "${ECHO_T}yes" >&6
15458else
15459 echo "$as_me: failed program was:" >&5
15460sed 's/^/| /' conftest.$ac_ext >&5
15461
15462echo "$as_me:$LINENO: result: no" >&5
15463echo "${ECHO_T}no" >&6
15464 cat >>confdefs.h <<\_ACEOF
15465#define __POWERPC__ 1
15466_ACEOF
15467
15468
15469fi
15470rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
cfda0ea8
DE
15471 ;;
15472esac
15473
15474case "${host}" in
15475 *-*-darwin* )
4d7ec9f1
DE
15476 echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5
15477echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6
15478 cat >conftest.$ac_ext <<_ACEOF
15479/* confdefs.h. */
15480_ACEOF
15481cat confdefs.h >>conftest.$ac_ext
15482cat >>conftest.$ac_ext <<_ACEOF
15483/* end confdefs.h. */
15484#include <CoreFoundation/CFBase.h>
15485
15486int
15487main ()
15488{
15489
15490 ;
15491 return 0;
15492}
15493_ACEOF
15494rm -f conftest.$ac_objext
15495if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15496 (eval $ac_compile) 2>conftest.er1
15497 ac_status=$?
15498 grep -v '^ *+' conftest.er1 >conftest.err
15499 rm -f conftest.er1
15500 cat conftest.err >&5
15501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15502 (exit $ac_status); } &&
c9a66001 15503 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
15504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15505 (eval $ac_try) 2>&5
15506 ac_status=$?
15507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15508 (exit $ac_status); }; } &&
15509 { ac_try='test -s conftest.$ac_objext'
15510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15511 (eval $ac_try) 2>&5
15512 ac_status=$?
15513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15514 (exit $ac_status); }; }; then
15515 echo "$as_me:$LINENO: result: yes" >&5
15516echo "${ECHO_T}yes" >&6
15517else
15518 echo "$as_me: failed program was:" >&5
15519sed 's/^/| /' conftest.$ac_ext >&5
15520
15521echo "$as_me:$LINENO: result: no" >&5
15522echo "${ECHO_T}no" >&6
15523 echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5
15524echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6
15525 cat >conftest.$ac_ext <<_ACEOF
15526/* confdefs.h. */
15527_ACEOF
15528cat confdefs.h >>conftest.$ac_ext
15529cat >>conftest.$ac_ext <<_ACEOF
15530/* end confdefs.h. */
15531#define __CF_USE_FRAMEWORK_INCLUDES__
15532#include <CoreFoundation/CFBase.h>
15533
15534int
15535main ()
15536{
15537
15538 ;
15539 return 0;
15540}
15541_ACEOF
15542rm -f conftest.$ac_objext
15543if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15544 (eval $ac_compile) 2>conftest.er1
15545 ac_status=$?
15546 grep -v '^ *+' conftest.er1 >conftest.err
15547 rm -f conftest.er1
15548 cat conftest.err >&5
15549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15550 (exit $ac_status); } &&
c9a66001 15551 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
15552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15553 (eval $ac_try) 2>&5
15554 ac_status=$?
15555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15556 (exit $ac_status); }; } &&
15557 { ac_try='test -s conftest.$ac_objext'
15558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15559 (eval $ac_try) 2>&5
15560 ac_status=$?
15561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15562 (exit $ac_status); }; }; then
15563 echo "$as_me:$LINENO: result: yes" >&5
15564echo "${ECHO_T}yes" >&6
c92ad099 15565 CPPFLAGS="-D__CF_USE_FRAMEWORK_INCLUDES__ $CPPFLAGS"
4d7ec9f1
DE
15566else
15567 echo "$as_me: failed program was:" >&5
15568sed 's/^/| /' conftest.$ac_ext >&5
15569
15570{ { echo "$as_me:$LINENO: error: no. CoreFoundation not available.
15571See \`config.log' for more details." >&5
15572echo "$as_me: error: no. CoreFoundation not available.
15573See \`config.log' for more details." >&2;}
15574 { (exit 1); exit 1; }; }
15575
15576fi
15577rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15578
15579
15580fi
15581rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15582 ;;
15583esac
15584
a848cd7e
SC
15585case "${host}" in
15586 *-pc-os2_emx | *-pc-os2-emx )
6ba87b06
SN
15587 ac_ext=c
15588ac_cpp='$CPP $CPPFLAGS'
15589ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15590ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15591ac_compiler_gnu=$ac_cv_c_compiler_gnu
15592
15593 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
a848cd7e
SC
15594 echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
15595echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
15596if test "${ac_cv_lib_cExt_drand48+set}" = set; then
15597 echo $ECHO_N "(cached) $ECHO_C" >&6
15598else
15599 ac_check_lib_save_LIBS=$LIBS
15600LIBS="-lcExt $LIBS"
15601cat >conftest.$ac_ext <<_ACEOF
15602/* confdefs.h. */
15603_ACEOF
15604cat confdefs.h >>conftest.$ac_ext
15605cat >>conftest.$ac_ext <<_ACEOF
15606/* end confdefs.h. */
15607
15608/* Override any gcc2 internal prototype to avoid an error. */
15609#ifdef __cplusplus
15610extern "C"
15611#endif
15612/* We use char because int might match the return type of a gcc2
15613 builtin and then its argument prototype would still apply. */
15614char drand48 ();
15615int
15616main ()
15617{
15618drand48 ();
15619 ;
15620 return 0;
15621}
15622_ACEOF
15623rm -f conftest.$ac_objext conftest$ac_exeext
15624if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 15625 (eval $ac_link) 2>conftest.er1
a848cd7e 15626 ac_status=$?
ac1cb8d3
VS
15627 grep -v '^ *+' conftest.er1 >conftest.err
15628 rm -f conftest.er1
15629 cat conftest.err >&5
a848cd7e
SC
15630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15631 (exit $ac_status); } &&
c9a66001 15632 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15634 (eval $ac_try) 2>&5
15635 ac_status=$?
15636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15637 (exit $ac_status); }; } &&
15638 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
15639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15640 (eval $ac_try) 2>&5
15641 ac_status=$?
15642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15643 (exit $ac_status); }; }; then
15644 ac_cv_lib_cExt_drand48=yes
15645else
15646 echo "$as_me: failed program was:" >&5
15647sed 's/^/| /' conftest.$ac_ext >&5
15648
15649ac_cv_lib_cExt_drand48=no
15650fi
ac1cb8d3
VS
15651rm -f conftest.err conftest.$ac_objext \
15652 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
15653LIBS=$ac_check_lib_save_LIBS
15654fi
15655echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
15656echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
15657if test $ac_cv_lib_cExt_drand48 = yes; then
15658 LIBS="$LIBS -lcExt"
15659fi
15660
15661 else
15662 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
15663 fi
69120ee4
VZ
15664 echo "$as_me:$LINENO: checking for gcc/libc version" >&5
15665echo $ECHO_N "checking for gcc/libc version... $ECHO_C" >&6
a848cd7e
SC
15666if test "${wx_cv_gccversion+set}" = set; then
15667 echo $ECHO_N "(cached) $ECHO_C" >&6
15668else
15669
391a765e
VS
15670 if test "$cross_compiling" = yes; then
15671 wx_cv_gccversion="EMX2"
15672
15673else
15674 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
15675/* confdefs.h. */
15676_ACEOF
15677cat confdefs.h >>conftest.$ac_ext
15678cat >>conftest.$ac_ext <<_ACEOF
15679/* end confdefs.h. */
15680
391a765e 15681 #include <stdio.h>
a848cd7e 15682
391a765e
VS
15683 int main()
15684 {
15685 FILE *f=fopen("conftestval", "w");
15686 if (!f) exit(1);
15687 fprintf(f,
a848cd7e 15688 #if (__GNUC__ < 3)
391a765e
VS
15689 "EMX2"
15690 #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
15691 "EMX3"
15692 #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2)
15693 "Innotek5"
15694 #else
15695 "Innotek6"
a848cd7e 15696 #endif
391a765e
VS
15697 );
15698 exit(0);
15699 }
a848cd7e 15700
a848cd7e 15701_ACEOF
391a765e
VS
15702rm -f conftest$ac_exeext
15703if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15704 (eval $ac_link) 2>&5
ac1cb8d3
VS
15705 ac_status=$?
15706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
391a765e 15707 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
a848cd7e
SC
15708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15709 (eval $ac_try) 2>&5
15710 ac_status=$?
15711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15712 (exit $ac_status); }; }; then
391a765e 15713 wx_cv_gccversion=`cat conftestval`
a848cd7e 15714else
391a765e
VS
15715 echo "$as_me: program exited with status $ac_status" >&5
15716echo "$as_me: failed program was:" >&5
a848cd7e
SC
15717sed 's/^/| /' conftest.$ac_ext >&5
15718
391a765e
VS
15719( exit $ac_status )
15720wx_cv_gccversion="EMX2"
a848cd7e 15721fi
391a765e 15722rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 15723fi
a848cd7e
SC
15724
15725fi
15726echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
15727echo "${ECHO_T}$wx_cv_gccversion" >&6
6ba87b06
SN
15728 ac_ext=cc
15729ac_cpp='$CXXCPP $CPPFLAGS'
15730ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15731ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15732ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15733
391a765e 15734 if test "$wx_cv_gccversion" = "EMX2"; then
a848cd7e
SC
15735 LIBS="$LIBS -lstdcpp"
15736 LDFLAGS="$LDFLAGS -Zsysv-signals"
15737 else
391a765e 15738 if test "$wx_cv_gccversion" = "EMX3"; then
ddd14b14 15739 LIBS="$LIBS -lstdcxx -lgcc"
a848cd7e
SC
15740 LDFLAGS="$LDFLAGS -Zsysv-signals"
15741 else
15742 LIBS="$LIBS -lstdc++"
15743 fi
15744 fi
94acd38e
DE
15745 if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then
15746 { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5
15747echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;}
15748 wxUSE_OMF=yes
2da0c077 15749 enable_omf=yes
a848cd7e
SC
15750 fi
15751 ;;
15752 *)
15753
95986553 15754 echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
a848cd7e
SC
15755echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6
15756if test "${ac_cv_string_strcasecmp+set}" = set; then
15757 echo $ECHO_N "(cached) $ECHO_C" >&6
15758else
15759
15760 cat >conftest.$ac_ext <<_ACEOF
15761/* confdefs.h. */
15762_ACEOF
15763cat confdefs.h >>conftest.$ac_ext
15764cat >>conftest.$ac_ext <<_ACEOF
15765/* end confdefs.h. */
15766
15767 #include <string.h>
15768
15769int
15770main ()
15771{
15772
15773 strcasecmp("foo", "bar");
15774
15775 ;
15776 return 0;
15777}
15778_ACEOF
15779rm -f conftest.$ac_objext conftest$ac_exeext
15780if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 15781 (eval $ac_link) 2>conftest.er1
a848cd7e 15782 ac_status=$?
ac1cb8d3
VS
15783 grep -v '^ *+' conftest.er1 >conftest.err
15784 rm -f conftest.er1
15785 cat conftest.err >&5
a848cd7e
SC
15786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15787 (exit $ac_status); } &&
c9a66001 15788 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15790 (eval $ac_try) 2>&5
15791 ac_status=$?
15792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15793 (exit $ac_status); }; } &&
15794 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
15795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15796 (eval $ac_try) 2>&5
15797 ac_status=$?
15798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15799 (exit $ac_status); }; }; then
15800 ac_cv_string_strcasecmp=yes
15801else
15802 echo "$as_me: failed program was:" >&5
15803sed 's/^/| /' conftest.$ac_ext >&5
15804
15805ac_cv_string_strcasecmp=no
15806
15807fi
ac1cb8d3
VS
15808rm -f conftest.err conftest.$ac_objext \
15809 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
15810
15811fi
15812echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
15813echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6
15814
15815 if test x"$ac_cv_string_strcasecmp" = "xyes"; then
15816 cat >>confdefs.h <<\_ACEOF
15817#define HAVE_STRCASECMP_IN_STRING_H 1
15818_ACEOF
15819
15820 else
15821 echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
15822echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6
15823if test "${ac_cv_strings_strcasecmp+set}" = set; then
15824 echo $ECHO_N "(cached) $ECHO_C" >&6
15825else
15826
15827 cat >conftest.$ac_ext <<_ACEOF
15828/* confdefs.h. */
15829_ACEOF
15830cat confdefs.h >>conftest.$ac_ext
15831cat >>conftest.$ac_ext <<_ACEOF
15832/* end confdefs.h. */
15833
15834 #include <strings.h>
15835
15836int
15837main ()
15838{
15839
15840 strcasecmp("foo", "bar");
15841
15842 ;
15843 return 0;
15844}
15845_ACEOF
15846rm -f conftest.$ac_objext conftest$ac_exeext
15847if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 15848 (eval $ac_link) 2>conftest.er1
a848cd7e 15849 ac_status=$?
ac1cb8d3
VS
15850 grep -v '^ *+' conftest.er1 >conftest.err
15851 rm -f conftest.er1
15852 cat conftest.err >&5
a848cd7e
SC
15853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15854 (exit $ac_status); } &&
c9a66001 15855 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15857 (eval $ac_try) 2>&5
15858 ac_status=$?
15859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15860 (exit $ac_status); }; } &&
15861 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
15862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15863 (eval $ac_try) 2>&5
15864 ac_status=$?
15865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15866 (exit $ac_status); }; }; then
15867 ac_cv_strings_strcasecmp=yes
15868else
15869 echo "$as_me: failed program was:" >&5
15870sed 's/^/| /' conftest.$ac_ext >&5
15871
15872ac_cv_strings_strcasecmp=no
15873
15874fi
ac1cb8d3
VS
15875rm -f conftest.err conftest.$ac_objext \
15876 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
15877
15878fi
15879echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
15880echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6
15881
0c3c69fc 15882 if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
a848cd7e
SC
15883 cat >>confdefs.h <<\_ACEOF
15884#define HAVE_STRCASECMP_IN_STRINGS_H 1
15885_ACEOF
15886
15887 else
15888 { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
15889echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
15890 { (exit 1); exit 1; }; }
15891 fi
15892 fi
15893
a848cd7e
SC
15894 ;;
15895esac
15896
15897
5d7b7554
VZ
15898ac_ext=cc
15899ac_cpp='$CXXCPP $CPPFLAGS'
15900ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15901ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15902ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15903echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
15904echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
15905if test -z "$CXXCPP"; then
15906 if test "${ac_cv_prog_CXXCPP+set}" = set; then
15907 echo $ECHO_N "(cached) $ECHO_C" >&6
15908else
15909 # Double quotes because CXXCPP needs to be expanded
15910 for CXXCPP in "$CXX -E" "/lib/cpp"
15911 do
15912 ac_preproc_ok=false
15913for ac_cxx_preproc_warn_flag in '' yes
15914do
15915 # Use a header file that comes with gcc, so configuring glibc
15916 # with a fresh cross-compiler works.
15917 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15918 # <limits.h> exists even on freestanding compilers.
15919 # On the NeXT, cc -E runs the code through the compiler's parser,
15920 # not just through cpp. "Syntax error" is here to catch this case.
15921 cat >conftest.$ac_ext <<_ACEOF
15922/* confdefs.h. */
15923_ACEOF
15924cat confdefs.h >>conftest.$ac_ext
15925cat >>conftest.$ac_ext <<_ACEOF
15926/* end confdefs.h. */
15927#ifdef __STDC__
15928# include <limits.h>
15929#else
15930# include <assert.h>
15931#endif
15932 Syntax error
15933_ACEOF
15934if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15935 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15936 ac_status=$?
15937 grep -v '^ *+' conftest.er1 >conftest.err
15938 rm -f conftest.er1
15939 cat conftest.err >&5
15940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15941 (exit $ac_status); } >/dev/null; then
15942 if test -s conftest.err; then
15943 ac_cpp_err=$ac_cxx_preproc_warn_flag
15944 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15945 else
15946 ac_cpp_err=
15947 fi
15948else
15949 ac_cpp_err=yes
15950fi
15951if test -z "$ac_cpp_err"; then
15952 :
15953else
15954 echo "$as_me: failed program was:" >&5
15955sed 's/^/| /' conftest.$ac_ext >&5
15956
15957 # Broken: fails on valid input.
15958continue
15959fi
15960rm -f conftest.err conftest.$ac_ext
15961
15962 # OK, works on sane cases. Now check whether non-existent headers
15963 # can be detected and how.
15964 cat >conftest.$ac_ext <<_ACEOF
15965/* confdefs.h. */
15966_ACEOF
15967cat confdefs.h >>conftest.$ac_ext
15968cat >>conftest.$ac_ext <<_ACEOF
15969/* end confdefs.h. */
15970#include <ac_nonexistent.h>
15971_ACEOF
15972if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15973 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15974 ac_status=$?
15975 grep -v '^ *+' conftest.er1 >conftest.err
15976 rm -f conftest.er1
15977 cat conftest.err >&5
15978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15979 (exit $ac_status); } >/dev/null; then
15980 if test -s conftest.err; then
15981 ac_cpp_err=$ac_cxx_preproc_warn_flag
15982 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15983 else
15984 ac_cpp_err=
15985 fi
15986else
15987 ac_cpp_err=yes
15988fi
15989if test -z "$ac_cpp_err"; then
15990 # Broken: success on invalid input.
15991continue
15992else
15993 echo "$as_me: failed program was:" >&5
15994sed 's/^/| /' conftest.$ac_ext >&5
15995
15996 # Passes both tests.
15997ac_preproc_ok=:
15998break
15999fi
16000rm -f conftest.err conftest.$ac_ext
16001
16002done
16003# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16004rm -f conftest.err conftest.$ac_ext
16005if $ac_preproc_ok; then
16006 break
16007fi
16008
16009 done
16010 ac_cv_prog_CXXCPP=$CXXCPP
16011
16012fi
16013 CXXCPP=$ac_cv_prog_CXXCPP
16014else
16015 ac_cv_prog_CXXCPP=$CXXCPP
16016fi
16017echo "$as_me:$LINENO: result: $CXXCPP" >&5
16018echo "${ECHO_T}$CXXCPP" >&6
16019ac_preproc_ok=false
16020for ac_cxx_preproc_warn_flag in '' yes
16021do
16022 # Use a header file that comes with gcc, so configuring glibc
16023 # with a fresh cross-compiler works.
16024 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16025 # <limits.h> exists even on freestanding compilers.
16026 # On the NeXT, cc -E runs the code through the compiler's parser,
16027 # not just through cpp. "Syntax error" is here to catch this case.
16028 cat >conftest.$ac_ext <<_ACEOF
16029/* confdefs.h. */
16030_ACEOF
16031cat confdefs.h >>conftest.$ac_ext
16032cat >>conftest.$ac_ext <<_ACEOF
16033/* end confdefs.h. */
16034#ifdef __STDC__
16035# include <limits.h>
16036#else
16037# include <assert.h>
16038#endif
16039 Syntax error
16040_ACEOF
16041if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16042 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16043 ac_status=$?
16044 grep -v '^ *+' conftest.er1 >conftest.err
16045 rm -f conftest.er1
16046 cat conftest.err >&5
16047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16048 (exit $ac_status); } >/dev/null; then
16049 if test -s conftest.err; then
16050 ac_cpp_err=$ac_cxx_preproc_warn_flag
16051 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
16052 else
16053 ac_cpp_err=
16054 fi
16055else
16056 ac_cpp_err=yes
16057fi
16058if test -z "$ac_cpp_err"; then
16059 :
16060else
16061 echo "$as_me: failed program was:" >&5
16062sed 's/^/| /' conftest.$ac_ext >&5
16063
16064 # Broken: fails on valid input.
16065continue
16066fi
16067rm -f conftest.err conftest.$ac_ext
16068
16069 # OK, works on sane cases. Now check whether non-existent headers
16070 # can be detected and how.
16071 cat >conftest.$ac_ext <<_ACEOF
16072/* confdefs.h. */
16073_ACEOF
16074cat confdefs.h >>conftest.$ac_ext
16075cat >>conftest.$ac_ext <<_ACEOF
16076/* end confdefs.h. */
16077#include <ac_nonexistent.h>
16078_ACEOF
16079if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16080 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16081 ac_status=$?
16082 grep -v '^ *+' conftest.er1 >conftest.err
16083 rm -f conftest.er1
16084 cat conftest.err >&5
16085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16086 (exit $ac_status); } >/dev/null; then
16087 if test -s conftest.err; then
16088 ac_cpp_err=$ac_cxx_preproc_warn_flag
16089 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
16090 else
16091 ac_cpp_err=
16092 fi
16093else
16094 ac_cpp_err=yes
16095fi
16096if test -z "$ac_cpp_err"; then
16097 # Broken: success on invalid input.
16098continue
16099else
16100 echo "$as_me: failed program was:" >&5
16101sed 's/^/| /' conftest.$ac_ext >&5
16102
16103 # Passes both tests.
16104ac_preproc_ok=:
16105break
16106fi
16107rm -f conftest.err conftest.$ac_ext
16108
16109done
16110# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16111rm -f conftest.err conftest.$ac_ext
16112if $ac_preproc_ok; then
16113 :
16114else
16115 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
16116See \`config.log' for more details." >&5
16117echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
16118See \`config.log' for more details." >&2;}
16119 { (exit 1); exit 1; }; }
16120fi
16121
16122ac_ext=cc
16123ac_cpp='$CXXCPP $CPPFLAGS'
16124ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16125ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16126ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16127
16128
a848cd7e
SC
16129echo "$as_me:$LINENO: checking for ANSI C header files" >&5
16130echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
16131if test "${ac_cv_header_stdc+set}" = set; then
16132 echo $ECHO_N "(cached) $ECHO_C" >&6
16133else
16134 cat >conftest.$ac_ext <<_ACEOF
16135/* confdefs.h. */
16136_ACEOF
16137cat confdefs.h >>conftest.$ac_ext
16138cat >>conftest.$ac_ext <<_ACEOF
16139/* end confdefs.h. */
16140#include <stdlib.h>
16141#include <stdarg.h>
16142#include <string.h>
16143#include <float.h>
16144
16145int
16146main ()
16147{
16148
16149 ;
16150 return 0;
16151}
16152_ACEOF
16153rm -f conftest.$ac_objext
16154if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16155 (eval $ac_compile) 2>conftest.er1
a848cd7e 16156 ac_status=$?
ac1cb8d3
VS
16157 grep -v '^ *+' conftest.er1 >conftest.err
16158 rm -f conftest.er1
16159 cat conftest.err >&5
a848cd7e
SC
16160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16161 (exit $ac_status); } &&
c9a66001 16162 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16164 (eval $ac_try) 2>&5
16165 ac_status=$?
16166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16167 (exit $ac_status); }; } &&
16168 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16170 (eval $ac_try) 2>&5
16171 ac_status=$?
16172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16173 (exit $ac_status); }; }; then
16174 ac_cv_header_stdc=yes
16175else
16176 echo "$as_me: failed program was:" >&5
16177sed 's/^/| /' conftest.$ac_ext >&5
16178
16179ac_cv_header_stdc=no
16180fi
ac1cb8d3 16181rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16182
16183if test $ac_cv_header_stdc = yes; then
16184 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16185 cat >conftest.$ac_ext <<_ACEOF
16186/* confdefs.h. */
16187_ACEOF
16188cat confdefs.h >>conftest.$ac_ext
16189cat >>conftest.$ac_ext <<_ACEOF
16190/* end confdefs.h. */
16191#include <string.h>
16192
16193_ACEOF
16194if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16195 $EGREP "memchr" >/dev/null 2>&1; then
16196 :
16197else
16198 ac_cv_header_stdc=no
16199fi
16200rm -f conftest*
16201
16202fi
16203
16204if test $ac_cv_header_stdc = yes; then
16205 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16206 cat >conftest.$ac_ext <<_ACEOF
16207/* confdefs.h. */
16208_ACEOF
16209cat confdefs.h >>conftest.$ac_ext
16210cat >>conftest.$ac_ext <<_ACEOF
16211/* end confdefs.h. */
16212#include <stdlib.h>
16213
16214_ACEOF
16215if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16216 $EGREP "free" >/dev/null 2>&1; then
16217 :
16218else
16219 ac_cv_header_stdc=no
16220fi
16221rm -f conftest*
16222
16223fi
16224
16225if test $ac_cv_header_stdc = yes; then
16226 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16227 if test "$cross_compiling" = yes; then
16228 :
16229else
16230 cat >conftest.$ac_ext <<_ACEOF
16231/* confdefs.h. */
16232_ACEOF
16233cat confdefs.h >>conftest.$ac_ext
16234cat >>conftest.$ac_ext <<_ACEOF
16235/* end confdefs.h. */
16236#include <ctype.h>
16237#if ((' ' & 0x0FF) == 0x020)
16238# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16239# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16240#else
16241# define ISLOWER(c) \
ac1cb8d3
VS
16242 (('a' <= (c) && (c) <= 'i') \
16243 || ('j' <= (c) && (c) <= 'r') \
16244 || ('s' <= (c) && (c) <= 'z'))
a848cd7e
SC
16245# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
16246#endif
16247
16248#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16249int
16250main ()
16251{
16252 int i;
16253 for (i = 0; i < 256; i++)
16254 if (XOR (islower (i), ISLOWER (i))
ac1cb8d3 16255 || toupper (i) != TOUPPER (i))
a848cd7e
SC
16256 exit(2);
16257 exit (0);
16258}
16259_ACEOF
16260rm -f conftest$ac_exeext
16261if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16262 (eval $ac_link) 2>&5
16263 ac_status=$?
16264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16265 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16267 (eval $ac_try) 2>&5
16268 ac_status=$?
16269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16270 (exit $ac_status); }; }; then
16271 :
16272else
16273 echo "$as_me: program exited with status $ac_status" >&5
16274echo "$as_me: failed program was:" >&5
16275sed 's/^/| /' conftest.$ac_ext >&5
16276
16277( exit $ac_status )
16278ac_cv_header_stdc=no
16279fi
ac1cb8d3 16280rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16281fi
16282fi
16283fi
16284echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
16285echo "${ECHO_T}$ac_cv_header_stdc" >&6
16286if test $ac_cv_header_stdc = yes; then
16287
16288cat >>confdefs.h <<\_ACEOF
16289#define STDC_HEADERS 1
16290_ACEOF
16291
16292fi
16293
16294# On IRIX 5.3, sys/types and inttypes.h are conflicting.
16295
16296
16297
16298
16299
16300
16301
16302
16303
16304for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
ac1cb8d3 16305 inttypes.h stdint.h unistd.h
a848cd7e
SC
16306do
16307as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16308echo "$as_me:$LINENO: checking for $ac_header" >&5
16309echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16310if eval "test \"\${$as_ac_Header+set}\" = set"; then
16311 echo $ECHO_N "(cached) $ECHO_C" >&6
16312else
16313 cat >conftest.$ac_ext <<_ACEOF
16314/* confdefs.h. */
16315_ACEOF
16316cat confdefs.h >>conftest.$ac_ext
16317cat >>conftest.$ac_ext <<_ACEOF
16318/* end confdefs.h. */
16319$ac_includes_default
16320
16321#include <$ac_header>
16322_ACEOF
16323rm -f conftest.$ac_objext
16324if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16325 (eval $ac_compile) 2>conftest.er1
a848cd7e 16326 ac_status=$?
ac1cb8d3
VS
16327 grep -v '^ *+' conftest.er1 >conftest.err
16328 rm -f conftest.er1
16329 cat conftest.err >&5
a848cd7e
SC
16330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16331 (exit $ac_status); } &&
c9a66001 16332 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16334 (eval $ac_try) 2>&5
16335 ac_status=$?
16336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16337 (exit $ac_status); }; } &&
16338 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16340 (eval $ac_try) 2>&5
16341 ac_status=$?
16342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16343 (exit $ac_status); }; }; then
16344 eval "$as_ac_Header=yes"
16345else
16346 echo "$as_me: failed program was:" >&5
16347sed 's/^/| /' conftest.$ac_ext >&5
16348
16349eval "$as_ac_Header=no"
16350fi
ac1cb8d3 16351rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16352fi
16353echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16354echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16355if test `eval echo '${'$as_ac_Header'}'` = yes; then
16356 cat >>confdefs.h <<_ACEOF
16357#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16358_ACEOF
16359
16360fi
16361
16362done
16363
16364
16365
16366for ac_header in stdlib.h
16367do
16368as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16369if eval "test \"\${$as_ac_Header+set}\" = set"; then
16370 echo "$as_me:$LINENO: checking for $ac_header" >&5
16371echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16372if eval "test \"\${$as_ac_Header+set}\" = set"; then
16373 echo $ECHO_N "(cached) $ECHO_C" >&6
16374fi
16375echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16376echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16377else
16378 # Is the header compilable?
16379echo "$as_me:$LINENO: checking $ac_header usability" >&5
16380echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16381cat >conftest.$ac_ext <<_ACEOF
16382/* confdefs.h. */
16383_ACEOF
16384cat confdefs.h >>conftest.$ac_ext
16385cat >>conftest.$ac_ext <<_ACEOF
16386/* end confdefs.h. */
16387$ac_includes_default
16388#include <$ac_header>
16389_ACEOF
16390rm -f conftest.$ac_objext
16391if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16392 (eval $ac_compile) 2>conftest.er1
a848cd7e 16393 ac_status=$?
ac1cb8d3
VS
16394 grep -v '^ *+' conftest.er1 >conftest.err
16395 rm -f conftest.er1
16396 cat conftest.err >&5
a848cd7e
SC
16397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16398 (exit $ac_status); } &&
c9a66001 16399 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16401 (eval $ac_try) 2>&5
16402 ac_status=$?
16403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16404 (exit $ac_status); }; } &&
16405 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16407 (eval $ac_try) 2>&5
16408 ac_status=$?
16409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16410 (exit $ac_status); }; }; then
16411 ac_header_compiler=yes
16412else
16413 echo "$as_me: failed program was:" >&5
16414sed 's/^/| /' conftest.$ac_ext >&5
16415
16416ac_header_compiler=no
16417fi
ac1cb8d3 16418rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16419echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16420echo "${ECHO_T}$ac_header_compiler" >&6
16421
16422# Is the header present?
16423echo "$as_me:$LINENO: checking $ac_header presence" >&5
16424echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16425cat >conftest.$ac_ext <<_ACEOF
16426/* confdefs.h. */
16427_ACEOF
16428cat confdefs.h >>conftest.$ac_ext
16429cat >>conftest.$ac_ext <<_ACEOF
16430/* end confdefs.h. */
16431#include <$ac_header>
16432_ACEOF
16433if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16434 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16435 ac_status=$?
16436 grep -v '^ *+' conftest.er1 >conftest.err
16437 rm -f conftest.er1
16438 cat conftest.err >&5
16439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16440 (exit $ac_status); } >/dev/null; then
16441 if test -s conftest.err; then
5d7b7554
VZ
16442 ac_cpp_err=$ac_cxx_preproc_warn_flag
16443 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
16444 else
16445 ac_cpp_err=
16446 fi
16447else
16448 ac_cpp_err=yes
16449fi
16450if test -z "$ac_cpp_err"; then
16451 ac_header_preproc=yes
16452else
16453 echo "$as_me: failed program was:" >&5
16454sed 's/^/| /' conftest.$ac_ext >&5
16455
16456 ac_header_preproc=no
16457fi
16458rm -f conftest.err conftest.$ac_ext
16459echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16460echo "${ECHO_T}$ac_header_preproc" >&6
16461
16462# So? What about this header?
5d7b7554 16463case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 16464 yes:no: )
a848cd7e
SC
16465 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16466echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16467 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16468echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16469 ac_header_preproc=yes
a848cd7e 16470 ;;
ac1cb8d3 16471 no:yes:* )
a848cd7e
SC
16472 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16473echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16474 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16475echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16476 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16477echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16478 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16479echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16480 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16481echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16482 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16483echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16484 (
16485 cat <<\_ASBOX
ac1cb8d3
VS
16486## ----------------------------------------- ##
16487## Report this to wx-dev@lists.wxwidgets.org ##
16488## ----------------------------------------- ##
a848cd7e
SC
16489_ASBOX
16490 ) |
16491 sed "s/^/$as_me: WARNING: /" >&2
16492 ;;
16493esac
16494echo "$as_me:$LINENO: checking for $ac_header" >&5
16495echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16496if eval "test \"\${$as_ac_Header+set}\" = set"; then
16497 echo $ECHO_N "(cached) $ECHO_C" >&6
16498else
ac1cb8d3 16499 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16500fi
16501echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16502echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16503
16504fi
16505if test `eval echo '${'$as_ac_Header'}'` = yes; then
16506 cat >>confdefs.h <<_ACEOF
16507#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16508_ACEOF
16509
16510fi
16511
16512done
16513
16514
16515for ac_header in malloc.h
16516do
16517as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16518if eval "test \"\${$as_ac_Header+set}\" = set"; then
16519 echo "$as_me:$LINENO: checking for $ac_header" >&5
16520echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16521if eval "test \"\${$as_ac_Header+set}\" = set"; then
16522 echo $ECHO_N "(cached) $ECHO_C" >&6
16523fi
16524echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16525echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16526else
16527 # Is the header compilable?
16528echo "$as_me:$LINENO: checking $ac_header usability" >&5
16529echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16530cat >conftest.$ac_ext <<_ACEOF
16531/* confdefs.h. */
16532_ACEOF
16533cat confdefs.h >>conftest.$ac_ext
16534cat >>conftest.$ac_ext <<_ACEOF
16535/* end confdefs.h. */
16536$ac_includes_default
16537#include <$ac_header>
16538_ACEOF
16539rm -f conftest.$ac_objext
16540if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16541 (eval $ac_compile) 2>conftest.er1
a848cd7e 16542 ac_status=$?
ac1cb8d3
VS
16543 grep -v '^ *+' conftest.er1 >conftest.err
16544 rm -f conftest.er1
16545 cat conftest.err >&5
a848cd7e
SC
16546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16547 (exit $ac_status); } &&
c9a66001 16548 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16550 (eval $ac_try) 2>&5
16551 ac_status=$?
16552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16553 (exit $ac_status); }; } &&
16554 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16556 (eval $ac_try) 2>&5
16557 ac_status=$?
16558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16559 (exit $ac_status); }; }; then
16560 ac_header_compiler=yes
16561else
16562 echo "$as_me: failed program was:" >&5
16563sed 's/^/| /' conftest.$ac_ext >&5
16564
16565ac_header_compiler=no
16566fi
ac1cb8d3 16567rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16568echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16569echo "${ECHO_T}$ac_header_compiler" >&6
16570
16571# Is the header present?
16572echo "$as_me:$LINENO: checking $ac_header presence" >&5
16573echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16574cat >conftest.$ac_ext <<_ACEOF
16575/* confdefs.h. */
16576_ACEOF
16577cat confdefs.h >>conftest.$ac_ext
16578cat >>conftest.$ac_ext <<_ACEOF
16579/* end confdefs.h. */
16580#include <$ac_header>
16581_ACEOF
16582if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16583 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16584 ac_status=$?
16585 grep -v '^ *+' conftest.er1 >conftest.err
16586 rm -f conftest.er1
16587 cat conftest.err >&5
16588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16589 (exit $ac_status); } >/dev/null; then
16590 if test -s conftest.err; then
5d7b7554
VZ
16591 ac_cpp_err=$ac_cxx_preproc_warn_flag
16592 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
16593 else
16594 ac_cpp_err=
16595 fi
16596else
16597 ac_cpp_err=yes
16598fi
16599if test -z "$ac_cpp_err"; then
16600 ac_header_preproc=yes
16601else
16602 echo "$as_me: failed program was:" >&5
16603sed 's/^/| /' conftest.$ac_ext >&5
16604
16605 ac_header_preproc=no
16606fi
16607rm -f conftest.err conftest.$ac_ext
16608echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16609echo "${ECHO_T}$ac_header_preproc" >&6
16610
16611# So? What about this header?
5d7b7554 16612case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 16613 yes:no: )
a848cd7e
SC
16614 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16615echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16616 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16617echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16618 ac_header_preproc=yes
a848cd7e 16619 ;;
ac1cb8d3 16620 no:yes:* )
a848cd7e
SC
16621 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16622echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16623 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16624echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16625 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16626echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16627 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16628echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16629 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16630echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16631 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16632echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16633 (
16634 cat <<\_ASBOX
ac1cb8d3
VS
16635## ----------------------------------------- ##
16636## Report this to wx-dev@lists.wxwidgets.org ##
16637## ----------------------------------------- ##
a848cd7e
SC
16638_ASBOX
16639 ) |
16640 sed "s/^/$as_me: WARNING: /" >&2
16641 ;;
16642esac
16643echo "$as_me:$LINENO: checking for $ac_header" >&5
16644echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16645if eval "test \"\${$as_ac_Header+set}\" = set"; then
16646 echo $ECHO_N "(cached) $ECHO_C" >&6
16647else
ac1cb8d3 16648 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16649fi
16650echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16651echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16652
16653fi
16654if test `eval echo '${'$as_ac_Header'}'` = yes; then
16655 cat >>confdefs.h <<_ACEOF
16656#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16657_ACEOF
16658
16659fi
16660
16661done
16662
16663
16664for ac_header in unistd.h
16665do
16666as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16667if eval "test \"\${$as_ac_Header+set}\" = set"; then
16668 echo "$as_me:$LINENO: checking for $ac_header" >&5
16669echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16670if eval "test \"\${$as_ac_Header+set}\" = set"; then
16671 echo $ECHO_N "(cached) $ECHO_C" >&6
16672fi
16673echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16674echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16675else
16676 # Is the header compilable?
16677echo "$as_me:$LINENO: checking $ac_header usability" >&5
16678echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16679cat >conftest.$ac_ext <<_ACEOF
16680/* confdefs.h. */
16681_ACEOF
16682cat confdefs.h >>conftest.$ac_ext
16683cat >>conftest.$ac_ext <<_ACEOF
16684/* end confdefs.h. */
16685$ac_includes_default
16686#include <$ac_header>
16687_ACEOF
16688rm -f conftest.$ac_objext
16689if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16690 (eval $ac_compile) 2>conftest.er1
a848cd7e 16691 ac_status=$?
ac1cb8d3
VS
16692 grep -v '^ *+' conftest.er1 >conftest.err
16693 rm -f conftest.er1
16694 cat conftest.err >&5
a848cd7e
SC
16695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16696 (exit $ac_status); } &&
c9a66001 16697 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16699 (eval $ac_try) 2>&5
16700 ac_status=$?
16701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16702 (exit $ac_status); }; } &&
16703 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16705 (eval $ac_try) 2>&5
16706 ac_status=$?
16707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16708 (exit $ac_status); }; }; then
16709 ac_header_compiler=yes
16710else
16711 echo "$as_me: failed program was:" >&5
16712sed 's/^/| /' conftest.$ac_ext >&5
16713
16714ac_header_compiler=no
16715fi
ac1cb8d3 16716rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16717echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16718echo "${ECHO_T}$ac_header_compiler" >&6
16719
16720# Is the header present?
16721echo "$as_me:$LINENO: checking $ac_header presence" >&5
16722echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16723cat >conftest.$ac_ext <<_ACEOF
16724/* confdefs.h. */
16725_ACEOF
16726cat confdefs.h >>conftest.$ac_ext
16727cat >>conftest.$ac_ext <<_ACEOF
16728/* end confdefs.h. */
16729#include <$ac_header>
16730_ACEOF
16731if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16732 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16733 ac_status=$?
16734 grep -v '^ *+' conftest.er1 >conftest.err
16735 rm -f conftest.er1
16736 cat conftest.err >&5
16737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16738 (exit $ac_status); } >/dev/null; then
16739 if test -s conftest.err; then
5d7b7554
VZ
16740 ac_cpp_err=$ac_cxx_preproc_warn_flag
16741 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
16742 else
16743 ac_cpp_err=
16744 fi
16745else
16746 ac_cpp_err=yes
16747fi
16748if test -z "$ac_cpp_err"; then
16749 ac_header_preproc=yes
16750else
16751 echo "$as_me: failed program was:" >&5
16752sed 's/^/| /' conftest.$ac_ext >&5
16753
16754 ac_header_preproc=no
16755fi
16756rm -f conftest.err conftest.$ac_ext
16757echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16758echo "${ECHO_T}$ac_header_preproc" >&6
16759
16760# So? What about this header?
5d7b7554 16761case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 16762 yes:no: )
a848cd7e
SC
16763 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16764echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16765 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16766echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16767 ac_header_preproc=yes
a848cd7e 16768 ;;
ac1cb8d3 16769 no:yes:* )
a848cd7e
SC
16770 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16771echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16772 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16773echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16774 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16775echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16776 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16777echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16778 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16779echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16780 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16781echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16782 (
16783 cat <<\_ASBOX
ac1cb8d3
VS
16784## ----------------------------------------- ##
16785## Report this to wx-dev@lists.wxwidgets.org ##
16786## ----------------------------------------- ##
a848cd7e
SC
16787_ASBOX
16788 ) |
16789 sed "s/^/$as_me: WARNING: /" >&2
16790 ;;
16791esac
16792echo "$as_me:$LINENO: checking for $ac_header" >&5
16793echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16794if eval "test \"\${$as_ac_Header+set}\" = set"; then
16795 echo $ECHO_N "(cached) $ECHO_C" >&6
16796else
ac1cb8d3 16797 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16798fi
16799echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16800echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16801
16802fi
16803if test `eval echo '${'$as_ac_Header'}'` = yes; then
16804 cat >>confdefs.h <<_ACEOF
16805#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16806_ACEOF
16807
16808fi
16809
16810done
16811
16812
16813for ac_header in wchar.h
16814do
16815as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16816if eval "test \"\${$as_ac_Header+set}\" = set"; then
16817 echo "$as_me:$LINENO: checking for $ac_header" >&5
16818echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16819if eval "test \"\${$as_ac_Header+set}\" = set"; then
16820 echo $ECHO_N "(cached) $ECHO_C" >&6
16821fi
16822echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16823echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16824else
16825 # Is the header compilable?
16826echo "$as_me:$LINENO: checking $ac_header usability" >&5
16827echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16828cat >conftest.$ac_ext <<_ACEOF
16829/* confdefs.h. */
16830_ACEOF
16831cat confdefs.h >>conftest.$ac_ext
16832cat >>conftest.$ac_ext <<_ACEOF
16833/* end confdefs.h. */
16834$ac_includes_default
16835#include <$ac_header>
16836_ACEOF
16837rm -f conftest.$ac_objext
16838if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16839 (eval $ac_compile) 2>conftest.er1
a848cd7e 16840 ac_status=$?
ac1cb8d3
VS
16841 grep -v '^ *+' conftest.er1 >conftest.err
16842 rm -f conftest.er1
16843 cat conftest.err >&5
a848cd7e
SC
16844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16845 (exit $ac_status); } &&
c9a66001 16846 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16848 (eval $ac_try) 2>&5
16849 ac_status=$?
16850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16851 (exit $ac_status); }; } &&
16852 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16854 (eval $ac_try) 2>&5
16855 ac_status=$?
16856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16857 (exit $ac_status); }; }; then
16858 ac_header_compiler=yes
16859else
16860 echo "$as_me: failed program was:" >&5
16861sed 's/^/| /' conftest.$ac_ext >&5
16862
16863ac_header_compiler=no
16864fi
ac1cb8d3 16865rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16866echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16867echo "${ECHO_T}$ac_header_compiler" >&6
16868
16869# Is the header present?
16870echo "$as_me:$LINENO: checking $ac_header presence" >&5
16871echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16872cat >conftest.$ac_ext <<_ACEOF
16873/* confdefs.h. */
16874_ACEOF
16875cat confdefs.h >>conftest.$ac_ext
16876cat >>conftest.$ac_ext <<_ACEOF
16877/* end confdefs.h. */
16878#include <$ac_header>
16879_ACEOF
16880if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16881 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16882 ac_status=$?
16883 grep -v '^ *+' conftest.er1 >conftest.err
16884 rm -f conftest.er1
16885 cat conftest.err >&5
16886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16887 (exit $ac_status); } >/dev/null; then
16888 if test -s conftest.err; then
5d7b7554
VZ
16889 ac_cpp_err=$ac_cxx_preproc_warn_flag
16890 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
16891 else
16892 ac_cpp_err=
16893 fi
16894else
16895 ac_cpp_err=yes
16896fi
16897if test -z "$ac_cpp_err"; then
16898 ac_header_preproc=yes
16899else
16900 echo "$as_me: failed program was:" >&5
16901sed 's/^/| /' conftest.$ac_ext >&5
16902
16903 ac_header_preproc=no
16904fi
16905rm -f conftest.err conftest.$ac_ext
16906echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16907echo "${ECHO_T}$ac_header_preproc" >&6
16908
16909# So? What about this header?
5d7b7554 16910case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 16911 yes:no: )
a848cd7e
SC
16912 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16913echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16914 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16915echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16916 ac_header_preproc=yes
a848cd7e 16917 ;;
ac1cb8d3 16918 no:yes:* )
a848cd7e
SC
16919 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16920echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16921 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16922echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16923 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16924echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16925 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16926echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16927 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16928echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16929 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16930echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16931 (
16932 cat <<\_ASBOX
ac1cb8d3
VS
16933## ----------------------------------------- ##
16934## Report this to wx-dev@lists.wxwidgets.org ##
16935## ----------------------------------------- ##
a848cd7e
SC
16936_ASBOX
16937 ) |
16938 sed "s/^/$as_me: WARNING: /" >&2
16939 ;;
16940esac
16941echo "$as_me:$LINENO: checking for $ac_header" >&5
16942echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16943if eval "test \"\${$as_ac_Header+set}\" = set"; then
16944 echo $ECHO_N "(cached) $ECHO_C" >&6
16945else
ac1cb8d3 16946 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16947fi
16948echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16949echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16950
16951fi
16952if test `eval echo '${'$as_ac_Header'}'` = yes; then
16953 cat >>confdefs.h <<_ACEOF
16954#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16955_ACEOF
16956
16957fi
16958
16959done
16960
16961
16962if test "$ac_cv_header_wchar_h" != "yes"; then
16963
16964for ac_header in wcstr.h
16965do
16966as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16967if eval "test \"\${$as_ac_Header+set}\" = set"; then
16968 echo "$as_me:$LINENO: checking for $ac_header" >&5
16969echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16970if eval "test \"\${$as_ac_Header+set}\" = set"; then
16971 echo $ECHO_N "(cached) $ECHO_C" >&6
16972fi
16973echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16974echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16975else
16976 # Is the header compilable?
16977echo "$as_me:$LINENO: checking $ac_header usability" >&5
16978echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16979cat >conftest.$ac_ext <<_ACEOF
16980/* confdefs.h. */
16981_ACEOF
16982cat confdefs.h >>conftest.$ac_ext
16983cat >>conftest.$ac_ext <<_ACEOF
16984/* end confdefs.h. */
16985$ac_includes_default
16986#include <$ac_header>
16987_ACEOF
16988rm -f conftest.$ac_objext
16989if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16990 (eval $ac_compile) 2>conftest.er1
a848cd7e 16991 ac_status=$?
ac1cb8d3
VS
16992 grep -v '^ *+' conftest.er1 >conftest.err
16993 rm -f conftest.er1
16994 cat conftest.err >&5
a848cd7e
SC
16995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16996 (exit $ac_status); } &&
c9a66001 16997 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16999 (eval $ac_try) 2>&5
17000 ac_status=$?
17001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17002 (exit $ac_status); }; } &&
17003 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17005 (eval $ac_try) 2>&5
17006 ac_status=$?
17007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17008 (exit $ac_status); }; }; then
17009 ac_header_compiler=yes
17010else
17011 echo "$as_me: failed program was:" >&5
17012sed 's/^/| /' conftest.$ac_ext >&5
17013
17014ac_header_compiler=no
17015fi
ac1cb8d3 17016rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17017echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17018echo "${ECHO_T}$ac_header_compiler" >&6
17019
17020# Is the header present?
17021echo "$as_me:$LINENO: checking $ac_header presence" >&5
17022echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17023cat >conftest.$ac_ext <<_ACEOF
17024/* confdefs.h. */
17025_ACEOF
17026cat confdefs.h >>conftest.$ac_ext
17027cat >>conftest.$ac_ext <<_ACEOF
17028/* end confdefs.h. */
17029#include <$ac_header>
17030_ACEOF
17031if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17032 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17033 ac_status=$?
17034 grep -v '^ *+' conftest.er1 >conftest.err
17035 rm -f conftest.er1
17036 cat conftest.err >&5
17037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17038 (exit $ac_status); } >/dev/null; then
17039 if test -s conftest.err; then
5d7b7554
VZ
17040 ac_cpp_err=$ac_cxx_preproc_warn_flag
17041 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
17042 else
17043 ac_cpp_err=
17044 fi
17045else
17046 ac_cpp_err=yes
17047fi
17048if test -z "$ac_cpp_err"; then
17049 ac_header_preproc=yes
17050else
17051 echo "$as_me: failed program was:" >&5
17052sed 's/^/| /' conftest.$ac_ext >&5
17053
17054 ac_header_preproc=no
17055fi
17056rm -f conftest.err conftest.$ac_ext
17057echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17058echo "${ECHO_T}$ac_header_preproc" >&6
17059
17060# So? What about this header?
5d7b7554 17061case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 17062 yes:no: )
a848cd7e
SC
17063 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17064echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
17065 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17066echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17067 ac_header_preproc=yes
a848cd7e 17068 ;;
ac1cb8d3 17069 no:yes:* )
a848cd7e
SC
17070 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17071echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
17072 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17073echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17074 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17075echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17076 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17077echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
17078 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17079echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
17080 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17081echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
17082 (
17083 cat <<\_ASBOX
ac1cb8d3
VS
17084## ----------------------------------------- ##
17085## Report this to wx-dev@lists.wxwidgets.org ##
17086## ----------------------------------------- ##
a848cd7e
SC
17087_ASBOX
17088 ) |
17089 sed "s/^/$as_me: WARNING: /" >&2
17090 ;;
17091esac
17092echo "$as_me:$LINENO: checking for $ac_header" >&5
17093echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17094if eval "test \"\${$as_ac_Header+set}\" = set"; then
17095 echo $ECHO_N "(cached) $ECHO_C" >&6
17096else
ac1cb8d3 17097 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
17098fi
17099echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17100echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17101
17102fi
17103if test `eval echo '${'$as_ac_Header'}'` = yes; then
17104 cat >>confdefs.h <<_ACEOF
17105#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17106_ACEOF
17107
17108fi
17109
17110done
17111
17112fi
17113
17114
17115for ac_header in fnmatch.h
17116do
17117as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17118if eval "test \"\${$as_ac_Header+set}\" = set"; then
17119 echo "$as_me:$LINENO: checking for $ac_header" >&5
17120echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17121if eval "test \"\${$as_ac_Header+set}\" = set"; then
17122 echo $ECHO_N "(cached) $ECHO_C" >&6
17123fi
17124echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17125echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17126else
17127 # Is the header compilable?
17128echo "$as_me:$LINENO: checking $ac_header usability" >&5
17129echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17130cat >conftest.$ac_ext <<_ACEOF
17131/* confdefs.h. */
17132_ACEOF
17133cat confdefs.h >>conftest.$ac_ext
17134cat >>conftest.$ac_ext <<_ACEOF
17135/* end confdefs.h. */
17136$ac_includes_default
17137#include <$ac_header>
17138_ACEOF
17139rm -f conftest.$ac_objext
17140if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17141 (eval $ac_compile) 2>conftest.er1
a848cd7e 17142 ac_status=$?
ac1cb8d3
VS
17143 grep -v '^ *+' conftest.er1 >conftest.err
17144 rm -f conftest.er1
17145 cat conftest.err >&5
a848cd7e
SC
17146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17147 (exit $ac_status); } &&
c9a66001 17148 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17150 (eval $ac_try) 2>&5
17151 ac_status=$?
17152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17153 (exit $ac_status); }; } &&
17154 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17156 (eval $ac_try) 2>&5
17157 ac_status=$?
17158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17159 (exit $ac_status); }; }; then
17160 ac_header_compiler=yes
17161else
17162 echo "$as_me: failed program was:" >&5
17163sed 's/^/| /' conftest.$ac_ext >&5
17164
17165ac_header_compiler=no
17166fi
ac1cb8d3 17167rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17168echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17169echo "${ECHO_T}$ac_header_compiler" >&6
17170
17171# Is the header present?
17172echo "$as_me:$LINENO: checking $ac_header presence" >&5
17173echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17174cat >conftest.$ac_ext <<_ACEOF
17175/* confdefs.h. */
17176_ACEOF
17177cat confdefs.h >>conftest.$ac_ext
17178cat >>conftest.$ac_ext <<_ACEOF
17179/* end confdefs.h. */
17180#include <$ac_header>
17181_ACEOF
17182if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17183 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17184 ac_status=$?
17185 grep -v '^ *+' conftest.er1 >conftest.err
17186 rm -f conftest.er1
17187 cat conftest.err >&5
17188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17189 (exit $ac_status); } >/dev/null; then
17190 if test -s conftest.err; then
5d7b7554
VZ
17191 ac_cpp_err=$ac_cxx_preproc_warn_flag
17192 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
17193 else
17194 ac_cpp_err=
17195 fi
17196else
17197 ac_cpp_err=yes
17198fi
17199if test -z "$ac_cpp_err"; then
17200 ac_header_preproc=yes
17201else
17202 echo "$as_me: failed program was:" >&5
17203sed 's/^/| /' conftest.$ac_ext >&5
17204
17205 ac_header_preproc=no
17206fi
17207rm -f conftest.err conftest.$ac_ext
17208echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17209echo "${ECHO_T}$ac_header_preproc" >&6
17210
17211# So? What about this header?
5d7b7554 17212case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 17213 yes:no: )
a848cd7e
SC
17214 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17215echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
17216 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17217echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17218 ac_header_preproc=yes
a848cd7e 17219 ;;
ac1cb8d3 17220 no:yes:* )
a848cd7e
SC
17221 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17222echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
17223 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17224echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17225 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17226echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17227 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17228echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
17229 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17230echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
17231 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17232echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
17233 (
17234 cat <<\_ASBOX
ac1cb8d3
VS
17235## ----------------------------------------- ##
17236## Report this to wx-dev@lists.wxwidgets.org ##
17237## ----------------------------------------- ##
a848cd7e
SC
17238_ASBOX
17239 ) |
17240 sed "s/^/$as_me: WARNING: /" >&2
17241 ;;
17242esac
17243echo "$as_me:$LINENO: checking for $ac_header" >&5
17244echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17245if eval "test \"\${$as_ac_Header+set}\" = set"; then
17246 echo $ECHO_N "(cached) $ECHO_C" >&6
17247else
ac1cb8d3 17248 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
17249fi
17250echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17251echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17252
17253fi
17254if test `eval echo '${'$as_ac_Header'}'` = yes; then
17255 cat >>confdefs.h <<_ACEOF
17256#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17257_ACEOF
17258
17259fi
17260
17261done
17262
17263
a848cd7e
SC
17264
17265for ac_header in langinfo.h
17266do
17267as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17268if eval "test \"\${$as_ac_Header+set}\" = set"; then
17269 echo "$as_me:$LINENO: checking for $ac_header" >&5
17270echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17271if eval "test \"\${$as_ac_Header+set}\" = set"; then
17272 echo $ECHO_N "(cached) $ECHO_C" >&6
17273fi
17274echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17275echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17276else
17277 # Is the header compilable?
17278echo "$as_me:$LINENO: checking $ac_header usability" >&5
17279echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17280cat >conftest.$ac_ext <<_ACEOF
17281/* confdefs.h. */
17282_ACEOF
17283cat confdefs.h >>conftest.$ac_ext
17284cat >>conftest.$ac_ext <<_ACEOF
17285/* end confdefs.h. */
17286$ac_includes_default
17287#include <$ac_header>
17288_ACEOF
17289rm -f conftest.$ac_objext
17290if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17291 (eval $ac_compile) 2>conftest.er1
a848cd7e 17292 ac_status=$?
ac1cb8d3
VS
17293 grep -v '^ *+' conftest.er1 >conftest.err
17294 rm -f conftest.er1
17295 cat conftest.err >&5
a848cd7e
SC
17296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17297 (exit $ac_status); } &&
c9a66001 17298 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17300 (eval $ac_try) 2>&5
17301 ac_status=$?
17302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17303 (exit $ac_status); }; } &&
17304 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17306 (eval $ac_try) 2>&5
17307 ac_status=$?
17308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17309 (exit $ac_status); }; }; then
17310 ac_header_compiler=yes
17311else
17312 echo "$as_me: failed program was:" >&5
17313sed 's/^/| /' conftest.$ac_ext >&5
17314
17315ac_header_compiler=no
17316fi
ac1cb8d3 17317rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17318echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17319echo "${ECHO_T}$ac_header_compiler" >&6
17320
17321# Is the header present?
17322echo "$as_me:$LINENO: checking $ac_header presence" >&5
17323echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17324cat >conftest.$ac_ext <<_ACEOF
17325/* confdefs.h. */
17326_ACEOF
17327cat confdefs.h >>conftest.$ac_ext
17328cat >>conftest.$ac_ext <<_ACEOF
17329/* end confdefs.h. */
17330#include <$ac_header>
17331_ACEOF
17332if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17333 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17334 ac_status=$?
17335 grep -v '^ *+' conftest.er1 >conftest.err
17336 rm -f conftest.er1
17337 cat conftest.err >&5
17338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17339 (exit $ac_status); } >/dev/null; then
17340 if test -s conftest.err; then
5d7b7554
VZ
17341 ac_cpp_err=$ac_cxx_preproc_warn_flag
17342 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
17343 else
17344 ac_cpp_err=
17345 fi
17346else
17347 ac_cpp_err=yes
17348fi
17349if test -z "$ac_cpp_err"; then
17350 ac_header_preproc=yes
17351else
17352 echo "$as_me: failed program was:" >&5
17353sed 's/^/| /' conftest.$ac_ext >&5
17354
17355 ac_header_preproc=no
17356fi
17357rm -f conftest.err conftest.$ac_ext
17358echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17359echo "${ECHO_T}$ac_header_preproc" >&6
17360
17361# So? What about this header?
5d7b7554 17362case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 17363 yes:no: )
a848cd7e
SC
17364 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17365echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
17366 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17367echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17368 ac_header_preproc=yes
a848cd7e 17369 ;;
ac1cb8d3 17370 no:yes:* )
a848cd7e
SC
17371 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17372echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
17373 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17374echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17375 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17376echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17377 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17378echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
17379 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17380echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
17381 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17382echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
17383 (
17384 cat <<\_ASBOX
ac1cb8d3
VS
17385## ----------------------------------------- ##
17386## Report this to wx-dev@lists.wxwidgets.org ##
17387## ----------------------------------------- ##
a848cd7e
SC
17388_ASBOX
17389 ) |
17390 sed "s/^/$as_me: WARNING: /" >&2
17391 ;;
17392esac
17393echo "$as_me:$LINENO: checking for $ac_header" >&5
17394echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17395if eval "test \"\${$as_ac_Header+set}\" = set"; then
17396 echo $ECHO_N "(cached) $ECHO_C" >&6
17397else
ac1cb8d3 17398 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
17399fi
17400echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17401echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17402
17403fi
17404if test `eval echo '${'$as_ac_Header'}'` = yes; then
17405 cat >>confdefs.h <<_ACEOF
17406#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17407_ACEOF
17408
17409fi
17410
17411done
17412
17413
17414case "${host}" in
17415 *-pc-os2_emx | *-pc-os2-emx )
391a765e
VS
17416 if test $ac_cv_header_langinfo_h = "yes" \
17417 -a \( "$wx_cv_gccversion" = "EMX2" \
17418 -o "$wx_cv_gccversion" = "EMX3" \
17419 -o "$wx_cv_gccversion" = "Innotek5" \); then
a848cd7e
SC
17420 LIBS="$LIBS -lintl"
17421 fi
17422 ;;
17423esac
17424
bc023abb
MW
17425if test "$USE_UNIX" = 1 ; then
17426
17427for ac_header in sys/select.h
17428do
17429as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17430if eval "test \"\${$as_ac_Header+set}\" = set"; then
17431 echo "$as_me:$LINENO: checking for $ac_header" >&5
17432echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17433if eval "test \"\${$as_ac_Header+set}\" = set"; then
17434 echo $ECHO_N "(cached) $ECHO_C" >&6
17435fi
17436echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17437echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17438else
17439 # Is the header compilable?
17440echo "$as_me:$LINENO: checking $ac_header usability" >&5
17441echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17442cat >conftest.$ac_ext <<_ACEOF
17443/* confdefs.h. */
17444_ACEOF
17445cat confdefs.h >>conftest.$ac_ext
17446cat >>conftest.$ac_ext <<_ACEOF
17447/* end confdefs.h. */
17448$ac_includes_default
17449#include <$ac_header>
17450_ACEOF
17451rm -f conftest.$ac_objext
17452if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17453 (eval $ac_compile) 2>conftest.er1
17454 ac_status=$?
17455 grep -v '^ *+' conftest.er1 >conftest.err
17456 rm -f conftest.er1
17457 cat conftest.err >&5
17458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17459 (exit $ac_status); } &&
17460 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17462 (eval $ac_try) 2>&5
17463 ac_status=$?
17464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17465 (exit $ac_status); }; } &&
17466 { ac_try='test -s conftest.$ac_objext'
17467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17468 (eval $ac_try) 2>&5
17469 ac_status=$?
17470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17471 (exit $ac_status); }; }; then
17472 ac_header_compiler=yes
17473else
17474 echo "$as_me: failed program was:" >&5
17475sed 's/^/| /' conftest.$ac_ext >&5
17476
17477ac_header_compiler=no
17478fi
17479rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17480echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17481echo "${ECHO_T}$ac_header_compiler" >&6
17482
17483# Is the header present?
17484echo "$as_me:$LINENO: checking $ac_header presence" >&5
17485echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17486cat >conftest.$ac_ext <<_ACEOF
17487/* confdefs.h. */
17488_ACEOF
17489cat confdefs.h >>conftest.$ac_ext
17490cat >>conftest.$ac_ext <<_ACEOF
17491/* end confdefs.h. */
17492#include <$ac_header>
17493_ACEOF
17494if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17495 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17496 ac_status=$?
17497 grep -v '^ *+' conftest.er1 >conftest.err
17498 rm -f conftest.er1
17499 cat conftest.err >&5
17500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17501 (exit $ac_status); } >/dev/null; then
17502 if test -s conftest.err; then
17503 ac_cpp_err=$ac_cxx_preproc_warn_flag
17504 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
17505 else
17506 ac_cpp_err=
17507 fi
17508else
17509 ac_cpp_err=yes
17510fi
17511if test -z "$ac_cpp_err"; then
17512 ac_header_preproc=yes
17513else
17514 echo "$as_me: failed program was:" >&5
17515sed 's/^/| /' conftest.$ac_ext >&5
17516
17517 ac_header_preproc=no
17518fi
17519rm -f conftest.err conftest.$ac_ext
17520echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17521echo "${ECHO_T}$ac_header_preproc" >&6
17522
17523# So? What about this header?
17524case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
17525 yes:no: )
17526 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17527echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17528 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17529echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17530 ac_header_preproc=yes
17531 ;;
17532 no:yes:* )
17533 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17534echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17535 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17536echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17537 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17538echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17539 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17540echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17541 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17542echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17543 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17544echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17545 (
17546 cat <<\_ASBOX
17547## ----------------------------------------- ##
17548## Report this to wx-dev@lists.wxwidgets.org ##
17549## ----------------------------------------- ##
17550_ASBOX
17551 ) |
17552 sed "s/^/$as_me: WARNING: /" >&2
17553 ;;
17554esac
17555echo "$as_me:$LINENO: checking for $ac_header" >&5
17556echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17557if eval "test \"\${$as_ac_Header+set}\" = set"; then
17558 echo $ECHO_N "(cached) $ECHO_C" >&6
17559else
17560 eval "$as_ac_Header=\$ac_header_preproc"
17561fi
17562echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17563echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17564
17565fi
17566if test `eval echo '${'$as_ac_Header'}'` = yes; then
17567 cat >>confdefs.h <<_ACEOF
17568#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17569_ACEOF
17570
17571fi
17572
17573done
17574
17575fi
17576
a848cd7e
SC
17577
17578echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
17579echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
17580if test "${ac_cv_c_const+set}" = set; then
17581 echo $ECHO_N "(cached) $ECHO_C" >&6
17582else
17583 cat >conftest.$ac_ext <<_ACEOF
17584/* confdefs.h. */
17585_ACEOF
17586cat confdefs.h >>conftest.$ac_ext
17587cat >>conftest.$ac_ext <<_ACEOF
17588/* end confdefs.h. */
17589
17590int
17591main ()
17592{
17593/* FIXME: Include the comments suggested by Paul. */
17594#ifndef __cplusplus
17595 /* Ultrix mips cc rejects this. */
17596 typedef int charset[2];
17597 const charset x;
17598 /* SunOS 4.1.1 cc rejects this. */
17599 char const *const *ccp;
17600 char **p;
17601 /* NEC SVR4.0.2 mips cc rejects this. */
17602 struct point {int x, y;};
17603 static struct point const zero = {0,0};
17604 /* AIX XL C 1.02.0.0 rejects this.
17605 It does not let you subtract one const X* pointer from another in
17606 an arm of an if-expression whose if-part is not a constant
17607 expression */
17608 const char *g = "string";
17609 ccp = &g + (g ? g-g : 0);
17610 /* HPUX 7.0 cc rejects these. */
17611 ++ccp;
17612 p = (char**) ccp;
17613 ccp = (char const *const *) p;
17614 { /* SCO 3.2v4 cc rejects this. */
17615 char *t;
17616 char const *s = 0 ? (char *) 0 : (char const *) 0;
17617
17618 *t++ = 0;
17619 }
17620 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
17621 int x[] = {25, 17};
17622 const int *foo = &x[0];
17623 ++foo;
17624 }
17625 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17626 typedef const int *iptr;
17627 iptr p = 0;
17628 ++p;
17629 }
17630 { /* AIX XL C 1.02.0.0 rejects this saying
17631 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17632 struct s { int j; const int *ap[3]; };
17633 struct s *b; b->j = 5;
17634 }
17635 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17636 const int foo = 10;
17637 }
17638#endif
17639
17640 ;
17641 return 0;
17642}
17643_ACEOF
17644rm -f conftest.$ac_objext
17645if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17646 (eval $ac_compile) 2>conftest.er1
a848cd7e 17647 ac_status=$?
ac1cb8d3
VS
17648 grep -v '^ *+' conftest.er1 >conftest.err
17649 rm -f conftest.er1
17650 cat conftest.err >&5
a848cd7e
SC
17651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17652 (exit $ac_status); } &&
c9a66001 17653 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17655 (eval $ac_try) 2>&5
17656 ac_status=$?
17657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17658 (exit $ac_status); }; } &&
17659 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17661 (eval $ac_try) 2>&5
17662 ac_status=$?
17663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17664 (exit $ac_status); }; }; then
17665 ac_cv_c_const=yes
17666else
17667 echo "$as_me: failed program was:" >&5
17668sed 's/^/| /' conftest.$ac_ext >&5
17669
17670ac_cv_c_const=no
17671fi
ac1cb8d3 17672rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17673fi
17674echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
17675echo "${ECHO_T}$ac_cv_c_const" >&6
17676if test $ac_cv_c_const = no; then
17677
17678cat >>confdefs.h <<\_ACEOF
17679#define const
17680_ACEOF
17681
17682fi
17683
17684echo "$as_me:$LINENO: checking for inline" >&5
17685echo $ECHO_N "checking for inline... $ECHO_C" >&6
17686if test "${ac_cv_c_inline+set}" = set; then
17687 echo $ECHO_N "(cached) $ECHO_C" >&6
17688else
17689 ac_cv_c_inline=no
17690for ac_kw in inline __inline__ __inline; do
17691 cat >conftest.$ac_ext <<_ACEOF
17692/* confdefs.h. */
17693_ACEOF
17694cat confdefs.h >>conftest.$ac_ext
17695cat >>conftest.$ac_ext <<_ACEOF
17696/* end confdefs.h. */
17697#ifndef __cplusplus
17698typedef int foo_t;
17699static $ac_kw foo_t static_foo () {return 0; }
17700$ac_kw foo_t foo () {return 0; }
17701#endif
17702
17703_ACEOF
17704rm -f conftest.$ac_objext
17705if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17706 (eval $ac_compile) 2>conftest.er1
a848cd7e 17707 ac_status=$?
ac1cb8d3
VS
17708 grep -v '^ *+' conftest.er1 >conftest.err
17709 rm -f conftest.er1
17710 cat conftest.err >&5
a848cd7e
SC
17711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17712 (exit $ac_status); } &&
c9a66001 17713 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17715 (eval $ac_try) 2>&5
17716 ac_status=$?
17717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17718 (exit $ac_status); }; } &&
17719 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17721 (eval $ac_try) 2>&5
17722 ac_status=$?
17723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17724 (exit $ac_status); }; }; then
17725 ac_cv_c_inline=$ac_kw; break
17726else
17727 echo "$as_me: failed program was:" >&5
17728sed 's/^/| /' conftest.$ac_ext >&5
17729
17730fi
ac1cb8d3 17731rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17732done
17733
17734fi
17735echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
17736echo "${ECHO_T}$ac_cv_c_inline" >&6
ac1cb8d3
VS
17737
17738
a848cd7e
SC
17739case $ac_cv_c_inline in
17740 inline | yes) ;;
ac1cb8d3
VS
17741 *)
17742 case $ac_cv_c_inline in
17743 no) ac_val=;;
17744 *) ac_val=$ac_cv_c_inline;;
17745 esac
17746 cat >>confdefs.h <<_ACEOF
17747#ifndef __cplusplus
17748#define inline $ac_val
17749#endif
de59c161 17750_ACEOF
ac1cb8d3 17751 ;;
a848cd7e
SC
17752esac
17753
17754
17755echo "$as_me:$LINENO: checking for char" >&5
17756echo $ECHO_N "checking for char... $ECHO_C" >&6
17757if test "${ac_cv_type_char+set}" = set; then
17758 echo $ECHO_N "(cached) $ECHO_C" >&6
17759else
17760 cat >conftest.$ac_ext <<_ACEOF
17761/* confdefs.h. */
17762_ACEOF
17763cat confdefs.h >>conftest.$ac_ext
17764cat >>conftest.$ac_ext <<_ACEOF
17765/* end confdefs.h. */
17766$ac_includes_default
17767int
17768main ()
17769{
17770if ((char *) 0)
17771 return 0;
17772if (sizeof (char))
17773 return 0;
17774 ;
17775 return 0;
17776}
17777_ACEOF
17778rm -f conftest.$ac_objext
17779if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17780 (eval $ac_compile) 2>conftest.er1
a848cd7e 17781 ac_status=$?
ac1cb8d3
VS
17782 grep -v '^ *+' conftest.er1 >conftest.err
17783 rm -f conftest.er1
17784 cat conftest.err >&5
a848cd7e
SC
17785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17786 (exit $ac_status); } &&
c9a66001 17787 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17789 (eval $ac_try) 2>&5
17790 ac_status=$?
17791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17792 (exit $ac_status); }; } &&
17793 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17795 (eval $ac_try) 2>&5
17796 ac_status=$?
17797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17798 (exit $ac_status); }; }; then
17799 ac_cv_type_char=yes
17800else
17801 echo "$as_me: failed program was:" >&5
17802sed 's/^/| /' conftest.$ac_ext >&5
17803
17804ac_cv_type_char=no
17805fi
ac1cb8d3 17806rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17807fi
17808echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
17809echo "${ECHO_T}$ac_cv_type_char" >&6
17810
17811echo "$as_me:$LINENO: checking size of char" >&5
17812echo $ECHO_N "checking size of char... $ECHO_C" >&6
17813if test "${ac_cv_sizeof_char+set}" = set; then
17814 echo $ECHO_N "(cached) $ECHO_C" >&6
17815else
17816 if test "$ac_cv_type_char" = yes; then
17817 # The cast to unsigned long works around a bug in the HP C Compiler
17818 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17819 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17820 # This bug is HP SR number 8606223364.
17821 if test "$cross_compiling" = yes; then
17822 # Depending upon the size, compute the lo and hi bounds.
17823cat >conftest.$ac_ext <<_ACEOF
17824/* confdefs.h. */
17825_ACEOF
17826cat confdefs.h >>conftest.$ac_ext
17827cat >>conftest.$ac_ext <<_ACEOF
17828/* end confdefs.h. */
17829$ac_includes_default
17830int
17831main ()
17832{
17833static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
17834test_array [0] = 0
17835
17836 ;
17837 return 0;
17838}
17839_ACEOF
17840rm -f conftest.$ac_objext
17841if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17842 (eval $ac_compile) 2>conftest.er1
a848cd7e 17843 ac_status=$?
ac1cb8d3
VS
17844 grep -v '^ *+' conftest.er1 >conftest.err
17845 rm -f conftest.er1
17846 cat conftest.err >&5
a848cd7e
SC
17847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17848 (exit $ac_status); } &&
c9a66001 17849 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17851 (eval $ac_try) 2>&5
17852 ac_status=$?
17853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17854 (exit $ac_status); }; } &&
17855 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17857 (eval $ac_try) 2>&5
17858 ac_status=$?
17859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17860 (exit $ac_status); }; }; then
17861 ac_lo=0 ac_mid=0
17862 while :; do
17863 cat >conftest.$ac_ext <<_ACEOF
17864/* confdefs.h. */
17865_ACEOF
17866cat confdefs.h >>conftest.$ac_ext
17867cat >>conftest.$ac_ext <<_ACEOF
17868/* end confdefs.h. */
17869$ac_includes_default
17870int
17871main ()
17872{
17873static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
17874test_array [0] = 0
17875
17876 ;
17877 return 0;
17878}
17879_ACEOF
17880rm -f conftest.$ac_objext
17881if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17882 (eval $ac_compile) 2>conftest.er1
a848cd7e 17883 ac_status=$?
ac1cb8d3
VS
17884 grep -v '^ *+' conftest.er1 >conftest.err
17885 rm -f conftest.er1
17886 cat conftest.err >&5
a848cd7e
SC
17887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17888 (exit $ac_status); } &&
c9a66001 17889 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17891 (eval $ac_try) 2>&5
17892 ac_status=$?
17893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17894 (exit $ac_status); }; } &&
17895 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17897 (eval $ac_try) 2>&5
17898 ac_status=$?
17899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17900 (exit $ac_status); }; }; then
17901 ac_hi=$ac_mid; break
17902else
17903 echo "$as_me: failed program was:" >&5
17904sed 's/^/| /' conftest.$ac_ext >&5
17905
17906ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17907 if test $ac_lo -le $ac_mid; then
17908 ac_lo= ac_hi=
17909 break
17910 fi
17911 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17912fi
ac1cb8d3 17913rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17914 done
17915else
17916 echo "$as_me: failed program was:" >&5
17917sed 's/^/| /' conftest.$ac_ext >&5
17918
17919cat >conftest.$ac_ext <<_ACEOF
17920/* confdefs.h. */
17921_ACEOF
17922cat confdefs.h >>conftest.$ac_ext
17923cat >>conftest.$ac_ext <<_ACEOF
17924/* end confdefs.h. */
17925$ac_includes_default
17926int
17927main ()
17928{
17929static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
17930test_array [0] = 0
17931
17932 ;
17933 return 0;
17934}
17935_ACEOF
17936rm -f conftest.$ac_objext
17937if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17938 (eval $ac_compile) 2>conftest.er1
a848cd7e 17939 ac_status=$?
ac1cb8d3
VS
17940 grep -v '^ *+' conftest.er1 >conftest.err
17941 rm -f conftest.er1
17942 cat conftest.err >&5
a848cd7e
SC
17943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17944 (exit $ac_status); } &&
c9a66001 17945 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17947 (eval $ac_try) 2>&5
17948 ac_status=$?
17949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17950 (exit $ac_status); }; } &&
17951 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17953 (eval $ac_try) 2>&5
17954 ac_status=$?
17955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17956 (exit $ac_status); }; }; then
17957 ac_hi=-1 ac_mid=-1
17958 while :; do
17959 cat >conftest.$ac_ext <<_ACEOF
17960/* confdefs.h. */
17961_ACEOF
17962cat confdefs.h >>conftest.$ac_ext
17963cat >>conftest.$ac_ext <<_ACEOF
17964/* end confdefs.h. */
17965$ac_includes_default
17966int
17967main ()
17968{
17969static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
17970test_array [0] = 0
17971
17972 ;
17973 return 0;
17974}
17975_ACEOF
17976rm -f conftest.$ac_objext
17977if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17978 (eval $ac_compile) 2>conftest.er1
a848cd7e 17979 ac_status=$?
ac1cb8d3
VS
17980 grep -v '^ *+' conftest.er1 >conftest.err
17981 rm -f conftest.er1
17982 cat conftest.err >&5
a848cd7e
SC
17983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17984 (exit $ac_status); } &&
c9a66001 17985 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17987 (eval $ac_try) 2>&5
17988 ac_status=$?
17989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17990 (exit $ac_status); }; } &&
17991 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17993 (eval $ac_try) 2>&5
17994 ac_status=$?
17995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17996 (exit $ac_status); }; }; then
17997 ac_lo=$ac_mid; break
17998else
17999 echo "$as_me: failed program was:" >&5
18000sed 's/^/| /' conftest.$ac_ext >&5
18001
18002ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18003 if test $ac_mid -le $ac_hi; then
18004 ac_lo= ac_hi=
18005 break
18006 fi
18007 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18008fi
ac1cb8d3 18009rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18010 done
18011else
18012 echo "$as_me: failed program was:" >&5
18013sed 's/^/| /' conftest.$ac_ext >&5
18014
18015ac_lo= ac_hi=
18016fi
ac1cb8d3 18017rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18018fi
ac1cb8d3 18019rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18020# Binary search between lo and hi bounds.
18021while test "x$ac_lo" != "x$ac_hi"; do
18022 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18023 cat >conftest.$ac_ext <<_ACEOF
18024/* confdefs.h. */
18025_ACEOF
18026cat confdefs.h >>conftest.$ac_ext
18027cat >>conftest.$ac_ext <<_ACEOF
18028/* end confdefs.h. */
18029$ac_includes_default
18030int
18031main ()
18032{
18033static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
18034test_array [0] = 0
18035
18036 ;
18037 return 0;
18038}
18039_ACEOF
18040rm -f conftest.$ac_objext
18041if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18042 (eval $ac_compile) 2>conftest.er1
a848cd7e 18043 ac_status=$?
ac1cb8d3
VS
18044 grep -v '^ *+' conftest.er1 >conftest.err
18045 rm -f conftest.er1
18046 cat conftest.err >&5
a848cd7e
SC
18047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18048 (exit $ac_status); } &&
c9a66001 18049 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18051 (eval $ac_try) 2>&5
18052 ac_status=$?
18053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18054 (exit $ac_status); }; } &&
18055 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18057 (eval $ac_try) 2>&5
18058 ac_status=$?
18059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18060 (exit $ac_status); }; }; then
18061 ac_hi=$ac_mid
18062else
18063 echo "$as_me: failed program was:" >&5
18064sed 's/^/| /' conftest.$ac_ext >&5
18065
18066ac_lo=`expr '(' $ac_mid ')' + 1`
18067fi
ac1cb8d3 18068rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18069done
18070case $ac_lo in
18071?*) ac_cv_sizeof_char=$ac_lo;;
18072'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
18073See \`config.log' for more details." >&5
18074echo "$as_me: error: cannot compute sizeof (char), 77
18075See \`config.log' for more details." >&2;}
18076 { (exit 1); exit 1; }; } ;;
18077esac
18078else
18079 if test "$cross_compiling" = yes; then
c9a66001
VZ
18080 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18081echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
18082 { (exit 1); exit 1; }; }
18083else
18084 cat >conftest.$ac_ext <<_ACEOF
18085/* confdefs.h. */
18086_ACEOF
18087cat confdefs.h >>conftest.$ac_ext
18088cat >>conftest.$ac_ext <<_ACEOF
18089/* end confdefs.h. */
18090$ac_includes_default
18091long longval () { return (long) (sizeof (char)); }
18092unsigned long ulongval () { return (long) (sizeof (char)); }
18093#include <stdio.h>
18094#include <stdlib.h>
18095int
18096main ()
18097{
18098
18099 FILE *f = fopen ("conftest.val", "w");
18100 if (! f)
18101 exit (1);
18102 if (((long) (sizeof (char))) < 0)
18103 {
18104 long i = longval ();
18105 if (i != ((long) (sizeof (char))))
18106 exit (1);
18107 fprintf (f, "%ld\n", i);
18108 }
18109 else
18110 {
18111 unsigned long i = ulongval ();
18112 if (i != ((long) (sizeof (char))))
18113 exit (1);
18114 fprintf (f, "%lu\n", i);
18115 }
18116 exit (ferror (f) || fclose (f) != 0);
18117
18118 ;
18119 return 0;
18120}
18121_ACEOF
18122rm -f conftest$ac_exeext
18123if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18124 (eval $ac_link) 2>&5
18125 ac_status=$?
18126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18127 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18129 (eval $ac_try) 2>&5
18130 ac_status=$?
18131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18132 (exit $ac_status); }; }; then
18133 ac_cv_sizeof_char=`cat conftest.val`
18134else
18135 echo "$as_me: program exited with status $ac_status" >&5
18136echo "$as_me: failed program was:" >&5
18137sed 's/^/| /' conftest.$ac_ext >&5
18138
18139( exit $ac_status )
18140{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
18141See \`config.log' for more details." >&5
18142echo "$as_me: error: cannot compute sizeof (char), 77
18143See \`config.log' for more details." >&2;}
18144 { (exit 1); exit 1; }; }
18145fi
ac1cb8d3 18146rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18147fi
18148fi
18149rm -f conftest.val
18150else
18151 ac_cv_sizeof_char=0
18152fi
18153fi
18154echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
18155echo "${ECHO_T}$ac_cv_sizeof_char" >&6
18156cat >>confdefs.h <<_ACEOF
18157#define SIZEOF_CHAR $ac_cv_sizeof_char
18158_ACEOF
18159
18160
18161echo "$as_me:$LINENO: checking for short" >&5
18162echo $ECHO_N "checking for short... $ECHO_C" >&6
18163if test "${ac_cv_type_short+set}" = set; then
18164 echo $ECHO_N "(cached) $ECHO_C" >&6
18165else
18166 cat >conftest.$ac_ext <<_ACEOF
18167/* confdefs.h. */
18168_ACEOF
18169cat confdefs.h >>conftest.$ac_ext
18170cat >>conftest.$ac_ext <<_ACEOF
18171/* end confdefs.h. */
18172$ac_includes_default
18173int
18174main ()
18175{
18176if ((short *) 0)
18177 return 0;
18178if (sizeof (short))
18179 return 0;
18180 ;
18181 return 0;
18182}
18183_ACEOF
18184rm -f conftest.$ac_objext
18185if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18186 (eval $ac_compile) 2>conftest.er1
a848cd7e 18187 ac_status=$?
ac1cb8d3
VS
18188 grep -v '^ *+' conftest.er1 >conftest.err
18189 rm -f conftest.er1
18190 cat conftest.err >&5
a848cd7e
SC
18191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18192 (exit $ac_status); } &&
c9a66001 18193 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18195 (eval $ac_try) 2>&5
18196 ac_status=$?
18197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18198 (exit $ac_status); }; } &&
18199 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18201 (eval $ac_try) 2>&5
18202 ac_status=$?
18203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18204 (exit $ac_status); }; }; then
18205 ac_cv_type_short=yes
18206else
18207 echo "$as_me: failed program was:" >&5
18208sed 's/^/| /' conftest.$ac_ext >&5
18209
18210ac_cv_type_short=no
18211fi
ac1cb8d3 18212rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18213fi
18214echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
18215echo "${ECHO_T}$ac_cv_type_short" >&6
18216
18217echo "$as_me:$LINENO: checking size of short" >&5
18218echo $ECHO_N "checking size of short... $ECHO_C" >&6
18219if test "${ac_cv_sizeof_short+set}" = set; then
18220 echo $ECHO_N "(cached) $ECHO_C" >&6
18221else
18222 if test "$ac_cv_type_short" = yes; then
18223 # The cast to unsigned long works around a bug in the HP C Compiler
18224 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18225 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18226 # This bug is HP SR number 8606223364.
18227 if test "$cross_compiling" = yes; then
18228 # Depending upon the size, compute the lo and hi bounds.
18229cat >conftest.$ac_ext <<_ACEOF
18230/* confdefs.h. */
18231_ACEOF
18232cat confdefs.h >>conftest.$ac_ext
18233cat >>conftest.$ac_ext <<_ACEOF
18234/* end confdefs.h. */
18235$ac_includes_default
18236int
18237main ()
18238{
18239static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
18240test_array [0] = 0
18241
18242 ;
18243 return 0;
18244}
18245_ACEOF
18246rm -f conftest.$ac_objext
18247if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18248 (eval $ac_compile) 2>conftest.er1
a848cd7e 18249 ac_status=$?
ac1cb8d3
VS
18250 grep -v '^ *+' conftest.er1 >conftest.err
18251 rm -f conftest.er1
18252 cat conftest.err >&5
a848cd7e
SC
18253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18254 (exit $ac_status); } &&
c9a66001 18255 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18257 (eval $ac_try) 2>&5
18258 ac_status=$?
18259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18260 (exit $ac_status); }; } &&
18261 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18263 (eval $ac_try) 2>&5
18264 ac_status=$?
18265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18266 (exit $ac_status); }; }; then
18267 ac_lo=0 ac_mid=0
18268 while :; do
18269 cat >conftest.$ac_ext <<_ACEOF
18270/* confdefs.h. */
18271_ACEOF
18272cat confdefs.h >>conftest.$ac_ext
18273cat >>conftest.$ac_ext <<_ACEOF
18274/* end confdefs.h. */
18275$ac_includes_default
18276int
18277main ()
18278{
18279static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
18280test_array [0] = 0
18281
18282 ;
18283 return 0;
18284}
18285_ACEOF
18286rm -f conftest.$ac_objext
18287if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18288 (eval $ac_compile) 2>conftest.er1
a848cd7e 18289 ac_status=$?
ac1cb8d3
VS
18290 grep -v '^ *+' conftest.er1 >conftest.err
18291 rm -f conftest.er1
18292 cat conftest.err >&5
a848cd7e
SC
18293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18294 (exit $ac_status); } &&
c9a66001 18295 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18297 (eval $ac_try) 2>&5
18298 ac_status=$?
18299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18300 (exit $ac_status); }; } &&
18301 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18303 (eval $ac_try) 2>&5
18304 ac_status=$?
18305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18306 (exit $ac_status); }; }; then
18307 ac_hi=$ac_mid; break
18308else
18309 echo "$as_me: failed program was:" >&5
18310sed 's/^/| /' conftest.$ac_ext >&5
18311
18312ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18313 if test $ac_lo -le $ac_mid; then
18314 ac_lo= ac_hi=
18315 break
18316 fi
18317 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18318fi
ac1cb8d3 18319rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18320 done
18321else
18322 echo "$as_me: failed program was:" >&5
18323sed 's/^/| /' conftest.$ac_ext >&5
18324
18325cat >conftest.$ac_ext <<_ACEOF
18326/* confdefs.h. */
18327_ACEOF
18328cat confdefs.h >>conftest.$ac_ext
18329cat >>conftest.$ac_ext <<_ACEOF
18330/* end confdefs.h. */
18331$ac_includes_default
18332int
18333main ()
18334{
18335static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
18336test_array [0] = 0
18337
18338 ;
18339 return 0;
18340}
18341_ACEOF
18342rm -f conftest.$ac_objext
18343if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18344 (eval $ac_compile) 2>conftest.er1
a848cd7e 18345 ac_status=$?
ac1cb8d3
VS
18346 grep -v '^ *+' conftest.er1 >conftest.err
18347 rm -f conftest.er1
18348 cat conftest.err >&5
a848cd7e
SC
18349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18350 (exit $ac_status); } &&
c9a66001 18351 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18353 (eval $ac_try) 2>&5
18354 ac_status=$?
18355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18356 (exit $ac_status); }; } &&
18357 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18359 (eval $ac_try) 2>&5
18360 ac_status=$?
18361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18362 (exit $ac_status); }; }; then
18363 ac_hi=-1 ac_mid=-1
18364 while :; do
18365 cat >conftest.$ac_ext <<_ACEOF
18366/* confdefs.h. */
18367_ACEOF
18368cat confdefs.h >>conftest.$ac_ext
18369cat >>conftest.$ac_ext <<_ACEOF
18370/* end confdefs.h. */
18371$ac_includes_default
18372int
18373main ()
18374{
18375static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
18376test_array [0] = 0
18377
18378 ;
18379 return 0;
18380}
18381_ACEOF
18382rm -f conftest.$ac_objext
18383if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18384 (eval $ac_compile) 2>conftest.er1
a848cd7e 18385 ac_status=$?
ac1cb8d3
VS
18386 grep -v '^ *+' conftest.er1 >conftest.err
18387 rm -f conftest.er1
18388 cat conftest.err >&5
a848cd7e
SC
18389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18390 (exit $ac_status); } &&
c9a66001 18391 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18393 (eval $ac_try) 2>&5
18394 ac_status=$?
18395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18396 (exit $ac_status); }; } &&
18397 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18399 (eval $ac_try) 2>&5
18400 ac_status=$?
18401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18402 (exit $ac_status); }; }; then
18403 ac_lo=$ac_mid; break
18404else
18405 echo "$as_me: failed program was:" >&5
18406sed 's/^/| /' conftest.$ac_ext >&5
18407
18408ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18409 if test $ac_mid -le $ac_hi; then
18410 ac_lo= ac_hi=
18411 break
18412 fi
18413 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18414fi
ac1cb8d3 18415rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18416 done
18417else
18418 echo "$as_me: failed program was:" >&5
18419sed 's/^/| /' conftest.$ac_ext >&5
18420
18421ac_lo= ac_hi=
18422fi
ac1cb8d3 18423rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18424fi
ac1cb8d3 18425rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18426# Binary search between lo and hi bounds.
18427while test "x$ac_lo" != "x$ac_hi"; do
18428 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18429 cat >conftest.$ac_ext <<_ACEOF
18430/* confdefs.h. */
18431_ACEOF
18432cat confdefs.h >>conftest.$ac_ext
18433cat >>conftest.$ac_ext <<_ACEOF
18434/* end confdefs.h. */
18435$ac_includes_default
18436int
18437main ()
18438{
18439static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
18440test_array [0] = 0
18441
18442 ;
18443 return 0;
18444}
18445_ACEOF
18446rm -f conftest.$ac_objext
18447if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18448 (eval $ac_compile) 2>conftest.er1
a848cd7e 18449 ac_status=$?
ac1cb8d3
VS
18450 grep -v '^ *+' conftest.er1 >conftest.err
18451 rm -f conftest.er1
18452 cat conftest.err >&5
a848cd7e
SC
18453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18454 (exit $ac_status); } &&
c9a66001 18455 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18457 (eval $ac_try) 2>&5
18458 ac_status=$?
18459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18460 (exit $ac_status); }; } &&
18461 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18463 (eval $ac_try) 2>&5
18464 ac_status=$?
18465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18466 (exit $ac_status); }; }; then
18467 ac_hi=$ac_mid
18468else
18469 echo "$as_me: failed program was:" >&5
18470sed 's/^/| /' conftest.$ac_ext >&5
18471
18472ac_lo=`expr '(' $ac_mid ')' + 1`
18473fi
ac1cb8d3 18474rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18475done
18476case $ac_lo in
18477?*) ac_cv_sizeof_short=$ac_lo;;
18478'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
18479See \`config.log' for more details." >&5
18480echo "$as_me: error: cannot compute sizeof (short), 77
18481See \`config.log' for more details." >&2;}
18482 { (exit 1); exit 1; }; } ;;
18483esac
18484else
18485 if test "$cross_compiling" = yes; then
c9a66001
VZ
18486 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18487echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
18488 { (exit 1); exit 1; }; }
18489else
18490 cat >conftest.$ac_ext <<_ACEOF
18491/* confdefs.h. */
18492_ACEOF
18493cat confdefs.h >>conftest.$ac_ext
18494cat >>conftest.$ac_ext <<_ACEOF
18495/* end confdefs.h. */
18496$ac_includes_default
18497long longval () { return (long) (sizeof (short)); }
18498unsigned long ulongval () { return (long) (sizeof (short)); }
18499#include <stdio.h>
18500#include <stdlib.h>
18501int
18502main ()
18503{
18504
18505 FILE *f = fopen ("conftest.val", "w");
18506 if (! f)
18507 exit (1);
18508 if (((long) (sizeof (short))) < 0)
18509 {
18510 long i = longval ();
18511 if (i != ((long) (sizeof (short))))
18512 exit (1);
18513 fprintf (f, "%ld\n", i);
18514 }
18515 else
18516 {
18517 unsigned long i = ulongval ();
18518 if (i != ((long) (sizeof (short))))
18519 exit (1);
18520 fprintf (f, "%lu\n", i);
18521 }
18522 exit (ferror (f) || fclose (f) != 0);
18523
18524 ;
18525 return 0;
18526}
18527_ACEOF
18528rm -f conftest$ac_exeext
18529if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18530 (eval $ac_link) 2>&5
18531 ac_status=$?
18532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18533 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18535 (eval $ac_try) 2>&5
18536 ac_status=$?
18537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18538 (exit $ac_status); }; }; then
18539 ac_cv_sizeof_short=`cat conftest.val`
18540else
18541 echo "$as_me: program exited with status $ac_status" >&5
18542echo "$as_me: failed program was:" >&5
18543sed 's/^/| /' conftest.$ac_ext >&5
18544
18545( exit $ac_status )
18546{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
18547See \`config.log' for more details." >&5
18548echo "$as_me: error: cannot compute sizeof (short), 77
18549See \`config.log' for more details." >&2;}
18550 { (exit 1); exit 1; }; }
18551fi
ac1cb8d3 18552rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18553fi
18554fi
18555rm -f conftest.val
18556else
18557 ac_cv_sizeof_short=0
18558fi
18559fi
18560echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
18561echo "${ECHO_T}$ac_cv_sizeof_short" >&6
18562cat >>confdefs.h <<_ACEOF
18563#define SIZEOF_SHORT $ac_cv_sizeof_short
18564_ACEOF
18565
18566
18567echo "$as_me:$LINENO: checking for void *" >&5
18568echo $ECHO_N "checking for void *... $ECHO_C" >&6
18569if test "${ac_cv_type_void_p+set}" = set; then
18570 echo $ECHO_N "(cached) $ECHO_C" >&6
18571else
18572 cat >conftest.$ac_ext <<_ACEOF
18573/* confdefs.h. */
18574_ACEOF
18575cat confdefs.h >>conftest.$ac_ext
18576cat >>conftest.$ac_ext <<_ACEOF
18577/* end confdefs.h. */
18578$ac_includes_default
18579int
18580main ()
18581{
18582if ((void * *) 0)
18583 return 0;
18584if (sizeof (void *))
18585 return 0;
18586 ;
18587 return 0;
18588}
18589_ACEOF
18590rm -f conftest.$ac_objext
18591if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18592 (eval $ac_compile) 2>conftest.er1
a848cd7e 18593 ac_status=$?
ac1cb8d3
VS
18594 grep -v '^ *+' conftest.er1 >conftest.err
18595 rm -f conftest.er1
18596 cat conftest.err >&5
a848cd7e
SC
18597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18598 (exit $ac_status); } &&
c9a66001 18599 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18601 (eval $ac_try) 2>&5
18602 ac_status=$?
18603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18604 (exit $ac_status); }; } &&
18605 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18607 (eval $ac_try) 2>&5
18608 ac_status=$?
18609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18610 (exit $ac_status); }; }; then
18611 ac_cv_type_void_p=yes
18612else
18613 echo "$as_me: failed program was:" >&5
18614sed 's/^/| /' conftest.$ac_ext >&5
18615
18616ac_cv_type_void_p=no
18617fi
ac1cb8d3 18618rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18619fi
18620echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
18621echo "${ECHO_T}$ac_cv_type_void_p" >&6
18622
18623echo "$as_me:$LINENO: checking size of void *" >&5
18624echo $ECHO_N "checking size of void *... $ECHO_C" >&6
18625if test "${ac_cv_sizeof_void_p+set}" = set; then
18626 echo $ECHO_N "(cached) $ECHO_C" >&6
18627else
18628 if test "$ac_cv_type_void_p" = yes; then
18629 # The cast to unsigned long works around a bug in the HP C Compiler
18630 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18631 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18632 # This bug is HP SR number 8606223364.
18633 if test "$cross_compiling" = yes; then
18634 # Depending upon the size, compute the lo and hi bounds.
18635cat >conftest.$ac_ext <<_ACEOF
18636/* confdefs.h. */
18637_ACEOF
18638cat confdefs.h >>conftest.$ac_ext
18639cat >>conftest.$ac_ext <<_ACEOF
18640/* end confdefs.h. */
18641$ac_includes_default
18642int
18643main ()
18644{
18645static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
18646test_array [0] = 0
18647
18648 ;
18649 return 0;
18650}
18651_ACEOF
18652rm -f conftest.$ac_objext
18653if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18654 (eval $ac_compile) 2>conftest.er1
a848cd7e 18655 ac_status=$?
ac1cb8d3
VS
18656 grep -v '^ *+' conftest.er1 >conftest.err
18657 rm -f conftest.er1
18658 cat conftest.err >&5
a848cd7e
SC
18659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18660 (exit $ac_status); } &&
c9a66001 18661 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18663 (eval $ac_try) 2>&5
18664 ac_status=$?
18665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18666 (exit $ac_status); }; } &&
18667 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18669 (eval $ac_try) 2>&5
18670 ac_status=$?
18671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18672 (exit $ac_status); }; }; then
18673 ac_lo=0 ac_mid=0
18674 while :; do
18675 cat >conftest.$ac_ext <<_ACEOF
18676/* confdefs.h. */
18677_ACEOF
18678cat confdefs.h >>conftest.$ac_ext
18679cat >>conftest.$ac_ext <<_ACEOF
18680/* end confdefs.h. */
18681$ac_includes_default
18682int
18683main ()
18684{
18685static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
18686test_array [0] = 0
18687
18688 ;
18689 return 0;
18690}
18691_ACEOF
18692rm -f conftest.$ac_objext
18693if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18694 (eval $ac_compile) 2>conftest.er1
a848cd7e 18695 ac_status=$?
ac1cb8d3
VS
18696 grep -v '^ *+' conftest.er1 >conftest.err
18697 rm -f conftest.er1
18698 cat conftest.err >&5
a848cd7e
SC
18699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18700 (exit $ac_status); } &&
c9a66001 18701 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18703 (eval $ac_try) 2>&5
18704 ac_status=$?
18705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18706 (exit $ac_status); }; } &&
18707 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18709 (eval $ac_try) 2>&5
18710 ac_status=$?
18711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18712 (exit $ac_status); }; }; then
18713 ac_hi=$ac_mid; break
18714else
18715 echo "$as_me: failed program was:" >&5
18716sed 's/^/| /' conftest.$ac_ext >&5
18717
18718ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18719 if test $ac_lo -le $ac_mid; then
18720 ac_lo= ac_hi=
18721 break
18722 fi
18723 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18724fi
ac1cb8d3 18725rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18726 done
18727else
18728 echo "$as_me: failed program was:" >&5
18729sed 's/^/| /' conftest.$ac_ext >&5
18730
18731cat >conftest.$ac_ext <<_ACEOF
18732/* confdefs.h. */
18733_ACEOF
18734cat confdefs.h >>conftest.$ac_ext
18735cat >>conftest.$ac_ext <<_ACEOF
18736/* end confdefs.h. */
18737$ac_includes_default
18738int
18739main ()
18740{
18741static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
18742test_array [0] = 0
18743
18744 ;
18745 return 0;
18746}
18747_ACEOF
18748rm -f conftest.$ac_objext
18749if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18750 (eval $ac_compile) 2>conftest.er1
a848cd7e 18751 ac_status=$?
ac1cb8d3
VS
18752 grep -v '^ *+' conftest.er1 >conftest.err
18753 rm -f conftest.er1
18754 cat conftest.err >&5
a848cd7e
SC
18755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18756 (exit $ac_status); } &&
c9a66001 18757 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18759 (eval $ac_try) 2>&5
18760 ac_status=$?
18761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18762 (exit $ac_status); }; } &&
18763 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18765 (eval $ac_try) 2>&5
18766 ac_status=$?
18767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18768 (exit $ac_status); }; }; then
18769 ac_hi=-1 ac_mid=-1
18770 while :; do
18771 cat >conftest.$ac_ext <<_ACEOF
18772/* confdefs.h. */
18773_ACEOF
18774cat confdefs.h >>conftest.$ac_ext
18775cat >>conftest.$ac_ext <<_ACEOF
18776/* end confdefs.h. */
18777$ac_includes_default
18778int
18779main ()
18780{
18781static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
18782test_array [0] = 0
18783
18784 ;
18785 return 0;
18786}
18787_ACEOF
18788rm -f conftest.$ac_objext
18789if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18790 (eval $ac_compile) 2>conftest.er1
a848cd7e 18791 ac_status=$?
ac1cb8d3
VS
18792 grep -v '^ *+' conftest.er1 >conftest.err
18793 rm -f conftest.er1
18794 cat conftest.err >&5
a848cd7e
SC
18795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18796 (exit $ac_status); } &&
c9a66001 18797 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18799 (eval $ac_try) 2>&5
18800 ac_status=$?
18801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18802 (exit $ac_status); }; } &&
18803 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18805 (eval $ac_try) 2>&5
18806 ac_status=$?
18807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18808 (exit $ac_status); }; }; then
18809 ac_lo=$ac_mid; break
18810else
18811 echo "$as_me: failed program was:" >&5
18812sed 's/^/| /' conftest.$ac_ext >&5
18813
18814ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18815 if test $ac_mid -le $ac_hi; then
18816 ac_lo= ac_hi=
18817 break
18818 fi
18819 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18820fi
ac1cb8d3 18821rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18822 done
18823else
18824 echo "$as_me: failed program was:" >&5
18825sed 's/^/| /' conftest.$ac_ext >&5
18826
18827ac_lo= ac_hi=
18828fi
ac1cb8d3 18829rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18830fi
ac1cb8d3 18831rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18832# Binary search between lo and hi bounds.
18833while test "x$ac_lo" != "x$ac_hi"; do
18834 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18835 cat >conftest.$ac_ext <<_ACEOF
18836/* confdefs.h. */
18837_ACEOF
18838cat confdefs.h >>conftest.$ac_ext
18839cat >>conftest.$ac_ext <<_ACEOF
18840/* end confdefs.h. */
18841$ac_includes_default
18842int
18843main ()
18844{
18845static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
18846test_array [0] = 0
18847
18848 ;
18849 return 0;
18850}
18851_ACEOF
18852rm -f conftest.$ac_objext
18853if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18854 (eval $ac_compile) 2>conftest.er1
a848cd7e 18855 ac_status=$?
ac1cb8d3
VS
18856 grep -v '^ *+' conftest.er1 >conftest.err
18857 rm -f conftest.er1
18858 cat conftest.err >&5
a848cd7e
SC
18859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18860 (exit $ac_status); } &&
c9a66001 18861 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18863 (eval $ac_try) 2>&5
18864 ac_status=$?
18865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18866 (exit $ac_status); }; } &&
18867 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18869 (eval $ac_try) 2>&5
18870 ac_status=$?
18871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18872 (exit $ac_status); }; }; then
18873 ac_hi=$ac_mid
18874else
18875 echo "$as_me: failed program was:" >&5
18876sed 's/^/| /' conftest.$ac_ext >&5
18877
18878ac_lo=`expr '(' $ac_mid ')' + 1`
18879fi
ac1cb8d3 18880rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18881done
18882case $ac_lo in
18883?*) ac_cv_sizeof_void_p=$ac_lo;;
18884'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
18885See \`config.log' for more details." >&5
18886echo "$as_me: error: cannot compute sizeof (void *), 77
18887See \`config.log' for more details." >&2;}
18888 { (exit 1); exit 1; }; } ;;
18889esac
18890else
18891 if test "$cross_compiling" = yes; then
c9a66001
VZ
18892 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18893echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
18894 { (exit 1); exit 1; }; }
18895else
18896 cat >conftest.$ac_ext <<_ACEOF
18897/* confdefs.h. */
18898_ACEOF
18899cat confdefs.h >>conftest.$ac_ext
18900cat >>conftest.$ac_ext <<_ACEOF
18901/* end confdefs.h. */
18902$ac_includes_default
18903long longval () { return (long) (sizeof (void *)); }
18904unsigned long ulongval () { return (long) (sizeof (void *)); }
18905#include <stdio.h>
18906#include <stdlib.h>
18907int
18908main ()
18909{
18910
18911 FILE *f = fopen ("conftest.val", "w");
18912 if (! f)
18913 exit (1);
18914 if (((long) (sizeof (void *))) < 0)
18915 {
18916 long i = longval ();
18917 if (i != ((long) (sizeof (void *))))
18918 exit (1);
18919 fprintf (f, "%ld\n", i);
18920 }
18921 else
18922 {
18923 unsigned long i = ulongval ();
18924 if (i != ((long) (sizeof (void *))))
18925 exit (1);
18926 fprintf (f, "%lu\n", i);
18927 }
18928 exit (ferror (f) || fclose (f) != 0);
18929
18930 ;
18931 return 0;
18932}
18933_ACEOF
18934rm -f conftest$ac_exeext
18935if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18936 (eval $ac_link) 2>&5
18937 ac_status=$?
18938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18939 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18941 (eval $ac_try) 2>&5
18942 ac_status=$?
18943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18944 (exit $ac_status); }; }; then
18945 ac_cv_sizeof_void_p=`cat conftest.val`
18946else
18947 echo "$as_me: program exited with status $ac_status" >&5
18948echo "$as_me: failed program was:" >&5
18949sed 's/^/| /' conftest.$ac_ext >&5
18950
18951( exit $ac_status )
18952{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
18953See \`config.log' for more details." >&5
18954echo "$as_me: error: cannot compute sizeof (void *), 77
18955See \`config.log' for more details." >&2;}
18956 { (exit 1); exit 1; }; }
18957fi
ac1cb8d3 18958rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18959fi
18960fi
18961rm -f conftest.val
18962else
18963 ac_cv_sizeof_void_p=0
18964fi
18965fi
18966echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
18967echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
18968cat >>confdefs.h <<_ACEOF
18969#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
18970_ACEOF
18971
18972
18973echo "$as_me:$LINENO: checking for int" >&5
18974echo $ECHO_N "checking for int... $ECHO_C" >&6
18975if test "${ac_cv_type_int+set}" = set; then
18976 echo $ECHO_N "(cached) $ECHO_C" >&6
18977else
18978 cat >conftest.$ac_ext <<_ACEOF
18979/* confdefs.h. */
18980_ACEOF
18981cat confdefs.h >>conftest.$ac_ext
18982cat >>conftest.$ac_ext <<_ACEOF
18983/* end confdefs.h. */
18984$ac_includes_default
18985int
18986main ()
18987{
18988if ((int *) 0)
18989 return 0;
18990if (sizeof (int))
18991 return 0;
18992 ;
18993 return 0;
18994}
18995_ACEOF
18996rm -f conftest.$ac_objext
18997if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18998 (eval $ac_compile) 2>conftest.er1
a848cd7e 18999 ac_status=$?
ac1cb8d3
VS
19000 grep -v '^ *+' conftest.er1 >conftest.err
19001 rm -f conftest.er1
19002 cat conftest.err >&5
a848cd7e
SC
19003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19004 (exit $ac_status); } &&
c9a66001 19005 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19007 (eval $ac_try) 2>&5
19008 ac_status=$?
19009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19010 (exit $ac_status); }; } &&
19011 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19013 (eval $ac_try) 2>&5
19014 ac_status=$?
19015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19016 (exit $ac_status); }; }; then
19017 ac_cv_type_int=yes
19018else
19019 echo "$as_me: failed program was:" >&5
19020sed 's/^/| /' conftest.$ac_ext >&5
19021
19022ac_cv_type_int=no
19023fi
ac1cb8d3 19024rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19025fi
19026echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
19027echo "${ECHO_T}$ac_cv_type_int" >&6
19028
19029echo "$as_me:$LINENO: checking size of int" >&5
19030echo $ECHO_N "checking size of int... $ECHO_C" >&6
19031if test "${ac_cv_sizeof_int+set}" = set; then
19032 echo $ECHO_N "(cached) $ECHO_C" >&6
19033else
19034 if test "$ac_cv_type_int" = yes; then
19035 # The cast to unsigned long works around a bug in the HP C Compiler
19036 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19037 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19038 # This bug is HP SR number 8606223364.
19039 if test "$cross_compiling" = yes; then
19040 # Depending upon the size, compute the lo and hi bounds.
19041cat >conftest.$ac_ext <<_ACEOF
19042/* confdefs.h. */
19043_ACEOF
19044cat confdefs.h >>conftest.$ac_ext
19045cat >>conftest.$ac_ext <<_ACEOF
19046/* end confdefs.h. */
19047$ac_includes_default
19048int
19049main ()
19050{
19051static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
19052test_array [0] = 0
19053
19054 ;
19055 return 0;
19056}
19057_ACEOF
19058rm -f conftest.$ac_objext
19059if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19060 (eval $ac_compile) 2>conftest.er1
a848cd7e 19061 ac_status=$?
ac1cb8d3
VS
19062 grep -v '^ *+' conftest.er1 >conftest.err
19063 rm -f conftest.er1
19064 cat conftest.err >&5
a848cd7e
SC
19065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19066 (exit $ac_status); } &&
c9a66001 19067 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19069 (eval $ac_try) 2>&5
19070 ac_status=$?
19071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19072 (exit $ac_status); }; } &&
19073 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19075 (eval $ac_try) 2>&5
19076 ac_status=$?
19077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19078 (exit $ac_status); }; }; then
19079 ac_lo=0 ac_mid=0
19080 while :; do
19081 cat >conftest.$ac_ext <<_ACEOF
19082/* confdefs.h. */
19083_ACEOF
19084cat confdefs.h >>conftest.$ac_ext
19085cat >>conftest.$ac_ext <<_ACEOF
19086/* end confdefs.h. */
19087$ac_includes_default
19088int
19089main ()
19090{
19091static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
19092test_array [0] = 0
19093
19094 ;
19095 return 0;
19096}
19097_ACEOF
19098rm -f conftest.$ac_objext
19099if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19100 (eval $ac_compile) 2>conftest.er1
a848cd7e 19101 ac_status=$?
ac1cb8d3
VS
19102 grep -v '^ *+' conftest.er1 >conftest.err
19103 rm -f conftest.er1
19104 cat conftest.err >&5
a848cd7e
SC
19105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19106 (exit $ac_status); } &&
c9a66001 19107 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19109 (eval $ac_try) 2>&5
19110 ac_status=$?
19111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19112 (exit $ac_status); }; } &&
19113 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19115 (eval $ac_try) 2>&5
19116 ac_status=$?
19117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19118 (exit $ac_status); }; }; then
19119 ac_hi=$ac_mid; break
19120else
19121 echo "$as_me: failed program was:" >&5
19122sed 's/^/| /' conftest.$ac_ext >&5
19123
19124ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
19125 if test $ac_lo -le $ac_mid; then
19126 ac_lo= ac_hi=
19127 break
19128 fi
19129 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 19130fi
ac1cb8d3 19131rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19132 done
19133else
19134 echo "$as_me: failed program was:" >&5
19135sed 's/^/| /' conftest.$ac_ext >&5
19136
19137cat >conftest.$ac_ext <<_ACEOF
19138/* confdefs.h. */
19139_ACEOF
19140cat confdefs.h >>conftest.$ac_ext
19141cat >>conftest.$ac_ext <<_ACEOF
19142/* end confdefs.h. */
19143$ac_includes_default
19144int
19145main ()
19146{
19147static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
19148test_array [0] = 0
19149
19150 ;
19151 return 0;
19152}
19153_ACEOF
19154rm -f conftest.$ac_objext
19155if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19156 (eval $ac_compile) 2>conftest.er1
a848cd7e 19157 ac_status=$?
ac1cb8d3
VS
19158 grep -v '^ *+' conftest.er1 >conftest.err
19159 rm -f conftest.er1
19160 cat conftest.err >&5
a848cd7e
SC
19161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19162 (exit $ac_status); } &&
c9a66001 19163 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19165 (eval $ac_try) 2>&5
19166 ac_status=$?
19167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19168 (exit $ac_status); }; } &&
19169 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19171 (eval $ac_try) 2>&5
19172 ac_status=$?
19173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19174 (exit $ac_status); }; }; then
19175 ac_hi=-1 ac_mid=-1
19176 while :; do
19177 cat >conftest.$ac_ext <<_ACEOF
19178/* confdefs.h. */
19179_ACEOF
19180cat confdefs.h >>conftest.$ac_ext
19181cat >>conftest.$ac_ext <<_ACEOF
19182/* end confdefs.h. */
19183$ac_includes_default
19184int
19185main ()
19186{
19187static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
19188test_array [0] = 0
19189
19190 ;
19191 return 0;
19192}
19193_ACEOF
19194rm -f conftest.$ac_objext
19195if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19196 (eval $ac_compile) 2>conftest.er1
a848cd7e 19197 ac_status=$?
ac1cb8d3
VS
19198 grep -v '^ *+' conftest.er1 >conftest.err
19199 rm -f conftest.er1
19200 cat conftest.err >&5
a848cd7e
SC
19201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19202 (exit $ac_status); } &&
c9a66001 19203 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19205 (eval $ac_try) 2>&5
19206 ac_status=$?
19207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19208 (exit $ac_status); }; } &&
19209 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19211 (eval $ac_try) 2>&5
19212 ac_status=$?
19213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19214 (exit $ac_status); }; }; then
19215 ac_lo=$ac_mid; break
19216else
19217 echo "$as_me: failed program was:" >&5
19218sed 's/^/| /' conftest.$ac_ext >&5
19219
19220ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
19221 if test $ac_mid -le $ac_hi; then
19222 ac_lo= ac_hi=
19223 break
19224 fi
19225 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 19226fi
ac1cb8d3 19227rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19228 done
19229else
19230 echo "$as_me: failed program was:" >&5
19231sed 's/^/| /' conftest.$ac_ext >&5
19232
19233ac_lo= ac_hi=
19234fi
ac1cb8d3 19235rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 19236fi
ac1cb8d3 19237rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19238# Binary search between lo and hi bounds.
19239while test "x$ac_lo" != "x$ac_hi"; do
19240 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19241 cat >conftest.$ac_ext <<_ACEOF
19242/* confdefs.h. */
19243_ACEOF
19244cat confdefs.h >>conftest.$ac_ext
19245cat >>conftest.$ac_ext <<_ACEOF
19246/* end confdefs.h. */
19247$ac_includes_default
19248int
19249main ()
19250{
19251static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
19252test_array [0] = 0
19253
19254 ;
19255 return 0;
19256}
19257_ACEOF
19258rm -f conftest.$ac_objext
19259if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19260 (eval $ac_compile) 2>conftest.er1
a848cd7e 19261 ac_status=$?
ac1cb8d3
VS
19262 grep -v '^ *+' conftest.er1 >conftest.err
19263 rm -f conftest.er1
19264 cat conftest.err >&5
a848cd7e
SC
19265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19266 (exit $ac_status); } &&
c9a66001 19267 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19269 (eval $ac_try) 2>&5
19270 ac_status=$?
19271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19272 (exit $ac_status); }; } &&
19273 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19275 (eval $ac_try) 2>&5
19276 ac_status=$?
19277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19278 (exit $ac_status); }; }; then
19279 ac_hi=$ac_mid
19280else
19281 echo "$as_me: failed program was:" >&5
19282sed 's/^/| /' conftest.$ac_ext >&5
19283
19284ac_lo=`expr '(' $ac_mid ')' + 1`
19285fi
ac1cb8d3 19286rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19287done
19288case $ac_lo in
19289?*) ac_cv_sizeof_int=$ac_lo;;
19290'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
19291See \`config.log' for more details." >&5
19292echo "$as_me: error: cannot compute sizeof (int), 77
19293See \`config.log' for more details." >&2;}
19294 { (exit 1); exit 1; }; } ;;
19295esac
19296else
19297 if test "$cross_compiling" = yes; then
c9a66001
VZ
19298 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19299echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
19300 { (exit 1); exit 1; }; }
19301else
19302 cat >conftest.$ac_ext <<_ACEOF
19303/* confdefs.h. */
19304_ACEOF
19305cat confdefs.h >>conftest.$ac_ext
19306cat >>conftest.$ac_ext <<_ACEOF
19307/* end confdefs.h. */
19308$ac_includes_default
19309long longval () { return (long) (sizeof (int)); }
19310unsigned long ulongval () { return (long) (sizeof (int)); }
19311#include <stdio.h>
19312#include <stdlib.h>
19313int
19314main ()
19315{
19316
19317 FILE *f = fopen ("conftest.val", "w");
19318 if (! f)
19319 exit (1);
19320 if (((long) (sizeof (int))) < 0)
19321 {
19322 long i = longval ();
19323 if (i != ((long) (sizeof (int))))
19324 exit (1);
19325 fprintf (f, "%ld\n", i);
19326 }
19327 else
19328 {
19329 unsigned long i = ulongval ();
19330 if (i != ((long) (sizeof (int))))
19331 exit (1);
19332 fprintf (f, "%lu\n", i);
19333 }
19334 exit (ferror (f) || fclose (f) != 0);
19335
19336 ;
19337 return 0;
19338}
19339_ACEOF
19340rm -f conftest$ac_exeext
19341if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19342 (eval $ac_link) 2>&5
19343 ac_status=$?
19344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19345 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19347 (eval $ac_try) 2>&5
19348 ac_status=$?
19349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19350 (exit $ac_status); }; }; then
19351 ac_cv_sizeof_int=`cat conftest.val`
19352else
19353 echo "$as_me: program exited with status $ac_status" >&5
19354echo "$as_me: failed program was:" >&5
19355sed 's/^/| /' conftest.$ac_ext >&5
19356
19357( exit $ac_status )
19358{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
19359See \`config.log' for more details." >&5
19360echo "$as_me: error: cannot compute sizeof (int), 77
19361See \`config.log' for more details." >&2;}
19362 { (exit 1); exit 1; }; }
19363fi
ac1cb8d3 19364rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19365fi
19366fi
19367rm -f conftest.val
19368else
19369 ac_cv_sizeof_int=0
19370fi
19371fi
19372echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
19373echo "${ECHO_T}$ac_cv_sizeof_int" >&6
19374cat >>confdefs.h <<_ACEOF
19375#define SIZEOF_INT $ac_cv_sizeof_int
19376_ACEOF
19377
19378
19379echo "$as_me:$LINENO: checking for long" >&5
19380echo $ECHO_N "checking for long... $ECHO_C" >&6
19381if test "${ac_cv_type_long+set}" = set; then
19382 echo $ECHO_N "(cached) $ECHO_C" >&6
19383else
19384 cat >conftest.$ac_ext <<_ACEOF
19385/* confdefs.h. */
19386_ACEOF
19387cat confdefs.h >>conftest.$ac_ext
19388cat >>conftest.$ac_ext <<_ACEOF
19389/* end confdefs.h. */
19390$ac_includes_default
19391int
19392main ()
19393{
19394if ((long *) 0)
19395 return 0;
19396if (sizeof (long))
19397 return 0;
19398 ;
19399 return 0;
19400}
19401_ACEOF
19402rm -f conftest.$ac_objext
19403if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19404 (eval $ac_compile) 2>conftest.er1
a848cd7e 19405 ac_status=$?
ac1cb8d3
VS
19406 grep -v '^ *+' conftest.er1 >conftest.err
19407 rm -f conftest.er1
19408 cat conftest.err >&5
a848cd7e
SC
19409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19410 (exit $ac_status); } &&
c9a66001 19411 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19413 (eval $ac_try) 2>&5
19414 ac_status=$?
19415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19416 (exit $ac_status); }; } &&
19417 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19419 (eval $ac_try) 2>&5
19420 ac_status=$?
19421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19422 (exit $ac_status); }; }; then
19423 ac_cv_type_long=yes
19424else
19425 echo "$as_me: failed program was:" >&5
19426sed 's/^/| /' conftest.$ac_ext >&5
19427
19428ac_cv_type_long=no
19429fi
ac1cb8d3 19430rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19431fi
19432echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
19433echo "${ECHO_T}$ac_cv_type_long" >&6
19434
19435echo "$as_me:$LINENO: checking size of long" >&5
19436echo $ECHO_N "checking size of long... $ECHO_C" >&6
19437if test "${ac_cv_sizeof_long+set}" = set; then
19438 echo $ECHO_N "(cached) $ECHO_C" >&6
19439else
19440 if test "$ac_cv_type_long" = yes; then
19441 # The cast to unsigned long works around a bug in the HP C Compiler
19442 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19443 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19444 # This bug is HP SR number 8606223364.
19445 if test "$cross_compiling" = yes; then
19446 # Depending upon the size, compute the lo and hi bounds.
19447cat >conftest.$ac_ext <<_ACEOF
19448/* confdefs.h. */
19449_ACEOF
19450cat confdefs.h >>conftest.$ac_ext
19451cat >>conftest.$ac_ext <<_ACEOF
19452/* end confdefs.h. */
19453$ac_includes_default
19454int
19455main ()
19456{
19457static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
19458test_array [0] = 0
19459
19460 ;
19461 return 0;
19462}
19463_ACEOF
19464rm -f conftest.$ac_objext
19465if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19466 (eval $ac_compile) 2>conftest.er1
a848cd7e 19467 ac_status=$?
ac1cb8d3
VS
19468 grep -v '^ *+' conftest.er1 >conftest.err
19469 rm -f conftest.er1
19470 cat conftest.err >&5
a848cd7e
SC
19471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19472 (exit $ac_status); } &&
c9a66001 19473 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19475 (eval $ac_try) 2>&5
19476 ac_status=$?
19477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19478 (exit $ac_status); }; } &&
19479 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19481 (eval $ac_try) 2>&5
19482 ac_status=$?
19483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19484 (exit $ac_status); }; }; then
19485 ac_lo=0 ac_mid=0
19486 while :; do
19487 cat >conftest.$ac_ext <<_ACEOF
19488/* confdefs.h. */
19489_ACEOF
19490cat confdefs.h >>conftest.$ac_ext
19491cat >>conftest.$ac_ext <<_ACEOF
19492/* end confdefs.h. */
19493$ac_includes_default
19494int
19495main ()
19496{
19497static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
19498test_array [0] = 0
19499
19500 ;
19501 return 0;
19502}
19503_ACEOF
19504rm -f conftest.$ac_objext
19505if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19506 (eval $ac_compile) 2>conftest.er1
a848cd7e 19507 ac_status=$?
ac1cb8d3
VS
19508 grep -v '^ *+' conftest.er1 >conftest.err
19509 rm -f conftest.er1
19510 cat conftest.err >&5
a848cd7e
SC
19511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19512 (exit $ac_status); } &&
c9a66001 19513 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19515 (eval $ac_try) 2>&5
19516 ac_status=$?
19517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19518 (exit $ac_status); }; } &&
19519 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19521 (eval $ac_try) 2>&5
19522 ac_status=$?
19523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19524 (exit $ac_status); }; }; then
19525 ac_hi=$ac_mid; break
19526else
19527 echo "$as_me: failed program was:" >&5
19528sed 's/^/| /' conftest.$ac_ext >&5
19529
19530ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
19531 if test $ac_lo -le $ac_mid; then
19532 ac_lo= ac_hi=
19533 break
19534 fi
19535 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 19536fi
ac1cb8d3 19537rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19538 done
19539else
19540 echo "$as_me: failed program was:" >&5
19541sed 's/^/| /' conftest.$ac_ext >&5
19542
19543cat >conftest.$ac_ext <<_ACEOF
19544/* confdefs.h. */
19545_ACEOF
19546cat confdefs.h >>conftest.$ac_ext
19547cat >>conftest.$ac_ext <<_ACEOF
19548/* end confdefs.h. */
19549$ac_includes_default
19550int
19551main ()
19552{
19553static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
19554test_array [0] = 0
19555
19556 ;
19557 return 0;
19558}
19559_ACEOF
19560rm -f conftest.$ac_objext
19561if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19562 (eval $ac_compile) 2>conftest.er1
a848cd7e 19563 ac_status=$?
ac1cb8d3
VS
19564 grep -v '^ *+' conftest.er1 >conftest.err
19565 rm -f conftest.er1
19566 cat conftest.err >&5
a848cd7e
SC
19567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19568 (exit $ac_status); } &&
c9a66001 19569 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19571 (eval $ac_try) 2>&5
19572 ac_status=$?
19573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19574 (exit $ac_status); }; } &&
19575 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19577 (eval $ac_try) 2>&5
19578 ac_status=$?
19579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19580 (exit $ac_status); }; }; then
19581 ac_hi=-1 ac_mid=-1
19582 while :; do
19583 cat >conftest.$ac_ext <<_ACEOF
19584/* confdefs.h. */
19585_ACEOF
19586cat confdefs.h >>conftest.$ac_ext
19587cat >>conftest.$ac_ext <<_ACEOF
19588/* end confdefs.h. */
19589$ac_includes_default
19590int
19591main ()
19592{
19593static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
19594test_array [0] = 0
19595
19596 ;
19597 return 0;
19598}
19599_ACEOF
19600rm -f conftest.$ac_objext
19601if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19602 (eval $ac_compile) 2>conftest.er1
a848cd7e 19603 ac_status=$?
ac1cb8d3
VS
19604 grep -v '^ *+' conftest.er1 >conftest.err
19605 rm -f conftest.er1
19606 cat conftest.err >&5
a848cd7e
SC
19607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19608 (exit $ac_status); } &&
c9a66001 19609 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19611 (eval $ac_try) 2>&5
19612 ac_status=$?
19613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19614 (exit $ac_status); }; } &&
19615 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19617 (eval $ac_try) 2>&5
19618 ac_status=$?
19619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19620 (exit $ac_status); }; }; then
19621 ac_lo=$ac_mid; break
19622else
19623 echo "$as_me: failed program was:" >&5
19624sed 's/^/| /' conftest.$ac_ext >&5
19625
19626ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
19627 if test $ac_mid -le $ac_hi; then
19628 ac_lo= ac_hi=
19629 break
19630 fi
19631 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 19632fi
ac1cb8d3 19633rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19634 done
19635else
19636 echo "$as_me: failed program was:" >&5
19637sed 's/^/| /' conftest.$ac_ext >&5
19638
19639ac_lo= ac_hi=
19640fi
ac1cb8d3 19641rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 19642fi
ac1cb8d3 19643rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19644# Binary search between lo and hi bounds.
19645while test "x$ac_lo" != "x$ac_hi"; do
19646 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19647 cat >conftest.$ac_ext <<_ACEOF
19648/* confdefs.h. */
19649_ACEOF
19650cat confdefs.h >>conftest.$ac_ext
19651cat >>conftest.$ac_ext <<_ACEOF
19652/* end confdefs.h. */
19653$ac_includes_default
19654int
19655main ()
19656{
19657static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
19658test_array [0] = 0
19659
19660 ;
19661 return 0;
19662}
19663_ACEOF
19664rm -f conftest.$ac_objext
19665if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19666 (eval $ac_compile) 2>conftest.er1
a848cd7e 19667 ac_status=$?
ac1cb8d3
VS
19668 grep -v '^ *+' conftest.er1 >conftest.err
19669 rm -f conftest.er1
19670 cat conftest.err >&5
a848cd7e
SC
19671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19672 (exit $ac_status); } &&
c9a66001 19673 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19675 (eval $ac_try) 2>&5
19676 ac_status=$?
19677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19678 (exit $ac_status); }; } &&
19679 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19681 (eval $ac_try) 2>&5
19682 ac_status=$?
19683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19684 (exit $ac_status); }; }; then
19685 ac_hi=$ac_mid
19686else
19687 echo "$as_me: failed program was:" >&5
19688sed 's/^/| /' conftest.$ac_ext >&5
19689
19690ac_lo=`expr '(' $ac_mid ')' + 1`
19691fi
ac1cb8d3 19692rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19693done
19694case $ac_lo in
19695?*) ac_cv_sizeof_long=$ac_lo;;
19696'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
19697See \`config.log' for more details." >&5
19698echo "$as_me: error: cannot compute sizeof (long), 77
19699See \`config.log' for more details." >&2;}
19700 { (exit 1); exit 1; }; } ;;
19701esac
19702else
19703 if test "$cross_compiling" = yes; then
c9a66001
VZ
19704 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19705echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
19706 { (exit 1); exit 1; }; }
19707else
19708 cat >conftest.$ac_ext <<_ACEOF
19709/* confdefs.h. */
19710_ACEOF
19711cat confdefs.h >>conftest.$ac_ext
19712cat >>conftest.$ac_ext <<_ACEOF
19713/* end confdefs.h. */
19714$ac_includes_default
19715long longval () { return (long) (sizeof (long)); }
19716unsigned long ulongval () { return (long) (sizeof (long)); }
19717#include <stdio.h>
19718#include <stdlib.h>
19719int
19720main ()
19721{
19722
19723 FILE *f = fopen ("conftest.val", "w");
19724 if (! f)
19725 exit (1);
19726 if (((long) (sizeof (long))) < 0)
19727 {
19728 long i = longval ();
19729 if (i != ((long) (sizeof (long))))
19730 exit (1);
19731 fprintf (f, "%ld\n", i);
19732 }
19733 else
19734 {
19735 unsigned long i = ulongval ();
19736 if (i != ((long) (sizeof (long))))
19737 exit (1);
19738 fprintf (f, "%lu\n", i);
19739 }
19740 exit (ferror (f) || fclose (f) != 0);
19741
19742 ;
19743 return 0;
19744}
19745_ACEOF
19746rm -f conftest$ac_exeext
19747if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19748 (eval $ac_link) 2>&5
19749 ac_status=$?
19750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19751 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19753 (eval $ac_try) 2>&5
19754 ac_status=$?
19755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19756 (exit $ac_status); }; }; then
19757 ac_cv_sizeof_long=`cat conftest.val`
19758else
19759 echo "$as_me: program exited with status $ac_status" >&5
19760echo "$as_me: failed program was:" >&5
19761sed 's/^/| /' conftest.$ac_ext >&5
19762
19763( exit $ac_status )
19764{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
19765See \`config.log' for more details." >&5
19766echo "$as_me: error: cannot compute sizeof (long), 77
19767See \`config.log' for more details." >&2;}
19768 { (exit 1); exit 1; }; }
19769fi
ac1cb8d3 19770rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19771fi
19772fi
19773rm -f conftest.val
19774else
19775 ac_cv_sizeof_long=0
19776fi
19777fi
19778echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
19779echo "${ECHO_T}$ac_cv_sizeof_long" >&6
19780cat >>confdefs.h <<_ACEOF
19781#define SIZEOF_LONG $ac_cv_sizeof_long
19782_ACEOF
19783
19784
19785echo "$as_me:$LINENO: checking for size_t" >&5
19786echo $ECHO_N "checking for size_t... $ECHO_C" >&6
19787if test "${ac_cv_type_size_t+set}" = set; then
19788 echo $ECHO_N "(cached) $ECHO_C" >&6
19789else
19790 cat >conftest.$ac_ext <<_ACEOF
19791/* confdefs.h. */
19792_ACEOF
19793cat confdefs.h >>conftest.$ac_ext
19794cat >>conftest.$ac_ext <<_ACEOF
19795/* end confdefs.h. */
19796$ac_includes_default
19797int
19798main ()
19799{
19800if ((size_t *) 0)
19801 return 0;
19802if (sizeof (size_t))
19803 return 0;
19804 ;
19805 return 0;
19806}
19807_ACEOF
19808rm -f conftest.$ac_objext
19809if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19810 (eval $ac_compile) 2>conftest.er1
a848cd7e 19811 ac_status=$?
ac1cb8d3
VS
19812 grep -v '^ *+' conftest.er1 >conftest.err
19813 rm -f conftest.er1
19814 cat conftest.err >&5
a848cd7e
SC
19815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19816 (exit $ac_status); } &&
c9a66001 19817 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19819 (eval $ac_try) 2>&5
19820 ac_status=$?
19821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19822 (exit $ac_status); }; } &&
19823 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19825 (eval $ac_try) 2>&5
19826 ac_status=$?
19827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19828 (exit $ac_status); }; }; then
19829 ac_cv_type_size_t=yes
19830else
19831 echo "$as_me: failed program was:" >&5
19832sed 's/^/| /' conftest.$ac_ext >&5
19833
19834ac_cv_type_size_t=no
19835fi
ac1cb8d3 19836rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19837fi
19838echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
19839echo "${ECHO_T}$ac_cv_type_size_t" >&6
19840
19841echo "$as_me:$LINENO: checking size of size_t" >&5
19842echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
19843if test "${ac_cv_sizeof_size_t+set}" = set; then
19844 echo $ECHO_N "(cached) $ECHO_C" >&6
19845else
19846 if test "$ac_cv_type_size_t" = yes; then
19847 # The cast to unsigned long works around a bug in the HP C Compiler
19848 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19849 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19850 # This bug is HP SR number 8606223364.
19851 if test "$cross_compiling" = yes; then
19852 # Depending upon the size, compute the lo and hi bounds.
19853cat >conftest.$ac_ext <<_ACEOF
19854/* confdefs.h. */
19855_ACEOF
19856cat confdefs.h >>conftest.$ac_ext
19857cat >>conftest.$ac_ext <<_ACEOF
19858/* end confdefs.h. */
19859$ac_includes_default
19860int
19861main ()
19862{
19863static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
19864test_array [0] = 0
19865
19866 ;
19867 return 0;
19868}
19869_ACEOF
19870rm -f conftest.$ac_objext
19871if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19872 (eval $ac_compile) 2>conftest.er1
a848cd7e 19873 ac_status=$?
ac1cb8d3
VS
19874 grep -v '^ *+' conftest.er1 >conftest.err
19875 rm -f conftest.er1
19876 cat conftest.err >&5
a848cd7e
SC
19877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19878 (exit $ac_status); } &&
c9a66001 19879 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19881 (eval $ac_try) 2>&5
19882 ac_status=$?
19883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19884 (exit $ac_status); }; } &&
19885 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19887 (eval $ac_try) 2>&5
19888 ac_status=$?
19889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19890 (exit $ac_status); }; }; then
19891 ac_lo=0 ac_mid=0
19892 while :; do
19893 cat >conftest.$ac_ext <<_ACEOF
19894/* confdefs.h. */
19895_ACEOF
19896cat confdefs.h >>conftest.$ac_ext
19897cat >>conftest.$ac_ext <<_ACEOF
19898/* end confdefs.h. */
19899$ac_includes_default
19900int
19901main ()
19902{
19903static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
19904test_array [0] = 0
19905
19906 ;
19907 return 0;
19908}
19909_ACEOF
19910rm -f conftest.$ac_objext
19911if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19912 (eval $ac_compile) 2>conftest.er1
a848cd7e 19913 ac_status=$?
ac1cb8d3
VS
19914 grep -v '^ *+' conftest.er1 >conftest.err
19915 rm -f conftest.er1
19916 cat conftest.err >&5
a848cd7e
SC
19917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19918 (exit $ac_status); } &&
c9a66001 19919 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19921 (eval $ac_try) 2>&5
19922 ac_status=$?
19923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19924 (exit $ac_status); }; } &&
19925 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19927 (eval $ac_try) 2>&5
19928 ac_status=$?
19929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19930 (exit $ac_status); }; }; then
19931 ac_hi=$ac_mid; break
19932else
19933 echo "$as_me: failed program was:" >&5
19934sed 's/^/| /' conftest.$ac_ext >&5
19935
19936ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
19937 if test $ac_lo -le $ac_mid; then
19938 ac_lo= ac_hi=
19939 break
19940 fi
19941 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 19942fi
ac1cb8d3 19943rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19944 done
19945else
19946 echo "$as_me: failed program was:" >&5
19947sed 's/^/| /' conftest.$ac_ext >&5
19948
19949cat >conftest.$ac_ext <<_ACEOF
19950/* confdefs.h. */
19951_ACEOF
19952cat confdefs.h >>conftest.$ac_ext
19953cat >>conftest.$ac_ext <<_ACEOF
19954/* end confdefs.h. */
19955$ac_includes_default
19956int
19957main ()
19958{
19959static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
19960test_array [0] = 0
19961
19962 ;
19963 return 0;
19964}
19965_ACEOF
19966rm -f conftest.$ac_objext
19967if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19968 (eval $ac_compile) 2>conftest.er1
a848cd7e 19969 ac_status=$?
ac1cb8d3
VS
19970 grep -v '^ *+' conftest.er1 >conftest.err
19971 rm -f conftest.er1
19972 cat conftest.err >&5
a848cd7e
SC
19973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19974 (exit $ac_status); } &&
c9a66001 19975 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19977 (eval $ac_try) 2>&5
19978 ac_status=$?
19979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19980 (exit $ac_status); }; } &&
19981 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19983 (eval $ac_try) 2>&5
19984 ac_status=$?
19985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19986 (exit $ac_status); }; }; then
19987 ac_hi=-1 ac_mid=-1
19988 while :; do
19989 cat >conftest.$ac_ext <<_ACEOF
19990/* confdefs.h. */
19991_ACEOF
19992cat confdefs.h >>conftest.$ac_ext
19993cat >>conftest.$ac_ext <<_ACEOF
19994/* end confdefs.h. */
19995$ac_includes_default
19996int
19997main ()
19998{
19999static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
20000test_array [0] = 0
20001
20002 ;
20003 return 0;
20004}
20005_ACEOF
20006rm -f conftest.$ac_objext
20007if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20008 (eval $ac_compile) 2>conftest.er1
a848cd7e 20009 ac_status=$?
ac1cb8d3
VS
20010 grep -v '^ *+' conftest.er1 >conftest.err
20011 rm -f conftest.er1
20012 cat conftest.err >&5
a848cd7e
SC
20013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20014 (exit $ac_status); } &&
c9a66001 20015 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20017 (eval $ac_try) 2>&5
20018 ac_status=$?
20019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20020 (exit $ac_status); }; } &&
20021 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20023 (eval $ac_try) 2>&5
20024 ac_status=$?
20025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20026 (exit $ac_status); }; }; then
20027 ac_lo=$ac_mid; break
20028else
20029 echo "$as_me: failed program was:" >&5
20030sed 's/^/| /' conftest.$ac_ext >&5
20031
20032ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
20033 if test $ac_mid -le $ac_hi; then
20034 ac_lo= ac_hi=
20035 break
20036 fi
20037 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 20038fi
ac1cb8d3 20039rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20040 done
20041else
20042 echo "$as_me: failed program was:" >&5
20043sed 's/^/| /' conftest.$ac_ext >&5
20044
20045ac_lo= ac_hi=
20046fi
ac1cb8d3 20047rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 20048fi
ac1cb8d3 20049rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20050# Binary search between lo and hi bounds.
20051while test "x$ac_lo" != "x$ac_hi"; do
20052 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20053 cat >conftest.$ac_ext <<_ACEOF
20054/* confdefs.h. */
20055_ACEOF
20056cat confdefs.h >>conftest.$ac_ext
20057cat >>conftest.$ac_ext <<_ACEOF
20058/* end confdefs.h. */
20059$ac_includes_default
20060int
20061main ()
20062{
20063static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
20064test_array [0] = 0
20065
20066 ;
20067 return 0;
20068}
20069_ACEOF
20070rm -f conftest.$ac_objext
20071if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20072 (eval $ac_compile) 2>conftest.er1
a848cd7e 20073 ac_status=$?
ac1cb8d3
VS
20074 grep -v '^ *+' conftest.er1 >conftest.err
20075 rm -f conftest.er1
20076 cat conftest.err >&5
a848cd7e
SC
20077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20078 (exit $ac_status); } &&
c9a66001 20079 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20081 (eval $ac_try) 2>&5
20082 ac_status=$?
20083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20084 (exit $ac_status); }; } &&
20085 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20087 (eval $ac_try) 2>&5
20088 ac_status=$?
20089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20090 (exit $ac_status); }; }; then
20091 ac_hi=$ac_mid
20092else
20093 echo "$as_me: failed program was:" >&5
20094sed 's/^/| /' conftest.$ac_ext >&5
20095
20096ac_lo=`expr '(' $ac_mid ')' + 1`
20097fi
ac1cb8d3 20098rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20099done
20100case $ac_lo in
20101?*) ac_cv_sizeof_size_t=$ac_lo;;
20102'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
20103See \`config.log' for more details." >&5
20104echo "$as_me: error: cannot compute sizeof (size_t), 77
20105See \`config.log' for more details." >&2;}
20106 { (exit 1); exit 1; }; } ;;
20107esac
20108else
20109 if test "$cross_compiling" = yes; then
c9a66001
VZ
20110 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
20111echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
20112 { (exit 1); exit 1; }; }
20113else
20114 cat >conftest.$ac_ext <<_ACEOF
20115/* confdefs.h. */
20116_ACEOF
20117cat confdefs.h >>conftest.$ac_ext
20118cat >>conftest.$ac_ext <<_ACEOF
20119/* end confdefs.h. */
20120$ac_includes_default
20121long longval () { return (long) (sizeof (size_t)); }
20122unsigned long ulongval () { return (long) (sizeof (size_t)); }
20123#include <stdio.h>
20124#include <stdlib.h>
20125int
20126main ()
20127{
20128
20129 FILE *f = fopen ("conftest.val", "w");
20130 if (! f)
20131 exit (1);
20132 if (((long) (sizeof (size_t))) < 0)
20133 {
20134 long i = longval ();
20135 if (i != ((long) (sizeof (size_t))))
20136 exit (1);
20137 fprintf (f, "%ld\n", i);
20138 }
20139 else
20140 {
20141 unsigned long i = ulongval ();
20142 if (i != ((long) (sizeof (size_t))))
20143 exit (1);
20144 fprintf (f, "%lu\n", i);
20145 }
20146 exit (ferror (f) || fclose (f) != 0);
20147
20148 ;
20149 return 0;
20150}
20151_ACEOF
20152rm -f conftest$ac_exeext
20153if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20154 (eval $ac_link) 2>&5
20155 ac_status=$?
20156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20157 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20159 (eval $ac_try) 2>&5
20160 ac_status=$?
20161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20162 (exit $ac_status); }; }; then
20163 ac_cv_sizeof_size_t=`cat conftest.val`
20164else
20165 echo "$as_me: program exited with status $ac_status" >&5
20166echo "$as_me: failed program was:" >&5
20167sed 's/^/| /' conftest.$ac_ext >&5
20168
20169( exit $ac_status )
20170{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
20171See \`config.log' for more details." >&5
20172echo "$as_me: error: cannot compute sizeof (size_t), 77
20173See \`config.log' for more details." >&2;}
20174 { (exit 1); exit 1; }; }
20175fi
ac1cb8d3 20176rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20177fi
20178fi
20179rm -f conftest.val
20180else
20181 ac_cv_sizeof_size_t=0
20182fi
20183fi
20184echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
20185echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
20186cat >>confdefs.h <<_ACEOF
20187#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
20188_ACEOF
20189
20190
20191
20192case "${host}" in
20193 arm-*-linux* )
20194 echo "$as_me:$LINENO: checking for long long" >&5
20195echo $ECHO_N "checking for long long... $ECHO_C" >&6
20196if test "${ac_cv_type_long_long+set}" = set; then
20197 echo $ECHO_N "(cached) $ECHO_C" >&6
20198else
20199 cat >conftest.$ac_ext <<_ACEOF
20200/* confdefs.h. */
20201_ACEOF
20202cat confdefs.h >>conftest.$ac_ext
20203cat >>conftest.$ac_ext <<_ACEOF
20204/* end confdefs.h. */
20205$ac_includes_default
20206int
20207main ()
20208{
20209if ((long long *) 0)
20210 return 0;
20211if (sizeof (long long))
20212 return 0;
20213 ;
20214 return 0;
20215}
20216_ACEOF
20217rm -f conftest.$ac_objext
20218if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20219 (eval $ac_compile) 2>conftest.er1
a848cd7e 20220 ac_status=$?
ac1cb8d3
VS
20221 grep -v '^ *+' conftest.er1 >conftest.err
20222 rm -f conftest.er1
20223 cat conftest.err >&5
a848cd7e
SC
20224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20225 (exit $ac_status); } &&
c9a66001 20226 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20228 (eval $ac_try) 2>&5
20229 ac_status=$?
20230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20231 (exit $ac_status); }; } &&
20232 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20234 (eval $ac_try) 2>&5
20235 ac_status=$?
20236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20237 (exit $ac_status); }; }; then
20238 ac_cv_type_long_long=yes
20239else
20240 echo "$as_me: failed program was:" >&5
20241sed 's/^/| /' conftest.$ac_ext >&5
20242
20243ac_cv_type_long_long=no
20244fi
ac1cb8d3 20245rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20246fi
20247echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
20248echo "${ECHO_T}$ac_cv_type_long_long" >&6
20249
20250echo "$as_me:$LINENO: checking size of long long" >&5
20251echo $ECHO_N "checking size of long long... $ECHO_C" >&6
20252if test "${ac_cv_sizeof_long_long+set}" = set; then
20253 echo $ECHO_N "(cached) $ECHO_C" >&6
20254else
20255 if test "$ac_cv_type_long_long" = yes; then
20256 # The cast to unsigned long works around a bug in the HP C Compiler
20257 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20258 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20259 # This bug is HP SR number 8606223364.
20260 if test "$cross_compiling" = yes; then
20261 # Depending upon the size, compute the lo and hi bounds.
20262cat >conftest.$ac_ext <<_ACEOF
20263/* confdefs.h. */
20264_ACEOF
20265cat confdefs.h >>conftest.$ac_ext
20266cat >>conftest.$ac_ext <<_ACEOF
20267/* end confdefs.h. */
20268$ac_includes_default
20269int
20270main ()
20271{
20272static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
20273test_array [0] = 0
20274
20275 ;
20276 return 0;
20277}
20278_ACEOF
20279rm -f conftest.$ac_objext
20280if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20281 (eval $ac_compile) 2>conftest.er1
a848cd7e 20282 ac_status=$?
ac1cb8d3
VS
20283 grep -v '^ *+' conftest.er1 >conftest.err
20284 rm -f conftest.er1
20285 cat conftest.err >&5
a848cd7e
SC
20286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20287 (exit $ac_status); } &&
c9a66001 20288 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20290 (eval $ac_try) 2>&5
20291 ac_status=$?
20292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20293 (exit $ac_status); }; } &&
20294 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20296 (eval $ac_try) 2>&5
20297 ac_status=$?
20298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20299 (exit $ac_status); }; }; then
20300 ac_lo=0 ac_mid=0
20301 while :; do
20302 cat >conftest.$ac_ext <<_ACEOF
20303/* confdefs.h. */
20304_ACEOF
20305cat confdefs.h >>conftest.$ac_ext
20306cat >>conftest.$ac_ext <<_ACEOF
20307/* end confdefs.h. */
20308$ac_includes_default
20309int
20310main ()
20311{
20312static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20313test_array [0] = 0
20314
20315 ;
20316 return 0;
20317}
20318_ACEOF
20319rm -f conftest.$ac_objext
20320if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20321 (eval $ac_compile) 2>conftest.er1
a848cd7e 20322 ac_status=$?
ac1cb8d3
VS
20323 grep -v '^ *+' conftest.er1 >conftest.err
20324 rm -f conftest.er1
20325 cat conftest.err >&5
a848cd7e
SC
20326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20327 (exit $ac_status); } &&
c9a66001 20328 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20330 (eval $ac_try) 2>&5
20331 ac_status=$?
20332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20333 (exit $ac_status); }; } &&
20334 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20336 (eval $ac_try) 2>&5
20337 ac_status=$?
20338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20339 (exit $ac_status); }; }; then
20340 ac_hi=$ac_mid; break
20341else
20342 echo "$as_me: failed program was:" >&5
20343sed 's/^/| /' conftest.$ac_ext >&5
20344
20345ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
20346 if test $ac_lo -le $ac_mid; then
20347 ac_lo= ac_hi=
20348 break
20349 fi
20350 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 20351fi
ac1cb8d3 20352rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20353 done
20354else
20355 echo "$as_me: failed program was:" >&5
20356sed 's/^/| /' conftest.$ac_ext >&5
20357
20358cat >conftest.$ac_ext <<_ACEOF
20359/* confdefs.h. */
20360_ACEOF
20361cat confdefs.h >>conftest.$ac_ext
20362cat >>conftest.$ac_ext <<_ACEOF
20363/* end confdefs.h. */
20364$ac_includes_default
20365int
20366main ()
20367{
20368static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
20369test_array [0] = 0
20370
20371 ;
20372 return 0;
20373}
20374_ACEOF
20375rm -f conftest.$ac_objext
20376if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20377 (eval $ac_compile) 2>conftest.er1
a848cd7e 20378 ac_status=$?
ac1cb8d3
VS
20379 grep -v '^ *+' conftest.er1 >conftest.err
20380 rm -f conftest.er1
20381 cat conftest.err >&5
a848cd7e
SC
20382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20383 (exit $ac_status); } &&
c9a66001 20384 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20386 (eval $ac_try) 2>&5
20387 ac_status=$?
20388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20389 (exit $ac_status); }; } &&
20390 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20392 (eval $ac_try) 2>&5
20393 ac_status=$?
20394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20395 (exit $ac_status); }; }; then
20396 ac_hi=-1 ac_mid=-1
20397 while :; do
20398 cat >conftest.$ac_ext <<_ACEOF
20399/* confdefs.h. */
20400_ACEOF
20401cat confdefs.h >>conftest.$ac_ext
20402cat >>conftest.$ac_ext <<_ACEOF
20403/* end confdefs.h. */
20404$ac_includes_default
20405int
20406main ()
20407{
20408static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
20409test_array [0] = 0
20410
20411 ;
20412 return 0;
20413}
20414_ACEOF
20415rm -f conftest.$ac_objext
20416if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20417 (eval $ac_compile) 2>conftest.er1
a848cd7e 20418 ac_status=$?
ac1cb8d3
VS
20419 grep -v '^ *+' conftest.er1 >conftest.err
20420 rm -f conftest.er1
20421 cat conftest.err >&5
a848cd7e
SC
20422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20423 (exit $ac_status); } &&
c9a66001 20424 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20426 (eval $ac_try) 2>&5
20427 ac_status=$?
20428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20429 (exit $ac_status); }; } &&
20430 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20432 (eval $ac_try) 2>&5
20433 ac_status=$?
20434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20435 (exit $ac_status); }; }; then
20436 ac_lo=$ac_mid; break
20437else
20438 echo "$as_me: failed program was:" >&5
20439sed 's/^/| /' conftest.$ac_ext >&5
20440
20441ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
20442 if test $ac_mid -le $ac_hi; then
20443 ac_lo= ac_hi=
20444 break
20445 fi
20446 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 20447fi
ac1cb8d3 20448rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20449 done
20450else
20451 echo "$as_me: failed program was:" >&5
20452sed 's/^/| /' conftest.$ac_ext >&5
20453
20454ac_lo= ac_hi=
20455fi
ac1cb8d3 20456rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 20457fi
ac1cb8d3 20458rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20459# Binary search between lo and hi bounds.
20460while test "x$ac_lo" != "x$ac_hi"; do
20461 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20462 cat >conftest.$ac_ext <<_ACEOF
20463/* confdefs.h. */
20464_ACEOF
20465cat confdefs.h >>conftest.$ac_ext
20466cat >>conftest.$ac_ext <<_ACEOF
20467/* end confdefs.h. */
20468$ac_includes_default
20469int
20470main ()
20471{
20472static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20473test_array [0] = 0
20474
20475 ;
20476 return 0;
20477}
20478_ACEOF
20479rm -f conftest.$ac_objext
20480if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20481 (eval $ac_compile) 2>conftest.er1
a848cd7e 20482 ac_status=$?
ac1cb8d3
VS
20483 grep -v '^ *+' conftest.er1 >conftest.err
20484 rm -f conftest.er1
20485 cat conftest.err >&5
a848cd7e
SC
20486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20487 (exit $ac_status); } &&
c9a66001 20488 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20490 (eval $ac_try) 2>&5
20491 ac_status=$?
20492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20493 (exit $ac_status); }; } &&
20494 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20496 (eval $ac_try) 2>&5
20497 ac_status=$?
20498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20499 (exit $ac_status); }; }; then
20500 ac_hi=$ac_mid
20501else
20502 echo "$as_me: failed program was:" >&5
20503sed 's/^/| /' conftest.$ac_ext >&5
20504
20505ac_lo=`expr '(' $ac_mid ')' + 1`
20506fi
ac1cb8d3 20507rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20508done
20509case $ac_lo in
20510?*) ac_cv_sizeof_long_long=$ac_lo;;
20511'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20512See \`config.log' for more details." >&5
20513echo "$as_me: error: cannot compute sizeof (long long), 77
20514See \`config.log' for more details." >&2;}
20515 { (exit 1); exit 1; }; } ;;
20516esac
20517else
20518 if test "$cross_compiling" = yes; then
c9a66001
VZ
20519 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
20520echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
20521 { (exit 1); exit 1; }; }
20522else
20523 cat >conftest.$ac_ext <<_ACEOF
20524/* confdefs.h. */
20525_ACEOF
20526cat confdefs.h >>conftest.$ac_ext
20527cat >>conftest.$ac_ext <<_ACEOF
20528/* end confdefs.h. */
20529$ac_includes_default
20530long longval () { return (long) (sizeof (long long)); }
20531unsigned long ulongval () { return (long) (sizeof (long long)); }
20532#include <stdio.h>
20533#include <stdlib.h>
20534int
20535main ()
20536{
20537
20538 FILE *f = fopen ("conftest.val", "w");
20539 if (! f)
20540 exit (1);
20541 if (((long) (sizeof (long long))) < 0)
20542 {
20543 long i = longval ();
20544 if (i != ((long) (sizeof (long long))))
20545 exit (1);
20546 fprintf (f, "%ld\n", i);
20547 }
20548 else
20549 {
20550 unsigned long i = ulongval ();
20551 if (i != ((long) (sizeof (long long))))
20552 exit (1);
20553 fprintf (f, "%lu\n", i);
20554 }
20555 exit (ferror (f) || fclose (f) != 0);
20556
20557 ;
20558 return 0;
20559}
20560_ACEOF
20561rm -f conftest$ac_exeext
20562if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20563 (eval $ac_link) 2>&5
20564 ac_status=$?
20565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20566 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20568 (eval $ac_try) 2>&5
20569 ac_status=$?
20570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20571 (exit $ac_status); }; }; then
20572 ac_cv_sizeof_long_long=`cat conftest.val`
20573else
20574 echo "$as_me: program exited with status $ac_status" >&5
20575echo "$as_me: failed program was:" >&5
20576sed 's/^/| /' conftest.$ac_ext >&5
20577
20578( exit $ac_status )
20579{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20580See \`config.log' for more details." >&5
20581echo "$as_me: error: cannot compute sizeof (long long), 77
20582See \`config.log' for more details." >&2;}
20583 { (exit 1); exit 1; }; }
20584fi
ac1cb8d3 20585rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20586fi
20587fi
20588rm -f conftest.val
20589else
20590 ac_cv_sizeof_long_long=0
20591fi
20592fi
20593echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
20594echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
20595cat >>confdefs.h <<_ACEOF
20596#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
20597_ACEOF
20598
20599
20600 ;;
20601 *-hp-hpux* )
20602 echo "$as_me:$LINENO: checking for long long" >&5
20603echo $ECHO_N "checking for long long... $ECHO_C" >&6
20604if test "${ac_cv_type_long_long+set}" = set; then
20605 echo $ECHO_N "(cached) $ECHO_C" >&6
20606else
20607 cat >conftest.$ac_ext <<_ACEOF
20608/* confdefs.h. */
20609_ACEOF
20610cat confdefs.h >>conftest.$ac_ext
20611cat >>conftest.$ac_ext <<_ACEOF
20612/* end confdefs.h. */
20613$ac_includes_default
20614int
20615main ()
20616{
20617if ((long long *) 0)
20618 return 0;
20619if (sizeof (long long))
20620 return 0;
20621 ;
20622 return 0;
20623}
20624_ACEOF
20625rm -f conftest.$ac_objext
20626if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20627 (eval $ac_compile) 2>conftest.er1
a848cd7e 20628 ac_status=$?
ac1cb8d3
VS
20629 grep -v '^ *+' conftest.er1 >conftest.err
20630 rm -f conftest.er1
20631 cat conftest.err >&5
a848cd7e
SC
20632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20633 (exit $ac_status); } &&
c9a66001 20634 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20636 (eval $ac_try) 2>&5
20637 ac_status=$?
20638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20639 (exit $ac_status); }; } &&
20640 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20642 (eval $ac_try) 2>&5
20643 ac_status=$?
20644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20645 (exit $ac_status); }; }; then
20646 ac_cv_type_long_long=yes
20647else
20648 echo "$as_me: failed program was:" >&5
20649sed 's/^/| /' conftest.$ac_ext >&5
20650
20651ac_cv_type_long_long=no
20652fi
ac1cb8d3 20653rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20654fi
20655echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
20656echo "${ECHO_T}$ac_cv_type_long_long" >&6
20657
20658echo "$as_me:$LINENO: checking size of long long" >&5
20659echo $ECHO_N "checking size of long long... $ECHO_C" >&6
20660if test "${ac_cv_sizeof_long_long+set}" = set; then
20661 echo $ECHO_N "(cached) $ECHO_C" >&6
20662else
20663 if test "$ac_cv_type_long_long" = yes; then
20664 # The cast to unsigned long works around a bug in the HP C Compiler
20665 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20666 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20667 # This bug is HP SR number 8606223364.
20668 if test "$cross_compiling" = yes; then
20669 # Depending upon the size, compute the lo and hi bounds.
20670cat >conftest.$ac_ext <<_ACEOF
20671/* confdefs.h. */
20672_ACEOF
20673cat confdefs.h >>conftest.$ac_ext
20674cat >>conftest.$ac_ext <<_ACEOF
20675/* end confdefs.h. */
20676$ac_includes_default
20677int
20678main ()
20679{
20680static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
20681test_array [0] = 0
20682
20683 ;
20684 return 0;
20685}
20686_ACEOF
20687rm -f conftest.$ac_objext
20688if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20689 (eval $ac_compile) 2>conftest.er1
a848cd7e 20690 ac_status=$?
ac1cb8d3
VS
20691 grep -v '^ *+' conftest.er1 >conftest.err
20692 rm -f conftest.er1
20693 cat conftest.err >&5
a848cd7e
SC
20694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20695 (exit $ac_status); } &&
c9a66001 20696 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20698 (eval $ac_try) 2>&5
20699 ac_status=$?
20700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20701 (exit $ac_status); }; } &&
20702 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20704 (eval $ac_try) 2>&5
20705 ac_status=$?
20706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20707 (exit $ac_status); }; }; then
20708 ac_lo=0 ac_mid=0
20709 while :; do
20710 cat >conftest.$ac_ext <<_ACEOF
20711/* confdefs.h. */
20712_ACEOF
20713cat confdefs.h >>conftest.$ac_ext
20714cat >>conftest.$ac_ext <<_ACEOF
20715/* end confdefs.h. */
20716$ac_includes_default
20717int
20718main ()
20719{
20720static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20721test_array [0] = 0
20722
20723 ;
20724 return 0;
20725}
20726_ACEOF
20727rm -f conftest.$ac_objext
20728if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20729 (eval $ac_compile) 2>conftest.er1
a848cd7e 20730 ac_status=$?
ac1cb8d3
VS
20731 grep -v '^ *+' conftest.er1 >conftest.err
20732 rm -f conftest.er1
20733 cat conftest.err >&5
a848cd7e
SC
20734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20735 (exit $ac_status); } &&
c9a66001 20736 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20738 (eval $ac_try) 2>&5
20739 ac_status=$?
20740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20741 (exit $ac_status); }; } &&
20742 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20744 (eval $ac_try) 2>&5
20745 ac_status=$?
20746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20747 (exit $ac_status); }; }; then
20748 ac_hi=$ac_mid; break
20749else
20750 echo "$as_me: failed program was:" >&5
20751sed 's/^/| /' conftest.$ac_ext >&5
20752
20753ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
20754 if test $ac_lo -le $ac_mid; then
20755 ac_lo= ac_hi=
20756 break
20757 fi
20758 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 20759fi
ac1cb8d3 20760rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20761 done
20762else
20763 echo "$as_me: failed program was:" >&5
20764sed 's/^/| /' conftest.$ac_ext >&5
20765
20766cat >conftest.$ac_ext <<_ACEOF
20767/* confdefs.h. */
20768_ACEOF
20769cat confdefs.h >>conftest.$ac_ext
20770cat >>conftest.$ac_ext <<_ACEOF
20771/* end confdefs.h. */
20772$ac_includes_default
20773int
20774main ()
20775{
20776static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
20777test_array [0] = 0
20778
20779 ;
20780 return 0;
20781}
20782_ACEOF
20783rm -f conftest.$ac_objext
20784if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20785 (eval $ac_compile) 2>conftest.er1
a848cd7e 20786 ac_status=$?
ac1cb8d3
VS
20787 grep -v '^ *+' conftest.er1 >conftest.err
20788 rm -f conftest.er1
20789 cat conftest.err >&5
a848cd7e
SC
20790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20791 (exit $ac_status); } &&
c9a66001 20792 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20794 (eval $ac_try) 2>&5
20795 ac_status=$?
20796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20797 (exit $ac_status); }; } &&
20798 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20800 (eval $ac_try) 2>&5
20801 ac_status=$?
20802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20803 (exit $ac_status); }; }; then
20804 ac_hi=-1 ac_mid=-1
20805 while :; do
20806 cat >conftest.$ac_ext <<_ACEOF
20807/* confdefs.h. */
20808_ACEOF
20809cat confdefs.h >>conftest.$ac_ext
20810cat >>conftest.$ac_ext <<_ACEOF
20811/* end confdefs.h. */
20812$ac_includes_default
20813int
20814main ()
20815{
20816static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
20817test_array [0] = 0
20818
20819 ;
20820 return 0;
20821}
20822_ACEOF
20823rm -f conftest.$ac_objext
20824if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20825 (eval $ac_compile) 2>conftest.er1
a848cd7e 20826 ac_status=$?
ac1cb8d3
VS
20827 grep -v '^ *+' conftest.er1 >conftest.err
20828 rm -f conftest.er1
20829 cat conftest.err >&5
a848cd7e
SC
20830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20831 (exit $ac_status); } &&
c9a66001 20832 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20834 (eval $ac_try) 2>&5
20835 ac_status=$?
20836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20837 (exit $ac_status); }; } &&
20838 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20840 (eval $ac_try) 2>&5
20841 ac_status=$?
20842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20843 (exit $ac_status); }; }; then
20844 ac_lo=$ac_mid; break
20845else
20846 echo "$as_me: failed program was:" >&5
20847sed 's/^/| /' conftest.$ac_ext >&5
20848
20849ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
20850 if test $ac_mid -le $ac_hi; then
20851 ac_lo= ac_hi=
20852 break
20853 fi
20854 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 20855fi
ac1cb8d3 20856rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20857 done
20858else
20859 echo "$as_me: failed program was:" >&5
20860sed 's/^/| /' conftest.$ac_ext >&5
20861
20862ac_lo= ac_hi=
20863fi
ac1cb8d3 20864rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 20865fi
ac1cb8d3 20866rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20867# Binary search between lo and hi bounds.
20868while test "x$ac_lo" != "x$ac_hi"; do
20869 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20870 cat >conftest.$ac_ext <<_ACEOF
20871/* confdefs.h. */
20872_ACEOF
20873cat confdefs.h >>conftest.$ac_ext
20874cat >>conftest.$ac_ext <<_ACEOF
20875/* end confdefs.h. */
20876$ac_includes_default
20877int
20878main ()
20879{
20880static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20881test_array [0] = 0
20882
20883 ;
20884 return 0;
20885}
20886_ACEOF
20887rm -f conftest.$ac_objext
20888if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20889 (eval $ac_compile) 2>conftest.er1
a848cd7e 20890 ac_status=$?
ac1cb8d3
VS
20891 grep -v '^ *+' conftest.er1 >conftest.err
20892 rm -f conftest.er1
20893 cat conftest.err >&5
a848cd7e
SC
20894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20895 (exit $ac_status); } &&
c9a66001 20896 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20898 (eval $ac_try) 2>&5
20899 ac_status=$?
20900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20901 (exit $ac_status); }; } &&
20902 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20904 (eval $ac_try) 2>&5
20905 ac_status=$?
20906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20907 (exit $ac_status); }; }; then
20908 ac_hi=$ac_mid
20909else
20910 echo "$as_me: failed program was:" >&5
20911sed 's/^/| /' conftest.$ac_ext >&5
20912
20913ac_lo=`expr '(' $ac_mid ')' + 1`
20914fi
ac1cb8d3 20915rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20916done
20917case $ac_lo in
20918?*) ac_cv_sizeof_long_long=$ac_lo;;
20919'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20920See \`config.log' for more details." >&5
20921echo "$as_me: error: cannot compute sizeof (long long), 77
20922See \`config.log' for more details." >&2;}
20923 { (exit 1); exit 1; }; } ;;
20924esac
20925else
20926 if test "$cross_compiling" = yes; then
c9a66001
VZ
20927 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
20928echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
20929 { (exit 1); exit 1; }; }
20930else
20931 cat >conftest.$ac_ext <<_ACEOF
20932/* confdefs.h. */
20933_ACEOF
20934cat confdefs.h >>conftest.$ac_ext
20935cat >>conftest.$ac_ext <<_ACEOF
20936/* end confdefs.h. */
20937$ac_includes_default
20938long longval () { return (long) (sizeof (long long)); }
20939unsigned long ulongval () { return (long) (sizeof (long long)); }
20940#include <stdio.h>
20941#include <stdlib.h>
20942int
20943main ()
20944{
20945
20946 FILE *f = fopen ("conftest.val", "w");
20947 if (! f)
20948 exit (1);
20949 if (((long) (sizeof (long long))) < 0)
20950 {
20951 long i = longval ();
20952 if (i != ((long) (sizeof (long long))))
20953 exit (1);
20954 fprintf (f, "%ld\n", i);
20955 }
20956 else
20957 {
20958 unsigned long i = ulongval ();
20959 if (i != ((long) (sizeof (long long))))
20960 exit (1);
20961 fprintf (f, "%lu\n", i);
20962 }
20963 exit (ferror (f) || fclose (f) != 0);
20964
20965 ;
20966 return 0;
20967}
20968_ACEOF
20969rm -f conftest$ac_exeext
20970if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20971 (eval $ac_link) 2>&5
20972 ac_status=$?
20973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20974 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20976 (eval $ac_try) 2>&5
20977 ac_status=$?
20978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20979 (exit $ac_status); }; }; then
20980 ac_cv_sizeof_long_long=`cat conftest.val`
20981else
20982 echo "$as_me: program exited with status $ac_status" >&5
20983echo "$as_me: failed program was:" >&5
20984sed 's/^/| /' conftest.$ac_ext >&5
20985
20986( exit $ac_status )
20987{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20988See \`config.log' for more details." >&5
20989echo "$as_me: error: cannot compute sizeof (long long), 77
20990See \`config.log' for more details." >&2;}
20991 { (exit 1); exit 1; }; }
20992fi
ac1cb8d3 20993rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20994fi
20995fi
20996rm -f conftest.val
20997else
20998 ac_cv_sizeof_long_long=0
20999fi
21000fi
21001echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
21002echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
21003cat >>confdefs.h <<_ACEOF
21004#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
21005_ACEOF
21006
21007
21008 if test "$ac_cv_sizeof_long_long" != "0"; then
c92ad099 21009 CPPFLAGS="-D_INCLUDE_LONGLONG $CPPFLAGS"
a848cd7e
SC
21010 fi
21011 ;;
21012 * )
21013 echo "$as_me:$LINENO: checking for long long" >&5
21014echo $ECHO_N "checking for long long... $ECHO_C" >&6
21015if test "${ac_cv_type_long_long+set}" = set; then
21016 echo $ECHO_N "(cached) $ECHO_C" >&6
21017else
21018 cat >conftest.$ac_ext <<_ACEOF
21019/* confdefs.h. */
21020_ACEOF
21021cat confdefs.h >>conftest.$ac_ext
21022cat >>conftest.$ac_ext <<_ACEOF
21023/* end confdefs.h. */
21024$ac_includes_default
21025int
21026main ()
21027{
21028if ((long long *) 0)
21029 return 0;
21030if (sizeof (long long))
21031 return 0;
21032 ;
21033 return 0;
21034}
21035_ACEOF
21036rm -f conftest.$ac_objext
21037if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21038 (eval $ac_compile) 2>conftest.er1
a848cd7e 21039 ac_status=$?
ac1cb8d3
VS
21040 grep -v '^ *+' conftest.er1 >conftest.err
21041 rm -f conftest.er1
21042 cat conftest.err >&5
a848cd7e
SC
21043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21044 (exit $ac_status); } &&
c9a66001 21045 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21047 (eval $ac_try) 2>&5
21048 ac_status=$?
21049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21050 (exit $ac_status); }; } &&
21051 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21053 (eval $ac_try) 2>&5
21054 ac_status=$?
21055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21056 (exit $ac_status); }; }; then
21057 ac_cv_type_long_long=yes
21058else
21059 echo "$as_me: failed program was:" >&5
21060sed 's/^/| /' conftest.$ac_ext >&5
21061
21062ac_cv_type_long_long=no
21063fi
ac1cb8d3 21064rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21065fi
21066echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
21067echo "${ECHO_T}$ac_cv_type_long_long" >&6
21068
21069echo "$as_me:$LINENO: checking size of long long" >&5
21070echo $ECHO_N "checking size of long long... $ECHO_C" >&6
21071if test "${ac_cv_sizeof_long_long+set}" = set; then
21072 echo $ECHO_N "(cached) $ECHO_C" >&6
21073else
21074 if test "$ac_cv_type_long_long" = yes; then
21075 # The cast to unsigned long works around a bug in the HP C Compiler
21076 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21077 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21078 # This bug is HP SR number 8606223364.
21079 if test "$cross_compiling" = yes; then
21080 # Depending upon the size, compute the lo and hi bounds.
21081cat >conftest.$ac_ext <<_ACEOF
21082/* confdefs.h. */
21083_ACEOF
21084cat confdefs.h >>conftest.$ac_ext
21085cat >>conftest.$ac_ext <<_ACEOF
21086/* end confdefs.h. */
21087$ac_includes_default
21088int
21089main ()
21090{
21091static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
21092test_array [0] = 0
21093
21094 ;
21095 return 0;
21096}
21097_ACEOF
21098rm -f conftest.$ac_objext
21099if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21100 (eval $ac_compile) 2>conftest.er1
a848cd7e 21101 ac_status=$?
ac1cb8d3
VS
21102 grep -v '^ *+' conftest.er1 >conftest.err
21103 rm -f conftest.er1
21104 cat conftest.err >&5
a848cd7e
SC
21105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21106 (exit $ac_status); } &&
c9a66001 21107 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21109 (eval $ac_try) 2>&5
21110 ac_status=$?
21111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21112 (exit $ac_status); }; } &&
21113 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21115 (eval $ac_try) 2>&5
21116 ac_status=$?
21117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21118 (exit $ac_status); }; }; then
21119 ac_lo=0 ac_mid=0
21120 while :; do
21121 cat >conftest.$ac_ext <<_ACEOF
21122/* confdefs.h. */
21123_ACEOF
21124cat confdefs.h >>conftest.$ac_ext
21125cat >>conftest.$ac_ext <<_ACEOF
21126/* end confdefs.h. */
21127$ac_includes_default
21128int
21129main ()
21130{
21131static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
21132test_array [0] = 0
21133
21134 ;
21135 return 0;
21136}
21137_ACEOF
21138rm -f conftest.$ac_objext
21139if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21140 (eval $ac_compile) 2>conftest.er1
a848cd7e 21141 ac_status=$?
ac1cb8d3
VS
21142 grep -v '^ *+' conftest.er1 >conftest.err
21143 rm -f conftest.er1
21144 cat conftest.err >&5
a848cd7e
SC
21145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21146 (exit $ac_status); } &&
c9a66001 21147 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21149 (eval $ac_try) 2>&5
21150 ac_status=$?
21151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21152 (exit $ac_status); }; } &&
21153 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21155 (eval $ac_try) 2>&5
21156 ac_status=$?
21157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21158 (exit $ac_status); }; }; then
21159 ac_hi=$ac_mid; break
21160else
21161 echo "$as_me: failed program was:" >&5
21162sed 's/^/| /' conftest.$ac_ext >&5
21163
21164ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
21165 if test $ac_lo -le $ac_mid; then
21166 ac_lo= ac_hi=
21167 break
21168 fi
21169 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 21170fi
ac1cb8d3 21171rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21172 done
21173else
21174 echo "$as_me: failed program was:" >&5
21175sed 's/^/| /' conftest.$ac_ext >&5
21176
21177cat >conftest.$ac_ext <<_ACEOF
21178/* confdefs.h. */
21179_ACEOF
21180cat confdefs.h >>conftest.$ac_ext
21181cat >>conftest.$ac_ext <<_ACEOF
21182/* end confdefs.h. */
21183$ac_includes_default
21184int
21185main ()
21186{
21187static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
21188test_array [0] = 0
21189
21190 ;
21191 return 0;
21192}
21193_ACEOF
21194rm -f conftest.$ac_objext
21195if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21196 (eval $ac_compile) 2>conftest.er1
a848cd7e 21197 ac_status=$?
ac1cb8d3
VS
21198 grep -v '^ *+' conftest.er1 >conftest.err
21199 rm -f conftest.er1
21200 cat conftest.err >&5
a848cd7e
SC
21201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21202 (exit $ac_status); } &&
c9a66001 21203 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21205 (eval $ac_try) 2>&5
21206 ac_status=$?
21207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21208 (exit $ac_status); }; } &&
21209 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21211 (eval $ac_try) 2>&5
21212 ac_status=$?
21213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21214 (exit $ac_status); }; }; then
21215 ac_hi=-1 ac_mid=-1
21216 while :; do
21217 cat >conftest.$ac_ext <<_ACEOF
21218/* confdefs.h. */
21219_ACEOF
21220cat confdefs.h >>conftest.$ac_ext
21221cat >>conftest.$ac_ext <<_ACEOF
21222/* end confdefs.h. */
21223$ac_includes_default
21224int
21225main ()
21226{
21227static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
21228test_array [0] = 0
21229
21230 ;
21231 return 0;
21232}
21233_ACEOF
21234rm -f conftest.$ac_objext
21235if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21236 (eval $ac_compile) 2>conftest.er1
a848cd7e 21237 ac_status=$?
ac1cb8d3
VS
21238 grep -v '^ *+' conftest.er1 >conftest.err
21239 rm -f conftest.er1
21240 cat conftest.err >&5
a848cd7e
SC
21241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21242 (exit $ac_status); } &&
c9a66001 21243 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21245 (eval $ac_try) 2>&5
21246 ac_status=$?
21247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21248 (exit $ac_status); }; } &&
21249 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21251 (eval $ac_try) 2>&5
21252 ac_status=$?
21253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21254 (exit $ac_status); }; }; then
21255 ac_lo=$ac_mid; break
21256else
21257 echo "$as_me: failed program was:" >&5
21258sed 's/^/| /' conftest.$ac_ext >&5
21259
21260ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
21261 if test $ac_mid -le $ac_hi; then
21262 ac_lo= ac_hi=
21263 break
21264 fi
21265 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 21266fi
ac1cb8d3 21267rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21268 done
21269else
21270 echo "$as_me: failed program was:" >&5
21271sed 's/^/| /' conftest.$ac_ext >&5
21272
21273ac_lo= ac_hi=
21274fi
ac1cb8d3 21275rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 21276fi
ac1cb8d3 21277rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21278# Binary search between lo and hi bounds.
21279while test "x$ac_lo" != "x$ac_hi"; do
21280 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21281 cat >conftest.$ac_ext <<_ACEOF
21282/* confdefs.h. */
21283_ACEOF
21284cat confdefs.h >>conftest.$ac_ext
21285cat >>conftest.$ac_ext <<_ACEOF
21286/* end confdefs.h. */
21287$ac_includes_default
21288int
21289main ()
21290{
21291static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
21292test_array [0] = 0
21293
21294 ;
21295 return 0;
21296}
21297_ACEOF
21298rm -f conftest.$ac_objext
21299if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21300 (eval $ac_compile) 2>conftest.er1
a848cd7e 21301 ac_status=$?
ac1cb8d3
VS
21302 grep -v '^ *+' conftest.er1 >conftest.err
21303 rm -f conftest.er1
21304 cat conftest.err >&5
a848cd7e
SC
21305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21306 (exit $ac_status); } &&
c9a66001 21307 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21309 (eval $ac_try) 2>&5
21310 ac_status=$?
21311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21312 (exit $ac_status); }; } &&
21313 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21315 (eval $ac_try) 2>&5
21316 ac_status=$?
21317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21318 (exit $ac_status); }; }; then
21319 ac_hi=$ac_mid
21320else
21321 echo "$as_me: failed program was:" >&5
21322sed 's/^/| /' conftest.$ac_ext >&5
21323
21324ac_lo=`expr '(' $ac_mid ')' + 1`
21325fi
ac1cb8d3 21326rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21327done
21328case $ac_lo in
21329?*) ac_cv_sizeof_long_long=$ac_lo;;
21330'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
21331See \`config.log' for more details." >&5
21332echo "$as_me: error: cannot compute sizeof (long long), 77
21333See \`config.log' for more details." >&2;}
21334 { (exit 1); exit 1; }; } ;;
21335esac
21336else
21337 if test "$cross_compiling" = yes; then
c9a66001
VZ
21338 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
21339echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
21340 { (exit 1); exit 1; }; }
21341else
21342 cat >conftest.$ac_ext <<_ACEOF
21343/* confdefs.h. */
21344_ACEOF
21345cat confdefs.h >>conftest.$ac_ext
21346cat >>conftest.$ac_ext <<_ACEOF
21347/* end confdefs.h. */
21348$ac_includes_default
21349long longval () { return (long) (sizeof (long long)); }
21350unsigned long ulongval () { return (long) (sizeof (long long)); }
21351#include <stdio.h>
21352#include <stdlib.h>
21353int
21354main ()
21355{
21356
21357 FILE *f = fopen ("conftest.val", "w");
21358 if (! f)
21359 exit (1);
21360 if (((long) (sizeof (long long))) < 0)
21361 {
21362 long i = longval ();
21363 if (i != ((long) (sizeof (long long))))
21364 exit (1);
21365 fprintf (f, "%ld\n", i);
21366 }
21367 else
21368 {
21369 unsigned long i = ulongval ();
21370 if (i != ((long) (sizeof (long long))))
21371 exit (1);
21372 fprintf (f, "%lu\n", i);
21373 }
21374 exit (ferror (f) || fclose (f) != 0);
21375
21376 ;
21377 return 0;
21378}
21379_ACEOF
21380rm -f conftest$ac_exeext
21381if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21382 (eval $ac_link) 2>&5
21383 ac_status=$?
21384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21385 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21387 (eval $ac_try) 2>&5
21388 ac_status=$?
21389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21390 (exit $ac_status); }; }; then
21391 ac_cv_sizeof_long_long=`cat conftest.val`
21392else
21393 echo "$as_me: program exited with status $ac_status" >&5
21394echo "$as_me: failed program was:" >&5
21395sed 's/^/| /' conftest.$ac_ext >&5
21396
21397( exit $ac_status )
21398{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
21399See \`config.log' for more details." >&5
21400echo "$as_me: error: cannot compute sizeof (long long), 77
21401See \`config.log' for more details." >&2;}
21402 { (exit 1); exit 1; }; }
21403fi
ac1cb8d3 21404rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21405fi
21406fi
21407rm -f conftest.val
21408else
21409 ac_cv_sizeof_long_long=0
21410fi
21411fi
21412echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
21413echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
21414cat >>confdefs.h <<_ACEOF
21415#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
21416_ACEOF
21417
21418
21419esac
21420
238ecede
MW
21421echo "$as_me:$LINENO: checking for wchar_t" >&5
21422echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
21423if test "${ac_cv_type_wchar_t+set}" = set; then
21424 echo $ECHO_N "(cached) $ECHO_C" >&6
21425else
21426 cat >conftest.$ac_ext <<_ACEOF
21427/* confdefs.h. */
21428_ACEOF
21429cat confdefs.h >>conftest.$ac_ext
21430cat >>conftest.$ac_ext <<_ACEOF
21431/* end confdefs.h. */
21432
83d8eb47
MW
21433 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21434 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21435 # error "fake wchar_t"
21436 #endif
21437 #ifdef HAVE_WCHAR_H
21438 # ifdef __CYGWIN__
21439 # include <stddef.h>
21440 # endif
21441 # include <wchar.h>
21442 #endif
21443 #ifdef HAVE_STDLIB_H
21444 # include <stdlib.h>
21445 #endif
21446 #include <stdio.h>
21447
21448
21449
21450int
21451main ()
21452{
21453if ((wchar_t *) 0)
21454 return 0;
21455if (sizeof (wchar_t))
21456 return 0;
21457 ;
21458 return 0;
21459}
21460_ACEOF
21461rm -f conftest.$ac_objext
21462if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21463 (eval $ac_compile) 2>conftest.er1
21464 ac_status=$?
21465 grep -v '^ *+' conftest.er1 >conftest.err
21466 rm -f conftest.er1
21467 cat conftest.err >&5
21468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21469 (exit $ac_status); } &&
c9a66001 21470 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
238ecede
MW
21471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21472 (eval $ac_try) 2>&5
21473 ac_status=$?
21474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21475 (exit $ac_status); }; } &&
21476 { ac_try='test -s conftest.$ac_objext'
21477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21478 (eval $ac_try) 2>&5
21479 ac_status=$?
21480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21481 (exit $ac_status); }; }; then
21482 ac_cv_type_wchar_t=yes
21483else
21484 echo "$as_me: failed program was:" >&5
21485sed 's/^/| /' conftest.$ac_ext >&5
21486
21487ac_cv_type_wchar_t=no
21488fi
21489rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21490fi
21491echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
21492echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
21493
a848cd7e
SC
21494echo "$as_me:$LINENO: checking size of wchar_t" >&5
21495echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
238ecede 21496if test "${ac_cv_sizeof_wchar_t+set}" = set; then
a848cd7e
SC
21497 echo $ECHO_N "(cached) $ECHO_C" >&6
21498else
238ecede
MW
21499 if test "$ac_cv_type_wchar_t" = yes; then
21500 # The cast to unsigned long works around a bug in the HP C Compiler
21501 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21502 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21503 # This bug is HP SR number 8606223364.
21504 if test "$cross_compiling" = yes; then
21505 # Depending upon the size, compute the lo and hi bounds.
21506cat >conftest.$ac_ext <<_ACEOF
21507/* confdefs.h. */
21508_ACEOF
21509cat confdefs.h >>conftest.$ac_ext
21510cat >>conftest.$ac_ext <<_ACEOF
21511/* end confdefs.h. */
21512
83d8eb47
MW
21513 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21514 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21515 # error "fake wchar_t"
21516 #endif
21517 #ifdef HAVE_WCHAR_H
21518 # ifdef __CYGWIN__
21519 # include <stddef.h>
21520 # endif
21521 # include <wchar.h>
21522 #endif
21523 #ifdef HAVE_STDLIB_H
21524 # include <stdlib.h>
21525 #endif
21526 #include <stdio.h>
21527
21528
21529
21530int
21531main ()
21532{
21533static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
21534test_array [0] = 0
21535
21536 ;
21537 return 0;
21538}
21539_ACEOF
21540rm -f conftest.$ac_objext
21541if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21542 (eval $ac_compile) 2>conftest.er1
21543 ac_status=$?
21544 grep -v '^ *+' conftest.er1 >conftest.err
21545 rm -f conftest.er1
21546 cat conftest.err >&5
21547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21548 (exit $ac_status); } &&
c9a66001 21549 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
238ecede
MW
21550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21551 (eval $ac_try) 2>&5
21552 ac_status=$?
21553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21554 (exit $ac_status); }; } &&
21555 { ac_try='test -s conftest.$ac_objext'
21556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21557 (eval $ac_try) 2>&5
21558 ac_status=$?
21559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21560 (exit $ac_status); }; }; then
21561 ac_lo=0 ac_mid=0
21562 while :; do
21563 cat >conftest.$ac_ext <<_ACEOF
21564/* confdefs.h. */
21565_ACEOF
21566cat confdefs.h >>conftest.$ac_ext
21567cat >>conftest.$ac_ext <<_ACEOF
21568/* end confdefs.h. */
21569
83d8eb47
MW
21570 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21571 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21572 # error "fake wchar_t"
21573 #endif
21574 #ifdef HAVE_WCHAR_H
21575 # ifdef __CYGWIN__
21576 # include <stddef.h>
21577 # endif
21578 # include <wchar.h>
21579 #endif
21580 #ifdef HAVE_STDLIB_H
21581 # include <stdlib.h>
21582 #endif
21583 #include <stdio.h>
21584
21585
21586
21587int
21588main ()
21589{
21590static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
21591test_array [0] = 0
21592
21593 ;
21594 return 0;
21595}
21596_ACEOF
21597rm -f conftest.$ac_objext
21598if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21599 (eval $ac_compile) 2>conftest.er1
21600 ac_status=$?
21601 grep -v '^ *+' conftest.er1 >conftest.err
21602 rm -f conftest.er1
21603 cat conftest.err >&5
21604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21605 (exit $ac_status); } &&
c9a66001 21606 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
238ecede
MW
21607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21608 (eval $ac_try) 2>&5
21609 ac_status=$?
21610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21611 (exit $ac_status); }; } &&
21612 { ac_try='test -s conftest.$ac_objext'
21613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21614 (eval $ac_try) 2>&5
21615 ac_status=$?
21616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21617 (exit $ac_status); }; }; then
21618 ac_hi=$ac_mid; break
21619else
21620 echo "$as_me: failed program was:" >&5
21621sed 's/^/| /' conftest.$ac_ext >&5
21622
21623ac_lo=`expr $ac_mid + 1`
21624 if test $ac_lo -le $ac_mid; then
21625 ac_lo= ac_hi=
21626 break
21627 fi
21628 ac_mid=`expr 2 '*' $ac_mid + 1`
21629fi
21630rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21631 done
21632else
21633 echo "$as_me: failed program was:" >&5
21634sed 's/^/| /' conftest.$ac_ext >&5
21635
21636cat >conftest.$ac_ext <<_ACEOF
21637/* confdefs.h. */
21638_ACEOF
21639cat confdefs.h >>conftest.$ac_ext
21640cat >>conftest.$ac_ext <<_ACEOF
21641/* end confdefs.h. */
21642
83d8eb47
MW
21643 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21644 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21645 # error "fake wchar_t"
21646 #endif
21647 #ifdef HAVE_WCHAR_H
21648 # ifdef __CYGWIN__
21649 # include <stddef.h>
21650 # endif
21651 # include <wchar.h>
21652 #endif
21653 #ifdef HAVE_STDLIB_H
21654 # include <stdlib.h>
21655 #endif
21656 #include <stdio.h>
21657
21658
21659
21660int
21661main ()
21662{
21663static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
21664test_array [0] = 0
21665
21666 ;
21667 return 0;
21668}
21669_ACEOF
21670rm -f conftest.$ac_objext
21671if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21672 (eval $ac_compile) 2>conftest.er1
21673 ac_status=$?
21674 grep -v '^ *+' conftest.er1 >conftest.err
21675 rm -f conftest.er1
21676 cat conftest.err >&5
21677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21678 (exit $ac_status); } &&
c9a66001 21679 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
238ecede
MW
21680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21681 (eval $ac_try) 2>&5
21682 ac_status=$?
21683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21684 (exit $ac_status); }; } &&
21685 { ac_try='test -s conftest.$ac_objext'
21686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21687 (eval $ac_try) 2>&5
21688 ac_status=$?
21689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21690 (exit $ac_status); }; }; then
21691 ac_hi=-1 ac_mid=-1
21692 while :; do
21693 cat >conftest.$ac_ext <<_ACEOF
21694/* confdefs.h. */
21695_ACEOF
21696cat confdefs.h >>conftest.$ac_ext
21697cat >>conftest.$ac_ext <<_ACEOF
21698/* end confdefs.h. */
21699
83d8eb47
MW
21700 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21701 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21702 # error "fake wchar_t"
21703 #endif
21704 #ifdef HAVE_WCHAR_H
21705 # ifdef __CYGWIN__
21706 # include <stddef.h>
21707 # endif
21708 # include <wchar.h>
21709 #endif
21710 #ifdef HAVE_STDLIB_H
21711 # include <stdlib.h>
21712 #endif
21713 #include <stdio.h>
21714
21715
21716
21717int
21718main ()
21719{
21720static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
21721test_array [0] = 0
21722
21723 ;
21724 return 0;
21725}
21726_ACEOF
21727rm -f conftest.$ac_objext
21728if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21729 (eval $ac_compile) 2>conftest.er1
21730 ac_status=$?
21731 grep -v '^ *+' conftest.er1 >conftest.err
21732 rm -f conftest.er1
21733 cat conftest.err >&5
21734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21735 (exit $ac_status); } &&
c9a66001 21736 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
238ecede
MW
21737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21738 (eval $ac_try) 2>&5
21739 ac_status=$?
21740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21741 (exit $ac_status); }; } &&
21742 { ac_try='test -s conftest.$ac_objext'
21743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21744 (eval $ac_try) 2>&5
21745 ac_status=$?
21746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21747 (exit $ac_status); }; }; then
21748 ac_lo=$ac_mid; break
21749else
21750 echo "$as_me: failed program was:" >&5
21751sed 's/^/| /' conftest.$ac_ext >&5
21752
21753ac_hi=`expr '(' $ac_mid ')' - 1`
21754 if test $ac_mid -le $ac_hi; then
21755 ac_lo= ac_hi=
21756 break
21757 fi
21758 ac_mid=`expr 2 '*' $ac_mid`
21759fi
21760rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21761 done
21762else
21763 echo "$as_me: failed program was:" >&5
21764sed 's/^/| /' conftest.$ac_ext >&5
21765
21766ac_lo= ac_hi=
21767fi
21768rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21769fi
21770rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21771# Binary search between lo and hi bounds.
21772while test "x$ac_lo" != "x$ac_hi"; do
21773 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21774 cat >conftest.$ac_ext <<_ACEOF
21775/* confdefs.h. */
21776_ACEOF
21777cat confdefs.h >>conftest.$ac_ext
21778cat >>conftest.$ac_ext <<_ACEOF
21779/* end confdefs.h. */
21780
83d8eb47
MW
21781 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21782 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21783 # error "fake wchar_t"
21784 #endif
21785 #ifdef HAVE_WCHAR_H
21786 # ifdef __CYGWIN__
21787 # include <stddef.h>
21788 # endif
21789 # include <wchar.h>
21790 #endif
21791 #ifdef HAVE_STDLIB_H
21792 # include <stdlib.h>
21793 #endif
21794 #include <stdio.h>
a848cd7e 21795
a848cd7e 21796
a848cd7e 21797
238ecede
MW
21798int
21799main ()
21800{
21801static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
21802test_array [0] = 0
a848cd7e 21803
238ecede
MW
21804 ;
21805 return 0;
21806}
21807_ACEOF
21808rm -f conftest.$ac_objext
21809if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21810 (eval $ac_compile) 2>conftest.er1
21811 ac_status=$?
21812 grep -v '^ *+' conftest.er1 >conftest.err
21813 rm -f conftest.er1
21814 cat conftest.err >&5
21815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21816 (exit $ac_status); } &&
c9a66001 21817 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
238ecede
MW
21818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21819 (eval $ac_try) 2>&5
21820 ac_status=$?
21821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21822 (exit $ac_status); }; } &&
21823 { ac_try='test -s conftest.$ac_objext'
21824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21825 (eval $ac_try) 2>&5
21826 ac_status=$?
21827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21828 (exit $ac_status); }; }; then
21829 ac_hi=$ac_mid
21830else
21831 echo "$as_me: failed program was:" >&5
21832sed 's/^/| /' conftest.$ac_ext >&5
21833
21834ac_lo=`expr '(' $ac_mid ')' + 1`
21835fi
21836rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21837done
21838case $ac_lo in
21839?*) ac_cv_sizeof_wchar_t=$ac_lo;;
21840'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
21841See \`config.log' for more details." >&5
21842echo "$as_me: error: cannot compute sizeof (wchar_t), 77
21843See \`config.log' for more details." >&2;}
21844 { (exit 1); exit 1; }; } ;;
21845esac
21846else
21847 if test "$cross_compiling" = yes; then
c9a66001
VZ
21848 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
21849echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
238ecede 21850 { (exit 1); exit 1; }; }
a848cd7e
SC
21851else
21852 cat >conftest.$ac_ext <<_ACEOF
21853/* confdefs.h. */
21854_ACEOF
21855cat confdefs.h >>conftest.$ac_ext
21856cat >>conftest.$ac_ext <<_ACEOF
21857/* end confdefs.h. */
21858
83d8eb47
MW
21859 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21860 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21861 # error "fake wchar_t"
21862 #endif
21863 #ifdef HAVE_WCHAR_H
21864 # ifdef __CYGWIN__
21865 # include <stddef.h>
21866 # endif
21867 # include <wchar.h>
21868 #endif
21869 #ifdef HAVE_STDLIB_H
21870 # include <stdlib.h>
21871 #endif
21872 #include <stdio.h>
21873
21874
21875
21876long longval () { return (long) (sizeof (wchar_t)); }
21877unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
21878#include <stdio.h>
21879#include <stdlib.h>
21880int
21881main ()
21882{
a848cd7e 21883
238ecede
MW
21884 FILE *f = fopen ("conftest.val", "w");
21885 if (! f)
21886 exit (1);
21887 if (((long) (sizeof (wchar_t))) < 0)
21888 {
21889 long i = longval ();
21890 if (i != ((long) (sizeof (wchar_t))))
21891 exit (1);
21892 fprintf (f, "%ld\n", i);
21893 }
21894 else
21895 {
21896 unsigned long i = ulongval ();
21897 if (i != ((long) (sizeof (wchar_t))))
21898 exit (1);
21899 fprintf (f, "%lu\n", i);
21900 }
21901 exit (ferror (f) || fclose (f) != 0);
21902
21903 ;
21904 return 0;
21905}
a848cd7e
SC
21906_ACEOF
21907rm -f conftest$ac_exeext
21908if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21909 (eval $ac_link) 2>&5
21910 ac_status=$?
21911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21912 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21914 (eval $ac_try) 2>&5
21915 ac_status=$?
21916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21917 (exit $ac_status); }; }; then
238ecede 21918 ac_cv_sizeof_wchar_t=`cat conftest.val`
a848cd7e
SC
21919else
21920 echo "$as_me: program exited with status $ac_status" >&5
21921echo "$as_me: failed program was:" >&5
21922sed 's/^/| /' conftest.$ac_ext >&5
21923
21924( exit $ac_status )
238ecede
MW
21925{ { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
21926See \`config.log' for more details." >&5
21927echo "$as_me: error: cannot compute sizeof (wchar_t), 77
21928See \`config.log' for more details." >&2;}
21929 { (exit 1); exit 1; }; }
a848cd7e 21930fi
ac1cb8d3 21931rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 21932fi
a848cd7e 21933fi
238ecede
MW
21934rm -f conftest.val
21935else
21936 ac_cv_sizeof_wchar_t=0
21937fi
21938fi
21939echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
21940echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
a848cd7e 21941cat >>confdefs.h <<_ACEOF
238ecede 21942#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
a848cd7e
SC
21943_ACEOF
21944
21945
47a7e797
MW
21946if test "$ac_cv_sizeof_wchar_t" != "0"; then
21947 wxUSE_WCHAR_T=yes
21948else
21949 wxUSE_WCHAR_T=no
21950fi
238ecede 21951
ba3d13e1
VZ
21952echo "$as_me:$LINENO: checking for va_copy" >&5
21953echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
21954if test "${wx_cv_func_va_copy+set}" = set; then
21955 echo $ECHO_N "(cached) $ECHO_C" >&6
21956else
21957
21958 cat >conftest.$ac_ext <<_ACEOF
21959
21960 #include <stdarg.h>
21961 void foo(char *f, ...)
21962 {
21963 va_list ap1, ap2;
21964 va_start(ap1, f);
21965 va_copy(ap2, ap1);
21966 va_end(ap2);
21967 va_end(ap1);
21968 }
5886b072
VZ
21969 int main()
21970 {
b902e639
VZ
21971 foo("hi", 17);
21972 return 0;
5886b072 21973 }
ba3d13e1
VZ
21974_ACEOF
21975rm -f conftest.$ac_objext conftest$ac_exeext
21976if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21977 (eval $ac_link) 2>conftest.er1
21978 ac_status=$?
21979 grep -v '^ *+' conftest.er1 >conftest.err
21980 rm -f conftest.er1
21981 cat conftest.err >&5
21982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21983 (exit $ac_status); } &&
c9a66001 21984 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ba3d13e1
VZ
21985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21986 (eval $ac_try) 2>&5
21987 ac_status=$?
21988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21989 (exit $ac_status); }; } &&
21990 { ac_try='test -s conftest$ac_exeext'
21991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21992 (eval $ac_try) 2>&5
21993 ac_status=$?
21994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21995 (exit $ac_status); }; }; then
21996 wx_cv_func_va_copy=yes
21997else
21998 echo "$as_me: failed program was:" >&5
21999sed 's/^/| /' conftest.$ac_ext >&5
22000
22001wx_cv_func_va_copy=no
22002
22003fi
22004rm -f conftest.err conftest.$ac_objext \
22005 conftest$ac_exeext conftest.$ac_ext
22006
22007
22008fi
22009echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
22010echo "${ECHO_T}$wx_cv_func_va_copy" >&6
22011
22012if test $wx_cv_func_va_copy = "yes"; then
22013 cat >>confdefs.h <<\_ACEOF
22014#define HAVE_VA_COPY 1
22015_ACEOF
22016
22017else
22018 echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
22019echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6
22020if test "${wx_cv_type_va_list_lvalue+set}" = set; then
22021 echo $ECHO_N "(cached) $ECHO_C" >&6
22022else
22023
22024 if test "$cross_compiling" = yes; then
22025 wx_cv_type_va_list_lvalue=yes
22026
22027else
22028 cat >conftest.$ac_ext <<_ACEOF
22029
22030 #include <stdarg.h>
22031 int foo(char *f, ...)
22032 {
22033 va_list ap1, ap2;
22034 va_start(ap1, f);
22035 ap2 = ap1;
22036 if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
22037 return 1;
22038 va_end(ap2);
22039 va_end(ap1);
22040 return 0;
22041 }
22042 int main()
22043 {
22044 return foo("hi", 17);
22045 }
22046_ACEOF
22047rm -f conftest$ac_exeext
22048if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22049 (eval $ac_link) 2>&5
22050 ac_status=$?
22051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22052 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22054 (eval $ac_try) 2>&5
22055 ac_status=$?
22056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22057 (exit $ac_status); }; }; then
22058 wx_cv_type_va_list_lvalue=yes
22059else
22060 echo "$as_me: program exited with status $ac_status" >&5
22061echo "$as_me: failed program was:" >&5
22062sed 's/^/| /' conftest.$ac_ext >&5
22063
22064( exit $ac_status )
22065wx_cv_type_va_list_lvalue=no
22066fi
22067rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22068fi
22069
22070
22071fi
22072echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
22073echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6
22074
22075 if test $wx_cv_type_va_list_lvalue != "yes"; then
22076 cat >>confdefs.h <<\_ACEOF
22077#define VA_LIST_IS_ARRAY 1
22078_ACEOF
22079
22080 fi
22081fi
22082
a848cd7e
SC
22083# Check whether --enable-largefile or --disable-largefile was given.
22084if test "${enable_largefile+set}" = set; then
22085 enableval="$enable_largefile"
22086
22087fi;
22088if test "$enable_largefile" != no; then
22089 wx_largefile=no
22090
22091 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
22092echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
22093if test "${ac_cv_sys_file_offset_bits+set}" = set; then
22094 echo $ECHO_N "(cached) $ECHO_C" >&6
22095else
22096
22097 cat >conftest.$ac_ext <<_ACEOF
22098/* confdefs.h. */
22099_ACEOF
22100cat confdefs.h >>conftest.$ac_ext
22101cat >>conftest.$ac_ext <<_ACEOF
22102/* end confdefs.h. */
22103#define _FILE_OFFSET_BITS 64
22104 #include <sys/types.h>
22105int
22106main ()
22107{
22108typedef struct {
22109 unsigned int field: sizeof(off_t) == 8;
22110} wxlf;
22111
22112 ;
22113 return 0;
22114}
22115_ACEOF
22116rm -f conftest.$ac_objext
22117if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22118 (eval $ac_compile) 2>conftest.er1
a848cd7e 22119 ac_status=$?
ac1cb8d3
VS
22120 grep -v '^ *+' conftest.er1 >conftest.err
22121 rm -f conftest.er1
22122 cat conftest.err >&5
a848cd7e
SC
22123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22124 (exit $ac_status); } &&
c9a66001 22125 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22127 (eval $ac_try) 2>&5
22128 ac_status=$?
22129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22130 (exit $ac_status); }; } &&
22131 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22133 (eval $ac_try) 2>&5
22134 ac_status=$?
22135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22136 (exit $ac_status); }; }; then
22137 ac_cv_sys_file_offset_bits=64
22138else
22139 echo "$as_me: failed program was:" >&5
22140sed 's/^/| /' conftest.$ac_ext >&5
22141
22142ac_cv_sys_file_offset_bits=no
22143fi
ac1cb8d3 22144rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22145
22146
22147fi
22148echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
22149echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
22150
22151 if test "$ac_cv_sys_file_offset_bits" != no; then
22152 wx_largefile=yes
22153 cat >>confdefs.h <<_ACEOF
22154#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
22155_ACEOF
22156
22157 fi
22158
22159 if test "x$wx_largefile" != "xyes"; then
22160
22161 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
22162echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
22163if test "${ac_cv_sys_large_files+set}" = set; then
22164 echo $ECHO_N "(cached) $ECHO_C" >&6
22165else
22166
22167 cat >conftest.$ac_ext <<_ACEOF
22168/* confdefs.h. */
22169_ACEOF
22170cat confdefs.h >>conftest.$ac_ext
22171cat >>conftest.$ac_ext <<_ACEOF
22172/* end confdefs.h. */
22173#define _LARGE_FILES 1
22174 #include <sys/types.h>
22175int
22176main ()
22177{
22178typedef struct {
22179 unsigned int field: sizeof(off_t) == 8;
22180} wxlf;
22181
22182 ;
22183 return 0;
22184}
22185_ACEOF
22186rm -f conftest.$ac_objext
22187if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22188 (eval $ac_compile) 2>conftest.er1
a848cd7e 22189 ac_status=$?
ac1cb8d3
VS
22190 grep -v '^ *+' conftest.er1 >conftest.err
22191 rm -f conftest.er1
22192 cat conftest.err >&5
a848cd7e
SC
22193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22194 (exit $ac_status); } &&
c9a66001 22195 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22197 (eval $ac_try) 2>&5
22198 ac_status=$?
22199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22200 (exit $ac_status); }; } &&
22201 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22203 (eval $ac_try) 2>&5
22204 ac_status=$?
22205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22206 (exit $ac_status); }; }; then
22207 ac_cv_sys_large_files=1
22208else
22209 echo "$as_me: failed program was:" >&5
22210sed 's/^/| /' conftest.$ac_ext >&5
22211
22212ac_cv_sys_large_files=no
22213fi
ac1cb8d3 22214rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22215
22216
22217fi
22218echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
22219echo "${ECHO_T}$ac_cv_sys_large_files" >&6
22220
22221 if test "$ac_cv_sys_large_files" != no; then
22222 wx_largefile=yes
22223 cat >>confdefs.h <<_ACEOF
22224#define _LARGE_FILES $ac_cv_sys_large_files
22225_ACEOF
22226
22227 fi
22228
22229 fi
22230
22231 echo "$as_me:$LINENO: checking if large file support is available" >&5
22232echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
22233 if test "x$wx_largefile" = "xyes"; then
22234 cat >>confdefs.h <<\_ACEOF
22235#define HAVE_LARGEFILE_SUPPORT 1
22236_ACEOF
22237
22238 fi
22239 echo "$as_me:$LINENO: result: $wx_largefile" >&5
22240echo "${ECHO_T}$wx_largefile" >&6
22241fi
22242
5b674b9d
DE
22243
22244if test "x$wx_largefile" = "xyes"; then
22245 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
5ff751d6 22246 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
00421666
MW
22247
22248 if test "$USE_HPUX" = 1 -a "$GXX" = "yes"; then
22249 echo "$as_me:$LINENO: checking if -D__STDC_EXT__ is required" >&5
22250echo $ECHO_N "checking if -D__STDC_EXT__ is required... $ECHO_C" >&6
22251if test "${wx_cv_STDC_EXT_required+set}" = set; then
22252 echo $ECHO_N "(cached) $ECHO_C" >&6
22253else
22254
00421666
MW
22255 cat >conftest.$ac_ext <<_ACEOF
22256/* confdefs.h. */
22257_ACEOF
22258cat confdefs.h >>conftest.$ac_ext
22259cat >>conftest.$ac_ext <<_ACEOF
22260/* end confdefs.h. */
22261
22262int
22263main ()
22264{
22265
22266 #ifndef __STDC_EXT__
22267 choke me
22268 #endif
22269
22270 ;
22271 return 0;
22272}
22273_ACEOF
22274rm -f conftest.$ac_objext
22275if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22276 (eval $ac_compile) 2>conftest.er1
22277 ac_status=$?
22278 grep -v '^ *+' conftest.er1 >conftest.err
22279 rm -f conftest.er1
22280 cat conftest.err >&5
22281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22282 (exit $ac_status); } &&
c9a66001 22283 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
00421666
MW
22284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22285 (eval $ac_try) 2>&5
22286 ac_status=$?
22287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22288 (exit $ac_status); }; } &&
22289 { ac_try='test -s conftest.$ac_objext'
22290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22291 (eval $ac_try) 2>&5
22292 ac_status=$?
22293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22294 (exit $ac_status); }; }; then
22295 wx_cv_STDC_EXT_required=no
22296else
22297 echo "$as_me: failed program was:" >&5
22298sed 's/^/| /' conftest.$ac_ext >&5
22299
22300wx_cv_STDC_EXT_required=yes
22301
22302fi
22303rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
00421666
MW
22304
22305
22306fi
22307echo "$as_me:$LINENO: result: $wx_cv_STDC_EXT_required" >&5
22308echo "${ECHO_T}$wx_cv_STDC_EXT_required" >&6
22309 if test "x$wx_cv_STDC_EXT_required" = "xyes"; then
5ff751d6 22310 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -D__STDC_EXT__"
00421666
MW
22311 fi
22312 fi
5b674b9d 22313 else
5ff751d6 22314 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGE_FILES"
5b674b9d
DE
22315 fi
22316 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
5294a27e
VZ
22317echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
22318if test "${ac_cv_sys_largefile_source+set}" = set; then
22319 echo $ECHO_N "(cached) $ECHO_C" >&6
22320else
22321 while :; do
22322 ac_cv_sys_largefile_source=no
22323 cat >conftest.$ac_ext <<_ACEOF
22324/* confdefs.h. */
22325_ACEOF
22326cat confdefs.h >>conftest.$ac_ext
22327cat >>conftest.$ac_ext <<_ACEOF
22328/* end confdefs.h. */
22329#include <stdio.h>
22330int
22331main ()
22332{
22333return !fseeko;
22334 ;
22335 return 0;
22336}
22337_ACEOF
22338rm -f conftest.$ac_objext
22339if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22340 (eval $ac_compile) 2>conftest.er1
22341 ac_status=$?
22342 grep -v '^ *+' conftest.er1 >conftest.err
22343 rm -f conftest.er1
22344 cat conftest.err >&5
22345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22346 (exit $ac_status); } &&
c9a66001 22347 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
22348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22349 (eval $ac_try) 2>&5
22350 ac_status=$?
22351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22352 (exit $ac_status); }; } &&
22353 { ac_try='test -s conftest.$ac_objext'
22354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22355 (eval $ac_try) 2>&5
22356 ac_status=$?
22357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22358 (exit $ac_status); }; }; then
22359 break
22360else
22361 echo "$as_me: failed program was:" >&5
22362sed 's/^/| /' conftest.$ac_ext >&5
22363
22364fi
22365rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22366 cat >conftest.$ac_ext <<_ACEOF
22367/* confdefs.h. */
22368_ACEOF
22369cat confdefs.h >>conftest.$ac_ext
22370cat >>conftest.$ac_ext <<_ACEOF
22371/* end confdefs.h. */
22372#define _LARGEFILE_SOURCE 1
22373#include <stdio.h>
22374int
22375main ()
22376{
22377return !fseeko;
22378 ;
22379 return 0;
22380}
22381_ACEOF
22382rm -f conftest.$ac_objext
22383if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22384 (eval $ac_compile) 2>conftest.er1
22385 ac_status=$?
22386 grep -v '^ *+' conftest.er1 >conftest.err
22387 rm -f conftest.er1
22388 cat conftest.err >&5
22389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22390 (exit $ac_status); } &&
c9a66001 22391 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
22392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22393 (eval $ac_try) 2>&5
22394 ac_status=$?
22395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22396 (exit $ac_status); }; } &&
22397 { ac_try='test -s conftest.$ac_objext'
22398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22399 (eval $ac_try) 2>&5
22400 ac_status=$?
22401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22402 (exit $ac_status); }; }; then
22403 ac_cv_sys_largefile_source=1; break
22404else
22405 echo "$as_me: failed program was:" >&5
22406sed 's/^/| /' conftest.$ac_ext >&5
22407
22408fi
22409rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22410 break
22411done
22412fi
22413echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
22414echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
22415if test "$ac_cv_sys_largefile_source" != no; then
22416
22417cat >>confdefs.h <<_ACEOF
22418#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
22419_ACEOF
22420
22421fi
22422rm -f conftest*
22423
22424# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
22425# in glibc 2.1.3, but that breaks too many other things.
22426# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
22427echo "$as_me:$LINENO: checking for fseeko" >&5
22428echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
22429if test "${ac_cv_func_fseeko+set}" = set; then
22430 echo $ECHO_N "(cached) $ECHO_C" >&6
22431else
22432 cat >conftest.$ac_ext <<_ACEOF
22433/* confdefs.h. */
22434_ACEOF
22435cat confdefs.h >>conftest.$ac_ext
22436cat >>conftest.$ac_ext <<_ACEOF
22437/* end confdefs.h. */
22438#include <stdio.h>
22439int
22440main ()
22441{
22442return fseeko && fseeko (stdin, 0, 0);
22443 ;
22444 return 0;
22445}
22446_ACEOF
22447rm -f conftest.$ac_objext conftest$ac_exeext
22448if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22449 (eval $ac_link) 2>conftest.er1
22450 ac_status=$?
22451 grep -v '^ *+' conftest.er1 >conftest.err
22452 rm -f conftest.er1
22453 cat conftest.err >&5
22454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22455 (exit $ac_status); } &&
c9a66001 22456 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
22457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22458 (eval $ac_try) 2>&5
22459 ac_status=$?
22460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22461 (exit $ac_status); }; } &&
22462 { ac_try='test -s conftest$ac_exeext'
22463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22464 (eval $ac_try) 2>&5
22465 ac_status=$?
22466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22467 (exit $ac_status); }; }; then
22468 ac_cv_func_fseeko=yes
22469else
22470 echo "$as_me: failed program was:" >&5
22471sed 's/^/| /' conftest.$ac_ext >&5
22472
22473ac_cv_func_fseeko=no
22474fi
22475rm -f conftest.err conftest.$ac_objext \
22476 conftest$ac_exeext conftest.$ac_ext
22477fi
22478echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
22479echo "${ECHO_T}$ac_cv_func_fseeko" >&6
22480if test $ac_cv_func_fseeko = yes; then
22481
22482cat >>confdefs.h <<\_ACEOF
22483#define HAVE_FSEEKO 1
22484_ACEOF
22485
22486fi
22487
5b674b9d 22488 if test "$ac_cv_sys_largefile_source" != no; then
5ff751d6 22489 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
a848cd7e 22490 fi
a848cd7e
SC
22491fi
22492
22493echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
22494echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
22495if test "${ac_cv_c_bigendian+set}" = set; then
22496 echo $ECHO_N "(cached) $ECHO_C" >&6
22497else
22498 ac_cv_c_bigendian=unknown
22499# See if sys/param.h defines the BYTE_ORDER macro.
22500cat >conftest.$ac_ext <<_ACEOF
22501/* confdefs.h. */
22502_ACEOF
22503cat confdefs.h >>conftest.$ac_ext
22504cat >>conftest.$ac_ext <<_ACEOF
22505/* end confdefs.h. */
22506#include <sys/types.h>
22507#include <sys/param.h>
22508int
22509main ()
22510{
22511
22512#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
22513 bogus endian macros
22514#endif
22515 ;
22516 return 0;
22517}
22518_ACEOF
22519rm -f conftest.$ac_objext
22520if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22521 (eval $ac_compile) 2>conftest.er1
a848cd7e 22522 ac_status=$?
ac1cb8d3
VS
22523 grep -v '^ *+' conftest.er1 >conftest.err
22524 rm -f conftest.er1
22525 cat conftest.err >&5
a848cd7e
SC
22526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22527 (exit $ac_status); } &&
c9a66001 22528 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22530 (eval $ac_try) 2>&5
22531 ac_status=$?
22532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22533 (exit $ac_status); }; } &&
22534 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22536 (eval $ac_try) 2>&5
22537 ac_status=$?
22538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22539 (exit $ac_status); }; }; then
22540 # It does; now see whether it defined to BIG_ENDIAN or not.
22541cat >conftest.$ac_ext <<_ACEOF
22542/* confdefs.h. */
22543_ACEOF
22544cat confdefs.h >>conftest.$ac_ext
22545cat >>conftest.$ac_ext <<_ACEOF
22546/* end confdefs.h. */
22547#include <sys/types.h>
22548#include <sys/param.h>
22549int
22550main ()
22551{
22552
22553#if BYTE_ORDER != BIG_ENDIAN
22554 not big endian
22555#endif
22556 ;
22557 return 0;
22558}
22559_ACEOF
22560rm -f conftest.$ac_objext
22561if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22562 (eval $ac_compile) 2>conftest.er1
a848cd7e 22563 ac_status=$?
ac1cb8d3
VS
22564 grep -v '^ *+' conftest.er1 >conftest.err
22565 rm -f conftest.er1
22566 cat conftest.err >&5
a848cd7e
SC
22567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22568 (exit $ac_status); } &&
c9a66001 22569 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22571 (eval $ac_try) 2>&5
22572 ac_status=$?
22573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22574 (exit $ac_status); }; } &&
22575 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22577 (eval $ac_try) 2>&5
22578 ac_status=$?
22579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22580 (exit $ac_status); }; }; then
22581 ac_cv_c_bigendian=yes
22582else
22583 echo "$as_me: failed program was:" >&5
22584sed 's/^/| /' conftest.$ac_ext >&5
22585
22586ac_cv_c_bigendian=no
22587fi
ac1cb8d3 22588rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22589else
22590 echo "$as_me: failed program was:" >&5
22591sed 's/^/| /' conftest.$ac_ext >&5
22592
22593fi
ac1cb8d3 22594rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22595if test $ac_cv_c_bigendian = unknown; then
22596if test "$cross_compiling" = yes; then
22597 ac_cv_c_bigendian=unknown
22598else
22599 cat >conftest.$ac_ext <<_ACEOF
22600/* confdefs.h. */
22601_ACEOF
22602cat confdefs.h >>conftest.$ac_ext
22603cat >>conftest.$ac_ext <<_ACEOF
22604/* end confdefs.h. */
22605main () {
22606 /* Are we little or big endian? From Harbison&Steele. */
22607 union
22608 {
22609 long l;
22610 char c[sizeof (long)];
22611 } u;
22612 u.l = 1;
22613 exit (u.c[sizeof (long) - 1] == 1);
22614}
22615_ACEOF
22616rm -f conftest$ac_exeext
22617if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22618 (eval $ac_link) 2>&5
22619 ac_status=$?
22620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22621 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22623 (eval $ac_try) 2>&5
22624 ac_status=$?
22625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22626 (exit $ac_status); }; }; then
22627 ac_cv_c_bigendian=no
22628else
22629 echo "$as_me: program exited with status $ac_status" >&5
22630echo "$as_me: failed program was:" >&5
22631sed 's/^/| /' conftest.$ac_ext >&5
22632
22633( exit $ac_status )
22634ac_cv_c_bigendian=yes
22635fi
ac1cb8d3 22636rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22637fi
22638fi
22639fi
22640echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
22641echo "${ECHO_T}$ac_cv_c_bigendian" >&6
22642if test $ac_cv_c_bigendian = unknown; then
22643 { 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
22644echo "$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;}
22645fi
22646if test $ac_cv_c_bigendian = yes; then
22647 cat >>confdefs.h <<\_ACEOF
22648#define WORDS_BIGENDIAN 1
22649_ACEOF
22650
22651fi
22652
22653
a848cd7e
SC
22654
22655
22656
22657 ac_ext=cc
22658ac_cpp='$CXXCPP $CPPFLAGS'
22659ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22660ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22661ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22662
22663
22664
22665for ac_header in iostream
22666do
22667as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22668if eval "test \"\${$as_ac_Header+set}\" = set"; then
22669 echo "$as_me:$LINENO: checking for $ac_header" >&5
22670echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22671if eval "test \"\${$as_ac_Header+set}\" = set"; then
22672 echo $ECHO_N "(cached) $ECHO_C" >&6
22673fi
22674echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22675echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22676else
22677 # Is the header compilable?
22678echo "$as_me:$LINENO: checking $ac_header usability" >&5
22679echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22680cat >conftest.$ac_ext <<_ACEOF
22681/* confdefs.h. */
22682_ACEOF
22683cat confdefs.h >>conftest.$ac_ext
22684cat >>conftest.$ac_ext <<_ACEOF
22685/* end confdefs.h. */
22686$ac_includes_default
22687#include <$ac_header>
22688_ACEOF
22689rm -f conftest.$ac_objext
22690if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22691 (eval $ac_compile) 2>conftest.er1
a848cd7e 22692 ac_status=$?
ac1cb8d3
VS
22693 grep -v '^ *+' conftest.er1 >conftest.err
22694 rm -f conftest.er1
22695 cat conftest.err >&5
a848cd7e
SC
22696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22697 (exit $ac_status); } &&
c9a66001 22698 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22700 (eval $ac_try) 2>&5
22701 ac_status=$?
22702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22703 (exit $ac_status); }; } &&
22704 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22706 (eval $ac_try) 2>&5
22707 ac_status=$?
22708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22709 (exit $ac_status); }; }; then
22710 ac_header_compiler=yes
22711else
22712 echo "$as_me: failed program was:" >&5
22713sed 's/^/| /' conftest.$ac_ext >&5
22714
22715ac_header_compiler=no
22716fi
ac1cb8d3 22717rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22718echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22719echo "${ECHO_T}$ac_header_compiler" >&6
22720
22721# Is the header present?
22722echo "$as_me:$LINENO: checking $ac_header presence" >&5
22723echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22724cat >conftest.$ac_ext <<_ACEOF
22725/* confdefs.h. */
22726_ACEOF
22727cat confdefs.h >>conftest.$ac_ext
22728cat >>conftest.$ac_ext <<_ACEOF
22729/* end confdefs.h. */
22730#include <$ac_header>
22731_ACEOF
22732if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22733 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22734 ac_status=$?
22735 grep -v '^ *+' conftest.er1 >conftest.err
22736 rm -f conftest.er1
22737 cat conftest.err >&5
22738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22739 (exit $ac_status); } >/dev/null; then
22740 if test -s conftest.err; then
22741 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 22742 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
22743 else
22744 ac_cpp_err=
22745 fi
22746else
22747 ac_cpp_err=yes
22748fi
22749if test -z "$ac_cpp_err"; then
22750 ac_header_preproc=yes
22751else
22752 echo "$as_me: failed program was:" >&5
22753sed 's/^/| /' conftest.$ac_ext >&5
22754
22755 ac_header_preproc=no
22756fi
22757rm -f conftest.err conftest.$ac_ext
22758echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22759echo "${ECHO_T}$ac_header_preproc" >&6
22760
22761# So? What about this header?
ac1cb8d3
VS
22762case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
22763 yes:no: )
a848cd7e
SC
22764 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22765echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22766 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22767echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22768 ac_header_preproc=yes
a848cd7e 22769 ;;
ac1cb8d3 22770 no:yes:* )
a848cd7e
SC
22771 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22772echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22773 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22774echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22775 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22776echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22777 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22778echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22779 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22780echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22781 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22782echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22783 (
22784 cat <<\_ASBOX
ac1cb8d3
VS
22785## ----------------------------------------- ##
22786## Report this to wx-dev@lists.wxwidgets.org ##
22787## ----------------------------------------- ##
a848cd7e
SC
22788_ASBOX
22789 ) |
22790 sed "s/^/$as_me: WARNING: /" >&2
22791 ;;
22792esac
22793echo "$as_me:$LINENO: checking for $ac_header" >&5
22794echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22795if eval "test \"\${$as_ac_Header+set}\" = set"; then
22796 echo $ECHO_N "(cached) $ECHO_C" >&6
22797else
ac1cb8d3 22798 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
22799fi
22800echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22801echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22802
22803fi
22804if test `eval echo '${'$as_ac_Header'}'` = yes; then
22805 cat >>confdefs.h <<_ACEOF
22806#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22807_ACEOF
22808
22809fi
22810
22811done
22812
22813
22814 if test "$ac_cv_header_iostream" = "yes" ; then
22815 :
22816 else
22817 cat >>confdefs.h <<\_ACEOF
22818#define wxUSE_IOSTREAMH 1
22819_ACEOF
22820
22821 fi
22822
5d7b7554
VZ
22823 ac_ext=cc
22824ac_cpp='$CXXCPP $CPPFLAGS'
22825ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22826ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22827ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a848cd7e
SC
22828
22829
22830
22831
22832 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
22833echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
22834if test "${wx_cv_cpp_bool+set}" = set; then
22835 echo $ECHO_N "(cached) $ECHO_C" >&6
22836else
22837
22838
22839
22840 ac_ext=cc
22841ac_cpp='$CXXCPP $CPPFLAGS'
22842ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22843ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22844ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22845
22846
22847 cat >conftest.$ac_ext <<_ACEOF
22848/* confdefs.h. */
22849_ACEOF
22850cat confdefs.h >>conftest.$ac_ext
22851cat >>conftest.$ac_ext <<_ACEOF
22852/* end confdefs.h. */
22853
22854
22855int
22856main ()
22857{
22858
22859 bool b = true;
22860
22861 return 0;
22862
22863 ;
22864 return 0;
22865}
22866_ACEOF
22867rm -f conftest.$ac_objext
22868if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22869 (eval $ac_compile) 2>conftest.er1
a848cd7e 22870 ac_status=$?
ac1cb8d3
VS
22871 grep -v '^ *+' conftest.er1 >conftest.err
22872 rm -f conftest.er1
22873 cat conftest.err >&5
a848cd7e
SC
22874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22875 (exit $ac_status); } &&
c9a66001 22876 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22878 (eval $ac_try) 2>&5
22879 ac_status=$?
22880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22881 (exit $ac_status); }; } &&
22882 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22884 (eval $ac_try) 2>&5
22885 ac_status=$?
22886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22887 (exit $ac_status); }; }; then
22888
22889 wx_cv_cpp_bool=yes
22890
22891else
22892 echo "$as_me: failed program was:" >&5
22893sed 's/^/| /' conftest.$ac_ext >&5
22894
22895
22896 wx_cv_cpp_bool=no
22897
22898
22899fi
ac1cb8d3 22900rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 22901
5d7b7554
VZ
22902 ac_ext=cc
22903ac_cpp='$CXXCPP $CPPFLAGS'
22904ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22905ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22906ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a848cd7e
SC
22907
22908
22909fi
22910echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
22911echo "${ECHO_T}$wx_cv_cpp_bool" >&6
22912
22913 if test "$wx_cv_cpp_bool" = "yes"; then
22914 cat >>confdefs.h <<\_ACEOF
22915#define HAVE_BOOL 1
22916_ACEOF
22917
22918 fi
22919
22920
22921
22922 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
22923echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
22924if test "${wx_cv_explicit+set}" = set; then
22925 echo $ECHO_N "(cached) $ECHO_C" >&6
22926else
22927
22928
22929
22930 ac_ext=cc
22931ac_cpp='$CXXCPP $CPPFLAGS'
22932ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22933ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22934ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22935
22936
22937 cat >conftest.$ac_ext <<_ACEOF
22938/* confdefs.h. */
22939_ACEOF
22940cat confdefs.h >>conftest.$ac_ext
22941cat >>conftest.$ac_ext <<_ACEOF
22942/* end confdefs.h. */
22943
22944 class Foo { public: explicit Foo(int) {} };
22945
22946int
22947main ()
22948{
22949
22950 return 0;
22951
22952 ;
22953 return 0;
22954}
22955_ACEOF
22956rm -f conftest.$ac_objext
22957if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22958 (eval $ac_compile) 2>conftest.er1
a848cd7e 22959 ac_status=$?
ac1cb8d3
VS
22960 grep -v '^ *+' conftest.er1 >conftest.err
22961 rm -f conftest.er1
22962 cat conftest.err >&5
a848cd7e
SC
22963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22964 (exit $ac_status); } &&
c9a66001 22965 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22967 (eval $ac_try) 2>&5
22968 ac_status=$?
22969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22970 (exit $ac_status); }; } &&
22971 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22973 (eval $ac_try) 2>&5
22974 ac_status=$?
22975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22976 (exit $ac_status); }; }; then
22977
22978 cat >conftest.$ac_ext <<_ACEOF
22979/* confdefs.h. */
22980_ACEOF
22981cat confdefs.h >>conftest.$ac_ext
22982cat >>conftest.$ac_ext <<_ACEOF
22983/* end confdefs.h. */
22984
22985 class Foo { public: explicit Foo(int) {} };
22986 static void TakeFoo(const Foo& foo) { }
22987
22988int
22989main ()
22990{
22991
22992 TakeFoo(17);
22993 return 0;
22994
22995 ;
22996 return 0;
22997}
22998_ACEOF
22999rm -f conftest.$ac_objext
23000if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23001 (eval $ac_compile) 2>conftest.er1
a848cd7e 23002 ac_status=$?
ac1cb8d3
VS
23003 grep -v '^ *+' conftest.er1 >conftest.err
23004 rm -f conftest.er1
23005 cat conftest.err >&5
a848cd7e
SC
23006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23007 (exit $ac_status); } &&
c9a66001 23008 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23010 (eval $ac_try) 2>&5
23011 ac_status=$?
23012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23013 (exit $ac_status); }; } &&
23014 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23016 (eval $ac_try) 2>&5
23017 ac_status=$?
23018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23019 (exit $ac_status); }; }; then
23020 wx_cv_explicit=no
23021else
23022 echo "$as_me: failed program was:" >&5
23023sed 's/^/| /' conftest.$ac_ext >&5
23024
23025wx_cv_explicit=yes
23026
23027fi
ac1cb8d3 23028rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23029
23030else
23031 echo "$as_me: failed program was:" >&5
23032sed 's/^/| /' conftest.$ac_ext >&5
23033
23034wx_cv_explicit=no
23035
23036fi
ac1cb8d3 23037rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 23038
5d7b7554
VZ
23039 ac_ext=cc
23040ac_cpp='$CXXCPP $CPPFLAGS'
23041ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23042ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23043ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a848cd7e
SC
23044
23045
23046fi
23047echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
23048echo "${ECHO_T}$wx_cv_explicit" >&6
23049
23050 if test "$wx_cv_explicit" = "yes"; then
23051 cat >>confdefs.h <<\_ACEOF
23052#define HAVE_EXPLICIT 1
23053_ACEOF
23054
23055 fi
23056
23057
23058echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
23059echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
23060if test "${ac_cv_cxx_const_cast+set}" = set; then
23061 echo $ECHO_N "(cached) $ECHO_C" >&6
23062else
23063
23064
23065 ac_ext=cc
23066ac_cpp='$CXXCPP $CPPFLAGS'
23067ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23068ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23069ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23070
23071 cat >conftest.$ac_ext <<_ACEOF
23072/* confdefs.h. */
23073_ACEOF
23074cat confdefs.h >>conftest.$ac_ext
23075cat >>conftest.$ac_ext <<_ACEOF
23076/* end confdefs.h. */
23077
23078int
23079main ()
23080{
23081int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
23082 ;
23083 return 0;
23084}
23085_ACEOF
23086rm -f conftest.$ac_objext
23087if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23088 (eval $ac_compile) 2>conftest.er1
a848cd7e 23089 ac_status=$?
ac1cb8d3
VS
23090 grep -v '^ *+' conftest.er1 >conftest.err
23091 rm -f conftest.er1
23092 cat conftest.err >&5
a848cd7e
SC
23093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23094 (exit $ac_status); } &&
c9a66001 23095 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23097 (eval $ac_try) 2>&5
23098 ac_status=$?
23099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23100 (exit $ac_status); }; } &&
23101 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23103 (eval $ac_try) 2>&5
23104 ac_status=$?
23105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23106 (exit $ac_status); }; }; then
23107 ac_cv_cxx_const_cast=yes
23108else
23109 echo "$as_me: failed program was:" >&5
23110sed 's/^/| /' conftest.$ac_ext >&5
23111
23112ac_cv_cxx_const_cast=no
23113fi
ac1cb8d3 23114rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5d7b7554
VZ
23115 ac_ext=cc
23116ac_cpp='$CXXCPP $CPPFLAGS'
23117ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23118ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23119ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a848cd7e
SC
23120
23121
23122fi
23123echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
23124echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
23125if test "$ac_cv_cxx_const_cast" = yes; then
23126
23127cat >>confdefs.h <<\_ACEOF
23128#define HAVE_CONST_CAST
23129_ACEOF
23130
23131fi
23132
7714864e
RL
23133echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5
23134echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6
23135if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then
23136 echo $ECHO_N "(cached) $ECHO_C" >&6
23137else
23138
23139
23140 ac_ext=cc
23141ac_cpp='$CXXCPP $CPPFLAGS'
23142ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23143ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23144ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23145
23146 cat >conftest.$ac_ext <<_ACEOF
23147/* confdefs.h. */
23148_ACEOF
23149cat confdefs.h >>conftest.$ac_ext
23150cat >>conftest.$ac_ext <<_ACEOF
23151/* end confdefs.h. */
23152#include <typeinfo>
23153class Base { public : Base () {} virtual void f () = 0;};
23154class Derived : public Base { public : Derived () {} virtual void f () {} };
23155class Unrelated { public : Unrelated () {} };
23156int g (Unrelated&) { return 0; }
23157int
23158main ()
23159{
23160
23161Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e);
23162 ;
23163 return 0;
23164}
23165_ACEOF
23166rm -f conftest.$ac_objext
23167if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23168 (eval $ac_compile) 2>conftest.er1
23169 ac_status=$?
23170 grep -v '^ *+' conftest.er1 >conftest.err
23171 rm -f conftest.er1
23172 cat conftest.err >&5
23173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23174 (exit $ac_status); } &&
c9a66001 23175 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7714864e
RL
23176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23177 (eval $ac_try) 2>&5
23178 ac_status=$?
23179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23180 (exit $ac_status); }; } &&
23181 { ac_try='test -s conftest.$ac_objext'
23182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23183 (eval $ac_try) 2>&5
23184 ac_status=$?
23185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23186 (exit $ac_status); }; }; then
23187 ac_cv_cxx_reinterpret_cast=yes
23188else
23189 echo "$as_me: failed program was:" >&5
23190sed 's/^/| /' conftest.$ac_ext >&5
23191
23192ac_cv_cxx_reinterpret_cast=no
23193fi
23194rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5d7b7554
VZ
23195 ac_ext=cc
23196ac_cpp='$CXXCPP $CPPFLAGS'
23197ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23198ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23199ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7714864e
RL
23200
23201
23202fi
23203echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5
23204echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6
23205if test "$ac_cv_cxx_reinterpret_cast" = yes; then
23206
23207cat >>confdefs.h <<\_ACEOF
23208#define HAVE_REINTERPRET_CAST
23209_ACEOF
23210
23211fi
23212
a848cd7e
SC
23213echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
23214echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6
23215if test "${ac_cv_cxx_static_cast+set}" = set; then
23216 echo $ECHO_N "(cached) $ECHO_C" >&6
23217else
23218
23219
23220 ac_ext=cc
23221ac_cpp='$CXXCPP $CPPFLAGS'
23222ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23223ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23224ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23225
23226 cat >conftest.$ac_ext <<_ACEOF
23227/* confdefs.h. */
23228_ACEOF
23229cat confdefs.h >>conftest.$ac_ext
23230cat >>conftest.$ac_ext <<_ACEOF
23231/* end confdefs.h. */
23232#include <typeinfo>
23233class Base { public : Base () {} virtual void f () = 0; };
23234class Derived : public Base { public : Derived () {} virtual void f () {} };
23235int g (Derived&) { return 0; }
23236int
23237main ()
23238{
23239
23240Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
23241 ;
23242 return 0;
23243}
23244_ACEOF
23245rm -f conftest.$ac_objext
23246if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23247 (eval $ac_compile) 2>conftest.er1
a848cd7e 23248 ac_status=$?
ac1cb8d3
VS
23249 grep -v '^ *+' conftest.er1 >conftest.err
23250 rm -f conftest.er1
23251 cat conftest.err >&5
a848cd7e
SC
23252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23253 (exit $ac_status); } &&
c9a66001 23254 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23256 (eval $ac_try) 2>&5
23257 ac_status=$?
23258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23259 (exit $ac_status); }; } &&
23260 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23262 (eval $ac_try) 2>&5
23263 ac_status=$?
23264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23265 (exit $ac_status); }; }; then
23266 ac_cv_cxx_static_cast=yes
23267else
23268 echo "$as_me: failed program was:" >&5
23269sed 's/^/| /' conftest.$ac_ext >&5
23270
23271ac_cv_cxx_static_cast=no
23272fi
ac1cb8d3 23273rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5d7b7554
VZ
23274 ac_ext=cc
23275ac_cpp='$CXXCPP $CPPFLAGS'
23276ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23277ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23278ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a848cd7e
SC
23279
23280
23281fi
23282echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
23283echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6
23284if test "$ac_cv_cxx_static_cast" = yes; then
23285
23286cat >>confdefs.h <<\_ACEOF
23287#define HAVE_STATIC_CAST
23288_ACEOF
23289
23290fi
23291
23292
3c28b7cb 23293if test "x$SUNCXX" = xyes; then
c92ad099 23294 CXXFLAGS="-features=tmplife $CXXFLAGS"
3c28b7cb
MW
23295fi
23296
9122d155 23297if test "x$SUNCC" = xyes; then
c92ad099 23298 CFLAGS="-erroff=E_NO_EXPLICIT_TYPE_GIVEN $CFLAGS"
9122d155
VZ
23299fi
23300
0ad5d837 23301if test "x$SGICC" = "xyes"; then
c92ad099 23302 CFLAGS="-woff 3970 $CFLAGS"
0ad5d837
VZ
23303fi
23304if test "x$SGICXX" = "xyes"; then
c92ad099 23305 CXXFLAGS="-woff 3970 $CXXFLAGS"
0ad5d837
VZ
23306fi
23307
2eef8513 23308if test "x$HPCC" = "xyes"; then
c92ad099 23309 CFLAGS="+W 2011,2450 $CFLAGS"
2eef8513
VZ
23310fi
23311if test "x$HPCXX" = "xyes"; then
c92ad099 23312 CXXFLAGS="+W 2340 $CXXFLAGS"
2eef8513
VZ
23313fi
23314
23315if test "x$COMPAQCXX" = "xyes"; then
23316 CXXFLAGS="-w0 -msg_disable basclsnondto,unrimpret,intconlosbit"
23317fi
23318
f56c22b4 23319if test "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes"; then
f56c22b4
MW
23320 if test "$wxUSE_UNICODE" = "yes"; then
23321 std_string="std::wstring"
23322 char_type="wchar_t"
23323 else
23324 std_string="std::string"
23325 char_type="char"
23326 fi
23327
23328 echo "$as_me:$LINENO: checking for $std_string in <string>" >&5
23329echo $ECHO_N "checking for $std_string in <string>... $ECHO_C" >&6
a848cd7e
SC
23330 cat >conftest.$ac_ext <<_ACEOF
23331/* confdefs.h. */
23332_ACEOF
23333cat confdefs.h >>conftest.$ac_ext
23334cat >>conftest.$ac_ext <<_ACEOF
23335/* end confdefs.h. */
23336#include <string>
a848cd7e
SC
23337int
23338main ()
23339{
f56c22b4 23340$std_string foo;
a848cd7e
SC
23341 ;
23342 return 0;
23343}
23344_ACEOF
23345rm -f conftest.$ac_objext
23346if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23347 (eval $ac_compile) 2>conftest.er1
a848cd7e 23348 ac_status=$?
ac1cb8d3
VS
23349 grep -v '^ *+' conftest.er1 >conftest.err
23350 rm -f conftest.er1
23351 cat conftest.err >&5
a848cd7e
SC
23352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23353 (exit $ac_status); } &&
c9a66001 23354 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23356 (eval $ac_try) 2>&5
23357 ac_status=$?
23358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23359 (exit $ac_status); }; } &&
23360 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23362 (eval $ac_try) 2>&5
23363 ac_status=$?
23364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23365 (exit $ac_status); }; }; then
23366 echo "$as_me:$LINENO: result: yes" >&5
23367echo "${ECHO_T}yes" >&6
0a08f02a
MB
23368 cat >>confdefs.h <<\_ACEOF
23369#define HAVE_STD_WSTRING 1
23370_ACEOF
23371
a848cd7e
SC
23372else
23373 echo "$as_me: failed program was:" >&5
23374sed 's/^/| /' conftest.$ac_ext >&5
23375
23376echo "$as_me:$LINENO: result: no" >&5
23377echo "${ECHO_T}no" >&6
f56c22b4
MW
23378 echo "$as_me:$LINENO: checking if std::basic_string<$char_type> works" >&5
23379echo $ECHO_N "checking if std::basic_string<$char_type> works... $ECHO_C" >&6
0a08f02a
MB
23380 cat >conftest.$ac_ext <<_ACEOF
23381/* confdefs.h. */
23382_ACEOF
23383cat confdefs.h >>conftest.$ac_ext
23384cat >>conftest.$ac_ext <<_ACEOF
23385/* end confdefs.h. */
23386
23387 #ifdef HAVE_WCHAR_H
23388 # ifdef __CYGWIN__
23389 # include <stddef.h>
23390 # endif
23391 # include <wchar.h>
23392 #endif
23393 #ifdef HAVE_STDLIB_H
23394 # include <stdlib.h>
23395 #endif
23396 #include <stdio.h>
23397 #include <string>
23398
23399int
23400main ()
23401{
f56c22b4
MW
23402std::basic_string<$char_type> foo;
23403 const $char_type* dummy = foo.c_str();
0a08f02a
MB
23404 ;
23405 return 0;
23406}
23407_ACEOF
23408rm -f conftest.$ac_objext
23409if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23410 (eval $ac_compile) 2>conftest.er1
23411 ac_status=$?
23412 grep -v '^ *+' conftest.er1 >conftest.err
23413 rm -f conftest.er1
23414 cat conftest.err >&5
23415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23416 (exit $ac_status); } &&
c9a66001 23417 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0a08f02a
MB
23418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23419 (eval $ac_try) 2>&5
23420 ac_status=$?
23421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23422 (exit $ac_status); }; } &&
23423 { ac_try='test -s conftest.$ac_objext'
23424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23425 (eval $ac_try) 2>&5
23426 ac_status=$?
23427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23428 (exit $ac_status); }; }; then
23429 echo "$as_me:$LINENO: result: yes" >&5
23430echo "${ECHO_T}yes" >&6
23431else
23432 echo "$as_me: failed program was:" >&5
23433sed 's/^/| /' conftest.$ac_ext >&5
23434
23435echo "$as_me:$LINENO: result: no" >&5
23436echo "${ECHO_T}no" >&6
f56c22b4 23437 if test "$wxUSE_STL" = "yes"; then
4b9918c5
MW
23438 { { echo "$as_me:$LINENO: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&5
23439echo "$as_me: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&2;}
23440 { (exit 1); exit 1; }; }
23441 elif grep wxUSE_STD_STRING $wx_arg_cache_file >/dev/null; then
23442 { { echo "$as_me:$LINENO: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&5
23443echo "$as_me: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&2;}
a848cd7e 23444 { (exit 1); exit 1; }; }
f56c22b4
MW
23445 else
23446 { echo "$as_me:$LINENO: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&5
23447echo "$as_me: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&2;}
23448 wxUSE_STD_STRING=no
23449 fi
23450
0a08f02a 23451
a848cd7e 23452fi
ac1cb8d3 23453rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 23454
0a08f02a
MB
23455fi
23456rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f56c22b4
MW
23457fi
23458
23459if test "$wxUSE_STD_IOSTREAM" = "yes"; then
f56c22b4
MW
23460 echo "$as_me:$LINENO: checking for std::istream" >&5
23461echo $ECHO_N "checking for std::istream... $ECHO_C" >&6
23462if test "${ac_cv_type_std__istream+set}" = set; then
23463 echo $ECHO_N "(cached) $ECHO_C" >&6
23464else
23465 cat >conftest.$ac_ext <<_ACEOF
23466/* confdefs.h. */
23467_ACEOF
23468cat confdefs.h >>conftest.$ac_ext
23469cat >>conftest.$ac_ext <<_ACEOF
23470/* end confdefs.h. */
23471#include <iostream>
23472
23473int
23474main ()
23475{
23476if ((std::istream *) 0)
23477 return 0;
23478if (sizeof (std::istream))
23479 return 0;
23480 ;
23481 return 0;
23482}
23483_ACEOF
23484rm -f conftest.$ac_objext
23485if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23486 (eval $ac_compile) 2>conftest.er1
23487 ac_status=$?
23488 grep -v '^ *+' conftest.er1 >conftest.err
23489 rm -f conftest.er1
23490 cat conftest.err >&5
23491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23492 (exit $ac_status); } &&
c9a66001 23493 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
f56c22b4
MW
23494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23495 (eval $ac_try) 2>&5
23496 ac_status=$?
23497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23498 (exit $ac_status); }; } &&
23499 { ac_try='test -s conftest.$ac_objext'
23500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23501 (eval $ac_try) 2>&5
23502 ac_status=$?
23503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23504 (exit $ac_status); }; }; then
23505 ac_cv_type_std__istream=yes
23506else
23507 echo "$as_me: failed program was:" >&5
23508sed 's/^/| /' conftest.$ac_ext >&5
23509
23510ac_cv_type_std__istream=no
23511fi
23512rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23513fi
23514echo "$as_me:$LINENO: result: $ac_cv_type_std__istream" >&5
23515echo "${ECHO_T}$ac_cv_type_std__istream" >&6
23516if test $ac_cv_type_std__istream = yes; then
23517
23518cat >>confdefs.h <<_ACEOF
23519#define HAVE_STD__ISTREAM 1
23520_ACEOF
23521
23522
23523else
23524 wxUSE_STD_IOSTREAM=no
23525fi
23526echo "$as_me:$LINENO: checking for std::ostream" >&5
23527echo $ECHO_N "checking for std::ostream... $ECHO_C" >&6
23528if test "${ac_cv_type_std__ostream+set}" = set; then
23529 echo $ECHO_N "(cached) $ECHO_C" >&6
23530else
23531 cat >conftest.$ac_ext <<_ACEOF
23532/* confdefs.h. */
23533_ACEOF
23534cat confdefs.h >>conftest.$ac_ext
23535cat >>conftest.$ac_ext <<_ACEOF
23536/* end confdefs.h. */
23537#include <iostream>
23538
23539int
23540main ()
23541{
23542if ((std::ostream *) 0)
23543 return 0;
23544if (sizeof (std::ostream))
23545 return 0;
23546 ;
23547 return 0;
23548}
23549_ACEOF
23550rm -f conftest.$ac_objext
23551if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23552 (eval $ac_compile) 2>conftest.er1
23553 ac_status=$?
23554 grep -v '^ *+' conftest.er1 >conftest.err
23555 rm -f conftest.er1
23556 cat conftest.err >&5
23557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23558 (exit $ac_status); } &&
c9a66001 23559 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
f56c22b4
MW
23560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23561 (eval $ac_try) 2>&5
23562 ac_status=$?
23563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23564 (exit $ac_status); }; } &&
23565 { ac_try='test -s conftest.$ac_objext'
23566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23567 (eval $ac_try) 2>&5
23568 ac_status=$?
23569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23570 (exit $ac_status); }; }; then
23571 ac_cv_type_std__ostream=yes
23572else
23573 echo "$as_me: failed program was:" >&5
23574sed 's/^/| /' conftest.$ac_ext >&5
23575
23576ac_cv_type_std__ostream=no
23577fi
23578rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23579fi
23580echo "$as_me:$LINENO: result: $ac_cv_type_std__ostream" >&5
23581echo "${ECHO_T}$ac_cv_type_std__ostream" >&6
23582if test $ac_cv_type_std__ostream = yes; then
23583
23584cat >>confdefs.h <<_ACEOF
23585#define HAVE_STD__OSTREAM 1
23586_ACEOF
23587
23588
23589else
23590 wxUSE_STD_IOSTREAM=no
23591fi
23592
23593
23594 if test "$wxUSE_STD_IOSTREAM" != "yes"; then
4b9918c5
MW
23595 if grep wxUSE_STD_IOSTREAM $wx_arg_cache_file >/dev/null; then
23596 { { echo "$as_me:$LINENO: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&5
23597echo "$as_me: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&2;}
23598 { (exit 1); exit 1; }; }
23599 else
23600 { echo "$as_me:$LINENO: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&5
f56c22b4 23601echo "$as_me: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&2;}
4b9918c5 23602 fi
f56c22b4 23603 fi
0a08f02a
MB
23604fi
23605
23606if test "$wxUSE_STL" = "yes"; then
0a08f02a
MB
23607 echo "$as_me:$LINENO: checking for basic STL functionality" >&5
23608echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
a848cd7e
SC
23609 cat >conftest.$ac_ext <<_ACEOF
23610/* confdefs.h. */
23611_ACEOF
23612cat confdefs.h >>conftest.$ac_ext
23613cat >>conftest.$ac_ext <<_ACEOF
23614/* end confdefs.h. */
23615#include <string>
0a08f02a
MB
23616 #include <functional>
23617 #include <algorithm>
23618 #include <vector>
23619 #include <list>
a848cd7e
SC
23620int
23621main ()
23622{
0a08f02a
MB
23623std::vector<int> moo;
23624 std::list<int> foo;
23625 std::vector<int>::iterator it =
23626 std::find_if(moo.begin(), moo.end(),
23627 std::bind2nd(std::less<int>(), 3));
a848cd7e
SC
23628 ;
23629 return 0;
23630}
23631_ACEOF
23632rm -f conftest.$ac_objext
23633if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23634 (eval $ac_compile) 2>conftest.er1
a848cd7e 23635 ac_status=$?
ac1cb8d3
VS
23636 grep -v '^ *+' conftest.er1 >conftest.err
23637 rm -f conftest.er1
23638 cat conftest.err >&5
a848cd7e
SC
23639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23640 (exit $ac_status); } &&
c9a66001 23641 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23643 (eval $ac_try) 2>&5
23644 ac_status=$?
23645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23646 (exit $ac_status); }; } &&
23647 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23649 (eval $ac_try) 2>&5
23650 ac_status=$?
23651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23652 (exit $ac_status); }; }; then
23653 echo "$as_me:$LINENO: result: yes" >&5
23654echo "${ECHO_T}yes" >&6
a848cd7e
SC
23655else
23656 echo "$as_me: failed program was:" >&5
23657sed 's/^/| /' conftest.$ac_ext >&5
23658
23659echo "$as_me:$LINENO: result: no" >&5
23660echo "${ECHO_T}no" >&6
0a08f02a
MB
23661 { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
23662echo "$as_me: error: Basic STL functionality missing" >&2;}
23663 { (exit 1); exit 1; }; }
a848cd7e 23664fi
ac1cb8d3 23665rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23666
23667 echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
23668echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
23669 cat >conftest.$ac_ext <<_ACEOF
23670/* confdefs.h. */
23671_ACEOF
23672cat confdefs.h >>conftest.$ac_ext
23673cat >>conftest.$ac_ext <<_ACEOF
23674/* end confdefs.h. */
23675#include <string>
23676int
23677main ()
23678{
23679std::string foo, bar;
23680 foo.compare(bar);
23681 foo.compare(1, 1, bar);
23682 foo.compare(1, 1, bar, 1, 1);
23683 foo.compare("");
23684 foo.compare(1, 1, "");
23685 foo.compare(1, 1, "", 2);
23686 ;
23687 return 0;
23688}
23689_ACEOF
23690rm -f conftest.$ac_objext
23691if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23692 (eval $ac_compile) 2>conftest.er1
a848cd7e 23693 ac_status=$?
ac1cb8d3
VS
23694 grep -v '^ *+' conftest.er1 >conftest.err
23695 rm -f conftest.er1
23696 cat conftest.err >&5
a848cd7e
SC
23697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23698 (exit $ac_status); } &&
c9a66001 23699 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23701 (eval $ac_try) 2>&5
23702 ac_status=$?
23703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23704 (exit $ac_status); }; } &&
23705 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23707 (eval $ac_try) 2>&5
23708 ac_status=$?
23709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23710 (exit $ac_status); }; }; then
23711 echo "$as_me:$LINENO: result: yes" >&5
23712echo "${ECHO_T}yes" >&6
23713 cat >>confdefs.h <<\_ACEOF
23714#define HAVE_STD_STRING_COMPARE 1
23715_ACEOF
23716
23717else
23718 echo "$as_me: failed program was:" >&5
23719sed 's/^/| /' conftest.$ac_ext >&5
23720
23721echo "$as_me:$LINENO: result: no" >&5
23722echo "${ECHO_T}no" >&6
23723fi
ac1cb8d3 23724rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
23725
23726 if test "${ac_cv_header_hash_map+set}" = set; then
23727 echo "$as_me:$LINENO: checking for hash_map" >&5
23728echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
23729if test "${ac_cv_header_hash_map+set}" = set; then
23730 echo $ECHO_N "(cached) $ECHO_C" >&6
23731fi
23732echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
23733echo "${ECHO_T}$ac_cv_header_hash_map" >&6
23734else
23735 # Is the header compilable?
23736echo "$as_me:$LINENO: checking hash_map usability" >&5
23737echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6
23738cat >conftest.$ac_ext <<_ACEOF
23739/* confdefs.h. */
23740_ACEOF
23741cat confdefs.h >>conftest.$ac_ext
23742cat >>conftest.$ac_ext <<_ACEOF
23743/* end confdefs.h. */
23744$ac_includes_default
23745#include <hash_map>
23746_ACEOF
23747rm -f conftest.$ac_objext
23748if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23749 (eval $ac_compile) 2>conftest.er1
bdcade0a 23750 ac_status=$?
ac1cb8d3
VS
23751 grep -v '^ *+' conftest.er1 >conftest.err
23752 rm -f conftest.er1
23753 cat conftest.err >&5
bdcade0a
MB
23754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23755 (exit $ac_status); } &&
c9a66001 23756 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23758 (eval $ac_try) 2>&5
23759 ac_status=$?
23760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23761 (exit $ac_status); }; } &&
23762 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
23763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23764 (eval $ac_try) 2>&5
23765 ac_status=$?
23766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23767 (exit $ac_status); }; }; then
23768 ac_header_compiler=yes
23769else
23770 echo "$as_me: failed program was:" >&5
23771sed 's/^/| /' conftest.$ac_ext >&5
23772
23773ac_header_compiler=no
23774fi
ac1cb8d3 23775rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
23776echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23777echo "${ECHO_T}$ac_header_compiler" >&6
23778
23779# Is the header present?
23780echo "$as_me:$LINENO: checking hash_map presence" >&5
23781echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6
23782cat >conftest.$ac_ext <<_ACEOF
23783/* confdefs.h. */
23784_ACEOF
23785cat confdefs.h >>conftest.$ac_ext
23786cat >>conftest.$ac_ext <<_ACEOF
23787/* end confdefs.h. */
23788#include <hash_map>
23789_ACEOF
23790if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23791 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23792 ac_status=$?
23793 grep -v '^ *+' conftest.er1 >conftest.err
23794 rm -f conftest.er1
23795 cat conftest.err >&5
23796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23797 (exit $ac_status); } >/dev/null; then
23798 if test -s conftest.err; then
23799 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 23800 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
23801 else
23802 ac_cpp_err=
23803 fi
23804else
23805 ac_cpp_err=yes
23806fi
23807if test -z "$ac_cpp_err"; then
23808 ac_header_preproc=yes
23809else
23810 echo "$as_me: failed program was:" >&5
23811sed 's/^/| /' conftest.$ac_ext >&5
23812
23813 ac_header_preproc=no
23814fi
23815rm -f conftest.err conftest.$ac_ext
23816echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23817echo "${ECHO_T}$ac_header_preproc" >&6
23818
23819# So? What about this header?
ac1cb8d3
VS
23820case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
23821 yes:no: )
bdcade0a
MB
23822 { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
23823echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23824 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5
23825echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;}
23826 ac_header_preproc=yes
bdcade0a 23827 ;;
ac1cb8d3 23828 no:yes:* )
bdcade0a
MB
23829 { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5
23830echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23831 { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5
23832echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;}
23833 { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5
23834echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;}
23835 { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5
23836echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
23837 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5
23838echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23839 { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5
23840echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
23841 (
23842 cat <<\_ASBOX
ac1cb8d3
VS
23843## ----------------------------------------- ##
23844## Report this to wx-dev@lists.wxwidgets.org ##
23845## ----------------------------------------- ##
bdcade0a
MB
23846_ASBOX
23847 ) |
23848 sed "s/^/$as_me: WARNING: /" >&2
23849 ;;
23850esac
23851echo "$as_me:$LINENO: checking for hash_map" >&5
23852echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
23853if test "${ac_cv_header_hash_map+set}" = set; then
23854 echo $ECHO_N "(cached) $ECHO_C" >&6
23855else
23856 ac_cv_header_hash_map=$ac_header_preproc
23857fi
23858echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
23859echo "${ECHO_T}$ac_cv_header_hash_map" >&6
23860
23861fi
23862if test $ac_cv_header_hash_map = yes; then
23863 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
23864echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
23865 cat >conftest.$ac_ext <<_ACEOF
23866/* confdefs.h. */
23867_ACEOF
23868cat confdefs.h >>conftest.$ac_ext
23869cat >>conftest.$ac_ext <<_ACEOF
23870/* end confdefs.h. */
23871#include <hash_map>
23872 #include <hash_set>
23873int
23874main ()
23875{
23876std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
23877 std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
23878 ;
23879 return 0;
23880}
23881_ACEOF
23882rm -f conftest.$ac_objext
23883if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23884 (eval $ac_compile) 2>conftest.er1
bdcade0a 23885 ac_status=$?
ac1cb8d3
VS
23886 grep -v '^ *+' conftest.er1 >conftest.err
23887 rm -f conftest.er1
23888 cat conftest.err >&5
bdcade0a
MB
23889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23890 (exit $ac_status); } &&
c9a66001 23891 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23893 (eval $ac_try) 2>&5
23894 ac_status=$?
23895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23896 (exit $ac_status); }; } &&
23897 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
23898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23899 (eval $ac_try) 2>&5
23900 ac_status=$?
23901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23902 (exit $ac_status); }; }; then
23903 echo "$as_me:$LINENO: result: yes" >&5
23904echo "${ECHO_T}yes" >&6
23905 cat >>confdefs.h <<\_ACEOF
23906#define HAVE_HASH_MAP 1
23907_ACEOF
23908
23909 cat >>confdefs.h <<\_ACEOF
23910#define HAVE_STD_HASH_MAP 1
23911_ACEOF
23912
23913else
23914 echo "$as_me: failed program was:" >&5
23915sed 's/^/| /' conftest.$ac_ext >&5
23916
23917echo "$as_me:$LINENO: result: no" >&5
23918echo "${ECHO_T}no" >&6
23919fi
ac1cb8d3 23920rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
23921
23922fi
23923
23924
23925
23926 if test "${ac_cv_header_ext_hash_map+set}" = set; then
23927 echo "$as_me:$LINENO: checking for ext/hash_map" >&5
23928echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
23929if test "${ac_cv_header_ext_hash_map+set}" = set; then
23930 echo $ECHO_N "(cached) $ECHO_C" >&6
23931fi
23932echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
23933echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
23934else
23935 # Is the header compilable?
23936echo "$as_me:$LINENO: checking ext/hash_map usability" >&5
23937echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6
23938cat >conftest.$ac_ext <<_ACEOF
23939/* confdefs.h. */
23940_ACEOF
23941cat confdefs.h >>conftest.$ac_ext
23942cat >>conftest.$ac_ext <<_ACEOF
23943/* end confdefs.h. */
23944$ac_includes_default
23945#include <ext/hash_map>
23946_ACEOF
23947rm -f conftest.$ac_objext
23948if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23949 (eval $ac_compile) 2>conftest.er1
bdcade0a 23950 ac_status=$?
ac1cb8d3
VS
23951 grep -v '^ *+' conftest.er1 >conftest.err
23952 rm -f conftest.er1
23953 cat conftest.err >&5
bdcade0a
MB
23954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23955 (exit $ac_status); } &&
c9a66001 23956 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23958 (eval $ac_try) 2>&5
23959 ac_status=$?
23960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23961 (exit $ac_status); }; } &&
23962 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
23963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23964 (eval $ac_try) 2>&5
23965 ac_status=$?
23966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23967 (exit $ac_status); }; }; then
23968 ac_header_compiler=yes
23969else
23970 echo "$as_me: failed program was:" >&5
23971sed 's/^/| /' conftest.$ac_ext >&5
23972
23973ac_header_compiler=no
23974fi
ac1cb8d3 23975rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
23976echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23977echo "${ECHO_T}$ac_header_compiler" >&6
23978
23979# Is the header present?
23980echo "$as_me:$LINENO: checking ext/hash_map presence" >&5
23981echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6
23982cat >conftest.$ac_ext <<_ACEOF
23983/* confdefs.h. */
23984_ACEOF
23985cat confdefs.h >>conftest.$ac_ext
23986cat >>conftest.$ac_ext <<_ACEOF
23987/* end confdefs.h. */
23988#include <ext/hash_map>
23989_ACEOF
23990if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23991 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23992 ac_status=$?
23993 grep -v '^ *+' conftest.er1 >conftest.err
23994 rm -f conftest.er1
23995 cat conftest.err >&5
23996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23997 (exit $ac_status); } >/dev/null; then
23998 if test -s conftest.err; then
23999 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 24000 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
24001 else
24002 ac_cpp_err=
24003 fi
24004else
24005 ac_cpp_err=yes
24006fi
24007if test -z "$ac_cpp_err"; then
24008 ac_header_preproc=yes
24009else
24010 echo "$as_me: failed program was:" >&5
24011sed 's/^/| /' conftest.$ac_ext >&5
24012
24013 ac_header_preproc=no
24014fi
24015rm -f conftest.err conftest.$ac_ext
24016echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24017echo "${ECHO_T}$ac_header_preproc" >&6
24018
24019# So? What about this header?
ac1cb8d3
VS
24020case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
24021 yes:no: )
bdcade0a
MB
24022 { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
24023echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
24024 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5
24025echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;}
24026 ac_header_preproc=yes
bdcade0a 24027 ;;
ac1cb8d3 24028 no:yes:* )
bdcade0a
MB
24029 { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5
24030echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
24031 { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5
24032echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;}
24033 { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5
24034echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;}
24035 { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5
24036echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
24037 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5
24038echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
24039 { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5
24040echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
24041 (
24042 cat <<\_ASBOX
ac1cb8d3
VS
24043## ----------------------------------------- ##
24044## Report this to wx-dev@lists.wxwidgets.org ##
24045## ----------------------------------------- ##
bdcade0a
MB
24046_ASBOX
24047 ) |
24048 sed "s/^/$as_me: WARNING: /" >&2
24049 ;;
24050esac
24051echo "$as_me:$LINENO: checking for ext/hash_map" >&5
24052echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
24053if test "${ac_cv_header_ext_hash_map+set}" = set; then
24054 echo $ECHO_N "(cached) $ECHO_C" >&6
24055else
24056 ac_cv_header_ext_hash_map=$ac_header_preproc
24057fi
24058echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
24059echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
24060
24061fi
24062if test $ac_cv_header_ext_hash_map = yes; then
24063 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
24064echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
24065 cat >conftest.$ac_ext <<_ACEOF
24066/* confdefs.h. */
24067_ACEOF
24068cat confdefs.h >>conftest.$ac_ext
24069cat >>conftest.$ac_ext <<_ACEOF
24070/* end confdefs.h. */
24071#include <ext/hash_map>
24072 #include <ext/hash_set>
24073int
24074main ()
24075{
24076__gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
24077 __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
24078 ;
24079 return 0;
24080}
24081_ACEOF
24082rm -f conftest.$ac_objext
24083if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24084 (eval $ac_compile) 2>conftest.er1
bdcade0a 24085 ac_status=$?
ac1cb8d3
VS
24086 grep -v '^ *+' conftest.er1 >conftest.err
24087 rm -f conftest.er1
24088 cat conftest.err >&5
bdcade0a
MB
24089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24090 (exit $ac_status); } &&
c9a66001 24091 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24093 (eval $ac_try) 2>&5
24094 ac_status=$?
24095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24096 (exit $ac_status); }; } &&
24097 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
24098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24099 (eval $ac_try) 2>&5
24100 ac_status=$?
24101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24102 (exit $ac_status); }; }; then
24103 echo "$as_me:$LINENO: result: yes" >&5
24104echo "${ECHO_T}yes" >&6
24105 cat >>confdefs.h <<\_ACEOF
24106#define HAVE_EXT_HASH_MAP 1
24107_ACEOF
24108
24109 cat >>confdefs.h <<\_ACEOF
24110#define HAVE_GNU_CXX_HASH_MAP 1
24111_ACEOF
24112
24113else
24114 echo "$as_me: failed program was:" >&5
24115sed 's/^/| /' conftest.$ac_ext >&5
24116
24117echo "$as_me:$LINENO: result: no" >&5
24118echo "${ECHO_T}no" >&6
24119fi
ac1cb8d3 24120rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
24121
24122fi
24123
24124
a848cd7e
SC
24125fi
24126
24127
24128SEARCH_INCLUDE="\
24129 /usr/local/include \
24130 \
24131 /usr/Motif-2.1/include \
24132 /usr/Motif-1.2/include \
24133 /usr/include/Motif1.2 \
a848cd7e
SC
24134 \
24135 /usr/dt/include \
24136 /usr/openwin/include \
24137 \
24138 /usr/include/Xm \
24139 \
24140 /usr/X11R6/include \
24141 /usr/X11R6.4/include \
24142 /usr/X11R5/include \
24143 /usr/X11R4/include \
24144 \
24145 /usr/include/X11R6 \
24146 /usr/include/X11R5 \
24147 /usr/include/X11R4 \
24148 \
24149 /usr/local/X11R6/include \
24150 /usr/local/X11R5/include \
24151 /usr/local/X11R4/include \
24152 \
24153 /usr/local/include/X11R6 \
24154 /usr/local/include/X11R5 \
24155 /usr/local/include/X11R4 \
24156 \
24157 /usr/X11/include \
24158 /usr/include/X11 \
24159 /usr/local/X11/include \
24160 /usr/local/include/X11 \
24161 \
a848cd7e 24162 /usr/XFree86/include/X11 \
e051b34e
MW
24163 /usr/pkg/include \
24164 \
a848cd7e
SC
24165 /usr/openwin/share/include"
24166
6f9cf1e6 24167echo "$as_me:$LINENO: checking for libraries directory" >&5
0ad5d837 24168echo $ECHO_N "checking for libraries directory... $ECHO_C" >&6
6f9cf1e6
MW
24169
24170case "${host}" in
24171 *-*-irix6* )
24172 if test "${wx_cv_std_libpath+set}" = set; then
0ad5d837
VZ
24173 echo $ECHO_N "(cached) $ECHO_C" >&6
24174else
24175
c687b303
VZ
24176 for d in /usr/lib /usr/lib32 /usr/lib/64 /usr/lib64; do
24177 for e in a so sl dylib dll.a; do
24178 libc="$d/libc.$e"
24179 if test -f $libc; then
24180 save_LIBS="$LIBS"
24181 LIBS="$libc"
24182 cat >conftest.$ac_ext <<_ACEOF
0ad5d837
VZ
24183int main() { return 0; }
24184_ACEOF
24185rm -f conftest.$ac_objext conftest$ac_exeext
24186if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24187 (eval $ac_link) 2>conftest.er1
24188 ac_status=$?
24189 grep -v '^ *+' conftest.er1 >conftest.err
24190 rm -f conftest.er1
24191 cat conftest.err >&5
24192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24193 (exit $ac_status); } &&
c9a66001 24194 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0ad5d837
VZ
24195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24196 (eval $ac_try) 2>&5
24197 ac_status=$?
24198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24199 (exit $ac_status); }; } &&
24200 { ac_try='test -s conftest$ac_exeext'
24201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24202 (eval $ac_try) 2>&5
24203 ac_status=$?
24204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24205 (exit $ac_status); }; }; then
24206 wx_cv_std_libpath=`echo $d | sed s@/usr/@@`
24207else
24208 echo "$as_me: failed program was:" >&5
24209sed 's/^/| /' conftest.$ac_ext >&5
24210
24211fi
24212rm -f conftest.err conftest.$ac_objext \
24213 conftest$ac_exeext conftest.$ac_ext
c687b303
VZ
24214 LIBS="$save_LIBS"
24215 if test "x$wx_cv_std_libpath" != "x"; then
24216 break 2
24217 fi
24218 fi
24219 done
24220 done
24221 if test "x$wx_cv_std_libpath" = "x"; then
24222 wx_cv_std_libpath="lib"
0ad5d837 24223 fi
0ad5d837
VZ
24224
24225
24226fi
6f9cf1e6
MW
24227
24228 ;;
24229
24230 *-*-solaris2* )
24231 if test "$ac_cv_sizeof_void_p" = 8 -a -d "/usr/lib/64"; then
24232 wx_cv_std_libpath="lib/64"
24233 else
24234 wx_cv_std_libpath="lib"
24235 fi
24236 ;;
24237
24238 *-*-linux* )
24239 if test "$ac_cv_sizeof_void_p" = 8 -a \
24240 -d "/usr/lib64" -a ! -h "/usr/lib64"; then
24241 wx_cv_std_libpath="lib64"
24242 else
24243 wx_cv_std_libpath="lib"
24244 fi
c687b303
VZ
24245 ;;
24246
24247 *)
24248 wx_cv_std_libpath="lib";
24249 ;;
24250esac
0ad5d837 24251
6f9cf1e6
MW
24252echo "$as_me:$LINENO: result: $wx_cv_std_libpath" >&5
24253echo "${ECHO_T}$wx_cv_std_libpath" >&6
24254
24255SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s@include@$wx_cv_std_libpath@g` /usr/$wx_cv_std_libpath"
a848cd7e 24256
3eca31dc
MW
24257if test "$build" != "$host" -a "$GCC" = yes; then
24258 if cross_root=`$CC -print-prog-name=ld 2>/dev/null`; then
24259 cross_root=`dirname $cross_root`
24260 cross_root=`dirname $cross_root`
24261
24262 SEARCH_LIB=`for x in $SEARCH_LIB; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
24263 SEARCH_INCLUDE=`for x in $SEARCH_INCLUDE; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
5c60e845 24264 SEARCH_INCLUDE="$SEARCH_INCLUDE $cross_root/include"
3eca31dc
MW
24265
24266 if test -z "$PKG_CONFIG_PATH"; then
24267 PKG_CONFIG_PATH="$cross_root/local/lib/pkgconfig:$cross_root/lib/pkgconfig"
24268 export PKG_CONFIG_PATH
24269 fi
24270
24271 if test -z "$x_includes" -o "$x_includes" = NONE; then
24272
24273ac_find_includes=
24274for ac_dir in $SEARCH_INCLUDE /usr/include;
24275 do
24276 if test -f "$ac_dir/X11/Intrinsic.h"; then
24277 ac_find_includes=$ac_dir
24278 break
24279 fi
24280 done
24281
24282 x_includes=$ac_find_includes
24283 fi
24284 if test -z "$x_libraries" -o "$x_libraries" = NONE; then
24285
0ad5d837
VZ
24286 ac_find_libraries=
24287 for ac_dir in $SEARCH_LIB;
3eca31dc
MW
24288 do
24289 for ac_extension in a so sl dylib dll.a; do
24290 if test -f "$ac_dir/libXt.$ac_extension"; then
24291 ac_find_libraries=$ac_dir
24292 break 2
24293 fi
24294 done
24295 done
24296
24297 x_libraries=$ac_find_libraries
24298 fi
24299 fi
24300fi
24301
a848cd7e
SC
24302
24303cat >confcache <<\_ACEOF
24304# This file is a shell script that caches the results of configure
24305# tests run on this system so they can be shared between configure
24306# scripts and configure runs, see configure's option --config-cache.
24307# It is not useful on other systems. If it contains results you don't
24308# want to keep, you may remove or edit it.
24309#
24310# config.status only pays attention to the cache file if you give it
24311# the --recheck option to rerun configure.
24312#
24313# `ac_cv_env_foo' variables (set or unset) will be overridden when
24314# loading this file, other *unset* `ac_cv_foo' will be assigned the
24315# following values.
24316
24317_ACEOF
24318
24319# The following way of writing the cache mishandles newlines in values,
24320# but we know of no workaround that is simple, portable, and efficient.
24321# So, don't put newlines in cache variables' values.
24322# Ultrix sh set writes to stderr and can't be redirected directly,
24323# and sets the high bit in the cache file unless we assign to the vars.
24324{
24325 (set) 2>&1 |
24326 case `(ac_space=' '; set | grep ac_space) 2>&1` in
24327 *ac_space=\ *)
24328 # `set' does not quote correctly, so add quotes (double-quote
24329 # substitution turns \\\\ into \\, and sed turns \\ into \).
24330 sed -n \
ac1cb8d3
VS
24331 "s/'/'\\\\''/g;
24332 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
24333 ;;
24334 *)
24335 # `set' quotes correctly as required by POSIX, so do not add quotes.
24336 sed -n \
ac1cb8d3 24337 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
24338 ;;
24339 esac;
24340} |
24341 sed '
24342 t clear
24343 : clear
24344 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24345 t end
24346 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24347 : end' >>confcache
24348if diff $cache_file confcache >/dev/null 2>&1; then :; else
24349 if test -w $cache_file; then
24350 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
24351 cat confcache >$cache_file
24352 else
24353 echo "not updating unwritable cache $cache_file"
24354 fi
24355fi
24356rm -f confcache
24357
24358if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
24359 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
24360echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
24361if test "${wx_cv_lib_glibc21+set}" = set; then
24362 echo $ECHO_N "(cached) $ECHO_C" >&6
24363else
24364
24365 cat >conftest.$ac_ext <<_ACEOF
24366/* confdefs.h. */
24367_ACEOF
24368cat confdefs.h >>conftest.$ac_ext
24369cat >>conftest.$ac_ext <<_ACEOF
24370/* end confdefs.h. */
24371#include <features.h>
24372int
24373main ()
24374{
24375
24376 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
04e525a0 24377 not glibc 2.1
a848cd7e
SC
24378 #endif
24379
24380 ;
24381 return 0;
24382}
24383_ACEOF
24384rm -f conftest.$ac_objext
24385if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24386 (eval $ac_compile) 2>conftest.er1
a848cd7e 24387 ac_status=$?
ac1cb8d3
VS
24388 grep -v '^ *+' conftest.er1 >conftest.err
24389 rm -f conftest.er1
24390 cat conftest.err >&5
a848cd7e
SC
24391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24392 (exit $ac_status); } &&
c9a66001 24393 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24395 (eval $ac_try) 2>&5
24396 ac_status=$?
24397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24398 (exit $ac_status); }; } &&
24399 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24401 (eval $ac_try) 2>&5
24402 ac_status=$?
24403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24404 (exit $ac_status); }; }; then
24405
24406 wx_cv_lib_glibc21=yes
24407
24408else
24409 echo "$as_me: failed program was:" >&5
24410sed 's/^/| /' conftest.$ac_ext >&5
24411
24412
24413 wx_cv_lib_glibc21=no
24414
24415
24416fi
ac1cb8d3 24417rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24418
24419fi
24420echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
24421echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
24422 if test "$wx_cv_lib_glibc21" = "yes"; then
24423 cat >>confdefs.h <<\_ACEOF
24424#define wxHAVE_GLIBC2 1
24425_ACEOF
24426
24427 fi
24428fi
24429
24430if test "x$wx_cv_lib_glibc21" = "xyes"; then
24431 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
24432 cat >>confdefs.h <<\_ACEOF
24433#define _GNU_SOURCE 1
24434_ACEOF
24435
24436 fi
24437fi
24438
5d7b7554
VZ
24439have_cos=0
24440have_floor=0
a848cd7e 24441
5d7b7554
VZ
24442for ac_func in cos
24443do
24444as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24445echo "$as_me:$LINENO: checking for $ac_func" >&5
24446echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24447if eval "test \"\${$as_ac_var+set}\" = set"; then
a848cd7e 24448 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e 24449else
5d7b7554 24450 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
24451/* confdefs.h. */
24452_ACEOF
24453cat confdefs.h >>conftest.$ac_ext
24454cat >>conftest.$ac_ext <<_ACEOF
24455/* end confdefs.h. */
5d7b7554
VZ
24456/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24457 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24458#define $ac_func innocuous_$ac_func
24459
24460/* System header to define __stub macros and hopefully few prototypes,
24461 which can conflict with char $ac_func (); below.
24462 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24463 <limits.h> exists even on freestanding compilers. */
24464
24465#ifdef __STDC__
24466# include <limits.h>
24467#else
24468# include <assert.h>
24469#endif
24470
24471#undef $ac_func
24472
24473/* Override any gcc2 internal prototype to avoid an error. */
24474#ifdef __cplusplus
24475extern "C"
24476{
24477#endif
24478/* We use char because int might match the return type of a gcc2
24479 builtin and then its argument prototype would still apply. */
24480char $ac_func ();
24481/* The GNU C library defines this for functions which it implements
24482 to always fail with ENOSYS. Some functions are actually named
24483 something starting with __ and the normal name is an alias. */
24484#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24485choke me
24486#else
24487char (*f) () = $ac_func;
24488#endif
24489#ifdef __cplusplus
24490}
24491#endif
24492
24493int
24494main ()
24495{
24496return f != $ac_func;
24497 ;
24498 return 0;
24499}
a848cd7e 24500_ACEOF
5d7b7554
VZ
24501rm -f conftest.$ac_objext conftest$ac_exeext
24502if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24503 (eval $ac_link) 2>conftest.er1
a848cd7e 24504 ac_status=$?
ac1cb8d3
VS
24505 grep -v '^ *+' conftest.er1 >conftest.err
24506 rm -f conftest.er1
24507 cat conftest.err >&5
a848cd7e
SC
24508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24509 (exit $ac_status); } &&
c9a66001 24510 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24512 (eval $ac_try) 2>&5
24513 ac_status=$?
24514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24515 (exit $ac_status); }; } &&
5d7b7554 24516 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24518 (eval $ac_try) 2>&5
24519 ac_status=$?
24520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24521 (exit $ac_status); }; }; then
5d7b7554 24522 eval "$as_ac_var=yes"
a848cd7e
SC
24523else
24524 echo "$as_me: failed program was:" >&5
24525sed 's/^/| /' conftest.$ac_ext >&5
24526
5d7b7554 24527eval "$as_ac_var=no"
a848cd7e 24528fi
5d7b7554
VZ
24529rm -f conftest.err conftest.$ac_objext \
24530 conftest$ac_exeext conftest.$ac_ext
a848cd7e 24531fi
5d7b7554
VZ
24532echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24533echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24534if test `eval echo '${'$as_ac_var'}'` = yes; then
24535 cat >>confdefs.h <<_ACEOF
24536#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24537_ACEOF
24538 have_cos=1
a848cd7e 24539fi
5d7b7554 24540done
a848cd7e 24541
ab0f0edd 24542
5d7b7554 24543for ac_func in floor
a848cd7e
SC
24544do
24545as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24546echo "$as_me:$LINENO: checking for $ac_func" >&5
24547echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24548if eval "test \"\${$as_ac_var+set}\" = set"; then
24549 echo $ECHO_N "(cached) $ECHO_C" >&6
24550else
24551 cat >conftest.$ac_ext <<_ACEOF
24552/* confdefs.h. */
24553_ACEOF
24554cat confdefs.h >>conftest.$ac_ext
24555cat >>conftest.$ac_ext <<_ACEOF
24556/* end confdefs.h. */
ac1cb8d3
VS
24557/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24558 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24559#define $ac_func innocuous_$ac_func
24560
a848cd7e
SC
24561/* System header to define __stub macros and hopefully few prototypes,
24562 which can conflict with char $ac_func (); below.
24563 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24564 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 24565
a848cd7e
SC
24566#ifdef __STDC__
24567# include <limits.h>
24568#else
24569# include <assert.h>
24570#endif
ac1cb8d3
VS
24571
24572#undef $ac_func
24573
a848cd7e
SC
24574/* Override any gcc2 internal prototype to avoid an error. */
24575#ifdef __cplusplus
24576extern "C"
24577{
24578#endif
24579/* We use char because int might match the return type of a gcc2
24580 builtin and then its argument prototype would still apply. */
24581char $ac_func ();
24582/* The GNU C library defines this for functions which it implements
24583 to always fail with ENOSYS. Some functions are actually named
24584 something starting with __ and the normal name is an alias. */
24585#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24586choke me
24587#else
24588char (*f) () = $ac_func;
24589#endif
24590#ifdef __cplusplus
24591}
24592#endif
24593
24594int
24595main ()
24596{
24597return f != $ac_func;
24598 ;
24599 return 0;
24600}
24601_ACEOF
24602rm -f conftest.$ac_objext conftest$ac_exeext
24603if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24604 (eval $ac_link) 2>conftest.er1
a848cd7e 24605 ac_status=$?
ac1cb8d3
VS
24606 grep -v '^ *+' conftest.er1 >conftest.err
24607 rm -f conftest.er1
24608 cat conftest.err >&5
a848cd7e
SC
24609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24610 (exit $ac_status); } &&
c9a66001 24611 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5d7b7554
VZ
24612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24613 (eval $ac_try) 2>&5
24614 ac_status=$?
24615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24616 (exit $ac_status); }; } &&
24617 { ac_try='test -s conftest$ac_exeext'
24618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24619 (eval $ac_try) 2>&5
24620 ac_status=$?
24621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24622 (exit $ac_status); }; }; then
24623 eval "$as_ac_var=yes"
24624else
24625 echo "$as_me: failed program was:" >&5
24626sed 's/^/| /' conftest.$ac_ext >&5
24627
24628eval "$as_ac_var=no"
24629fi
24630rm -f conftest.err conftest.$ac_objext \
24631 conftest$ac_exeext conftest.$ac_ext
24632fi
24633echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24634echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24635if test `eval echo '${'$as_ac_var'}'` = yes; then
24636 cat >>confdefs.h <<_ACEOF
24637#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24638_ACEOF
24639 have_floor=1
24640fi
24641done
24642
24643echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
24644echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
24645if test "$have_cos" = 1 -a "$have_floor" = 1; then
24646 echo "$as_me:$LINENO: result: yes" >&5
24647echo "${ECHO_T}yes" >&6
24648else
24649 echo "$as_me:$LINENO: result: no" >&5
24650echo "${ECHO_T}no" >&6
24651 LIBS="$LIBS -lm"
24652 # use different functions to avoid configure caching
24653 have_sin=0
24654 have_ceil=0
24655
24656for ac_func in sin
24657do
24658as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24659echo "$as_me:$LINENO: checking for $ac_func" >&5
24660echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24661if eval "test \"\${$as_ac_var+set}\" = set"; then
24662 echo $ECHO_N "(cached) $ECHO_C" >&6
24663else
24664 cat >conftest.$ac_ext <<_ACEOF
24665/* confdefs.h. */
24666_ACEOF
24667cat confdefs.h >>conftest.$ac_ext
24668cat >>conftest.$ac_ext <<_ACEOF
24669/* end confdefs.h. */
24670/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24671 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24672#define $ac_func innocuous_$ac_func
24673
24674/* System header to define __stub macros and hopefully few prototypes,
24675 which can conflict with char $ac_func (); below.
24676 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24677 <limits.h> exists even on freestanding compilers. */
24678
24679#ifdef __STDC__
24680# include <limits.h>
24681#else
24682# include <assert.h>
24683#endif
24684
24685#undef $ac_func
24686
24687/* Override any gcc2 internal prototype to avoid an error. */
24688#ifdef __cplusplus
24689extern "C"
24690{
24691#endif
24692/* We use char because int might match the return type of a gcc2
24693 builtin and then its argument prototype would still apply. */
24694char $ac_func ();
24695/* The GNU C library defines this for functions which it implements
24696 to always fail with ENOSYS. Some functions are actually named
24697 something starting with __ and the normal name is an alias. */
24698#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24699choke me
24700#else
24701char (*f) () = $ac_func;
24702#endif
24703#ifdef __cplusplus
24704}
24705#endif
24706
24707int
24708main ()
24709{
24710return f != $ac_func;
24711 ;
24712 return 0;
24713}
24714_ACEOF
24715rm -f conftest.$ac_objext conftest$ac_exeext
24716if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24717 (eval $ac_link) 2>conftest.er1
24718 ac_status=$?
24719 grep -v '^ *+' conftest.er1 >conftest.err
24720 rm -f conftest.er1
24721 cat conftest.err >&5
24722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24723 (exit $ac_status); } &&
c9a66001 24724 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5d7b7554
VZ
24725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24726 (eval $ac_try) 2>&5
24727 ac_status=$?
24728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24729 (exit $ac_status); }; } &&
24730 { ac_try='test -s conftest$ac_exeext'
24731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24732 (eval $ac_try) 2>&5
24733 ac_status=$?
24734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24735 (exit $ac_status); }; }; then
24736 eval "$as_ac_var=yes"
24737else
24738 echo "$as_me: failed program was:" >&5
24739sed 's/^/| /' conftest.$ac_ext >&5
24740
24741eval "$as_ac_var=no"
24742fi
24743rm -f conftest.err conftest.$ac_objext \
24744 conftest$ac_exeext conftest.$ac_ext
24745fi
24746echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24747echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24748if test `eval echo '${'$as_ac_var'}'` = yes; then
24749 cat >>confdefs.h <<_ACEOF
24750#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24751_ACEOF
24752 have_sin=1
24753fi
24754done
24755
24756
24757for ac_func in ceil
24758do
24759as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24760echo "$as_me:$LINENO: checking for $ac_func" >&5
24761echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24762if eval "test \"\${$as_ac_var+set}\" = set"; then
24763 echo $ECHO_N "(cached) $ECHO_C" >&6
24764else
24765 cat >conftest.$ac_ext <<_ACEOF
24766/* confdefs.h. */
24767_ACEOF
24768cat confdefs.h >>conftest.$ac_ext
24769cat >>conftest.$ac_ext <<_ACEOF
24770/* end confdefs.h. */
24771/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24772 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24773#define $ac_func innocuous_$ac_func
24774
24775/* System header to define __stub macros and hopefully few prototypes,
24776 which can conflict with char $ac_func (); below.
24777 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24778 <limits.h> exists even on freestanding compilers. */
24779
24780#ifdef __STDC__
24781# include <limits.h>
24782#else
24783# include <assert.h>
24784#endif
24785
24786#undef $ac_func
24787
24788/* Override any gcc2 internal prototype to avoid an error. */
24789#ifdef __cplusplus
24790extern "C"
24791{
24792#endif
24793/* We use char because int might match the return type of a gcc2
24794 builtin and then its argument prototype would still apply. */
24795char $ac_func ();
24796/* The GNU C library defines this for functions which it implements
24797 to always fail with ENOSYS. Some functions are actually named
24798 something starting with __ and the normal name is an alias. */
24799#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24800choke me
24801#else
24802char (*f) () = $ac_func;
24803#endif
24804#ifdef __cplusplus
24805}
24806#endif
24807
24808int
24809main ()
24810{
24811return f != $ac_func;
24812 ;
24813 return 0;
24814}
24815_ACEOF
24816rm -f conftest.$ac_objext conftest$ac_exeext
24817if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24818 (eval $ac_link) 2>conftest.er1
24819 ac_status=$?
24820 grep -v '^ *+' conftest.er1 >conftest.err
24821 rm -f conftest.er1
24822 cat conftest.err >&5
24823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24824 (exit $ac_status); } &&
c9a66001 24825 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5d7b7554
VZ
24826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24827 (eval $ac_try) 2>&5
24828 ac_status=$?
24829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24830 (exit $ac_status); }; } &&
24831 { ac_try='test -s conftest$ac_exeext'
24832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24833 (eval $ac_try) 2>&5
24834 ac_status=$?
24835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24836 (exit $ac_status); }; }; then
24837 eval "$as_ac_var=yes"
24838else
24839 echo "$as_me: failed program was:" >&5
24840sed 's/^/| /' conftest.$ac_ext >&5
24841
24842eval "$as_ac_var=no"
24843fi
24844rm -f conftest.err conftest.$ac_objext \
24845 conftest$ac_exeext conftest.$ac_ext
24846fi
24847echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24848echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24849if test `eval echo '${'$as_ac_var'}'` = yes; then
24850 cat >>confdefs.h <<_ACEOF
24851#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24852_ACEOF
24853 have_ceil=1
24854fi
24855done
24856
24857 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
24858echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
24859 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
24860 echo "$as_me:$LINENO: result: yes" >&5
24861echo "${ECHO_T}yes" >&6
24862 else
24863 echo "$as_me:$LINENO: result: no" >&5
24864echo "${ECHO_T}no" >&6
24865 # not sure we should warn the user, crash, etc.
24866 fi
24867fi
24868
24869
24870
24871if test "$wxUSE_REGEX" != "no"; then
24872 cat >>confdefs.h <<\_ACEOF
24873#define wxUSE_REGEX 1
24874_ACEOF
24875
24876
24877 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
24878 { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
24879echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
24880 wxUSE_REGEX=builtin
24881 fi
24882
24883 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
24884 if test "${ac_cv_header_regex_h+set}" = set; then
24885 echo "$as_me:$LINENO: checking for regex.h" >&5
24886echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
24887if test "${ac_cv_header_regex_h+set}" = set; then
24888 echo $ECHO_N "(cached) $ECHO_C" >&6
24889fi
24890echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
24891echo "${ECHO_T}$ac_cv_header_regex_h" >&6
24892else
24893 # Is the header compilable?
24894echo "$as_me:$LINENO: checking regex.h usability" >&5
24895echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
24896cat >conftest.$ac_ext <<_ACEOF
24897/* confdefs.h. */
24898_ACEOF
24899cat confdefs.h >>conftest.$ac_ext
24900cat >>conftest.$ac_ext <<_ACEOF
24901/* end confdefs.h. */
24902$ac_includes_default
24903#include <regex.h>
24904_ACEOF
24905rm -f conftest.$ac_objext
24906if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24907 (eval $ac_compile) 2>conftest.er1
24908 ac_status=$?
24909 grep -v '^ *+' conftest.er1 >conftest.err
24910 rm -f conftest.er1
24911 cat conftest.err >&5
24912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24913 (exit $ac_status); } &&
c9a66001 24914 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5d7b7554
VZ
24915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24916 (eval $ac_try) 2>&5
24917 ac_status=$?
24918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24919 (exit $ac_status); }; } &&
24920 { ac_try='test -s conftest.$ac_objext'
24921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24922 (eval $ac_try) 2>&5
24923 ac_status=$?
24924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24925 (exit $ac_status); }; }; then
24926 ac_header_compiler=yes
24927else
24928 echo "$as_me: failed program was:" >&5
24929sed 's/^/| /' conftest.$ac_ext >&5
24930
24931ac_header_compiler=no
24932fi
24933rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24934echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24935echo "${ECHO_T}$ac_header_compiler" >&6
24936
24937# Is the header present?
24938echo "$as_me:$LINENO: checking regex.h presence" >&5
24939echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
24940cat >conftest.$ac_ext <<_ACEOF
24941/* confdefs.h. */
24942_ACEOF
24943cat confdefs.h >>conftest.$ac_ext
24944cat >>conftest.$ac_ext <<_ACEOF
24945/* end confdefs.h. */
24946#include <regex.h>
24947_ACEOF
24948if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24949 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24950 ac_status=$?
24951 grep -v '^ *+' conftest.er1 >conftest.err
24952 rm -f conftest.er1
24953 cat conftest.err >&5
24954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24955 (exit $ac_status); } >/dev/null; then
24956 if test -s conftest.err; then
24957 ac_cpp_err=$ac_cxx_preproc_warn_flag
24958 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
24959 else
24960 ac_cpp_err=
24961 fi
24962else
24963 ac_cpp_err=yes
24964fi
24965if test -z "$ac_cpp_err"; then
24966 ac_header_preproc=yes
24967else
24968 echo "$as_me: failed program was:" >&5
24969sed 's/^/| /' conftest.$ac_ext >&5
24970
24971 ac_header_preproc=no
24972fi
24973rm -f conftest.err conftest.$ac_ext
24974echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24975echo "${ECHO_T}$ac_header_preproc" >&6
24976
24977# So? What about this header?
24978case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
24979 yes:no: )
24980 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
24981echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24982 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
24983echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
24984 ac_header_preproc=yes
24985 ;;
24986 no:yes:* )
24987 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
24988echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
24989 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
24990echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
24991 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
24992echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
24993 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
24994echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
24995 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
24996echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
24997 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
24998echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
24999 (
25000 cat <<\_ASBOX
25001## ----------------------------------------- ##
25002## Report this to wx-dev@lists.wxwidgets.org ##
25003## ----------------------------------------- ##
25004_ASBOX
25005 ) |
25006 sed "s/^/$as_me: WARNING: /" >&2
25007 ;;
25008esac
25009echo "$as_me:$LINENO: checking for regex.h" >&5
25010echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
25011if test "${ac_cv_header_regex_h+set}" = set; then
25012 echo $ECHO_N "(cached) $ECHO_C" >&6
25013else
25014 ac_cv_header_regex_h=$ac_header_preproc
25015fi
25016echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
25017echo "${ECHO_T}$ac_cv_header_regex_h" >&6
25018
25019fi
25020if test $ac_cv_header_regex_h = yes; then
25021
25022
25023for ac_func in regcomp re_search
25024do
25025as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25026echo "$as_me:$LINENO: checking for $ac_func" >&5
25027echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25028if eval "test \"\${$as_ac_var+set}\" = set"; then
25029 echo $ECHO_N "(cached) $ECHO_C" >&6
25030else
25031 cat >conftest.$ac_ext <<_ACEOF
25032/* confdefs.h. */
25033_ACEOF
25034cat confdefs.h >>conftest.$ac_ext
25035cat >>conftest.$ac_ext <<_ACEOF
25036/* end confdefs.h. */
25037/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25038 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25039#define $ac_func innocuous_$ac_func
25040
25041/* System header to define __stub macros and hopefully few prototypes,
25042 which can conflict with char $ac_func (); below.
25043 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25044 <limits.h> exists even on freestanding compilers. */
25045
25046#ifdef __STDC__
25047# include <limits.h>
25048#else
25049# include <assert.h>
25050#endif
25051
25052#undef $ac_func
25053
25054/* Override any gcc2 internal prototype to avoid an error. */
25055#ifdef __cplusplus
25056extern "C"
25057{
25058#endif
25059/* We use char because int might match the return type of a gcc2
25060 builtin and then its argument prototype would still apply. */
25061char $ac_func ();
25062/* The GNU C library defines this for functions which it implements
25063 to always fail with ENOSYS. Some functions are actually named
25064 something starting with __ and the normal name is an alias. */
25065#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25066choke me
25067#else
25068char (*f) () = $ac_func;
25069#endif
25070#ifdef __cplusplus
25071}
25072#endif
25073
25074int
25075main ()
25076{
25077return f != $ac_func;
25078 ;
25079 return 0;
25080}
25081_ACEOF
25082rm -f conftest.$ac_objext conftest$ac_exeext
25083if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25084 (eval $ac_link) 2>conftest.er1
25085 ac_status=$?
25086 grep -v '^ *+' conftest.er1 >conftest.err
25087 rm -f conftest.er1
25088 cat conftest.err >&5
25089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25090 (exit $ac_status); } &&
c9a66001 25091 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25093 (eval $ac_try) 2>&5
25094 ac_status=$?
25095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25096 (exit $ac_status); }; } &&
25097 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25099 (eval $ac_try) 2>&5
25100 ac_status=$?
25101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25102 (exit $ac_status); }; }; then
25103 eval "$as_ac_var=yes"
25104else
25105 echo "$as_me: failed program was:" >&5
25106sed 's/^/| /' conftest.$ac_ext >&5
25107
25108eval "$as_ac_var=no"
25109fi
ac1cb8d3
VS
25110rm -f conftest.err conftest.$ac_objext \
25111 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25112fi
25113echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25114echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25115if test `eval echo '${'$as_ac_var'}'` = yes; then
25116 cat >>confdefs.h <<_ACEOF
25117#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25118_ACEOF
25119
25120fi
25121done
25122
25123fi
25124
25125
25126
25127 if test "x$ac_cv_func_regcomp" != "xyes"; then
25128 if test "$wxUSE_REGEX" = "sys" ; then
25129 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
25130echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
25131 { (exit 1); exit 1; }; }
25132 else
25133 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
25134echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
25135 wxUSE_REGEX=builtin
25136 fi
25137 else
25138 wxUSE_REGEX=sys
25139 cat >>confdefs.h <<\_ACEOF
25140#define WX_NO_REGEX_ADVANCED 1
25141_ACEOF
25142
25143 fi
25144 fi
25145fi
25146
25147
25148ZLIB_LINK=
25149if test "$wxUSE_ZLIB" != "no" ; then
25150 cat >>confdefs.h <<\_ACEOF
25151#define wxUSE_ZLIB 1
25152_ACEOF
25153
25154
25155 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
25156 if test "$USE_DARWIN" = 1; then
25157 system_zlib_h_ok="yes"
25158 else
25159 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
25160echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
25161if test "${ac_cv_header_zlib_h+set}" = set; then
25162 echo $ECHO_N "(cached) $ECHO_C" >&6
25163else
25164 if test "$cross_compiling" = yes; then
25165 unset ac_cv_header_zlib_h
25166
25167else
25168 cat >conftest.$ac_ext <<_ACEOF
25169/* confdefs.h. */
25170_ACEOF
25171cat confdefs.h >>conftest.$ac_ext
25172cat >>conftest.$ac_ext <<_ACEOF
25173/* end confdefs.h. */
25174
25175 #include <zlib.h>
25176 #include <stdio.h>
25177
25178 int main()
25179 {
25180 FILE *f=fopen("conftestval", "w");
25181 if (!f) exit(1);
25182 fprintf(f, "%s",
25183 ZLIB_VERSION[0] == '1' &&
25184 (ZLIB_VERSION[2] > '1' ||
25185 (ZLIB_VERSION[2] == '1' &&
25186 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
25187 exit(0);
25188 }
25189
25190_ACEOF
25191rm -f conftest$ac_exeext
25192if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25193 (eval $ac_link) 2>&5
25194 ac_status=$?
25195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25196 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25198 (eval $ac_try) 2>&5
25199 ac_status=$?
25200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25201 (exit $ac_status); }; }; then
25202 ac_cv_header_zlib_h=`cat conftestval`
25203else
25204 echo "$as_me: program exited with status $ac_status" >&5
25205echo "$as_me: failed program was:" >&5
25206sed 's/^/| /' conftest.$ac_ext >&5
25207
25208( exit $ac_status )
25209ac_cv_header_zlib_h=no
25210fi
ac1cb8d3 25211rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25212fi
25213
25214fi
25215echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
25216echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
25217 if test "${ac_cv_header_zlib_h+set}" = set; then
25218 echo "$as_me:$LINENO: checking for zlib.h" >&5
25219echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
25220if test "${ac_cv_header_zlib_h+set}" = set; then
25221 echo $ECHO_N "(cached) $ECHO_C" >&6
25222fi
25223echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
25224echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
25225else
25226 # Is the header compilable?
25227echo "$as_me:$LINENO: checking zlib.h usability" >&5
25228echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
25229cat >conftest.$ac_ext <<_ACEOF
25230/* confdefs.h. */
25231_ACEOF
25232cat confdefs.h >>conftest.$ac_ext
25233cat >>conftest.$ac_ext <<_ACEOF
25234/* end confdefs.h. */
25235$ac_includes_default
25236#include <zlib.h>
25237_ACEOF
25238rm -f conftest.$ac_objext
25239if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25240 (eval $ac_compile) 2>conftest.er1
a848cd7e 25241 ac_status=$?
ac1cb8d3
VS
25242 grep -v '^ *+' conftest.er1 >conftest.err
25243 rm -f conftest.er1
25244 cat conftest.err >&5
a848cd7e
SC
25245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25246 (exit $ac_status); } &&
c9a66001 25247 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25249 (eval $ac_try) 2>&5
25250 ac_status=$?
25251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25252 (exit $ac_status); }; } &&
25253 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25255 (eval $ac_try) 2>&5
25256 ac_status=$?
25257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25258 (exit $ac_status); }; }; then
25259 ac_header_compiler=yes
25260else
25261 echo "$as_me: failed program was:" >&5
25262sed 's/^/| /' conftest.$ac_ext >&5
25263
25264ac_header_compiler=no
25265fi
ac1cb8d3 25266rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25267echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25268echo "${ECHO_T}$ac_header_compiler" >&6
25269
25270# Is the header present?
25271echo "$as_me:$LINENO: checking zlib.h presence" >&5
25272echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
25273cat >conftest.$ac_ext <<_ACEOF
25274/* confdefs.h. */
25275_ACEOF
25276cat confdefs.h >>conftest.$ac_ext
25277cat >>conftest.$ac_ext <<_ACEOF
25278/* end confdefs.h. */
25279#include <zlib.h>
25280_ACEOF
25281if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25282 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25283 ac_status=$?
25284 grep -v '^ *+' conftest.er1 >conftest.err
25285 rm -f conftest.er1
25286 cat conftest.err >&5
25287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25288 (exit $ac_status); } >/dev/null; then
25289 if test -s conftest.err; then
5d7b7554
VZ
25290 ac_cpp_err=$ac_cxx_preproc_warn_flag
25291 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
25292 else
25293 ac_cpp_err=
25294 fi
25295else
25296 ac_cpp_err=yes
25297fi
25298if test -z "$ac_cpp_err"; then
25299 ac_header_preproc=yes
25300else
25301 echo "$as_me: failed program was:" >&5
25302sed 's/^/| /' conftest.$ac_ext >&5
25303
25304 ac_header_preproc=no
25305fi
25306rm -f conftest.err conftest.$ac_ext
25307echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25308echo "${ECHO_T}$ac_header_preproc" >&6
25309
25310# So? What about this header?
5d7b7554 25311case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 25312 yes:no: )
a848cd7e
SC
25313 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
25314echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
25315 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
25316echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
25317 ac_header_preproc=yes
a848cd7e 25318 ;;
ac1cb8d3 25319 no:yes:* )
a848cd7e
SC
25320 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
25321echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
25322 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
25323echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
25324 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
25325echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
25326 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
25327echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
25328 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
25329echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
25330 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
25331echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
25332 (
25333 cat <<\_ASBOX
ac1cb8d3
VS
25334## ----------------------------------------- ##
25335## Report this to wx-dev@lists.wxwidgets.org ##
25336## ----------------------------------------- ##
a848cd7e
SC
25337_ASBOX
25338 ) |
25339 sed "s/^/$as_me: WARNING: /" >&2
25340 ;;
25341esac
25342echo "$as_me:$LINENO: checking for zlib.h" >&5
25343echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
25344if test "${ac_cv_header_zlib_h+set}" = set; then
25345 echo $ECHO_N "(cached) $ECHO_C" >&6
25346else
25347 ac_cv_header_zlib_h=$ac_header_preproc
25348fi
25349echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
25350echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
25351
25352fi
25353
25354
25355
25356 system_zlib_h_ok=$ac_cv_header_zlib_h
25357 fi
25358
25359 if test "$system_zlib_h_ok" = "yes"; then
25360 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
25361echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
25362if test "${ac_cv_lib_z_deflate+set}" = set; then
25363 echo $ECHO_N "(cached) $ECHO_C" >&6
25364else
25365 ac_check_lib_save_LIBS=$LIBS
25366LIBS="-lz $LIBS"
25367cat >conftest.$ac_ext <<_ACEOF
25368/* confdefs.h. */
25369_ACEOF
25370cat confdefs.h >>conftest.$ac_ext
25371cat >>conftest.$ac_ext <<_ACEOF
25372/* end confdefs.h. */
25373
25374/* Override any gcc2 internal prototype to avoid an error. */
25375#ifdef __cplusplus
25376extern "C"
25377#endif
25378/* We use char because int might match the return type of a gcc2
25379 builtin and then its argument prototype would still apply. */
25380char deflate ();
25381int
25382main ()
25383{
25384deflate ();
25385 ;
25386 return 0;
25387}
25388_ACEOF
25389rm -f conftest.$ac_objext conftest$ac_exeext
25390if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25391 (eval $ac_link) 2>conftest.er1
a848cd7e 25392 ac_status=$?
ac1cb8d3
VS
25393 grep -v '^ *+' conftest.er1 >conftest.err
25394 rm -f conftest.er1
25395 cat conftest.err >&5
a848cd7e
SC
25396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25397 (exit $ac_status); } &&
c9a66001 25398 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25400 (eval $ac_try) 2>&5
25401 ac_status=$?
25402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25403 (exit $ac_status); }; } &&
25404 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25406 (eval $ac_try) 2>&5
25407 ac_status=$?
25408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25409 (exit $ac_status); }; }; then
25410 ac_cv_lib_z_deflate=yes
25411else
25412 echo "$as_me: failed program was:" >&5
25413sed 's/^/| /' conftest.$ac_ext >&5
25414
25415ac_cv_lib_z_deflate=no
25416fi
ac1cb8d3
VS
25417rm -f conftest.err conftest.$ac_objext \
25418 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25419LIBS=$ac_check_lib_save_LIBS
25420fi
25421echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
25422echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
25423if test $ac_cv_lib_z_deflate = yes; then
25424 ZLIB_LINK=" -lz"
25425fi
25426
25427 fi
25428
25429 if test "x$ZLIB_LINK" = "x" ; then
25430 if test "$wxUSE_ZLIB" = "sys" ; then
25431 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
25432echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
25433 { (exit 1); exit 1; }; }
25434 else
25435 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
25436echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
25437 wxUSE_ZLIB=builtin
25438 fi
25439 else
25440 wxUSE_ZLIB=sys
25441 fi
25442 fi
25443fi
25444
25445
25446PNG_LINK=
25447if test "$wxUSE_LIBPNG" != "no" ; then
25448 cat >>confdefs.h <<\_ACEOF
25449#define wxUSE_LIBPNG 1
25450_ACEOF
25451
25452
25453 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
25454 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
25455echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
25456 wxUSE_LIBPNG=sys
25457 fi
25458
25459 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
25460 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
25461echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
25462 wxUSE_LIBPNG=builtin
25463 fi
25464
25465 if test "$wxUSE_MGL" != 1 ; then
25466 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
25467 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
25468echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
25469if test "${ac_cv_header_png_h+set}" = set; then
25470 echo $ECHO_N "(cached) $ECHO_C" >&6
25471else
25472 if test "$cross_compiling" = yes; then
25473 unset ac_cv_header_png_h
25474
25475else
25476 cat >conftest.$ac_ext <<_ACEOF
25477/* confdefs.h. */
25478_ACEOF
25479cat confdefs.h >>conftest.$ac_ext
25480cat >>conftest.$ac_ext <<_ACEOF
25481/* end confdefs.h. */
25482
25483 #include <png.h>
25484 #include <stdio.h>
25485
25486 int main()
25487 {
25488 FILE *f=fopen("conftestval", "w");
25489 if (!f) exit(1);
25490 fprintf(f, "%s",
25491 PNG_LIBPNG_VER > 90 ? "yes" : "no");
25492 exit(0);
25493 }
25494
25495_ACEOF
25496rm -f conftest$ac_exeext
25497if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25498 (eval $ac_link) 2>&5
25499 ac_status=$?
25500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25501 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25503 (eval $ac_try) 2>&5
25504 ac_status=$?
25505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25506 (exit $ac_status); }; }; then
25507 ac_cv_header_png_h=`cat conftestval`
25508else
25509 echo "$as_me: program exited with status $ac_status" >&5
25510echo "$as_me: failed program was:" >&5
25511sed 's/^/| /' conftest.$ac_ext >&5
25512
25513( exit $ac_status )
25514ac_cv_header_png_h=no
25515fi
ac1cb8d3 25516rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25517fi
25518
25519fi
25520echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
25521echo "${ECHO_T}$ac_cv_header_png_h" >&6
25522 if test "${ac_cv_header_png_h+set}" = set; then
25523 echo "$as_me:$LINENO: checking for png.h" >&5
25524echo $ECHO_N "checking for png.h... $ECHO_C" >&6
25525if test "${ac_cv_header_png_h+set}" = set; then
25526 echo $ECHO_N "(cached) $ECHO_C" >&6
25527fi
25528echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
25529echo "${ECHO_T}$ac_cv_header_png_h" >&6
25530else
25531 # Is the header compilable?
25532echo "$as_me:$LINENO: checking png.h usability" >&5
25533echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
25534cat >conftest.$ac_ext <<_ACEOF
25535/* confdefs.h. */
25536_ACEOF
25537cat confdefs.h >>conftest.$ac_ext
25538cat >>conftest.$ac_ext <<_ACEOF
25539/* end confdefs.h. */
25540$ac_includes_default
25541#include <png.h>
25542_ACEOF
25543rm -f conftest.$ac_objext
25544if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25545 (eval $ac_compile) 2>conftest.er1
a848cd7e 25546 ac_status=$?
ac1cb8d3
VS
25547 grep -v '^ *+' conftest.er1 >conftest.err
25548 rm -f conftest.er1
25549 cat conftest.err >&5
a848cd7e
SC
25550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25551 (exit $ac_status); } &&
c9a66001 25552 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25554 (eval $ac_try) 2>&5
25555 ac_status=$?
25556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25557 (exit $ac_status); }; } &&
25558 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25560 (eval $ac_try) 2>&5
25561 ac_status=$?
25562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25563 (exit $ac_status); }; }; then
25564 ac_header_compiler=yes
25565else
25566 echo "$as_me: failed program was:" >&5
25567sed 's/^/| /' conftest.$ac_ext >&5
25568
25569ac_header_compiler=no
25570fi
ac1cb8d3 25571rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25572echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25573echo "${ECHO_T}$ac_header_compiler" >&6
25574
25575# Is the header present?
25576echo "$as_me:$LINENO: checking png.h presence" >&5
25577echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
25578cat >conftest.$ac_ext <<_ACEOF
25579/* confdefs.h. */
25580_ACEOF
25581cat confdefs.h >>conftest.$ac_ext
25582cat >>conftest.$ac_ext <<_ACEOF
25583/* end confdefs.h. */
25584#include <png.h>
25585_ACEOF
25586if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25587 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25588 ac_status=$?
25589 grep -v '^ *+' conftest.er1 >conftest.err
25590 rm -f conftest.er1
25591 cat conftest.err >&5
25592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25593 (exit $ac_status); } >/dev/null; then
25594 if test -s conftest.err; then
5d7b7554
VZ
25595 ac_cpp_err=$ac_cxx_preproc_warn_flag
25596 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
25597 else
25598 ac_cpp_err=
25599 fi
25600else
25601 ac_cpp_err=yes
25602fi
25603if test -z "$ac_cpp_err"; then
25604 ac_header_preproc=yes
25605else
25606 echo "$as_me: failed program was:" >&5
25607sed 's/^/| /' conftest.$ac_ext >&5
25608
25609 ac_header_preproc=no
25610fi
25611rm -f conftest.err conftest.$ac_ext
25612echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25613echo "${ECHO_T}$ac_header_preproc" >&6
25614
25615# So? What about this header?
5d7b7554 25616case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 25617 yes:no: )
a848cd7e
SC
25618 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
25619echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
25620 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
25621echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
25622 ac_header_preproc=yes
a848cd7e 25623 ;;
ac1cb8d3 25624 no:yes:* )
a848cd7e
SC
25625 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
25626echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
25627 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
25628echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
25629 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
25630echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
25631 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
25632echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
25633 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
25634echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
25635 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
25636echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
25637 (
25638 cat <<\_ASBOX
ac1cb8d3
VS
25639## ----------------------------------------- ##
25640## Report this to wx-dev@lists.wxwidgets.org ##
25641## ----------------------------------------- ##
a848cd7e
SC
25642_ASBOX
25643 ) |
25644 sed "s/^/$as_me: WARNING: /" >&2
25645 ;;
25646esac
25647echo "$as_me:$LINENO: checking for png.h" >&5
25648echo $ECHO_N "checking for png.h... $ECHO_C" >&6
25649if test "${ac_cv_header_png_h+set}" = set; then
25650 echo $ECHO_N "(cached) $ECHO_C" >&6
25651else
25652 ac_cv_header_png_h=$ac_header_preproc
25653fi
25654echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
25655echo "${ECHO_T}$ac_cv_header_png_h" >&6
25656
25657fi
25658
25659
25660
25661 if test "$ac_cv_header_png_h" = "yes"; then
25662 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
25663echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
25664if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
25665 echo $ECHO_N "(cached) $ECHO_C" >&6
25666else
25667 ac_check_lib_save_LIBS=$LIBS
25668LIBS="-lpng -lz -lm $LIBS"
25669cat >conftest.$ac_ext <<_ACEOF
25670/* confdefs.h. */
25671_ACEOF
25672cat confdefs.h >>conftest.$ac_ext
25673cat >>conftest.$ac_ext <<_ACEOF
25674/* end confdefs.h. */
25675
25676/* Override any gcc2 internal prototype to avoid an error. */
25677#ifdef __cplusplus
25678extern "C"
25679#endif
25680/* We use char because int might match the return type of a gcc2
25681 builtin and then its argument prototype would still apply. */
25682char png_check_sig ();
25683int
25684main ()
25685{
25686png_check_sig ();
25687 ;
25688 return 0;
25689}
25690_ACEOF
25691rm -f conftest.$ac_objext conftest$ac_exeext
25692if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25693 (eval $ac_link) 2>conftest.er1
a848cd7e 25694 ac_status=$?
ac1cb8d3
VS
25695 grep -v '^ *+' conftest.er1 >conftest.err
25696 rm -f conftest.er1
25697 cat conftest.err >&5
a848cd7e
SC
25698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25699 (exit $ac_status); } &&
c9a66001 25700 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25702 (eval $ac_try) 2>&5
25703 ac_status=$?
25704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25705 (exit $ac_status); }; } &&
25706 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25708 (eval $ac_try) 2>&5
25709 ac_status=$?
25710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25711 (exit $ac_status); }; }; then
25712 ac_cv_lib_png_png_check_sig=yes
25713else
25714 echo "$as_me: failed program was:" >&5
25715sed 's/^/| /' conftest.$ac_ext >&5
25716
25717ac_cv_lib_png_png_check_sig=no
25718fi
ac1cb8d3
VS
25719rm -f conftest.err conftest.$ac_objext \
25720 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25721LIBS=$ac_check_lib_save_LIBS
25722fi
25723echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
25724echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
25725if test $ac_cv_lib_png_png_check_sig = yes; then
25726 PNG_LINK=" -lpng -lz"
25727fi
25728
25729 fi
25730
25731 if test "x$PNG_LINK" = "x" ; then
25732 if test "$wxUSE_LIBPNG" = "sys" ; then
25733 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
25734echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
25735 { (exit 1); exit 1; }; }
25736 else
25737 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
25738echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
25739 wxUSE_LIBPNG=builtin
25740 fi
25741 else
25742 wxUSE_LIBPNG=sys
25743 fi
25744 fi
25745 fi
25746
25747 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
25748fi
25749
25750
25751JPEG_LINK=
25752if test "$wxUSE_LIBJPEG" != "no" ; then
25753 cat >>confdefs.h <<\_ACEOF
25754#define wxUSE_LIBJPEG 1
25755_ACEOF
25756
25757
25758 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
25759 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
25760echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
25761 wxUSE_LIBJPEG=sys
25762 fi
25763
25764 if test "$wxUSE_MGL" != 1 ; then
25765 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
25766 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
25767echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
25768 if test "${ac_cv_header_jpeglib_h+set}" = set; then
25769 echo $ECHO_N "(cached) $ECHO_C" >&6
25770else
25771 cat >conftest.$ac_ext <<_ACEOF
25772/* confdefs.h. */
25773_ACEOF
25774cat confdefs.h >>conftest.$ac_ext
25775cat >>conftest.$ac_ext <<_ACEOF
25776/* end confdefs.h. */
25777
25778 #undef HAVE_STDLIB_H
25779 #include <stdio.h>
25780 #include <jpeglib.h>
25781
25782int
25783main ()
25784{
25785
25786
25787 ;
25788 return 0;
25789}
25790_ACEOF
25791rm -f conftest.$ac_objext
25792if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25793 (eval $ac_compile) 2>conftest.er1
a848cd7e 25794 ac_status=$?
ac1cb8d3
VS
25795 grep -v '^ *+' conftest.er1 >conftest.err
25796 rm -f conftest.er1
25797 cat conftest.err >&5
a848cd7e
SC
25798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25799 (exit $ac_status); } &&
c9a66001 25800 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25802 (eval $ac_try) 2>&5
25803 ac_status=$?
25804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25805 (exit $ac_status); }; } &&
25806 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25808 (eval $ac_try) 2>&5
25809 ac_status=$?
25810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25811 (exit $ac_status); }; }; then
25812 ac_cv_header_jpeglib_h=yes
25813else
25814 echo "$as_me: failed program was:" >&5
25815sed 's/^/| /' conftest.$ac_ext >&5
25816
25817ac_cv_header_jpeglib_h=no
25818
25819fi
ac1cb8d3 25820rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25821
25822fi
25823
25824 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
25825echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
25826
25827 if test "$ac_cv_header_jpeglib_h" = "yes"; then
25828 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
25829echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
25830if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
25831 echo $ECHO_N "(cached) $ECHO_C" >&6
25832else
25833 ac_check_lib_save_LIBS=$LIBS
25834LIBS="-ljpeg $LIBS"
25835cat >conftest.$ac_ext <<_ACEOF
25836/* confdefs.h. */
25837_ACEOF
25838cat confdefs.h >>conftest.$ac_ext
25839cat >>conftest.$ac_ext <<_ACEOF
25840/* end confdefs.h. */
25841
25842/* Override any gcc2 internal prototype to avoid an error. */
25843#ifdef __cplusplus
25844extern "C"
25845#endif
25846/* We use char because int might match the return type of a gcc2
25847 builtin and then its argument prototype would still apply. */
25848char jpeg_read_header ();
25849int
25850main ()
25851{
25852jpeg_read_header ();
25853 ;
25854 return 0;
25855}
25856_ACEOF
25857rm -f conftest.$ac_objext conftest$ac_exeext
25858if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25859 (eval $ac_link) 2>conftest.er1
a848cd7e 25860 ac_status=$?
ac1cb8d3
VS
25861 grep -v '^ *+' conftest.er1 >conftest.err
25862 rm -f conftest.er1
25863 cat conftest.err >&5
a848cd7e
SC
25864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25865 (exit $ac_status); } &&
c9a66001 25866 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25868 (eval $ac_try) 2>&5
25869 ac_status=$?
25870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25871 (exit $ac_status); }; } &&
25872 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25874 (eval $ac_try) 2>&5
25875 ac_status=$?
25876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25877 (exit $ac_status); }; }; then
25878 ac_cv_lib_jpeg_jpeg_read_header=yes
25879else
25880 echo "$as_me: failed program was:" >&5
25881sed 's/^/| /' conftest.$ac_ext >&5
25882
25883ac_cv_lib_jpeg_jpeg_read_header=no
25884fi
ac1cb8d3
VS
25885rm -f conftest.err conftest.$ac_objext \
25886 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25887LIBS=$ac_check_lib_save_LIBS
25888fi
25889echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
25890echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
25891if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
25892 JPEG_LINK=" -ljpeg"
25893fi
25894
25895 fi
25896
25897 if test "x$JPEG_LINK" = "x" ; then
25898 if test "$wxUSE_LIBJPEG" = "sys" ; then
25899 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
25900echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
25901 { (exit 1); exit 1; }; }
25902 else
25903 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
25904echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
25905 wxUSE_LIBJPEG=builtin
25906 fi
25907 else
25908 wxUSE_LIBJPEG=sys
25909 fi
25910 fi
25911 fi
25912fi
25913
25914
25915TIFF_LINK=
25916TIFF_PREREQ_LINKS=-lm
25917if test "$wxUSE_LIBTIFF" != "no" ; then
25918 cat >>confdefs.h <<\_ACEOF
25919#define wxUSE_LIBTIFF 1
25920_ACEOF
25921
25922
25923 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
25924 if test "$wxUSE_LIBJPEG" = "sys"; then
25925 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
25926 fi
25927 if test "$wxUSE_ZLIB" = "sys"; then
25928 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
25929 fi
25930 if test "${ac_cv_header_tiffio_h+set}" = set; then
25931 echo "$as_me:$LINENO: checking for tiffio.h" >&5
25932echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
25933if test "${ac_cv_header_tiffio_h+set}" = set; then
25934 echo $ECHO_N "(cached) $ECHO_C" >&6
25935fi
25936echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
25937echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
25938else
25939 # Is the header compilable?
25940echo "$as_me:$LINENO: checking tiffio.h usability" >&5
25941echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
25942cat >conftest.$ac_ext <<_ACEOF
25943/* confdefs.h. */
25944_ACEOF
25945cat confdefs.h >>conftest.$ac_ext
25946cat >>conftest.$ac_ext <<_ACEOF
25947/* end confdefs.h. */
25948$ac_includes_default
25949#include <tiffio.h>
25950_ACEOF
25951rm -f conftest.$ac_objext
25952if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25953 (eval $ac_compile) 2>conftest.er1
a848cd7e 25954 ac_status=$?
ac1cb8d3
VS
25955 grep -v '^ *+' conftest.er1 >conftest.err
25956 rm -f conftest.er1
25957 cat conftest.err >&5
a848cd7e
SC
25958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25959 (exit $ac_status); } &&
c9a66001 25960 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25962 (eval $ac_try) 2>&5
25963 ac_status=$?
25964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25965 (exit $ac_status); }; } &&
25966 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25968 (eval $ac_try) 2>&5
25969 ac_status=$?
25970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25971 (exit $ac_status); }; }; then
25972 ac_header_compiler=yes
25973else
25974 echo "$as_me: failed program was:" >&5
25975sed 's/^/| /' conftest.$ac_ext >&5
25976
25977ac_header_compiler=no
25978fi
ac1cb8d3 25979rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25980echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25981echo "${ECHO_T}$ac_header_compiler" >&6
25982
25983# Is the header present?
25984echo "$as_me:$LINENO: checking tiffio.h presence" >&5
25985echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
25986cat >conftest.$ac_ext <<_ACEOF
25987/* confdefs.h. */
25988_ACEOF
25989cat confdefs.h >>conftest.$ac_ext
25990cat >>conftest.$ac_ext <<_ACEOF
25991/* end confdefs.h. */
25992#include <tiffio.h>
25993_ACEOF
25994if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25995 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25996 ac_status=$?
25997 grep -v '^ *+' conftest.er1 >conftest.err
25998 rm -f conftest.er1
25999 cat conftest.err >&5
26000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26001 (exit $ac_status); } >/dev/null; then
26002 if test -s conftest.err; then
5d7b7554
VZ
26003 ac_cpp_err=$ac_cxx_preproc_warn_flag
26004 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
26005 else
26006 ac_cpp_err=
26007 fi
26008else
26009 ac_cpp_err=yes
26010fi
26011if test -z "$ac_cpp_err"; then
26012 ac_header_preproc=yes
26013else
26014 echo "$as_me: failed program was:" >&5
26015sed 's/^/| /' conftest.$ac_ext >&5
26016
26017 ac_header_preproc=no
26018fi
26019rm -f conftest.err conftest.$ac_ext
26020echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26021echo "${ECHO_T}$ac_header_preproc" >&6
26022
26023# So? What about this header?
5d7b7554 26024case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 26025 yes:no: )
a848cd7e
SC
26026 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
26027echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
26028 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
26029echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
26030 ac_header_preproc=yes
a848cd7e 26031 ;;
ac1cb8d3 26032 no:yes:* )
a848cd7e
SC
26033 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
26034echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
26035 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
26036echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
26037 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
26038echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
26039 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
26040echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
26041 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
26042echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
26043 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
26044echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
26045 (
26046 cat <<\_ASBOX
ac1cb8d3
VS
26047## ----------------------------------------- ##
26048## Report this to wx-dev@lists.wxwidgets.org ##
26049## ----------------------------------------- ##
a848cd7e
SC
26050_ASBOX
26051 ) |
26052 sed "s/^/$as_me: WARNING: /" >&2
26053 ;;
26054esac
26055echo "$as_me:$LINENO: checking for tiffio.h" >&5
26056echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
26057if test "${ac_cv_header_tiffio_h+set}" = set; then
26058 echo $ECHO_N "(cached) $ECHO_C" >&6
26059else
26060 ac_cv_header_tiffio_h=$ac_header_preproc
26061fi
26062echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
26063echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
26064
26065fi
26066if test $ac_cv_header_tiffio_h = yes; then
26067
26068 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
26069echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
26070if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
26071 echo $ECHO_N "(cached) $ECHO_C" >&6
26072else
26073 ac_check_lib_save_LIBS=$LIBS
26074LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
26075cat >conftest.$ac_ext <<_ACEOF
26076/* confdefs.h. */
26077_ACEOF
26078cat confdefs.h >>conftest.$ac_ext
26079cat >>conftest.$ac_ext <<_ACEOF
26080/* end confdefs.h. */
26081
26082/* Override any gcc2 internal prototype to avoid an error. */
26083#ifdef __cplusplus
26084extern "C"
26085#endif
26086/* We use char because int might match the return type of a gcc2
26087 builtin and then its argument prototype would still apply. */
26088char TIFFError ();
26089int
26090main ()
26091{
26092TIFFError ();
26093 ;
26094 return 0;
26095}
26096_ACEOF
26097rm -f conftest.$ac_objext conftest$ac_exeext
26098if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26099 (eval $ac_link) 2>conftest.er1
a848cd7e 26100 ac_status=$?
ac1cb8d3
VS
26101 grep -v '^ *+' conftest.er1 >conftest.err
26102 rm -f conftest.er1
26103 cat conftest.err >&5
a848cd7e
SC
26104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26105 (exit $ac_status); } &&
c9a66001 26106 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26108 (eval $ac_try) 2>&5
26109 ac_status=$?
26110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26111 (exit $ac_status); }; } &&
26112 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26114 (eval $ac_try) 2>&5
26115 ac_status=$?
26116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26117 (exit $ac_status); }; }; then
26118 ac_cv_lib_tiff_TIFFError=yes
26119else
26120 echo "$as_me: failed program was:" >&5
26121sed 's/^/| /' conftest.$ac_ext >&5
26122
26123ac_cv_lib_tiff_TIFFError=no
26124fi
ac1cb8d3
VS
26125rm -f conftest.err conftest.$ac_objext \
26126 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26127LIBS=$ac_check_lib_save_LIBS
26128fi
26129echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
26130echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
26131if test $ac_cv_lib_tiff_TIFFError = yes; then
26132 TIFF_LINK=" -ltiff"
26133fi
26134
26135
26136
26137fi
26138
26139
26140
26141 if test "x$TIFF_LINK" = "x" ; then
26142 if test "$wxUSE_LIBTIFF" = "sys" ; then
26143 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
26144echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
26145 { (exit 1); exit 1; }; }
26146 else
26147 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
26148echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
26149 wxUSE_LIBTIFF=builtin
26150 fi
26151 else
26152 wxUSE_LIBTIFF=sys
26153 fi
26154 fi
26155fi
26156
26157
47a7e797
MW
26158if test "$wxUSE_WCHAR_T" != "yes"; then
26159 if test "$wxUSE_EXPAT" != "no"; then
26160 { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&5
26161echo "$as_me: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&2;}
26162 wxUSE_EXPAT=no
26163 fi
26164 if test "$wxUSE_XML" != "no"; then
26165 { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&5
26166echo "$as_me: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&2;}
26167 wxUSE_XML=no
26168 fi
26169fi
26170
a848cd7e
SC
26171if test "$wxUSE_EXPAT" != "no"; then
26172 wxUSE_XML=yes
26173 cat >>confdefs.h <<\_ACEOF
26174#define wxUSE_EXPAT 1
26175_ACEOF
26176
26177 cat >>confdefs.h <<\_ACEOF
26178#define wxUSE_XML 1
26179_ACEOF
26180
26181
26182 if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
26183 if test "${ac_cv_header_expat_h+set}" = set; then
26184 echo "$as_me:$LINENO: checking for expat.h" >&5
26185echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
26186if test "${ac_cv_header_expat_h+set}" = set; then
26187 echo $ECHO_N "(cached) $ECHO_C" >&6
26188fi
26189echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
26190echo "${ECHO_T}$ac_cv_header_expat_h" >&6
26191else
26192 # Is the header compilable?
26193echo "$as_me:$LINENO: checking expat.h usability" >&5
26194echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
26195cat >conftest.$ac_ext <<_ACEOF
26196/* confdefs.h. */
26197_ACEOF
26198cat confdefs.h >>conftest.$ac_ext
26199cat >>conftest.$ac_ext <<_ACEOF
26200/* end confdefs.h. */
26201$ac_includes_default
26202#include <expat.h>
26203_ACEOF
26204rm -f conftest.$ac_objext
26205if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26206 (eval $ac_compile) 2>conftest.er1
a848cd7e 26207 ac_status=$?
ac1cb8d3
VS
26208 grep -v '^ *+' conftest.er1 >conftest.err
26209 rm -f conftest.er1
26210 cat conftest.err >&5
a848cd7e
SC
26211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26212 (exit $ac_status); } &&
c9a66001 26213 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26215 (eval $ac_try) 2>&5
26216 ac_status=$?
26217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26218 (exit $ac_status); }; } &&
26219 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26221 (eval $ac_try) 2>&5
26222 ac_status=$?
26223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26224 (exit $ac_status); }; }; then
26225 ac_header_compiler=yes
26226else
26227 echo "$as_me: failed program was:" >&5
26228sed 's/^/| /' conftest.$ac_ext >&5
26229
26230ac_header_compiler=no
26231fi
ac1cb8d3 26232rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26233echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26234echo "${ECHO_T}$ac_header_compiler" >&6
26235
26236# Is the header present?
26237echo "$as_me:$LINENO: checking expat.h presence" >&5
26238echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
26239cat >conftest.$ac_ext <<_ACEOF
26240/* confdefs.h. */
26241_ACEOF
26242cat confdefs.h >>conftest.$ac_ext
26243cat >>conftest.$ac_ext <<_ACEOF
26244/* end confdefs.h. */
26245#include <expat.h>
26246_ACEOF
26247if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26248 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26249 ac_status=$?
26250 grep -v '^ *+' conftest.er1 >conftest.err
26251 rm -f conftest.er1
26252 cat conftest.err >&5
26253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26254 (exit $ac_status); } >/dev/null; then
26255 if test -s conftest.err; then
5d7b7554
VZ
26256 ac_cpp_err=$ac_cxx_preproc_warn_flag
26257 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
26258 else
26259 ac_cpp_err=
26260 fi
26261else
26262 ac_cpp_err=yes
26263fi
26264if test -z "$ac_cpp_err"; then
26265 ac_header_preproc=yes
26266else
26267 echo "$as_me: failed program was:" >&5
26268sed 's/^/| /' conftest.$ac_ext >&5
26269
26270 ac_header_preproc=no
26271fi
26272rm -f conftest.err conftest.$ac_ext
26273echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26274echo "${ECHO_T}$ac_header_preproc" >&6
26275
26276# So? What about this header?
5d7b7554 26277case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 26278 yes:no: )
a848cd7e
SC
26279 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
26280echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
26281 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
26282echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
26283 ac_header_preproc=yes
a848cd7e 26284 ;;
ac1cb8d3 26285 no:yes:* )
a848cd7e
SC
26286 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
26287echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
26288 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
26289echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
26290 { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
26291echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
26292 { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5
26293echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
26294 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
26295echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
26296 { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
26297echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
26298 (
26299 cat <<\_ASBOX
ac1cb8d3
VS
26300## ----------------------------------------- ##
26301## Report this to wx-dev@lists.wxwidgets.org ##
26302## ----------------------------------------- ##
a848cd7e
SC
26303_ASBOX
26304 ) |
26305 sed "s/^/$as_me: WARNING: /" >&2
26306 ;;
26307esac
26308echo "$as_me:$LINENO: checking for expat.h" >&5
26309echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
26310if test "${ac_cv_header_expat_h+set}" = set; then
26311 echo $ECHO_N "(cached) $ECHO_C" >&6
26312else
26313 ac_cv_header_expat_h=$ac_header_preproc
26314fi
26315echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
26316echo "${ECHO_T}$ac_cv_header_expat_h" >&6
26317
26318fi
26319if test $ac_cv_header_expat_h = yes; then
26320 found_expat_h=1
26321fi
26322
26323
26324 if test "x$found_expat_h" = "x1"; then
26325 echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
26326echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
26327if test "${wx_cv_expat_is_not_broken+set}" = set; then
26328 echo $ECHO_N "(cached) $ECHO_C" >&6
26329else
26330
a848cd7e
SC
26331 cat >conftest.$ac_ext <<_ACEOF
26332/* confdefs.h. */
26333_ACEOF
26334cat confdefs.h >>conftest.$ac_ext
26335cat >>conftest.$ac_ext <<_ACEOF
26336/* end confdefs.h. */
26337#include <expat.h>
26338int
26339main ()
26340{
26341
26342 ;
26343 return 0;
26344}
26345_ACEOF
26346rm -f conftest.$ac_objext
26347if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26348 (eval $ac_compile) 2>conftest.er1
a848cd7e 26349 ac_status=$?
ac1cb8d3
VS
26350 grep -v '^ *+' conftest.er1 >conftest.err
26351 rm -f conftest.er1
26352 cat conftest.err >&5
a848cd7e
SC
26353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26354 (exit $ac_status); } &&
c9a66001 26355 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26357 (eval $ac_try) 2>&5
26358 ac_status=$?
26359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26360 (exit $ac_status); }; } &&
26361 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26363 (eval $ac_try) 2>&5
26364 ac_status=$?
26365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26366 (exit $ac_status); }; }; then
26367 wx_cv_expat_is_not_broken=yes
26368else
26369 echo "$as_me: failed program was:" >&5
26370sed 's/^/| /' conftest.$ac_ext >&5
26371
26372wx_cv_expat_is_not_broken=no
26373
26374fi
ac1cb8d3 26375rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26376
26377
26378fi
26379echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
26380echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
26381 if test "$wx_cv_expat_is_not_broken" = "yes" ; then
26382 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
26383echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
26384if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
26385 echo $ECHO_N "(cached) $ECHO_C" >&6
26386else
26387 ac_check_lib_save_LIBS=$LIBS
26388LIBS="-lexpat $LIBS"
26389cat >conftest.$ac_ext <<_ACEOF
26390/* confdefs.h. */
26391_ACEOF
26392cat confdefs.h >>conftest.$ac_ext
26393cat >>conftest.$ac_ext <<_ACEOF
26394/* end confdefs.h. */
26395
26396/* Override any gcc2 internal prototype to avoid an error. */
26397#ifdef __cplusplus
26398extern "C"
26399#endif
26400/* We use char because int might match the return type of a gcc2
26401 builtin and then its argument prototype would still apply. */
26402char XML_ParserCreate ();
26403int
26404main ()
26405{
26406XML_ParserCreate ();
26407 ;
26408 return 0;
26409}
26410_ACEOF
26411rm -f conftest.$ac_objext conftest$ac_exeext
26412if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26413 (eval $ac_link) 2>conftest.er1
a848cd7e 26414 ac_status=$?
ac1cb8d3
VS
26415 grep -v '^ *+' conftest.er1 >conftest.err
26416 rm -f conftest.er1
26417 cat conftest.err >&5
a848cd7e
SC
26418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26419 (exit $ac_status); } &&
c9a66001 26420 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26422 (eval $ac_try) 2>&5
26423 ac_status=$?
26424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26425 (exit $ac_status); }; } &&
26426 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26428 (eval $ac_try) 2>&5
26429 ac_status=$?
26430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26431 (exit $ac_status); }; }; then
26432 ac_cv_lib_expat_XML_ParserCreate=yes
26433else
26434 echo "$as_me: failed program was:" >&5
26435sed 's/^/| /' conftest.$ac_ext >&5
26436
26437ac_cv_lib_expat_XML_ParserCreate=no
26438fi
ac1cb8d3
VS
26439rm -f conftest.err conftest.$ac_objext \
26440 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26441LIBS=$ac_check_lib_save_LIBS
26442fi
26443echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
26444echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
26445if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
26446 EXPAT_LINK=" -lexpat"
26447fi
26448
26449 fi
26450 fi
26451 if test "x$EXPAT_LINK" = "x" ; then
26452 if test "$wxUSE_EXPAT" = "sys" ; then
26453 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
26454echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
26455 { (exit 1); exit 1; }; }
26456 else
26457 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
26458echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
26459 wxUSE_EXPAT=builtin
26460 fi
26461 else
26462 wxUSE_EXPAT=sys
26463 fi
26464 fi
26465 if test "$wxUSE_EXPAT" = "builtin" ; then
26466
26467
26468subdirs="$subdirs src/expat"
26469
26470 fi
26471fi
26472
26473
26474
26475if test "$wxUSE_LIBMSPACK" != "no"; then
a848cd7e
SC
26476 if test "${ac_cv_header_mspack_h+set}" = set; then
26477 echo "$as_me:$LINENO: checking for mspack.h" >&5
26478echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
26479if test "${ac_cv_header_mspack_h+set}" = set; then
26480 echo $ECHO_N "(cached) $ECHO_C" >&6
26481fi
26482echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
26483echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
26484else
26485 # Is the header compilable?
26486echo "$as_me:$LINENO: checking mspack.h usability" >&5
26487echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
26488cat >conftest.$ac_ext <<_ACEOF
26489/* confdefs.h. */
26490_ACEOF
26491cat confdefs.h >>conftest.$ac_ext
26492cat >>conftest.$ac_ext <<_ACEOF
26493/* end confdefs.h. */
26494$ac_includes_default
26495#include <mspack.h>
26496_ACEOF
26497rm -f conftest.$ac_objext
26498if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26499 (eval $ac_compile) 2>conftest.er1
a848cd7e 26500 ac_status=$?
ac1cb8d3
VS
26501 grep -v '^ *+' conftest.er1 >conftest.err
26502 rm -f conftest.er1
26503 cat conftest.err >&5
a848cd7e
SC
26504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26505 (exit $ac_status); } &&
c9a66001 26506 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26508 (eval $ac_try) 2>&5
26509 ac_status=$?
26510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26511 (exit $ac_status); }; } &&
26512 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26514 (eval $ac_try) 2>&5
26515 ac_status=$?
26516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26517 (exit $ac_status); }; }; then
26518 ac_header_compiler=yes
26519else
26520 echo "$as_me: failed program was:" >&5
26521sed 's/^/| /' conftest.$ac_ext >&5
26522
26523ac_header_compiler=no
26524fi
ac1cb8d3 26525rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26526echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26527echo "${ECHO_T}$ac_header_compiler" >&6
26528
26529# Is the header present?
26530echo "$as_me:$LINENO: checking mspack.h presence" >&5
26531echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
26532cat >conftest.$ac_ext <<_ACEOF
26533/* confdefs.h. */
26534_ACEOF
26535cat confdefs.h >>conftest.$ac_ext
26536cat >>conftest.$ac_ext <<_ACEOF
26537/* end confdefs.h. */
26538#include <mspack.h>
26539_ACEOF
26540if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26541 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26542 ac_status=$?
26543 grep -v '^ *+' conftest.er1 >conftest.err
26544 rm -f conftest.er1
26545 cat conftest.err >&5
26546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26547 (exit $ac_status); } >/dev/null; then
26548 if test -s conftest.err; then
5d7b7554
VZ
26549 ac_cpp_err=$ac_cxx_preproc_warn_flag
26550 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
26551 else
26552 ac_cpp_err=
26553 fi
26554else
26555 ac_cpp_err=yes
26556fi
26557if test -z "$ac_cpp_err"; then
26558 ac_header_preproc=yes
26559else
26560 echo "$as_me: failed program was:" >&5
26561sed 's/^/| /' conftest.$ac_ext >&5
26562
26563 ac_header_preproc=no
26564fi
26565rm -f conftest.err conftest.$ac_ext
26566echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26567echo "${ECHO_T}$ac_header_preproc" >&6
26568
26569# So? What about this header?
5d7b7554 26570case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 26571 yes:no: )
a848cd7e
SC
26572 { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
26573echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
26574 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5
26575echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;}
26576 ac_header_preproc=yes
a848cd7e 26577 ;;
ac1cb8d3 26578 no:yes:* )
a848cd7e
SC
26579 { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
26580echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
26581 { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5
26582echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;}
26583 { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5
26584echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;}
26585 { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5
26586echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
26587 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
26588echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
26589 { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5
26590echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
26591 (
26592 cat <<\_ASBOX
ac1cb8d3
VS
26593## ----------------------------------------- ##
26594## Report this to wx-dev@lists.wxwidgets.org ##
26595## ----------------------------------------- ##
a848cd7e
SC
26596_ASBOX
26597 ) |
26598 sed "s/^/$as_me: WARNING: /" >&2
26599 ;;
26600esac
26601echo "$as_me:$LINENO: checking for mspack.h" >&5
26602echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
26603if test "${ac_cv_header_mspack_h+set}" = set; then
26604 echo $ECHO_N "(cached) $ECHO_C" >&6
26605else
26606 ac_cv_header_mspack_h=$ac_header_preproc
26607fi
26608echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
26609echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
26610
26611fi
26612if test $ac_cv_header_mspack_h = yes; then
26613 found_mspack_h=1
26614fi
26615
26616
26617 if test "x$found_mspack_h" = "x1"; then
26618 echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
26619echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
26620if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
26621 echo $ECHO_N "(cached) $ECHO_C" >&6
26622else
26623 ac_check_lib_save_LIBS=$LIBS
26624LIBS="-lmspack $LIBS"
26625cat >conftest.$ac_ext <<_ACEOF
26626/* confdefs.h. */
26627_ACEOF
26628cat confdefs.h >>conftest.$ac_ext
26629cat >>conftest.$ac_ext <<_ACEOF
26630/* end confdefs.h. */
26631
26632/* Override any gcc2 internal prototype to avoid an error. */
26633#ifdef __cplusplus
26634extern "C"
26635#endif
26636/* We use char because int might match the return type of a gcc2
26637 builtin and then its argument prototype would still apply. */
26638char mspack_create_chm_decompressor ();
26639int
26640main ()
26641{
26642mspack_create_chm_decompressor ();
26643 ;
26644 return 0;
26645}
26646_ACEOF
26647rm -f conftest.$ac_objext conftest$ac_exeext
26648if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26649 (eval $ac_link) 2>conftest.er1
a848cd7e 26650 ac_status=$?
ac1cb8d3
VS
26651 grep -v '^ *+' conftest.er1 >conftest.err
26652 rm -f conftest.er1
26653 cat conftest.err >&5
a848cd7e
SC
26654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26655 (exit $ac_status); } &&
c9a66001 26656 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26658 (eval $ac_try) 2>&5
26659 ac_status=$?
26660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26661 (exit $ac_status); }; } &&
26662 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26664 (eval $ac_try) 2>&5
26665 ac_status=$?
26666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26667 (exit $ac_status); }; }; then
26668 ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
26669else
26670 echo "$as_me: failed program was:" >&5
26671sed 's/^/| /' conftest.$ac_ext >&5
26672
26673ac_cv_lib_mspack_mspack_create_chm_decompressor=no
26674fi
ac1cb8d3
VS
26675rm -f conftest.err conftest.$ac_objext \
26676 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26677LIBS=$ac_check_lib_save_LIBS
26678fi
26679echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
26680echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
26681if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
26682 MSPACK_LINK=" -lmspack"
26683fi
26684
26685 fi
26686 if test "x$MSPACK_LINK" = "x" ; then
26687 wxUSE_LIBMSPACK=no
dd3a2d96
VZ
26688 fi
26689fi
26690
26691if test "$wxUSE_LIBMSPACK" != "no"; then
26692 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
26693#define wxUSE_LIBMSPACK 1
26694_ACEOF
26695
a848cd7e
SC
26696fi
26697
26698
26699
26700AFMINSTALL=
26701WIN32INSTALL=
26702
26703TOOLKIT=
26704TOOLKIT_INCLUDE=
26705WIDGET_SET=
26706
26707if test "$USE_WIN32" = 1 ; then
26708
26709for ac_header in w32api.h
26710do
26711as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26712if eval "test \"\${$as_ac_Header+set}\" = set"; then
26713 echo "$as_me:$LINENO: checking for $ac_header" >&5
26714echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26715if eval "test \"\${$as_ac_Header+set}\" = set"; then
26716 echo $ECHO_N "(cached) $ECHO_C" >&6
26717fi
26718echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26719echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26720else
26721 # Is the header compilable?
26722echo "$as_me:$LINENO: checking $ac_header usability" >&5
26723echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26724cat >conftest.$ac_ext <<_ACEOF
26725/* confdefs.h. */
26726_ACEOF
26727cat confdefs.h >>conftest.$ac_ext
26728cat >>conftest.$ac_ext <<_ACEOF
26729/* end confdefs.h. */
26730$ac_includes_default
26731#include <$ac_header>
26732_ACEOF
26733rm -f conftest.$ac_objext
26734if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26735 (eval $ac_compile) 2>conftest.er1
a848cd7e 26736 ac_status=$?
ac1cb8d3
VS
26737 grep -v '^ *+' conftest.er1 >conftest.err
26738 rm -f conftest.er1
26739 cat conftest.err >&5
a848cd7e
SC
26740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26741 (exit $ac_status); } &&
c9a66001 26742 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26744 (eval $ac_try) 2>&5
26745 ac_status=$?
26746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26747 (exit $ac_status); }; } &&
26748 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26750 (eval $ac_try) 2>&5
26751 ac_status=$?
26752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26753 (exit $ac_status); }; }; then
26754 ac_header_compiler=yes
26755else
26756 echo "$as_me: failed program was:" >&5
26757sed 's/^/| /' conftest.$ac_ext >&5
26758
26759ac_header_compiler=no
26760fi
ac1cb8d3 26761rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26762echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26763echo "${ECHO_T}$ac_header_compiler" >&6
26764
26765# Is the header present?
26766echo "$as_me:$LINENO: checking $ac_header presence" >&5
26767echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26768cat >conftest.$ac_ext <<_ACEOF
26769/* confdefs.h. */
26770_ACEOF
26771cat confdefs.h >>conftest.$ac_ext
26772cat >>conftest.$ac_ext <<_ACEOF
26773/* end confdefs.h. */
26774#include <$ac_header>
26775_ACEOF
26776if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26777 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26778 ac_status=$?
26779 grep -v '^ *+' conftest.er1 >conftest.err
26780 rm -f conftest.er1
26781 cat conftest.err >&5
26782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26783 (exit $ac_status); } >/dev/null; then
26784 if test -s conftest.err; then
5d7b7554
VZ
26785 ac_cpp_err=$ac_cxx_preproc_warn_flag
26786 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
26787 else
26788 ac_cpp_err=
26789 fi
26790else
26791 ac_cpp_err=yes
26792fi
26793if test -z "$ac_cpp_err"; then
26794 ac_header_preproc=yes
26795else
26796 echo "$as_me: failed program was:" >&5
26797sed 's/^/| /' conftest.$ac_ext >&5
26798
26799 ac_header_preproc=no
26800fi
26801rm -f conftest.err conftest.$ac_ext
26802echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26803echo "${ECHO_T}$ac_header_preproc" >&6
26804
26805# So? What about this header?
5d7b7554 26806case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 26807 yes:no: )
a848cd7e
SC
26808 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26809echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
26810 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26811echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26812 ac_header_preproc=yes
a848cd7e 26813 ;;
ac1cb8d3 26814 no:yes:* )
a848cd7e
SC
26815 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26816echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
26817 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26818echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26819 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26820echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26821 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26822echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
26823 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26824echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
26825 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26826echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
26827 (
26828 cat <<\_ASBOX
ac1cb8d3
VS
26829## ----------------------------------------- ##
26830## Report this to wx-dev@lists.wxwidgets.org ##
26831## ----------------------------------------- ##
a848cd7e
SC
26832_ASBOX
26833 ) |
26834 sed "s/^/$as_me: WARNING: /" >&2
26835 ;;
26836esac
26837echo "$as_me:$LINENO: checking for $ac_header" >&5
26838echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26839if eval "test \"\${$as_ac_Header+set}\" = set"; then
26840 echo $ECHO_N "(cached) $ECHO_C" >&6
26841else
ac1cb8d3 26842 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
26843fi
26844echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26845echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26846
26847fi
26848if test `eval echo '${'$as_ac_Header'}'` = yes; then
26849 cat >>confdefs.h <<_ACEOF
26850#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26851_ACEOF
26852
26853fi
26854
26855done
26856
26857 if test "${ac_cv_header_windows_h+set}" = set; then
26858 echo "$as_me:$LINENO: checking for windows.h" >&5
26859echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
26860if test "${ac_cv_header_windows_h+set}" = set; then
26861 echo $ECHO_N "(cached) $ECHO_C" >&6
26862fi
26863echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
26864echo "${ECHO_T}$ac_cv_header_windows_h" >&6
26865else
26866 # Is the header compilable?
26867echo "$as_me:$LINENO: checking windows.h usability" >&5
26868echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
26869cat >conftest.$ac_ext <<_ACEOF
26870/* confdefs.h. */
26871_ACEOF
26872cat confdefs.h >>conftest.$ac_ext
26873cat >>conftest.$ac_ext <<_ACEOF
26874/* end confdefs.h. */
26875$ac_includes_default
26876#include <windows.h>
26877_ACEOF
26878rm -f conftest.$ac_objext
26879if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26880 (eval $ac_compile) 2>conftest.er1
a848cd7e 26881 ac_status=$?
ac1cb8d3
VS
26882 grep -v '^ *+' conftest.er1 >conftest.err
26883 rm -f conftest.er1
26884 cat conftest.err >&5
a848cd7e
SC
26885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26886 (exit $ac_status); } &&
c9a66001 26887 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26889 (eval $ac_try) 2>&5
26890 ac_status=$?
26891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26892 (exit $ac_status); }; } &&
26893 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26895 (eval $ac_try) 2>&5
26896 ac_status=$?
26897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26898 (exit $ac_status); }; }; then
26899 ac_header_compiler=yes
26900else
26901 echo "$as_me: failed program was:" >&5
26902sed 's/^/| /' conftest.$ac_ext >&5
26903
26904ac_header_compiler=no
26905fi
ac1cb8d3 26906rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26907echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26908echo "${ECHO_T}$ac_header_compiler" >&6
26909
26910# Is the header present?
26911echo "$as_me:$LINENO: checking windows.h presence" >&5
26912echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
26913cat >conftest.$ac_ext <<_ACEOF
26914/* confdefs.h. */
26915_ACEOF
26916cat confdefs.h >>conftest.$ac_ext
26917cat >>conftest.$ac_ext <<_ACEOF
26918/* end confdefs.h. */
26919#include <windows.h>
26920_ACEOF
26921if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26922 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26923 ac_status=$?
26924 grep -v '^ *+' conftest.er1 >conftest.err
26925 rm -f conftest.er1
26926 cat conftest.err >&5
26927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26928 (exit $ac_status); } >/dev/null; then
26929 if test -s conftest.err; then
5d7b7554
VZ
26930 ac_cpp_err=$ac_cxx_preproc_warn_flag
26931 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
26932 else
26933 ac_cpp_err=
26934 fi
26935else
26936 ac_cpp_err=yes
26937fi
26938if test -z "$ac_cpp_err"; then
26939 ac_header_preproc=yes
26940else
26941 echo "$as_me: failed program was:" >&5
26942sed 's/^/| /' conftest.$ac_ext >&5
26943
26944 ac_header_preproc=no
26945fi
26946rm -f conftest.err conftest.$ac_ext
26947echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26948echo "${ECHO_T}$ac_header_preproc" >&6
26949
26950# So? What about this header?
5d7b7554 26951case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 26952 yes:no: )
a848cd7e
SC
26953 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
26954echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
26955 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
26956echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
26957 ac_header_preproc=yes
a848cd7e 26958 ;;
ac1cb8d3 26959 no:yes:* )
a848cd7e
SC
26960 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
26961echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
26962 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
26963echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
26964 { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
26965echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
26966 { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5
26967echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
26968 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
26969echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
26970 { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
26971echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
26972 (
26973 cat <<\_ASBOX
ac1cb8d3
VS
26974## ----------------------------------------- ##
26975## Report this to wx-dev@lists.wxwidgets.org ##
26976## ----------------------------------------- ##
a848cd7e
SC
26977_ASBOX
26978 ) |
26979 sed "s/^/$as_me: WARNING: /" >&2
26980 ;;
26981esac
26982echo "$as_me:$LINENO: checking for windows.h" >&5
26983echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
26984if test "${ac_cv_header_windows_h+set}" = set; then
26985 echo $ECHO_N "(cached) $ECHO_C" >&6
26986else
26987 ac_cv_header_windows_h=$ac_header_preproc
26988fi
26989echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
26990echo "${ECHO_T}$ac_cv_header_windows_h" >&6
26991
26992fi
26993if test $ac_cv_header_windows_h = yes; then
26994 :
26995else
26996
26997 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
26998echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
26999 { (exit 1); exit 1; }; }
27000
27001fi
27002
27003
27004
27005 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
27006
27007 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
27008 LIBS="$LIBS -loleacc"
27009 fi
27010
27011 case "${host}" in
27012 *-*-cygwin* )
27013 LIBS="$LIBS -lkernel32 -luser32"
a848cd7e
SC
27014 esac
27015
27016 if test "$wxUSE_ODBC" = "sys" ; then
27017 wxUSE_ODBC = "yes"
27018 fi
27019 if test "$wxUSE_ODBC" = "yes" ; then
27020 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
27021 cat >>confdefs.h <<\_ACEOF
27022#define wxUSE_ODBC 1
27023_ACEOF
27024
27025 fi
27026
370d2fd7 27027 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
a848cd7e
SC
27028 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
27029
004ee6da 27030 WXCONFIG_RESFLAGS="--define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
370d2fd7 27031
a848cd7e
SC
27032 WIN32INSTALL=win32install
27033fi
27034
27035if test "$wxUSE_GUI" = "yes"; then
27036 USE_GUI=1
27037
27038 GUI_TK_LIBRARY=
27039
27040 WXGTK12=
27041 WXGTK127=
27042 WXGTK20=
27043 WXGPE=
27044
207bc66c
RN
27045 if test "$wxUSE_COCOA" = 1 ; then
27046 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
27047 { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
27048echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
27049 wxUSE_PRINTING_ARCHITECTURE=no
27050 fi
27051 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
27052 { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
27053echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
27054 wxUSE_DRAG_AND_DROP=no
27055 fi
27056 if test "$wxUSE_DRAGIMAGE" = "yes"; then
27057 { echo "$as_me:$LINENO: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&5
27058echo "$as_me: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&2;}
27059 wxUSE_DRAGIMAGE=no
27060 fi
27061 fi
27062
a848cd7e
SC
27063 if test "$wxUSE_MSW" = 1 ; then
27064 TOOLKIT=MSW
27065 GUIDIST=MSW_DIST
27066
ceec2216 27067 case "${host}" in
a848cd7e
SC
27068 *-*-mingw32* )
27069 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
27070 esac
27071 fi
27072
27073 if test "$wxUSE_GTK" = 1; then
5d7b7554
VZ
27074 ac_ext=c
27075ac_cpp='$CPP $CPPFLAGS'
27076ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27077ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27078ac_compiler_gnu=$ac_cv_c_compiler_gnu
27079
27080
a848cd7e
SC
27081 echo "$as_me:$LINENO: checking for GTK+ version" >&5
27082echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
27083
27084 gtk_version_cached=1
27085 if test "${wx_cv_lib_gtk+set}" = set; then
27086 echo $ECHO_N "(cached) $ECHO_C" >&6
27087else
27088
27089 gtk_version_cached=0
27090 echo "$as_me:$LINENO: result: " >&5
27091echo "${ECHO_T}" >&6
27092
27093 GTK_MODULES=
27094 if test "$wxUSE_THREADS" = "yes"; then
27095 GTK_MODULES=gthread
27096 fi
27097
f597b41c 27098 wx_cv_lib_gtk=
5001df0d
MW
27099 if test "x$wxGTK_VERSION" != "x1"
27100 then
27101 case "${host}" in
27102 *-*-solaris2* )
27103 if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
5ff751d6 27104 enable_gtktest=no
5001df0d
MW
27105 fi
27106 esac
27107
a848cd7e
SC
27108 # Check whether --enable-gtktest or --disable-gtktest was given.
27109if test "${enable_gtktest+set}" = set; then
27110 enableval="$enable_gtktest"
27111
27112else
27113 enable_gtktest=yes
27114fi;
27115
27116 pkg_config_args=gtk+-2.0
27117 for module in . $GTK_MODULES
27118 do
27119 case "$module" in
27120 gthread)
27121 pkg_config_args="$pkg_config_args gthread-2.0"
27122 ;;
27123 esac
27124 done
27125
27126 no_gtk=""
27127
27128 # Extract the first word of "pkg-config", so it can be a program name with args.
27129set dummy pkg-config; ac_word=$2
27130echo "$as_me:$LINENO: checking for $ac_word" >&5
27131echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27132if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
27133 echo $ECHO_N "(cached) $ECHO_C" >&6
27134else
27135 case $PKG_CONFIG in
27136 [\\/]* | ?:[\\/]*)
27137 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
27138 ;;
27139 *)
27140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27141for as_dir in $PATH
27142do
27143 IFS=$as_save_IFS
27144 test -z "$as_dir" && as_dir=.
27145 for ac_exec_ext in '' $ac_executable_extensions; do
27146 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27147 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27148 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27149 break 2
27150 fi
27151done
27152done
27153
27154 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
27155 ;;
27156esac
27157fi
27158PKG_CONFIG=$ac_cv_path_PKG_CONFIG
27159
27160if test -n "$PKG_CONFIG"; then
27161 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
27162echo "${ECHO_T}$PKG_CONFIG" >&6
27163else
27164 echo "$as_me:$LINENO: result: no" >&5
27165echo "${ECHO_T}no" >&6
27166fi
27167
27168
27169 if test x$PKG_CONFIG != xno ; then
27170 if pkg-config --atleast-pkgconfig-version 0.7 ; then
27171 :
27172 else
c2218763 27173 echo "*** pkg-config too old; version 0.7 or better required."
a848cd7e
SC
27174 no_gtk=yes
27175 PKG_CONFIG=no
27176 fi
27177 else
27178 no_gtk=yes
27179 fi
27180
27181 min_gtk_version=2.0.0
27182 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
27183echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
27184
27185 if test x$PKG_CONFIG != xno ; then
27186 ## don't try to run the test against uninstalled libtool libs
27187 if $PKG_CONFIG --uninstalled $pkg_config_args; then
27188 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
27189 enable_gtktest=no
27190 fi
27191
27192 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
27193 :
27194 else
27195 no_gtk=yes
27196 fi
27197 fi
27198
27199 if test x"$no_gtk" = x ; then
27200 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
27201 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
27202 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
27203 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
27204 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
27205 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
27206 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
27207 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
27208 if test "x$enable_gtktest" = "xyes" ; then
27209 ac_save_CFLAGS="$CFLAGS"
27210 ac_save_LIBS="$LIBS"
27211 CFLAGS="$CFLAGS $GTK_CFLAGS"
27212 LIBS="$GTK_LIBS $LIBS"
27213 rm -f conf.gtktest
27214 if test "$cross_compiling" = yes; then
27215 echo $ac_n "cross compiling; assumed OK... $ac_c"
27216else
27217 cat >conftest.$ac_ext <<_ACEOF
27218/* confdefs.h. */
27219_ACEOF
27220cat confdefs.h >>conftest.$ac_ext
27221cat >>conftest.$ac_ext <<_ACEOF
27222/* end confdefs.h. */
27223
27224#include <gtk/gtk.h>
27225#include <stdio.h>
27226#include <stdlib.h>
27227
27228int
27229main ()
27230{
27231 int major, minor, micro;
27232 char *tmp_version;
27233
27234 system ("touch conf.gtktest");
27235
27236 /* HP/UX 9 (%@#!) writes to sscanf strings */
27237 tmp_version = g_strdup("$min_gtk_version");
27238 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
27239 printf("%s, bad version string\n", "$min_gtk_version");
27240 exit(1);
27241 }
27242
27243 if ((gtk_major_version != $gtk_config_major_version) ||
27244 (gtk_minor_version != $gtk_config_minor_version) ||
27245 (gtk_micro_version != $gtk_config_micro_version))
27246 {
27247 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
27248 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
27249 gtk_major_version, gtk_minor_version, gtk_micro_version);
27250 printf ("*** was found! If pkg-config was correct, then it is best\n");
27251 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
27252 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
27253 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
27254 printf("*** required on your system.\n");
27255 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
27256 printf("*** to point to the correct configuration files\n");
27257 }
27258 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
27259 (gtk_minor_version != GTK_MINOR_VERSION) ||
27260 (gtk_micro_version != GTK_MICRO_VERSION))
27261 {
27262 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
27263 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
27264 printf("*** library (version %d.%d.%d)\n",
27265 gtk_major_version, gtk_minor_version, gtk_micro_version);
27266 }
27267 else
27268 {
27269 if ((gtk_major_version > major) ||
27270 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
27271 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
27272 {
27273 return 0;
27274 }
27275 else
27276 {
27277 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
27278 gtk_major_version, gtk_minor_version, gtk_micro_version);
27279 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
27280 major, minor, micro);
27281 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
27282 printf("***\n");
27283 printf("*** If you have already installed a sufficiently new version, this error\n");
27284 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
27285 printf("*** being found. The easiest way to fix this is to remove the old version\n");
27286 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
27287 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
27288 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
27289 printf("*** so that the correct libraries are found at run-time))\n");
27290 }
27291 }
27292 return 1;
27293}
27294
27295_ACEOF
27296rm -f conftest$ac_exeext
27297if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27298 (eval $ac_link) 2>&5
27299 ac_status=$?
27300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27301 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27303 (eval $ac_try) 2>&5
27304 ac_status=$?
27305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27306 (exit $ac_status); }; }; then
27307 :
27308else
27309 echo "$as_me: program exited with status $ac_status" >&5
27310echo "$as_me: failed program was:" >&5
27311sed 's/^/| /' conftest.$ac_ext >&5
27312
27313( exit $ac_status )
27314no_gtk=yes
27315fi
ac1cb8d3 27316rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27317fi
27318 CFLAGS="$ac_save_CFLAGS"
27319 LIBS="$ac_save_LIBS"
27320 fi
27321 fi
27322 if test "x$no_gtk" = x ; then
27323 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
27324echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
27325 wx_cv_lib_gtk=2.0
27326 else
27327 echo "$as_me:$LINENO: result: no" >&5
27328echo "${ECHO_T}no" >&6
27329 if test "$PKG_CONFIG" = "no" ; then
27330 echo "*** A new enough version of pkg-config was not found."
27331 echo "*** See http://pkgconfig.sourceforge.net"
27332 else
27333 if test -f conf.gtktest ; then
27334 :
27335 else
27336 echo "*** Could not run GTK+ test program, checking why..."
27337 ac_save_CFLAGS="$CFLAGS"
27338 ac_save_LIBS="$LIBS"
27339 CFLAGS="$CFLAGS $GTK_CFLAGS"
27340 LIBS="$LIBS $GTK_LIBS"
27341 cat >conftest.$ac_ext <<_ACEOF
27342/* confdefs.h. */
27343_ACEOF
27344cat confdefs.h >>conftest.$ac_ext
27345cat >>conftest.$ac_ext <<_ACEOF
27346/* end confdefs.h. */
27347
27348#include <gtk/gtk.h>
27349#include <stdio.h>
27350
27351int
27352main ()
27353{
27354 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
27355 ;
27356 return 0;
27357}
27358_ACEOF
27359rm -f conftest.$ac_objext conftest$ac_exeext
27360if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27361 (eval $ac_link) 2>conftest.er1
a848cd7e 27362 ac_status=$?
ac1cb8d3
VS
27363 grep -v '^ *+' conftest.er1 >conftest.err
27364 rm -f conftest.er1
27365 cat conftest.err >&5
a848cd7e
SC
27366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27367 (exit $ac_status); } &&
c9a66001 27368 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27370 (eval $ac_try) 2>&5
27371 ac_status=$?
27372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27373 (exit $ac_status); }; } &&
27374 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27376 (eval $ac_try) 2>&5
27377 ac_status=$?
27378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27379 (exit $ac_status); }; }; then
27380 echo "*** The test program compiled, but did not run. This usually means"
27381 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
27382 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
27383 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
27384 echo "*** to the installed location Also, make sure you have run ldconfig if that"
27385 echo "*** is required on your system"
27386 echo "***"
27387 echo "*** If you have an old version installed, it is best to remove it, although"
27388 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
27389else
27390 echo "$as_me: failed program was:" >&5
27391sed 's/^/| /' conftest.$ac_ext >&5
27392
27393 echo "*** The test program failed to compile or link. See the file config.log for the"
27394 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
27395fi
ac1cb8d3
VS
27396rm -f conftest.err conftest.$ac_objext \
27397 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27398 CFLAGS="$ac_save_CFLAGS"
27399 LIBS="$ac_save_LIBS"
27400 fi
27401 fi
27402 GTK_CFLAGS=""
27403 GTK_LIBS=""
27404 :
27405 fi
27406
27407
27408 rm -f conf.gtktest
27409
5001df0d
MW
27410
27411 case "${host}" in
27412 *-*-solaris2* )
27413 if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
27414 GTK_CFLAGS=`echo $GTK_CFLAGS | sed 's/-mt//'`
27415 GTK_LIBS=`echo $GTK_LIBS | sed 's/-mt//'`
27416 fi
27417 if test "$wxUSE_SHARED" != "yes"; then
27418 GTK_LIBS="$GTK_LIBS -lX11"
27419 fi
27420 esac
f597b41c
MW
27421 fi
27422
f34ca037
MW
27423 if test -z "$wx_cv_lib_gtk"; then
27424 if test "x$wxGTK_VERSION" = "x1" -o "x$wxGTK_VERSION" = "xany" ; then
a848cd7e
SC
27425
27426# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
27427if test "${with_gtk_prefix+set}" = set; then
27428 withval="$with_gtk_prefix"
27429 gtk_config_prefix="$withval"
27430else
27431 gtk_config_prefix=""
27432fi;
27433
27434# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
27435if test "${with_gtk_exec_prefix+set}" = set; then
27436 withval="$with_gtk_exec_prefix"
27437 gtk_config_exec_prefix="$withval"
27438else
27439 gtk_config_exec_prefix=""
27440fi;
27441# Check whether --enable-gtktest or --disable-gtktest was given.
27442if test "${enable_gtktest+set}" = set; then
27443 enableval="$enable_gtktest"
27444
27445else
27446 enable_gtktest=yes
27447fi;
27448
27449 for module in . $GTK_MODULES
27450 do
27451 case "$module" in
27452 gthread)
27453 gtk_config_args="$gtk_config_args gthread"
27454 ;;
27455 esac
27456 done
27457
27458 if test x$gtk_config_exec_prefix != x ; then
27459 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
27460 if test x${GTK_CONFIG+set} != xset ; then
27461 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
27462 fi
27463 fi
27464 if test x$gtk_config_prefix != x ; then
27465 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
27466 if test x${GTK_CONFIG+set} != xset ; then
27467 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
27468 fi
27469 fi
27470
27471 # Extract the first word of "gtk-config", so it can be a program name with args.
27472set dummy gtk-config; ac_word=$2
27473echo "$as_me:$LINENO: checking for $ac_word" >&5
27474echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27475if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
27476 echo $ECHO_N "(cached) $ECHO_C" >&6
27477else
27478 case $GTK_CONFIG in
27479 [\\/]* | ?:[\\/]*)
27480 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
27481 ;;
27482 *)
27483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27484for as_dir in $PATH
27485do
27486 IFS=$as_save_IFS
27487 test -z "$as_dir" && as_dir=.
27488 for ac_exec_ext in '' $ac_executable_extensions; do
27489 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27490 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27491 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27492 break 2
27493 fi
27494done
27495done
27496
27497 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
27498 ;;
27499esac
27500fi
27501GTK_CONFIG=$ac_cv_path_GTK_CONFIG
27502
27503if test -n "$GTK_CONFIG"; then
27504 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
27505echo "${ECHO_T}$GTK_CONFIG" >&6
27506else
27507 echo "$as_me:$LINENO: result: no" >&5
27508echo "${ECHO_T}no" >&6
27509fi
27510
27511 min_gtk_version=1.2.7
27512 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
27513echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
27514 no_gtk=""
27515 if test "$GTK_CONFIG" = "no" ; then
27516 no_gtk=yes
27517 else
27518 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
27519 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
27520 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
27521 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
27522 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
27523 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
27524 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
27525 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
27526 if test "x$enable_gtktest" = "xyes" ; then
27527 ac_save_CFLAGS="$CFLAGS"
27528 ac_save_LIBS="$LIBS"
27529 CFLAGS="$CFLAGS $GTK_CFLAGS"
27530 LIBS="$GTK_LIBS $LIBS"
27531 rm -f conf.gtktest
27532 if test "$cross_compiling" = yes; then
27533 echo $ac_n "cross compiling; assumed OK... $ac_c"
27534else
27535 cat >conftest.$ac_ext <<_ACEOF
27536/* confdefs.h. */
27537_ACEOF
27538cat confdefs.h >>conftest.$ac_ext
27539cat >>conftest.$ac_ext <<_ACEOF
27540/* end confdefs.h. */
27541
27542#include <gtk/gtk.h>
27543#include <stdio.h>
27544#include <stdlib.h>
27545
27546int
27547main ()
27548{
27549 int major, minor, micro;
27550 char *tmp_version;
27551
27552 system ("touch conf.gtktest");
27553
27554 /* HP/UX 9 (%@#!) writes to sscanf strings */
27555 tmp_version = g_strdup("$min_gtk_version");
27556 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
27557 printf("%s, bad version string\n", "$min_gtk_version");
27558 exit(1);
27559 }
27560
27561 if ((gtk_major_version != $gtk_config_major_version) ||
27562 (gtk_minor_version != $gtk_config_minor_version) ||
27563 (gtk_micro_version != $gtk_config_micro_version))
27564 {
27565 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
27566 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
27567 gtk_major_version, gtk_minor_version, gtk_micro_version);
27568 printf ("*** was found! If gtk-config was correct, then it is best\n");
27569 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
27570 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
27571 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
27572 printf("*** required on your system.\n");
27573 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
27574 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
27575 printf("*** before re-running configure\n");
27576 }
27577#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
27578 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
27579 (gtk_minor_version != GTK_MINOR_VERSION) ||
27580 (gtk_micro_version != GTK_MICRO_VERSION))
27581 {
27582 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
27583 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
27584 printf("*** library (version %d.%d.%d)\n",
27585 gtk_major_version, gtk_minor_version, gtk_micro_version);
27586 }
27587#endif /* defined (GTK_MAJOR_VERSION) ... */
27588 else
27589 {
27590 if ((gtk_major_version > major) ||
27591 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
27592 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
27593 {
27594 return 0;
27595 }
27596 else
27597 {
27598 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
27599 gtk_major_version, gtk_minor_version, gtk_micro_version);
27600 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
27601 major, minor, micro);
27602 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
27603 printf("***\n");
27604 printf("*** If you have already installed a sufficiently new version, this error\n");
27605 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
27606 printf("*** being found. The easiest way to fix this is to remove the old version\n");
27607 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
27608 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
27609 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
27610 printf("*** so that the correct libraries are found at run-time))\n");
27611 }
27612 }
27613 return 1;
27614}
27615
27616_ACEOF
27617rm -f conftest$ac_exeext
27618if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27619 (eval $ac_link) 2>&5
27620 ac_status=$?
27621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27622 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27624 (eval $ac_try) 2>&5
27625 ac_status=$?
27626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27627 (exit $ac_status); }; }; then
27628 :
27629else
27630 echo "$as_me: program exited with status $ac_status" >&5
27631echo "$as_me: failed program was:" >&5
27632sed 's/^/| /' conftest.$ac_ext >&5
27633
27634( exit $ac_status )
27635no_gtk=yes
27636fi
ac1cb8d3 27637rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27638fi
27639 CFLAGS="$ac_save_CFLAGS"
27640 LIBS="$ac_save_LIBS"
27641 fi
27642 fi
27643 if test "x$no_gtk" = x ; then
27644 echo "$as_me:$LINENO: result: yes" >&5
27645echo "${ECHO_T}yes" >&6
27646 wx_cv_lib_gtk=1.2.7
27647 else
27648 echo "$as_me:$LINENO: result: no" >&5
27649echo "${ECHO_T}no" >&6
27650 if test "$GTK_CONFIG" = "no" ; then
27651 echo "*** The gtk-config script installed by GTK could not be found"
27652 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
27653 echo "*** your path, or set the GTK_CONFIG environment variable to the"
27654 echo "*** full path to gtk-config."
27655 else
27656 if test -f conf.gtktest ; then
27657 :
27658 else
27659 echo "*** Could not run GTK test program, checking why..."
27660 CFLAGS="$CFLAGS $GTK_CFLAGS"
27661 LIBS="$LIBS $GTK_LIBS"
27662 cat >conftest.$ac_ext <<_ACEOF
27663/* confdefs.h. */
27664_ACEOF
27665cat confdefs.h >>conftest.$ac_ext
27666cat >>conftest.$ac_ext <<_ACEOF
27667/* end confdefs.h. */
27668
27669#include <gtk/gtk.h>
27670#include <stdio.h>
27671
27672int
27673main ()
27674{
27675 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
27676 ;
27677 return 0;
27678}
27679_ACEOF
27680rm -f conftest.$ac_objext conftest$ac_exeext
27681if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27682 (eval $ac_link) 2>conftest.er1
a848cd7e 27683 ac_status=$?
ac1cb8d3
VS
27684 grep -v '^ *+' conftest.er1 >conftest.err
27685 rm -f conftest.er1
27686 cat conftest.err >&5
a848cd7e
SC
27687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27688 (exit $ac_status); } &&
c9a66001 27689 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27691 (eval $ac_try) 2>&5
27692 ac_status=$?
27693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27694 (exit $ac_status); }; } &&
27695 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27697 (eval $ac_try) 2>&5
27698 ac_status=$?
27699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27700 (exit $ac_status); }; }; then
27701 echo "*** The test program compiled, but did not run. This usually means"
27702 echo "*** that the run-time linker is not finding GTK or finding the wrong"
27703 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
27704 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
27705 echo "*** to the installed location Also, make sure you have run ldconfig if that"
27706 echo "*** is required on your system"
27707 echo "***"
27708 echo "*** If you have an old version installed, it is best to remove it, although"
27709 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
27710 echo "***"
27711 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
27712 echo "*** came with the system with the command"
27713 echo "***"
27714 echo "*** rpm --erase --nodeps gtk gtk-devel"
27715else
27716 echo "$as_me: failed program was:" >&5
27717sed 's/^/| /' conftest.$ac_ext >&5
27718
27719 echo "*** The test program failed to compile or link. See the file config.log for the"
27720 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
27721 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
27722 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
27723fi
ac1cb8d3
VS
27724rm -f conftest.err conftest.$ac_objext \
27725 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27726 CFLAGS="$ac_save_CFLAGS"
27727 LIBS="$ac_save_LIBS"
27728 fi
27729 fi
27730 GTK_CFLAGS=""
27731 GTK_LIBS=""
27732 :
27733 fi
27734
27735
27736 rm -f conf.gtktest
27737
27738
f34ca037 27739 if test -z "$wx_cv_lib_gtk"; then
a848cd7e
SC
27740
27741# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
27742if test "${with_gtk_prefix+set}" = set; then
27743 withval="$with_gtk_prefix"
27744 gtk_config_prefix="$withval"
27745else
27746 gtk_config_prefix=""
27747fi;
27748
27749# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
27750if test "${with_gtk_exec_prefix+set}" = set; then
27751 withval="$with_gtk_exec_prefix"
27752 gtk_config_exec_prefix="$withval"
27753else
27754 gtk_config_exec_prefix=""
27755fi;
27756# Check whether --enable-gtktest or --disable-gtktest was given.
27757if test "${enable_gtktest+set}" = set; then
27758 enableval="$enable_gtktest"
27759
27760else
27761 enable_gtktest=yes
27762fi;
27763
27764 for module in . $GTK_MODULES
27765 do
27766 case "$module" in
27767 gthread)
27768 gtk_config_args="$gtk_config_args gthread"
27769 ;;
27770 esac
27771 done
27772
27773 if test x$gtk_config_exec_prefix != x ; then
27774 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
27775 if test x${GTK_CONFIG+set} != xset ; then
27776 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
27777 fi
27778 fi
27779 if test x$gtk_config_prefix != x ; then
27780 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
27781 if test x${GTK_CONFIG+set} != xset ; then
27782 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
27783 fi
27784 fi
27785
27786 # Extract the first word of "gtk-config", so it can be a program name with args.
27787set dummy gtk-config; ac_word=$2
27788echo "$as_me:$LINENO: checking for $ac_word" >&5
27789echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27790if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
27791 echo $ECHO_N "(cached) $ECHO_C" >&6
27792else
27793 case $GTK_CONFIG in
27794 [\\/]* | ?:[\\/]*)
27795 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
27796 ;;
27797 *)
27798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27799for as_dir in $PATH
27800do
27801 IFS=$as_save_IFS
27802 test -z "$as_dir" && as_dir=.
27803 for ac_exec_ext in '' $ac_executable_extensions; do
27804 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27805 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27806 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27807 break 2
27808 fi
27809done
27810done
27811
27812 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
27813 ;;
27814esac
27815fi
27816GTK_CONFIG=$ac_cv_path_GTK_CONFIG
27817
27818if test -n "$GTK_CONFIG"; then
27819 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
27820echo "${ECHO_T}$GTK_CONFIG" >&6
27821else
27822 echo "$as_me:$LINENO: result: no" >&5
27823echo "${ECHO_T}no" >&6
27824fi
27825
27826 min_gtk_version=1.2.3
27827 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
27828echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
27829 no_gtk=""
27830 if test "$GTK_CONFIG" = "no" ; then
27831 no_gtk=yes
27832 else
27833 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
27834 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
27835 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
27836 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
27837 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
27838 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
27839 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
27840 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
27841 if test "x$enable_gtktest" = "xyes" ; then
27842 ac_save_CFLAGS="$CFLAGS"
27843 ac_save_LIBS="$LIBS"
27844 CFLAGS="$CFLAGS $GTK_CFLAGS"
27845 LIBS="$GTK_LIBS $LIBS"
27846 rm -f conf.gtktest
27847 if test "$cross_compiling" = yes; then
27848 echo $ac_n "cross compiling; assumed OK... $ac_c"
27849else
27850 cat >conftest.$ac_ext <<_ACEOF
27851/* confdefs.h. */
27852_ACEOF
27853cat confdefs.h >>conftest.$ac_ext
27854cat >>conftest.$ac_ext <<_ACEOF
27855/* end confdefs.h. */
27856
27857#include <gtk/gtk.h>
27858#include <stdio.h>
27859#include <stdlib.h>
27860
27861int
27862main ()
27863{
27864 int major, minor, micro;
27865 char *tmp_version;
27866
27867 system ("touch conf.gtktest");
27868
27869 /* HP/UX 9 (%@#!) writes to sscanf strings */
27870 tmp_version = g_strdup("$min_gtk_version");
27871 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
27872 printf("%s, bad version string\n", "$min_gtk_version");
27873 exit(1);
27874 }
27875
27876 if ((gtk_major_version != $gtk_config_major_version) ||
27877 (gtk_minor_version != $gtk_config_minor_version) ||
27878 (gtk_micro_version != $gtk_config_micro_version))
27879 {
27880 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
27881 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
27882 gtk_major_version, gtk_minor_version, gtk_micro_version);
27883 printf ("*** was found! If gtk-config was correct, then it is best\n");
27884 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
27885 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
27886 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
27887 printf("*** required on your system.\n");
27888 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
27889 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
27890 printf("*** before re-running configure\n");
27891 }
27892#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
27893 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
27894 (gtk_minor_version != GTK_MINOR_VERSION) ||
27895 (gtk_micro_version != GTK_MICRO_VERSION))
27896 {
27897 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
27898 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
27899 printf("*** library (version %d.%d.%d)\n",
27900 gtk_major_version, gtk_minor_version, gtk_micro_version);
27901 }
27902#endif /* defined (GTK_MAJOR_VERSION) ... */
27903 else
27904 {
27905 if ((gtk_major_version > major) ||
27906 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
27907 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
27908 {
27909 return 0;
27910 }
27911 else
27912 {
27913 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
27914 gtk_major_version, gtk_minor_version, gtk_micro_version);
27915 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
27916 major, minor, micro);
27917 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
27918 printf("***\n");
27919 printf("*** If you have already installed a sufficiently new version, this error\n");
27920 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
27921 printf("*** being found. The easiest way to fix this is to remove the old version\n");
27922 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
27923 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
27924 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
27925 printf("*** so that the correct libraries are found at run-time))\n");
27926 }
27927 }
27928 return 1;
27929}
27930
27931_ACEOF
27932rm -f conftest$ac_exeext
27933if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27934 (eval $ac_link) 2>&5
27935 ac_status=$?
27936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27937 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27939 (eval $ac_try) 2>&5
27940 ac_status=$?
27941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27942 (exit $ac_status); }; }; then
27943 :
27944else
27945 echo "$as_me: program exited with status $ac_status" >&5
27946echo "$as_me: failed program was:" >&5
27947sed 's/^/| /' conftest.$ac_ext >&5
27948
27949( exit $ac_status )
27950no_gtk=yes
27951fi
ac1cb8d3 27952rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27953fi
27954 CFLAGS="$ac_save_CFLAGS"
27955 LIBS="$ac_save_LIBS"
27956 fi
27957 fi
27958 if test "x$no_gtk" = x ; then
27959 echo "$as_me:$LINENO: result: yes" >&5
27960echo "${ECHO_T}yes" >&6
27961 wx_cv_lib_gtk=1.2.3
27962 else
27963 echo "$as_me:$LINENO: result: no" >&5
27964echo "${ECHO_T}no" >&6
27965 if test "$GTK_CONFIG" = "no" ; then
27966 echo "*** The gtk-config script installed by GTK could not be found"
27967 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
27968 echo "*** your path, or set the GTK_CONFIG environment variable to the"
27969 echo "*** full path to gtk-config."
27970 else
27971 if test -f conf.gtktest ; then
27972 :
27973 else
27974 echo "*** Could not run GTK test program, checking why..."
27975 CFLAGS="$CFLAGS $GTK_CFLAGS"
27976 LIBS="$LIBS $GTK_LIBS"
27977 cat >conftest.$ac_ext <<_ACEOF
27978/* confdefs.h. */
27979_ACEOF
27980cat confdefs.h >>conftest.$ac_ext
27981cat >>conftest.$ac_ext <<_ACEOF
27982/* end confdefs.h. */
27983
27984#include <gtk/gtk.h>
27985#include <stdio.h>
27986
27987int
27988main ()
27989{
27990 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
27991 ;
27992 return 0;
27993}
27994_ACEOF
27995rm -f conftest.$ac_objext conftest$ac_exeext
27996if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27997 (eval $ac_link) 2>conftest.er1
a848cd7e 27998 ac_status=$?
ac1cb8d3
VS
27999 grep -v '^ *+' conftest.er1 >conftest.err
28000 rm -f conftest.er1
28001 cat conftest.err >&5
a848cd7e
SC
28002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28003 (exit $ac_status); } &&
c9a66001 28004 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28006 (eval $ac_try) 2>&5
28007 ac_status=$?
28008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28009 (exit $ac_status); }; } &&
28010 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28012 (eval $ac_try) 2>&5
28013 ac_status=$?
28014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28015 (exit $ac_status); }; }; then
28016 echo "*** The test program compiled, but did not run. This usually means"
28017 echo "*** that the run-time linker is not finding GTK or finding the wrong"
28018 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
28019 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
28020 echo "*** to the installed location Also, make sure you have run ldconfig if that"
28021 echo "*** is required on your system"
28022 echo "***"
28023 echo "*** If you have an old version installed, it is best to remove it, although"
28024 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
28025 echo "***"
28026 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
28027 echo "*** came with the system with the command"
28028 echo "***"
28029 echo "*** rpm --erase --nodeps gtk gtk-devel"
28030else
28031 echo "$as_me: failed program was:" >&5
28032sed 's/^/| /' conftest.$ac_ext >&5
28033
28034 echo "*** The test program failed to compile or link. See the file config.log for the"
28035 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
28036 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
28037 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
28038fi
ac1cb8d3
VS
28039rm -f conftest.err conftest.$ac_objext \
28040 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28041 CFLAGS="$ac_save_CFLAGS"
28042 LIBS="$ac_save_LIBS"
28043 fi
28044 fi
28045 GTK_CFLAGS=""
28046 GTK_LIBS=""
28047 :
28048 fi
28049
28050
28051 rm -f conf.gtktest
28052
f34ca037 28053 fi
a848cd7e
SC
28054 fi
28055 fi
28056
28057 if test -z "$wx_cv_lib_gtk"; then
28058 wx_cv_lib_gtk=none
28059 else
28060 wx_cv_cflags_gtk=$GTK_CFLAGS
d2822091 28061 wx_cv_libs_gtk=`echo $GTK_LIBS | sed -e 's/ -l[^ ]*cairo[^ ]*//g'`
a848cd7e
SC
28062 fi
28063
28064
28065fi
28066
28067
28068 if test "$gtk_version_cached" = 1; then
28069 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
28070echo "${ECHO_T}$wx_cv_lib_gtk" >&6
28071 fi
28072
28073 case "$wx_cv_lib_gtk" in
28074 2.0) WXGTK20=1
28075 TOOLKIT_VERSION=2
28076 ;;
28077 1.2.7) WXGTK127=1
28078 WXGTK12=1
28079 ;;
28080 1.2.3) WXGTK12=1
28081 ;;
28082 *) { { echo "$as_me:$LINENO: error:
f597b41c
MW
28083The development files for GTK+ were not found. For GTK+ 2, please
28084ensure that pkg-config is in the path and that gtk+-2.0.pc is
28085installed. For GTK+ 1.2 please check that gtk-config is in the path,
28086and that the version is 1.2.3 or above. Also check that the
28087libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
28088--libs' are in the LD_LIBRARY_PATH or equivalent.
a848cd7e
SC
28089 " >&5
28090echo "$as_me: error:
f597b41c
MW
28091The development files for GTK+ were not found. For GTK+ 2, please
28092ensure that pkg-config is in the path and that gtk+-2.0.pc is
28093installed. For GTK+ 1.2 please check that gtk-config is in the path,
28094and that the version is 1.2.3 or above. Also check that the
28095libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
28096--libs' are in the LD_LIBRARY_PATH or equivalent.
a848cd7e
SC
28097 " >&2;}
28098 { (exit 1); exit 1; }; }
28099 ;;
28100 esac
28101
28102 if test "$WXGTK20" = 1; then
6954625c 28103 save_CFLAGS="$CFLAGS"
304205f1 28104 save_LIBS="$LIBS"
6954625c 28105 CFLAGS="$wx_cv_cflags_gtk $CFLAGS"
abc736fd 28106 LIBS="$LIBS $wx_cv_libs_gtk"
304205f1 28107
d12aef51
VZ
28108 echo "$as_me:$LINENO: checking if gtk_icon_size_lookup is missing" >&5
28109echo $ECHO_N "checking if gtk_icon_size_lookup is missing... $ECHO_C" >&6
28110 cat >conftest.$ac_ext <<_ACEOF
304205f1
VS
28111/* confdefs.h. */
28112_ACEOF
28113cat confdefs.h >>conftest.$ac_ext
28114cat >>conftest.$ac_ext <<_ACEOF
28115/* end confdefs.h. */
304205f1 28116
d12aef51 28117 #include <gtk/gtk.h>
304205f1 28118
d12aef51
VZ
28119int
28120main ()
28121{
304205f1 28122
d12aef51 28123 void *f = gtk_icon_size_lookup;
abc736fd
MW
28124
28125 ;
28126 return 0;
28127}
28128_ACEOF
28129rm -f conftest.$ac_objext
28130if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28131 (eval $ac_compile) 2>conftest.er1
28132 ac_status=$?
28133 grep -v '^ *+' conftest.er1 >conftest.err
28134 rm -f conftest.er1
28135 cat conftest.err >&5
28136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28137 (exit $ac_status); } &&
c9a66001 28138 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
abc736fd
MW
28139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28140 (eval $ac_try) 2>&5
28141 ac_status=$?
28142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28143 (exit $ac_status); }; } &&
28144 { ac_try='test -s conftest.$ac_objext'
28145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28146 (eval $ac_try) 2>&5
28147 ac_status=$?
28148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28149 (exit $ac_status); }; }; then
28150
28151 echo "$as_me:$LINENO: result: no" >&5
28152echo "${ECHO_T}no" >&6
28153
28154else
28155 echo "$as_me: failed program was:" >&5
28156sed 's/^/| /' conftest.$ac_ext >&5
28157
28158
28159 cat >>confdefs.h <<\_ACEOF
28160#define NEED_GTK_ICON_SIZE_LOOKUP 1
28161_ACEOF
28162
28163 echo "$as_me:$LINENO: result: yes" >&5
28164echo "${ECHO_T}yes" >&6
28165
28166fi
28167rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28168
e9263684
VZ
28169 echo "$as_me:$LINENO: checking if GTK+ is version >= 2.6" >&5
28170echo $ECHO_N "checking if GTK+ is version >= 2.6... $ECHO_C" >&6
28171 cat >conftest.$ac_ext <<_ACEOF
28172/* confdefs.h. */
28173_ACEOF
28174cat confdefs.h >>conftest.$ac_ext
28175cat >>conftest.$ac_ext <<_ACEOF
28176/* end confdefs.h. */
28177
28178 #include <gtk/gtk.h>
28179
28180int
28181main ()
28182{
28183
28184 #if !GTK_CHECK_VERSION(2,6,0)
28185 Not GTK+ 2.6
28186 #endif
28187
28188 ;
28189 return 0;
28190}
28191_ACEOF
28192rm -f conftest.$ac_objext
28193if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28194 (eval $ac_compile) 2>conftest.er1
28195 ac_status=$?
28196 grep -v '^ *+' conftest.er1 >conftest.err
28197 rm -f conftest.er1
28198 cat conftest.err >&5
28199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28200 (exit $ac_status); } &&
c9a66001 28201 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
e9263684
VZ
28202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28203 (eval $ac_try) 2>&5
28204 ac_status=$?
28205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28206 (exit $ac_status); }; } &&
28207 { ac_try='test -s conftest.$ac_objext'
28208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28209 (eval $ac_try) 2>&5
28210 ac_status=$?
28211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28212 (exit $ac_status); }; }; then
28213
28214 cat >>confdefs.h <<\_ACEOF
28215#define __WXGTK26__ 1
28216_ACEOF
28217
28218 cat >>confdefs.h <<\_ACEOF
28219#define __WXGTK24__ 1
28220_ACEOF
28221
28222 echo "$as_me:$LINENO: result: yes" >&5
28223echo "${ECHO_T}yes" >&6
28224 ac_wxgtk26=1
28225
28226else
28227 echo "$as_me: failed program was:" >&5
28228sed 's/^/| /' conftest.$ac_ext >&5
28229
28230
28231 echo "$as_me:$LINENO: result: no" >&5
28232echo "${ECHO_T}no" >&6
28233 ac_wxgtk26=0
28234
28235fi
28236rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28237
28238 if test "$ac_wxgtk26" = 0; then
9755e73b
VS
28239 echo "$as_me:$LINENO: checking if GTK+ is version >= 2.4" >&5
28240echo $ECHO_N "checking if GTK+ is version >= 2.4... $ECHO_C" >&6
28241 cat >conftest.$ac_ext <<_ACEOF
28242/* confdefs.h. */
28243_ACEOF
28244cat confdefs.h >>conftest.$ac_ext
28245cat >>conftest.$ac_ext <<_ACEOF
28246/* end confdefs.h. */
28247
28248 #include <gtk/gtk.h>
28249
28250int
28251main ()
28252{
28253
28254 #if !GTK_CHECK_VERSION(2,4,0)
04e525a0 28255 Not GTK+ 2.4
9755e73b
VS
28256 #endif
28257
28258 ;
28259 return 0;
28260}
28261_ACEOF
28262rm -f conftest.$ac_objext
28263if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28264 (eval $ac_compile) 2>conftest.er1
28265 ac_status=$?
28266 grep -v '^ *+' conftest.er1 >conftest.err
28267 rm -f conftest.er1
28268 cat conftest.err >&5
28269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28270 (exit $ac_status); } &&
c9a66001 28271 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9755e73b
VS
28272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28273 (eval $ac_try) 2>&5
28274 ac_status=$?
28275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28276 (exit $ac_status); }; } &&
28277 { ac_try='test -s conftest.$ac_objext'
28278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28279 (eval $ac_try) 2>&5
28280 ac_status=$?
28281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28282 (exit $ac_status); }; }; then
28283
28284 cat >>confdefs.h <<\_ACEOF
28285#define __WXGTK24__ 1
28286_ACEOF
28287
28288 echo "$as_me:$LINENO: result: yes" >&5
28289echo "${ECHO_T}yes" >&6
28290
28291else
28292 echo "$as_me: failed program was:" >&5
28293sed 's/^/| /' conftest.$ac_ext >&5
28294
28295
28296 echo "$as_me:$LINENO: result: no" >&5
28297echo "${ECHO_T}no" >&6
28298
28299fi
28300rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e9263684 28301 fi
9755e73b 28302
6954625c 28303 CFLAGS="$save_CFLAGS"
304205f1 28304 LIBS="$save_LIBS"
a848cd7e
SC
28305 else
28306 if test "$wxUSE_UNICODE" = "yes"; then
28307 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
28308echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
28309 wxUSE_UNICODE=no
28310 fi
28311 fi
28312
e56f4f9e
VZ
28313 ac_ext=cc
28314ac_cpp='$CXXCPP $CPPFLAGS'
28315ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28316ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28317ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28318
28319
a848cd7e
SC
28320 if test "$USE_DARWIN" != 1; then
28321
28322for ac_func in poll
28323do
28324as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28325echo "$as_me:$LINENO: checking for $ac_func" >&5
28326echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28327if eval "test \"\${$as_ac_var+set}\" = set"; then
28328 echo $ECHO_N "(cached) $ECHO_C" >&6
28329else
28330 cat >conftest.$ac_ext <<_ACEOF
28331/* confdefs.h. */
28332_ACEOF
28333cat confdefs.h >>conftest.$ac_ext
28334cat >>conftest.$ac_ext <<_ACEOF
28335/* end confdefs.h. */
ac1cb8d3
VS
28336/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28337 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28338#define $ac_func innocuous_$ac_func
28339
a848cd7e
SC
28340/* System header to define __stub macros and hopefully few prototypes,
28341 which can conflict with char $ac_func (); below.
28342 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28343 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 28344
a848cd7e
SC
28345#ifdef __STDC__
28346# include <limits.h>
28347#else
28348# include <assert.h>
28349#endif
ac1cb8d3
VS
28350
28351#undef $ac_func
28352
a848cd7e
SC
28353/* Override any gcc2 internal prototype to avoid an error. */
28354#ifdef __cplusplus
28355extern "C"
28356{
28357#endif
28358/* We use char because int might match the return type of a gcc2
28359 builtin and then its argument prototype would still apply. */
28360char $ac_func ();
28361/* The GNU C library defines this for functions which it implements
28362 to always fail with ENOSYS. Some functions are actually named
28363 something starting with __ and the normal name is an alias. */
28364#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28365choke me
28366#else
28367char (*f) () = $ac_func;
28368#endif
28369#ifdef __cplusplus
28370}
28371#endif
28372
28373int
28374main ()
28375{
28376return f != $ac_func;
28377 ;
28378 return 0;
28379}
28380_ACEOF
28381rm -f conftest.$ac_objext conftest$ac_exeext
28382if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28383 (eval $ac_link) 2>conftest.er1
a848cd7e 28384 ac_status=$?
ac1cb8d3
VS
28385 grep -v '^ *+' conftest.er1 >conftest.err
28386 rm -f conftest.er1
28387 cat conftest.err >&5
a848cd7e
SC
28388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28389 (exit $ac_status); } &&
c9a66001 28390 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28392 (eval $ac_try) 2>&5
28393 ac_status=$?
28394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28395 (exit $ac_status); }; } &&
28396 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28398 (eval $ac_try) 2>&5
28399 ac_status=$?
28400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28401 (exit $ac_status); }; }; then
28402 eval "$as_ac_var=yes"
28403else
28404 echo "$as_me: failed program was:" >&5
28405sed 's/^/| /' conftest.$ac_ext >&5
28406
28407eval "$as_ac_var=no"
28408fi
ac1cb8d3
VS
28409rm -f conftest.err conftest.$ac_objext \
28410 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28411fi
28412echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28413echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28414if test `eval echo '${'$as_ac_var'}'` = yes; then
28415 cat >>confdefs.h <<_ACEOF
28416#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28417_ACEOF
28418
28419fi
28420done
28421
28422 fi
28423
28424 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
28425 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
28426
28427 AFMINSTALL=afminstall
28428 TOOLKIT=GTK
28429 GUIDIST=GTK_DIST
28430
28431 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
28432echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
28433if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
28434 echo $ECHO_N "(cached) $ECHO_C" >&6
28435else
28436 ac_check_lib_save_LIBS=$LIBS
28437LIBS="-lgdk $LIBS"
28438cat >conftest.$ac_ext <<_ACEOF
28439/* confdefs.h. */
28440_ACEOF
28441cat confdefs.h >>conftest.$ac_ext
28442cat >>conftest.$ac_ext <<_ACEOF
28443/* end confdefs.h. */
28444
28445/* Override any gcc2 internal prototype to avoid an error. */
28446#ifdef __cplusplus
28447extern "C"
28448#endif
28449/* We use char because int might match the return type of a gcc2
28450 builtin and then its argument prototype would still apply. */
28451char gdk_im_open ();
28452int
28453main ()
28454{
28455gdk_im_open ();
28456 ;
28457 return 0;
28458}
28459_ACEOF
28460rm -f conftest.$ac_objext conftest$ac_exeext
28461if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28462 (eval $ac_link) 2>conftest.er1
a848cd7e 28463 ac_status=$?
ac1cb8d3
VS
28464 grep -v '^ *+' conftest.er1 >conftest.err
28465 rm -f conftest.er1
28466 cat conftest.err >&5
a848cd7e
SC
28467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28468 (exit $ac_status); } &&
c9a66001 28469 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28471 (eval $ac_try) 2>&5
28472 ac_status=$?
28473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28474 (exit $ac_status); }; } &&
28475 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28477 (eval $ac_try) 2>&5
28478 ac_status=$?
28479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28480 (exit $ac_status); }; }; then
28481 ac_cv_lib_gdk_gdk_im_open=yes
28482else
28483 echo "$as_me: failed program was:" >&5
28484sed 's/^/| /' conftest.$ac_ext >&5
28485
28486ac_cv_lib_gdk_gdk_im_open=no
28487fi
ac1cb8d3
VS
28488rm -f conftest.err conftest.$ac_objext \
28489 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28490LIBS=$ac_check_lib_save_LIBS
28491fi
28492echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
28493echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
28494if test $ac_cv_lib_gdk_gdk_im_open = yes; then
28495 cat >>confdefs.h <<\_ACEOF
28496#define HAVE_XIM 1
28497_ACEOF
28498
28499fi
28500
28501
28502
28503 if test "$wxUSE_GPE" = "yes"; then
28504 echo "$as_me:$LINENO: checking for gpewidget library" >&5
28505echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6
28506
0ad5d837
VZ
28507 ac_find_libraries=
28508 for ac_dir in $SEARCH_LIB;
a848cd7e 28509 do
3eca31dc 28510 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
28511 if test -f "$ac_dir/libgpewidget.$ac_extension"; then
28512 ac_find_libraries=$ac_dir
28513 break 2
28514 fi
28515 done
28516 done
28517
28518 if test "$ac_find_libraries" != "" ; then
28519
0ad5d837 28520 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
28521 ac_path_to_link=""
28522 else
0ad5d837
VZ
28523 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
28524 result=$?
28525 if test $result = 0; then
28526 ac_path_to_link=""
28527 else
28528 ac_path_to_link=" -L$ac_find_libraries"
28529 fi
a848cd7e
SC
28530 fi
28531
28532 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
28533 WXGPE=1
0ad5d837
VZ
28534 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
28535echo "${ECHO_T}found in $ac_find_libraries" >&6
a848cd7e
SC
28536 else
28537 echo "$as_me:$LINENO: result: not found" >&5
28538echo "${ECHO_T}not found" >&6
28539 fi
28540
28541 fi
28542 fi
28543
28544 if test "$wxUSE_MGL" = 1; then
28545 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
28546echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
28547 if test "x$MGL_ROOT" = x ; then
28548 echo "$as_me:$LINENO: result: not found" >&5
28549echo "${ECHO_T}not found" >&6
28550 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
28551echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
28552 { (exit 1); exit 1; }; }
28553 else
28554 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
28555echo "${ECHO_T}$MGL_ROOT" >&6
28556 fi
28557
28558 echo "$as_me:$LINENO: checking for libmgl location" >&5
28559echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
28560 case "${host}" in
28561 *-*-linux* )
28562 if test "x$wxUSE_SHARED" = xyes ; then
28563 mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
28564 else
28565 mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
28566 fi
28567 ;;
28568 *-pc-msdosdjgpp )
28569 mgl_os_candidates="dos32/dj2"
28570 ;;
28571 *)
28572 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
28573echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
28574 { (exit 1); exit 1; }; }
28575 esac
28576
28577 mgl_lib_type=""
28578 mgl_os=""
28579
28580 for mgl_os_i in $mgl_os_candidates ; do
28581 if test "x$mgl_os" = x ; then
28582 if test "$wxUSE_DEBUG_FLAG" = yes ; then
28583 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
28584 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
28585 mgl_lib_type=debug
28586 mgl_os=$mgl_os_i
28587 fi
28588 fi
28589 if test "x$mgl_lib_type" = x ; then
28590 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
28591 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
28592 mgl_lib_type=release
28593 mgl_os=$mgl_os_i
28594 fi
28595 fi
28596 fi
28597 done
28598
28599 if test "x$mgl_os" = x ; then
28600 echo "$as_me:$LINENO: result: not found" >&5
28601echo "${ECHO_T}not found" >&6
28602 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
28603echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
28604 { (exit 1); exit 1; }; }
28605 fi
28606 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
28607echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
28608
28609 wxUSE_UNIVERSAL="yes"
28610
28611 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
28612 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
28613
28614 AFMINSTALL=afminstall
28615 TOOLKIT=MGL
28616 GUIDIST=MGL_DIST
28617 fi
28618
28619 if test "$wxUSE_MICROWIN" = 1; then
28620 echo "$as_me:$LINENO: checking for MicroWindows" >&5
28621echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
28622 if test "x$MICROWINDOWS" = x ; then
28623 echo "$as_me:$LINENO: result: not found" >&5
28624echo "${ECHO_T}not found" >&6
28625 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
28626echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
28627 { (exit 1); exit 1; }; }
28628 else
28629 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
28630echo "${ECHO_T}$MICROWINDOWS" >&6
28631 fi
28632
28633 if test -f $MICROWINDOWS/lib/libmwin.a; then
28634 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
28635echo "${ECHO_T}MicroWindows' libraries found." >&6
28636 else
28637 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
28638echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
28639 { (exit 1); exit 1; }; }
28640 fi
28641
28642 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
28643 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
28644
28645 wxUSE_UNIVERSAL="yes"
28646
28647 AFMINSTALL=afminstall
28648 TOOLKIT=MICROWIN
28649 GUIDIST=MICROWIN_DIST
28650
28651 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
28652 fi
28653
74b84332 28654 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
c9a66001
VZ
28655
28656if test "x$ac_path_x_has_been_run" != xyes; then
28657 echo "$as_me:$LINENO: checking for X" >&5
a848cd7e
SC
28658echo $ECHO_N "checking for X... $ECHO_C" >&6
28659
c9a66001 28660ac_path_x_has_been_run=yes
a848cd7e
SC
28661
28662# Check whether --with-x or --without-x was given.
28663if test "${with_x+set}" = set; then
28664 withval="$with_x"
28665
28666fi;
28667# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
28668if test "x$with_x" = xno; then
28669 # The user explicitly disabled X.
28670 have_x=disabled
28671else
28672 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
28673 # Both variables are already set.
28674 have_x=yes
28675 else
28676 if test "${ac_cv_have_x+set}" = set; then
28677 echo $ECHO_N "(cached) $ECHO_C" >&6
28678else
28679 # One or both of the vars are not set, and there is no cached value.
28680ac_x_includes=no ac_x_libraries=no
28681rm -fr conftest.dir
28682if mkdir conftest.dir; then
28683 cd conftest.dir
28684 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
28685 cat >Imakefile <<'_ACEOF'
28686acfindx:
28687 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
28688_ACEOF
28689 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
28690 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
28691 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
28692 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
28693 for ac_extension in a so sl; do
28694 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
ac1cb8d3
VS
28695 test -f $ac_im_libdir/libX11.$ac_extension; then
28696 ac_im_usrlibdir=$ac_im_libdir; break
a848cd7e
SC
28697 fi
28698 done
28699 # Screen out bogus values from the imake configuration. They are
28700 # bogus both because they are the default anyway, and because
28701 # using them would break gcc on systems where it needs fixed includes.
28702 case $ac_im_incroot in
28703 /usr/include) ;;
28704 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
28705 esac
28706 case $ac_im_usrlibdir in
28707 /usr/lib | /lib) ;;
28708 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
28709 esac
28710 fi
28711 cd ..
28712 rm -fr conftest.dir
28713fi
28714
28715# Standard set of common directories for X headers.
28716# Check X11 before X11Rn because it is often a symlink to the current release.
28717ac_x_header_dirs='
28718/usr/X11/include
28719/usr/X11R6/include
28720/usr/X11R5/include
28721/usr/X11R4/include
28722
28723/usr/include/X11
28724/usr/include/X11R6
28725/usr/include/X11R5
28726/usr/include/X11R4
28727
28728/usr/local/X11/include
28729/usr/local/X11R6/include
28730/usr/local/X11R5/include
28731/usr/local/X11R4/include
28732
28733/usr/local/include/X11
28734/usr/local/include/X11R6
28735/usr/local/include/X11R5
28736/usr/local/include/X11R4
28737
28738/usr/X386/include
28739/usr/x386/include
28740/usr/XFree86/include/X11
28741
28742/usr/include
28743/usr/local/include
28744/usr/unsupported/include
28745/usr/athena/include
28746/usr/local/x11r5/include
28747/usr/lpp/Xamples/include
28748
28749/usr/openwin/include
28750/usr/openwin/share/include'
28751
28752if test "$ac_x_includes" = no; then
c9a66001 28753 # Guess where to find include files, by looking for a specified header file.
a848cd7e
SC
28754 # First, try using that file with no special directory specified.
28755 cat >conftest.$ac_ext <<_ACEOF
28756/* confdefs.h. */
28757_ACEOF
28758cat confdefs.h >>conftest.$ac_ext
28759cat >>conftest.$ac_ext <<_ACEOF
28760/* end confdefs.h. */
bc023abb 28761#include <X11/Intrinsic.h>
a848cd7e
SC
28762_ACEOF
28763if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28764 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28765 ac_status=$?
28766 grep -v '^ *+' conftest.er1 >conftest.err
28767 rm -f conftest.er1
28768 cat conftest.err >&5
28769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28770 (exit $ac_status); } >/dev/null; then
28771 if test -s conftest.err; then
5d7b7554
VZ
28772 ac_cpp_err=$ac_cxx_preproc_warn_flag
28773 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
28774 else
28775 ac_cpp_err=
28776 fi
28777else
28778 ac_cpp_err=yes
28779fi
28780if test -z "$ac_cpp_err"; then
28781 # We can compile using X headers with no special include directory.
28782ac_x_includes=
28783else
28784 echo "$as_me: failed program was:" >&5
28785sed 's/^/| /' conftest.$ac_ext >&5
28786
28787 for ac_dir in $ac_x_header_dirs; do
bc023abb 28788 if test -r "$ac_dir/X11/Intrinsic.h"; then
a848cd7e
SC
28789 ac_x_includes=$ac_dir
28790 break
28791 fi
28792done
28793fi
28794rm -f conftest.err conftest.$ac_ext
28795fi # $ac_x_includes = no
28796
28797if test "$ac_x_libraries" = no; then
28798 # Check for the libraries.
28799 # See if we find them without any special options.
28800 # Don't add to $LIBS permanently.
28801 ac_save_LIBS=$LIBS
bc023abb 28802 LIBS="-lXt $LIBS"
a848cd7e
SC
28803 cat >conftest.$ac_ext <<_ACEOF
28804/* confdefs.h. */
28805_ACEOF
28806cat confdefs.h >>conftest.$ac_ext
28807cat >>conftest.$ac_ext <<_ACEOF
28808/* end confdefs.h. */
bc023abb 28809#include <X11/Intrinsic.h>
a848cd7e
SC
28810int
28811main ()
28812{
bc023abb 28813XtMalloc (0)
a848cd7e
SC
28814 ;
28815 return 0;
28816}
28817_ACEOF
28818rm -f conftest.$ac_objext conftest$ac_exeext
28819if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28820 (eval $ac_link) 2>conftest.er1
a848cd7e 28821 ac_status=$?
ac1cb8d3
VS
28822 grep -v '^ *+' conftest.er1 >conftest.err
28823 rm -f conftest.er1
28824 cat conftest.err >&5
a848cd7e
SC
28825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28826 (exit $ac_status); } &&
c9a66001 28827 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28829 (eval $ac_try) 2>&5
28830 ac_status=$?
28831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28832 (exit $ac_status); }; } &&
28833 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28835 (eval $ac_try) 2>&5
28836 ac_status=$?
28837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28838 (exit $ac_status); }; }; then
28839 LIBS=$ac_save_LIBS
28840# We can link X programs with no special library path.
28841ac_x_libraries=
28842else
28843 echo "$as_me: failed program was:" >&5
28844sed 's/^/| /' conftest.$ac_ext >&5
28845
28846LIBS=$ac_save_LIBS
28847for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
28848do
28849 # Don't even attempt the hair of trying to link an X program!
28850 for ac_extension in a so sl; do
bc023abb 28851 if test -r $ac_dir/libXt.$ac_extension; then
a848cd7e
SC
28852 ac_x_libraries=$ac_dir
28853 break 2
28854 fi
28855 done
28856done
28857fi
ac1cb8d3
VS
28858rm -f conftest.err conftest.$ac_objext \
28859 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28860fi # $ac_x_libraries = no
28861
28862if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
28863 # Didn't find X anywhere. Cache the known absence of X.
28864 ac_cv_have_x="have_x=no"
28865else
28866 # Record where we found X for the cache.
28867 ac_cv_have_x="have_x=yes \
ac1cb8d3 28868 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
a848cd7e
SC
28869fi
28870fi
28871
28872 fi
28873 eval "$ac_cv_have_x"
28874fi # $with_x != no
28875
28876if test "$have_x" != yes; then
28877 echo "$as_me:$LINENO: result: $have_x" >&5
28878echo "${ECHO_T}$have_x" >&6
28879 no_x=yes
28880else
28881 # If each of the values was on the command line, it overrides each guess.
28882 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
28883 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
28884 # Update the cache value to reflect the command line values.
28885 ac_cv_have_x="have_x=yes \
28886 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
c9a66001
VZ
28887 # It might be that x_includes is empty (headers are found in the
28888 # standard search path. Then output the corresponding message
28889 ac_out_x_includes=$x_includes
28890 test "x$x_includes" = x && ac_out_x_includes="in standard search path"
28891 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
28892echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
a848cd7e
SC
28893fi
28894
c9a66001 28895fi
a848cd7e
SC
28896if test "$no_x" = yes; then
28897 # Not all programs may use this symbol, but it does not hurt to define it.
28898
28899cat >>confdefs.h <<\_ACEOF
28900#define X_DISPLAY_MISSING 1
28901_ACEOF
28902
28903 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
28904else
28905 if test -n "$x_includes"; then
28906 X_CFLAGS="$X_CFLAGS -I$x_includes"
28907 fi
28908
28909 # It would also be nice to do this for all -L options, not just this one.
28910 if test -n "$x_libraries"; then
28911 X_LIBS="$X_LIBS -L$x_libraries"
28912 # For Solaris; some versions of Sun CC require a space after -R and
28913 # others require no space. Words are not sufficient . . . .
28914 case `(uname -sr) 2>/dev/null` in
28915 "SunOS 5"*)
28916 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
28917echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
28918 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
28919 cat >conftest.$ac_ext <<_ACEOF
28920/* confdefs.h. */
28921_ACEOF
28922cat confdefs.h >>conftest.$ac_ext
28923cat >>conftest.$ac_ext <<_ACEOF
28924/* end confdefs.h. */
28925
28926int
28927main ()
28928{
28929
28930 ;
28931 return 0;
28932}
28933_ACEOF
28934rm -f conftest.$ac_objext conftest$ac_exeext
28935if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28936 (eval $ac_link) 2>conftest.er1
a848cd7e 28937 ac_status=$?
ac1cb8d3
VS
28938 grep -v '^ *+' conftest.er1 >conftest.err
28939 rm -f conftest.er1
28940 cat conftest.err >&5
a848cd7e
SC
28941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28942 (exit $ac_status); } &&
c9a66001 28943 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28945 (eval $ac_try) 2>&5
28946 ac_status=$?
28947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28948 (exit $ac_status); }; } &&
28949 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28951 (eval $ac_try) 2>&5
28952 ac_status=$?
28953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28954 (exit $ac_status); }; }; then
28955 ac_R_nospace=yes
28956else
28957 echo "$as_me: failed program was:" >&5
28958sed 's/^/| /' conftest.$ac_ext >&5
28959
28960ac_R_nospace=no
28961fi
ac1cb8d3
VS
28962rm -f conftest.err conftest.$ac_objext \
28963 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28964 if test $ac_R_nospace = yes; then
28965 echo "$as_me:$LINENO: result: no" >&5
28966echo "${ECHO_T}no" >&6
28967 X_LIBS="$X_LIBS -R$x_libraries"
28968 else
28969 LIBS="$ac_xsave_LIBS -R $x_libraries"
28970 cat >conftest.$ac_ext <<_ACEOF
28971/* confdefs.h. */
28972_ACEOF
28973cat confdefs.h >>conftest.$ac_ext
28974cat >>conftest.$ac_ext <<_ACEOF
28975/* end confdefs.h. */
28976
28977int
28978main ()
28979{
28980
28981 ;
28982 return 0;
28983}
28984_ACEOF
28985rm -f conftest.$ac_objext conftest$ac_exeext
28986if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28987 (eval $ac_link) 2>conftest.er1
a848cd7e 28988 ac_status=$?
ac1cb8d3
VS
28989 grep -v '^ *+' conftest.er1 >conftest.err
28990 rm -f conftest.er1
28991 cat conftest.err >&5
a848cd7e
SC
28992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28993 (exit $ac_status); } &&
c9a66001 28994 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28996 (eval $ac_try) 2>&5
28997 ac_status=$?
28998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28999 (exit $ac_status); }; } &&
29000 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29002 (eval $ac_try) 2>&5
29003 ac_status=$?
29004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29005 (exit $ac_status); }; }; then
29006 ac_R_space=yes
29007else
29008 echo "$as_me: failed program was:" >&5
29009sed 's/^/| /' conftest.$ac_ext >&5
29010
29011ac_R_space=no
29012fi
ac1cb8d3
VS
29013rm -f conftest.err conftest.$ac_objext \
29014 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29015 if test $ac_R_space = yes; then
29016 echo "$as_me:$LINENO: result: yes" >&5
29017echo "${ECHO_T}yes" >&6
29018 X_LIBS="$X_LIBS -R $x_libraries"
29019 else
29020 echo "$as_me:$LINENO: result: neither works" >&5
29021echo "${ECHO_T}neither works" >&6
29022 fi
29023 fi
29024 LIBS=$ac_xsave_LIBS
29025 esac
29026 fi
29027
29028 # Check for system-dependent libraries X programs must link with.
29029 # Do this before checking for the system-independent R6 libraries
29030 # (-lICE), since we may need -lsocket or whatever for X linking.
29031
29032 if test "$ISC" = yes; then
29033 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
29034 else
29035 # Martyn Johnson says this is needed for Ultrix, if the X
29036 # libraries were built with DECnet support. And Karl Berry says
29037 # the Alpha needs dnet_stub (dnet does not exist).
29038 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
29039 cat >conftest.$ac_ext <<_ACEOF
29040/* confdefs.h. */
29041_ACEOF
29042cat confdefs.h >>conftest.$ac_ext
29043cat >>conftest.$ac_ext <<_ACEOF
29044/* end confdefs.h. */
29045
29046/* Override any gcc2 internal prototype to avoid an error. */
29047#ifdef __cplusplus
29048extern "C"
29049#endif
29050/* We use char because int might match the return type of a gcc2
29051 builtin and then its argument prototype would still apply. */
29052char XOpenDisplay ();
29053int
29054main ()
29055{
29056XOpenDisplay ();
29057 ;
29058 return 0;
29059}
29060_ACEOF
29061rm -f conftest.$ac_objext conftest$ac_exeext
29062if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29063 (eval $ac_link) 2>conftest.er1
a848cd7e 29064 ac_status=$?
ac1cb8d3
VS
29065 grep -v '^ *+' conftest.er1 >conftest.err
29066 rm -f conftest.er1
29067 cat conftest.err >&5
a848cd7e
SC
29068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29069 (exit $ac_status); } &&
c9a66001 29070 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29072 (eval $ac_try) 2>&5
29073 ac_status=$?
29074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29075 (exit $ac_status); }; } &&
29076 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29078 (eval $ac_try) 2>&5
29079 ac_status=$?
29080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29081 (exit $ac_status); }; }; then
29082 :
29083else
29084 echo "$as_me: failed program was:" >&5
29085sed 's/^/| /' conftest.$ac_ext >&5
29086
29087echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
29088echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
29089if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
29090 echo $ECHO_N "(cached) $ECHO_C" >&6
29091else
29092 ac_check_lib_save_LIBS=$LIBS
29093LIBS="-ldnet $LIBS"
29094cat >conftest.$ac_ext <<_ACEOF
29095/* confdefs.h. */
29096_ACEOF
29097cat confdefs.h >>conftest.$ac_ext
29098cat >>conftest.$ac_ext <<_ACEOF
29099/* end confdefs.h. */
29100
29101/* Override any gcc2 internal prototype to avoid an error. */
29102#ifdef __cplusplus
29103extern "C"
29104#endif
29105/* We use char because int might match the return type of a gcc2
29106 builtin and then its argument prototype would still apply. */
29107char dnet_ntoa ();
29108int
29109main ()
29110{
29111dnet_ntoa ();
29112 ;
29113 return 0;
29114}
29115_ACEOF
29116rm -f conftest.$ac_objext conftest$ac_exeext
29117if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29118 (eval $ac_link) 2>conftest.er1
a848cd7e 29119 ac_status=$?
ac1cb8d3
VS
29120 grep -v '^ *+' conftest.er1 >conftest.err
29121 rm -f conftest.er1
29122 cat conftest.err >&5
a848cd7e
SC
29123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29124 (exit $ac_status); } &&
c9a66001 29125 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29127 (eval $ac_try) 2>&5
29128 ac_status=$?
29129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29130 (exit $ac_status); }; } &&
29131 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29133 (eval $ac_try) 2>&5
29134 ac_status=$?
29135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29136 (exit $ac_status); }; }; then
29137 ac_cv_lib_dnet_dnet_ntoa=yes
29138else
29139 echo "$as_me: failed program was:" >&5
29140sed 's/^/| /' conftest.$ac_ext >&5
29141
29142ac_cv_lib_dnet_dnet_ntoa=no
29143fi
ac1cb8d3
VS
29144rm -f conftest.err conftest.$ac_objext \
29145 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29146LIBS=$ac_check_lib_save_LIBS
29147fi
29148echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
29149echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
29150if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
29151 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
29152fi
29153
29154 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
29155 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
29156echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
29157if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
29158 echo $ECHO_N "(cached) $ECHO_C" >&6
29159else
29160 ac_check_lib_save_LIBS=$LIBS
29161LIBS="-ldnet_stub $LIBS"
29162cat >conftest.$ac_ext <<_ACEOF
29163/* confdefs.h. */
29164_ACEOF
29165cat confdefs.h >>conftest.$ac_ext
29166cat >>conftest.$ac_ext <<_ACEOF
29167/* end confdefs.h. */
29168
29169/* Override any gcc2 internal prototype to avoid an error. */
29170#ifdef __cplusplus
29171extern "C"
29172#endif
29173/* We use char because int might match the return type of a gcc2
29174 builtin and then its argument prototype would still apply. */
29175char dnet_ntoa ();
29176int
29177main ()
29178{
29179dnet_ntoa ();
29180 ;
29181 return 0;
29182}
29183_ACEOF
29184rm -f conftest.$ac_objext conftest$ac_exeext
29185if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29186 (eval $ac_link) 2>conftest.er1
a848cd7e 29187 ac_status=$?
ac1cb8d3
VS
29188 grep -v '^ *+' conftest.er1 >conftest.err
29189 rm -f conftest.er1
29190 cat conftest.err >&5
a848cd7e
SC
29191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29192 (exit $ac_status); } &&
c9a66001 29193 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29195 (eval $ac_try) 2>&5
29196 ac_status=$?
29197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29198 (exit $ac_status); }; } &&
29199 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29201 (eval $ac_try) 2>&5
29202 ac_status=$?
29203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29204 (exit $ac_status); }; }; then
29205 ac_cv_lib_dnet_stub_dnet_ntoa=yes
29206else
29207 echo "$as_me: failed program was:" >&5
29208sed 's/^/| /' conftest.$ac_ext >&5
29209
29210ac_cv_lib_dnet_stub_dnet_ntoa=no
29211fi
ac1cb8d3
VS
29212rm -f conftest.err conftest.$ac_objext \
29213 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29214LIBS=$ac_check_lib_save_LIBS
29215fi
29216echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
29217echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
29218if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
29219 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
29220fi
29221
29222 fi
29223fi
ac1cb8d3
VS
29224rm -f conftest.err conftest.$ac_objext \
29225 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29226 LIBS="$ac_xsave_LIBS"
29227
29228 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
29229 # to get the SysV transport functions.
29230 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
29231 # needs -lnsl.
29232 # The nsl library prevents programs from opening the X display
29233 # on Irix 5.2, according to T.E. Dickey.
29234 # The functions gethostbyname, getservbyname, and inet_addr are
29235 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
29236 echo "$as_me:$LINENO: checking for gethostbyname" >&5
29237echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
29238if test "${ac_cv_func_gethostbyname+set}" = set; then
29239 echo $ECHO_N "(cached) $ECHO_C" >&6
29240else
29241 cat >conftest.$ac_ext <<_ACEOF
29242/* confdefs.h. */
29243_ACEOF
29244cat confdefs.h >>conftest.$ac_ext
29245cat >>conftest.$ac_ext <<_ACEOF
29246/* end confdefs.h. */
ac1cb8d3
VS
29247/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
29248 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29249#define gethostbyname innocuous_gethostbyname
29250
a848cd7e
SC
29251/* System header to define __stub macros and hopefully few prototypes,
29252 which can conflict with char gethostbyname (); below.
29253 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29254 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29255
a848cd7e
SC
29256#ifdef __STDC__
29257# include <limits.h>
29258#else
29259# include <assert.h>
29260#endif
ac1cb8d3
VS
29261
29262#undef gethostbyname
29263
a848cd7e
SC
29264/* Override any gcc2 internal prototype to avoid an error. */
29265#ifdef __cplusplus
29266extern "C"
29267{
29268#endif
29269/* We use char because int might match the return type of a gcc2
29270 builtin and then its argument prototype would still apply. */
29271char gethostbyname ();
29272/* The GNU C library defines this for functions which it implements
29273 to always fail with ENOSYS. Some functions are actually named
29274 something starting with __ and the normal name is an alias. */
29275#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
29276choke me
29277#else
29278char (*f) () = gethostbyname;
29279#endif
29280#ifdef __cplusplus
29281}
29282#endif
29283
29284int
29285main ()
29286{
29287return f != gethostbyname;
29288 ;
29289 return 0;
29290}
29291_ACEOF
29292rm -f conftest.$ac_objext conftest$ac_exeext
29293if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29294 (eval $ac_link) 2>conftest.er1
a848cd7e 29295 ac_status=$?
ac1cb8d3
VS
29296 grep -v '^ *+' conftest.er1 >conftest.err
29297 rm -f conftest.er1
29298 cat conftest.err >&5
a848cd7e
SC
29299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29300 (exit $ac_status); } &&
c9a66001 29301 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29303 (eval $ac_try) 2>&5
29304 ac_status=$?
29305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29306 (exit $ac_status); }; } &&
29307 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29309 (eval $ac_try) 2>&5
29310 ac_status=$?
29311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29312 (exit $ac_status); }; }; then
29313 ac_cv_func_gethostbyname=yes
29314else
29315 echo "$as_me: failed program was:" >&5
29316sed 's/^/| /' conftest.$ac_ext >&5
29317
29318ac_cv_func_gethostbyname=no
29319fi
ac1cb8d3
VS
29320rm -f conftest.err conftest.$ac_objext \
29321 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29322fi
29323echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
29324echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
29325
29326 if test $ac_cv_func_gethostbyname = no; then
29327 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
29328echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
29329if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
29330 echo $ECHO_N "(cached) $ECHO_C" >&6
29331else
29332 ac_check_lib_save_LIBS=$LIBS
29333LIBS="-lnsl $LIBS"
29334cat >conftest.$ac_ext <<_ACEOF
29335/* confdefs.h. */
29336_ACEOF
29337cat confdefs.h >>conftest.$ac_ext
29338cat >>conftest.$ac_ext <<_ACEOF
29339/* end confdefs.h. */
29340
29341/* Override any gcc2 internal prototype to avoid an error. */
29342#ifdef __cplusplus
29343extern "C"
29344#endif
29345/* We use char because int might match the return type of a gcc2
29346 builtin and then its argument prototype would still apply. */
29347char gethostbyname ();
29348int
29349main ()
29350{
29351gethostbyname ();
29352 ;
29353 return 0;
29354}
29355_ACEOF
29356rm -f conftest.$ac_objext conftest$ac_exeext
29357if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3
VS
29358 (eval $ac_link) 2>conftest.er1
29359 ac_status=$?
29360 grep -v '^ *+' conftest.er1 >conftest.err
29361 rm -f conftest.er1
29362 cat conftest.err >&5
29363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29364 (exit $ac_status); } &&
c9a66001 29365 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29367 (eval $ac_try) 2>&5
29368 ac_status=$?
29369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29370 (exit $ac_status); }; } &&
29371 { ac_try='test -s conftest$ac_exeext'
29372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29373 (eval $ac_try) 2>&5
29374 ac_status=$?
29375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29376 (exit $ac_status); }; }; then
29377 ac_cv_lib_nsl_gethostbyname=yes
29378else
29379 echo "$as_me: failed program was:" >&5
29380sed 's/^/| /' conftest.$ac_ext >&5
29381
29382ac_cv_lib_nsl_gethostbyname=no
29383fi
29384rm -f conftest.err conftest.$ac_objext \
29385 conftest$ac_exeext conftest.$ac_ext
29386LIBS=$ac_check_lib_save_LIBS
29387fi
29388echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
29389echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
29390if test $ac_cv_lib_nsl_gethostbyname = yes; then
29391 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
29392fi
29393
29394 if test $ac_cv_lib_nsl_gethostbyname = no; then
29395 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
29396echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
29397if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
29398 echo $ECHO_N "(cached) $ECHO_C" >&6
29399else
29400 ac_check_lib_save_LIBS=$LIBS
29401LIBS="-lbsd $LIBS"
29402cat >conftest.$ac_ext <<_ACEOF
29403/* confdefs.h. */
29404_ACEOF
29405cat confdefs.h >>conftest.$ac_ext
29406cat >>conftest.$ac_ext <<_ACEOF
29407/* end confdefs.h. */
29408
29409/* Override any gcc2 internal prototype to avoid an error. */
29410#ifdef __cplusplus
29411extern "C"
29412#endif
29413/* We use char because int might match the return type of a gcc2
29414 builtin and then its argument prototype would still apply. */
29415char gethostbyname ();
29416int
29417main ()
29418{
29419gethostbyname ();
29420 ;
29421 return 0;
29422}
29423_ACEOF
29424rm -f conftest.$ac_objext conftest$ac_exeext
29425if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29426 (eval $ac_link) 2>conftest.er1
a848cd7e 29427 ac_status=$?
ac1cb8d3
VS
29428 grep -v '^ *+' conftest.er1 >conftest.err
29429 rm -f conftest.er1
29430 cat conftest.err >&5
a848cd7e
SC
29431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29432 (exit $ac_status); } &&
c9a66001 29433 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
29434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29435 (eval $ac_try) 2>&5
29436 ac_status=$?
29437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ac1cb8d3
VS
29438 (exit $ac_status); }; } &&
29439 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29441 (eval $ac_try) 2>&5
29442 ac_status=$?
29443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29444 (exit $ac_status); }; }; then
29445 ac_cv_lib_bsd_gethostbyname=yes
29446else
29447 echo "$as_me: failed program was:" >&5
29448sed 's/^/| /' conftest.$ac_ext >&5
29449
29450ac_cv_lib_bsd_gethostbyname=no
29451fi
ac1cb8d3
VS
29452rm -f conftest.err conftest.$ac_objext \
29453 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29454LIBS=$ac_check_lib_save_LIBS
29455fi
29456echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
29457echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
29458if test $ac_cv_lib_bsd_gethostbyname = yes; then
29459 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
29460fi
29461
29462 fi
29463 fi
29464
29465 # lieder@skyler.mavd.honeywell.com says without -lsocket,
29466 # socket/setsockopt and other routines are undefined under SCO ODT
29467 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
29468 # on later versions), says Simon Leinen: it contains gethostby*
29469 # variants that don't use the name server (or something). -lsocket
29470 # must be given before -lnsl if both are needed. We assume that
29471 # if connect needs -lnsl, so does gethostbyname.
29472 echo "$as_me:$LINENO: checking for connect" >&5
29473echo $ECHO_N "checking for connect... $ECHO_C" >&6
29474if test "${ac_cv_func_connect+set}" = set; then
29475 echo $ECHO_N "(cached) $ECHO_C" >&6
29476else
29477 cat >conftest.$ac_ext <<_ACEOF
29478/* confdefs.h. */
29479_ACEOF
29480cat confdefs.h >>conftest.$ac_ext
29481cat >>conftest.$ac_ext <<_ACEOF
29482/* end confdefs.h. */
ac1cb8d3
VS
29483/* Define connect to an innocuous variant, in case <limits.h> declares connect.
29484 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29485#define connect innocuous_connect
29486
a848cd7e
SC
29487/* System header to define __stub macros and hopefully few prototypes,
29488 which can conflict with char connect (); below.
29489 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29490 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29491
a848cd7e
SC
29492#ifdef __STDC__
29493# include <limits.h>
29494#else
29495# include <assert.h>
29496#endif
ac1cb8d3
VS
29497
29498#undef connect
29499
a848cd7e
SC
29500/* Override any gcc2 internal prototype to avoid an error. */
29501#ifdef __cplusplus
29502extern "C"
29503{
29504#endif
29505/* We use char because int might match the return type of a gcc2
29506 builtin and then its argument prototype would still apply. */
29507char connect ();
29508/* The GNU C library defines this for functions which it implements
29509 to always fail with ENOSYS. Some functions are actually named
29510 something starting with __ and the normal name is an alias. */
29511#if defined (__stub_connect) || defined (__stub___connect)
29512choke me
29513#else
29514char (*f) () = connect;
29515#endif
29516#ifdef __cplusplus
29517}
29518#endif
29519
29520int
29521main ()
29522{
29523return f != connect;
29524 ;
29525 return 0;
29526}
29527_ACEOF
29528rm -f conftest.$ac_objext conftest$ac_exeext
29529if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29530 (eval $ac_link) 2>conftest.er1
a848cd7e 29531 ac_status=$?
ac1cb8d3
VS
29532 grep -v '^ *+' conftest.er1 >conftest.err
29533 rm -f conftest.er1
29534 cat conftest.err >&5
a848cd7e
SC
29535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29536 (exit $ac_status); } &&
c9a66001 29537 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29539 (eval $ac_try) 2>&5
29540 ac_status=$?
29541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29542 (exit $ac_status); }; } &&
29543 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29545 (eval $ac_try) 2>&5
29546 ac_status=$?
29547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29548 (exit $ac_status); }; }; then
29549 ac_cv_func_connect=yes
29550else
29551 echo "$as_me: failed program was:" >&5
29552sed 's/^/| /' conftest.$ac_ext >&5
29553
29554ac_cv_func_connect=no
29555fi
ac1cb8d3
VS
29556rm -f conftest.err conftest.$ac_objext \
29557 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29558fi
29559echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
29560echo "${ECHO_T}$ac_cv_func_connect" >&6
29561
29562 if test $ac_cv_func_connect = no; then
29563 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
29564echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
29565if test "${ac_cv_lib_socket_connect+set}" = set; then
29566 echo $ECHO_N "(cached) $ECHO_C" >&6
29567else
29568 ac_check_lib_save_LIBS=$LIBS
29569LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
29570cat >conftest.$ac_ext <<_ACEOF
29571/* confdefs.h. */
29572_ACEOF
29573cat confdefs.h >>conftest.$ac_ext
29574cat >>conftest.$ac_ext <<_ACEOF
29575/* end confdefs.h. */
29576
29577/* Override any gcc2 internal prototype to avoid an error. */
29578#ifdef __cplusplus
29579extern "C"
29580#endif
29581/* We use char because int might match the return type of a gcc2
29582 builtin and then its argument prototype would still apply. */
29583char connect ();
29584int
29585main ()
29586{
29587connect ();
29588 ;
29589 return 0;
29590}
29591_ACEOF
29592rm -f conftest.$ac_objext conftest$ac_exeext
29593if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29594 (eval $ac_link) 2>conftest.er1
a848cd7e 29595 ac_status=$?
ac1cb8d3
VS
29596 grep -v '^ *+' conftest.er1 >conftest.err
29597 rm -f conftest.er1
29598 cat conftest.err >&5
a848cd7e
SC
29599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29600 (exit $ac_status); } &&
c9a66001 29601 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29603 (eval $ac_try) 2>&5
29604 ac_status=$?
29605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29606 (exit $ac_status); }; } &&
29607 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29609 (eval $ac_try) 2>&5
29610 ac_status=$?
29611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29612 (exit $ac_status); }; }; then
29613 ac_cv_lib_socket_connect=yes
29614else
29615 echo "$as_me: failed program was:" >&5
29616sed 's/^/| /' conftest.$ac_ext >&5
29617
29618ac_cv_lib_socket_connect=no
29619fi
ac1cb8d3
VS
29620rm -f conftest.err conftest.$ac_objext \
29621 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29622LIBS=$ac_check_lib_save_LIBS
29623fi
29624echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
29625echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
29626if test $ac_cv_lib_socket_connect = yes; then
29627 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
29628fi
29629
29630 fi
29631
29632 # Guillermo Gomez says -lposix is necessary on A/UX.
29633 echo "$as_me:$LINENO: checking for remove" >&5
29634echo $ECHO_N "checking for remove... $ECHO_C" >&6
29635if test "${ac_cv_func_remove+set}" = set; then
29636 echo $ECHO_N "(cached) $ECHO_C" >&6
29637else
29638 cat >conftest.$ac_ext <<_ACEOF
29639/* confdefs.h. */
29640_ACEOF
29641cat confdefs.h >>conftest.$ac_ext
29642cat >>conftest.$ac_ext <<_ACEOF
29643/* end confdefs.h. */
ac1cb8d3
VS
29644/* Define remove to an innocuous variant, in case <limits.h> declares remove.
29645 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29646#define remove innocuous_remove
29647
a848cd7e
SC
29648/* System header to define __stub macros and hopefully few prototypes,
29649 which can conflict with char remove (); below.
29650 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29651 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29652
a848cd7e
SC
29653#ifdef __STDC__
29654# include <limits.h>
29655#else
29656# include <assert.h>
29657#endif
ac1cb8d3
VS
29658
29659#undef remove
29660
a848cd7e
SC
29661/* Override any gcc2 internal prototype to avoid an error. */
29662#ifdef __cplusplus
29663extern "C"
29664{
29665#endif
29666/* We use char because int might match the return type of a gcc2
29667 builtin and then its argument prototype would still apply. */
29668char remove ();
29669/* The GNU C library defines this for functions which it implements
29670 to always fail with ENOSYS. Some functions are actually named
29671 something starting with __ and the normal name is an alias. */
29672#if defined (__stub_remove) || defined (__stub___remove)
29673choke me
29674#else
29675char (*f) () = remove;
29676#endif
29677#ifdef __cplusplus
29678}
29679#endif
29680
29681int
29682main ()
29683{
29684return f != remove;
29685 ;
29686 return 0;
29687}
29688_ACEOF
29689rm -f conftest.$ac_objext conftest$ac_exeext
29690if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29691 (eval $ac_link) 2>conftest.er1
a848cd7e 29692 ac_status=$?
ac1cb8d3
VS
29693 grep -v '^ *+' conftest.er1 >conftest.err
29694 rm -f conftest.er1
29695 cat conftest.err >&5
a848cd7e
SC
29696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29697 (exit $ac_status); } &&
c9a66001 29698 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29700 (eval $ac_try) 2>&5
29701 ac_status=$?
29702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29703 (exit $ac_status); }; } &&
29704 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29706 (eval $ac_try) 2>&5
29707 ac_status=$?
29708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29709 (exit $ac_status); }; }; then
29710 ac_cv_func_remove=yes
29711else
29712 echo "$as_me: failed program was:" >&5
29713sed 's/^/| /' conftest.$ac_ext >&5
29714
29715ac_cv_func_remove=no
29716fi
ac1cb8d3
VS
29717rm -f conftest.err conftest.$ac_objext \
29718 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29719fi
29720echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
29721echo "${ECHO_T}$ac_cv_func_remove" >&6
29722
29723 if test $ac_cv_func_remove = no; then
29724 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
29725echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
29726if test "${ac_cv_lib_posix_remove+set}" = set; then
29727 echo $ECHO_N "(cached) $ECHO_C" >&6
29728else
29729 ac_check_lib_save_LIBS=$LIBS
29730LIBS="-lposix $LIBS"
29731cat >conftest.$ac_ext <<_ACEOF
29732/* confdefs.h. */
29733_ACEOF
29734cat confdefs.h >>conftest.$ac_ext
29735cat >>conftest.$ac_ext <<_ACEOF
29736/* end confdefs.h. */
29737
29738/* Override any gcc2 internal prototype to avoid an error. */
29739#ifdef __cplusplus
29740extern "C"
29741#endif
29742/* We use char because int might match the return type of a gcc2
29743 builtin and then its argument prototype would still apply. */
29744char remove ();
29745int
29746main ()
29747{
29748remove ();
29749 ;
29750 return 0;
29751}
29752_ACEOF
29753rm -f conftest.$ac_objext conftest$ac_exeext
29754if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29755 (eval $ac_link) 2>conftest.er1
a848cd7e 29756 ac_status=$?
ac1cb8d3
VS
29757 grep -v '^ *+' conftest.er1 >conftest.err
29758 rm -f conftest.er1
29759 cat conftest.err >&5
a848cd7e
SC
29760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29761 (exit $ac_status); } &&
c9a66001 29762 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29764 (eval $ac_try) 2>&5
29765 ac_status=$?
29766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29767 (exit $ac_status); }; } &&
29768 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29770 (eval $ac_try) 2>&5
29771 ac_status=$?
29772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29773 (exit $ac_status); }; }; then
29774 ac_cv_lib_posix_remove=yes
29775else
29776 echo "$as_me: failed program was:" >&5
29777sed 's/^/| /' conftest.$ac_ext >&5
29778
29779ac_cv_lib_posix_remove=no
29780fi
ac1cb8d3
VS
29781rm -f conftest.err conftest.$ac_objext \
29782 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29783LIBS=$ac_check_lib_save_LIBS
29784fi
29785echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
29786echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
29787if test $ac_cv_lib_posix_remove = yes; then
29788 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
29789fi
29790
29791 fi
29792
29793 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
29794 echo "$as_me:$LINENO: checking for shmat" >&5
29795echo $ECHO_N "checking for shmat... $ECHO_C" >&6
29796if test "${ac_cv_func_shmat+set}" = set; then
29797 echo $ECHO_N "(cached) $ECHO_C" >&6
29798else
29799 cat >conftest.$ac_ext <<_ACEOF
29800/* confdefs.h. */
29801_ACEOF
29802cat confdefs.h >>conftest.$ac_ext
29803cat >>conftest.$ac_ext <<_ACEOF
29804/* end confdefs.h. */
ac1cb8d3
VS
29805/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
29806 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29807#define shmat innocuous_shmat
29808
a848cd7e
SC
29809/* System header to define __stub macros and hopefully few prototypes,
29810 which can conflict with char shmat (); below.
29811 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29812 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29813
a848cd7e
SC
29814#ifdef __STDC__
29815# include <limits.h>
29816#else
29817# include <assert.h>
29818#endif
ac1cb8d3
VS
29819
29820#undef shmat
29821
a848cd7e
SC
29822/* Override any gcc2 internal prototype to avoid an error. */
29823#ifdef __cplusplus
29824extern "C"
29825{
29826#endif
29827/* We use char because int might match the return type of a gcc2
29828 builtin and then its argument prototype would still apply. */
29829char shmat ();
29830/* The GNU C library defines this for functions which it implements
29831 to always fail with ENOSYS. Some functions are actually named
29832 something starting with __ and the normal name is an alias. */
29833#if defined (__stub_shmat) || defined (__stub___shmat)
29834choke me
29835#else
29836char (*f) () = shmat;
29837#endif
29838#ifdef __cplusplus
29839}
29840#endif
29841
29842int
29843main ()
29844{
29845return f != shmat;
29846 ;
29847 return 0;
29848}
29849_ACEOF
29850rm -f conftest.$ac_objext conftest$ac_exeext
29851if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29852 (eval $ac_link) 2>conftest.er1
a848cd7e 29853 ac_status=$?
ac1cb8d3
VS
29854 grep -v '^ *+' conftest.er1 >conftest.err
29855 rm -f conftest.er1
29856 cat conftest.err >&5
a848cd7e
SC
29857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29858 (exit $ac_status); } &&
c9a66001 29859 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29861 (eval $ac_try) 2>&5
29862 ac_status=$?
29863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29864 (exit $ac_status); }; } &&
29865 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29867 (eval $ac_try) 2>&5
29868 ac_status=$?
29869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29870 (exit $ac_status); }; }; then
29871 ac_cv_func_shmat=yes
29872else
29873 echo "$as_me: failed program was:" >&5
29874sed 's/^/| /' conftest.$ac_ext >&5
29875
29876ac_cv_func_shmat=no
29877fi
ac1cb8d3
VS
29878rm -f conftest.err conftest.$ac_objext \
29879 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29880fi
29881echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
29882echo "${ECHO_T}$ac_cv_func_shmat" >&6
29883
29884 if test $ac_cv_func_shmat = no; then
29885 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
29886echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
29887if test "${ac_cv_lib_ipc_shmat+set}" = set; then
29888 echo $ECHO_N "(cached) $ECHO_C" >&6
29889else
29890 ac_check_lib_save_LIBS=$LIBS
29891LIBS="-lipc $LIBS"
29892cat >conftest.$ac_ext <<_ACEOF
29893/* confdefs.h. */
29894_ACEOF
29895cat confdefs.h >>conftest.$ac_ext
29896cat >>conftest.$ac_ext <<_ACEOF
29897/* end confdefs.h. */
29898
29899/* Override any gcc2 internal prototype to avoid an error. */
29900#ifdef __cplusplus
29901extern "C"
29902#endif
29903/* We use char because int might match the return type of a gcc2
29904 builtin and then its argument prototype would still apply. */
29905char shmat ();
29906int
29907main ()
29908{
29909shmat ();
29910 ;
29911 return 0;
29912}
29913_ACEOF
29914rm -f conftest.$ac_objext conftest$ac_exeext
29915if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29916 (eval $ac_link) 2>conftest.er1
a848cd7e 29917 ac_status=$?
ac1cb8d3
VS
29918 grep -v '^ *+' conftest.er1 >conftest.err
29919 rm -f conftest.er1
29920 cat conftest.err >&5
a848cd7e
SC
29921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29922 (exit $ac_status); } &&
c9a66001 29923 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29925 (eval $ac_try) 2>&5
29926 ac_status=$?
29927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29928 (exit $ac_status); }; } &&
29929 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29931 (eval $ac_try) 2>&5
29932 ac_status=$?
29933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29934 (exit $ac_status); }; }; then
29935 ac_cv_lib_ipc_shmat=yes
29936else
29937 echo "$as_me: failed program was:" >&5
29938sed 's/^/| /' conftest.$ac_ext >&5
29939
29940ac_cv_lib_ipc_shmat=no
29941fi
ac1cb8d3
VS
29942rm -f conftest.err conftest.$ac_objext \
29943 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29944LIBS=$ac_check_lib_save_LIBS
29945fi
29946echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
29947echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
29948if test $ac_cv_lib_ipc_shmat = yes; then
29949 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
29950fi
29951
29952 fi
29953 fi
29954
29955 # Check for libraries that X11R6 Xt/Xaw programs need.
29956 ac_save_LDFLAGS=$LDFLAGS
29957 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
29958 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
29959 # check for ICE first), but we must link in the order -lSM -lICE or
29960 # we get undefined symbols. So assume we have SM if we have ICE.
29961 # These have to be linked with before -lX11, unlike the other
29962 # libraries we check for below, so use a different variable.
29963 # John Interrante, Karl Berry
29964 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
29965echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
29966if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
29967 echo $ECHO_N "(cached) $ECHO_C" >&6
29968else
29969 ac_check_lib_save_LIBS=$LIBS
29970LIBS="-lICE $X_EXTRA_LIBS $LIBS"
29971cat >conftest.$ac_ext <<_ACEOF
29972/* confdefs.h. */
29973_ACEOF
29974cat confdefs.h >>conftest.$ac_ext
29975cat >>conftest.$ac_ext <<_ACEOF
29976/* end confdefs.h. */
29977
29978/* Override any gcc2 internal prototype to avoid an error. */
29979#ifdef __cplusplus
29980extern "C"
29981#endif
29982/* We use char because int might match the return type of a gcc2
29983 builtin and then its argument prototype would still apply. */
29984char IceConnectionNumber ();
29985int
29986main ()
29987{
29988IceConnectionNumber ();
29989 ;
29990 return 0;
29991}
29992_ACEOF
29993rm -f conftest.$ac_objext conftest$ac_exeext
29994if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29995 (eval $ac_link) 2>conftest.er1
a848cd7e 29996 ac_status=$?
ac1cb8d3
VS
29997 grep -v '^ *+' conftest.er1 >conftest.err
29998 rm -f conftest.er1
29999 cat conftest.err >&5
a848cd7e
SC
30000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30001 (exit $ac_status); } &&
c9a66001 30002 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30004 (eval $ac_try) 2>&5
30005 ac_status=$?
30006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30007 (exit $ac_status); }; } &&
30008 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30010 (eval $ac_try) 2>&5
30011 ac_status=$?
30012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30013 (exit $ac_status); }; }; then
30014 ac_cv_lib_ICE_IceConnectionNumber=yes
30015else
30016 echo "$as_me: failed program was:" >&5
30017sed 's/^/| /' conftest.$ac_ext >&5
30018
30019ac_cv_lib_ICE_IceConnectionNumber=no
30020fi
ac1cb8d3
VS
30021rm -f conftest.err conftest.$ac_objext \
30022 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30023LIBS=$ac_check_lib_save_LIBS
30024fi
30025echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
30026echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
30027if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
30028 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
30029fi
30030
30031 LDFLAGS=$ac_save_LDFLAGS
30032
30033fi
30034
30035
30036 if test "$no_x" = "yes"; then
89d90d6d
VZ
30037 { { echo "$as_me:$LINENO: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&5
30038echo "$as_me: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&2;}
30039 { (exit 1); exit 1; }; }
a848cd7e
SC
30040 fi
30041
74b84332
VS
30042 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
30043 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
a848cd7e
SC
30044 AFMINSTALL=afminstall
30045 COMPILED_X_PROGRAM=0
30046
74b84332
VS
30047 fi
30048
30049 if test "$wxUSE_X11" = 1; then
a848cd7e
SC
30050 if test "$wxUSE_NANOX" = "yes"; then
30051 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
30052echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
30053 if test "x$MICROWIN" = x ; then
30054 echo "$as_me:$LINENO: result: not found" >&5
30055echo "${ECHO_T}not found" >&6
30056 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
30057echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
30058 { (exit 1); exit 1; }; }
30059 else
30060 echo "$as_me:$LINENO: result: $MICROWIN" >&5
30061echo "${ECHO_T}$MICROWIN" >&6
30062 cat >>confdefs.h <<\_ACEOF
30063#define wxUSE_NANOX 1
30064_ACEOF
30065
30066 fi
30067 fi
30068
30069 if test "$wxUSE_UNICODE" = "yes"; then
30070
a848cd7e 30071
3ecd9f92
MW
30072if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
30073 if test -n "$ac_tool_prefix"; then
30074 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
30075set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
a848cd7e
SC
30076echo "$as_me:$LINENO: checking for $ac_word" >&5
30077echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
30078if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
30079 echo $ECHO_N "(cached) $ECHO_C" >&6
30080else
30081 case $PKG_CONFIG in
30082 [\\/]* | ?:[\\/]*)
30083 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
30084 ;;
30085 *)
30086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30087for as_dir in $PATH
30088do
30089 IFS=$as_save_IFS
30090 test -z "$as_dir" && as_dir=.
30091 for ac_exec_ext in '' $ac_executable_extensions; do
30092 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30093 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
30094 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30095 break 2
30096 fi
30097done
30098done
30099
a848cd7e
SC
30100 ;;
30101esac
30102fi
30103PKG_CONFIG=$ac_cv_path_PKG_CONFIG
30104
30105if test -n "$PKG_CONFIG"; then
30106 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
30107echo "${ECHO_T}$PKG_CONFIG" >&6
30108else
30109 echo "$as_me:$LINENO: result: no" >&5
30110echo "${ECHO_T}no" >&6
30111fi
30112
3ecd9f92
MW
30113fi
30114if test -z "$ac_cv_path_PKG_CONFIG"; then
30115 ac_pt_PKG_CONFIG=$PKG_CONFIG
30116 # Extract the first word of "pkg-config", so it can be a program name with args.
a848cd7e
SC
30117set dummy pkg-config; ac_word=$2
30118echo "$as_me:$LINENO: checking for $ac_word" >&5
30119echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3ecd9f92 30120if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
a848cd7e
SC
30121 echo $ECHO_N "(cached) $ECHO_C" >&6
30122else
3ecd9f92 30123 case $ac_pt_PKG_CONFIG in
a848cd7e 30124 [\\/]* | ?:[\\/]*)
3ecd9f92 30125 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
a848cd7e
SC
30126 ;;
30127 *)
30128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30129for as_dir in $PATH
30130do
30131 IFS=$as_save_IFS
30132 test -z "$as_dir" && as_dir=.
30133 for ac_exec_ext in '' $ac_executable_extensions; do
30134 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3ecd9f92 30135 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
a848cd7e
SC
30136 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30137 break 2
30138 fi
30139done
30140done
30141
a848cd7e
SC
30142 ;;
30143esac
30144fi
3ecd9f92 30145ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
a848cd7e 30146
3ecd9f92
MW
30147if test -n "$ac_pt_PKG_CONFIG"; then
30148 echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
30149echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
a848cd7e
SC
30150else
30151 echo "$as_me:$LINENO: result: no" >&5
30152echo "${ECHO_T}no" >&6
30153fi
30154
3ecd9f92
MW
30155 PKG_CONFIG=$ac_pt_PKG_CONFIG
30156else
30157 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
30158fi
a848cd7e 30159
3ecd9f92
MW
30160fi
30161if test -n "$PKG_CONFIG"; then
30162 _pkg_min_version=0.9.0
30163 echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
30164echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
30165 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
30166 echo "$as_me:$LINENO: result: yes" >&5
a848cd7e 30167echo "${ECHO_T}yes" >&6
3ecd9f92
MW
30168 else
30169 echo "$as_me:$LINENO: result: no" >&5
30170echo "${ECHO_T}no" >&6
30171 PKG_CONFIG=""
30172 fi
30173
30174fi
30175
30176pkg_failed=no
30177echo "$as_me:$LINENO: checking for PANGOX" >&5
30178echo $ECHO_N "checking for PANGOX... $ECHO_C" >&6
a848cd7e 30179
3ecd9f92
MW
30180if test -n "$PKG_CONFIG"; then
30181 if test -n "$PANGOX_CFLAGS"; then
30182 pkg_cv_PANGOX_CFLAGS="$PANGOX_CFLAGS"
30183 else
30184 if test -n "$PKG_CONFIG" && \
30185 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5
30186 ($PKG_CONFIG --exists --print-errors "pangox") 2>&5
30187 ac_status=$?
30188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30189 (exit $ac_status); }; then
30190 pkg_cv_PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox" 2>/dev/null`
30191else
30192 pkg_failed=yes
30193fi
30194 fi
30195else
30196 pkg_failed=untried
30197fi
30198if test -n "$PKG_CONFIG"; then
30199 if test -n "$PANGOX_LIBS"; then
30200 pkg_cv_PANGOX_LIBS="$PANGOX_LIBS"
30201 else
30202 if test -n "$PKG_CONFIG" && \
30203 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5
30204 ($PKG_CONFIG --exists --print-errors "pangox") 2>&5
30205 ac_status=$?
30206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30207 (exit $ac_status); }; then
30208 pkg_cv_PANGOX_LIBS=`$PKG_CONFIG --libs "pangox" 2>/dev/null`
30209else
30210 pkg_failed=yes
30211fi
30212 fi
30213else
30214 pkg_failed=untried
30215fi
30216
30217
30218
30219if test $pkg_failed = yes; then
30220
30221if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30222 _pkg_short_errors_supported=yes
30223else
30224 _pkg_short_errors_supported=no
30225fi
30226 if test $_pkg_short_errors_supported = yes; then
30227 PANGOX_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangox"`
30228 else
30229 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
a848cd7e 30230 fi
3ecd9f92
MW
30231 # Put the nasty error message in config.log where it belongs
30232 echo "$PANGOX_PKG_ERRORS" >&5
a848cd7e
SC
30233
30234
3ecd9f92
MW
30235 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
30236echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
30237 { (exit 1); exit 1; }; }
a848cd7e 30238
a848cd7e 30239
3ecd9f92 30240elif test $pkg_failed = untried; then
a848cd7e 30241
3ecd9f92
MW
30242 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
30243echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
30244 { (exit 1); exit 1; }; }
30245
30246
30247else
30248 PANGOX_CFLAGS=$pkg_cv_PANGOX_CFLAGS
30249 PANGOX_LIBS=$pkg_cv_PANGOX_LIBS
30250 echo "$as_me:$LINENO: result: yes" >&5
30251echo "${ECHO_T}yes" >&6
30252
30253 CXXFLAGS="$PANGOX_CFLAGS $CXXFLAGS"
30254 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
30255
30256fi
30257
30258pkg_failed=no
30259echo "$as_me:$LINENO: checking for PANGOFT2" >&5
30260echo $ECHO_N "checking for PANGOFT2... $ECHO_C" >&6
30261
30262if test -n "$PKG_CONFIG"; then
30263 if test -n "$PANGOFT2_CFLAGS"; then
30264 pkg_cv_PANGOFT2_CFLAGS="$PANGOFT2_CFLAGS"
30265 else
30266 if test -n "$PKG_CONFIG" && \
30267 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5
30268 ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
30269 ac_status=$?
30270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30271 (exit $ac_status); }; then
30272 pkg_cv_PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2" 2>/dev/null`
30273else
30274 pkg_failed=yes
30275fi
30276 fi
30277else
30278 pkg_failed=untried
30279fi
30280if test -n "$PKG_CONFIG"; then
30281 if test -n "$PANGOFT2_LIBS"; then
30282 pkg_cv_PANGOFT2_LIBS="$PANGOFT2_LIBS"
30283 else
30284 if test -n "$PKG_CONFIG" && \
30285 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5
30286 ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
30287 ac_status=$?
30288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30289 (exit $ac_status); }; then
30290 pkg_cv_PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2" 2>/dev/null`
30291else
30292 pkg_failed=yes
30293fi
30294 fi
30295else
30296 pkg_failed=untried
30297fi
30298
30299
30300
30301if test $pkg_failed = yes; then
30302
30303if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30304 _pkg_short_errors_supported=yes
30305else
30306 _pkg_short_errors_supported=no
30307fi
30308 if test $_pkg_short_errors_supported = yes; then
30309 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoft2"`
30310 else
30311 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
30312 fi
30313 # Put the nasty error message in config.log where it belongs
30314 echo "$PANGOFT2_PKG_ERRORS" >&5
a848cd7e 30315
a848cd7e
SC
30316
30317 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
30318echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
30319 wxUSE_PRINTING_ARCHITECTURE="no"
30320
30321
3ecd9f92 30322elif test $pkg_failed = untried; then
a848cd7e 30323
3ecd9f92
MW
30324 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
30325echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
30326 wxUSE_PRINTING_ARCHITECTURE="no"
a848cd7e 30327
a848cd7e 30328
a848cd7e 30329else
3ecd9f92
MW
30330 PANGOFT2_CFLAGS=$pkg_cv_PANGOFT2_CFLAGS
30331 PANGOFT2_LIBS=$pkg_cv_PANGOFT2_LIBS
30332 echo "$as_me:$LINENO: result: yes" >&5
30333echo "${ECHO_T}yes" >&6
30334
30335 CXXFLAGS="$PANGOFT2_CFLAGS $CXXFLAGS"
30336 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
a848cd7e 30337
a848cd7e 30338fi
3ecd9f92
MW
30339
30340pkg_failed=no
30341echo "$as_me:$LINENO: checking for PANGOXFT" >&5
30342echo $ECHO_N "checking for PANGOXFT... $ECHO_C" >&6
a848cd7e
SC
30343
30344if test -n "$PKG_CONFIG"; then
3ecd9f92
MW
30345 if test -n "$PANGOXFT_CFLAGS"; then
30346 pkg_cv_PANGOXFT_CFLAGS="$PANGOXFT_CFLAGS"
30347 else
30348 if test -n "$PKG_CONFIG" && \
30349 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5
30350 ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5
30351 ac_status=$?
30352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30353 (exit $ac_status); }; then
30354 pkg_cv_PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft" 2>/dev/null`
a848cd7e 30355else
3ecd9f92
MW
30356 pkg_failed=yes
30357fi
30358 fi
30359else
30360 pkg_failed=untried
30361fi
30362if test -n "$PKG_CONFIG"; then
30363 if test -n "$PANGOXFT_LIBS"; then
30364 pkg_cv_PANGOXFT_LIBS="$PANGOXFT_LIBS"
30365 else
30366 if test -n "$PKG_CONFIG" && \
30367 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5
30368 ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5
30369 ac_status=$?
30370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30371 (exit $ac_status); }; then
30372 pkg_cv_PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft" 2>/dev/null`
30373else
30374 pkg_failed=yes
30375fi
30376 fi
30377else
30378 pkg_failed=untried
a848cd7e
SC
30379fi
30380
a848cd7e 30381
a848cd7e 30382
3ecd9f92 30383if test $pkg_failed = yes; then
a848cd7e 30384
3ecd9f92
MW
30385if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30386 _pkg_short_errors_supported=yes
30387else
30388 _pkg_short_errors_supported=no
30389fi
30390 if test $_pkg_short_errors_supported = yes; then
30391 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoxft"`
30392 else
30393 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
a848cd7e 30394 fi
3ecd9f92
MW
30395 # Put the nasty error message in config.log where it belongs
30396 echo "$PANGOXFT_PKG_ERRORS" >&5
a848cd7e
SC
30397
30398
3ecd9f92
MW
30399 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
30400echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
30401
a848cd7e 30402
3ecd9f92 30403elif test $pkg_failed = untried; then
a848cd7e 30404
3ecd9f92
MW
30405 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
30406echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
30407
30408
30409else
30410 PANGOXFT_CFLAGS=$pkg_cv_PANGOXFT_CFLAGS
30411 PANGOXFT_LIBS=$pkg_cv_PANGOXFT_LIBS
30412 echo "$as_me:$LINENO: result: yes" >&5
30413echo "${ECHO_T}yes" >&6
a848cd7e 30414
4ae1af05
MB
30415 cat >>confdefs.h <<\_ACEOF
30416#define HAVE_PANGO_XFT 1
30417_ACEOF
30418
c92ad099 30419 CXXFLAGS="$PANGOXFT_CFLAGS $CXXFLAGS"
a848cd7e
SC
30420 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
30421
3ecd9f92 30422fi
e56f4f9e 30423 save_CXXFLAGS="$CXXFLAGS"
304205f1 30424 save_LIBS="$LIBS"
e56f4f9e 30425 CXXFLAGS="$PANGOX_CFLAGS $CXXFLAGS"
304205f1
VS
30426 LIBS="$LIBS $PANGOX_LIBS"
30427
30428for ac_func in pango_font_family_is_monospace
30429do
30430as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30431echo "$as_me:$LINENO: checking for $ac_func" >&5
30432echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30433if eval "test \"\${$as_ac_var+set}\" = set"; then
30434 echo $ECHO_N "(cached) $ECHO_C" >&6
30435else
30436 cat >conftest.$ac_ext <<_ACEOF
30437/* confdefs.h. */
30438_ACEOF
30439cat confdefs.h >>conftest.$ac_ext
30440cat >>conftest.$ac_ext <<_ACEOF
30441/* end confdefs.h. */
30442/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30443 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30444#define $ac_func innocuous_$ac_func
30445
30446/* System header to define __stub macros and hopefully few prototypes,
30447 which can conflict with char $ac_func (); below.
30448 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30449 <limits.h> exists even on freestanding compilers. */
30450
30451#ifdef __STDC__
30452# include <limits.h>
30453#else
30454# include <assert.h>
30455#endif
30456
30457#undef $ac_func
30458
30459/* Override any gcc2 internal prototype to avoid an error. */
30460#ifdef __cplusplus
30461extern "C"
30462{
30463#endif
30464/* We use char because int might match the return type of a gcc2
30465 builtin and then its argument prototype would still apply. */
30466char $ac_func ();
30467/* The GNU C library defines this for functions which it implements
30468 to always fail with ENOSYS. Some functions are actually named
30469 something starting with __ and the normal name is an alias. */
30470#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30471choke me
30472#else
30473char (*f) () = $ac_func;
30474#endif
30475#ifdef __cplusplus
30476}
30477#endif
30478
30479int
30480main ()
30481{
30482return f != $ac_func;
30483 ;
30484 return 0;
30485}
30486_ACEOF
30487rm -f conftest.$ac_objext conftest$ac_exeext
30488if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30489 (eval $ac_link) 2>conftest.er1
30490 ac_status=$?
30491 grep -v '^ *+' conftest.er1 >conftest.err
30492 rm -f conftest.er1
30493 cat conftest.err >&5
30494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30495 (exit $ac_status); } &&
c9a66001 30496 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
304205f1
VS
30497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30498 (eval $ac_try) 2>&5
30499 ac_status=$?
30500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30501 (exit $ac_status); }; } &&
30502 { ac_try='test -s conftest$ac_exeext'
30503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30504 (eval $ac_try) 2>&5
30505 ac_status=$?
30506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30507 (exit $ac_status); }; }; then
30508 eval "$as_ac_var=yes"
30509else
30510 echo "$as_me: failed program was:" >&5
30511sed 's/^/| /' conftest.$ac_ext >&5
30512
30513eval "$as_ac_var=no"
30514fi
30515rm -f conftest.err conftest.$ac_objext \
30516 conftest$ac_exeext conftest.$ac_ext
30517fi
30518echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30519echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30520if test `eval echo '${'$as_ac_var'}'` = yes; then
30521 cat >>confdefs.h <<_ACEOF
30522#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30523_ACEOF
30524
30525fi
30526done
30527
e56f4f9e 30528 CXXFLAGS="$save_CXXFLAGS"
304205f1 30529 LIBS="$save_LIBS"
a848cd7e
SC
30530 fi
30531
30532 wxUSE_UNIVERSAL="yes"
30533
30534 if test "$wxUSE_NANOX" = "yes"; then
30535 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
30536 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"
30537 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
30538 else
30539 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
30540 fi
30541
a848cd7e
SC
30542 TOOLKIT=X11
30543 GUIDIST=X11_DIST
30544 fi
30545
30546 if test "$wxUSE_MOTIF" = 1; then
0a08f02a
MB
30547 if test "$wxUSE_UNICODE" = "yes"; then
30548 { { echo "$as_me:$LINENO: error: Unicode configuration not supported with Motif" >&5
30549echo "$as_me: error: Unicode configuration not supported with Motif" >&2;}
30550 { (exit 1); exit 1; }; }
30551 fi
30552
74b84332
VS
30553 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
30554echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
a848cd7e 30555
74b84332
VS
30556ac_find_includes=
30557for ac_dir in $SEARCH_INCLUDE /usr/include;
30558 do
30559 if test -f "$ac_dir/Xm/Xm.h"; then
30560 ac_find_includes=$ac_dir
30561 break
30562 fi
30563 done
a848cd7e 30564
74b84332
VS
30565 if test "$ac_find_includes" != "" ; then
30566 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
30567echo "${ECHO_T}found in $ac_find_includes" >&6
30568
30569 if test "x$ac_find_includes" = "x/usr/include"; then
30570 ac_path_to_include=""
30571 else
30572 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
30573 result=$?
30574 if test $result = 0; then
30575 ac_path_to_include=""
30576 else
30577 ac_path_to_include=" -I$ac_find_includes"
30578 fi
a848cd7e
SC
30579 fi
30580
74b84332
VS
30581 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
30582 else
e56f4f9e
VZ
30583 save_CXXFLAGS=$CXXFLAGS
30584 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
e051b34e 30585
74b84332 30586 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
30587/* confdefs.h. */
30588_ACEOF
30589cat confdefs.h >>conftest.$ac_ext
30590cat >>conftest.$ac_ext <<_ACEOF
30591/* end confdefs.h. */
30592
74b84332
VS
30593 #include <Xm/Xm.h>
30594
a848cd7e
SC
30595int
30596main ()
30597{
30598
74b84332
VS
30599 int version;
30600 version = xmUseVersion;
30601
a848cd7e
SC
30602 ;
30603 return 0;
30604}
30605_ACEOF
74b84332
VS
30606rm -f conftest.$ac_objext
30607if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30608 (eval $ac_compile) 2>conftest.er1
a848cd7e 30609 ac_status=$?
ac1cb8d3
VS
30610 grep -v '^ *+' conftest.er1 >conftest.err
30611 rm -f conftest.er1
30612 cat conftest.err >&5
a848cd7e
SC
30613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30614 (exit $ac_status); } &&
c9a66001 30615 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30617 (eval $ac_try) 2>&5
30618 ac_status=$?
30619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30620 (exit $ac_status); }; } &&
74b84332 30621 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30623 (eval $ac_try) 2>&5
30624 ac_status=$?
30625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30626 (exit $ac_status); }; }; then
74b84332
VS
30627
30628 echo "$as_me:$LINENO: result: found in default search path" >&5
30629echo "${ECHO_T}found in default search path" >&6
30630 COMPILED_X_PROGRAM=1
30631
a848cd7e
SC
30632else
30633 echo "$as_me: failed program was:" >&5
30634sed 's/^/| /' conftest.$ac_ext >&5
30635
a848cd7e 30636
74b84332
VS
30637 echo "$as_me:$LINENO: result: no" >&5
30638echo "${ECHO_T}no" >&6
e051b34e
MW
30639 { { echo "$as_me:$LINENO: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&5
30640echo "$as_me: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&2;}
74b84332 30641 { (exit 1); exit 1; }; }
a848cd7e 30642
a848cd7e 30643
a848cd7e 30644fi
74b84332 30645rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e051b34e 30646
e56f4f9e 30647 CXXFLAGS=$save_CXXFLAGS
74b84332
VS
30648 fi
30649
0ad5d837
VZ
30650
30651 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
74b84332
VS
30652echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
30653
0ad5d837
VZ
30654 ac_find_libraries=
30655 for ac_dir in $SEARCH_LIB;
74b84332 30656 do
3eca31dc 30657 for ac_extension in a so sl dylib dll.a; do
74b84332
VS
30658 if test -f "$ac_dir/libXm.$ac_extension"; then
30659 ac_find_libraries=$ac_dir
30660 break 2
a848cd7e 30661 fi
74b84332
VS
30662 done
30663 done
a848cd7e 30664
0ad5d837
VZ
30665
30666 if test "x$ac_find_libraries" != "x" ; then
30667 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
30668echo "${ECHO_T}found in $ac_find_libraries" >&6
a848cd7e 30669
74b84332 30670
0ad5d837 30671 if test "$ac_find_libraries" = "default location"; then
74b84332 30672 ac_path_to_link=""
a848cd7e 30673 else
0ad5d837
VZ
30674 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
30675 result=$?
30676 if test $result = 0; then
30677 ac_path_to_link=""
30678 else
30679 ac_path_to_link=" -L$ac_find_libraries"
30680 fi
74b84332
VS
30681 fi
30682
0ad5d837
VZ
30683 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
30684 else
e56f4f9e
VZ
30685 save_CXXFLAGS=$CXXFLAGS
30686 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
6f9cf1e6
MW
30687 save_LIBS="$LIBS"
30688 LIBS="$GUI_TK_LIBRARY -lXm -lXmu -lXext -lX11"
74b84332 30689
0ad5d837 30690 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
30691/* confdefs.h. */
30692_ACEOF
30693cat confdefs.h >>conftest.$ac_ext
30694cat >>conftest.$ac_ext <<_ACEOF
30695/* end confdefs.h. */
30696
0ad5d837 30697 #include <Xm/Xm.h>
74b84332 30698
a848cd7e
SC
30699int
30700main ()
30701{
74b84332 30702
0ad5d837
VZ
30703 int version;
30704 version = xmUseVersion;
74b84332 30705
a848cd7e
SC
30706 ;
30707 return 0;
30708}
30709_ACEOF
0ad5d837
VZ
30710rm -f conftest.$ac_objext conftest$ac_exeext
30711if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30712 (eval $ac_link) 2>conftest.er1
a848cd7e 30713 ac_status=$?
ac1cb8d3
VS
30714 grep -v '^ *+' conftest.er1 >conftest.err
30715 rm -f conftest.er1
30716 cat conftest.err >&5
a848cd7e
SC
30717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30718 (exit $ac_status); } &&
c9a66001 30719 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30721 (eval $ac_try) 2>&5
30722 ac_status=$?
30723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30724 (exit $ac_status); }; } &&
0ad5d837 30725 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30727 (eval $ac_try) 2>&5
30728 ac_status=$?
30729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30730 (exit $ac_status); }; }; then
74b84332 30731
0ad5d837 30732 echo "$as_me:$LINENO: result: found in default search path" >&5
74b84332 30733echo "${ECHO_T}found in default search path" >&6
0ad5d837 30734 COMPILED_X_PROGRAM=1
74b84332 30735
a848cd7e
SC
30736else
30737 echo "$as_me: failed program was:" >&5
30738sed 's/^/| /' conftest.$ac_ext >&5
30739
74b84332 30740
6f9cf1e6 30741 echo "$as_me:$LINENO: result: no" >&5
74b84332 30742echo "${ECHO_T}no" >&6
6f9cf1e6 30743 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
74b84332
VS
30744echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
30745 { (exit 1); exit 1; }; }
30746
30747
30748fi
0ad5d837
VZ
30749rm -f conftest.err conftest.$ac_objext \
30750 conftest$ac_exeext conftest.$ac_ext
74b84332 30751
e56f4f9e 30752 CXXFLAGS=$save_CXXFLAGS
6f9cf1e6 30753 LIBS="$save_LIBS"
74b84332
VS
30754 fi
30755
30756 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
30757echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
30758 libp_link=""
30759 libsm_ice_link=""
30760 libs_found=0
30761 for libp in "" " -lXp"; do
30762 if test "$libs_found" = "0"; then
30763 for libsm_ice in "" " -lSM -lICE"; do
30764 if test "$libs_found" = "0"; then
30765 save_LIBS="$LIBS"
30766 LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
e56f4f9e
VZ
30767 save_CXXFLAGS=$CXXFLAGS
30768 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
74b84332
VS
30769
30770 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
30771/* confdefs.h. */
30772_ACEOF
30773cat confdefs.h >>conftest.$ac_ext
30774cat >>conftest.$ac_ext <<_ACEOF
30775/* end confdefs.h. */
30776
74b84332
VS
30777 #include <Xm/Xm.h>
30778 #include <Xm/List.h>
30779
a848cd7e
SC
30780int
30781main ()
30782{
74b84332
VS
30783
30784 XmString string = NULL;
30785 Widget w = NULL;
30786 int position = 0;
30787 XmListAddItem(w, string, position);
30788
a848cd7e
SC
30789 ;
30790 return 0;
30791}
30792_ACEOF
30793rm -f conftest.$ac_objext conftest$ac_exeext
30794if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30795 (eval $ac_link) 2>conftest.er1
a848cd7e 30796 ac_status=$?
ac1cb8d3
VS
30797 grep -v '^ *+' conftest.er1 >conftest.err
30798 rm -f conftest.er1
30799 cat conftest.err >&5
a848cd7e
SC
30800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30801 (exit $ac_status); } &&
c9a66001 30802 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30804 (eval $ac_try) 2>&5
30805 ac_status=$?
30806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30807 (exit $ac_status); }; } &&
30808 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30810 (eval $ac_try) 2>&5
30811 ac_status=$?
30812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30813 (exit $ac_status); }; }; then
30814
30815 libp_link="$libp"
30816 libsm_ice_link="$libsm_ice"
30817 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
30818echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
30819 libs_found=1
30820
30821else
30822 echo "$as_me: failed program was:" >&5
30823sed 's/^/| /' conftest.$ac_ext >&5
30824
30825
30826
30827fi
ac1cb8d3
VS
30828rm -f conftest.err conftest.$ac_objext \
30829 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30830
30831 LIBS="$save_LIBS"
e56f4f9e 30832 CXXFLAGS=$save_CXXFLAGS
a848cd7e
SC
30833 fi
30834 done
30835 fi
30836 done
30837
30838 if test "$libs_found" = "0"; then
30839 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
30840echo "${ECHO_T}can't find the right libraries" >&6
30841 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
30842echo "$as_me: error: can't link a simple motif program" >&2;}
30843 { (exit 1); exit 1; }; }
30844 fi
30845
62fa8b3a
MW
30846 echo "$as_me:$LINENO: checking for SgCreateList in -lSgm" >&5
30847echo $ECHO_N "checking for SgCreateList in -lSgm... $ECHO_C" >&6
30848if test "${ac_cv_lib_Sgm_SgCreateList+set}" = set; then
30849 echo $ECHO_N "(cached) $ECHO_C" >&6
30850else
30851 ac_check_lib_save_LIBS=$LIBS
30852LIBS="-lSgm $LIBS"
30853cat >conftest.$ac_ext <<_ACEOF
30854/* confdefs.h. */
30855_ACEOF
30856cat confdefs.h >>conftest.$ac_ext
30857cat >>conftest.$ac_ext <<_ACEOF
30858/* end confdefs.h. */
30859
30860/* Override any gcc2 internal prototype to avoid an error. */
30861#ifdef __cplusplus
30862extern "C"
30863#endif
30864/* We use char because int might match the return type of a gcc2
30865 builtin and then its argument prototype would still apply. */
30866char SgCreateList ();
30867int
30868main ()
30869{
30870SgCreateList ();
30871 ;
30872 return 0;
30873}
30874_ACEOF
30875rm -f conftest.$ac_objext conftest$ac_exeext
30876if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30877 (eval $ac_link) 2>conftest.er1
30878 ac_status=$?
30879 grep -v '^ *+' conftest.er1 >conftest.err
30880 rm -f conftest.er1
30881 cat conftest.err >&5
30882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30883 (exit $ac_status); } &&
c9a66001 30884 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
62fa8b3a
MW
30885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30886 (eval $ac_try) 2>&5
30887 ac_status=$?
30888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30889 (exit $ac_status); }; } &&
30890 { ac_try='test -s conftest$ac_exeext'
30891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30892 (eval $ac_try) 2>&5
30893 ac_status=$?
30894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30895 (exit $ac_status); }; }; then
30896 ac_cv_lib_Sgm_SgCreateList=yes
30897else
30898 echo "$as_me: failed program was:" >&5
30899sed 's/^/| /' conftest.$ac_ext >&5
30900
30901ac_cv_lib_Sgm_SgCreateList=no
30902fi
30903rm -f conftest.err conftest.$ac_objext \
30904 conftest$ac_exeext conftest.$ac_ext
30905LIBS=$ac_check_lib_save_LIBS
30906fi
30907echo "$as_me:$LINENO: result: $ac_cv_lib_Sgm_SgCreateList" >&5
30908echo "${ECHO_T}$ac_cv_lib_Sgm_SgCreateList" >&6
30909if test $ac_cv_lib_Sgm_SgCreateList = yes; then
30910 libsgm_link=" -lSgm"
30911fi
30912
30913
e56f4f9e
VZ
30914 save_CXXFLAGS=$CXXFLAGS
30915 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
0ad5d837 30916
a848cd7e
SC
30917 echo "$as_me:$LINENO: checking for Motif 2" >&5
30918echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
0ad5d837
VZ
30919if test "${wx_cv_lib_motif2+set}" = set; then
30920 echo $ECHO_N "(cached) $ECHO_C" >&6
30921else
30922 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
30923/* confdefs.h. */
30924_ACEOF
30925cat confdefs.h >>conftest.$ac_ext
30926cat >>conftest.$ac_ext <<_ACEOF
30927/* end confdefs.h. */
30928
0ad5d837 30929 #include <Xm/Xm.h>
a848cd7e
SC
30930
30931int
30932main ()
30933{
30934
0ad5d837
VZ
30935 #if XmVersion < 2000
30936 Not Motif 2
30937 #endif
a848cd7e
SC
30938
30939 ;
30940 return 0;
30941}
30942_ACEOF
30943rm -f conftest.$ac_objext
30944if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30945 (eval $ac_compile) 2>conftest.er1
a848cd7e 30946 ac_status=$?
ac1cb8d3
VS
30947 grep -v '^ *+' conftest.er1 >conftest.err
30948 rm -f conftest.er1
30949 cat conftest.err >&5
a848cd7e
SC
30950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30951 (exit $ac_status); } &&
c9a66001 30952 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30954 (eval $ac_try) 2>&5
30955 ac_status=$?
30956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30957 (exit $ac_status); }; } &&
30958 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30960 (eval $ac_try) 2>&5
30961 ac_status=$?
30962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30963 (exit $ac_status); }; }; then
0ad5d837 30964 wx_cv_lib_motif2="yes"
a848cd7e
SC
30965else
30966 echo "$as_me: failed program was:" >&5
30967sed 's/^/| /' conftest.$ac_ext >&5
30968
0ad5d837
VZ
30969wx_cv_lib_motif2="no"
30970fi
30971rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30972fi
30973echo "$as_me:$LINENO: result: $wx_cv_lib_motif2" >&5
30974echo "${ECHO_T}$wx_cv_lib_motif2" >&6
30975 if test "$wx_cv_lib_motif2" = "yes"; then
30976 cat >>confdefs.h <<\_ACEOF
30977#define __WXMOTIF20__ 1
30978_ACEOF
a848cd7e 30979
0ad5d837
VZ
30980 else
30981 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
30982#define __WXMOTIF20__ 0
30983_ACEOF
30984
0ad5d837 30985 fi
2113bc77
MW
30986
30987 echo "$as_me:$LINENO: checking whether Motif is Lesstif" >&5
30988echo $ECHO_N "checking whether Motif is Lesstif... $ECHO_C" >&6
0ad5d837
VZ
30989if test "${wx_cv_lib_lesstif+set}" = set; then
30990 echo $ECHO_N "(cached) $ECHO_C" >&6
30991else
30992 cat >conftest.$ac_ext <<_ACEOF
2113bc77
MW
30993/* confdefs.h. */
30994_ACEOF
30995cat confdefs.h >>conftest.$ac_ext
30996cat >>conftest.$ac_ext <<_ACEOF
30997/* end confdefs.h. */
30998
0ad5d837 30999 #include <Xm/Xm.h>
2113bc77
MW
31000
31001int
31002main ()
31003{
31004
0ad5d837
VZ
31005 #if !defined(LesstifVersion) || LesstifVersion <= 0
31006 Not Lesstif
31007 #endif
2113bc77
MW
31008
31009 ;
31010 return 0;
31011}
31012_ACEOF
31013rm -f conftest.$ac_objext
31014if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31015 (eval $ac_compile) 2>conftest.er1
31016 ac_status=$?
31017 grep -v '^ *+' conftest.er1 >conftest.err
31018 rm -f conftest.er1
31019 cat conftest.err >&5
31020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31021 (exit $ac_status); } &&
c9a66001 31022 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2113bc77
MW
31023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31024 (eval $ac_try) 2>&5
31025 ac_status=$?
31026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31027 (exit $ac_status); }; } &&
31028 { ac_try='test -s conftest.$ac_objext'
31029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31030 (eval $ac_try) 2>&5
31031 ac_status=$?
31032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31033 (exit $ac_status); }; }; then
0ad5d837 31034 wx_cv_lib_lesstif="yes"
2113bc77
MW
31035else
31036 echo "$as_me: failed program was:" >&5
31037sed 's/^/| /' conftest.$ac_ext >&5
31038
0ad5d837
VZ
31039wx_cv_lib_lesstif="no"
31040fi
31041rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2113bc77 31042
0ad5d837
VZ
31043fi
31044echo "$as_me:$LINENO: result: $wx_cv_lib_lesstif" >&5
31045echo "${ECHO_T}$wx_cv_lib_lesstif" >&6
31046 if test "$wx_cv_lib_lesstif" = "yes"; then
31047 cat >>confdefs.h <<\_ACEOF
31048#define __WXLESSTIF__ 1
31049_ACEOF
31050
31051 else
31052 cat >>confdefs.h <<\_ACEOF
2113bc77
MW
31053#define __WXLESSTIF__ 0
31054_ACEOF
31055
0ad5d837 31056 fi
2113bc77 31057
e56f4f9e 31058 CXXFLAGS=$save_CXXFLAGS
a848cd7e 31059
62fa8b3a 31060 GUI_TK_LIBRARY="$GUI_TK_LIBRARY${libsgm_link} -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
a848cd7e
SC
31061 TOOLKIT=MOTIF
31062 GUIDIST=MOTIF_DIST
31063 fi
31064
74b84332 31065 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
a848cd7e
SC
31066 if test "$wxUSE_LIBXPM" = "sys"; then
31067 echo "$as_me:$LINENO: checking for Xpm library" >&5
31068echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
31069
0ad5d837
VZ
31070 ac_find_libraries=
31071 for ac_dir in $SEARCH_LIB;
a848cd7e 31072 do
3eca31dc 31073 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
31074 if test -f "$ac_dir/libXpm.$ac_extension"; then
31075 ac_find_libraries=$ac_dir
31076 break 2
31077 fi
31078 done
31079 done
31080
31081 if test "$ac_find_libraries" != "" ; then
31082
0ad5d837 31083 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
31084 ac_path_to_link=""
31085 else
0ad5d837
VZ
31086 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
31087 result=$?
31088 if test $result = 0; then
31089 ac_path_to_link=""
31090 else
31091 ac_path_to_link=" -L$ac_find_libraries"
31092 fi
a848cd7e
SC
31093 fi
31094
31095 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
0ad5d837
VZ
31096 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
31097echo "${ECHO_T}found in $ac_find_libraries" >&6
a848cd7e
SC
31098
31099 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
31100echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
31101if test "${wx_cv_x11_xpm_h+set}" = set; then
31102 echo $ECHO_N "(cached) $ECHO_C" >&6
31103else
31104
e56f4f9e
VZ
31105 save_CXXFLAGS=$CXXFLAGS
31106 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
a848cd7e
SC
31107
31108 cat >conftest.$ac_ext <<_ACEOF
31109/* confdefs.h. */
31110_ACEOF
31111cat confdefs.h >>conftest.$ac_ext
31112cat >>conftest.$ac_ext <<_ACEOF
31113/* end confdefs.h. */
31114
31115 #include <X11/xpm.h>
31116
31117int
31118main ()
31119{
31120
31121 int version;
31122 version = XpmLibraryVersion();
31123
31124 ;
31125 return 0;
31126}
31127_ACEOF
31128rm -f conftest.$ac_objext
31129if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31130 (eval $ac_compile) 2>conftest.er1
a848cd7e 31131 ac_status=$?
ac1cb8d3
VS
31132 grep -v '^ *+' conftest.er1 >conftest.err
31133 rm -f conftest.er1
31134 cat conftest.err >&5
a848cd7e
SC
31135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31136 (exit $ac_status); } &&
c9a66001 31137 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31139 (eval $ac_try) 2>&5
31140 ac_status=$?
31141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31142 (exit $ac_status); }; } &&
31143 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31145 (eval $ac_try) 2>&5
31146 ac_status=$?
31147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31148 (exit $ac_status); }; }; then
31149 wx_cv_x11_xpm_h=yes
31150else
31151 echo "$as_me: failed program was:" >&5
31152sed 's/^/| /' conftest.$ac_ext >&5
31153
31154wx_cv_x11_xpm_h=no
31155
31156fi
ac1cb8d3 31157rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 31158
e56f4f9e 31159 CXXFLAGS=$save_CXXFLAGS
a848cd7e
SC
31160
31161
31162fi
31163echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
31164echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
31165
31166 if test $wx_cv_x11_xpm_h = "yes"; then
31167 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
31168 cat >>confdefs.h <<\_ACEOF
31169#define wxHAVE_LIB_XPM 1
31170_ACEOF
31171
31172 else
31173 { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
31174echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
31175 fi
31176 fi
31177
31178 fi
31179
31180 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
31181echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
31182if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
31183 echo $ECHO_N "(cached) $ECHO_C" >&6
31184else
31185 ac_check_lib_save_LIBS=$LIBS
31186LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
31187cat >conftest.$ac_ext <<_ACEOF
31188/* confdefs.h. */
31189_ACEOF
31190cat confdefs.h >>conftest.$ac_ext
31191cat >>conftest.$ac_ext <<_ACEOF
31192/* end confdefs.h. */
31193
31194/* Override any gcc2 internal prototype to avoid an error. */
31195#ifdef __cplusplus
31196extern "C"
31197#endif
31198/* We use char because int might match the return type of a gcc2
31199 builtin and then its argument prototype would still apply. */
31200char XShapeQueryExtension ();
31201int
31202main ()
31203{
31204XShapeQueryExtension ();
31205 ;
31206 return 0;
31207}
31208_ACEOF
31209rm -f conftest.$ac_objext conftest$ac_exeext
31210if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31211 (eval $ac_link) 2>conftest.er1
a848cd7e 31212 ac_status=$?
ac1cb8d3
VS
31213 grep -v '^ *+' conftest.er1 >conftest.err
31214 rm -f conftest.er1
31215 cat conftest.err >&5
a848cd7e
SC
31216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31217 (exit $ac_status); } &&
c9a66001 31218 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31220 (eval $ac_try) 2>&5
31221 ac_status=$?
31222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31223 (exit $ac_status); }; } &&
31224 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31226 (eval $ac_try) 2>&5
31227 ac_status=$?
31228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31229 (exit $ac_status); }; }; then
31230 ac_cv_lib_Xext_XShapeQueryExtension=yes
31231else
31232 echo "$as_me: failed program was:" >&5
31233sed 's/^/| /' conftest.$ac_ext >&5
31234
31235ac_cv_lib_Xext_XShapeQueryExtension=no
31236fi
ac1cb8d3
VS
31237rm -f conftest.err conftest.$ac_objext \
31238 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31239LIBS=$ac_check_lib_save_LIBS
31240fi
31241echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
31242echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
31243if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
31244
31245 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
31246 wxHAVE_XEXT_LIB=1
31247
31248fi
31249
31250
31251 if test "$wxHAVE_XEXT_LIB" = 1; then
e56f4f9e
VZ
31252 save_CXXFLAGS="$CXXFLAGS"
31253 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
a848cd7e
SC
31254
31255 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
31256echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
31257 cat >conftest.$ac_ext <<_ACEOF
31258/* confdefs.h. */
31259_ACEOF
31260cat confdefs.h >>conftest.$ac_ext
31261cat >>conftest.$ac_ext <<_ACEOF
31262/* end confdefs.h. */
31263
31264 #include <X11/Xlib.h>
31265 #include <X11/extensions/shape.h>
31266
31267int
31268main ()
31269{
31270
31271 int dummy1, dummy2;
31272 XShapeQueryExtension((Display*)NULL,
31273 (int*)NULL, (int*)NULL);
31274
31275 ;
31276 return 0;
31277}
31278_ACEOF
31279rm -f conftest.$ac_objext
31280if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31281 (eval $ac_compile) 2>conftest.er1
a848cd7e 31282 ac_status=$?
ac1cb8d3
VS
31283 grep -v '^ *+' conftest.er1 >conftest.err
31284 rm -f conftest.er1
31285 cat conftest.err >&5
a848cd7e
SC
31286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31287 (exit $ac_status); } &&
c9a66001 31288 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31290 (eval $ac_try) 2>&5
31291 ac_status=$?
31292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31293 (exit $ac_status); }; } &&
31294 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31296 (eval $ac_try) 2>&5
31297 ac_status=$?
31298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31299 (exit $ac_status); }; }; then
31300
31301 cat >>confdefs.h <<\_ACEOF
31302#define HAVE_XSHAPE 1
31303_ACEOF
31304
31305 echo "$as_me:$LINENO: result: found" >&5
31306echo "${ECHO_T}found" >&6
31307
31308else
31309 echo "$as_me: failed program was:" >&5
31310sed 's/^/| /' conftest.$ac_ext >&5
31311
31312
31313 echo "$as_me:$LINENO: result: not found" >&5
31314echo "${ECHO_T}not found" >&6
31315
31316fi
ac1cb8d3 31317rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e56f4f9e 31318 CXXFLAGS="$save_CXXFLAGS"
a848cd7e
SC
31319
31320 fi
31321 fi
31322
31323 if test "$wxUSE_MAC" = 1; then
31324 echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
31325echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
31326 if test "$GCC" = yes; then
31327 echo "$as_me:$LINENO: result: gcc" >&5
31328echo "${ECHO_T}gcc" >&6
31329 CPPFLAGS_PASCAL="-fpascal-strings"
31330 elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
31331 echo "$as_me:$LINENO: result: xlc" >&5
31332echo "${ECHO_T}xlc" >&6
31333 CPPFLAGS_PASCAL="-qmacpstr"
31334 else
31335 echo "$as_me:$LINENO: result: none" >&5
31336echo "${ECHO_T}none" >&6
31337 fi
31338
1e9e8aba 31339 if test "x$wxUSE_UNIX" = "xyes"; then
c92ad099 31340 CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon $CPPFLAGS"
1e9e8aba 31341 else
c92ad099 31342 CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON $CPPFLAGS"
1e9e8aba 31343 fi
a848cd7e 31344
a848cd7e
SC
31345 TOOLKIT=MAC
31346 GUIDIST=MACX_DIST
dd21ced8 31347 WXBASEPORT="_carbon"
a848cd7e
SC
31348 fi
31349
31350 if test "$wxUSE_COCOA" = 1; then
a848cd7e
SC
31351 TOOLKIT=COCOA
31352 GUIDIST=COCOA_DIST
31353 fi
31354
31355 if test "$wxUSE_PM" = 1; then
31356 TOOLKIT=PM
de59c161
RD
31357 GUIDIST=PM_DIST
31358 echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
31359echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6
31360if test "${wx_cv_spbcdata+set}" = set; then
31361 echo $ECHO_N "(cached) $ECHO_C" >&6
31362else
31363
31364 cat >conftest.$ac_ext <<_ACEOF
de59c161
RD
31365/* confdefs.h. */
31366_ACEOF
31367cat confdefs.h >>conftest.$ac_ext
31368cat >>conftest.$ac_ext <<_ACEOF
31369/* end confdefs.h. */
31370
31371 #define INCL_PM
31372 #include <os2.h>
31373
31374int
31375main ()
31376{
31377
31378 SPBCDATA test;
31379
31380 ;
31381 return 0;
31382}
31383_ACEOF
31384rm -f conftest.$ac_objext
31385if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31386 (eval $ac_compile) 2>conftest.er1
de59c161 31387 ac_status=$?
ac1cb8d3
VS
31388 grep -v '^ *+' conftest.er1 >conftest.err
31389 rm -f conftest.er1
31390 cat conftest.err >&5
de59c161
RD
31391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31392 (exit $ac_status); } &&
c9a66001 31393 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31395 (eval $ac_try) 2>&5
31396 ac_status=$?
31397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31398 (exit $ac_status); }; } &&
31399 { ac_try='test -s conftest.$ac_objext'
de59c161
RD
31400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31401 (eval $ac_try) 2>&5
31402 ac_status=$?
31403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31404 (exit $ac_status); }; }; then
31405 wx_cv_spbcdata=yes
31406else
31407 echo "$as_me: failed program was:" >&5
31408sed 's/^/| /' conftest.$ac_ext >&5
31409
31410wx_cv_spbcdata=no
31411
31412fi
ac1cb8d3 31413rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
de59c161
RD
31414
31415
31416fi
31417echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
31418echo "${ECHO_T}$wx_cv_spbcdata" >&6
31419
31420 if test $wx_cv_spbcdata = "yes"; then
31421 cat >>confdefs.h <<\_ACEOF
31422#define HAVE_SPBCDATA 1
31423_ACEOF
31424
31425 fi
a848cd7e
SC
31426 fi
31427
31428 if test "$TOOLKIT" = "PM" ; then
31429 TOOLKIT_DIR="os2"
31430 else
31431 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
31432 fi
31433
a848cd7e 31434 if test "$wxUSE_UNIVERSAL" = "yes"; then
a848cd7e
SC
31435 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
31436 WIDGET_SET=univ
a848cd7e
SC
31437 fi
31438
31439 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
31440 DISTDIR="wx\$(TOOLKIT)"
31441else
31442 USE_GUI=0
31443
31444 TOOLKIT_DIR="base"
31445
31446 if test "$USE_WIN32" = 1 ; then
a848cd7e 31447 TOOLKIT="MSW"
a848cd7e
SC
31448 fi
31449
a848cd7e
SC
31450 GUIDIST="BASE_DIST"
31451 DISTDIR="wxBase"
31452fi
31453
31454
d12aef51
VZ
31455if test "$wxUSE_GUI" = "yes"; then
31456 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
31457
31458for ac_header in X11/Xlib.h
31459do
31460as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31461if eval "test \"\${$as_ac_Header+set}\" = set"; then
31462 echo "$as_me:$LINENO: checking for $ac_header" >&5
31463echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31464if eval "test \"\${$as_ac_Header+set}\" = set"; then
31465 echo $ECHO_N "(cached) $ECHO_C" >&6
31466fi
31467echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31468echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31469else
31470 # Is the header compilable?
31471echo "$as_me:$LINENO: checking $ac_header usability" >&5
31472echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31473cat >conftest.$ac_ext <<_ACEOF
31474/* confdefs.h. */
31475_ACEOF
31476cat confdefs.h >>conftest.$ac_ext
31477cat >>conftest.$ac_ext <<_ACEOF
31478/* end confdefs.h. */
31479$ac_includes_default
31480#include <$ac_header>
31481_ACEOF
31482rm -f conftest.$ac_objext
31483if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31484 (eval $ac_compile) 2>conftest.er1
31485 ac_status=$?
31486 grep -v '^ *+' conftest.er1 >conftest.err
31487 rm -f conftest.er1
31488 cat conftest.err >&5
31489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31490 (exit $ac_status); } &&
c9a66001 31491 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
d12aef51
VZ
31492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31493 (eval $ac_try) 2>&5
31494 ac_status=$?
31495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31496 (exit $ac_status); }; } &&
31497 { ac_try='test -s conftest.$ac_objext'
31498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31499 (eval $ac_try) 2>&5
31500 ac_status=$?
31501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31502 (exit $ac_status); }; }; then
31503 ac_header_compiler=yes
31504else
31505 echo "$as_me: failed program was:" >&5
31506sed 's/^/| /' conftest.$ac_ext >&5
31507
31508ac_header_compiler=no
31509fi
31510rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31511echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31512echo "${ECHO_T}$ac_header_compiler" >&6
31513
31514# Is the header present?
31515echo "$as_me:$LINENO: checking $ac_header presence" >&5
31516echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31517cat >conftest.$ac_ext <<_ACEOF
31518/* confdefs.h. */
31519_ACEOF
31520cat confdefs.h >>conftest.$ac_ext
31521cat >>conftest.$ac_ext <<_ACEOF
31522/* end confdefs.h. */
31523#include <$ac_header>
31524_ACEOF
31525if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31526 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31527 ac_status=$?
31528 grep -v '^ *+' conftest.er1 >conftest.err
31529 rm -f conftest.er1
31530 cat conftest.err >&5
31531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31532 (exit $ac_status); } >/dev/null; then
31533 if test -s conftest.err; then
5d7b7554
VZ
31534 ac_cpp_err=$ac_cxx_preproc_warn_flag
31535 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
d12aef51
VZ
31536 else
31537 ac_cpp_err=
31538 fi
31539else
31540 ac_cpp_err=yes
31541fi
31542if test -z "$ac_cpp_err"; then
31543 ac_header_preproc=yes
31544else
31545 echo "$as_me: failed program was:" >&5
31546sed 's/^/| /' conftest.$ac_ext >&5
31547
31548 ac_header_preproc=no
31549fi
31550rm -f conftest.err conftest.$ac_ext
31551echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31552echo "${ECHO_T}$ac_header_preproc" >&6
31553
31554# So? What about this header?
5d7b7554 31555case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
d12aef51
VZ
31556 yes:no: )
31557 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31558echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31559 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31560echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31561 ac_header_preproc=yes
31562 ;;
31563 no:yes:* )
31564 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31565echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31566 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31567echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31568 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31569echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31570 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31571echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
31572 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31573echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31574 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31575echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31576 (
31577 cat <<\_ASBOX
31578## ----------------------------------------- ##
31579## Report this to wx-dev@lists.wxwidgets.org ##
31580## ----------------------------------------- ##
31581_ASBOX
31582 ) |
31583 sed "s/^/$as_me: WARNING: /" >&2
31584 ;;
31585esac
31586echo "$as_me:$LINENO: checking for $ac_header" >&5
31587echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31588if eval "test \"\${$as_ac_Header+set}\" = set"; then
31589 echo $ECHO_N "(cached) $ECHO_C" >&6
31590else
31591 eval "$as_ac_Header=\$ac_header_preproc"
31592fi
31593echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31594echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31595
31596fi
31597if test `eval echo '${'$as_ac_Header'}'` = yes; then
31598 cat >>confdefs.h <<_ACEOF
31599#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31600_ACEOF
31601
31602fi
31603
31604done
31605
31606
31607for ac_header in X11/XKBlib.h
31608do
31609as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31610echo "$as_me:$LINENO: checking for $ac_header" >&5
31611echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31612if eval "test \"\${$as_ac_Header+set}\" = set"; then
31613 echo $ECHO_N "(cached) $ECHO_C" >&6
31614else
31615 cat >conftest.$ac_ext <<_ACEOF
31616/* confdefs.h. */
31617_ACEOF
31618cat confdefs.h >>conftest.$ac_ext
31619cat >>conftest.$ac_ext <<_ACEOF
31620/* end confdefs.h. */
31621
31622 #if HAVE_X11_XLIB_H
31623 #include <X11/Xlib.h>
31624 #endif
31625
31626
31627#include <$ac_header>
31628_ACEOF
31629rm -f conftest.$ac_objext
31630if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31631 (eval $ac_compile) 2>conftest.er1
31632 ac_status=$?
31633 grep -v '^ *+' conftest.er1 >conftest.err
31634 rm -f conftest.er1
31635 cat conftest.err >&5
31636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31637 (exit $ac_status); } &&
c9a66001 31638 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
d12aef51
VZ
31639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31640 (eval $ac_try) 2>&5
31641 ac_status=$?
31642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31643 (exit $ac_status); }; } &&
31644 { ac_try='test -s conftest.$ac_objext'
31645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31646 (eval $ac_try) 2>&5
31647 ac_status=$?
31648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31649 (exit $ac_status); }; }; then
31650 eval "$as_ac_Header=yes"
31651else
31652 echo "$as_me: failed program was:" >&5
31653sed 's/^/| /' conftest.$ac_ext >&5
31654
31655eval "$as_ac_Header=no"
31656fi
31657rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31658fi
31659echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31660echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31661if test `eval echo '${'$as_ac_Header'}'` = yes; then
31662 cat >>confdefs.h <<_ACEOF
31663#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31664_ACEOF
31665
31666fi
31667
31668done
31669
31670 fi
31671fi
31672
a848cd7e
SC
31673
31674
31675IODBC_C_SRC=""
31676
31677
31678if test "$TOOLKIT" != "MSW" ; then
31679
31680 if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
31681
31682 if test "${ac_cv_header_sql_h+set}" = set; then
31683 echo "$as_me:$LINENO: checking for sql.h" >&5
31684echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
31685if test "${ac_cv_header_sql_h+set}" = set; then
31686 echo $ECHO_N "(cached) $ECHO_C" >&6
31687fi
31688echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
31689echo "${ECHO_T}$ac_cv_header_sql_h" >&6
31690else
31691 # Is the header compilable?
31692echo "$as_me:$LINENO: checking sql.h usability" >&5
31693echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
31694cat >conftest.$ac_ext <<_ACEOF
31695/* confdefs.h. */
31696_ACEOF
31697cat confdefs.h >>conftest.$ac_ext
31698cat >>conftest.$ac_ext <<_ACEOF
31699/* end confdefs.h. */
31700$ac_includes_default
31701#include <sql.h>
31702_ACEOF
31703rm -f conftest.$ac_objext
31704if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31705 (eval $ac_compile) 2>conftest.er1
a848cd7e 31706 ac_status=$?
ac1cb8d3
VS
31707 grep -v '^ *+' conftest.er1 >conftest.err
31708 rm -f conftest.er1
31709 cat conftest.err >&5
a848cd7e
SC
31710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31711 (exit $ac_status); } &&
c9a66001 31712 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31714 (eval $ac_try) 2>&5
31715 ac_status=$?
31716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31717 (exit $ac_status); }; } &&
31718 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31720 (eval $ac_try) 2>&5
31721 ac_status=$?
31722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31723 (exit $ac_status); }; }; then
31724 ac_header_compiler=yes
31725else
31726 echo "$as_me: failed program was:" >&5
31727sed 's/^/| /' conftest.$ac_ext >&5
31728
31729ac_header_compiler=no
31730fi
ac1cb8d3 31731rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31732echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31733echo "${ECHO_T}$ac_header_compiler" >&6
31734
31735# Is the header present?
31736echo "$as_me:$LINENO: checking sql.h presence" >&5
31737echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
31738cat >conftest.$ac_ext <<_ACEOF
31739/* confdefs.h. */
31740_ACEOF
31741cat confdefs.h >>conftest.$ac_ext
31742cat >>conftest.$ac_ext <<_ACEOF
31743/* end confdefs.h. */
31744#include <sql.h>
31745_ACEOF
31746if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31747 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31748 ac_status=$?
31749 grep -v '^ *+' conftest.er1 >conftest.err
31750 rm -f conftest.er1
31751 cat conftest.err >&5
31752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31753 (exit $ac_status); } >/dev/null; then
31754 if test -s conftest.err; then
5d7b7554
VZ
31755 ac_cpp_err=$ac_cxx_preproc_warn_flag
31756 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
31757 else
31758 ac_cpp_err=
31759 fi
31760else
31761 ac_cpp_err=yes
31762fi
31763if test -z "$ac_cpp_err"; then
31764 ac_header_preproc=yes
31765else
31766 echo "$as_me: failed program was:" >&5
31767sed 's/^/| /' conftest.$ac_ext >&5
31768
31769 ac_header_preproc=no
31770fi
31771rm -f conftest.err conftest.$ac_ext
31772echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31773echo "${ECHO_T}$ac_header_preproc" >&6
31774
31775# So? What about this header?
5d7b7554 31776case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 31777 yes:no: )
a848cd7e
SC
31778 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
31779echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
31780 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
31781echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
31782 ac_header_preproc=yes
a848cd7e 31783 ;;
ac1cb8d3 31784 no:yes:* )
a848cd7e
SC
31785 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
31786echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
31787 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
31788echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
31789 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
31790echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
31791 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
31792echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
31793 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
31794echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
31795 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
31796echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
31797 (
31798 cat <<\_ASBOX
ac1cb8d3
VS
31799## ----------------------------------------- ##
31800## Report this to wx-dev@lists.wxwidgets.org ##
31801## ----------------------------------------- ##
a848cd7e
SC
31802_ASBOX
31803 ) |
31804 sed "s/^/$as_me: WARNING: /" >&2
31805 ;;
31806esac
31807echo "$as_me:$LINENO: checking for sql.h" >&5
31808echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
31809if test "${ac_cv_header_sql_h+set}" = set; then
31810 echo $ECHO_N "(cached) $ECHO_C" >&6
31811else
31812 ac_cv_header_sql_h=$ac_header_preproc
31813fi
31814echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
31815echo "${ECHO_T}$ac_cv_header_sql_h" >&6
31816
31817fi
31818if test $ac_cv_header_sql_h = yes; then
31819 found_sql_h=1
31820fi
31821
31822
31823 if test "x$found_sql_h" = "x1" ; then
31824 echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
31825echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
31826if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
31827 echo $ECHO_N "(cached) $ECHO_C" >&6
31828else
31829 ac_check_lib_save_LIBS=$LIBS
31830LIBS="-liodbc $LIBS"
31831cat >conftest.$ac_ext <<_ACEOF
31832/* confdefs.h. */
31833_ACEOF
31834cat confdefs.h >>conftest.$ac_ext
31835cat >>conftest.$ac_ext <<_ACEOF
31836/* end confdefs.h. */
31837
31838/* Override any gcc2 internal prototype to avoid an error. */
31839#ifdef __cplusplus
31840extern "C"
31841#endif
31842/* We use char because int might match the return type of a gcc2
31843 builtin and then its argument prototype would still apply. */
31844char SQLAllocEnv ();
31845int
31846main ()
31847{
31848SQLAllocEnv ();
31849 ;
31850 return 0;
31851}
31852_ACEOF
31853rm -f conftest.$ac_objext conftest$ac_exeext
31854if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31855 (eval $ac_link) 2>conftest.er1
a848cd7e 31856 ac_status=$?
ac1cb8d3
VS
31857 grep -v '^ *+' conftest.er1 >conftest.err
31858 rm -f conftest.er1
31859 cat conftest.err >&5
a848cd7e
SC
31860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31861 (exit $ac_status); } &&
c9a66001 31862 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31864 (eval $ac_try) 2>&5
31865 ac_status=$?
31866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31867 (exit $ac_status); }; } &&
31868 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31870 (eval $ac_try) 2>&5
31871 ac_status=$?
31872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31873 (exit $ac_status); }; }; then
31874 ac_cv_lib_iodbc_SQLAllocEnv=yes
31875else
31876 echo "$as_me: failed program was:" >&5
31877sed 's/^/| /' conftest.$ac_ext >&5
31878
31879ac_cv_lib_iodbc_SQLAllocEnv=no
31880fi
ac1cb8d3
VS
31881rm -f conftest.err conftest.$ac_objext \
31882 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31883LIBS=$ac_check_lib_save_LIBS
31884fi
31885echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
31886echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
31887if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
31888 ODBC_LINK=" -liodbc"
31889else
31890
31891 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
31892echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
31893if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
31894 echo $ECHO_N "(cached) $ECHO_C" >&6
31895else
31896 ac_check_lib_save_LIBS=$LIBS
31897LIBS="-lunixodbc $LIBS"
31898cat >conftest.$ac_ext <<_ACEOF
31899/* confdefs.h. */
31900_ACEOF
31901cat confdefs.h >>conftest.$ac_ext
31902cat >>conftest.$ac_ext <<_ACEOF
31903/* end confdefs.h. */
31904
31905/* Override any gcc2 internal prototype to avoid an error. */
31906#ifdef __cplusplus
31907extern "C"
31908#endif
31909/* We use char because int might match the return type of a gcc2
31910 builtin and then its argument prototype would still apply. */
31911char SQLAllocEnv ();
31912int
31913main ()
31914{
31915SQLAllocEnv ();
31916 ;
31917 return 0;
31918}
31919_ACEOF
31920rm -f conftest.$ac_objext conftest$ac_exeext
31921if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31922 (eval $ac_link) 2>conftest.er1
a848cd7e 31923 ac_status=$?
ac1cb8d3
VS
31924 grep -v '^ *+' conftest.er1 >conftest.err
31925 rm -f conftest.er1
31926 cat conftest.err >&5
a848cd7e
SC
31927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31928 (exit $ac_status); } &&
c9a66001 31929 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31931 (eval $ac_try) 2>&5
31932 ac_status=$?
31933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31934 (exit $ac_status); }; } &&
31935 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31937 (eval $ac_try) 2>&5
31938 ac_status=$?
31939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31940 (exit $ac_status); }; }; then
31941 ac_cv_lib_unixodbc_SQLAllocEnv=yes
31942else
31943 echo "$as_me: failed program was:" >&5
31944sed 's/^/| /' conftest.$ac_ext >&5
31945
31946ac_cv_lib_unixodbc_SQLAllocEnv=no
31947fi
ac1cb8d3
VS
31948rm -f conftest.err conftest.$ac_objext \
31949 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31950LIBS=$ac_check_lib_save_LIBS
31951fi
31952echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
31953echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
31954if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
31955 ODBC_LINK=" -lunixodbc"
31956else
31957
31958 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
31959echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
31960if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
31961 echo $ECHO_N "(cached) $ECHO_C" >&6
31962else
31963 ac_check_lib_save_LIBS=$LIBS
31964LIBS="-lodbc $LIBS"
31965cat >conftest.$ac_ext <<_ACEOF
31966/* confdefs.h. */
31967_ACEOF
31968cat confdefs.h >>conftest.$ac_ext
31969cat >>conftest.$ac_ext <<_ACEOF
31970/* end confdefs.h. */
31971
31972/* Override any gcc2 internal prototype to avoid an error. */
31973#ifdef __cplusplus
31974extern "C"
31975#endif
31976/* We use char because int might match the return type of a gcc2
31977 builtin and then its argument prototype would still apply. */
31978char SQLAllocEnv ();
31979int
31980main ()
31981{
31982SQLAllocEnv ();
31983 ;
31984 return 0;
31985}
31986_ACEOF
31987rm -f conftest.$ac_objext conftest$ac_exeext
31988if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31989 (eval $ac_link) 2>conftest.er1
a848cd7e 31990 ac_status=$?
ac1cb8d3
VS
31991 grep -v '^ *+' conftest.er1 >conftest.err
31992 rm -f conftest.er1
31993 cat conftest.err >&5
a848cd7e
SC
31994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31995 (exit $ac_status); } &&
c9a66001 31996 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31998 (eval $ac_try) 2>&5
31999 ac_status=$?
32000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32001 (exit $ac_status); }; } &&
32002 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32004 (eval $ac_try) 2>&5
32005 ac_status=$?
32006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32007 (exit $ac_status); }; }; then
32008 ac_cv_lib_odbc_SQLAllocEnv=yes
32009else
32010 echo "$as_me: failed program was:" >&5
32011sed 's/^/| /' conftest.$ac_ext >&5
32012
32013ac_cv_lib_odbc_SQLAllocEnv=no
32014fi
ac1cb8d3
VS
32015rm -f conftest.err conftest.$ac_objext \
32016 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32017LIBS=$ac_check_lib_save_LIBS
32018fi
32019echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
32020echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
32021if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
32022 ODBC_LINK=" -lodbc"
32023fi
32024
32025
32026fi
32027
32028
32029fi
32030
32031 fi
32032 if test "x$ODBC_LINK" = "x" ; then
32033 if test "$wxUSE_ODBC" = "sys" ; then
32034 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
32035echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
32036 { (exit 1); exit 1; }; }
32037 else
32038 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
32039echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
32040 wxUSE_ODBC=builtin
32041 fi
32042 else
32043 wxUSE_ODBC=sys
32044 fi
32045 fi
a848cd7e 32046
2da0c077
RD
32047 if test "$wxUSE_ODBC" = "builtin" ; then
32048 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
32049#define wxUSE_BUILTIN_IODBC 1
32050_ACEOF
32051
a848cd7e
SC
32052 fi
32053fi
32054
2da0c077
RD
32055if test "$wxUSE_ODBC" != "no" ; then
32056 cat >>confdefs.h <<\_ACEOF
32057#define wxUSE_ODBC 1
32058_ACEOF
32059
32060 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
32061
5ff751d6 32062 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_IODBC_"
2da0c077 32063fi
a848cd7e 32064
01cb68df 32065
a848cd7e 32066if test "$wxUSE_DISPLAY" = "yes"; then
2a5d7a98 32067 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
a848cd7e
SC
32068 echo "$as_me:$LINENO: checking for Xinerama" >&5
32069echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
32070
0ad5d837
VZ
32071 ac_find_libraries=
32072 for ac_dir in $SEARCH_LIB;
32073 do
32074 for ac_extension in a so sl dylib dll.a; do
32075 if test -f "$ac_dir/libXinerama.$ac_extension"; then
32076 ac_find_libraries=$ac_dir
32077 break 2
32078 fi
32079 done
32080 done
32081
a848cd7e
SC
32082 if test "$ac_find_libraries" != "" ; then
32083
0ad5d837 32084 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
32085 ac_path_to_link=""
32086 else
0ad5d837
VZ
32087 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
32088 result=$?
32089 if test $result = 0; then
32090 ac_path_to_link=""
32091 else
32092 ac_path_to_link=" -L$ac_find_libraries"
32093 fi
a848cd7e
SC
32094 fi
32095
32096 if test "$ac_path_to_link" != " -L/usr/lib" ; then
32097 LDFLAGS="$LDFLAGS $ac_path_to_link"
32098 fi
32099 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
32100 echo "$as_me:$LINENO: result: yes" >&5
32101echo "${ECHO_T}yes" >&6
32102
32103 echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
32104echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
32105
0ad5d837
VZ
32106 ac_find_libraries=
32107 for ac_dir in $SEARCH_LIB;
a848cd7e 32108 do
3eca31dc 32109 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
32110 if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
32111 ac_find_libraries=$ac_dir
32112 break 2
32113 fi
32114 done
32115 done
32116
32117 if test "$ac_find_libraries" != "" ; then
32118 echo "$as_me:$LINENO: result: yes" >&5
32119echo "${ECHO_T}yes" >&6
32120
32121for ac_header in X11/extensions/xf86vmode.h
32122do
32123as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32124echo "$as_me:$LINENO: checking for $ac_header" >&5
32125echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32126if eval "test \"\${$as_ac_Header+set}\" = set"; then
32127 echo $ECHO_N "(cached) $ECHO_C" >&6
32128else
32129 cat >conftest.$ac_ext <<_ACEOF
32130/* confdefs.h. */
32131_ACEOF
32132cat confdefs.h >>conftest.$ac_ext
32133cat >>conftest.$ac_ext <<_ACEOF
32134/* end confdefs.h. */
32135
32136 #if HAVE_X11_XLIB_H
32137 #include <X11/Xlib.h>
32138 #endif
32139
32140
32141#include <$ac_header>
32142_ACEOF
32143rm -f conftest.$ac_objext
32144if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32145 (eval $ac_compile) 2>conftest.er1
a848cd7e 32146 ac_status=$?
ac1cb8d3
VS
32147 grep -v '^ *+' conftest.er1 >conftest.err
32148 rm -f conftest.er1
32149 cat conftest.err >&5
a848cd7e
SC
32150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32151 (exit $ac_status); } &&
c9a66001 32152 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32154 (eval $ac_try) 2>&5
32155 ac_status=$?
32156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32157 (exit $ac_status); }; } &&
32158 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32160 (eval $ac_try) 2>&5
32161 ac_status=$?
32162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32163 (exit $ac_status); }; }; then
32164 eval "$as_ac_Header=yes"
32165else
32166 echo "$as_me: failed program was:" >&5
32167sed 's/^/| /' conftest.$ac_ext >&5
32168
32169eval "$as_ac_Header=no"
32170fi
ac1cb8d3 32171rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32172fi
32173echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32174echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32175if test `eval echo '${'$as_ac_Header'}'` = yes; then
32176 cat >>confdefs.h <<_ACEOF
32177#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32178_ACEOF
32179
32180 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
32181
32182fi
32183
32184done
32185
32186 else
32187 echo "$as_me:$LINENO: result: no" >&5
32188echo "${ECHO_T}no" >&6
32189 fi
32190
32191 else
32192 echo "$as_me:$LINENO: result: no" >&5
32193echo "${ECHO_T}no" >&6
dcc1b6ad
VS
32194 { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
32195echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
a848cd7e
SC
32196 wxUSE_DISPLAY="no"
32197 fi
01cb68df
RG
32198 elif test "$wxUSE_MSW" = 1; then
32199
e5efa97e 32200for ac_header in ddraw.h
01cb68df
RG
32201do
32202as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5294a27e 32203echo "$as_me:$LINENO: checking for $ac_header" >&5
01cb68df
RG
32204echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32205if eval "test \"\${$as_ac_Header+set}\" = set"; then
32206 echo $ECHO_N "(cached) $ECHO_C" >&6
01cb68df 32207else
5294a27e 32208 cat >conftest.$ac_ext <<_ACEOF
01cb68df
RG
32209/* confdefs.h. */
32210_ACEOF
32211cat confdefs.h >>conftest.$ac_ext
32212cat >>conftest.$ac_ext <<_ACEOF
32213/* end confdefs.h. */
5294a27e
VZ
32214#include <windows.h>
32215
01cb68df
RG
32216#include <$ac_header>
32217_ACEOF
32218rm -f conftest.$ac_objext
32219if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32220 (eval $ac_compile) 2>conftest.er1
01cb68df 32221 ac_status=$?
ac1cb8d3
VS
32222 grep -v '^ *+' conftest.er1 >conftest.err
32223 rm -f conftest.er1
32224 cat conftest.err >&5
01cb68df
RG
32225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32226 (exit $ac_status); } &&
c9a66001 32227 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32229 (eval $ac_try) 2>&5
32230 ac_status=$?
32231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32232 (exit $ac_status); }; } &&
32233 { ac_try='test -s conftest.$ac_objext'
01cb68df
RG
32234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32235 (eval $ac_try) 2>&5
32236 ac_status=$?
32237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32238 (exit $ac_status); }; }; then
5294a27e 32239 eval "$as_ac_Header=yes"
01cb68df
RG
32240else
32241 echo "$as_me: failed program was:" >&5
32242sed 's/^/| /' conftest.$ac_ext >&5
32243
5294a27e 32244eval "$as_ac_Header=no"
01cb68df 32245fi
ac1cb8d3 32246rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
01cb68df
RG
32247fi
32248echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32249echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
01cb68df
RG
32250if test `eval echo '${'$as_ac_Header'}'` = yes; then
32251 cat >>confdefs.h <<_ACEOF
32252#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32253_ACEOF
32254
01cb68df
RG
32255fi
32256
32257done
32258
a848cd7e
SC
32259 fi
32260fi
32261
32262
32263USE_OPENGL=0
32264if test "$wxUSE_OPENGL" = "yes"; then
32265 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
32266 OPENGL_LIBS="-framework OpenGL -framework AGL"
32267 elif test "$wxUSE_MSW" = 1; then
32268 OPENGL_LIBS="-lopengl32 -lglu32"
32269 else
32270
32271
32272ac_find_includes=
32273for ac_dir in $SEARCH_INCLUDE /usr/include;
32274 do
32275 if test -f "$ac_dir/GL/gl.h"; then
32276 ac_find_includes=$ac_dir
32277 break
32278 fi
32279 done
32280
32281 if test "$ac_find_includes" != "" ; then
32282 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
32283echo "${ECHO_T}found in $ac_find_includes" >&6
32284
32285 if test "x$ac_find_includes" = "x/usr/include"; then
32286 ac_path_to_include=""
32287 else
32288 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
32289 result=$?
32290 if test $result = 0; then
32291 ac_path_to_include=""
32292 else
32293 ac_path_to_include=" -I$ac_find_includes"
32294 fi
32295 fi
32296
c92ad099 32297 CPPFLAGS="$ac_path_to_include $CPPFLAGS"
a848cd7e
SC
32298 fi
32299
32300 if test "${ac_cv_header_GL_gl_h+set}" = set; then
32301 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
32302echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
32303if test "${ac_cv_header_GL_gl_h+set}" = set; then
32304 echo $ECHO_N "(cached) $ECHO_C" >&6
32305fi
32306echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
32307echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
32308else
32309 # Is the header compilable?
32310echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
32311echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
32312cat >conftest.$ac_ext <<_ACEOF
32313/* confdefs.h. */
32314_ACEOF
32315cat confdefs.h >>conftest.$ac_ext
32316cat >>conftest.$ac_ext <<_ACEOF
32317/* end confdefs.h. */
32318$ac_includes_default
32319#include <GL/gl.h>
32320_ACEOF
32321rm -f conftest.$ac_objext
32322if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32323 (eval $ac_compile) 2>conftest.er1
a848cd7e 32324 ac_status=$?
ac1cb8d3
VS
32325 grep -v '^ *+' conftest.er1 >conftest.err
32326 rm -f conftest.er1
32327 cat conftest.err >&5
a848cd7e
SC
32328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32329 (exit $ac_status); } &&
c9a66001 32330 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32332 (eval $ac_try) 2>&5
32333 ac_status=$?
32334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32335 (exit $ac_status); }; } &&
32336 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32338 (eval $ac_try) 2>&5
32339 ac_status=$?
32340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32341 (exit $ac_status); }; }; then
32342 ac_header_compiler=yes
32343else
32344 echo "$as_me: failed program was:" >&5
32345sed 's/^/| /' conftest.$ac_ext >&5
32346
32347ac_header_compiler=no
32348fi
ac1cb8d3 32349rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32350echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32351echo "${ECHO_T}$ac_header_compiler" >&6
32352
32353# Is the header present?
32354echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
32355echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
32356cat >conftest.$ac_ext <<_ACEOF
32357/* confdefs.h. */
32358_ACEOF
32359cat confdefs.h >>conftest.$ac_ext
32360cat >>conftest.$ac_ext <<_ACEOF
32361/* end confdefs.h. */
32362#include <GL/gl.h>
32363_ACEOF
32364if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32365 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32366 ac_status=$?
32367 grep -v '^ *+' conftest.er1 >conftest.err
32368 rm -f conftest.er1
32369 cat conftest.err >&5
32370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32371 (exit $ac_status); } >/dev/null; then
32372 if test -s conftest.err; then
5d7b7554
VZ
32373 ac_cpp_err=$ac_cxx_preproc_warn_flag
32374 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
32375 else
32376 ac_cpp_err=
32377 fi
32378else
32379 ac_cpp_err=yes
32380fi
32381if test -z "$ac_cpp_err"; then
32382 ac_header_preproc=yes
32383else
32384 echo "$as_me: failed program was:" >&5
32385sed 's/^/| /' conftest.$ac_ext >&5
32386
32387 ac_header_preproc=no
32388fi
32389rm -f conftest.err conftest.$ac_ext
32390echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32391echo "${ECHO_T}$ac_header_preproc" >&6
32392
32393# So? What about this header?
5d7b7554 32394case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 32395 yes:no: )
a848cd7e
SC
32396 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
32397echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
32398 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
32399echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
32400 ac_header_preproc=yes
a848cd7e 32401 ;;
ac1cb8d3 32402 no:yes:* )
a848cd7e
SC
32403 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
32404echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
32405 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
32406echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
32407 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
32408echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
32409 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
32410echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
32411 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
32412echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
32413 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
32414echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
32415 (
32416 cat <<\_ASBOX
ac1cb8d3
VS
32417## ----------------------------------------- ##
32418## Report this to wx-dev@lists.wxwidgets.org ##
32419## ----------------------------------------- ##
a848cd7e
SC
32420_ASBOX
32421 ) |
32422 sed "s/^/$as_me: WARNING: /" >&2
32423 ;;
32424esac
32425echo "$as_me:$LINENO: checking for GL/gl.h" >&5
32426echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
32427if test "${ac_cv_header_GL_gl_h+set}" = set; then
32428 echo $ECHO_N "(cached) $ECHO_C" >&6
32429else
32430 ac_cv_header_GL_gl_h=$ac_header_preproc
32431fi
32432echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
32433echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
32434
32435fi
32436if test $ac_cv_header_GL_gl_h = yes; then
32437
32438 found_gl=0
32439
32440 echo "$as_me:$LINENO: checking for -lGL" >&5
32441echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
32442
0ad5d837
VZ
32443 ac_find_libraries=
32444 for ac_dir in $SEARCH_LIB;
a848cd7e 32445 do
3eca31dc 32446 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
32447 if test -f "$ac_dir/libGL.$ac_extension"; then
32448 ac_find_libraries=$ac_dir
32449 break 2
32450 fi
32451 done
32452 done
32453
32454 if test "$ac_find_libraries" != "" ; then
69120ee4
VZ
32455 echo "$as_me:$LINENO: result: yes" >&5
32456echo "${ECHO_T}yes" >&6
32457
a848cd7e 32458
0ad5d837 32459 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
32460 ac_path_to_link=""
32461 else
0ad5d837
VZ
32462 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
32463 result=$?
32464 if test $result = 0; then
32465 ac_path_to_link=""
32466 else
32467 ac_path_to_link=" -L$ac_find_libraries"
32468 fi
a848cd7e
SC
32469 fi
32470
32471 if test "$ac_path_to_link" != " -L/usr/lib" ; then
32472 LDFLAGS_GL="$ac_path_to_link"
32473 fi
32474
69120ee4
VZ
32475 echo "$as_me:$LINENO: checking for -lGLU" >&5
32476echo $ECHO_N "checking for -lGLU... $ECHO_C" >&6
a848cd7e 32477
0ad5d837
VZ
32478 ac_find_libraries=
32479 for ac_dir in $SEARCH_LIB;
32480 do
32481 for ac_extension in a so sl dylib dll.a; do
32482 if test -f "$ac_dir/libGLU.$ac_extension"; then
32483 ac_find_libraries=$ac_dir
32484 break 2
32485 fi
32486 done
32487 done
32488
a848cd7e
SC
32489 if test "$ac_find_libraries" != "" ; then
32490
0ad5d837 32491 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
32492 ac_path_to_link=""
32493 else
0ad5d837
VZ
32494 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
32495 result=$?
32496 if test $result = 0; then
32497 ac_path_to_link=""
32498 else
32499 ac_path_to_link=" -L$ac_find_libraries"
32500 fi
a848cd7e
SC
32501 fi
32502
32503 if test "$ac_path_to_link" != " -L/usr/lib" -a \
32504 "$ac_path_to_link" != "$LDFLAGS_GL"; then
32505 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
32506 fi
32507
32508 found_gl=1
32509 OPENGL_LIBS="-lGL -lGLU"
32510 echo "$as_me:$LINENO: result: yes" >&5
32511echo "${ECHO_T}yes" >&6
69120ee4
VZ
32512 else
32513 echo "$as_me:$LINENO: result: no" >&5
32514echo "${ECHO_T}no" >&6
a848cd7e 32515 fi
69120ee4
VZ
32516 else
32517 echo "$as_me:$LINENO: result: no" >&5
32518echo "${ECHO_T}no" >&6
a848cd7e
SC
32519 fi
32520
32521 if test "$found_gl" != 1; then
a848cd7e
SC
32522 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
32523echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
32524
0ad5d837
VZ
32525 ac_find_libraries=
32526 for ac_dir in $SEARCH_LIB;
a848cd7e 32527 do
3eca31dc 32528 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
32529 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
32530 ac_find_libraries=$ac_dir
32531 break 2
32532 fi
32533 done
32534 done
32535
32536 if test "$ac_find_libraries" != "" ; then
32537
0ad5d837 32538 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
32539 ac_path_to_link=""
32540 else
0ad5d837
VZ
32541 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
32542 result=$?
32543 if test $result = 0; then
32544 ac_path_to_link=""
32545 else
32546 ac_path_to_link=" -L$ac_find_libraries"
32547 fi
a848cd7e
SC
32548 fi
32549
32550 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
32551 OPENGL_LIBS="-lMesaGL -lMesaGLU"
32552 echo "$as_me:$LINENO: result: yes" >&5
32553echo "${ECHO_T}yes" >&6
32554 else
32555 echo "$as_me:$LINENO: result: no" >&5
32556echo "${ECHO_T}no" >&6
32557 fi
32558 fi
32559
32560fi
32561
32562
32563
32564 if test "x$OPENGL_LIBS" = "x"; then
32565 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
32566echo "$as_me: error: OpenGL libraries not available" >&2;}
32567 { (exit 1); exit 1; }; }
32568 fi
32569 fi
32570
32571 if test "$wxUSE_OPENGL" = "yes"; then
32572 USE_OPENGL=1
32573 cat >>confdefs.h <<\_ACEOF
32574#define wxUSE_OPENGL 1
32575_ACEOF
32576
32577 cat >>confdefs.h <<\_ACEOF
32578#define wxUSE_GLCANVAS 1
32579_ACEOF
32580
32581 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
32582 fi
32583fi
32584
a848cd7e
SC
32585
32586if test -n "$TOOLKIT" ; then
32587 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
32588fi
32589
a848cd7e
SC
32590
32591
32592if test "$wxUSE_SHARED" = "yes"; then
32593 case "${host}" in
32594 *-pc-msdosdjgpp )
32595 wxUSE_SHARED=no
32596 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
32597echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
32598 ;;
32599 esac
32600fi
32601
a848cd7e 32602if test "$wxUSE_SHARED" = "yes"; then
a848cd7e
SC
32603
32604
32605 found_versioning=no
32606
32607
32608 if test $found_versioning = no ; then
32609 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
32610echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
32611if test "${wx_cv_version_script+set}" = set; then
32612 echo $ECHO_N "(cached) $ECHO_C" >&6
32613else
32614
32615 echo "VER_1 { *; };" >conftest.sym
32616 echo "int main() { return 0; }" >conftest.cpp
32617
32618 if { ac_try='
32619 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
32620 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
32621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32622 (eval $ac_try) 2>&5
32623 ac_status=$?
32624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32625 (exit $ac_status); }; } ; then
32626 if test -s conftest.stderr ; then
32627 wx_cv_version_script=no
32628 else
32629 wx_cv_version_script=yes
32630 fi
32631 else
32632 wx_cv_version_script=no
32633 fi
e5d4b470
MW
32634
32635 if test $wx_cv_version_script = yes
32636 then
32637 echo "struct B { virtual ~B() { } }; \
32638 struct D : public B { }; \
32639 void F() { D d; }" > conftest.cpp
32640
32641 if { ac_try='
32642 $CXX -shared -fPIC -o conftest1.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
32643 -Wl,--version-script,conftest.sym >/dev/null 2>/dev/null'
32644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32645 (eval $ac_try) 2>&5
32646 ac_status=$?
32647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32648 (exit $ac_status); }; } &&
32649 { ac_try='
32650 $CXX -shared -fPIC -o conftest2.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
32651 -Wl,--version-script,conftest.sym conftest1.output >/dev/null 2>/dev/null'
32652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32653 (eval $ac_try) 2>&5
32654 ac_status=$?
32655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32656 (exit $ac_status); }; }
32657 then
32658 if { ac_try='
32659 $CXX -shared -fPIC -o conftest3.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
32660 -Wl,--version-script,conftest.sym conftest2.output conftest1.output >/dev/null 2>/dev/null'
32661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32662 (eval $ac_try) 2>&5
32663 ac_status=$?
32664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32665 (exit $ac_status); }; }
32666 then
32667 wx_cv_version_script=yes
32668 else
32669 wx_cv_version_script=no
32670 fi
32671 fi
32672 fi
32673
a848cd7e 32674 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
e5d4b470 32675 rm -f conftest1.output conftest2.output conftest3.output
a848cd7e
SC
32676
32677fi
32678echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
32679echo "${ECHO_T}$wx_cv_version_script" >&6
32680 if test $wx_cv_version_script = yes ; then
32681 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
32682 fi
32683 fi
32684
32685
32686 case "${host}" in
32687 *-*-linux* | *-*-gnu* )
32688 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 32689 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
6ebeb4c7 32690 ;;
a848cd7e
SC
32691
32692 *-*-solaris2* )
32693 if test "$GCC" = yes ; then
c92ad099 32694 CPPFLAGS="-isystem /usr/openwin/include $CPPFLAGS"
a848cd7e
SC
32695
32696 saveLdflags="$LDFLAGS"
32697 LDFLAGS="$saveLdflags -Wl,-rpath,/"
32698 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
32699echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
32700 cat >conftest.$ac_ext <<_ACEOF
32701/* confdefs.h. */
32702_ACEOF
32703cat confdefs.h >>conftest.$ac_ext
32704cat >>conftest.$ac_ext <<_ACEOF
32705/* end confdefs.h. */
32706
32707int
32708main ()
32709{
32710
32711 ;
32712 return 0;
32713}
32714_ACEOF
32715rm -f conftest.$ac_objext conftest$ac_exeext
32716if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32717 (eval $ac_link) 2>conftest.er1
a848cd7e 32718 ac_status=$?
ac1cb8d3
VS
32719 grep -v '^ *+' conftest.er1 >conftest.err
32720 rm -f conftest.er1
32721 cat conftest.err >&5
a848cd7e
SC
32722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32723 (exit $ac_status); } &&
c9a66001 32724 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32726 (eval $ac_try) 2>&5
32727 ac_status=$?
32728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32729 (exit $ac_status); }; } &&
32730 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32732 (eval $ac_try) 2>&5
32733 ac_status=$?
32734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32735 (exit $ac_status); }; }; then
32736
32737 echo "$as_me:$LINENO: result: yes" >&5
32738echo "${ECHO_T}yes" >&6
32739 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 32740 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
a848cd7e
SC
32741
32742else
32743 echo "$as_me: failed program was:" >&5
32744sed 's/^/| /' conftest.$ac_ext >&5
32745
32746
32747 echo "$as_me:$LINENO: result: no" >&5
32748echo "${ECHO_T}no" >&6
32749 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
32750echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
32751 LDFLAGS="$saveLdflags -Wl,-R,/"
32752 cat >conftest.$ac_ext <<_ACEOF
32753/* confdefs.h. */
32754_ACEOF
32755cat confdefs.h >>conftest.$ac_ext
32756cat >>conftest.$ac_ext <<_ACEOF
32757/* end confdefs.h. */
32758
32759int
32760main ()
32761{
32762
32763 ;
32764 return 0;
32765}
32766_ACEOF
32767rm -f conftest.$ac_objext conftest$ac_exeext
32768if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32769 (eval $ac_link) 2>conftest.er1
a848cd7e 32770 ac_status=$?
ac1cb8d3
VS
32771 grep -v '^ *+' conftest.er1 >conftest.err
32772 rm -f conftest.er1
32773 cat conftest.err >&5
a848cd7e
SC
32774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32775 (exit $ac_status); } &&
c9a66001 32776 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32778 (eval $ac_try) 2>&5
32779 ac_status=$?
32780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32781 (exit $ac_status); }; } &&
32782 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32784 (eval $ac_try) 2>&5
32785 ac_status=$?
32786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32787 (exit $ac_status); }; }; then
32788
ffa0583f 32789 echo "$as_me:$LINENO: result: yes" >&5
a848cd7e 32790echo "${ECHO_T}yes" >&6
ffa0583f
RL
32791 SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
32792 WXCONFIG_RPATH="-Wl,-R,\$libdir"
32793
a848cd7e
SC
32794else
32795 echo "$as_me: failed program was:" >&5
32796sed 's/^/| /' conftest.$ac_ext >&5
32797
32798
32799 echo "$as_me:$LINENO: result: no" >&5
32800echo "${ECHO_T}no" >&6
32801
32802fi
ac1cb8d3
VS
32803rm -f conftest.err conftest.$ac_objext \
32804 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32805
32806fi
ac1cb8d3
VS
32807rm -f conftest.err conftest.$ac_objext \
32808 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32809 LDFLAGS="$saveLdflags"
32810 else
a848cd7e 32811 SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
ffa0583f 32812 WXCONFIG_RPATH="-R\$libdir"
a848cd7e
SC
32813 fi
32814 ;;
32815
cfda0ea8 32816 *-*-darwin* )
0caebc27
MW
32817 install_name_tool=`which install_name_tool`
32818 if test "$install_name_tool" -a -x "$install_name_tool"; then
32819 SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
32820 cat <<EOF >change-install-names
a848cd7e
SC
32821#!/bin/sh
32822libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
32823inst_cmd="install_name_tool "
32824for i in \${libnames} ; do
32825 inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
32826done
32827\${inst_cmd} \${3}
32828EOF
0caebc27
MW
32829 chmod +x change-install-names
32830 fi
a848cd7e
SC
32831 ;;
32832
32833 *-*-cygwin* | *-*-mingw32* )
5ff751d6
VZ
32834 WXCONFIG_ONLY_CPPFLAGS="$WXCONFIG_ONLY_CPPFLAGS -DWXUSINGDLL"
32835 ;;
a848cd7e 32836
81f90336
MW
32837 *-*-hpux* )
32838 SAMPLES_RPATH_FLAG="-Wl,+b,\$(top_builddir)lib"
32839 WXCONFIG_RPATH="-Wl,+b,\$libdir"
5ff751d6 32840 ;;
81f90336 32841
a848cd7e 32842 esac
ceec2216 32843
ffa0583f
RL
32844 if test $wxUSE_RPATH = "no"; then
32845 SAMPLES_RPATH_FLAG=''
32846 SAMPLES_RPATH_POSTLINK=''
32847 WXCONFIG_RPATH=''
32848 fi
32849
32850 SHARED=1
32851
32852else
32853
ceec2216
RL
32854 config_linkage_component="-static"
32855 SHARED=0
ffa0583f 32856
ceec2216 32857fi
a848cd7e 32858
a848cd7e 32859
ceec2216
RL
32860UNICODE=0
32861lib_unicode_suffix=
32862WX_CHARTYPE="ansi"
32863if test "$wxUSE_UNICODE" = "yes"; then
32864 lib_unicode_suffix=u
32865 WX_CHARTYPE="unicode"
32866 UNICODE=1
a848cd7e
SC
32867fi
32868
ceec2216
RL
32869lib_debug_suffix=
32870WX_DEBUGTYPE="release"
32871DEBUG_FLAG=0
32872if test "$wxUSE_DEBUG_FLAG" = "yes"; then
32873 lib_debug_suffix=d
32874 WX_DEBUGTYPE="debug"
32875 DEBUG_FLAG=1
32876fi
a848cd7e 32877
ceec2216
RL
32878WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
32879WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
a848cd7e 32880
ceec2216
RL
32881DEBUG_INFO=0
32882if test "$wxUSE_DEBUG_INFO" = "yes"; then
32883 DEBUG_INFO=1
32884fi
a848cd7e 32885
ceec2216 32886WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
a848cd7e 32887
ceec2216 32888TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}"
a848cd7e 32889
ceec2216 32890TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
a848cd7e 32891
ceec2216
RL
32892if test "$cross_compiling" = "yes"; then
32893 HOST_SUFFIX="-$host_alias"
32894 TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX"
32895 TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME"
a848cd7e
SC
32896fi
32897
dd21ced8 32898WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
abc736fd
MW
32899if test "${TOOLKIT_DIR}" = "os2"; then
32900 WX_LIBRARY_BASENAME_GUI="wx_pm${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
32901else
32902 WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
32903fi
ceec2216
RL
32904
32905
32906
1d1af5ea
DE
32907if test "$wxUSE_COCOA" = 1; then
32908
32909
32910 ac_ext=c
32911ac_cpp='$CPP $CPPFLAGS'
32912ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32913ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32914ac_compiler_gnu=$ac_cv_c_compiler_gnu
32915
32916ac_ext=m
32917
32918 echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5
32919echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6
32920 cat >conftest.$ac_ext <<_ACEOF
32921/* confdefs.h. */
32922_ACEOF
32923cat confdefs.h >>conftest.$ac_ext
32924cat >>conftest.$ac_ext <<_ACEOF
32925/* end confdefs.h. */
32926#include <AppKit/NSEvent.h>
32927#include <CoreFoundation/CoreFoundation.h>
32928
32929int
32930main ()
32931{
32932
32933 ;
32934 return 0;
32935}
32936_ACEOF
32937rm -f conftest.$ac_objext
32938if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32939 (eval $ac_compile) 2>conftest.er1
32940 ac_status=$?
32941 grep -v '^ *+' conftest.er1 >conftest.err
32942 rm -f conftest.er1
32943 cat conftest.err >&5
32944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32945 (exit $ac_status); } &&
c9a66001 32946 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1d1af5ea
DE
32947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32948 (eval $ac_try) 2>&5
32949 ac_status=$?
32950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32951 (exit $ac_status); }; } &&
32952 { ac_try='test -s conftest.$ac_objext'
32953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32954 (eval $ac_try) 2>&5
32955 ac_status=$?
32956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32957 (exit $ac_status); }; }; then
32958 echo "$as_me:$LINENO: result: no" >&5
32959echo "${ECHO_T}no" >&6
32960else
32961 echo "$as_me: failed program was:" >&5
32962sed 's/^/| /' conftest.$ac_ext >&5
32963
32964echo "$as_me:$LINENO: result: yes" >&5
32965echo "${ECHO_T}yes" >&6
32966 echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5
32967echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6
32968 cat >conftest.$ac_ext <<_ACEOF
32969/* confdefs.h. */
32970_ACEOF
32971cat confdefs.h >>conftest.$ac_ext
32972cat >>conftest.$ac_ext <<_ACEOF
32973/* end confdefs.h. */
32974#define __Point__ 1
32975#include <AppKit/NSEvent.h>
32976#include <CoreFoundation/CoreFoundation.h>
32977
32978int
32979main ()
32980{
32981
32982 ;
32983 return 0;
32984}
32985_ACEOF
32986rm -f conftest.$ac_objext
32987if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32988 (eval $ac_compile) 2>conftest.er1
32989 ac_status=$?
32990 grep -v '^ *+' conftest.er1 >conftest.err
32991 rm -f conftest.er1
32992 cat conftest.err >&5
32993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32994 (exit $ac_status); } &&
c9a66001 32995 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1d1af5ea
DE
32996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32997 (eval $ac_try) 2>&5
32998 ac_status=$?
32999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33000 (exit $ac_status); }; } &&
33001 { ac_try='test -s conftest.$ac_objext'
33002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33003 (eval $ac_try) 2>&5
33004 ac_status=$?
33005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33006 (exit $ac_status); }; }; then
33007 echo "$as_me:$LINENO: result: yes" >&5
33008echo "${ECHO_T}yes" >&6
33009 cat >>confdefs.h <<\_ACEOF
33010#define __Point__ 1
33011_ACEOF
33012
33013
33014else
33015 echo "$as_me: failed program was:" >&5
33016sed 's/^/| /' conftest.$ac_ext >&5
33017
33018{ { echo "$as_me:$LINENO: error: no
33019See \`config.log' for more details." >&5
33020echo "$as_me: error: no
33021See \`config.log' for more details." >&2;}
33022 { (exit 1); exit 1; }; }
33023
33024fi
33025rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33026
33027fi
33028rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5d7b7554
VZ
33029 ac_ext=cc
33030ac_cpp='$CXXCPP $CPPFLAGS'
33031ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33032ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33033ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1d1af5ea
DE
33034
33035fi
33036
a848cd7e 33037if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
abb9aae7
VZ
33038 WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
33039 WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
ceec2216 33040
a848cd7e 33041 LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
a848cd7e
SC
33042
33043 # Extract the first word of "Rez", so it can be a program name with args.
33044set dummy Rez; ac_word=$2
33045echo "$as_me:$LINENO: checking for $ac_word" >&5
33046echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 33047if test "${ac_cv_prog_REZ+set}" = set; then
a848cd7e
SC
33048 echo $ECHO_N "(cached) $ECHO_C" >&6
33049else
8ced02f6
DE
33050 if test -n "$REZ"; then
33051 ac_cv_prog_REZ="$REZ" # Let the user override the test.
a848cd7e
SC
33052else
33053as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33054for as_dir in $PATH
33055do
33056 IFS=$as_save_IFS
33057 test -z "$as_dir" && as_dir=.
33058 for ac_exec_ext in '' $ac_executable_extensions; do
33059 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 33060 ac_cv_prog_REZ="Rez"
a848cd7e
SC
33061 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33062 break 2
33063 fi
33064done
33065done
33066
8ced02f6 33067 test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
a848cd7e
SC
33068fi
33069fi
8ced02f6
DE
33070REZ=$ac_cv_prog_REZ
33071if test -n "$REZ"; then
33072 echo "$as_me:$LINENO: result: $REZ" >&5
33073echo "${ECHO_T}$REZ" >&6
a848cd7e
SC
33074else
33075 echo "$as_me:$LINENO: result: no" >&5
33076echo "${ECHO_T}no" >&6
33077fi
33078
33079 # Extract the first word of "DeRez", so it can be a program name with args.
33080set dummy DeRez; ac_word=$2
33081echo "$as_me:$LINENO: checking for $ac_word" >&5
33082echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
33083if test "${ac_cv_prog_DEREZ+set}" = set; then
33084 echo $ECHO_N "(cached) $ECHO_C" >&6
33085else
33086 if test -n "$DEREZ"; then
33087 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
33088else
33089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33090for as_dir in $PATH
33091do
33092 IFS=$as_save_IFS
33093 test -z "$as_dir" && as_dir=.
33094 for ac_exec_ext in '' $ac_executable_extensions; do
33095 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33096 ac_cv_prog_DEREZ="DeRez"
33097 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33098 break 2
33099 fi
33100done
33101done
33102
33103 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
33104fi
33105fi
33106DEREZ=$ac_cv_prog_DEREZ
33107if test -n "$DEREZ"; then
33108 echo "$as_me:$LINENO: result: $DEREZ" >&5
33109echo "${ECHO_T}$DEREZ" >&6
33110else
33111 echo "$as_me:$LINENO: result: no" >&5
33112echo "${ECHO_T}no" >&6
33113fi
33114
33115 # Extract the first word of "SetFile", so it can be a program name with args.
33116set dummy SetFile; ac_word=$2
33117echo "$as_me:$LINENO: checking for $ac_word" >&5
33118echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
33119if test "${ac_cv_prog_SETFILE+set}" = set; then
33120 echo $ECHO_N "(cached) $ECHO_C" >&6
33121else
33122 if test -n "$SETFILE"; then
33123 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
33124else
33125as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33126for as_dir in $PATH
33127do
33128 IFS=$as_save_IFS
33129 test -z "$as_dir" && as_dir=.
33130 for ac_exec_ext in '' $ac_executable_extensions; do
33131 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33132 ac_cv_prog_SETFILE="SetFile"
33133 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33134 break 2
33135 fi
33136done
33137done
33138
33139 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
33140fi
33141fi
33142SETFILE=$ac_cv_prog_SETFILE
33143if test -n "$SETFILE"; then
33144 echo "$as_me:$LINENO: result: $SETFILE" >&5
33145echo "${ECHO_T}$SETFILE" >&6
33146else
33147 echo "$as_me:$LINENO: result: no" >&5
33148echo "${ECHO_T}no" >&6
33149fi
33150
33151
33152 MACSETFILE="\$(SETFILE)"
33153
33154 if test "$wxUSE_MAC" = 1; then
8ced02f6 33155 POSTLINK_COMMAND="\$(REZ) -d __DARWIN__ -t APPL Carbon.r -o"
004ee6da
RL
33156 RESCOMP="$REZ"
33157 WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL Carbon.r -o"
a848cd7e 33158 else
004ee6da
RL
33159 POSTLINK_COMMAND="echo -n | \$(REZ) -d __DARWIN__ -t APPL ${LIBWXMACRES}"
33160 RESCOMP="echo -n \| $REZ"
33161 WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL \$libdir/$WX_RESOURCES_MACOSX_ASCII"
a848cd7e 33162 fi
004ee6da 33163
a848cd7e 33164else
ffa0583f 33165 MACSETFILE="@true"
a848cd7e 33166
8ced02f6 33167 if test "$wxUSE_PM" = 1; then
004ee6da
RL
33168 RESCOMP="emxbind"
33169 WXCONFIG_RESFLAGS="-ep"
33170
33171 POSTLINK_COMMAND="$RESCOMP $WXCONFIG_RESFLAGS"
a848cd7e 33172 else
8ced02f6 33173 POSTLINK_COMMAND="@true"
a848cd7e 33174 fi
004ee6da 33175
a848cd7e
SC
33176fi
33177
33178
33179
33180echo "$as_me:$LINENO: checking for mode_t" >&5
33181echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
33182if test "${ac_cv_type_mode_t+set}" = set; then
33183 echo $ECHO_N "(cached) $ECHO_C" >&6
33184else
33185 cat >conftest.$ac_ext <<_ACEOF
33186/* confdefs.h. */
33187_ACEOF
33188cat confdefs.h >>conftest.$ac_ext
33189cat >>conftest.$ac_ext <<_ACEOF
33190/* end confdefs.h. */
33191$ac_includes_default
33192int
33193main ()
33194{
33195if ((mode_t *) 0)
33196 return 0;
33197if (sizeof (mode_t))
33198 return 0;
33199 ;
33200 return 0;
33201}
33202_ACEOF
33203rm -f conftest.$ac_objext
33204if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33205 (eval $ac_compile) 2>conftest.er1
a848cd7e 33206 ac_status=$?
ac1cb8d3
VS
33207 grep -v '^ *+' conftest.er1 >conftest.err
33208 rm -f conftest.er1
33209 cat conftest.err >&5
a848cd7e
SC
33210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33211 (exit $ac_status); } &&
c9a66001 33212 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33214 (eval $ac_try) 2>&5
33215 ac_status=$?
33216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33217 (exit $ac_status); }; } &&
33218 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33220 (eval $ac_try) 2>&5
33221 ac_status=$?
33222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33223 (exit $ac_status); }; }; then
33224 ac_cv_type_mode_t=yes
33225else
33226 echo "$as_me: failed program was:" >&5
33227sed 's/^/| /' conftest.$ac_ext >&5
33228
33229ac_cv_type_mode_t=no
33230fi
ac1cb8d3 33231rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33232fi
33233echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
33234echo "${ECHO_T}$ac_cv_type_mode_t" >&6
33235if test $ac_cv_type_mode_t = yes; then
33236 :
33237else
33238
33239cat >>confdefs.h <<_ACEOF
33240#define mode_t int
33241_ACEOF
33242
33243fi
33244
33245echo "$as_me:$LINENO: checking for off_t" >&5
33246echo $ECHO_N "checking for off_t... $ECHO_C" >&6
33247if test "${ac_cv_type_off_t+set}" = set; then
33248 echo $ECHO_N "(cached) $ECHO_C" >&6
33249else
33250 cat >conftest.$ac_ext <<_ACEOF
33251/* confdefs.h. */
33252_ACEOF
33253cat confdefs.h >>conftest.$ac_ext
33254cat >>conftest.$ac_ext <<_ACEOF
33255/* end confdefs.h. */
33256$ac_includes_default
33257int
33258main ()
33259{
33260if ((off_t *) 0)
33261 return 0;
33262if (sizeof (off_t))
33263 return 0;
33264 ;
33265 return 0;
33266}
33267_ACEOF
33268rm -f conftest.$ac_objext
33269if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33270 (eval $ac_compile) 2>conftest.er1
a848cd7e 33271 ac_status=$?
ac1cb8d3
VS
33272 grep -v '^ *+' conftest.er1 >conftest.err
33273 rm -f conftest.er1
33274 cat conftest.err >&5
a848cd7e
SC
33275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33276 (exit $ac_status); } &&
c9a66001 33277 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33279 (eval $ac_try) 2>&5
33280 ac_status=$?
33281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33282 (exit $ac_status); }; } &&
33283 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33285 (eval $ac_try) 2>&5
33286 ac_status=$?
33287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33288 (exit $ac_status); }; }; then
33289 ac_cv_type_off_t=yes
33290else
33291 echo "$as_me: failed program was:" >&5
33292sed 's/^/| /' conftest.$ac_ext >&5
33293
33294ac_cv_type_off_t=no
33295fi
ac1cb8d3 33296rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33297fi
33298echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
33299echo "${ECHO_T}$ac_cv_type_off_t" >&6
33300if test $ac_cv_type_off_t = yes; then
33301 :
33302else
33303
33304cat >>confdefs.h <<_ACEOF
33305#define off_t long
33306_ACEOF
33307
33308fi
33309
33310echo "$as_me:$LINENO: checking for pid_t" >&5
33311echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
33312if test "${ac_cv_type_pid_t+set}" = set; then
33313 echo $ECHO_N "(cached) $ECHO_C" >&6
33314else
33315 cat >conftest.$ac_ext <<_ACEOF
33316/* confdefs.h. */
33317_ACEOF
33318cat confdefs.h >>conftest.$ac_ext
33319cat >>conftest.$ac_ext <<_ACEOF
33320/* end confdefs.h. */
33321$ac_includes_default
33322int
33323main ()
33324{
33325if ((pid_t *) 0)
33326 return 0;
33327if (sizeof (pid_t))
33328 return 0;
33329 ;
33330 return 0;
33331}
33332_ACEOF
33333rm -f conftest.$ac_objext
33334if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33335 (eval $ac_compile) 2>conftest.er1
a848cd7e 33336 ac_status=$?
ac1cb8d3
VS
33337 grep -v '^ *+' conftest.er1 >conftest.err
33338 rm -f conftest.er1
33339 cat conftest.err >&5
a848cd7e
SC
33340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33341 (exit $ac_status); } &&
c9a66001 33342 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33344 (eval $ac_try) 2>&5
33345 ac_status=$?
33346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33347 (exit $ac_status); }; } &&
33348 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33350 (eval $ac_try) 2>&5
33351 ac_status=$?
33352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33353 (exit $ac_status); }; }; then
33354 ac_cv_type_pid_t=yes
33355else
33356 echo "$as_me: failed program was:" >&5
33357sed 's/^/| /' conftest.$ac_ext >&5
33358
33359ac_cv_type_pid_t=no
33360fi
ac1cb8d3 33361rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33362fi
33363echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
33364echo "${ECHO_T}$ac_cv_type_pid_t" >&6
33365if test $ac_cv_type_pid_t = yes; then
33366 :
33367else
33368
33369cat >>confdefs.h <<_ACEOF
33370#define pid_t int
33371_ACEOF
33372
33373fi
33374
33375echo "$as_me:$LINENO: checking for size_t" >&5
33376echo $ECHO_N "checking for size_t... $ECHO_C" >&6
33377if test "${ac_cv_type_size_t+set}" = set; then
33378 echo $ECHO_N "(cached) $ECHO_C" >&6
33379else
33380 cat >conftest.$ac_ext <<_ACEOF
33381/* confdefs.h. */
33382_ACEOF
33383cat confdefs.h >>conftest.$ac_ext
33384cat >>conftest.$ac_ext <<_ACEOF
33385/* end confdefs.h. */
33386$ac_includes_default
33387int
33388main ()
33389{
33390if ((size_t *) 0)
33391 return 0;
33392if (sizeof (size_t))
33393 return 0;
33394 ;
33395 return 0;
33396}
33397_ACEOF
33398rm -f conftest.$ac_objext
33399if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33400 (eval $ac_compile) 2>conftest.er1
a848cd7e 33401 ac_status=$?
ac1cb8d3
VS
33402 grep -v '^ *+' conftest.er1 >conftest.err
33403 rm -f conftest.er1
33404 cat conftest.err >&5
a848cd7e
SC
33405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33406 (exit $ac_status); } &&
c9a66001 33407 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33409 (eval $ac_try) 2>&5
33410 ac_status=$?
33411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33412 (exit $ac_status); }; } &&
33413 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33415 (eval $ac_try) 2>&5
33416 ac_status=$?
33417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33418 (exit $ac_status); }; }; then
33419 ac_cv_type_size_t=yes
33420else
33421 echo "$as_me: failed program was:" >&5
33422sed 's/^/| /' conftest.$ac_ext >&5
33423
33424ac_cv_type_size_t=no
33425fi
ac1cb8d3 33426rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33427fi
33428echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
33429echo "${ECHO_T}$ac_cv_type_size_t" >&6
33430if test $ac_cv_type_size_t = yes; then
33431 :
33432else
33433
33434cat >>confdefs.h <<_ACEOF
33435#define size_t unsigned
33436_ACEOF
33437
33438fi
33439
33440echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
33441echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
33442if test "${ac_cv_type_uid_t+set}" = set; then
33443 echo $ECHO_N "(cached) $ECHO_C" >&6
33444else
33445 cat >conftest.$ac_ext <<_ACEOF
33446/* confdefs.h. */
33447_ACEOF
33448cat confdefs.h >>conftest.$ac_ext
33449cat >>conftest.$ac_ext <<_ACEOF
33450/* end confdefs.h. */
33451#include <sys/types.h>
33452
33453_ACEOF
33454if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33455 $EGREP "uid_t" >/dev/null 2>&1; then
33456 ac_cv_type_uid_t=yes
33457else
33458 ac_cv_type_uid_t=no
33459fi
33460rm -f conftest*
33461
33462fi
33463echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
33464echo "${ECHO_T}$ac_cv_type_uid_t" >&6
33465if test $ac_cv_type_uid_t = no; then
33466
33467cat >>confdefs.h <<\_ACEOF
33468#define uid_t int
33469_ACEOF
33470
33471
33472cat >>confdefs.h <<\_ACEOF
33473#define gid_t int
33474_ACEOF
33475
33476fi
33477
33478
d51253e8
RL
33479echo "$as_me:$LINENO: checking for ssize_t" >&5
33480echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
33481if test "${ac_cv_type_ssize_t+set}" = set; then
33482 echo $ECHO_N "(cached) $ECHO_C" >&6
33483else
33484 cat >conftest.$ac_ext <<_ACEOF
33485/* confdefs.h. */
33486_ACEOF
33487cat confdefs.h >>conftest.$ac_ext
33488cat >>conftest.$ac_ext <<_ACEOF
33489/* end confdefs.h. */
33490$ac_includes_default
33491int
33492main ()
33493{
33494if ((ssize_t *) 0)
33495 return 0;
33496if (sizeof (ssize_t))
33497 return 0;
33498 ;
33499 return 0;
33500}
33501_ACEOF
33502rm -f conftest.$ac_objext
33503if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33504 (eval $ac_compile) 2>conftest.er1
33505 ac_status=$?
33506 grep -v '^ *+' conftest.er1 >conftest.err
33507 rm -f conftest.er1
33508 cat conftest.err >&5
33509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33510 (exit $ac_status); } &&
c9a66001 33511 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
d51253e8
RL
33512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33513 (eval $ac_try) 2>&5
33514 ac_status=$?
33515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33516 (exit $ac_status); }; } &&
33517 { ac_try='test -s conftest.$ac_objext'
33518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33519 (eval $ac_try) 2>&5
33520 ac_status=$?
33521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33522 (exit $ac_status); }; }; then
33523 ac_cv_type_ssize_t=yes
33524else
33525 echo "$as_me: failed program was:" >&5
33526sed 's/^/| /' conftest.$ac_ext >&5
33527
33528ac_cv_type_ssize_t=no
33529fi
33530rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33531fi
33532echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
33533echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
33534if test $ac_cv_type_ssize_t = yes; then
33535
33536cat >>confdefs.h <<_ACEOF
33537#define HAVE_SSIZE_T 1
33538_ACEOF
33539
33540
33541fi
33542
33543
a848cd7e
SC
33544echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
33545echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
33546if test "${wx_cv_size_t_is_uint+set}" = set; then
33547 echo $ECHO_N "(cached) $ECHO_C" >&6
33548else
33549
33550 cat >conftest.$ac_ext <<_ACEOF
33551/* confdefs.h. */
33552_ACEOF
33553cat confdefs.h >>conftest.$ac_ext
33554cat >>conftest.$ac_ext <<_ACEOF
33555/* end confdefs.h. */
33556#include <stddef.h>
33557int
33558main ()
33559{
33560
33561 return 0; }
33562
33563 struct Foo { void foo(size_t); void foo(unsigned int); };
33564
33565 int bar() {
33566
33567 ;
33568 return 0;
33569}
33570_ACEOF
33571rm -f conftest.$ac_objext
33572if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33573 (eval $ac_compile) 2>conftest.er1
a848cd7e 33574 ac_status=$?
ac1cb8d3
VS
33575 grep -v '^ *+' conftest.er1 >conftest.err
33576 rm -f conftest.er1
33577 cat conftest.err >&5
a848cd7e
SC
33578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33579 (exit $ac_status); } &&
c9a66001 33580 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33582 (eval $ac_try) 2>&5
33583 ac_status=$?
33584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33585 (exit $ac_status); }; } &&
33586 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33588 (eval $ac_try) 2>&5
33589 ac_status=$?
33590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33591 (exit $ac_status); }; }; then
33592 wx_cv_size_t_is_uint=no
33593else
33594 echo "$as_me: failed program was:" >&5
33595sed 's/^/| /' conftest.$ac_ext >&5
33596
33597wx_cv_size_t_is_uint=yes
33598
33599fi
ac1cb8d3 33600rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33601
33602
33603fi
33604echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
33605echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
33606
33607if test "$wx_cv_size_t_is_uint" = "yes"; then
33608 cat >>confdefs.h <<\_ACEOF
33609#define wxSIZE_T_IS_UINT 1
33610_ACEOF
33611
33612else
33613 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
33614echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
33615if test "${wx_cv_size_t_is_ulong+set}" = set; then
33616 echo $ECHO_N "(cached) $ECHO_C" >&6
33617else
33618 cat >conftest.$ac_ext <<_ACEOF
33619/* confdefs.h. */
33620_ACEOF
33621cat confdefs.h >>conftest.$ac_ext
33622cat >>conftest.$ac_ext <<_ACEOF
33623/* end confdefs.h. */
33624#include <stddef.h>
33625int
33626main ()
33627{
33628
33629 return 0; }
33630
33631 struct Foo { void foo(size_t); void foo(unsigned long); };
33632
33633 int bar() {
33634
33635 ;
33636 return 0;
33637}
33638_ACEOF
33639rm -f conftest.$ac_objext
33640if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33641 (eval $ac_compile) 2>conftest.er1
a848cd7e 33642 ac_status=$?
ac1cb8d3
VS
33643 grep -v '^ *+' conftest.er1 >conftest.err
33644 rm -f conftest.er1
33645 cat conftest.err >&5
a848cd7e
SC
33646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33647 (exit $ac_status); } &&
c9a66001 33648 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33650 (eval $ac_try) 2>&5
33651 ac_status=$?
33652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33653 (exit $ac_status); }; } &&
33654 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33656 (eval $ac_try) 2>&5
33657 ac_status=$?
33658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33659 (exit $ac_status); }; }; then
33660 wx_cv_size_t_is_ulong=no
33661else
33662 echo "$as_me: failed program was:" >&5
33663sed 's/^/| /' conftest.$ac_ext >&5
33664
33665wx_cv_size_t_is_ulong=yes
33666
33667fi
ac1cb8d3 33668rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33669
33670fi
33671echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
33672echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
33673
33674 if test "$wx_cv_size_t_is_ulong" = "yes"; then
33675 cat >>confdefs.h <<\_ACEOF
33676#define wxSIZE_T_IS_ULONG 1
33677_ACEOF
33678
33679 fi
33680fi
33681
a848cd7e
SC
33682
33683echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
33684echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
33685if test "${wx_cv_struct_pw_gecos+set}" = set; then
33686 echo $ECHO_N "(cached) $ECHO_C" >&6
33687else
33688
33689 cat >conftest.$ac_ext <<_ACEOF
33690/* confdefs.h. */
33691_ACEOF
33692cat confdefs.h >>conftest.$ac_ext
33693cat >>conftest.$ac_ext <<_ACEOF
33694/* end confdefs.h. */
33695#include <pwd.h>
33696int
33697main ()
33698{
33699
33700 char *p;
33701 struct passwd *pw;
33702 p = pw->pw_gecos;
33703
33704 ;
33705 return 0;
33706}
33707_ACEOF
33708rm -f conftest.$ac_objext
33709if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33710 (eval $ac_compile) 2>conftest.er1
a848cd7e 33711 ac_status=$?
ac1cb8d3
VS
33712 grep -v '^ *+' conftest.er1 >conftest.err
33713 rm -f conftest.er1
33714 cat conftest.err >&5
a848cd7e
SC
33715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33716 (exit $ac_status); } &&
c9a66001 33717 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33719 (eval $ac_try) 2>&5
33720 ac_status=$?
33721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33722 (exit $ac_status); }; } &&
33723 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33725 (eval $ac_try) 2>&5
33726 ac_status=$?
33727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33728 (exit $ac_status); }; }; then
33729
33730 wx_cv_struct_pw_gecos=yes
33731
33732else
33733 echo "$as_me: failed program was:" >&5
33734sed 's/^/| /' conftest.$ac_ext >&5
33735
33736
33737 wx_cv_struct_pw_gecos=no
33738
33739
33740fi
ac1cb8d3 33741rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33742
33743
33744fi
33745echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
33746echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
33747
33748if test "$wx_cv_struct_pw_gecos" = "yes"; then
33749 cat >>confdefs.h <<\_ACEOF
33750#define HAVE_PW_GECOS 1
33751_ACEOF
33752
33753fi
33754
33755
47a7e797 33756if test "$wxUSE_WCHAR_T" = "yes"; then
a848cd7e
SC
33757 cat >>confdefs.h <<\_ACEOF
33758#define wxUSE_WCHAR_T 1
33759_ACEOF
33760
33761
33762 WCSLEN_FOUND=0
33763 WCHAR_LINK=
33764
33765for ac_func in wcslen
33766do
33767as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33768echo "$as_me:$LINENO: checking for $ac_func" >&5
33769echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33770if eval "test \"\${$as_ac_var+set}\" = set"; then
33771 echo $ECHO_N "(cached) $ECHO_C" >&6
33772else
33773 cat >conftest.$ac_ext <<_ACEOF
33774/* confdefs.h. */
33775_ACEOF
33776cat confdefs.h >>conftest.$ac_ext
33777cat >>conftest.$ac_ext <<_ACEOF
33778/* end confdefs.h. */
ac1cb8d3
VS
33779/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33780 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33781#define $ac_func innocuous_$ac_func
33782
a848cd7e
SC
33783/* System header to define __stub macros and hopefully few prototypes,
33784 which can conflict with char $ac_func (); below.
33785 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33786 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33787
a848cd7e
SC
33788#ifdef __STDC__
33789# include <limits.h>
33790#else
33791# include <assert.h>
33792#endif
ac1cb8d3
VS
33793
33794#undef $ac_func
33795
a848cd7e
SC
33796/* Override any gcc2 internal prototype to avoid an error. */
33797#ifdef __cplusplus
33798extern "C"
33799{
33800#endif
33801/* We use char because int might match the return type of a gcc2
33802 builtin and then its argument prototype would still apply. */
33803char $ac_func ();
33804/* The GNU C library defines this for functions which it implements
33805 to always fail with ENOSYS. Some functions are actually named
33806 something starting with __ and the normal name is an alias. */
33807#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33808choke me
33809#else
33810char (*f) () = $ac_func;
33811#endif
33812#ifdef __cplusplus
33813}
33814#endif
33815
33816int
33817main ()
33818{
33819return f != $ac_func;
33820 ;
33821 return 0;
33822}
33823_ACEOF
33824rm -f conftest.$ac_objext conftest$ac_exeext
33825if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33826 (eval $ac_link) 2>conftest.er1
a848cd7e 33827 ac_status=$?
ac1cb8d3
VS
33828 grep -v '^ *+' conftest.er1 >conftest.err
33829 rm -f conftest.er1
33830 cat conftest.err >&5
a848cd7e
SC
33831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33832 (exit $ac_status); } &&
c9a66001 33833 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33835 (eval $ac_try) 2>&5
33836 ac_status=$?
33837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33838 (exit $ac_status); }; } &&
33839 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33841 (eval $ac_try) 2>&5
33842 ac_status=$?
33843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33844 (exit $ac_status); }; }; then
33845 eval "$as_ac_var=yes"
33846else
33847 echo "$as_me: failed program was:" >&5
33848sed 's/^/| /' conftest.$ac_ext >&5
33849
33850eval "$as_ac_var=no"
33851fi
ac1cb8d3
VS
33852rm -f conftest.err conftest.$ac_objext \
33853 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33854fi
33855echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33856echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33857if test `eval echo '${'$as_ac_var'}'` = yes; then
33858 cat >>confdefs.h <<_ACEOF
33859#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33860_ACEOF
33861 WCSLEN_FOUND=1
33862fi
33863done
33864
33865
33866 if test "$WCSLEN_FOUND" = 0; then
33867 if test "$TOOLKIT" = "MSW"; then
33868 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
33869echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
33870if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
33871 echo $ECHO_N "(cached) $ECHO_C" >&6
33872else
33873 ac_check_lib_save_LIBS=$LIBS
33874LIBS="-lmsvcrt $LIBS"
33875cat >conftest.$ac_ext <<_ACEOF
33876/* confdefs.h. */
33877_ACEOF
33878cat confdefs.h >>conftest.$ac_ext
33879cat >>conftest.$ac_ext <<_ACEOF
33880/* end confdefs.h. */
33881
33882/* Override any gcc2 internal prototype to avoid an error. */
33883#ifdef __cplusplus
33884extern "C"
33885#endif
33886/* We use char because int might match the return type of a gcc2
33887 builtin and then its argument prototype would still apply. */
33888char wcslen ();
33889int
33890main ()
33891{
33892wcslen ();
33893 ;
33894 return 0;
33895}
33896_ACEOF
33897rm -f conftest.$ac_objext conftest$ac_exeext
33898if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33899 (eval $ac_link) 2>conftest.er1
a848cd7e 33900 ac_status=$?
ac1cb8d3
VS
33901 grep -v '^ *+' conftest.er1 >conftest.err
33902 rm -f conftest.er1
33903 cat conftest.err >&5
a848cd7e
SC
33904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33905 (exit $ac_status); } &&
c9a66001 33906 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33908 (eval $ac_try) 2>&5
33909 ac_status=$?
33910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33911 (exit $ac_status); }; } &&
33912 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33914 (eval $ac_try) 2>&5
33915 ac_status=$?
33916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33917 (exit $ac_status); }; }; then
33918 ac_cv_lib_msvcrt_wcslen=yes
33919else
33920 echo "$as_me: failed program was:" >&5
33921sed 's/^/| /' conftest.$ac_ext >&5
33922
33923ac_cv_lib_msvcrt_wcslen=no
33924fi
ac1cb8d3
VS
33925rm -f conftest.err conftest.$ac_objext \
33926 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33927LIBS=$ac_check_lib_save_LIBS
33928fi
33929echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
33930echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
33931if test $ac_cv_lib_msvcrt_wcslen = yes; then
33932 WCHAR_OK=1
33933fi
33934
33935 else
33936 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
33937echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
33938if test "${ac_cv_lib_w_wcslen+set}" = set; then
33939 echo $ECHO_N "(cached) $ECHO_C" >&6
33940else
33941 ac_check_lib_save_LIBS=$LIBS
33942LIBS="-lw $LIBS"
33943cat >conftest.$ac_ext <<_ACEOF
33944/* confdefs.h. */
33945_ACEOF
33946cat confdefs.h >>conftest.$ac_ext
33947cat >>conftest.$ac_ext <<_ACEOF
33948/* end confdefs.h. */
33949
33950/* Override any gcc2 internal prototype to avoid an error. */
33951#ifdef __cplusplus
33952extern "C"
33953#endif
33954/* We use char because int might match the return type of a gcc2
33955 builtin and then its argument prototype would still apply. */
33956char wcslen ();
33957int
33958main ()
33959{
33960wcslen ();
33961 ;
33962 return 0;
33963}
33964_ACEOF
33965rm -f conftest.$ac_objext conftest$ac_exeext
33966if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33967 (eval $ac_link) 2>conftest.er1
a848cd7e 33968 ac_status=$?
ac1cb8d3
VS
33969 grep -v '^ *+' conftest.er1 >conftest.err
33970 rm -f conftest.er1
33971 cat conftest.err >&5
a848cd7e
SC
33972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33973 (exit $ac_status); } &&
c9a66001 33974 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33976 (eval $ac_try) 2>&5
33977 ac_status=$?
33978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33979 (exit $ac_status); }; } &&
33980 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33982 (eval $ac_try) 2>&5
33983 ac_status=$?
33984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33985 (exit $ac_status); }; }; then
33986 ac_cv_lib_w_wcslen=yes
33987else
33988 echo "$as_me: failed program was:" >&5
33989sed 's/^/| /' conftest.$ac_ext >&5
33990
33991ac_cv_lib_w_wcslen=no
33992fi
ac1cb8d3
VS
33993rm -f conftest.err conftest.$ac_objext \
33994 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33995LIBS=$ac_check_lib_save_LIBS
33996fi
33997echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
33998echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
33999if test $ac_cv_lib_w_wcslen = yes; then
34000
34001 WCHAR_LINK=" -lw"
34002 WCSLEN_FOUND=1
34003
34004fi
34005
34006 fi
34007 fi
34008
34009 if test "$WCSLEN_FOUND" = 1; then
34010 cat >>confdefs.h <<\_ACEOF
34011#define HAVE_WCSLEN 1
34012_ACEOF
34013
34014 fi
34015
efdf6afe 34016 if test "$USE_HPUX" = 1 -a "$GCC" != "yes"; then
c92ad099 34017 CPPFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CPPFLAGS"
473276a9
VS
34018 fi
34019
efdf6afe
VZ
34020 echo "$as_me:$LINENO: checking for mbstate_t" >&5
34021echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
34022if test "${ac_cv_type_mbstate_t+set}" = set; then
34023 echo $ECHO_N "(cached) $ECHO_C" >&6
34024else
34025 cat >conftest.$ac_ext <<_ACEOF
34026/* confdefs.h. */
34027_ACEOF
34028cat confdefs.h >>conftest.$ac_ext
34029cat >>conftest.$ac_ext <<_ACEOF
34030/* end confdefs.h. */
34031#include <wchar.h>
34032
34033int
34034main ()
34035{
34036if ((mbstate_t *) 0)
34037 return 0;
34038if (sizeof (mbstate_t))
34039 return 0;
34040 ;
34041 return 0;
34042}
34043_ACEOF
34044rm -f conftest.$ac_objext
34045if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34046 (eval $ac_compile) 2>conftest.er1
34047 ac_status=$?
34048 grep -v '^ *+' conftest.er1 >conftest.err
34049 rm -f conftest.er1
34050 cat conftest.err >&5
34051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34052 (exit $ac_status); } &&
c9a66001 34053 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
efdf6afe
VZ
34054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34055 (eval $ac_try) 2>&5
34056 ac_status=$?
34057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34058 (exit $ac_status); }; } &&
34059 { ac_try='test -s conftest.$ac_objext'
34060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34061 (eval $ac_try) 2>&5
34062 ac_status=$?
34063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34064 (exit $ac_status); }; }; then
34065 ac_cv_type_mbstate_t=yes
34066else
34067 echo "$as_me: failed program was:" >&5
34068sed 's/^/| /' conftest.$ac_ext >&5
34069
34070ac_cv_type_mbstate_t=no
34071fi
34072rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34073fi
34074echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
34075echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
34076if test $ac_cv_type_mbstate_t = yes; then
34077
34078cat >>confdefs.h <<_ACEOF
34079#define HAVE_MBSTATE_T 1
34080_ACEOF
34081
a848cd7e
SC
34082
34083for ac_func in wcsrtombs
34084do
34085as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34086echo "$as_me:$LINENO: checking for $ac_func" >&5
34087echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34088if eval "test \"\${$as_ac_var+set}\" = set"; then
34089 echo $ECHO_N "(cached) $ECHO_C" >&6
34090else
34091 cat >conftest.$ac_ext <<_ACEOF
34092/* confdefs.h. */
34093_ACEOF
34094cat confdefs.h >>conftest.$ac_ext
34095cat >>conftest.$ac_ext <<_ACEOF
34096/* end confdefs.h. */
ac1cb8d3
VS
34097/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34098 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34099#define $ac_func innocuous_$ac_func
34100
a848cd7e
SC
34101/* System header to define __stub macros and hopefully few prototypes,
34102 which can conflict with char $ac_func (); below.
34103 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34104 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34105
a848cd7e
SC
34106#ifdef __STDC__
34107# include <limits.h>
34108#else
34109# include <assert.h>
34110#endif
ac1cb8d3
VS
34111
34112#undef $ac_func
34113
a848cd7e
SC
34114/* Override any gcc2 internal prototype to avoid an error. */
34115#ifdef __cplusplus
34116extern "C"
34117{
34118#endif
34119/* We use char because int might match the return type of a gcc2
34120 builtin and then its argument prototype would still apply. */
34121char $ac_func ();
34122/* The GNU C library defines this for functions which it implements
34123 to always fail with ENOSYS. Some functions are actually named
34124 something starting with __ and the normal name is an alias. */
34125#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34126choke me
34127#else
34128char (*f) () = $ac_func;
34129#endif
34130#ifdef __cplusplus
34131}
34132#endif
34133
34134int
34135main ()
34136{
34137return f != $ac_func;
34138 ;
34139 return 0;
34140}
34141_ACEOF
34142rm -f conftest.$ac_objext conftest$ac_exeext
34143if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34144 (eval $ac_link) 2>conftest.er1
a848cd7e 34145 ac_status=$?
ac1cb8d3
VS
34146 grep -v '^ *+' conftest.er1 >conftest.err
34147 rm -f conftest.er1
34148 cat conftest.err >&5
a848cd7e
SC
34149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34150 (exit $ac_status); } &&
c9a66001 34151 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34153 (eval $ac_try) 2>&5
34154 ac_status=$?
34155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34156 (exit $ac_status); }; } &&
34157 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34159 (eval $ac_try) 2>&5
34160 ac_status=$?
34161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34162 (exit $ac_status); }; }; then
34163 eval "$as_ac_var=yes"
34164else
34165 echo "$as_me: failed program was:" >&5
34166sed 's/^/| /' conftest.$ac_ext >&5
34167
34168eval "$as_ac_var=no"
34169fi
ac1cb8d3
VS
34170rm -f conftest.err conftest.$ac_objext \
34171 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34172fi
34173echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34174echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34175if test `eval echo '${'$as_ac_var'}'` = yes; then
34176 cat >>confdefs.h <<_ACEOF
34177#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34178_ACEOF
34179
34180fi
34181done
34182
efdf6afe
VZ
34183fi
34184
a848cd7e
SC
34185else
34186 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
34187echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
34188fi
34189
a848cd7e 34190
4a767dd5
VZ
34191
34192for ac_func in snprintf vsnprintf
a848cd7e
SC
34193do
34194as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34195echo "$as_me:$LINENO: checking for $ac_func" >&5
34196echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34197if eval "test \"\${$as_ac_var+set}\" = set"; then
34198 echo $ECHO_N "(cached) $ECHO_C" >&6
34199else
34200 cat >conftest.$ac_ext <<_ACEOF
34201/* confdefs.h. */
34202_ACEOF
34203cat confdefs.h >>conftest.$ac_ext
34204cat >>conftest.$ac_ext <<_ACEOF
34205/* end confdefs.h. */
ac1cb8d3
VS
34206/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34207 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34208#define $ac_func innocuous_$ac_func
34209
a848cd7e
SC
34210/* System header to define __stub macros and hopefully few prototypes,
34211 which can conflict with char $ac_func (); below.
34212 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34213 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34214
a848cd7e
SC
34215#ifdef __STDC__
34216# include <limits.h>
34217#else
34218# include <assert.h>
34219#endif
ac1cb8d3
VS
34220
34221#undef $ac_func
34222
a848cd7e
SC
34223/* Override any gcc2 internal prototype to avoid an error. */
34224#ifdef __cplusplus
34225extern "C"
34226{
34227#endif
34228/* We use char because int might match the return type of a gcc2
34229 builtin and then its argument prototype would still apply. */
34230char $ac_func ();
34231/* The GNU C library defines this for functions which it implements
34232 to always fail with ENOSYS. Some functions are actually named
34233 something starting with __ and the normal name is an alias. */
34234#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34235choke me
34236#else
34237char (*f) () = $ac_func;
34238#endif
34239#ifdef __cplusplus
34240}
34241#endif
34242
34243int
34244main ()
34245{
34246return f != $ac_func;
34247 ;
34248 return 0;
34249}
34250_ACEOF
34251rm -f conftest.$ac_objext conftest$ac_exeext
34252if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34253 (eval $ac_link) 2>conftest.er1
a848cd7e 34254 ac_status=$?
ac1cb8d3
VS
34255 grep -v '^ *+' conftest.er1 >conftest.err
34256 rm -f conftest.er1
34257 cat conftest.err >&5
a848cd7e
SC
34258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34259 (exit $ac_status); } &&
c9a66001 34260 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34262 (eval $ac_try) 2>&5
34263 ac_status=$?
34264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34265 (exit $ac_status); }; } &&
34266 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34268 (eval $ac_try) 2>&5
34269 ac_status=$?
34270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34271 (exit $ac_status); }; }; then
34272 eval "$as_ac_var=yes"
34273else
34274 echo "$as_me: failed program was:" >&5
34275sed 's/^/| /' conftest.$ac_ext >&5
34276
34277eval "$as_ac_var=no"
34278fi
ac1cb8d3
VS
34279rm -f conftest.err conftest.$ac_objext \
34280 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34281fi
34282echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34283echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34284if test `eval echo '${'$as_ac_var'}'` = yes; then
34285 cat >>confdefs.h <<_ACEOF
34286#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34287_ACEOF
34288
34289fi
34290done
34291
34292
34293if test "$ac_cv_func_vsnprintf" = "yes"; then
34294 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
34295echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
34296if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
34297 echo $ECHO_N "(cached) $ECHO_C" >&6
34298else
34299
efdf6afe 34300 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
34301/* confdefs.h. */
34302_ACEOF
34303cat confdefs.h >>conftest.$ac_ext
34304cat >>conftest.$ac_ext <<_ACEOF
34305/* end confdefs.h. */
34306
34307 #include <stdio.h>
34308 #include <stdarg.h>
efdf6afe
VZ
34309 #ifdef __MSL__
34310 #if __MSL__ >= 0x6000
34311 namespace std {}
34312 using namespace std;
34313 #endif
34314 #endif
a848cd7e
SC
34315
34316int
34317main ()
34318{
34319
34320 char *buf;
34321 va_list ap;
62fa8b3a 34322 vsnprintf(buf, 10u, "%s", ap);
c122b164
DE
34323
34324 ;
34325 return 0;
34326}
34327_ACEOF
34328rm -f conftest.$ac_objext
34329if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34330 (eval $ac_compile) 2>conftest.er1
34331 ac_status=$?
34332 grep -v '^ *+' conftest.er1 >conftest.err
34333 rm -f conftest.er1
34334 cat conftest.err >&5
34335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34336 (exit $ac_status); } &&
c9a66001 34337 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
c122b164
DE
34338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34339 (eval $ac_try) 2>&5
34340 ac_status=$?
34341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34342 (exit $ac_status); }; } &&
34343 { ac_try='test -s conftest.$ac_objext'
34344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34345 (eval $ac_try) 2>&5
34346 ac_status=$?
34347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34348 (exit $ac_status); }; }; then
34349 wx_cv_func_vsnprintf_decl=yes
34350else
34351 echo "$as_me: failed program was:" >&5
34352sed 's/^/| /' conftest.$ac_ext >&5
34353
a848cd7e
SC
34354wx_cv_func_vsnprintf_decl=no
34355
34356fi
ac1cb8d3 34357rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34358
34359
34360fi
34361echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
34362echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
34363
34364 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
34365 cat >>confdefs.h <<\_ACEOF
34366#define HAVE_VSNPRINTF_DECL 1
34367_ACEOF
34368
62fa8b3a
MW
34369
34370 echo "$as_me:$LINENO: checking if vsnprintf declaration is broken" >&5
34371echo $ECHO_N "checking if vsnprintf declaration is broken... $ECHO_C" >&6
34372if test "${wx_cv_func_broken_vsnprintf_decl+set}" = set; then
34373 echo $ECHO_N "(cached) $ECHO_C" >&6
34374else
34375
34376 cat >conftest.$ac_ext <<_ACEOF
34377/* confdefs.h. */
34378_ACEOF
34379cat confdefs.h >>conftest.$ac_ext
34380cat >>conftest.$ac_ext <<_ACEOF
34381/* end confdefs.h. */
34382
34383 #include <stdio.h>
34384 #include <stdarg.h>
34385 #ifdef __MSL__
34386 #if __MSL__ >= 0x6000
34387 namespace std {}
34388 using namespace std;
34389 #endif
34390 #endif
34391
34392int
34393main ()
34394{
34395
34396 char *buf;
34397 va_list ap;
34398 const char *fmt = "%s";
34399 vsnprintf(buf, 10u, fmt, ap);
34400
34401 ;
34402 return 0;
34403}
34404_ACEOF
34405rm -f conftest.$ac_objext
34406if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34407 (eval $ac_compile) 2>conftest.er1
34408 ac_status=$?
34409 grep -v '^ *+' conftest.er1 >conftest.err
34410 rm -f conftest.er1
34411 cat conftest.err >&5
34412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34413 (exit $ac_status); } &&
c9a66001 34414 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
62fa8b3a
MW
34415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34416 (eval $ac_try) 2>&5
34417 ac_status=$?
34418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34419 (exit $ac_status); }; } &&
34420 { ac_try='test -s conftest.$ac_objext'
34421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34422 (eval $ac_try) 2>&5
34423 ac_status=$?
34424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34425 (exit $ac_status); }; }; then
34426 wx_cv_func_broken_vsnprintf_decl=no
34427else
34428 echo "$as_me: failed program was:" >&5
34429sed 's/^/| /' conftest.$ac_ext >&5
34430
34431wx_cv_func_broken_vsnprintf_decl=yes
34432
34433fi
34434rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34435
34436
34437fi
34438echo "$as_me:$LINENO: result: $wx_cv_func_broken_vsnprintf_decl" >&5
34439echo "${ECHO_T}$wx_cv_func_broken_vsnprintf_decl" >&6
34440
34441 if test "$wx_cv_func_broken_vsnprintf_decl" = "yes"; then
34442 cat >>confdefs.h <<\_ACEOF
34443#define HAVE_BROKEN_VSNPRINTF_DECL 1
34444_ACEOF
34445
34446 fi
a848cd7e
SC
34447 fi
34448fi
34449
4a767dd5
VZ
34450if test "$ac_cv_func_snprintf" = "yes"; then
34451 echo "$as_me:$LINENO: checking for snprintf declaration" >&5
34452echo $ECHO_N "checking for snprintf declaration... $ECHO_C" >&6
34453if test "${wx_cv_func_snprintf_decl+set}" = set; then
34454 echo $ECHO_N "(cached) $ECHO_C" >&6
34455else
34456
34457 cat >conftest.$ac_ext <<_ACEOF
34458/* confdefs.h. */
34459_ACEOF
34460cat confdefs.h >>conftest.$ac_ext
34461cat >>conftest.$ac_ext <<_ACEOF
34462/* end confdefs.h. */
34463
34464 #include <stdio.h>
34465 #include <stdarg.h>
34466 #ifdef __MSL__
34467 #if __MSL__ >= 0x6000
34468 namespace std {}
34469 using namespace std;
34470 #endif
34471 #endif
34472
34473int
34474main ()
34475{
34476
34477 char *buf;
62fa8b3a 34478 snprintf(buf, 10u, "%s", "wx");
4a767dd5
VZ
34479
34480 ;
34481 return 0;
34482}
34483_ACEOF
34484rm -f conftest.$ac_objext
34485if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34486 (eval $ac_compile) 2>conftest.er1
34487 ac_status=$?
34488 grep -v '^ *+' conftest.er1 >conftest.err
34489 rm -f conftest.er1
34490 cat conftest.err >&5
34491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34492 (exit $ac_status); } &&
c9a66001 34493 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4a767dd5
VZ
34494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34495 (eval $ac_try) 2>&5
34496 ac_status=$?
34497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34498 (exit $ac_status); }; } &&
34499 { ac_try='test -s conftest.$ac_objext'
34500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34501 (eval $ac_try) 2>&5
34502 ac_status=$?
34503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34504 (exit $ac_status); }; }; then
34505 wx_cv_func_snprintf_decl=yes
34506else
34507 echo "$as_me: failed program was:" >&5
34508sed 's/^/| /' conftest.$ac_ext >&5
34509
34510wx_cv_func_snprintf_decl=no
34511
34512fi
34513rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34514
34515
34516fi
34517echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_decl" >&5
34518echo "${ECHO_T}$wx_cv_func_snprintf_decl" >&6
34519
34520 if test "$wx_cv_func_snprintf_decl" = "yes"; then
34521 cat >>confdefs.h <<\_ACEOF
34522#define HAVE_SNPRINTF_DECL 1
34523_ACEOF
34524
62fa8b3a
MW
34525
34526 echo "$as_me:$LINENO: checking if snprintf declaration is broken" >&5
34527echo $ECHO_N "checking if snprintf declaration is broken... $ECHO_C" >&6
34528if test "${wx_cv_func_broken_snprintf_decl+set}" = set; then
34529 echo $ECHO_N "(cached) $ECHO_C" >&6
34530else
34531
34532 cat >conftest.$ac_ext <<_ACEOF
34533/* confdefs.h. */
34534_ACEOF
34535cat confdefs.h >>conftest.$ac_ext
34536cat >>conftest.$ac_ext <<_ACEOF
34537/* end confdefs.h. */
34538
34539 #include <stdio.h>
34540 #include <stdarg.h>
34541 #ifdef __MSL__
34542 #if __MSL__ >= 0x6000
34543 namespace std {}
34544 using namespace std;
34545 #endif
34546 #endif
34547
34548int
34549main ()
34550{
34551
34552 char *buf;
34553 const char *fmt = "%s";
34554 snprintf(buf, 10u, fmt, "wx");
34555
34556 ;
34557 return 0;
34558}
34559_ACEOF
34560rm -f conftest.$ac_objext
34561if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34562 (eval $ac_compile) 2>conftest.er1
34563 ac_status=$?
34564 grep -v '^ *+' conftest.er1 >conftest.err
34565 rm -f conftest.er1
34566 cat conftest.err >&5
34567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34568 (exit $ac_status); } &&
c9a66001 34569 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
62fa8b3a
MW
34570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34571 (eval $ac_try) 2>&5
34572 ac_status=$?
34573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34574 (exit $ac_status); }; } &&
34575 { ac_try='test -s conftest.$ac_objext'
34576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34577 (eval $ac_try) 2>&5
34578 ac_status=$?
34579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34580 (exit $ac_status); }; }; then
34581 wx_cv_func_broken_snprintf_decl=no
34582else
34583 echo "$as_me: failed program was:" >&5
34584sed 's/^/| /' conftest.$ac_ext >&5
34585
34586wx_cv_func_broken_snprintf_decl=yes
34587
34588fi
34589rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34590
34591
34592fi
34593echo "$as_me:$LINENO: result: $wx_cv_func_broken_snprintf_decl" >&5
34594echo "${ECHO_T}$wx_cv_func_broken_snprintf_decl" >&6
34595
34596 if test "$wx_cv_func_broken_snprintf_decl" = "yes"; then
34597 cat >>confdefs.h <<\_ACEOF
34598#define HAVE_BROKEN_SNPRINTF_DECL 1
8b6682b9
JS
34599_ACEOF
34600
34601 fi
34602 fi
34603
34604 if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
34605
34606 echo "$as_me:$LINENO: checking if snprintf supports positional arguments" >&5
34607echo $ECHO_N "checking if snprintf supports positional arguments... $ECHO_C" >&6
34608if test "${wx_cv_func_snprintf_pos_params+set}" = set; then
34609 echo $ECHO_N "(cached) $ECHO_C" >&6
34610else
34611
34612 if test "$cross_compiling" = yes; then
34613 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
34614See \`config.log' for more details." >&5
34615echo "$as_me: error: cannot run test program while cross compiling
34616See \`config.log' for more details." >&2;}
34617 { (exit 1); exit 1; }; }
34618else
34619 cat >conftest.$ac_ext <<_ACEOF
34620/* confdefs.h. */
34621_ACEOF
34622cat confdefs.h >>conftest.$ac_ext
34623cat >>conftest.$ac_ext <<_ACEOF
34624/* end confdefs.h. */
34625
34626 #include <stdio.h>
34627
34628 int main (void)
34629 {
34630 char buffer[128];
34631 snprintf (buffer, 128, "%2\$d %3\$d %1\$d", 1, 2, 3);
34632 if (strcmp ("2 3 1", buffer) == 0)
34633 exit (0);
34634 exit (1);
34635 }
34636
34637_ACEOF
34638rm -f conftest$ac_exeext
34639if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34640 (eval $ac_link) 2>&5
34641 ac_status=$?
34642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34643 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34645 (eval $ac_try) 2>&5
34646 ac_status=$?
34647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34648 (exit $ac_status); }; }; then
34649 wx_cv_func_snprintf_pos_params=no
34650else
34651 echo "$as_me: program exited with status $ac_status" >&5
34652echo "$as_me: failed program was:" >&5
34653sed 's/^/| /' conftest.$ac_ext >&5
34654
34655( exit $ac_status )
34656wx_cv_func_snprintf_pos_params=yes
34657
34658fi
34659rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34660fi
34661
34662
34663fi
34664echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_pos_params" >&5
34665echo "${ECHO_T}$wx_cv_func_snprintf_pos_params" >&6
34666
34667 if test "$wx_cv_func_snprintf_pos_params" = "yes"; then
34668 cat >>confdefs.h <<\_ACEOF
34669#define HAVE_UNIX98_PRINTF 1
62fa8b3a
MW
34670_ACEOF
34671
34672 fi
4a767dd5
VZ
34673 fi
34674fi
34675
8b6682b9 34676
a848cd7e
SC
34677if test "$wxUSE_UNICODE" = yes; then
34678
34679
34680
fbe47c7b
VS
34681
34682
34683
34684for ac_func in wputc wputchar putws fputws wprintf vswprintf
a848cd7e
SC
34685do
34686as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34687echo "$as_me:$LINENO: checking for $ac_func" >&5
34688echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34689if eval "test \"\${$as_ac_var+set}\" = set"; then
34690 echo $ECHO_N "(cached) $ECHO_C" >&6
34691else
34692 cat >conftest.$ac_ext <<_ACEOF
34693/* confdefs.h. */
34694_ACEOF
34695cat confdefs.h >>conftest.$ac_ext
34696cat >>conftest.$ac_ext <<_ACEOF
34697/* end confdefs.h. */
ac1cb8d3
VS
34698/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34699 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34700#define $ac_func innocuous_$ac_func
34701
a848cd7e
SC
34702/* System header to define __stub macros and hopefully few prototypes,
34703 which can conflict with char $ac_func (); below.
34704 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34705 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34706
a848cd7e
SC
34707#ifdef __STDC__
34708# include <limits.h>
34709#else
34710# include <assert.h>
34711#endif
ac1cb8d3
VS
34712
34713#undef $ac_func
34714
a848cd7e
SC
34715/* Override any gcc2 internal prototype to avoid an error. */
34716#ifdef __cplusplus
34717extern "C"
34718{
34719#endif
34720/* We use char because int might match the return type of a gcc2
34721 builtin and then its argument prototype would still apply. */
34722char $ac_func ();
34723/* The GNU C library defines this for functions which it implements
34724 to always fail with ENOSYS. Some functions are actually named
34725 something starting with __ and the normal name is an alias. */
34726#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34727choke me
34728#else
34729char (*f) () = $ac_func;
34730#endif
34731#ifdef __cplusplus
34732}
34733#endif
34734
34735int
34736main ()
34737{
34738return f != $ac_func;
34739 ;
34740 return 0;
34741}
34742_ACEOF
34743rm -f conftest.$ac_objext conftest$ac_exeext
34744if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34745 (eval $ac_link) 2>conftest.er1
a848cd7e 34746 ac_status=$?
ac1cb8d3
VS
34747 grep -v '^ *+' conftest.er1 >conftest.err
34748 rm -f conftest.er1
34749 cat conftest.err >&5
a848cd7e
SC
34750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34751 (exit $ac_status); } &&
c9a66001 34752 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34754 (eval $ac_try) 2>&5
34755 ac_status=$?
34756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34757 (exit $ac_status); }; } &&
34758 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34760 (eval $ac_try) 2>&5
34761 ac_status=$?
34762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34763 (exit $ac_status); }; }; then
34764 eval "$as_ac_var=yes"
34765else
34766 echo "$as_me: failed program was:" >&5
34767sed 's/^/| /' conftest.$ac_ext >&5
34768
34769eval "$as_ac_var=no"
34770fi
ac1cb8d3
VS
34771rm -f conftest.err conftest.$ac_objext \
34772 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34773fi
34774echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34775echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34776if test `eval echo '${'$as_ac_var'}'` = yes; then
34777 cat >>confdefs.h <<_ACEOF
34778#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34779_ACEOF
34780
34781fi
34782done
34783
34784
34785 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
34786echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
34787 cat >conftest.$ac_ext <<_ACEOF
34788/* confdefs.h. */
34789_ACEOF
34790cat confdefs.h >>conftest.$ac_ext
34791cat >>conftest.$ac_ext <<_ACEOF
34792/* end confdefs.h. */
34793#include <wchar.h>
34794int
34795main ()
34796{
34797&_vsnwprintf;
34798 ;
34799 return 0;
34800}
34801_ACEOF
34802rm -f conftest.$ac_objext
34803if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34804 (eval $ac_compile) 2>conftest.er1
a848cd7e 34805 ac_status=$?
ac1cb8d3
VS
34806 grep -v '^ *+' conftest.er1 >conftest.err
34807 rm -f conftest.er1
34808 cat conftest.err >&5
a848cd7e
SC
34809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34810 (exit $ac_status); } &&
c9a66001 34811 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34813 (eval $ac_try) 2>&5
34814 ac_status=$?
34815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34816 (exit $ac_status); }; } &&
34817 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34819 (eval $ac_try) 2>&5
34820 ac_status=$?
34821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34822 (exit $ac_status); }; }; then
34823 echo "$as_me:$LINENO: result: yes" >&5
34824echo "${ECHO_T}yes" >&6
34825 cat >>confdefs.h <<\_ACEOF
34826#define HAVE__VSNWPRINTF 1
34827_ACEOF
34828
34829else
34830 echo "$as_me: failed program was:" >&5
34831sed 's/^/| /' conftest.$ac_ext >&5
34832
34833echo "$as_me:$LINENO: result: no" >&5
34834echo "${ECHO_T}no" >&6
34835fi
ac1cb8d3 34836rm -f conftest.err conftest.$ac_objext conftest.$ac_ext;
a848cd7e
SC
34837fi
34838
6ebeb4c7
VZ
34839if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
34840
34841for ac_func in fnmatch
34842do
34843as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34844echo "$as_me:$LINENO: checking for $ac_func" >&5
34845echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34846if eval "test \"\${$as_ac_var+set}\" = set"; then
34847 echo $ECHO_N "(cached) $ECHO_C" >&6
34848else
34849 cat >conftest.$ac_ext <<_ACEOF
34850/* confdefs.h. */
34851_ACEOF
34852cat confdefs.h >>conftest.$ac_ext
34853cat >>conftest.$ac_ext <<_ACEOF
34854/* end confdefs.h. */
34855/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34856 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34857#define $ac_func innocuous_$ac_func
34858
34859/* System header to define __stub macros and hopefully few prototypes,
34860 which can conflict with char $ac_func (); below.
34861 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34862 <limits.h> exists even on freestanding compilers. */
34863
34864#ifdef __STDC__
34865# include <limits.h>
34866#else
34867# include <assert.h>
34868#endif
34869
34870#undef $ac_func
34871
34872/* Override any gcc2 internal prototype to avoid an error. */
34873#ifdef __cplusplus
34874extern "C"
34875{
34876#endif
34877/* We use char because int might match the return type of a gcc2
34878 builtin and then its argument prototype would still apply. */
34879char $ac_func ();
34880/* The GNU C library defines this for functions which it implements
34881 to always fail with ENOSYS. Some functions are actually named
34882 something starting with __ and the normal name is an alias. */
34883#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34884choke me
34885#else
34886char (*f) () = $ac_func;
34887#endif
34888#ifdef __cplusplus
34889}
34890#endif
34891
34892int
34893main ()
34894{
34895return f != $ac_func;
34896 ;
34897 return 0;
34898}
34899_ACEOF
34900rm -f conftest.$ac_objext conftest$ac_exeext
34901if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34902 (eval $ac_link) 2>conftest.er1
34903 ac_status=$?
34904 grep -v '^ *+' conftest.er1 >conftest.err
34905 rm -f conftest.er1
34906 cat conftest.err >&5
34907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34908 (exit $ac_status); } &&
c9a66001 34909 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6ebeb4c7
VZ
34910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34911 (eval $ac_try) 2>&5
34912 ac_status=$?
34913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34914 (exit $ac_status); }; } &&
34915 { ac_try='test -s conftest$ac_exeext'
34916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34917 (eval $ac_try) 2>&5
34918 ac_status=$?
34919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34920 (exit $ac_status); }; }; then
34921 eval "$as_ac_var=yes"
34922else
34923 echo "$as_me: failed program was:" >&5
34924sed 's/^/| /' conftest.$ac_ext >&5
34925
34926eval "$as_ac_var=no"
34927fi
34928rm -f conftest.err conftest.$ac_objext \
34929 conftest$ac_exeext conftest.$ac_ext
34930fi
34931echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34932echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34933if test `eval echo '${'$as_ac_var'}'` = yes; then
34934 cat >>confdefs.h <<_ACEOF
34935#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34936_ACEOF
34937
34938fi
34939done
34940
34941fi
34942
34943if test "$wxUSE_FILE" = "yes"; then
34944
34945for ac_func in fsync
34946do
34947as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34948echo "$as_me:$LINENO: checking for $ac_func" >&5
34949echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34950if eval "test \"\${$as_ac_var+set}\" = set"; then
34951 echo $ECHO_N "(cached) $ECHO_C" >&6
34952else
34953 cat >conftest.$ac_ext <<_ACEOF
34954/* confdefs.h. */
34955_ACEOF
34956cat confdefs.h >>conftest.$ac_ext
34957cat >>conftest.$ac_ext <<_ACEOF
34958/* end confdefs.h. */
34959/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34960 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34961#define $ac_func innocuous_$ac_func
34962
34963/* System header to define __stub macros and hopefully few prototypes,
34964 which can conflict with char $ac_func (); below.
34965 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34966 <limits.h> exists even on freestanding compilers. */
34967
34968#ifdef __STDC__
34969# include <limits.h>
34970#else
34971# include <assert.h>
34972#endif
34973
34974#undef $ac_func
34975
34976/* Override any gcc2 internal prototype to avoid an error. */
34977#ifdef __cplusplus
34978extern "C"
34979{
34980#endif
34981/* We use char because int might match the return type of a gcc2
34982 builtin and then its argument prototype would still apply. */
34983char $ac_func ();
34984/* The GNU C library defines this for functions which it implements
34985 to always fail with ENOSYS. Some functions are actually named
34986 something starting with __ and the normal name is an alias. */
34987#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34988choke me
34989#else
34990char (*f) () = $ac_func;
34991#endif
34992#ifdef __cplusplus
34993}
34994#endif
34995
34996int
34997main ()
34998{
34999return f != $ac_func;
35000 ;
35001 return 0;
35002}
35003_ACEOF
35004rm -f conftest.$ac_objext conftest$ac_exeext
35005if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35006 (eval $ac_link) 2>conftest.er1
35007 ac_status=$?
35008 grep -v '^ *+' conftest.er1 >conftest.err
35009 rm -f conftest.er1
35010 cat conftest.err >&5
35011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35012 (exit $ac_status); } &&
c9a66001 35013 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6ebeb4c7
VZ
35014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35015 (eval $ac_try) 2>&5
35016 ac_status=$?
35017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35018 (exit $ac_status); }; } &&
35019 { ac_try='test -s conftest$ac_exeext'
35020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35021 (eval $ac_try) 2>&5
35022 ac_status=$?
35023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35024 (exit $ac_status); }; }; then
35025 eval "$as_ac_var=yes"
35026else
35027 echo "$as_me: failed program was:" >&5
35028sed 's/^/| /' conftest.$ac_ext >&5
35029
35030eval "$as_ac_var=no"
35031fi
35032rm -f conftest.err conftest.$ac_objext \
35033 conftest$ac_exeext conftest.$ac_ext
35034fi
35035echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35036echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35037if test `eval echo '${'$as_ac_var'}'` = yes; then
35038 cat >>confdefs.h <<_ACEOF
35039#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35040_ACEOF
35041
35042fi
35043done
35044
35045fi
a848cd7e
SC
35046
35047
35048if test "$TOOLKIT" != "MSW"; then
35049
35050
a848cd7e
SC
35051
35052
35053
35054# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
35055if test "${with_libiconv_prefix+set}" = set; then
35056 withval="$with_libiconv_prefix"
35057
35058 for dir in `echo "$withval" | tr : ' '`; do
35059 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
35060 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
35061 done
35062
35063fi;
35064
35065 echo "$as_me:$LINENO: checking for iconv" >&5
35066echo $ECHO_N "checking for iconv... $ECHO_C" >&6
35067if test "${am_cv_func_iconv+set}" = set; then
35068 echo $ECHO_N "(cached) $ECHO_C" >&6
35069else
35070
35071 am_cv_func_iconv="no, consider installing GNU libiconv"
35072 am_cv_lib_iconv=no
35073 cat >conftest.$ac_ext <<_ACEOF
35074/* confdefs.h. */
35075_ACEOF
35076cat confdefs.h >>conftest.$ac_ext
35077cat >>conftest.$ac_ext <<_ACEOF
35078/* end confdefs.h. */
35079#include <stdlib.h>
35080#include <iconv.h>
35081int
35082main ()
35083{
35084iconv_t cd = iconv_open("","");
35085 iconv(cd,NULL,NULL,NULL,NULL);
35086 iconv_close(cd);
35087 ;
35088 return 0;
35089}
35090_ACEOF
35091rm -f conftest.$ac_objext conftest$ac_exeext
35092if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35093 (eval $ac_link) 2>conftest.er1
a848cd7e 35094 ac_status=$?
ac1cb8d3
VS
35095 grep -v '^ *+' conftest.er1 >conftest.err
35096 rm -f conftest.er1
35097 cat conftest.err >&5
a848cd7e
SC
35098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35099 (exit $ac_status); } &&
c9a66001 35100 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35102 (eval $ac_try) 2>&5
35103 ac_status=$?
35104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35105 (exit $ac_status); }; } &&
35106 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35108 (eval $ac_try) 2>&5
35109 ac_status=$?
35110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35111 (exit $ac_status); }; }; then
35112 am_cv_func_iconv=yes
35113else
35114 echo "$as_me: failed program was:" >&5
35115sed 's/^/| /' conftest.$ac_ext >&5
35116
35117fi
ac1cb8d3
VS
35118rm -f conftest.err conftest.$ac_objext \
35119 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35120 if test "$am_cv_func_iconv" != yes; then
35121 am_save_LIBS="$LIBS"
35122 LIBS="$LIBS -liconv"
35123 cat >conftest.$ac_ext <<_ACEOF
35124/* confdefs.h. */
35125_ACEOF
35126cat confdefs.h >>conftest.$ac_ext
35127cat >>conftest.$ac_ext <<_ACEOF
35128/* end confdefs.h. */
35129#include <stdlib.h>
35130#include <iconv.h>
35131int
35132main ()
35133{
35134iconv_t cd = iconv_open("","");
35135 iconv(cd,NULL,NULL,NULL,NULL);
35136 iconv_close(cd);
35137 ;
35138 return 0;
35139}
35140_ACEOF
35141rm -f conftest.$ac_objext conftest$ac_exeext
35142if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35143 (eval $ac_link) 2>conftest.er1
a848cd7e 35144 ac_status=$?
ac1cb8d3
VS
35145 grep -v '^ *+' conftest.er1 >conftest.err
35146 rm -f conftest.er1
35147 cat conftest.err >&5
a848cd7e
SC
35148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35149 (exit $ac_status); } &&
c9a66001 35150 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35152 (eval $ac_try) 2>&5
35153 ac_status=$?
35154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35155 (exit $ac_status); }; } &&
35156 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35158 (eval $ac_try) 2>&5
35159 ac_status=$?
35160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35161 (exit $ac_status); }; }; then
35162 am_cv_lib_iconv=yes
35163 am_cv_func_iconv=yes
35164else
35165 echo "$as_me: failed program was:" >&5
35166sed 's/^/| /' conftest.$ac_ext >&5
35167
35168fi
ac1cb8d3
VS
35169rm -f conftest.err conftest.$ac_objext \
35170 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35171 LIBS="$am_save_LIBS"
35172 fi
35173
35174fi
35175echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
35176echo "${ECHO_T}$am_cv_func_iconv" >&6
35177 if test "$am_cv_func_iconv" = yes; then
35178
35179cat >>confdefs.h <<\_ACEOF
35180#define HAVE_ICONV 1
35181_ACEOF
35182
35183 echo "$as_me:$LINENO: checking if iconv needs const" >&5
35184echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
35185if test "${wx_cv_func_iconv_const+set}" = set; then
35186 echo $ECHO_N "(cached) $ECHO_C" >&6
35187else
35188 cat >conftest.$ac_ext <<_ACEOF
35189/* confdefs.h. */
35190_ACEOF
35191cat confdefs.h >>conftest.$ac_ext
35192cat >>conftest.$ac_ext <<_ACEOF
35193/* end confdefs.h. */
35194
35195#include <stdlib.h>
35196#include <iconv.h>
35197extern
35198#ifdef __cplusplus
35199"C"
35200#endif
35201#if defined(__STDC__) || defined(__cplusplus)
35202size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
35203#else
35204size_t iconv();
35205#endif
35206
35207int
35208main ()
35209{
35210
35211 ;
35212 return 0;
35213}
35214_ACEOF
35215rm -f conftest.$ac_objext
35216if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35217 (eval $ac_compile) 2>conftest.er1
a848cd7e 35218 ac_status=$?
ac1cb8d3
VS
35219 grep -v '^ *+' conftest.er1 >conftest.err
35220 rm -f conftest.er1
35221 cat conftest.err >&5
a848cd7e
SC
35222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35223 (exit $ac_status); } &&
c9a66001 35224 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35226 (eval $ac_try) 2>&5
35227 ac_status=$?
35228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35229 (exit $ac_status); }; } &&
35230 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35232 (eval $ac_try) 2>&5
35233 ac_status=$?
35234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35235 (exit $ac_status); }; }; then
35236 wx_cv_func_iconv_const="no"
35237else
35238 echo "$as_me: failed program was:" >&5
35239sed 's/^/| /' conftest.$ac_ext >&5
35240
35241wx_cv_func_iconv_const="yes"
35242
35243fi
ac1cb8d3 35244rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35245
35246fi
35247echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
35248echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
35249
35250 iconv_const=
35251 if test "x$wx_cv_func_iconv_const" = "xyes"; then
35252 iconv_const="const"
35253 fi
35254
35255
35256cat >>confdefs.h <<_ACEOF
35257#define ICONV_CONST $iconv_const
35258_ACEOF
35259
35260 fi
35261 LIBICONV=
35262 if test "$am_cv_lib_iconv" = yes; then
35263 LIBICONV="-liconv"
35264 fi
35265
35266
35267LIBS="$LIBICONV $LIBS"
a848cd7e
SC
35268
35269if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
35270
35271for ac_func in sigaction
35272do
35273as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35274echo "$as_me:$LINENO: checking for $ac_func" >&5
35275echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35276if eval "test \"\${$as_ac_var+set}\" = set"; then
35277 echo $ECHO_N "(cached) $ECHO_C" >&6
35278else
35279 cat >conftest.$ac_ext <<_ACEOF
35280/* confdefs.h. */
35281_ACEOF
35282cat confdefs.h >>conftest.$ac_ext
35283cat >>conftest.$ac_ext <<_ACEOF
35284/* end confdefs.h. */
ac1cb8d3
VS
35285/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35286 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35287#define $ac_func innocuous_$ac_func
35288
a848cd7e
SC
35289/* System header to define __stub macros and hopefully few prototypes,
35290 which can conflict with char $ac_func (); below.
35291 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35292 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35293
a848cd7e
SC
35294#ifdef __STDC__
35295# include <limits.h>
35296#else
35297# include <assert.h>
35298#endif
ac1cb8d3
VS
35299
35300#undef $ac_func
35301
a848cd7e
SC
35302/* Override any gcc2 internal prototype to avoid an error. */
35303#ifdef __cplusplus
35304extern "C"
35305{
35306#endif
35307/* We use char because int might match the return type of a gcc2
35308 builtin and then its argument prototype would still apply. */
35309char $ac_func ();
35310/* The GNU C library defines this for functions which it implements
35311 to always fail with ENOSYS. Some functions are actually named
35312 something starting with __ and the normal name is an alias. */
35313#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35314choke me
35315#else
35316char (*f) () = $ac_func;
35317#endif
35318#ifdef __cplusplus
35319}
35320#endif
35321
35322int
35323main ()
35324{
35325return f != $ac_func;
35326 ;
35327 return 0;
35328}
35329_ACEOF
35330rm -f conftest.$ac_objext conftest$ac_exeext
35331if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35332 (eval $ac_link) 2>conftest.er1
a848cd7e 35333 ac_status=$?
ac1cb8d3
VS
35334 grep -v '^ *+' conftest.er1 >conftest.err
35335 rm -f conftest.er1
35336 cat conftest.err >&5
a848cd7e
SC
35337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35338 (exit $ac_status); } &&
c9a66001 35339 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35341 (eval $ac_try) 2>&5
35342 ac_status=$?
35343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35344 (exit $ac_status); }; } &&
35345 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35347 (eval $ac_try) 2>&5
35348 ac_status=$?
35349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35350 (exit $ac_status); }; }; then
35351 eval "$as_ac_var=yes"
35352else
35353 echo "$as_me: failed program was:" >&5
35354sed 's/^/| /' conftest.$ac_ext >&5
35355
35356eval "$as_ac_var=no"
35357fi
ac1cb8d3
VS
35358rm -f conftest.err conftest.$ac_objext \
35359 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35360fi
35361echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35362echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35363if test `eval echo '${'$as_ac_var'}'` = yes; then
35364 cat >>confdefs.h <<_ACEOF
35365#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35366_ACEOF
35367
35368fi
35369done
35370
35371
35372 if test "$ac_cv_func_sigaction" = "no"; then
35373 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
35374echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
35375 wxUSE_ON_FATAL_EXCEPTION=no
35376 fi
35377
35378 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
a848cd7e
SC
35379 echo "$as_me:$LINENO: checking for sa_handler type" >&5
35380echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
35381if test "${wx_cv_type_sa_handler+set}" = set; then
35382 echo $ECHO_N "(cached) $ECHO_C" >&6
35383else
35384
35385 cat >conftest.$ac_ext <<_ACEOF
35386/* confdefs.h. */
35387_ACEOF
35388cat confdefs.h >>conftest.$ac_ext
35389cat >>conftest.$ac_ext <<_ACEOF
35390/* end confdefs.h. */
35391#include <signal.h>
35392int
35393main ()
35394{
35395
35396 extern void testSigHandler(int);
35397
35398 struct sigaction sa;
35399 sa.sa_handler = testSigHandler;
35400
35401 ;
35402 return 0;
35403}
35404_ACEOF
35405rm -f conftest.$ac_objext
35406if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35407 (eval $ac_compile) 2>conftest.er1
a848cd7e 35408 ac_status=$?
ac1cb8d3
VS
35409 grep -v '^ *+' conftest.er1 >conftest.err
35410 rm -f conftest.er1
35411 cat conftest.err >&5
a848cd7e
SC
35412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35413 (exit $ac_status); } &&
c9a66001 35414 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35416 (eval $ac_try) 2>&5
35417 ac_status=$?
35418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35419 (exit $ac_status); }; } &&
35420 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35422 (eval $ac_try) 2>&5
35423 ac_status=$?
35424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35425 (exit $ac_status); }; }; then
35426
35427 wx_cv_type_sa_handler=int
35428
35429else
35430 echo "$as_me: failed program was:" >&5
35431sed 's/^/| /' conftest.$ac_ext >&5
35432
35433
35434 wx_cv_type_sa_handler=void
35435
35436fi
ac1cb8d3 35437rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35438
35439fi
35440echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
35441echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
35442
a848cd7e
SC
35443 cat >>confdefs.h <<_ACEOF
35444#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
35445_ACEOF
35446
35447 fi
35448fi
35449
eaff0f0d 35450if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then
eaff0f0d
VZ
35451 echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5
35452echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6
35453if test "${wx_cv_func_backtrace+set}" = set; then
35454 echo $ECHO_N "(cached) $ECHO_C" >&6
35455else
35456
35457 cat >conftest.$ac_ext <<_ACEOF
35458/* confdefs.h. */
35459_ACEOF
35460cat confdefs.h >>conftest.$ac_ext
35461cat >>conftest.$ac_ext <<_ACEOF
35462/* end confdefs.h. */
35463#include <execinfo.h>
35464int
35465main ()
35466{
35467
35468 void *trace[1];
35469 char **messages;
35470
35471 backtrace(trace, 1);
35472 messages = backtrace_symbols(trace, 1);
35473
35474 ;
35475 return 0;
35476}
35477_ACEOF
35478rm -f conftest.$ac_objext
35479if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35480 (eval $ac_compile) 2>conftest.er1
35481 ac_status=$?
35482 grep -v '^ *+' conftest.er1 >conftest.err
35483 rm -f conftest.er1
35484 cat conftest.err >&5
35485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35486 (exit $ac_status); } &&
c9a66001 35487 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
eaff0f0d
VZ
35488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35489 (eval $ac_try) 2>&5
35490 ac_status=$?
35491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35492 (exit $ac_status); }; } &&
35493 { ac_try='test -s conftest.$ac_objext'
35494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35495 (eval $ac_try) 2>&5
35496 ac_status=$?
35497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35498 (exit $ac_status); }; }; then
35499 wx_cv_func_backtrace=yes
35500else
35501 echo "$as_me: failed program was:" >&5
35502sed 's/^/| /' conftest.$ac_ext >&5
35503
35504wx_cv_func_backtrace=no
35505
35506fi
35507rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35508
35509
35510fi
35511echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5
35512echo "${ECHO_T}$wx_cv_func_backtrace" >&6
35513
35514
35515 if test "$wx_cv_func_backtrace" = "no"; then
35516 { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5
35517echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;}
35518 wxUSE_STACKWALKER=no
35519 else
35520 echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5
35521echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6
35522if test "${wx_cv_func_cxa_demangle+set}" = set; then
35523 echo $ECHO_N "(cached) $ECHO_C" >&6
35524else
35525
35526 cat >conftest.$ac_ext <<_ACEOF
35527/* confdefs.h. */
35528_ACEOF
35529cat confdefs.h >>conftest.$ac_ext
35530cat >>conftest.$ac_ext <<_ACEOF
35531/* end confdefs.h. */
35532#include <cxxabi.h>
35533int
35534main ()
35535{
35536
35537 int rc;
35538 __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc);
35539
35540 ;
35541 return 0;
35542}
35543_ACEOF
dfe0c803
JS
35544rm -f conftest.$ac_objext conftest$ac_exeext
35545if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35546 (eval $ac_link) 2>conftest.er1
eaff0f0d
VZ
35547 ac_status=$?
35548 grep -v '^ *+' conftest.er1 >conftest.err
35549 rm -f conftest.er1
35550 cat conftest.err >&5
35551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35552 (exit $ac_status); } &&
c9a66001 35553 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
eaff0f0d
VZ
35554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35555 (eval $ac_try) 2>&5
35556 ac_status=$?
35557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35558 (exit $ac_status); }; } &&
dfe0c803 35559 { ac_try='test -s conftest$ac_exeext'
eaff0f0d
VZ
35560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35561 (eval $ac_try) 2>&5
35562 ac_status=$?
35563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35564 (exit $ac_status); }; }; then
35565 wx_cv_func_cxa_demangle=yes
35566else
35567 echo "$as_me: failed program was:" >&5
35568sed 's/^/| /' conftest.$ac_ext >&5
35569
35570wx_cv_func_cxa_demangle=no
35571
35572fi
dfe0c803
JS
35573rm -f conftest.err conftest.$ac_objext \
35574 conftest$ac_exeext conftest.$ac_ext
eaff0f0d
VZ
35575
35576
35577fi
35578echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5
35579echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6
35580
35581 if test "$wx_cv_func_cxa_demangle" = "yes"; then
35582 cat >>confdefs.h <<\_ACEOF
35583#define HAVE_CXA_DEMANGLE 1
35584_ACEOF
35585
35586 fi
35587 fi
eaff0f0d
VZ
35588fi
35589
898beab1
DE
35590if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != "1" -a "$USE_UNIX" != "1"; then
35591 { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5
35592echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;}
35593 wxUSE_STACKWALKER=no
35594fi
35595
35596
a848cd7e
SC
35597
35598
35599for ac_func in mkstemp mktemp
35600do
35601as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35602echo "$as_me:$LINENO: checking for $ac_func" >&5
35603echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35604if eval "test \"\${$as_ac_var+set}\" = set"; then
35605 echo $ECHO_N "(cached) $ECHO_C" >&6
35606else
35607 cat >conftest.$ac_ext <<_ACEOF
35608/* confdefs.h. */
35609_ACEOF
35610cat confdefs.h >>conftest.$ac_ext
35611cat >>conftest.$ac_ext <<_ACEOF
35612/* end confdefs.h. */
ac1cb8d3
VS
35613/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35614 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35615#define $ac_func innocuous_$ac_func
35616
a848cd7e
SC
35617/* System header to define __stub macros and hopefully few prototypes,
35618 which can conflict with char $ac_func (); below.
35619 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35620 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35621
a848cd7e
SC
35622#ifdef __STDC__
35623# include <limits.h>
35624#else
35625# include <assert.h>
35626#endif
ac1cb8d3
VS
35627
35628#undef $ac_func
35629
a848cd7e
SC
35630/* Override any gcc2 internal prototype to avoid an error. */
35631#ifdef __cplusplus
35632extern "C"
35633{
35634#endif
35635/* We use char because int might match the return type of a gcc2
35636 builtin and then its argument prototype would still apply. */
35637char $ac_func ();
35638/* The GNU C library defines this for functions which it implements
35639 to always fail with ENOSYS. Some functions are actually named
35640 something starting with __ and the normal name is an alias. */
35641#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35642choke me
35643#else
35644char (*f) () = $ac_func;
35645#endif
35646#ifdef __cplusplus
35647}
35648#endif
35649
35650int
35651main ()
35652{
35653return f != $ac_func;
35654 ;
35655 return 0;
35656}
35657_ACEOF
35658rm -f conftest.$ac_objext conftest$ac_exeext
35659if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35660 (eval $ac_link) 2>conftest.er1
a848cd7e 35661 ac_status=$?
ac1cb8d3
VS
35662 grep -v '^ *+' conftest.er1 >conftest.err
35663 rm -f conftest.er1
35664 cat conftest.err >&5
a848cd7e
SC
35665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35666 (exit $ac_status); } &&
c9a66001 35667 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35669 (eval $ac_try) 2>&5
35670 ac_status=$?
35671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35672 (exit $ac_status); }; } &&
35673 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35675 (eval $ac_try) 2>&5
35676 ac_status=$?
35677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35678 (exit $ac_status); }; }; then
35679 eval "$as_ac_var=yes"
35680else
35681 echo "$as_me: failed program was:" >&5
35682sed 's/^/| /' conftest.$ac_ext >&5
35683
35684eval "$as_ac_var=no"
35685fi
ac1cb8d3
VS
35686rm -f conftest.err conftest.$ac_objext \
35687 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35688fi
35689echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35690echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35691if test `eval echo '${'$as_ac_var'}'` = yes; then
35692 cat >>confdefs.h <<_ACEOF
35693#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35694_ACEOF
35695 break
35696fi
35697done
35698
35699
35700echo "$as_me:$LINENO: checking for statfs" >&5
35701echo $ECHO_N "checking for statfs... $ECHO_C" >&6
35702if test "${wx_cv_func_statfs+set}" = set; then
35703 echo $ECHO_N "(cached) $ECHO_C" >&6
35704else
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
35712 #if defined(__BSD__)
84ae7ca4
VZ
35713 #include <sys/param.h>
35714 #include <sys/mount.h>
a848cd7e 35715 #else
84ae7ca4 35716 #include <sys/vfs.h>
a848cd7e
SC
35717 #endif
35718
35719int
35720main ()
35721{
35722
35723 long l;
35724 struct statfs fs;
35725 statfs("/", &fs);
35726 l = fs.f_bsize;
35727 l += fs.f_blocks;
35728 l += fs.f_bavail;
35729
35730 ;
35731 return 0;
35732}
35733_ACEOF
35734rm -f conftest.$ac_objext
35735if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35736 (eval $ac_compile) 2>conftest.er1
a848cd7e 35737 ac_status=$?
ac1cb8d3
VS
35738 grep -v '^ *+' conftest.er1 >conftest.err
35739 rm -f conftest.er1
35740 cat conftest.err >&5
a848cd7e
SC
35741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35742 (exit $ac_status); } &&
c9a66001 35743 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35745 (eval $ac_try) 2>&5
35746 ac_status=$?
35747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35748 (exit $ac_status); }; } &&
35749 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35751 (eval $ac_try) 2>&5
35752 ac_status=$?
35753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35754 (exit $ac_status); }; }; then
84ae7ca4 35755 wx_cv_func_statfs=yes
a848cd7e
SC
35756else
35757 echo "$as_me: failed program was:" >&5
35758sed 's/^/| /' conftest.$ac_ext >&5
35759
84ae7ca4 35760wx_cv_func_statfs=no
a848cd7e
SC
35761
35762fi
ac1cb8d3 35763rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35764
35765fi
35766echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
35767echo "${ECHO_T}$wx_cv_func_statfs" >&6
35768
35769if test "$wx_cv_func_statfs" = "yes"; then
5d7b7554 35770 echo "$as_me:$LINENO: checking for statfs declaration" >&5
84ae7ca4
VZ
35771echo $ECHO_N "checking for statfs declaration... $ECHO_C" >&6
35772if test "${wx_cv_func_statfs_decl+set}" = set; then
35773 echo $ECHO_N "(cached) $ECHO_C" >&6
35774else
0683aca6
VZ
35775 cat >conftest.$ac_ext <<_ACEOF
35776/* confdefs.h. */
35777_ACEOF
35778cat confdefs.h >>conftest.$ac_ext
35779cat >>conftest.$ac_ext <<_ACEOF
35780/* end confdefs.h. */
84ae7ca4 35781
0683aca6
VZ
35782 #if defined(__BSD__)
35783 #include <sys/param.h>
35784 #include <sys/mount.h>
35785 #else
35786 #include <sys/vfs.h>
35787 #endif
35788
35789int
35790main ()
35791{
35792
35793 struct statfs fs;
35794 statfs("", &fs);
35795
35796 ;
35797 return 0;
35798}
35799_ACEOF
35800rm -f conftest.$ac_objext
35801if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35802 (eval $ac_compile) 2>conftest.er1
35803 ac_status=$?
35804 grep -v '^ *+' conftest.er1 >conftest.err
35805 rm -f conftest.er1
35806 cat conftest.err >&5
35807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35808 (exit $ac_status); } &&
c9a66001 35809 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0683aca6
VZ
35810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35811 (eval $ac_try) 2>&5
35812 ac_status=$?
35813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35814 (exit $ac_status); }; } &&
35815 { ac_try='test -s conftest.$ac_objext'
35816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35817 (eval $ac_try) 2>&5
35818 ac_status=$?
35819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35820 (exit $ac_status); }; }; then
35821 wx_cv_func_statfs_decl=yes
35822else
35823 echo "$as_me: failed program was:" >&5
35824sed 's/^/| /' conftest.$ac_ext >&5
35825
35826wx_cv_func_statfs_decl=no
35827
35828fi
35829rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
84ae7ca4
VZ
35830
35831fi
35832echo "$as_me:$LINENO: result: $wx_cv_func_statfs_decl" >&5
35833echo "${ECHO_T}$wx_cv_func_statfs_decl" >&6
84ae7ca4
VZ
35834
35835 if test "$wx_cv_func_statfs_decl" = "yes"; then
35836 cat >>confdefs.h <<\_ACEOF
35837#define HAVE_STATFS_DECL 1
35838_ACEOF
35839
35840 fi
35841
a848cd7e
SC
35842 wx_cv_type_statvfs_t="struct statfs"
35843 cat >>confdefs.h <<\_ACEOF
35844#define HAVE_STATFS 1
35845_ACEOF
35846
35847else
35848 echo "$as_me:$LINENO: checking for statvfs" >&5
35849echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
35850if test "${wx_cv_func_statvfs+set}" = set; then
35851 echo $ECHO_N "(cached) $ECHO_C" >&6
35852else
35853 cat >conftest.$ac_ext <<_ACEOF
35854/* confdefs.h. */
35855_ACEOF
35856cat confdefs.h >>conftest.$ac_ext
35857cat >>conftest.$ac_ext <<_ACEOF
35858/* end confdefs.h. */
35859
35860 #include <stddef.h>
35861 #include <sys/statvfs.h>
35862
35863int
35864main ()
35865{
35866
35867 statvfs("/", NULL);
35868
35869 ;
35870 return 0;
35871}
35872_ACEOF
35873rm -f conftest.$ac_objext
35874if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35875 (eval $ac_compile) 2>conftest.er1
a848cd7e 35876 ac_status=$?
ac1cb8d3
VS
35877 grep -v '^ *+' conftest.er1 >conftest.err
35878 rm -f conftest.er1
35879 cat conftest.err >&5
a848cd7e
SC
35880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35881 (exit $ac_status); } &&
c9a66001 35882 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35884 (eval $ac_try) 2>&5
35885 ac_status=$?
35886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35887 (exit $ac_status); }; } &&
35888 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35890 (eval $ac_try) 2>&5
35891 ac_status=$?
35892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35893 (exit $ac_status); }; }; then
35894 wx_cv_func_statvfs=yes
35895else
35896 echo "$as_me: failed program was:" >&5
35897sed 's/^/| /' conftest.$ac_ext >&5
35898
35899wx_cv_func_statvfs=no
35900
35901fi
ac1cb8d3 35902rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35903
35904fi
35905echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
35906echo "${ECHO_T}$wx_cv_func_statvfs" >&6
35907
35908 if test "$wx_cv_func_statvfs" = "yes"; then
5d7b7554 35909 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
a848cd7e
SC
35910echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
35911if test "${wx_cv_type_statvfs_t+set}" = set; then
35912 echo $ECHO_N "(cached) $ECHO_C" >&6
35913else
35914 cat >conftest.$ac_ext <<_ACEOF
35915/* confdefs.h. */
35916_ACEOF
35917cat confdefs.h >>conftest.$ac_ext
35918cat >>conftest.$ac_ext <<_ACEOF
35919/* end confdefs.h. */
35920
35921 #include <sys/statvfs.h>
35922
35923int
35924main ()
35925{
35926
35927 long l;
35928 statvfs_t fs;
35929 statvfs("/", &fs);
35930 l = fs.f_bsize;
35931 l += fs.f_blocks;
35932 l += fs.f_bavail;
35933
35934 ;
35935 return 0;
35936}
35937_ACEOF
35938rm -f conftest.$ac_objext
35939if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35940 (eval $ac_compile) 2>conftest.er1
a848cd7e 35941 ac_status=$?
ac1cb8d3
VS
35942 grep -v '^ *+' conftest.er1 >conftest.err
35943 rm -f conftest.er1
35944 cat conftest.err >&5
a848cd7e
SC
35945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35946 (exit $ac_status); } &&
c9a66001 35947 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35949 (eval $ac_try) 2>&5
35950 ac_status=$?
35951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35952 (exit $ac_status); }; } &&
35953 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35955 (eval $ac_try) 2>&5
35956 ac_status=$?
35957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35958 (exit $ac_status); }; }; then
35959 wx_cv_type_statvfs_t=statvfs_t
35960else
35961 echo "$as_me: failed program was:" >&5
35962sed 's/^/| /' conftest.$ac_ext >&5
35963
35964
35965 cat >conftest.$ac_ext <<_ACEOF
35966/* confdefs.h. */
35967_ACEOF
35968cat confdefs.h >>conftest.$ac_ext
35969cat >>conftest.$ac_ext <<_ACEOF
35970/* end confdefs.h. */
35971
35972 #include <sys/statvfs.h>
35973
35974int
35975main ()
35976{
35977
35978 long l;
35979 struct statvfs fs;
35980 statvfs("/", &fs);
35981 l = fs.f_bsize;
35982 l += fs.f_blocks;
35983 l += fs.f_bavail;
35984
35985 ;
35986 return 0;
35987}
35988_ACEOF
35989rm -f conftest.$ac_objext
35990if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35991 (eval $ac_compile) 2>conftest.er1
a848cd7e 35992 ac_status=$?
ac1cb8d3
VS
35993 grep -v '^ *+' conftest.er1 >conftest.err
35994 rm -f conftest.er1
35995 cat conftest.err >&5
a848cd7e
SC
35996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35997 (exit $ac_status); } &&
c9a66001 35998 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36000 (eval $ac_try) 2>&5
36001 ac_status=$?
36002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36003 (exit $ac_status); }; } &&
36004 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36006 (eval $ac_try) 2>&5
36007 ac_status=$?
36008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36009 (exit $ac_status); }; }; then
36010 wx_cv_type_statvfs_t="struct statvfs"
36011else
36012 echo "$as_me: failed program was:" >&5
36013sed 's/^/| /' conftest.$ac_ext >&5
36014
36015wx_cv_type_statvfs_t="unknown"
36016
36017fi
ac1cb8d3 36018rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36019
36020
36021fi
ac1cb8d3 36022rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36023
36024fi
36025echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
36026echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
36027
a848cd7e
SC
36028 if test "$wx_cv_type_statvfs_t" != "unknown"; then
36029 cat >>confdefs.h <<\_ACEOF
36030#define HAVE_STATVFS 1
36031_ACEOF
36032
36033 fi
36034 else
36035 wx_cv_type_statvfs_t="unknown"
36036 fi
36037fi
36038
36039if test "$wx_cv_type_statvfs_t" != "unknown"; then
36040 cat >>confdefs.h <<_ACEOF
36041#define WX_STATFS_T $wx_cv_type_statvfs_t
36042_ACEOF
36043
36044else
36045 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
36046echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
36047fi
36048
36049if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
36050
36051
36052for ac_func in fcntl flock
36053do
36054as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36055echo "$as_me:$LINENO: checking for $ac_func" >&5
36056echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36057if eval "test \"\${$as_ac_var+set}\" = set"; then
36058 echo $ECHO_N "(cached) $ECHO_C" >&6
36059else
36060 cat >conftest.$ac_ext <<_ACEOF
36061/* confdefs.h. */
36062_ACEOF
36063cat confdefs.h >>conftest.$ac_ext
36064cat >>conftest.$ac_ext <<_ACEOF
36065/* end confdefs.h. */
ac1cb8d3
VS
36066/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36067 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36068#define $ac_func innocuous_$ac_func
36069
a848cd7e
SC
36070/* System header to define __stub macros and hopefully few prototypes,
36071 which can conflict with char $ac_func (); below.
36072 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36073 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36074
a848cd7e
SC
36075#ifdef __STDC__
36076# include <limits.h>
36077#else
36078# include <assert.h>
36079#endif
ac1cb8d3
VS
36080
36081#undef $ac_func
36082
a848cd7e
SC
36083/* Override any gcc2 internal prototype to avoid an error. */
36084#ifdef __cplusplus
36085extern "C"
36086{
36087#endif
36088/* We use char because int might match the return type of a gcc2
36089 builtin and then its argument prototype would still apply. */
36090char $ac_func ();
36091/* The GNU C library defines this for functions which it implements
36092 to always fail with ENOSYS. Some functions are actually named
36093 something starting with __ and the normal name is an alias. */
36094#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36095choke me
36096#else
36097char (*f) () = $ac_func;
36098#endif
36099#ifdef __cplusplus
36100}
36101#endif
36102
36103int
36104main ()
36105{
36106return f != $ac_func;
36107 ;
36108 return 0;
36109}
36110_ACEOF
36111rm -f conftest.$ac_objext conftest$ac_exeext
36112if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36113 (eval $ac_link) 2>conftest.er1
a848cd7e 36114 ac_status=$?
ac1cb8d3
VS
36115 grep -v '^ *+' conftest.er1 >conftest.err
36116 rm -f conftest.er1
36117 cat conftest.err >&5
a848cd7e
SC
36118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36119 (exit $ac_status); } &&
c9a66001 36120 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36122 (eval $ac_try) 2>&5
36123 ac_status=$?
36124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36125 (exit $ac_status); }; } &&
36126 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
36132 eval "$as_ac_var=yes"
36133else
36134 echo "$as_me: failed program was:" >&5
36135sed 's/^/| /' conftest.$ac_ext >&5
36136
36137eval "$as_ac_var=no"
36138fi
ac1cb8d3
VS
36139rm -f conftest.err conftest.$ac_objext \
36140 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36141fi
36142echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36143echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36144if test `eval echo '${'$as_ac_var'}'` = yes; then
36145 cat >>confdefs.h <<_ACEOF
36146#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36147_ACEOF
36148 break
36149fi
36150done
36151
36152
36153 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
36154 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
36155echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
36156 wxUSE_SNGLINST_CHECKER=no
36157 fi
36158fi
36159
36160
36161for ac_func in timegm
36162do
36163as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36164echo "$as_me:$LINENO: checking for $ac_func" >&5
36165echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36166if eval "test \"\${$as_ac_var+set}\" = set"; then
36167 echo $ECHO_N "(cached) $ECHO_C" >&6
36168else
36169 cat >conftest.$ac_ext <<_ACEOF
36170/* confdefs.h. */
36171_ACEOF
36172cat confdefs.h >>conftest.$ac_ext
36173cat >>conftest.$ac_ext <<_ACEOF
36174/* end confdefs.h. */
ac1cb8d3
VS
36175/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36176 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36177#define $ac_func innocuous_$ac_func
36178
a848cd7e
SC
36179/* System header to define __stub macros and hopefully few prototypes,
36180 which can conflict with char $ac_func (); below.
36181 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36182 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36183
a848cd7e
SC
36184#ifdef __STDC__
36185# include <limits.h>
36186#else
36187# include <assert.h>
36188#endif
ac1cb8d3
VS
36189
36190#undef $ac_func
36191
a848cd7e
SC
36192/* Override any gcc2 internal prototype to avoid an error. */
36193#ifdef __cplusplus
36194extern "C"
36195{
36196#endif
36197/* We use char because int might match the return type of a gcc2
36198 builtin and then its argument prototype would still apply. */
36199char $ac_func ();
36200/* The GNU C library defines this for functions which it implements
36201 to always fail with ENOSYS. Some functions are actually named
36202 something starting with __ and the normal name is an alias. */
36203#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36204choke me
36205#else
36206char (*f) () = $ac_func;
36207#endif
36208#ifdef __cplusplus
36209}
36210#endif
36211
36212int
36213main ()
36214{
36215return f != $ac_func;
36216 ;
36217 return 0;
36218}
36219_ACEOF
36220rm -f conftest.$ac_objext conftest$ac_exeext
36221if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36222 (eval $ac_link) 2>conftest.er1
a848cd7e 36223 ac_status=$?
ac1cb8d3
VS
36224 grep -v '^ *+' conftest.er1 >conftest.err
36225 rm -f conftest.er1
36226 cat conftest.err >&5
a848cd7e
SC
36227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36228 (exit $ac_status); } &&
c9a66001 36229 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36231 (eval $ac_try) 2>&5
36232 ac_status=$?
36233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36234 (exit $ac_status); }; } &&
36235 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36237 (eval $ac_try) 2>&5
36238 ac_status=$?
36239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36240 (exit $ac_status); }; }; then
36241 eval "$as_ac_var=yes"
36242else
36243 echo "$as_me: failed program was:" >&5
36244sed 's/^/| /' conftest.$ac_ext >&5
36245
36246eval "$as_ac_var=no"
36247fi
ac1cb8d3
VS
36248rm -f conftest.err conftest.$ac_objext \
36249 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36250fi
36251echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36252echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36253if test `eval echo '${'$as_ac_var'}'` = yes; then
36254 cat >>confdefs.h <<_ACEOF
36255#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36256_ACEOF
36257
36258fi
36259done
36260
36261
36262
36263
36264for ac_func in putenv setenv
36265do
36266as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36267echo "$as_me:$LINENO: checking for $ac_func" >&5
36268echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36269if eval "test \"\${$as_ac_var+set}\" = set"; then
36270 echo $ECHO_N "(cached) $ECHO_C" >&6
36271else
36272 cat >conftest.$ac_ext <<_ACEOF
36273/* confdefs.h. */
36274_ACEOF
36275cat confdefs.h >>conftest.$ac_ext
36276cat >>conftest.$ac_ext <<_ACEOF
36277/* end confdefs.h. */
ac1cb8d3
VS
36278/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36279 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36280#define $ac_func innocuous_$ac_func
36281
a848cd7e
SC
36282/* System header to define __stub macros and hopefully few prototypes,
36283 which can conflict with char $ac_func (); below.
36284 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36285 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36286
a848cd7e
SC
36287#ifdef __STDC__
36288# include <limits.h>
36289#else
36290# include <assert.h>
36291#endif
ac1cb8d3
VS
36292
36293#undef $ac_func
36294
a848cd7e
SC
36295/* Override any gcc2 internal prototype to avoid an error. */
36296#ifdef __cplusplus
36297extern "C"
36298{
36299#endif
36300/* We use char because int might match the return type of a gcc2
36301 builtin and then its argument prototype would still apply. */
36302char $ac_func ();
36303/* The GNU C library defines this for functions which it implements
36304 to always fail with ENOSYS. Some functions are actually named
36305 something starting with __ and the normal name is an alias. */
36306#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36307choke me
36308#else
36309char (*f) () = $ac_func;
36310#endif
36311#ifdef __cplusplus
36312}
36313#endif
36314
36315int
36316main ()
36317{
36318return f != $ac_func;
36319 ;
36320 return 0;
36321}
36322_ACEOF
36323rm -f conftest.$ac_objext conftest$ac_exeext
36324if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36325 (eval $ac_link) 2>conftest.er1
a848cd7e 36326 ac_status=$?
ac1cb8d3
VS
36327 grep -v '^ *+' conftest.er1 >conftest.err
36328 rm -f conftest.er1
36329 cat conftest.err >&5
a848cd7e
SC
36330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36331 (exit $ac_status); } &&
c9a66001 36332 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36334 (eval $ac_try) 2>&5
36335 ac_status=$?
36336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36337 (exit $ac_status); }; } &&
36338 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36340 (eval $ac_try) 2>&5
36341 ac_status=$?
36342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36343 (exit $ac_status); }; }; then
36344 eval "$as_ac_var=yes"
36345else
36346 echo "$as_me: failed program was:" >&5
36347sed 's/^/| /' conftest.$ac_ext >&5
36348
36349eval "$as_ac_var=no"
36350fi
ac1cb8d3
VS
36351rm -f conftest.err conftest.$ac_objext \
36352 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36353fi
36354echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36355echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36356if test `eval echo '${'$as_ac_var'}'` = yes; then
36357 cat >>confdefs.h <<_ACEOF
36358#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36359_ACEOF
36360 break
36361fi
36362done
36363
36364
36365HAVE_SOME_SLEEP_FUNC=0
36366if test "$USE_BEOS" = 1; then
36367 cat >>confdefs.h <<\_ACEOF
36368#define HAVE_SLEEP 1
36369_ACEOF
36370
36371 HAVE_SOME_SLEEP_FUNC=1
36372fi
36373
36374if test "$USE_DARWIN" = 1; then
36375 cat >>confdefs.h <<\_ACEOF
36376#define HAVE_USLEEP 1
36377_ACEOF
36378
36379 HAVE_SOME_SLEEP_FUNC=1
36380fi
36381
36382if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
36383 POSIX4_LINK=
36384
36385for ac_func in nanosleep
36386do
36387as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36388echo "$as_me:$LINENO: checking for $ac_func" >&5
36389echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36390if eval "test \"\${$as_ac_var+set}\" = set"; then
36391 echo $ECHO_N "(cached) $ECHO_C" >&6
36392else
36393 cat >conftest.$ac_ext <<_ACEOF
36394/* confdefs.h. */
36395_ACEOF
36396cat confdefs.h >>conftest.$ac_ext
36397cat >>conftest.$ac_ext <<_ACEOF
36398/* end confdefs.h. */
ac1cb8d3
VS
36399/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36400 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36401#define $ac_func innocuous_$ac_func
36402
a848cd7e
SC
36403/* System header to define __stub macros and hopefully few prototypes,
36404 which can conflict with char $ac_func (); below.
36405 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36406 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36407
a848cd7e
SC
36408#ifdef __STDC__
36409# include <limits.h>
36410#else
36411# include <assert.h>
36412#endif
ac1cb8d3
VS
36413
36414#undef $ac_func
36415
a848cd7e
SC
36416/* Override any gcc2 internal prototype to avoid an error. */
36417#ifdef __cplusplus
36418extern "C"
36419{
36420#endif
36421/* We use char because int might match the return type of a gcc2
36422 builtin and then its argument prototype would still apply. */
36423char $ac_func ();
36424/* The GNU C library defines this for functions which it implements
36425 to always fail with ENOSYS. Some functions are actually named
36426 something starting with __ and the normal name is an alias. */
36427#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36428choke me
36429#else
36430char (*f) () = $ac_func;
36431#endif
36432#ifdef __cplusplus
36433}
36434#endif
36435
36436int
36437main ()
36438{
36439return f != $ac_func;
36440 ;
36441 return 0;
36442}
36443_ACEOF
36444rm -f conftest.$ac_objext conftest$ac_exeext
36445if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36446 (eval $ac_link) 2>conftest.er1
a848cd7e 36447 ac_status=$?
ac1cb8d3
VS
36448 grep -v '^ *+' conftest.er1 >conftest.err
36449 rm -f conftest.er1
36450 cat conftest.err >&5
a848cd7e
SC
36451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36452 (exit $ac_status); } &&
c9a66001 36453 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36455 (eval $ac_try) 2>&5
36456 ac_status=$?
36457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36458 (exit $ac_status); }; } &&
36459 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36461 (eval $ac_try) 2>&5
36462 ac_status=$?
36463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36464 (exit $ac_status); }; }; then
36465 eval "$as_ac_var=yes"
36466else
36467 echo "$as_me: failed program was:" >&5
36468sed 's/^/| /' conftest.$ac_ext >&5
36469
36470eval "$as_ac_var=no"
36471fi
ac1cb8d3
VS
36472rm -f conftest.err conftest.$ac_objext \
36473 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36474fi
36475echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36476echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36477if test `eval echo '${'$as_ac_var'}'` = yes; then
36478 cat >>confdefs.h <<_ACEOF
36479#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36480_ACEOF
36481 cat >>confdefs.h <<\_ACEOF
36482#define HAVE_NANOSLEEP 1
36483_ACEOF
36484
36485else
36486
36487 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
36488echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
36489if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
36490 echo $ECHO_N "(cached) $ECHO_C" >&6
36491else
36492 ac_check_lib_save_LIBS=$LIBS
36493LIBS="-lposix4 $LIBS"
36494cat >conftest.$ac_ext <<_ACEOF
36495/* confdefs.h. */
36496_ACEOF
36497cat confdefs.h >>conftest.$ac_ext
36498cat >>conftest.$ac_ext <<_ACEOF
36499/* end confdefs.h. */
36500
36501/* Override any gcc2 internal prototype to avoid an error. */
36502#ifdef __cplusplus
36503extern "C"
36504#endif
36505/* We use char because int might match the return type of a gcc2
36506 builtin and then its argument prototype would still apply. */
36507char nanosleep ();
36508int
36509main ()
36510{
36511nanosleep ();
36512 ;
36513 return 0;
36514}
36515_ACEOF
36516rm -f conftest.$ac_objext conftest$ac_exeext
36517if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36518 (eval $ac_link) 2>conftest.er1
a848cd7e 36519 ac_status=$?
ac1cb8d3
VS
36520 grep -v '^ *+' conftest.er1 >conftest.err
36521 rm -f conftest.er1
36522 cat conftest.err >&5
a848cd7e
SC
36523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36524 (exit $ac_status); } &&
c9a66001 36525 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36527 (eval $ac_try) 2>&5
36528 ac_status=$?
36529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36530 (exit $ac_status); }; } &&
36531 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36533 (eval $ac_try) 2>&5
36534 ac_status=$?
36535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36536 (exit $ac_status); }; }; then
36537 ac_cv_lib_posix4_nanosleep=yes
36538else
36539 echo "$as_me: failed program was:" >&5
36540sed 's/^/| /' conftest.$ac_ext >&5
36541
36542ac_cv_lib_posix4_nanosleep=no
36543fi
ac1cb8d3
VS
36544rm -f conftest.err conftest.$ac_objext \
36545 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36546LIBS=$ac_check_lib_save_LIBS
36547fi
36548echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
36549echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
36550if test $ac_cv_lib_posix4_nanosleep = yes; then
36551
36552 cat >>confdefs.h <<\_ACEOF
36553#define HAVE_NANOSLEEP 1
36554_ACEOF
36555
36556 POSIX4_LINK=" -lposix4"
36557
36558else
36559
36560
36561for ac_func in usleep
36562do
36563as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36564echo "$as_me:$LINENO: checking for $ac_func" >&5
36565echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36566if eval "test \"\${$as_ac_var+set}\" = set"; then
36567 echo $ECHO_N "(cached) $ECHO_C" >&6
36568else
36569 cat >conftest.$ac_ext <<_ACEOF
36570/* confdefs.h. */
36571_ACEOF
36572cat confdefs.h >>conftest.$ac_ext
36573cat >>conftest.$ac_ext <<_ACEOF
36574/* end confdefs.h. */
ac1cb8d3
VS
36575/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36576 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36577#define $ac_func innocuous_$ac_func
36578
a848cd7e
SC
36579/* System header to define __stub macros and hopefully few prototypes,
36580 which can conflict with char $ac_func (); below.
36581 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36582 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36583
a848cd7e
SC
36584#ifdef __STDC__
36585# include <limits.h>
36586#else
36587# include <assert.h>
36588#endif
ac1cb8d3
VS
36589
36590#undef $ac_func
36591
a848cd7e
SC
36592/* Override any gcc2 internal prototype to avoid an error. */
36593#ifdef __cplusplus
36594extern "C"
36595{
36596#endif
36597/* We use char because int might match the return type of a gcc2
36598 builtin and then its argument prototype would still apply. */
36599char $ac_func ();
36600/* The GNU C library defines this for functions which it implements
36601 to always fail with ENOSYS. Some functions are actually named
36602 something starting with __ and the normal name is an alias. */
36603#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36604choke me
36605#else
36606char (*f) () = $ac_func;
36607#endif
36608#ifdef __cplusplus
36609}
36610#endif
36611
36612int
36613main ()
36614{
36615return f != $ac_func;
36616 ;
36617 return 0;
36618}
36619_ACEOF
36620rm -f conftest.$ac_objext conftest$ac_exeext
36621if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36622 (eval $ac_link) 2>conftest.er1
a848cd7e 36623 ac_status=$?
ac1cb8d3
VS
36624 grep -v '^ *+' conftest.er1 >conftest.err
36625 rm -f conftest.er1
36626 cat conftest.err >&5
a848cd7e
SC
36627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36628 (exit $ac_status); } &&
c9a66001 36629 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36631 (eval $ac_try) 2>&5
36632 ac_status=$?
36633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36634 (exit $ac_status); }; } &&
36635 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36637 (eval $ac_try) 2>&5
36638 ac_status=$?
36639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36640 (exit $ac_status); }; }; then
36641 eval "$as_ac_var=yes"
36642else
36643 echo "$as_me: failed program was:" >&5
36644sed 's/^/| /' conftest.$ac_ext >&5
36645
36646eval "$as_ac_var=no"
36647fi
ac1cb8d3
VS
36648rm -f conftest.err conftest.$ac_objext \
36649 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36650fi
36651echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36652echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36653if test `eval echo '${'$as_ac_var'}'` = yes; then
36654 cat >>confdefs.h <<_ACEOF
36655#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36656_ACEOF
36657 cat >>confdefs.h <<\_ACEOF
36658#define HAVE_USLEEP 1
36659_ACEOF
36660
36661else
36662 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
36663echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
36664
36665fi
36666done
36667
36668
36669
36670fi
36671
36672
36673
36674fi
36675done
36676
36677fi
36678
36679
36680
36681for ac_func in uname gethostname
36682do
36683as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36684echo "$as_me:$LINENO: checking for $ac_func" >&5
36685echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36686if eval "test \"\${$as_ac_var+set}\" = set"; then
36687 echo $ECHO_N "(cached) $ECHO_C" >&6
36688else
36689 cat >conftest.$ac_ext <<_ACEOF
36690/* confdefs.h. */
36691_ACEOF
36692cat confdefs.h >>conftest.$ac_ext
36693cat >>conftest.$ac_ext <<_ACEOF
36694/* end confdefs.h. */
ac1cb8d3
VS
36695/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36696 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36697#define $ac_func innocuous_$ac_func
36698
a848cd7e
SC
36699/* System header to define __stub macros and hopefully few prototypes,
36700 which can conflict with char $ac_func (); below.
36701 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36702 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36703
a848cd7e
SC
36704#ifdef __STDC__
36705# include <limits.h>
36706#else
36707# include <assert.h>
36708#endif
ac1cb8d3
VS
36709
36710#undef $ac_func
36711
a848cd7e
SC
36712/* Override any gcc2 internal prototype to avoid an error. */
36713#ifdef __cplusplus
36714extern "C"
36715{
36716#endif
36717/* We use char because int might match the return type of a gcc2
36718 builtin and then its argument prototype would still apply. */
36719char $ac_func ();
36720/* The GNU C library defines this for functions which it implements
36721 to always fail with ENOSYS. Some functions are actually named
36722 something starting with __ and the normal name is an alias. */
36723#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36724choke me
36725#else
36726char (*f) () = $ac_func;
36727#endif
36728#ifdef __cplusplus
36729}
36730#endif
36731
36732int
36733main ()
36734{
36735return f != $ac_func;
36736 ;
36737 return 0;
36738}
36739_ACEOF
36740rm -f conftest.$ac_objext conftest$ac_exeext
36741if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36742 (eval $ac_link) 2>conftest.er1
a848cd7e 36743 ac_status=$?
ac1cb8d3
VS
36744 grep -v '^ *+' conftest.er1 >conftest.err
36745 rm -f conftest.er1
36746 cat conftest.err >&5
a848cd7e
SC
36747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36748 (exit $ac_status); } &&
c9a66001 36749 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36751 (eval $ac_try) 2>&5
36752 ac_status=$?
36753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36754 (exit $ac_status); }; } &&
36755 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36757 (eval $ac_try) 2>&5
36758 ac_status=$?
36759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36760 (exit $ac_status); }; }; then
36761 eval "$as_ac_var=yes"
36762else
36763 echo "$as_me: failed program was:" >&5
36764sed 's/^/| /' conftest.$ac_ext >&5
36765
36766eval "$as_ac_var=no"
36767fi
ac1cb8d3
VS
36768rm -f conftest.err conftest.$ac_objext \
36769 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36770fi
36771echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36772echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36773if test `eval echo '${'$as_ac_var'}'` = yes; then
36774 cat >>confdefs.h <<_ACEOF
36775#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36776_ACEOF
36777 break
36778fi
36779done
36780
36781
a848cd7e
SC
36782
36783for ac_func in strtok_r
36784do
36785as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36786echo "$as_me:$LINENO: checking for $ac_func" >&5
36787echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36788if eval "test \"\${$as_ac_var+set}\" = set"; then
36789 echo $ECHO_N "(cached) $ECHO_C" >&6
36790else
36791 cat >conftest.$ac_ext <<_ACEOF
36792/* confdefs.h. */
36793_ACEOF
36794cat confdefs.h >>conftest.$ac_ext
36795cat >>conftest.$ac_ext <<_ACEOF
36796/* end confdefs.h. */
ac1cb8d3
VS
36797/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36798 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36799#define $ac_func innocuous_$ac_func
36800
a848cd7e
SC
36801/* System header to define __stub macros and hopefully few prototypes,
36802 which can conflict with char $ac_func (); below.
36803 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36804 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36805
a848cd7e
SC
36806#ifdef __STDC__
36807# include <limits.h>
36808#else
36809# include <assert.h>
36810#endif
ac1cb8d3
VS
36811
36812#undef $ac_func
36813
a848cd7e
SC
36814/* Override any gcc2 internal prototype to avoid an error. */
36815#ifdef __cplusplus
36816extern "C"
36817{
36818#endif
36819/* We use char because int might match the return type of a gcc2
36820 builtin and then its argument prototype would still apply. */
36821char $ac_func ();
36822/* The GNU C library defines this for functions which it implements
36823 to always fail with ENOSYS. Some functions are actually named
36824 something starting with __ and the normal name is an alias. */
36825#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36826choke me
36827#else
36828char (*f) () = $ac_func;
36829#endif
36830#ifdef __cplusplus
36831}
36832#endif
36833
36834int
36835main ()
36836{
36837return f != $ac_func;
36838 ;
36839 return 0;
36840}
36841_ACEOF
36842rm -f conftest.$ac_objext conftest$ac_exeext
36843if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36844 (eval $ac_link) 2>conftest.er1
a848cd7e 36845 ac_status=$?
ac1cb8d3
VS
36846 grep -v '^ *+' conftest.er1 >conftest.err
36847 rm -f conftest.er1
36848 cat conftest.err >&5
a848cd7e
SC
36849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36850 (exit $ac_status); } &&
c9a66001 36851 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36853 (eval $ac_try) 2>&5
36854 ac_status=$?
36855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36856 (exit $ac_status); }; } &&
36857 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36859 (eval $ac_try) 2>&5
36860 ac_status=$?
36861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36862 (exit $ac_status); }; }; then
36863 eval "$as_ac_var=yes"
36864else
36865 echo "$as_me: failed program was:" >&5
36866sed 's/^/| /' conftest.$ac_ext >&5
36867
36868eval "$as_ac_var=no"
36869fi
ac1cb8d3
VS
36870rm -f conftest.err conftest.$ac_objext \
36871 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36872fi
36873echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36874echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36875if test `eval echo '${'$as_ac_var'}'` = yes; then
36876 cat >>confdefs.h <<_ACEOF
36877#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36878_ACEOF
36879
36880fi
36881done
36882
36883
a848cd7e
SC
36884INET_LINK=
36885
36886for ac_func in inet_addr
36887do
36888as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36889echo "$as_me:$LINENO: checking for $ac_func" >&5
36890echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36891if eval "test \"\${$as_ac_var+set}\" = set"; then
36892 echo $ECHO_N "(cached) $ECHO_C" >&6
36893else
36894 cat >conftest.$ac_ext <<_ACEOF
36895/* confdefs.h. */
36896_ACEOF
36897cat confdefs.h >>conftest.$ac_ext
36898cat >>conftest.$ac_ext <<_ACEOF
36899/* end confdefs.h. */
ac1cb8d3
VS
36900/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36901 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36902#define $ac_func innocuous_$ac_func
36903
a848cd7e
SC
36904/* System header to define __stub macros and hopefully few prototypes,
36905 which can conflict with char $ac_func (); below.
36906 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36907 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36908
a848cd7e
SC
36909#ifdef __STDC__
36910# include <limits.h>
36911#else
36912# include <assert.h>
36913#endif
ac1cb8d3
VS
36914
36915#undef $ac_func
36916
a848cd7e
SC
36917/* Override any gcc2 internal prototype to avoid an error. */
36918#ifdef __cplusplus
36919extern "C"
36920{
36921#endif
36922/* We use char because int might match the return type of a gcc2
36923 builtin and then its argument prototype would still apply. */
36924char $ac_func ();
36925/* The GNU C library defines this for functions which it implements
36926 to always fail with ENOSYS. Some functions are actually named
36927 something starting with __ and the normal name is an alias. */
36928#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36929choke me
36930#else
36931char (*f) () = $ac_func;
36932#endif
36933#ifdef __cplusplus
36934}
36935#endif
36936
36937int
36938main ()
36939{
36940return f != $ac_func;
36941 ;
36942 return 0;
36943}
36944_ACEOF
36945rm -f conftest.$ac_objext conftest$ac_exeext
36946if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36947 (eval $ac_link) 2>conftest.er1
a848cd7e 36948 ac_status=$?
ac1cb8d3
VS
36949 grep -v '^ *+' conftest.er1 >conftest.err
36950 rm -f conftest.er1
36951 cat conftest.err >&5
a848cd7e
SC
36952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36953 (exit $ac_status); } &&
c9a66001 36954 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36956 (eval $ac_try) 2>&5
36957 ac_status=$?
36958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36959 (exit $ac_status); }; } &&
36960 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36962 (eval $ac_try) 2>&5
36963 ac_status=$?
36964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36965 (exit $ac_status); }; }; then
36966 eval "$as_ac_var=yes"
36967else
36968 echo "$as_me: failed program was:" >&5
36969sed 's/^/| /' conftest.$ac_ext >&5
36970
36971eval "$as_ac_var=no"
36972fi
ac1cb8d3
VS
36973rm -f conftest.err conftest.$ac_objext \
36974 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36975fi
36976echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36977echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36978if test `eval echo '${'$as_ac_var'}'` = yes; then
36979 cat >>confdefs.h <<_ACEOF
36980#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36981_ACEOF
36982 cat >>confdefs.h <<\_ACEOF
36983#define HAVE_INET_ADDR 1
36984_ACEOF
36985
36986else
36987
36988 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
36989echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
36990if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
36991 echo $ECHO_N "(cached) $ECHO_C" >&6
36992else
36993 ac_check_lib_save_LIBS=$LIBS
36994LIBS="-lnsl $LIBS"
36995cat >conftest.$ac_ext <<_ACEOF
36996/* confdefs.h. */
36997_ACEOF
36998cat confdefs.h >>conftest.$ac_ext
36999cat >>conftest.$ac_ext <<_ACEOF
37000/* end confdefs.h. */
37001
37002/* Override any gcc2 internal prototype to avoid an error. */
37003#ifdef __cplusplus
37004extern "C"
37005#endif
37006/* We use char because int might match the return type of a gcc2
37007 builtin and then its argument prototype would still apply. */
37008char inet_addr ();
37009int
37010main ()
37011{
37012inet_addr ();
37013 ;
37014 return 0;
37015}
37016_ACEOF
37017rm -f conftest.$ac_objext conftest$ac_exeext
37018if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37019 (eval $ac_link) 2>conftest.er1
a848cd7e 37020 ac_status=$?
ac1cb8d3
VS
37021 grep -v '^ *+' conftest.er1 >conftest.err
37022 rm -f conftest.er1
37023 cat conftest.err >&5
a848cd7e
SC
37024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37025 (exit $ac_status); } &&
c9a66001 37026 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37028 (eval $ac_try) 2>&5
37029 ac_status=$?
37030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37031 (exit $ac_status); }; } &&
37032 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37034 (eval $ac_try) 2>&5
37035 ac_status=$?
37036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37037 (exit $ac_status); }; }; then
37038 ac_cv_lib_nsl_inet_addr=yes
37039else
37040 echo "$as_me: failed program was:" >&5
37041sed 's/^/| /' conftest.$ac_ext >&5
37042
37043ac_cv_lib_nsl_inet_addr=no
37044fi
ac1cb8d3
VS
37045rm -f conftest.err conftest.$ac_objext \
37046 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37047LIBS=$ac_check_lib_save_LIBS
37048fi
37049echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
37050echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
37051if test $ac_cv_lib_nsl_inet_addr = yes; then
37052 INET_LINK="nsl"
37053else
37054
37055 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
37056echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
37057if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
37058 echo $ECHO_N "(cached) $ECHO_C" >&6
37059else
37060 ac_check_lib_save_LIBS=$LIBS
37061LIBS="-lresolv $LIBS"
37062cat >conftest.$ac_ext <<_ACEOF
37063/* confdefs.h. */
37064_ACEOF
37065cat confdefs.h >>conftest.$ac_ext
37066cat >>conftest.$ac_ext <<_ACEOF
37067/* end confdefs.h. */
37068
37069/* Override any gcc2 internal prototype to avoid an error. */
37070#ifdef __cplusplus
37071extern "C"
37072#endif
37073/* We use char because int might match the return type of a gcc2
37074 builtin and then its argument prototype would still apply. */
37075char inet_addr ();
37076int
37077main ()
37078{
37079inet_addr ();
37080 ;
37081 return 0;
37082}
37083_ACEOF
37084rm -f conftest.$ac_objext conftest$ac_exeext
37085if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37086 (eval $ac_link) 2>conftest.er1
a848cd7e 37087 ac_status=$?
ac1cb8d3
VS
37088 grep -v '^ *+' conftest.er1 >conftest.err
37089 rm -f conftest.er1
37090 cat conftest.err >&5
a848cd7e
SC
37091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37092 (exit $ac_status); } &&
c9a66001 37093 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37095 (eval $ac_try) 2>&5
37096 ac_status=$?
37097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37098 (exit $ac_status); }; } &&
37099 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37101 (eval $ac_try) 2>&5
37102 ac_status=$?
37103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37104 (exit $ac_status); }; }; then
37105 ac_cv_lib_resolv_inet_addr=yes
37106else
37107 echo "$as_me: failed program was:" >&5
37108sed 's/^/| /' conftest.$ac_ext >&5
37109
37110ac_cv_lib_resolv_inet_addr=no
37111fi
ac1cb8d3
VS
37112rm -f conftest.err conftest.$ac_objext \
37113 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37114LIBS=$ac_check_lib_save_LIBS
37115fi
37116echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
37117echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
37118if test $ac_cv_lib_resolv_inet_addr = yes; then
37119 INET_LINK="resolv"
37120else
37121
37122 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
37123echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
37124if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
37125 echo $ECHO_N "(cached) $ECHO_C" >&6
37126else
37127 ac_check_lib_save_LIBS=$LIBS
37128LIBS="-lsocket $LIBS"
37129cat >conftest.$ac_ext <<_ACEOF
37130/* confdefs.h. */
37131_ACEOF
37132cat confdefs.h >>conftest.$ac_ext
37133cat >>conftest.$ac_ext <<_ACEOF
37134/* end confdefs.h. */
37135
37136/* Override any gcc2 internal prototype to avoid an error. */
37137#ifdef __cplusplus
37138extern "C"
37139#endif
37140/* We use char because int might match the return type of a gcc2
37141 builtin and then its argument prototype would still apply. */
37142char inet_addr ();
37143int
37144main ()
37145{
37146inet_addr ();
37147 ;
37148 return 0;
37149}
37150_ACEOF
37151rm -f conftest.$ac_objext conftest$ac_exeext
37152if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37153 (eval $ac_link) 2>conftest.er1
a848cd7e 37154 ac_status=$?
ac1cb8d3
VS
37155 grep -v '^ *+' conftest.er1 >conftest.err
37156 rm -f conftest.er1
37157 cat conftest.err >&5
a848cd7e
SC
37158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37159 (exit $ac_status); } &&
c9a66001 37160 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37162 (eval $ac_try) 2>&5
37163 ac_status=$?
37164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37165 (exit $ac_status); }; } &&
37166 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37168 (eval $ac_try) 2>&5
37169 ac_status=$?
37170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37171 (exit $ac_status); }; }; then
37172 ac_cv_lib_socket_inet_addr=yes
37173else
37174 echo "$as_me: failed program was:" >&5
37175sed 's/^/| /' conftest.$ac_ext >&5
37176
37177ac_cv_lib_socket_inet_addr=no
37178fi
ac1cb8d3
VS
37179rm -f conftest.err conftest.$ac_objext \
37180 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37181LIBS=$ac_check_lib_save_LIBS
37182fi
37183echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
37184echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
37185if test $ac_cv_lib_socket_inet_addr = yes; then
37186 INET_LINK="socket"
37187
37188fi
37189
37190
37191
37192fi
37193
37194
37195
37196fi
37197
37198
37199
37200fi
37201done
37202
37203
37204
37205for ac_func in inet_aton
37206do
37207as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37208echo "$as_me:$LINENO: checking for $ac_func" >&5
37209echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37210if eval "test \"\${$as_ac_var+set}\" = set"; then
37211 echo $ECHO_N "(cached) $ECHO_C" >&6
37212else
37213 cat >conftest.$ac_ext <<_ACEOF
37214/* confdefs.h. */
37215_ACEOF
37216cat confdefs.h >>conftest.$ac_ext
37217cat >>conftest.$ac_ext <<_ACEOF
37218/* end confdefs.h. */
ac1cb8d3
VS
37219/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37220 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37221#define $ac_func innocuous_$ac_func
37222
a848cd7e
SC
37223/* System header to define __stub macros and hopefully few prototypes,
37224 which can conflict with char $ac_func (); below.
37225 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37226 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37227
a848cd7e
SC
37228#ifdef __STDC__
37229# include <limits.h>
37230#else
37231# include <assert.h>
37232#endif
ac1cb8d3
VS
37233
37234#undef $ac_func
37235
a848cd7e
SC
37236/* Override any gcc2 internal prototype to avoid an error. */
37237#ifdef __cplusplus
37238extern "C"
37239{
37240#endif
37241/* We use char because int might match the return type of a gcc2
37242 builtin and then its argument prototype would still apply. */
37243char $ac_func ();
37244/* The GNU C library defines this for functions which it implements
37245 to always fail with ENOSYS. Some functions are actually named
37246 something starting with __ and the normal name is an alias. */
37247#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37248choke me
37249#else
37250char (*f) () = $ac_func;
37251#endif
37252#ifdef __cplusplus
37253}
37254#endif
37255
37256int
37257main ()
37258{
37259return f != $ac_func;
37260 ;
37261 return 0;
37262}
37263_ACEOF
37264rm -f conftest.$ac_objext conftest$ac_exeext
37265if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37266 (eval $ac_link) 2>conftest.er1
a848cd7e 37267 ac_status=$?
ac1cb8d3
VS
37268 grep -v '^ *+' conftest.er1 >conftest.err
37269 rm -f conftest.er1
37270 cat conftest.err >&5
a848cd7e
SC
37271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37272 (exit $ac_status); } &&
c9a66001 37273 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37275 (eval $ac_try) 2>&5
37276 ac_status=$?
37277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37278 (exit $ac_status); }; } &&
37279 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37281 (eval $ac_try) 2>&5
37282 ac_status=$?
37283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37284 (exit $ac_status); }; }; then
37285 eval "$as_ac_var=yes"
37286else
37287 echo "$as_me: failed program was:" >&5
37288sed 's/^/| /' conftest.$ac_ext >&5
37289
37290eval "$as_ac_var=no"
37291fi
ac1cb8d3
VS
37292rm -f conftest.err conftest.$ac_objext \
37293 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37294fi
37295echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37296echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37297if test `eval echo '${'$as_ac_var'}'` = yes; then
37298 cat >>confdefs.h <<_ACEOF
37299#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37300_ACEOF
37301 cat >>confdefs.h <<\_ACEOF
37302#define HAVE_INET_ATON 1
37303_ACEOF
37304
37305else
37306
37307 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
37308echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
37309echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
37310if eval "test \"\${$as_ac_Lib+set}\" = set"; then
37311 echo $ECHO_N "(cached) $ECHO_C" >&6
37312else
37313 ac_check_lib_save_LIBS=$LIBS
37314LIBS="-l$INET_LINK $LIBS"
37315cat >conftest.$ac_ext <<_ACEOF
37316/* confdefs.h. */
37317_ACEOF
37318cat confdefs.h >>conftest.$ac_ext
37319cat >>conftest.$ac_ext <<_ACEOF
37320/* end confdefs.h. */
37321
37322/* Override any gcc2 internal prototype to avoid an error. */
37323#ifdef __cplusplus
37324extern "C"
37325#endif
37326/* We use char because int might match the return type of a gcc2
37327 builtin and then its argument prototype would still apply. */
37328char inet_aton ();
37329int
37330main ()
37331{
37332inet_aton ();
37333 ;
37334 return 0;
37335}
37336_ACEOF
37337rm -f conftest.$ac_objext conftest$ac_exeext
37338if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37339 (eval $ac_link) 2>conftest.er1
a848cd7e 37340 ac_status=$?
ac1cb8d3
VS
37341 grep -v '^ *+' conftest.er1 >conftest.err
37342 rm -f conftest.er1
37343 cat conftest.err >&5
a848cd7e
SC
37344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37345 (exit $ac_status); } &&
c9a66001 37346 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37348 (eval $ac_try) 2>&5
37349 ac_status=$?
37350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37351 (exit $ac_status); }; } &&
37352 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37354 (eval $ac_try) 2>&5
37355 ac_status=$?
37356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37357 (exit $ac_status); }; }; then
37358 eval "$as_ac_Lib=yes"
37359else
37360 echo "$as_me: failed program was:" >&5
37361sed 's/^/| /' conftest.$ac_ext >&5
37362
37363eval "$as_ac_Lib=no"
37364fi
ac1cb8d3
VS
37365rm -f conftest.err conftest.$ac_objext \
37366 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37367LIBS=$ac_check_lib_save_LIBS
37368fi
37369echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
37370echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
37371if test `eval echo '${'$as_ac_Lib'}'` = yes; then
37372 cat >>confdefs.h <<\_ACEOF
37373#define HAVE_INET_ATON 1
37374_ACEOF
37375
37376fi
37377
37378
37379fi
37380done
37381
37382
37383if test "x$INET_LINK" != "x"; then
37384 cat >>confdefs.h <<\_ACEOF
37385#define HAVE_INET_ADDR 1
37386_ACEOF
37387
37388 INET_LINK=" -l$INET_LINK"
37389fi
37390
37391fi
37392
37393
37394
37395EXTRALIBS_ESD=
37396echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
37397echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
37398if test "${ac_cv_lib_esd_esd_close+set}" = set; then
37399 echo $ECHO_N "(cached) $ECHO_C" >&6
37400else
37401 ac_check_lib_save_LIBS=$LIBS
37402LIBS="-lesd $LIBS"
37403cat >conftest.$ac_ext <<_ACEOF
37404/* confdefs.h. */
37405_ACEOF
37406cat confdefs.h >>conftest.$ac_ext
37407cat >>conftest.$ac_ext <<_ACEOF
37408/* end confdefs.h. */
37409
37410/* Override any gcc2 internal prototype to avoid an error. */
37411#ifdef __cplusplus
37412extern "C"
37413#endif
37414/* We use char because int might match the return type of a gcc2
37415 builtin and then its argument prototype would still apply. */
37416char esd_close ();
37417int
37418main ()
37419{
37420esd_close ();
37421 ;
37422 return 0;
37423}
37424_ACEOF
37425rm -f conftest.$ac_objext conftest$ac_exeext
37426if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37427 (eval $ac_link) 2>conftest.er1
a848cd7e 37428 ac_status=$?
ac1cb8d3
VS
37429 grep -v '^ *+' conftest.er1 >conftest.err
37430 rm -f conftest.er1
37431 cat conftest.err >&5
a848cd7e
SC
37432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37433 (exit $ac_status); } &&
c9a66001 37434 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37436 (eval $ac_try) 2>&5
37437 ac_status=$?
37438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37439 (exit $ac_status); }; } &&
37440 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37442 (eval $ac_try) 2>&5
37443 ac_status=$?
37444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37445 (exit $ac_status); }; }; then
37446 ac_cv_lib_esd_esd_close=yes
37447else
37448 echo "$as_me: failed program was:" >&5
37449sed 's/^/| /' conftest.$ac_ext >&5
37450
37451ac_cv_lib_esd_esd_close=no
37452fi
ac1cb8d3
VS
37453rm -f conftest.err conftest.$ac_objext \
37454 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37455LIBS=$ac_check_lib_save_LIBS
37456fi
37457echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
37458echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
37459if test $ac_cv_lib_esd_esd_close = yes; then
37460
37461
37462for ac_header in esd.h
37463do
37464as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37465if eval "test \"\${$as_ac_Header+set}\" = set"; then
37466 echo "$as_me:$LINENO: checking for $ac_header" >&5
37467echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37468if eval "test \"\${$as_ac_Header+set}\" = set"; then
37469 echo $ECHO_N "(cached) $ECHO_C" >&6
37470fi
37471echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37472echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37473else
37474 # Is the header compilable?
37475echo "$as_me:$LINENO: checking $ac_header usability" >&5
37476echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37477cat >conftest.$ac_ext <<_ACEOF
37478/* confdefs.h. */
37479_ACEOF
37480cat confdefs.h >>conftest.$ac_ext
37481cat >>conftest.$ac_ext <<_ACEOF
37482/* end confdefs.h. */
37483$ac_includes_default
37484#include <$ac_header>
37485_ACEOF
37486rm -f conftest.$ac_objext
37487if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37488 (eval $ac_compile) 2>conftest.er1
a848cd7e 37489 ac_status=$?
ac1cb8d3
VS
37490 grep -v '^ *+' conftest.er1 >conftest.err
37491 rm -f conftest.er1
37492 cat conftest.err >&5
a848cd7e
SC
37493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37494 (exit $ac_status); } &&
c9a66001 37495 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37497 (eval $ac_try) 2>&5
37498 ac_status=$?
37499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37500 (exit $ac_status); }; } &&
37501 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37503 (eval $ac_try) 2>&5
37504 ac_status=$?
37505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37506 (exit $ac_status); }; }; then
37507 ac_header_compiler=yes
37508else
37509 echo "$as_me: failed program was:" >&5
37510sed 's/^/| /' conftest.$ac_ext >&5
37511
37512ac_header_compiler=no
37513fi
ac1cb8d3 37514rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37515echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37516echo "${ECHO_T}$ac_header_compiler" >&6
37517
37518# Is the header present?
37519echo "$as_me:$LINENO: checking $ac_header presence" >&5
37520echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37521cat >conftest.$ac_ext <<_ACEOF
37522/* confdefs.h. */
37523_ACEOF
37524cat confdefs.h >>conftest.$ac_ext
37525cat >>conftest.$ac_ext <<_ACEOF
37526/* end confdefs.h. */
37527#include <$ac_header>
37528_ACEOF
37529if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37530 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37531 ac_status=$?
37532 grep -v '^ *+' conftest.er1 >conftest.err
37533 rm -f conftest.er1
37534 cat conftest.err >&5
37535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37536 (exit $ac_status); } >/dev/null; then
37537 if test -s conftest.err; then
5d7b7554
VZ
37538 ac_cpp_err=$ac_cxx_preproc_warn_flag
37539 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
37540 else
37541 ac_cpp_err=
37542 fi
37543else
37544 ac_cpp_err=yes
37545fi
37546if test -z "$ac_cpp_err"; then
37547 ac_header_preproc=yes
37548else
37549 echo "$as_me: failed program was:" >&5
37550sed 's/^/| /' conftest.$ac_ext >&5
37551
37552 ac_header_preproc=no
37553fi
37554rm -f conftest.err conftest.$ac_ext
37555echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37556echo "${ECHO_T}$ac_header_preproc" >&6
37557
37558# So? What about this header?
5d7b7554 37559case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 37560 yes:no: )
a848cd7e
SC
37561 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37562echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
37563 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37564echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37565 ac_header_preproc=yes
a848cd7e 37566 ;;
ac1cb8d3 37567 no:yes:* )
a848cd7e
SC
37568 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37569echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
37570 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
37571echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
37572 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37573echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37574 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
37575echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
37576 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37577echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
37578 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37579echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
37580 (
37581 cat <<\_ASBOX
ac1cb8d3
VS
37582## ----------------------------------------- ##
37583## Report this to wx-dev@lists.wxwidgets.org ##
37584## ----------------------------------------- ##
a848cd7e
SC
37585_ASBOX
37586 ) |
37587 sed "s/^/$as_me: WARNING: /" >&2
37588 ;;
37589esac
37590echo "$as_me:$LINENO: checking for $ac_header" >&5
37591echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37592if eval "test \"\${$as_ac_Header+set}\" = set"; then
37593 echo $ECHO_N "(cached) $ECHO_C" >&6
37594else
ac1cb8d3 37595 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
37596fi
37597echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37598echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37599
37600fi
37601if test `eval echo '${'$as_ac_Header'}'` = yes; then
37602 cat >>confdefs.h <<_ACEOF
37603#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37604_ACEOF
37605
37606 EXTRALIBS_ESD="-lesd"
37607
37608fi
37609
37610done
37611
37612
37613fi
37614
37615
37616
37617echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
37618echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
37619cat >conftest.$ac_ext <<_ACEOF
37620/* confdefs.h. */
37621_ACEOF
37622cat confdefs.h >>conftest.$ac_ext
37623cat >>conftest.$ac_ext <<_ACEOF
37624/* end confdefs.h. */
37625#ifdef __linux__
37626 #include <linux/cdrom.h>
37627 #else
37628 /* For Solaris */
37629 #include <sys/cdio.h>
37630 #endif
37631
37632int
37633main ()
37634{
37635struct cdrom_tocentry entry, old_entry;
37636 ;
37637 return 0;
37638}
37639_ACEOF
37640rm -f conftest.$ac_objext
37641if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37642 (eval $ac_compile) 2>conftest.er1
a848cd7e 37643 ac_status=$?
ac1cb8d3
VS
37644 grep -v '^ *+' conftest.er1 >conftest.err
37645 rm -f conftest.er1
37646 cat conftest.err >&5
a848cd7e
SC
37647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37648 (exit $ac_status); } &&
c9a66001 37649 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37651 (eval $ac_try) 2>&5
37652 ac_status=$?
37653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37654 (exit $ac_status); }; } &&
37655 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37657 (eval $ac_try) 2>&5
37658 ac_status=$?
37659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37660 (exit $ac_status); }; }; then
37661 echo "$as_me:$LINENO: result: yes" >&5
37662echo "${ECHO_T}yes" >&6
37663 cat >>confdefs.h <<\_ACEOF
37664#define HAVE_KNOWN_CDROM_INTERFACE 1
37665_ACEOF
37666
37667else
37668 echo "$as_me: failed program was:" >&5
37669sed 's/^/| /' conftest.$ac_ext >&5
37670
37671echo "$as_me:$LINENO: result: no" >&5
37672echo "${ECHO_T}no" >&6
37673fi
ac1cb8d3 37674rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37675
37676
37677cat >confcache <<\_ACEOF
37678# This file is a shell script that caches the results of configure
37679# tests run on this system so they can be shared between configure
37680# scripts and configure runs, see configure's option --config-cache.
37681# It is not useful on other systems. If it contains results you don't
37682# want to keep, you may remove or edit it.
37683#
37684# config.status only pays attention to the cache file if you give it
37685# the --recheck option to rerun configure.
37686#
37687# `ac_cv_env_foo' variables (set or unset) will be overridden when
37688# loading this file, other *unset* `ac_cv_foo' will be assigned the
37689# following values.
37690
37691_ACEOF
37692
37693# The following way of writing the cache mishandles newlines in values,
37694# but we know of no workaround that is simple, portable, and efficient.
37695# So, don't put newlines in cache variables' values.
37696# Ultrix sh set writes to stderr and can't be redirected directly,
37697# and sets the high bit in the cache file unless we assign to the vars.
37698{
37699 (set) 2>&1 |
37700 case `(ac_space=' '; set | grep ac_space) 2>&1` in
37701 *ac_space=\ *)
37702 # `set' does not quote correctly, so add quotes (double-quote
37703 # substitution turns \\\\ into \\, and sed turns \\ into \).
37704 sed -n \
ac1cb8d3
VS
37705 "s/'/'\\\\''/g;
37706 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
37707 ;;
37708 *)
37709 # `set' quotes correctly as required by POSIX, so do not add quotes.
37710 sed -n \
ac1cb8d3 37711 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
37712 ;;
37713 esac;
37714} |
37715 sed '
37716 t clear
37717 : clear
37718 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
37719 t end
37720 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
37721 : end' >>confcache
37722if diff $cache_file confcache >/dev/null 2>&1; then :; else
37723 if test -w $cache_file; then
37724 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
37725 cat confcache >$cache_file
37726 else
37727 echo "not updating unwritable cache $cache_file"
37728 fi
37729fi
37730rm -f confcache
37731
37732
a848cd7e
SC
37733if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
37734
37735
37736 THREADS_LINK=
e56f4f9e 37737 THREADS_CXXFLAGS=
a848cd7e
SC
37738
37739 if test "$wxUSE_THREADS" = "yes" ; then
37740 if test "$USE_BEOS" = 1; then
37741 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
37742echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
37743 wxUSE_THREADS="no"
37744 fi
37745 fi
37746
37747 if test "$wxUSE_THREADS" = "yes" ; then
37748
37749
37750 THREAD_OPTS="-pthread"
37751 case "${host}" in
37752 *-*-solaris2* | *-*-sunos4* )
37753 if test "x$GCC" = "xyes"; then
37754 THREAD_OPTS="-pthreads $THREAD_OPTS"
37755 else
37756 THREAD_OPTS="-mt $THREAD_OPTS"
37757 fi
37758 ;;
37759 *-*-freebsd*)
37760 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
37761 ;;
37762 *-*-darwin* | *-*-cygwin* )
37763 THREAD_OPTS=""
37764 ;;
37765 *-*-aix*)
37766 THREAD_OPTS="pthreads"
37767 ;;
37768 *-hp-hpux* )
00421666
MW
37769 if test "x$GCC" = "xyes"; then
37770 $CXX -dumpspecs | grep 'pthread:' >/dev/null ||
37771 THREAD_OPTS=""
37772 else
0093c2fc 37773 THREAD_OPTS="-mt"
a848cd7e
SC
37774 fi
37775 ;;
37776
37777 *-*-irix* )
37778 if test "x$GCC" = "xyes"; then
37779 THREAD_OPTS=""
37780 fi
37781 ;;
37782
37783 *-*-*UnixWare*)
37784 if test "x$GCC" != "xyes"; then
37785 THREAD_OPTS="-Ethread"
37786 fi
37787 ;;
37788 esac
37789
37790 THREAD_OPTS="$THREAD_OPTS pthread none"
37791
37792 THREADS_OK=no
37793 for flag in $THREAD_OPTS; do
37794 case $flag in
37795 none)
37796 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
37797echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
37798 ;;
37799
37800 -*)
37801 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
37802echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
e56f4f9e 37803 THREADS_CXXFLAGS="$flag"
a848cd7e
SC
37804 ;;
37805
37806 *)
37807 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
37808echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
37809 THREADS_LINK="-l$flag"
37810 ;;
37811 esac
37812
37813 save_LIBS="$LIBS"
e56f4f9e 37814 save_CXXFLAGS="$CXXFLAGS"
a848cd7e 37815 LIBS="$THREADS_LINK $LIBS"
e56f4f9e 37816 CXXFLAGS="$THREADS_CXXFLAGS $CXXFLAGS"
a848cd7e
SC
37817
37818 cat >conftest.$ac_ext <<_ACEOF
37819/* confdefs.h. */
37820_ACEOF
37821cat confdefs.h >>conftest.$ac_ext
37822cat >>conftest.$ac_ext <<_ACEOF
37823/* end confdefs.h. */
37824#include <pthread.h>
37825int
37826main ()
37827{
37828pthread_create(0,0,0,0);
37829 ;
37830 return 0;
37831}
37832_ACEOF
37833rm -f conftest.$ac_objext conftest$ac_exeext
37834if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37835 (eval $ac_link) 2>conftest.er1
a848cd7e 37836 ac_status=$?
ac1cb8d3
VS
37837 grep -v '^ *+' conftest.er1 >conftest.err
37838 rm -f conftest.er1
37839 cat conftest.err >&5
a848cd7e
SC
37840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37841 (exit $ac_status); } &&
c9a66001 37842 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37844 (eval $ac_try) 2>&5
37845 ac_status=$?
37846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37847 (exit $ac_status); }; } &&
37848 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37850 (eval $ac_try) 2>&5
37851 ac_status=$?
37852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37853 (exit $ac_status); }; }; then
37854 THREADS_OK=yes
37855else
37856 echo "$as_me: failed program was:" >&5
37857sed 's/^/| /' conftest.$ac_ext >&5
37858
37859fi
ac1cb8d3
VS
37860rm -f conftest.err conftest.$ac_objext \
37861 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37862
37863 LIBS="$save_LIBS"
e56f4f9e 37864 CXXFLAGS="$save_CXXFLAGS"
a848cd7e
SC
37865
37866 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
37867echo "${ECHO_T}$THREADS_OK" >&6
37868 if test "x$THREADS_OK" = "xyes"; then
37869 break;
37870 fi
37871
37872 THREADS_LINK=""
e56f4f9e 37873 THREADS_CXXFLAGS=""
a848cd7e
SC
37874 done
37875
37876 if test "x$THREADS_OK" != "xyes"; then
37877 wxUSE_THREADS=no
37878 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
37879echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
37880 else
e56f4f9e 37881 LDFLAGS="$THREADS_CXXFLAGS $LDFLAGS"
a848cd7e
SC
37882 LIBS="$THREADS_LINK $LIBS"
37883
37884 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
37885echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
37886 flag=no
37887 case "${host}" in
37888 *-aix*)
37889 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
37890 flag="-D_THREAD_SAFE"
37891 ;;
37892 *-freebsd*)
37893 flag="-D_THREAD_SAFE"
37894 ;;
37895 *-hp-hpux* )
37896 flag="-D_REENTRANT"
37897 if test "x$GCC" != "xyes"; then
37898 flag="$flag -D_RWSTD_MULTI_THREAD"
37899 fi
37900 ;;
37901 *solaris* | alpha*-osf*)
37902 flag="-D_REENTRANT"
37903 ;;
37904 esac
37905 echo "$as_me:$LINENO: result: ${flag}" >&5
37906echo "${ECHO_T}${flag}" >&6
37907 if test "x$flag" != xno; then
e56f4f9e 37908 THREADS_CXXFLAGS="$THREADS_CXXFLAGS $flag"
a848cd7e
SC
37909 fi
37910
e56f4f9e 37911 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS $THREADS_CXXFLAGS"
a848cd7e
SC
37912 fi
37913 fi
37914
37915 if test "$wxUSE_THREADS" = "yes" ; then
37916
37917for ac_func in thr_setconcurrency
37918do
37919as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37920echo "$as_me:$LINENO: checking for $ac_func" >&5
37921echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37922if eval "test \"\${$as_ac_var+set}\" = set"; then
37923 echo $ECHO_N "(cached) $ECHO_C" >&6
37924else
37925 cat >conftest.$ac_ext <<_ACEOF
37926/* confdefs.h. */
37927_ACEOF
37928cat confdefs.h >>conftest.$ac_ext
37929cat >>conftest.$ac_ext <<_ACEOF
37930/* end confdefs.h. */
ac1cb8d3
VS
37931/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37932 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37933#define $ac_func innocuous_$ac_func
37934
a848cd7e
SC
37935/* System header to define __stub macros and hopefully few prototypes,
37936 which can conflict with char $ac_func (); below.
37937 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37938 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37939
a848cd7e
SC
37940#ifdef __STDC__
37941# include <limits.h>
37942#else
37943# include <assert.h>
37944#endif
ac1cb8d3
VS
37945
37946#undef $ac_func
37947
a848cd7e
SC
37948/* Override any gcc2 internal prototype to avoid an error. */
37949#ifdef __cplusplus
37950extern "C"
37951{
37952#endif
37953/* We use char because int might match the return type of a gcc2
37954 builtin and then its argument prototype would still apply. */
37955char $ac_func ();
37956/* The GNU C library defines this for functions which it implements
37957 to always fail with ENOSYS. Some functions are actually named
37958 something starting with __ and the normal name is an alias. */
37959#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37960choke me
37961#else
37962char (*f) () = $ac_func;
37963#endif
37964#ifdef __cplusplus
37965}
37966#endif
37967
37968int
37969main ()
37970{
37971return f != $ac_func;
37972 ;
37973 return 0;
37974}
37975_ACEOF
37976rm -f conftest.$ac_objext conftest$ac_exeext
37977if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37978 (eval $ac_link) 2>conftest.er1
a848cd7e 37979 ac_status=$?
ac1cb8d3
VS
37980 grep -v '^ *+' conftest.er1 >conftest.err
37981 rm -f conftest.er1
37982 cat conftest.err >&5
a848cd7e
SC
37983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37984 (exit $ac_status); } &&
c9a66001 37985 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37987 (eval $ac_try) 2>&5
37988 ac_status=$?
37989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37990 (exit $ac_status); }; } &&
37991 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37993 (eval $ac_try) 2>&5
37994 ac_status=$?
37995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37996 (exit $ac_status); }; }; then
37997 eval "$as_ac_var=yes"
37998else
37999 echo "$as_me: failed program was:" >&5
38000sed 's/^/| /' conftest.$ac_ext >&5
38001
38002eval "$as_ac_var=no"
38003fi
ac1cb8d3
VS
38004rm -f conftest.err conftest.$ac_objext \
38005 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38006fi
38007echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38008echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38009if test `eval echo '${'$as_ac_var'}'` = yes; then
38010 cat >>confdefs.h <<_ACEOF
38011#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38012_ACEOF
38013
38014fi
38015done
38016
38017
6ebeb4c7
VZ
38018 echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5
38019echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6
38020if test "${wx_cv_func_pthread_cleanup+set}" = set; then
38021 echo $ECHO_N "(cached) $ECHO_C" >&6
38022else
38023
38024 cat >conftest.$ac_ext <<_ACEOF
38025/* confdefs.h. */
38026_ACEOF
38027cat confdefs.h >>conftest.$ac_ext
38028cat >>conftest.$ac_ext <<_ACEOF
38029/* end confdefs.h. */
38030#include <pthread.h>
38031 void ThreadCleanupFunc(void *p);
38032
38033int
38034main ()
38035{
38036
38037 void *p;
38038 pthread_cleanup_push(ThreadCleanupFunc, p);
38039 pthread_cleanup_pop(0);
38040
38041 ;
38042 return 0;
38043}
38044_ACEOF
38045rm -f conftest.$ac_objext
38046if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38047 (eval $ac_compile) 2>conftest.er1
38048 ac_status=$?
38049 grep -v '^ *+' conftest.er1 >conftest.err
38050 rm -f conftest.er1
38051 cat conftest.err >&5
38052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38053 (exit $ac_status); } &&
c9a66001 38054 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6ebeb4c7
VZ
38055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38056 (eval $ac_try) 2>&5
38057 ac_status=$?
38058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38059 (exit $ac_status); }; } &&
38060 { ac_try='test -s conftest.$ac_objext'
38061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38062 (eval $ac_try) 2>&5
38063 ac_status=$?
38064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38065 (exit $ac_status); }; }; then
38066
38067 wx_cv_func_pthread_cleanup=yes
38068
38069else
38070 echo "$as_me: failed program was:" >&5
38071sed 's/^/| /' conftest.$ac_ext >&5
38072
38073
38074 wx_cv_func_pthread_cleanup=no
38075
38076
38077fi
38078rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38079
38080fi
38081echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup" >&5
38082echo "${ECHO_T}$wx_cv_func_pthread_cleanup" >&6
38083 if test "x$wx_cv_func_pthread_cleanup" = "xyes"; then
38084 cat >>confdefs.h <<\_ACEOF
38085#define wxHAVE_PTHREAD_CLEANUP 1
38086_ACEOF
38087
38088 fi
38089
a848cd7e
SC
38090
38091for ac_header in sched.h
38092do
38093as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38094if eval "test \"\${$as_ac_Header+set}\" = set"; then
38095 echo "$as_me:$LINENO: checking for $ac_header" >&5
38096echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38097if eval "test \"\${$as_ac_Header+set}\" = set"; then
38098 echo $ECHO_N "(cached) $ECHO_C" >&6
38099fi
38100echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38101echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38102else
38103 # Is the header compilable?
38104echo "$as_me:$LINENO: checking $ac_header usability" >&5
38105echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
38106cat >conftest.$ac_ext <<_ACEOF
38107/* confdefs.h. */
38108_ACEOF
38109cat confdefs.h >>conftest.$ac_ext
38110cat >>conftest.$ac_ext <<_ACEOF
38111/* end confdefs.h. */
38112$ac_includes_default
38113#include <$ac_header>
38114_ACEOF
38115rm -f conftest.$ac_objext
38116if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38117 (eval $ac_compile) 2>conftest.er1
a848cd7e 38118 ac_status=$?
ac1cb8d3
VS
38119 grep -v '^ *+' conftest.er1 >conftest.err
38120 rm -f conftest.er1
38121 cat conftest.err >&5
a848cd7e
SC
38122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38123 (exit $ac_status); } &&
c9a66001 38124 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38126 (eval $ac_try) 2>&5
38127 ac_status=$?
38128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38129 (exit $ac_status); }; } &&
38130 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38132 (eval $ac_try) 2>&5
38133 ac_status=$?
38134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38135 (exit $ac_status); }; }; then
38136 ac_header_compiler=yes
38137else
38138 echo "$as_me: failed program was:" >&5
38139sed 's/^/| /' conftest.$ac_ext >&5
38140
38141ac_header_compiler=no
38142fi
ac1cb8d3 38143rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38144echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38145echo "${ECHO_T}$ac_header_compiler" >&6
38146
38147# Is the header present?
38148echo "$as_me:$LINENO: checking $ac_header presence" >&5
38149echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38150cat >conftest.$ac_ext <<_ACEOF
38151/* confdefs.h. */
38152_ACEOF
38153cat confdefs.h >>conftest.$ac_ext
38154cat >>conftest.$ac_ext <<_ACEOF
38155/* end confdefs.h. */
38156#include <$ac_header>
38157_ACEOF
38158if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38159 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38160 ac_status=$?
38161 grep -v '^ *+' conftest.er1 >conftest.err
38162 rm -f conftest.er1
38163 cat conftest.err >&5
38164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38165 (exit $ac_status); } >/dev/null; then
38166 if test -s conftest.err; then
5d7b7554
VZ
38167 ac_cpp_err=$ac_cxx_preproc_warn_flag
38168 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
38169 else
38170 ac_cpp_err=
38171 fi
38172else
38173 ac_cpp_err=yes
38174fi
38175if test -z "$ac_cpp_err"; then
38176 ac_header_preproc=yes
38177else
38178 echo "$as_me: failed program was:" >&5
38179sed 's/^/| /' conftest.$ac_ext >&5
38180
38181 ac_header_preproc=no
38182fi
38183rm -f conftest.err conftest.$ac_ext
38184echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38185echo "${ECHO_T}$ac_header_preproc" >&6
38186
38187# So? What about this header?
5d7b7554 38188case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 38189 yes:no: )
a848cd7e
SC
38190 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38191echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
38192 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38193echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38194 ac_header_preproc=yes
a848cd7e 38195 ;;
ac1cb8d3 38196 no:yes:* )
a848cd7e
SC
38197 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38198echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
38199 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
38200echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
38201 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38202echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38203 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
38204echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
38205 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38206echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
38207 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38208echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
38209 (
38210 cat <<\_ASBOX
ac1cb8d3
VS
38211## ----------------------------------------- ##
38212## Report this to wx-dev@lists.wxwidgets.org ##
38213## ----------------------------------------- ##
a848cd7e
SC
38214_ASBOX
38215 ) |
38216 sed "s/^/$as_me: WARNING: /" >&2
38217 ;;
38218esac
38219echo "$as_me:$LINENO: checking for $ac_header" >&5
38220echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38221if eval "test \"\${$as_ac_Header+set}\" = set"; then
38222 echo $ECHO_N "(cached) $ECHO_C" >&6
38223else
ac1cb8d3 38224 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
38225fi
38226echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38227echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38228
38229fi
38230if test `eval echo '${'$as_ac_Header'}'` = yes; then
38231 cat >>confdefs.h <<_ACEOF
38232#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38233_ACEOF
38234
38235fi
38236
38237done
38238
38239 if test "$ac_cv_header_sched_h" = "yes"; then
38240 echo "$as_me:$LINENO: checking for sched_yield" >&5
38241echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
38242if test "${ac_cv_func_sched_yield+set}" = set; then
38243 echo $ECHO_N "(cached) $ECHO_C" >&6
38244else
38245 cat >conftest.$ac_ext <<_ACEOF
38246/* confdefs.h. */
38247_ACEOF
38248cat confdefs.h >>conftest.$ac_ext
38249cat >>conftest.$ac_ext <<_ACEOF
38250/* end confdefs.h. */
ac1cb8d3
VS
38251/* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
38252 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38253#define sched_yield innocuous_sched_yield
38254
a848cd7e
SC
38255/* System header to define __stub macros and hopefully few prototypes,
38256 which can conflict with char sched_yield (); below.
38257 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38258 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38259
a848cd7e
SC
38260#ifdef __STDC__
38261# include <limits.h>
38262#else
38263# include <assert.h>
38264#endif
ac1cb8d3
VS
38265
38266#undef sched_yield
38267
a848cd7e
SC
38268/* Override any gcc2 internal prototype to avoid an error. */
38269#ifdef __cplusplus
38270extern "C"
38271{
38272#endif
38273/* We use char because int might match the return type of a gcc2
38274 builtin and then its argument prototype would still apply. */
38275char sched_yield ();
38276/* The GNU C library defines this for functions which it implements
38277 to always fail with ENOSYS. Some functions are actually named
38278 something starting with __ and the normal name is an alias. */
38279#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
38280choke me
38281#else
38282char (*f) () = sched_yield;
38283#endif
38284#ifdef __cplusplus
38285}
38286#endif
38287
38288int
38289main ()
38290{
38291return f != sched_yield;
38292 ;
38293 return 0;
38294}
38295_ACEOF
38296rm -f conftest.$ac_objext conftest$ac_exeext
38297if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38298 (eval $ac_link) 2>conftest.er1
a848cd7e 38299 ac_status=$?
ac1cb8d3
VS
38300 grep -v '^ *+' conftest.er1 >conftest.err
38301 rm -f conftest.er1
38302 cat conftest.err >&5
a848cd7e
SC
38303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38304 (exit $ac_status); } &&
c9a66001 38305 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38307 (eval $ac_try) 2>&5
38308 ac_status=$?
38309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38310 (exit $ac_status); }; } &&
38311 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38313 (eval $ac_try) 2>&5
38314 ac_status=$?
38315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38316 (exit $ac_status); }; }; then
38317 ac_cv_func_sched_yield=yes
38318else
38319 echo "$as_me: failed program was:" >&5
38320sed 's/^/| /' conftest.$ac_ext >&5
38321
38322ac_cv_func_sched_yield=no
38323fi
ac1cb8d3
VS
38324rm -f conftest.err conftest.$ac_objext \
38325 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38326fi
38327echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
38328echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
38329if test $ac_cv_func_sched_yield = yes; then
38330 cat >>confdefs.h <<\_ACEOF
38331#define HAVE_SCHED_YIELD 1
38332_ACEOF
38333
38334else
38335
38336 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
38337echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
38338if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
38339 echo $ECHO_N "(cached) $ECHO_C" >&6
38340else
38341 ac_check_lib_save_LIBS=$LIBS
38342LIBS="-lposix4 $LIBS"
38343cat >conftest.$ac_ext <<_ACEOF
38344/* confdefs.h. */
38345_ACEOF
38346cat confdefs.h >>conftest.$ac_ext
38347cat >>conftest.$ac_ext <<_ACEOF
38348/* end confdefs.h. */
38349
38350/* Override any gcc2 internal prototype to avoid an error. */
38351#ifdef __cplusplus
38352extern "C"
38353#endif
38354/* We use char because int might match the return type of a gcc2
38355 builtin and then its argument prototype would still apply. */
38356char sched_yield ();
38357int
38358main ()
38359{
38360sched_yield ();
38361 ;
38362 return 0;
38363}
38364_ACEOF
38365rm -f conftest.$ac_objext conftest$ac_exeext
38366if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38367 (eval $ac_link) 2>conftest.er1
a848cd7e 38368 ac_status=$?
ac1cb8d3
VS
38369 grep -v '^ *+' conftest.er1 >conftest.err
38370 rm -f conftest.er1
38371 cat conftest.err >&5
a848cd7e
SC
38372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38373 (exit $ac_status); } &&
c9a66001 38374 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38376 (eval $ac_try) 2>&5
38377 ac_status=$?
38378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38379 (exit $ac_status); }; } &&
38380 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38382 (eval $ac_try) 2>&5
38383 ac_status=$?
38384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38385 (exit $ac_status); }; }; then
38386 ac_cv_lib_posix4_sched_yield=yes
38387else
38388 echo "$as_me: failed program was:" >&5
38389sed 's/^/| /' conftest.$ac_ext >&5
38390
38391ac_cv_lib_posix4_sched_yield=no
38392fi
ac1cb8d3
VS
38393rm -f conftest.err conftest.$ac_objext \
38394 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38395LIBS=$ac_check_lib_save_LIBS
38396fi
38397echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
38398echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
38399if test $ac_cv_lib_posix4_sched_yield = yes; then
38400 cat >>confdefs.h <<\_ACEOF
38401#define HAVE_SCHED_YIELD 1
38402_ACEOF
38403 POSIX4_LINK=" -lposix4"
38404else
38405 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
38406echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
38407
38408fi
38409
38410
38411
38412fi
38413
38414 fi
38415
38416 HAVE_PRIOR_FUNCS=0
38417 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
38418echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
38419if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
38420 echo $ECHO_N "(cached) $ECHO_C" >&6
38421else
38422 cat >conftest.$ac_ext <<_ACEOF
38423/* confdefs.h. */
38424_ACEOF
38425cat confdefs.h >>conftest.$ac_ext
38426cat >>conftest.$ac_ext <<_ACEOF
38427/* end confdefs.h. */
ac1cb8d3
VS
38428/* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
38429 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38430#define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
38431
a848cd7e
SC
38432/* System header to define __stub macros and hopefully few prototypes,
38433 which can conflict with char pthread_attr_getschedpolicy (); below.
38434 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38435 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38436
a848cd7e
SC
38437#ifdef __STDC__
38438# include <limits.h>
38439#else
38440# include <assert.h>
38441#endif
ac1cb8d3
VS
38442
38443#undef pthread_attr_getschedpolicy
38444
a848cd7e
SC
38445/* Override any gcc2 internal prototype to avoid an error. */
38446#ifdef __cplusplus
38447extern "C"
38448{
38449#endif
38450/* We use char because int might match the return type of a gcc2
38451 builtin and then its argument prototype would still apply. */
38452char pthread_attr_getschedpolicy ();
38453/* The GNU C library defines this for functions which it implements
38454 to always fail with ENOSYS. Some functions are actually named
38455 something starting with __ and the normal name is an alias. */
38456#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
38457choke me
38458#else
38459char (*f) () = pthread_attr_getschedpolicy;
38460#endif
38461#ifdef __cplusplus
38462}
38463#endif
38464
38465int
38466main ()
38467{
38468return f != pthread_attr_getschedpolicy;
38469 ;
38470 return 0;
38471}
38472_ACEOF
38473rm -f conftest.$ac_objext conftest$ac_exeext
38474if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38475 (eval $ac_link) 2>conftest.er1
a848cd7e 38476 ac_status=$?
ac1cb8d3
VS
38477 grep -v '^ *+' conftest.er1 >conftest.err
38478 rm -f conftest.er1
38479 cat conftest.err >&5
a848cd7e
SC
38480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38481 (exit $ac_status); } &&
c9a66001 38482 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38484 (eval $ac_try) 2>&5
38485 ac_status=$?
38486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38487 (exit $ac_status); }; } &&
38488 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38490 (eval $ac_try) 2>&5
38491 ac_status=$?
38492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38493 (exit $ac_status); }; }; then
38494 ac_cv_func_pthread_attr_getschedpolicy=yes
38495else
38496 echo "$as_me: failed program was:" >&5
38497sed 's/^/| /' conftest.$ac_ext >&5
38498
38499ac_cv_func_pthread_attr_getschedpolicy=no
38500fi
ac1cb8d3
VS
38501rm -f conftest.err conftest.$ac_objext \
38502 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38503fi
38504echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
38505echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
38506if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
38507 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
38508echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
38509if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
38510 echo $ECHO_N "(cached) $ECHO_C" >&6
38511else
38512 cat >conftest.$ac_ext <<_ACEOF
38513/* confdefs.h. */
38514_ACEOF
38515cat confdefs.h >>conftest.$ac_ext
38516cat >>conftest.$ac_ext <<_ACEOF
38517/* end confdefs.h. */
ac1cb8d3
VS
38518/* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
38519 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38520#define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
38521
a848cd7e
SC
38522/* System header to define __stub macros and hopefully few prototypes,
38523 which can conflict with char pthread_attr_setschedparam (); below.
38524 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38525 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38526
a848cd7e
SC
38527#ifdef __STDC__
38528# include <limits.h>
38529#else
38530# include <assert.h>
38531#endif
ac1cb8d3
VS
38532
38533#undef pthread_attr_setschedparam
38534
a848cd7e
SC
38535/* Override any gcc2 internal prototype to avoid an error. */
38536#ifdef __cplusplus
38537extern "C"
38538{
38539#endif
38540/* We use char because int might match the return type of a gcc2
38541 builtin and then its argument prototype would still apply. */
38542char pthread_attr_setschedparam ();
38543/* The GNU C library defines this for functions which it implements
38544 to always fail with ENOSYS. Some functions are actually named
38545 something starting with __ and the normal name is an alias. */
38546#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
38547choke me
38548#else
38549char (*f) () = pthread_attr_setschedparam;
38550#endif
38551#ifdef __cplusplus
38552}
38553#endif
38554
38555int
38556main ()
38557{
38558return f != pthread_attr_setschedparam;
38559 ;
38560 return 0;
38561}
38562_ACEOF
38563rm -f conftest.$ac_objext conftest$ac_exeext
38564if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38565 (eval $ac_link) 2>conftest.er1
a848cd7e 38566 ac_status=$?
ac1cb8d3
VS
38567 grep -v '^ *+' conftest.er1 >conftest.err
38568 rm -f conftest.er1
38569 cat conftest.err >&5
a848cd7e
SC
38570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38571 (exit $ac_status); } &&
c9a66001 38572 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38574 (eval $ac_try) 2>&5
38575 ac_status=$?
38576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38577 (exit $ac_status); }; } &&
38578 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38580 (eval $ac_try) 2>&5
38581 ac_status=$?
38582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38583 (exit $ac_status); }; }; then
38584 ac_cv_func_pthread_attr_setschedparam=yes
38585else
38586 echo "$as_me: failed program was:" >&5
38587sed 's/^/| /' conftest.$ac_ext >&5
38588
38589ac_cv_func_pthread_attr_setschedparam=no
38590fi
ac1cb8d3
VS
38591rm -f conftest.err conftest.$ac_objext \
38592 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38593fi
38594echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
38595echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
38596if test $ac_cv_func_pthread_attr_setschedparam = yes; then
38597 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
38598echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
38599if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
38600 echo $ECHO_N "(cached) $ECHO_C" >&6
38601else
38602 cat >conftest.$ac_ext <<_ACEOF
38603/* confdefs.h. */
38604_ACEOF
38605cat confdefs.h >>conftest.$ac_ext
38606cat >>conftest.$ac_ext <<_ACEOF
38607/* end confdefs.h. */
ac1cb8d3
VS
38608/* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
38609 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38610#define sched_get_priority_max innocuous_sched_get_priority_max
38611
a848cd7e
SC
38612/* System header to define __stub macros and hopefully few prototypes,
38613 which can conflict with char sched_get_priority_max (); below.
38614 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38615 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38616
a848cd7e
SC
38617#ifdef __STDC__
38618# include <limits.h>
38619#else
38620# include <assert.h>
38621#endif
ac1cb8d3
VS
38622
38623#undef sched_get_priority_max
38624
a848cd7e
SC
38625/* Override any gcc2 internal prototype to avoid an error. */
38626#ifdef __cplusplus
38627extern "C"
38628{
38629#endif
38630/* We use char because int might match the return type of a gcc2
38631 builtin and then its argument prototype would still apply. */
38632char sched_get_priority_max ();
38633/* The GNU C library defines this for functions which it implements
38634 to always fail with ENOSYS. Some functions are actually named
38635 something starting with __ and the normal name is an alias. */
38636#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
38637choke me
38638#else
38639char (*f) () = sched_get_priority_max;
38640#endif
38641#ifdef __cplusplus
38642}
38643#endif
38644
38645int
38646main ()
38647{
38648return f != sched_get_priority_max;
38649 ;
38650 return 0;
38651}
38652_ACEOF
38653rm -f conftest.$ac_objext conftest$ac_exeext
38654if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38655 (eval $ac_link) 2>conftest.er1
a848cd7e 38656 ac_status=$?
ac1cb8d3
VS
38657 grep -v '^ *+' conftest.er1 >conftest.err
38658 rm -f conftest.er1
38659 cat conftest.err >&5
a848cd7e
SC
38660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38661 (exit $ac_status); } &&
c9a66001 38662 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38664 (eval $ac_try) 2>&5
38665 ac_status=$?
38666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38667 (exit $ac_status); }; } &&
38668 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38670 (eval $ac_try) 2>&5
38671 ac_status=$?
38672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38673 (exit $ac_status); }; }; then
38674 ac_cv_func_sched_get_priority_max=yes
38675else
38676 echo "$as_me: failed program was:" >&5
38677sed 's/^/| /' conftest.$ac_ext >&5
38678
38679ac_cv_func_sched_get_priority_max=no
38680fi
ac1cb8d3
VS
38681rm -f conftest.err conftest.$ac_objext \
38682 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38683fi
38684echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
38685echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
38686if test $ac_cv_func_sched_get_priority_max = yes; then
38687 HAVE_PRIOR_FUNCS=1
38688else
38689 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
38690echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
38691if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
38692 echo $ECHO_N "(cached) $ECHO_C" >&6
38693else
38694 ac_check_lib_save_LIBS=$LIBS
38695LIBS="-lposix4 $LIBS"
38696cat >conftest.$ac_ext <<_ACEOF
38697/* confdefs.h. */
38698_ACEOF
38699cat confdefs.h >>conftest.$ac_ext
38700cat >>conftest.$ac_ext <<_ACEOF
38701/* end confdefs.h. */
38702
38703/* Override any gcc2 internal prototype to avoid an error. */
38704#ifdef __cplusplus
38705extern "C"
38706#endif
38707/* We use char because int might match the return type of a gcc2
38708 builtin and then its argument prototype would still apply. */
38709char sched_get_priority_max ();
38710int
38711main ()
38712{
38713sched_get_priority_max ();
38714 ;
38715 return 0;
38716}
38717_ACEOF
38718rm -f conftest.$ac_objext conftest$ac_exeext
38719if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38720 (eval $ac_link) 2>conftest.er1
a848cd7e 38721 ac_status=$?
ac1cb8d3
VS
38722 grep -v '^ *+' conftest.er1 >conftest.err
38723 rm -f conftest.er1
38724 cat conftest.err >&5
a848cd7e
SC
38725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38726 (exit $ac_status); } &&
c9a66001 38727 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38729 (eval $ac_try) 2>&5
38730 ac_status=$?
38731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38732 (exit $ac_status); }; } &&
38733 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38735 (eval $ac_try) 2>&5
38736 ac_status=$?
38737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38738 (exit $ac_status); }; }; then
38739 ac_cv_lib_posix4_sched_get_priority_max=yes
38740else
38741 echo "$as_me: failed program was:" >&5
38742sed 's/^/| /' conftest.$ac_ext >&5
38743
38744ac_cv_lib_posix4_sched_get_priority_max=no
38745fi
ac1cb8d3
VS
38746rm -f conftest.err conftest.$ac_objext \
38747 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38748LIBS=$ac_check_lib_save_LIBS
38749fi
38750echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
38751echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
38752if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
38753
38754 HAVE_PRIOR_FUNCS=1
38755 POSIX4_LINK=" -lposix4"
38756
38757fi
38758
38759
38760fi
38761
38762
38763fi
38764
38765
38766fi
38767
38768
38769 if test "$HAVE_PRIOR_FUNCS" = 1; then
38770 cat >>confdefs.h <<\_ACEOF
38771#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
38772_ACEOF
38773
38774 else
38775 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
38776echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
38777 fi
38778
38779 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
38780echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
38781if test "${ac_cv_func_pthread_cancel+set}" = set; then
38782 echo $ECHO_N "(cached) $ECHO_C" >&6
38783else
38784 cat >conftest.$ac_ext <<_ACEOF
38785/* confdefs.h. */
38786_ACEOF
38787cat confdefs.h >>conftest.$ac_ext
38788cat >>conftest.$ac_ext <<_ACEOF
38789/* end confdefs.h. */
ac1cb8d3
VS
38790/* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
38791 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38792#define pthread_cancel innocuous_pthread_cancel
38793
a848cd7e
SC
38794/* System header to define __stub macros and hopefully few prototypes,
38795 which can conflict with char pthread_cancel (); below.
38796 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38797 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38798
a848cd7e
SC
38799#ifdef __STDC__
38800# include <limits.h>
38801#else
38802# include <assert.h>
38803#endif
ac1cb8d3
VS
38804
38805#undef pthread_cancel
38806
a848cd7e
SC
38807/* Override any gcc2 internal prototype to avoid an error. */
38808#ifdef __cplusplus
38809extern "C"
38810{
38811#endif
38812/* We use char because int might match the return type of a gcc2
38813 builtin and then its argument prototype would still apply. */
38814char pthread_cancel ();
38815/* The GNU C library defines this for functions which it implements
38816 to always fail with ENOSYS. Some functions are actually named
38817 something starting with __ and the normal name is an alias. */
38818#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
38819choke me
38820#else
38821char (*f) () = pthread_cancel;
38822#endif
38823#ifdef __cplusplus
38824}
38825#endif
38826
38827int
38828main ()
38829{
38830return f != pthread_cancel;
38831 ;
38832 return 0;
38833}
38834_ACEOF
38835rm -f conftest.$ac_objext conftest$ac_exeext
38836if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38837 (eval $ac_link) 2>conftest.er1
a848cd7e 38838 ac_status=$?
ac1cb8d3
VS
38839 grep -v '^ *+' conftest.er1 >conftest.err
38840 rm -f conftest.er1
38841 cat conftest.err >&5
a848cd7e
SC
38842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38843 (exit $ac_status); } &&
c9a66001 38844 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38846 (eval $ac_try) 2>&5
38847 ac_status=$?
38848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38849 (exit $ac_status); }; } &&
38850 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38852 (eval $ac_try) 2>&5
38853 ac_status=$?
38854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38855 (exit $ac_status); }; }; then
38856 ac_cv_func_pthread_cancel=yes
38857else
38858 echo "$as_me: failed program was:" >&5
38859sed 's/^/| /' conftest.$ac_ext >&5
38860
38861ac_cv_func_pthread_cancel=no
38862fi
ac1cb8d3
VS
38863rm -f conftest.err conftest.$ac_objext \
38864 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38865fi
38866echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
38867echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
38868if test $ac_cv_func_pthread_cancel = yes; then
38869 cat >>confdefs.h <<\_ACEOF
38870#define HAVE_PTHREAD_CANCEL 1
38871_ACEOF
38872
38873else
38874 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
38875echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
38876fi
38877
38878
abc736fd
MW
38879 echo "$as_me:$LINENO: checking for pthread_attr_setstacksize" >&5
38880echo $ECHO_N "checking for pthread_attr_setstacksize... $ECHO_C" >&6
38881if test "${ac_cv_func_pthread_attr_setstacksize+set}" = set; then
38882 echo $ECHO_N "(cached) $ECHO_C" >&6
38883else
38884 cat >conftest.$ac_ext <<_ACEOF
38885/* confdefs.h. */
38886_ACEOF
38887cat confdefs.h >>conftest.$ac_ext
38888cat >>conftest.$ac_ext <<_ACEOF
38889/* end confdefs.h. */
38890/* Define pthread_attr_setstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_setstacksize.
38891 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38892#define pthread_attr_setstacksize innocuous_pthread_attr_setstacksize
38893
38894/* System header to define __stub macros and hopefully few prototypes,
38895 which can conflict with char pthread_attr_setstacksize (); below.
38896 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38897 <limits.h> exists even on freestanding compilers. */
38898
38899#ifdef __STDC__
38900# include <limits.h>
38901#else
38902# include <assert.h>
38903#endif
38904
38905#undef pthread_attr_setstacksize
38906
38907/* Override any gcc2 internal prototype to avoid an error. */
38908#ifdef __cplusplus
38909extern "C"
38910{
38911#endif
38912/* We use char because int might match the return type of a gcc2
38913 builtin and then its argument prototype would still apply. */
38914char pthread_attr_setstacksize ();
38915/* The GNU C library defines this for functions which it implements
38916 to always fail with ENOSYS. Some functions are actually named
38917 something starting with __ and the normal name is an alias. */
38918#if defined (__stub_pthread_attr_setstacksize) || defined (__stub___pthread_attr_setstacksize)
38919choke me
38920#else
38921char (*f) () = pthread_attr_setstacksize;
38922#endif
38923#ifdef __cplusplus
38924}
38925#endif
38926
38927int
38928main ()
38929{
38930return f != pthread_attr_setstacksize;
38931 ;
38932 return 0;
38933}
38934_ACEOF
38935rm -f conftest.$ac_objext conftest$ac_exeext
38936if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38937 (eval $ac_link) 2>conftest.er1
38938 ac_status=$?
38939 grep -v '^ *+' conftest.er1 >conftest.err
38940 rm -f conftest.er1
38941 cat conftest.err >&5
38942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38943 (exit $ac_status); } &&
c9a66001 38944 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
abc736fd
MW
38945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38946 (eval $ac_try) 2>&5
38947 ac_status=$?
38948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38949 (exit $ac_status); }; } &&
38950 { ac_try='test -s conftest$ac_exeext'
38951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38952 (eval $ac_try) 2>&5
38953 ac_status=$?
38954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38955 (exit $ac_status); }; }; then
38956 ac_cv_func_pthread_attr_setstacksize=yes
38957else
38958 echo "$as_me: failed program was:" >&5
38959sed 's/^/| /' conftest.$ac_ext >&5
38960
38961ac_cv_func_pthread_attr_setstacksize=no
38962fi
38963rm -f conftest.err conftest.$ac_objext \
38964 conftest$ac_exeext conftest.$ac_ext
38965fi
38966echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setstacksize" >&5
38967echo "${ECHO_T}$ac_cv_func_pthread_attr_setstacksize" >&6
38968if test $ac_cv_func_pthread_attr_setstacksize = yes; then
38969 cat >>confdefs.h <<\_ACEOF
38970#define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1
38971_ACEOF
38972
38973fi
38974
a848cd7e
SC
38975
38976
38977 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
38978echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
38979if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
38980 echo $ECHO_N "(cached) $ECHO_C" >&6
38981else
38982
38983 cat >conftest.$ac_ext <<_ACEOF
38984/* confdefs.h. */
38985_ACEOF
38986cat confdefs.h >>conftest.$ac_ext
38987cat >>conftest.$ac_ext <<_ACEOF
38988/* end confdefs.h. */
38989#include <pthread.h>
38990int
38991main ()
38992{
38993
38994 pthread_mutexattr_t attr;
38995 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
38996
38997 ;
38998 return 0;
38999}
39000_ACEOF
39001rm -f conftest.$ac_objext
39002if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39003 (eval $ac_compile) 2>conftest.er1
a848cd7e 39004 ac_status=$?
ac1cb8d3
VS
39005 grep -v '^ *+' conftest.er1 >conftest.err
39006 rm -f conftest.er1
39007 cat conftest.err >&5
a848cd7e
SC
39008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39009 (exit $ac_status); } &&
c9a66001 39010 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39012 (eval $ac_try) 2>&5
39013 ac_status=$?
39014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39015 (exit $ac_status); }; } &&
39016 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39018 (eval $ac_try) 2>&5
39019 ac_status=$?
39020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39021 (exit $ac_status); }; }; then
123dca7d 39022 wx_cv_type_pthread_mutexattr_t=yes
a848cd7e
SC
39023else
39024 echo "$as_me: failed program was:" >&5
39025sed 's/^/| /' conftest.$ac_ext >&5
39026
123dca7d 39027wx_cv_type_pthread_mutexattr_t=no
a848cd7e
SC
39028
39029fi
ac1cb8d3 39030rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39031
39032fi
39033echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
39034echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
39035
39036 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
39037 cat >>confdefs.h <<\_ACEOF
39038#define HAVE_PTHREAD_MUTEXATTR_T 1
39039_ACEOF
39040
123dca7d
VZ
39041
39042 echo "$as_me:$LINENO: checking for pthread_mutexattr_settype declaration" >&5
39043echo $ECHO_N "checking for pthread_mutexattr_settype declaration... $ECHO_C" >&6
39044if test "${wx_cv_func_pthread_mutexattr_settype_decl+set}" = set; then
39045 echo $ECHO_N "(cached) $ECHO_C" >&6
39046else
39047
39048 cat >conftest.$ac_ext <<_ACEOF
39049/* confdefs.h. */
39050_ACEOF
39051cat confdefs.h >>conftest.$ac_ext
39052cat >>conftest.$ac_ext <<_ACEOF
39053/* end confdefs.h. */
39054#include <pthread.h>
39055int
39056main ()
39057{
39058
39059 pthread_mutexattr_t attr;
39060 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
39061
39062 ;
39063 return 0;
39064}
39065_ACEOF
39066rm -f conftest.$ac_objext
39067if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39068 (eval $ac_compile) 2>conftest.er1
39069 ac_status=$?
39070 grep -v '^ *+' conftest.er1 >conftest.err
39071 rm -f conftest.er1
39072 cat conftest.err >&5
39073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39074 (exit $ac_status); } &&
c9a66001 39075 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
123dca7d
VZ
39076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39077 (eval $ac_try) 2>&5
39078 ac_status=$?
39079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39080 (exit $ac_status); }; } &&
39081 { ac_try='test -s conftest.$ac_objext'
39082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39083 (eval $ac_try) 2>&5
39084 ac_status=$?
39085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39086 (exit $ac_status); }; }; then
39087 wx_cv_func_pthread_mutexattr_settype_decl=yes
39088else
39089 echo "$as_me: failed program was:" >&5
39090sed 's/^/| /' conftest.$ac_ext >&5
39091
39092wx_cv_func_pthread_mutexattr_settype_decl=no
39093
39094fi
39095rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39096
39097fi
39098echo "$as_me:$LINENO: result: $wx_cv_func_pthread_mutexattr_settype_decl" >&5
39099echo "${ECHO_T}$wx_cv_func_pthread_mutexattr_settype_decl" >&6
39100 if test "$wx_cv_func_pthread_mutexattr_settype_decl" = "yes"; then
39101 cat >>confdefs.h <<\_ACEOF
39102#define HAVE_PTHREAD_MUTEXATTR_SETTYPE_DECL 1
39103_ACEOF
39104
39105 fi
a848cd7e
SC
39106 else
39107 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
39108echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
39109if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
39110 echo $ECHO_N "(cached) $ECHO_C" >&6
39111else
39112
39113 cat >conftest.$ac_ext <<_ACEOF
39114/* confdefs.h. */
39115_ACEOF
39116cat confdefs.h >>conftest.$ac_ext
39117cat >>conftest.$ac_ext <<_ACEOF
39118/* end confdefs.h. */
39119#include <pthread.h>
39120int
39121main ()
39122{
39123
39124 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
39125
39126 ;
39127 return 0;
39128}
39129_ACEOF
39130rm -f conftest.$ac_objext
39131if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39132 (eval $ac_compile) 2>conftest.er1
a848cd7e 39133 ac_status=$?
ac1cb8d3
VS
39134 grep -v '^ *+' conftest.er1 >conftest.err
39135 rm -f conftest.er1
39136 cat conftest.err >&5
a848cd7e
SC
39137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39138 (exit $ac_status); } &&
c9a66001 39139 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39141 (eval $ac_try) 2>&5
39142 ac_status=$?
39143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39144 (exit $ac_status); }; } &&
39145 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39147 (eval $ac_try) 2>&5
39148 ac_status=$?
39149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39150 (exit $ac_status); }; }; then
39151
39152 wx_cv_type_pthread_rec_mutex_init=yes
39153
39154else
39155 echo "$as_me: failed program was:" >&5
39156sed 's/^/| /' conftest.$ac_ext >&5
39157
39158
39159 wx_cv_type_pthread_rec_mutex_init=no
39160
39161
39162fi
ac1cb8d3 39163rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39164
39165fi
39166echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
39167echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
39168 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
39169 cat >>confdefs.h <<\_ACEOF
39170#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
39171_ACEOF
39172
39173 else
39174 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
39175echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
39176 fi
39177 fi
39178 fi
39179
39180else
39181 if test "$wxUSE_THREADS" = "yes" ; then
39182 case "${host}" in
39183 *-*-mingw32* )
39184 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
39185echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
39186if test "${wx_cv_cflags_mthread+set}" = set; then
39187 echo $ECHO_N "(cached) $ECHO_C" >&6
39188else
39189
e56f4f9e
VZ
39190 CXXFLAGS_OLD="$CXXFLAGS"
39191 CXXFLAGS="-mthreads $CXXFLAGS"
a848cd7e
SC
39192 cat >conftest.$ac_ext <<_ACEOF
39193/* confdefs.h. */
39194_ACEOF
39195cat confdefs.h >>conftest.$ac_ext
39196cat >>conftest.$ac_ext <<_ACEOF
39197/* end confdefs.h. */
39198
39199int
39200main ()
39201{
39202
39203 ;
39204 return 0;
39205}
39206_ACEOF
39207rm -f conftest.$ac_objext
39208if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39209 (eval $ac_compile) 2>conftest.er1
a848cd7e 39210 ac_status=$?
ac1cb8d3
VS
39211 grep -v '^ *+' conftest.er1 >conftest.err
39212 rm -f conftest.er1
39213 cat conftest.err >&5
a848cd7e
SC
39214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39215 (exit $ac_status); } &&
c9a66001 39216 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39218 (eval $ac_try) 2>&5
39219 ac_status=$?
39220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39221 (exit $ac_status); }; } &&
39222 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39224 (eval $ac_try) 2>&5
39225 ac_status=$?
39226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39227 (exit $ac_status); }; }; then
39228 wx_cv_cflags_mthread=yes
39229else
39230 echo "$as_me: failed program was:" >&5
39231sed 's/^/| /' conftest.$ac_ext >&5
39232
39233wx_cv_cflags_mthread=no
39234
39235fi
ac1cb8d3 39236rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39237
39238
39239fi
39240echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
39241echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
39242
39243 if test "$wx_cv_cflags_mthread" = "yes"; then
e56f4f9e 39244 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -mthreads"
a848cd7e
SC
39245 LDFLAGS="$LDFLAGS -mthreads"
39246 else
e56f4f9e 39247 CXXFLAGS="$CXXFLAGS_OLD"
a848cd7e
SC
39248 fi
39249 ;;
39250 *-pc-os2*emx )
5ff751d6
VZ
39251 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -Zmt -D__ST_MT_ERRNO__"
39252 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
a848cd7e
SC
39253 LDFLAGS="$LDFLAGS -Zmt"
39254 ;;
39255 esac
39256 fi
39257fi
39258
004ee6da
RL
39259echo "$as_me:$LINENO: checking for localtime_r" >&5
39260echo $ECHO_N "checking for localtime_r... $ECHO_C" >&6
39261if test "${ac_cv_func_localtime_r+set}" = set; then
a848cd7e
SC
39262 echo $ECHO_N "(cached) $ECHO_C" >&6
39263else
39264 cat >conftest.$ac_ext <<_ACEOF
39265/* confdefs.h. */
39266_ACEOF
39267cat confdefs.h >>conftest.$ac_ext
39268cat >>conftest.$ac_ext <<_ACEOF
39269/* end confdefs.h. */
004ee6da 39270/* Define localtime_r to an innocuous variant, in case <limits.h> declares localtime_r.
ac1cb8d3 39271 For example, HP-UX 11i <limits.h> declares gettimeofday. */
004ee6da 39272#define localtime_r innocuous_localtime_r
ac1cb8d3 39273
a848cd7e 39274/* System header to define __stub macros and hopefully few prototypes,
004ee6da 39275 which can conflict with char localtime_r (); below.
a848cd7e
SC
39276 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39277 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 39278
a848cd7e
SC
39279#ifdef __STDC__
39280# include <limits.h>
39281#else
39282# include <assert.h>
39283#endif
ac1cb8d3 39284
004ee6da 39285#undef localtime_r
ac1cb8d3 39286
a848cd7e
SC
39287/* Override any gcc2 internal prototype to avoid an error. */
39288#ifdef __cplusplus
39289extern "C"
39290{
39291#endif
39292/* We use char because int might match the return type of a gcc2
39293 builtin and then its argument prototype would still apply. */
004ee6da 39294char localtime_r ();
a848cd7e
SC
39295/* The GNU C library defines this for functions which it implements
39296 to always fail with ENOSYS. Some functions are actually named
39297 something starting with __ and the normal name is an alias. */
004ee6da 39298#if defined (__stub_localtime_r) || defined (__stub___localtime_r)
a848cd7e
SC
39299choke me
39300#else
004ee6da 39301char (*f) () = localtime_r;
a848cd7e
SC
39302#endif
39303#ifdef __cplusplus
39304}
39305#endif
39306
39307int
39308main ()
39309{
004ee6da
RL
39310return f != localtime_r;
39311 ;
39312 return 0;
39313}
39314_ACEOF
39315rm -f conftest.$ac_objext conftest$ac_exeext
39316if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39317 (eval $ac_link) 2>conftest.er1
39318 ac_status=$?
39319 grep -v '^ *+' conftest.er1 >conftest.err
39320 rm -f conftest.er1
39321 cat conftest.err >&5
39322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39323 (exit $ac_status); } &&
c9a66001 39324 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
39325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39326 (eval $ac_try) 2>&5
39327 ac_status=$?
39328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39329 (exit $ac_status); }; } &&
39330 { ac_try='test -s conftest$ac_exeext'
39331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39332 (eval $ac_try) 2>&5
39333 ac_status=$?
39334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39335 (exit $ac_status); }; }; then
39336 ac_cv_func_localtime_r=yes
39337else
39338 echo "$as_me: failed program was:" >&5
39339sed 's/^/| /' conftest.$ac_ext >&5
39340
39341ac_cv_func_localtime_r=no
39342fi
39343rm -f conftest.err conftest.$ac_objext \
39344 conftest$ac_exeext conftest.$ac_ext
39345fi
39346echo "$as_me:$LINENO: result: $ac_cv_func_localtime_r" >&5
39347echo "${ECHO_T}$ac_cv_func_localtime_r" >&6
39348if test $ac_cv_func_localtime_r = yes; then
39349 cat >>confdefs.h <<\_ACEOF
39350#define HAVE_LOCALTIME_R 1
39351_ACEOF
39352
39353fi
39354
39355echo "$as_me:$LINENO: checking for gmtime_r" >&5
39356echo $ECHO_N "checking for gmtime_r... $ECHO_C" >&6
39357if test "${ac_cv_func_gmtime_r+set}" = set; then
39358 echo $ECHO_N "(cached) $ECHO_C" >&6
39359else
39360 cat >conftest.$ac_ext <<_ACEOF
39361/* confdefs.h. */
39362_ACEOF
39363cat confdefs.h >>conftest.$ac_ext
39364cat >>conftest.$ac_ext <<_ACEOF
39365/* end confdefs.h. */
39366/* Define gmtime_r to an innocuous variant, in case <limits.h> declares gmtime_r.
39367 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39368#define gmtime_r innocuous_gmtime_r
39369
39370/* System header to define __stub macros and hopefully few prototypes,
39371 which can conflict with char gmtime_r (); below.
39372 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39373 <limits.h> exists even on freestanding compilers. */
39374
39375#ifdef __STDC__
39376# include <limits.h>
39377#else
39378# include <assert.h>
39379#endif
39380
39381#undef gmtime_r
39382
39383/* Override any gcc2 internal prototype to avoid an error. */
39384#ifdef __cplusplus
39385extern "C"
39386{
39387#endif
39388/* We use char because int might match the return type of a gcc2
39389 builtin and then its argument prototype would still apply. */
39390char gmtime_r ();
39391/* The GNU C library defines this for functions which it implements
39392 to always fail with ENOSYS. Some functions are actually named
39393 something starting with __ and the normal name is an alias. */
39394#if defined (__stub_gmtime_r) || defined (__stub___gmtime_r)
39395choke me
39396#else
39397char (*f) () = gmtime_r;
39398#endif
39399#ifdef __cplusplus
39400}
39401#endif
39402
39403int
39404main ()
39405{
39406return f != gmtime_r;
39407 ;
39408 return 0;
39409}
39410_ACEOF
39411rm -f conftest.$ac_objext conftest$ac_exeext
39412if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39413 (eval $ac_link) 2>conftest.er1
39414 ac_status=$?
39415 grep -v '^ *+' conftest.er1 >conftest.err
39416 rm -f conftest.er1
39417 cat conftest.err >&5
39418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39419 (exit $ac_status); } &&
c9a66001 39420 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
39421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39422 (eval $ac_try) 2>&5
39423 ac_status=$?
39424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39425 (exit $ac_status); }; } &&
39426 { ac_try='test -s conftest$ac_exeext'
39427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39428 (eval $ac_try) 2>&5
39429 ac_status=$?
39430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39431 (exit $ac_status); }; }; then
39432 ac_cv_func_gmtime_r=yes
39433else
39434 echo "$as_me: failed program was:" >&5
39435sed 's/^/| /' conftest.$ac_ext >&5
39436
39437ac_cv_func_gmtime_r=no
39438fi
39439rm -f conftest.err conftest.$ac_objext \
39440 conftest$ac_exeext conftest.$ac_ext
39441fi
39442echo "$as_me:$LINENO: result: $ac_cv_func_gmtime_r" >&5
39443echo "${ECHO_T}$ac_cv_func_gmtime_r" >&6
39444if test $ac_cv_func_gmtime_r = yes; then
39445 cat >>confdefs.h <<\_ACEOF
39446#define HAVE_GMTIME_R 1
39447_ACEOF
39448
39449fi
39450
39451echo "$as_me:$LINENO: checking for readdir_r" >&5
39452echo $ECHO_N "checking for readdir_r... $ECHO_C" >&6
39453if test "${ac_cv_func_readdir_r+set}" = set; then
39454 echo $ECHO_N "(cached) $ECHO_C" >&6
39455else
39456 cat >conftest.$ac_ext <<_ACEOF
39457/* confdefs.h. */
39458_ACEOF
39459cat confdefs.h >>conftest.$ac_ext
39460cat >>conftest.$ac_ext <<_ACEOF
39461/* end confdefs.h. */
39462/* Define readdir_r to an innocuous variant, in case <limits.h> declares readdir_r.
39463 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39464#define readdir_r innocuous_readdir_r
39465
39466/* System header to define __stub macros and hopefully few prototypes,
39467 which can conflict with char readdir_r (); below.
39468 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39469 <limits.h> exists even on freestanding compilers. */
39470
39471#ifdef __STDC__
39472# include <limits.h>
39473#else
39474# include <assert.h>
39475#endif
39476
39477#undef readdir_r
39478
39479/* Override any gcc2 internal prototype to avoid an error. */
39480#ifdef __cplusplus
39481extern "C"
39482{
39483#endif
39484/* We use char because int might match the return type of a gcc2
39485 builtin and then its argument prototype would still apply. */
39486char readdir_r ();
39487/* The GNU C library defines this for functions which it implements
39488 to always fail with ENOSYS. Some functions are actually named
39489 something starting with __ and the normal name is an alias. */
39490#if defined (__stub_readdir_r) || defined (__stub___readdir_r)
39491choke me
39492#else
39493char (*f) () = readdir_r;
39494#endif
39495#ifdef __cplusplus
39496}
39497#endif
39498
39499int
39500main ()
39501{
39502return f != readdir_r;
39503 ;
39504 return 0;
39505}
39506_ACEOF
39507rm -f conftest.$ac_objext conftest$ac_exeext
39508if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39509 (eval $ac_link) 2>conftest.er1
39510 ac_status=$?
39511 grep -v '^ *+' conftest.er1 >conftest.err
39512 rm -f conftest.er1
39513 cat conftest.err >&5
39514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39515 (exit $ac_status); } &&
c9a66001 39516 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
39517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39518 (eval $ac_try) 2>&5
39519 ac_status=$?
39520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39521 (exit $ac_status); }; } &&
39522 { ac_try='test -s conftest$ac_exeext'
39523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39524 (eval $ac_try) 2>&5
39525 ac_status=$?
39526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39527 (exit $ac_status); }; }; then
39528 ac_cv_func_readdir_r=yes
39529else
39530 echo "$as_me: failed program was:" >&5
39531sed 's/^/| /' conftest.$ac_ext >&5
39532
39533ac_cv_func_readdir_r=no
39534fi
39535rm -f conftest.err conftest.$ac_objext \
39536 conftest$ac_exeext conftest.$ac_ext
39537fi
39538echo "$as_me:$LINENO: result: $ac_cv_func_readdir_r" >&5
39539echo "${ECHO_T}$ac_cv_func_readdir_r" >&6
39540if test $ac_cv_func_readdir_r = yes; then
39541 cat >>confdefs.h <<\_ACEOF
39542#define HAVE_READDIR_R 1
39543_ACEOF
39544
39545fi
39546
004ee6da 39547
004ee6da
RL
39548
39549
39550 ac_ext=c
39551ac_cpp='$CPP $CPPFLAGS'
39552ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39553ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39554ac_compiler_gnu=$ac_cv_c_compiler_gnu
39555
39556 echo "$as_me:$LINENO: checking how many arguments gethostbyname_r() takes" >&5
39557echo $ECHO_N "checking how many arguments gethostbyname_r() takes... $ECHO_C" >&6
39558
39559 if test "${ac_cv_func_which_gethostbyname_r+set}" = set; then
39560 echo $ECHO_N "(cached) $ECHO_C" >&6
39561else
39562
39563
2f6c5bb5 39564################################################################
004ee6da
RL
39565
39566ac_cv_func_which_gethostbyname_r=unknown
39567
39568#
39569# ONE ARGUMENT (sanity check)
39570#
39571
39572# This should fail, as there is no variant of gethostbyname_r() that takes
39573# a single argument. If it actually compiles, then we can assume that
39574# netdb.h is not declaring the function, and the compiler is thereby
39575# assuming an implicit prototype. In which case, we're out of luck.
39576#
39577cat >conftest.$ac_ext <<_ACEOF
39578/* confdefs.h. */
39579_ACEOF
39580cat confdefs.h >>conftest.$ac_ext
39581cat >>conftest.$ac_ext <<_ACEOF
39582/* end confdefs.h. */
39583#include <netdb.h>
39584int
39585main ()
39586{
39587
39588 char *name = "www.gnu.org";
39589 (void)gethostbyname_r(name) /* ; */
39590
39591 ;
39592 return 0;
39593}
39594_ACEOF
39595rm -f conftest.$ac_objext
39596if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39597 (eval $ac_compile) 2>conftest.er1
39598 ac_status=$?
39599 grep -v '^ *+' conftest.er1 >conftest.err
39600 rm -f conftest.er1
39601 cat conftest.err >&5
39602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39603 (exit $ac_status); } &&
c9a66001 39604 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
004ee6da
RL
39605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39606 (eval $ac_try) 2>&5
39607 ac_status=$?
39608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39609 (exit $ac_status); }; } &&
39610 { ac_try='test -s conftest.$ac_objext'
39611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39612 (eval $ac_try) 2>&5
39613 ac_status=$?
39614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39615 (exit $ac_status); }; }; then
39616 ac_cv_func_which_gethostbyname_r=no
39617else
39618 echo "$as_me: failed program was:" >&5
39619sed 's/^/| /' conftest.$ac_ext >&5
39620
39621fi
39622rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39623
39624#
39625# SIX ARGUMENTS
39626# (e.g. Linux)
39627#
39628
39629if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
39630
39631cat >conftest.$ac_ext <<_ACEOF
39632/* confdefs.h. */
39633_ACEOF
39634cat confdefs.h >>conftest.$ac_ext
39635cat >>conftest.$ac_ext <<_ACEOF
39636/* end confdefs.h. */
39637#include <netdb.h>
39638int
39639main ()
39640{
39641
39642 char *name = "www.gnu.org";
39643 struct hostent ret, *retp;
39644 char buf[1024];
39645 int buflen = 1024;
39646 int my_h_errno;
39647 (void)gethostbyname_r(name, &ret, buf, buflen, &retp, &my_h_errno) /* ; */
39648
39649 ;
39650 return 0;
39651}
39652_ACEOF
39653rm -f conftest.$ac_objext
39654if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39655 (eval $ac_compile) 2>conftest.er1
39656 ac_status=$?
39657 grep -v '^ *+' conftest.er1 >conftest.err
39658 rm -f conftest.er1
39659 cat conftest.err >&5
39660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39661 (exit $ac_status); } &&
c9a66001 39662 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
004ee6da
RL
39663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39664 (eval $ac_try) 2>&5
39665 ac_status=$?
39666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39667 (exit $ac_status); }; } &&
39668 { ac_try='test -s conftest.$ac_objext'
39669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39670 (eval $ac_try) 2>&5
39671 ac_status=$?
39672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39673 (exit $ac_status); }; }; then
39674 ac_cv_func_which_gethostbyname_r=six
39675else
39676 echo "$as_me: failed program was:" >&5
39677sed 's/^/| /' conftest.$ac_ext >&5
39678
39679fi
39680rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39681
39682fi
39683
39684#
39685# FIVE ARGUMENTS
39686# (e.g. Solaris)
39687#
39688
39689if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
39690
39691cat >conftest.$ac_ext <<_ACEOF
39692/* confdefs.h. */
39693_ACEOF
39694cat confdefs.h >>conftest.$ac_ext
39695cat >>conftest.$ac_ext <<_ACEOF
39696/* end confdefs.h. */
39697#include <netdb.h>
39698int
39699main ()
39700{
39701
39702 char *name = "www.gnu.org";
39703 struct hostent ret;
39704 char buf[1024];
39705 int buflen = 1024;
39706 int my_h_errno;
39707 (void)gethostbyname_r(name, &ret, buf, buflen, &my_h_errno) /* ; */
39708
39709 ;
39710 return 0;
39711}
39712_ACEOF
39713rm -f conftest.$ac_objext
39714if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39715 (eval $ac_compile) 2>conftest.er1
39716 ac_status=$?
39717 grep -v '^ *+' conftest.er1 >conftest.err
39718 rm -f conftest.er1
39719 cat conftest.err >&5
39720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39721 (exit $ac_status); } &&
c9a66001 39722 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
004ee6da
RL
39723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39724 (eval $ac_try) 2>&5
39725 ac_status=$?
39726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39727 (exit $ac_status); }; } &&
39728 { ac_try='test -s conftest.$ac_objext'
39729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39730 (eval $ac_try) 2>&5
39731 ac_status=$?
39732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39733 (exit $ac_status); }; }; then
39734 ac_cv_func_which_gethostbyname_r=five
39735else
39736 echo "$as_me: failed program was:" >&5
39737sed 's/^/| /' conftest.$ac_ext >&5
39738
39739fi
39740rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39741
39742fi
39743
39744#
39745# THREE ARGUMENTS
39746# (e.g. AIX, HP-UX, Tru64)
39747#
39748
39749if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
39750
39751cat >conftest.$ac_ext <<_ACEOF
39752/* confdefs.h. */
39753_ACEOF
39754cat confdefs.h >>conftest.$ac_ext
39755cat >>conftest.$ac_ext <<_ACEOF
39756/* end confdefs.h. */
39757#include <netdb.h>
39758int
39759main ()
39760{
39761
39762 char *name = "www.gnu.org";
39763 struct hostent ret;
39764 struct hostent_data data;
39765 (void)gethostbyname_r(name, &ret, &data) /* ; */
39766
39767 ;
39768 return 0;
39769}
39770_ACEOF
39771rm -f conftest.$ac_objext
39772if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39773 (eval $ac_compile) 2>conftest.er1
39774 ac_status=$?
39775 grep -v '^ *+' conftest.er1 >conftest.err
39776 rm -f conftest.er1
39777 cat conftest.err >&5
39778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39779 (exit $ac_status); } &&
c9a66001 39780 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
004ee6da
RL
39781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39782 (eval $ac_try) 2>&5
39783 ac_status=$?
39784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39785 (exit $ac_status); }; } &&
39786 { ac_try='test -s conftest.$ac_objext'
39787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39788 (eval $ac_try) 2>&5
39789 ac_status=$?
39790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39791 (exit $ac_status); }; }; then
39792 ac_cv_func_which_gethostbyname_r=three
39793else
39794 echo "$as_me: failed program was:" >&5
39795sed 's/^/| /' conftest.$ac_ext >&5
39796
39797fi
39798rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39799
39800fi
39801
2f6c5bb5 39802################################################################
004ee6da
RL
39803
39804
39805fi
39806
39807case "$ac_cv_func_which_gethostbyname_r" in
39808 three)
39809 echo "$as_me:$LINENO: result: three" >&5
39810echo "${ECHO_T}three" >&6
39811 cat >>confdefs.h <<\_ACEOF
39812#define HAVE_FUNC_GETHOSTBYNAME_R_3 1
39813_ACEOF
39814
39815 ;;
39816
39817 five)
39818 echo "$as_me:$LINENO: result: five" >&5
39819echo "${ECHO_T}five" >&6
39820 cat >>confdefs.h <<\_ACEOF
39821#define HAVE_FUNC_GETHOSTBYNAME_R_5 1
39822_ACEOF
39823
39824 ;;
39825
39826 six)
39827 echo "$as_me:$LINENO: result: six" >&5
39828echo "${ECHO_T}six" >&6
39829 cat >>confdefs.h <<\_ACEOF
39830#define HAVE_FUNC_GETHOSTBYNAME_R_6 1
39831_ACEOF
39832
39833 ;;
39834
39835 no)
39836 echo "$as_me:$LINENO: result: cannot find function declaration in netdb.h" >&5
39837echo "${ECHO_T}cannot find function declaration in netdb.h" >&6
39838 ;;
39839
39840 unknown)
39841 echo "$as_me:$LINENO: result: can't tell" >&5
39842echo "${ECHO_T}can't tell" >&6
39843 ;;
39844
39845 *)
39846 { { echo "$as_me:$LINENO: error: internal error" >&5
39847echo "$as_me: error: internal error" >&2;}
39848 { (exit 1); exit 1; }; }
39849 ;;
39850esac
39851
5ec3bc43
JS
39852ac_ext=cc
39853ac_cpp='$CXXCPP $CPPFLAGS'
39854ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39855ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39856ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
004ee6da
RL
39857
39858
39859
39860 if test "x$ac_cv_func_which_gethostbyname_r" = "xno" -o \
39861 "x$ac_cv_func_which_gethostbyname_r" = "xunknown" ; then
39862 echo "$as_me:$LINENO: checking for gethostbyname" >&5
39863echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
39864if test "${ac_cv_func_gethostbyname+set}" = set; then
39865 echo $ECHO_N "(cached) $ECHO_C" >&6
39866else
39867 cat >conftest.$ac_ext <<_ACEOF
39868/* confdefs.h. */
39869_ACEOF
39870cat confdefs.h >>conftest.$ac_ext
39871cat >>conftest.$ac_ext <<_ACEOF
39872/* end confdefs.h. */
39873/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
39874 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39875#define gethostbyname innocuous_gethostbyname
39876
39877/* System header to define __stub macros and hopefully few prototypes,
39878 which can conflict with char gethostbyname (); below.
39879 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39880 <limits.h> exists even on freestanding compilers. */
39881
39882#ifdef __STDC__
39883# include <limits.h>
39884#else
39885# include <assert.h>
39886#endif
39887
39888#undef gethostbyname
39889
39890/* Override any gcc2 internal prototype to avoid an error. */
39891#ifdef __cplusplus
39892extern "C"
39893{
39894#endif
39895/* We use char because int might match the return type of a gcc2
39896 builtin and then its argument prototype would still apply. */
39897char gethostbyname ();
39898/* The GNU C library defines this for functions which it implements
39899 to always fail with ENOSYS. Some functions are actually named
39900 something starting with __ and the normal name is an alias. */
39901#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
39902choke me
39903#else
39904char (*f) () = gethostbyname;
39905#endif
39906#ifdef __cplusplus
39907}
39908#endif
39909
39910int
39911main ()
39912{
39913return f != gethostbyname;
39914 ;
39915 return 0;
39916}
39917_ACEOF
39918rm -f conftest.$ac_objext conftest$ac_exeext
39919if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39920 (eval $ac_link) 2>conftest.er1
39921 ac_status=$?
39922 grep -v '^ *+' conftest.er1 >conftest.err
39923 rm -f conftest.er1
39924 cat conftest.err >&5
39925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39926 (exit $ac_status); } &&
c9a66001 39927 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
39928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39929 (eval $ac_try) 2>&5
39930 ac_status=$?
39931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39932 (exit $ac_status); }; } &&
39933 { ac_try='test -s conftest$ac_exeext'
39934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39935 (eval $ac_try) 2>&5
39936 ac_status=$?
39937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39938 (exit $ac_status); }; }; then
39939 ac_cv_func_gethostbyname=yes
39940else
39941 echo "$as_me: failed program was:" >&5
39942sed 's/^/| /' conftest.$ac_ext >&5
39943
39944ac_cv_func_gethostbyname=no
39945fi
39946rm -f conftest.err conftest.$ac_objext \
39947 conftest$ac_exeext conftest.$ac_ext
39948fi
39949echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
39950echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
39951if test $ac_cv_func_gethostbyname = yes; then
39952 cat >>confdefs.h <<\_ACEOF
39953#define HAVE_GETHOSTBYNAME 1
39954_ACEOF
39955
39956fi
39957
39958 fi
39959 echo "$as_me:$LINENO: checking for getservbyname_r" >&5
39960echo $ECHO_N "checking for getservbyname_r... $ECHO_C" >&6
3ecd9f92
MW
39961if test "${ac_cv_func_which_getservbyname_r+set}" = set; then
39962 echo $ECHO_N "(cached) $ECHO_C" >&6
39963else
39964
39965echo "$as_me:$LINENO: checking for getservbyname_r" >&5
39966echo $ECHO_N "checking for getservbyname_r... $ECHO_C" >&6
004ee6da
RL
39967if test "${ac_cv_func_getservbyname_r+set}" = set; then
39968 echo $ECHO_N "(cached) $ECHO_C" >&6
39969else
39970 cat >conftest.$ac_ext <<_ACEOF
39971/* confdefs.h. */
39972_ACEOF
39973cat confdefs.h >>conftest.$ac_ext
39974cat >>conftest.$ac_ext <<_ACEOF
39975/* end confdefs.h. */
39976/* Define getservbyname_r to an innocuous variant, in case <limits.h> declares getservbyname_r.
39977 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39978#define getservbyname_r innocuous_getservbyname_r
39979
39980/* System header to define __stub macros and hopefully few prototypes,
39981 which can conflict with char getservbyname_r (); below.
39982 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39983 <limits.h> exists even on freestanding compilers. */
39984
39985#ifdef __STDC__
39986# include <limits.h>
39987#else
39988# include <assert.h>
39989#endif
39990
39991#undef getservbyname_r
39992
39993/* Override any gcc2 internal prototype to avoid an error. */
39994#ifdef __cplusplus
39995extern "C"
39996{
39997#endif
39998/* We use char because int might match the return type of a gcc2
39999 builtin and then its argument prototype would still apply. */
40000char getservbyname_r ();
40001/* The GNU C library defines this for functions which it implements
40002 to always fail with ENOSYS. Some functions are actually named
40003 something starting with __ and the normal name is an alias. */
40004#if defined (__stub_getservbyname_r) || defined (__stub___getservbyname_r)
40005choke me
40006#else
40007char (*f) () = getservbyname_r;
40008#endif
40009#ifdef __cplusplus
40010}
40011#endif
40012
40013int
40014main ()
40015{
40016return f != getservbyname_r;
40017 ;
40018 return 0;
40019}
40020_ACEOF
40021rm -f conftest.$ac_objext conftest$ac_exeext
40022if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40023 (eval $ac_link) 2>conftest.er1
40024 ac_status=$?
40025 grep -v '^ *+' conftest.er1 >conftest.err
40026 rm -f conftest.er1
40027 cat conftest.err >&5
40028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40029 (exit $ac_status); } &&
c9a66001 40030 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
40031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40032 (eval $ac_try) 2>&5
40033 ac_status=$?
40034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40035 (exit $ac_status); }; } &&
40036 { ac_try='test -s conftest$ac_exeext'
40037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40038 (eval $ac_try) 2>&5
40039 ac_status=$?
40040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40041 (exit $ac_status); }; }; then
40042 ac_cv_func_getservbyname_r=yes
40043else
40044 echo "$as_me: failed program was:" >&5
40045sed 's/^/| /' conftest.$ac_ext >&5
40046
40047ac_cv_func_getservbyname_r=no
40048fi
40049rm -f conftest.err conftest.$ac_objext \
40050 conftest$ac_exeext conftest.$ac_ext
40051fi
40052echo "$as_me:$LINENO: result: $ac_cv_func_getservbyname_r" >&5
40053echo "${ECHO_T}$ac_cv_func_getservbyname_r" >&6
40054if test $ac_cv_func_getservbyname_r = yes; then
3ecd9f92
MW
40055
40056 cat >conftest.$ac_ext <<_ACEOF
004ee6da
RL
40057/* confdefs.h. */
40058_ACEOF
40059cat confdefs.h >>conftest.$ac_ext
40060cat >>conftest.$ac_ext <<_ACEOF
40061/* end confdefs.h. */
3ecd9f92
MW
40062
40063# include <netdb.h>
40064
004ee6da
RL
40065int
40066main ()
40067{
40068
3ecd9f92
MW
40069
40070 char *name;
40071 char *proto;
40072 struct servent *se;
40073 struct servent_data data;
40074 (void) getservbyname_r(name, proto, se, &data);
40075
004ee6da
RL
40076
40077 ;
40078 return 0;
40079}
40080_ACEOF
40081rm -f conftest.$ac_objext
40082if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40083 (eval $ac_compile) 2>conftest.er1
40084 ac_status=$?
40085 grep -v '^ *+' conftest.er1 >conftest.err
40086 rm -f conftest.er1
40087 cat conftest.err >&5
40088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40089 (exit $ac_status); } &&
c9a66001 40090 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
40091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40092 (eval $ac_try) 2>&5
40093 ac_status=$?
40094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40095 (exit $ac_status); }; } &&
40096 { ac_try='test -s conftest.$ac_objext'
40097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40098 (eval $ac_try) 2>&5
40099 ac_status=$?
40100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40101 (exit $ac_status); }; }; then
40102 ac_cv_func_which_getservbyname_r=four
40103else
40104 echo "$as_me: failed program was:" >&5
40105sed 's/^/| /' conftest.$ac_ext >&5
40106
3ecd9f92
MW
40107
40108 cat >conftest.$ac_ext <<_ACEOF
004ee6da
RL
40109/* confdefs.h. */
40110_ACEOF
40111cat confdefs.h >>conftest.$ac_ext
40112cat >>conftest.$ac_ext <<_ACEOF
40113/* end confdefs.h. */
3ecd9f92
MW
40114
40115# include <netdb.h>
40116
004ee6da
RL
40117int
40118main ()
40119{
40120
3ecd9f92
MW
40121 char *name;
40122 char *proto;
40123 struct servent *se, *res;
40124 char buffer[2048];
40125 int buflen = 2048;
40126 (void) getservbyname_r(name, proto, se, buffer, buflen, &res)
004ee6da
RL
40127
40128 ;
40129 return 0;
40130}
40131_ACEOF
40132rm -f conftest.$ac_objext
40133if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40134 (eval $ac_compile) 2>conftest.er1
40135 ac_status=$?
40136 grep -v '^ *+' conftest.er1 >conftest.err
40137 rm -f conftest.er1
40138 cat conftest.err >&5
40139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40140 (exit $ac_status); } &&
c9a66001 40141 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
40142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40143 (eval $ac_try) 2>&5
40144 ac_status=$?
40145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40146 (exit $ac_status); }; } &&
40147 { ac_try='test -s conftest.$ac_objext'
40148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40149 (eval $ac_try) 2>&5
40150 ac_status=$?
40151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40152 (exit $ac_status); }; }; then
40153 ac_cv_func_which_getservbyname_r=six
40154else
40155 echo "$as_me: failed program was:" >&5
40156sed 's/^/| /' conftest.$ac_ext >&5
40157
3ecd9f92
MW
40158
40159 cat >conftest.$ac_ext <<_ACEOF
004ee6da
RL
40160/* confdefs.h. */
40161_ACEOF
40162cat confdefs.h >>conftest.$ac_ext
40163cat >>conftest.$ac_ext <<_ACEOF
40164/* end confdefs.h. */
3ecd9f92
MW
40165
40166# include <netdb.h>
40167
004ee6da
RL
40168int
40169main ()
40170{
40171
3ecd9f92
MW
40172 char *name;
40173 char *proto;
40174 struct servent *se;
40175 char buffer[2048];
40176 int buflen = 2048;
40177 (void) getservbyname_r(name, proto, se, buffer, buflen)
004ee6da
RL
40178
40179 ;
40180 return 0;
40181}
40182_ACEOF
40183rm -f conftest.$ac_objext
40184if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40185 (eval $ac_compile) 2>conftest.er1
40186 ac_status=$?
40187 grep -v '^ *+' conftest.er1 >conftest.err
40188 rm -f conftest.er1
40189 cat conftest.err >&5
40190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40191 (exit $ac_status); } &&
c9a66001 40192 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
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); }; } &&
40198 { ac_try='test -s conftest.$ac_objext'
40199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40200 (eval $ac_try) 2>&5
40201 ac_status=$?
40202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40203 (exit $ac_status); }; }; then
40204 ac_cv_func_which_getservbyname_r=five
40205else
40206 echo "$as_me: failed program was:" >&5
40207sed 's/^/| /' conftest.$ac_ext >&5
40208
40209ac_cv_func_which_getservbyname_r=no
40210fi
40211rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40212
3ecd9f92
MW
40213
40214
40215
004ee6da
RL
40216fi
40217rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40218
3ecd9f92 40219
004ee6da
RL
40220fi
40221rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3ecd9f92 40222
004ee6da
RL
40223else
40224 ac_cv_func_which_getservbyname_r=no
40225fi
40226
3ecd9f92
MW
40227fi
40228echo "$as_me:$LINENO: result: $ac_cv_func_which_getservbyname_r" >&5
40229echo "${ECHO_T}$ac_cv_func_which_getservbyname_r" >&6
004ee6da
RL
40230
40231if test $ac_cv_func_which_getservbyname_r = six; then
40232 cat >>confdefs.h <<\_ACEOF
40233#define HAVE_FUNC_GETSERVBYNAME_R_6 1
40234_ACEOF
40235
40236elif test $ac_cv_func_which_getservbyname_r = five; then
40237 cat >>confdefs.h <<\_ACEOF
40238#define HAVE_FUNC_GETSERVBYNAME_R_5 1
40239_ACEOF
40240
40241elif test $ac_cv_func_which_getservbyname_r = four; then
40242 cat >>confdefs.h <<\_ACEOF
40243#define HAVE_FUNC_GETSERVBYNAME_R_4 1
40244_ACEOF
40245
3ecd9f92 40246
004ee6da
RL
40247fi
40248
40249
40250 if test "x$ac_cv_func_which_getservbyname_r" = "xno" -o \
40251 "x$ac_cv_func_which_getservbyname_r" = "xunknown" ; then
40252
40253for ac_func in getservbyname
40254do
40255as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40256echo "$as_me:$LINENO: checking for $ac_func" >&5
40257echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40258if eval "test \"\${$as_ac_var+set}\" = set"; then
40259 echo $ECHO_N "(cached) $ECHO_C" >&6
40260else
40261 cat >conftest.$ac_ext <<_ACEOF
40262/* confdefs.h. */
40263_ACEOF
40264cat confdefs.h >>conftest.$ac_ext
40265cat >>conftest.$ac_ext <<_ACEOF
40266/* end confdefs.h. */
40267/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40268 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40269#define $ac_func innocuous_$ac_func
40270
40271/* System header to define __stub macros and hopefully few prototypes,
40272 which can conflict with char $ac_func (); below.
40273 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40274 <limits.h> exists even on freestanding compilers. */
40275
40276#ifdef __STDC__
40277# include <limits.h>
40278#else
40279# include <assert.h>
40280#endif
40281
40282#undef $ac_func
40283
40284/* Override any gcc2 internal prototype to avoid an error. */
40285#ifdef __cplusplus
40286extern "C"
40287{
40288#endif
40289/* We use char because int might match the return type of a gcc2
40290 builtin and then its argument prototype would still apply. */
40291char $ac_func ();
40292/* The GNU C library defines this for functions which it implements
40293 to always fail with ENOSYS. Some functions are actually named
40294 something starting with __ and the normal name is an alias. */
40295#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40296choke me
40297#else
40298char (*f) () = $ac_func;
40299#endif
40300#ifdef __cplusplus
40301}
40302#endif
40303
40304int
40305main ()
40306{
40307return f != $ac_func;
40308 ;
40309 return 0;
40310}
40311_ACEOF
40312rm -f conftest.$ac_objext conftest$ac_exeext
40313if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40314 (eval $ac_link) 2>conftest.er1
40315 ac_status=$?
40316 grep -v '^ *+' conftest.er1 >conftest.err
40317 rm -f conftest.er1
40318 cat conftest.err >&5
40319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40320 (exit $ac_status); } &&
c9a66001 40321 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
40322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40323 (eval $ac_try) 2>&5
40324 ac_status=$?
40325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40326 (exit $ac_status); }; } &&
40327 { ac_try='test -s conftest$ac_exeext'
40328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40329 (eval $ac_try) 2>&5
40330 ac_status=$?
40331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40332 (exit $ac_status); }; }; then
40333 eval "$as_ac_var=yes"
40334else
40335 echo "$as_me: failed program was:" >&5
40336sed 's/^/| /' conftest.$ac_ext >&5
40337
40338eval "$as_ac_var=no"
40339fi
40340rm -f conftest.err conftest.$ac_objext \
40341 conftest$ac_exeext conftest.$ac_ext
40342fi
40343echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40344echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40345if test `eval echo '${'$as_ac_var'}'` = yes; then
40346 cat >>confdefs.h <<_ACEOF
40347#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40348_ACEOF
40349 cat >>confdefs.h <<\_ACEOF
40350#define HAVE_GETSERVBYNAME 1
40351_ACEOF
40352
40353fi
40354done
40355
40356 fi
40357
004ee6da
RL
40358if test "$wxUSE_THREADS" = "yes"; then
40359 cat >>confdefs.h <<\_ACEOF
40360#define wxUSE_THREADS 1
40361_ACEOF
40362
40363
40364 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
40365else
40366 if test "$ac_cv_func_strtok_r" = "yes"; then
40367 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
40368echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
40369 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
40370 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_REENTRANT"
40371 echo "$as_me:$LINENO: result: yes" >&5
40372echo "${ECHO_T}yes" >&6
40373 else
40374 echo "$as_me:$LINENO: result: no" >&5
40375echo "${ECHO_T}no" >&6
40376 fi
40377 fi
40378fi
40379
40380if test "$WXGTK20" = 1 ; then
40381 cat >>confdefs.h <<_ACEOF
40382#define __WXGTK20__ $WXGTK20
40383_ACEOF
40384
40385 WXGTK12=1
40386fi
40387
40388if test "$WXGTK12" = 1 ; then
40389 cat >>confdefs.h <<_ACEOF
40390#define __WXGTK12__ $WXGTK12
40391_ACEOF
40392
40393fi
40394
40395if test "$WXGTK127" = 1 ; then
40396 cat >>confdefs.h <<_ACEOF
40397#define __WXGTK127__ $WXGTK127
40398_ACEOF
40399
40400fi
40401
40402if test "$WXGPE" = 1 ; then
40403 cat >>confdefs.h <<_ACEOF
40404#define __WXGPE__ $WXGPE
40405_ACEOF
40406
40407fi
40408
40409DEBUG_CFLAGS=
40410if test "$wxUSE_DEBUG_INFO" = "yes" ; then
40411 DEBUG_CFLAGS="-g"
40412 wxUSE_OPTIMISE=no
40413fi
40414
40415if test "$wxUSE_DEBUG_GDB" = "yes" ; then
40416 wxUSE_DEBUG_INFO=yes
40417 if test "$GCC" = yes; then
40418 DEBUG_CFLAGS="-ggdb"
40419 fi
40420fi
40421
40422if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
40423 cat >>confdefs.h <<\_ACEOF
40424#define WXDEBUG 1
40425_ACEOF
40426
40427 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D__WXDEBUG__"
40428else
40429 if test "$wxUSE_GTK" = 1 ; then
99879bbf
MR
40430 if test "x$wxGTK_VERSION" = "x1" ; then
40431 CPPFLAGS="-DGTK_NO_CHECK_CASTS $CPPFLAGS"
40432 fi
004ee6da
RL
40433 fi
40434fi
40435
40436if test "$wxUSE_MEM_TRACING" = "yes" ; then
40437 cat >>confdefs.h <<\_ACEOF
40438#define wxUSE_MEMORY_TRACING 1
40439_ACEOF
40440
40441 cat >>confdefs.h <<\_ACEOF
40442#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
40443_ACEOF
40444
40445 cat >>confdefs.h <<\_ACEOF
40446#define wxUSE_DEBUG_NEW_ALWAYS 1
40447_ACEOF
40448
40449 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
40450fi
40451
40452if test "$wxUSE_DMALLOC" = "yes" ; then
40453 DMALLOC_LIBS="-ldmallocthcxx"
40454fi
40455
40456PROFILE_FLAGS=
40457if test "$wxUSE_PROFILE" = "yes" ; then
40458 PROFILE_FLAGS=" -pg"
40459fi
40460
40461if test "$GCC" = "yes" ; then
40462 if test "$wxUSE_NO_RTTI" = "yes" ; then
40463 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-rtti"
40464 fi
40465 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
40466 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-exceptions"
40467 fi
40468 if test "$wxUSE_PERMISSIVE" = "yes" ; then
40469 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -fpermissive"
40470 fi
40471
40472 case "${host}" in
40473 powerpc*-*-aix* )
40474 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mminimal-toc"
40475 ;;
40476 *-hppa* )
40477 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -ffunction-sections"
40478 ;;
40479 esac
40480fi
40481
40482OPTIMISE_CFLAGS=
40483if test "$wxUSE_OPTIMISE" = "no" ; then
40484 if test "$GCC" = yes ; then
40485 OPTIMISE_CFLAGS="-O0"
40486 fi
40487else
40488 if test "$GCC" = yes ; then
e5efa97e
VZ
40489 case "${host}" in
40490 *-pc-os2_emx | *-pc-os2-emx )
40491 OPTIMISE_CFLAGS="-O2"
40492 ;;
40493 *)
40494 OPTIMISE_CFLAGS="-O2 -fno-strict-aliasing"
40495 ;;
40496 esac
004ee6da
RL
40497 else
40498 OPTIMISE_CFLAGS="-O"
40499 fi
40500fi
40501
40502
40503if test "x$WXWIN_COMPATIBILITY_2_4" = "xyes"; then
40504 cat >>confdefs.h <<\_ACEOF
40505#define WXWIN_COMPATIBILITY_2_4 1
40506_ACEOF
40507
40508
40509 WXWIN_COMPATIBILITY_2_6="yes"
40510fi
40511
40512if test "x$WXWIN_COMPATIBILITY_2_6" != "xno"; then
40513 cat >>confdefs.h <<\_ACEOF
40514#define WXWIN_COMPATIBILITY_2_6 1
40515_ACEOF
40516
40517fi
40518
40519
40520if test "$wxUSE_GUI" = "yes"; then
40521 cat >>confdefs.h <<\_ACEOF
40522#define wxUSE_GUI 1
40523_ACEOF
40524
40525
40526 fi
40527
40528
40529if test "$wxUSE_UNIX" = "yes"; then
40530 cat >>confdefs.h <<\_ACEOF
40531#define wxUSE_UNIX 1
40532_ACEOF
40533
40534fi
40535
40536
40537if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
40538
40539 HAVE_DL_FUNCS=0
40540 HAVE_SHL_FUNCS=0
40541 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
40542 if test "$USE_DARWIN" = 1; then
40543 HAVE_DL_FUNCS=1
40544 elif test "$USE_DOS" = 1; then
40545 HAVE_DL_FUNCS=0
40546 else
40547
40548for ac_func in dlopen
40549do
40550as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40551echo "$as_me:$LINENO: checking for $ac_func" >&5
40552echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40553if eval "test \"\${$as_ac_var+set}\" = set"; then
40554 echo $ECHO_N "(cached) $ECHO_C" >&6
40555else
40556 cat >conftest.$ac_ext <<_ACEOF
40557/* confdefs.h. */
40558_ACEOF
40559cat confdefs.h >>conftest.$ac_ext
40560cat >>conftest.$ac_ext <<_ACEOF
40561/* end confdefs.h. */
40562/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40563 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40564#define $ac_func innocuous_$ac_func
40565
40566/* System header to define __stub macros and hopefully few prototypes,
40567 which can conflict with char $ac_func (); below.
40568 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40569 <limits.h> exists even on freestanding compilers. */
40570
40571#ifdef __STDC__
40572# include <limits.h>
40573#else
40574# include <assert.h>
40575#endif
40576
40577#undef $ac_func
40578
40579/* Override any gcc2 internal prototype to avoid an error. */
40580#ifdef __cplusplus
40581extern "C"
40582{
40583#endif
40584/* We use char because int might match the return type of a gcc2
40585 builtin and then its argument prototype would still apply. */
40586char $ac_func ();
40587/* The GNU C library defines this for functions which it implements
40588 to always fail with ENOSYS. Some functions are actually named
40589 something starting with __ and the normal name is an alias. */
40590#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40591choke me
40592#else
40593char (*f) () = $ac_func;
40594#endif
40595#ifdef __cplusplus
40596}
40597#endif
40598
40599int
40600main ()
40601{
40602return f != $ac_func;
a848cd7e
SC
40603 ;
40604 return 0;
40605}
40606_ACEOF
40607rm -f conftest.$ac_objext conftest$ac_exeext
40608if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40609 (eval $ac_link) 2>conftest.er1
a848cd7e 40610 ac_status=$?
ac1cb8d3
VS
40611 grep -v '^ *+' conftest.er1 >conftest.err
40612 rm -f conftest.er1
40613 cat conftest.err >&5
a848cd7e
SC
40614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40615 (exit $ac_status); } &&
c9a66001 40616 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40618 (eval $ac_try) 2>&5
40619 ac_status=$?
40620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40621 (exit $ac_status); }; } &&
40622 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40624 (eval $ac_try) 2>&5
40625 ac_status=$?
40626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40627 (exit $ac_status); }; }; then
40628 eval "$as_ac_var=yes"
40629else
40630 echo "$as_me: failed program was:" >&5
40631sed 's/^/| /' conftest.$ac_ext >&5
40632
40633eval "$as_ac_var=no"
40634fi
ac1cb8d3
VS
40635rm -f conftest.err conftest.$ac_objext \
40636 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40637fi
40638echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40639echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40640if test `eval echo '${'$as_ac_var'}'` = yes; then
40641 cat >>confdefs.h <<_ACEOF
40642#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40643_ACEOF
40644
40645 cat >>confdefs.h <<\_ACEOF
40646#define HAVE_DLOPEN 1
40647_ACEOF
40648
40649 HAVE_DL_FUNCS=1
40650
40651else
40652
40653 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
40654echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
40655if test "${ac_cv_lib_dl_dlopen+set}" = set; then
40656 echo $ECHO_N "(cached) $ECHO_C" >&6
40657else
40658 ac_check_lib_save_LIBS=$LIBS
40659LIBS="-ldl $LIBS"
40660cat >conftest.$ac_ext <<_ACEOF
40661/* confdefs.h. */
40662_ACEOF
40663cat confdefs.h >>conftest.$ac_ext
40664cat >>conftest.$ac_ext <<_ACEOF
40665/* end confdefs.h. */
40666
40667/* Override any gcc2 internal prototype to avoid an error. */
40668#ifdef __cplusplus
40669extern "C"
40670#endif
40671/* We use char because int might match the return type of a gcc2
40672 builtin and then its argument prototype would still apply. */
40673char dlopen ();
40674int
40675main ()
40676{
40677dlopen ();
40678 ;
40679 return 0;
40680}
40681_ACEOF
40682rm -f conftest.$ac_objext conftest$ac_exeext
40683if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40684 (eval $ac_link) 2>conftest.er1
a848cd7e 40685 ac_status=$?
ac1cb8d3
VS
40686 grep -v '^ *+' conftest.er1 >conftest.err
40687 rm -f conftest.er1
40688 cat conftest.err >&5
a848cd7e
SC
40689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40690 (exit $ac_status); } &&
c9a66001 40691 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40693 (eval $ac_try) 2>&5
40694 ac_status=$?
40695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40696 (exit $ac_status); }; } &&
40697 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40699 (eval $ac_try) 2>&5
40700 ac_status=$?
40701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40702 (exit $ac_status); }; }; then
40703 ac_cv_lib_dl_dlopen=yes
40704else
40705 echo "$as_me: failed program was:" >&5
40706sed 's/^/| /' conftest.$ac_ext >&5
40707
40708ac_cv_lib_dl_dlopen=no
40709fi
ac1cb8d3
VS
40710rm -f conftest.err conftest.$ac_objext \
40711 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40712LIBS=$ac_check_lib_save_LIBS
40713fi
40714echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
40715echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
40716if test $ac_cv_lib_dl_dlopen = yes; then
40717
40718 cat >>confdefs.h <<\_ACEOF
40719#define HAVE_DLOPEN 1
40720_ACEOF
40721
40722 HAVE_DL_FUNCS=1
40723 DL_LINK=" -ldl$DL_LINK"
40724
40725else
40726
40727
40728for ac_func in shl_load
40729do
40730as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40731echo "$as_me:$LINENO: checking for $ac_func" >&5
40732echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40733if eval "test \"\${$as_ac_var+set}\" = set"; then
40734 echo $ECHO_N "(cached) $ECHO_C" >&6
40735else
40736 cat >conftest.$ac_ext <<_ACEOF
40737/* confdefs.h. */
40738_ACEOF
40739cat confdefs.h >>conftest.$ac_ext
40740cat >>conftest.$ac_ext <<_ACEOF
40741/* end confdefs.h. */
ac1cb8d3
VS
40742/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40743 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40744#define $ac_func innocuous_$ac_func
40745
a848cd7e
SC
40746/* System header to define __stub macros and hopefully few prototypes,
40747 which can conflict with char $ac_func (); below.
40748 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40749 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40750
a848cd7e
SC
40751#ifdef __STDC__
40752# include <limits.h>
40753#else
40754# include <assert.h>
40755#endif
ac1cb8d3
VS
40756
40757#undef $ac_func
40758
a848cd7e
SC
40759/* Override any gcc2 internal prototype to avoid an error. */
40760#ifdef __cplusplus
40761extern "C"
40762{
40763#endif
40764/* We use char because int might match the return type of a gcc2
40765 builtin and then its argument prototype would still apply. */
40766char $ac_func ();
40767/* The GNU C library defines this for functions which it implements
40768 to always fail with ENOSYS. Some functions are actually named
40769 something starting with __ and the normal name is an alias. */
40770#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40771choke me
40772#else
40773char (*f) () = $ac_func;
40774#endif
40775#ifdef __cplusplus
40776}
40777#endif
40778
40779int
40780main ()
40781{
40782return f != $ac_func;
40783 ;
40784 return 0;
40785}
40786_ACEOF
40787rm -f conftest.$ac_objext conftest$ac_exeext
40788if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40789 (eval $ac_link) 2>conftest.er1
a848cd7e 40790 ac_status=$?
ac1cb8d3
VS
40791 grep -v '^ *+' conftest.er1 >conftest.err
40792 rm -f conftest.er1
40793 cat conftest.err >&5
a848cd7e
SC
40794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40795 (exit $ac_status); } &&
c9a66001 40796 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40798 (eval $ac_try) 2>&5
40799 ac_status=$?
40800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40801 (exit $ac_status); }; } &&
40802 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40804 (eval $ac_try) 2>&5
40805 ac_status=$?
40806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40807 (exit $ac_status); }; }; then
40808 eval "$as_ac_var=yes"
40809else
40810 echo "$as_me: failed program was:" >&5
40811sed 's/^/| /' conftest.$ac_ext >&5
40812
40813eval "$as_ac_var=no"
40814fi
ac1cb8d3
VS
40815rm -f conftest.err conftest.$ac_objext \
40816 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40817fi
40818echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40819echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40820if test `eval echo '${'$as_ac_var'}'` = yes; then
40821 cat >>confdefs.h <<_ACEOF
40822#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40823_ACEOF
40824
40825 cat >>confdefs.h <<\_ACEOF
40826#define HAVE_SHL_LOAD 1
40827_ACEOF
40828
40829 HAVE_SHL_FUNCS=1
40830
40831else
40832
40833 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
40834echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
40835if test "${ac_cv_lib_shl_load_dld+set}" = set; then
40836 echo $ECHO_N "(cached) $ECHO_C" >&6
40837else
40838 ac_check_lib_save_LIBS=$LIBS
40839LIBS="-lshl_load $LIBS"
40840cat >conftest.$ac_ext <<_ACEOF
40841/* confdefs.h. */
40842_ACEOF
40843cat confdefs.h >>conftest.$ac_ext
40844cat >>conftest.$ac_ext <<_ACEOF
40845/* end confdefs.h. */
40846
40847/* Override any gcc2 internal prototype to avoid an error. */
40848#ifdef __cplusplus
40849extern "C"
40850#endif
40851/* We use char because int might match the return type of a gcc2
40852 builtin and then its argument prototype would still apply. */
40853char dld ();
40854int
40855main ()
40856{
40857dld ();
40858 ;
40859 return 0;
40860}
40861_ACEOF
40862rm -f conftest.$ac_objext conftest$ac_exeext
40863if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40864 (eval $ac_link) 2>conftest.er1
a848cd7e 40865 ac_status=$?
ac1cb8d3
VS
40866 grep -v '^ *+' conftest.er1 >conftest.err
40867 rm -f conftest.er1
40868 cat conftest.err >&5
a848cd7e
SC
40869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40870 (exit $ac_status); } &&
c9a66001 40871 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40873 (eval $ac_try) 2>&5
40874 ac_status=$?
40875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40876 (exit $ac_status); }; } &&
40877 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40879 (eval $ac_try) 2>&5
40880 ac_status=$?
40881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40882 (exit $ac_status); }; }; then
40883 ac_cv_lib_shl_load_dld=yes
40884else
40885 echo "$as_me: failed program was:" >&5
40886sed 's/^/| /' conftest.$ac_ext >&5
40887
40888ac_cv_lib_shl_load_dld=no
40889fi
ac1cb8d3
VS
40890rm -f conftest.err conftest.$ac_objext \
40891 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40892LIBS=$ac_check_lib_save_LIBS
40893fi
40894echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
40895echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
40896if test $ac_cv_lib_shl_load_dld = yes; then
40897
40898 HAVE_SHL_FUNCS=1
40899 DL_LINK=" -ldld$DL_LINK"
40900
40901fi
40902
40903
40904fi
40905done
40906
40907
40908fi
40909
40910
40911fi
40912done
40913
40914
40915 if test "$HAVE_DL_FUNCS" = 1; then
40916
40917for ac_func in dlerror
40918do
40919as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40920echo "$as_me:$LINENO: checking for $ac_func" >&5
40921echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40922if eval "test \"\${$as_ac_var+set}\" = set"; then
40923 echo $ECHO_N "(cached) $ECHO_C" >&6
40924else
40925 cat >conftest.$ac_ext <<_ACEOF
40926/* confdefs.h. */
40927_ACEOF
40928cat confdefs.h >>conftest.$ac_ext
40929cat >>conftest.$ac_ext <<_ACEOF
40930/* end confdefs.h. */
ac1cb8d3
VS
40931/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40932 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40933#define $ac_func innocuous_$ac_func
40934
a848cd7e
SC
40935/* System header to define __stub macros and hopefully few prototypes,
40936 which can conflict with char $ac_func (); below.
40937 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40938 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40939
a848cd7e
SC
40940#ifdef __STDC__
40941# include <limits.h>
40942#else
40943# include <assert.h>
40944#endif
ac1cb8d3
VS
40945
40946#undef $ac_func
40947
a848cd7e
SC
40948/* Override any gcc2 internal prototype to avoid an error. */
40949#ifdef __cplusplus
40950extern "C"
40951{
40952#endif
40953/* We use char because int might match the return type of a gcc2
40954 builtin and then its argument prototype would still apply. */
40955char $ac_func ();
40956/* The GNU C library defines this for functions which it implements
40957 to always fail with ENOSYS. Some functions are actually named
40958 something starting with __ and the normal name is an alias. */
40959#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40960choke me
40961#else
40962char (*f) () = $ac_func;
40963#endif
40964#ifdef __cplusplus
40965}
40966#endif
40967
40968int
40969main ()
40970{
40971return f != $ac_func;
40972 ;
40973 return 0;
40974}
40975_ACEOF
40976rm -f conftest.$ac_objext conftest$ac_exeext
40977if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40978 (eval $ac_link) 2>conftest.er1
a848cd7e 40979 ac_status=$?
ac1cb8d3
VS
40980 grep -v '^ *+' conftest.er1 >conftest.err
40981 rm -f conftest.er1
40982 cat conftest.err >&5
a848cd7e
SC
40983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40984 (exit $ac_status); } &&
c9a66001 40985 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40987 (eval $ac_try) 2>&5
40988 ac_status=$?
40989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40990 (exit $ac_status); }; } &&
40991 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40993 (eval $ac_try) 2>&5
40994 ac_status=$?
40995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40996 (exit $ac_status); }; }; then
40997 eval "$as_ac_var=yes"
40998else
40999 echo "$as_me: failed program was:" >&5
41000sed 's/^/| /' conftest.$ac_ext >&5
41001
41002eval "$as_ac_var=no"
41003fi
ac1cb8d3
VS
41004rm -f conftest.err conftest.$ac_objext \
41005 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41006fi
41007echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41008echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41009if test `eval echo '${'$as_ac_var'}'` = yes; then
41010 cat >>confdefs.h <<_ACEOF
41011#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41012_ACEOF
41013 cat >>confdefs.h <<\_ACEOF
41014#define HAVE_DLERROR 1
41015_ACEOF
41016
41017else
41018
41019 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
41020echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
41021if test "${ac_cv_lib_dl_dlerror+set}" = set; then
41022 echo $ECHO_N "(cached) $ECHO_C" >&6
41023else
41024 ac_check_lib_save_LIBS=$LIBS
41025LIBS="-ldl $LIBS"
41026cat >conftest.$ac_ext <<_ACEOF
41027/* confdefs.h. */
41028_ACEOF
41029cat confdefs.h >>conftest.$ac_ext
41030cat >>conftest.$ac_ext <<_ACEOF
41031/* end confdefs.h. */
41032
41033/* Override any gcc2 internal prototype to avoid an error. */
41034#ifdef __cplusplus
41035extern "C"
41036#endif
41037/* We use char because int might match the return type of a gcc2
41038 builtin and then its argument prototype would still apply. */
41039char dlerror ();
41040int
41041main ()
41042{
41043dlerror ();
41044 ;
41045 return 0;
41046}
41047_ACEOF
41048rm -f conftest.$ac_objext conftest$ac_exeext
41049if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41050 (eval $ac_link) 2>conftest.er1
a848cd7e 41051 ac_status=$?
ac1cb8d3
VS
41052 grep -v '^ *+' conftest.er1 >conftest.err
41053 rm -f conftest.er1
41054 cat conftest.err >&5
a848cd7e
SC
41055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41056 (exit $ac_status); } &&
c9a66001 41057 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41059 (eval $ac_try) 2>&5
41060 ac_status=$?
41061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41062 (exit $ac_status); }; } &&
41063 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41065 (eval $ac_try) 2>&5
41066 ac_status=$?
41067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41068 (exit $ac_status); }; }; then
41069 ac_cv_lib_dl_dlerror=yes
41070else
41071 echo "$as_me: failed program was:" >&5
41072sed 's/^/| /' conftest.$ac_ext >&5
41073
41074ac_cv_lib_dl_dlerror=no
41075fi
ac1cb8d3
VS
41076rm -f conftest.err conftest.$ac_objext \
41077 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41078LIBS=$ac_check_lib_save_LIBS
41079fi
41080echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
41081echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
41082if test $ac_cv_lib_dl_dlerror = yes; then
41083 cat >>confdefs.h <<\_ACEOF
41084#define HAVE_DLERROR 1
41085_ACEOF
41086
41087fi
41088
41089
41090
41091fi
41092done
41093
41094 fi
41095 fi
41096
41097 if test "$HAVE_DL_FUNCS" = 0; then
41098 if test "$HAVE_SHL_FUNCS" = 0; then
47a7e797 41099 if test "$USE_UNIX" = 1 -o "$USE_DOS" = 1; then
a848cd7e
SC
41100 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
41101echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
41102 wxUSE_DYNAMIC_LOADER=no
41103 wxUSE_DYNLIB_CLASS=no
41104 else
41105 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
41106echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
41107 fi
41108 fi
41109 fi
41110 fi
41111fi
41112
41113if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
41114 cat >>confdefs.h <<\_ACEOF
41115#define wxUSE_DYNAMIC_LOADER 1
41116_ACEOF
41117
41118fi
41119if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
41120 cat >>confdefs.h <<\_ACEOF
41121#define wxUSE_DYNLIB_CLASS 1
41122_ACEOF
41123
41124fi
41125
41126
41127
41128if test "$wxUSE_PLUGINS" = "yes" ; then
41129 if test "$wxUSE_SHARED" = "no" ; then
41130 { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
41131echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
41132 wxUSE_PLUGINS=no
41133 fi
41134 if test "$wxUSE_MONOLITHIC" = "yes" ; then
41135 { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
41136echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
41137 wxUSE_PLUGINS=no
41138 fi
41139 if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
41140 { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
41141echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
41142 wxUSE_PLUGINS=no
41143 fi
41144 if test "$wxUSE_PLUGINS" = "yes" ; then
41145 cat >>confdefs.h <<\_ACEOF
41146#define wxUSE_PLUGINS 1
41147_ACEOF
41148
41149 fi
41150fi
41151
41152
41153if test "$wxUSE_STL" = "yes"; then
41154 cat >>confdefs.h <<\_ACEOF
41155#define wxUSE_STL 1
41156_ACEOF
41157
41158fi
41159
41160if test "$wxUSE_APPLE_IEEE" = "yes"; then
41161 cat >>confdefs.h <<\_ACEOF
41162#define wxUSE_APPLE_IEEE 1
41163_ACEOF
41164
41165fi
41166
41167if test "$wxUSE_TIMER" = "yes"; then
41168 cat >>confdefs.h <<\_ACEOF
41169#define wxUSE_TIMER 1
41170_ACEOF
41171
41172fi
41173
9c112555 41174if test "$USE_UNIX" = "1" ; then
31714590
VZ
41175 echo "$as_me:$LINENO: checking for SNDCTL_DSP_SPEED in sys/soundcard.h" >&5
41176echo $ECHO_N "checking for SNDCTL_DSP_SPEED in sys/soundcard.h... $ECHO_C" >&6
d12aef51 41177if test "${ac_cv_header_sys_soundcard+set}" = set; then
a848cd7e 41178 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e 41179else
d12aef51
VZ
41180
41181 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
41182/* confdefs.h. */
41183_ACEOF
41184cat confdefs.h >>conftest.$ac_ext
41185cat >>conftest.$ac_ext <<_ACEOF
41186/* end confdefs.h. */
d12aef51 41187
31714590 41188 #include <sys/ioctl.h>
d12aef51
VZ
41189 #include <sys/soundcard.h>
41190
41191int
41192main ()
41193{
41194
31714590 41195 ioctl(0, SNDCTL_DSP_SPEED, 0);
d12aef51
VZ
41196
41197 ;
41198 return 0;
41199}
a848cd7e 41200_ACEOF
d12aef51
VZ
41201rm -f conftest.$ac_objext conftest$ac_exeext
41202if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41203 (eval $ac_link) 2>conftest.er1
a848cd7e 41204 ac_status=$?
ac1cb8d3
VS
41205 grep -v '^ *+' conftest.er1 >conftest.err
41206 rm -f conftest.er1
41207 cat conftest.err >&5
a848cd7e
SC
41208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41209 (exit $ac_status); } &&
c9a66001 41210 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41212 (eval $ac_try) 2>&5
41213 ac_status=$?
41214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41215 (exit $ac_status); }; } &&
d12aef51 41216 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41218 (eval $ac_try) 2>&5
41219 ac_status=$?
41220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41221 (exit $ac_status); }; }; then
d12aef51 41222 ac_cv_header_sys_soundcard=yes
a848cd7e
SC
41223else
41224 echo "$as_me: failed program was:" >&5
41225sed 's/^/| /' conftest.$ac_ext >&5
41226
a848cd7e 41227
d12aef51
VZ
41228 saveLibs="$LIBS"
41229 LIBS="$saveLibs -lossaudio"
41230 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
41231/* confdefs.h. */
41232_ACEOF
41233cat confdefs.h >>conftest.$ac_ext
41234cat >>conftest.$ac_ext <<_ACEOF
41235/* end confdefs.h. */
d12aef51 41236
31714590 41237 #include <sys/ioctl.h>
d12aef51
VZ
41238 #include <sys/soundcard.h>
41239
41240int
41241main ()
41242{
41243
31714590 41244 ioctl(0, SNDCTL_DSP_SPEED, 0);
d12aef51
VZ
41245
41246 ;
41247 return 0;
41248}
a848cd7e 41249_ACEOF
d12aef51
VZ
41250rm -f conftest.$ac_objext conftest$ac_exeext
41251if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41252 (eval $ac_link) 2>conftest.er1
a848cd7e
SC
41253 ac_status=$?
41254 grep -v '^ *+' conftest.er1 >conftest.err
41255 rm -f conftest.er1
41256 cat conftest.err >&5
41257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d12aef51 41258 (exit $ac_status); } &&
c9a66001 41259 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
d12aef51
VZ
41260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41261 (eval $ac_try) 2>&5
41262 ac_status=$?
41263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41264 (exit $ac_status); }; } &&
41265 { ac_try='test -s conftest$ac_exeext'
41266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41267 (eval $ac_try) 2>&5
41268 ac_status=$?
41269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41270 (exit $ac_status); }; }; then
41271 ac_cv_header_sys_soundcard=yes
a848cd7e
SC
41272else
41273 echo "$as_me: failed program was:" >&5
41274sed 's/^/| /' conftest.$ac_ext >&5
41275
a848cd7e 41276
d12aef51
VZ
41277 LIBS="$saveLibs"
41278 ac_cv_header_sys_soundcard=no
41279
41280
a848cd7e 41281fi
d12aef51
VZ
41282rm -f conftest.err conftest.$ac_objext \
41283 conftest$ac_exeext conftest.$ac_ext
41284
a848cd7e
SC
41285
41286fi
d12aef51
VZ
41287rm -f conftest.err conftest.$ac_objext \
41288 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41289
41290fi
d12aef51
VZ
41291echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard" >&5
41292echo "${ECHO_T}$ac_cv_header_sys_soundcard" >&6
a848cd7e 41293
d12aef51
VZ
41294 if test "$ac_cv_header_sys_soundcard" = "yes"; then
41295 cat >>confdefs.h <<\_ACEOF
41296#define HAVE_SYS_SOUNDCARD_H 1
41297_ACEOF
a848cd7e 41298
d12aef51
VZ
41299 else
41300 DISABLED_CONTRIB="$DISABLED_CONTRIB mmedia"
41301 fi
9c112555
MW
41302fi
41303WITH_PLUGIN_SDL=0
41304if test "$wxUSE_SOUND" = "yes"; then
41305 if test "$USE_UNIX" = "1" ; then
a848cd7e
SC
41306 if test "$wxUSE_LIBSDL" != "no"; then
41307
41308# Check whether --with-sdl-prefix or --without-sdl-prefix was given.
41309if test "${with_sdl_prefix+set}" = set; then
41310 withval="$with_sdl_prefix"
41311 sdl_prefix="$withval"
41312else
41313 sdl_prefix=""
41314fi;
41315
41316# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
41317if test "${with_sdl_exec_prefix+set}" = set; then
41318 withval="$with_sdl_exec_prefix"
41319 sdl_exec_prefix="$withval"
41320else
41321 sdl_exec_prefix=""
41322fi;
41323# Check whether --enable-sdltest or --disable-sdltest was given.
41324if test "${enable_sdltest+set}" = set; then
41325 enableval="$enable_sdltest"
41326
41327else
41328 enable_sdltest=yes
41329fi;
41330
41331 if test x$sdl_exec_prefix != x ; then
3ecd9f92
MW
41332 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
41333 if test x${SDL_CONFIG+set} != xset ; then
41334 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
41335 fi
a848cd7e
SC
41336 fi
41337 if test x$sdl_prefix != x ; then
3ecd9f92
MW
41338 sdl_args="$sdl_args --prefix=$sdl_prefix"
41339 if test x${SDL_CONFIG+set} != xset ; then
41340 SDL_CONFIG=$sdl_prefix/bin/sdl-config
41341 fi
a848cd7e
SC
41342 fi
41343
3ecd9f92
MW
41344 if test "x$prefix" != xNONE; then
41345 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
41346 fi
a848cd7e
SC
41347 # Extract the first word of "sdl-config", so it can be a program name with args.
41348set dummy sdl-config; ac_word=$2
41349echo "$as_me:$LINENO: checking for $ac_word" >&5
41350echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41351if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
41352 echo $ECHO_N "(cached) $ECHO_C" >&6
41353else
41354 case $SDL_CONFIG in
41355 [\\/]* | ?:[\\/]*)
41356 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
41357 ;;
41358 *)
41359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41360for as_dir in $PATH
41361do
41362 IFS=$as_save_IFS
41363 test -z "$as_dir" && as_dir=.
41364 for ac_exec_ext in '' $ac_executable_extensions; do
41365 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41366 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
41367 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41368 break 2
41369 fi
41370done
41371done
41372
41373 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
41374 ;;
41375esac
41376fi
41377SDL_CONFIG=$ac_cv_path_SDL_CONFIG
41378
41379if test -n "$SDL_CONFIG"; then
41380 echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
41381echo "${ECHO_T}$SDL_CONFIG" >&6
41382else
41383 echo "$as_me:$LINENO: result: no" >&5
41384echo "${ECHO_T}no" >&6
41385fi
41386
41387 min_sdl_version=1.2.0
41388 echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
41389echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
41390 no_sdl=""
41391 if test "$SDL_CONFIG" = "no" ; then
41392 no_sdl=yes
41393 else
41394 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
41395 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
41396
41397 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
41398 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
41399 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
41400 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
41401 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
41402 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
41403 if test "x$enable_sdltest" = "xyes" ; then
41404 ac_save_CFLAGS="$CFLAGS"
94acd38e 41405 ac_save_CXXFLAGS="$CXXFLAGS"
a848cd7e
SC
41406 ac_save_LIBS="$LIBS"
41407 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 41408 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
41409 LIBS="$LIBS $SDL_LIBS"
41410 rm -f conf.sdltest
41411 if test "$cross_compiling" = yes; then
41412 echo $ac_n "cross compiling; assumed OK... $ac_c"
41413else
41414 cat >conftest.$ac_ext <<_ACEOF
41415/* confdefs.h. */
41416_ACEOF
41417cat confdefs.h >>conftest.$ac_ext
41418cat >>conftest.$ac_ext <<_ACEOF
41419/* end confdefs.h. */
41420
41421#include <stdio.h>
41422#include <stdlib.h>
41423#include <string.h>
41424#include "SDL.h"
41425
41426char*
41427my_strdup (char *str)
41428{
41429 char *new_str;
41430
41431 if (str)
41432 {
41433 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
41434 strcpy (new_str, str);
41435 }
41436 else
41437 new_str = NULL;
41438
41439 return new_str;
41440}
41441
41442int main (int argc, char *argv[])
41443{
41444 int major, minor, micro;
41445 char *tmp_version;
41446
41447 /* This hangs on some systems (?)
41448 system ("touch conf.sdltest");
41449 */
41450 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
41451
41452 /* HP/UX 9 (%@#!) writes to sscanf strings */
41453 tmp_version = my_strdup("$min_sdl_version");
41454 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
41455 printf("%s, bad version string\n", "$min_sdl_version");
41456 exit(1);
41457 }
41458
41459 if (($sdl_major_version > major) ||
41460 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
41461 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
41462 {
41463 return 0;
41464 }
41465 else
41466 {
41467 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
41468 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
41469 printf("*** best to upgrade to the required version.\n");
41470 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
41471 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
41472 printf("*** config.cache before re-running configure\n");
41473 return 1;
41474 }
41475}
41476
41477
41478_ACEOF
41479rm -f conftest$ac_exeext
41480if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41481 (eval $ac_link) 2>&5
41482 ac_status=$?
41483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41484 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
41485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41486 (eval $ac_try) 2>&5
41487 ac_status=$?
41488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41489 (exit $ac_status); }; }; then
41490 :
41491else
41492 echo "$as_me: program exited with status $ac_status" >&5
41493echo "$as_me: failed program was:" >&5
41494sed 's/^/| /' conftest.$ac_ext >&5
41495
41496( exit $ac_status )
41497no_sdl=yes
41498fi
ac1cb8d3 41499rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
41500fi
41501 CFLAGS="$ac_save_CFLAGS"
94acd38e 41502 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
41503 LIBS="$ac_save_LIBS"
41504 fi
41505 fi
41506 if test "x$no_sdl" = x ; then
41507 echo "$as_me:$LINENO: result: yes" >&5
41508echo "${ECHO_T}yes" >&6
41509
41510 EXTRALIBS_SDL="$SDL_LIBS"
c92ad099 41511 CXXFLAGS="$SDL_CFLAGS $CXXFLAGS"
a848cd7e
SC
41512 cat >>confdefs.h <<\_ACEOF
41513#define wxUSE_LIBSDL 1
41514_ACEOF
41515
41516
41517 else
41518 echo "$as_me:$LINENO: result: no" >&5
41519echo "${ECHO_T}no" >&6
41520 if test "$SDL_CONFIG" = "no" ; then
41521 echo "*** The sdl-config script installed by SDL could not be found"
41522 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
41523 echo "*** your path, or set the SDL_CONFIG environment variable to the"
41524 echo "*** full path to sdl-config."
41525 else
41526 if test -f conf.sdltest ; then
41527 :
41528 else
41529 echo "*** Could not run SDL test program, checking why..."
41530 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 41531 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
41532 LIBS="$LIBS $SDL_LIBS"
41533 cat >conftest.$ac_ext <<_ACEOF
41534/* confdefs.h. */
41535_ACEOF
41536cat confdefs.h >>conftest.$ac_ext
41537cat >>conftest.$ac_ext <<_ACEOF
41538/* end confdefs.h. */
41539
41540#include <stdio.h>
41541#include "SDL.h"
41542
41543int main(int argc, char *argv[])
41544{ return 0; }
41545#undef main
41546#define main K_and_R_C_main
41547
41548int
41549main ()
41550{
41551 return 0;
41552 ;
41553 return 0;
41554}
41555_ACEOF
41556rm -f conftest.$ac_objext conftest$ac_exeext
41557if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41558 (eval $ac_link) 2>conftest.er1
a848cd7e 41559 ac_status=$?
ac1cb8d3
VS
41560 grep -v '^ *+' conftest.er1 >conftest.err
41561 rm -f conftest.er1
41562 cat conftest.err >&5
a848cd7e
SC
41563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41564 (exit $ac_status); } &&
c9a66001 41565 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41567 (eval $ac_try) 2>&5
41568 ac_status=$?
41569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41570 (exit $ac_status); }; } &&
41571 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41573 (eval $ac_try) 2>&5
41574 ac_status=$?
41575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41576 (exit $ac_status); }; }; then
41577 echo "*** The test program compiled, but did not run. This usually means"
41578 echo "*** that the run-time linker is not finding SDL or finding the wrong"
41579 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
41580 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
41581 echo "*** to the installed location Also, make sure you have run ldconfig if that"
41582 echo "*** is required on your system"
41583 echo "***"
41584 echo "*** If you have an old version installed, it is best to remove it, although"
41585 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
41586else
41587 echo "$as_me: failed program was:" >&5
41588sed 's/^/| /' conftest.$ac_ext >&5
41589
41590 echo "*** The test program failed to compile or link. See the file config.log for the"
41591 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
41592 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
41593 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
41594fi
ac1cb8d3
VS
41595rm -f conftest.err conftest.$ac_objext \
41596 conftest$ac_exeext conftest.$ac_ext
a848cd7e 41597 CFLAGS="$ac_save_CFLAGS"
94acd38e 41598 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
41599 LIBS="$ac_save_LIBS"
41600 fi
41601 fi
41602 SDL_CFLAGS=""
41603 SDL_LIBS=""
41604 wxUSE_LIBSDL="no"
41605 fi
41606
41607
41608 rm -f conf.sdltest
41609
41610 if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
41611 WITH_PLUGIN_SDL=1
41612 fi
41613 fi
41614 fi
41615
41616 cat >>confdefs.h <<\_ACEOF
41617#define wxUSE_SOUND 1
41618_ACEOF
41619
41620 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
41621fi
41622
d1c38808
VZ
41623if test "$WXGTK20" = 1; then
41624 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
41625 if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
41626
41627
3ecd9f92
MW
41628pkg_failed=no
41629echo "$as_me:$LINENO: checking for LIBGNOMEPRINTUI" >&5
41630echo $ECHO_N "checking for LIBGNOMEPRINTUI... $ECHO_C" >&6
d1c38808 41631
3ecd9f92
MW
41632if test -n "$PKG_CONFIG"; then
41633 if test -n "$LIBGNOMEPRINTUI_CFLAGS"; then
41634 pkg_cv_LIBGNOMEPRINTUI_CFLAGS="$LIBGNOMEPRINTUI_CFLAGS"
41635 else
41636 if test -n "$PKG_CONFIG" && \
41637 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5
41638 ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5
41639 ac_status=$?
41640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41641 (exit $ac_status); }; then
41642 pkg_cv_LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8" 2>/dev/null`
d1c38808 41643else
3ecd9f92
MW
41644 pkg_failed=yes
41645fi
41646 fi
41647else
41648 pkg_failed=untried
d1c38808 41649fi
d1c38808 41650if test -n "$PKG_CONFIG"; then
3ecd9f92
MW
41651 if test -n "$LIBGNOMEPRINTUI_LIBS"; then
41652 pkg_cv_LIBGNOMEPRINTUI_LIBS="$LIBGNOMEPRINTUI_LIBS"
41653 else
41654 if test -n "$PKG_CONFIG" && \
41655 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5
41656 ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5
41657 ac_status=$?
41658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41659 (exit $ac_status); }; then
41660 pkg_cv_LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8" 2>/dev/null`
d1c38808 41661else
3ecd9f92
MW
41662 pkg_failed=yes
41663fi
41664 fi
41665else
41666 pkg_failed=untried
d1c38808
VZ
41667fi
41668
d1c38808 41669
d1c38808 41670
3ecd9f92 41671if test $pkg_failed = yes; then
d1c38808 41672
3ecd9f92
MW
41673if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
41674 _pkg_short_errors_supported=yes
41675else
41676 _pkg_short_errors_supported=no
41677fi
41678 if test $_pkg_short_errors_supported = yes; then
41679 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
41680 else
41681 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
d1c38808 41682 fi
3ecd9f92
MW
41683 # Put the nasty error message in config.log where it belongs
41684 echo "$LIBGNOMEPRINTUI_PKG_ERRORS" >&5
d1c38808
VZ
41685
41686
3ecd9f92
MW
41687 { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
41688echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
41689 wxUSE_LIBGNOMEPRINT="no"
d1c38808
VZ
41690
41691
3ecd9f92 41692elif test $pkg_failed = untried; then
d1c38808
VZ
41693
41694 { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
41695echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
41696 wxUSE_LIBGNOMEPRINT="no"
41697
41698
3ecd9f92
MW
41699else
41700 LIBGNOMEPRINTUI_CFLAGS=$pkg_cv_LIBGNOMEPRINTUI_CFLAGS
41701 LIBGNOMEPRINTUI_LIBS=$pkg_cv_LIBGNOMEPRINTUI_LIBS
41702 echo "$as_me:$LINENO: result: yes" >&5
41703echo "${ECHO_T}yes" >&6
d1c38808 41704
3ecd9f92
MW
41705 CXXFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CXXFLAGS"
41706 cat >>confdefs.h <<\_ACEOF
41707#define wxUSE_LIBGNOMEPRINT 1
41708_ACEOF
41709
41710
41711fi
d1c38808
VZ
41712 fi
41713 fi
41714fi
41715
2b850ae1
RR
41716if test "$WXGTK20" = 1; then
41717 if test "$wxUSE_MIMETYPE" = "yes" ; then
41718 if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
41719
41720
3ecd9f92
MW
41721pkg_failed=no
41722echo "$as_me:$LINENO: checking for GNOMEVFS" >&5
41723echo $ECHO_N "checking for GNOMEVFS... $ECHO_C" >&6
2b850ae1 41724
3ecd9f92
MW
41725if test -n "$PKG_CONFIG"; then
41726 if test -n "$GNOMEVFS_CFLAGS"; then
41727 pkg_cv_GNOMEVFS_CFLAGS="$GNOMEVFS_CFLAGS"
41728 else
41729 if test -n "$PKG_CONFIG" && \
41730 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5
41731 ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5
41732 ac_status=$?
41733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41734 (exit $ac_status); }; then
41735 pkg_cv_GNOMEVFS_CFLAGS=`$PKG_CONFIG --cflags "gnome-vfs-2.0 >= 2.0" 2>/dev/null`
2b850ae1 41736else
3ecd9f92
MW
41737 pkg_failed=yes
41738fi
41739 fi
41740else
41741 pkg_failed=untried
2b850ae1 41742fi
2b850ae1 41743if test -n "$PKG_CONFIG"; then
3ecd9f92
MW
41744 if test -n "$GNOMEVFS_LIBS"; then
41745 pkg_cv_GNOMEVFS_LIBS="$GNOMEVFS_LIBS"
41746 else
41747 if test -n "$PKG_CONFIG" && \
41748 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5
41749 ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5
41750 ac_status=$?
41751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41752 (exit $ac_status); }; then
41753 pkg_cv_GNOMEVFS_LIBS=`$PKG_CONFIG --libs "gnome-vfs-2.0 >= 2.0" 2>/dev/null`
2b850ae1 41754else
3ecd9f92
MW
41755 pkg_failed=yes
41756fi
41757 fi
41758else
41759 pkg_failed=untried
2b850ae1
RR
41760fi
41761
2b850ae1 41762
2b850ae1 41763
3ecd9f92 41764if test $pkg_failed = yes; then
2b850ae1 41765
3ecd9f92
MW
41766if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
41767 _pkg_short_errors_supported=yes
41768else
41769 _pkg_short_errors_supported=no
41770fi
41771 if test $_pkg_short_errors_supported = yes; then
41772 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
41773 else
41774 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
2b850ae1 41775 fi
3ecd9f92
MW
41776 # Put the nasty error message in config.log where it belongs
41777 echo "$GNOMEVFS_PKG_ERRORS" >&5
2b850ae1
RR
41778
41779
3ecd9f92
MW
41780 { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
41781echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
41782 wxUSE_LIBGNOMEVFS="no"
2b850ae1
RR
41783
41784
3ecd9f92 41785elif test $pkg_failed = untried; then
2b850ae1
RR
41786
41787 { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
41788echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
41789 wxUSE_LIBGNOMEVFS="no"
41790
41791
3ecd9f92
MW
41792else
41793 GNOMEVFS_CFLAGS=$pkg_cv_GNOMEVFS_CFLAGS
41794 GNOMEVFS_LIBS=$pkg_cv_GNOMEVFS_LIBS
41795 echo "$as_me:$LINENO: result: yes" >&5
41796echo "${ECHO_T}yes" >&6
2b850ae1 41797
3ecd9f92
MW
41798 CXXFLAGS="$GNOMEVFS_CFLAGS $CXXFLAGS"
41799 cat >>confdefs.h <<\_ACEOF
41800#define wxUSE_LIBGNOMEVFS 1
41801_ACEOF
41802
41803
41804fi
2b850ae1
RR
41805 fi
41806 fi
41807fi
41808
3565d135
RR
41809if test "$WXGTK20" = 1; then
41810 if test "$wxUSE_LIBHILDON" = "yes" ; then
41811
3ecd9f92
MW
41812pkg_failed=no
41813echo "$as_me:$LINENO: checking for HILDON" >&5
41814echo $ECHO_N "checking for HILDON... $ECHO_C" >&6
3565d135 41815
3ecd9f92
MW
41816if test -n "$PKG_CONFIG"; then
41817 if test -n "$HILDON_CFLAGS"; then
41818 pkg_cv_HILDON_CFLAGS="$HILDON_CFLAGS"
41819 else
41820 if test -n "$PKG_CONFIG" && \
41821 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5
41822 ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5
41823 ac_status=$?
41824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41825 (exit $ac_status); }; then
41826 pkg_cv_HILDON_CFLAGS=`$PKG_CONFIG --cflags "hildon-lgpl >= 0.9" 2>/dev/null`
3565d135 41827else
3ecd9f92
MW
41828 pkg_failed=yes
41829fi
41830 fi
41831else
41832 pkg_failed=untried
3565d135 41833fi
3565d135 41834if test -n "$PKG_CONFIG"; then
3ecd9f92
MW
41835 if test -n "$HILDON_LIBS"; then
41836 pkg_cv_HILDON_LIBS="$HILDON_LIBS"
41837 else
41838 if test -n "$PKG_CONFIG" && \
41839 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5
41840 ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5
41841 ac_status=$?
41842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41843 (exit $ac_status); }; then
41844 pkg_cv_HILDON_LIBS=`$PKG_CONFIG --libs "hildon-lgpl >= 0.9" 2>/dev/null`
3565d135 41845else
3ecd9f92
MW
41846 pkg_failed=yes
41847fi
41848 fi
41849else
41850 pkg_failed=untried
3565d135
RR
41851fi
41852
3565d135 41853
3565d135 41854
3ecd9f92 41855if test $pkg_failed = yes; then
3565d135 41856
3ecd9f92
MW
41857if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
41858 _pkg_short_errors_supported=yes
41859else
41860 _pkg_short_errors_supported=no
41861fi
41862 if test $_pkg_short_errors_supported = yes; then
41863 HILDON_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
41864 else
41865 HILDON_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
3565d135 41866 fi
3ecd9f92
MW
41867 # Put the nasty error message in config.log where it belongs
41868 echo "$HILDON_PKG_ERRORS" >&5
3565d135
RR
41869
41870
3ecd9f92
MW
41871 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
41872echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
41873 wxUSE_LIBHILDON="no"
3565d135 41874
3565d135 41875
3ecd9f92
MW
41876elif test $pkg_failed = untried; then
41877
41878 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
41879echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
41880 wxUSE_LIBHILDON="no"
41881
41882
41883else
41884 HILDON_CFLAGS=$pkg_cv_HILDON_CFLAGS
41885 HILDON_LIBS=$pkg_cv_HILDON_LIBS
41886 echo "$as_me:$LINENO: result: yes" >&5
41887echo "${ECHO_T}yes" >&6
3565d135
RR
41888
41889 EXTRALIBS_HILDON="$HILDON_LIBS"
41890 CXXFLAGS="$CXXFLAGS $HILDON_CFLAGS"
41891 cat >>confdefs.h <<\_ACEOF
41892#define wxUSE_LIBHILDON 1
41893_ACEOF
41894
41895
3ecd9f92 41896fi
3565d135
RR
41897 fi
41898fi
d1c38808 41899
a848cd7e
SC
41900if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
41901 cat >>confdefs.h <<\_ACEOF
41902#define wxUSE_CMDLINE_PARSER 1
41903_ACEOF
41904
41905fi
41906
41907if test "$wxUSE_STOPWATCH" = "yes"; then
41908 cat >>confdefs.h <<\_ACEOF
41909#define wxUSE_STOPWATCH 1
41910_ACEOF
41911
41912fi
41913
41914if test "$wxUSE_DATETIME" = "yes"; then
41915 cat >>confdefs.h <<\_ACEOF
41916#define wxUSE_DATETIME 1
41917_ACEOF
41918
41919fi
41920
41921if test "$wxUSE_FILE" = "yes"; then
41922 cat >>confdefs.h <<\_ACEOF
41923#define wxUSE_FILE 1
41924_ACEOF
41925
41926fi
41927
41928if test "$wxUSE_FFILE" = "yes"; then
41929 cat >>confdefs.h <<\_ACEOF
41930#define wxUSE_FFILE 1
41931_ACEOF
41932
41933fi
41934
41935if test "$wxUSE_FILESYSTEM" = "yes"; then
41936 cat >>confdefs.h <<\_ACEOF
41937#define wxUSE_FILESYSTEM 1
41938_ACEOF
41939
41940fi
41941
41942if test "$wxUSE_FS_ZIP" = "yes"; then
41943 cat >>confdefs.h <<\_ACEOF
41944#define wxUSE_FS_ZIP 1
41945_ACEOF
41946
41947fi
41948
9e8e867f 41949if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then
a848cd7e 41950 cat >>confdefs.h <<\_ACEOF
9e8e867f 41951#define wxUSE_ARCHIVE_STREAMS 1
81f90336
MW
41952_ACEOF
41953
41954fi
41955
41956if test "$wxUSE_ZIPSTREAM" = "yes"; then
9e8e867f 41957 if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
81f90336
MW
41958 { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5
41959echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;}
41960 elif test "$wxUSE_ZLIB" = "no"; then
41961 { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5
41962echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;}
41963 else
41964 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
41965#define wxUSE_ZIPSTREAM 1
41966_ACEOF
41967
81f90336 41968 fi
a848cd7e
SC
41969fi
41970
a848cd7e 41971if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
18228ab4
MW
41972 if test "$USE_UNIX" != 1; then
41973 { echo "$as_me:$LINENO: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&5
41974echo "$as_me: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&2;}
41975 wxUSE_ON_FATAL_EXCEPTION=no
41976 else
41977 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
41978#define wxUSE_ON_FATAL_EXCEPTION 1
41979_ACEOF
41980
18228ab4 41981 fi
a848cd7e
SC
41982fi
41983
eaff0f0d
VZ
41984if test "$wxUSE_STACKWALKER" = "yes"; then
41985 cat >>confdefs.h <<\_ACEOF
41986#define wxUSE_STACKWALKER 1
41987_ACEOF
41988
41989fi
41990
36b6448c 41991if test "$wxUSE_DEBUGREPORT" = "yes"; then
18228ab4
MW
41992 if test "$USE_UNIX" != "1" -a "$USE_WIN32" != "1"; then
41993 { echo "$as_me:$LINENO: WARNING: Creating debug reports not currently supported on this system, disabled" >&5
41994echo "$as_me: WARNING: Creating debug reports not currently supported on this system, disabled" >&2;}
dfe0c803
JS
41995 wxUSE_DEBUGREPORT=no
41996 else
41997 cat >>confdefs.h <<\_ACEOF
36b6448c
VZ
41998#define wxUSE_DEBUGREPORT 1
41999_ACEOF
42000
21dfc162
MW
42001 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
42002 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt"
42003 fi
dfe0c803 42004 fi
36b6448c
VZ
42005fi
42006
a848cd7e
SC
42007if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
42008 cat >>confdefs.h <<\_ACEOF
42009#define wxUSE_SNGLINST_CHECKER 1
42010_ACEOF
42011
42012fi
42013
42014if test "$wxUSE_BUSYINFO" = "yes"; then
42015 cat >>confdefs.h <<\_ACEOF
42016#define wxUSE_BUSYINFO 1
42017_ACEOF
42018
42019fi
42020
42021if test "$wxUSE_STD_IOSTREAM" = "yes"; then
42022 cat >>confdefs.h <<\_ACEOF
42023#define wxUSE_STD_IOSTREAM 1
42024_ACEOF
42025
42026fi
42027
59746b65
MW
42028if test "$wxUSE_STD_STRING" = "yes"; then
42029 cat >>confdefs.h <<\_ACEOF
42030#define wxUSE_STD_STRING 1
42031_ACEOF
42032
42033fi
42034
07158944
VZ
42035if test "$wxUSE_STDPATHS" = "yes"; then
42036 cat >>confdefs.h <<\_ACEOF
42037#define wxUSE_STDPATHS 1
42038_ACEOF
42039
42040fi
42041
a848cd7e
SC
42042if test "$wxUSE_TEXTBUFFER" = "yes"; then
42043 cat >>confdefs.h <<\_ACEOF
42044#define wxUSE_TEXTBUFFER 1
42045_ACEOF
42046
42047fi
42048
42049if test "$wxUSE_TEXTFILE" = "yes"; then
42050 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
42051 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
42052echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
42053 else
42054 cat >>confdefs.h <<\_ACEOF
42055#define wxUSE_TEXTFILE 1
42056_ACEOF
42057
42058 fi
42059fi
42060
42061if test "$wxUSE_CONFIG" = "yes" ; then
42062 if test "$wxUSE_TEXTFILE" != "yes"; then
42063 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
42064echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
42065 else
42066 cat >>confdefs.h <<\_ACEOF
42067#define wxUSE_CONFIG 1
89be85c2
VS
42068_ACEOF
42069
42070 cat >>confdefs.h <<\_ACEOF
42071#define wxUSE_CONFIG_NATIVE 1
a848cd7e
SC
42072_ACEOF
42073
42074 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
42075 fi
42076fi
42077
42078if test "$wxUSE_INTL" = "yes" ; then
42079 if test "$wxUSE_FILE" != "yes"; then
42080 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
42081echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
42082 else
42083 cat >>confdefs.h <<\_ACEOF
42084#define wxUSE_INTL 1
42085_ACEOF
42086
42087 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
42088 GUIDIST="$GUIDIST INTL_DIST"
42089 fi
42090fi
42091
42092if test "$wxUSE_LOG" = "yes"; then
42093 cat >>confdefs.h <<\_ACEOF
42094#define wxUSE_LOG 1
42095_ACEOF
42096
42097
42098 if test "$wxUSE_LOGGUI" = "yes"; then
42099 cat >>confdefs.h <<\_ACEOF
42100#define wxUSE_LOGGUI 1
42101_ACEOF
42102
42103 fi
42104
42105 if test "$wxUSE_LOGWINDOW" = "yes"; then
42106 cat >>confdefs.h <<\_ACEOF
42107#define wxUSE_LOGWINDOW 1
42108_ACEOF
42109
42110 fi
42111
42112 if test "$wxUSE_LOGDIALOG" = "yes"; then
42113 cat >>confdefs.h <<\_ACEOF
42114#define wxUSE_LOG_DIALOG 1
42115_ACEOF
42116
42117 fi
0b78747f
MW
42118
42119 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard"
a848cd7e
SC
42120fi
42121
42122if test "$wxUSE_LONGLONG" = "yes"; then
42123 cat >>confdefs.h <<\_ACEOF
42124#define wxUSE_LONGLONG 1
42125_ACEOF
42126
42127fi
42128
42129if test "$wxUSE_GEOMETRY" = "yes"; then
42130 cat >>confdefs.h <<\_ACEOF
42131#define wxUSE_GEOMETRY 1
42132_ACEOF
42133
42134fi
42135
a848cd7e
SC
42136if test "$wxUSE_STREAMS" = "yes" ; then
42137 cat >>confdefs.h <<\_ACEOF
42138#define wxUSE_STREAMS 1
42139_ACEOF
42140
42141fi
42142
8b6682b9
JS
42143if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
42144 cat >>confdefs.h <<\_ACEOF
42145#define wxUSE_PRINTF_POS_PARAMS 1
42146_ACEOF
42147
42148fi
42149
42150
a848cd7e
SC
42151
42152if test "$wxUSE_DATETIME" = "yes"; then
42153
42154for ac_func in strptime
42155do
42156as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42157echo "$as_me:$LINENO: checking for $ac_func" >&5
42158echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42159if eval "test \"\${$as_ac_var+set}\" = set"; then
42160 echo $ECHO_N "(cached) $ECHO_C" >&6
42161else
42162 cat >conftest.$ac_ext <<_ACEOF
42163/* confdefs.h. */
42164_ACEOF
42165cat confdefs.h >>conftest.$ac_ext
42166cat >>conftest.$ac_ext <<_ACEOF
42167/* end confdefs.h. */
ac1cb8d3
VS
42168/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42169 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42170#define $ac_func innocuous_$ac_func
42171
a848cd7e
SC
42172/* System header to define __stub macros and hopefully few prototypes,
42173 which can conflict with char $ac_func (); below.
42174 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42175 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 42176
a848cd7e
SC
42177#ifdef __STDC__
42178# include <limits.h>
42179#else
42180# include <assert.h>
42181#endif
ac1cb8d3
VS
42182
42183#undef $ac_func
42184
a848cd7e
SC
42185/* Override any gcc2 internal prototype to avoid an error. */
42186#ifdef __cplusplus
42187extern "C"
42188{
42189#endif
42190/* We use char because int might match the return type of a gcc2
42191 builtin and then its argument prototype would still apply. */
42192char $ac_func ();
42193/* The GNU C library defines this for functions which it implements
42194 to always fail with ENOSYS. Some functions are actually named
42195 something starting with __ and the normal name is an alias. */
42196#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42197choke me
42198#else
42199char (*f) () = $ac_func;
42200#endif
42201#ifdef __cplusplus
42202}
42203#endif
42204
42205int
42206main ()
42207{
42208return f != $ac_func;
42209 ;
42210 return 0;
42211}
42212_ACEOF
42213rm -f conftest.$ac_objext conftest$ac_exeext
42214if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 42215 (eval $ac_link) 2>conftest.er1
a848cd7e 42216 ac_status=$?
ac1cb8d3
VS
42217 grep -v '^ *+' conftest.er1 >conftest.err
42218 rm -f conftest.er1
42219 cat conftest.err >&5
a848cd7e
SC
42220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42221 (exit $ac_status); } &&
c9a66001 42222 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42224 (eval $ac_try) 2>&5
42225 ac_status=$?
42226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42227 (exit $ac_status); }; } &&
42228 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
42229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42230 (eval $ac_try) 2>&5
42231 ac_status=$?
42232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42233 (exit $ac_status); }; }; then
42234 eval "$as_ac_var=yes"
42235else
42236 echo "$as_me: failed program was:" >&5
42237sed 's/^/| /' conftest.$ac_ext >&5
42238
42239eval "$as_ac_var=no"
42240fi
ac1cb8d3
VS
42241rm -f conftest.err conftest.$ac_objext \
42242 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
42243fi
42244echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42245echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42246if test `eval echo '${'$as_ac_var'}'` = yes; then
42247 cat >>confdefs.h <<_ACEOF
42248#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42249_ACEOF
42250
42251fi
42252done
42253
f536f005
VZ
42254 if test "$ac_cv_func_strptime" = "yes"; then
42255 echo "$as_me:$LINENO: checking for strptime declaration" >&5
42256echo $ECHO_N "checking for strptime declaration... $ECHO_C" >&6
42257if test "${wx_cv_func_strptime_decl+set}" = set; then
42258 echo $ECHO_N "(cached) $ECHO_C" >&6
42259else
42260
f536f005
VZ
42261 cat >conftest.$ac_ext <<_ACEOF
42262/* confdefs.h. */
42263_ACEOF
42264cat confdefs.h >>conftest.$ac_ext
42265cat >>conftest.$ac_ext <<_ACEOF
42266/* end confdefs.h. */
42267
42268 #include <time.h>
42269
42270int
42271main ()
42272{
42273
42274 struct tm t;
42275 strptime("foo", "bar", &t);
42276
42277 ;
42278 return 0;
42279}
42280_ACEOF
42281rm -f conftest.$ac_objext
42282if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42283 (eval $ac_compile) 2>conftest.er1
42284 ac_status=$?
42285 grep -v '^ *+' conftest.er1 >conftest.err
42286 rm -f conftest.er1
42287 cat conftest.err >&5
42288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42289 (exit $ac_status); } &&
c9a66001 42290 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
f536f005
VZ
42291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42292 (eval $ac_try) 2>&5
42293 ac_status=$?
42294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42295 (exit $ac_status); }; } &&
42296 { ac_try='test -s conftest.$ac_objext'
42297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42298 (eval $ac_try) 2>&5
42299 ac_status=$?
42300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42301 (exit $ac_status); }; }; then
42302 wx_cv_func_strptime_decl=yes
42303else
42304 echo "$as_me: failed program was:" >&5
42305sed 's/^/| /' conftest.$ac_ext >&5
42306
42307wx_cv_func_strptime_decl=no
42308
42309fi
42310rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f536f005
VZ
42311
42312
42313fi
42314echo "$as_me:$LINENO: result: $wx_cv_func_strptime_decl" >&5
42315echo "${ECHO_T}$wx_cv_func_strptime_decl" >&6
42316 fi
42317 if test "$wx_cv_func_strptime_decl" = "yes"; then
42318 cat >>confdefs.h <<\_ACEOF
42319#define HAVE_STRPTIME_DECL 1
42320_ACEOF
42321
42322 fi
a848cd7e
SC
42323
42324 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
42325echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
42326if test "${wx_cv_var_timezone+set}" = set; then
42327 echo $ECHO_N "(cached) $ECHO_C" >&6
42328else
42329
42330 cat >conftest.$ac_ext <<_ACEOF
42331/* confdefs.h. */
42332_ACEOF
42333cat confdefs.h >>conftest.$ac_ext
42334cat >>conftest.$ac_ext <<_ACEOF
42335/* end confdefs.h. */
42336
42337 #include <time.h>
42338
42339int
42340main ()
42341{
42342
42343 int tz;
42344 tz = timezone;
42345
42346 ;
42347 return 0;
42348}
42349_ACEOF
42350rm -f conftest.$ac_objext
42351if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42352 (eval $ac_compile) 2>conftest.er1
a848cd7e 42353 ac_status=$?
ac1cb8d3
VS
42354 grep -v '^ *+' conftest.er1 >conftest.err
42355 rm -f conftest.er1
42356 cat conftest.err >&5
a848cd7e
SC
42357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42358 (exit $ac_status); } &&
c9a66001 42359 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42361 (eval $ac_try) 2>&5
42362 ac_status=$?
42363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42364 (exit $ac_status); }; } &&
42365 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42367 (eval $ac_try) 2>&5
42368 ac_status=$?
42369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42370 (exit $ac_status); }; }; then
42371
42372 wx_cv_var_timezone=timezone
42373
42374else
42375 echo "$as_me: failed program was:" >&5
42376sed 's/^/| /' conftest.$ac_ext >&5
42377
42378
42379 cat >conftest.$ac_ext <<_ACEOF
42380/* confdefs.h. */
42381_ACEOF
42382cat confdefs.h >>conftest.$ac_ext
42383cat >>conftest.$ac_ext <<_ACEOF
42384/* end confdefs.h. */
42385
42386 #include <time.h>
42387
42388int
42389main ()
42390{
42391
42392 int tz;
42393 tz = _timezone;
42394
42395 ;
42396 return 0;
42397}
42398_ACEOF
42399rm -f conftest.$ac_objext
42400if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42401 (eval $ac_compile) 2>conftest.er1
a848cd7e 42402 ac_status=$?
ac1cb8d3
VS
42403 grep -v '^ *+' conftest.er1 >conftest.err
42404 rm -f conftest.er1
42405 cat conftest.err >&5
a848cd7e
SC
42406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42407 (exit $ac_status); } &&
c9a66001 42408 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42410 (eval $ac_try) 2>&5
42411 ac_status=$?
42412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42413 (exit $ac_status); }; } &&
42414 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42416 (eval $ac_try) 2>&5
42417 ac_status=$?
42418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42419 (exit $ac_status); }; }; then
42420
42421 wx_cv_var_timezone=_timezone
42422
42423else
42424 echo "$as_me: failed program was:" >&5
42425sed 's/^/| /' conftest.$ac_ext >&5
42426
42427
42428 cat >conftest.$ac_ext <<_ACEOF
42429/* confdefs.h. */
42430_ACEOF
42431cat confdefs.h >>conftest.$ac_ext
42432cat >>conftest.$ac_ext <<_ACEOF
42433/* end confdefs.h. */
42434
42435 #include <time.h>
42436
42437int
42438main ()
42439{
42440
42441 int tz;
42442 tz = __timezone;
42443
42444 ;
42445 return 0;
42446}
42447_ACEOF
42448rm -f conftest.$ac_objext
42449if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42450 (eval $ac_compile) 2>conftest.er1
a848cd7e 42451 ac_status=$?
ac1cb8d3
VS
42452 grep -v '^ *+' conftest.er1 >conftest.err
42453 rm -f conftest.er1
42454 cat conftest.err >&5
a848cd7e
SC
42455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42456 (exit $ac_status); } &&
c9a66001 42457 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42459 (eval $ac_try) 2>&5
42460 ac_status=$?
42461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42462 (exit $ac_status); }; } &&
42463 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42465 (eval $ac_try) 2>&5
42466 ac_status=$?
42467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42468 (exit $ac_status); }; }; then
42469
42470 wx_cv_var_timezone=__timezone
42471
42472else
42473 echo "$as_me: failed program was:" >&5
42474sed 's/^/| /' conftest.$ac_ext >&5
42475
42476
42477 if test "$USE_DOS" = 0 ; then
42478 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
42479echo "$as_me: WARNING: no timezone variable" >&2;}
42480 fi
42481
42482
42483fi
ac1cb8d3 42484rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
42485
42486
42487fi
ac1cb8d3 42488rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
42489
42490
42491fi
ac1cb8d3 42492rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
42493
42494
42495fi
42496echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
42497echo "${ECHO_T}$wx_cv_var_timezone" >&6
42498
42499 if test "x$wx_cv_var_timezone" != x ; then
42500 cat >>confdefs.h <<_ACEOF
42501#define WX_TIMEZONE $wx_cv_var_timezone
42502_ACEOF
42503
42504 fi
42505
42506
42507for ac_func in localtime
42508do
42509as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42510echo "$as_me:$LINENO: checking for $ac_func" >&5
42511echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42512if eval "test \"\${$as_ac_var+set}\" = set"; then
42513 echo $ECHO_N "(cached) $ECHO_C" >&6
42514else
42515 cat >conftest.$ac_ext <<_ACEOF
42516/* confdefs.h. */
42517_ACEOF
42518cat confdefs.h >>conftest.$ac_ext
42519cat >>conftest.$ac_ext <<_ACEOF
42520/* end confdefs.h. */
ac1cb8d3
VS
42521/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42522 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42523#define $ac_func innocuous_$ac_func
42524
a848cd7e
SC
42525/* System header to define __stub macros and hopefully few prototypes,
42526 which can conflict with char $ac_func (); below.
42527 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42528 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 42529
a848cd7e
SC
42530#ifdef __STDC__
42531# include <limits.h>
42532#else
42533# include <assert.h>
42534#endif
ac1cb8d3
VS
42535
42536#undef $ac_func
42537
a848cd7e
SC
42538/* Override any gcc2 internal prototype to avoid an error. */
42539#ifdef __cplusplus
42540extern "C"
42541{
42542#endif
42543/* We use char because int might match the return type of a gcc2
42544 builtin and then its argument prototype would still apply. */
42545char $ac_func ();
42546/* The GNU C library defines this for functions which it implements
42547 to always fail with ENOSYS. Some functions are actually named
42548 something starting with __ and the normal name is an alias. */
42549#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42550choke me
42551#else
42552char (*f) () = $ac_func;
42553#endif
42554#ifdef __cplusplus
42555}
42556#endif
42557
42558int
42559main ()
42560{
42561return f != $ac_func;
42562 ;
42563 return 0;
42564}
42565_ACEOF
42566rm -f conftest.$ac_objext conftest$ac_exeext
42567if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 42568 (eval $ac_link) 2>conftest.er1
a848cd7e 42569 ac_status=$?
ac1cb8d3
VS
42570 grep -v '^ *+' conftest.er1 >conftest.err
42571 rm -f conftest.er1
42572 cat conftest.err >&5
a848cd7e
SC
42573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42574 (exit $ac_status); } &&
c9a66001 42575 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42577 (eval $ac_try) 2>&5
42578 ac_status=$?
42579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42580 (exit $ac_status); }; } &&
42581 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
42582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42583 (eval $ac_try) 2>&5
42584 ac_status=$?
42585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42586 (exit $ac_status); }; }; then
42587 eval "$as_ac_var=yes"
42588else
42589 echo "$as_me: failed program was:" >&5
42590sed 's/^/| /' conftest.$ac_ext >&5
42591
42592eval "$as_ac_var=no"
42593fi
ac1cb8d3
VS
42594rm -f conftest.err conftest.$ac_objext \
42595 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
42596fi
42597echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42598echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42599if test `eval echo '${'$as_ac_var'}'` = yes; then
42600 cat >>confdefs.h <<_ACEOF
42601#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42602_ACEOF
42603
42604fi
42605done
42606
42607
42608 if test "$ac_cv_func_localtime" = "yes"; then
42609 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
42610echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
42611if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
42612 echo $ECHO_N "(cached) $ECHO_C" >&6
42613else
42614
42615 cat >conftest.$ac_ext <<_ACEOF
42616/* confdefs.h. */
42617_ACEOF
42618cat confdefs.h >>conftest.$ac_ext
42619cat >>conftest.$ac_ext <<_ACEOF
42620/* end confdefs.h. */
42621
42622 #include <time.h>
42623
42624int
42625main ()
42626{
42627
42628 struct tm tm;
42629 tm.tm_gmtoff++;
42630
42631 ;
42632 return 0;
42633}
42634_ACEOF
42635rm -f conftest.$ac_objext
42636if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42637 (eval $ac_compile) 2>conftest.er1
a848cd7e 42638 ac_status=$?
ac1cb8d3
VS
42639 grep -v '^ *+' conftest.er1 >conftest.err
42640 rm -f conftest.er1
42641 cat conftest.err >&5
a848cd7e
SC
42642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42643 (exit $ac_status); } &&
c9a66001 42644 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42646 (eval $ac_try) 2>&5
42647 ac_status=$?
42648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42649 (exit $ac_status); }; } &&
42650 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42652 (eval $ac_try) 2>&5
42653 ac_status=$?
42654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42655 (exit $ac_status); }; }; then
42656
42657 wx_cv_struct_tm_has_gmtoff=yes
42658
42659else
42660 echo "$as_me: failed program was:" >&5
42661sed 's/^/| /' conftest.$ac_ext >&5
42662
42663wx_cv_struct_tm_has_gmtoff=no
42664
42665fi
ac1cb8d3 42666rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
42667
42668fi
42669echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
42670echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
42671 fi
42672
42673 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
42674 cat >>confdefs.h <<\_ACEOF
42675#define WX_GMTOFF_IN_TM 1
42676_ACEOF
42677
42678 fi
42679
42680
42681
42682for ac_func in gettimeofday ftime
42683do
42684as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42685echo "$as_me:$LINENO: checking for $ac_func" >&5
42686echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42687if eval "test \"\${$as_ac_var+set}\" = set"; then
42688 echo $ECHO_N "(cached) $ECHO_C" >&6
42689else
42690 cat >conftest.$ac_ext <<_ACEOF
42691/* confdefs.h. */
42692_ACEOF
42693cat confdefs.h >>conftest.$ac_ext
42694cat >>conftest.$ac_ext <<_ACEOF
42695/* end confdefs.h. */
ac1cb8d3
VS
42696/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42697 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42698#define $ac_func innocuous_$ac_func
42699
a848cd7e
SC
42700/* System header to define __stub macros and hopefully few prototypes,
42701 which can conflict with char $ac_func (); below.
42702 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42703 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 42704
a848cd7e
SC
42705#ifdef __STDC__
42706# include <limits.h>
42707#else
42708# include <assert.h>
42709#endif
ac1cb8d3
VS
42710
42711#undef $ac_func
42712
a848cd7e
SC
42713/* Override any gcc2 internal prototype to avoid an error. */
42714#ifdef __cplusplus
42715extern "C"
42716{
42717#endif
42718/* We use char because int might match the return type of a gcc2
42719 builtin and then its argument prototype would still apply. */
42720char $ac_func ();
42721/* The GNU C library defines this for functions which it implements
42722 to always fail with ENOSYS. Some functions are actually named
42723 something starting with __ and the normal name is an alias. */
42724#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42725choke me
42726#else
42727char (*f) () = $ac_func;
42728#endif
42729#ifdef __cplusplus
42730}
42731#endif
42732
42733int
42734main ()
42735{
42736return f != $ac_func;
42737 ;
42738 return 0;
42739}
42740_ACEOF
42741rm -f conftest.$ac_objext conftest$ac_exeext
42742if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 42743 (eval $ac_link) 2>conftest.er1
a848cd7e 42744 ac_status=$?
ac1cb8d3
VS
42745 grep -v '^ *+' conftest.er1 >conftest.err
42746 rm -f conftest.er1
42747 cat conftest.err >&5
a848cd7e
SC
42748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42749 (exit $ac_status); } &&
c9a66001 42750 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42752 (eval $ac_try) 2>&5
42753 ac_status=$?
42754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42755 (exit $ac_status); }; } &&
42756 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
42757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42758 (eval $ac_try) 2>&5
42759 ac_status=$?
42760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42761 (exit $ac_status); }; }; then
42762 eval "$as_ac_var=yes"
42763else
42764 echo "$as_me: failed program was:" >&5
42765sed 's/^/| /' conftest.$ac_ext >&5
42766
42767eval "$as_ac_var=no"
42768fi
ac1cb8d3
VS
42769rm -f conftest.err conftest.$ac_objext \
42770 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
42771fi
42772echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42773echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42774if test `eval echo '${'$as_ac_var'}'` = yes; then
42775 cat >>confdefs.h <<_ACEOF
42776#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42777_ACEOF
42778 break
42779fi
42780done
42781
42782
42783 if test "$ac_cv_func_gettimeofday" = "yes"; then
42784 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
42785echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
42786if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
42787 echo $ECHO_N "(cached) $ECHO_C" >&6
42788else
42789
5d7b7554 42790 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
42791/* confdefs.h. */
42792_ACEOF
42793cat confdefs.h >>conftest.$ac_ext
42794cat >>conftest.$ac_ext <<_ACEOF
42795/* end confdefs.h. */
42796
42797 #include <sys/time.h>
42798 #include <unistd.h>
42799
42800int
42801main ()
42802{
42803
42804 struct timeval tv;
42805 gettimeofday(&tv, NULL);
42806
42807 ;
42808 return 0;
42809}
42810_ACEOF
42811rm -f conftest.$ac_objext
42812if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42813 (eval $ac_compile) 2>conftest.er1
a848cd7e 42814 ac_status=$?
ac1cb8d3
VS
42815 grep -v '^ *+' conftest.er1 >conftest.err
42816 rm -f conftest.er1
42817 cat conftest.err >&5
a848cd7e
SC
42818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42819 (exit $ac_status); } &&
c9a66001 42820 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42822 (eval $ac_try) 2>&5
42823 ac_status=$?
42824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42825 (exit $ac_status); }; } &&
42826 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42828 (eval $ac_try) 2>&5
42829 ac_status=$?
42830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42831 (exit $ac_status); }; }; then
42832 wx_cv_func_gettimeofday_has_2_args=yes
42833else
42834 echo "$as_me: failed program was:" >&5
42835sed 's/^/| /' conftest.$ac_ext >&5
42836
42837cat >conftest.$ac_ext <<_ACEOF
42838/* confdefs.h. */
42839_ACEOF
42840cat confdefs.h >>conftest.$ac_ext
42841cat >>conftest.$ac_ext <<_ACEOF
42842/* end confdefs.h. */
42843
42844 #include <sys/time.h>
42845 #include <unistd.h>
42846
42847int
42848main ()
42849{
42850
42851 struct timeval tv;
42852 gettimeofday(&tv);
42853
42854 ;
42855 return 0;
42856}
42857_ACEOF
42858rm -f conftest.$ac_objext
42859if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42860 (eval $ac_compile) 2>conftest.er1
a848cd7e 42861 ac_status=$?
ac1cb8d3
VS
42862 grep -v '^ *+' conftest.er1 >conftest.err
42863 rm -f conftest.er1
42864 cat conftest.err >&5
a848cd7e
SC
42865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42866 (exit $ac_status); } &&
c9a66001 42867 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42869 (eval $ac_try) 2>&5
42870 ac_status=$?
42871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42872 (exit $ac_status); }; } &&
42873 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42875 (eval $ac_try) 2>&5
42876 ac_status=$?
42877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42878 (exit $ac_status); }; }; then
42879 wx_cv_func_gettimeofday_has_2_args=no
42880else
42881 echo "$as_me: failed program was:" >&5
42882sed 's/^/| /' conftest.$ac_ext >&5
42883
42884
42885 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
42886echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
42887 wx_cv_func_gettimeofday_has_2_args=unknown
42888
42889
42890fi
ac1cb8d3 42891rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
42892
42893fi
ac1cb8d3 42894rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
42895
42896fi
42897echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
42898echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
42899
42900 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
42901 cat >>confdefs.h <<\_ACEOF
42902#define WX_GETTIMEOFDAY_NO_TZ 1
42903_ACEOF
42904
42905 fi
42906 fi
42907
42908 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
42909fi
42910
42911
42912if test "$wxUSE_SOCKETS" = "yes"; then
42913 if test "$wxUSE_MGL" = "1"; then
42914 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
42915echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
42916 wxUSE_SOCKETS="no"
42917 fi
42918fi
42919
42920if test "$wxUSE_SOCKETS" = "yes"; then
42921 if test "$TOOLKIT" != "MSW"; then
42922 echo "$as_me:$LINENO: checking for socket" >&5
42923echo $ECHO_N "checking for socket... $ECHO_C" >&6
42924if test "${ac_cv_func_socket+set}" = set; then
42925 echo $ECHO_N "(cached) $ECHO_C" >&6
42926else
42927 cat >conftest.$ac_ext <<_ACEOF
42928/* confdefs.h. */
42929_ACEOF
42930cat confdefs.h >>conftest.$ac_ext
42931cat >>conftest.$ac_ext <<_ACEOF
42932/* end confdefs.h. */
ac1cb8d3
VS
42933/* Define socket to an innocuous variant, in case <limits.h> declares socket.
42934 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42935#define socket innocuous_socket
42936
a848cd7e
SC
42937/* System header to define __stub macros and hopefully few prototypes,
42938 which can conflict with char socket (); below.
42939 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42940 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 42941
a848cd7e
SC
42942#ifdef __STDC__
42943# include <limits.h>
42944#else
42945# include <assert.h>
42946#endif
ac1cb8d3
VS
42947
42948#undef socket
42949
a848cd7e
SC
42950/* Override any gcc2 internal prototype to avoid an error. */
42951#ifdef __cplusplus
42952extern "C"
42953{
42954#endif
42955/* We use char because int might match the return type of a gcc2
42956 builtin and then its argument prototype would still apply. */
42957char socket ();
42958/* The GNU C library defines this for functions which it implements
42959 to always fail with ENOSYS. Some functions are actually named
42960 something starting with __ and the normal name is an alias. */
42961#if defined (__stub_socket) || defined (__stub___socket)
42962choke me
42963#else
42964char (*f) () = socket;
42965#endif
42966#ifdef __cplusplus
42967}
42968#endif
42969
42970int
42971main ()
42972{
42973return f != socket;
42974 ;
42975 return 0;
42976}
42977_ACEOF
42978rm -f conftest.$ac_objext conftest$ac_exeext
42979if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 42980 (eval $ac_link) 2>conftest.er1
a848cd7e 42981 ac_status=$?
ac1cb8d3
VS
42982 grep -v '^ *+' conftest.er1 >conftest.err
42983 rm -f conftest.er1
42984 cat conftest.err >&5
a848cd7e
SC
42985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42986 (exit $ac_status); } &&
c9a66001 42987 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42989 (eval $ac_try) 2>&5
42990 ac_status=$?
42991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42992 (exit $ac_status); }; } &&
42993 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
42994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42995 (eval $ac_try) 2>&5
42996 ac_status=$?
42997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42998 (exit $ac_status); }; }; then
42999 ac_cv_func_socket=yes
43000else
43001 echo "$as_me: failed program was:" >&5
43002sed 's/^/| /' conftest.$ac_ext >&5
43003
43004ac_cv_func_socket=no
43005fi
ac1cb8d3
VS
43006rm -f conftest.err conftest.$ac_objext \
43007 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
43008fi
43009echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
43010echo "${ECHO_T}$ac_cv_func_socket" >&6
43011if test $ac_cv_func_socket = yes; then
43012 :
43013else
43014
43015 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
43016echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
43017if test "${ac_cv_lib_socket_socket+set}" = set; then
43018 echo $ECHO_N "(cached) $ECHO_C" >&6
43019else
43020 ac_check_lib_save_LIBS=$LIBS
43021LIBS="-lsocket $LIBS"
43022cat >conftest.$ac_ext <<_ACEOF
43023/* confdefs.h. */
43024_ACEOF
43025cat confdefs.h >>conftest.$ac_ext
43026cat >>conftest.$ac_ext <<_ACEOF
43027/* end confdefs.h. */
43028
43029/* Override any gcc2 internal prototype to avoid an error. */
43030#ifdef __cplusplus
43031extern "C"
43032#endif
43033/* We use char because int might match the return type of a gcc2
43034 builtin and then its argument prototype would still apply. */
43035char socket ();
43036int
43037main ()
43038{
43039socket ();
43040 ;
43041 return 0;
43042}
43043_ACEOF
43044rm -f conftest.$ac_objext conftest$ac_exeext
43045if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 43046 (eval $ac_link) 2>conftest.er1
a848cd7e 43047 ac_status=$?
ac1cb8d3
VS
43048 grep -v '^ *+' conftest.er1 >conftest.err
43049 rm -f conftest.er1
43050 cat conftest.err >&5
a848cd7e
SC
43051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43052 (exit $ac_status); } &&
c9a66001 43053 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43055 (eval $ac_try) 2>&5
43056 ac_status=$?
43057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43058 (exit $ac_status); }; } &&
43059 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
43060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43061 (eval $ac_try) 2>&5
43062 ac_status=$?
43063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43064 (exit $ac_status); }; }; then
43065 ac_cv_lib_socket_socket=yes
43066else
43067 echo "$as_me: failed program was:" >&5
43068sed 's/^/| /' conftest.$ac_ext >&5
43069
43070ac_cv_lib_socket_socket=no
43071fi
ac1cb8d3
VS
43072rm -f conftest.err conftest.$ac_objext \
43073 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
43074LIBS=$ac_check_lib_save_LIBS
43075fi
43076echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
43077echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
43078if test $ac_cv_lib_socket_socket = yes; then
43079 if test "$INET_LINK" != " -lsocket"; then
43080 INET_LINK="$INET_LINK -lsocket"
43081 fi
43082else
43083
43084 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
43085echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
43086 wxUSE_SOCKETS=no
43087
43088
43089fi
43090
43091
43092
43093fi
43094
43095 fi
43096fi
43097
43098if test "$wxUSE_SOCKETS" = "yes" ; then
43099 if test "$TOOLKIT" != "MSW"; then
5d7b7554 43100 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
a848cd7e
SC
43101echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
43102if test "${wx_cv_type_getsockname3+set}" = set; then
43103 echo $ECHO_N "(cached) $ECHO_C" >&6
43104else
43105
43106 cat >conftest.$ac_ext <<_ACEOF
43107/* confdefs.h. */
43108_ACEOF
43109cat confdefs.h >>conftest.$ac_ext
43110cat >>conftest.$ac_ext <<_ACEOF
43111/* end confdefs.h. */
43112
43113 #include <sys/types.h>
43114 #include <sys/socket.h>
43115
43116int
43117main ()
43118{
43119
43120 socklen_t len;
43121 getsockname(0, 0, &len);
43122
43123 ;
43124 return 0;
43125}
43126_ACEOF
43127rm -f conftest.$ac_objext
43128if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43129 (eval $ac_compile) 2>conftest.er1
a848cd7e 43130 ac_status=$?
ac1cb8d3
VS
43131 grep -v '^ *+' conftest.er1 >conftest.err
43132 rm -f conftest.er1
43133 cat conftest.err >&5
a848cd7e
SC
43134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43135 (exit $ac_status); } &&
c9a66001 43136 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43138 (eval $ac_try) 2>&5
43139 ac_status=$?
43140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43141 (exit $ac_status); }; } &&
43142 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43144 (eval $ac_try) 2>&5
43145 ac_status=$?
43146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43147 (exit $ac_status); }; }; then
43148 wx_cv_type_getsockname3=socklen_t
43149else
43150 echo "$as_me: failed program was:" >&5
43151sed 's/^/| /' conftest.$ac_ext >&5
43152
43153
6459a506 43154 CXXFLAGS_OLD="$CXXFLAGS"
a848cd7e 43155 if test "$GCC" = yes ; then
c92ad099 43156 CXXFLAGS="-Werror $CXXFLAGS"
a848cd7e
SC
43157 fi
43158
43159 cat >conftest.$ac_ext <<_ACEOF
43160/* confdefs.h. */
43161_ACEOF
43162cat confdefs.h >>conftest.$ac_ext
43163cat >>conftest.$ac_ext <<_ACEOF
43164/* end confdefs.h. */
43165
43166 #include <sys/types.h>
43167 #include <sys/socket.h>
43168
43169int
43170main ()
43171{
43172
43173 size_t len;
43174 getsockname(0, 0, &len);
43175
43176 ;
43177 return 0;
43178}
43179_ACEOF
43180rm -f conftest.$ac_objext
43181if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43182 (eval $ac_compile) 2>conftest.er1
a848cd7e 43183 ac_status=$?
ac1cb8d3
VS
43184 grep -v '^ *+' conftest.er1 >conftest.err
43185 rm -f conftest.er1
43186 cat conftest.err >&5
a848cd7e
SC
43187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43188 (exit $ac_status); } &&
c9a66001 43189 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43191 (eval $ac_try) 2>&5
43192 ac_status=$?
43193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43194 (exit $ac_status); }; } &&
43195 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43197 (eval $ac_try) 2>&5
43198 ac_status=$?
43199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43200 (exit $ac_status); }; }; then
43201 wx_cv_type_getsockname3=size_t
43202else
43203 echo "$as_me: failed program was:" >&5
43204sed 's/^/| /' conftest.$ac_ext >&5
43205
43206cat >conftest.$ac_ext <<_ACEOF
43207/* confdefs.h. */
43208_ACEOF
43209cat confdefs.h >>conftest.$ac_ext
43210cat >>conftest.$ac_ext <<_ACEOF
43211/* end confdefs.h. */
43212
43213 #include <sys/types.h>
43214 #include <sys/socket.h>
43215
43216int
43217main ()
43218{
43219
43220 int len;
43221 getsockname(0, 0, &len);
43222
43223 ;
43224 return 0;
43225}
43226_ACEOF
43227rm -f conftest.$ac_objext
43228if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43229 (eval $ac_compile) 2>conftest.er1
a848cd7e 43230 ac_status=$?
ac1cb8d3
VS
43231 grep -v '^ *+' conftest.er1 >conftest.err
43232 rm -f conftest.er1
43233 cat conftest.err >&5
a848cd7e
SC
43234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43235 (exit $ac_status); } &&
c9a66001 43236 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43238 (eval $ac_try) 2>&5
43239 ac_status=$?
43240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43241 (exit $ac_status); }; } &&
43242 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43244 (eval $ac_try) 2>&5
43245 ac_status=$?
43246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43247 (exit $ac_status); }; }; then
43248 wx_cv_type_getsockname3=int
43249else
43250 echo "$as_me: failed program was:" >&5
43251sed 's/^/| /' conftest.$ac_ext >&5
43252
43253wx_cv_type_getsockname3=unknown
43254
43255fi
ac1cb8d3 43256rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
43257
43258fi
ac1cb8d3 43259rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 43260
6459a506 43261 CXXFLAGS="$CXXFLAGS_OLD"
a848cd7e
SC
43262
43263
43264fi
ac1cb8d3 43265rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
43266
43267fi
43268echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
43269echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
43270
43271 if test "$wx_cv_type_getsockname3" = "unknown"; then
43272 wxUSE_SOCKETS=no
43273 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
43274echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
43275 else
43276 cat >>confdefs.h <<_ACEOF
9e03e02d 43277#define WX_SOCKLEN_T $wx_cv_type_getsockname3
5b674b9d
DE
43278_ACEOF
43279
43280 fi
43281 echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5
43282echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6
43283if test "${wx_cv_type_getsockopt5+set}" = set; then
43284 echo $ECHO_N "(cached) $ECHO_C" >&6
43285else
43286
43287 cat >conftest.$ac_ext <<_ACEOF
43288/* confdefs.h. */
43289_ACEOF
43290cat confdefs.h >>conftest.$ac_ext
43291cat >>conftest.$ac_ext <<_ACEOF
43292/* end confdefs.h. */
43293
43294 #include <sys/types.h>
43295 #include <sys/socket.h>
43296
43297int
43298main ()
43299{
43300
43301 socklen_t len;
43302 getsockopt(0, 0, 0, 0, &len);
43303
43304 ;
43305 return 0;
43306}
43307_ACEOF
43308rm -f conftest.$ac_objext
43309if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43310 (eval $ac_compile) 2>conftest.er1
43311 ac_status=$?
43312 grep -v '^ *+' conftest.er1 >conftest.err
43313 rm -f conftest.er1
43314 cat conftest.err >&5
43315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43316 (exit $ac_status); } &&
c9a66001 43317 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
43318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43319 (eval $ac_try) 2>&5
43320 ac_status=$?
43321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43322 (exit $ac_status); }; } &&
43323 { ac_try='test -s conftest.$ac_objext'
43324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43325 (eval $ac_try) 2>&5
43326 ac_status=$?
43327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43328 (exit $ac_status); }; }; then
43329 wx_cv_type_getsockopt5=socklen_t
43330else
43331 echo "$as_me: failed program was:" >&5
43332sed 's/^/| /' conftest.$ac_ext >&5
43333
43334
6459a506 43335 CXXFLAGS_OLD="$CXXFLAGS"
5b674b9d 43336 if test "$GCC" = yes ; then
c92ad099 43337 CXXFLAGS="-Werror $CXXFLAGS"
5b674b9d
DE
43338 fi
43339
43340 cat >conftest.$ac_ext <<_ACEOF
43341/* confdefs.h. */
43342_ACEOF
43343cat confdefs.h >>conftest.$ac_ext
43344cat >>conftest.$ac_ext <<_ACEOF
43345/* end confdefs.h. */
43346
43347 #include <sys/types.h>
43348 #include <sys/socket.h>
43349
43350int
43351main ()
43352{
43353
43354 size_t len;
43355 getsockopt(0, 0, 0, 0, &len);
43356
43357 ;
43358 return 0;
43359}
43360_ACEOF
43361rm -f conftest.$ac_objext
43362if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43363 (eval $ac_compile) 2>conftest.er1
43364 ac_status=$?
43365 grep -v '^ *+' conftest.er1 >conftest.err
43366 rm -f conftest.er1
43367 cat conftest.err >&5
43368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43369 (exit $ac_status); } &&
c9a66001 43370 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
43371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43372 (eval $ac_try) 2>&5
43373 ac_status=$?
43374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43375 (exit $ac_status); }; } &&
43376 { ac_try='test -s conftest.$ac_objext'
43377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43378 (eval $ac_try) 2>&5
43379 ac_status=$?
43380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43381 (exit $ac_status); }; }; then
43382 wx_cv_type_getsockopt5=size_t
43383else
43384 echo "$as_me: failed program was:" >&5
43385sed 's/^/| /' conftest.$ac_ext >&5
43386
43387cat >conftest.$ac_ext <<_ACEOF
43388/* confdefs.h. */
43389_ACEOF
43390cat confdefs.h >>conftest.$ac_ext
43391cat >>conftest.$ac_ext <<_ACEOF
43392/* end confdefs.h. */
43393
43394 #include <sys/types.h>
43395 #include <sys/socket.h>
43396
43397int
43398main ()
43399{
43400
43401 int len;
43402 getsockopt(0, 0, 0, 0, &len);
43403
43404 ;
43405 return 0;
43406}
43407_ACEOF
43408rm -f conftest.$ac_objext
43409if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43410 (eval $ac_compile) 2>conftest.er1
43411 ac_status=$?
43412 grep -v '^ *+' conftest.er1 >conftest.err
43413 rm -f conftest.er1
43414 cat conftest.err >&5
43415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43416 (exit $ac_status); } &&
c9a66001 43417 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
43418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43419 (eval $ac_try) 2>&5
43420 ac_status=$?
43421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43422 (exit $ac_status); }; } &&
43423 { ac_try='test -s conftest.$ac_objext'
43424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43425 (eval $ac_try) 2>&5
43426 ac_status=$?
43427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43428 (exit $ac_status); }; }; then
43429 wx_cv_type_getsockopt5=int
43430else
43431 echo "$as_me: failed program was:" >&5
43432sed 's/^/| /' conftest.$ac_ext >&5
43433
43434wx_cv_type_getsockopt5=unknown
43435
43436fi
43437rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43438
43439fi
43440rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43441
6459a506 43442 CXXFLAGS="$CXXFLAGS_OLD"
5b674b9d
DE
43443
43444
43445fi
43446rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43447
43448fi
43449echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5
43450echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6
43451
43452 if test "$wx_cv_type_getsockopt5" = "unknown"; then
43453 wxUSE_SOCKETS=no
43454 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
43455echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
43456 else
43457 cat >>confdefs.h <<_ACEOF
43458#define SOCKOPTLEN_T $wx_cv_type_getsockopt5
a848cd7e
SC
43459_ACEOF
43460
43461 fi
43462 fi
43463fi
43464
43465if test "$wxUSE_SOCKETS" = "yes" ; then
43466 cat >>confdefs.h <<\_ACEOF
43467#define wxUSE_SOCKETS 1
43468_ACEOF
43469
43470 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
43471fi
43472
43473if test "$wxUSE_PROTOCOL" = "yes"; then
43474 if test "$wxUSE_SOCKETS" != "yes"; then
43475 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
43476echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
43477 wxUSE_PROTOCOL=no
43478 fi
43479fi
43480
43481if test "$wxUSE_PROTOCOL" = "yes"; then
43482 cat >>confdefs.h <<\_ACEOF
43483#define wxUSE_PROTOCOL 1
43484_ACEOF
43485
43486
43487 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
43488 cat >>confdefs.h <<\_ACEOF
43489#define wxUSE_PROTOCOL_HTTP 1
43490_ACEOF
43491
43492 fi
43493 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
43494 cat >>confdefs.h <<\_ACEOF
43495#define wxUSE_PROTOCOL_FTP 1
43496_ACEOF
43497
43498 fi
43499 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
43500 cat >>confdefs.h <<\_ACEOF
43501#define wxUSE_PROTOCOL_FILE 1
43502_ACEOF
43503
43504 fi
43505else
43506 if test "$wxUSE_FS_INET" = "yes"; then
43507 { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
43508echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
43509 wxUSE_FS_INET="no"
43510 fi
43511fi
43512
43513if test "$wxUSE_URL" = "yes"; then
43514 if test "$wxUSE_PROTOCOL" != "yes"; then
43515 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
43516echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
43517 wxUSE_URL=no
43518 fi
43519 if test "$wxUSE_URL" = "yes"; then
43520 cat >>confdefs.h <<\_ACEOF
43521#define wxUSE_URL 1
43522_ACEOF
43523
43524 fi
43525fi
43526
43527if test "$wxUSE_FS_INET" = "yes"; then
43528 cat >>confdefs.h <<\_ACEOF
43529#define wxUSE_FS_INET 1
43530_ACEOF
43531
43532fi
43533
43534
ee45c548
MW
43535if test "$wxUSE_GUI" = "yes" -a "$wxUSE_JOYSTICK" = "yes"; then
43536 wxUSE_JOYSTICK=no
43537
43538 if test "$TOOLKIT" = "MSW"; then
43539 wxUSE_JOYSTICK=yes
43540
43541 elif test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
43542 if test "$USE_DARWIN" = 1; then
43543 echo "$as_me:$LINENO: checking headers have declarations needed for joystick support" >&5
43544echo $ECHO_N "checking headers have declarations needed for joystick support... $ECHO_C" >&6
ee45c548
MW
43545 cat >conftest.$ac_ext <<_ACEOF
43546/* confdefs.h. */
43547_ACEOF
43548cat confdefs.h >>conftest.$ac_ext
43549cat >>conftest.$ac_ext <<_ACEOF
43550/* end confdefs.h. */
43551 #include <IOKit/hid/IOHIDLib.h>
43552int
43553main ()
43554{
43555 IOHIDQueueInterface *qi = NULL;
43556 IOHIDCallbackFunction cb = NULL;
43557 qi->setEventCallout(NULL, cb, NULL, NULL);
43558 ;
43559 return 0;
43560}
43561_ACEOF
43562rm -f conftest.$ac_objext
43563if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43564 (eval $ac_compile) 2>conftest.er1
43565 ac_status=$?
43566 grep -v '^ *+' conftest.er1 >conftest.err
43567 rm -f conftest.er1
43568 cat conftest.err >&5
43569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43570 (exit $ac_status); } &&
c9a66001 43571 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ee45c548
MW
43572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43573 (eval $ac_try) 2>&5
43574 ac_status=$?
43575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43576 (exit $ac_status); }; } &&
43577 { ac_try='test -s conftest.$ac_objext'
43578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43579 (eval $ac_try) 2>&5
43580 ac_status=$?
43581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43582 (exit $ac_status); }; }; then
43583 wxUSE_JOYSTICK=yes
a848cd7e 43584
ee45c548
MW
43585else
43586 echo "$as_me: failed program was:" >&5
43587sed 's/^/| /' conftest.$ac_ext >&5
43588
43589fi
43590rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ee45c548
MW
43591 echo "$as_me:$LINENO: result: $wxUSE_JOYSTICK" >&5
43592echo "${ECHO_T}$wxUSE_JOYSTICK" >&6
43593 fi
43594
43595 else
a848cd7e
SC
43596
43597for ac_header in linux/joystick.h
43598do
43599as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43600if eval "test \"\${$as_ac_Header+set}\" = set"; then
43601 echo "$as_me:$LINENO: checking for $ac_header" >&5
43602echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43603if eval "test \"\${$as_ac_Header+set}\" = set"; then
43604 echo $ECHO_N "(cached) $ECHO_C" >&6
43605fi
43606echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43607echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43608else
43609 # Is the header compilable?
43610echo "$as_me:$LINENO: checking $ac_header usability" >&5
43611echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
43612cat >conftest.$ac_ext <<_ACEOF
43613/* confdefs.h. */
43614_ACEOF
43615cat confdefs.h >>conftest.$ac_ext
43616cat >>conftest.$ac_ext <<_ACEOF
43617/* end confdefs.h. */
43618$ac_includes_default
43619#include <$ac_header>
43620_ACEOF
43621rm -f conftest.$ac_objext
43622if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43623 (eval $ac_compile) 2>conftest.er1
a848cd7e 43624 ac_status=$?
ac1cb8d3
VS
43625 grep -v '^ *+' conftest.er1 >conftest.err
43626 rm -f conftest.er1
43627 cat conftest.err >&5
a848cd7e
SC
43628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43629 (exit $ac_status); } &&
c9a66001 43630 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43632 (eval $ac_try) 2>&5
43633 ac_status=$?
43634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43635 (exit $ac_status); }; } &&
43636 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43638 (eval $ac_try) 2>&5
43639 ac_status=$?
43640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43641 (exit $ac_status); }; }; then
43642 ac_header_compiler=yes
43643else
43644 echo "$as_me: failed program was:" >&5
43645sed 's/^/| /' conftest.$ac_ext >&5
43646
43647ac_header_compiler=no
43648fi
ac1cb8d3 43649rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
43650echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43651echo "${ECHO_T}$ac_header_compiler" >&6
43652
43653# Is the header present?
43654echo "$as_me:$LINENO: checking $ac_header presence" >&5
43655echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
43656cat >conftest.$ac_ext <<_ACEOF
43657/* confdefs.h. */
43658_ACEOF
43659cat confdefs.h >>conftest.$ac_ext
43660cat >>conftest.$ac_ext <<_ACEOF
43661/* end confdefs.h. */
43662#include <$ac_header>
43663_ACEOF
43664if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
43665 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
43666 ac_status=$?
43667 grep -v '^ *+' conftest.er1 >conftest.err
43668 rm -f conftest.er1
43669 cat conftest.err >&5
43670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43671 (exit $ac_status); } >/dev/null; then
43672 if test -s conftest.err; then
5d7b7554
VZ
43673 ac_cpp_err=$ac_cxx_preproc_warn_flag
43674 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
43675 else
43676 ac_cpp_err=
43677 fi
43678else
43679 ac_cpp_err=yes
43680fi
43681if test -z "$ac_cpp_err"; then
43682 ac_header_preproc=yes
43683else
43684 echo "$as_me: failed program was:" >&5
43685sed 's/^/| /' conftest.$ac_ext >&5
43686
43687 ac_header_preproc=no
43688fi
43689rm -f conftest.err conftest.$ac_ext
43690echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43691echo "${ECHO_T}$ac_header_preproc" >&6
43692
43693# So? What about this header?
5d7b7554 43694case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 43695 yes:no: )
a848cd7e
SC
43696 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
43697echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
43698 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
43699echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
43700 ac_header_preproc=yes
a848cd7e 43701 ;;
ac1cb8d3 43702 no:yes:* )
a848cd7e
SC
43703 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
43704echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
43705 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
43706echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
43707 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
43708echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
43709 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
43710echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
43711 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
43712echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
43713 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
43714echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
43715 (
43716 cat <<\_ASBOX
ac1cb8d3
VS
43717## ----------------------------------------- ##
43718## Report this to wx-dev@lists.wxwidgets.org ##
43719## ----------------------------------------- ##
a848cd7e
SC
43720_ASBOX
43721 ) |
43722 sed "s/^/$as_me: WARNING: /" >&2
43723 ;;
43724esac
43725echo "$as_me:$LINENO: checking for $ac_header" >&5
43726echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43727if eval "test \"\${$as_ac_Header+set}\" = set"; then
43728 echo $ECHO_N "(cached) $ECHO_C" >&6
43729else
ac1cb8d3 43730 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
43731fi
43732echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43733echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43734
43735fi
43736if test `eval echo '${'$as_ac_Header'}'` = yes; then
43737 cat >>confdefs.h <<_ACEOF
43738#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
43739_ACEOF
ee45c548 43740 wxUSE_JOYSTICK=yes
a848cd7e
SC
43741fi
43742
43743done
43744
ee45c548 43745 fi
4cb1d3da 43746
ee45c548
MW
43747 if test "$wxUSE_JOYSTICK" = "yes"; then
43748 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
43749#define wxUSE_JOYSTICK 1
43750_ACEOF
43751
ee45c548
MW
43752 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
43753 else
43754 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
43755echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
a848cd7e
SC
43756 fi
43757fi
43758
43759
43760
43761if test "$wxUSE_FONTMAP" = "yes" ; then
43762 cat >>confdefs.h <<\_ACEOF
43763#define wxUSE_FONTMAP 1
43764_ACEOF
43765
43766fi
43767
43768if test "$wxUSE_UNICODE" = "yes" ; then
43769 cat >>confdefs.h <<\_ACEOF
43770#define wxUSE_UNICODE 1
43771_ACEOF
43772
43773
43774 if test "$USE_WIN32" != 1; then
43775 wxUSE_UNICODE_MSLU=no
43776 fi
43777
43778 if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
43779 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
43780echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
43781if test "${ac_cv_lib_unicows_main+set}" = set; then
43782 echo $ECHO_N "(cached) $ECHO_C" >&6
43783else
43784 ac_check_lib_save_LIBS=$LIBS
43785LIBS="-lunicows $LIBS"
43786cat >conftest.$ac_ext <<_ACEOF
43787/* confdefs.h. */
43788_ACEOF
43789cat confdefs.h >>conftest.$ac_ext
43790cat >>conftest.$ac_ext <<_ACEOF
43791/* end confdefs.h. */
43792
43793
43794int
43795main ()
43796{
43797main ();
43798 ;
43799 return 0;
43800}
43801_ACEOF
43802rm -f conftest.$ac_objext conftest$ac_exeext
43803if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 43804 (eval $ac_link) 2>conftest.er1
a848cd7e 43805 ac_status=$?
ac1cb8d3
VS
43806 grep -v '^ *+' conftest.er1 >conftest.err
43807 rm -f conftest.er1
43808 cat conftest.err >&5
a848cd7e
SC
43809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43810 (exit $ac_status); } &&
c9a66001 43811 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43813 (eval $ac_try) 2>&5
43814 ac_status=$?
43815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43816 (exit $ac_status); }; } &&
43817 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
43818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43819 (eval $ac_try) 2>&5
43820 ac_status=$?
43821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43822 (exit $ac_status); }; }; then
43823 ac_cv_lib_unicows_main=yes
43824else
43825 echo "$as_me: failed program was:" >&5
43826sed 's/^/| /' conftest.$ac_ext >&5
43827
43828ac_cv_lib_unicows_main=no
43829fi
ac1cb8d3
VS
43830rm -f conftest.err conftest.$ac_objext \
43831 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
43832LIBS=$ac_check_lib_save_LIBS
43833fi
43834echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
43835echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
43836if test $ac_cv_lib_unicows_main = yes; then
43837
43838 cat >>confdefs.h <<\_ACEOF
43839#define wxUSE_UNICODE_MSLU 1
43840_ACEOF
43841
43842
43843else
43844
43845 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
43846 Applications will only run on Windows NT/2000/XP!" >&5
43847echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
43848 Applications will only run on Windows NT/2000/XP!" >&2;}
43849 wxUSE_UNICODE_MSLU=no
43850
43851fi
43852
43853 fi
43854fi
43855
43856if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
43857 cat >>confdefs.h <<\_ACEOF
43858#define wxUSE_EXPERIMENTAL_PRINTF 1
43859_ACEOF
43860
43861fi
43862
43863
43864if test "$wxUSE_POSTSCRIPT" = "yes" ; then
43865 cat >>confdefs.h <<\_ACEOF
43866#define wxUSE_POSTSCRIPT 1
43867_ACEOF
43868
43869fi
43870
43871cat >>confdefs.h <<\_ACEOF
43872#define wxUSE_AFM_FOR_POSTSCRIPT 1
43873_ACEOF
43874
43875
43876cat >>confdefs.h <<\_ACEOF
43877#define wxUSE_NORMALIZED_PS_FONTS 1
43878_ACEOF
43879
43880
43881
43882if test "$wxUSE_CONSTRAINTS" = "yes"; then
43883 cat >>confdefs.h <<\_ACEOF
43884#define wxUSE_CONSTRAINTS 1
43885_ACEOF
43886
43887 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
43888fi
43889
8a7b1113
VZ
43890if test "$wxUSE_MDI" = "yes"; then
43891 cat >>confdefs.h <<\_ACEOF
43892#define wxUSE_MDI 1
43893_ACEOF
43894
43895
43896 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
43897 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
43898#define wxUSE_MDI_ARCHITECTURE 1
43899_ACEOF
43900
8a7b1113
VZ
43901 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
43902 fi
a848cd7e
SC
43903fi
43904
43905if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
43906 cat >>confdefs.h <<\_ACEOF
43907#define wxUSE_DOC_VIEW_ARCHITECTURE 1
43908_ACEOF
43909
43910 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
43911 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
43912 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
43913 fi
43914fi
43915
43916if test "$wxUSE_HELP" = "yes"; then
43917 cat >>confdefs.h <<\_ACEOF
43918#define wxUSE_HELP 1
43919_ACEOF
43920
43921 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
43922
43923 if test "$wxUSE_MSW" = 1; then
43924 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
43925 cat >>confdefs.h <<\_ACEOF
43926#define wxUSE_MS_HTML_HELP 1
43927_ACEOF
43928
43929 fi
43930 fi
43931
43932 if test "$wxUSE_WXHTML_HELP" = "yes"; then
43933 if test "$wxUSE_HTML" = "yes"; then
43934 cat >>confdefs.h <<\_ACEOF
43935#define wxUSE_WXHTML_HELP 1
43936_ACEOF
43937
43938 else
43939 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
43940echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
43941 wxUSE_WXHTML_HELP=no
43942 fi
43943 fi
43944fi
43945
43946if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
43947 if test "$wxUSE_CONSTRAINTS" != "yes"; then
43948 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
43949echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
43950 else
43951 cat >>confdefs.h <<\_ACEOF
43952#define wxUSE_PRINTING_ARCHITECTURE 1
43953_ACEOF
43954
43955 fi
43956 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
43957fi
43958
43959if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
43960 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
43961echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
43962 { (exit 1); exit 1; }; }
43963fi
43964
43965
efdf6afe
VZ
43966if test "$wxUSE_METAFILE" = "yes"; then
43967 if test "$wxUSE_MSW" != 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_PM" != 1; then
43968 { echo "$as_me:$LINENO: WARNING: wxMetafile is not available on this system... disabled" >&5
43969echo "$as_me: WARNING: wxMetafile is not available on this system... disabled" >&2;}
43970 wxUSE_METAFILE=no
43971 fi
43972fi
43973
43974
a848cd7e
SC
43975if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
43976 -o "$wxUSE_CLIPBOARD" = "yes" \
43977 -o "$wxUSE_OLE" = "yes" \
43978 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
43979
43980for ac_header in ole2.h
43981do
43982as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43983if eval "test \"\${$as_ac_Header+set}\" = set"; then
43984 echo "$as_me:$LINENO: checking for $ac_header" >&5
43985echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43986if eval "test \"\${$as_ac_Header+set}\" = set"; then
43987 echo $ECHO_N "(cached) $ECHO_C" >&6
43988fi
43989echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43990echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43991else
43992 # Is the header compilable?
43993echo "$as_me:$LINENO: checking $ac_header usability" >&5
43994echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
43995cat >conftest.$ac_ext <<_ACEOF
43996/* confdefs.h. */
43997_ACEOF
43998cat confdefs.h >>conftest.$ac_ext
43999cat >>conftest.$ac_ext <<_ACEOF
44000/* end confdefs.h. */
44001$ac_includes_default
44002#include <$ac_header>
44003_ACEOF
44004rm -f conftest.$ac_objext
44005if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 44006 (eval $ac_compile) 2>conftest.er1
a848cd7e 44007 ac_status=$?
ac1cb8d3
VS
44008 grep -v '^ *+' conftest.er1 >conftest.err
44009 rm -f conftest.er1
44010 cat conftest.err >&5
a848cd7e
SC
44011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44012 (exit $ac_status); } &&
c9a66001 44013 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
44014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44015 (eval $ac_try) 2>&5
44016 ac_status=$?
44017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44018 (exit $ac_status); }; } &&
44019 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
44020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44021 (eval $ac_try) 2>&5
44022 ac_status=$?
44023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44024 (exit $ac_status); }; }; then
44025 ac_header_compiler=yes
44026else
44027 echo "$as_me: failed program was:" >&5
44028sed 's/^/| /' conftest.$ac_ext >&5
44029
44030ac_header_compiler=no
44031fi
ac1cb8d3 44032rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
44033echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44034echo "${ECHO_T}$ac_header_compiler" >&6
44035
44036# Is the header present?
44037echo "$as_me:$LINENO: checking $ac_header presence" >&5
44038echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
44039cat >conftest.$ac_ext <<_ACEOF
44040/* confdefs.h. */
44041_ACEOF
44042cat confdefs.h >>conftest.$ac_ext
44043cat >>conftest.$ac_ext <<_ACEOF
44044/* end confdefs.h. */
44045#include <$ac_header>
44046_ACEOF
44047if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
44048 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
44049 ac_status=$?
44050 grep -v '^ *+' conftest.er1 >conftest.err
44051 rm -f conftest.er1
44052 cat conftest.err >&5
44053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44054 (exit $ac_status); } >/dev/null; then
44055 if test -s conftest.err; then
5d7b7554
VZ
44056 ac_cpp_err=$ac_cxx_preproc_warn_flag
44057 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
44058 else
44059 ac_cpp_err=
44060 fi
44061else
44062 ac_cpp_err=yes
44063fi
44064if test -z "$ac_cpp_err"; then
44065 ac_header_preproc=yes
44066else
44067 echo "$as_me: failed program was:" >&5
44068sed 's/^/| /' conftest.$ac_ext >&5
44069
44070 ac_header_preproc=no
44071fi
44072rm -f conftest.err conftest.$ac_ext
44073echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44074echo "${ECHO_T}$ac_header_preproc" >&6
44075
44076# So? What about this header?
5d7b7554 44077case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 44078 yes:no: )
a848cd7e
SC
44079 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44080echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
44081 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
44082echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
44083 ac_header_preproc=yes
a848cd7e 44084 ;;
ac1cb8d3 44085 no:yes:* )
a848cd7e
SC
44086 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44087echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
44088 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
44089echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
44090 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
44091echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
44092 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
44093echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
44094 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44095echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
44096 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
44097echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
44098 (
44099 cat <<\_ASBOX
ac1cb8d3
VS
44100## ----------------------------------------- ##
44101## Report this to wx-dev@lists.wxwidgets.org ##
44102## ----------------------------------------- ##
a848cd7e
SC
44103_ASBOX
44104 ) |
44105 sed "s/^/$as_me: WARNING: /" >&2
44106 ;;
44107esac
44108echo "$as_me:$LINENO: checking for $ac_header" >&5
44109echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44110if eval "test \"\${$as_ac_Header+set}\" = set"; then
44111 echo $ECHO_N "(cached) $ECHO_C" >&6
44112else
ac1cb8d3 44113 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
44114fi
44115echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44116echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44117
44118fi
44119if test `eval echo '${'$as_ac_Header'}'` = yes; then
44120 cat >>confdefs.h <<_ACEOF
44121#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44122_ACEOF
44123
44124fi
44125
44126done
44127
44128
44129 if test "$ac_cv_header_ole2_h" = "yes" ; then
44130 if test "$GCC" = yes ; then
a848cd7e
SC
44131 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
44132echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
44133 cat >conftest.$ac_ext <<_ACEOF
44134/* confdefs.h. */
44135_ACEOF
44136cat confdefs.h >>conftest.$ac_ext
44137cat >>conftest.$ac_ext <<_ACEOF
44138/* end confdefs.h. */
44139#include <windows.h>
44140 #include <ole2.h>
44141int
44142main ()
44143{
44144
44145 ;
44146 return 0;
44147}
44148_ACEOF
44149rm -f conftest.$ac_objext
44150if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 44151 (eval $ac_compile) 2>conftest.er1
a848cd7e 44152 ac_status=$?
ac1cb8d3
VS
44153 grep -v '^ *+' conftest.er1 >conftest.err
44154 rm -f conftest.er1
44155 cat conftest.err >&5
a848cd7e
SC
44156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44157 (exit $ac_status); } &&
c9a66001 44158 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
44159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44160 (eval $ac_try) 2>&5
44161 ac_status=$?
44162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44163 (exit $ac_status); }; } &&
44164 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
44165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44166 (eval $ac_try) 2>&5
44167 ac_status=$?
44168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44169 (exit $ac_status); }; }; then
44170 echo "$as_me:$LINENO: result: no" >&5
44171echo "${ECHO_T}no" >&6
44172else
44173 echo "$as_me: failed program was:" >&5
44174sed 's/^/| /' conftest.$ac_ext >&5
44175
44176echo "$as_me:$LINENO: result: yes" >&5
44177echo "${ECHO_T}yes" >&6
5ff751d6 44178 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fvtable-thunks"
a848cd7e 44179fi
ac1cb8d3 44180rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
44181 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
44182 if test "$wxUSE_OLE" = "yes" ; then
44183 cat >>confdefs.h <<\_ACEOF
44184#define wxUSE_OLE 1
44185_ACEOF
44186
0b78747f 44187 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto"
a848cd7e
SC
44188 fi
44189 fi
44190
44191 if test "$wxUSE_DATAOBJ" = "yes" ; then
44192 cat >>confdefs.h <<\_ACEOF
44193#define wxUSE_DATAOBJ 1
44194_ACEOF
44195
44196 fi
44197 else
44198 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
44199echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
44200
44201 wxUSE_CLIPBOARD=no
44202 wxUSE_DRAG_AND_DROP=no
44203 wxUSE_DATAOBJ=no
44204 wxUSE_OLE=no
44205 fi
44206
44207 if test "$wxUSE_METAFILE" = "yes"; then
44208 cat >>confdefs.h <<\_ACEOF
44209#define wxUSE_METAFILE 1
44210_ACEOF
44211
44212
44213 cat >>confdefs.h <<\_ACEOF
44214#define wxUSE_ENH_METAFILE 1
44215_ACEOF
44216
44217 fi
44218fi
44219
44220if test "$wxUSE_IPC" = "yes"; then
0b78747f 44221 if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then
77ffb593
JS
44222 { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
44223echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
0b78747f 44224 wxUSE_IPC=no
a848cd7e
SC
44225 fi
44226
0b78747f
MW
44227 if test "$wxUSE_IPC" = "yes"; then
44228 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
44229#define wxUSE_IPC 1
44230_ACEOF
44231
0b78747f
MW
44232 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
44233 fi
a848cd7e
SC
44234fi
44235
eb730a0c 44236if test "$wxUSE_DATAOBJ" = "yes"; then
2113bc77
MW
44237 if test "$wxUSE_MGL" = 1; then
44238 { echo "$as_me:$LINENO: WARNING: wxDataObject not yet supported under MGL... disabled" >&5
44239echo "$as_me: WARNING: wxDataObject not yet supported under MGL... disabled" >&2;}
44240 wxUSE_DATAOBJ=no
44241 else
44242 cat >>confdefs.h <<\_ACEOF
eb730a0c
JS
44243#define wxUSE_DATAOBJ 1
44244_ACEOF
44245
2113bc77 44246 fi
eb730a0c
JS
44247else
44248 { echo "$as_me:$LINENO: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&5
44249echo "$as_me: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&2;}
44250 wxUSE_CLIPBOARD=no
44251 wxUSE_DRAG_AND_DROP=no
44252fi
44253
a848cd7e
SC
44254if test "$wxUSE_CLIPBOARD" = "yes"; then
44255 if test "$wxUSE_MGL" = 1; then
44256 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
44257echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
44258 wxUSE_CLIPBOARD=no
44259 fi
44260
44261 if test "$wxUSE_CLIPBOARD" = "yes"; then
44262 cat >>confdefs.h <<\_ACEOF
44263#define wxUSE_CLIPBOARD 1
44264_ACEOF
44265
a848cd7e
SC
44266 fi
44267fi
44268
44269if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
44270 if test "$wxUSE_GTK" = 1; then
44271 if test "$WXGTK12" != 1; then
44272 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
44273echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
44274 wxUSE_DRAG_AND_DROP=no
44275 fi
44276 fi
44277
44278 if test "$wxUSE_MOTIF" = 1; then
44279 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
44280echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
44281 wxUSE_DRAG_AND_DROP=no
44282 fi
44283
44284 if test "$wxUSE_X11" = 1; then
44285 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
44286echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
44287 wxUSE_DRAG_AND_DROP=no
44288 fi
44289
44290 if test "$wxUSE_MGL" = 1; then
44291 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
44292echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
44293 wxUSE_DRAG_AND_DROP=no
44294 fi
44295
44296 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
44297 cat >>confdefs.h <<\_ACEOF
44298#define wxUSE_DRAG_AND_DROP 1
44299_ACEOF
44300
44301 fi
44302
44303fi
44304
44305if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
44306 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
44307fi
44308
44309if test "$wxUSE_SPLINES" = "yes" ; then
44310 cat >>confdefs.h <<\_ACEOF
44311#define wxUSE_SPLINES 1
44312_ACEOF
44313
44314fi
44315
fbe2ca43
SN
44316if test "$wxUSE_MOUSEWHEEL" = "yes" ; then
44317 cat >>confdefs.h <<\_ACEOF
44318#define wxUSE_MOUSEWHEEL 1
44319_ACEOF
44320
44321fi
44322
a848cd7e
SC
44323
44324USES_CONTROLS=0
44325if test "$wxUSE_CONTROLS" = "yes"; then
44326 USES_CONTROLS=1
44327fi
44328
44329if test "$wxUSE_ACCEL" = "yes"; then
44330 cat >>confdefs.h <<\_ACEOF
44331#define wxUSE_ACCEL 1
44332_ACEOF
44333
44334 USES_CONTROLS=1
44335fi
44336
44337if test "$wxUSE_BUTTON" = "yes"; then
44338 cat >>confdefs.h <<\_ACEOF
44339#define wxUSE_BUTTON 1
44340_ACEOF
44341
44342 USES_CONTROLS=1
44343fi
44344
44345if test "$wxUSE_BMPBUTTON" = "yes"; then
44346 cat >>confdefs.h <<\_ACEOF
44347#define wxUSE_BMPBUTTON 1
44348_ACEOF
44349
44350 USES_CONTROLS=1
44351fi
44352
44353if test "$wxUSE_CALCTRL" = "yes"; then
44354 cat >>confdefs.h <<\_ACEOF
44355#define wxUSE_CALENDARCTRL 1
44356_ACEOF
44357
44358 USES_CONTROLS=1
44359 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
44360fi
44361
44362if test "$wxUSE_CARET" = "yes"; then
44363 cat >>confdefs.h <<\_ACEOF
44364#define wxUSE_CARET 1
44365_ACEOF
44366
44367 USES_CONTROLS=1
44368 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
44369fi
44370
44371if test "$wxUSE_COMBOBOX" = "yes"; then
44372 cat >>confdefs.h <<\_ACEOF
44373#define wxUSE_COMBOBOX 1
44374_ACEOF
44375
44376 USES_CONTROLS=1
44377fi
44378
a57d600f 44379if test "$wxUSE_COMBOCTRL" = "yes"; then
642bcba9 44380 cat >>confdefs.h <<\_ACEOF
a57d600f 44381#define wxUSE_COMBOCTRL 1
642bcba9
VZ
44382_ACEOF
44383
44384 USES_CONTROLS=1
44385fi
44386
a848cd7e
SC
44387if test "$wxUSE_CHOICE" = "yes"; then
44388 cat >>confdefs.h <<\_ACEOF
44389#define wxUSE_CHOICE 1
44390_ACEOF
44391
44392 USES_CONTROLS=1
44393fi
44394
92bbdbcd
WS
44395if test "$wxUSE_CHOICEBOOK" = "yes"; then
44396 cat >>confdefs.h <<\_ACEOF
44397#define wxUSE_CHOICEBOOK 1
44398_ACEOF
44399
44400 USES_CONTROLS=1
44401fi
44402
a848cd7e
SC
44403if test "$wxUSE_CHECKBOX" = "yes"; then
44404 cat >>confdefs.h <<\_ACEOF
44405#define wxUSE_CHECKBOX 1
44406_ACEOF
44407
44408 USES_CONTROLS=1
44409fi
44410
44411if test "$wxUSE_CHECKLST" = "yes"; then
44412 cat >>confdefs.h <<\_ACEOF
44413#define wxUSE_CHECKLISTBOX 1
44414_ACEOF
44415
44416 USES_CONTROLS=1
44417 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
44418fi
44419
e9263684
VZ
44420if test "$wxUSE_COLOURPICKERCTRL" = "yes"; then
44421 cat >>confdefs.h <<\_ACEOF
44422#define wxUSE_COLOURPICKERCTRL 1
44423_ACEOF
44424
44425 USES_CONTROLS=1
44426fi
44427
da98e9be
VZ
44428if test "$wxUSE_DATEPICKCTRL" = "yes"; then
44429 cat >>confdefs.h <<\_ACEOF
44430#define wxUSE_DATEPICKCTRL 1
44431_ACEOF
44432
44433 USES_CONTROLS=1
44434fi
44435
e9263684
VZ
44436if test "$wxUSE_DIRPICKERCTRL" = "yes"; then
44437 cat >>confdefs.h <<\_ACEOF
44438#define wxUSE_DIRPICKERCTRL 1
44439_ACEOF
44440
44441 USES_CONTROLS=1
44442fi
44443
44444if test "$wxUSE_FILEPICKERCTRL" = "yes"; then
44445 cat >>confdefs.h <<\_ACEOF
44446#define wxUSE_FILEPICKERCTRL 1
44447_ACEOF
44448
44449 USES_CONTROLS=1
44450fi
44451
44452if test "$wxUSE_FONTPICKERCTRL" = "yes"; then
44453 cat >>confdefs.h <<\_ACEOF
44454#define wxUSE_FONTPICKERCTRL 1
44455_ACEOF
44456
44457 USES_CONTROLS=1
44458fi
44459
a848cd7e
SC
44460if test "$wxUSE_DISPLAY" = "yes"; then
44461 cat >>confdefs.h <<\_ACEOF
44462#define wxUSE_DISPLAY 1
44463_ACEOF
44464
0b78747f 44465 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display multimon"
a848cd7e
SC
44466fi
44467
44468if test "$wxUSE_GAUGE" = "yes"; then
44469 cat >>confdefs.h <<\_ACEOF
44470#define wxUSE_GAUGE 1
44471_ACEOF
44472
44473 USES_CONTROLS=1
44474fi
44475
44476if test "$wxUSE_GRID" = "yes"; then
44477 cat >>confdefs.h <<\_ACEOF
44478#define wxUSE_GRID 1
44479_ACEOF
44480
44481 USES_CONTROLS=1
44482 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
44483fi
44484
6954625c
VZ
44485if test "$wxUSE_HYPERLINKCTRL" = "yes"; then
44486 cat >>confdefs.h <<\_ACEOF
44487#define wxUSE_HYPERLINKCTRL 1
44488_ACEOF
44489
44490 USES_CONTROLS=1
44491fi
44492
20e34ecc
RR
44493if test "$wxUSE_DATAVIEWCTRL" = "yes"; then
44494 cat >>confdefs.h <<\_ACEOF
44495#define wxUSE_DATAVIEWCTRL 1
44496_ACEOF
44497
44498 USES_CONTROLS=1
44499 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dataview"
44500fi
44501
a848cd7e
SC
44502if test "$wxUSE_IMAGLIST" = "yes"; then
44503 cat >>confdefs.h <<\_ACEOF
44504#define wxUSE_IMAGLIST 1
44505_ACEOF
44506
44507fi
44508
44509if test "$wxUSE_LISTBOOK" = "yes"; then
44510 cat >>confdefs.h <<\_ACEOF
44511#define wxUSE_LISTBOOK 1
44512_ACEOF
44513
44514 USES_CONTROLS=1
44515fi
44516
44517if test "$wxUSE_LISTBOX" = "yes"; then
44518 cat >>confdefs.h <<\_ACEOF
44519#define wxUSE_LISTBOX 1
44520_ACEOF
44521
44522 USES_CONTROLS=1
0b78747f 44523 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listbox"
a848cd7e
SC
44524fi
44525
44526if test "$wxUSE_LISTCTRL" = "yes"; then
44527 if test "$wxUSE_IMAGLIST" = "yes"; then
44528 cat >>confdefs.h <<\_ACEOF
44529#define wxUSE_LISTCTRL 1
44530_ACEOF
44531
44532 USES_CONTROLS=1
44533 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
44534 else
44535 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
44536echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
44537 fi
44538fi
44539
44540if test "$wxUSE_NOTEBOOK" = "yes"; then
44541 cat >>confdefs.h <<\_ACEOF
44542#define wxUSE_NOTEBOOK 1
44543_ACEOF
44544
44545 USES_CONTROLS=1
44546 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
44547fi
44548
a57d600f 44549if test "$wxUSE_ODCOMBOBOX" = "yes"; then
642bcba9 44550 cat >>confdefs.h <<\_ACEOF
a57d600f 44551#define wxUSE_ODCOMBOBOX 1
642bcba9
VZ
44552_ACEOF
44553
44554 USES_CONTROLS=1
44555 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS combo"
44556fi
44557
a848cd7e
SC
44558
44559if test "$wxUSE_RADIOBOX" = "yes"; then
44560 cat >>confdefs.h <<\_ACEOF
44561#define wxUSE_RADIOBOX 1
44562_ACEOF
44563
44564 USES_CONTROLS=1
44565fi
44566
44567if test "$wxUSE_RADIOBTN" = "yes"; then
44568 cat >>confdefs.h <<\_ACEOF
44569#define wxUSE_RADIOBTN 1
44570_ACEOF
44571
44572 USES_CONTROLS=1
44573fi
44574
44575if test "$wxUSE_SASH" = "yes"; then
44576 cat >>confdefs.h <<\_ACEOF
44577#define wxUSE_SASH 1
44578_ACEOF
44579
44580 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
44581fi
44582
44583if test "$wxUSE_SCROLLBAR" = "yes"; then
44584 cat >>confdefs.h <<\_ACEOF
44585#define wxUSE_SCROLLBAR 1
44586_ACEOF
44587
44588 USES_CONTROLS=1
44589 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
44590fi
44591
44592if test "$wxUSE_SLIDER" = "yes"; then
44593 cat >>confdefs.h <<\_ACEOF
44594#define wxUSE_SLIDER 1
44595_ACEOF
44596
44597 USES_CONTROLS=1
44598fi
44599
44600if test "$wxUSE_SPINBTN" = "yes"; then
44601 cat >>confdefs.h <<\_ACEOF
44602#define wxUSE_SPINBTN 1
44603_ACEOF
44604
44605 USES_CONTROLS=1
44606fi
44607
44608if test "$wxUSE_SPINCTRL" = "yes"; then
44609 cat >>confdefs.h <<\_ACEOF
44610#define wxUSE_SPINCTRL 1
44611_ACEOF
44612
44613 USES_CONTROLS=1
44614fi
44615
44616if test "$wxUSE_SPLITTER" = "yes"; then
44617 cat >>confdefs.h <<\_ACEOF
44618#define wxUSE_SPLITTER 1
44619_ACEOF
44620
44621 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
44622fi
44623
44624if test "$wxUSE_STATBMP" = "yes"; then
44625 cat >>confdefs.h <<\_ACEOF
44626#define wxUSE_STATBMP 1
44627_ACEOF
44628
44629 USES_CONTROLS=1
44630fi
44631
44632if test "$wxUSE_STATBOX" = "yes"; then
44633 cat >>confdefs.h <<\_ACEOF
44634#define wxUSE_STATBOX 1
44635_ACEOF
44636
44637 USES_CONTROLS=1
44638fi
44639
44640if test "$wxUSE_STATTEXT" = "yes"; then
44641 cat >>confdefs.h <<\_ACEOF
44642#define wxUSE_STATTEXT 1
44643_ACEOF
44644
44645 USES_CONTROLS=1
44646fi
44647
44648if test "$wxUSE_STATLINE" = "yes"; then
44649 cat >>confdefs.h <<\_ACEOF
44650#define wxUSE_STATLINE 1
44651_ACEOF
44652
44653 USES_CONTROLS=1
44654fi
44655
44656if test "$wxUSE_STATUSBAR" = "yes"; then
da4486fb
VZ
44657 cat >>confdefs.h <<\_ACEOF
44658#define wxUSE_NATIVE_STATUSBAR 1
44659_ACEOF
44660
a848cd7e
SC
44661 cat >>confdefs.h <<\_ACEOF
44662#define wxUSE_STATUSBAR 1
44663_ACEOF
44664
44665 USES_CONTROLS=1
44666
44667 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
44668fi
44669
f10e38c4 44670if test "$wxUSE_TAB_DIALOG" = "yes"; then
a848cd7e
SC
44671 cat >>confdefs.h <<\_ACEOF
44672#define wxUSE_TAB_DIALOG 1
44673_ACEOF
44674
a848cd7e
SC
44675fi
44676
44677if test "$wxUSE_TEXTCTRL" = "yes"; then
44678 cat >>confdefs.h <<\_ACEOF
44679#define wxUSE_TEXTCTRL 1
44680_ACEOF
44681
44682 USES_CONTROLS=1
44683 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
44684fi
44685
44686if test "$wxUSE_TOGGLEBTN" = "yes"; then
44687 if test "$wxUSE_COCOA" = 1 ; then
44688 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
44689echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
44690 wxUSE_TOGGLEBTN=no
44691 fi
a848cd7e
SC
44692
44693 if test "$wxUSE_TOGGLEBTN" = "yes"; then
44694 cat >>confdefs.h <<\_ACEOF
44695#define wxUSE_TOGGLEBTN 1
44696_ACEOF
44697
44698 USES_CONTROLS=1
44699 fi
44700fi
44701
44702if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
44703 cat >>confdefs.h <<\_ACEOF
44704#define wxUSE_TOOLBAR_SIMPLE 1
44705_ACEOF
44706
44707 wxUSE_TOOLBAR="yes"
44708 USES_CONTROLS=1
44709fi
44710
44711if test "$wxUSE_TOOLBAR" = "yes"; then
44712 cat >>confdefs.h <<\_ACEOF
44713#define wxUSE_TOOLBAR 1
44714_ACEOF
44715
44716 USES_CONTROLS=1
44717
44718 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
44719 wxUSE_TOOLBAR_NATIVE="yes"
44720 fi
44721
44722 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
44723 cat >>confdefs.h <<\_ACEOF
44724#define wxUSE_TOOLBAR_NATIVE 1
44725_ACEOF
44726
44727 USES_CONTROLS=1
44728 fi
44729
44730 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
44731fi
44732
44733if test "$wxUSE_TOOLTIPS" = "yes"; then
44734 if test "$wxUSE_MOTIF" = 1; then
44735 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
44736echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
44737 else
44738 if test "$wxUSE_UNIVERSAL" = "yes"; then
44739 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
44740echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
44741 else
44742 cat >>confdefs.h <<\_ACEOF
44743#define wxUSE_TOOLTIPS 1
44744_ACEOF
44745
44746 fi
44747 fi
44748fi
44749
0093c2fc
VZ
44750if test "$wxUSE_TREEBOOK" = "yes"; then
44751 cat >>confdefs.h <<\_ACEOF
44752#define wxUSE_TREEBOOK 1
44753_ACEOF
44754
44755 USES_CONTROLS=1
44756fi
44757
5ec3bc43
JS
44758if test "$wxUSE_TOOLBOOK" = "yes"; then
44759 cat >>confdefs.h <<\_ACEOF
44760#define wxUSE_TOOLBOOK 1
44761_ACEOF
44762
44763 USES_CONTROLS=1
44764fi
44765
a848cd7e
SC
44766if test "$wxUSE_TREECTRL" = "yes"; then
44767 if test "$wxUSE_IMAGLIST" = "yes"; then
44768 cat >>confdefs.h <<\_ACEOF
44769#define wxUSE_TREECTRL 1
44770_ACEOF
44771
44772 USES_CONTROLS=1
44773 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
44774 else
44775 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
44776echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
44777 fi
44778fi
44779
44780if test "$wxUSE_POPUPWIN" = "yes"; then
44781 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
44782 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
44783echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
44784 else
44785 if test "$wxUSE_PM" = 1; then
44786 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
44787echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
44788 else
44789 cat >>confdefs.h <<\_ACEOF
44790#define wxUSE_POPUPWIN 1
44791_ACEOF
44792
0b78747f 44793 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup"
a848cd7e
SC
44794
44795 USES_CONTROLS=1
44796 fi
44797 fi
44798fi
44799
0dcd06dd 44800if test "$wxUSE_DIALUP_MANAGER" = "yes"; then
b843b628
MB
44801 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
44802 { echo "$as_me:$LINENO: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&5
44803echo "$as_me: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&2;}
44804 else
44805 cat >>confdefs.h <<\_ACEOF
44806#define wxUSE_DIALUP_MANAGER 1
44807_ACEOF
44808
44809 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
44810 fi
44811fi
44812
a848cd7e
SC
44813if test "$wxUSE_TIPWINDOW" = "yes"; then
44814 if test "$wxUSE_PM" = 1; then
44815 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
44816echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
44817 else
44818 cat >>confdefs.h <<\_ACEOF
44819#define wxUSE_TIPWINDOW 1
44820_ACEOF
44821
44822 fi
44823fi
44824
44825if test "$USES_CONTROLS" = 1; then
44826 cat >>confdefs.h <<\_ACEOF
44827#define wxUSE_CONTROLS 1
44828_ACEOF
44829
44830fi
44831
44832
44833if test "$wxUSE_ACCESSIBILITY" = "yes"; then
44834 cat >>confdefs.h <<\_ACEOF
44835#define wxUSE_ACCESSIBILITY 1
44836_ACEOF
44837
44838 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
44839fi
44840
38b4a946
VZ
44841if test "$wxUSE_DC_CACHEING" = "yes"; then
44842 cat >>confdefs.h <<\_ACEOF
44843#define wxUSE_DC_CACHEING 1
44844_ACEOF
44845
44846fi
44847
a848cd7e
SC
44848if test "$wxUSE_DRAGIMAGE" = "yes"; then
44849 cat >>confdefs.h <<\_ACEOF
44850#define wxUSE_DRAGIMAGE 1
44851_ACEOF
44852
44853 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
44854fi
44855
44856if test "$wxUSE_EXCEPTIONS" = "yes"; then
07bea8f0
VS
44857 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
44858 { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
44859echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
44860 else
44861 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
44862#define wxUSE_EXCEPTIONS 1
44863_ACEOF
44864
07bea8f0
VS
44865 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
44866 fi
a848cd7e
SC
44867fi
44868
44869USE_HTML=0
44870if test "$wxUSE_HTML" = "yes"; then
44871 cat >>confdefs.h <<\_ACEOF
44872#define wxUSE_HTML 1
44873_ACEOF
44874
44875 USE_HTML=1
44876 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
de59c161
RD
44877 if test "$wxUSE_MAC" = 1; then
44878 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
44879 fi
a848cd7e 44880fi
646b6ec1 44881if test "$wxUSE_WEBKIT" = "yes"; then
1e9e8aba 44882 if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
07bea8f0 44883 old_CPPFLAGS="$CPPFLAGS"
c92ad099 44884 CPPFLAGS="-x objective-c++ $CPPFLAGS"
07bea8f0
VS
44885 echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
44886echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6
44887if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
44888 echo $ECHO_N "(cached) $ECHO_C" >&6
44889else
44890 cat >conftest.$ac_ext <<_ACEOF
44891/* confdefs.h. */
44892_ACEOF
44893cat confdefs.h >>conftest.$ac_ext
44894cat >>conftest.$ac_ext <<_ACEOF
44895/* end confdefs.h. */
44896#include <Carbon/Carbon.h>
44897
44898#include <WebKit/HIWebView.h>
44899_ACEOF
44900rm -f conftest.$ac_objext
44901if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44902 (eval $ac_compile) 2>conftest.er1
44903 ac_status=$?
44904 grep -v '^ *+' conftest.er1 >conftest.err
44905 rm -f conftest.er1
44906 cat conftest.err >&5
44907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44908 (exit $ac_status); } &&
c9a66001 44909 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
07bea8f0
VS
44910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44911 (eval $ac_try) 2>&5
44912 ac_status=$?
44913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44914 (exit $ac_status); }; } &&
44915 { ac_try='test -s conftest.$ac_objext'
44916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44917 (eval $ac_try) 2>&5
44918 ac_status=$?
44919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44920 (exit $ac_status); }; }; then
44921 ac_cv_header_WebKit_HIWebView_h=yes
44922else
44923 echo "$as_me: failed program was:" >&5
44924sed 's/^/| /' conftest.$ac_ext >&5
44925
44926ac_cv_header_WebKit_HIWebView_h=no
44927fi
44928rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44929fi
44930echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
44931echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6
44932if test $ac_cv_header_WebKit_HIWebView_h = yes; then
44933
44934 cat >>confdefs.h <<\_ACEOF
646b6ec1
VS
44935#define wxUSE_WEBKIT 1
44936_ACEOF
44937
07bea8f0
VS
44938 WEBKIT_LINK="-framework WebKit"
44939
44940else
44941
44942 { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
44943echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
44944 wxUSE_WEBKIT=no
44945
646b6ec1
VS
44946fi
44947
07bea8f0
VS
44948
44949 CPPFLAGS="$old_CPPFLAGS"
44950 elif test "$wxUSE_COCOA" = 1; then
44951 cat >>confdefs.h <<\_ACEOF
44952#define wxUSE_WEBKIT 1
44953_ACEOF
44954
44955 else
44956 wxUSE_WEBKIT=no
44957 fi
44958fi
44959
9a8f0513
VS
44960USE_XRC=0
44961if test "$wxUSE_XRC" = "yes"; then
d2ebf0b7
VS
44962 if test "$wxUSE_XML" != "yes"; then
44963 { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
44964echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
44965 wxUSE_XRC=no
44966 else
44967 cat >>confdefs.h <<\_ACEOF
9a8f0513
VS
44968#define wxUSE_XRC 1
44969_ACEOF
44970
d2ebf0b7
VS
44971 USE_XRC=1
44972 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
44973 fi
9a8f0513 44974fi
07bea8f0 44975
3f60522a
JS
44976USE_AUI=0
44977if test "$wxUSE_AUI" = "yes"; then
44978 cat >>confdefs.h <<\_ACEOF
44979#define wxUSE_AUI 1
44980_ACEOF
44981
44982 USE_AUI=1
44983 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS aui"
44984fi
44985
a848cd7e
SC
44986if test "$wxUSE_MENUS" = "yes"; then
44987 cat >>confdefs.h <<\_ACEOF
44988#define wxUSE_MENUS 1
44989_ACEOF
44990
44991 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
44992fi
44993
44994if test "$wxUSE_METAFILE" = "yes"; then
44995 cat >>confdefs.h <<\_ACEOF
44996#define wxUSE_METAFILE 1
44997_ACEOF
44998
44999fi
45000
45001if test "$wxUSE_MIMETYPE" = "yes"; then
45002 cat >>confdefs.h <<\_ACEOF
45003#define wxUSE_MIMETYPE 1
45004_ACEOF
45005
45006fi
45007
45008if test "$wxUSE_MINIFRAME" = "yes"; then
45009 cat >>confdefs.h <<\_ACEOF
45010#define wxUSE_MINIFRAME 1
45011_ACEOF
45012
45013 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
45014fi
45015
45016if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
45017 cat >>confdefs.h <<\_ACEOF
45018#define wxUSE_SYSTEM_OPTIONS 1
45019_ACEOF
45020
45021 if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
a49baeab 45022 "$TOOLKIT" = "MOTIF" -o "$TOOLKIT" = "COCOA"; then
a848cd7e
SC
45023 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
45024 fi
45025fi
45026
45027
45028if test "$wxUSE_VALIDATORS" = "yes"; then
45029 cat >>confdefs.h <<\_ACEOF
45030#define wxUSE_VALIDATORS 1
45031_ACEOF
45032
45033 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
45034fi
45035
45036if test "$wxUSE_PALETTE" = "yes" ; then
45037 cat >>confdefs.h <<\_ACEOF
45038#define wxUSE_PALETTE 1
45039_ACEOF
45040
45041fi
45042
45043if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
45044 LIBS=" -lunicows $LIBS"
45045fi
45046
91dea314
MW
45047USE_RICHTEXT=0
45048if test "$wxUSE_RICHTEXT" = "yes"; then
45049 cat >>confdefs.h <<\_ACEOF
45050#define wxUSE_RICHTEXT 1
45051_ACEOF
45052
45053 USE_RICHTEXT=1
45054 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS richtext"
45055fi
45056
a848cd7e
SC
45057
45058if test "$wxUSE_IMAGE" = "yes" ; then
45059 cat >>confdefs.h <<\_ACEOF
45060#define wxUSE_IMAGE 1
45061_ACEOF
45062
45063
45064 if test "$wxUSE_GIF" = "yes" ; then
45065 cat >>confdefs.h <<\_ACEOF
45066#define wxUSE_GIF 1
45067_ACEOF
45068
45069 fi
45070
45071 if test "$wxUSE_PCX" = "yes" ; then
45072 cat >>confdefs.h <<\_ACEOF
45073#define wxUSE_PCX 1
45074_ACEOF
45075
45076 fi
45077
45078 if test "$wxUSE_IFF" = "yes" ; then
45079 cat >>confdefs.h <<\_ACEOF
45080#define wxUSE_IFF 1
45081_ACEOF
45082
45083 fi
45084
45085 if test "$wxUSE_PNM" = "yes" ; then
45086 cat >>confdefs.h <<\_ACEOF
45087#define wxUSE_PNM 1
45088_ACEOF
45089
45090 fi
45091
45092 if test "$wxUSE_XPM" = "yes" ; then
45093 cat >>confdefs.h <<\_ACEOF
45094#define wxUSE_XPM 1
45095_ACEOF
45096
45097 fi
45098
45099 if test "$wxUSE_ICO_CUR" = "yes" ; then
45100 cat >>confdefs.h <<\_ACEOF
45101#define wxUSE_ICO_CUR 1
45102_ACEOF
45103
45104 fi
45105fi
45106
45107
45108if test "$wxUSE_CHOICEDLG" = "yes"; then
45109 cat >>confdefs.h <<\_ACEOF
45110#define wxUSE_CHOICEDLG 1
45111_ACEOF
45112
45113fi
45114
45115if test "$wxUSE_COLOURDLG" = "yes"; then
45116 cat >>confdefs.h <<\_ACEOF
45117#define wxUSE_COLOURDLG 1
45118_ACEOF
45119
45120fi
45121
45122if test "$wxUSE_FILEDLG" = "yes"; then
45123 cat >>confdefs.h <<\_ACEOF
45124#define wxUSE_FILEDLG 1
45125_ACEOF
45126
45127fi
45128
45129if test "$wxUSE_FINDREPLDLG" = "yes"; then
45130 cat >>confdefs.h <<\_ACEOF
45131#define wxUSE_FINDREPLDLG 1
45132_ACEOF
45133
45134fi
45135
45136if test "$wxUSE_FONTDLG" = "yes"; then
45137 cat >>confdefs.h <<\_ACEOF
45138#define wxUSE_FONTDLG 1
45139_ACEOF
45140
45141fi
45142
45143if test "$wxUSE_DIRDLG" = "yes"; then
45144 if test "$wxUSE_TREECTRL" != "yes"; then
45145 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
45146echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
45147 else
45148 cat >>confdefs.h <<\_ACEOF
45149#define wxUSE_DIRDLG 1
45150_ACEOF
45151
45152 fi
45153fi
45154
45155if test "$wxUSE_MSGDLG" = "yes"; then
45156 cat >>confdefs.h <<\_ACEOF
45157#define wxUSE_MSGDLG 1
45158_ACEOF
45159
45160fi
45161
45162if test "$wxUSE_NUMBERDLG" = "yes"; then
45163 cat >>confdefs.h <<\_ACEOF
45164#define wxUSE_NUMBERDLG 1
45165_ACEOF
45166
45167fi
45168
45169if test "$wxUSE_PROGRESSDLG" = "yes"; then
45170 if test "$wxUSE_CONSTRAINTS" != "yes"; then
45171 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
45172echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
45173 else
45174 cat >>confdefs.h <<\_ACEOF
45175#define wxUSE_PROGRESSDLG 1
45176_ACEOF
45177
45178 fi
45179fi
45180
45181if test "$wxUSE_SPLASH" = "yes"; then
45182 cat >>confdefs.h <<\_ACEOF
45183#define wxUSE_SPLASH 1
45184_ACEOF
45185
2057db16 45186 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
a848cd7e
SC
45187fi
45188
45189if test "$wxUSE_STARTUP_TIPS" = "yes"; then
45190 if test "$wxUSE_CONSTRAINTS" != "yes"; then
45191 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
45192echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
45193 else
45194 cat >>confdefs.h <<\_ACEOF
45195#define wxUSE_STARTUP_TIPS 1
45196_ACEOF
45197
45198 fi
45199fi
45200
45201if test "$wxUSE_TEXTDLG" = "yes"; then
45202 cat >>confdefs.h <<\_ACEOF
45203#define wxUSE_TEXTDLG 1
45204_ACEOF
45205
45206fi
45207
45208if test "$wxUSE_WIZARDDLG" = "yes"; then
45209 cat >>confdefs.h <<\_ACEOF
45210#define wxUSE_WIZARDDLG 1
45211_ACEOF
45212
45213 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
45214fi
45215
45216
f10e38c4
VZ
45217USE_MEDIA=0
45218
ce756cb0 45219if test "$wxUSE_MEDIACTRL" = "yes"; then
2f6c5bb5
VZ
45220 USE_MEDIA=1
45221
ce756cb0 45222 if test "$wxUSE_GTK" = 1; then
c9a66001 45223 wxUSE_GSTREAMER="no"
ce756cb0 45224
f10e38c4
VZ
45225 GST_VERSION_MAJOR=0
45226 GST_VERSION_MINOR=10
2f6c5bb5 45227 GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
f10e38c4
VZ
45228
45229 if test "$wxUSE_GSTREAMER8" = "no"; then
ce756cb0 45230
3ecd9f92
MW
45231pkg_failed=no
45232echo "$as_me:$LINENO: checking for GST" >&5
45233echo $ECHO_N "checking for GST... $ECHO_C" >&6
ce756cb0 45234
3ecd9f92
MW
45235if test -n "$PKG_CONFIG"; then
45236 if test -n "$GST_CFLAGS"; then
45237 pkg_cv_GST_CFLAGS="$GST_CFLAGS"
45238 else
45239 if test -n "$PKG_CONFIG" && \
45240 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION gconf-2.0\"") >&5
45241 ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0") 2>&5
45242 ac_status=$?
45243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45244 (exit $ac_status); }; then
45245 pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" 2>/dev/null`
dae87f93 45246else
3ecd9f92
MW
45247 pkg_failed=yes
45248fi
45249 fi
45250else
45251 pkg_failed=untried
dae87f93 45252fi
dae87f93 45253if test -n "$PKG_CONFIG"; then
3ecd9f92
MW
45254 if test -n "$GST_LIBS"; then
45255 pkg_cv_GST_LIBS="$GST_LIBS"
45256 else
45257 if test -n "$PKG_CONFIG" && \
45258 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION gconf-2.0\"") >&5
45259 ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0") 2>&5
45260 ac_status=$?
45261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45262 (exit $ac_status); }; then
45263 pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" 2>/dev/null`
dae87f93 45264else
3ecd9f92
MW
45265 pkg_failed=yes
45266fi
45267 fi
45268else
45269 pkg_failed=untried
dae87f93
RN
45270fi
45271
dae87f93 45272
2f6c5bb5 45273
3ecd9f92 45274if test $pkg_failed = yes; then
ce756cb0 45275
3ecd9f92
MW
45276if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
45277 _pkg_short_errors_supported=yes
45278else
45279 _pkg_short_errors_supported=no
45280fi
45281 if test $_pkg_short_errors_supported = yes; then
45282 GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"`
45283 else
45284 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"`
dae87f93 45285 fi
3ecd9f92
MW
45286 # Put the nasty error message in config.log where it belongs
45287 echo "$GST_PKG_ERRORS" >&5
dae87f93
RN
45288
45289
3ecd9f92
MW
45290 { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5
45291echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;}
45292 GST_VERSION_MINOR=8
dae87f93 45293
ce756cb0 45294
3ecd9f92 45295elif test $pkg_failed = untried; then
dae87f93 45296
2f6c5bb5
VZ
45297 { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5
45298echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;}
f10e38c4 45299 GST_VERSION_MINOR=8
dae87f93 45300
2f6c5bb5 45301
3ecd9f92
MW
45302else
45303 GST_CFLAGS=$pkg_cv_GST_CFLAGS
45304 GST_LIBS=$pkg_cv_GST_LIBS
45305 echo "$as_me:$LINENO: result: yes" >&5
45306echo "${ECHO_T}yes" >&6
45307
45308 wxUSE_GSTREAMER="yes"
45309 GST_LIBS="$GST_LIBS -lgstinterfaces-$GST_VERSION"
dae87f93 45310
3ecd9f92 45311fi
2f6c5bb5
VZ
45312 else
45313 GST_VERSION_MINOR=8
f10e38c4 45314 fi
dae87f93 45315
2f6c5bb5
VZ
45316 if test $GST_VERSION_MINOR = "8"; then
45317 GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
dae87f93 45318
3ecd9f92
MW
45319pkg_failed=no
45320echo "$as_me:$LINENO: checking for GST" >&5
45321echo $ECHO_N "checking for GST... $ECHO_C" >&6
dae87f93 45322
3ecd9f92
MW
45323if test -n "$PKG_CONFIG"; then
45324 if test -n "$GST_CFLAGS"; then
45325 pkg_cv_GST_CFLAGS="$GST_CFLAGS"
45326 else
45327 if test -n "$PKG_CONFIG" && \
45328 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5
45329 ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5
45330 ac_status=$?
45331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45332 (exit $ac_status); }; then
45333 pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null`
dae87f93 45334else
3ecd9f92
MW
45335 pkg_failed=yes
45336fi
45337 fi
45338else
45339 pkg_failed=untried
dae87f93 45340fi
f10e38c4 45341if test -n "$PKG_CONFIG"; then
3ecd9f92
MW
45342 if test -n "$GST_LIBS"; then
45343 pkg_cv_GST_LIBS="$GST_LIBS"
45344 else
45345 if test -n "$PKG_CONFIG" && \
45346 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5
45347 ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5
45348 ac_status=$?
45349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45350 (exit $ac_status); }; then
45351 pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null`
dae87f93 45352else
3ecd9f92
MW
45353 pkg_failed=yes
45354fi
45355 fi
45356else
45357 pkg_failed=untried
dae87f93
RN
45358fi
45359
ce756cb0 45360
2f6c5bb5 45361
3ecd9f92 45362if test $pkg_failed = yes; then
dae87f93 45363
3ecd9f92
MW
45364if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
45365 _pkg_short_errors_supported=yes
45366else
45367 _pkg_short_errors_supported=no
45368fi
45369 if test $_pkg_short_errors_supported = yes; then
45370 GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
45371 else
45372 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
dae87f93 45373 fi
3ecd9f92
MW
45374 # Put the nasty error message in config.log where it belongs
45375 echo "$GST_PKG_ERRORS" >&5
dae87f93
RN
45376
45377
3ecd9f92
MW
45378 { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5
45379echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;}
ce756cb0 45380
3ecd9f92 45381elif test $pkg_failed = untried; then
ce756cb0 45382
2f6c5bb5
VZ
45383 { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5
45384echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;}
ce756cb0 45385
3ecd9f92
MW
45386else
45387 GST_CFLAGS=$pkg_cv_GST_CFLAGS
45388 GST_LIBS=$pkg_cv_GST_LIBS
45389 echo "$as_me:$LINENO: result: yes" >&5
45390echo "${ECHO_T}yes" >&6
45391 wxUSE_GSTREAMER="yes"
45392fi
dae87f93 45393 fi
ce756cb0 45394
f10e38c4 45395
dae87f93 45396 if test "$wxUSE_GSTREAMER" = "yes"; then
c9a66001
VZ
45397 case "${host}" in
45398 *-*-solaris2* )
45399 if "$GCC" = yes; then
45400 GST_CFLAGS=`echo $GST_CFLAGS | sed 's/-mt//'`
45401 GST_LIBS=`echo $GST_LIBS | sed 's/-mt//'`
45402 fi
45403 esac
45404
45405 CPPFLAGS="$GST_CFLAGS $CPPFLAGS"
45406 LIBS="$GST_LIBS $LIBS"
45407
dae87f93 45408 cat >>confdefs.h <<\_ACEOF
ce756cb0
RN
45409#define wxUSE_GSTREAMER 1
45410_ACEOF
45411
2f6c5bb5
VZ
45412 else
45413 USE_MEDIA=0
ce756cb0
RN
45414 fi
45415 fi
2f6c5bb5
VZ
45416
45417 if test $USE_MEDIA = 1; then
45418 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
45419 cat >>confdefs.h <<\_ACEOF
ce756cb0
RN
45420#define wxUSE_MEDIACTRL 1
45421_ACEOF
45422
2f6c5bb5 45423 fi
ce756cb0
RN
45424fi
45425
45426
a848cd7e
SC
45427if test "$cross_compiling" = "yes"; then
45428 OSINFO="\"$host\""
45429else
45430 OSINFO=`uname -s -r -m`
45431 OSINFO="\"$OSINFO\""
45432fi
45433
45434cat >>confdefs.h <<_ACEOF
45435#define WXWIN_OS_DESCRIPTION $OSINFO
45436_ACEOF
45437
45438
45439
45440if test "x$prefix" != "xNONE"; then
45441 wxPREFIX=$prefix
45442else
45443 wxPREFIX=$ac_default_prefix
45444fi
45445
45446cat >>confdefs.h <<_ACEOF
45447#define wxINSTALL_PREFIX "$wxPREFIX"
45448_ACEOF
45449
45450
a848cd7e
SC
45451
45452
45453CORE_BASE_LIBS="net base"
45454CORE_GUI_LIBS="adv core"
45455
45456if test "$wxUSE_XML" = "yes" ; then
45457 CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
45458fi
45459if test "$wxUSE_ODBC" != "no" ; then
45460 CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
45461 CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
45462fi
45463if test "$wxUSE_HTML" = "yes" ; then
45464 CORE_GUI_LIBS="html $CORE_GUI_LIBS"
45465fi
61639efb
VZ
45466if test "$wxUSE_DEBUGREPORT" = "yes" ; then
45467 CORE_GUI_LIBS="qa $CORE_GUI_LIBS"
45468fi
9a8f0513
VS
45469if test "$wxUSE_XRC" = "yes" ; then
45470 CORE_GUI_LIBS="xrc $CORE_GUI_LIBS"
45471fi
3f60522a
JS
45472if test "$wxUSE_AUI" = "yes" ; then
45473 CORE_GUI_LIBS="aui $CORE_GUI_LIBS"
45474fi
a848cd7e
SC
45475
45476if test "$wxUSE_GUI" != "yes"; then
45477 CORE_GUI_LIBS=""
45478fi
45479
45480
45481
45482
45483
5d7b7554
VZ
45484ac_ext=c
45485ac_cpp='$CPP $CPPFLAGS'
45486ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45487ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45488ac_compiler_gnu=$ac_cv_c_compiler_gnu
45489
a848cd7e
SC
45490
45491
a848cd7e 45492if test "$wxUSE_MAC" = 1 ; then
a98bf0c0 45493 if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then
1e9e8aba
DE
45494 if test "$USE_DARWIN" = 1; then
45495 LDFLAGS="$LDFLAGS -framework QuickTime"
45496 else
45497 LDFLAGS="$LDFLAGS -lQuickTimeLib"
45498 fi
07bea8f0 45499 fi
5dcf30a0 45500 if test "$USE_DARWIN" = 1; then
1e9e8aba
DE
45501 LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System"
45502 else
45503 LDFLAGS="$LDFLAGS -lCarbonLib"
5dcf30a0 45504 fi
a848cd7e
SC
45505fi
45506if test "$wxUSE_COCOA" = 1 ; then
4cb1d3da 45507 LDFLAGS="$LDFLAGS -framework IOKit -framework Cocoa"
4fc81cbc
RN
45508 if test "$wxUSE_MEDIACTRL" = "yes"; then
45509 LDFLAGS="$LDFLAGS -framework QuickTime"
45510 fi
a848cd7e 45511fi
19b27e78
MW
45512if test "$USE_DARWIN" = 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1 ; then
45513 LDFLAGS="$LDFLAGS -framework IOKit -framework CoreServices -framework System -framework ApplicationServices"
45514fi
a848cd7e 45515
a848cd7e
SC
45516LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
45517
a848cd7e
SC
45518if test "$wxUSE_GUI" = "yes"; then
45519
45520
8bce5cda
MW
45521 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \
45522 dynamic erase event exec font image minimal mobile \
45523 mobile/wxedit mobile/styles propsize render \
9e39d889 45524 rotate shaped vscroll widgets"
a848cd7e
SC
45525
45526 if test "$wxUSE_MONOLITHIC" != "yes"; then
45527 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
45528 fi
0b78747f 45529 if test "$TOOLKIT" = "MSW"; then
8bce5cda
MW
45530 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest"
45531 if test "$wxUSE_UNIVERSAL" != "yes"; then
45532 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg"
45533 fi
45534 fi
45535 if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then
45536 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw"
0b78747f 45537 fi
a848cd7e
SC
45538else
45539 SAMPLES_SUBDIRS="console"
45540fi
45541
45542
48f625bc 45543if test "x$INTELCC" = "xyes" ; then
17a1ebd1
VZ
45544 CWARNINGS="-Wall -wd810,869,981,1418,1572,1684"
45545elif test "$GCC" = yes ; then
45546 CWARNINGS="-Wall -Wundef"
45547fi
45548
48f625bc 45549if test "x$INTELCXX" = "xyes" ; then
7f47faf4 45550 CXXWARNINGS="-Wall -wd279,383,444,810,869,981,1418,1419"
17a1ebd1
VZ
45551elif test "$GXX" = yes ; then
45552 CXXWARNINGS="-Wall -Wundef -Wno-ctor-dtor-privacy"
6ebeb4c7 45553fi
a848cd7e 45554
a848cd7e 45555
5ff751d6
VZ
45556WXCONFIG_CFLAGS=`echo $WXCONFIG_CFLAGS`
45557WXCONFIG_CXXFLAGS=`echo $WXCONFIG_CFLAGS $WXCONFIG_CXXFLAGS`
45558
45559
c92ad099 45560CPPFLAGS=`echo $WXCONFIG_CPPFLAGS \
bc6ee4ae 45561 -I\\${top_builddir}lib/wx/include/${TOOLCHAIN_FULLNAME} \
c92ad099
VZ
45562 -I\\${top_srcdir}/include $TOOLKIT_INCLUDE \
45563 $CPPFLAGS `
5ff751d6 45564
8aeeb05c 45565C_AND_CXX_FLAGS="$DEBUG_CFLAGS $PROFILE_FLAGS $OPTIMISE_CFLAGS"
c92ad099 45566CFLAGS=`echo $WXCONFIG_CFLAGS $CWARNINGS $C_AND_CXX_FLAGS $CFLAGS `
9cbac6d1 45567CXXFLAGS=`echo $WXCONFIG_CXXFLAGS $CXXWARNINGS $C_AND_CXX_FLAGS $CXXFLAGS `
5ff751d6
VZ
45568
45569WXCONFIG_CPPFLAGS=`echo $WXCONFIG_CPPFLAGS $WXCONFIG_ONLY_CPPFLAGS`
45570
a848cd7e 45571
95986553
DE
45572if test "x$MWCC" = "xyes"; then
45573
45574 CC="$CC -cwd source -I-"
45575 CXX="$CXX -cwd source -I-"
45576fi
45577
a848cd7e 45578
0c3c69fc 45579LIBS=`echo $LIBS`
a848cd7e
SC
45580EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
45581EXTRALIBS_XML="$EXPAT_LINK"
45582EXTRALIBS_HTML="$MSPACK_LINK"
45583EXTRALIBS_ODBC="$ODBC_LINK"
45584if test "$wxUSE_GUI" = "yes"; then
2b850ae1 45585 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_HILDON $EXTRALIBS_GNOMEVFS $EXTRALIBS_GNOMEPRINT`
a848cd7e
SC
45586fi
45587if test "$wxUSE_OPENGL" = "yes"; then
45588 EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
45589fi
45590
8aeeb05c 45591LDFLAGS="$LDFLAGS $PROFILE_FLAGS"
a848cd7e 45592
5ff751d6 45593WXCONFIG_LIBS="$LIBS"
a848cd7e
SC
45594
45595if test "$wxUSE_REGEX" = "builtin" ; then
74802184 45596 wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty"
a848cd7e
SC
45597fi
45598if test "$wxUSE_EXPAT" = "builtin" ; then
74802184 45599 wxconfig_3rdparty="expat $wxconfig_3rdparty"
a848cd7e
SC
45600fi
45601if test "$wxUSE_ODBC" = "builtin" ; then
74802184 45602 wxconfig_3rdparty="odbc $wxconfig_3rdparty"
a848cd7e
SC
45603fi
45604if test "$wxUSE_LIBTIFF" = "builtin" ; then
74802184 45605 wxconfig_3rdparty="tiff $wxconfig_3rdparty"
a848cd7e
SC
45606fi
45607if test "$wxUSE_LIBJPEG" = "builtin" ; then
74802184 45608 wxconfig_3rdparty="jpeg $wxconfig_3rdparty"
a848cd7e
SC
45609fi
45610if test "$wxUSE_LIBPNG" = "builtin" ; then
74802184 45611 wxconfig_3rdparty="png $wxconfig_3rdparty"
a848cd7e
SC
45612fi
45613if test "$wxUSE_ZLIB" = "builtin" ; then
74802184 45614 wxconfig_3rdparty="zlib $wxconfig_3rdparty"
a848cd7e
SC
45615fi
45616
45617for i in $wxconfig_3rdparty ; do
5ff751d6 45618 WXCONFIG_LIBS="-lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_LIBS"
a848cd7e
SC
45619done
45620
45621
45622if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
45623 WXUNIV=1
45624else
45625 WXUNIV=0
45626fi
45627
45628
45629
45630
45631
45632
45633
45634
45635
45636if test $wxUSE_MONOLITHIC = "yes" ; then
45637 MONOLITHIC=1
45638else
45639 MONOLITHIC=0
45640fi
45641
45642if test $wxUSE_PLUGINS = "yes" ; then
45643 USE_PLUGINS=1
45644else
45645 USE_PLUGINS=0
45646fi
45647
45648if test $wxUSE_ODBC != "no" ; then
45649 USE_ODBC=1
45650else
45651 USE_ODBC=0
45652fi
45653
16358932
VZ
45654if test "$wxUSE_DEBUGREPORT" = "yes" ; then
45655 USE_QA=1
45656else
45657 USE_QA=0
45658fi
45659
a848cd7e
SC
45660if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
45661 OFFICIAL_BUILD=1
45662else
45663 OFFICIAL_BUILD=0
45664fi
45665
45666
45667
45668
45669
45670
45671
45672
45673
45674
45675
45676
45677
45678
45679
45680
45681
45682
45683
ceec2216 45684
d1c38808 45685
3565d135 45686
2b850ae1 45687
a848cd7e
SC
45688
45689
45690TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
45691
45692
45693
45694
45695
45696
45697
45698
4d4ff94c
VZ
45699case "$TOOLKIT" in
45700 GTK)
45701 TOOLKIT_USER="GTK+"
45702 if test "$WXGTK20" = 1; then
45703 TOOLKIT_USER="$TOOLKIT_USER 2"
45704 fi
9a8f0513 45705 ;;
4d4ff94c
VZ
45706
45707 *)
45708 TOOLKIT_USER=$TOOLKIT_LOWERCASE
9a8f0513 45709 ;;
4d4ff94c 45710esac
a848cd7e 45711
fb00f58d
JS
45712if test "$wxUSE_WINE" = "yes"; then
45713 BAKEFILE_FORCE_PLATFORM=win32
45714fi
45715
7afc46ab 45716if test "$wxUSE_MAC" = 1 ; then
95768535
MW
45717 if test "x$wxUSE_UNIVERSAL_BINARY" != xno ; then
45718 if test "x$wxUSE_UNIVERSAL_BINARY" == xyes; then
45719 OSX_UNIV_OPTS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk"
45720 else
45721 OSX_UNIV_OPTS=${wxUSE_UNIVERSAL_BINARY:+"-isysroot '$wxUSE_UNIVERSAL_BINARY'"}
45722 fi
45723 OSX_UNIV_OPTS="$OSX_UNIV_OPTS -arch ppc -arch i386"
45724 CXXFLAGS="$OSX_UNIV_OPTS $CXXFLAGS"
45725 CFLAGS="$OSX_UNIV_OPTS $CFLAGS"
45726 LDFLAGS="$OSX_UNIV_OPTS $LDFLAGS"
7afc46ab
KO
45727 bk_use_pch=no
45728 fi
45729 # TODO: where do we add "-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk" for libtool (static builds only)?
45730 # The makefile currently uses AR and RANLIB, which libtool apparently supercedes.
7afc46ab
KO
45731fi
45732
9a8f0513 45733
1e9e8aba
DE
45734
45735
a848cd7e 45736 if test "x$BAKEFILE_HOST" = "x"; then
f10e38c4
VZ
45737 if test "x${host}" = "x" ; then
45738 { { echo "$as_me:$LINENO: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&5
45739echo "$as_me: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&2;}
45740 { (exit 1); exit 1; }; }
45741 fi
45742
a848cd7e
SC
45743 BAKEFILE_HOST="${host}"
45744 fi
45745
45746 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
45747
45748 if test -n "$ac_tool_prefix"; then
45749 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
45750set dummy ${ac_tool_prefix}ranlib; ac_word=$2
45751echo "$as_me:$LINENO: checking for $ac_word" >&5
45752echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45753if test "${ac_cv_prog_RANLIB+set}" = set; then
45754 echo $ECHO_N "(cached) $ECHO_C" >&6
45755else
45756 if test -n "$RANLIB"; then
45757 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
45758else
45759as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45760for as_dir in $PATH
45761do
45762 IFS=$as_save_IFS
45763 test -z "$as_dir" && as_dir=.
45764 for ac_exec_ext in '' $ac_executable_extensions; do
45765 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45766 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
45767 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45768 break 2
45769 fi
45770done
45771done
45772
45773fi
45774fi
45775RANLIB=$ac_cv_prog_RANLIB
45776if test -n "$RANLIB"; then
45777 echo "$as_me:$LINENO: result: $RANLIB" >&5
45778echo "${ECHO_T}$RANLIB" >&6
45779else
45780 echo "$as_me:$LINENO: result: no" >&5
45781echo "${ECHO_T}no" >&6
45782fi
45783
45784fi
45785if test -z "$ac_cv_prog_RANLIB"; then
45786 ac_ct_RANLIB=$RANLIB
45787 # Extract the first word of "ranlib", so it can be a program name with args.
45788set dummy ranlib; ac_word=$2
45789echo "$as_me:$LINENO: checking for $ac_word" >&5
45790echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45791if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
45792 echo $ECHO_N "(cached) $ECHO_C" >&6
45793else
45794 if test -n "$ac_ct_RANLIB"; then
45795 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
45796else
45797as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45798for as_dir in $PATH
45799do
45800 IFS=$as_save_IFS
45801 test -z "$as_dir" && as_dir=.
45802 for ac_exec_ext in '' $ac_executable_extensions; do
45803 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45804 ac_cv_prog_ac_ct_RANLIB="ranlib"
45805 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45806 break 2
45807 fi
45808done
45809done
45810
45811 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
45812fi
45813fi
45814ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
45815if test -n "$ac_ct_RANLIB"; then
45816 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
45817echo "${ECHO_T}$ac_ct_RANLIB" >&6
45818else
45819 echo "$as_me:$LINENO: result: no" >&5
45820echo "${ECHO_T}no" >&6
45821fi
45822
45823 RANLIB=$ac_ct_RANLIB
45824else
45825 RANLIB="$ac_cv_prog_RANLIB"
45826fi
45827
45828 # Find a good install program. We prefer a C program (faster),
45829# so one script is as good as another. But avoid the broken or
45830# incompatible versions:
45831# SysV /etc/install, /usr/sbin/install
45832# SunOS /usr/etc/install
45833# IRIX /sbin/install
45834# AIX /bin/install
45835# AmigaOS /C/install, which installs bootblocks on floppy discs
45836# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
45837# AFS /usr/afsws/bin/install, which mishandles nonexistent args
45838# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 45839# OS/2's system install, which has a completely different semantic
a848cd7e
SC
45840# ./install, which can be erroneously created by make from ./install.sh.
45841echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
45842echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
45843if test -z "$INSTALL"; then
45844if test "${ac_cv_path_install+set}" = set; then
45845 echo $ECHO_N "(cached) $ECHO_C" >&6
45846else
45847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45848for as_dir in $PATH
45849do
45850 IFS=$as_save_IFS
45851 test -z "$as_dir" && as_dir=.
45852 # Account for people who put trailing slashes in PATH elements.
45853case $as_dir/ in
45854 ./ | .// | /cC/* | \
45855 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 45856 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
45857 /usr/ucb/* ) ;;
45858 *)
45859 # OSF1 and SCO ODT 3.0 have their own names for install.
45860 # Don't use installbsd from OSF since it installs stuff as root
45861 # by default.
45862 for ac_prog in ginstall scoinst install; do
45863 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
45864 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
45865 if test $ac_prog = install &&
45866 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
45867 # AIX install. It has an incompatible calling convention.
45868 :
45869 elif test $ac_prog = install &&
45870 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
45871 # program-specific install script used by HP pwplus--don't use.
45872 :
45873 else
45874 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
45875 break 3
45876 fi
45877 fi
a848cd7e
SC
45878 done
45879 done
45880 ;;
45881esac
45882done
45883
45884
45885fi
45886 if test "${ac_cv_path_install+set}" = set; then
45887 INSTALL=$ac_cv_path_install
45888 else
45889 # As a last resort, use the slow shell script. We don't cache a
45890 # path for INSTALL within a source directory, because that will
45891 # break other packages using the cache if that directory is
45892 # removed, or if the path is relative.
45893 INSTALL=$ac_install_sh
45894 fi
45895fi
45896echo "$as_me:$LINENO: result: $INSTALL" >&5
45897echo "${ECHO_T}$INSTALL" >&6
45898
45899# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
45900# It thinks the first close brace ends the variable substitution.
45901test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
45902
45903test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
45904
45905test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
45906
45907 echo "$as_me:$LINENO: checking whether ln -s works" >&5
45908echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
45909LN_S=$as_ln_s
45910if test "$LN_S" = "ln -s"; then
45911 echo "$as_me:$LINENO: result: yes" >&5
45912echo "${ECHO_T}yes" >&6
45913else
45914 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
45915echo "${ECHO_T}no, using $LN_S" >&6
45916fi
45917
45918
45919 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
45920echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 45921set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
45922if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
45923 echo $ECHO_N "(cached) $ECHO_C" >&6
45924else
45925 cat >conftest.make <<\_ACEOF
45926all:
45927 @echo 'ac_maketemp="$(MAKE)"'
45928_ACEOF
45929# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
45930eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
45931if test -n "$ac_maketemp"; then
45932 eval ac_cv_prog_make_${ac_make}_set=yes
45933else
45934 eval ac_cv_prog_make_${ac_make}_set=no
45935fi
45936rm -f conftest.make
45937fi
45938if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
45939 echo "$as_me:$LINENO: result: yes" >&5
45940echo "${ECHO_T}yes" >&6
45941 SET_MAKE=
45942else
45943 echo "$as_me:$LINENO: result: no" >&5
45944echo "${ECHO_T}no" >&6
45945 SET_MAKE="MAKE=${MAKE-make}"
45946fi
45947
45948
45949
45950 if test -n "$ac_tool_prefix"; then
45951 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
45952set dummy ${ac_tool_prefix}ar; ac_word=$2
45953echo "$as_me:$LINENO: checking for $ac_word" >&5
45954echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45955if test "${ac_cv_prog_AR+set}" = set; then
45956 echo $ECHO_N "(cached) $ECHO_C" >&6
45957else
45958 if test -n "$AR"; then
45959 ac_cv_prog_AR="$AR" # Let the user override the test.
45960else
45961as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45962for as_dir in $PATH
45963do
45964 IFS=$as_save_IFS
45965 test -z "$as_dir" && as_dir=.
45966 for ac_exec_ext in '' $ac_executable_extensions; do
45967 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45968 ac_cv_prog_AR="${ac_tool_prefix}ar"
45969 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45970 break 2
45971 fi
45972done
45973done
45974
45975fi
45976fi
45977AR=$ac_cv_prog_AR
45978if test -n "$AR"; then
45979 echo "$as_me:$LINENO: result: $AR" >&5
45980echo "${ECHO_T}$AR" >&6
45981else
45982 echo "$as_me:$LINENO: result: no" >&5
45983echo "${ECHO_T}no" >&6
45984fi
45985
45986fi
45987if test -z "$ac_cv_prog_AR"; then
45988 ac_ct_AR=$AR
45989 # Extract the first word of "ar", so it can be a program name with args.
45990set dummy ar; ac_word=$2
45991echo "$as_me:$LINENO: checking for $ac_word" >&5
45992echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45993if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
45994 echo $ECHO_N "(cached) $ECHO_C" >&6
45995else
45996 if test -n "$ac_ct_AR"; then
45997 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
45998else
45999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46000for as_dir in $PATH
46001do
46002 IFS=$as_save_IFS
46003 test -z "$as_dir" && as_dir=.
46004 for ac_exec_ext in '' $ac_executable_extensions; do
46005 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46006 ac_cv_prog_ac_ct_AR="ar"
46007 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46008 break 2
46009 fi
46010done
46011done
46012
46013 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
46014fi
46015fi
46016ac_ct_AR=$ac_cv_prog_ac_ct_AR
46017if test -n "$ac_ct_AR"; then
46018 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
46019echo "${ECHO_T}$ac_ct_AR" >&6
46020else
46021 echo "$as_me:$LINENO: result: no" >&5
46022echo "${ECHO_T}no" >&6
46023fi
46024
46025 AR=$ac_ct_AR
46026else
46027 AR="$ac_cv_prog_AR"
46028fi
46029
46030 if test -n "$ac_tool_prefix"; then
46031 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
46032set dummy ${ac_tool_prefix}strip; ac_word=$2
46033echo "$as_me:$LINENO: checking for $ac_word" >&5
46034echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
46035if test "${ac_cv_prog_STRIP+set}" = set; then
46036 echo $ECHO_N "(cached) $ECHO_C" >&6
46037else
46038 if test -n "$STRIP"; then
46039 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
46040else
46041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46042for as_dir in $PATH
46043do
46044 IFS=$as_save_IFS
46045 test -z "$as_dir" && as_dir=.
46046 for ac_exec_ext in '' $ac_executable_extensions; do
46047 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46048 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
46049 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46050 break 2
46051 fi
46052done
46053done
46054
46055fi
46056fi
46057STRIP=$ac_cv_prog_STRIP
46058if test -n "$STRIP"; then
46059 echo "$as_me:$LINENO: result: $STRIP" >&5
46060echo "${ECHO_T}$STRIP" >&6
46061else
46062 echo "$as_me:$LINENO: result: no" >&5
46063echo "${ECHO_T}no" >&6
46064fi
46065
46066fi
46067if test -z "$ac_cv_prog_STRIP"; then
46068 ac_ct_STRIP=$STRIP
46069 # Extract the first word of "strip", so it can be a program name with args.
46070set dummy strip; ac_word=$2
46071echo "$as_me:$LINENO: checking for $ac_word" >&5
46072echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
46073if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
46074 echo $ECHO_N "(cached) $ECHO_C" >&6
46075else
46076 if test -n "$ac_ct_STRIP"; then
46077 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
46078else
46079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46080for as_dir in $PATH
46081do
46082 IFS=$as_save_IFS
46083 test -z "$as_dir" && as_dir=.
46084 for ac_exec_ext in '' $ac_executable_extensions; do
46085 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46086 ac_cv_prog_ac_ct_STRIP="strip"
46087 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46088 break 2
46089 fi
46090done
46091done
46092
46093 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
46094fi
46095fi
46096ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
46097if test -n "$ac_ct_STRIP"; then
46098 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
46099echo "${ECHO_T}$ac_ct_STRIP" >&6
46100else
46101 echo "$as_me:$LINENO: result: no" >&5
46102echo "${ECHO_T}no" >&6
46103fi
46104
46105 STRIP=$ac_ct_STRIP
46106else
46107 STRIP="$ac_cv_prog_STRIP"
46108fi
46109
46110 if test -n "$ac_tool_prefix"; then
46111 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
46112set dummy ${ac_tool_prefix}nm; ac_word=$2
46113echo "$as_me:$LINENO: checking for $ac_word" >&5
46114echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
46115if test "${ac_cv_prog_NM+set}" = set; then
46116 echo $ECHO_N "(cached) $ECHO_C" >&6
46117else
46118 if test -n "$NM"; then
46119 ac_cv_prog_NM="$NM" # Let the user override the test.
46120else
46121as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46122for as_dir in $PATH
46123do
46124 IFS=$as_save_IFS
46125 test -z "$as_dir" && as_dir=.
46126 for ac_exec_ext in '' $ac_executable_extensions; do
46127 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46128 ac_cv_prog_NM="${ac_tool_prefix}nm"
46129 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46130 break 2
46131 fi
46132done
46133done
46134
46135fi
46136fi
46137NM=$ac_cv_prog_NM
46138if test -n "$NM"; then
46139 echo "$as_me:$LINENO: result: $NM" >&5
46140echo "${ECHO_T}$NM" >&6
46141else
46142 echo "$as_me:$LINENO: result: no" >&5
46143echo "${ECHO_T}no" >&6
46144fi
46145
46146fi
46147if test -z "$ac_cv_prog_NM"; then
46148 ac_ct_NM=$NM
46149 # Extract the first word of "nm", so it can be a program name with args.
46150set dummy nm; ac_word=$2
46151echo "$as_me:$LINENO: checking for $ac_word" >&5
46152echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
46153if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
46154 echo $ECHO_N "(cached) $ECHO_C" >&6
46155else
46156 if test -n "$ac_ct_NM"; then
46157 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
46158else
46159as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46160for as_dir in $PATH
46161do
46162 IFS=$as_save_IFS
46163 test -z "$as_dir" && as_dir=.
46164 for ac_exec_ext in '' $ac_executable_extensions; do
46165 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46166 ac_cv_prog_ac_ct_NM="nm"
46167 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46168 break 2
46169 fi
46170done
46171done
46172
46173 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
46174fi
46175fi
46176ac_ct_NM=$ac_cv_prog_ac_ct_NM
46177if test -n "$ac_ct_NM"; then
46178 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
46179echo "${ECHO_T}$ac_ct_NM" >&6
46180else
46181 echo "$as_me:$LINENO: result: no" >&5
46182echo "${ECHO_T}no" >&6
46183fi
46184
46185 NM=$ac_ct_NM
46186else
46187 NM="$ac_cv_prog_NM"
46188fi
46189
46190
46191 case ${BAKEFILE_HOST} in
46192 *-hp-hpux* )
1e9e8aba 46193 INSTALL_DIR="mkdir -p"
a848cd7e
SC
46194 ;;
46195 *) INSTALL_DIR="$INSTALL -d"
46196 ;;
46197 esac
46198
46199
46200 LDFLAGS_GUI=
46201 case ${BAKEFILE_HOST} in
46202 *-*-cygwin* | *-*-mingw32* )
46203 LDFLAGS_GUI="-mwindows"
46204 esac
46205
46206
46207 fi
46208
46209 echo "$as_me:$LINENO: checking if make is GNU make" >&5
46210echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
46211if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
46212 echo $ECHO_N "(cached) $ECHO_C" >&6
46213else
46214
46215 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
46216 egrep -s GNU > /dev/null); then
46217 bakefile_cv_prog_makeisgnu="yes"
46218 else
46219 bakefile_cv_prog_makeisgnu="no"
46220 fi
46221
46222fi
46223echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
46224echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
46225
46226 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
46227 IF_GNU_MAKE=""
46228 else
46229 IF_GNU_MAKE="#"
46230 fi
46231
46232
46233
46234 PLATFORM_UNIX=0
46235 PLATFORM_WIN32=0
46236 PLATFORM_MSDOS=0
46237 PLATFORM_MAC=0
1e9e8aba 46238 PLATFORM_MACOS=0
a848cd7e
SC
46239 PLATFORM_MACOSX=0
46240 PLATFORM_OS2=0
1e9e8aba 46241 PLATFORM_BEOS=0
a848cd7e
SC
46242
46243 if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
46244 case "${BAKEFILE_HOST}" in
810b94f0 46245 *-*-mingw32* )
a848cd7e
SC
46246 PLATFORM_WIN32=1
46247 ;;
46248 *-pc-msdosdjgpp )
46249 PLATFORM_MSDOS=1
46250 ;;
46251 *-pc-os2_emx | *-pc-os2-emx )
46252 PLATFORM_OS2=1
46253 ;;
47bd5406 46254 *-*-darwin* )
a848cd7e
SC
46255 PLATFORM_MAC=1
46256 PLATFORM_MACOSX=1
46257 ;;
1e9e8aba
DE
46258 *-*-beos* )
46259 PLATFORM_BEOS=1
46260 ;;
46261 powerpc-apple-macos* )
46262 PLATFORM_MAC=1
46263 PLATFORM_MACOS=1
46264 ;;
a848cd7e
SC
46265 * )
46266 PLATFORM_UNIX=1
46267 ;;
46268 esac
46269 else
46270 case "$BAKEFILE_FORCE_PLATFORM" in
46271 win32 )
46272 PLATFORM_WIN32=1
46273 ;;
46274 msdos )
46275 PLATFORM_MSDOS=1
46276 ;;
46277 os2 )
46278 PLATFORM_OS2=1
46279 ;;
46280 darwin )
46281 PLATFORM_MAC=1
46282 PLATFORM_MACOSX=1
46283 ;;
46284 unix )
46285 PLATFORM_UNIX=1
46286 ;;
1e9e8aba
DE
46287 beos )
46288 PLATFORM_BEOS=1
46289 ;;
a848cd7e
SC
46290 * )
46291 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
46292echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
46293 { (exit 1); exit 1; }; }
46294 ;;
46295 esac
46296 fi
46297
46298
46299
46300
46301
46302
46303
46304
46305
1e9e8aba
DE
46306
46307
a848cd7e
SC
46308 # Check whether --enable-omf or --disable-omf was given.
46309if test "${enable_omf+set}" = set; then
46310 enableval="$enable_omf"
46311 bk_os2_use_omf="$enableval"
46312fi;
46313
46314 case "${BAKEFILE_HOST}" in
46315 *-*-darwin* )
47bd5406
VZ
46316 if test "x$GCC" = "xyes"; then
46317 CFLAGS="$CFLAGS -fno-common"
46318 CXXFLAGS="$CXXFLAGS -fno-common"
46319 fi
46320 if test "x$XLCC" = "xyes"; then
46321 CFLAGS="$CFLAGS -qnocommon"
46322 CXXFLAGS="$CXXFLAGS -qnocommon"
46323 fi
a848cd7e
SC
46324 ;;
46325
46326 *-pc-os2_emx | *-pc-os2-emx )
46327 if test "x$bk_os2_use_omf" = "xyes" ; then
46328 AR=emxomfar
46329 RANLIB=:
46330 LDFLAGS="-Zomf $LDFLAGS"
46331 CFLAGS="-Zomf $CFLAGS"
46332 CXXFLAGS="-Zomf $CXXFLAGS"
46333 OS2_LIBEXT="lib"
46334 else
46335 OS2_LIBEXT="a"
46336 fi
46337 ;;
1e9e8aba
DE
46338
46339 i*86-*-beos* )
46340 LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
46341 ;;
a848cd7e
SC
46342 esac
46343
46344
46345 SO_SUFFIX="so"
46346 SO_SUFFIX_MODULE="so"
46347 EXEEXT=""
46348 LIBPREFIX="lib"
46349 LIBEXT=".a"
46350 DLLPREFIX="lib"
46351 DLLPREFIX_MODULE=""
46352 DLLIMP_SUFFIX=""
810b94f0 46353 dlldir="$libdir"
a848cd7e
SC
46354
46355 case "${BAKEFILE_HOST}" in
46356 *-hp-hpux* )
46357 SO_SUFFIX="sl"
46358 SO_SUFFIX_MODULE="sl"
46359 ;;
46360 *-*-aix* )
46361 SO_SUFFIX="a"
46362 SO_SUFFIX_MODULE="a"
46363 ;;
810b94f0
MW
46364 *-*-cygwin* )
46365 SO_SUFFIX="dll"
46366 SO_SUFFIX_MODULE="dll"
46367 DLLIMP_SUFFIX="dll.a"
46368 EXEEXT=".exe"
46369 DLLPREFIX="cyg"
46370 dlldir="$bindir"
46371 ;;
46372 *-*-mingw32* )
a848cd7e
SC
46373 SO_SUFFIX="dll"
46374 SO_SUFFIX_MODULE="dll"
46375 DLLIMP_SUFFIX="dll.a"
46376 EXEEXT=".exe"
46377 DLLPREFIX=""
810b94f0 46378 dlldir="$bindir"
a848cd7e
SC
46379 ;;
46380 *-pc-msdosdjgpp )
46381 EXEEXT=".exe"
46382 DLLPREFIX=""
810b94f0 46383 dlldir="$bindir"
a848cd7e
SC
46384 ;;
46385 *-pc-os2_emx | *-pc-os2-emx )
46386 SO_SUFFIX="dll"
46387 SO_SUFFIX_MODULE="dll"
46388 DLLIMP_SUFFIX=$OS2_LIBEXT
46389 EXEEXT=".exe"
46390 DLLPREFIX=""
46391 LIBPREFIX=""
46392 LIBEXT=".$OS2_LIBEXT"
810b94f0 46393 dlldir="$bindir"
a848cd7e 46394 ;;
47bd5406 46395 *-*-darwin* )
a848cd7e
SC
46396 SO_SUFFIX="dylib"
46397 SO_SUFFIX_MODULE="bundle"
46398 ;;
46399 esac
46400
46401 if test "x$DLLIMP_SUFFIX" = "x" ; then
46402 DLLIMP_SUFFIX="$SO_SUFFIX"
46403 fi
46404
46405
46406
46407
46408
46409
46410
46411
46412
46413
46414
810b94f0 46415
1e9e8aba
DE
46416 PIC_FLAG=""
46417 if test "x$GCC" = "xyes"; then
a848cd7e
SC
46418 PIC_FLAG="-fPIC"
46419 fi
46420
1e9e8aba
DE
46421 SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
46422 SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
810b94f0 46423 WINDOWS_IMPLIB=0
1e9e8aba 46424
a848cd7e
SC
46425 case "${BAKEFILE_HOST}" in
46426 *-hp-hpux* )
1e9e8aba 46427 if test "x$GCC" != "xyes"; then
a848cd7e
SC
46428 LDFLAGS="$LDFLAGS -L/usr/lib"
46429
46430 SHARED_LD_CC="${CC} -b -o"
46431 SHARED_LD_CXX="${CXX} -b -o"
46432 PIC_FLAG="+Z"
46433 fi
46434 ;;
46435
46436 *-*-linux* )
46437 if test "x$GCC" != "xyes"; then
46438 echo "$as_me:$LINENO: checking for Intel compiler" >&5
46439echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
46440if test "${bakefile_cv_prog_icc+set}" = set; then
46441 echo $ECHO_N "(cached) $ECHO_C" >&6
46442else
46443
46444 cat >conftest.$ac_ext <<_ACEOF
46445/* confdefs.h. */
46446_ACEOF
46447cat confdefs.h >>conftest.$ac_ext
46448cat >>conftest.$ac_ext <<_ACEOF
46449/* end confdefs.h. */
46450
46451int
46452main ()
46453{
46454
46455 #ifndef __INTEL_COMPILER
e5efa97e 46456 This is not ICC
a848cd7e
SC
46457 #endif
46458
46459 ;
46460 return 0;
46461}
46462_ACEOF
46463rm -f conftest.$ac_objext
46464if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 46465 (eval $ac_compile) 2>conftest.er1
a848cd7e 46466 ac_status=$?
ac1cb8d3
VS
46467 grep -v '^ *+' conftest.er1 >conftest.err
46468 rm -f conftest.er1
46469 cat conftest.err >&5
a848cd7e
SC
46470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46471 (exit $ac_status); } &&
c9a66001 46472 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
46473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46474 (eval $ac_try) 2>&5
46475 ac_status=$?
46476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46477 (exit $ac_status); }; } &&
46478 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
46479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46480 (eval $ac_try) 2>&5
46481 ac_status=$?
46482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46483 (exit $ac_status); }; }; then
46484 bakefile_cv_prog_icc=yes
46485else
46486 echo "$as_me: failed program was:" >&5
46487sed 's/^/| /' conftest.$ac_ext >&5
46488
46489bakefile_cv_prog_icc=no
46490
46491fi
ac1cb8d3 46492rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
46493
46494fi
46495echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
46496echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
46497 if test "$bakefile_cv_prog_icc" = "yes"; then
46498 PIC_FLAG="-KPIC"
46499 fi
46500 fi
46501 ;;
46502
46503 *-*-solaris2* )
46504 if test "x$GCC" != xyes ; then
46505 SHARED_LD_CC="${CC} -G -o"
46506 SHARED_LD_CXX="${CXX} -G -o"
46507 PIC_FLAG="-KPIC"
46508 fi
46509 ;;
46510
46511 *-*-darwin* )
46512
473276a9
VS
46513D='$'
46514cat <<EOF >shared-ld-sh
a848cd7e
SC
46515#!/bin/sh
46516#-----------------------------------------------------------------------------
46517#-- Name: distrib/mac/shared-ld-sh
46518#-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
46519#-- Author: Gilles Depeyrot
46520#-- Copyright: (c) 2002 Gilles Depeyrot
46521#-- Licence: any use permitted
46522#-----------------------------------------------------------------------------
46523
46524verbose=0
46525args=""
46526objects=""
46527linking_flag="-dynamiclib"
810b94f0 46528ldargs="-r -keep_private_externs -nostdlib"
a848cd7e 46529
473276a9
VS
46530while test ${D}# -gt 0; do
46531 case ${D}1 in
a848cd7e
SC
46532
46533 -v)
46534 verbose=1
46535 ;;
46536
46537 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
46538 # collect these options and values
473276a9 46539 args="${D}{args} ${D}1 ${D}2"
a848cd7e
SC
46540 shift
46541 ;;
46542
810b94f0
MW
46543 -s|-Wl,*)
46544 # collect these load args
46545 ldargs="${D}{ldargs} ${D}1"
2113bc77 46546 ;;
810b94f0
MW
46547
46548 -l*|-L*|-flat_namespace|-headerpad_max_install_names)
a848cd7e 46549 # collect these options
473276a9 46550 args="${D}{args} ${D}1"
a848cd7e
SC
46551 ;;
46552
46553 -dynamiclib|-bundle)
473276a9 46554 linking_flag="${D}1"
a848cd7e
SC
46555 ;;
46556
46557 -*)
473276a9 46558 echo "shared-ld: unhandled option '${D}1'"
a848cd7e
SC
46559 exit 1
46560 ;;
46561
46562 *.o | *.a | *.dylib)
46563 # collect object files
473276a9 46564 objects="${D}{objects} ${D}1"
a848cd7e
SC
46565 ;;
46566
46567 *)
473276a9 46568 echo "shared-ld: unhandled argument '${D}1'"
a848cd7e
SC
46569 exit 1
46570 ;;
46571
46572 esac
46573 shift
46574done
46575
810b94f0
MW
46576status=0
46577
a848cd7e
SC
46578#
46579# Link one module containing all the others
46580#
473276a9 46581if test ${D}{verbose} = 1; then
810b94f0 46582 echo "c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o"
a848cd7e 46583fi
810b94f0 46584c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o
473276a9 46585status=${D}?
a848cd7e
SC
46586
46587#
810b94f0
MW
46588# Link the shared library from the single module created, but only if the
46589# previous command didn't fail:
a848cd7e 46590#
810b94f0
MW
46591if test ${D}{status} = 0; then
46592 if test ${D}{verbose} = 1; then
46593 echo "c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
46594 fi
46595 c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}
46596 status=${D}?
a848cd7e
SC
46597fi
46598
46599#
46600# Remove intermediate module
46601#
473276a9 46602rm -f master.${D}${D}.o
a848cd7e 46603
810b94f0 46604exit ${D}status
a848cd7e 46605EOF
473276a9 46606
583d6b4b
VZ
46607 chmod +x shared-ld-sh
46608
46609 SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
46610 SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
46611
46612
46613 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
46614echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
46615if test "${bakefile_cv_gcc31+set}" = set; then
46616 echo $ECHO_N "(cached) $ECHO_C" >&6
46617else
46618
46619 cat >conftest.$ac_ext <<_ACEOF
46620/* confdefs.h. */
46621_ACEOF
46622cat confdefs.h >>conftest.$ac_ext
46623cat >>conftest.$ac_ext <<_ACEOF
46624/* end confdefs.h. */
46625
46626int
46627main ()
46628{
46629
46630 #if (__GNUC__ < 3) || \
46631 ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
e5efa97e 46632 This is old gcc
583d6b4b 46633 #endif
a848cd7e 46634
583d6b4b
VZ
46635 ;
46636 return 0;
46637}
46638_ACEOF
46639rm -f conftest.$ac_objext
46640if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46641 (eval $ac_compile) 2>conftest.er1
46642 ac_status=$?
46643 grep -v '^ *+' conftest.er1 >conftest.err
46644 rm -f conftest.er1
46645 cat conftest.err >&5
46646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46647 (exit $ac_status); } &&
c9a66001 46648 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
583d6b4b
VZ
46649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46650 (eval $ac_try) 2>&5
46651 ac_status=$?
46652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46653 (exit $ac_status); }; } &&
46654 { ac_try='test -s conftest.$ac_objext'
46655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46656 (eval $ac_try) 2>&5
46657 ac_status=$?
46658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46659 (exit $ac_status); }; }; then
46660
46661 bakefile_cv_gcc31=yes
46662
46663else
46664 echo "$as_me: failed program was:" >&5
46665sed 's/^/| /' conftest.$ac_ext >&5
46666
46667
46668 bakefile_cv_gcc31=no
46669
46670
46671fi
46672rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46673
46674fi
46675echo "$as_me:$LINENO: result: $bakefile_cv_gcc31" >&5
46676echo "${ECHO_T}$bakefile_cv_gcc31" >&6
46677 if test "$bakefile_cv_gcc31" = "no"; then
a848cd7e 46678 SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
a848cd7e 46679 SHARED_LD_CXX="$SHARED_LD_CC"
a848cd7e
SC
46680 else
46681 SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
a848cd7e 46682 SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
a848cd7e
SC
46683 fi
46684
47bd5406
VZ
46685 if test "x$GCC" == "xyes"; then
46686 PIC_FLAG="-dynamic -fPIC"
46687 fi
46688 if test "x$XLCC" = "xyes"; then
46689 PIC_FLAG="-dynamic -DPIC"
46690 fi
a848cd7e
SC
46691 ;;
46692
46693 *-*-aix* )
f6b50c59 46694 if test "x$GCC" = "xyes"; then
583d6b4b 46695 PIC_FLAG=""
f6b50c59 46696
583d6b4b
VZ
46697 case "${BAKEFILE_HOST}" in
46698 *-*-aix5* )
46699 LD_EXPFULL="-Wl,-bexpfull"
46700 ;;
46701 esac
f6b50c59 46702
583d6b4b
VZ
46703 SHARED_LD_CC="\$(CC) -shared $LD_EXPFULL -o"
46704 SHARED_LD_CXX="\$(CXX) -shared $LD_EXPFULL -o"
46705 else
46706 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
a848cd7e
SC
46707set dummy makeC++SharedLib; ac_word=$2
46708echo "$as_me:$LINENO: checking for $ac_word" >&5
46709echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
46710if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
46711 echo $ECHO_N "(cached) $ECHO_C" >&6
46712else
46713 if test -n "$AIX_CXX_LD"; then
46714 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
46715else
46716as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46717for as_dir in $PATH
46718do
46719 IFS=$as_save_IFS
46720 test -z "$as_dir" && as_dir=.
46721 for ac_exec_ext in '' $ac_executable_extensions; do
46722 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46723 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
46724 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46725 break 2
46726 fi
46727done
46728done
46729
46730 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
46731fi
46732fi
46733AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
46734if test -n "$AIX_CXX_LD"; then
46735 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
46736echo "${ECHO_T}$AIX_CXX_LD" >&6
46737else
46738 echo "$as_me:$LINENO: result: no" >&5
46739echo "${ECHO_T}no" >&6
46740fi
46741
f6b50c59 46742 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
a848cd7e
SC
46743 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
46744 fi
46745 ;;
46746
46747 *-*-beos* )
1e9e8aba
DE
46748 SHARED_LD_CC="${LD} -nostart -o"
46749 SHARED_LD_CXX="${LD} -nostart -o"
a848cd7e
SC
46750 ;;
46751
46752 *-*-irix* )
46753 if test "x$GCC" != "xyes"; then
46754 PIC_FLAG="-KPIC"
46755 fi
46756 ;;
46757
46758 *-*-cygwin* | *-*-mingw32* )
46759 PIC_FLAG=""
1e9e8aba
DE
46760 SHARED_LD_CC="\$(CC) -shared -o"
46761 SHARED_LD_CXX="\$(CXX) -shared -o"
810b94f0 46762 WINDOWS_IMPLIB=1
a848cd7e
SC
46763 ;;
46764
46765 *-pc-os2_emx | *-pc-os2-emx )
b1d22ded
DE
46766 SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
46767 SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
a848cd7e 46768 PIC_FLAG=""
473276a9
VS
46769
46770D='$'
46771cat <<EOF >dllar.sh
46772#!/bin/sh
46773#
46774# dllar - a tool to build both a .dll and an .a file
46775# from a set of object (.o) files for EMX/OS2.
46776#
46777# Written by Andrew Zabolotny, bit@freya.etu.ru
46778# Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
46779#
46780# This script will accept a set of files on the command line.
46781# All the public symbols from the .o files will be exported into
46782# a .DEF file, then linker will be run (through gcc) against them to
46783# build a shared library consisting of all given .o files. All libraries
46784# (.a) will be first decompressed into component .o files then act as
46785# described above. You can optionally give a description (-d "description")
46786# which will be put into .DLL. To see the list of accepted options (as well
46787# as command-line format) simply run this program without options. The .DLL
46788# is built to be imported by name (there is no guarantee that new versions
46789# of the library you build will have same ordinals for same symbols).
46790#
46791# dllar is free software; you can redistribute it and/or modify
46792# it under the terms of the GNU General Public License as published by
46793# the Free Software Foundation; either version 2, or (at your option)
46794# any later version.
46795#
46796# dllar is distributed in the hope that it will be useful,
46797# but WITHOUT ANY WARRANTY; without even the implied warranty of
46798# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
46799# GNU General Public License for more details.
46800#
46801# You should have received a copy of the GNU General Public License
46802# along with dllar; see the file COPYING. If not, write to the Free
46803# Software Foundation, 59 Temple Place - Suite 330, Boston, MA
46804# 02111-1307, USA.
46805
46806# To successfuly run this program you will need:
46807# - Current drive should have LFN support (HPFS, ext2, network, etc)
46808# (Sometimes dllar generates filenames which won't fit 8.3 scheme)
46809# - gcc
46810# (used to build the .dll)
46811# - emxexp
46812# (used to create .def file from .o files)
46813# - emximp
46814# (used to create .a file from .def file)
46815# - GNU text utilites (cat, sort, uniq)
46816# used to process emxexp output
46817# - GNU file utilities (mv, rm)
46818# - GNU sed
46819# - lxlite (optional, see flag below)
46820# (used for general .dll cleanup)
46821#
46822
46823flag_USE_LXLITE=1;
46824
46825#
46826# helper functions
46827# basnam, variant of basename, which does _not_ remove the path, _iff_
46828# second argument (suffix to remove) is given
46829basnam(){
46830 case ${D}# in
46831 1)
1e9e8aba 46832 echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
473276a9
VS
46833 ;;
46834 2)
46835 echo ${D}1 | sed 's/'${D}2'${D}//'
46836 ;;
46837 *)
46838 echo "error in basnam ${D}*"
46839 exit 8
46840 ;;
46841 esac
46842}
46843
46844# Cleanup temporary files and output
46845CleanUp() {
46846 cd ${D}curDir
46847 for i in ${D}inputFiles ; do
46848 case ${D}i in
46849 *!)
46850 rm -rf \`basnam ${D}i !\`
46851 ;;
46852 *)
46853 ;;
46854 esac
46855 done
46856
46857 # Kill result in case of failure as there is just to many stupid make/nmake
46858 # things out there which doesn't do this.
1e9e8aba 46859 if [ ${D}# -eq 0 ]; then
473276a9
VS
46860 rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
46861 fi
46862}
46863
46864# Print usage and exit script with rc=1.
46865PrintHelp() {
b1d22ded
DE
46866 echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]'
46867 echo ' [-name-mangler-script script.sh]'
46868 echo ' [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]'
46869 echo ' [-ord[inals]] -ex[clude] "symbol(s)"'
46870 echo ' [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]'
1e9e8aba 46871 echo ' [*.o] [*.a]'
473276a9
VS
46872 echo '*> "output_file" should have no extension.'
46873 echo ' If it has the .o, .a or .dll extension, it is automatically removed.'
46874 echo ' The import library name is derived from this and is set to "name".a,'
46875 echo ' unless overridden by -import'
46876 echo '*> "importlib_name" should have no extension.'
46877 echo ' If it has the .o, or .a extension, it is automatically removed.'
46878 echo ' This name is used as the import library name and may be longer and'
46879 echo ' more descriptive than the DLL name which has to follow the old '
46880 echo ' 8.3 convention of FAT.'
b1d22ded
DE
46881 echo '*> "script.sh may be given to override the output_file name by a'
46882 echo ' different name. It is mainly useful if the regular make process'
46883 echo ' of some package does not take into account OS/2 restriction of'
46884 echo ' DLL name lengths. It takes the importlib name as input and is'
46885 echo ' supposed to procude a shorter name as output. The script should'
46886 echo ' expect to get importlib_name without extension and should produce'
46887 echo ' a (max.) 8 letter name without extension.'
473276a9
VS
46888 echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)'
46889 echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
46890 echo ' These flags will be put at the start of GCC command line.'
b1d22ded
DE
46891 echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.'
46892 echo '*> -ex[clude] defines symbols which will not be exported. You can define'
473276a9
VS
46893 echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
46894 echo ' If the last character of a symbol is "*", all symbols beginning'
46895 echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).'
b1d22ded 46896 echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or'
473276a9 46897 echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
b1d22ded 46898 echo '*> -nocrt[dll] switch will disable linking the library against emx''s'
473276a9 46899 echo ' C runtime DLLs.'
b1d22ded 46900 echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.'
473276a9
VS
46901 echo '*> All other switches (for example -L./ or -lmylib) will be passed'
46902 echo ' unchanged to GCC at the end of command line.'
46903 echo '*> If you create a DLL from a library and you do not specify -o,'
46904 echo ' the basename for DLL and import library will be set to library name,'
46905 echo ' the initial library will be renamed to 'name'_s.a (_s for static)'
46906 echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
46907 echo ' library will be renamed into gcc_s.a.'
46908 echo '--------'
46909 echo 'Example:'
46910 echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
46911 echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
46912 CleanUp
46913 exit 1
46914}
46915
46916# Execute a command.
46917# If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
46918# @Uses Whatever CleanUp() uses.
46919doCommand() {
46920 echo "${D}*"
46921 eval ${D}*
46922 rcCmd=${D}?
46923
1e9e8aba 46924 if [ ${D}rcCmd -ne 0 ]; then
473276a9
VS
46925 echo "command failed, exit code="${D}rcCmd
46926 CleanUp
46927 exit ${D}rcCmd
46928 fi
46929}
46930
46931# main routine
46932# setup globals
46933cmdLine=${D}*
46934outFile=""
46935outimpFile=""
46936inputFiles=""
b1d22ded 46937renameScript=""
473276a9
VS
46938description=""
46939CC=gcc.exe
46940CFLAGS="-s -Zcrtdll"
46941EXTRA_CFLAGS=""
46942EXPORT_BY_ORDINALS=0
46943exclude_symbols=""
46944library_flags=""
46945curDir=\`pwd\`
46946curDirS=curDir
46947case ${D}curDirS in
46948*/)
46949 ;;
46950*)
46951 curDirS=${D}{curDirS}"/"
46952 ;;
46953esac
46954# Parse commandline
46955libsToLink=0
b1d22ded 46956omfLinking=0
1e9e8aba 46957while [ ${D}1 ]; do
473276a9
VS
46958 case ${D}1 in
46959 -ord*)
46960 EXPORT_BY_ORDINALS=1;
46961 ;;
46962 -o*)
46963 shift
46964 outFile=${D}1
46965 ;;
46966 -i*)
46967 shift
46968 outimpFile=${D}1
46969 ;;
b1d22ded
DE
46970 -name-mangler-script)
46971 shift
46972 renameScript=${D}1
46973 ;;
473276a9
VS
46974 -d*)
46975 shift
46976 description=${D}1
46977 ;;
46978 -f*)
46979 shift
46980 CFLAGS=${D}1
46981 ;;
46982 -c*)
46983 shift
46984 CC=${D}1
46985 ;;
46986 -h*)
46987 PrintHelp
46988 ;;
46989 -ex*)
46990 shift
46991 exclude_symbols=${D}{exclude_symbols}${D}1" "
46992 ;;
46993 -libf*)
46994 shift
46995 library_flags=${D}{library_flags}${D}1" "
46996 ;;
46997 -nocrt*)
46998 CFLAGS="-s"
46999 ;;
47000 -nolxl*)
47001 flag_USE_LXLITE=0
47002 ;;
47003 -* | /*)
47004 case ${D}1 in
47005 -L* | -l*)
47006 libsToLink=1
47007 ;;
b1d22ded
DE
47008 -Zomf)
47009 omfLinking=1
47010 ;;
473276a9
VS
47011 *)
47012 ;;
47013 esac
47014 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
47015 ;;
b1d22ded
DE
47016 *.dll)
47017 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`"
47018 if [ ${D}omfLinking -eq 1 ]; then
47019 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib"
47020 else
47021 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a"
47022 fi
47023 ;;
473276a9
VS
47024 *)
47025 found=0;
1e9e8aba 47026 if [ ${D}libsToLink -ne 0 ]; then
473276a9
VS
47027 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
47028 else
47029 for file in ${D}1 ; do
1e9e8aba 47030 if [ -f ${D}file ]; then
473276a9
VS
47031 inputFiles="${D}{inputFiles} ${D}file"
47032 found=1
47033 fi
47034 done
1e9e8aba 47035 if [ ${D}found -eq 0 ]; then
473276a9
VS
47036 echo "ERROR: No file(s) found: "${D}1
47037 exit 8
47038 fi
47039 fi
47040 ;;
47041 esac
47042 shift
47043done # iterate cmdline words
47044
47045#
1e9e8aba 47046if [ -z "${D}inputFiles" ]; then
473276a9
VS
47047 echo "dllar: no input files"
47048 PrintHelp
47049fi
47050
47051# Now extract all .o files from .a files
47052newInputFiles=""
47053for file in ${D}inputFiles ; do
47054 case ${D}file in
47055 *.a | *.lib)
47056 case ${D}file in
47057 *.a)
47058 suffix=".a"
47059 AR="ar"
47060 ;;
47061 *.lib)
47062 suffix=".lib"
47063 AR="emxomfar"
47064 EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
47065 ;;
47066 *)
47067 ;;
47068 esac
47069 dirname=\`basnam ${D}file ${D}suffix\`"_%"
47070 mkdir ${D}dirname
1e9e8aba 47071 if [ ${D}? -ne 0 ]; then
473276a9
VS
47072 echo "Failed to create subdirectory ./${D}dirname"
47073 CleanUp
47074 exit 8;
47075 fi
47076 # Append '!' to indicate archive
47077 newInputFiles="${D}newInputFiles ${D}{dirname}!"
47078 doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
47079 cd ${D}curDir
47080 found=0;
47081 for subfile in ${D}dirname/*.o* ; do
1e9e8aba 47082 if [ -f ${D}subfile ]; then
473276a9 47083 found=1
1e9e8aba 47084 if [ -s ${D}subfile ]; then
473276a9
VS
47085 # FIXME: This should be: is file size > 32 byte, _not_ > 0!
47086 newInputFiles="${D}newInputFiles ${D}subfile"
47087 fi
47088 fi
47089 done
1e9e8aba
DE
47090 if [ ${D}found -eq 0 ]; then
47091 echo "WARNING: there are no files in archive \\'${D}file\\'"
473276a9
VS
47092 fi
47093 ;;
47094 *)
47095 newInputFiles="${D}{newInputFiles} ${D}file"
47096 ;;
47097 esac
47098done
47099inputFiles="${D}newInputFiles"
47100
47101# Output filename(s).
47102do_backup=0;
1e9e8aba 47103if [ -z ${D}outFile ]; then
473276a9
VS
47104 do_backup=1;
47105 set outFile ${D}inputFiles; outFile=${D}2
47106fi
47107
47108# If it is an archive, remove the '!' and the '_%' suffixes
47109case ${D}outFile in
47110*_%!)
47111 outFile=\`basnam ${D}outFile _%!\`
47112 ;;
47113*)
47114 ;;
47115esac
47116case ${D}outFile in
47117*.dll)
47118 outFile=\`basnam ${D}outFile .dll\`
47119 ;;
47120*.DLL)
47121 outFile=\`basnam ${D}outFile .DLL\`
47122 ;;
47123*.o)
47124 outFile=\`basnam ${D}outFile .o\`
47125 ;;
47126*.obj)
47127 outFile=\`basnam ${D}outFile .obj\`
47128 ;;
47129*.a)
47130 outFile=\`basnam ${D}outFile .a\`
47131 ;;
47132*.lib)
47133 outFile=\`basnam ${D}outFile .lib\`
47134 ;;
47135*)
47136 ;;
47137esac
47138case ${D}outimpFile in
47139*.a)
47140 outimpFile=\`basnam ${D}outimpFile .a\`
47141 ;;
47142*.lib)
47143 outimpFile=\`basnam ${D}outimpFile .lib\`
47144 ;;
47145*)
47146 ;;
47147esac
1e9e8aba 47148if [ -z ${D}outimpFile ]; then
473276a9
VS
47149 outimpFile=${D}outFile
47150fi
47151defFile="${D}{outFile}.def"
47152arcFile="${D}{outimpFile}.a"
47153arcFile2="${D}{outimpFile}.lib"
b1d22ded
DE
47154
47155#create ${D}dllFile as something matching 8.3 restrictions,
47156if [ -z ${D}renameScript ] ; then
47157 dllFile="${D}outFile"
47158else
47159 dllFile=\`${D}renameScript ${D}outimpFile\`
47160fi
473276a9 47161
1e9e8aba
DE
47162if [ ${D}do_backup -ne 0 ] ; then
47163 if [ -f ${D}arcFile ] ; then
473276a9
VS
47164 doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
47165 fi
1e9e8aba 47166 if [ -f ${D}arcFile2 ] ; then
473276a9
VS
47167 doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
47168 fi
47169fi
47170
47171# Extract public symbols from all the object files.
47172tmpdefFile=${D}{defFile}_%
47173rm -f ${D}tmpdefFile
47174for file in ${D}inputFiles ; do
47175 case ${D}file in
47176 *!)
47177 ;;
47178 *)
47179 doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
47180 ;;
47181 esac
47182done
47183
47184# Create the def file.
47185rm -f ${D}defFile
47186echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
b1d22ded
DE
47187dllFile="${D}{dllFile}.dll"
47188if [ ! -z ${D}description ]; then
1e9e8aba 47189 echo "DESCRIPTION \\"${D}{description}\\"" >> ${D}defFile
473276a9
VS
47190fi
47191echo "EXPORTS" >> ${D}defFile
47192
47193doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
47194grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
47195
47196# Checks if the export is ok or not.
47197for word in ${D}exclude_symbols; do
47198 grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
47199 mv ${D}{tmpdefFile}% ${D}tmpdefFile
47200done
47201
47202
1e9e8aba
DE
47203if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
47204 sed "=" < ${D}tmpdefFile | \\
473276a9
VS
47205 sed '
47206 N
47207 : loop
1e9e8aba 47208 s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
473276a9
VS
47209 t loop
47210 ' > ${D}{tmpdefFile}%
47211 grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
47212else
47213 rm -f ${D}{tmpdefFile}%
47214fi
47215cat ${D}tmpdefFile >> ${D}defFile
47216rm -f ${D}tmpdefFile
47217
47218# Do linking, create implib, and apply lxlite.
47219gccCmdl="";
47220for file in ${D}inputFiles ; do
47221 case ${D}file in
47222 *!)
47223 ;;
47224 *)
47225 gccCmdl="${D}gccCmdl ${D}file"
47226 ;;
47227 esac
47228done
47229doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
47230touch "${D}{outFile}.dll"
47231
47232doCommand "emximp -o ${D}arcFile ${D}defFile"
1e9e8aba 47233if [ ${D}flag_USE_LXLITE -ne 0 ]; then
473276a9 47234 add_flags="";
1e9e8aba 47235 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
473276a9
VS
47236 add_flags="-ynd"
47237 fi
47238 doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
47239fi
47240doCommand "emxomf -s -l ${D}arcFile"
47241
47242# Successful exit.
47243CleanUp 1
47244exit 0
47245EOF
47246
47247 chmod +x dllar.sh
a848cd7e
SC
47248 ;;
47249
1e9e8aba 47250 powerpc-apple-macos* | \
0ad5d837 47251 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | *-*-k*bsd*-gnu | \
a848cd7e
SC
47252 *-*-sunos4* | \
47253 *-*-osf* | \
47254 *-*-dgux5* | \
47a7e797
MW
47255 *-*-sysv5* | \
47256 *-pc-msdosdjgpp )
a848cd7e
SC
47257 ;;
47258
47259 *)
3ecd9f92 47260 esac
a848cd7e 47261
2057db16
VS
47262 if test "x$PIC_FLAG" != "x" ; then
47263 PIC_FLAG="$PIC_FLAG -DPIC"
47264 fi
47265
a848cd7e
SC
47266 if test "x$SHARED_LD_MODULE_CC" = "x" ; then
47267 SHARED_LD_MODULE_CC="$SHARED_LD_CC"
47268 fi
47269 if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
47270 SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
47271 fi
47272
47273
47274
47275
47276
47277
47278
47279
810b94f0 47280
a848cd7e
SC
47281 USE_SOVERSION=0
47282 USE_SOVERLINUX=0
47283 USE_SOVERSOLARIS=0
810b94f0 47284 USE_SOVERCYGWIN=0
a848cd7e
SC
47285 USE_SOSYMLINKS=0
47286 USE_MACVERSION=0
47287 SONAME_FLAG=
47288
47289 case "${BAKEFILE_HOST}" in
0ad5d837 47290 *-*-linux* | *-*-freebsd* | *-*-k*bsd*-gnu )
5f652d0d
VS
47291 SONAME_FLAG="-Wl,-soname,"
47292 USE_SOVERSION=1
47293 USE_SOVERLINUX=1
47294 USE_SOSYMLINKS=1
47295 ;;
47296
a848cd7e
SC
47297 *-*-solaris2* )
47298 SONAME_FLAG="-h "
47299 USE_SOVERSION=1
47300 USE_SOVERSOLARIS=1
47301 USE_SOSYMLINKS=1
47302 ;;
47303
47304 *-*-darwin* )
47305 USE_MACVERSION=1
47306 USE_SOVERSION=1
47307 USE_SOSYMLINKS=1
47308 ;;
810b94f0
MW
47309
47310 *-*-cygwin* )
47311 USE_SOVERSION=1
47312 USE_SOVERCYGWIN=1
47313 ;;
a848cd7e
SC
47314 esac
47315
47316
47317
47318
47319
47320
47321
47322
47323
810b94f0 47324
f10e38c4
VZ
47325 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
47326if test "${enable_dependency_tracking+set}" = set; then
47327 enableval="$enable_dependency_tracking"
47328 bk_use_trackdeps="$enableval"
47329fi;
47330
a848cd7e
SC
47331 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
47332echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
a848cd7e 47333
f10e38c4
VZ
47334 if test "x$bk_use_trackdeps" = "xno" ; then
47335 DEPS_TRACKING=0
47336 echo "$as_me:$LINENO: result: disabled" >&5
47337echo "${ECHO_T}disabled" >&6
47338 else
47339 DEPS_TRACKING=1
47340
47341 if test "x$GCC" = "xyes"; then
47342 DEPSMODE=gcc
47343 case "${BAKEFILE_HOST}" in
47344 *-*-darwin* )
47345 DEPSFLAG="-no-cpp-precomp -MMD"
47346 ;;
47347 * )
47348 DEPSFLAG="-MMD"
47349 ;;
47350 esac
47351 echo "$as_me:$LINENO: result: gcc" >&5
a848cd7e 47352echo "${ECHO_T}gcc" >&6
f10e38c4
VZ
47353 elif test "x$MWCC" = "xyes"; then
47354 DEPSMODE=mwcc
47355 DEPSFLAG="-MM"
47356 echo "$as_me:$LINENO: result: mwcc" >&5
b1d22ded 47357echo "${ECHO_T}mwcc" >&6
f10e38c4
VZ
47358 elif test "x$SUNCC" = "xyes"; then
47359 DEPSMODE=unixcc
47360 DEPSFLAG="-xM1"
47361 echo "$as_me:$LINENO: result: Sun cc" >&5
0ad5d837 47362echo "${ECHO_T}Sun cc" >&6
f10e38c4
VZ
47363 elif test "x$SGICC" = "xyes"; then
47364 DEPSMODE=unixcc
47365 DEPSFLAG="-M"
47366 echo "$as_me:$LINENO: result: SGI cc" >&5
0ad5d837 47367echo "${ECHO_T}SGI cc" >&6
f10e38c4
VZ
47368 elif test "x$HPCC" = "xyes"; then
47369 DEPSMODE=unixcc
47370 DEPSFLAG="+make"
47371 echo "$as_me:$LINENO: result: HP cc" >&5
3006edc0 47372echo "${ECHO_T}HP cc" >&6
f10e38c4
VZ
47373 elif test "x$COMPAQCC" = "xyes"; then
47374 DEPSMODE=gcc
47375 DEPSFLAG="-MD"
47376 echo "$as_me:$LINENO: result: Compaq cc" >&5
a1aa0349 47377echo "${ECHO_T}Compaq cc" >&6
f10e38c4
VZ
47378 else
47379 DEPS_TRACKING=0
47380 echo "$as_me:$LINENO: result: none" >&5
a848cd7e 47381echo "${ECHO_T}none" >&6
f10e38c4 47382 fi
a848cd7e 47383
f10e38c4 47384 if test $DEPS_TRACKING = 1 ; then
473276a9
VS
47385
47386D='$'
47387cat <<EOF >bk-deps
a848cd7e
SC
47388#!/bin/sh
47389
47390# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
47391# script. It is used to track C/C++ files dependencies in portable way.
47392#
47393# Permission is given to use this file in any way.
47394
473276a9 47395DEPSMODE=${DEPSMODE}
a848cd7e 47396DEPSDIR=.deps
0ad5d837 47397DEPSFLAG="${DEPSFLAG}"
a848cd7e 47398
473276a9 47399mkdir -p ${D}DEPSDIR
a848cd7e 47400
473276a9 47401if test ${D}DEPSMODE = gcc ; then
0ad5d837 47402 ${D}* ${D}{DEPSFLAG}
473276a9
VS
47403 status=${D}?
47404 if test ${D}{status} != 0 ; then
47405 exit ${D}{status}
a848cd7e
SC
47406 fi
47407 # move created file to the location we want it in:
473276a9
VS
47408 while test ${D}# -gt 0; do
47409 case "${D}1" in
a848cd7e
SC
47410 -o )
47411 shift
473276a9 47412 objfile=${D}1
a848cd7e
SC
47413 ;;
47414 -* )
47415 ;;
47416 * )
473276a9 47417 srcfile=${D}1
a848cd7e
SC
47418 ;;
47419 esac
47420 shift
47421 done
1e9e8aba
DE
47422 depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
47423 depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
473276a9
VS
47424 if test -f ${D}depfile ; then
47425 sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
47426 rm -f ${D}depfile
a848cd7e 47427 else
a1aa0349 47428 # "g++ -MMD -o fooobj.o foosrc.cpp" produces fooobj.d
1e9e8aba 47429 depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\`
a1aa0349
VZ
47430 if test ! -f ${D}depfile ; then
47431 # "cxx -MD -o fooobj.o foosrc.cpp" creates fooobj.o.d (Compaq C++)
47432 depfile="${D}objfile.d"
47433 fi
473276a9
VS
47434 if test -f ${D}depfile ; then
47435 sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
47436 rm -f ${D}depfile
a848cd7e
SC
47437 fi
47438 fi
47439 exit 0
81f90336 47440elif test ${D}DEPSMODE = mwcc ; then
f6b50c59 47441 ${D}* || exit ${D}?
81f90336
MW
47442 # Run mwcc again with -MM and redirect into the dep file we want
47443 # NOTE: We can't use shift here because we need ${D}* to be valid
47444 prevarg=
47445 for arg in ${D}* ; do
47446 if test "${D}prevarg" = "-o"; then
47447 objfile=${D}arg
47448 else
47449 case "${D}arg" in
47450 -* )
47451 ;;
47452 * )
47453 srcfile=${D}arg
47454 ;;
47455 esac
47456 fi
47457 prevarg="${D}arg"
47458 done
0ad5d837 47459 ${D}* ${D}DEPSFLAG >${D}{DEPSDIR}/${D}{objfile}.d
81f90336 47460 exit 0
0ad5d837 47461elif test ${D}DEPSMODE = unixcc; then
f6b50c59 47462 ${D}* || exit ${D}?
a9e5b1f0
MW
47463 # Run compiler again with deps flag and redirect into the dep file.
47464 # It doesn't work if the '-o FILE' option is used, but without it the
47465 # dependency file will contain the wrong name for the object. So it is
47466 # removed from the command line, and the dep file is fixed with sed.
47467 cmd=""
47468 while test ${D}# -gt 0; do
47469 case "${D}1" in
47470 -o )
47471 shift
47472 objfile=${D}1
47473 ;;
47474 * )
47475 eval arg${D}#=\\${D}1
47476 cmd="${D}cmd \\${D}arg${D}#"
47477 ;;
47478 esac
47479 shift
47480 done
0ad5d837 47481 eval "${D}cmd ${D}DEPSFLAG" | sed "s|.*:|${D}objfile:|" >${D}{DEPSDIR}/${D}{objfile}.d
a9e5b1f0 47482 exit 0
a848cd7e 47483else
473276a9
VS
47484 ${D}*
47485 exit ${D}?
a848cd7e
SC
47486fi
47487EOF
473276a9 47488
f10e38c4
VZ
47489 chmod +x bk-deps
47490 fi
a848cd7e
SC
47491 fi
47492
47493
47494
47495
a848cd7e
SC
47496 case ${BAKEFILE_HOST} in
47497 *-*-cygwin* | *-*-mingw32* )
8ced02f6
DE
47498 if test -n "$ac_tool_prefix"; then
47499 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
47500set dummy ${ac_tool_prefix}windres; ac_word=$2
47501echo "$as_me:$LINENO: checking for $ac_word" >&5
47502echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47503if test "${ac_cv_prog_WINDRES+set}" = set; then
47504 echo $ECHO_N "(cached) $ECHO_C" >&6
47505else
47506 if test -n "$WINDRES"; then
47507 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
47508else
47509as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47510for as_dir in $PATH
47511do
47512 IFS=$as_save_IFS
47513 test -z "$as_dir" && as_dir=.
47514 for ac_exec_ext in '' $ac_executable_extensions; do
47515 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47516 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
47517 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47518 break 2
47519 fi
47520done
47521done
47522
47523fi
47524fi
47525WINDRES=$ac_cv_prog_WINDRES
47526if test -n "$WINDRES"; then
47527 echo "$as_me:$LINENO: result: $WINDRES" >&5
47528echo "${ECHO_T}$WINDRES" >&6
47529else
47530 echo "$as_me:$LINENO: result: no" >&5
47531echo "${ECHO_T}no" >&6
47532fi
47533
47534fi
47535if test -z "$ac_cv_prog_WINDRES"; then
47536 ac_ct_WINDRES=$WINDRES
47537 # Extract the first word of "windres", so it can be a program name with args.
a848cd7e
SC
47538set dummy windres; ac_word=$2
47539echo "$as_me:$LINENO: checking for $ac_word" >&5
47540echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 47541if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
a848cd7e
SC
47542 echo $ECHO_N "(cached) $ECHO_C" >&6
47543else
8ced02f6
DE
47544 if test -n "$ac_ct_WINDRES"; then
47545 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
a848cd7e
SC
47546else
47547as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47548for as_dir in $PATH
47549do
47550 IFS=$as_save_IFS
47551 test -z "$as_dir" && as_dir=.
47552 for ac_exec_ext in '' $ac_executable_extensions; do
47553 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 47554 ac_cv_prog_ac_ct_WINDRES="windres"
a848cd7e
SC
47555 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47556 break 2
47557 fi
47558done
47559done
47560
a848cd7e
SC
47561fi
47562fi
8ced02f6
DE
47563ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
47564if test -n "$ac_ct_WINDRES"; then
47565 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
47566echo "${ECHO_T}$ac_ct_WINDRES" >&6
a848cd7e
SC
47567else
47568 echo "$as_me:$LINENO: result: no" >&5
47569echo "${ECHO_T}no" >&6
47570fi
47571
8ced02f6
DE
47572 WINDRES=$ac_ct_WINDRES
47573else
47574 WINDRES="$ac_cv_prog_WINDRES"
47575fi
47576
a848cd7e
SC
47577 ;;
47578
1e9e8aba 47579 *-*-darwin* | powerpc-apple-macos* )
a848cd7e
SC
47580 # Extract the first word of "Rez", so it can be a program name with args.
47581set dummy Rez; ac_word=$2
47582echo "$as_me:$LINENO: checking for $ac_word" >&5
47583echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 47584if test "${ac_cv_prog_REZ+set}" = set; then
a848cd7e
SC
47585 echo $ECHO_N "(cached) $ECHO_C" >&6
47586else
8ced02f6
DE
47587 if test -n "$REZ"; then
47588 ac_cv_prog_REZ="$REZ" # Let the user override the test.
a848cd7e
SC
47589else
47590as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47591for as_dir in $PATH
47592do
47593 IFS=$as_save_IFS
47594 test -z "$as_dir" && as_dir=.
47595 for ac_exec_ext in '' $ac_executable_extensions; do
47596 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 47597 ac_cv_prog_REZ="Rez"
a848cd7e
SC
47598 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47599 break 2
47600 fi
47601done
47602done
47603
8ced02f6 47604 test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
a848cd7e
SC
47605fi
47606fi
8ced02f6
DE
47607REZ=$ac_cv_prog_REZ
47608if test -n "$REZ"; then
47609 echo "$as_me:$LINENO: result: $REZ" >&5
47610echo "${ECHO_T}$REZ" >&6
a848cd7e
SC
47611else
47612 echo "$as_me:$LINENO: result: no" >&5
47613echo "${ECHO_T}no" >&6
47614fi
47615
47616 # Extract the first word of "SetFile", so it can be a program name with args.
47617set dummy SetFile; ac_word=$2
47618echo "$as_me:$LINENO: checking for $ac_word" >&5
47619echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47620if test "${ac_cv_prog_SETFILE+set}" = set; then
47621 echo $ECHO_N "(cached) $ECHO_C" >&6
47622else
47623 if test -n "$SETFILE"; then
47624 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
47625else
47626as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47627for as_dir in $PATH
47628do
47629 IFS=$as_save_IFS
47630 test -z "$as_dir" && as_dir=.
47631 for ac_exec_ext in '' $ac_executable_extensions; do
47632 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47633 ac_cv_prog_SETFILE="SetFile"
47634 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47635 break 2
47636 fi
47637done
47638done
47639
47640 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
47641fi
47642fi
47643SETFILE=$ac_cv_prog_SETFILE
47644if test -n "$SETFILE"; then
47645 echo "$as_me:$LINENO: result: $SETFILE" >&5
47646echo "${ECHO_T}$SETFILE" >&6
47647else
47648 echo "$as_me:$LINENO: result: no" >&5
47649echo "${ECHO_T}no" >&6
47650fi
47651
47652 ;;
47653 esac
47654
47655
47656
47657
47658
8ced02f6 47659
f10e38c4 47660 BAKEFILE_BAKEFILE_M4_VERSION="0.2.0"
a848cd7e 47661
dcc1b6ad 47662
f10e38c4 47663BAKEFILE_AUTOCONF_INC_M4_VERSION="0.2.0"
a848cd7e 47664
646b6ec1 47665
74b84332 47666
a848cd7e
SC
47667 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
47668if test "${enable_precomp_headers+set}" = set; then
47669 enableval="$enable_precomp_headers"
47670 bk_use_pch="$enableval"
47671fi;
47672
47673 GCC_PCH=0
f10e38c4
VZ
47674 ICC_PCH=0
47675 USE_PCH=0
a848cd7e 47676
5c60e845
MW
47677 case ${BAKEFILE_HOST} in
47678 *-*-cygwin* )
47679 bk_use_pch="no"
47680 ;;
47681 esac
47682
a848cd7e
SC
47683 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
47684 if test "x$GCC" = "xyes"; then
47685 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
47686echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
47687 cat >conftest.$ac_ext <<_ACEOF
47688/* confdefs.h. */
47689_ACEOF
47690cat confdefs.h >>conftest.$ac_ext
47691cat >>conftest.$ac_ext <<_ACEOF
47692/* end confdefs.h. */
47693
47694int
47695main ()
47696{
47697
47698 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
e5efa97e 47699 There is no PCH support
a848cd7e
SC
47700 #endif
47701 #if (__GNUC__ < 3)
e5efa97e 47702 There is no PCH support
a848cd7e
SC
47703 #endif
47704 #if (__GNUC__ == 3) && \
47705 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
f10e38c4
VZ
47706 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) || \
47707 ( defined(__INTEL_COMPILER) )
e5efa97e 47708 There is no PCH support
a848cd7e
SC
47709 #endif
47710
47711 ;
47712 return 0;
47713}
47714_ACEOF
47715rm -f conftest.$ac_objext
47716if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 47717 (eval $ac_compile) 2>conftest.er1
a848cd7e 47718 ac_status=$?
ac1cb8d3
VS
47719 grep -v '^ *+' conftest.er1 >conftest.err
47720 rm -f conftest.er1
47721 cat conftest.err >&5
a848cd7e
SC
47722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47723 (exit $ac_status); } &&
c9a66001 47724 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
47725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47726 (eval $ac_try) 2>&5
47727 ac_status=$?
47728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47729 (exit $ac_status); }; } &&
47730 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
47731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47732 (eval $ac_try) 2>&5
47733 ac_status=$?
47734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47735 (exit $ac_status); }; }; then
47736
47737 echo "$as_me:$LINENO: result: yes" >&5
47738echo "${ECHO_T}yes" >&6
a848cd7e
SC
47739 GCC_PCH=1
47740
47741else
47742 echo "$as_me: failed program was:" >&5
47743sed 's/^/| /' conftest.$ac_ext >&5
47744
47745
f10e38c4
VZ
47746 cat >conftest.$ac_ext <<_ACEOF
47747/* confdefs.h. */
47748_ACEOF
47749cat confdefs.h >>conftest.$ac_ext
47750cat >>conftest.$ac_ext <<_ACEOF
47751/* end confdefs.h. */
47752
47753int
47754main ()
47755{
47756
47757 #if !defined(__INTEL_COMPILER) || \
47758 (__INTEL_COMPILER < 800)
e5efa97e 47759 There is no PCH support
f10e38c4
VZ
47760 #endif
47761
47762 ;
47763 return 0;
47764}
47765_ACEOF
47766rm -f conftest.$ac_objext
47767if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47768 (eval $ac_compile) 2>conftest.er1
47769 ac_status=$?
47770 grep -v '^ *+' conftest.er1 >conftest.err
47771 rm -f conftest.er1
47772 cat conftest.err >&5
47773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47774 (exit $ac_status); } &&
c9a66001 47775 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
f10e38c4
VZ
47776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47777 (eval $ac_try) 2>&5
47778 ac_status=$?
47779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47780 (exit $ac_status); }; } &&
47781 { ac_try='test -s conftest.$ac_objext'
47782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47783 (eval $ac_try) 2>&5
47784 ac_status=$?
47785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47786 (exit $ac_status); }; }; then
47787
47788 echo "$as_me:$LINENO: result: yes" >&5
47789echo "${ECHO_T}yes" >&6
47790 ICC_PCH=1
47791
47792else
47793 echo "$as_me: failed program was:" >&5
47794sed 's/^/| /' conftest.$ac_ext >&5
47795
47796
47797 echo "$as_me:$LINENO: result: no" >&5
a848cd7e
SC
47798echo "${ECHO_T}no" >&6
47799
47800fi
ac1cb8d3 47801rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f10e38c4
VZ
47802
47803fi
47804rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47805 if test $GCC_PCH = 1 -o $ICC_PCH = 1 ; then
47806 USE_PCH=1
1e9e8aba
DE
47807
47808D='$'
47809cat <<EOF >bk-make-pch
a848cd7e
SC
47810#!/bin/sh
47811
47812# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
47813# script. It is used to generated precompiled headers.
47814#
47815# Permission is given to use this file in any way.
47816
1e9e8aba
DE
47817outfile="${D}{1}"
47818header="${D}{2}"
a848cd7e
SC
47819shift
47820shift
47821
f10e38c4
VZ
47822compiler=""
47823headerfile=""
47824
1e9e8aba 47825while test ${D}{#} -gt 0; do
f10e38c4 47826 add_to_cmdline=1
1e9e8aba 47827 case "${D}{1}" in
a848cd7e 47828 -I* )
1e9e8aba
DE
47829 incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
47830 if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
47831 headerfile="${D}{incdir}/${D}{header}"
a848cd7e
SC
47832 fi
47833 ;;
f10e38c4
VZ
47834 -use-pch|-use_pch )
47835 shift
47836 add_to_cmdline=0
47837 ;;
a848cd7e 47838 esac
f10e38c4
VZ
47839 if test ${D}add_to_cmdline = 1 ; then
47840 compiler="${D}{compiler} ${D}{1}"
47841 fi
a848cd7e
SC
47842 shift
47843done
47844
1e9e8aba 47845if test "x${D}{headerfile}" = "x" ; then
f10e38c4 47846 echo "error: can't find header ${D}{header} in include paths" >&2
a848cd7e 47847else
1e9e8aba
DE
47848 if test -f ${D}{outfile} ; then
47849 rm -f ${D}{outfile}
a848cd7e 47850 else
1e9e8aba 47851 mkdir -p \`dirname ${D}{outfile}\`
a848cd7e 47852 fi
1e9e8aba 47853 depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
a848cd7e 47854 mkdir -p .deps
f10e38c4
VZ
47855 if test "x${GCC_PCH}" = "x1" ; then
47856 # can do this because gcc is >= 3.4:
47857 ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
47858 elif test "x${ICC_PCH}" = "x1" ; then
47859 filename=pch_gen-${D}${D}
47860 file=${D}{filename}.c
47861 dfile=${D}{filename}.d
47862 cat > ${D}file <<EOT
47863#include "${D}header"
47864EOT
47865 # using -MF icc complains about differing command lines in creation/use
47866 ${D}compiler -c -create_pch ${D}outfile -MMD ${D}file && \\
47867 sed -e "s,^.*:,${D}outfile:," -e "s, ${D}file,," < ${D}dfile > ${D}depsfile && \\
47868 rm -f ${D}file ${D}dfile ${D}{filename}.o
47869 fi
1e9e8aba 47870 exit ${D}{?}
a848cd7e
SC
47871fi
47872EOF
1e9e8aba 47873
a848cd7e
SC
47874 chmod +x bk-make-pch
47875 fi
47876 fi
47877 fi
47878
47879
47880
f10e38c4 47881
a848cd7e
SC
47882 COND_BUILD_DEBUG="#"
47883 if test "x$BUILD" = "xdebug" ; then
47884 COND_BUILD_DEBUG=""
47885 fi
47886
47887 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
47888 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
47889 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
47890 fi
47891
47892 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
47893 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
47894 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
47895 fi
47896
47897 COND_BUILD_DEBUG_UNICODE_0="#"
47898 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
47899 COND_BUILD_DEBUG_UNICODE_0=""
47900 fi
47901
47902 COND_BUILD_DEBUG_UNICODE_1="#"
47903 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
47904 COND_BUILD_DEBUG_UNICODE_1=""
47905 fi
47906
47907 COND_BUILD_RELEASE="#"
47908 if test "x$BUILD" = "xrelease" ; then
47909 COND_BUILD_RELEASE=""
47910 fi
47911
47912 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
47913 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
47914 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
47915 fi
47916
47917 COND_BUILD_RELEASE_UNICODE_0="#"
47918 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
47919 COND_BUILD_RELEASE_UNICODE_0=""
47920 fi
47921
47922 COND_BUILD_RELEASE_UNICODE_1="#"
47923 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
47924 COND_BUILD_RELEASE_UNICODE_1=""
47925 fi
47926
47927 COND_DEBUG_FLAG_1="#"
47928 if test "x$DEBUG_FLAG" = "x1" ; then
47929 COND_DEBUG_FLAG_1=""
47930 fi
47931
47932 COND_DEBUG_INFO_0="#"
47933 if test "x$DEBUG_INFO" = "x0" ; then
47934 COND_DEBUG_INFO_0=""
47935 fi
47936
47937 COND_DEBUG_INFO_1="#"
47938 if test "x$DEBUG_INFO" = "x1" ; then
47939 COND_DEBUG_INFO_1=""
47940 fi
47941
47942 COND_DEPS_TRACKING_0="#"
47943 if test "x$DEPS_TRACKING" = "x0" ; then
47944 COND_DEPS_TRACKING_0=""
47945 fi
47946
47947 COND_DEPS_TRACKING_1="#"
47948 if test "x$DEPS_TRACKING" = "x1" ; then
47949 COND_DEPS_TRACKING_1=""
47950 fi
47951
47952 COND_GCC_PCH_1="#"
47953 if test "x$GCC_PCH" = "x1" ; then
47954 COND_GCC_PCH_1=""
47955 fi
47956
f10e38c4
VZ
47957 COND_ICC_PCH_1="#"
47958 if test "x$ICC_PCH" = "x1" ; then
47959 COND_ICC_PCH_1=""
47960 fi
47961
a848cd7e
SC
47962 COND_MONOLITHIC_0="#"
47963 if test "x$MONOLITHIC" = "x0" ; then
47964 COND_MONOLITHIC_0=""
47965 fi
47966
47967 COND_MONOLITHIC_0_SHARED_0="#"
47968 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
47969 COND_MONOLITHIC_0_SHARED_0=""
47970 fi
47971
3f60522a
JS
47972 COND_MONOLITHIC_0_SHARED_0_USE_AUI_1="#"
47973 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_AUI" = "x1" ; then
47974 COND_MONOLITHIC_0_SHARED_0_USE_AUI_1=""
47975 fi
47976
a848cd7e
SC
47977 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
47978 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
47979 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
47980 fi
47981
90970d69
DE
47982 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
47983 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
47984 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
47985 fi
47986
f10e38c4
VZ
47987 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1="#"
47988 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
47989 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1=""
47990 fi
47991
a848cd7e
SC
47992 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
47993 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
47994 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
47995 fi
47996
6671c68b
VZ
47997 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#"
47998 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
47999 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1=""
48000 fi
48001
a848cd7e
SC
48002 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
48003 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
48004 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
48005 fi
48006
8b6682b9
JS
48007 COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1="#"
48008 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_RICHTEXT" = "x1" ; then
48009 COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1=""
48010 fi
48011
ceec2216
RL
48012 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
48013 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
48014 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
48015 fi
48016
a848cd7e
SC
48017 COND_MONOLITHIC_0_SHARED_1="#"
48018 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
48019 COND_MONOLITHIC_0_SHARED_1=""
48020 fi
48021
3f60522a
JS
48022 COND_MONOLITHIC_0_SHARED_1_USE_AUI_1="#"
48023 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_AUI" = "x1" ; then
48024 COND_MONOLITHIC_0_SHARED_1_USE_AUI_1=""
48025 fi
48026
a848cd7e
SC
48027 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
48028 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
48029 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
48030 fi
48031
90970d69
DE
48032 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
48033 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
48034 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
48035 fi
48036
f10e38c4
VZ
48037 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1="#"
48038 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
48039 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1=""
48040 fi
48041
a848cd7e
SC
48042 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
48043 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
48044 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
48045 fi
48046
6671c68b
VZ
48047 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#"
48048 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
48049 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1=""
48050 fi
48051
a848cd7e
SC
48052 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
48053 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
48054 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
48055 fi
48056
8b6682b9
JS
48057 COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1="#"
48058 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_RICHTEXT" = "x1" ; then
48059 COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1=""
48060 fi
48061
ceec2216
RL
48062 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
48063 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
48064 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
48065 fi
48066
e5efa97e
VZ
48067 COND_MONOLITHIC_0_USE_MEDIA_1="#"
48068 if test "x$MONOLITHIC" = "x0" -a "x$USE_MEDIA" = "x1" ; then
48069 COND_MONOLITHIC_0_USE_MEDIA_1=""
48070 fi
48071
a848cd7e
SC
48072 COND_MONOLITHIC_0_USE_ODBC_1="#"
48073 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
48074 COND_MONOLITHIC_0_USE_ODBC_1=""
48075 fi
48076
48077 COND_MONOLITHIC_1="#"
48078 if test "x$MONOLITHIC" = "x1" ; then
48079 COND_MONOLITHIC_1=""
48080 fi
48081
48082 COND_MONOLITHIC_1_SHARED_0="#"
48083 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
48084 COND_MONOLITHIC_1_SHARED_0=""
48085 fi
48086
48087 COND_MONOLITHIC_1_SHARED_1="#"
48088 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
48089 COND_MONOLITHIC_1_SHARED_1=""
48090 fi
48091
48092 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
48093 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
48094 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
48095 fi
48096
48097 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
48098 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
48099 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
48100 fi
48101
eb730a0c
JS
48102 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="#"
48103 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERCYGWIN" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
48104 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1=""
48105 fi
48106
a848cd7e
SC
48107 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
48108 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
48109 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
48110 fi
48111
48112 COND_PLATFORM_MACOSX_1="#"
48113 if test "x$PLATFORM_MACOSX" = "x1" ; then
48114 COND_PLATFORM_MACOSX_1=""
48115 fi
48116
a30f955f
VS
48117 COND_PLATFORM_MACOSX_1_TOOLKIT_="#"
48118 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then
48119 COND_PLATFORM_MACOSX_1_TOOLKIT_=""
48120 fi
48121
a848cd7e
SC
48122 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
48123 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
48124 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
48125 fi
48126
48127 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
48128 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
48129 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
48130 fi
48131
48132 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
48133 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
48134 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
48135 fi
48136
fc480dc1
DE
48137 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#"
48138 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
48139 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1=""
48140 fi
48141
1e9e8aba
DE
48142 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
48143 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48144 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
48145 fi
48146
ebee3cd0
VS
48147 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
48148 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
48149 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
48150 fi
48151
48152 COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
48153 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
48154 COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
48155 fi
48156
a848cd7e
SC
48157 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
48158 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
48159 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
48160 fi
48161
48162 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
48163 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
48164 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
48165 fi
48166
b48a2016
DE
48167 COND_PLATFORM_MACOS_1="#"
48168 if test "x$PLATFORM_MACOS" = "x1" ; then
48169 COND_PLATFORM_MACOS_1=""
48170 fi
48171
083508af
MW
48172 COND_PLATFORM_MAC_1="#"
48173 if test "x$PLATFORM_MAC" = "x1" ; then
48174 COND_PLATFORM_MAC_1=""
48175 fi
48176
e5efa97e
VZ
48177 COND_PLATFORM_MSDOS_0="#"
48178 if test "x$PLATFORM_MSDOS" = "x0" ; then
48179 COND_PLATFORM_MSDOS_0=""
48180 fi
48181
83d8eb47
MW
48182 COND_PLATFORM_MSDOS_1="#"
48183 if test "x$PLATFORM_MSDOS" = "x1" ; then
48184 COND_PLATFORM_MSDOS_1=""
48185 fi
48186
a848cd7e
SC
48187 COND_PLATFORM_OS2_1="#"
48188 if test "x$PLATFORM_OS2" = "x1" ; then
48189 COND_PLATFORM_OS2_1=""
48190 fi
48191
48192 COND_PLATFORM_UNIX_0="#"
48193 if test "x$PLATFORM_UNIX" = "x0" ; then
48194 COND_PLATFORM_UNIX_0=""
48195 fi
48196
48197 COND_PLATFORM_UNIX_1="#"
48198 if test "x$PLATFORM_UNIX" = "x1" ; then
48199 COND_PLATFORM_UNIX_1=""
48200 fi
48201
48202 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
48203 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
48204 COND_PLATFORM_UNIX_1_USE_GUI_1=""
48205 fi
48206
48207 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
48208 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
48209 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
48210 fi
48211
48212 COND_PLATFORM_WIN32_0="#"
48213 if test "x$PLATFORM_WIN32" = "x0" ; then
48214 COND_PLATFORM_WIN32_0=""
48215 fi
48216
48217 COND_PLATFORM_WIN32_1="#"
48218 if test "x$PLATFORM_WIN32" = "x1" ; then
48219 COND_PLATFORM_WIN32_1=""
48220 fi
48221
48222 COND_SHARED_0="#"
48223 if test "x$SHARED" = "x0" ; then
48224 COND_SHARED_0=""
48225 fi
48226
083508af
MW
48227 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
48228 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
48229 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
48230 fi
48231
48232 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
48233 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
48234 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
48235 fi
48236
48237 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
48238 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
48239 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
48240 fi
48241
a848cd7e
SC
48242 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
48243 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
48244 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
48245 fi
48246
48247 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
48248 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
48249 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
48250 fi
48251
48252 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
48253 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
48254 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
48255 fi
48256
48257 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
48258 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
48259 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
48260 fi
48261
083508af
MW
48262 COND_SHARED_0_USE_XRC_1="#"
48263 if test "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
48264 COND_SHARED_0_USE_XRC_1=""
48265 fi
48266
a848cd7e
SC
48267 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
48268 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
48269 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
48270 fi
48271
48272 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
48273 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
48274 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
48275 fi
48276
48277 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
48278 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
48279 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
48280 fi
48281
48282 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
48283 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
48284 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
48285 fi
48286
48287 COND_SHARED_1="#"
48288 if test "x$SHARED" = "x1" ; then
48289 COND_SHARED_1=""
48290 fi
48291
48292 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
48293 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
48294 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
48295 fi
48296
083508af
MW
48297 COND_SHARED_1_USE_XRC_1="#"
48298 if test "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
48299 COND_SHARED_1_USE_XRC_1=""
48300 fi
48301
a30f955f
VS
48302 COND_TOOLKIT_="#"
48303 if test "x$TOOLKIT" = "x" ; then
48304 COND_TOOLKIT_=""
48305 fi
48306
a848cd7e
SC
48307 COND_TOOLKIT_COCOA="#"
48308 if test "x$TOOLKIT" = "xCOCOA" ; then
48309 COND_TOOLKIT_COCOA=""
48310 fi
48311
a49baeab
DE
48312 COND_TOOLKIT_COCOA_USE_GUI_1="#"
48313 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
48314 COND_TOOLKIT_COCOA_USE_GUI_1=""
48315 fi
48316
a848cd7e
SC
48317 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
48318 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48319 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
48320 fi
48321
48322 COND_TOOLKIT_GTK="#"
48323 if test "x$TOOLKIT" = "xGTK" ; then
48324 COND_TOOLKIT_GTK=""
48325 fi
48326
d044deea
MW
48327 COND_TOOLKIT_GTK_TOOLKIT_VERSION_="#"
48328 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" ; then
48329 COND_TOOLKIT_GTK_TOOLKIT_VERSION_=""
48330 fi
48331
48332 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2="#"
48333 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" ; then
48334 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2=""
48335 fi
48336
48337 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1="#"
48338 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" ; then
48339 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1=""
48340 fi
48341
48342 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0="#"
48343 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48344 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0=""
48345 fi
48346
48347 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1="#"
48348 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" ; then
48349 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1=""
48350 fi
48351
48352 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0="#"
48353 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48354 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0=""
48355 fi
48356
a848cd7e
SC
48357 COND_TOOLKIT_GTK_USE_GUI_1="#"
48358 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
48359 COND_TOOLKIT_GTK_USE_GUI_1=""
48360 fi
48361
a848cd7e
SC
48362 COND_TOOLKIT_MAC="#"
48363 if test "x$TOOLKIT" = "xMAC" ; then
48364 COND_TOOLKIT_MAC=""
48365 fi
48366
48367 COND_TOOLKIT_MAC_USE_GUI_1="#"
48368 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
48369 COND_TOOLKIT_MAC_USE_GUI_1=""
48370 fi
48371
48372 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
48373 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48374 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
48375 fi
48376
48377 COND_TOOLKIT_MGL="#"
48378 if test "x$TOOLKIT" = "xMGL" ; then
48379 COND_TOOLKIT_MGL=""
48380 fi
48381
48382 COND_TOOLKIT_MGL_USE_GUI_1="#"
48383 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
48384 COND_TOOLKIT_MGL_USE_GUI_1=""
48385 fi
48386
48387 COND_TOOLKIT_MOTIF="#"
48388 if test "x$TOOLKIT" = "xMOTIF" ; then
48389 COND_TOOLKIT_MOTIF=""
48390 fi
48391
48392 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
48393 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
48394 COND_TOOLKIT_MOTIF_USE_GUI_1=""
48395 fi
48396
48397 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
48398 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48399 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
48400 fi
48401
48402 COND_TOOLKIT_MSW="#"
48403 if test "x$TOOLKIT" = "xMSW" ; then
48404 COND_TOOLKIT_MSW=""
48405 fi
48406
48407 COND_TOOLKIT_MSW_USE_GUI_1="#"
48408 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
48409 COND_TOOLKIT_MSW_USE_GUI_1=""
48410 fi
48411
48412 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
48413 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48414 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
48415 fi
48416
0ee4059d
DE
48417 COND_TOOLKIT_MSW_WXUNIV_0="#"
48418 if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
48419 COND_TOOLKIT_MSW_WXUNIV_0=""
48420 fi
48421
a848cd7e
SC
48422 COND_TOOLKIT_PM="#"
48423 if test "x$TOOLKIT" = "xPM" ; then
48424 COND_TOOLKIT_PM=""
48425 fi
48426
48427 COND_TOOLKIT_PM_USE_GUI_1="#"
48428 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
48429 COND_TOOLKIT_PM_USE_GUI_1=""
48430 fi
48431
48432 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
48433 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48434 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
48435 fi
48436
3fd9c298
DE
48437 COND_TOOLKIT_WINCE="#"
48438 if test "x$TOOLKIT" = "xWINCE" ; then
48439 COND_TOOLKIT_WINCE=""
48440 fi
48441
48442 COND_TOOLKIT_WINCE_USE_GUI_1="#"
48443 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
48444 COND_TOOLKIT_WINCE_USE_GUI_1=""
48445 fi
48446
48447 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
48448 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48449 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
48450 fi
48451
0ee4059d
DE
48452 COND_TOOLKIT_WINCE_WXUNIV_0="#"
48453 if test "x$TOOLKIT" = "xWINCE" -a "x$WXUNIV" = "x0" ; then
48454 COND_TOOLKIT_WINCE_WXUNIV_0=""
48455 fi
48456
a848cd7e
SC
48457 COND_TOOLKIT_X11="#"
48458 if test "x$TOOLKIT" = "xX11" ; then
48459 COND_TOOLKIT_X11=""
48460 fi
48461
48462 COND_TOOLKIT_X11_USE_GUI_1="#"
48463 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
48464 COND_TOOLKIT_X11_USE_GUI_1=""
48465 fi
48466
48467 COND_UNICODE_1="#"
48468 if test "x$UNICODE" = "x1" ; then
48469 COND_UNICODE_1=""
48470 fi
48471
48472 COND_USE_EXCEPTIONS_0="#"
48473 if test "x$USE_EXCEPTIONS" = "x0" ; then
48474 COND_USE_EXCEPTIONS_0=""
48475 fi
48476
48477 COND_USE_EXCEPTIONS_1="#"
48478 if test "x$USE_EXCEPTIONS" = "x1" ; then
48479 COND_USE_EXCEPTIONS_1=""
48480 fi
48481
48482 COND_USE_GUI_0="#"
48483 if test "x$USE_GUI" = "x0" ; then
48484 COND_USE_GUI_0=""
48485 fi
48486
48487 COND_USE_GUI_1="#"
48488 if test "x$USE_GUI" = "x1" ; then
48489 COND_USE_GUI_1=""
48490 fi
48491
48492 COND_USE_GUI_1_WXUNIV_0="#"
48493 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48494 COND_USE_GUI_1_WXUNIV_0=""
48495 fi
48496
48497 COND_USE_GUI_1_WXUNIV_1="#"
48498 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
48499 COND_USE_GUI_1_WXUNIV_1=""
48500 fi
48501
48502 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
48503 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
48504 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
48505 fi
48506
48507 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
48508 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
48509 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
48510 fi
48511
48512 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
48513 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
48514 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
48515 fi
48516
083508af
MW
48517 COND_USE_ODBC_1="#"
48518 if test "x$USE_ODBC" = "x1" ; then
48519 COND_USE_ODBC_1=""
48520 fi
48521
48522 COND_USE_OPENGL_1="#"
48523 if test "x$USE_OPENGL" = "x1" ; then
48524 COND_USE_OPENGL_1=""
48525 fi
48526
f10e38c4
VZ
48527 COND_USE_PCH_1="#"
48528 if test "x$USE_PCH" = "x1" ; then
48529 COND_USE_PCH_1=""
48530 fi
48531
a848cd7e
SC
48532 COND_USE_PLUGINS_0="#"
48533 if test "x$USE_PLUGINS" = "x0" ; then
48534 COND_USE_PLUGINS_0=""
48535 fi
48536
0b78747f
MW
48537 COND_USE_RTTI_0="#"
48538 if test "x$USE_RTTI" = "x0" ; then
48539 COND_USE_RTTI_0=""
48540 fi
48541
48542 COND_USE_RTTI_1="#"
48543 if test "x$USE_RTTI" = "x1" ; then
48544 COND_USE_RTTI_1=""
48545 fi
48546
a848cd7e
SC
48547 COND_USE_SOSYMLINKS_1="#"
48548 if test "x$USE_SOSYMLINKS" = "x1" ; then
48549 COND_USE_SOSYMLINKS_1=""
48550 fi
48551
eb730a0c
JS
48552 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="#"
48553 if test "x$USE_SOVERCYGWIN" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
48554 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1=""
48555 fi
48556
a848cd7e
SC
48557 COND_USE_SOVERLINUX_1="#"
48558 if test "x$USE_SOVERLINUX" = "x1" ; then
48559 COND_USE_SOVERLINUX_1=""
48560 fi
48561
48562 COND_USE_SOVERSION_0="#"
48563 if test "x$USE_SOVERSION" = "x0" ; then
48564 COND_USE_SOVERSION_0=""
48565 fi
48566
48567 COND_USE_SOVERSOLARIS_1="#"
48568 if test "x$USE_SOVERSOLARIS" = "x1" ; then
48569 COND_USE_SOVERSOLARIS_1=""
48570 fi
48571
0b78747f
MW
48572 COND_USE_THREADS_0="#"
48573 if test "x$USE_THREADS" = "x0" ; then
48574 COND_USE_THREADS_0=""
48575 fi
48576
48577 COND_USE_THREADS_1="#"
48578 if test "x$USE_THREADS" = "x1" ; then
48579 COND_USE_THREADS_1=""
48580 fi
48581
a13a7f89
RL
48582 COND_USE_XRC_1="#"
48583 if test "x$USE_XRC" = "x1" ; then
48584 COND_USE_XRC_1=""
48585 fi
48586
eb730a0c
JS
48587 COND_WINDOWS_IMPLIB_1="#"
48588 if test "x$WINDOWS_IMPLIB" = "x1" ; then
48589 COND_WINDOWS_IMPLIB_1=""
48590 fi
48591
a848cd7e
SC
48592 COND_WITH_PLUGIN_SDL_1="#"
48593 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
48594 COND_WITH_PLUGIN_SDL_1=""
48595 fi
48596
1e6eb025
VZ
48597 COND_WXUNIV_0="#"
48598 if test "x$WXUNIV" = "x0" ; then
48599 COND_WXUNIV_0=""
48600 fi
48601
a848cd7e
SC
48602 COND_WXUNIV_1="#"
48603 if test "x$WXUNIV" = "x1" ; then
48604 COND_WXUNIV_1=""
48605 fi
48606
48607 COND_WXUSE_EXPAT_BUILTIN="#"
48608 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
48609 COND_WXUSE_EXPAT_BUILTIN=""
48610 fi
48611
48612 COND_WXUSE_LIBJPEG_BUILTIN="#"
48613 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
48614 COND_WXUSE_LIBJPEG_BUILTIN=""
48615 fi
48616
48617 COND_WXUSE_LIBPNG_BUILTIN="#"
48618 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
48619 COND_WXUSE_LIBPNG_BUILTIN=""
48620 fi
48621
48622 COND_WXUSE_LIBTIFF_BUILTIN="#"
48623 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
48624 COND_WXUSE_LIBTIFF_BUILTIN=""
48625 fi
48626
48627 COND_WXUSE_ODBC_BUILTIN="#"
48628 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
48629 COND_WXUSE_ODBC_BUILTIN=""
48630 fi
48631
48632 COND_WXUSE_REGEX_BUILTIN="#"
48633 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
48634 COND_WXUSE_REGEX_BUILTIN=""
48635 fi
48636
48637 COND_WXUSE_ZLIB_BUILTIN="#"
48638 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
48639 COND_WXUSE_ZLIB_BUILTIN=""
48640 fi
48641
48642
48643
810b94f0
MW
48644 if test "$BAKEFILE_AUTOCONF_INC_M4_VERSION" = "" ; then
48645 { { 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
48646echo "$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;}
48647 { (exit 1); exit 1; }; }
48648 fi
48649
2057db16
VS
48650 if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
48651 { { 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
48652echo "$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;}
48653 { (exit 1); exit 1; }; }
48654 fi
48655
a848cd7e 48656
7afc46ab
KO
48657
48658if test "$wxUSE_MAC" = 1 ; then
95768535 48659 if test "x$wxUSE_UNIVERSAL_BINARY" != "xno" ; then
7afc46ab
KO
48660 sed "s/DEPSMODE=gcc/DEPSMODE=none/" < bk-deps > temp
48661 mv temp bk-deps
48662 chmod +x bk-deps
48663 fi
48664fi
48665
ceec2216
RL
48666if test "$wxUSE_SHARED" = "yes"; then
48667
48668 sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'`
48669 EXE_LINKER=`eval echo "$sanitised_bakefile_mess"`
48670
5b674b9d
DE
48671 case "${host}" in
48672 *-pc-os2_emx | *-pc-os2-emx )
48673 SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
48674 SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
48675 cp -p ${srcdir}/src/os2/dllnames.sh .
48676 cp -p ${srcdir}/src/os2/dllar.sh .
48677 ;;
48678 esac
ceec2216
RL
48679else
48680
48681 EXE_LINKER="$CXX -o"
48682
48683fi
69120ee4
VZ
48684if test "$wxUSE_OMF" = "yes"; then
48685 case "${host}" in
48686 *-pc-os2_emx | *-pc-os2-emx )
48687 LDFLAGS="$LDFLAGS -Zlinker /EXEPACK"
48688 LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
48689 WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
48690 ;;
48691 esac
48692fi
a848cd7e 48693
c08ebc62 48694if test $GCC_PCH = 1 ; then
254e8e29 48695 CPPFLAGS="-DWX_PRECOMP $CPPFLAGS"
ddd14b14 48696fi
a848cd7e 48697
5ff751d6 48698WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS $TOOLCHAIN_DEFS"
a848cd7e
SC
48699
48700SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
48701
48702
48703
48704
48705
48706
48707
48708
48709
48710
48711
48712
48713
48714
48715
48716
48717
48718
48719
48720
48721
48722
48723
48724
48725
48726
48727
48728
48729
48730
48731
48732
48733
48734
48735
48736
48737
48738
48739
48740
48741
48742
a848cd7e
SC
48743
48744
48745
48746
48747
48748
48749
48750
48751
48752
48753
48754
a848cd7e
SC
48755
48756
ddd14b14 48757
370d2fd7 48758
8ced02f6 48759
a848cd7e
SC
48760
48761
48762echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
48763echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 48764set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
48765if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
48766 echo $ECHO_N "(cached) $ECHO_C" >&6
48767else
48768 cat >conftest.make <<\_ACEOF
48769all:
48770 @echo 'ac_maketemp="$(MAKE)"'
48771_ACEOF
48772# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
48773eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
48774if test -n "$ac_maketemp"; then
48775 eval ac_cv_prog_make_${ac_make}_set=yes
48776else
48777 eval ac_cv_prog_make_${ac_make}_set=no
48778fi
48779rm -f conftest.make
48780fi
48781if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
48782 echo "$as_me:$LINENO: result: yes" >&5
48783echo "${ECHO_T}yes" >&6
48784 SET_MAKE=
48785else
48786 echo "$as_me:$LINENO: result: no" >&5
48787echo "${ECHO_T}no" >&6
48788 SET_MAKE="MAKE=${MAKE-make}"
48789fi
48790
48791
a848cd7e 48792
ceec2216
RL
48793 ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
48794
a848cd7e 48795
5c60e845
MW
48796if test "$USE_WIN32" = 1; then
48797 ac_config_commands="$ac_config_commands
48798 rcdefs.h
48799 "
48800
48801fi
48802
ceec2216 48803 ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
a848cd7e 48804
a848cd7e 48805
ceec2216 48806 ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
a848cd7e 48807
ceec2216
RL
48808
48809 ac_config_files="$ac_config_files version-script Makefile"
48810
48811
5c60e845 48812 ac_config_commands="$ac_config_commands wx-config"
a848cd7e
SC
48813
48814
9103d280 48815
1c14217d 48816if test "$wxWITH_SUBDIRS" != "no"; then
a848cd7e
SC
48817if test "$wxUSE_GUI" = "yes"; then
48818 SUBDIRS="samples demos utils contrib"
48819else SUBDIRS="samples utils"
48820fi
48821
48822
48823
48824# Check whether --with-cppunit-prefix or --without-cppunit-prefix was given.
48825if test "${with_cppunit_prefix+set}" = set; then
48826 withval="$with_cppunit_prefix"
48827 cppunit_config_prefix="$withval"
48828else
48829 cppunit_config_prefix=""
48830fi;
48831
48832# Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given.
48833if test "${with_cppunit_exec_prefix+set}" = set; then
48834 withval="$with_cppunit_exec_prefix"
48835 cppunit_config_exec_prefix="$withval"
48836else
48837 cppunit_config_exec_prefix=""
48838fi;
48839
48840 if test x$cppunit_config_exec_prefix != x ; then
48841 cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
48842 if test x${CPPUNIT_CONFIG+set} != xset ; then
48843 CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
48844 fi
48845 fi
48846 if test x$cppunit_config_prefix != x ; then
48847 cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
48848 if test x${CPPUNIT_CONFIG+set} != xset ; then
48849 CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
48850 fi
48851 fi
48852
48853 # Extract the first word of "cppunit-config", so it can be a program name with args.
48854set dummy cppunit-config; ac_word=$2
48855echo "$as_me:$LINENO: checking for $ac_word" >&5
48856echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
48857if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
48858 echo $ECHO_N "(cached) $ECHO_C" >&6
48859else
48860 case $CPPUNIT_CONFIG in
48861 [\\/]* | ?:[\\/]*)
48862 ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
48863 ;;
48864 *)
48865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48866for as_dir in $PATH
48867do
48868 IFS=$as_save_IFS
48869 test -z "$as_dir" && as_dir=.
48870 for ac_exec_ext in '' $ac_executable_extensions; do
48871 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48872 ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
48873 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48874 break 2
48875 fi
48876done
48877done
48878
48879 test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
48880 ;;
48881esac
48882fi
48883CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
48884
48885if test -n "$CPPUNIT_CONFIG"; then
48886 echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
48887echo "${ECHO_T}$CPPUNIT_CONFIG" >&6
48888else
48889 echo "$as_me:$LINENO: result: no" >&5
48890echo "${ECHO_T}no" >&6
48891fi
48892
48893 cppunit_version_min=1.8.0
48894
48895 echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
48896echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6
48897 no_cppunit=""
48898 if test "$CPPUNIT_CONFIG" = "no" ; then
3ecd9f92
MW
48899 echo "$as_me:$LINENO: result: no" >&5
48900echo "${ECHO_T}no" >&6
a848cd7e
SC
48901 no_cppunit=yes
48902 else
48903 CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
48904 CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
48905 cppunit_version=`$CPPUNIT_CONFIG --version`
48906
48907 cppunit_major_version=`echo $cppunit_version | \
48908 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
48909 cppunit_minor_version=`echo $cppunit_version | \
48910 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
48911 cppunit_micro_version=`echo $cppunit_version | \
48912 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
48913
48914 cppunit_major_min=`echo $cppunit_version_min | \
48915 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
48916 cppunit_minor_min=`echo $cppunit_version_min | \
48917 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
48918 cppunit_micro_min=`echo $cppunit_version_min | \
48919 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
48920
48921 cppunit_version_proper=`expr \
48922 $cppunit_major_version \> $cppunit_major_min \| \
48923 $cppunit_major_version \= $cppunit_major_min \& \
48924 $cppunit_minor_version \> $cppunit_minor_min \| \
48925 $cppunit_major_version \= $cppunit_major_min \& \
48926 $cppunit_minor_version \= $cppunit_minor_min \& \
48927 $cppunit_micro_version \>= $cppunit_micro_min `
48928
48929 if test "$cppunit_version_proper" = "1" ; then
48930 echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
48931echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6
48932 else
48933 echo "$as_me:$LINENO: result: no" >&5
48934echo "${ECHO_T}no" >&6
48935 no_cppunit=yes
48936 fi
48937 fi
48938
48939 if test "x$no_cppunit" = x ; then
c2218763 48940 SUBDIRS="$SUBDIRS tests"
a848cd7e
SC
48941 else
48942 CPPUNIT_CFLAGS=""
48943 CPPUNIT_LIBS=""
c2218763 48944 :
a848cd7e
SC
48945 fi
48946
48947
48948
48949
48950
48951for subdir in `echo $SUBDIRS`; do
48952 if test -d ${srcdir}/${subdir} ; then
48953 if test "$wxUSE_GUI" = "yes"; then
48954 if test ${subdir} = "samples"; then
48955 makefiles="samples/Makefile.in $makefiles"
48956 for sample in `echo $SAMPLES_SUBDIRS`; do
48957 if test -d $srcdir/samples/$sample; then
48958 makefiles="samples/$sample/Makefile.in $makefiles"
48959 fi
48960 done
9c112555
MW
48961 else
48962 disabled_var=DISABLED_`echo $subdir | tr [a-z] [A-Z]`;
48963 eval "disabled=\$$disabled_var"
48964 disabled=/`echo X $disabled | sed 's@ @/|/@g'`/
48965 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in) | egrep -v "$disabled"`
a848cd7e
SC
48966 fi
48967 else if test ${subdir} = "samples"; then
48968 makefiles="samples/Makefile.in samples/console/Makefile.in"
48969 elif test ${subdir} = "utils"; then
6537ccf8
VS
48970 makefiles=""
48971 for util in HelpGen tex2rtf ; do
48972 if test -d $srcdir/utils/$util ; then
48973 makefiles="utils/$util/Makefile.in \
48974 utils/$util/src/Makefile.in \
48975 $makefiles"
48976 fi
48977 done
a848cd7e
SC
48978 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
48979 fi
48980 fi
48981
48982 for mkin in $makefiles ; do
48983 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
48984 ac_config_files="$ac_config_files $mk"
48985
48986 done
48987 fi
48988done
1c14217d 48989fi
a848cd7e
SC
48990cat >confcache <<\_ACEOF
48991# This file is a shell script that caches the results of configure
48992# tests run on this system so they can be shared between configure
48993# scripts and configure runs, see configure's option --config-cache.
48994# It is not useful on other systems. If it contains results you don't
48995# want to keep, you may remove or edit it.
48996#
48997# config.status only pays attention to the cache file if you give it
48998# the --recheck option to rerun configure.
48999#
49000# `ac_cv_env_foo' variables (set or unset) will be overridden when
49001# loading this file, other *unset* `ac_cv_foo' will be assigned the
49002# following values.
49003
49004_ACEOF
49005
49006# The following way of writing the cache mishandles newlines in values,
49007# but we know of no workaround that is simple, portable, and efficient.
49008# So, don't put newlines in cache variables' values.
49009# Ultrix sh set writes to stderr and can't be redirected directly,
49010# and sets the high bit in the cache file unless we assign to the vars.
49011{
49012 (set) 2>&1 |
49013 case `(ac_space=' '; set | grep ac_space) 2>&1` in
49014 *ac_space=\ *)
49015 # `set' does not quote correctly, so add quotes (double-quote
49016 # substitution turns \\\\ into \\, and sed turns \\ into \).
49017 sed -n \
ac1cb8d3
VS
49018 "s/'/'\\\\''/g;
49019 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
49020 ;;
49021 *)
49022 # `set' quotes correctly as required by POSIX, so do not add quotes.
49023 sed -n \
ac1cb8d3 49024 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
49025 ;;
49026 esac;
49027} |
49028 sed '
49029 t clear
49030 : clear
49031 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
49032 t end
49033 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
49034 : end' >>confcache
49035if diff $cache_file confcache >/dev/null 2>&1; then :; else
49036 if test -w $cache_file; then
49037 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
49038 cat confcache >$cache_file
49039 else
49040 echo "not updating unwritable cache $cache_file"
49041 fi
49042fi
49043rm -f confcache
49044
49045test "x$prefix" = xNONE && prefix=$ac_default_prefix
49046# Let make expand exec_prefix.
49047test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
49048
49049# VPATH may cause trouble with some makes, so we remove $(srcdir),
49050# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
49051# trailing colons and then remove the whole line if VPATH becomes empty
49052# (actually we leave an empty line to preserve line numbers).
49053if test "x$srcdir" = x.; then
ac1cb8d3 49054 ac_vpsub='/^[ ]*VPATH[ ]*=/{
a848cd7e
SC
49055s/:*\$(srcdir):*/:/;
49056s/:*\${srcdir}:*/:/;
49057s/:*@srcdir@:*/:/;
ac1cb8d3 49058s/^\([^=]*=[ ]*\):*/\1/;
a848cd7e 49059s/:*$//;
ac1cb8d3 49060s/^[^=]*=[ ]*$//;
a848cd7e
SC
49061}'
49062fi
49063
49064DEFS=-DHAVE_CONFIG_H
49065
49066ac_libobjs=
49067ac_ltlibobjs=
49068for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
49069 # 1. Remove the extension, and $U if already installed.
49070 ac_i=`echo "$ac_i" |
ac1cb8d3 49071 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
a848cd7e
SC
49072 # 2. Add them.
49073 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
49074 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
49075done
49076LIBOBJS=$ac_libobjs
49077
49078LTLIBOBJS=$ac_ltlibobjs
49079
49080
49081
49082: ${CONFIG_STATUS=./config.status}
49083ac_clean_files_save=$ac_clean_files
49084ac_clean_files="$ac_clean_files $CONFIG_STATUS"
49085{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
49086echo "$as_me: creating $CONFIG_STATUS" >&6;}
49087cat >$CONFIG_STATUS <<_ACEOF
49088#! $SHELL
49089# Generated by $as_me.
49090# Run this file to recreate the current configuration.
49091# Compiler output produced by configure, useful for debugging
49092# configure, is in config.log if it exists.
49093
49094debug=false
49095ac_cs_recheck=false
49096ac_cs_silent=false
49097SHELL=\${CONFIG_SHELL-$SHELL}
49098_ACEOF
49099
49100cat >>$CONFIG_STATUS <<\_ACEOF
49101## --------------------- ##
49102## M4sh Initialization. ##
49103## --------------------- ##
49104
49105# Be Bourne compatible
49106if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
49107 emulate sh
49108 NULLCMD=:
49109 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
49110 # is contrary to our usage. Disable this feature.
49111 alias -g '${1+"$@"}'='"$@"'
49112elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
49113 set -o posix
49114fi
ac1cb8d3 49115DUALCASE=1; export DUALCASE # for MKS sh
a848cd7e
SC
49116
49117# Support unset when possible.
ac1cb8d3 49118if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a848cd7e
SC
49119 as_unset=unset
49120else
49121 as_unset=false
49122fi
49123
49124
49125# Work around bugs in pre-3.0 UWIN ksh.
49126$as_unset ENV MAIL MAILPATH
49127PS1='$ '
49128PS2='> '
49129PS4='+ '
49130
49131# NLS nuisances.
49132for as_var in \
49133 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49134 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
49135 LC_TELEPHONE LC_TIME
49136do
ac1cb8d3 49137 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
49138 eval $as_var=C; export $as_var
49139 else
49140 $as_unset $as_var
49141 fi
49142done
49143
49144# Required to use basename.
49145if expr a : '\(a\)' >/dev/null 2>&1; then
49146 as_expr=expr
49147else
49148 as_expr=false
49149fi
49150
49151if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
49152 as_basename=basename
49153else
49154 as_basename=false
49155fi
49156
49157
49158# Name of the executable.
49159as_me=`$as_basename "$0" ||
49160$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
49161 X"$0" : 'X\(//\)$' \| \
49162 X"$0" : 'X\(/\)$' \| \
49163 . : '\(.\)' 2>/dev/null ||
49164echo X/"$0" |
49165 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
49166 /^X\/\(\/\/\)$/{ s//\1/; q; }
49167 /^X\/\(\/\).*/{ s//\1/; q; }
49168 s/.*/./; q'`
49169
49170
49171# PATH needs CR, and LINENO needs CR and PATH.
49172# Avoid depending upon Character Ranges.
49173as_cr_letters='abcdefghijklmnopqrstuvwxyz'
49174as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
49175as_cr_Letters=$as_cr_letters$as_cr_LETTERS
49176as_cr_digits='0123456789'
49177as_cr_alnum=$as_cr_Letters$as_cr_digits
49178
49179# The user is always right.
49180if test "${PATH_SEPARATOR+set}" != set; then
49181 echo "#! /bin/sh" >conf$$.sh
49182 echo "exit 0" >>conf$$.sh
49183 chmod +x conf$$.sh
49184 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
49185 PATH_SEPARATOR=';'
49186 else
49187 PATH_SEPARATOR=:
49188 fi
49189 rm -f conf$$.sh
49190fi
49191
49192
49193 as_lineno_1=$LINENO
49194 as_lineno_2=$LINENO
49195 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
49196 test "x$as_lineno_1" != "x$as_lineno_2" &&
49197 test "x$as_lineno_3" = "x$as_lineno_2" || {
49198 # Find who we are. Look in the path if we contain no path at all
49199 # relative or not.
49200 case $0 in
49201 *[\\/]* ) as_myself=$0 ;;
49202 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49203for as_dir in $PATH
49204do
49205 IFS=$as_save_IFS
49206 test -z "$as_dir" && as_dir=.
49207 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
49208done
49209
49210 ;;
49211 esac
49212 # We did not find ourselves, most probably we were run as `sh COMMAND'
49213 # in which case we are not to be found in the path.
49214 if test "x$as_myself" = x; then
49215 as_myself=$0
49216 fi
49217 if test ! -f "$as_myself"; then
49218 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
49219echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
49220 { (exit 1); exit 1; }; }
49221 fi
49222 case $CONFIG_SHELL in
49223 '')
49224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49225for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
49226do
49227 IFS=$as_save_IFS
49228 test -z "$as_dir" && as_dir=.
49229 for as_base in sh bash ksh sh5; do
49230 case $as_dir in
49231 /*)
49232 if ("$as_dir/$as_base" -c '
49233 as_lineno_1=$LINENO
49234 as_lineno_2=$LINENO
49235 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
49236 test "x$as_lineno_1" != "x$as_lineno_2" &&
49237 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
49238 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
49239 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
49240 CONFIG_SHELL=$as_dir/$as_base
49241 export CONFIG_SHELL
49242 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
49243 fi;;
49244 esac
49245 done
49246done
49247;;
49248 esac
49249
49250 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
49251 # uniformly replaced by the line number. The first 'sed' inserts a
49252 # line-number line before each line; the second 'sed' does the real
49253 # work. The second script uses 'N' to pair each line-number line
49254 # with the numbered line, and appends trailing '-' during
49255 # substitution so that $LINENO is not a special case at line end.
49256 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
49257 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
49258 sed '=' <$as_myself |
49259 sed '
49260 N
49261 s,$,-,
49262 : loop
49263 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
49264 t loop
49265 s,-$,,
49266 s,^['$as_cr_digits']*\n,,
49267 ' >$as_me.lineno &&
49268 chmod +x $as_me.lineno ||
49269 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
49270echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
49271 { (exit 1); exit 1; }; }
49272
49273 # Don't try to exec as it changes $[0], causing all sort of problems
49274 # (the dirname of $[0] is not the place where we might find the
49275 # original and so on. Autoconf is especially sensible to this).
49276 . ./$as_me.lineno
49277 # Exit status is that of the last command.
49278 exit
49279}
49280
49281
49282case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
49283 *c*,-n*) ECHO_N= ECHO_C='
49284' ECHO_T=' ' ;;
49285 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
49286 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
49287esac
49288
49289if expr a : '\(a\)' >/dev/null 2>&1; then
49290 as_expr=expr
49291else
49292 as_expr=false
49293fi
49294
49295rm -f conf$$ conf$$.exe conf$$.file
49296echo >conf$$.file
49297if ln -s conf$$.file conf$$ 2>/dev/null; then
49298 # We could just check for DJGPP; but this test a) works b) is more generic
49299 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
49300 if test -f conf$$.exe; then
49301 # Don't use ln at all; we don't have any links
49302 as_ln_s='cp -p'
49303 else
49304 as_ln_s='ln -s'
49305 fi
49306elif ln conf$$.file conf$$ 2>/dev/null; then
49307 as_ln_s=ln
49308else
49309 as_ln_s='cp -p'
49310fi
49311rm -f conf$$ conf$$.exe conf$$.file
49312
49313if mkdir -p . 2>/dev/null; then
49314 as_mkdir_p=:
49315else
ac1cb8d3 49316 test -d ./-p && rmdir ./-p
a848cd7e
SC
49317 as_mkdir_p=false
49318fi
49319
49320as_executable_p="test -f"
49321
49322# Sed expression to map a string onto a valid CPP name.
ac1cb8d3 49323as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
49324
49325# Sed expression to map a string onto a valid variable name.
ac1cb8d3 49326as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
49327
49328
49329# IFS
49330# We need space, tab and new line, in precisely that order.
49331as_nl='
49332'
49333IFS=" $as_nl"
49334
49335# CDPATH.
49336$as_unset CDPATH
49337
49338exec 6>&1
49339
49340# Open the log real soon, to keep \$[0] and so on meaningful, and to
49341# report actual input values of CONFIG_FILES etc. instead of their
49342# values after options handling. Logging --version etc. is OK.
49343exec 5>>config.log
49344{
49345 echo
49346 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
49347## Running $as_me. ##
49348_ASBOX
49349} >&5
49350cat >&5 <<_CSEOF
49351
dd8df4fc 49352This file was extended by wxWidgets $as_me 2.7.0, which was
ac1cb8d3 49353generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
49354
49355 CONFIG_FILES = $CONFIG_FILES
49356 CONFIG_HEADERS = $CONFIG_HEADERS
49357 CONFIG_LINKS = $CONFIG_LINKS
49358 CONFIG_COMMANDS = $CONFIG_COMMANDS
49359 $ $0 $@
49360
49361_CSEOF
49362echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
49363echo >&5
49364_ACEOF
49365
49366# Files that config.status was made for.
49367if test -n "$ac_config_files"; then
49368 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
49369fi
49370
49371if test -n "$ac_config_headers"; then
49372 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
49373fi
49374
49375if test -n "$ac_config_links"; then
49376 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
49377fi
49378
49379if test -n "$ac_config_commands"; then
49380 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
49381fi
49382
49383cat >>$CONFIG_STATUS <<\_ACEOF
49384
49385ac_cs_usage="\
49386\`$as_me' instantiates files from templates according to the
49387current configuration.
49388
49389Usage: $0 [OPTIONS] [FILE]...
49390
49391 -h, --help print this help, then exit
49392 -V, --version print version number, then exit
49393 -q, --quiet do not print progress messages
49394 -d, --debug don't remove temporary files
49395 --recheck update $as_me by reconfiguring in the same conditions
49396 --file=FILE[:TEMPLATE]
ac1cb8d3 49397 instantiate the configuration file FILE
a848cd7e 49398 --header=FILE[:TEMPLATE]
ac1cb8d3 49399 instantiate the configuration header FILE
a848cd7e
SC
49400
49401Configuration files:
49402$config_files
49403
49404Configuration headers:
49405$config_headers
49406
49407Configuration commands:
49408$config_commands
49409
49410Report bugs to <bug-autoconf@gnu.org>."
49411_ACEOF
49412
49413cat >>$CONFIG_STATUS <<_ACEOF
49414ac_cs_version="\\
dd8df4fc 49415wxWidgets config.status 2.7.0
ac1cb8d3 49416configured by $0, generated by GNU Autoconf 2.59,
a848cd7e
SC
49417 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
49418
ac1cb8d3 49419Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
49420This config.status script is free software; the Free Software Foundation
49421gives unlimited permission to copy, distribute and modify it."
49422srcdir=$srcdir
49423INSTALL="$INSTALL"
49424_ACEOF
49425
49426cat >>$CONFIG_STATUS <<\_ACEOF
49427# If no file are specified by the user, then we need to provide default
49428# value. By we need to know if files were specified by the user.
49429ac_need_defaults=:
49430while test $# != 0
49431do
49432 case $1 in
49433 --*=*)
49434 ac_option=`expr "x$1" : 'x\([^=]*\)='`
49435 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
49436 ac_shift=:
49437 ;;
49438 -*)
49439 ac_option=$1
49440 ac_optarg=$2
49441 ac_shift=shift
49442 ;;
49443 *) # This is not an option, so the user has probably given explicit
49444 # arguments.
49445 ac_option=$1
49446 ac_need_defaults=false;;
49447 esac
49448
49449 case $ac_option in
49450 # Handling of the options.
49451_ACEOF
49452cat >>$CONFIG_STATUS <<\_ACEOF
49453 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
49454 ac_cs_recheck=: ;;
49455 --version | --vers* | -V )
49456 echo "$ac_cs_version"; exit 0 ;;
49457 --he | --h)
49458 # Conflict between --help and --header
49459 { { echo "$as_me:$LINENO: error: ambiguous option: $1
49460Try \`$0 --help' for more information." >&5
49461echo "$as_me: error: ambiguous option: $1
49462Try \`$0 --help' for more information." >&2;}
49463 { (exit 1); exit 1; }; };;
49464 --help | --hel | -h )
49465 echo "$ac_cs_usage"; exit 0 ;;
49466 --debug | --d* | -d )
49467 debug=: ;;
49468 --file | --fil | --fi | --f )
49469 $ac_shift
49470 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
49471 ac_need_defaults=false;;
49472 --header | --heade | --head | --hea )
49473 $ac_shift
49474 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
49475 ac_need_defaults=false;;
49476 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
49477 | -silent | --silent | --silen | --sile | --sil | --si | --s)
49478 ac_cs_silent=: ;;
49479
49480 # This is an error.
49481 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
49482Try \`$0 --help' for more information." >&5
49483echo "$as_me: error: unrecognized option: $1
49484Try \`$0 --help' for more information." >&2;}
49485 { (exit 1); exit 1; }; } ;;
49486
49487 *) ac_config_targets="$ac_config_targets $1" ;;
49488
49489 esac
49490 shift
49491done
49492
49493ac_configure_extra_args=
49494
49495if $ac_cs_silent; then
49496 exec 6>/dev/null
49497 ac_configure_extra_args="$ac_configure_extra_args --silent"
49498fi
49499
49500_ACEOF
49501cat >>$CONFIG_STATUS <<_ACEOF
49502if \$ac_cs_recheck; then
49503 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
49504 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
49505fi
49506
49507_ACEOF
49508
49509cat >>$CONFIG_STATUS <<_ACEOF
49510#
49511# INIT-COMMANDS section.
49512#
49513
5c60e845
MW
49514
49515 CPP="$CPP"
49516 infile="$srcdir/include/wx/msw/genrcdefs.h"
49517 outdir="lib/wx/include/$TOOLCHAIN_FULLNAME/wx/msw"
49518
49519
ceec2216
RL
49520 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
49521 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
49522 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
49523 LN_S="${LN_S}"
a848cd7e
SC
49524
49525
49526_ACEOF
49527
49528
49529
49530cat >>$CONFIG_STATUS <<\_ACEOF
49531for ac_config_target in $ac_config_targets
49532do
49533 case "$ac_config_target" in
49534 # Handling of arguments.
ceec2216
RL
49535 "lib/wx/config/${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
49536 "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
a848cd7e
SC
49537 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
49538 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
49539 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
5c60e845 49540 "rcdefs.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS rcdefs.h" ;;
ceec2216
RL
49541 "wx-config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
49542 "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
49543 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
49544echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
49545 { (exit 1); exit 1; }; };;
49546 esac
49547done
49548
49549# If the user did not use the arguments to specify the items to instantiate,
49550# then the envvar interface is used. Set only those that are not.
49551# We use the long form for the default assignment because of an extremely
49552# bizarre bug on SunOS 4.1.3.
49553if $ac_need_defaults; then
49554 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
49555 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
49556 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
49557fi
49558
49559# Have a temporary directory for convenience. Make it in the build tree
49560# simply because there is no reason to put it here, and in addition,
49561# creating and moving files from /tmp can sometimes cause problems.
49562# Create a temporary directory, and hook for its removal unless debugging.
49563$debug ||
49564{
49565 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
49566 trap '{ (exit 1); exit 1; }' 1 2 13 15
49567}
49568
49569# Create a (secure) tmp directory for tmp files.
49570
49571{
49572 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
49573 test -n "$tmp" && test -d "$tmp"
49574} ||
49575{
49576 tmp=./confstat$$-$RANDOM
49577 (umask 077 && mkdir $tmp)
49578} ||
49579{
49580 echo "$me: cannot create a temporary directory in ." >&2
49581 { (exit 1); exit 1; }
49582}
49583
49584_ACEOF
49585
49586cat >>$CONFIG_STATUS <<_ACEOF
49587
49588#
49589# CONFIG_FILES section.
49590#
49591
49592# No need to generate the scripts if there are no CONFIG_FILES.
49593# This happens for instance when ./config.status config.h
49594if test -n "\$CONFIG_FILES"; then
49595 # Protect against being on the right side of a sed subst in config.status.
49596 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
49597 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
49598s,@SHELL@,$SHELL,;t t
49599s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
49600s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
49601s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
49602s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
49603s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
49604s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
49605s,@exec_prefix@,$exec_prefix,;t t
49606s,@prefix@,$prefix,;t t
49607s,@program_transform_name@,$program_transform_name,;t t
49608s,@bindir@,$bindir,;t t
49609s,@sbindir@,$sbindir,;t t
49610s,@libexecdir@,$libexecdir,;t t
49611s,@datadir@,$datadir,;t t
49612s,@sysconfdir@,$sysconfdir,;t t
49613s,@sharedstatedir@,$sharedstatedir,;t t
49614s,@localstatedir@,$localstatedir,;t t
49615s,@libdir@,$libdir,;t t
49616s,@includedir@,$includedir,;t t
49617s,@oldincludedir@,$oldincludedir,;t t
49618s,@infodir@,$infodir,;t t
49619s,@mandir@,$mandir,;t t
49620s,@build_alias@,$build_alias,;t t
49621s,@host_alias@,$host_alias,;t t
49622s,@target_alias@,$target_alias,;t t
49623s,@DEFS@,$DEFS,;t t
49624s,@ECHO_C@,$ECHO_C,;t t
49625s,@ECHO_N@,$ECHO_N,;t t
49626s,@ECHO_T@,$ECHO_T,;t t
49627s,@LIBS@,$LIBS,;t t
49628s,@build@,$build,;t t
49629s,@build_cpu@,$build_cpu,;t t
49630s,@build_vendor@,$build_vendor,;t t
49631s,@build_os@,$build_os,;t t
49632s,@host@,$host,;t t
49633s,@host_cpu@,$host_cpu,;t t
49634s,@host_vendor@,$host_vendor,;t t
49635s,@host_os@,$host_os,;t t
49636s,@target@,$target,;t t
49637s,@target_cpu@,$target_cpu,;t t
49638s,@target_vendor@,$target_vendor,;t t
49639s,@target_os@,$target_os,;t t
49640s,@CC@,$CC,;t t
49641s,@CFLAGS@,$CFLAGS,;t t
49642s,@LDFLAGS@,$LDFLAGS,;t t
49643s,@CPPFLAGS@,$CPPFLAGS,;t t
49644s,@ac_ct_CC@,$ac_ct_CC,;t t
49645s,@EXEEXT@,$EXEEXT,;t t
49646s,@OBJEXT@,$OBJEXT,;t t
49647s,@CPP@,$CPP,;t t
49648s,@EGREP@,$EGREP,;t t
49649s,@CXX@,$CXX,;t t
49650s,@CXXFLAGS@,$CXXFLAGS,;t t
49651s,@ac_ct_CXX@,$ac_ct_CXX,;t t
49652s,@RANLIB@,$RANLIB,;t t
49653s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
49654s,@AR@,$AR,;t t
8c80d384 49655s,@ac_ct_AR@,$ac_ct_AR,;t t
a848cd7e
SC
49656s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
49657s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
49658s,@INSTALL_DATA@,$INSTALL_DATA,;t t
49659s,@STRIP@,$STRIP,;t t
8c80d384 49660s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
8ced02f6
DE
49661s,@WINDRES@,$WINDRES,;t t
49662s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
8c80d384
DE
49663s,@DLLTOOL@,$DLLTOOL,;t t
49664s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
a848cd7e
SC
49665s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
49666s,@LN_S@,$LN_S,;t t
49667s,@CXXCPP@,$CXXCPP,;t t
49668s,@subdirs@,$subdirs,;t t
49669s,@PKG_CONFIG@,$PKG_CONFIG,;t t
49670s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
49671s,@GTK_LIBS@,$GTK_LIBS,;t t
49672s,@GTK_CONFIG@,$GTK_CONFIG,;t t
a848cd7e
SC
49673s,@X_CFLAGS@,$X_CFLAGS,;t t
49674s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
49675s,@X_LIBS@,$X_LIBS,;t t
49676s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
3ecd9f92 49677s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
a848cd7e
SC
49678s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
49679s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
d1c38808
VZ
49680s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
49681s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
a848cd7e
SC
49682s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
49683s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
8ced02f6 49684s,@REZ@,$REZ,;t t
a848cd7e
SC
49685s,@DEREZ@,$DEREZ,;t t
49686s,@SETFILE@,$SETFILE,;t t
49687s,@LIBICONV@,$LIBICONV,;t t
49688s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
49689s,@SDL_CONFIG@,$SDL_CONFIG,;t t
49690s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
49691s,@SDL_LIBS@,$SDL_LIBS,;t t
d1c38808
VZ
49692s,@LIBGNOMEPRINTUI_CFLAGS@,$LIBGNOMEPRINTUI_CFLAGS,;t t
49693s,@LIBGNOMEPRINTUI_LIBS@,$LIBGNOMEPRINTUI_LIBS,;t t
2b850ae1
RR
49694s,@GNOMEVFS_CFLAGS@,$GNOMEVFS_CFLAGS,;t t
49695s,@GNOMEVFS_LIBS@,$GNOMEVFS_LIBS,;t t
3565d135
RR
49696s,@HILDON_CFLAGS@,$HILDON_CFLAGS,;t t
49697s,@HILDON_LIBS@,$HILDON_LIBS,;t t
f10e38c4
VZ
49698s,@GST_CFLAGS@,$GST_CFLAGS,;t t
49699s,@GST_LIBS@,$GST_LIBS,;t t
a848cd7e
SC
49700s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
49701s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
49702s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
49703s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
49704s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
49705s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
49706s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
49707s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
49708s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
49709s,@VENDOR@,$VENDOR,;t t
49710s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
ceec2216
RL
49711s,@WX_FLAVOUR@,$WX_FLAVOUR,;t t
49712s,@WX_LIB_FLAVOUR@,$WX_LIB_FLAVOUR,;t t
a848cd7e
SC
49713s,@WXUNIV@,$WXUNIV,;t t
49714s,@MONOLITHIC@,$MONOLITHIC,;t t
49715s,@USE_PLUGINS@,$USE_PLUGINS,;t t
49716s,@EXTRALIBS@,$EXTRALIBS,;t t
49717s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
49718s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
49719s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
49720s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
49721s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
49722s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t
49723s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t
d1c38808 49724s,@EXTRALIBS_GNOMEPRINT@,$EXTRALIBS_GNOMEPRINT,;t t
2b850ae1 49725s,@EXTRALIBS_GNOMEVFS@,$EXTRALIBS_GNOMEVFS,;t t
3565d135 49726s,@EXTRALIBS_HILDON@,$EXTRALIBS_HILDON,;t t
a848cd7e
SC
49727s,@UNICODE@,$UNICODE,;t t
49728s,@BUILD@,$BUILD,;t t
49729s,@DEBUG_INFO@,$DEBUG_INFO,;t t
49730s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
a848cd7e
SC
49731s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
49732s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
49733s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
49734s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
49735s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
49736s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t
49737s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t
49738s,@SET_MAKE@,$SET_MAKE,;t t
49739s,@MAKE_SET@,$MAKE_SET,;t t
a848cd7e
SC
49740s,@NM@,$NM,;t t
49741s,@ac_ct_NM@,$ac_ct_NM,;t t
49742s,@INSTALL_DIR@,$INSTALL_DIR,;t t
49743s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
49744s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
49745s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
49746s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
49747s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
1e9e8aba 49748s,@PLATFORM_MACOS@,$PLATFORM_MACOS,;t t
a848cd7e
SC
49749s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
49750s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
1e9e8aba 49751s,@PLATFORM_BEOS@,$PLATFORM_BEOS,;t t
a848cd7e
SC
49752s,@SO_SUFFIX@,$SO_SUFFIX,;t t
49753s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
49754s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t
49755s,@LIBPREFIX@,$LIBPREFIX,;t t
49756s,@LIBEXT@,$LIBEXT,;t t
49757s,@DLLPREFIX@,$DLLPREFIX,;t t
49758s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
810b94f0 49759s,@dlldir@,$dlldir,;t t
a848cd7e
SC
49760s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
49761s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
49762s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
49763s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
49764s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
49765s,@PIC_FLAG@,$PIC_FLAG,;t t
810b94f0 49766s,@WINDOWS_IMPLIB@,$WINDOWS_IMPLIB,;t t
a848cd7e
SC
49767s,@USE_SOVERSION@,$USE_SOVERSION,;t t
49768s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
49769s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
810b94f0 49770s,@USE_SOVERCYGWIN@,$USE_SOVERCYGWIN,;t t
a848cd7e
SC
49771s,@USE_MACVERSION@,$USE_MACVERSION,;t t
49772s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
49773s,@SONAME_FLAG@,$SONAME_FLAG,;t t
49774s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
49775s,@GCC_PCH@,$GCC_PCH,;t t
f10e38c4 49776s,@ICC_PCH@,$ICC_PCH,;t t
a848cd7e
SC
49777s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
49778s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
49779s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
49780s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t
49781s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t
49782s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
49783s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
49784s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t
49785s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t
49786s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
49787s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
49788s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
49789s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
49790s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
49791s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
f10e38c4 49792s,@COND_ICC_PCH_1@,$COND_ICC_PCH_1,;t t
a848cd7e
SC
49793s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
49794s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
3f60522a 49795s,@COND_MONOLITHIC_0_SHARED_0_USE_AUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_AUI_1,;t t
a848cd7e 49796s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
90970d69 49797s,@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 49798s,@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 49799s,@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 49800s,@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 49801s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
8b6682b9 49802s,@COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1@,$COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1,;t t
ceec2216 49803s,@COND_MONOLITHIC_0_SHARED_0_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1,;t t
a848cd7e 49804s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
3f60522a 49805s,@COND_MONOLITHIC_0_SHARED_1_USE_AUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_AUI_1,;t t
a848cd7e 49806s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
90970d69 49807s,@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 49808s,@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 49809s,@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 49810s,@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 49811s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
8b6682b9 49812s,@COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1@,$COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1,;t t
ceec2216 49813s,@COND_MONOLITHIC_0_SHARED_1_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1,;t t
e5efa97e 49814s,@COND_MONOLITHIC_0_USE_MEDIA_1@,$COND_MONOLITHIC_0_USE_MEDIA_1,;t t
a848cd7e
SC
49815s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t
49816s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
49817s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
49818s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
49819s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
49820s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
eb730a0c 49821s,@COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1,;t t
a848cd7e
SC
49822s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
49823s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
a30f955f 49824s,@COND_PLATFORM_MACOSX_1_TOOLKIT_@,$COND_PLATFORM_MACOSX_1_TOOLKIT_,;t t
a848cd7e
SC
49825s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
49826s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
49827s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
fc480dc1 49828s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1,;t t
1e9e8aba 49829s,@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
49830s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t
49831s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t
a848cd7e
SC
49832s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
49833s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
b48a2016 49834s,@COND_PLATFORM_MACOS_1@,$COND_PLATFORM_MACOS_1,;t t
083508af 49835s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
e5efa97e 49836s,@COND_PLATFORM_MSDOS_0@,$COND_PLATFORM_MSDOS_0,;t t
83d8eb47 49837s,@COND_PLATFORM_MSDOS_1@,$COND_PLATFORM_MSDOS_1,;t t
a848cd7e
SC
49838s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
49839s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
49840s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
49841s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
49842s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t
49843s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
49844s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
49845s,@COND_SHARED_0@,$COND_SHARED_0,;t t
083508af
MW
49846s,@COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0,;t t
49847s,@COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0,;t t
49848s,@COND_SHARED_0_TOOLKIT_PM_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0,;t t
a848cd7e
SC
49849s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
49850s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
49851s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
49852s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
083508af 49853s,@COND_SHARED_0_USE_XRC_1@,$COND_SHARED_0_USE_XRC_1,;t t
a848cd7e
SC
49854s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
49855s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
49856s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
49857s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
49858s,@COND_SHARED_1@,$COND_SHARED_1,;t t
49859s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
083508af 49860s,@COND_SHARED_1_USE_XRC_1@,$COND_SHARED_1_USE_XRC_1,;t t
a30f955f 49861s,@COND_TOOLKIT_@,$COND_TOOLKIT_,;t t
a848cd7e 49862s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
a49baeab 49863s,@COND_TOOLKIT_COCOA_USE_GUI_1@,$COND_TOOLKIT_COCOA_USE_GUI_1,;t t
a848cd7e
SC
49864s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
49865s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
d044deea
MW
49866s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_,;t t
49867s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2,;t t
49868s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1,;t t
49869s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0,;t t
49870s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1,;t t
49871s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0,;t t
a848cd7e 49872s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
a848cd7e
SC
49873s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
49874s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
49875s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
49876s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
49877s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
49878s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
49879s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
49880s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
49881s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
49882s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
49883s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
0ee4059d 49884s,@COND_TOOLKIT_MSW_WXUNIV_0@,$COND_TOOLKIT_MSW_WXUNIV_0,;t t
a848cd7e
SC
49885s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
49886s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
49887s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
3fd9c298
DE
49888s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t
49889s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t
49890s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t
0ee4059d 49891s,@COND_TOOLKIT_WINCE_WXUNIV_0@,$COND_TOOLKIT_WINCE_WXUNIV_0,;t t
a848cd7e
SC
49892s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
49893s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
49894s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
49895s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
49896s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
49897s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
49898s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
49899s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
49900s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
49901s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
49902s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
49903s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
083508af
MW
49904s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
49905s,@COND_USE_OPENGL_1@,$COND_USE_OPENGL_1,;t t
f10e38c4 49906s,@COND_USE_PCH_1@,$COND_USE_PCH_1,;t t
a848cd7e 49907s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t
0b78747f
MW
49908s,@COND_USE_RTTI_0@,$COND_USE_RTTI_0,;t t
49909s,@COND_USE_RTTI_1@,$COND_USE_RTTI_1,;t t
a848cd7e 49910s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
eb730a0c 49911s,@COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1@,$COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1,;t t
a848cd7e
SC
49912s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
49913s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
49914s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
0b78747f
MW
49915s,@COND_USE_THREADS_0@,$COND_USE_THREADS_0,;t t
49916s,@COND_USE_THREADS_1@,$COND_USE_THREADS_1,;t t
a13a7f89 49917s,@COND_USE_XRC_1@,$COND_USE_XRC_1,;t t
eb730a0c 49918s,@COND_WINDOWS_IMPLIB_1@,$COND_WINDOWS_IMPLIB_1,;t t
a848cd7e 49919s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t
1e6eb025 49920s,@COND_WXUNIV_0@,$COND_WXUNIV_0,;t t
a848cd7e
SC
49921s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
49922s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
49923s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
49924s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
49925s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
49926s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
49927s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
49928s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
ceec2216 49929s,@SHARED@,$SHARED,;t t
a848cd7e
SC
49930s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
49931s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
a848cd7e
SC
49932s,@USE_GUI@,$USE_GUI,;t t
49933s,@AFMINSTALL@,$AFMINSTALL,;t t
49934s,@WIN32INSTALL@,$WIN32INSTALL,;t t
49935s,@TOOLKIT@,$TOOLKIT,;t t
49936s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
a848cd7e 49937s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
ceec2216 49938s,@TOOLCHAIN_FULLNAME@,$TOOLCHAIN_FULLNAME,;t t
a848cd7e 49939s,@cross_compiling@,$cross_compiling,;t t
ceec2216
RL
49940s,@WIDGET_SET@,$WIDGET_SET,;t t
49941s,@WX_RELEASE@,$WX_RELEASE,;t t
49942s,@WX_VERSION@,$WX_VERSION,;t t
49943s,@WX_SUBVERSION@,$WX_SUBVERSION,;t t
49944s,@WX_CHARTYPE@,$WX_CHARTYPE,;t t
49945s,@WX_DEBUGTYPE@,$WX_DEBUGTYPE,;t t
5ff751d6
VZ
49946s,@WXCONFIG_CPPFLAGS@,$WXCONFIG_CPPFLAGS,;t t
49947s,@WXCONFIG_CFLAGS@,$WXCONFIG_CFLAGS,;t t
49948s,@WXCONFIG_CXXFLAGS@,$WXCONFIG_CXXFLAGS,;t t
49949s,@WXCONFIG_LIBS@,$WXCONFIG_LIBS,;t t
a848cd7e
SC
49950s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
49951s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
004ee6da 49952s,@WXCONFIG_RESFLAGS@,$WXCONFIG_RESFLAGS,;t t
ceec2216 49953s,@EXE_LINKER@,$EXE_LINKER,;t t
a848cd7e 49954s,@GUIDIST@,$GUIDIST,;t t
a848cd7e
SC
49955s,@DISTDIR@,$DISTDIR,;t t
49956s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
49957s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
a848cd7e
SC
49958s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
49959s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
49960s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
004ee6da 49961s,@RESCOMP@,$RESCOMP,;t t
a848cd7e
SC
49962s,@RESFLAGS@,$RESFLAGS,;t t
49963s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
49964s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
49965s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
49966s,@LIBWXMACRES@,$LIBWXMACRES,;t t
8ced02f6 49967s,@POSTLINK_COMMAND@,$POSTLINK_COMMAND,;t t
a848cd7e 49968s,@MACSETFILE@,$MACSETFILE,;t t
a848cd7e 49969s,@GCC@,$GCC,;t t
a848cd7e
SC
49970s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t
49971s,@LIBOBJS@,$LIBOBJS,;t t
49972s,@LTLIBOBJS@,$LTLIBOBJS,;t t
49973CEOF
49974
49975_ACEOF
49976
49977 cat >>$CONFIG_STATUS <<\_ACEOF
49978 # Split the substitutions into bite-sized pieces for seds with
49979 # small command number limits, like on Digital OSF/1 and HP-UX.
49980 ac_max_sed_lines=48
49981 ac_sed_frag=1 # Number of current file.
49982 ac_beg=1 # First line for current file.
49983 ac_end=$ac_max_sed_lines # Line after last line for current file.
49984 ac_more_lines=:
49985 ac_sed_cmds=
49986 while $ac_more_lines; do
49987 if test $ac_beg -gt 1; then
49988 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
49989 else
49990 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
49991 fi
49992 if test ! -s $tmp/subs.frag; then
49993 ac_more_lines=false
49994 else
49995 # The purpose of the label and of the branching condition is to
49996 # speed up the sed processing (if there are no `@' at all, there
49997 # is no need to browse any of the substitutions).
49998 # These are the two extra sed commands mentioned above.
49999 (echo ':t
50000 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
50001 if test -z "$ac_sed_cmds"; then
ac1cb8d3 50002 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e 50003 else
ac1cb8d3 50004 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e
SC
50005 fi
50006 ac_sed_frag=`expr $ac_sed_frag + 1`
50007 ac_beg=$ac_end
50008 ac_end=`expr $ac_end + $ac_max_sed_lines`
50009 fi
50010 done
50011 if test -z "$ac_sed_cmds"; then
50012 ac_sed_cmds=cat
50013 fi
50014fi # test -n "$CONFIG_FILES"
50015
50016_ACEOF
50017cat >>$CONFIG_STATUS <<\_ACEOF
50018for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
50019 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
50020 case $ac_file in
50021 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
50022 cat >$tmp/stdin
50023 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
50024 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 50025 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 50026 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
50027 * ) ac_file_in=$ac_file.in ;;
50028 esac
50029
50030 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
50031 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
50032$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
50033 X"$ac_file" : 'X\(//\)[^/]' \| \
50034 X"$ac_file" : 'X\(//\)$' \| \
50035 X"$ac_file" : 'X\(/\)' \| \
50036 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
50037echo X"$ac_file" |
50038 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50039 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50040 /^X\(\/\/\)$/{ s//\1/; q; }
50041 /^X\(\/\).*/{ s//\1/; q; }
50042 s/.*/./; q'`
50043 { if $as_mkdir_p; then
50044 mkdir -p "$ac_dir"
50045 else
50046 as_dir="$ac_dir"
50047 as_dirs=
50048 while test ! -d "$as_dir"; do
50049 as_dirs="$as_dir $as_dirs"
50050 as_dir=`(dirname "$as_dir") 2>/dev/null ||
50051$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
50052 X"$as_dir" : 'X\(//\)[^/]' \| \
50053 X"$as_dir" : 'X\(//\)$' \| \
50054 X"$as_dir" : 'X\(/\)' \| \
50055 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
50056echo X"$as_dir" |
50057 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50058 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50059 /^X\(\/\/\)$/{ s//\1/; q; }
50060 /^X\(\/\).*/{ s//\1/; q; }
50061 s/.*/./; q'`
50062 done
50063 test ! -n "$as_dirs" || mkdir $as_dirs
50064 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
50065echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
50066 { (exit 1); exit 1; }; }; }
50067
50068 ac_builddir=.
50069
50070if test "$ac_dir" != .; then
50071 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
50072 # A "../" for each directory in $ac_dir_suffix.
50073 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
50074else
50075 ac_dir_suffix= ac_top_builddir=
50076fi
50077
50078case $srcdir in
50079 .) # No --srcdir option. We are building in place.
50080 ac_srcdir=.
50081 if test -z "$ac_top_builddir"; then
50082 ac_top_srcdir=.
50083 else
50084 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
50085 fi ;;
50086 [\\/]* | ?:[\\/]* ) # Absolute path.
50087 ac_srcdir=$srcdir$ac_dir_suffix;
50088 ac_top_srcdir=$srcdir ;;
50089 *) # Relative path.
50090 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
50091 ac_top_srcdir=$ac_top_builddir$srcdir ;;
50092esac
ac1cb8d3
VS
50093
50094# Do not use `cd foo && pwd` to compute absolute paths, because
50095# the directories may not exist.
50096case `pwd` in
50097.) ac_abs_builddir="$ac_dir";;
50098*)
50099 case "$ac_dir" in
50100 .) ac_abs_builddir=`pwd`;;
50101 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
50102 *) ac_abs_builddir=`pwd`/"$ac_dir";;
50103 esac;;
50104esac
50105case $ac_abs_builddir in
50106.) ac_abs_top_builddir=${ac_top_builddir}.;;
50107*)
50108 case ${ac_top_builddir}. in
50109 .) ac_abs_top_builddir=$ac_abs_builddir;;
50110 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
50111 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
50112 esac;;
50113esac
50114case $ac_abs_builddir in
50115.) ac_abs_srcdir=$ac_srcdir;;
50116*)
50117 case $ac_srcdir in
50118 .) ac_abs_srcdir=$ac_abs_builddir;;
50119 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
50120 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
50121 esac;;
50122esac
50123case $ac_abs_builddir in
50124.) ac_abs_top_srcdir=$ac_top_srcdir;;
50125*)
50126 case $ac_top_srcdir in
50127 .) ac_abs_top_srcdir=$ac_abs_builddir;;
50128 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
50129 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
50130 esac;;
50131esac
a848cd7e
SC
50132
50133
50134 case $INSTALL in
50135 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
50136 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
50137 esac
50138
a848cd7e
SC
50139 # Let's still pretend it is `configure' which instantiates (i.e., don't
50140 # use $as_me), people would be surprised to read:
50141 # /* config.h. Generated by config.status. */
50142 if test x"$ac_file" = x-; then
50143 configure_input=
50144 else
50145 configure_input="$ac_file. "
50146 fi
50147 configure_input=$configure_input"Generated from `echo $ac_file_in |
ac1cb8d3 50148 sed 's,.*/,,'` by configure."
a848cd7e
SC
50149
50150 # First look for the input files in the build tree, otherwise in the
50151 # src tree.
50152 ac_file_inputs=`IFS=:
50153 for f in $ac_file_in; do
50154 case $f in
50155 -) echo $tmp/stdin ;;
50156 [\\/$]*)
ac1cb8d3
VS
50157 # Absolute (can't be DOS-style, as IFS=:)
50158 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
50159echo "$as_me: error: cannot find input file: $f" >&2;}
50160 { (exit 1); exit 1; }; }
ac1cb8d3 50161 echo "$f";;
a848cd7e 50162 *) # Relative
ac1cb8d3
VS
50163 if test -f "$f"; then
50164 # Build tree
50165 echo "$f"
50166 elif test -f "$srcdir/$f"; then
50167 # Source tree
50168 echo "$srcdir/$f"
50169 else
50170 # /dev/null tree
50171 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
50172echo "$as_me: error: cannot find input file: $f" >&2;}
50173 { (exit 1); exit 1; }; }
ac1cb8d3 50174 fi;;
a848cd7e
SC
50175 esac
50176 done` || { (exit 1); exit 1; }
c9a66001
VZ
50177
50178 if test x"$ac_file" != x-; then
50179 { echo "$as_me:$LINENO: creating $ac_file" >&5
50180echo "$as_me: creating $ac_file" >&6;}
50181 rm -f "$ac_file"
50182 fi
a848cd7e
SC
50183_ACEOF
50184cat >>$CONFIG_STATUS <<_ACEOF
50185 sed "$ac_vpsub
50186$extrasub
50187_ACEOF
50188cat >>$CONFIG_STATUS <<\_ACEOF
50189:t
50190/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
50191s,@configure_input@,$configure_input,;t t
50192s,@srcdir@,$ac_srcdir,;t t
50193s,@abs_srcdir@,$ac_abs_srcdir,;t t
50194s,@top_srcdir@,$ac_top_srcdir,;t t
50195s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
50196s,@builddir@,$ac_builddir,;t t
50197s,@abs_builddir@,$ac_abs_builddir,;t t
50198s,@top_builddir@,$ac_top_builddir,;t t
50199s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
50200s,@INSTALL@,$ac_INSTALL,;t t
50201" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
50202 rm -f $tmp/stdin
50203 if test x"$ac_file" != x-; then
50204 mv $tmp/out $ac_file
50205 else
50206 cat $tmp/out
50207 rm -f $tmp/out
50208 fi
50209
ceec2216
RL
50210 # Run the commands associated with the file.
50211 case $ac_file in
50212 lib/wx/config/${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME} ;;
50213 lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ;;
50214 esac
a848cd7e
SC
50215done
50216_ACEOF
50217cat >>$CONFIG_STATUS <<\_ACEOF
50218
50219#
50220# CONFIG_HEADER section.
50221#
50222
50223# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
50224# NAME is the cpp macro being defined and VALUE is the value it is being given.
50225#
50226# ac_d sets the value in "#define NAME VALUE" lines.
ac1cb8d3
VS
50227ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
50228ac_dB='[ ].*$,\1#\2'
a848cd7e
SC
50229ac_dC=' '
50230ac_dD=',;t'
50231# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ac1cb8d3 50232ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
a848cd7e
SC
50233ac_uB='$,\1#\2define\3'
50234ac_uC=' '
50235ac_uD=',;t'
50236
50237for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
50238 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
50239 case $ac_file in
50240 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
50241 cat >$tmp/stdin
50242 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
50243 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 50244 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 50245 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
50246 * ) ac_file_in=$ac_file.in ;;
50247 esac
50248
50249 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
50250echo "$as_me: creating $ac_file" >&6;}
50251
50252 # First look for the input files in the build tree, otherwise in the
50253 # src tree.
50254 ac_file_inputs=`IFS=:
50255 for f in $ac_file_in; do
50256 case $f in
50257 -) echo $tmp/stdin ;;
50258 [\\/$]*)
ac1cb8d3
VS
50259 # Absolute (can't be DOS-style, as IFS=:)
50260 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
50261echo "$as_me: error: cannot find input file: $f" >&2;}
50262 { (exit 1); exit 1; }; }
ac1cb8d3
VS
50263 # Do quote $f, to prevent DOS paths from being IFS'd.
50264 echo "$f";;
a848cd7e 50265 *) # Relative
ac1cb8d3
VS
50266 if test -f "$f"; then
50267 # Build tree
50268 echo "$f"
50269 elif test -f "$srcdir/$f"; then
50270 # Source tree
50271 echo "$srcdir/$f"
50272 else
50273 # /dev/null tree
50274 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
50275echo "$as_me: error: cannot find input file: $f" >&2;}
50276 { (exit 1); exit 1; }; }
ac1cb8d3 50277 fi;;
a848cd7e
SC
50278 esac
50279 done` || { (exit 1); exit 1; }
50280 # Remove the trailing spaces.
ac1cb8d3 50281 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
a848cd7e
SC
50282
50283_ACEOF
50284
50285# Transform confdefs.h into two sed scripts, `conftest.defines' and
50286# `conftest.undefs', that substitutes the proper values into
50287# config.h.in to produce config.h. The first handles `#define'
50288# templates, and the second `#undef' templates.
50289# And first: Protect against being on the right side of a sed subst in
50290# config.status. Protect against being in an unquoted here document
50291# in config.status.
50292rm -f conftest.defines conftest.undefs
50293# Using a here document instead of a string reduces the quoting nightmare.
50294# Putting comments in sed scripts is not portable.
50295#
50296# `end' is used to avoid that the second main sed command (meant for
50297# 0-ary CPP macros) applies to n-ary macro definitions.
50298# See the Autoconf documentation for `clear'.
50299cat >confdef2sed.sed <<\_ACEOF
50300s/[\\&,]/\\&/g
50301s,[\\$`],\\&,g
50302t clear
50303: clear
ac1cb8d3 50304s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
a848cd7e 50305t end
ac1cb8d3 50306s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
a848cd7e
SC
50307: end
50308_ACEOF
50309# If some macros were called several times there might be several times
50310# the same #defines, which is useless. Nevertheless, we may not want to
50311# sort them, since we want the *last* AC-DEFINE to be honored.
50312uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
50313sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
50314rm -f confdef2sed.sed
50315
50316# This sed command replaces #undef with comments. This is necessary, for
50317# example, in the case of _POSIX_SOURCE, which is predefined and required
50318# on some systems where configure will not decide to define it.
50319cat >>conftest.undefs <<\_ACEOF
ac1cb8d3 50320s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
a848cd7e
SC
50321_ACEOF
50322
50323# Break up conftest.defines because some shells have a limit on the size
50324# of here documents, and old seds have small limits too (100 cmds).
50325echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
ac1cb8d3 50326echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
a848cd7e
SC
50327echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
50328echo ' :' >>$CONFIG_STATUS
50329rm -f conftest.tail
50330while grep . conftest.defines >/dev/null
50331do
50332 # Write a limited-size here document to $tmp/defines.sed.
50333 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
50334 # Speed up: don't consider the non `#define' lines.
ac1cb8d3 50335 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
a848cd7e
SC
50336 # Work around the forget-to-reset-the-flag bug.
50337 echo 't clr' >>$CONFIG_STATUS
50338 echo ': clr' >>$CONFIG_STATUS
50339 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
50340 echo 'CEOF
50341 sed -f $tmp/defines.sed $tmp/in >$tmp/out
50342 rm -f $tmp/in
50343 mv $tmp/out $tmp/in
50344' >>$CONFIG_STATUS
50345 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
50346 rm -f conftest.defines
50347 mv conftest.tail conftest.defines
50348done
50349rm -f conftest.defines
50350echo ' fi # grep' >>$CONFIG_STATUS
50351echo >>$CONFIG_STATUS
50352
50353# Break up conftest.undefs because some shells have a limit on the size
50354# of here documents, and old seds have small limits too (100 cmds).
50355echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
50356rm -f conftest.tail
50357while grep . conftest.undefs >/dev/null
50358do
50359 # Write a limited-size here document to $tmp/undefs.sed.
50360 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
50361 # Speed up: don't consider the non `#undef'
ac1cb8d3 50362 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
a848cd7e
SC
50363 # Work around the forget-to-reset-the-flag bug.
50364 echo 't clr' >>$CONFIG_STATUS
50365 echo ': clr' >>$CONFIG_STATUS
50366 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
50367 echo 'CEOF
50368 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
50369 rm -f $tmp/in
50370 mv $tmp/out $tmp/in
50371' >>$CONFIG_STATUS
50372 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
50373 rm -f conftest.undefs
50374 mv conftest.tail conftest.undefs
50375done
50376rm -f conftest.undefs
50377
50378cat >>$CONFIG_STATUS <<\_ACEOF
50379 # Let's still pretend it is `configure' which instantiates (i.e., don't
50380 # use $as_me), people would be surprised to read:
50381 # /* config.h. Generated by config.status. */
50382 if test x"$ac_file" = x-; then
50383 echo "/* Generated by configure. */" >$tmp/config.h
50384 else
50385 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
50386 fi
50387 cat $tmp/in >>$tmp/config.h
50388 rm -f $tmp/in
50389 if test x"$ac_file" != x-; then
50390 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
50391 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
50392echo "$as_me: $ac_file is unchanged" >&6;}
50393 else
50394 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
50395$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
50396 X"$ac_file" : 'X\(//\)[^/]' \| \
50397 X"$ac_file" : 'X\(//\)$' \| \
50398 X"$ac_file" : 'X\(/\)' \| \
50399 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
50400echo X"$ac_file" |
50401 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50402 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50403 /^X\(\/\/\)$/{ s//\1/; q; }
50404 /^X\(\/\).*/{ s//\1/; q; }
50405 s/.*/./; q'`
50406 { if $as_mkdir_p; then
50407 mkdir -p "$ac_dir"
50408 else
50409 as_dir="$ac_dir"
50410 as_dirs=
50411 while test ! -d "$as_dir"; do
50412 as_dirs="$as_dir $as_dirs"
50413 as_dir=`(dirname "$as_dir") 2>/dev/null ||
50414$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
50415 X"$as_dir" : 'X\(//\)[^/]' \| \
50416 X"$as_dir" : 'X\(//\)$' \| \
50417 X"$as_dir" : 'X\(/\)' \| \
50418 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
50419echo X"$as_dir" |
50420 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50421 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50422 /^X\(\/\/\)$/{ s//\1/; q; }
50423 /^X\(\/\).*/{ s//\1/; q; }
50424 s/.*/./; q'`
50425 done
50426 test ! -n "$as_dirs" || mkdir $as_dirs
50427 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
50428echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
50429 { (exit 1); exit 1; }; }; }
50430
50431 rm -f $ac_file
50432 mv $tmp/config.h $ac_file
50433 fi
50434 else
50435 cat $tmp/config.h
50436 rm -f $tmp/config.h
50437 fi
50438done
50439_ACEOF
50440cat >>$CONFIG_STATUS <<\_ACEOF
50441
50442#
50443# CONFIG_COMMANDS section.
50444#
50445for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
50446 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
50447 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
50448 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
50449$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
50450 X"$ac_dest" : 'X\(//\)[^/]' \| \
50451 X"$ac_dest" : 'X\(//\)$' \| \
50452 X"$ac_dest" : 'X\(/\)' \| \
50453 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
50454echo X"$ac_dest" |
50455 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50456 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50457 /^X\(\/\/\)$/{ s//\1/; q; }
50458 /^X\(\/\).*/{ s//\1/; q; }
50459 s/.*/./; q'`
ac1cb8d3
VS
50460 { if $as_mkdir_p; then
50461 mkdir -p "$ac_dir"
50462 else
50463 as_dir="$ac_dir"
50464 as_dirs=
50465 while test ! -d "$as_dir"; do
50466 as_dirs="$as_dir $as_dirs"
50467 as_dir=`(dirname "$as_dir") 2>/dev/null ||
50468$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
50469 X"$as_dir" : 'X\(//\)[^/]' \| \
50470 X"$as_dir" : 'X\(//\)$' \| \
50471 X"$as_dir" : 'X\(/\)' \| \
50472 . : '\(.\)' 2>/dev/null ||
50473echo X"$as_dir" |
50474 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50475 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50476 /^X\(\/\/\)$/{ s//\1/; q; }
50477 /^X\(\/\).*/{ s//\1/; q; }
50478 s/.*/./; q'`
50479 done
50480 test ! -n "$as_dirs" || mkdir $as_dirs
50481 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
50482echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
50483 { (exit 1); exit 1; }; }; }
50484
a848cd7e
SC
50485 ac_builddir=.
50486
50487if test "$ac_dir" != .; then
50488 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
50489 # A "../" for each directory in $ac_dir_suffix.
50490 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
50491else
50492 ac_dir_suffix= ac_top_builddir=
50493fi
50494
50495case $srcdir in
50496 .) # No --srcdir option. We are building in place.
50497 ac_srcdir=.
50498 if test -z "$ac_top_builddir"; then
50499 ac_top_srcdir=.
50500 else
50501 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
50502 fi ;;
50503 [\\/]* | ?:[\\/]* ) # Absolute path.
50504 ac_srcdir=$srcdir$ac_dir_suffix;
50505 ac_top_srcdir=$srcdir ;;
50506 *) # Relative path.
50507 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
50508 ac_top_srcdir=$ac_top_builddir$srcdir ;;
50509esac
ac1cb8d3
VS
50510
50511# Do not use `cd foo && pwd` to compute absolute paths, because
50512# the directories may not exist.
50513case `pwd` in
50514.) ac_abs_builddir="$ac_dir";;
50515*)
50516 case "$ac_dir" in
50517 .) ac_abs_builddir=`pwd`;;
50518 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
50519 *) ac_abs_builddir=`pwd`/"$ac_dir";;
50520 esac;;
50521esac
50522case $ac_abs_builddir in
50523.) ac_abs_top_builddir=${ac_top_builddir}.;;
50524*)
50525 case ${ac_top_builddir}. in
50526 .) ac_abs_top_builddir=$ac_abs_builddir;;
50527 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
50528 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
50529 esac;;
50530esac
50531case $ac_abs_builddir in
50532.) ac_abs_srcdir=$ac_srcdir;;
50533*)
50534 case $ac_srcdir in
50535 .) ac_abs_srcdir=$ac_abs_builddir;;
50536 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
50537 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
50538 esac;;
50539esac
50540case $ac_abs_builddir in
50541.) ac_abs_top_srcdir=$ac_top_srcdir;;
50542*)
50543 case $ac_top_srcdir in
50544 .) ac_abs_top_srcdir=$ac_abs_builddir;;
50545 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
50546 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
50547 esac;;
50548esac
a848cd7e
SC
50549
50550
50551 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
50552echo "$as_me: executing $ac_dest commands" >&6;}
50553 case $ac_dest in
5c60e845
MW
50554 rcdefs.h )
50555 mkdir -p $outdir &&
50556 $CPP $infile | sed 's/^# *[1-9].*//;s/^ *//;/./,/^$/!d' > $outdir/rcdefs.h
50557 ;;
ceec2216
RL
50558 wx-config ) rm -f wx-config
50559 ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
50560 ;;
a848cd7e
SC
50561 esac
50562done
50563_ACEOF
50564
50565cat >>$CONFIG_STATUS <<\_ACEOF
50566
50567{ (exit 0); exit 0; }
50568_ACEOF
50569chmod +x $CONFIG_STATUS
50570ac_clean_files=$ac_clean_files_save
50571
50572
50573# configure is writing to config.log, and then calls config.status.
50574# config.status does its own redirection, appending to config.log.
50575# Unfortunately, on DOS this fails, as config.log is still kept open
50576# by configure, so config.status won't be able to write to it; its
50577# output is simply discarded. So we exec the FD to /dev/null,
50578# effectively closing config.log, so it can be properly (re)opened and
50579# appended to by config.status. When coming back to configure, we
50580# need to make the FD available again.
50581if test "$no_create" != yes; then
50582 ac_cs_success=:
50583 ac_config_status_args=
50584 test "$silent" = yes &&
50585 ac_config_status_args="$ac_config_status_args --quiet"
50586 exec 5>/dev/null
50587 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
50588 exec 5>>config.log
50589 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
50590 # would make configure fail if this is the last instruction.
50591 $ac_cs_success || { (exit 1); exit 1; }
50592fi
50593
50594#
50595# CONFIG_SUBDIRS section.
50596#
50597if test "$no_recursion" != yes; then
50598
50599 # Remove --cache-file and --srcdir arguments so they do not pile up.
50600 ac_sub_configure_args=
50601 ac_prev=
50602 for ac_arg in $ac_configure_args; do
50603 if test -n "$ac_prev"; then
50604 ac_prev=
50605 continue
50606 fi
50607 case $ac_arg in
50608 -cache-file | --cache-file | --cache-fil | --cache-fi \
50609 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
50610 ac_prev=cache_file ;;
50611 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
50612 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
50613 | --c=*)
50614 ;;
50615 --config-cache | -C)
50616 ;;
50617 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
50618 ac_prev=srcdir ;;
50619 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
50620 ;;
50621 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
50622 ac_prev=prefix ;;
50623 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
50624 ;;
50625 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
50626 esac
50627 done
50628
50629 # Always prepend --prefix to ensure using the same prefix
50630 # in subdir configurations.
50631 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
50632
50633 ac_popdir=`pwd`
50634 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
50635
50636 # Do not complain, so a configure script can configure whichever
50637 # parts of a large source tree are present.
50638 test -d $srcdir/$ac_dir || continue
50639
50640 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
50641echo "$as_me: configuring in $ac_dir" >&6;}
50642 { if $as_mkdir_p; then
50643 mkdir -p "$ac_dir"
50644 else
50645 as_dir="$ac_dir"
50646 as_dirs=
50647 while test ! -d "$as_dir"; do
50648 as_dirs="$as_dir $as_dirs"
50649 as_dir=`(dirname "$as_dir") 2>/dev/null ||
50650$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
50651 X"$as_dir" : 'X\(//\)[^/]' \| \
50652 X"$as_dir" : 'X\(//\)$' \| \
50653 X"$as_dir" : 'X\(/\)' \| \
50654 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
50655echo X"$as_dir" |
50656 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50657 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50658 /^X\(\/\/\)$/{ s//\1/; q; }
50659 /^X\(\/\).*/{ s//\1/; q; }
50660 s/.*/./; q'`
50661 done
50662 test ! -n "$as_dirs" || mkdir $as_dirs
50663 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
50664echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
50665 { (exit 1); exit 1; }; }; }
50666
50667 ac_builddir=.
50668
50669if test "$ac_dir" != .; then
50670 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
50671 # A "../" for each directory in $ac_dir_suffix.
50672 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
50673else
50674 ac_dir_suffix= ac_top_builddir=
50675fi
50676
50677case $srcdir in
50678 .) # No --srcdir option. We are building in place.
50679 ac_srcdir=.
50680 if test -z "$ac_top_builddir"; then
50681 ac_top_srcdir=.
50682 else
50683 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
50684 fi ;;
50685 [\\/]* | ?:[\\/]* ) # Absolute path.
50686 ac_srcdir=$srcdir$ac_dir_suffix;
50687 ac_top_srcdir=$srcdir ;;
50688 *) # Relative path.
50689 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
50690 ac_top_srcdir=$ac_top_builddir$srcdir ;;
50691esac
ac1cb8d3
VS
50692
50693# Do not use `cd foo && pwd` to compute absolute paths, because
50694# the directories may not exist.
50695case `pwd` in
50696.) ac_abs_builddir="$ac_dir";;
50697*)
50698 case "$ac_dir" in
50699 .) ac_abs_builddir=`pwd`;;
50700 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
50701 *) ac_abs_builddir=`pwd`/"$ac_dir";;
50702 esac;;
50703esac
50704case $ac_abs_builddir in
50705.) ac_abs_top_builddir=${ac_top_builddir}.;;
50706*)
50707 case ${ac_top_builddir}. in
50708 .) ac_abs_top_builddir=$ac_abs_builddir;;
50709 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
50710 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
50711 esac;;
50712esac
50713case $ac_abs_builddir in
50714.) ac_abs_srcdir=$ac_srcdir;;
50715*)
50716 case $ac_srcdir in
50717 .) ac_abs_srcdir=$ac_abs_builddir;;
50718 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
50719 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
50720 esac;;
50721esac
50722case $ac_abs_builddir in
50723.) ac_abs_top_srcdir=$ac_top_srcdir;;
50724*)
50725 case $ac_top_srcdir in
50726 .) ac_abs_top_srcdir=$ac_abs_builddir;;
50727 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
50728 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
50729 esac;;
50730esac
a848cd7e
SC
50731
50732
50733 cd $ac_dir
50734
50735 # Check for guested configure; otherwise get Cygnus style configure.
50736 if test -f $ac_srcdir/configure.gnu; then
50737 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
50738 elif test -f $ac_srcdir/configure; then
50739 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
50740 elif test -f $ac_srcdir/configure.in; then
50741 ac_sub_configure=$ac_configure
50742 else
50743 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
50744echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
50745 ac_sub_configure=
50746 fi
50747
50748 # The recursion is here.
50749 if test -n "$ac_sub_configure"; then
50750 # Make the cache file name correct relative to the subdirectory.
50751 case $cache_file in
50752 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
50753 *) # Relative path.
ac1cb8d3 50754 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
a848cd7e
SC
50755 esac
50756
50757 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
50758echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
50759 # The eval makes quoting arguments work.
50760 eval $ac_sub_configure $ac_sub_configure_args \
ac1cb8d3
VS
50761 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
50762 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
a848cd7e
SC
50763echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
50764 { (exit 1); exit 1; }; }
50765 fi
50766
c9a66001 50767 cd "$ac_popdir"
a848cd7e
SC
50768 done
50769fi
50770
50771
50772echo
77ffb593 50773echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
a848cd7e 50774echo ""
4d4ff94c 50775echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_USER:-base only}"
77ffb593 50776echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
a848cd7e 50777
77ffb593
JS
50778echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}"
50779echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}"
50780echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
a848cd7e 50781
77ffb593 50782echo " What level of wxWidgets compatibility should be enabled?"
dee1a63f
MB
50783echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-no}"
50784echo " wxWidgets 2.6 ${WXWIN_COMPATIBILITY_2_6:-yes}"
a848cd7e 50785
77ffb593 50786echo " Which libraries should wxWidgets use?"
a848cd7e
SC
50787echo " jpeg ${wxUSE_LIBJPEG-none}"
50788echo " png ${wxUSE_LIBPNG-none}"
50789echo " regex ${wxUSE_REGEX}"
50790echo " tiff ${wxUSE_LIBTIFF-none}"
50791if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
50792echo " xpm ${wxUSE_LIBXPM-none}"
50793fi
50794echo " zlib ${wxUSE_ZLIB}"
50795echo " odbc ${wxUSE_ODBC}"
50796echo " expat ${wxUSE_EXPAT}"
50797echo " libmspack ${wxUSE_LIBMSPACK}"
50798echo " sdl ${wxUSE_LIBSDL}"
6d1ce868 50799echo " gnomeprint ${wxUSE_LIBGNOMEPRINT-none}"
2b850ae1 50800echo " gnomevfs ${wxUSE_LIBGNOMEVFS-none}"
3565d135 50801echo " hildon ${wxUSE_LIBHILDON-none}"
a848cd7e
SC
50802
50803echo ""
50804