]> git.saurik.com Git - wxWidgets.git/blame - configure
accessor functions for wxAuiMDIParentFrame
[wxWidgets.git] / configure
CommitLineData
a848cd7e
SC
1#! /bin/sh
2# From configure.in Id: configure.in.
3# Guess values for system-dependent variables and create Makefiles.
f1e3914f 4# Generated by GNU Autoconf 2.59 for wxWidgets 2.7.1.
a848cd7e 5#
77ffb593 6# Report bugs to <wx-dev@lists.wxwidgets.org>.
a848cd7e 7#
ac1cb8d3 8# Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## --------------------- ##
12## M4sh Initialization. ##
13## --------------------- ##
14
15# Be Bourne compatible
16if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 emulate sh
18 NULLCMD=:
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23 set -o posix
24fi
ac1cb8d3 25DUALCASE=1; export DUALCASE # for MKS sh
a848cd7e
SC
26
27# Support unset when possible.
ac1cb8d3 28if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a848cd7e
SC
29 as_unset=unset
30else
31 as_unset=false
32fi
33
34
35# Work around bugs in pre-3.0 UWIN ksh.
36$as_unset ENV MAIL MAILPATH
37PS1='$ '
38PS2='> '
39PS4='+ '
40
41# NLS nuisances.
42for as_var in \
43 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
45 LC_TELEPHONE LC_TIME
46do
ac1cb8d3 47 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
48 eval $as_var=C; export $as_var
49 else
50 $as_unset $as_var
51 fi
52done
53
54# Required to use basename.
55if expr a : '\(a\)' >/dev/null 2>&1; then
56 as_expr=expr
57else
58 as_expr=false
59fi
60
61if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
62 as_basename=basename
63else
64 as_basename=false
65fi
66
67
68# Name of the executable.
69as_me=`$as_basename "$0" ||
70$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
71 X"$0" : 'X\(//\)$' \| \
72 X"$0" : 'X\(/\)$' \| \
73 . : '\(.\)' 2>/dev/null ||
74echo X/"$0" |
75 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
76 /^X\/\(\/\/\)$/{ s//\1/; q; }
77 /^X\/\(\/\).*/{ s//\1/; q; }
78 s/.*/./; q'`
79
80
81# PATH needs CR, and LINENO needs CR and PATH.
82# Avoid depending upon Character Ranges.
83as_cr_letters='abcdefghijklmnopqrstuvwxyz'
84as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
85as_cr_Letters=$as_cr_letters$as_cr_LETTERS
86as_cr_digits='0123456789'
87as_cr_alnum=$as_cr_Letters$as_cr_digits
88
89# The user is always right.
90if test "${PATH_SEPARATOR+set}" != set; then
91 echo "#! /bin/sh" >conf$$.sh
92 echo "exit 0" >>conf$$.sh
93 chmod +x conf$$.sh
94 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
95 PATH_SEPARATOR=';'
96 else
97 PATH_SEPARATOR=:
98 fi
99 rm -f conf$$.sh
100fi
101
102
103 as_lineno_1=$LINENO
104 as_lineno_2=$LINENO
105 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
106 test "x$as_lineno_1" != "x$as_lineno_2" &&
107 test "x$as_lineno_3" = "x$as_lineno_2" || {
108 # Find who we are. Look in the path if we contain no path at all
109 # relative or not.
110 case $0 in
111 *[\\/]* ) as_myself=$0 ;;
112 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113for as_dir in $PATH
114do
115 IFS=$as_save_IFS
116 test -z "$as_dir" && as_dir=.
117 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
118done
119
120 ;;
121 esac
122 # We did not find ourselves, most probably we were run as `sh COMMAND'
123 # in which case we are not to be found in the path.
124 if test "x$as_myself" = x; then
125 as_myself=$0
126 fi
127 if test ! -f "$as_myself"; then
128 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
129 { (exit 1); exit 1; }; }
130 fi
131 case $CONFIG_SHELL in
132 '')
133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
134for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135do
136 IFS=$as_save_IFS
137 test -z "$as_dir" && as_dir=.
138 for as_base in sh bash ksh sh5; do
139 case $as_dir in
140 /*)
141 if ("$as_dir/$as_base" -c '
142 as_lineno_1=$LINENO
143 as_lineno_2=$LINENO
144 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
145 test "x$as_lineno_1" != "x$as_lineno_2" &&
146 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
147 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
148 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
149 CONFIG_SHELL=$as_dir/$as_base
150 export CONFIG_SHELL
151 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
152 fi;;
153 esac
154 done
155done
156;;
157 esac
158
159 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
160 # uniformly replaced by the line number. The first 'sed' inserts a
161 # line-number line before each line; the second 'sed' does the real
162 # work. The second script uses 'N' to pair each line-number line
163 # with the numbered line, and appends trailing '-' during
164 # substitution so that $LINENO is not a special case at line end.
165 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
166 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
167 sed '=' <$as_myself |
168 sed '
169 N
170 s,$,-,
171 : loop
172 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
173 t loop
174 s,-$,,
175 s,^['$as_cr_digits']*\n,,
176 ' >$as_me.lineno &&
177 chmod +x $as_me.lineno ||
178 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
179 { (exit 1); exit 1; }; }
180
181 # Don't try to exec as it changes $[0], causing all sort of problems
182 # (the dirname of $[0] is not the place where we might find the
183 # original and so on. Autoconf is especially sensible to this).
184 . ./$as_me.lineno
185 # Exit status is that of the last command.
186 exit
187}
188
189
190case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
191 *c*,-n*) ECHO_N= ECHO_C='
192' ECHO_T=' ' ;;
193 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
194 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
195esac
196
197if expr a : '\(a\)' >/dev/null 2>&1; then
198 as_expr=expr
199else
200 as_expr=false
201fi
202
203rm -f conf$$ conf$$.exe conf$$.file
204echo >conf$$.file
205if ln -s conf$$.file conf$$ 2>/dev/null; then
206 # We could just check for DJGPP; but this test a) works b) is more generic
207 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
208 if test -f conf$$.exe; then
209 # Don't use ln at all; we don't have any links
210 as_ln_s='cp -p'
211 else
212 as_ln_s='ln -s'
213 fi
214elif ln conf$$.file conf$$ 2>/dev/null; then
215 as_ln_s=ln
216else
217 as_ln_s='cp -p'
218fi
219rm -f conf$$ conf$$.exe conf$$.file
220
221if mkdir -p . 2>/dev/null; then
222 as_mkdir_p=:
223else
ac1cb8d3 224 test -d ./-p && rmdir ./-p
a848cd7e
SC
225 as_mkdir_p=false
226fi
227
228as_executable_p="test -f"
229
230# Sed expression to map a string onto a valid CPP name.
ac1cb8d3 231as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
232
233# Sed expression to map a string onto a valid variable name.
ac1cb8d3 234as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
235
236
237# IFS
238# We need space, tab and new line, in precisely that order.
239as_nl='
240'
241IFS=" $as_nl"
242
243# CDPATH.
244$as_unset CDPATH
245
246
247# Name of the host.
248# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
249# so uname gets run too.
250ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
251
252exec 6>&1
253
254#
255# Initializations.
256#
257ac_default_prefix=/usr/local
258ac_config_libobj_dir=.
259cross_compiling=no
260subdirs=
261MFLAGS=
262MAKEFLAGS=
263SHELL=${CONFIG_SHELL-/bin/sh}
264
265# Maximum number of lines to put in a shell here document.
266# This variable seems obsolete. It should probably be removed, and
267# only ac_max_sed_lines should be used.
268: ${ac_max_here_lines=38}
269
270# Identity of this package.
77ffb593
JS
271PACKAGE_NAME='wxWidgets'
272PACKAGE_TARNAME='wxwidgets'
f1e3914f
RR
273PACKAGE_VERSION='2.7.1'
274PACKAGE_STRING='wxWidgets 2.7.1'
77ffb593 275PACKAGE_BUGREPORT='wx-dev@lists.wxwidgets.org'
a848cd7e
SC
276
277ac_unique_file="wx-config.in"
278# Factoring default headers for most tests.
279ac_includes_default="\
280#include <stdio.h>
281#if HAVE_SYS_TYPES_H
282# include <sys/types.h>
283#endif
284#if HAVE_SYS_STAT_H
285# include <sys/stat.h>
286#endif
287#if STDC_HEADERS
288# include <stdlib.h>
289# include <stddef.h>
290#else
291# if HAVE_STDLIB_H
292# include <stdlib.h>
293# endif
294#endif
295#if HAVE_STRING_H
296# if !STDC_HEADERS && HAVE_MEMORY_H
297# include <memory.h>
298# endif
299# include <string.h>
300#endif
301#if HAVE_STRINGS_H
302# include <strings.h>
303#endif
304#if HAVE_INTTYPES_H
305# include <inttypes.h>
306#else
307# if HAVE_STDINT_H
308# include <stdint.h>
309# endif
310#endif
311#if HAVE_UNISTD_H
312# include <unistd.h>
313#endif"
314
315ac_subdirs_all="$ac_subdirs_all src/expat"
a485900c 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 wx_top_builddir CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP CXX CXXFLAGS ac_ct_CXX RANLIB ac_ct_RANLIB AR ac_ct_AR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA STRIP ac_ct_STRIP WINDRES ac_ct_WINDRES DLLTOOL ac_ct_DLLTOOL IF_GNU_MAKE LN_S CXXCPP subdirs PKG_CONFIG GTK_CFLAGS GTK_LIBS GTK_CONFIG ac_pt_PKG_CONFIG DIRECTFB_CFLAGS DIRECTFB_LIBS X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS PANGOX_CFLAGS PANGOX_LIBS PANGOFT2_CFLAGS PANGOFT2_LIBS PANGOXFT_CFLAGS PANGOXFT_LIBS REZ DEREZ SETFILE LIBICONV EXTRALIBS_ESD SDL_CONFIG SDL_CFLAGS SDL_LIBS LIBGNOMEPRINTUI_CFLAGS LIBGNOMEPRINTUI_LIBS GNOMEVFS_CFLAGS GNOMEVFS_LIBS HILDON_CFLAGS HILDON_LIBS CAIRO_CFLAGS CAIRO_LIBS GST_CFLAGS GST_LIBS CORE_BASE_LIBS CORE_GUI_LIBS wxUSE_ZLIB wxUSE_REGEX wxUSE_EXPAT wxUSE_ODBC wxUSE_LIBJPEG wxUSE_LIBPNG wxUSE_LIBTIFF VENDOR OFFICIAL_BUILD WX_FLAVOUR WX_LIB_FLAVOUR WXUNIV MONOLITHIC USE_PLUGINS EXTRALIBS EXTRALIBS_XML EXTRALIBS_HTML EXTRALIBS_ODBC EXTRALIBS_GUI EXTRALIBS_OPENGL EXTRALIBS_SDL WITH_PLUGIN_SDL EXTRALIBS_GNOMEPRINT EXTRALIBS_GNOMEVFS EXTRALIBS_HILDON UNICODE BUILD DEBUG_INFO DEBUG_FLAG TOOLKIT_LOWERCASE TOOLKIT_VERSION SAMPLES_RPATH_FLAG SAMPLES_RPATH_POSTLINK HOST_SUFFIX CPPUNIT_CFLAGS CPPUNIT_LIBS SET_MAKE MAKE_SET AROPTIONS 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 BK_DEPS GCC_PCH ICC_PCH BK_MAKE_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_MOTIF COND_PLATFORM_MACOSX_1_TOOLKIT_X11 COND_PLATFORM_MACOSX_1_USE_GUI_1 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1 COND_PLATFORM_MACOS_1 COND_PLATFORM_MAC_1 COND_PLATFORM_MSDOS_0 COND_PLATFORM_MSDOS_1 COND_PLATFORM_OS2_1 COND_PLATFORM_UNIX_0 COND_PLATFORM_UNIX_1 COND_PLATFORM_UNIX_1_USE_GUI_1 COND_PLATFORM_UNIX_1_USE_PLUGINS_0 COND_PLATFORM_WIN32_0 COND_PLATFORM_WIN32_1 COND_SHARED_0 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_SHARED_0_USE_XRC_1 COND_SHARED_0_WXUSE_EXPAT_BUILTIN COND_SHARED_0_WXUSE_ODBC_BUILTIN COND_SHARED_0_WXUSE_REGEX_BUILTIN COND_SHARED_0_WXUSE_ZLIB_BUILTIN COND_SHARED_1 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1 COND_SHARED_1_USE_XRC_1 COND_TOOLKIT_ COND_TOOLKIT_COCOA COND_TOOLKIT_COCOA_USE_GUI_1 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_DFB COND_TOOLKIT_DFB_USE_GUI_1 COND_TOOLKIT_GTK COND_TOOLKIT_GTK_TOOLKIT_VERSION_ COND_TOOLKIT_GTK_TOOLKIT_VERSION_2 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK_USE_GUI_1 COND_TOOLKIT_MAC COND_TOOLKIT_MAC_USE_GUI_1 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MGL COND_TOOLKIT_MGL_USE_GUI_1 COND_TOOLKIT_MOTIF COND_TOOLKIT_MOTIF_USE_GUI_1 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MSW COND_TOOLKIT_MSW_USE_GUI_1 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MSW_WXUNIV_0 COND_TOOLKIT_PM COND_TOOLKIT_PM_USE_GUI_1 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_WINCE COND_TOOLKIT_WINCE_USE_GUI_1 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_WINCE_WXUNIV_0 COND_TOOLKIT_X11 COND_TOOLKIT_X11_USE_GUI_1 COND_UNICODE_1 COND_USE_EXCEPTIONS_0 COND_USE_EXCEPTIONS_1 COND_USE_GUI_0 COND_USE_GUI_1 COND_USE_GUI_1_WXUNIV_0 COND_USE_GUI_1_WXUNIV_1 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_USE_ODBC_1 COND_USE_OPENGL_1 COND_USE_PCH_1 COND_USE_PLUGINS_0 COND_USE_RTTI_0 COND_USE_RTTI_1 COND_USE_SOSYMLINKS_1 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1 COND_USE_SOVERLINUX_1 COND_USE_SOVERSION_0 COND_USE_SOVERSOLARIS_1 COND_USE_THREADS_0 COND_USE_THREADS_1 COND_USE_XRC_1 COND_WINDOWS_IMPLIB_1 COND_WITH_PLUGIN_SDL_1 COND_WXUNIV_0 COND_WXUNIV_1 COND_WXUSE_EXPAT_BUILTIN COND_WXUSE_LIBJPEG_BUILTIN COND_WXUSE_LIBPNG_BUILTIN COND_WXUSE_LIBTIFF_BUILTIN COND_WXUSE_ODBC_BUILTIN COND_WXUSE_REGEX_BUILTIN COND_WXUSE_ZLIB_BUILTIN SHARED WX_LIBRARY_BASENAME_NOGUI WX_LIBRARY_BASENAME_GUI USE_GUI AFMINSTALL WIN32INSTALL TOOLKIT TOOLKIT_DIR TOOLCHAIN_NAME TOOLCHAIN_FULLNAME cross_compiling WIDGET_SET WX_RELEASE WX_VERSION WX_SUBVERSION WX_CHARTYPE WX_DEBUGTYPE WXCONFIG_CPPFLAGS WXCONFIG_CFLAGS WXCONFIG_CXXFLAGS WXCONFIG_LIBS WXCONFIG_RPATH WXCONFIG_LDFLAGS_GUI WXCONFIG_RESFLAGS EXE_LINKER GUIDIST DISTDIR SAMPLES_SUBDIRS LDFLAGS_GL OPENGL_LIBS DMALLOC_LIBS WX_VERSION_TAG RESCOMP RESFLAGS RESPROGRAMOBJ WX_RESOURCES_MACOSX_ASCII WX_RESOURCES_MACOSX_DATA LIBWXMACRES POSTLINK_COMMAND MACSETFILE GCC CPPUNIT_CONFIG LIBOBJS LTLIBOBJS'
a848cd7e
SC
317ac_subst_files=''
318
319# Initialize some variables set by options.
320ac_init_help=
321ac_init_version=false
322# The variables have the same names as the options, with
323# dashes changed to underlines.
324cache_file=/dev/null
325exec_prefix=NONE
326no_create=
327no_recursion=
328prefix=NONE
329program_prefix=NONE
330program_suffix=NONE
331program_transform_name=s,x,x,
332silent=
333site=
334srcdir=
335verbose=
336x_includes=NONE
337x_libraries=NONE
338
339# Installation directory options.
340# These are left unexpanded so users can "make install exec_prefix=/foo"
341# and all the variables that are supposed to be based on exec_prefix
342# by default will actually change.
343# Use braces instead of parens because sh, perl, etc. also accept them.
344bindir='${exec_prefix}/bin'
345sbindir='${exec_prefix}/sbin'
346libexecdir='${exec_prefix}/libexec'
347datadir='${prefix}/share'
348sysconfdir='${prefix}/etc'
349sharedstatedir='${prefix}/com'
350localstatedir='${prefix}/var'
351libdir='${exec_prefix}/lib'
352includedir='${prefix}/include'
353oldincludedir='/usr/include'
354infodir='${prefix}/info'
355mandir='${prefix}/man'
356
357ac_prev=
358for ac_option
359do
360 # If the previous option needs an argument, assign it.
361 if test -n "$ac_prev"; then
362 eval "$ac_prev=\$ac_option"
363 ac_prev=
364 continue
365 fi
366
367 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
368
369 # Accept the important Cygnus configure options, so we can diagnose typos.
370
371 case $ac_option in
372
373 -bindir | --bindir | --bindi | --bind | --bin | --bi)
374 ac_prev=bindir ;;
375 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
376 bindir=$ac_optarg ;;
377
378 -build | --build | --buil | --bui | --bu)
379 ac_prev=build_alias ;;
380 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
381 build_alias=$ac_optarg ;;
382
383 -cache-file | --cache-file | --cache-fil | --cache-fi \
384 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
385 ac_prev=cache_file ;;
386 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
387 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
388 cache_file=$ac_optarg ;;
389
390 --config-cache | -C)
391 cache_file=config.cache ;;
392
393 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
394 ac_prev=datadir ;;
395 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
396 | --da=*)
397 datadir=$ac_optarg ;;
398
399 -disable-* | --disable-*)
400 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
401 # Reject names that are not valid shell variable names.
402 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
403 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
404 { (exit 1); exit 1; }; }
405 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
406 eval "enable_$ac_feature=no" ;;
407
408 -enable-* | --enable-*)
409 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
410 # Reject names that are not valid shell variable names.
411 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
412 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
413 { (exit 1); exit 1; }; }
414 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
415 case $ac_option in
416 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
417 *) ac_optarg=yes ;;
418 esac
419 eval "enable_$ac_feature='$ac_optarg'" ;;
420
421 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
422 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
423 | --exec | --exe | --ex)
424 ac_prev=exec_prefix ;;
425 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
426 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
427 | --exec=* | --exe=* | --ex=*)
428 exec_prefix=$ac_optarg ;;
429
430 -gas | --gas | --ga | --g)
431 # Obsolete; use --with-gas.
432 with_gas=yes ;;
433
434 -help | --help | --hel | --he | -h)
435 ac_init_help=long ;;
436 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
437 ac_init_help=recursive ;;
438 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
439 ac_init_help=short ;;
440
441 -host | --host | --hos | --ho)
442 ac_prev=host_alias ;;
443 -host=* | --host=* | --hos=* | --ho=*)
444 host_alias=$ac_optarg ;;
445
446 -includedir | --includedir | --includedi | --included | --include \
447 | --includ | --inclu | --incl | --inc)
448 ac_prev=includedir ;;
449 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
450 | --includ=* | --inclu=* | --incl=* | --inc=*)
451 includedir=$ac_optarg ;;
452
453 -infodir | --infodir | --infodi | --infod | --info | --inf)
454 ac_prev=infodir ;;
455 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
456 infodir=$ac_optarg ;;
457
458 -libdir | --libdir | --libdi | --libd)
459 ac_prev=libdir ;;
460 -libdir=* | --libdir=* | --libdi=* | --libd=*)
461 libdir=$ac_optarg ;;
462
463 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
464 | --libexe | --libex | --libe)
465 ac_prev=libexecdir ;;
466 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
467 | --libexe=* | --libex=* | --libe=*)
468 libexecdir=$ac_optarg ;;
469
470 -localstatedir | --localstatedir | --localstatedi | --localstated \
471 | --localstate | --localstat | --localsta | --localst \
472 | --locals | --local | --loca | --loc | --lo)
473 ac_prev=localstatedir ;;
474 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
475 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
476 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
477 localstatedir=$ac_optarg ;;
478
479 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
480 ac_prev=mandir ;;
481 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
482 mandir=$ac_optarg ;;
483
484 -nfp | --nfp | --nf)
485 # Obsolete; use --without-fp.
486 with_fp=no ;;
487
488 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
489 | --no-cr | --no-c | -n)
490 no_create=yes ;;
491
492 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
493 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
494 no_recursion=yes ;;
495
496 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
497 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
498 | --oldin | --oldi | --old | --ol | --o)
499 ac_prev=oldincludedir ;;
500 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
501 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
502 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
503 oldincludedir=$ac_optarg ;;
504
505 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
506 ac_prev=prefix ;;
507 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
508 prefix=$ac_optarg ;;
509
510 -program-prefix | --program-prefix | --program-prefi | --program-pref \
511 | --program-pre | --program-pr | --program-p)
512 ac_prev=program_prefix ;;
513 -program-prefix=* | --program-prefix=* | --program-prefi=* \
514 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
515 program_prefix=$ac_optarg ;;
516
517 -program-suffix | --program-suffix | --program-suffi | --program-suff \
518 | --program-suf | --program-su | --program-s)
519 ac_prev=program_suffix ;;
520 -program-suffix=* | --program-suffix=* | --program-suffi=* \
521 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
522 program_suffix=$ac_optarg ;;
523
524 -program-transform-name | --program-transform-name \
525 | --program-transform-nam | --program-transform-na \
526 | --program-transform-n | --program-transform- \
527 | --program-transform | --program-transfor \
528 | --program-transfo | --program-transf \
529 | --program-trans | --program-tran \
530 | --progr-tra | --program-tr | --program-t)
531 ac_prev=program_transform_name ;;
532 -program-transform-name=* | --program-transform-name=* \
533 | --program-transform-nam=* | --program-transform-na=* \
534 | --program-transform-n=* | --program-transform-=* \
535 | --program-transform=* | --program-transfor=* \
536 | --program-transfo=* | --program-transf=* \
537 | --program-trans=* | --program-tran=* \
538 | --progr-tra=* | --program-tr=* | --program-t=*)
539 program_transform_name=$ac_optarg ;;
540
541 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
542 | -silent | --silent | --silen | --sile | --sil)
543 silent=yes ;;
544
545 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
546 ac_prev=sbindir ;;
547 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
548 | --sbi=* | --sb=*)
549 sbindir=$ac_optarg ;;
550
551 -sharedstatedir | --sharedstatedir | --sharedstatedi \
552 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
553 | --sharedst | --shareds | --shared | --share | --shar \
554 | --sha | --sh)
555 ac_prev=sharedstatedir ;;
556 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
557 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
558 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
559 | --sha=* | --sh=*)
560 sharedstatedir=$ac_optarg ;;
561
562 -site | --site | --sit)
563 ac_prev=site ;;
564 -site=* | --site=* | --sit=*)
565 site=$ac_optarg ;;
566
567 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
568 ac_prev=srcdir ;;
569 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
570 srcdir=$ac_optarg ;;
571
572 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
573 | --syscon | --sysco | --sysc | --sys | --sy)
574 ac_prev=sysconfdir ;;
575 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
576 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
577 sysconfdir=$ac_optarg ;;
578
579 -target | --target | --targe | --targ | --tar | --ta | --t)
580 ac_prev=target_alias ;;
581 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
582 target_alias=$ac_optarg ;;
583
584 -v | -verbose | --verbose | --verbos | --verbo | --verb)
585 verbose=yes ;;
586
587 -version | --version | --versio | --versi | --vers | -V)
588 ac_init_version=: ;;
589
590 -with-* | --with-*)
591 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
592 # Reject names that are not valid shell variable names.
593 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
594 { echo "$as_me: error: invalid package name: $ac_package" >&2
595 { (exit 1); exit 1; }; }
596 ac_package=`echo $ac_package| sed 's/-/_/g'`
597 case $ac_option in
598 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
599 *) ac_optarg=yes ;;
600 esac
601 eval "with_$ac_package='$ac_optarg'" ;;
602
603 -without-* | --without-*)
604 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
605 # Reject names that are not valid shell variable names.
606 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
607 { echo "$as_me: error: invalid package name: $ac_package" >&2
608 { (exit 1); exit 1; }; }
609 ac_package=`echo $ac_package | sed 's/-/_/g'`
610 eval "with_$ac_package=no" ;;
611
612 --x)
613 # Obsolete; use --with-x.
614 with_x=yes ;;
615
616 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
617 | --x-incl | --x-inc | --x-in | --x-i)
618 ac_prev=x_includes ;;
619 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
620 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
621 x_includes=$ac_optarg ;;
622
623 -x-libraries | --x-libraries | --x-librarie | --x-librari \
624 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
625 ac_prev=x_libraries ;;
626 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
627 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
628 x_libraries=$ac_optarg ;;
629
630 -*) { echo "$as_me: error: unrecognized option: $ac_option
631Try \`$0 --help' for more information." >&2
632 { (exit 1); exit 1; }; }
633 ;;
634
635 *=*)
636 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
637 # Reject names that are not valid shell variable names.
638 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
639 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
640 { (exit 1); exit 1; }; }
641 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
642 eval "$ac_envvar='$ac_optarg'"
643 export $ac_envvar ;;
644
645 *)
646 # FIXME: should be removed in autoconf 3.0.
647 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
648 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
649 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
650 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
651 ;;
652
653 esac
654done
655
656if test -n "$ac_prev"; then
657 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
658 { echo "$as_me: error: missing argument to $ac_option" >&2
659 { (exit 1); exit 1; }; }
660fi
661
662# Be sure to have absolute paths.
663for ac_var in exec_prefix prefix
664do
665 eval ac_val=$`echo $ac_var`
666 case $ac_val in
667 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
668 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
669 { (exit 1); exit 1; }; };;
670 esac
671done
672
673# Be sure to have absolute paths.
674for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
ac1cb8d3 675 localstatedir libdir includedir oldincludedir infodir mandir
a848cd7e
SC
676do
677 eval ac_val=$`echo $ac_var`
678 case $ac_val in
679 [\\/$]* | ?:[\\/]* ) ;;
680 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
681 { (exit 1); exit 1; }; };;
682 esac
683done
684
685# There might be people who depend on the old broken behavior: `$host'
686# used to hold the argument of --host etc.
687# FIXME: To remove some day.
688build=$build_alias
689host=$host_alias
690target=$target_alias
691
692# FIXME: To remove some day.
693if test "x$host_alias" != x; then
694 if test "x$build_alias" = x; then
695 cross_compiling=maybe
696 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
697 If a cross compiler is detected then cross compile mode will be used." >&2
698 elif test "x$build_alias" != "x$host_alias"; then
699 cross_compiling=yes
700 fi
701fi
702
703ac_tool_prefix=
704test -n "$host_alias" && ac_tool_prefix=$host_alias-
705
706test "$silent" = yes && exec 6>/dev/null
707
708
709# Find the source files, if location was not specified.
710if test -z "$srcdir"; then
711 ac_srcdir_defaulted=yes
712 # Try the directory containing this script, then its parent.
713 ac_confdir=`(dirname "$0") 2>/dev/null ||
714$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
715 X"$0" : 'X\(//\)[^/]' \| \
716 X"$0" : 'X\(//\)$' \| \
717 X"$0" : 'X\(/\)' \| \
718 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
719echo X"$0" |
720 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
721 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
722 /^X\(\/\/\)$/{ s//\1/; q; }
723 /^X\(\/\).*/{ s//\1/; q; }
724 s/.*/./; q'`
725 srcdir=$ac_confdir
726 if test ! -r $srcdir/$ac_unique_file; then
727 srcdir=..
728 fi
729else
730 ac_srcdir_defaulted=no
731fi
732if test ! -r $srcdir/$ac_unique_file; then
733 if test "$ac_srcdir_defaulted" = yes; then
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
735 { (exit 1); exit 1; }; }
736 else
737 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
738 { (exit 1); exit 1; }; }
739 fi
740fi
741(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
742 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
743 { (exit 1); exit 1; }; }
744srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
745ac_env_build_alias_set=${build_alias+set}
746ac_env_build_alias_value=$build_alias
747ac_cv_env_build_alias_set=${build_alias+set}
748ac_cv_env_build_alias_value=$build_alias
749ac_env_host_alias_set=${host_alias+set}
750ac_env_host_alias_value=$host_alias
751ac_cv_env_host_alias_set=${host_alias+set}
752ac_cv_env_host_alias_value=$host_alias
753ac_env_target_alias_set=${target_alias+set}
754ac_env_target_alias_value=$target_alias
755ac_cv_env_target_alias_set=${target_alias+set}
756ac_cv_env_target_alias_value=$target_alias
757ac_env_CC_set=${CC+set}
758ac_env_CC_value=$CC
759ac_cv_env_CC_set=${CC+set}
760ac_cv_env_CC_value=$CC
761ac_env_CFLAGS_set=${CFLAGS+set}
762ac_env_CFLAGS_value=$CFLAGS
763ac_cv_env_CFLAGS_set=${CFLAGS+set}
764ac_cv_env_CFLAGS_value=$CFLAGS
765ac_env_LDFLAGS_set=${LDFLAGS+set}
766ac_env_LDFLAGS_value=$LDFLAGS
767ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
768ac_cv_env_LDFLAGS_value=$LDFLAGS
769ac_env_CPPFLAGS_set=${CPPFLAGS+set}
770ac_env_CPPFLAGS_value=$CPPFLAGS
771ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
772ac_cv_env_CPPFLAGS_value=$CPPFLAGS
773ac_env_CPP_set=${CPP+set}
774ac_env_CPP_value=$CPP
775ac_cv_env_CPP_set=${CPP+set}
776ac_cv_env_CPP_value=$CPP
777ac_env_CXX_set=${CXX+set}
778ac_env_CXX_value=$CXX
779ac_cv_env_CXX_set=${CXX+set}
780ac_cv_env_CXX_value=$CXX
781ac_env_CXXFLAGS_set=${CXXFLAGS+set}
782ac_env_CXXFLAGS_value=$CXXFLAGS
783ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
784ac_cv_env_CXXFLAGS_value=$CXXFLAGS
785ac_env_CXXCPP_set=${CXXCPP+set}
786ac_env_CXXCPP_value=$CXXCPP
787ac_cv_env_CXXCPP_set=${CXXCPP+set}
788ac_cv_env_CXXCPP_value=$CXXCPP
3ecd9f92
MW
789ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
790ac_env_PKG_CONFIG_value=$PKG_CONFIG
791ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
792ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
b3c86150
VS
793ac_env_DIRECTFB_CFLAGS_set=${DIRECTFB_CFLAGS+set}
794ac_env_DIRECTFB_CFLAGS_value=$DIRECTFB_CFLAGS
795ac_cv_env_DIRECTFB_CFLAGS_set=${DIRECTFB_CFLAGS+set}
796ac_cv_env_DIRECTFB_CFLAGS_value=$DIRECTFB_CFLAGS
797ac_env_DIRECTFB_LIBS_set=${DIRECTFB_LIBS+set}
798ac_env_DIRECTFB_LIBS_value=$DIRECTFB_LIBS
799ac_cv_env_DIRECTFB_LIBS_set=${DIRECTFB_LIBS+set}
800ac_cv_env_DIRECTFB_LIBS_value=$DIRECTFB_LIBS
3ecd9f92
MW
801ac_env_PANGOX_CFLAGS_set=${PANGOX_CFLAGS+set}
802ac_env_PANGOX_CFLAGS_value=$PANGOX_CFLAGS
803ac_cv_env_PANGOX_CFLAGS_set=${PANGOX_CFLAGS+set}
804ac_cv_env_PANGOX_CFLAGS_value=$PANGOX_CFLAGS
805ac_env_PANGOX_LIBS_set=${PANGOX_LIBS+set}
806ac_env_PANGOX_LIBS_value=$PANGOX_LIBS
807ac_cv_env_PANGOX_LIBS_set=${PANGOX_LIBS+set}
808ac_cv_env_PANGOX_LIBS_value=$PANGOX_LIBS
809ac_env_PANGOFT2_CFLAGS_set=${PANGOFT2_CFLAGS+set}
810ac_env_PANGOFT2_CFLAGS_value=$PANGOFT2_CFLAGS
811ac_cv_env_PANGOFT2_CFLAGS_set=${PANGOFT2_CFLAGS+set}
812ac_cv_env_PANGOFT2_CFLAGS_value=$PANGOFT2_CFLAGS
813ac_env_PANGOFT2_LIBS_set=${PANGOFT2_LIBS+set}
814ac_env_PANGOFT2_LIBS_value=$PANGOFT2_LIBS
815ac_cv_env_PANGOFT2_LIBS_set=${PANGOFT2_LIBS+set}
816ac_cv_env_PANGOFT2_LIBS_value=$PANGOFT2_LIBS
817ac_env_PANGOXFT_CFLAGS_set=${PANGOXFT_CFLAGS+set}
818ac_env_PANGOXFT_CFLAGS_value=$PANGOXFT_CFLAGS
819ac_cv_env_PANGOXFT_CFLAGS_set=${PANGOXFT_CFLAGS+set}
820ac_cv_env_PANGOXFT_CFLAGS_value=$PANGOXFT_CFLAGS
821ac_env_PANGOXFT_LIBS_set=${PANGOXFT_LIBS+set}
822ac_env_PANGOXFT_LIBS_value=$PANGOXFT_LIBS
823ac_cv_env_PANGOXFT_LIBS_set=${PANGOXFT_LIBS+set}
824ac_cv_env_PANGOXFT_LIBS_value=$PANGOXFT_LIBS
825ac_env_LIBGNOMEPRINTUI_CFLAGS_set=${LIBGNOMEPRINTUI_CFLAGS+set}
826ac_env_LIBGNOMEPRINTUI_CFLAGS_value=$LIBGNOMEPRINTUI_CFLAGS
827ac_cv_env_LIBGNOMEPRINTUI_CFLAGS_set=${LIBGNOMEPRINTUI_CFLAGS+set}
828ac_cv_env_LIBGNOMEPRINTUI_CFLAGS_value=$LIBGNOMEPRINTUI_CFLAGS
829ac_env_LIBGNOMEPRINTUI_LIBS_set=${LIBGNOMEPRINTUI_LIBS+set}
830ac_env_LIBGNOMEPRINTUI_LIBS_value=$LIBGNOMEPRINTUI_LIBS
831ac_cv_env_LIBGNOMEPRINTUI_LIBS_set=${LIBGNOMEPRINTUI_LIBS+set}
832ac_cv_env_LIBGNOMEPRINTUI_LIBS_value=$LIBGNOMEPRINTUI_LIBS
833ac_env_GNOMEVFS_CFLAGS_set=${GNOMEVFS_CFLAGS+set}
834ac_env_GNOMEVFS_CFLAGS_value=$GNOMEVFS_CFLAGS
835ac_cv_env_GNOMEVFS_CFLAGS_set=${GNOMEVFS_CFLAGS+set}
836ac_cv_env_GNOMEVFS_CFLAGS_value=$GNOMEVFS_CFLAGS
837ac_env_GNOMEVFS_LIBS_set=${GNOMEVFS_LIBS+set}
838ac_env_GNOMEVFS_LIBS_value=$GNOMEVFS_LIBS
839ac_cv_env_GNOMEVFS_LIBS_set=${GNOMEVFS_LIBS+set}
840ac_cv_env_GNOMEVFS_LIBS_value=$GNOMEVFS_LIBS
841ac_env_HILDON_CFLAGS_set=${HILDON_CFLAGS+set}
842ac_env_HILDON_CFLAGS_value=$HILDON_CFLAGS
843ac_cv_env_HILDON_CFLAGS_set=${HILDON_CFLAGS+set}
844ac_cv_env_HILDON_CFLAGS_value=$HILDON_CFLAGS
845ac_env_HILDON_LIBS_set=${HILDON_LIBS+set}
846ac_env_HILDON_LIBS_value=$HILDON_LIBS
847ac_cv_env_HILDON_LIBS_set=${HILDON_LIBS+set}
848ac_cv_env_HILDON_LIBS_value=$HILDON_LIBS
64b75e64
RD
849ac_env_CAIRO_CFLAGS_set=${CAIRO_CFLAGS+set}
850ac_env_CAIRO_CFLAGS_value=$CAIRO_CFLAGS
851ac_cv_env_CAIRO_CFLAGS_set=${CAIRO_CFLAGS+set}
852ac_cv_env_CAIRO_CFLAGS_value=$CAIRO_CFLAGS
853ac_env_CAIRO_LIBS_set=${CAIRO_LIBS+set}
854ac_env_CAIRO_LIBS_value=$CAIRO_LIBS
855ac_cv_env_CAIRO_LIBS_set=${CAIRO_LIBS+set}
856ac_cv_env_CAIRO_LIBS_value=$CAIRO_LIBS
3ecd9f92
MW
857ac_env_GST_CFLAGS_set=${GST_CFLAGS+set}
858ac_env_GST_CFLAGS_value=$GST_CFLAGS
859ac_cv_env_GST_CFLAGS_set=${GST_CFLAGS+set}
860ac_cv_env_GST_CFLAGS_value=$GST_CFLAGS
861ac_env_GST_LIBS_set=${GST_LIBS+set}
862ac_env_GST_LIBS_value=$GST_LIBS
863ac_cv_env_GST_LIBS_set=${GST_LIBS+set}
864ac_cv_env_GST_LIBS_value=$GST_LIBS
a848cd7e
SC
865
866#
867# Report the --help message.
868#
869if test "$ac_init_help" = "long"; then
870 # Omit some internal or obsolete options to make the list less imposing.
871 # This message is too long to be a string in the A/UX 3.1 sh.
872 cat <<_ACEOF
f1e3914f 873\`configure' configures wxWidgets 2.7.1 to adapt to many kinds of systems.
a848cd7e
SC
874
875Usage: $0 [OPTION]... [VAR=VALUE]...
876
877To assign environment variables (e.g., CC, CFLAGS...), specify them as
878VAR=VALUE. See below for descriptions of some of the useful variables.
879
880Defaults for the options are specified in brackets.
881
882Configuration:
883 -h, --help display this help and exit
884 --help=short display options specific to this package
885 --help=recursive display the short help of all the included packages
886 -V, --version display version information and exit
887 -q, --quiet, --silent do not print \`checking...' messages
888 --cache-file=FILE cache test results in FILE [disabled]
889 -C, --config-cache alias for \`--cache-file=config.cache'
890 -n, --no-create do not create output files
891 --srcdir=DIR find the sources in DIR [configure dir or \`..']
892
893_ACEOF
894
895 cat <<_ACEOF
896Installation directories:
897 --prefix=PREFIX install architecture-independent files in PREFIX
ac1cb8d3 898 [$ac_default_prefix]
a848cd7e 899 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
ac1cb8d3 900 [PREFIX]
a848cd7e
SC
901
902By default, \`make install' will install all the files in
903\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
904an installation prefix other than \`$ac_default_prefix' using \`--prefix',
905for instance \`--prefix=\$HOME'.
906
907For better control, use the options below.
908
909Fine tuning of the installation directories:
910 --bindir=DIR user executables [EPREFIX/bin]
911 --sbindir=DIR system admin executables [EPREFIX/sbin]
912 --libexecdir=DIR program executables [EPREFIX/libexec]
913 --datadir=DIR read-only architecture-independent data [PREFIX/share]
914 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
915 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
916 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
917 --libdir=DIR object code libraries [EPREFIX/lib]
918 --includedir=DIR C header files [PREFIX/include]
919 --oldincludedir=DIR C header files for non-gcc [/usr/include]
920 --infodir=DIR info documentation [PREFIX/info]
921 --mandir=DIR man documentation [PREFIX/man]
922_ACEOF
923
924 cat <<\_ACEOF
925
926X features:
927 --x-includes=DIR X include files are in DIR
928 --x-libraries=DIR X library files are in DIR
929
930System types:
931 --build=BUILD configure for building on BUILD [guessed]
932 --host=HOST cross-compile to build programs to run on HOST [BUILD]
933 --target=TARGET configure for building compilers for TARGET [HOST]
934_ACEOF
935fi
936
937if test -n "$ac_init_help"; then
938 case $ac_init_help in
f1e3914f 939 short | recursive ) echo "Configuration of wxWidgets 2.7.1:";;
a848cd7e
SC
940 esac
941 cat <<\_ACEOF
942
943Optional Features:
944 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
945 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
946 --enable-gui use GUI classes
77ffb593
JS
947 --enable-monolithic build wxWidgets as single library
948 --enable-plugins build parts of wxWidgets as loadable components
949 --enable-universal use wxWidgets GUI controls instead of native ones
a848cd7e 950 --enable-nanox use NanoX
f34ca037 951 --disable-gtk2 use GTK+ 1.2 instead of 2.0
a848cd7e
SC
952 --enable-gpe use GNOME PDA Environment features if possible
953 --enable-shared create shared library code
954 --enable-optimise create optimised code
955 --enable-debug same as debug_flag and debug_info
956 --enable-stl use STL for containers
957 --enable-omf use OMF object format
958 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)
959 --enable-debug_info create code with debugging information
960 --enable-debug_gdb create code with extra GDB debugging information
961 --enable-debug_cntxt use wxDebugContext
962 --enable-mem_tracing create code with memory tracing
963 --enable-profile create code with profiling information
964 --enable-no_rtti create code without RTTI information
965 --enable-no_exceptions create code without C++ exceptions handling
966 --enable-permissive compile code disregarding strict ANSI
967 --enable-no_deps create code without dependency information
95768535 968 --enable-universal_binary[=SDK] create Mac PowerPC and Intel Universal binary (not yet working)
dee1a63f
MB
969 --enable-compat24 enable wxWidgets 2.4 compatibility
970 --disable-compat26 disable wxWidgets 2.6 compatibility
ffa0583f 971 --disable-rpath disable use of rpath for uninstalled builds
a848cd7e
SC
972 --enable-intl use internationalization system
973 --enable-config use wxConfig (and derived) classes
974 --enable-protocols use wxProtocol and derived classes
975 --enable-ftp use wxFTP (requires wxProtocol
976 --enable-http use wxHTTP (requires wxProtocol
977 --enable-fileproto use wxFileProto class (requires wxProtocol
978 --enable-sockets use socket/network classes
979 --enable-ole use OLE classes (Win32 only)
980 --enable-dataobj use data object classes
981 --enable-ipc use interprocess communication (wxSocket etc.)
982 --enable-apple_ieee use the Apple IEEE codec
81f90336 983 --enable-arcstream use wxArchive streams
eaff0f0d 984 --enable-backtrace use wxStackWalker class for getting backtraces
36b6448c 985 --enable-catch_segvs catch signals in wxApp::OnFatalException (Unix only)
a848cd7e
SC
986 --enable-cmdline use wxCmdLineParser class
987 --enable-datetime use wxDateTime class
36b6448c 988 --enable-debugreport use wxDebugReport class
a848cd7e
SC
989 --enable-dialupman use dialup network classes
990 --enable-dynlib use wxLibrary class for DLL loading
991 --enable-dynamicloader use (new) wxDynamicLibrary class
992 --enable-exceptions build exception-safe library
993 --enable-ffile use wxFFile class
994 --enable-file use wxFile class
995 --enable-filesystem use virtual file systems classes
996 --enable-fontmap use font encodings conversion classes
26e422a9 997 --enable-fs_archive use virtual archive filesystems
a848cd7e 998 --enable-fs_inet use virtual HTTP/FTP filesystems
916af76f 999 --enable-fs_zip now replaced by fs_archive
a848cd7e
SC
1000 --enable-geometry use geometry class
1001 --enable-log use logging system
1002 --enable-longlong use wxLongLong class
1003 --enable-mimetype use wxMimeTypesManager
1004 --enable-mslu use MS Layer for Unicode on Windows 9x (Win32 only)
1005 --enable-snglinst use wxSingleInstanceChecker class
a848cd7e 1006 --enable-std_iostreams use standard C++ stream classes
59746b65 1007 --enable-std_string use standard C++ string classes
07158944 1008 --enable-stdpaths use wxStandardPaths class
a848cd7e 1009 --enable-stopwatch use wxStopWatch class
07158944 1010 --enable-streams use wxStream etc classes
a848cd7e 1011 --enable-sysoptions use wxSystemOptions
26e422a9 1012 --enable-tarstream use wxTar streams
a848cd7e
SC
1013 --enable-textbuf use wxTextBuffer class
1014 --enable-textfile use wxTextFile class
1015 --enable-timer use wxTimer class
1016 --enable-unicode compile wxString with Unicode support
1017 --enable-sound use wxSound class
3b57de8b 1018 --enable-mediactrl use wxMediaCtrl class
15291213 1019 --enable-gstreamer8 force GStreamer 0.8 instead of 0.10 with the wxMediaCtrl class on unix
8b6682b9 1020 --enable-printfposparam use wxVsnprintf() which supports positional parameters
81f90336 1021 --enable-zipstream use wxZip streams
a848cd7e 1022 --enable-url use wxURL class
ca5c6ac3 1023 --enable-variant use wxVariant class
a848cd7e
SC
1024 --enable-protocol use wxProtocol class
1025 --enable-protocol-http HTTP support in wxProtocol
1026 --enable-protocol-ftp FTP support in wxProtocol
1027 --enable-protocol-file FILE support in wxProtocol
1028 --enable-threads use threads
1029 --enable-docview use document view architecture
1030 --enable-help use help subsystem
1031 --enable-mshtmlhelp use MS HTML Help (win32)
1032 --enable-html use wxHTML sub-library
1033 --enable-htmlhelp use wxHTML-based help
9a8f0513 1034 --enable-xrc use XRC resources sub-library
3f60522a 1035 --enable-aui use AUI docking library
a848cd7e
SC
1036 --enable-constraints use layout-constraints system
1037 --enable-printarch use printing architecture
1038 --enable-mdi use multiple document interface architecture
8a7b1113 1039 --enable-mdidoc use docview architecture with MDI
a848cd7e
SC
1040 --enable-loggui use standard GUI logger
1041 --enable-logwin use wxLogWindow
1042 --enable-logdialog use wxLogDialog
646b6ec1 1043 --enable-webkit use wxWebKitCtrl (Mac)
91dea314 1044 --enable-richtext use wxRichTextCtrl
f43426c1 1045 --enable-graphics_ctx use graphics context 2D drawing API
a848cd7e
SC
1046 --enable-postscript use wxPostscriptDC device context (default for gtk+)
1047 --enable-prologio not available; see contrib
1048 --enable-resources not available; see contrib
1049 --enable-clipboard use wxClipboard class
1050 --enable-dnd use Drag'n'Drop classes
1051 --enable-metafile use win32 metafiles
1052 --enable-controls use all usual controls
1053 --enable-accel use accelerators
3ea50042 1054 --enable-animatectrl use wxAnimationCtrl class
a848cd7e
SC
1055 --enable-button use wxButton class
1056 --enable-bmpbutton use wxBitmapButton class
95a46303 1057 --enable-bmpcombobox use wxBitmapComboBox class
a848cd7e
SC
1058 --enable-calendar use wxCalendarCtrl class
1059 --enable-caret use wxCaret class
1060 --enable-checkbox use wxCheckBox class
1061 --enable-checklst use wxCheckListBox (listbox with checkboxes) class
1062 --enable-choice use wxChoice class
92bbdbcd 1063 --enable-choicebook use wxChoicebook class
bd915ace 1064 --enable-collpane use wxCollapsiblePane class
e9263684 1065 --enable-colourpicker use wxColourPickerCtrl class
a848cd7e 1066 --enable-combobox use wxComboBox class
a57d600f 1067 --enable-comboctrl use wxComboCtrl class
da98e9be 1068 --enable-datepick use wxDatePickerCtrl class
e9263684 1069 --enable-dirpicker use wxDirPickerCtrl class
a848cd7e 1070 --enable-display use wxDisplay class
88bbc332 1071 --enable-detect_sm use code to detect X11 session manager
e9263684
VZ
1072 --enable-filepicker use wxFilePickerCtrl class
1073 --enable-fontpicker use wxFontPickerCtrl class
a848cd7e
SC
1074 --enable-gauge use wxGauge class
1075 --enable-grid use wxGrid class
20e34ecc 1076 --enable-dataviewctrl, use wxDataViewCtrl class
6954625c 1077 --enable-hyperlink use wxHyperlinkCtrl class
a848cd7e
SC
1078 --enable-imaglist use wxImageList class
1079 --enable-listbook use wxListbook class
1080 --enable-listbox use wxListBox class
1081 --enable-listctrl use wxListCtrl class
1082 --enable-notebook use wxNotebook class
a57d600f 1083 --enable-odcombobox use wxOwnerDrawnComboBox class
a848cd7e
SC
1084 --enable-radiobox use wxRadioBox class
1085 --enable-radiobtn use wxRadioButton class
1086 --enable-sash use wxSashWindow class
1087 --enable-scrollbar use wxScrollBar class and scrollable windows
1088 --enable-slider use wxSlider class
1089 --enable-spinbtn use wxSpinButton class
1090 --enable-spinctrl use wxSpinCtrl class
1091 --enable-splitter use wxSplitterWindow class
1092 --enable-statbmp use wxStaticBitmap class
1093 --enable-statbox use wxStaticBox class
1094 --enable-statline use wxStaticLine class
1095 --enable-stattext use wxStaticText class
1096 --enable-statusbar use wxStatusBar class
1097 --enable-tabdialog use wxTabControl class
1098 --enable-textctrl use wxTextCtrl class
1099 --enable-togglebtn use wxToggleButton class
1100 --enable-toolbar use wxToolBar class
1101 --enable-tbarnative use native wxToolBar class
0093c2fc 1102 --enable-treebook use wxTreebook class
5ec3bc43 1103 --enable-toolbook use wxToolbook class
a848cd7e
SC
1104 --enable-treectrl use wxTreeCtrl class
1105 --enable-tipwindow use wxTipWindow class
1106 --enable-popupwin use wxPopUpWindow class
1107 --enable-commondlg use all common dialogs
319c5ed4 1108 --enable-aboutdlg use wxAboutBox
a848cd7e
SC
1109 --enable-choicedlg use wxChoiceDialog
1110 --enable-coldlg use wxColourDialog
1111 --enable-filedlg use wxFileDialog
1112 --enable-finddlg use wxFindReplaceDialog
1113 --enable-fontdlg use wxFontDialog
1114 --enable-dirdlg use wxDirDialog
1115 --enable-msgdlg use wxMessageDialog
1116 --enable-numberdlg use wxNumberEntryDialog
1117 --enable-splash use wxSplashScreen
1118 --enable-textdlg use wxTextDialog
1119 --enable-tipdlg use startup tips
1120 --enable-progressdlg use wxProgressDialog
1121 --enable-wizarddlg use wxWizard
1122 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes
1123 --enable-miniframe use wxMiniFrame class
1124 --enable-tooltips use wxToolTip class
1125 --enable-splines use spline drawing code
fbe2ca43 1126 --enable-mousewheel use mousewheel
a848cd7e
SC
1127 --enable-validators use wxValidator and derived classes
1128 --enable-busyinfo use wxBusyInfo
4cb1d3da 1129 --enable-joystick use wxJoystick
38b4a946 1130 --enable-metafiles use wxMetaFile (Win32 only)
a848cd7e
SC
1131 --enable-dragimage use wxDragImage
1132 --enable-accessibility enable accessibility support
38b4a946 1133 --enable-dccache cache temporary wxDC objects (Win32 only)
a848cd7e
SC
1134 --enable-palette use wxPalette class
1135 --enable-image use wxImage class
1136 --enable-gif use gif images (GIF file format)
1137 --enable-pcx use pcx images (PCX file format)
bb9e79c0 1138 --enable-tga use tga images (TGA file format)
a848cd7e
SC
1139 --enable-iff use iff images (IFF file format)
1140 --enable-pnm use pnm images (PNM file format)
1141 --enable-xpm use xpm images (XPM file format)
1142 --enable-icocur use Windows ICO and CUR formats
77ffb593 1143 --enable-official_build official build of wxWidgets (win32 DLL only)
a848cd7e
SC
1144 --enable-vendor=VENDOR vendor name (win32 DLL only)
1145 --disable-largefile omit support for large files
1146 --disable-gtktest do not try to compile and run a test GTK+ program
1147 --disable-gtktest Do not try to compile and run a test GTK program
1148 --disable-sdltest Do not try to compile and run a test SDL program
1149 --enable-omf use OMF object format (OS/2)
f10e38c4
VZ
1150 --disable-dependency-tracking
1151 don't use dependency tracking even if the compiler
1152 can
ebee3cd0
VS
1153 --disable-precomp-headers
1154 don't use precompiled headers even if compiler can
a848cd7e
SC
1155
1156Optional Packages:
1157 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1158 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1c14217d 1159 --without-subdirs don't generate makefiles for samples/demos/...
f34ca037 1160 --with-gtk[=VERSION] use GTK+, VERSION can be 2 (default), 1 or "any"
a848cd7e
SC
1161 --with-motif use Motif/Lesstif
1162 --with-mac use Mac OS X
1163 --with-cocoa use Cocoa
1164 --with-wine use Wine
1165 --with-msw use MS-Windows
1166 --with-pm use OS/2 Presentation Manager
1167 --with-mgl use SciTech MGL
b3c86150 1168 --with-directfb use DirectFB
a848cd7e
SC
1169 --with-microwin use MicroWindows
1170 --with-x11 use X11
1171 --with-libpng use libpng (PNG image format)
1172 --with-libjpeg use libjpeg (JPEG file format)
1173 --with-libtiff use libtiff (TIFF file format)
1174 --with-libxpm use libxpm (XPM file format)
1175 --with-libmspack use libmspack (CHM help files loading)
1176 --with-sdl use SDL for audio on Unix
2b850ae1
RR
1177 --with-gnomeprint use GNOME print for printing under GNOME
1178 --with-gnomevfs use GNOME VFS for associating MIME types
3565d135 1179 --with-hildon use Hildon framework for Nokia 770
a848cd7e 1180 --with-opengl use OpenGL (or Mesa)
4353a8df 1181 --with-themes=all|list use only the specified comma-separated list of wxUniversal themes
a848cd7e
SC
1182 --with-dmalloc use dmalloc library (http://dmalloc.com/)
1183 --with-regex enable support for wxRegEx class
1184 --with-zlib use zlib for LZW compression
1185 --with-odbc use the IODBC and wxODBC classes
1186 --with-expat enable XML support using expat parser
ceec2216 1187 --with-flavour=NAME specify a name to identify this build
a848cd7e
SC
1188 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1189 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1190 --with-x use the X Window System
1191 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1192 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1193 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1194 --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
1195 --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
1196
1197Some influential environment variables:
dcc1b6ad
VS
1198 CC C compiler command
1199 CFLAGS C compiler flags
1200 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1201 nonstandard directory <lib dir>
1202 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1203 headers in a nonstandard directory <include dir>
1204 CPP C preprocessor
1205 CXX C++ compiler command
1206 CXXFLAGS C++ compiler flags
1207 CXXCPP C++ preprocessor
3ecd9f92 1208 PKG_CONFIG path to pkg-config utility
b3c86150
VS
1209 DIRECTFB_CFLAGS
1210 C compiler flags for DIRECTFB, overriding pkg-config
1211 DIRECTFB_LIBS
1212 linker flags for DIRECTFB, overriding pkg-config
3ecd9f92
MW
1213 PANGOX_CFLAGS
1214 C compiler flags for PANGOX, overriding pkg-config
1215 PANGOX_LIBS linker flags for PANGOX, overriding pkg-config
1216 PANGOFT2_CFLAGS
1217 C compiler flags for PANGOFT2, overriding pkg-config
1218 PANGOFT2_LIBS
1219 linker flags for PANGOFT2, overriding pkg-config
1220 PANGOXFT_CFLAGS
1221 C compiler flags for PANGOXFT, overriding pkg-config
1222 PANGOXFT_LIBS
1223 linker flags for PANGOXFT, overriding pkg-config
1224 LIBGNOMEPRINTUI_CFLAGS
1225 C compiler flags for LIBGNOMEPRINTUI, overriding pkg-config
1226 LIBGNOMEPRINTUI_LIBS
1227 linker flags for LIBGNOMEPRINTUI, overriding pkg-config
1228 GNOMEVFS_CFLAGS
1229 C compiler flags for GNOMEVFS, overriding pkg-config
1230 GNOMEVFS_LIBS
1231 linker flags for GNOMEVFS, overriding pkg-config
1232 HILDON_CFLAGS
1233 C compiler flags for HILDON, overriding pkg-config
1234 HILDON_LIBS linker flags for HILDON, overriding pkg-config
64b75e64
RD
1235 CAIRO_CFLAGS
1236 C compiler flags for CAIRO, overriding pkg-config
1237 CAIRO_LIBS linker flags for CAIRO, overriding pkg-config
3ecd9f92
MW
1238 GST_CFLAGS C compiler flags for GST, overriding pkg-config
1239 GST_LIBS linker flags for GST, overriding pkg-config
a848cd7e
SC
1240
1241Use these variables to override the choices made by `configure' or to help
1242it to find libraries and programs with nonstandard names/locations.
1243
77ffb593 1244Report bugs to <wx-dev@lists.wxwidgets.org>.
a848cd7e
SC
1245_ACEOF
1246fi
1247
1248if test "$ac_init_help" = "recursive"; then
1249 # If there are subdirs, report their specific --help.
1250 ac_popdir=`pwd`
1251 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1252 test -d $ac_dir || continue
1253 ac_builddir=.
1254
1255if test "$ac_dir" != .; then
1256 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1257 # A "../" for each directory in $ac_dir_suffix.
1258 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1259else
1260 ac_dir_suffix= ac_top_builddir=
1261fi
1262
1263case $srcdir in
1264 .) # No --srcdir option. We are building in place.
1265 ac_srcdir=.
1266 if test -z "$ac_top_builddir"; then
1267 ac_top_srcdir=.
1268 else
1269 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1270 fi ;;
1271 [\\/]* | ?:[\\/]* ) # Absolute path.
1272 ac_srcdir=$srcdir$ac_dir_suffix;
1273 ac_top_srcdir=$srcdir ;;
1274 *) # Relative path.
1275 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1276 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1277esac
ac1cb8d3
VS
1278
1279# Do not use `cd foo && pwd` to compute absolute paths, because
1280# the directories may not exist.
1281case `pwd` in
1282.) ac_abs_builddir="$ac_dir";;
1283*)
1284 case "$ac_dir" in
1285 .) ac_abs_builddir=`pwd`;;
1286 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1287 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1288 esac;;
1289esac
1290case $ac_abs_builddir in
1291.) ac_abs_top_builddir=${ac_top_builddir}.;;
1292*)
1293 case ${ac_top_builddir}. in
1294 .) ac_abs_top_builddir=$ac_abs_builddir;;
1295 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1296 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1297 esac;;
1298esac
1299case $ac_abs_builddir in
1300.) ac_abs_srcdir=$ac_srcdir;;
1301*)
1302 case $ac_srcdir in
1303 .) ac_abs_srcdir=$ac_abs_builddir;;
1304 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1305 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1306 esac;;
1307esac
1308case $ac_abs_builddir in
1309.) ac_abs_top_srcdir=$ac_top_srcdir;;
1310*)
1311 case $ac_top_srcdir in
1312 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1313 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1314 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1315 esac;;
1316esac
a848cd7e
SC
1317
1318 cd $ac_dir
1319 # Check for guested configure; otherwise get Cygnus style configure.
1320 if test -f $ac_srcdir/configure.gnu; then
1321 echo
1322 $SHELL $ac_srcdir/configure.gnu --help=recursive
1323 elif test -f $ac_srcdir/configure; then
1324 echo
1325 $SHELL $ac_srcdir/configure --help=recursive
1326 elif test -f $ac_srcdir/configure.ac ||
ac1cb8d3 1327 test -f $ac_srcdir/configure.in; then
a848cd7e
SC
1328 echo
1329 $ac_configure --help
1330 else
1331 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1332 fi
bb9e79c0 1333 cd "$ac_popdir"
a848cd7e
SC
1334 done
1335fi
1336
1337test -n "$ac_init_help" && exit 0
1338if $ac_init_version; then
1339 cat <<\_ACEOF
f1e3914f 1340wxWidgets configure 2.7.1
ac1cb8d3 1341generated by GNU Autoconf 2.59
a848cd7e 1342
ac1cb8d3 1343Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
1344This configure script is free software; the Free Software Foundation
1345gives unlimited permission to copy, distribute and modify it.
1346_ACEOF
1347 exit 0
1348fi
1349exec 5>config.log
1350cat >&5 <<_ACEOF
1351This file contains any messages produced by compilers while
1352running configure, to aid debugging if configure makes a mistake.
1353
f1e3914f 1354It was created by wxWidgets $as_me 2.7.1, which was
ac1cb8d3 1355generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
1356
1357 $ $0 $@
1358
1359_ACEOF
1360{
1361cat <<_ASUNAME
1362## --------- ##
1363## Platform. ##
1364## --------- ##
1365
1366hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1367uname -m = `(uname -m) 2>/dev/null || echo unknown`
1368uname -r = `(uname -r) 2>/dev/null || echo unknown`
1369uname -s = `(uname -s) 2>/dev/null || echo unknown`
1370uname -v = `(uname -v) 2>/dev/null || echo unknown`
1371
1372/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1373/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1374
1375/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1376/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1377/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1378hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1379/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1380/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1381/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1382
1383_ASUNAME
1384
1385as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1386for as_dir in $PATH
1387do
1388 IFS=$as_save_IFS
1389 test -z "$as_dir" && as_dir=.
1390 echo "PATH: $as_dir"
1391done
1392
1393} >&5
1394
1395cat >&5 <<_ACEOF
1396
1397
1398## ----------- ##
1399## Core tests. ##
1400## ----------- ##
1401
1402_ACEOF
1403
1404
1405# Keep a trace of the command line.
1406# Strip out --no-create and --no-recursion so they do not pile up.
1407# Strip out --silent because we don't want to record it for future runs.
1408# Also quote any args containing shell meta-characters.
1409# Make two passes to allow for proper duplicate-argument suppression.
1410ac_configure_args=
1411ac_configure_args0=
1412ac_configure_args1=
1413ac_sep=
1414ac_must_keep_next=false
1415for ac_pass in 1 2
1416do
1417 for ac_arg
1418 do
1419 case $ac_arg in
1420 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1421 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1422 | -silent | --silent | --silen | --sile | --sil)
1423 continue ;;
1424 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1425 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1426 esac
1427 case $ac_pass in
1428 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1429 2)
1430 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1431 if test $ac_must_keep_next = true; then
ac1cb8d3 1432 ac_must_keep_next=false # Got value, back to normal.
a848cd7e 1433 else
ac1cb8d3
VS
1434 case $ac_arg in
1435 *=* | --config-cache | -C | -disable-* | --disable-* \
1436 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1437 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1438 | -with-* | --with-* | -without-* | --without-* | --x)
1439 case "$ac_configure_args0 " in
1440 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1441 esac
1442 ;;
1443 -* ) ac_must_keep_next=true ;;
1444 esac
a848cd7e
SC
1445 fi
1446 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1447 # Get rid of the leading space.
1448 ac_sep=" "
1449 ;;
1450 esac
1451 done
1452done
1453$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1454$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1455
1456# When interrupted or exit'd, cleanup temporary files, and complete
1457# config.log. We remove comments because anyway the quotes in there
1458# would cause problems or look ugly.
1459# WARNING: Be sure not to use single quotes in there, as some shells,
1460# such as our DU 5.0 friend, will then `close' the trap.
1461trap 'exit_status=$?
1462 # Save into config.log some information that might help in debugging.
1463 {
1464 echo
1465
1466 cat <<\_ASBOX
1467## ---------------- ##
1468## Cache variables. ##
1469## ---------------- ##
1470_ASBOX
1471 echo
1472 # The following way of writing the cache mishandles newlines in values,
1473{
1474 (set) 2>&1 |
1475 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1476 *ac_space=\ *)
1477 sed -n \
ac1cb8d3
VS
1478 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1479 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
a848cd7e
SC
1480 ;;
1481 *)
1482 sed -n \
ac1cb8d3 1483 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
1484 ;;
1485 esac;
1486}
1487 echo
1488
1489 cat <<\_ASBOX
1490## ----------------- ##
1491## Output variables. ##
1492## ----------------- ##
1493_ASBOX
1494 echo
1495 for ac_var in $ac_subst_vars
1496 do
1497 eval ac_val=$`echo $ac_var`
1498 echo "$ac_var='"'"'$ac_val'"'"'"
1499 done | sort
1500 echo
1501
1502 if test -n "$ac_subst_files"; then
1503 cat <<\_ASBOX
1504## ------------- ##
1505## Output files. ##
1506## ------------- ##
1507_ASBOX
1508 echo
1509 for ac_var in $ac_subst_files
1510 do
1511 eval ac_val=$`echo $ac_var`
ac1cb8d3 1512 echo "$ac_var='"'"'$ac_val'"'"'"
a848cd7e
SC
1513 done | sort
1514 echo
1515 fi
1516
1517 if test -s confdefs.h; then
1518 cat <<\_ASBOX
1519## ----------- ##
1520## confdefs.h. ##
1521## ----------- ##
1522_ASBOX
1523 echo
1524 sed "/^$/d" confdefs.h | sort
1525 echo
1526 fi
1527 test "$ac_signal" != 0 &&
1528 echo "$as_me: caught signal $ac_signal"
1529 echo "$as_me: exit $exit_status"
1530 } >&5
ac1cb8d3 1531 rm -f core *.core &&
a848cd7e
SC
1532 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1533 exit $exit_status
1534 ' 0
1535for ac_signal in 1 2 13 15; do
1536 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1537done
1538ac_signal=0
1539
1540# confdefs.h avoids OS command line length limits that DEFS can exceed.
1541rm -rf conftest* confdefs.h
1542# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1543echo >confdefs.h
1544
1545# Predefined preprocessor variables.
1546
1547cat >>confdefs.h <<_ACEOF
1548#define PACKAGE_NAME "$PACKAGE_NAME"
1549_ACEOF
1550
1551
1552cat >>confdefs.h <<_ACEOF
1553#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1554_ACEOF
1555
1556
1557cat >>confdefs.h <<_ACEOF
1558#define PACKAGE_VERSION "$PACKAGE_VERSION"
1559_ACEOF
1560
1561
1562cat >>confdefs.h <<_ACEOF
1563#define PACKAGE_STRING "$PACKAGE_STRING"
1564_ACEOF
1565
1566
1567cat >>confdefs.h <<_ACEOF
1568#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1569_ACEOF
1570
1571
1572# Let the site file select an alternate cache file if it wants to.
1573# Prefer explicitly selected file to automatically selected ones.
1574if test -z "$CONFIG_SITE"; then
1575 if test "x$prefix" != xNONE; then
1576 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1577 else
1578 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1579 fi
1580fi
1581for ac_site_file in $CONFIG_SITE; do
1582 if test -r "$ac_site_file"; then
1583 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1584echo "$as_me: loading site script $ac_site_file" >&6;}
1585 sed 's/^/| /' "$ac_site_file" >&5
1586 . "$ac_site_file"
1587 fi
1588done
1589
1590if test -r "$cache_file"; then
1591 # Some versions of bash will fail to source /dev/null (special
1592 # files actually), so we avoid doing that.
1593 if test -f "$cache_file"; then
1594 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1595echo "$as_me: loading cache $cache_file" >&6;}
1596 case $cache_file in
1597 [\\/]* | ?:[\\/]* ) . $cache_file;;
1598 *) . ./$cache_file;;
1599 esac
1600 fi
1601else
1602 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1603echo "$as_me: creating cache $cache_file" >&6;}
1604 >$cache_file
1605fi
1606
1607# Check that the precious variables saved in the cache have kept the same
1608# value.
1609ac_cache_corrupted=false
1610for ac_var in `(set) 2>&1 |
ac1cb8d3 1611 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
a848cd7e
SC
1612 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1613 eval ac_new_set=\$ac_env_${ac_var}_set
1614 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1615 eval ac_new_val="\$ac_env_${ac_var}_value"
1616 case $ac_old_set,$ac_new_set in
1617 set,)
1618 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1619echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1620 ac_cache_corrupted=: ;;
1621 ,set)
1622 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1623echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1624 ac_cache_corrupted=: ;;
1625 ,);;
1626 *)
1627 if test "x$ac_old_val" != "x$ac_new_val"; then
ac1cb8d3 1628 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
a848cd7e 1629echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
ac1cb8d3 1630 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
a848cd7e 1631echo "$as_me: former value: $ac_old_val" >&2;}
ac1cb8d3 1632 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
a848cd7e 1633echo "$as_me: current value: $ac_new_val" >&2;}
ac1cb8d3 1634 ac_cache_corrupted=:
a848cd7e
SC
1635 fi;;
1636 esac
1637 # Pass precious variables to config.status.
1638 if test "$ac_new_set" = set; then
1639 case $ac_new_val in
1640 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1641 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1642 *) ac_arg=$ac_var=$ac_new_val ;;
1643 esac
1644 case " $ac_configure_args " in
1645 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1646 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1647 esac
1648 fi
1649done
1650if $ac_cache_corrupted; then
1651 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1652echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1653 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1654echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1655 { (exit 1); exit 1; }; }
1656fi
1657
1658ac_ext=c
1659ac_cpp='$CPP $CPPFLAGS'
1660ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1661ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1662ac_compiler_gnu=$ac_cv_c_compiler_gnu
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693ac_aux_dir=
1694for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1695 if test -f $ac_dir/install-sh; then
1696 ac_aux_dir=$ac_dir
1697 ac_install_sh="$ac_aux_dir/install-sh -c"
1698 break
1699 elif test -f $ac_dir/install.sh; then
1700 ac_aux_dir=$ac_dir
1701 ac_install_sh="$ac_aux_dir/install.sh -c"
1702 break
1703 elif test -f $ac_dir/shtool; then
1704 ac_aux_dir=$ac_dir
1705 ac_install_sh="$ac_aux_dir/shtool install -c"
1706 break
1707 fi
1708done
1709if test -z "$ac_aux_dir"; then
1710 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1711echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1712 { (exit 1); exit 1; }; }
1713fi
1714ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1715ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1716ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1717
1718# Make sure we can run config.sub.
1719$ac_config_sub sun4 >/dev/null 2>&1 ||
1720 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1721echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1722 { (exit 1); exit 1; }; }
1723
1724echo "$as_me:$LINENO: checking build system type" >&5
1725echo $ECHO_N "checking build system type... $ECHO_C" >&6
1726if test "${ac_cv_build+set}" = set; then
1727 echo $ECHO_N "(cached) $ECHO_C" >&6
1728else
1729 ac_cv_build_alias=$build_alias
1730test -z "$ac_cv_build_alias" &&
1731 ac_cv_build_alias=`$ac_config_guess`
1732test -z "$ac_cv_build_alias" &&
1733 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1734echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1735 { (exit 1); exit 1; }; }
1736ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1737 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1738echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1739 { (exit 1); exit 1; }; }
1740
1741fi
1742echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1743echo "${ECHO_T}$ac_cv_build" >&6
1744build=$ac_cv_build
1745build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1746build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1747build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1748
1749
1750echo "$as_me:$LINENO: checking host system type" >&5
1751echo $ECHO_N "checking host system type... $ECHO_C" >&6
1752if test "${ac_cv_host+set}" = set; then
1753 echo $ECHO_N "(cached) $ECHO_C" >&6
1754else
1755 ac_cv_host_alias=$host_alias
1756test -z "$ac_cv_host_alias" &&
1757 ac_cv_host_alias=$ac_cv_build_alias
1758ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1759 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1760echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1761 { (exit 1); exit 1; }; }
1762
1763fi
1764echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1765echo "${ECHO_T}$ac_cv_host" >&6
1766host=$ac_cv_host
1767host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1768host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1769host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1770
1771
1772echo "$as_me:$LINENO: checking target system type" >&5
1773echo $ECHO_N "checking target system type... $ECHO_C" >&6
1774if test "${ac_cv_target+set}" = set; then
1775 echo $ECHO_N "(cached) $ECHO_C" >&6
1776else
1777 ac_cv_target_alias=$target_alias
1778test "x$ac_cv_target_alias" = "x" &&
1779 ac_cv_target_alias=$ac_cv_host_alias
1780ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1781 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1782echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1783 { (exit 1); exit 1; }; }
1784
1785fi
1786echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1787echo "${ECHO_T}$ac_cv_target" >&6
1788target=$ac_cv_target
1789target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1790target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1791target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1792
1793
1794# The aliases save the names the user supplied, while $host etc.
1795# will get canonicalized.
1796test -n "$target_alias" &&
1797 test "$program_prefix$program_suffix$program_transform_name" = \
1798 NONENONEs,x,x, &&
1799 program_prefix=${target_alias}-
1800
1801
1802
ceec2216 1803wx_major_version_number=2
dd8df4fc 1804wx_minor_version_number=7
2add9e3c
RD
1805wx_release_number=2
1806wx_subrelease_number=0
a848cd7e 1807
ceec2216
RL
1808WX_RELEASE=$wx_major_version_number.$wx_minor_version_number
1809WX_VERSION=$WX_RELEASE.$wx_release_number
1810WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number
a848cd7e 1811
ceec2216 1812WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number
a848cd7e 1813
a848cd7e 1814
02b05020
VZ
1815wx_top_builddir="`pwd`"
1816
1817
a848cd7e
SC
1818
1819
1820USE_UNIX=1
1821USE_OS2=0
1822USE_WIN32=0
1823USE_DOS=0
1824USE_BEOS=0
1825USE_MAC=0
1826
1827USE_AIX=
1828USE_BSD= USE_DARWIN= USE_FREEBSD=
1829USE_GNU= USE_HPUX=
1830USE_LINUX=
1831USE_NETBSD=
1832USE_OPENBSD=
1833USE_OSF= USE_SGI=
1834USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS=
1835USE_ULTRIX=
1836USE_UNIXWARE=
1837
1838USE_ALPHA=
1839
1840NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1841
b3c86150 1842ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11 DFB"
a848cd7e
SC
1843
1844DEFAULT_wxUSE_COCOA=0
1845DEFAULT_wxUSE_GTK=0
1846DEFAULT_wxUSE_MAC=0
1847DEFAULT_wxUSE_MGL=0
1848DEFAULT_wxUSE_MICROWIN=0
1849DEFAULT_wxUSE_MOTIF=0
1850DEFAULT_wxUSE_MSW=0
1851DEFAULT_wxUSE_PM=0
1852DEFAULT_wxUSE_X11=0
b3c86150 1853DEFAULT_wxUSE_DFB=0
a848cd7e
SC
1854
1855DEFAULT_DEFAULT_wxUSE_COCOA=0
1856DEFAULT_DEFAULT_wxUSE_GTK=0
1857DEFAULT_DEFAULT_wxUSE_MAC=0
1858DEFAULT_DEFAULT_wxUSE_MGL=0
1859DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1860DEFAULT_DEFAULT_wxUSE_MOTIF=0
1861DEFAULT_DEFAULT_wxUSE_MSW=0
1862DEFAULT_DEFAULT_wxUSE_PM=0
1863DEFAULT_DEFAULT_wxUSE_X11=0
b3c86150 1864DEFAULT_DEFAULT_wxUSE_DFB=0
a848cd7e
SC
1865
1866PROGRAM_EXT=
1867SO_SUFFIX=so
1868SAMPLES_RPATH_FLAG=
1869SAMPLES_RPATH_POSTLINK=
1870
a03b8b04
RD
1871DEFAULT_STD_FLAG=yes
1872
a848cd7e
SC
1873case "${host}" in
1874 *-hp-hpux* )
1875 USE_HPUX=1
1876 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1877 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1878 SO_SUFFIX=sl
1879 cat >>confdefs.h <<\_ACEOF
1880#define __HPUX__ 1
1881_ACEOF
1882
2eef8513 1883
c92ad099 1884 CPPFLAGS="-D_HPUX_SOURCE $CPPFLAGS"
a848cd7e
SC
1885 ;;
1886 *-*-linux* )
1887 USE_LINUX=1
1888 cat >>confdefs.h <<\_ACEOF
1889#define __LINUX__ 1
1890_ACEOF
1891
1892 TMP=`uname -m`
1893 if test "x$TMP" = "xalpha"; then
1894 USE_ALPHA=1
1895 cat >>confdefs.h <<\_ACEOF
1896#define __ALPHA__ 1
1897_ACEOF
1898
1899 fi
1900 DEFAULT_DEFAULT_wxUSE_GTK=1
1901 ;;
1902 *-*-gnu* | *-*-k*bsd*-gnu )
1903 USE_GNU=1
1904 TMP=`uname -m`
1905 if test "x$TMP" = "xalpha"; then
1906 USE_ALPHA=1
1907 cat >>confdefs.h <<\_ACEOF
1908#define __ALPHA__ 1
1909_ACEOF
1910
1911 fi
1912 DEFAULT_DEFAULT_wxUSE_GTK=1
1913 ;;
1914 *-*-irix5* | *-*-irix6* )
1915 USE_SGI=1
1916 USE_SVR4=1
1917 cat >>confdefs.h <<\_ACEOF
1918#define __SGI__ 1
1919_ACEOF
1920
1921 cat >>confdefs.h <<\_ACEOF
1922#define __SVR4__ 1
1923_ACEOF
1924
1925 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1926 ;;
1927 *-*-solaris2* )
1928 USE_SUN=1
1929 USE_SOLARIS=1
1930 USE_SVR4=1
1931 cat >>confdefs.h <<\_ACEOF
1932#define __SUN__ 1
1933_ACEOF
1934
1935 cat >>confdefs.h <<\_ACEOF
1936#define __SOLARIS__ 1
1937_ACEOF
1938
1939 cat >>confdefs.h <<\_ACEOF
1940#define __SVR4__ 1
1941_ACEOF
1942
1943 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1944 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1945 ;;
1946 *-*-sunos4* )
1947 USE_SUN=1
1948 USE_SUNOS=1
1949 USE_BSD=1
1950 cat >>confdefs.h <<\_ACEOF
1951#define __SUN__ 1
1952_ACEOF
1953
1954 cat >>confdefs.h <<\_ACEOF
1955#define __SUNOS__ 1
1956_ACEOF
1957
1958 cat >>confdefs.h <<\_ACEOF
1959#define __BSD__ 1
1960_ACEOF
1961
1962 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1963 ;;
1964 *-*-freebsd*)
1965 USE_BSD=1
1966 USE_FREEBSD=1
1967 cat >>confdefs.h <<\_ACEOF
1968#define __FREEBSD__ 1
1969_ACEOF
1970
1971 cat >>confdefs.h <<\_ACEOF
1972#define __BSD__ 1
1973_ACEOF
1974
1975 DEFAULT_DEFAULT_wxUSE_GTK=1
1976 ;;
c9a66001 1977 *-*-openbsd*|*-*-mirbsd*)
a848cd7e
SC
1978 USE_BSD=1
1979 USE_OPENBSD=1
1980 cat >>confdefs.h <<\_ACEOF
1981#define __OPENBSD__ 1
1982_ACEOF
1983
1984 cat >>confdefs.h <<\_ACEOF
1985#define __BSD__ 1
1986_ACEOF
1987
1988 DEFAULT_DEFAULT_wxUSE_GTK=1
1989 ;;
1990 *-*-netbsd*)
1991 USE_BSD=1
1992 USE_NETBSD=1
1993 cat >>confdefs.h <<\_ACEOF
1994#define __NETBSD__ 1
1995_ACEOF
1996
1997 cat >>confdefs.h <<\_ACEOF
1998#define __BSD__ 1
1999_ACEOF
2000
2001 DEFAULT_DEFAULT_wxUSE_GTK=1
728258f4 2002 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
def7c04a 2003
def7c04a 2004 CPPFLAGS="-D_NETBSD_SOURCE -D_LIBC $CPPFLAGS"
a848cd7e
SC
2005 ;;
2006 *-*-osf* )
2007 USE_ALPHA=1
2008 USE_OSF=1
2009 cat >>confdefs.h <<\_ACEOF
2010#define __ALPHA__ 1
2011_ACEOF
2012
2013 cat >>confdefs.h <<\_ACEOF
2014#define __OSF__ 1
2015_ACEOF
2016
2017 DEFAULT_DEFAULT_wxUSE_MOTIF=1
2018 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2019 ;;
2020 *-*-dgux5* )
2021 USE_ALPHA=1
2022 USE_SVR4=1
2023 cat >>confdefs.h <<\_ACEOF
2024#define __ALPHA__ 1
2025_ACEOF
2026
2027 cat >>confdefs.h <<\_ACEOF
2028#define __SVR4__ 1
2029_ACEOF
2030
2031 DEFAULT_DEFAULT_wxUSE_MOTIF=1
2032 ;;
2033 *-*-sysv5* )
2034 USE_SYSV=1
2035 USE_SVR4=1
2036 cat >>confdefs.h <<\_ACEOF
2037#define __SYSV__ 1
2038_ACEOF
2039
2040 cat >>confdefs.h <<\_ACEOF
2041#define __SVR4__ 1
2042_ACEOF
2043
2044 DEFAULT_DEFAULT_wxUSE_MOTIF=1
2045 ;;
2046 *-*-aix* )
2047 USE_AIX=1
2048 USE_SYSV=1
2049 USE_SVR4=1
2050 SO_SUFFIX=a
2051 cat >>confdefs.h <<\_ACEOF
2052#define __AIX__ 1
2053_ACEOF
2054
2055 cat >>confdefs.h <<\_ACEOF
2056#define __SYSV__ 1
2057_ACEOF
2058
2059 cat >>confdefs.h <<\_ACEOF
2060#define __SVR4__ 1
2061_ACEOF
2062
2063 DEFAULT_DEFAULT_wxUSE_MOTIF=1
2064 ;;
2065
2066 *-*-*UnixWare*)
2067 USE_SYSV=1
2068 USE_SVR4=1
2069 USE_UNIXWARE=1
2070 cat >>confdefs.h <<\_ACEOF
2071#define __UNIXWARE__ 1
2072_ACEOF
2073
2074 ;;
2075
2076 *-*-cygwin* | *-*-mingw32* )
2077 SO_SUFFIX=dll
2078 PROGRAM_EXT=".exe"
a848cd7e
SC
2079 DEFAULT_DEFAULT_wxUSE_MSW=1
2080 ;;
2081
2082 *-pc-msdosdjgpp )
2083 USE_UNIX=0
2084 USE_DOS=1
2085 cat >>confdefs.h <<\_ACEOF
2086#define __DOS__ 1
2087_ACEOF
2088
2089 PROGRAM_EXT=".exe"
2090 DEFAULT_DEFAULT_wxUSE_MGL=1
a848cd7e
SC
2091 ;;
2092
2093 *-pc-os2_emx | *-pc-os2-emx )
2094 cat >>confdefs.h <<\_ACEOF
2095#define __EMX__ 1
2096_ACEOF
2097
2098 USE_OS2=1
2099 cat >>confdefs.h <<\_ACEOF
2100#define __OS2__ 1
2101_ACEOF
2102
2103 PROGRAM_EXT=".exe"
2104 DEFAULT_DEFAULT_wxUSE_PM=1
2105 CXX=gcc
2106 LDFLAGS="$LDFLAGS -Zcrtdll"
2107 ac_executable_extensions=".exe"
2108 export ac_executable_extensions
2109 ac_save_IFS="$IFS"
2110 IFS='\\'
2111 ac_TEMP_PATH=
2112 for ac_dir in $PATH; do
2113 IFS=$ac_save_IFS
2114 if test -z "$ac_TEMP_PATH"; then
2115 ac_TEMP_PATH="$ac_dir"
2116 else
2117 ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
2118 fi
2119 done
2120 export PATH="$ac_TEMP_PATH"
2121 unset ac_TEMP_PATH
a03b8b04 2122 DEFAULT_STD_FLAG=no
a848cd7e
SC
2123 ;;
2124
cfda0ea8 2125 *-*-darwin* )
a848cd7e
SC
2126 USE_BSD=1
2127 USE_DARWIN=1
2128 SO_SUFFIX=dylib
2129 cat >>confdefs.h <<\_ACEOF
2130#define __BSD__ 1
2131_ACEOF
2132
2133 cat >>confdefs.h <<\_ACEOF
2134#define __DARWIN__ 1
a848cd7e
SC
2135_ACEOF
2136
2137 cat >>confdefs.h <<\_ACEOF
2138#define TARGET_CARBON 1
2139_ACEOF
2140
2141 DEFAULT_DEFAULT_wxUSE_MAC=1
a03b8b04 2142 DEFAULT_STD_FLAG=no
a848cd7e 2143 ;;
1e9e8aba
DE
2144 powerpc-apple-macos* )
2145 USE_UNIX=0
2146 ac_cv_c_bigendian=yes
2147 SO_SUFFIX=shlib
2148 DEFAULT_DEFAULT_wxUSE_MAC=1
a03b8b04 2149 DEFAULT_STD_FLAG=no
1e9e8aba 2150 ;;
a848cd7e
SC
2151
2152 *-*-beos* )
2153 USE_BEOS=1
2154 cat >>confdefs.h <<\_ACEOF
2155#define __BEOS__ 1
2156_ACEOF
2157
2158 ;;
2159
2160 *)
c9a66001
VZ
2161 { echo "$as_me:$LINENO: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&5
2162echo "$as_me: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&2;}
2163 { echo "$as_me:$LINENO: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&5
2164echo "$as_me: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&2;}
5acfd58d
MW
2165
2166 DEFAULT_DEFAULT_wxUSE_X11=1
2167 DEFAULT_wxUSE_SHARED=no
a848cd7e
SC
2168esac
2169
2170
2171
2172
2173 wx_arg_cache_file="configarg.cache"
2174 echo "loading argument cache $wx_arg_cache_file"
2175 rm -f ${wx_arg_cache_file}.tmp
2176 touch ${wx_arg_cache_file}.tmp
2177 touch ${wx_arg_cache_file}
2178
2179
2180DEBUG_CONFIGURE=0
2181if test $DEBUG_CONFIGURE = 1; then
2182 DEFAULT_wxUSE_UNIVERSAL=no
2183 DEFAULT_wxUSE_STL=no
2184
2185 DEFAULT_wxUSE_NANOX=no
2186
2187 DEFAULT_wxUSE_THREADS=yes
2188
5acfd58d 2189 DEFAULT_wxUSE_SHARED=${DEFAULT_wxUSE_SHARED:-yes}
a848cd7e
SC
2190 DEFAULT_wxUSE_OPTIMISE=no
2191 DEFAULT_wxUSE_PROFILE=no
2192 DEFAULT_wxUSE_NO_DEPS=no
2193 DEFAULT_wxUSE_NO_RTTI=no
2194 DEFAULT_wxUSE_NO_EXCEPTIONS=no
7afc46ab 2195 DEFAULT_wxUSE_UNIVERSAL_BINARY=no
ffa0583f 2196 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2197 DEFAULT_wxUSE_PERMISSIVE=no
2198 DEFAULT_wxUSE_DEBUG_FLAG=yes
2199 DEFAULT_wxUSE_DEBUG_INFO=yes
2200 DEFAULT_wxUSE_DEBUG_GDB=yes
2201 DEFAULT_wxUSE_MEM_TRACING=no
2202 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2203 DEFAULT_wxUSE_DMALLOC=no
2204 DEFAULT_wxUSE_APPLE_IEEE=no
2205
2206 DEFAULT_wxUSE_EXCEPTIONS=no
2207 DEFAULT_wxUSE_LOG=yes
2208 DEFAULT_wxUSE_LOGWINDOW=no
2209 DEFAULT_wxUSE_LOGGUI=no
2210 DEFAULT_wxUSE_LOGDIALOG=no
2211
2212 DEFAULT_wxUSE_GUI=yes
2213 DEFAULT_wxUSE_CONTROLS=no
2214
2215 DEFAULT_wxUSE_REGEX=no
2216 DEFAULT_wxUSE_XML=no
2217 DEFAULT_wxUSE_EXPAT=no
2218 DEFAULT_wxUSE_ZLIB=no
2219 DEFAULT_wxUSE_LIBPNG=no
2220 DEFAULT_wxUSE_LIBJPEG=no
2221 DEFAULT_wxUSE_LIBTIFF=no
2222 DEFAULT_wxUSE_LIBXPM=no
2223 DEFAULT_wxUSE_LIBMSPACK=no
2224 DEFAULT_wxUSE_LIBSDL=no
d1c38808 2225 DEFAULT_wxUSE_LIBGNOMEPRINT=no
2b850ae1 2226 DEFAULT_wxUSE_LIBGNOMEVFS=no
3565d135 2227 DEFAULT_wxUSE_LIBHILDON=no
a848cd7e
SC
2228 DEFAULT_wxUSE_ODBC=no
2229 DEFAULT_wxUSE_OPENGL=no
2230
2231 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
eaff0f0d 2232 DEFAULT_wxUSE_STACKWALKER=no
36b6448c 2233 DEFAULT_wxUSE_DEBUGREPORT=no
a848cd7e
SC
2234 DEFAULT_wxUSE_SNGLINST_CHECKER=no
2235 DEFAULT_wxUSE_STD_IOSTREAM=no
59746b65 2236 DEFAULT_wxUSE_STD_STRING=no
a848cd7e
SC
2237 DEFAULT_wxUSE_CMDLINE_PARSER=no
2238 DEFAULT_wxUSE_DATETIME=no
2239 DEFAULT_wxUSE_TIMER=no
2240 DEFAULT_wxUSE_STOPWATCH=no
2241 DEFAULT_wxUSE_FILE=no
2242 DEFAULT_wxUSE_FFILE=no
07158944 2243 DEFAULT_wxUSE_STDPATHS=no
a848cd7e
SC
2244 DEFAULT_wxUSE_TEXTBUFFER=no
2245 DEFAULT_wxUSE_TEXTFILE=no
2246 DEFAULT_wxUSE_SOUND=no
3b57de8b 2247 DEFAULT_wxUSE_MEDIACTRL=no
f10e38c4 2248 DEFAULT_wxUSE_GSTREAMER8=no
8f3773fd 2249 DEFAULT_wxUSE_PRINTF_POS_PARAMS=no
a848cd7e
SC
2250 DEFAULT_wxUSE_INTL=no
2251 DEFAULT_wxUSE_CONFIG=no
2252 DEFAULT_wxUSE_FONTMAP=no
2253 DEFAULT_wxUSE_STREAMS=no
2254 DEFAULT_wxUSE_SOCKETS=no
2255 DEFAULT_wxUSE_OLE=no
2256 DEFAULT_wxUSE_DATAOBJ=no
2257 DEFAULT_wxUSE_DIALUP_MANAGER=no
2258 DEFAULT_wxUSE_JOYSTICK=no
2259 DEFAULT_wxUSE_DYNLIB_CLASS=no
2260 DEFAULT_wxUSE_DYNAMIC_LOADER=no
2261 DEFAULT_wxUSE_LONGLONG=no
2262 DEFAULT_wxUSE_GEOMETRY=no
2263
2264 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2265 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2266 DEFAULT_wxUSE_POSTSCRIPT=no
2267
2268 DEFAULT_wxUSE_CLIPBOARD=no
2269 DEFAULT_wxUSE_TOOLTIPS=no
2270 DEFAULT_wxUSE_DRAG_AND_DROP=no
2271 DEFAULT_wxUSE_DRAGIMAGE=no
2272 DEFAULT_wxUSE_SPLINES=no
fbe2ca43 2273 DEFAULT_wxUSE_MOUSEWHEEL=no
a848cd7e 2274
8a7b1113 2275 DEFAULT_wxUSE_MDI=no
a848cd7e
SC
2276 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2277 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2278 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2279
2280 DEFAULT_wxUSE_RESOURCES=no
2281 DEFAULT_wxUSE_CONSTRAINTS=no
2282 DEFAULT_wxUSE_IPC=no
2283 DEFAULT_wxUSE_HELP=no
2284 DEFAULT_wxUSE_MS_HTML_HELP=no
2285 DEFAULT_wxUSE_WXHTML_HELP=no
2286 DEFAULT_wxUSE_TREELAYOUT=no
2287 DEFAULT_wxUSE_METAFILE=no
2288 DEFAULT_wxUSE_MIMETYPE=no
2289 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2290 DEFAULT_wxUSE_PROTOCOL=no
2291 DEFAULT_wxUSE_PROTOCOL_HTTP=no
2292 DEFAULT_wxUSE_PROTOCOL_FTP=no
2293 DEFAULT_wxUSE_PROTOCOL_FILE=no
2294 DEFAULT_wxUSE_URL=no
ca5c6ac3 2295 DEFAULT_wxUSE_VARIANT=no
a848cd7e 2296
319c5ed4 2297 DEFAULT_wxUSE_ABOUTDLG=no
a848cd7e
SC
2298 DEFAULT_wxUSE_COMMONDLGS=no
2299 DEFAULT_wxUSE_CHOICEDLG=no
2300 DEFAULT_wxUSE_COLOURDLG=no
2301 DEFAULT_wxUSE_DIRDLG=no
2302 DEFAULT_wxUSE_FILEDLG=no
2303 DEFAULT_wxUSE_FINDREPLDLG=no
2304 DEFAULT_wxUSE_FONTDLG=no
2305 DEFAULT_wxUSE_MSGDLG=no
2306 DEFAULT_wxUSE_NUMBERDLG=no
2307 DEFAULT_wxUSE_TEXTDLG=no
2308 DEFAULT_wxUSE_SPLASH=no
2309 DEFAULT_wxUSE_STARTUP_TIPS=no
2310 DEFAULT_wxUSE_PROGRESSDLG=no
2311 DEFAULT_wxUSE_WIZARDDLG=no
2312
2313 DEFAULT_wxUSE_MENUS=no
2314 DEFAULT_wxUSE_MINIFRAME=no
2315 DEFAULT_wxUSE_HTML=no
91dea314 2316 DEFAULT_wxUSE_RICHTEXT=no
9a8f0513 2317 DEFAULT_wxUSE_XRC=no
3f60522a 2318 DEFAULT_wxUSE_AUI=no
646b6ec1 2319 DEFAULT_wxUSE_WEBKIT=no
a848cd7e
SC
2320 DEFAULT_wxUSE_FILESYSTEM=no
2321 DEFAULT_wxUSE_FS_INET=no
2322 DEFAULT_wxUSE_FS_ZIP=no
26e422a9 2323 DEFAULT_wxUSE_FS_ARCHIVE=no
a848cd7e 2324 DEFAULT_wxUSE_BUSYINFO=no
9e8e867f 2325 DEFAULT_wxUSE_ARCHIVE_STREAMS=no
a848cd7e 2326 DEFAULT_wxUSE_ZIPSTREAM=no
26e422a9 2327 DEFAULT_wxUSE_TARSTREAM=no
a848cd7e
SC
2328 DEFAULT_wxUSE_VALIDATORS=no
2329
2330 DEFAULT_wxUSE_ACCEL=no
3ea50042 2331 DEFAULT_wxUSE_ANIMATIONCTRL=no
a848cd7e
SC
2332 DEFAULT_wxUSE_BUTTON=no
2333 DEFAULT_wxUSE_BMPBUTTON=no
95a46303 2334 DEFAULT_wxUSE_BITMAPCOMBOBOX=no
a848cd7e
SC
2335 DEFAULT_wxUSE_CALCTRL=no
2336 DEFAULT_wxUSE_CARET=no
2337 DEFAULT_wxUSE_CHECKBOX=no
2338 DEFAULT_wxUSE_CHECKLST=no
2339 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 2340 DEFAULT_wxUSE_CHOICEBOOK=no
bd915ace 2341 DEFAULT_wxUSE_COLLPANE=no
e9263684 2342 DEFAULT_wxUSE_COLOURPICKERCTRL=no
a848cd7e 2343 DEFAULT_wxUSE_COMBOBOX=no
a57d600f 2344 DEFAULT_wxUSE_COMBOCTRL=no
da98e9be 2345 DEFAULT_wxUSE_DATEPICKCTRL=no
a848cd7e 2346 DEFAULT_wxUSE_DISPLAY=no
88bbc332 2347 DEFAULT_wxUSE_DETECT_SM=no
e9263684
VZ
2348 DEFAULT_wxUSE_DIRPICKERCTRL=no
2349 DEFAULT_wxUSE_FILEPICKERCTRL=no
2350 DEFAULT_wxUSE_FONTPICKERCTRL=no
a848cd7e 2351 DEFAULT_wxUSE_GAUGE=no
f43426c1 2352 DEFAULT_wxUSE_GRAPHICS_CONTEXT=no
a848cd7e 2353 DEFAULT_wxUSE_GRID=no
6954625c 2354 DEFAULT_wxUSE_HYPERLINKCTRL=no
20e34ecc 2355 DEFAULT_wxUSE_DATAVIEWCTRL=no
a848cd7e
SC
2356 DEFAULT_wxUSE_IMAGLIST=no
2357 DEFAULT_wxUSE_LISTBOOK=no
2358 DEFAULT_wxUSE_LISTBOX=no
2359 DEFAULT_wxUSE_LISTCTRL=no
2360 DEFAULT_wxUSE_NOTEBOOK=no
a57d600f 2361 DEFAULT_wxUSE_ODCOMBOBOX=no
a848cd7e
SC
2362 DEFAULT_wxUSE_RADIOBOX=no
2363 DEFAULT_wxUSE_RADIOBTN=no
2364 DEFAULT_wxUSE_SASH=no
2365 DEFAULT_wxUSE_SCROLLBAR=no
2366 DEFAULT_wxUSE_SLIDER=no
2367 DEFAULT_wxUSE_SPINBTN=no
2368 DEFAULT_wxUSE_SPINCTRL=no
2369 DEFAULT_wxUSE_SPLITTER=no
2370 DEFAULT_wxUSE_STATBMP=no
2371 DEFAULT_wxUSE_STATBOX=no
2372 DEFAULT_wxUSE_STATLINE=no
2373 DEFAULT_wxUSE_STATTEXT=no
2374 DEFAULT_wxUSE_STATUSBAR=yes
f10e38c4 2375 DEFAULT_wxUSE_TAB_DIALOG=no
a848cd7e
SC
2376 DEFAULT_wxUSE_TEXTCTRL=no
2377 DEFAULT_wxUSE_TOGGLEBTN=no
2378 DEFAULT_wxUSE_TOOLBAR=no
2379 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
0093c2fc 2380 DEFAULT_wxUSE_TREEBOOK=no
5ec3bc43 2381 DEFAULT_wxUSE_TOOLBOOK=no
a848cd7e
SC
2382 DEFAULT_wxUSE_TREECTRL=no
2383 DEFAULT_wxUSE_POPUPWIN=no
2384 DEFAULT_wxUSE_TIPWINDOW=no
2385
2386 DEFAULT_wxUSE_UNICODE=no
2387 DEFAULT_wxUSE_UNICODE_MSLU=no
2388 DEFAULT_wxUSE_WCSRTOMBS=no
2389
2390 DEFAULT_wxUSE_PALETTE=no
2391 DEFAULT_wxUSE_IMAGE=no
2392 DEFAULT_wxUSE_GIF=no
2393 DEFAULT_wxUSE_PCX=no
bb9e79c0 2394 DEFAULT_wxUSE_TGA=no
a848cd7e
SC
2395 DEFAULT_wxUSE_PNM=no
2396 DEFAULT_wxUSE_IFF=no
2397 DEFAULT_wxUSE_XPM=no
2398 DEFAULT_wxUSE_ICO_CUR=no
2399 DEFAULT_wxUSE_ACCESSIBILITY=no
2400
2401 DEFAULT_wxUSE_MONOLITHIC=no
2402 DEFAULT_wxUSE_PLUGINS=no
2403 DEFAULT_wxUSE_OFFICIAL_BUILD=no
2404else
2405 DEFAULT_wxUSE_UNIVERSAL=no
2406 DEFAULT_wxUSE_STL=no
2407
2408 DEFAULT_wxUSE_NANOX=no
2409
2410 DEFAULT_wxUSE_THREADS=yes
2411
5acfd58d 2412 DEFAULT_wxUSE_SHARED=${DEFAULT_wxUSE_SHARED:-yes}
a848cd7e
SC
2413 DEFAULT_wxUSE_OPTIMISE=yes
2414 DEFAULT_wxUSE_PROFILE=no
2415 DEFAULT_wxUSE_NO_DEPS=no
2416 DEFAULT_wxUSE_NO_RTTI=no
2417 DEFAULT_wxUSE_NO_EXCEPTIONS=no
7afc46ab 2418 DEFAULT_wxUSE_UNIVERSAL_BINARY=no
ffa0583f 2419 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2420 DEFAULT_wxUSE_PERMISSIVE=no
2421 DEFAULT_wxUSE_DEBUG_FLAG=no
2422 DEFAULT_wxUSE_DEBUG_INFO=no
2423 DEFAULT_wxUSE_DEBUG_GDB=no
2424 DEFAULT_wxUSE_MEM_TRACING=no
2425 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2426 DEFAULT_wxUSE_DMALLOC=no
2427 DEFAULT_wxUSE_APPLE_IEEE=yes
2428
2429 DEFAULT_wxUSE_EXCEPTIONS=yes
2430 DEFAULT_wxUSE_LOG=yes
2431 DEFAULT_wxUSE_LOGWINDOW=yes
2432 DEFAULT_wxUSE_LOGGUI=yes
2433 DEFAULT_wxUSE_LOGDIALOG=yes
2434
2435 DEFAULT_wxUSE_GUI=yes
2436
2437 DEFAULT_wxUSE_REGEX=yes
2438 DEFAULT_wxUSE_XML=yes
2439 DEFAULT_wxUSE_EXPAT=yes
2440 DEFAULT_wxUSE_ZLIB=yes
2441 DEFAULT_wxUSE_LIBPNG=yes
2442 DEFAULT_wxUSE_LIBJPEG=yes
2443 DEFAULT_wxUSE_LIBTIFF=yes
2444 DEFAULT_wxUSE_LIBXPM=yes
2445 DEFAULT_wxUSE_LIBMSPACK=yes
2446 DEFAULT_wxUSE_LIBSDL=no
a03b8b04 2447 DEFAULT_wxUSE_LIBGNOMEPRINT=no
2b850ae1 2448 DEFAULT_wxUSE_LIBGNOMEVFS=no
3565d135 2449 DEFAULT_wxUSE_LIBHILDON=no
a848cd7e 2450 DEFAULT_wxUSE_ODBC=no
52cb607e 2451 DEFAULT_wxUSE_OPENGL=no
a848cd7e
SC
2452
2453 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
eaff0f0d 2454 DEFAULT_wxUSE_STACKWALKER=yes
6671c68b 2455 DEFAULT_wxUSE_DEBUGREPORT=yes
a848cd7e 2456 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
a03b8b04
RD
2457 DEFAULT_wxUSE_STD_IOSTREAM=$DEFAULT_STD_FLAG
2458 DEFAULT_wxUSE_STD_STRING=$DEFAULT_STD_FLAG
a848cd7e
SC
2459 DEFAULT_wxUSE_CMDLINE_PARSER=yes
2460 DEFAULT_wxUSE_DATETIME=yes
2461 DEFAULT_wxUSE_TIMER=yes
2462 DEFAULT_wxUSE_STOPWATCH=yes
2463 DEFAULT_wxUSE_FILE=yes
2464 DEFAULT_wxUSE_FFILE=yes
07158944 2465 DEFAULT_wxUSE_STDPATHS=yes
a848cd7e
SC
2466 DEFAULT_wxUSE_TEXTBUFFER=yes
2467 DEFAULT_wxUSE_TEXTFILE=yes
2468 DEFAULT_wxUSE_SOUND=yes
3b57de8b 2469 DEFAULT_wxUSE_MEDIACTRL=no
f10e38c4 2470 DEFAULT_wxUSE_GSTREAMER8=no
15291213 2471 DEFAULT_wxUSE_PRINTF_POS_PARAMS=yes
a848cd7e
SC
2472 DEFAULT_wxUSE_INTL=yes
2473 DEFAULT_wxUSE_CONFIG=yes
2474 DEFAULT_wxUSE_FONTMAP=yes
2475 DEFAULT_wxUSE_STREAMS=yes
2476 DEFAULT_wxUSE_SOCKETS=yes
2477 DEFAULT_wxUSE_OLE=yes
2478 DEFAULT_wxUSE_DATAOBJ=yes
2479 DEFAULT_wxUSE_DIALUP_MANAGER=yes
2480 DEFAULT_wxUSE_JOYSTICK=yes
2481 DEFAULT_wxUSE_DYNLIB_CLASS=yes
2482 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
2483 DEFAULT_wxUSE_LONGLONG=yes
2484 DEFAULT_wxUSE_GEOMETRY=yes
2485
2486 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2487 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2488 DEFAULT_wxUSE_POSTSCRIPT=yes
2489
2490 DEFAULT_wxUSE_CLIPBOARD=yes
2491 DEFAULT_wxUSE_TOOLTIPS=yes
2492 DEFAULT_wxUSE_DRAG_AND_DROP=yes
2493 DEFAULT_wxUSE_DRAGIMAGE=yes
2494 DEFAULT_wxUSE_SPLINES=yes
fbe2ca43 2495 DEFAULT_wxUSE_MOUSEWHEEL=yes
a848cd7e 2496
8a7b1113 2497 DEFAULT_wxUSE_MDI=yes
a848cd7e
SC
2498 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2499 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2500 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2501
2502 DEFAULT_wxUSE_RESOURCES=no
2503 DEFAULT_wxUSE_CONSTRAINTS=yes
2504 DEFAULT_wxUSE_IPC=yes
2505 DEFAULT_wxUSE_HELP=yes
2506 DEFAULT_wxUSE_MS_HTML_HELP=yes
2507 DEFAULT_wxUSE_WXHTML_HELP=yes
2508 DEFAULT_wxUSE_TREELAYOUT=yes
2509 DEFAULT_wxUSE_METAFILE=yes
2510 DEFAULT_wxUSE_MIMETYPE=yes
2511 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
2512 DEFAULT_wxUSE_PROTOCOL=yes
2513 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2514 DEFAULT_wxUSE_PROTOCOL_FTP=yes
2515 DEFAULT_wxUSE_PROTOCOL_FILE=yes
2516 DEFAULT_wxUSE_URL=yes
ca5c6ac3 2517 DEFAULT_wxUSE_VARIANT=yes
a848cd7e 2518
319c5ed4 2519 DEFAULT_wxUSE_ABOUTDLG=yes
a848cd7e
SC
2520 DEFAULT_wxUSE_COMMONDLGS=yes
2521 DEFAULT_wxUSE_CHOICEDLG=yes
2522 DEFAULT_wxUSE_COLOURDLG=yes
2523 DEFAULT_wxUSE_DIRDLG=yes
2524 DEFAULT_wxUSE_FILEDLG=yes
2525 DEFAULT_wxUSE_FINDREPLDLG=yes
2526 DEFAULT_wxUSE_FONTDLG=yes
2527 DEFAULT_wxUSE_MSGDLG=yes
2528 DEFAULT_wxUSE_NUMBERDLG=yes
2529 DEFAULT_wxUSE_TEXTDLG=yes
2530 DEFAULT_wxUSE_SPLASH=yes
2531 DEFAULT_wxUSE_STARTUP_TIPS=yes
2532 DEFAULT_wxUSE_PROGRESSDLG=yes
2533 DEFAULT_wxUSE_WIZARDDLG=yes
2534
2535 DEFAULT_wxUSE_MENUS=yes
2536 DEFAULT_wxUSE_MINIFRAME=yes
2537 DEFAULT_wxUSE_HTML=yes
91dea314 2538 DEFAULT_wxUSE_RICHTEXT=yes
9a8f0513 2539 DEFAULT_wxUSE_XRC=yes
3f60522a 2540 DEFAULT_wxUSE_AUI=yes
646b6ec1 2541 DEFAULT_wxUSE_WEBKIT=yes
a848cd7e
SC
2542 DEFAULT_wxUSE_FILESYSTEM=yes
2543 DEFAULT_wxUSE_FS_INET=yes
2544 DEFAULT_wxUSE_FS_ZIP=yes
26e422a9 2545 DEFAULT_wxUSE_FS_ARCHIVE=yes
a848cd7e 2546 DEFAULT_wxUSE_BUSYINFO=yes
9e8e867f 2547 DEFAULT_wxUSE_ARCHIVE_STREAMS=yes
a848cd7e 2548 DEFAULT_wxUSE_ZIPSTREAM=yes
26e422a9 2549 DEFAULT_wxUSE_TARSTREAM=yes
a848cd7e
SC
2550 DEFAULT_wxUSE_VALIDATORS=yes
2551
2552 DEFAULT_wxUSE_ACCEL=yes
3ea50042 2553 DEFAULT_wxUSE_ANIMATIONCTRL=yes
a848cd7e
SC
2554 DEFAULT_wxUSE_BUTTON=yes
2555 DEFAULT_wxUSE_BMPBUTTON=yes
95a46303 2556 DEFAULT_wxUSE_BITMAPCOMBOBOX=yes
a848cd7e
SC
2557 DEFAULT_wxUSE_CALCTRL=yes
2558 DEFAULT_wxUSE_CARET=yes
2559 DEFAULT_wxUSE_CHECKBOX=yes
2560 DEFAULT_wxUSE_CHECKLST=yes
2561 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 2562 DEFAULT_wxUSE_CHOICEBOOK=yes
bd915ace 2563 DEFAULT_wxUSE_COLLPANE=yes
e9263684 2564 DEFAULT_wxUSE_COLOURPICKERCTRL=yes
a848cd7e 2565 DEFAULT_wxUSE_COMBOBOX=yes
a57d600f 2566 DEFAULT_wxUSE_COMBOCTRL=yes
da98e9be 2567 DEFAULT_wxUSE_DATEPICKCTRL=yes
a848cd7e 2568 DEFAULT_wxUSE_DISPLAY=yes
88bbc332 2569 DEFAULT_wxUSE_DETECT_SM=yes
e9263684
VZ
2570 DEFAULT_wxUSE_DIRPICKERCTRL=yes
2571 DEFAULT_wxUSE_FILEPICKERCTRL=yes
2572 DEFAULT_wxUSE_FONTPICKERCTRL=yes
a848cd7e
SC
2573 DEFAULT_wxUSE_GAUGE=yes
2574 DEFAULT_wxUSE_GRID=yes
f43426c1 2575 DEFAULT_wxUSE_GRAPHICS_CONTEXT=no
6954625c 2576 DEFAULT_wxUSE_HYPERLINKCTRL=yes
20e34ecc 2577 DEFAULT_wxUSE_DATAVIEWCTRL=no
a848cd7e
SC
2578 DEFAULT_wxUSE_IMAGLIST=yes
2579 DEFAULT_wxUSE_LISTBOOK=yes
2580 DEFAULT_wxUSE_LISTBOX=yes
2581 DEFAULT_wxUSE_LISTCTRL=yes
2582 DEFAULT_wxUSE_NOTEBOOK=yes
a57d600f 2583 DEFAULT_wxUSE_ODCOMBOBOX=yes
a848cd7e
SC
2584 DEFAULT_wxUSE_RADIOBOX=yes
2585 DEFAULT_wxUSE_RADIOBTN=yes
2586 DEFAULT_wxUSE_SASH=yes
2587 DEFAULT_wxUSE_SCROLLBAR=yes
2588 DEFAULT_wxUSE_SLIDER=yes
2589 DEFAULT_wxUSE_SPINBTN=yes
2590 DEFAULT_wxUSE_SPINCTRL=yes
2591 DEFAULT_wxUSE_SPLITTER=yes
2592 DEFAULT_wxUSE_STATBMP=yes
2593 DEFAULT_wxUSE_STATBOX=yes
2594 DEFAULT_wxUSE_STATLINE=yes
2595 DEFAULT_wxUSE_STATTEXT=yes
2596 DEFAULT_wxUSE_STATUSBAR=yes
f10e38c4 2597 DEFAULT_wxUSE_TAB_DIALOG=no
a848cd7e
SC
2598 DEFAULT_wxUSE_TEXTCTRL=yes
2599 DEFAULT_wxUSE_TOGGLEBTN=yes
2600 DEFAULT_wxUSE_TOOLBAR=yes
2601 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
0093c2fc 2602 DEFAULT_wxUSE_TREEBOOK=yes
5ec3bc43 2603 DEFAULT_wxUSE_TOOLBOOK=yes
a848cd7e
SC
2604 DEFAULT_wxUSE_TREECTRL=yes
2605 DEFAULT_wxUSE_POPUPWIN=yes
2606 DEFAULT_wxUSE_TIPWINDOW=yes
2607
78de529b 2608 DEFAULT_wxUSE_UNICODE=no
a848cd7e
SC
2609 DEFAULT_wxUSE_UNICODE_MSLU=yes
2610 DEFAULT_wxUSE_WCSRTOMBS=no
2611
2612 DEFAULT_wxUSE_PALETTE=yes
2613 DEFAULT_wxUSE_IMAGE=yes
2614 DEFAULT_wxUSE_GIF=yes
2615 DEFAULT_wxUSE_PCX=yes
bb9e79c0
VZ
2616 DEFAULT_wxUSE_TGA=yes
2617 DEFAULT_wxUSE_IFF=no DEFAULT_wxUSE_PNM=yes
a848cd7e
SC
2618 DEFAULT_wxUSE_XPM=yes
2619 DEFAULT_wxUSE_ICO_CUR=yes
2620 DEFAULT_wxUSE_ACCESSIBILITY=no
2621
2622 DEFAULT_wxUSE_MONOLITHIC=no
2623 DEFAULT_wxUSE_PLUGINS=no
2624 DEFAULT_wxUSE_OFFICIAL_BUILD=no
9f45f08e 2625
f34ca037 2626 DEFAULT_wxUSE_GTK2=yes
a848cd7e
SC
2627fi
2628
2629
2630
f34ca037 2631
a848cd7e
SC
2632for toolkit in `echo $ALL_TOOLKITS`; do
2633 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2634 if test "x$LINE" != "x" ; then
2635 has_toolkit_in_cache=1
2636 eval "DEFAULT_$LINE"
2637 eval "CACHE_$toolkit=1"
f34ca037
MW
2638
2639 LINE=`grep "wx${toolkit}_VERSION=" ${wx_arg_cache_file}`
2640 if test "x$LINE" != "x" ; then
2641 eval "DEFAULT_$LINE"
2642 fi
a848cd7e
SC
2643 fi
2644done
2645
2646
2647
2648 enablestring=
2649 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2650echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
2651 no_cache=0
2652 # Check whether --enable-gui or --disable-gui was given.
2653if test "${enable_gui+set}" = set; then
2654 enableval="$enable_gui"
2655
2656 if test "$enableval" = yes; then
2657 ac_cv_use_gui='wxUSE_GUI=yes'
2658 else
2659 ac_cv_use_gui='wxUSE_GUI=no'
2660 fi
2661
2662else
2663
2664 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2665 if test "x$LINE" != x ; then
2666 eval "DEFAULT_$LINE"
2667 else
2668 no_cache=1
2669 fi
2670
2671 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
2672
2673fi;
2674
2675 eval "$ac_cv_use_gui"
2676 if test "$no_cache" != 1; then
2677 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2678 fi
2679
2680 if test "$wxUSE_GUI" = yes; then
2681 echo "$as_me:$LINENO: result: yes" >&5
2682echo "${ECHO_T}yes" >&6
2683 else
2684 echo "$as_me:$LINENO: result: no" >&5
2685echo "${ECHO_T}no" >&6
2686 fi
2687
2688
2689 enablestring=
2690 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2691echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2692 no_cache=0
2693 # Check whether --enable-monolithic or --disable-monolithic was given.
2694if test "${enable_monolithic+set}" = set; then
2695 enableval="$enable_monolithic"
2696
2697 if test "$enableval" = yes; then
2698 ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2699 else
2700 ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2701 fi
2702
2703else
2704
2705 LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2706 if test "x$LINE" != x ; then
2707 eval "DEFAULT_$LINE"
2708 else
2709 no_cache=1
2710 fi
2711
2712 ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2713
2714fi;
2715
2716 eval "$ac_cv_use_monolithic"
2717 if test "$no_cache" != 1; then
2718 echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2719 fi
2720
2721 if test "$wxUSE_MONOLITHIC" = yes; then
2722 echo "$as_me:$LINENO: result: yes" >&5
2723echo "${ECHO_T}yes" >&6
2724 else
2725 echo "$as_me:$LINENO: result: no" >&5
2726echo "${ECHO_T}no" >&6
2727 fi
2728
2729
2730 enablestring=
2731 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
2732echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6
2733 no_cache=0
2734 # Check whether --enable-plugins or --disable-plugins was given.
2735if test "${enable_plugins+set}" = set; then
2736 enableval="$enable_plugins"
2737
2738 if test "$enableval" = yes; then
2739 ac_cv_use_plugins='wxUSE_PLUGINS=yes'
2740 else
2741 ac_cv_use_plugins='wxUSE_PLUGINS=no'
2742 fi
2743
2744else
2745
2746 LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}`
2747 if test "x$LINE" != x ; then
2748 eval "DEFAULT_$LINE"
2749 else
2750 no_cache=1
2751 fi
2752
2753 ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS
2754
2755fi;
2756
2757 eval "$ac_cv_use_plugins"
2758 if test "$no_cache" != 1; then
2759 echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp
2760 fi
2761
2762 if test "$wxUSE_PLUGINS" = yes; then
2763 echo "$as_me:$LINENO: result: yes" >&5
2764echo "${ECHO_T}yes" >&6
2765 else
2766 echo "$as_me:$LINENO: result: no" >&5
2767echo "${ECHO_T}no" >&6
2768 fi
2769
2770
1c14217d
VZ
2771 withstring=without
2772 echo "$as_me:$LINENO: checking for --${withstring:-with}-subdirs" >&5
2773echo $ECHO_N "checking for --${withstring:-with}-subdirs... $ECHO_C" >&6
2774 no_cache=0
2775
2776# Check whether --with-subdirs or --without-subdirs was given.
2777if test "${with_subdirs+set}" = set; then
2778 withval="$with_subdirs"
2779
2780 if test "$withval" = yes; then
2781 ac_cv_use_subdirs='wxWITH_SUBDIRS=yes'
2782 else
2783 ac_cv_use_subdirs='wxWITH_SUBDIRS=no'
2784 fi
2785
2786else
2787
2788 LINE=`grep "wxWITH_SUBDIRS" ${wx_arg_cache_file}`
2789 if test "x$LINE" != x ; then
2790 eval "DEFAULT_$LINE"
2791 else
2792 no_cache=1
2793 fi
2794
2795 ac_cv_use_subdirs='wxWITH_SUBDIRS='$DEFAULT_wxWITH_SUBDIRS
2796
2797fi;
2798
2799 eval "$ac_cv_use_subdirs"
2800 if test "$no_cache" != 1; then
2801 echo $ac_cv_use_subdirs >> ${wx_arg_cache_file}.tmp
2802 fi
2803
2804 if test "$wxWITH_SUBDIRS" = yes; then
2805 echo "$as_me:$LINENO: result: yes" >&5
2806echo "${ECHO_T}yes" >&6
2807 else
2808 echo "$as_me:$LINENO: result: no" >&5
2809echo "${ECHO_T}no" >&6
2810 fi
2811
2812
a848cd7e
SC
2813if test "$wxUSE_GUI" = "yes"; then
2814
2815
2816 enablestring=
2817 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2818echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
2819 no_cache=0
2820 # Check whether --enable-universal or --disable-universal was given.
2821if test "${enable_universal+set}" = set; then
2822 enableval="$enable_universal"
2823
2824 if test "$enableval" = yes; then
2825 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2826 else
2827 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2828 fi
2829
2830else
2831
2832 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2833 if test "x$LINE" != x ; then
2834 eval "DEFAULT_$LINE"
2835 else
2836 no_cache=1
2837 fi
2838
2839 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
2840
2841fi;
2842
2843 eval "$ac_cv_use_universal"
2844 if test "$no_cache" != 1; then
2845 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2846 fi
2847
2848 if test "$wxUSE_UNIVERSAL" = yes; then
2849 echo "$as_me:$LINENO: result: yes" >&5
2850echo "${ECHO_T}yes" >&6
2851 else
2852 echo "$as_me:$LINENO: result: no" >&5
2853echo "${ECHO_T}no" >&6
2854 fi
2855
2856
2857# Check whether --with-gtk or --without-gtk was given.
2858if test "${with_gtk+set}" = set; then
2859 withval="$with_gtk"
2860 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
2861fi;
2862
2863# Check whether --with-motif or --without-motif was given.
2864if test "${with_motif+set}" = set; then
2865 withval="$with_motif"
2866 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
2867fi;
2868
2869# Check whether --with-mac or --without-mac was given.
2870if test "${with_mac+set}" = set; then
2871 withval="$with_mac"
c228d3a4 2872 wxUSE_MAC="$withval" CACHE_MAC=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2873fi;
2874
2875# Check whether --with-cocoa or --without-cocoa was given.
2876if test "${with_cocoa+set}" = set; then
2877 withval="$with_cocoa"
c228d3a4 2878 wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2879fi;
2880
2881# Check whether --with-wine or --without-wine was given.
2882if test "${with_wine+set}" = set; then
2883 withval="$with_wine"
2884 wxUSE_WINE="$withval" CACHE_WINE=1
2885fi;
2886
2887# Check whether --with-msw or --without-msw was given.
2888if test "${with_msw+set}" = set; then
2889 withval="$with_msw"
2890 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
2891fi;
2892
2893# Check whether --with-pm or --without-pm was given.
2894if test "${with_pm+set}" = set; then
2895 withval="$with_pm"
2896 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
2897fi;
2898
2899# Check whether --with-mgl or --without-mgl was given.
2900if test "${with_mgl+set}" = set; then
2901 withval="$with_mgl"
2902 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
2903fi;
2904
b3c86150
VS
2905# Check whether --with-directfb or --without-directfb was given.
2906if test "${with_directfb+set}" = set; then
2907 withval="$with_directfb"
2908 wxUSE_DFB="$withval" wxUSE_UNIVERSAL="yes" CACHE_DFB=1 TOOLKIT_GIVEN=1
2909fi;
2910
a848cd7e
SC
2911# Check whether --with-microwin or --without-microwin was given.
2912if test "${with_microwin+set}" = set; then
2913 withval="$with_microwin"
2914 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
2915fi;
2916
2917# Check whether --with-x11 or --without-x11 was given.
2918if test "${with_x11+set}" = set; then
2919 withval="$with_x11"
2920 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
2921fi;
2922
2923 enablestring=
2924 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2925echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
2926 no_cache=0
2927 # Check whether --enable-nanox or --disable-nanox was given.
2928if test "${enable_nanox+set}" = set; then
2929 enableval="$enable_nanox"
2930
2931 if test "$enableval" = yes; then
2932 ac_cv_use_nanox='wxUSE_NANOX=yes'
2933 else
2934 ac_cv_use_nanox='wxUSE_NANOX=no'
2935 fi
2936
2937else
2938
2939 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2940 if test "x$LINE" != x ; then
2941 eval "DEFAULT_$LINE"
2942 else
2943 no_cache=1
2944 fi
2945
2946 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
2947
2948fi;
2949
2950 eval "$ac_cv_use_nanox"
2951 if test "$no_cache" != 1; then
2952 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
2953 fi
2954
2955 if test "$wxUSE_NANOX" = yes; then
2956 echo "$as_me:$LINENO: result: yes" >&5
2957echo "${ECHO_T}yes" >&6
2958 else
2959 echo "$as_me:$LINENO: result: no" >&5
2960echo "${ECHO_T}no" >&6
2961 fi
2962
2963
f34ca037
MW
2964# Check whether --enable-gtk2 or --disable-gtk2 was given.
2965if test "${enable_gtk2+set}" = set; then
2966 enableval="$enable_gtk2"
2967 wxUSE_GTK2="$enableval"
2968fi;
a848cd7e 2969
a848cd7e
SC
2970 enablestring=
2971 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
2972echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6
2973 no_cache=0
2974 # Check whether --enable-gpe or --disable-gpe was given.
2975if test "${enable_gpe+set}" = set; then
2976 enableval="$enable_gpe"
2977
2978 if test "$enableval" = yes; then
2979 ac_cv_use_gpe='wxUSE_GPE=yes'
2980 else
2981 ac_cv_use_gpe='wxUSE_GPE=no'
2982 fi
2983
2984else
2985
2986 LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}`
2987 if test "x$LINE" != x ; then
2988 eval "DEFAULT_$LINE"
2989 else
2990 no_cache=1
2991 fi
2992
2993 ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE
2994
2995fi;
2996
2997 eval "$ac_cv_use_gpe"
2998 if test "$no_cache" != 1; then
2999 echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp
3000 fi
3001
3002 if test "$wxUSE_GPE" = yes; then
3003 echo "$as_me:$LINENO: result: yes" >&5
3004echo "${ECHO_T}yes" >&6
3005 else
3006 echo "$as_me:$LINENO: result: no" >&5
3007echo "${ECHO_T}no" >&6
3008 fi
3009
3010
3011
3012 echo "$as_me:$LINENO: checking for --with-libpng" >&5
3013echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
3014 no_cache=0
3015
3016# Check whether --with-libpng or --without-libpng was given.
3017if test "${with_libpng+set}" = set; then
3018 withval="$with_libpng"
3019
3020 if test "$withval" = yes; then
3021 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
3022 elif test "$withval" = no; then
3023 ac_cv_use_libpng='wxUSE_LIBPNG=no'
3024 elif test "$withval" = sys; then
3025 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
3026 elif test "$withval" = builtin; then
3027 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
3028 else
3029 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
3030echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
3031 { (exit 1); exit 1; }; }
3032 fi
3033
3034else
3035
3036 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
3037 if test "x$LINE" != x ; then
3038 eval "DEFAULT_$LINE"
3039 else
3040 no_cache=1
3041 fi
3042
3043 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
3044
3045fi;
3046
3047 eval "$ac_cv_use_libpng"
3048 if test "$no_cache" != 1; then
3049 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
3050 fi
3051
3052 if test "$wxUSE_LIBPNG" = yes; then
3053 echo "$as_me:$LINENO: result: yes" >&5
3054echo "${ECHO_T}yes" >&6
3055 elif test "$wxUSE_LIBPNG" = no; then
3056 echo "$as_me:$LINENO: result: no" >&5
3057echo "${ECHO_T}no" >&6
3058 elif test "$wxUSE_LIBPNG" = sys; then
3059 echo "$as_me:$LINENO: result: system version" >&5
3060echo "${ECHO_T}system version" >&6
3061 elif test "$wxUSE_LIBPNG" = builtin; then
3062 echo "$as_me:$LINENO: result: builtin version" >&5
3063echo "${ECHO_T}builtin version" >&6
3064 else
3065 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
3066echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
3067 { (exit 1); exit 1; }; }
3068 fi
3069
3070
3071 echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
3072echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
3073 no_cache=0
3074
3075# Check whether --with-libjpeg or --without-libjpeg was given.
3076if test "${with_libjpeg+set}" = set; then
3077 withval="$with_libjpeg"
3078
3079 if test "$withval" = yes; then
3080 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
3081 elif test "$withval" = no; then
3082 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
3083 elif test "$withval" = sys; then
3084 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
3085 elif test "$withval" = builtin; then
3086 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
3087 else
3088 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
3089echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
3090 { (exit 1); exit 1; }; }
3091 fi
3092
3093else
3094
3095 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
3096 if test "x$LINE" != x ; then
3097 eval "DEFAULT_$LINE"
3098 else
3099 no_cache=1
3100 fi
3101
3102 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
3103
3104fi;
3105
3106 eval "$ac_cv_use_libjpeg"
3107 if test "$no_cache" != 1; then
3108 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
3109 fi
3110
3111 if test "$wxUSE_LIBJPEG" = yes; then
3112 echo "$as_me:$LINENO: result: yes" >&5
3113echo "${ECHO_T}yes" >&6
3114 elif test "$wxUSE_LIBJPEG" = no; then
3115 echo "$as_me:$LINENO: result: no" >&5
3116echo "${ECHO_T}no" >&6
3117 elif test "$wxUSE_LIBJPEG" = sys; then
3118 echo "$as_me:$LINENO: result: system version" >&5
3119echo "${ECHO_T}system version" >&6
3120 elif test "$wxUSE_LIBJPEG" = builtin; then
3121 echo "$as_me:$LINENO: result: builtin version" >&5
3122echo "${ECHO_T}builtin version" >&6
3123 else
3124 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
3125echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
3126 { (exit 1); exit 1; }; }
3127 fi
3128
3129
3130 echo "$as_me:$LINENO: checking for --with-libtiff" >&5
3131echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
3132 no_cache=0
3133
3134# Check whether --with-libtiff or --without-libtiff was given.
3135if test "${with_libtiff+set}" = set; then
3136 withval="$with_libtiff"
3137
3138 if test "$withval" = yes; then
3139 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
3140 elif test "$withval" = no; then
3141 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
3142 elif test "$withval" = sys; then
3143 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
3144 elif test "$withval" = builtin; then
3145 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
3146 else
3147 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
3148echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
3149 { (exit 1); exit 1; }; }
3150 fi
3151
3152else
3153
3154 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
3155 if test "x$LINE" != x ; then
3156 eval "DEFAULT_$LINE"
3157 else
3158 no_cache=1
3159 fi
3160
3161 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
3162
3163fi;
3164
3165 eval "$ac_cv_use_libtiff"
3166 if test "$no_cache" != 1; then
3167 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
3168 fi
3169
3170 if test "$wxUSE_LIBTIFF" = yes; then
3171 echo "$as_me:$LINENO: result: yes" >&5
3172echo "${ECHO_T}yes" >&6
3173 elif test "$wxUSE_LIBTIFF" = no; then
3174 echo "$as_me:$LINENO: result: no" >&5
3175echo "${ECHO_T}no" >&6
3176 elif test "$wxUSE_LIBTIFF" = sys; then
3177 echo "$as_me:$LINENO: result: system version" >&5
3178echo "${ECHO_T}system version" >&6
3179 elif test "$wxUSE_LIBTIFF" = builtin; then
3180 echo "$as_me:$LINENO: result: builtin version" >&5
3181echo "${ECHO_T}builtin version" >&6
3182 else
3183 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
3184echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
3185 { (exit 1); exit 1; }; }
3186 fi
3187
3188
3189 echo "$as_me:$LINENO: checking for --with-libxpm" >&5
3190echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6
3191 no_cache=0
3192
3193# Check whether --with-libxpm or --without-libxpm was given.
3194if test "${with_libxpm+set}" = set; then
3195 withval="$with_libxpm"
3196
3197 if test "$withval" = yes; then
3198 ac_cv_use_libxpm='wxUSE_LIBXPM=yes'
3199 elif test "$withval" = no; then
3200 ac_cv_use_libxpm='wxUSE_LIBXPM=no'
3201 elif test "$withval" = sys; then
3202 ac_cv_use_libxpm='wxUSE_LIBXPM=sys'
3203 elif test "$withval" = builtin; then
3204 ac_cv_use_libxpm='wxUSE_LIBXPM=builtin'
3205 else
3206 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3207echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3208 { (exit 1); exit 1; }; }
3209 fi
3210
3211else
3212
3213 LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}`
3214 if test "x$LINE" != x ; then
3215 eval "DEFAULT_$LINE"
3216 else
3217 no_cache=1
3218 fi
3219
3220 ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM
3221
3222fi;
3223
3224 eval "$ac_cv_use_libxpm"
3225 if test "$no_cache" != 1; then
3226 echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp
3227 fi
3228
3229 if test "$wxUSE_LIBXPM" = yes; then
3230 echo "$as_me:$LINENO: result: yes" >&5
3231echo "${ECHO_T}yes" >&6
3232 elif test "$wxUSE_LIBXPM" = no; then
3233 echo "$as_me:$LINENO: result: no" >&5
3234echo "${ECHO_T}no" >&6
3235 elif test "$wxUSE_LIBXPM" = sys; then
3236 echo "$as_me:$LINENO: result: system version" >&5
3237echo "${ECHO_T}system version" >&6
3238 elif test "$wxUSE_LIBXPM" = builtin; then
3239 echo "$as_me:$LINENO: result: builtin version" >&5
3240echo "${ECHO_T}builtin version" >&6
3241 else
3242 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3243echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3244 { (exit 1); exit 1; }; }
3245 fi
3246
3247
1c14217d
VZ
3248 withstring=
3249 echo "$as_me:$LINENO: checking for --${withstring:-with}-libmspack" >&5
3250echo $ECHO_N "checking for --${withstring:-with}-libmspack... $ECHO_C" >&6
a848cd7e
SC
3251 no_cache=0
3252
3253# Check whether --with-libmspack or --without-libmspack was given.
3254if test "${with_libmspack+set}" = set; then
3255 withval="$with_libmspack"
3256
3257 if test "$withval" = yes; then
3258 ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
3259 else
3260 ac_cv_use_libmspack='wxUSE_LIBMSPACK=no'
3261 fi
3262
3263else
3264
3265 LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}`
3266 if test "x$LINE" != x ; then
3267 eval "DEFAULT_$LINE"
3268 else
3269 no_cache=1
3270 fi
3271
3272 ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK
3273
3274fi;
3275
3276 eval "$ac_cv_use_libmspack"
3277 if test "$no_cache" != 1; then
3278 echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp
3279 fi
3280
3281 if test "$wxUSE_LIBMSPACK" = yes; then
3282 echo "$as_me:$LINENO: result: yes" >&5
3283echo "${ECHO_T}yes" >&6
3284 else
3285 echo "$as_me:$LINENO: result: no" >&5
3286echo "${ECHO_T}no" >&6
3287 fi
3288
3289
1c14217d
VZ
3290 withstring=
3291 echo "$as_me:$LINENO: checking for --${withstring:-with}-sdl" >&5
3292echo $ECHO_N "checking for --${withstring:-with}-sdl... $ECHO_C" >&6
a848cd7e
SC
3293 no_cache=0
3294
3295# Check whether --with-sdl or --without-sdl was given.
3296if test "${with_sdl+set}" = set; then
3297 withval="$with_sdl"
3298
3299 if test "$withval" = yes; then
3300 ac_cv_use_sdl='wxUSE_LIBSDL=yes'
3301 else
3302 ac_cv_use_sdl='wxUSE_LIBSDL=no'
3303 fi
3304
3305else
3306
3307 LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}`
3308 if test "x$LINE" != x ; then
3309 eval "DEFAULT_$LINE"
3310 else
3311 no_cache=1
3312 fi
3313
3314 ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL
3315
3316fi;
3317
3318 eval "$ac_cv_use_sdl"
3319 if test "$no_cache" != 1; then
3320 echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp
3321 fi
3322
3323 if test "$wxUSE_LIBSDL" = yes; then
3324 echo "$as_me:$LINENO: result: yes" >&5
3325echo "${ECHO_T}yes" >&6
3326 else
3327 echo "$as_me:$LINENO: result: no" >&5
3328echo "${ECHO_T}no" >&6
3329 fi
3330
3331
1c14217d
VZ
3332 withstring=
3333 echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomeprint" >&5
3334echo $ECHO_N "checking for --${withstring:-with}-gnomeprint... $ECHO_C" >&6
d1c38808
VZ
3335 no_cache=0
3336
3337# Check whether --with-gnomeprint or --without-gnomeprint was given.
3338if test "${with_gnomeprint+set}" = set; then
3339 withval="$with_gnomeprint"
3340
3341 if test "$withval" = yes; then
3342 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes'
3343 else
3344 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no'
3345 fi
3346
3347else
3348
3349 LINE=`grep "wxUSE_LIBGNOMEPRINT" ${wx_arg_cache_file}`
3350 if test "x$LINE" != x ; then
3351 eval "DEFAULT_$LINE"
3352 else
3353 no_cache=1
3354 fi
3355
3356 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT='$DEFAULT_wxUSE_LIBGNOMEPRINT
3357
3358fi;
3359
3360 eval "$ac_cv_use_gnomeprint"
3361 if test "$no_cache" != 1; then
3362 echo $ac_cv_use_gnomeprint >> ${wx_arg_cache_file}.tmp
3363 fi
3364
3365 if test "$wxUSE_LIBGNOMEPRINT" = yes; then
3366 echo "$as_me:$LINENO: result: yes" >&5
3367echo "${ECHO_T}yes" >&6
3368 else
3369 echo "$as_me:$LINENO: result: no" >&5
3370echo "${ECHO_T}no" >&6
3371 fi
3372
3373
2b850ae1
RR
3374 withstring=
3375 echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomevfs" >&5
3376echo $ECHO_N "checking for --${withstring:-with}-gnomevfs... $ECHO_C" >&6
3377 no_cache=0
3378
3379# Check whether --with-gnomevfs or --without-gnomevfs was given.
3380if test "${with_gnomevfs+set}" = set; then
3381 withval="$with_gnomevfs"
3382
3383 if test "$withval" = yes; then
3384 ac_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=yes'
3385 else
3386 ac_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=no'
3387 fi
3388
3389else
3390
3391 LINE=`grep "wxUSE_LIBGNOMEVFS" ${wx_arg_cache_file}`
3392 if test "x$LINE" != x ; then
3393 eval "DEFAULT_$LINE"
3394 else
3395 no_cache=1
3396 fi
3397
3398 ac_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS='$DEFAULT_wxUSE_LIBGNOMEVFS
3399
3400fi;
3401
3402 eval "$ac_cv_use_gnomevfs"
3403 if test "$no_cache" != 1; then
3404 echo $ac_cv_use_gnomevfs >> ${wx_arg_cache_file}.tmp
3405 fi
3406
3407 if test "$wxUSE_LIBGNOMEVFS" = yes; then
3408 echo "$as_me:$LINENO: result: yes" >&5
3409echo "${ECHO_T}yes" >&6
3410 else
3411 echo "$as_me:$LINENO: result: no" >&5
3412echo "${ECHO_T}no" >&6
3413 fi
3414
3415
3565d135
RR
3416 withstring=
3417 echo "$as_me:$LINENO: checking for --${withstring:-with}-hildon" >&5
3418echo $ECHO_N "checking for --${withstring:-with}-hildon... $ECHO_C" >&6
3419 no_cache=0
3420
3421# Check whether --with-hildon or --without-hildon was given.
3422if test "${with_hildon+set}" = set; then
3423 withval="$with_hildon"
3424
3425 if test "$withval" = yes; then
3426 ac_cv_use_hildon='wxUSE_LIBHILDON=yes'
3427 else
3428 ac_cv_use_hildon='wxUSE_LIBHILDON=no'
3429 fi
3430
3431else
3432
3433 LINE=`grep "wxUSE_LIBHILDON" ${wx_arg_cache_file}`
3434 if test "x$LINE" != x ; then
3435 eval "DEFAULT_$LINE"
3436 else
3437 no_cache=1
3438 fi
3439
3440 ac_cv_use_hildon='wxUSE_LIBHILDON='$DEFAULT_wxUSE_LIBHILDON
3441
3442fi;
3443
3444 eval "$ac_cv_use_hildon"
3445 if test "$no_cache" != 1; then
3446 echo $ac_cv_use_hildon >> ${wx_arg_cache_file}.tmp
3447 fi
3448
3449 if test "$wxUSE_LIBHILDON" = yes; then
3450 echo "$as_me:$LINENO: result: yes" >&5
3451echo "${ECHO_T}yes" >&6
3452 else
3453 echo "$as_me:$LINENO: result: no" >&5
3454echo "${ECHO_T}no" >&6
3455 fi
3456
3457
1c14217d
VZ
3458 withstring=
3459 echo "$as_me:$LINENO: checking for --${withstring:-with}-opengl" >&5
3460echo $ECHO_N "checking for --${withstring:-with}-opengl... $ECHO_C" >&6
a848cd7e
SC
3461 no_cache=0
3462
3463# Check whether --with-opengl or --without-opengl was given.
3464if test "${with_opengl+set}" = set; then
3465 withval="$with_opengl"
3466
3467 if test "$withval" = yes; then
3468 ac_cv_use_opengl='wxUSE_OPENGL=yes'
3469 else
3470 ac_cv_use_opengl='wxUSE_OPENGL=no'
3471 fi
3472
3473else
3474
3475 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
3476 if test "x$LINE" != x ; then
3477 eval "DEFAULT_$LINE"
3478 else
3479 no_cache=1
3480 fi
3481
3482 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
3483
3484fi;
3485
3486 eval "$ac_cv_use_opengl"
3487 if test "$no_cache" != 1; then
3488 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
3489 fi
3490
3491 if test "$wxUSE_OPENGL" = yes; then
3492 echo "$as_me:$LINENO: result: yes" >&5
3493echo "${ECHO_T}yes" >&6
3494 else
3495 echo "$as_me:$LINENO: result: no" >&5
3496echo "${ECHO_T}no" >&6
3497 fi
3498
3499
4353a8df
VZ
3500if test "$wxUSE_UNIVERSAL" = "yes"; then
3501
3502# Check whether --with-themes or --without-themes was given.
3503if test "${with_themes+set}" = set; then
3504 withval="$with_themes"
3505 wxUNIV_THEMES="$withval"
3506fi;
3507fi
3508
a848cd7e
SC
3509fi
3510
3511
1c14217d
VZ
3512 withstring=
3513 echo "$as_me:$LINENO: checking for --${withstring:-with}-dmalloc" >&5
3514echo $ECHO_N "checking for --${withstring:-with}-dmalloc... $ECHO_C" >&6
a848cd7e
SC
3515 no_cache=0
3516
3517# Check whether --with-dmalloc or --without-dmalloc was given.
3518if test "${with_dmalloc+set}" = set; then
3519 withval="$with_dmalloc"
3520
3521 if test "$withval" = yes; then
3522 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
3523 else
3524 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
3525 fi
3526
3527else
3528
3529 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
3530 if test "x$LINE" != x ; then
3531 eval "DEFAULT_$LINE"
3532 else
3533 no_cache=1
3534 fi
3535
3536 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
3537
3538fi;
3539
3540 eval "$ac_cv_use_dmalloc"
3541 if test "$no_cache" != 1; then
3542 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
3543 fi
3544
3545 if test "$wxUSE_DMALLOC" = yes; then
3546 echo "$as_me:$LINENO: result: yes" >&5
3547echo "${ECHO_T}yes" >&6
3548 else
3549 echo "$as_me:$LINENO: result: no" >&5
3550echo "${ECHO_T}no" >&6
3551 fi
3552
3553
3554 echo "$as_me:$LINENO: checking for --with-regex" >&5
3555echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3556 no_cache=0
3557
3558# Check whether --with-regex or --without-regex was given.
3559if test "${with_regex+set}" = set; then
3560 withval="$with_regex"
3561
3562 if test "$withval" = yes; then
3563 ac_cv_use_regex='wxUSE_REGEX=yes'
3564 elif test "$withval" = no; then
3565 ac_cv_use_regex='wxUSE_REGEX=no'
3566 elif test "$withval" = sys; then
3567 ac_cv_use_regex='wxUSE_REGEX=sys'
3568 elif test "$withval" = builtin; then
3569 ac_cv_use_regex='wxUSE_REGEX=builtin'
3570 else
3571 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3572echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3573 { (exit 1); exit 1; }; }
3574 fi
3575
3576else
3577
3578 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
3579 if test "x$LINE" != x ; then
3580 eval "DEFAULT_$LINE"
3581 else
3582 no_cache=1
3583 fi
3584
3585 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3586
3587fi;
3588
3589 eval "$ac_cv_use_regex"
3590 if test "$no_cache" != 1; then
3591 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
3592 fi
3593
3594 if test "$wxUSE_REGEX" = yes; then
3595 echo "$as_me:$LINENO: result: yes" >&5
3596echo "${ECHO_T}yes" >&6
3597 elif test "$wxUSE_REGEX" = no; then
3598 echo "$as_me:$LINENO: result: no" >&5
3599echo "${ECHO_T}no" >&6
3600 elif test "$wxUSE_REGEX" = sys; then
3601 echo "$as_me:$LINENO: result: system version" >&5
3602echo "${ECHO_T}system version" >&6
3603 elif test "$wxUSE_REGEX" = builtin; then
3604 echo "$as_me:$LINENO: result: builtin version" >&5
3605echo "${ECHO_T}builtin version" >&6
3606 else
3607 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3608echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3609 { (exit 1); exit 1; }; }
3610 fi
3611
3612
3613 echo "$as_me:$LINENO: checking for --with-zlib" >&5
3614echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
3615 no_cache=0
3616
3617# Check whether --with-zlib or --without-zlib was given.
3618if test "${with_zlib+set}" = set; then
3619 withval="$with_zlib"
3620
3621 if test "$withval" = yes; then
3622 ac_cv_use_zlib='wxUSE_ZLIB=yes'
3623 elif test "$withval" = no; then
3624 ac_cv_use_zlib='wxUSE_ZLIB=no'
3625 elif test "$withval" = sys; then
3626 ac_cv_use_zlib='wxUSE_ZLIB=sys'
3627 elif test "$withval" = builtin; then
3628 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
3629 else
3630 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3631echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3632 { (exit 1); exit 1; }; }
3633 fi
3634
3635else
3636
3637 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
3638 if test "x$LINE" != x ; then
3639 eval "DEFAULT_$LINE"
3640 else
3641 no_cache=1
3642 fi
3643
3644 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
3645
3646fi;
3647
3648 eval "$ac_cv_use_zlib"
3649 if test "$no_cache" != 1; then
3650 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
3651 fi
3652
3653 if test "$wxUSE_ZLIB" = yes; then
3654 echo "$as_me:$LINENO: result: yes" >&5
3655echo "${ECHO_T}yes" >&6
3656 elif test "$wxUSE_ZLIB" = no; then
3657 echo "$as_me:$LINENO: result: no" >&5
3658echo "${ECHO_T}no" >&6
3659 elif test "$wxUSE_ZLIB" = sys; then
3660 echo "$as_me:$LINENO: result: system version" >&5
3661echo "${ECHO_T}system version" >&6
3662 elif test "$wxUSE_ZLIB" = builtin; then
3663 echo "$as_me:$LINENO: result: builtin version" >&5
3664echo "${ECHO_T}builtin version" >&6
3665 else
3666 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3667echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3668 { (exit 1); exit 1; }; }
3669 fi
3670
3671
3672 echo "$as_me:$LINENO: checking for --with-odbc" >&5
3673echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
3674 no_cache=0
3675
3676# Check whether --with-odbc or --without-odbc was given.
3677if test "${with_odbc+set}" = set; then
3678 withval="$with_odbc"
3679
3680 if test "$withval" = yes; then
3681 ac_cv_use_odbc='wxUSE_ODBC=yes'
3682 elif test "$withval" = no; then
3683 ac_cv_use_odbc='wxUSE_ODBC=no'
3684 elif test "$withval" = sys; then
3685 ac_cv_use_odbc='wxUSE_ODBC=sys'
3686 elif test "$withval" = builtin; then
3687 ac_cv_use_odbc='wxUSE_ODBC=builtin'
3688 else
3689 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3690echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3691 { (exit 1); exit 1; }; }
3692 fi
3693
3694else
3695
3696 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
3697 if test "x$LINE" != x ; then
3698 eval "DEFAULT_$LINE"
3699 else
3700 no_cache=1
3701 fi
3702
3703 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
3704
3705fi;
3706
3707 eval "$ac_cv_use_odbc"
3708 if test "$no_cache" != 1; then
3709 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3710 fi
3711
3712 if test "$wxUSE_ODBC" = yes; then
3713 echo "$as_me:$LINENO: result: yes" >&5
3714echo "${ECHO_T}yes" >&6
3715 elif test "$wxUSE_ODBC" = no; then
3716 echo "$as_me:$LINENO: result: no" >&5
3717echo "${ECHO_T}no" >&6
3718 elif test "$wxUSE_ODBC" = sys; then
3719 echo "$as_me:$LINENO: result: system version" >&5
3720echo "${ECHO_T}system version" >&6
3721 elif test "$wxUSE_ODBC" = builtin; then
3722 echo "$as_me:$LINENO: result: builtin version" >&5
3723echo "${ECHO_T}builtin version" >&6
3724 else
3725 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3726echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3727 { (exit 1); exit 1; }; }
3728 fi
3729
3730
3731 echo "$as_me:$LINENO: checking for --with-expat" >&5
3732echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3733 no_cache=0
3734
3735# Check whether --with-expat or --without-expat was given.
3736if test "${with_expat+set}" = set; then
3737 withval="$with_expat"
3738
3739 if test "$withval" = yes; then
3740 ac_cv_use_expat='wxUSE_EXPAT=yes'
3741 elif test "$withval" = no; then
3742 ac_cv_use_expat='wxUSE_EXPAT=no'
3743 elif test "$withval" = sys; then
3744 ac_cv_use_expat='wxUSE_EXPAT=sys'
3745 elif test "$withval" = builtin; then
3746 ac_cv_use_expat='wxUSE_EXPAT=builtin'
3747 else
3748 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3749echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3750 { (exit 1); exit 1; }; }
3751 fi
3752
3753else
3754
3755 LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3756 if test "x$LINE" != x ; then
3757 eval "DEFAULT_$LINE"
3758 else
3759 no_cache=1
3760 fi
3761
3762 ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3763
3764fi;
3765
3766 eval "$ac_cv_use_expat"
3767 if test "$no_cache" != 1; then
3768 echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3769 fi
3770
3771 if test "$wxUSE_EXPAT" = yes; then
3772 echo "$as_me:$LINENO: result: yes" >&5
3773echo "${ECHO_T}yes" >&6
3774 elif test "$wxUSE_EXPAT" = no; then
3775 echo "$as_me:$LINENO: result: no" >&5
3776echo "${ECHO_T}no" >&6
3777 elif test "$wxUSE_EXPAT" = sys; then
3778 echo "$as_me:$LINENO: result: system version" >&5
3779echo "${ECHO_T}system version" >&6
3780 elif test "$wxUSE_EXPAT" = builtin; then
3781 echo "$as_me:$LINENO: result: builtin version" >&5
3782echo "${ECHO_T}builtin version" >&6
3783 else
3784 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3785echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3786 { (exit 1); exit 1; }; }
3787 fi
3788
3789
3790
3791
3792 enablestring=
3793 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3794echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
3795 no_cache=0
3796 # Check whether --enable-shared or --disable-shared was given.
3797if test "${enable_shared+set}" = set; then
3798 enableval="$enable_shared"
3799
3800 if test "$enableval" = yes; then
3801 ac_cv_use_shared='wxUSE_SHARED=yes'
3802 else
3803 ac_cv_use_shared='wxUSE_SHARED=no'
3804 fi
3805
3806else
3807
3808 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3809 if test "x$LINE" != x ; then
3810 eval "DEFAULT_$LINE"
3811 else
3812 no_cache=1
3813 fi
3814
3815 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
3816
3817fi;
3818
3819 eval "$ac_cv_use_shared"
3820 if test "$no_cache" != 1; then
3821 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3822 fi
3823
3824 if test "$wxUSE_SHARED" = yes; then
3825 echo "$as_me:$LINENO: result: yes" >&5
3826echo "${ECHO_T}yes" >&6
3827 else
3828 echo "$as_me:$LINENO: result: no" >&5
3829echo "${ECHO_T}no" >&6
3830 fi
3831
3832
3833 enablestring=
3834 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3835echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
3836 no_cache=0
3837 # Check whether --enable-optimise or --disable-optimise was given.
3838if test "${enable_optimise+set}" = set; then
3839 enableval="$enable_optimise"
3840
3841 if test "$enableval" = yes; then
3842 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3843 else
3844 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3845 fi
3846
3847else
3848
3849 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3850 if test "x$LINE" != x ; then
3851 eval "DEFAULT_$LINE"
3852 else
3853 no_cache=1
3854 fi
3855
3856 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
3857
3858fi;
3859
3860 eval "$ac_cv_use_optimise"
3861 if test "$no_cache" != 1; then
3862 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3863 fi
3864
3865 if test "$wxUSE_OPTIMISE" = yes; then
3866 echo "$as_me:$LINENO: result: yes" >&5
3867echo "${ECHO_T}yes" >&6
3868 else
3869 echo "$as_me:$LINENO: result: no" >&5
3870echo "${ECHO_T}no" >&6
3871 fi
3872
3873
3874 enablestring=
3875 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3876echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
3877 no_cache=0
3878 # Check whether --enable-debug or --disable-debug was given.
3879if test "${enable_debug+set}" = set; then
3880 enableval="$enable_debug"
3881
3882 if test "$enableval" = yes; then
3883 ac_cv_use_debug='wxUSE_DEBUG=yes'
3884 else
3885 ac_cv_use_debug='wxUSE_DEBUG=no'
3886 fi
3887
3888else
3889
3890 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3891 if test "x$LINE" != x ; then
3892 eval "DEFAULT_$LINE"
3893 else
3894 no_cache=1
3895 fi
3896
3897 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
3898
3899fi;
3900
3901 eval "$ac_cv_use_debug"
3902 if test "$no_cache" != 1; then
3903 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3904 fi
3905
3906 if test "$wxUSE_DEBUG" = yes; then
3907 echo "$as_me:$LINENO: result: yes" >&5
3908echo "${ECHO_T}yes" >&6
3909 else
3910 echo "$as_me:$LINENO: result: no" >&5
3911echo "${ECHO_T}no" >&6
3912 fi
3913
3914
3915 enablestring=
3916 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3917echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3918 no_cache=0
3919 # Check whether --enable-stl or --disable-stl was given.
3920if test "${enable_stl+set}" = set; then
3921 enableval="$enable_stl"
3922
3923 if test "$enableval" = yes; then
3924 ac_cv_use_stl='wxUSE_STL=yes'
3925 else
3926 ac_cv_use_stl='wxUSE_STL=no'
3927 fi
3928
3929else
3930
3931 LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3932 if test "x$LINE" != x ; then
3933 eval "DEFAULT_$LINE"
3934 else
3935 no_cache=1
3936 fi
3937
3938 ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3939
3940fi;
3941
3942 eval "$ac_cv_use_stl"
3943 if test "$no_cache" != 1; then
3944 echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3945 fi
3946
3947 if test "$wxUSE_STL" = yes; then
3948 echo "$as_me:$LINENO: result: yes" >&5
3949echo "${ECHO_T}yes" >&6
3950 else
3951 echo "$as_me:$LINENO: result: no" >&5
3952echo "${ECHO_T}no" >&6
3953 fi
3954
3955if test "$USE_OS2" = "1"; then
69120ee4 3956 DEFAULT_wxUSE_OMF=no
a848cd7e
SC
3957
3958 enablestring=
3959 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
3960echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6
3961 no_cache=0
3962 # Check whether --enable-omf or --disable-omf was given.
3963if test "${enable_omf+set}" = set; then
3964 enableval="$enable_omf"
3965
3966 if test "$enableval" = yes; then
3967 ac_cv_use_omf='wxUSE_OMF=yes'
3968 else
3969 ac_cv_use_omf='wxUSE_OMF=no'
3970 fi
3971
3972else
3973
3974 LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}`
3975 if test "x$LINE" != x ; then
3976 eval "DEFAULT_$LINE"
3977 else
3978 no_cache=1
3979 fi
3980
3981 ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF
3982
3983fi;
3984
3985 eval "$ac_cv_use_omf"
3986 if test "$no_cache" != 1; then
3987 echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp
3988 fi
3989
3990 if test "$wxUSE_OMF" = yes; then
3991 echo "$as_me:$LINENO: result: yes" >&5
3992echo "${ECHO_T}yes" >&6
3993 else
3994 echo "$as_me:$LINENO: result: no" >&5
3995echo "${ECHO_T}no" >&6
3996 fi
3997
3998fi
3999
4000if test "$wxUSE_DEBUG" = "yes"; then
4001 DEFAULT_wxUSE_DEBUG_FLAG=yes
4002 DEFAULT_wxUSE_DEBUG_INFO=yes
4003 BUILD=debug
4004elif test "$wxUSE_DEBUG" = "no"; then
4005 DEFAULT_wxUSE_DEBUG_FLAG=no
4006 DEFAULT_wxUSE_DEBUG_INFO=no
4007 BUILD=release
4008fi
4009
4010
4011 enablestring=
4012 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
4013echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
4014 no_cache=0
4015 # Check whether --enable-debug_flag or --disable-debug_flag was given.
4016if test "${enable_debug_flag+set}" = set; then
4017 enableval="$enable_debug_flag"
4018
4019 if test "$enableval" = yes; then
4020 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
4021 else
4022 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
4023 fi
4024
4025else
4026
4027 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
4028 if test "x$LINE" != x ; then
4029 eval "DEFAULT_$LINE"
4030 else
4031 no_cache=1
4032 fi
4033
4034 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
4035
4036fi;
4037
4038 eval "$ac_cv_use_debug_flag"
4039 if test "$no_cache" != 1; then
4040 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
4041 fi
4042
4043 if test "$wxUSE_DEBUG_FLAG" = yes; then
4044 echo "$as_me:$LINENO: result: yes" >&5
4045echo "${ECHO_T}yes" >&6
4046 else
4047 echo "$as_me:$LINENO: result: no" >&5
4048echo "${ECHO_T}no" >&6
4049 fi
4050
4051
4052 enablestring=
4053 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
4054echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
4055 no_cache=0
4056 # Check whether --enable-debug_info or --disable-debug_info was given.
4057if test "${enable_debug_info+set}" = set; then
4058 enableval="$enable_debug_info"
4059
4060 if test "$enableval" = yes; then
4061 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
4062 else
4063 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
4064 fi
4065
4066else
4067
4068 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
4069 if test "x$LINE" != x ; then
4070 eval "DEFAULT_$LINE"
4071 else
4072 no_cache=1
4073 fi
4074
4075 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
4076
4077fi;
4078
4079 eval "$ac_cv_use_debug_info"
4080 if test "$no_cache" != 1; then
4081 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
4082 fi
4083
4084 if test "$wxUSE_DEBUG_INFO" = yes; then
4085 echo "$as_me:$LINENO: result: yes" >&5
4086echo "${ECHO_T}yes" >&6
4087 else
4088 echo "$as_me:$LINENO: result: no" >&5
4089echo "${ECHO_T}no" >&6
4090 fi
4091
4092
4093 enablestring=
4094 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
4095echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
4096 no_cache=0
4097 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
4098if test "${enable_debug_gdb+set}" = set; then
4099 enableval="$enable_debug_gdb"
4100
4101 if test "$enableval" = yes; then
4102 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
4103 else
4104 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
4105 fi
4106
4107else
4108
4109 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
4110 if test "x$LINE" != x ; then
4111 eval "DEFAULT_$LINE"
4112 else
4113 no_cache=1
4114 fi
4115
4116 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
4117
4118fi;
4119
4120 eval "$ac_cv_use_debug_gdb"
4121 if test "$no_cache" != 1; then
4122 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
4123 fi
4124
4125 if test "$wxUSE_DEBUG_GDB" = yes; then
4126 echo "$as_me:$LINENO: result: yes" >&5
4127echo "${ECHO_T}yes" >&6
4128 else
4129 echo "$as_me:$LINENO: result: no" >&5
4130echo "${ECHO_T}no" >&6
4131 fi
4132
4133
4134 enablestring=
4135 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
4136echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
4137 no_cache=0
4138 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
4139if test "${enable_debug_cntxt+set}" = set; then
4140 enableval="$enable_debug_cntxt"
4141
4142 if test "$enableval" = yes; then
4143 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
4144 else
4145 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
4146 fi
4147
4148else
4149
4150 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
4151 if test "x$LINE" != x ; then
4152 eval "DEFAULT_$LINE"
4153 else
4154 no_cache=1
4155 fi
4156
4157 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
4158
4159fi;
4160
4161 eval "$ac_cv_use_debug_cntxt"
4162 if test "$no_cache" != 1; then
4163 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
4164 fi
4165
4166 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
4167 echo "$as_me:$LINENO: result: yes" >&5
4168echo "${ECHO_T}yes" >&6
4169 else
4170 echo "$as_me:$LINENO: result: no" >&5
4171echo "${ECHO_T}no" >&6
4172 fi
4173
4174
4175 enablestring=
4176 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
4177echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
4178 no_cache=0
4179 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
4180if test "${enable_mem_tracing+set}" = set; then
4181 enableval="$enable_mem_tracing"
4182
4183 if test "$enableval" = yes; then
4184 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
4185 else
4186 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
4187 fi
4188
4189else
4190
4191 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
4192 if test "x$LINE" != x ; then
4193 eval "DEFAULT_$LINE"
4194 else
4195 no_cache=1
4196 fi
4197
4198 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
4199
4200fi;
4201
4202 eval "$ac_cv_use_mem_tracing"
4203 if test "$no_cache" != 1; then
4204 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
4205 fi
4206
4207 if test "$wxUSE_MEM_TRACING" = yes; then
4208 echo "$as_me:$LINENO: result: yes" >&5
4209echo "${ECHO_T}yes" >&6
4210 else
4211 echo "$as_me:$LINENO: result: no" >&5
4212echo "${ECHO_T}no" >&6
4213 fi
4214
4215
4216 enablestring=
4217 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
4218echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
4219 no_cache=0
4220 # Check whether --enable-profile or --disable-profile was given.
4221if test "${enable_profile+set}" = set; then
4222 enableval="$enable_profile"
4223
4224 if test "$enableval" = yes; then
4225 ac_cv_use_profile='wxUSE_PROFILE=yes'
4226 else
4227 ac_cv_use_profile='wxUSE_PROFILE=no'
4228 fi
4229
4230else
4231
4232 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
4233 if test "x$LINE" != x ; then
4234 eval "DEFAULT_$LINE"
4235 else
4236 no_cache=1
4237 fi
4238
4239 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
4240
4241fi;
4242
4243 eval "$ac_cv_use_profile"
4244 if test "$no_cache" != 1; then
4245 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
4246 fi
4247
4248 if test "$wxUSE_PROFILE" = yes; then
4249 echo "$as_me:$LINENO: result: yes" >&5
4250echo "${ECHO_T}yes" >&6
4251 else
4252 echo "$as_me:$LINENO: result: no" >&5
4253echo "${ECHO_T}no" >&6
4254 fi
4255
4256
4257 enablestring=
4258 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
4259echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
4260 no_cache=0
4261 # Check whether --enable-no_rtti or --disable-no_rtti was given.
4262if test "${enable_no_rtti+set}" = set; then
4263 enableval="$enable_no_rtti"
4264
4265 if test "$enableval" = yes; then
4266 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
4267 else
4268 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
4269 fi
4270
4271else
4272
4273 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
4274 if test "x$LINE" != x ; then
4275 eval "DEFAULT_$LINE"
4276 else
4277 no_cache=1
4278 fi
4279
4280 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
4281
4282fi;
4283
4284 eval "$ac_cv_use_no_rtti"
4285 if test "$no_cache" != 1; then
4286 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
4287 fi
4288
4289 if test "$wxUSE_NO_RTTI" = yes; then
4290 echo "$as_me:$LINENO: result: yes" >&5
4291echo "${ECHO_T}yes" >&6
4292 else
4293 echo "$as_me:$LINENO: result: no" >&5
4294echo "${ECHO_T}no" >&6
4295 fi
4296
4297
4298 enablestring=
4299 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
4300echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
4301 no_cache=0
4302 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
4303if test "${enable_no_exceptions+set}" = set; then
4304 enableval="$enable_no_exceptions"
4305
4306 if test "$enableval" = yes; then
4307 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
4308 else
4309 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
4310 fi
4311
4312else
4313
4314 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
4315 if test "x$LINE" != x ; then
4316 eval "DEFAULT_$LINE"
4317 else
4318 no_cache=1
4319 fi
4320
4321 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
4322
4323fi;
4324
4325 eval "$ac_cv_use_no_exceptions"
4326 if test "$no_cache" != 1; then
4327 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
4328 fi
4329
4330 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
4331 echo "$as_me:$LINENO: result: yes" >&5
4332echo "${ECHO_T}yes" >&6
4333 else
4334 echo "$as_me:$LINENO: result: no" >&5
4335echo "${ECHO_T}no" >&6
4336 fi
4337
4338
4339 enablestring=
4340 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
4341echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
4342 no_cache=0
4343 # Check whether --enable-permissive or --disable-permissive was given.
4344if test "${enable_permissive+set}" = set; then
4345 enableval="$enable_permissive"
4346
4347 if test "$enableval" = yes; then
4348 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
4349 else
4350 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
4351 fi
4352
4353else
4354
4355 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
4356 if test "x$LINE" != x ; then
4357 eval "DEFAULT_$LINE"
4358 else
4359 no_cache=1
4360 fi
4361
4362 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
4363
4364fi;
4365
4366 eval "$ac_cv_use_permissive"
4367 if test "$no_cache" != 1; then
4368 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
4369 fi
4370
4371 if test "$wxUSE_PERMISSIVE" = yes; then
4372 echo "$as_me:$LINENO: result: yes" >&5
4373echo "${ECHO_T}yes" >&6
4374 else
4375 echo "$as_me:$LINENO: result: no" >&5
4376echo "${ECHO_T}no" >&6
4377 fi
4378
4379
4380 enablestring=
4381 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
4382echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
4383 no_cache=0
4384 # Check whether --enable-no_deps or --disable-no_deps was given.
4385if test "${enable_no_deps+set}" = set; then
4386 enableval="$enable_no_deps"
4387
4388 if test "$enableval" = yes; then
4389 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
4390 else
4391 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
4392 fi
4393
4394else
4395
4396 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
4397 if test "x$LINE" != x ; then
4398 eval "DEFAULT_$LINE"
4399 else
4400 no_cache=1
4401 fi
4402
4403 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
4404
4405fi;
4406
4407 eval "$ac_cv_use_no_deps"
4408 if test "$no_cache" != 1; then
4409 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
4410 fi
4411
4412 if test "$wxUSE_NO_DEPS" = yes; then
4413 echo "$as_me:$LINENO: result: yes" >&5
4414echo "${ECHO_T}yes" >&6
4415 else
4416 echo "$as_me:$LINENO: result: no" >&5
4417echo "${ECHO_T}no" >&6
4418 fi
4419
4420
95768535 4421 enablestring=
7afc46ab
KO
4422 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal_binary" >&5
4423echo $ECHO_N "checking for --${enablestring:-enable}-universal_binary... $ECHO_C" >&6
4424 no_cache=0
4425 # Check whether --enable-universal_binary or --disable-universal_binary was given.
4426if test "${enable_universal_binary+set}" = set; then
4427 enableval="$enable_universal_binary"
4428
95768535 4429 wx_cv_use_universal_binary="wxUSE_UNIVERSAL_BINARY='$enableval'"
7afc46ab
KO
4430
4431else
4432
4433 LINE=`grep "wxUSE_UNIVERSAL_BINARY" ${wx_arg_cache_file}`
4434 if test "x$LINE" != x ; then
4435 eval "DEFAULT_$LINE"
95768535 4436 wx_cv_use_universal_binary='wxUSE_UNIVERSAL_BINARY='$DEFAULT_wxUSE_UNIVERSAL_BINARY
7afc46ab
KO
4437 else
4438 no_cache=1
95768535 4439 wx_cv_use_universal_binary="wxUSE_UNIVERSAL_BINARY=no"
7afc46ab
KO
4440 fi
4441
7afc46ab
KO
4442fi;
4443
95768535 4444 eval "$wx_cv_use_universal_binary"
7afc46ab 4445 if test "$no_cache" != 1; then
95768535 4446 echo $wx_cv_use_universal_binary >> ${wx_arg_cache_file}.tmp
7afc46ab
KO
4447 fi
4448
95768535
MW
4449 echo "$as_me:$LINENO: result: $wxUSE_UNIVERSAL_BINARY" >&5
4450echo "${ECHO_T}$wxUSE_UNIVERSAL_BINARY" >&6
7afc46ab
KO
4451
4452
a848cd7e 4453
dee1a63f
MB
4454 enablestring=enable
4455 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
4456echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
a848cd7e 4457 no_cache=0
dee1a63f
MB
4458 # Check whether --enable-compat24 or --disable-compat24 was given.
4459if test "${enable_compat24+set}" = set; then
4460 enableval="$enable_compat24"
a848cd7e
SC
4461
4462 if test "$enableval" = yes; then
dee1a63f 4463 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
a848cd7e 4464 else
dee1a63f 4465 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
a848cd7e
SC
4466 fi
4467
4468else
4469
dee1a63f 4470 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
a848cd7e
SC
4471 if test "x$LINE" != x ; then
4472 eval "DEFAULT_$LINE"
4473 else
4474 no_cache=1
4475 fi
4476
dee1a63f 4477 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
a848cd7e
SC
4478
4479fi;
4480
dee1a63f 4481 eval "$ac_cv_use_compat24"
a848cd7e 4482 if test "$no_cache" != 1; then
dee1a63f 4483 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
4484 fi
4485
dee1a63f 4486 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
a848cd7e
SC
4487 echo "$as_me:$LINENO: result: yes" >&5
4488echo "${ECHO_T}yes" >&6
4489 else
4490 echo "$as_me:$LINENO: result: no" >&5
4491echo "${ECHO_T}no" >&6
4492 fi
4493
4494
4495 enablestring=disable
dee1a63f
MB
4496 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat26" >&5
4497echo $ECHO_N "checking for --${enablestring:-enable}-compat26... $ECHO_C" >&6
a848cd7e 4498 no_cache=0
dee1a63f
MB
4499 # Check whether --enable-compat26 or --disable-compat26 was given.
4500if test "${enable_compat26+set}" = set; then
4501 enableval="$enable_compat26"
a848cd7e
SC
4502
4503 if test "$enableval" = yes; then
dee1a63f 4504 ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=yes'
a848cd7e 4505 else
dee1a63f 4506 ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=no'
a848cd7e
SC
4507 fi
4508
4509else
4510
dee1a63f 4511 LINE=`grep "WXWIN_COMPATIBILITY_2_6" ${wx_arg_cache_file}`
a848cd7e
SC
4512 if test "x$LINE" != x ; then
4513 eval "DEFAULT_$LINE"
4514 else
4515 no_cache=1
4516 fi
4517
dee1a63f 4518 ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6='$DEFAULT_WXWIN_COMPATIBILITY_2_6
a848cd7e
SC
4519
4520fi;
4521
dee1a63f 4522 eval "$ac_cv_use_compat26"
a848cd7e 4523 if test "$no_cache" != 1; then
dee1a63f 4524 echo $ac_cv_use_compat26 >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
4525 fi
4526
dee1a63f 4527 if test "$WXWIN_COMPATIBILITY_2_6" = yes; then
a848cd7e
SC
4528 echo "$as_me:$LINENO: result: yes" >&5
4529echo "${ECHO_T}yes" >&6
4530 else
4531 echo "$as_me:$LINENO: result: no" >&5
4532echo "${ECHO_T}no" >&6
4533 fi
4534
4535
ffa0583f
RL
4536
4537 enablestring=
4538 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5
4539echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6
4540 no_cache=0
4541 # Check whether --enable-rpath or --disable-rpath was given.
a848cd7e
SC
4542if test "${enable_rpath+set}" = set; then
4543 enableval="$enable_rpath"
ffa0583f
RL
4544
4545 if test "$enableval" = yes; then
4546 ac_cv_use_rpath='wxUSE_RPATH=yes'
4547 else
4548 ac_cv_use_rpath='wxUSE_RPATH=no'
4549 fi
4550
4551else
4552
4553 LINE=`grep "wxUSE_RPATH" ${wx_arg_cache_file}`
4554 if test "x$LINE" != x ; then
4555 eval "DEFAULT_$LINE"
4556 else
4557 no_cache=1
4558 fi
4559
4560 ac_cv_use_rpath='wxUSE_RPATH='$DEFAULT_wxUSE_RPATH
4561
a848cd7e
SC
4562fi;
4563
ffa0583f
RL
4564 eval "$ac_cv_use_rpath"
4565 if test "$no_cache" != 1; then
4566 echo $ac_cv_use_rpath >> ${wx_arg_cache_file}.tmp
4567 fi
4568
4569 if test "$wxUSE_RPATH" = yes; then
4570 echo "$as_me:$LINENO: result: yes" >&5
4571echo "${ECHO_T}yes" >&6
4572 else
4573 echo "$as_me:$LINENO: result: no" >&5
4574echo "${ECHO_T}no" >&6
4575 fi
4576
a848cd7e
SC
4577
4578
4579
4580
4581 enablestring=
4582 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
4583echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
4584 no_cache=0
4585 # Check whether --enable-intl or --disable-intl was given.
4586if test "${enable_intl+set}" = set; then
4587 enableval="$enable_intl"
4588
4589 if test "$enableval" = yes; then
4590 ac_cv_use_intl='wxUSE_INTL=yes'
4591 else
4592 ac_cv_use_intl='wxUSE_INTL=no'
4593 fi
4594
4595else
4596
4597 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
4598 if test "x$LINE" != x ; then
4599 eval "DEFAULT_$LINE"
4600 else
4601 no_cache=1
4602 fi
4603
4604 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
4605
4606fi;
4607
4608 eval "$ac_cv_use_intl"
4609 if test "$no_cache" != 1; then
4610 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
4611 fi
4612
4613 if test "$wxUSE_INTL" = yes; then
4614 echo "$as_me:$LINENO: result: yes" >&5
4615echo "${ECHO_T}yes" >&6
4616 else
4617 echo "$as_me:$LINENO: result: no" >&5
4618echo "${ECHO_T}no" >&6
4619 fi
4620
4621
4622 enablestring=
4623 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
4624echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
4625 no_cache=0
4626 # Check whether --enable-config or --disable-config was given.
4627if test "${enable_config+set}" = set; then
4628 enableval="$enable_config"
4629
4630 if test "$enableval" = yes; then
4631 ac_cv_use_config='wxUSE_CONFIG=yes'
4632 else
4633 ac_cv_use_config='wxUSE_CONFIG=no'
4634 fi
4635
4636else
4637
4638 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
4639 if test "x$LINE" != x ; then
4640 eval "DEFAULT_$LINE"
4641 else
4642 no_cache=1
4643 fi
4644
4645 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
4646
4647fi;
4648
4649 eval "$ac_cv_use_config"
4650 if test "$no_cache" != 1; then
4651 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
4652 fi
4653
4654 if test "$wxUSE_CONFIG" = yes; then
4655 echo "$as_me:$LINENO: result: yes" >&5
4656echo "${ECHO_T}yes" >&6
4657 else
4658 echo "$as_me:$LINENO: result: no" >&5
4659echo "${ECHO_T}no" >&6
4660 fi
4661
4662
4663
4664 enablestring=
4665 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
4666echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
4667 no_cache=0
4668 # Check whether --enable-protocols or --disable-protocols was given.
4669if test "${enable_protocols+set}" = set; then
4670 enableval="$enable_protocols"
4671
4672 if test "$enableval" = yes; then
4673 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
4674 else
4675 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
4676 fi
4677
4678else
4679
4680 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4681 if test "x$LINE" != x ; then
4682 eval "DEFAULT_$LINE"
4683 else
4684 no_cache=1
4685 fi
4686
4687 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4688
4689fi;
4690
4691 eval "$ac_cv_use_protocols"
4692 if test "$no_cache" != 1; then
4693 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
4694 fi
4695
4696 if test "$wxUSE_PROTOCOL" = yes; then
4697 echo "$as_me:$LINENO: result: yes" >&5
4698echo "${ECHO_T}yes" >&6
4699 else
4700 echo "$as_me:$LINENO: result: no" >&5
4701echo "${ECHO_T}no" >&6
4702 fi
4703
4704
4705 enablestring=
4706 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
4707echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
4708 no_cache=0
4709 # Check whether --enable-ftp or --disable-ftp was given.
4710if test "${enable_ftp+set}" = set; then
4711 enableval="$enable_ftp"
4712
4713 if test "$enableval" = yes; then
4714 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
4715 else
4716 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
4717 fi
4718
4719else
4720
4721 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4722 if test "x$LINE" != x ; then
4723 eval "DEFAULT_$LINE"
4724 else
4725 no_cache=1
4726 fi
4727
4728 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4729
4730fi;
4731
4732 eval "$ac_cv_use_ftp"
4733 if test "$no_cache" != 1; then
4734 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
4735 fi
4736
4737 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4738 echo "$as_me:$LINENO: result: yes" >&5
4739echo "${ECHO_T}yes" >&6
4740 else
4741 echo "$as_me:$LINENO: result: no" >&5
4742echo "${ECHO_T}no" >&6
4743 fi
4744
4745
4746 enablestring=
4747 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
4748echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
4749 no_cache=0
4750 # Check whether --enable-http or --disable-http was given.
4751if test "${enable_http+set}" = set; then
4752 enableval="$enable_http"
4753
4754 if test "$enableval" = yes; then
4755 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
4756 else
4757 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
4758 fi
4759
4760else
4761
4762 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4763 if test "x$LINE" != x ; then
4764 eval "DEFAULT_$LINE"
4765 else
4766 no_cache=1
4767 fi
4768
4769 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4770
4771fi;
4772
4773 eval "$ac_cv_use_http"
4774 if test "$no_cache" != 1; then
4775 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
4776 fi
4777
4778 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4779 echo "$as_me:$LINENO: result: yes" >&5
4780echo "${ECHO_T}yes" >&6
4781 else
4782 echo "$as_me:$LINENO: result: no" >&5
4783echo "${ECHO_T}no" >&6
4784 fi
4785
4786
4787 enablestring=
4788 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
4789echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
4790 no_cache=0
4791 # Check whether --enable-fileproto or --disable-fileproto was given.
4792if test "${enable_fileproto+set}" = set; then
4793 enableval="$enable_fileproto"
4794
4795 if test "$enableval" = yes; then
4796 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4797 else
4798 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4799 fi
4800
4801else
4802
4803 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4804 if test "x$LINE" != x ; then
4805 eval "DEFAULT_$LINE"
4806 else
4807 no_cache=1
4808 fi
4809
4810 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4811
4812fi;
4813
4814 eval "$ac_cv_use_fileproto"
4815 if test "$no_cache" != 1; then
4816 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4817 fi
4818
4819 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4820 echo "$as_me:$LINENO: result: yes" >&5
4821echo "${ECHO_T}yes" >&6
4822 else
4823 echo "$as_me:$LINENO: result: no" >&5
4824echo "${ECHO_T}no" >&6
4825 fi
4826
4827
4828 enablestring=
4829 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4830echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
4831 no_cache=0
4832 # Check whether --enable-sockets or --disable-sockets was given.
4833if test "${enable_sockets+set}" = set; then
4834 enableval="$enable_sockets"
4835
4836 if test "$enableval" = yes; then
4837 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4838 else
4839 ac_cv_use_sockets='wxUSE_SOCKETS=no'
4840 fi
4841
4842else
4843
4844 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4845 if test "x$LINE" != x ; then
4846 eval "DEFAULT_$LINE"
4847 else
4848 no_cache=1
4849 fi
4850
4851 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
4852
4853fi;
4854
4855 eval "$ac_cv_use_sockets"
4856 if test "$no_cache" != 1; then
4857 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4858 fi
4859
4860 if test "$wxUSE_SOCKETS" = yes; then
4861 echo "$as_me:$LINENO: result: yes" >&5
4862echo "${ECHO_T}yes" >&6
4863 else
4864 echo "$as_me:$LINENO: result: no" >&5
4865echo "${ECHO_T}no" >&6
4866 fi
4867
4868
4869 enablestring=
4870 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4871echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
4872 no_cache=0
4873 # Check whether --enable-ole or --disable-ole was given.
4874if test "${enable_ole+set}" = set; then
4875 enableval="$enable_ole"
4876
4877 if test "$enableval" = yes; then
4878 ac_cv_use_ole='wxUSE_OLE=yes'
4879 else
4880 ac_cv_use_ole='wxUSE_OLE=no'
4881 fi
4882
4883else
4884
4885 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4886 if test "x$LINE" != x ; then
4887 eval "DEFAULT_$LINE"
4888 else
4889 no_cache=1
4890 fi
4891
4892 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
4893
4894fi;
4895
4896 eval "$ac_cv_use_ole"
4897 if test "$no_cache" != 1; then
4898 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4899 fi
4900
4901 if test "$wxUSE_OLE" = yes; then
4902 echo "$as_me:$LINENO: result: yes" >&5
4903echo "${ECHO_T}yes" >&6
4904 else
4905 echo "$as_me:$LINENO: result: no" >&5
4906echo "${ECHO_T}no" >&6
4907 fi
4908
4909
4910 enablestring=
4911 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4912echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
4913 no_cache=0
4914 # Check whether --enable-dataobj or --disable-dataobj was given.
4915if test "${enable_dataobj+set}" = set; then
4916 enableval="$enable_dataobj"
4917
4918 if test "$enableval" = yes; then
4919 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4920 else
4921 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4922 fi
4923
4924else
4925
4926 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4927 if test "x$LINE" != x ; then
4928 eval "DEFAULT_$LINE"
4929 else
4930 no_cache=1
4931 fi
4932
4933 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
4934
4935fi;
4936
4937 eval "$ac_cv_use_dataobj"
4938 if test "$no_cache" != 1; then
4939 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4940 fi
4941
4942 if test "$wxUSE_DATAOBJ" = yes; then
4943 echo "$as_me:$LINENO: result: yes" >&5
4944echo "${ECHO_T}yes" >&6
4945 else
4946 echo "$as_me:$LINENO: result: no" >&5
4947echo "${ECHO_T}no" >&6
4948 fi
4949
4950
4951
4952 enablestring=
4953 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4954echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
4955 no_cache=0
4956 # Check whether --enable-ipc or --disable-ipc was given.
4957if test "${enable_ipc+set}" = set; then
4958 enableval="$enable_ipc"
4959
4960 if test "$enableval" = yes; then
4961 ac_cv_use_ipc='wxUSE_IPC=yes'
4962 else
4963 ac_cv_use_ipc='wxUSE_IPC=no'
4964 fi
4965
4966else
4967
4968 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
4969 if test "x$LINE" != x ; then
4970 eval "DEFAULT_$LINE"
4971 else
4972 no_cache=1
4973 fi
4974
4975 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
4976
4977fi;
4978
4979 eval "$ac_cv_use_ipc"
4980 if test "$no_cache" != 1; then
4981 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
4982 fi
4983
4984 if test "$wxUSE_IPC" = yes; then
4985 echo "$as_me:$LINENO: result: yes" >&5
4986echo "${ECHO_T}yes" >&6
4987 else
4988 echo "$as_me:$LINENO: result: no" >&5
4989echo "${ECHO_T}no" >&6
4990 fi
4991
4992
4993
4994 enablestring=
4995 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4996echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
4997 no_cache=0
4998 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4999if test "${enable_apple_ieee+set}" = set; then
5000 enableval="$enable_apple_ieee"
5001
5002 if test "$enableval" = yes; then
5003 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
5004 else
5005 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
5006 fi
5007
5008else
5009
5010 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
5011 if test "x$LINE" != x ; then
5012 eval "DEFAULT_$LINE"
5013 else
5014 no_cache=1
5015 fi
5016
5017 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
5018
5019fi;
5020
5021 eval "$ac_cv_use_apple_ieee"
5022 if test "$no_cache" != 1; then
5023 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
5024 fi
5025
5026 if test "$wxUSE_APPLE_IEEE" = yes; then
5027 echo "$as_me:$LINENO: result: yes" >&5
5028echo "${ECHO_T}yes" >&6
5029 else
5030 echo "$as_me:$LINENO: result: no" >&5
5031echo "${ECHO_T}no" >&6
5032 fi
5033
5034
81f90336
MW
5035 enablestring=
5036 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5
5037echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6
5038 no_cache=0
5039 # Check whether --enable-arcstream or --disable-arcstream was given.
5040if test "${enable_arcstream+set}" = set; then
5041 enableval="$enable_arcstream"
5042
5043 if test "$enableval" = yes; then
9e8e867f 5044 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes'
81f90336 5045 else
9e8e867f 5046 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no'
81f90336
MW
5047 fi
5048
5049else
5050
9e8e867f 5051 LINE=`grep "wxUSE_ARCHIVE_STREAMS" ${wx_arg_cache_file}`
81f90336
MW
5052 if test "x$LINE" != x ; then
5053 eval "DEFAULT_$LINE"
5054 else
5055 no_cache=1
5056 fi
5057
9e8e867f 5058 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS='$DEFAULT_wxUSE_ARCHIVE_STREAMS
81f90336
MW
5059
5060fi;
5061
5062 eval "$ac_cv_use_arcstream"
5063 if test "$no_cache" != 1; then
5064 echo $ac_cv_use_arcstream >> ${wx_arg_cache_file}.tmp
5065 fi
5066
9e8e867f 5067 if test "$wxUSE_ARCHIVE_STREAMS" = yes; then
81f90336
MW
5068 echo "$as_me:$LINENO: result: yes" >&5
5069echo "${ECHO_T}yes" >&6
5070 else
5071 echo "$as_me:$LINENO: result: no" >&5
5072echo "${ECHO_T}no" >&6
5073 fi
5074
5075
a848cd7e 5076 enablestring=
36b6448c
VZ
5077 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5
5078echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6
a848cd7e 5079 no_cache=0
36b6448c
VZ
5080 # Check whether --enable-backtrace or --disable-backtrace was given.
5081if test "${enable_backtrace+set}" = set; then
5082 enableval="$enable_backtrace"
a848cd7e
SC
5083
5084 if test "$enableval" = yes; then
36b6448c 5085 ac_cv_use_backtrace='wxUSE_STACKWALKER=yes'
a848cd7e 5086 else
36b6448c 5087 ac_cv_use_backtrace='wxUSE_STACKWALKER=no'
a848cd7e
SC
5088 fi
5089
5090else
5091
36b6448c 5092 LINE=`grep "wxUSE_STACKWALKER" ${wx_arg_cache_file}`
a848cd7e
SC
5093 if test "x$LINE" != x ; then
5094 eval "DEFAULT_$LINE"
5095 else
5096 no_cache=1
5097 fi
5098
36b6448c 5099 ac_cv_use_backtrace='wxUSE_STACKWALKER='$DEFAULT_wxUSE_STACKWALKER
a848cd7e
SC
5100
5101fi;
5102
36b6448c 5103 eval "$ac_cv_use_backtrace"
a848cd7e 5104 if test "$no_cache" != 1; then
36b6448c 5105 echo $ac_cv_use_backtrace >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
5106 fi
5107
36b6448c 5108 if test "$wxUSE_STACKWALKER" = yes; then
a848cd7e
SC
5109 echo "$as_me:$LINENO: result: yes" >&5
5110echo "${ECHO_T}yes" >&6
5111 else
5112 echo "$as_me:$LINENO: result: no" >&5
5113echo "${ECHO_T}no" >&6
5114 fi
5115
5116
eaff0f0d 5117 enablestring=
36b6448c
VZ
5118 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
5119echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
eaff0f0d 5120 no_cache=0
36b6448c
VZ
5121 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
5122if test "${enable_catch_segvs+set}" = set; then
5123 enableval="$enable_catch_segvs"
eaff0f0d
VZ
5124
5125 if test "$enableval" = yes; then
36b6448c 5126 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
eaff0f0d 5127 else
36b6448c 5128 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
eaff0f0d
VZ
5129 fi
5130
5131else
5132
36b6448c 5133 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
eaff0f0d
VZ
5134 if test "x$LINE" != x ; then
5135 eval "DEFAULT_$LINE"
5136 else
5137 no_cache=1
5138 fi
5139
36b6448c 5140 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
eaff0f0d
VZ
5141
5142fi;
5143
36b6448c 5144 eval "$ac_cv_use_catch_segvs"
eaff0f0d 5145 if test "$no_cache" != 1; then
36b6448c 5146 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
eaff0f0d
VZ
5147 fi
5148
36b6448c 5149 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
eaff0f0d
VZ
5150 echo "$as_me:$LINENO: result: yes" >&5
5151echo "${ECHO_T}yes" >&6
5152 else
5153 echo "$as_me:$LINENO: result: no" >&5
5154echo "${ECHO_T}no" >&6
5155 fi
5156
5157
a848cd7e
SC
5158 enablestring=
5159 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
5160echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
5161 no_cache=0
5162 # Check whether --enable-cmdline or --disable-cmdline was given.
5163if test "${enable_cmdline+set}" = set; then
5164 enableval="$enable_cmdline"
5165
5166 if test "$enableval" = yes; then
5167 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
5168 else
5169 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
5170 fi
5171
5172else
5173
5174 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
5175 if test "x$LINE" != x ; then
5176 eval "DEFAULT_$LINE"
5177 else
5178 no_cache=1
5179 fi
5180
5181 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
5182
5183fi;
5184
5185 eval "$ac_cv_use_cmdline"
5186 if test "$no_cache" != 1; then
5187 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
5188 fi
5189
5190 if test "$wxUSE_CMDLINE_PARSER" = yes; then
5191 echo "$as_me:$LINENO: result: yes" >&5
5192echo "${ECHO_T}yes" >&6
5193 else
5194 echo "$as_me:$LINENO: result: no" >&5
5195echo "${ECHO_T}no" >&6
5196 fi
5197
5198
5199 enablestring=
5200 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
5201echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
5202 no_cache=0
5203 # Check whether --enable-datetime or --disable-datetime was given.
5204if test "${enable_datetime+set}" = set; then
5205 enableval="$enable_datetime"
5206
5207 if test "$enableval" = yes; then
5208 ac_cv_use_datetime='wxUSE_DATETIME=yes'
5209 else
5210 ac_cv_use_datetime='wxUSE_DATETIME=no'
5211 fi
5212
5213else
5214
5215 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
5216 if test "x$LINE" != x ; then
5217 eval "DEFAULT_$LINE"
5218 else
5219 no_cache=1
5220 fi
5221
5222 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
5223
5224fi;
5225
5226 eval "$ac_cv_use_datetime"
5227 if test "$no_cache" != 1; then
5228 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
5229 fi
5230
5231 if test "$wxUSE_DATETIME" = yes; then
5232 echo "$as_me:$LINENO: result: yes" >&5
5233echo "${ECHO_T}yes" >&6
5234 else
5235 echo "$as_me:$LINENO: result: no" >&5
5236echo "${ECHO_T}no" >&6
5237 fi
5238
5239
36b6448c
VZ
5240 enablestring=
5241 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debugreport" >&5
5242echo $ECHO_N "checking for --${enablestring:-enable}-debugreport... $ECHO_C" >&6
5243 no_cache=0
5244 # Check whether --enable-debugreport or --disable-debugreport was given.
5245if test "${enable_debugreport+set}" = set; then
5246 enableval="$enable_debugreport"
5247
5248 if test "$enableval" = yes; then
5249 ac_cv_use_debugreport='wxUSE_DEBUGREPORT=yes'
5250 else
5251 ac_cv_use_debugreport='wxUSE_DEBUGREPORT=no'
5252 fi
5253
5254else
5255
5256 LINE=`grep "wxUSE_DEBUGREPORT" ${wx_arg_cache_file}`
5257 if test "x$LINE" != x ; then
5258 eval "DEFAULT_$LINE"
5259 else
5260 no_cache=1
5261 fi
5262
5263 ac_cv_use_debugreport='wxUSE_DEBUGREPORT='$DEFAULT_wxUSE_DEBUGREPORT
5264
5265fi;
5266
5267 eval "$ac_cv_use_debugreport"
5268 if test "$no_cache" != 1; then
5269 echo $ac_cv_use_debugreport >> ${wx_arg_cache_file}.tmp
5270 fi
5271
5272 if test "$wxUSE_DEBUGREPORT" = yes; then
5273 echo "$as_me:$LINENO: result: yes" >&5
5274echo "${ECHO_T}yes" >&6
5275 else
5276 echo "$as_me:$LINENO: result: no" >&5
5277echo "${ECHO_T}no" >&6
5278 fi
5279
5280
a848cd7e
SC
5281 enablestring=
5282 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
5283echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
5284 no_cache=0
5285 # Check whether --enable-dialupman or --disable-dialupman was given.
5286if test "${enable_dialupman+set}" = set; then
5287 enableval="$enable_dialupman"
5288
5289 if test "$enableval" = yes; then
5290 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
5291 else
5292 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
5293 fi
5294
5295else
5296
5297 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
5298 if test "x$LINE" != x ; then
5299 eval "DEFAULT_$LINE"
5300 else
5301 no_cache=1
5302 fi
5303
5304 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
5305
5306fi;
5307
5308 eval "$ac_cv_use_dialupman"
5309 if test "$no_cache" != 1; then
5310 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
5311 fi
5312
5313 if test "$wxUSE_DIALUP_MANAGER" = yes; then
5314 echo "$as_me:$LINENO: result: yes" >&5
5315echo "${ECHO_T}yes" >&6
5316 else
5317 echo "$as_me:$LINENO: result: no" >&5
5318echo "${ECHO_T}no" >&6
5319 fi
5320
5321
5322 enablestring=
5323 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
5324echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
5325 no_cache=0
5326 # Check whether --enable-dynlib or --disable-dynlib was given.
5327if test "${enable_dynlib+set}" = set; then
5328 enableval="$enable_dynlib"
5329
5330 if test "$enableval" = yes; then
5331 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
5332 else
5333 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
5334 fi
5335
5336else
5337
5338 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
5339 if test "x$LINE" != x ; then
5340 eval "DEFAULT_$LINE"
5341 else
5342 no_cache=1
5343 fi
5344
5345 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
5346
5347fi;
5348
5349 eval "$ac_cv_use_dynlib"
5350 if test "$no_cache" != 1; then
5351 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
5352 fi
5353
5354 if test "$wxUSE_DYNLIB_CLASS" = yes; then
5355 echo "$as_me:$LINENO: result: yes" >&5
5356echo "${ECHO_T}yes" >&6
5357 else
5358 echo "$as_me:$LINENO: result: no" >&5
5359echo "${ECHO_T}no" >&6
5360 fi
5361
5362
5363 enablestring=
5364 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
5365echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
5366 no_cache=0
5367 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
5368if test "${enable_dynamicloader+set}" = set; then
5369 enableval="$enable_dynamicloader"
5370
5371 if test "$enableval" = yes; then
5372 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
5373 else
5374 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
5375 fi
5376
5377else
5378
5379 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
5380 if test "x$LINE" != x ; then
5381 eval "DEFAULT_$LINE"
5382 else
5383 no_cache=1
5384 fi
5385
5386 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
5387
5388fi;
5389
5390 eval "$ac_cv_use_dynamicloader"
5391 if test "$no_cache" != 1; then
5392 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
5393 fi
5394
5395 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
5396 echo "$as_me:$LINENO: result: yes" >&5
5397echo "${ECHO_T}yes" >&6
5398 else
5399 echo "$as_me:$LINENO: result: no" >&5
5400echo "${ECHO_T}no" >&6
5401 fi
5402
5403
5404 enablestring=
5405 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
5406echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6
5407 no_cache=0
5408 # Check whether --enable-exceptions or --disable-exceptions was given.
5409if test "${enable_exceptions+set}" = set; then
5410 enableval="$enable_exceptions"
5411
5412 if test "$enableval" = yes; then
5413 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
5414 else
5415 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
5416 fi
5417
5418else
5419
5420 LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}`
5421 if test "x$LINE" != x ; then
5422 eval "DEFAULT_$LINE"
5423 else
5424 no_cache=1
5425 fi
5426
5427 ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS
5428
5429fi;
5430
5431 eval "$ac_cv_use_exceptions"
5432 if test "$no_cache" != 1; then
5433 echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp
5434 fi
5435
5436 if test "$wxUSE_EXCEPTIONS" = yes; then
5437 echo "$as_me:$LINENO: result: yes" >&5
5438echo "${ECHO_T}yes" >&6
5439 else
5440 echo "$as_me:$LINENO: result: no" >&5
5441echo "${ECHO_T}no" >&6
5442 fi
5443
5444
5445 enablestring=
5446 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
5447echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
5448 no_cache=0
5449 # Check whether --enable-ffile or --disable-ffile was given.
5450if test "${enable_ffile+set}" = set; then
5451 enableval="$enable_ffile"
5452
5453 if test "$enableval" = yes; then
5454 ac_cv_use_ffile='wxUSE_FFILE=yes'
5455 else
5456 ac_cv_use_ffile='wxUSE_FFILE=no'
5457 fi
5458
5459else
5460
5461 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
5462 if test "x$LINE" != x ; then
5463 eval "DEFAULT_$LINE"
5464 else
5465 no_cache=1
5466 fi
5467
5468 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
5469
5470fi;
5471
5472 eval "$ac_cv_use_ffile"
5473 if test "$no_cache" != 1; then
5474 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
5475 fi
5476
5477 if test "$wxUSE_FFILE" = yes; then
5478 echo "$as_me:$LINENO: result: yes" >&5
5479echo "${ECHO_T}yes" >&6
5480 else
5481 echo "$as_me:$LINENO: result: no" >&5
5482echo "${ECHO_T}no" >&6
5483 fi
5484
5485
5486 enablestring=
5487 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
5488echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
5489 no_cache=0
5490 # Check whether --enable-file or --disable-file was given.
5491if test "${enable_file+set}" = set; then
5492 enableval="$enable_file"
5493
5494 if test "$enableval" = yes; then
5495 ac_cv_use_file='wxUSE_FILE=yes'
5496 else
5497 ac_cv_use_file='wxUSE_FILE=no'
5498 fi
5499
5500else
5501
5502 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
5503 if test "x$LINE" != x ; then
5504 eval "DEFAULT_$LINE"
5505 else
5506 no_cache=1
5507 fi
5508
5509 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
5510
5511fi;
5512
5513 eval "$ac_cv_use_file"
5514 if test "$no_cache" != 1; then
5515 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
5516 fi
5517
5518 if test "$wxUSE_FILE" = yes; then
5519 echo "$as_me:$LINENO: result: yes" >&5
5520echo "${ECHO_T}yes" >&6
5521 else
5522 echo "$as_me:$LINENO: result: no" >&5
5523echo "${ECHO_T}no" >&6
5524 fi
5525
5526
5527 enablestring=
5528 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
5529echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
5530 no_cache=0
5531 # Check whether --enable-filesystem or --disable-filesystem was given.
5532if test "${enable_filesystem+set}" = set; then
5533 enableval="$enable_filesystem"
5534
5535 if test "$enableval" = yes; then
5536 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
5537 else
5538 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
5539 fi
5540
5541else
5542
5543 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
5544 if test "x$LINE" != x ; then
5545 eval "DEFAULT_$LINE"
5546 else
5547 no_cache=1
5548 fi
5549
5550 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
5551
5552fi;
5553
5554 eval "$ac_cv_use_filesystem"
5555 if test "$no_cache" != 1; then
5556 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
5557 fi
5558
5559 if test "$wxUSE_FILESYSTEM" = yes; then
5560 echo "$as_me:$LINENO: result: yes" >&5
5561echo "${ECHO_T}yes" >&6
5562 else
5563 echo "$as_me:$LINENO: result: no" >&5
5564echo "${ECHO_T}no" >&6
5565 fi
5566
5567
5568 enablestring=
5569 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
5570echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
5571 no_cache=0
5572 # Check whether --enable-fontmap or --disable-fontmap was given.
5573if test "${enable_fontmap+set}" = set; then
5574 enableval="$enable_fontmap"
5575
5576 if test "$enableval" = yes; then
5577 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
5578 else
5579 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
5580 fi
5581
5582else
5583
5584 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
5585 if test "x$LINE" != x ; then
5586 eval "DEFAULT_$LINE"
5587 else
5588 no_cache=1
5589 fi
5590
5591 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
5592
5593fi;
5594
5595 eval "$ac_cv_use_fontmap"
5596 if test "$no_cache" != 1; then
5597 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
5598 fi
5599
5600 if test "$wxUSE_FONTMAP" = yes; then
5601 echo "$as_me:$LINENO: result: yes" >&5
5602echo "${ECHO_T}yes" >&6
5603 else
5604 echo "$as_me:$LINENO: result: no" >&5
5605echo "${ECHO_T}no" >&6
5606 fi
5607
5608
26e422a9
MW
5609 enablestring=
5610 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_archive" >&5
5611echo $ECHO_N "checking for --${enablestring:-enable}-fs_archive... $ECHO_C" >&6
5612 no_cache=0
5613 # Check whether --enable-fs_archive or --disable-fs_archive was given.
5614if test "${enable_fs_archive+set}" = set; then
5615 enableval="$enable_fs_archive"
5616
5617 if test "$enableval" = yes; then
5618 ac_cv_use_fs_archive='wxUSE_FS_ARCHIVE=yes'
5619 else
5620 ac_cv_use_fs_archive='wxUSE_FS_ARCHIVE=no'
5621 fi
5622
5623else
5624
5625 LINE=`grep "wxUSE_FS_ARCHIVE" ${wx_arg_cache_file}`
5626 if test "x$LINE" != x ; then
5627 eval "DEFAULT_$LINE"
5628 else
5629 no_cache=1
5630 fi
5631
5632 ac_cv_use_fs_archive='wxUSE_FS_ARCHIVE='$DEFAULT_wxUSE_FS_ARCHIVE
5633
5634fi;
5635
5636 eval "$ac_cv_use_fs_archive"
5637 if test "$no_cache" != 1; then
5638 echo $ac_cv_use_fs_archive >> ${wx_arg_cache_file}.tmp
5639 fi
5640
5641 if test "$wxUSE_FS_ARCHIVE" = yes; then
5642 echo "$as_me:$LINENO: result: yes" >&5
5643echo "${ECHO_T}yes" >&6
5644 else
5645 echo "$as_me:$LINENO: result: no" >&5
5646echo "${ECHO_T}no" >&6
5647 fi
5648
5649
a848cd7e
SC
5650 enablestring=
5651 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
5652echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
5653 no_cache=0
5654 # Check whether --enable-fs_inet or --disable-fs_inet was given.
5655if test "${enable_fs_inet+set}" = set; then
5656 enableval="$enable_fs_inet"
5657
5658 if test "$enableval" = yes; then
5659 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
5660 else
5661 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
5662 fi
5663
5664else
5665
5666 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
5667 if test "x$LINE" != x ; then
5668 eval "DEFAULT_$LINE"
5669 else
5670 no_cache=1
5671 fi
5672
5673 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
5674
5675fi;
5676
5677 eval "$ac_cv_use_fs_inet"
5678 if test "$no_cache" != 1; then
5679 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
5680 fi
5681
5682 if test "$wxUSE_FS_INET" = yes; then
5683 echo "$as_me:$LINENO: result: yes" >&5
5684echo "${ECHO_T}yes" >&6
5685 else
5686 echo "$as_me:$LINENO: result: no" >&5
5687echo "${ECHO_T}no" >&6
5688 fi
5689
5690
5691 enablestring=
5692 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
5693echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
5694 no_cache=0
5695 # Check whether --enable-fs_zip or --disable-fs_zip was given.
5696if test "${enable_fs_zip+set}" = set; then
5697 enableval="$enable_fs_zip"
5698
5699 if test "$enableval" = yes; then
5700 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
5701 else
5702 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
5703 fi
5704
5705else
5706
5707 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
5708 if test "x$LINE" != x ; then
5709 eval "DEFAULT_$LINE"
5710 else
5711 no_cache=1
5712 fi
5713
5714 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
5715
5716fi;
5717
5718 eval "$ac_cv_use_fs_zip"
5719 if test "$no_cache" != 1; then
5720 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
5721 fi
5722
5723 if test "$wxUSE_FS_ZIP" = yes; then
5724 echo "$as_me:$LINENO: result: yes" >&5
5725echo "${ECHO_T}yes" >&6
5726 else
5727 echo "$as_me:$LINENO: result: no" >&5
5728echo "${ECHO_T}no" >&6
5729 fi
5730
5731
5732 enablestring=
5733 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
5734echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
5735 no_cache=0
5736 # Check whether --enable-geometry or --disable-geometry was given.
5737if test "${enable_geometry+set}" = set; then
5738 enableval="$enable_geometry"
5739
5740 if test "$enableval" = yes; then
5741 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
5742 else
5743 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
5744 fi
5745
5746else
5747
5748 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
5749 if test "x$LINE" != x ; then
5750 eval "DEFAULT_$LINE"
5751 else
5752 no_cache=1
5753 fi
5754
5755 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
5756
5757fi;
5758
5759 eval "$ac_cv_use_geometry"
5760 if test "$no_cache" != 1; then
5761 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
5762 fi
5763
5764 if test "$wxUSE_GEOMETRY" = yes; then
5765 echo "$as_me:$LINENO: result: yes" >&5
5766echo "${ECHO_T}yes" >&6
5767 else
5768 echo "$as_me:$LINENO: result: no" >&5
5769echo "${ECHO_T}no" >&6
5770 fi
5771
5772
5773 enablestring=
5774 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
5775echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
5776 no_cache=0
5777 # Check whether --enable-log or --disable-log was given.
5778if test "${enable_log+set}" = set; then
5779 enableval="$enable_log"
5780
5781 if test "$enableval" = yes; then
5782 ac_cv_use_log='wxUSE_LOG=yes'
5783 else
5784 ac_cv_use_log='wxUSE_LOG=no'
5785 fi
5786
5787else
5788
5789 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
5790 if test "x$LINE" != x ; then
5791 eval "DEFAULT_$LINE"
5792 else
5793 no_cache=1
5794 fi
5795
5796 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
5797
5798fi;
5799
5800 eval "$ac_cv_use_log"
5801 if test "$no_cache" != 1; then
5802 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
5803 fi
5804
5805 if test "$wxUSE_LOG" = yes; then
5806 echo "$as_me:$LINENO: result: yes" >&5
5807echo "${ECHO_T}yes" >&6
5808 else
5809 echo "$as_me:$LINENO: result: no" >&5
5810echo "${ECHO_T}no" >&6
5811 fi
5812
5813
5814 enablestring=
5815 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
5816echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
5817 no_cache=0
5818 # Check whether --enable-longlong or --disable-longlong was given.
5819if test "${enable_longlong+set}" = set; then
5820 enableval="$enable_longlong"
5821
5822 if test "$enableval" = yes; then
5823 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
5824 else
5825 ac_cv_use_longlong='wxUSE_LONGLONG=no'
5826 fi
5827
5828else
5829
5830 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
5831 if test "x$LINE" != x ; then
5832 eval "DEFAULT_$LINE"
5833 else
5834 no_cache=1
5835 fi
5836
5837 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
5838
5839fi;
5840
5841 eval "$ac_cv_use_longlong"
5842 if test "$no_cache" != 1; then
5843 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
5844 fi
5845
5846 if test "$wxUSE_LONGLONG" = yes; then
5847 echo "$as_me:$LINENO: result: yes" >&5
5848echo "${ECHO_T}yes" >&6
5849 else
5850 echo "$as_me:$LINENO: result: no" >&5
5851echo "${ECHO_T}no" >&6
5852 fi
5853
5854
5855 enablestring=
5856 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5857echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
5858 no_cache=0
5859 # Check whether --enable-mimetype or --disable-mimetype was given.
5860if test "${enable_mimetype+set}" = set; then
5861 enableval="$enable_mimetype"
5862
5863 if test "$enableval" = yes; then
5864 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5865 else
5866 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5867 fi
5868
5869else
5870
5871 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5872 if test "x$LINE" != x ; then
5873 eval "DEFAULT_$LINE"
5874 else
5875 no_cache=1
5876 fi
5877
5878 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
5879
5880fi;
5881
5882 eval "$ac_cv_use_mimetype"
5883 if test "$no_cache" != 1; then
5884 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5885 fi
5886
5887 if test "$wxUSE_MIMETYPE" = yes; then
5888 echo "$as_me:$LINENO: result: yes" >&5
5889echo "${ECHO_T}yes" >&6
5890 else
5891 echo "$as_me:$LINENO: result: no" >&5
5892echo "${ECHO_T}no" >&6
5893 fi
5894
5895
5896 enablestring=
5897 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5898echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
5899 no_cache=0
5900 # Check whether --enable-mslu or --disable-mslu was given.
5901if test "${enable_mslu+set}" = set; then
5902 enableval="$enable_mslu"
5903
5904 if test "$enableval" = yes; then
5905 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5906 else
5907 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5908 fi
5909
5910else
5911
5912 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5913 if test "x$LINE" != x ; then
5914 eval "DEFAULT_$LINE"
5915 else
5916 no_cache=1
5917 fi
5918
5919 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
5920
5921fi;
5922
5923 eval "$ac_cv_use_mslu"
5924 if test "$no_cache" != 1; then
5925 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5926 fi
5927
5928 if test "$wxUSE_UNICODE_MSLU" = yes; then
5929 echo "$as_me:$LINENO: result: yes" >&5
5930echo "${ECHO_T}yes" >&6
5931 else
5932 echo "$as_me:$LINENO: result: no" >&5
5933echo "${ECHO_T}no" >&6
5934 fi
5935
5936
5937 enablestring=
5938 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5939echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
5940 no_cache=0
5941 # Check whether --enable-snglinst or --disable-snglinst was given.
5942if test "${enable_snglinst+set}" = set; then
5943 enableval="$enable_snglinst"
5944
5945 if test "$enableval" = yes; then
5946 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
5947 else
5948 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
5949 fi
5950
5951else
5952
5953 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
5954 if test "x$LINE" != x ; then
5955 eval "DEFAULT_$LINE"
5956 else
5957 no_cache=1
5958 fi
5959
5960 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
5961
5962fi;
5963
5964 eval "$ac_cv_use_snglinst"
5965 if test "$no_cache" != 1; then
5966 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
5967 fi
5968
5969 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
5970 echo "$as_me:$LINENO: result: yes" >&5
5971echo "${ECHO_T}yes" >&6
5972 else
5973 echo "$as_me:$LINENO: result: no" >&5
5974echo "${ECHO_T}no" >&6
5975 fi
5976
5977
5978 enablestring=
07158944
VZ
5979 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5980echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
a848cd7e 5981 no_cache=0
07158944
VZ
5982 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5983if test "${enable_std_iostreams+set}" = set; then
5984 enableval="$enable_std_iostreams"
a848cd7e
SC
5985
5986 if test "$enableval" = yes; then
07158944 5987 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
a848cd7e 5988 else
07158944 5989 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
a848cd7e
SC
5990 fi
5991
5992else
5993
07158944 5994 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
a848cd7e
SC
5995 if test "x$LINE" != x ; then
5996 eval "DEFAULT_$LINE"
5997 else
5998 no_cache=1
5999 fi
6000
07158944 6001 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
a848cd7e
SC
6002
6003fi;
6004
07158944 6005 eval "$ac_cv_use_std_iostreams"
a848cd7e 6006 if test "$no_cache" != 1; then
07158944 6007 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
6008 fi
6009
07158944 6010 if test "$wxUSE_STD_IOSTREAM" = yes; then
a848cd7e
SC
6011 echo "$as_me:$LINENO: result: yes" >&5
6012echo "${ECHO_T}yes" >&6
6013 else
6014 echo "$as_me:$LINENO: result: no" >&5
6015echo "${ECHO_T}no" >&6
6016 fi
6017
6018
59746b65
MW
6019 enablestring=
6020 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_string" >&5
6021echo $ECHO_N "checking for --${enablestring:-enable}-std_string... $ECHO_C" >&6
6022 no_cache=0
6023 # Check whether --enable-std_string or --disable-std_string was given.
6024if test "${enable_std_string+set}" = set; then
6025 enableval="$enable_std_string"
6026
6027 if test "$enableval" = yes; then
6028 ac_cv_use_std_string='wxUSE_STD_STRING=yes'
6029 else
6030 ac_cv_use_std_string='wxUSE_STD_STRING=no'
6031 fi
6032
6033else
6034
6035 LINE=`grep "wxUSE_STD_STRING" ${wx_arg_cache_file}`
6036 if test "x$LINE" != x ; then
6037 eval "DEFAULT_$LINE"
6038 else
6039 no_cache=1
6040 fi
6041
6042 ac_cv_use_std_string='wxUSE_STD_STRING='$DEFAULT_wxUSE_STD_STRING
6043
6044fi;
6045
6046 eval "$ac_cv_use_std_string"
6047 if test "$no_cache" != 1; then
6048 echo $ac_cv_use_std_string >> ${wx_arg_cache_file}.tmp
6049 fi
6050
6051 if test "$wxUSE_STD_STRING" = yes; then
6052 echo "$as_me:$LINENO: result: yes" >&5
6053echo "${ECHO_T}yes" >&6
6054 else
6055 echo "$as_me:$LINENO: result: no" >&5
6056echo "${ECHO_T}no" >&6
6057 fi
6058
6059
a848cd7e 6060 enablestring=
07158944
VZ
6061 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stdpaths" >&5
6062echo $ECHO_N "checking for --${enablestring:-enable}-stdpaths... $ECHO_C" >&6
a848cd7e 6063 no_cache=0
07158944
VZ
6064 # Check whether --enable-stdpaths or --disable-stdpaths was given.
6065if test "${enable_stdpaths+set}" = set; then
6066 enableval="$enable_stdpaths"
a848cd7e
SC
6067
6068 if test "$enableval" = yes; then
07158944 6069 ac_cv_use_stdpaths='wxUSE_STDPATHS=yes'
a848cd7e 6070 else
07158944 6071 ac_cv_use_stdpaths='wxUSE_STDPATHS=no'
a848cd7e
SC
6072 fi
6073
6074else
6075
07158944 6076 LINE=`grep "wxUSE_STDPATHS" ${wx_arg_cache_file}`
a848cd7e
SC
6077 if test "x$LINE" != x ; then
6078 eval "DEFAULT_$LINE"
6079 else
6080 no_cache=1
6081 fi
6082
07158944 6083 ac_cv_use_stdpaths='wxUSE_STDPATHS='$DEFAULT_wxUSE_STDPATHS
a848cd7e
SC
6084
6085fi;
6086
07158944 6087 eval "$ac_cv_use_stdpaths"
a848cd7e 6088 if test "$no_cache" != 1; then
07158944 6089 echo $ac_cv_use_stdpaths >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
6090 fi
6091
07158944 6092 if test "$wxUSE_STDPATHS" = yes; then
a848cd7e
SC
6093 echo "$as_me:$LINENO: result: yes" >&5
6094echo "${ECHO_T}yes" >&6
6095 else
6096 echo "$as_me:$LINENO: result: no" >&5
6097echo "${ECHO_T}no" >&6
6098 fi
6099
6100
6101 enablestring=
6102 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
6103echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
6104 no_cache=0
6105 # Check whether --enable-stopwatch or --disable-stopwatch was given.
6106if test "${enable_stopwatch+set}" = set; then
6107 enableval="$enable_stopwatch"
6108
6109 if test "$enableval" = yes; then
6110 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
6111 else
6112 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
6113 fi
6114
6115else
6116
6117 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
6118 if test "x$LINE" != x ; then
6119 eval "DEFAULT_$LINE"
6120 else
6121 no_cache=1
6122 fi
6123
6124 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
6125
6126fi;
6127
6128 eval "$ac_cv_use_stopwatch"
6129 if test "$no_cache" != 1; then
6130 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
6131 fi
6132
6133 if test "$wxUSE_STOPWATCH" = yes; then
6134 echo "$as_me:$LINENO: result: yes" >&5
6135echo "${ECHO_T}yes" >&6
6136 else
6137 echo "$as_me:$LINENO: result: no" >&5
6138echo "${ECHO_T}no" >&6
6139 fi
6140
6141
07158944
VZ
6142 enablestring=
6143 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
6144echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
6145 no_cache=0
6146 # Check whether --enable-streams or --disable-streams was given.
6147if test "${enable_streams+set}" = set; then
6148 enableval="$enable_streams"
6149
6150 if test "$enableval" = yes; then
6151 ac_cv_use_streams='wxUSE_STREAMS=yes'
6152 else
6153 ac_cv_use_streams='wxUSE_STREAMS=no'
6154 fi
6155
6156else
6157
6158 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
6159 if test "x$LINE" != x ; then
6160 eval "DEFAULT_$LINE"
6161 else
6162 no_cache=1
6163 fi
6164
6165 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
6166
6167fi;
6168
6169 eval "$ac_cv_use_streams"
6170 if test "$no_cache" != 1; then
6171 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
6172 fi
6173
6174 if test "$wxUSE_STREAMS" = yes; then
6175 echo "$as_me:$LINENO: result: yes" >&5
6176echo "${ECHO_T}yes" >&6
6177 else
6178 echo "$as_me:$LINENO: result: no" >&5
6179echo "${ECHO_T}no" >&6
6180 fi
6181
6182
a848cd7e
SC
6183 enablestring=
6184 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
6185echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
6186 no_cache=0
6187 # Check whether --enable-system_options or --disable-system_options was given.
6188if test "${enable_system_options+set}" = set; then
6189 enableval="$enable_system_options"
6190
6191 if test "$enableval" = yes; then
6192 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
6193 else
6194 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
6195 fi
6196
6197else
6198
6199 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
6200 if test "x$LINE" != x ; then
6201 eval "DEFAULT_$LINE"
6202 else
6203 no_cache=1
6204 fi
6205
6206 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
6207
6208fi;
6209
6210 eval "$ac_cv_use_system_options"
6211 if test "$no_cache" != 1; then
6212 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
6213 fi
6214
6215 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
6216 echo "$as_me:$LINENO: result: yes" >&5
6217echo "${ECHO_T}yes" >&6
6218 else
6219 echo "$as_me:$LINENO: result: no" >&5
6220echo "${ECHO_T}no" >&6
6221 fi
6222
6223
26e422a9
MW
6224 enablestring=
6225 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tarstream" >&5
6226echo $ECHO_N "checking for --${enablestring:-enable}-tarstream... $ECHO_C" >&6
6227 no_cache=0
6228 # Check whether --enable-tarstream or --disable-tarstream was given.
6229if test "${enable_tarstream+set}" = set; then
6230 enableval="$enable_tarstream"
6231
6232 if test "$enableval" = yes; then
6233 ac_cv_use_tarstream='wxUSE_TARSTREAM=yes'
6234 else
6235 ac_cv_use_tarstream='wxUSE_TARSTREAM=no'
6236 fi
6237
6238else
6239
6240 LINE=`grep "wxUSE_TARSTREAM" ${wx_arg_cache_file}`
6241 if test "x$LINE" != x ; then
6242 eval "DEFAULT_$LINE"
6243 else
6244 no_cache=1
6245 fi
6246
6247 ac_cv_use_tarstream='wxUSE_TARSTREAM='$DEFAULT_wxUSE_TARSTREAM
6248
6249fi;
6250
6251 eval "$ac_cv_use_tarstream"
6252 if test "$no_cache" != 1; then
6253 echo $ac_cv_use_tarstream >> ${wx_arg_cache_file}.tmp
6254 fi
6255
6256 if test "$wxUSE_TARSTREAM" = yes; then
6257 echo "$as_me:$LINENO: result: yes" >&5
6258echo "${ECHO_T}yes" >&6
6259 else
6260 echo "$as_me:$LINENO: result: no" >&5
6261echo "${ECHO_T}no" >&6
6262 fi
6263
6264
a848cd7e
SC
6265 enablestring=
6266 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
6267echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
6268 no_cache=0
6269 # Check whether --enable-textbuf or --disable-textbuf was given.
6270if test "${enable_textbuf+set}" = set; then
6271 enableval="$enable_textbuf"
6272
6273 if test "$enableval" = yes; then
6274 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
6275 else
6276 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
6277 fi
6278
6279else
6280
6281 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
6282 if test "x$LINE" != x ; then
6283 eval "DEFAULT_$LINE"
6284 else
6285 no_cache=1
6286 fi
6287
6288 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
6289
6290fi;
6291
6292 eval "$ac_cv_use_textbuf"
6293 if test "$no_cache" != 1; then
6294 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
6295 fi
6296
6297 if test "$wxUSE_TEXTBUFFER" = yes; then
6298 echo "$as_me:$LINENO: result: yes" >&5
6299echo "${ECHO_T}yes" >&6
6300 else
6301 echo "$as_me:$LINENO: result: no" >&5
6302echo "${ECHO_T}no" >&6
6303 fi
6304
6305
6306 enablestring=
6307 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
6308echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
6309 no_cache=0
6310 # Check whether --enable-textfile or --disable-textfile was given.
6311if test "${enable_textfile+set}" = set; then
6312 enableval="$enable_textfile"
6313
6314 if test "$enableval" = yes; then
6315 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
6316 else
6317 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
6318 fi
6319
6320else
6321
6322 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
6323 if test "x$LINE" != x ; then
6324 eval "DEFAULT_$LINE"
6325 else
6326 no_cache=1
6327 fi
6328
6329 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
6330
6331fi;
6332
6333 eval "$ac_cv_use_textfile"
6334 if test "$no_cache" != 1; then
6335 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
6336 fi
6337
6338 if test "$wxUSE_TEXTFILE" = yes; then
6339 echo "$as_me:$LINENO: result: yes" >&5
6340echo "${ECHO_T}yes" >&6
6341 else
6342 echo "$as_me:$LINENO: result: no" >&5
6343echo "${ECHO_T}no" >&6
6344 fi
6345
6346
6347 enablestring=
6348 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
6349echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
6350 no_cache=0
6351 # Check whether --enable-timer or --disable-timer was given.
6352if test "${enable_timer+set}" = set; then
6353 enableval="$enable_timer"
6354
6355 if test "$enableval" = yes; then
6356 ac_cv_use_timer='wxUSE_TIMER=yes'
6357 else
6358 ac_cv_use_timer='wxUSE_TIMER=no'
6359 fi
6360
6361else
6362
6363 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
6364 if test "x$LINE" != x ; then
6365 eval "DEFAULT_$LINE"
6366 else
6367 no_cache=1
6368 fi
6369
6370 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
6371
6372fi;
6373
6374 eval "$ac_cv_use_timer"
6375 if test "$no_cache" != 1; then
6376 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
6377 fi
6378
6379 if test "$wxUSE_TIMER" = yes; then
6380 echo "$as_me:$LINENO: result: yes" >&5
6381echo "${ECHO_T}yes" >&6
6382 else
6383 echo "$as_me:$LINENO: result: no" >&5
6384echo "${ECHO_T}no" >&6
6385 fi
6386
6387
6388 enablestring=
6389 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
6390echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
6391 no_cache=0
6392 # Check whether --enable-unicode or --disable-unicode was given.
6393if test "${enable_unicode+set}" = set; then
6394 enableval="$enable_unicode"
6395
6396 if test "$enableval" = yes; then
6397 ac_cv_use_unicode='wxUSE_UNICODE=yes'
6398 else
6399 ac_cv_use_unicode='wxUSE_UNICODE=no'
6400 fi
6401
6402else
6403
6404 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
6405 if test "x$LINE" != x ; then
6406 eval "DEFAULT_$LINE"
6407 else
6408 no_cache=1
6409 fi
6410
6411 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
6412
6413fi;
6414
6415 eval "$ac_cv_use_unicode"
6416 if test "$no_cache" != 1; then
6417 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
6418 fi
6419
6420 if test "$wxUSE_UNICODE" = yes; then
6421 echo "$as_me:$LINENO: result: yes" >&5
6422echo "${ECHO_T}yes" >&6
6423 else
6424 echo "$as_me:$LINENO: result: no" >&5
6425echo "${ECHO_T}no" >&6
6426 fi
6427
6428
6429 enablestring=
6430 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
6431echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6
6432 no_cache=0
6433 # Check whether --enable-sound or --disable-sound was given.
6434if test "${enable_sound+set}" = set; then
6435 enableval="$enable_sound"
6436
6437 if test "$enableval" = yes; then
6438 ac_cv_use_sound='wxUSE_SOUND=yes'
6439 else
6440 ac_cv_use_sound='wxUSE_SOUND=no'
6441 fi
6442
6443else
6444
6445 LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}`
6446 if test "x$LINE" != x ; then
6447 eval "DEFAULT_$LINE"
6448 else
6449 no_cache=1
6450 fi
6451
6452 ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND
6453
6454fi;
6455
6456 eval "$ac_cv_use_sound"
6457 if test "$no_cache" != 1; then
6458 echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp
6459 fi
6460
6461 if test "$wxUSE_SOUND" = yes; then
6462 echo "$as_me:$LINENO: result: yes" >&5
6463echo "${ECHO_T}yes" >&6
6464 else
6465 echo "$as_me:$LINENO: result: no" >&5
6466echo "${ECHO_T}no" >&6
6467 fi
6468
6469
3b57de8b
RL
6470 enablestring=
6471 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5
6472echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6
6473 no_cache=0
6474 # Check whether --enable-mediactrl or --disable-mediactrl was given.
6475if test "${enable_mediactrl+set}" = set; then
6476 enableval="$enable_mediactrl"
6477
6478 if test "$enableval" = yes; then
6479 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=yes'
6480 else
6481 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=no'
6482 fi
6483
6484else
6485
6486 LINE=`grep "wxUSE_MEDIACTRL" ${wx_arg_cache_file}`
6487 if test "x$LINE" != x ; then
6488 eval "DEFAULT_$LINE"
6489 else
6490 no_cache=1
6491 fi
6492
6493 ac_cv_use_mediactrl='wxUSE_MEDIACTRL='$DEFAULT_wxUSE_MEDIACTRL
6494
6495fi;
6496
6497 eval "$ac_cv_use_mediactrl"
6498 if test "$no_cache" != 1; then
6499 echo $ac_cv_use_mediactrl >> ${wx_arg_cache_file}.tmp
6500 fi
6501
6502 if test "$wxUSE_MEDIACTRL" = yes; then
6503 echo "$as_me:$LINENO: result: yes" >&5
6504echo "${ECHO_T}yes" >&6
6505 else
6506 echo "$as_me:$LINENO: result: no" >&5
6507echo "${ECHO_T}no" >&6
6508 fi
6509
6510
f10e38c4
VZ
6511 enablestring=
6512 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gstreamer8" >&5
6513echo $ECHO_N "checking for --${enablestring:-enable}-gstreamer8... $ECHO_C" >&6
6514 no_cache=0
6515 # Check whether --enable-gstreamer8 or --disable-gstreamer8 was given.
6516if test "${enable_gstreamer8+set}" = set; then
6517 enableval="$enable_gstreamer8"
6518
6519 if test "$enableval" = yes; then
6520 ac_cv_use_gstreamer8='wxUSE_GSTREAMER8=yes'
6521 else
6522 ac_cv_use_gstreamer8='wxUSE_GSTREAMER8=no'
6523 fi
6524
6525else
6526
6527 LINE=`grep "wxUSE_GSTREAMER8" ${wx_arg_cache_file}`
6528 if test "x$LINE" != x ; then
6529 eval "DEFAULT_$LINE"
6530 else
6531 no_cache=1
6532 fi
6533
6534 ac_cv_use_gstreamer8='wxUSE_GSTREAMER8='$DEFAULT_wxUSE_GSTREAMER8
6535
6536fi;
6537
6538 eval "$ac_cv_use_gstreamer8"
6539 if test "$no_cache" != 1; then
6540 echo $ac_cv_use_gstreamer8 >> ${wx_arg_cache_file}.tmp
6541 fi
6542
6543 if test "$wxUSE_GSTREAMER8" = yes; then
6544 echo "$as_me:$LINENO: result: yes" >&5
6545echo "${ECHO_T}yes" >&6
6546 else
6547 echo "$as_me:$LINENO: result: no" >&5
6548echo "${ECHO_T}no" >&6
6549 fi
6550
6551
a848cd7e 6552 enablestring=
8b6682b9
JS
6553 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printfposparam" >&5
6554echo $ECHO_N "checking for --${enablestring:-enable}-printfposparam... $ECHO_C" >&6
a848cd7e 6555 no_cache=0
8b6682b9
JS
6556 # Check whether --enable-printfposparam or --disable-printfposparam was given.
6557if test "${enable_printfposparam+set}" = set; then
6558 enableval="$enable_printfposparam"
a848cd7e
SC
6559
6560 if test "$enableval" = yes; then
8b6682b9 6561 ac_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=yes'
a848cd7e 6562 else
8b6682b9 6563 ac_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=no'
a848cd7e
SC
6564 fi
6565
6566else
6567
8b6682b9 6568 LINE=`grep "wxUSE_PRINTF_POS_PARAMS" ${wx_arg_cache_file}`
a848cd7e
SC
6569 if test "x$LINE" != x ; then
6570 eval "DEFAULT_$LINE"
6571 else
6572 no_cache=1
6573 fi
6574
8b6682b9 6575 ac_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS='$DEFAULT_wxUSE_PRINTF_POS_PARAMS
a848cd7e
SC
6576
6577fi;
6578
8b6682b9 6579 eval "$ac_cv_use_printfposparam"
a848cd7e 6580 if test "$no_cache" != 1; then
8b6682b9 6581 echo $ac_cv_use_printfposparam >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
6582 fi
6583
8b6682b9 6584 if test "$wxUSE_PRINTF_POS_PARAMS" = yes; then
a848cd7e
SC
6585 echo "$as_me:$LINENO: result: yes" >&5
6586echo "${ECHO_T}yes" >&6
6587 else
6588 echo "$as_me:$LINENO: result: no" >&5
6589echo "${ECHO_T}no" >&6
6590 fi
6591
6592
6593 enablestring=
6594 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
6595echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
6596 no_cache=0
6597 # Check whether --enable-zipstream or --disable-zipstream was given.
6598if test "${enable_zipstream+set}" = set; then
6599 enableval="$enable_zipstream"
6600
6601 if test "$enableval" = yes; then
6602 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
6603 else
6604 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
6605 fi
6606
6607else
6608
6609 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
6610 if test "x$LINE" != x ; then
6611 eval "DEFAULT_$LINE"
6612 else
6613 no_cache=1
6614 fi
6615
6616 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
6617
6618fi;
6619
6620 eval "$ac_cv_use_zipstream"
6621 if test "$no_cache" != 1; then
6622 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
6623 fi
6624
6625 if test "$wxUSE_ZIPSTREAM" = yes; then
6626 echo "$as_me:$LINENO: result: yes" >&5
6627echo "${ECHO_T}yes" >&6
6628 else
6629 echo "$as_me:$LINENO: result: no" >&5
6630echo "${ECHO_T}no" >&6
6631 fi
6632
6633
a848cd7e
SC
6634
6635 enablestring=
6636 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
6637echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
6638 no_cache=0
6639 # Check whether --enable-url or --disable-url was given.
6640if test "${enable_url+set}" = set; then
6641 enableval="$enable_url"
6642
6643 if test "$enableval" = yes; then
6644 ac_cv_use_url='wxUSE_URL=yes'
6645 else
6646 ac_cv_use_url='wxUSE_URL=no'
6647 fi
6648
6649else
6650
6651 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
6652 if test "x$LINE" != x ; then
6653 eval "DEFAULT_$LINE"
6654 else
6655 no_cache=1
6656 fi
6657
6658 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
6659
6660fi;
6661
6662 eval "$ac_cv_use_url"
6663 if test "$no_cache" != 1; then
6664 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
6665 fi
6666
6667 if test "$wxUSE_URL" = yes; then
6668 echo "$as_me:$LINENO: result: yes" >&5
6669echo "${ECHO_T}yes" >&6
6670 else
6671 echo "$as_me:$LINENO: result: no" >&5
6672echo "${ECHO_T}no" >&6
6673 fi
6674
6675
ca5c6ac3
VZ
6676 enablestring=
6677 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-variant" >&5
6678echo $ECHO_N "checking for --${enablestring:-enable}-variant... $ECHO_C" >&6
6679 no_cache=0
6680 # Check whether --enable-variant or --disable-variant was given.
6681if test "${enable_variant+set}" = set; then
6682 enableval="$enable_variant"
6683
6684 if test "$enableval" = yes; then
6685 ac_cv_use_variant='wxUSE_VARIANT=yes'
6686 else
6687 ac_cv_use_variant='wxUSE_VARIANT=no'
6688 fi
6689
6690else
6691
6692 LINE=`grep "wxUSE_VARIANT" ${wx_arg_cache_file}`
6693 if test "x$LINE" != x ; then
6694 eval "DEFAULT_$LINE"
6695 else
6696 no_cache=1
6697 fi
6698
6699 ac_cv_use_variant='wxUSE_VARIANT='$DEFAULT_wxUSE_VARIANT
6700
6701fi;
6702
6703 eval "$ac_cv_use_variant"
6704 if test "$no_cache" != 1; then
6705 echo $ac_cv_use_variant >> ${wx_arg_cache_file}.tmp
6706 fi
6707
6708 if test "$wxUSE_VARIANT" = yes; then
6709 echo "$as_me:$LINENO: result: yes" >&5
6710echo "${ECHO_T}yes" >&6
6711 else
6712 echo "$as_me:$LINENO: result: no" >&5
6713echo "${ECHO_T}no" >&6
6714 fi
6715
6716
a848cd7e
SC
6717 enablestring=
6718 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
6719echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
6720 no_cache=0
6721 # Check whether --enable-protocol or --disable-protocol was given.
6722if test "${enable_protocol+set}" = set; then
6723 enableval="$enable_protocol"
6724
6725 if test "$enableval" = yes; then
6726 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
6727 else
6728 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
6729 fi
6730
6731else
6732
6733 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
6734 if test "x$LINE" != x ; then
6735 eval "DEFAULT_$LINE"
6736 else
6737 no_cache=1
6738 fi
6739
6740 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
6741
6742fi;
6743
6744 eval "$ac_cv_use_protocol"
6745 if test "$no_cache" != 1; then
6746 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
6747 fi
6748
6749 if test "$wxUSE_PROTOCOL" = yes; then
6750 echo "$as_me:$LINENO: result: yes" >&5
6751echo "${ECHO_T}yes" >&6
6752 else
6753 echo "$as_me:$LINENO: result: no" >&5
6754echo "${ECHO_T}no" >&6
6755 fi
6756
6757
6758 enablestring=
6759 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
6760echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
6761 no_cache=0
6762 # Check whether --enable-protocol_http or --disable-protocol_http was given.
6763if test "${enable_protocol_http+set}" = set; then
6764 enableval="$enable_protocol_http"
6765
6766 if test "$enableval" = yes; then
6767 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
6768 else
6769 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
6770 fi
6771
6772else
6773
6774 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
6775 if test "x$LINE" != x ; then
6776 eval "DEFAULT_$LINE"
6777 else
6778 no_cache=1
6779 fi
6780
6781 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
6782
6783fi;
6784
6785 eval "$ac_cv_use_protocol_http"
6786 if test "$no_cache" != 1; then
6787 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
6788 fi
6789
6790 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
6791 echo "$as_me:$LINENO: result: yes" >&5
6792echo "${ECHO_T}yes" >&6
6793 else
6794 echo "$as_me:$LINENO: result: no" >&5
6795echo "${ECHO_T}no" >&6
6796 fi
6797
6798
6799 enablestring=
6800 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
6801echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
6802 no_cache=0
6803 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
6804if test "${enable_protocol_ftp+set}" = set; then
6805 enableval="$enable_protocol_ftp"
6806
6807 if test "$enableval" = yes; then
6808 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
6809 else
6810 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
6811 fi
6812
6813else
6814
6815 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
6816 if test "x$LINE" != x ; then
6817 eval "DEFAULT_$LINE"
6818 else
6819 no_cache=1
6820 fi
6821
6822 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
6823
6824fi;
6825
6826 eval "$ac_cv_use_protocol_ftp"
6827 if test "$no_cache" != 1; then
6828 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
6829 fi
6830
6831 if test "$wxUSE_PROTOCOL_FTP" = yes; then
6832 echo "$as_me:$LINENO: result: yes" >&5
6833echo "${ECHO_T}yes" >&6
6834 else
6835 echo "$as_me:$LINENO: result: no" >&5
6836echo "${ECHO_T}no" >&6
6837 fi
6838
6839
6840 enablestring=
6841 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
6842echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
6843 no_cache=0
6844 # Check whether --enable-protocol_file or --disable-protocol_file was given.
6845if test "${enable_protocol_file+set}" = set; then
6846 enableval="$enable_protocol_file"
6847
6848 if test "$enableval" = yes; then
6849 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
6850 else
6851 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
6852 fi
6853
6854else
6855
6856 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
6857 if test "x$LINE" != x ; then
6858 eval "DEFAULT_$LINE"
6859 else
6860 no_cache=1
6861 fi
6862
6863 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
6864
6865fi;
6866
6867 eval "$ac_cv_use_protocol_file"
6868 if test "$no_cache" != 1; then
6869 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
6870 fi
6871
6872 if test "$wxUSE_PROTOCOL_FILE" = yes; then
6873 echo "$as_me:$LINENO: result: yes" >&5
6874echo "${ECHO_T}yes" >&6
6875 else
6876 echo "$as_me:$LINENO: result: no" >&5
6877echo "${ECHO_T}no" >&6
6878 fi
6879
6880
6881
6882
6883
6884 enablestring=
6885 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
6886echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
6887 no_cache=0
6888 # Check whether --enable-threads or --disable-threads was given.
6889if test "${enable_threads+set}" = set; then
6890 enableval="$enable_threads"
6891
6892 if test "$enableval" = yes; then
6893 ac_cv_use_threads='wxUSE_THREADS=yes'
6894 else
6895 ac_cv_use_threads='wxUSE_THREADS=no'
6896 fi
6897
6898else
6899
6900 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
6901 if test "x$LINE" != x ; then
6902 eval "DEFAULT_$LINE"
6903 else
6904 no_cache=1
6905 fi
6906
6907 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
6908
6909fi;
6910
6911 eval "$ac_cv_use_threads"
6912 if test "$no_cache" != 1; then
6913 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
6914 fi
6915
6916 if test "$wxUSE_THREADS" = yes; then
6917 echo "$as_me:$LINENO: result: yes" >&5
6918echo "${ECHO_T}yes" >&6
6919 else
6920 echo "$as_me:$LINENO: result: no" >&5
6921echo "${ECHO_T}no" >&6
6922 fi
6923
6924
6925if test "$wxUSE_GUI" = "yes"; then
6926
6927
6928
6929 enablestring=
6930 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
6931echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
6932 no_cache=0
6933 # Check whether --enable-docview or --disable-docview was given.
6934if test "${enable_docview+set}" = set; then
6935 enableval="$enable_docview"
6936
6937 if test "$enableval" = yes; then
6938 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
6939 else
6940 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
6941 fi
6942
6943else
6944
6945 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
6946 if test "x$LINE" != x ; then
6947 eval "DEFAULT_$LINE"
6948 else
6949 no_cache=1
6950 fi
6951
6952 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
6953
6954fi;
6955
6956 eval "$ac_cv_use_docview"
6957 if test "$no_cache" != 1; then
6958 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
6959 fi
6960
6961 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
6962 echo "$as_me:$LINENO: result: yes" >&5
6963echo "${ECHO_T}yes" >&6
6964 else
6965 echo "$as_me:$LINENO: result: no" >&5
6966echo "${ECHO_T}no" >&6
6967 fi
6968
6969
6970 enablestring=
6971 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
6972echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
6973 no_cache=0
6974 # Check whether --enable-help or --disable-help was given.
6975if test "${enable_help+set}" = set; then
6976 enableval="$enable_help"
6977
6978 if test "$enableval" = yes; then
6979 ac_cv_use_help='wxUSE_HELP=yes'
6980 else
6981 ac_cv_use_help='wxUSE_HELP=no'
6982 fi
6983
6984else
6985
6986 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
6987 if test "x$LINE" != x ; then
6988 eval "DEFAULT_$LINE"
6989 else
6990 no_cache=1
6991 fi
6992
6993 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
6994
6995fi;
6996
6997 eval "$ac_cv_use_help"
6998 if test "$no_cache" != 1; then
6999 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
7000 fi
7001
7002 if test "$wxUSE_HELP" = yes; then
7003 echo "$as_me:$LINENO: result: yes" >&5
7004echo "${ECHO_T}yes" >&6
7005 else
7006 echo "$as_me:$LINENO: result: no" >&5
7007echo "${ECHO_T}no" >&6
7008 fi
7009
7010
7011 enablestring=
7012 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
7013echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
7014 no_cache=0
7015 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
7016if test "${enable_mshtmlhelp+set}" = set; then
7017 enableval="$enable_mshtmlhelp"
7018
7019 if test "$enableval" = yes; then
7020 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
7021 else
7022 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
7023 fi
7024
7025else
7026
7027 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
7028 if test "x$LINE" != x ; then
7029 eval "DEFAULT_$LINE"
7030 else
7031 no_cache=1
7032 fi
7033
7034 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
7035
7036fi;
7037
7038 eval "$ac_cv_use_mshtmlhelp"
7039 if test "$no_cache" != 1; then
7040 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
7041 fi
7042
7043 if test "$wxUSE_MS_HTML_HELP" = yes; then
7044 echo "$as_me:$LINENO: result: yes" >&5
7045echo "${ECHO_T}yes" >&6
7046 else
7047 echo "$as_me:$LINENO: result: no" >&5
7048echo "${ECHO_T}no" >&6
7049 fi
7050
7051
7052 enablestring=
7053 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
7054echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
7055 no_cache=0
7056 # Check whether --enable-html or --disable-html was given.
7057if test "${enable_html+set}" = set; then
7058 enableval="$enable_html"
7059
7060 if test "$enableval" = yes; then
7061 ac_cv_use_html='wxUSE_HTML=yes'
7062 else
7063 ac_cv_use_html='wxUSE_HTML=no'
7064 fi
7065
7066else
7067
7068 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
7069 if test "x$LINE" != x ; then
7070 eval "DEFAULT_$LINE"
7071 else
7072 no_cache=1
7073 fi
7074
7075 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
7076
7077fi;
7078
7079 eval "$ac_cv_use_html"
7080 if test "$no_cache" != 1; then
7081 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
7082 fi
7083
7084 if test "$wxUSE_HTML" = yes; then
7085 echo "$as_me:$LINENO: result: yes" >&5
7086echo "${ECHO_T}yes" >&6
7087 else
7088 echo "$as_me:$LINENO: result: no" >&5
7089echo "${ECHO_T}no" >&6
7090 fi
7091
7092
7093 enablestring=
7094 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
7095echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
7096 no_cache=0
7097 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
7098if test "${enable_htmlhelp+set}" = set; then
7099 enableval="$enable_htmlhelp"
7100
7101 if test "$enableval" = yes; then
7102 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
7103 else
7104 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
7105 fi
7106
7107else
7108
7109 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
7110 if test "x$LINE" != x ; then
7111 eval "DEFAULT_$LINE"
7112 else
7113 no_cache=1
7114 fi
7115
7116 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
7117
7118fi;
7119
7120 eval "$ac_cv_use_htmlhelp"
7121 if test "$no_cache" != 1; then
7122 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
7123 fi
7124
7125 if test "$wxUSE_WXHTML_HELP" = yes; then
7126 echo "$as_me:$LINENO: result: yes" >&5
7127echo "${ECHO_T}yes" >&6
7128 else
7129 echo "$as_me:$LINENO: result: no" >&5
7130echo "${ECHO_T}no" >&6
7131 fi
7132
7133
9a8f0513
VS
7134 enablestring=
7135 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5
7136echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6
7137 no_cache=0
7138 # Check whether --enable-xrc or --disable-xrc was given.
7139if test "${enable_xrc+set}" = set; then
7140 enableval="$enable_xrc"
7141
7142 if test "$enableval" = yes; then
7143 ac_cv_use_xrc='wxUSE_XRC=yes'
7144 else
7145 ac_cv_use_xrc='wxUSE_XRC=no'
7146 fi
7147
7148else
7149
7150 LINE=`grep "wxUSE_XRC" ${wx_arg_cache_file}`
7151 if test "x$LINE" != x ; then
7152 eval "DEFAULT_$LINE"
7153 else
7154 no_cache=1
7155 fi
7156
7157 ac_cv_use_xrc='wxUSE_XRC='$DEFAULT_wxUSE_XRC
7158
7159fi;
7160
7161 eval "$ac_cv_use_xrc"
7162 if test "$no_cache" != 1; then
7163 echo $ac_cv_use_xrc >> ${wx_arg_cache_file}.tmp
7164 fi
7165
7166 if test "$wxUSE_XRC" = yes; then
7167 echo "$as_me:$LINENO: result: yes" >&5
7168echo "${ECHO_T}yes" >&6
7169 else
7170 echo "$as_me:$LINENO: result: no" >&5
7171echo "${ECHO_T}no" >&6
7172 fi
7173
7174
3f60522a
JS
7175 enablestring=
7176 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-aui" >&5
7177echo $ECHO_N "checking for --${enablestring:-enable}-aui... $ECHO_C" >&6
7178 no_cache=0
7179 # Check whether --enable-aui or --disable-aui was given.
7180if test "${enable_aui+set}" = set; then
7181 enableval="$enable_aui"
7182
7183 if test "$enableval" = yes; then
7184 ac_cv_use_aui='wxUSE_AUI=yes'
7185 else
7186 ac_cv_use_aui='wxUSE_AUI=no'
7187 fi
7188
7189else
7190
7191 LINE=`grep "wxUSE_AUI" ${wx_arg_cache_file}`
7192 if test "x$LINE" != x ; then
7193 eval "DEFAULT_$LINE"
7194 else
7195 no_cache=1
7196 fi
7197
7198 ac_cv_use_aui='wxUSE_AUI='$DEFAULT_wxUSE_AUI
7199
7200fi;
7201
7202 eval "$ac_cv_use_aui"
7203 if test "$no_cache" != 1; then
7204 echo $ac_cv_use_aui >> ${wx_arg_cache_file}.tmp
7205 fi
7206
7207 if test "$wxUSE_AUI" = yes; then
7208 echo "$as_me:$LINENO: result: yes" >&5
7209echo "${ECHO_T}yes" >&6
7210 else
7211 echo "$as_me:$LINENO: result: no" >&5
7212echo "${ECHO_T}no" >&6
7213 fi
7214
7215
a848cd7e
SC
7216 enablestring=
7217 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
7218echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
7219 no_cache=0
7220 # Check whether --enable-constraints or --disable-constraints was given.
7221if test "${enable_constraints+set}" = set; then
7222 enableval="$enable_constraints"
7223
7224 if test "$enableval" = yes; then
7225 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
7226 else
7227 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
7228 fi
7229
7230else
7231
7232 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
7233 if test "x$LINE" != x ; then
7234 eval "DEFAULT_$LINE"
7235 else
7236 no_cache=1
7237 fi
7238
7239 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
7240
7241fi;
7242
7243 eval "$ac_cv_use_constraints"
7244 if test "$no_cache" != 1; then
7245 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
7246 fi
7247
7248 if test "$wxUSE_CONSTRAINTS" = yes; then
7249 echo "$as_me:$LINENO: result: yes" >&5
7250echo "${ECHO_T}yes" >&6
7251 else
7252 echo "$as_me:$LINENO: result: no" >&5
7253echo "${ECHO_T}no" >&6
7254 fi
7255
7256
7257 enablestring=
7258 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
7259echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
7260 no_cache=0
7261 # Check whether --enable-printarch or --disable-printarch was given.
7262if test "${enable_printarch+set}" = set; then
7263 enableval="$enable_printarch"
7264
7265 if test "$enableval" = yes; then
7266 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
7267 else
7268 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
7269 fi
7270
7271else
7272
7273 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
7274 if test "x$LINE" != x ; then
7275 eval "DEFAULT_$LINE"
7276 else
7277 no_cache=1
7278 fi
7279
7280 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
7281
7282fi;
7283
7284 eval "$ac_cv_use_printarch"
7285 if test "$no_cache" != 1; then
7286 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
7287 fi
7288
7289 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
7290 echo "$as_me:$LINENO: result: yes" >&5
7291echo "${ECHO_T}yes" >&6
7292 else
7293 echo "$as_me:$LINENO: result: no" >&5
7294echo "${ECHO_T}no" >&6
7295 fi
7296
7297
7298 enablestring=
7299 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
7300echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
7301 no_cache=0
7302 # Check whether --enable-mdi or --disable-mdi was given.
7303if test "${enable_mdi+set}" = set; then
7304 enableval="$enable_mdi"
7305
7306 if test "$enableval" = yes; then
8a7b1113 7307 ac_cv_use_mdi='wxUSE_MDI=yes'
a848cd7e 7308 else
8a7b1113 7309 ac_cv_use_mdi='wxUSE_MDI=no'
a848cd7e
SC
7310 fi
7311
7312else
7313
8a7b1113 7314 LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}`
a848cd7e
SC
7315 if test "x$LINE" != x ; then
7316 eval "DEFAULT_$LINE"
7317 else
7318 no_cache=1
7319 fi
7320
8a7b1113 7321 ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI
a848cd7e
SC
7322
7323fi;
7324
7325 eval "$ac_cv_use_mdi"
7326 if test "$no_cache" != 1; then
7327 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
7328 fi
7329
8a7b1113
VZ
7330 if test "$wxUSE_MDI" = yes; then
7331 echo "$as_me:$LINENO: result: yes" >&5
7332echo "${ECHO_T}yes" >&6
7333 else
7334 echo "$as_me:$LINENO: result: no" >&5
7335echo "${ECHO_T}no" >&6
7336 fi
7337
7338
7339 enablestring=
7340 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
7341echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6
7342 no_cache=0
7343 # Check whether --enable-mdidoc or --disable-mdidoc was given.
7344if test "${enable_mdidoc+set}" = set; then
7345 enableval="$enable_mdidoc"
7346
7347 if test "$enableval" = yes; then
7348 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
7349 else
7350 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
7351 fi
7352
7353else
7354
7355 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
7356 if test "x$LINE" != x ; then
7357 eval "DEFAULT_$LINE"
7358 else
7359 no_cache=1
7360 fi
7361
7362 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
7363
7364fi;
7365
7366 eval "$ac_cv_use_mdidoc"
7367 if test "$no_cache" != 1; then
7368 echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp
7369 fi
7370
a848cd7e
SC
7371 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
7372 echo "$as_me:$LINENO: result: yes" >&5
7373echo "${ECHO_T}yes" >&6
7374 else
7375 echo "$as_me:$LINENO: result: no" >&5
7376echo "${ECHO_T}no" >&6
7377 fi
7378
7379
7380 enablestring=
7381 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
7382echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
7383 no_cache=0
7384 # Check whether --enable-loggui or --disable-loggui was given.
7385if test "${enable_loggui+set}" = set; then
7386 enableval="$enable_loggui"
7387
7388 if test "$enableval" = yes; then
7389 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
7390 else
7391 ac_cv_use_loggui='wxUSE_LOGGUI=no'
7392 fi
7393
7394else
7395
7396 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
7397 if test "x$LINE" != x ; then
7398 eval "DEFAULT_$LINE"
7399 else
7400 no_cache=1
7401 fi
7402
7403 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
7404
7405fi;
7406
7407 eval "$ac_cv_use_loggui"
7408 if test "$no_cache" != 1; then
7409 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
7410 fi
7411
7412 if test "$wxUSE_LOGGUI" = yes; then
7413 echo "$as_me:$LINENO: result: yes" >&5
7414echo "${ECHO_T}yes" >&6
7415 else
7416 echo "$as_me:$LINENO: result: no" >&5
7417echo "${ECHO_T}no" >&6
7418 fi
7419
7420
7421 enablestring=
7422 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
7423echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
7424 no_cache=0
7425 # Check whether --enable-logwin or --disable-logwin was given.
7426if test "${enable_logwin+set}" = set; then
7427 enableval="$enable_logwin"
7428
7429 if test "$enableval" = yes; then
7430 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
7431 else
7432 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
7433 fi
7434
7435else
7436
7437 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
7438 if test "x$LINE" != x ; then
7439 eval "DEFAULT_$LINE"
7440 else
7441 no_cache=1
7442 fi
7443
7444 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
7445
7446fi;
7447
7448 eval "$ac_cv_use_logwin"
7449 if test "$no_cache" != 1; then
7450 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
7451 fi
7452
7453 if test "$wxUSE_LOGWINDOW" = yes; then
7454 echo "$as_me:$LINENO: result: yes" >&5
7455echo "${ECHO_T}yes" >&6
7456 else
7457 echo "$as_me:$LINENO: result: no" >&5
7458echo "${ECHO_T}no" >&6
7459 fi
7460
7461
7462 enablestring=
7463 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
7464echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
7465 no_cache=0
7466 # Check whether --enable-logdialog or --disable-logdialog was given.
7467if test "${enable_logdialog+set}" = set; then
7468 enableval="$enable_logdialog"
7469
7470 if test "$enableval" = yes; then
7471 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
7472 else
7473 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
7474 fi
7475
7476else
7477
7478 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
7479 if test "x$LINE" != x ; then
7480 eval "DEFAULT_$LINE"
7481 else
7482 no_cache=1
7483 fi
7484
7485 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
7486
7487fi;
7488
7489 eval "$ac_cv_use_logdialog"
7490 if test "$no_cache" != 1; then
7491 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
7492 fi
7493
7494 if test "$wxUSE_LOGDIALOG" = yes; then
7495 echo "$as_me:$LINENO: result: yes" >&5
7496echo "${ECHO_T}yes" >&6
7497 else
7498 echo "$as_me:$LINENO: result: no" >&5
7499echo "${ECHO_T}no" >&6
7500 fi
7501
7502
646b6ec1
VS
7503 enablestring=
7504 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
7505echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6
7506 no_cache=0
7507 # Check whether --enable-webkit or --disable-webkit was given.
7508if test "${enable_webkit+set}" = set; then
7509 enableval="$enable_webkit"
7510
7511 if test "$enableval" = yes; then
7512 ac_cv_use_webkit='wxUSE_WEBKIT=yes'
7513 else
7514 ac_cv_use_webkit='wxUSE_WEBKIT=no'
7515 fi
7516
7517else
7518
7519 LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}`
7520 if test "x$LINE" != x ; then
7521 eval "DEFAULT_$LINE"
7522 else
7523 no_cache=1
7524 fi
7525
7526 ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT
7527
7528fi;
7529
7530 eval "$ac_cv_use_webkit"
7531 if test "$no_cache" != 1; then
7532 echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp
7533 fi
7534
7535 if test "$wxUSE_WEBKIT" = yes; then
7536 echo "$as_me:$LINENO: result: yes" >&5
7537echo "${ECHO_T}yes" >&6
7538 else
7539 echo "$as_me:$LINENO: result: no" >&5
7540echo "${ECHO_T}no" >&6
7541 fi
7542
7543
91dea314 7544 enablestring=
6da4ac91
VZ
7545 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-richtext" >&5
7546echo $ECHO_N "checking for --${enablestring:-enable}-richtext... $ECHO_C" >&6
91dea314 7547 no_cache=0
6da4ac91
VZ
7548 # Check whether --enable-richtext or --disable-richtext was given.
7549if test "${enable_richtext+set}" = set; then
7550 enableval="$enable_richtext"
91dea314
MW
7551
7552 if test "$enableval" = yes; then
6da4ac91 7553 ac_cv_use_richtext='wxUSE_RICHTEXT=yes'
91dea314 7554 else
6da4ac91 7555 ac_cv_use_richtext='wxUSE_RICHTEXT=no'
91dea314
MW
7556 fi
7557
7558else
7559
7560 LINE=`grep "wxUSE_RICHTEXT" ${wx_arg_cache_file}`
7561 if test "x$LINE" != x ; then
7562 eval "DEFAULT_$LINE"
7563 else
7564 no_cache=1
7565 fi
7566
6da4ac91 7567 ac_cv_use_richtext='wxUSE_RICHTEXT='$DEFAULT_wxUSE_RICHTEXT
91dea314
MW
7568
7569fi;
7570
6da4ac91 7571 eval "$ac_cv_use_richtext"
91dea314 7572 if test "$no_cache" != 1; then
6da4ac91 7573 echo $ac_cv_use_richtext >> ${wx_arg_cache_file}.tmp
91dea314
MW
7574 fi
7575
7576 if test "$wxUSE_RICHTEXT" = yes; then
7577 echo "$as_me:$LINENO: result: yes" >&5
7578echo "${ECHO_T}yes" >&6
7579 else
7580 echo "$as_me:$LINENO: result: no" >&5
7581echo "${ECHO_T}no" >&6
7582 fi
7583
7584
f43426c1
RD
7585 enablestring=
7586 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-graphics_ctx" >&5
7587echo $ECHO_N "checking for --${enablestring:-enable}-graphics_ctx... $ECHO_C" >&6
7588 no_cache=0
7589 # Check whether --enable-graphics_ctx or --disable-graphics_ctx was given.
7590if test "${enable_graphics_ctx+set}" = set; then
7591 enableval="$enable_graphics_ctx"
7592
7593 if test "$enableval" = yes; then
7594 ac_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=yes'
7595 else
7596 ac_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=no'
7597 fi
7598
7599else
7600
7601 LINE=`grep "wxUSE_GRAPHICS_CONTEXT" ${wx_arg_cache_file}`
7602 if test "x$LINE" != x ; then
7603 eval "DEFAULT_$LINE"
7604 else
7605 no_cache=1
7606 fi
7607
7608 ac_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT='$DEFAULT_wxUSE_GRAPHICS_CONTEXT
7609
7610fi;
7611
7612 eval "$ac_cv_use_graphics_ctx"
7613 if test "$no_cache" != 1; then
7614 echo $ac_cv_use_graphics_ctx >> ${wx_arg_cache_file}.tmp
7615 fi
7616
7617 if test "$wxUSE_GRAPHICS_CONTEXT" = yes; then
7618 echo "$as_me:$LINENO: result: yes" >&5
7619echo "${ECHO_T}yes" >&6
7620 else
7621 echo "$as_me:$LINENO: result: no" >&5
7622echo "${ECHO_T}no" >&6
7623 fi
7624
7625
a848cd7e
SC
7626
7627 enablestring=
7628 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
7629echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
7630 no_cache=0
7631 # Check whether --enable-postscript or --disable-postscript was given.
7632if test "${enable_postscript+set}" = set; then
7633 enableval="$enable_postscript"
7634
7635 if test "$enableval" = yes; then
7636 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
7637 else
7638 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
7639 fi
7640
7641else
7642
7643 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
7644 if test "x$LINE" != x ; then
7645 eval "DEFAULT_$LINE"
7646 else
7647 no_cache=1
7648 fi
7649
7650 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
7651
7652fi;
7653
7654 eval "$ac_cv_use_postscript"
7655 if test "$no_cache" != 1; then
7656 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
7657 fi
7658
7659 if test "$wxUSE_POSTSCRIPT" = yes; then
7660 echo "$as_me:$LINENO: result: yes" >&5
7661echo "${ECHO_T}yes" >&6
7662 else
7663 echo "$as_me:$LINENO: result: no" >&5
7664echo "${ECHO_T}no" >&6
7665 fi
7666
7667
7668
7669
7670
7671 enablestring=
7672 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
7673echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
7674 no_cache=0
7675 # Check whether --enable-prologio or --disable-prologio was given.
7676if test "${enable_prologio+set}" = set; then
7677 enableval="$enable_prologio"
7678
7679 if test "$enableval" = yes; then
7680 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
7681 else
7682 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
7683 fi
7684
7685else
7686
7687 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
7688 if test "x$LINE" != x ; then
7689 eval "DEFAULT_$LINE"
7690 else
7691 no_cache=1
7692 fi
7693
7694 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
7695
7696fi;
7697
7698 eval "$ac_cv_use_prologio"
7699 if test "$no_cache" != 1; then
7700 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
7701 fi
7702
7703 if test "$wxUSE_PROLOGIO" = yes; then
7704 echo "$as_me:$LINENO: result: yes" >&5
7705echo "${ECHO_T}yes" >&6
7706 else
7707 echo "$as_me:$LINENO: result: no" >&5
7708echo "${ECHO_T}no" >&6
7709 fi
7710
7711
7712 enablestring=
7713 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
7714echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
7715 no_cache=0
7716 # Check whether --enable-resources or --disable-resources was given.
7717if test "${enable_resources+set}" = set; then
7718 enableval="$enable_resources"
7719
7720 if test "$enableval" = yes; then
7721 ac_cv_use_resources='wxUSE_RESOURCES=yes'
7722 else
7723 ac_cv_use_resources='wxUSE_RESOURCES=no'
7724 fi
7725
7726else
7727
7728 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
7729 if test "x$LINE" != x ; then
7730 eval "DEFAULT_$LINE"
7731 else
7732 no_cache=1
7733 fi
7734
7735 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
7736
7737fi;
7738
7739 eval "$ac_cv_use_resources"
7740 if test "$no_cache" != 1; then
7741 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
7742 fi
7743
7744 if test "$wxUSE_RESOURCES" = yes; then
7745 echo "$as_me:$LINENO: result: yes" >&5
7746echo "${ECHO_T}yes" >&6
7747 else
7748 echo "$as_me:$LINENO: result: no" >&5
7749echo "${ECHO_T}no" >&6
7750 fi
7751
7752
7753
7754
7755 enablestring=
7756 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
7757echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
7758 no_cache=0
7759 # Check whether --enable-clipboard or --disable-clipboard was given.
7760if test "${enable_clipboard+set}" = set; then
7761 enableval="$enable_clipboard"
7762
7763 if test "$enableval" = yes; then
7764 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
7765 else
7766 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
7767 fi
7768
7769else
7770
7771 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
7772 if test "x$LINE" != x ; then
7773 eval "DEFAULT_$LINE"
7774 else
7775 no_cache=1
7776 fi
7777
7778 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
7779
7780fi;
7781
7782 eval "$ac_cv_use_clipboard"
7783 if test "$no_cache" != 1; then
7784 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
7785 fi
7786
7787 if test "$wxUSE_CLIPBOARD" = yes; then
7788 echo "$as_me:$LINENO: result: yes" >&5
7789echo "${ECHO_T}yes" >&6
7790 else
7791 echo "$as_me:$LINENO: result: no" >&5
7792echo "${ECHO_T}no" >&6
7793 fi
7794
7795
7796 enablestring=
7797 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
7798echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
7799 no_cache=0
7800 # Check whether --enable-dnd or --disable-dnd was given.
7801if test "${enable_dnd+set}" = set; then
7802 enableval="$enable_dnd"
7803
7804 if test "$enableval" = yes; then
7805 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
7806 else
7807 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
7808 fi
7809
7810else
7811
7812 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
7813 if test "x$LINE" != x ; then
7814 eval "DEFAULT_$LINE"
7815 else
7816 no_cache=1
7817 fi
7818
7819 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
7820
7821fi;
7822
7823 eval "$ac_cv_use_dnd"
7824 if test "$no_cache" != 1; then
7825 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
7826 fi
7827
7828 if test "$wxUSE_DRAG_AND_DROP" = yes; then
7829 echo "$as_me:$LINENO: result: yes" >&5
7830echo "${ECHO_T}yes" >&6
7831 else
7832 echo "$as_me:$LINENO: result: no" >&5
7833echo "${ECHO_T}no" >&6
7834 fi
7835
7836
7837 enablestring=
7838 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
7839echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
7840 no_cache=0
7841 # Check whether --enable-metafile or --disable-metafile was given.
7842if test "${enable_metafile+set}" = set; then
7843 enableval="$enable_metafile"
7844
7845 if test "$enableval" = yes; then
7846 ac_cv_use_metafile='wxUSE_METAFILE=yes'
7847 else
7848 ac_cv_use_metafile='wxUSE_METAFILE=no'
7849 fi
7850
7851else
7852
7853 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
7854 if test "x$LINE" != x ; then
7855 eval "DEFAULT_$LINE"
7856 else
7857 no_cache=1
7858 fi
7859
7860 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
7861
7862fi;
7863
7864 eval "$ac_cv_use_metafile"
7865 if test "$no_cache" != 1; then
7866 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
7867 fi
7868
7869 if test "$wxUSE_METAFILE" = yes; then
7870 echo "$as_me:$LINENO: result: yes" >&5
7871echo "${ECHO_T}yes" >&6
7872 else
7873 echo "$as_me:$LINENO: result: no" >&5
7874echo "${ECHO_T}no" >&6
7875 fi
7876
7877
7878
7879
7880
7881 enablestring=
7882 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
7883echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
7884 no_cache=0
7885 # Check whether --enable-controls or --disable-controls was given.
7886if test "${enable_controls+set}" = set; then
7887 enableval="$enable_controls"
7888
7889 if test "$enableval" = yes; then
7890 ac_cv_use_controls='wxUSE_CONTROLS=yes'
7891 else
7892 ac_cv_use_controls='wxUSE_CONTROLS=no'
7893 fi
7894
7895else
7896
7897 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
7898 if test "x$LINE" != x ; then
7899 eval "DEFAULT_$LINE"
7900 else
7901 no_cache=1
7902 fi
7903
7904 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
7905
7906fi;
7907
7908 eval "$ac_cv_use_controls"
7909 if test "$no_cache" != 1; then
7910 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
7911 fi
7912
7913 if test "$wxUSE_CONTROLS" = yes; then
7914 echo "$as_me:$LINENO: result: yes" >&5
7915echo "${ECHO_T}yes" >&6
7916 else
7917 echo "$as_me:$LINENO: result: no" >&5
7918echo "${ECHO_T}no" >&6
7919 fi
7920
7921
7922if test "$wxUSE_CONTROLS" = "yes"; then
7923 DEFAULT_wxUSE_ACCEL=yes
3ea50042 7924 DEFAULT_wxUSE_ANIMATIONCTRL=yes
a848cd7e
SC
7925 DEFAULT_wxUSE_BMPBUTTON=yes
7926 DEFAULT_wxUSE_BUTTON=yes
da98e9be 7927 DEFAULT_wxUSE_CALCTRL=yes
a848cd7e
SC
7928 DEFAULT_wxUSE_CARET=yes
7929 DEFAULT_wxUSE_COMBOBOX=yes
7930 DEFAULT_wxUSE_CHECKBOX=yes
7931 DEFAULT_wxUSE_CHECKLISTBOX=yes
7932 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 7933 DEFAULT_wxUSE_CHOICEBOOK=yes
bd915ace 7934 DEFAULT_wxUSE_COLLPANE=yes
e9263684
VZ
7935 DEFAULT_wxUSE_COLOURPICKERCTRL=yes
7936 DEFAULT_wxUSE_COMBOBOX=yes
da98e9be 7937 DEFAULT_wxUSE_DATEPICKCTRL=yes
e9263684 7938 DEFAULT_wxUSE_DISPLAY=yes
88bbc332 7939 DEFAULT_wxUSE_DETECT_SM=yes
e9263684
VZ
7940 DEFAULT_wxUSE_DIRPICKERCTRL=yes
7941 DEFAULT_wxUSE_FILEPICKERCTRL=yes
7942 DEFAULT_wxUSE_FONTPICKERCTRL=yes
a848cd7e
SC
7943 DEFAULT_wxUSE_GAUGE=yes
7944 DEFAULT_wxUSE_GRID=yes
6954625c 7945 DEFAULT_wxUSE_HYPERLINKCTRL=yes
20e34ecc 7946 DEFAULT_wxUSE_DATAVIEWCTRL=no
a848cd7e
SC
7947 DEFAULT_wxUSE_IMAGLIST=yes
7948 DEFAULT_wxUSE_LISTBOOK=yes
7949 DEFAULT_wxUSE_LISTBOX=yes
7950 DEFAULT_wxUSE_LISTCTRL=yes
7951 DEFAULT_wxUSE_NOTEBOOK=yes
7952 DEFAULT_wxUSE_RADIOBOX=yes
7953 DEFAULT_wxUSE_RADIOBTN=yes
7954 DEFAULT_wxUSE_SASH=yes
7955 DEFAULT_wxUSE_SCROLLBAR=yes
7956 DEFAULT_wxUSE_SLIDER=yes
7957 DEFAULT_wxUSE_SPINBTN=yes
7958 DEFAULT_wxUSE_SPINCTRL=yes
7959 DEFAULT_wxUSE_SPLITTER=yes
7960 DEFAULT_wxUSE_STATBMP=yes
7961 DEFAULT_wxUSE_STATBOX=yes
7962 DEFAULT_wxUSE_STATLINE=yes
7963 DEFAULT_wxUSE_STATUSBAR=yes
7964 DEFAULT_wxUSE_TAB_DIALOG=yes
7965 DEFAULT_wxUSE_TOGGLEBTN=yes
7966 DEFAULT_wxUSE_TOOLBAR=yes
7967 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
a848cd7e 7968 DEFAULT_wxUSE_TOOLTIPS=yes
0093c2fc 7969 DEFAULT_wxUSE_TREEBOOK=yes
5ec3bc43 7970 DEFAULT_wxUSE_TOOLBOOK=yes
a848cd7e
SC
7971 DEFAULT_wxUSE_TREECTRL=yes
7972 DEFAULT_wxUSE_POPUPWIN=yes
7973 DEFAULT_wxUSE_TIPWINDOW=yes
7974elif test "$wxUSE_CONTROLS" = "no"; then
7975 DEFAULT_wxUSE_ACCEL=no
3ea50042 7976 DEFAULT_wxUSE_ANIMATIONCTRL=no
a848cd7e
SC
7977 DEFAULT_wxUSE_BMPBUTTON=no
7978 DEFAULT_wxUSE_BUTTON=no
7979 DEFAULT_wxUSE_CALCTRL=no
7980 DEFAULT_wxUSE_CARET=no
bd915ace 7981 DEFAULT_wxUSE_COLLPANE=no
a848cd7e
SC
7982 DEFAULT_wxUSE_COMBOBOX=no
7983 DEFAULT_wxUSE_CHECKBOX=no
7984 DEFAULT_wxUSE_CHECKLISTBOX=no
7985 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 7986 DEFAULT_wxUSE_CHOICEBOOK=no
e9263684
VZ
7987 DEFAULT_wxUSE_COLOURPICKERCTRL=no
7988 DEFAULT_wxUSE_COMBOBOX=no
da98e9be 7989 DEFAULT_wxUSE_DATEPICKCTRL=no
e9263684 7990 DEFAULT_wxUSE_DISPLAY=no
88bbc332 7991 DEFAULT_wxUSE_DETECT_SM=no
e9263684
VZ
7992 DEFAULT_wxUSE_DIRPICKERCTRL=no
7993 DEFAULT_wxUSE_FILEPICKERCTRL=no
7994 DEFAULT_wxUSE_FONTPICKERCTRL=no
a848cd7e
SC
7995 DEFAULT_wxUSE_GAUGE=no
7996 DEFAULT_wxUSE_GRID=no
6954625c 7997 DEFAULT_wxUSE_HYPERLINKCTRL=no
20e34ecc 7998 DEFAULT_wxUSE_DATAVIEWCTRL=no
a848cd7e
SC
7999 DEFAULT_wxUSE_IMAGLIST=no
8000 DEFAULT_wxUSE_LISTBOOK=no
8001 DEFAULT_wxUSE_LISTBOX=no
8002 DEFAULT_wxUSE_LISTCTRL=no
8003 DEFAULT_wxUSE_NOTEBOOK=no
8004 DEFAULT_wxUSE_RADIOBOX=no
8005 DEFAULT_wxUSE_RADIOBTN=no
8006 DEFAULT_wxUSE_SASH=no
8007 DEFAULT_wxUSE_SCROLLBAR=no
8008 DEFAULT_wxUSE_SLIDER=no
8009 DEFAULT_wxUSE_SPINBTN=no
8010 DEFAULT_wxUSE_SPINCTRL=no
8011 DEFAULT_wxUSE_SPLITTER=no
8012 DEFAULT_wxUSE_STATBMP=no
8013 DEFAULT_wxUSE_STATBOX=no
8014 DEFAULT_wxUSE_STATLINE=no
8015 DEFAULT_wxUSE_STATUSBAR=no
8016 DEFAULT_wxUSE_TAB_DIALOG=no
8017 DEFAULT_wxUSE_TOGGLEBTN=no
8018 DEFAULT_wxUSE_TOOLBAR=no
8019 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
a848cd7e 8020 DEFAULT_wxUSE_TOOLTIPS=no
0093c2fc 8021 DEFAULT_wxUSE_TREEBOOK=no
5ec3bc43 8022 DEFAULT_wxUSE_TOOLBOOK=no
a848cd7e
SC
8023 DEFAULT_wxUSE_TREECTRL=no
8024 DEFAULT_wxUSE_POPUPWIN=no
8025 DEFAULT_wxUSE_TIPWINDOW=no
8026fi
8027
a848cd7e
SC
8028
8029 enablestring=
8030 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
8031echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
8032 no_cache=0
8033 # Check whether --enable-accel or --disable-accel was given.
8034if test "${enable_accel+set}" = set; then
8035 enableval="$enable_accel"
8036
8037 if test "$enableval" = yes; then
8038 ac_cv_use_accel='wxUSE_ACCEL=yes'
8039 else
8040 ac_cv_use_accel='wxUSE_ACCEL=no'
8041 fi
8042
8043else
8044
8045 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
8046 if test "x$LINE" != x ; then
8047 eval "DEFAULT_$LINE"
8048 else
8049 no_cache=1
8050 fi
8051
8052 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
8053
8054fi;
8055
8056 eval "$ac_cv_use_accel"
8057 if test "$no_cache" != 1; then
8058 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
8059 fi
8060
8061 if test "$wxUSE_ACCEL" = yes; then
8062 echo "$as_me:$LINENO: result: yes" >&5
8063echo "${ECHO_T}yes" >&6
8064 else
8065 echo "$as_me:$LINENO: result: no" >&5
8066echo "${ECHO_T}no" >&6
8067 fi
8068
8069
3ea50042
VZ
8070 enablestring=
8071 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-animatectrl" >&5
8072echo $ECHO_N "checking for --${enablestring:-enable}-animatectrl... $ECHO_C" >&6
8073 no_cache=0
8074 # Check whether --enable-animatectrl or --disable-animatectrl was given.
8075if test "${enable_animatectrl+set}" = set; then
8076 enableval="$enable_animatectrl"
8077
8078 if test "$enableval" = yes; then
8079 ac_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=yes'
8080 else
8081 ac_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=no'
8082 fi
8083
8084else
8085
8086 LINE=`grep "wxUSE_ANIMATIONCTRL" ${wx_arg_cache_file}`
8087 if test "x$LINE" != x ; then
8088 eval "DEFAULT_$LINE"
8089 else
8090 no_cache=1
8091 fi
8092
8093 ac_cv_use_animatectrl='wxUSE_ANIMATIONCTRL='$DEFAULT_wxUSE_ANIMATIONCTRL
8094
8095fi;
8096
8097 eval "$ac_cv_use_animatectrl"
8098 if test "$no_cache" != 1; then
8099 echo $ac_cv_use_animatectrl >> ${wx_arg_cache_file}.tmp
8100 fi
8101
8102 if test "$wxUSE_ANIMATIONCTRL" = yes; then
8103 echo "$as_me:$LINENO: result: yes" >&5
8104echo "${ECHO_T}yes" >&6
8105 else
8106 echo "$as_me:$LINENO: result: no" >&5
8107echo "${ECHO_T}no" >&6
8108 fi
8109
8110
a848cd7e
SC
8111 enablestring=
8112 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
8113echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
8114 no_cache=0
8115 # Check whether --enable-button or --disable-button was given.
8116if test "${enable_button+set}" = set; then
8117 enableval="$enable_button"
8118
8119 if test "$enableval" = yes; then
8120 ac_cv_use_button='wxUSE_BUTTON=yes'
8121 else
8122 ac_cv_use_button='wxUSE_BUTTON=no'
8123 fi
8124
8125else
8126
8127 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
8128 if test "x$LINE" != x ; then
8129 eval "DEFAULT_$LINE"
8130 else
8131 no_cache=1
8132 fi
8133
8134 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
8135
8136fi;
8137
8138 eval "$ac_cv_use_button"
8139 if test "$no_cache" != 1; then
8140 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
8141 fi
8142
8143 if test "$wxUSE_BUTTON" = yes; then
8144 echo "$as_me:$LINENO: result: yes" >&5
8145echo "${ECHO_T}yes" >&6
8146 else
8147 echo "$as_me:$LINENO: result: no" >&5
8148echo "${ECHO_T}no" >&6
8149 fi
8150
8151
8152 enablestring=
8153 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
8154echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
8155 no_cache=0
8156 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
8157if test "${enable_bmpbutton+set}" = set; then
8158 enableval="$enable_bmpbutton"
8159
8160 if test "$enableval" = yes; then
8161 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
8162 else
8163 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
8164 fi
8165
8166else
8167
8168 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
8169 if test "x$LINE" != x ; then
8170 eval "DEFAULT_$LINE"
8171 else
8172 no_cache=1
8173 fi
8174
8175 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
8176
8177fi;
8178
8179 eval "$ac_cv_use_bmpbutton"
8180 if test "$no_cache" != 1; then
8181 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
8182 fi
8183
8184 if test "$wxUSE_BMPBUTTON" = yes; then
8185 echo "$as_me:$LINENO: result: yes" >&5
8186echo "${ECHO_T}yes" >&6
8187 else
8188 echo "$as_me:$LINENO: result: no" >&5
8189echo "${ECHO_T}no" >&6
8190 fi
8191
8192
95a46303
RR
8193 enablestring=
8194 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpcombobox" >&5
8195echo $ECHO_N "checking for --${enablestring:-enable}-bmpcombobox... $ECHO_C" >&6
8196 no_cache=0
8197 # Check whether --enable-bmpcombobox or --disable-bmpcombobox was given.
8198if test "${enable_bmpcombobox+set}" = set; then
8199 enableval="$enable_bmpcombobox"
8200
8201 if test "$enableval" = yes; then
8202 ac_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=yes'
8203 else
8204 ac_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=no'
8205 fi
8206
8207else
8208
8209 LINE=`grep "wxUSE_BITMAPCOMBOBOX" ${wx_arg_cache_file}`
8210 if test "x$LINE" != x ; then
8211 eval "DEFAULT_$LINE"
8212 else
8213 no_cache=1
8214 fi
8215
8216 ac_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX='$DEFAULT_wxUSE_BITMAPCOMBOBOX
8217
8218fi;
8219
8220 eval "$ac_cv_use_bmpcombobox"
8221 if test "$no_cache" != 1; then
8222 echo $ac_cv_use_bmpcombobox >> ${wx_arg_cache_file}.tmp
8223 fi
8224
8225 if test "$wxUSE_BITMAPCOMBOBOX" = yes; then
8226 echo "$as_me:$LINENO: result: yes" >&5
8227echo "${ECHO_T}yes" >&6
8228 else
8229 echo "$as_me:$LINENO: result: no" >&5
8230echo "${ECHO_T}no" >&6
8231 fi
8232
8233
a848cd7e
SC
8234 enablestring=
8235 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
8236echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
8237 no_cache=0
8238 # Check whether --enable-calendar or --disable-calendar was given.
8239if test "${enable_calendar+set}" = set; then
8240 enableval="$enable_calendar"
8241
8242 if test "$enableval" = yes; then
8243 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
8244 else
8245 ac_cv_use_calendar='wxUSE_CALCTRL=no'
8246 fi
8247
8248else
8249
8250 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
8251 if test "x$LINE" != x ; then
8252 eval "DEFAULT_$LINE"
8253 else
8254 no_cache=1
8255 fi
8256
8257 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
8258
8259fi;
8260
8261 eval "$ac_cv_use_calendar"
8262 if test "$no_cache" != 1; then
8263 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
8264 fi
8265
8266 if test "$wxUSE_CALCTRL" = yes; then
8267 echo "$as_me:$LINENO: result: yes" >&5
8268echo "${ECHO_T}yes" >&6
8269 else
8270 echo "$as_me:$LINENO: result: no" >&5
8271echo "${ECHO_T}no" >&6
8272 fi
8273
8274
8275 enablestring=
8276 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
8277echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
8278 no_cache=0
8279 # Check whether --enable-caret or --disable-caret was given.
8280if test "${enable_caret+set}" = set; then
8281 enableval="$enable_caret"
8282
8283 if test "$enableval" = yes; then
8284 ac_cv_use_caret='wxUSE_CARET=yes'
8285 else
8286 ac_cv_use_caret='wxUSE_CARET=no'
8287 fi
8288
8289else
8290
8291 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
8292 if test "x$LINE" != x ; then
8293 eval "DEFAULT_$LINE"
8294 else
8295 no_cache=1
8296 fi
8297
8298 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
8299
8300fi;
8301
8302 eval "$ac_cv_use_caret"
8303 if test "$no_cache" != 1; then
8304 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
8305 fi
8306
8307 if test "$wxUSE_CARET" = yes; then
8308 echo "$as_me:$LINENO: result: yes" >&5
8309echo "${ECHO_T}yes" >&6
8310 else
8311 echo "$as_me:$LINENO: result: no" >&5
8312echo "${ECHO_T}no" >&6
8313 fi
8314
8315
8316 enablestring=
8317 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
8318echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
8319 no_cache=0
8320 # Check whether --enable-checkbox or --disable-checkbox was given.
8321if test "${enable_checkbox+set}" = set; then
8322 enableval="$enable_checkbox"
8323
8324 if test "$enableval" = yes; then
8325 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
8326 else
8327 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
8328 fi
8329
8330else
8331
8332 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
8333 if test "x$LINE" != x ; then
8334 eval "DEFAULT_$LINE"
8335 else
8336 no_cache=1
8337 fi
8338
8339 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
8340
8341fi;
8342
8343 eval "$ac_cv_use_checkbox"
8344 if test "$no_cache" != 1; then
8345 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
8346 fi
8347
8348 if test "$wxUSE_CHECKBOX" = yes; then
8349 echo "$as_me:$LINENO: result: yes" >&5
8350echo "${ECHO_T}yes" >&6
8351 else
8352 echo "$as_me:$LINENO: result: no" >&5
8353echo "${ECHO_T}no" >&6
8354 fi
8355
8356
8357 enablestring=
8358 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
8359echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
8360 no_cache=0
8361 # Check whether --enable-checklst or --disable-checklst was given.
8362if test "${enable_checklst+set}" = set; then
8363 enableval="$enable_checklst"
8364
8365 if test "$enableval" = yes; then
8366 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
8367 else
8368 ac_cv_use_checklst='wxUSE_CHECKLST=no'
8369 fi
8370
8371else
8372
8373 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
8374 if test "x$LINE" != x ; then
8375 eval "DEFAULT_$LINE"
8376 else
8377 no_cache=1
8378 fi
8379
8380 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
8381
8382fi;
8383
8384 eval "$ac_cv_use_checklst"
8385 if test "$no_cache" != 1; then
8386 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
8387 fi
8388
8389 if test "$wxUSE_CHECKLST" = yes; then
8390 echo "$as_me:$LINENO: result: yes" >&5
8391echo "${ECHO_T}yes" >&6
8392 else
8393 echo "$as_me:$LINENO: result: no" >&5
8394echo "${ECHO_T}no" >&6
8395 fi
8396
8397
8398 enablestring=
8399 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
8400echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
8401 no_cache=0
8402 # Check whether --enable-choice or --disable-choice was given.
8403if test "${enable_choice+set}" = set; then
8404 enableval="$enable_choice"
8405
8406 if test "$enableval" = yes; then
8407 ac_cv_use_choice='wxUSE_CHOICE=yes'
8408 else
8409 ac_cv_use_choice='wxUSE_CHOICE=no'
8410 fi
8411
8412else
8413
8414 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
8415 if test "x$LINE" != x ; then
8416 eval "DEFAULT_$LINE"
8417 else
8418 no_cache=1
8419 fi
8420
8421 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
8422
8423fi;
8424
8425 eval "$ac_cv_use_choice"
8426 if test "$no_cache" != 1; then
8427 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
8428 fi
8429
8430 if test "$wxUSE_CHOICE" = yes; then
8431 echo "$as_me:$LINENO: result: yes" >&5
8432echo "${ECHO_T}yes" >&6
8433 else
8434 echo "$as_me:$LINENO: result: no" >&5
8435echo "${ECHO_T}no" >&6
8436 fi
8437
8438
92bbdbcd
WS
8439 enablestring=
8440 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
8441echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6
8442 no_cache=0
8443 # Check whether --enable-choicebook or --disable-choicebook was given.
8444if test "${enable_choicebook+set}" = set; then
8445 enableval="$enable_choicebook"
8446
8447 if test "$enableval" = yes; then
8448 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
8449 else
8450 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
8451 fi
8452
8453else
8454
8455 LINE=`grep "wxUSE_CHOICEBOOK" ${wx_arg_cache_file}`
8456 if test "x$LINE" != x ; then
8457 eval "DEFAULT_$LINE"
8458 else
8459 no_cache=1
8460 fi
8461
8462 ac_cv_use_choicebook='wxUSE_CHOICEBOOK='$DEFAULT_wxUSE_CHOICEBOOK
8463
8464fi;
8465
8466 eval "$ac_cv_use_choicebook"
8467 if test "$no_cache" != 1; then
8468 echo $ac_cv_use_choicebook >> ${wx_arg_cache_file}.tmp
8469 fi
8470
8471 if test "$wxUSE_CHOICEBOOK" = yes; then
8472 echo "$as_me:$LINENO: result: yes" >&5
8473echo "${ECHO_T}yes" >&6
8474 else
8475 echo "$as_me:$LINENO: result: no" >&5
8476echo "${ECHO_T}no" >&6
8477 fi
8478
8479
bd915ace
RR
8480 enablestring=
8481 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-collpane" >&5
8482echo $ECHO_N "checking for --${enablestring:-enable}-collpane... $ECHO_C" >&6
8483 no_cache=0
8484 # Check whether --enable-collpane or --disable-collpane was given.
8485if test "${enable_collpane+set}" = set; then
8486 enableval="$enable_collpane"
8487
8488 if test "$enableval" = yes; then
8489 ac_cv_use_collpane='wxUSE_COLLPANE=yes'
8490 else
8491 ac_cv_use_collpane='wxUSE_COLLPANE=no'
8492 fi
8493
8494else
8495
8496 LINE=`grep "wxUSE_COLLPANE" ${wx_arg_cache_file}`
8497 if test "x$LINE" != x ; then
8498 eval "DEFAULT_$LINE"
8499 else
8500 no_cache=1
8501 fi
8502
8503 ac_cv_use_collpane='wxUSE_COLLPANE='$DEFAULT_wxUSE_COLLPANE
8504
8505fi;
8506
8507 eval "$ac_cv_use_collpane"
8508 if test "$no_cache" != 1; then
8509 echo $ac_cv_use_collpane >> ${wx_arg_cache_file}.tmp
8510 fi
8511
8512 if test "$wxUSE_COLLPANE" = yes; then
8513 echo "$as_me:$LINENO: result: yes" >&5
8514echo "${ECHO_T}yes" >&6
8515 else
8516 echo "$as_me:$LINENO: result: no" >&5
8517echo "${ECHO_T}no" >&6
8518 fi
8519
8520
e9263684
VZ
8521 enablestring=
8522 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-colourpicker" >&5
8523echo $ECHO_N "checking for --${enablestring:-enable}-colourpicker... $ECHO_C" >&6
8524 no_cache=0
8525 # Check whether --enable-colourpicker or --disable-colourpicker was given.
8526if test "${enable_colourpicker+set}" = set; then
8527 enableval="$enable_colourpicker"
8528
8529 if test "$enableval" = yes; then
8530 ac_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=yes'
8531 else
8532 ac_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=no'
8533 fi
8534
8535else
8536
8537 LINE=`grep "wxUSE_COLOURPICKERCTRL" ${wx_arg_cache_file}`
8538 if test "x$LINE" != x ; then
8539 eval "DEFAULT_$LINE"
8540 else
8541 no_cache=1
8542 fi
8543
8544 ac_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL='$DEFAULT_wxUSE_COLOURPICKERCTRL
8545
8546fi;
8547
8548 eval "$ac_cv_use_colourpicker"
8549 if test "$no_cache" != 1; then
8550 echo $ac_cv_use_colourpicker >> ${wx_arg_cache_file}.tmp
8551 fi
8552
8553 if test "$wxUSE_COLOURPICKERCTRL" = yes; then
8554 echo "$as_me:$LINENO: result: yes" >&5
8555echo "${ECHO_T}yes" >&6
8556 else
8557 echo "$as_me:$LINENO: result: no" >&5
8558echo "${ECHO_T}no" >&6
8559 fi
8560
8561
a848cd7e
SC
8562 enablestring=
8563 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
8564echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
8565 no_cache=0
8566 # Check whether --enable-combobox or --disable-combobox was given.
8567if test "${enable_combobox+set}" = set; then
8568 enableval="$enable_combobox"
8569
8570 if test "$enableval" = yes; then
8571 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
8572 else
8573 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
8574 fi
8575
8576else
8577
8578 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
8579 if test "x$LINE" != x ; then
8580 eval "DEFAULT_$LINE"
8581 else
8582 no_cache=1
8583 fi
8584
8585 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
8586
8587fi;
8588
8589 eval "$ac_cv_use_combobox"
8590 if test "$no_cache" != 1; then
8591 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
8592 fi
8593
8594 if test "$wxUSE_COMBOBOX" = yes; then
8595 echo "$as_me:$LINENO: result: yes" >&5
8596echo "${ECHO_T}yes" >&6
8597 else
8598 echo "$as_me:$LINENO: result: no" >&5
8599echo "${ECHO_T}no" >&6
8600 fi
8601
8602
642bcba9 8603 enablestring=
a57d600f
VZ
8604 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-comboctrl" >&5
8605echo $ECHO_N "checking for --${enablestring:-enable}-comboctrl... $ECHO_C" >&6
642bcba9 8606 no_cache=0
a57d600f
VZ
8607 # Check whether --enable-comboctrl or --disable-comboctrl was given.
8608if test "${enable_comboctrl+set}" = set; then
8609 enableval="$enable_comboctrl"
642bcba9
VZ
8610
8611 if test "$enableval" = yes; then
a57d600f 8612 ac_cv_use_comboctrl='wxUSE_COMBOCTRL=yes'
642bcba9 8613 else
a57d600f 8614 ac_cv_use_comboctrl='wxUSE_COMBOCTRL=no'
642bcba9
VZ
8615 fi
8616
8617else
8618
a57d600f 8619 LINE=`grep "wxUSE_COMBOCTRL" ${wx_arg_cache_file}`
642bcba9
VZ
8620 if test "x$LINE" != x ; then
8621 eval "DEFAULT_$LINE"
8622 else
8623 no_cache=1
8624 fi
8625
a57d600f 8626 ac_cv_use_comboctrl='wxUSE_COMBOCTRL='$DEFAULT_wxUSE_COMBOCTRL
642bcba9
VZ
8627
8628fi;
8629
a57d600f 8630 eval "$ac_cv_use_comboctrl"
642bcba9 8631 if test "$no_cache" != 1; then
a57d600f 8632 echo $ac_cv_use_comboctrl >> ${wx_arg_cache_file}.tmp
642bcba9
VZ
8633 fi
8634
a57d600f 8635 if test "$wxUSE_COMBOCTRL" = yes; then
642bcba9
VZ
8636 echo "$as_me:$LINENO: result: yes" >&5
8637echo "${ECHO_T}yes" >&6
8638 else
8639 echo "$as_me:$LINENO: result: no" >&5
8640echo "${ECHO_T}no" >&6
8641 fi
8642
8643
da98e9be
VZ
8644 enablestring=
8645 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5
8646echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6
8647 no_cache=0
8648 # Check whether --enable-datepick or --disable-datepick was given.
8649if test "${enable_datepick+set}" = set; then
8650 enableval="$enable_datepick"
8651
8652 if test "$enableval" = yes; then
8653 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=yes'
8654 else
8655 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=no'
8656 fi
8657
8658else
8659
8660 LINE=`grep "wxUSE_DATEPICKCTRL" ${wx_arg_cache_file}`
8661 if test "x$LINE" != x ; then
8662 eval "DEFAULT_$LINE"
8663 else
8664 no_cache=1
8665 fi
8666
8667 ac_cv_use_datepick='wxUSE_DATEPICKCTRL='$DEFAULT_wxUSE_DATEPICKCTRL
8668
8669fi;
8670
8671 eval "$ac_cv_use_datepick"
8672 if test "$no_cache" != 1; then
8673 echo $ac_cv_use_datepick >> ${wx_arg_cache_file}.tmp
8674 fi
8675
8676 if test "$wxUSE_DATEPICKCTRL" = yes; then
8677 echo "$as_me:$LINENO: result: yes" >&5
8678echo "${ECHO_T}yes" >&6
8679 else
8680 echo "$as_me:$LINENO: result: no" >&5
8681echo "${ECHO_T}no" >&6
8682 fi
8683
8684
e9263684
VZ
8685 enablestring=
8686 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirpicker" >&5
8687echo $ECHO_N "checking for --${enablestring:-enable}-dirpicker... $ECHO_C" >&6
8688 no_cache=0
8689 # Check whether --enable-dirpicker or --disable-dirpicker was given.
8690if test "${enable_dirpicker+set}" = set; then
8691 enableval="$enable_dirpicker"
8692
8693 if test "$enableval" = yes; then
8694 ac_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=yes'
8695 else
8696 ac_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=no'
8697 fi
8698
8699else
8700
8701 LINE=`grep "wxUSE_DIRPICKERCTRL" ${wx_arg_cache_file}`
8702 if test "x$LINE" != x ; then
8703 eval "DEFAULT_$LINE"
8704 else
8705 no_cache=1
8706 fi
8707
8708 ac_cv_use_dirpicker='wxUSE_DIRPICKERCTRL='$DEFAULT_wxUSE_DIRPICKERCTRL
8709
8710fi;
8711
8712 eval "$ac_cv_use_dirpicker"
8713 if test "$no_cache" != 1; then
8714 echo $ac_cv_use_dirpicker >> ${wx_arg_cache_file}.tmp
8715 fi
8716
8717 if test "$wxUSE_DIRPICKERCTRL" = yes; then
8718 echo "$as_me:$LINENO: result: yes" >&5
8719echo "${ECHO_T}yes" >&6
8720 else
8721 echo "$as_me:$LINENO: result: no" >&5
8722echo "${ECHO_T}no" >&6
8723 fi
8724
8725
a848cd7e
SC
8726 enablestring=
8727 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
8728echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
8729 no_cache=0
8730 # Check whether --enable-display or --disable-display was given.
8731if test "${enable_display+set}" = set; then
8732 enableval="$enable_display"
8733
8734 if test "$enableval" = yes; then
8735 ac_cv_use_display='wxUSE_DISPLAY=yes'
8736 else
8737 ac_cv_use_display='wxUSE_DISPLAY=no'
8738 fi
8739
8740else
8741
8742 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
8743 if test "x$LINE" != x ; then
8744 eval "DEFAULT_$LINE"
8745 else
8746 no_cache=1
8747 fi
8748
8749 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
8750
8751fi;
8752
8753 eval "$ac_cv_use_display"
8754 if test "$no_cache" != 1; then
8755 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
8756 fi
8757
8758 if test "$wxUSE_DISPLAY" = yes; then
8759 echo "$as_me:$LINENO: result: yes" >&5
8760echo "${ECHO_T}yes" >&6
8761 else
8762 echo "$as_me:$LINENO: result: no" >&5
8763echo "${ECHO_T}no" >&6
8764 fi
8765
8766
88bbc332
RR
8767 enablestring=
8768 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-detect_sm" >&5
8769echo $ECHO_N "checking for --${enablestring:-enable}-detect_sm... $ECHO_C" >&6
8770 no_cache=0
8771 # Check whether --enable-detect_sm or --disable-detect_sm was given.
8772if test "${enable_detect_sm+set}" = set; then
8773 enableval="$enable_detect_sm"
8774
8775 if test "$enableval" = yes; then
8776 ac_cv_use_detect_sm='wxUSE_DETECT_SM=yes'
8777 else
8778 ac_cv_use_detect_sm='wxUSE_DETECT_SM=no'
8779 fi
8780
8781else
8782
8783 LINE=`grep "wxUSE_DETECT_SM" ${wx_arg_cache_file}`
8784 if test "x$LINE" != x ; then
8785 eval "DEFAULT_$LINE"
8786 else
8787 no_cache=1
8788 fi
8789
8790 ac_cv_use_detect_sm='wxUSE_DETECT_SM='$DEFAULT_wxUSE_DETECT_SM
8791
8792fi;
8793
8794 eval "$ac_cv_use_detect_sm"
8795 if test "$no_cache" != 1; then
8796 echo $ac_cv_use_detect_sm >> ${wx_arg_cache_file}.tmp
8797 fi
8798
8799 if test "$wxUSE_DETECT_SM" = yes; then
8800 echo "$as_me:$LINENO: result: yes" >&5
8801echo "${ECHO_T}yes" >&6
8802 else
8803 echo "$as_me:$LINENO: result: no" >&5
8804echo "${ECHO_T}no" >&6
8805 fi
8806
8807
e9263684
VZ
8808 enablestring=
8809 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filepicker" >&5
8810echo $ECHO_N "checking for --${enablestring:-enable}-filepicker... $ECHO_C" >&6
8811 no_cache=0
8812 # Check whether --enable-filepicker or --disable-filepicker was given.
8813if test "${enable_filepicker+set}" = set; then
8814 enableval="$enable_filepicker"
8815
8816 if test "$enableval" = yes; then
8817 ac_cv_use_filepicker='wxUSE_FILEPICKERCTRL=yes'
8818 else
8819 ac_cv_use_filepicker='wxUSE_FILEPICKERCTRL=no'
8820 fi
8821
8822else
8823
8824 LINE=`grep "wxUSE_FILEPICKERCTRL" ${wx_arg_cache_file}`
8825 if test "x$LINE" != x ; then
8826 eval "DEFAULT_$LINE"
8827 else
8828 no_cache=1
8829 fi
8830
8831 ac_cv_use_filepicker='wxUSE_FILEPICKERCTRL='$DEFAULT_wxUSE_FILEPICKERCTRL
8832
8833fi;
8834
8835 eval "$ac_cv_use_filepicker"
8836 if test "$no_cache" != 1; then
8837 echo $ac_cv_use_filepicker >> ${wx_arg_cache_file}.tmp
8838 fi
8839
8840 if test "$wxUSE_FILEPICKERCTRL" = yes; then
8841 echo "$as_me:$LINENO: result: yes" >&5
8842echo "${ECHO_T}yes" >&6
8843 else
8844 echo "$as_me:$LINENO: result: no" >&5
8845echo "${ECHO_T}no" >&6
8846 fi
8847
8848
8849 enablestring=
8850 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontpicker" >&5
8851echo $ECHO_N "checking for --${enablestring:-enable}-fontpicker... $ECHO_C" >&6
8852 no_cache=0
8853 # Check whether --enable-fontpicker or --disable-fontpicker was given.
8854if test "${enable_fontpicker+set}" = set; then
8855 enableval="$enable_fontpicker"
8856
8857 if test "$enableval" = yes; then
8858 ac_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=yes'
8859 else
8860 ac_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=no'
8861 fi
8862
8863else
8864
8865 LINE=`grep "wxUSE_FONTPICKERCTRL" ${wx_arg_cache_file}`
8866 if test "x$LINE" != x ; then
8867 eval "DEFAULT_$LINE"
8868 else
8869 no_cache=1
8870 fi
8871
8872 ac_cv_use_fontpicker='wxUSE_FONTPICKERCTRL='$DEFAULT_wxUSE_FONTPICKERCTRL
8873
8874fi;
8875
8876 eval "$ac_cv_use_fontpicker"
8877 if test "$no_cache" != 1; then
8878 echo $ac_cv_use_fontpicker >> ${wx_arg_cache_file}.tmp
8879 fi
8880
8881 if test "$wxUSE_FONTPICKERCTRL" = yes; then
8882 echo "$as_me:$LINENO: result: yes" >&5
8883echo "${ECHO_T}yes" >&6
8884 else
8885 echo "$as_me:$LINENO: result: no" >&5
8886echo "${ECHO_T}no" >&6
8887 fi
8888
8889
a848cd7e
SC
8890 enablestring=
8891 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
8892echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
8893 no_cache=0
8894 # Check whether --enable-gauge or --disable-gauge was given.
8895if test "${enable_gauge+set}" = set; then
8896 enableval="$enable_gauge"
8897
8898 if test "$enableval" = yes; then
8899 ac_cv_use_gauge='wxUSE_GAUGE=yes'
8900 else
8901 ac_cv_use_gauge='wxUSE_GAUGE=no'
8902 fi
8903
8904else
8905
8906 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
8907 if test "x$LINE" != x ; then
8908 eval "DEFAULT_$LINE"
8909 else
8910 no_cache=1
8911 fi
8912
8913 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
8914
8915fi;
8916
8917 eval "$ac_cv_use_gauge"
8918 if test "$no_cache" != 1; then
8919 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
8920 fi
8921
8922 if test "$wxUSE_GAUGE" = yes; then
8923 echo "$as_me:$LINENO: result: yes" >&5
8924echo "${ECHO_T}yes" >&6
8925 else
8926 echo "$as_me:$LINENO: result: no" >&5
8927echo "${ECHO_T}no" >&6
8928 fi
8929
8930
8931 enablestring=
8932 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
8933echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
8934 no_cache=0
8935 # Check whether --enable-grid or --disable-grid was given.
8936if test "${enable_grid+set}" = set; then
8937 enableval="$enable_grid"
8938
8939 if test "$enableval" = yes; then
8940 ac_cv_use_grid='wxUSE_GRID=yes'
8941 else
8942 ac_cv_use_grid='wxUSE_GRID=no'
8943 fi
8944
8945else
8946
8947 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
8948 if test "x$LINE" != x ; then
8949 eval "DEFAULT_$LINE"
8950 else
8951 no_cache=1
8952 fi
8953
8954 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
8955
8956fi;
8957
8958 eval "$ac_cv_use_grid"
8959 if test "$no_cache" != 1; then
8960 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
8961 fi
8962
8963 if test "$wxUSE_GRID" = yes; then
8964 echo "$as_me:$LINENO: result: yes" >&5
8965echo "${ECHO_T}yes" >&6
8966 else
8967 echo "$as_me:$LINENO: result: no" >&5
8968echo "${ECHO_T}no" >&6
8969 fi
8970
8971
20e34ecc
RR
8972 enablestring=
8973 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataviewctrl" >&5
8974echo $ECHO_N "checking for --${enablestring:-enable}-dataviewctrl... $ECHO_C" >&6
8975 no_cache=0
8976 # Check whether --enable-dataviewctrl or --disable-dataviewctrl was given.
8977if test "${enable_dataviewctrl+set}" = set; then
8978 enableval="$enable_dataviewctrl"
8979
8980 if test "$enableval" = yes; then
8981 ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=yes'
8982 else
8983 ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=no'
8984 fi
8985
8986else
8987
8988 LINE=`grep "wxUSE_DATAVIEWCTRL" ${wx_arg_cache_file}`
8989 if test "x$LINE" != x ; then
8990 eval "DEFAULT_$LINE"
8991 else
8992 no_cache=1
8993 fi
8994
8995 ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL='$DEFAULT_wxUSE_DATAVIEWCTRL
8996
8997fi;
8998
8999 eval "$ac_cv_use_dataviewctrl"
9000 if test "$no_cache" != 1; then
9001 echo $ac_cv_use_dataviewctrl >> ${wx_arg_cache_file}.tmp
9002 fi
9003
9004 if test "$wxUSE_DATAVIEWCTRL" = yes; then
9005 echo "$as_me:$LINENO: result: yes" >&5
9006echo "${ECHO_T}yes" >&6
9007 else
9008 echo "$as_me:$LINENO: result: no" >&5
9009echo "${ECHO_T}no" >&6
9010 fi
9011
9012
6954625c
VZ
9013 enablestring=
9014 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-hyperlink" >&5
9015echo $ECHO_N "checking for --${enablestring:-enable}-hyperlink... $ECHO_C" >&6
9016 no_cache=0
9017 # Check whether --enable-hyperlink or --disable-hyperlink was given.
9018if test "${enable_hyperlink+set}" = set; then
9019 enableval="$enable_hyperlink"
9020
9021 if test "$enableval" = yes; then
9022 ac_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=yes'
9023 else
9024 ac_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=no'
9025 fi
9026
9027else
9028
9029 LINE=`grep "wxUSE_HYPERLINKCTRL" ${wx_arg_cache_file}`
9030 if test "x$LINE" != x ; then
9031 eval "DEFAULT_$LINE"
9032 else
9033 no_cache=1
9034 fi
9035
9036 ac_cv_use_hyperlink='wxUSE_HYPERLINKCTRL='$DEFAULT_wxUSE_HYPERLINKCTRL
9037
9038fi;
9039
9040 eval "$ac_cv_use_hyperlink"
9041 if test "$no_cache" != 1; then
9042 echo $ac_cv_use_hyperlink >> ${wx_arg_cache_file}.tmp
9043 fi
9044
9045 if test "$wxUSE_HYPERLINKCTRL" = yes; then
9046 echo "$as_me:$LINENO: result: yes" >&5
9047echo "${ECHO_T}yes" >&6
9048 else
9049 echo "$as_me:$LINENO: result: no" >&5
9050echo "${ECHO_T}no" >&6
9051 fi
9052
9053
a848cd7e
SC
9054 enablestring=
9055 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
9056echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
9057 no_cache=0
9058 # Check whether --enable-imaglist or --disable-imaglist was given.
9059if test "${enable_imaglist+set}" = set; then
9060 enableval="$enable_imaglist"
9061
9062 if test "$enableval" = yes; then
9063 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
9064 else
9065 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
9066 fi
9067
9068else
9069
9070 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
9071 if test "x$LINE" != x ; then
9072 eval "DEFAULT_$LINE"
9073 else
9074 no_cache=1
9075 fi
9076
9077 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
9078
9079fi;
9080
9081 eval "$ac_cv_use_imaglist"
9082 if test "$no_cache" != 1; then
9083 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
9084 fi
9085
9086 if test "$wxUSE_IMAGLIST" = yes; then
9087 echo "$as_me:$LINENO: result: yes" >&5
9088echo "${ECHO_T}yes" >&6
9089 else
9090 echo "$as_me:$LINENO: result: no" >&5
9091echo "${ECHO_T}no" >&6
9092 fi
9093
9094
9095 enablestring=
9096 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
9097echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6
9098 no_cache=0
9099 # Check whether --enable-listbook or --disable-listbook was given.
9100if test "${enable_listbook+set}" = set; then
9101 enableval="$enable_listbook"
9102
9103 if test "$enableval" = yes; then
9104 ac_cv_use_listbook='wxUSE_LISTBOOK=yes'
9105 else
9106 ac_cv_use_listbook='wxUSE_LISTBOOK=no'
9107 fi
9108
9109else
9110
9111 LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}`
9112 if test "x$LINE" != x ; then
9113 eval "DEFAULT_$LINE"
9114 else
9115 no_cache=1
9116 fi
9117
9118 ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK
9119
9120fi;
9121
9122 eval "$ac_cv_use_listbook"
9123 if test "$no_cache" != 1; then
9124 echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp
9125 fi
9126
9127 if test "$wxUSE_LISTBOOK" = yes; then
9128 echo "$as_me:$LINENO: result: yes" >&5
9129echo "${ECHO_T}yes" >&6
9130 else
9131 echo "$as_me:$LINENO: result: no" >&5
9132echo "${ECHO_T}no" >&6
9133 fi
9134
9135
9136 enablestring=
9137 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
9138echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
9139 no_cache=0
9140 # Check whether --enable-listbox or --disable-listbox was given.
9141if test "${enable_listbox+set}" = set; then
9142 enableval="$enable_listbox"
9143
9144 if test "$enableval" = yes; then
9145 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
9146 else
9147 ac_cv_use_listbox='wxUSE_LISTBOX=no'
9148 fi
9149
9150else
9151
9152 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
9153 if test "x$LINE" != x ; then
9154 eval "DEFAULT_$LINE"
9155 else
9156 no_cache=1
9157 fi
9158
9159 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
9160
9161fi;
9162
9163 eval "$ac_cv_use_listbox"
9164 if test "$no_cache" != 1; then
9165 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
9166 fi
9167
9168 if test "$wxUSE_LISTBOX" = yes; then
9169 echo "$as_me:$LINENO: result: yes" >&5
9170echo "${ECHO_T}yes" >&6
9171 else
9172 echo "$as_me:$LINENO: result: no" >&5
9173echo "${ECHO_T}no" >&6
9174 fi
9175
9176
9177 enablestring=
9178 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
9179echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
9180 no_cache=0
9181 # Check whether --enable-listctrl or --disable-listctrl was given.
9182if test "${enable_listctrl+set}" = set; then
9183 enableval="$enable_listctrl"
9184
9185 if test "$enableval" = yes; then
9186 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
9187 else
9188 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
9189 fi
9190
9191else
9192
9193 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
9194 if test "x$LINE" != x ; then
9195 eval "DEFAULT_$LINE"
9196 else
9197 no_cache=1
9198 fi
9199
9200 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
9201
9202fi;
9203
9204 eval "$ac_cv_use_listctrl"
9205 if test "$no_cache" != 1; then
9206 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
9207 fi
9208
9209 if test "$wxUSE_LISTCTRL" = yes; then
9210 echo "$as_me:$LINENO: result: yes" >&5
9211echo "${ECHO_T}yes" >&6
9212 else
9213 echo "$as_me:$LINENO: result: no" >&5
9214echo "${ECHO_T}no" >&6
9215 fi
9216
9217
9218 enablestring=
9219 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
9220echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
9221 no_cache=0
9222 # Check whether --enable-notebook or --disable-notebook was given.
9223if test "${enable_notebook+set}" = set; then
9224 enableval="$enable_notebook"
9225
9226 if test "$enableval" = yes; then
9227 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
9228 else
9229 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
9230 fi
9231
9232else
9233
9234 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
9235 if test "x$LINE" != x ; then
9236 eval "DEFAULT_$LINE"
9237 else
9238 no_cache=1
9239 fi
9240
9241 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
9242
9243fi;
9244
9245 eval "$ac_cv_use_notebook"
9246 if test "$no_cache" != 1; then
9247 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
9248 fi
9249
9250 if test "$wxUSE_NOTEBOOK" = yes; then
9251 echo "$as_me:$LINENO: result: yes" >&5
9252echo "${ECHO_T}yes" >&6
9253 else
9254 echo "$as_me:$LINENO: result: no" >&5
9255echo "${ECHO_T}no" >&6
9256 fi
9257
9258
642bcba9 9259 enablestring=
a57d600f
VZ
9260 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-odcombobox" >&5
9261echo $ECHO_N "checking for --${enablestring:-enable}-odcombobox... $ECHO_C" >&6
642bcba9 9262 no_cache=0
a57d600f
VZ
9263 # Check whether --enable-odcombobox or --disable-odcombobox was given.
9264if test "${enable_odcombobox+set}" = set; then
9265 enableval="$enable_odcombobox"
642bcba9
VZ
9266
9267 if test "$enableval" = yes; then
a57d600f 9268 ac_cv_use_odcombobox='wxUSE_ODCOMBOBOX=yes'
642bcba9 9269 else
a57d600f 9270 ac_cv_use_odcombobox='wxUSE_ODCOMBOBOX=no'
642bcba9
VZ
9271 fi
9272
9273else
9274
a57d600f 9275 LINE=`grep "wxUSE_ODCOMBOBOX" ${wx_arg_cache_file}`
642bcba9
VZ
9276 if test "x$LINE" != x ; then
9277 eval "DEFAULT_$LINE"
9278 else
9279 no_cache=1
9280 fi
9281
a57d600f 9282 ac_cv_use_odcombobox='wxUSE_ODCOMBOBOX='$DEFAULT_wxUSE_ODCOMBOBOX
642bcba9
VZ
9283
9284fi;
9285
a57d600f 9286 eval "$ac_cv_use_odcombobox"
642bcba9 9287 if test "$no_cache" != 1; then
a57d600f 9288 echo $ac_cv_use_odcombobox >> ${wx_arg_cache_file}.tmp
642bcba9
VZ
9289 fi
9290
a57d600f 9291 if test "$wxUSE_ODCOMBOBOX" = yes; then
642bcba9
VZ
9292 echo "$as_me:$LINENO: result: yes" >&5
9293echo "${ECHO_T}yes" >&6
9294 else
9295 echo "$as_me:$LINENO: result: no" >&5
9296echo "${ECHO_T}no" >&6
9297 fi
9298
9299
a848cd7e
SC
9300 enablestring=
9301 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
9302echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
9303 no_cache=0
9304 # Check whether --enable-radiobox or --disable-radiobox was given.
9305if test "${enable_radiobox+set}" = set; then
9306 enableval="$enable_radiobox"
9307
9308 if test "$enableval" = yes; then
9309 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
9310 else
9311 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
9312 fi
9313
9314else
9315
9316 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
9317 if test "x$LINE" != x ; then
9318 eval "DEFAULT_$LINE"
9319 else
9320 no_cache=1
9321 fi
9322
9323 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
9324
9325fi;
9326
9327 eval "$ac_cv_use_radiobox"
9328 if test "$no_cache" != 1; then
9329 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
9330 fi
9331
9332 if test "$wxUSE_RADIOBOX" = yes; then
9333 echo "$as_me:$LINENO: result: yes" >&5
9334echo "${ECHO_T}yes" >&6
9335 else
9336 echo "$as_me:$LINENO: result: no" >&5
9337echo "${ECHO_T}no" >&6
9338 fi
9339
9340
9341 enablestring=
9342 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
9343echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
9344 no_cache=0
9345 # Check whether --enable-radiobtn or --disable-radiobtn was given.
9346if test "${enable_radiobtn+set}" = set; then
9347 enableval="$enable_radiobtn"
9348
9349 if test "$enableval" = yes; then
9350 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
9351 else
9352 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
9353 fi
9354
9355else
9356
9357 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
9358 if test "x$LINE" != x ; then
9359 eval "DEFAULT_$LINE"
9360 else
9361 no_cache=1
9362 fi
9363
9364 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
9365
9366fi;
9367
9368 eval "$ac_cv_use_radiobtn"
9369 if test "$no_cache" != 1; then
9370 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
9371 fi
9372
9373 if test "$wxUSE_RADIOBTN" = yes; then
9374 echo "$as_me:$LINENO: result: yes" >&5
9375echo "${ECHO_T}yes" >&6
9376 else
9377 echo "$as_me:$LINENO: result: no" >&5
9378echo "${ECHO_T}no" >&6
9379 fi
9380
9381
9382 enablestring=
9383 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
9384echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
9385 no_cache=0
9386 # Check whether --enable-sash or --disable-sash was given.
9387if test "${enable_sash+set}" = set; then
9388 enableval="$enable_sash"
9389
9390 if test "$enableval" = yes; then
9391 ac_cv_use_sash='wxUSE_SASH=yes'
9392 else
9393 ac_cv_use_sash='wxUSE_SASH=no'
9394 fi
9395
9396else
9397
9398 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
9399 if test "x$LINE" != x ; then
9400 eval "DEFAULT_$LINE"
9401 else
9402 no_cache=1
9403 fi
9404
9405 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
9406
9407fi;
9408
9409 eval "$ac_cv_use_sash"
9410 if test "$no_cache" != 1; then
9411 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
9412 fi
9413
9414 if test "$wxUSE_SASH" = yes; then
9415 echo "$as_me:$LINENO: result: yes" >&5
9416echo "${ECHO_T}yes" >&6
9417 else
9418 echo "$as_me:$LINENO: result: no" >&5
9419echo "${ECHO_T}no" >&6
9420 fi
9421
9422
9423 enablestring=
9424 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
9425echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
9426 no_cache=0
9427 # Check whether --enable-scrollbar or --disable-scrollbar was given.
9428if test "${enable_scrollbar+set}" = set; then
9429 enableval="$enable_scrollbar"
9430
9431 if test "$enableval" = yes; then
9432 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
9433 else
9434 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
9435 fi
9436
9437else
9438
9439 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
9440 if test "x$LINE" != x ; then
9441 eval "DEFAULT_$LINE"
9442 else
9443 no_cache=1
9444 fi
9445
9446 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
9447
9448fi;
9449
9450 eval "$ac_cv_use_scrollbar"
9451 if test "$no_cache" != 1; then
9452 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
9453 fi
9454
9455 if test "$wxUSE_SCROLLBAR" = yes; then
9456 echo "$as_me:$LINENO: result: yes" >&5
9457echo "${ECHO_T}yes" >&6
9458 else
9459 echo "$as_me:$LINENO: result: no" >&5
9460echo "${ECHO_T}no" >&6
9461 fi
9462
9463
9464 enablestring=
9465 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
9466echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
9467 no_cache=0
9468 # Check whether --enable-slider or --disable-slider was given.
9469if test "${enable_slider+set}" = set; then
9470 enableval="$enable_slider"
9471
9472 if test "$enableval" = yes; then
9473 ac_cv_use_slider='wxUSE_SLIDER=yes'
9474 else
9475 ac_cv_use_slider='wxUSE_SLIDER=no'
9476 fi
9477
9478else
9479
9480 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
9481 if test "x$LINE" != x ; then
9482 eval "DEFAULT_$LINE"
9483 else
9484 no_cache=1
9485 fi
9486
9487 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
9488
9489fi;
9490
9491 eval "$ac_cv_use_slider"
9492 if test "$no_cache" != 1; then
9493 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
9494 fi
9495
9496 if test "$wxUSE_SLIDER" = yes; then
9497 echo "$as_me:$LINENO: result: yes" >&5
9498echo "${ECHO_T}yes" >&6
9499 else
9500 echo "$as_me:$LINENO: result: no" >&5
9501echo "${ECHO_T}no" >&6
9502 fi
9503
9504
9505 enablestring=
9506 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
9507echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
9508 no_cache=0
9509 # Check whether --enable-spinbtn or --disable-spinbtn was given.
9510if test "${enable_spinbtn+set}" = set; then
9511 enableval="$enable_spinbtn"
9512
9513 if test "$enableval" = yes; then
9514 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
9515 else
9516 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
9517 fi
9518
9519else
9520
9521 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
9522 if test "x$LINE" != x ; then
9523 eval "DEFAULT_$LINE"
9524 else
9525 no_cache=1
9526 fi
9527
9528 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
9529
9530fi;
9531
9532 eval "$ac_cv_use_spinbtn"
9533 if test "$no_cache" != 1; then
9534 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
9535 fi
9536
9537 if test "$wxUSE_SPINBTN" = yes; then
9538 echo "$as_me:$LINENO: result: yes" >&5
9539echo "${ECHO_T}yes" >&6
9540 else
9541 echo "$as_me:$LINENO: result: no" >&5
9542echo "${ECHO_T}no" >&6
9543 fi
9544
9545
9546 enablestring=
9547 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
9548echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
9549 no_cache=0
9550 # Check whether --enable-spinctrl or --disable-spinctrl was given.
9551if test "${enable_spinctrl+set}" = set; then
9552 enableval="$enable_spinctrl"
9553
9554 if test "$enableval" = yes; then
9555 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
9556 else
9557 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
9558 fi
9559
9560else
9561
9562 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
9563 if test "x$LINE" != x ; then
9564 eval "DEFAULT_$LINE"
9565 else
9566 no_cache=1
9567 fi
9568
9569 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
9570
9571fi;
9572
9573 eval "$ac_cv_use_spinctrl"
9574 if test "$no_cache" != 1; then
9575 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
9576 fi
9577
9578 if test "$wxUSE_SPINCTRL" = yes; then
9579 echo "$as_me:$LINENO: result: yes" >&5
9580echo "${ECHO_T}yes" >&6
9581 else
9582 echo "$as_me:$LINENO: result: no" >&5
9583echo "${ECHO_T}no" >&6
9584 fi
9585
9586
9587 enablestring=
9588 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
9589echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
9590 no_cache=0
9591 # Check whether --enable-splitter or --disable-splitter was given.
9592if test "${enable_splitter+set}" = set; then
9593 enableval="$enable_splitter"
9594
9595 if test "$enableval" = yes; then
9596 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
9597 else
9598 ac_cv_use_splitter='wxUSE_SPLITTER=no'
9599 fi
9600
9601else
9602
9603 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
9604 if test "x$LINE" != x ; then
9605 eval "DEFAULT_$LINE"
9606 else
9607 no_cache=1
9608 fi
9609
9610 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
9611
9612fi;
9613
9614 eval "$ac_cv_use_splitter"
9615 if test "$no_cache" != 1; then
9616 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
9617 fi
9618
9619 if test "$wxUSE_SPLITTER" = yes; then
9620 echo "$as_me:$LINENO: result: yes" >&5
9621echo "${ECHO_T}yes" >&6
9622 else
9623 echo "$as_me:$LINENO: result: no" >&5
9624echo "${ECHO_T}no" >&6
9625 fi
9626
9627
9628 enablestring=
9629 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
9630echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
9631 no_cache=0
9632 # Check whether --enable-statbmp or --disable-statbmp was given.
9633if test "${enable_statbmp+set}" = set; then
9634 enableval="$enable_statbmp"
9635
9636 if test "$enableval" = yes; then
9637 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
9638 else
9639 ac_cv_use_statbmp='wxUSE_STATBMP=no'
9640 fi
9641
9642else
9643
9644 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
9645 if test "x$LINE" != x ; then
9646 eval "DEFAULT_$LINE"
9647 else
9648 no_cache=1
9649 fi
9650
9651 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
9652
9653fi;
9654
9655 eval "$ac_cv_use_statbmp"
9656 if test "$no_cache" != 1; then
9657 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
9658 fi
9659
9660 if test "$wxUSE_STATBMP" = yes; then
9661 echo "$as_me:$LINENO: result: yes" >&5
9662echo "${ECHO_T}yes" >&6
9663 else
9664 echo "$as_me:$LINENO: result: no" >&5
9665echo "${ECHO_T}no" >&6
9666 fi
9667
9668
9669 enablestring=
9670 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
9671echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
9672 no_cache=0
9673 # Check whether --enable-statbox or --disable-statbox was given.
9674if test "${enable_statbox+set}" = set; then
9675 enableval="$enable_statbox"
9676
9677 if test "$enableval" = yes; then
9678 ac_cv_use_statbox='wxUSE_STATBOX=yes'
9679 else
9680 ac_cv_use_statbox='wxUSE_STATBOX=no'
9681 fi
9682
9683else
9684
9685 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
9686 if test "x$LINE" != x ; then
9687 eval "DEFAULT_$LINE"
9688 else
9689 no_cache=1
9690 fi
9691
9692 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
9693
9694fi;
9695
9696 eval "$ac_cv_use_statbox"
9697 if test "$no_cache" != 1; then
9698 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
9699 fi
9700
9701 if test "$wxUSE_STATBOX" = yes; then
9702 echo "$as_me:$LINENO: result: yes" >&5
9703echo "${ECHO_T}yes" >&6
9704 else
9705 echo "$as_me:$LINENO: result: no" >&5
9706echo "${ECHO_T}no" >&6
9707 fi
9708
9709
9710 enablestring=
9711 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
9712echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
9713 no_cache=0
9714 # Check whether --enable-statline or --disable-statline was given.
9715if test "${enable_statline+set}" = set; then
9716 enableval="$enable_statline"
9717
9718 if test "$enableval" = yes; then
9719 ac_cv_use_statline='wxUSE_STATLINE=yes'
9720 else
9721 ac_cv_use_statline='wxUSE_STATLINE=no'
9722 fi
9723
9724else
9725
9726 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
9727 if test "x$LINE" != x ; then
9728 eval "DEFAULT_$LINE"
9729 else
9730 no_cache=1
9731 fi
9732
9733 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
9734
9735fi;
9736
9737 eval "$ac_cv_use_statline"
9738 if test "$no_cache" != 1; then
9739 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
9740 fi
9741
9742 if test "$wxUSE_STATLINE" = yes; then
9743 echo "$as_me:$LINENO: result: yes" >&5
9744echo "${ECHO_T}yes" >&6
9745 else
9746 echo "$as_me:$LINENO: result: no" >&5
9747echo "${ECHO_T}no" >&6
9748 fi
9749
9750
9751 enablestring=
9752 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
9753echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
9754 no_cache=0
9755 # Check whether --enable-stattext or --disable-stattext was given.
9756if test "${enable_stattext+set}" = set; then
9757 enableval="$enable_stattext"
9758
9759 if test "$enableval" = yes; then
9760 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
9761 else
9762 ac_cv_use_stattext='wxUSE_STATTEXT=no'
9763 fi
9764
9765else
9766
9767 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
9768 if test "x$LINE" != x ; then
9769 eval "DEFAULT_$LINE"
9770 else
9771 no_cache=1
9772 fi
9773
9774 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
9775
9776fi;
9777
9778 eval "$ac_cv_use_stattext"
9779 if test "$no_cache" != 1; then
9780 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
9781 fi
9782
9783 if test "$wxUSE_STATTEXT" = yes; then
9784 echo "$as_me:$LINENO: result: yes" >&5
9785echo "${ECHO_T}yes" >&6
9786 else
9787 echo "$as_me:$LINENO: result: no" >&5
9788echo "${ECHO_T}no" >&6
9789 fi
9790
9791
9792 enablestring=
9793 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
9794echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
9795 no_cache=0
9796 # Check whether --enable-statusbar or --disable-statusbar was given.
9797if test "${enable_statusbar+set}" = set; then
9798 enableval="$enable_statusbar"
9799
9800 if test "$enableval" = yes; then
9801 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
9802 else
9803 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
9804 fi
9805
9806else
9807
9808 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
9809 if test "x$LINE" != x ; then
9810 eval "DEFAULT_$LINE"
9811 else
9812 no_cache=1
9813 fi
9814
9815 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
9816
9817fi;
9818
9819 eval "$ac_cv_use_statusbar"
9820 if test "$no_cache" != 1; then
9821 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
9822 fi
9823
9824 if test "$wxUSE_STATUSBAR" = yes; then
9825 echo "$as_me:$LINENO: result: yes" >&5
9826echo "${ECHO_T}yes" >&6
9827 else
9828 echo "$as_me:$LINENO: result: no" >&5
9829echo "${ECHO_T}no" >&6
9830 fi
9831
9832
9833 enablestring=
9834 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
9835echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
9836 no_cache=0
9837 # Check whether --enable-tabdialog or --disable-tabdialog was given.
9838if test "${enable_tabdialog+set}" = set; then
9839 enableval="$enable_tabdialog"
9840
9841 if test "$enableval" = yes; then
f10e38c4 9842 ac_cv_use_tabdialog='wxUSE_TAB_DIALOG=yes'
a848cd7e 9843 else
f10e38c4 9844 ac_cv_use_tabdialog='wxUSE_TAB_DIALOG=no'
a848cd7e
SC
9845 fi
9846
9847else
9848
f10e38c4 9849 LINE=`grep "wxUSE_TAB_DIALOG" ${wx_arg_cache_file}`
a848cd7e
SC
9850 if test "x$LINE" != x ; then
9851 eval "DEFAULT_$LINE"
9852 else
9853 no_cache=1
9854 fi
9855
f10e38c4 9856 ac_cv_use_tabdialog='wxUSE_TAB_DIALOG='$DEFAULT_wxUSE_TAB_DIALOG
a848cd7e
SC
9857
9858fi;
9859
9860 eval "$ac_cv_use_tabdialog"
9861 if test "$no_cache" != 1; then
9862 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
9863 fi
9864
f10e38c4 9865 if test "$wxUSE_TAB_DIALOG" = yes; then
a848cd7e
SC
9866 echo "$as_me:$LINENO: result: yes" >&5
9867echo "${ECHO_T}yes" >&6
9868 else
9869 echo "$as_me:$LINENO: result: no" >&5
9870echo "${ECHO_T}no" >&6
9871 fi
9872
9873
9874 enablestring=
9875 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
9876echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
9877 no_cache=0
9878 # Check whether --enable-textctrl or --disable-textctrl was given.
9879if test "${enable_textctrl+set}" = set; then
9880 enableval="$enable_textctrl"
9881
9882 if test "$enableval" = yes; then
9883 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
9884 else
9885 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
9886 fi
9887
9888else
9889
9890 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
9891 if test "x$LINE" != x ; then
9892 eval "DEFAULT_$LINE"
9893 else
9894 no_cache=1
9895 fi
9896
9897 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
9898
9899fi;
9900
9901 eval "$ac_cv_use_textctrl"
9902 if test "$no_cache" != 1; then
9903 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
9904 fi
9905
9906 if test "$wxUSE_TEXTCTRL" = yes; then
9907 echo "$as_me:$LINENO: result: yes" >&5
9908echo "${ECHO_T}yes" >&6
9909 else
9910 echo "$as_me:$LINENO: result: no" >&5
9911echo "${ECHO_T}no" >&6
9912 fi
9913
9914
9915 enablestring=
9916 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
9917echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
9918 no_cache=0
9919 # Check whether --enable-togglebtn or --disable-togglebtn was given.
9920if test "${enable_togglebtn+set}" = set; then
9921 enableval="$enable_togglebtn"
9922
9923 if test "$enableval" = yes; then
9924 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
9925 else
9926 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
9927 fi
9928
9929else
9930
9931 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
9932 if test "x$LINE" != x ; then
9933 eval "DEFAULT_$LINE"
9934 else
9935 no_cache=1
9936 fi
9937
9938 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
9939
9940fi;
9941
9942 eval "$ac_cv_use_togglebtn"
9943 if test "$no_cache" != 1; then
9944 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
9945 fi
9946
9947 if test "$wxUSE_TOGGLEBTN" = yes; then
9948 echo "$as_me:$LINENO: result: yes" >&5
9949echo "${ECHO_T}yes" >&6
9950 else
9951 echo "$as_me:$LINENO: result: no" >&5
9952echo "${ECHO_T}no" >&6
9953 fi
9954
9955
9956 enablestring=
9957 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
9958echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
9959 no_cache=0
9960 # Check whether --enable-toolbar or --disable-toolbar was given.
9961if test "${enable_toolbar+set}" = set; then
9962 enableval="$enable_toolbar"
9963
9964 if test "$enableval" = yes; then
9965 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
9966 else
9967 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
9968 fi
9969
9970else
9971
9972 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
9973 if test "x$LINE" != x ; then
9974 eval "DEFAULT_$LINE"
9975 else
9976 no_cache=1
9977 fi
9978
9979 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
9980
9981fi;
9982
9983 eval "$ac_cv_use_toolbar"
9984 if test "$no_cache" != 1; then
9985 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
9986 fi
9987
9988 if test "$wxUSE_TOOLBAR" = yes; then
9989 echo "$as_me:$LINENO: result: yes" >&5
9990echo "${ECHO_T}yes" >&6
9991 else
9992 echo "$as_me:$LINENO: result: no" >&5
9993echo "${ECHO_T}no" >&6
9994 fi
9995
9996
9997 enablestring=
9998 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
9999echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
10000 no_cache=0
10001 # Check whether --enable-tbarnative or --disable-tbarnative was given.
10002if test "${enable_tbarnative+set}" = set; then
10003 enableval="$enable_tbarnative"
10004
10005 if test "$enableval" = yes; then
10006 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
10007 else
10008 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
10009 fi
10010
10011else
10012
10013 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
10014 if test "x$LINE" != x ; then
10015 eval "DEFAULT_$LINE"
10016 else
10017 no_cache=1
10018 fi
10019
10020 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
10021
10022fi;
10023
10024 eval "$ac_cv_use_tbarnative"
10025 if test "$no_cache" != 1; then
10026 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
10027 fi
10028
10029 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
10030 echo "$as_me:$LINENO: result: yes" >&5
10031echo "${ECHO_T}yes" >&6
10032 else
10033 echo "$as_me:$LINENO: result: no" >&5
10034echo "${ECHO_T}no" >&6
10035 fi
10036
10037
0093c2fc
VZ
10038 enablestring=
10039 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treebook" >&5
10040echo $ECHO_N "checking for --${enablestring:-enable}-treebook... $ECHO_C" >&6
10041 no_cache=0
10042 # Check whether --enable-treebook or --disable-treebook was given.
10043if test "${enable_treebook+set}" = set; then
10044 enableval="$enable_treebook"
10045
10046 if test "$enableval" = yes; then
10047 ac_cv_use_treebook='wxUSE_TREEBOOK=yes'
10048 else
10049 ac_cv_use_treebook='wxUSE_TREEBOOK=no'
10050 fi
10051
10052else
10053
10054 LINE=`grep "wxUSE_TREEBOOK" ${wx_arg_cache_file}`
10055 if test "x$LINE" != x ; then
10056 eval "DEFAULT_$LINE"
10057 else
10058 no_cache=1
10059 fi
10060
10061 ac_cv_use_treebook='wxUSE_TREEBOOK='$DEFAULT_wxUSE_TREEBOOK
10062
10063fi;
10064
10065 eval "$ac_cv_use_treebook"
10066 if test "$no_cache" != 1; then
10067 echo $ac_cv_use_treebook >> ${wx_arg_cache_file}.tmp
10068 fi
10069
10070 if test "$wxUSE_TREEBOOK" = yes; then
10071 echo "$as_me:$LINENO: result: yes" >&5
10072echo "${ECHO_T}yes" >&6
10073 else
10074 echo "$as_me:$LINENO: result: no" >&5
10075echo "${ECHO_T}no" >&6
10076 fi
10077
10078
5ec3bc43
JS
10079 enablestring=
10080 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbook" >&5
10081echo $ECHO_N "checking for --${enablestring:-enable}-toolbook... $ECHO_C" >&6
10082 no_cache=0
10083 # Check whether --enable-toolbook or --disable-toolbook was given.
10084if test "${enable_toolbook+set}" = set; then
10085 enableval="$enable_toolbook"
10086
10087 if test "$enableval" = yes; then
10088 ac_cv_use_toolbook='wxUSE_TOOLBOOK=yes'
10089 else
10090 ac_cv_use_toolbook='wxUSE_TOOLBOOK=no'
10091 fi
10092
10093else
10094
10095 LINE=`grep "wxUSE_TOOLBOOK" ${wx_arg_cache_file}`
10096 if test "x$LINE" != x ; then
10097 eval "DEFAULT_$LINE"
10098 else
10099 no_cache=1
10100 fi
10101
10102 ac_cv_use_toolbook='wxUSE_TOOLBOOK='$DEFAULT_wxUSE_TOOLBOOK
10103
10104fi;
10105
10106 eval "$ac_cv_use_toolbook"
10107 if test "$no_cache" != 1; then
10108 echo $ac_cv_use_toolbook >> ${wx_arg_cache_file}.tmp
10109 fi
10110
10111 if test "$wxUSE_TOOLBOOK" = yes; then
10112 echo "$as_me:$LINENO: result: yes" >&5
10113echo "${ECHO_T}yes" >&6
10114 else
10115 echo "$as_me:$LINENO: result: no" >&5
10116echo "${ECHO_T}no" >&6
10117 fi
10118
10119
a848cd7e
SC
10120 enablestring=
10121 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
10122echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
10123 no_cache=0
10124 # Check whether --enable-treectrl or --disable-treectrl was given.
10125if test "${enable_treectrl+set}" = set; then
10126 enableval="$enable_treectrl"
10127
10128 if test "$enableval" = yes; then
10129 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
10130 else
10131 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
10132 fi
10133
10134else
10135
10136 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
10137 if test "x$LINE" != x ; then
10138 eval "DEFAULT_$LINE"
10139 else
10140 no_cache=1
10141 fi
10142
10143 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
10144
10145fi;
10146
10147 eval "$ac_cv_use_treectrl"
10148 if test "$no_cache" != 1; then
10149 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
10150 fi
10151
10152 if test "$wxUSE_TREECTRL" = yes; then
10153 echo "$as_me:$LINENO: result: yes" >&5
10154echo "${ECHO_T}yes" >&6
10155 else
10156 echo "$as_me:$LINENO: result: no" >&5
10157echo "${ECHO_T}no" >&6
10158 fi
10159
10160
10161 enablestring=
10162 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
10163echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
10164 no_cache=0
10165 # Check whether --enable-tipwindow or --disable-tipwindow was given.
10166if test "${enable_tipwindow+set}" = set; then
10167 enableval="$enable_tipwindow"
10168
10169 if test "$enableval" = yes; then
10170 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
10171 else
10172 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
10173 fi
10174
10175else
10176
10177 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
10178 if test "x$LINE" != x ; then
10179 eval "DEFAULT_$LINE"
10180 else
10181 no_cache=1
10182 fi
10183
10184 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
10185
10186fi;
10187
10188 eval "$ac_cv_use_tipwindow"
10189 if test "$no_cache" != 1; then
10190 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
10191 fi
10192
10193 if test "$wxUSE_TIPWINDOW" = yes; then
10194 echo "$as_me:$LINENO: result: yes" >&5
10195echo "${ECHO_T}yes" >&6
10196 else
10197 echo "$as_me:$LINENO: result: no" >&5
10198echo "${ECHO_T}no" >&6
10199 fi
10200
10201
10202 enablestring=
10203 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
10204echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
10205 no_cache=0
10206 # Check whether --enable-popupwin or --disable-popupwin was given.
10207if test "${enable_popupwin+set}" = set; then
10208 enableval="$enable_popupwin"
10209
10210 if test "$enableval" = yes; then
10211 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
10212 else
10213 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
10214 fi
10215
10216else
10217
10218 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
10219 if test "x$LINE" != x ; then
10220 eval "DEFAULT_$LINE"
10221 else
10222 no_cache=1
10223 fi
10224
10225 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
10226
10227fi;
10228
10229 eval "$ac_cv_use_popupwin"
10230 if test "$no_cache" != 1; then
10231 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
10232 fi
10233
10234 if test "$wxUSE_POPUPWIN" = yes; then
10235 echo "$as_me:$LINENO: result: yes" >&5
10236echo "${ECHO_T}yes" >&6
10237 else
10238 echo "$as_me:$LINENO: result: no" >&5
10239echo "${ECHO_T}no" >&6
10240 fi
10241
10242
10243
10244
10245 enablestring=
10246 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
10247echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
10248 no_cache=0
10249 # Check whether --enable-commondlg or --disable-commondlg was given.
10250if test "${enable_commondlg+set}" = set; then
10251 enableval="$enable_commondlg"
10252
10253 if test "$enableval" = yes; then
10254 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
10255 else
10256 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
10257 fi
10258
10259else
10260
10261 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
10262 if test "x$LINE" != x ; then
10263 eval "DEFAULT_$LINE"
10264 else
10265 no_cache=1
10266 fi
10267
10268 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
10269
10270fi;
10271
10272 eval "$ac_cv_use_commondlg"
10273 if test "$no_cache" != 1; then
10274 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
10275 fi
10276
10277 if test "$wxUSE_COMMONDLGS" = yes; then
10278 echo "$as_me:$LINENO: result: yes" >&5
10279echo "${ECHO_T}yes" >&6
10280 else
10281 echo "$as_me:$LINENO: result: no" >&5
10282echo "${ECHO_T}no" >&6
10283 fi
10284
10285
319c5ed4
VZ
10286 enablestring=
10287 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-aboutdlg" >&5
10288echo $ECHO_N "checking for --${enablestring:-enable}-aboutdlg... $ECHO_C" >&6
10289 no_cache=0
10290 # Check whether --enable-aboutdlg or --disable-aboutdlg was given.
10291if test "${enable_aboutdlg+set}" = set; then
10292 enableval="$enable_aboutdlg"
10293
10294 if test "$enableval" = yes; then
10295 ac_cv_use_aboutdlg='wxUSE_ABOUTDLG=yes'
10296 else
10297 ac_cv_use_aboutdlg='wxUSE_ABOUTDLG=no'
10298 fi
10299
10300else
10301
10302 LINE=`grep "wxUSE_ABOUTDLG" ${wx_arg_cache_file}`
10303 if test "x$LINE" != x ; then
10304 eval "DEFAULT_$LINE"
10305 else
10306 no_cache=1
10307 fi
10308
10309 ac_cv_use_aboutdlg='wxUSE_ABOUTDLG='$DEFAULT_wxUSE_ABOUTDLG
10310
10311fi;
10312
10313 eval "$ac_cv_use_aboutdlg"
10314 if test "$no_cache" != 1; then
10315 echo $ac_cv_use_aboutdlg >> ${wx_arg_cache_file}.tmp
10316 fi
10317
10318 if test "$wxUSE_ABOUTDLG" = yes; then
10319 echo "$as_me:$LINENO: result: yes" >&5
10320echo "${ECHO_T}yes" >&6
10321 else
10322 echo "$as_me:$LINENO: result: no" >&5
10323echo "${ECHO_T}no" >&6
10324 fi
10325
10326
a848cd7e
SC
10327 enablestring=
10328 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
10329echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
10330 no_cache=0
10331 # Check whether --enable-choicedlg or --disable-choicedlg was given.
10332if test "${enable_choicedlg+set}" = set; then
10333 enableval="$enable_choicedlg"
10334
10335 if test "$enableval" = yes; then
10336 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
10337 else
10338 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
10339 fi
10340
10341else
10342
10343 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
10344 if test "x$LINE" != x ; then
10345 eval "DEFAULT_$LINE"
10346 else
10347 no_cache=1
10348 fi
10349
10350 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
10351
10352fi;
10353
10354 eval "$ac_cv_use_choicedlg"
10355 if test "$no_cache" != 1; then
10356 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
10357 fi
10358
10359 if test "$wxUSE_CHOICEDLG" = yes; then
10360 echo "$as_me:$LINENO: result: yes" >&5
10361echo "${ECHO_T}yes" >&6
10362 else
10363 echo "$as_me:$LINENO: result: no" >&5
10364echo "${ECHO_T}no" >&6
10365 fi
10366
10367
10368 enablestring=
10369 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
10370echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
10371 no_cache=0
10372 # Check whether --enable-coldlg or --disable-coldlg was given.
10373if test "${enable_coldlg+set}" = set; then
10374 enableval="$enable_coldlg"
10375
10376 if test "$enableval" = yes; then
10377 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
10378 else
10379 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
10380 fi
10381
10382else
10383
10384 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
10385 if test "x$LINE" != x ; then
10386 eval "DEFAULT_$LINE"
10387 else
10388 no_cache=1
10389 fi
10390
10391 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
10392
10393fi;
10394
10395 eval "$ac_cv_use_coldlg"
10396 if test "$no_cache" != 1; then
10397 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
10398 fi
10399
10400 if test "$wxUSE_COLOURDLG" = yes; then
10401 echo "$as_me:$LINENO: result: yes" >&5
10402echo "${ECHO_T}yes" >&6
10403 else
10404 echo "$as_me:$LINENO: result: no" >&5
10405echo "${ECHO_T}no" >&6
10406 fi
10407
10408
10409 enablestring=
10410 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
10411echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
10412 no_cache=0
10413 # Check whether --enable-filedlg or --disable-filedlg was given.
10414if test "${enable_filedlg+set}" = set; then
10415 enableval="$enable_filedlg"
10416
10417 if test "$enableval" = yes; then
10418 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
10419 else
10420 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
10421 fi
10422
10423else
10424
10425 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
10426 if test "x$LINE" != x ; then
10427 eval "DEFAULT_$LINE"
10428 else
10429 no_cache=1
10430 fi
10431
10432 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
10433
10434fi;
10435
10436 eval "$ac_cv_use_filedlg"
10437 if test "$no_cache" != 1; then
10438 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
10439 fi
10440
10441 if test "$wxUSE_FILEDLG" = yes; then
10442 echo "$as_me:$LINENO: result: yes" >&5
10443echo "${ECHO_T}yes" >&6
10444 else
10445 echo "$as_me:$LINENO: result: no" >&5
10446echo "${ECHO_T}no" >&6
10447 fi
10448
10449
10450 enablestring=
10451 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
10452echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
10453 no_cache=0
10454 # Check whether --enable-finddlg or --disable-finddlg was given.
10455if test "${enable_finddlg+set}" = set; then
10456 enableval="$enable_finddlg"
10457
10458 if test "$enableval" = yes; then
10459 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
10460 else
10461 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
10462 fi
10463
10464else
10465
10466 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
10467 if test "x$LINE" != x ; then
10468 eval "DEFAULT_$LINE"
10469 else
10470 no_cache=1
10471 fi
10472
10473 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
10474
10475fi;
10476
10477 eval "$ac_cv_use_finddlg"
10478 if test "$no_cache" != 1; then
10479 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
10480 fi
10481
10482 if test "$wxUSE_FINDREPLDLG" = yes; then
10483 echo "$as_me:$LINENO: result: yes" >&5
10484echo "${ECHO_T}yes" >&6
10485 else
10486 echo "$as_me:$LINENO: result: no" >&5
10487echo "${ECHO_T}no" >&6
10488 fi
10489
10490
10491 enablestring=
10492 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
10493echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
10494 no_cache=0
10495 # Check whether --enable-fontdlg or --disable-fontdlg was given.
10496if test "${enable_fontdlg+set}" = set; then
10497 enableval="$enable_fontdlg"
10498
10499 if test "$enableval" = yes; then
10500 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
10501 else
10502 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
10503 fi
10504
10505else
10506
10507 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
10508 if test "x$LINE" != x ; then
10509 eval "DEFAULT_$LINE"
10510 else
10511 no_cache=1
10512 fi
10513
10514 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
10515
10516fi;
10517
10518 eval "$ac_cv_use_fontdlg"
10519 if test "$no_cache" != 1; then
10520 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
10521 fi
10522
10523 if test "$wxUSE_FONTDLG" = yes; then
10524 echo "$as_me:$LINENO: result: yes" >&5
10525echo "${ECHO_T}yes" >&6
10526 else
10527 echo "$as_me:$LINENO: result: no" >&5
10528echo "${ECHO_T}no" >&6
10529 fi
10530
10531
10532 enablestring=
10533 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
10534echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
10535 no_cache=0
10536 # Check whether --enable-dirdlg or --disable-dirdlg was given.
10537if test "${enable_dirdlg+set}" = set; then
10538 enableval="$enable_dirdlg"
10539
10540 if test "$enableval" = yes; then
10541 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
10542 else
10543 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
10544 fi
10545
10546else
10547
10548 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
10549 if test "x$LINE" != x ; then
10550 eval "DEFAULT_$LINE"
10551 else
10552 no_cache=1
10553 fi
10554
10555 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
10556
10557fi;
10558
10559 eval "$ac_cv_use_dirdlg"
10560 if test "$no_cache" != 1; then
10561 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
10562 fi
10563
10564 if test "$wxUSE_DIRDLG" = yes; then
10565 echo "$as_me:$LINENO: result: yes" >&5
10566echo "${ECHO_T}yes" >&6
10567 else
10568 echo "$as_me:$LINENO: result: no" >&5
10569echo "${ECHO_T}no" >&6
10570 fi
10571
10572
10573 enablestring=
10574 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
10575echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
10576 no_cache=0
10577 # Check whether --enable-msgdlg or --disable-msgdlg was given.
10578if test "${enable_msgdlg+set}" = set; then
10579 enableval="$enable_msgdlg"
10580
10581 if test "$enableval" = yes; then
10582 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
10583 else
10584 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
10585 fi
10586
10587else
10588
10589 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
10590 if test "x$LINE" != x ; then
10591 eval "DEFAULT_$LINE"
10592 else
10593 no_cache=1
10594 fi
10595
10596 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
10597
10598fi;
10599
10600 eval "$ac_cv_use_msgdlg"
10601 if test "$no_cache" != 1; then
10602 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
10603 fi
10604
10605 if test "$wxUSE_MSGDLG" = yes; then
10606 echo "$as_me:$LINENO: result: yes" >&5
10607echo "${ECHO_T}yes" >&6
10608 else
10609 echo "$as_me:$LINENO: result: no" >&5
10610echo "${ECHO_T}no" >&6
10611 fi
10612
10613
10614 enablestring=
10615 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
10616echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
10617 no_cache=0
10618 # Check whether --enable-numberdlg or --disable-numberdlg was given.
10619if test "${enable_numberdlg+set}" = set; then
10620 enableval="$enable_numberdlg"
10621
10622 if test "$enableval" = yes; then
10623 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
10624 else
10625 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
10626 fi
10627
10628else
10629
10630 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
10631 if test "x$LINE" != x ; then
10632 eval "DEFAULT_$LINE"
10633 else
10634 no_cache=1
10635 fi
10636
10637 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
10638
10639fi;
10640
10641 eval "$ac_cv_use_numberdlg"
10642 if test "$no_cache" != 1; then
10643 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
10644 fi
10645
10646 if test "$wxUSE_NUMBERDLG" = yes; then
10647 echo "$as_me:$LINENO: result: yes" >&5
10648echo "${ECHO_T}yes" >&6
10649 else
10650 echo "$as_me:$LINENO: result: no" >&5
10651echo "${ECHO_T}no" >&6
10652 fi
10653
10654
10655 enablestring=
10656 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
10657echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
10658 no_cache=0
10659 # Check whether --enable-splash or --disable-splash was given.
10660if test "${enable_splash+set}" = set; then
10661 enableval="$enable_splash"
10662
10663 if test "$enableval" = yes; then
10664 ac_cv_use_splash='wxUSE_SPLASH=yes'
10665 else
10666 ac_cv_use_splash='wxUSE_SPLASH=no'
10667 fi
10668
10669else
10670
10671 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
10672 if test "x$LINE" != x ; then
10673 eval "DEFAULT_$LINE"
10674 else
10675 no_cache=1
10676 fi
10677
10678 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
10679
10680fi;
10681
10682 eval "$ac_cv_use_splash"
10683 if test "$no_cache" != 1; then
10684 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
10685 fi
10686
10687 if test "$wxUSE_SPLASH" = yes; then
10688 echo "$as_me:$LINENO: result: yes" >&5
10689echo "${ECHO_T}yes" >&6
10690 else
10691 echo "$as_me:$LINENO: result: no" >&5
10692echo "${ECHO_T}no" >&6
10693 fi
10694
10695
10696 enablestring=
10697 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
10698echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
10699 no_cache=0
10700 # Check whether --enable-textdlg or --disable-textdlg was given.
10701if test "${enable_textdlg+set}" = set; then
10702 enableval="$enable_textdlg"
10703
10704 if test "$enableval" = yes; then
10705 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
10706 else
10707 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
10708 fi
10709
10710else
10711
10712 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
10713 if test "x$LINE" != x ; then
10714 eval "DEFAULT_$LINE"
10715 else
10716 no_cache=1
10717 fi
10718
10719 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
10720
10721fi;
10722
10723 eval "$ac_cv_use_textdlg"
10724 if test "$no_cache" != 1; then
10725 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
10726 fi
10727
10728 if test "$wxUSE_TEXTDLG" = yes; then
10729 echo "$as_me:$LINENO: result: yes" >&5
10730echo "${ECHO_T}yes" >&6
10731 else
10732 echo "$as_me:$LINENO: result: no" >&5
10733echo "${ECHO_T}no" >&6
10734 fi
10735
10736
10737 enablestring=
10738 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
10739echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
10740 no_cache=0
10741 # Check whether --enable-tipdlg or --disable-tipdlg was given.
10742if test "${enable_tipdlg+set}" = set; then
10743 enableval="$enable_tipdlg"
10744
10745 if test "$enableval" = yes; then
10746 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
10747 else
10748 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
10749 fi
10750
10751else
10752
10753 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
10754 if test "x$LINE" != x ; then
10755 eval "DEFAULT_$LINE"
10756 else
10757 no_cache=1
10758 fi
10759
10760 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
10761
10762fi;
10763
10764 eval "$ac_cv_use_tipdlg"
10765 if test "$no_cache" != 1; then
10766 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
10767 fi
10768
10769 if test "$wxUSE_STARTUP_TIPS" = yes; then
10770 echo "$as_me:$LINENO: result: yes" >&5
10771echo "${ECHO_T}yes" >&6
10772 else
10773 echo "$as_me:$LINENO: result: no" >&5
10774echo "${ECHO_T}no" >&6
10775 fi
10776
10777
10778 enablestring=
10779 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
10780echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
10781 no_cache=0
10782 # Check whether --enable-progressdlg or --disable-progressdlg was given.
10783if test "${enable_progressdlg+set}" = set; then
10784 enableval="$enable_progressdlg"
10785
10786 if test "$enableval" = yes; then
10787 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
10788 else
10789 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
10790 fi
10791
10792else
10793
10794 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
10795 if test "x$LINE" != x ; then
10796 eval "DEFAULT_$LINE"
10797 else
10798 no_cache=1
10799 fi
10800
10801 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
10802
10803fi;
10804
10805 eval "$ac_cv_use_progressdlg"
10806 if test "$no_cache" != 1; then
10807 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
10808 fi
10809
10810 if test "$wxUSE_PROGRESSDLG" = yes; then
10811 echo "$as_me:$LINENO: result: yes" >&5
10812echo "${ECHO_T}yes" >&6
10813 else
10814 echo "$as_me:$LINENO: result: no" >&5
10815echo "${ECHO_T}no" >&6
10816 fi
10817
10818
10819 enablestring=
10820 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
10821echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
10822 no_cache=0
10823 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
10824if test "${enable_wizarddlg+set}" = set; then
10825 enableval="$enable_wizarddlg"
10826
10827 if test "$enableval" = yes; then
10828 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
10829 else
10830 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
10831 fi
10832
10833else
10834
10835 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
10836 if test "x$LINE" != x ; then
10837 eval "DEFAULT_$LINE"
10838 else
10839 no_cache=1
10840 fi
10841
10842 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
10843
10844fi;
10845
10846 eval "$ac_cv_use_wizarddlg"
10847 if test "$no_cache" != 1; then
10848 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
10849 fi
10850
10851 if test "$wxUSE_WIZARDDLG" = yes; then
10852 echo "$as_me:$LINENO: result: yes" >&5
10853echo "${ECHO_T}yes" >&6
10854 else
10855 echo "$as_me:$LINENO: result: no" >&5
10856echo "${ECHO_T}no" >&6
10857 fi
10858
10859
10860
10861
10862 enablestring=
10863 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
10864echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
10865 no_cache=0
10866 # Check whether --enable-menus or --disable-menus was given.
10867if test "${enable_menus+set}" = set; then
10868 enableval="$enable_menus"
10869
10870 if test "$enableval" = yes; then
10871 ac_cv_use_menus='wxUSE_MENUS=yes'
10872 else
10873 ac_cv_use_menus='wxUSE_MENUS=no'
10874 fi
10875
10876else
10877
10878 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
10879 if test "x$LINE" != x ; then
10880 eval "DEFAULT_$LINE"
10881 else
10882 no_cache=1
10883 fi
10884
10885 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
10886
10887fi;
10888
10889 eval "$ac_cv_use_menus"
10890 if test "$no_cache" != 1; then
10891 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
10892 fi
10893
10894 if test "$wxUSE_MENUS" = yes; then
10895 echo "$as_me:$LINENO: result: yes" >&5
10896echo "${ECHO_T}yes" >&6
10897 else
10898 echo "$as_me:$LINENO: result: no" >&5
10899echo "${ECHO_T}no" >&6
10900 fi
10901
10902
10903 enablestring=
10904 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
10905echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
10906 no_cache=0
10907 # Check whether --enable-miniframe or --disable-miniframe was given.
10908if test "${enable_miniframe+set}" = set; then
10909 enableval="$enable_miniframe"
10910
10911 if test "$enableval" = yes; then
10912 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
10913 else
10914 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
10915 fi
10916
10917else
10918
10919 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
10920 if test "x$LINE" != x ; then
10921 eval "DEFAULT_$LINE"
10922 else
10923 no_cache=1
10924 fi
10925
10926 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
10927
10928fi;
10929
10930 eval "$ac_cv_use_miniframe"
10931 if test "$no_cache" != 1; then
10932 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
10933 fi
10934
10935 if test "$wxUSE_MINIFRAME" = yes; then
10936 echo "$as_me:$LINENO: result: yes" >&5
10937echo "${ECHO_T}yes" >&6
10938 else
10939 echo "$as_me:$LINENO: result: no" >&5
10940echo "${ECHO_T}no" >&6
10941 fi
10942
10943
10944 enablestring=
10945 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
10946echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
10947 no_cache=0
10948 # Check whether --enable-tooltips or --disable-tooltips was given.
10949if test "${enable_tooltips+set}" = set; then
10950 enableval="$enable_tooltips"
10951
10952 if test "$enableval" = yes; then
10953 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
10954 else
10955 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
10956 fi
10957
10958else
10959
10960 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
10961 if test "x$LINE" != x ; then
10962 eval "DEFAULT_$LINE"
10963 else
10964 no_cache=1
10965 fi
10966
10967 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
10968
10969fi;
10970
10971 eval "$ac_cv_use_tooltips"
10972 if test "$no_cache" != 1; then
10973 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
10974 fi
10975
10976 if test "$wxUSE_TOOLTIPS" = yes; then
10977 echo "$as_me:$LINENO: result: yes" >&5
10978echo "${ECHO_T}yes" >&6
10979 else
10980 echo "$as_me:$LINENO: result: no" >&5
10981echo "${ECHO_T}no" >&6
10982 fi
10983
10984
10985 enablestring=
10986 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
10987echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
10988 no_cache=0
10989 # Check whether --enable-splines or --disable-splines was given.
10990if test "${enable_splines+set}" = set; then
10991 enableval="$enable_splines"
10992
10993 if test "$enableval" = yes; then
10994 ac_cv_use_splines='wxUSE_SPLINES=yes'
10995 else
10996 ac_cv_use_splines='wxUSE_SPLINES=no'
10997 fi
10998
10999else
11000
11001 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
11002 if test "x$LINE" != x ; then
11003 eval "DEFAULT_$LINE"
11004 else
11005 no_cache=1
11006 fi
11007
11008 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
11009
11010fi;
11011
11012 eval "$ac_cv_use_splines"
11013 if test "$no_cache" != 1; then
11014 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
11015 fi
11016
11017 if test "$wxUSE_SPLINES" = yes; then
11018 echo "$as_me:$LINENO: result: yes" >&5
11019echo "${ECHO_T}yes" >&6
11020 else
11021 echo "$as_me:$LINENO: result: no" >&5
11022echo "${ECHO_T}no" >&6
11023 fi
11024
11025
fbe2ca43
SN
11026 enablestring=
11027 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mousewheel" >&5
11028echo $ECHO_N "checking for --${enablestring:-enable}-mousewheel... $ECHO_C" >&6
11029 no_cache=0
11030 # Check whether --enable-mousewheel or --disable-mousewheel was given.
11031if test "${enable_mousewheel+set}" = set; then
11032 enableval="$enable_mousewheel"
11033
11034 if test "$enableval" = yes; then
11035 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=yes'
11036 else
11037 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=no'
11038 fi
11039
11040else
11041
11042 LINE=`grep "wxUSE_MOUSEWHEEL" ${wx_arg_cache_file}`
11043 if test "x$LINE" != x ; then
11044 eval "DEFAULT_$LINE"
11045 else
11046 no_cache=1
11047 fi
11048
11049 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL='$DEFAULT_wxUSE_MOUSEWHEEL
11050
11051fi;
11052
11053 eval "$ac_cv_use_mousewheel"
11054 if test "$no_cache" != 1; then
11055 echo $ac_cv_use_mousewheel >> ${wx_arg_cache_file}.tmp
11056 fi
11057
11058 if test "$wxUSE_MOUSEWHEEL" = yes; then
11059 echo "$as_me:$LINENO: result: yes" >&5
11060echo "${ECHO_T}yes" >&6
11061 else
11062 echo "$as_me:$LINENO: result: no" >&5
11063echo "${ECHO_T}no" >&6
11064 fi
11065
11066
a848cd7e
SC
11067 enablestring=
11068 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
11069echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
11070 no_cache=0
11071 # Check whether --enable-validators or --disable-validators was given.
11072if test "${enable_validators+set}" = set; then
11073 enableval="$enable_validators"
11074
11075 if test "$enableval" = yes; then
11076 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
11077 else
11078 ac_cv_use_validators='wxUSE_VALIDATORS=no'
11079 fi
11080
11081else
11082
11083 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
11084 if test "x$LINE" != x ; then
11085 eval "DEFAULT_$LINE"
11086 else
11087 no_cache=1
11088 fi
11089
11090 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
11091
11092fi;
11093
11094 eval "$ac_cv_use_validators"
11095 if test "$no_cache" != 1; then
11096 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
11097 fi
11098
11099 if test "$wxUSE_VALIDATORS" = yes; then
11100 echo "$as_me:$LINENO: result: yes" >&5
11101echo "${ECHO_T}yes" >&6
11102 else
11103 echo "$as_me:$LINENO: result: no" >&5
11104echo "${ECHO_T}no" >&6
11105 fi
11106
11107
11108 enablestring=
11109 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
11110echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
11111 no_cache=0
11112 # Check whether --enable-busyinfo or --disable-busyinfo was given.
11113if test "${enable_busyinfo+set}" = set; then
11114 enableval="$enable_busyinfo"
11115
11116 if test "$enableval" = yes; then
11117 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
11118 else
11119 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
11120 fi
11121
11122else
11123
11124 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
11125 if test "x$LINE" != x ; then
11126 eval "DEFAULT_$LINE"
11127 else
11128 no_cache=1
11129 fi
11130
11131 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
11132
11133fi;
11134
11135 eval "$ac_cv_use_busyinfo"
11136 if test "$no_cache" != 1; then
11137 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
11138 fi
11139
11140 if test "$wxUSE_BUSYINFO" = yes; then
11141 echo "$as_me:$LINENO: result: yes" >&5
11142echo "${ECHO_T}yes" >&6
11143 else
11144 echo "$as_me:$LINENO: result: no" >&5
11145echo "${ECHO_T}no" >&6
11146 fi
11147
11148
11149 enablestring=
11150 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
11151echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
11152 no_cache=0
11153 # Check whether --enable-joystick or --disable-joystick was given.
11154if test "${enable_joystick+set}" = set; then
11155 enableval="$enable_joystick"
11156
11157 if test "$enableval" = yes; then
11158 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
11159 else
11160 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
11161 fi
11162
11163else
11164
11165 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
11166 if test "x$LINE" != x ; then
11167 eval "DEFAULT_$LINE"
11168 else
11169 no_cache=1
11170 fi
11171
11172 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
11173
11174fi;
11175
11176 eval "$ac_cv_use_joystick"
11177 if test "$no_cache" != 1; then
11178 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
11179 fi
11180
11181 if test "$wxUSE_JOYSTICK" = yes; then
11182 echo "$as_me:$LINENO: result: yes" >&5
11183echo "${ECHO_T}yes" >&6
11184 else
11185 echo "$as_me:$LINENO: result: no" >&5
11186echo "${ECHO_T}no" >&6
11187 fi
11188
11189
11190 enablestring=
11191 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
11192echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
11193 no_cache=0
11194 # Check whether --enable-metafile or --disable-metafile was given.
11195if test "${enable_metafile+set}" = set; then
11196 enableval="$enable_metafile"
11197
11198 if test "$enableval" = yes; then
11199 ac_cv_use_metafile='wxUSE_METAFILE=yes'
11200 else
11201 ac_cv_use_metafile='wxUSE_METAFILE=no'
11202 fi
11203
11204else
11205
11206 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
11207 if test "x$LINE" != x ; then
11208 eval "DEFAULT_$LINE"
11209 else
11210 no_cache=1
11211 fi
11212
11213 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
11214
11215fi;
11216
11217 eval "$ac_cv_use_metafile"
11218 if test "$no_cache" != 1; then
11219 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
11220 fi
11221
11222 if test "$wxUSE_METAFILE" = yes; then
11223 echo "$as_me:$LINENO: result: yes" >&5
11224echo "${ECHO_T}yes" >&6
11225 else
11226 echo "$as_me:$LINENO: result: no" >&5
11227echo "${ECHO_T}no" >&6
11228 fi
11229
11230
11231 enablestring=
11232 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
11233echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
11234 no_cache=0
11235 # Check whether --enable-dragimage or --disable-dragimage was given.
11236if test "${enable_dragimage+set}" = set; then
11237 enableval="$enable_dragimage"
11238
11239 if test "$enableval" = yes; then
11240 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
11241 else
11242 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
11243 fi
11244
11245else
11246
11247 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
11248 if test "x$LINE" != x ; then
11249 eval "DEFAULT_$LINE"
11250 else
11251 no_cache=1
11252 fi
11253
11254 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
11255
11256fi;
11257
11258 eval "$ac_cv_use_dragimage"
11259 if test "$no_cache" != 1; then
11260 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
11261 fi
11262
11263 if test "$wxUSE_DRAGIMAGE" = yes; then
11264 echo "$as_me:$LINENO: result: yes" >&5
11265echo "${ECHO_T}yes" >&6
11266 else
11267 echo "$as_me:$LINENO: result: no" >&5
11268echo "${ECHO_T}no" >&6
11269 fi
11270
11271
11272 enablestring=
11273 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
11274echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
11275 no_cache=0
11276 # Check whether --enable-accessibility or --disable-accessibility was given.
11277if test "${enable_accessibility+set}" = set; then
11278 enableval="$enable_accessibility"
11279
11280 if test "$enableval" = yes; then
11281 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
11282 else
11283 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
11284 fi
11285
11286else
11287
11288 LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
11289 if test "x$LINE" != x ; then
11290 eval "DEFAULT_$LINE"
11291 else
11292 no_cache=1
11293 fi
11294
11295 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
11296
11297fi;
11298
11299 eval "$ac_cv_use_accessibility"
11300 if test "$no_cache" != 1; then
11301 echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
11302 fi
11303
11304 if test "$wxUSE_ACCESSIBILITY" = yes; then
11305 echo "$as_me:$LINENO: result: yes" >&5
11306echo "${ECHO_T}yes" >&6
11307 else
11308 echo "$as_me:$LINENO: result: no" >&5
11309echo "${ECHO_T}no" >&6
11310 fi
11311
11312
38b4a946
VZ
11313if test "$wxUSE_MSW" = "1"; then
11314
11315 enablestring=
11316 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dccache" >&5
11317echo $ECHO_N "checking for --${enablestring:-enable}-dccache... $ECHO_C" >&6
11318 no_cache=0
11319 # Check whether --enable-dccache or --disable-dccache was given.
11320if test "${enable_dccache+set}" = set; then
11321 enableval="$enable_dccache"
11322
11323 if test "$enableval" = yes; then
11324 ac_cv_use_dccache='wxUSE_DC_CACHEING=yes'
11325 else
11326 ac_cv_use_dccache='wxUSE_DC_CACHEING=no'
11327 fi
11328
11329else
11330
11331 LINE=`grep "wxUSE_DC_CACHEING" ${wx_arg_cache_file}`
11332 if test "x$LINE" != x ; then
11333 eval "DEFAULT_$LINE"
11334 else
11335 no_cache=1
11336 fi
11337
11338 ac_cv_use_dccache='wxUSE_DC_CACHEING='$DEFAULT_wxUSE_DC_CACHEING
11339
11340fi;
11341
11342 eval "$ac_cv_use_dccache"
11343 if test "$no_cache" != 1; then
11344 echo $ac_cv_use_dccache >> ${wx_arg_cache_file}.tmp
11345 fi
11346
11347 if test "$wxUSE_DC_CACHEING" = yes; then
11348 echo "$as_me:$LINENO: result: yes" >&5
11349echo "${ECHO_T}yes" >&6
11350 else
11351 echo "$as_me:$LINENO: result: no" >&5
11352echo "${ECHO_T}no" >&6
11353 fi
11354
11355fi
11356
a848cd7e
SC
11357
11358
11359 enablestring=
11360 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
11361echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
11362 no_cache=0
11363 # Check whether --enable-palette or --disable-palette was given.
11364if test "${enable_palette+set}" = set; then
11365 enableval="$enable_palette"
11366
11367 if test "$enableval" = yes; then
11368 ac_cv_use_palette='wxUSE_PALETTE=yes'
11369 else
11370 ac_cv_use_palette='wxUSE_PALETTE=no'
11371 fi
11372
11373else
11374
11375 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
11376 if test "x$LINE" != x ; then
11377 eval "DEFAULT_$LINE"
11378 else
11379 no_cache=1
11380 fi
11381
11382 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
11383
11384fi;
11385
11386 eval "$ac_cv_use_palette"
11387 if test "$no_cache" != 1; then
11388 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
11389 fi
11390
11391 if test "$wxUSE_PALETTE" = yes; then
11392 echo "$as_me:$LINENO: result: yes" >&5
11393echo "${ECHO_T}yes" >&6
11394 else
11395 echo "$as_me:$LINENO: result: no" >&5
11396echo "${ECHO_T}no" >&6
11397 fi
11398
11399
11400 enablestring=
11401 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
11402echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
11403 no_cache=0
11404 # Check whether --enable-image or --disable-image was given.
11405if test "${enable_image+set}" = set; then
11406 enableval="$enable_image"
11407
11408 if test "$enableval" = yes; then
11409 ac_cv_use_image='wxUSE_IMAGE=yes'
11410 else
11411 ac_cv_use_image='wxUSE_IMAGE=no'
11412 fi
11413
11414else
11415
11416 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
11417 if test "x$LINE" != x ; then
11418 eval "DEFAULT_$LINE"
11419 else
11420 no_cache=1
11421 fi
11422
11423 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
11424
11425fi;
11426
11427 eval "$ac_cv_use_image"
11428 if test "$no_cache" != 1; then
11429 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
11430 fi
11431
11432 if test "$wxUSE_IMAGE" = yes; then
11433 echo "$as_me:$LINENO: result: yes" >&5
11434echo "${ECHO_T}yes" >&6
11435 else
11436 echo "$as_me:$LINENO: result: no" >&5
11437echo "${ECHO_T}no" >&6
11438 fi
11439
11440
11441 enablestring=
11442 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
11443echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
11444 no_cache=0
11445 # Check whether --enable-gif or --disable-gif was given.
11446if test "${enable_gif+set}" = set; then
11447 enableval="$enable_gif"
11448
11449 if test "$enableval" = yes; then
11450 ac_cv_use_gif='wxUSE_GIF=yes'
11451 else
11452 ac_cv_use_gif='wxUSE_GIF=no'
11453 fi
11454
11455else
11456
11457 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
11458 if test "x$LINE" != x ; then
11459 eval "DEFAULT_$LINE"
11460 else
11461 no_cache=1
11462 fi
11463
11464 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
11465
11466fi;
11467
11468 eval "$ac_cv_use_gif"
11469 if test "$no_cache" != 1; then
11470 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
11471 fi
11472
11473 if test "$wxUSE_GIF" = yes; then
11474 echo "$as_me:$LINENO: result: yes" >&5
11475echo "${ECHO_T}yes" >&6
11476 else
11477 echo "$as_me:$LINENO: result: no" >&5
11478echo "${ECHO_T}no" >&6
11479 fi
11480
11481
11482 enablestring=
11483 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
11484echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
11485 no_cache=0
11486 # Check whether --enable-pcx or --disable-pcx was given.
11487if test "${enable_pcx+set}" = set; then
11488 enableval="$enable_pcx"
11489
11490 if test "$enableval" = yes; then
11491 ac_cv_use_pcx='wxUSE_PCX=yes'
11492 else
11493 ac_cv_use_pcx='wxUSE_PCX=no'
11494 fi
11495
11496else
11497
11498 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
11499 if test "x$LINE" != x ; then
11500 eval "DEFAULT_$LINE"
11501 else
11502 no_cache=1
11503 fi
11504
11505 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
11506
11507fi;
11508
11509 eval "$ac_cv_use_pcx"
11510 if test "$no_cache" != 1; then
11511 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
11512 fi
11513
11514 if test "$wxUSE_PCX" = yes; then
11515 echo "$as_me:$LINENO: result: yes" >&5
11516echo "${ECHO_T}yes" >&6
11517 else
11518 echo "$as_me:$LINENO: result: no" >&5
11519echo "${ECHO_T}no" >&6
11520 fi
11521
11522
bb9e79c0
VZ
11523 enablestring=
11524 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tga" >&5
11525echo $ECHO_N "checking for --${enablestring:-enable}-tga... $ECHO_C" >&6
11526 no_cache=0
11527 # Check whether --enable-tga or --disable-tga was given.
11528if test "${enable_tga+set}" = set; then
11529 enableval="$enable_tga"
11530
11531 if test "$enableval" = yes; then
11532 ac_cv_use_tga='wxUSE_TGA=yes'
11533 else
11534 ac_cv_use_tga='wxUSE_TGA=no'
11535 fi
11536
11537else
11538
11539 LINE=`grep "wxUSE_TGA" ${wx_arg_cache_file}`
11540 if test "x$LINE" != x ; then
11541 eval "DEFAULT_$LINE"
11542 else
11543 no_cache=1
11544 fi
11545
11546 ac_cv_use_tga='wxUSE_TGA='$DEFAULT_wxUSE_TGA
11547
11548fi;
11549
11550 eval "$ac_cv_use_tga"
11551 if test "$no_cache" != 1; then
11552 echo $ac_cv_use_tga >> ${wx_arg_cache_file}.tmp
11553 fi
11554
11555 if test "$wxUSE_TGA" = yes; then
11556 echo "$as_me:$LINENO: result: yes" >&5
11557echo "${ECHO_T}yes" >&6
11558 else
11559 echo "$as_me:$LINENO: result: no" >&5
11560echo "${ECHO_T}no" >&6
11561 fi
11562
11563
a848cd7e
SC
11564 enablestring=
11565 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
11566echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
11567 no_cache=0
11568 # Check whether --enable-iff or --disable-iff was given.
11569if test "${enable_iff+set}" = set; then
11570 enableval="$enable_iff"
11571
11572 if test "$enableval" = yes; then
11573 ac_cv_use_iff='wxUSE_IFF=yes'
11574 else
11575 ac_cv_use_iff='wxUSE_IFF=no'
11576 fi
11577
11578else
11579
11580 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
11581 if test "x$LINE" != x ; then
11582 eval "DEFAULT_$LINE"
11583 else
11584 no_cache=1
11585 fi
11586
11587 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
11588
11589fi;
11590
11591 eval "$ac_cv_use_iff"
11592 if test "$no_cache" != 1; then
11593 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
11594 fi
11595
11596 if test "$wxUSE_IFF" = yes; then
11597 echo "$as_me:$LINENO: result: yes" >&5
11598echo "${ECHO_T}yes" >&6
11599 else
11600 echo "$as_me:$LINENO: result: no" >&5
11601echo "${ECHO_T}no" >&6
11602 fi
11603
11604
11605 enablestring=
11606 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
11607echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
11608 no_cache=0
11609 # Check whether --enable-pnm or --disable-pnm was given.
11610if test "${enable_pnm+set}" = set; then
11611 enableval="$enable_pnm"
11612
11613 if test "$enableval" = yes; then
11614 ac_cv_use_pnm='wxUSE_PNM=yes'
11615 else
11616 ac_cv_use_pnm='wxUSE_PNM=no'
11617 fi
11618
11619else
11620
11621 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
11622 if test "x$LINE" != x ; then
11623 eval "DEFAULT_$LINE"
11624 else
11625 no_cache=1
11626 fi
11627
11628 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
11629
11630fi;
11631
11632 eval "$ac_cv_use_pnm"
11633 if test "$no_cache" != 1; then
11634 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
11635 fi
11636
11637 if test "$wxUSE_PNM" = yes; then
11638 echo "$as_me:$LINENO: result: yes" >&5
11639echo "${ECHO_T}yes" >&6
11640 else
11641 echo "$as_me:$LINENO: result: no" >&5
11642echo "${ECHO_T}no" >&6
11643 fi
11644
11645
11646 enablestring=
11647 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
11648echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
11649 no_cache=0
11650 # Check whether --enable-xpm or --disable-xpm was given.
11651if test "${enable_xpm+set}" = set; then
11652 enableval="$enable_xpm"
11653
11654 if test "$enableval" = yes; then
11655 ac_cv_use_xpm='wxUSE_XPM=yes'
11656 else
11657 ac_cv_use_xpm='wxUSE_XPM=no'
11658 fi
11659
11660else
11661
11662 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
11663 if test "x$LINE" != x ; then
11664 eval "DEFAULT_$LINE"
11665 else
11666 no_cache=1
11667 fi
11668
11669 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
11670
11671fi;
11672
11673 eval "$ac_cv_use_xpm"
11674 if test "$no_cache" != 1; then
11675 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
11676 fi
11677
11678 if test "$wxUSE_XPM" = yes; then
11679 echo "$as_me:$LINENO: result: yes" >&5
11680echo "${ECHO_T}yes" >&6
11681 else
11682 echo "$as_me:$LINENO: result: no" >&5
11683echo "${ECHO_T}no" >&6
11684 fi
11685
11686
11687 enablestring=
11688 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
11689echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
11690 no_cache=0
11691 # Check whether --enable-ico_cur or --disable-ico_cur was given.
11692if test "${enable_ico_cur+set}" = set; then
11693 enableval="$enable_ico_cur"
11694
11695 if test "$enableval" = yes; then
11696 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
11697 else
11698 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
11699 fi
11700
11701else
11702
11703 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
11704 if test "x$LINE" != x ; then
11705 eval "DEFAULT_$LINE"
11706 else
11707 no_cache=1
11708 fi
11709
11710 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
11711
11712fi;
11713
11714 eval "$ac_cv_use_ico_cur"
11715 if test "$no_cache" != 1; then
11716 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
11717 fi
11718
11719 if test "$wxUSE_ICO_CUR" = yes; then
11720 echo "$as_me:$LINENO: result: yes" >&5
11721echo "${ECHO_T}yes" >&6
11722 else
11723 echo "$as_me:$LINENO: result: no" >&5
11724echo "${ECHO_T}no" >&6
11725 fi
11726
11727
11728fi
11729
11730
11731
ceec2216
RL
11732# Check whether --with-flavour or --without-flavour was given.
11733if test "${with_flavour+set}" = set; then
11734 withval="$with_flavour"
11735 WX_FLAVOUR="$withval"
11736fi;
11737
11738
11739
a848cd7e
SC
11740 enablestring=
11741 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
11742echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
11743 no_cache=0
11744 # Check whether --enable-official_build or --disable-official_build was given.
11745if test "${enable_official_build+set}" = set; then
11746 enableval="$enable_official_build"
11747
11748 if test "$enableval" = yes; then
11749 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
11750 else
11751 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
11752 fi
11753
11754else
11755
11756 LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
11757 if test "x$LINE" != x ; then
11758 eval "DEFAULT_$LINE"
11759 else
11760 no_cache=1
11761 fi
11762
11763 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
11764
11765fi;
11766
11767 eval "$ac_cv_use_official_build"
11768 if test "$no_cache" != 1; then
11769 echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
11770 fi
11771
11772 if test "$wxUSE_OFFICIAL_BUILD" = yes; then
11773 echo "$as_me:$LINENO: result: yes" >&5
11774echo "${ECHO_T}yes" >&6
11775 else
11776 echo "$as_me:$LINENO: result: no" >&5
11777echo "${ECHO_T}no" >&6
11778 fi
11779
11780# Check whether --enable-vendor or --disable-vendor was given.
11781if test "${enable_vendor+set}" = set; then
11782 enableval="$enable_vendor"
11783 VENDOR="$enableval"
11784fi;
11785if test "x$VENDOR" = "x"; then
11786 VENDOR="custom"
11787fi
11788
a848cd7e
SC
11789
11790
11791
11792 echo "saving argument cache $wx_arg_cache_file"
11793 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
11794
11795
11796
11797echo "$as_me:$LINENO: checking for toolkit" >&5
11798echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
11799
11800# In Wine, we need to default to MSW, not GTK or MOTIF
11801if test "$wxUSE_WINE" = "yes"; then
11802 DEFAULT_DEFAULT_wxUSE_GTK=0
11803 DEFAULT_DEFAULT_wxUSE_MOTIF=0
11804 DEFAULT_DEFAULT_wxUSE_MSW=1
11805 wxUSE_SHARED=no
11806fi
11807
f597b41c 11808
a848cd7e
SC
11809if test "$wxUSE_GUI" = "yes"; then
11810
11811 if test "$USE_BEOS" = 1; then
11812 { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
11813echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
11814 { (exit 1); exit 1; }; }
11815 fi
11816
11817 if test "$TOOLKIT_GIVEN" = 1; then
11818 for toolkit in `echo $ALL_TOOLKITS`; do
11819 var=wxUSE_$toolkit
11820 eval "value=\$${var}"
f34ca037
MW
11821 if test "x$value" = "xno"; then
11822 eval "$var=0"
11823 elif test "x$value" != "x"; then
11824 eval "$var=1"
11825 fi
11826
11827 if test "x$value" != "x" -a "x$value" != "xyes" -a "x$value" != "xno"; then
11828 eval "wx${toolkit}_VERSION=$value"
11829 fi
a848cd7e
SC
11830 done
11831 else
11832 for toolkit in `echo $ALL_TOOLKITS`; do
11833 if test "$has_toolkit_in_cache" != 1; then
11834 var=DEFAULT_DEFAULT_wxUSE_$toolkit
11835 else
11836 var=DEFAULT_wxUSE_$toolkit
f34ca037
MW
11837
11838 eval "version=\$DEFAULT_wx${toolkit}_VERSION"
11839 if test "x$version" != "x"; then
11840 eval "wx${toolkit}_VERSION=$version"
11841 fi
a848cd7e
SC
11842 fi
11843 eval "wxUSE_$toolkit=\$${var}"
11844 done
11845 fi
11846
11847 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
b3c86150 11848 + ${wxUSE_MGL:-0} + ${wxUSE_DFB:-0} + ${wxUSE_MICROWIN:-0} \
a848cd7e
SC
11849 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
11850
11851 case "${host}" in
11852 *-pc-os2_emx | *-pc-os2-emx )
11853 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
11854 esac
11855
11856 case "$NUM_TOOLKITS" in
11857 1)
11858 ;;
11859 0)
11860 { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
11861echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
11862 { (exit 1); exit 1; }; }
11863 ;;
11864 *)
11865 { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
11866echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
11867 { (exit 1); exit 1; }; }
11868 esac
11869
f34ca037
MW
11870 # to be removed when --disable-gtk2 isn't needed
11871 if test "x$wxUSE_GTK2" = "xyes"; then
11872 wxGTK_VERSION=2
11873 elif test "x$wxUSE_GTK2" = "xno"; then
11874 wxGTK_VERSION=1
11875 fi
11876
a848cd7e
SC
11877 for toolkit in `echo $ALL_TOOLKITS`; do
11878 var=wxUSE_$toolkit
11879 eval "value=\$${var}"
11880 if test "x$value" != x; then
11881 cache_var=CACHE_$toolkit
11882 eval "cache=\$${cache_var}"
11883 if test "$cache" = 1; then
11884 echo "$var=$value" >> ${wx_arg_cache_file}
f34ca037
MW
11885 eval "version=\$wx${toolkit}_VERSION"
11886 if test "x$version" != "x"; then
11887 echo "wx${toolkit}_VERSION=$version" >> ${wx_arg_cache_file}
11888 fi
a848cd7e
SC
11889 fi
11890 if test "$value" = 1; then
11891 toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
11892 echo "$as_me:$LINENO: result: $toolkit_echo" >&5
11893echo "${ECHO_T}$toolkit_echo" >&6
11894 fi
11895 fi
11896 done
11897else
11898 if test "x$host_alias" != "x"; then
11899 echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
11900echo "${ECHO_T}base ($host_alias hosted) only" >&6
11901 else
11902 echo "$as_me:$LINENO: result: base only" >&5
11903echo "${ECHO_T}base only" >&6
11904 fi
11905fi
11906
8bf7f1a9
VZ
11907
11908cat >confcache <<\_ACEOF
11909# This file is a shell script that caches the results of configure
11910# tests run on this system so they can be shared between configure
11911# scripts and configure runs, see configure's option --config-cache.
11912# It is not useful on other systems. If it contains results you don't
11913# want to keep, you may remove or edit it.
11914#
11915# config.status only pays attention to the cache file if you give it
11916# the --recheck option to rerun configure.
11917#
11918# `ac_cv_env_foo' variables (set or unset) will be overridden when
11919# loading this file, other *unset* `ac_cv_foo' will be assigned the
11920# following values.
11921
11922_ACEOF
11923
11924# The following way of writing the cache mishandles newlines in values,
11925# but we know of no workaround that is simple, portable, and efficient.
11926# So, don't put newlines in cache variables' values.
11927# Ultrix sh set writes to stderr and can't be redirected directly,
11928# and sets the high bit in the cache file unless we assign to the vars.
11929{
11930 (set) 2>&1 |
11931 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11932 *ac_space=\ *)
11933 # `set' does not quote correctly, so add quotes (double-quote
11934 # substitution turns \\\\ into \\, and sed turns \\ into \).
11935 sed -n \
11936 "s/'/'\\\\''/g;
11937 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11938 ;;
11939 *)
11940 # `set' quotes correctly as required by POSIX, so do not add quotes.
11941 sed -n \
11942 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11943 ;;
11944 esac;
11945} |
11946 sed '
11947 t clear
11948 : clear
11949 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11950 t end
11951 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11952 : end' >>confcache
11953if diff $cache_file confcache >/dev/null 2>&1; then :; else
11954 if test -w $cache_file; then
11955 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11956 cat confcache >$cache_file
11957 else
11958 echo "not updating unwritable cache $cache_file"
11959 fi
11960fi
11961rm -f confcache
11962
11963CFLAGS=${CFLAGS:=}
11964
11965
11966
11967 ac_ext=c
a848cd7e
SC
11968ac_cpp='$CPP $CPPFLAGS'
11969ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11970ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11971ac_compiler_gnu=$ac_cv_c_compiler_gnu
11972if test -n "$ac_tool_prefix"; then
11973 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11974set dummy ${ac_tool_prefix}gcc; ac_word=$2
11975echo "$as_me:$LINENO: checking for $ac_word" >&5
11976echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11977if test "${ac_cv_prog_CC+set}" = set; then
11978 echo $ECHO_N "(cached) $ECHO_C" >&6
11979else
11980 if test -n "$CC"; then
11981 ac_cv_prog_CC="$CC" # Let the user override the test.
11982else
11983as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11984for as_dir in $PATH
11985do
11986 IFS=$as_save_IFS
11987 test -z "$as_dir" && as_dir=.
11988 for ac_exec_ext in '' $ac_executable_extensions; do
11989 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11990 ac_cv_prog_CC="${ac_tool_prefix}gcc"
11991 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11992 break 2
11993 fi
11994done
11995done
11996
11997fi
11998fi
11999CC=$ac_cv_prog_CC
12000if test -n "$CC"; then
12001 echo "$as_me:$LINENO: result: $CC" >&5
12002echo "${ECHO_T}$CC" >&6
12003else
12004 echo "$as_me:$LINENO: result: no" >&5
12005echo "${ECHO_T}no" >&6
12006fi
12007
12008fi
12009if test -z "$ac_cv_prog_CC"; then
12010 ac_ct_CC=$CC
12011 # Extract the first word of "gcc", so it can be a program name with args.
12012set dummy gcc; ac_word=$2
12013echo "$as_me:$LINENO: checking for $ac_word" >&5
12014echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12015if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12016 echo $ECHO_N "(cached) $ECHO_C" >&6
12017else
12018 if test -n "$ac_ct_CC"; then
12019 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12020else
12021as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12022for as_dir in $PATH
12023do
12024 IFS=$as_save_IFS
12025 test -z "$as_dir" && as_dir=.
12026 for ac_exec_ext in '' $ac_executable_extensions; do
12027 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12028 ac_cv_prog_ac_ct_CC="gcc"
12029 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12030 break 2
12031 fi
12032done
12033done
12034
12035fi
12036fi
12037ac_ct_CC=$ac_cv_prog_ac_ct_CC
12038if test -n "$ac_ct_CC"; then
12039 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12040echo "${ECHO_T}$ac_ct_CC" >&6
12041else
12042 echo "$as_me:$LINENO: result: no" >&5
12043echo "${ECHO_T}no" >&6
12044fi
12045
12046 CC=$ac_ct_CC
12047else
12048 CC="$ac_cv_prog_CC"
12049fi
12050
12051if test -z "$CC"; then
12052 if test -n "$ac_tool_prefix"; then
12053 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12054set dummy ${ac_tool_prefix}cc; ac_word=$2
12055echo "$as_me:$LINENO: checking for $ac_word" >&5
12056echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12057if test "${ac_cv_prog_CC+set}" = set; then
12058 echo $ECHO_N "(cached) $ECHO_C" >&6
12059else
12060 if test -n "$CC"; then
12061 ac_cv_prog_CC="$CC" # Let the user override the test.
12062else
12063as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12064for as_dir in $PATH
12065do
12066 IFS=$as_save_IFS
12067 test -z "$as_dir" && as_dir=.
12068 for ac_exec_ext in '' $ac_executable_extensions; do
12069 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12070 ac_cv_prog_CC="${ac_tool_prefix}cc"
12071 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12072 break 2
12073 fi
12074done
12075done
12076
12077fi
12078fi
12079CC=$ac_cv_prog_CC
12080if test -n "$CC"; then
12081 echo "$as_me:$LINENO: result: $CC" >&5
12082echo "${ECHO_T}$CC" >&6
12083else
12084 echo "$as_me:$LINENO: result: no" >&5
12085echo "${ECHO_T}no" >&6
12086fi
12087
12088fi
12089if test -z "$ac_cv_prog_CC"; then
12090 ac_ct_CC=$CC
12091 # Extract the first word of "cc", so it can be a program name with args.
12092set dummy cc; ac_word=$2
12093echo "$as_me:$LINENO: checking for $ac_word" >&5
12094echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12095if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12096 echo $ECHO_N "(cached) $ECHO_C" >&6
12097else
12098 if test -n "$ac_ct_CC"; then
12099 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12100else
12101as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12102for as_dir in $PATH
12103do
12104 IFS=$as_save_IFS
12105 test -z "$as_dir" && as_dir=.
12106 for ac_exec_ext in '' $ac_executable_extensions; do
12107 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12108 ac_cv_prog_ac_ct_CC="cc"
12109 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12110 break 2
12111 fi
12112done
12113done
12114
12115fi
12116fi
12117ac_ct_CC=$ac_cv_prog_ac_ct_CC
12118if test -n "$ac_ct_CC"; then
12119 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12120echo "${ECHO_T}$ac_ct_CC" >&6
12121else
12122 echo "$as_me:$LINENO: result: no" >&5
12123echo "${ECHO_T}no" >&6
12124fi
12125
12126 CC=$ac_ct_CC
12127else
12128 CC="$ac_cv_prog_CC"
12129fi
12130
12131fi
12132if test -z "$CC"; then
12133 # Extract the first word of "cc", so it can be a program name with args.
12134set dummy cc; ac_word=$2
12135echo "$as_me:$LINENO: checking for $ac_word" >&5
12136echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12137if test "${ac_cv_prog_CC+set}" = set; then
12138 echo $ECHO_N "(cached) $ECHO_C" >&6
12139else
12140 if test -n "$CC"; then
12141 ac_cv_prog_CC="$CC" # Let the user override the test.
12142else
12143 ac_prog_rejected=no
12144as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12145for as_dir in $PATH
12146do
12147 IFS=$as_save_IFS
12148 test -z "$as_dir" && as_dir=.
12149 for ac_exec_ext in '' $ac_executable_extensions; do
12150 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12151 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12152 ac_prog_rejected=yes
12153 continue
12154 fi
12155 ac_cv_prog_CC="cc"
12156 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12157 break 2
12158 fi
12159done
12160done
12161
12162if test $ac_prog_rejected = yes; then
12163 # We found a bogon in the path, so make sure we never use it.
12164 set dummy $ac_cv_prog_CC
12165 shift
12166 if test $# != 0; then
12167 # We chose a different compiler from the bogus one.
12168 # However, it has the same basename, so the bogon will be chosen
12169 # first if we set CC to just the basename; use the full file name.
12170 shift
12171 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12172 fi
12173fi
12174fi
12175fi
12176CC=$ac_cv_prog_CC
12177if test -n "$CC"; then
12178 echo "$as_me:$LINENO: result: $CC" >&5
12179echo "${ECHO_T}$CC" >&6
12180else
12181 echo "$as_me:$LINENO: result: no" >&5
12182echo "${ECHO_T}no" >&6
12183fi
12184
12185fi
12186if test -z "$CC"; then
12187 if test -n "$ac_tool_prefix"; then
12188 for ac_prog in cl
12189 do
12190 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12191set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12192echo "$as_me:$LINENO: checking for $ac_word" >&5
12193echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12194if test "${ac_cv_prog_CC+set}" = set; then
12195 echo $ECHO_N "(cached) $ECHO_C" >&6
12196else
12197 if test -n "$CC"; then
12198 ac_cv_prog_CC="$CC" # Let the user override the test.
12199else
12200as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12201for as_dir in $PATH
12202do
12203 IFS=$as_save_IFS
12204 test -z "$as_dir" && as_dir=.
12205 for ac_exec_ext in '' $ac_executable_extensions; do
12206 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12207 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12208 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12209 break 2
12210 fi
12211done
12212done
12213
12214fi
12215fi
12216CC=$ac_cv_prog_CC
12217if test -n "$CC"; then
12218 echo "$as_me:$LINENO: result: $CC" >&5
12219echo "${ECHO_T}$CC" >&6
12220else
12221 echo "$as_me:$LINENO: result: no" >&5
12222echo "${ECHO_T}no" >&6
12223fi
12224
12225 test -n "$CC" && break
12226 done
12227fi
12228if test -z "$CC"; then
12229 ac_ct_CC=$CC
12230 for ac_prog in cl
12231do
12232 # Extract the first word of "$ac_prog", so it can be a program name with args.
12233set dummy $ac_prog; ac_word=$2
12234echo "$as_me:$LINENO: checking for $ac_word" >&5
12235echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12236if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12237 echo $ECHO_N "(cached) $ECHO_C" >&6
12238else
12239 if test -n "$ac_ct_CC"; then
12240 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12241else
12242as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12243for as_dir in $PATH
12244do
12245 IFS=$as_save_IFS
12246 test -z "$as_dir" && as_dir=.
12247 for ac_exec_ext in '' $ac_executable_extensions; do
12248 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12249 ac_cv_prog_ac_ct_CC="$ac_prog"
12250 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12251 break 2
12252 fi
12253done
12254done
12255
12256fi
12257fi
12258ac_ct_CC=$ac_cv_prog_ac_ct_CC
12259if test -n "$ac_ct_CC"; then
12260 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12261echo "${ECHO_T}$ac_ct_CC" >&6
12262else
12263 echo "$as_me:$LINENO: result: no" >&5
12264echo "${ECHO_T}no" >&6
12265fi
12266
12267 test -n "$ac_ct_CC" && break
12268done
12269
12270 CC=$ac_ct_CC
12271fi
12272
12273fi
12274
12275
12276test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
12277See \`config.log' for more details." >&5
12278echo "$as_me: error: no acceptable C compiler found in \$PATH
12279See \`config.log' for more details." >&2;}
12280 { (exit 1); exit 1; }; }
12281
12282# Provide some information about the compiler.
12283echo "$as_me:$LINENO:" \
12284 "checking for C compiler version" >&5
12285ac_compiler=`set X $ac_compile; echo $2`
12286{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
12287 (eval $ac_compiler --version </dev/null >&5) 2>&5
12288 ac_status=$?
12289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12290 (exit $ac_status); }
12291{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
12292 (eval $ac_compiler -v </dev/null >&5) 2>&5
12293 ac_status=$?
12294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12295 (exit $ac_status); }
12296{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
12297 (eval $ac_compiler -V </dev/null >&5) 2>&5
12298 ac_status=$?
12299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12300 (exit $ac_status); }
12301
12302cat >conftest.$ac_ext <<_ACEOF
12303/* confdefs.h. */
12304_ACEOF
12305cat confdefs.h >>conftest.$ac_ext
12306cat >>conftest.$ac_ext <<_ACEOF
12307/* end confdefs.h. */
12308
12309int
12310main ()
12311{
12312
12313 ;
12314 return 0;
12315}
12316_ACEOF
12317ac_clean_files_save=$ac_clean_files
12318ac_clean_files="$ac_clean_files a.out a.exe b.out"
12319# Try to create an executable without -o first, disregard a.out.
12320# It will help us diagnose broken compilers, and finding out an intuition
12321# of exeext.
ac1cb8d3
VS
12322echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
12323echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
a848cd7e
SC
12324ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
12325if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
12326 (eval $ac_link_default) 2>&5
12327 ac_status=$?
12328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12329 (exit $ac_status); }; then
12330 # Find the output, starting from the most likely. This scheme is
12331# not robust to junk in `.', hence go to wildcards (a.*) only as a last
12332# resort.
12333
12334# Be careful to initialize this variable, since it used to be cached.
12335# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
12336ac_cv_exeext=
12337# b.out is created by i960 compilers.
12338for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
12339do
12340 test -f "$ac_file" || continue
12341 case $ac_file in
12342 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
ac1cb8d3 12343 ;;
a848cd7e 12344 conftest.$ac_ext )
ac1cb8d3
VS
12345 # This is the source file.
12346 ;;
a848cd7e 12347 [ab].out )
ac1cb8d3
VS
12348 # We found the default executable, but exeext='' is most
12349 # certainly right.
12350 break;;
a848cd7e 12351 *.* )
ac1cb8d3
VS
12352 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
12353 # FIXME: I believe we export ac_cv_exeext for Libtool,
12354 # but it would be cool to find out if it's true. Does anybody
12355 # maintain Libtool? --akim.
12356 export ac_cv_exeext
12357 break;;
a848cd7e 12358 * )
ac1cb8d3 12359 break;;
a848cd7e
SC
12360 esac
12361done
12362else
12363 echo "$as_me: failed program was:" >&5
12364sed 's/^/| /' conftest.$ac_ext >&5
12365
12366{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
12367See \`config.log' for more details." >&5
12368echo "$as_me: error: C compiler cannot create executables
12369See \`config.log' for more details." >&2;}
12370 { (exit 77); exit 77; }; }
12371fi
12372
12373ac_exeext=$ac_cv_exeext
12374echo "$as_me:$LINENO: result: $ac_file" >&5
12375echo "${ECHO_T}$ac_file" >&6
12376
12377# Check the compiler produces executables we can run. If not, either
12378# the compiler is broken, or we cross compile.
12379echo "$as_me:$LINENO: checking whether the C compiler works" >&5
12380echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
12381# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
12382# If not cross compiling, check that we can run a simple program.
12383if test "$cross_compiling" != yes; then
12384 if { ac_try='./$ac_file'
12385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12386 (eval $ac_try) 2>&5
12387 ac_status=$?
12388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12389 (exit $ac_status); }; }; then
12390 cross_compiling=no
12391 else
12392 if test "$cross_compiling" = maybe; then
12393 cross_compiling=yes
12394 else
12395 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
12396If you meant to cross compile, use \`--host'.
12397See \`config.log' for more details." >&5
12398echo "$as_me: error: cannot run C compiled programs.
12399If you meant to cross compile, use \`--host'.
12400See \`config.log' for more details." >&2;}
12401 { (exit 1); exit 1; }; }
12402 fi
12403 fi
12404fi
12405echo "$as_me:$LINENO: result: yes" >&5
12406echo "${ECHO_T}yes" >&6
12407
12408rm -f a.out a.exe conftest$ac_cv_exeext b.out
12409ac_clean_files=$ac_clean_files_save
12410# Check the compiler produces executables we can run. If not, either
12411# the compiler is broken, or we cross compile.
12412echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
12413echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
12414echo "$as_me:$LINENO: result: $cross_compiling" >&5
12415echo "${ECHO_T}$cross_compiling" >&6
12416
12417echo "$as_me:$LINENO: checking for suffix of executables" >&5
12418echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
12419if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12420 (eval $ac_link) 2>&5
12421 ac_status=$?
12422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12423 (exit $ac_status); }; then
12424 # If both `conftest.exe' and `conftest' are `present' (well, observable)
12425# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
12426# work properly (i.e., refer to `conftest.exe'), while it won't with
12427# `rm'.
12428for ac_file in conftest.exe conftest conftest.*; do
12429 test -f "$ac_file" || continue
12430 case $ac_file in
12431 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
12432 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
ac1cb8d3
VS
12433 export ac_cv_exeext
12434 break;;
8bf7f1a9
VZ
12435 * ) break;;
12436 esac
6da4ac91 12437done
6da4ac91 12438else
8bf7f1a9
VZ
12439 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
12440See \`config.log' for more details." >&5
12441echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
12442See \`config.log' for more details." >&2;}
12443 { (exit 1); exit 1; }; }
6da4ac91
VZ
12444fi
12445
8bf7f1a9
VZ
12446rm -f conftest$ac_cv_exeext
12447echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
12448echo "${ECHO_T}$ac_cv_exeext" >&6
12449
12450rm -f conftest.$ac_ext
12451EXEEXT=$ac_cv_exeext
12452ac_exeext=$EXEEXT
12453echo "$as_me:$LINENO: checking for suffix of object files" >&5
12454echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
12455if test "${ac_cv_objext+set}" = set; then
6da4ac91
VZ
12456 echo $ECHO_N "(cached) $ECHO_C" >&6
12457else
8bf7f1a9
VZ
12458 cat >conftest.$ac_ext <<_ACEOF
12459/* confdefs.h. */
12460_ACEOF
12461cat confdefs.h >>conftest.$ac_ext
12462cat >>conftest.$ac_ext <<_ACEOF
12463/* end confdefs.h. */
6da4ac91 12464
8bf7f1a9
VZ
12465int
12466main ()
12467{
6da4ac91 12468
8bf7f1a9
VZ
12469 ;
12470 return 0;
12471}
12472_ACEOF
12473rm -f conftest.o conftest.obj
12474if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12475 (eval $ac_compile) 2>&5
12476 ac_status=$?
12477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12478 (exit $ac_status); }; then
12479 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
12480 case $ac_file in
12481 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
12482 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
12483 break;;
12484 esac
6da4ac91 12485done
8bf7f1a9
VZ
12486else
12487 echo "$as_me: failed program was:" >&5
12488sed 's/^/| /' conftest.$ac_ext >&5
6da4ac91 12489
8bf7f1a9 12490{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
6da4ac91 12491See \`config.log' for more details." >&5
8bf7f1a9 12492echo "$as_me: error: cannot compute suffix of object files: cannot compile
6da4ac91
VZ
12493See \`config.log' for more details." >&2;}
12494 { (exit 1); exit 1; }; }
8bf7f1a9 12495fi
6da4ac91 12496
8bf7f1a9
VZ
12497rm -f conftest.$ac_cv_objext conftest.$ac_ext
12498fi
12499echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
12500echo "${ECHO_T}$ac_cv_objext" >&6
12501OBJEXT=$ac_cv_objext
12502ac_objext=$OBJEXT
6da4ac91
VZ
12503echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
12504echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
12505if test "${ac_cv_c_compiler_gnu+set}" = set; then
12506 echo $ECHO_N "(cached) $ECHO_C" >&6
12507else
12508 cat >conftest.$ac_ext <<_ACEOF
12509/* confdefs.h. */
12510_ACEOF
12511cat confdefs.h >>conftest.$ac_ext
12512cat >>conftest.$ac_ext <<_ACEOF
12513/* end confdefs.h. */
12514
12515int
12516main ()
12517{
12518#ifndef __GNUC__
12519 choke me
12520#endif
12521
12522 ;
12523 return 0;
12524}
12525_ACEOF
12526rm -f conftest.$ac_objext
12527if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12528 (eval $ac_compile) 2>conftest.er1
12529 ac_status=$?
12530 grep -v '^ *+' conftest.er1 >conftest.err
12531 rm -f conftest.er1
12532 cat conftest.err >&5
12533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12534 (exit $ac_status); } &&
12535 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12537 (eval $ac_try) 2>&5
12538 ac_status=$?
12539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12540 (exit $ac_status); }; } &&
12541 { ac_try='test -s conftest.$ac_objext'
12542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12543 (eval $ac_try) 2>&5
12544 ac_status=$?
12545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12546 (exit $ac_status); }; }; then
12547 ac_compiler_gnu=yes
12548else
12549 echo "$as_me: failed program was:" >&5
12550sed 's/^/| /' conftest.$ac_ext >&5
12551
12552ac_compiler_gnu=no
12553fi
12554rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12555ac_cv_c_compiler_gnu=$ac_compiler_gnu
12556
12557fi
12558echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
12559echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
12560GCC=`test $ac_compiler_gnu = yes && echo yes`
12561ac_test_CFLAGS=${CFLAGS+set}
12562ac_save_CFLAGS=$CFLAGS
12563CFLAGS="-g"
12564echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12565echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
12566if test "${ac_cv_prog_cc_g+set}" = set; then
12567 echo $ECHO_N "(cached) $ECHO_C" >&6
12568else
12569 cat >conftest.$ac_ext <<_ACEOF
12570/* confdefs.h. */
12571_ACEOF
12572cat confdefs.h >>conftest.$ac_ext
12573cat >>conftest.$ac_ext <<_ACEOF
12574/* end confdefs.h. */
12575
12576int
12577main ()
12578{
12579
12580 ;
12581 return 0;
12582}
12583_ACEOF
12584rm -f conftest.$ac_objext
12585if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12586 (eval $ac_compile) 2>conftest.er1
12587 ac_status=$?
12588 grep -v '^ *+' conftest.er1 >conftest.err
12589 rm -f conftest.er1
12590 cat conftest.err >&5
12591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12592 (exit $ac_status); } &&
12593 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12595 (eval $ac_try) 2>&5
12596 ac_status=$?
12597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12598 (exit $ac_status); }; } &&
12599 { ac_try='test -s conftest.$ac_objext'
12600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12601 (eval $ac_try) 2>&5
12602 ac_status=$?
12603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12604 (exit $ac_status); }; }; then
12605 ac_cv_prog_cc_g=yes
12606else
12607 echo "$as_me: failed program was:" >&5
12608sed 's/^/| /' conftest.$ac_ext >&5
12609
12610ac_cv_prog_cc_g=no
12611fi
12612rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12613fi
12614echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12615echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
12616if test "$ac_test_CFLAGS" = set; then
12617 CFLAGS=$ac_save_CFLAGS
12618elif test $ac_cv_prog_cc_g = yes; then
12619 if test "$GCC" = yes; then
12620 CFLAGS="-g -O2"
12621 else
12622 CFLAGS="-g"
12623 fi
12624else
12625 if test "$GCC" = yes; then
12626 CFLAGS="-O2"
12627 else
12628 CFLAGS=
12629 fi
12630fi
12631echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
12632echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
12633if test "${ac_cv_prog_cc_stdc+set}" = set; then
12634 echo $ECHO_N "(cached) $ECHO_C" >&6
12635else
12636 ac_cv_prog_cc_stdc=no
12637ac_save_CC=$CC
12638cat >conftest.$ac_ext <<_ACEOF
12639/* confdefs.h. */
12640_ACEOF
12641cat confdefs.h >>conftest.$ac_ext
12642cat >>conftest.$ac_ext <<_ACEOF
12643/* end confdefs.h. */
12644#include <stdarg.h>
12645#include <stdio.h>
12646#include <sys/types.h>
12647#include <sys/stat.h>
12648/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
12649struct buf { int x; };
12650FILE * (*rcsopen) (struct buf *, struct stat *, int);
12651static char *e (p, i)
12652 char **p;
12653 int i;
12654{
12655 return p[i];
12656}
12657static char *f (char * (*g) (char **, int), char **p, ...)
12658{
12659 char *s;
12660 va_list v;
12661 va_start (v,p);
12662 s = g (p, va_arg (v,int));
12663 va_end (v);
12664 return s;
12665}
12666
12667/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
12668 function prototypes and stuff, but not '\xHH' hex character constants.
12669 These don't provoke an error unfortunately, instead are silently treated
12670 as 'x'. The following induces an error, until -std1 is added to get
12671 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
12672 array size at least. It's necessary to write '\x00'==0 to get something
12673 that's true only with -std1. */
12674int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12675
12676int test (int i, double x);
12677struct s1 {int (*f) (int a);};
12678struct s2 {int (*f) (double a);};
12679int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12680int argc;
12681char **argv;
12682int
12683main ()
12684{
12685return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
12686 ;
12687 return 0;
12688}
12689_ACEOF
12690# Don't try gcc -ansi; that turns off useful extensions and
12691# breaks some systems' header files.
12692# AIX -qlanglvl=ansi
12693# Ultrix and OSF/1 -std1
12694# HP-UX 10.20 and later -Ae
12695# HP-UX older versions -Aa -D_HPUX_SOURCE
12696# SVR4 -Xc -D__EXTENSIONS__
12697for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12698do
12699 CC="$ac_save_CC $ac_arg"
12700 rm -f conftest.$ac_objext
12701if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12702 (eval $ac_compile) 2>conftest.er1
12703 ac_status=$?
12704 grep -v '^ *+' conftest.er1 >conftest.err
12705 rm -f conftest.er1
12706 cat conftest.err >&5
12707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12708 (exit $ac_status); } &&
12709 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12711 (eval $ac_try) 2>&5
12712 ac_status=$?
12713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12714 (exit $ac_status); }; } &&
12715 { ac_try='test -s conftest.$ac_objext'
12716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12717 (eval $ac_try) 2>&5
12718 ac_status=$?
12719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12720 (exit $ac_status); }; }; then
12721 ac_cv_prog_cc_stdc=$ac_arg
12722break
12723else
12724 echo "$as_me: failed program was:" >&5
12725sed 's/^/| /' conftest.$ac_ext >&5
12726
12727fi
12728rm -f conftest.err conftest.$ac_objext
12729done
12730rm -f conftest.$ac_ext conftest.$ac_objext
12731CC=$ac_save_CC
12732
12733fi
12734
12735case "x$ac_cv_prog_cc_stdc" in
12736 x|xno)
12737 echo "$as_me:$LINENO: result: none needed" >&5
12738echo "${ECHO_T}none needed" >&6 ;;
12739 *)
12740 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
12741echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
12742 CC="$CC $ac_cv_prog_cc_stdc" ;;
12743esac
12744
12745# Some people use a C++ compiler to compile C. Since we use `exit',
12746# in C++ we need to declare it. In case someone uses the same compiler
12747# for both compiling C and C++ we need to have the C++ compiler decide
12748# the declaration of exit, since it's the most demanding environment.
12749cat >conftest.$ac_ext <<_ACEOF
12750#ifndef __cplusplus
12751 choke me
12752#endif
12753_ACEOF
12754rm -f conftest.$ac_objext
12755if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12756 (eval $ac_compile) 2>conftest.er1
12757 ac_status=$?
12758 grep -v '^ *+' conftest.er1 >conftest.err
12759 rm -f conftest.er1
12760 cat conftest.err >&5
12761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12762 (exit $ac_status); } &&
12763 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12765 (eval $ac_try) 2>&5
12766 ac_status=$?
12767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12768 (exit $ac_status); }; } &&
12769 { ac_try='test -s conftest.$ac_objext'
12770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12771 (eval $ac_try) 2>&5
12772 ac_status=$?
12773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12774 (exit $ac_status); }; }; then
12775 for ac_declaration in \
12776 '' \
12777 'extern "C" void std::exit (int) throw (); using std::exit;' \
12778 'extern "C" void std::exit (int); using std::exit;' \
12779 'extern "C" void exit (int) throw ();' \
12780 'extern "C" void exit (int);' \
12781 'void exit (int);'
12782do
12783 cat >conftest.$ac_ext <<_ACEOF
12784/* confdefs.h. */
12785_ACEOF
12786cat confdefs.h >>conftest.$ac_ext
12787cat >>conftest.$ac_ext <<_ACEOF
12788/* end confdefs.h. */
12789$ac_declaration
12790#include <stdlib.h>
12791int
12792main ()
12793{
12794exit (42);
12795 ;
12796 return 0;
12797}
12798_ACEOF
12799rm -f conftest.$ac_objext
12800if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12801 (eval $ac_compile) 2>conftest.er1
12802 ac_status=$?
12803 grep -v '^ *+' conftest.er1 >conftest.err
12804 rm -f conftest.er1
12805 cat conftest.err >&5
12806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12807 (exit $ac_status); } &&
12808 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12810 (eval $ac_try) 2>&5
12811 ac_status=$?
12812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12813 (exit $ac_status); }; } &&
12814 { ac_try='test -s conftest.$ac_objext'
12815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12816 (eval $ac_try) 2>&5
12817 ac_status=$?
12818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12819 (exit $ac_status); }; }; then
12820 :
12821else
12822 echo "$as_me: failed program was:" >&5
12823sed 's/^/| /' conftest.$ac_ext >&5
12824
12825continue
12826fi
12827rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12828 cat >conftest.$ac_ext <<_ACEOF
12829/* confdefs.h. */
12830_ACEOF
12831cat confdefs.h >>conftest.$ac_ext
12832cat >>conftest.$ac_ext <<_ACEOF
12833/* end confdefs.h. */
12834$ac_declaration
12835int
12836main ()
12837{
12838exit (42);
12839 ;
12840 return 0;
12841}
12842_ACEOF
12843rm -f conftest.$ac_objext
12844if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12845 (eval $ac_compile) 2>conftest.er1
12846 ac_status=$?
12847 grep -v '^ *+' conftest.er1 >conftest.err
12848 rm -f conftest.er1
12849 cat conftest.err >&5
12850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12851 (exit $ac_status); } &&
12852 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12854 (eval $ac_try) 2>&5
12855 ac_status=$?
12856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12857 (exit $ac_status); }; } &&
12858 { ac_try='test -s conftest.$ac_objext'
12859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12860 (eval $ac_try) 2>&5
12861 ac_status=$?
12862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12863 (exit $ac_status); }; }; then
12864 break
12865else
12866 echo "$as_me: failed program was:" >&5
12867sed 's/^/| /' conftest.$ac_ext >&5
12868
12869fi
12870rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12871done
12872rm -f conftest*
12873if test -n "$ac_declaration"; then
12874 echo '#ifdef __cplusplus' >>confdefs.h
12875 echo $ac_declaration >>confdefs.h
12876 echo '#endif' >>confdefs.h
12877fi
12878
12879else
12880 echo "$as_me: failed program was:" >&5
12881sed 's/^/| /' conftest.$ac_ext >&5
12882
12883fi
12884rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12885ac_ext=c
12886ac_cpp='$CPP $CPPFLAGS'
12887ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12888ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12889ac_compiler_gnu=$ac_cv_c_compiler_gnu
12890
12891
ab0ad5f1
VZ
12892
12893 ac_ext=c
12894ac_cpp='$CPP $CPPFLAGS'
12895ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12896ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12897ac_compiler_gnu=$ac_cv_c_compiler_gnu
12898
12899 echo "$as_me:$LINENO: checking whether we are using the Intel C compiler" >&5
12900echo $ECHO_N "checking whether we are using the Intel C compiler... $ECHO_C" >&6
12901if test "${bakefile_cv_c_compiler___INTEL_COMPILER+set}" = set; then
12902 echo $ECHO_N "(cached) $ECHO_C" >&6
12903else
12904 cat >conftest.$ac_ext <<_ACEOF
12905/* confdefs.h. */
12906_ACEOF
12907cat confdefs.h >>conftest.$ac_ext
12908cat >>conftest.$ac_ext <<_ACEOF
12909/* end confdefs.h. */
12910
12911int
12912main ()
12913{
12914
12915 #ifndef __INTEL_COMPILER
12916 choke me
12917 #endif
12918
12919 ;
12920 return 0;
12921}
12922_ACEOF
12923rm -f conftest.$ac_objext
12924if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12925 (eval $ac_compile) 2>conftest.er1
12926 ac_status=$?
12927 grep -v '^ *+' conftest.er1 >conftest.err
12928 rm -f conftest.er1
12929 cat conftest.err >&5
12930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12931 (exit $ac_status); } &&
bb9e79c0 12932 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ab0ad5f1
VZ
12933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12934 (eval $ac_try) 2>&5
12935 ac_status=$?
12936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12937 (exit $ac_status); }; } &&
12938 { ac_try='test -s conftest.$ac_objext'
12939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12940 (eval $ac_try) 2>&5
12941 ac_status=$?
12942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12943 (exit $ac_status); }; }; then
12944 bakefile_cv_c_compiler___INTEL_COMPILER=yes
12945else
12946 echo "$as_me: failed program was:" >&5
12947sed 's/^/| /' conftest.$ac_ext >&5
12948
12949bakefile_cv_c_compiler___INTEL_COMPILER=no
12950
12951fi
12952rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12953
12954
12955fi
12956echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER" >&5
12957echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER" >&6
12958 ac_ext=c
12959ac_cpp='$CPP $CPPFLAGS'
12960ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12961ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12962ac_compiler_gnu=$ac_cv_c_compiler_gnu
12963
12964 if test "x$bakefile_cv_c_compiler___INTEL_COMPILER" = "xyes"; then
12965 :; INTELCC=yes
12966 else
12967 :;
12968 fi
12969
12970
12971 if test "x$GCC" != "xyes"; then
3006edc0
VZ
12972 if test "xCC" = "xC"; then
12973 echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
480ccd21 12974echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6
0093c2fc 12975if test "${bakefile_cv_c_exto+set}" = set; then
480ccd21
DE
12976 echo $ECHO_N "(cached) $ECHO_C" >&6
12977else
12978 cat >conftest.$ac_ext <<_ACEOF
12979/* confdefs.h. */
12980_ACEOF
12981cat confdefs.h >>conftest.$ac_ext
12982cat >>conftest.$ac_ext <<_ACEOF
12983/* end confdefs.h. */
12984
12985int
12986main ()
12987{
12988
12989 ;
12990 return 0;
12991}
12992_ACEOF
12993rm -f conftest.$ac_objext conftest.$ac_ext.o
12994if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12995 (eval $ac_compile) 2>&5
12996 ac_status=$?
12997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12998 (exit $ac_status); }; then
12999 for ac_file in `(ls conftest.* 2>/dev/null)`; do
13000 case $ac_file in
13001 conftest.$ac_ext.o)
0093c2fc 13002 bakefile_cv_c_exto="-ext o"
480ccd21
DE
13003 ;;
13004 *)
13005 ;;
13006 esac
13007done
13008else
13009 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
13010See \`config.log' for more details." >&5
13011echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
13012See \`config.log' for more details." >&2;}
13013 { (exit 1); exit 1; }; }
13014
13015fi
13016
13017rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
13018
13019fi
0093c2fc
VZ
13020echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5
13021echo "${ECHO_T}$bakefile_cv_c_exto" >&6
13022if test "x$bakefile_cv_c_exto" '!=' "x"; then
480ccd21 13023 if test "c" = "c"; then
0093c2fc 13024 CFLAGS="$bakefile_cv_c_exto $CFLAGS"
480ccd21
DE
13025 fi
13026 if test "c" = "cxx"; then
0093c2fc 13027 CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS"
480ccd21
DE
13028 fi
13029fi
13030
0093c2fc 13031 if test "x$bakefile_cv_c_exto" '!=' "x"; then
3006edc0
VZ
13032 unset ac_cv_prog_cc_g
13033 ac_test_CFLAGS=${CFLAGS+set}
480ccd21 13034ac_save_CFLAGS=$CFLAGS
15291213 13035CFLAGS="-g"
480ccd21
DE
13036echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
13037echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
13038if test "${ac_cv_prog_cc_g+set}" = set; then
13039 echo $ECHO_N "(cached) $ECHO_C" >&6
13040else
13041 cat >conftest.$ac_ext <<_ACEOF
13042/* confdefs.h. */
13043_ACEOF
13044cat confdefs.h >>conftest.$ac_ext
13045cat >>conftest.$ac_ext <<_ACEOF
13046/* end confdefs.h. */
13047
13048int
13049main ()
13050{
13051
13052 ;
13053 return 0;
13054}
13055_ACEOF
13056rm -f conftest.$ac_objext
13057if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13058 (eval $ac_compile) 2>conftest.er1
13059 ac_status=$?
13060 grep -v '^ *+' conftest.er1 >conftest.err
13061 rm -f conftest.er1
13062 cat conftest.err >&5
13063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13064 (exit $ac_status); } &&
bb9e79c0 13065 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
480ccd21
DE
13066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13067 (eval $ac_try) 2>&5
13068 ac_status=$?
13069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13070 (exit $ac_status); }; } &&
13071 { ac_try='test -s conftest.$ac_objext'
13072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13073 (eval $ac_try) 2>&5
13074 ac_status=$?
13075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13076 (exit $ac_status); }; }; then
13077 ac_cv_prog_cc_g=yes
13078else
13079 echo "$as_me: failed program was:" >&5
13080sed 's/^/| /' conftest.$ac_ext >&5
13081
13082ac_cv_prog_cc_g=no
13083fi
13084rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13085fi
13086echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
13087echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
13088if test "$ac_test_CFLAGS" = set; then
13089 CFLAGS=$ac_save_CFLAGS
13090elif test $ac_cv_prog_cc_g = yes; then
13091 if test "$GCC" = yes; then
13092 CFLAGS="-g -O2"
13093 else
13094 CFLAGS="-g"
13095 fi
13096else
13097 if test "$GCC" = yes; then
13098 CFLAGS="-O2"
13099 else
13100 CFLAGS=
13101 fi
13102fi
3006edc0 13103 fi
ab0ad5f1 13104 fi
3006edc0
VZ
13105
13106 case `uname -s` in
13107 AIX*)
13108 ac_ext=c
13109ac_cpp='$CPP $CPPFLAGS'
13110ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13111ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13112ac_compiler_gnu=$ac_cv_c_compiler_gnu
13113
13114echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
13115echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6
0093c2fc 13116if test "${bakefile_cv_c_compiler_xlc+set}" = set; then
3006edc0
VZ
13117 echo $ECHO_N "(cached) $ECHO_C" >&6
13118else
13119 cat >conftest.$ac_ext <<_ACEOF
13120/* confdefs.h. */
13121_ACEOF
13122cat confdefs.h >>conftest.$ac_ext
13123cat >>conftest.$ac_ext <<_ACEOF
13124/* end confdefs.h. */
13125
13126int
13127main ()
13128{
13129#ifndef __xlC__
13130 choke me
13131#endif
13132
13133 ;
13134 return 0;
13135}
13136_ACEOF
13137rm -f conftest.$ac_objext
13138if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13139 (eval $ac_compile) 2>conftest.er1
13140 ac_status=$?
13141 grep -v '^ *+' conftest.er1 >conftest.err
13142 rm -f conftest.er1
13143 cat conftest.err >&5
13144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13145 (exit $ac_status); } &&
bb9e79c0 13146 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3006edc0
VZ
13147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13148 (eval $ac_try) 2>&5
13149 ac_status=$?
13150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13151 (exit $ac_status); }; } &&
13152 { ac_try='test -s conftest.$ac_objext'
13153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13154 (eval $ac_try) 2>&5
13155 ac_status=$?
13156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13157 (exit $ac_status); }; }; then
0093c2fc 13158 bakefile_compiler_xlc=yes
3006edc0
VZ
13159else
13160 echo "$as_me: failed program was:" >&5
13161sed 's/^/| /' conftest.$ac_ext >&5
13162
0093c2fc 13163bakefile_compiler_xlc=no
3006edc0
VZ
13164fi
13165rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 13166 bakefile_cv_c_compiler_xlc=$bakefile_compiler_xlc
3006edc0
VZ
13167
13168fi
0093c2fc
VZ
13169echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_xlc" >&5
13170echo "${ECHO_T}$bakefile_cv_c_compiler_xlc" >&6
3006edc0 13171
0093c2fc 13172XLCC=`test $bakefile_cv_c_compiler_xlc = yes && echo yes`
3006edc0
VZ
13173ac_ext=c
13174ac_cpp='$CPP $CPPFLAGS'
13175ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13176ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13177ac_compiler_gnu=$ac_cv_c_compiler_gnu
13178
13179
13180 ;;
13181
13182 Darwin)
13183 ac_ext=c
95986553
DE
13184ac_cpp='$CPP $CPPFLAGS'
13185ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13186ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13187ac_compiler_gnu=$ac_cv_c_compiler_gnu
13188
13189echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5
13190echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6
13191if test "${bakefile_cv_c_compiler_mwerks+set}" = set; then
13192 echo $ECHO_N "(cached) $ECHO_C" >&6
13193else
13194 cat >conftest.$ac_ext <<_ACEOF
13195/* confdefs.h. */
13196_ACEOF
13197cat confdefs.h >>conftest.$ac_ext
13198cat >>conftest.$ac_ext <<_ACEOF
13199/* end confdefs.h. */
13200
13201int
13202main ()
13203{
13204#ifndef __MWERKS__
13205 choke me
13206#endif
13207
13208 ;
13209 return 0;
13210}
13211_ACEOF
13212rm -f conftest.$ac_objext
13213if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13214 (eval $ac_compile) 2>conftest.er1
13215 ac_status=$?
13216 grep -v '^ *+' conftest.er1 >conftest.err
13217 rm -f conftest.er1
13218 cat conftest.err >&5
13219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13220 (exit $ac_status); } &&
bb9e79c0 13221 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
95986553
DE
13222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13223 (eval $ac_try) 2>&5
13224 ac_status=$?
13225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13226 (exit $ac_status); }; } &&
13227 { ac_try='test -s conftest.$ac_objext'
13228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13229 (eval $ac_try) 2>&5
13230 ac_status=$?
13231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13232 (exit $ac_status); }; }; then
13233 bakefile_compiler_mwerks=yes
13234else
13235 echo "$as_me: failed program was:" >&5
13236sed 's/^/| /' conftest.$ac_ext >&5
13237
13238bakefile_compiler_mwerks=no
13239fi
13240rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13241 bakefile_cv_c_compiler_mwerks=$bakefile_compiler_mwerks
13242
13243fi
13244echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_mwerks" >&5
13245echo "${ECHO_T}$bakefile_cv_c_compiler_mwerks" >&6
13246
0e6fa1d9 13247MWCC=`test $bakefile_cv_c_compiler_mwerks = yes && echo yes`
95986553
DE
13248ac_ext=c
13249ac_cpp='$CPP $CPPFLAGS'
13250ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13251ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13252ac_compiler_gnu=$ac_cv_c_compiler_gnu
13253
13254
3006edc0 13255 ac_ext=c
9273ffba
DE
13256ac_cpp='$CPP $CPPFLAGS'
13257ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13258ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13259ac_compiler_gnu=$ac_cv_c_compiler_gnu
13260
13261echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
13262echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6
0093c2fc 13263if test "${bakefile_cv_c_compiler_xlc+set}" = set; then
9273ffba
DE
13264 echo $ECHO_N "(cached) $ECHO_C" >&6
13265else
13266 cat >conftest.$ac_ext <<_ACEOF
13267/* confdefs.h. */
13268_ACEOF
13269cat confdefs.h >>conftest.$ac_ext
13270cat >>conftest.$ac_ext <<_ACEOF
13271/* end confdefs.h. */
13272
13273int
13274main ()
13275{
13276#ifndef __xlC__
13277 choke me
13278#endif
13279
13280 ;
13281 return 0;
13282}
13283_ACEOF
13284rm -f conftest.$ac_objext
13285if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13286 (eval $ac_compile) 2>conftest.er1
13287 ac_status=$?
13288 grep -v '^ *+' conftest.er1 >conftest.err
13289 rm -f conftest.er1
13290 cat conftest.err >&5
13291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13292 (exit $ac_status); } &&
bb9e79c0 13293 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9273ffba
DE
13294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13295 (eval $ac_try) 2>&5
13296 ac_status=$?
13297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13298 (exit $ac_status); }; } &&
13299 { ac_try='test -s conftest.$ac_objext'
13300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13301 (eval $ac_try) 2>&5
13302 ac_status=$?
13303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13304 (exit $ac_status); }; }; then
0093c2fc 13305 bakefile_compiler_xlc=yes
9273ffba
DE
13306else
13307 echo "$as_me: failed program was:" >&5
13308sed 's/^/| /' conftest.$ac_ext >&5
13309
0093c2fc 13310bakefile_compiler_xlc=no
9273ffba
DE
13311fi
13312rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 13313 bakefile_cv_c_compiler_xlc=$bakefile_compiler_xlc
9273ffba
DE
13314
13315fi
0093c2fc
VZ
13316echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_xlc" >&5
13317echo "${ECHO_T}$bakefile_cv_c_compiler_xlc" >&6
9273ffba 13318
0093c2fc 13319XLCC=`test $bakefile_cv_c_compiler_xlc = yes && echo yes`
9273ffba
DE
13320ac_ext=c
13321ac_cpp='$CPP $CPPFLAGS'
13322ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13323ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13324ac_compiler_gnu=$ac_cv_c_compiler_gnu
13325
13326
3006edc0
VZ
13327 ;;
13328
13329 IRIX*)
a848cd7e 13330
6dcfc289 13331
0ad5d837
VZ
13332 ac_ext=c
13333ac_cpp='$CPP $CPPFLAGS'
13334ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13335ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13336ac_compiler_gnu=$ac_cv_c_compiler_gnu
13337
13338 echo "$as_me:$LINENO: checking whether we are using the SGI C compiler" >&5
13339echo $ECHO_N "checking whether we are using the SGI C compiler... $ECHO_C" >&6
13340if test "${bakefile_cv_c_compiler__SGI_COMPILER_VERSION+set}" = set; then
13341 echo $ECHO_N "(cached) $ECHO_C" >&6
13342else
13343 cat >conftest.$ac_ext <<_ACEOF
13344/* confdefs.h. */
13345_ACEOF
13346cat confdefs.h >>conftest.$ac_ext
13347cat >>conftest.$ac_ext <<_ACEOF
13348/* end confdefs.h. */
13349
13350int
13351main ()
13352{
13353
13354 #ifndef _SGI_COMPILER_VERSION
13355 choke me
13356 #endif
13357
13358 ;
13359 return 0;
13360}
13361_ACEOF
13362rm -f conftest.$ac_objext
13363if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13364 (eval $ac_compile) 2>conftest.er1
13365 ac_status=$?
13366 grep -v '^ *+' conftest.er1 >conftest.err
13367 rm -f conftest.er1
13368 cat conftest.err >&5
13369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13370 (exit $ac_status); } &&
bb9e79c0 13371 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
0ad5d837
VZ
13372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13373 (eval $ac_try) 2>&5
13374 ac_status=$?
13375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13376 (exit $ac_status); }; } &&
13377 { ac_try='test -s conftest.$ac_objext'
13378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13379 (eval $ac_try) 2>&5
13380 ac_status=$?
13381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13382 (exit $ac_status); }; }; then
13383 bakefile_cv_c_compiler__SGI_COMPILER_VERSION=yes
13384else
13385 echo "$as_me: failed program was:" >&5
13386sed 's/^/| /' conftest.$ac_ext >&5
13387
13388bakefile_cv_c_compiler__SGI_COMPILER_VERSION=no
13389
13390fi
13391rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13392
13393
13394fi
13395echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&5
13396echo "${ECHO_T}$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&6
13397 ac_ext=c
13398ac_cpp='$CPP $CPPFLAGS'
13399ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13400ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13401ac_compiler_gnu=$ac_cv_c_compiler_gnu
13402
13403 if test "x$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" = "xyes"; then
13404 :; SGICC=yes
13405 else
13406 :;
13407 fi
13408
13409
3006edc0
VZ
13410 ;;
13411
0093c2fc 13412 HP-UX*)
3006edc0
VZ
13413
13414
13415 ac_ext=c
13416ac_cpp='$CPP $CPPFLAGS'
13417ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13418ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13419ac_compiler_gnu=$ac_cv_c_compiler_gnu
13420
0093c2fc
VZ
13421 echo "$as_me:$LINENO: checking whether we are using the HP C compiler" >&5
13422echo $ECHO_N "checking whether we are using the HP C compiler... $ECHO_C" >&6
13423if test "${bakefile_cv_c_compiler___HP_cc+set}" = set; then
3006edc0
VZ
13424 echo $ECHO_N "(cached) $ECHO_C" >&6
13425else
13426 cat >conftest.$ac_ext <<_ACEOF
13427/* confdefs.h. */
13428_ACEOF
13429cat confdefs.h >>conftest.$ac_ext
13430cat >>conftest.$ac_ext <<_ACEOF
13431/* end confdefs.h. */
13432
13433int
13434main ()
13435{
13436
0093c2fc 13437 #ifndef __HP_cc
3006edc0
VZ
13438 choke me
13439 #endif
13440
13441 ;
13442 return 0;
13443}
13444_ACEOF
13445rm -f conftest.$ac_objext
13446if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13447 (eval $ac_compile) 2>conftest.er1
13448 ac_status=$?
13449 grep -v '^ *+' conftest.er1 >conftest.err
13450 rm -f conftest.er1
13451 cat conftest.err >&5
13452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13453 (exit $ac_status); } &&
bb9e79c0 13454 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3006edc0
VZ
13455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13456 (eval $ac_try) 2>&5
13457 ac_status=$?
13458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13459 (exit $ac_status); }; } &&
13460 { ac_try='test -s conftest.$ac_objext'
13461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13462 (eval $ac_try) 2>&5
13463 ac_status=$?
13464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13465 (exit $ac_status); }; }; then
0093c2fc 13466 bakefile_cv_c_compiler___HP_cc=yes
3006edc0
VZ
13467else
13468 echo "$as_me: failed program was:" >&5
13469sed 's/^/| /' conftest.$ac_ext >&5
13470
0093c2fc 13471bakefile_cv_c_compiler___HP_cc=no
3006edc0
VZ
13472
13473fi
13474rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13475
13476
13477fi
0093c2fc
VZ
13478echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___HP_cc" >&5
13479echo "${ECHO_T}$bakefile_cv_c_compiler___HP_cc" >&6
3006edc0
VZ
13480 ac_ext=c
13481ac_cpp='$CPP $CPPFLAGS'
13482ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13483ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13484ac_compiler_gnu=$ac_cv_c_compiler_gnu
13485
0093c2fc
VZ
13486 if test "x$bakefile_cv_c_compiler___HP_cc" = "xyes"; then
13487 :; HPCC=yes
a1aa0349
VZ
13488 else
13489 :;
13490 fi
13491
13492
13493 ;;
13494
0093c2fc 13495 OSF1)
a1aa0349
VZ
13496
13497
13498 ac_ext=c
13499ac_cpp='$CPP $CPPFLAGS'
13500ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13501ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13502ac_compiler_gnu=$ac_cv_c_compiler_gnu
13503
0093c2fc
VZ
13504 echo "$as_me:$LINENO: checking whether we are using the Compaq C compiler" >&5
13505echo $ECHO_N "checking whether we are using the Compaq C compiler... $ECHO_C" >&6
13506if test "${bakefile_cv_c_compiler___DECC+set}" = set; then
a1aa0349
VZ
13507 echo $ECHO_N "(cached) $ECHO_C" >&6
13508else
13509 cat >conftest.$ac_ext <<_ACEOF
13510/* confdefs.h. */
13511_ACEOF
13512cat confdefs.h >>conftest.$ac_ext
13513cat >>conftest.$ac_ext <<_ACEOF
13514/* end confdefs.h. */
13515
13516int
13517main ()
13518{
13519
0093c2fc 13520 #ifndef __DECC
a1aa0349
VZ
13521 choke me
13522 #endif
13523
13524 ;
13525 return 0;
13526}
13527_ACEOF
13528rm -f conftest.$ac_objext
13529if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13530 (eval $ac_compile) 2>conftest.er1
13531 ac_status=$?
13532 grep -v '^ *+' conftest.er1 >conftest.err
13533 rm -f conftest.er1
13534 cat conftest.err >&5
13535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13536 (exit $ac_status); } &&
bb9e79c0 13537 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a1aa0349
VZ
13538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13539 (eval $ac_try) 2>&5
13540 ac_status=$?
13541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13542 (exit $ac_status); }; } &&
13543 { ac_try='test -s conftest.$ac_objext'
13544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13545 (eval $ac_try) 2>&5
13546 ac_status=$?
13547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13548 (exit $ac_status); }; }; then
0093c2fc 13549 bakefile_cv_c_compiler___DECC=yes
a1aa0349
VZ
13550else
13551 echo "$as_me: failed program was:" >&5
13552sed 's/^/| /' conftest.$ac_ext >&5
13553
0093c2fc 13554bakefile_cv_c_compiler___DECC=no
a1aa0349
VZ
13555
13556fi
13557rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13558
13559
13560fi
0093c2fc
VZ
13561echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___DECC" >&5
13562echo "${ECHO_T}$bakefile_cv_c_compiler___DECC" >&6
a1aa0349
VZ
13563 ac_ext=c
13564ac_cpp='$CPP $CPPFLAGS'
13565ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13566ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13567ac_compiler_gnu=$ac_cv_c_compiler_gnu
13568
0093c2fc
VZ
13569 if test "x$bakefile_cv_c_compiler___DECC" = "xyes"; then
13570 :; COMPAQCC=yes
13571 else
13572 :;
13573 fi
13574
13575
13576 ;;
13577
13578 SunOS)
13579
13580
13581 ac_ext=c
13582ac_cpp='$CPP $CPPFLAGS'
13583ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13584ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13585ac_compiler_gnu=$ac_cv_c_compiler_gnu
13586
13587 echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
13588echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6
13589if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
13590 echo $ECHO_N "(cached) $ECHO_C" >&6
13591else
13592 cat >conftest.$ac_ext <<_ACEOF
13593/* confdefs.h. */
13594_ACEOF
13595cat confdefs.h >>conftest.$ac_ext
13596cat >>conftest.$ac_ext <<_ACEOF
13597/* end confdefs.h. */
13598
13599int
13600main ()
13601{
13602
13603 #ifndef __SUNPRO_C
13604 choke me
13605 #endif
13606
13607 ;
13608 return 0;
13609}
13610_ACEOF
13611rm -f conftest.$ac_objext
13612if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13613 (eval $ac_compile) 2>conftest.er1
13614 ac_status=$?
13615 grep -v '^ *+' conftest.er1 >conftest.err
13616 rm -f conftest.er1
13617 cat conftest.err >&5
13618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13619 (exit $ac_status); } &&
bb9e79c0 13620 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
0093c2fc
VZ
13621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13622 (eval $ac_try) 2>&5
13623 ac_status=$?
13624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13625 (exit $ac_status); }; } &&
13626 { ac_try='test -s conftest.$ac_objext'
13627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13628 (eval $ac_try) 2>&5
13629 ac_status=$?
13630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13631 (exit $ac_status); }; }; then
13632 bakefile_cv_c_compiler___SUNPRO_C=yes
13633else
13634 echo "$as_me: failed program was:" >&5
13635sed 's/^/| /' conftest.$ac_ext >&5
13636
13637bakefile_cv_c_compiler___SUNPRO_C=no
13638
13639fi
13640rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13641
13642
13643fi
13644echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
13645echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6
13646 ac_ext=c
13647ac_cpp='$CPP $CPPFLAGS'
13648ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13649ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13650ac_compiler_gnu=$ac_cv_c_compiler_gnu
13651
13652 if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
13653 :; SUNCC=yes
3006edc0
VZ
13654 else
13655 :;
13656 fi
13657
13658
13659 ;;
13660 esac
ab0ad5f1 13661 fi
a9e5b1f0
MW
13662
13663
3006edc0 13664
a848cd7e
SC
13665ac_ext=c
13666ac_cpp='$CPP $CPPFLAGS'
13667ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13668ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13669ac_compiler_gnu=$ac_cv_c_compiler_gnu
13670echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
13671echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
13672# On Suns, sometimes $CPP names a directory.
13673if test -n "$CPP" && test -d "$CPP"; then
13674 CPP=
13675fi
13676if test -z "$CPP"; then
13677 if test "${ac_cv_prog_CPP+set}" = set; then
13678 echo $ECHO_N "(cached) $ECHO_C" >&6
13679else
13680 # Double quotes because CPP needs to be expanded
13681 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
13682 do
13683 ac_preproc_ok=false
13684for ac_c_preproc_warn_flag in '' yes
13685do
13686 # Use a header file that comes with gcc, so configuring glibc
13687 # with a fresh cross-compiler works.
13688 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13689 # <limits.h> exists even on freestanding compilers.
13690 # On the NeXT, cc -E runs the code through the compiler's parser,
13691 # not just through cpp. "Syntax error" is here to catch this case.
13692 cat >conftest.$ac_ext <<_ACEOF
13693/* confdefs.h. */
13694_ACEOF
13695cat confdefs.h >>conftest.$ac_ext
13696cat >>conftest.$ac_ext <<_ACEOF
13697/* end confdefs.h. */
13698#ifdef __STDC__
13699# include <limits.h>
13700#else
13701# include <assert.h>
13702#endif
ac1cb8d3 13703 Syntax error
a848cd7e
SC
13704_ACEOF
13705if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13706 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13707 ac_status=$?
13708 grep -v '^ *+' conftest.er1 >conftest.err
13709 rm -f conftest.er1
13710 cat conftest.err >&5
13711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13712 (exit $ac_status); } >/dev/null; then
13713 if test -s conftest.err; then
13714 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13715 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13716 else
13717 ac_cpp_err=
13718 fi
13719else
13720 ac_cpp_err=yes
13721fi
13722if test -z "$ac_cpp_err"; then
13723 :
13724else
13725 echo "$as_me: failed program was:" >&5
13726sed 's/^/| /' conftest.$ac_ext >&5
13727
13728 # Broken: fails on valid input.
13729continue
13730fi
13731rm -f conftest.err conftest.$ac_ext
13732
13733 # OK, works on sane cases. Now check whether non-existent headers
13734 # can be detected and how.
13735 cat >conftest.$ac_ext <<_ACEOF
13736/* confdefs.h. */
13737_ACEOF
13738cat confdefs.h >>conftest.$ac_ext
13739cat >>conftest.$ac_ext <<_ACEOF
13740/* end confdefs.h. */
13741#include <ac_nonexistent.h>
13742_ACEOF
13743if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13744 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13745 ac_status=$?
13746 grep -v '^ *+' conftest.er1 >conftest.err
13747 rm -f conftest.er1
13748 cat conftest.err >&5
13749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13750 (exit $ac_status); } >/dev/null; then
13751 if test -s conftest.err; then
13752 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13753 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13754 else
13755 ac_cpp_err=
13756 fi
13757else
13758 ac_cpp_err=yes
13759fi
13760if test -z "$ac_cpp_err"; then
13761 # Broken: success on invalid input.
13762continue
13763else
13764 echo "$as_me: failed program was:" >&5
13765sed 's/^/| /' conftest.$ac_ext >&5
13766
13767 # Passes both tests.
13768ac_preproc_ok=:
13769break
13770fi
13771rm -f conftest.err conftest.$ac_ext
13772
13773done
13774# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13775rm -f conftest.err conftest.$ac_ext
13776if $ac_preproc_ok; then
13777 break
13778fi
13779
13780 done
13781 ac_cv_prog_CPP=$CPP
13782
13783fi
13784 CPP=$ac_cv_prog_CPP
13785else
13786 ac_cv_prog_CPP=$CPP
13787fi
13788echo "$as_me:$LINENO: result: $CPP" >&5
13789echo "${ECHO_T}$CPP" >&6
13790ac_preproc_ok=false
13791for ac_c_preproc_warn_flag in '' yes
13792do
13793 # Use a header file that comes with gcc, so configuring glibc
13794 # with a fresh cross-compiler works.
13795 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13796 # <limits.h> exists even on freestanding compilers.
13797 # On the NeXT, cc -E runs the code through the compiler's parser,
13798 # not just through cpp. "Syntax error" is here to catch this case.
13799 cat >conftest.$ac_ext <<_ACEOF
13800/* confdefs.h. */
13801_ACEOF
13802cat confdefs.h >>conftest.$ac_ext
13803cat >>conftest.$ac_ext <<_ACEOF
13804/* end confdefs.h. */
13805#ifdef __STDC__
13806# include <limits.h>
13807#else
13808# include <assert.h>
13809#endif
ac1cb8d3 13810 Syntax error
a848cd7e
SC
13811_ACEOF
13812if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13813 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13814 ac_status=$?
13815 grep -v '^ *+' conftest.er1 >conftest.err
13816 rm -f conftest.er1
13817 cat conftest.err >&5
13818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13819 (exit $ac_status); } >/dev/null; then
13820 if test -s conftest.err; then
13821 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13822 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13823 else
13824 ac_cpp_err=
13825 fi
13826else
13827 ac_cpp_err=yes
13828fi
13829if test -z "$ac_cpp_err"; then
13830 :
13831else
13832 echo "$as_me: failed program was:" >&5
13833sed 's/^/| /' conftest.$ac_ext >&5
13834
13835 # Broken: fails on valid input.
13836continue
13837fi
13838rm -f conftest.err conftest.$ac_ext
13839
13840 # OK, works on sane cases. Now check whether non-existent headers
13841 # can be detected and how.
13842 cat >conftest.$ac_ext <<_ACEOF
13843/* confdefs.h. */
13844_ACEOF
13845cat confdefs.h >>conftest.$ac_ext
13846cat >>conftest.$ac_ext <<_ACEOF
13847/* end confdefs.h. */
13848#include <ac_nonexistent.h>
13849_ACEOF
13850if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13851 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13852 ac_status=$?
13853 grep -v '^ *+' conftest.er1 >conftest.err
13854 rm -f conftest.er1
13855 cat conftest.err >&5
13856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13857 (exit $ac_status); } >/dev/null; then
13858 if test -s conftest.err; then
13859 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13860 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13861 else
13862 ac_cpp_err=
13863 fi
13864else
13865 ac_cpp_err=yes
13866fi
13867if test -z "$ac_cpp_err"; then
13868 # Broken: success on invalid input.
13869continue
13870else
13871 echo "$as_me: failed program was:" >&5
13872sed 's/^/| /' conftest.$ac_ext >&5
13873
13874 # Passes both tests.
13875ac_preproc_ok=:
13876break
13877fi
13878rm -f conftest.err conftest.$ac_ext
13879
13880done
13881# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13882rm -f conftest.err conftest.$ac_ext
13883if $ac_preproc_ok; then
13884 :
13885else
13886 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
13887See \`config.log' for more details." >&5
13888echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
13889See \`config.log' for more details." >&2;}
13890 { (exit 1); exit 1; }; }
13891fi
13892
13893ac_ext=c
13894ac_cpp='$CPP $CPPFLAGS'
13895ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13896ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13897ac_compiler_gnu=$ac_cv_c_compiler_gnu
13898
13899
13900echo "$as_me:$LINENO: checking for egrep" >&5
13901echo $ECHO_N "checking for egrep... $ECHO_C" >&6
13902if test "${ac_cv_prog_egrep+set}" = set; then
13903 echo $ECHO_N "(cached) $ECHO_C" >&6
13904else
13905 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
13906 then ac_cv_prog_egrep='grep -E'
13907 else ac_cv_prog_egrep='egrep'
13908 fi
13909fi
13910echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
13911echo "${ECHO_T}$ac_cv_prog_egrep" >&6
13912 EGREP=$ac_cv_prog_egrep
13913
13914
13915if test $ac_cv_c_compiler_gnu = yes; then
13916 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
13917echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
13918if test "${ac_cv_prog_gcc_traditional+set}" = set; then
13919 echo $ECHO_N "(cached) $ECHO_C" >&6
13920else
13921 ac_pattern="Autoconf.*'x'"
13922 cat >conftest.$ac_ext <<_ACEOF
13923/* confdefs.h. */
13924_ACEOF
13925cat confdefs.h >>conftest.$ac_ext
13926cat >>conftest.$ac_ext <<_ACEOF
13927/* end confdefs.h. */
13928#include <sgtty.h>
13929Autoconf TIOCGETP
13930_ACEOF
13931if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13932 $EGREP "$ac_pattern" >/dev/null 2>&1; then
13933 ac_cv_prog_gcc_traditional=yes
13934else
13935 ac_cv_prog_gcc_traditional=no
13936fi
13937rm -f conftest*
13938
13939
13940 if test $ac_cv_prog_gcc_traditional = no; then
13941 cat >conftest.$ac_ext <<_ACEOF
13942/* confdefs.h. */
13943_ACEOF
13944cat confdefs.h >>conftest.$ac_ext
13945cat >>conftest.$ac_ext <<_ACEOF
13946/* end confdefs.h. */
13947#include <termio.h>
13948Autoconf TCGETA
13949_ACEOF
13950if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13951 $EGREP "$ac_pattern" >/dev/null 2>&1; then
13952 ac_cv_prog_gcc_traditional=yes
13953fi
13954rm -f conftest*
13955
13956 fi
13957fi
13958echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
13959echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
13960 if test $ac_cv_prog_gcc_traditional = yes; then
13961 CC="$CC -traditional"
13962 fi
13963fi
13964
13965
a848cd7e
SC
13966ac_ext=cc
13967ac_cpp='$CXXCPP $CPPFLAGS'
13968ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13969ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13970ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13971
13972
13973CXXFLAGS=${CXXFLAGS:=}
6dcfc289
DE
13974
13975
3006edc0 13976
6dcfc289 13977 ac_ext=cc
a848cd7e
SC
13978ac_cpp='$CXXCPP $CPPFLAGS'
13979ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13980ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13981ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13982if test -n "$ac_tool_prefix"; then
13983 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
13984 do
13985 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13986set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13987echo "$as_me:$LINENO: checking for $ac_word" >&5
13988echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13989if test "${ac_cv_prog_CXX+set}" = set; then
13990 echo $ECHO_N "(cached) $ECHO_C" >&6
13991else
13992 if test -n "$CXX"; then
13993 ac_cv_prog_CXX="$CXX" # Let the user override the test.
13994else
13995as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13996for as_dir in $PATH
13997do
13998 IFS=$as_save_IFS
13999 test -z "$as_dir" && as_dir=.
14000 for ac_exec_ext in '' $ac_executable_extensions; do
14001 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14002 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
14003 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14004 break 2
14005 fi
14006done
14007done
14008
14009fi
14010fi
14011CXX=$ac_cv_prog_CXX
14012if test -n "$CXX"; then
14013 echo "$as_me:$LINENO: result: $CXX" >&5
14014echo "${ECHO_T}$CXX" >&6
14015else
14016 echo "$as_me:$LINENO: result: no" >&5
14017echo "${ECHO_T}no" >&6
14018fi
14019
14020 test -n "$CXX" && break
14021 done
14022fi
14023if test -z "$CXX"; then
14024 ac_ct_CXX=$CXX
14025 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
14026do
14027 # Extract the first word of "$ac_prog", so it can be a program name with args.
14028set dummy $ac_prog; ac_word=$2
14029echo "$as_me:$LINENO: checking for $ac_word" >&5
14030echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14031if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
14032 echo $ECHO_N "(cached) $ECHO_C" >&6
14033else
14034 if test -n "$ac_ct_CXX"; then
14035 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
14036else
14037as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14038for as_dir in $PATH
14039do
14040 IFS=$as_save_IFS
14041 test -z "$as_dir" && as_dir=.
14042 for ac_exec_ext in '' $ac_executable_extensions; do
14043 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14044 ac_cv_prog_ac_ct_CXX="$ac_prog"
14045 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14046 break 2
14047 fi
14048done
14049done
14050
14051fi
14052fi
14053ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
14054if test -n "$ac_ct_CXX"; then
14055 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
14056echo "${ECHO_T}$ac_ct_CXX" >&6
14057else
14058 echo "$as_me:$LINENO: result: no" >&5
14059echo "${ECHO_T}no" >&6
14060fi
14061
14062 test -n "$ac_ct_CXX" && break
14063done
14064test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
14065
14066 CXX=$ac_ct_CXX
14067fi
14068
14069
14070# Provide some information about the compiler.
14071echo "$as_me:$LINENO:" \
14072 "checking for C++ compiler version" >&5
14073ac_compiler=`set X $ac_compile; echo $2`
14074{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
14075 (eval $ac_compiler --version </dev/null >&5) 2>&5
14076 ac_status=$?
14077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14078 (exit $ac_status); }
14079{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
14080 (eval $ac_compiler -v </dev/null >&5) 2>&5
14081 ac_status=$?
14082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14083 (exit $ac_status); }
14084{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
14085 (eval $ac_compiler -V </dev/null >&5) 2>&5
14086 ac_status=$?
14087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14088 (exit $ac_status); }
14089
14090echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
14091echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
14092if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
14093 echo $ECHO_N "(cached) $ECHO_C" >&6
14094else
14095 cat >conftest.$ac_ext <<_ACEOF
14096/* confdefs.h. */
14097_ACEOF
14098cat confdefs.h >>conftest.$ac_ext
14099cat >>conftest.$ac_ext <<_ACEOF
14100/* end confdefs.h. */
14101
14102int
14103main ()
14104{
14105#ifndef __GNUC__
14106 choke me
14107#endif
14108
14109 ;
14110 return 0;
14111}
14112_ACEOF
14113rm -f conftest.$ac_objext
14114if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14115 (eval $ac_compile) 2>conftest.er1
a848cd7e 14116 ac_status=$?
ac1cb8d3
VS
14117 grep -v '^ *+' conftest.er1 >conftest.err
14118 rm -f conftest.er1
14119 cat conftest.err >&5
a848cd7e
SC
14120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14121 (exit $ac_status); } &&
bb9e79c0 14122 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14124 (eval $ac_try) 2>&5
14125 ac_status=$?
14126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14127 (exit $ac_status); }; } &&
14128 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14130 (eval $ac_try) 2>&5
14131 ac_status=$?
14132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14133 (exit $ac_status); }; }; then
14134 ac_compiler_gnu=yes
14135else
14136 echo "$as_me: failed program was:" >&5
14137sed 's/^/| /' conftest.$ac_ext >&5
14138
14139ac_compiler_gnu=no
14140fi
ac1cb8d3 14141rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14142ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
14143
14144fi
14145echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
14146echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
14147GXX=`test $ac_compiler_gnu = yes && echo yes`
14148ac_test_CXXFLAGS=${CXXFLAGS+set}
14149ac_save_CXXFLAGS=$CXXFLAGS
14150CXXFLAGS="-g"
14151echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
14152echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
14153if test "${ac_cv_prog_cxx_g+set}" = set; then
14154 echo $ECHO_N "(cached) $ECHO_C" >&6
14155else
14156 cat >conftest.$ac_ext <<_ACEOF
14157/* confdefs.h. */
14158_ACEOF
14159cat confdefs.h >>conftest.$ac_ext
14160cat >>conftest.$ac_ext <<_ACEOF
14161/* end confdefs.h. */
14162
14163int
14164main ()
14165{
14166
14167 ;
14168 return 0;
14169}
14170_ACEOF
14171rm -f conftest.$ac_objext
14172if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14173 (eval $ac_compile) 2>conftest.er1
a848cd7e 14174 ac_status=$?
ac1cb8d3
VS
14175 grep -v '^ *+' conftest.er1 >conftest.err
14176 rm -f conftest.er1
14177 cat conftest.err >&5
a848cd7e
SC
14178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14179 (exit $ac_status); } &&
bb9e79c0 14180 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14182 (eval $ac_try) 2>&5
14183 ac_status=$?
14184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14185 (exit $ac_status); }; } &&
14186 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14188 (eval $ac_try) 2>&5
14189 ac_status=$?
14190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14191 (exit $ac_status); }; }; then
14192 ac_cv_prog_cxx_g=yes
14193else
14194 echo "$as_me: failed program was:" >&5
14195sed 's/^/| /' conftest.$ac_ext >&5
14196
14197ac_cv_prog_cxx_g=no
14198fi
ac1cb8d3 14199rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14200fi
14201echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
14202echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
14203if test "$ac_test_CXXFLAGS" = set; then
14204 CXXFLAGS=$ac_save_CXXFLAGS
14205elif test $ac_cv_prog_cxx_g = yes; then
14206 if test "$GXX" = yes; then
15291213 14207 CXXFLAGS="-g -O2"
a848cd7e 14208 else
15291213 14209 CXXFLAGS="-g"
a848cd7e
SC
14210 fi
14211else
14212 if test "$GXX" = yes; then
14213 CXXFLAGS="-O2"
14214 else
14215 CXXFLAGS=
14216 fi
14217fi
14218for ac_declaration in \
ac1cb8d3 14219 '' \
a848cd7e
SC
14220 'extern "C" void std::exit (int) throw (); using std::exit;' \
14221 'extern "C" void std::exit (int); using std::exit;' \
14222 'extern "C" void exit (int) throw ();' \
14223 'extern "C" void exit (int);' \
14224 'void exit (int);'
14225do
14226 cat >conftest.$ac_ext <<_ACEOF
14227/* confdefs.h. */
14228_ACEOF
14229cat confdefs.h >>conftest.$ac_ext
14230cat >>conftest.$ac_ext <<_ACEOF
14231/* end confdefs.h. */
de59c161 14232$ac_declaration
ac1cb8d3 14233#include <stdlib.h>
a848cd7e
SC
14234int
14235main ()
14236{
14237exit (42);
14238 ;
14239 return 0;
14240}
14241_ACEOF
14242rm -f conftest.$ac_objext
14243if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14244 (eval $ac_compile) 2>conftest.er1
a848cd7e 14245 ac_status=$?
ac1cb8d3
VS
14246 grep -v '^ *+' conftest.er1 >conftest.err
14247 rm -f conftest.er1
14248 cat conftest.err >&5
a848cd7e
SC
14249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14250 (exit $ac_status); } &&
bb9e79c0 14251 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14253 (eval $ac_try) 2>&5
14254 ac_status=$?
14255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14256 (exit $ac_status); }; } &&
14257 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14259 (eval $ac_try) 2>&5
14260 ac_status=$?
14261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14262 (exit $ac_status); }; }; then
14263 :
14264else
14265 echo "$as_me: failed program was:" >&5
14266sed 's/^/| /' conftest.$ac_ext >&5
14267
14268continue
14269fi
ac1cb8d3 14270rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14271 cat >conftest.$ac_ext <<_ACEOF
14272/* confdefs.h. */
14273_ACEOF
14274cat confdefs.h >>conftest.$ac_ext
14275cat >>conftest.$ac_ext <<_ACEOF
14276/* end confdefs.h. */
14277$ac_declaration
14278int
14279main ()
14280{
14281exit (42);
14282 ;
14283 return 0;
14284}
14285_ACEOF
14286rm -f conftest.$ac_objext
14287if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14288 (eval $ac_compile) 2>conftest.er1
a848cd7e 14289 ac_status=$?
ac1cb8d3
VS
14290 grep -v '^ *+' conftest.er1 >conftest.err
14291 rm -f conftest.er1
14292 cat conftest.err >&5
a848cd7e
SC
14293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14294 (exit $ac_status); } &&
bb9e79c0 14295 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14297 (eval $ac_try) 2>&5
14298 ac_status=$?
14299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14300 (exit $ac_status); }; } &&
14301 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14303 (eval $ac_try) 2>&5
14304 ac_status=$?
14305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14306 (exit $ac_status); }; }; then
14307 break
14308else
14309 echo "$as_me: failed program was:" >&5
14310sed 's/^/| /' conftest.$ac_ext >&5
14311
14312fi
ac1cb8d3 14313rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14314done
14315rm -f conftest*
14316if test -n "$ac_declaration"; then
14317 echo '#ifdef __cplusplus' >>confdefs.h
14318 echo $ac_declaration >>confdefs.h
14319 echo '#endif' >>confdefs.h
14320fi
14321
14322ac_ext=cc
14323ac_cpp='$CXXCPP $CPPFLAGS'
14324ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14325ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14326ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14327
ab0ad5f1
VZ
14328
14329
14330 ac_ext=cc
14331ac_cpp='$CXXCPP $CPPFLAGS'
14332ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14333ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14334ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14335
14336 echo "$as_me:$LINENO: checking whether we are using the Intel C++ compiler" >&5
14337echo $ECHO_N "checking whether we are using the Intel C++ compiler... $ECHO_C" >&6
14338if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER+set}" = set; then
14339 echo $ECHO_N "(cached) $ECHO_C" >&6
14340else
14341 cat >conftest.$ac_ext <<_ACEOF
14342/* confdefs.h. */
14343_ACEOF
14344cat confdefs.h >>conftest.$ac_ext
14345cat >>conftest.$ac_ext <<_ACEOF
14346/* end confdefs.h. */
14347
14348int
14349main ()
14350{
14351
14352 #ifndef __INTEL_COMPILER
14353 choke me
14354 #endif
14355
14356 ;
14357 return 0;
14358}
14359_ACEOF
14360rm -f conftest.$ac_objext
14361if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14362 (eval $ac_compile) 2>conftest.er1
14363 ac_status=$?
14364 grep -v '^ *+' conftest.er1 >conftest.err
14365 rm -f conftest.er1
14366 cat conftest.err >&5
14367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14368 (exit $ac_status); } &&
bb9e79c0 14369 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ab0ad5f1
VZ
14370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14371 (eval $ac_try) 2>&5
14372 ac_status=$?
14373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14374 (exit $ac_status); }; } &&
14375 { ac_try='test -s conftest.$ac_objext'
14376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14377 (eval $ac_try) 2>&5
14378 ac_status=$?
14379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14380 (exit $ac_status); }; }; then
14381 bakefile_cv_cxx_compiler___INTEL_COMPILER=yes
14382else
14383 echo "$as_me: failed program was:" >&5
14384sed 's/^/| /' conftest.$ac_ext >&5
14385
14386bakefile_cv_cxx_compiler___INTEL_COMPILER=no
14387
14388fi
14389rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14390
14391
14392fi
14393echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER" >&5
14394echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER" >&6
14395 ac_ext=cc
14396ac_cpp='$CXXCPP $CPPFLAGS'
14397ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14398ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14399ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14400
14401 if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER" = "xyes"; then
14402 :; INTELCXX=yes
14403 else
14404 :;
14405 fi
14406
14407
3006edc0
VZ
14408 if test "x$GCXX" != "xyes"; then
14409 if test "xCXX" = "xC"; then
14410 echo "$as_me:$LINENO: checking if the C++ compiler requires -ext o" >&5
480ccd21 14411echo $ECHO_N "checking if the C++ compiler requires -ext o... $ECHO_C" >&6
0093c2fc 14412if test "${bakefile_cv_cxx_exto+set}" = set; then
480ccd21
DE
14413 echo $ECHO_N "(cached) $ECHO_C" >&6
14414else
14415 cat >conftest.$ac_ext <<_ACEOF
14416/* confdefs.h. */
14417_ACEOF
14418cat confdefs.h >>conftest.$ac_ext
14419cat >>conftest.$ac_ext <<_ACEOF
14420/* end confdefs.h. */
14421
14422int
14423main ()
14424{
14425
14426 ;
14427 return 0;
14428}
14429_ACEOF
14430rm -f conftest.$ac_objext conftest.$ac_ext.o
14431if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14432 (eval $ac_compile) 2>&5
14433 ac_status=$?
14434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14435 (exit $ac_status); }; then
14436 for ac_file in `(ls conftest.* 2>/dev/null)`; do
14437 case $ac_file in
14438 conftest.$ac_ext.o)
0093c2fc 14439 bakefile_cv_cxx_exto="-ext o"
480ccd21
DE
14440 ;;
14441 *)
14442 ;;
14443 esac
14444done
14445else
14446 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
14447See \`config.log' for more details." >&5
14448echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
14449See \`config.log' for more details." >&2;}
14450 { (exit 1); exit 1; }; }
14451
14452fi
14453
14454rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
14455
14456fi
0093c2fc
VZ
14457echo "$as_me:$LINENO: result: $bakefile_cv_cxx_exto" >&5
14458echo "${ECHO_T}$bakefile_cv_cxx_exto" >&6
14459if test "x$bakefile_cv_cxx_exto" '!=' "x"; then
480ccd21 14460 if test "cxx" = "c"; then
0093c2fc 14461 CFLAGS="$bakefile_cv_cxx_exto $CFLAGS"
480ccd21
DE
14462 fi
14463 if test "cxx" = "cxx"; then
0093c2fc 14464 CXXFLAGS="$bakefile_cv_cxx_exto $CXXFLAGS"
480ccd21
DE
14465 fi
14466fi
14467
0093c2fc 14468 if test "x$bakefile_cv_c_exto" '!=' "x"; then
3006edc0
VZ
14469 unset ac_cv_prog_cc_g
14470 ac_test_CFLAGS=${CFLAGS+set}
14471ac_save_CFLAGS=$CFLAGS
15291213 14472CFLAGS="-g"
3006edc0
VZ
14473echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
14474echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
14475if test "${ac_cv_prog_cc_g+set}" = set; then
480ccd21
DE
14476 echo $ECHO_N "(cached) $ECHO_C" >&6
14477else
14478 cat >conftest.$ac_ext <<_ACEOF
14479/* confdefs.h. */
14480_ACEOF
14481cat confdefs.h >>conftest.$ac_ext
14482cat >>conftest.$ac_ext <<_ACEOF
14483/* end confdefs.h. */
14484
14485int
14486main ()
14487{
14488
14489 ;
14490 return 0;
14491}
14492_ACEOF
14493rm -f conftest.$ac_objext
14494if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14495 (eval $ac_compile) 2>conftest.er1
14496 ac_status=$?
14497 grep -v '^ *+' conftest.er1 >conftest.err
14498 rm -f conftest.er1
14499 cat conftest.err >&5
14500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14501 (exit $ac_status); } &&
bb9e79c0 14502 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
480ccd21
DE
14503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14504 (eval $ac_try) 2>&5
14505 ac_status=$?
14506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14507 (exit $ac_status); }; } &&
14508 { ac_try='test -s conftest.$ac_objext'
14509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14510 (eval $ac_try) 2>&5
14511 ac_status=$?
14512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14513 (exit $ac_status); }; }; then
3006edc0 14514 ac_cv_prog_cc_g=yes
480ccd21
DE
14515else
14516 echo "$as_me: failed program was:" >&5
14517sed 's/^/| /' conftest.$ac_ext >&5
14518
3006edc0 14519ac_cv_prog_cc_g=no
480ccd21
DE
14520fi
14521rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14522fi
3006edc0
VZ
14523echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
14524echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
14525if test "$ac_test_CFLAGS" = set; then
14526 CFLAGS=$ac_save_CFLAGS
14527elif test $ac_cv_prog_cc_g = yes; then
14528 if test "$GCC" = yes; then
14529 CFLAGS="-g -O2"
480ccd21 14530 else
3006edc0 14531 CFLAGS="-g"
480ccd21
DE
14532 fi
14533else
3006edc0
VZ
14534 if test "$GCC" = yes; then
14535 CFLAGS="-O2"
480ccd21 14536 else
3006edc0 14537 CFLAGS=
480ccd21
DE
14538 fi
14539fi
3006edc0 14540 fi
ab0ad5f1 14541 fi
3006edc0
VZ
14542
14543 case `uname -s` in
14544 AIX*)
14545 ac_ext=cc
14546ac_cpp='$CXXCPP $CPPFLAGS'
14547ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14548ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14549ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14550
14551echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
14552echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6
0093c2fc 14553if test "${bakefile_cv_cxx_compiler_xlc+set}" = set; then
3006edc0
VZ
14554 echo $ECHO_N "(cached) $ECHO_C" >&6
14555else
14556 cat >conftest.$ac_ext <<_ACEOF
14557/* confdefs.h. */
14558_ACEOF
14559cat confdefs.h >>conftest.$ac_ext
14560cat >>conftest.$ac_ext <<_ACEOF
14561/* end confdefs.h. */
14562
14563int
14564main ()
14565{
14566#ifndef __xlC__
14567 choke me
14568#endif
14569
14570 ;
14571 return 0;
14572}
14573_ACEOF
14574rm -f conftest.$ac_objext
14575if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14576 (eval $ac_compile) 2>conftest.er1
14577 ac_status=$?
14578 grep -v '^ *+' conftest.er1 >conftest.err
14579 rm -f conftest.er1
14580 cat conftest.err >&5
14581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14582 (exit $ac_status); } &&
bb9e79c0 14583 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3006edc0
VZ
14584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14585 (eval $ac_try) 2>&5
14586 ac_status=$?
14587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14588 (exit $ac_status); }; } &&
14589 { ac_try='test -s conftest.$ac_objext'
14590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14591 (eval $ac_try) 2>&5
14592 ac_status=$?
14593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14594 (exit $ac_status); }; }; then
0093c2fc 14595 bakefile_compiler_xlc=yes
3006edc0
VZ
14596else
14597 echo "$as_me: failed program was:" >&5
14598sed 's/^/| /' conftest.$ac_ext >&5
14599
0093c2fc 14600bakefile_compiler_xlc=no
3006edc0
VZ
14601fi
14602rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 14603 bakefile_cv_cxx_compiler_xlc=$bakefile_compiler_xlc
3006edc0
VZ
14604
14605fi
0093c2fc
VZ
14606echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_xlc" >&5
14607echo "${ECHO_T}$bakefile_cv_cxx_compiler_xlc" >&6
3006edc0 14608
0093c2fc 14609XLCXX=`test $bakefile_cv_cxx_compiler_xlc = yes && echo yes`
3006edc0
VZ
14610ac_ext=cc
14611ac_cpp='$CXXCPP $CPPFLAGS'
14612ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14613ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14614ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14615
14616
14617 ;;
14618
14619 Darwin)
14620 ac_ext=cc
95986553
DE
14621ac_cpp='$CXXCPP $CPPFLAGS'
14622ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14623ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14624ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14625
14626echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5
14627echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6
14628if test "${bakefile_cv_cxx_compiler_mwerks+set}" = set; then
14629 echo $ECHO_N "(cached) $ECHO_C" >&6
14630else
14631 cat >conftest.$ac_ext <<_ACEOF
14632/* confdefs.h. */
14633_ACEOF
14634cat confdefs.h >>conftest.$ac_ext
14635cat >>conftest.$ac_ext <<_ACEOF
14636/* end confdefs.h. */
14637
14638int
14639main ()
14640{
14641#ifndef __MWERKS__
14642 choke me
14643#endif
14644
14645 ;
14646 return 0;
14647}
14648_ACEOF
14649rm -f conftest.$ac_objext
14650if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14651 (eval $ac_compile) 2>conftest.er1
14652 ac_status=$?
14653 grep -v '^ *+' conftest.er1 >conftest.err
14654 rm -f conftest.er1
14655 cat conftest.err >&5
14656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14657 (exit $ac_status); } &&
bb9e79c0 14658 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
95986553
DE
14659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14660 (eval $ac_try) 2>&5
14661 ac_status=$?
14662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14663 (exit $ac_status); }; } &&
14664 { ac_try='test -s conftest.$ac_objext'
14665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14666 (eval $ac_try) 2>&5
14667 ac_status=$?
14668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14669 (exit $ac_status); }; }; then
14670 bakefile_compiler_mwerks=yes
14671else
14672 echo "$as_me: failed program was:" >&5
14673sed 's/^/| /' conftest.$ac_ext >&5
14674
14675bakefile_compiler_mwerks=no
14676fi
14677rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14678 bakefile_cv_cxx_compiler_mwerks=$bakefile_compiler_mwerks
14679
14680fi
14681echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_mwerks" >&5
14682echo "${ECHO_T}$bakefile_cv_cxx_compiler_mwerks" >&6
14683
0e6fa1d9 14684MWCXX=`test $bakefile_cv_cxx_compiler_mwerks = yes && echo yes`
95986553
DE
14685ac_ext=cc
14686ac_cpp='$CXXCPP $CPPFLAGS'
14687ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14688ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14689ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14690
14691
3006edc0 14692 ac_ext=cc
9273ffba
DE
14693ac_cpp='$CXXCPP $CPPFLAGS'
14694ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14695ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14696ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14697
14698echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
14699echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6
0093c2fc 14700if test "${bakefile_cv_cxx_compiler_xlc+set}" = set; then
9273ffba
DE
14701 echo $ECHO_N "(cached) $ECHO_C" >&6
14702else
14703 cat >conftest.$ac_ext <<_ACEOF
14704/* confdefs.h. */
14705_ACEOF
14706cat confdefs.h >>conftest.$ac_ext
14707cat >>conftest.$ac_ext <<_ACEOF
14708/* end confdefs.h. */
14709
14710int
14711main ()
14712{
14713#ifndef __xlC__
14714 choke me
14715#endif
14716
14717 ;
14718 return 0;
14719}
14720_ACEOF
14721rm -f conftest.$ac_objext
14722if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14723 (eval $ac_compile) 2>conftest.er1
14724 ac_status=$?
14725 grep -v '^ *+' conftest.er1 >conftest.err
14726 rm -f conftest.er1
14727 cat conftest.err >&5
14728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14729 (exit $ac_status); } &&
bb9e79c0 14730 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9273ffba
DE
14731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14732 (eval $ac_try) 2>&5
14733 ac_status=$?
14734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14735 (exit $ac_status); }; } &&
14736 { ac_try='test -s conftest.$ac_objext'
14737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14738 (eval $ac_try) 2>&5
14739 ac_status=$?
14740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14741 (exit $ac_status); }; }; then
0093c2fc 14742 bakefile_compiler_xlc=yes
9273ffba
DE
14743else
14744 echo "$as_me: failed program was:" >&5
14745sed 's/^/| /' conftest.$ac_ext >&5
14746
0093c2fc 14747bakefile_compiler_xlc=no
9273ffba
DE
14748fi
14749rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 14750 bakefile_cv_cxx_compiler_xlc=$bakefile_compiler_xlc
9273ffba
DE
14751
14752fi
0093c2fc
VZ
14753echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_xlc" >&5
14754echo "${ECHO_T}$bakefile_cv_cxx_compiler_xlc" >&6
9273ffba 14755
0093c2fc 14756XLCXX=`test $bakefile_cv_cxx_compiler_xlc = yes && echo yes`
9273ffba
DE
14757ac_ext=cc
14758ac_cpp='$CXXCPP $CPPFLAGS'
14759ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14760ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14761ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14762
14763
3006edc0
VZ
14764 ;;
14765
14766 IRIX*)
95986553 14767
6dcfc289 14768
0ad5d837
VZ
14769 ac_ext=cc
14770ac_cpp='$CXXCPP $CPPFLAGS'
14771ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14772ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14773ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14774
14775 echo "$as_me:$LINENO: checking whether we are using the SGI C++ compiler" >&5
14776echo $ECHO_N "checking whether we are using the SGI C++ compiler... $ECHO_C" >&6
14777if test "${bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION+set}" = set; then
14778 echo $ECHO_N "(cached) $ECHO_C" >&6
14779else
14780 cat >conftest.$ac_ext <<_ACEOF
14781/* confdefs.h. */
14782_ACEOF
14783cat confdefs.h >>conftest.$ac_ext
14784cat >>conftest.$ac_ext <<_ACEOF
14785/* end confdefs.h. */
14786
14787int
14788main ()
14789{
14790
14791 #ifndef _SGI_COMPILER_VERSION
14792 choke me
14793 #endif
14794
14795 ;
14796 return 0;
14797}
14798_ACEOF
14799rm -f conftest.$ac_objext
14800if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14801 (eval $ac_compile) 2>conftest.er1
14802 ac_status=$?
14803 grep -v '^ *+' conftest.er1 >conftest.err
14804 rm -f conftest.er1
14805 cat conftest.err >&5
14806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14807 (exit $ac_status); } &&
bb9e79c0 14808 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0ad5d837
VZ
14809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14810 (eval $ac_try) 2>&5
14811 ac_status=$?
14812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14813 (exit $ac_status); }; } &&
14814 { ac_try='test -s conftest.$ac_objext'
14815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14816 (eval $ac_try) 2>&5
14817 ac_status=$?
14818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14819 (exit $ac_status); }; }; then
14820 bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=yes
14821else
14822 echo "$as_me: failed program was:" >&5
14823sed 's/^/| /' conftest.$ac_ext >&5
14824
14825bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=no
14826
14827fi
14828rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14829
14830
14831fi
14832echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&5
14833echo "${ECHO_T}$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&6
14834 ac_ext=cc
14835ac_cpp='$CXXCPP $CPPFLAGS'
14836ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14837ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14838ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14839
14840 if test "x$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" = "xyes"; then
14841 :; SGICXX=yes
14842 else
14843 :;
14844 fi
14845
14846
3006edc0
VZ
14847 ;;
14848
0093c2fc 14849 HP-UX*)
3006edc0
VZ
14850
14851
14852 ac_ext=cc
14853ac_cpp='$CXXCPP $CPPFLAGS'
14854ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14855ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14856ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14857
0093c2fc
VZ
14858 echo "$as_me:$LINENO: checking whether we are using the HP C++ compiler" >&5
14859echo $ECHO_N "checking whether we are using the HP C++ compiler... $ECHO_C" >&6
14860if test "${bakefile_cv_cxx_compiler___HP_aCC+set}" = set; then
3006edc0
VZ
14861 echo $ECHO_N "(cached) $ECHO_C" >&6
14862else
14863 cat >conftest.$ac_ext <<_ACEOF
14864/* confdefs.h. */
14865_ACEOF
14866cat confdefs.h >>conftest.$ac_ext
14867cat >>conftest.$ac_ext <<_ACEOF
14868/* end confdefs.h. */
14869
14870int
14871main ()
14872{
14873
0093c2fc 14874 #ifndef __HP_aCC
3006edc0
VZ
14875 choke me
14876 #endif
14877
14878 ;
14879 return 0;
14880}
14881_ACEOF
14882rm -f conftest.$ac_objext
14883if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14884 (eval $ac_compile) 2>conftest.er1
14885 ac_status=$?
14886 grep -v '^ *+' conftest.er1 >conftest.err
14887 rm -f conftest.er1
14888 cat conftest.err >&5
14889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14890 (exit $ac_status); } &&
bb9e79c0 14891 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3006edc0
VZ
14892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14893 (eval $ac_try) 2>&5
14894 ac_status=$?
14895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14896 (exit $ac_status); }; } &&
14897 { ac_try='test -s conftest.$ac_objext'
14898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14899 (eval $ac_try) 2>&5
14900 ac_status=$?
14901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14902 (exit $ac_status); }; }; then
0093c2fc 14903 bakefile_cv_cxx_compiler___HP_aCC=yes
3006edc0
VZ
14904else
14905 echo "$as_me: failed program was:" >&5
14906sed 's/^/| /' conftest.$ac_ext >&5
14907
0093c2fc 14908bakefile_cv_cxx_compiler___HP_aCC=no
3006edc0
VZ
14909
14910fi
14911rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14912
14913
14914fi
0093c2fc
VZ
14915echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___HP_aCC" >&5
14916echo "${ECHO_T}$bakefile_cv_cxx_compiler___HP_aCC" >&6
3006edc0
VZ
14917 ac_ext=cc
14918ac_cpp='$CXXCPP $CPPFLAGS'
14919ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14920ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14921ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14922
0093c2fc
VZ
14923 if test "x$bakefile_cv_cxx_compiler___HP_aCC" = "xyes"; then
14924 :; HPCXX=yes
a1aa0349
VZ
14925 else
14926 :;
14927 fi
14928
14929
14930 ;;
14931
0093c2fc 14932 OSF1)
a1aa0349
VZ
14933
14934
14935 ac_ext=cc
14936ac_cpp='$CXXCPP $CPPFLAGS'
14937ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14938ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14939ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14940
0093c2fc
VZ
14941 echo "$as_me:$LINENO: checking whether we are using the Compaq C++ compiler" >&5
14942echo $ECHO_N "checking whether we are using the Compaq C++ compiler... $ECHO_C" >&6
14943if test "${bakefile_cv_cxx_compiler___DECCXX+set}" = set; then
a1aa0349
VZ
14944 echo $ECHO_N "(cached) $ECHO_C" >&6
14945else
14946 cat >conftest.$ac_ext <<_ACEOF
14947/* confdefs.h. */
14948_ACEOF
14949cat confdefs.h >>conftest.$ac_ext
14950cat >>conftest.$ac_ext <<_ACEOF
14951/* end confdefs.h. */
14952
14953int
14954main ()
14955{
14956
0093c2fc 14957 #ifndef __DECCXX
a1aa0349
VZ
14958 choke me
14959 #endif
14960
14961 ;
14962 return 0;
14963}
14964_ACEOF
14965rm -f conftest.$ac_objext
14966if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14967 (eval $ac_compile) 2>conftest.er1
14968 ac_status=$?
14969 grep -v '^ *+' conftest.er1 >conftest.err
14970 rm -f conftest.er1
14971 cat conftest.err >&5
14972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14973 (exit $ac_status); } &&
bb9e79c0 14974 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
a1aa0349
VZ
14975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14976 (eval $ac_try) 2>&5
14977 ac_status=$?
14978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14979 (exit $ac_status); }; } &&
14980 { ac_try='test -s conftest.$ac_objext'
14981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14982 (eval $ac_try) 2>&5
14983 ac_status=$?
14984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14985 (exit $ac_status); }; }; then
0093c2fc 14986 bakefile_cv_cxx_compiler___DECCXX=yes
a1aa0349
VZ
14987else
14988 echo "$as_me: failed program was:" >&5
14989sed 's/^/| /' conftest.$ac_ext >&5
14990
0093c2fc 14991bakefile_cv_cxx_compiler___DECCXX=no
a1aa0349
VZ
14992
14993fi
14994rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14995
14996
14997fi
0093c2fc
VZ
14998echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___DECCXX" >&5
14999echo "${ECHO_T}$bakefile_cv_cxx_compiler___DECCXX" >&6
a1aa0349
VZ
15000 ac_ext=cc
15001ac_cpp='$CXXCPP $CPPFLAGS'
15002ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15003ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15004ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15005
0093c2fc
VZ
15006 if test "x$bakefile_cv_cxx_compiler___DECCXX" = "xyes"; then
15007 :; COMPAQCXX=yes
15008 else
15009 :;
15010 fi
15011
15012
15013 ;;
15014
15015 SunOS)
15016
15017
15018 ac_ext=cc
15019ac_cpp='$CXXCPP $CPPFLAGS'
15020ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15021ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15022ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15023
15024 echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
15025echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6
15026if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
15027 echo $ECHO_N "(cached) $ECHO_C" >&6
15028else
15029 cat >conftest.$ac_ext <<_ACEOF
15030/* confdefs.h. */
15031_ACEOF
15032cat confdefs.h >>conftest.$ac_ext
15033cat >>conftest.$ac_ext <<_ACEOF
15034/* end confdefs.h. */
15035
15036int
15037main ()
15038{
15039
15040 #ifndef __SUNPRO_CC
15041 choke me
15042 #endif
15043
15044 ;
15045 return 0;
15046}
15047_ACEOF
15048rm -f conftest.$ac_objext
15049if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15050 (eval $ac_compile) 2>conftest.er1
15051 ac_status=$?
15052 grep -v '^ *+' conftest.er1 >conftest.err
15053 rm -f conftest.er1
15054 cat conftest.err >&5
15055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15056 (exit $ac_status); } &&
bb9e79c0 15057 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0093c2fc
VZ
15058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15059 (eval $ac_try) 2>&5
15060 ac_status=$?
15061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15062 (exit $ac_status); }; } &&
15063 { ac_try='test -s conftest.$ac_objext'
15064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15065 (eval $ac_try) 2>&5
15066 ac_status=$?
15067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15068 (exit $ac_status); }; }; then
15069 bakefile_cv_cxx_compiler___SUNPRO_CC=yes
15070else
15071 echo "$as_me: failed program was:" >&5
15072sed 's/^/| /' conftest.$ac_ext >&5
15073
15074bakefile_cv_cxx_compiler___SUNPRO_CC=no
15075
15076fi
15077rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15078
15079
15080fi
15081echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
15082echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6
15083 ac_ext=cc
15084ac_cpp='$CXXCPP $CPPFLAGS'
15085ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15086ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15087ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15088
15089 if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
15090 :; SUNCXX=yes
3006edc0
VZ
15091 else
15092 :;
ab0ad5f1 15093 fi
a9e5b1f0
MW
15094
15095
3006edc0
VZ
15096 ;;
15097 esac
15098 fi
15099
15100
15101
a848cd7e
SC
15102if test -n "$ac_tool_prefix"; then
15103 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
15104set dummy ${ac_tool_prefix}ranlib; ac_word=$2
15105echo "$as_me:$LINENO: checking for $ac_word" >&5
15106echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15107if test "${ac_cv_prog_RANLIB+set}" = set; then
15108 echo $ECHO_N "(cached) $ECHO_C" >&6
15109else
15110 if test -n "$RANLIB"; then
15111 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
15112else
15113as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15114for as_dir in $PATH
15115do
15116 IFS=$as_save_IFS
15117 test -z "$as_dir" && as_dir=.
15118 for ac_exec_ext in '' $ac_executable_extensions; do
15119 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15120 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
15121 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15122 break 2
15123 fi
15124done
15125done
15126
15127fi
15128fi
15129RANLIB=$ac_cv_prog_RANLIB
15130if test -n "$RANLIB"; then
15131 echo "$as_me:$LINENO: result: $RANLIB" >&5
15132echo "${ECHO_T}$RANLIB" >&6
15133else
15134 echo "$as_me:$LINENO: result: no" >&5
15135echo "${ECHO_T}no" >&6
15136fi
15137
15138fi
15139if test -z "$ac_cv_prog_RANLIB"; then
15140 ac_ct_RANLIB=$RANLIB
15141 # Extract the first word of "ranlib", so it can be a program name with args.
15142set dummy ranlib; ac_word=$2
15143echo "$as_me:$LINENO: checking for $ac_word" >&5
15144echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15145if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
15146 echo $ECHO_N "(cached) $ECHO_C" >&6
15147else
15148 if test -n "$ac_ct_RANLIB"; then
15149 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
15150else
15151as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15152for as_dir in $PATH
15153do
15154 IFS=$as_save_IFS
15155 test -z "$as_dir" && as_dir=.
15156 for ac_exec_ext in '' $ac_executable_extensions; do
15157 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15158 ac_cv_prog_ac_ct_RANLIB="ranlib"
15159 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15160 break 2
15161 fi
15162done
15163done
15164
15165 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
15166fi
15167fi
15168ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
15169if test -n "$ac_ct_RANLIB"; then
15170 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
15171echo "${ECHO_T}$ac_ct_RANLIB" >&6
15172else
15173 echo "$as_me:$LINENO: result: no" >&5
15174echo "${ECHO_T}no" >&6
15175fi
15176
15177 RANLIB=$ac_ct_RANLIB
15178else
15179 RANLIB="$ac_cv_prog_RANLIB"
15180fi
15181
15182
8c80d384
DE
15183if test -n "$ac_tool_prefix"; then
15184 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
15185set dummy ${ac_tool_prefix}ar; ac_word=$2
a848cd7e
SC
15186echo "$as_me:$LINENO: checking for $ac_word" >&5
15187echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15188if test "${ac_cv_prog_AR+set}" = set; then
15189 echo $ECHO_N "(cached) $ECHO_C" >&6
15190else
15191 if test -n "$AR"; then
15192 ac_cv_prog_AR="$AR" # Let the user override the test.
15193else
15194as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15195for as_dir in $PATH
15196do
15197 IFS=$as_save_IFS
15198 test -z "$as_dir" && as_dir=.
15199 for ac_exec_ext in '' $ac_executable_extensions; do
15200 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8c80d384 15201 ac_cv_prog_AR="${ac_tool_prefix}ar"
a848cd7e
SC
15202 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15203 break 2
15204 fi
15205done
15206done
15207
15208fi
15209fi
15210AR=$ac_cv_prog_AR
15211if test -n "$AR"; then
15212 echo "$as_me:$LINENO: result: $AR" >&5
15213echo "${ECHO_T}$AR" >&6
15214else
15215 echo "$as_me:$LINENO: result: no" >&5
15216echo "${ECHO_T}no" >&6
15217fi
15218
8c80d384
DE
15219fi
15220if test -z "$ac_cv_prog_AR"; then
15221 ac_ct_AR=$AR
15222 # Extract the first word of "ar", so it can be a program name with args.
15223set dummy ar; ac_word=$2
15224echo "$as_me:$LINENO: checking for $ac_word" >&5
15225echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15226if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
15227 echo $ECHO_N "(cached) $ECHO_C" >&6
15228else
15229 if test -n "$ac_ct_AR"; then
15230 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
15231else
15232as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15233for as_dir in $PATH
15234do
15235 IFS=$as_save_IFS
15236 test -z "$as_dir" && as_dir=.
15237 for ac_exec_ext in '' $ac_executable_extensions; do
15238 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15239 ac_cv_prog_ac_ct_AR="ar"
15240 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15241 break 2
15242 fi
15243done
15244done
15245
15246fi
15247fi
15248ac_ct_AR=$ac_cv_prog_ac_ct_AR
15249if test -n "$ac_ct_AR"; then
15250 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
15251echo "${ECHO_T}$ac_ct_AR" >&6
15252else
15253 echo "$as_me:$LINENO: result: no" >&5
15254echo "${ECHO_T}no" >&6
15255fi
15256
15257 AR=$ac_ct_AR
15258else
15259 AR="$ac_cv_prog_AR"
15260fi
15261
a848cd7e 15262if test "x$AR" = "x" ; then
77ffb593
JS
15263 { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
15264echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
a848cd7e
SC
15265 { (exit 1); exit 1; }; }
15266fi
15267
15268# Find a good install program. We prefer a C program (faster),
15269# so one script is as good as another. But avoid the broken or
15270# incompatible versions:
15271# SysV /etc/install, /usr/sbin/install
15272# SunOS /usr/etc/install
15273# IRIX /sbin/install
15274# AIX /bin/install
15275# AmigaOS /C/install, which installs bootblocks on floppy discs
15276# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
15277# AFS /usr/afsws/bin/install, which mishandles nonexistent args
15278# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 15279# OS/2's system install, which has a completely different semantic
a848cd7e
SC
15280# ./install, which can be erroneously created by make from ./install.sh.
15281echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
15282echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
15283if test -z "$INSTALL"; then
15284if test "${ac_cv_path_install+set}" = set; then
15285 echo $ECHO_N "(cached) $ECHO_C" >&6
15286else
15287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15288for as_dir in $PATH
15289do
15290 IFS=$as_save_IFS
15291 test -z "$as_dir" && as_dir=.
15292 # Account for people who put trailing slashes in PATH elements.
15293case $as_dir/ in
15294 ./ | .// | /cC/* | \
15295 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 15296 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
15297 /usr/ucb/* ) ;;
15298 *)
15299 # OSF1 and SCO ODT 3.0 have their own names for install.
15300 # Don't use installbsd from OSF since it installs stuff as root
15301 # by default.
15302 for ac_prog in ginstall scoinst install; do
15303 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
15304 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
15305 if test $ac_prog = install &&
15306 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
15307 # AIX install. It has an incompatible calling convention.
15308 :
15309 elif test $ac_prog = install &&
15310 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
15311 # program-specific install script used by HP pwplus--don't use.
15312 :
15313 else
15314 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
15315 break 3
15316 fi
15317 fi
a848cd7e
SC
15318 done
15319 done
15320 ;;
15321esac
15322done
15323
15324
15325fi
15326 if test "${ac_cv_path_install+set}" = set; then
15327 INSTALL=$ac_cv_path_install
15328 else
15329 # As a last resort, use the slow shell script. We don't cache a
15330 # path for INSTALL within a source directory, because that will
15331 # break other packages using the cache if that directory is
15332 # removed, or if the path is relative.
15333 INSTALL=$ac_install_sh
15334 fi
15335fi
15336echo "$as_me:$LINENO: result: $INSTALL" >&5
15337echo "${ECHO_T}$INSTALL" >&6
15338
15339# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
15340# It thinks the first close brace ends the variable substitution.
15341test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
15342
15343test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
15344
15345test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
15346
15347
15348case ${INSTALL} in
15349 /* ) # Absolute
15350 ;;
15351 ?:* ) # Drive letter, considered as absolute.
15352 ;;
15353 *)
15354 INSTALL=`pwd`/${INSTALL} ;;
15355esac
15356
a848cd7e
SC
15357
15358case "${host}" in
15359
cfda0ea8 15360 *-*-darwin* )
a848cd7e
SC
15361 INSTALL_PROGRAM="cp -fp"
15362 INSTALL_DATA="cp -fp"
15363 ;;
15364 *)
15365 ;;
15366esac
15367
8c80d384
DE
15368if test -n "$ac_tool_prefix"; then
15369 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
15370set dummy ${ac_tool_prefix}strip; ac_word=$2
a848cd7e
SC
15371echo "$as_me:$LINENO: checking for $ac_word" >&5
15372echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15373if test "${ac_cv_prog_STRIP+set}" = set; then
15374 echo $ECHO_N "(cached) $ECHO_C" >&6
15375else
15376 if test -n "$STRIP"; then
15377 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
15378else
15379as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15380for as_dir in $PATH
15381do
15382 IFS=$as_save_IFS
15383 test -z "$as_dir" && as_dir=.
15384 for ac_exec_ext in '' $ac_executable_extensions; do
15385 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8c80d384 15386 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
a848cd7e
SC
15387 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15388 break 2
15389 fi
15390done
15391done
15392
a848cd7e
SC
15393fi
15394fi
15395STRIP=$ac_cv_prog_STRIP
15396if test -n "$STRIP"; then
15397 echo "$as_me:$LINENO: result: $STRIP" >&5
15398echo "${ECHO_T}$STRIP" >&6
15399else
15400 echo "$as_me:$LINENO: result: no" >&5
15401echo "${ECHO_T}no" >&6
15402fi
15403
8c80d384
DE
15404fi
15405if test -z "$ac_cv_prog_STRIP"; then
15406 ac_ct_STRIP=$STRIP
15407 # Extract the first word of "strip", so it can be a program name with args.
15408set dummy strip; ac_word=$2
15409echo "$as_me:$LINENO: checking for $ac_word" >&5
15410echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15411if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
15412 echo $ECHO_N "(cached) $ECHO_C" >&6
15413else
15414 if test -n "$ac_ct_STRIP"; then
15415 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
15416else
15417as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15418for as_dir in $PATH
15419do
15420 IFS=$as_save_IFS
15421 test -z "$as_dir" && as_dir=.
15422 for ac_exec_ext in '' $ac_executable_extensions; do
15423 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15424 ac_cv_prog_ac_ct_STRIP="strip"
15425 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15426 break 2
15427 fi
15428done
15429done
15430
15431 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP="true"
15432fi
15433fi
15434ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
15435if test -n "$ac_ct_STRIP"; then
15436 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
15437echo "${ECHO_T}$ac_ct_STRIP" >&6
15438else
15439 echo "$as_me:$LINENO: result: no" >&5
15440echo "${ECHO_T}no" >&6
15441fi
15442
15443 STRIP=$ac_ct_STRIP
15444else
15445 STRIP="$ac_cv_prog_STRIP"
15446fi
15447
15448
15449if test "$wxUSE_WINE" = "yes"; then
15450 if test -n "$ac_tool_prefix"; then
15451 # Extract the first word of "${ac_tool_prefix}wrc", so it can be a program name with args.
15452set dummy ${ac_tool_prefix}wrc; ac_word=$2
15453echo "$as_me:$LINENO: checking for $ac_word" >&5
15454echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 15455if test "${ac_cv_prog_WINDRES+set}" = set; then
8c80d384
DE
15456 echo $ECHO_N "(cached) $ECHO_C" >&6
15457else
8ced02f6
DE
15458 if test -n "$WINDRES"; then
15459 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8c80d384
DE
15460else
15461as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15462for as_dir in $PATH
15463do
15464 IFS=$as_save_IFS
15465 test -z "$as_dir" && as_dir=.
15466 for ac_exec_ext in '' $ac_executable_extensions; do
15467 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 15468 ac_cv_prog_WINDRES="${ac_tool_prefix}wrc"
8c80d384
DE
15469 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15470 break 2
15471 fi
15472done
15473done
15474
15475fi
15476fi
8ced02f6
DE
15477WINDRES=$ac_cv_prog_WINDRES
15478if test -n "$WINDRES"; then
15479 echo "$as_me:$LINENO: result: $WINDRES" >&5
15480echo "${ECHO_T}$WINDRES" >&6
8c80d384
DE
15481else
15482 echo "$as_me:$LINENO: result: no" >&5
15483echo "${ECHO_T}no" >&6
15484fi
15485
15486fi
8ced02f6
DE
15487if test -z "$ac_cv_prog_WINDRES"; then
15488 ac_ct_WINDRES=$WINDRES
8c80d384
DE
15489 # Extract the first word of "wrc", so it can be a program name with args.
15490set dummy wrc; ac_word=$2
15491echo "$as_me:$LINENO: checking for $ac_word" >&5
15492echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 15493if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
8c80d384
DE
15494 echo $ECHO_N "(cached) $ECHO_C" >&6
15495else
8ced02f6
DE
15496 if test -n "$ac_ct_WINDRES"; then
15497 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
8c80d384
DE
15498else
15499as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15500for as_dir in $PATH
15501do
15502 IFS=$as_save_IFS
15503 test -z "$as_dir" && as_dir=.
15504 for ac_exec_ext in '' $ac_executable_extensions; do
15505 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 15506 ac_cv_prog_ac_ct_WINDRES="wrc"
8c80d384
DE
15507 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15508 break 2
15509 fi
15510done
15511done
15512
15513fi
15514fi
8ced02f6
DE
15515ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
15516if test -n "$ac_ct_WINDRES"; then
15517 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
15518echo "${ECHO_T}$ac_ct_WINDRES" >&6
8c80d384
DE
15519else
15520 echo "$as_me:$LINENO: result: no" >&5
15521echo "${ECHO_T}no" >&6
15522fi
15523
8ced02f6 15524 WINDRES=$ac_ct_WINDRES
8c80d384 15525else
8ced02f6 15526 WINDRES="$ac_cv_prog_WINDRES"
8c80d384
DE
15527fi
15528
004ee6da 15529 RESCOMP="$WINDRES"
8c80d384
DE
15530else
15531 case "${host}" in
15532 *-*-cygwin* | *-*-mingw32* )
004ee6da
RL
15533 if test -n "$ac_tool_prefix"; then
15534 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
15535set dummy ${ac_tool_prefix}windres; ac_word=$2
15536echo "$as_me:$LINENO: checking for $ac_word" >&5
15537echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15538if test "${ac_cv_prog_WINDRES+set}" = set; then
15539 echo $ECHO_N "(cached) $ECHO_C" >&6
15540else
15541 if test -n "$WINDRES"; then
15542 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
15543else
15544as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15545for as_dir in $PATH
15546do
15547 IFS=$as_save_IFS
15548 test -z "$as_dir" && as_dir=.
15549 for ac_exec_ext in '' $ac_executable_extensions; do
15550 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15551 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
15552 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15553 break 2
15554 fi
15555done
15556done
15557
15558fi
15559fi
15560WINDRES=$ac_cv_prog_WINDRES
15561if test -n "$WINDRES"; then
15562 echo "$as_me:$LINENO: result: $WINDRES" >&5
15563echo "${ECHO_T}$WINDRES" >&6
15564else
15565 echo "$as_me:$LINENO: result: no" >&5
15566echo "${ECHO_T}no" >&6
15567fi
15568
15569fi
15570if test -z "$ac_cv_prog_WINDRES"; then
15571 ac_ct_WINDRES=$WINDRES
15572 # Extract the first word of "windres", so it can be a program name with args.
15573set dummy windres; ac_word=$2
15574echo "$as_me:$LINENO: checking for $ac_word" >&5
15575echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15576if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
15577 echo $ECHO_N "(cached) $ECHO_C" >&6
15578else
15579 if test -n "$ac_ct_WINDRES"; then
15580 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
15581else
15582as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15583for as_dir in $PATH
15584do
15585 IFS=$as_save_IFS
15586 test -z "$as_dir" && as_dir=.
15587 for ac_exec_ext in '' $ac_executable_extensions; do
15588 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15589 ac_cv_prog_ac_ct_WINDRES="windres"
15590 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15591 break 2
15592 fi
15593done
15594done
15595
15596fi
15597fi
15598ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
15599if test -n "$ac_ct_WINDRES"; then
15600 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
15601echo "${ECHO_T}$ac_ct_WINDRES" >&6
15602else
15603 echo "$as_me:$LINENO: result: no" >&5
15604echo "${ECHO_T}no" >&6
15605fi
15606
15607 WINDRES=$ac_ct_WINDRES
15608else
15609 WINDRES="$ac_cv_prog_WINDRES"
15610fi
15611
15612 RESCOMP="$WINDRES"
15613 if test -n "$ac_tool_prefix"; then
8c80d384
DE
15614 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
15615set dummy ${ac_tool_prefix}dlltool; ac_word=$2
15616echo "$as_me:$LINENO: checking for $ac_word" >&5
15617echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15618if test "${ac_cv_prog_DLLTOOL+set}" = set; then
15619 echo $ECHO_N "(cached) $ECHO_C" >&6
15620else
15621 if test -n "$DLLTOOL"; then
15622 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
15623else
15624as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15625for as_dir in $PATH
15626do
15627 IFS=$as_save_IFS
15628 test -z "$as_dir" && as_dir=.
15629 for ac_exec_ext in '' $ac_executable_extensions; do
15630 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15631 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
15632 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15633 break 2
15634 fi
15635done
15636done
15637
15638fi
15639fi
15640DLLTOOL=$ac_cv_prog_DLLTOOL
15641if test -n "$DLLTOOL"; then
15642 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
15643echo "${ECHO_T}$DLLTOOL" >&6
15644else
15645 echo "$as_me:$LINENO: result: no" >&5
15646echo "${ECHO_T}no" >&6
15647fi
15648
15649fi
15650if test -z "$ac_cv_prog_DLLTOOL"; then
15651 ac_ct_DLLTOOL=$DLLTOOL
15652 # Extract the first word of "dlltool", so it can be a program name with args.
15653set dummy dlltool; ac_word=$2
15654echo "$as_me:$LINENO: checking for $ac_word" >&5
15655echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15656if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
15657 echo $ECHO_N "(cached) $ECHO_C" >&6
15658else
15659 if test -n "$ac_ct_DLLTOOL"; then
15660 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
15661else
15662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15663for as_dir in $PATH
15664do
15665 IFS=$as_save_IFS
15666 test -z "$as_dir" && as_dir=.
15667 for ac_exec_ext in '' $ac_executable_extensions; do
15668 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15669 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
15670 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15671 break 2
15672 fi
15673done
15674done
15675
15676fi
15677fi
15678ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
15679if test -n "$ac_ct_DLLTOOL"; then
15680 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
15681echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
15682else
15683 echo "$as_me:$LINENO: result: no" >&5
15684echo "${ECHO_T}no" >&6
15685fi
15686
15687 DLLTOOL=$ac_ct_DLLTOOL
15688else
15689 DLLTOOL="$ac_cv_prog_DLLTOOL"
15690fi
15691
15692 ;;
15693 esac
15694fi
a848cd7e
SC
15695
15696echo "$as_me:$LINENO: checking if make is GNU make" >&5
15697echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
15698if test "${wx_cv_prog_makeisgnu+set}" = set; then
15699 echo $ECHO_N "(cached) $ECHO_C" >&6
15700else
15701
15702 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
15703 egrep -s GNU > /dev/null); then
15704 wx_cv_prog_makeisgnu="yes"
15705 else
15706 wx_cv_prog_makeisgnu="no"
15707 fi
15708
15709fi
15710echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
15711echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
15712
15713if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
15714 IF_GNU_MAKE=""
15715else
15716 IF_GNU_MAKE="#"
15717fi
15718
15719
15720
15721if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
15722echo "$as_me:$LINENO: checking if make supports VPATH" >&5
15723echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
15724if test "${wx_cv_prog_makevpath+set}" = set; then
15725 echo $ECHO_N "(cached) $ECHO_C" >&6
15726else
15727
15728cat - << EOF > confMake
15729check : file
15730 cp \$? \$@
15731 cp \$? final_file
15732EOF
15733
15734if test ! -d sub ; then
15735 mkdir sub
15736fi
15737echo dummy > sub/file
15738${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
15739RESULT=$?
15740rm -f sub/file check final_file confMake
15741rmdir sub
15742if test "$RESULT" = 0; then
15743 wx_cv_prog_makevpath="yes"
15744else
15745 wx_cv_prog_makevpath="no"
15746fi
15747
15748fi
15749echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
15750echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
15751
15752if test "x$wx_cv_prog_makevpath" != "xyes"; then
15753{ { echo "$as_me:$LINENO: error:
15754You need a make-utility that is able to use the variable
15755VPATH correctly.
15756If your version of make does not support VPATH correctly,
15757please install GNU-make (possibly as gmake), and start
15758configure with the following command:
15759export MAKE=gmake; ./configure for sh-type shells
15760setenv MAKE gmake; ./configure for csh-type shells
15761Also please do remember to use gmake in this case every time
15762you are trying to compile.
15763" >&5
15764echo "$as_me: error:
15765You need a make-utility that is able to use the variable
15766VPATH correctly.
15767If your version of make does not support VPATH correctly,
15768please install GNU-make (possibly as gmake), and start
15769configure with the following command:
15770export MAKE=gmake; ./configure for sh-type shells
15771setenv MAKE gmake; ./configure for csh-type shells
15772Also please do remember to use gmake in this case every time
15773you are trying to compile.
15774" >&2;}
15775 { (exit 1); exit 1; }; }
15776fi fi
15777echo "$as_me:$LINENO: checking whether ln -s works" >&5
15778echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
15779LN_S=$as_ln_s
15780if test "$LN_S" = "ln -s"; then
15781 echo "$as_me:$LINENO: result: yes" >&5
15782echo "${ECHO_T}yes" >&6
15783else
15784 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
15785echo "${ECHO_T}no, using $LN_S" >&6
15786fi
15787
15788
bcaab0f9 15789
a848cd7e 15790
2113bc77 15791if test "x$XLCXX" = "xyes" -a "x$USE_AIX" = "x1"; then
c92ad099 15792 CXXFLAGS="-qunique $CXXFLAGS"
9273ffba
DE
15793fi
15794
4d7ec9f1
DE
15795case "${host}" in
15796 powerpc-*-darwin* )
15797 echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5
15798echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6
15799 cat >conftest.$ac_ext <<_ACEOF
15800/* confdefs.h. */
15801_ACEOF
15802cat confdefs.h >>conftest.$ac_ext
15803cat >>conftest.$ac_ext <<_ACEOF
15804/* end confdefs.h. */
15805
15806int
15807main ()
15808{
15809#ifndef __POWERPC__
15810 choke me for lack of PowerPC
15811#endif
15812
15813 ;
15814 return 0;
15815}
15816_ACEOF
15817rm -f conftest.$ac_objext
15818if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15819 (eval $ac_compile) 2>conftest.er1
15820 ac_status=$?
15821 grep -v '^ *+' conftest.er1 >conftest.err
15822 rm -f conftest.er1
15823 cat conftest.err >&5
15824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15825 (exit $ac_status); } &&
bb9e79c0 15826 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
15827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15828 (eval $ac_try) 2>&5
15829 ac_status=$?
15830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15831 (exit $ac_status); }; } &&
15832 { ac_try='test -s conftest.$ac_objext'
15833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15834 (eval $ac_try) 2>&5
15835 ac_status=$?
15836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15837 (exit $ac_status); }; }; then
15838 echo "$as_me:$LINENO: result: yes" >&5
15839echo "${ECHO_T}yes" >&6
15840else
15841 echo "$as_me: failed program was:" >&5
15842sed 's/^/| /' conftest.$ac_ext >&5
15843
15844echo "$as_me:$LINENO: result: no" >&5
15845echo "${ECHO_T}no" >&6
15846 cat >>confdefs.h <<\_ACEOF
15847#define __POWERPC__ 1
15848_ACEOF
15849
15850
15851fi
15852rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
cfda0ea8
DE
15853 ;;
15854esac
15855
15856case "${host}" in
15857 *-*-darwin* )
4d7ec9f1
DE
15858 echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5
15859echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6
15860 cat >conftest.$ac_ext <<_ACEOF
15861/* confdefs.h. */
15862_ACEOF
15863cat confdefs.h >>conftest.$ac_ext
15864cat >>conftest.$ac_ext <<_ACEOF
15865/* end confdefs.h. */
15866#include <CoreFoundation/CFBase.h>
15867
15868int
15869main ()
15870{
15871
15872 ;
15873 return 0;
15874}
15875_ACEOF
15876rm -f conftest.$ac_objext
15877if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15878 (eval $ac_compile) 2>conftest.er1
15879 ac_status=$?
15880 grep -v '^ *+' conftest.er1 >conftest.err
15881 rm -f conftest.er1
15882 cat conftest.err >&5
15883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15884 (exit $ac_status); } &&
bb9e79c0 15885 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
15886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15887 (eval $ac_try) 2>&5
15888 ac_status=$?
15889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15890 (exit $ac_status); }; } &&
15891 { ac_try='test -s conftest.$ac_objext'
15892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15893 (eval $ac_try) 2>&5
15894 ac_status=$?
15895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15896 (exit $ac_status); }; }; then
15897 echo "$as_me:$LINENO: result: yes" >&5
15898echo "${ECHO_T}yes" >&6
15899else
15900 echo "$as_me: failed program was:" >&5
15901sed 's/^/| /' conftest.$ac_ext >&5
15902
15903echo "$as_me:$LINENO: result: no" >&5
15904echo "${ECHO_T}no" >&6
15905 echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5
15906echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6
15907 cat >conftest.$ac_ext <<_ACEOF
15908/* confdefs.h. */
15909_ACEOF
15910cat confdefs.h >>conftest.$ac_ext
15911cat >>conftest.$ac_ext <<_ACEOF
15912/* end confdefs.h. */
15913#define __CF_USE_FRAMEWORK_INCLUDES__
15914#include <CoreFoundation/CFBase.h>
15915
15916int
15917main ()
15918{
15919
15920 ;
15921 return 0;
15922}
15923_ACEOF
15924rm -f conftest.$ac_objext
15925if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15926 (eval $ac_compile) 2>conftest.er1
15927 ac_status=$?
15928 grep -v '^ *+' conftest.er1 >conftest.err
15929 rm -f conftest.er1
15930 cat conftest.err >&5
15931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15932 (exit $ac_status); } &&
bb9e79c0 15933 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
15934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15935 (eval $ac_try) 2>&5
15936 ac_status=$?
15937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15938 (exit $ac_status); }; } &&
15939 { ac_try='test -s conftest.$ac_objext'
15940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15941 (eval $ac_try) 2>&5
15942 ac_status=$?
15943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15944 (exit $ac_status); }; }; then
15945 echo "$as_me:$LINENO: result: yes" >&5
15946echo "${ECHO_T}yes" >&6
c92ad099 15947 CPPFLAGS="-D__CF_USE_FRAMEWORK_INCLUDES__ $CPPFLAGS"
4d7ec9f1
DE
15948else
15949 echo "$as_me: failed program was:" >&5
15950sed 's/^/| /' conftest.$ac_ext >&5
15951
15952{ { echo "$as_me:$LINENO: error: no. CoreFoundation not available.
15953See \`config.log' for more details." >&5
15954echo "$as_me: error: no. CoreFoundation not available.
15955See \`config.log' for more details." >&2;}
15956 { (exit 1); exit 1; }; }
15957
15958fi
15959rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15960
15961
15962fi
15963rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15964 ;;
15965esac
15966
8bf7f1a9
VZ
15967wants_win32=0
15968doesnt_want_win32=0
15969case "${host}" in
15970 *-*-cygwin*)
15971 if test "$wxUSE_MSW" = 1 ; then
15972 wants_win32=1
15973 else
15974 echo "$as_me:$LINENO: checking if -mno-cygwin is in effect" >&5
15975echo $ECHO_N "checking if -mno-cygwin is in effect... $ECHO_C" >&6
15976if test "${wx_cv_nocygwin+set}" = set; then
15977 echo $ECHO_N "(cached) $ECHO_C" >&6
15978else
15979
15980 cat >conftest.$ac_ext <<_ACEOF
15981/* confdefs.h. */
15982_ACEOF
15983cat confdefs.h >>conftest.$ac_ext
15984cat >>conftest.$ac_ext <<_ACEOF
15985/* end confdefs.h. */
15986
15987int
15988main ()
15989{
15990
15991 #ifdef __MINGW32__
15992 choke me
15993 #endif
15994
15995 ;
15996 return 0;
15997}
15998_ACEOF
15999rm -f conftest.$ac_objext
16000if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16001 (eval $ac_compile) 2>conftest.er1
16002 ac_status=$?
16003 grep -v '^ *+' conftest.er1 >conftest.err
16004 rm -f conftest.er1
16005 cat conftest.err >&5
16006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16007 (exit $ac_status); } &&
16008 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
16009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16010 (eval $ac_try) 2>&5
16011 ac_status=$?
16012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16013 (exit $ac_status); }; } &&
16014 { ac_try='test -s conftest.$ac_objext'
16015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16016 (eval $ac_try) 2>&5
16017 ac_status=$?
16018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16019 (exit $ac_status); }; }; then
16020 wx_cv_nocygwin=no
16021else
16022 echo "$as_me: failed program was:" >&5
16023sed 's/^/| /' conftest.$ac_ext >&5
16024
16025wx_cv_nocygwin=yes
16026
16027fi
16028rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16029
16030
16031fi
16032echo "$as_me:$LINENO: result: $wx_cv_nocygwin" >&5
16033echo "${ECHO_T}$wx_cv_nocygwin" >&6
16034
16035 if test "$wx_cv_nocygwin" = "yes"; then
16036 wants_win32=1
16037 else
16038 doesnt_want_win32=1
16039 fi
16040 fi
16041 if test "$wants_win32" = 1 ; then
16042 BAKEFILE_FORCE_PLATFORM=win32
16043 fi
16044 ;;
16045 *-*-mingw*)
16046 wants_win32=1
16047 ;;
16048esac
16049
16050if test "$wxUSE_WINE" = "yes"; then
16051 wants_win32=1
16052 CC=winegcc
16053 CXX=wineg++
16054 LDFLAGS_GUI="-mwindows"
16055fi
16056
16057if test "$wants_win32" = 1 ; then
16058 USE_UNIX=0
16059 USE_WIN32=1
16060 cat >>confdefs.h <<\_ACEOF
16061#define __WIN32__ 1
16062_ACEOF
16063
16064 cat >>confdefs.h <<\_ACEOF
16065#define __WIN95__ 1
16066_ACEOF
16067
16068 cat >>confdefs.h <<\_ACEOF
16069#define __WINDOWS__ 1
16070_ACEOF
16071
16072 cat >>confdefs.h <<\_ACEOF
16073#define __GNUWIN32__ 1
16074_ACEOF
16075
16076 cat >>confdefs.h <<\_ACEOF
16077#define STRICT 1
16078_ACEOF
16079
16080fi
16081if test "$doesnt_want_win32" = 1 ; then
16082 USE_UNIX=1
16083 USE_WIN32=0
16084fi
16085
16086if test "$USE_UNIX" = 1 ; then
16087 wxUSE_UNIX=yes
16088 cat >>confdefs.h <<\_ACEOF
16089#define __UNIX__ 1
16090_ACEOF
16091
16092fi
16093
a848cd7e
SC
16094case "${host}" in
16095 *-pc-os2_emx | *-pc-os2-emx )
6ba87b06
SN
16096 ac_ext=c
16097ac_cpp='$CPP $CPPFLAGS'
16098ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16099ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16100ac_compiler_gnu=$ac_cv_c_compiler_gnu
16101
16102 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
a848cd7e
SC
16103 echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
16104echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
16105if test "${ac_cv_lib_cExt_drand48+set}" = set; then
16106 echo $ECHO_N "(cached) $ECHO_C" >&6
16107else
16108 ac_check_lib_save_LIBS=$LIBS
16109LIBS="-lcExt $LIBS"
16110cat >conftest.$ac_ext <<_ACEOF
16111/* confdefs.h. */
16112_ACEOF
16113cat confdefs.h >>conftest.$ac_ext
16114cat >>conftest.$ac_ext <<_ACEOF
16115/* end confdefs.h. */
16116
16117/* Override any gcc2 internal prototype to avoid an error. */
16118#ifdef __cplusplus
16119extern "C"
16120#endif
16121/* We use char because int might match the return type of a gcc2
16122 builtin and then its argument prototype would still apply. */
16123char drand48 ();
16124int
16125main ()
16126{
16127drand48 ();
16128 ;
16129 return 0;
16130}
16131_ACEOF
16132rm -f conftest.$ac_objext conftest$ac_exeext
16133if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 16134 (eval $ac_link) 2>conftest.er1
a848cd7e 16135 ac_status=$?
ac1cb8d3
VS
16136 grep -v '^ *+' conftest.er1 >conftest.err
16137 rm -f conftest.er1
16138 cat conftest.err >&5
a848cd7e
SC
16139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16140 (exit $ac_status); } &&
bb9e79c0 16141 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16143 (eval $ac_try) 2>&5
16144 ac_status=$?
16145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16146 (exit $ac_status); }; } &&
16147 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
16148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16149 (eval $ac_try) 2>&5
16150 ac_status=$?
16151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16152 (exit $ac_status); }; }; then
16153 ac_cv_lib_cExt_drand48=yes
16154else
16155 echo "$as_me: failed program was:" >&5
16156sed 's/^/| /' conftest.$ac_ext >&5
16157
16158ac_cv_lib_cExt_drand48=no
16159fi
ac1cb8d3
VS
16160rm -f conftest.err conftest.$ac_objext \
16161 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
16162LIBS=$ac_check_lib_save_LIBS
16163fi
16164echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
16165echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
16166if test $ac_cv_lib_cExt_drand48 = yes; then
16167 LIBS="$LIBS -lcExt"
16168fi
16169
16170 else
16171 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
16172 fi
69120ee4
VZ
16173 echo "$as_me:$LINENO: checking for gcc/libc version" >&5
16174echo $ECHO_N "checking for gcc/libc version... $ECHO_C" >&6
a848cd7e
SC
16175if test "${wx_cv_gccversion+set}" = set; then
16176 echo $ECHO_N "(cached) $ECHO_C" >&6
16177else
16178
391a765e
VS
16179 if test "$cross_compiling" = yes; then
16180 wx_cv_gccversion="EMX2"
16181
16182else
16183 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
16184/* confdefs.h. */
16185_ACEOF
16186cat confdefs.h >>conftest.$ac_ext
16187cat >>conftest.$ac_ext <<_ACEOF
16188/* end confdefs.h. */
16189
391a765e 16190 #include <stdio.h>
a848cd7e 16191
391a765e
VS
16192 int main()
16193 {
16194 FILE *f=fopen("conftestval", "w");
16195 if (!f) exit(1);
16196 fprintf(f,
a848cd7e 16197 #if (__GNUC__ < 3)
391a765e
VS
16198 "EMX2"
16199 #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
16200 "EMX3"
16201 #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2)
16202 "Innotek5"
16203 #else
16204 "Innotek6"
a848cd7e 16205 #endif
5039a2df 16206 );
391a765e
VS
16207 exit(0);
16208 }
a848cd7e 16209
a848cd7e 16210_ACEOF
391a765e
VS
16211rm -f conftest$ac_exeext
16212if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16213 (eval $ac_link) 2>&5
ac1cb8d3
VS
16214 ac_status=$?
16215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
391a765e 16216 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
a848cd7e
SC
16217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16218 (eval $ac_try) 2>&5
16219 ac_status=$?
16220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16221 (exit $ac_status); }; }; then
391a765e 16222 wx_cv_gccversion=`cat conftestval`
a848cd7e 16223else
391a765e
VS
16224 echo "$as_me: program exited with status $ac_status" >&5
16225echo "$as_me: failed program was:" >&5
a848cd7e
SC
16226sed 's/^/| /' conftest.$ac_ext >&5
16227
391a765e
VS
16228( exit $ac_status )
16229wx_cv_gccversion="EMX2"
a848cd7e 16230fi
391a765e 16231rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 16232fi
a848cd7e
SC
16233
16234fi
16235echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
16236echo "${ECHO_T}$wx_cv_gccversion" >&6
6ba87b06
SN
16237 ac_ext=cc
16238ac_cpp='$CXXCPP $CPPFLAGS'
16239ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16240ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16241ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16242
391a765e 16243 if test "$wx_cv_gccversion" = "EMX2"; then
a848cd7e
SC
16244 LIBS="$LIBS -lstdcpp"
16245 LDFLAGS="$LDFLAGS -Zsysv-signals"
16246 else
391a765e 16247 if test "$wx_cv_gccversion" = "EMX3"; then
ddd14b14 16248 LIBS="$LIBS -lstdcxx -lgcc"
a848cd7e
SC
16249 LDFLAGS="$LDFLAGS -Zsysv-signals"
16250 else
16251 LIBS="$LIBS -lstdc++"
16252 fi
16253 fi
94acd38e
DE
16254 if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then
16255 { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5
16256echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;}
16257 wxUSE_OMF=yes
ec3edcc9 16258 enable_omf=yes
a848cd7e
SC
16259 fi
16260 ;;
16261 *)
16262
95986553 16263 echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
a848cd7e
SC
16264echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6
16265if test "${ac_cv_string_strcasecmp+set}" = set; then
16266 echo $ECHO_N "(cached) $ECHO_C" >&6
16267else
16268
16269 cat >conftest.$ac_ext <<_ACEOF
16270/* confdefs.h. */
16271_ACEOF
16272cat confdefs.h >>conftest.$ac_ext
16273cat >>conftest.$ac_ext <<_ACEOF
16274/* end confdefs.h. */
16275
16276 #include <string.h>
16277
16278int
16279main ()
16280{
16281
16282 strcasecmp("foo", "bar");
16283
16284 ;
16285 return 0;
16286}
16287_ACEOF
16288rm -f conftest.$ac_objext conftest$ac_exeext
16289if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 16290 (eval $ac_link) 2>conftest.er1
a848cd7e 16291 ac_status=$?
ac1cb8d3
VS
16292 grep -v '^ *+' conftest.er1 >conftest.err
16293 rm -f conftest.er1
16294 cat conftest.err >&5
a848cd7e
SC
16295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16296 (exit $ac_status); } &&
bb9e79c0 16297 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16299 (eval $ac_try) 2>&5
16300 ac_status=$?
16301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16302 (exit $ac_status); }; } &&
16303 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
16304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16305 (eval $ac_try) 2>&5
16306 ac_status=$?
16307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16308 (exit $ac_status); }; }; then
16309 ac_cv_string_strcasecmp=yes
16310else
16311 echo "$as_me: failed program was:" >&5
16312sed 's/^/| /' conftest.$ac_ext >&5
16313
16314ac_cv_string_strcasecmp=no
16315
16316fi
ac1cb8d3
VS
16317rm -f conftest.err conftest.$ac_objext \
16318 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
16319
16320fi
16321echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
16322echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6
16323
16324 if test x"$ac_cv_string_strcasecmp" = "xyes"; then
16325 cat >>confdefs.h <<\_ACEOF
16326#define HAVE_STRCASECMP_IN_STRING_H 1
16327_ACEOF
16328
16329 else
16330 echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
16331echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6
16332if test "${ac_cv_strings_strcasecmp+set}" = set; then
16333 echo $ECHO_N "(cached) $ECHO_C" >&6
16334else
16335
16336 cat >conftest.$ac_ext <<_ACEOF
16337/* confdefs.h. */
16338_ACEOF
16339cat confdefs.h >>conftest.$ac_ext
16340cat >>conftest.$ac_ext <<_ACEOF
16341/* end confdefs.h. */
16342
16343 #include <strings.h>
16344
16345int
16346main ()
16347{
16348
16349 strcasecmp("foo", "bar");
16350
16351 ;
16352 return 0;
16353}
16354_ACEOF
16355rm -f conftest.$ac_objext conftest$ac_exeext
16356if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 16357 (eval $ac_link) 2>conftest.er1
a848cd7e 16358 ac_status=$?
ac1cb8d3
VS
16359 grep -v '^ *+' conftest.er1 >conftest.err
16360 rm -f conftest.er1
16361 cat conftest.err >&5
a848cd7e
SC
16362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16363 (exit $ac_status); } &&
bb9e79c0 16364 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16366 (eval $ac_try) 2>&5
16367 ac_status=$?
16368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16369 (exit $ac_status); }; } &&
16370 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
16371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16372 (eval $ac_try) 2>&5
16373 ac_status=$?
16374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16375 (exit $ac_status); }; }; then
16376 ac_cv_strings_strcasecmp=yes
16377else
16378 echo "$as_me: failed program was:" >&5
16379sed 's/^/| /' conftest.$ac_ext >&5
16380
16381ac_cv_strings_strcasecmp=no
16382
16383fi
ac1cb8d3
VS
16384rm -f conftest.err conftest.$ac_objext \
16385 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
16386
16387fi
16388echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
16389echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6
16390
0c3c69fc 16391 if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
a848cd7e
SC
16392 cat >>confdefs.h <<\_ACEOF
16393#define HAVE_STRCASECMP_IN_STRINGS_H 1
16394_ACEOF
16395
16396 else
16397 { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
16398echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
16399 { (exit 1); exit 1; }; }
16400 fi
16401 fi
16402
a848cd7e
SC
16403 ;;
16404esac
16405
16406
5d7b7554
VZ
16407ac_ext=cc
16408ac_cpp='$CXXCPP $CPPFLAGS'
16409ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16410ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16411ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16412echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
16413echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
16414if test -z "$CXXCPP"; then
16415 if test "${ac_cv_prog_CXXCPP+set}" = set; then
16416 echo $ECHO_N "(cached) $ECHO_C" >&6
16417else
16418 # Double quotes because CXXCPP needs to be expanded
16419 for CXXCPP in "$CXX -E" "/lib/cpp"
16420 do
16421 ac_preproc_ok=false
16422for ac_cxx_preproc_warn_flag in '' yes
16423do
16424 # Use a header file that comes with gcc, so configuring glibc
16425 # with a fresh cross-compiler works.
16426 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16427 # <limits.h> exists even on freestanding compilers.
16428 # On the NeXT, cc -E runs the code through the compiler's parser,
16429 # not just through cpp. "Syntax error" is here to catch this case.
16430 cat >conftest.$ac_ext <<_ACEOF
16431/* confdefs.h. */
16432_ACEOF
16433cat confdefs.h >>conftest.$ac_ext
16434cat >>conftest.$ac_ext <<_ACEOF
16435/* end confdefs.h. */
16436#ifdef __STDC__
16437# include <limits.h>
16438#else
16439# include <assert.h>
16440#endif
16441 Syntax error
16442_ACEOF
16443if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16444 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16445 ac_status=$?
16446 grep -v '^ *+' conftest.er1 >conftest.err
16447 rm -f conftest.er1
16448 cat conftest.err >&5
16449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16450 (exit $ac_status); } >/dev/null; then
16451 if test -s conftest.err; then
16452 ac_cpp_err=$ac_cxx_preproc_warn_flag
16453 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
16454 else
16455 ac_cpp_err=
16456 fi
16457else
16458 ac_cpp_err=yes
16459fi
16460if test -z "$ac_cpp_err"; then
16461 :
16462else
16463 echo "$as_me: failed program was:" >&5
16464sed 's/^/| /' conftest.$ac_ext >&5
16465
16466 # Broken: fails on valid input.
16467continue
16468fi
16469rm -f conftest.err conftest.$ac_ext
16470
16471 # OK, works on sane cases. Now check whether non-existent headers
16472 # can be detected and how.
16473 cat >conftest.$ac_ext <<_ACEOF
16474/* confdefs.h. */
16475_ACEOF
16476cat confdefs.h >>conftest.$ac_ext
16477cat >>conftest.$ac_ext <<_ACEOF
16478/* end confdefs.h. */
16479#include <ac_nonexistent.h>
16480_ACEOF
16481if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16482 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16483 ac_status=$?
16484 grep -v '^ *+' conftest.er1 >conftest.err
16485 rm -f conftest.er1
16486 cat conftest.err >&5
16487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16488 (exit $ac_status); } >/dev/null; then
16489 if test -s conftest.err; then
16490 ac_cpp_err=$ac_cxx_preproc_warn_flag
16491 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
16492 else
16493 ac_cpp_err=
16494 fi
16495else
16496 ac_cpp_err=yes
16497fi
16498if test -z "$ac_cpp_err"; then
16499 # Broken: success on invalid input.
16500continue
16501else
16502 echo "$as_me: failed program was:" >&5
16503sed 's/^/| /' conftest.$ac_ext >&5
16504
16505 # Passes both tests.
16506ac_preproc_ok=:
16507break
16508fi
16509rm -f conftest.err conftest.$ac_ext
16510
16511done
16512# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16513rm -f conftest.err conftest.$ac_ext
16514if $ac_preproc_ok; then
16515 break
16516fi
16517
16518 done
16519 ac_cv_prog_CXXCPP=$CXXCPP
16520
16521fi
16522 CXXCPP=$ac_cv_prog_CXXCPP
16523else
16524 ac_cv_prog_CXXCPP=$CXXCPP
16525fi
16526echo "$as_me:$LINENO: result: $CXXCPP" >&5
16527echo "${ECHO_T}$CXXCPP" >&6
16528ac_preproc_ok=false
16529for ac_cxx_preproc_warn_flag in '' yes
16530do
16531 # Use a header file that comes with gcc, so configuring glibc
16532 # with a fresh cross-compiler works.
16533 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16534 # <limits.h> exists even on freestanding compilers.
16535 # On the NeXT, cc -E runs the code through the compiler's parser,
16536 # not just through cpp. "Syntax error" is here to catch this case.
16537 cat >conftest.$ac_ext <<_ACEOF
16538/* confdefs.h. */
16539_ACEOF
16540cat confdefs.h >>conftest.$ac_ext
16541cat >>conftest.$ac_ext <<_ACEOF
16542/* end confdefs.h. */
16543#ifdef __STDC__
16544# include <limits.h>
16545#else
16546# include <assert.h>
16547#endif
16548 Syntax error
16549_ACEOF
16550if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16551 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16552 ac_status=$?
16553 grep -v '^ *+' conftest.er1 >conftest.err
16554 rm -f conftest.er1
16555 cat conftest.err >&5
16556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16557 (exit $ac_status); } >/dev/null; then
16558 if test -s conftest.err; then
16559 ac_cpp_err=$ac_cxx_preproc_warn_flag
16560 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
16561 else
16562 ac_cpp_err=
16563 fi
16564else
16565 ac_cpp_err=yes
16566fi
16567if test -z "$ac_cpp_err"; then
16568 :
16569else
16570 echo "$as_me: failed program was:" >&5
16571sed 's/^/| /' conftest.$ac_ext >&5
16572
16573 # Broken: fails on valid input.
16574continue
16575fi
16576rm -f conftest.err conftest.$ac_ext
16577
16578 # OK, works on sane cases. Now check whether non-existent headers
16579 # can be detected and how.
16580 cat >conftest.$ac_ext <<_ACEOF
16581/* confdefs.h. */
16582_ACEOF
16583cat confdefs.h >>conftest.$ac_ext
16584cat >>conftest.$ac_ext <<_ACEOF
16585/* end confdefs.h. */
16586#include <ac_nonexistent.h>
16587_ACEOF
16588if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16589 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16590 ac_status=$?
16591 grep -v '^ *+' conftest.er1 >conftest.err
16592 rm -f conftest.er1
16593 cat conftest.err >&5
16594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16595 (exit $ac_status); } >/dev/null; then
16596 if test -s conftest.err; then
16597 ac_cpp_err=$ac_cxx_preproc_warn_flag
16598 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
16599 else
16600 ac_cpp_err=
16601 fi
16602else
16603 ac_cpp_err=yes
16604fi
16605if test -z "$ac_cpp_err"; then
16606 # Broken: success on invalid input.
16607continue
16608else
16609 echo "$as_me: failed program was:" >&5
16610sed 's/^/| /' conftest.$ac_ext >&5
16611
16612 # Passes both tests.
16613ac_preproc_ok=:
16614break
16615fi
16616rm -f conftest.err conftest.$ac_ext
16617
16618done
16619# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16620rm -f conftest.err conftest.$ac_ext
16621if $ac_preproc_ok; then
16622 :
16623else
16624 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
16625See \`config.log' for more details." >&5
16626echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
16627See \`config.log' for more details." >&2;}
16628 { (exit 1); exit 1; }; }
16629fi
16630
16631ac_ext=cc
16632ac_cpp='$CXXCPP $CPPFLAGS'
16633ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16634ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16635ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16636
16637
a848cd7e
SC
16638echo "$as_me:$LINENO: checking for ANSI C header files" >&5
16639echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
16640if test "${ac_cv_header_stdc+set}" = set; then
16641 echo $ECHO_N "(cached) $ECHO_C" >&6
16642else
16643 cat >conftest.$ac_ext <<_ACEOF
16644/* confdefs.h. */
16645_ACEOF
16646cat confdefs.h >>conftest.$ac_ext
16647cat >>conftest.$ac_ext <<_ACEOF
16648/* end confdefs.h. */
16649#include <stdlib.h>
16650#include <stdarg.h>
16651#include <string.h>
16652#include <float.h>
16653
16654int
16655main ()
16656{
16657
16658 ;
16659 return 0;
16660}
16661_ACEOF
16662rm -f conftest.$ac_objext
16663if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16664 (eval $ac_compile) 2>conftest.er1
a848cd7e 16665 ac_status=$?
ac1cb8d3
VS
16666 grep -v '^ *+' conftest.er1 >conftest.err
16667 rm -f conftest.er1
16668 cat conftest.err >&5
a848cd7e
SC
16669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16670 (exit $ac_status); } &&
bb9e79c0 16671 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16673 (eval $ac_try) 2>&5
16674 ac_status=$?
16675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16676 (exit $ac_status); }; } &&
16677 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16679 (eval $ac_try) 2>&5
16680 ac_status=$?
16681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16682 (exit $ac_status); }; }; then
16683 ac_cv_header_stdc=yes
16684else
16685 echo "$as_me: failed program was:" >&5
16686sed 's/^/| /' conftest.$ac_ext >&5
16687
16688ac_cv_header_stdc=no
16689fi
ac1cb8d3 16690rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16691
16692if test $ac_cv_header_stdc = yes; then
16693 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16694 cat >conftest.$ac_ext <<_ACEOF
16695/* confdefs.h. */
16696_ACEOF
16697cat confdefs.h >>conftest.$ac_ext
16698cat >>conftest.$ac_ext <<_ACEOF
16699/* end confdefs.h. */
16700#include <string.h>
16701
16702_ACEOF
16703if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16704 $EGREP "memchr" >/dev/null 2>&1; then
16705 :
16706else
16707 ac_cv_header_stdc=no
16708fi
16709rm -f conftest*
16710
16711fi
16712
16713if test $ac_cv_header_stdc = yes; then
16714 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16715 cat >conftest.$ac_ext <<_ACEOF
16716/* confdefs.h. */
16717_ACEOF
16718cat confdefs.h >>conftest.$ac_ext
16719cat >>conftest.$ac_ext <<_ACEOF
16720/* end confdefs.h. */
16721#include <stdlib.h>
16722
16723_ACEOF
16724if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16725 $EGREP "free" >/dev/null 2>&1; then
16726 :
16727else
16728 ac_cv_header_stdc=no
16729fi
16730rm -f conftest*
16731
16732fi
16733
16734if test $ac_cv_header_stdc = yes; then
16735 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16736 if test "$cross_compiling" = yes; then
16737 :
16738else
16739 cat >conftest.$ac_ext <<_ACEOF
16740/* confdefs.h. */
16741_ACEOF
16742cat confdefs.h >>conftest.$ac_ext
16743cat >>conftest.$ac_ext <<_ACEOF
16744/* end confdefs.h. */
16745#include <ctype.h>
16746#if ((' ' & 0x0FF) == 0x020)
16747# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16748# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16749#else
16750# define ISLOWER(c) \
ac1cb8d3
VS
16751 (('a' <= (c) && (c) <= 'i') \
16752 || ('j' <= (c) && (c) <= 'r') \
16753 || ('s' <= (c) && (c) <= 'z'))
a848cd7e
SC
16754# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
16755#endif
16756
16757#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16758int
16759main ()
16760{
16761 int i;
16762 for (i = 0; i < 256; i++)
16763 if (XOR (islower (i), ISLOWER (i))
ac1cb8d3 16764 || toupper (i) != TOUPPER (i))
a848cd7e
SC
16765 exit(2);
16766 exit (0);
16767}
16768_ACEOF
16769rm -f conftest$ac_exeext
16770if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16771 (eval $ac_link) 2>&5
16772 ac_status=$?
16773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16774 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16776 (eval $ac_try) 2>&5
16777 ac_status=$?
16778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16779 (exit $ac_status); }; }; then
16780 :
16781else
16782 echo "$as_me: program exited with status $ac_status" >&5
16783echo "$as_me: failed program was:" >&5
16784sed 's/^/| /' conftest.$ac_ext >&5
16785
16786( exit $ac_status )
16787ac_cv_header_stdc=no
16788fi
ac1cb8d3 16789rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16790fi
16791fi
16792fi
16793echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
16794echo "${ECHO_T}$ac_cv_header_stdc" >&6
16795if test $ac_cv_header_stdc = yes; then
16796
16797cat >>confdefs.h <<\_ACEOF
16798#define STDC_HEADERS 1
16799_ACEOF
16800
16801fi
16802
16803# On IRIX 5.3, sys/types and inttypes.h are conflicting.
16804
16805
16806
16807
16808
16809
16810
16811
16812
16813for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
ac1cb8d3 16814 inttypes.h stdint.h unistd.h
a848cd7e
SC
16815do
16816as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16817echo "$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
16821else
16822 cat >conftest.$ac_ext <<_ACEOF
16823/* confdefs.h. */
16824_ACEOF
16825cat confdefs.h >>conftest.$ac_ext
16826cat >>conftest.$ac_ext <<_ACEOF
16827/* end confdefs.h. */
16828$ac_includes_default
16829
16830#include <$ac_header>
16831_ACEOF
16832rm -f conftest.$ac_objext
16833if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16834 (eval $ac_compile) 2>conftest.er1
a848cd7e 16835 ac_status=$?
ac1cb8d3
VS
16836 grep -v '^ *+' conftest.er1 >conftest.err
16837 rm -f conftest.er1
16838 cat conftest.err >&5
a848cd7e
SC
16839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16840 (exit $ac_status); } &&
bb9e79c0 16841 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16843 (eval $ac_try) 2>&5
16844 ac_status=$?
16845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16846 (exit $ac_status); }; } &&
16847 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16849 (eval $ac_try) 2>&5
16850 ac_status=$?
16851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16852 (exit $ac_status); }; }; then
16853 eval "$as_ac_Header=yes"
16854else
16855 echo "$as_me: failed program was:" >&5
16856sed 's/^/| /' conftest.$ac_ext >&5
16857
16858eval "$as_ac_Header=no"
16859fi
ac1cb8d3 16860rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16861fi
16862echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16863echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16864if test `eval echo '${'$as_ac_Header'}'` = yes; then
16865 cat >>confdefs.h <<_ACEOF
16866#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16867_ACEOF
16868
16869fi
16870
16871done
16872
16873
16874
16875for ac_header in stdlib.h
16876do
16877as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16878if eval "test \"\${$as_ac_Header+set}\" = set"; then
16879 echo "$as_me:$LINENO: checking for $ac_header" >&5
16880echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16881if eval "test \"\${$as_ac_Header+set}\" = set"; then
16882 echo $ECHO_N "(cached) $ECHO_C" >&6
16883fi
16884echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16885echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16886else
16887 # Is the header compilable?
16888echo "$as_me:$LINENO: checking $ac_header usability" >&5
16889echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16890cat >conftest.$ac_ext <<_ACEOF
16891/* confdefs.h. */
16892_ACEOF
16893cat confdefs.h >>conftest.$ac_ext
16894cat >>conftest.$ac_ext <<_ACEOF
16895/* end confdefs.h. */
16896$ac_includes_default
16897#include <$ac_header>
16898_ACEOF
16899rm -f conftest.$ac_objext
16900if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16901 (eval $ac_compile) 2>conftest.er1
a848cd7e 16902 ac_status=$?
ac1cb8d3
VS
16903 grep -v '^ *+' conftest.er1 >conftest.err
16904 rm -f conftest.er1
16905 cat conftest.err >&5
a848cd7e
SC
16906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16907 (exit $ac_status); } &&
bb9e79c0 16908 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16910 (eval $ac_try) 2>&5
16911 ac_status=$?
16912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16913 (exit $ac_status); }; } &&
16914 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16916 (eval $ac_try) 2>&5
16917 ac_status=$?
16918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16919 (exit $ac_status); }; }; then
16920 ac_header_compiler=yes
16921else
16922 echo "$as_me: failed program was:" >&5
16923sed 's/^/| /' conftest.$ac_ext >&5
16924
16925ac_header_compiler=no
16926fi
ac1cb8d3 16927rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16928echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16929echo "${ECHO_T}$ac_header_compiler" >&6
16930
16931# Is the header present?
16932echo "$as_me:$LINENO: checking $ac_header presence" >&5
16933echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16934cat >conftest.$ac_ext <<_ACEOF
16935/* confdefs.h. */
16936_ACEOF
16937cat confdefs.h >>conftest.$ac_ext
16938cat >>conftest.$ac_ext <<_ACEOF
16939/* end confdefs.h. */
16940#include <$ac_header>
16941_ACEOF
16942if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16943 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16944 ac_status=$?
16945 grep -v '^ *+' conftest.er1 >conftest.err
16946 rm -f conftest.er1
16947 cat conftest.err >&5
16948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16949 (exit $ac_status); } >/dev/null; then
16950 if test -s conftest.err; then
5d7b7554
VZ
16951 ac_cpp_err=$ac_cxx_preproc_warn_flag
16952 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
16953 else
16954 ac_cpp_err=
16955 fi
16956else
16957 ac_cpp_err=yes
16958fi
16959if test -z "$ac_cpp_err"; then
16960 ac_header_preproc=yes
16961else
16962 echo "$as_me: failed program was:" >&5
16963sed 's/^/| /' conftest.$ac_ext >&5
16964
16965 ac_header_preproc=no
16966fi
16967rm -f conftest.err conftest.$ac_ext
16968echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16969echo "${ECHO_T}$ac_header_preproc" >&6
16970
16971# So? What about this header?
5d7b7554 16972case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 16973 yes:no: )
a848cd7e
SC
16974 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16975echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16976 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16977echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16978 ac_header_preproc=yes
a848cd7e 16979 ;;
ac1cb8d3 16980 no:yes:* )
a848cd7e
SC
16981 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16982echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16983 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16984echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16985 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16986echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16987 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16988echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16989 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16990echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16991 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16992echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16993 (
16994 cat <<\_ASBOX
ac1cb8d3
VS
16995## ----------------------------------------- ##
16996## Report this to wx-dev@lists.wxwidgets.org ##
16997## ----------------------------------------- ##
a848cd7e
SC
16998_ASBOX
16999 ) |
17000 sed "s/^/$as_me: WARNING: /" >&2
17001 ;;
17002esac
17003echo "$as_me:$LINENO: checking for $ac_header" >&5
17004echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17005if eval "test \"\${$as_ac_Header+set}\" = set"; then
17006 echo $ECHO_N "(cached) $ECHO_C" >&6
17007else
ac1cb8d3 17008 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
17009fi
17010echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17011echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17012
17013fi
17014if test `eval echo '${'$as_ac_Header'}'` = yes; then
17015 cat >>confdefs.h <<_ACEOF
17016#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17017_ACEOF
17018
17019fi
17020
17021done
17022
17023
17024for ac_header in malloc.h
17025do
17026as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17027if eval "test \"\${$as_ac_Header+set}\" = set"; then
17028 echo "$as_me:$LINENO: checking for $ac_header" >&5
17029echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17030if eval "test \"\${$as_ac_Header+set}\" = set"; then
17031 echo $ECHO_N "(cached) $ECHO_C" >&6
17032fi
17033echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17034echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17035else
17036 # Is the header compilable?
17037echo "$as_me:$LINENO: checking $ac_header usability" >&5
17038echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17039cat >conftest.$ac_ext <<_ACEOF
17040/* confdefs.h. */
17041_ACEOF
17042cat confdefs.h >>conftest.$ac_ext
17043cat >>conftest.$ac_ext <<_ACEOF
17044/* end confdefs.h. */
17045$ac_includes_default
17046#include <$ac_header>
17047_ACEOF
17048rm -f conftest.$ac_objext
17049if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17050 (eval $ac_compile) 2>conftest.er1
a848cd7e 17051 ac_status=$?
ac1cb8d3
VS
17052 grep -v '^ *+' conftest.er1 >conftest.err
17053 rm -f conftest.er1
17054 cat conftest.err >&5
a848cd7e
SC
17055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17056 (exit $ac_status); } &&
bb9e79c0 17057 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17059 (eval $ac_try) 2>&5
17060 ac_status=$?
17061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17062 (exit $ac_status); }; } &&
17063 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17065 (eval $ac_try) 2>&5
17066 ac_status=$?
17067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17068 (exit $ac_status); }; }; then
17069 ac_header_compiler=yes
17070else
17071 echo "$as_me: failed program was:" >&5
17072sed 's/^/| /' conftest.$ac_ext >&5
17073
17074ac_header_compiler=no
17075fi
ac1cb8d3 17076rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17077echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17078echo "${ECHO_T}$ac_header_compiler" >&6
17079
17080# Is the header present?
17081echo "$as_me:$LINENO: checking $ac_header presence" >&5
17082echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17083cat >conftest.$ac_ext <<_ACEOF
17084/* confdefs.h. */
17085_ACEOF
17086cat confdefs.h >>conftest.$ac_ext
17087cat >>conftest.$ac_ext <<_ACEOF
17088/* end confdefs.h. */
17089#include <$ac_header>
17090_ACEOF
17091if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17092 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17093 ac_status=$?
17094 grep -v '^ *+' conftest.er1 >conftest.err
17095 rm -f conftest.er1
17096 cat conftest.err >&5
17097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17098 (exit $ac_status); } >/dev/null; then
17099 if test -s conftest.err; then
5d7b7554
VZ
17100 ac_cpp_err=$ac_cxx_preproc_warn_flag
17101 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
17102 else
17103 ac_cpp_err=
17104 fi
17105else
17106 ac_cpp_err=yes
17107fi
17108if test -z "$ac_cpp_err"; then
17109 ac_header_preproc=yes
17110else
17111 echo "$as_me: failed program was:" >&5
17112sed 's/^/| /' conftest.$ac_ext >&5
17113
17114 ac_header_preproc=no
17115fi
17116rm -f conftest.err conftest.$ac_ext
17117echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17118echo "${ECHO_T}$ac_header_preproc" >&6
17119
17120# So? What about this header?
5d7b7554 17121case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 17122 yes:no: )
a848cd7e
SC
17123 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17124echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
17125 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17126echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17127 ac_header_preproc=yes
a848cd7e 17128 ;;
ac1cb8d3 17129 no:yes:* )
a848cd7e
SC
17130 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17131echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
17132 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17133echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17134 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17135echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17136 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17137echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
17138 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17139echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
17140 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17141echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
17142 (
17143 cat <<\_ASBOX
ac1cb8d3
VS
17144## ----------------------------------------- ##
17145## Report this to wx-dev@lists.wxwidgets.org ##
17146## ----------------------------------------- ##
a848cd7e
SC
17147_ASBOX
17148 ) |
17149 sed "s/^/$as_me: WARNING: /" >&2
17150 ;;
17151esac
17152echo "$as_me:$LINENO: checking for $ac_header" >&5
17153echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17154if eval "test \"\${$as_ac_Header+set}\" = set"; then
17155 echo $ECHO_N "(cached) $ECHO_C" >&6
17156else
ac1cb8d3 17157 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
17158fi
17159echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17160echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17161
17162fi
17163if test `eval echo '${'$as_ac_Header'}'` = yes; then
17164 cat >>confdefs.h <<_ACEOF
17165#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17166_ACEOF
17167
17168fi
17169
17170done
17171
17172
17173for ac_header in unistd.h
17174do
17175as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17176if eval "test \"\${$as_ac_Header+set}\" = set"; then
17177 echo "$as_me:$LINENO: checking for $ac_header" >&5
17178echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17179if eval "test \"\${$as_ac_Header+set}\" = set"; then
17180 echo $ECHO_N "(cached) $ECHO_C" >&6
17181fi
17182echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17183echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17184else
17185 # Is the header compilable?
17186echo "$as_me:$LINENO: checking $ac_header usability" >&5
17187echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17188cat >conftest.$ac_ext <<_ACEOF
17189/* confdefs.h. */
17190_ACEOF
17191cat confdefs.h >>conftest.$ac_ext
17192cat >>conftest.$ac_ext <<_ACEOF
17193/* end confdefs.h. */
17194$ac_includes_default
17195#include <$ac_header>
17196_ACEOF
17197rm -f conftest.$ac_objext
17198if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17199 (eval $ac_compile) 2>conftest.er1
a848cd7e 17200 ac_status=$?
ac1cb8d3
VS
17201 grep -v '^ *+' conftest.er1 >conftest.err
17202 rm -f conftest.er1
17203 cat conftest.err >&5
a848cd7e
SC
17204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17205 (exit $ac_status); } &&
bb9e79c0 17206 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17208 (eval $ac_try) 2>&5
17209 ac_status=$?
17210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17211 (exit $ac_status); }; } &&
17212 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17214 (eval $ac_try) 2>&5
17215 ac_status=$?
17216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17217 (exit $ac_status); }; }; then
17218 ac_header_compiler=yes
17219else
17220 echo "$as_me: failed program was:" >&5
17221sed 's/^/| /' conftest.$ac_ext >&5
17222
17223ac_header_compiler=no
17224fi
ac1cb8d3 17225rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17226echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17227echo "${ECHO_T}$ac_header_compiler" >&6
17228
17229# Is the header present?
17230echo "$as_me:$LINENO: checking $ac_header presence" >&5
17231echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17232cat >conftest.$ac_ext <<_ACEOF
17233/* confdefs.h. */
17234_ACEOF
17235cat confdefs.h >>conftest.$ac_ext
17236cat >>conftest.$ac_ext <<_ACEOF
17237/* end confdefs.h. */
17238#include <$ac_header>
17239_ACEOF
17240if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17241 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17242 ac_status=$?
17243 grep -v '^ *+' conftest.er1 >conftest.err
17244 rm -f conftest.er1
17245 cat conftest.err >&5
17246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17247 (exit $ac_status); } >/dev/null; then
17248 if test -s conftest.err; then
5d7b7554
VZ
17249 ac_cpp_err=$ac_cxx_preproc_warn_flag
17250 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
17251 else
17252 ac_cpp_err=
17253 fi
17254else
17255 ac_cpp_err=yes
17256fi
17257if test -z "$ac_cpp_err"; then
17258 ac_header_preproc=yes
17259else
17260 echo "$as_me: failed program was:" >&5
17261sed 's/^/| /' conftest.$ac_ext >&5
17262
17263 ac_header_preproc=no
17264fi
17265rm -f conftest.err conftest.$ac_ext
17266echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17267echo "${ECHO_T}$ac_header_preproc" >&6
17268
17269# So? What about this header?
5d7b7554 17270case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 17271 yes:no: )
a848cd7e
SC
17272 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17273echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
17274 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17275echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17276 ac_header_preproc=yes
a848cd7e 17277 ;;
ac1cb8d3 17278 no:yes:* )
a848cd7e
SC
17279 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17280echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
17281 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17282echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17283 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17284echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17285 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17286echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
17287 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17288echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
17289 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17290echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
17291 (
17292 cat <<\_ASBOX
ac1cb8d3
VS
17293## ----------------------------------------- ##
17294## Report this to wx-dev@lists.wxwidgets.org ##
17295## ----------------------------------------- ##
a848cd7e
SC
17296_ASBOX
17297 ) |
17298 sed "s/^/$as_me: WARNING: /" >&2
17299 ;;
17300esac
17301echo "$as_me:$LINENO: checking for $ac_header" >&5
17302echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17303if eval "test \"\${$as_ac_Header+set}\" = set"; then
17304 echo $ECHO_N "(cached) $ECHO_C" >&6
17305else
ac1cb8d3 17306 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
17307fi
17308echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17309echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17310
17311fi
17312if test `eval echo '${'$as_ac_Header'}'` = yes; then
17313 cat >>confdefs.h <<_ACEOF
17314#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17315_ACEOF
17316
17317fi
17318
17319done
17320
17321
17322for ac_header in wchar.h
17323do
17324as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17325if eval "test \"\${$as_ac_Header+set}\" = set"; then
17326 echo "$as_me:$LINENO: checking for $ac_header" >&5
17327echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17328if eval "test \"\${$as_ac_Header+set}\" = set"; then
17329 echo $ECHO_N "(cached) $ECHO_C" >&6
17330fi
17331echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17332echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17333else
17334 # Is the header compilable?
17335echo "$as_me:$LINENO: checking $ac_header usability" >&5
17336echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17337cat >conftest.$ac_ext <<_ACEOF
17338/* confdefs.h. */
17339_ACEOF
17340cat confdefs.h >>conftest.$ac_ext
17341cat >>conftest.$ac_ext <<_ACEOF
17342/* end confdefs.h. */
17343$ac_includes_default
17344#include <$ac_header>
17345_ACEOF
17346rm -f conftest.$ac_objext
17347if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17348 (eval $ac_compile) 2>conftest.er1
a848cd7e 17349 ac_status=$?
ac1cb8d3
VS
17350 grep -v '^ *+' conftest.er1 >conftest.err
17351 rm -f conftest.er1
17352 cat conftest.err >&5
a848cd7e
SC
17353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17354 (exit $ac_status); } &&
bb9e79c0 17355 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17357 (eval $ac_try) 2>&5
17358 ac_status=$?
17359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17360 (exit $ac_status); }; } &&
17361 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17363 (eval $ac_try) 2>&5
17364 ac_status=$?
17365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17366 (exit $ac_status); }; }; then
17367 ac_header_compiler=yes
17368else
17369 echo "$as_me: failed program was:" >&5
17370sed 's/^/| /' conftest.$ac_ext >&5
17371
17372ac_header_compiler=no
17373fi
ac1cb8d3 17374rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17375echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17376echo "${ECHO_T}$ac_header_compiler" >&6
17377
17378# Is the header present?
17379echo "$as_me:$LINENO: checking $ac_header presence" >&5
17380echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17381cat >conftest.$ac_ext <<_ACEOF
17382/* confdefs.h. */
17383_ACEOF
17384cat confdefs.h >>conftest.$ac_ext
17385cat >>conftest.$ac_ext <<_ACEOF
17386/* end confdefs.h. */
17387#include <$ac_header>
17388_ACEOF
17389if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17390 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17391 ac_status=$?
17392 grep -v '^ *+' conftest.er1 >conftest.err
17393 rm -f conftest.er1
17394 cat conftest.err >&5
17395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17396 (exit $ac_status); } >/dev/null; then
17397 if test -s conftest.err; then
5d7b7554
VZ
17398 ac_cpp_err=$ac_cxx_preproc_warn_flag
17399 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
17400 else
17401 ac_cpp_err=
17402 fi
17403else
17404 ac_cpp_err=yes
17405fi
17406if test -z "$ac_cpp_err"; then
17407 ac_header_preproc=yes
17408else
17409 echo "$as_me: failed program was:" >&5
17410sed 's/^/| /' conftest.$ac_ext >&5
17411
17412 ac_header_preproc=no
17413fi
17414rm -f conftest.err conftest.$ac_ext
17415echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17416echo "${ECHO_T}$ac_header_preproc" >&6
17417
17418# So? What about this header?
5d7b7554 17419case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 17420 yes:no: )
a848cd7e
SC
17421 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17422echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
17423 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17424echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17425 ac_header_preproc=yes
a848cd7e 17426 ;;
ac1cb8d3 17427 no:yes:* )
a848cd7e
SC
17428 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17429echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
17430 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17431echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17432 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17433echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17434 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17435echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
17436 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17437echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
17438 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17439echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
17440 (
17441 cat <<\_ASBOX
ac1cb8d3
VS
17442## ----------------------------------------- ##
17443## Report this to wx-dev@lists.wxwidgets.org ##
17444## ----------------------------------------- ##
a848cd7e
SC
17445_ASBOX
17446 ) |
17447 sed "s/^/$as_me: WARNING: /" >&2
17448 ;;
17449esac
17450echo "$as_me:$LINENO: checking for $ac_header" >&5
17451echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17452if eval "test \"\${$as_ac_Header+set}\" = set"; then
17453 echo $ECHO_N "(cached) $ECHO_C" >&6
17454else
ac1cb8d3 17455 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
17456fi
17457echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17458echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17459
17460fi
17461if test `eval echo '${'$as_ac_Header'}'` = yes; then
17462 cat >>confdefs.h <<_ACEOF
17463#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17464_ACEOF
17465
17466fi
17467
17468done
17469
17470
17471if test "$ac_cv_header_wchar_h" != "yes"; then
17472
17473for ac_header in wcstr.h
17474do
17475as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17476if eval "test \"\${$as_ac_Header+set}\" = set"; then
17477 echo "$as_me:$LINENO: checking for $ac_header" >&5
17478echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17479if eval "test \"\${$as_ac_Header+set}\" = set"; then
17480 echo $ECHO_N "(cached) $ECHO_C" >&6
17481fi
17482echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17483echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17484else
17485 # Is the header compilable?
17486echo "$as_me:$LINENO: checking $ac_header usability" >&5
17487echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17488cat >conftest.$ac_ext <<_ACEOF
17489/* confdefs.h. */
17490_ACEOF
17491cat confdefs.h >>conftest.$ac_ext
17492cat >>conftest.$ac_ext <<_ACEOF
17493/* end confdefs.h. */
17494$ac_includes_default
17495#include <$ac_header>
17496_ACEOF
17497rm -f conftest.$ac_objext
17498if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17499 (eval $ac_compile) 2>conftest.er1
a848cd7e 17500 ac_status=$?
ac1cb8d3
VS
17501 grep -v '^ *+' conftest.er1 >conftest.err
17502 rm -f conftest.er1
17503 cat conftest.err >&5
a848cd7e
SC
17504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17505 (exit $ac_status); } &&
bb9e79c0 17506 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17508 (eval $ac_try) 2>&5
17509 ac_status=$?
17510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17511 (exit $ac_status); }; } &&
17512 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17514 (eval $ac_try) 2>&5
17515 ac_status=$?
17516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17517 (exit $ac_status); }; }; then
17518 ac_header_compiler=yes
17519else
17520 echo "$as_me: failed program was:" >&5
17521sed 's/^/| /' conftest.$ac_ext >&5
17522
17523ac_header_compiler=no
17524fi
ac1cb8d3 17525rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17526echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17527echo "${ECHO_T}$ac_header_compiler" >&6
17528
17529# Is the header present?
17530echo "$as_me:$LINENO: checking $ac_header presence" >&5
17531echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17532cat >conftest.$ac_ext <<_ACEOF
17533/* confdefs.h. */
17534_ACEOF
17535cat confdefs.h >>conftest.$ac_ext
17536cat >>conftest.$ac_ext <<_ACEOF
17537/* end confdefs.h. */
17538#include <$ac_header>
17539_ACEOF
17540if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17541 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17542 ac_status=$?
17543 grep -v '^ *+' conftest.er1 >conftest.err
17544 rm -f conftest.er1
17545 cat conftest.err >&5
17546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17547 (exit $ac_status); } >/dev/null; then
17548 if test -s conftest.err; then
5d7b7554
VZ
17549 ac_cpp_err=$ac_cxx_preproc_warn_flag
17550 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
17551 else
17552 ac_cpp_err=
17553 fi
17554else
17555 ac_cpp_err=yes
17556fi
17557if test -z "$ac_cpp_err"; then
17558 ac_header_preproc=yes
17559else
17560 echo "$as_me: failed program was:" >&5
17561sed 's/^/| /' conftest.$ac_ext >&5
17562
17563 ac_header_preproc=no
17564fi
17565rm -f conftest.err conftest.$ac_ext
17566echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17567echo "${ECHO_T}$ac_header_preproc" >&6
17568
17569# So? What about this header?
5d7b7554 17570case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 17571 yes:no: )
a848cd7e
SC
17572 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17573echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
17574 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17575echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17576 ac_header_preproc=yes
a848cd7e 17577 ;;
ac1cb8d3 17578 no:yes:* )
a848cd7e
SC
17579 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17580echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
17581 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17582echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17583 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17584echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17585 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17586echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
17587 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17588echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
17589 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17590echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
17591 (
17592 cat <<\_ASBOX
ac1cb8d3
VS
17593## ----------------------------------------- ##
17594## Report this to wx-dev@lists.wxwidgets.org ##
17595## ----------------------------------------- ##
a848cd7e
SC
17596_ASBOX
17597 ) |
17598 sed "s/^/$as_me: WARNING: /" >&2
17599 ;;
17600esac
17601echo "$as_me:$LINENO: checking for $ac_header" >&5
17602echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17603if eval "test \"\${$as_ac_Header+set}\" = set"; then
17604 echo $ECHO_N "(cached) $ECHO_C" >&6
17605else
ac1cb8d3 17606 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
17607fi
17608echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17609echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17610
17611fi
17612if test `eval echo '${'$as_ac_Header'}'` = yes; then
17613 cat >>confdefs.h <<_ACEOF
17614#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17615_ACEOF
17616
17617fi
17618
17619done
17620
17621fi
17622
17623
17624for ac_header in fnmatch.h
17625do
17626as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17627if eval "test \"\${$as_ac_Header+set}\" = set"; then
17628 echo "$as_me:$LINENO: checking for $ac_header" >&5
17629echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17630if eval "test \"\${$as_ac_Header+set}\" = set"; then
17631 echo $ECHO_N "(cached) $ECHO_C" >&6
17632fi
17633echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17634echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17635else
17636 # Is the header compilable?
17637echo "$as_me:$LINENO: checking $ac_header usability" >&5
17638echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17639cat >conftest.$ac_ext <<_ACEOF
17640/* confdefs.h. */
17641_ACEOF
17642cat confdefs.h >>conftest.$ac_ext
17643cat >>conftest.$ac_ext <<_ACEOF
17644/* end confdefs.h. */
17645$ac_includes_default
17646#include <$ac_header>
17647_ACEOF
17648rm -f conftest.$ac_objext
17649if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17650 (eval $ac_compile) 2>conftest.er1
a848cd7e 17651 ac_status=$?
ac1cb8d3
VS
17652 grep -v '^ *+' conftest.er1 >conftest.err
17653 rm -f conftest.er1
17654 cat conftest.err >&5
a848cd7e
SC
17655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17656 (exit $ac_status); } &&
bb9e79c0 17657 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17659 (eval $ac_try) 2>&5
17660 ac_status=$?
17661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17662 (exit $ac_status); }; } &&
17663 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17665 (eval $ac_try) 2>&5
17666 ac_status=$?
17667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17668 (exit $ac_status); }; }; then
17669 ac_header_compiler=yes
17670else
17671 echo "$as_me: failed program was:" >&5
17672sed 's/^/| /' conftest.$ac_ext >&5
17673
17674ac_header_compiler=no
17675fi
ac1cb8d3 17676rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17677echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17678echo "${ECHO_T}$ac_header_compiler" >&6
17679
17680# Is the header present?
17681echo "$as_me:$LINENO: checking $ac_header presence" >&5
17682echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17683cat >conftest.$ac_ext <<_ACEOF
17684/* confdefs.h. */
17685_ACEOF
17686cat confdefs.h >>conftest.$ac_ext
17687cat >>conftest.$ac_ext <<_ACEOF
17688/* end confdefs.h. */
17689#include <$ac_header>
17690_ACEOF
17691if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17692 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17693 ac_status=$?
17694 grep -v '^ *+' conftest.er1 >conftest.err
17695 rm -f conftest.er1
17696 cat conftest.err >&5
17697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17698 (exit $ac_status); } >/dev/null; then
17699 if test -s conftest.err; then
5d7b7554
VZ
17700 ac_cpp_err=$ac_cxx_preproc_warn_flag
17701 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
17702 else
17703 ac_cpp_err=
17704 fi
17705else
17706 ac_cpp_err=yes
17707fi
17708if test -z "$ac_cpp_err"; then
17709 ac_header_preproc=yes
17710else
17711 echo "$as_me: failed program was:" >&5
17712sed 's/^/| /' conftest.$ac_ext >&5
17713
17714 ac_header_preproc=no
17715fi
17716rm -f conftest.err conftest.$ac_ext
17717echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17718echo "${ECHO_T}$ac_header_preproc" >&6
17719
17720# So? What about this header?
5d7b7554 17721case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 17722 yes:no: )
a848cd7e
SC
17723 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17724echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
17725 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17726echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17727 ac_header_preproc=yes
a848cd7e 17728 ;;
ac1cb8d3 17729 no:yes:* )
a848cd7e
SC
17730 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17731echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
17732 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17733echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17734 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17735echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17736 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17737echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
17738 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17739echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
17740 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17741echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
17742 (
17743 cat <<\_ASBOX
ac1cb8d3
VS
17744## ----------------------------------------- ##
17745## Report this to wx-dev@lists.wxwidgets.org ##
17746## ----------------------------------------- ##
a848cd7e
SC
17747_ASBOX
17748 ) |
17749 sed "s/^/$as_me: WARNING: /" >&2
17750 ;;
17751esac
17752echo "$as_me:$LINENO: checking for $ac_header" >&5
17753echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17754if eval "test \"\${$as_ac_Header+set}\" = set"; then
17755 echo $ECHO_N "(cached) $ECHO_C" >&6
17756else
ac1cb8d3 17757 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
17758fi
17759echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17760echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17761
17762fi
17763if test `eval echo '${'$as_ac_Header'}'` = yes; then
17764 cat >>confdefs.h <<_ACEOF
17765#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17766_ACEOF
17767
17768fi
17769
17770done
17771
17772
a848cd7e
SC
17773
17774for ac_header in langinfo.h
17775do
17776as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17777if eval "test \"\${$as_ac_Header+set}\" = set"; then
17778 echo "$as_me:$LINENO: checking for $ac_header" >&5
17779echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17780if eval "test \"\${$as_ac_Header+set}\" = set"; then
17781 echo $ECHO_N "(cached) $ECHO_C" >&6
17782fi
17783echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17784echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17785else
17786 # Is the header compilable?
17787echo "$as_me:$LINENO: checking $ac_header usability" >&5
17788echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17789cat >conftest.$ac_ext <<_ACEOF
17790/* confdefs.h. */
17791_ACEOF
17792cat confdefs.h >>conftest.$ac_ext
17793cat >>conftest.$ac_ext <<_ACEOF
17794/* end confdefs.h. */
17795$ac_includes_default
17796#include <$ac_header>
17797_ACEOF
17798rm -f conftest.$ac_objext
17799if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17800 (eval $ac_compile) 2>conftest.er1
a848cd7e 17801 ac_status=$?
ac1cb8d3
VS
17802 grep -v '^ *+' conftest.er1 >conftest.err
17803 rm -f conftest.er1
17804 cat conftest.err >&5
a848cd7e
SC
17805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17806 (exit $ac_status); } &&
bb9e79c0 17807 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17809 (eval $ac_try) 2>&5
17810 ac_status=$?
17811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17812 (exit $ac_status); }; } &&
17813 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17815 (eval $ac_try) 2>&5
17816 ac_status=$?
17817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17818 (exit $ac_status); }; }; then
17819 ac_header_compiler=yes
17820else
17821 echo "$as_me: failed program was:" >&5
17822sed 's/^/| /' conftest.$ac_ext >&5
17823
17824ac_header_compiler=no
17825fi
ac1cb8d3 17826rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17827echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17828echo "${ECHO_T}$ac_header_compiler" >&6
17829
17830# Is the header present?
17831echo "$as_me:$LINENO: checking $ac_header presence" >&5
17832echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17833cat >conftest.$ac_ext <<_ACEOF
17834/* confdefs.h. */
17835_ACEOF
17836cat confdefs.h >>conftest.$ac_ext
17837cat >>conftest.$ac_ext <<_ACEOF
17838/* end confdefs.h. */
17839#include <$ac_header>
17840_ACEOF
17841if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17842 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17843 ac_status=$?
17844 grep -v '^ *+' conftest.er1 >conftest.err
17845 rm -f conftest.er1
17846 cat conftest.err >&5
17847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17848 (exit $ac_status); } >/dev/null; then
17849 if test -s conftest.err; then
5d7b7554
VZ
17850 ac_cpp_err=$ac_cxx_preproc_warn_flag
17851 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
17852 else
17853 ac_cpp_err=
17854 fi
17855else
17856 ac_cpp_err=yes
17857fi
17858if test -z "$ac_cpp_err"; then
17859 ac_header_preproc=yes
17860else
17861 echo "$as_me: failed program was:" >&5
17862sed 's/^/| /' conftest.$ac_ext >&5
17863
17864 ac_header_preproc=no
17865fi
17866rm -f conftest.err conftest.$ac_ext
17867echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17868echo "${ECHO_T}$ac_header_preproc" >&6
17869
17870# So? What about this header?
5d7b7554 17871case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 17872 yes:no: )
a848cd7e
SC
17873 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17874echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
17875 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17876echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17877 ac_header_preproc=yes
a848cd7e 17878 ;;
ac1cb8d3 17879 no:yes:* )
a848cd7e
SC
17880 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17881echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
17882 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17883echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17884 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17885echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17886 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17887echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
17888 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17889echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
17890 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17891echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
17892 (
17893 cat <<\_ASBOX
ac1cb8d3
VS
17894## ----------------------------------------- ##
17895## Report this to wx-dev@lists.wxwidgets.org ##
17896## ----------------------------------------- ##
a848cd7e
SC
17897_ASBOX
17898 ) |
17899 sed "s/^/$as_me: WARNING: /" >&2
17900 ;;
17901esac
17902echo "$as_me:$LINENO: checking for $ac_header" >&5
17903echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17904if eval "test \"\${$as_ac_Header+set}\" = set"; then
17905 echo $ECHO_N "(cached) $ECHO_C" >&6
17906else
ac1cb8d3 17907 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
17908fi
17909echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17910echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17911
17912fi
17913if test `eval echo '${'$as_ac_Header'}'` = yes; then
17914 cat >>confdefs.h <<_ACEOF
17915#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17916_ACEOF
17917
17918fi
17919
17920done
17921
17922
17923case "${host}" in
17924 *-pc-os2_emx | *-pc-os2-emx )
391a765e
VS
17925 if test $ac_cv_header_langinfo_h = "yes" \
17926 -a \( "$wx_cv_gccversion" = "EMX2" \
17927 -o "$wx_cv_gccversion" = "EMX3" \
17928 -o "$wx_cv_gccversion" = "Innotek5" \); then
a848cd7e
SC
17929 LIBS="$LIBS -lintl"
17930 fi
17931 ;;
17932esac
17933
bc023abb
MW
17934if test "$USE_UNIX" = 1 ; then
17935
17936for ac_header in sys/select.h
17937do
17938as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17939if eval "test \"\${$as_ac_Header+set}\" = set"; then
17940 echo "$as_me:$LINENO: checking for $ac_header" >&5
17941echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17942if eval "test \"\${$as_ac_Header+set}\" = set"; then
17943 echo $ECHO_N "(cached) $ECHO_C" >&6
17944fi
17945echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17946echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17947else
17948 # Is the header compilable?
17949echo "$as_me:$LINENO: checking $ac_header usability" >&5
17950echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17951cat >conftest.$ac_ext <<_ACEOF
17952/* confdefs.h. */
17953_ACEOF
17954cat confdefs.h >>conftest.$ac_ext
17955cat >>conftest.$ac_ext <<_ACEOF
17956/* end confdefs.h. */
17957$ac_includes_default
17958#include <$ac_header>
17959_ACEOF
17960rm -f conftest.$ac_objext
17961if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17962 (eval $ac_compile) 2>conftest.er1
17963 ac_status=$?
17964 grep -v '^ *+' conftest.er1 >conftest.err
17965 rm -f conftest.er1
17966 cat conftest.err >&5
17967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17968 (exit $ac_status); } &&
bb9e79c0 17969 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
bc023abb
MW
17970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17971 (eval $ac_try) 2>&5
17972 ac_status=$?
17973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17974 (exit $ac_status); }; } &&
17975 { ac_try='test -s conftest.$ac_objext'
17976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17977 (eval $ac_try) 2>&5
17978 ac_status=$?
17979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17980 (exit $ac_status); }; }; then
17981 ac_header_compiler=yes
17982else
17983 echo "$as_me: failed program was:" >&5
17984sed 's/^/| /' conftest.$ac_ext >&5
17985
17986ac_header_compiler=no
17987fi
17988rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17989echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17990echo "${ECHO_T}$ac_header_compiler" >&6
17991
17992# Is the header present?
17993echo "$as_me:$LINENO: checking $ac_header presence" >&5
17994echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17995cat >conftest.$ac_ext <<_ACEOF
17996/* confdefs.h. */
17997_ACEOF
17998cat confdefs.h >>conftest.$ac_ext
17999cat >>conftest.$ac_ext <<_ACEOF
18000/* end confdefs.h. */
18001#include <$ac_header>
18002_ACEOF
18003if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18004 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18005 ac_status=$?
18006 grep -v '^ *+' conftest.er1 >conftest.err
18007 rm -f conftest.er1
18008 cat conftest.err >&5
18009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18010 (exit $ac_status); } >/dev/null; then
18011 if test -s conftest.err; then
18012 ac_cpp_err=$ac_cxx_preproc_warn_flag
18013 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
18014 else
18015 ac_cpp_err=
18016 fi
18017else
18018 ac_cpp_err=yes
18019fi
18020if test -z "$ac_cpp_err"; then
18021 ac_header_preproc=yes
18022else
18023 echo "$as_me: failed program was:" >&5
18024sed 's/^/| /' conftest.$ac_ext >&5
18025
18026 ac_header_preproc=no
18027fi
18028rm -f conftest.err conftest.$ac_ext
18029echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18030echo "${ECHO_T}$ac_header_preproc" >&6
18031
18032# So? What about this header?
18033case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
18034 yes:no: )
18035 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18036echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18037 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18038echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18039 ac_header_preproc=yes
18040 ;;
18041 no:yes:* )
18042 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18043echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18044 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18045echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18046 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18047echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18048 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18049echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18050 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18051echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18052 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18053echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18054 (
18055 cat <<\_ASBOX
18056## ----------------------------------------- ##
18057## Report this to wx-dev@lists.wxwidgets.org ##
18058## ----------------------------------------- ##
18059_ASBOX
18060 ) |
18061 sed "s/^/$as_me: WARNING: /" >&2
18062 ;;
18063esac
18064echo "$as_me:$LINENO: checking for $ac_header" >&5
18065echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18066if eval "test \"\${$as_ac_Header+set}\" = set"; then
18067 echo $ECHO_N "(cached) $ECHO_C" >&6
18068else
18069 eval "$as_ac_Header=\$ac_header_preproc"
18070fi
18071echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18072echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18073
18074fi
18075if test `eval echo '${'$as_ac_Header'}'` = yes; then
18076 cat >>confdefs.h <<_ACEOF
18077#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18078_ACEOF
18079
18080fi
18081
18082done
18083
18084fi
18085
a848cd7e
SC
18086
18087echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
18088echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
18089if test "${ac_cv_c_const+set}" = set; then
18090 echo $ECHO_N "(cached) $ECHO_C" >&6
18091else
18092 cat >conftest.$ac_ext <<_ACEOF
18093/* confdefs.h. */
18094_ACEOF
18095cat confdefs.h >>conftest.$ac_ext
18096cat >>conftest.$ac_ext <<_ACEOF
18097/* end confdefs.h. */
18098
18099int
18100main ()
18101{
18102/* FIXME: Include the comments suggested by Paul. */
18103#ifndef __cplusplus
18104 /* Ultrix mips cc rejects this. */
18105 typedef int charset[2];
18106 const charset x;
18107 /* SunOS 4.1.1 cc rejects this. */
18108 char const *const *ccp;
18109 char **p;
18110 /* NEC SVR4.0.2 mips cc rejects this. */
18111 struct point {int x, y;};
18112 static struct point const zero = {0,0};
18113 /* AIX XL C 1.02.0.0 rejects this.
18114 It does not let you subtract one const X* pointer from another in
18115 an arm of an if-expression whose if-part is not a constant
18116 expression */
18117 const char *g = "string";
18118 ccp = &g + (g ? g-g : 0);
18119 /* HPUX 7.0 cc rejects these. */
18120 ++ccp;
18121 p = (char**) ccp;
18122 ccp = (char const *const *) p;
18123 { /* SCO 3.2v4 cc rejects this. */
18124 char *t;
18125 char const *s = 0 ? (char *) 0 : (char const *) 0;
18126
18127 *t++ = 0;
18128 }
18129 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
18130 int x[] = {25, 17};
18131 const int *foo = &x[0];
18132 ++foo;
18133 }
18134 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18135 typedef const int *iptr;
18136 iptr p = 0;
18137 ++p;
18138 }
18139 { /* AIX XL C 1.02.0.0 rejects this saying
18140 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18141 struct s { int j; const int *ap[3]; };
18142 struct s *b; b->j = 5;
18143 }
18144 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18145 const int foo = 10;
18146 }
18147#endif
18148
18149 ;
18150 return 0;
18151}
18152_ACEOF
18153rm -f conftest.$ac_objext
18154if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18155 (eval $ac_compile) 2>conftest.er1
a848cd7e 18156 ac_status=$?
ac1cb8d3
VS
18157 grep -v '^ *+' conftest.er1 >conftest.err
18158 rm -f conftest.er1
18159 cat conftest.err >&5
a848cd7e
SC
18160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18161 (exit $ac_status); } &&
bb9e79c0 18162 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18164 (eval $ac_try) 2>&5
18165 ac_status=$?
18166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18167 (exit $ac_status); }; } &&
18168 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18170 (eval $ac_try) 2>&5
18171 ac_status=$?
18172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18173 (exit $ac_status); }; }; then
18174 ac_cv_c_const=yes
18175else
18176 echo "$as_me: failed program was:" >&5
18177sed 's/^/| /' conftest.$ac_ext >&5
18178
18179ac_cv_c_const=no
18180fi
ac1cb8d3 18181rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18182fi
18183echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
18184echo "${ECHO_T}$ac_cv_c_const" >&6
18185if test $ac_cv_c_const = no; then
18186
18187cat >>confdefs.h <<\_ACEOF
18188#define const
18189_ACEOF
18190
18191fi
18192
18193echo "$as_me:$LINENO: checking for inline" >&5
18194echo $ECHO_N "checking for inline... $ECHO_C" >&6
18195if test "${ac_cv_c_inline+set}" = set; then
18196 echo $ECHO_N "(cached) $ECHO_C" >&6
18197else
18198 ac_cv_c_inline=no
18199for ac_kw in inline __inline__ __inline; do
18200 cat >conftest.$ac_ext <<_ACEOF
18201/* confdefs.h. */
18202_ACEOF
18203cat confdefs.h >>conftest.$ac_ext
18204cat >>conftest.$ac_ext <<_ACEOF
18205/* end confdefs.h. */
18206#ifndef __cplusplus
18207typedef int foo_t;
18208static $ac_kw foo_t static_foo () {return 0; }
18209$ac_kw foo_t foo () {return 0; }
18210#endif
18211
18212_ACEOF
18213rm -f conftest.$ac_objext
18214if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18215 (eval $ac_compile) 2>conftest.er1
a848cd7e 18216 ac_status=$?
ac1cb8d3
VS
18217 grep -v '^ *+' conftest.er1 >conftest.err
18218 rm -f conftest.er1
18219 cat conftest.err >&5
a848cd7e
SC
18220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18221 (exit $ac_status); } &&
bb9e79c0 18222 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18224 (eval $ac_try) 2>&5
18225 ac_status=$?
18226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18227 (exit $ac_status); }; } &&
18228 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18230 (eval $ac_try) 2>&5
18231 ac_status=$?
18232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18233 (exit $ac_status); }; }; then
18234 ac_cv_c_inline=$ac_kw; break
18235else
18236 echo "$as_me: failed program was:" >&5
18237sed 's/^/| /' conftest.$ac_ext >&5
18238
18239fi
ac1cb8d3 18240rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18241done
18242
18243fi
18244echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
18245echo "${ECHO_T}$ac_cv_c_inline" >&6
ac1cb8d3
VS
18246
18247
a848cd7e
SC
18248case $ac_cv_c_inline in
18249 inline | yes) ;;
ac1cb8d3
VS
18250 *)
18251 case $ac_cv_c_inline in
18252 no) ac_val=;;
18253 *) ac_val=$ac_cv_c_inline;;
18254 esac
18255 cat >>confdefs.h <<_ACEOF
18256#ifndef __cplusplus
18257#define inline $ac_val
18258#endif
de59c161 18259_ACEOF
ac1cb8d3 18260 ;;
a848cd7e
SC
18261esac
18262
18263
18264echo "$as_me:$LINENO: checking for char" >&5
18265echo $ECHO_N "checking for char... $ECHO_C" >&6
18266if test "${ac_cv_type_char+set}" = set; then
18267 echo $ECHO_N "(cached) $ECHO_C" >&6
18268else
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{
18279if ((char *) 0)
18280 return 0;
18281if (sizeof (char))
18282 return 0;
18283 ;
18284 return 0;
18285}
18286_ACEOF
18287rm -f conftest.$ac_objext
18288if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18289 (eval $ac_compile) 2>conftest.er1
a848cd7e 18290 ac_status=$?
ac1cb8d3
VS
18291 grep -v '^ *+' conftest.er1 >conftest.err
18292 rm -f conftest.er1
18293 cat conftest.err >&5
a848cd7e
SC
18294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18295 (exit $ac_status); } &&
bb9e79c0 18296 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18298 (eval $ac_try) 2>&5
18299 ac_status=$?
18300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18301 (exit $ac_status); }; } &&
18302 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18304 (eval $ac_try) 2>&5
18305 ac_status=$?
18306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18307 (exit $ac_status); }; }; then
18308 ac_cv_type_char=yes
18309else
18310 echo "$as_me: failed program was:" >&5
18311sed 's/^/| /' conftest.$ac_ext >&5
18312
18313ac_cv_type_char=no
18314fi
ac1cb8d3 18315rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18316fi
18317echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
18318echo "${ECHO_T}$ac_cv_type_char" >&6
18319
18320echo "$as_me:$LINENO: checking size of char" >&5
18321echo $ECHO_N "checking size of char... $ECHO_C" >&6
18322if test "${ac_cv_sizeof_char+set}" = set; then
18323 echo $ECHO_N "(cached) $ECHO_C" >&6
18324else
18325 if test "$ac_cv_type_char" = yes; then
18326 # The cast to unsigned long works around a bug in the HP C Compiler
18327 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18328 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18329 # This bug is HP SR number 8606223364.
18330 if test "$cross_compiling" = yes; then
18331 # Depending upon the size, compute the lo and hi bounds.
18332cat >conftest.$ac_ext <<_ACEOF
18333/* confdefs.h. */
18334_ACEOF
18335cat confdefs.h >>conftest.$ac_ext
18336cat >>conftest.$ac_ext <<_ACEOF
18337/* end confdefs.h. */
18338$ac_includes_default
18339int
18340main ()
18341{
18342static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
18343test_array [0] = 0
18344
18345 ;
18346 return 0;
18347}
18348_ACEOF
18349rm -f conftest.$ac_objext
18350if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18351 (eval $ac_compile) 2>conftest.er1
a848cd7e 18352 ac_status=$?
ac1cb8d3
VS
18353 grep -v '^ *+' conftest.er1 >conftest.err
18354 rm -f conftest.er1
18355 cat conftest.err >&5
a848cd7e
SC
18356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18357 (exit $ac_status); } &&
bb9e79c0 18358 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18360 (eval $ac_try) 2>&5
18361 ac_status=$?
18362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18363 (exit $ac_status); }; } &&
18364 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18366 (eval $ac_try) 2>&5
18367 ac_status=$?
18368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18369 (exit $ac_status); }; }; then
18370 ac_lo=0 ac_mid=0
18371 while :; do
18372 cat >conftest.$ac_ext <<_ACEOF
18373/* confdefs.h. */
18374_ACEOF
18375cat confdefs.h >>conftest.$ac_ext
18376cat >>conftest.$ac_ext <<_ACEOF
18377/* end confdefs.h. */
18378$ac_includes_default
18379int
18380main ()
18381{
18382static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
18383test_array [0] = 0
18384
18385 ;
18386 return 0;
18387}
18388_ACEOF
18389rm -f conftest.$ac_objext
18390if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18391 (eval $ac_compile) 2>conftest.er1
a848cd7e 18392 ac_status=$?
ac1cb8d3
VS
18393 grep -v '^ *+' conftest.er1 >conftest.err
18394 rm -f conftest.er1
18395 cat conftest.err >&5
a848cd7e
SC
18396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18397 (exit $ac_status); } &&
bb9e79c0 18398 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18400 (eval $ac_try) 2>&5
18401 ac_status=$?
18402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18403 (exit $ac_status); }; } &&
18404 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18406 (eval $ac_try) 2>&5
18407 ac_status=$?
18408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18409 (exit $ac_status); }; }; then
18410 ac_hi=$ac_mid; break
18411else
18412 echo "$as_me: failed program was:" >&5
18413sed 's/^/| /' conftest.$ac_ext >&5
18414
18415ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18416 if test $ac_lo -le $ac_mid; then
18417 ac_lo= ac_hi=
18418 break
18419 fi
18420 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18421fi
ac1cb8d3 18422rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18423 done
18424else
18425 echo "$as_me: failed program was:" >&5
18426sed 's/^/| /' conftest.$ac_ext >&5
18427
18428cat >conftest.$ac_ext <<_ACEOF
18429/* confdefs.h. */
18430_ACEOF
18431cat confdefs.h >>conftest.$ac_ext
18432cat >>conftest.$ac_ext <<_ACEOF
18433/* end confdefs.h. */
18434$ac_includes_default
18435int
18436main ()
18437{
18438static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
18439test_array [0] = 0
18440
18441 ;
18442 return 0;
18443}
18444_ACEOF
18445rm -f conftest.$ac_objext
18446if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18447 (eval $ac_compile) 2>conftest.er1
a848cd7e 18448 ac_status=$?
ac1cb8d3
VS
18449 grep -v '^ *+' conftest.er1 >conftest.err
18450 rm -f conftest.er1
18451 cat conftest.err >&5
a848cd7e
SC
18452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18453 (exit $ac_status); } &&
bb9e79c0 18454 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18456 (eval $ac_try) 2>&5
18457 ac_status=$?
18458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18459 (exit $ac_status); }; } &&
18460 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18462 (eval $ac_try) 2>&5
18463 ac_status=$?
18464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18465 (exit $ac_status); }; }; then
18466 ac_hi=-1 ac_mid=-1
18467 while :; do
18468 cat >conftest.$ac_ext <<_ACEOF
18469/* confdefs.h. */
18470_ACEOF
18471cat confdefs.h >>conftest.$ac_ext
18472cat >>conftest.$ac_ext <<_ACEOF
18473/* end confdefs.h. */
18474$ac_includes_default
18475int
18476main ()
18477{
18478static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
18479test_array [0] = 0
18480
18481 ;
18482 return 0;
18483}
18484_ACEOF
18485rm -f conftest.$ac_objext
18486if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18487 (eval $ac_compile) 2>conftest.er1
a848cd7e 18488 ac_status=$?
ac1cb8d3
VS
18489 grep -v '^ *+' conftest.er1 >conftest.err
18490 rm -f conftest.er1
18491 cat conftest.err >&5
a848cd7e
SC
18492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18493 (exit $ac_status); } &&
bb9e79c0 18494 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18496 (eval $ac_try) 2>&5
18497 ac_status=$?
18498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18499 (exit $ac_status); }; } &&
18500 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18502 (eval $ac_try) 2>&5
18503 ac_status=$?
18504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18505 (exit $ac_status); }; }; then
18506 ac_lo=$ac_mid; break
18507else
18508 echo "$as_me: failed program was:" >&5
18509sed 's/^/| /' conftest.$ac_ext >&5
18510
18511ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18512 if test $ac_mid -le $ac_hi; then
18513 ac_lo= ac_hi=
18514 break
18515 fi
18516 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18517fi
ac1cb8d3 18518rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18519 done
18520else
18521 echo "$as_me: failed program was:" >&5
18522sed 's/^/| /' conftest.$ac_ext >&5
18523
18524ac_lo= ac_hi=
18525fi
ac1cb8d3 18526rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18527fi
ac1cb8d3 18528rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18529# Binary search between lo and hi bounds.
18530while test "x$ac_lo" != "x$ac_hi"; do
18531 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18532 cat >conftest.$ac_ext <<_ACEOF
18533/* confdefs.h. */
18534_ACEOF
18535cat confdefs.h >>conftest.$ac_ext
18536cat >>conftest.$ac_ext <<_ACEOF
18537/* end confdefs.h. */
18538$ac_includes_default
18539int
18540main ()
18541{
18542static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
18543test_array [0] = 0
18544
18545 ;
18546 return 0;
18547}
18548_ACEOF
18549rm -f conftest.$ac_objext
18550if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18551 (eval $ac_compile) 2>conftest.er1
a848cd7e 18552 ac_status=$?
ac1cb8d3
VS
18553 grep -v '^ *+' conftest.er1 >conftest.err
18554 rm -f conftest.er1
18555 cat conftest.err >&5
a848cd7e
SC
18556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18557 (exit $ac_status); } &&
bb9e79c0 18558 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18560 (eval $ac_try) 2>&5
18561 ac_status=$?
18562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18563 (exit $ac_status); }; } &&
18564 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18566 (eval $ac_try) 2>&5
18567 ac_status=$?
18568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18569 (exit $ac_status); }; }; then
18570 ac_hi=$ac_mid
18571else
18572 echo "$as_me: failed program was:" >&5
18573sed 's/^/| /' conftest.$ac_ext >&5
18574
18575ac_lo=`expr '(' $ac_mid ')' + 1`
18576fi
ac1cb8d3 18577rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18578done
18579case $ac_lo in
18580?*) ac_cv_sizeof_char=$ac_lo;;
18581'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
18582See \`config.log' for more details." >&5
18583echo "$as_me: error: cannot compute sizeof (char), 77
18584See \`config.log' for more details." >&2;}
18585 { (exit 1); exit 1; }; } ;;
18586esac
18587else
18588 if test "$cross_compiling" = yes; then
bb9e79c0
VZ
18589 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18590echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
18591 { (exit 1); exit 1; }; }
18592else
18593 cat >conftest.$ac_ext <<_ACEOF
18594/* confdefs.h. */
18595_ACEOF
18596cat confdefs.h >>conftest.$ac_ext
18597cat >>conftest.$ac_ext <<_ACEOF
18598/* end confdefs.h. */
18599$ac_includes_default
18600long longval () { return (long) (sizeof (char)); }
18601unsigned long ulongval () { return (long) (sizeof (char)); }
18602#include <stdio.h>
18603#include <stdlib.h>
18604int
18605main ()
18606{
18607
18608 FILE *f = fopen ("conftest.val", "w");
18609 if (! f)
18610 exit (1);
18611 if (((long) (sizeof (char))) < 0)
18612 {
18613 long i = longval ();
18614 if (i != ((long) (sizeof (char))))
18615 exit (1);
18616 fprintf (f, "%ld\n", i);
18617 }
18618 else
18619 {
18620 unsigned long i = ulongval ();
18621 if (i != ((long) (sizeof (char))))
18622 exit (1);
18623 fprintf (f, "%lu\n", i);
18624 }
18625 exit (ferror (f) || fclose (f) != 0);
18626
18627 ;
18628 return 0;
18629}
18630_ACEOF
18631rm -f conftest$ac_exeext
18632if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18633 (eval $ac_link) 2>&5
18634 ac_status=$?
18635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18636 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18638 (eval $ac_try) 2>&5
18639 ac_status=$?
18640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18641 (exit $ac_status); }; }; then
18642 ac_cv_sizeof_char=`cat conftest.val`
18643else
18644 echo "$as_me: program exited with status $ac_status" >&5
18645echo "$as_me: failed program was:" >&5
18646sed 's/^/| /' conftest.$ac_ext >&5
18647
18648( exit $ac_status )
18649{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
18650See \`config.log' for more details." >&5
18651echo "$as_me: error: cannot compute sizeof (char), 77
18652See \`config.log' for more details." >&2;}
18653 { (exit 1); exit 1; }; }
18654fi
ac1cb8d3 18655rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18656fi
18657fi
18658rm -f conftest.val
18659else
18660 ac_cv_sizeof_char=0
18661fi
18662fi
18663echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
18664echo "${ECHO_T}$ac_cv_sizeof_char" >&6
18665cat >>confdefs.h <<_ACEOF
18666#define SIZEOF_CHAR $ac_cv_sizeof_char
18667_ACEOF
18668
18669
18670echo "$as_me:$LINENO: checking for short" >&5
18671echo $ECHO_N "checking for short... $ECHO_C" >&6
18672if test "${ac_cv_type_short+set}" = set; then
18673 echo $ECHO_N "(cached) $ECHO_C" >&6
18674else
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{
18685if ((short *) 0)
18686 return 0;
18687if (sizeof (short))
18688 return 0;
18689 ;
18690 return 0;
18691}
18692_ACEOF
18693rm -f conftest.$ac_objext
18694if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18695 (eval $ac_compile) 2>conftest.er1
a848cd7e 18696 ac_status=$?
ac1cb8d3
VS
18697 grep -v '^ *+' conftest.er1 >conftest.err
18698 rm -f conftest.er1
18699 cat conftest.err >&5
a848cd7e
SC
18700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18701 (exit $ac_status); } &&
bb9e79c0 18702 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18704 (eval $ac_try) 2>&5
18705 ac_status=$?
18706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18707 (exit $ac_status); }; } &&
18708 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18710 (eval $ac_try) 2>&5
18711 ac_status=$?
18712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18713 (exit $ac_status); }; }; then
18714 ac_cv_type_short=yes
18715else
18716 echo "$as_me: failed program was:" >&5
18717sed 's/^/| /' conftest.$ac_ext >&5
18718
18719ac_cv_type_short=no
18720fi
ac1cb8d3 18721rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18722fi
18723echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
18724echo "${ECHO_T}$ac_cv_type_short" >&6
18725
18726echo "$as_me:$LINENO: checking size of short" >&5
18727echo $ECHO_N "checking size of short... $ECHO_C" >&6
18728if test "${ac_cv_sizeof_short+set}" = set; then
18729 echo $ECHO_N "(cached) $ECHO_C" >&6
18730else
18731 if test "$ac_cv_type_short" = yes; then
18732 # The cast to unsigned long works around a bug in the HP C Compiler
18733 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18734 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18735 # This bug is HP SR number 8606223364.
18736 if test "$cross_compiling" = yes; then
18737 # Depending upon the size, compute the lo and hi bounds.
18738cat >conftest.$ac_ext <<_ACEOF
18739/* confdefs.h. */
18740_ACEOF
18741cat confdefs.h >>conftest.$ac_ext
18742cat >>conftest.$ac_ext <<_ACEOF
18743/* end confdefs.h. */
18744$ac_includes_default
18745int
18746main ()
18747{
18748static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
18749test_array [0] = 0
18750
18751 ;
18752 return 0;
18753}
18754_ACEOF
18755rm -f conftest.$ac_objext
18756if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18757 (eval $ac_compile) 2>conftest.er1
a848cd7e 18758 ac_status=$?
ac1cb8d3
VS
18759 grep -v '^ *+' conftest.er1 >conftest.err
18760 rm -f conftest.er1
18761 cat conftest.err >&5
a848cd7e
SC
18762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18763 (exit $ac_status); } &&
bb9e79c0 18764 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18766 (eval $ac_try) 2>&5
18767 ac_status=$?
18768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18769 (exit $ac_status); }; } &&
18770 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18772 (eval $ac_try) 2>&5
18773 ac_status=$?
18774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18775 (exit $ac_status); }; }; then
18776 ac_lo=0 ac_mid=0
18777 while :; do
18778 cat >conftest.$ac_ext <<_ACEOF
18779/* confdefs.h. */
18780_ACEOF
18781cat confdefs.h >>conftest.$ac_ext
18782cat >>conftest.$ac_ext <<_ACEOF
18783/* end confdefs.h. */
18784$ac_includes_default
18785int
18786main ()
18787{
18788static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
18789test_array [0] = 0
18790
18791 ;
18792 return 0;
18793}
18794_ACEOF
18795rm -f conftest.$ac_objext
18796if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18797 (eval $ac_compile) 2>conftest.er1
a848cd7e 18798 ac_status=$?
ac1cb8d3
VS
18799 grep -v '^ *+' conftest.er1 >conftest.err
18800 rm -f conftest.er1
18801 cat conftest.err >&5
a848cd7e
SC
18802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18803 (exit $ac_status); } &&
bb9e79c0 18804 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18806 (eval $ac_try) 2>&5
18807 ac_status=$?
18808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18809 (exit $ac_status); }; } &&
18810 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18812 (eval $ac_try) 2>&5
18813 ac_status=$?
18814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18815 (exit $ac_status); }; }; then
18816 ac_hi=$ac_mid; break
18817else
18818 echo "$as_me: failed program was:" >&5
18819sed 's/^/| /' conftest.$ac_ext >&5
18820
18821ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18822 if test $ac_lo -le $ac_mid; then
18823 ac_lo= ac_hi=
18824 break
18825 fi
18826 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18827fi
ac1cb8d3 18828rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18829 done
18830else
18831 echo "$as_me: failed program was:" >&5
18832sed 's/^/| /' conftest.$ac_ext >&5
18833
18834cat >conftest.$ac_ext <<_ACEOF
18835/* confdefs.h. */
18836_ACEOF
18837cat confdefs.h >>conftest.$ac_ext
18838cat >>conftest.$ac_ext <<_ACEOF
18839/* end confdefs.h. */
18840$ac_includes_default
18841int
18842main ()
18843{
18844static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
18845test_array [0] = 0
18846
18847 ;
18848 return 0;
18849}
18850_ACEOF
18851rm -f conftest.$ac_objext
18852if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18853 (eval $ac_compile) 2>conftest.er1
a848cd7e 18854 ac_status=$?
ac1cb8d3
VS
18855 grep -v '^ *+' conftest.er1 >conftest.err
18856 rm -f conftest.er1
18857 cat conftest.err >&5
a848cd7e
SC
18858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18859 (exit $ac_status); } &&
bb9e79c0 18860 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18862 (eval $ac_try) 2>&5
18863 ac_status=$?
18864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18865 (exit $ac_status); }; } &&
18866 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18868 (eval $ac_try) 2>&5
18869 ac_status=$?
18870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18871 (exit $ac_status); }; }; then
18872 ac_hi=-1 ac_mid=-1
18873 while :; do
18874 cat >conftest.$ac_ext <<_ACEOF
18875/* confdefs.h. */
18876_ACEOF
18877cat confdefs.h >>conftest.$ac_ext
18878cat >>conftest.$ac_ext <<_ACEOF
18879/* end confdefs.h. */
18880$ac_includes_default
18881int
18882main ()
18883{
18884static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
18885test_array [0] = 0
18886
18887 ;
18888 return 0;
18889}
18890_ACEOF
18891rm -f conftest.$ac_objext
18892if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18893 (eval $ac_compile) 2>conftest.er1
a848cd7e 18894 ac_status=$?
ac1cb8d3
VS
18895 grep -v '^ *+' conftest.er1 >conftest.err
18896 rm -f conftest.er1
18897 cat conftest.err >&5
a848cd7e
SC
18898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18899 (exit $ac_status); } &&
bb9e79c0 18900 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18902 (eval $ac_try) 2>&5
18903 ac_status=$?
18904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18905 (exit $ac_status); }; } &&
18906 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18908 (eval $ac_try) 2>&5
18909 ac_status=$?
18910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18911 (exit $ac_status); }; }; then
18912 ac_lo=$ac_mid; break
18913else
18914 echo "$as_me: failed program was:" >&5
18915sed 's/^/| /' conftest.$ac_ext >&5
18916
18917ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18918 if test $ac_mid -le $ac_hi; then
18919 ac_lo= ac_hi=
18920 break
18921 fi
18922 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18923fi
ac1cb8d3 18924rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18925 done
18926else
18927 echo "$as_me: failed program was:" >&5
18928sed 's/^/| /' conftest.$ac_ext >&5
18929
18930ac_lo= ac_hi=
18931fi
ac1cb8d3 18932rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18933fi
ac1cb8d3 18934rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18935# Binary search between lo and hi bounds.
18936while test "x$ac_lo" != "x$ac_hi"; do
18937 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18938 cat >conftest.$ac_ext <<_ACEOF
18939/* confdefs.h. */
18940_ACEOF
18941cat confdefs.h >>conftest.$ac_ext
18942cat >>conftest.$ac_ext <<_ACEOF
18943/* end confdefs.h. */
18944$ac_includes_default
18945int
18946main ()
18947{
18948static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
18949test_array [0] = 0
18950
18951 ;
18952 return 0;
18953}
18954_ACEOF
18955rm -f conftest.$ac_objext
18956if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18957 (eval $ac_compile) 2>conftest.er1
a848cd7e 18958 ac_status=$?
ac1cb8d3
VS
18959 grep -v '^ *+' conftest.er1 >conftest.err
18960 rm -f conftest.er1
18961 cat conftest.err >&5
a848cd7e
SC
18962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18963 (exit $ac_status); } &&
bb9e79c0 18964 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18966 (eval $ac_try) 2>&5
18967 ac_status=$?
18968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18969 (exit $ac_status); }; } &&
18970 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18972 (eval $ac_try) 2>&5
18973 ac_status=$?
18974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18975 (exit $ac_status); }; }; then
18976 ac_hi=$ac_mid
18977else
18978 echo "$as_me: failed program was:" >&5
18979sed 's/^/| /' conftest.$ac_ext >&5
18980
18981ac_lo=`expr '(' $ac_mid ')' + 1`
18982fi
ac1cb8d3 18983rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18984done
18985case $ac_lo in
18986?*) ac_cv_sizeof_short=$ac_lo;;
18987'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
18988See \`config.log' for more details." >&5
18989echo "$as_me: error: cannot compute sizeof (short), 77
18990See \`config.log' for more details." >&2;}
18991 { (exit 1); exit 1; }; } ;;
18992esac
18993else
18994 if test "$cross_compiling" = yes; then
bb9e79c0
VZ
18995 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18996echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
18997 { (exit 1); exit 1; }; }
18998else
18999 cat >conftest.$ac_ext <<_ACEOF
19000/* confdefs.h. */
19001_ACEOF
19002cat confdefs.h >>conftest.$ac_ext
19003cat >>conftest.$ac_ext <<_ACEOF
19004/* end confdefs.h. */
19005$ac_includes_default
19006long longval () { return (long) (sizeof (short)); }
19007unsigned long ulongval () { return (long) (sizeof (short)); }
19008#include <stdio.h>
19009#include <stdlib.h>
19010int
19011main ()
19012{
19013
19014 FILE *f = fopen ("conftest.val", "w");
19015 if (! f)
19016 exit (1);
19017 if (((long) (sizeof (short))) < 0)
19018 {
19019 long i = longval ();
19020 if (i != ((long) (sizeof (short))))
19021 exit (1);
19022 fprintf (f, "%ld\n", i);
19023 }
19024 else
19025 {
19026 unsigned long i = ulongval ();
19027 if (i != ((long) (sizeof (short))))
19028 exit (1);
19029 fprintf (f, "%lu\n", i);
19030 }
19031 exit (ferror (f) || fclose (f) != 0);
19032
19033 ;
19034 return 0;
19035}
19036_ACEOF
19037rm -f conftest$ac_exeext
19038if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19039 (eval $ac_link) 2>&5
19040 ac_status=$?
19041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19042 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19044 (eval $ac_try) 2>&5
19045 ac_status=$?
19046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19047 (exit $ac_status); }; }; then
19048 ac_cv_sizeof_short=`cat conftest.val`
19049else
19050 echo "$as_me: program exited with status $ac_status" >&5
19051echo "$as_me: failed program was:" >&5
19052sed 's/^/| /' conftest.$ac_ext >&5
19053
19054( exit $ac_status )
19055{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
19056See \`config.log' for more details." >&5
19057echo "$as_me: error: cannot compute sizeof (short), 77
19058See \`config.log' for more details." >&2;}
19059 { (exit 1); exit 1; }; }
19060fi
ac1cb8d3 19061rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19062fi
19063fi
19064rm -f conftest.val
19065else
19066 ac_cv_sizeof_short=0
19067fi
19068fi
19069echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
19070echo "${ECHO_T}$ac_cv_sizeof_short" >&6
19071cat >>confdefs.h <<_ACEOF
19072#define SIZEOF_SHORT $ac_cv_sizeof_short
19073_ACEOF
19074
19075
19076echo "$as_me:$LINENO: checking for void *" >&5
19077echo $ECHO_N "checking for void *... $ECHO_C" >&6
19078if test "${ac_cv_type_void_p+set}" = set; then
19079 echo $ECHO_N "(cached) $ECHO_C" >&6
19080else
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{
19091if ((void * *) 0)
19092 return 0;
19093if (sizeof (void *))
19094 return 0;
19095 ;
19096 return 0;
19097}
19098_ACEOF
19099rm -f conftest.$ac_objext
19100if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19101 (eval $ac_compile) 2>conftest.er1
a848cd7e 19102 ac_status=$?
ac1cb8d3
VS
19103 grep -v '^ *+' conftest.er1 >conftest.err
19104 rm -f conftest.er1
19105 cat conftest.err >&5
a848cd7e
SC
19106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19107 (exit $ac_status); } &&
bb9e79c0 19108 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19110 (eval $ac_try) 2>&5
19111 ac_status=$?
19112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19113 (exit $ac_status); }; } &&
19114 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19116 (eval $ac_try) 2>&5
19117 ac_status=$?
19118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19119 (exit $ac_status); }; }; then
19120 ac_cv_type_void_p=yes
19121else
19122 echo "$as_me: failed program was:" >&5
19123sed 's/^/| /' conftest.$ac_ext >&5
19124
19125ac_cv_type_void_p=no
19126fi
ac1cb8d3 19127rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19128fi
19129echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
19130echo "${ECHO_T}$ac_cv_type_void_p" >&6
19131
19132echo "$as_me:$LINENO: checking size of void *" >&5
19133echo $ECHO_N "checking size of void *... $ECHO_C" >&6
19134if test "${ac_cv_sizeof_void_p+set}" = set; then
19135 echo $ECHO_N "(cached) $ECHO_C" >&6
19136else
19137 if test "$ac_cv_type_void_p" = yes; then
19138 # The cast to unsigned long works around a bug in the HP C Compiler
19139 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19140 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19141 # This bug is HP SR number 8606223364.
19142 if test "$cross_compiling" = yes; then
19143 # Depending upon the size, compute the lo and hi bounds.
19144cat >conftest.$ac_ext <<_ACEOF
19145/* confdefs.h. */
19146_ACEOF
19147cat confdefs.h >>conftest.$ac_ext
19148cat >>conftest.$ac_ext <<_ACEOF
19149/* end confdefs.h. */
19150$ac_includes_default
19151int
19152main ()
19153{
19154static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
19155test_array [0] = 0
19156
19157 ;
19158 return 0;
19159}
19160_ACEOF
19161rm -f conftest.$ac_objext
19162if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19163 (eval $ac_compile) 2>conftest.er1
a848cd7e 19164 ac_status=$?
ac1cb8d3
VS
19165 grep -v '^ *+' conftest.er1 >conftest.err
19166 rm -f conftest.er1
19167 cat conftest.err >&5
a848cd7e
SC
19168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19169 (exit $ac_status); } &&
bb9e79c0 19170 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19172 (eval $ac_try) 2>&5
19173 ac_status=$?
19174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19175 (exit $ac_status); }; } &&
19176 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19178 (eval $ac_try) 2>&5
19179 ac_status=$?
19180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19181 (exit $ac_status); }; }; then
19182 ac_lo=0 ac_mid=0
19183 while :; do
19184 cat >conftest.$ac_ext <<_ACEOF
19185/* confdefs.h. */
19186_ACEOF
19187cat confdefs.h >>conftest.$ac_ext
19188cat >>conftest.$ac_ext <<_ACEOF
19189/* end confdefs.h. */
19190$ac_includes_default
19191int
19192main ()
19193{
19194static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
19195test_array [0] = 0
19196
19197 ;
19198 return 0;
19199}
19200_ACEOF
19201rm -f conftest.$ac_objext
19202if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19203 (eval $ac_compile) 2>conftest.er1
a848cd7e 19204 ac_status=$?
ac1cb8d3
VS
19205 grep -v '^ *+' conftest.er1 >conftest.err
19206 rm -f conftest.er1
19207 cat conftest.err >&5
a848cd7e
SC
19208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19209 (exit $ac_status); } &&
bb9e79c0 19210 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19212 (eval $ac_try) 2>&5
19213 ac_status=$?
19214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19215 (exit $ac_status); }; } &&
19216 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19218 (eval $ac_try) 2>&5
19219 ac_status=$?
19220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19221 (exit $ac_status); }; }; then
19222 ac_hi=$ac_mid; break
19223else
19224 echo "$as_me: failed program was:" >&5
19225sed 's/^/| /' conftest.$ac_ext >&5
19226
19227ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
19228 if test $ac_lo -le $ac_mid; then
19229 ac_lo= ac_hi=
19230 break
19231 fi
19232 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 19233fi
ac1cb8d3 19234rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19235 done
19236else
19237 echo "$as_me: failed program was:" >&5
19238sed 's/^/| /' conftest.$ac_ext >&5
19239
19240cat >conftest.$ac_ext <<_ACEOF
19241/* confdefs.h. */
19242_ACEOF
19243cat confdefs.h >>conftest.$ac_ext
19244cat >>conftest.$ac_ext <<_ACEOF
19245/* end confdefs.h. */
19246$ac_includes_default
19247int
19248main ()
19249{
19250static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
19251test_array [0] = 0
19252
19253 ;
19254 return 0;
19255}
19256_ACEOF
19257rm -f conftest.$ac_objext
19258if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19259 (eval $ac_compile) 2>conftest.er1
a848cd7e 19260 ac_status=$?
ac1cb8d3
VS
19261 grep -v '^ *+' conftest.er1 >conftest.err
19262 rm -f conftest.er1
19263 cat conftest.err >&5
a848cd7e
SC
19264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19265 (exit $ac_status); } &&
bb9e79c0 19266 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19268 (eval $ac_try) 2>&5
19269 ac_status=$?
19270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19271 (exit $ac_status); }; } &&
19272 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19274 (eval $ac_try) 2>&5
19275 ac_status=$?
19276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19277 (exit $ac_status); }; }; then
19278 ac_hi=-1 ac_mid=-1
19279 while :; do
19280 cat >conftest.$ac_ext <<_ACEOF
19281/* confdefs.h. */
19282_ACEOF
19283cat confdefs.h >>conftest.$ac_ext
19284cat >>conftest.$ac_ext <<_ACEOF
19285/* end confdefs.h. */
19286$ac_includes_default
19287int
19288main ()
19289{
19290static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
19291test_array [0] = 0
19292
19293 ;
19294 return 0;
19295}
19296_ACEOF
19297rm -f conftest.$ac_objext
19298if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19299 (eval $ac_compile) 2>conftest.er1
a848cd7e 19300 ac_status=$?
ac1cb8d3
VS
19301 grep -v '^ *+' conftest.er1 >conftest.err
19302 rm -f conftest.er1
19303 cat conftest.err >&5
a848cd7e
SC
19304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19305 (exit $ac_status); } &&
bb9e79c0 19306 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19308 (eval $ac_try) 2>&5
19309 ac_status=$?
19310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19311 (exit $ac_status); }; } &&
19312 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19314 (eval $ac_try) 2>&5
19315 ac_status=$?
19316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19317 (exit $ac_status); }; }; then
19318 ac_lo=$ac_mid; break
19319else
19320 echo "$as_me: failed program was:" >&5
19321sed 's/^/| /' conftest.$ac_ext >&5
19322
19323ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
19324 if test $ac_mid -le $ac_hi; then
19325 ac_lo= ac_hi=
19326 break
19327 fi
19328 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 19329fi
ac1cb8d3 19330rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19331 done
19332else
19333 echo "$as_me: failed program was:" >&5
19334sed 's/^/| /' conftest.$ac_ext >&5
19335
19336ac_lo= ac_hi=
19337fi
ac1cb8d3 19338rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 19339fi
ac1cb8d3 19340rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19341# Binary search between lo and hi bounds.
19342while test "x$ac_lo" != "x$ac_hi"; do
19343 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19344 cat >conftest.$ac_ext <<_ACEOF
19345/* confdefs.h. */
19346_ACEOF
19347cat confdefs.h >>conftest.$ac_ext
19348cat >>conftest.$ac_ext <<_ACEOF
19349/* end confdefs.h. */
19350$ac_includes_default
19351int
19352main ()
19353{
19354static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
19355test_array [0] = 0
19356
19357 ;
19358 return 0;
19359}
19360_ACEOF
19361rm -f conftest.$ac_objext
19362if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19363 (eval $ac_compile) 2>conftest.er1
a848cd7e 19364 ac_status=$?
ac1cb8d3
VS
19365 grep -v '^ *+' conftest.er1 >conftest.err
19366 rm -f conftest.er1
19367 cat conftest.err >&5
a848cd7e
SC
19368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19369 (exit $ac_status); } &&
bb9e79c0 19370 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19372 (eval $ac_try) 2>&5
19373 ac_status=$?
19374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19375 (exit $ac_status); }; } &&
19376 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19378 (eval $ac_try) 2>&5
19379 ac_status=$?
19380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19381 (exit $ac_status); }; }; then
19382 ac_hi=$ac_mid
19383else
19384 echo "$as_me: failed program was:" >&5
19385sed 's/^/| /' conftest.$ac_ext >&5
19386
19387ac_lo=`expr '(' $ac_mid ')' + 1`
19388fi
ac1cb8d3 19389rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19390done
19391case $ac_lo in
19392?*) ac_cv_sizeof_void_p=$ac_lo;;
19393'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
19394See \`config.log' for more details." >&5
19395echo "$as_me: error: cannot compute sizeof (void *), 77
19396See \`config.log' for more details." >&2;}
19397 { (exit 1); exit 1; }; } ;;
19398esac
19399else
19400 if test "$cross_compiling" = yes; then
bb9e79c0
VZ
19401 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19402echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
19403 { (exit 1); exit 1; }; }
19404else
19405 cat >conftest.$ac_ext <<_ACEOF
19406/* confdefs.h. */
19407_ACEOF
19408cat confdefs.h >>conftest.$ac_ext
19409cat >>conftest.$ac_ext <<_ACEOF
19410/* end confdefs.h. */
19411$ac_includes_default
19412long longval () { return (long) (sizeof (void *)); }
19413unsigned long ulongval () { return (long) (sizeof (void *)); }
19414#include <stdio.h>
19415#include <stdlib.h>
19416int
19417main ()
19418{
19419
19420 FILE *f = fopen ("conftest.val", "w");
19421 if (! f)
19422 exit (1);
19423 if (((long) (sizeof (void *))) < 0)
19424 {
19425 long i = longval ();
19426 if (i != ((long) (sizeof (void *))))
19427 exit (1);
19428 fprintf (f, "%ld\n", i);
19429 }
19430 else
19431 {
19432 unsigned long i = ulongval ();
19433 if (i != ((long) (sizeof (void *))))
19434 exit (1);
19435 fprintf (f, "%lu\n", i);
19436 }
19437 exit (ferror (f) || fclose (f) != 0);
19438
19439 ;
19440 return 0;
19441}
19442_ACEOF
19443rm -f conftest$ac_exeext
19444if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19445 (eval $ac_link) 2>&5
19446 ac_status=$?
19447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19448 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19450 (eval $ac_try) 2>&5
19451 ac_status=$?
19452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19453 (exit $ac_status); }; }; then
19454 ac_cv_sizeof_void_p=`cat conftest.val`
19455else
19456 echo "$as_me: program exited with status $ac_status" >&5
19457echo "$as_me: failed program was:" >&5
19458sed 's/^/| /' conftest.$ac_ext >&5
19459
19460( exit $ac_status )
19461{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
19462See \`config.log' for more details." >&5
19463echo "$as_me: error: cannot compute sizeof (void *), 77
19464See \`config.log' for more details." >&2;}
19465 { (exit 1); exit 1; }; }
19466fi
ac1cb8d3 19467rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19468fi
19469fi
19470rm -f conftest.val
19471else
19472 ac_cv_sizeof_void_p=0
19473fi
19474fi
19475echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
19476echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
19477cat >>confdefs.h <<_ACEOF
19478#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
19479_ACEOF
19480
19481
19482echo "$as_me:$LINENO: checking for int" >&5
19483echo $ECHO_N "checking for int... $ECHO_C" >&6
19484if test "${ac_cv_type_int+set}" = set; then
19485 echo $ECHO_N "(cached) $ECHO_C" >&6
19486else
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{
19497if ((int *) 0)
19498 return 0;
19499if (sizeof (int))
19500 return 0;
19501 ;
19502 return 0;
19503}
19504_ACEOF
19505rm -f conftest.$ac_objext
19506if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19507 (eval $ac_compile) 2>conftest.er1
a848cd7e 19508 ac_status=$?
ac1cb8d3
VS
19509 grep -v '^ *+' conftest.er1 >conftest.err
19510 rm -f conftest.er1
19511 cat conftest.err >&5
a848cd7e
SC
19512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19513 (exit $ac_status); } &&
bb9e79c0 19514 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19516 (eval $ac_try) 2>&5
19517 ac_status=$?
19518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19519 (exit $ac_status); }; } &&
19520 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19522 (eval $ac_try) 2>&5
19523 ac_status=$?
19524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19525 (exit $ac_status); }; }; then
19526 ac_cv_type_int=yes
19527else
19528 echo "$as_me: failed program was:" >&5
19529sed 's/^/| /' conftest.$ac_ext >&5
19530
19531ac_cv_type_int=no
19532fi
ac1cb8d3 19533rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19534fi
19535echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
19536echo "${ECHO_T}$ac_cv_type_int" >&6
19537
19538echo "$as_me:$LINENO: checking size of int" >&5
19539echo $ECHO_N "checking size of int... $ECHO_C" >&6
19540if test "${ac_cv_sizeof_int+set}" = set; then
19541 echo $ECHO_N "(cached) $ECHO_C" >&6
19542else
19543 if test "$ac_cv_type_int" = yes; then
19544 # The cast to unsigned long works around a bug in the HP C Compiler
19545 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19546 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19547 # This bug is HP SR number 8606223364.
19548 if test "$cross_compiling" = yes; then
19549 # Depending upon the size, compute the lo and hi bounds.
19550cat >conftest.$ac_ext <<_ACEOF
19551/* confdefs.h. */
19552_ACEOF
19553cat confdefs.h >>conftest.$ac_ext
19554cat >>conftest.$ac_ext <<_ACEOF
19555/* end confdefs.h. */
19556$ac_includes_default
19557int
19558main ()
19559{
19560static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
19561test_array [0] = 0
19562
19563 ;
19564 return 0;
19565}
19566_ACEOF
19567rm -f conftest.$ac_objext
19568if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19569 (eval $ac_compile) 2>conftest.er1
a848cd7e 19570 ac_status=$?
ac1cb8d3
VS
19571 grep -v '^ *+' conftest.er1 >conftest.err
19572 rm -f conftest.er1
19573 cat conftest.err >&5
a848cd7e
SC
19574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19575 (exit $ac_status); } &&
bb9e79c0 19576 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19578 (eval $ac_try) 2>&5
19579 ac_status=$?
19580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19581 (exit $ac_status); }; } &&
19582 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19584 (eval $ac_try) 2>&5
19585 ac_status=$?
19586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19587 (exit $ac_status); }; }; then
19588 ac_lo=0 ac_mid=0
19589 while :; do
19590 cat >conftest.$ac_ext <<_ACEOF
19591/* confdefs.h. */
19592_ACEOF
19593cat confdefs.h >>conftest.$ac_ext
19594cat >>conftest.$ac_ext <<_ACEOF
19595/* end confdefs.h. */
19596$ac_includes_default
19597int
19598main ()
19599{
19600static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
19601test_array [0] = 0
19602
19603 ;
19604 return 0;
19605}
19606_ACEOF
19607rm -f conftest.$ac_objext
19608if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19609 (eval $ac_compile) 2>conftest.er1
a848cd7e 19610 ac_status=$?
ac1cb8d3
VS
19611 grep -v '^ *+' conftest.er1 >conftest.err
19612 rm -f conftest.er1
19613 cat conftest.err >&5
a848cd7e
SC
19614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19615 (exit $ac_status); } &&
bb9e79c0 19616 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19618 (eval $ac_try) 2>&5
19619 ac_status=$?
19620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19621 (exit $ac_status); }; } &&
19622 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19624 (eval $ac_try) 2>&5
19625 ac_status=$?
19626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19627 (exit $ac_status); }; }; then
19628 ac_hi=$ac_mid; break
19629else
19630 echo "$as_me: failed program was:" >&5
19631sed 's/^/| /' conftest.$ac_ext >&5
19632
19633ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
19634 if test $ac_lo -le $ac_mid; then
19635 ac_lo= ac_hi=
19636 break
19637 fi
19638 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 19639fi
ac1cb8d3 19640rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19641 done
19642else
19643 echo "$as_me: failed program was:" >&5
19644sed 's/^/| /' conftest.$ac_ext >&5
19645
19646cat >conftest.$ac_ext <<_ACEOF
19647/* confdefs.h. */
19648_ACEOF
19649cat confdefs.h >>conftest.$ac_ext
19650cat >>conftest.$ac_ext <<_ACEOF
19651/* end confdefs.h. */
19652$ac_includes_default
19653int
19654main ()
19655{
19656static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
19657test_array [0] = 0
19658
19659 ;
19660 return 0;
19661}
19662_ACEOF
19663rm -f conftest.$ac_objext
19664if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19665 (eval $ac_compile) 2>conftest.er1
a848cd7e 19666 ac_status=$?
ac1cb8d3
VS
19667 grep -v '^ *+' conftest.er1 >conftest.err
19668 rm -f conftest.er1
19669 cat conftest.err >&5
a848cd7e
SC
19670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19671 (exit $ac_status); } &&
bb9e79c0 19672 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19674 (eval $ac_try) 2>&5
19675 ac_status=$?
19676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19677 (exit $ac_status); }; } &&
19678 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19680 (eval $ac_try) 2>&5
19681 ac_status=$?
19682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19683 (exit $ac_status); }; }; then
19684 ac_hi=-1 ac_mid=-1
19685 while :; do
19686 cat >conftest.$ac_ext <<_ACEOF
19687/* confdefs.h. */
19688_ACEOF
19689cat confdefs.h >>conftest.$ac_ext
19690cat >>conftest.$ac_ext <<_ACEOF
19691/* end confdefs.h. */
19692$ac_includes_default
19693int
19694main ()
19695{
19696static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
19697test_array [0] = 0
19698
19699 ;
19700 return 0;
19701}
19702_ACEOF
19703rm -f conftest.$ac_objext
19704if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19705 (eval $ac_compile) 2>conftest.er1
a848cd7e 19706 ac_status=$?
ac1cb8d3
VS
19707 grep -v '^ *+' conftest.er1 >conftest.err
19708 rm -f conftest.er1
19709 cat conftest.err >&5
a848cd7e
SC
19710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19711 (exit $ac_status); } &&
bb9e79c0 19712 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19714 (eval $ac_try) 2>&5
19715 ac_status=$?
19716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19717 (exit $ac_status); }; } &&
19718 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19720 (eval $ac_try) 2>&5
19721 ac_status=$?
19722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19723 (exit $ac_status); }; }; then
19724 ac_lo=$ac_mid; break
19725else
19726 echo "$as_me: failed program was:" >&5
19727sed 's/^/| /' conftest.$ac_ext >&5
19728
19729ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
19730 if test $ac_mid -le $ac_hi; then
19731 ac_lo= ac_hi=
19732 break
19733 fi
19734 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 19735fi
ac1cb8d3 19736rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19737 done
19738else
19739 echo "$as_me: failed program was:" >&5
19740sed 's/^/| /' conftest.$ac_ext >&5
19741
19742ac_lo= ac_hi=
19743fi
ac1cb8d3 19744rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 19745fi
ac1cb8d3 19746rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19747# Binary search between lo and hi bounds.
19748while test "x$ac_lo" != "x$ac_hi"; do
19749 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19750 cat >conftest.$ac_ext <<_ACEOF
19751/* confdefs.h. */
19752_ACEOF
19753cat confdefs.h >>conftest.$ac_ext
19754cat >>conftest.$ac_ext <<_ACEOF
19755/* end confdefs.h. */
19756$ac_includes_default
19757int
19758main ()
19759{
19760static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
19761test_array [0] = 0
19762
19763 ;
19764 return 0;
19765}
19766_ACEOF
19767rm -f conftest.$ac_objext
19768if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19769 (eval $ac_compile) 2>conftest.er1
a848cd7e 19770 ac_status=$?
ac1cb8d3
VS
19771 grep -v '^ *+' conftest.er1 >conftest.err
19772 rm -f conftest.er1
19773 cat conftest.err >&5
a848cd7e
SC
19774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19775 (exit $ac_status); } &&
bb9e79c0 19776 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19778 (eval $ac_try) 2>&5
19779 ac_status=$?
19780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19781 (exit $ac_status); }; } &&
19782 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19784 (eval $ac_try) 2>&5
19785 ac_status=$?
19786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19787 (exit $ac_status); }; }; then
19788 ac_hi=$ac_mid
19789else
19790 echo "$as_me: failed program was:" >&5
19791sed 's/^/| /' conftest.$ac_ext >&5
19792
19793ac_lo=`expr '(' $ac_mid ')' + 1`
19794fi
ac1cb8d3 19795rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19796done
19797case $ac_lo in
19798?*) ac_cv_sizeof_int=$ac_lo;;
19799'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
19800See \`config.log' for more details." >&5
19801echo "$as_me: error: cannot compute sizeof (int), 77
19802See \`config.log' for more details." >&2;}
19803 { (exit 1); exit 1; }; } ;;
19804esac
19805else
19806 if test "$cross_compiling" = yes; then
bb9e79c0
VZ
19807 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19808echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
19809 { (exit 1); exit 1; }; }
19810else
19811 cat >conftest.$ac_ext <<_ACEOF
19812/* confdefs.h. */
19813_ACEOF
19814cat confdefs.h >>conftest.$ac_ext
19815cat >>conftest.$ac_ext <<_ACEOF
19816/* end confdefs.h. */
19817$ac_includes_default
19818long longval () { return (long) (sizeof (int)); }
19819unsigned long ulongval () { return (long) (sizeof (int)); }
19820#include <stdio.h>
19821#include <stdlib.h>
19822int
19823main ()
19824{
19825
19826 FILE *f = fopen ("conftest.val", "w");
19827 if (! f)
19828 exit (1);
19829 if (((long) (sizeof (int))) < 0)
19830 {
19831 long i = longval ();
19832 if (i != ((long) (sizeof (int))))
19833 exit (1);
19834 fprintf (f, "%ld\n", i);
19835 }
19836 else
19837 {
19838 unsigned long i = ulongval ();
19839 if (i != ((long) (sizeof (int))))
19840 exit (1);
19841 fprintf (f, "%lu\n", i);
19842 }
19843 exit (ferror (f) || fclose (f) != 0);
19844
19845 ;
19846 return 0;
19847}
19848_ACEOF
19849rm -f conftest$ac_exeext
19850if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19851 (eval $ac_link) 2>&5
19852 ac_status=$?
19853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19854 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19856 (eval $ac_try) 2>&5
19857 ac_status=$?
19858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19859 (exit $ac_status); }; }; then
19860 ac_cv_sizeof_int=`cat conftest.val`
19861else
19862 echo "$as_me: program exited with status $ac_status" >&5
19863echo "$as_me: failed program was:" >&5
19864sed 's/^/| /' conftest.$ac_ext >&5
19865
19866( exit $ac_status )
19867{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
19868See \`config.log' for more details." >&5
19869echo "$as_me: error: cannot compute sizeof (int), 77
19870See \`config.log' for more details." >&2;}
19871 { (exit 1); exit 1; }; }
19872fi
ac1cb8d3 19873rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19874fi
19875fi
19876rm -f conftest.val
19877else
19878 ac_cv_sizeof_int=0
19879fi
19880fi
19881echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
19882echo "${ECHO_T}$ac_cv_sizeof_int" >&6
19883cat >>confdefs.h <<_ACEOF
19884#define SIZEOF_INT $ac_cv_sizeof_int
19885_ACEOF
19886
19887
19888echo "$as_me:$LINENO: checking for long" >&5
19889echo $ECHO_N "checking for long... $ECHO_C" >&6
19890if test "${ac_cv_type_long+set}" = set; then
19891 echo $ECHO_N "(cached) $ECHO_C" >&6
19892else
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{
19903if ((long *) 0)
19904 return 0;
19905if (sizeof (long))
19906 return 0;
19907 ;
19908 return 0;
19909}
19910_ACEOF
19911rm -f conftest.$ac_objext
19912if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19913 (eval $ac_compile) 2>conftest.er1
a848cd7e 19914 ac_status=$?
ac1cb8d3
VS
19915 grep -v '^ *+' conftest.er1 >conftest.err
19916 rm -f conftest.er1
19917 cat conftest.err >&5
a848cd7e
SC
19918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19919 (exit $ac_status); } &&
bb9e79c0 19920 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19922 (eval $ac_try) 2>&5
19923 ac_status=$?
19924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19925 (exit $ac_status); }; } &&
19926 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19928 (eval $ac_try) 2>&5
19929 ac_status=$?
19930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19931 (exit $ac_status); }; }; then
19932 ac_cv_type_long=yes
19933else
19934 echo "$as_me: failed program was:" >&5
19935sed 's/^/| /' conftest.$ac_ext >&5
19936
19937ac_cv_type_long=no
19938fi
ac1cb8d3 19939rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19940fi
19941echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
19942echo "${ECHO_T}$ac_cv_type_long" >&6
19943
19944echo "$as_me:$LINENO: checking size of long" >&5
19945echo $ECHO_N "checking size of long... $ECHO_C" >&6
19946if test "${ac_cv_sizeof_long+set}" = set; then
19947 echo $ECHO_N "(cached) $ECHO_C" >&6
19948else
19949 if test "$ac_cv_type_long" = yes; then
19950 # The cast to unsigned long works around a bug in the HP C Compiler
19951 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19952 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19953 # This bug is HP SR number 8606223364.
19954 if test "$cross_compiling" = yes; then
19955 # Depending upon the size, compute the lo and hi bounds.
19956cat >conftest.$ac_ext <<_ACEOF
19957/* confdefs.h. */
19958_ACEOF
19959cat confdefs.h >>conftest.$ac_ext
19960cat >>conftest.$ac_ext <<_ACEOF
19961/* end confdefs.h. */
19962$ac_includes_default
19963int
19964main ()
19965{
19966static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
19967test_array [0] = 0
19968
19969 ;
19970 return 0;
19971}
19972_ACEOF
19973rm -f conftest.$ac_objext
19974if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19975 (eval $ac_compile) 2>conftest.er1
a848cd7e 19976 ac_status=$?
ac1cb8d3
VS
19977 grep -v '^ *+' conftest.er1 >conftest.err
19978 rm -f conftest.er1
19979 cat conftest.err >&5
a848cd7e
SC
19980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19981 (exit $ac_status); } &&
bb9e79c0 19982 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19984 (eval $ac_try) 2>&5
19985 ac_status=$?
19986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19987 (exit $ac_status); }; } &&
19988 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19990 (eval $ac_try) 2>&5
19991 ac_status=$?
19992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19993 (exit $ac_status); }; }; then
19994 ac_lo=0 ac_mid=0
19995 while :; do
19996 cat >conftest.$ac_ext <<_ACEOF
19997/* confdefs.h. */
19998_ACEOF
19999cat confdefs.h >>conftest.$ac_ext
20000cat >>conftest.$ac_ext <<_ACEOF
20001/* end confdefs.h. */
20002$ac_includes_default
20003int
20004main ()
20005{
20006static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
20007test_array [0] = 0
20008
20009 ;
20010 return 0;
20011}
20012_ACEOF
20013rm -f conftest.$ac_objext
20014if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20015 (eval $ac_compile) 2>conftest.er1
a848cd7e 20016 ac_status=$?
ac1cb8d3
VS
20017 grep -v '^ *+' conftest.er1 >conftest.err
20018 rm -f conftest.er1
20019 cat conftest.err >&5
a848cd7e
SC
20020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20021 (exit $ac_status); } &&
bb9e79c0 20022 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20024 (eval $ac_try) 2>&5
20025 ac_status=$?
20026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20027 (exit $ac_status); }; } &&
20028 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20030 (eval $ac_try) 2>&5
20031 ac_status=$?
20032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20033 (exit $ac_status); }; }; then
20034 ac_hi=$ac_mid; break
20035else
20036 echo "$as_me: failed program was:" >&5
20037sed 's/^/| /' conftest.$ac_ext >&5
20038
20039ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
20040 if test $ac_lo -le $ac_mid; then
20041 ac_lo= ac_hi=
20042 break
20043 fi
20044 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 20045fi
ac1cb8d3 20046rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20047 done
20048else
20049 echo "$as_me: failed program was:" >&5
20050sed 's/^/| /' conftest.$ac_ext >&5
20051
20052cat >conftest.$ac_ext <<_ACEOF
20053/* confdefs.h. */
20054_ACEOF
20055cat confdefs.h >>conftest.$ac_ext
20056cat >>conftest.$ac_ext <<_ACEOF
20057/* end confdefs.h. */
20058$ac_includes_default
20059int
20060main ()
20061{
20062static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
20063test_array [0] = 0
20064
20065 ;
20066 return 0;
20067}
20068_ACEOF
20069rm -f conftest.$ac_objext
20070if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20071 (eval $ac_compile) 2>conftest.er1
a848cd7e 20072 ac_status=$?
ac1cb8d3
VS
20073 grep -v '^ *+' conftest.er1 >conftest.err
20074 rm -f conftest.er1
20075 cat conftest.err >&5
a848cd7e
SC
20076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20077 (exit $ac_status); } &&
bb9e79c0 20078 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20080 (eval $ac_try) 2>&5
20081 ac_status=$?
20082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20083 (exit $ac_status); }; } &&
20084 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20086 (eval $ac_try) 2>&5
20087 ac_status=$?
20088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20089 (exit $ac_status); }; }; then
20090 ac_hi=-1 ac_mid=-1
20091 while :; do
20092 cat >conftest.$ac_ext <<_ACEOF
20093/* confdefs.h. */
20094_ACEOF
20095cat confdefs.h >>conftest.$ac_ext
20096cat >>conftest.$ac_ext <<_ACEOF
20097/* end confdefs.h. */
20098$ac_includes_default
20099int
20100main ()
20101{
20102static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
20103test_array [0] = 0
20104
20105 ;
20106 return 0;
20107}
20108_ACEOF
20109rm -f conftest.$ac_objext
20110if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20111 (eval $ac_compile) 2>conftest.er1
a848cd7e 20112 ac_status=$?
ac1cb8d3
VS
20113 grep -v '^ *+' conftest.er1 >conftest.err
20114 rm -f conftest.er1
20115 cat conftest.err >&5
a848cd7e
SC
20116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20117 (exit $ac_status); } &&
bb9e79c0 20118 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20120 (eval $ac_try) 2>&5
20121 ac_status=$?
20122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20123 (exit $ac_status); }; } &&
20124 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20126 (eval $ac_try) 2>&5
20127 ac_status=$?
20128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20129 (exit $ac_status); }; }; then
20130 ac_lo=$ac_mid; break
20131else
20132 echo "$as_me: failed program was:" >&5
20133sed 's/^/| /' conftest.$ac_ext >&5
20134
20135ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
20136 if test $ac_mid -le $ac_hi; then
20137 ac_lo= ac_hi=
20138 break
20139 fi
20140 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 20141fi
ac1cb8d3 20142rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20143 done
20144else
20145 echo "$as_me: failed program was:" >&5
20146sed 's/^/| /' conftest.$ac_ext >&5
20147
20148ac_lo= ac_hi=
20149fi
ac1cb8d3 20150rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 20151fi
ac1cb8d3 20152rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20153# Binary search between lo and hi bounds.
20154while test "x$ac_lo" != "x$ac_hi"; do
20155 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20156 cat >conftest.$ac_ext <<_ACEOF
20157/* confdefs.h. */
20158_ACEOF
20159cat confdefs.h >>conftest.$ac_ext
20160cat >>conftest.$ac_ext <<_ACEOF
20161/* end confdefs.h. */
20162$ac_includes_default
20163int
20164main ()
20165{
20166static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
20167test_array [0] = 0
20168
20169 ;
20170 return 0;
20171}
20172_ACEOF
20173rm -f conftest.$ac_objext
20174if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20175 (eval $ac_compile) 2>conftest.er1
a848cd7e 20176 ac_status=$?
ac1cb8d3
VS
20177 grep -v '^ *+' conftest.er1 >conftest.err
20178 rm -f conftest.er1
20179 cat conftest.err >&5
a848cd7e
SC
20180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20181 (exit $ac_status); } &&
bb9e79c0 20182 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20184 (eval $ac_try) 2>&5
20185 ac_status=$?
20186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20187 (exit $ac_status); }; } &&
20188 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20190 (eval $ac_try) 2>&5
20191 ac_status=$?
20192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20193 (exit $ac_status); }; }; then
20194 ac_hi=$ac_mid
20195else
20196 echo "$as_me: failed program was:" >&5
20197sed 's/^/| /' conftest.$ac_ext >&5
20198
20199ac_lo=`expr '(' $ac_mid ')' + 1`
20200fi
ac1cb8d3 20201rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20202done
20203case $ac_lo in
20204?*) ac_cv_sizeof_long=$ac_lo;;
20205'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
20206See \`config.log' for more details." >&5
20207echo "$as_me: error: cannot compute sizeof (long), 77
20208See \`config.log' for more details." >&2;}
20209 { (exit 1); exit 1; }; } ;;
20210esac
20211else
20212 if test "$cross_compiling" = yes; then
bb9e79c0
VZ
20213 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
20214echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
20215 { (exit 1); exit 1; }; }
20216else
20217 cat >conftest.$ac_ext <<_ACEOF
20218/* confdefs.h. */
20219_ACEOF
20220cat confdefs.h >>conftest.$ac_ext
20221cat >>conftest.$ac_ext <<_ACEOF
20222/* end confdefs.h. */
20223$ac_includes_default
20224long longval () { return (long) (sizeof (long)); }
20225unsigned long ulongval () { return (long) (sizeof (long)); }
20226#include <stdio.h>
20227#include <stdlib.h>
20228int
20229main ()
20230{
20231
20232 FILE *f = fopen ("conftest.val", "w");
20233 if (! f)
20234 exit (1);
20235 if (((long) (sizeof (long))) < 0)
20236 {
20237 long i = longval ();
20238 if (i != ((long) (sizeof (long))))
20239 exit (1);
20240 fprintf (f, "%ld\n", i);
20241 }
20242 else
20243 {
20244 unsigned long i = ulongval ();
20245 if (i != ((long) (sizeof (long))))
20246 exit (1);
20247 fprintf (f, "%lu\n", i);
20248 }
20249 exit (ferror (f) || fclose (f) != 0);
20250
20251 ;
20252 return 0;
20253}
20254_ACEOF
20255rm -f conftest$ac_exeext
20256if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20257 (eval $ac_link) 2>&5
20258 ac_status=$?
20259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20260 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20262 (eval $ac_try) 2>&5
20263 ac_status=$?
20264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20265 (exit $ac_status); }; }; then
20266 ac_cv_sizeof_long=`cat conftest.val`
20267else
20268 echo "$as_me: program exited with status $ac_status" >&5
20269echo "$as_me: failed program was:" >&5
20270sed 's/^/| /' conftest.$ac_ext >&5
20271
20272( exit $ac_status )
20273{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
20274See \`config.log' for more details." >&5
20275echo "$as_me: error: cannot compute sizeof (long), 77
20276See \`config.log' for more details." >&2;}
20277 { (exit 1); exit 1; }; }
20278fi
ac1cb8d3 20279rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20280fi
20281fi
20282rm -f conftest.val
20283else
20284 ac_cv_sizeof_long=0
20285fi
20286fi
20287echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
20288echo "${ECHO_T}$ac_cv_sizeof_long" >&6
20289cat >>confdefs.h <<_ACEOF
20290#define SIZEOF_LONG $ac_cv_sizeof_long
20291_ACEOF
20292
20293
20294echo "$as_me:$LINENO: checking for size_t" >&5
20295echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20296if test "${ac_cv_type_size_t+set}" = set; then
20297 echo $ECHO_N "(cached) $ECHO_C" >&6
20298else
20299 cat >conftest.$ac_ext <<_ACEOF
20300/* confdefs.h. */
20301_ACEOF
20302cat confdefs.h >>conftest.$ac_ext
20303cat >>conftest.$ac_ext <<_ACEOF
20304/* end confdefs.h. */
20305$ac_includes_default
20306int
20307main ()
20308{
20309if ((size_t *) 0)
20310 return 0;
20311if (sizeof (size_t))
20312 return 0;
20313 ;
20314 return 0;
20315}
20316_ACEOF
20317rm -f conftest.$ac_objext
20318if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20319 (eval $ac_compile) 2>conftest.er1
a848cd7e 20320 ac_status=$?
ac1cb8d3
VS
20321 grep -v '^ *+' conftest.er1 >conftest.err
20322 rm -f conftest.er1
20323 cat conftest.err >&5
a848cd7e
SC
20324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20325 (exit $ac_status); } &&
bb9e79c0 20326 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20328 (eval $ac_try) 2>&5
20329 ac_status=$?
20330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20331 (exit $ac_status); }; } &&
20332 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20334 (eval $ac_try) 2>&5
20335 ac_status=$?
20336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20337 (exit $ac_status); }; }; then
20338 ac_cv_type_size_t=yes
20339else
20340 echo "$as_me: failed program was:" >&5
20341sed 's/^/| /' conftest.$ac_ext >&5
20342
20343ac_cv_type_size_t=no
20344fi
ac1cb8d3 20345rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20346fi
20347echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20348echo "${ECHO_T}$ac_cv_type_size_t" >&6
20349
20350echo "$as_me:$LINENO: checking size of size_t" >&5
20351echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
20352if test "${ac_cv_sizeof_size_t+set}" = set; then
20353 echo $ECHO_N "(cached) $ECHO_C" >&6
20354else
20355 if test "$ac_cv_type_size_t" = yes; then
20356 # The cast to unsigned long works around a bug in the HP C Compiler
20357 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20358 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20359 # This bug is HP SR number 8606223364.
20360 if test "$cross_compiling" = yes; then
20361 # Depending upon the size, compute the lo and hi bounds.
20362cat >conftest.$ac_ext <<_ACEOF
20363/* confdefs.h. */
20364_ACEOF
20365cat confdefs.h >>conftest.$ac_ext
20366cat >>conftest.$ac_ext <<_ACEOF
20367/* end confdefs.h. */
20368$ac_includes_default
20369int
20370main ()
20371{
20372static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
20373test_array [0] = 0
20374
20375 ;
20376 return 0;
20377}
20378_ACEOF
20379rm -f conftest.$ac_objext
20380if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20381 (eval $ac_compile) 2>conftest.er1
a848cd7e 20382 ac_status=$?
ac1cb8d3
VS
20383 grep -v '^ *+' conftest.er1 >conftest.err
20384 rm -f conftest.er1
20385 cat conftest.err >&5
a848cd7e
SC
20386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20387 (exit $ac_status); } &&
bb9e79c0 20388 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20390 (eval $ac_try) 2>&5
20391 ac_status=$?
20392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20393 (exit $ac_status); }; } &&
20394 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20396 (eval $ac_try) 2>&5
20397 ac_status=$?
20398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20399 (exit $ac_status); }; }; then
20400 ac_lo=0 ac_mid=0
20401 while :; do
20402 cat >conftest.$ac_ext <<_ACEOF
20403/* confdefs.h. */
20404_ACEOF
20405cat confdefs.h >>conftest.$ac_ext
20406cat >>conftest.$ac_ext <<_ACEOF
20407/* end confdefs.h. */
20408$ac_includes_default
20409int
20410main ()
20411{
20412static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
20413test_array [0] = 0
20414
20415 ;
20416 return 0;
20417}
20418_ACEOF
20419rm -f conftest.$ac_objext
20420if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20421 (eval $ac_compile) 2>conftest.er1
a848cd7e 20422 ac_status=$?
ac1cb8d3
VS
20423 grep -v '^ *+' conftest.er1 >conftest.err
20424 rm -f conftest.er1
20425 cat conftest.err >&5
a848cd7e
SC
20426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20427 (exit $ac_status); } &&
bb9e79c0 20428 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20430 (eval $ac_try) 2>&5
20431 ac_status=$?
20432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20433 (exit $ac_status); }; } &&
20434 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20436 (eval $ac_try) 2>&5
20437 ac_status=$?
20438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20439 (exit $ac_status); }; }; then
20440 ac_hi=$ac_mid; break
20441else
20442 echo "$as_me: failed program was:" >&5
20443sed 's/^/| /' conftest.$ac_ext >&5
20444
20445ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
20446 if test $ac_lo -le $ac_mid; then
20447 ac_lo= ac_hi=
20448 break
20449 fi
20450 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 20451fi
ac1cb8d3 20452rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20453 done
20454else
20455 echo "$as_me: failed program was:" >&5
20456sed 's/^/| /' conftest.$ac_ext >&5
20457
20458cat >conftest.$ac_ext <<_ACEOF
20459/* confdefs.h. */
20460_ACEOF
20461cat confdefs.h >>conftest.$ac_ext
20462cat >>conftest.$ac_ext <<_ACEOF
20463/* end confdefs.h. */
20464$ac_includes_default
20465int
20466main ()
20467{
20468static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
20469test_array [0] = 0
20470
20471 ;
20472 return 0;
20473}
20474_ACEOF
20475rm -f conftest.$ac_objext
20476if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20477 (eval $ac_compile) 2>conftest.er1
a848cd7e 20478 ac_status=$?
ac1cb8d3
VS
20479 grep -v '^ *+' conftest.er1 >conftest.err
20480 rm -f conftest.er1
20481 cat conftest.err >&5
a848cd7e
SC
20482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20483 (exit $ac_status); } &&
bb9e79c0 20484 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20486 (eval $ac_try) 2>&5
20487 ac_status=$?
20488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20489 (exit $ac_status); }; } &&
20490 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20492 (eval $ac_try) 2>&5
20493 ac_status=$?
20494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20495 (exit $ac_status); }; }; then
20496 ac_hi=-1 ac_mid=-1
20497 while :; do
20498 cat >conftest.$ac_ext <<_ACEOF
20499/* confdefs.h. */
20500_ACEOF
20501cat confdefs.h >>conftest.$ac_ext
20502cat >>conftest.$ac_ext <<_ACEOF
20503/* end confdefs.h. */
20504$ac_includes_default
20505int
20506main ()
20507{
20508static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
20509test_array [0] = 0
20510
20511 ;
20512 return 0;
20513}
20514_ACEOF
20515rm -f conftest.$ac_objext
20516if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20517 (eval $ac_compile) 2>conftest.er1
a848cd7e 20518 ac_status=$?
ac1cb8d3
VS
20519 grep -v '^ *+' conftest.er1 >conftest.err
20520 rm -f conftest.er1
20521 cat conftest.err >&5
a848cd7e
SC
20522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20523 (exit $ac_status); } &&
bb9e79c0 20524 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20526 (eval $ac_try) 2>&5
20527 ac_status=$?
20528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20529 (exit $ac_status); }; } &&
20530 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20532 (eval $ac_try) 2>&5
20533 ac_status=$?
20534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20535 (exit $ac_status); }; }; then
20536 ac_lo=$ac_mid; break
20537else
20538 echo "$as_me: failed program was:" >&5
20539sed 's/^/| /' conftest.$ac_ext >&5
20540
20541ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
20542 if test $ac_mid -le $ac_hi; then
20543 ac_lo= ac_hi=
20544 break
20545 fi
20546 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 20547fi
ac1cb8d3 20548rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20549 done
20550else
20551 echo "$as_me: failed program was:" >&5
20552sed 's/^/| /' conftest.$ac_ext >&5
20553
20554ac_lo= ac_hi=
20555fi
ac1cb8d3 20556rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 20557fi
ac1cb8d3 20558rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20559# Binary search between lo and hi bounds.
20560while test "x$ac_lo" != "x$ac_hi"; do
20561 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20562 cat >conftest.$ac_ext <<_ACEOF
20563/* confdefs.h. */
20564_ACEOF
20565cat confdefs.h >>conftest.$ac_ext
20566cat >>conftest.$ac_ext <<_ACEOF
20567/* end confdefs.h. */
20568$ac_includes_default
20569int
20570main ()
20571{
20572static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
20573test_array [0] = 0
20574
20575 ;
20576 return 0;
20577}
20578_ACEOF
20579rm -f conftest.$ac_objext
20580if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20581 (eval $ac_compile) 2>conftest.er1
a848cd7e 20582 ac_status=$?
ac1cb8d3
VS
20583 grep -v '^ *+' conftest.er1 >conftest.err
20584 rm -f conftest.er1
20585 cat conftest.err >&5
a848cd7e
SC
20586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20587 (exit $ac_status); } &&
bb9e79c0 20588 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20590 (eval $ac_try) 2>&5
20591 ac_status=$?
20592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20593 (exit $ac_status); }; } &&
20594 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20596 (eval $ac_try) 2>&5
20597 ac_status=$?
20598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20599 (exit $ac_status); }; }; then
20600 ac_hi=$ac_mid
20601else
20602 echo "$as_me: failed program was:" >&5
20603sed 's/^/| /' conftest.$ac_ext >&5
20604
20605ac_lo=`expr '(' $ac_mid ')' + 1`
20606fi
ac1cb8d3 20607rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20608done
20609case $ac_lo in
20610?*) ac_cv_sizeof_size_t=$ac_lo;;
20611'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
20612See \`config.log' for more details." >&5
20613echo "$as_me: error: cannot compute sizeof (size_t), 77
20614See \`config.log' for more details." >&2;}
20615 { (exit 1); exit 1; }; } ;;
20616esac
20617else
20618 if test "$cross_compiling" = yes; then
bb9e79c0
VZ
20619 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
20620echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
20621 { (exit 1); exit 1; }; }
20622else
20623 cat >conftest.$ac_ext <<_ACEOF
20624/* confdefs.h. */
20625_ACEOF
20626cat confdefs.h >>conftest.$ac_ext
20627cat >>conftest.$ac_ext <<_ACEOF
20628/* end confdefs.h. */
20629$ac_includes_default
20630long longval () { return (long) (sizeof (size_t)); }
20631unsigned long ulongval () { return (long) (sizeof (size_t)); }
20632#include <stdio.h>
20633#include <stdlib.h>
20634int
20635main ()
20636{
20637
20638 FILE *f = fopen ("conftest.val", "w");
20639 if (! f)
20640 exit (1);
20641 if (((long) (sizeof (size_t))) < 0)
20642 {
20643 long i = longval ();
20644 if (i != ((long) (sizeof (size_t))))
20645 exit (1);
20646 fprintf (f, "%ld\n", i);
20647 }
20648 else
20649 {
20650 unsigned long i = ulongval ();
20651 if (i != ((long) (sizeof (size_t))))
20652 exit (1);
20653 fprintf (f, "%lu\n", i);
20654 }
20655 exit (ferror (f) || fclose (f) != 0);
20656
20657 ;
20658 return 0;
20659}
20660_ACEOF
20661rm -f conftest$ac_exeext
20662if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20663 (eval $ac_link) 2>&5
20664 ac_status=$?
20665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20666 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20668 (eval $ac_try) 2>&5
20669 ac_status=$?
20670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20671 (exit $ac_status); }; }; then
20672 ac_cv_sizeof_size_t=`cat conftest.val`
20673else
20674 echo "$as_me: program exited with status $ac_status" >&5
20675echo "$as_me: failed program was:" >&5
20676sed 's/^/| /' conftest.$ac_ext >&5
20677
20678( exit $ac_status )
20679{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
20680See \`config.log' for more details." >&5
20681echo "$as_me: error: cannot compute sizeof (size_t), 77
20682See \`config.log' for more details." >&2;}
20683 { (exit 1); exit 1; }; }
20684fi
ac1cb8d3 20685rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20686fi
20687fi
20688rm -f conftest.val
20689else
20690 ac_cv_sizeof_size_t=0
20691fi
20692fi
20693echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
20694echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
20695cat >>confdefs.h <<_ACEOF
20696#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
20697_ACEOF
20698
20699
20700
20701case "${host}" in
20702 arm-*-linux* )
20703 echo "$as_me:$LINENO: checking for long long" >&5
20704echo $ECHO_N "checking for long long... $ECHO_C" >&6
20705if test "${ac_cv_type_long_long+set}" = set; then
20706 echo $ECHO_N "(cached) $ECHO_C" >&6
20707else
20708 cat >conftest.$ac_ext <<_ACEOF
20709/* confdefs.h. */
20710_ACEOF
20711cat confdefs.h >>conftest.$ac_ext
20712cat >>conftest.$ac_ext <<_ACEOF
20713/* end confdefs.h. */
20714$ac_includes_default
20715int
20716main ()
20717{
20718if ((long long *) 0)
20719 return 0;
20720if (sizeof (long long))
20721 return 0;
20722 ;
20723 return 0;
20724}
20725_ACEOF
20726rm -f conftest.$ac_objext
20727if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20728 (eval $ac_compile) 2>conftest.er1
a848cd7e 20729 ac_status=$?
ac1cb8d3
VS
20730 grep -v '^ *+' conftest.er1 >conftest.err
20731 rm -f conftest.er1
20732 cat conftest.err >&5
a848cd7e
SC
20733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20734 (exit $ac_status); } &&
bb9e79c0 20735 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20737 (eval $ac_try) 2>&5
20738 ac_status=$?
20739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20740 (exit $ac_status); }; } &&
20741 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20743 (eval $ac_try) 2>&5
20744 ac_status=$?
20745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20746 (exit $ac_status); }; }; then
20747 ac_cv_type_long_long=yes
20748else
20749 echo "$as_me: failed program was:" >&5
20750sed 's/^/| /' conftest.$ac_ext >&5
20751
20752ac_cv_type_long_long=no
20753fi
ac1cb8d3 20754rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20755fi
20756echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
20757echo "${ECHO_T}$ac_cv_type_long_long" >&6
20758
20759echo "$as_me:$LINENO: checking size of long long" >&5
20760echo $ECHO_N "checking size of long long... $ECHO_C" >&6
20761if test "${ac_cv_sizeof_long_long+set}" = set; then
20762 echo $ECHO_N "(cached) $ECHO_C" >&6
20763else
20764 if test "$ac_cv_type_long_long" = yes; then
20765 # The cast to unsigned long works around a bug in the HP C Compiler
20766 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20767 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20768 # This bug is HP SR number 8606223364.
20769 if test "$cross_compiling" = yes; then
20770 # Depending upon the size, compute the lo and hi bounds.
20771cat >conftest.$ac_ext <<_ACEOF
20772/* confdefs.h. */
20773_ACEOF
20774cat confdefs.h >>conftest.$ac_ext
20775cat >>conftest.$ac_ext <<_ACEOF
20776/* end confdefs.h. */
20777$ac_includes_default
20778int
20779main ()
20780{
20781static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
20782test_array [0] = 0
20783
20784 ;
20785 return 0;
20786}
20787_ACEOF
20788rm -f conftest.$ac_objext
20789if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20790 (eval $ac_compile) 2>conftest.er1
a848cd7e 20791 ac_status=$?
ac1cb8d3
VS
20792 grep -v '^ *+' conftest.er1 >conftest.err
20793 rm -f conftest.er1
20794 cat conftest.err >&5
a848cd7e
SC
20795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20796 (exit $ac_status); } &&
bb9e79c0 20797 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20799 (eval $ac_try) 2>&5
20800 ac_status=$?
20801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20802 (exit $ac_status); }; } &&
20803 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20805 (eval $ac_try) 2>&5
20806 ac_status=$?
20807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20808 (exit $ac_status); }; }; then
20809 ac_lo=0 ac_mid=0
20810 while :; do
20811 cat >conftest.$ac_ext <<_ACEOF
20812/* confdefs.h. */
20813_ACEOF
20814cat confdefs.h >>conftest.$ac_ext
20815cat >>conftest.$ac_ext <<_ACEOF
20816/* end confdefs.h. */
20817$ac_includes_default
20818int
20819main ()
20820{
20821static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20822test_array [0] = 0
20823
20824 ;
20825 return 0;
20826}
20827_ACEOF
20828rm -f conftest.$ac_objext
20829if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20830 (eval $ac_compile) 2>conftest.er1
a848cd7e 20831 ac_status=$?
ac1cb8d3
VS
20832 grep -v '^ *+' conftest.er1 >conftest.err
20833 rm -f conftest.er1
20834 cat conftest.err >&5
a848cd7e
SC
20835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20836 (exit $ac_status); } &&
bb9e79c0 20837 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20839 (eval $ac_try) 2>&5
20840 ac_status=$?
20841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20842 (exit $ac_status); }; } &&
20843 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20845 (eval $ac_try) 2>&5
20846 ac_status=$?
20847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20848 (exit $ac_status); }; }; then
20849 ac_hi=$ac_mid; break
20850else
20851 echo "$as_me: failed program was:" >&5
20852sed 's/^/| /' conftest.$ac_ext >&5
20853
20854ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
20855 if test $ac_lo -le $ac_mid; then
20856 ac_lo= ac_hi=
20857 break
20858 fi
20859 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 20860fi
ac1cb8d3 20861rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20862 done
20863else
20864 echo "$as_me: failed program was:" >&5
20865sed 's/^/| /' conftest.$ac_ext >&5
20866
20867cat >conftest.$ac_ext <<_ACEOF
20868/* confdefs.h. */
20869_ACEOF
20870cat confdefs.h >>conftest.$ac_ext
20871cat >>conftest.$ac_ext <<_ACEOF
20872/* end confdefs.h. */
20873$ac_includes_default
20874int
20875main ()
20876{
20877static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
20878test_array [0] = 0
20879
20880 ;
20881 return 0;
20882}
20883_ACEOF
20884rm -f conftest.$ac_objext
20885if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20886 (eval $ac_compile) 2>conftest.er1
a848cd7e 20887 ac_status=$?
ac1cb8d3
VS
20888 grep -v '^ *+' conftest.er1 >conftest.err
20889 rm -f conftest.er1
20890 cat conftest.err >&5
a848cd7e
SC
20891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20892 (exit $ac_status); } &&
bb9e79c0 20893 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20895 (eval $ac_try) 2>&5
20896 ac_status=$?
20897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20898 (exit $ac_status); }; } &&
20899 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20901 (eval $ac_try) 2>&5
20902 ac_status=$?
20903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20904 (exit $ac_status); }; }; then
20905 ac_hi=-1 ac_mid=-1
20906 while :; do
20907 cat >conftest.$ac_ext <<_ACEOF
20908/* confdefs.h. */
20909_ACEOF
20910cat confdefs.h >>conftest.$ac_ext
20911cat >>conftest.$ac_ext <<_ACEOF
20912/* end confdefs.h. */
20913$ac_includes_default
20914int
20915main ()
20916{
20917static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
20918test_array [0] = 0
20919
20920 ;
20921 return 0;
20922}
20923_ACEOF
20924rm -f conftest.$ac_objext
20925if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20926 (eval $ac_compile) 2>conftest.er1
a848cd7e 20927 ac_status=$?
ac1cb8d3
VS
20928 grep -v '^ *+' conftest.er1 >conftest.err
20929 rm -f conftest.er1
20930 cat conftest.err >&5
a848cd7e
SC
20931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20932 (exit $ac_status); } &&
bb9e79c0 20933 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20935 (eval $ac_try) 2>&5
20936 ac_status=$?
20937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20938 (exit $ac_status); }; } &&
20939 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20941 (eval $ac_try) 2>&5
20942 ac_status=$?
20943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20944 (exit $ac_status); }; }; then
20945 ac_lo=$ac_mid; break
20946else
20947 echo "$as_me: failed program was:" >&5
20948sed 's/^/| /' conftest.$ac_ext >&5
20949
20950ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
20951 if test $ac_mid -le $ac_hi; then
20952 ac_lo= ac_hi=
20953 break
20954 fi
20955 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 20956fi
ac1cb8d3 20957rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20958 done
20959else
20960 echo "$as_me: failed program was:" >&5
20961sed 's/^/| /' conftest.$ac_ext >&5
20962
20963ac_lo= ac_hi=
20964fi
ac1cb8d3 20965rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 20966fi
ac1cb8d3 20967rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20968# Binary search between lo and hi bounds.
20969while test "x$ac_lo" != "x$ac_hi"; do
20970 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20971 cat >conftest.$ac_ext <<_ACEOF
20972/* confdefs.h. */
20973_ACEOF
20974cat confdefs.h >>conftest.$ac_ext
20975cat >>conftest.$ac_ext <<_ACEOF
20976/* end confdefs.h. */
20977$ac_includes_default
20978int
20979main ()
20980{
20981static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20982test_array [0] = 0
20983
20984 ;
20985 return 0;
20986}
20987_ACEOF
20988rm -f conftest.$ac_objext
20989if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20990 (eval $ac_compile) 2>conftest.er1
a848cd7e 20991 ac_status=$?
ac1cb8d3
VS
20992 grep -v '^ *+' conftest.er1 >conftest.err
20993 rm -f conftest.er1
20994 cat conftest.err >&5
a848cd7e
SC
20995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20996 (exit $ac_status); } &&
bb9e79c0 20997 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20999 (eval $ac_try) 2>&5
21000 ac_status=$?
21001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21002 (exit $ac_status); }; } &&
21003 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21005 (eval $ac_try) 2>&5
21006 ac_status=$?
21007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21008 (exit $ac_status); }; }; then
21009 ac_hi=$ac_mid
21010else
21011 echo "$as_me: failed program was:" >&5
21012sed 's/^/| /' conftest.$ac_ext >&5
21013
21014ac_lo=`expr '(' $ac_mid ')' + 1`
21015fi
ac1cb8d3 21016rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21017done
21018case $ac_lo in
21019?*) ac_cv_sizeof_long_long=$ac_lo;;
21020'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
21021See \`config.log' for more details." >&5
21022echo "$as_me: error: cannot compute sizeof (long long), 77
21023See \`config.log' for more details." >&2;}
21024 { (exit 1); exit 1; }; } ;;
21025esac
21026else
21027 if test "$cross_compiling" = yes; then
bb9e79c0
VZ
21028 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
21029echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
21030 { (exit 1); exit 1; }; }
21031else
21032 cat >conftest.$ac_ext <<_ACEOF
21033/* confdefs.h. */
21034_ACEOF
21035cat confdefs.h >>conftest.$ac_ext
21036cat >>conftest.$ac_ext <<_ACEOF
21037/* end confdefs.h. */
21038$ac_includes_default
21039long longval () { return (long) (sizeof (long long)); }
21040unsigned long ulongval () { return (long) (sizeof (long long)); }
21041#include <stdio.h>
21042#include <stdlib.h>
21043int
21044main ()
21045{
21046
21047 FILE *f = fopen ("conftest.val", "w");
21048 if (! f)
21049 exit (1);
21050 if (((long) (sizeof (long long))) < 0)
21051 {
21052 long i = longval ();
21053 if (i != ((long) (sizeof (long long))))
21054 exit (1);
21055 fprintf (f, "%ld\n", i);
21056 }
21057 else
21058 {
21059 unsigned long i = ulongval ();
21060 if (i != ((long) (sizeof (long long))))
21061 exit (1);
21062 fprintf (f, "%lu\n", i);
21063 }
21064 exit (ferror (f) || fclose (f) != 0);
21065
21066 ;
21067 return 0;
21068}
21069_ACEOF
21070rm -f conftest$ac_exeext
21071if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21072 (eval $ac_link) 2>&5
21073 ac_status=$?
21074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21075 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21077 (eval $ac_try) 2>&5
21078 ac_status=$?
21079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21080 (exit $ac_status); }; }; then
21081 ac_cv_sizeof_long_long=`cat conftest.val`
21082else
21083 echo "$as_me: program exited with status $ac_status" >&5
21084echo "$as_me: failed program was:" >&5
21085sed 's/^/| /' conftest.$ac_ext >&5
21086
21087( exit $ac_status )
21088{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
21089See \`config.log' for more details." >&5
21090echo "$as_me: error: cannot compute sizeof (long long), 77
21091See \`config.log' for more details." >&2;}
21092 { (exit 1); exit 1; }; }
21093fi
ac1cb8d3 21094rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21095fi
21096fi
21097rm -f conftest.val
21098else
21099 ac_cv_sizeof_long_long=0
21100fi
21101fi
21102echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
21103echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
21104cat >>confdefs.h <<_ACEOF
21105#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
21106_ACEOF
21107
21108
21109 ;;
21110 *-hp-hpux* )
21111 echo "$as_me:$LINENO: checking for long long" >&5
21112echo $ECHO_N "checking for long long... $ECHO_C" >&6
21113if test "${ac_cv_type_long_long+set}" = set; then
21114 echo $ECHO_N "(cached) $ECHO_C" >&6
21115else
21116 cat >conftest.$ac_ext <<_ACEOF
21117/* confdefs.h. */
21118_ACEOF
21119cat confdefs.h >>conftest.$ac_ext
21120cat >>conftest.$ac_ext <<_ACEOF
21121/* end confdefs.h. */
21122$ac_includes_default
21123int
21124main ()
21125{
21126if ((long long *) 0)
21127 return 0;
21128if (sizeof (long long))
21129 return 0;
21130 ;
21131 return 0;
21132}
21133_ACEOF
21134rm -f conftest.$ac_objext
21135if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21136 (eval $ac_compile) 2>conftest.er1
a848cd7e 21137 ac_status=$?
ac1cb8d3
VS
21138 grep -v '^ *+' conftest.er1 >conftest.err
21139 rm -f conftest.er1
21140 cat conftest.err >&5
a848cd7e
SC
21141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21142 (exit $ac_status); } &&
bb9e79c0 21143 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21145 (eval $ac_try) 2>&5
21146 ac_status=$?
21147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21148 (exit $ac_status); }; } &&
21149 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21151 (eval $ac_try) 2>&5
21152 ac_status=$?
21153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21154 (exit $ac_status); }; }; then
21155 ac_cv_type_long_long=yes
21156else
21157 echo "$as_me: failed program was:" >&5
21158sed 's/^/| /' conftest.$ac_ext >&5
21159
21160ac_cv_type_long_long=no
21161fi
ac1cb8d3 21162rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21163fi
21164echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
21165echo "${ECHO_T}$ac_cv_type_long_long" >&6
21166
21167echo "$as_me:$LINENO: checking size of long long" >&5
21168echo $ECHO_N "checking size of long long... $ECHO_C" >&6
21169if test "${ac_cv_sizeof_long_long+set}" = set; then
21170 echo $ECHO_N "(cached) $ECHO_C" >&6
21171else
21172 if test "$ac_cv_type_long_long" = yes; then
21173 # The cast to unsigned long works around a bug in the HP C Compiler
21174 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21175 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21176 # This bug is HP SR number 8606223364.
21177 if test "$cross_compiling" = yes; then
21178 # Depending upon the size, compute the lo and hi bounds.
21179cat >conftest.$ac_ext <<_ACEOF
21180/* confdefs.h. */
21181_ACEOF
21182cat confdefs.h >>conftest.$ac_ext
21183cat >>conftest.$ac_ext <<_ACEOF
21184/* end confdefs.h. */
21185$ac_includes_default
21186int
21187main ()
21188{
21189static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
21190test_array [0] = 0
21191
21192 ;
21193 return 0;
21194}
21195_ACEOF
21196rm -f conftest.$ac_objext
21197if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21198 (eval $ac_compile) 2>conftest.er1
a848cd7e 21199 ac_status=$?
ac1cb8d3
VS
21200 grep -v '^ *+' conftest.er1 >conftest.err
21201 rm -f conftest.er1
21202 cat conftest.err >&5
a848cd7e
SC
21203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21204 (exit $ac_status); } &&
bb9e79c0 21205 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21207 (eval $ac_try) 2>&5
21208 ac_status=$?
21209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21210 (exit $ac_status); }; } &&
21211 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21213 (eval $ac_try) 2>&5
21214 ac_status=$?
21215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21216 (exit $ac_status); }; }; then
21217 ac_lo=0 ac_mid=0
21218 while :; do
21219 cat >conftest.$ac_ext <<_ACEOF
21220/* confdefs.h. */
21221_ACEOF
21222cat confdefs.h >>conftest.$ac_ext
21223cat >>conftest.$ac_ext <<_ACEOF
21224/* end confdefs.h. */
21225$ac_includes_default
21226int
21227main ()
21228{
21229static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
21230test_array [0] = 0
21231
21232 ;
21233 return 0;
21234}
21235_ACEOF
21236rm -f conftest.$ac_objext
21237if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21238 (eval $ac_compile) 2>conftest.er1
a848cd7e 21239 ac_status=$?
ac1cb8d3
VS
21240 grep -v '^ *+' conftest.er1 >conftest.err
21241 rm -f conftest.er1
21242 cat conftest.err >&5
a848cd7e
SC
21243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21244 (exit $ac_status); } &&
bb9e79c0 21245 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21247 (eval $ac_try) 2>&5
21248 ac_status=$?
21249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21250 (exit $ac_status); }; } &&
21251 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21253 (eval $ac_try) 2>&5
21254 ac_status=$?
21255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21256 (exit $ac_status); }; }; then
21257 ac_hi=$ac_mid; break
21258else
21259 echo "$as_me: failed program was:" >&5
21260sed 's/^/| /' conftest.$ac_ext >&5
21261
21262ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
21263 if test $ac_lo -le $ac_mid; then
21264 ac_lo= ac_hi=
21265 break
21266 fi
21267 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 21268fi
ac1cb8d3 21269rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21270 done
21271else
21272 echo "$as_me: failed program was:" >&5
21273sed 's/^/| /' conftest.$ac_ext >&5
21274
21275cat >conftest.$ac_ext <<_ACEOF
21276/* confdefs.h. */
21277_ACEOF
21278cat confdefs.h >>conftest.$ac_ext
21279cat >>conftest.$ac_ext <<_ACEOF
21280/* end confdefs.h. */
21281$ac_includes_default
21282int
21283main ()
21284{
21285static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
21286test_array [0] = 0
21287
21288 ;
21289 return 0;
21290}
21291_ACEOF
21292rm -f conftest.$ac_objext
21293if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21294 (eval $ac_compile) 2>conftest.er1
a848cd7e 21295 ac_status=$?
ac1cb8d3
VS
21296 grep -v '^ *+' conftest.er1 >conftest.err
21297 rm -f conftest.er1
21298 cat conftest.err >&5
a848cd7e
SC
21299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21300 (exit $ac_status); } &&
bb9e79c0 21301 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21303 (eval $ac_try) 2>&5
21304 ac_status=$?
21305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21306 (exit $ac_status); }; } &&
21307 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
21313 ac_hi=-1 ac_mid=-1
21314 while :; do
21315 cat >conftest.$ac_ext <<_ACEOF
21316/* confdefs.h. */
21317_ACEOF
21318cat confdefs.h >>conftest.$ac_ext
21319cat >>conftest.$ac_ext <<_ACEOF
21320/* end confdefs.h. */
21321$ac_includes_default
21322int
21323main ()
21324{
21325static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
21326test_array [0] = 0
21327
21328 ;
21329 return 0;
21330}
21331_ACEOF
21332rm -f conftest.$ac_objext
21333if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21334 (eval $ac_compile) 2>conftest.er1
a848cd7e 21335 ac_status=$?
ac1cb8d3
VS
21336 grep -v '^ *+' conftest.er1 >conftest.err
21337 rm -f conftest.er1
21338 cat conftest.err >&5
a848cd7e
SC
21339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21340 (exit $ac_status); } &&
bb9e79c0 21341 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21343 (eval $ac_try) 2>&5
21344 ac_status=$?
21345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21346 (exit $ac_status); }; } &&
21347 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21349 (eval $ac_try) 2>&5
21350 ac_status=$?
21351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21352 (exit $ac_status); }; }; then
21353 ac_lo=$ac_mid; break
21354else
21355 echo "$as_me: failed program was:" >&5
21356sed 's/^/| /' conftest.$ac_ext >&5
21357
21358ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
21359 if test $ac_mid -le $ac_hi; then
21360 ac_lo= ac_hi=
21361 break
21362 fi
21363 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 21364fi
ac1cb8d3 21365rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21366 done
21367else
21368 echo "$as_me: failed program was:" >&5
21369sed 's/^/| /' conftest.$ac_ext >&5
21370
21371ac_lo= ac_hi=
21372fi
ac1cb8d3 21373rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 21374fi
ac1cb8d3 21375rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21376# Binary search between lo and hi bounds.
21377while test "x$ac_lo" != "x$ac_hi"; do
21378 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21379 cat >conftest.$ac_ext <<_ACEOF
21380/* confdefs.h. */
21381_ACEOF
21382cat confdefs.h >>conftest.$ac_ext
21383cat >>conftest.$ac_ext <<_ACEOF
21384/* end confdefs.h. */
21385$ac_includes_default
21386int
21387main ()
21388{
21389static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
21390test_array [0] = 0
21391
21392 ;
21393 return 0;
21394}
21395_ACEOF
21396rm -f conftest.$ac_objext
21397if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21398 (eval $ac_compile) 2>conftest.er1
a848cd7e 21399 ac_status=$?
ac1cb8d3
VS
21400 grep -v '^ *+' conftest.er1 >conftest.err
21401 rm -f conftest.er1
21402 cat conftest.err >&5
a848cd7e
SC
21403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21404 (exit $ac_status); } &&
bb9e79c0 21405 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21407 (eval $ac_try) 2>&5
21408 ac_status=$?
21409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21410 (exit $ac_status); }; } &&
21411 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21413 (eval $ac_try) 2>&5
21414 ac_status=$?
21415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21416 (exit $ac_status); }; }; then
21417 ac_hi=$ac_mid
21418else
21419 echo "$as_me: failed program was:" >&5
21420sed 's/^/| /' conftest.$ac_ext >&5
21421
21422ac_lo=`expr '(' $ac_mid ')' + 1`
21423fi
ac1cb8d3 21424rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21425done
21426case $ac_lo in
21427?*) ac_cv_sizeof_long_long=$ac_lo;;
21428'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
21429See \`config.log' for more details." >&5
21430echo "$as_me: error: cannot compute sizeof (long long), 77
21431See \`config.log' for more details." >&2;}
21432 { (exit 1); exit 1; }; } ;;
21433esac
21434else
21435 if test "$cross_compiling" = yes; then
bb9e79c0
VZ
21436 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
21437echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
21438 { (exit 1); exit 1; }; }
21439else
21440 cat >conftest.$ac_ext <<_ACEOF
21441/* confdefs.h. */
21442_ACEOF
21443cat confdefs.h >>conftest.$ac_ext
21444cat >>conftest.$ac_ext <<_ACEOF
21445/* end confdefs.h. */
21446$ac_includes_default
21447long longval () { return (long) (sizeof (long long)); }
21448unsigned long ulongval () { return (long) (sizeof (long long)); }
21449#include <stdio.h>
21450#include <stdlib.h>
21451int
21452main ()
21453{
21454
21455 FILE *f = fopen ("conftest.val", "w");
21456 if (! f)
21457 exit (1);
21458 if (((long) (sizeof (long long))) < 0)
21459 {
21460 long i = longval ();
21461 if (i != ((long) (sizeof (long long))))
21462 exit (1);
21463 fprintf (f, "%ld\n", i);
21464 }
21465 else
21466 {
21467 unsigned long i = ulongval ();
21468 if (i != ((long) (sizeof (long long))))
21469 exit (1);
21470 fprintf (f, "%lu\n", i);
21471 }
21472 exit (ferror (f) || fclose (f) != 0);
21473
21474 ;
21475 return 0;
21476}
21477_ACEOF
21478rm -f conftest$ac_exeext
21479if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21480 (eval $ac_link) 2>&5
21481 ac_status=$?
21482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21483 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21485 (eval $ac_try) 2>&5
21486 ac_status=$?
21487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21488 (exit $ac_status); }; }; then
21489 ac_cv_sizeof_long_long=`cat conftest.val`
21490else
21491 echo "$as_me: program exited with status $ac_status" >&5
21492echo "$as_me: failed program was:" >&5
21493sed 's/^/| /' conftest.$ac_ext >&5
21494
21495( exit $ac_status )
21496{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
21497See \`config.log' for more details." >&5
21498echo "$as_me: error: cannot compute sizeof (long long), 77
21499See \`config.log' for more details." >&2;}
21500 { (exit 1); exit 1; }; }
21501fi
ac1cb8d3 21502rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21503fi
21504fi
21505rm -f conftest.val
21506else
21507 ac_cv_sizeof_long_long=0
21508fi
21509fi
21510echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
21511echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
21512cat >>confdefs.h <<_ACEOF
21513#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
21514_ACEOF
21515
21516
21517 if test "$ac_cv_sizeof_long_long" != "0"; then
c92ad099 21518 CPPFLAGS="-D_INCLUDE_LONGLONG $CPPFLAGS"
a848cd7e
SC
21519 fi
21520 ;;
21521 * )
21522 echo "$as_me:$LINENO: checking for long long" >&5
21523echo $ECHO_N "checking for long long... $ECHO_C" >&6
21524if test "${ac_cv_type_long_long+set}" = set; then
21525 echo $ECHO_N "(cached) $ECHO_C" >&6
21526else
21527 cat >conftest.$ac_ext <<_ACEOF
21528/* confdefs.h. */
21529_ACEOF
21530cat confdefs.h >>conftest.$ac_ext
21531cat >>conftest.$ac_ext <<_ACEOF
21532/* end confdefs.h. */
21533$ac_includes_default
21534int
21535main ()
21536{
21537if ((long long *) 0)
21538 return 0;
21539if (sizeof (long long))
21540 return 0;
21541 ;
21542 return 0;
21543}
21544_ACEOF
21545rm -f conftest.$ac_objext
21546if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21547 (eval $ac_compile) 2>conftest.er1
a848cd7e 21548 ac_status=$?
ac1cb8d3
VS
21549 grep -v '^ *+' conftest.er1 >conftest.err
21550 rm -f conftest.er1
21551 cat conftest.err >&5
a848cd7e
SC
21552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21553 (exit $ac_status); } &&
bb9e79c0 21554 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21556 (eval $ac_try) 2>&5
21557 ac_status=$?
21558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21559 (exit $ac_status); }; } &&
21560 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21562 (eval $ac_try) 2>&5
21563 ac_status=$?
21564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21565 (exit $ac_status); }; }; then
21566 ac_cv_type_long_long=yes
21567else
21568 echo "$as_me: failed program was:" >&5
21569sed 's/^/| /' conftest.$ac_ext >&5
21570
21571ac_cv_type_long_long=no
21572fi
ac1cb8d3 21573rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21574fi
21575echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
21576echo "${ECHO_T}$ac_cv_type_long_long" >&6
21577
21578echo "$as_me:$LINENO: checking size of long long" >&5
21579echo $ECHO_N "checking size of long long... $ECHO_C" >&6
21580if test "${ac_cv_sizeof_long_long+set}" = set; then
21581 echo $ECHO_N "(cached) $ECHO_C" >&6
21582else
21583 if test "$ac_cv_type_long_long" = yes; then
21584 # The cast to unsigned long works around a bug in the HP C Compiler
21585 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21586 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21587 # This bug is HP SR number 8606223364.
21588 if test "$cross_compiling" = yes; then
21589 # Depending upon the size, compute the lo and hi bounds.
21590cat >conftest.$ac_ext <<_ACEOF
21591/* confdefs.h. */
21592_ACEOF
21593cat confdefs.h >>conftest.$ac_ext
21594cat >>conftest.$ac_ext <<_ACEOF
21595/* end confdefs.h. */
21596$ac_includes_default
21597int
21598main ()
21599{
21600static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
21601test_array [0] = 0
21602
21603 ;
21604 return 0;
21605}
21606_ACEOF
21607rm -f conftest.$ac_objext
21608if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21609 (eval $ac_compile) 2>conftest.er1
a848cd7e 21610 ac_status=$?
ac1cb8d3
VS
21611 grep -v '^ *+' conftest.er1 >conftest.err
21612 rm -f conftest.er1
21613 cat conftest.err >&5
a848cd7e
SC
21614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21615 (exit $ac_status); } &&
bb9e79c0 21616 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21618 (eval $ac_try) 2>&5
21619 ac_status=$?
21620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21621 (exit $ac_status); }; } &&
21622 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21624 (eval $ac_try) 2>&5
21625 ac_status=$?
21626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21627 (exit $ac_status); }; }; then
21628 ac_lo=0 ac_mid=0
21629 while :; do
21630 cat >conftest.$ac_ext <<_ACEOF
21631/* confdefs.h. */
21632_ACEOF
21633cat confdefs.h >>conftest.$ac_ext
21634cat >>conftest.$ac_ext <<_ACEOF
21635/* end confdefs.h. */
21636$ac_includes_default
21637int
21638main ()
21639{
21640static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
21641test_array [0] = 0
21642
21643 ;
21644 return 0;
21645}
21646_ACEOF
21647rm -f conftest.$ac_objext
21648if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21649 (eval $ac_compile) 2>conftest.er1
a848cd7e 21650 ac_status=$?
ac1cb8d3
VS
21651 grep -v '^ *+' conftest.er1 >conftest.err
21652 rm -f conftest.er1
21653 cat conftest.err >&5
a848cd7e
SC
21654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21655 (exit $ac_status); } &&
bb9e79c0 21656 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21658 (eval $ac_try) 2>&5
21659 ac_status=$?
21660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21661 (exit $ac_status); }; } &&
21662 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21664 (eval $ac_try) 2>&5
21665 ac_status=$?
21666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21667 (exit $ac_status); }; }; then
21668 ac_hi=$ac_mid; break
21669else
21670 echo "$as_me: failed program was:" >&5
21671sed 's/^/| /' conftest.$ac_ext >&5
21672
21673ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
21674 if test $ac_lo -le $ac_mid; then
21675 ac_lo= ac_hi=
21676 break
21677 fi
21678 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 21679fi
ac1cb8d3 21680rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21681 done
21682else
21683 echo "$as_me: failed program was:" >&5
21684sed 's/^/| /' conftest.$ac_ext >&5
21685
21686cat >conftest.$ac_ext <<_ACEOF
21687/* confdefs.h. */
21688_ACEOF
21689cat confdefs.h >>conftest.$ac_ext
21690cat >>conftest.$ac_ext <<_ACEOF
21691/* end confdefs.h. */
21692$ac_includes_default
21693int
21694main ()
21695{
21696static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
21697test_array [0] = 0
21698
21699 ;
21700 return 0;
21701}
21702_ACEOF
21703rm -f conftest.$ac_objext
21704if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21705 (eval $ac_compile) 2>conftest.er1
a848cd7e 21706 ac_status=$?
ac1cb8d3
VS
21707 grep -v '^ *+' conftest.er1 >conftest.err
21708 rm -f conftest.er1
21709 cat conftest.err >&5
a848cd7e
SC
21710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21711 (exit $ac_status); } &&
bb9e79c0 21712 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21714 (eval $ac_try) 2>&5
21715 ac_status=$?
21716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21717 (exit $ac_status); }; } &&
21718 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21720 (eval $ac_try) 2>&5
21721 ac_status=$?
21722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21723 (exit $ac_status); }; }; then
21724 ac_hi=-1 ac_mid=-1
21725 while :; do
21726 cat >conftest.$ac_ext <<_ACEOF
21727/* confdefs.h. */
21728_ACEOF
21729cat confdefs.h >>conftest.$ac_ext
21730cat >>conftest.$ac_ext <<_ACEOF
21731/* end confdefs.h. */
21732$ac_includes_default
21733int
21734main ()
21735{
21736static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
21737test_array [0] = 0
21738
21739 ;
21740 return 0;
21741}
21742_ACEOF
21743rm -f conftest.$ac_objext
21744if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21745 (eval $ac_compile) 2>conftest.er1
a848cd7e 21746 ac_status=$?
ac1cb8d3
VS
21747 grep -v '^ *+' conftest.er1 >conftest.err
21748 rm -f conftest.er1
21749 cat conftest.err >&5
a848cd7e
SC
21750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21751 (exit $ac_status); } &&
bb9e79c0 21752 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21754 (eval $ac_try) 2>&5
21755 ac_status=$?
21756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21757 (exit $ac_status); }; } &&
21758 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21760 (eval $ac_try) 2>&5
21761 ac_status=$?
21762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21763 (exit $ac_status); }; }; then
21764 ac_lo=$ac_mid; break
21765else
21766 echo "$as_me: failed program was:" >&5
21767sed 's/^/| /' conftest.$ac_ext >&5
21768
21769ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
21770 if test $ac_mid -le $ac_hi; then
21771 ac_lo= ac_hi=
21772 break
21773 fi
21774 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 21775fi
ac1cb8d3 21776rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21777 done
21778else
21779 echo "$as_me: failed program was:" >&5
21780sed 's/^/| /' conftest.$ac_ext >&5
21781
21782ac_lo= ac_hi=
21783fi
ac1cb8d3 21784rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 21785fi
ac1cb8d3 21786rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21787# Binary search between lo and hi bounds.
21788while test "x$ac_lo" != "x$ac_hi"; do
21789 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21790 cat >conftest.$ac_ext <<_ACEOF
21791/* confdefs.h. */
21792_ACEOF
21793cat confdefs.h >>conftest.$ac_ext
21794cat >>conftest.$ac_ext <<_ACEOF
21795/* end confdefs.h. */
21796$ac_includes_default
21797int
21798main ()
21799{
21800static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
21801test_array [0] = 0
21802
21803 ;
21804 return 0;
21805}
21806_ACEOF
21807rm -f conftest.$ac_objext
21808if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21809 (eval $ac_compile) 2>conftest.er1
a848cd7e 21810 ac_status=$?
ac1cb8d3
VS
21811 grep -v '^ *+' conftest.er1 >conftest.err
21812 rm -f conftest.er1
21813 cat conftest.err >&5
a848cd7e
SC
21814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21815 (exit $ac_status); } &&
bb9e79c0 21816 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21818 (eval $ac_try) 2>&5
21819 ac_status=$?
21820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21821 (exit $ac_status); }; } &&
21822 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21824 (eval $ac_try) 2>&5
21825 ac_status=$?
21826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21827 (exit $ac_status); }; }; then
21828 ac_hi=$ac_mid
21829else
21830 echo "$as_me: failed program was:" >&5
21831sed 's/^/| /' conftest.$ac_ext >&5
21832
21833ac_lo=`expr '(' $ac_mid ')' + 1`
21834fi
ac1cb8d3 21835rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21836done
21837case $ac_lo in
21838?*) ac_cv_sizeof_long_long=$ac_lo;;
21839'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
21840See \`config.log' for more details." >&5
21841echo "$as_me: error: cannot compute sizeof (long long), 77
21842See \`config.log' for more details." >&2;}
21843 { (exit 1); exit 1; }; } ;;
21844esac
21845else
21846 if test "$cross_compiling" = yes; then
bb9e79c0
VZ
21847 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
21848echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
21849 { (exit 1); exit 1; }; }
21850else
21851 cat >conftest.$ac_ext <<_ACEOF
21852/* confdefs.h. */
21853_ACEOF
21854cat confdefs.h >>conftest.$ac_ext
21855cat >>conftest.$ac_ext <<_ACEOF
21856/* end confdefs.h. */
21857$ac_includes_default
21858long longval () { return (long) (sizeof (long long)); }
21859unsigned long ulongval () { return (long) (sizeof (long long)); }
21860#include <stdio.h>
21861#include <stdlib.h>
21862int
21863main ()
21864{
21865
21866 FILE *f = fopen ("conftest.val", "w");
21867 if (! f)
21868 exit (1);
21869 if (((long) (sizeof (long long))) < 0)
21870 {
21871 long i = longval ();
21872 if (i != ((long) (sizeof (long long))))
21873 exit (1);
21874 fprintf (f, "%ld\n", i);
21875 }
21876 else
21877 {
21878 unsigned long i = ulongval ();
21879 if (i != ((long) (sizeof (long long))))
21880 exit (1);
21881 fprintf (f, "%lu\n", i);
21882 }
21883 exit (ferror (f) || fclose (f) != 0);
21884
21885 ;
21886 return 0;
21887}
21888_ACEOF
21889rm -f conftest$ac_exeext
21890if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21891 (eval $ac_link) 2>&5
21892 ac_status=$?
21893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21894 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21896 (eval $ac_try) 2>&5
21897 ac_status=$?
21898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21899 (exit $ac_status); }; }; then
21900 ac_cv_sizeof_long_long=`cat conftest.val`
21901else
21902 echo "$as_me: program exited with status $ac_status" >&5
21903echo "$as_me: failed program was:" >&5
21904sed 's/^/| /' conftest.$ac_ext >&5
21905
21906( exit $ac_status )
21907{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
21908See \`config.log' for more details." >&5
21909echo "$as_me: error: cannot compute sizeof (long long), 77
21910See \`config.log' for more details." >&2;}
21911 { (exit 1); exit 1; }; }
21912fi
ac1cb8d3 21913rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21914fi
21915fi
21916rm -f conftest.val
21917else
21918 ac_cv_sizeof_long_long=0
21919fi
21920fi
21921echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
21922echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
21923cat >>confdefs.h <<_ACEOF
21924#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
21925_ACEOF
21926
21927
21928esac
21929
238ecede
MW
21930echo "$as_me:$LINENO: checking for wchar_t" >&5
21931echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
21932if test "${ac_cv_type_wchar_t+set}" = set; then
21933 echo $ECHO_N "(cached) $ECHO_C" >&6
21934else
21935 cat >conftest.$ac_ext <<_ACEOF
21936/* confdefs.h. */
21937_ACEOF
21938cat confdefs.h >>conftest.$ac_ext
21939cat >>conftest.$ac_ext <<_ACEOF
21940/* end confdefs.h. */
21941
83d8eb47
MW
21942 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21943 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21944 # error "fake wchar_t"
21945 #endif
21946 #ifdef HAVE_WCHAR_H
21947 # ifdef __CYGWIN__
21948 # include <stddef.h>
21949 # endif
21950 # include <wchar.h>
21951 #endif
21952 #ifdef HAVE_STDLIB_H
21953 # include <stdlib.h>
21954 #endif
21955 #include <stdio.h>
21956
21957
21958
21959int
21960main ()
21961{
21962if ((wchar_t *) 0)
21963 return 0;
21964if (sizeof (wchar_t))
21965 return 0;
21966 ;
21967 return 0;
21968}
21969_ACEOF
21970rm -f conftest.$ac_objext
21971if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21972 (eval $ac_compile) 2>conftest.er1
21973 ac_status=$?
21974 grep -v '^ *+' conftest.er1 >conftest.err
21975 rm -f conftest.er1
21976 cat conftest.err >&5
21977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21978 (exit $ac_status); } &&
bb9e79c0 21979 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
238ecede
MW
21980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21981 (eval $ac_try) 2>&5
21982 ac_status=$?
21983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21984 (exit $ac_status); }; } &&
21985 { ac_try='test -s conftest.$ac_objext'
21986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21987 (eval $ac_try) 2>&5
21988 ac_status=$?
21989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21990 (exit $ac_status); }; }; then
21991 ac_cv_type_wchar_t=yes
21992else
21993 echo "$as_me: failed program was:" >&5
21994sed 's/^/| /' conftest.$ac_ext >&5
21995
21996ac_cv_type_wchar_t=no
21997fi
21998rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21999fi
22000echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
22001echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
22002
a848cd7e
SC
22003echo "$as_me:$LINENO: checking size of wchar_t" >&5
22004echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
238ecede 22005if test "${ac_cv_sizeof_wchar_t+set}" = set; then
a848cd7e
SC
22006 echo $ECHO_N "(cached) $ECHO_C" >&6
22007else
238ecede
MW
22008 if test "$ac_cv_type_wchar_t" = yes; then
22009 # The cast to unsigned long works around a bug in the HP C Compiler
22010 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22011 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22012 # This bug is HP SR number 8606223364.
22013 if test "$cross_compiling" = yes; then
22014 # Depending upon the size, compute the lo and hi bounds.
22015cat >conftest.$ac_ext <<_ACEOF
22016/* confdefs.h. */
22017_ACEOF
22018cat confdefs.h >>conftest.$ac_ext
22019cat >>conftest.$ac_ext <<_ACEOF
22020/* end confdefs.h. */
22021
83d8eb47
MW
22022 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
22023 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
22024 # error "fake wchar_t"
22025 #endif
22026 #ifdef HAVE_WCHAR_H
22027 # ifdef __CYGWIN__
22028 # include <stddef.h>
22029 # endif
22030 # include <wchar.h>
22031 #endif
22032 #ifdef HAVE_STDLIB_H
22033 # include <stdlib.h>
22034 #endif
22035 #include <stdio.h>
22036
22037
22038
22039int
22040main ()
22041{
22042static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
22043test_array [0] = 0
22044
22045 ;
22046 return 0;
22047}
22048_ACEOF
22049rm -f conftest.$ac_objext
22050if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22051 (eval $ac_compile) 2>conftest.er1
22052 ac_status=$?
22053 grep -v '^ *+' conftest.er1 >conftest.err
22054 rm -f conftest.er1
22055 cat conftest.err >&5
22056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22057 (exit $ac_status); } &&
bb9e79c0 22058 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
238ecede
MW
22059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22060 (eval $ac_try) 2>&5
22061 ac_status=$?
22062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22063 (exit $ac_status); }; } &&
22064 { ac_try='test -s conftest.$ac_objext'
22065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22066 (eval $ac_try) 2>&5
22067 ac_status=$?
22068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22069 (exit $ac_status); }; }; then
22070 ac_lo=0 ac_mid=0
22071 while :; do
22072 cat >conftest.$ac_ext <<_ACEOF
22073/* confdefs.h. */
22074_ACEOF
22075cat confdefs.h >>conftest.$ac_ext
22076cat >>conftest.$ac_ext <<_ACEOF
22077/* end confdefs.h. */
22078
83d8eb47
MW
22079 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
22080 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
22081 # error "fake wchar_t"
22082 #endif
22083 #ifdef HAVE_WCHAR_H
22084 # ifdef __CYGWIN__
22085 # include <stddef.h>
22086 # endif
22087 # include <wchar.h>
22088 #endif
22089 #ifdef HAVE_STDLIB_H
22090 # include <stdlib.h>
22091 #endif
22092 #include <stdio.h>
22093
22094
22095
22096int
22097main ()
22098{
22099static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
22100test_array [0] = 0
22101
22102 ;
22103 return 0;
22104}
22105_ACEOF
22106rm -f conftest.$ac_objext
22107if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22108 (eval $ac_compile) 2>conftest.er1
22109 ac_status=$?
22110 grep -v '^ *+' conftest.er1 >conftest.err
22111 rm -f conftest.er1
22112 cat conftest.err >&5
22113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22114 (exit $ac_status); } &&
bb9e79c0 22115 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
238ecede
MW
22116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22117 (eval $ac_try) 2>&5
22118 ac_status=$?
22119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22120 (exit $ac_status); }; } &&
22121 { ac_try='test -s conftest.$ac_objext'
22122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22123 (eval $ac_try) 2>&5
22124 ac_status=$?
22125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22126 (exit $ac_status); }; }; then
22127 ac_hi=$ac_mid; break
22128else
22129 echo "$as_me: failed program was:" >&5
22130sed 's/^/| /' conftest.$ac_ext >&5
22131
22132ac_lo=`expr $ac_mid + 1`
22133 if test $ac_lo -le $ac_mid; then
22134 ac_lo= ac_hi=
22135 break
22136 fi
22137 ac_mid=`expr 2 '*' $ac_mid + 1`
22138fi
22139rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22140 done
22141else
22142 echo "$as_me: failed program was:" >&5
22143sed 's/^/| /' conftest.$ac_ext >&5
22144
22145cat >conftest.$ac_ext <<_ACEOF
22146/* confdefs.h. */
22147_ACEOF
22148cat confdefs.h >>conftest.$ac_ext
22149cat >>conftest.$ac_ext <<_ACEOF
22150/* end confdefs.h. */
22151
83d8eb47
MW
22152 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
22153 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
22154 # error "fake wchar_t"
22155 #endif
22156 #ifdef HAVE_WCHAR_H
22157 # ifdef __CYGWIN__
22158 # include <stddef.h>
22159 # endif
22160 # include <wchar.h>
22161 #endif
22162 #ifdef HAVE_STDLIB_H
22163 # include <stdlib.h>
22164 #endif
22165 #include <stdio.h>
22166
22167
22168
22169int
22170main ()
22171{
22172static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
22173test_array [0] = 0
22174
22175 ;
22176 return 0;
22177}
22178_ACEOF
22179rm -f conftest.$ac_objext
22180if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22181 (eval $ac_compile) 2>conftest.er1
22182 ac_status=$?
22183 grep -v '^ *+' conftest.er1 >conftest.err
22184 rm -f conftest.er1
22185 cat conftest.err >&5
22186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22187 (exit $ac_status); } &&
bb9e79c0 22188 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
238ecede
MW
22189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22190 (eval $ac_try) 2>&5
22191 ac_status=$?
22192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22193 (exit $ac_status); }; } &&
22194 { ac_try='test -s conftest.$ac_objext'
22195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22196 (eval $ac_try) 2>&5
22197 ac_status=$?
22198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22199 (exit $ac_status); }; }; then
22200 ac_hi=-1 ac_mid=-1
22201 while :; do
22202 cat >conftest.$ac_ext <<_ACEOF
22203/* confdefs.h. */
22204_ACEOF
22205cat confdefs.h >>conftest.$ac_ext
22206cat >>conftest.$ac_ext <<_ACEOF
22207/* end confdefs.h. */
22208
83d8eb47
MW
22209 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
22210 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
22211 # error "fake wchar_t"
22212 #endif
22213 #ifdef HAVE_WCHAR_H
22214 # ifdef __CYGWIN__
22215 # include <stddef.h>
22216 # endif
22217 # include <wchar.h>
22218 #endif
22219 #ifdef HAVE_STDLIB_H
22220 # include <stdlib.h>
22221 #endif
22222 #include <stdio.h>
22223
22224
22225
22226int
22227main ()
22228{
22229static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
22230test_array [0] = 0
22231
22232 ;
22233 return 0;
22234}
22235_ACEOF
22236rm -f conftest.$ac_objext
22237if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22238 (eval $ac_compile) 2>conftest.er1
22239 ac_status=$?
22240 grep -v '^ *+' conftest.er1 >conftest.err
22241 rm -f conftest.er1
22242 cat conftest.err >&5
22243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22244 (exit $ac_status); } &&
bb9e79c0 22245 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
238ecede
MW
22246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22247 (eval $ac_try) 2>&5
22248 ac_status=$?
22249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22250 (exit $ac_status); }; } &&
22251 { ac_try='test -s conftest.$ac_objext'
22252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22253 (eval $ac_try) 2>&5
22254 ac_status=$?
22255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22256 (exit $ac_status); }; }; then
22257 ac_lo=$ac_mid; break
22258else
22259 echo "$as_me: failed program was:" >&5
22260sed 's/^/| /' conftest.$ac_ext >&5
22261
22262ac_hi=`expr '(' $ac_mid ')' - 1`
22263 if test $ac_mid -le $ac_hi; then
22264 ac_lo= ac_hi=
22265 break
22266 fi
22267 ac_mid=`expr 2 '*' $ac_mid`
22268fi
22269rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22270 done
22271else
22272 echo "$as_me: failed program was:" >&5
22273sed 's/^/| /' conftest.$ac_ext >&5
22274
22275ac_lo= ac_hi=
22276fi
22277rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22278fi
22279rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22280# Binary search between lo and hi bounds.
22281while test "x$ac_lo" != "x$ac_hi"; do
22282 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22283 cat >conftest.$ac_ext <<_ACEOF
22284/* confdefs.h. */
22285_ACEOF
22286cat confdefs.h >>conftest.$ac_ext
22287cat >>conftest.$ac_ext <<_ACEOF
22288/* end confdefs.h. */
22289
83d8eb47
MW
22290 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
22291 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
22292 # error "fake wchar_t"
22293 #endif
22294 #ifdef HAVE_WCHAR_H
22295 # ifdef __CYGWIN__
22296 # include <stddef.h>
22297 # endif
22298 # include <wchar.h>
22299 #endif
22300 #ifdef HAVE_STDLIB_H
22301 # include <stdlib.h>
22302 #endif
22303 #include <stdio.h>
a848cd7e 22304
a848cd7e 22305
a848cd7e 22306
238ecede
MW
22307int
22308main ()
22309{
22310static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
22311test_array [0] = 0
a848cd7e 22312
238ecede
MW
22313 ;
22314 return 0;
22315}
22316_ACEOF
22317rm -f conftest.$ac_objext
22318if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22319 (eval $ac_compile) 2>conftest.er1
22320 ac_status=$?
22321 grep -v '^ *+' conftest.er1 >conftest.err
22322 rm -f conftest.er1
22323 cat conftest.err >&5
22324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22325 (exit $ac_status); } &&
bb9e79c0 22326 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
238ecede
MW
22327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22328 (eval $ac_try) 2>&5
22329 ac_status=$?
22330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22331 (exit $ac_status); }; } &&
22332 { ac_try='test -s conftest.$ac_objext'
22333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22334 (eval $ac_try) 2>&5
22335 ac_status=$?
22336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22337 (exit $ac_status); }; }; then
22338 ac_hi=$ac_mid
22339else
22340 echo "$as_me: failed program was:" >&5
22341sed 's/^/| /' conftest.$ac_ext >&5
22342
22343ac_lo=`expr '(' $ac_mid ')' + 1`
22344fi
22345rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22346done
22347case $ac_lo in
22348?*) ac_cv_sizeof_wchar_t=$ac_lo;;
22349'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
22350See \`config.log' for more details." >&5
22351echo "$as_me: error: cannot compute sizeof (wchar_t), 77
22352See \`config.log' for more details." >&2;}
22353 { (exit 1); exit 1; }; } ;;
22354esac
22355else
22356 if test "$cross_compiling" = yes; then
bb9e79c0
VZ
22357 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
22358echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
238ecede 22359 { (exit 1); exit 1; }; }
a848cd7e
SC
22360else
22361 cat >conftest.$ac_ext <<_ACEOF
22362/* confdefs.h. */
22363_ACEOF
22364cat confdefs.h >>conftest.$ac_ext
22365cat >>conftest.$ac_ext <<_ACEOF
22366/* end confdefs.h. */
22367
83d8eb47
MW
22368 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
22369 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
22370 # error "fake wchar_t"
22371 #endif
22372 #ifdef HAVE_WCHAR_H
22373 # ifdef __CYGWIN__
22374 # include <stddef.h>
22375 # endif
22376 # include <wchar.h>
22377 #endif
22378 #ifdef HAVE_STDLIB_H
22379 # include <stdlib.h>
22380 #endif
22381 #include <stdio.h>
22382
22383
22384
22385long longval () { return (long) (sizeof (wchar_t)); }
22386unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
22387#include <stdio.h>
22388#include <stdlib.h>
22389int
22390main ()
22391{
a848cd7e 22392
238ecede
MW
22393 FILE *f = fopen ("conftest.val", "w");
22394 if (! f)
22395 exit (1);
22396 if (((long) (sizeof (wchar_t))) < 0)
22397 {
22398 long i = longval ();
22399 if (i != ((long) (sizeof (wchar_t))))
22400 exit (1);
22401 fprintf (f, "%ld\n", i);
22402 }
22403 else
22404 {
22405 unsigned long i = ulongval ();
22406 if (i != ((long) (sizeof (wchar_t))))
22407 exit (1);
22408 fprintf (f, "%lu\n", i);
22409 }
22410 exit (ferror (f) || fclose (f) != 0);
22411
22412 ;
22413 return 0;
22414}
a848cd7e
SC
22415_ACEOF
22416rm -f conftest$ac_exeext
22417if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22418 (eval $ac_link) 2>&5
22419 ac_status=$?
22420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22421 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22423 (eval $ac_try) 2>&5
22424 ac_status=$?
22425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22426 (exit $ac_status); }; }; then
238ecede 22427 ac_cv_sizeof_wchar_t=`cat conftest.val`
a848cd7e
SC
22428else
22429 echo "$as_me: program exited with status $ac_status" >&5
22430echo "$as_me: failed program was:" >&5
22431sed 's/^/| /' conftest.$ac_ext >&5
22432
22433( exit $ac_status )
238ecede
MW
22434{ { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
22435See \`config.log' for more details." >&5
22436echo "$as_me: error: cannot compute sizeof (wchar_t), 77
22437See \`config.log' for more details." >&2;}
22438 { (exit 1); exit 1; }; }
a848cd7e 22439fi
ac1cb8d3 22440rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 22441fi
a848cd7e 22442fi
238ecede
MW
22443rm -f conftest.val
22444else
22445 ac_cv_sizeof_wchar_t=0
22446fi
22447fi
22448echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
22449echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
a848cd7e 22450cat >>confdefs.h <<_ACEOF
238ecede 22451#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
a848cd7e
SC
22452_ACEOF
22453
22454
47a7e797
MW
22455if test "$ac_cv_sizeof_wchar_t" != "0"; then
22456 wxUSE_WCHAR_T=yes
22457else
22458 wxUSE_WCHAR_T=no
22459fi
238ecede 22460
ba3d13e1
VZ
22461echo "$as_me:$LINENO: checking for va_copy" >&5
22462echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
22463if test "${wx_cv_func_va_copy+set}" = set; then
22464 echo $ECHO_N "(cached) $ECHO_C" >&6
22465else
22466
22467 cat >conftest.$ac_ext <<_ACEOF
22468
22469 #include <stdarg.h>
22470 void foo(char *f, ...)
22471 {
22472 va_list ap1, ap2;
22473 va_start(ap1, f);
22474 va_copy(ap2, ap1);
22475 va_end(ap2);
22476 va_end(ap1);
22477 }
5886b072
VZ
22478 int main()
22479 {
b902e639
VZ
22480 foo("hi", 17);
22481 return 0;
5886b072 22482 }
ba3d13e1
VZ
22483_ACEOF
22484rm -f conftest.$ac_objext conftest$ac_exeext
22485if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22486 (eval $ac_link) 2>conftest.er1
22487 ac_status=$?
22488 grep -v '^ *+' conftest.er1 >conftest.err
22489 rm -f conftest.er1
22490 cat conftest.err >&5
22491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22492 (exit $ac_status); } &&
bb9e79c0 22493 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ba3d13e1
VZ
22494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22495 (eval $ac_try) 2>&5
22496 ac_status=$?
22497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22498 (exit $ac_status); }; } &&
22499 { ac_try='test -s conftest$ac_exeext'
22500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22501 (eval $ac_try) 2>&5
22502 ac_status=$?
22503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22504 (exit $ac_status); }; }; then
22505 wx_cv_func_va_copy=yes
22506else
22507 echo "$as_me: failed program was:" >&5
22508sed 's/^/| /' conftest.$ac_ext >&5
22509
22510wx_cv_func_va_copy=no
22511
22512fi
22513rm -f conftest.err conftest.$ac_objext \
22514 conftest$ac_exeext conftest.$ac_ext
22515
22516
22517fi
22518echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
22519echo "${ECHO_T}$wx_cv_func_va_copy" >&6
22520
22521if test $wx_cv_func_va_copy = "yes"; then
22522 cat >>confdefs.h <<\_ACEOF
22523#define HAVE_VA_COPY 1
22524_ACEOF
22525
22526else
22527 echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
22528echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6
22529if test "${wx_cv_type_va_list_lvalue+set}" = set; then
22530 echo $ECHO_N "(cached) $ECHO_C" >&6
22531else
22532
22533 if test "$cross_compiling" = yes; then
22534 wx_cv_type_va_list_lvalue=yes
22535
22536else
22537 cat >conftest.$ac_ext <<_ACEOF
22538
22539 #include <stdarg.h>
22540 int foo(char *f, ...)
22541 {
22542 va_list ap1, ap2;
22543 va_start(ap1, f);
22544 ap2 = ap1;
22545 if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
22546 return 1;
22547 va_end(ap2);
22548 va_end(ap1);
22549 return 0;
22550 }
22551 int main()
22552 {
22553 return foo("hi", 17);
22554 }
22555_ACEOF
22556rm -f conftest$ac_exeext
22557if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22558 (eval $ac_link) 2>&5
22559 ac_status=$?
22560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22561 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22563 (eval $ac_try) 2>&5
22564 ac_status=$?
22565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22566 (exit $ac_status); }; }; then
22567 wx_cv_type_va_list_lvalue=yes
22568else
22569 echo "$as_me: program exited with status $ac_status" >&5
22570echo "$as_me: failed program was:" >&5
22571sed 's/^/| /' conftest.$ac_ext >&5
22572
22573( exit $ac_status )
22574wx_cv_type_va_list_lvalue=no
22575fi
22576rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22577fi
22578
22579
22580fi
22581echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
22582echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6
22583
22584 if test $wx_cv_type_va_list_lvalue != "yes"; then
22585 cat >>confdefs.h <<\_ACEOF
22586#define VA_LIST_IS_ARRAY 1
22587_ACEOF
22588
22589 fi
22590fi
22591
ca766534
VS
22592echo "$as_me:$LINENO: checking whether the compiler supports variadic macros" >&5
22593echo $ECHO_N "checking whether the compiler supports variadic macros... $ECHO_C" >&6
22594if test "${wx_cv_have_variadic_macros+set}" = set; then
22595 echo $ECHO_N "(cached) $ECHO_C" >&6
22596else
22597
22598 cat >conftest.$ac_ext <<_ACEOF
22599/* confdefs.h. */
22600_ACEOF
22601cat confdefs.h >>conftest.$ac_ext
22602cat >>conftest.$ac_ext <<_ACEOF
22603/* end confdefs.h. */
22604
22605 #include <stdio.h>
22606 #define test(fmt, ...) printf(fmt, __VA_ARGS__)
22607
22608int
22609main ()
22610{
22611
22612 test("%s %d %p", "test", 1, 0);
22613
22614
22615 ;
22616 return 0;
22617}
22618_ACEOF
22619rm -f conftest.$ac_objext
22620if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22621 (eval $ac_compile) 2>conftest.er1
22622 ac_status=$?
22623 grep -v '^ *+' conftest.er1 >conftest.err
22624 rm -f conftest.er1
22625 cat conftest.err >&5
22626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22627 (exit $ac_status); } &&
bb9e79c0 22628 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ca766534
VS
22629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22630 (eval $ac_try) 2>&5
22631 ac_status=$?
22632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22633 (exit $ac_status); }; } &&
22634 { ac_try='test -s conftest.$ac_objext'
22635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22636 (eval $ac_try) 2>&5
22637 ac_status=$?
22638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22639 (exit $ac_status); }; }; then
22640 wx_cv_have_variadic_macros=yes
22641else
22642 echo "$as_me: failed program was:" >&5
22643sed 's/^/| /' conftest.$ac_ext >&5
22644
22645wx_cv_have_variadic_macros=no
22646
22647fi
22648rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22649
22650
22651fi
22652echo "$as_me:$LINENO: result: $wx_cv_have_variadic_macros" >&5
22653echo "${ECHO_T}$wx_cv_have_variadic_macros" >&6
22654
22655if test $wx_cv_have_variadic_macros = "yes"; then
22656 cat >>confdefs.h <<\_ACEOF
22657#define HAVE_VARIADIC_MACROS 1
22658_ACEOF
22659
22660fi
22661
a848cd7e
SC
22662# Check whether --enable-largefile or --disable-largefile was given.
22663if test "${enable_largefile+set}" = set; then
22664 enableval="$enable_largefile"
22665
22666fi;
22667if test "$enable_largefile" != no; then
22668 wx_largefile=no
22669
22670 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
22671echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
22672if test "${ac_cv_sys_file_offset_bits+set}" = set; then
22673 echo $ECHO_N "(cached) $ECHO_C" >&6
22674else
22675
22676 cat >conftest.$ac_ext <<_ACEOF
22677/* confdefs.h. */
22678_ACEOF
22679cat confdefs.h >>conftest.$ac_ext
22680cat >>conftest.$ac_ext <<_ACEOF
22681/* end confdefs.h. */
22682#define _FILE_OFFSET_BITS 64
22683 #include <sys/types.h>
22684int
22685main ()
22686{
22687typedef struct {
22688 unsigned int field: sizeof(off_t) == 8;
22689} wxlf;
22690
22691 ;
22692 return 0;
22693}
22694_ACEOF
22695rm -f conftest.$ac_objext
22696if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22697 (eval $ac_compile) 2>conftest.er1
a848cd7e 22698 ac_status=$?
ac1cb8d3
VS
22699 grep -v '^ *+' conftest.er1 >conftest.err
22700 rm -f conftest.er1
22701 cat conftest.err >&5
a848cd7e
SC
22702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22703 (exit $ac_status); } &&
bb9e79c0 22704 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
22710 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22712 (eval $ac_try) 2>&5
22713 ac_status=$?
22714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22715 (exit $ac_status); }; }; then
22716 ac_cv_sys_file_offset_bits=64
22717else
22718 echo "$as_me: failed program was:" >&5
22719sed 's/^/| /' conftest.$ac_ext >&5
22720
22721ac_cv_sys_file_offset_bits=no
22722fi
ac1cb8d3 22723rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22724
22725
22726fi
22727echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
22728echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
22729
22730 if test "$ac_cv_sys_file_offset_bits" != no; then
22731 wx_largefile=yes
22732 cat >>confdefs.h <<_ACEOF
22733#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
22734_ACEOF
22735
22736 fi
22737
22738 if test "x$wx_largefile" != "xyes"; then
22739
22740 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
22741echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
22742if test "${ac_cv_sys_large_files+set}" = set; then
22743 echo $ECHO_N "(cached) $ECHO_C" >&6
22744else
22745
22746 cat >conftest.$ac_ext <<_ACEOF
22747/* confdefs.h. */
22748_ACEOF
22749cat confdefs.h >>conftest.$ac_ext
22750cat >>conftest.$ac_ext <<_ACEOF
22751/* end confdefs.h. */
22752#define _LARGE_FILES 1
22753 #include <sys/types.h>
22754int
22755main ()
22756{
22757typedef struct {
22758 unsigned int field: sizeof(off_t) == 8;
22759} wxlf;
22760
22761 ;
22762 return 0;
22763}
22764_ACEOF
22765rm -f conftest.$ac_objext
22766if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22767 (eval $ac_compile) 2>conftest.er1
a848cd7e 22768 ac_status=$?
ac1cb8d3
VS
22769 grep -v '^ *+' conftest.er1 >conftest.err
22770 rm -f conftest.er1
22771 cat conftest.err >&5
a848cd7e
SC
22772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22773 (exit $ac_status); } &&
bb9e79c0 22774 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22776 (eval $ac_try) 2>&5
22777 ac_status=$?
22778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22779 (exit $ac_status); }; } &&
22780 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22782 (eval $ac_try) 2>&5
22783 ac_status=$?
22784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22785 (exit $ac_status); }; }; then
22786 ac_cv_sys_large_files=1
22787else
22788 echo "$as_me: failed program was:" >&5
22789sed 's/^/| /' conftest.$ac_ext >&5
22790
22791ac_cv_sys_large_files=no
22792fi
ac1cb8d3 22793rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22794
22795
22796fi
22797echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
22798echo "${ECHO_T}$ac_cv_sys_large_files" >&6
22799
22800 if test "$ac_cv_sys_large_files" != no; then
22801 wx_largefile=yes
22802 cat >>confdefs.h <<_ACEOF
22803#define _LARGE_FILES $ac_cv_sys_large_files
22804_ACEOF
22805
22806 fi
22807
22808 fi
22809
22810 echo "$as_me:$LINENO: checking if large file support is available" >&5
22811echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
22812 if test "x$wx_largefile" = "xyes"; then
22813 cat >>confdefs.h <<\_ACEOF
22814#define HAVE_LARGEFILE_SUPPORT 1
22815_ACEOF
22816
22817 fi
22818 echo "$as_me:$LINENO: result: $wx_largefile" >&5
22819echo "${ECHO_T}$wx_largefile" >&6
22820fi
22821
5b674b9d
DE
22822
22823if test "x$wx_largefile" = "xyes"; then
22824 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
5ff751d6 22825 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
00421666
MW
22826
22827 if test "$USE_HPUX" = 1 -a "$GXX" = "yes"; then
22828 echo "$as_me:$LINENO: checking if -D__STDC_EXT__ is required" >&5
22829echo $ECHO_N "checking if -D__STDC_EXT__ is required... $ECHO_C" >&6
22830if test "${wx_cv_STDC_EXT_required+set}" = set; then
22831 echo $ECHO_N "(cached) $ECHO_C" >&6
22832else
22833
00421666
MW
22834 cat >conftest.$ac_ext <<_ACEOF
22835/* confdefs.h. */
22836_ACEOF
22837cat confdefs.h >>conftest.$ac_ext
22838cat >>conftest.$ac_ext <<_ACEOF
22839/* end confdefs.h. */
22840
22841int
22842main ()
22843{
22844
22845 #ifndef __STDC_EXT__
22846 choke me
22847 #endif
22848
22849 ;
22850 return 0;
22851}
22852_ACEOF
22853rm -f conftest.$ac_objext
22854if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22855 (eval $ac_compile) 2>conftest.er1
22856 ac_status=$?
22857 grep -v '^ *+' conftest.er1 >conftest.err
22858 rm -f conftest.er1
22859 cat conftest.err >&5
22860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22861 (exit $ac_status); } &&
bb9e79c0 22862 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
00421666
MW
22863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22864 (eval $ac_try) 2>&5
22865 ac_status=$?
22866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22867 (exit $ac_status); }; } &&
22868 { ac_try='test -s conftest.$ac_objext'
22869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22870 (eval $ac_try) 2>&5
22871 ac_status=$?
22872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22873 (exit $ac_status); }; }; then
22874 wx_cv_STDC_EXT_required=no
22875else
22876 echo "$as_me: failed program was:" >&5
22877sed 's/^/| /' conftest.$ac_ext >&5
22878
22879wx_cv_STDC_EXT_required=yes
22880
22881fi
22882rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
00421666
MW
22883
22884
22885fi
22886echo "$as_me:$LINENO: result: $wx_cv_STDC_EXT_required" >&5
22887echo "${ECHO_T}$wx_cv_STDC_EXT_required" >&6
22888 if test "x$wx_cv_STDC_EXT_required" = "xyes"; then
5ff751d6 22889 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -D__STDC_EXT__"
00421666
MW
22890 fi
22891 fi
5b674b9d 22892 else
5ff751d6 22893 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGE_FILES"
5b674b9d
DE
22894 fi
22895 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
5294a27e
VZ
22896echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
22897if test "${ac_cv_sys_largefile_source+set}" = set; then
22898 echo $ECHO_N "(cached) $ECHO_C" >&6
22899else
22900 while :; do
22901 ac_cv_sys_largefile_source=no
22902 cat >conftest.$ac_ext <<_ACEOF
22903/* confdefs.h. */
22904_ACEOF
22905cat confdefs.h >>conftest.$ac_ext
22906cat >>conftest.$ac_ext <<_ACEOF
22907/* end confdefs.h. */
22908#include <stdio.h>
22909int
22910main ()
22911{
22912return !fseeko;
22913 ;
22914 return 0;
22915}
22916_ACEOF
22917rm -f conftest.$ac_objext
22918if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22919 (eval $ac_compile) 2>conftest.er1
22920 ac_status=$?
22921 grep -v '^ *+' conftest.er1 >conftest.err
22922 rm -f conftest.er1
22923 cat conftest.err >&5
22924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22925 (exit $ac_status); } &&
bb9e79c0 22926 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
22927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22928 (eval $ac_try) 2>&5
22929 ac_status=$?
22930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22931 (exit $ac_status); }; } &&
22932 { ac_try='test -s conftest.$ac_objext'
22933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22934 (eval $ac_try) 2>&5
22935 ac_status=$?
22936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22937 (exit $ac_status); }; }; then
22938 break
22939else
22940 echo "$as_me: failed program was:" >&5
22941sed 's/^/| /' conftest.$ac_ext >&5
22942
22943fi
22944rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22945 cat >conftest.$ac_ext <<_ACEOF
22946/* confdefs.h. */
22947_ACEOF
22948cat confdefs.h >>conftest.$ac_ext
22949cat >>conftest.$ac_ext <<_ACEOF
22950/* end confdefs.h. */
22951#define _LARGEFILE_SOURCE 1
22952#include <stdio.h>
22953int
22954main ()
22955{
22956return !fseeko;
22957 ;
22958 return 0;
22959}
22960_ACEOF
22961rm -f conftest.$ac_objext
22962if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22963 (eval $ac_compile) 2>conftest.er1
22964 ac_status=$?
22965 grep -v '^ *+' conftest.er1 >conftest.err
22966 rm -f conftest.er1
22967 cat conftest.err >&5
22968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22969 (exit $ac_status); } &&
bb9e79c0 22970 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
22971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22972 (eval $ac_try) 2>&5
22973 ac_status=$?
22974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22975 (exit $ac_status); }; } &&
22976 { ac_try='test -s conftest.$ac_objext'
22977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22978 (eval $ac_try) 2>&5
22979 ac_status=$?
22980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22981 (exit $ac_status); }; }; then
22982 ac_cv_sys_largefile_source=1; break
22983else
22984 echo "$as_me: failed program was:" >&5
22985sed 's/^/| /' conftest.$ac_ext >&5
22986
22987fi
22988rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22989 break
22990done
22991fi
22992echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
22993echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
22994if test "$ac_cv_sys_largefile_source" != no; then
22995
22996cat >>confdefs.h <<_ACEOF
22997#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
22998_ACEOF
22999
23000fi
23001rm -f conftest*
23002
23003# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
23004# in glibc 2.1.3, but that breaks too many other things.
23005# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
23006echo "$as_me:$LINENO: checking for fseeko" >&5
23007echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
23008if test "${ac_cv_func_fseeko+set}" = set; then
23009 echo $ECHO_N "(cached) $ECHO_C" >&6
23010else
23011 cat >conftest.$ac_ext <<_ACEOF
23012/* confdefs.h. */
23013_ACEOF
23014cat confdefs.h >>conftest.$ac_ext
23015cat >>conftest.$ac_ext <<_ACEOF
23016/* end confdefs.h. */
23017#include <stdio.h>
23018int
23019main ()
23020{
23021return fseeko && fseeko (stdin, 0, 0);
23022 ;
23023 return 0;
23024}
23025_ACEOF
23026rm -f conftest.$ac_objext conftest$ac_exeext
23027if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23028 (eval $ac_link) 2>conftest.er1
23029 ac_status=$?
23030 grep -v '^ *+' conftest.er1 >conftest.err
23031 rm -f conftest.er1
23032 cat conftest.err >&5
23033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23034 (exit $ac_status); } &&
bb9e79c0 23035 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
23036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23037 (eval $ac_try) 2>&5
23038 ac_status=$?
23039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23040 (exit $ac_status); }; } &&
23041 { ac_try='test -s conftest$ac_exeext'
23042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23043 (eval $ac_try) 2>&5
23044 ac_status=$?
23045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23046 (exit $ac_status); }; }; then
23047 ac_cv_func_fseeko=yes
23048else
23049 echo "$as_me: failed program was:" >&5
23050sed 's/^/| /' conftest.$ac_ext >&5
23051
23052ac_cv_func_fseeko=no
23053fi
23054rm -f conftest.err conftest.$ac_objext \
23055 conftest$ac_exeext conftest.$ac_ext
23056fi
23057echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
23058echo "${ECHO_T}$ac_cv_func_fseeko" >&6
23059if test $ac_cv_func_fseeko = yes; then
23060
23061cat >>confdefs.h <<\_ACEOF
23062#define HAVE_FSEEKO 1
23063_ACEOF
23064
23065fi
23066
5b674b9d 23067 if test "$ac_cv_sys_largefile_source" != no; then
5ff751d6 23068 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
a848cd7e 23069 fi
a848cd7e
SC
23070fi
23071
23072echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
23073echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
23074if test "${ac_cv_c_bigendian+set}" = set; then
23075 echo $ECHO_N "(cached) $ECHO_C" >&6
23076else
23077 ac_cv_c_bigendian=unknown
23078# See if sys/param.h defines the BYTE_ORDER macro.
23079cat >conftest.$ac_ext <<_ACEOF
23080/* confdefs.h. */
23081_ACEOF
23082cat confdefs.h >>conftest.$ac_ext
23083cat >>conftest.$ac_ext <<_ACEOF
23084/* end confdefs.h. */
23085#include <sys/types.h>
23086#include <sys/param.h>
23087int
23088main ()
23089{
23090
23091#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
23092 bogus endian macros
23093#endif
23094 ;
23095 return 0;
23096}
23097_ACEOF
23098rm -f conftest.$ac_objext
23099if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23100 (eval $ac_compile) 2>conftest.er1
a848cd7e 23101 ac_status=$?
ac1cb8d3
VS
23102 grep -v '^ *+' conftest.er1 >conftest.err
23103 rm -f conftest.er1
23104 cat conftest.err >&5
a848cd7e
SC
23105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23106 (exit $ac_status); } &&
bb9e79c0 23107 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23109 (eval $ac_try) 2>&5
23110 ac_status=$?
23111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23112 (exit $ac_status); }; } &&
23113 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23115 (eval $ac_try) 2>&5
23116 ac_status=$?
23117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23118 (exit $ac_status); }; }; then
23119 # It does; now see whether it defined to BIG_ENDIAN or not.
23120cat >conftest.$ac_ext <<_ACEOF
23121/* confdefs.h. */
23122_ACEOF
23123cat confdefs.h >>conftest.$ac_ext
23124cat >>conftest.$ac_ext <<_ACEOF
23125/* end confdefs.h. */
23126#include <sys/types.h>
23127#include <sys/param.h>
23128int
23129main ()
23130{
23131
23132#if BYTE_ORDER != BIG_ENDIAN
23133 not big endian
23134#endif
23135 ;
23136 return 0;
23137}
23138_ACEOF
23139rm -f conftest.$ac_objext
23140if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23141 (eval $ac_compile) 2>conftest.er1
a848cd7e 23142 ac_status=$?
ac1cb8d3
VS
23143 grep -v '^ *+' conftest.er1 >conftest.err
23144 rm -f conftest.er1
23145 cat conftest.err >&5
a848cd7e
SC
23146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23147 (exit $ac_status); } &&
bb9e79c0 23148 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23150 (eval $ac_try) 2>&5
23151 ac_status=$?
23152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23153 (exit $ac_status); }; } &&
23154 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23156 (eval $ac_try) 2>&5
23157 ac_status=$?
23158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23159 (exit $ac_status); }; }; then
23160 ac_cv_c_bigendian=yes
23161else
23162 echo "$as_me: failed program was:" >&5
23163sed 's/^/| /' conftest.$ac_ext >&5
23164
23165ac_cv_c_bigendian=no
23166fi
ac1cb8d3 23167rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23168else
23169 echo "$as_me: failed program was:" >&5
23170sed 's/^/| /' conftest.$ac_ext >&5
23171
23172fi
ac1cb8d3 23173rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23174if test $ac_cv_c_bigendian = unknown; then
23175if test "$cross_compiling" = yes; then
23176 ac_cv_c_bigendian=unknown
23177else
23178 cat >conftest.$ac_ext <<_ACEOF
23179/* confdefs.h. */
23180_ACEOF
23181cat confdefs.h >>conftest.$ac_ext
23182cat >>conftest.$ac_ext <<_ACEOF
23183/* end confdefs.h. */
23184main () {
23185 /* Are we little or big endian? From Harbison&Steele. */
23186 union
23187 {
23188 long l;
23189 char c[sizeof (long)];
23190 } u;
23191 u.l = 1;
23192 exit (u.c[sizeof (long) - 1] == 1);
23193}
23194_ACEOF
23195rm -f conftest$ac_exeext
23196if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23197 (eval $ac_link) 2>&5
23198 ac_status=$?
23199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23200 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23202 (eval $ac_try) 2>&5
23203 ac_status=$?
23204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23205 (exit $ac_status); }; }; then
23206 ac_cv_c_bigendian=no
23207else
23208 echo "$as_me: program exited with status $ac_status" >&5
23209echo "$as_me: failed program was:" >&5
23210sed 's/^/| /' conftest.$ac_ext >&5
23211
23212( exit $ac_status )
23213ac_cv_c_bigendian=yes
23214fi
ac1cb8d3 23215rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23216fi
23217fi
23218fi
23219echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
23220echo "${ECHO_T}$ac_cv_c_bigendian" >&6
23221if test $ac_cv_c_bigendian = unknown; then
23222 { 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
23223echo "$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;}
23224fi
23225if test $ac_cv_c_bigendian = yes; then
23226 cat >>confdefs.h <<\_ACEOF
23227#define WORDS_BIGENDIAN 1
23228_ACEOF
23229
23230fi
23231
23232
a848cd7e
SC
23233
23234
23235
23236 ac_ext=cc
23237ac_cpp='$CXXCPP $CPPFLAGS'
23238ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23239ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23240ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23241
23242
23243
23244for ac_header in iostream
23245do
23246as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23247if eval "test \"\${$as_ac_Header+set}\" = set"; then
23248 echo "$as_me:$LINENO: checking for $ac_header" >&5
23249echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23250if eval "test \"\${$as_ac_Header+set}\" = set"; then
23251 echo $ECHO_N "(cached) $ECHO_C" >&6
23252fi
23253echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23254echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23255else
23256 # Is the header compilable?
23257echo "$as_me:$LINENO: checking $ac_header usability" >&5
23258echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23259cat >conftest.$ac_ext <<_ACEOF
23260/* confdefs.h. */
23261_ACEOF
23262cat confdefs.h >>conftest.$ac_ext
23263cat >>conftest.$ac_ext <<_ACEOF
23264/* end confdefs.h. */
23265$ac_includes_default
23266#include <$ac_header>
23267_ACEOF
23268rm -f conftest.$ac_objext
23269if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23270 (eval $ac_compile) 2>conftest.er1
a848cd7e 23271 ac_status=$?
ac1cb8d3
VS
23272 grep -v '^ *+' conftest.er1 >conftest.err
23273 rm -f conftest.er1
23274 cat conftest.err >&5
a848cd7e
SC
23275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23276 (exit $ac_status); } &&
bb9e79c0 23277 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23279 (eval $ac_try) 2>&5
23280 ac_status=$?
23281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23282 (exit $ac_status); }; } &&
23283 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23285 (eval $ac_try) 2>&5
23286 ac_status=$?
23287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23288 (exit $ac_status); }; }; then
23289 ac_header_compiler=yes
23290else
23291 echo "$as_me: failed program was:" >&5
23292sed 's/^/| /' conftest.$ac_ext >&5
23293
23294ac_header_compiler=no
23295fi
ac1cb8d3 23296rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23297echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23298echo "${ECHO_T}$ac_header_compiler" >&6
23299
23300# Is the header present?
23301echo "$as_me:$LINENO: checking $ac_header presence" >&5
23302echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23303cat >conftest.$ac_ext <<_ACEOF
23304/* confdefs.h. */
23305_ACEOF
23306cat confdefs.h >>conftest.$ac_ext
23307cat >>conftest.$ac_ext <<_ACEOF
23308/* end confdefs.h. */
23309#include <$ac_header>
23310_ACEOF
23311if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23312 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23313 ac_status=$?
23314 grep -v '^ *+' conftest.er1 >conftest.err
23315 rm -f conftest.er1
23316 cat conftest.err >&5
23317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23318 (exit $ac_status); } >/dev/null; then
23319 if test -s conftest.err; then
23320 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 23321 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
23322 else
23323 ac_cpp_err=
23324 fi
23325else
23326 ac_cpp_err=yes
23327fi
23328if test -z "$ac_cpp_err"; then
23329 ac_header_preproc=yes
23330else
23331 echo "$as_me: failed program was:" >&5
23332sed 's/^/| /' conftest.$ac_ext >&5
23333
23334 ac_header_preproc=no
23335fi
23336rm -f conftest.err conftest.$ac_ext
23337echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23338echo "${ECHO_T}$ac_header_preproc" >&6
23339
23340# So? What about this header?
ac1cb8d3
VS
23341case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
23342 yes:no: )
a848cd7e
SC
23343 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23344echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23345 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23346echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23347 ac_header_preproc=yes
a848cd7e 23348 ;;
ac1cb8d3 23349 no:yes:* )
a848cd7e
SC
23350 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23351echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23352 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23353echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23354 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23355echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23356 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23357echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
23358 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23359echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23360 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23361echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
23362 (
23363 cat <<\_ASBOX
ac1cb8d3
VS
23364## ----------------------------------------- ##
23365## Report this to wx-dev@lists.wxwidgets.org ##
23366## ----------------------------------------- ##
a848cd7e
SC
23367_ASBOX
23368 ) |
23369 sed "s/^/$as_me: WARNING: /" >&2
23370 ;;
23371esac
23372echo "$as_me:$LINENO: checking for $ac_header" >&5
23373echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23374if eval "test \"\${$as_ac_Header+set}\" = set"; then
23375 echo $ECHO_N "(cached) $ECHO_C" >&6
23376else
ac1cb8d3 23377 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
23378fi
23379echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23380echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23381
23382fi
23383if test `eval echo '${'$as_ac_Header'}'` = yes; then
23384 cat >>confdefs.h <<_ACEOF
23385#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23386_ACEOF
23387
23388fi
23389
23390done
23391
23392
23393 if test "$ac_cv_header_iostream" = "yes" ; then
23394 :
23395 else
23396 cat >>confdefs.h <<\_ACEOF
23397#define wxUSE_IOSTREAMH 1
23398_ACEOF
23399
23400 fi
23401
5d7b7554
VZ
23402 ac_ext=cc
23403ac_cpp='$CXXCPP $CPPFLAGS'
23404ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23405ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23406ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a848cd7e
SC
23407
23408
23409
23410
23411 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
23412echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
23413if test "${wx_cv_cpp_bool+set}" = set; then
23414 echo $ECHO_N "(cached) $ECHO_C" >&6
23415else
23416
23417
23418
23419 ac_ext=cc
23420ac_cpp='$CXXCPP $CPPFLAGS'
23421ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23422ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23423ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23424
23425
23426 cat >conftest.$ac_ext <<_ACEOF
23427/* confdefs.h. */
23428_ACEOF
23429cat confdefs.h >>conftest.$ac_ext
23430cat >>conftest.$ac_ext <<_ACEOF
23431/* end confdefs.h. */
23432
23433
23434int
23435main ()
23436{
23437
23438 bool b = true;
23439
23440 return 0;
23441
23442 ;
23443 return 0;
23444}
23445_ACEOF
23446rm -f conftest.$ac_objext
23447if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23448 (eval $ac_compile) 2>conftest.er1
a848cd7e 23449 ac_status=$?
ac1cb8d3
VS
23450 grep -v '^ *+' conftest.er1 >conftest.err
23451 rm -f conftest.er1
23452 cat conftest.err >&5
a848cd7e
SC
23453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23454 (exit $ac_status); } &&
bb9e79c0 23455 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23457 (eval $ac_try) 2>&5
23458 ac_status=$?
23459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23460 (exit $ac_status); }; } &&
23461 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23463 (eval $ac_try) 2>&5
23464 ac_status=$?
23465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23466 (exit $ac_status); }; }; then
23467
23468 wx_cv_cpp_bool=yes
23469
23470else
23471 echo "$as_me: failed program was:" >&5
23472sed 's/^/| /' conftest.$ac_ext >&5
23473
23474
23475 wx_cv_cpp_bool=no
23476
23477
23478fi
ac1cb8d3 23479rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 23480
5d7b7554
VZ
23481 ac_ext=cc
23482ac_cpp='$CXXCPP $CPPFLAGS'
23483ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23484ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23485ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a848cd7e
SC
23486
23487
23488fi
23489echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
23490echo "${ECHO_T}$wx_cv_cpp_bool" >&6
23491
23492 if test "$wx_cv_cpp_bool" = "yes"; then
23493 cat >>confdefs.h <<\_ACEOF
23494#define HAVE_BOOL 1
23495_ACEOF
23496
23497 fi
23498
23499
23500
23501 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
23502echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
23503if test "${wx_cv_explicit+set}" = set; then
23504 echo $ECHO_N "(cached) $ECHO_C" >&6
23505else
23506
23507
23508
23509 ac_ext=cc
23510ac_cpp='$CXXCPP $CPPFLAGS'
23511ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23512ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23513ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23514
23515
23516 cat >conftest.$ac_ext <<_ACEOF
23517/* confdefs.h. */
23518_ACEOF
23519cat confdefs.h >>conftest.$ac_ext
23520cat >>conftest.$ac_ext <<_ACEOF
23521/* end confdefs.h. */
23522
23523 class Foo { public: explicit Foo(int) {} };
23524
23525int
23526main ()
23527{
23528
23529 return 0;
23530
23531 ;
23532 return 0;
23533}
23534_ACEOF
23535rm -f conftest.$ac_objext
23536if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23537 (eval $ac_compile) 2>conftest.er1
a848cd7e 23538 ac_status=$?
ac1cb8d3
VS
23539 grep -v '^ *+' conftest.er1 >conftest.err
23540 rm -f conftest.er1
23541 cat conftest.err >&5
a848cd7e
SC
23542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23543 (exit $ac_status); } &&
bb9e79c0 23544 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23546 (eval $ac_try) 2>&5
23547 ac_status=$?
23548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23549 (exit $ac_status); }; } &&
23550 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23552 (eval $ac_try) 2>&5
23553 ac_status=$?
23554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23555 (exit $ac_status); }; }; then
23556
23557 cat >conftest.$ac_ext <<_ACEOF
23558/* confdefs.h. */
23559_ACEOF
23560cat confdefs.h >>conftest.$ac_ext
23561cat >>conftest.$ac_ext <<_ACEOF
23562/* end confdefs.h. */
23563
23564 class Foo { public: explicit Foo(int) {} };
23565 static void TakeFoo(const Foo& foo) { }
23566
23567int
23568main ()
23569{
23570
23571 TakeFoo(17);
23572 return 0;
23573
23574 ;
23575 return 0;
23576}
23577_ACEOF
23578rm -f conftest.$ac_objext
23579if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23580 (eval $ac_compile) 2>conftest.er1
a848cd7e 23581 ac_status=$?
ac1cb8d3
VS
23582 grep -v '^ *+' conftest.er1 >conftest.err
23583 rm -f conftest.er1
23584 cat conftest.err >&5
a848cd7e
SC
23585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23586 (exit $ac_status); } &&
bb9e79c0 23587 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23589 (eval $ac_try) 2>&5
23590 ac_status=$?
23591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23592 (exit $ac_status); }; } &&
23593 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23595 (eval $ac_try) 2>&5
23596 ac_status=$?
23597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23598 (exit $ac_status); }; }; then
23599 wx_cv_explicit=no
23600else
23601 echo "$as_me: failed program was:" >&5
23602sed 's/^/| /' conftest.$ac_ext >&5
23603
23604wx_cv_explicit=yes
23605
23606fi
ac1cb8d3 23607rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23608
23609else
23610 echo "$as_me: failed program was:" >&5
23611sed 's/^/| /' conftest.$ac_ext >&5
23612
23613wx_cv_explicit=no
23614
23615fi
ac1cb8d3 23616rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 23617
5d7b7554
VZ
23618 ac_ext=cc
23619ac_cpp='$CXXCPP $CPPFLAGS'
23620ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23621ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23622ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a848cd7e
SC
23623
23624
23625fi
23626echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
23627echo "${ECHO_T}$wx_cv_explicit" >&6
23628
23629 if test "$wx_cv_explicit" = "yes"; then
23630 cat >>confdefs.h <<\_ACEOF
23631#define HAVE_EXPLICIT 1
23632_ACEOF
23633
23634 fi
23635
23636
23637echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
23638echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
23639if test "${ac_cv_cxx_const_cast+set}" = set; then
23640 echo $ECHO_N "(cached) $ECHO_C" >&6
23641else
23642
23643
23644 ac_ext=cc
23645ac_cpp='$CXXCPP $CPPFLAGS'
23646ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23647ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23648ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23649
23650 cat >conftest.$ac_ext <<_ACEOF
23651/* confdefs.h. */
23652_ACEOF
23653cat confdefs.h >>conftest.$ac_ext
23654cat >>conftest.$ac_ext <<_ACEOF
23655/* end confdefs.h. */
23656
23657int
23658main ()
23659{
23660int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
23661 ;
23662 return 0;
23663}
23664_ACEOF
23665rm -f conftest.$ac_objext
23666if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23667 (eval $ac_compile) 2>conftest.er1
a848cd7e 23668 ac_status=$?
ac1cb8d3
VS
23669 grep -v '^ *+' conftest.er1 >conftest.err
23670 rm -f conftest.er1
23671 cat conftest.err >&5
a848cd7e
SC
23672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23673 (exit $ac_status); } &&
bb9e79c0 23674 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23676 (eval $ac_try) 2>&5
23677 ac_status=$?
23678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23679 (exit $ac_status); }; } &&
23680 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23682 (eval $ac_try) 2>&5
23683 ac_status=$?
23684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23685 (exit $ac_status); }; }; then
23686 ac_cv_cxx_const_cast=yes
23687else
23688 echo "$as_me: failed program was:" >&5
23689sed 's/^/| /' conftest.$ac_ext >&5
23690
23691ac_cv_cxx_const_cast=no
23692fi
ac1cb8d3 23693rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5d7b7554
VZ
23694 ac_ext=cc
23695ac_cpp='$CXXCPP $CPPFLAGS'
23696ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23697ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23698ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a848cd7e
SC
23699
23700
23701fi
23702echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
23703echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
23704if test "$ac_cv_cxx_const_cast" = yes; then
23705
23706cat >>confdefs.h <<\_ACEOF
23707#define HAVE_CONST_CAST
23708_ACEOF
23709
23710fi
23711
7714864e
RL
23712echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5
23713echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6
23714if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then
23715 echo $ECHO_N "(cached) $ECHO_C" >&6
23716else
23717
23718
23719 ac_ext=cc
23720ac_cpp='$CXXCPP $CPPFLAGS'
23721ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23722ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23723ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23724
23725 cat >conftest.$ac_ext <<_ACEOF
23726/* confdefs.h. */
23727_ACEOF
23728cat confdefs.h >>conftest.$ac_ext
23729cat >>conftest.$ac_ext <<_ACEOF
23730/* end confdefs.h. */
23731#include <typeinfo>
23732class Base { public : Base () {} virtual void f () = 0;};
23733class Derived : public Base { public : Derived () {} virtual void f () {} };
23734class Unrelated { public : Unrelated () {} };
23735int g (Unrelated&) { return 0; }
23736int
23737main ()
23738{
23739
23740Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e);
23741 ;
23742 return 0;
23743}
23744_ACEOF
23745rm -f conftest.$ac_objext
23746if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23747 (eval $ac_compile) 2>conftest.er1
23748 ac_status=$?
23749 grep -v '^ *+' conftest.er1 >conftest.err
23750 rm -f conftest.er1
23751 cat conftest.err >&5
23752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23753 (exit $ac_status); } &&
bb9e79c0 23754 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7714864e
RL
23755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23756 (eval $ac_try) 2>&5
23757 ac_status=$?
23758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23759 (exit $ac_status); }; } &&
23760 { ac_try='test -s conftest.$ac_objext'
23761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23762 (eval $ac_try) 2>&5
23763 ac_status=$?
23764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23765 (exit $ac_status); }; }; then
23766 ac_cv_cxx_reinterpret_cast=yes
23767else
23768 echo "$as_me: failed program was:" >&5
23769sed 's/^/| /' conftest.$ac_ext >&5
23770
23771ac_cv_cxx_reinterpret_cast=no
23772fi
23773rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5d7b7554
VZ
23774 ac_ext=cc
23775ac_cpp='$CXXCPP $CPPFLAGS'
23776ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23777ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23778ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7714864e
RL
23779
23780
23781fi
23782echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5
23783echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6
23784if test "$ac_cv_cxx_reinterpret_cast" = yes; then
23785
23786cat >>confdefs.h <<\_ACEOF
23787#define HAVE_REINTERPRET_CAST
23788_ACEOF
23789
23790fi
23791
a848cd7e
SC
23792echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
23793echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6
23794if test "${ac_cv_cxx_static_cast+set}" = set; then
23795 echo $ECHO_N "(cached) $ECHO_C" >&6
23796else
23797
23798
23799 ac_ext=cc
23800ac_cpp='$CXXCPP $CPPFLAGS'
23801ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23802ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23803ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23804
23805 cat >conftest.$ac_ext <<_ACEOF
23806/* confdefs.h. */
23807_ACEOF
23808cat confdefs.h >>conftest.$ac_ext
23809cat >>conftest.$ac_ext <<_ACEOF
23810/* end confdefs.h. */
23811#include <typeinfo>
23812class Base { public : Base () {} virtual void f () = 0; };
23813class Derived : public Base { public : Derived () {} virtual void f () {} };
23814int g (Derived&) { return 0; }
23815int
23816main ()
23817{
23818
23819Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
23820 ;
23821 return 0;
23822}
23823_ACEOF
23824rm -f conftest.$ac_objext
23825if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23826 (eval $ac_compile) 2>conftest.er1
a848cd7e 23827 ac_status=$?
ac1cb8d3
VS
23828 grep -v '^ *+' conftest.er1 >conftest.err
23829 rm -f conftest.er1
23830 cat conftest.err >&5
a848cd7e
SC
23831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23832 (exit $ac_status); } &&
bb9e79c0 23833 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23835 (eval $ac_try) 2>&5
23836 ac_status=$?
23837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23838 (exit $ac_status); }; } &&
23839 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23841 (eval $ac_try) 2>&5
23842 ac_status=$?
23843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23844 (exit $ac_status); }; }; then
23845 ac_cv_cxx_static_cast=yes
23846else
23847 echo "$as_me: failed program was:" >&5
23848sed 's/^/| /' conftest.$ac_ext >&5
23849
23850ac_cv_cxx_static_cast=no
23851fi
ac1cb8d3 23852rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5d7b7554
VZ
23853 ac_ext=cc
23854ac_cpp='$CXXCPP $CPPFLAGS'
23855ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23856ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23857ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a848cd7e
SC
23858
23859
23860fi
23861echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
23862echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6
23863if test "$ac_cv_cxx_static_cast" = yes; then
23864
23865cat >>confdefs.h <<\_ACEOF
23866#define HAVE_STATIC_CAST
23867_ACEOF
23868
23869fi
23870
23871
3c28b7cb 23872if test "x$SUNCXX" = xyes; then
c92ad099 23873 CXXFLAGS="-features=tmplife $CXXFLAGS"
3c28b7cb
MW
23874fi
23875
9122d155 23876if test "x$SUNCC" = xyes; then
c92ad099 23877 CFLAGS="-erroff=E_NO_EXPLICIT_TYPE_GIVEN $CFLAGS"
9122d155
VZ
23878fi
23879
0ad5d837 23880if test "x$SGICC" = "xyes"; then
c92ad099 23881 CFLAGS="-woff 3970 $CFLAGS"
0ad5d837
VZ
23882fi
23883if test "x$SGICXX" = "xyes"; then
c92ad099 23884 CXXFLAGS="-woff 3970 $CXXFLAGS"
0ad5d837
VZ
23885fi
23886
2eef8513 23887if test "x$HPCC" = "xyes"; then
c92ad099 23888 CFLAGS="+W 2011,2450 $CFLAGS"
2eef8513
VZ
23889fi
23890if test "x$HPCXX" = "xyes"; then
c92ad099 23891 CXXFLAGS="+W 2340 $CXXFLAGS"
2eef8513
VZ
23892fi
23893
23894if test "x$COMPAQCXX" = "xyes"; then
23895 CXXFLAGS="-w0 -msg_disable basclsnondto,unrimpret,intconlosbit"
23896fi
23897
f56c22b4 23898if test "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes"; then
f56c22b4
MW
23899 if test "$wxUSE_UNICODE" = "yes"; then
23900 std_string="std::wstring"
23901 char_type="wchar_t"
23902 else
23903 std_string="std::string"
23904 char_type="char"
23905 fi
23906
23907 echo "$as_me:$LINENO: checking for $std_string in <string>" >&5
23908echo $ECHO_N "checking for $std_string in <string>... $ECHO_C" >&6
a848cd7e
SC
23909 cat >conftest.$ac_ext <<_ACEOF
23910/* confdefs.h. */
23911_ACEOF
23912cat confdefs.h >>conftest.$ac_ext
23913cat >>conftest.$ac_ext <<_ACEOF
23914/* end confdefs.h. */
23915#include <string>
a848cd7e
SC
23916int
23917main ()
23918{
f56c22b4 23919$std_string foo;
a848cd7e
SC
23920 ;
23921 return 0;
23922}
23923_ACEOF
23924rm -f conftest.$ac_objext
23925if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23926 (eval $ac_compile) 2>conftest.er1
a848cd7e 23927 ac_status=$?
ac1cb8d3
VS
23928 grep -v '^ *+' conftest.er1 >conftest.err
23929 rm -f conftest.er1
23930 cat conftest.err >&5
a848cd7e
SC
23931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23932 (exit $ac_status); } &&
bb9e79c0 23933 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23935 (eval $ac_try) 2>&5
23936 ac_status=$?
23937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23938 (exit $ac_status); }; } &&
23939 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23941 (eval $ac_try) 2>&5
23942 ac_status=$?
23943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23944 (exit $ac_status); }; }; then
23945 echo "$as_me:$LINENO: result: yes" >&5
23946echo "${ECHO_T}yes" >&6
0a08f02a
MB
23947 cat >>confdefs.h <<\_ACEOF
23948#define HAVE_STD_WSTRING 1
23949_ACEOF
23950
a848cd7e
SC
23951else
23952 echo "$as_me: failed program was:" >&5
23953sed 's/^/| /' conftest.$ac_ext >&5
23954
23955echo "$as_me:$LINENO: result: no" >&5
23956echo "${ECHO_T}no" >&6
f56c22b4
MW
23957 echo "$as_me:$LINENO: checking if std::basic_string<$char_type> works" >&5
23958echo $ECHO_N "checking if std::basic_string<$char_type> works... $ECHO_C" >&6
0a08f02a
MB
23959 cat >conftest.$ac_ext <<_ACEOF
23960/* confdefs.h. */
23961_ACEOF
23962cat confdefs.h >>conftest.$ac_ext
23963cat >>conftest.$ac_ext <<_ACEOF
23964/* end confdefs.h. */
23965
23966 #ifdef HAVE_WCHAR_H
23967 # ifdef __CYGWIN__
23968 # include <stddef.h>
23969 # endif
23970 # include <wchar.h>
23971 #endif
23972 #ifdef HAVE_STDLIB_H
23973 # include <stdlib.h>
23974 #endif
23975 #include <stdio.h>
23976 #include <string>
23977
23978int
23979main ()
23980{
f56c22b4
MW
23981std::basic_string<$char_type> foo;
23982 const $char_type* dummy = foo.c_str();
0a08f02a
MB
23983 ;
23984 return 0;
23985}
23986_ACEOF
23987rm -f conftest.$ac_objext
23988if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23989 (eval $ac_compile) 2>conftest.er1
23990 ac_status=$?
23991 grep -v '^ *+' conftest.er1 >conftest.err
23992 rm -f conftest.er1
23993 cat conftest.err >&5
23994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23995 (exit $ac_status); } &&
bb9e79c0 23996 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0a08f02a
MB
23997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23998 (eval $ac_try) 2>&5
23999 ac_status=$?
24000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24001 (exit $ac_status); }; } &&
24002 { ac_try='test -s conftest.$ac_objext'
24003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24004 (eval $ac_try) 2>&5
24005 ac_status=$?
24006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24007 (exit $ac_status); }; }; then
24008 echo "$as_me:$LINENO: result: yes" >&5
24009echo "${ECHO_T}yes" >&6
24010else
24011 echo "$as_me: failed program was:" >&5
24012sed 's/^/| /' conftest.$ac_ext >&5
24013
24014echo "$as_me:$LINENO: result: no" >&5
24015echo "${ECHO_T}no" >&6
f56c22b4 24016 if test "$wxUSE_STL" = "yes"; then
4b9918c5
MW
24017 { { echo "$as_me:$LINENO: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&5
24018echo "$as_me: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&2;}
24019 { (exit 1); exit 1; }; }
24020 elif grep wxUSE_STD_STRING $wx_arg_cache_file >/dev/null; then
24021 { { echo "$as_me:$LINENO: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&5
24022echo "$as_me: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&2;}
a848cd7e 24023 { (exit 1); exit 1; }; }
f56c22b4
MW
24024 else
24025 { echo "$as_me:$LINENO: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&5
24026echo "$as_me: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&2;}
24027 wxUSE_STD_STRING=no
24028 fi
24029
0a08f02a 24030
a848cd7e 24031fi
ac1cb8d3 24032rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 24033
0a08f02a
MB
24034fi
24035rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f56c22b4
MW
24036fi
24037
24038if test "$wxUSE_STD_IOSTREAM" = "yes"; then
f56c22b4
MW
24039 echo "$as_me:$LINENO: checking for std::istream" >&5
24040echo $ECHO_N "checking for std::istream... $ECHO_C" >&6
24041if test "${ac_cv_type_std__istream+set}" = set; then
24042 echo $ECHO_N "(cached) $ECHO_C" >&6
24043else
24044 cat >conftest.$ac_ext <<_ACEOF
24045/* confdefs.h. */
24046_ACEOF
24047cat confdefs.h >>conftest.$ac_ext
24048cat >>conftest.$ac_ext <<_ACEOF
24049/* end confdefs.h. */
24050#include <iostream>
24051
24052int
24053main ()
24054{
24055if ((std::istream *) 0)
24056 return 0;
24057if (sizeof (std::istream))
24058 return 0;
24059 ;
24060 return 0;
24061}
24062_ACEOF
24063rm -f conftest.$ac_objext
24064if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24065 (eval $ac_compile) 2>conftest.er1
24066 ac_status=$?
24067 grep -v '^ *+' conftest.er1 >conftest.err
24068 rm -f conftest.er1
24069 cat conftest.err >&5
24070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24071 (exit $ac_status); } &&
bb9e79c0 24072 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
f56c22b4
MW
24073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24074 (eval $ac_try) 2>&5
24075 ac_status=$?
24076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24077 (exit $ac_status); }; } &&
24078 { ac_try='test -s conftest.$ac_objext'
24079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24080 (eval $ac_try) 2>&5
24081 ac_status=$?
24082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24083 (exit $ac_status); }; }; then
24084 ac_cv_type_std__istream=yes
24085else
24086 echo "$as_me: failed program was:" >&5
24087sed 's/^/| /' conftest.$ac_ext >&5
24088
24089ac_cv_type_std__istream=no
24090fi
24091rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24092fi
24093echo "$as_me:$LINENO: result: $ac_cv_type_std__istream" >&5
24094echo "${ECHO_T}$ac_cv_type_std__istream" >&6
24095if test $ac_cv_type_std__istream = yes; then
24096
24097cat >>confdefs.h <<_ACEOF
24098#define HAVE_STD__ISTREAM 1
24099_ACEOF
24100
24101
24102else
24103 wxUSE_STD_IOSTREAM=no
24104fi
24105echo "$as_me:$LINENO: checking for std::ostream" >&5
24106echo $ECHO_N "checking for std::ostream... $ECHO_C" >&6
24107if test "${ac_cv_type_std__ostream+set}" = set; then
24108 echo $ECHO_N "(cached) $ECHO_C" >&6
24109else
24110 cat >conftest.$ac_ext <<_ACEOF
24111/* confdefs.h. */
24112_ACEOF
24113cat confdefs.h >>conftest.$ac_ext
24114cat >>conftest.$ac_ext <<_ACEOF
24115/* end confdefs.h. */
24116#include <iostream>
24117
24118int
24119main ()
24120{
24121if ((std::ostream *) 0)
24122 return 0;
24123if (sizeof (std::ostream))
24124 return 0;
24125 ;
24126 return 0;
24127}
24128_ACEOF
24129rm -f conftest.$ac_objext
24130if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24131 (eval $ac_compile) 2>conftest.er1
24132 ac_status=$?
24133 grep -v '^ *+' conftest.er1 >conftest.err
24134 rm -f conftest.er1
24135 cat conftest.err >&5
24136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24137 (exit $ac_status); } &&
bb9e79c0 24138 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
f56c22b4
MW
24139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24140 (eval $ac_try) 2>&5
24141 ac_status=$?
24142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24143 (exit $ac_status); }; } &&
24144 { ac_try='test -s conftest.$ac_objext'
24145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24146 (eval $ac_try) 2>&5
24147 ac_status=$?
24148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24149 (exit $ac_status); }; }; then
24150 ac_cv_type_std__ostream=yes
24151else
24152 echo "$as_me: failed program was:" >&5
24153sed 's/^/| /' conftest.$ac_ext >&5
24154
24155ac_cv_type_std__ostream=no
24156fi
24157rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24158fi
24159echo "$as_me:$LINENO: result: $ac_cv_type_std__ostream" >&5
24160echo "${ECHO_T}$ac_cv_type_std__ostream" >&6
24161if test $ac_cv_type_std__ostream = yes; then
24162
24163cat >>confdefs.h <<_ACEOF
24164#define HAVE_STD__OSTREAM 1
24165_ACEOF
24166
24167
24168else
24169 wxUSE_STD_IOSTREAM=no
24170fi
24171
24172
24173 if test "$wxUSE_STD_IOSTREAM" != "yes"; then
4b9918c5
MW
24174 if grep wxUSE_STD_IOSTREAM $wx_arg_cache_file >/dev/null; then
24175 { { echo "$as_me:$LINENO: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&5
24176echo "$as_me: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&2;}
24177 { (exit 1); exit 1; }; }
24178 else
24179 { echo "$as_me:$LINENO: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&5
f56c22b4 24180echo "$as_me: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&2;}
4b9918c5 24181 fi
f56c22b4 24182 fi
0a08f02a
MB
24183fi
24184
24185if test "$wxUSE_STL" = "yes"; then
0a08f02a
MB
24186 echo "$as_me:$LINENO: checking for basic STL functionality" >&5
24187echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
a848cd7e
SC
24188 cat >conftest.$ac_ext <<_ACEOF
24189/* confdefs.h. */
24190_ACEOF
24191cat confdefs.h >>conftest.$ac_ext
24192cat >>conftest.$ac_ext <<_ACEOF
24193/* end confdefs.h. */
24194#include <string>
0a08f02a
MB
24195 #include <functional>
24196 #include <algorithm>
24197 #include <vector>
24198 #include <list>
a848cd7e
SC
24199int
24200main ()
24201{
0a08f02a
MB
24202std::vector<int> moo;
24203 std::list<int> foo;
24204 std::vector<int>::iterator it =
24205 std::find_if(moo.begin(), moo.end(),
24206 std::bind2nd(std::less<int>(), 3));
a848cd7e
SC
24207 ;
24208 return 0;
24209}
24210_ACEOF
24211rm -f conftest.$ac_objext
24212if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24213 (eval $ac_compile) 2>conftest.er1
a848cd7e 24214 ac_status=$?
ac1cb8d3
VS
24215 grep -v '^ *+' conftest.er1 >conftest.err
24216 rm -f conftest.er1
24217 cat conftest.err >&5
a848cd7e
SC
24218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24219 (exit $ac_status); } &&
bb9e79c0 24220 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24222 (eval $ac_try) 2>&5
24223 ac_status=$?
24224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24225 (exit $ac_status); }; } &&
24226 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24228 (eval $ac_try) 2>&5
24229 ac_status=$?
24230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24231 (exit $ac_status); }; }; then
24232 echo "$as_me:$LINENO: result: yes" >&5
24233echo "${ECHO_T}yes" >&6
a848cd7e
SC
24234else
24235 echo "$as_me: failed program was:" >&5
24236sed 's/^/| /' conftest.$ac_ext >&5
24237
24238echo "$as_me:$LINENO: result: no" >&5
24239echo "${ECHO_T}no" >&6
0a08f02a
MB
24240 { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
24241echo "$as_me: error: Basic STL functionality missing" >&2;}
24242 { (exit 1); exit 1; }; }
a848cd7e 24243fi
ac1cb8d3 24244rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24245
24246 echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
24247echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
24248 cat >conftest.$ac_ext <<_ACEOF
24249/* confdefs.h. */
24250_ACEOF
24251cat confdefs.h >>conftest.$ac_ext
24252cat >>conftest.$ac_ext <<_ACEOF
24253/* end confdefs.h. */
24254#include <string>
24255int
24256main ()
24257{
24258std::string foo, bar;
24259 foo.compare(bar);
24260 foo.compare(1, 1, bar);
24261 foo.compare(1, 1, bar, 1, 1);
24262 foo.compare("");
24263 foo.compare(1, 1, "");
24264 foo.compare(1, 1, "", 2);
24265 ;
24266 return 0;
24267}
24268_ACEOF
24269rm -f conftest.$ac_objext
24270if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24271 (eval $ac_compile) 2>conftest.er1
a848cd7e 24272 ac_status=$?
ac1cb8d3
VS
24273 grep -v '^ *+' conftest.er1 >conftest.err
24274 rm -f conftest.er1
24275 cat conftest.err >&5
a848cd7e
SC
24276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24277 (exit $ac_status); } &&
bb9e79c0 24278 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24280 (eval $ac_try) 2>&5
24281 ac_status=$?
24282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24283 (exit $ac_status); }; } &&
24284 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24286 (eval $ac_try) 2>&5
24287 ac_status=$?
24288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24289 (exit $ac_status); }; }; then
24290 echo "$as_me:$LINENO: result: yes" >&5
24291echo "${ECHO_T}yes" >&6
24292 cat >>confdefs.h <<\_ACEOF
24293#define HAVE_STD_STRING_COMPARE 1
24294_ACEOF
24295
24296else
24297 echo "$as_me: failed program was:" >&5
24298sed 's/^/| /' conftest.$ac_ext >&5
24299
24300echo "$as_me:$LINENO: result: no" >&5
24301echo "${ECHO_T}no" >&6
24302fi
ac1cb8d3 24303rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
24304
24305 if test "${ac_cv_header_hash_map+set}" = set; then
24306 echo "$as_me:$LINENO: checking for hash_map" >&5
24307echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
24308if test "${ac_cv_header_hash_map+set}" = set; then
24309 echo $ECHO_N "(cached) $ECHO_C" >&6
24310fi
24311echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
24312echo "${ECHO_T}$ac_cv_header_hash_map" >&6
24313else
24314 # Is the header compilable?
24315echo "$as_me:$LINENO: checking hash_map usability" >&5
24316echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6
24317cat >conftest.$ac_ext <<_ACEOF
24318/* confdefs.h. */
24319_ACEOF
24320cat confdefs.h >>conftest.$ac_ext
24321cat >>conftest.$ac_ext <<_ACEOF
24322/* end confdefs.h. */
24323$ac_includes_default
24324#include <hash_map>
24325_ACEOF
24326rm -f conftest.$ac_objext
24327if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24328 (eval $ac_compile) 2>conftest.er1
bdcade0a 24329 ac_status=$?
ac1cb8d3
VS
24330 grep -v '^ *+' conftest.er1 >conftest.err
24331 rm -f conftest.er1
24332 cat conftest.err >&5
bdcade0a
MB
24333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24334 (exit $ac_status); } &&
bb9e79c0 24335 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24337 (eval $ac_try) 2>&5
24338 ac_status=$?
24339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24340 (exit $ac_status); }; } &&
24341 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
24342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24343 (eval $ac_try) 2>&5
24344 ac_status=$?
24345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24346 (exit $ac_status); }; }; then
24347 ac_header_compiler=yes
24348else
24349 echo "$as_me: failed program was:" >&5
24350sed 's/^/| /' conftest.$ac_ext >&5
24351
24352ac_header_compiler=no
24353fi
ac1cb8d3 24354rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
24355echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24356echo "${ECHO_T}$ac_header_compiler" >&6
24357
24358# Is the header present?
24359echo "$as_me:$LINENO: checking hash_map presence" >&5
24360echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6
24361cat >conftest.$ac_ext <<_ACEOF
24362/* confdefs.h. */
24363_ACEOF
24364cat confdefs.h >>conftest.$ac_ext
24365cat >>conftest.$ac_ext <<_ACEOF
24366/* end confdefs.h. */
24367#include <hash_map>
24368_ACEOF
24369if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24370 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24371 ac_status=$?
24372 grep -v '^ *+' conftest.er1 >conftest.err
24373 rm -f conftest.er1
24374 cat conftest.err >&5
24375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24376 (exit $ac_status); } >/dev/null; then
24377 if test -s conftest.err; then
24378 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 24379 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
24380 else
24381 ac_cpp_err=
24382 fi
24383else
24384 ac_cpp_err=yes
24385fi
24386if test -z "$ac_cpp_err"; then
24387 ac_header_preproc=yes
24388else
24389 echo "$as_me: failed program was:" >&5
24390sed 's/^/| /' conftest.$ac_ext >&5
24391
24392 ac_header_preproc=no
24393fi
24394rm -f conftest.err conftest.$ac_ext
24395echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24396echo "${ECHO_T}$ac_header_preproc" >&6
24397
24398# So? What about this header?
ac1cb8d3
VS
24399case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
24400 yes:no: )
bdcade0a
MB
24401 { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
24402echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
24403 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5
24404echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;}
24405 ac_header_preproc=yes
bdcade0a 24406 ;;
ac1cb8d3 24407 no:yes:* )
bdcade0a
MB
24408 { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5
24409echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
24410 { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5
24411echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;}
24412 { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5
24413echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;}
24414 { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5
24415echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
24416 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5
24417echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
24418 { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5
24419echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
24420 (
24421 cat <<\_ASBOX
ac1cb8d3
VS
24422## ----------------------------------------- ##
24423## Report this to wx-dev@lists.wxwidgets.org ##
24424## ----------------------------------------- ##
bdcade0a
MB
24425_ASBOX
24426 ) |
24427 sed "s/^/$as_me: WARNING: /" >&2
24428 ;;
24429esac
24430echo "$as_me:$LINENO: checking for hash_map" >&5
24431echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
24432if test "${ac_cv_header_hash_map+set}" = set; then
24433 echo $ECHO_N "(cached) $ECHO_C" >&6
24434else
24435 ac_cv_header_hash_map=$ac_header_preproc
24436fi
24437echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
24438echo "${ECHO_T}$ac_cv_header_hash_map" >&6
24439
24440fi
24441if test $ac_cv_header_hash_map = yes; then
24442 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
24443echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
24444 cat >conftest.$ac_ext <<_ACEOF
24445/* confdefs.h. */
24446_ACEOF
24447cat confdefs.h >>conftest.$ac_ext
24448cat >>conftest.$ac_ext <<_ACEOF
24449/* end confdefs.h. */
24450#include <hash_map>
24451 #include <hash_set>
24452int
24453main ()
24454{
24455std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
24456 std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
24457 ;
24458 return 0;
24459}
24460_ACEOF
24461rm -f conftest.$ac_objext
24462if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24463 (eval $ac_compile) 2>conftest.er1
bdcade0a 24464 ac_status=$?
ac1cb8d3
VS
24465 grep -v '^ *+' conftest.er1 >conftest.err
24466 rm -f conftest.er1
24467 cat conftest.err >&5
bdcade0a
MB
24468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24469 (exit $ac_status); } &&
bb9e79c0 24470 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24472 (eval $ac_try) 2>&5
24473 ac_status=$?
24474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24475 (exit $ac_status); }; } &&
24476 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
24477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24478 (eval $ac_try) 2>&5
24479 ac_status=$?
24480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24481 (exit $ac_status); }; }; then
24482 echo "$as_me:$LINENO: result: yes" >&5
24483echo "${ECHO_T}yes" >&6
24484 cat >>confdefs.h <<\_ACEOF
24485#define HAVE_HASH_MAP 1
24486_ACEOF
24487
24488 cat >>confdefs.h <<\_ACEOF
24489#define HAVE_STD_HASH_MAP 1
24490_ACEOF
24491
24492else
24493 echo "$as_me: failed program was:" >&5
24494sed 's/^/| /' conftest.$ac_ext >&5
24495
24496echo "$as_me:$LINENO: result: no" >&5
24497echo "${ECHO_T}no" >&6
24498fi
ac1cb8d3 24499rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
24500
24501fi
24502
24503
24504
24505 if test "${ac_cv_header_ext_hash_map+set}" = set; then
24506 echo "$as_me:$LINENO: checking for ext/hash_map" >&5
24507echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
24508if test "${ac_cv_header_ext_hash_map+set}" = set; then
24509 echo $ECHO_N "(cached) $ECHO_C" >&6
24510fi
24511echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
24512echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
24513else
24514 # Is the header compilable?
24515echo "$as_me:$LINENO: checking ext/hash_map usability" >&5
24516echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6
24517cat >conftest.$ac_ext <<_ACEOF
24518/* confdefs.h. */
24519_ACEOF
24520cat confdefs.h >>conftest.$ac_ext
24521cat >>conftest.$ac_ext <<_ACEOF
24522/* end confdefs.h. */
24523$ac_includes_default
24524#include <ext/hash_map>
24525_ACEOF
24526rm -f conftest.$ac_objext
24527if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24528 (eval $ac_compile) 2>conftest.er1
bdcade0a 24529 ac_status=$?
ac1cb8d3
VS
24530 grep -v '^ *+' conftest.er1 >conftest.err
24531 rm -f conftest.er1
24532 cat conftest.err >&5
bdcade0a
MB
24533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24534 (exit $ac_status); } &&
bb9e79c0 24535 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24537 (eval $ac_try) 2>&5
24538 ac_status=$?
24539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24540 (exit $ac_status); }; } &&
24541 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
24542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24543 (eval $ac_try) 2>&5
24544 ac_status=$?
24545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24546 (exit $ac_status); }; }; then
24547 ac_header_compiler=yes
24548else
24549 echo "$as_me: failed program was:" >&5
24550sed 's/^/| /' conftest.$ac_ext >&5
24551
24552ac_header_compiler=no
24553fi
ac1cb8d3 24554rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
24555echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24556echo "${ECHO_T}$ac_header_compiler" >&6
24557
24558# Is the header present?
24559echo "$as_me:$LINENO: checking ext/hash_map presence" >&5
24560echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6
24561cat >conftest.$ac_ext <<_ACEOF
24562/* confdefs.h. */
24563_ACEOF
24564cat confdefs.h >>conftest.$ac_ext
24565cat >>conftest.$ac_ext <<_ACEOF
24566/* end confdefs.h. */
24567#include <ext/hash_map>
24568_ACEOF
24569if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24570 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24571 ac_status=$?
24572 grep -v '^ *+' conftest.er1 >conftest.err
24573 rm -f conftest.er1
24574 cat conftest.err >&5
24575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24576 (exit $ac_status); } >/dev/null; then
24577 if test -s conftest.err; then
24578 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 24579 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
24580 else
24581 ac_cpp_err=
24582 fi
24583else
24584 ac_cpp_err=yes
24585fi
24586if test -z "$ac_cpp_err"; then
24587 ac_header_preproc=yes
24588else
24589 echo "$as_me: failed program was:" >&5
24590sed 's/^/| /' conftest.$ac_ext >&5
24591
24592 ac_header_preproc=no
24593fi
24594rm -f conftest.err conftest.$ac_ext
24595echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24596echo "${ECHO_T}$ac_header_preproc" >&6
24597
24598# So? What about this header?
ac1cb8d3
VS
24599case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
24600 yes:no: )
bdcade0a
MB
24601 { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
24602echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
24603 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5
24604echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;}
24605 ac_header_preproc=yes
bdcade0a 24606 ;;
ac1cb8d3 24607 no:yes:* )
bdcade0a
MB
24608 { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5
24609echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
24610 { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5
24611echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;}
24612 { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5
24613echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;}
24614 { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5
24615echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
24616 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5
24617echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
24618 { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5
24619echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
24620 (
24621 cat <<\_ASBOX
ac1cb8d3
VS
24622## ----------------------------------------- ##
24623## Report this to wx-dev@lists.wxwidgets.org ##
24624## ----------------------------------------- ##
bdcade0a
MB
24625_ASBOX
24626 ) |
24627 sed "s/^/$as_me: WARNING: /" >&2
24628 ;;
24629esac
24630echo "$as_me:$LINENO: checking for ext/hash_map" >&5
24631echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
24632if test "${ac_cv_header_ext_hash_map+set}" = set; then
24633 echo $ECHO_N "(cached) $ECHO_C" >&6
24634else
24635 ac_cv_header_ext_hash_map=$ac_header_preproc
24636fi
24637echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
24638echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
24639
24640fi
24641if test $ac_cv_header_ext_hash_map = yes; then
24642 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
24643echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
24644 cat >conftest.$ac_ext <<_ACEOF
24645/* confdefs.h. */
24646_ACEOF
24647cat confdefs.h >>conftest.$ac_ext
24648cat >>conftest.$ac_ext <<_ACEOF
24649/* end confdefs.h. */
24650#include <ext/hash_map>
24651 #include <ext/hash_set>
24652int
24653main ()
24654{
24655__gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
24656 __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
24657 ;
24658 return 0;
24659}
24660_ACEOF
24661rm -f conftest.$ac_objext
24662if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24663 (eval $ac_compile) 2>conftest.er1
bdcade0a 24664 ac_status=$?
ac1cb8d3
VS
24665 grep -v '^ *+' conftest.er1 >conftest.err
24666 rm -f conftest.er1
24667 cat conftest.err >&5
bdcade0a
MB
24668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24669 (exit $ac_status); } &&
bb9e79c0 24670 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24672 (eval $ac_try) 2>&5
24673 ac_status=$?
24674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24675 (exit $ac_status); }; } &&
24676 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
24677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24678 (eval $ac_try) 2>&5
24679 ac_status=$?
24680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24681 (exit $ac_status); }; }; then
24682 echo "$as_me:$LINENO: result: yes" >&5
24683echo "${ECHO_T}yes" >&6
24684 cat >>confdefs.h <<\_ACEOF
24685#define HAVE_EXT_HASH_MAP 1
24686_ACEOF
24687
24688 cat >>confdefs.h <<\_ACEOF
24689#define HAVE_GNU_CXX_HASH_MAP 1
24690_ACEOF
24691
24692else
24693 echo "$as_me: failed program was:" >&5
24694sed 's/^/| /' conftest.$ac_ext >&5
24695
24696echo "$as_me:$LINENO: result: no" >&5
24697echo "${ECHO_T}no" >&6
24698fi
ac1cb8d3 24699rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
24700
24701fi
24702
24703
a848cd7e
SC
24704fi
24705
24706
24707SEARCH_INCLUDE="\
24708 /usr/local/include \
24709 \
24710 /usr/Motif-2.1/include \
24711 /usr/Motif-1.2/include \
24712 /usr/include/Motif1.2 \
a848cd7e
SC
24713 \
24714 /usr/dt/include \
24715 /usr/openwin/include \
24716 \
24717 /usr/include/Xm \
24718 \
24719 /usr/X11R6/include \
24720 /usr/X11R6.4/include \
24721 /usr/X11R5/include \
24722 /usr/X11R4/include \
24723 \
24724 /usr/include/X11R6 \
24725 /usr/include/X11R5 \
24726 /usr/include/X11R4 \
24727 \
24728 /usr/local/X11R6/include \
24729 /usr/local/X11R5/include \
24730 /usr/local/X11R4/include \
24731 \
24732 /usr/local/include/X11R6 \
24733 /usr/local/include/X11R5 \
24734 /usr/local/include/X11R4 \
24735 \
24736 /usr/X11/include \
24737 /usr/include/X11 \
24738 /usr/local/X11/include \
24739 /usr/local/include/X11 \
24740 \
a848cd7e 24741 /usr/XFree86/include/X11 \
e051b34e
MW
24742 /usr/pkg/include \
24743 \
a848cd7e
SC
24744 /usr/openwin/share/include"
24745
6f9cf1e6 24746echo "$as_me:$LINENO: checking for libraries directory" >&5
0ad5d837 24747echo $ECHO_N "checking for libraries directory... $ECHO_C" >&6
6f9cf1e6
MW
24748
24749case "${host}" in
24750 *-*-irix6* )
24751 if test "${wx_cv_std_libpath+set}" = set; then
0ad5d837
VZ
24752 echo $ECHO_N "(cached) $ECHO_C" >&6
24753else
24754
c687b303
VZ
24755 for d in /usr/lib /usr/lib32 /usr/lib/64 /usr/lib64; do
24756 for e in a so sl dylib dll.a; do
24757 libc="$d/libc.$e"
24758 if test -f $libc; then
24759 save_LIBS="$LIBS"
24760 LIBS="$libc"
24761 cat >conftest.$ac_ext <<_ACEOF
0ad5d837
VZ
24762int main() { return 0; }
24763_ACEOF
24764rm -f conftest.$ac_objext conftest$ac_exeext
24765if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24766 (eval $ac_link) 2>conftest.er1
24767 ac_status=$?
24768 grep -v '^ *+' conftest.er1 >conftest.err
24769 rm -f conftest.er1
24770 cat conftest.err >&5
24771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24772 (exit $ac_status); } &&
bb9e79c0 24773 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0ad5d837
VZ
24774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24775 (eval $ac_try) 2>&5
24776 ac_status=$?
24777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24778 (exit $ac_status); }; } &&
24779 { ac_try='test -s conftest$ac_exeext'
24780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24781 (eval $ac_try) 2>&5
24782 ac_status=$?
24783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24784 (exit $ac_status); }; }; then
24785 wx_cv_std_libpath=`echo $d | sed s@/usr/@@`
24786else
24787 echo "$as_me: failed program was:" >&5
24788sed 's/^/| /' conftest.$ac_ext >&5
24789
24790fi
24791rm -f conftest.err conftest.$ac_objext \
24792 conftest$ac_exeext conftest.$ac_ext
c687b303
VZ
24793 LIBS="$save_LIBS"
24794 if test "x$wx_cv_std_libpath" != "x"; then
24795 break 2
24796 fi
24797 fi
24798 done
24799 done
24800 if test "x$wx_cv_std_libpath" = "x"; then
24801 wx_cv_std_libpath="lib"
0ad5d837 24802 fi
0ad5d837
VZ
24803
24804
24805fi
6f9cf1e6
MW
24806
24807 ;;
24808
24809 *-*-solaris2* )
24810 if test "$ac_cv_sizeof_void_p" = 8 -a -d "/usr/lib/64"; then
24811 wx_cv_std_libpath="lib/64"
24812 else
24813 wx_cv_std_libpath="lib"
24814 fi
24815 ;;
24816
24817 *-*-linux* )
24818 if test "$ac_cv_sizeof_void_p" = 8 -a \
24819 -d "/usr/lib64" -a ! -h "/usr/lib64"; then
24820 wx_cv_std_libpath="lib64"
24821 else
24822 wx_cv_std_libpath="lib"
24823 fi
c687b303
VZ
24824 ;;
24825
24826 *)
24827 wx_cv_std_libpath="lib";
24828 ;;
24829esac
0ad5d837 24830
6f9cf1e6
MW
24831echo "$as_me:$LINENO: result: $wx_cv_std_libpath" >&5
24832echo "${ECHO_T}$wx_cv_std_libpath" >&6
24833
24834SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s@include@$wx_cv_std_libpath@g` /usr/$wx_cv_std_libpath"
a848cd7e 24835
3eca31dc
MW
24836if test "$build" != "$host" -a "$GCC" = yes; then
24837 if cross_root=`$CC -print-prog-name=ld 2>/dev/null`; then
24838 cross_root=`dirname $cross_root`
24839 cross_root=`dirname $cross_root`
24840
24841 SEARCH_LIB=`for x in $SEARCH_LIB; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
24842 SEARCH_INCLUDE=`for x in $SEARCH_INCLUDE; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
5c60e845 24843 SEARCH_INCLUDE="$SEARCH_INCLUDE $cross_root/include"
3eca31dc
MW
24844
24845 if test -z "$PKG_CONFIG_PATH"; then
24846 PKG_CONFIG_PATH="$cross_root/local/lib/pkgconfig:$cross_root/lib/pkgconfig"
24847 export PKG_CONFIG_PATH
24848 fi
24849
24850 if test -z "$x_includes" -o "$x_includes" = NONE; then
24851
24852ac_find_includes=
24853for ac_dir in $SEARCH_INCLUDE /usr/include;
24854 do
24855 if test -f "$ac_dir/X11/Intrinsic.h"; then
24856 ac_find_includes=$ac_dir
24857 break
24858 fi
24859 done
24860
24861 x_includes=$ac_find_includes
24862 fi
24863 if test -z "$x_libraries" -o "$x_libraries" = NONE; then
24864
0ad5d837
VZ
24865 ac_find_libraries=
24866 for ac_dir in $SEARCH_LIB;
3eca31dc
MW
24867 do
24868 for ac_extension in a so sl dylib dll.a; do
24869 if test -f "$ac_dir/libXt.$ac_extension"; then
24870 ac_find_libraries=$ac_dir
24871 break 2
24872 fi
24873 done
24874 done
24875
24876 x_libraries=$ac_find_libraries
24877 fi
24878 fi
24879fi
24880
a848cd7e
SC
24881
24882cat >confcache <<\_ACEOF
24883# This file is a shell script that caches the results of configure
24884# tests run on this system so they can be shared between configure
24885# scripts and configure runs, see configure's option --config-cache.
24886# It is not useful on other systems. If it contains results you don't
24887# want to keep, you may remove or edit it.
24888#
24889# config.status only pays attention to the cache file if you give it
24890# the --recheck option to rerun configure.
24891#
24892# `ac_cv_env_foo' variables (set or unset) will be overridden when
24893# loading this file, other *unset* `ac_cv_foo' will be assigned the
24894# following values.
24895
24896_ACEOF
24897
24898# The following way of writing the cache mishandles newlines in values,
24899# but we know of no workaround that is simple, portable, and efficient.
24900# So, don't put newlines in cache variables' values.
24901# Ultrix sh set writes to stderr and can't be redirected directly,
24902# and sets the high bit in the cache file unless we assign to the vars.
24903{
24904 (set) 2>&1 |
24905 case `(ac_space=' '; set | grep ac_space) 2>&1` in
24906 *ac_space=\ *)
24907 # `set' does not quote correctly, so add quotes (double-quote
24908 # substitution turns \\\\ into \\, and sed turns \\ into \).
24909 sed -n \
ac1cb8d3
VS
24910 "s/'/'\\\\''/g;
24911 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
24912 ;;
24913 *)
24914 # `set' quotes correctly as required by POSIX, so do not add quotes.
24915 sed -n \
ac1cb8d3 24916 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
24917 ;;
24918 esac;
24919} |
24920 sed '
24921 t clear
24922 : clear
24923 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24924 t end
24925 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24926 : end' >>confcache
24927if diff $cache_file confcache >/dev/null 2>&1; then :; else
24928 if test -w $cache_file; then
24929 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
24930 cat confcache >$cache_file
24931 else
24932 echo "not updating unwritable cache $cache_file"
24933 fi
24934fi
24935rm -f confcache
24936
24937if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
24938 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
24939echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
24940if test "${wx_cv_lib_glibc21+set}" = set; then
24941 echo $ECHO_N "(cached) $ECHO_C" >&6
24942else
24943
24944 cat >conftest.$ac_ext <<_ACEOF
24945/* confdefs.h. */
24946_ACEOF
24947cat confdefs.h >>conftest.$ac_ext
24948cat >>conftest.$ac_ext <<_ACEOF
24949/* end confdefs.h. */
24950#include <features.h>
24951int
24952main ()
24953{
24954
24955 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
04e525a0 24956 not glibc 2.1
a848cd7e
SC
24957 #endif
24958
24959 ;
24960 return 0;
24961}
24962_ACEOF
24963rm -f conftest.$ac_objext
24964if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24965 (eval $ac_compile) 2>conftest.er1
a848cd7e 24966 ac_status=$?
ac1cb8d3
VS
24967 grep -v '^ *+' conftest.er1 >conftest.err
24968 rm -f conftest.er1
24969 cat conftest.err >&5
a848cd7e
SC
24970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24971 (exit $ac_status); } &&
bb9e79c0 24972 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24974 (eval $ac_try) 2>&5
24975 ac_status=$?
24976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24977 (exit $ac_status); }; } &&
24978 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24980 (eval $ac_try) 2>&5
24981 ac_status=$?
24982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24983 (exit $ac_status); }; }; then
24984
24985 wx_cv_lib_glibc21=yes
24986
24987else
24988 echo "$as_me: failed program was:" >&5
24989sed 's/^/| /' conftest.$ac_ext >&5
24990
24991
24992 wx_cv_lib_glibc21=no
24993
24994
24995fi
ac1cb8d3 24996rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24997
24998fi
24999echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
25000echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
25001 if test "$wx_cv_lib_glibc21" = "yes"; then
25002 cat >>confdefs.h <<\_ACEOF
25003#define wxHAVE_GLIBC2 1
25004_ACEOF
25005
25006 fi
25007fi
25008
25009if test "x$wx_cv_lib_glibc21" = "xyes"; then
25010 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
25011 cat >>confdefs.h <<\_ACEOF
25012#define _GNU_SOURCE 1
25013_ACEOF
25014
25015 fi
25016fi
25017
5d7b7554
VZ
25018have_cos=0
25019have_floor=0
a848cd7e 25020
5d7b7554
VZ
25021for ac_func in cos
25022do
25023as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25024echo "$as_me:$LINENO: checking for $ac_func" >&5
25025echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25026if eval "test \"\${$as_ac_var+set}\" = set"; then
a848cd7e 25027 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e 25028else
5d7b7554 25029 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
25030/* confdefs.h. */
25031_ACEOF
25032cat confdefs.h >>conftest.$ac_ext
25033cat >>conftest.$ac_ext <<_ACEOF
25034/* end confdefs.h. */
5d7b7554
VZ
25035/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25036 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25037#define $ac_func innocuous_$ac_func
25038
25039/* System header to define __stub macros and hopefully few prototypes,
25040 which can conflict with char $ac_func (); below.
25041 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25042 <limits.h> exists even on freestanding compilers. */
25043
25044#ifdef __STDC__
25045# include <limits.h>
25046#else
25047# include <assert.h>
25048#endif
25049
25050#undef $ac_func
25051
25052/* Override any gcc2 internal prototype to avoid an error. */
25053#ifdef __cplusplus
25054extern "C"
25055{
25056#endif
25057/* We use char because int might match the return type of a gcc2
25058 builtin and then its argument prototype would still apply. */
25059char $ac_func ();
25060/* The GNU C library defines this for functions which it implements
25061 to always fail with ENOSYS. Some functions are actually named
25062 something starting with __ and the normal name is an alias. */
25063#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25064choke me
25065#else
25066char (*f) () = $ac_func;
25067#endif
25068#ifdef __cplusplus
25069}
25070#endif
25071
25072int
25073main ()
25074{
25075return f != $ac_func;
25076 ;
25077 return 0;
25078}
a848cd7e 25079_ACEOF
5d7b7554
VZ
25080rm -f conftest.$ac_objext conftest$ac_exeext
25081if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25082 (eval $ac_link) 2>conftest.er1
a848cd7e 25083 ac_status=$?
ac1cb8d3
VS
25084 grep -v '^ *+' conftest.er1 >conftest.err
25085 rm -f conftest.er1
25086 cat conftest.err >&5
a848cd7e
SC
25087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25088 (exit $ac_status); } &&
bb9e79c0 25089 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25091 (eval $ac_try) 2>&5
25092 ac_status=$?
25093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25094 (exit $ac_status); }; } &&
5d7b7554 25095 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25097 (eval $ac_try) 2>&5
25098 ac_status=$?
25099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25100 (exit $ac_status); }; }; then
5d7b7554 25101 eval "$as_ac_var=yes"
a848cd7e
SC
25102else
25103 echo "$as_me: failed program was:" >&5
25104sed 's/^/| /' conftest.$ac_ext >&5
25105
5d7b7554 25106eval "$as_ac_var=no"
a848cd7e 25107fi
5d7b7554
VZ
25108rm -f conftest.err conftest.$ac_objext \
25109 conftest$ac_exeext conftest.$ac_ext
a848cd7e 25110fi
5d7b7554
VZ
25111echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25112echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25113if test `eval echo '${'$as_ac_var'}'` = yes; then
25114 cat >>confdefs.h <<_ACEOF
25115#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25116_ACEOF
25117 have_cos=1
a848cd7e 25118fi
5d7b7554 25119done
a848cd7e 25120
ab0f0edd 25121
5d7b7554 25122for ac_func in floor
a848cd7e
SC
25123do
25124as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25125echo "$as_me:$LINENO: checking for $ac_func" >&5
25126echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25127if eval "test \"\${$as_ac_var+set}\" = set"; then
25128 echo $ECHO_N "(cached) $ECHO_C" >&6
25129else
25130 cat >conftest.$ac_ext <<_ACEOF
25131/* confdefs.h. */
25132_ACEOF
25133cat confdefs.h >>conftest.$ac_ext
25134cat >>conftest.$ac_ext <<_ACEOF
25135/* end confdefs.h. */
ac1cb8d3
VS
25136/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25137 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25138#define $ac_func innocuous_$ac_func
25139
a848cd7e
SC
25140/* System header to define __stub macros and hopefully few prototypes,
25141 which can conflict with char $ac_func (); below.
25142 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25143 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 25144
a848cd7e
SC
25145#ifdef __STDC__
25146# include <limits.h>
25147#else
25148# include <assert.h>
25149#endif
ac1cb8d3
VS
25150
25151#undef $ac_func
25152
a848cd7e
SC
25153/* Override any gcc2 internal prototype to avoid an error. */
25154#ifdef __cplusplus
25155extern "C"
25156{
25157#endif
25158/* We use char because int might match the return type of a gcc2
25159 builtin and then its argument prototype would still apply. */
25160char $ac_func ();
25161/* The GNU C library defines this for functions which it implements
25162 to always fail with ENOSYS. Some functions are actually named
25163 something starting with __ and the normal name is an alias. */
25164#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25165choke me
25166#else
25167char (*f) () = $ac_func;
25168#endif
25169#ifdef __cplusplus
25170}
25171#endif
25172
25173int
25174main ()
25175{
25176return f != $ac_func;
25177 ;
25178 return 0;
25179}
25180_ACEOF
25181rm -f conftest.$ac_objext conftest$ac_exeext
25182if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25183 (eval $ac_link) 2>conftest.er1
a848cd7e 25184 ac_status=$?
ac1cb8d3
VS
25185 grep -v '^ *+' conftest.er1 >conftest.err
25186 rm -f conftest.er1
25187 cat conftest.err >&5
a848cd7e
SC
25188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25189 (exit $ac_status); } &&
bb9e79c0 25190 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5d7b7554
VZ
25191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25192 (eval $ac_try) 2>&5
25193 ac_status=$?
25194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25195 (exit $ac_status); }; } &&
25196 { ac_try='test -s 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 eval "$as_ac_var=yes"
25203else
25204 echo "$as_me: failed program was:" >&5
25205sed 's/^/| /' conftest.$ac_ext >&5
25206
25207eval "$as_ac_var=no"
25208fi
25209rm -f conftest.err conftest.$ac_objext \
25210 conftest$ac_exeext conftest.$ac_ext
25211fi
25212echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25213echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25214if test `eval echo '${'$as_ac_var'}'` = yes; then
25215 cat >>confdefs.h <<_ACEOF
25216#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25217_ACEOF
25218 have_floor=1
25219fi
25220done
25221
25222echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
25223echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
25224if test "$have_cos" = 1 -a "$have_floor" = 1; then
25225 echo "$as_me:$LINENO: result: yes" >&5
25226echo "${ECHO_T}yes" >&6
25227else
25228 echo "$as_me:$LINENO: result: no" >&5
25229echo "${ECHO_T}no" >&6
25230 LIBS="$LIBS -lm"
25231 # use different functions to avoid configure caching
25232 have_sin=0
25233 have_ceil=0
25234
25235for ac_func in sin
25236do
25237as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25238echo "$as_me:$LINENO: checking for $ac_func" >&5
25239echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25240if eval "test \"\${$as_ac_var+set}\" = set"; then
25241 echo $ECHO_N "(cached) $ECHO_C" >&6
25242else
25243 cat >conftest.$ac_ext <<_ACEOF
25244/* confdefs.h. */
25245_ACEOF
25246cat confdefs.h >>conftest.$ac_ext
25247cat >>conftest.$ac_ext <<_ACEOF
25248/* end confdefs.h. */
25249/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25250 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25251#define $ac_func innocuous_$ac_func
25252
25253/* System header to define __stub macros and hopefully few prototypes,
25254 which can conflict with char $ac_func (); below.
25255 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25256 <limits.h> exists even on freestanding compilers. */
25257
25258#ifdef __STDC__
25259# include <limits.h>
25260#else
25261# include <assert.h>
25262#endif
25263
25264#undef $ac_func
25265
25266/* Override any gcc2 internal prototype to avoid an error. */
25267#ifdef __cplusplus
25268extern "C"
25269{
25270#endif
25271/* We use char because int might match the return type of a gcc2
25272 builtin and then its argument prototype would still apply. */
25273char $ac_func ();
25274/* The GNU C library defines this for functions which it implements
25275 to always fail with ENOSYS. Some functions are actually named
25276 something starting with __ and the normal name is an alias. */
25277#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25278choke me
25279#else
25280char (*f) () = $ac_func;
25281#endif
25282#ifdef __cplusplus
25283}
25284#endif
25285
25286int
25287main ()
25288{
25289return f != $ac_func;
25290 ;
25291 return 0;
25292}
25293_ACEOF
25294rm -f conftest.$ac_objext conftest$ac_exeext
25295if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25296 (eval $ac_link) 2>conftest.er1
25297 ac_status=$?
25298 grep -v '^ *+' conftest.er1 >conftest.err
25299 rm -f conftest.er1
25300 cat conftest.err >&5
25301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25302 (exit $ac_status); } &&
bb9e79c0 25303 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5d7b7554
VZ
25304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25305 (eval $ac_try) 2>&5
25306 ac_status=$?
25307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25308 (exit $ac_status); }; } &&
25309 { ac_try='test -s conftest$ac_exeext'
25310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25311 (eval $ac_try) 2>&5
25312 ac_status=$?
25313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25314 (exit $ac_status); }; }; then
25315 eval "$as_ac_var=yes"
25316else
25317 echo "$as_me: failed program was:" >&5
25318sed 's/^/| /' conftest.$ac_ext >&5
25319
25320eval "$as_ac_var=no"
25321fi
25322rm -f conftest.err conftest.$ac_objext \
25323 conftest$ac_exeext conftest.$ac_ext
25324fi
25325echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25326echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25327if test `eval echo '${'$as_ac_var'}'` = yes; then
25328 cat >>confdefs.h <<_ACEOF
25329#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25330_ACEOF
25331 have_sin=1
25332fi
25333done
25334
25335
25336for ac_func in ceil
25337do
25338as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25339echo "$as_me:$LINENO: checking for $ac_func" >&5
25340echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25341if eval "test \"\${$as_ac_var+set}\" = set"; then
25342 echo $ECHO_N "(cached) $ECHO_C" >&6
25343else
25344 cat >conftest.$ac_ext <<_ACEOF
25345/* confdefs.h. */
25346_ACEOF
25347cat confdefs.h >>conftest.$ac_ext
25348cat >>conftest.$ac_ext <<_ACEOF
25349/* end confdefs.h. */
25350/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25351 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25352#define $ac_func innocuous_$ac_func
25353
25354/* System header to define __stub macros and hopefully few prototypes,
25355 which can conflict with char $ac_func (); below.
25356 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25357 <limits.h> exists even on freestanding compilers. */
25358
25359#ifdef __STDC__
25360# include <limits.h>
25361#else
25362# include <assert.h>
25363#endif
25364
25365#undef $ac_func
25366
25367/* Override any gcc2 internal prototype to avoid an error. */
25368#ifdef __cplusplus
25369extern "C"
25370{
25371#endif
25372/* We use char because int might match the return type of a gcc2
25373 builtin and then its argument prototype would still apply. */
25374char $ac_func ();
25375/* The GNU C library defines this for functions which it implements
25376 to always fail with ENOSYS. Some functions are actually named
25377 something starting with __ and the normal name is an alias. */
25378#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25379choke me
25380#else
25381char (*f) () = $ac_func;
25382#endif
25383#ifdef __cplusplus
25384}
25385#endif
25386
25387int
25388main ()
25389{
25390return f != $ac_func;
25391 ;
25392 return 0;
25393}
25394_ACEOF
25395rm -f conftest.$ac_objext conftest$ac_exeext
25396if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25397 (eval $ac_link) 2>conftest.er1
25398 ac_status=$?
25399 grep -v '^ *+' conftest.er1 >conftest.err
25400 rm -f conftest.er1
25401 cat conftest.err >&5
25402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25403 (exit $ac_status); } &&
bb9e79c0 25404 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5d7b7554
VZ
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); }; } &&
25410 { ac_try='test -s conftest$ac_exeext'
25411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25412 (eval $ac_try) 2>&5
25413 ac_status=$?
25414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25415 (exit $ac_status); }; }; then
25416 eval "$as_ac_var=yes"
25417else
25418 echo "$as_me: failed program was:" >&5
25419sed 's/^/| /' conftest.$ac_ext >&5
25420
25421eval "$as_ac_var=no"
25422fi
25423rm -f conftest.err conftest.$ac_objext \
25424 conftest$ac_exeext conftest.$ac_ext
25425fi
25426echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25427echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25428if test `eval echo '${'$as_ac_var'}'` = yes; then
25429 cat >>confdefs.h <<_ACEOF
25430#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25431_ACEOF
25432 have_ceil=1
25433fi
25434done
25435
25436 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
25437echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
25438 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
25439 echo "$as_me:$LINENO: result: yes" >&5
25440echo "${ECHO_T}yes" >&6
25441 else
25442 echo "$as_me:$LINENO: result: no" >&5
25443echo "${ECHO_T}no" >&6
25444 # not sure we should warn the user, crash, etc.
25445 fi
25446fi
25447
ec3edcc9
VZ
25448if test "wxUSE_UNICODE" = "yes"; then
25449
25450for ac_func in wcstoull
25451do
25452as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25453echo "$as_me:$LINENO: checking for $ac_func" >&5
25454echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25455if eval "test \"\${$as_ac_var+set}\" = set"; then
25456 echo $ECHO_N "(cached) $ECHO_C" >&6
25457else
25458 cat >conftest.$ac_ext <<_ACEOF
25459/* confdefs.h. */
25460_ACEOF
25461cat confdefs.h >>conftest.$ac_ext
25462cat >>conftest.$ac_ext <<_ACEOF
25463/* end confdefs.h. */
25464/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25465 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25466#define $ac_func innocuous_$ac_func
25467
25468/* System header to define __stub macros and hopefully few prototypes,
25469 which can conflict with char $ac_func (); below.
25470 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25471 <limits.h> exists even on freestanding compilers. */
25472
25473#ifdef __STDC__
25474# include <limits.h>
25475#else
25476# include <assert.h>
25477#endif
25478
25479#undef $ac_func
25480
25481/* Override any gcc2 internal prototype to avoid an error. */
25482#ifdef __cplusplus
25483extern "C"
25484{
25485#endif
25486/* We use char because int might match the return type of a gcc2
25487 builtin and then its argument prototype would still apply. */
25488char $ac_func ();
25489/* The GNU C library defines this for functions which it implements
25490 to always fail with ENOSYS. Some functions are actually named
25491 something starting with __ and the normal name is an alias. */
25492#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25493choke me
25494#else
25495char (*f) () = $ac_func;
25496#endif
25497#ifdef __cplusplus
25498}
25499#endif
25500
25501int
25502main ()
25503{
25504return f != $ac_func;
25505 ;
25506 return 0;
25507}
25508_ACEOF
25509rm -f conftest.$ac_objext conftest$ac_exeext
25510if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25511 (eval $ac_link) 2>conftest.er1
25512 ac_status=$?
25513 grep -v '^ *+' conftest.er1 >conftest.err
25514 rm -f conftest.er1
25515 cat conftest.err >&5
25516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25517 (exit $ac_status); } &&
bb9e79c0 25518 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ec3edcc9
VZ
25519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25520 (eval $ac_try) 2>&5
25521 ac_status=$?
25522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25523 (exit $ac_status); }; } &&
25524 { ac_try='test -s conftest$ac_exeext'
25525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25526 (eval $ac_try) 2>&5
25527 ac_status=$?
25528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25529 (exit $ac_status); }; }; then
25530 eval "$as_ac_var=yes"
25531else
25532 echo "$as_me: failed program was:" >&5
25533sed 's/^/| /' conftest.$ac_ext >&5
25534
25535eval "$as_ac_var=no"
25536fi
25537rm -f conftest.err conftest.$ac_objext \
25538 conftest$ac_exeext conftest.$ac_ext
25539fi
25540echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25541echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25542if test `eval echo '${'$as_ac_var'}'` = yes; then
25543 cat >>confdefs.h <<_ACEOF
25544#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25545_ACEOF
25546
25547fi
25548done
25549
25550else
25551
25552for ac_func in strtoull
25553do
25554as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25555echo "$as_me:$LINENO: checking for $ac_func" >&5
25556echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25557if eval "test \"\${$as_ac_var+set}\" = set"; then
25558 echo $ECHO_N "(cached) $ECHO_C" >&6
25559else
25560 cat >conftest.$ac_ext <<_ACEOF
25561/* confdefs.h. */
25562_ACEOF
25563cat confdefs.h >>conftest.$ac_ext
25564cat >>conftest.$ac_ext <<_ACEOF
25565/* end confdefs.h. */
25566/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25567 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25568#define $ac_func innocuous_$ac_func
25569
25570/* System header to define __stub macros and hopefully few prototypes,
25571 which can conflict with char $ac_func (); below.
25572 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25573 <limits.h> exists even on freestanding compilers. */
25574
25575#ifdef __STDC__
25576# include <limits.h>
25577#else
25578# include <assert.h>
25579#endif
25580
25581#undef $ac_func
25582
25583/* Override any gcc2 internal prototype to avoid an error. */
25584#ifdef __cplusplus
25585extern "C"
25586{
25587#endif
25588/* We use char because int might match the return type of a gcc2
25589 builtin and then its argument prototype would still apply. */
25590char $ac_func ();
25591/* The GNU C library defines this for functions which it implements
25592 to always fail with ENOSYS. Some functions are actually named
25593 something starting with __ and the normal name is an alias. */
25594#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25595choke me
25596#else
25597char (*f) () = $ac_func;
25598#endif
25599#ifdef __cplusplus
25600}
25601#endif
25602
25603int
25604main ()
25605{
25606return f != $ac_func;
25607 ;
25608 return 0;
25609}
25610_ACEOF
25611rm -f conftest.$ac_objext conftest$ac_exeext
25612if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25613 (eval $ac_link) 2>conftest.er1
25614 ac_status=$?
25615 grep -v '^ *+' conftest.er1 >conftest.err
25616 rm -f conftest.er1
25617 cat conftest.err >&5
25618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25619 (exit $ac_status); } &&
bb9e79c0 25620 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ec3edcc9
VZ
25621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25622 (eval $ac_try) 2>&5
25623 ac_status=$?
25624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25625 (exit $ac_status); }; } &&
25626 { ac_try='test -s conftest$ac_exeext'
25627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25628 (eval $ac_try) 2>&5
25629 ac_status=$?
25630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25631 (exit $ac_status); }; }; then
25632 eval "$as_ac_var=yes"
25633else
25634 echo "$as_me: failed program was:" >&5
25635sed 's/^/| /' conftest.$ac_ext >&5
25636
25637eval "$as_ac_var=no"
25638fi
25639rm -f conftest.err conftest.$ac_objext \
25640 conftest$ac_exeext conftest.$ac_ext
25641fi
25642echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25643echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25644if test `eval echo '${'$as_ac_var'}'` = yes; then
25645 cat >>confdefs.h <<_ACEOF
25646#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25647_ACEOF
25648
25649fi
25650done
25651
25652fi
25653
5d7b7554
VZ
25654
25655
25656if test "$wxUSE_REGEX" != "no"; then
25657 cat >>confdefs.h <<\_ACEOF
25658#define wxUSE_REGEX 1
25659_ACEOF
25660
25661
25662 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
25663 { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
25664echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
25665 wxUSE_REGEX=builtin
25666 fi
25667
25668 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
25669 if test "${ac_cv_header_regex_h+set}" = set; then
25670 echo "$as_me:$LINENO: checking for regex.h" >&5
25671echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
25672if test "${ac_cv_header_regex_h+set}" = set; then
25673 echo $ECHO_N "(cached) $ECHO_C" >&6
25674fi
25675echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
25676echo "${ECHO_T}$ac_cv_header_regex_h" >&6
25677else
25678 # Is the header compilable?
25679echo "$as_me:$LINENO: checking regex.h usability" >&5
25680echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
25681cat >conftest.$ac_ext <<_ACEOF
25682/* confdefs.h. */
25683_ACEOF
25684cat confdefs.h >>conftest.$ac_ext
25685cat >>conftest.$ac_ext <<_ACEOF
25686/* end confdefs.h. */
25687$ac_includes_default
25688#include <regex.h>
25689_ACEOF
25690rm -f conftest.$ac_objext
25691if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25692 (eval $ac_compile) 2>conftest.er1
25693 ac_status=$?
25694 grep -v '^ *+' conftest.er1 >conftest.err
25695 rm -f conftest.er1
25696 cat conftest.err >&5
25697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25698 (exit $ac_status); } &&
bb9e79c0 25699 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5d7b7554
VZ
25700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25701 (eval $ac_try) 2>&5
25702 ac_status=$?
25703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25704 (exit $ac_status); }; } &&
25705 { ac_try='test -s conftest.$ac_objext'
25706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25707 (eval $ac_try) 2>&5
25708 ac_status=$?
25709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25710 (exit $ac_status); }; }; then
25711 ac_header_compiler=yes
25712else
25713 echo "$as_me: failed program was:" >&5
25714sed 's/^/| /' conftest.$ac_ext >&5
25715
25716ac_header_compiler=no
25717fi
25718rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25719echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25720echo "${ECHO_T}$ac_header_compiler" >&6
25721
25722# Is the header present?
25723echo "$as_me:$LINENO: checking regex.h presence" >&5
25724echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
25725cat >conftest.$ac_ext <<_ACEOF
25726/* confdefs.h. */
25727_ACEOF
25728cat confdefs.h >>conftest.$ac_ext
25729cat >>conftest.$ac_ext <<_ACEOF
25730/* end confdefs.h. */
25731#include <regex.h>
25732_ACEOF
25733if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25734 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25735 ac_status=$?
25736 grep -v '^ *+' conftest.er1 >conftest.err
25737 rm -f conftest.er1
25738 cat conftest.err >&5
25739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25740 (exit $ac_status); } >/dev/null; then
25741 if test -s conftest.err; then
25742 ac_cpp_err=$ac_cxx_preproc_warn_flag
25743 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
25744 else
25745 ac_cpp_err=
25746 fi
25747else
25748 ac_cpp_err=yes
25749fi
25750if test -z "$ac_cpp_err"; then
25751 ac_header_preproc=yes
25752else
25753 echo "$as_me: failed program was:" >&5
25754sed 's/^/| /' conftest.$ac_ext >&5
25755
25756 ac_header_preproc=no
25757fi
25758rm -f conftest.err conftest.$ac_ext
25759echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25760echo "${ECHO_T}$ac_header_preproc" >&6
25761
25762# So? What about this header?
25763case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
25764 yes:no: )
25765 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
25766echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25767 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
25768echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
25769 ac_header_preproc=yes
25770 ;;
25771 no:yes:* )
25772 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
25773echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
25774 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
25775echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
25776 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
25777echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
25778 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
25779echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
25780 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
25781echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
25782 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
25783echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
25784 (
25785 cat <<\_ASBOX
25786## ----------------------------------------- ##
25787## Report this to wx-dev@lists.wxwidgets.org ##
25788## ----------------------------------------- ##
25789_ASBOX
25790 ) |
25791 sed "s/^/$as_me: WARNING: /" >&2
25792 ;;
25793esac
25794echo "$as_me:$LINENO: checking for regex.h" >&5
25795echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
25796if test "${ac_cv_header_regex_h+set}" = set; then
25797 echo $ECHO_N "(cached) $ECHO_C" >&6
25798else
25799 ac_cv_header_regex_h=$ac_header_preproc
25800fi
25801echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
25802echo "${ECHO_T}$ac_cv_header_regex_h" >&6
25803
25804fi
25805if test $ac_cv_header_regex_h = yes; then
25806
25807
25808for ac_func in regcomp re_search
25809do
25810as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25811echo "$as_me:$LINENO: checking for $ac_func" >&5
25812echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25813if eval "test \"\${$as_ac_var+set}\" = set"; then
25814 echo $ECHO_N "(cached) $ECHO_C" >&6
25815else
25816 cat >conftest.$ac_ext <<_ACEOF
25817/* confdefs.h. */
25818_ACEOF
25819cat confdefs.h >>conftest.$ac_ext
25820cat >>conftest.$ac_ext <<_ACEOF
25821/* end confdefs.h. */
25822/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25823 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25824#define $ac_func innocuous_$ac_func
25825
25826/* System header to define __stub macros and hopefully few prototypes,
25827 which can conflict with char $ac_func (); below.
25828 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25829 <limits.h> exists even on freestanding compilers. */
25830
25831#ifdef __STDC__
25832# include <limits.h>
25833#else
25834# include <assert.h>
25835#endif
25836
25837#undef $ac_func
25838
25839/* Override any gcc2 internal prototype to avoid an error. */
25840#ifdef __cplusplus
25841extern "C"
25842{
25843#endif
25844/* We use char because int might match the return type of a gcc2
25845 builtin and then its argument prototype would still apply. */
25846char $ac_func ();
25847/* The GNU C library defines this for functions which it implements
25848 to always fail with ENOSYS. Some functions are actually named
25849 something starting with __ and the normal name is an alias. */
25850#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25851choke me
25852#else
25853char (*f) () = $ac_func;
25854#endif
25855#ifdef __cplusplus
25856}
25857#endif
25858
25859int
25860main ()
25861{
25862return f != $ac_func;
25863 ;
25864 return 0;
25865}
25866_ACEOF
25867rm -f conftest.$ac_objext conftest$ac_exeext
25868if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25869 (eval $ac_link) 2>conftest.er1
25870 ac_status=$?
25871 grep -v '^ *+' conftest.er1 >conftest.err
25872 rm -f conftest.er1
25873 cat conftest.err >&5
25874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25875 (exit $ac_status); } &&
bb9e79c0 25876 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25878 (eval $ac_try) 2>&5
25879 ac_status=$?
25880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25881 (exit $ac_status); }; } &&
25882 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25884 (eval $ac_try) 2>&5
25885 ac_status=$?
25886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25887 (exit $ac_status); }; }; then
25888 eval "$as_ac_var=yes"
25889else
25890 echo "$as_me: failed program was:" >&5
25891sed 's/^/| /' conftest.$ac_ext >&5
25892
25893eval "$as_ac_var=no"
25894fi
ac1cb8d3
VS
25895rm -f conftest.err conftest.$ac_objext \
25896 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25897fi
25898echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25899echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25900if test `eval echo '${'$as_ac_var'}'` = yes; then
25901 cat >>confdefs.h <<_ACEOF
25902#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25903_ACEOF
25904
25905fi
25906done
25907
25908fi
25909
25910
25911
25912 if test "x$ac_cv_func_regcomp" != "xyes"; then
25913 if test "$wxUSE_REGEX" = "sys" ; then
25914 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
25915echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
25916 { (exit 1); exit 1; }; }
25917 else
25918 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
25919echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
25920 wxUSE_REGEX=builtin
25921 fi
25922 else
25923 wxUSE_REGEX=sys
25924 cat >>confdefs.h <<\_ACEOF
25925#define WX_NO_REGEX_ADVANCED 1
25926_ACEOF
25927
25928 fi
25929 fi
25930fi
25931
25932
25933ZLIB_LINK=
25934if test "$wxUSE_ZLIB" != "no" ; then
25935 cat >>confdefs.h <<\_ACEOF
25936#define wxUSE_ZLIB 1
25937_ACEOF
25938
25939
25940 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
25941 if test "$USE_DARWIN" = 1; then
25942 system_zlib_h_ok="yes"
25943 else
25944 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
25945echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
25946if test "${ac_cv_header_zlib_h+set}" = set; then
25947 echo $ECHO_N "(cached) $ECHO_C" >&6
25948else
25949 if test "$cross_compiling" = yes; then
25950 unset ac_cv_header_zlib_h
25951
25952else
25953 cat >conftest.$ac_ext <<_ACEOF
25954/* confdefs.h. */
25955_ACEOF
25956cat confdefs.h >>conftest.$ac_ext
25957cat >>conftest.$ac_ext <<_ACEOF
25958/* end confdefs.h. */
25959
25960 #include <zlib.h>
25961 #include <stdio.h>
25962
25963 int main()
25964 {
25965 FILE *f=fopen("conftestval", "w");
25966 if (!f) exit(1);
25967 fprintf(f, "%s",
25968 ZLIB_VERSION[0] == '1' &&
25969 (ZLIB_VERSION[2] > '1' ||
25970 (ZLIB_VERSION[2] == '1' &&
25971 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
25972 exit(0);
25973 }
25974
25975_ACEOF
25976rm -f conftest$ac_exeext
25977if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25978 (eval $ac_link) 2>&5
25979 ac_status=$?
25980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25981 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25983 (eval $ac_try) 2>&5
25984 ac_status=$?
25985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25986 (exit $ac_status); }; }; then
25987 ac_cv_header_zlib_h=`cat conftestval`
25988else
25989 echo "$as_me: program exited with status $ac_status" >&5
25990echo "$as_me: failed program was:" >&5
25991sed 's/^/| /' conftest.$ac_ext >&5
25992
25993( exit $ac_status )
25994ac_cv_header_zlib_h=no
25995fi
ac1cb8d3 25996rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25997fi
25998
25999fi
26000echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
26001echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
26002 if test "${ac_cv_header_zlib_h+set}" = set; then
26003 echo "$as_me:$LINENO: checking for zlib.h" >&5
26004echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
26005if test "${ac_cv_header_zlib_h+set}" = set; then
26006 echo $ECHO_N "(cached) $ECHO_C" >&6
26007fi
26008echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
26009echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
26010else
26011 # Is the header compilable?
26012echo "$as_me:$LINENO: checking zlib.h usability" >&5
26013echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
26014cat >conftest.$ac_ext <<_ACEOF
26015/* confdefs.h. */
26016_ACEOF
26017cat confdefs.h >>conftest.$ac_ext
26018cat >>conftest.$ac_ext <<_ACEOF
26019/* end confdefs.h. */
26020$ac_includes_default
26021#include <zlib.h>
26022_ACEOF
26023rm -f conftest.$ac_objext
26024if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26025 (eval $ac_compile) 2>conftest.er1
a848cd7e 26026 ac_status=$?
ac1cb8d3
VS
26027 grep -v '^ *+' conftest.er1 >conftest.err
26028 rm -f conftest.er1
26029 cat conftest.err >&5
a848cd7e
SC
26030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26031 (exit $ac_status); } &&
bb9e79c0 26032 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26034 (eval $ac_try) 2>&5
26035 ac_status=$?
26036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26037 (exit $ac_status); }; } &&
26038 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26040 (eval $ac_try) 2>&5
26041 ac_status=$?
26042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26043 (exit $ac_status); }; }; then
26044 ac_header_compiler=yes
26045else
26046 echo "$as_me: failed program was:" >&5
26047sed 's/^/| /' conftest.$ac_ext >&5
26048
26049ac_header_compiler=no
26050fi
ac1cb8d3 26051rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26052echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26053echo "${ECHO_T}$ac_header_compiler" >&6
26054
26055# Is the header present?
26056echo "$as_me:$LINENO: checking zlib.h presence" >&5
26057echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
26058cat >conftest.$ac_ext <<_ACEOF
26059/* confdefs.h. */
26060_ACEOF
26061cat confdefs.h >>conftest.$ac_ext
26062cat >>conftest.$ac_ext <<_ACEOF
26063/* end confdefs.h. */
26064#include <zlib.h>
26065_ACEOF
26066if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26067 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26068 ac_status=$?
26069 grep -v '^ *+' conftest.er1 >conftest.err
26070 rm -f conftest.er1
26071 cat conftest.err >&5
26072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26073 (exit $ac_status); } >/dev/null; then
26074 if test -s conftest.err; then
5d7b7554
VZ
26075 ac_cpp_err=$ac_cxx_preproc_warn_flag
26076 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
26077 else
26078 ac_cpp_err=
26079 fi
26080else
26081 ac_cpp_err=yes
26082fi
26083if test -z "$ac_cpp_err"; then
26084 ac_header_preproc=yes
26085else
26086 echo "$as_me: failed program was:" >&5
26087sed 's/^/| /' conftest.$ac_ext >&5
26088
26089 ac_header_preproc=no
26090fi
26091rm -f conftest.err conftest.$ac_ext
26092echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26093echo "${ECHO_T}$ac_header_preproc" >&6
26094
26095# So? What about this header?
5d7b7554 26096case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 26097 yes:no: )
a848cd7e
SC
26098 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
26099echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
26100 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
26101echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
26102 ac_header_preproc=yes
a848cd7e 26103 ;;
ac1cb8d3 26104 no:yes:* )
a848cd7e
SC
26105 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
26106echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
26107 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
26108echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
26109 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
26110echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
26111 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
26112echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
26113 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
26114echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
26115 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
26116echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
26117 (
26118 cat <<\_ASBOX
ac1cb8d3
VS
26119## ----------------------------------------- ##
26120## Report this to wx-dev@lists.wxwidgets.org ##
26121## ----------------------------------------- ##
a848cd7e
SC
26122_ASBOX
26123 ) |
26124 sed "s/^/$as_me: WARNING: /" >&2
26125 ;;
26126esac
26127echo "$as_me:$LINENO: checking for zlib.h" >&5
26128echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
26129if test "${ac_cv_header_zlib_h+set}" = set; then
26130 echo $ECHO_N "(cached) $ECHO_C" >&6
26131else
26132 ac_cv_header_zlib_h=$ac_header_preproc
26133fi
26134echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
26135echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
26136
26137fi
26138
26139
26140
26141 system_zlib_h_ok=$ac_cv_header_zlib_h
26142 fi
26143
26144 if test "$system_zlib_h_ok" = "yes"; then
26145 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
26146echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
26147if test "${ac_cv_lib_z_deflate+set}" = set; then
26148 echo $ECHO_N "(cached) $ECHO_C" >&6
26149else
26150 ac_check_lib_save_LIBS=$LIBS
26151LIBS="-lz $LIBS"
26152cat >conftest.$ac_ext <<_ACEOF
26153/* confdefs.h. */
26154_ACEOF
26155cat confdefs.h >>conftest.$ac_ext
26156cat >>conftest.$ac_ext <<_ACEOF
26157/* end confdefs.h. */
26158
26159/* Override any gcc2 internal prototype to avoid an error. */
26160#ifdef __cplusplus
26161extern "C"
26162#endif
26163/* We use char because int might match the return type of a gcc2
26164 builtin and then its argument prototype would still apply. */
26165char deflate ();
26166int
26167main ()
26168{
26169deflate ();
26170 ;
26171 return 0;
26172}
26173_ACEOF
26174rm -f conftest.$ac_objext conftest$ac_exeext
26175if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26176 (eval $ac_link) 2>conftest.er1
a848cd7e 26177 ac_status=$?
ac1cb8d3
VS
26178 grep -v '^ *+' conftest.er1 >conftest.err
26179 rm -f conftest.er1
26180 cat conftest.err >&5
a848cd7e
SC
26181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26182 (exit $ac_status); } &&
bb9e79c0 26183 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26185 (eval $ac_try) 2>&5
26186 ac_status=$?
26187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26188 (exit $ac_status); }; } &&
26189 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26191 (eval $ac_try) 2>&5
26192 ac_status=$?
26193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26194 (exit $ac_status); }; }; then
26195 ac_cv_lib_z_deflate=yes
26196else
26197 echo "$as_me: failed program was:" >&5
26198sed 's/^/| /' conftest.$ac_ext >&5
26199
26200ac_cv_lib_z_deflate=no
26201fi
ac1cb8d3
VS
26202rm -f conftest.err conftest.$ac_objext \
26203 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26204LIBS=$ac_check_lib_save_LIBS
26205fi
26206echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
26207echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
26208if test $ac_cv_lib_z_deflate = yes; then
26209 ZLIB_LINK=" -lz"
26210fi
26211
26212 fi
26213
26214 if test "x$ZLIB_LINK" = "x" ; then
26215 if test "$wxUSE_ZLIB" = "sys" ; then
26216 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
26217echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
26218 { (exit 1); exit 1; }; }
26219 else
26220 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
26221echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
26222 wxUSE_ZLIB=builtin
26223 fi
26224 else
26225 wxUSE_ZLIB=sys
26226 fi
26227 fi
26228fi
26229
26230
26231PNG_LINK=
26232if test "$wxUSE_LIBPNG" != "no" ; then
26233 cat >>confdefs.h <<\_ACEOF
26234#define wxUSE_LIBPNG 1
26235_ACEOF
26236
26237
26238 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
26239 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
26240echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
26241 wxUSE_LIBPNG=sys
26242 fi
26243
26244 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
26245 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
26246echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
26247 wxUSE_LIBPNG=builtin
26248 fi
26249
26250 if test "$wxUSE_MGL" != 1 ; then
26251 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
26252 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
26253echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
26254if test "${ac_cv_header_png_h+set}" = set; then
26255 echo $ECHO_N "(cached) $ECHO_C" >&6
26256else
26257 if test "$cross_compiling" = yes; then
26258 unset ac_cv_header_png_h
26259
26260else
26261 cat >conftest.$ac_ext <<_ACEOF
26262/* confdefs.h. */
26263_ACEOF
26264cat confdefs.h >>conftest.$ac_ext
26265cat >>conftest.$ac_ext <<_ACEOF
26266/* end confdefs.h. */
26267
26268 #include <png.h>
26269 #include <stdio.h>
26270
26271 int main()
26272 {
26273 FILE *f=fopen("conftestval", "w");
26274 if (!f) exit(1);
26275 fprintf(f, "%s",
26276 PNG_LIBPNG_VER > 90 ? "yes" : "no");
26277 exit(0);
26278 }
26279
26280_ACEOF
26281rm -f conftest$ac_exeext
26282if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26283 (eval $ac_link) 2>&5
26284 ac_status=$?
26285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26286 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26288 (eval $ac_try) 2>&5
26289 ac_status=$?
26290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26291 (exit $ac_status); }; }; then
26292 ac_cv_header_png_h=`cat conftestval`
26293else
26294 echo "$as_me: program exited with status $ac_status" >&5
26295echo "$as_me: failed program was:" >&5
26296sed 's/^/| /' conftest.$ac_ext >&5
26297
26298( exit $ac_status )
26299ac_cv_header_png_h=no
26300fi
ac1cb8d3 26301rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26302fi
26303
26304fi
26305echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
26306echo "${ECHO_T}$ac_cv_header_png_h" >&6
26307 if test "${ac_cv_header_png_h+set}" = set; then
26308 echo "$as_me:$LINENO: checking for png.h" >&5
26309echo $ECHO_N "checking for png.h... $ECHO_C" >&6
26310if test "${ac_cv_header_png_h+set}" = set; then
26311 echo $ECHO_N "(cached) $ECHO_C" >&6
26312fi
26313echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
26314echo "${ECHO_T}$ac_cv_header_png_h" >&6
26315else
26316 # Is the header compilable?
26317echo "$as_me:$LINENO: checking png.h usability" >&5
26318echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
26319cat >conftest.$ac_ext <<_ACEOF
26320/* confdefs.h. */
26321_ACEOF
26322cat confdefs.h >>conftest.$ac_ext
26323cat >>conftest.$ac_ext <<_ACEOF
26324/* end confdefs.h. */
26325$ac_includes_default
26326#include <png.h>
26327_ACEOF
26328rm -f conftest.$ac_objext
26329if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26330 (eval $ac_compile) 2>conftest.er1
a848cd7e 26331 ac_status=$?
ac1cb8d3
VS
26332 grep -v '^ *+' conftest.er1 >conftest.err
26333 rm -f conftest.er1
26334 cat conftest.err >&5
a848cd7e
SC
26335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26336 (exit $ac_status); } &&
bb9e79c0 26337 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26339 (eval $ac_try) 2>&5
26340 ac_status=$?
26341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26342 (exit $ac_status); }; } &&
26343 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26345 (eval $ac_try) 2>&5
26346 ac_status=$?
26347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26348 (exit $ac_status); }; }; then
26349 ac_header_compiler=yes
26350else
26351 echo "$as_me: failed program was:" >&5
26352sed 's/^/| /' conftest.$ac_ext >&5
26353
26354ac_header_compiler=no
26355fi
ac1cb8d3 26356rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26357echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26358echo "${ECHO_T}$ac_header_compiler" >&6
26359
26360# Is the header present?
26361echo "$as_me:$LINENO: checking png.h presence" >&5
26362echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
26363cat >conftest.$ac_ext <<_ACEOF
26364/* confdefs.h. */
26365_ACEOF
26366cat confdefs.h >>conftest.$ac_ext
26367cat >>conftest.$ac_ext <<_ACEOF
26368/* end confdefs.h. */
26369#include <png.h>
26370_ACEOF
26371if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26372 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26373 ac_status=$?
26374 grep -v '^ *+' conftest.er1 >conftest.err
26375 rm -f conftest.er1
26376 cat conftest.err >&5
26377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26378 (exit $ac_status); } >/dev/null; then
26379 if test -s conftest.err; then
5d7b7554
VZ
26380 ac_cpp_err=$ac_cxx_preproc_warn_flag
26381 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
26382 else
26383 ac_cpp_err=
26384 fi
26385else
26386 ac_cpp_err=yes
26387fi
26388if test -z "$ac_cpp_err"; then
26389 ac_header_preproc=yes
26390else
26391 echo "$as_me: failed program was:" >&5
26392sed 's/^/| /' conftest.$ac_ext >&5
26393
26394 ac_header_preproc=no
26395fi
26396rm -f conftest.err conftest.$ac_ext
26397echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26398echo "${ECHO_T}$ac_header_preproc" >&6
26399
26400# So? What about this header?
5d7b7554 26401case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 26402 yes:no: )
a848cd7e
SC
26403 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
26404echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
26405 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
26406echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
26407 ac_header_preproc=yes
a848cd7e 26408 ;;
ac1cb8d3 26409 no:yes:* )
a848cd7e
SC
26410 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
26411echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
26412 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
26413echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
26414 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
26415echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
26416 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
26417echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
26418 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
26419echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
26420 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
26421echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
26422 (
26423 cat <<\_ASBOX
ac1cb8d3
VS
26424## ----------------------------------------- ##
26425## Report this to wx-dev@lists.wxwidgets.org ##
26426## ----------------------------------------- ##
a848cd7e
SC
26427_ASBOX
26428 ) |
26429 sed "s/^/$as_me: WARNING: /" >&2
26430 ;;
26431esac
26432echo "$as_me:$LINENO: checking for png.h" >&5
26433echo $ECHO_N "checking for png.h... $ECHO_C" >&6
26434if test "${ac_cv_header_png_h+set}" = set; then
26435 echo $ECHO_N "(cached) $ECHO_C" >&6
26436else
26437 ac_cv_header_png_h=$ac_header_preproc
26438fi
26439echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
26440echo "${ECHO_T}$ac_cv_header_png_h" >&6
26441
26442fi
26443
26444
26445
26446 if test "$ac_cv_header_png_h" = "yes"; then
26447 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
26448echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
26449if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
26450 echo $ECHO_N "(cached) $ECHO_C" >&6
26451else
26452 ac_check_lib_save_LIBS=$LIBS
26453LIBS="-lpng -lz -lm $LIBS"
26454cat >conftest.$ac_ext <<_ACEOF
26455/* confdefs.h. */
26456_ACEOF
26457cat confdefs.h >>conftest.$ac_ext
26458cat >>conftest.$ac_ext <<_ACEOF
26459/* end confdefs.h. */
26460
26461/* Override any gcc2 internal prototype to avoid an error. */
26462#ifdef __cplusplus
26463extern "C"
26464#endif
26465/* We use char because int might match the return type of a gcc2
26466 builtin and then its argument prototype would still apply. */
26467char png_check_sig ();
26468int
26469main ()
26470{
26471png_check_sig ();
26472 ;
26473 return 0;
26474}
26475_ACEOF
26476rm -f conftest.$ac_objext conftest$ac_exeext
26477if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26478 (eval $ac_link) 2>conftest.er1
a848cd7e 26479 ac_status=$?
ac1cb8d3
VS
26480 grep -v '^ *+' conftest.er1 >conftest.err
26481 rm -f conftest.er1
26482 cat conftest.err >&5
a848cd7e
SC
26483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26484 (exit $ac_status); } &&
bb9e79c0 26485 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26487 (eval $ac_try) 2>&5
26488 ac_status=$?
26489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26490 (exit $ac_status); }; } &&
26491 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26493 (eval $ac_try) 2>&5
26494 ac_status=$?
26495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26496 (exit $ac_status); }; }; then
26497 ac_cv_lib_png_png_check_sig=yes
26498else
26499 echo "$as_me: failed program was:" >&5
26500sed 's/^/| /' conftest.$ac_ext >&5
26501
26502ac_cv_lib_png_png_check_sig=no
26503fi
ac1cb8d3
VS
26504rm -f conftest.err conftest.$ac_objext \
26505 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26506LIBS=$ac_check_lib_save_LIBS
26507fi
26508echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
26509echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
26510if test $ac_cv_lib_png_png_check_sig = yes; then
26511 PNG_LINK=" -lpng -lz"
26512fi
26513
26514 fi
26515
26516 if test "x$PNG_LINK" = "x" ; then
26517 if test "$wxUSE_LIBPNG" = "sys" ; then
26518 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
26519echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
26520 { (exit 1); exit 1; }; }
26521 else
26522 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
26523echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
26524 wxUSE_LIBPNG=builtin
26525 fi
26526 else
26527 wxUSE_LIBPNG=sys
26528 fi
26529 fi
26530 fi
26531
26532 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
26533fi
26534
26535
26536JPEG_LINK=
26537if test "$wxUSE_LIBJPEG" != "no" ; then
26538 cat >>confdefs.h <<\_ACEOF
26539#define wxUSE_LIBJPEG 1
26540_ACEOF
26541
26542
26543 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
26544 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
26545echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
26546 wxUSE_LIBJPEG=sys
26547 fi
26548
26549 if test "$wxUSE_MGL" != 1 ; then
26550 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
26551 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
26552echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
26553 if test "${ac_cv_header_jpeglib_h+set}" = set; then
26554 echo $ECHO_N "(cached) $ECHO_C" >&6
26555else
26556 cat >conftest.$ac_ext <<_ACEOF
26557/* confdefs.h. */
26558_ACEOF
26559cat confdefs.h >>conftest.$ac_ext
26560cat >>conftest.$ac_ext <<_ACEOF
26561/* end confdefs.h. */
26562
26563 #undef HAVE_STDLIB_H
26564 #include <stdio.h>
26565 #include <jpeglib.h>
26566
26567int
26568main ()
26569{
26570
26571
26572 ;
26573 return 0;
26574}
26575_ACEOF
26576rm -f conftest.$ac_objext
26577if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26578 (eval $ac_compile) 2>conftest.er1
a848cd7e 26579 ac_status=$?
ac1cb8d3
VS
26580 grep -v '^ *+' conftest.er1 >conftest.err
26581 rm -f conftest.er1
26582 cat conftest.err >&5
a848cd7e
SC
26583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26584 (exit $ac_status); } &&
bb9e79c0 26585 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26587 (eval $ac_try) 2>&5
26588 ac_status=$?
26589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26590 (exit $ac_status); }; } &&
26591 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26593 (eval $ac_try) 2>&5
26594 ac_status=$?
26595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26596 (exit $ac_status); }; }; then
26597 ac_cv_header_jpeglib_h=yes
26598else
26599 echo "$as_me: failed program was:" >&5
26600sed 's/^/| /' conftest.$ac_ext >&5
26601
26602ac_cv_header_jpeglib_h=no
26603
26604fi
ac1cb8d3 26605rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26606
26607fi
26608
26609 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
26610echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
26611
26612 if test "$ac_cv_header_jpeglib_h" = "yes"; then
26613 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
26614echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
26615if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
26616 echo $ECHO_N "(cached) $ECHO_C" >&6
26617else
26618 ac_check_lib_save_LIBS=$LIBS
26619LIBS="-ljpeg $LIBS"
26620cat >conftest.$ac_ext <<_ACEOF
26621/* confdefs.h. */
26622_ACEOF
26623cat confdefs.h >>conftest.$ac_ext
26624cat >>conftest.$ac_ext <<_ACEOF
26625/* end confdefs.h. */
26626
26627/* Override any gcc2 internal prototype to avoid an error. */
26628#ifdef __cplusplus
26629extern "C"
26630#endif
26631/* We use char because int might match the return type of a gcc2
26632 builtin and then its argument prototype would still apply. */
26633char jpeg_read_header ();
26634int
26635main ()
26636{
26637jpeg_read_header ();
26638 ;
26639 return 0;
26640}
26641_ACEOF
26642rm -f conftest.$ac_objext conftest$ac_exeext
26643if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26644 (eval $ac_link) 2>conftest.er1
a848cd7e 26645 ac_status=$?
ac1cb8d3
VS
26646 grep -v '^ *+' conftest.er1 >conftest.err
26647 rm -f conftest.er1
26648 cat conftest.err >&5
a848cd7e
SC
26649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26650 (exit $ac_status); } &&
bb9e79c0 26651 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26653 (eval $ac_try) 2>&5
26654 ac_status=$?
26655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26656 (exit $ac_status); }; } &&
26657 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26659 (eval $ac_try) 2>&5
26660 ac_status=$?
26661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26662 (exit $ac_status); }; }; then
26663 ac_cv_lib_jpeg_jpeg_read_header=yes
26664else
26665 echo "$as_me: failed program was:" >&5
26666sed 's/^/| /' conftest.$ac_ext >&5
26667
26668ac_cv_lib_jpeg_jpeg_read_header=no
26669fi
ac1cb8d3
VS
26670rm -f conftest.err conftest.$ac_objext \
26671 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26672LIBS=$ac_check_lib_save_LIBS
26673fi
26674echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
26675echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
26676if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
26677 JPEG_LINK=" -ljpeg"
26678fi
26679
26680 fi
26681
26682 if test "x$JPEG_LINK" = "x" ; then
26683 if test "$wxUSE_LIBJPEG" = "sys" ; then
26684 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
26685echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
26686 { (exit 1); exit 1; }; }
26687 else
26688 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
26689echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
26690 wxUSE_LIBJPEG=builtin
26691 fi
26692 else
26693 wxUSE_LIBJPEG=sys
26694 fi
26695 fi
26696 fi
26697fi
26698
26699
26700TIFF_LINK=
26701TIFF_PREREQ_LINKS=-lm
26702if test "$wxUSE_LIBTIFF" != "no" ; then
26703 cat >>confdefs.h <<\_ACEOF
26704#define wxUSE_LIBTIFF 1
26705_ACEOF
26706
26707
26708 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
26709 if test "$wxUSE_LIBJPEG" = "sys"; then
26710 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
26711 fi
26712 if test "$wxUSE_ZLIB" = "sys"; then
26713 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
26714 fi
26715 if test "${ac_cv_header_tiffio_h+set}" = set; then
26716 echo "$as_me:$LINENO: checking for tiffio.h" >&5
26717echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
26718if test "${ac_cv_header_tiffio_h+set}" = set; then
26719 echo $ECHO_N "(cached) $ECHO_C" >&6
26720fi
26721echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
26722echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
26723else
26724 # Is the header compilable?
26725echo "$as_me:$LINENO: checking tiffio.h usability" >&5
26726echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
26727cat >conftest.$ac_ext <<_ACEOF
26728/* confdefs.h. */
26729_ACEOF
26730cat confdefs.h >>conftest.$ac_ext
26731cat >>conftest.$ac_ext <<_ACEOF
26732/* end confdefs.h. */
26733$ac_includes_default
26734#include <tiffio.h>
26735_ACEOF
26736rm -f conftest.$ac_objext
26737if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26738 (eval $ac_compile) 2>conftest.er1
a848cd7e 26739 ac_status=$?
ac1cb8d3
VS
26740 grep -v '^ *+' conftest.er1 >conftest.err
26741 rm -f conftest.er1
26742 cat conftest.err >&5
a848cd7e
SC
26743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26744 (exit $ac_status); } &&
bb9e79c0 26745 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26747 (eval $ac_try) 2>&5
26748 ac_status=$?
26749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26750 (exit $ac_status); }; } &&
26751 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26753 (eval $ac_try) 2>&5
26754 ac_status=$?
26755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26756 (exit $ac_status); }; }; then
26757 ac_header_compiler=yes
26758else
26759 echo "$as_me: failed program was:" >&5
26760sed 's/^/| /' conftest.$ac_ext >&5
26761
26762ac_header_compiler=no
26763fi
ac1cb8d3 26764rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26765echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26766echo "${ECHO_T}$ac_header_compiler" >&6
26767
26768# Is the header present?
26769echo "$as_me:$LINENO: checking tiffio.h presence" >&5
26770echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
26771cat >conftest.$ac_ext <<_ACEOF
26772/* confdefs.h. */
26773_ACEOF
26774cat confdefs.h >>conftest.$ac_ext
26775cat >>conftest.$ac_ext <<_ACEOF
26776/* end confdefs.h. */
26777#include <tiffio.h>
26778_ACEOF
26779if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26780 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26781 ac_status=$?
26782 grep -v '^ *+' conftest.er1 >conftest.err
26783 rm -f conftest.er1
26784 cat conftest.err >&5
26785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26786 (exit $ac_status); } >/dev/null; then
26787 if test -s conftest.err; then
5d7b7554
VZ
26788 ac_cpp_err=$ac_cxx_preproc_warn_flag
26789 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
26790 else
26791 ac_cpp_err=
26792 fi
26793else
26794 ac_cpp_err=yes
26795fi
26796if test -z "$ac_cpp_err"; then
26797 ac_header_preproc=yes
26798else
26799 echo "$as_me: failed program was:" >&5
26800sed 's/^/| /' conftest.$ac_ext >&5
26801
26802 ac_header_preproc=no
26803fi
26804rm -f conftest.err conftest.$ac_ext
26805echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26806echo "${ECHO_T}$ac_header_preproc" >&6
26807
26808# So? What about this header?
5d7b7554 26809case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 26810 yes:no: )
a848cd7e
SC
26811 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
26812echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
26813 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
26814echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
26815 ac_header_preproc=yes
a848cd7e 26816 ;;
ac1cb8d3 26817 no:yes:* )
a848cd7e
SC
26818 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
26819echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
26820 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
26821echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
26822 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
26823echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
26824 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
26825echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
26826 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
26827echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
26828 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
26829echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
26830 (
26831 cat <<\_ASBOX
ac1cb8d3
VS
26832## ----------------------------------------- ##
26833## Report this to wx-dev@lists.wxwidgets.org ##
26834## ----------------------------------------- ##
a848cd7e
SC
26835_ASBOX
26836 ) |
26837 sed "s/^/$as_me: WARNING: /" >&2
26838 ;;
26839esac
26840echo "$as_me:$LINENO: checking for tiffio.h" >&5
26841echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
26842if test "${ac_cv_header_tiffio_h+set}" = set; then
26843 echo $ECHO_N "(cached) $ECHO_C" >&6
26844else
26845 ac_cv_header_tiffio_h=$ac_header_preproc
26846fi
26847echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
26848echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
26849
26850fi
26851if test $ac_cv_header_tiffio_h = yes; then
26852
26853 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
26854echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
26855if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
26856 echo $ECHO_N "(cached) $ECHO_C" >&6
26857else
26858 ac_check_lib_save_LIBS=$LIBS
26859LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
26860cat >conftest.$ac_ext <<_ACEOF
26861/* confdefs.h. */
26862_ACEOF
26863cat confdefs.h >>conftest.$ac_ext
26864cat >>conftest.$ac_ext <<_ACEOF
26865/* end confdefs.h. */
26866
26867/* Override any gcc2 internal prototype to avoid an error. */
26868#ifdef __cplusplus
26869extern "C"
26870#endif
26871/* We use char because int might match the return type of a gcc2
26872 builtin and then its argument prototype would still apply. */
26873char TIFFError ();
26874int
26875main ()
26876{
26877TIFFError ();
26878 ;
26879 return 0;
26880}
26881_ACEOF
26882rm -f conftest.$ac_objext conftest$ac_exeext
26883if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26884 (eval $ac_link) 2>conftest.er1
a848cd7e 26885 ac_status=$?
ac1cb8d3
VS
26886 grep -v '^ *+' conftest.er1 >conftest.err
26887 rm -f conftest.er1
26888 cat conftest.err >&5
a848cd7e
SC
26889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26890 (exit $ac_status); } &&
bb9e79c0 26891 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26893 (eval $ac_try) 2>&5
26894 ac_status=$?
26895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26896 (exit $ac_status); }; } &&
26897 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26899 (eval $ac_try) 2>&5
26900 ac_status=$?
26901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26902 (exit $ac_status); }; }; then
26903 ac_cv_lib_tiff_TIFFError=yes
26904else
26905 echo "$as_me: failed program was:" >&5
26906sed 's/^/| /' conftest.$ac_ext >&5
26907
26908ac_cv_lib_tiff_TIFFError=no
26909fi
ac1cb8d3
VS
26910rm -f conftest.err conftest.$ac_objext \
26911 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26912LIBS=$ac_check_lib_save_LIBS
26913fi
26914echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
26915echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
26916if test $ac_cv_lib_tiff_TIFFError = yes; then
26917 TIFF_LINK=" -ltiff"
26918fi
26919
26920
26921
26922fi
26923
26924
26925
26926 if test "x$TIFF_LINK" = "x" ; then
26927 if test "$wxUSE_LIBTIFF" = "sys" ; then
26928 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
26929echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
26930 { (exit 1); exit 1; }; }
26931 else
26932 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
26933echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
26934 wxUSE_LIBTIFF=builtin
26935 fi
26936 else
26937 wxUSE_LIBTIFF=sys
26938 fi
26939 fi
26940fi
26941
26942
47a7e797
MW
26943if test "$wxUSE_WCHAR_T" != "yes"; then
26944 if test "$wxUSE_EXPAT" != "no"; then
26945 { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&5
26946echo "$as_me: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&2;}
26947 wxUSE_EXPAT=no
26948 fi
26949 if test "$wxUSE_XML" != "no"; then
26950 { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&5
26951echo "$as_me: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&2;}
26952 wxUSE_XML=no
26953 fi
26954fi
26955
a848cd7e
SC
26956if test "$wxUSE_EXPAT" != "no"; then
26957 wxUSE_XML=yes
26958 cat >>confdefs.h <<\_ACEOF
26959#define wxUSE_EXPAT 1
26960_ACEOF
26961
26962 cat >>confdefs.h <<\_ACEOF
26963#define wxUSE_XML 1
26964_ACEOF
26965
26966
26967 if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
26968 if test "${ac_cv_header_expat_h+set}" = set; then
26969 echo "$as_me:$LINENO: checking for expat.h" >&5
26970echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
26971if test "${ac_cv_header_expat_h+set}" = set; then
26972 echo $ECHO_N "(cached) $ECHO_C" >&6
26973fi
26974echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
26975echo "${ECHO_T}$ac_cv_header_expat_h" >&6
26976else
26977 # Is the header compilable?
26978echo "$as_me:$LINENO: checking expat.h usability" >&5
26979echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
26980cat >conftest.$ac_ext <<_ACEOF
26981/* confdefs.h. */
26982_ACEOF
26983cat confdefs.h >>conftest.$ac_ext
26984cat >>conftest.$ac_ext <<_ACEOF
26985/* end confdefs.h. */
26986$ac_includes_default
26987#include <expat.h>
26988_ACEOF
26989rm -f conftest.$ac_objext
26990if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26991 (eval $ac_compile) 2>conftest.er1
a848cd7e 26992 ac_status=$?
ac1cb8d3
VS
26993 grep -v '^ *+' conftest.er1 >conftest.err
26994 rm -f conftest.er1
26995 cat conftest.err >&5
a848cd7e
SC
26996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26997 (exit $ac_status); } &&
bb9e79c0 26998 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27000 (eval $ac_try) 2>&5
27001 ac_status=$?
27002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27003 (exit $ac_status); }; } &&
27004 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27006 (eval $ac_try) 2>&5
27007 ac_status=$?
27008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27009 (exit $ac_status); }; }; then
27010 ac_header_compiler=yes
27011else
27012 echo "$as_me: failed program was:" >&5
27013sed 's/^/| /' conftest.$ac_ext >&5
27014
27015ac_header_compiler=no
27016fi
ac1cb8d3 27017rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27018echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27019echo "${ECHO_T}$ac_header_compiler" >&6
27020
27021# Is the header present?
27022echo "$as_me:$LINENO: checking expat.h presence" >&5
27023echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
27024cat >conftest.$ac_ext <<_ACEOF
27025/* confdefs.h. */
27026_ACEOF
27027cat confdefs.h >>conftest.$ac_ext
27028cat >>conftest.$ac_ext <<_ACEOF
27029/* end confdefs.h. */
27030#include <expat.h>
27031_ACEOF
27032if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27033 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27034 ac_status=$?
27035 grep -v '^ *+' conftest.er1 >conftest.err
27036 rm -f conftest.er1
27037 cat conftest.err >&5
27038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27039 (exit $ac_status); } >/dev/null; then
27040 if test -s conftest.err; then
5d7b7554
VZ
27041 ac_cpp_err=$ac_cxx_preproc_warn_flag
27042 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
27043 else
27044 ac_cpp_err=
27045 fi
27046else
27047 ac_cpp_err=yes
27048fi
27049if test -z "$ac_cpp_err"; then
27050 ac_header_preproc=yes
27051else
27052 echo "$as_me: failed program was:" >&5
27053sed 's/^/| /' conftest.$ac_ext >&5
27054
27055 ac_header_preproc=no
27056fi
27057rm -f conftest.err conftest.$ac_ext
27058echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27059echo "${ECHO_T}$ac_header_preproc" >&6
27060
27061# So? What about this header?
5d7b7554 27062case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 27063 yes:no: )
a848cd7e
SC
27064 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
27065echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
27066 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
27067echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
27068 ac_header_preproc=yes
a848cd7e 27069 ;;
ac1cb8d3 27070 no:yes:* )
a848cd7e
SC
27071 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
27072echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
27073 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
27074echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
27075 { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
27076echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
27077 { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5
27078echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
27079 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
27080echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
27081 { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
27082echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
27083 (
27084 cat <<\_ASBOX
ac1cb8d3
VS
27085## ----------------------------------------- ##
27086## Report this to wx-dev@lists.wxwidgets.org ##
27087## ----------------------------------------- ##
a848cd7e
SC
27088_ASBOX
27089 ) |
27090 sed "s/^/$as_me: WARNING: /" >&2
27091 ;;
27092esac
27093echo "$as_me:$LINENO: checking for expat.h" >&5
27094echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
27095if test "${ac_cv_header_expat_h+set}" = set; then
27096 echo $ECHO_N "(cached) $ECHO_C" >&6
27097else
27098 ac_cv_header_expat_h=$ac_header_preproc
27099fi
27100echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
27101echo "${ECHO_T}$ac_cv_header_expat_h" >&6
27102
27103fi
27104if test $ac_cv_header_expat_h = yes; then
27105 found_expat_h=1
27106fi
27107
27108
27109 if test "x$found_expat_h" = "x1"; then
27110 echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
27111echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
27112if test "${wx_cv_expat_is_not_broken+set}" = set; then
27113 echo $ECHO_N "(cached) $ECHO_C" >&6
27114else
27115
a848cd7e
SC
27116 cat >conftest.$ac_ext <<_ACEOF
27117/* confdefs.h. */
27118_ACEOF
27119cat confdefs.h >>conftest.$ac_ext
27120cat >>conftest.$ac_ext <<_ACEOF
27121/* end confdefs.h. */
27122#include <expat.h>
27123int
27124main ()
27125{
27126
27127 ;
27128 return 0;
27129}
27130_ACEOF
27131rm -f conftest.$ac_objext
27132if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27133 (eval $ac_compile) 2>conftest.er1
a848cd7e 27134 ac_status=$?
ac1cb8d3
VS
27135 grep -v '^ *+' conftest.er1 >conftest.err
27136 rm -f conftest.er1
27137 cat conftest.err >&5
a848cd7e
SC
27138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27139 (exit $ac_status); } &&
bb9e79c0 27140 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27142 (eval $ac_try) 2>&5
27143 ac_status=$?
27144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27145 (exit $ac_status); }; } &&
27146 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27148 (eval $ac_try) 2>&5
27149 ac_status=$?
27150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27151 (exit $ac_status); }; }; then
27152 wx_cv_expat_is_not_broken=yes
27153else
27154 echo "$as_me: failed program was:" >&5
27155sed 's/^/| /' conftest.$ac_ext >&5
27156
27157wx_cv_expat_is_not_broken=no
27158
27159fi
ac1cb8d3 27160rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27161
27162
27163fi
27164echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
27165echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
27166 if test "$wx_cv_expat_is_not_broken" = "yes" ; then
27167 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
27168echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
27169if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
27170 echo $ECHO_N "(cached) $ECHO_C" >&6
27171else
27172 ac_check_lib_save_LIBS=$LIBS
27173LIBS="-lexpat $LIBS"
27174cat >conftest.$ac_ext <<_ACEOF
27175/* confdefs.h. */
27176_ACEOF
27177cat confdefs.h >>conftest.$ac_ext
27178cat >>conftest.$ac_ext <<_ACEOF
27179/* end confdefs.h. */
27180
27181/* Override any gcc2 internal prototype to avoid an error. */
27182#ifdef __cplusplus
27183extern "C"
27184#endif
27185/* We use char because int might match the return type of a gcc2
27186 builtin and then its argument prototype would still apply. */
27187char XML_ParserCreate ();
27188int
27189main ()
27190{
27191XML_ParserCreate ();
27192 ;
27193 return 0;
27194}
27195_ACEOF
27196rm -f conftest.$ac_objext conftest$ac_exeext
27197if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27198 (eval $ac_link) 2>conftest.er1
a848cd7e 27199 ac_status=$?
ac1cb8d3
VS
27200 grep -v '^ *+' conftest.er1 >conftest.err
27201 rm -f conftest.er1
27202 cat conftest.err >&5
a848cd7e
SC
27203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27204 (exit $ac_status); } &&
bb9e79c0 27205 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27207 (eval $ac_try) 2>&5
27208 ac_status=$?
27209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27210 (exit $ac_status); }; } &&
27211 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27213 (eval $ac_try) 2>&5
27214 ac_status=$?
27215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27216 (exit $ac_status); }; }; then
27217 ac_cv_lib_expat_XML_ParserCreate=yes
27218else
27219 echo "$as_me: failed program was:" >&5
27220sed 's/^/| /' conftest.$ac_ext >&5
27221
27222ac_cv_lib_expat_XML_ParserCreate=no
27223fi
ac1cb8d3
VS
27224rm -f conftest.err conftest.$ac_objext \
27225 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27226LIBS=$ac_check_lib_save_LIBS
27227fi
27228echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
27229echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
27230if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
27231 EXPAT_LINK=" -lexpat"
27232fi
27233
27234 fi
27235 fi
27236 if test "x$EXPAT_LINK" = "x" ; then
27237 if test "$wxUSE_EXPAT" = "sys" ; then
27238 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
27239echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
27240 { (exit 1); exit 1; }; }
27241 else
27242 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
27243echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
27244 wxUSE_EXPAT=builtin
27245 fi
27246 else
27247 wxUSE_EXPAT=sys
27248 fi
27249 fi
27250 if test "$wxUSE_EXPAT" = "builtin" ; then
27251
27252
27253subdirs="$subdirs src/expat"
27254
27255 fi
27256fi
27257
27258
27259
27260if test "$wxUSE_LIBMSPACK" != "no"; then
a848cd7e
SC
27261 if test "${ac_cv_header_mspack_h+set}" = set; then
27262 echo "$as_me:$LINENO: checking for mspack.h" >&5
27263echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
27264if test "${ac_cv_header_mspack_h+set}" = set; then
27265 echo $ECHO_N "(cached) $ECHO_C" >&6
27266fi
27267echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
27268echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
27269else
27270 # Is the header compilable?
27271echo "$as_me:$LINENO: checking mspack.h usability" >&5
27272echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
27273cat >conftest.$ac_ext <<_ACEOF
27274/* confdefs.h. */
27275_ACEOF
27276cat confdefs.h >>conftest.$ac_ext
27277cat >>conftest.$ac_ext <<_ACEOF
27278/* end confdefs.h. */
27279$ac_includes_default
27280#include <mspack.h>
27281_ACEOF
27282rm -f conftest.$ac_objext
27283if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27284 (eval $ac_compile) 2>conftest.er1
a848cd7e 27285 ac_status=$?
ac1cb8d3
VS
27286 grep -v '^ *+' conftest.er1 >conftest.err
27287 rm -f conftest.er1
27288 cat conftest.err >&5
a848cd7e
SC
27289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27290 (exit $ac_status); } &&
bb9e79c0 27291 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27293 (eval $ac_try) 2>&5
27294 ac_status=$?
27295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27296 (exit $ac_status); }; } &&
27297 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27299 (eval $ac_try) 2>&5
27300 ac_status=$?
27301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27302 (exit $ac_status); }; }; then
27303 ac_header_compiler=yes
27304else
27305 echo "$as_me: failed program was:" >&5
27306sed 's/^/| /' conftest.$ac_ext >&5
27307
27308ac_header_compiler=no
27309fi
ac1cb8d3 27310rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27311echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27312echo "${ECHO_T}$ac_header_compiler" >&6
27313
27314# Is the header present?
27315echo "$as_me:$LINENO: checking mspack.h presence" >&5
27316echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
27317cat >conftest.$ac_ext <<_ACEOF
27318/* confdefs.h. */
27319_ACEOF
27320cat confdefs.h >>conftest.$ac_ext
27321cat >>conftest.$ac_ext <<_ACEOF
27322/* end confdefs.h. */
27323#include <mspack.h>
27324_ACEOF
27325if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27326 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27327 ac_status=$?
27328 grep -v '^ *+' conftest.er1 >conftest.err
27329 rm -f conftest.er1
27330 cat conftest.err >&5
27331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27332 (exit $ac_status); } >/dev/null; then
27333 if test -s conftest.err; then
5d7b7554
VZ
27334 ac_cpp_err=$ac_cxx_preproc_warn_flag
27335 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
27336 else
27337 ac_cpp_err=
27338 fi
27339else
27340 ac_cpp_err=yes
27341fi
27342if test -z "$ac_cpp_err"; then
27343 ac_header_preproc=yes
27344else
27345 echo "$as_me: failed program was:" >&5
27346sed 's/^/| /' conftest.$ac_ext >&5
27347
27348 ac_header_preproc=no
27349fi
27350rm -f conftest.err conftest.$ac_ext
27351echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27352echo "${ECHO_T}$ac_header_preproc" >&6
27353
27354# So? What about this header?
5d7b7554 27355case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 27356 yes:no: )
a848cd7e
SC
27357 { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
27358echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
27359 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5
27360echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;}
27361 ac_header_preproc=yes
a848cd7e 27362 ;;
ac1cb8d3 27363 no:yes:* )
a848cd7e
SC
27364 { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
27365echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
27366 { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5
27367echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;}
27368 { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5
27369echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;}
27370 { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5
27371echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
27372 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
27373echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
27374 { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5
27375echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
27376 (
27377 cat <<\_ASBOX
ac1cb8d3
VS
27378## ----------------------------------------- ##
27379## Report this to wx-dev@lists.wxwidgets.org ##
27380## ----------------------------------------- ##
a848cd7e
SC
27381_ASBOX
27382 ) |
27383 sed "s/^/$as_me: WARNING: /" >&2
27384 ;;
27385esac
27386echo "$as_me:$LINENO: checking for mspack.h" >&5
27387echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
27388if test "${ac_cv_header_mspack_h+set}" = set; then
27389 echo $ECHO_N "(cached) $ECHO_C" >&6
27390else
27391 ac_cv_header_mspack_h=$ac_header_preproc
27392fi
27393echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
27394echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
27395
27396fi
27397if test $ac_cv_header_mspack_h = yes; then
27398 found_mspack_h=1
27399fi
27400
27401
27402 if test "x$found_mspack_h" = "x1"; then
27403 echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
27404echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
27405if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
27406 echo $ECHO_N "(cached) $ECHO_C" >&6
27407else
27408 ac_check_lib_save_LIBS=$LIBS
27409LIBS="-lmspack $LIBS"
27410cat >conftest.$ac_ext <<_ACEOF
27411/* confdefs.h. */
27412_ACEOF
27413cat confdefs.h >>conftest.$ac_ext
27414cat >>conftest.$ac_ext <<_ACEOF
27415/* end confdefs.h. */
27416
27417/* Override any gcc2 internal prototype to avoid an error. */
27418#ifdef __cplusplus
27419extern "C"
27420#endif
27421/* We use char because int might match the return type of a gcc2
27422 builtin and then its argument prototype would still apply. */
27423char mspack_create_chm_decompressor ();
27424int
27425main ()
27426{
27427mspack_create_chm_decompressor ();
27428 ;
27429 return 0;
27430}
27431_ACEOF
27432rm -f conftest.$ac_objext conftest$ac_exeext
27433if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27434 (eval $ac_link) 2>conftest.er1
a848cd7e 27435 ac_status=$?
ac1cb8d3
VS
27436 grep -v '^ *+' conftest.er1 >conftest.err
27437 rm -f conftest.er1
27438 cat conftest.err >&5
a848cd7e
SC
27439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27440 (exit $ac_status); } &&
bb9e79c0 27441 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27443 (eval $ac_try) 2>&5
27444 ac_status=$?
27445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27446 (exit $ac_status); }; } &&
27447 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27449 (eval $ac_try) 2>&5
27450 ac_status=$?
27451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27452 (exit $ac_status); }; }; then
27453 ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
27454else
27455 echo "$as_me: failed program was:" >&5
27456sed 's/^/| /' conftest.$ac_ext >&5
27457
27458ac_cv_lib_mspack_mspack_create_chm_decompressor=no
27459fi
ac1cb8d3
VS
27460rm -f conftest.err conftest.$ac_objext \
27461 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27462LIBS=$ac_check_lib_save_LIBS
27463fi
27464echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
27465echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
27466if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
27467 MSPACK_LINK=" -lmspack"
27468fi
27469
27470 fi
27471 if test "x$MSPACK_LINK" = "x" ; then
27472 wxUSE_LIBMSPACK=no
dd3a2d96
VZ
27473 fi
27474fi
27475
27476if test "$wxUSE_LIBMSPACK" != "no"; then
27477 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
27478#define wxUSE_LIBMSPACK 1
27479_ACEOF
27480
a848cd7e
SC
27481fi
27482
27483
27484
27485AFMINSTALL=
27486WIN32INSTALL=
27487
27488TOOLKIT=
27489TOOLKIT_INCLUDE=
27490WIDGET_SET=
27491
27492if test "$USE_WIN32" = 1 ; then
27493
27494for ac_header in w32api.h
27495do
27496as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27497if eval "test \"\${$as_ac_Header+set}\" = set"; then
27498 echo "$as_me:$LINENO: checking for $ac_header" >&5
27499echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27500if eval "test \"\${$as_ac_Header+set}\" = set"; then
27501 echo $ECHO_N "(cached) $ECHO_C" >&6
27502fi
27503echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27504echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27505else
27506 # Is the header compilable?
27507echo "$as_me:$LINENO: checking $ac_header usability" >&5
27508echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27509cat >conftest.$ac_ext <<_ACEOF
27510/* confdefs.h. */
27511_ACEOF
27512cat confdefs.h >>conftest.$ac_ext
27513cat >>conftest.$ac_ext <<_ACEOF
27514/* end confdefs.h. */
27515$ac_includes_default
27516#include <$ac_header>
27517_ACEOF
27518rm -f conftest.$ac_objext
27519if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27520 (eval $ac_compile) 2>conftest.er1
a848cd7e 27521 ac_status=$?
ac1cb8d3
VS
27522 grep -v '^ *+' conftest.er1 >conftest.err
27523 rm -f conftest.er1
27524 cat conftest.err >&5
a848cd7e
SC
27525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27526 (exit $ac_status); } &&
bb9e79c0 27527 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27529 (eval $ac_try) 2>&5
27530 ac_status=$?
27531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27532 (exit $ac_status); }; } &&
27533 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27535 (eval $ac_try) 2>&5
27536 ac_status=$?
27537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27538 (exit $ac_status); }; }; then
27539 ac_header_compiler=yes
27540else
27541 echo "$as_me: failed program was:" >&5
27542sed 's/^/| /' conftest.$ac_ext >&5
27543
27544ac_header_compiler=no
27545fi
ac1cb8d3 27546rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27547echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27548echo "${ECHO_T}$ac_header_compiler" >&6
27549
27550# Is the header present?
27551echo "$as_me:$LINENO: checking $ac_header presence" >&5
27552echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27553cat >conftest.$ac_ext <<_ACEOF
27554/* confdefs.h. */
27555_ACEOF
27556cat confdefs.h >>conftest.$ac_ext
27557cat >>conftest.$ac_ext <<_ACEOF
27558/* end confdefs.h. */
27559#include <$ac_header>
27560_ACEOF
27561if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27562 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27563 ac_status=$?
27564 grep -v '^ *+' conftest.er1 >conftest.err
27565 rm -f conftest.er1
27566 cat conftest.err >&5
27567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27568 (exit $ac_status); } >/dev/null; then
27569 if test -s conftest.err; then
5d7b7554
VZ
27570 ac_cpp_err=$ac_cxx_preproc_warn_flag
27571 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
27572 else
27573 ac_cpp_err=
27574 fi
27575else
27576 ac_cpp_err=yes
27577fi
27578if test -z "$ac_cpp_err"; then
27579 ac_header_preproc=yes
27580else
27581 echo "$as_me: failed program was:" >&5
27582sed 's/^/| /' conftest.$ac_ext >&5
27583
27584 ac_header_preproc=no
27585fi
27586rm -f conftest.err conftest.$ac_ext
27587echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27588echo "${ECHO_T}$ac_header_preproc" >&6
27589
27590# So? What about this header?
5d7b7554 27591case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 27592 yes:no: )
a848cd7e
SC
27593 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27594echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
27595 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27596echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27597 ac_header_preproc=yes
a848cd7e 27598 ;;
ac1cb8d3 27599 no:yes:* )
a848cd7e
SC
27600 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27601echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
27602 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27603echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27604 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27605echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27606 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27607echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
27608 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27609echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
27610 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27611echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
27612 (
27613 cat <<\_ASBOX
ac1cb8d3
VS
27614## ----------------------------------------- ##
27615## Report this to wx-dev@lists.wxwidgets.org ##
27616## ----------------------------------------- ##
a848cd7e
SC
27617_ASBOX
27618 ) |
27619 sed "s/^/$as_me: WARNING: /" >&2
27620 ;;
27621esac
27622echo "$as_me:$LINENO: checking for $ac_header" >&5
27623echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27624if eval "test \"\${$as_ac_Header+set}\" = set"; then
27625 echo $ECHO_N "(cached) $ECHO_C" >&6
27626else
ac1cb8d3 27627 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
27628fi
27629echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27630echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27631
27632fi
27633if test `eval echo '${'$as_ac_Header'}'` = yes; then
27634 cat >>confdefs.h <<_ACEOF
27635#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27636_ACEOF
27637
27638fi
27639
27640done
27641
27642 if test "${ac_cv_header_windows_h+set}" = set; then
27643 echo "$as_me:$LINENO: checking for windows.h" >&5
27644echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
27645if test "${ac_cv_header_windows_h+set}" = set; then
27646 echo $ECHO_N "(cached) $ECHO_C" >&6
27647fi
27648echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
27649echo "${ECHO_T}$ac_cv_header_windows_h" >&6
27650else
27651 # Is the header compilable?
27652echo "$as_me:$LINENO: checking windows.h usability" >&5
27653echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
27654cat >conftest.$ac_ext <<_ACEOF
27655/* confdefs.h. */
27656_ACEOF
27657cat confdefs.h >>conftest.$ac_ext
27658cat >>conftest.$ac_ext <<_ACEOF
27659/* end confdefs.h. */
27660$ac_includes_default
27661#include <windows.h>
27662_ACEOF
27663rm -f conftest.$ac_objext
27664if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27665 (eval $ac_compile) 2>conftest.er1
a848cd7e 27666 ac_status=$?
ac1cb8d3
VS
27667 grep -v '^ *+' conftest.er1 >conftest.err
27668 rm -f conftest.er1
27669 cat conftest.err >&5
a848cd7e
SC
27670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27671 (exit $ac_status); } &&
bb9e79c0 27672 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27674 (eval $ac_try) 2>&5
27675 ac_status=$?
27676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27677 (exit $ac_status); }; } &&
27678 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27680 (eval $ac_try) 2>&5
27681 ac_status=$?
27682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27683 (exit $ac_status); }; }; then
27684 ac_header_compiler=yes
27685else
27686 echo "$as_me: failed program was:" >&5
27687sed 's/^/| /' conftest.$ac_ext >&5
27688
27689ac_header_compiler=no
27690fi
ac1cb8d3 27691rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27692echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27693echo "${ECHO_T}$ac_header_compiler" >&6
27694
27695# Is the header present?
27696echo "$as_me:$LINENO: checking windows.h presence" >&5
27697echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
27698cat >conftest.$ac_ext <<_ACEOF
27699/* confdefs.h. */
27700_ACEOF
27701cat confdefs.h >>conftest.$ac_ext
27702cat >>conftest.$ac_ext <<_ACEOF
27703/* end confdefs.h. */
27704#include <windows.h>
27705_ACEOF
27706if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27707 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27708 ac_status=$?
27709 grep -v '^ *+' conftest.er1 >conftest.err
27710 rm -f conftest.er1
27711 cat conftest.err >&5
27712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27713 (exit $ac_status); } >/dev/null; then
27714 if test -s conftest.err; then
5d7b7554
VZ
27715 ac_cpp_err=$ac_cxx_preproc_warn_flag
27716 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
27717 else
27718 ac_cpp_err=
27719 fi
27720else
27721 ac_cpp_err=yes
27722fi
27723if test -z "$ac_cpp_err"; then
27724 ac_header_preproc=yes
27725else
27726 echo "$as_me: failed program was:" >&5
27727sed 's/^/| /' conftest.$ac_ext >&5
27728
27729 ac_header_preproc=no
27730fi
27731rm -f conftest.err conftest.$ac_ext
27732echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27733echo "${ECHO_T}$ac_header_preproc" >&6
27734
27735# So? What about this header?
5d7b7554 27736case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 27737 yes:no: )
a848cd7e
SC
27738 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
27739echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
27740 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
27741echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
27742 ac_header_preproc=yes
a848cd7e 27743 ;;
ac1cb8d3 27744 no:yes:* )
a848cd7e
SC
27745 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
27746echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
27747 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
27748echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
27749 { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
27750echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
27751 { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5
27752echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
27753 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
27754echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
27755 { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
27756echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
27757 (
27758 cat <<\_ASBOX
ac1cb8d3
VS
27759## ----------------------------------------- ##
27760## Report this to wx-dev@lists.wxwidgets.org ##
27761## ----------------------------------------- ##
a848cd7e
SC
27762_ASBOX
27763 ) |
27764 sed "s/^/$as_me: WARNING: /" >&2
27765 ;;
27766esac
27767echo "$as_me:$LINENO: checking for windows.h" >&5
27768echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
27769if test "${ac_cv_header_windows_h+set}" = set; then
27770 echo $ECHO_N "(cached) $ECHO_C" >&6
27771else
27772 ac_cv_header_windows_h=$ac_header_preproc
27773fi
27774echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
27775echo "${ECHO_T}$ac_cv_header_windows_h" >&6
27776
27777fi
27778if test $ac_cv_header_windows_h = yes; then
27779 :
27780else
27781
27782 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
27783echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
27784 { (exit 1); exit 1; }; }
27785
27786fi
27787
27788
27789
27790 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
27791
27792 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
27793 LIBS="$LIBS -loleacc"
27794 fi
27795
27796 case "${host}" in
27797 *-*-cygwin* )
27798 LIBS="$LIBS -lkernel32 -luser32"
a848cd7e
SC
27799 esac
27800
27801 if test "$wxUSE_ODBC" = "sys" ; then
27802 wxUSE_ODBC = "yes"
27803 fi
27804 if test "$wxUSE_ODBC" = "yes" ; then
27805 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
27806 cat >>confdefs.h <<\_ACEOF
27807#define wxUSE_ODBC 1
27808_ACEOF
27809
27810 fi
27811
370d2fd7 27812 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
a848cd7e
SC
27813 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
27814
004ee6da 27815 WXCONFIG_RESFLAGS="--define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
370d2fd7 27816
a848cd7e 27817 WIN32INSTALL=win32install
5f41d1bf
MW
27818
27819 echo "$as_me:$LINENO: checking for boolean" >&5
27820echo $ECHO_N "checking for boolean... $ECHO_C" >&6
27821if test "${ac_cv_type_boolean+set}" = set; then
27822 echo $ECHO_N "(cached) $ECHO_C" >&6
27823else
27824 cat >conftest.$ac_ext <<_ACEOF
27825/* confdefs.h. */
27826_ACEOF
27827cat confdefs.h >>conftest.$ac_ext
27828cat >>conftest.$ac_ext <<_ACEOF
27829/* end confdefs.h. */
27830#include <windows.h>
27831
27832int
27833main ()
27834{
27835if ((boolean *) 0)
27836 return 0;
27837if (sizeof (boolean))
27838 return 0;
27839 ;
27840 return 0;
27841}
27842_ACEOF
27843rm -f conftest.$ac_objext
27844if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27845 (eval $ac_compile) 2>conftest.er1
27846 ac_status=$?
27847 grep -v '^ *+' conftest.er1 >conftest.err
27848 rm -f conftest.er1
27849 cat conftest.err >&5
27850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27851 (exit $ac_status); } &&
bb9e79c0 27852 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5f41d1bf
MW
27853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27854 (eval $ac_try) 2>&5
27855 ac_status=$?
27856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27857 (exit $ac_status); }; } &&
27858 { ac_try='test -s conftest.$ac_objext'
27859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27860 (eval $ac_try) 2>&5
27861 ac_status=$?
27862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27863 (exit $ac_status); }; }; then
27864 ac_cv_type_boolean=yes
27865else
27866 echo "$as_me: failed program was:" >&5
27867sed 's/^/| /' conftest.$ac_ext >&5
27868
27869ac_cv_type_boolean=no
27870fi
27871rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27872fi
27873echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
27874echo "${ECHO_T}$ac_cv_type_boolean" >&6
27875if test $ac_cv_type_boolean = yes; then
27876
27877cat >>confdefs.h <<_ACEOF
27878#define HAVE_BOOLEAN 1
27879_ACEOF
27880
27881
27882fi
27883
dcfd4ac4
MW
27884
27885
27886for ac_header in pbt.h
27887do
27888as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27889if eval "test \"\${$as_ac_Header+set}\" = set"; then
27890 echo "$as_me:$LINENO: checking for $ac_header" >&5
27891echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27892if eval "test \"\${$as_ac_Header+set}\" = set"; then
27893 echo $ECHO_N "(cached) $ECHO_C" >&6
27894fi
27895echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27896echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27897else
27898 # Is the header compilable?
27899echo "$as_me:$LINENO: checking $ac_header usability" >&5
27900echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27901cat >conftest.$ac_ext <<_ACEOF
27902/* confdefs.h. */
27903_ACEOF
27904cat confdefs.h >>conftest.$ac_ext
27905cat >>conftest.$ac_ext <<_ACEOF
27906/* end confdefs.h. */
27907$ac_includes_default
27908#include <$ac_header>
27909_ACEOF
27910rm -f conftest.$ac_objext
27911if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27912 (eval $ac_compile) 2>conftest.er1
27913 ac_status=$?
27914 grep -v '^ *+' conftest.er1 >conftest.err
27915 rm -f conftest.er1
27916 cat conftest.err >&5
27917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27918 (exit $ac_status); } &&
bb9e79c0 27919 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
dcfd4ac4
MW
27920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27921 (eval $ac_try) 2>&5
27922 ac_status=$?
27923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27924 (exit $ac_status); }; } &&
27925 { ac_try='test -s conftest.$ac_objext'
27926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27927 (eval $ac_try) 2>&5
27928 ac_status=$?
27929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27930 (exit $ac_status); }; }; then
27931 ac_header_compiler=yes
27932else
27933 echo "$as_me: failed program was:" >&5
27934sed 's/^/| /' conftest.$ac_ext >&5
27935
27936ac_header_compiler=no
27937fi
27938rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27939echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27940echo "${ECHO_T}$ac_header_compiler" >&6
27941
27942# Is the header present?
27943echo "$as_me:$LINENO: checking $ac_header presence" >&5
27944echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27945cat >conftest.$ac_ext <<_ACEOF
27946/* confdefs.h. */
27947_ACEOF
27948cat confdefs.h >>conftest.$ac_ext
27949cat >>conftest.$ac_ext <<_ACEOF
27950/* end confdefs.h. */
27951#include <$ac_header>
27952_ACEOF
27953if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27954 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27955 ac_status=$?
27956 grep -v '^ *+' conftest.er1 >conftest.err
27957 rm -f conftest.er1
27958 cat conftest.err >&5
27959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27960 (exit $ac_status); } >/dev/null; then
27961 if test -s conftest.err; then
27962 ac_cpp_err=$ac_cxx_preproc_warn_flag
27963 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
27964 else
27965 ac_cpp_err=
27966 fi
27967else
27968 ac_cpp_err=yes
27969fi
27970if test -z "$ac_cpp_err"; then
27971 ac_header_preproc=yes
27972else
27973 echo "$as_me: failed program was:" >&5
27974sed 's/^/| /' conftest.$ac_ext >&5
27975
27976 ac_header_preproc=no
27977fi
27978rm -f conftest.err conftest.$ac_ext
27979echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27980echo "${ECHO_T}$ac_header_preproc" >&6
27981
27982# So? What about this header?
27983case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
27984 yes:no: )
27985 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27986echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27987 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27988echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27989 ac_header_preproc=yes
27990 ;;
27991 no:yes:* )
27992 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27993echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27994 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27995echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27996 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27997echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27998 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27999echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28000 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28001echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28002 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28003echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28004 (
28005 cat <<\_ASBOX
28006## ----------------------------------------- ##
28007## Report this to wx-dev@lists.wxwidgets.org ##
28008## ----------------------------------------- ##
28009_ASBOX
28010 ) |
28011 sed "s/^/$as_me: WARNING: /" >&2
28012 ;;
28013esac
28014echo "$as_me:$LINENO: checking for $ac_header" >&5
28015echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28016if eval "test \"\${$as_ac_Header+set}\" = set"; then
28017 echo $ECHO_N "(cached) $ECHO_C" >&6
28018else
28019 eval "$as_ac_Header=\$ac_header_preproc"
28020fi
28021echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28022echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28023
28024fi
28025if test `eval echo '${'$as_ac_Header'}'` = yes; then
28026 cat >>confdefs.h <<_ACEOF
28027#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28028_ACEOF
28029
28030else
28031 cat >>confdefs.h <<\_ACEOF
28032#define NEED_PBT_H 1
28033_ACEOF
28034
28035fi
28036
28037done
28038
a848cd7e
SC
28039fi
28040
28041if test "$wxUSE_GUI" = "yes"; then
28042 USE_GUI=1
28043
28044 GUI_TK_LIBRARY=
28045
28046 WXGTK12=
28047 WXGTK127=
28048 WXGTK20=
28049 WXGPE=
28050
207bc66c
RN
28051 if test "$wxUSE_COCOA" = 1 ; then
28052 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
28053 { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
28054echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
28055 wxUSE_PRINTING_ARCHITECTURE=no
28056 fi
28057 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
28058 { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
28059echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
28060 wxUSE_DRAG_AND_DROP=no
28061 fi
28062 if test "$wxUSE_DRAGIMAGE" = "yes"; then
28063 { echo "$as_me:$LINENO: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&5
28064echo "$as_me: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&2;}
28065 wxUSE_DRAGIMAGE=no
28066 fi
28067 fi
28068
a848cd7e
SC
28069 if test "$wxUSE_MSW" = 1 ; then
28070 TOOLKIT=MSW
28071 GUIDIST=MSW_DIST
28072
ceec2216 28073 case "${host}" in
a848cd7e
SC
28074 *-*-mingw32* )
28075 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
28076 esac
28077 fi
28078
28079 if test "$wxUSE_GTK" = 1; then
5d7b7554
VZ
28080 ac_ext=c
28081ac_cpp='$CPP $CPPFLAGS'
28082ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28083ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28084ac_compiler_gnu=$ac_cv_c_compiler_gnu
28085
28086
a848cd7e
SC
28087 echo "$as_me:$LINENO: checking for GTK+ version" >&5
28088echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
28089
28090 gtk_version_cached=1
28091 if test "${wx_cv_lib_gtk+set}" = set; then
28092 echo $ECHO_N "(cached) $ECHO_C" >&6
28093else
28094
28095 gtk_version_cached=0
28096 echo "$as_me:$LINENO: result: " >&5
28097echo "${ECHO_T}" >&6
28098
28099 GTK_MODULES=
28100 if test "$wxUSE_THREADS" = "yes"; then
28101 GTK_MODULES=gthread
28102 fi
28103
f597b41c 28104 wx_cv_lib_gtk=
5001df0d
MW
28105 if test "x$wxGTK_VERSION" != "x1"
28106 then
28107 case "${host}" in
28108 *-*-solaris2* )
28109 if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
5ff751d6 28110 enable_gtktest=no
5001df0d
MW
28111 fi
28112 esac
28113
a848cd7e
SC
28114 # Check whether --enable-gtktest or --disable-gtktest was given.
28115if test "${enable_gtktest+set}" = set; then
28116 enableval="$enable_gtktest"
28117
28118else
28119 enable_gtktest=yes
28120fi;
28121
28122 pkg_config_args=gtk+-2.0
28123 for module in . $GTK_MODULES
28124 do
28125 case "$module" in
28126 gthread)
28127 pkg_config_args="$pkg_config_args gthread-2.0"
28128 ;;
28129 esac
28130 done
28131
28132 no_gtk=""
28133
28134 # Extract the first word of "pkg-config", so it can be a program name with args.
28135set dummy pkg-config; ac_word=$2
28136echo "$as_me:$LINENO: checking for $ac_word" >&5
28137echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28138if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
28139 echo $ECHO_N "(cached) $ECHO_C" >&6
28140else
28141 case $PKG_CONFIG in
28142 [\\/]* | ?:[\\/]*)
28143 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
28144 ;;
28145 *)
28146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28147for as_dir in $PATH
28148do
28149 IFS=$as_save_IFS
28150 test -z "$as_dir" && as_dir=.
28151 for ac_exec_ext in '' $ac_executable_extensions; do
28152 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28153 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28154 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28155 break 2
28156 fi
28157done
28158done
28159
28160 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
28161 ;;
28162esac
28163fi
28164PKG_CONFIG=$ac_cv_path_PKG_CONFIG
28165
28166if test -n "$PKG_CONFIG"; then
28167 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
28168echo "${ECHO_T}$PKG_CONFIG" >&6
28169else
28170 echo "$as_me:$LINENO: result: no" >&5
28171echo "${ECHO_T}no" >&6
28172fi
28173
28174
28175 if test x$PKG_CONFIG != xno ; then
28176 if pkg-config --atleast-pkgconfig-version 0.7 ; then
28177 :
28178 else
c2218763 28179 echo "*** pkg-config too old; version 0.7 or better required."
a848cd7e
SC
28180 no_gtk=yes
28181 PKG_CONFIG=no
28182 fi
28183 else
28184 no_gtk=yes
28185 fi
28186
28187 min_gtk_version=2.0.0
28188 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
28189echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
28190
28191 if test x$PKG_CONFIG != xno ; then
28192 ## don't try to run the test against uninstalled libtool libs
28193 if $PKG_CONFIG --uninstalled $pkg_config_args; then
28194 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
28195 enable_gtktest=no
28196 fi
28197
28198 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
28199 :
28200 else
28201 no_gtk=yes
28202 fi
28203 fi
28204
28205 if test x"$no_gtk" = x ; then
28206 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
28207 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
28208 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
28209 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
28210 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
28211 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
28212 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
28213 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
28214 if test "x$enable_gtktest" = "xyes" ; then
28215 ac_save_CFLAGS="$CFLAGS"
28216 ac_save_LIBS="$LIBS"
28217 CFLAGS="$CFLAGS $GTK_CFLAGS"
28218 LIBS="$GTK_LIBS $LIBS"
28219 rm -f conf.gtktest
28220 if test "$cross_compiling" = yes; then
28221 echo $ac_n "cross compiling; assumed OK... $ac_c"
28222else
28223 cat >conftest.$ac_ext <<_ACEOF
28224/* confdefs.h. */
28225_ACEOF
28226cat confdefs.h >>conftest.$ac_ext
28227cat >>conftest.$ac_ext <<_ACEOF
28228/* end confdefs.h. */
28229
28230#include <gtk/gtk.h>
28231#include <stdio.h>
28232#include <stdlib.h>
28233
28234int
28235main ()
28236{
28237 int major, minor, micro;
28238 char *tmp_version;
28239
28240 system ("touch conf.gtktest");
28241
28242 /* HP/UX 9 (%@#!) writes to sscanf strings */
28243 tmp_version = g_strdup("$min_gtk_version");
28244 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
28245 printf("%s, bad version string\n", "$min_gtk_version");
28246 exit(1);
28247 }
28248
28249 if ((gtk_major_version != $gtk_config_major_version) ||
28250 (gtk_minor_version != $gtk_config_minor_version) ||
28251 (gtk_micro_version != $gtk_config_micro_version))
28252 {
28253 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
28254 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
28255 gtk_major_version, gtk_minor_version, gtk_micro_version);
28256 printf ("*** was found! If pkg-config was correct, then it is best\n");
28257 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
28258 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
28259 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
28260 printf("*** required on your system.\n");
28261 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
28262 printf("*** to point to the correct configuration files\n");
28263 }
28264 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
28265 (gtk_minor_version != GTK_MINOR_VERSION) ||
28266 (gtk_micro_version != GTK_MICRO_VERSION))
28267 {
28268 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
28269 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
28270 printf("*** library (version %d.%d.%d)\n",
28271 gtk_major_version, gtk_minor_version, gtk_micro_version);
28272 }
28273 else
28274 {
28275 if ((gtk_major_version > major) ||
28276 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
28277 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
28278 {
28279 return 0;
28280 }
28281 else
28282 {
28283 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
28284 gtk_major_version, gtk_minor_version, gtk_micro_version);
28285 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
28286 major, minor, micro);
28287 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
28288 printf("***\n");
28289 printf("*** If you have already installed a sufficiently new version, this error\n");
28290 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
28291 printf("*** being found. The easiest way to fix this is to remove the old version\n");
28292 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
28293 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
28294 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
28295 printf("*** so that the correct libraries are found at run-time))\n");
28296 }
28297 }
28298 return 1;
28299}
28300
28301_ACEOF
28302rm -f conftest$ac_exeext
28303if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28304 (eval $ac_link) 2>&5
28305 ac_status=$?
28306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28307 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28309 (eval $ac_try) 2>&5
28310 ac_status=$?
28311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28312 (exit $ac_status); }; }; then
28313 :
28314else
28315 echo "$as_me: program exited with status $ac_status" >&5
28316echo "$as_me: failed program was:" >&5
28317sed 's/^/| /' conftest.$ac_ext >&5
28318
28319( exit $ac_status )
28320no_gtk=yes
28321fi
ac1cb8d3 28322rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28323fi
28324 CFLAGS="$ac_save_CFLAGS"
28325 LIBS="$ac_save_LIBS"
28326 fi
28327 fi
28328 if test "x$no_gtk" = x ; then
28329 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
28330echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
28331 wx_cv_lib_gtk=2.0
28332 else
28333 echo "$as_me:$LINENO: result: no" >&5
28334echo "${ECHO_T}no" >&6
28335 if test "$PKG_CONFIG" = "no" ; then
28336 echo "*** A new enough version of pkg-config was not found."
28337 echo "*** See http://pkgconfig.sourceforge.net"
28338 else
28339 if test -f conf.gtktest ; then
28340 :
28341 else
28342 echo "*** Could not run GTK+ test program, checking why..."
28343 ac_save_CFLAGS="$CFLAGS"
28344 ac_save_LIBS="$LIBS"
28345 CFLAGS="$CFLAGS $GTK_CFLAGS"
28346 LIBS="$LIBS $GTK_LIBS"
28347 cat >conftest.$ac_ext <<_ACEOF
28348/* confdefs.h. */
28349_ACEOF
28350cat confdefs.h >>conftest.$ac_ext
28351cat >>conftest.$ac_ext <<_ACEOF
28352/* end confdefs.h. */
28353
28354#include <gtk/gtk.h>
28355#include <stdio.h>
28356
28357int
28358main ()
28359{
28360 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
28361 ;
28362 return 0;
28363}
28364_ACEOF
28365rm -f conftest.$ac_objext conftest$ac_exeext
28366if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28367 (eval $ac_link) 2>conftest.er1
a848cd7e 28368 ac_status=$?
ac1cb8d3
VS
28369 grep -v '^ *+' conftest.er1 >conftest.err
28370 rm -f conftest.er1
28371 cat conftest.err >&5
a848cd7e
SC
28372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28373 (exit $ac_status); } &&
bb9e79c0 28374 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28376 (eval $ac_try) 2>&5
28377 ac_status=$?
28378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28379 (exit $ac_status); }; } &&
28380 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28382 (eval $ac_try) 2>&5
28383 ac_status=$?
28384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28385 (exit $ac_status); }; }; then
28386 echo "*** The test program compiled, but did not run. This usually means"
28387 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
28388 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
28389 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
28390 echo "*** to the installed location Also, make sure you have run ldconfig if that"
28391 echo "*** is required on your system"
28392 echo "***"
28393 echo "*** If you have an old version installed, it is best to remove it, although"
28394 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
28395else
28396 echo "$as_me: failed program was:" >&5
28397sed 's/^/| /' conftest.$ac_ext >&5
28398
28399 echo "*** The test program failed to compile or link. See the file config.log for the"
28400 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
28401fi
ac1cb8d3
VS
28402rm -f conftest.err conftest.$ac_objext \
28403 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28404 CFLAGS="$ac_save_CFLAGS"
28405 LIBS="$ac_save_LIBS"
28406 fi
28407 fi
28408 GTK_CFLAGS=""
28409 GTK_LIBS=""
28410 :
28411 fi
28412
28413
28414 rm -f conf.gtktest
28415
5001df0d
MW
28416
28417 case "${host}" in
28418 *-*-solaris2* )
28419 if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
28420 GTK_CFLAGS=`echo $GTK_CFLAGS | sed 's/-mt//'`
28421 GTK_LIBS=`echo $GTK_LIBS | sed 's/-mt//'`
28422 fi
28423 if test "$wxUSE_SHARED" != "yes"; then
28424 GTK_LIBS="$GTK_LIBS -lX11"
28425 fi
28426 esac
f597b41c
MW
28427 fi
28428
f34ca037
MW
28429 if test -z "$wx_cv_lib_gtk"; then
28430 if test "x$wxGTK_VERSION" = "x1" -o "x$wxGTK_VERSION" = "xany" ; then
a848cd7e
SC
28431
28432# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
28433if test "${with_gtk_prefix+set}" = set; then
28434 withval="$with_gtk_prefix"
28435 gtk_config_prefix="$withval"
28436else
28437 gtk_config_prefix=""
28438fi;
28439
28440# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
28441if test "${with_gtk_exec_prefix+set}" = set; then
28442 withval="$with_gtk_exec_prefix"
28443 gtk_config_exec_prefix="$withval"
28444else
28445 gtk_config_exec_prefix=""
28446fi;
28447# Check whether --enable-gtktest or --disable-gtktest was given.
28448if test "${enable_gtktest+set}" = set; then
28449 enableval="$enable_gtktest"
28450
28451else
28452 enable_gtktest=yes
28453fi;
28454
28455 for module in . $GTK_MODULES
28456 do
28457 case "$module" in
28458 gthread)
28459 gtk_config_args="$gtk_config_args gthread"
28460 ;;
28461 esac
28462 done
28463
28464 if test x$gtk_config_exec_prefix != x ; then
28465 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
28466 if test x${GTK_CONFIG+set} != xset ; then
28467 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
28468 fi
28469 fi
28470 if test x$gtk_config_prefix != x ; then
28471 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
28472 if test x${GTK_CONFIG+set} != xset ; then
28473 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
28474 fi
28475 fi
28476
28477 # Extract the first word of "gtk-config", so it can be a program name with args.
28478set dummy gtk-config; ac_word=$2
28479echo "$as_me:$LINENO: checking for $ac_word" >&5
28480echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28481if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
28482 echo $ECHO_N "(cached) $ECHO_C" >&6
28483else
28484 case $GTK_CONFIG in
28485 [\\/]* | ?:[\\/]*)
28486 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
28487 ;;
28488 *)
28489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28490for as_dir in $PATH
28491do
28492 IFS=$as_save_IFS
28493 test -z "$as_dir" && as_dir=.
28494 for ac_exec_ext in '' $ac_executable_extensions; do
28495 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28496 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28497 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28498 break 2
28499 fi
28500done
28501done
28502
28503 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
28504 ;;
28505esac
28506fi
28507GTK_CONFIG=$ac_cv_path_GTK_CONFIG
28508
28509if test -n "$GTK_CONFIG"; then
28510 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
28511echo "${ECHO_T}$GTK_CONFIG" >&6
28512else
28513 echo "$as_me:$LINENO: result: no" >&5
28514echo "${ECHO_T}no" >&6
28515fi
28516
28517 min_gtk_version=1.2.7
28518 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
28519echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
28520 no_gtk=""
28521 if test "$GTK_CONFIG" = "no" ; then
28522 no_gtk=yes
28523 else
28524 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
28525 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
28526 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
28527 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
28528 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
28529 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
28530 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
28531 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
28532 if test "x$enable_gtktest" = "xyes" ; then
28533 ac_save_CFLAGS="$CFLAGS"
28534 ac_save_LIBS="$LIBS"
28535 CFLAGS="$CFLAGS $GTK_CFLAGS"
28536 LIBS="$GTK_LIBS $LIBS"
28537 rm -f conf.gtktest
28538 if test "$cross_compiling" = yes; then
28539 echo $ac_n "cross compiling; assumed OK... $ac_c"
28540else
28541 cat >conftest.$ac_ext <<_ACEOF
28542/* confdefs.h. */
28543_ACEOF
28544cat confdefs.h >>conftest.$ac_ext
28545cat >>conftest.$ac_ext <<_ACEOF
28546/* end confdefs.h. */
28547
28548#include <gtk/gtk.h>
28549#include <stdio.h>
28550#include <stdlib.h>
28551
28552int
28553main ()
28554{
28555 int major, minor, micro;
28556 char *tmp_version;
28557
28558 system ("touch conf.gtktest");
28559
28560 /* HP/UX 9 (%@#!) writes to sscanf strings */
28561 tmp_version = g_strdup("$min_gtk_version");
28562 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
28563 printf("%s, bad version string\n", "$min_gtk_version");
28564 exit(1);
28565 }
28566
28567 if ((gtk_major_version != $gtk_config_major_version) ||
28568 (gtk_minor_version != $gtk_config_minor_version) ||
28569 (gtk_micro_version != $gtk_config_micro_version))
28570 {
28571 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
28572 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
28573 gtk_major_version, gtk_minor_version, gtk_micro_version);
28574 printf ("*** was found! If gtk-config was correct, then it is best\n");
28575 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
28576 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
28577 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
28578 printf("*** required on your system.\n");
28579 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
28580 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
28581 printf("*** before re-running configure\n");
28582 }
28583#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
28584 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
28585 (gtk_minor_version != GTK_MINOR_VERSION) ||
28586 (gtk_micro_version != GTK_MICRO_VERSION))
28587 {
28588 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
28589 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
28590 printf("*** library (version %d.%d.%d)\n",
28591 gtk_major_version, gtk_minor_version, gtk_micro_version);
28592 }
28593#endif /* defined (GTK_MAJOR_VERSION) ... */
28594 else
28595 {
28596 if ((gtk_major_version > major) ||
28597 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
28598 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
28599 {
28600 return 0;
28601 }
28602 else
28603 {
28604 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
28605 gtk_major_version, gtk_minor_version, gtk_micro_version);
28606 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
28607 major, minor, micro);
28608 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
28609 printf("***\n");
28610 printf("*** If you have already installed a sufficiently new version, this error\n");
28611 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
28612 printf("*** being found. The easiest way to fix this is to remove the old version\n");
28613 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
28614 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
28615 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
28616 printf("*** so that the correct libraries are found at run-time))\n");
28617 }
28618 }
28619 return 1;
28620}
28621
28622_ACEOF
28623rm -f conftest$ac_exeext
28624if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28625 (eval $ac_link) 2>&5
28626 ac_status=$?
28627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28628 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28630 (eval $ac_try) 2>&5
28631 ac_status=$?
28632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28633 (exit $ac_status); }; }; then
28634 :
28635else
28636 echo "$as_me: program exited with status $ac_status" >&5
28637echo "$as_me: failed program was:" >&5
28638sed 's/^/| /' conftest.$ac_ext >&5
28639
28640( exit $ac_status )
28641no_gtk=yes
28642fi
ac1cb8d3 28643rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28644fi
28645 CFLAGS="$ac_save_CFLAGS"
28646 LIBS="$ac_save_LIBS"
28647 fi
28648 fi
28649 if test "x$no_gtk" = x ; then
28650 echo "$as_me:$LINENO: result: yes" >&5
28651echo "${ECHO_T}yes" >&6
28652 wx_cv_lib_gtk=1.2.7
28653 else
28654 echo "$as_me:$LINENO: result: no" >&5
28655echo "${ECHO_T}no" >&6
28656 if test "$GTK_CONFIG" = "no" ; then
28657 echo "*** The gtk-config script installed by GTK could not be found"
28658 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
28659 echo "*** your path, or set the GTK_CONFIG environment variable to the"
28660 echo "*** full path to gtk-config."
28661 else
28662 if test -f conf.gtktest ; then
28663 :
28664 else
28665 echo "*** Could not run GTK test program, checking why..."
28666 CFLAGS="$CFLAGS $GTK_CFLAGS"
28667 LIBS="$LIBS $GTK_LIBS"
28668 cat >conftest.$ac_ext <<_ACEOF
28669/* confdefs.h. */
28670_ACEOF
28671cat confdefs.h >>conftest.$ac_ext
28672cat >>conftest.$ac_ext <<_ACEOF
28673/* end confdefs.h. */
28674
28675#include <gtk/gtk.h>
28676#include <stdio.h>
28677
28678int
28679main ()
28680{
28681 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
28682 ;
28683 return 0;
28684}
28685_ACEOF
28686rm -f conftest.$ac_objext conftest$ac_exeext
28687if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28688 (eval $ac_link) 2>conftest.er1
a848cd7e 28689 ac_status=$?
ac1cb8d3
VS
28690 grep -v '^ *+' conftest.er1 >conftest.err
28691 rm -f conftest.er1
28692 cat conftest.err >&5
a848cd7e
SC
28693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28694 (exit $ac_status); } &&
bb9e79c0 28695 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28697 (eval $ac_try) 2>&5
28698 ac_status=$?
28699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28700 (exit $ac_status); }; } &&
28701 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28703 (eval $ac_try) 2>&5
28704 ac_status=$?
28705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28706 (exit $ac_status); }; }; then
28707 echo "*** The test program compiled, but did not run. This usually means"
28708 echo "*** that the run-time linker is not finding GTK or finding the wrong"
28709 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
28710 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
28711 echo "*** to the installed location Also, make sure you have run ldconfig if that"
28712 echo "*** is required on your system"
28713 echo "***"
28714 echo "*** If you have an old version installed, it is best to remove it, although"
28715 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
28716 echo "***"
28717 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
28718 echo "*** came with the system with the command"
28719 echo "***"
28720 echo "*** rpm --erase --nodeps gtk gtk-devel"
28721else
28722 echo "$as_me: failed program was:" >&5
28723sed 's/^/| /' conftest.$ac_ext >&5
28724
28725 echo "*** The test program failed to compile or link. See the file config.log for the"
28726 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
28727 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
28728 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
28729fi
ac1cb8d3
VS
28730rm -f conftest.err conftest.$ac_objext \
28731 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28732 CFLAGS="$ac_save_CFLAGS"
28733 LIBS="$ac_save_LIBS"
28734 fi
28735 fi
28736 GTK_CFLAGS=""
28737 GTK_LIBS=""
28738 :
28739 fi
28740
28741
28742 rm -f conf.gtktest
28743
28744
f34ca037 28745 if test -z "$wx_cv_lib_gtk"; then
a848cd7e
SC
28746
28747# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
28748if test "${with_gtk_prefix+set}" = set; then
28749 withval="$with_gtk_prefix"
28750 gtk_config_prefix="$withval"
28751else
28752 gtk_config_prefix=""
28753fi;
28754
28755# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
28756if test "${with_gtk_exec_prefix+set}" = set; then
28757 withval="$with_gtk_exec_prefix"
28758 gtk_config_exec_prefix="$withval"
28759else
28760 gtk_config_exec_prefix=""
28761fi;
28762# Check whether --enable-gtktest or --disable-gtktest was given.
28763if test "${enable_gtktest+set}" = set; then
28764 enableval="$enable_gtktest"
28765
28766else
28767 enable_gtktest=yes
28768fi;
28769
28770 for module in . $GTK_MODULES
28771 do
28772 case "$module" in
28773 gthread)
28774 gtk_config_args="$gtk_config_args gthread"
28775 ;;
28776 esac
28777 done
28778
28779 if test x$gtk_config_exec_prefix != x ; then
28780 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
28781 if test x${GTK_CONFIG+set} != xset ; then
28782 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
28783 fi
28784 fi
28785 if test x$gtk_config_prefix != x ; then
28786 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
28787 if test x${GTK_CONFIG+set} != xset ; then
28788 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
28789 fi
28790 fi
28791
28792 # Extract the first word of "gtk-config", so it can be a program name with args.
28793set dummy gtk-config; ac_word=$2
28794echo "$as_me:$LINENO: checking for $ac_word" >&5
28795echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28796if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
28797 echo $ECHO_N "(cached) $ECHO_C" >&6
28798else
28799 case $GTK_CONFIG in
28800 [\\/]* | ?:[\\/]*)
28801 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
28802 ;;
28803 *)
28804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28805for as_dir in $PATH
28806do
28807 IFS=$as_save_IFS
28808 test -z "$as_dir" && as_dir=.
28809 for ac_exec_ext in '' $ac_executable_extensions; do
28810 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28811 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28812 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28813 break 2
28814 fi
28815done
28816done
28817
28818 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
28819 ;;
28820esac
28821fi
28822GTK_CONFIG=$ac_cv_path_GTK_CONFIG
28823
28824if test -n "$GTK_CONFIG"; then
28825 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
28826echo "${ECHO_T}$GTK_CONFIG" >&6
28827else
28828 echo "$as_me:$LINENO: result: no" >&5
28829echo "${ECHO_T}no" >&6
28830fi
28831
28832 min_gtk_version=1.2.3
28833 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
28834echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
28835 no_gtk=""
28836 if test "$GTK_CONFIG" = "no" ; then
28837 no_gtk=yes
28838 else
28839 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
28840 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
28841 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
28842 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
28843 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
28844 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
28845 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
28846 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
28847 if test "x$enable_gtktest" = "xyes" ; then
28848 ac_save_CFLAGS="$CFLAGS"
28849 ac_save_LIBS="$LIBS"
28850 CFLAGS="$CFLAGS $GTK_CFLAGS"
28851 LIBS="$GTK_LIBS $LIBS"
28852 rm -f conf.gtktest
28853 if test "$cross_compiling" = yes; then
28854 echo $ac_n "cross compiling; assumed OK... $ac_c"
28855else
28856 cat >conftest.$ac_ext <<_ACEOF
28857/* confdefs.h. */
28858_ACEOF
28859cat confdefs.h >>conftest.$ac_ext
28860cat >>conftest.$ac_ext <<_ACEOF
28861/* end confdefs.h. */
28862
28863#include <gtk/gtk.h>
28864#include <stdio.h>
28865#include <stdlib.h>
28866
28867int
28868main ()
28869{
28870 int major, minor, micro;
28871 char *tmp_version;
28872
28873 system ("touch conf.gtktest");
28874
28875 /* HP/UX 9 (%@#!) writes to sscanf strings */
28876 tmp_version = g_strdup("$min_gtk_version");
28877 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
28878 printf("%s, bad version string\n", "$min_gtk_version");
28879 exit(1);
28880 }
28881
28882 if ((gtk_major_version != $gtk_config_major_version) ||
28883 (gtk_minor_version != $gtk_config_minor_version) ||
28884 (gtk_micro_version != $gtk_config_micro_version))
28885 {
28886 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
28887 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
28888 gtk_major_version, gtk_minor_version, gtk_micro_version);
28889 printf ("*** was found! If gtk-config was correct, then it is best\n");
28890 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
28891 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
28892 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
28893 printf("*** required on your system.\n");
28894 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
28895 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
28896 printf("*** before re-running configure\n");
28897 }
28898#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
28899 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
28900 (gtk_minor_version != GTK_MINOR_VERSION) ||
28901 (gtk_micro_version != GTK_MICRO_VERSION))
28902 {
28903 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
28904 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
28905 printf("*** library (version %d.%d.%d)\n",
28906 gtk_major_version, gtk_minor_version, gtk_micro_version);
28907 }
28908#endif /* defined (GTK_MAJOR_VERSION) ... */
28909 else
28910 {
28911 if ((gtk_major_version > major) ||
28912 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
28913 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
28914 {
28915 return 0;
28916 }
28917 else
28918 {
28919 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
28920 gtk_major_version, gtk_minor_version, gtk_micro_version);
28921 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
28922 major, minor, micro);
28923 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
28924 printf("***\n");
28925 printf("*** If you have already installed a sufficiently new version, this error\n");
28926 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
28927 printf("*** being found. The easiest way to fix this is to remove the old version\n");
28928 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
28929 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
28930 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
28931 printf("*** so that the correct libraries are found at run-time))\n");
28932 }
28933 }
28934 return 1;
28935}
28936
28937_ACEOF
28938rm -f conftest$ac_exeext
28939if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28940 (eval $ac_link) 2>&5
28941 ac_status=$?
28942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28943 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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); }; }; then
28949 :
28950else
28951 echo "$as_me: program exited with status $ac_status" >&5
28952echo "$as_me: failed program was:" >&5
28953sed 's/^/| /' conftest.$ac_ext >&5
28954
28955( exit $ac_status )
28956no_gtk=yes
28957fi
ac1cb8d3 28958rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28959fi
28960 CFLAGS="$ac_save_CFLAGS"
28961 LIBS="$ac_save_LIBS"
28962 fi
28963 fi
28964 if test "x$no_gtk" = x ; then
28965 echo "$as_me:$LINENO: result: yes" >&5
28966echo "${ECHO_T}yes" >&6
28967 wx_cv_lib_gtk=1.2.3
28968 else
28969 echo "$as_me:$LINENO: result: no" >&5
28970echo "${ECHO_T}no" >&6
28971 if test "$GTK_CONFIG" = "no" ; then
28972 echo "*** The gtk-config script installed by GTK could not be found"
28973 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
28974 echo "*** your path, or set the GTK_CONFIG environment variable to the"
28975 echo "*** full path to gtk-config."
28976 else
28977 if test -f conf.gtktest ; then
28978 :
28979 else
28980 echo "*** Could not run GTK test program, checking why..."
28981 CFLAGS="$CFLAGS $GTK_CFLAGS"
28982 LIBS="$LIBS $GTK_LIBS"
28983 cat >conftest.$ac_ext <<_ACEOF
28984/* confdefs.h. */
28985_ACEOF
28986cat confdefs.h >>conftest.$ac_ext
28987cat >>conftest.$ac_ext <<_ACEOF
28988/* end confdefs.h. */
28989
28990#include <gtk/gtk.h>
28991#include <stdio.h>
28992
28993int
28994main ()
28995{
28996 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
28997 ;
28998 return 0;
28999}
29000_ACEOF
29001rm -f conftest.$ac_objext conftest$ac_exeext
29002if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29003 (eval $ac_link) 2>conftest.er1
a848cd7e 29004 ac_status=$?
ac1cb8d3
VS
29005 grep -v '^ *+' conftest.er1 >conftest.err
29006 rm -f conftest.er1
29007 cat conftest.err >&5
a848cd7e
SC
29008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29009 (exit $ac_status); } &&
bb9e79c0 29010 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29012 (eval $ac_try) 2>&5
29013 ac_status=$?
29014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29015 (exit $ac_status); }; } &&
29016 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29018 (eval $ac_try) 2>&5
29019 ac_status=$?
29020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29021 (exit $ac_status); }; }; then
29022 echo "*** The test program compiled, but did not run. This usually means"
29023 echo "*** that the run-time linker is not finding GTK or finding the wrong"
29024 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
29025 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
29026 echo "*** to the installed location Also, make sure you have run ldconfig if that"
29027 echo "*** is required on your system"
29028 echo "***"
29029 echo "*** If you have an old version installed, it is best to remove it, although"
29030 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
29031 echo "***"
29032 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
29033 echo "*** came with the system with the command"
29034 echo "***"
29035 echo "*** rpm --erase --nodeps gtk gtk-devel"
29036else
29037 echo "$as_me: failed program was:" >&5
29038sed 's/^/| /' conftest.$ac_ext >&5
29039
29040 echo "*** The test program failed to compile or link. See the file config.log for the"
29041 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
29042 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
29043 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
29044fi
ac1cb8d3
VS
29045rm -f conftest.err conftest.$ac_objext \
29046 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29047 CFLAGS="$ac_save_CFLAGS"
29048 LIBS="$ac_save_LIBS"
29049 fi
29050 fi
29051 GTK_CFLAGS=""
29052 GTK_LIBS=""
29053 :
29054 fi
29055
29056
29057 rm -f conf.gtktest
29058
f34ca037 29059 fi
a848cd7e
SC
29060 fi
29061 fi
29062
29063 if test -z "$wx_cv_lib_gtk"; then
29064 wx_cv_lib_gtk=none
29065 else
29066 wx_cv_cflags_gtk=$GTK_CFLAGS
d2822091 29067 wx_cv_libs_gtk=`echo $GTK_LIBS | sed -e 's/ -l[^ ]*cairo[^ ]*//g'`
a848cd7e
SC
29068 fi
29069
29070
29071fi
29072
29073
29074 if test "$gtk_version_cached" = 1; then
29075 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
29076echo "${ECHO_T}$wx_cv_lib_gtk" >&6
29077 fi
29078
29079 case "$wx_cv_lib_gtk" in
29080 2.0) WXGTK20=1
29081 TOOLKIT_VERSION=2
29082 ;;
29083 1.2.7) WXGTK127=1
29084 WXGTK12=1
29085 ;;
29086 1.2.3) WXGTK12=1
29087 ;;
29088 *) { { echo "$as_me:$LINENO: error:
f597b41c
MW
29089The development files for GTK+ were not found. For GTK+ 2, please
29090ensure that pkg-config is in the path and that gtk+-2.0.pc is
29091installed. For GTK+ 1.2 please check that gtk-config is in the path,
29092and that the version is 1.2.3 or above. Also check that the
29093libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
29094--libs' are in the LD_LIBRARY_PATH or equivalent.
a848cd7e
SC
29095 " >&5
29096echo "$as_me: error:
f597b41c
MW
29097The development files for GTK+ were not found. For GTK+ 2, please
29098ensure that pkg-config is in the path and that gtk+-2.0.pc is
29099installed. For GTK+ 1.2 please check that gtk-config is in the path,
29100and that the version is 1.2.3 or above. Also check that the
29101libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
29102--libs' are in the LD_LIBRARY_PATH or equivalent.
a848cd7e
SC
29103 " >&2;}
29104 { (exit 1); exit 1; }; }
29105 ;;
29106 esac
29107
29108 if test "$WXGTK20" = 1; then
6954625c 29109 save_CFLAGS="$CFLAGS"
304205f1 29110 save_LIBS="$LIBS"
6954625c 29111 CFLAGS="$wx_cv_cflags_gtk $CFLAGS"
abc736fd 29112 LIBS="$LIBS $wx_cv_libs_gtk"
304205f1 29113
58e65954
MW
29114 echo "$as_me:$LINENO: checking whether gtk_icon_size_lookup is declared" >&5
29115echo $ECHO_N "checking whether gtk_icon_size_lookup is declared... $ECHO_C" >&6
29116if test "${ac_cv_have_decl_gtk_icon_size_lookup+set}" = set; then
29117 echo $ECHO_N "(cached) $ECHO_C" >&6
29118else
29119 cat >conftest.$ac_ext <<_ACEOF
304205f1
VS
29120/* confdefs.h. */
29121_ACEOF
29122cat confdefs.h >>conftest.$ac_ext
29123cat >>conftest.$ac_ext <<_ACEOF
29124/* end confdefs.h. */
58e65954 29125#include <gtk/gtk.h>
304205f1 29126
d12aef51
VZ
29127int
29128main ()
29129{
58e65954
MW
29130#ifndef gtk_icon_size_lookup
29131 char *p = (char *) gtk_icon_size_lookup;
29132#endif
abc736fd
MW
29133
29134 ;
29135 return 0;
29136}
29137_ACEOF
29138rm -f conftest.$ac_objext
29139if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29140 (eval $ac_compile) 2>conftest.er1
29141 ac_status=$?
29142 grep -v '^ *+' conftest.er1 >conftest.err
29143 rm -f conftest.er1
29144 cat conftest.err >&5
29145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29146 (exit $ac_status); } &&
bb9e79c0 29147 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
abc736fd
MW
29148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29149 (eval $ac_try) 2>&5
29150 ac_status=$?
29151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29152 (exit $ac_status); }; } &&
29153 { ac_try='test -s conftest.$ac_objext'
29154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29155 (eval $ac_try) 2>&5
29156 ac_status=$?
29157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29158 (exit $ac_status); }; }; then
58e65954 29159 ac_cv_have_decl_gtk_icon_size_lookup=yes
abc736fd
MW
29160else
29161 echo "$as_me: failed program was:" >&5
29162sed 's/^/| /' conftest.$ac_ext >&5
29163
58e65954
MW
29164ac_cv_have_decl_gtk_icon_size_lookup=no
29165fi
29166rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29167fi
29168echo "$as_me:$LINENO: result: $ac_cv_have_decl_gtk_icon_size_lookup" >&5
29169echo "${ECHO_T}$ac_cv_have_decl_gtk_icon_size_lookup" >&6
29170if test $ac_cv_have_decl_gtk_icon_size_lookup = yes; then
abc736fd 29171
58e65954
MW
29172cat >>confdefs.h <<_ACEOF
29173#define HAVE_DECL_GTK_ICON_SIZE_LOOKUP 1
abc736fd
MW
29174_ACEOF
29175
58e65954
MW
29176
29177else
29178 cat >>confdefs.h <<_ACEOF
29179#define HAVE_DECL_GTK_ICON_SIZE_LOOKUP 0
29180_ACEOF
29181
29182cat >>confdefs.h <<\_ACEOF
29183#define NEED_GTK_ICON_SIZE_LOOKUP 1
29184_ACEOF
abc736fd
MW
29185
29186fi
58e65954
MW
29187
29188
abc736fd 29189
e9263684
VZ
29190 echo "$as_me:$LINENO: checking if GTK+ is version >= 2.6" >&5
29191echo $ECHO_N "checking if GTK+ is version >= 2.6... $ECHO_C" >&6
29192 cat >conftest.$ac_ext <<_ACEOF
29193/* confdefs.h. */
29194_ACEOF
29195cat confdefs.h >>conftest.$ac_ext
29196cat >>conftest.$ac_ext <<_ACEOF
29197/* end confdefs.h. */
29198
29199 #include <gtk/gtk.h>
29200
29201int
29202main ()
29203{
29204
29205 #if !GTK_CHECK_VERSION(2,6,0)
29206 Not GTK+ 2.6
29207 #endif
29208
29209 ;
29210 return 0;
29211}
29212_ACEOF
29213rm -f conftest.$ac_objext
29214if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29215 (eval $ac_compile) 2>conftest.er1
29216 ac_status=$?
29217 grep -v '^ *+' conftest.er1 >conftest.err
29218 rm -f conftest.er1
29219 cat conftest.err >&5
29220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29221 (exit $ac_status); } &&
bb9e79c0 29222 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
e9263684
VZ
29223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29224 (eval $ac_try) 2>&5
29225 ac_status=$?
29226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29227 (exit $ac_status); }; } &&
29228 { ac_try='test -s conftest.$ac_objext'
29229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29230 (eval $ac_try) 2>&5
29231 ac_status=$?
29232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29233 (exit $ac_status); }; }; then
29234
29235 cat >>confdefs.h <<\_ACEOF
29236#define __WXGTK26__ 1
29237_ACEOF
29238
29239 cat >>confdefs.h <<\_ACEOF
29240#define __WXGTK24__ 1
29241_ACEOF
29242
29243 echo "$as_me:$LINENO: result: yes" >&5
29244echo "${ECHO_T}yes" >&6
29245 ac_wxgtk26=1
29246
29247else
29248 echo "$as_me: failed program was:" >&5
29249sed 's/^/| /' conftest.$ac_ext >&5
29250
29251
29252 echo "$as_me:$LINENO: result: no" >&5
29253echo "${ECHO_T}no" >&6
29254 ac_wxgtk26=0
29255
29256fi
29257rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29258
29259 if test "$ac_wxgtk26" = 0; then
9755e73b
VS
29260 echo "$as_me:$LINENO: checking if GTK+ is version >= 2.4" >&5
29261echo $ECHO_N "checking if GTK+ is version >= 2.4... $ECHO_C" >&6
29262 cat >conftest.$ac_ext <<_ACEOF
29263/* confdefs.h. */
29264_ACEOF
29265cat confdefs.h >>conftest.$ac_ext
29266cat >>conftest.$ac_ext <<_ACEOF
29267/* end confdefs.h. */
29268
29269 #include <gtk/gtk.h>
29270
29271int
29272main ()
29273{
29274
29275 #if !GTK_CHECK_VERSION(2,4,0)
04e525a0 29276 Not GTK+ 2.4
9755e73b
VS
29277 #endif
29278
29279 ;
29280 return 0;
29281}
29282_ACEOF
29283rm -f conftest.$ac_objext
29284if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29285 (eval $ac_compile) 2>conftest.er1
29286 ac_status=$?
29287 grep -v '^ *+' conftest.er1 >conftest.err
29288 rm -f conftest.er1
29289 cat conftest.err >&5
29290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29291 (exit $ac_status); } &&
bb9e79c0 29292 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9755e73b
VS
29293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29294 (eval $ac_try) 2>&5
29295 ac_status=$?
29296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29297 (exit $ac_status); }; } &&
29298 { ac_try='test -s conftest.$ac_objext'
29299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29300 (eval $ac_try) 2>&5
29301 ac_status=$?
29302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29303 (exit $ac_status); }; }; then
29304
29305 cat >>confdefs.h <<\_ACEOF
29306#define __WXGTK24__ 1
29307_ACEOF
29308
29309 echo "$as_me:$LINENO: result: yes" >&5
29310echo "${ECHO_T}yes" >&6
29311
29312else
29313 echo "$as_me: failed program was:" >&5
29314sed 's/^/| /' conftest.$ac_ext >&5
29315
29316
29317 echo "$as_me:$LINENO: result: no" >&5
29318echo "${ECHO_T}no" >&6
29319
29320fi
29321rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e9263684 29322 fi
9755e73b 29323
6954625c 29324 CFLAGS="$save_CFLAGS"
304205f1 29325 LIBS="$save_LIBS"
a848cd7e
SC
29326 else
29327 if test "$wxUSE_UNICODE" = "yes"; then
29328 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
29329echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
29330 wxUSE_UNICODE=no
29331 fi
64b75e64
RD
29332
29333 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
29334echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
29335if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
29336 echo $ECHO_N "(cached) $ECHO_C" >&6
29337else
29338 ac_check_lib_save_LIBS=$LIBS
29339LIBS="-lgdk $LIBS"
29340cat >conftest.$ac_ext <<_ACEOF
29341/* confdefs.h. */
29342_ACEOF
29343cat confdefs.h >>conftest.$ac_ext
29344cat >>conftest.$ac_ext <<_ACEOF
29345/* end confdefs.h. */
29346
29347/* Override any gcc2 internal prototype to avoid an error. */
29348#ifdef __cplusplus
29349extern "C"
29350#endif
29351/* We use char because int might match the return type of a gcc2
29352 builtin and then its argument prototype would still apply. */
29353char gdk_im_open ();
29354int
29355main ()
29356{
29357gdk_im_open ();
29358 ;
29359 return 0;
29360}
29361_ACEOF
29362rm -f conftest.$ac_objext conftest$ac_exeext
29363if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29364 (eval $ac_link) 2>conftest.er1
29365 ac_status=$?
29366 grep -v '^ *+' conftest.er1 >conftest.err
29367 rm -f conftest.er1
29368 cat conftest.err >&5
29369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29370 (exit $ac_status); } &&
bb9e79c0 29371 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
64b75e64
RD
29372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29373 (eval $ac_try) 2>&5
29374 ac_status=$?
29375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29376 (exit $ac_status); }; } &&
29377 { ac_try='test -s conftest$ac_exeext'
29378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29379 (eval $ac_try) 2>&5
29380 ac_status=$?
29381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29382 (exit $ac_status); }; }; then
29383 ac_cv_lib_gdk_gdk_im_open=yes
29384else
29385 echo "$as_me: failed program was:" >&5
29386sed 's/^/| /' conftest.$ac_ext >&5
29387
29388ac_cv_lib_gdk_gdk_im_open=no
29389fi
29390rm -f conftest.err conftest.$ac_objext \
29391 conftest$ac_exeext conftest.$ac_ext
29392LIBS=$ac_check_lib_save_LIBS
29393fi
29394echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
29395echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
29396if test $ac_cv_lib_gdk_gdk_im_open = yes; then
29397 cat >>confdefs.h <<\_ACEOF
29398#define HAVE_XIM 1
29399_ACEOF
29400
29401fi
29402
a848cd7e
SC
29403 fi
29404
e56f4f9e
VZ
29405 ac_ext=cc
29406ac_cpp='$CXXCPP $CPPFLAGS'
29407ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29408ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29409ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29410
29411
a848cd7e
SC
29412 if test "$USE_DARWIN" != 1; then
29413
29414for ac_func in poll
29415do
29416as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29417echo "$as_me:$LINENO: checking for $ac_func" >&5
29418echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29419if eval "test \"\${$as_ac_var+set}\" = set"; then
29420 echo $ECHO_N "(cached) $ECHO_C" >&6
29421else
29422 cat >conftest.$ac_ext <<_ACEOF
29423/* confdefs.h. */
29424_ACEOF
29425cat confdefs.h >>conftest.$ac_ext
29426cat >>conftest.$ac_ext <<_ACEOF
29427/* end confdefs.h. */
ac1cb8d3
VS
29428/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29429 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29430#define $ac_func innocuous_$ac_func
29431
a848cd7e
SC
29432/* System header to define __stub macros and hopefully few prototypes,
29433 which can conflict with char $ac_func (); below.
29434 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29435 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29436
a848cd7e
SC
29437#ifdef __STDC__
29438# include <limits.h>
29439#else
29440# include <assert.h>
29441#endif
ac1cb8d3
VS
29442
29443#undef $ac_func
29444
a848cd7e
SC
29445/* Override any gcc2 internal prototype to avoid an error. */
29446#ifdef __cplusplus
29447extern "C"
29448{
29449#endif
29450/* We use char because int might match the return type of a gcc2
29451 builtin and then its argument prototype would still apply. */
29452char $ac_func ();
29453/* The GNU C library defines this for functions which it implements
29454 to always fail with ENOSYS. Some functions are actually named
29455 something starting with __ and the normal name is an alias. */
29456#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29457choke me
29458#else
29459char (*f) () = $ac_func;
29460#endif
29461#ifdef __cplusplus
29462}
29463#endif
29464
29465int
29466main ()
29467{
29468return f != $ac_func;
29469 ;
29470 return 0;
29471}
29472_ACEOF
29473rm -f conftest.$ac_objext conftest$ac_exeext
29474if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29475 (eval $ac_link) 2>conftest.er1
a848cd7e 29476 ac_status=$?
ac1cb8d3
VS
29477 grep -v '^ *+' conftest.er1 >conftest.err
29478 rm -f conftest.er1
29479 cat conftest.err >&5
a848cd7e
SC
29480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29481 (exit $ac_status); } &&
bb9e79c0 29482 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29484 (eval $ac_try) 2>&5
29485 ac_status=$?
29486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29487 (exit $ac_status); }; } &&
29488 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29490 (eval $ac_try) 2>&5
29491 ac_status=$?
29492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29493 (exit $ac_status); }; }; then
29494 eval "$as_ac_var=yes"
29495else
29496 echo "$as_me: failed program was:" >&5
29497sed 's/^/| /' conftest.$ac_ext >&5
29498
29499eval "$as_ac_var=no"
29500fi
ac1cb8d3
VS
29501rm -f conftest.err conftest.$ac_objext \
29502 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29503fi
29504echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29505echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29506if test `eval echo '${'$as_ac_var'}'` = yes; then
29507 cat >>confdefs.h <<_ACEOF
29508#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29509_ACEOF
29510
29511fi
29512done
29513
29514 fi
29515
29516 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
29517 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
29518
29519 AFMINSTALL=afminstall
29520 TOOLKIT=GTK
29521 GUIDIST=GTK_DIST
29522
a848cd7e
SC
29523 if test "$wxUSE_GPE" = "yes"; then
29524 echo "$as_me:$LINENO: checking for gpewidget library" >&5
29525echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6
29526
0ad5d837
VZ
29527 ac_find_libraries=
29528 for ac_dir in $SEARCH_LIB;
a848cd7e 29529 do
3eca31dc 29530 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
29531 if test -f "$ac_dir/libgpewidget.$ac_extension"; then
29532 ac_find_libraries=$ac_dir
29533 break 2
29534 fi
29535 done
29536 done
29537
29538 if test "$ac_find_libraries" != "" ; then
29539
0ad5d837 29540 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
29541 ac_path_to_link=""
29542 else
0ad5d837
VZ
29543 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
29544 result=$?
29545 if test $result = 0; then
29546 ac_path_to_link=""
29547 else
29548 ac_path_to_link=" -L$ac_find_libraries"
29549 fi
a848cd7e
SC
29550 fi
29551
29552 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
29553 WXGPE=1
0ad5d837
VZ
29554 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
29555echo "${ECHO_T}found in $ac_find_libraries" >&6
a848cd7e
SC
29556 else
29557 echo "$as_me:$LINENO: result: not found" >&5
29558echo "${ECHO_T}not found" >&6
29559 fi
29560
29561 fi
29562 fi
29563
29564 if test "$wxUSE_MGL" = 1; then
29565 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
29566echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
29567 if test "x$MGL_ROOT" = x ; then
29568 echo "$as_me:$LINENO: result: not found" >&5
29569echo "${ECHO_T}not found" >&6
29570 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
29571echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
29572 { (exit 1); exit 1; }; }
29573 else
29574 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
29575echo "${ECHO_T}$MGL_ROOT" >&6
29576 fi
29577
29578 echo "$as_me:$LINENO: checking for libmgl location" >&5
29579echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
29580 case "${host}" in
29581 *-*-linux* )
29582 if test "x$wxUSE_SHARED" = xyes ; then
29583 mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
29584 else
29585 mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
29586 fi
29587 ;;
29588 *-pc-msdosdjgpp )
29589 mgl_os_candidates="dos32/dj2"
29590 ;;
29591 *)
29592 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
29593echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
29594 { (exit 1); exit 1; }; }
29595 esac
29596
29597 mgl_lib_type=""
29598 mgl_os=""
29599
29600 for mgl_os_i in $mgl_os_candidates ; do
29601 if test "x$mgl_os" = x ; then
29602 if test "$wxUSE_DEBUG_FLAG" = yes ; then
29603 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
29604 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
29605 mgl_lib_type=debug
29606 mgl_os=$mgl_os_i
29607 fi
29608 fi
29609 if test "x$mgl_lib_type" = x ; then
29610 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
29611 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
29612 mgl_lib_type=release
29613 mgl_os=$mgl_os_i
29614 fi
29615 fi
29616 fi
29617 done
29618
29619 if test "x$mgl_os" = x ; then
29620 echo "$as_me:$LINENO: result: not found" >&5
29621echo "${ECHO_T}not found" >&6
29622 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
29623echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
29624 { (exit 1); exit 1; }; }
29625 fi
29626 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
29627echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
29628
29629 wxUSE_UNIVERSAL="yes"
29630
29631 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
29632 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
29633
29634 AFMINSTALL=afminstall
29635 TOOLKIT=MGL
29636 GUIDIST=MGL_DIST
29637 fi
29638
b3c86150
VS
29639 if test "$wxUSE_DFB" = 1; then
29640
29641
29642if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
29643 if test -n "$ac_tool_prefix"; then
29644 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
29645set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
29646echo "$as_me:$LINENO: checking for $ac_word" >&5
29647echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29648if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
29649 echo $ECHO_N "(cached) $ECHO_C" >&6
29650else
29651 case $PKG_CONFIG in
29652 [\\/]* | ?:[\\/]*)
29653 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
29654 ;;
29655 *)
29656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29657for as_dir in $PATH
29658do
29659 IFS=$as_save_IFS
29660 test -z "$as_dir" && as_dir=.
29661 for ac_exec_ext in '' $ac_executable_extensions; do
29662 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29663 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29664 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29665 break 2
29666 fi
29667done
29668done
29669
29670 ;;
29671esac
29672fi
29673PKG_CONFIG=$ac_cv_path_PKG_CONFIG
29674
29675if test -n "$PKG_CONFIG"; then
29676 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
29677echo "${ECHO_T}$PKG_CONFIG" >&6
29678else
29679 echo "$as_me:$LINENO: result: no" >&5
29680echo "${ECHO_T}no" >&6
29681fi
29682
29683fi
29684if test -z "$ac_cv_path_PKG_CONFIG"; then
29685 ac_pt_PKG_CONFIG=$PKG_CONFIG
29686 # Extract the first word of "pkg-config", so it can be a program name with args.
29687set dummy pkg-config; ac_word=$2
29688echo "$as_me:$LINENO: checking for $ac_word" >&5
29689echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29690if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
29691 echo $ECHO_N "(cached) $ECHO_C" >&6
29692else
29693 case $ac_pt_PKG_CONFIG in
29694 [\\/]* | ?:[\\/]*)
29695 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
29696 ;;
29697 *)
29698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29699for as_dir in $PATH
29700do
29701 IFS=$as_save_IFS
29702 test -z "$as_dir" && as_dir=.
29703 for ac_exec_ext in '' $ac_executable_extensions; do
29704 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29705 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29706 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29707 break 2
29708 fi
29709done
29710done
29711
29712 ;;
29713esac
29714fi
29715ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
29716
29717if test -n "$ac_pt_PKG_CONFIG"; then
29718 echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
29719echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
29720else
29721 echo "$as_me:$LINENO: result: no" >&5
29722echo "${ECHO_T}no" >&6
29723fi
29724
29725 PKG_CONFIG=$ac_pt_PKG_CONFIG
29726else
29727 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
29728fi
29729
29730fi
29731if test -n "$PKG_CONFIG"; then
29732 _pkg_min_version=0.9.0
29733 echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
29734echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
29735 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
29736 echo "$as_me:$LINENO: result: yes" >&5
29737echo "${ECHO_T}yes" >&6
29738 else
29739 echo "$as_me:$LINENO: result: no" >&5
29740echo "${ECHO_T}no" >&6
29741 PKG_CONFIG=""
29742 fi
29743
29744fi
29745
479c790c 29746
b3c86150
VS
29747pkg_failed=no
29748echo "$as_me:$LINENO: checking for DIRECTFB" >&5
29749echo $ECHO_N "checking for DIRECTFB... $ECHO_C" >&6
29750
29751if test -n "$PKG_CONFIG"; then
29752 if test -n "$DIRECTFB_CFLAGS"; then
29753 pkg_cv_DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS"
29754 else
29755 if test -n "$PKG_CONFIG" && \
737d3175
VZ
29756 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.22\"") >&5
29757 ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.22") 2>&5
b3c86150
VS
29758 ac_status=$?
29759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29760 (exit $ac_status); }; then
737d3175 29761 pkg_cv_DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags "directfb >= 0.9.22" 2>/dev/null`
b3c86150
VS
29762else
29763 pkg_failed=yes
29764fi
29765 fi
29766else
29767 pkg_failed=untried
29768fi
29769if test -n "$PKG_CONFIG"; then
29770 if test -n "$DIRECTFB_LIBS"; then
29771 pkg_cv_DIRECTFB_LIBS="$DIRECTFB_LIBS"
29772 else
29773 if test -n "$PKG_CONFIG" && \
737d3175
VZ
29774 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.22\"") >&5
29775 ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.22") 2>&5
b3c86150
VS
29776 ac_status=$?
29777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29778 (exit $ac_status); }; then
737d3175 29779 pkg_cv_DIRECTFB_LIBS=`$PKG_CONFIG --libs "directfb >= 0.9.22" 2>/dev/null`
b3c86150
VS
29780else
29781 pkg_failed=yes
29782fi
29783 fi
29784else
29785 pkg_failed=untried
29786fi
29787
29788
29789
29790if test $pkg_failed = yes; then
29791
29792if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29793 _pkg_short_errors_supported=yes
29794else
29795 _pkg_short_errors_supported=no
29796fi
29797 if test $_pkg_short_errors_supported = yes; then
737d3175 29798 DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "directfb >= 0.9.22"`
b3c86150 29799 else
737d3175 29800 DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "directfb >= 0.9.22"`
b3c86150
VS
29801 fi
29802 # Put the nasty error message in config.log where it belongs
29803 echo "$DIRECTFB_PKG_ERRORS" >&5
29804
29805
29806 { { echo "$as_me:$LINENO: error: DirectFB not found." >&5
29807echo "$as_me: error: DirectFB not found." >&2;}
29808 { (exit 1); exit 1; }; }
29809
29810
29811elif test $pkg_failed = untried; then
29812
29813 { { echo "$as_me:$LINENO: error: DirectFB not found." >&5
29814echo "$as_me: error: DirectFB not found." >&2;}
29815 { (exit 1); exit 1; }; }
29816
29817
29818else
29819 DIRECTFB_CFLAGS=$pkg_cv_DIRECTFB_CFLAGS
29820 DIRECTFB_LIBS=$pkg_cv_DIRECTFB_LIBS
29821 echo "$as_me:$LINENO: result: yes" >&5
29822echo "${ECHO_T}yes" >&6
29823
29824 wxUSE_UNIVERSAL="yes"
29825 TOOLKIT_INCLUDE="$DIRECTFB_CFLAGS"
29826 GUI_TK_LIBRARY="$DIRECTFB_LIBS"
29827 TOOLKIT=DFB
29828 GUIDIST=DFB_DIST
29829
29830fi
29831 fi
29832
a848cd7e
SC
29833 if test "$wxUSE_MICROWIN" = 1; then
29834 echo "$as_me:$LINENO: checking for MicroWindows" >&5
29835echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
29836 if test "x$MICROWINDOWS" = x ; then
29837 echo "$as_me:$LINENO: result: not found" >&5
29838echo "${ECHO_T}not found" >&6
29839 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
29840echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
29841 { (exit 1); exit 1; }; }
29842 else
29843 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
29844echo "${ECHO_T}$MICROWINDOWS" >&6
29845 fi
29846
29847 if test -f $MICROWINDOWS/lib/libmwin.a; then
29848 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
29849echo "${ECHO_T}MicroWindows' libraries found." >&6
29850 else
29851 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
29852echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
29853 { (exit 1); exit 1; }; }
29854 fi
29855
29856 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
29857 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
29858
29859 wxUSE_UNIVERSAL="yes"
29860
29861 AFMINSTALL=afminstall
29862 TOOLKIT=MICROWIN
29863 GUIDIST=MICROWIN_DIST
29864
29865 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
29866 fi
29867
74b84332 29868 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
bb9e79c0
VZ
29869
29870if test "x$ac_path_x_has_been_run" != xyes; then
29871 echo "$as_me:$LINENO: checking for X" >&5
a848cd7e
SC
29872echo $ECHO_N "checking for X... $ECHO_C" >&6
29873
bb9e79c0 29874ac_path_x_has_been_run=yes
a848cd7e
SC
29875
29876# Check whether --with-x or --without-x was given.
29877if test "${with_x+set}" = set; then
29878 withval="$with_x"
29879
29880fi;
29881# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
29882if test "x$with_x" = xno; then
29883 # The user explicitly disabled X.
29884 have_x=disabled
29885else
29886 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
29887 # Both variables are already set.
29888 have_x=yes
29889 else
29890 if test "${ac_cv_have_x+set}" = set; then
29891 echo $ECHO_N "(cached) $ECHO_C" >&6
29892else
29893 # One or both of the vars are not set, and there is no cached value.
29894ac_x_includes=no ac_x_libraries=no
29895rm -fr conftest.dir
29896if mkdir conftest.dir; then
29897 cd conftest.dir
29898 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
29899 cat >Imakefile <<'_ACEOF'
29900acfindx:
29901 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
29902_ACEOF
29903 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
29904 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
29905 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
29906 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
29907 for ac_extension in a so sl; do
29908 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
ac1cb8d3
VS
29909 test -f $ac_im_libdir/libX11.$ac_extension; then
29910 ac_im_usrlibdir=$ac_im_libdir; break
a848cd7e
SC
29911 fi
29912 done
29913 # Screen out bogus values from the imake configuration. They are
29914 # bogus both because they are the default anyway, and because
29915 # using them would break gcc on systems where it needs fixed includes.
29916 case $ac_im_incroot in
29917 /usr/include) ;;
29918 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
29919 esac
29920 case $ac_im_usrlibdir in
29921 /usr/lib | /lib) ;;
29922 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
29923 esac
29924 fi
29925 cd ..
29926 rm -fr conftest.dir
29927fi
29928
29929# Standard set of common directories for X headers.
29930# Check X11 before X11Rn because it is often a symlink to the current release.
29931ac_x_header_dirs='
29932/usr/X11/include
29933/usr/X11R6/include
29934/usr/X11R5/include
29935/usr/X11R4/include
29936
29937/usr/include/X11
29938/usr/include/X11R6
29939/usr/include/X11R5
29940/usr/include/X11R4
29941
29942/usr/local/X11/include
29943/usr/local/X11R6/include
29944/usr/local/X11R5/include
29945/usr/local/X11R4/include
29946
29947/usr/local/include/X11
29948/usr/local/include/X11R6
29949/usr/local/include/X11R5
29950/usr/local/include/X11R4
29951
29952/usr/X386/include
29953/usr/x386/include
29954/usr/XFree86/include/X11
29955
29956/usr/include
29957/usr/local/include
29958/usr/unsupported/include
29959/usr/athena/include
29960/usr/local/x11r5/include
29961/usr/lpp/Xamples/include
29962
29963/usr/openwin/include
29964/usr/openwin/share/include'
29965
29966if test "$ac_x_includes" = no; then
bb9e79c0 29967 # Guess where to find include files, by looking for a specified header file.
a848cd7e
SC
29968 # First, try using that file with no special directory specified.
29969 cat >conftest.$ac_ext <<_ACEOF
29970/* confdefs.h. */
29971_ACEOF
29972cat confdefs.h >>conftest.$ac_ext
29973cat >>conftest.$ac_ext <<_ACEOF
29974/* end confdefs.h. */
02b05020 29975#include <X11/Xlib.h>
a848cd7e
SC
29976_ACEOF
29977if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29978 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29979 ac_status=$?
29980 grep -v '^ *+' conftest.er1 >conftest.err
29981 rm -f conftest.er1
29982 cat conftest.err >&5
29983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29984 (exit $ac_status); } >/dev/null; then
29985 if test -s conftest.err; then
5d7b7554
VZ
29986 ac_cpp_err=$ac_cxx_preproc_warn_flag
29987 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
29988 else
29989 ac_cpp_err=
29990 fi
29991else
29992 ac_cpp_err=yes
29993fi
29994if test -z "$ac_cpp_err"; then
29995 # We can compile using X headers with no special include directory.
29996ac_x_includes=
29997else
29998 echo "$as_me: failed program was:" >&5
29999sed 's/^/| /' conftest.$ac_ext >&5
30000
30001 for ac_dir in $ac_x_header_dirs; do
02b05020 30002 if test -r "$ac_dir/X11/Xlib.h"; then
a848cd7e
SC
30003 ac_x_includes=$ac_dir
30004 break
30005 fi
30006done
30007fi
30008rm -f conftest.err conftest.$ac_ext
30009fi # $ac_x_includes = no
30010
30011if test "$ac_x_libraries" = no; then
30012 # Check for the libraries.
30013 # See if we find them without any special options.
30014 # Don't add to $LIBS permanently.
30015 ac_save_LIBS=$LIBS
02b05020 30016 LIBS="-lX11 $LIBS"
a848cd7e
SC
30017 cat >conftest.$ac_ext <<_ACEOF
30018/* confdefs.h. */
30019_ACEOF
30020cat confdefs.h >>conftest.$ac_ext
30021cat >>conftest.$ac_ext <<_ACEOF
30022/* end confdefs.h. */
02b05020 30023#include <X11/Xlib.h>
a848cd7e
SC
30024int
30025main ()
30026{
02b05020 30027XrmInitialize ()
a848cd7e
SC
30028 ;
30029 return 0;
30030}
30031_ACEOF
30032rm -f conftest.$ac_objext conftest$ac_exeext
30033if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30034 (eval $ac_link) 2>conftest.er1
a848cd7e 30035 ac_status=$?
ac1cb8d3
VS
30036 grep -v '^ *+' conftest.er1 >conftest.err
30037 rm -f conftest.er1
30038 cat conftest.err >&5
a848cd7e
SC
30039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30040 (exit $ac_status); } &&
bb9e79c0 30041 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30043 (eval $ac_try) 2>&5
30044 ac_status=$?
30045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30046 (exit $ac_status); }; } &&
30047 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30049 (eval $ac_try) 2>&5
30050 ac_status=$?
30051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30052 (exit $ac_status); }; }; then
30053 LIBS=$ac_save_LIBS
30054# We can link X programs with no special library path.
30055ac_x_libraries=
30056else
30057 echo "$as_me: failed program was:" >&5
30058sed 's/^/| /' conftest.$ac_ext >&5
30059
30060LIBS=$ac_save_LIBS
30061for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
30062do
30063 # Don't even attempt the hair of trying to link an X program!
30064 for ac_extension in a so sl; do
02b05020 30065 if test -r $ac_dir/libX11.$ac_extension; then
a848cd7e
SC
30066 ac_x_libraries=$ac_dir
30067 break 2
30068 fi
30069 done
30070done
30071fi
ac1cb8d3
VS
30072rm -f conftest.err conftest.$ac_objext \
30073 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30074fi # $ac_x_libraries = no
30075
30076if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
30077 # Didn't find X anywhere. Cache the known absence of X.
30078 ac_cv_have_x="have_x=no"
30079else
30080 # Record where we found X for the cache.
30081 ac_cv_have_x="have_x=yes \
ac1cb8d3 30082 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
a848cd7e
SC
30083fi
30084fi
30085
30086 fi
30087 eval "$ac_cv_have_x"
30088fi # $with_x != no
30089
30090if test "$have_x" != yes; then
30091 echo "$as_me:$LINENO: result: $have_x" >&5
30092echo "${ECHO_T}$have_x" >&6
30093 no_x=yes
30094else
30095 # If each of the values was on the command line, it overrides each guess.
30096 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
30097 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
30098 # Update the cache value to reflect the command line values.
30099 ac_cv_have_x="have_x=yes \
30100 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
bb9e79c0
VZ
30101 # It might be that x_includes is empty (headers are found in the
30102 # standard search path. Then output the corresponding message
30103 ac_out_x_includes=$x_includes
30104 test "x$x_includes" = x && ac_out_x_includes="in standard search path"
30105 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
30106echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
a848cd7e
SC
30107fi
30108
bb9e79c0 30109fi
a848cd7e
SC
30110if test "$no_x" = yes; then
30111 # Not all programs may use this symbol, but it does not hurt to define it.
30112
30113cat >>confdefs.h <<\_ACEOF
30114#define X_DISPLAY_MISSING 1
30115_ACEOF
30116
30117 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
30118else
30119 if test -n "$x_includes"; then
30120 X_CFLAGS="$X_CFLAGS -I$x_includes"
30121 fi
30122
30123 # It would also be nice to do this for all -L options, not just this one.
30124 if test -n "$x_libraries"; then
30125 X_LIBS="$X_LIBS -L$x_libraries"
30126 # For Solaris; some versions of Sun CC require a space after -R and
30127 # others require no space. Words are not sufficient . . . .
30128 case `(uname -sr) 2>/dev/null` in
30129 "SunOS 5"*)
30130 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
30131echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
30132 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
30133 cat >conftest.$ac_ext <<_ACEOF
30134/* confdefs.h. */
30135_ACEOF
30136cat confdefs.h >>conftest.$ac_ext
30137cat >>conftest.$ac_ext <<_ACEOF
30138/* end confdefs.h. */
30139
30140int
30141main ()
30142{
30143
30144 ;
30145 return 0;
30146}
30147_ACEOF
30148rm -f conftest.$ac_objext conftest$ac_exeext
30149if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30150 (eval $ac_link) 2>conftest.er1
a848cd7e 30151 ac_status=$?
ac1cb8d3
VS
30152 grep -v '^ *+' conftest.er1 >conftest.err
30153 rm -f conftest.er1
30154 cat conftest.err >&5
a848cd7e
SC
30155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30156 (exit $ac_status); } &&
bb9e79c0 30157 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30159 (eval $ac_try) 2>&5
30160 ac_status=$?
30161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30162 (exit $ac_status); }; } &&
30163 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30165 (eval $ac_try) 2>&5
30166 ac_status=$?
30167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30168 (exit $ac_status); }; }; then
30169 ac_R_nospace=yes
30170else
30171 echo "$as_me: failed program was:" >&5
30172sed 's/^/| /' conftest.$ac_ext >&5
30173
30174ac_R_nospace=no
30175fi
ac1cb8d3
VS
30176rm -f conftest.err conftest.$ac_objext \
30177 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30178 if test $ac_R_nospace = yes; then
30179 echo "$as_me:$LINENO: result: no" >&5
30180echo "${ECHO_T}no" >&6
30181 X_LIBS="$X_LIBS -R$x_libraries"
30182 else
30183 LIBS="$ac_xsave_LIBS -R $x_libraries"
30184 cat >conftest.$ac_ext <<_ACEOF
30185/* confdefs.h. */
30186_ACEOF
30187cat confdefs.h >>conftest.$ac_ext
30188cat >>conftest.$ac_ext <<_ACEOF
30189/* end confdefs.h. */
30190
30191int
30192main ()
30193{
30194
30195 ;
30196 return 0;
30197}
30198_ACEOF
30199rm -f conftest.$ac_objext conftest$ac_exeext
30200if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30201 (eval $ac_link) 2>conftest.er1
a848cd7e 30202 ac_status=$?
ac1cb8d3
VS
30203 grep -v '^ *+' conftest.er1 >conftest.err
30204 rm -f conftest.er1
30205 cat conftest.err >&5
a848cd7e
SC
30206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30207 (exit $ac_status); } &&
bb9e79c0 30208 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30210 (eval $ac_try) 2>&5
30211 ac_status=$?
30212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30213 (exit $ac_status); }; } &&
30214 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30216 (eval $ac_try) 2>&5
30217 ac_status=$?
30218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30219 (exit $ac_status); }; }; then
30220 ac_R_space=yes
30221else
30222 echo "$as_me: failed program was:" >&5
30223sed 's/^/| /' conftest.$ac_ext >&5
30224
30225ac_R_space=no
30226fi
ac1cb8d3
VS
30227rm -f conftest.err conftest.$ac_objext \
30228 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30229 if test $ac_R_space = yes; then
30230 echo "$as_me:$LINENO: result: yes" >&5
30231echo "${ECHO_T}yes" >&6
30232 X_LIBS="$X_LIBS -R $x_libraries"
30233 else
30234 echo "$as_me:$LINENO: result: neither works" >&5
30235echo "${ECHO_T}neither works" >&6
30236 fi
30237 fi
30238 LIBS=$ac_xsave_LIBS
30239 esac
30240 fi
30241
30242 # Check for system-dependent libraries X programs must link with.
30243 # Do this before checking for the system-independent R6 libraries
30244 # (-lICE), since we may need -lsocket or whatever for X linking.
30245
30246 if test "$ISC" = yes; then
30247 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
30248 else
30249 # Martyn Johnson says this is needed for Ultrix, if the X
30250 # libraries were built with DECnet support. And Karl Berry says
30251 # the Alpha needs dnet_stub (dnet does not exist).
30252 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
30253 cat >conftest.$ac_ext <<_ACEOF
30254/* confdefs.h. */
30255_ACEOF
30256cat confdefs.h >>conftest.$ac_ext
30257cat >>conftest.$ac_ext <<_ACEOF
30258/* end confdefs.h. */
30259
30260/* Override any gcc2 internal prototype to avoid an error. */
30261#ifdef __cplusplus
30262extern "C"
30263#endif
30264/* We use char because int might match the return type of a gcc2
30265 builtin and then its argument prototype would still apply. */
30266char XOpenDisplay ();
30267int
30268main ()
30269{
30270XOpenDisplay ();
30271 ;
30272 return 0;
30273}
30274_ACEOF
30275rm -f conftest.$ac_objext conftest$ac_exeext
30276if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30277 (eval $ac_link) 2>conftest.er1
a848cd7e 30278 ac_status=$?
ac1cb8d3
VS
30279 grep -v '^ *+' conftest.er1 >conftest.err
30280 rm -f conftest.er1
30281 cat conftest.err >&5
a848cd7e
SC
30282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30283 (exit $ac_status); } &&
bb9e79c0 30284 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30286 (eval $ac_try) 2>&5
30287 ac_status=$?
30288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30289 (exit $ac_status); }; } &&
30290 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30292 (eval $ac_try) 2>&5
30293 ac_status=$?
30294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30295 (exit $ac_status); }; }; then
30296 :
30297else
30298 echo "$as_me: failed program was:" >&5
30299sed 's/^/| /' conftest.$ac_ext >&5
30300
30301echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
30302echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
30303if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
30304 echo $ECHO_N "(cached) $ECHO_C" >&6
30305else
30306 ac_check_lib_save_LIBS=$LIBS
30307LIBS="-ldnet $LIBS"
30308cat >conftest.$ac_ext <<_ACEOF
30309/* confdefs.h. */
30310_ACEOF
30311cat confdefs.h >>conftest.$ac_ext
30312cat >>conftest.$ac_ext <<_ACEOF
30313/* end confdefs.h. */
30314
30315/* Override any gcc2 internal prototype to avoid an error. */
30316#ifdef __cplusplus
30317extern "C"
30318#endif
30319/* We use char because int might match the return type of a gcc2
30320 builtin and then its argument prototype would still apply. */
30321char dnet_ntoa ();
30322int
30323main ()
30324{
30325dnet_ntoa ();
30326 ;
30327 return 0;
30328}
30329_ACEOF
30330rm -f conftest.$ac_objext conftest$ac_exeext
30331if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30332 (eval $ac_link) 2>conftest.er1
a848cd7e 30333 ac_status=$?
ac1cb8d3
VS
30334 grep -v '^ *+' conftest.er1 >conftest.err
30335 rm -f conftest.er1
30336 cat conftest.err >&5
a848cd7e
SC
30337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30338 (exit $ac_status); } &&
bb9e79c0 30339 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30341 (eval $ac_try) 2>&5
30342 ac_status=$?
30343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30344 (exit $ac_status); }; } &&
30345 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30347 (eval $ac_try) 2>&5
30348 ac_status=$?
30349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30350 (exit $ac_status); }; }; then
30351 ac_cv_lib_dnet_dnet_ntoa=yes
30352else
30353 echo "$as_me: failed program was:" >&5
30354sed 's/^/| /' conftest.$ac_ext >&5
30355
30356ac_cv_lib_dnet_dnet_ntoa=no
30357fi
ac1cb8d3
VS
30358rm -f conftest.err conftest.$ac_objext \
30359 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30360LIBS=$ac_check_lib_save_LIBS
30361fi
30362echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
30363echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
30364if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
30365 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
30366fi
30367
30368 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
30369 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
30370echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
30371if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
30372 echo $ECHO_N "(cached) $ECHO_C" >&6
30373else
30374 ac_check_lib_save_LIBS=$LIBS
30375LIBS="-ldnet_stub $LIBS"
30376cat >conftest.$ac_ext <<_ACEOF
30377/* confdefs.h. */
30378_ACEOF
30379cat confdefs.h >>conftest.$ac_ext
30380cat >>conftest.$ac_ext <<_ACEOF
30381/* end confdefs.h. */
30382
30383/* Override any gcc2 internal prototype to avoid an error. */
30384#ifdef __cplusplus
30385extern "C"
30386#endif
30387/* We use char because int might match the return type of a gcc2
30388 builtin and then its argument prototype would still apply. */
30389char dnet_ntoa ();
30390int
30391main ()
30392{
30393dnet_ntoa ();
30394 ;
30395 return 0;
30396}
30397_ACEOF
30398rm -f conftest.$ac_objext conftest$ac_exeext
30399if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30400 (eval $ac_link) 2>conftest.er1
a848cd7e 30401 ac_status=$?
ac1cb8d3
VS
30402 grep -v '^ *+' conftest.er1 >conftest.err
30403 rm -f conftest.er1
30404 cat conftest.err >&5
a848cd7e
SC
30405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30406 (exit $ac_status); } &&
bb9e79c0 30407 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30409 (eval $ac_try) 2>&5
30410 ac_status=$?
30411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30412 (exit $ac_status); }; } &&
30413 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30415 (eval $ac_try) 2>&5
30416 ac_status=$?
30417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30418 (exit $ac_status); }; }; then
30419 ac_cv_lib_dnet_stub_dnet_ntoa=yes
30420else
30421 echo "$as_me: failed program was:" >&5
30422sed 's/^/| /' conftest.$ac_ext >&5
30423
30424ac_cv_lib_dnet_stub_dnet_ntoa=no
30425fi
ac1cb8d3
VS
30426rm -f conftest.err conftest.$ac_objext \
30427 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30428LIBS=$ac_check_lib_save_LIBS
30429fi
30430echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
30431echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
30432if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
30433 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
30434fi
30435
30436 fi
30437fi
ac1cb8d3
VS
30438rm -f conftest.err conftest.$ac_objext \
30439 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30440 LIBS="$ac_xsave_LIBS"
30441
30442 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
30443 # to get the SysV transport functions.
30444 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
30445 # needs -lnsl.
30446 # The nsl library prevents programs from opening the X display
30447 # on Irix 5.2, according to T.E. Dickey.
30448 # The functions gethostbyname, getservbyname, and inet_addr are
30449 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
30450 echo "$as_me:$LINENO: checking for gethostbyname" >&5
30451echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
30452if test "${ac_cv_func_gethostbyname+set}" = set; then
30453 echo $ECHO_N "(cached) $ECHO_C" >&6
30454else
30455 cat >conftest.$ac_ext <<_ACEOF
30456/* confdefs.h. */
30457_ACEOF
30458cat confdefs.h >>conftest.$ac_ext
30459cat >>conftest.$ac_ext <<_ACEOF
30460/* end confdefs.h. */
ac1cb8d3
VS
30461/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
30462 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30463#define gethostbyname innocuous_gethostbyname
30464
a848cd7e
SC
30465/* System header to define __stub macros and hopefully few prototypes,
30466 which can conflict with char gethostbyname (); below.
30467 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30468 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30469
a848cd7e
SC
30470#ifdef __STDC__
30471# include <limits.h>
30472#else
30473# include <assert.h>
30474#endif
ac1cb8d3
VS
30475
30476#undef gethostbyname
30477
a848cd7e
SC
30478/* Override any gcc2 internal prototype to avoid an error. */
30479#ifdef __cplusplus
30480extern "C"
30481{
30482#endif
30483/* We use char because int might match the return type of a gcc2
30484 builtin and then its argument prototype would still apply. */
30485char gethostbyname ();
30486/* The GNU C library defines this for functions which it implements
30487 to always fail with ENOSYS. Some functions are actually named
30488 something starting with __ and the normal name is an alias. */
30489#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
30490choke me
30491#else
30492char (*f) () = gethostbyname;
30493#endif
30494#ifdef __cplusplus
30495}
30496#endif
30497
30498int
30499main ()
30500{
30501return f != gethostbyname;
30502 ;
30503 return 0;
30504}
30505_ACEOF
30506rm -f conftest.$ac_objext conftest$ac_exeext
30507if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30508 (eval $ac_link) 2>conftest.er1
a848cd7e 30509 ac_status=$?
ac1cb8d3
VS
30510 grep -v '^ *+' conftest.er1 >conftest.err
30511 rm -f conftest.er1
30512 cat conftest.err >&5
a848cd7e
SC
30513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30514 (exit $ac_status); } &&
bb9e79c0 30515 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30517 (eval $ac_try) 2>&5
30518 ac_status=$?
30519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30520 (exit $ac_status); }; } &&
30521 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30523 (eval $ac_try) 2>&5
30524 ac_status=$?
30525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30526 (exit $ac_status); }; }; then
30527 ac_cv_func_gethostbyname=yes
30528else
30529 echo "$as_me: failed program was:" >&5
30530sed 's/^/| /' conftest.$ac_ext >&5
30531
30532ac_cv_func_gethostbyname=no
30533fi
ac1cb8d3
VS
30534rm -f conftest.err conftest.$ac_objext \
30535 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30536fi
30537echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
30538echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
30539
30540 if test $ac_cv_func_gethostbyname = no; then
30541 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
30542echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
30543if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
30544 echo $ECHO_N "(cached) $ECHO_C" >&6
30545else
30546 ac_check_lib_save_LIBS=$LIBS
30547LIBS="-lnsl $LIBS"
30548cat >conftest.$ac_ext <<_ACEOF
30549/* confdefs.h. */
30550_ACEOF
30551cat confdefs.h >>conftest.$ac_ext
30552cat >>conftest.$ac_ext <<_ACEOF
30553/* end confdefs.h. */
30554
30555/* Override any gcc2 internal prototype to avoid an error. */
30556#ifdef __cplusplus
30557extern "C"
30558#endif
30559/* We use char because int might match the return type of a gcc2
30560 builtin and then its argument prototype would still apply. */
30561char gethostbyname ();
30562int
30563main ()
30564{
30565gethostbyname ();
30566 ;
30567 return 0;
30568}
30569_ACEOF
30570rm -f conftest.$ac_objext conftest$ac_exeext
30571if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3
VS
30572 (eval $ac_link) 2>conftest.er1
30573 ac_status=$?
30574 grep -v '^ *+' conftest.er1 >conftest.err
30575 rm -f conftest.er1
30576 cat conftest.err >&5
30577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30578 (exit $ac_status); } &&
bb9e79c0 30579 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30581 (eval $ac_try) 2>&5
30582 ac_status=$?
30583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30584 (exit $ac_status); }; } &&
30585 { ac_try='test -s conftest$ac_exeext'
30586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30587 (eval $ac_try) 2>&5
30588 ac_status=$?
30589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30590 (exit $ac_status); }; }; then
30591 ac_cv_lib_nsl_gethostbyname=yes
30592else
30593 echo "$as_me: failed program was:" >&5
30594sed 's/^/| /' conftest.$ac_ext >&5
30595
30596ac_cv_lib_nsl_gethostbyname=no
30597fi
30598rm -f conftest.err conftest.$ac_objext \
30599 conftest$ac_exeext conftest.$ac_ext
30600LIBS=$ac_check_lib_save_LIBS
30601fi
30602echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
30603echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
30604if test $ac_cv_lib_nsl_gethostbyname = yes; then
30605 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
30606fi
30607
30608 if test $ac_cv_lib_nsl_gethostbyname = no; then
30609 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
30610echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
30611if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
30612 echo $ECHO_N "(cached) $ECHO_C" >&6
30613else
30614 ac_check_lib_save_LIBS=$LIBS
30615LIBS="-lbsd $LIBS"
30616cat >conftest.$ac_ext <<_ACEOF
30617/* confdefs.h. */
30618_ACEOF
30619cat confdefs.h >>conftest.$ac_ext
30620cat >>conftest.$ac_ext <<_ACEOF
30621/* end confdefs.h. */
30622
30623/* Override any gcc2 internal prototype to avoid an error. */
30624#ifdef __cplusplus
30625extern "C"
30626#endif
30627/* We use char because int might match the return type of a gcc2
30628 builtin and then its argument prototype would still apply. */
30629char gethostbyname ();
30630int
30631main ()
30632{
30633gethostbyname ();
30634 ;
30635 return 0;
30636}
30637_ACEOF
30638rm -f conftest.$ac_objext conftest$ac_exeext
30639if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30640 (eval $ac_link) 2>conftest.er1
a848cd7e 30641 ac_status=$?
ac1cb8d3
VS
30642 grep -v '^ *+' conftest.er1 >conftest.err
30643 rm -f conftest.er1
30644 cat conftest.err >&5
a848cd7e
SC
30645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30646 (exit $ac_status); } &&
bb9e79c0 30647 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
30648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30649 (eval $ac_try) 2>&5
30650 ac_status=$?
30651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ac1cb8d3
VS
30652 (exit $ac_status); }; } &&
30653 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30655 (eval $ac_try) 2>&5
30656 ac_status=$?
30657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30658 (exit $ac_status); }; }; then
30659 ac_cv_lib_bsd_gethostbyname=yes
30660else
30661 echo "$as_me: failed program was:" >&5
30662sed 's/^/| /' conftest.$ac_ext >&5
30663
30664ac_cv_lib_bsd_gethostbyname=no
30665fi
ac1cb8d3
VS
30666rm -f conftest.err conftest.$ac_objext \
30667 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30668LIBS=$ac_check_lib_save_LIBS
30669fi
30670echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
30671echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
30672if test $ac_cv_lib_bsd_gethostbyname = yes; then
30673 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
30674fi
30675
30676 fi
30677 fi
30678
30679 # lieder@skyler.mavd.honeywell.com says without -lsocket,
30680 # socket/setsockopt and other routines are undefined under SCO ODT
30681 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
30682 # on later versions), says Simon Leinen: it contains gethostby*
30683 # variants that don't use the name server (or something). -lsocket
30684 # must be given before -lnsl if both are needed. We assume that
30685 # if connect needs -lnsl, so does gethostbyname.
30686 echo "$as_me:$LINENO: checking for connect" >&5
30687echo $ECHO_N "checking for connect... $ECHO_C" >&6
30688if test "${ac_cv_func_connect+set}" = set; then
30689 echo $ECHO_N "(cached) $ECHO_C" >&6
30690else
30691 cat >conftest.$ac_ext <<_ACEOF
30692/* confdefs.h. */
30693_ACEOF
30694cat confdefs.h >>conftest.$ac_ext
30695cat >>conftest.$ac_ext <<_ACEOF
30696/* end confdefs.h. */
ac1cb8d3
VS
30697/* Define connect to an innocuous variant, in case <limits.h> declares connect.
30698 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30699#define connect innocuous_connect
30700
a848cd7e
SC
30701/* System header to define __stub macros and hopefully few prototypes,
30702 which can conflict with char connect (); below.
30703 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30704 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30705
a848cd7e
SC
30706#ifdef __STDC__
30707# include <limits.h>
30708#else
30709# include <assert.h>
30710#endif
ac1cb8d3
VS
30711
30712#undef connect
30713
a848cd7e
SC
30714/* Override any gcc2 internal prototype to avoid an error. */
30715#ifdef __cplusplus
30716extern "C"
30717{
30718#endif
30719/* We use char because int might match the return type of a gcc2
30720 builtin and then its argument prototype would still apply. */
30721char connect ();
30722/* The GNU C library defines this for functions which it implements
30723 to always fail with ENOSYS. Some functions are actually named
30724 something starting with __ and the normal name is an alias. */
30725#if defined (__stub_connect) || defined (__stub___connect)
30726choke me
30727#else
30728char (*f) () = connect;
30729#endif
30730#ifdef __cplusplus
30731}
30732#endif
30733
30734int
30735main ()
30736{
30737return f != connect;
30738 ;
30739 return 0;
30740}
30741_ACEOF
30742rm -f conftest.$ac_objext conftest$ac_exeext
30743if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30744 (eval $ac_link) 2>conftest.er1
a848cd7e 30745 ac_status=$?
ac1cb8d3
VS
30746 grep -v '^ *+' conftest.er1 >conftest.err
30747 rm -f conftest.er1
30748 cat conftest.err >&5
a848cd7e
SC
30749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30750 (exit $ac_status); } &&
bb9e79c0 30751 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30753 (eval $ac_try) 2>&5
30754 ac_status=$?
30755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30756 (exit $ac_status); }; } &&
30757 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30759 (eval $ac_try) 2>&5
30760 ac_status=$?
30761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30762 (exit $ac_status); }; }; then
30763 ac_cv_func_connect=yes
30764else
30765 echo "$as_me: failed program was:" >&5
30766sed 's/^/| /' conftest.$ac_ext >&5
30767
30768ac_cv_func_connect=no
30769fi
ac1cb8d3
VS
30770rm -f conftest.err conftest.$ac_objext \
30771 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30772fi
30773echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
30774echo "${ECHO_T}$ac_cv_func_connect" >&6
30775
30776 if test $ac_cv_func_connect = no; then
30777 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
30778echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
30779if test "${ac_cv_lib_socket_connect+set}" = set; then
30780 echo $ECHO_N "(cached) $ECHO_C" >&6
30781else
30782 ac_check_lib_save_LIBS=$LIBS
30783LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
30784cat >conftest.$ac_ext <<_ACEOF
30785/* confdefs.h. */
30786_ACEOF
30787cat confdefs.h >>conftest.$ac_ext
30788cat >>conftest.$ac_ext <<_ACEOF
30789/* end confdefs.h. */
30790
30791/* Override any gcc2 internal prototype to avoid an error. */
30792#ifdef __cplusplus
30793extern "C"
30794#endif
30795/* We use char because int might match the return type of a gcc2
30796 builtin and then its argument prototype would still apply. */
30797char connect ();
30798int
30799main ()
30800{
30801connect ();
30802 ;
30803 return 0;
30804}
30805_ACEOF
30806rm -f conftest.$ac_objext conftest$ac_exeext
30807if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30808 (eval $ac_link) 2>conftest.er1
a848cd7e 30809 ac_status=$?
ac1cb8d3
VS
30810 grep -v '^ *+' conftest.er1 >conftest.err
30811 rm -f conftest.er1
30812 cat conftest.err >&5
a848cd7e
SC
30813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30814 (exit $ac_status); } &&
bb9e79c0 30815 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30817 (eval $ac_try) 2>&5
30818 ac_status=$?
30819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30820 (exit $ac_status); }; } &&
30821 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30823 (eval $ac_try) 2>&5
30824 ac_status=$?
30825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30826 (exit $ac_status); }; }; then
30827 ac_cv_lib_socket_connect=yes
30828else
30829 echo "$as_me: failed program was:" >&5
30830sed 's/^/| /' conftest.$ac_ext >&5
30831
30832ac_cv_lib_socket_connect=no
30833fi
ac1cb8d3
VS
30834rm -f conftest.err conftest.$ac_objext \
30835 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30836LIBS=$ac_check_lib_save_LIBS
30837fi
30838echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
30839echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
30840if test $ac_cv_lib_socket_connect = yes; then
30841 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
30842fi
30843
30844 fi
30845
30846 # Guillermo Gomez says -lposix is necessary on A/UX.
30847 echo "$as_me:$LINENO: checking for remove" >&5
30848echo $ECHO_N "checking for remove... $ECHO_C" >&6
30849if test "${ac_cv_func_remove+set}" = set; then
30850 echo $ECHO_N "(cached) $ECHO_C" >&6
30851else
30852 cat >conftest.$ac_ext <<_ACEOF
30853/* confdefs.h. */
30854_ACEOF
30855cat confdefs.h >>conftest.$ac_ext
30856cat >>conftest.$ac_ext <<_ACEOF
30857/* end confdefs.h. */
ac1cb8d3
VS
30858/* Define remove to an innocuous variant, in case <limits.h> declares remove.
30859 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30860#define remove innocuous_remove
30861
a848cd7e
SC
30862/* System header to define __stub macros and hopefully few prototypes,
30863 which can conflict with char remove (); below.
30864 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30865 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30866
a848cd7e
SC
30867#ifdef __STDC__
30868# include <limits.h>
30869#else
30870# include <assert.h>
30871#endif
ac1cb8d3
VS
30872
30873#undef remove
30874
a848cd7e
SC
30875/* Override any gcc2 internal prototype to avoid an error. */
30876#ifdef __cplusplus
30877extern "C"
30878{
30879#endif
30880/* We use char because int might match the return type of a gcc2
30881 builtin and then its argument prototype would still apply. */
30882char remove ();
30883/* The GNU C library defines this for functions which it implements
30884 to always fail with ENOSYS. Some functions are actually named
30885 something starting with __ and the normal name is an alias. */
30886#if defined (__stub_remove) || defined (__stub___remove)
30887choke me
30888#else
30889char (*f) () = remove;
30890#endif
30891#ifdef __cplusplus
30892}
30893#endif
30894
30895int
30896main ()
30897{
30898return f != remove;
30899 ;
30900 return 0;
30901}
30902_ACEOF
30903rm -f conftest.$ac_objext conftest$ac_exeext
30904if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30905 (eval $ac_link) 2>conftest.er1
a848cd7e 30906 ac_status=$?
ac1cb8d3
VS
30907 grep -v '^ *+' conftest.er1 >conftest.err
30908 rm -f conftest.er1
30909 cat conftest.err >&5
a848cd7e
SC
30910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30911 (exit $ac_status); } &&
bb9e79c0 30912 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30914 (eval $ac_try) 2>&5
30915 ac_status=$?
30916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30917 (exit $ac_status); }; } &&
30918 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30920 (eval $ac_try) 2>&5
30921 ac_status=$?
30922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30923 (exit $ac_status); }; }; then
30924 ac_cv_func_remove=yes
30925else
30926 echo "$as_me: failed program was:" >&5
30927sed 's/^/| /' conftest.$ac_ext >&5
30928
30929ac_cv_func_remove=no
30930fi
ac1cb8d3
VS
30931rm -f conftest.err conftest.$ac_objext \
30932 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30933fi
30934echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
30935echo "${ECHO_T}$ac_cv_func_remove" >&6
30936
30937 if test $ac_cv_func_remove = no; then
30938 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
30939echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
30940if test "${ac_cv_lib_posix_remove+set}" = set; then
30941 echo $ECHO_N "(cached) $ECHO_C" >&6
30942else
30943 ac_check_lib_save_LIBS=$LIBS
30944LIBS="-lposix $LIBS"
30945cat >conftest.$ac_ext <<_ACEOF
30946/* confdefs.h. */
30947_ACEOF
30948cat confdefs.h >>conftest.$ac_ext
30949cat >>conftest.$ac_ext <<_ACEOF
30950/* end confdefs.h. */
30951
30952/* Override any gcc2 internal prototype to avoid an error. */
30953#ifdef __cplusplus
30954extern "C"
30955#endif
30956/* We use char because int might match the return type of a gcc2
30957 builtin and then its argument prototype would still apply. */
30958char remove ();
30959int
30960main ()
30961{
30962remove ();
30963 ;
30964 return 0;
30965}
30966_ACEOF
30967rm -f conftest.$ac_objext conftest$ac_exeext
30968if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30969 (eval $ac_link) 2>conftest.er1
a848cd7e 30970 ac_status=$?
ac1cb8d3
VS
30971 grep -v '^ *+' conftest.er1 >conftest.err
30972 rm -f conftest.er1
30973 cat conftest.err >&5
a848cd7e
SC
30974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30975 (exit $ac_status); } &&
bb9e79c0 30976 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30978 (eval $ac_try) 2>&5
30979 ac_status=$?
30980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30981 (exit $ac_status); }; } &&
30982 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30984 (eval $ac_try) 2>&5
30985 ac_status=$?
30986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30987 (exit $ac_status); }; }; then
30988 ac_cv_lib_posix_remove=yes
30989else
30990 echo "$as_me: failed program was:" >&5
30991sed 's/^/| /' conftest.$ac_ext >&5
30992
30993ac_cv_lib_posix_remove=no
30994fi
ac1cb8d3
VS
30995rm -f conftest.err conftest.$ac_objext \
30996 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30997LIBS=$ac_check_lib_save_LIBS
30998fi
30999echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
31000echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
31001if test $ac_cv_lib_posix_remove = yes; then
31002 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
31003fi
31004
31005 fi
31006
31007 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
31008 echo "$as_me:$LINENO: checking for shmat" >&5
31009echo $ECHO_N "checking for shmat... $ECHO_C" >&6
31010if test "${ac_cv_func_shmat+set}" = set; then
31011 echo $ECHO_N "(cached) $ECHO_C" >&6
31012else
31013 cat >conftest.$ac_ext <<_ACEOF
31014/* confdefs.h. */
31015_ACEOF
31016cat confdefs.h >>conftest.$ac_ext
31017cat >>conftest.$ac_ext <<_ACEOF
31018/* end confdefs.h. */
ac1cb8d3
VS
31019/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
31020 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31021#define shmat innocuous_shmat
31022
a848cd7e
SC
31023/* System header to define __stub macros and hopefully few prototypes,
31024 which can conflict with char shmat (); below.
31025 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31026 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31027
a848cd7e
SC
31028#ifdef __STDC__
31029# include <limits.h>
31030#else
31031# include <assert.h>
31032#endif
ac1cb8d3
VS
31033
31034#undef shmat
31035
a848cd7e
SC
31036/* Override any gcc2 internal prototype to avoid an error. */
31037#ifdef __cplusplus
31038extern "C"
31039{
31040#endif
31041/* We use char because int might match the return type of a gcc2
31042 builtin and then its argument prototype would still apply. */
31043char shmat ();
31044/* The GNU C library defines this for functions which it implements
31045 to always fail with ENOSYS. Some functions are actually named
31046 something starting with __ and the normal name is an alias. */
31047#if defined (__stub_shmat) || defined (__stub___shmat)
31048choke me
31049#else
31050char (*f) () = shmat;
31051#endif
31052#ifdef __cplusplus
31053}
31054#endif
31055
31056int
31057main ()
31058{
31059return f != shmat;
31060 ;
31061 return 0;
31062}
31063_ACEOF
31064rm -f conftest.$ac_objext conftest$ac_exeext
31065if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31066 (eval $ac_link) 2>conftest.er1
a848cd7e 31067 ac_status=$?
ac1cb8d3
VS
31068 grep -v '^ *+' conftest.er1 >conftest.err
31069 rm -f conftest.er1
31070 cat conftest.err >&5
a848cd7e
SC
31071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31072 (exit $ac_status); } &&
bb9e79c0 31073 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31075 (eval $ac_try) 2>&5
31076 ac_status=$?
31077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31078 (exit $ac_status); }; } &&
31079 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31081 (eval $ac_try) 2>&5
31082 ac_status=$?
31083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31084 (exit $ac_status); }; }; then
31085 ac_cv_func_shmat=yes
31086else
31087 echo "$as_me: failed program was:" >&5
31088sed 's/^/| /' conftest.$ac_ext >&5
31089
31090ac_cv_func_shmat=no
31091fi
ac1cb8d3
VS
31092rm -f conftest.err conftest.$ac_objext \
31093 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31094fi
31095echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
31096echo "${ECHO_T}$ac_cv_func_shmat" >&6
31097
31098 if test $ac_cv_func_shmat = no; then
31099 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
31100echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
31101if test "${ac_cv_lib_ipc_shmat+set}" = set; then
31102 echo $ECHO_N "(cached) $ECHO_C" >&6
31103else
31104 ac_check_lib_save_LIBS=$LIBS
31105LIBS="-lipc $LIBS"
31106cat >conftest.$ac_ext <<_ACEOF
31107/* confdefs.h. */
31108_ACEOF
31109cat confdefs.h >>conftest.$ac_ext
31110cat >>conftest.$ac_ext <<_ACEOF
31111/* end confdefs.h. */
31112
31113/* Override any gcc2 internal prototype to avoid an error. */
31114#ifdef __cplusplus
31115extern "C"
31116#endif
31117/* We use char because int might match the return type of a gcc2
31118 builtin and then its argument prototype would still apply. */
31119char shmat ();
31120int
31121main ()
31122{
31123shmat ();
31124 ;
31125 return 0;
31126}
31127_ACEOF
31128rm -f conftest.$ac_objext conftest$ac_exeext
31129if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31130 (eval $ac_link) 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); } &&
bb9e79c0 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_exeext'
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 ac_cv_lib_ipc_shmat=yes
31150else
31151 echo "$as_me: failed program was:" >&5
31152sed 's/^/| /' conftest.$ac_ext >&5
31153
31154ac_cv_lib_ipc_shmat=no
31155fi
ac1cb8d3
VS
31156rm -f conftest.err conftest.$ac_objext \
31157 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31158LIBS=$ac_check_lib_save_LIBS
31159fi
31160echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
31161echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
31162if test $ac_cv_lib_ipc_shmat = yes; then
31163 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
31164fi
31165
31166 fi
31167 fi
31168
31169 # Check for libraries that X11R6 Xt/Xaw programs need.
31170 ac_save_LDFLAGS=$LDFLAGS
31171 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
31172 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
31173 # check for ICE first), but we must link in the order -lSM -lICE or
31174 # we get undefined symbols. So assume we have SM if we have ICE.
31175 # These have to be linked with before -lX11, unlike the other
31176 # libraries we check for below, so use a different variable.
31177 # John Interrante, Karl Berry
31178 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
31179echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
31180if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
31181 echo $ECHO_N "(cached) $ECHO_C" >&6
31182else
31183 ac_check_lib_save_LIBS=$LIBS
31184LIBS="-lICE $X_EXTRA_LIBS $LIBS"
31185cat >conftest.$ac_ext <<_ACEOF
31186/* confdefs.h. */
31187_ACEOF
31188cat confdefs.h >>conftest.$ac_ext
31189cat >>conftest.$ac_ext <<_ACEOF
31190/* end confdefs.h. */
31191
31192/* Override any gcc2 internal prototype to avoid an error. */
31193#ifdef __cplusplus
31194extern "C"
31195#endif
31196/* We use char because int might match the return type of a gcc2
31197 builtin and then its argument prototype would still apply. */
31198char IceConnectionNumber ();
31199int
31200main ()
31201{
31202IceConnectionNumber ();
31203 ;
31204 return 0;
31205}
31206_ACEOF
31207rm -f conftest.$ac_objext conftest$ac_exeext
31208if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31209 (eval $ac_link) 2>conftest.er1
a848cd7e 31210 ac_status=$?
ac1cb8d3
VS
31211 grep -v '^ *+' conftest.er1 >conftest.err
31212 rm -f conftest.er1
31213 cat conftest.err >&5
a848cd7e
SC
31214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31215 (exit $ac_status); } &&
bb9e79c0 31216 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31218 (eval $ac_try) 2>&5
31219 ac_status=$?
31220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31221 (exit $ac_status); }; } &&
31222 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31224 (eval $ac_try) 2>&5
31225 ac_status=$?
31226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31227 (exit $ac_status); }; }; then
31228 ac_cv_lib_ICE_IceConnectionNumber=yes
31229else
31230 echo "$as_me: failed program was:" >&5
31231sed 's/^/| /' conftest.$ac_ext >&5
31232
31233ac_cv_lib_ICE_IceConnectionNumber=no
31234fi
ac1cb8d3
VS
31235rm -f conftest.err conftest.$ac_objext \
31236 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31237LIBS=$ac_check_lib_save_LIBS
31238fi
31239echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
31240echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
31241if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
31242 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
31243fi
31244
31245 LDFLAGS=$ac_save_LDFLAGS
31246
31247fi
31248
31249
31250 if test "$no_x" = "yes"; then
89d90d6d
VZ
31251 { { echo "$as_me:$LINENO: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&5
31252echo "$as_me: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&2;}
31253 { (exit 1); exit 1; }; }
a848cd7e
SC
31254 fi
31255
74b84332
VS
31256 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
31257 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
a848cd7e
SC
31258 AFMINSTALL=afminstall
31259 COMPILED_X_PROGRAM=0
31260
74b84332
VS
31261 fi
31262
31263 if test "$wxUSE_X11" = 1; then
a848cd7e
SC
31264 if test "$wxUSE_NANOX" = "yes"; then
31265 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
31266echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
31267 if test "x$MICROWIN" = x ; then
31268 echo "$as_me:$LINENO: result: not found" >&5
31269echo "${ECHO_T}not found" >&6
31270 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
31271echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
31272 { (exit 1); exit 1; }; }
31273 else
31274 echo "$as_me:$LINENO: result: $MICROWIN" >&5
31275echo "${ECHO_T}$MICROWIN" >&6
31276 cat >>confdefs.h <<\_ACEOF
31277#define wxUSE_NANOX 1
31278_ACEOF
31279
31280 fi
31281 fi
31282
31283 if test "$wxUSE_UNICODE" = "yes"; then
31284
479c790c
VZ
31285
31286if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
31287 if test -n "$ac_tool_prefix"; then
31288 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
31289set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
31290echo "$as_me:$LINENO: checking for $ac_word" >&5
31291echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
31292if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
31293 echo $ECHO_N "(cached) $ECHO_C" >&6
31294else
31295 case $PKG_CONFIG in
31296 [\\/]* | ?:[\\/]*)
31297 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
31298 ;;
31299 *)
31300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31301for as_dir in $PATH
31302do
31303 IFS=$as_save_IFS
31304 test -z "$as_dir" && as_dir=.
31305 for ac_exec_ext in '' $ac_executable_extensions; do
31306 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31307 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
31308 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31309 break 2
31310 fi
31311done
31312done
31313
31314 ;;
31315esac
31316fi
31317PKG_CONFIG=$ac_cv_path_PKG_CONFIG
31318
31319if test -n "$PKG_CONFIG"; then
31320 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
31321echo "${ECHO_T}$PKG_CONFIG" >&6
31322else
31323 echo "$as_me:$LINENO: result: no" >&5
31324echo "${ECHO_T}no" >&6
31325fi
31326
31327fi
31328if test -z "$ac_cv_path_PKG_CONFIG"; then
31329 ac_pt_PKG_CONFIG=$PKG_CONFIG
31330 # Extract the first word of "pkg-config", so it can be a program name with args.
31331set dummy pkg-config; ac_word=$2
31332echo "$as_me:$LINENO: checking for $ac_word" >&5
31333echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
31334if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
31335 echo $ECHO_N "(cached) $ECHO_C" >&6
31336else
31337 case $ac_pt_PKG_CONFIG in
31338 [\\/]* | ?:[\\/]*)
31339 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
31340 ;;
31341 *)
31342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31343for as_dir in $PATH
31344do
31345 IFS=$as_save_IFS
31346 test -z "$as_dir" && as_dir=.
31347 for ac_exec_ext in '' $ac_executable_extensions; do
31348 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31349 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
31350 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31351 break 2
31352 fi
31353done
31354done
31355
31356 ;;
31357esac
31358fi
31359ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
31360
31361if test -n "$ac_pt_PKG_CONFIG"; then
31362 echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
31363echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
31364else
31365 echo "$as_me:$LINENO: result: no" >&5
31366echo "${ECHO_T}no" >&6
31367fi
31368
31369 PKG_CONFIG=$ac_pt_PKG_CONFIG
31370else
31371 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
31372fi
31373
31374fi
31375if test -n "$PKG_CONFIG"; then
31376 _pkg_min_version=0.9.0
31377 echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
31378echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
31379 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
31380 echo "$as_me:$LINENO: result: yes" >&5
31381echo "${ECHO_T}yes" >&6
31382 else
31383 echo "$as_me:$LINENO: result: no" >&5
31384echo "${ECHO_T}no" >&6
31385 PKG_CONFIG=""
31386 fi
31387
31388fi
31389
31390
3ecd9f92
MW
31391pkg_failed=no
31392echo "$as_me:$LINENO: checking for PANGOX" >&5
31393echo $ECHO_N "checking for PANGOX... $ECHO_C" >&6
a848cd7e 31394
3ecd9f92
MW
31395if test -n "$PKG_CONFIG"; then
31396 if test -n "$PANGOX_CFLAGS"; then
31397 pkg_cv_PANGOX_CFLAGS="$PANGOX_CFLAGS"
31398 else
31399 if test -n "$PKG_CONFIG" && \
31400 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5
31401 ($PKG_CONFIG --exists --print-errors "pangox") 2>&5
31402 ac_status=$?
31403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31404 (exit $ac_status); }; then
31405 pkg_cv_PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox" 2>/dev/null`
31406else
31407 pkg_failed=yes
31408fi
31409 fi
31410else
31411 pkg_failed=untried
31412fi
31413if test -n "$PKG_CONFIG"; then
31414 if test -n "$PANGOX_LIBS"; then
31415 pkg_cv_PANGOX_LIBS="$PANGOX_LIBS"
31416 else
31417 if test -n "$PKG_CONFIG" && \
31418 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5
31419 ($PKG_CONFIG --exists --print-errors "pangox") 2>&5
31420 ac_status=$?
31421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31422 (exit $ac_status); }; then
31423 pkg_cv_PANGOX_LIBS=`$PKG_CONFIG --libs "pangox" 2>/dev/null`
31424else
31425 pkg_failed=yes
31426fi
31427 fi
31428else
31429 pkg_failed=untried
31430fi
31431
31432
31433
31434if test $pkg_failed = yes; then
31435
31436if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31437 _pkg_short_errors_supported=yes
31438else
31439 _pkg_short_errors_supported=no
31440fi
31441 if test $_pkg_short_errors_supported = yes; then
31442 PANGOX_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangox"`
31443 else
31444 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
a848cd7e 31445 fi
3ecd9f92
MW
31446 # Put the nasty error message in config.log where it belongs
31447 echo "$PANGOX_PKG_ERRORS" >&5
a848cd7e
SC
31448
31449
479c790c 31450 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
3ecd9f92
MW
31451echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
31452 { (exit 1); exit 1; }; }
a848cd7e 31453
a848cd7e 31454
3ecd9f92 31455elif test $pkg_failed = untried; then
a848cd7e 31456
479c790c 31457 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
3ecd9f92
MW
31458echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
31459 { (exit 1); exit 1; }; }
31460
31461
31462else
31463 PANGOX_CFLAGS=$pkg_cv_PANGOX_CFLAGS
31464 PANGOX_LIBS=$pkg_cv_PANGOX_LIBS
31465 echo "$as_me:$LINENO: result: yes" >&5
31466echo "${ECHO_T}yes" >&6
31467
479c790c
VZ
31468 CXXFLAGS="$PANGOX_CFLAGS $CXXFLAGS"
31469 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
3ecd9f92
MW
31470
31471fi
31472
31473pkg_failed=no
31474echo "$as_me:$LINENO: checking for PANGOFT2" >&5
31475echo $ECHO_N "checking for PANGOFT2... $ECHO_C" >&6
31476
31477if test -n "$PKG_CONFIG"; then
31478 if test -n "$PANGOFT2_CFLAGS"; then
31479 pkg_cv_PANGOFT2_CFLAGS="$PANGOFT2_CFLAGS"
31480 else
31481 if test -n "$PKG_CONFIG" && \
31482 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5
31483 ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
31484 ac_status=$?
31485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31486 (exit $ac_status); }; then
31487 pkg_cv_PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2" 2>/dev/null`
31488else
31489 pkg_failed=yes
31490fi
31491 fi
31492else
31493 pkg_failed=untried
31494fi
31495if test -n "$PKG_CONFIG"; then
31496 if test -n "$PANGOFT2_LIBS"; then
31497 pkg_cv_PANGOFT2_LIBS="$PANGOFT2_LIBS"
31498 else
31499 if test -n "$PKG_CONFIG" && \
31500 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5
31501 ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
31502 ac_status=$?
31503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31504 (exit $ac_status); }; then
31505 pkg_cv_PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2" 2>/dev/null`
31506else
31507 pkg_failed=yes
31508fi
31509 fi
31510else
31511 pkg_failed=untried
31512fi
31513
31514
31515
31516if test $pkg_failed = yes; then
31517
31518if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31519 _pkg_short_errors_supported=yes
31520else
31521 _pkg_short_errors_supported=no
31522fi
31523 if test $_pkg_short_errors_supported = yes; then
31524 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoft2"`
31525 else
31526 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
31527 fi
31528 # Put the nasty error message in config.log where it belongs
31529 echo "$PANGOFT2_PKG_ERRORS" >&5
a848cd7e 31530
a848cd7e 31531
479c790c 31532 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
a848cd7e 31533echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
479c790c 31534 wxUSE_PRINTING_ARCHITECTURE="no"
a848cd7e
SC
31535
31536
3ecd9f92 31537elif test $pkg_failed = untried; then
a848cd7e 31538
479c790c 31539 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
3ecd9f92 31540echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
479c790c 31541 wxUSE_PRINTING_ARCHITECTURE="no"
a848cd7e 31542
a848cd7e 31543
a848cd7e 31544else
3ecd9f92
MW
31545 PANGOFT2_CFLAGS=$pkg_cv_PANGOFT2_CFLAGS
31546 PANGOFT2_LIBS=$pkg_cv_PANGOFT2_LIBS
31547 echo "$as_me:$LINENO: result: yes" >&5
31548echo "${ECHO_T}yes" >&6
31549
479c790c
VZ
31550 CXXFLAGS="$PANGOFT2_CFLAGS $CXXFLAGS"
31551 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
a848cd7e 31552
a848cd7e 31553fi
3ecd9f92
MW
31554
31555pkg_failed=no
31556echo "$as_me:$LINENO: checking for PANGOXFT" >&5
31557echo $ECHO_N "checking for PANGOXFT... $ECHO_C" >&6
a848cd7e
SC
31558
31559if test -n "$PKG_CONFIG"; then
3ecd9f92
MW
31560 if test -n "$PANGOXFT_CFLAGS"; then
31561 pkg_cv_PANGOXFT_CFLAGS="$PANGOXFT_CFLAGS"
31562 else
31563 if test -n "$PKG_CONFIG" && \
31564 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5
31565 ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5
31566 ac_status=$?
31567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31568 (exit $ac_status); }; then
31569 pkg_cv_PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft" 2>/dev/null`
a848cd7e 31570else
3ecd9f92
MW
31571 pkg_failed=yes
31572fi
31573 fi
31574else
31575 pkg_failed=untried
31576fi
31577if test -n "$PKG_CONFIG"; then
31578 if test -n "$PANGOXFT_LIBS"; then
31579 pkg_cv_PANGOXFT_LIBS="$PANGOXFT_LIBS"
31580 else
31581 if test -n "$PKG_CONFIG" && \
31582 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5
31583 ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5
31584 ac_status=$?
31585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31586 (exit $ac_status); }; then
31587 pkg_cv_PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft" 2>/dev/null`
31588else
31589 pkg_failed=yes
31590fi
31591 fi
31592else
31593 pkg_failed=untried
a848cd7e
SC
31594fi
31595
a848cd7e 31596
a848cd7e 31597
3ecd9f92 31598if test $pkg_failed = yes; then
a848cd7e 31599
3ecd9f92
MW
31600if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31601 _pkg_short_errors_supported=yes
31602else
31603 _pkg_short_errors_supported=no
31604fi
31605 if test $_pkg_short_errors_supported = yes; then
31606 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoxft"`
31607 else
31608 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
a848cd7e 31609 fi
3ecd9f92
MW
31610 # Put the nasty error message in config.log where it belongs
31611 echo "$PANGOXFT_PKG_ERRORS" >&5
a848cd7e
SC
31612
31613
479c790c 31614 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
3ecd9f92
MW
31615echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
31616
a848cd7e 31617
3ecd9f92 31618elif test $pkg_failed = untried; then
a848cd7e 31619
479c790c 31620 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
3ecd9f92
MW
31621echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
31622
31623
31624else
31625 PANGOXFT_CFLAGS=$pkg_cv_PANGOXFT_CFLAGS
31626 PANGOXFT_LIBS=$pkg_cv_PANGOXFT_LIBS
31627 echo "$as_me:$LINENO: result: yes" >&5
31628echo "${ECHO_T}yes" >&6
a848cd7e 31629
479c790c 31630 cat >>confdefs.h <<\_ACEOF
4ae1af05
MB
31631#define HAVE_PANGO_XFT 1
31632_ACEOF
31633
479c790c
VZ
31634 CXXFLAGS="$PANGOXFT_CFLAGS $CXXFLAGS"
31635 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
a848cd7e 31636
3ecd9f92 31637fi
479c790c
VZ
31638 save_CXXFLAGS="$CXXFLAGS"
31639 save_LIBS="$LIBS"
31640 CXXFLAGS="$PANGOX_CFLAGS $CXXFLAGS"
31641 LIBS="$LIBS $PANGOX_LIBS"
304205f1
VS
31642
31643for ac_func in pango_font_family_is_monospace
31644do
31645as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31646echo "$as_me:$LINENO: checking for $ac_func" >&5
31647echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31648if eval "test \"\${$as_ac_var+set}\" = set"; then
31649 echo $ECHO_N "(cached) $ECHO_C" >&6
31650else
31651 cat >conftest.$ac_ext <<_ACEOF
31652/* confdefs.h. */
31653_ACEOF
31654cat confdefs.h >>conftest.$ac_ext
31655cat >>conftest.$ac_ext <<_ACEOF
31656/* end confdefs.h. */
31657/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31658 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31659#define $ac_func innocuous_$ac_func
31660
31661/* System header to define __stub macros and hopefully few prototypes,
31662 which can conflict with char $ac_func (); below.
31663 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31664 <limits.h> exists even on freestanding compilers. */
31665
31666#ifdef __STDC__
31667# include <limits.h>
31668#else
31669# include <assert.h>
31670#endif
31671
31672#undef $ac_func
31673
31674/* Override any gcc2 internal prototype to avoid an error. */
31675#ifdef __cplusplus
31676extern "C"
31677{
31678#endif
31679/* We use char because int might match the return type of a gcc2
31680 builtin and then its argument prototype would still apply. */
31681char $ac_func ();
31682/* The GNU C library defines this for functions which it implements
31683 to always fail with ENOSYS. Some functions are actually named
31684 something starting with __ and the normal name is an alias. */
31685#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31686choke me
31687#else
31688char (*f) () = $ac_func;
31689#endif
31690#ifdef __cplusplus
31691}
31692#endif
31693
31694int
31695main ()
31696{
31697return f != $ac_func;
31698 ;
31699 return 0;
31700}
31701_ACEOF
31702rm -f conftest.$ac_objext conftest$ac_exeext
31703if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31704 (eval $ac_link) 2>conftest.er1
31705 ac_status=$?
31706 grep -v '^ *+' conftest.er1 >conftest.err
31707 rm -f conftest.er1
31708 cat conftest.err >&5
31709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31710 (exit $ac_status); } &&
bb9e79c0 31711 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
304205f1
VS
31712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31713 (eval $ac_try) 2>&5
31714 ac_status=$?
31715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31716 (exit $ac_status); }; } &&
31717 { ac_try='test -s conftest$ac_exeext'
31718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31719 (eval $ac_try) 2>&5
31720 ac_status=$?
31721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31722 (exit $ac_status); }; }; then
31723 eval "$as_ac_var=yes"
31724else
31725 echo "$as_me: failed program was:" >&5
31726sed 's/^/| /' conftest.$ac_ext >&5
31727
31728eval "$as_ac_var=no"
31729fi
31730rm -f conftest.err conftest.$ac_objext \
31731 conftest$ac_exeext conftest.$ac_ext
31732fi
31733echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31734echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31735if test `eval echo '${'$as_ac_var'}'` = yes; then
31736 cat >>confdefs.h <<_ACEOF
31737#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31738_ACEOF
31739
31740fi
31741done
31742
479c790c
VZ
31743 CXXFLAGS="$save_CXXFLAGS"
31744 LIBS="$save_LIBS"
a848cd7e
SC
31745 fi
31746
31747 wxUSE_UNIVERSAL="yes"
31748
31749 if test "$wxUSE_NANOX" = "yes"; then
31750 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
31751 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"
31752 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
31753 else
31754 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
31755 fi
31756
a848cd7e
SC
31757 TOOLKIT=X11
31758 GUIDIST=X11_DIST
31759 fi
31760
31761 if test "$wxUSE_MOTIF" = 1; then
0a08f02a
MB
31762 if test "$wxUSE_UNICODE" = "yes"; then
31763 { { echo "$as_me:$LINENO: error: Unicode configuration not supported with Motif" >&5
31764echo "$as_me: error: Unicode configuration not supported with Motif" >&2;}
31765 { (exit 1); exit 1; }; }
31766 fi
31767
74b84332
VS
31768 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
31769echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
a848cd7e 31770
74b84332
VS
31771ac_find_includes=
31772for ac_dir in $SEARCH_INCLUDE /usr/include;
31773 do
31774 if test -f "$ac_dir/Xm/Xm.h"; then
31775 ac_find_includes=$ac_dir
31776 break
31777 fi
31778 done
a848cd7e 31779
74b84332
VS
31780 if test "$ac_find_includes" != "" ; then
31781 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
31782echo "${ECHO_T}found in $ac_find_includes" >&6
31783
31784 if test "x$ac_find_includes" = "x/usr/include"; then
31785 ac_path_to_include=""
31786 else
31787 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
31788 result=$?
31789 if test $result = 0; then
31790 ac_path_to_include=""
31791 else
31792 ac_path_to_include=" -I$ac_find_includes"
31793 fi
a848cd7e
SC
31794 fi
31795
74b84332
VS
31796 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
31797 else
e56f4f9e
VZ
31798 save_CXXFLAGS=$CXXFLAGS
31799 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
e051b34e 31800
74b84332 31801 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
31802/* confdefs.h. */
31803_ACEOF
31804cat confdefs.h >>conftest.$ac_ext
31805cat >>conftest.$ac_ext <<_ACEOF
31806/* end confdefs.h. */
31807
74b84332
VS
31808 #include <Xm/Xm.h>
31809
a848cd7e
SC
31810int
31811main ()
31812{
31813
74b84332
VS
31814 int version;
31815 version = xmUseVersion;
31816
a848cd7e
SC
31817 ;
31818 return 0;
31819}
31820_ACEOF
74b84332
VS
31821rm -f conftest.$ac_objext
31822if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31823 (eval $ac_compile) 2>conftest.er1
a848cd7e 31824 ac_status=$?
ac1cb8d3
VS
31825 grep -v '^ *+' conftest.er1 >conftest.err
31826 rm -f conftest.er1
31827 cat conftest.err >&5
a848cd7e
SC
31828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31829 (exit $ac_status); } &&
bb9e79c0 31830 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31832 (eval $ac_try) 2>&5
31833 ac_status=$?
31834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31835 (exit $ac_status); }; } &&
74b84332 31836 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31838 (eval $ac_try) 2>&5
31839 ac_status=$?
31840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31841 (exit $ac_status); }; }; then
74b84332
VS
31842
31843 echo "$as_me:$LINENO: result: found in default search path" >&5
31844echo "${ECHO_T}found in default search path" >&6
31845 COMPILED_X_PROGRAM=1
31846
a848cd7e
SC
31847else
31848 echo "$as_me: failed program was:" >&5
31849sed 's/^/| /' conftest.$ac_ext >&5
31850
a848cd7e 31851
74b84332
VS
31852 echo "$as_me:$LINENO: result: no" >&5
31853echo "${ECHO_T}no" >&6
e051b34e
MW
31854 { { echo "$as_me:$LINENO: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&5
31855echo "$as_me: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&2;}
74b84332 31856 { (exit 1); exit 1; }; }
a848cd7e 31857
a848cd7e 31858
a848cd7e 31859fi
74b84332 31860rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e051b34e 31861
e56f4f9e 31862 CXXFLAGS=$save_CXXFLAGS
74b84332
VS
31863 fi
31864
0ad5d837
VZ
31865
31866 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
74b84332
VS
31867echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
31868
0ad5d837
VZ
31869 ac_find_libraries=
31870 for ac_dir in $SEARCH_LIB;
74b84332 31871 do
3eca31dc 31872 for ac_extension in a so sl dylib dll.a; do
74b84332
VS
31873 if test -f "$ac_dir/libXm.$ac_extension"; then
31874 ac_find_libraries=$ac_dir
31875 break 2
a848cd7e 31876 fi
74b84332
VS
31877 done
31878 done
a848cd7e 31879
0ad5d837
VZ
31880
31881 if test "x$ac_find_libraries" != "x" ; then
31882 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
31883echo "${ECHO_T}found in $ac_find_libraries" >&6
a848cd7e 31884
74b84332 31885
0ad5d837 31886 if test "$ac_find_libraries" = "default location"; then
74b84332 31887 ac_path_to_link=""
a848cd7e 31888 else
0ad5d837
VZ
31889 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
31890 result=$?
31891 if test $result = 0; then
31892 ac_path_to_link=""
31893 else
31894 ac_path_to_link=" -L$ac_find_libraries"
31895 fi
74b84332
VS
31896 fi
31897
0ad5d837
VZ
31898 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
31899 else
e56f4f9e
VZ
31900 save_CXXFLAGS=$CXXFLAGS
31901 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
6f9cf1e6
MW
31902 save_LIBS="$LIBS"
31903 LIBS="$GUI_TK_LIBRARY -lXm -lXmu -lXext -lX11"
74b84332 31904
0ad5d837 31905 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
31906/* confdefs.h. */
31907_ACEOF
31908cat confdefs.h >>conftest.$ac_ext
31909cat >>conftest.$ac_ext <<_ACEOF
31910/* end confdefs.h. */
31911
0ad5d837 31912 #include <Xm/Xm.h>
74b84332 31913
a848cd7e
SC
31914int
31915main ()
31916{
74b84332 31917
0ad5d837
VZ
31918 int version;
31919 version = xmUseVersion;
74b84332 31920
a848cd7e
SC
31921 ;
31922 return 0;
31923}
31924_ACEOF
0ad5d837
VZ
31925rm -f conftest.$ac_objext conftest$ac_exeext
31926if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31927 (eval $ac_link) 2>conftest.er1
a848cd7e 31928 ac_status=$?
ac1cb8d3
VS
31929 grep -v '^ *+' conftest.er1 >conftest.err
31930 rm -f conftest.er1
31931 cat conftest.err >&5
a848cd7e
SC
31932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31933 (exit $ac_status); } &&
bb9e79c0 31934 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31936 (eval $ac_try) 2>&5
31937 ac_status=$?
31938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31939 (exit $ac_status); }; } &&
0ad5d837 31940 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31942 (eval $ac_try) 2>&5
31943 ac_status=$?
31944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31945 (exit $ac_status); }; }; then
74b84332 31946
0ad5d837 31947 echo "$as_me:$LINENO: result: found in default search path" >&5
74b84332 31948echo "${ECHO_T}found in default search path" >&6
0ad5d837 31949 COMPILED_X_PROGRAM=1
74b84332 31950
a848cd7e
SC
31951else
31952 echo "$as_me: failed program was:" >&5
31953sed 's/^/| /' conftest.$ac_ext >&5
31954
74b84332 31955
6f9cf1e6 31956 echo "$as_me:$LINENO: result: no" >&5
74b84332 31957echo "${ECHO_T}no" >&6
6f9cf1e6 31958 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
74b84332
VS
31959echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
31960 { (exit 1); exit 1; }; }
31961
31962
31963fi
0ad5d837
VZ
31964rm -f conftest.err conftest.$ac_objext \
31965 conftest$ac_exeext conftest.$ac_ext
74b84332 31966
e56f4f9e 31967 CXXFLAGS=$save_CXXFLAGS
6f9cf1e6 31968 LIBS="$save_LIBS"
74b84332
VS
31969 fi
31970
31971 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
31972echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
31973 libp_link=""
31974 libsm_ice_link=""
31975 libs_found=0
31976 for libp in "" " -lXp"; do
31977 if test "$libs_found" = "0"; then
31978 for libsm_ice in "" " -lSM -lICE"; do
31979 if test "$libs_found" = "0"; then
31980 save_LIBS="$LIBS"
31981 LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
e56f4f9e
VZ
31982 save_CXXFLAGS=$CXXFLAGS
31983 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
74b84332
VS
31984
31985 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
31986/* confdefs.h. */
31987_ACEOF
31988cat confdefs.h >>conftest.$ac_ext
31989cat >>conftest.$ac_ext <<_ACEOF
31990/* end confdefs.h. */
31991
74b84332
VS
31992 #include <Xm/Xm.h>
31993 #include <Xm/List.h>
31994
a848cd7e
SC
31995int
31996main ()
31997{
74b84332
VS
31998
31999 XmString string = NULL;
32000 Widget w = NULL;
32001 int position = 0;
32002 XmListAddItem(w, string, position);
32003
a848cd7e
SC
32004 ;
32005 return 0;
32006}
32007_ACEOF
32008rm -f conftest.$ac_objext conftest$ac_exeext
32009if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32010 (eval $ac_link) 2>conftest.er1
a848cd7e 32011 ac_status=$?
ac1cb8d3
VS
32012 grep -v '^ *+' conftest.er1 >conftest.err
32013 rm -f conftest.er1
32014 cat conftest.err >&5
a848cd7e
SC
32015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32016 (exit $ac_status); } &&
bb9e79c0 32017 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32019 (eval $ac_try) 2>&5
32020 ac_status=$?
32021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32022 (exit $ac_status); }; } &&
32023 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32025 (eval $ac_try) 2>&5
32026 ac_status=$?
32027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32028 (exit $ac_status); }; }; then
32029
32030 libp_link="$libp"
32031 libsm_ice_link="$libsm_ice"
32032 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
32033echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
32034 libs_found=1
32035
32036else
32037 echo "$as_me: failed program was:" >&5
32038sed 's/^/| /' conftest.$ac_ext >&5
32039
32040
32041
32042fi
ac1cb8d3
VS
32043rm -f conftest.err conftest.$ac_objext \
32044 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32045
32046 LIBS="$save_LIBS"
e56f4f9e 32047 CXXFLAGS=$save_CXXFLAGS
a848cd7e
SC
32048 fi
32049 done
32050 fi
32051 done
32052
32053 if test "$libs_found" = "0"; then
32054 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
32055echo "${ECHO_T}can't find the right libraries" >&6
32056 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
32057echo "$as_me: error: can't link a simple motif program" >&2;}
32058 { (exit 1); exit 1; }; }
32059 fi
32060
62fa8b3a
MW
32061 echo "$as_me:$LINENO: checking for SgCreateList in -lSgm" >&5
32062echo $ECHO_N "checking for SgCreateList in -lSgm... $ECHO_C" >&6
32063if test "${ac_cv_lib_Sgm_SgCreateList+set}" = set; then
32064 echo $ECHO_N "(cached) $ECHO_C" >&6
32065else
32066 ac_check_lib_save_LIBS=$LIBS
32067LIBS="-lSgm $LIBS"
32068cat >conftest.$ac_ext <<_ACEOF
32069/* confdefs.h. */
32070_ACEOF
32071cat confdefs.h >>conftest.$ac_ext
32072cat >>conftest.$ac_ext <<_ACEOF
32073/* end confdefs.h. */
32074
32075/* Override any gcc2 internal prototype to avoid an error. */
32076#ifdef __cplusplus
32077extern "C"
32078#endif
32079/* We use char because int might match the return type of a gcc2
32080 builtin and then its argument prototype would still apply. */
32081char SgCreateList ();
32082int
32083main ()
32084{
32085SgCreateList ();
32086 ;
32087 return 0;
32088}
32089_ACEOF
32090rm -f conftest.$ac_objext conftest$ac_exeext
32091if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32092 (eval $ac_link) 2>conftest.er1
32093 ac_status=$?
32094 grep -v '^ *+' conftest.er1 >conftest.err
32095 rm -f conftest.er1
32096 cat conftest.err >&5
32097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32098 (exit $ac_status); } &&
bb9e79c0 32099 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
62fa8b3a
MW
32100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32101 (eval $ac_try) 2>&5
32102 ac_status=$?
32103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32104 (exit $ac_status); }; } &&
32105 { ac_try='test -s conftest$ac_exeext'
32106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32107 (eval $ac_try) 2>&5
32108 ac_status=$?
32109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32110 (exit $ac_status); }; }; then
32111 ac_cv_lib_Sgm_SgCreateList=yes
32112else
32113 echo "$as_me: failed program was:" >&5
32114sed 's/^/| /' conftest.$ac_ext >&5
32115
32116ac_cv_lib_Sgm_SgCreateList=no
32117fi
32118rm -f conftest.err conftest.$ac_objext \
32119 conftest$ac_exeext conftest.$ac_ext
32120LIBS=$ac_check_lib_save_LIBS
32121fi
32122echo "$as_me:$LINENO: result: $ac_cv_lib_Sgm_SgCreateList" >&5
32123echo "${ECHO_T}$ac_cv_lib_Sgm_SgCreateList" >&6
32124if test $ac_cv_lib_Sgm_SgCreateList = yes; then
32125 libsgm_link=" -lSgm"
32126fi
32127
32128
e56f4f9e
VZ
32129 save_CXXFLAGS=$CXXFLAGS
32130 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
0ad5d837 32131
a848cd7e
SC
32132 echo "$as_me:$LINENO: checking for Motif 2" >&5
32133echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
0ad5d837
VZ
32134if test "${wx_cv_lib_motif2+set}" = set; then
32135 echo $ECHO_N "(cached) $ECHO_C" >&6
32136else
32137 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
32138/* confdefs.h. */
32139_ACEOF
32140cat confdefs.h >>conftest.$ac_ext
32141cat >>conftest.$ac_ext <<_ACEOF
32142/* end confdefs.h. */
32143
0ad5d837 32144 #include <Xm/Xm.h>
a848cd7e
SC
32145
32146int
32147main ()
32148{
32149
0ad5d837
VZ
32150 #if XmVersion < 2000
32151 Not Motif 2
32152 #endif
a848cd7e
SC
32153
32154 ;
32155 return 0;
32156}
32157_ACEOF
32158rm -f conftest.$ac_objext
32159if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32160 (eval $ac_compile) 2>conftest.er1
a848cd7e 32161 ac_status=$?
ac1cb8d3
VS
32162 grep -v '^ *+' conftest.er1 >conftest.err
32163 rm -f conftest.er1
32164 cat conftest.err >&5
a848cd7e
SC
32165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32166 (exit $ac_status); } &&
bb9e79c0 32167 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32169 (eval $ac_try) 2>&5
32170 ac_status=$?
32171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32172 (exit $ac_status); }; } &&
32173 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32175 (eval $ac_try) 2>&5
32176 ac_status=$?
32177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32178 (exit $ac_status); }; }; then
0ad5d837 32179 wx_cv_lib_motif2="yes"
a848cd7e
SC
32180else
32181 echo "$as_me: failed program was:" >&5
32182sed 's/^/| /' conftest.$ac_ext >&5
32183
0ad5d837
VZ
32184wx_cv_lib_motif2="no"
32185fi
32186rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32187fi
32188echo "$as_me:$LINENO: result: $wx_cv_lib_motif2" >&5
32189echo "${ECHO_T}$wx_cv_lib_motif2" >&6
32190 if test "$wx_cv_lib_motif2" = "yes"; then
32191 cat >>confdefs.h <<\_ACEOF
32192#define __WXMOTIF20__ 1
32193_ACEOF
a848cd7e 32194
0ad5d837
VZ
32195 else
32196 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
32197#define __WXMOTIF20__ 0
32198_ACEOF
32199
0ad5d837 32200 fi
2113bc77
MW
32201
32202 echo "$as_me:$LINENO: checking whether Motif is Lesstif" >&5
32203echo $ECHO_N "checking whether Motif is Lesstif... $ECHO_C" >&6
0ad5d837
VZ
32204if test "${wx_cv_lib_lesstif+set}" = set; then
32205 echo $ECHO_N "(cached) $ECHO_C" >&6
32206else
32207 cat >conftest.$ac_ext <<_ACEOF
2113bc77
MW
32208/* confdefs.h. */
32209_ACEOF
32210cat confdefs.h >>conftest.$ac_ext
32211cat >>conftest.$ac_ext <<_ACEOF
32212/* end confdefs.h. */
32213
0ad5d837 32214 #include <Xm/Xm.h>
2113bc77
MW
32215
32216int
32217main ()
32218{
32219
0ad5d837
VZ
32220 #if !defined(LesstifVersion) || LesstifVersion <= 0
32221 Not Lesstif
32222 #endif
2113bc77
MW
32223
32224 ;
32225 return 0;
32226}
32227_ACEOF
32228rm -f conftest.$ac_objext
32229if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32230 (eval $ac_compile) 2>conftest.er1
32231 ac_status=$?
32232 grep -v '^ *+' conftest.er1 >conftest.err
32233 rm -f conftest.er1
32234 cat conftest.err >&5
32235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32236 (exit $ac_status); } &&
bb9e79c0 32237 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2113bc77
MW
32238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32239 (eval $ac_try) 2>&5
32240 ac_status=$?
32241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32242 (exit $ac_status); }; } &&
32243 { ac_try='test -s conftest.$ac_objext'
32244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32245 (eval $ac_try) 2>&5
32246 ac_status=$?
32247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32248 (exit $ac_status); }; }; then
0ad5d837 32249 wx_cv_lib_lesstif="yes"
2113bc77
MW
32250else
32251 echo "$as_me: failed program was:" >&5
32252sed 's/^/| /' conftest.$ac_ext >&5
32253
0ad5d837
VZ
32254wx_cv_lib_lesstif="no"
32255fi
32256rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2113bc77 32257
0ad5d837
VZ
32258fi
32259echo "$as_me:$LINENO: result: $wx_cv_lib_lesstif" >&5
32260echo "${ECHO_T}$wx_cv_lib_lesstif" >&6
32261 if test "$wx_cv_lib_lesstif" = "yes"; then
32262 cat >>confdefs.h <<\_ACEOF
32263#define __WXLESSTIF__ 1
32264_ACEOF
32265
32266 else
32267 cat >>confdefs.h <<\_ACEOF
2113bc77
MW
32268#define __WXLESSTIF__ 0
32269_ACEOF
32270
0ad5d837 32271 fi
2113bc77 32272
e56f4f9e 32273 CXXFLAGS=$save_CXXFLAGS
a848cd7e 32274
62fa8b3a 32275 GUI_TK_LIBRARY="$GUI_TK_LIBRARY${libsgm_link} -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
a848cd7e
SC
32276 TOOLKIT=MOTIF
32277 GUIDIST=MOTIF_DIST
32278 fi
32279
74b84332 32280 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
a848cd7e
SC
32281 if test "$wxUSE_LIBXPM" = "sys"; then
32282 echo "$as_me:$LINENO: checking for Xpm library" >&5
32283echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
32284
0ad5d837
VZ
32285 ac_find_libraries=
32286 for ac_dir in $SEARCH_LIB;
a848cd7e 32287 do
3eca31dc 32288 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
32289 if test -f "$ac_dir/libXpm.$ac_extension"; then
32290 ac_find_libraries=$ac_dir
32291 break 2
32292 fi
32293 done
32294 done
32295
32296 if test "$ac_find_libraries" != "" ; then
32297
0ad5d837 32298 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
32299 ac_path_to_link=""
32300 else
0ad5d837
VZ
32301 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
32302 result=$?
32303 if test $result = 0; then
32304 ac_path_to_link=""
32305 else
32306 ac_path_to_link=" -L$ac_find_libraries"
32307 fi
a848cd7e
SC
32308 fi
32309
32310 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
0ad5d837
VZ
32311 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
32312echo "${ECHO_T}found in $ac_find_libraries" >&6
a848cd7e
SC
32313
32314 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
32315echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
32316if test "${wx_cv_x11_xpm_h+set}" = set; then
32317 echo $ECHO_N "(cached) $ECHO_C" >&6
32318else
32319
e56f4f9e
VZ
32320 save_CXXFLAGS=$CXXFLAGS
32321 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
a848cd7e
SC
32322
32323 cat >conftest.$ac_ext <<_ACEOF
32324/* confdefs.h. */
32325_ACEOF
32326cat confdefs.h >>conftest.$ac_ext
32327cat >>conftest.$ac_ext <<_ACEOF
32328/* end confdefs.h. */
32329
32330 #include <X11/xpm.h>
32331
32332int
32333main ()
32334{
32335
32336 int version;
32337 version = XpmLibraryVersion();
32338
32339 ;
32340 return 0;
32341}
32342_ACEOF
32343rm -f conftest.$ac_objext
32344if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32345 (eval $ac_compile) 2>conftest.er1
a848cd7e 32346 ac_status=$?
ac1cb8d3
VS
32347 grep -v '^ *+' conftest.er1 >conftest.err
32348 rm -f conftest.er1
32349 cat conftest.err >&5
a848cd7e
SC
32350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32351 (exit $ac_status); } &&
bb9e79c0 32352 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32354 (eval $ac_try) 2>&5
32355 ac_status=$?
32356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32357 (exit $ac_status); }; } &&
32358 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32360 (eval $ac_try) 2>&5
32361 ac_status=$?
32362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32363 (exit $ac_status); }; }; then
32364 wx_cv_x11_xpm_h=yes
32365else
32366 echo "$as_me: failed program was:" >&5
32367sed 's/^/| /' conftest.$ac_ext >&5
32368
32369wx_cv_x11_xpm_h=no
32370
32371fi
ac1cb8d3 32372rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 32373
e56f4f9e 32374 CXXFLAGS=$save_CXXFLAGS
a848cd7e
SC
32375
32376
32377fi
32378echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
32379echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
32380
32381 if test $wx_cv_x11_xpm_h = "yes"; then
32382 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
32383 cat >>confdefs.h <<\_ACEOF
32384#define wxHAVE_LIB_XPM 1
32385_ACEOF
32386
32387 else
32388 { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
32389echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
32390 fi
32391 fi
32392
32393 fi
32394
32395 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
32396echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
32397if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
32398 echo $ECHO_N "(cached) $ECHO_C" >&6
32399else
32400 ac_check_lib_save_LIBS=$LIBS
32401LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
32402cat >conftest.$ac_ext <<_ACEOF
32403/* confdefs.h. */
32404_ACEOF
32405cat confdefs.h >>conftest.$ac_ext
32406cat >>conftest.$ac_ext <<_ACEOF
32407/* end confdefs.h. */
32408
32409/* Override any gcc2 internal prototype to avoid an error. */
32410#ifdef __cplusplus
32411extern "C"
32412#endif
32413/* We use char because int might match the return type of a gcc2
32414 builtin and then its argument prototype would still apply. */
32415char XShapeQueryExtension ();
32416int
32417main ()
32418{
32419XShapeQueryExtension ();
32420 ;
32421 return 0;
32422}
32423_ACEOF
32424rm -f conftest.$ac_objext conftest$ac_exeext
32425if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32426 (eval $ac_link) 2>conftest.er1
a848cd7e 32427 ac_status=$?
ac1cb8d3
VS
32428 grep -v '^ *+' conftest.er1 >conftest.err
32429 rm -f conftest.er1
32430 cat conftest.err >&5
a848cd7e
SC
32431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32432 (exit $ac_status); } &&
bb9e79c0 32433 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32435 (eval $ac_try) 2>&5
32436 ac_status=$?
32437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32438 (exit $ac_status); }; } &&
32439 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32441 (eval $ac_try) 2>&5
32442 ac_status=$?
32443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32444 (exit $ac_status); }; }; then
32445 ac_cv_lib_Xext_XShapeQueryExtension=yes
32446else
32447 echo "$as_me: failed program was:" >&5
32448sed 's/^/| /' conftest.$ac_ext >&5
32449
32450ac_cv_lib_Xext_XShapeQueryExtension=no
32451fi
ac1cb8d3
VS
32452rm -f conftest.err conftest.$ac_objext \
32453 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32454LIBS=$ac_check_lib_save_LIBS
32455fi
32456echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
32457echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
32458if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
32459
32460 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
32461 wxHAVE_XEXT_LIB=1
32462
32463fi
32464
32465
32466 if test "$wxHAVE_XEXT_LIB" = 1; then
e56f4f9e
VZ
32467 save_CXXFLAGS="$CXXFLAGS"
32468 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
a848cd7e
SC
32469
32470 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
32471echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
32472 cat >conftest.$ac_ext <<_ACEOF
32473/* confdefs.h. */
32474_ACEOF
32475cat confdefs.h >>conftest.$ac_ext
32476cat >>conftest.$ac_ext <<_ACEOF
32477/* end confdefs.h. */
32478
32479 #include <X11/Xlib.h>
32480 #include <X11/extensions/shape.h>
32481
32482int
32483main ()
32484{
32485
32486 int dummy1, dummy2;
32487 XShapeQueryExtension((Display*)NULL,
32488 (int*)NULL, (int*)NULL);
32489
32490 ;
32491 return 0;
32492}
32493_ACEOF
32494rm -f conftest.$ac_objext
32495if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32496 (eval $ac_compile) 2>conftest.er1
a848cd7e 32497 ac_status=$?
ac1cb8d3
VS
32498 grep -v '^ *+' conftest.er1 >conftest.err
32499 rm -f conftest.er1
32500 cat conftest.err >&5
a848cd7e
SC
32501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32502 (exit $ac_status); } &&
bb9e79c0 32503 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32505 (eval $ac_try) 2>&5
32506 ac_status=$?
32507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32508 (exit $ac_status); }; } &&
32509 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32511 (eval $ac_try) 2>&5
32512 ac_status=$?
32513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32514 (exit $ac_status); }; }; then
32515
32516 cat >>confdefs.h <<\_ACEOF
32517#define HAVE_XSHAPE 1
32518_ACEOF
32519
32520 echo "$as_me:$LINENO: result: found" >&5
32521echo "${ECHO_T}found" >&6
32522
32523else
32524 echo "$as_me: failed program was:" >&5
32525sed 's/^/| /' conftest.$ac_ext >&5
32526
32527
32528 echo "$as_me:$LINENO: result: not found" >&5
32529echo "${ECHO_T}not found" >&6
32530
32531fi
ac1cb8d3 32532rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e56f4f9e 32533 CXXFLAGS="$save_CXXFLAGS"
a848cd7e
SC
32534
32535 fi
32536 fi
32537
32538 if test "$wxUSE_MAC" = 1; then
32539 echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
32540echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
32541 if test "$GCC" = yes; then
32542 echo "$as_me:$LINENO: result: gcc" >&5
32543echo "${ECHO_T}gcc" >&6
32544 CPPFLAGS_PASCAL="-fpascal-strings"
32545 elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
32546 echo "$as_me:$LINENO: result: xlc" >&5
32547echo "${ECHO_T}xlc" >&6
32548 CPPFLAGS_PASCAL="-qmacpstr"
32549 else
32550 echo "$as_me:$LINENO: result: none" >&5
32551echo "${ECHO_T}none" >&6
32552 fi
32553
1e9e8aba 32554 if test "x$wxUSE_UNIX" = "xyes"; then
c92ad099 32555 CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon $CPPFLAGS"
1e9e8aba 32556 else
c92ad099 32557 CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON $CPPFLAGS"
1e9e8aba 32558 fi
a848cd7e 32559
a848cd7e
SC
32560 TOOLKIT=MAC
32561 GUIDIST=MACX_DIST
dd21ced8 32562 WXBASEPORT="_carbon"
a848cd7e
SC
32563 fi
32564
32565 if test "$wxUSE_COCOA" = 1; then
a848cd7e
SC
32566 TOOLKIT=COCOA
32567 GUIDIST=COCOA_DIST
32568 fi
32569
32570 if test "$wxUSE_PM" = 1; then
32571 TOOLKIT=PM
de59c161
RD
32572 GUIDIST=PM_DIST
32573 echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
32574echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6
32575if test "${wx_cv_spbcdata+set}" = set; then
32576 echo $ECHO_N "(cached) $ECHO_C" >&6
32577else
32578
32579 cat >conftest.$ac_ext <<_ACEOF
de59c161
RD
32580/* confdefs.h. */
32581_ACEOF
32582cat confdefs.h >>conftest.$ac_ext
32583cat >>conftest.$ac_ext <<_ACEOF
32584/* end confdefs.h. */
32585
32586 #define INCL_PM
32587 #include <os2.h>
32588
32589int
32590main ()
32591{
32592
32593 SPBCDATA test;
32594
32595 ;
32596 return 0;
32597}
32598_ACEOF
32599rm -f conftest.$ac_objext
32600if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32601 (eval $ac_compile) 2>conftest.er1
de59c161 32602 ac_status=$?
ac1cb8d3
VS
32603 grep -v '^ *+' conftest.er1 >conftest.err
32604 rm -f conftest.er1
32605 cat conftest.err >&5
de59c161
RD
32606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32607 (exit $ac_status); } &&
bb9e79c0 32608 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32610 (eval $ac_try) 2>&5
32611 ac_status=$?
32612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32613 (exit $ac_status); }; } &&
32614 { ac_try='test -s conftest.$ac_objext'
de59c161
RD
32615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32616 (eval $ac_try) 2>&5
32617 ac_status=$?
32618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32619 (exit $ac_status); }; }; then
32620 wx_cv_spbcdata=yes
32621else
32622 echo "$as_me: failed program was:" >&5
32623sed 's/^/| /' conftest.$ac_ext >&5
32624
32625wx_cv_spbcdata=no
32626
32627fi
ac1cb8d3 32628rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
de59c161
RD
32629
32630
32631fi
32632echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
32633echo "${ECHO_T}$wx_cv_spbcdata" >&6
32634
32635 if test $wx_cv_spbcdata = "yes"; then
32636 cat >>confdefs.h <<\_ACEOF
32637#define HAVE_SPBCDATA 1
32638_ACEOF
32639
32640 fi
a848cd7e
SC
32641 fi
32642
32643 if test "$TOOLKIT" = "PM" ; then
32644 TOOLKIT_DIR="os2"
32645 else
32646 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
32647 fi
32648
a848cd7e 32649 if test "$wxUSE_UNIVERSAL" = "yes"; then
a848cd7e
SC
32650 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
32651 WIDGET_SET=univ
a848cd7e
SC
32652 fi
32653
32654 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
32655 DISTDIR="wx\$(TOOLKIT)"
32656else
32657 USE_GUI=0
32658
32659 TOOLKIT_DIR="base"
32660
32661 if test "$USE_WIN32" = 1 ; then
a848cd7e 32662 TOOLKIT="MSW"
a848cd7e
SC
32663 fi
32664
a848cd7e
SC
32665 GUIDIST="BASE_DIST"
32666 DISTDIR="wxBase"
32667fi
32668
32669
d12aef51
VZ
32670if test "$wxUSE_GUI" = "yes"; then
32671 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
32672
32673for ac_header in X11/Xlib.h
32674do
32675as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32676if eval "test \"\${$as_ac_Header+set}\" = set"; then
32677 echo "$as_me:$LINENO: checking for $ac_header" >&5
32678echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32679if eval "test \"\${$as_ac_Header+set}\" = set"; then
32680 echo $ECHO_N "(cached) $ECHO_C" >&6
32681fi
32682echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32683echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32684else
32685 # Is the header compilable?
32686echo "$as_me:$LINENO: checking $ac_header usability" >&5
32687echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32688cat >conftest.$ac_ext <<_ACEOF
32689/* confdefs.h. */
32690_ACEOF
32691cat confdefs.h >>conftest.$ac_ext
32692cat >>conftest.$ac_ext <<_ACEOF
32693/* end confdefs.h. */
32694$ac_includes_default
32695#include <$ac_header>
32696_ACEOF
32697rm -f conftest.$ac_objext
32698if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32699 (eval $ac_compile) 2>conftest.er1
32700 ac_status=$?
32701 grep -v '^ *+' conftest.er1 >conftest.err
32702 rm -f conftest.er1
32703 cat conftest.err >&5
32704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32705 (exit $ac_status); } &&
bb9e79c0 32706 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
d12aef51
VZ
32707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32708 (eval $ac_try) 2>&5
32709 ac_status=$?
32710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32711 (exit $ac_status); }; } &&
32712 { ac_try='test -s conftest.$ac_objext'
32713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32714 (eval $ac_try) 2>&5
32715 ac_status=$?
32716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32717 (exit $ac_status); }; }; then
32718 ac_header_compiler=yes
32719else
32720 echo "$as_me: failed program was:" >&5
32721sed 's/^/| /' conftest.$ac_ext >&5
32722
32723ac_header_compiler=no
32724fi
32725rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32726echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32727echo "${ECHO_T}$ac_header_compiler" >&6
32728
32729# Is the header present?
32730echo "$as_me:$LINENO: checking $ac_header presence" >&5
32731echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32732cat >conftest.$ac_ext <<_ACEOF
32733/* confdefs.h. */
32734_ACEOF
32735cat confdefs.h >>conftest.$ac_ext
32736cat >>conftest.$ac_ext <<_ACEOF
32737/* end confdefs.h. */
32738#include <$ac_header>
32739_ACEOF
32740if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32741 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32742 ac_status=$?
32743 grep -v '^ *+' conftest.er1 >conftest.err
32744 rm -f conftest.er1
32745 cat conftest.err >&5
32746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32747 (exit $ac_status); } >/dev/null; then
32748 if test -s conftest.err; then
5d7b7554
VZ
32749 ac_cpp_err=$ac_cxx_preproc_warn_flag
32750 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
d12aef51
VZ
32751 else
32752 ac_cpp_err=
32753 fi
32754else
32755 ac_cpp_err=yes
32756fi
32757if test -z "$ac_cpp_err"; then
32758 ac_header_preproc=yes
32759else
32760 echo "$as_me: failed program was:" >&5
32761sed 's/^/| /' conftest.$ac_ext >&5
32762
32763 ac_header_preproc=no
32764fi
32765rm -f conftest.err conftest.$ac_ext
32766echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32767echo "${ECHO_T}$ac_header_preproc" >&6
32768
32769# So? What about this header?
5d7b7554 32770case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
d12aef51
VZ
32771 yes:no: )
32772 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32773echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32774 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32775echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32776 ac_header_preproc=yes
32777 ;;
32778 no:yes:* )
32779 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32780echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32781 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32782echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32783 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32784echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32785 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
32786echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
32787 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32788echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32789 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32790echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32791 (
32792 cat <<\_ASBOX
32793## ----------------------------------------- ##
32794## Report this to wx-dev@lists.wxwidgets.org ##
32795## ----------------------------------------- ##
32796_ASBOX
32797 ) |
32798 sed "s/^/$as_me: WARNING: /" >&2
32799 ;;
32800esac
32801echo "$as_me:$LINENO: checking for $ac_header" >&5
32802echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32803if eval "test \"\${$as_ac_Header+set}\" = set"; then
32804 echo $ECHO_N "(cached) $ECHO_C" >&6
32805else
32806 eval "$as_ac_Header=\$ac_header_preproc"
32807fi
32808echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32809echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32810
32811fi
32812if test `eval echo '${'$as_ac_Header'}'` = yes; then
32813 cat >>confdefs.h <<_ACEOF
32814#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32815_ACEOF
32816
32817fi
32818
32819done
32820
32821
32822for ac_header in X11/XKBlib.h
32823do
32824as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32825echo "$as_me:$LINENO: checking for $ac_header" >&5
32826echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32827if eval "test \"\${$as_ac_Header+set}\" = set"; then
32828 echo $ECHO_N "(cached) $ECHO_C" >&6
32829else
32830 cat >conftest.$ac_ext <<_ACEOF
32831/* confdefs.h. */
32832_ACEOF
32833cat confdefs.h >>conftest.$ac_ext
32834cat >>conftest.$ac_ext <<_ACEOF
32835/* end confdefs.h. */
32836
32837 #if HAVE_X11_XLIB_H
32838 #include <X11/Xlib.h>
32839 #endif
32840
32841
32842#include <$ac_header>
32843_ACEOF
32844rm -f conftest.$ac_objext
32845if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32846 (eval $ac_compile) 2>conftest.er1
32847 ac_status=$?
32848 grep -v '^ *+' conftest.er1 >conftest.err
32849 rm -f conftest.er1
32850 cat conftest.err >&5
32851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32852 (exit $ac_status); } &&
bb9e79c0 32853 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
d12aef51
VZ
32854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32855 (eval $ac_try) 2>&5
32856 ac_status=$?
32857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32858 (exit $ac_status); }; } &&
32859 { ac_try='test -s conftest.$ac_objext'
32860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32861 (eval $ac_try) 2>&5
32862 ac_status=$?
32863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32864 (exit $ac_status); }; }; then
32865 eval "$as_ac_Header=yes"
32866else
32867 echo "$as_me: failed program was:" >&5
32868sed 's/^/| /' conftest.$ac_ext >&5
32869
32870eval "$as_ac_Header=no"
32871fi
32872rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32873fi
32874echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32875echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32876if test `eval echo '${'$as_ac_Header'}'` = yes; then
32877 cat >>confdefs.h <<_ACEOF
32878#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32879_ACEOF
32880
32881fi
32882
32883done
32884
32885 fi
32886fi
32887
a848cd7e
SC
32888
32889
32890IODBC_C_SRC=""
32891
32892
32893if test "$TOOLKIT" != "MSW" ; then
32894
32895 if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
32896
32897 if test "${ac_cv_header_sql_h+set}" = set; then
32898 echo "$as_me:$LINENO: checking for sql.h" >&5
32899echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
32900if test "${ac_cv_header_sql_h+set}" = set; then
32901 echo $ECHO_N "(cached) $ECHO_C" >&6
32902fi
32903echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
32904echo "${ECHO_T}$ac_cv_header_sql_h" >&6
32905else
32906 # Is the header compilable?
32907echo "$as_me:$LINENO: checking sql.h usability" >&5
32908echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
32909cat >conftest.$ac_ext <<_ACEOF
32910/* confdefs.h. */
32911_ACEOF
32912cat confdefs.h >>conftest.$ac_ext
32913cat >>conftest.$ac_ext <<_ACEOF
32914/* end confdefs.h. */
32915$ac_includes_default
32916#include <sql.h>
32917_ACEOF
32918rm -f conftest.$ac_objext
32919if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32920 (eval $ac_compile) 2>conftest.er1
a848cd7e 32921 ac_status=$?
ac1cb8d3
VS
32922 grep -v '^ *+' conftest.er1 >conftest.err
32923 rm -f conftest.er1
32924 cat conftest.err >&5
a848cd7e
SC
32925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32926 (exit $ac_status); } &&
bb9e79c0 32927 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32929 (eval $ac_try) 2>&5
32930 ac_status=$?
32931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32932 (exit $ac_status); }; } &&
32933 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32935 (eval $ac_try) 2>&5
32936 ac_status=$?
32937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32938 (exit $ac_status); }; }; then
32939 ac_header_compiler=yes
32940else
32941 echo "$as_me: failed program was:" >&5
32942sed 's/^/| /' conftest.$ac_ext >&5
32943
32944ac_header_compiler=no
32945fi
ac1cb8d3 32946rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32947echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32948echo "${ECHO_T}$ac_header_compiler" >&6
32949
32950# Is the header present?
32951echo "$as_me:$LINENO: checking sql.h presence" >&5
32952echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
32953cat >conftest.$ac_ext <<_ACEOF
32954/* confdefs.h. */
32955_ACEOF
32956cat confdefs.h >>conftest.$ac_ext
32957cat >>conftest.$ac_ext <<_ACEOF
32958/* end confdefs.h. */
32959#include <sql.h>
32960_ACEOF
32961if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32962 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32963 ac_status=$?
32964 grep -v '^ *+' conftest.er1 >conftest.err
32965 rm -f conftest.er1
32966 cat conftest.err >&5
32967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32968 (exit $ac_status); } >/dev/null; then
32969 if test -s conftest.err; then
5d7b7554
VZ
32970 ac_cpp_err=$ac_cxx_preproc_warn_flag
32971 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
32972 else
32973 ac_cpp_err=
32974 fi
32975else
32976 ac_cpp_err=yes
32977fi
32978if test -z "$ac_cpp_err"; then
32979 ac_header_preproc=yes
32980else
32981 echo "$as_me: failed program was:" >&5
32982sed 's/^/| /' conftest.$ac_ext >&5
32983
32984 ac_header_preproc=no
32985fi
32986rm -f conftest.err conftest.$ac_ext
32987echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32988echo "${ECHO_T}$ac_header_preproc" >&6
32989
32990# So? What about this header?
5d7b7554 32991case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 32992 yes:no: )
a848cd7e
SC
32993 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
32994echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
32995 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
32996echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
32997 ac_header_preproc=yes
a848cd7e 32998 ;;
ac1cb8d3 32999 no:yes:* )
a848cd7e
SC
33000 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
33001echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
33002 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
33003echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
33004 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
33005echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
33006 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
33007echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
33008 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
33009echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
33010 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
33011echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
33012 (
33013 cat <<\_ASBOX
ac1cb8d3
VS
33014## ----------------------------------------- ##
33015## Report this to wx-dev@lists.wxwidgets.org ##
33016## ----------------------------------------- ##
a848cd7e
SC
33017_ASBOX
33018 ) |
33019 sed "s/^/$as_me: WARNING: /" >&2
33020 ;;
33021esac
33022echo "$as_me:$LINENO: checking for sql.h" >&5
33023echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
33024if test "${ac_cv_header_sql_h+set}" = set; then
33025 echo $ECHO_N "(cached) $ECHO_C" >&6
33026else
33027 ac_cv_header_sql_h=$ac_header_preproc
33028fi
33029echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
33030echo "${ECHO_T}$ac_cv_header_sql_h" >&6
33031
33032fi
33033if test $ac_cv_header_sql_h = yes; then
33034 found_sql_h=1
33035fi
33036
33037
33038 if test "x$found_sql_h" = "x1" ; then
33039 echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
33040echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
33041if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
33042 echo $ECHO_N "(cached) $ECHO_C" >&6
33043else
33044 ac_check_lib_save_LIBS=$LIBS
33045LIBS="-liodbc $LIBS"
33046cat >conftest.$ac_ext <<_ACEOF
33047/* confdefs.h. */
33048_ACEOF
33049cat confdefs.h >>conftest.$ac_ext
33050cat >>conftest.$ac_ext <<_ACEOF
33051/* end confdefs.h. */
33052
33053/* Override any gcc2 internal prototype to avoid an error. */
33054#ifdef __cplusplus
33055extern "C"
33056#endif
33057/* We use char because int might match the return type of a gcc2
33058 builtin and then its argument prototype would still apply. */
33059char SQLAllocEnv ();
33060int
33061main ()
33062{
33063SQLAllocEnv ();
33064 ;
33065 return 0;
33066}
33067_ACEOF
33068rm -f conftest.$ac_objext conftest$ac_exeext
33069if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33070 (eval $ac_link) 2>conftest.er1
a848cd7e 33071 ac_status=$?
ac1cb8d3
VS
33072 grep -v '^ *+' conftest.er1 >conftest.err
33073 rm -f conftest.er1
33074 cat conftest.err >&5
a848cd7e
SC
33075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33076 (exit $ac_status); } &&
bb9e79c0 33077 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33079 (eval $ac_try) 2>&5
33080 ac_status=$?
33081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33082 (exit $ac_status); }; } &&
33083 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33085 (eval $ac_try) 2>&5
33086 ac_status=$?
33087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33088 (exit $ac_status); }; }; then
33089 ac_cv_lib_iodbc_SQLAllocEnv=yes
33090else
33091 echo "$as_me: failed program was:" >&5
33092sed 's/^/| /' conftest.$ac_ext >&5
33093
33094ac_cv_lib_iodbc_SQLAllocEnv=no
33095fi
ac1cb8d3
VS
33096rm -f conftest.err conftest.$ac_objext \
33097 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33098LIBS=$ac_check_lib_save_LIBS
33099fi
33100echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
33101echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
33102if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
33103 ODBC_LINK=" -liodbc"
33104else
33105
33106 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
33107echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
33108if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
33109 echo $ECHO_N "(cached) $ECHO_C" >&6
33110else
33111 ac_check_lib_save_LIBS=$LIBS
33112LIBS="-lunixodbc $LIBS"
33113cat >conftest.$ac_ext <<_ACEOF
33114/* confdefs.h. */
33115_ACEOF
33116cat confdefs.h >>conftest.$ac_ext
33117cat >>conftest.$ac_ext <<_ACEOF
33118/* end confdefs.h. */
33119
33120/* Override any gcc2 internal prototype to avoid an error. */
33121#ifdef __cplusplus
33122extern "C"
33123#endif
33124/* We use char because int might match the return type of a gcc2
33125 builtin and then its argument prototype would still apply. */
33126char SQLAllocEnv ();
33127int
33128main ()
33129{
33130SQLAllocEnv ();
33131 ;
33132 return 0;
33133}
33134_ACEOF
33135rm -f conftest.$ac_objext conftest$ac_exeext
33136if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33137 (eval $ac_link) 2>conftest.er1
a848cd7e 33138 ac_status=$?
ac1cb8d3
VS
33139 grep -v '^ *+' conftest.er1 >conftest.err
33140 rm -f conftest.er1
33141 cat conftest.err >&5
a848cd7e
SC
33142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33143 (exit $ac_status); } &&
bb9e79c0 33144 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33146 (eval $ac_try) 2>&5
33147 ac_status=$?
33148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33149 (exit $ac_status); }; } &&
33150 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33152 (eval $ac_try) 2>&5
33153 ac_status=$?
33154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33155 (exit $ac_status); }; }; then
33156 ac_cv_lib_unixodbc_SQLAllocEnv=yes
33157else
33158 echo "$as_me: failed program was:" >&5
33159sed 's/^/| /' conftest.$ac_ext >&5
33160
33161ac_cv_lib_unixodbc_SQLAllocEnv=no
33162fi
ac1cb8d3
VS
33163rm -f conftest.err conftest.$ac_objext \
33164 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33165LIBS=$ac_check_lib_save_LIBS
33166fi
33167echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
33168echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
33169if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
33170 ODBC_LINK=" -lunixodbc"
33171else
33172
33173 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
33174echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
33175if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
33176 echo $ECHO_N "(cached) $ECHO_C" >&6
33177else
33178 ac_check_lib_save_LIBS=$LIBS
33179LIBS="-lodbc $LIBS"
33180cat >conftest.$ac_ext <<_ACEOF
33181/* confdefs.h. */
33182_ACEOF
33183cat confdefs.h >>conftest.$ac_ext
33184cat >>conftest.$ac_ext <<_ACEOF
33185/* end confdefs.h. */
33186
33187/* Override any gcc2 internal prototype to avoid an error. */
33188#ifdef __cplusplus
33189extern "C"
33190#endif
33191/* We use char because int might match the return type of a gcc2
33192 builtin and then its argument prototype would still apply. */
33193char SQLAllocEnv ();
33194int
33195main ()
33196{
33197SQLAllocEnv ();
33198 ;
33199 return 0;
33200}
33201_ACEOF
33202rm -f conftest.$ac_objext conftest$ac_exeext
33203if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33204 (eval $ac_link) 2>conftest.er1
a848cd7e 33205 ac_status=$?
ac1cb8d3
VS
33206 grep -v '^ *+' conftest.er1 >conftest.err
33207 rm -f conftest.er1
33208 cat conftest.err >&5
a848cd7e
SC
33209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33210 (exit $ac_status); } &&
bb9e79c0 33211 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33213 (eval $ac_try) 2>&5
33214 ac_status=$?
33215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33216 (exit $ac_status); }; } &&
33217 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33219 (eval $ac_try) 2>&5
33220 ac_status=$?
33221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33222 (exit $ac_status); }; }; then
33223 ac_cv_lib_odbc_SQLAllocEnv=yes
33224else
33225 echo "$as_me: failed program was:" >&5
33226sed 's/^/| /' conftest.$ac_ext >&5
33227
33228ac_cv_lib_odbc_SQLAllocEnv=no
33229fi
ac1cb8d3
VS
33230rm -f conftest.err conftest.$ac_objext \
33231 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33232LIBS=$ac_check_lib_save_LIBS
33233fi
33234echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
33235echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
33236if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
33237 ODBC_LINK=" -lodbc"
33238fi
33239
33240
33241fi
33242
33243
33244fi
33245
33246 fi
33247 if test "x$ODBC_LINK" = "x" ; then
33248 if test "$wxUSE_ODBC" = "sys" ; then
33249 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
33250echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
33251 { (exit 1); exit 1; }; }
33252 else
33253 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
33254echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
33255 wxUSE_ODBC=builtin
33256 fi
33257 else
33258 wxUSE_ODBC=sys
33259 fi
33260 fi
a848cd7e 33261
2da0c077
RD
33262 if test "$wxUSE_ODBC" = "builtin" ; then
33263 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
33264#define wxUSE_BUILTIN_IODBC 1
33265_ACEOF
33266
a848cd7e
SC
33267 fi
33268fi
33269
2da0c077
RD
33270if test "$wxUSE_ODBC" != "no" ; then
33271 cat >>confdefs.h <<\_ACEOF
33272#define wxUSE_ODBC 1
33273_ACEOF
33274
33275 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
33276
5ff751d6 33277 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_IODBC_"
2da0c077 33278fi
a848cd7e 33279
01cb68df 33280
a848cd7e 33281if test "$wxUSE_DISPLAY" = "yes"; then
2a5d7a98 33282 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
a848cd7e
SC
33283 echo "$as_me:$LINENO: checking for Xinerama" >&5
33284echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
33285
0ad5d837
VZ
33286 ac_find_libraries=
33287 for ac_dir in $SEARCH_LIB;
33288 do
33289 for ac_extension in a so sl dylib dll.a; do
33290 if test -f "$ac_dir/libXinerama.$ac_extension"; then
33291 ac_find_libraries=$ac_dir
33292 break 2
33293 fi
33294 done
33295 done
33296
a848cd7e
SC
33297 if test "$ac_find_libraries" != "" ; then
33298
0ad5d837 33299 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
33300 ac_path_to_link=""
33301 else
0ad5d837
VZ
33302 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
33303 result=$?
33304 if test $result = 0; then
33305 ac_path_to_link=""
33306 else
33307 ac_path_to_link=" -L$ac_find_libraries"
33308 fi
a848cd7e
SC
33309 fi
33310
33311 if test "$ac_path_to_link" != " -L/usr/lib" ; then
33312 LDFLAGS="$LDFLAGS $ac_path_to_link"
33313 fi
33314 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
33315 echo "$as_me:$LINENO: result: yes" >&5
33316echo "${ECHO_T}yes" >&6
33317
33318 echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
33319echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
33320
0ad5d837
VZ
33321 ac_find_libraries=
33322 for ac_dir in $SEARCH_LIB;
a848cd7e 33323 do
3eca31dc 33324 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
33325 if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
33326 ac_find_libraries=$ac_dir
33327 break 2
33328 fi
33329 done
33330 done
33331
33332 if test "$ac_find_libraries" != "" ; then
33333 echo "$as_me:$LINENO: result: yes" >&5
33334echo "${ECHO_T}yes" >&6
33335
33336for ac_header in X11/extensions/xf86vmode.h
33337do
33338as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33339echo "$as_me:$LINENO: checking for $ac_header" >&5
33340echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33341if eval "test \"\${$as_ac_Header+set}\" = set"; then
33342 echo $ECHO_N "(cached) $ECHO_C" >&6
33343else
33344 cat >conftest.$ac_ext <<_ACEOF
33345/* confdefs.h. */
33346_ACEOF
33347cat confdefs.h >>conftest.$ac_ext
33348cat >>conftest.$ac_ext <<_ACEOF
33349/* end confdefs.h. */
33350
33351 #if HAVE_X11_XLIB_H
33352 #include <X11/Xlib.h>
33353 #endif
33354
33355
33356#include <$ac_header>
33357_ACEOF
33358rm -f conftest.$ac_objext
33359if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33360 (eval $ac_compile) 2>conftest.er1
a848cd7e 33361 ac_status=$?
ac1cb8d3
VS
33362 grep -v '^ *+' conftest.er1 >conftest.err
33363 rm -f conftest.er1
33364 cat conftest.err >&5
a848cd7e
SC
33365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33366 (exit $ac_status); } &&
bb9e79c0 33367 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33369 (eval $ac_try) 2>&5
33370 ac_status=$?
33371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33372 (exit $ac_status); }; } &&
33373 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33375 (eval $ac_try) 2>&5
33376 ac_status=$?
33377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33378 (exit $ac_status); }; }; then
33379 eval "$as_ac_Header=yes"
33380else
33381 echo "$as_me: failed program was:" >&5
33382sed 's/^/| /' conftest.$ac_ext >&5
33383
33384eval "$as_ac_Header=no"
33385fi
ac1cb8d3 33386rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33387fi
33388echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33389echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33390if test `eval echo '${'$as_ac_Header'}'` = yes; then
33391 cat >>confdefs.h <<_ACEOF
33392#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33393_ACEOF
33394
33395 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
33396
33397fi
33398
33399done
33400
33401 else
33402 echo "$as_me:$LINENO: result: no" >&5
33403echo "${ECHO_T}no" >&6
33404 fi
33405
33406 else
33407 echo "$as_me:$LINENO: result: no" >&5
33408echo "${ECHO_T}no" >&6
dcc1b6ad
VS
33409 { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
33410echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
a848cd7e
SC
33411 wxUSE_DISPLAY="no"
33412 fi
01cb68df
RG
33413 elif test "$wxUSE_MSW" = 1; then
33414
e5efa97e 33415for ac_header in ddraw.h
01cb68df
RG
33416do
33417as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5294a27e 33418echo "$as_me:$LINENO: checking for $ac_header" >&5
01cb68df
RG
33419echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33420if eval "test \"\${$as_ac_Header+set}\" = set"; then
33421 echo $ECHO_N "(cached) $ECHO_C" >&6
01cb68df 33422else
5294a27e 33423 cat >conftest.$ac_ext <<_ACEOF
01cb68df
RG
33424/* confdefs.h. */
33425_ACEOF
33426cat confdefs.h >>conftest.$ac_ext
33427cat >>conftest.$ac_ext <<_ACEOF
33428/* end confdefs.h. */
5294a27e
VZ
33429#include <windows.h>
33430
01cb68df
RG
33431#include <$ac_header>
33432_ACEOF
33433rm -f conftest.$ac_objext
33434if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33435 (eval $ac_compile) 2>conftest.er1
01cb68df 33436 ac_status=$?
ac1cb8d3
VS
33437 grep -v '^ *+' conftest.er1 >conftest.err
33438 rm -f conftest.er1
33439 cat conftest.err >&5
01cb68df
RG
33440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33441 (exit $ac_status); } &&
bb9e79c0 33442 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33444 (eval $ac_try) 2>&5
33445 ac_status=$?
33446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33447 (exit $ac_status); }; } &&
33448 { ac_try='test -s conftest.$ac_objext'
01cb68df
RG
33449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33450 (eval $ac_try) 2>&5
33451 ac_status=$?
33452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33453 (exit $ac_status); }; }; then
5294a27e 33454 eval "$as_ac_Header=yes"
01cb68df
RG
33455else
33456 echo "$as_me: failed program was:" >&5
33457sed 's/^/| /' conftest.$ac_ext >&5
33458
5294a27e 33459eval "$as_ac_Header=no"
01cb68df 33460fi
ac1cb8d3 33461rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
01cb68df
RG
33462fi
33463echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33464echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
01cb68df
RG
33465if test `eval echo '${'$as_ac_Header'}'` = yes; then
33466 cat >>confdefs.h <<_ACEOF
33467#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33468_ACEOF
33469
01cb68df
RG
33470fi
33471
33472done
33473
a848cd7e
SC
33474 fi
33475fi
33476
88bbc332
RR
33477if test "$wxUSE_DETECT_SM" = "yes"; then
33478 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
33479 echo "$as_me:$LINENO: checking for -lSM - X11 session management" >&5
33480echo $ECHO_N "checking for -lSM - X11 session management... $ECHO_C" >&6
33481
33482 ac_find_libraries=
33483 for ac_dir in $SEARCH_LIB;
33484 do
33485 for ac_extension in a so sl dylib dll.a; do
33486 if test -f "$ac_dir/libSM.$ac_extension"; then
33487 ac_find_libraries=$ac_dir
33488 break 2
33489 fi
33490 done
33491 done
33492
33493 if test "$ac_find_libraries" != "" ; then
33494
33495 if test "$ac_find_libraries" = "default location"; then
33496 ac_path_to_link=""
33497 else
33498 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
33499 result=$?
33500 if test $result = 0; then
33501 ac_path_to_link=""
33502 else
33503 ac_path_to_link=" -L$ac_find_libraries"
33504 fi
33505 fi
33506
33507 if test "$ac_path_to_link" != " -L/usr/lib" ; then
33508 LDFLAGS="$LDFLAGS $ac_path_to_link"
33509 fi
33510 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lSM"
33511 echo "$as_me:$LINENO: result: yes" >&5
33512echo "${ECHO_T}yes" >&6
33513 else
33514 echo "$as_me:$LINENO: result: no" >&5
33515echo "${ECHO_T}no" >&6
33516 { echo "$as_me:$LINENO: WARNING: libSM not found; disabling session management detection" >&5
33517echo "$as_me: WARNING: libSM not found; disabling session management detection" >&2;}
33518 wxUSE_DETECT_SM="no"
33519 fi
33520 else
33521 wxUSE_DETECT_SM="no"
33522 fi
33523fi
33524
33525
a848cd7e
SC
33526
33527USE_OPENGL=0
33528if test "$wxUSE_OPENGL" = "yes"; then
33529 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
33530 OPENGL_LIBS="-framework OpenGL -framework AGL"
33531 elif test "$wxUSE_MSW" = 1; then
33532 OPENGL_LIBS="-lopengl32 -lglu32"
33533 else
e541dae0
VZ
33534 echo "$as_me:$LINENO: checking for OpenGL headers" >&5
33535echo $ECHO_N "checking for OpenGL headers... $ECHO_C" >&6
a848cd7e 33536
a848cd7e 33537ac_find_includes=
02b05020 33538for ac_dir in $SEARCH_INCLUDE /opt/graphics/OpenGL/include /usr/include;
a848cd7e
SC
33539 do
33540 if test -f "$ac_dir/GL/gl.h"; then
33541 ac_find_includes=$ac_dir
33542 break
33543 fi
33544 done
33545
33546 if test "$ac_find_includes" != "" ; then
33547 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
33548echo "${ECHO_T}found in $ac_find_includes" >&6
33549
33550 if test "x$ac_find_includes" = "x/usr/include"; then
33551 ac_path_to_include=""
33552 else
33553 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
33554 result=$?
33555 if test $result = 0; then
33556 ac_path_to_include=""
33557 else
33558 ac_path_to_include=" -I$ac_find_includes"
33559 fi
33560 fi
33561
c92ad099 33562 CPPFLAGS="$ac_path_to_include $CPPFLAGS"
e541dae0
VZ
33563 else
33564 echo "$as_me:$LINENO: result: not found" >&5
33565echo "${ECHO_T}not found" >&6
a848cd7e
SC
33566 fi
33567
33568 if test "${ac_cv_header_GL_gl_h+set}" = set; then
33569 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
33570echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
33571if test "${ac_cv_header_GL_gl_h+set}" = set; then
33572 echo $ECHO_N "(cached) $ECHO_C" >&6
33573fi
33574echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
33575echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
33576else
33577 # Is the header compilable?
33578echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
33579echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
33580cat >conftest.$ac_ext <<_ACEOF
33581/* confdefs.h. */
33582_ACEOF
33583cat confdefs.h >>conftest.$ac_ext
33584cat >>conftest.$ac_ext <<_ACEOF
33585/* end confdefs.h. */
33586$ac_includes_default
33587#include <GL/gl.h>
33588_ACEOF
33589rm -f conftest.$ac_objext
33590if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33591 (eval $ac_compile) 2>conftest.er1
a848cd7e 33592 ac_status=$?
ac1cb8d3
VS
33593 grep -v '^ *+' conftest.er1 >conftest.err
33594 rm -f conftest.er1
33595 cat conftest.err >&5
a848cd7e
SC
33596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33597 (exit $ac_status); } &&
bb9e79c0 33598 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33600 (eval $ac_try) 2>&5
33601 ac_status=$?
33602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33603 (exit $ac_status); }; } &&
33604 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33606 (eval $ac_try) 2>&5
33607 ac_status=$?
33608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33609 (exit $ac_status); }; }; then
33610 ac_header_compiler=yes
33611else
33612 echo "$as_me: failed program was:" >&5
33613sed 's/^/| /' conftest.$ac_ext >&5
33614
33615ac_header_compiler=no
33616fi
ac1cb8d3 33617rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33618echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33619echo "${ECHO_T}$ac_header_compiler" >&6
33620
33621# Is the header present?
33622echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
33623echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
33624cat >conftest.$ac_ext <<_ACEOF
33625/* confdefs.h. */
33626_ACEOF
33627cat confdefs.h >>conftest.$ac_ext
33628cat >>conftest.$ac_ext <<_ACEOF
33629/* end confdefs.h. */
33630#include <GL/gl.h>
33631_ACEOF
33632if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33633 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33634 ac_status=$?
33635 grep -v '^ *+' conftest.er1 >conftest.err
33636 rm -f conftest.er1
33637 cat conftest.err >&5
33638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33639 (exit $ac_status); } >/dev/null; then
33640 if test -s conftest.err; then
5d7b7554
VZ
33641 ac_cpp_err=$ac_cxx_preproc_warn_flag
33642 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
33643 else
33644 ac_cpp_err=
33645 fi
33646else
33647 ac_cpp_err=yes
33648fi
33649if test -z "$ac_cpp_err"; then
33650 ac_header_preproc=yes
33651else
33652 echo "$as_me: failed program was:" >&5
33653sed 's/^/| /' conftest.$ac_ext >&5
33654
33655 ac_header_preproc=no
33656fi
33657rm -f conftest.err conftest.$ac_ext
33658echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33659echo "${ECHO_T}$ac_header_preproc" >&6
33660
33661# So? What about this header?
5d7b7554 33662case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 33663 yes:no: )
a848cd7e
SC
33664 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
33665echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
33666 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
33667echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
33668 ac_header_preproc=yes
a848cd7e 33669 ;;
ac1cb8d3 33670 no:yes:* )
a848cd7e
SC
33671 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
33672echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
33673 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
33674echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
33675 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
33676echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
33677 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
33678echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
33679 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
33680echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
33681 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
33682echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
33683 (
33684 cat <<\_ASBOX
ac1cb8d3
VS
33685## ----------------------------------------- ##
33686## Report this to wx-dev@lists.wxwidgets.org ##
33687## ----------------------------------------- ##
a848cd7e
SC
33688_ASBOX
33689 ) |
33690 sed "s/^/$as_me: WARNING: /" >&2
33691 ;;
33692esac
33693echo "$as_me:$LINENO: checking for GL/gl.h" >&5
33694echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
33695if test "${ac_cv_header_GL_gl_h+set}" = set; then
33696 echo $ECHO_N "(cached) $ECHO_C" >&6
33697else
33698 ac_cv_header_GL_gl_h=$ac_header_preproc
33699fi
33700echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
33701echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
33702
33703fi
33704if test $ac_cv_header_GL_gl_h = yes; then
33705
5dfc7e56
VZ
33706 if test "${ac_cv_header_GL_glu_h+set}" = set; then
33707 echo "$as_me:$LINENO: checking for GL/glu.h" >&5
33708echo $ECHO_N "checking for GL/glu.h... $ECHO_C" >&6
33709if test "${ac_cv_header_GL_glu_h+set}" = set; then
33710 echo $ECHO_N "(cached) $ECHO_C" >&6
33711fi
33712echo "$as_me:$LINENO: result: $ac_cv_header_GL_glu_h" >&5
33713echo "${ECHO_T}$ac_cv_header_GL_glu_h" >&6
33714else
33715 # Is the header compilable?
33716echo "$as_me:$LINENO: checking GL/glu.h usability" >&5
33717echo $ECHO_N "checking GL/glu.h usability... $ECHO_C" >&6
33718cat >conftest.$ac_ext <<_ACEOF
33719/* confdefs.h. */
33720_ACEOF
33721cat confdefs.h >>conftest.$ac_ext
33722cat >>conftest.$ac_ext <<_ACEOF
33723/* end confdefs.h. */
33724$ac_includes_default
33725#include <GL/glu.h>
33726_ACEOF
33727rm -f conftest.$ac_objext
33728if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33729 (eval $ac_compile) 2>conftest.er1
33730 ac_status=$?
33731 grep -v '^ *+' conftest.er1 >conftest.err
33732 rm -f conftest.er1
33733 cat conftest.err >&5
33734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33735 (exit $ac_status); } &&
33736 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33738 (eval $ac_try) 2>&5
33739 ac_status=$?
33740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33741 (exit $ac_status); }; } &&
33742 { ac_try='test -s conftest.$ac_objext'
33743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33744 (eval $ac_try) 2>&5
33745 ac_status=$?
33746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33747 (exit $ac_status); }; }; then
33748 ac_header_compiler=yes
33749else
33750 echo "$as_me: failed program was:" >&5
33751sed 's/^/| /' conftest.$ac_ext >&5
33752
33753ac_header_compiler=no
33754fi
33755rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33756echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33757echo "${ECHO_T}$ac_header_compiler" >&6
33758
33759# Is the header present?
33760echo "$as_me:$LINENO: checking GL/glu.h presence" >&5
33761echo $ECHO_N "checking GL/glu.h presence... $ECHO_C" >&6
33762cat >conftest.$ac_ext <<_ACEOF
33763/* confdefs.h. */
33764_ACEOF
33765cat confdefs.h >>conftest.$ac_ext
33766cat >>conftest.$ac_ext <<_ACEOF
33767/* end confdefs.h. */
33768#include <GL/glu.h>
33769_ACEOF
33770if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33771 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33772 ac_status=$?
33773 grep -v '^ *+' conftest.er1 >conftest.err
33774 rm -f conftest.er1
33775 cat conftest.err >&5
33776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33777 (exit $ac_status); } >/dev/null; then
33778 if test -s conftest.err; then
33779 ac_cpp_err=$ac_cxx_preproc_warn_flag
33780 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
33781 else
33782 ac_cpp_err=
33783 fi
33784else
33785 ac_cpp_err=yes
33786fi
33787if test -z "$ac_cpp_err"; then
33788 ac_header_preproc=yes
33789else
33790 echo "$as_me: failed program was:" >&5
33791sed 's/^/| /' conftest.$ac_ext >&5
33792
33793 ac_header_preproc=no
33794fi
33795rm -f conftest.err conftest.$ac_ext
33796echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33797echo "${ECHO_T}$ac_header_preproc" >&6
33798
33799# So? What about this header?
33800case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
33801 yes:no: )
33802 { echo "$as_me:$LINENO: WARNING: GL/glu.h: accepted by the compiler, rejected by the preprocessor!" >&5
33803echo "$as_me: WARNING: GL/glu.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33804 { echo "$as_me:$LINENO: WARNING: GL/glu.h: proceeding with the compiler's result" >&5
33805echo "$as_me: WARNING: GL/glu.h: proceeding with the compiler's result" >&2;}
33806 ac_header_preproc=yes
33807 ;;
33808 no:yes:* )
33809 { echo "$as_me:$LINENO: WARNING: GL/glu.h: present but cannot be compiled" >&5
33810echo "$as_me: WARNING: GL/glu.h: present but cannot be compiled" >&2;}
33811 { echo "$as_me:$LINENO: WARNING: GL/glu.h: check for missing prerequisite headers?" >&5
33812echo "$as_me: WARNING: GL/glu.h: check for missing prerequisite headers?" >&2;}
33813 { echo "$as_me:$LINENO: WARNING: GL/glu.h: see the Autoconf documentation" >&5
33814echo "$as_me: WARNING: GL/glu.h: see the Autoconf documentation" >&2;}
33815 { echo "$as_me:$LINENO: WARNING: GL/glu.h: section \"Present But Cannot Be Compiled\"" >&5
33816echo "$as_me: WARNING: GL/glu.h: section \"Present But Cannot Be Compiled\"" >&2;}
33817 { echo "$as_me:$LINENO: WARNING: GL/glu.h: proceeding with the preprocessor's result" >&5
33818echo "$as_me: WARNING: GL/glu.h: proceeding with the preprocessor's result" >&2;}
33819 { echo "$as_me:$LINENO: WARNING: GL/glu.h: in the future, the compiler will take precedence" >&5
33820echo "$as_me: WARNING: GL/glu.h: in the future, the compiler will take precedence" >&2;}
33821 (
33822 cat <<\_ASBOX
33823## ----------------------------------------- ##
33824## Report this to wx-dev@lists.wxwidgets.org ##
33825## ----------------------------------------- ##
33826_ASBOX
33827 ) |
33828 sed "s/^/$as_me: WARNING: /" >&2
33829 ;;
33830esac
33831echo "$as_me:$LINENO: checking for GL/glu.h" >&5
33832echo $ECHO_N "checking for GL/glu.h... $ECHO_C" >&6
33833if test "${ac_cv_header_GL_glu_h+set}" = set; then
33834 echo $ECHO_N "(cached) $ECHO_C" >&6
33835else
33836 ac_cv_header_GL_glu_h=$ac_header_preproc
33837fi
33838echo "$as_me:$LINENO: result: $ac_cv_header_GL_glu_h" >&5
33839echo "${ECHO_T}$ac_cv_header_GL_glu_h" >&6
33840
33841fi
33842if test $ac_cv_header_GL_glu_h = yes; then
33843
a848cd7e
SC
33844 found_gl=0
33845
33846 echo "$as_me:$LINENO: checking for -lGL" >&5
33847echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
33848
0ad5d837 33849 ac_find_libraries=
02b05020 33850 for ac_dir in $SEARCH_LIB /opt/graphics/OpenGL/lib;
a848cd7e 33851 do
3eca31dc 33852 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
33853 if test -f "$ac_dir/libGL.$ac_extension"; then
33854 ac_find_libraries=$ac_dir
33855 break 2
33856 fi
33857 done
33858 done
33859
33860 if test "$ac_find_libraries" != "" ; then
02b05020
VZ
33861 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
33862echo "${ECHO_T}found in $ac_find_libraries" >&6
69120ee4 33863
a848cd7e 33864
0ad5d837 33865 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
33866 ac_path_to_link=""
33867 else
0ad5d837
VZ
33868 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
33869 result=$?
33870 if test $result = 0; then
33871 ac_path_to_link=""
33872 else
33873 ac_path_to_link=" -L$ac_find_libraries"
33874 fi
a848cd7e
SC
33875 fi
33876
33877 if test "$ac_path_to_link" != " -L/usr/lib" ; then
33878 LDFLAGS_GL="$ac_path_to_link"
33879 fi
33880
69120ee4
VZ
33881 echo "$as_me:$LINENO: checking for -lGLU" >&5
33882echo $ECHO_N "checking for -lGLU... $ECHO_C" >&6
a848cd7e 33883
0ad5d837
VZ
33884 ac_find_libraries=
33885 for ac_dir in $SEARCH_LIB;
33886 do
33887 for ac_extension in a so sl dylib dll.a; do
33888 if test -f "$ac_dir/libGLU.$ac_extension"; then
33889 ac_find_libraries=$ac_dir
33890 break 2
33891 fi
33892 done
33893 done
33894
a848cd7e
SC
33895 if test "$ac_find_libraries" != "" ; then
33896
0ad5d837 33897 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
33898 ac_path_to_link=""
33899 else
0ad5d837
VZ
33900 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
33901 result=$?
33902 if test $result = 0; then
33903 ac_path_to_link=""
33904 else
33905 ac_path_to_link=" -L$ac_find_libraries"
33906 fi
a848cd7e
SC
33907 fi
33908
33909 if test "$ac_path_to_link" != " -L/usr/lib" -a \
33910 "$ac_path_to_link" != "$LDFLAGS_GL"; then
33911 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
33912 fi
33913
33914 found_gl=1
33915 OPENGL_LIBS="-lGL -lGLU"
33916 echo "$as_me:$LINENO: result: yes" >&5
33917echo "${ECHO_T}yes" >&6
69120ee4
VZ
33918 else
33919 echo "$as_me:$LINENO: result: no" >&5
33920echo "${ECHO_T}no" >&6
a848cd7e 33921 fi
69120ee4
VZ
33922 else
33923 echo "$as_me:$LINENO: result: no" >&5
33924echo "${ECHO_T}no" >&6
a848cd7e
SC
33925 fi
33926
33927 if test "$found_gl" != 1; then
a848cd7e
SC
33928 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
33929echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
33930
0ad5d837
VZ
33931 ac_find_libraries=
33932 for ac_dir in $SEARCH_LIB;
a848cd7e 33933 do
3eca31dc 33934 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
33935 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
33936 ac_find_libraries=$ac_dir
33937 break 2
33938 fi
33939 done
33940 done
33941
33942 if test "$ac_find_libraries" != "" ; then
33943
0ad5d837 33944 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
33945 ac_path_to_link=""
33946 else
0ad5d837
VZ
33947 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
33948 result=$?
33949 if test $result = 0; then
33950 ac_path_to_link=""
33951 else
33952 ac_path_to_link=" -L$ac_find_libraries"
33953 fi
a848cd7e
SC
33954 fi
33955
33956 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
33957 OPENGL_LIBS="-lMesaGL -lMesaGLU"
33958 echo "$as_me:$LINENO: result: yes" >&5
33959echo "${ECHO_T}yes" >&6
33960 else
33961 echo "$as_me:$LINENO: result: no" >&5
33962echo "${ECHO_T}no" >&6
33963 fi
33964 fi
33965
33966fi
33967
33968
33969
5dfc7e56
VZ
33970fi
33971
33972
33973
a848cd7e
SC
33974 if test "x$OPENGL_LIBS" = "x"; then
33975 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
33976echo "$as_me: error: OpenGL libraries not available" >&2;}
33977 { (exit 1); exit 1; }; }
33978 fi
33979 fi
33980
33981 if test "$wxUSE_OPENGL" = "yes"; then
33982 USE_OPENGL=1
33983 cat >>confdefs.h <<\_ACEOF
33984#define wxUSE_OPENGL 1
33985_ACEOF
33986
33987 cat >>confdefs.h <<\_ACEOF
33988#define wxUSE_GLCANVAS 1
33989_ACEOF
33990
33991 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
33992 fi
33993fi
33994
a848cd7e
SC
33995
33996if test -n "$TOOLKIT" ; then
33997 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
33998fi
33999
a848cd7e
SC
34000
34001
34002if test "$wxUSE_SHARED" = "yes"; then
34003 case "${host}" in
34004 *-pc-msdosdjgpp )
34005 wxUSE_SHARED=no
34006 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
34007echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
34008 ;;
34009 esac
34010fi
34011
a848cd7e 34012if test "$wxUSE_SHARED" = "yes"; then
a848cd7e
SC
34013
34014
34015 found_versioning=no
34016
34017
34018 if test $found_versioning = no ; then
34019 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
34020echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
34021if test "${wx_cv_version_script+set}" = set; then
34022 echo $ECHO_N "(cached) $ECHO_C" >&6
34023else
34024
34025 echo "VER_1 { *; };" >conftest.sym
34026 echo "int main() { return 0; }" >conftest.cpp
34027
34028 if { ac_try='
34029 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
34030 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
34031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34032 (eval $ac_try) 2>&5
34033 ac_status=$?
34034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34035 (exit $ac_status); }; } ; then
34036 if test -s conftest.stderr ; then
34037 wx_cv_version_script=no
34038 else
34039 wx_cv_version_script=yes
34040 fi
34041 else
34042 wx_cv_version_script=no
34043 fi
e5d4b470
MW
34044
34045 if test $wx_cv_version_script = yes
34046 then
34047 echo "struct B { virtual ~B() { } }; \
34048 struct D : public B { }; \
34049 void F() { D d; }" > conftest.cpp
34050
34051 if { ac_try='
34052 $CXX -shared -fPIC -o conftest1.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
34053 -Wl,--version-script,conftest.sym >/dev/null 2>/dev/null'
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='
34060 $CXX -shared -fPIC -o conftest2.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
34061 -Wl,--version-script,conftest.sym conftest1.output >/dev/null 2>/dev/null'
34062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34063 (eval $ac_try) 2>&5
34064 ac_status=$?
34065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34066 (exit $ac_status); }; }
34067 then
34068 if { ac_try='
34069 $CXX -shared -fPIC -o conftest3.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
34070 -Wl,--version-script,conftest.sym conftest2.output conftest1.output >/dev/null 2>/dev/null'
34071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34072 (eval $ac_try) 2>&5
34073 ac_status=$?
34074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34075 (exit $ac_status); }; }
34076 then
34077 wx_cv_version_script=yes
34078 else
34079 wx_cv_version_script=no
34080 fi
34081 fi
34082 fi
34083
a848cd7e 34084 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
e5d4b470 34085 rm -f conftest1.output conftest2.output conftest3.output
a848cd7e
SC
34086
34087fi
34088echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
34089echo "${ECHO_T}$wx_cv_version_script" >&6
34090 if test $wx_cv_version_script = yes ; then
02b05020 34091 LDFLAGS_VERSIONING="-Wl,--version-script,\$(wx_top_builddir)/version-script"
a848cd7e
SC
34092 fi
34093 fi
34094
34095
34096 case "${host}" in
34097 *-*-linux* | *-*-gnu* )
02b05020 34098 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(wx_top_builddir)/lib"
ffa0583f 34099 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
6ebeb4c7 34100 ;;
a848cd7e
SC
34101
34102 *-*-solaris2* )
34103 if test "$GCC" = yes ; then
c92ad099 34104 CPPFLAGS="-isystem /usr/openwin/include $CPPFLAGS"
a848cd7e
SC
34105
34106 saveLdflags="$LDFLAGS"
34107 LDFLAGS="$saveLdflags -Wl,-rpath,/"
34108 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
34109echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
34110 cat >conftest.$ac_ext <<_ACEOF
34111/* confdefs.h. */
34112_ACEOF
34113cat confdefs.h >>conftest.$ac_ext
34114cat >>conftest.$ac_ext <<_ACEOF
34115/* end confdefs.h. */
34116
34117int
34118main ()
34119{
34120
34121 ;
34122 return 0;
34123}
34124_ACEOF
34125rm -f conftest.$ac_objext conftest$ac_exeext
34126if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34127 (eval $ac_link) 2>conftest.er1
a848cd7e 34128 ac_status=$?
ac1cb8d3
VS
34129 grep -v '^ *+' conftest.er1 >conftest.err
34130 rm -f conftest.er1
34131 cat conftest.err >&5
a848cd7e
SC
34132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34133 (exit $ac_status); } &&
bb9e79c0 34134 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34136 (eval $ac_try) 2>&5
34137 ac_status=$?
34138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34139 (exit $ac_status); }; } &&
34140 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34142 (eval $ac_try) 2>&5
34143 ac_status=$?
34144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34145 (exit $ac_status); }; }; then
34146
34147 echo "$as_me:$LINENO: result: yes" >&5
34148echo "${ECHO_T}yes" >&6
02b05020 34149 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(wx_top_builddir)/lib"
ffa0583f 34150 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
a848cd7e
SC
34151
34152else
34153 echo "$as_me: failed program was:" >&5
34154sed 's/^/| /' conftest.$ac_ext >&5
34155
34156
34157 echo "$as_me:$LINENO: result: no" >&5
34158echo "${ECHO_T}no" >&6
34159 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
34160echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
34161 LDFLAGS="$saveLdflags -Wl,-R,/"
34162 cat >conftest.$ac_ext <<_ACEOF
34163/* confdefs.h. */
34164_ACEOF
34165cat confdefs.h >>conftest.$ac_ext
34166cat >>conftest.$ac_ext <<_ACEOF
34167/* end confdefs.h. */
34168
34169int
34170main ()
34171{
34172
34173 ;
34174 return 0;
34175}
34176_ACEOF
34177rm -f conftest.$ac_objext conftest$ac_exeext
34178if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34179 (eval $ac_link) 2>conftest.er1
a848cd7e 34180 ac_status=$?
ac1cb8d3
VS
34181 grep -v '^ *+' conftest.er1 >conftest.err
34182 rm -f conftest.er1
34183 cat conftest.err >&5
a848cd7e
SC
34184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34185 (exit $ac_status); } &&
bb9e79c0 34186 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34188 (eval $ac_try) 2>&5
34189 ac_status=$?
34190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34191 (exit $ac_status); }; } &&
34192 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34194 (eval $ac_try) 2>&5
34195 ac_status=$?
34196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34197 (exit $ac_status); }; }; then
34198
ffa0583f 34199 echo "$as_me:$LINENO: result: yes" >&5
a848cd7e 34200echo "${ECHO_T}yes" >&6
02b05020 34201 SAMPLES_RPATH_FLAG="-Wl,-R,\$(wx_top_builddir)/lib"
ffa0583f
RL
34202 WXCONFIG_RPATH="-Wl,-R,\$libdir"
34203
a848cd7e
SC
34204else
34205 echo "$as_me: failed program was:" >&5
34206sed 's/^/| /' conftest.$ac_ext >&5
34207
34208
34209 echo "$as_me:$LINENO: result: no" >&5
34210echo "${ECHO_T}no" >&6
34211
34212fi
ac1cb8d3
VS
34213rm -f conftest.err conftest.$ac_objext \
34214 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34215
34216fi
ac1cb8d3
VS
34217rm -f conftest.err conftest.$ac_objext \
34218 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34219 LDFLAGS="$saveLdflags"
34220 else
02b05020 34221 SAMPLES_RPATH_FLAG="-R\$(wx_top_builddir)/lib"
ffa0583f 34222 WXCONFIG_RPATH="-R\$libdir"
a848cd7e
SC
34223 fi
34224 ;;
34225
cfda0ea8 34226 *-*-darwin* )
0caebc27
MW
34227 install_name_tool=`which install_name_tool`
34228 if test "$install_name_tool" -a -x "$install_name_tool"; then
02b05020 34229 SAMPLES_RPATH_POSTLINK="\$(wx_top_builddir)/change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
0caebc27 34230 cat <<EOF >change-install-names
a848cd7e
SC
34231#!/bin/sh
34232libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
34233inst_cmd="install_name_tool "
34234for i in \${libnames} ; do
34235 inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
34236done
34237\${inst_cmd} \${3}
34238EOF
0caebc27
MW
34239 chmod +x change-install-names
34240 fi
a848cd7e
SC
34241 ;;
34242
34243 *-*-cygwin* | *-*-mingw32* )
5ff751d6
VZ
34244 WXCONFIG_ONLY_CPPFLAGS="$WXCONFIG_ONLY_CPPFLAGS -DWXUSINGDLL"
34245 ;;
a848cd7e 34246
81f90336 34247 *-*-hpux* )
02b05020 34248 SAMPLES_RPATH_FLAG="-Wl,+b,\$(wx_top_builddir)/lib"
81f90336 34249 WXCONFIG_RPATH="-Wl,+b,\$libdir"
5ff751d6 34250 ;;
81f90336 34251
a848cd7e 34252 esac
ceec2216 34253
ffa0583f
RL
34254 if test $wxUSE_RPATH = "no"; then
34255 SAMPLES_RPATH_FLAG=''
34256 SAMPLES_RPATH_POSTLINK=''
34257 WXCONFIG_RPATH=''
34258 fi
34259
34260 SHARED=1
34261
34262else
34263
ceec2216
RL
34264 config_linkage_component="-static"
34265 SHARED=0
ffa0583f 34266
ceec2216 34267fi
a848cd7e 34268
a848cd7e 34269
ceec2216
RL
34270UNICODE=0
34271lib_unicode_suffix=
34272WX_CHARTYPE="ansi"
34273if test "$wxUSE_UNICODE" = "yes"; then
34274 lib_unicode_suffix=u
34275 WX_CHARTYPE="unicode"
34276 UNICODE=1
a848cd7e
SC
34277fi
34278
ceec2216
RL
34279lib_debug_suffix=
34280WX_DEBUGTYPE="release"
34281DEBUG_FLAG=0
34282if test "$wxUSE_DEBUG_FLAG" = "yes"; then
34283 lib_debug_suffix=d
34284 WX_DEBUGTYPE="debug"
34285 DEBUG_FLAG=1
34286fi
a848cd7e 34287
ceec2216
RL
34288WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
34289WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
a848cd7e 34290
ceec2216
RL
34291DEBUG_INFO=0
34292if test "$wxUSE_DEBUG_INFO" = "yes"; then
34293 DEBUG_INFO=1
34294fi
a848cd7e 34295
ceec2216 34296WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
a848cd7e 34297
ceec2216 34298TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}"
a848cd7e 34299
ceec2216 34300TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
a848cd7e 34301
ceec2216
RL
34302if test "$cross_compiling" = "yes"; then
34303 HOST_SUFFIX="-$host_alias"
34304 TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX"
34305 TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME"
a848cd7e
SC
34306fi
34307
dd21ced8 34308WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
abc736fd
MW
34309if test "${TOOLKIT_DIR}" = "os2"; then
34310 WX_LIBRARY_BASENAME_GUI="wx_pm${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
34311else
34312 WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
34313fi
ceec2216
RL
34314
34315
34316
1d1af5ea
DE
34317if test "$wxUSE_COCOA" = 1; then
34318
34319
34320 ac_ext=c
34321ac_cpp='$CPP $CPPFLAGS'
34322ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34323ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34324ac_compiler_gnu=$ac_cv_c_compiler_gnu
34325
34326ac_ext=m
34327
34328 echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5
34329echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6
34330 cat >conftest.$ac_ext <<_ACEOF
34331/* confdefs.h. */
34332_ACEOF
34333cat confdefs.h >>conftest.$ac_ext
34334cat >>conftest.$ac_ext <<_ACEOF
34335/* end confdefs.h. */
34336#include <AppKit/NSEvent.h>
34337#include <CoreFoundation/CoreFoundation.h>
34338
34339int
34340main ()
34341{
34342
34343 ;
34344 return 0;
34345}
34346_ACEOF
34347rm -f conftest.$ac_objext
34348if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34349 (eval $ac_compile) 2>conftest.er1
34350 ac_status=$?
34351 grep -v '^ *+' conftest.er1 >conftest.err
34352 rm -f conftest.er1
34353 cat conftest.err >&5
34354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34355 (exit $ac_status); } &&
bb9e79c0 34356 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1d1af5ea
DE
34357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34358 (eval $ac_try) 2>&5
34359 ac_status=$?
34360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34361 (exit $ac_status); }; } &&
34362 { ac_try='test -s conftest.$ac_objext'
34363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34364 (eval $ac_try) 2>&5
34365 ac_status=$?
34366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34367 (exit $ac_status); }; }; then
34368 echo "$as_me:$LINENO: result: no" >&5
34369echo "${ECHO_T}no" >&6
34370else
34371 echo "$as_me: failed program was:" >&5
34372sed 's/^/| /' conftest.$ac_ext >&5
34373
34374echo "$as_me:$LINENO: result: yes" >&5
34375echo "${ECHO_T}yes" >&6
34376 echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5
34377echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6
34378 cat >conftest.$ac_ext <<_ACEOF
34379/* confdefs.h. */
34380_ACEOF
34381cat confdefs.h >>conftest.$ac_ext
34382cat >>conftest.$ac_ext <<_ACEOF
34383/* end confdefs.h. */
34384#define __Point__ 1
34385#include <AppKit/NSEvent.h>
34386#include <CoreFoundation/CoreFoundation.h>
34387
34388int
34389main ()
34390{
34391
34392 ;
34393 return 0;
34394}
34395_ACEOF
34396rm -f conftest.$ac_objext
34397if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34398 (eval $ac_compile) 2>conftest.er1
34399 ac_status=$?
34400 grep -v '^ *+' conftest.er1 >conftest.err
34401 rm -f conftest.er1
34402 cat conftest.err >&5
34403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34404 (exit $ac_status); } &&
bb9e79c0 34405 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1d1af5ea
DE
34406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34407 (eval $ac_try) 2>&5
34408 ac_status=$?
34409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34410 (exit $ac_status); }; } &&
34411 { ac_try='test -s conftest.$ac_objext'
34412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34413 (eval $ac_try) 2>&5
34414 ac_status=$?
34415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34416 (exit $ac_status); }; }; then
34417 echo "$as_me:$LINENO: result: yes" >&5
34418echo "${ECHO_T}yes" >&6
34419 cat >>confdefs.h <<\_ACEOF
34420#define __Point__ 1
34421_ACEOF
34422
34423
34424else
34425 echo "$as_me: failed program was:" >&5
34426sed 's/^/| /' conftest.$ac_ext >&5
34427
34428{ { echo "$as_me:$LINENO: error: no
34429See \`config.log' for more details." >&5
34430echo "$as_me: error: no
34431See \`config.log' for more details." >&2;}
34432 { (exit 1); exit 1; }; }
34433
34434fi
34435rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34436
34437fi
34438rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5d7b7554
VZ
34439 ac_ext=cc
34440ac_cpp='$CXXCPP $CPPFLAGS'
34441ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34442ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34443ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1d1af5ea
DE
34444
34445fi
34446
a848cd7e 34447if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
abb9aae7
VZ
34448 WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
34449 WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
ceec2216 34450
02b05020 34451 LIBWXMACRES="\$(wx_top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}"
a848cd7e
SC
34452
34453 # Extract the first word of "Rez", so it can be a program name with args.
34454set dummy Rez; ac_word=$2
34455echo "$as_me:$LINENO: checking for $ac_word" >&5
34456echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 34457if test "${ac_cv_prog_REZ+set}" = set; then
a848cd7e
SC
34458 echo $ECHO_N "(cached) $ECHO_C" >&6
34459else
8ced02f6
DE
34460 if test -n "$REZ"; then
34461 ac_cv_prog_REZ="$REZ" # Let the user override the test.
a848cd7e
SC
34462else
34463as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34464for as_dir in $PATH
34465do
34466 IFS=$as_save_IFS
34467 test -z "$as_dir" && as_dir=.
34468 for ac_exec_ext in '' $ac_executable_extensions; do
34469 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 34470 ac_cv_prog_REZ="Rez"
a848cd7e
SC
34471 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34472 break 2
34473 fi
34474done
34475done
34476
8ced02f6 34477 test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
a848cd7e
SC
34478fi
34479fi
8ced02f6
DE
34480REZ=$ac_cv_prog_REZ
34481if test -n "$REZ"; then
34482 echo "$as_me:$LINENO: result: $REZ" >&5
34483echo "${ECHO_T}$REZ" >&6
a848cd7e
SC
34484else
34485 echo "$as_me:$LINENO: result: no" >&5
34486echo "${ECHO_T}no" >&6
34487fi
34488
34489 # Extract the first word of "DeRez", so it can be a program name with args.
34490set dummy DeRez; ac_word=$2
34491echo "$as_me:$LINENO: checking for $ac_word" >&5
34492echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34493if test "${ac_cv_prog_DEREZ+set}" = set; then
34494 echo $ECHO_N "(cached) $ECHO_C" >&6
34495else
34496 if test -n "$DEREZ"; then
34497 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
34498else
34499as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34500for as_dir in $PATH
34501do
34502 IFS=$as_save_IFS
34503 test -z "$as_dir" && as_dir=.
34504 for ac_exec_ext in '' $ac_executable_extensions; do
34505 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34506 ac_cv_prog_DEREZ="DeRez"
34507 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34508 break 2
34509 fi
34510done
34511done
34512
34513 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
34514fi
34515fi
34516DEREZ=$ac_cv_prog_DEREZ
34517if test -n "$DEREZ"; then
34518 echo "$as_me:$LINENO: result: $DEREZ" >&5
34519echo "${ECHO_T}$DEREZ" >&6
34520else
34521 echo "$as_me:$LINENO: result: no" >&5
34522echo "${ECHO_T}no" >&6
34523fi
34524
34525 # Extract the first word of "SetFile", so it can be a program name with args.
34526set dummy SetFile; ac_word=$2
34527echo "$as_me:$LINENO: checking for $ac_word" >&5
34528echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34529if test "${ac_cv_prog_SETFILE+set}" = set; then
34530 echo $ECHO_N "(cached) $ECHO_C" >&6
34531else
34532 if test -n "$SETFILE"; then
34533 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
34534else
34535as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34536for as_dir in $PATH
34537do
34538 IFS=$as_save_IFS
34539 test -z "$as_dir" && as_dir=.
34540 for ac_exec_ext in '' $ac_executable_extensions; do
34541 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34542 ac_cv_prog_SETFILE="SetFile"
34543 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34544 break 2
34545 fi
34546done
34547done
34548
34549 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
34550fi
34551fi
34552SETFILE=$ac_cv_prog_SETFILE
34553if test -n "$SETFILE"; then
34554 echo "$as_me:$LINENO: result: $SETFILE" >&5
34555echo "${ECHO_T}$SETFILE" >&6
34556else
34557 echo "$as_me:$LINENO: result: no" >&5
34558echo "${ECHO_T}no" >&6
34559fi
34560
34561
34562 MACSETFILE="\$(SETFILE)"
34563
34564 if test "$wxUSE_MAC" = 1; then
8ced02f6 34565 POSTLINK_COMMAND="\$(REZ) -d __DARWIN__ -t APPL Carbon.r -o"
004ee6da
RL
34566 RESCOMP="$REZ"
34567 WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL Carbon.r -o"
a848cd7e 34568 else
004ee6da
RL
34569 POSTLINK_COMMAND="echo -n | \$(REZ) -d __DARWIN__ -t APPL ${LIBWXMACRES}"
34570 RESCOMP="echo -n \| $REZ"
34571 WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL \$libdir/$WX_RESOURCES_MACOSX_ASCII"
a848cd7e 34572 fi
004ee6da 34573
a848cd7e 34574else
ffa0583f 34575 MACSETFILE="@true"
a848cd7e 34576
8ced02f6 34577 if test "$wxUSE_PM" = 1; then
004ee6da
RL
34578 RESCOMP="emxbind"
34579 WXCONFIG_RESFLAGS="-ep"
34580
34581 POSTLINK_COMMAND="$RESCOMP $WXCONFIG_RESFLAGS"
a848cd7e 34582 else
8ced02f6 34583 POSTLINK_COMMAND="@true"
a848cd7e 34584 fi
004ee6da 34585
a848cd7e
SC
34586fi
34587
34588
34589
34590echo "$as_me:$LINENO: checking for mode_t" >&5
34591echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
34592if test "${ac_cv_type_mode_t+set}" = set; then
34593 echo $ECHO_N "(cached) $ECHO_C" >&6
34594else
34595 cat >conftest.$ac_ext <<_ACEOF
34596/* confdefs.h. */
34597_ACEOF
34598cat confdefs.h >>conftest.$ac_ext
34599cat >>conftest.$ac_ext <<_ACEOF
34600/* end confdefs.h. */
34601$ac_includes_default
34602int
34603main ()
34604{
34605if ((mode_t *) 0)
34606 return 0;
34607if (sizeof (mode_t))
34608 return 0;
34609 ;
34610 return 0;
34611}
34612_ACEOF
34613rm -f conftest.$ac_objext
34614if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34615 (eval $ac_compile) 2>conftest.er1
a848cd7e 34616 ac_status=$?
ac1cb8d3
VS
34617 grep -v '^ *+' conftest.er1 >conftest.err
34618 rm -f conftest.er1
34619 cat conftest.err >&5
a848cd7e
SC
34620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34621 (exit $ac_status); } &&
bb9e79c0 34622 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34624 (eval $ac_try) 2>&5
34625 ac_status=$?
34626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34627 (exit $ac_status); }; } &&
34628 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34630 (eval $ac_try) 2>&5
34631 ac_status=$?
34632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34633 (exit $ac_status); }; }; then
34634 ac_cv_type_mode_t=yes
34635else
34636 echo "$as_me: failed program was:" >&5
34637sed 's/^/| /' conftest.$ac_ext >&5
34638
34639ac_cv_type_mode_t=no
34640fi
ac1cb8d3 34641rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34642fi
34643echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
34644echo "${ECHO_T}$ac_cv_type_mode_t" >&6
34645if test $ac_cv_type_mode_t = yes; then
34646 :
34647else
34648
34649cat >>confdefs.h <<_ACEOF
34650#define mode_t int
34651_ACEOF
34652
34653fi
34654
34655echo "$as_me:$LINENO: checking for off_t" >&5
34656echo $ECHO_N "checking for off_t... $ECHO_C" >&6
34657if test "${ac_cv_type_off_t+set}" = set; then
34658 echo $ECHO_N "(cached) $ECHO_C" >&6
34659else
34660 cat >conftest.$ac_ext <<_ACEOF
34661/* confdefs.h. */
34662_ACEOF
34663cat confdefs.h >>conftest.$ac_ext
34664cat >>conftest.$ac_ext <<_ACEOF
34665/* end confdefs.h. */
34666$ac_includes_default
34667int
34668main ()
34669{
34670if ((off_t *) 0)
34671 return 0;
34672if (sizeof (off_t))
34673 return 0;
34674 ;
34675 return 0;
34676}
34677_ACEOF
34678rm -f conftest.$ac_objext
34679if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34680 (eval $ac_compile) 2>conftest.er1
a848cd7e 34681 ac_status=$?
ac1cb8d3
VS
34682 grep -v '^ *+' conftest.er1 >conftest.err
34683 rm -f conftest.er1
34684 cat conftest.err >&5
a848cd7e
SC
34685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34686 (exit $ac_status); } &&
bb9e79c0 34687 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34689 (eval $ac_try) 2>&5
34690 ac_status=$?
34691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34692 (exit $ac_status); }; } &&
34693 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34695 (eval $ac_try) 2>&5
34696 ac_status=$?
34697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34698 (exit $ac_status); }; }; then
34699 ac_cv_type_off_t=yes
34700else
34701 echo "$as_me: failed program was:" >&5
34702sed 's/^/| /' conftest.$ac_ext >&5
34703
34704ac_cv_type_off_t=no
34705fi
ac1cb8d3 34706rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34707fi
34708echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
34709echo "${ECHO_T}$ac_cv_type_off_t" >&6
34710if test $ac_cv_type_off_t = yes; then
34711 :
34712else
34713
34714cat >>confdefs.h <<_ACEOF
34715#define off_t long
34716_ACEOF
34717
34718fi
34719
34720echo "$as_me:$LINENO: checking for pid_t" >&5
34721echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
34722if test "${ac_cv_type_pid_t+set}" = set; then
34723 echo $ECHO_N "(cached) $ECHO_C" >&6
34724else
34725 cat >conftest.$ac_ext <<_ACEOF
34726/* confdefs.h. */
34727_ACEOF
34728cat confdefs.h >>conftest.$ac_ext
34729cat >>conftest.$ac_ext <<_ACEOF
34730/* end confdefs.h. */
34731$ac_includes_default
34732int
34733main ()
34734{
34735if ((pid_t *) 0)
34736 return 0;
34737if (sizeof (pid_t))
34738 return 0;
34739 ;
34740 return 0;
34741}
34742_ACEOF
34743rm -f conftest.$ac_objext
34744if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34745 (eval $ac_compile) 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); } &&
bb9e79c0 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_objext'
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 ac_cv_type_pid_t=yes
34765else
34766 echo "$as_me: failed program was:" >&5
34767sed 's/^/| /' conftest.$ac_ext >&5
34768
34769ac_cv_type_pid_t=no
34770fi
ac1cb8d3 34771rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34772fi
34773echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
34774echo "${ECHO_T}$ac_cv_type_pid_t" >&6
34775if test $ac_cv_type_pid_t = yes; then
34776 :
34777else
34778
34779cat >>confdefs.h <<_ACEOF
34780#define pid_t int
34781_ACEOF
34782
34783fi
34784
34785echo "$as_me:$LINENO: checking for size_t" >&5
34786echo $ECHO_N "checking for size_t... $ECHO_C" >&6
34787if test "${ac_cv_type_size_t+set}" = set; then
34788 echo $ECHO_N "(cached) $ECHO_C" >&6
34789else
34790 cat >conftest.$ac_ext <<_ACEOF
34791/* confdefs.h. */
34792_ACEOF
34793cat confdefs.h >>conftest.$ac_ext
34794cat >>conftest.$ac_ext <<_ACEOF
34795/* end confdefs.h. */
34796$ac_includes_default
34797int
34798main ()
34799{
34800if ((size_t *) 0)
34801 return 0;
34802if (sizeof (size_t))
34803 return 0;
34804 ;
34805 return 0;
34806}
34807_ACEOF
34808rm -f conftest.$ac_objext
34809if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34810 (eval $ac_compile) 2>conftest.er1
a848cd7e 34811 ac_status=$?
ac1cb8d3
VS
34812 grep -v '^ *+' conftest.er1 >conftest.err
34813 rm -f conftest.er1
34814 cat conftest.err >&5
a848cd7e
SC
34815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34816 (exit $ac_status); } &&
bb9e79c0 34817 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
34823 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34825 (eval $ac_try) 2>&5
34826 ac_status=$?
34827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34828 (exit $ac_status); }; }; then
34829 ac_cv_type_size_t=yes
34830else
34831 echo "$as_me: failed program was:" >&5
34832sed 's/^/| /' conftest.$ac_ext >&5
34833
34834ac_cv_type_size_t=no
34835fi
ac1cb8d3 34836rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34837fi
34838echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
34839echo "${ECHO_T}$ac_cv_type_size_t" >&6
34840if test $ac_cv_type_size_t = yes; then
34841 :
34842else
34843
34844cat >>confdefs.h <<_ACEOF
34845#define size_t unsigned
34846_ACEOF
34847
34848fi
34849
34850echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
34851echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
34852if test "${ac_cv_type_uid_t+set}" = set; then
34853 echo $ECHO_N "(cached) $ECHO_C" >&6
34854else
34855 cat >conftest.$ac_ext <<_ACEOF
34856/* confdefs.h. */
34857_ACEOF
34858cat confdefs.h >>conftest.$ac_ext
34859cat >>conftest.$ac_ext <<_ACEOF
34860/* end confdefs.h. */
34861#include <sys/types.h>
34862
34863_ACEOF
34864if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34865 $EGREP "uid_t" >/dev/null 2>&1; then
34866 ac_cv_type_uid_t=yes
34867else
34868 ac_cv_type_uid_t=no
34869fi
34870rm -f conftest*
34871
34872fi
34873echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
34874echo "${ECHO_T}$ac_cv_type_uid_t" >&6
34875if test $ac_cv_type_uid_t = no; then
34876
34877cat >>confdefs.h <<\_ACEOF
34878#define uid_t int
34879_ACEOF
34880
34881
34882cat >>confdefs.h <<\_ACEOF
34883#define gid_t int
34884_ACEOF
34885
34886fi
34887
34888
d51253e8
RL
34889echo "$as_me:$LINENO: checking for ssize_t" >&5
34890echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
34891if test "${ac_cv_type_ssize_t+set}" = set; then
34892 echo $ECHO_N "(cached) $ECHO_C" >&6
34893else
34894 cat >conftest.$ac_ext <<_ACEOF
34895/* confdefs.h. */
34896_ACEOF
34897cat confdefs.h >>conftest.$ac_ext
34898cat >>conftest.$ac_ext <<_ACEOF
34899/* end confdefs.h. */
34900$ac_includes_default
34901int
34902main ()
34903{
34904if ((ssize_t *) 0)
34905 return 0;
34906if (sizeof (ssize_t))
34907 return 0;
34908 ;
34909 return 0;
34910}
34911_ACEOF
34912rm -f conftest.$ac_objext
34913if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34914 (eval $ac_compile) 2>conftest.er1
34915 ac_status=$?
34916 grep -v '^ *+' conftest.er1 >conftest.err
34917 rm -f conftest.er1
34918 cat conftest.err >&5
34919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34920 (exit $ac_status); } &&
bb9e79c0 34921 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
d51253e8
RL
34922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34923 (eval $ac_try) 2>&5
34924 ac_status=$?
34925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34926 (exit $ac_status); }; } &&
34927 { ac_try='test -s conftest.$ac_objext'
34928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34929 (eval $ac_try) 2>&5
34930 ac_status=$?
34931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34932 (exit $ac_status); }; }; then
34933 ac_cv_type_ssize_t=yes
34934else
34935 echo "$as_me: failed program was:" >&5
34936sed 's/^/| /' conftest.$ac_ext >&5
34937
34938ac_cv_type_ssize_t=no
34939fi
34940rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34941fi
34942echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
34943echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
34944if test $ac_cv_type_ssize_t = yes; then
34945
34946cat >>confdefs.h <<_ACEOF
34947#define HAVE_SSIZE_T 1
34948_ACEOF
34949
34950
34951fi
34952
34953
a848cd7e
SC
34954echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
34955echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
34956if test "${wx_cv_size_t_is_uint+set}" = set; then
34957 echo $ECHO_N "(cached) $ECHO_C" >&6
34958else
34959
34960 cat >conftest.$ac_ext <<_ACEOF
34961/* confdefs.h. */
34962_ACEOF
34963cat confdefs.h >>conftest.$ac_ext
34964cat >>conftest.$ac_ext <<_ACEOF
34965/* end confdefs.h. */
34966#include <stddef.h>
34967int
34968main ()
34969{
34970
34971 return 0; }
34972
34973 struct Foo { void foo(size_t); void foo(unsigned int); };
34974
34975 int bar() {
34976
34977 ;
34978 return 0;
34979}
34980_ACEOF
34981rm -f conftest.$ac_objext
34982if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34983 (eval $ac_compile) 2>conftest.er1
a848cd7e 34984 ac_status=$?
ac1cb8d3
VS
34985 grep -v '^ *+' conftest.er1 >conftest.err
34986 rm -f conftest.er1
34987 cat conftest.err >&5
a848cd7e
SC
34988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34989 (exit $ac_status); } &&
bb9e79c0 34990 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34992 (eval $ac_try) 2>&5
34993 ac_status=$?
34994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34995 (exit $ac_status); }; } &&
34996 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34998 (eval $ac_try) 2>&5
34999 ac_status=$?
35000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35001 (exit $ac_status); }; }; then
35002 wx_cv_size_t_is_uint=no
35003else
35004 echo "$as_me: failed program was:" >&5
35005sed 's/^/| /' conftest.$ac_ext >&5
35006
35007wx_cv_size_t_is_uint=yes
35008
35009fi
ac1cb8d3 35010rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35011
35012
35013fi
35014echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
35015echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
35016
35017if test "$wx_cv_size_t_is_uint" = "yes"; then
35018 cat >>confdefs.h <<\_ACEOF
35019#define wxSIZE_T_IS_UINT 1
35020_ACEOF
35021
35022else
35023 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
35024echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
35025if test "${wx_cv_size_t_is_ulong+set}" = set; then
35026 echo $ECHO_N "(cached) $ECHO_C" >&6
35027else
35028 cat >conftest.$ac_ext <<_ACEOF
35029/* confdefs.h. */
35030_ACEOF
35031cat confdefs.h >>conftest.$ac_ext
35032cat >>conftest.$ac_ext <<_ACEOF
35033/* end confdefs.h. */
35034#include <stddef.h>
35035int
35036main ()
35037{
35038
35039 return 0; }
35040
35041 struct Foo { void foo(size_t); void foo(unsigned long); };
35042
35043 int bar() {
35044
35045 ;
35046 return 0;
35047}
35048_ACEOF
35049rm -f conftest.$ac_objext
35050if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35051 (eval $ac_compile) 2>conftest.er1
a848cd7e 35052 ac_status=$?
ac1cb8d3
VS
35053 grep -v '^ *+' conftest.er1 >conftest.err
35054 rm -f conftest.er1
35055 cat conftest.err >&5
a848cd7e
SC
35056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35057 (exit $ac_status); } &&
bb9e79c0 35058 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35060 (eval $ac_try) 2>&5
35061 ac_status=$?
35062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35063 (exit $ac_status); }; } &&
35064 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35066 (eval $ac_try) 2>&5
35067 ac_status=$?
35068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35069 (exit $ac_status); }; }; then
35070 wx_cv_size_t_is_ulong=no
35071else
35072 echo "$as_me: failed program was:" >&5
35073sed 's/^/| /' conftest.$ac_ext >&5
35074
35075wx_cv_size_t_is_ulong=yes
35076
35077fi
ac1cb8d3 35078rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35079
35080fi
35081echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
35082echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
35083
35084 if test "$wx_cv_size_t_is_ulong" = "yes"; then
35085 cat >>confdefs.h <<\_ACEOF
35086#define wxSIZE_T_IS_ULONG 1
35087_ACEOF
35088
35089 fi
35090fi
35091
a848cd7e
SC
35092
35093echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
35094echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
35095if test "${wx_cv_struct_pw_gecos+set}" = set; then
35096 echo $ECHO_N "(cached) $ECHO_C" >&6
35097else
35098
35099 cat >conftest.$ac_ext <<_ACEOF
35100/* confdefs.h. */
35101_ACEOF
35102cat confdefs.h >>conftest.$ac_ext
35103cat >>conftest.$ac_ext <<_ACEOF
35104/* end confdefs.h. */
35105#include <pwd.h>
35106int
35107main ()
35108{
35109
35110 char *p;
35111 struct passwd *pw;
35112 p = pw->pw_gecos;
35113
35114 ;
35115 return 0;
35116}
35117_ACEOF
35118rm -f conftest.$ac_objext
35119if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35120 (eval $ac_compile) 2>conftest.er1
a848cd7e 35121 ac_status=$?
ac1cb8d3
VS
35122 grep -v '^ *+' conftest.er1 >conftest.err
35123 rm -f conftest.er1
35124 cat conftest.err >&5
a848cd7e
SC
35125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35126 (exit $ac_status); } &&
bb9e79c0 35127 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35129 (eval $ac_try) 2>&5
35130 ac_status=$?
35131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35132 (exit $ac_status); }; } &&
35133 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35135 (eval $ac_try) 2>&5
35136 ac_status=$?
35137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35138 (exit $ac_status); }; }; then
35139
35140 wx_cv_struct_pw_gecos=yes
35141
35142else
35143 echo "$as_me: failed program was:" >&5
35144sed 's/^/| /' conftest.$ac_ext >&5
35145
35146
35147 wx_cv_struct_pw_gecos=no
35148
35149
35150fi
ac1cb8d3 35151rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35152
35153
35154fi
35155echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
35156echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
35157
35158if test "$wx_cv_struct_pw_gecos" = "yes"; then
35159 cat >>confdefs.h <<\_ACEOF
35160#define HAVE_PW_GECOS 1
35161_ACEOF
35162
35163fi
35164
35165
47a7e797 35166if test "$wxUSE_WCHAR_T" = "yes"; then
a848cd7e
SC
35167 cat >>confdefs.h <<\_ACEOF
35168#define wxUSE_WCHAR_T 1
35169_ACEOF
35170
35171
35172 WCSLEN_FOUND=0
35173 WCHAR_LINK=
35174
35175for ac_func in wcslen
35176do
35177as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35178echo "$as_me:$LINENO: checking for $ac_func" >&5
35179echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35180if eval "test \"\${$as_ac_var+set}\" = set"; then
35181 echo $ECHO_N "(cached) $ECHO_C" >&6
35182else
35183 cat >conftest.$ac_ext <<_ACEOF
35184/* confdefs.h. */
35185_ACEOF
35186cat confdefs.h >>conftest.$ac_ext
35187cat >>conftest.$ac_ext <<_ACEOF
35188/* end confdefs.h. */
ac1cb8d3
VS
35189/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35190 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35191#define $ac_func innocuous_$ac_func
35192
a848cd7e
SC
35193/* System header to define __stub macros and hopefully few prototypes,
35194 which can conflict with char $ac_func (); below.
35195 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35196 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35197
a848cd7e
SC
35198#ifdef __STDC__
35199# include <limits.h>
35200#else
35201# include <assert.h>
35202#endif
ac1cb8d3
VS
35203
35204#undef $ac_func
35205
a848cd7e
SC
35206/* Override any gcc2 internal prototype to avoid an error. */
35207#ifdef __cplusplus
35208extern "C"
35209{
35210#endif
35211/* We use char because int might match the return type of a gcc2
35212 builtin and then its argument prototype would still apply. */
35213char $ac_func ();
35214/* The GNU C library defines this for functions which it implements
35215 to always fail with ENOSYS. Some functions are actually named
35216 something starting with __ and the normal name is an alias. */
35217#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35218choke me
35219#else
35220char (*f) () = $ac_func;
35221#endif
35222#ifdef __cplusplus
35223}
35224#endif
35225
35226int
35227main ()
35228{
35229return f != $ac_func;
35230 ;
35231 return 0;
35232}
35233_ACEOF
35234rm -f conftest.$ac_objext conftest$ac_exeext
35235if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35236 (eval $ac_link) 2>conftest.er1
a848cd7e 35237 ac_status=$?
ac1cb8d3
VS
35238 grep -v '^ *+' conftest.er1 >conftest.err
35239 rm -f conftest.er1
35240 cat conftest.err >&5
a848cd7e
SC
35241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35242 (exit $ac_status); } &&
bb9e79c0 35243 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35245 (eval $ac_try) 2>&5
35246 ac_status=$?
35247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35248 (exit $ac_status); }; } &&
35249 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35251 (eval $ac_try) 2>&5
35252 ac_status=$?
35253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35254 (exit $ac_status); }; }; then
35255 eval "$as_ac_var=yes"
35256else
35257 echo "$as_me: failed program was:" >&5
35258sed 's/^/| /' conftest.$ac_ext >&5
35259
35260eval "$as_ac_var=no"
35261fi
ac1cb8d3
VS
35262rm -f conftest.err conftest.$ac_objext \
35263 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35264fi
35265echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35266echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35267if test `eval echo '${'$as_ac_var'}'` = yes; then
35268 cat >>confdefs.h <<_ACEOF
35269#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35270_ACEOF
35271 WCSLEN_FOUND=1
35272fi
35273done
35274
35275
35276 if test "$WCSLEN_FOUND" = 0; then
35277 if test "$TOOLKIT" = "MSW"; then
35278 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
35279echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
35280if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
35281 echo $ECHO_N "(cached) $ECHO_C" >&6
35282else
35283 ac_check_lib_save_LIBS=$LIBS
35284LIBS="-lmsvcrt $LIBS"
35285cat >conftest.$ac_ext <<_ACEOF
35286/* confdefs.h. */
35287_ACEOF
35288cat confdefs.h >>conftest.$ac_ext
35289cat >>conftest.$ac_ext <<_ACEOF
35290/* end confdefs.h. */
35291
35292/* Override any gcc2 internal prototype to avoid an error. */
35293#ifdef __cplusplus
35294extern "C"
35295#endif
35296/* We use char because int might match the return type of a gcc2
35297 builtin and then its argument prototype would still apply. */
35298char wcslen ();
35299int
35300main ()
35301{
35302wcslen ();
35303 ;
35304 return 0;
35305}
35306_ACEOF
35307rm -f conftest.$ac_objext conftest$ac_exeext
35308if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35309 (eval $ac_link) 2>conftest.er1
a848cd7e 35310 ac_status=$?
ac1cb8d3
VS
35311 grep -v '^ *+' conftest.er1 >conftest.err
35312 rm -f conftest.er1
35313 cat conftest.err >&5
a848cd7e
SC
35314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35315 (exit $ac_status); } &&
bb9e79c0 35316 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35318 (eval $ac_try) 2>&5
35319 ac_status=$?
35320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35321 (exit $ac_status); }; } &&
35322 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35324 (eval $ac_try) 2>&5
35325 ac_status=$?
35326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35327 (exit $ac_status); }; }; then
35328 ac_cv_lib_msvcrt_wcslen=yes
35329else
35330 echo "$as_me: failed program was:" >&5
35331sed 's/^/| /' conftest.$ac_ext >&5
35332
35333ac_cv_lib_msvcrt_wcslen=no
35334fi
ac1cb8d3
VS
35335rm -f conftest.err conftest.$ac_objext \
35336 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35337LIBS=$ac_check_lib_save_LIBS
35338fi
35339echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
35340echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
35341if test $ac_cv_lib_msvcrt_wcslen = yes; then
35342 WCHAR_OK=1
35343fi
35344
35345 else
35346 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
35347echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
35348if test "${ac_cv_lib_w_wcslen+set}" = set; then
35349 echo $ECHO_N "(cached) $ECHO_C" >&6
35350else
35351 ac_check_lib_save_LIBS=$LIBS
35352LIBS="-lw $LIBS"
35353cat >conftest.$ac_ext <<_ACEOF
35354/* confdefs.h. */
35355_ACEOF
35356cat confdefs.h >>conftest.$ac_ext
35357cat >>conftest.$ac_ext <<_ACEOF
35358/* end confdefs.h. */
35359
35360/* Override any gcc2 internal prototype to avoid an error. */
35361#ifdef __cplusplus
35362extern "C"
35363#endif
35364/* We use char because int might match the return type of a gcc2
35365 builtin and then its argument prototype would still apply. */
35366char wcslen ();
35367int
35368main ()
35369{
35370wcslen ();
35371 ;
35372 return 0;
35373}
35374_ACEOF
35375rm -f conftest.$ac_objext conftest$ac_exeext
35376if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35377 (eval $ac_link) 2>conftest.er1
a848cd7e 35378 ac_status=$?
ac1cb8d3
VS
35379 grep -v '^ *+' conftest.er1 >conftest.err
35380 rm -f conftest.er1
35381 cat conftest.err >&5
a848cd7e
SC
35382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35383 (exit $ac_status); } &&
bb9e79c0 35384 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35386 (eval $ac_try) 2>&5
35387 ac_status=$?
35388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35389 (exit $ac_status); }; } &&
35390 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35392 (eval $ac_try) 2>&5
35393 ac_status=$?
35394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35395 (exit $ac_status); }; }; then
35396 ac_cv_lib_w_wcslen=yes
35397else
35398 echo "$as_me: failed program was:" >&5
35399sed 's/^/| /' conftest.$ac_ext >&5
35400
35401ac_cv_lib_w_wcslen=no
35402fi
ac1cb8d3
VS
35403rm -f conftest.err conftest.$ac_objext \
35404 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35405LIBS=$ac_check_lib_save_LIBS
35406fi
35407echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
35408echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
35409if test $ac_cv_lib_w_wcslen = yes; then
35410
35411 WCHAR_LINK=" -lw"
35412 WCSLEN_FOUND=1
35413
35414fi
35415
35416 fi
35417 fi
35418
35419 if test "$WCSLEN_FOUND" = 1; then
35420 cat >>confdefs.h <<\_ACEOF
35421#define HAVE_WCSLEN 1
35422_ACEOF
35423
35424 fi
35425
efdf6afe 35426 if test "$USE_HPUX" = 1 -a "$GCC" != "yes"; then
c92ad099 35427 CPPFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CPPFLAGS"
473276a9
VS
35428 fi
35429
efdf6afe
VZ
35430 echo "$as_me:$LINENO: checking for mbstate_t" >&5
35431echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
35432if test "${ac_cv_type_mbstate_t+set}" = set; then
35433 echo $ECHO_N "(cached) $ECHO_C" >&6
35434else
35435 cat >conftest.$ac_ext <<_ACEOF
35436/* confdefs.h. */
35437_ACEOF
35438cat confdefs.h >>conftest.$ac_ext
35439cat >>conftest.$ac_ext <<_ACEOF
35440/* end confdefs.h. */
35441#include <wchar.h>
35442
35443int
35444main ()
35445{
35446if ((mbstate_t *) 0)
35447 return 0;
35448if (sizeof (mbstate_t))
35449 return 0;
35450 ;
35451 return 0;
35452}
35453_ACEOF
35454rm -f conftest.$ac_objext
35455if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35456 (eval $ac_compile) 2>conftest.er1
35457 ac_status=$?
35458 grep -v '^ *+' conftest.er1 >conftest.err
35459 rm -f conftest.er1
35460 cat conftest.err >&5
35461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35462 (exit $ac_status); } &&
bb9e79c0 35463 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
efdf6afe
VZ
35464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35465 (eval $ac_try) 2>&5
35466 ac_status=$?
35467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35468 (exit $ac_status); }; } &&
35469 { ac_try='test -s conftest.$ac_objext'
35470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35471 (eval $ac_try) 2>&5
35472 ac_status=$?
35473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35474 (exit $ac_status); }; }; then
35475 ac_cv_type_mbstate_t=yes
35476else
35477 echo "$as_me: failed program was:" >&5
35478sed 's/^/| /' conftest.$ac_ext >&5
35479
35480ac_cv_type_mbstate_t=no
35481fi
35482rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35483fi
35484echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
35485echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
35486if test $ac_cv_type_mbstate_t = yes; then
35487
35488cat >>confdefs.h <<_ACEOF
35489#define HAVE_MBSTATE_T 1
35490_ACEOF
35491
a848cd7e
SC
35492
35493for ac_func in wcsrtombs
35494do
35495as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35496echo "$as_me:$LINENO: checking for $ac_func" >&5
35497echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35498if eval "test \"\${$as_ac_var+set}\" = set"; then
35499 echo $ECHO_N "(cached) $ECHO_C" >&6
35500else
35501 cat >conftest.$ac_ext <<_ACEOF
35502/* confdefs.h. */
35503_ACEOF
35504cat confdefs.h >>conftest.$ac_ext
35505cat >>conftest.$ac_ext <<_ACEOF
35506/* end confdefs.h. */
ac1cb8d3
VS
35507/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35508 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35509#define $ac_func innocuous_$ac_func
35510
a848cd7e
SC
35511/* System header to define __stub macros and hopefully few prototypes,
35512 which can conflict with char $ac_func (); below.
35513 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35514 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35515
a848cd7e
SC
35516#ifdef __STDC__
35517# include <limits.h>
35518#else
35519# include <assert.h>
35520#endif
ac1cb8d3
VS
35521
35522#undef $ac_func
35523
a848cd7e
SC
35524/* Override any gcc2 internal prototype to avoid an error. */
35525#ifdef __cplusplus
35526extern "C"
35527{
35528#endif
35529/* We use char because int might match the return type of a gcc2
35530 builtin and then its argument prototype would still apply. */
35531char $ac_func ();
35532/* The GNU C library defines this for functions which it implements
35533 to always fail with ENOSYS. Some functions are actually named
35534 something starting with __ and the normal name is an alias. */
35535#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35536choke me
35537#else
35538char (*f) () = $ac_func;
35539#endif
35540#ifdef __cplusplus
35541}
35542#endif
35543
35544int
35545main ()
35546{
35547return f != $ac_func;
35548 ;
35549 return 0;
35550}
35551_ACEOF
35552rm -f conftest.$ac_objext conftest$ac_exeext
35553if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35554 (eval $ac_link) 2>conftest.er1
a848cd7e 35555 ac_status=$?
ac1cb8d3
VS
35556 grep -v '^ *+' conftest.er1 >conftest.err
35557 rm -f conftest.er1
35558 cat conftest.err >&5
a848cd7e
SC
35559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35560 (exit $ac_status); } &&
bb9e79c0 35561 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35563 (eval $ac_try) 2>&5
35564 ac_status=$?
35565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35566 (exit $ac_status); }; } &&
35567 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35569 (eval $ac_try) 2>&5
35570 ac_status=$?
35571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35572 (exit $ac_status); }; }; then
35573 eval "$as_ac_var=yes"
35574else
35575 echo "$as_me: failed program was:" >&5
35576sed 's/^/| /' conftest.$ac_ext >&5
35577
35578eval "$as_ac_var=no"
35579fi
ac1cb8d3
VS
35580rm -f conftest.err conftest.$ac_objext \
35581 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35582fi
35583echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35584echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35585if test `eval echo '${'$as_ac_var'}'` = yes; then
35586 cat >>confdefs.h <<_ACEOF
35587#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35588_ACEOF
35589
35590fi
35591done
35592
efdf6afe
VZ
35593fi
35594
a848cd7e
SC
35595else
35596 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
35597echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
35598fi
35599
a848cd7e 35600
4a767dd5
VZ
35601
35602for ac_func in snprintf vsnprintf
a848cd7e
SC
35603do
35604as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35605echo "$as_me:$LINENO: checking for $ac_func" >&5
35606echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35607if eval "test \"\${$as_ac_var+set}\" = set"; then
35608 echo $ECHO_N "(cached) $ECHO_C" >&6
35609else
35610 cat >conftest.$ac_ext <<_ACEOF
35611/* confdefs.h. */
35612_ACEOF
35613cat confdefs.h >>conftest.$ac_ext
35614cat >>conftest.$ac_ext <<_ACEOF
35615/* end confdefs.h. */
ac1cb8d3
VS
35616/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35617 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35618#define $ac_func innocuous_$ac_func
35619
a848cd7e
SC
35620/* System header to define __stub macros and hopefully few prototypes,
35621 which can conflict with char $ac_func (); below.
35622 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35623 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35624
a848cd7e
SC
35625#ifdef __STDC__
35626# include <limits.h>
35627#else
35628# include <assert.h>
35629#endif
ac1cb8d3
VS
35630
35631#undef $ac_func
35632
a848cd7e
SC
35633/* Override any gcc2 internal prototype to avoid an error. */
35634#ifdef __cplusplus
35635extern "C"
35636{
35637#endif
35638/* We use char because int might match the return type of a gcc2
35639 builtin and then its argument prototype would still apply. */
35640char $ac_func ();
35641/* The GNU C library defines this for functions which it implements
35642 to always fail with ENOSYS. Some functions are actually named
35643 something starting with __ and the normal name is an alias. */
35644#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35645choke me
35646#else
35647char (*f) () = $ac_func;
35648#endif
35649#ifdef __cplusplus
35650}
35651#endif
35652
35653int
35654main ()
35655{
35656return f != $ac_func;
35657 ;
35658 return 0;
35659}
35660_ACEOF
35661rm -f conftest.$ac_objext conftest$ac_exeext
35662if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35663 (eval $ac_link) 2>conftest.er1
a848cd7e 35664 ac_status=$?
ac1cb8d3
VS
35665 grep -v '^ *+' conftest.er1 >conftest.err
35666 rm -f conftest.er1
35667 cat conftest.err >&5
a848cd7e
SC
35668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35669 (exit $ac_status); } &&
bb9e79c0 35670 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35672 (eval $ac_try) 2>&5
35673 ac_status=$?
35674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35675 (exit $ac_status); }; } &&
35676 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35678 (eval $ac_try) 2>&5
35679 ac_status=$?
35680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35681 (exit $ac_status); }; }; then
35682 eval "$as_ac_var=yes"
35683else
35684 echo "$as_me: failed program was:" >&5
35685sed 's/^/| /' conftest.$ac_ext >&5
35686
35687eval "$as_ac_var=no"
35688fi
ac1cb8d3
VS
35689rm -f conftest.err conftest.$ac_objext \
35690 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35691fi
35692echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35693echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35694if test `eval echo '${'$as_ac_var'}'` = yes; then
35695 cat >>confdefs.h <<_ACEOF
35696#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35697_ACEOF
35698
35699fi
35700done
35701
35702
35703if test "$ac_cv_func_vsnprintf" = "yes"; then
35704 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
35705echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
35706if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
35707 echo $ECHO_N "(cached) $ECHO_C" >&6
35708else
35709
efdf6afe 35710 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
35711/* confdefs.h. */
35712_ACEOF
35713cat confdefs.h >>conftest.$ac_ext
35714cat >>conftest.$ac_ext <<_ACEOF
35715/* end confdefs.h. */
35716
35717 #include <stdio.h>
35718 #include <stdarg.h>
efdf6afe
VZ
35719 #ifdef __MSL__
35720 #if __MSL__ >= 0x6000
35721 namespace std {}
35722 using namespace std;
35723 #endif
35724 #endif
a848cd7e
SC
35725
35726int
35727main ()
35728{
35729
35730 char *buf;
35731 va_list ap;
62fa8b3a 35732 vsnprintf(buf, 10u, "%s", ap);
c122b164
DE
35733
35734 ;
35735 return 0;
35736}
35737_ACEOF
35738rm -f conftest.$ac_objext
35739if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35740 (eval $ac_compile) 2>conftest.er1
35741 ac_status=$?
35742 grep -v '^ *+' conftest.er1 >conftest.err
35743 rm -f conftest.er1
35744 cat conftest.err >&5
35745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35746 (exit $ac_status); } &&
bb9e79c0 35747 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
c122b164
DE
35748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35749 (eval $ac_try) 2>&5
35750 ac_status=$?
35751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35752 (exit $ac_status); }; } &&
35753 { ac_try='test -s conftest.$ac_objext'
35754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35755 (eval $ac_try) 2>&5
35756 ac_status=$?
35757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35758 (exit $ac_status); }; }; then
35759 wx_cv_func_vsnprintf_decl=yes
35760else
35761 echo "$as_me: failed program was:" >&5
35762sed 's/^/| /' conftest.$ac_ext >&5
35763
a848cd7e
SC
35764wx_cv_func_vsnprintf_decl=no
35765
35766fi
ac1cb8d3 35767rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35768
35769
35770fi
35771echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
35772echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
35773
35774 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
35775 cat >>confdefs.h <<\_ACEOF
35776#define HAVE_VSNPRINTF_DECL 1
35777_ACEOF
35778
62fa8b3a
MW
35779
35780 echo "$as_me:$LINENO: checking if vsnprintf declaration is broken" >&5
35781echo $ECHO_N "checking if vsnprintf declaration is broken... $ECHO_C" >&6
35782if test "${wx_cv_func_broken_vsnprintf_decl+set}" = set; then
35783 echo $ECHO_N "(cached) $ECHO_C" >&6
35784else
35785
35786 cat >conftest.$ac_ext <<_ACEOF
35787/* confdefs.h. */
35788_ACEOF
35789cat confdefs.h >>conftest.$ac_ext
35790cat >>conftest.$ac_ext <<_ACEOF
35791/* end confdefs.h. */
35792
35793 #include <stdio.h>
35794 #include <stdarg.h>
35795 #ifdef __MSL__
35796 #if __MSL__ >= 0x6000
35797 namespace std {}
35798 using namespace std;
35799 #endif
35800 #endif
35801
35802int
35803main ()
35804{
35805
35806 char *buf;
35807 va_list ap;
35808 const char *fmt = "%s";
35809 vsnprintf(buf, 10u, fmt, ap);
35810
35811 ;
35812 return 0;
35813}
35814_ACEOF
35815rm -f conftest.$ac_objext
35816if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35817 (eval $ac_compile) 2>conftest.er1
35818 ac_status=$?
35819 grep -v '^ *+' conftest.er1 >conftest.err
35820 rm -f conftest.er1
35821 cat conftest.err >&5
35822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35823 (exit $ac_status); } &&
bb9e79c0 35824 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
62fa8b3a
MW
35825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35826 (eval $ac_try) 2>&5
35827 ac_status=$?
35828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35829 (exit $ac_status); }; } &&
35830 { ac_try='test -s conftest.$ac_objext'
35831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35832 (eval $ac_try) 2>&5
35833 ac_status=$?
35834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35835 (exit $ac_status); }; }; then
35836 wx_cv_func_broken_vsnprintf_decl=no
35837else
35838 echo "$as_me: failed program was:" >&5
35839sed 's/^/| /' conftest.$ac_ext >&5
35840
35841wx_cv_func_broken_vsnprintf_decl=yes
35842
35843fi
35844rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35845
35846
35847fi
35848echo "$as_me:$LINENO: result: $wx_cv_func_broken_vsnprintf_decl" >&5
35849echo "${ECHO_T}$wx_cv_func_broken_vsnprintf_decl" >&6
35850
35851 if test "$wx_cv_func_broken_vsnprintf_decl" = "yes"; then
35852 cat >>confdefs.h <<\_ACEOF
35853#define HAVE_BROKEN_VSNPRINTF_DECL 1
35854_ACEOF
35855
35856 fi
a848cd7e
SC
35857 fi
35858fi
35859
4a767dd5
VZ
35860if test "$ac_cv_func_snprintf" = "yes"; then
35861 echo "$as_me:$LINENO: checking for snprintf declaration" >&5
35862echo $ECHO_N "checking for snprintf declaration... $ECHO_C" >&6
35863if test "${wx_cv_func_snprintf_decl+set}" = set; then
35864 echo $ECHO_N "(cached) $ECHO_C" >&6
35865else
35866
35867 cat >conftest.$ac_ext <<_ACEOF
35868/* confdefs.h. */
35869_ACEOF
35870cat confdefs.h >>conftest.$ac_ext
35871cat >>conftest.$ac_ext <<_ACEOF
35872/* end confdefs.h. */
35873
35874 #include <stdio.h>
35875 #include <stdarg.h>
35876 #ifdef __MSL__
35877 #if __MSL__ >= 0x6000
35878 namespace std {}
35879 using namespace std;
35880 #endif
35881 #endif
35882
35883int
35884main ()
35885{
35886
35887 char *buf;
62fa8b3a 35888 snprintf(buf, 10u, "%s", "wx");
4a767dd5
VZ
35889
35890 ;
35891 return 0;
35892}
35893_ACEOF
35894rm -f conftest.$ac_objext
35895if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35896 (eval $ac_compile) 2>conftest.er1
35897 ac_status=$?
35898 grep -v '^ *+' conftest.er1 >conftest.err
35899 rm -f conftest.er1
35900 cat conftest.err >&5
35901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35902 (exit $ac_status); } &&
bb9e79c0 35903 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4a767dd5
VZ
35904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35905 (eval $ac_try) 2>&5
35906 ac_status=$?
35907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35908 (exit $ac_status); }; } &&
35909 { ac_try='test -s conftest.$ac_objext'
35910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35911 (eval $ac_try) 2>&5
35912 ac_status=$?
35913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35914 (exit $ac_status); }; }; then
35915 wx_cv_func_snprintf_decl=yes
35916else
35917 echo "$as_me: failed program was:" >&5
35918sed 's/^/| /' conftest.$ac_ext >&5
35919
35920wx_cv_func_snprintf_decl=no
35921
35922fi
35923rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35924
35925
35926fi
35927echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_decl" >&5
35928echo "${ECHO_T}$wx_cv_func_snprintf_decl" >&6
35929
35930 if test "$wx_cv_func_snprintf_decl" = "yes"; then
35931 cat >>confdefs.h <<\_ACEOF
35932#define HAVE_SNPRINTF_DECL 1
35933_ACEOF
35934
62fa8b3a
MW
35935
35936 echo "$as_me:$LINENO: checking if snprintf declaration is broken" >&5
35937echo $ECHO_N "checking if snprintf declaration is broken... $ECHO_C" >&6
35938if test "${wx_cv_func_broken_snprintf_decl+set}" = set; then
35939 echo $ECHO_N "(cached) $ECHO_C" >&6
35940else
35941
35942 cat >conftest.$ac_ext <<_ACEOF
35943/* confdefs.h. */
35944_ACEOF
35945cat confdefs.h >>conftest.$ac_ext
35946cat >>conftest.$ac_ext <<_ACEOF
35947/* end confdefs.h. */
35948
35949 #include <stdio.h>
35950 #include <stdarg.h>
35951 #ifdef __MSL__
35952 #if __MSL__ >= 0x6000
35953 namespace std {}
35954 using namespace std;
35955 #endif
35956 #endif
35957
35958int
35959main ()
35960{
35961
35962 char *buf;
35963 const char *fmt = "%s";
35964 snprintf(buf, 10u, fmt, "wx");
35965
35966 ;
35967 return 0;
35968}
35969_ACEOF
35970rm -f conftest.$ac_objext
35971if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35972 (eval $ac_compile) 2>conftest.er1
35973 ac_status=$?
35974 grep -v '^ *+' conftest.er1 >conftest.err
35975 rm -f conftest.er1
35976 cat conftest.err >&5
35977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35978 (exit $ac_status); } &&
bb9e79c0 35979 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
62fa8b3a
MW
35980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35981 (eval $ac_try) 2>&5
35982 ac_status=$?
35983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35984 (exit $ac_status); }; } &&
35985 { ac_try='test -s conftest.$ac_objext'
35986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35987 (eval $ac_try) 2>&5
35988 ac_status=$?
35989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35990 (exit $ac_status); }; }; then
35991 wx_cv_func_broken_snprintf_decl=no
35992else
35993 echo "$as_me: failed program was:" >&5
35994sed 's/^/| /' conftest.$ac_ext >&5
35995
35996wx_cv_func_broken_snprintf_decl=yes
35997
35998fi
35999rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36000
36001
36002fi
36003echo "$as_me:$LINENO: result: $wx_cv_func_broken_snprintf_decl" >&5
36004echo "${ECHO_T}$wx_cv_func_broken_snprintf_decl" >&6
36005
36006 if test "$wx_cv_func_broken_snprintf_decl" = "yes"; then
36007 cat >>confdefs.h <<\_ACEOF
36008#define HAVE_BROKEN_SNPRINTF_DECL 1
8b6682b9
JS
36009_ACEOF
36010
36011 fi
36012 fi
36013
36014 if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
36015
36016 echo "$as_me:$LINENO: checking if snprintf supports positional arguments" >&5
36017echo $ECHO_N "checking if snprintf supports positional arguments... $ECHO_C" >&6
36018if test "${wx_cv_func_snprintf_pos_params+set}" = set; then
36019 echo $ECHO_N "(cached) $ECHO_C" >&6
36020else
36021
36022 if test "$cross_compiling" = yes; then
5039a2df
VZ
36023
36024 { echo "$as_me:$LINENO: WARNING: Assuming Unix98 printf() is not available,
36025define HAVE_UNIX98_PRINTF as 1 in setup.h if it is available." >&5
36026echo "$as_me: WARNING: Assuming Unix98 printf() is not available,
36027define HAVE_UNIX98_PRINTF as 1 in setup.h if it is available." >&2;}
36028 wx_cv_func_snprintf_pos_params=no
36029
36030
8b6682b9
JS
36031else
36032 cat >conftest.$ac_ext <<_ACEOF
36033/* confdefs.h. */
36034_ACEOF
36035cat confdefs.h >>conftest.$ac_ext
36036cat >>conftest.$ac_ext <<_ACEOF
36037/* end confdefs.h. */
36038
36039 #include <stdio.h>
36040
36041 int main (void)
36042 {
36043 char buffer[128];
36044 snprintf (buffer, 128, "%2\$d %3\$d %1\$d", 1, 2, 3);
36045 if (strcmp ("2 3 1", buffer) == 0)
36046 exit (0);
36047 exit (1);
36048 }
36049
36050_ACEOF
36051rm -f conftest$ac_exeext
36052if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36053 (eval $ac_link) 2>&5
36054 ac_status=$?
36055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36056 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36058 (eval $ac_try) 2>&5
36059 ac_status=$?
36060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36061 (exit $ac_status); }; }; then
36062 wx_cv_func_snprintf_pos_params=no
36063else
36064 echo "$as_me: program exited with status $ac_status" >&5
36065echo "$as_me: failed program was:" >&5
36066sed 's/^/| /' conftest.$ac_ext >&5
36067
36068( exit $ac_status )
36069wx_cv_func_snprintf_pos_params=yes
8b6682b9
JS
36070fi
36071rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36072fi
36073
36074
36075fi
36076echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_pos_params" >&5
36077echo "${ECHO_T}$wx_cv_func_snprintf_pos_params" >&6
36078
36079 if test "$wx_cv_func_snprintf_pos_params" = "yes"; then
36080 cat >>confdefs.h <<\_ACEOF
36081#define HAVE_UNIX98_PRINTF 1
62fa8b3a
MW
36082_ACEOF
36083
36084 fi
4a767dd5
VZ
36085 fi
36086fi
36087
a848cd7e
SC
36088if test "$wxUSE_UNICODE" = yes; then
36089
36090
6a5c9b3f
RR
36091for ac_func in swprintf
36092do
36093as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36094echo "$as_me:$LINENO: checking for $ac_func" >&5
36095echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36096if eval "test \"\${$as_ac_var+set}\" = set"; then
36097 echo $ECHO_N "(cached) $ECHO_C" >&6
36098else
36099 cat >conftest.$ac_ext <<_ACEOF
36100/* confdefs.h. */
36101_ACEOF
36102cat confdefs.h >>conftest.$ac_ext
36103cat >>conftest.$ac_ext <<_ACEOF
36104/* end confdefs.h. */
36105/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36106 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36107#define $ac_func innocuous_$ac_func
36108
36109/* System header to define __stub macros and hopefully few prototypes,
36110 which can conflict with char $ac_func (); below.
36111 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36112 <limits.h> exists even on freestanding compilers. */
36113
36114#ifdef __STDC__
36115# include <limits.h>
36116#else
36117# include <assert.h>
36118#endif
36119
36120#undef $ac_func
36121
36122/* Override any gcc2 internal prototype to avoid an error. */
36123#ifdef __cplusplus
36124extern "C"
36125{
36126#endif
36127/* We use char because int might match the return type of a gcc2
36128 builtin and then its argument prototype would still apply. */
36129char $ac_func ();
36130/* The GNU C library defines this for functions which it implements
36131 to always fail with ENOSYS. Some functions are actually named
36132 something starting with __ and the normal name is an alias. */
36133#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36134choke me
36135#else
36136char (*f) () = $ac_func;
36137#endif
36138#ifdef __cplusplus
36139}
36140#endif
36141
36142int
36143main ()
36144{
36145return f != $ac_func;
36146 ;
36147 return 0;
36148}
36149_ACEOF
36150rm -f conftest.$ac_objext conftest$ac_exeext
36151if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36152 (eval $ac_link) 2>conftest.er1
36153 ac_status=$?
36154 grep -v '^ *+' conftest.er1 >conftest.err
36155 rm -f conftest.er1
36156 cat conftest.err >&5
36157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36158 (exit $ac_status); } &&
bb9e79c0 36159 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6a5c9b3f
RR
36160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36161 (eval $ac_try) 2>&5
36162 ac_status=$?
36163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36164 (exit $ac_status); }; } &&
36165 { ac_try='test -s conftest$ac_exeext'
36166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36167 (eval $ac_try) 2>&5
36168 ac_status=$?
36169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36170 (exit $ac_status); }; }; then
36171 eval "$as_ac_var=yes"
36172else
36173 echo "$as_me: failed program was:" >&5
36174sed 's/^/| /' conftest.$ac_ext >&5
36175
36176eval "$as_ac_var=no"
36177fi
36178rm -f conftest.err conftest.$ac_objext \
36179 conftest$ac_exeext conftest.$ac_ext
36180fi
36181echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36182echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36183if test `eval echo '${'$as_ac_var'}'` = yes; then
36184 cat >>confdefs.h <<_ACEOF
36185#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36186_ACEOF
36187
36188fi
36189done
36190
36191
36192 if test "$ac_cv_func_swprintf" = "yes"; then
36193 echo "$as_me:$LINENO: checking if swprintf declaration is broken" >&5
36194echo $ECHO_N "checking if swprintf declaration is broken... $ECHO_C" >&6
36195if test "${wx_cv_func_broken_swprintf_decl+set}" = set; then
36196 echo $ECHO_N "(cached) $ECHO_C" >&6
36197else
36198
36199 cat >conftest.$ac_ext <<_ACEOF
36200/* confdefs.h. */
36201_ACEOF
36202cat confdefs.h >>conftest.$ac_ext
36203cat >>conftest.$ac_ext <<_ACEOF
36204/* end confdefs.h. */
36205
36206 #include <stdio.h>
36207 #include <stdarg.h>
36208 #include <wchar.h>
36209
36210int
36211main ()
36212{
36213
36214 wchar_t *buf;
36215 const wchar_t *fmt = L"test";
36216 swprintf(buf, 10u, fmt);
36217
36218 ;
36219 return 0;
36220}
36221_ACEOF
36222rm -f conftest.$ac_objext
36223if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36224 (eval $ac_compile) 2>conftest.er1
36225 ac_status=$?
36226 grep -v '^ *+' conftest.er1 >conftest.err
36227 rm -f conftest.er1
36228 cat conftest.err >&5
36229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36230 (exit $ac_status); } &&
bb9e79c0 36231 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6a5c9b3f
RR
36232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36233 (eval $ac_try) 2>&5
36234 ac_status=$?
36235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36236 (exit $ac_status); }; } &&
36237 { ac_try='test -s conftest.$ac_objext'
36238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36239 (eval $ac_try) 2>&5
36240 ac_status=$?
36241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36242 (exit $ac_status); }; }; then
36243 wx_cv_func_broken_swprintf_decl=no
36244else
36245 echo "$as_me: failed program was:" >&5
36246sed 's/^/| /' conftest.$ac_ext >&5
36247
36248wx_cv_func_broken_swprintf_decl=yes
36249
36250fi
36251rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36252
36253
36254fi
36255echo "$as_me:$LINENO: result: $wx_cv_func_broken_swprintf_decl" >&5
36256echo "${ECHO_T}$wx_cv_func_broken_swprintf_decl" >&6
36257
36258 if test "$wx_cv_func_broken_swprintf_decl" = "yes"; then
36259 cat >>confdefs.h <<\_ACEOF
36260#define HAVE_BROKEN_SWPRINTF_DECL 1
36261_ACEOF
36262
36263 fi
36264 fi
36265
36266
36267
a848cd7e 36268
fbe47c7b
VS
36269
36270
36271
36272for ac_func in wputc wputchar putws fputws wprintf vswprintf
a848cd7e
SC
36273do
36274as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36275echo "$as_me:$LINENO: checking for $ac_func" >&5
36276echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36277if eval "test \"\${$as_ac_var+set}\" = set"; then
36278 echo $ECHO_N "(cached) $ECHO_C" >&6
36279else
36280 cat >conftest.$ac_ext <<_ACEOF
36281/* confdefs.h. */
36282_ACEOF
36283cat confdefs.h >>conftest.$ac_ext
36284cat >>conftest.$ac_ext <<_ACEOF
36285/* end confdefs.h. */
ac1cb8d3
VS
36286/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36287 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36288#define $ac_func innocuous_$ac_func
36289
a848cd7e
SC
36290/* System header to define __stub macros and hopefully few prototypes,
36291 which can conflict with char $ac_func (); below.
36292 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36293 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36294
a848cd7e
SC
36295#ifdef __STDC__
36296# include <limits.h>
36297#else
36298# include <assert.h>
36299#endif
ac1cb8d3
VS
36300
36301#undef $ac_func
36302
a848cd7e
SC
36303/* Override any gcc2 internal prototype to avoid an error. */
36304#ifdef __cplusplus
36305extern "C"
36306{
36307#endif
36308/* We use char because int might match the return type of a gcc2
36309 builtin and then its argument prototype would still apply. */
36310char $ac_func ();
36311/* The GNU C library defines this for functions which it implements
36312 to always fail with ENOSYS. Some functions are actually named
36313 something starting with __ and the normal name is an alias. */
36314#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36315choke me
36316#else
36317char (*f) () = $ac_func;
36318#endif
36319#ifdef __cplusplus
36320}
36321#endif
36322
36323int
36324main ()
36325{
36326return f != $ac_func;
36327 ;
36328 return 0;
36329}
36330_ACEOF
36331rm -f conftest.$ac_objext conftest$ac_exeext
36332if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36333 (eval $ac_link) 2>conftest.er1
a848cd7e 36334 ac_status=$?
ac1cb8d3
VS
36335 grep -v '^ *+' conftest.er1 >conftest.err
36336 rm -f conftest.er1
36337 cat conftest.err >&5
a848cd7e
SC
36338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36339 (exit $ac_status); } &&
bb9e79c0 36340 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36342 (eval $ac_try) 2>&5
36343 ac_status=$?
36344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36345 (exit $ac_status); }; } &&
36346 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36348 (eval $ac_try) 2>&5
36349 ac_status=$?
36350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36351 (exit $ac_status); }; }; then
36352 eval "$as_ac_var=yes"
36353else
36354 echo "$as_me: failed program was:" >&5
36355sed 's/^/| /' conftest.$ac_ext >&5
36356
36357eval "$as_ac_var=no"
36358fi
ac1cb8d3
VS
36359rm -f conftest.err conftest.$ac_objext \
36360 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36361fi
36362echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36363echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36364if test `eval echo '${'$as_ac_var'}'` = yes; then
36365 cat >>confdefs.h <<_ACEOF
36366#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36367_ACEOF
36368
36369fi
36370done
36371
36372
36373 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
36374echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
36375 cat >conftest.$ac_ext <<_ACEOF
36376/* confdefs.h. */
36377_ACEOF
36378cat confdefs.h >>conftest.$ac_ext
36379cat >>conftest.$ac_ext <<_ACEOF
36380/* end confdefs.h. */
36381#include <wchar.h>
36382int
36383main ()
36384{
36385&_vsnwprintf;
36386 ;
36387 return 0;
36388}
36389_ACEOF
36390rm -f conftest.$ac_objext
36391if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36392 (eval $ac_compile) 2>conftest.er1
a848cd7e 36393 ac_status=$?
ac1cb8d3
VS
36394 grep -v '^ *+' conftest.er1 >conftest.err
36395 rm -f conftest.er1
36396 cat conftest.err >&5
a848cd7e
SC
36397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36398 (exit $ac_status); } &&
bb9e79c0 36399 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36401 (eval $ac_try) 2>&5
36402 ac_status=$?
36403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36404 (exit $ac_status); }; } &&
36405 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36407 (eval $ac_try) 2>&5
36408 ac_status=$?
36409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36410 (exit $ac_status); }; }; then
36411 echo "$as_me:$LINENO: result: yes" >&5
36412echo "${ECHO_T}yes" >&6
36413 cat >>confdefs.h <<\_ACEOF
36414#define HAVE__VSNWPRINTF 1
36415_ACEOF
36416
36417else
36418 echo "$as_me: failed program was:" >&5
36419sed 's/^/| /' conftest.$ac_ext >&5
36420
36421echo "$as_me:$LINENO: result: no" >&5
36422echo "${ECHO_T}no" >&6
36423fi
ac1cb8d3 36424rm -f conftest.err conftest.$ac_objext conftest.$ac_ext;
a848cd7e
SC
36425fi
36426
6ebeb4c7
VZ
36427if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
36428
36429for ac_func in fnmatch
36430do
36431as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36432echo "$as_me:$LINENO: checking for $ac_func" >&5
36433echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36434if eval "test \"\${$as_ac_var+set}\" = set"; then
36435 echo $ECHO_N "(cached) $ECHO_C" >&6
36436else
36437 cat >conftest.$ac_ext <<_ACEOF
36438/* confdefs.h. */
36439_ACEOF
36440cat confdefs.h >>conftest.$ac_ext
36441cat >>conftest.$ac_ext <<_ACEOF
36442/* end confdefs.h. */
36443/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36444 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36445#define $ac_func innocuous_$ac_func
36446
36447/* System header to define __stub macros and hopefully few prototypes,
36448 which can conflict with char $ac_func (); below.
36449 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36450 <limits.h> exists even on freestanding compilers. */
36451
36452#ifdef __STDC__
36453# include <limits.h>
36454#else
36455# include <assert.h>
36456#endif
36457
36458#undef $ac_func
36459
36460/* Override any gcc2 internal prototype to avoid an error. */
36461#ifdef __cplusplus
36462extern "C"
36463{
36464#endif
36465/* We use char because int might match the return type of a gcc2
36466 builtin and then its argument prototype would still apply. */
36467char $ac_func ();
36468/* The GNU C library defines this for functions which it implements
36469 to always fail with ENOSYS. Some functions are actually named
36470 something starting with __ and the normal name is an alias. */
36471#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36472choke me
36473#else
36474char (*f) () = $ac_func;
36475#endif
36476#ifdef __cplusplus
36477}
36478#endif
36479
36480int
36481main ()
36482{
36483return f != $ac_func;
36484 ;
36485 return 0;
36486}
36487_ACEOF
36488rm -f conftest.$ac_objext conftest$ac_exeext
36489if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36490 (eval $ac_link) 2>conftest.er1
36491 ac_status=$?
36492 grep -v '^ *+' conftest.er1 >conftest.err
36493 rm -f conftest.er1
36494 cat conftest.err >&5
36495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36496 (exit $ac_status); } &&
bb9e79c0 36497 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6ebeb4c7
VZ
36498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36499 (eval $ac_try) 2>&5
36500 ac_status=$?
36501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36502 (exit $ac_status); }; } &&
36503 { ac_try='test -s conftest$ac_exeext'
36504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36505 (eval $ac_try) 2>&5
36506 ac_status=$?
36507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36508 (exit $ac_status); }; }; then
36509 eval "$as_ac_var=yes"
36510else
36511 echo "$as_me: failed program was:" >&5
36512sed 's/^/| /' conftest.$ac_ext >&5
36513
36514eval "$as_ac_var=no"
36515fi
36516rm -f conftest.err conftest.$ac_objext \
36517 conftest$ac_exeext conftest.$ac_ext
36518fi
36519echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36520echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36521if test `eval echo '${'$as_ac_var'}'` = yes; then
36522 cat >>confdefs.h <<_ACEOF
36523#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36524_ACEOF
36525
36526fi
36527done
36528
36529fi
36530
36531if test "$wxUSE_FILE" = "yes"; then
36532
36533for ac_func in fsync
36534do
36535as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36536echo "$as_me:$LINENO: checking for $ac_func" >&5
36537echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36538if eval "test \"\${$as_ac_var+set}\" = set"; then
36539 echo $ECHO_N "(cached) $ECHO_C" >&6
36540else
36541 cat >conftest.$ac_ext <<_ACEOF
36542/* confdefs.h. */
36543_ACEOF
36544cat confdefs.h >>conftest.$ac_ext
36545cat >>conftest.$ac_ext <<_ACEOF
36546/* end confdefs.h. */
36547/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36548 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36549#define $ac_func innocuous_$ac_func
36550
36551/* System header to define __stub macros and hopefully few prototypes,
36552 which can conflict with char $ac_func (); below.
36553 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36554 <limits.h> exists even on freestanding compilers. */
36555
36556#ifdef __STDC__
36557# include <limits.h>
36558#else
36559# include <assert.h>
36560#endif
36561
36562#undef $ac_func
36563
36564/* Override any gcc2 internal prototype to avoid an error. */
36565#ifdef __cplusplus
36566extern "C"
36567{
36568#endif
36569/* We use char because int might match the return type of a gcc2
36570 builtin and then its argument prototype would still apply. */
36571char $ac_func ();
36572/* The GNU C library defines this for functions which it implements
36573 to always fail with ENOSYS. Some functions are actually named
36574 something starting with __ and the normal name is an alias. */
36575#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36576choke me
36577#else
36578char (*f) () = $ac_func;
36579#endif
36580#ifdef __cplusplus
36581}
36582#endif
36583
36584int
36585main ()
36586{
36587return f != $ac_func;
36588 ;
36589 return 0;
36590}
36591_ACEOF
36592rm -f conftest.$ac_objext conftest$ac_exeext
36593if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36594 (eval $ac_link) 2>conftest.er1
36595 ac_status=$?
36596 grep -v '^ *+' conftest.er1 >conftest.err
36597 rm -f conftest.er1
36598 cat conftest.err >&5
36599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36600 (exit $ac_status); } &&
bb9e79c0 36601 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6ebeb4c7
VZ
36602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36603 (eval $ac_try) 2>&5
36604 ac_status=$?
36605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36606 (exit $ac_status); }; } &&
36607 { ac_try='test -s conftest$ac_exeext'
36608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36609 (eval $ac_try) 2>&5
36610 ac_status=$?
36611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36612 (exit $ac_status); }; }; then
36613 eval "$as_ac_var=yes"
36614else
36615 echo "$as_me: failed program was:" >&5
36616sed 's/^/| /' conftest.$ac_ext >&5
36617
36618eval "$as_ac_var=no"
36619fi
36620rm -f conftest.err conftest.$ac_objext \
36621 conftest$ac_exeext conftest.$ac_ext
36622fi
36623echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36624echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36625if test `eval echo '${'$as_ac_var'}'` = yes; then
36626 cat >>confdefs.h <<_ACEOF
36627#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36628_ACEOF
36629
36630fi
36631done
36632
36633fi
a848cd7e
SC
36634
36635
c2e9ada4
VZ
36636for ac_func in round
36637do
36638as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36639echo "$as_me:$LINENO: checking for $ac_func" >&5
36640echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36641if eval "test \"\${$as_ac_var+set}\" = set"; then
36642 echo $ECHO_N "(cached) $ECHO_C" >&6
36643else
36644 cat >conftest.$ac_ext <<_ACEOF
36645/* confdefs.h. */
36646_ACEOF
36647cat confdefs.h >>conftest.$ac_ext
36648cat >>conftest.$ac_ext <<_ACEOF
36649/* end confdefs.h. */
36650/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36651 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36652#define $ac_func innocuous_$ac_func
36653
36654/* System header to define __stub macros and hopefully few prototypes,
36655 which can conflict with char $ac_func (); below.
36656 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36657 <limits.h> exists even on freestanding compilers. */
36658
36659#ifdef __STDC__
36660# include <limits.h>
36661#else
36662# include <assert.h>
36663#endif
36664
36665#undef $ac_func
36666
36667/* Override any gcc2 internal prototype to avoid an error. */
36668#ifdef __cplusplus
36669extern "C"
36670{
36671#endif
36672/* We use char because int might match the return type of a gcc2
36673 builtin and then its argument prototype would still apply. */
36674char $ac_func ();
36675/* The GNU C library defines this for functions which it implements
36676 to always fail with ENOSYS. Some functions are actually named
36677 something starting with __ and the normal name is an alias. */
36678#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36679choke me
36680#else
36681char (*f) () = $ac_func;
36682#endif
36683#ifdef __cplusplus
36684}
36685#endif
36686
36687int
36688main ()
36689{
36690return f != $ac_func;
36691 ;
36692 return 0;
36693}
36694_ACEOF
36695rm -f conftest.$ac_objext conftest$ac_exeext
36696if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36697 (eval $ac_link) 2>conftest.er1
36698 ac_status=$?
36699 grep -v '^ *+' conftest.er1 >conftest.err
36700 rm -f conftest.er1
36701 cat conftest.err >&5
36702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36703 (exit $ac_status); } &&
bb9e79c0 36704 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
c2e9ada4
VZ
36705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36706 (eval $ac_try) 2>&5
36707 ac_status=$?
36708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36709 (exit $ac_status); }; } &&
36710 { ac_try='test -s conftest$ac_exeext'
36711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36712 (eval $ac_try) 2>&5
36713 ac_status=$?
36714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36715 (exit $ac_status); }; }; then
36716 eval "$as_ac_var=yes"
36717else
36718 echo "$as_me: failed program was:" >&5
36719sed 's/^/| /' conftest.$ac_ext >&5
36720
36721eval "$as_ac_var=no"
36722fi
36723rm -f conftest.err conftest.$ac_objext \
36724 conftest$ac_exeext conftest.$ac_ext
36725fi
36726echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36727echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36728if test `eval echo '${'$as_ac_var'}'` = yes; then
36729 cat >>confdefs.h <<_ACEOF
36730#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36731_ACEOF
36732
36733fi
36734done
36735
36736if test "$ac_cv_func_round" = yes; then
36737 echo "$as_me:$LINENO: checking whether round is declared" >&5
36738echo $ECHO_N "checking whether round is declared... $ECHO_C" >&6
36739if test "${ac_cv_have_decl_round+set}" = set; then
36740 echo $ECHO_N "(cached) $ECHO_C" >&6
36741else
36742 cat >conftest.$ac_ext <<_ACEOF
36743/* confdefs.h. */
36744_ACEOF
36745cat confdefs.h >>conftest.$ac_ext
36746cat >>conftest.$ac_ext <<_ACEOF
36747/* end confdefs.h. */
36748#include <math.h>
36749
36750int
36751main ()
36752{
36753#ifndef round
36754 char *p = (char *) round;
36755#endif
36756
36757 ;
36758 return 0;
36759}
36760_ACEOF
36761rm -f conftest.$ac_objext
36762if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36763 (eval $ac_compile) 2>conftest.er1
36764 ac_status=$?
36765 grep -v '^ *+' conftest.er1 >conftest.err
36766 rm -f conftest.er1
36767 cat conftest.err >&5
36768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36769 (exit $ac_status); } &&
bb9e79c0 36770 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
c2e9ada4
VZ
36771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36772 (eval $ac_try) 2>&5
36773 ac_status=$?
36774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36775 (exit $ac_status); }; } &&
36776 { ac_try='test -s conftest.$ac_objext'
36777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36778 (eval $ac_try) 2>&5
36779 ac_status=$?
36780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36781 (exit $ac_status); }; }; then
36782 ac_cv_have_decl_round=yes
36783else
36784 echo "$as_me: failed program was:" >&5
36785sed 's/^/| /' conftest.$ac_ext >&5
36786
36787ac_cv_have_decl_round=no
36788fi
36789rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36790fi
36791echo "$as_me:$LINENO: result: $ac_cv_have_decl_round" >&5
36792echo "${ECHO_T}$ac_cv_have_decl_round" >&6
36793if test $ac_cv_have_decl_round = yes; then
36794
36795cat >>confdefs.h <<_ACEOF
36796#define HAVE_DECL_ROUND 1
36797_ACEOF
36798
36799
36800else
36801 cat >>confdefs.h <<_ACEOF
36802#define HAVE_DECL_ROUND 0
36803_ACEOF
36804
36805
36806fi
36807
36808
36809fi
36810
36811
a848cd7e
SC
36812if test "$TOOLKIT" != "MSW"; then
36813
36814
a848cd7e
SC
36815
36816
36817
36818# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
36819if test "${with_libiconv_prefix+set}" = set; then
36820 withval="$with_libiconv_prefix"
36821
36822 for dir in `echo "$withval" | tr : ' '`; do
36823 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
36824 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
36825 done
36826
36827fi;
36828
36829 echo "$as_me:$LINENO: checking for iconv" >&5
36830echo $ECHO_N "checking for iconv... $ECHO_C" >&6
36831if test "${am_cv_func_iconv+set}" = set; then
36832 echo $ECHO_N "(cached) $ECHO_C" >&6
36833else
36834
36835 am_cv_func_iconv="no, consider installing GNU libiconv"
36836 am_cv_lib_iconv=no
36837 cat >conftest.$ac_ext <<_ACEOF
36838/* confdefs.h. */
36839_ACEOF
36840cat confdefs.h >>conftest.$ac_ext
36841cat >>conftest.$ac_ext <<_ACEOF
36842/* end confdefs.h. */
36843#include <stdlib.h>
36844#include <iconv.h>
36845int
36846main ()
36847{
36848iconv_t cd = iconv_open("","");
36849 iconv(cd,NULL,NULL,NULL,NULL);
36850 iconv_close(cd);
36851 ;
36852 return 0;
36853}
36854_ACEOF
36855rm -f conftest.$ac_objext conftest$ac_exeext
36856if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36857 (eval $ac_link) 2>conftest.er1
a848cd7e 36858 ac_status=$?
ac1cb8d3
VS
36859 grep -v '^ *+' conftest.er1 >conftest.err
36860 rm -f conftest.er1
36861 cat conftest.err >&5
a848cd7e
SC
36862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36863 (exit $ac_status); } &&
bb9e79c0 36864 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36866 (eval $ac_try) 2>&5
36867 ac_status=$?
36868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36869 (exit $ac_status); }; } &&
36870 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36872 (eval $ac_try) 2>&5
36873 ac_status=$?
36874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36875 (exit $ac_status); }; }; then
36876 am_cv_func_iconv=yes
36877else
36878 echo "$as_me: failed program was:" >&5
36879sed 's/^/| /' conftest.$ac_ext >&5
36880
36881fi
ac1cb8d3
VS
36882rm -f conftest.err conftest.$ac_objext \
36883 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36884 if test "$am_cv_func_iconv" != yes; then
36885 am_save_LIBS="$LIBS"
36886 LIBS="$LIBS -liconv"
36887 cat >conftest.$ac_ext <<_ACEOF
36888/* confdefs.h. */
36889_ACEOF
36890cat confdefs.h >>conftest.$ac_ext
36891cat >>conftest.$ac_ext <<_ACEOF
36892/* end confdefs.h. */
36893#include <stdlib.h>
36894#include <iconv.h>
36895int
36896main ()
36897{
36898iconv_t cd = iconv_open("","");
36899 iconv(cd,NULL,NULL,NULL,NULL);
36900 iconv_close(cd);
36901 ;
36902 return 0;
36903}
36904_ACEOF
36905rm -f conftest.$ac_objext conftest$ac_exeext
36906if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36907 (eval $ac_link) 2>conftest.er1
a848cd7e 36908 ac_status=$?
ac1cb8d3
VS
36909 grep -v '^ *+' conftest.er1 >conftest.err
36910 rm -f conftest.er1
36911 cat conftest.err >&5
a848cd7e
SC
36912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36913 (exit $ac_status); } &&
bb9e79c0 36914 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36916 (eval $ac_try) 2>&5
36917 ac_status=$?
36918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36919 (exit $ac_status); }; } &&
36920 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36922 (eval $ac_try) 2>&5
36923 ac_status=$?
36924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36925 (exit $ac_status); }; }; then
36926 am_cv_lib_iconv=yes
36927 am_cv_func_iconv=yes
36928else
36929 echo "$as_me: failed program was:" >&5
36930sed 's/^/| /' conftest.$ac_ext >&5
36931
36932fi
ac1cb8d3
VS
36933rm -f conftest.err conftest.$ac_objext \
36934 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36935 LIBS="$am_save_LIBS"
36936 fi
36937
36938fi
36939echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
36940echo "${ECHO_T}$am_cv_func_iconv" >&6
36941 if test "$am_cv_func_iconv" = yes; then
36942
36943cat >>confdefs.h <<\_ACEOF
36944#define HAVE_ICONV 1
36945_ACEOF
36946
36947 echo "$as_me:$LINENO: checking if iconv needs const" >&5
36948echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
36949if test "${wx_cv_func_iconv_const+set}" = set; then
36950 echo $ECHO_N "(cached) $ECHO_C" >&6
36951else
36952 cat >conftest.$ac_ext <<_ACEOF
36953/* confdefs.h. */
36954_ACEOF
36955cat confdefs.h >>conftest.$ac_ext
36956cat >>conftest.$ac_ext <<_ACEOF
36957/* end confdefs.h. */
36958
36959#include <stdlib.h>
36960#include <iconv.h>
36961extern
36962#ifdef __cplusplus
36963"C"
36964#endif
36965#if defined(__STDC__) || defined(__cplusplus)
36966size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
36967#else
36968size_t iconv();
36969#endif
36970
36971int
36972main ()
36973{
36974
36975 ;
36976 return 0;
36977}
36978_ACEOF
36979rm -f conftest.$ac_objext
36980if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36981 (eval $ac_compile) 2>conftest.er1
a848cd7e 36982 ac_status=$?
ac1cb8d3
VS
36983 grep -v '^ *+' conftest.er1 >conftest.err
36984 rm -f conftest.er1
36985 cat conftest.err >&5
a848cd7e
SC
36986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36987 (exit $ac_status); } &&
bb9e79c0 36988 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36990 (eval $ac_try) 2>&5
36991 ac_status=$?
36992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36993 (exit $ac_status); }; } &&
36994 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36996 (eval $ac_try) 2>&5
36997 ac_status=$?
36998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36999 (exit $ac_status); }; }; then
37000 wx_cv_func_iconv_const="no"
37001else
37002 echo "$as_me: failed program was:" >&5
37003sed 's/^/| /' conftest.$ac_ext >&5
37004
37005wx_cv_func_iconv_const="yes"
37006
37007fi
ac1cb8d3 37008rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37009
37010fi
37011echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
37012echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
37013
37014 iconv_const=
37015 if test "x$wx_cv_func_iconv_const" = "xyes"; then
37016 iconv_const="const"
37017 fi
37018
37019
37020cat >>confdefs.h <<_ACEOF
37021#define ICONV_CONST $iconv_const
37022_ACEOF
37023
37024 fi
37025 LIBICONV=
37026 if test "$am_cv_lib_iconv" = yes; then
37027 LIBICONV="-liconv"
37028 fi
37029
37030
37031LIBS="$LIBICONV $LIBS"
a848cd7e
SC
37032
37033if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
37034
37035for ac_func in sigaction
37036do
37037as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37038echo "$as_me:$LINENO: checking for $ac_func" >&5
37039echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37040if eval "test \"\${$as_ac_var+set}\" = set"; then
37041 echo $ECHO_N "(cached) $ECHO_C" >&6
37042else
37043 cat >conftest.$ac_ext <<_ACEOF
37044/* confdefs.h. */
37045_ACEOF
37046cat confdefs.h >>conftest.$ac_ext
37047cat >>conftest.$ac_ext <<_ACEOF
37048/* end confdefs.h. */
ac1cb8d3
VS
37049/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37050 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37051#define $ac_func innocuous_$ac_func
37052
a848cd7e
SC
37053/* System header to define __stub macros and hopefully few prototypes,
37054 which can conflict with char $ac_func (); below.
37055 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37056 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37057
a848cd7e
SC
37058#ifdef __STDC__
37059# include <limits.h>
37060#else
37061# include <assert.h>
37062#endif
ac1cb8d3
VS
37063
37064#undef $ac_func
37065
a848cd7e
SC
37066/* Override any gcc2 internal prototype to avoid an error. */
37067#ifdef __cplusplus
37068extern "C"
37069{
37070#endif
37071/* We use char because int might match the return type of a gcc2
37072 builtin and then its argument prototype would still apply. */
37073char $ac_func ();
37074/* The GNU C library defines this for functions which it implements
37075 to always fail with ENOSYS. Some functions are actually named
37076 something starting with __ and the normal name is an alias. */
37077#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37078choke me
37079#else
37080char (*f) () = $ac_func;
37081#endif
37082#ifdef __cplusplus
37083}
37084#endif
37085
37086int
37087main ()
37088{
37089return f != $ac_func;
37090 ;
37091 return 0;
37092}
37093_ACEOF
37094rm -f conftest.$ac_objext conftest$ac_exeext
37095if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37096 (eval $ac_link) 2>conftest.er1
a848cd7e 37097 ac_status=$?
ac1cb8d3
VS
37098 grep -v '^ *+' conftest.er1 >conftest.err
37099 rm -f conftest.er1
37100 cat conftest.err >&5
a848cd7e
SC
37101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37102 (exit $ac_status); } &&
bb9e79c0 37103 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37105 (eval $ac_try) 2>&5
37106 ac_status=$?
37107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37108 (exit $ac_status); }; } &&
37109 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37111 (eval $ac_try) 2>&5
37112 ac_status=$?
37113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37114 (exit $ac_status); }; }; then
37115 eval "$as_ac_var=yes"
37116else
37117 echo "$as_me: failed program was:" >&5
37118sed 's/^/| /' conftest.$ac_ext >&5
37119
37120eval "$as_ac_var=no"
37121fi
ac1cb8d3
VS
37122rm -f conftest.err conftest.$ac_objext \
37123 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37124fi
37125echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37126echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37127if test `eval echo '${'$as_ac_var'}'` = yes; then
37128 cat >>confdefs.h <<_ACEOF
37129#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37130_ACEOF
37131
37132fi
37133done
37134
37135
37136 if test "$ac_cv_func_sigaction" = "no"; then
37137 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
37138echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
37139 wxUSE_ON_FATAL_EXCEPTION=no
37140 fi
37141
37142 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
a848cd7e
SC
37143 echo "$as_me:$LINENO: checking for sa_handler type" >&5
37144echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
37145if test "${wx_cv_type_sa_handler+set}" = set; then
37146 echo $ECHO_N "(cached) $ECHO_C" >&6
37147else
37148
37149 cat >conftest.$ac_ext <<_ACEOF
37150/* confdefs.h. */
37151_ACEOF
37152cat confdefs.h >>conftest.$ac_ext
37153cat >>conftest.$ac_ext <<_ACEOF
37154/* end confdefs.h. */
37155#include <signal.h>
37156int
37157main ()
37158{
37159
37160 extern void testSigHandler(int);
37161
37162 struct sigaction sa;
37163 sa.sa_handler = testSigHandler;
37164
37165 ;
37166 return 0;
37167}
37168_ACEOF
37169rm -f conftest.$ac_objext
37170if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37171 (eval $ac_compile) 2>conftest.er1
a848cd7e 37172 ac_status=$?
ac1cb8d3
VS
37173 grep -v '^ *+' conftest.er1 >conftest.err
37174 rm -f conftest.er1
37175 cat conftest.err >&5
a848cd7e
SC
37176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37177 (exit $ac_status); } &&
bb9e79c0 37178 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37180 (eval $ac_try) 2>&5
37181 ac_status=$?
37182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37183 (exit $ac_status); }; } &&
37184 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37186 (eval $ac_try) 2>&5
37187 ac_status=$?
37188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37189 (exit $ac_status); }; }; then
37190
37191 wx_cv_type_sa_handler=int
37192
37193else
37194 echo "$as_me: failed program was:" >&5
37195sed 's/^/| /' conftest.$ac_ext >&5
37196
37197
37198 wx_cv_type_sa_handler=void
37199
37200fi
ac1cb8d3 37201rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37202
37203fi
37204echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
37205echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
37206
a848cd7e
SC
37207 cat >>confdefs.h <<_ACEOF
37208#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
37209_ACEOF
37210
37211 fi
37212fi
37213
eaff0f0d 37214if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then
eaff0f0d
VZ
37215 echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5
37216echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6
37217if test "${wx_cv_func_backtrace+set}" = set; then
37218 echo $ECHO_N "(cached) $ECHO_C" >&6
37219else
37220
37221 cat >conftest.$ac_ext <<_ACEOF
37222/* confdefs.h. */
37223_ACEOF
37224cat confdefs.h >>conftest.$ac_ext
37225cat >>conftest.$ac_ext <<_ACEOF
37226/* end confdefs.h. */
37227#include <execinfo.h>
37228int
37229main ()
37230{
37231
37232 void *trace[1];
37233 char **messages;
37234
37235 backtrace(trace, 1);
37236 messages = backtrace_symbols(trace, 1);
37237
37238 ;
37239 return 0;
37240}
37241_ACEOF
37242rm -f conftest.$ac_objext
37243if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37244 (eval $ac_compile) 2>conftest.er1
37245 ac_status=$?
37246 grep -v '^ *+' conftest.er1 >conftest.err
37247 rm -f conftest.er1
37248 cat conftest.err >&5
37249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37250 (exit $ac_status); } &&
bb9e79c0 37251 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
eaff0f0d
VZ
37252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37253 (eval $ac_try) 2>&5
37254 ac_status=$?
37255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37256 (exit $ac_status); }; } &&
37257 { ac_try='test -s conftest.$ac_objext'
37258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37259 (eval $ac_try) 2>&5
37260 ac_status=$?
37261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37262 (exit $ac_status); }; }; then
37263 wx_cv_func_backtrace=yes
37264else
37265 echo "$as_me: failed program was:" >&5
37266sed 's/^/| /' conftest.$ac_ext >&5
37267
37268wx_cv_func_backtrace=no
37269
37270fi
37271rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37272
37273
37274fi
37275echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5
37276echo "${ECHO_T}$wx_cv_func_backtrace" >&6
37277
37278
37279 if test "$wx_cv_func_backtrace" = "no"; then
37280 { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5
37281echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;}
37282 wxUSE_STACKWALKER=no
37283 else
37284 echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5
37285echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6
37286if test "${wx_cv_func_cxa_demangle+set}" = set; then
37287 echo $ECHO_N "(cached) $ECHO_C" >&6
37288else
37289
37290 cat >conftest.$ac_ext <<_ACEOF
37291/* confdefs.h. */
37292_ACEOF
37293cat confdefs.h >>conftest.$ac_ext
37294cat >>conftest.$ac_ext <<_ACEOF
37295/* end confdefs.h. */
37296#include <cxxabi.h>
37297int
37298main ()
37299{
37300
37301 int rc;
37302 __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc);
37303
37304 ;
37305 return 0;
37306}
37307_ACEOF
dfe0c803
JS
37308rm -f conftest.$ac_objext conftest$ac_exeext
37309if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37310 (eval $ac_link) 2>conftest.er1
eaff0f0d
VZ
37311 ac_status=$?
37312 grep -v '^ *+' conftest.er1 >conftest.err
37313 rm -f conftest.er1
37314 cat conftest.err >&5
37315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37316 (exit $ac_status); } &&
bb9e79c0 37317 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
eaff0f0d
VZ
37318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37319 (eval $ac_try) 2>&5
37320 ac_status=$?
37321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37322 (exit $ac_status); }; } &&
dfe0c803 37323 { ac_try='test -s conftest$ac_exeext'
eaff0f0d
VZ
37324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37325 (eval $ac_try) 2>&5
37326 ac_status=$?
37327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37328 (exit $ac_status); }; }; then
37329 wx_cv_func_cxa_demangle=yes
37330else
37331 echo "$as_me: failed program was:" >&5
37332sed 's/^/| /' conftest.$ac_ext >&5
37333
37334wx_cv_func_cxa_demangle=no
37335
37336fi
dfe0c803
JS
37337rm -f conftest.err conftest.$ac_objext \
37338 conftest$ac_exeext conftest.$ac_ext
eaff0f0d
VZ
37339
37340
37341fi
37342echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5
37343echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6
37344
37345 if test "$wx_cv_func_cxa_demangle" = "yes"; then
37346 cat >>confdefs.h <<\_ACEOF
37347#define HAVE_CXA_DEMANGLE 1
37348_ACEOF
37349
37350 fi
37351 fi
eaff0f0d
VZ
37352fi
37353
898beab1
DE
37354if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != "1" -a "$USE_UNIX" != "1"; then
37355 { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5
37356echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;}
37357 wxUSE_STACKWALKER=no
37358fi
37359
37360
a848cd7e
SC
37361
37362
37363for ac_func in mkstemp mktemp
37364do
37365as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37366echo "$as_me:$LINENO: checking for $ac_func" >&5
37367echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37368if eval "test \"\${$as_ac_var+set}\" = set"; then
37369 echo $ECHO_N "(cached) $ECHO_C" >&6
37370else
37371 cat >conftest.$ac_ext <<_ACEOF
37372/* confdefs.h. */
37373_ACEOF
37374cat confdefs.h >>conftest.$ac_ext
37375cat >>conftest.$ac_ext <<_ACEOF
37376/* end confdefs.h. */
ac1cb8d3
VS
37377/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37378 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37379#define $ac_func innocuous_$ac_func
37380
a848cd7e
SC
37381/* System header to define __stub macros and hopefully few prototypes,
37382 which can conflict with char $ac_func (); below.
37383 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37384 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37385
a848cd7e
SC
37386#ifdef __STDC__
37387# include <limits.h>
37388#else
37389# include <assert.h>
37390#endif
ac1cb8d3
VS
37391
37392#undef $ac_func
37393
a848cd7e
SC
37394/* Override any gcc2 internal prototype to avoid an error. */
37395#ifdef __cplusplus
37396extern "C"
37397{
37398#endif
37399/* We use char because int might match the return type of a gcc2
37400 builtin and then its argument prototype would still apply. */
37401char $ac_func ();
37402/* The GNU C library defines this for functions which it implements
37403 to always fail with ENOSYS. Some functions are actually named
37404 something starting with __ and the normal name is an alias. */
37405#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37406choke me
37407#else
37408char (*f) () = $ac_func;
37409#endif
37410#ifdef __cplusplus
37411}
37412#endif
37413
37414int
37415main ()
37416{
37417return f != $ac_func;
37418 ;
37419 return 0;
37420}
37421_ACEOF
37422rm -f conftest.$ac_objext conftest$ac_exeext
37423if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37424 (eval $ac_link) 2>conftest.er1
a848cd7e 37425 ac_status=$?
ac1cb8d3
VS
37426 grep -v '^ *+' conftest.er1 >conftest.err
37427 rm -f conftest.er1
37428 cat conftest.err >&5
a848cd7e
SC
37429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37430 (exit $ac_status); } &&
bb9e79c0 37431 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37433 (eval $ac_try) 2>&5
37434 ac_status=$?
37435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37436 (exit $ac_status); }; } &&
37437 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37439 (eval $ac_try) 2>&5
37440 ac_status=$?
37441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37442 (exit $ac_status); }; }; then
37443 eval "$as_ac_var=yes"
37444else
37445 echo "$as_me: failed program was:" >&5
37446sed 's/^/| /' conftest.$ac_ext >&5
37447
37448eval "$as_ac_var=no"
37449fi
ac1cb8d3
VS
37450rm -f conftest.err conftest.$ac_objext \
37451 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37452fi
37453echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37454echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37455if test `eval echo '${'$as_ac_var'}'` = yes; then
37456 cat >>confdefs.h <<_ACEOF
37457#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37458_ACEOF
37459 break
37460fi
37461done
37462
37463
37464echo "$as_me:$LINENO: checking for statfs" >&5
37465echo $ECHO_N "checking for statfs... $ECHO_C" >&6
37466if test "${wx_cv_func_statfs+set}" = set; then
37467 echo $ECHO_N "(cached) $ECHO_C" >&6
37468else
37469 cat >conftest.$ac_ext <<_ACEOF
37470/* confdefs.h. */
37471_ACEOF
37472cat confdefs.h >>conftest.$ac_ext
37473cat >>conftest.$ac_ext <<_ACEOF
37474/* end confdefs.h. */
37475
37476 #if defined(__BSD__)
84ae7ca4
VZ
37477 #include <sys/param.h>
37478 #include <sys/mount.h>
a848cd7e 37479 #else
84ae7ca4 37480 #include <sys/vfs.h>
a848cd7e
SC
37481 #endif
37482
37483int
37484main ()
37485{
37486
37487 long l;
37488 struct statfs fs;
37489 statfs("/", &fs);
37490 l = fs.f_bsize;
37491 l += fs.f_blocks;
37492 l += fs.f_bavail;
37493
37494 ;
37495 return 0;
37496}
37497_ACEOF
37498rm -f conftest.$ac_objext
37499if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37500 (eval $ac_compile) 2>conftest.er1
a848cd7e 37501 ac_status=$?
ac1cb8d3
VS
37502 grep -v '^ *+' conftest.er1 >conftest.err
37503 rm -f conftest.er1
37504 cat conftest.err >&5
a848cd7e
SC
37505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37506 (exit $ac_status); } &&
bb9e79c0 37507 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37509 (eval $ac_try) 2>&5
37510 ac_status=$?
37511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37512 (exit $ac_status); }; } &&
37513 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37515 (eval $ac_try) 2>&5
37516 ac_status=$?
37517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37518 (exit $ac_status); }; }; then
84ae7ca4 37519 wx_cv_func_statfs=yes
a848cd7e
SC
37520else
37521 echo "$as_me: failed program was:" >&5
37522sed 's/^/| /' conftest.$ac_ext >&5
37523
84ae7ca4 37524wx_cv_func_statfs=no
a848cd7e
SC
37525
37526fi
ac1cb8d3 37527rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37528
37529fi
37530echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
37531echo "${ECHO_T}$wx_cv_func_statfs" >&6
37532
37533if test "$wx_cv_func_statfs" = "yes"; then
5d7b7554 37534 echo "$as_me:$LINENO: checking for statfs declaration" >&5
84ae7ca4
VZ
37535echo $ECHO_N "checking for statfs declaration... $ECHO_C" >&6
37536if test "${wx_cv_func_statfs_decl+set}" = set; then
37537 echo $ECHO_N "(cached) $ECHO_C" >&6
37538else
0683aca6
VZ
37539 cat >conftest.$ac_ext <<_ACEOF
37540/* confdefs.h. */
37541_ACEOF
37542cat confdefs.h >>conftest.$ac_ext
37543cat >>conftest.$ac_ext <<_ACEOF
37544/* end confdefs.h. */
84ae7ca4 37545
0683aca6
VZ
37546 #if defined(__BSD__)
37547 #include <sys/param.h>
37548 #include <sys/mount.h>
37549 #else
37550 #include <sys/vfs.h>
37551 #endif
37552
37553int
37554main ()
37555{
37556
37557 struct statfs fs;
37558 statfs("", &fs);
37559
37560 ;
37561 return 0;
37562}
37563_ACEOF
37564rm -f conftest.$ac_objext
37565if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37566 (eval $ac_compile) 2>conftest.er1
37567 ac_status=$?
37568 grep -v '^ *+' conftest.er1 >conftest.err
37569 rm -f conftest.er1
37570 cat conftest.err >&5
37571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37572 (exit $ac_status); } &&
bb9e79c0 37573 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0683aca6
VZ
37574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37575 (eval $ac_try) 2>&5
37576 ac_status=$?
37577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37578 (exit $ac_status); }; } &&
37579 { ac_try='test -s conftest.$ac_objext'
37580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37581 (eval $ac_try) 2>&5
37582 ac_status=$?
37583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37584 (exit $ac_status); }; }; then
37585 wx_cv_func_statfs_decl=yes
37586else
37587 echo "$as_me: failed program was:" >&5
37588sed 's/^/| /' conftest.$ac_ext >&5
37589
37590wx_cv_func_statfs_decl=no
37591
37592fi
37593rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
84ae7ca4
VZ
37594
37595fi
37596echo "$as_me:$LINENO: result: $wx_cv_func_statfs_decl" >&5
37597echo "${ECHO_T}$wx_cv_func_statfs_decl" >&6
84ae7ca4
VZ
37598
37599 if test "$wx_cv_func_statfs_decl" = "yes"; then
37600 cat >>confdefs.h <<\_ACEOF
37601#define HAVE_STATFS_DECL 1
37602_ACEOF
37603
37604 fi
37605
a848cd7e
SC
37606 wx_cv_type_statvfs_t="struct statfs"
37607 cat >>confdefs.h <<\_ACEOF
37608#define HAVE_STATFS 1
37609_ACEOF
37610
37611else
37612 echo "$as_me:$LINENO: checking for statvfs" >&5
37613echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
37614if test "${wx_cv_func_statvfs+set}" = set; then
37615 echo $ECHO_N "(cached) $ECHO_C" >&6
37616else
37617 cat >conftest.$ac_ext <<_ACEOF
37618/* confdefs.h. */
37619_ACEOF
37620cat confdefs.h >>conftest.$ac_ext
37621cat >>conftest.$ac_ext <<_ACEOF
37622/* end confdefs.h. */
37623
37624 #include <stddef.h>
37625 #include <sys/statvfs.h>
37626
37627int
37628main ()
37629{
37630
37631 statvfs("/", NULL);
37632
37633 ;
37634 return 0;
37635}
37636_ACEOF
37637rm -f conftest.$ac_objext
37638if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37639 (eval $ac_compile) 2>conftest.er1
a848cd7e 37640 ac_status=$?
ac1cb8d3
VS
37641 grep -v '^ *+' conftest.er1 >conftest.err
37642 rm -f conftest.er1
37643 cat conftest.err >&5
a848cd7e
SC
37644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37645 (exit $ac_status); } &&
bb9e79c0 37646 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37648 (eval $ac_try) 2>&5
37649 ac_status=$?
37650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37651 (exit $ac_status); }; } &&
37652 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37654 (eval $ac_try) 2>&5
37655 ac_status=$?
37656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37657 (exit $ac_status); }; }; then
37658 wx_cv_func_statvfs=yes
37659else
37660 echo "$as_me: failed program was:" >&5
37661sed 's/^/| /' conftest.$ac_ext >&5
37662
37663wx_cv_func_statvfs=no
37664
37665fi
ac1cb8d3 37666rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37667
37668fi
37669echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
37670echo "${ECHO_T}$wx_cv_func_statvfs" >&6
37671
37672 if test "$wx_cv_func_statvfs" = "yes"; then
5d7b7554 37673 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
a848cd7e
SC
37674echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
37675if test "${wx_cv_type_statvfs_t+set}" = set; then
37676 echo $ECHO_N "(cached) $ECHO_C" >&6
37677else
37678 cat >conftest.$ac_ext <<_ACEOF
37679/* confdefs.h. */
37680_ACEOF
37681cat confdefs.h >>conftest.$ac_ext
37682cat >>conftest.$ac_ext <<_ACEOF
37683/* end confdefs.h. */
37684
37685 #include <sys/statvfs.h>
37686
37687int
37688main ()
37689{
37690
37691 long l;
37692 statvfs_t fs;
37693 statvfs("/", &fs);
37694 l = fs.f_bsize;
37695 l += fs.f_blocks;
37696 l += fs.f_bavail;
37697
37698 ;
37699 return 0;
37700}
37701_ACEOF
37702rm -f conftest.$ac_objext
37703if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37704 (eval $ac_compile) 2>conftest.er1
a848cd7e 37705 ac_status=$?
ac1cb8d3
VS
37706 grep -v '^ *+' conftest.er1 >conftest.err
37707 rm -f conftest.er1
37708 cat conftest.err >&5
a848cd7e
SC
37709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37710 (exit $ac_status); } &&
bb9e79c0 37711 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37713 (eval $ac_try) 2>&5
37714 ac_status=$?
37715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37716 (exit $ac_status); }; } &&
37717 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37719 (eval $ac_try) 2>&5
37720 ac_status=$?
37721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37722 (exit $ac_status); }; }; then
37723 wx_cv_type_statvfs_t=statvfs_t
37724else
37725 echo "$as_me: failed program was:" >&5
37726sed 's/^/| /' conftest.$ac_ext >&5
37727
37728
37729 cat >conftest.$ac_ext <<_ACEOF
37730/* confdefs.h. */
37731_ACEOF
37732cat confdefs.h >>conftest.$ac_ext
37733cat >>conftest.$ac_ext <<_ACEOF
37734/* end confdefs.h. */
37735
37736 #include <sys/statvfs.h>
37737
37738int
37739main ()
37740{
37741
37742 long l;
37743 struct statvfs fs;
37744 statvfs("/", &fs);
37745 l = fs.f_bsize;
37746 l += fs.f_blocks;
37747 l += fs.f_bavail;
37748
37749 ;
37750 return 0;
37751}
37752_ACEOF
37753rm -f conftest.$ac_objext
37754if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37755 (eval $ac_compile) 2>conftest.er1
a848cd7e 37756 ac_status=$?
ac1cb8d3
VS
37757 grep -v '^ *+' conftest.er1 >conftest.err
37758 rm -f conftest.er1
37759 cat conftest.err >&5
a848cd7e
SC
37760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37761 (exit $ac_status); } &&
bb9e79c0 37762 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37764 (eval $ac_try) 2>&5
37765 ac_status=$?
37766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37767 (exit $ac_status); }; } &&
37768 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37770 (eval $ac_try) 2>&5
37771 ac_status=$?
37772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37773 (exit $ac_status); }; }; then
37774 wx_cv_type_statvfs_t="struct statvfs"
37775else
37776 echo "$as_me: failed program was:" >&5
37777sed 's/^/| /' conftest.$ac_ext >&5
37778
37779wx_cv_type_statvfs_t="unknown"
37780
37781fi
ac1cb8d3 37782rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37783
37784
37785fi
ac1cb8d3 37786rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37787
37788fi
37789echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
37790echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
37791
a848cd7e
SC
37792 if test "$wx_cv_type_statvfs_t" != "unknown"; then
37793 cat >>confdefs.h <<\_ACEOF
37794#define HAVE_STATVFS 1
37795_ACEOF
37796
37797 fi
37798 else
37799 wx_cv_type_statvfs_t="unknown"
37800 fi
37801fi
37802
37803if test "$wx_cv_type_statvfs_t" != "unknown"; then
37804 cat >>confdefs.h <<_ACEOF
37805#define WX_STATFS_T $wx_cv_type_statvfs_t
37806_ACEOF
37807
37808else
37809 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
37810echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
37811fi
37812
37813if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
37814
37815
37816for ac_func in fcntl flock
37817do
37818as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37819echo "$as_me:$LINENO: checking for $ac_func" >&5
37820echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37821if eval "test \"\${$as_ac_var+set}\" = set"; then
37822 echo $ECHO_N "(cached) $ECHO_C" >&6
37823else
37824 cat >conftest.$ac_ext <<_ACEOF
37825/* confdefs.h. */
37826_ACEOF
37827cat confdefs.h >>conftest.$ac_ext
37828cat >>conftest.$ac_ext <<_ACEOF
37829/* end confdefs.h. */
ac1cb8d3
VS
37830/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37831 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37832#define $ac_func innocuous_$ac_func
37833
a848cd7e
SC
37834/* System header to define __stub macros and hopefully few prototypes,
37835 which can conflict with char $ac_func (); below.
37836 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37837 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37838
a848cd7e
SC
37839#ifdef __STDC__
37840# include <limits.h>
37841#else
37842# include <assert.h>
37843#endif
ac1cb8d3
VS
37844
37845#undef $ac_func
37846
a848cd7e
SC
37847/* Override any gcc2 internal prototype to avoid an error. */
37848#ifdef __cplusplus
37849extern "C"
37850{
37851#endif
37852/* We use char because int might match the return type of a gcc2
37853 builtin and then its argument prototype would still apply. */
37854char $ac_func ();
37855/* The GNU C library defines this for functions which it implements
37856 to always fail with ENOSYS. Some functions are actually named
37857 something starting with __ and the normal name is an alias. */
37858#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37859choke me
37860#else
37861char (*f) () = $ac_func;
37862#endif
37863#ifdef __cplusplus
37864}
37865#endif
37866
37867int
37868main ()
37869{
37870return f != $ac_func;
37871 ;
37872 return 0;
37873}
37874_ACEOF
37875rm -f conftest.$ac_objext conftest$ac_exeext
37876if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37877 (eval $ac_link) 2>conftest.er1
a848cd7e 37878 ac_status=$?
ac1cb8d3
VS
37879 grep -v '^ *+' conftest.er1 >conftest.err
37880 rm -f conftest.er1
37881 cat conftest.err >&5
a848cd7e
SC
37882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37883 (exit $ac_status); } &&
bb9e79c0 37884 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37886 (eval $ac_try) 2>&5
37887 ac_status=$?
37888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37889 (exit $ac_status); }; } &&
37890 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37892 (eval $ac_try) 2>&5
37893 ac_status=$?
37894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37895 (exit $ac_status); }; }; then
37896 eval "$as_ac_var=yes"
37897else
37898 echo "$as_me: failed program was:" >&5
37899sed 's/^/| /' conftest.$ac_ext >&5
37900
37901eval "$as_ac_var=no"
37902fi
ac1cb8d3
VS
37903rm -f conftest.err conftest.$ac_objext \
37904 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37905fi
37906echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37907echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37908if test `eval echo '${'$as_ac_var'}'` = yes; then
37909 cat >>confdefs.h <<_ACEOF
37910#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37911_ACEOF
37912 break
37913fi
37914done
37915
37916
37917 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
37918 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
37919echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
37920 wxUSE_SNGLINST_CHECKER=no
37921 fi
37922fi
37923
37924
37925for ac_func in timegm
37926do
37927as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37928echo "$as_me:$LINENO: checking for $ac_func" >&5
37929echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37930if eval "test \"\${$as_ac_var+set}\" = set"; then
37931 echo $ECHO_N "(cached) $ECHO_C" >&6
37932else
37933 cat >conftest.$ac_ext <<_ACEOF
37934/* confdefs.h. */
37935_ACEOF
37936cat confdefs.h >>conftest.$ac_ext
37937cat >>conftest.$ac_ext <<_ACEOF
37938/* end confdefs.h. */
ac1cb8d3
VS
37939/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37940 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37941#define $ac_func innocuous_$ac_func
37942
a848cd7e
SC
37943/* System header to define __stub macros and hopefully few prototypes,
37944 which can conflict with char $ac_func (); below.
37945 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37946 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37947
a848cd7e
SC
37948#ifdef __STDC__
37949# include <limits.h>
37950#else
37951# include <assert.h>
37952#endif
ac1cb8d3
VS
37953
37954#undef $ac_func
37955
a848cd7e
SC
37956/* Override any gcc2 internal prototype to avoid an error. */
37957#ifdef __cplusplus
37958extern "C"
37959{
37960#endif
37961/* We use char because int might match the return type of a gcc2
37962 builtin and then its argument prototype would still apply. */
37963char $ac_func ();
37964/* The GNU C library defines this for functions which it implements
37965 to always fail with ENOSYS. Some functions are actually named
37966 something starting with __ and the normal name is an alias. */
37967#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37968choke me
37969#else
37970char (*f) () = $ac_func;
37971#endif
37972#ifdef __cplusplus
37973}
37974#endif
37975
37976int
37977main ()
37978{
37979return f != $ac_func;
37980 ;
37981 return 0;
37982}
37983_ACEOF
37984rm -f conftest.$ac_objext conftest$ac_exeext
37985if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37986 (eval $ac_link) 2>conftest.er1
a848cd7e 37987 ac_status=$?
ac1cb8d3
VS
37988 grep -v '^ *+' conftest.er1 >conftest.err
37989 rm -f conftest.er1
37990 cat conftest.err >&5
a848cd7e
SC
37991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37992 (exit $ac_status); } &&
bb9e79c0 37993 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37995 (eval $ac_try) 2>&5
37996 ac_status=$?
37997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37998 (exit $ac_status); }; } &&
37999 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38001 (eval $ac_try) 2>&5
38002 ac_status=$?
38003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38004 (exit $ac_status); }; }; then
38005 eval "$as_ac_var=yes"
38006else
38007 echo "$as_me: failed program was:" >&5
38008sed 's/^/| /' conftest.$ac_ext >&5
38009
38010eval "$as_ac_var=no"
38011fi
ac1cb8d3
VS
38012rm -f conftest.err conftest.$ac_objext \
38013 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38014fi
38015echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38016echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38017if test `eval echo '${'$as_ac_var'}'` = yes; then
38018 cat >>confdefs.h <<_ACEOF
38019#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38020_ACEOF
38021
38022fi
38023done
38024
38025
38026
38027
38028for ac_func in putenv setenv
38029do
38030as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38031echo "$as_me:$LINENO: checking for $ac_func" >&5
38032echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38033if eval "test \"\${$as_ac_var+set}\" = set"; then
38034 echo $ECHO_N "(cached) $ECHO_C" >&6
38035else
38036 cat >conftest.$ac_ext <<_ACEOF
38037/* confdefs.h. */
38038_ACEOF
38039cat confdefs.h >>conftest.$ac_ext
38040cat >>conftest.$ac_ext <<_ACEOF
38041/* end confdefs.h. */
ac1cb8d3
VS
38042/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38043 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38044#define $ac_func innocuous_$ac_func
38045
a848cd7e
SC
38046/* System header to define __stub macros and hopefully few prototypes,
38047 which can conflict with char $ac_func (); below.
38048 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38049 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38050
a848cd7e
SC
38051#ifdef __STDC__
38052# include <limits.h>
38053#else
38054# include <assert.h>
38055#endif
ac1cb8d3
VS
38056
38057#undef $ac_func
38058
a848cd7e
SC
38059/* Override any gcc2 internal prototype to avoid an error. */
38060#ifdef __cplusplus
38061extern "C"
38062{
38063#endif
38064/* We use char because int might match the return type of a gcc2
38065 builtin and then its argument prototype would still apply. */
38066char $ac_func ();
38067/* The GNU C library defines this for functions which it implements
38068 to always fail with ENOSYS. Some functions are actually named
38069 something starting with __ and the normal name is an alias. */
38070#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38071choke me
38072#else
38073char (*f) () = $ac_func;
38074#endif
38075#ifdef __cplusplus
38076}
38077#endif
38078
38079int
38080main ()
38081{
38082return f != $ac_func;
38083 ;
38084 return 0;
38085}
38086_ACEOF
38087rm -f conftest.$ac_objext conftest$ac_exeext
38088if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38089 (eval $ac_link) 2>conftest.er1
a848cd7e 38090 ac_status=$?
ac1cb8d3
VS
38091 grep -v '^ *+' conftest.er1 >conftest.err
38092 rm -f conftest.er1
38093 cat conftest.err >&5
a848cd7e
SC
38094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38095 (exit $ac_status); } &&
bb9e79c0 38096 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38098 (eval $ac_try) 2>&5
38099 ac_status=$?
38100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38101 (exit $ac_status); }; } &&
38102 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38104 (eval $ac_try) 2>&5
38105 ac_status=$?
38106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38107 (exit $ac_status); }; }; then
38108 eval "$as_ac_var=yes"
38109else
38110 echo "$as_me: failed program was:" >&5
38111sed 's/^/| /' conftest.$ac_ext >&5
38112
38113eval "$as_ac_var=no"
38114fi
ac1cb8d3
VS
38115rm -f conftest.err conftest.$ac_objext \
38116 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38117fi
38118echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38119echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38120if test `eval echo '${'$as_ac_var'}'` = yes; then
38121 cat >>confdefs.h <<_ACEOF
38122#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38123_ACEOF
38124 break
38125fi
38126done
38127
38128
38129HAVE_SOME_SLEEP_FUNC=0
38130if test "$USE_BEOS" = 1; then
38131 cat >>confdefs.h <<\_ACEOF
38132#define HAVE_SLEEP 1
38133_ACEOF
38134
38135 HAVE_SOME_SLEEP_FUNC=1
38136fi
38137
38138if test "$USE_DARWIN" = 1; then
38139 cat >>confdefs.h <<\_ACEOF
38140#define HAVE_USLEEP 1
38141_ACEOF
38142
38143 HAVE_SOME_SLEEP_FUNC=1
38144fi
38145
38146if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
38147 POSIX4_LINK=
38148
38149for ac_func in nanosleep
38150do
38151as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38152echo "$as_me:$LINENO: checking for $ac_func" >&5
38153echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38154if eval "test \"\${$as_ac_var+set}\" = set"; then
38155 echo $ECHO_N "(cached) $ECHO_C" >&6
38156else
38157 cat >conftest.$ac_ext <<_ACEOF
38158/* confdefs.h. */
38159_ACEOF
38160cat confdefs.h >>conftest.$ac_ext
38161cat >>conftest.$ac_ext <<_ACEOF
38162/* end confdefs.h. */
ac1cb8d3
VS
38163/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38164 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38165#define $ac_func innocuous_$ac_func
38166
a848cd7e
SC
38167/* System header to define __stub macros and hopefully few prototypes,
38168 which can conflict with char $ac_func (); below.
38169 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38170 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38171
a848cd7e
SC
38172#ifdef __STDC__
38173# include <limits.h>
38174#else
38175# include <assert.h>
38176#endif
ac1cb8d3
VS
38177
38178#undef $ac_func
38179
a848cd7e
SC
38180/* Override any gcc2 internal prototype to avoid an error. */
38181#ifdef __cplusplus
38182extern "C"
38183{
38184#endif
38185/* We use char because int might match the return type of a gcc2
38186 builtin and then its argument prototype would still apply. */
38187char $ac_func ();
38188/* The GNU C library defines this for functions which it implements
38189 to always fail with ENOSYS. Some functions are actually named
38190 something starting with __ and the normal name is an alias. */
38191#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38192choke me
38193#else
38194char (*f) () = $ac_func;
38195#endif
38196#ifdef __cplusplus
38197}
38198#endif
38199
38200int
38201main ()
38202{
38203return f != $ac_func;
38204 ;
38205 return 0;
38206}
38207_ACEOF
38208rm -f conftest.$ac_objext conftest$ac_exeext
38209if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38210 (eval $ac_link) 2>conftest.er1
a848cd7e 38211 ac_status=$?
ac1cb8d3
VS
38212 grep -v '^ *+' conftest.er1 >conftest.err
38213 rm -f conftest.er1
38214 cat conftest.err >&5
a848cd7e
SC
38215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38216 (exit $ac_status); } &&
bb9e79c0 38217 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38219 (eval $ac_try) 2>&5
38220 ac_status=$?
38221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38222 (exit $ac_status); }; } &&
38223 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38225 (eval $ac_try) 2>&5
38226 ac_status=$?
38227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38228 (exit $ac_status); }; }; then
38229 eval "$as_ac_var=yes"
38230else
38231 echo "$as_me: failed program was:" >&5
38232sed 's/^/| /' conftest.$ac_ext >&5
38233
38234eval "$as_ac_var=no"
38235fi
ac1cb8d3
VS
38236rm -f conftest.err conftest.$ac_objext \
38237 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38238fi
38239echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38240echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38241if test `eval echo '${'$as_ac_var'}'` = yes; then
38242 cat >>confdefs.h <<_ACEOF
38243#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38244_ACEOF
38245 cat >>confdefs.h <<\_ACEOF
38246#define HAVE_NANOSLEEP 1
38247_ACEOF
38248
38249else
38250
38251 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
38252echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
38253if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
38254 echo $ECHO_N "(cached) $ECHO_C" >&6
38255else
38256 ac_check_lib_save_LIBS=$LIBS
38257LIBS="-lposix4 $LIBS"
38258cat >conftest.$ac_ext <<_ACEOF
38259/* confdefs.h. */
38260_ACEOF
38261cat confdefs.h >>conftest.$ac_ext
38262cat >>conftest.$ac_ext <<_ACEOF
38263/* end confdefs.h. */
38264
38265/* Override any gcc2 internal prototype to avoid an error. */
38266#ifdef __cplusplus
38267extern "C"
38268#endif
38269/* We use char because int might match the return type of a gcc2
38270 builtin and then its argument prototype would still apply. */
38271char nanosleep ();
38272int
38273main ()
38274{
38275nanosleep ();
38276 ;
38277 return 0;
38278}
38279_ACEOF
38280rm -f conftest.$ac_objext conftest$ac_exeext
38281if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38282 (eval $ac_link) 2>conftest.er1
a848cd7e 38283 ac_status=$?
ac1cb8d3
VS
38284 grep -v '^ *+' conftest.er1 >conftest.err
38285 rm -f conftest.er1
38286 cat conftest.err >&5
a848cd7e
SC
38287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38288 (exit $ac_status); } &&
bb9e79c0 38289 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38291 (eval $ac_try) 2>&5
38292 ac_status=$?
38293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38294 (exit $ac_status); }; } &&
38295 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38297 (eval $ac_try) 2>&5
38298 ac_status=$?
38299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38300 (exit $ac_status); }; }; then
38301 ac_cv_lib_posix4_nanosleep=yes
38302else
38303 echo "$as_me: failed program was:" >&5
38304sed 's/^/| /' conftest.$ac_ext >&5
38305
38306ac_cv_lib_posix4_nanosleep=no
38307fi
ac1cb8d3
VS
38308rm -f conftest.err conftest.$ac_objext \
38309 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38310LIBS=$ac_check_lib_save_LIBS
38311fi
38312echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
38313echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
38314if test $ac_cv_lib_posix4_nanosleep = yes; then
38315
38316 cat >>confdefs.h <<\_ACEOF
38317#define HAVE_NANOSLEEP 1
38318_ACEOF
38319
38320 POSIX4_LINK=" -lposix4"
38321
38322else
38323
38324
38325for ac_func in usleep
38326do
38327as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38328echo "$as_me:$LINENO: checking for $ac_func" >&5
38329echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38330if eval "test \"\${$as_ac_var+set}\" = set"; then
38331 echo $ECHO_N "(cached) $ECHO_C" >&6
38332else
38333 cat >conftest.$ac_ext <<_ACEOF
38334/* confdefs.h. */
38335_ACEOF
38336cat confdefs.h >>conftest.$ac_ext
38337cat >>conftest.$ac_ext <<_ACEOF
38338/* end confdefs.h. */
ac1cb8d3
VS
38339/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38340 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38341#define $ac_func innocuous_$ac_func
38342
a848cd7e
SC
38343/* System header to define __stub macros and hopefully few prototypes,
38344 which can conflict with char $ac_func (); below.
38345 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38346 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38347
a848cd7e
SC
38348#ifdef __STDC__
38349# include <limits.h>
38350#else
38351# include <assert.h>
38352#endif
ac1cb8d3
VS
38353
38354#undef $ac_func
38355
a848cd7e
SC
38356/* Override any gcc2 internal prototype to avoid an error. */
38357#ifdef __cplusplus
38358extern "C"
38359{
38360#endif
38361/* We use char because int might match the return type of a gcc2
38362 builtin and then its argument prototype would still apply. */
38363char $ac_func ();
38364/* The GNU C library defines this for functions which it implements
38365 to always fail with ENOSYS. Some functions are actually named
38366 something starting with __ and the normal name is an alias. */
38367#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38368choke me
38369#else
38370char (*f) () = $ac_func;
38371#endif
38372#ifdef __cplusplus
38373}
38374#endif
38375
38376int
38377main ()
38378{
38379return f != $ac_func;
38380 ;
38381 return 0;
38382}
38383_ACEOF
38384rm -f conftest.$ac_objext conftest$ac_exeext
38385if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38386 (eval $ac_link) 2>conftest.er1
a848cd7e 38387 ac_status=$?
ac1cb8d3
VS
38388 grep -v '^ *+' conftest.er1 >conftest.err
38389 rm -f conftest.er1
38390 cat conftest.err >&5
a848cd7e
SC
38391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38392 (exit $ac_status); } &&
bb9e79c0 38393 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38395 (eval $ac_try) 2>&5
38396 ac_status=$?
38397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38398 (exit $ac_status); }; } &&
38399 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38401 (eval $ac_try) 2>&5
38402 ac_status=$?
38403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38404 (exit $ac_status); }; }; then
38405 eval "$as_ac_var=yes"
38406else
38407 echo "$as_me: failed program was:" >&5
38408sed 's/^/| /' conftest.$ac_ext >&5
38409
38410eval "$as_ac_var=no"
38411fi
ac1cb8d3
VS
38412rm -f conftest.err conftest.$ac_objext \
38413 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38414fi
38415echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38416echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38417if test `eval echo '${'$as_ac_var'}'` = yes; then
38418 cat >>confdefs.h <<_ACEOF
38419#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38420_ACEOF
38421 cat >>confdefs.h <<\_ACEOF
38422#define HAVE_USLEEP 1
38423_ACEOF
38424
38425else
38426 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
38427echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
38428
38429fi
38430done
38431
38432
38433
38434fi
38435
38436
38437
38438fi
38439done
38440
38441fi
38442
38443
38444
38445for ac_func in uname gethostname
38446do
38447as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38448echo "$as_me:$LINENO: checking for $ac_func" >&5
38449echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38450if eval "test \"\${$as_ac_var+set}\" = set"; then
38451 echo $ECHO_N "(cached) $ECHO_C" >&6
38452else
38453 cat >conftest.$ac_ext <<_ACEOF
38454/* confdefs.h. */
38455_ACEOF
38456cat confdefs.h >>conftest.$ac_ext
38457cat >>conftest.$ac_ext <<_ACEOF
38458/* end confdefs.h. */
ac1cb8d3
VS
38459/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38460 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38461#define $ac_func innocuous_$ac_func
38462
a848cd7e
SC
38463/* System header to define __stub macros and hopefully few prototypes,
38464 which can conflict with char $ac_func (); below.
38465 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38466 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38467
a848cd7e
SC
38468#ifdef __STDC__
38469# include <limits.h>
38470#else
38471# include <assert.h>
38472#endif
ac1cb8d3
VS
38473
38474#undef $ac_func
38475
a848cd7e
SC
38476/* Override any gcc2 internal prototype to avoid an error. */
38477#ifdef __cplusplus
38478extern "C"
38479{
38480#endif
38481/* We use char because int might match the return type of a gcc2
38482 builtin and then its argument prototype would still apply. */
38483char $ac_func ();
38484/* The GNU C library defines this for functions which it implements
38485 to always fail with ENOSYS. Some functions are actually named
38486 something starting with __ and the normal name is an alias. */
38487#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38488choke me
38489#else
38490char (*f) () = $ac_func;
38491#endif
38492#ifdef __cplusplus
38493}
38494#endif
38495
38496int
38497main ()
38498{
38499return f != $ac_func;
38500 ;
38501 return 0;
38502}
38503_ACEOF
38504rm -f conftest.$ac_objext conftest$ac_exeext
38505if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38506 (eval $ac_link) 2>conftest.er1
a848cd7e 38507 ac_status=$?
ac1cb8d3
VS
38508 grep -v '^ *+' conftest.er1 >conftest.err
38509 rm -f conftest.er1
38510 cat conftest.err >&5
a848cd7e
SC
38511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38512 (exit $ac_status); } &&
bb9e79c0 38513 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38515 (eval $ac_try) 2>&5
38516 ac_status=$?
38517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38518 (exit $ac_status); }; } &&
38519 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38521 (eval $ac_try) 2>&5
38522 ac_status=$?
38523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38524 (exit $ac_status); }; }; then
38525 eval "$as_ac_var=yes"
38526else
38527 echo "$as_me: failed program was:" >&5
38528sed 's/^/| /' conftest.$ac_ext >&5
38529
38530eval "$as_ac_var=no"
38531fi
ac1cb8d3
VS
38532rm -f conftest.err conftest.$ac_objext \
38533 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38534fi
38535echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38536echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38537if test `eval echo '${'$as_ac_var'}'` = yes; then
38538 cat >>confdefs.h <<_ACEOF
38539#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38540_ACEOF
38541 break
38542fi
38543done
38544
38545
56632e81
MW
38546
38547 for wx_func in strtok_r
38548 do
38549 echo "$as_me:$LINENO: checking for $wx_func" >&5
38550echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6
38551if eval "test \"\${wx_cv_func_$wx_func+set}\" = set"; then
a848cd7e
SC
38552 echo $ECHO_N "(cached) $ECHO_C" >&6
38553else
56632e81
MW
38554
38555 cat >conftest.$ac_ext <<_ACEOF
38556
38557 /* confdefs.h. */
a848cd7e
SC
38558_ACEOF
38559cat confdefs.h >>conftest.$ac_ext
38560cat >>conftest.$ac_ext <<_ACEOF
38561/* end confdefs.h. */
56632e81
MW
38562
38563 #define _REENTRANT
38564 $ac_includes_default
38565
a848cd7e
SC
38566int
38567main ()
38568{
56632e81
MW
38569
38570 #ifndef $wx_func
38571 &$wx_func;
38572 #endif
38573
5acfd58d 38574
a848cd7e
SC
38575 ;
38576 return 0;
38577}
56632e81 38578
a848cd7e 38579_ACEOF
56632e81
MW
38580rm -f conftest.$ac_objext conftest$ac_exeext
38581if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38582 (eval $ac_link) 2>conftest.er1
a848cd7e 38583 ac_status=$?
ac1cb8d3
VS
38584 grep -v '^ *+' conftest.er1 >conftest.err
38585 rm -f conftest.er1
38586 cat conftest.err >&5
a848cd7e
SC
38587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38588 (exit $ac_status); } &&
bb9e79c0 38589 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38591 (eval $ac_try) 2>&5
38592 ac_status=$?
38593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38594 (exit $ac_status); }; } &&
56632e81 38595 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38597 (eval $ac_try) 2>&5
38598 ac_status=$?
38599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38600 (exit $ac_status); }; }; then
56632e81 38601 eval wx_cv_func_$wx_func=yes
a848cd7e
SC
38602else
38603 echo "$as_me: failed program was:" >&5
38604sed 's/^/| /' conftest.$ac_ext >&5
38605
56632e81 38606eval wx_cv_func_$wx_func=no
a848cd7e 38607fi
56632e81
MW
38608rm -f conftest.err conftest.$ac_objext \
38609 conftest$ac_exeext conftest.$ac_ext
a848cd7e 38610
56632e81
MW
38611fi
38612echo "$as_me:$LINENO: result: `eval echo '${'wx_cv_func_$wx_func'}'`" >&5
38613echo "${ECHO_T}`eval echo '${'wx_cv_func_$wx_func'}'`" >&6
a848cd7e 38614
56632e81
MW
38615 if eval test \$wx_cv_func_$wx_func = yes
38616 then
38617 cat >>confdefs.h <<_ACEOF
38618#define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
82a2636b
MW
38619_ACEOF
38620
38621
56632e81
MW
38622 else
38623 :
5acfd58d 38624
56632e81
MW
38625 fi
38626 done
5acfd58d 38627
a848cd7e 38628
a848cd7e
SC
38629INET_LINK=
38630
38631for ac_func in inet_addr
38632do
38633as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38634echo "$as_me:$LINENO: checking for $ac_func" >&5
38635echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38636if eval "test \"\${$as_ac_var+set}\" = set"; then
38637 echo $ECHO_N "(cached) $ECHO_C" >&6
38638else
38639 cat >conftest.$ac_ext <<_ACEOF
38640/* confdefs.h. */
38641_ACEOF
38642cat confdefs.h >>conftest.$ac_ext
38643cat >>conftest.$ac_ext <<_ACEOF
38644/* end confdefs.h. */
ac1cb8d3
VS
38645/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38646 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38647#define $ac_func innocuous_$ac_func
38648
a848cd7e
SC
38649/* System header to define __stub macros and hopefully few prototypes,
38650 which can conflict with char $ac_func (); below.
38651 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38652 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38653
a848cd7e
SC
38654#ifdef __STDC__
38655# include <limits.h>
38656#else
38657# include <assert.h>
38658#endif
ac1cb8d3
VS
38659
38660#undef $ac_func
38661
a848cd7e
SC
38662/* Override any gcc2 internal prototype to avoid an error. */
38663#ifdef __cplusplus
38664extern "C"
38665{
38666#endif
38667/* We use char because int might match the return type of a gcc2
38668 builtin and then its argument prototype would still apply. */
38669char $ac_func ();
38670/* The GNU C library defines this for functions which it implements
38671 to always fail with ENOSYS. Some functions are actually named
38672 something starting with __ and the normal name is an alias. */
38673#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38674choke me
38675#else
38676char (*f) () = $ac_func;
38677#endif
38678#ifdef __cplusplus
38679}
38680#endif
38681
38682int
38683main ()
38684{
38685return f != $ac_func;
38686 ;
38687 return 0;
38688}
38689_ACEOF
38690rm -f conftest.$ac_objext conftest$ac_exeext
38691if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38692 (eval $ac_link) 2>conftest.er1
a848cd7e 38693 ac_status=$?
ac1cb8d3
VS
38694 grep -v '^ *+' conftest.er1 >conftest.err
38695 rm -f conftest.er1
38696 cat conftest.err >&5
a848cd7e
SC
38697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38698 (exit $ac_status); } &&
bb9e79c0 38699 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38701 (eval $ac_try) 2>&5
38702 ac_status=$?
38703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38704 (exit $ac_status); }; } &&
38705 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38707 (eval $ac_try) 2>&5
38708 ac_status=$?
38709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38710 (exit $ac_status); }; }; then
38711 eval "$as_ac_var=yes"
38712else
38713 echo "$as_me: failed program was:" >&5
38714sed 's/^/| /' conftest.$ac_ext >&5
38715
38716eval "$as_ac_var=no"
38717fi
ac1cb8d3
VS
38718rm -f conftest.err conftest.$ac_objext \
38719 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38720fi
38721echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38722echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38723if test `eval echo '${'$as_ac_var'}'` = yes; then
38724 cat >>confdefs.h <<_ACEOF
38725#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38726_ACEOF
38727 cat >>confdefs.h <<\_ACEOF
38728#define HAVE_INET_ADDR 1
38729_ACEOF
38730
38731else
38732
38733 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
38734echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
38735if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
38736 echo $ECHO_N "(cached) $ECHO_C" >&6
38737else
38738 ac_check_lib_save_LIBS=$LIBS
38739LIBS="-lnsl $LIBS"
38740cat >conftest.$ac_ext <<_ACEOF
38741/* confdefs.h. */
38742_ACEOF
38743cat confdefs.h >>conftest.$ac_ext
38744cat >>conftest.$ac_ext <<_ACEOF
38745/* end confdefs.h. */
38746
38747/* Override any gcc2 internal prototype to avoid an error. */
38748#ifdef __cplusplus
38749extern "C"
38750#endif
38751/* We use char because int might match the return type of a gcc2
38752 builtin and then its argument prototype would still apply. */
38753char inet_addr ();
38754int
38755main ()
38756{
38757inet_addr ();
38758 ;
38759 return 0;
38760}
38761_ACEOF
38762rm -f conftest.$ac_objext conftest$ac_exeext
38763if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38764 (eval $ac_link) 2>conftest.er1
a848cd7e 38765 ac_status=$?
ac1cb8d3
VS
38766 grep -v '^ *+' conftest.er1 >conftest.err
38767 rm -f conftest.er1
38768 cat conftest.err >&5
a848cd7e
SC
38769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38770 (exit $ac_status); } &&
bb9e79c0 38771 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38773 (eval $ac_try) 2>&5
38774 ac_status=$?
38775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38776 (exit $ac_status); }; } &&
38777 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38779 (eval $ac_try) 2>&5
38780 ac_status=$?
38781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38782 (exit $ac_status); }; }; then
38783 ac_cv_lib_nsl_inet_addr=yes
38784else
38785 echo "$as_me: failed program was:" >&5
38786sed 's/^/| /' conftest.$ac_ext >&5
38787
38788ac_cv_lib_nsl_inet_addr=no
38789fi
ac1cb8d3
VS
38790rm -f conftest.err conftest.$ac_objext \
38791 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38792LIBS=$ac_check_lib_save_LIBS
38793fi
38794echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
38795echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
38796if test $ac_cv_lib_nsl_inet_addr = yes; then
38797 INET_LINK="nsl"
38798else
38799
38800 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
38801echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
38802if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
38803 echo $ECHO_N "(cached) $ECHO_C" >&6
38804else
38805 ac_check_lib_save_LIBS=$LIBS
38806LIBS="-lresolv $LIBS"
38807cat >conftest.$ac_ext <<_ACEOF
38808/* confdefs.h. */
38809_ACEOF
38810cat confdefs.h >>conftest.$ac_ext
38811cat >>conftest.$ac_ext <<_ACEOF
38812/* end confdefs.h. */
38813
38814/* Override any gcc2 internal prototype to avoid an error. */
38815#ifdef __cplusplus
38816extern "C"
38817#endif
38818/* We use char because int might match the return type of a gcc2
38819 builtin and then its argument prototype would still apply. */
38820char inet_addr ();
38821int
38822main ()
38823{
38824inet_addr ();
38825 ;
38826 return 0;
38827}
38828_ACEOF
38829rm -f conftest.$ac_objext conftest$ac_exeext
38830if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38831 (eval $ac_link) 2>conftest.er1
a848cd7e 38832 ac_status=$?
ac1cb8d3
VS
38833 grep -v '^ *+' conftest.er1 >conftest.err
38834 rm -f conftest.er1
38835 cat conftest.err >&5
a848cd7e
SC
38836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38837 (exit $ac_status); } &&
bb9e79c0 38838 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38840 (eval $ac_try) 2>&5
38841 ac_status=$?
38842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38843 (exit $ac_status); }; } &&
38844 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
38850 ac_cv_lib_resolv_inet_addr=yes
38851else
38852 echo "$as_me: failed program was:" >&5
38853sed 's/^/| /' conftest.$ac_ext >&5
38854
38855ac_cv_lib_resolv_inet_addr=no
38856fi
ac1cb8d3
VS
38857rm -f conftest.err conftest.$ac_objext \
38858 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38859LIBS=$ac_check_lib_save_LIBS
38860fi
38861echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
38862echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
38863if test $ac_cv_lib_resolv_inet_addr = yes; then
38864 INET_LINK="resolv"
38865else
38866
38867 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
38868echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
38869if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
38870 echo $ECHO_N "(cached) $ECHO_C" >&6
38871else
38872 ac_check_lib_save_LIBS=$LIBS
38873LIBS="-lsocket $LIBS"
38874cat >conftest.$ac_ext <<_ACEOF
38875/* confdefs.h. */
38876_ACEOF
38877cat confdefs.h >>conftest.$ac_ext
38878cat >>conftest.$ac_ext <<_ACEOF
38879/* end confdefs.h. */
38880
38881/* Override any gcc2 internal prototype to avoid an error. */
38882#ifdef __cplusplus
38883extern "C"
38884#endif
38885/* We use char because int might match the return type of a gcc2
38886 builtin and then its argument prototype would still apply. */
38887char inet_addr ();
38888int
38889main ()
38890{
38891inet_addr ();
38892 ;
38893 return 0;
38894}
38895_ACEOF
38896rm -f conftest.$ac_objext conftest$ac_exeext
38897if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38898 (eval $ac_link) 2>conftest.er1
a848cd7e 38899 ac_status=$?
ac1cb8d3
VS
38900 grep -v '^ *+' conftest.er1 >conftest.err
38901 rm -f conftest.er1
38902 cat conftest.err >&5
a848cd7e
SC
38903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38904 (exit $ac_status); } &&
bb9e79c0 38905 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38907 (eval $ac_try) 2>&5
38908 ac_status=$?
38909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38910 (exit $ac_status); }; } &&
38911 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38913 (eval $ac_try) 2>&5
38914 ac_status=$?
38915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38916 (exit $ac_status); }; }; then
38917 ac_cv_lib_socket_inet_addr=yes
38918else
38919 echo "$as_me: failed program was:" >&5
38920sed 's/^/| /' conftest.$ac_ext >&5
38921
38922ac_cv_lib_socket_inet_addr=no
38923fi
ac1cb8d3
VS
38924rm -f conftest.err conftest.$ac_objext \
38925 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38926LIBS=$ac_check_lib_save_LIBS
38927fi
38928echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
38929echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
38930if test $ac_cv_lib_socket_inet_addr = yes; then
38931 INET_LINK="socket"
38932
38933fi
38934
38935
38936
38937fi
38938
38939
38940
38941fi
38942
38943
38944
38945fi
38946done
38947
38948
38949
38950for ac_func in inet_aton
38951do
38952as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38953echo "$as_me:$LINENO: checking for $ac_func" >&5
38954echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38955if eval "test \"\${$as_ac_var+set}\" = set"; then
38956 echo $ECHO_N "(cached) $ECHO_C" >&6
38957else
38958 cat >conftest.$ac_ext <<_ACEOF
38959/* confdefs.h. */
38960_ACEOF
38961cat confdefs.h >>conftest.$ac_ext
38962cat >>conftest.$ac_ext <<_ACEOF
38963/* end confdefs.h. */
ac1cb8d3
VS
38964/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38965 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38966#define $ac_func innocuous_$ac_func
38967
a848cd7e
SC
38968/* System header to define __stub macros and hopefully few prototypes,
38969 which can conflict with char $ac_func (); below.
38970 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38971 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38972
a848cd7e
SC
38973#ifdef __STDC__
38974# include <limits.h>
38975#else
38976# include <assert.h>
38977#endif
ac1cb8d3
VS
38978
38979#undef $ac_func
38980
a848cd7e
SC
38981/* Override any gcc2 internal prototype to avoid an error. */
38982#ifdef __cplusplus
38983extern "C"
38984{
38985#endif
38986/* We use char because int might match the return type of a gcc2
38987 builtin and then its argument prototype would still apply. */
38988char $ac_func ();
38989/* The GNU C library defines this for functions which it implements
38990 to always fail with ENOSYS. Some functions are actually named
38991 something starting with __ and the normal name is an alias. */
38992#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38993choke me
38994#else
38995char (*f) () = $ac_func;
38996#endif
38997#ifdef __cplusplus
38998}
38999#endif
39000
39001int
39002main ()
39003{
39004return f != $ac_func;
39005 ;
39006 return 0;
39007}
39008_ACEOF
39009rm -f conftest.$ac_objext conftest$ac_exeext
39010if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39011 (eval $ac_link) 2>conftest.er1
a848cd7e 39012 ac_status=$?
ac1cb8d3
VS
39013 grep -v '^ *+' conftest.er1 >conftest.err
39014 rm -f conftest.er1
39015 cat conftest.err >&5
a848cd7e
SC
39016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39017 (exit $ac_status); } &&
bb9e79c0 39018 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39020 (eval $ac_try) 2>&5
39021 ac_status=$?
39022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39023 (exit $ac_status); }; } &&
39024 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39026 (eval $ac_try) 2>&5
39027 ac_status=$?
39028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39029 (exit $ac_status); }; }; then
39030 eval "$as_ac_var=yes"
39031else
39032 echo "$as_me: failed program was:" >&5
39033sed 's/^/| /' conftest.$ac_ext >&5
39034
39035eval "$as_ac_var=no"
39036fi
ac1cb8d3
VS
39037rm -f conftest.err conftest.$ac_objext \
39038 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39039fi
39040echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39041echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39042if test `eval echo '${'$as_ac_var'}'` = yes; then
39043 cat >>confdefs.h <<_ACEOF
39044#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39045_ACEOF
39046 cat >>confdefs.h <<\_ACEOF
39047#define HAVE_INET_ATON 1
39048_ACEOF
39049
39050else
39051
39052 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
39053echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
39054echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
39055if eval "test \"\${$as_ac_Lib+set}\" = set"; then
39056 echo $ECHO_N "(cached) $ECHO_C" >&6
39057else
39058 ac_check_lib_save_LIBS=$LIBS
39059LIBS="-l$INET_LINK $LIBS"
39060cat >conftest.$ac_ext <<_ACEOF
39061/* confdefs.h. */
39062_ACEOF
39063cat confdefs.h >>conftest.$ac_ext
39064cat >>conftest.$ac_ext <<_ACEOF
39065/* end confdefs.h. */
39066
39067/* Override any gcc2 internal prototype to avoid an error. */
39068#ifdef __cplusplus
39069extern "C"
39070#endif
39071/* We use char because int might match the return type of a gcc2
39072 builtin and then its argument prototype would still apply. */
39073char inet_aton ();
39074int
39075main ()
39076{
39077inet_aton ();
39078 ;
39079 return 0;
39080}
39081_ACEOF
39082rm -f conftest.$ac_objext conftest$ac_exeext
39083if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39084 (eval $ac_link) 2>conftest.er1
a848cd7e 39085 ac_status=$?
ac1cb8d3
VS
39086 grep -v '^ *+' conftest.er1 >conftest.err
39087 rm -f conftest.er1
39088 cat conftest.err >&5
a848cd7e
SC
39089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39090 (exit $ac_status); } &&
bb9e79c0 39091 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39093 (eval $ac_try) 2>&5
39094 ac_status=$?
39095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39096 (exit $ac_status); }; } &&
39097 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39099 (eval $ac_try) 2>&5
39100 ac_status=$?
39101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39102 (exit $ac_status); }; }; then
39103 eval "$as_ac_Lib=yes"
39104else
39105 echo "$as_me: failed program was:" >&5
39106sed 's/^/| /' conftest.$ac_ext >&5
39107
39108eval "$as_ac_Lib=no"
39109fi
ac1cb8d3
VS
39110rm -f conftest.err conftest.$ac_objext \
39111 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39112LIBS=$ac_check_lib_save_LIBS
39113fi
39114echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
39115echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
39116if test `eval echo '${'$as_ac_Lib'}'` = yes; then
39117 cat >>confdefs.h <<\_ACEOF
39118#define HAVE_INET_ATON 1
39119_ACEOF
39120
39121fi
39122
39123
39124fi
39125done
39126
39127
39128if test "x$INET_LINK" != "x"; then
39129 cat >>confdefs.h <<\_ACEOF
39130#define HAVE_INET_ADDR 1
39131_ACEOF
39132
39133 INET_LINK=" -l$INET_LINK"
39134fi
39135
f8f6c91a
MW
39136
39137 for wx_func in fdopen
39138 do
39139 echo "$as_me:$LINENO: checking for $wx_func" >&5
39140echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6
39141if eval "test \"\${wx_cv_func_$wx_func+set}\" = set"; then
39142 echo $ECHO_N "(cached) $ECHO_C" >&6
39143else
39144
39145 cat >conftest.$ac_ext <<_ACEOF
39146
39147 /* confdefs.h. */
39148_ACEOF
39149cat confdefs.h >>conftest.$ac_ext
39150cat >>conftest.$ac_ext <<_ACEOF
39151/* end confdefs.h. */
39152
39153
39154 $ac_includes_default
39155
39156int
39157main ()
39158{
39159
39160 #ifndef $wx_func
39161 &$wx_func;
39162 #endif
39163
39164
39165 ;
39166 return 0;
39167}
39168
39169_ACEOF
39170rm -f conftest.$ac_objext conftest$ac_exeext
39171if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39172 (eval $ac_link) 2>conftest.er1
39173 ac_status=$?
39174 grep -v '^ *+' conftest.er1 >conftest.err
39175 rm -f conftest.er1
39176 cat conftest.err >&5
39177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39178 (exit $ac_status); } &&
bb9e79c0 39179 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
f8f6c91a
MW
39180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39181 (eval $ac_try) 2>&5
39182 ac_status=$?
39183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39184 (exit $ac_status); }; } &&
39185 { ac_try='test -s conftest$ac_exeext'
39186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39187 (eval $ac_try) 2>&5
39188 ac_status=$?
39189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39190 (exit $ac_status); }; }; then
39191 eval wx_cv_func_$wx_func=yes
39192else
39193 echo "$as_me: failed program was:" >&5
39194sed 's/^/| /' conftest.$ac_ext >&5
39195
39196eval wx_cv_func_$wx_func=no
a848cd7e 39197fi
f8f6c91a
MW
39198rm -f conftest.err conftest.$ac_objext \
39199 conftest$ac_exeext conftest.$ac_ext
39200
39201fi
39202echo "$as_me:$LINENO: result: `eval echo '${'wx_cv_func_$wx_func'}'`" >&5
39203echo "${ECHO_T}`eval echo '${'wx_cv_func_$wx_func'}'`" >&6
39204
39205 if eval test \$wx_cv_func_$wx_func = yes
39206 then
39207 cat >>confdefs.h <<_ACEOF
39208#define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
39209_ACEOF
39210
39211
39212 else
39213 :
39214
39215 fi
39216 done
39217
39218
39219fi
39220
a848cd7e
SC
39221
39222
39223
39224EXTRALIBS_ESD=
39225echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
39226echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
39227if test "${ac_cv_lib_esd_esd_close+set}" = set; then
39228 echo $ECHO_N "(cached) $ECHO_C" >&6
39229else
39230 ac_check_lib_save_LIBS=$LIBS
39231LIBS="-lesd $LIBS"
39232cat >conftest.$ac_ext <<_ACEOF
39233/* confdefs.h. */
39234_ACEOF
39235cat confdefs.h >>conftest.$ac_ext
39236cat >>conftest.$ac_ext <<_ACEOF
39237/* end confdefs.h. */
39238
39239/* Override any gcc2 internal prototype to avoid an error. */
39240#ifdef __cplusplus
39241extern "C"
39242#endif
39243/* We use char because int might match the return type of a gcc2
39244 builtin and then its argument prototype would still apply. */
39245char esd_close ();
39246int
39247main ()
39248{
39249esd_close ();
39250 ;
39251 return 0;
39252}
39253_ACEOF
39254rm -f conftest.$ac_objext conftest$ac_exeext
39255if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39256 (eval $ac_link) 2>conftest.er1
a848cd7e 39257 ac_status=$?
ac1cb8d3
VS
39258 grep -v '^ *+' conftest.er1 >conftest.err
39259 rm -f conftest.er1
39260 cat conftest.err >&5
a848cd7e
SC
39261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39262 (exit $ac_status); } &&
bb9e79c0 39263 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39265 (eval $ac_try) 2>&5
39266 ac_status=$?
39267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39268 (exit $ac_status); }; } &&
39269 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39271 (eval $ac_try) 2>&5
39272 ac_status=$?
39273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39274 (exit $ac_status); }; }; then
39275 ac_cv_lib_esd_esd_close=yes
39276else
39277 echo "$as_me: failed program was:" >&5
39278sed 's/^/| /' conftest.$ac_ext >&5
39279
39280ac_cv_lib_esd_esd_close=no
39281fi
ac1cb8d3
VS
39282rm -f conftest.err conftest.$ac_objext \
39283 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39284LIBS=$ac_check_lib_save_LIBS
39285fi
39286echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
39287echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
39288if test $ac_cv_lib_esd_esd_close = yes; then
39289
39290
39291for ac_header in esd.h
39292do
39293as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
39294if eval "test \"\${$as_ac_Header+set}\" = set"; then
39295 echo "$as_me:$LINENO: checking for $ac_header" >&5
39296echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39297if eval "test \"\${$as_ac_Header+set}\" = set"; then
39298 echo $ECHO_N "(cached) $ECHO_C" >&6
39299fi
39300echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39301echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39302else
39303 # Is the header compilable?
39304echo "$as_me:$LINENO: checking $ac_header usability" >&5
39305echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
39306cat >conftest.$ac_ext <<_ACEOF
39307/* confdefs.h. */
39308_ACEOF
39309cat confdefs.h >>conftest.$ac_ext
39310cat >>conftest.$ac_ext <<_ACEOF
39311/* end confdefs.h. */
39312$ac_includes_default
39313#include <$ac_header>
39314_ACEOF
39315rm -f conftest.$ac_objext
39316if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39317 (eval $ac_compile) 2>conftest.er1
a848cd7e 39318 ac_status=$?
ac1cb8d3
VS
39319 grep -v '^ *+' conftest.er1 >conftest.err
39320 rm -f conftest.er1
39321 cat conftest.err >&5
a848cd7e
SC
39322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39323 (exit $ac_status); } &&
bb9e79c0 39324 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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_objext'
a848cd7e
SC
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_header_compiler=yes
39337else
39338 echo "$as_me: failed program was:" >&5
39339sed 's/^/| /' conftest.$ac_ext >&5
39340
39341ac_header_compiler=no
39342fi
ac1cb8d3 39343rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39344echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39345echo "${ECHO_T}$ac_header_compiler" >&6
39346
39347# Is the header present?
39348echo "$as_me:$LINENO: checking $ac_header presence" >&5
39349echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
39350cat >conftest.$ac_ext <<_ACEOF
39351/* confdefs.h. */
39352_ACEOF
39353cat confdefs.h >>conftest.$ac_ext
39354cat >>conftest.$ac_ext <<_ACEOF
39355/* end confdefs.h. */
39356#include <$ac_header>
39357_ACEOF
39358if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
39359 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
39360 ac_status=$?
39361 grep -v '^ *+' conftest.er1 >conftest.err
39362 rm -f conftest.er1
39363 cat conftest.err >&5
39364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39365 (exit $ac_status); } >/dev/null; then
39366 if test -s conftest.err; then
5d7b7554
VZ
39367 ac_cpp_err=$ac_cxx_preproc_warn_flag
39368 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
39369 else
39370 ac_cpp_err=
39371 fi
39372else
39373 ac_cpp_err=yes
39374fi
39375if test -z "$ac_cpp_err"; then
39376 ac_header_preproc=yes
39377else
39378 echo "$as_me: failed program was:" >&5
39379sed 's/^/| /' conftest.$ac_ext >&5
39380
39381 ac_header_preproc=no
39382fi
39383rm -f conftest.err conftest.$ac_ext
39384echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39385echo "${ECHO_T}$ac_header_preproc" >&6
39386
39387# So? What about this header?
5d7b7554 39388case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 39389 yes:no: )
a848cd7e
SC
39390 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
39391echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
39392 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
39393echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
39394 ac_header_preproc=yes
a848cd7e 39395 ;;
ac1cb8d3 39396 no:yes:* )
a848cd7e
SC
39397 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
39398echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
39399 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
39400echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
39401 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
39402echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
39403 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
39404echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
39405 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
39406echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
39407 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
39408echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
39409 (
39410 cat <<\_ASBOX
ac1cb8d3
VS
39411## ----------------------------------------- ##
39412## Report this to wx-dev@lists.wxwidgets.org ##
39413## ----------------------------------------- ##
a848cd7e
SC
39414_ASBOX
39415 ) |
39416 sed "s/^/$as_me: WARNING: /" >&2
39417 ;;
39418esac
39419echo "$as_me:$LINENO: checking for $ac_header" >&5
39420echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39421if eval "test \"\${$as_ac_Header+set}\" = set"; then
39422 echo $ECHO_N "(cached) $ECHO_C" >&6
39423else
ac1cb8d3 39424 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
39425fi
39426echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39427echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39428
39429fi
39430if test `eval echo '${'$as_ac_Header'}'` = yes; then
39431 cat >>confdefs.h <<_ACEOF
39432#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
39433_ACEOF
39434
39435 EXTRALIBS_ESD="-lesd"
39436
39437fi
39438
39439done
39440
39441
39442fi
39443
39444
39445
39446echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
39447echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
39448cat >conftest.$ac_ext <<_ACEOF
39449/* confdefs.h. */
39450_ACEOF
39451cat confdefs.h >>conftest.$ac_ext
39452cat >>conftest.$ac_ext <<_ACEOF
39453/* end confdefs.h. */
39454#ifdef __linux__
39455 #include <linux/cdrom.h>
39456 #else
39457 /* For Solaris */
39458 #include <sys/cdio.h>
39459 #endif
39460
39461int
39462main ()
39463{
39464struct cdrom_tocentry entry, old_entry;
39465 ;
39466 return 0;
39467}
39468_ACEOF
39469rm -f conftest.$ac_objext
39470if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39471 (eval $ac_compile) 2>conftest.er1
a848cd7e 39472 ac_status=$?
ac1cb8d3
VS
39473 grep -v '^ *+' conftest.er1 >conftest.err
39474 rm -f conftest.er1
39475 cat conftest.err >&5
a848cd7e
SC
39476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39477 (exit $ac_status); } &&
bb9e79c0 39478 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39480 (eval $ac_try) 2>&5
39481 ac_status=$?
39482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39483 (exit $ac_status); }; } &&
39484 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39486 (eval $ac_try) 2>&5
39487 ac_status=$?
39488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39489 (exit $ac_status); }; }; then
39490 echo "$as_me:$LINENO: result: yes" >&5
39491echo "${ECHO_T}yes" >&6
39492 cat >>confdefs.h <<\_ACEOF
39493#define HAVE_KNOWN_CDROM_INTERFACE 1
39494_ACEOF
39495
39496else
39497 echo "$as_me: failed program was:" >&5
39498sed 's/^/| /' conftest.$ac_ext >&5
39499
39500echo "$as_me:$LINENO: result: no" >&5
39501echo "${ECHO_T}no" >&6
39502fi
ac1cb8d3 39503rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39504
39505
39506cat >confcache <<\_ACEOF
39507# This file is a shell script that caches the results of configure
39508# tests run on this system so they can be shared between configure
39509# scripts and configure runs, see configure's option --config-cache.
39510# It is not useful on other systems. If it contains results you don't
39511# want to keep, you may remove or edit it.
39512#
39513# config.status only pays attention to the cache file if you give it
39514# the --recheck option to rerun configure.
39515#
39516# `ac_cv_env_foo' variables (set or unset) will be overridden when
39517# loading this file, other *unset* `ac_cv_foo' will be assigned the
39518# following values.
39519
39520_ACEOF
39521
39522# The following way of writing the cache mishandles newlines in values,
39523# but we know of no workaround that is simple, portable, and efficient.
39524# So, don't put newlines in cache variables' values.
39525# Ultrix sh set writes to stderr and can't be redirected directly,
39526# and sets the high bit in the cache file unless we assign to the vars.
39527{
39528 (set) 2>&1 |
39529 case `(ac_space=' '; set | grep ac_space) 2>&1` in
39530 *ac_space=\ *)
39531 # `set' does not quote correctly, so add quotes (double-quote
39532 # substitution turns \\\\ into \\, and sed turns \\ into \).
39533 sed -n \
ac1cb8d3
VS
39534 "s/'/'\\\\''/g;
39535 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
39536 ;;
39537 *)
39538 # `set' quotes correctly as required by POSIX, so do not add quotes.
39539 sed -n \
ac1cb8d3 39540 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
39541 ;;
39542 esac;
39543} |
39544 sed '
39545 t clear
39546 : clear
39547 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
39548 t end
39549 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
39550 : end' >>confcache
39551if diff $cache_file confcache >/dev/null 2>&1; then :; else
39552 if test -w $cache_file; then
39553 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
39554 cat confcache >$cache_file
39555 else
39556 echo "not updating unwritable cache $cache_file"
39557 fi
39558fi
39559rm -f confcache
39560
39561
a848cd7e
SC
39562if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
39563
39564
39565 THREADS_LINK=
e56f4f9e 39566 THREADS_CXXFLAGS=
a848cd7e
SC
39567
39568 if test "$wxUSE_THREADS" = "yes" ; then
39569 if test "$USE_BEOS" = 1; then
39570 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
39571echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
39572 wxUSE_THREADS="no"
39573 fi
39574 fi
39575
39576 if test "$wxUSE_THREADS" = "yes" ; then
39577
39578
39579 THREAD_OPTS="-pthread"
39580 case "${host}" in
39581 *-*-solaris2* | *-*-sunos4* )
39582 if test "x$GCC" = "xyes"; then
39583 THREAD_OPTS="-pthreads $THREAD_OPTS"
39584 else
39585 THREAD_OPTS="-mt $THREAD_OPTS"
39586 fi
39587 ;;
39588 *-*-freebsd*)
39589 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
39590 ;;
39591 *-*-darwin* | *-*-cygwin* )
39592 THREAD_OPTS=""
39593 ;;
39594 *-*-aix*)
39595 THREAD_OPTS="pthreads"
39596 ;;
39597 *-hp-hpux* )
00421666
MW
39598 if test "x$GCC" = "xyes"; then
39599 $CXX -dumpspecs | grep 'pthread:' >/dev/null ||
39600 THREAD_OPTS=""
39601 else
0093c2fc 39602 THREAD_OPTS="-mt"
a848cd7e
SC
39603 fi
39604 ;;
39605
39606 *-*-irix* )
39607 if test "x$GCC" = "xyes"; then
39608 THREAD_OPTS=""
39609 fi
39610 ;;
39611
39612 *-*-*UnixWare*)
39613 if test "x$GCC" != "xyes"; then
39614 THREAD_OPTS="-Ethread"
39615 fi
39616 ;;
39617 esac
39618
39619 THREAD_OPTS="$THREAD_OPTS pthread none"
39620
39621 THREADS_OK=no
39622 for flag in $THREAD_OPTS; do
39623 case $flag in
39624 none)
39625 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
39626echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
39627 ;;
39628
39629 -*)
39630 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
39631echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
e56f4f9e 39632 THREADS_CXXFLAGS="$flag"
a848cd7e
SC
39633 ;;
39634
39635 *)
39636 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
39637echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
39638 THREADS_LINK="-l$flag"
39639 ;;
39640 esac
39641
39642 save_LIBS="$LIBS"
e56f4f9e 39643 save_CXXFLAGS="$CXXFLAGS"
a848cd7e 39644 LIBS="$THREADS_LINK $LIBS"
e56f4f9e 39645 CXXFLAGS="$THREADS_CXXFLAGS $CXXFLAGS"
a848cd7e
SC
39646
39647 cat >conftest.$ac_ext <<_ACEOF
39648/* confdefs.h. */
39649_ACEOF
39650cat confdefs.h >>conftest.$ac_ext
39651cat >>conftest.$ac_ext <<_ACEOF
39652/* end confdefs.h. */
39653#include <pthread.h>
39654int
39655main ()
39656{
39657pthread_create(0,0,0,0);
39658 ;
39659 return 0;
39660}
39661_ACEOF
39662rm -f conftest.$ac_objext conftest$ac_exeext
39663if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39664 (eval $ac_link) 2>conftest.er1
a848cd7e 39665 ac_status=$?
ac1cb8d3
VS
39666 grep -v '^ *+' conftest.er1 >conftest.err
39667 rm -f conftest.er1
39668 cat conftest.err >&5
a848cd7e
SC
39669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39670 (exit $ac_status); } &&
bb9e79c0 39671 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39673 (eval $ac_try) 2>&5
39674 ac_status=$?
39675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39676 (exit $ac_status); }; } &&
39677 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39679 (eval $ac_try) 2>&5
39680 ac_status=$?
39681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39682 (exit $ac_status); }; }; then
39683 THREADS_OK=yes
39684else
39685 echo "$as_me: failed program was:" >&5
39686sed 's/^/| /' conftest.$ac_ext >&5
39687
39688fi
ac1cb8d3
VS
39689rm -f conftest.err conftest.$ac_objext \
39690 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39691
39692 LIBS="$save_LIBS"
e56f4f9e 39693 CXXFLAGS="$save_CXXFLAGS"
a848cd7e
SC
39694
39695 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
39696echo "${ECHO_T}$THREADS_OK" >&6
39697 if test "x$THREADS_OK" = "xyes"; then
39698 break;
39699 fi
39700
39701 THREADS_LINK=""
e56f4f9e 39702 THREADS_CXXFLAGS=""
a848cd7e
SC
39703 done
39704
39705 if test "x$THREADS_OK" != "xyes"; then
39706 wxUSE_THREADS=no
39707 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
39708echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
39709 else
e56f4f9e 39710 LDFLAGS="$THREADS_CXXFLAGS $LDFLAGS"
a848cd7e
SC
39711 LIBS="$THREADS_LINK $LIBS"
39712
39713 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
39714echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
39715 flag=no
39716 case "${host}" in
39717 *-aix*)
39718 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
39719 flag="-D_THREAD_SAFE"
39720 ;;
39721 *-freebsd*)
39722 flag="-D_THREAD_SAFE"
39723 ;;
39724 *-hp-hpux* )
39725 flag="-D_REENTRANT"
39726 if test "x$GCC" != "xyes"; then
39727 flag="$flag -D_RWSTD_MULTI_THREAD"
39728 fi
39729 ;;
39730 *solaris* | alpha*-osf*)
39731 flag="-D_REENTRANT"
39732 ;;
39733 esac
39734 echo "$as_me:$LINENO: result: ${flag}" >&5
39735echo "${ECHO_T}${flag}" >&6
39736 if test "x$flag" != xno; then
e56f4f9e 39737 THREADS_CXXFLAGS="$THREADS_CXXFLAGS $flag"
a848cd7e
SC
39738 fi
39739
e56f4f9e 39740 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS $THREADS_CXXFLAGS"
a848cd7e
SC
39741 fi
39742 fi
39743
39744 if test "$wxUSE_THREADS" = "yes" ; then
39745
39746for ac_func in thr_setconcurrency
39747do
39748as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39749echo "$as_me:$LINENO: checking for $ac_func" >&5
39750echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39751if eval "test \"\${$as_ac_var+set}\" = set"; then
39752 echo $ECHO_N "(cached) $ECHO_C" >&6
39753else
39754 cat >conftest.$ac_ext <<_ACEOF
39755/* confdefs.h. */
39756_ACEOF
39757cat confdefs.h >>conftest.$ac_ext
39758cat >>conftest.$ac_ext <<_ACEOF
39759/* end confdefs.h. */
ac1cb8d3
VS
39760/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39761 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39762#define $ac_func innocuous_$ac_func
39763
a848cd7e
SC
39764/* System header to define __stub macros and hopefully few prototypes,
39765 which can conflict with char $ac_func (); below.
39766 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39767 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 39768
a848cd7e
SC
39769#ifdef __STDC__
39770# include <limits.h>
39771#else
39772# include <assert.h>
39773#endif
ac1cb8d3
VS
39774
39775#undef $ac_func
39776
a848cd7e
SC
39777/* Override any gcc2 internal prototype to avoid an error. */
39778#ifdef __cplusplus
39779extern "C"
39780{
39781#endif
39782/* We use char because int might match the return type of a gcc2
39783 builtin and then its argument prototype would still apply. */
39784char $ac_func ();
39785/* The GNU C library defines this for functions which it implements
39786 to always fail with ENOSYS. Some functions are actually named
39787 something starting with __ and the normal name is an alias. */
39788#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39789choke me
39790#else
39791char (*f) () = $ac_func;
39792#endif
39793#ifdef __cplusplus
39794}
39795#endif
39796
39797int
39798main ()
39799{
39800return f != $ac_func;
39801 ;
39802 return 0;
39803}
39804_ACEOF
39805rm -f conftest.$ac_objext conftest$ac_exeext
39806if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39807 (eval $ac_link) 2>conftest.er1
a848cd7e 39808 ac_status=$?
ac1cb8d3
VS
39809 grep -v '^ *+' conftest.er1 >conftest.err
39810 rm -f conftest.er1
39811 cat conftest.err >&5
a848cd7e
SC
39812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39813 (exit $ac_status); } &&
bb9e79c0 39814 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39816 (eval $ac_try) 2>&5
39817 ac_status=$?
39818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39819 (exit $ac_status); }; } &&
39820 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39822 (eval $ac_try) 2>&5
39823 ac_status=$?
39824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39825 (exit $ac_status); }; }; then
39826 eval "$as_ac_var=yes"
39827else
39828 echo "$as_me: failed program was:" >&5
39829sed 's/^/| /' conftest.$ac_ext >&5
39830
39831eval "$as_ac_var=no"
39832fi
ac1cb8d3
VS
39833rm -f conftest.err conftest.$ac_objext \
39834 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39835fi
39836echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39837echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39838if test `eval echo '${'$as_ac_var'}'` = yes; then
39839 cat >>confdefs.h <<_ACEOF
39840#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39841_ACEOF
39842
39843fi
39844done
39845
39846
6ebeb4c7
VZ
39847 echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5
39848echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6
39849if test "${wx_cv_func_pthread_cleanup+set}" = set; then
39850 echo $ECHO_N "(cached) $ECHO_C" >&6
39851else
39852
39853 cat >conftest.$ac_ext <<_ACEOF
39854/* confdefs.h. */
39855_ACEOF
39856cat confdefs.h >>conftest.$ac_ext
39857cat >>conftest.$ac_ext <<_ACEOF
39858/* end confdefs.h. */
39859#include <pthread.h>
39860 void ThreadCleanupFunc(void *p);
39861
39862int
39863main ()
39864{
39865
39866 void *p;
39867 pthread_cleanup_push(ThreadCleanupFunc, p);
39868 pthread_cleanup_pop(0);
39869
39870 ;
39871 return 0;
39872}
39873_ACEOF
39874rm -f conftest.$ac_objext
39875if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39876 (eval $ac_compile) 2>conftest.er1
39877 ac_status=$?
39878 grep -v '^ *+' conftest.er1 >conftest.err
39879 rm -f conftest.er1
39880 cat conftest.err >&5
39881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39882 (exit $ac_status); } &&
bb9e79c0 39883 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6ebeb4c7
VZ
39884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39885 (eval $ac_try) 2>&5
39886 ac_status=$?
39887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39888 (exit $ac_status); }; } &&
39889 { ac_try='test -s conftest.$ac_objext'
39890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39891 (eval $ac_try) 2>&5
39892 ac_status=$?
39893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39894 (exit $ac_status); }; }; then
39895
39896 wx_cv_func_pthread_cleanup=yes
39897
39898else
39899 echo "$as_me: failed program was:" >&5
39900sed 's/^/| /' conftest.$ac_ext >&5
39901
39902
39903 wx_cv_func_pthread_cleanup=no
39904
39905
39906fi
39907rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39908
39909fi
39910echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup" >&5
39911echo "${ECHO_T}$wx_cv_func_pthread_cleanup" >&6
39912 if test "x$wx_cv_func_pthread_cleanup" = "xyes"; then
39913 cat >>confdefs.h <<\_ACEOF
39914#define wxHAVE_PTHREAD_CLEANUP 1
39915_ACEOF
39916
39917 fi
39918
a848cd7e
SC
39919
39920for ac_header in sched.h
39921do
39922as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
39923if eval "test \"\${$as_ac_Header+set}\" = set"; then
39924 echo "$as_me:$LINENO: checking for $ac_header" >&5
39925echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39926if eval "test \"\${$as_ac_Header+set}\" = set"; then
39927 echo $ECHO_N "(cached) $ECHO_C" >&6
39928fi
39929echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39930echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39931else
39932 # Is the header compilable?
39933echo "$as_me:$LINENO: checking $ac_header usability" >&5
39934echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
39935cat >conftest.$ac_ext <<_ACEOF
39936/* confdefs.h. */
39937_ACEOF
39938cat confdefs.h >>conftest.$ac_ext
39939cat >>conftest.$ac_ext <<_ACEOF
39940/* end confdefs.h. */
39941$ac_includes_default
39942#include <$ac_header>
39943_ACEOF
39944rm -f conftest.$ac_objext
39945if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39946 (eval $ac_compile) 2>conftest.er1
a848cd7e 39947 ac_status=$?
ac1cb8d3
VS
39948 grep -v '^ *+' conftest.er1 >conftest.err
39949 rm -f conftest.er1
39950 cat conftest.err >&5
a848cd7e
SC
39951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39952 (exit $ac_status); } &&
bb9e79c0 39953 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39955 (eval $ac_try) 2>&5
39956 ac_status=$?
39957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39958 (exit $ac_status); }; } &&
39959 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39961 (eval $ac_try) 2>&5
39962 ac_status=$?
39963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39964 (exit $ac_status); }; }; then
39965 ac_header_compiler=yes
39966else
39967 echo "$as_me: failed program was:" >&5
39968sed 's/^/| /' conftest.$ac_ext >&5
39969
39970ac_header_compiler=no
39971fi
ac1cb8d3 39972rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39973echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39974echo "${ECHO_T}$ac_header_compiler" >&6
39975
39976# Is the header present?
39977echo "$as_me:$LINENO: checking $ac_header presence" >&5
39978echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
39979cat >conftest.$ac_ext <<_ACEOF
39980/* confdefs.h. */
39981_ACEOF
39982cat confdefs.h >>conftest.$ac_ext
39983cat >>conftest.$ac_ext <<_ACEOF
39984/* end confdefs.h. */
39985#include <$ac_header>
39986_ACEOF
39987if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
39988 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
39989 ac_status=$?
39990 grep -v '^ *+' conftest.er1 >conftest.err
39991 rm -f conftest.er1
39992 cat conftest.err >&5
39993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39994 (exit $ac_status); } >/dev/null; then
39995 if test -s conftest.err; then
5d7b7554
VZ
39996 ac_cpp_err=$ac_cxx_preproc_warn_flag
39997 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
39998 else
39999 ac_cpp_err=
40000 fi
40001else
40002 ac_cpp_err=yes
40003fi
40004if test -z "$ac_cpp_err"; then
40005 ac_header_preproc=yes
40006else
40007 echo "$as_me: failed program was:" >&5
40008sed 's/^/| /' conftest.$ac_ext >&5
40009
40010 ac_header_preproc=no
40011fi
40012rm -f conftest.err conftest.$ac_ext
40013echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40014echo "${ECHO_T}$ac_header_preproc" >&6
40015
40016# So? What about this header?
5d7b7554 40017case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 40018 yes:no: )
a848cd7e
SC
40019 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
40020echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
40021 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
40022echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
40023 ac_header_preproc=yes
a848cd7e 40024 ;;
ac1cb8d3 40025 no:yes:* )
a848cd7e
SC
40026 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
40027echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
40028 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
40029echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
40030 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
40031echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
40032 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
40033echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
40034 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
40035echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
40036 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
40037echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
40038 (
40039 cat <<\_ASBOX
ac1cb8d3
VS
40040## ----------------------------------------- ##
40041## Report this to wx-dev@lists.wxwidgets.org ##
40042## ----------------------------------------- ##
a848cd7e
SC
40043_ASBOX
40044 ) |
40045 sed "s/^/$as_me: WARNING: /" >&2
40046 ;;
40047esac
40048echo "$as_me:$LINENO: checking for $ac_header" >&5
40049echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
40050if eval "test \"\${$as_ac_Header+set}\" = set"; then
40051 echo $ECHO_N "(cached) $ECHO_C" >&6
40052else
ac1cb8d3 40053 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
40054fi
40055echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
40056echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
40057
40058fi
40059if test `eval echo '${'$as_ac_Header'}'` = yes; then
40060 cat >>confdefs.h <<_ACEOF
40061#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
40062_ACEOF
40063
40064fi
40065
40066done
40067
40068 if test "$ac_cv_header_sched_h" = "yes"; then
40069 echo "$as_me:$LINENO: checking for sched_yield" >&5
40070echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
40071if test "${ac_cv_func_sched_yield+set}" = set; then
40072 echo $ECHO_N "(cached) $ECHO_C" >&6
40073else
40074 cat >conftest.$ac_ext <<_ACEOF
40075/* confdefs.h. */
40076_ACEOF
40077cat confdefs.h >>conftest.$ac_ext
40078cat >>conftest.$ac_ext <<_ACEOF
40079/* end confdefs.h. */
ac1cb8d3
VS
40080/* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
40081 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40082#define sched_yield innocuous_sched_yield
40083
a848cd7e
SC
40084/* System header to define __stub macros and hopefully few prototypes,
40085 which can conflict with char sched_yield (); below.
40086 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40087 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40088
a848cd7e
SC
40089#ifdef __STDC__
40090# include <limits.h>
40091#else
40092# include <assert.h>
40093#endif
ac1cb8d3
VS
40094
40095#undef sched_yield
40096
a848cd7e
SC
40097/* Override any gcc2 internal prototype to avoid an error. */
40098#ifdef __cplusplus
40099extern "C"
40100{
40101#endif
40102/* We use char because int might match the return type of a gcc2
40103 builtin and then its argument prototype would still apply. */
40104char sched_yield ();
40105/* The GNU C library defines this for functions which it implements
40106 to always fail with ENOSYS. Some functions are actually named
40107 something starting with __ and the normal name is an alias. */
40108#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
40109choke me
40110#else
40111char (*f) () = sched_yield;
40112#endif
40113#ifdef __cplusplus
40114}
40115#endif
40116
40117int
40118main ()
40119{
40120return f != sched_yield;
40121 ;
40122 return 0;
40123}
40124_ACEOF
40125rm -f conftest.$ac_objext conftest$ac_exeext
40126if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40127 (eval $ac_link) 2>conftest.er1
a848cd7e 40128 ac_status=$?
ac1cb8d3
VS
40129 grep -v '^ *+' conftest.er1 >conftest.err
40130 rm -f conftest.er1
40131 cat conftest.err >&5
a848cd7e
SC
40132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40133 (exit $ac_status); } &&
bb9e79c0 40134 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40136 (eval $ac_try) 2>&5
40137 ac_status=$?
40138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40139 (exit $ac_status); }; } &&
40140 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40142 (eval $ac_try) 2>&5
40143 ac_status=$?
40144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40145 (exit $ac_status); }; }; then
40146 ac_cv_func_sched_yield=yes
40147else
40148 echo "$as_me: failed program was:" >&5
40149sed 's/^/| /' conftest.$ac_ext >&5
40150
40151ac_cv_func_sched_yield=no
40152fi
ac1cb8d3
VS
40153rm -f conftest.err conftest.$ac_objext \
40154 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40155fi
40156echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
40157echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
40158if test $ac_cv_func_sched_yield = yes; then
40159 cat >>confdefs.h <<\_ACEOF
40160#define HAVE_SCHED_YIELD 1
40161_ACEOF
40162
40163else
40164
40165 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
40166echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
40167if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
40168 echo $ECHO_N "(cached) $ECHO_C" >&6
40169else
40170 ac_check_lib_save_LIBS=$LIBS
40171LIBS="-lposix4 $LIBS"
40172cat >conftest.$ac_ext <<_ACEOF
40173/* confdefs.h. */
40174_ACEOF
40175cat confdefs.h >>conftest.$ac_ext
40176cat >>conftest.$ac_ext <<_ACEOF
40177/* end confdefs.h. */
40178
40179/* Override any gcc2 internal prototype to avoid an error. */
40180#ifdef __cplusplus
40181extern "C"
40182#endif
40183/* We use char because int might match the return type of a gcc2
40184 builtin and then its argument prototype would still apply. */
40185char sched_yield ();
40186int
40187main ()
40188{
40189sched_yield ();
40190 ;
40191 return 0;
40192}
40193_ACEOF
40194rm -f conftest.$ac_objext conftest$ac_exeext
40195if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40196 (eval $ac_link) 2>conftest.er1
a848cd7e 40197 ac_status=$?
ac1cb8d3
VS
40198 grep -v '^ *+' conftest.er1 >conftest.err
40199 rm -f conftest.er1
40200 cat conftest.err >&5
a848cd7e
SC
40201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40202 (exit $ac_status); } &&
bb9e79c0 40203 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40205 (eval $ac_try) 2>&5
40206 ac_status=$?
40207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40208 (exit $ac_status); }; } &&
40209 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40211 (eval $ac_try) 2>&5
40212 ac_status=$?
40213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40214 (exit $ac_status); }; }; then
40215 ac_cv_lib_posix4_sched_yield=yes
40216else
40217 echo "$as_me: failed program was:" >&5
40218sed 's/^/| /' conftest.$ac_ext >&5
40219
40220ac_cv_lib_posix4_sched_yield=no
40221fi
ac1cb8d3
VS
40222rm -f conftest.err conftest.$ac_objext \
40223 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40224LIBS=$ac_check_lib_save_LIBS
40225fi
40226echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
40227echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
40228if test $ac_cv_lib_posix4_sched_yield = yes; then
40229 cat >>confdefs.h <<\_ACEOF
40230#define HAVE_SCHED_YIELD 1
40231_ACEOF
40232 POSIX4_LINK=" -lposix4"
40233else
40234 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
40235echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
40236
40237fi
40238
40239
40240
40241fi
40242
40243 fi
40244
40245 HAVE_PRIOR_FUNCS=0
40246 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
40247echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
40248if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
40249 echo $ECHO_N "(cached) $ECHO_C" >&6
40250else
40251 cat >conftest.$ac_ext <<_ACEOF
40252/* confdefs.h. */
40253_ACEOF
40254cat confdefs.h >>conftest.$ac_ext
40255cat >>conftest.$ac_ext <<_ACEOF
40256/* end confdefs.h. */
ac1cb8d3
VS
40257/* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
40258 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40259#define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
40260
a848cd7e
SC
40261/* System header to define __stub macros and hopefully few prototypes,
40262 which can conflict with char pthread_attr_getschedpolicy (); below.
40263 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40264 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40265
a848cd7e
SC
40266#ifdef __STDC__
40267# include <limits.h>
40268#else
40269# include <assert.h>
40270#endif
ac1cb8d3
VS
40271
40272#undef pthread_attr_getschedpolicy
40273
a848cd7e
SC
40274/* Override any gcc2 internal prototype to avoid an error. */
40275#ifdef __cplusplus
40276extern "C"
40277{
40278#endif
40279/* We use char because int might match the return type of a gcc2
40280 builtin and then its argument prototype would still apply. */
40281char pthread_attr_getschedpolicy ();
40282/* The GNU C library defines this for functions which it implements
40283 to always fail with ENOSYS. Some functions are actually named
40284 something starting with __ and the normal name is an alias. */
40285#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
40286choke me
40287#else
40288char (*f) () = pthread_attr_getschedpolicy;
40289#endif
40290#ifdef __cplusplus
40291}
40292#endif
40293
40294int
40295main ()
40296{
40297return f != pthread_attr_getschedpolicy;
40298 ;
40299 return 0;
40300}
40301_ACEOF
40302rm -f conftest.$ac_objext conftest$ac_exeext
40303if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40304 (eval $ac_link) 2>conftest.er1
a848cd7e 40305 ac_status=$?
ac1cb8d3
VS
40306 grep -v '^ *+' conftest.er1 >conftest.err
40307 rm -f conftest.er1
40308 cat conftest.err >&5
a848cd7e
SC
40309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40310 (exit $ac_status); } &&
bb9e79c0 40311 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40313 (eval $ac_try) 2>&5
40314 ac_status=$?
40315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40316 (exit $ac_status); }; } &&
40317 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40319 (eval $ac_try) 2>&5
40320 ac_status=$?
40321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40322 (exit $ac_status); }; }; then
40323 ac_cv_func_pthread_attr_getschedpolicy=yes
40324else
40325 echo "$as_me: failed program was:" >&5
40326sed 's/^/| /' conftest.$ac_ext >&5
40327
40328ac_cv_func_pthread_attr_getschedpolicy=no
40329fi
ac1cb8d3
VS
40330rm -f conftest.err conftest.$ac_objext \
40331 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40332fi
40333echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
40334echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
40335if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
40336 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
40337echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
40338if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
40339 echo $ECHO_N "(cached) $ECHO_C" >&6
40340else
40341 cat >conftest.$ac_ext <<_ACEOF
40342/* confdefs.h. */
40343_ACEOF
40344cat confdefs.h >>conftest.$ac_ext
40345cat >>conftest.$ac_ext <<_ACEOF
40346/* end confdefs.h. */
ac1cb8d3
VS
40347/* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
40348 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40349#define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
40350
a848cd7e
SC
40351/* System header to define __stub macros and hopefully few prototypes,
40352 which can conflict with char pthread_attr_setschedparam (); below.
40353 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40354 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40355
a848cd7e
SC
40356#ifdef __STDC__
40357# include <limits.h>
40358#else
40359# include <assert.h>
40360#endif
ac1cb8d3
VS
40361
40362#undef pthread_attr_setschedparam
40363
a848cd7e
SC
40364/* Override any gcc2 internal prototype to avoid an error. */
40365#ifdef __cplusplus
40366extern "C"
40367{
40368#endif
40369/* We use char because int might match the return type of a gcc2
40370 builtin and then its argument prototype would still apply. */
40371char pthread_attr_setschedparam ();
40372/* The GNU C library defines this for functions which it implements
40373 to always fail with ENOSYS. Some functions are actually named
40374 something starting with __ and the normal name is an alias. */
40375#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
40376choke me
40377#else
40378char (*f) () = pthread_attr_setschedparam;
40379#endif
40380#ifdef __cplusplus
40381}
40382#endif
40383
40384int
40385main ()
40386{
40387return f != pthread_attr_setschedparam;
40388 ;
40389 return 0;
40390}
40391_ACEOF
40392rm -f conftest.$ac_objext conftest$ac_exeext
40393if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40394 (eval $ac_link) 2>conftest.er1
a848cd7e 40395 ac_status=$?
ac1cb8d3
VS
40396 grep -v '^ *+' conftest.er1 >conftest.err
40397 rm -f conftest.er1
40398 cat conftest.err >&5
a848cd7e
SC
40399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40400 (exit $ac_status); } &&
bb9e79c0 40401 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40403 (eval $ac_try) 2>&5
40404 ac_status=$?
40405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40406 (exit $ac_status); }; } &&
40407 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40409 (eval $ac_try) 2>&5
40410 ac_status=$?
40411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40412 (exit $ac_status); }; }; then
40413 ac_cv_func_pthread_attr_setschedparam=yes
40414else
40415 echo "$as_me: failed program was:" >&5
40416sed 's/^/| /' conftest.$ac_ext >&5
40417
40418ac_cv_func_pthread_attr_setschedparam=no
40419fi
ac1cb8d3
VS
40420rm -f conftest.err conftest.$ac_objext \
40421 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40422fi
40423echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
40424echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
40425if test $ac_cv_func_pthread_attr_setschedparam = yes; then
40426 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
40427echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
40428if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
40429 echo $ECHO_N "(cached) $ECHO_C" >&6
40430else
40431 cat >conftest.$ac_ext <<_ACEOF
40432/* confdefs.h. */
40433_ACEOF
40434cat confdefs.h >>conftest.$ac_ext
40435cat >>conftest.$ac_ext <<_ACEOF
40436/* end confdefs.h. */
ac1cb8d3
VS
40437/* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
40438 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40439#define sched_get_priority_max innocuous_sched_get_priority_max
40440
a848cd7e
SC
40441/* System header to define __stub macros and hopefully few prototypes,
40442 which can conflict with char sched_get_priority_max (); below.
40443 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40444 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40445
a848cd7e
SC
40446#ifdef __STDC__
40447# include <limits.h>
40448#else
40449# include <assert.h>
40450#endif
ac1cb8d3
VS
40451
40452#undef sched_get_priority_max
40453
a848cd7e
SC
40454/* Override any gcc2 internal prototype to avoid an error. */
40455#ifdef __cplusplus
40456extern "C"
40457{
40458#endif
40459/* We use char because int might match the return type of a gcc2
40460 builtin and then its argument prototype would still apply. */
40461char sched_get_priority_max ();
40462/* The GNU C library defines this for functions which it implements
40463 to always fail with ENOSYS. Some functions are actually named
40464 something starting with __ and the normal name is an alias. */
40465#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
40466choke me
40467#else
40468char (*f) () = sched_get_priority_max;
40469#endif
40470#ifdef __cplusplus
40471}
40472#endif
40473
40474int
40475main ()
40476{
40477return f != sched_get_priority_max;
40478 ;
40479 return 0;
40480}
40481_ACEOF
40482rm -f conftest.$ac_objext conftest$ac_exeext
40483if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40484 (eval $ac_link) 2>conftest.er1
a848cd7e 40485 ac_status=$?
ac1cb8d3
VS
40486 grep -v '^ *+' conftest.er1 >conftest.err
40487 rm -f conftest.er1
40488 cat conftest.err >&5
a848cd7e
SC
40489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40490 (exit $ac_status); } &&
bb9e79c0 40491 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40493 (eval $ac_try) 2>&5
40494 ac_status=$?
40495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40496 (exit $ac_status); }; } &&
40497 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40499 (eval $ac_try) 2>&5
40500 ac_status=$?
40501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40502 (exit $ac_status); }; }; then
40503 ac_cv_func_sched_get_priority_max=yes
40504else
40505 echo "$as_me: failed program was:" >&5
40506sed 's/^/| /' conftest.$ac_ext >&5
40507
40508ac_cv_func_sched_get_priority_max=no
40509fi
ac1cb8d3
VS
40510rm -f conftest.err conftest.$ac_objext \
40511 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40512fi
40513echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
40514echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
40515if test $ac_cv_func_sched_get_priority_max = yes; then
40516 HAVE_PRIOR_FUNCS=1
40517else
40518 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
40519echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
40520if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
40521 echo $ECHO_N "(cached) $ECHO_C" >&6
40522else
40523 ac_check_lib_save_LIBS=$LIBS
40524LIBS="-lposix4 $LIBS"
40525cat >conftest.$ac_ext <<_ACEOF
40526/* confdefs.h. */
40527_ACEOF
40528cat confdefs.h >>conftest.$ac_ext
40529cat >>conftest.$ac_ext <<_ACEOF
40530/* end confdefs.h. */
40531
40532/* Override any gcc2 internal prototype to avoid an error. */
40533#ifdef __cplusplus
40534extern "C"
40535#endif
40536/* We use char because int might match the return type of a gcc2
40537 builtin and then its argument prototype would still apply. */
40538char sched_get_priority_max ();
40539int
40540main ()
40541{
40542sched_get_priority_max ();
40543 ;
40544 return 0;
40545}
40546_ACEOF
40547rm -f conftest.$ac_objext conftest$ac_exeext
40548if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40549 (eval $ac_link) 2>conftest.er1
a848cd7e 40550 ac_status=$?
ac1cb8d3
VS
40551 grep -v '^ *+' conftest.er1 >conftest.err
40552 rm -f conftest.er1
40553 cat conftest.err >&5
a848cd7e
SC
40554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40555 (exit $ac_status); } &&
bb9e79c0 40556 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40558 (eval $ac_try) 2>&5
40559 ac_status=$?
40560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40561 (exit $ac_status); }; } &&
40562 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40564 (eval $ac_try) 2>&5
40565 ac_status=$?
40566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40567 (exit $ac_status); }; }; then
40568 ac_cv_lib_posix4_sched_get_priority_max=yes
40569else
40570 echo "$as_me: failed program was:" >&5
40571sed 's/^/| /' conftest.$ac_ext >&5
40572
40573ac_cv_lib_posix4_sched_get_priority_max=no
40574fi
ac1cb8d3
VS
40575rm -f conftest.err conftest.$ac_objext \
40576 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40577LIBS=$ac_check_lib_save_LIBS
40578fi
40579echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
40580echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
40581if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
40582
40583 HAVE_PRIOR_FUNCS=1
40584 POSIX4_LINK=" -lposix4"
40585
40586fi
40587
40588
40589fi
40590
40591
40592fi
40593
40594
40595fi
40596
40597
40598 if test "$HAVE_PRIOR_FUNCS" = 1; then
40599 cat >>confdefs.h <<\_ACEOF
40600#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
40601_ACEOF
40602
40603 else
40604 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
40605echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
40606 fi
40607
40608 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
40609echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
40610if test "${ac_cv_func_pthread_cancel+set}" = set; then
40611 echo $ECHO_N "(cached) $ECHO_C" >&6
40612else
40613 cat >conftest.$ac_ext <<_ACEOF
40614/* confdefs.h. */
40615_ACEOF
40616cat confdefs.h >>conftest.$ac_ext
40617cat >>conftest.$ac_ext <<_ACEOF
40618/* end confdefs.h. */
ac1cb8d3
VS
40619/* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
40620 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40621#define pthread_cancel innocuous_pthread_cancel
40622
a848cd7e
SC
40623/* System header to define __stub macros and hopefully few prototypes,
40624 which can conflict with char pthread_cancel (); below.
40625 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40626 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40627
a848cd7e
SC
40628#ifdef __STDC__
40629# include <limits.h>
40630#else
40631# include <assert.h>
40632#endif
ac1cb8d3
VS
40633
40634#undef pthread_cancel
40635
a848cd7e
SC
40636/* Override any gcc2 internal prototype to avoid an error. */
40637#ifdef __cplusplus
40638extern "C"
40639{
40640#endif
40641/* We use char because int might match the return type of a gcc2
40642 builtin and then its argument prototype would still apply. */
40643char pthread_cancel ();
40644/* The GNU C library defines this for functions which it implements
40645 to always fail with ENOSYS. Some functions are actually named
40646 something starting with __ and the normal name is an alias. */
40647#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
40648choke me
40649#else
40650char (*f) () = pthread_cancel;
40651#endif
40652#ifdef __cplusplus
40653}
40654#endif
40655
40656int
40657main ()
40658{
40659return f != pthread_cancel;
40660 ;
40661 return 0;
40662}
40663_ACEOF
40664rm -f conftest.$ac_objext conftest$ac_exeext
40665if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40666 (eval $ac_link) 2>conftest.er1
a848cd7e 40667 ac_status=$?
ac1cb8d3
VS
40668 grep -v '^ *+' conftest.er1 >conftest.err
40669 rm -f conftest.er1
40670 cat conftest.err >&5
a848cd7e
SC
40671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40672 (exit $ac_status); } &&
bb9e79c0 40673 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40675 (eval $ac_try) 2>&5
40676 ac_status=$?
40677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40678 (exit $ac_status); }; } &&
40679 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40681 (eval $ac_try) 2>&5
40682 ac_status=$?
40683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40684 (exit $ac_status); }; }; then
40685 ac_cv_func_pthread_cancel=yes
40686else
40687 echo "$as_me: failed program was:" >&5
40688sed 's/^/| /' conftest.$ac_ext >&5
40689
40690ac_cv_func_pthread_cancel=no
40691fi
ac1cb8d3
VS
40692rm -f conftest.err conftest.$ac_objext \
40693 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40694fi
40695echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
40696echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
40697if test $ac_cv_func_pthread_cancel = yes; then
40698 cat >>confdefs.h <<\_ACEOF
40699#define HAVE_PTHREAD_CANCEL 1
40700_ACEOF
40701
40702else
40703 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
40704echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
40705fi
40706
40707
abc736fd
MW
40708 echo "$as_me:$LINENO: checking for pthread_attr_setstacksize" >&5
40709echo $ECHO_N "checking for pthread_attr_setstacksize... $ECHO_C" >&6
40710if test "${ac_cv_func_pthread_attr_setstacksize+set}" = set; then
40711 echo $ECHO_N "(cached) $ECHO_C" >&6
40712else
40713 cat >conftest.$ac_ext <<_ACEOF
40714/* confdefs.h. */
40715_ACEOF
40716cat confdefs.h >>conftest.$ac_ext
40717cat >>conftest.$ac_ext <<_ACEOF
40718/* end confdefs.h. */
40719/* Define pthread_attr_setstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_setstacksize.
40720 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40721#define pthread_attr_setstacksize innocuous_pthread_attr_setstacksize
40722
40723/* System header to define __stub macros and hopefully few prototypes,
40724 which can conflict with char pthread_attr_setstacksize (); below.
40725 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40726 <limits.h> exists even on freestanding compilers. */
40727
40728#ifdef __STDC__
40729# include <limits.h>
40730#else
40731# include <assert.h>
40732#endif
40733
40734#undef pthread_attr_setstacksize
40735
40736/* Override any gcc2 internal prototype to avoid an error. */
40737#ifdef __cplusplus
40738extern "C"
40739{
40740#endif
40741/* We use char because int might match the return type of a gcc2
40742 builtin and then its argument prototype would still apply. */
40743char pthread_attr_setstacksize ();
40744/* The GNU C library defines this for functions which it implements
40745 to always fail with ENOSYS. Some functions are actually named
40746 something starting with __ and the normal name is an alias. */
40747#if defined (__stub_pthread_attr_setstacksize) || defined (__stub___pthread_attr_setstacksize)
40748choke me
40749#else
40750char (*f) () = pthread_attr_setstacksize;
40751#endif
40752#ifdef __cplusplus
40753}
40754#endif
40755
40756int
40757main ()
40758{
40759return f != pthread_attr_setstacksize;
40760 ;
40761 return 0;
40762}
40763_ACEOF
40764rm -f conftest.$ac_objext conftest$ac_exeext
40765if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40766 (eval $ac_link) 2>conftest.er1
40767 ac_status=$?
40768 grep -v '^ *+' conftest.er1 >conftest.err
40769 rm -f conftest.er1
40770 cat conftest.err >&5
40771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40772 (exit $ac_status); } &&
bb9e79c0 40773 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
abc736fd
MW
40774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40775 (eval $ac_try) 2>&5
40776 ac_status=$?
40777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40778 (exit $ac_status); }; } &&
40779 { ac_try='test -s conftest$ac_exeext'
40780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40781 (eval $ac_try) 2>&5
40782 ac_status=$?
40783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40784 (exit $ac_status); }; }; then
40785 ac_cv_func_pthread_attr_setstacksize=yes
40786else
40787 echo "$as_me: failed program was:" >&5
40788sed 's/^/| /' conftest.$ac_ext >&5
40789
40790ac_cv_func_pthread_attr_setstacksize=no
40791fi
40792rm -f conftest.err conftest.$ac_objext \
40793 conftest$ac_exeext conftest.$ac_ext
40794fi
40795echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setstacksize" >&5
40796echo "${ECHO_T}$ac_cv_func_pthread_attr_setstacksize" >&6
40797if test $ac_cv_func_pthread_attr_setstacksize = yes; then
40798 cat >>confdefs.h <<\_ACEOF
40799#define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1
40800_ACEOF
40801
40802fi
40803
a848cd7e
SC
40804
40805
40806 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
40807echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
40808if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
40809 echo $ECHO_N "(cached) $ECHO_C" >&6
40810else
40811
40812 cat >conftest.$ac_ext <<_ACEOF
40813/* confdefs.h. */
40814_ACEOF
40815cat confdefs.h >>conftest.$ac_ext
40816cat >>conftest.$ac_ext <<_ACEOF
40817/* end confdefs.h. */
40818#include <pthread.h>
40819int
40820main ()
40821{
40822
40823 pthread_mutexattr_t attr;
40824 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
40825
40826 ;
40827 return 0;
40828}
40829_ACEOF
40830rm -f conftest.$ac_objext
40831if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 40832 (eval $ac_compile) 2>conftest.er1
a848cd7e 40833 ac_status=$?
ac1cb8d3
VS
40834 grep -v '^ *+' conftest.er1 >conftest.err
40835 rm -f conftest.er1
40836 cat conftest.err >&5
a848cd7e
SC
40837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40838 (exit $ac_status); } &&
bb9e79c0 40839 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40841 (eval $ac_try) 2>&5
40842 ac_status=$?
40843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40844 (exit $ac_status); }; } &&
40845 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
40846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40847 (eval $ac_try) 2>&5
40848 ac_status=$?
40849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40850 (exit $ac_status); }; }; then
123dca7d 40851 wx_cv_type_pthread_mutexattr_t=yes
a848cd7e
SC
40852else
40853 echo "$as_me: failed program was:" >&5
40854sed 's/^/| /' conftest.$ac_ext >&5
40855
123dca7d 40856wx_cv_type_pthread_mutexattr_t=no
a848cd7e
SC
40857
40858fi
ac1cb8d3 40859rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
40860
40861fi
40862echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
40863echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
40864
40865 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
40866 cat >>confdefs.h <<\_ACEOF
40867#define HAVE_PTHREAD_MUTEXATTR_T 1
40868_ACEOF
40869
123dca7d
VZ
40870
40871 echo "$as_me:$LINENO: checking for pthread_mutexattr_settype declaration" >&5
40872echo $ECHO_N "checking for pthread_mutexattr_settype declaration... $ECHO_C" >&6
40873if test "${wx_cv_func_pthread_mutexattr_settype_decl+set}" = set; then
40874 echo $ECHO_N "(cached) $ECHO_C" >&6
40875else
40876
40877 cat >conftest.$ac_ext <<_ACEOF
40878/* confdefs.h. */
40879_ACEOF
40880cat confdefs.h >>conftest.$ac_ext
40881cat >>conftest.$ac_ext <<_ACEOF
40882/* end confdefs.h. */
40883#include <pthread.h>
40884int
40885main ()
40886{
40887
40888 pthread_mutexattr_t attr;
40889 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
40890
40891 ;
40892 return 0;
40893}
40894_ACEOF
40895rm -f conftest.$ac_objext
40896if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40897 (eval $ac_compile) 2>conftest.er1
40898 ac_status=$?
40899 grep -v '^ *+' conftest.er1 >conftest.err
40900 rm -f conftest.er1
40901 cat conftest.err >&5
40902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40903 (exit $ac_status); } &&
bb9e79c0 40904 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
123dca7d
VZ
40905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40906 (eval $ac_try) 2>&5
40907 ac_status=$?
40908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40909 (exit $ac_status); }; } &&
40910 { ac_try='test -s conftest.$ac_objext'
40911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40912 (eval $ac_try) 2>&5
40913 ac_status=$?
40914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40915 (exit $ac_status); }; }; then
40916 wx_cv_func_pthread_mutexattr_settype_decl=yes
40917else
40918 echo "$as_me: failed program was:" >&5
40919sed 's/^/| /' conftest.$ac_ext >&5
40920
40921wx_cv_func_pthread_mutexattr_settype_decl=no
40922
40923fi
40924rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40925
40926fi
40927echo "$as_me:$LINENO: result: $wx_cv_func_pthread_mutexattr_settype_decl" >&5
40928echo "${ECHO_T}$wx_cv_func_pthread_mutexattr_settype_decl" >&6
40929 if test "$wx_cv_func_pthread_mutexattr_settype_decl" = "yes"; then
40930 cat >>confdefs.h <<\_ACEOF
40931#define HAVE_PTHREAD_MUTEXATTR_SETTYPE_DECL 1
40932_ACEOF
40933
40934 fi
a848cd7e
SC
40935 else
40936 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
40937echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
40938if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
40939 echo $ECHO_N "(cached) $ECHO_C" >&6
40940else
40941
40942 cat >conftest.$ac_ext <<_ACEOF
40943/* confdefs.h. */
40944_ACEOF
40945cat confdefs.h >>conftest.$ac_ext
40946cat >>conftest.$ac_ext <<_ACEOF
40947/* end confdefs.h. */
40948#include <pthread.h>
40949int
40950main ()
40951{
40952
40953 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
40954
40955 ;
40956 return 0;
40957}
40958_ACEOF
40959rm -f conftest.$ac_objext
40960if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 40961 (eval $ac_compile) 2>conftest.er1
a848cd7e 40962 ac_status=$?
ac1cb8d3
VS
40963 grep -v '^ *+' conftest.er1 >conftest.err
40964 rm -f conftest.er1
40965 cat conftest.err >&5
a848cd7e
SC
40966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40967 (exit $ac_status); } &&
bb9e79c0 40968 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40970 (eval $ac_try) 2>&5
40971 ac_status=$?
40972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40973 (exit $ac_status); }; } &&
40974 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
40975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40976 (eval $ac_try) 2>&5
40977 ac_status=$?
40978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40979 (exit $ac_status); }; }; then
40980
40981 wx_cv_type_pthread_rec_mutex_init=yes
40982
40983else
40984 echo "$as_me: failed program was:" >&5
40985sed 's/^/| /' conftest.$ac_ext >&5
40986
40987
40988 wx_cv_type_pthread_rec_mutex_init=no
40989
40990
40991fi
ac1cb8d3 40992rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
40993
40994fi
40995echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
40996echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
40997 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
40998 cat >>confdefs.h <<\_ACEOF
40999#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
41000_ACEOF
41001
41002 else
41003 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
41004echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
41005 fi
41006 fi
41007 fi
41008
41009else
41010 if test "$wxUSE_THREADS" = "yes" ; then
41011 case "${host}" in
41012 *-*-mingw32* )
41013 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
41014echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
41015if test "${wx_cv_cflags_mthread+set}" = set; then
41016 echo $ECHO_N "(cached) $ECHO_C" >&6
41017else
41018
e56f4f9e
VZ
41019 CXXFLAGS_OLD="$CXXFLAGS"
41020 CXXFLAGS="-mthreads $CXXFLAGS"
a848cd7e
SC
41021 cat >conftest.$ac_ext <<_ACEOF
41022/* confdefs.h. */
41023_ACEOF
41024cat confdefs.h >>conftest.$ac_ext
41025cat >>conftest.$ac_ext <<_ACEOF
41026/* end confdefs.h. */
41027
41028int
41029main ()
41030{
41031
41032 ;
41033 return 0;
41034}
41035_ACEOF
41036rm -f conftest.$ac_objext
41037if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 41038 (eval $ac_compile) 2>conftest.er1
a848cd7e 41039 ac_status=$?
ac1cb8d3
VS
41040 grep -v '^ *+' conftest.er1 >conftest.err
41041 rm -f conftest.er1
41042 cat conftest.err >&5
a848cd7e
SC
41043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41044 (exit $ac_status); } &&
bb9e79c0 41045 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41047 (eval $ac_try) 2>&5
41048 ac_status=$?
41049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41050 (exit $ac_status); }; } &&
41051 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
41052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41053 (eval $ac_try) 2>&5
41054 ac_status=$?
41055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41056 (exit $ac_status); }; }; then
41057 wx_cv_cflags_mthread=yes
41058else
41059 echo "$as_me: failed program was:" >&5
41060sed 's/^/| /' conftest.$ac_ext >&5
41061
41062wx_cv_cflags_mthread=no
41063
41064fi
ac1cb8d3 41065rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
41066
41067
41068fi
41069echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
41070echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
41071
41072 if test "$wx_cv_cflags_mthread" = "yes"; then
e56f4f9e 41073 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -mthreads"
a848cd7e
SC
41074 LDFLAGS="$LDFLAGS -mthreads"
41075 else
e56f4f9e 41076 CXXFLAGS="$CXXFLAGS_OLD"
a848cd7e
SC
41077 fi
41078 ;;
41079 *-pc-os2*emx )
5ff751d6
VZ
41080 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -Zmt -D__ST_MT_ERRNO__"
41081 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
a848cd7e
SC
41082 LDFLAGS="$LDFLAGS -Zmt"
41083 ;;
41084 esac
41085 fi
41086fi
41087
004ee6da
RL
41088echo "$as_me:$LINENO: checking for localtime_r" >&5
41089echo $ECHO_N "checking for localtime_r... $ECHO_C" >&6
41090if test "${ac_cv_func_localtime_r+set}" = set; then
a848cd7e
SC
41091 echo $ECHO_N "(cached) $ECHO_C" >&6
41092else
41093 cat >conftest.$ac_ext <<_ACEOF
41094/* confdefs.h. */
41095_ACEOF
41096cat confdefs.h >>conftest.$ac_ext
41097cat >>conftest.$ac_ext <<_ACEOF
41098/* end confdefs.h. */
004ee6da 41099/* Define localtime_r to an innocuous variant, in case <limits.h> declares localtime_r.
ac1cb8d3 41100 For example, HP-UX 11i <limits.h> declares gettimeofday. */
004ee6da 41101#define localtime_r innocuous_localtime_r
ac1cb8d3 41102
a848cd7e 41103/* System header to define __stub macros and hopefully few prototypes,
004ee6da 41104 which can conflict with char localtime_r (); below.
a848cd7e
SC
41105 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41106 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 41107
a848cd7e
SC
41108#ifdef __STDC__
41109# include <limits.h>
41110#else
41111# include <assert.h>
41112#endif
ac1cb8d3 41113
004ee6da 41114#undef localtime_r
ac1cb8d3 41115
a848cd7e
SC
41116/* Override any gcc2 internal prototype to avoid an error. */
41117#ifdef __cplusplus
41118extern "C"
41119{
41120#endif
41121/* We use char because int might match the return type of a gcc2
41122 builtin and then its argument prototype would still apply. */
004ee6da 41123char localtime_r ();
a848cd7e
SC
41124/* The GNU C library defines this for functions which it implements
41125 to always fail with ENOSYS. Some functions are actually named
41126 something starting with __ and the normal name is an alias. */
004ee6da 41127#if defined (__stub_localtime_r) || defined (__stub___localtime_r)
a848cd7e
SC
41128choke me
41129#else
004ee6da 41130char (*f) () = localtime_r;
a848cd7e
SC
41131#endif
41132#ifdef __cplusplus
41133}
41134#endif
41135
41136int
41137main ()
41138{
004ee6da
RL
41139return f != localtime_r;
41140 ;
41141 return 0;
41142}
41143_ACEOF
41144rm -f conftest.$ac_objext conftest$ac_exeext
41145if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41146 (eval $ac_link) 2>conftest.er1
41147 ac_status=$?
41148 grep -v '^ *+' conftest.er1 >conftest.err
41149 rm -f conftest.er1
41150 cat conftest.err >&5
41151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41152 (exit $ac_status); } &&
bb9e79c0 41153 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
41154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41155 (eval $ac_try) 2>&5
41156 ac_status=$?
41157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41158 (exit $ac_status); }; } &&
41159 { ac_try='test -s conftest$ac_exeext'
41160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41161 (eval $ac_try) 2>&5
41162 ac_status=$?
41163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41164 (exit $ac_status); }; }; then
41165 ac_cv_func_localtime_r=yes
41166else
41167 echo "$as_me: failed program was:" >&5
41168sed 's/^/| /' conftest.$ac_ext >&5
41169
41170ac_cv_func_localtime_r=no
41171fi
41172rm -f conftest.err conftest.$ac_objext \
41173 conftest$ac_exeext conftest.$ac_ext
41174fi
41175echo "$as_me:$LINENO: result: $ac_cv_func_localtime_r" >&5
41176echo "${ECHO_T}$ac_cv_func_localtime_r" >&6
41177if test $ac_cv_func_localtime_r = yes; then
41178 cat >>confdefs.h <<\_ACEOF
41179#define HAVE_LOCALTIME_R 1
41180_ACEOF
41181
41182fi
41183
41184echo "$as_me:$LINENO: checking for gmtime_r" >&5
41185echo $ECHO_N "checking for gmtime_r... $ECHO_C" >&6
41186if test "${ac_cv_func_gmtime_r+set}" = set; then
41187 echo $ECHO_N "(cached) $ECHO_C" >&6
41188else
41189 cat >conftest.$ac_ext <<_ACEOF
41190/* confdefs.h. */
41191_ACEOF
41192cat confdefs.h >>conftest.$ac_ext
41193cat >>conftest.$ac_ext <<_ACEOF
41194/* end confdefs.h. */
41195/* Define gmtime_r to an innocuous variant, in case <limits.h> declares gmtime_r.
41196 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41197#define gmtime_r innocuous_gmtime_r
41198
41199/* System header to define __stub macros and hopefully few prototypes,
41200 which can conflict with char gmtime_r (); below.
41201 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41202 <limits.h> exists even on freestanding compilers. */
41203
41204#ifdef __STDC__
41205# include <limits.h>
41206#else
41207# include <assert.h>
41208#endif
41209
41210#undef gmtime_r
41211
41212/* Override any gcc2 internal prototype to avoid an error. */
41213#ifdef __cplusplus
41214extern "C"
41215{
41216#endif
41217/* We use char because int might match the return type of a gcc2
41218 builtin and then its argument prototype would still apply. */
41219char gmtime_r ();
41220/* The GNU C library defines this for functions which it implements
41221 to always fail with ENOSYS. Some functions are actually named
41222 something starting with __ and the normal name is an alias. */
41223#if defined (__stub_gmtime_r) || defined (__stub___gmtime_r)
41224choke me
41225#else
41226char (*f) () = gmtime_r;
41227#endif
41228#ifdef __cplusplus
41229}
41230#endif
41231
41232int
41233main ()
41234{
41235return f != gmtime_r;
41236 ;
41237 return 0;
41238}
41239_ACEOF
41240rm -f conftest.$ac_objext conftest$ac_exeext
41241if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41242 (eval $ac_link) 2>conftest.er1
41243 ac_status=$?
41244 grep -v '^ *+' conftest.er1 >conftest.err
41245 rm -f conftest.er1
41246 cat conftest.err >&5
41247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41248 (exit $ac_status); } &&
bb9e79c0 41249 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
41250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41251 (eval $ac_try) 2>&5
41252 ac_status=$?
41253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41254 (exit $ac_status); }; } &&
41255 { ac_try='test -s conftest$ac_exeext'
41256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41257 (eval $ac_try) 2>&5
41258 ac_status=$?
41259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41260 (exit $ac_status); }; }; then
41261 ac_cv_func_gmtime_r=yes
41262else
41263 echo "$as_me: failed program was:" >&5
41264sed 's/^/| /' conftest.$ac_ext >&5
41265
41266ac_cv_func_gmtime_r=no
41267fi
41268rm -f conftest.err conftest.$ac_objext \
41269 conftest$ac_exeext conftest.$ac_ext
41270fi
41271echo "$as_me:$LINENO: result: $ac_cv_func_gmtime_r" >&5
41272echo "${ECHO_T}$ac_cv_func_gmtime_r" >&6
41273if test $ac_cv_func_gmtime_r = yes; then
41274 cat >>confdefs.h <<\_ACEOF
41275#define HAVE_GMTIME_R 1
41276_ACEOF
41277
41278fi
41279
41280echo "$as_me:$LINENO: checking for readdir_r" >&5
41281echo $ECHO_N "checking for readdir_r... $ECHO_C" >&6
41282if test "${ac_cv_func_readdir_r+set}" = set; then
41283 echo $ECHO_N "(cached) $ECHO_C" >&6
41284else
41285 cat >conftest.$ac_ext <<_ACEOF
41286/* confdefs.h. */
41287_ACEOF
41288cat confdefs.h >>conftest.$ac_ext
41289cat >>conftest.$ac_ext <<_ACEOF
41290/* end confdefs.h. */
41291/* Define readdir_r to an innocuous variant, in case <limits.h> declares readdir_r.
41292 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41293#define readdir_r innocuous_readdir_r
41294
41295/* System header to define __stub macros and hopefully few prototypes,
41296 which can conflict with char readdir_r (); below.
41297 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41298 <limits.h> exists even on freestanding compilers. */
41299
41300#ifdef __STDC__
41301# include <limits.h>
41302#else
41303# include <assert.h>
41304#endif
41305
41306#undef readdir_r
41307
41308/* Override any gcc2 internal prototype to avoid an error. */
41309#ifdef __cplusplus
41310extern "C"
41311{
41312#endif
41313/* We use char because int might match the return type of a gcc2
41314 builtin and then its argument prototype would still apply. */
41315char readdir_r ();
41316/* The GNU C library defines this for functions which it implements
41317 to always fail with ENOSYS. Some functions are actually named
41318 something starting with __ and the normal name is an alias. */
41319#if defined (__stub_readdir_r) || defined (__stub___readdir_r)
41320choke me
41321#else
41322char (*f) () = readdir_r;
41323#endif
41324#ifdef __cplusplus
41325}
41326#endif
41327
41328int
41329main ()
41330{
41331return f != readdir_r;
41332 ;
41333 return 0;
41334}
41335_ACEOF
41336rm -f conftest.$ac_objext conftest$ac_exeext
41337if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41338 (eval $ac_link) 2>conftest.er1
41339 ac_status=$?
41340 grep -v '^ *+' conftest.er1 >conftest.err
41341 rm -f conftest.er1
41342 cat conftest.err >&5
41343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41344 (exit $ac_status); } &&
bb9e79c0 41345 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
41346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41347 (eval $ac_try) 2>&5
41348 ac_status=$?
41349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41350 (exit $ac_status); }; } &&
41351 { ac_try='test -s conftest$ac_exeext'
41352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41353 (eval $ac_try) 2>&5
41354 ac_status=$?
41355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41356 (exit $ac_status); }; }; then
41357 ac_cv_func_readdir_r=yes
41358else
41359 echo "$as_me: failed program was:" >&5
41360sed 's/^/| /' conftest.$ac_ext >&5
41361
41362ac_cv_func_readdir_r=no
41363fi
41364rm -f conftest.err conftest.$ac_objext \
41365 conftest$ac_exeext conftest.$ac_ext
41366fi
41367echo "$as_me:$LINENO: result: $ac_cv_func_readdir_r" >&5
41368echo "${ECHO_T}$ac_cv_func_readdir_r" >&6
41369if test $ac_cv_func_readdir_r = yes; then
41370 cat >>confdefs.h <<\_ACEOF
41371#define HAVE_READDIR_R 1
41372_ACEOF
41373
41374fi
41375
004ee6da 41376
004ee6da
RL
41377
41378
41379 ac_ext=c
41380ac_cpp='$CPP $CPPFLAGS'
41381ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41382ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41383ac_compiler_gnu=$ac_cv_c_compiler_gnu
41384
41385 echo "$as_me:$LINENO: checking how many arguments gethostbyname_r() takes" >&5
41386echo $ECHO_N "checking how many arguments gethostbyname_r() takes... $ECHO_C" >&6
41387
41388 if test "${ac_cv_func_which_gethostbyname_r+set}" = set; then
41389 echo $ECHO_N "(cached) $ECHO_C" >&6
41390else
41391
41392
2f6c5bb5 41393################################################################
004ee6da
RL
41394
41395ac_cv_func_which_gethostbyname_r=unknown
41396
41397#
41398# ONE ARGUMENT (sanity check)
41399#
41400
41401# This should fail, as there is no variant of gethostbyname_r() that takes
41402# a single argument. If it actually compiles, then we can assume that
41403# netdb.h is not declaring the function, and the compiler is thereby
41404# assuming an implicit prototype. In which case, we're out of luck.
41405#
41406cat >conftest.$ac_ext <<_ACEOF
41407/* confdefs.h. */
41408_ACEOF
41409cat confdefs.h >>conftest.$ac_ext
41410cat >>conftest.$ac_ext <<_ACEOF
41411/* end confdefs.h. */
41412#include <netdb.h>
41413int
41414main ()
41415{
41416
41417 char *name = "www.gnu.org";
41418 (void)gethostbyname_r(name) /* ; */
41419
41420 ;
41421 return 0;
41422}
41423_ACEOF
41424rm -f conftest.$ac_objext
41425if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41426 (eval $ac_compile) 2>conftest.er1
41427 ac_status=$?
41428 grep -v '^ *+' conftest.er1 >conftest.err
41429 rm -f conftest.er1
41430 cat conftest.err >&5
41431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41432 (exit $ac_status); } &&
bb9e79c0 41433 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
004ee6da
RL
41434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41435 (eval $ac_try) 2>&5
41436 ac_status=$?
41437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41438 (exit $ac_status); }; } &&
41439 { ac_try='test -s conftest.$ac_objext'
41440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41441 (eval $ac_try) 2>&5
41442 ac_status=$?
41443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41444 (exit $ac_status); }; }; then
41445 ac_cv_func_which_gethostbyname_r=no
41446else
41447 echo "$as_me: failed program was:" >&5
41448sed 's/^/| /' conftest.$ac_ext >&5
41449
41450fi
41451rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41452
41453#
41454# SIX ARGUMENTS
41455# (e.g. Linux)
41456#
41457
41458if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
41459
41460cat >conftest.$ac_ext <<_ACEOF
41461/* confdefs.h. */
41462_ACEOF
41463cat confdefs.h >>conftest.$ac_ext
41464cat >>conftest.$ac_ext <<_ACEOF
41465/* end confdefs.h. */
41466#include <netdb.h>
41467int
41468main ()
41469{
41470
41471 char *name = "www.gnu.org";
41472 struct hostent ret, *retp;
41473 char buf[1024];
41474 int buflen = 1024;
41475 int my_h_errno;
41476 (void)gethostbyname_r(name, &ret, buf, buflen, &retp, &my_h_errno) /* ; */
41477
41478 ;
41479 return 0;
41480}
41481_ACEOF
41482rm -f conftest.$ac_objext
41483if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41484 (eval $ac_compile) 2>conftest.er1
41485 ac_status=$?
41486 grep -v '^ *+' conftest.er1 >conftest.err
41487 rm -f conftest.er1
41488 cat conftest.err >&5
41489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41490 (exit $ac_status); } &&
bb9e79c0 41491 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
004ee6da
RL
41492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41493 (eval $ac_try) 2>&5
41494 ac_status=$?
41495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41496 (exit $ac_status); }; } &&
41497 { ac_try='test -s conftest.$ac_objext'
41498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41499 (eval $ac_try) 2>&5
41500 ac_status=$?
41501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41502 (exit $ac_status); }; }; then
41503 ac_cv_func_which_gethostbyname_r=six
41504else
41505 echo "$as_me: failed program was:" >&5
41506sed 's/^/| /' conftest.$ac_ext >&5
41507
41508fi
41509rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41510
41511fi
41512
41513#
41514# FIVE ARGUMENTS
41515# (e.g. Solaris)
41516#
41517
41518if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
41519
41520cat >conftest.$ac_ext <<_ACEOF
41521/* confdefs.h. */
41522_ACEOF
41523cat confdefs.h >>conftest.$ac_ext
41524cat >>conftest.$ac_ext <<_ACEOF
41525/* end confdefs.h. */
41526#include <netdb.h>
41527int
41528main ()
41529{
41530
41531 char *name = "www.gnu.org";
41532 struct hostent ret;
41533 char buf[1024];
41534 int buflen = 1024;
41535 int my_h_errno;
41536 (void)gethostbyname_r(name, &ret, buf, buflen, &my_h_errno) /* ; */
41537
41538 ;
41539 return 0;
41540}
41541_ACEOF
41542rm -f conftest.$ac_objext
41543if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41544 (eval $ac_compile) 2>conftest.er1
41545 ac_status=$?
41546 grep -v '^ *+' conftest.er1 >conftest.err
41547 rm -f conftest.er1
41548 cat conftest.err >&5
41549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41550 (exit $ac_status); } &&
bb9e79c0 41551 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
004ee6da
RL
41552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41553 (eval $ac_try) 2>&5
41554 ac_status=$?
41555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41556 (exit $ac_status); }; } &&
41557 { ac_try='test -s conftest.$ac_objext'
41558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41559 (eval $ac_try) 2>&5
41560 ac_status=$?
41561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41562 (exit $ac_status); }; }; then
41563 ac_cv_func_which_gethostbyname_r=five
41564else
41565 echo "$as_me: failed program was:" >&5
41566sed 's/^/| /' conftest.$ac_ext >&5
41567
41568fi
41569rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41570
41571fi
41572
41573#
41574# THREE ARGUMENTS
41575# (e.g. AIX, HP-UX, Tru64)
41576#
41577
41578if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
41579
41580cat >conftest.$ac_ext <<_ACEOF
41581/* confdefs.h. */
41582_ACEOF
41583cat confdefs.h >>conftest.$ac_ext
41584cat >>conftest.$ac_ext <<_ACEOF
41585/* end confdefs.h. */
41586#include <netdb.h>
41587int
41588main ()
41589{
41590
41591 char *name = "www.gnu.org";
41592 struct hostent ret;
41593 struct hostent_data data;
41594 (void)gethostbyname_r(name, &ret, &data) /* ; */
41595
41596 ;
41597 return 0;
41598}
41599_ACEOF
41600rm -f conftest.$ac_objext
41601if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41602 (eval $ac_compile) 2>conftest.er1
41603 ac_status=$?
41604 grep -v '^ *+' conftest.er1 >conftest.err
41605 rm -f conftest.er1
41606 cat conftest.err >&5
41607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41608 (exit $ac_status); } &&
bb9e79c0 41609 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
004ee6da
RL
41610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41611 (eval $ac_try) 2>&5
41612 ac_status=$?
41613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41614 (exit $ac_status); }; } &&
41615 { ac_try='test -s conftest.$ac_objext'
41616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41617 (eval $ac_try) 2>&5
41618 ac_status=$?
41619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41620 (exit $ac_status); }; }; then
41621 ac_cv_func_which_gethostbyname_r=three
41622else
41623 echo "$as_me: failed program was:" >&5
41624sed 's/^/| /' conftest.$ac_ext >&5
41625
41626fi
41627rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41628
41629fi
41630
2f6c5bb5 41631################################################################
004ee6da
RL
41632
41633
41634fi
41635
41636case "$ac_cv_func_which_gethostbyname_r" in
41637 three)
41638 echo "$as_me:$LINENO: result: three" >&5
41639echo "${ECHO_T}three" >&6
41640 cat >>confdefs.h <<\_ACEOF
41641#define HAVE_FUNC_GETHOSTBYNAME_R_3 1
41642_ACEOF
41643
41644 ;;
41645
41646 five)
41647 echo "$as_me:$LINENO: result: five" >&5
41648echo "${ECHO_T}five" >&6
41649 cat >>confdefs.h <<\_ACEOF
41650#define HAVE_FUNC_GETHOSTBYNAME_R_5 1
41651_ACEOF
41652
41653 ;;
41654
41655 six)
41656 echo "$as_me:$LINENO: result: six" >&5
41657echo "${ECHO_T}six" >&6
41658 cat >>confdefs.h <<\_ACEOF
41659#define HAVE_FUNC_GETHOSTBYNAME_R_6 1
41660_ACEOF
41661
41662 ;;
41663
41664 no)
41665 echo "$as_me:$LINENO: result: cannot find function declaration in netdb.h" >&5
41666echo "${ECHO_T}cannot find function declaration in netdb.h" >&6
41667 ;;
41668
41669 unknown)
41670 echo "$as_me:$LINENO: result: can't tell" >&5
41671echo "${ECHO_T}can't tell" >&6
41672 ;;
41673
41674 *)
41675 { { echo "$as_me:$LINENO: error: internal error" >&5
41676echo "$as_me: error: internal error" >&2;}
41677 { (exit 1); exit 1; }; }
41678 ;;
41679esac
41680
5ec3bc43
JS
41681ac_ext=cc
41682ac_cpp='$CXXCPP $CPPFLAGS'
41683ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41684ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41685ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
004ee6da
RL
41686
41687
41688
41689 if test "x$ac_cv_func_which_gethostbyname_r" = "xno" -o \
ec3edcc9 41690 "x$ac_cv_func_which_gethostbyname_r" = "xunknown" ; then
004ee6da
RL
41691 echo "$as_me:$LINENO: checking for gethostbyname" >&5
41692echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
41693if test "${ac_cv_func_gethostbyname+set}" = set; then
41694 echo $ECHO_N "(cached) $ECHO_C" >&6
41695else
41696 cat >conftest.$ac_ext <<_ACEOF
41697/* confdefs.h. */
41698_ACEOF
41699cat confdefs.h >>conftest.$ac_ext
41700cat >>conftest.$ac_ext <<_ACEOF
41701/* end confdefs.h. */
41702/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
41703 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41704#define gethostbyname innocuous_gethostbyname
41705
41706/* System header to define __stub macros and hopefully few prototypes,
41707 which can conflict with char gethostbyname (); below.
41708 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41709 <limits.h> exists even on freestanding compilers. */
41710
41711#ifdef __STDC__
41712# include <limits.h>
41713#else
41714# include <assert.h>
41715#endif
41716
41717#undef gethostbyname
41718
41719/* Override any gcc2 internal prototype to avoid an error. */
41720#ifdef __cplusplus
41721extern "C"
41722{
41723#endif
41724/* We use char because int might match the return type of a gcc2
41725 builtin and then its argument prototype would still apply. */
41726char gethostbyname ();
41727/* The GNU C library defines this for functions which it implements
41728 to always fail with ENOSYS. Some functions are actually named
41729 something starting with __ and the normal name is an alias. */
41730#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
41731choke me
41732#else
41733char (*f) () = gethostbyname;
41734#endif
41735#ifdef __cplusplus
41736}
41737#endif
41738
41739int
41740main ()
41741{
41742return f != gethostbyname;
41743 ;
41744 return 0;
41745}
41746_ACEOF
41747rm -f conftest.$ac_objext conftest$ac_exeext
41748if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41749 (eval $ac_link) 2>conftest.er1
41750 ac_status=$?
41751 grep -v '^ *+' conftest.er1 >conftest.err
41752 rm -f conftest.er1
41753 cat conftest.err >&5
41754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41755 (exit $ac_status); } &&
bb9e79c0 41756 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
41757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41758 (eval $ac_try) 2>&5
41759 ac_status=$?
41760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41761 (exit $ac_status); }; } &&
41762 { ac_try='test -s conftest$ac_exeext'
41763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41764 (eval $ac_try) 2>&5
41765 ac_status=$?
41766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41767 (exit $ac_status); }; }; then
41768 ac_cv_func_gethostbyname=yes
41769else
41770 echo "$as_me: failed program was:" >&5
41771sed 's/^/| /' conftest.$ac_ext >&5
41772
41773ac_cv_func_gethostbyname=no
41774fi
41775rm -f conftest.err conftest.$ac_objext \
41776 conftest$ac_exeext conftest.$ac_ext
41777fi
41778echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
41779echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
41780if test $ac_cv_func_gethostbyname = yes; then
41781 cat >>confdefs.h <<\_ACEOF
41782#define HAVE_GETHOSTBYNAME 1
41783_ACEOF
41784
41785fi
41786
41787 fi
3ecd9f92 41788
81c330c6
VZ
41789echo "$as_me:$LINENO: checking how many arguments getservbyname_r() takes" >&5
41790echo $ECHO_N "checking how many arguments getservbyname_r() takes... $ECHO_C" >&6
41791if test "${ac_cv_func_which_getservbyname_r+set}" = set; then
004ee6da
RL
41792 echo $ECHO_N "(cached) $ECHO_C" >&6
41793else
3ecd9f92
MW
41794
41795 cat >conftest.$ac_ext <<_ACEOF
004ee6da
RL
41796/* confdefs.h. */
41797_ACEOF
41798cat confdefs.h >>conftest.$ac_ext
41799cat >>conftest.$ac_ext <<_ACEOF
41800/* end confdefs.h. */
81c330c6 41801#include <netdb.h>
004ee6da
RL
41802int
41803main ()
41804{
41805
81c330c6
VZ
41806 char *name;
41807 char *proto;
41808 struct servent *se, *res;
41809 char buffer[2048];
41810 int buflen = 2048;
41811 (void) getservbyname_r(name, proto, se, buffer, buflen, &res)
004ee6da
RL
41812
41813 ;
41814 return 0;
41815}
41816_ACEOF
41817rm -f conftest.$ac_objext
41818if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41819 (eval $ac_compile) 2>conftest.er1
41820 ac_status=$?
41821 grep -v '^ *+' conftest.er1 >conftest.err
41822 rm -f conftest.er1
41823 cat conftest.err >&5
41824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41825 (exit $ac_status); } &&
bb9e79c0 41826 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
41827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41828 (eval $ac_try) 2>&5
41829 ac_status=$?
41830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41831 (exit $ac_status); }; } &&
41832 { ac_try='test -s conftest.$ac_objext'
41833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41834 (eval $ac_try) 2>&5
41835 ac_status=$?
41836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41837 (exit $ac_status); }; }; then
81c330c6 41838 ac_cv_func_which_getservbyname_r=six
004ee6da
RL
41839else
41840 echo "$as_me: failed program was:" >&5
41841sed 's/^/| /' conftest.$ac_ext >&5
41842
3ecd9f92 41843
81c330c6 41844 cat >conftest.$ac_ext <<_ACEOF
004ee6da
RL
41845/* confdefs.h. */
41846_ACEOF
41847cat confdefs.h >>conftest.$ac_ext
41848cat >>conftest.$ac_ext <<_ACEOF
41849/* end confdefs.h. */
81c330c6 41850#include <netdb.h>
004ee6da
RL
41851int
41852main ()
41853{
41854
81c330c6
VZ
41855 char *name;
41856 char *proto;
41857 struct servent *se;
41858 char buffer[2048];
41859 int buflen = 2048;
41860 (void) getservbyname_r(name, proto, se, buffer, buflen)
004ee6da
RL
41861
41862 ;
41863 return 0;
41864}
41865_ACEOF
41866rm -f conftest.$ac_objext
41867if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41868 (eval $ac_compile) 2>conftest.er1
41869 ac_status=$?
41870 grep -v '^ *+' conftest.er1 >conftest.err
41871 rm -f conftest.er1
41872 cat conftest.err >&5
41873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41874 (exit $ac_status); } &&
bb9e79c0 41875 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
41876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41877 (eval $ac_try) 2>&5
41878 ac_status=$?
41879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41880 (exit $ac_status); }; } &&
41881 { ac_try='test -s conftest.$ac_objext'
41882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41883 (eval $ac_try) 2>&5
41884 ac_status=$?
41885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41886 (exit $ac_status); }; }; then
81c330c6 41887 ac_cv_func_which_getservbyname_r=five
004ee6da
RL
41888else
41889 echo "$as_me: failed program was:" >&5
41890sed 's/^/| /' conftest.$ac_ext >&5
41891
3ecd9f92 41892
81c330c6 41893 cat >conftest.$ac_ext <<_ACEOF
004ee6da
RL
41894/* confdefs.h. */
41895_ACEOF
41896cat confdefs.h >>conftest.$ac_ext
41897cat >>conftest.$ac_ext <<_ACEOF
41898/* end confdefs.h. */
81c330c6 41899#include <netdb.h>
004ee6da
RL
41900int
41901main ()
41902{
41903
81c330c6
VZ
41904 char *name;
41905 char *proto;
41906 struct servent *se;
41907 struct servent_data data;
41908 (void) getservbyname_r(name, proto, se, &data);
004ee6da
RL
41909
41910 ;
41911 return 0;
41912}
41913_ACEOF
41914rm -f conftest.$ac_objext
41915if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41916 (eval $ac_compile) 2>conftest.er1
41917 ac_status=$?
41918 grep -v '^ *+' conftest.er1 >conftest.err
41919 rm -f conftest.er1
41920 cat conftest.err >&5
41921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41922 (exit $ac_status); } &&
bb9e79c0 41923 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
41924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41925 (eval $ac_try) 2>&5
41926 ac_status=$?
41927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41928 (exit $ac_status); }; } &&
41929 { ac_try='test -s conftest.$ac_objext'
41930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41931 (eval $ac_try) 2>&5
41932 ac_status=$?
41933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41934 (exit $ac_status); }; }; then
81c330c6 41935 ac_cv_func_which_getservbyname_r=four
004ee6da
RL
41936else
41937 echo "$as_me: failed program was:" >&5
41938sed 's/^/| /' conftest.$ac_ext >&5
41939
41940ac_cv_func_which_getservbyname_r=no
81c330c6 41941
004ee6da
RL
41942fi
41943rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41944
3ecd9f92 41945
004ee6da
RL
41946fi
41947rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41948
3ecd9f92 41949
004ee6da
RL
41950fi
41951rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3ecd9f92 41952
004ee6da 41953
3ecd9f92
MW
41954fi
41955echo "$as_me:$LINENO: result: $ac_cv_func_which_getservbyname_r" >&5
41956echo "${ECHO_T}$ac_cv_func_which_getservbyname_r" >&6
004ee6da
RL
41957
41958if test $ac_cv_func_which_getservbyname_r = six; then
41959 cat >>confdefs.h <<\_ACEOF
41960#define HAVE_FUNC_GETSERVBYNAME_R_6 1
41961_ACEOF
41962
41963elif test $ac_cv_func_which_getservbyname_r = five; then
41964 cat >>confdefs.h <<\_ACEOF
41965#define HAVE_FUNC_GETSERVBYNAME_R_5 1
41966_ACEOF
41967
41968elif test $ac_cv_func_which_getservbyname_r = four; then
41969 cat >>confdefs.h <<\_ACEOF
41970#define HAVE_FUNC_GETSERVBYNAME_R_4 1
41971_ACEOF
41972
004ee6da
RL
41973fi
41974
41975
41976 if test "x$ac_cv_func_which_getservbyname_r" = "xno" -o \
ec3edcc9 41977 "x$ac_cv_func_which_getservbyname_r" = "xunknown" ; then
004ee6da
RL
41978
41979for ac_func in getservbyname
41980do
41981as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41982echo "$as_me:$LINENO: checking for $ac_func" >&5
41983echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41984if eval "test \"\${$as_ac_var+set}\" = set"; then
41985 echo $ECHO_N "(cached) $ECHO_C" >&6
41986else
41987 cat >conftest.$ac_ext <<_ACEOF
41988/* confdefs.h. */
41989_ACEOF
41990cat confdefs.h >>conftest.$ac_ext
41991cat >>conftest.$ac_ext <<_ACEOF
41992/* end confdefs.h. */
41993/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41994 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41995#define $ac_func innocuous_$ac_func
41996
41997/* System header to define __stub macros and hopefully few prototypes,
41998 which can conflict with char $ac_func (); below.
41999 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42000 <limits.h> exists even on freestanding compilers. */
42001
42002#ifdef __STDC__
42003# include <limits.h>
42004#else
42005# include <assert.h>
42006#endif
42007
42008#undef $ac_func
42009
42010/* Override any gcc2 internal prototype to avoid an error. */
42011#ifdef __cplusplus
42012extern "C"
42013{
42014#endif
42015/* We use char because int might match the return type of a gcc2
42016 builtin and then its argument prototype would still apply. */
42017char $ac_func ();
42018/* The GNU C library defines this for functions which it implements
42019 to always fail with ENOSYS. Some functions are actually named
42020 something starting with __ and the normal name is an alias. */
42021#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42022choke me
42023#else
42024char (*f) () = $ac_func;
42025#endif
42026#ifdef __cplusplus
42027}
42028#endif
42029
42030int
42031main ()
42032{
42033return f != $ac_func;
42034 ;
42035 return 0;
42036}
42037_ACEOF
42038rm -f conftest.$ac_objext conftest$ac_exeext
42039if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42040 (eval $ac_link) 2>conftest.er1
42041 ac_status=$?
42042 grep -v '^ *+' conftest.er1 >conftest.err
42043 rm -f conftest.er1
42044 cat conftest.err >&5
42045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42046 (exit $ac_status); } &&
bb9e79c0 42047 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
42048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42049 (eval $ac_try) 2>&5
42050 ac_status=$?
42051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42052 (exit $ac_status); }; } &&
42053 { ac_try='test -s conftest$ac_exeext'
42054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42055 (eval $ac_try) 2>&5
42056 ac_status=$?
42057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42058 (exit $ac_status); }; }; then
42059 eval "$as_ac_var=yes"
42060else
42061 echo "$as_me: failed program was:" >&5
42062sed 's/^/| /' conftest.$ac_ext >&5
42063
42064eval "$as_ac_var=no"
42065fi
42066rm -f conftest.err conftest.$ac_objext \
42067 conftest$ac_exeext conftest.$ac_ext
42068fi
42069echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42070echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42071if test `eval echo '${'$as_ac_var'}'` = yes; then
42072 cat >>confdefs.h <<_ACEOF
42073#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42074_ACEOF
42075 cat >>confdefs.h <<\_ACEOF
42076#define HAVE_GETSERVBYNAME 1
42077_ACEOF
42078
42079fi
42080done
42081
42082 fi
42083
004ee6da
RL
42084if test "$wxUSE_THREADS" = "yes"; then
42085 cat >>confdefs.h <<\_ACEOF
42086#define wxUSE_THREADS 1
42087_ACEOF
42088
42089
42090 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
42091else
56632e81 42092 if test "$wx_cv_func_strtok_r" = "yes"; then
004ee6da
RL
42093 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
42094echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
42095 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
42096 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_REENTRANT"
42097 echo "$as_me:$LINENO: result: yes" >&5
42098echo "${ECHO_T}yes" >&6
42099 else
42100 echo "$as_me:$LINENO: result: no" >&5
42101echo "${ECHO_T}no" >&6
42102 fi
42103 fi
42104fi
42105
42106if test "$WXGTK20" = 1 ; then
42107 cat >>confdefs.h <<_ACEOF
42108#define __WXGTK20__ $WXGTK20
42109_ACEOF
42110
42111 WXGTK12=1
42112fi
42113
42114if test "$WXGTK12" = 1 ; then
42115 cat >>confdefs.h <<_ACEOF
42116#define __WXGTK12__ $WXGTK12
42117_ACEOF
42118
42119fi
42120
42121if test "$WXGTK127" = 1 ; then
42122 cat >>confdefs.h <<_ACEOF
42123#define __WXGTK127__ $WXGTK127
42124_ACEOF
42125
42126fi
42127
42128if test "$WXGPE" = 1 ; then
42129 cat >>confdefs.h <<_ACEOF
42130#define __WXGPE__ $WXGPE
42131_ACEOF
42132
42133fi
42134
42135DEBUG_CFLAGS=
42136if test "$wxUSE_DEBUG_INFO" = "yes" ; then
42137 DEBUG_CFLAGS="-g"
42138 wxUSE_OPTIMISE=no
42139fi
42140
42141if test "$wxUSE_DEBUG_GDB" = "yes" ; then
42142 wxUSE_DEBUG_INFO=yes
42143 if test "$GCC" = yes; then
42144 DEBUG_CFLAGS="-ggdb"
42145 fi
42146fi
42147
42148if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
42149 cat >>confdefs.h <<\_ACEOF
42150#define WXDEBUG 1
42151_ACEOF
42152
42153 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D__WXDEBUG__"
42154else
42155 if test "$wxUSE_GTK" = 1 ; then
99879bbf
MR
42156 if test "x$wxGTK_VERSION" = "x1" ; then
42157 CPPFLAGS="-DGTK_NO_CHECK_CASTS $CPPFLAGS"
42158 fi
004ee6da
RL
42159 fi
42160fi
42161
42162if test "$wxUSE_MEM_TRACING" = "yes" ; then
42163 cat >>confdefs.h <<\_ACEOF
42164#define wxUSE_MEMORY_TRACING 1
42165_ACEOF
42166
42167 cat >>confdefs.h <<\_ACEOF
42168#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
42169_ACEOF
42170
42171 cat >>confdefs.h <<\_ACEOF
42172#define wxUSE_DEBUG_NEW_ALWAYS 1
42173_ACEOF
42174
42175 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
42176fi
42177
42178if test "$wxUSE_DMALLOC" = "yes" ; then
42179 DMALLOC_LIBS="-ldmallocthcxx"
42180fi
42181
42182PROFILE_FLAGS=
42183if test "$wxUSE_PROFILE" = "yes" ; then
42184 PROFILE_FLAGS=" -pg"
42185fi
42186
42187if test "$GCC" = "yes" ; then
42188 if test "$wxUSE_NO_RTTI" = "yes" ; then
42189 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-rtti"
42190 fi
42191 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
42192 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-exceptions"
42193 fi
42194 if test "$wxUSE_PERMISSIVE" = "yes" ; then
42195 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -fpermissive"
42196 fi
42197
42198 case "${host}" in
42199 powerpc*-*-aix* )
42200 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mminimal-toc"
42201 ;;
42202 *-hppa* )
42203 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -ffunction-sections"
42204 ;;
42205 esac
42206fi
42207
42208OPTIMISE_CFLAGS=
42209if test "$wxUSE_OPTIMISE" = "no" ; then
42210 if test "$GCC" = yes ; then
42211 OPTIMISE_CFLAGS="-O0"
42212 fi
42213else
42214 if test "$GCC" = yes ; then
e5efa97e
VZ
42215 case "${host}" in
42216 *-pc-os2_emx | *-pc-os2-emx )
42217 OPTIMISE_CFLAGS="-O2"
42218 ;;
42219 *)
42220 OPTIMISE_CFLAGS="-O2 -fno-strict-aliasing"
42221 ;;
42222 esac
004ee6da
RL
42223 else
42224 OPTIMISE_CFLAGS="-O"
42225 fi
42226fi
42227
42228
42229if test "x$WXWIN_COMPATIBILITY_2_4" = "xyes"; then
42230 cat >>confdefs.h <<\_ACEOF
42231#define WXWIN_COMPATIBILITY_2_4 1
42232_ACEOF
42233
42234
42235 WXWIN_COMPATIBILITY_2_6="yes"
42236fi
42237
42238if test "x$WXWIN_COMPATIBILITY_2_6" != "xno"; then
42239 cat >>confdefs.h <<\_ACEOF
42240#define WXWIN_COMPATIBILITY_2_6 1
42241_ACEOF
42242
42243fi
42244
42245
42246if test "$wxUSE_GUI" = "yes"; then
42247 cat >>confdefs.h <<\_ACEOF
42248#define wxUSE_GUI 1
42249_ACEOF
42250
42251
42252 fi
42253
42254
42255if test "$wxUSE_UNIX" = "yes"; then
42256 cat >>confdefs.h <<\_ACEOF
42257#define wxUSE_UNIX 1
42258_ACEOF
42259
42260fi
42261
42262
42263if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
42264
42265 HAVE_DL_FUNCS=0
42266 HAVE_SHL_FUNCS=0
42267 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
42268 if test "$USE_DARWIN" = 1; then
42269 HAVE_DL_FUNCS=1
42270 elif test "$USE_DOS" = 1; then
42271 HAVE_DL_FUNCS=0
42272 else
42273
42274for ac_func in dlopen
42275do
42276as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42277echo "$as_me:$LINENO: checking for $ac_func" >&5
42278echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42279if eval "test \"\${$as_ac_var+set}\" = set"; then
42280 echo $ECHO_N "(cached) $ECHO_C" >&6
42281else
42282 cat >conftest.$ac_ext <<_ACEOF
42283/* confdefs.h. */
42284_ACEOF
42285cat confdefs.h >>conftest.$ac_ext
42286cat >>conftest.$ac_ext <<_ACEOF
42287/* end confdefs.h. */
42288/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42289 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42290#define $ac_func innocuous_$ac_func
42291
42292/* System header to define __stub macros and hopefully few prototypes,
42293 which can conflict with char $ac_func (); below.
42294 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42295 <limits.h> exists even on freestanding compilers. */
42296
42297#ifdef __STDC__
42298# include <limits.h>
42299#else
42300# include <assert.h>
42301#endif
42302
42303#undef $ac_func
42304
42305/* Override any gcc2 internal prototype to avoid an error. */
42306#ifdef __cplusplus
42307extern "C"
42308{
42309#endif
42310/* We use char because int might match the return type of a gcc2
42311 builtin and then its argument prototype would still apply. */
42312char $ac_func ();
42313/* The GNU C library defines this for functions which it implements
42314 to always fail with ENOSYS. Some functions are actually named
42315 something starting with __ and the normal name is an alias. */
42316#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42317choke me
42318#else
42319char (*f) () = $ac_func;
42320#endif
42321#ifdef __cplusplus
42322}
42323#endif
42324
42325int
42326main ()
42327{
42328return f != $ac_func;
a848cd7e
SC
42329 ;
42330 return 0;
42331}
42332_ACEOF
42333rm -f conftest.$ac_objext conftest$ac_exeext
42334if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 42335 (eval $ac_link) 2>conftest.er1
a848cd7e 42336 ac_status=$?
ac1cb8d3
VS
42337 grep -v '^ *+' conftest.er1 >conftest.err
42338 rm -f conftest.er1
42339 cat conftest.err >&5
a848cd7e
SC
42340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42341 (exit $ac_status); } &&
bb9e79c0 42342 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42344 (eval $ac_try) 2>&5
42345 ac_status=$?
42346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42347 (exit $ac_status); }; } &&
42348 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
42349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42350 (eval $ac_try) 2>&5
42351 ac_status=$?
42352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42353 (exit $ac_status); }; }; then
42354 eval "$as_ac_var=yes"
42355else
42356 echo "$as_me: failed program was:" >&5
42357sed 's/^/| /' conftest.$ac_ext >&5
42358
42359eval "$as_ac_var=no"
42360fi
ac1cb8d3
VS
42361rm -f conftest.err conftest.$ac_objext \
42362 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
42363fi
42364echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42365echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42366if test `eval echo '${'$as_ac_var'}'` = yes; then
42367 cat >>confdefs.h <<_ACEOF
42368#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42369_ACEOF
42370
42371 cat >>confdefs.h <<\_ACEOF
42372#define HAVE_DLOPEN 1
42373_ACEOF
42374
42375 HAVE_DL_FUNCS=1
42376
42377else
42378
42379 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
42380echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
42381if test "${ac_cv_lib_dl_dlopen+set}" = set; then
42382 echo $ECHO_N "(cached) $ECHO_C" >&6
42383else
42384 ac_check_lib_save_LIBS=$LIBS
42385LIBS="-ldl $LIBS"
42386cat >conftest.$ac_ext <<_ACEOF
42387/* confdefs.h. */
42388_ACEOF
42389cat confdefs.h >>conftest.$ac_ext
42390cat >>conftest.$ac_ext <<_ACEOF
42391/* end confdefs.h. */
42392
42393/* Override any gcc2 internal prototype to avoid an error. */
42394#ifdef __cplusplus
42395extern "C"
42396#endif
42397/* We use char because int might match the return type of a gcc2
42398 builtin and then its argument prototype would still apply. */
42399char dlopen ();
42400int
42401main ()
42402{
42403dlopen ();
42404 ;
42405 return 0;
42406}
42407_ACEOF
42408rm -f conftest.$ac_objext conftest$ac_exeext
42409if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 42410 (eval $ac_link) 2>conftest.er1
a848cd7e 42411 ac_status=$?
ac1cb8d3
VS
42412 grep -v '^ *+' conftest.er1 >conftest.err
42413 rm -f conftest.er1
42414 cat conftest.err >&5
a848cd7e
SC
42415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42416 (exit $ac_status); } &&
bb9e79c0 42417 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42419 (eval $ac_try) 2>&5
42420 ac_status=$?
42421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42422 (exit $ac_status); }; } &&
42423 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
42424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42425 (eval $ac_try) 2>&5
42426 ac_status=$?
42427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42428 (exit $ac_status); }; }; then
42429 ac_cv_lib_dl_dlopen=yes
42430else
42431 echo "$as_me: failed program was:" >&5
42432sed 's/^/| /' conftest.$ac_ext >&5
42433
42434ac_cv_lib_dl_dlopen=no
42435fi
ac1cb8d3
VS
42436rm -f conftest.err conftest.$ac_objext \
42437 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
42438LIBS=$ac_check_lib_save_LIBS
42439fi
42440echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
42441echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
42442if test $ac_cv_lib_dl_dlopen = yes; then
42443
42444 cat >>confdefs.h <<\_ACEOF
42445#define HAVE_DLOPEN 1
42446_ACEOF
42447
42448 HAVE_DL_FUNCS=1
42449 DL_LINK=" -ldl$DL_LINK"
42450
42451else
42452
42453
42454for ac_func in shl_load
42455do
42456as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42457echo "$as_me:$LINENO: checking for $ac_func" >&5
42458echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42459if eval "test \"\${$as_ac_var+set}\" = set"; then
42460 echo $ECHO_N "(cached) $ECHO_C" >&6
42461else
42462 cat >conftest.$ac_ext <<_ACEOF
42463/* confdefs.h. */
42464_ACEOF
42465cat confdefs.h >>conftest.$ac_ext
42466cat >>conftest.$ac_ext <<_ACEOF
42467/* end confdefs.h. */
ac1cb8d3
VS
42468/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42469 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42470#define $ac_func innocuous_$ac_func
42471
a848cd7e
SC
42472/* System header to define __stub macros and hopefully few prototypes,
42473 which can conflict with char $ac_func (); below.
42474 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42475 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 42476
a848cd7e
SC
42477#ifdef __STDC__
42478# include <limits.h>
42479#else
42480# include <assert.h>
42481#endif
ac1cb8d3
VS
42482
42483#undef $ac_func
42484
a848cd7e
SC
42485/* Override any gcc2 internal prototype to avoid an error. */
42486#ifdef __cplusplus
42487extern "C"
42488{
42489#endif
42490/* We use char because int might match the return type of a gcc2
42491 builtin and then its argument prototype would still apply. */
42492char $ac_func ();
42493/* The GNU C library defines this for functions which it implements
42494 to always fail with ENOSYS. Some functions are actually named
42495 something starting with __ and the normal name is an alias. */
42496#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42497choke me
42498#else
42499char (*f) () = $ac_func;
42500#endif
42501#ifdef __cplusplus
42502}
42503#endif
42504
42505int
42506main ()
42507{
42508return f != $ac_func;
42509 ;
42510 return 0;
42511}
42512_ACEOF
42513rm -f conftest.$ac_objext conftest$ac_exeext
42514if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 42515 (eval $ac_link) 2>conftest.er1
a848cd7e 42516 ac_status=$?
ac1cb8d3
VS
42517 grep -v '^ *+' conftest.er1 >conftest.err
42518 rm -f conftest.er1
42519 cat conftest.err >&5
a848cd7e
SC
42520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42521 (exit $ac_status); } &&
bb9e79c0 42522 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42524 (eval $ac_try) 2>&5
42525 ac_status=$?
42526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42527 (exit $ac_status); }; } &&
42528 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
42529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42530 (eval $ac_try) 2>&5
42531 ac_status=$?
42532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42533 (exit $ac_status); }; }; then
42534 eval "$as_ac_var=yes"
42535else
42536 echo "$as_me: failed program was:" >&5
42537sed 's/^/| /' conftest.$ac_ext >&5
42538
42539eval "$as_ac_var=no"
42540fi
ac1cb8d3
VS
42541rm -f conftest.err conftest.$ac_objext \
42542 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
42543fi
42544echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42545echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42546if test `eval echo '${'$as_ac_var'}'` = yes; then
42547 cat >>confdefs.h <<_ACEOF
42548#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42549_ACEOF
42550
42551 cat >>confdefs.h <<\_ACEOF
42552#define HAVE_SHL_LOAD 1
42553_ACEOF
42554
42555 HAVE_SHL_FUNCS=1
42556
42557else
42558
42559 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
42560echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
42561if test "${ac_cv_lib_shl_load_dld+set}" = set; then
42562 echo $ECHO_N "(cached) $ECHO_C" >&6
42563else
42564 ac_check_lib_save_LIBS=$LIBS
42565LIBS="-lshl_load $LIBS"
42566cat >conftest.$ac_ext <<_ACEOF
42567/* confdefs.h. */
42568_ACEOF
42569cat confdefs.h >>conftest.$ac_ext
42570cat >>conftest.$ac_ext <<_ACEOF
42571/* end confdefs.h. */
42572
42573/* Override any gcc2 internal prototype to avoid an error. */
42574#ifdef __cplusplus
42575extern "C"
42576#endif
42577/* We use char because int might match the return type of a gcc2
42578 builtin and then its argument prototype would still apply. */
42579char dld ();
42580int
42581main ()
42582{
42583dld ();
42584 ;
42585 return 0;
42586}
42587_ACEOF
42588rm -f conftest.$ac_objext conftest$ac_exeext
42589if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 42590 (eval $ac_link) 2>conftest.er1
a848cd7e 42591 ac_status=$?
ac1cb8d3
VS
42592 grep -v '^ *+' conftest.er1 >conftest.err
42593 rm -f conftest.er1
42594 cat conftest.err >&5
a848cd7e
SC
42595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42596 (exit $ac_status); } &&
bb9e79c0 42597 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42599 (eval $ac_try) 2>&5
42600 ac_status=$?
42601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42602 (exit $ac_status); }; } &&
42603 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
42604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42605 (eval $ac_try) 2>&5
42606 ac_status=$?
42607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42608 (exit $ac_status); }; }; then
42609 ac_cv_lib_shl_load_dld=yes
42610else
42611 echo "$as_me: failed program was:" >&5
42612sed 's/^/| /' conftest.$ac_ext >&5
42613
42614ac_cv_lib_shl_load_dld=no
42615fi
ac1cb8d3
VS
42616rm -f conftest.err conftest.$ac_objext \
42617 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
42618LIBS=$ac_check_lib_save_LIBS
42619fi
42620echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
42621echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
42622if test $ac_cv_lib_shl_load_dld = yes; then
42623
42624 HAVE_SHL_FUNCS=1
42625 DL_LINK=" -ldld$DL_LINK"
42626
42627fi
42628
42629
42630fi
42631done
42632
42633
42634fi
42635
42636
42637fi
42638done
42639
42640
42641 if test "$HAVE_DL_FUNCS" = 1; then
42642
42643for ac_func in dlerror
42644do
42645as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42646echo "$as_me:$LINENO: checking for $ac_func" >&5
42647echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42648if eval "test \"\${$as_ac_var+set}\" = set"; then
42649 echo $ECHO_N "(cached) $ECHO_C" >&6
42650else
42651 cat >conftest.$ac_ext <<_ACEOF
42652/* confdefs.h. */
42653_ACEOF
42654cat confdefs.h >>conftest.$ac_ext
42655cat >>conftest.$ac_ext <<_ACEOF
42656/* end confdefs.h. */
ac1cb8d3
VS
42657/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42658 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42659#define $ac_func innocuous_$ac_func
42660
a848cd7e
SC
42661/* System header to define __stub macros and hopefully few prototypes,
42662 which can conflict with char $ac_func (); below.
42663 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42664 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 42665
a848cd7e
SC
42666#ifdef __STDC__
42667# include <limits.h>
42668#else
42669# include <assert.h>
42670#endif
ac1cb8d3
VS
42671
42672#undef $ac_func
42673
a848cd7e
SC
42674/* Override any gcc2 internal prototype to avoid an error. */
42675#ifdef __cplusplus
42676extern "C"
42677{
42678#endif
42679/* We use char because int might match the return type of a gcc2
42680 builtin and then its argument prototype would still apply. */
42681char $ac_func ();
42682/* The GNU C library defines this for functions which it implements
42683 to always fail with ENOSYS. Some functions are actually named
42684 something starting with __ and the normal name is an alias. */
42685#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42686choke me
42687#else
42688char (*f) () = $ac_func;
42689#endif
42690#ifdef __cplusplus
42691}
42692#endif
42693
42694int
42695main ()
42696{
42697return f != $ac_func;
42698 ;
42699 return 0;
42700}
42701_ACEOF
42702rm -f conftest.$ac_objext conftest$ac_exeext
42703if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 42704 (eval $ac_link) 2>conftest.er1
a848cd7e 42705 ac_status=$?
ac1cb8d3
VS
42706 grep -v '^ *+' conftest.er1 >conftest.err
42707 rm -f conftest.er1
42708 cat conftest.err >&5
a848cd7e
SC
42709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42710 (exit $ac_status); } &&
bb9e79c0 42711 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42713 (eval $ac_try) 2>&5
42714 ac_status=$?
42715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42716 (exit $ac_status); }; } &&
42717 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
42718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42719 (eval $ac_try) 2>&5
42720 ac_status=$?
42721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42722 (exit $ac_status); }; }; then
42723 eval "$as_ac_var=yes"
42724else
42725 echo "$as_me: failed program was:" >&5
42726sed 's/^/| /' conftest.$ac_ext >&5
42727
42728eval "$as_ac_var=no"
42729fi
ac1cb8d3
VS
42730rm -f conftest.err conftest.$ac_objext \
42731 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
42732fi
42733echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42734echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42735if test `eval echo '${'$as_ac_var'}'` = yes; then
42736 cat >>confdefs.h <<_ACEOF
42737#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42738_ACEOF
42739 cat >>confdefs.h <<\_ACEOF
42740#define HAVE_DLERROR 1
42741_ACEOF
42742
42743else
42744
42745 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
42746echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
42747if test "${ac_cv_lib_dl_dlerror+set}" = set; then
42748 echo $ECHO_N "(cached) $ECHO_C" >&6
42749else
42750 ac_check_lib_save_LIBS=$LIBS
42751LIBS="-ldl $LIBS"
42752cat >conftest.$ac_ext <<_ACEOF
42753/* confdefs.h. */
42754_ACEOF
42755cat confdefs.h >>conftest.$ac_ext
42756cat >>conftest.$ac_ext <<_ACEOF
42757/* end confdefs.h. */
42758
42759/* Override any gcc2 internal prototype to avoid an error. */
42760#ifdef __cplusplus
42761extern "C"
42762#endif
42763/* We use char because int might match the return type of a gcc2
42764 builtin and then its argument prototype would still apply. */
42765char dlerror ();
42766int
42767main ()
42768{
42769dlerror ();
42770 ;
42771 return 0;
42772}
42773_ACEOF
42774rm -f conftest.$ac_objext conftest$ac_exeext
42775if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 42776 (eval $ac_link) 2>conftest.er1
a848cd7e 42777 ac_status=$?
ac1cb8d3
VS
42778 grep -v '^ *+' conftest.er1 >conftest.err
42779 rm -f conftest.er1
42780 cat conftest.err >&5
a848cd7e
SC
42781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42782 (exit $ac_status); } &&
bb9e79c0 42783 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42785 (eval $ac_try) 2>&5
42786 ac_status=$?
42787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42788 (exit $ac_status); }; } &&
42789 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
42790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42791 (eval $ac_try) 2>&5
42792 ac_status=$?
42793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42794 (exit $ac_status); }; }; then
42795 ac_cv_lib_dl_dlerror=yes
42796else
42797 echo "$as_me: failed program was:" >&5
42798sed 's/^/| /' conftest.$ac_ext >&5
42799
42800ac_cv_lib_dl_dlerror=no
42801fi
ac1cb8d3
VS
42802rm -f conftest.err conftest.$ac_objext \
42803 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
42804LIBS=$ac_check_lib_save_LIBS
42805fi
42806echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
42807echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
42808if test $ac_cv_lib_dl_dlerror = yes; then
42809 cat >>confdefs.h <<\_ACEOF
42810#define HAVE_DLERROR 1
42811_ACEOF
42812
42813fi
42814
42815
42816
42817fi
42818done
42819
42820 fi
42821 fi
42822
42823 if test "$HAVE_DL_FUNCS" = 0; then
42824 if test "$HAVE_SHL_FUNCS" = 0; then
47a7e797 42825 if test "$USE_UNIX" = 1 -o "$USE_DOS" = 1; then
a848cd7e
SC
42826 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
42827echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
42828 wxUSE_DYNAMIC_LOADER=no
42829 wxUSE_DYNLIB_CLASS=no
42830 else
42831 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
42832echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
42833 fi
42834 fi
42835 fi
42836 fi
42837fi
42838
42839if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
42840 cat >>confdefs.h <<\_ACEOF
42841#define wxUSE_DYNAMIC_LOADER 1
42842_ACEOF
42843
42844fi
42845if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
42846 cat >>confdefs.h <<\_ACEOF
42847#define wxUSE_DYNLIB_CLASS 1
42848_ACEOF
42849
42850fi
42851
42852
42853
42854if test "$wxUSE_PLUGINS" = "yes" ; then
42855 if test "$wxUSE_SHARED" = "no" ; then
42856 { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
42857echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
42858 wxUSE_PLUGINS=no
42859 fi
42860 if test "$wxUSE_MONOLITHIC" = "yes" ; then
42861 { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
42862echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
42863 wxUSE_PLUGINS=no
42864 fi
42865 if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
42866 { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
42867echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
42868 wxUSE_PLUGINS=no
42869 fi
42870 if test "$wxUSE_PLUGINS" = "yes" ; then
42871 cat >>confdefs.h <<\_ACEOF
42872#define wxUSE_PLUGINS 1
42873_ACEOF
42874
42875 fi
42876fi
42877
42878
42879if test "$wxUSE_STL" = "yes"; then
42880 cat >>confdefs.h <<\_ACEOF
42881#define wxUSE_STL 1
42882_ACEOF
42883
42884fi
42885
42886if test "$wxUSE_APPLE_IEEE" = "yes"; then
42887 cat >>confdefs.h <<\_ACEOF
42888#define wxUSE_APPLE_IEEE 1
42889_ACEOF
42890
42891fi
42892
42893if test "$wxUSE_TIMER" = "yes"; then
42894 cat >>confdefs.h <<\_ACEOF
42895#define wxUSE_TIMER 1
42896_ACEOF
42897
42898fi
42899
9c112555 42900if test "$USE_UNIX" = "1" ; then
31714590
VZ
42901 echo "$as_me:$LINENO: checking for SNDCTL_DSP_SPEED in sys/soundcard.h" >&5
42902echo $ECHO_N "checking for SNDCTL_DSP_SPEED in sys/soundcard.h... $ECHO_C" >&6
d12aef51 42903if test "${ac_cv_header_sys_soundcard+set}" = set; then
a848cd7e 42904 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e 42905else
d12aef51
VZ
42906
42907 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
42908/* confdefs.h. */
42909_ACEOF
42910cat confdefs.h >>conftest.$ac_ext
42911cat >>conftest.$ac_ext <<_ACEOF
42912/* end confdefs.h. */
d12aef51 42913
31714590 42914 #include <sys/ioctl.h>
d12aef51
VZ
42915 #include <sys/soundcard.h>
42916
42917int
42918main ()
42919{
42920
31714590 42921 ioctl(0, SNDCTL_DSP_SPEED, 0);
d12aef51
VZ
42922
42923 ;
42924 return 0;
42925}
a848cd7e 42926_ACEOF
d12aef51
VZ
42927rm -f conftest.$ac_objext conftest$ac_exeext
42928if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42929 (eval $ac_link) 2>conftest.er1
a848cd7e 42930 ac_status=$?
ac1cb8d3
VS
42931 grep -v '^ *+' conftest.er1 >conftest.err
42932 rm -f conftest.er1
42933 cat conftest.err >&5
a848cd7e
SC
42934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42935 (exit $ac_status); } &&
bb9e79c0 42936 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42938 (eval $ac_try) 2>&5
42939 ac_status=$?
42940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42941 (exit $ac_status); }; } &&
d12aef51 42942 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
42943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42944 (eval $ac_try) 2>&5
42945 ac_status=$?
42946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42947 (exit $ac_status); }; }; then
d12aef51 42948 ac_cv_header_sys_soundcard=yes
a848cd7e
SC
42949else
42950 echo "$as_me: failed program was:" >&5
42951sed 's/^/| /' conftest.$ac_ext >&5
42952
a848cd7e 42953
d12aef51
VZ
42954 saveLibs="$LIBS"
42955 LIBS="$saveLibs -lossaudio"
42956 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
42957/* confdefs.h. */
42958_ACEOF
42959cat confdefs.h >>conftest.$ac_ext
42960cat >>conftest.$ac_ext <<_ACEOF
42961/* end confdefs.h. */
d12aef51 42962
31714590 42963 #include <sys/ioctl.h>
d12aef51
VZ
42964 #include <sys/soundcard.h>
42965
42966int
42967main ()
42968{
42969
31714590 42970 ioctl(0, SNDCTL_DSP_SPEED, 0);
d12aef51
VZ
42971
42972 ;
42973 return 0;
42974}
a848cd7e 42975_ACEOF
d12aef51
VZ
42976rm -f conftest.$ac_objext conftest$ac_exeext
42977if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42978 (eval $ac_link) 2>conftest.er1
a848cd7e
SC
42979 ac_status=$?
42980 grep -v '^ *+' conftest.er1 >conftest.err
42981 rm -f conftest.er1
42982 cat conftest.err >&5
42983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d12aef51 42984 (exit $ac_status); } &&
bb9e79c0 42985 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
d12aef51
VZ
42986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42987 (eval $ac_try) 2>&5
42988 ac_status=$?
42989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42990 (exit $ac_status); }; } &&
42991 { ac_try='test -s conftest$ac_exeext'
42992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42993 (eval $ac_try) 2>&5
42994 ac_status=$?
42995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42996 (exit $ac_status); }; }; then
42997 ac_cv_header_sys_soundcard=yes
a848cd7e
SC
42998else
42999 echo "$as_me: failed program was:" >&5
43000sed 's/^/| /' conftest.$ac_ext >&5
43001
a848cd7e 43002
d12aef51
VZ
43003 LIBS="$saveLibs"
43004 ac_cv_header_sys_soundcard=no
43005
43006
a848cd7e 43007fi
d12aef51
VZ
43008rm -f conftest.err conftest.$ac_objext \
43009 conftest$ac_exeext conftest.$ac_ext
43010
a848cd7e
SC
43011
43012fi
d12aef51
VZ
43013rm -f conftest.err conftest.$ac_objext \
43014 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
43015
43016fi
d12aef51
VZ
43017echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard" >&5
43018echo "${ECHO_T}$ac_cv_header_sys_soundcard" >&6
a848cd7e 43019
d12aef51
VZ
43020 if test "$ac_cv_header_sys_soundcard" = "yes"; then
43021 cat >>confdefs.h <<\_ACEOF
43022#define HAVE_SYS_SOUNDCARD_H 1
43023_ACEOF
a848cd7e 43024
d12aef51
VZ
43025 else
43026 DISABLED_CONTRIB="$DISABLED_CONTRIB mmedia"
43027 fi
9c112555
MW
43028fi
43029WITH_PLUGIN_SDL=0
43030if test "$wxUSE_SOUND" = "yes"; then
43031 if test "$USE_UNIX" = "1" ; then
a848cd7e
SC
43032 if test "$wxUSE_LIBSDL" != "no"; then
43033
43034# Check whether --with-sdl-prefix or --without-sdl-prefix was given.
43035if test "${with_sdl_prefix+set}" = set; then
43036 withval="$with_sdl_prefix"
43037 sdl_prefix="$withval"
43038else
43039 sdl_prefix=""
43040fi;
43041
43042# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
43043if test "${with_sdl_exec_prefix+set}" = set; then
43044 withval="$with_sdl_exec_prefix"
43045 sdl_exec_prefix="$withval"
43046else
43047 sdl_exec_prefix=""
43048fi;
43049# Check whether --enable-sdltest or --disable-sdltest was given.
43050if test "${enable_sdltest+set}" = set; then
43051 enableval="$enable_sdltest"
43052
43053else
43054 enable_sdltest=yes
43055fi;
43056
43057 if test x$sdl_exec_prefix != x ; then
3ecd9f92
MW
43058 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
43059 if test x${SDL_CONFIG+set} != xset ; then
43060 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
43061 fi
a848cd7e
SC
43062 fi
43063 if test x$sdl_prefix != x ; then
3ecd9f92
MW
43064 sdl_args="$sdl_args --prefix=$sdl_prefix"
43065 if test x${SDL_CONFIG+set} != xset ; then
43066 SDL_CONFIG=$sdl_prefix/bin/sdl-config
43067 fi
a848cd7e
SC
43068 fi
43069
3ecd9f92
MW
43070 if test "x$prefix" != xNONE; then
43071 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
43072 fi
a848cd7e
SC
43073 # Extract the first word of "sdl-config", so it can be a program name with args.
43074set dummy sdl-config; ac_word=$2
43075echo "$as_me:$LINENO: checking for $ac_word" >&5
43076echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43077if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
43078 echo $ECHO_N "(cached) $ECHO_C" >&6
43079else
43080 case $SDL_CONFIG in
43081 [\\/]* | ?:[\\/]*)
43082 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
43083 ;;
43084 *)
43085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43086for as_dir in $PATH
43087do
43088 IFS=$as_save_IFS
43089 test -z "$as_dir" && as_dir=.
43090 for ac_exec_ext in '' $ac_executable_extensions; do
43091 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43092 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
43093 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43094 break 2
43095 fi
43096done
43097done
43098
43099 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
43100 ;;
43101esac
43102fi
43103SDL_CONFIG=$ac_cv_path_SDL_CONFIG
43104
43105if test -n "$SDL_CONFIG"; then
43106 echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
43107echo "${ECHO_T}$SDL_CONFIG" >&6
43108else
43109 echo "$as_me:$LINENO: result: no" >&5
43110echo "${ECHO_T}no" >&6
43111fi
43112
43113 min_sdl_version=1.2.0
43114 echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
43115echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
43116 no_sdl=""
43117 if test "$SDL_CONFIG" = "no" ; then
43118 no_sdl=yes
43119 else
43120 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
43121 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
43122
43123 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
43124 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
43125 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
43126 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
43127 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
43128 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
43129 if test "x$enable_sdltest" = "xyes" ; then
43130 ac_save_CFLAGS="$CFLAGS"
94acd38e 43131 ac_save_CXXFLAGS="$CXXFLAGS"
a848cd7e
SC
43132 ac_save_LIBS="$LIBS"
43133 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 43134 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
43135 LIBS="$LIBS $SDL_LIBS"
43136 rm -f conf.sdltest
43137 if test "$cross_compiling" = yes; then
43138 echo $ac_n "cross compiling; assumed OK... $ac_c"
43139else
43140 cat >conftest.$ac_ext <<_ACEOF
43141/* confdefs.h. */
43142_ACEOF
43143cat confdefs.h >>conftest.$ac_ext
43144cat >>conftest.$ac_ext <<_ACEOF
43145/* end confdefs.h. */
43146
43147#include <stdio.h>
43148#include <stdlib.h>
43149#include <string.h>
43150#include "SDL.h"
43151
43152char*
43153my_strdup (char *str)
43154{
43155 char *new_str;
43156
43157 if (str)
43158 {
43159 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
43160 strcpy (new_str, str);
43161 }
43162 else
43163 new_str = NULL;
43164
43165 return new_str;
43166}
43167
43168int main (int argc, char *argv[])
43169{
43170 int major, minor, micro;
43171 char *tmp_version;
43172
43173 /* This hangs on some systems (?)
43174 system ("touch conf.sdltest");
43175 */
43176 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
43177
43178 /* HP/UX 9 (%@#!) writes to sscanf strings */
43179 tmp_version = my_strdup("$min_sdl_version");
43180 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
43181 printf("%s, bad version string\n", "$min_sdl_version");
43182 exit(1);
43183 }
43184
43185 if (($sdl_major_version > major) ||
43186 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
43187 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
43188 {
43189 return 0;
43190 }
43191 else
43192 {
43193 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
43194 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
43195 printf("*** best to upgrade to the required version.\n");
43196 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
43197 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
43198 printf("*** config.cache before re-running configure\n");
43199 return 1;
43200 }
43201}
43202
43203
43204_ACEOF
43205rm -f conftest$ac_exeext
43206if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43207 (eval $ac_link) 2>&5
43208 ac_status=$?
43209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43210 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
43211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43212 (eval $ac_try) 2>&5
43213 ac_status=$?
43214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43215 (exit $ac_status); }; }; then
43216 :
43217else
43218 echo "$as_me: program exited with status $ac_status" >&5
43219echo "$as_me: failed program was:" >&5
43220sed 's/^/| /' conftest.$ac_ext >&5
43221
43222( exit $ac_status )
43223no_sdl=yes
43224fi
ac1cb8d3 43225rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
43226fi
43227 CFLAGS="$ac_save_CFLAGS"
94acd38e 43228 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
43229 LIBS="$ac_save_LIBS"
43230 fi
43231 fi
43232 if test "x$no_sdl" = x ; then
43233 echo "$as_me:$LINENO: result: yes" >&5
43234echo "${ECHO_T}yes" >&6
43235
43236 EXTRALIBS_SDL="$SDL_LIBS"
c92ad099 43237 CXXFLAGS="$SDL_CFLAGS $CXXFLAGS"
a848cd7e
SC
43238 cat >>confdefs.h <<\_ACEOF
43239#define wxUSE_LIBSDL 1
43240_ACEOF
43241
43242
43243 else
43244 echo "$as_me:$LINENO: result: no" >&5
43245echo "${ECHO_T}no" >&6
43246 if test "$SDL_CONFIG" = "no" ; then
43247 echo "*** The sdl-config script installed by SDL could not be found"
43248 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
43249 echo "*** your path, or set the SDL_CONFIG environment variable to the"
43250 echo "*** full path to sdl-config."
43251 else
43252 if test -f conf.sdltest ; then
43253 :
43254 else
43255 echo "*** Could not run SDL test program, checking why..."
43256 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 43257 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
43258 LIBS="$LIBS $SDL_LIBS"
43259 cat >conftest.$ac_ext <<_ACEOF
43260/* confdefs.h. */
43261_ACEOF
43262cat confdefs.h >>conftest.$ac_ext
43263cat >>conftest.$ac_ext <<_ACEOF
43264/* end confdefs.h. */
43265
43266#include <stdio.h>
43267#include "SDL.h"
43268
43269int main(int argc, char *argv[])
43270{ return 0; }
43271#undef main
43272#define main K_and_R_C_main
43273
43274int
43275main ()
43276{
43277 return 0;
43278 ;
43279 return 0;
43280}
43281_ACEOF
43282rm -f conftest.$ac_objext conftest$ac_exeext
43283if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 43284 (eval $ac_link) 2>conftest.er1
a848cd7e 43285 ac_status=$?
ac1cb8d3
VS
43286 grep -v '^ *+' conftest.er1 >conftest.err
43287 rm -f conftest.er1
43288 cat conftest.err >&5
a848cd7e
SC
43289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43290 (exit $ac_status); } &&
bb9e79c0 43291 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43293 (eval $ac_try) 2>&5
43294 ac_status=$?
43295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43296 (exit $ac_status); }; } &&
43297 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
43298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43299 (eval $ac_try) 2>&5
43300 ac_status=$?
43301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43302 (exit $ac_status); }; }; then
43303 echo "*** The test program compiled, but did not run. This usually means"
43304 echo "*** that the run-time linker is not finding SDL or finding the wrong"
43305 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
43306 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
43307 echo "*** to the installed location Also, make sure you have run ldconfig if that"
43308 echo "*** is required on your system"
43309 echo "***"
43310 echo "*** If you have an old version installed, it is best to remove it, although"
43311 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
43312else
43313 echo "$as_me: failed program was:" >&5
43314sed 's/^/| /' conftest.$ac_ext >&5
43315
43316 echo "*** The test program failed to compile or link. See the file config.log for the"
43317 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
43318 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
43319 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
43320fi
ac1cb8d3
VS
43321rm -f conftest.err conftest.$ac_objext \
43322 conftest$ac_exeext conftest.$ac_ext
a848cd7e 43323 CFLAGS="$ac_save_CFLAGS"
94acd38e 43324 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
43325 LIBS="$ac_save_LIBS"
43326 fi
43327 fi
43328 SDL_CFLAGS=""
43329 SDL_LIBS=""
43330 wxUSE_LIBSDL="no"
43331 fi
43332
43333
43334 rm -f conf.sdltest
43335
43336 if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
43337 WITH_PLUGIN_SDL=1
43338 fi
43339 fi
480b9f18
VZ
43340 else
43341 if test "$wxUSE_MGL" = 1; then
43342 { echo "$as_me:$LINENO: WARNING: wxSound not supported in MGL under DOS... disabled" >&5
43343echo "$as_me: WARNING: wxSound not supported in MGL under DOS... disabled" >&2;}
43344 wxUSE_SOUND="no"
43345 fi
a848cd7e 43346 fi
480b9f18 43347fi
a848cd7e 43348
480b9f18 43349if test "$wxUSE_SOUND" = "yes"; then
a848cd7e
SC
43350 cat >>confdefs.h <<\_ACEOF
43351#define wxUSE_SOUND 1
43352_ACEOF
43353
43354 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
43355fi
43356
d1c38808 43357if test "$WXGTK20" = 1; then
d6fb5527
VZ
43358
43359
43360if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
43361 if test -n "$ac_tool_prefix"; then
43362 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
43363set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
43364echo "$as_me:$LINENO: checking for $ac_word" >&5
43365echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43366if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
43367 echo $ECHO_N "(cached) $ECHO_C" >&6
43368else
43369 case $PKG_CONFIG in
43370 [\\/]* | ?:[\\/]*)
43371 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
43372 ;;
43373 *)
43374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43375for as_dir in $PATH
43376do
43377 IFS=$as_save_IFS
43378 test -z "$as_dir" && as_dir=.
43379 for ac_exec_ext in '' $ac_executable_extensions; do
43380 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43381 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
43382 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43383 break 2
43384 fi
43385done
43386done
43387
43388 ;;
43389esac
43390fi
43391PKG_CONFIG=$ac_cv_path_PKG_CONFIG
43392
43393if test -n "$PKG_CONFIG"; then
43394 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
43395echo "${ECHO_T}$PKG_CONFIG" >&6
43396else
43397 echo "$as_me:$LINENO: result: no" >&5
43398echo "${ECHO_T}no" >&6
43399fi
43400
43401fi
43402if test -z "$ac_cv_path_PKG_CONFIG"; then
43403 ac_pt_PKG_CONFIG=$PKG_CONFIG
43404 # Extract the first word of "pkg-config", so it can be a program name with args.
43405set dummy pkg-config; ac_word=$2
43406echo "$as_me:$LINENO: checking for $ac_word" >&5
43407echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43408if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
43409 echo $ECHO_N "(cached) $ECHO_C" >&6
43410else
43411 case $ac_pt_PKG_CONFIG in
43412 [\\/]* | ?:[\\/]*)
43413 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
43414 ;;
43415 *)
43416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43417for as_dir in $PATH
43418do
43419 IFS=$as_save_IFS
43420 test -z "$as_dir" && as_dir=.
43421 for ac_exec_ext in '' $ac_executable_extensions; do
43422 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43423 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
43424 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43425 break 2
43426 fi
43427done
43428done
43429
43430 ;;
43431esac
43432fi
43433ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
43434
43435if test -n "$ac_pt_PKG_CONFIG"; then
43436 echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
43437echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
43438else
43439 echo "$as_me:$LINENO: result: no" >&5
43440echo "${ECHO_T}no" >&6
43441fi
43442
43443 PKG_CONFIG=$ac_pt_PKG_CONFIG
43444else
43445 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
43446fi
43447
43448fi
43449if test -n "$PKG_CONFIG"; then
43450 _pkg_min_version=0.9.0
43451 echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
43452echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
43453 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
43454 echo "$as_me:$LINENO: result: yes" >&5
43455echo "${ECHO_T}yes" >&6
43456 else
43457 echo "$as_me:$LINENO: result: no" >&5
43458echo "${ECHO_T}no" >&6
43459 PKG_CONFIG=""
43460 fi
43461
43462fi
43463
d1c38808
VZ
43464 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
43465 if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
43466
43467
3ecd9f92
MW
43468pkg_failed=no
43469echo "$as_me:$LINENO: checking for LIBGNOMEPRINTUI" >&5
43470echo $ECHO_N "checking for LIBGNOMEPRINTUI... $ECHO_C" >&6
d1c38808 43471
3ecd9f92
MW
43472if test -n "$PKG_CONFIG"; then
43473 if test -n "$LIBGNOMEPRINTUI_CFLAGS"; then
43474 pkg_cv_LIBGNOMEPRINTUI_CFLAGS="$LIBGNOMEPRINTUI_CFLAGS"
43475 else
43476 if test -n "$PKG_CONFIG" && \
43477 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5
43478 ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5
43479 ac_status=$?
43480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43481 (exit $ac_status); }; then
43482 pkg_cv_LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8" 2>/dev/null`
d1c38808 43483else
3ecd9f92
MW
43484 pkg_failed=yes
43485fi
43486 fi
43487else
43488 pkg_failed=untried
d1c38808 43489fi
d1c38808 43490if test -n "$PKG_CONFIG"; then
3ecd9f92
MW
43491 if test -n "$LIBGNOMEPRINTUI_LIBS"; then
43492 pkg_cv_LIBGNOMEPRINTUI_LIBS="$LIBGNOMEPRINTUI_LIBS"
43493 else
43494 if test -n "$PKG_CONFIG" && \
43495 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5
43496 ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5
43497 ac_status=$?
43498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43499 (exit $ac_status); }; then
43500 pkg_cv_LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8" 2>/dev/null`
d1c38808 43501else
3ecd9f92
MW
43502 pkg_failed=yes
43503fi
43504 fi
43505else
43506 pkg_failed=untried
d1c38808
VZ
43507fi
43508
d1c38808 43509
d1c38808 43510
3ecd9f92 43511if test $pkg_failed = yes; then
d1c38808 43512
3ecd9f92
MW
43513if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
43514 _pkg_short_errors_supported=yes
43515else
43516 _pkg_short_errors_supported=no
43517fi
43518 if test $_pkg_short_errors_supported = yes; then
43519 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
43520 else
43521 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
d1c38808 43522 fi
3ecd9f92
MW
43523 # Put the nasty error message in config.log where it belongs
43524 echo "$LIBGNOMEPRINTUI_PKG_ERRORS" >&5
d1c38808
VZ
43525
43526
3ecd9f92
MW
43527 { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
43528echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
43529 wxUSE_LIBGNOMEPRINT="no"
d1c38808
VZ
43530
43531
3ecd9f92 43532elif test $pkg_failed = untried; then
d1c38808
VZ
43533
43534 { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
43535echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
43536 wxUSE_LIBGNOMEPRINT="no"
43537
43538
3ecd9f92
MW
43539else
43540 LIBGNOMEPRINTUI_CFLAGS=$pkg_cv_LIBGNOMEPRINTUI_CFLAGS
43541 LIBGNOMEPRINTUI_LIBS=$pkg_cv_LIBGNOMEPRINTUI_LIBS
43542 echo "$as_me:$LINENO: result: yes" >&5
43543echo "${ECHO_T}yes" >&6
d1c38808 43544
3ecd9f92
MW
43545 CXXFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CXXFLAGS"
43546 cat >>confdefs.h <<\_ACEOF
43547#define wxUSE_LIBGNOMEPRINT 1
43548_ACEOF
43549
43550
43551fi
d1c38808
VZ
43552 fi
43553 fi
d1c38808 43554
2b850ae1
RR
43555 if test "$wxUSE_MIMETYPE" = "yes" ; then
43556 if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
43557
43558
3ecd9f92
MW
43559pkg_failed=no
43560echo "$as_me:$LINENO: checking for GNOMEVFS" >&5
43561echo $ECHO_N "checking for GNOMEVFS... $ECHO_C" >&6
2b850ae1 43562
3ecd9f92
MW
43563if test -n "$PKG_CONFIG"; then
43564 if test -n "$GNOMEVFS_CFLAGS"; then
43565 pkg_cv_GNOMEVFS_CFLAGS="$GNOMEVFS_CFLAGS"
43566 else
43567 if test -n "$PKG_CONFIG" && \
43568 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5
43569 ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5
43570 ac_status=$?
43571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43572 (exit $ac_status); }; then
43573 pkg_cv_GNOMEVFS_CFLAGS=`$PKG_CONFIG --cflags "gnome-vfs-2.0 >= 2.0" 2>/dev/null`
2b850ae1 43574else
3ecd9f92
MW
43575 pkg_failed=yes
43576fi
43577 fi
43578else
43579 pkg_failed=untried
2b850ae1 43580fi
2b850ae1 43581if test -n "$PKG_CONFIG"; then
3ecd9f92
MW
43582 if test -n "$GNOMEVFS_LIBS"; then
43583 pkg_cv_GNOMEVFS_LIBS="$GNOMEVFS_LIBS"
43584 else
43585 if test -n "$PKG_CONFIG" && \
43586 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5
43587 ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5
43588 ac_status=$?
43589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43590 (exit $ac_status); }; then
43591 pkg_cv_GNOMEVFS_LIBS=`$PKG_CONFIG --libs "gnome-vfs-2.0 >= 2.0" 2>/dev/null`
2b850ae1 43592else
3ecd9f92
MW
43593 pkg_failed=yes
43594fi
43595 fi
43596else
43597 pkg_failed=untried
2b850ae1
RR
43598fi
43599
2b850ae1 43600
2b850ae1 43601
3ecd9f92 43602if test $pkg_failed = yes; then
2b850ae1 43603
3ecd9f92
MW
43604if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
43605 _pkg_short_errors_supported=yes
43606else
43607 _pkg_short_errors_supported=no
43608fi
43609 if test $_pkg_short_errors_supported = yes; then
43610 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
43611 else
43612 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
2b850ae1 43613 fi
3ecd9f92
MW
43614 # Put the nasty error message in config.log where it belongs
43615 echo "$GNOMEVFS_PKG_ERRORS" >&5
2b850ae1
RR
43616
43617
3ecd9f92
MW
43618 { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
43619echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
43620 wxUSE_LIBGNOMEVFS="no"
2b850ae1
RR
43621
43622
3ecd9f92 43623elif test $pkg_failed = untried; then
2b850ae1
RR
43624
43625 { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
43626echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
43627 wxUSE_LIBGNOMEVFS="no"
43628
43629
3ecd9f92
MW
43630else
43631 GNOMEVFS_CFLAGS=$pkg_cv_GNOMEVFS_CFLAGS
43632 GNOMEVFS_LIBS=$pkg_cv_GNOMEVFS_LIBS
43633 echo "$as_me:$LINENO: result: yes" >&5
43634echo "${ECHO_T}yes" >&6
2b850ae1 43635
3ecd9f92
MW
43636 CXXFLAGS="$GNOMEVFS_CFLAGS $CXXFLAGS"
43637 cat >>confdefs.h <<\_ACEOF
43638#define wxUSE_LIBGNOMEVFS 1
43639_ACEOF
43640
43641
43642fi
2b850ae1
RR
43643 fi
43644 fi
2b850ae1 43645
3565d135
RR
43646 if test "$wxUSE_LIBHILDON" = "yes" ; then
43647
3ecd9f92
MW
43648pkg_failed=no
43649echo "$as_me:$LINENO: checking for HILDON" >&5
43650echo $ECHO_N "checking for HILDON... $ECHO_C" >&6
3565d135 43651
3ecd9f92
MW
43652if test -n "$PKG_CONFIG"; then
43653 if test -n "$HILDON_CFLAGS"; then
43654 pkg_cv_HILDON_CFLAGS="$HILDON_CFLAGS"
43655 else
43656 if test -n "$PKG_CONFIG" && \
43657 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5
43658 ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5
43659 ac_status=$?
43660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43661 (exit $ac_status); }; then
43662 pkg_cv_HILDON_CFLAGS=`$PKG_CONFIG --cflags "hildon-lgpl >= 0.9" 2>/dev/null`
3565d135 43663else
3ecd9f92
MW
43664 pkg_failed=yes
43665fi
43666 fi
43667else
43668 pkg_failed=untried
3565d135 43669fi
3565d135 43670if test -n "$PKG_CONFIG"; then
3ecd9f92
MW
43671 if test -n "$HILDON_LIBS"; then
43672 pkg_cv_HILDON_LIBS="$HILDON_LIBS"
43673 else
43674 if test -n "$PKG_CONFIG" && \
43675 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5
43676 ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5
43677 ac_status=$?
43678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43679 (exit $ac_status); }; then
43680 pkg_cv_HILDON_LIBS=`$PKG_CONFIG --libs "hildon-lgpl >= 0.9" 2>/dev/null`
3565d135 43681else
3ecd9f92
MW
43682 pkg_failed=yes
43683fi
43684 fi
43685else
43686 pkg_failed=untried
3565d135
RR
43687fi
43688
3565d135 43689
3565d135 43690
3ecd9f92 43691if test $pkg_failed = yes; then
3565d135 43692
3ecd9f92
MW
43693if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
43694 _pkg_short_errors_supported=yes
43695else
43696 _pkg_short_errors_supported=no
43697fi
43698 if test $_pkg_short_errors_supported = yes; then
43699 HILDON_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
43700 else
43701 HILDON_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
3565d135 43702 fi
3ecd9f92
MW
43703 # Put the nasty error message in config.log where it belongs
43704 echo "$HILDON_PKG_ERRORS" >&5
3565d135
RR
43705
43706
3ecd9f92
MW
43707 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
43708echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
43709 wxUSE_LIBHILDON="no"
3565d135 43710
3565d135 43711
3ecd9f92
MW
43712elif test $pkg_failed = untried; then
43713
43714 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
43715echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
43716 wxUSE_LIBHILDON="no"
43717
43718
43719else
43720 HILDON_CFLAGS=$pkg_cv_HILDON_CFLAGS
43721 HILDON_LIBS=$pkg_cv_HILDON_LIBS
43722 echo "$as_me:$LINENO: result: yes" >&5
43723echo "${ECHO_T}yes" >&6
3565d135
RR
43724
43725 EXTRALIBS_HILDON="$HILDON_LIBS"
43726 CXXFLAGS="$CXXFLAGS $HILDON_CFLAGS"
43727 cat >>confdefs.h <<\_ACEOF
43728#define wxUSE_LIBHILDON 1
43729_ACEOF
43730
43731
3ecd9f92 43732fi
3565d135
RR
43733 fi
43734fi
d1c38808 43735
a848cd7e
SC
43736if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
43737 cat >>confdefs.h <<\_ACEOF
43738#define wxUSE_CMDLINE_PARSER 1
43739_ACEOF
43740
43741fi
43742
43743if test "$wxUSE_STOPWATCH" = "yes"; then
43744 cat >>confdefs.h <<\_ACEOF
43745#define wxUSE_STOPWATCH 1
43746_ACEOF
43747
43748fi
43749
43750if test "$wxUSE_DATETIME" = "yes"; then
43751 cat >>confdefs.h <<\_ACEOF
43752#define wxUSE_DATETIME 1
43753_ACEOF
43754
43755fi
43756
43757if test "$wxUSE_FILE" = "yes"; then
43758 cat >>confdefs.h <<\_ACEOF
43759#define wxUSE_FILE 1
43760_ACEOF
43761
43762fi
43763
43764if test "$wxUSE_FFILE" = "yes"; then
43765 cat >>confdefs.h <<\_ACEOF
43766#define wxUSE_FFILE 1
43767_ACEOF
43768
43769fi
43770
9e8e867f 43771if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then
26e422a9
MW
43772 if test "$wxUSE_STREAMS" != yes; then
43773 { echo "$as_me:$LINENO: WARNING: wxArchive requires wxStreams... disabled" >&5
43774echo "$as_me: WARNING: wxArchive requires wxStreams... disabled" >&2;}
916af76f 43775 wxUSE_ARCHIVE_STREAMS=no
26e422a9
MW
43776 else
43777 cat >>confdefs.h <<\_ACEOF
9e8e867f 43778#define wxUSE_ARCHIVE_STREAMS 1
81f90336
MW
43779_ACEOF
43780
26e422a9 43781 fi
81f90336
MW
43782fi
43783
43784if test "$wxUSE_ZIPSTREAM" = "yes"; then
9e8e867f 43785 if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
81f90336
MW
43786 { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5
43787echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;}
43788 elif test "$wxUSE_ZLIB" = "no"; then
43789 { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5
43790echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;}
43791 else
43792 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
43793#define wxUSE_ZIPSTREAM 1
43794_ACEOF
43795
81f90336 43796 fi
a848cd7e
SC
43797fi
43798
26e422a9
MW
43799if test "$wxUSE_TARSTREAM" = "yes"; then
43800 if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
43801 { echo "$as_me:$LINENO: WARNING: wxTar requires wxArchive... disabled" >&5
43802echo "$as_me: WARNING: wxTar requires wxArchive... disabled" >&2;}
43803 else
43804 cat >>confdefs.h <<\_ACEOF
43805#define wxUSE_TARSTREAM 1
43806_ACEOF
43807
43808 fi
43809fi
43810
916af76f 43811if test "$wxUSE_FILESYSTEM" = "yes"; then
f8f6c91a 43812 if test "$wxUSE_STREAMS" != yes -o \( "$wxUSE_FILE" != yes -a "$wxUSE_FFILE" != yes \); then
916af76f
MW
43813 { echo "$as_me:$LINENO: WARNING: wxFileSystem requires wxStreams and wxFile or wxFFile... disabled" >&5
43814echo "$as_me: WARNING: wxFileSystem requires wxStreams and wxFile or wxFFile... disabled" >&2;}
43815 wxUSE_FILESYSTEM=no
f8f6c91a
MW
43816 else
43817 cat >>confdefs.h <<\_ACEOF
916af76f 43818#define wxUSE_FILESYSTEM 1
f8f6c91a
MW
43819_ACEOF
43820
43821 fi
43822fi
43823
26e422a9 43824if test "$wxUSE_FS_ARCHIVE" = "yes"; then
916af76f
MW
43825 if test "$wxUSE_FILESYSTEM" != yes -o "$wxUSE_ARCHIVE_STREAMS" != yes; then
43826 { echo "$as_me:$LINENO: WARNING: wxArchiveFSHandler requires wxArchive and wxFileSystem... disabled" >&5
43827echo "$as_me: WARNING: wxArchiveFSHandler requires wxArchive and wxFileSystem... disabled" >&2;}
26e422a9
MW
43828 else
43829 cat >>confdefs.h <<\_ACEOF
43830#define wxUSE_FS_ARCHIVE 1
43831_ACEOF
43832
43833 fi
43834fi
43835
916af76f
MW
43836if test "$wxUSE_FS_ZIP" = "yes"; then
43837 if test "$wxUSE_FS_ARCHIVE" != yes; then
43838 { echo "$as_me:$LINENO: WARNING: wxZipFSHandler requires wxArchiveFSHandler... disabled" >&5
43839echo "$as_me: WARNING: wxZipFSHandler requires wxArchiveFSHandler... disabled" >&2;}
43840 else
43841 cat >>confdefs.h <<\_ACEOF
43842#define wxUSE_FS_ZIP 1
43843_ACEOF
43844
43845 fi
43846fi
43847
a848cd7e 43848if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
18228ab4
MW
43849 if test "$USE_UNIX" != 1; then
43850 { echo "$as_me:$LINENO: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&5
43851echo "$as_me: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&2;}
43852 wxUSE_ON_FATAL_EXCEPTION=no
43853 else
43854 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
43855#define wxUSE_ON_FATAL_EXCEPTION 1
43856_ACEOF
43857
18228ab4 43858 fi
a848cd7e
SC
43859fi
43860
eaff0f0d
VZ
43861if test "$wxUSE_STACKWALKER" = "yes"; then
43862 cat >>confdefs.h <<\_ACEOF
43863#define wxUSE_STACKWALKER 1
43864_ACEOF
43865
43866fi
43867
36b6448c 43868if test "$wxUSE_DEBUGREPORT" = "yes"; then
18228ab4
MW
43869 if test "$USE_UNIX" != "1" -a "$USE_WIN32" != "1"; then
43870 { echo "$as_me:$LINENO: WARNING: Creating debug reports not currently supported on this system, disabled" >&5
43871echo "$as_me: WARNING: Creating debug reports not currently supported on this system, disabled" >&2;}
dfe0c803
JS
43872 wxUSE_DEBUGREPORT=no
43873 else
43874 cat >>confdefs.h <<\_ACEOF
36b6448c
VZ
43875#define wxUSE_DEBUGREPORT 1
43876_ACEOF
43877
21dfc162
MW
43878 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
43879 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt"
43880 fi
dfe0c803 43881 fi
36b6448c
VZ
43882fi
43883
a848cd7e
SC
43884if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
43885 cat >>confdefs.h <<\_ACEOF
43886#define wxUSE_SNGLINST_CHECKER 1
43887_ACEOF
43888
43889fi
43890
43891if test "$wxUSE_BUSYINFO" = "yes"; then
43892 cat >>confdefs.h <<\_ACEOF
43893#define wxUSE_BUSYINFO 1
43894_ACEOF
43895
43896fi
43897
43898if test "$wxUSE_STD_IOSTREAM" = "yes"; then
43899 cat >>confdefs.h <<\_ACEOF
43900#define wxUSE_STD_IOSTREAM 1
43901_ACEOF
43902
43903fi
43904
59746b65
MW
43905if test "$wxUSE_STD_STRING" = "yes"; then
43906 cat >>confdefs.h <<\_ACEOF
43907#define wxUSE_STD_STRING 1
43908_ACEOF
43909
43910fi
43911
07158944
VZ
43912if test "$wxUSE_STDPATHS" = "yes"; then
43913 cat >>confdefs.h <<\_ACEOF
43914#define wxUSE_STDPATHS 1
43915_ACEOF
43916
43917fi
43918
a848cd7e
SC
43919if test "$wxUSE_TEXTBUFFER" = "yes"; then
43920 cat >>confdefs.h <<\_ACEOF
43921#define wxUSE_TEXTBUFFER 1
43922_ACEOF
43923
43924fi
43925
43926if test "$wxUSE_TEXTFILE" = "yes"; then
43927 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
43928 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
43929echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
43930 else
43931 cat >>confdefs.h <<\_ACEOF
43932#define wxUSE_TEXTFILE 1
43933_ACEOF
43934
43935 fi
43936fi
43937
43938if test "$wxUSE_CONFIG" = "yes" ; then
43939 if test "$wxUSE_TEXTFILE" != "yes"; then
43940 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
43941echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
43942 else
43943 cat >>confdefs.h <<\_ACEOF
43944#define wxUSE_CONFIG 1
89be85c2
VS
43945_ACEOF
43946
43947 cat >>confdefs.h <<\_ACEOF
43948#define wxUSE_CONFIG_NATIVE 1
a848cd7e
SC
43949_ACEOF
43950
43951 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
43952 fi
43953fi
43954
43955if test "$wxUSE_INTL" = "yes" ; then
43956 if test "$wxUSE_FILE" != "yes"; then
43957 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
43958echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
43959 else
43960 cat >>confdefs.h <<\_ACEOF
43961#define wxUSE_INTL 1
43962_ACEOF
43963
43964 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
43965 GUIDIST="$GUIDIST INTL_DIST"
43966 fi
43967fi
43968
43969if test "$wxUSE_LOG" = "yes"; then
43970 cat >>confdefs.h <<\_ACEOF
43971#define wxUSE_LOG 1
43972_ACEOF
43973
43974
43975 if test "$wxUSE_LOGGUI" = "yes"; then
43976 cat >>confdefs.h <<\_ACEOF
43977#define wxUSE_LOGGUI 1
43978_ACEOF
43979
43980 fi
43981
43982 if test "$wxUSE_LOGWINDOW" = "yes"; then
43983 cat >>confdefs.h <<\_ACEOF
43984#define wxUSE_LOGWINDOW 1
43985_ACEOF
43986
43987 fi
43988
43989 if test "$wxUSE_LOGDIALOG" = "yes"; then
43990 cat >>confdefs.h <<\_ACEOF
43991#define wxUSE_LOG_DIALOG 1
43992_ACEOF
43993
43994 fi
0b78747f
MW
43995
43996 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard"
a848cd7e
SC
43997fi
43998
43999if test "$wxUSE_LONGLONG" = "yes"; then
44000 cat >>confdefs.h <<\_ACEOF
44001#define wxUSE_LONGLONG 1
44002_ACEOF
44003
44004fi
44005
44006if test "$wxUSE_GEOMETRY" = "yes"; then
44007 cat >>confdefs.h <<\_ACEOF
44008#define wxUSE_GEOMETRY 1
44009_ACEOF
44010
44011fi
44012
a848cd7e
SC
44013if test "$wxUSE_STREAMS" = "yes" ; then
44014 cat >>confdefs.h <<\_ACEOF
44015#define wxUSE_STREAMS 1
44016_ACEOF
44017
44018fi
44019
8b6682b9
JS
44020if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
44021 cat >>confdefs.h <<\_ACEOF
44022#define wxUSE_PRINTF_POS_PARAMS 1
44023_ACEOF
44024
44025fi
44026
44027
a848cd7e
SC
44028
44029if test "$wxUSE_DATETIME" = "yes"; then
44030
44031for ac_func in strptime
44032do
44033as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44034echo "$as_me:$LINENO: checking for $ac_func" >&5
44035echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44036if eval "test \"\${$as_ac_var+set}\" = set"; then
44037 echo $ECHO_N "(cached) $ECHO_C" >&6
44038else
44039 cat >conftest.$ac_ext <<_ACEOF
44040/* confdefs.h. */
44041_ACEOF
44042cat confdefs.h >>conftest.$ac_ext
44043cat >>conftest.$ac_ext <<_ACEOF
44044/* end confdefs.h. */
ac1cb8d3
VS
44045/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44046 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44047#define $ac_func innocuous_$ac_func
44048
a848cd7e
SC
44049/* System header to define __stub macros and hopefully few prototypes,
44050 which can conflict with char $ac_func (); below.
44051 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44052 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 44053
a848cd7e
SC
44054#ifdef __STDC__
44055# include <limits.h>
44056#else
44057# include <assert.h>
44058#endif
ac1cb8d3
VS
44059
44060#undef $ac_func
44061
a848cd7e
SC
44062/* Override any gcc2 internal prototype to avoid an error. */
44063#ifdef __cplusplus
44064extern "C"
44065{
44066#endif
44067/* We use char because int might match the return type of a gcc2
44068 builtin and then its argument prototype would still apply. */
44069char $ac_func ();
44070/* The GNU C library defines this for functions which it implements
44071 to always fail with ENOSYS. Some functions are actually named
44072 something starting with __ and the normal name is an alias. */
44073#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44074choke me
44075#else
44076char (*f) () = $ac_func;
44077#endif
44078#ifdef __cplusplus
44079}
44080#endif
44081
44082int
44083main ()
44084{
44085return f != $ac_func;
44086 ;
44087 return 0;
44088}
44089_ACEOF
44090rm -f conftest.$ac_objext conftest$ac_exeext
44091if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 44092 (eval $ac_link) 2>conftest.er1
a848cd7e 44093 ac_status=$?
ac1cb8d3
VS
44094 grep -v '^ *+' conftest.er1 >conftest.err
44095 rm -f conftest.er1
44096 cat conftest.err >&5
a848cd7e
SC
44097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44098 (exit $ac_status); } &&
bb9e79c0 44099 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
44100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44101 (eval $ac_try) 2>&5
44102 ac_status=$?
44103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44104 (exit $ac_status); }; } &&
44105 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
44106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44107 (eval $ac_try) 2>&5
44108 ac_status=$?
44109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44110 (exit $ac_status); }; }; then
44111 eval "$as_ac_var=yes"
44112else
44113 echo "$as_me: failed program was:" >&5
44114sed 's/^/| /' conftest.$ac_ext >&5
44115
44116eval "$as_ac_var=no"
44117fi
ac1cb8d3
VS
44118rm -f conftest.err conftest.$ac_objext \
44119 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
44120fi
44121echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44122echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44123if test `eval echo '${'$as_ac_var'}'` = yes; then
44124 cat >>confdefs.h <<_ACEOF
44125#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44126_ACEOF
44127
44128fi
44129done
44130
f536f005
VZ
44131 if test "$ac_cv_func_strptime" = "yes"; then
44132 echo "$as_me:$LINENO: checking for strptime declaration" >&5
44133echo $ECHO_N "checking for strptime declaration... $ECHO_C" >&6
44134if test "${wx_cv_func_strptime_decl+set}" = set; then
44135 echo $ECHO_N "(cached) $ECHO_C" >&6
44136else
44137
f536f005
VZ
44138 cat >conftest.$ac_ext <<_ACEOF
44139/* confdefs.h. */
44140_ACEOF
44141cat confdefs.h >>conftest.$ac_ext
44142cat >>conftest.$ac_ext <<_ACEOF
44143/* end confdefs.h. */
44144
44145 #include <time.h>
44146
44147int
44148main ()
44149{
44150
44151 struct tm t;
44152 strptime("foo", "bar", &t);
44153
44154 ;
44155 return 0;
44156}
44157_ACEOF
44158rm -f conftest.$ac_objext
44159if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44160 (eval $ac_compile) 2>conftest.er1
44161 ac_status=$?
44162 grep -v '^ *+' conftest.er1 >conftest.err
44163 rm -f conftest.er1
44164 cat conftest.err >&5
44165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44166 (exit $ac_status); } &&
bb9e79c0 44167 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
f536f005
VZ
44168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44169 (eval $ac_try) 2>&5
44170 ac_status=$?
44171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44172 (exit $ac_status); }; } &&
44173 { ac_try='test -s conftest.$ac_objext'
44174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44175 (eval $ac_try) 2>&5
44176 ac_status=$?
44177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44178 (exit $ac_status); }; }; then
44179 wx_cv_func_strptime_decl=yes
44180else
44181 echo "$as_me: failed program was:" >&5
44182sed 's/^/| /' conftest.$ac_ext >&5
44183
44184wx_cv_func_strptime_decl=no
44185
44186fi
44187rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f536f005
VZ
44188
44189
44190fi
44191echo "$as_me:$LINENO: result: $wx_cv_func_strptime_decl" >&5
44192echo "${ECHO_T}$wx_cv_func_strptime_decl" >&6
44193 fi
44194 if test "$wx_cv_func_strptime_decl" = "yes"; then
44195 cat >>confdefs.h <<\_ACEOF
44196#define HAVE_STRPTIME_DECL 1
44197_ACEOF
44198
44199 fi
a848cd7e
SC
44200
44201 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
44202echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
44203if test "${wx_cv_var_timezone+set}" = set; then
44204 echo $ECHO_N "(cached) $ECHO_C" >&6
44205else
44206
44207 cat >conftest.$ac_ext <<_ACEOF
44208/* confdefs.h. */
44209_ACEOF
44210cat confdefs.h >>conftest.$ac_ext
44211cat >>conftest.$ac_ext <<_ACEOF
44212/* end confdefs.h. */
44213
44214 #include <time.h>
44215
44216int
44217main ()
44218{
44219
44220 int tz;
44221 tz = timezone;
44222
44223 ;
44224 return 0;
44225}
44226_ACEOF
44227rm -f conftest.$ac_objext
44228if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 44229 (eval $ac_compile) 2>conftest.er1
a848cd7e 44230 ac_status=$?
ac1cb8d3
VS
44231 grep -v '^ *+' conftest.er1 >conftest.err
44232 rm -f conftest.er1
44233 cat conftest.err >&5
a848cd7e
SC
44234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44235 (exit $ac_status); } &&
bb9e79c0 44236 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
44237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44238 (eval $ac_try) 2>&5
44239 ac_status=$?
44240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44241 (exit $ac_status); }; } &&
44242 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
44243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44244 (eval $ac_try) 2>&5
44245 ac_status=$?
44246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44247 (exit $ac_status); }; }; then
44248
44249 wx_cv_var_timezone=timezone
44250
44251else
44252 echo "$as_me: failed program was:" >&5
44253sed 's/^/| /' conftest.$ac_ext >&5
44254
44255
44256 cat >conftest.$ac_ext <<_ACEOF
44257/* confdefs.h. */
44258_ACEOF
44259cat confdefs.h >>conftest.$ac_ext
44260cat >>conftest.$ac_ext <<_ACEOF
44261/* end confdefs.h. */
44262
44263 #include <time.h>
44264
44265int
44266main ()
44267{
44268
44269 int tz;
44270 tz = _timezone;
44271
44272 ;
44273 return 0;
44274}
44275_ACEOF
44276rm -f conftest.$ac_objext
44277if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 44278 (eval $ac_compile) 2>conftest.er1
a848cd7e 44279 ac_status=$?
ac1cb8d3
VS
44280 grep -v '^ *+' conftest.er1 >conftest.err
44281 rm -f conftest.er1
44282 cat conftest.err >&5
a848cd7e
SC
44283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44284 (exit $ac_status); } &&
bb9e79c0 44285 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
44286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44287 (eval $ac_try) 2>&5
44288 ac_status=$?
44289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44290 (exit $ac_status); }; } &&
44291 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
44292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44293 (eval $ac_try) 2>&5
44294 ac_status=$?
44295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44296 (exit $ac_status); }; }; then
44297
44298 wx_cv_var_timezone=_timezone
44299
44300else
44301 echo "$as_me: failed program was:" >&5
44302sed 's/^/| /' conftest.$ac_ext >&5
44303
44304
44305 cat >conftest.$ac_ext <<_ACEOF
44306/* confdefs.h. */
44307_ACEOF
44308cat confdefs.h >>conftest.$ac_ext
44309cat >>conftest.$ac_ext <<_ACEOF
44310/* end confdefs.h. */
44311
44312 #include <time.h>
44313
44314int
44315main ()
44316{
44317
44318 int tz;
44319 tz = __timezone;
44320
44321 ;
44322 return 0;
44323}
44324_ACEOF
44325rm -f conftest.$ac_objext
44326if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 44327 (eval $ac_compile) 2>conftest.er1
a848cd7e 44328 ac_status=$?
ac1cb8d3
VS
44329 grep -v '^ *+' conftest.er1 >conftest.err
44330 rm -f conftest.er1
44331 cat conftest.err >&5
a848cd7e
SC
44332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44333 (exit $ac_status); } &&
bb9e79c0 44334 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
44335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44336 (eval $ac_try) 2>&5
44337 ac_status=$?
44338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44339 (exit $ac_status); }; } &&
44340 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
44341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44342 (eval $ac_try) 2>&5
44343 ac_status=$?
44344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44345 (exit $ac_status); }; }; then
44346
44347 wx_cv_var_timezone=__timezone
44348
44349else
44350 echo "$as_me: failed program was:" >&5
44351sed 's/^/| /' conftest.$ac_ext >&5
44352
44353
44354 if test "$USE_DOS" = 0 ; then
44355 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
44356echo "$as_me: WARNING: no timezone variable" >&2;}
44357 fi
44358
44359
44360fi
ac1cb8d3 44361rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
44362
44363
44364fi
ac1cb8d3 44365rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
44366
44367
44368fi
ac1cb8d3 44369rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
44370
44371
44372fi
44373echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
44374echo "${ECHO_T}$wx_cv_var_timezone" >&6
44375
44376 if test "x$wx_cv_var_timezone" != x ; then
44377 cat >>confdefs.h <<_ACEOF
44378#define WX_TIMEZONE $wx_cv_var_timezone
44379_ACEOF
44380
44381 fi
44382
44383
44384for ac_func in localtime
44385do
44386as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44387echo "$as_me:$LINENO: checking for $ac_func" >&5
44388echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44389if eval "test \"\${$as_ac_var+set}\" = set"; then
44390 echo $ECHO_N "(cached) $ECHO_C" >&6
44391else
44392 cat >conftest.$ac_ext <<_ACEOF
44393/* confdefs.h. */
44394_ACEOF
44395cat confdefs.h >>conftest.$ac_ext
44396cat >>conftest.$ac_ext <<_ACEOF
44397/* end confdefs.h. */
ac1cb8d3
VS
44398/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44399 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44400#define $ac_func innocuous_$ac_func
44401
a848cd7e
SC
44402/* System header to define __stub macros and hopefully few prototypes,
44403 which can conflict with char $ac_func (); below.
44404 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44405 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 44406
a848cd7e
SC
44407#ifdef __STDC__
44408# include <limits.h>
44409#else
44410# include <assert.h>
44411#endif
ac1cb8d3
VS
44412
44413#undef $ac_func
44414
a848cd7e
SC
44415/* Override any gcc2 internal prototype to avoid an error. */
44416#ifdef __cplusplus
44417extern "C"
44418{
44419#endif
44420/* We use char because int might match the return type of a gcc2
44421 builtin and then its argument prototype would still apply. */
44422char $ac_func ();
44423/* The GNU C library defines this for functions which it implements
44424 to always fail with ENOSYS. Some functions are actually named
44425 something starting with __ and the normal name is an alias. */
44426#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44427choke me
44428#else
44429char (*f) () = $ac_func;
44430#endif
44431#ifdef __cplusplus
44432}
44433#endif
44434
44435int
44436main ()
44437{
44438return f != $ac_func;
44439 ;
44440 return 0;
44441}
44442_ACEOF
44443rm -f conftest.$ac_objext conftest$ac_exeext
44444if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 44445 (eval $ac_link) 2>conftest.er1
a848cd7e 44446 ac_status=$?
ac1cb8d3
VS
44447 grep -v '^ *+' conftest.er1 >conftest.err
44448 rm -f conftest.er1
44449 cat conftest.err >&5
a848cd7e
SC
44450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44451 (exit $ac_status); } &&
bb9e79c0 44452 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
44453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44454 (eval $ac_try) 2>&5
44455 ac_status=$?
44456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44457 (exit $ac_status); }; } &&
44458 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
44459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44460 (eval $ac_try) 2>&5
44461 ac_status=$?
44462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44463 (exit $ac_status); }; }; then
44464 eval "$as_ac_var=yes"
44465else
44466 echo "$as_me: failed program was:" >&5
44467sed 's/^/| /' conftest.$ac_ext >&5
44468
44469eval "$as_ac_var=no"
44470fi
ac1cb8d3
VS
44471rm -f conftest.err conftest.$ac_objext \
44472 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
44473fi
44474echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44475echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44476if test `eval echo '${'$as_ac_var'}'` = yes; then
44477 cat >>confdefs.h <<_ACEOF
44478#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44479_ACEOF
44480
44481fi
44482done
44483
44484
44485 if test "$ac_cv_func_localtime" = "yes"; then
44486 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
44487echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
44488if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
44489 echo $ECHO_N "(cached) $ECHO_C" >&6
44490else
44491
44492 cat >conftest.$ac_ext <<_ACEOF
44493/* confdefs.h. */
44494_ACEOF
44495cat confdefs.h >>conftest.$ac_ext
44496cat >>conftest.$ac_ext <<_ACEOF
44497/* end confdefs.h. */
44498
44499 #include <time.h>
44500
44501int
44502main ()
44503{
44504
44505 struct tm tm;
44506 tm.tm_gmtoff++;
44507
44508 ;
44509 return 0;
44510}
44511_ACEOF
44512rm -f conftest.$ac_objext
44513if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 44514 (eval $ac_compile) 2>conftest.er1
a848cd7e 44515 ac_status=$?
ac1cb8d3
VS
44516 grep -v '^ *+' conftest.er1 >conftest.err
44517 rm -f conftest.er1
44518 cat conftest.err >&5
a848cd7e
SC
44519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44520 (exit $ac_status); } &&
bb9e79c0 44521 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
44522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44523 (eval $ac_try) 2>&5
44524 ac_status=$?
44525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44526 (exit $ac_status); }; } &&
44527 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
44528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44529 (eval $ac_try) 2>&5
44530 ac_status=$?
44531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44532 (exit $ac_status); }; }; then
44533
44534 wx_cv_struct_tm_has_gmtoff=yes
44535
44536else
44537 echo "$as_me: failed program was:" >&5
44538sed 's/^/| /' conftest.$ac_ext >&5
44539
44540wx_cv_struct_tm_has_gmtoff=no
44541
44542fi
ac1cb8d3 44543rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
44544
44545fi
44546echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
44547echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
44548 fi
44549
44550 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
44551 cat >>confdefs.h <<\_ACEOF
44552#define WX_GMTOFF_IN_TM 1
44553_ACEOF
44554
44555 fi
44556
44557
44558
44559for ac_func in gettimeofday ftime
44560do
44561as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44562echo "$as_me:$LINENO: checking for $ac_func" >&5
44563echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44564if eval "test \"\${$as_ac_var+set}\" = set"; then
44565 echo $ECHO_N "(cached) $ECHO_C" >&6
44566else
44567 cat >conftest.$ac_ext <<_ACEOF
44568/* confdefs.h. */
44569_ACEOF
44570cat confdefs.h >>conftest.$ac_ext
44571cat >>conftest.$ac_ext <<_ACEOF
44572/* end confdefs.h. */
ac1cb8d3
VS
44573/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44574 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44575#define $ac_func innocuous_$ac_func
44576
a848cd7e
SC
44577/* System header to define __stub macros and hopefully few prototypes,
44578 which can conflict with char $ac_func (); below.
44579 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44580 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 44581
a848cd7e
SC
44582#ifdef __STDC__
44583# include <limits.h>
44584#else
44585# include <assert.h>
44586#endif
ac1cb8d3
VS
44587
44588#undef $ac_func
44589
a848cd7e
SC
44590/* Override any gcc2 internal prototype to avoid an error. */
44591#ifdef __cplusplus
44592extern "C"
44593{
44594#endif
44595/* We use char because int might match the return type of a gcc2
44596 builtin and then its argument prototype would still apply. */
44597char $ac_func ();
44598/* The GNU C library defines this for functions which it implements
44599 to always fail with ENOSYS. Some functions are actually named
44600 something starting with __ and the normal name is an alias. */
44601#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44602choke me
44603#else
44604char (*f) () = $ac_func;
44605#endif
44606#ifdef __cplusplus
44607}
44608#endif
44609
44610int
44611main ()
44612{
44613return f != $ac_func;
44614 ;
44615 return 0;
44616}
44617_ACEOF
44618rm -f conftest.$ac_objext conftest$ac_exeext
44619if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 44620 (eval $ac_link) 2>conftest.er1
a848cd7e 44621 ac_status=$?
ac1cb8d3
VS
44622 grep -v '^ *+' conftest.er1 >conftest.err
44623 rm -f conftest.er1
44624 cat conftest.err >&5
a848cd7e
SC
44625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44626 (exit $ac_status); } &&
bb9e79c0 44627 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
44628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44629 (eval $ac_try) 2>&5
44630 ac_status=$?
44631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44632 (exit $ac_status); }; } &&
44633 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
44634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44635 (eval $ac_try) 2>&5
44636 ac_status=$?
44637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44638 (exit $ac_status); }; }; then
44639 eval "$as_ac_var=yes"
44640else
44641 echo "$as_me: failed program was:" >&5
44642sed 's/^/| /' conftest.$ac_ext >&5
44643
44644eval "$as_ac_var=no"
44645fi
ac1cb8d3
VS
44646rm -f conftest.err conftest.$ac_objext \
44647 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
44648fi
44649echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44650echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44651if test `eval echo '${'$as_ac_var'}'` = yes; then
44652 cat >>confdefs.h <<_ACEOF
44653#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44654_ACEOF
44655 break
44656fi
44657done
44658
44659
44660 if test "$ac_cv_func_gettimeofday" = "yes"; then
44661 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
44662echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
44663if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
44664 echo $ECHO_N "(cached) $ECHO_C" >&6
44665else
44666
5d7b7554 44667 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
44668/* confdefs.h. */
44669_ACEOF
44670cat confdefs.h >>conftest.$ac_ext
44671cat >>conftest.$ac_ext <<_ACEOF
44672/* end confdefs.h. */
44673
44674 #include <sys/time.h>
44675 #include <unistd.h>
44676
44677int
44678main ()
44679{
44680
44681 struct timeval tv;
44682 gettimeofday(&tv, NULL);
44683
44684 ;
44685 return 0;
44686}
44687_ACEOF
44688rm -f conftest.$ac_objext
44689if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 44690 (eval $ac_compile) 2>conftest.er1
a848cd7e 44691 ac_status=$?
ac1cb8d3
VS
44692 grep -v '^ *+' conftest.er1 >conftest.err
44693 rm -f conftest.er1
44694 cat conftest.err >&5
a848cd7e
SC
44695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44696 (exit $ac_status); } &&
bb9e79c0 44697 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
44698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44699 (eval $ac_try) 2>&5
44700 ac_status=$?
44701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44702 (exit $ac_status); }; } &&
44703 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
44704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44705 (eval $ac_try) 2>&5
44706 ac_status=$?
44707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44708 (exit $ac_status); }; }; then
44709 wx_cv_func_gettimeofday_has_2_args=yes
44710else
44711 echo "$as_me: failed program was:" >&5
44712sed 's/^/| /' conftest.$ac_ext >&5
44713
44714cat >conftest.$ac_ext <<_ACEOF
44715/* confdefs.h. */
44716_ACEOF
44717cat confdefs.h >>conftest.$ac_ext
44718cat >>conftest.$ac_ext <<_ACEOF
44719/* end confdefs.h. */
44720
44721 #include <sys/time.h>
44722 #include <unistd.h>
44723
44724int
44725main ()
44726{
44727
44728 struct timeval tv;
44729 gettimeofday(&tv);
44730
44731 ;
44732 return 0;
44733}
44734_ACEOF
44735rm -f conftest.$ac_objext
44736if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 44737 (eval $ac_compile) 2>conftest.er1
a848cd7e 44738 ac_status=$?
ac1cb8d3
VS
44739 grep -v '^ *+' conftest.er1 >conftest.err
44740 rm -f conftest.er1
44741 cat conftest.err >&5
a848cd7e
SC
44742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44743 (exit $ac_status); } &&
bb9e79c0 44744 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
44745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44746 (eval $ac_try) 2>&5
44747 ac_status=$?
44748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44749 (exit $ac_status); }; } &&
44750 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
44751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44752 (eval $ac_try) 2>&5
44753 ac_status=$?
44754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44755 (exit $ac_status); }; }; then
44756 wx_cv_func_gettimeofday_has_2_args=no
44757else
44758 echo "$as_me: failed program was:" >&5
44759sed 's/^/| /' conftest.$ac_ext >&5
44760
44761
44762 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
44763echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
44764 wx_cv_func_gettimeofday_has_2_args=unknown
44765
44766
44767fi
ac1cb8d3 44768rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
44769
44770fi
ac1cb8d3 44771rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
44772
44773fi
44774echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
44775echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
44776
44777 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
44778 cat >>confdefs.h <<\_ACEOF
44779#define WX_GETTIMEOFDAY_NO_TZ 1
44780_ACEOF
44781
44782 fi
44783 fi
44784
44785 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
44786fi
44787
44788
44789if test "$wxUSE_SOCKETS" = "yes"; then
44790 if test "$wxUSE_MGL" = "1"; then
44791 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
44792echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
44793 wxUSE_SOCKETS="no"
44794 fi
44795fi
44796
44797if test "$wxUSE_SOCKETS" = "yes"; then
44798 if test "$TOOLKIT" != "MSW"; then
44799 echo "$as_me:$LINENO: checking for socket" >&5
44800echo $ECHO_N "checking for socket... $ECHO_C" >&6
44801if test "${ac_cv_func_socket+set}" = set; then
44802 echo $ECHO_N "(cached) $ECHO_C" >&6
44803else
44804 cat >conftest.$ac_ext <<_ACEOF
44805/* confdefs.h. */
44806_ACEOF
44807cat confdefs.h >>conftest.$ac_ext
44808cat >>conftest.$ac_ext <<_ACEOF
44809/* end confdefs.h. */
ac1cb8d3
VS
44810/* Define socket to an innocuous variant, in case <limits.h> declares socket.
44811 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44812#define socket innocuous_socket
44813
a848cd7e
SC
44814/* System header to define __stub macros and hopefully few prototypes,
44815 which can conflict with char socket (); below.
44816 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44817 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 44818
a848cd7e
SC
44819#ifdef __STDC__
44820# include <limits.h>
44821#else
44822# include <assert.h>
44823#endif
ac1cb8d3
VS
44824
44825#undef socket
44826
a848cd7e
SC
44827/* Override any gcc2 internal prototype to avoid an error. */
44828#ifdef __cplusplus
44829extern "C"
44830{
44831#endif
44832/* We use char because int might match the return type of a gcc2
44833 builtin and then its argument prototype would still apply. */
44834char socket ();
44835/* The GNU C library defines this for functions which it implements
44836 to always fail with ENOSYS. Some functions are actually named
44837 something starting with __ and the normal name is an alias. */
44838#if defined (__stub_socket) || defined (__stub___socket)
44839choke me
44840#else
44841char (*f) () = socket;
44842#endif
44843#ifdef __cplusplus
44844}
44845#endif
44846
44847int
44848main ()
44849{
44850return f != socket;
44851 ;
44852 return 0;
44853}
44854_ACEOF
44855rm -f conftest.$ac_objext conftest$ac_exeext
44856if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 44857 (eval $ac_link) 2>conftest.er1
a848cd7e 44858 ac_status=$?
ac1cb8d3
VS
44859 grep -v '^ *+' conftest.er1 >conftest.err
44860 rm -f conftest.er1
44861 cat conftest.err >&5
a848cd7e
SC
44862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44863 (exit $ac_status); } &&
bb9e79c0 44864 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
44865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44866 (eval $ac_try) 2>&5
44867 ac_status=$?
44868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44869 (exit $ac_status); }; } &&
44870 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
44871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44872 (eval $ac_try) 2>&5
44873 ac_status=$?
44874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44875 (exit $ac_status); }; }; then
44876 ac_cv_func_socket=yes
44877else
44878 echo "$as_me: failed program was:" >&5
44879sed 's/^/| /' conftest.$ac_ext >&5
44880
44881ac_cv_func_socket=no
44882fi
ac1cb8d3
VS
44883rm -f conftest.err conftest.$ac_objext \
44884 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
44885fi
44886echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
44887echo "${ECHO_T}$ac_cv_func_socket" >&6
44888if test $ac_cv_func_socket = yes; then
44889 :
44890else
44891
44892 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
44893echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
44894if test "${ac_cv_lib_socket_socket+set}" = set; then
44895 echo $ECHO_N "(cached) $ECHO_C" >&6
44896else
44897 ac_check_lib_save_LIBS=$LIBS
44898LIBS="-lsocket $LIBS"
44899cat >conftest.$ac_ext <<_ACEOF
44900/* confdefs.h. */
44901_ACEOF
44902cat confdefs.h >>conftest.$ac_ext
44903cat >>conftest.$ac_ext <<_ACEOF
44904/* end confdefs.h. */
44905
44906/* Override any gcc2 internal prototype to avoid an error. */
44907#ifdef __cplusplus
44908extern "C"
44909#endif
44910/* We use char because int might match the return type of a gcc2
44911 builtin and then its argument prototype would still apply. */
44912char socket ();
44913int
44914main ()
44915{
44916socket ();
44917 ;
44918 return 0;
44919}
44920_ACEOF
44921rm -f conftest.$ac_objext conftest$ac_exeext
44922if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 44923 (eval $ac_link) 2>conftest.er1
a848cd7e 44924 ac_status=$?
ac1cb8d3
VS
44925 grep -v '^ *+' conftest.er1 >conftest.err
44926 rm -f conftest.er1
44927 cat conftest.err >&5
a848cd7e
SC
44928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44929 (exit $ac_status); } &&
bb9e79c0 44930 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
44931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44932 (eval $ac_try) 2>&5
44933 ac_status=$?
44934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44935 (exit $ac_status); }; } &&
44936 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
44937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44938 (eval $ac_try) 2>&5
44939 ac_status=$?
44940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44941 (exit $ac_status); }; }; then
44942 ac_cv_lib_socket_socket=yes
44943else
44944 echo "$as_me: failed program was:" >&5
44945sed 's/^/| /' conftest.$ac_ext >&5
44946
44947ac_cv_lib_socket_socket=no
44948fi
ac1cb8d3
VS
44949rm -f conftest.err conftest.$ac_objext \
44950 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
44951LIBS=$ac_check_lib_save_LIBS
44952fi
44953echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
44954echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
44955if test $ac_cv_lib_socket_socket = yes; then
44956 if test "$INET_LINK" != " -lsocket"; then
44957 INET_LINK="$INET_LINK -lsocket"
44958 fi
44959else
44960
44961 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
44962echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
44963 wxUSE_SOCKETS=no
44964
44965
44966fi
44967
44968
44969
44970fi
44971
44972 fi
44973fi
44974
44975if test "$wxUSE_SOCKETS" = "yes" ; then
44976 if test "$TOOLKIT" != "MSW"; then
5d7b7554 44977 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
a848cd7e
SC
44978echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
44979if test "${wx_cv_type_getsockname3+set}" = set; then
44980 echo $ECHO_N "(cached) $ECHO_C" >&6
44981else
44982
44983 cat >conftest.$ac_ext <<_ACEOF
44984/* confdefs.h. */
44985_ACEOF
44986cat confdefs.h >>conftest.$ac_ext
44987cat >>conftest.$ac_ext <<_ACEOF
44988/* end confdefs.h. */
44989
44990 #include <sys/types.h>
44991 #include <sys/socket.h>
44992
44993int
44994main ()
44995{
44996
44997 socklen_t len;
44998 getsockname(0, 0, &len);
44999
45000 ;
45001 return 0;
45002}
45003_ACEOF
45004rm -f conftest.$ac_objext
45005if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 45006 (eval $ac_compile) 2>conftest.er1
a848cd7e 45007 ac_status=$?
ac1cb8d3
VS
45008 grep -v '^ *+' conftest.er1 >conftest.err
45009 rm -f conftest.er1
45010 cat conftest.err >&5
a848cd7e
SC
45011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45012 (exit $ac_status); } &&
bb9e79c0 45013 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
45014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45015 (eval $ac_try) 2>&5
45016 ac_status=$?
45017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45018 (exit $ac_status); }; } &&
45019 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
45020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45021 (eval $ac_try) 2>&5
45022 ac_status=$?
45023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45024 (exit $ac_status); }; }; then
45025 wx_cv_type_getsockname3=socklen_t
45026else
45027 echo "$as_me: failed program was:" >&5
45028sed 's/^/| /' conftest.$ac_ext >&5
45029
45030
6459a506 45031 CXXFLAGS_OLD="$CXXFLAGS"
a848cd7e 45032 if test "$GCC" = yes ; then
c92ad099 45033 CXXFLAGS="-Werror $CXXFLAGS"
a848cd7e
SC
45034 fi
45035
45036 cat >conftest.$ac_ext <<_ACEOF
45037/* confdefs.h. */
45038_ACEOF
45039cat confdefs.h >>conftest.$ac_ext
45040cat >>conftest.$ac_ext <<_ACEOF
45041/* end confdefs.h. */
45042
45043 #include <sys/types.h>
45044 #include <sys/socket.h>
45045
45046int
45047main ()
45048{
45049
45050 size_t len;
45051 getsockname(0, 0, &len);
45052
45053 ;
45054 return 0;
45055}
45056_ACEOF
45057rm -f conftest.$ac_objext
45058if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 45059 (eval $ac_compile) 2>conftest.er1
a848cd7e 45060 ac_status=$?
ac1cb8d3
VS
45061 grep -v '^ *+' conftest.er1 >conftest.err
45062 rm -f conftest.er1
45063 cat conftest.err >&5
a848cd7e
SC
45064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45065 (exit $ac_status); } &&
bb9e79c0 45066 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
45067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45068 (eval $ac_try) 2>&5
45069 ac_status=$?
45070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45071 (exit $ac_status); }; } &&
45072 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
45073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45074 (eval $ac_try) 2>&5
45075 ac_status=$?
45076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45077 (exit $ac_status); }; }; then
45078 wx_cv_type_getsockname3=size_t
45079else
45080 echo "$as_me: failed program was:" >&5
45081sed 's/^/| /' conftest.$ac_ext >&5
45082
45083cat >conftest.$ac_ext <<_ACEOF
45084/* confdefs.h. */
45085_ACEOF
45086cat confdefs.h >>conftest.$ac_ext
45087cat >>conftest.$ac_ext <<_ACEOF
45088/* end confdefs.h. */
45089
45090 #include <sys/types.h>
45091 #include <sys/socket.h>
45092
45093int
45094main ()
45095{
45096
45097 int len;
45098 getsockname(0, 0, &len);
45099
45100 ;
45101 return 0;
45102}
45103_ACEOF
45104rm -f conftest.$ac_objext
45105if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 45106 (eval $ac_compile) 2>conftest.er1
a848cd7e 45107 ac_status=$?
ac1cb8d3
VS
45108 grep -v '^ *+' conftest.er1 >conftest.err
45109 rm -f conftest.er1
45110 cat conftest.err >&5
a848cd7e
SC
45111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45112 (exit $ac_status); } &&
bb9e79c0 45113 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
45114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45115 (eval $ac_try) 2>&5
45116 ac_status=$?
45117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45118 (exit $ac_status); }; } &&
45119 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
45120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45121 (eval $ac_try) 2>&5
45122 ac_status=$?
45123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45124 (exit $ac_status); }; }; then
45125 wx_cv_type_getsockname3=int
45126else
45127 echo "$as_me: failed program was:" >&5
45128sed 's/^/| /' conftest.$ac_ext >&5
45129
45130wx_cv_type_getsockname3=unknown
45131
45132fi
ac1cb8d3 45133rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
45134
45135fi
ac1cb8d3 45136rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 45137
6459a506 45138 CXXFLAGS="$CXXFLAGS_OLD"
a848cd7e
SC
45139
45140
45141fi
ac1cb8d3 45142rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
45143
45144fi
45145echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
45146echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
45147
45148 if test "$wx_cv_type_getsockname3" = "unknown"; then
45149 wxUSE_SOCKETS=no
45150 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
45151echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
45152 else
45153 cat >>confdefs.h <<_ACEOF
9e03e02d 45154#define WX_SOCKLEN_T $wx_cv_type_getsockname3
5b674b9d
DE
45155_ACEOF
45156
45157 fi
45158 echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5
45159echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6
45160if test "${wx_cv_type_getsockopt5+set}" = set; then
45161 echo $ECHO_N "(cached) $ECHO_C" >&6
45162else
45163
45164 cat >conftest.$ac_ext <<_ACEOF
45165/* confdefs.h. */
45166_ACEOF
45167cat confdefs.h >>conftest.$ac_ext
45168cat >>conftest.$ac_ext <<_ACEOF
45169/* end confdefs.h. */
45170
45171 #include <sys/types.h>
45172 #include <sys/socket.h>
45173
45174int
45175main ()
45176{
45177
45178 socklen_t len;
45179 getsockopt(0, 0, 0, 0, &len);
45180
45181 ;
45182 return 0;
45183}
45184_ACEOF
45185rm -f conftest.$ac_objext
45186if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45187 (eval $ac_compile) 2>conftest.er1
45188 ac_status=$?
45189 grep -v '^ *+' conftest.er1 >conftest.err
45190 rm -f conftest.er1
45191 cat conftest.err >&5
45192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45193 (exit $ac_status); } &&
bb9e79c0 45194 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
45195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45196 (eval $ac_try) 2>&5
45197 ac_status=$?
45198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45199 (exit $ac_status); }; } &&
45200 { ac_try='test -s conftest.$ac_objext'
45201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45202 (eval $ac_try) 2>&5
45203 ac_status=$?
45204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45205 (exit $ac_status); }; }; then
45206 wx_cv_type_getsockopt5=socklen_t
45207else
45208 echo "$as_me: failed program was:" >&5
45209sed 's/^/| /' conftest.$ac_ext >&5
45210
45211
6459a506 45212 CXXFLAGS_OLD="$CXXFLAGS"
5b674b9d 45213 if test "$GCC" = yes ; then
c92ad099 45214 CXXFLAGS="-Werror $CXXFLAGS"
5b674b9d
DE
45215 fi
45216
45217 cat >conftest.$ac_ext <<_ACEOF
45218/* confdefs.h. */
45219_ACEOF
45220cat confdefs.h >>conftest.$ac_ext
45221cat >>conftest.$ac_ext <<_ACEOF
45222/* end confdefs.h. */
45223
45224 #include <sys/types.h>
45225 #include <sys/socket.h>
45226
45227int
45228main ()
45229{
45230
45231 size_t len;
45232 getsockopt(0, 0, 0, 0, &len);
45233
45234 ;
45235 return 0;
45236}
45237_ACEOF
45238rm -f conftest.$ac_objext
45239if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45240 (eval $ac_compile) 2>conftest.er1
45241 ac_status=$?
45242 grep -v '^ *+' conftest.er1 >conftest.err
45243 rm -f conftest.er1
45244 cat conftest.err >&5
45245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45246 (exit $ac_status); } &&
bb9e79c0 45247 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
45248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45249 (eval $ac_try) 2>&5
45250 ac_status=$?
45251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45252 (exit $ac_status); }; } &&
45253 { ac_try='test -s conftest.$ac_objext'
45254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45255 (eval $ac_try) 2>&5
45256 ac_status=$?
45257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45258 (exit $ac_status); }; }; then
45259 wx_cv_type_getsockopt5=size_t
45260else
45261 echo "$as_me: failed program was:" >&5
45262sed 's/^/| /' conftest.$ac_ext >&5
45263
45264cat >conftest.$ac_ext <<_ACEOF
45265/* confdefs.h. */
45266_ACEOF
45267cat confdefs.h >>conftest.$ac_ext
45268cat >>conftest.$ac_ext <<_ACEOF
45269/* end confdefs.h. */
45270
45271 #include <sys/types.h>
45272 #include <sys/socket.h>
45273
45274int
45275main ()
45276{
45277
45278 int len;
45279 getsockopt(0, 0, 0, 0, &len);
45280
45281 ;
45282 return 0;
45283}
45284_ACEOF
45285rm -f conftest.$ac_objext
45286if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45287 (eval $ac_compile) 2>conftest.er1
45288 ac_status=$?
45289 grep -v '^ *+' conftest.er1 >conftest.err
45290 rm -f conftest.er1
45291 cat conftest.err >&5
45292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45293 (exit $ac_status); } &&
bb9e79c0 45294 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
45295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45296 (eval $ac_try) 2>&5
45297 ac_status=$?
45298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45299 (exit $ac_status); }; } &&
45300 { ac_try='test -s conftest.$ac_objext'
45301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45302 (eval $ac_try) 2>&5
45303 ac_status=$?
45304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45305 (exit $ac_status); }; }; then
45306 wx_cv_type_getsockopt5=int
45307else
45308 echo "$as_me: failed program was:" >&5
45309sed 's/^/| /' conftest.$ac_ext >&5
45310
45311wx_cv_type_getsockopt5=unknown
45312
45313fi
45314rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45315
45316fi
45317rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45318
6459a506 45319 CXXFLAGS="$CXXFLAGS_OLD"
5b674b9d
DE
45320
45321
45322fi
45323rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45324
45325fi
45326echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5
45327echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6
45328
45329 if test "$wx_cv_type_getsockopt5" = "unknown"; then
45330 wxUSE_SOCKETS=no
45331 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
45332echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
45333 else
45334 cat >>confdefs.h <<_ACEOF
45335#define SOCKOPTLEN_T $wx_cv_type_getsockopt5
a848cd7e
SC
45336_ACEOF
45337
45338 fi
45339 fi
45340fi
45341
45342if test "$wxUSE_SOCKETS" = "yes" ; then
45343 cat >>confdefs.h <<\_ACEOF
45344#define wxUSE_SOCKETS 1
45345_ACEOF
45346
45347 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
45348fi
45349
45350if test "$wxUSE_PROTOCOL" = "yes"; then
45351 if test "$wxUSE_SOCKETS" != "yes"; then
45352 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
45353echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
45354 wxUSE_PROTOCOL=no
45355 fi
45356fi
45357
45358if test "$wxUSE_PROTOCOL" = "yes"; then
45359 cat >>confdefs.h <<\_ACEOF
45360#define wxUSE_PROTOCOL 1
45361_ACEOF
45362
45363
45364 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
45365 cat >>confdefs.h <<\_ACEOF
45366#define wxUSE_PROTOCOL_HTTP 1
45367_ACEOF
45368
45369 fi
45370 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
45371 cat >>confdefs.h <<\_ACEOF
45372#define wxUSE_PROTOCOL_FTP 1
45373_ACEOF
45374
45375 fi
45376 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
45377 cat >>confdefs.h <<\_ACEOF
45378#define wxUSE_PROTOCOL_FILE 1
45379_ACEOF
45380
45381 fi
45382else
45383 if test "$wxUSE_FS_INET" = "yes"; then
45384 { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
45385echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
45386 wxUSE_FS_INET="no"
45387 fi
45388fi
45389
45390if test "$wxUSE_URL" = "yes"; then
45391 if test "$wxUSE_PROTOCOL" != "yes"; then
45392 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
45393echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
45394 wxUSE_URL=no
45395 fi
45396 if test "$wxUSE_URL" = "yes"; then
45397 cat >>confdefs.h <<\_ACEOF
45398#define wxUSE_URL 1
45399_ACEOF
45400
45401 fi
45402fi
45403
ca5c6ac3
VZ
45404if test "$wxUSE_VARIANT" = "yes"; then
45405 cat >>confdefs.h <<\_ACEOF
45406#define wxUSE_VARIANT 1
45407_ACEOF
45408
45409fi
45410
a848cd7e
SC
45411if test "$wxUSE_FS_INET" = "yes"; then
45412 cat >>confdefs.h <<\_ACEOF
45413#define wxUSE_FS_INET 1
45414_ACEOF
45415
45416fi
45417
45418
ee45c548
MW
45419if test "$wxUSE_GUI" = "yes" -a "$wxUSE_JOYSTICK" = "yes"; then
45420 wxUSE_JOYSTICK=no
45421
45422 if test "$TOOLKIT" = "MSW"; then
45423 wxUSE_JOYSTICK=yes
45424
45425 elif test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
45426 if test "$USE_DARWIN" = 1; then
45427 echo "$as_me:$LINENO: checking headers have declarations needed for joystick support" >&5
45428echo $ECHO_N "checking headers have declarations needed for joystick support... $ECHO_C" >&6
ee45c548
MW
45429 cat >conftest.$ac_ext <<_ACEOF
45430/* confdefs.h. */
45431_ACEOF
45432cat confdefs.h >>conftest.$ac_ext
45433cat >>conftest.$ac_ext <<_ACEOF
45434/* end confdefs.h. */
45435 #include <IOKit/hid/IOHIDLib.h>
45436int
45437main ()
45438{
45439 IOHIDQueueInterface *qi = NULL;
45440 IOHIDCallbackFunction cb = NULL;
45441 qi->setEventCallout(NULL, cb, NULL, NULL);
45442 ;
45443 return 0;
45444}
45445_ACEOF
45446rm -f conftest.$ac_objext
45447if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45448 (eval $ac_compile) 2>conftest.er1
45449 ac_status=$?
45450 grep -v '^ *+' conftest.er1 >conftest.err
45451 rm -f conftest.er1
45452 cat conftest.err >&5
45453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45454 (exit $ac_status); } &&
bb9e79c0 45455 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ee45c548
MW
45456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45457 (eval $ac_try) 2>&5
45458 ac_status=$?
45459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45460 (exit $ac_status); }; } &&
45461 { ac_try='test -s conftest.$ac_objext'
45462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45463 (eval $ac_try) 2>&5
45464 ac_status=$?
45465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45466 (exit $ac_status); }; }; then
45467 wxUSE_JOYSTICK=yes
a848cd7e 45468
ee45c548
MW
45469else
45470 echo "$as_me: failed program was:" >&5
45471sed 's/^/| /' conftest.$ac_ext >&5
45472
45473fi
45474rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ee45c548
MW
45475 echo "$as_me:$LINENO: result: $wxUSE_JOYSTICK" >&5
45476echo "${ECHO_T}$wxUSE_JOYSTICK" >&6
45477 fi
45478
45479 else
b6814e24 45480 if test "$wxUSE_MGL" != "1"; then
a848cd7e
SC
45481
45482for ac_header in linux/joystick.h
45483do
45484as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
45485if eval "test \"\${$as_ac_Header+set}\" = set"; then
45486 echo "$as_me:$LINENO: checking for $ac_header" >&5
45487echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
45488if eval "test \"\${$as_ac_Header+set}\" = set"; then
45489 echo $ECHO_N "(cached) $ECHO_C" >&6
45490fi
45491echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
45492echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
45493else
45494 # Is the header compilable?
45495echo "$as_me:$LINENO: checking $ac_header usability" >&5
45496echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
45497cat >conftest.$ac_ext <<_ACEOF
45498/* confdefs.h. */
45499_ACEOF
45500cat confdefs.h >>conftest.$ac_ext
45501cat >>conftest.$ac_ext <<_ACEOF
45502/* end confdefs.h. */
45503$ac_includes_default
45504#include <$ac_header>
45505_ACEOF
45506rm -f conftest.$ac_objext
45507if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 45508 (eval $ac_compile) 2>conftest.er1
a848cd7e 45509 ac_status=$?
ac1cb8d3
VS
45510 grep -v '^ *+' conftest.er1 >conftest.err
45511 rm -f conftest.er1
45512 cat conftest.err >&5
a848cd7e
SC
45513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45514 (exit $ac_status); } &&
bb9e79c0 45515 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
45516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45517 (eval $ac_try) 2>&5
45518 ac_status=$?
45519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45520 (exit $ac_status); }; } &&
45521 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
45522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45523 (eval $ac_try) 2>&5
45524 ac_status=$?
45525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45526 (exit $ac_status); }; }; then
45527 ac_header_compiler=yes
45528else
45529 echo "$as_me: failed program was:" >&5
45530sed 's/^/| /' conftest.$ac_ext >&5
45531
45532ac_header_compiler=no
45533fi
ac1cb8d3 45534rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
45535echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
45536echo "${ECHO_T}$ac_header_compiler" >&6
45537
45538# Is the header present?
45539echo "$as_me:$LINENO: checking $ac_header presence" >&5
45540echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
45541cat >conftest.$ac_ext <<_ACEOF
45542/* confdefs.h. */
45543_ACEOF
45544cat confdefs.h >>conftest.$ac_ext
45545cat >>conftest.$ac_ext <<_ACEOF
45546/* end confdefs.h. */
45547#include <$ac_header>
45548_ACEOF
45549if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
45550 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
45551 ac_status=$?
45552 grep -v '^ *+' conftest.er1 >conftest.err
45553 rm -f conftest.er1
45554 cat conftest.err >&5
45555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45556 (exit $ac_status); } >/dev/null; then
45557 if test -s conftest.err; then
5d7b7554
VZ
45558 ac_cpp_err=$ac_cxx_preproc_warn_flag
45559 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
45560 else
45561 ac_cpp_err=
45562 fi
45563else
45564 ac_cpp_err=yes
45565fi
45566if test -z "$ac_cpp_err"; then
45567 ac_header_preproc=yes
45568else
45569 echo "$as_me: failed program was:" >&5
45570sed 's/^/| /' conftest.$ac_ext >&5
45571
45572 ac_header_preproc=no
45573fi
45574rm -f conftest.err conftest.$ac_ext
45575echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
45576echo "${ECHO_T}$ac_header_preproc" >&6
45577
45578# So? What about this header?
5d7b7554 45579case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 45580 yes:no: )
a848cd7e
SC
45581 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
45582echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
45583 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
45584echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
45585 ac_header_preproc=yes
a848cd7e 45586 ;;
ac1cb8d3 45587 no:yes:* )
a848cd7e
SC
45588 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
45589echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
45590 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
45591echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
45592 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
45593echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
45594 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
45595echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
45596 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
45597echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
45598 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
45599echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
45600 (
45601 cat <<\_ASBOX
ac1cb8d3
VS
45602## ----------------------------------------- ##
45603## Report this to wx-dev@lists.wxwidgets.org ##
45604## ----------------------------------------- ##
a848cd7e
SC
45605_ASBOX
45606 ) |
45607 sed "s/^/$as_me: WARNING: /" >&2
45608 ;;
45609esac
45610echo "$as_me:$LINENO: checking for $ac_header" >&5
45611echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
45612if eval "test \"\${$as_ac_Header+set}\" = set"; then
45613 echo $ECHO_N "(cached) $ECHO_C" >&6
45614else
ac1cb8d3 45615 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
45616fi
45617echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
45618echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
45619
45620fi
45621if test `eval echo '${'$as_ac_Header'}'` = yes; then
45622 cat >>confdefs.h <<_ACEOF
45623#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
45624_ACEOF
ee45c548 45625 wxUSE_JOYSTICK=yes
a848cd7e
SC
45626fi
45627
45628done
45629
b6814e24 45630 fi
ee45c548 45631 fi
4cb1d3da 45632
ee45c548
MW
45633 if test "$wxUSE_JOYSTICK" = "yes"; then
45634 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
45635#define wxUSE_JOYSTICK 1
45636_ACEOF
45637
ee45c548
MW
45638 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
45639 else
45640 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
45641echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
a848cd7e
SC
45642 fi
45643fi
45644
45645
45646
45647if test "$wxUSE_FONTMAP" = "yes" ; then
45648 cat >>confdefs.h <<\_ACEOF
45649#define wxUSE_FONTMAP 1
45650_ACEOF
45651
45652fi
45653
45654if test "$wxUSE_UNICODE" = "yes" ; then
45655 cat >>confdefs.h <<\_ACEOF
45656#define wxUSE_UNICODE 1
45657_ACEOF
45658
45659
45660 if test "$USE_WIN32" != 1; then
45661 wxUSE_UNICODE_MSLU=no
45662 fi
45663
45664 if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
45665 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
45666echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
45667if test "${ac_cv_lib_unicows_main+set}" = set; then
45668 echo $ECHO_N "(cached) $ECHO_C" >&6
45669else
45670 ac_check_lib_save_LIBS=$LIBS
45671LIBS="-lunicows $LIBS"
45672cat >conftest.$ac_ext <<_ACEOF
45673/* confdefs.h. */
45674_ACEOF
45675cat confdefs.h >>conftest.$ac_ext
45676cat >>conftest.$ac_ext <<_ACEOF
45677/* end confdefs.h. */
45678
45679
45680int
45681main ()
45682{
45683main ();
45684 ;
45685 return 0;
45686}
45687_ACEOF
45688rm -f conftest.$ac_objext conftest$ac_exeext
45689if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 45690 (eval $ac_link) 2>conftest.er1
a848cd7e 45691 ac_status=$?
ac1cb8d3
VS
45692 grep -v '^ *+' conftest.er1 >conftest.err
45693 rm -f conftest.er1
45694 cat conftest.err >&5
a848cd7e
SC
45695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45696 (exit $ac_status); } &&
bb9e79c0 45697 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
45698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45699 (eval $ac_try) 2>&5
45700 ac_status=$?
45701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45702 (exit $ac_status); }; } &&
45703 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
45704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45705 (eval $ac_try) 2>&5
45706 ac_status=$?
45707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45708 (exit $ac_status); }; }; then
45709 ac_cv_lib_unicows_main=yes
45710else
45711 echo "$as_me: failed program was:" >&5
45712sed 's/^/| /' conftest.$ac_ext >&5
45713
45714ac_cv_lib_unicows_main=no
45715fi
ac1cb8d3
VS
45716rm -f conftest.err conftest.$ac_objext \
45717 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
45718LIBS=$ac_check_lib_save_LIBS
45719fi
45720echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
45721echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
45722if test $ac_cv_lib_unicows_main = yes; then
45723
45724 cat >>confdefs.h <<\_ACEOF
45725#define wxUSE_UNICODE_MSLU 1
45726_ACEOF
45727
45728
45729else
45730
45731 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
45732 Applications will only run on Windows NT/2000/XP!" >&5
45733echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
45734 Applications will only run on Windows NT/2000/XP!" >&2;}
45735 wxUSE_UNICODE_MSLU=no
45736
45737fi
45738
45739 fi
45740fi
45741
45742if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
45743 cat >>confdefs.h <<\_ACEOF
45744#define wxUSE_EXPERIMENTAL_PRINTF 1
45745_ACEOF
45746
45747fi
45748
45749
45750if test "$wxUSE_POSTSCRIPT" = "yes" ; then
45751 cat >>confdefs.h <<\_ACEOF
45752#define wxUSE_POSTSCRIPT 1
45753_ACEOF
45754
45755fi
45756
45757cat >>confdefs.h <<\_ACEOF
45758#define wxUSE_AFM_FOR_POSTSCRIPT 1
45759_ACEOF
45760
45761
45762cat >>confdefs.h <<\_ACEOF
45763#define wxUSE_NORMALIZED_PS_FONTS 1
45764_ACEOF
45765
45766
45767
45768if test "$wxUSE_CONSTRAINTS" = "yes"; then
45769 cat >>confdefs.h <<\_ACEOF
45770#define wxUSE_CONSTRAINTS 1
45771_ACEOF
45772
45773 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
45774fi
45775
8a7b1113
VZ
45776if test "$wxUSE_MDI" = "yes"; then
45777 cat >>confdefs.h <<\_ACEOF
45778#define wxUSE_MDI 1
45779_ACEOF
45780
45781
45782 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
45783 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
45784#define wxUSE_MDI_ARCHITECTURE 1
45785_ACEOF
45786
8a7b1113
VZ
45787 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
45788 fi
a848cd7e
SC
45789fi
45790
45791if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
45792 cat >>confdefs.h <<\_ACEOF
45793#define wxUSE_DOC_VIEW_ARCHITECTURE 1
45794_ACEOF
45795
45796 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
45797 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
45798 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
45799 fi
45800fi
45801
45802if test "$wxUSE_HELP" = "yes"; then
45803 cat >>confdefs.h <<\_ACEOF
45804#define wxUSE_HELP 1
45805_ACEOF
45806
45807 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
45808
45809 if test "$wxUSE_MSW" = 1; then
45810 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
45811 cat >>confdefs.h <<\_ACEOF
45812#define wxUSE_MS_HTML_HELP 1
45813_ACEOF
45814
45815 fi
45816 fi
45817
45818 if test "$wxUSE_WXHTML_HELP" = "yes"; then
45819 if test "$wxUSE_HTML" = "yes"; then
45820 cat >>confdefs.h <<\_ACEOF
45821#define wxUSE_WXHTML_HELP 1
45822_ACEOF
45823
45824 else
45825 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
45826echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
45827 wxUSE_WXHTML_HELP=no
45828 fi
45829 fi
45830fi
45831
45832if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
45833 if test "$wxUSE_CONSTRAINTS" != "yes"; then
45834 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
45835echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
45836 else
45837 cat >>confdefs.h <<\_ACEOF
45838#define wxUSE_PRINTING_ARCHITECTURE 1
45839_ACEOF
45840
45841 fi
45842 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
45843fi
45844
45845if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
45846 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
45847echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
45848 { (exit 1); exit 1; }; }
45849fi
45850
45851
efdf6afe
VZ
45852if test "$wxUSE_METAFILE" = "yes"; then
45853 if test "$wxUSE_MSW" != 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_PM" != 1; then
45854 { echo "$as_me:$LINENO: WARNING: wxMetafile is not available on this system... disabled" >&5
45855echo "$as_me: WARNING: wxMetafile is not available on this system... disabled" >&2;}
45856 wxUSE_METAFILE=no
45857 fi
45858fi
45859
45860
a848cd7e
SC
45861if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
45862 -o "$wxUSE_CLIPBOARD" = "yes" \
45863 -o "$wxUSE_OLE" = "yes" \
45864 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
45865
45866for ac_header in ole2.h
45867do
45868as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
45869if eval "test \"\${$as_ac_Header+set}\" = set"; then
45870 echo "$as_me:$LINENO: checking for $ac_header" >&5
45871echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
45872if eval "test \"\${$as_ac_Header+set}\" = set"; then
45873 echo $ECHO_N "(cached) $ECHO_C" >&6
45874fi
45875echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
45876echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
45877else
45878 # Is the header compilable?
45879echo "$as_me:$LINENO: checking $ac_header usability" >&5
45880echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
45881cat >conftest.$ac_ext <<_ACEOF
45882/* confdefs.h. */
45883_ACEOF
45884cat confdefs.h >>conftest.$ac_ext
45885cat >>conftest.$ac_ext <<_ACEOF
45886/* end confdefs.h. */
45887$ac_includes_default
45888#include <$ac_header>
45889_ACEOF
45890rm -f conftest.$ac_objext
45891if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 45892 (eval $ac_compile) 2>conftest.er1
a848cd7e 45893 ac_status=$?
ac1cb8d3
VS
45894 grep -v '^ *+' conftest.er1 >conftest.err
45895 rm -f conftest.er1
45896 cat conftest.err >&5
a848cd7e
SC
45897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45898 (exit $ac_status); } &&
bb9e79c0 45899 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
45900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45901 (eval $ac_try) 2>&5
45902 ac_status=$?
45903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45904 (exit $ac_status); }; } &&
45905 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
45906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45907 (eval $ac_try) 2>&5
45908 ac_status=$?
45909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45910 (exit $ac_status); }; }; then
45911 ac_header_compiler=yes
45912else
45913 echo "$as_me: failed program was:" >&5
45914sed 's/^/| /' conftest.$ac_ext >&5
45915
45916ac_header_compiler=no
45917fi
ac1cb8d3 45918rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
45919echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
45920echo "${ECHO_T}$ac_header_compiler" >&6
45921
45922# Is the header present?
45923echo "$as_me:$LINENO: checking $ac_header presence" >&5
45924echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
45925cat >conftest.$ac_ext <<_ACEOF
45926/* confdefs.h. */
45927_ACEOF
45928cat confdefs.h >>conftest.$ac_ext
45929cat >>conftest.$ac_ext <<_ACEOF
45930/* end confdefs.h. */
45931#include <$ac_header>
45932_ACEOF
45933if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
45934 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
45935 ac_status=$?
45936 grep -v '^ *+' conftest.er1 >conftest.err
45937 rm -f conftest.er1
45938 cat conftest.err >&5
45939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45940 (exit $ac_status); } >/dev/null; then
45941 if test -s conftest.err; then
5d7b7554
VZ
45942 ac_cpp_err=$ac_cxx_preproc_warn_flag
45943 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
45944 else
45945 ac_cpp_err=
45946 fi
45947else
45948 ac_cpp_err=yes
45949fi
45950if test -z "$ac_cpp_err"; then
45951 ac_header_preproc=yes
45952else
45953 echo "$as_me: failed program was:" >&5
45954sed 's/^/| /' conftest.$ac_ext >&5
45955
45956 ac_header_preproc=no
45957fi
45958rm -f conftest.err conftest.$ac_ext
45959echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
45960echo "${ECHO_T}$ac_header_preproc" >&6
45961
45962# So? What about this header?
5d7b7554 45963case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 45964 yes:no: )
a848cd7e
SC
45965 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
45966echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
45967 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
45968echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
45969 ac_header_preproc=yes
a848cd7e 45970 ;;
ac1cb8d3 45971 no:yes:* )
a848cd7e
SC
45972 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
45973echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
45974 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
45975echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
45976 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
45977echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
45978 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
45979echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
45980 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
45981echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
45982 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
45983echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
45984 (
45985 cat <<\_ASBOX
ac1cb8d3
VS
45986## ----------------------------------------- ##
45987## Report this to wx-dev@lists.wxwidgets.org ##
45988## ----------------------------------------- ##
a848cd7e
SC
45989_ASBOX
45990 ) |
45991 sed "s/^/$as_me: WARNING: /" >&2
45992 ;;
45993esac
45994echo "$as_me:$LINENO: checking for $ac_header" >&5
45995echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
45996if eval "test \"\${$as_ac_Header+set}\" = set"; then
45997 echo $ECHO_N "(cached) $ECHO_C" >&6
45998else
ac1cb8d3 45999 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
46000fi
46001echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46002echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46003
46004fi
46005if test `eval echo '${'$as_ac_Header'}'` = yes; then
46006 cat >>confdefs.h <<_ACEOF
46007#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
46008_ACEOF
46009
46010fi
46011
46012done
46013
46014
46015 if test "$ac_cv_header_ole2_h" = "yes" ; then
46016 if test "$GCC" = yes ; then
a848cd7e
SC
46017 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
46018echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
46019 cat >conftest.$ac_ext <<_ACEOF
46020/* confdefs.h. */
46021_ACEOF
46022cat confdefs.h >>conftest.$ac_ext
46023cat >>conftest.$ac_ext <<_ACEOF
46024/* end confdefs.h. */
46025#include <windows.h>
46026 #include <ole2.h>
46027int
46028main ()
46029{
46030
46031 ;
46032 return 0;
46033}
46034_ACEOF
46035rm -f conftest.$ac_objext
46036if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 46037 (eval $ac_compile) 2>conftest.er1
a848cd7e 46038 ac_status=$?
ac1cb8d3
VS
46039 grep -v '^ *+' conftest.er1 >conftest.err
46040 rm -f conftest.er1
46041 cat conftest.err >&5
a848cd7e
SC
46042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46043 (exit $ac_status); } &&
bb9e79c0 46044 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
46045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46046 (eval $ac_try) 2>&5
46047 ac_status=$?
46048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46049 (exit $ac_status); }; } &&
46050 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
46051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46052 (eval $ac_try) 2>&5
46053 ac_status=$?
46054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46055 (exit $ac_status); }; }; then
46056 echo "$as_me:$LINENO: result: no" >&5
46057echo "${ECHO_T}no" >&6
46058else
46059 echo "$as_me: failed program was:" >&5
46060sed 's/^/| /' conftest.$ac_ext >&5
46061
46062echo "$as_me:$LINENO: result: yes" >&5
46063echo "${ECHO_T}yes" >&6
5ff751d6 46064 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fvtable-thunks"
a848cd7e 46065fi
ac1cb8d3 46066rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
46067 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
46068 if test "$wxUSE_OLE" = "yes" ; then
46069 cat >>confdefs.h <<\_ACEOF
46070#define wxUSE_OLE 1
f43426c1
RD
46071_ACEOF
46072
46073 cat >>confdefs.h <<\_ACEOF
46074#define wxUSE_OLE_AUTOMATION 1
46075_ACEOF
46076
46077 cat >>confdefs.h <<\_ACEOF
46078#define wxUSE_OLE_ACTIVEX 1
a848cd7e
SC
46079_ACEOF
46080
0b78747f 46081 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto"
a848cd7e
SC
46082 fi
46083 fi
46084
46085 if test "$wxUSE_DATAOBJ" = "yes" ; then
46086 cat >>confdefs.h <<\_ACEOF
46087#define wxUSE_DATAOBJ 1
46088_ACEOF
46089
46090 fi
46091 else
46092 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
46093echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
46094
46095 wxUSE_CLIPBOARD=no
46096 wxUSE_DRAG_AND_DROP=no
46097 wxUSE_DATAOBJ=no
46098 wxUSE_OLE=no
46099 fi
46100
46101 if test "$wxUSE_METAFILE" = "yes"; then
46102 cat >>confdefs.h <<\_ACEOF
46103#define wxUSE_METAFILE 1
46104_ACEOF
46105
46106
46107 cat >>confdefs.h <<\_ACEOF
46108#define wxUSE_ENH_METAFILE 1
46109_ACEOF
46110
46111 fi
46112fi
46113
46114if test "$wxUSE_IPC" = "yes"; then
0b78747f 46115 if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then
77ffb593
JS
46116 { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
46117echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
0b78747f 46118 wxUSE_IPC=no
a848cd7e
SC
46119 fi
46120
0b78747f
MW
46121 if test "$wxUSE_IPC" = "yes"; then
46122 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
46123#define wxUSE_IPC 1
46124_ACEOF
46125
0b78747f
MW
46126 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
46127 fi
a848cd7e
SC
46128fi
46129
eb730a0c 46130if test "$wxUSE_DATAOBJ" = "yes"; then
2113bc77
MW
46131 if test "$wxUSE_MGL" = 1; then
46132 { echo "$as_me:$LINENO: WARNING: wxDataObject not yet supported under MGL... disabled" >&5
46133echo "$as_me: WARNING: wxDataObject not yet supported under MGL... disabled" >&2;}
46134 wxUSE_DATAOBJ=no
46135 else
46136 cat >>confdefs.h <<\_ACEOF
eb730a0c
JS
46137#define wxUSE_DATAOBJ 1
46138_ACEOF
46139
2113bc77 46140 fi
eb730a0c
JS
46141else
46142 { echo "$as_me:$LINENO: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&5
46143echo "$as_me: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&2;}
46144 wxUSE_CLIPBOARD=no
46145 wxUSE_DRAG_AND_DROP=no
46146fi
46147
a848cd7e
SC
46148if test "$wxUSE_CLIPBOARD" = "yes"; then
46149 if test "$wxUSE_MGL" = 1; then
46150 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
46151echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
46152 wxUSE_CLIPBOARD=no
46153 fi
46154
46155 if test "$wxUSE_CLIPBOARD" = "yes"; then
46156 cat >>confdefs.h <<\_ACEOF
46157#define wxUSE_CLIPBOARD 1
46158_ACEOF
46159
a848cd7e
SC
46160 fi
46161fi
46162
46163if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
46164 if test "$wxUSE_GTK" = 1; then
46165 if test "$WXGTK12" != 1; then
46166 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
46167echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
46168 wxUSE_DRAG_AND_DROP=no
46169 fi
46170 fi
46171
46172 if test "$wxUSE_MOTIF" = 1; then
46173 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
46174echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
46175 wxUSE_DRAG_AND_DROP=no
46176 fi
46177
46178 if test "$wxUSE_X11" = 1; then
46179 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
46180echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
46181 wxUSE_DRAG_AND_DROP=no
46182 fi
46183
46184 if test "$wxUSE_MGL" = 1; then
46185 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
46186echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
46187 wxUSE_DRAG_AND_DROP=no
46188 fi
46189
46190 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
46191 cat >>confdefs.h <<\_ACEOF
46192#define wxUSE_DRAG_AND_DROP 1
46193_ACEOF
46194
46195 fi
46196
46197fi
46198
46199if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
46200 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
46201fi
46202
46203if test "$wxUSE_SPLINES" = "yes" ; then
46204 cat >>confdefs.h <<\_ACEOF
46205#define wxUSE_SPLINES 1
46206_ACEOF
46207
46208fi
46209
fbe2ca43
SN
46210if test "$wxUSE_MOUSEWHEEL" = "yes" ; then
46211 cat >>confdefs.h <<\_ACEOF
46212#define wxUSE_MOUSEWHEEL 1
46213_ACEOF
46214
46215fi
46216
a848cd7e
SC
46217
46218USES_CONTROLS=0
46219if test "$wxUSE_CONTROLS" = "yes"; then
46220 USES_CONTROLS=1
46221fi
46222
46223if test "$wxUSE_ACCEL" = "yes"; then
46224 cat >>confdefs.h <<\_ACEOF
46225#define wxUSE_ACCEL 1
46226_ACEOF
46227
46228 USES_CONTROLS=1
46229fi
46230
7067783d 46231if test "$wxUSE_ANIMATIONCTRL" = "yes"; then
3ea50042
VZ
46232 cat >>confdefs.h <<\_ACEOF
46233#define wxUSE_ANIMATIONCTRL 1
46234_ACEOF
46235
46236 USES_CONTROLS=1
46237 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS animate"
46238fi
46239
a848cd7e
SC
46240if test "$wxUSE_BUTTON" = "yes"; then
46241 cat >>confdefs.h <<\_ACEOF
46242#define wxUSE_BUTTON 1
46243_ACEOF
46244
46245 USES_CONTROLS=1
46246fi
46247
46248if test "$wxUSE_BMPBUTTON" = "yes"; then
46249 cat >>confdefs.h <<\_ACEOF
46250#define wxUSE_BMPBUTTON 1
46251_ACEOF
46252
46253 USES_CONTROLS=1
46254fi
46255
46256if test "$wxUSE_CALCTRL" = "yes"; then
46257 cat >>confdefs.h <<\_ACEOF
46258#define wxUSE_CALENDARCTRL 1
46259_ACEOF
46260
46261 USES_CONTROLS=1
46262 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
46263fi
46264
46265if test "$wxUSE_CARET" = "yes"; then
46266 cat >>confdefs.h <<\_ACEOF
46267#define wxUSE_CARET 1
46268_ACEOF
46269
46270 USES_CONTROLS=1
46271 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
46272fi
46273
bd915ace
RR
46274if test "$wxUSE_COLLPANE" = "yes"; then
46275 cat >>confdefs.h <<\_ACEOF
46276#define wxUSE_COLLPANE 1
46277_ACEOF
46278
46279 USES_CONTROLS=1
46280 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS collpane"
46281fi
46282
a848cd7e
SC
46283if test "$wxUSE_COMBOBOX" = "yes"; then
46284 cat >>confdefs.h <<\_ACEOF
46285#define wxUSE_COMBOBOX 1
46286_ACEOF
46287
46288 USES_CONTROLS=1
46289fi
46290
a57d600f 46291if test "$wxUSE_COMBOCTRL" = "yes"; then
642bcba9 46292 cat >>confdefs.h <<\_ACEOF
a57d600f 46293#define wxUSE_COMBOCTRL 1
642bcba9
VZ
46294_ACEOF
46295
46296 USES_CONTROLS=1
46297fi
46298
a848cd7e
SC
46299if test "$wxUSE_CHOICE" = "yes"; then
46300 cat >>confdefs.h <<\_ACEOF
46301#define wxUSE_CHOICE 1
46302_ACEOF
46303
46304 USES_CONTROLS=1
46305fi
46306
92bbdbcd
WS
46307if test "$wxUSE_CHOICEBOOK" = "yes"; then
46308 cat >>confdefs.h <<\_ACEOF
46309#define wxUSE_CHOICEBOOK 1
46310_ACEOF
46311
46312 USES_CONTROLS=1
46313fi
46314
a848cd7e
SC
46315if test "$wxUSE_CHECKBOX" = "yes"; then
46316 cat >>confdefs.h <<\_ACEOF
46317#define wxUSE_CHECKBOX 1
46318_ACEOF
46319
46320 USES_CONTROLS=1
46321fi
46322
46323if test "$wxUSE_CHECKLST" = "yes"; then
46324 cat >>confdefs.h <<\_ACEOF
46325#define wxUSE_CHECKLISTBOX 1
46326_ACEOF
46327
46328 USES_CONTROLS=1
46329 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
46330fi
46331
e9263684
VZ
46332if test "$wxUSE_COLOURPICKERCTRL" = "yes"; then
46333 cat >>confdefs.h <<\_ACEOF
46334#define wxUSE_COLOURPICKERCTRL 1
46335_ACEOF
46336
46337 USES_CONTROLS=1
46338fi
46339
da98e9be
VZ
46340if test "$wxUSE_DATEPICKCTRL" = "yes"; then
46341 cat >>confdefs.h <<\_ACEOF
46342#define wxUSE_DATEPICKCTRL 1
46343_ACEOF
46344
46345 USES_CONTROLS=1
46346fi
46347
e9263684
VZ
46348if test "$wxUSE_DIRPICKERCTRL" = "yes"; then
46349 cat >>confdefs.h <<\_ACEOF
46350#define wxUSE_DIRPICKERCTRL 1
46351_ACEOF
46352
46353 USES_CONTROLS=1
46354fi
46355
46356if test "$wxUSE_FILEPICKERCTRL" = "yes"; then
46357 cat >>confdefs.h <<\_ACEOF
46358#define wxUSE_FILEPICKERCTRL 1
46359_ACEOF
46360
46361 USES_CONTROLS=1
46362fi
46363
46364if test "$wxUSE_FONTPICKERCTRL" = "yes"; then
46365 cat >>confdefs.h <<\_ACEOF
46366#define wxUSE_FONTPICKERCTRL 1
46367_ACEOF
46368
46369 USES_CONTROLS=1
46370fi
46371
a848cd7e
SC
46372if test "$wxUSE_DISPLAY" = "yes"; then
46373 cat >>confdefs.h <<\_ACEOF
46374#define wxUSE_DISPLAY 1
46375_ACEOF
46376
0b78747f 46377 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display multimon"
a848cd7e
SC
46378fi
46379
88bbc332
RR
46380if test "$wxUSE_DETECT_SM" = "yes"; then
46381 cat >>confdefs.h <<\_ACEOF
46382#define wxUSE_DETECT_SM 1
46383_ACEOF
46384
46385fi
46386
a848cd7e
SC
46387if test "$wxUSE_GAUGE" = "yes"; then
46388 cat >>confdefs.h <<\_ACEOF
46389#define wxUSE_GAUGE 1
46390_ACEOF
46391
46392 USES_CONTROLS=1
46393fi
46394
46395if test "$wxUSE_GRID" = "yes"; then
46396 cat >>confdefs.h <<\_ACEOF
46397#define wxUSE_GRID 1
46398_ACEOF
46399
46400 USES_CONTROLS=1
46401 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
46402fi
46403
6954625c
VZ
46404if test "$wxUSE_HYPERLINKCTRL" = "yes"; then
46405 cat >>confdefs.h <<\_ACEOF
46406#define wxUSE_HYPERLINKCTRL 1
46407_ACEOF
46408
46409 USES_CONTROLS=1
46410fi
46411
95a46303
RR
46412if test "$wxUSE_BITMAPCOMBOBOX" = "yes"; then
46413 cat >>confdefs.h <<\_ACEOF
46414#define wxUSE_BITMAPCOMBOBOX 1
46415_ACEOF
46416
46417 USES_CONTROLS=1
46418fi
46419
20e34ecc
RR
46420if test "$wxUSE_DATAVIEWCTRL" = "yes"; then
46421 cat >>confdefs.h <<\_ACEOF
46422#define wxUSE_DATAVIEWCTRL 1
46423_ACEOF
46424
46425 USES_CONTROLS=1
46426 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dataview"
46427fi
46428
a848cd7e
SC
46429if test "$wxUSE_IMAGLIST" = "yes"; then
46430 cat >>confdefs.h <<\_ACEOF
46431#define wxUSE_IMAGLIST 1
46432_ACEOF
46433
46434fi
46435
46436if test "$wxUSE_LISTBOOK" = "yes"; then
46437 cat >>confdefs.h <<\_ACEOF
46438#define wxUSE_LISTBOOK 1
46439_ACEOF
46440
46441 USES_CONTROLS=1
46442fi
46443
46444if test "$wxUSE_LISTBOX" = "yes"; then
46445 cat >>confdefs.h <<\_ACEOF
46446#define wxUSE_LISTBOX 1
46447_ACEOF
46448
46449 USES_CONTROLS=1
0b78747f 46450 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listbox"
a848cd7e
SC
46451fi
46452
46453if test "$wxUSE_LISTCTRL" = "yes"; then
46454 if test "$wxUSE_IMAGLIST" = "yes"; then
46455 cat >>confdefs.h <<\_ACEOF
46456#define wxUSE_LISTCTRL 1
46457_ACEOF
46458
46459 USES_CONTROLS=1
46460 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
46461 else
46462 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
46463echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
46464 fi
46465fi
46466
46467if test "$wxUSE_NOTEBOOK" = "yes"; then
46468 cat >>confdefs.h <<\_ACEOF
46469#define wxUSE_NOTEBOOK 1
46470_ACEOF
46471
46472 USES_CONTROLS=1
46473 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
46474fi
46475
a57d600f 46476if test "$wxUSE_ODCOMBOBOX" = "yes"; then
642bcba9 46477 cat >>confdefs.h <<\_ACEOF
a57d600f 46478#define wxUSE_ODCOMBOBOX 1
642bcba9
VZ
46479_ACEOF
46480
46481 USES_CONTROLS=1
46482 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS combo"
46483fi
46484
a848cd7e
SC
46485
46486if test "$wxUSE_RADIOBOX" = "yes"; then
46487 cat >>confdefs.h <<\_ACEOF
46488#define wxUSE_RADIOBOX 1
46489_ACEOF
46490
46491 USES_CONTROLS=1
46492fi
46493
46494if test "$wxUSE_RADIOBTN" = "yes"; then
46495 cat >>confdefs.h <<\_ACEOF
46496#define wxUSE_RADIOBTN 1
46497_ACEOF
46498
46499 USES_CONTROLS=1
46500fi
46501
46502if test "$wxUSE_SASH" = "yes"; then
46503 cat >>confdefs.h <<\_ACEOF
46504#define wxUSE_SASH 1
46505_ACEOF
46506
46507 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
46508fi
46509
46510if test "$wxUSE_SCROLLBAR" = "yes"; then
46511 cat >>confdefs.h <<\_ACEOF
46512#define wxUSE_SCROLLBAR 1
46513_ACEOF
46514
46515 USES_CONTROLS=1
46516 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
46517fi
46518
46519if test "$wxUSE_SLIDER" = "yes"; then
46520 cat >>confdefs.h <<\_ACEOF
46521#define wxUSE_SLIDER 1
46522_ACEOF
46523
46524 USES_CONTROLS=1
46525fi
46526
46527if test "$wxUSE_SPINBTN" = "yes"; then
46528 cat >>confdefs.h <<\_ACEOF
46529#define wxUSE_SPINBTN 1
46530_ACEOF
46531
46532 USES_CONTROLS=1
46533fi
46534
46535if test "$wxUSE_SPINCTRL" = "yes"; then
46536 cat >>confdefs.h <<\_ACEOF
46537#define wxUSE_SPINCTRL 1
46538_ACEOF
46539
46540 USES_CONTROLS=1
46541fi
46542
46543if test "$wxUSE_SPLITTER" = "yes"; then
46544 cat >>confdefs.h <<\_ACEOF
46545#define wxUSE_SPLITTER 1
46546_ACEOF
46547
46548 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
46549fi
46550
46551if test "$wxUSE_STATBMP" = "yes"; then
46552 cat >>confdefs.h <<\_ACEOF
46553#define wxUSE_STATBMP 1
46554_ACEOF
46555
46556 USES_CONTROLS=1
46557fi
46558
46559if test "$wxUSE_STATBOX" = "yes"; then
46560 cat >>confdefs.h <<\_ACEOF
46561#define wxUSE_STATBOX 1
46562_ACEOF
46563
46564 USES_CONTROLS=1
46565fi
46566
46567if test "$wxUSE_STATTEXT" = "yes"; then
46568 cat >>confdefs.h <<\_ACEOF
46569#define wxUSE_STATTEXT 1
46570_ACEOF
46571
46572 USES_CONTROLS=1
46573fi
46574
46575if test "$wxUSE_STATLINE" = "yes"; then
46576 cat >>confdefs.h <<\_ACEOF
46577#define wxUSE_STATLINE 1
46578_ACEOF
46579
46580 USES_CONTROLS=1
46581fi
46582
46583if test "$wxUSE_STATUSBAR" = "yes"; then
da4486fb
VZ
46584 cat >>confdefs.h <<\_ACEOF
46585#define wxUSE_NATIVE_STATUSBAR 1
46586_ACEOF
46587
a848cd7e
SC
46588 cat >>confdefs.h <<\_ACEOF
46589#define wxUSE_STATUSBAR 1
46590_ACEOF
46591
46592 USES_CONTROLS=1
46593
46594 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
46595fi
46596
f10e38c4 46597if test "$wxUSE_TAB_DIALOG" = "yes"; then
a848cd7e
SC
46598 cat >>confdefs.h <<\_ACEOF
46599#define wxUSE_TAB_DIALOG 1
46600_ACEOF
46601
a848cd7e
SC
46602fi
46603
46604if test "$wxUSE_TEXTCTRL" = "yes"; then
46605 cat >>confdefs.h <<\_ACEOF
46606#define wxUSE_TEXTCTRL 1
46607_ACEOF
46608
46609 USES_CONTROLS=1
46610 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
46611fi
46612
46613if test "$wxUSE_TOGGLEBTN" = "yes"; then
46614 if test "$wxUSE_COCOA" = 1 ; then
46615 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
46616echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
46617 wxUSE_TOGGLEBTN=no
46618 fi
a848cd7e
SC
46619
46620 if test "$wxUSE_TOGGLEBTN" = "yes"; then
46621 cat >>confdefs.h <<\_ACEOF
46622#define wxUSE_TOGGLEBTN 1
46623_ACEOF
46624
46625 USES_CONTROLS=1
46626 fi
46627fi
46628
a848cd7e
SC
46629if test "$wxUSE_TOOLBAR" = "yes"; then
46630 cat >>confdefs.h <<\_ACEOF
46631#define wxUSE_TOOLBAR 1
46632_ACEOF
46633
46634 USES_CONTROLS=1
46635
452b6243
VS
46636 if test "$wxUSE_UNIVERSAL" = "yes"; then
46637 wxUSE_TOOLBAR_NATIVE="no"
46638 else
46639 wxUSE_TOOLBAR_NATIVE="yes"
a848cd7e
SC
46640 cat >>confdefs.h <<\_ACEOF
46641#define wxUSE_TOOLBAR_NATIVE 1
46642_ACEOF
46643
a848cd7e
SC
46644 fi
46645
46646 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
46647fi
46648
46649if test "$wxUSE_TOOLTIPS" = "yes"; then
46650 if test "$wxUSE_MOTIF" = 1; then
46651 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
46652echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
46653 else
46654 if test "$wxUSE_UNIVERSAL" = "yes"; then
46655 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
46656echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
46657 else
46658 cat >>confdefs.h <<\_ACEOF
46659#define wxUSE_TOOLTIPS 1
46660_ACEOF
46661
46662 fi
46663 fi
46664fi
46665
0093c2fc
VZ
46666if test "$wxUSE_TREEBOOK" = "yes"; then
46667 cat >>confdefs.h <<\_ACEOF
46668#define wxUSE_TREEBOOK 1
46669_ACEOF
46670
46671 USES_CONTROLS=1
46672fi
46673
5ec3bc43
JS
46674if test "$wxUSE_TOOLBOOK" = "yes"; then
46675 cat >>confdefs.h <<\_ACEOF
46676#define wxUSE_TOOLBOOK 1
46677_ACEOF
46678
46679 USES_CONTROLS=1
46680fi
46681
a848cd7e
SC
46682if test "$wxUSE_TREECTRL" = "yes"; then
46683 if test "$wxUSE_IMAGLIST" = "yes"; then
46684 cat >>confdefs.h <<\_ACEOF
46685#define wxUSE_TREECTRL 1
46686_ACEOF
46687
46688 USES_CONTROLS=1
46689 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
46690 else
46691 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
46692echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
46693 fi
46694fi
46695
46696if test "$wxUSE_POPUPWIN" = "yes"; then
46697 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
46698 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
46699echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
46700 else
46701 if test "$wxUSE_PM" = 1; then
46702 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
46703echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
46704 else
46705 cat >>confdefs.h <<\_ACEOF
46706#define wxUSE_POPUPWIN 1
46707_ACEOF
46708
0b78747f 46709 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup"
a848cd7e
SC
46710
46711 USES_CONTROLS=1
46712 fi
46713 fi
46714fi
46715
0dcd06dd 46716if test "$wxUSE_DIALUP_MANAGER" = "yes"; then
56c6aab7 46717 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 -o "$wxUSE_MGL" = 1; then
480b9f18 46718 { echo "$as_me:$LINENO: WARNING: Dialup manager not supported on this platform... disabled" >&5
56c6aab7 46719echo "$as_me: WARNING: Dialup manager not supported on this platform... disabled" >&2;}
b843b628
MB
46720 else
46721 cat >>confdefs.h <<\_ACEOF
46722#define wxUSE_DIALUP_MANAGER 1
46723_ACEOF
46724
46725 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
46726 fi
46727fi
46728
a848cd7e
SC
46729if test "$wxUSE_TIPWINDOW" = "yes"; then
46730 if test "$wxUSE_PM" = 1; then
46731 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
46732echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
46733 else
46734 cat >>confdefs.h <<\_ACEOF
46735#define wxUSE_TIPWINDOW 1
46736_ACEOF
46737
46738 fi
46739fi
46740
46741if test "$USES_CONTROLS" = 1; then
46742 cat >>confdefs.h <<\_ACEOF
46743#define wxUSE_CONTROLS 1
46744_ACEOF
46745
46746fi
46747
46748
46749if test "$wxUSE_ACCESSIBILITY" = "yes"; then
46750 cat >>confdefs.h <<\_ACEOF
46751#define wxUSE_ACCESSIBILITY 1
46752_ACEOF
46753
46754 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
46755fi
46756
38b4a946
VZ
46757if test "$wxUSE_DC_CACHEING" = "yes"; then
46758 cat >>confdefs.h <<\_ACEOF
46759#define wxUSE_DC_CACHEING 1
46760_ACEOF
46761
46762fi
46763
a848cd7e
SC
46764if test "$wxUSE_DRAGIMAGE" = "yes"; then
46765 cat >>confdefs.h <<\_ACEOF
46766#define wxUSE_DRAGIMAGE 1
46767_ACEOF
46768
46769 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
46770fi
46771
46772if test "$wxUSE_EXCEPTIONS" = "yes"; then
07bea8f0
VS
46773 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
46774 { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
46775echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
46776 else
46777 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
46778#define wxUSE_EXCEPTIONS 1
46779_ACEOF
46780
07bea8f0
VS
46781 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
46782 fi
a848cd7e
SC
46783fi
46784
46785USE_HTML=0
46786if test "$wxUSE_HTML" = "yes"; then
46787 cat >>confdefs.h <<\_ACEOF
46788#define wxUSE_HTML 1
46789_ACEOF
46790
46791 USE_HTML=1
46792 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
de59c161
RD
46793 if test "$wxUSE_MAC" = 1; then
46794 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
46795 fi
a848cd7e 46796fi
646b6ec1 46797if test "$wxUSE_WEBKIT" = "yes"; then
1e9e8aba 46798 if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
07bea8f0 46799 old_CPPFLAGS="$CPPFLAGS"
c92ad099 46800 CPPFLAGS="-x objective-c++ $CPPFLAGS"
07bea8f0
VS
46801 echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
46802echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6
46803if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
46804 echo $ECHO_N "(cached) $ECHO_C" >&6
46805else
46806 cat >conftest.$ac_ext <<_ACEOF
46807/* confdefs.h. */
46808_ACEOF
46809cat confdefs.h >>conftest.$ac_ext
46810cat >>conftest.$ac_ext <<_ACEOF
46811/* end confdefs.h. */
46812#include <Carbon/Carbon.h>
46813
46814#include <WebKit/HIWebView.h>
46815_ACEOF
46816rm -f conftest.$ac_objext
46817if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46818 (eval $ac_compile) 2>conftest.er1
46819 ac_status=$?
46820 grep -v '^ *+' conftest.er1 >conftest.err
46821 rm -f conftest.er1
46822 cat conftest.err >&5
46823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46824 (exit $ac_status); } &&
bb9e79c0 46825 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
07bea8f0
VS
46826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46827 (eval $ac_try) 2>&5
46828 ac_status=$?
46829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46830 (exit $ac_status); }; } &&
46831 { ac_try='test -s conftest.$ac_objext'
46832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46833 (eval $ac_try) 2>&5
46834 ac_status=$?
46835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46836 (exit $ac_status); }; }; then
46837 ac_cv_header_WebKit_HIWebView_h=yes
46838else
46839 echo "$as_me: failed program was:" >&5
46840sed 's/^/| /' conftest.$ac_ext >&5
46841
46842ac_cv_header_WebKit_HIWebView_h=no
46843fi
46844rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46845fi
46846echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
46847echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6
46848if test $ac_cv_header_WebKit_HIWebView_h = yes; then
46849
46850 cat >>confdefs.h <<\_ACEOF
646b6ec1
VS
46851#define wxUSE_WEBKIT 1
46852_ACEOF
46853
07bea8f0
VS
46854 WEBKIT_LINK="-framework WebKit"
46855
46856else
46857
46858 { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
46859echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
46860 wxUSE_WEBKIT=no
46861
646b6ec1
VS
46862fi
46863
07bea8f0
VS
46864
46865 CPPFLAGS="$old_CPPFLAGS"
46866 elif test "$wxUSE_COCOA" = 1; then
46867 cat >>confdefs.h <<\_ACEOF
46868#define wxUSE_WEBKIT 1
46869_ACEOF
46870
46871 else
46872 wxUSE_WEBKIT=no
46873 fi
46874fi
46875
9a8f0513
VS
46876USE_XRC=0
46877if test "$wxUSE_XRC" = "yes"; then
d2ebf0b7
VS
46878 if test "$wxUSE_XML" != "yes"; then
46879 { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
46880echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
46881 wxUSE_XRC=no
46882 else
46883 cat >>confdefs.h <<\_ACEOF
9a8f0513
VS
46884#define wxUSE_XRC 1
46885_ACEOF
46886
d2ebf0b7
VS
46887 USE_XRC=1
46888 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
46889 fi
9a8f0513 46890fi
07bea8f0 46891
3f60522a
JS
46892USE_AUI=0
46893if test "$wxUSE_AUI" = "yes"; then
46894 cat >>confdefs.h <<\_ACEOF
46895#define wxUSE_AUI 1
46896_ACEOF
46897
46898 USE_AUI=1
46899 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS aui"
46900fi
46901
a848cd7e
SC
46902if test "$wxUSE_MENUS" = "yes"; then
46903 cat >>confdefs.h <<\_ACEOF
46904#define wxUSE_MENUS 1
46905_ACEOF
46906
46907 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
46908fi
46909
46910if test "$wxUSE_METAFILE" = "yes"; then
46911 cat >>confdefs.h <<\_ACEOF
46912#define wxUSE_METAFILE 1
46913_ACEOF
46914
46915fi
46916
46917if test "$wxUSE_MIMETYPE" = "yes"; then
46918 cat >>confdefs.h <<\_ACEOF
46919#define wxUSE_MIMETYPE 1
46920_ACEOF
46921
46922fi
46923
46924if test "$wxUSE_MINIFRAME" = "yes"; then
46925 cat >>confdefs.h <<\_ACEOF
46926#define wxUSE_MINIFRAME 1
46927_ACEOF
46928
46929 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
46930fi
46931
46932if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
46933 cat >>confdefs.h <<\_ACEOF
46934#define wxUSE_SYSTEM_OPTIONS 1
46935_ACEOF
46936
46937 if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
a49baeab 46938 "$TOOLKIT" = "MOTIF" -o "$TOOLKIT" = "COCOA"; then
a848cd7e
SC
46939 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
46940 fi
46941fi
46942
46943
46944if test "$wxUSE_VALIDATORS" = "yes"; then
46945 cat >>confdefs.h <<\_ACEOF
46946#define wxUSE_VALIDATORS 1
46947_ACEOF
46948
46949 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
46950fi
46951
46952if test "$wxUSE_PALETTE" = "yes" ; then
46953 cat >>confdefs.h <<\_ACEOF
46954#define wxUSE_PALETTE 1
46955_ACEOF
46956
46957fi
46958
46959if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
46960 LIBS=" -lunicows $LIBS"
46961fi
46962
91dea314
MW
46963USE_RICHTEXT=0
46964if test "$wxUSE_RICHTEXT" = "yes"; then
46965 cat >>confdefs.h <<\_ACEOF
46966#define wxUSE_RICHTEXT 1
46967_ACEOF
46968
46969 USE_RICHTEXT=1
46970 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS richtext"
46971fi
46972
a848cd7e
SC
46973
46974if test "$wxUSE_IMAGE" = "yes" ; then
46975 cat >>confdefs.h <<\_ACEOF
46976#define wxUSE_IMAGE 1
46977_ACEOF
46978
46979
46980 if test "$wxUSE_GIF" = "yes" ; then
46981 cat >>confdefs.h <<\_ACEOF
46982#define wxUSE_GIF 1
46983_ACEOF
46984
46985 fi
46986
46987 if test "$wxUSE_PCX" = "yes" ; then
46988 cat >>confdefs.h <<\_ACEOF
46989#define wxUSE_PCX 1
46990_ACEOF
46991
46992 fi
46993
bb9e79c0
VZ
46994 if test "$wxUSE_TGA" = "yes" ; then
46995 cat >>confdefs.h <<\_ACEOF
46996#define wxUSE_TGA 1
46997_ACEOF
46998
46999 fi
47000
a848cd7e
SC
47001 if test "$wxUSE_IFF" = "yes" ; then
47002 cat >>confdefs.h <<\_ACEOF
47003#define wxUSE_IFF 1
47004_ACEOF
47005
47006 fi
47007
47008 if test "$wxUSE_PNM" = "yes" ; then
47009 cat >>confdefs.h <<\_ACEOF
47010#define wxUSE_PNM 1
47011_ACEOF
47012
47013 fi
47014
47015 if test "$wxUSE_XPM" = "yes" ; then
47016 cat >>confdefs.h <<\_ACEOF
47017#define wxUSE_XPM 1
47018_ACEOF
47019
47020 fi
47021
47022 if test "$wxUSE_ICO_CUR" = "yes" ; then
47023 cat >>confdefs.h <<\_ACEOF
47024#define wxUSE_ICO_CUR 1
47025_ACEOF
47026
47027 fi
47028fi
47029
47030
319c5ed4
VZ
47031if test "$wxUSE_ABOUTDLG" = "yes"; then
47032 cat >>confdefs.h <<\_ACEOF
47033#define wxUSE_ABOUTDLG 1
47034_ACEOF
47035
47036fi
47037
a848cd7e
SC
47038if test "$wxUSE_CHOICEDLG" = "yes"; then
47039 cat >>confdefs.h <<\_ACEOF
47040#define wxUSE_CHOICEDLG 1
47041_ACEOF
47042
47043fi
47044
47045if test "$wxUSE_COLOURDLG" = "yes"; then
47046 cat >>confdefs.h <<\_ACEOF
47047#define wxUSE_COLOURDLG 1
47048_ACEOF
47049
47050fi
47051
47052if test "$wxUSE_FILEDLG" = "yes"; then
47053 cat >>confdefs.h <<\_ACEOF
47054#define wxUSE_FILEDLG 1
47055_ACEOF
47056
47057fi
47058
47059if test "$wxUSE_FINDREPLDLG" = "yes"; then
47060 cat >>confdefs.h <<\_ACEOF
47061#define wxUSE_FINDREPLDLG 1
47062_ACEOF
47063
47064fi
47065
47066if test "$wxUSE_FONTDLG" = "yes"; then
47067 cat >>confdefs.h <<\_ACEOF
47068#define wxUSE_FONTDLG 1
47069_ACEOF
47070
47071fi
47072
47073if test "$wxUSE_DIRDLG" = "yes"; then
47074 if test "$wxUSE_TREECTRL" != "yes"; then
47075 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
47076echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
47077 else
47078 cat >>confdefs.h <<\_ACEOF
47079#define wxUSE_DIRDLG 1
47080_ACEOF
47081
47082 fi
47083fi
47084
47085if test "$wxUSE_MSGDLG" = "yes"; then
47086 cat >>confdefs.h <<\_ACEOF
47087#define wxUSE_MSGDLG 1
47088_ACEOF
47089
47090fi
47091
47092if test "$wxUSE_NUMBERDLG" = "yes"; then
47093 cat >>confdefs.h <<\_ACEOF
47094#define wxUSE_NUMBERDLG 1
47095_ACEOF
47096
47097fi
47098
47099if test "$wxUSE_PROGRESSDLG" = "yes"; then
47100 if test "$wxUSE_CONSTRAINTS" != "yes"; then
47101 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
47102echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
47103 else
47104 cat >>confdefs.h <<\_ACEOF
47105#define wxUSE_PROGRESSDLG 1
47106_ACEOF
47107
47108 fi
47109fi
47110
47111if test "$wxUSE_SPLASH" = "yes"; then
47112 cat >>confdefs.h <<\_ACEOF
47113#define wxUSE_SPLASH 1
47114_ACEOF
47115
2057db16 47116 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
a848cd7e
SC
47117fi
47118
47119if test "$wxUSE_STARTUP_TIPS" = "yes"; then
47120 if test "$wxUSE_CONSTRAINTS" != "yes"; then
47121 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
47122echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
47123 else
47124 cat >>confdefs.h <<\_ACEOF
47125#define wxUSE_STARTUP_TIPS 1
47126_ACEOF
47127
47128 fi
47129fi
47130
47131if test "$wxUSE_TEXTDLG" = "yes"; then
47132 cat >>confdefs.h <<\_ACEOF
47133#define wxUSE_TEXTDLG 1
47134_ACEOF
47135
47136fi
47137
47138if test "$wxUSE_WIZARDDLG" = "yes"; then
47139 cat >>confdefs.h <<\_ACEOF
47140#define wxUSE_WIZARDDLG 1
47141_ACEOF
47142
47143 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
47144fi
47145
47146
64b75e64
RD
47147if test "$wxUSE_GRAPHICS_CONTEXT" = "yes"; then
47148 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
47149 cat >>confdefs.h <<\_ACEOF
47150#define wxUSE_GRAPHICS_CONTEXT 1
47151_ACEOF
47152
47153 elif test "$wxUSE_GTK" != 1; then
47154 cat >>confdefs.h <<\_ACEOF
47155#define wxUSE_GRAPHICS_CONTEXT 1
47156_ACEOF
47157
47158 else
47159
47160pkg_failed=no
47161echo "$as_me:$LINENO: checking for CAIRO" >&5
47162echo $ECHO_N "checking for CAIRO... $ECHO_C" >&6
47163
47164if test -n "$PKG_CONFIG"; then
47165 if test -n "$CAIRO_CFLAGS"; then
47166 pkg_cv_CAIRO_CFLAGS="$CAIRO_CFLAGS"
47167 else
47168 if test -n "$PKG_CONFIG" && \
47169 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo\"") >&5
47170 ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
47171 ac_status=$?
47172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47173 (exit $ac_status); }; then
47174 pkg_cv_CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo" 2>/dev/null`
47175else
47176 pkg_failed=yes
47177fi
47178 fi
47179else
47180 pkg_failed=untried
47181fi
47182if test -n "$PKG_CONFIG"; then
47183 if test -n "$CAIRO_LIBS"; then
47184 pkg_cv_CAIRO_LIBS="$CAIRO_LIBS"
47185 else
47186 if test -n "$PKG_CONFIG" && \
47187 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo\"") >&5
47188 ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
47189 ac_status=$?
47190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47191 (exit $ac_status); }; then
47192 pkg_cv_CAIRO_LIBS=`$PKG_CONFIG --libs "cairo" 2>/dev/null`
47193else
47194 pkg_failed=yes
47195fi
47196 fi
47197else
47198 pkg_failed=untried
47199fi
47200
47201
47202
47203if test $pkg_failed = yes; then
47204
47205if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
47206 _pkg_short_errors_supported=yes
47207else
47208 _pkg_short_errors_supported=no
47209fi
47210 if test $_pkg_short_errors_supported = yes; then
47211 CAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cairo"`
47212 else
47213 CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo"`
47214 fi
47215 # Put the nasty error message in config.log where it belongs
47216 echo "$CAIRO_PKG_ERRORS" >&5
47217
ec3edcc9 47218 { echo "$as_me:$LINENO: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&5
64b75e64
RD
47219echo "$as_me: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&2;}
47220
64b75e64 47221elif test $pkg_failed = untried; then
ec3edcc9 47222 { echo "$as_me:$LINENO: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&5
64b75e64
RD
47223echo "$as_me: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&2;}
47224
64b75e64
RD
47225else
47226 CAIRO_CFLAGS=$pkg_cv_CAIRO_CFLAGS
47227 CAIRO_LIBS=$pkg_cv_CAIRO_LIBS
47228 echo "$as_me:$LINENO: result: yes" >&5
47229echo "${ECHO_T}yes" >&6
ec3edcc9 47230 cat >>confdefs.h <<\_ACEOF
64b75e64
RD
47231#define wxUSE_GRAPHICS_CONTEXT 1
47232_ACEOF
47233
64b75e64
RD
47234fi
47235 fi
47236fi
47237
47238
f10e38c4
VZ
47239USE_MEDIA=0
47240
ce756cb0 47241if test "$wxUSE_MEDIACTRL" = "yes"; then
2f6c5bb5
VZ
47242 USE_MEDIA=1
47243
ce756cb0 47244 if test "$wxUSE_GTK" = 1; then
c9a66001 47245 wxUSE_GSTREAMER="no"
ce756cb0 47246
f10e38c4
VZ
47247 GST_VERSION_MAJOR=0
47248 GST_VERSION_MINOR=10
2f6c5bb5 47249 GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
f10e38c4
VZ
47250
47251 if test "$wxUSE_GSTREAMER8" = "no"; then
ce756cb0 47252
3ecd9f92
MW
47253pkg_failed=no
47254echo "$as_me:$LINENO: checking for GST" >&5
47255echo $ECHO_N "checking for GST... $ECHO_C" >&6
ce756cb0 47256
3ecd9f92
MW
47257if test -n "$PKG_CONFIG"; then
47258 if test -n "$GST_CFLAGS"; then
47259 pkg_cv_GST_CFLAGS="$GST_CFLAGS"
47260 else
47261 if test -n "$PKG_CONFIG" && \
47262 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION gconf-2.0\"") >&5
47263 ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0") 2>&5
47264 ac_status=$?
47265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47266 (exit $ac_status); }; then
47267 pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" 2>/dev/null`
dae87f93 47268else
3ecd9f92
MW
47269 pkg_failed=yes
47270fi
47271 fi
47272else
47273 pkg_failed=untried
dae87f93 47274fi
dae87f93 47275if test -n "$PKG_CONFIG"; then
3ecd9f92
MW
47276 if test -n "$GST_LIBS"; then
47277 pkg_cv_GST_LIBS="$GST_LIBS"
47278 else
47279 if test -n "$PKG_CONFIG" && \
47280 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION gconf-2.0\"") >&5
47281 ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0") 2>&5
47282 ac_status=$?
47283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47284 (exit $ac_status); }; then
47285 pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" 2>/dev/null`
dae87f93 47286else
3ecd9f92
MW
47287 pkg_failed=yes
47288fi
47289 fi
47290else
47291 pkg_failed=untried
dae87f93
RN
47292fi
47293
dae87f93 47294
2f6c5bb5 47295
3ecd9f92 47296if test $pkg_failed = yes; then
ce756cb0 47297
3ecd9f92
MW
47298if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
47299 _pkg_short_errors_supported=yes
47300else
47301 _pkg_short_errors_supported=no
47302fi
47303 if test $_pkg_short_errors_supported = yes; then
47304 GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"`
47305 else
47306 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"`
dae87f93 47307 fi
3ecd9f92
MW
47308 # Put the nasty error message in config.log where it belongs
47309 echo "$GST_PKG_ERRORS" >&5
dae87f93
RN
47310
47311
3ecd9f92
MW
47312 { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5
47313echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;}
47314 GST_VERSION_MINOR=8
dae87f93 47315
ce756cb0 47316
3ecd9f92 47317elif test $pkg_failed = untried; then
dae87f93 47318
2f6c5bb5
VZ
47319 { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5
47320echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;}
f10e38c4 47321 GST_VERSION_MINOR=8
dae87f93 47322
2f6c5bb5 47323
3ecd9f92
MW
47324else
47325 GST_CFLAGS=$pkg_cv_GST_CFLAGS
47326 GST_LIBS=$pkg_cv_GST_LIBS
47327 echo "$as_me:$LINENO: result: yes" >&5
47328echo "${ECHO_T}yes" >&6
47329
47330 wxUSE_GSTREAMER="yes"
47331 GST_LIBS="$GST_LIBS -lgstinterfaces-$GST_VERSION"
dae87f93 47332
3ecd9f92 47333fi
2f6c5bb5
VZ
47334 else
47335 GST_VERSION_MINOR=8
f10e38c4 47336 fi
dae87f93 47337
2f6c5bb5
VZ
47338 if test $GST_VERSION_MINOR = "8"; then
47339 GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
dae87f93 47340
3ecd9f92
MW
47341pkg_failed=no
47342echo "$as_me:$LINENO: checking for GST" >&5
47343echo $ECHO_N "checking for GST... $ECHO_C" >&6
dae87f93 47344
3ecd9f92
MW
47345if test -n "$PKG_CONFIG"; then
47346 if test -n "$GST_CFLAGS"; then
47347 pkg_cv_GST_CFLAGS="$GST_CFLAGS"
47348 else
47349 if test -n "$PKG_CONFIG" && \
47350 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5
47351 ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5
47352 ac_status=$?
47353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47354 (exit $ac_status); }; then
47355 pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null`
dae87f93 47356else
3ecd9f92
MW
47357 pkg_failed=yes
47358fi
47359 fi
47360else
47361 pkg_failed=untried
dae87f93 47362fi
f10e38c4 47363if test -n "$PKG_CONFIG"; then
3ecd9f92
MW
47364 if test -n "$GST_LIBS"; then
47365 pkg_cv_GST_LIBS="$GST_LIBS"
47366 else
47367 if test -n "$PKG_CONFIG" && \
47368 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5
47369 ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5
47370 ac_status=$?
47371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47372 (exit $ac_status); }; then
47373 pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null`
dae87f93 47374else
3ecd9f92
MW
47375 pkg_failed=yes
47376fi
47377 fi
47378else
47379 pkg_failed=untried
dae87f93
RN
47380fi
47381
ce756cb0 47382
2f6c5bb5 47383
3ecd9f92 47384if test $pkg_failed = yes; then
dae87f93 47385
3ecd9f92
MW
47386if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
47387 _pkg_short_errors_supported=yes
47388else
47389 _pkg_short_errors_supported=no
47390fi
47391 if test $_pkg_short_errors_supported = yes; then
47392 GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
47393 else
47394 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
dae87f93 47395 fi
3ecd9f92
MW
47396 # Put the nasty error message in config.log where it belongs
47397 echo "$GST_PKG_ERRORS" >&5
dae87f93
RN
47398
47399
3ecd9f92
MW
47400 { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5
47401echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;}
ce756cb0 47402
3ecd9f92 47403elif test $pkg_failed = untried; then
ce756cb0 47404
2f6c5bb5
VZ
47405 { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5
47406echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;}
ce756cb0 47407
3ecd9f92
MW
47408else
47409 GST_CFLAGS=$pkg_cv_GST_CFLAGS
47410 GST_LIBS=$pkg_cv_GST_LIBS
47411 echo "$as_me:$LINENO: result: yes" >&5
47412echo "${ECHO_T}yes" >&6
47413 wxUSE_GSTREAMER="yes"
47414fi
dae87f93 47415 fi
ce756cb0 47416
f10e38c4 47417
dae87f93 47418 if test "$wxUSE_GSTREAMER" = "yes"; then
c9a66001
VZ
47419 case "${host}" in
47420 *-*-solaris2* )
47421 if "$GCC" = yes; then
47422 GST_CFLAGS=`echo $GST_CFLAGS | sed 's/-mt//'`
47423 GST_LIBS=`echo $GST_LIBS | sed 's/-mt//'`
47424 fi
47425 esac
47426
47427 CPPFLAGS="$GST_CFLAGS $CPPFLAGS"
47428 LIBS="$GST_LIBS $LIBS"
47429
dae87f93 47430 cat >>confdefs.h <<\_ACEOF
ce756cb0
RN
47431#define wxUSE_GSTREAMER 1
47432_ACEOF
47433
2f6c5bb5
VZ
47434 else
47435 USE_MEDIA=0
ce756cb0
RN
47436 fi
47437 fi
2f6c5bb5
VZ
47438
47439 if test $USE_MEDIA = 1; then
47440 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
47441 cat >>confdefs.h <<\_ACEOF
ce756cb0
RN
47442#define wxUSE_MEDIACTRL 1
47443_ACEOF
47444
2f6c5bb5 47445 fi
ce756cb0
RN
47446fi
47447
47448
a848cd7e
SC
47449if test "$cross_compiling" = "yes"; then
47450 OSINFO="\"$host\""
47451else
47452 OSINFO=`uname -s -r -m`
47453 OSINFO="\"$OSINFO\""
47454fi
47455
47456cat >>confdefs.h <<_ACEOF
47457#define WXWIN_OS_DESCRIPTION $OSINFO
47458_ACEOF
47459
47460
47461
47462if test "x$prefix" != "xNONE"; then
47463 wxPREFIX=$prefix
47464else
47465 wxPREFIX=$ac_default_prefix
47466fi
47467
47468cat >>confdefs.h <<_ACEOF
47469#define wxINSTALL_PREFIX "$wxPREFIX"
47470_ACEOF
47471
47472
a848cd7e
SC
47473
47474
47475CORE_BASE_LIBS="net base"
47476CORE_GUI_LIBS="adv core"
47477
47478if test "$wxUSE_XML" = "yes" ; then
47479 CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
47480fi
47481if test "$wxUSE_ODBC" != "no" ; then
47482 CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
47483 CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
47484fi
47485if test "$wxUSE_HTML" = "yes" ; then
47486 CORE_GUI_LIBS="html $CORE_GUI_LIBS"
47487fi
61639efb
VZ
47488if test "$wxUSE_DEBUGREPORT" = "yes" ; then
47489 CORE_GUI_LIBS="qa $CORE_GUI_LIBS"
47490fi
9a8f0513
VS
47491if test "$wxUSE_XRC" = "yes" ; then
47492 CORE_GUI_LIBS="xrc $CORE_GUI_LIBS"
47493fi
3f60522a
JS
47494if test "$wxUSE_AUI" = "yes" ; then
47495 CORE_GUI_LIBS="aui $CORE_GUI_LIBS"
47496fi
a848cd7e
SC
47497
47498if test "$wxUSE_GUI" != "yes"; then
47499 CORE_GUI_LIBS=""
47500fi
47501
47502
47503
47504
47505
5d7b7554
VZ
47506ac_ext=c
47507ac_cpp='$CPP $CPPFLAGS'
47508ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47509ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47510ac_compiler_gnu=$ac_cv_c_compiler_gnu
47511
a848cd7e
SC
47512
47513
a848cd7e 47514if test "$wxUSE_MAC" = 1 ; then
a98bf0c0 47515 if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then
1e9e8aba
DE
47516 if test "$USE_DARWIN" = 1; then
47517 LDFLAGS="$LDFLAGS -framework QuickTime"
47518 else
47519 LDFLAGS="$LDFLAGS -lQuickTimeLib"
47520 fi
07bea8f0 47521 fi
5dcf30a0 47522 if test "$USE_DARWIN" = 1; then
1e9e8aba
DE
47523 LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System"
47524 else
47525 LDFLAGS="$LDFLAGS -lCarbonLib"
5dcf30a0 47526 fi
a848cd7e
SC
47527fi
47528if test "$wxUSE_COCOA" = 1 ; then
4cb1d3da 47529 LDFLAGS="$LDFLAGS -framework IOKit -framework Cocoa"
4fc81cbc
RN
47530 if test "$wxUSE_MEDIACTRL" = "yes"; then
47531 LDFLAGS="$LDFLAGS -framework QuickTime"
47532 fi
a848cd7e 47533fi
19b27e78
MW
47534if test "$USE_DARWIN" = 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1 ; then
47535 LDFLAGS="$LDFLAGS -framework IOKit -framework CoreServices -framework System -framework ApplicationServices"
47536fi
a848cd7e 47537
a848cd7e
SC
47538LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
47539
a848cd7e
SC
47540if test "$wxUSE_GUI" = "yes"; then
47541
47542
8bce5cda
MW
47543 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \
47544 dynamic erase event exec font image minimal mobile \
47545 mobile/wxedit mobile/styles propsize render \
9e39d889 47546 rotate shaped vscroll widgets"
a848cd7e
SC
47547
47548 if test "$wxUSE_MONOLITHIC" != "yes"; then
47549 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
47550 fi
0b78747f 47551 if test "$TOOLKIT" = "MSW"; then
8bce5cda
MW
47552 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest"
47553 if test "$wxUSE_UNIVERSAL" != "yes"; then
47554 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg"
47555 fi
47556 fi
47557 if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then
47558 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw"
0b78747f 47559 fi
a848cd7e
SC
47560else
47561 SAMPLES_SUBDIRS="console"
47562fi
47563
47564
48f625bc 47565if test "x$INTELCC" = "xyes" ; then
17a1ebd1
VZ
47566 CWARNINGS="-Wall -wd810,869,981,1418,1572,1684"
47567elif test "$GCC" = yes ; then
47568 CWARNINGS="-Wall -Wundef"
47569fi
47570
48f625bc 47571if test "x$INTELCXX" = "xyes" ; then
7f47faf4 47572 CXXWARNINGS="-Wall -wd279,383,444,810,869,981,1418,1419"
17a1ebd1
VZ
47573elif test "$GXX" = yes ; then
47574 CXXWARNINGS="-Wall -Wundef -Wno-ctor-dtor-privacy"
6ebeb4c7 47575fi
a848cd7e 47576
a848cd7e 47577
5ff751d6
VZ
47578WXCONFIG_CFLAGS=`echo $WXCONFIG_CFLAGS`
47579WXCONFIG_CXXFLAGS=`echo $WXCONFIG_CFLAGS $WXCONFIG_CXXFLAGS`
47580
47581
c92ad099 47582CPPFLAGS=`echo $WXCONFIG_CPPFLAGS \
02b05020 47583 -I\\${wx_top_builddir}/lib/wx/include/${TOOLCHAIN_FULLNAME} \
c92ad099
VZ
47584 -I\\${top_srcdir}/include $TOOLKIT_INCLUDE \
47585 $CPPFLAGS `
5ff751d6 47586
8aeeb05c 47587C_AND_CXX_FLAGS="$DEBUG_CFLAGS $PROFILE_FLAGS $OPTIMISE_CFLAGS"
c92ad099 47588CFLAGS=`echo $WXCONFIG_CFLAGS $CWARNINGS $C_AND_CXX_FLAGS $CFLAGS `
9cbac6d1 47589CXXFLAGS=`echo $WXCONFIG_CXXFLAGS $CXXWARNINGS $C_AND_CXX_FLAGS $CXXFLAGS `
5ff751d6
VZ
47590
47591WXCONFIG_CPPFLAGS=`echo $WXCONFIG_CPPFLAGS $WXCONFIG_ONLY_CPPFLAGS`
47592
a848cd7e 47593
95986553
DE
47594if test "x$MWCC" = "xyes"; then
47595
47596 CC="$CC -cwd source -I-"
47597 CXX="$CXX -cwd source -I-"
47598fi
47599
a848cd7e 47600
0c3c69fc 47601LIBS=`echo $LIBS`
a848cd7e
SC
47602EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
47603EXTRALIBS_XML="$EXPAT_LINK"
47604EXTRALIBS_HTML="$MSPACK_LINK"
47605EXTRALIBS_ODBC="$ODBC_LINK"
47606if test "$wxUSE_GUI" = "yes"; then
2b850ae1 47607 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_HILDON $EXTRALIBS_GNOMEVFS $EXTRALIBS_GNOMEPRINT`
a848cd7e
SC
47608fi
47609if test "$wxUSE_OPENGL" = "yes"; then
47610 EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
47611fi
47612
8aeeb05c 47613LDFLAGS="$LDFLAGS $PROFILE_FLAGS"
a848cd7e 47614
5ff751d6 47615WXCONFIG_LIBS="$LIBS"
a848cd7e
SC
47616
47617if test "$wxUSE_REGEX" = "builtin" ; then
74802184 47618 wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty"
a848cd7e
SC
47619fi
47620if test "$wxUSE_EXPAT" = "builtin" ; then
74802184 47621 wxconfig_3rdparty="expat $wxconfig_3rdparty"
a848cd7e
SC
47622fi
47623if test "$wxUSE_ODBC" = "builtin" ; then
74802184 47624 wxconfig_3rdparty="odbc $wxconfig_3rdparty"
a848cd7e
SC
47625fi
47626if test "$wxUSE_LIBTIFF" = "builtin" ; then
74802184 47627 wxconfig_3rdparty="tiff $wxconfig_3rdparty"
a848cd7e
SC
47628fi
47629if test "$wxUSE_LIBJPEG" = "builtin" ; then
74802184 47630 wxconfig_3rdparty="jpeg $wxconfig_3rdparty"
a848cd7e
SC
47631fi
47632if test "$wxUSE_LIBPNG" = "builtin" ; then
74802184 47633 wxconfig_3rdparty="png $wxconfig_3rdparty"
a848cd7e
SC
47634fi
47635if test "$wxUSE_ZLIB" = "builtin" ; then
74802184 47636 wxconfig_3rdparty="zlib $wxconfig_3rdparty"
a848cd7e
SC
47637fi
47638
47639for i in $wxconfig_3rdparty ; do
5ff751d6 47640 WXCONFIG_LIBS="-lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_LIBS"
a848cd7e
SC
47641done
47642
47643
47644if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
47645 WXUNIV=1
4353a8df
VZ
47646
47647 case "$wxUNIV_THEMES" in
47648 ''|all)
47649 cat >>confdefs.h <<\_ACEOF
47650#define wxUSE_ALL_THEMES 1
47651_ACEOF
47652
47653 ;;
47654
47655 *)
47656 for t in `echo $wxUNIV_THEMES | tr , ' ' | tr a-z A-Z`; do
47657 cat >>confdefs.h <<_ACEOF
47658#define wxUSE_THEME_$t 1
47659_ACEOF
47660
47661 done
47662 esac
a848cd7e
SC
47663else
47664 WXUNIV=0
47665fi
47666
47667
47668
47669
47670
47671
47672
47673
47674
47675if test $wxUSE_MONOLITHIC = "yes" ; then
47676 MONOLITHIC=1
47677else
47678 MONOLITHIC=0
47679fi
47680
47681if test $wxUSE_PLUGINS = "yes" ; then
47682 USE_PLUGINS=1
47683else
47684 USE_PLUGINS=0
47685fi
47686
47687if test $wxUSE_ODBC != "no" ; then
47688 USE_ODBC=1
47689else
47690 USE_ODBC=0
47691fi
47692
16358932
VZ
47693if test "$wxUSE_DEBUGREPORT" = "yes" ; then
47694 USE_QA=1
47695else
47696 USE_QA=0
47697fi
47698
a848cd7e
SC
47699if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
47700 OFFICIAL_BUILD=1
47701else
47702 OFFICIAL_BUILD=0
47703fi
47704
47705
47706
47707
47708
47709
47710
47711
47712
47713
47714
47715
47716
47717
47718
47719
47720
47721
47722
ceec2216 47723
d1c38808 47724
3565d135 47725
2b850ae1 47726
a848cd7e
SC
47727
47728
47729TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
47730
47731
47732
47733
47734
47735
47736
47737
4d4ff94c
VZ
47738case "$TOOLKIT" in
47739 GTK)
c2e9ada4 47740 TOOLKIT_DESC="GTK+"
4d4ff94c 47741 if test "$WXGTK20" = 1; then
c2e9ada4
VZ
47742 TOOLKIT_DESC="$TOOLKIT_DESC 2"
47743 if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
47744 TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomeprint";
47745 fi
47746 if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
47747 TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomevfs"
47748 fi
47749 if test "$wxUSE_LIBHILDON" = "yes"; then
47750 TOOLKIT_EXTRA="$TOOLKIT_EXTRA hildon"
47751 fi
47752
47753 if test "$TOOLKIT_EXTRA" != ""; then
47754 TOOLKIT_DESC="$TOOLKIT_DESC with support for `echo $TOOLKIT_EXTRA | tr -s ' '`"
47755 fi
4d4ff94c 47756 fi
9a8f0513 47757 ;;
4d4ff94c 47758
c2e9ada4
VZ
47759 ?*)
47760 TOOLKIT_DESC=$TOOLKIT_LOWERCASE
47761 ;;
47762
4d4ff94c 47763 *)
c2e9ada4 47764 TOOLKIT_DESC="base only"
9a8f0513 47765 ;;
4d4ff94c 47766esac
a848cd7e 47767
fb00f58d
JS
47768if test "$wxUSE_WINE" = "yes"; then
47769 BAKEFILE_FORCE_PLATFORM=win32
47770fi
47771
7afc46ab 47772if test "$wxUSE_MAC" = 1 ; then
95768535
MW
47773 if test "x$wxUSE_UNIVERSAL_BINARY" != xno ; then
47774 if test "x$wxUSE_UNIVERSAL_BINARY" == xyes; then
47775 OSX_UNIV_OPTS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk"
47776 else
47777 OSX_UNIV_OPTS=${wxUSE_UNIVERSAL_BINARY:+"-isysroot '$wxUSE_UNIVERSAL_BINARY'"}
47778 fi
47779 OSX_UNIV_OPTS="$OSX_UNIV_OPTS -arch ppc -arch i386"
47780 CXXFLAGS="$OSX_UNIV_OPTS $CXXFLAGS"
47781 CFLAGS="$OSX_UNIV_OPTS $CFLAGS"
47782 LDFLAGS="$OSX_UNIV_OPTS $LDFLAGS"
7afc46ab
KO
47783 bk_use_pch=no
47784 fi
47785 # TODO: where do we add "-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk" for libtool (static builds only)?
47786 # The makefile currently uses AR and RANLIB, which libtool apparently supercedes.
7afc46ab
KO
47787fi
47788
a81d5bb6
MW
47789if test "$wxUSE_UNICODE" = yes -a "$GCC" = yes -a "$bk_use_pch" != no
47790then
47791 echo "$as_me:$LINENO: checking for gcc precompiled header bug" >&5
47792echo $ECHO_N "checking for gcc precompiled header bug... $ECHO_C" >&6
47793if test "${wx_cv_gcc_pch_bug+set}" = set; then
47794 echo $ECHO_N "(cached) $ECHO_C" >&6
47795else
47796
6d952fd7
MW
47797 echo '#include <stdio.h>
47798 const wchar_t test_var[] = L"awidetest";' > conftest.h
47799
47800 echo '#include "conftest.h"
47801 int main()
47802 {
be49c6ec 47803 printf("%ls", test_var);
6d952fd7
MW
47804 return 0;
47805 }' > conftest.cpp
47806
47807 wx_cv_gcc_pch_bug="pch not supported"
a81d5bb6 47808
b2983f42 47809 if $CXX conftest.h >/dev/null 2>&1
a81d5bb6 47810 then
6d952fd7 47811 wx_cv_gcc_pch_bug=
a81d5bb6 47812
6c7f5e56 47813 if $CXX -o conftest$PROGRAM_EXT conftest.cpp >/dev/null 2>&1
a81d5bb6 47814 then
6c7f5e56
MW
47815 if tr -dc '[a-z]' < conftest$PROGRAM_EXT |
47816 grep awidetest >/dev/null
6d952fd7
MW
47817 then
47818 wx_cv_gcc_pch_bug=no
47819 else
a81d5bb6 47820 wx_cv_gcc_pch_bug=yes
6d952fd7 47821 fi
a81d5bb6
MW
47822 fi
47823 fi
47824
6c7f5e56 47825 rm -f conftest.h conftest.gch conftest.cpp conftest$PROGRAM_EXT
a81d5bb6
MW
47826
47827fi
47828echo "$as_me:$LINENO: result: $wx_cv_gcc_pch_bug" >&5
47829echo "${ECHO_T}$wx_cv_gcc_pch_bug" >&6
47830
47831 if test "$wx_cv_gcc_pch_bug" = yes; then
47832 bk_use_pch=no
47833 fi
47834fi
47835
9a8f0513 47836
1e9e8aba
DE
47837
47838
a848cd7e 47839 if test "x$BAKEFILE_HOST" = "x"; then
f10e38c4
VZ
47840 if test "x${host}" = "x" ; then
47841 { { echo "$as_me:$LINENO: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&5
47842echo "$as_me: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&2;}
47843 { (exit 1); exit 1; }; }
47844 fi
47845
a848cd7e
SC
47846 BAKEFILE_HOST="${host}"
47847 fi
47848
47849 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
47850
47851 if test -n "$ac_tool_prefix"; then
47852 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
47853set dummy ${ac_tool_prefix}ranlib; ac_word=$2
47854echo "$as_me:$LINENO: checking for $ac_word" >&5
47855echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47856if test "${ac_cv_prog_RANLIB+set}" = set; then
47857 echo $ECHO_N "(cached) $ECHO_C" >&6
47858else
47859 if test -n "$RANLIB"; then
47860 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
47861else
47862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47863for as_dir in $PATH
47864do
47865 IFS=$as_save_IFS
47866 test -z "$as_dir" && as_dir=.
47867 for ac_exec_ext in '' $ac_executable_extensions; do
47868 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47869 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
47870 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47871 break 2
47872 fi
47873done
47874done
47875
47876fi
47877fi
47878RANLIB=$ac_cv_prog_RANLIB
47879if test -n "$RANLIB"; then
47880 echo "$as_me:$LINENO: result: $RANLIB" >&5
47881echo "${ECHO_T}$RANLIB" >&6
47882else
47883 echo "$as_me:$LINENO: result: no" >&5
47884echo "${ECHO_T}no" >&6
47885fi
47886
47887fi
47888if test -z "$ac_cv_prog_RANLIB"; then
47889 ac_ct_RANLIB=$RANLIB
47890 # Extract the first word of "ranlib", so it can be a program name with args.
47891set dummy ranlib; ac_word=$2
47892echo "$as_me:$LINENO: checking for $ac_word" >&5
47893echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47894if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
47895 echo $ECHO_N "(cached) $ECHO_C" >&6
47896else
47897 if test -n "$ac_ct_RANLIB"; then
47898 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
47899else
47900as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47901for as_dir in $PATH
47902do
47903 IFS=$as_save_IFS
47904 test -z "$as_dir" && as_dir=.
47905 for ac_exec_ext in '' $ac_executable_extensions; do
47906 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47907 ac_cv_prog_ac_ct_RANLIB="ranlib"
47908 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47909 break 2
47910 fi
47911done
47912done
47913
47914 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
47915fi
47916fi
47917ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
47918if test -n "$ac_ct_RANLIB"; then
47919 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
47920echo "${ECHO_T}$ac_ct_RANLIB" >&6
47921else
47922 echo "$as_me:$LINENO: result: no" >&5
47923echo "${ECHO_T}no" >&6
47924fi
47925
47926 RANLIB=$ac_ct_RANLIB
47927else
47928 RANLIB="$ac_cv_prog_RANLIB"
47929fi
47930
47931 # Find a good install program. We prefer a C program (faster),
47932# so one script is as good as another. But avoid the broken or
47933# incompatible versions:
47934# SysV /etc/install, /usr/sbin/install
47935# SunOS /usr/etc/install
47936# IRIX /sbin/install
47937# AIX /bin/install
47938# AmigaOS /C/install, which installs bootblocks on floppy discs
47939# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
47940# AFS /usr/afsws/bin/install, which mishandles nonexistent args
47941# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 47942# OS/2's system install, which has a completely different semantic
a848cd7e
SC
47943# ./install, which can be erroneously created by make from ./install.sh.
47944echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
47945echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
47946if test -z "$INSTALL"; then
47947if test "${ac_cv_path_install+set}" = set; then
47948 echo $ECHO_N "(cached) $ECHO_C" >&6
47949else
47950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47951for as_dir in $PATH
47952do
47953 IFS=$as_save_IFS
47954 test -z "$as_dir" && as_dir=.
47955 # Account for people who put trailing slashes in PATH elements.
47956case $as_dir/ in
47957 ./ | .// | /cC/* | \
47958 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 47959 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
47960 /usr/ucb/* ) ;;
47961 *)
47962 # OSF1 and SCO ODT 3.0 have their own names for install.
47963 # Don't use installbsd from OSF since it installs stuff as root
47964 # by default.
47965 for ac_prog in ginstall scoinst install; do
47966 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
47967 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
47968 if test $ac_prog = install &&
47969 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
47970 # AIX install. It has an incompatible calling convention.
47971 :
47972 elif test $ac_prog = install &&
47973 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
47974 # program-specific install script used by HP pwplus--don't use.
47975 :
47976 else
47977 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
47978 break 3
47979 fi
47980 fi
a848cd7e
SC
47981 done
47982 done
47983 ;;
47984esac
47985done
47986
47987
47988fi
47989 if test "${ac_cv_path_install+set}" = set; then
47990 INSTALL=$ac_cv_path_install
47991 else
47992 # As a last resort, use the slow shell script. We don't cache a
47993 # path for INSTALL within a source directory, because that will
47994 # break other packages using the cache if that directory is
47995 # removed, or if the path is relative.
47996 INSTALL=$ac_install_sh
47997 fi
47998fi
47999echo "$as_me:$LINENO: result: $INSTALL" >&5
48000echo "${ECHO_T}$INSTALL" >&6
48001
48002# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
48003# It thinks the first close brace ends the variable substitution.
48004test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
48005
48006test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
48007
48008test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
48009
48010 echo "$as_me:$LINENO: checking whether ln -s works" >&5
48011echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
48012LN_S=$as_ln_s
48013if test "$LN_S" = "ln -s"; then
48014 echo "$as_me:$LINENO: result: yes" >&5
48015echo "${ECHO_T}yes" >&6
48016else
48017 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
48018echo "${ECHO_T}no, using $LN_S" >&6
48019fi
48020
48021
48022 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
48023echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 48024set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
48025if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
48026 echo $ECHO_N "(cached) $ECHO_C" >&6
48027else
48028 cat >conftest.make <<\_ACEOF
48029all:
48030 @echo 'ac_maketemp="$(MAKE)"'
48031_ACEOF
48032# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
48033eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
48034if test -n "$ac_maketemp"; then
48035 eval ac_cv_prog_make_${ac_make}_set=yes
48036else
48037 eval ac_cv_prog_make_${ac_make}_set=no
48038fi
48039rm -f conftest.make
48040fi
48041if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
48042 echo "$as_me:$LINENO: result: yes" >&5
48043echo "${ECHO_T}yes" >&6
48044 SET_MAKE=
48045else
48046 echo "$as_me:$LINENO: result: no" >&5
48047echo "${ECHO_T}no" >&6
48048 SET_MAKE="MAKE=${MAKE-make}"
48049fi
48050
48051
48052
a485900c
VZ
48053 if test "x$SUNCXX" = "xyes"; then
48054 AR=$CXX
48055
48056 AROPTIONS="-xar -o"
48057 else
48058 if test -n "$ac_tool_prefix"; then
a848cd7e
SC
48059 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
48060set dummy ${ac_tool_prefix}ar; ac_word=$2
48061echo "$as_me:$LINENO: checking for $ac_word" >&5
48062echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
48063if test "${ac_cv_prog_AR+set}" = set; then
48064 echo $ECHO_N "(cached) $ECHO_C" >&6
48065else
48066 if test -n "$AR"; then
48067 ac_cv_prog_AR="$AR" # Let the user override the test.
48068else
48069as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48070for as_dir in $PATH
48071do
48072 IFS=$as_save_IFS
48073 test -z "$as_dir" && as_dir=.
48074 for ac_exec_ext in '' $ac_executable_extensions; do
48075 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48076 ac_cv_prog_AR="${ac_tool_prefix}ar"
48077 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48078 break 2
48079 fi
48080done
48081done
48082
48083fi
48084fi
48085AR=$ac_cv_prog_AR
48086if test -n "$AR"; then
48087 echo "$as_me:$LINENO: result: $AR" >&5
48088echo "${ECHO_T}$AR" >&6
48089else
48090 echo "$as_me:$LINENO: result: no" >&5
48091echo "${ECHO_T}no" >&6
48092fi
48093
48094fi
48095if test -z "$ac_cv_prog_AR"; then
48096 ac_ct_AR=$AR
48097 # Extract the first word of "ar", so it can be a program name with args.
48098set dummy ar; ac_word=$2
48099echo "$as_me:$LINENO: checking for $ac_word" >&5
48100echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
48101if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
48102 echo $ECHO_N "(cached) $ECHO_C" >&6
48103else
48104 if test -n "$ac_ct_AR"; then
48105 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
48106else
48107as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48108for as_dir in $PATH
48109do
48110 IFS=$as_save_IFS
48111 test -z "$as_dir" && as_dir=.
48112 for ac_exec_ext in '' $ac_executable_extensions; do
48113 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48114 ac_cv_prog_ac_ct_AR="ar"
48115 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48116 break 2
48117 fi
48118done
48119done
48120
48121 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
48122fi
48123fi
48124ac_ct_AR=$ac_cv_prog_ac_ct_AR
48125if test -n "$ac_ct_AR"; then
48126 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
48127echo "${ECHO_T}$ac_ct_AR" >&6
48128else
48129 echo "$as_me:$LINENO: result: no" >&5
48130echo "${ECHO_T}no" >&6
48131fi
48132
48133 AR=$ac_ct_AR
48134else
48135 AR="$ac_cv_prog_AR"
48136fi
48137
a485900c
VZ
48138 AROPTIONS=rcu
48139 fi
48140
48141
a848cd7e
SC
48142 if test -n "$ac_tool_prefix"; then
48143 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
48144set dummy ${ac_tool_prefix}strip; ac_word=$2
48145echo "$as_me:$LINENO: checking for $ac_word" >&5
48146echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
48147if test "${ac_cv_prog_STRIP+set}" = set; then
48148 echo $ECHO_N "(cached) $ECHO_C" >&6
48149else
48150 if test -n "$STRIP"; then
48151 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
48152else
48153as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48154for as_dir in $PATH
48155do
48156 IFS=$as_save_IFS
48157 test -z "$as_dir" && as_dir=.
48158 for ac_exec_ext in '' $ac_executable_extensions; do
48159 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48160 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
48161 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48162 break 2
48163 fi
48164done
48165done
48166
48167fi
48168fi
48169STRIP=$ac_cv_prog_STRIP
48170if test -n "$STRIP"; then
48171 echo "$as_me:$LINENO: result: $STRIP" >&5
48172echo "${ECHO_T}$STRIP" >&6
48173else
48174 echo "$as_me:$LINENO: result: no" >&5
48175echo "${ECHO_T}no" >&6
48176fi
48177
48178fi
48179if test -z "$ac_cv_prog_STRIP"; then
48180 ac_ct_STRIP=$STRIP
48181 # Extract the first word of "strip", so it can be a program name with args.
48182set dummy strip; ac_word=$2
48183echo "$as_me:$LINENO: checking for $ac_word" >&5
48184echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
48185if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
48186 echo $ECHO_N "(cached) $ECHO_C" >&6
48187else
48188 if test -n "$ac_ct_STRIP"; then
48189 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
48190else
48191as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48192for as_dir in $PATH
48193do
48194 IFS=$as_save_IFS
48195 test -z "$as_dir" && as_dir=.
48196 for ac_exec_ext in '' $ac_executable_extensions; do
48197 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48198 ac_cv_prog_ac_ct_STRIP="strip"
48199 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48200 break 2
48201 fi
48202done
48203done
48204
48205 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
48206fi
48207fi
48208ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
48209if test -n "$ac_ct_STRIP"; then
48210 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
48211echo "${ECHO_T}$ac_ct_STRIP" >&6
48212else
48213 echo "$as_me:$LINENO: result: no" >&5
48214echo "${ECHO_T}no" >&6
48215fi
48216
48217 STRIP=$ac_ct_STRIP
48218else
48219 STRIP="$ac_cv_prog_STRIP"
48220fi
48221
48222 if test -n "$ac_tool_prefix"; then
48223 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
48224set dummy ${ac_tool_prefix}nm; ac_word=$2
48225echo "$as_me:$LINENO: checking for $ac_word" >&5
48226echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
48227if test "${ac_cv_prog_NM+set}" = set; then
48228 echo $ECHO_N "(cached) $ECHO_C" >&6
48229else
48230 if test -n "$NM"; then
48231 ac_cv_prog_NM="$NM" # Let the user override the test.
48232else
48233as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48234for as_dir in $PATH
48235do
48236 IFS=$as_save_IFS
48237 test -z "$as_dir" && as_dir=.
48238 for ac_exec_ext in '' $ac_executable_extensions; do
48239 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48240 ac_cv_prog_NM="${ac_tool_prefix}nm"
48241 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48242 break 2
48243 fi
48244done
48245done
48246
48247fi
48248fi
48249NM=$ac_cv_prog_NM
48250if test -n "$NM"; then
48251 echo "$as_me:$LINENO: result: $NM" >&5
48252echo "${ECHO_T}$NM" >&6
48253else
48254 echo "$as_me:$LINENO: result: no" >&5
48255echo "${ECHO_T}no" >&6
48256fi
48257
48258fi
48259if test -z "$ac_cv_prog_NM"; then
48260 ac_ct_NM=$NM
48261 # Extract the first word of "nm", so it can be a program name with args.
48262set dummy nm; ac_word=$2
48263echo "$as_me:$LINENO: checking for $ac_word" >&5
48264echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
48265if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
48266 echo $ECHO_N "(cached) $ECHO_C" >&6
48267else
48268 if test -n "$ac_ct_NM"; then
48269 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
48270else
48271as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48272for as_dir in $PATH
48273do
48274 IFS=$as_save_IFS
48275 test -z "$as_dir" && as_dir=.
48276 for ac_exec_ext in '' $ac_executable_extensions; do
48277 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48278 ac_cv_prog_ac_ct_NM="nm"
48279 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48280 break 2
48281 fi
48282done
48283done
48284
48285 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
48286fi
48287fi
48288ac_ct_NM=$ac_cv_prog_ac_ct_NM
48289if test -n "$ac_ct_NM"; then
48290 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
48291echo "${ECHO_T}$ac_ct_NM" >&6
48292else
48293 echo "$as_me:$LINENO: result: no" >&5
48294echo "${ECHO_T}no" >&6
48295fi
48296
48297 NM=$ac_ct_NM
48298else
48299 NM="$ac_cv_prog_NM"
48300fi
48301
48302
48303 case ${BAKEFILE_HOST} in
48304 *-hp-hpux* )
1e9e8aba 48305 INSTALL_DIR="mkdir -p"
a848cd7e 48306 ;;
a485900c
VZ
48307 * )
48308 INSTALL_DIR='$(INSTALL) -d'
a848cd7e
SC
48309 ;;
48310 esac
48311
48312
48313 LDFLAGS_GUI=
48314 case ${BAKEFILE_HOST} in
48315 *-*-cygwin* | *-*-mingw32* )
48316 LDFLAGS_GUI="-mwindows"
48317 esac
48318
48319
48320 fi
48321
48322 echo "$as_me:$LINENO: checking if make is GNU make" >&5
48323echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
48324if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
48325 echo $ECHO_N "(cached) $ECHO_C" >&6
48326else
48327
48328 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
48329 egrep -s GNU > /dev/null); then
48330 bakefile_cv_prog_makeisgnu="yes"
48331 else
48332 bakefile_cv_prog_makeisgnu="no"
48333 fi
48334
48335fi
48336echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
48337echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
48338
48339 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
48340 IF_GNU_MAKE=""
48341 else
48342 IF_GNU_MAKE="#"
48343 fi
48344
48345
48346
48347 PLATFORM_UNIX=0
48348 PLATFORM_WIN32=0
48349 PLATFORM_MSDOS=0
48350 PLATFORM_MAC=0
1e9e8aba 48351 PLATFORM_MACOS=0
a848cd7e
SC
48352 PLATFORM_MACOSX=0
48353 PLATFORM_OS2=0
1e9e8aba 48354 PLATFORM_BEOS=0
a848cd7e
SC
48355
48356 if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
48357 case "${BAKEFILE_HOST}" in
810b94f0 48358 *-*-mingw32* )
a848cd7e
SC
48359 PLATFORM_WIN32=1
48360 ;;
48361 *-pc-msdosdjgpp )
48362 PLATFORM_MSDOS=1
48363 ;;
48364 *-pc-os2_emx | *-pc-os2-emx )
48365 PLATFORM_OS2=1
48366 ;;
47bd5406 48367 *-*-darwin* )
a848cd7e
SC
48368 PLATFORM_MAC=1
48369 PLATFORM_MACOSX=1
48370 ;;
1e9e8aba
DE
48371 *-*-beos* )
48372 PLATFORM_BEOS=1
48373 ;;
48374 powerpc-apple-macos* )
48375 PLATFORM_MAC=1
48376 PLATFORM_MACOS=1
48377 ;;
a848cd7e
SC
48378 * )
48379 PLATFORM_UNIX=1
48380 ;;
48381 esac
48382 else
48383 case "$BAKEFILE_FORCE_PLATFORM" in
48384 win32 )
48385 PLATFORM_WIN32=1
48386 ;;
48387 msdos )
48388 PLATFORM_MSDOS=1
48389 ;;
48390 os2 )
48391 PLATFORM_OS2=1
48392 ;;
48393 darwin )
48394 PLATFORM_MAC=1
48395 PLATFORM_MACOSX=1
48396 ;;
48397 unix )
48398 PLATFORM_UNIX=1
48399 ;;
1e9e8aba
DE
48400 beos )
48401 PLATFORM_BEOS=1
48402 ;;
a848cd7e
SC
48403 * )
48404 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
48405echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
48406 { (exit 1); exit 1; }; }
48407 ;;
48408 esac
48409 fi
48410
48411
48412
48413
48414
48415
48416
48417
48418
1e9e8aba
DE
48419
48420
a848cd7e
SC
48421 # Check whether --enable-omf or --disable-omf was given.
48422if test "${enable_omf+set}" = set; then
48423 enableval="$enable_omf"
48424 bk_os2_use_omf="$enableval"
48425fi;
48426
48427 case "${BAKEFILE_HOST}" in
48428 *-*-darwin* )
47bd5406
VZ
48429 if test "x$GCC" = "xyes"; then
48430 CFLAGS="$CFLAGS -fno-common"
48431 CXXFLAGS="$CXXFLAGS -fno-common"
48432 fi
48433 if test "x$XLCC" = "xyes"; then
48434 CFLAGS="$CFLAGS -qnocommon"
48435 CXXFLAGS="$CXXFLAGS -qnocommon"
48436 fi
a848cd7e
SC
48437 ;;
48438
48439 *-pc-os2_emx | *-pc-os2-emx )
48440 if test "x$bk_os2_use_omf" = "xyes" ; then
48441 AR=emxomfar
48442 RANLIB=:
48443 LDFLAGS="-Zomf $LDFLAGS"
48444 CFLAGS="-Zomf $CFLAGS"
48445 CXXFLAGS="-Zomf $CXXFLAGS"
48446 OS2_LIBEXT="lib"
48447 else
48448 OS2_LIBEXT="a"
48449 fi
48450 ;;
1e9e8aba
DE
48451
48452 i*86-*-beos* )
48453 LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
48454 ;;
a848cd7e
SC
48455 esac
48456
48457
48458 SO_SUFFIX="so"
48459 SO_SUFFIX_MODULE="so"
48460 EXEEXT=""
48461 LIBPREFIX="lib"
48462 LIBEXT=".a"
48463 DLLPREFIX="lib"
48464 DLLPREFIX_MODULE=""
48465 DLLIMP_SUFFIX=""
810b94f0 48466 dlldir="$libdir"
a848cd7e
SC
48467
48468 case "${BAKEFILE_HOST}" in
48469 *-hp-hpux* )
48470 SO_SUFFIX="sl"
48471 SO_SUFFIX_MODULE="sl"
48472 ;;
48473 *-*-aix* )
48474 SO_SUFFIX="a"
48475 SO_SUFFIX_MODULE="a"
48476 ;;
810b94f0
MW
48477 *-*-cygwin* )
48478 SO_SUFFIX="dll"
48479 SO_SUFFIX_MODULE="dll"
48480 DLLIMP_SUFFIX="dll.a"
48481 EXEEXT=".exe"
48482 DLLPREFIX="cyg"
48483 dlldir="$bindir"
48484 ;;
48485 *-*-mingw32* )
a848cd7e
SC
48486 SO_SUFFIX="dll"
48487 SO_SUFFIX_MODULE="dll"
48488 DLLIMP_SUFFIX="dll.a"
48489 EXEEXT=".exe"
48490 DLLPREFIX=""
810b94f0 48491 dlldir="$bindir"
a848cd7e
SC
48492 ;;
48493 *-pc-msdosdjgpp )
48494 EXEEXT=".exe"
48495 DLLPREFIX=""
810b94f0 48496 dlldir="$bindir"
a848cd7e
SC
48497 ;;
48498 *-pc-os2_emx | *-pc-os2-emx )
48499 SO_SUFFIX="dll"
48500 SO_SUFFIX_MODULE="dll"
48501 DLLIMP_SUFFIX=$OS2_LIBEXT
48502 EXEEXT=".exe"
48503 DLLPREFIX=""
48504 LIBPREFIX=""
48505 LIBEXT=".$OS2_LIBEXT"
810b94f0 48506 dlldir="$bindir"
a848cd7e 48507 ;;
47bd5406 48508 *-*-darwin* )
a848cd7e
SC
48509 SO_SUFFIX="dylib"
48510 SO_SUFFIX_MODULE="bundle"
48511 ;;
48512 esac
48513
48514 if test "x$DLLIMP_SUFFIX" = "x" ; then
48515 DLLIMP_SUFFIX="$SO_SUFFIX"
48516 fi
48517
48518
48519
48520
48521
48522
48523
48524
48525
48526
48527
810b94f0 48528
1e9e8aba
DE
48529 PIC_FLAG=""
48530 if test "x$GCC" = "xyes"; then
a848cd7e
SC
48531 PIC_FLAG="-fPIC"
48532 fi
48533
1e9e8aba
DE
48534 SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
48535 SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
810b94f0 48536 WINDOWS_IMPLIB=0
1e9e8aba 48537
a848cd7e
SC
48538 case "${BAKEFILE_HOST}" in
48539 *-hp-hpux* )
1e9e8aba 48540 if test "x$GCC" != "xyes"; then
a848cd7e
SC
48541 LDFLAGS="$LDFLAGS -L/usr/lib"
48542
48543 SHARED_LD_CC="${CC} -b -o"
48544 SHARED_LD_CXX="${CXX} -b -o"
48545 PIC_FLAG="+Z"
48546 fi
48547 ;;
48548
48549 *-*-linux* )
48550 if test "x$GCC" != "xyes"; then
48551 echo "$as_me:$LINENO: checking for Intel compiler" >&5
48552echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
48553if test "${bakefile_cv_prog_icc+set}" = set; then
48554 echo $ECHO_N "(cached) $ECHO_C" >&6
48555else
48556
48557 cat >conftest.$ac_ext <<_ACEOF
48558/* confdefs.h. */
48559_ACEOF
48560cat confdefs.h >>conftest.$ac_ext
48561cat >>conftest.$ac_ext <<_ACEOF
48562/* end confdefs.h. */
48563
48564int
48565main ()
48566{
48567
48568 #ifndef __INTEL_COMPILER
e5efa97e 48569 This is not ICC
a848cd7e
SC
48570 #endif
48571
48572 ;
48573 return 0;
48574}
48575_ACEOF
48576rm -f conftest.$ac_objext
48577if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 48578 (eval $ac_compile) 2>conftest.er1
a848cd7e 48579 ac_status=$?
ac1cb8d3
VS
48580 grep -v '^ *+' conftest.er1 >conftest.err
48581 rm -f conftest.er1
48582 cat conftest.err >&5
a848cd7e
SC
48583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48584 (exit $ac_status); } &&
bb9e79c0 48585 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
48586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48587 (eval $ac_try) 2>&5
48588 ac_status=$?
48589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48590 (exit $ac_status); }; } &&
48591 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
48592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48593 (eval $ac_try) 2>&5
48594 ac_status=$?
48595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48596 (exit $ac_status); }; }; then
48597 bakefile_cv_prog_icc=yes
48598else
48599 echo "$as_me: failed program was:" >&5
48600sed 's/^/| /' conftest.$ac_ext >&5
48601
48602bakefile_cv_prog_icc=no
48603
48604fi
ac1cb8d3 48605rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
48606
48607fi
48608echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
48609echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
48610 if test "$bakefile_cv_prog_icc" = "yes"; then
48611 PIC_FLAG="-KPIC"
48612 fi
48613 fi
48614 ;;
48615
48616 *-*-solaris2* )
48617 if test "x$GCC" != xyes ; then
48618 SHARED_LD_CC="${CC} -G -o"
48619 SHARED_LD_CXX="${CXX} -G -o"
48620 PIC_FLAG="-KPIC"
48621 fi
48622 ;;
48623
48624 *-*-darwin* )
48625
473276a9
VS
48626D='$'
48627cat <<EOF >shared-ld-sh
a848cd7e
SC
48628#!/bin/sh
48629#-----------------------------------------------------------------------------
48630#-- Name: distrib/mac/shared-ld-sh
48631#-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
48632#-- Author: Gilles Depeyrot
48633#-- Copyright: (c) 2002 Gilles Depeyrot
48634#-- Licence: any use permitted
48635#-----------------------------------------------------------------------------
48636
48637verbose=0
48638args=""
48639objects=""
48640linking_flag="-dynamiclib"
810b94f0 48641ldargs="-r -keep_private_externs -nostdlib"
a848cd7e 48642
473276a9
VS
48643while test ${D}# -gt 0; do
48644 case ${D}1 in
a848cd7e
SC
48645
48646 -v)
48647 verbose=1
48648 ;;
48649
48650 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
48651 # collect these options and values
473276a9 48652 args="${D}{args} ${D}1 ${D}2"
a848cd7e
SC
48653 shift
48654 ;;
48655
810b94f0
MW
48656 -s|-Wl,*)
48657 # collect these load args
48658 ldargs="${D}{ldargs} ${D}1"
2113bc77 48659 ;;
810b94f0
MW
48660
48661 -l*|-L*|-flat_namespace|-headerpad_max_install_names)
a848cd7e 48662 # collect these options
473276a9 48663 args="${D}{args} ${D}1"
a848cd7e
SC
48664 ;;
48665
48666 -dynamiclib|-bundle)
473276a9 48667 linking_flag="${D}1"
a848cd7e
SC
48668 ;;
48669
48670 -*)
473276a9 48671 echo "shared-ld: unhandled option '${D}1'"
a848cd7e
SC
48672 exit 1
48673 ;;
48674
48675 *.o | *.a | *.dylib)
48676 # collect object files
473276a9 48677 objects="${D}{objects} ${D}1"
a848cd7e
SC
48678 ;;
48679
48680 *)
473276a9 48681 echo "shared-ld: unhandled argument '${D}1'"
a848cd7e
SC
48682 exit 1
48683 ;;
48684
48685 esac
48686 shift
48687done
48688
810b94f0
MW
48689status=0
48690
a848cd7e
SC
48691#
48692# Link one module containing all the others
48693#
473276a9 48694if test ${D}{verbose} = 1; then
810b94f0 48695 echo "c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o"
a848cd7e 48696fi
810b94f0 48697c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o
473276a9 48698status=${D}?
a848cd7e
SC
48699
48700#
810b94f0
MW
48701# Link the shared library from the single module created, but only if the
48702# previous command didn't fail:
a848cd7e 48703#
810b94f0
MW
48704if test ${D}{status} = 0; then
48705 if test ${D}{verbose} = 1; then
48706 echo "c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
48707 fi
48708 c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}
48709 status=${D}?
a848cd7e
SC
48710fi
48711
48712#
48713# Remove intermediate module
48714#
473276a9 48715rm -f master.${D}${D}.o
a848cd7e 48716
810b94f0 48717exit ${D}status
a848cd7e 48718EOF
473276a9 48719
583d6b4b
VZ
48720 chmod +x shared-ld-sh
48721
48722 SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
48723 SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
48724
48725
48726 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
48727echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
48728if test "${bakefile_cv_gcc31+set}" = set; then
48729 echo $ECHO_N "(cached) $ECHO_C" >&6
48730else
48731
48732 cat >conftest.$ac_ext <<_ACEOF
48733/* confdefs.h. */
48734_ACEOF
48735cat confdefs.h >>conftest.$ac_ext
48736cat >>conftest.$ac_ext <<_ACEOF
48737/* end confdefs.h. */
48738
48739int
48740main ()
48741{
48742
48743 #if (__GNUC__ < 3) || \
48744 ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
e5efa97e 48745 This is old gcc
583d6b4b 48746 #endif
a848cd7e 48747
583d6b4b
VZ
48748 ;
48749 return 0;
48750}
48751_ACEOF
48752rm -f conftest.$ac_objext
48753if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48754 (eval $ac_compile) 2>conftest.er1
48755 ac_status=$?
48756 grep -v '^ *+' conftest.er1 >conftest.err
48757 rm -f conftest.er1
48758 cat conftest.err >&5
48759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48760 (exit $ac_status); } &&
bb9e79c0 48761 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
583d6b4b
VZ
48762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48763 (eval $ac_try) 2>&5
48764 ac_status=$?
48765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48766 (exit $ac_status); }; } &&
48767 { ac_try='test -s conftest.$ac_objext'
48768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48769 (eval $ac_try) 2>&5
48770 ac_status=$?
48771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48772 (exit $ac_status); }; }; then
48773
48774 bakefile_cv_gcc31=yes
48775
48776else
48777 echo "$as_me: failed program was:" >&5
48778sed 's/^/| /' conftest.$ac_ext >&5
48779
48780
48781 bakefile_cv_gcc31=no
48782
48783
48784fi
48785rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48786
48787fi
48788echo "$as_me:$LINENO: result: $bakefile_cv_gcc31" >&5
48789echo "${ECHO_T}$bakefile_cv_gcc31" >&6
48790 if test "$bakefile_cv_gcc31" = "no"; then
a848cd7e 48791 SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
a848cd7e 48792 SHARED_LD_CXX="$SHARED_LD_CC"
a848cd7e
SC
48793 else
48794 SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
a848cd7e 48795 SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
a848cd7e
SC
48796 fi
48797
47bd5406
VZ
48798 if test "x$GCC" == "xyes"; then
48799 PIC_FLAG="-dynamic -fPIC"
48800 fi
48801 if test "x$XLCC" = "xyes"; then
48802 PIC_FLAG="-dynamic -DPIC"
48803 fi
a848cd7e
SC
48804 ;;
48805
48806 *-*-aix* )
f6b50c59 48807 if test "x$GCC" = "xyes"; then
583d6b4b 48808 PIC_FLAG=""
f6b50c59 48809
583d6b4b
VZ
48810 case "${BAKEFILE_HOST}" in
48811 *-*-aix5* )
48812 LD_EXPFULL="-Wl,-bexpfull"
48813 ;;
48814 esac
f6b50c59 48815
583d6b4b
VZ
48816 SHARED_LD_CC="\$(CC) -shared $LD_EXPFULL -o"
48817 SHARED_LD_CXX="\$(CXX) -shared $LD_EXPFULL -o"
48818 else
48819 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
a848cd7e
SC
48820set dummy makeC++SharedLib; ac_word=$2
48821echo "$as_me:$LINENO: checking for $ac_word" >&5
48822echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
48823if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
48824 echo $ECHO_N "(cached) $ECHO_C" >&6
48825else
48826 if test -n "$AIX_CXX_LD"; then
48827 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
48828else
48829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48830for as_dir in $PATH
48831do
48832 IFS=$as_save_IFS
48833 test -z "$as_dir" && as_dir=.
48834 for ac_exec_ext in '' $ac_executable_extensions; do
48835 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48836 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
48837 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48838 break 2
48839 fi
48840done
48841done
48842
48843 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
48844fi
48845fi
48846AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
48847if test -n "$AIX_CXX_LD"; then
48848 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
48849echo "${ECHO_T}$AIX_CXX_LD" >&6
48850else
48851 echo "$as_me:$LINENO: result: no" >&5
48852echo "${ECHO_T}no" >&6
48853fi
48854
f6b50c59 48855 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
a848cd7e
SC
48856 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
48857 fi
48858 ;;
48859
48860 *-*-beos* )
1e9e8aba
DE
48861 SHARED_LD_CC="${LD} -nostart -o"
48862 SHARED_LD_CXX="${LD} -nostart -o"
a848cd7e
SC
48863 ;;
48864
48865 *-*-irix* )
48866 if test "x$GCC" != "xyes"; then
48867 PIC_FLAG="-KPIC"
48868 fi
48869 ;;
48870
48871 *-*-cygwin* | *-*-mingw32* )
48872 PIC_FLAG=""
1e9e8aba
DE
48873 SHARED_LD_CC="\$(CC) -shared -o"
48874 SHARED_LD_CXX="\$(CXX) -shared -o"
810b94f0 48875 WINDOWS_IMPLIB=1
a848cd7e
SC
48876 ;;
48877
48878 *-pc-os2_emx | *-pc-os2-emx )
b1d22ded
DE
48879 SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
48880 SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
a848cd7e 48881 PIC_FLAG=""
473276a9
VS
48882
48883D='$'
48884cat <<EOF >dllar.sh
48885#!/bin/sh
48886#
48887# dllar - a tool to build both a .dll and an .a file
48888# from a set of object (.o) files for EMX/OS2.
48889#
48890# Written by Andrew Zabolotny, bit@freya.etu.ru
48891# Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
48892#
48893# This script will accept a set of files on the command line.
48894# All the public symbols from the .o files will be exported into
48895# a .DEF file, then linker will be run (through gcc) against them to
48896# build a shared library consisting of all given .o files. All libraries
48897# (.a) will be first decompressed into component .o files then act as
48898# described above. You can optionally give a description (-d "description")
48899# which will be put into .DLL. To see the list of accepted options (as well
48900# as command-line format) simply run this program without options. The .DLL
48901# is built to be imported by name (there is no guarantee that new versions
48902# of the library you build will have same ordinals for same symbols).
48903#
48904# dllar is free software; you can redistribute it and/or modify
48905# it under the terms of the GNU General Public License as published by
48906# the Free Software Foundation; either version 2, or (at your option)
48907# any later version.
48908#
48909# dllar is distributed in the hope that it will be useful,
48910# but WITHOUT ANY WARRANTY; without even the implied warranty of
48911# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
48912# GNU General Public License for more details.
48913#
48914# You should have received a copy of the GNU General Public License
48915# along with dllar; see the file COPYING. If not, write to the Free
48916# Software Foundation, 59 Temple Place - Suite 330, Boston, MA
48917# 02111-1307, USA.
48918
48919# To successfuly run this program you will need:
48920# - Current drive should have LFN support (HPFS, ext2, network, etc)
48921# (Sometimes dllar generates filenames which won't fit 8.3 scheme)
48922# - gcc
48923# (used to build the .dll)
48924# - emxexp
48925# (used to create .def file from .o files)
48926# - emximp
48927# (used to create .a file from .def file)
48928# - GNU text utilites (cat, sort, uniq)
48929# used to process emxexp output
48930# - GNU file utilities (mv, rm)
48931# - GNU sed
48932# - lxlite (optional, see flag below)
48933# (used for general .dll cleanup)
48934#
48935
48936flag_USE_LXLITE=1;
48937
48938#
48939# helper functions
48940# basnam, variant of basename, which does _not_ remove the path, _iff_
48941# second argument (suffix to remove) is given
48942basnam(){
48943 case ${D}# in
48944 1)
1e9e8aba 48945 echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
473276a9
VS
48946 ;;
48947 2)
48948 echo ${D}1 | sed 's/'${D}2'${D}//'
48949 ;;
48950 *)
48951 echo "error in basnam ${D}*"
48952 exit 8
48953 ;;
48954 esac
48955}
48956
48957# Cleanup temporary files and output
48958CleanUp() {
48959 cd ${D}curDir
48960 for i in ${D}inputFiles ; do
48961 case ${D}i in
48962 *!)
48963 rm -rf \`basnam ${D}i !\`
48964 ;;
48965 *)
48966 ;;
48967 esac
48968 done
48969
48970 # Kill result in case of failure as there is just to many stupid make/nmake
48971 # things out there which doesn't do this.
1e9e8aba 48972 if [ ${D}# -eq 0 ]; then
473276a9
VS
48973 rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
48974 fi
48975}
48976
48977# Print usage and exit script with rc=1.
48978PrintHelp() {
b1d22ded
DE
48979 echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]'
48980 echo ' [-name-mangler-script script.sh]'
48981 echo ' [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]'
48982 echo ' [-ord[inals]] -ex[clude] "symbol(s)"'
48983 echo ' [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]'
1e9e8aba 48984 echo ' [*.o] [*.a]'
473276a9
VS
48985 echo '*> "output_file" should have no extension.'
48986 echo ' If it has the .o, .a or .dll extension, it is automatically removed.'
48987 echo ' The import library name is derived from this and is set to "name".a,'
48988 echo ' unless overridden by -import'
48989 echo '*> "importlib_name" should have no extension.'
48990 echo ' If it has the .o, or .a extension, it is automatically removed.'
48991 echo ' This name is used as the import library name and may be longer and'
48992 echo ' more descriptive than the DLL name which has to follow the old '
48993 echo ' 8.3 convention of FAT.'
b1d22ded
DE
48994 echo '*> "script.sh may be given to override the output_file name by a'
48995 echo ' different name. It is mainly useful if the regular make process'
48996 echo ' of some package does not take into account OS/2 restriction of'
48997 echo ' DLL name lengths. It takes the importlib name as input and is'
48998 echo ' supposed to procude a shorter name as output. The script should'
48999 echo ' expect to get importlib_name without extension and should produce'
49000 echo ' a (max.) 8 letter name without extension.'
473276a9
VS
49001 echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)'
49002 echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
49003 echo ' These flags will be put at the start of GCC command line.'
b1d22ded
DE
49004 echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.'
49005 echo '*> -ex[clude] defines symbols which will not be exported. You can define'
473276a9
VS
49006 echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
49007 echo ' If the last character of a symbol is "*", all symbols beginning'
49008 echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).'
b1d22ded 49009 echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or'
473276a9 49010 echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
b1d22ded 49011 echo '*> -nocrt[dll] switch will disable linking the library against emx''s'
473276a9 49012 echo ' C runtime DLLs.'
b1d22ded 49013 echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.'
473276a9
VS
49014 echo '*> All other switches (for example -L./ or -lmylib) will be passed'
49015 echo ' unchanged to GCC at the end of command line.'
49016 echo '*> If you create a DLL from a library and you do not specify -o,'
49017 echo ' the basename for DLL and import library will be set to library name,'
49018 echo ' the initial library will be renamed to 'name'_s.a (_s for static)'
49019 echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
49020 echo ' library will be renamed into gcc_s.a.'
49021 echo '--------'
49022 echo 'Example:'
49023 echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
49024 echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
49025 CleanUp
49026 exit 1
49027}
49028
49029# Execute a command.
49030# If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
49031# @Uses Whatever CleanUp() uses.
49032doCommand() {
49033 echo "${D}*"
49034 eval ${D}*
49035 rcCmd=${D}?
49036
1e9e8aba 49037 if [ ${D}rcCmd -ne 0 ]; then
473276a9
VS
49038 echo "command failed, exit code="${D}rcCmd
49039 CleanUp
49040 exit ${D}rcCmd
49041 fi
49042}
49043
49044# main routine
49045# setup globals
49046cmdLine=${D}*
49047outFile=""
49048outimpFile=""
49049inputFiles=""
b1d22ded 49050renameScript=""
473276a9
VS
49051description=""
49052CC=gcc.exe
49053CFLAGS="-s -Zcrtdll"
49054EXTRA_CFLAGS=""
49055EXPORT_BY_ORDINALS=0
49056exclude_symbols=""
49057library_flags=""
49058curDir=\`pwd\`
49059curDirS=curDir
49060case ${D}curDirS in
49061*/)
49062 ;;
49063*)
49064 curDirS=${D}{curDirS}"/"
49065 ;;
49066esac
49067# Parse commandline
49068libsToLink=0
b1d22ded 49069omfLinking=0
1e9e8aba 49070while [ ${D}1 ]; do
473276a9
VS
49071 case ${D}1 in
49072 -ord*)
49073 EXPORT_BY_ORDINALS=1;
49074 ;;
49075 -o*)
49076 shift
49077 outFile=${D}1
49078 ;;
49079 -i*)
49080 shift
49081 outimpFile=${D}1
49082 ;;
b1d22ded
DE
49083 -name-mangler-script)
49084 shift
49085 renameScript=${D}1
49086 ;;
473276a9
VS
49087 -d*)
49088 shift
49089 description=${D}1
49090 ;;
49091 -f*)
49092 shift
49093 CFLAGS=${D}1
49094 ;;
49095 -c*)
49096 shift
49097 CC=${D}1
49098 ;;
49099 -h*)
49100 PrintHelp
49101 ;;
49102 -ex*)
49103 shift
49104 exclude_symbols=${D}{exclude_symbols}${D}1" "
49105 ;;
49106 -libf*)
49107 shift
49108 library_flags=${D}{library_flags}${D}1" "
49109 ;;
49110 -nocrt*)
49111 CFLAGS="-s"
49112 ;;
49113 -nolxl*)
49114 flag_USE_LXLITE=0
49115 ;;
49116 -* | /*)
49117 case ${D}1 in
49118 -L* | -l*)
49119 libsToLink=1
49120 ;;
b1d22ded
DE
49121 -Zomf)
49122 omfLinking=1
49123 ;;
473276a9
VS
49124 *)
49125 ;;
49126 esac
49127 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
49128 ;;
b1d22ded
DE
49129 *.dll)
49130 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`"
49131 if [ ${D}omfLinking -eq 1 ]; then
49132 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib"
49133 else
49134 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a"
49135 fi
49136 ;;
473276a9
VS
49137 *)
49138 found=0;
1e9e8aba 49139 if [ ${D}libsToLink -ne 0 ]; then
473276a9
VS
49140 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
49141 else
49142 for file in ${D}1 ; do
1e9e8aba 49143 if [ -f ${D}file ]; then
473276a9
VS
49144 inputFiles="${D}{inputFiles} ${D}file"
49145 found=1
49146 fi
49147 done
1e9e8aba 49148 if [ ${D}found -eq 0 ]; then
473276a9
VS
49149 echo "ERROR: No file(s) found: "${D}1
49150 exit 8
49151 fi
49152 fi
49153 ;;
49154 esac
49155 shift
49156done # iterate cmdline words
49157
49158#
1e9e8aba 49159if [ -z "${D}inputFiles" ]; then
473276a9
VS
49160 echo "dllar: no input files"
49161 PrintHelp
49162fi
49163
49164# Now extract all .o files from .a files
49165newInputFiles=""
49166for file in ${D}inputFiles ; do
49167 case ${D}file in
49168 *.a | *.lib)
49169 case ${D}file in
49170 *.a)
49171 suffix=".a"
49172 AR="ar"
49173 ;;
49174 *.lib)
49175 suffix=".lib"
49176 AR="emxomfar"
49177 EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
49178 ;;
49179 *)
49180 ;;
49181 esac
49182 dirname=\`basnam ${D}file ${D}suffix\`"_%"
49183 mkdir ${D}dirname
1e9e8aba 49184 if [ ${D}? -ne 0 ]; then
473276a9
VS
49185 echo "Failed to create subdirectory ./${D}dirname"
49186 CleanUp
49187 exit 8;
49188 fi
49189 # Append '!' to indicate archive
49190 newInputFiles="${D}newInputFiles ${D}{dirname}!"
49191 doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
49192 cd ${D}curDir
49193 found=0;
49194 for subfile in ${D}dirname/*.o* ; do
1e9e8aba 49195 if [ -f ${D}subfile ]; then
473276a9 49196 found=1
1e9e8aba 49197 if [ -s ${D}subfile ]; then
473276a9
VS
49198 # FIXME: This should be: is file size > 32 byte, _not_ > 0!
49199 newInputFiles="${D}newInputFiles ${D}subfile"
49200 fi
49201 fi
49202 done
1e9e8aba
DE
49203 if [ ${D}found -eq 0 ]; then
49204 echo "WARNING: there are no files in archive \\'${D}file\\'"
473276a9
VS
49205 fi
49206 ;;
49207 *)
49208 newInputFiles="${D}{newInputFiles} ${D}file"
49209 ;;
49210 esac
49211done
49212inputFiles="${D}newInputFiles"
49213
49214# Output filename(s).
49215do_backup=0;
1e9e8aba 49216if [ -z ${D}outFile ]; then
473276a9
VS
49217 do_backup=1;
49218 set outFile ${D}inputFiles; outFile=${D}2
49219fi
49220
49221# If it is an archive, remove the '!' and the '_%' suffixes
49222case ${D}outFile in
49223*_%!)
49224 outFile=\`basnam ${D}outFile _%!\`
49225 ;;
49226*)
49227 ;;
49228esac
49229case ${D}outFile in
49230*.dll)
49231 outFile=\`basnam ${D}outFile .dll\`
49232 ;;
49233*.DLL)
49234 outFile=\`basnam ${D}outFile .DLL\`
49235 ;;
49236*.o)
49237 outFile=\`basnam ${D}outFile .o\`
49238 ;;
49239*.obj)
49240 outFile=\`basnam ${D}outFile .obj\`
49241 ;;
49242*.a)
49243 outFile=\`basnam ${D}outFile .a\`
49244 ;;
49245*.lib)
49246 outFile=\`basnam ${D}outFile .lib\`
49247 ;;
49248*)
49249 ;;
49250esac
49251case ${D}outimpFile in
49252*.a)
49253 outimpFile=\`basnam ${D}outimpFile .a\`
49254 ;;
49255*.lib)
49256 outimpFile=\`basnam ${D}outimpFile .lib\`
49257 ;;
49258*)
49259 ;;
49260esac
1e9e8aba 49261if [ -z ${D}outimpFile ]; then
473276a9
VS
49262 outimpFile=${D}outFile
49263fi
49264defFile="${D}{outFile}.def"
49265arcFile="${D}{outimpFile}.a"
49266arcFile2="${D}{outimpFile}.lib"
b1d22ded
DE
49267
49268#create ${D}dllFile as something matching 8.3 restrictions,
49269if [ -z ${D}renameScript ] ; then
49270 dllFile="${D}outFile"
49271else
49272 dllFile=\`${D}renameScript ${D}outimpFile\`
49273fi
473276a9 49274
1e9e8aba
DE
49275if [ ${D}do_backup -ne 0 ] ; then
49276 if [ -f ${D}arcFile ] ; then
473276a9
VS
49277 doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
49278 fi
1e9e8aba 49279 if [ -f ${D}arcFile2 ] ; then
473276a9
VS
49280 doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
49281 fi
49282fi
49283
49284# Extract public symbols from all the object files.
49285tmpdefFile=${D}{defFile}_%
49286rm -f ${D}tmpdefFile
49287for file in ${D}inputFiles ; do
49288 case ${D}file in
49289 *!)
49290 ;;
49291 *)
49292 doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
49293 ;;
49294 esac
49295done
49296
49297# Create the def file.
49298rm -f ${D}defFile
49299echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
b1d22ded
DE
49300dllFile="${D}{dllFile}.dll"
49301if [ ! -z ${D}description ]; then
1e9e8aba 49302 echo "DESCRIPTION \\"${D}{description}\\"" >> ${D}defFile
473276a9
VS
49303fi
49304echo "EXPORTS" >> ${D}defFile
49305
49306doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
49307grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
49308
49309# Checks if the export is ok or not.
49310for word in ${D}exclude_symbols; do
49311 grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
49312 mv ${D}{tmpdefFile}% ${D}tmpdefFile
49313done
49314
49315
1e9e8aba
DE
49316if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
49317 sed "=" < ${D}tmpdefFile | \\
473276a9
VS
49318 sed '
49319 N
49320 : loop
1e9e8aba 49321 s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
473276a9
VS
49322 t loop
49323 ' > ${D}{tmpdefFile}%
49324 grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
49325else
49326 rm -f ${D}{tmpdefFile}%
49327fi
49328cat ${D}tmpdefFile >> ${D}defFile
49329rm -f ${D}tmpdefFile
49330
49331# Do linking, create implib, and apply lxlite.
49332gccCmdl="";
49333for file in ${D}inputFiles ; do
49334 case ${D}file in
49335 *!)
49336 ;;
49337 *)
49338 gccCmdl="${D}gccCmdl ${D}file"
49339 ;;
49340 esac
49341done
49342doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
49343touch "${D}{outFile}.dll"
49344
49345doCommand "emximp -o ${D}arcFile ${D}defFile"
1e9e8aba 49346if [ ${D}flag_USE_LXLITE -ne 0 ]; then
473276a9 49347 add_flags="";
1e9e8aba 49348 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
473276a9
VS
49349 add_flags="-ynd"
49350 fi
49351 doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
49352fi
49353doCommand "emxomf -s -l ${D}arcFile"
49354
49355# Successful exit.
49356CleanUp 1
49357exit 0
49358EOF
49359
49360 chmod +x dllar.sh
a848cd7e
SC
49361 ;;
49362
1e9e8aba 49363 powerpc-apple-macos* | \
0ad5d837 49364 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | *-*-k*bsd*-gnu | \
a485900c 49365 *-*-mirbsd* | \
a848cd7e
SC
49366 *-*-sunos4* | \
49367 *-*-osf* | \
49368 *-*-dgux5* | \
47a7e797
MW
49369 *-*-sysv5* | \
49370 *-pc-msdosdjgpp )
a848cd7e
SC
49371 ;;
49372
49373 *)
3ecd9f92 49374 esac
a848cd7e 49375
2057db16
VS
49376 if test "x$PIC_FLAG" != "x" ; then
49377 PIC_FLAG="$PIC_FLAG -DPIC"
49378 fi
49379
a848cd7e
SC
49380 if test "x$SHARED_LD_MODULE_CC" = "x" ; then
49381 SHARED_LD_MODULE_CC="$SHARED_LD_CC"
49382 fi
49383 if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
49384 SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
49385 fi
49386
49387
49388
49389
49390
49391
49392
49393
810b94f0 49394
a848cd7e
SC
49395 USE_SOVERSION=0
49396 USE_SOVERLINUX=0
49397 USE_SOVERSOLARIS=0
810b94f0 49398 USE_SOVERCYGWIN=0
a848cd7e
SC
49399 USE_SOSYMLINKS=0
49400 USE_MACVERSION=0
49401 SONAME_FLAG=
49402
49403 case "${BAKEFILE_HOST}" in
0ad5d837 49404 *-*-linux* | *-*-freebsd* | *-*-k*bsd*-gnu )
5f652d0d
VS
49405 SONAME_FLAG="-Wl,-soname,"
49406 USE_SOVERSION=1
49407 USE_SOVERLINUX=1
49408 USE_SOSYMLINKS=1
49409 ;;
49410
a848cd7e
SC
49411 *-*-solaris2* )
49412 SONAME_FLAG="-h "
49413 USE_SOVERSION=1
49414 USE_SOVERSOLARIS=1
49415 USE_SOSYMLINKS=1
49416 ;;
49417
49418 *-*-darwin* )
49419 USE_MACVERSION=1
49420 USE_SOVERSION=1
49421 USE_SOSYMLINKS=1
49422 ;;
810b94f0
MW
49423
49424 *-*-cygwin* )
49425 USE_SOVERSION=1
49426 USE_SOVERCYGWIN=1
49427 ;;
a848cd7e
SC
49428 esac
49429
49430
49431
49432
49433
49434
49435
49436
49437
810b94f0 49438
f10e38c4
VZ
49439 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
49440if test "${enable_dependency_tracking+set}" = set; then
49441 enableval="$enable_dependency_tracking"
49442 bk_use_trackdeps="$enableval"
49443fi;
49444
a848cd7e
SC
49445 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
49446echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
a848cd7e 49447
a485900c 49448 BK_DEPS=""
f10e38c4
VZ
49449 if test "x$bk_use_trackdeps" = "xno" ; then
49450 DEPS_TRACKING=0
49451 echo "$as_me:$LINENO: result: disabled" >&5
49452echo "${ECHO_T}disabled" >&6
49453 else
49454 DEPS_TRACKING=1
49455
49456 if test "x$GCC" = "xyes"; then
49457 DEPSMODE=gcc
49458 case "${BAKEFILE_HOST}" in
49459 *-*-darwin* )
49460 DEPSFLAG="-no-cpp-precomp -MMD"
49461 ;;
49462 * )
49463 DEPSFLAG="-MMD"
49464 ;;
49465 esac
49466 echo "$as_me:$LINENO: result: gcc" >&5
a848cd7e 49467echo "${ECHO_T}gcc" >&6
f10e38c4
VZ
49468 elif test "x$MWCC" = "xyes"; then
49469 DEPSMODE=mwcc
49470 DEPSFLAG="-MM"
49471 echo "$as_me:$LINENO: result: mwcc" >&5
b1d22ded 49472echo "${ECHO_T}mwcc" >&6
f10e38c4
VZ
49473 elif test "x$SUNCC" = "xyes"; then
49474 DEPSMODE=unixcc
49475 DEPSFLAG="-xM1"
49476 echo "$as_me:$LINENO: result: Sun cc" >&5
0ad5d837 49477echo "${ECHO_T}Sun cc" >&6
f10e38c4
VZ
49478 elif test "x$SGICC" = "xyes"; then
49479 DEPSMODE=unixcc
49480 DEPSFLAG="-M"
49481 echo "$as_me:$LINENO: result: SGI cc" >&5
0ad5d837 49482echo "${ECHO_T}SGI cc" >&6
f10e38c4
VZ
49483 elif test "x$HPCC" = "xyes"; then
49484 DEPSMODE=unixcc
49485 DEPSFLAG="+make"
49486 echo "$as_me:$LINENO: result: HP cc" >&5
3006edc0 49487echo "${ECHO_T}HP cc" >&6
f10e38c4
VZ
49488 elif test "x$COMPAQCC" = "xyes"; then
49489 DEPSMODE=gcc
49490 DEPSFLAG="-MD"
49491 echo "$as_me:$LINENO: result: Compaq cc" >&5
a1aa0349 49492echo "${ECHO_T}Compaq cc" >&6
f10e38c4
VZ
49493 else
49494 DEPS_TRACKING=0
49495 echo "$as_me:$LINENO: result: none" >&5
a848cd7e 49496echo "${ECHO_T}none" >&6
f10e38c4 49497 fi
a848cd7e 49498
f10e38c4 49499 if test $DEPS_TRACKING = 1 ; then
473276a9
VS
49500
49501D='$'
49502cat <<EOF >bk-deps
a848cd7e
SC
49503#!/bin/sh
49504
49505# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
49506# script. It is used to track C/C++ files dependencies in portable way.
49507#
49508# Permission is given to use this file in any way.
49509
473276a9 49510DEPSMODE=${DEPSMODE}
a848cd7e 49511DEPSDIR=.deps
0ad5d837 49512DEPSFLAG="${DEPSFLAG}"
a848cd7e 49513
473276a9 49514mkdir -p ${D}DEPSDIR
a848cd7e 49515
473276a9 49516if test ${D}DEPSMODE = gcc ; then
0ad5d837 49517 ${D}* ${D}{DEPSFLAG}
473276a9
VS
49518 status=${D}?
49519 if test ${D}{status} != 0 ; then
49520 exit ${D}{status}
a848cd7e
SC
49521 fi
49522 # move created file to the location we want it in:
473276a9
VS
49523 while test ${D}# -gt 0; do
49524 case "${D}1" in
a848cd7e
SC
49525 -o )
49526 shift
473276a9 49527 objfile=${D}1
a848cd7e
SC
49528 ;;
49529 -* )
49530 ;;
49531 * )
473276a9 49532 srcfile=${D}1
a848cd7e
SC
49533 ;;
49534 esac
49535 shift
49536 done
1e9e8aba
DE
49537 depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
49538 depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
473276a9
VS
49539 if test -f ${D}depfile ; then
49540 sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
49541 rm -f ${D}depfile
a848cd7e 49542 else
a1aa0349 49543 # "g++ -MMD -o fooobj.o foosrc.cpp" produces fooobj.d
1e9e8aba 49544 depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\`
a1aa0349
VZ
49545 if test ! -f ${D}depfile ; then
49546 # "cxx -MD -o fooobj.o foosrc.cpp" creates fooobj.o.d (Compaq C++)
49547 depfile="${D}objfile.d"
49548 fi
473276a9
VS
49549 if test -f ${D}depfile ; then
49550 sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
49551 rm -f ${D}depfile
a848cd7e
SC
49552 fi
49553 fi
49554 exit 0
81f90336 49555elif test ${D}DEPSMODE = mwcc ; then
f6b50c59 49556 ${D}* || exit ${D}?
81f90336
MW
49557 # Run mwcc again with -MM and redirect into the dep file we want
49558 # NOTE: We can't use shift here because we need ${D}* to be valid
49559 prevarg=
49560 for arg in ${D}* ; do
49561 if test "${D}prevarg" = "-o"; then
49562 objfile=${D}arg
49563 else
49564 case "${D}arg" in
49565 -* )
49566 ;;
49567 * )
49568 srcfile=${D}arg
49569 ;;
49570 esac
49571 fi
49572 prevarg="${D}arg"
49573 done
0ad5d837 49574 ${D}* ${D}DEPSFLAG >${D}{DEPSDIR}/${D}{objfile}.d
81f90336 49575 exit 0
0ad5d837 49576elif test ${D}DEPSMODE = unixcc; then
f6b50c59 49577 ${D}* || exit ${D}?
a9e5b1f0
MW
49578 # Run compiler again with deps flag and redirect into the dep file.
49579 # It doesn't work if the '-o FILE' option is used, but without it the
49580 # dependency file will contain the wrong name for the object. So it is
49581 # removed from the command line, and the dep file is fixed with sed.
49582 cmd=""
49583 while test ${D}# -gt 0; do
49584 case "${D}1" in
49585 -o )
49586 shift
49587 objfile=${D}1
49588 ;;
49589 * )
49590 eval arg${D}#=\\${D}1
49591 cmd="${D}cmd \\${D}arg${D}#"
49592 ;;
49593 esac
49594 shift
49595 done
0ad5d837 49596 eval "${D}cmd ${D}DEPSFLAG" | sed "s|.*:|${D}objfile:|" >${D}{DEPSDIR}/${D}{objfile}.d
a9e5b1f0 49597 exit 0
a848cd7e 49598else
473276a9
VS
49599 ${D}*
49600 exit ${D}?
a848cd7e
SC
49601fi
49602EOF
473276a9 49603
f10e38c4 49604 chmod +x bk-deps
a485900c 49605 BK_DEPS="`pwd`/bk-deps"
f10e38c4 49606 fi
a848cd7e
SC
49607 fi
49608
49609
49610
49611
a485900c 49612
a848cd7e
SC
49613 case ${BAKEFILE_HOST} in
49614 *-*-cygwin* | *-*-mingw32* )
8ced02f6
DE
49615 if test -n "$ac_tool_prefix"; then
49616 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
49617set dummy ${ac_tool_prefix}windres; ac_word=$2
49618echo "$as_me:$LINENO: checking for $ac_word" >&5
49619echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
49620if test "${ac_cv_prog_WINDRES+set}" = set; then
49621 echo $ECHO_N "(cached) $ECHO_C" >&6
49622else
49623 if test -n "$WINDRES"; then
49624 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
49625else
49626as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49627for as_dir in $PATH
49628do
49629 IFS=$as_save_IFS
49630 test -z "$as_dir" && as_dir=.
49631 for ac_exec_ext in '' $ac_executable_extensions; do
49632 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
49633 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
49634 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49635 break 2
49636 fi
49637done
49638done
49639
49640fi
49641fi
49642WINDRES=$ac_cv_prog_WINDRES
49643if test -n "$WINDRES"; then
49644 echo "$as_me:$LINENO: result: $WINDRES" >&5
49645echo "${ECHO_T}$WINDRES" >&6
49646else
49647 echo "$as_me:$LINENO: result: no" >&5
49648echo "${ECHO_T}no" >&6
49649fi
49650
49651fi
49652if test -z "$ac_cv_prog_WINDRES"; then
49653 ac_ct_WINDRES=$WINDRES
49654 # Extract the first word of "windres", so it can be a program name with args.
a848cd7e
SC
49655set dummy windres; ac_word=$2
49656echo "$as_me:$LINENO: checking for $ac_word" >&5
49657echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 49658if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
a848cd7e
SC
49659 echo $ECHO_N "(cached) $ECHO_C" >&6
49660else
8ced02f6
DE
49661 if test -n "$ac_ct_WINDRES"; then
49662 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
a848cd7e
SC
49663else
49664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49665for as_dir in $PATH
49666do
49667 IFS=$as_save_IFS
49668 test -z "$as_dir" && as_dir=.
49669 for ac_exec_ext in '' $ac_executable_extensions; do
49670 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 49671 ac_cv_prog_ac_ct_WINDRES="windres"
a848cd7e
SC
49672 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49673 break 2
49674 fi
49675done
49676done
49677
a848cd7e
SC
49678fi
49679fi
8ced02f6
DE
49680ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
49681if test -n "$ac_ct_WINDRES"; then
49682 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
49683echo "${ECHO_T}$ac_ct_WINDRES" >&6
a848cd7e
SC
49684else
49685 echo "$as_me:$LINENO: result: no" >&5
49686echo "${ECHO_T}no" >&6
49687fi
49688
8ced02f6
DE
49689 WINDRES=$ac_ct_WINDRES
49690else
49691 WINDRES="$ac_cv_prog_WINDRES"
49692fi
49693
a848cd7e
SC
49694 ;;
49695
1e9e8aba 49696 *-*-darwin* | powerpc-apple-macos* )
a848cd7e
SC
49697 # Extract the first word of "Rez", so it can be a program name with args.
49698set dummy Rez; ac_word=$2
49699echo "$as_me:$LINENO: checking for $ac_word" >&5
49700echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 49701if test "${ac_cv_prog_REZ+set}" = set; then
a848cd7e
SC
49702 echo $ECHO_N "(cached) $ECHO_C" >&6
49703else
8ced02f6
DE
49704 if test -n "$REZ"; then
49705 ac_cv_prog_REZ="$REZ" # Let the user override the test.
a848cd7e
SC
49706else
49707as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49708for as_dir in $PATH
49709do
49710 IFS=$as_save_IFS
49711 test -z "$as_dir" && as_dir=.
49712 for ac_exec_ext in '' $ac_executable_extensions; do
49713 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 49714 ac_cv_prog_REZ="Rez"
a848cd7e
SC
49715 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49716 break 2
49717 fi
49718done
49719done
49720
8ced02f6 49721 test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
a848cd7e
SC
49722fi
49723fi
8ced02f6
DE
49724REZ=$ac_cv_prog_REZ
49725if test -n "$REZ"; then
49726 echo "$as_me:$LINENO: result: $REZ" >&5
49727echo "${ECHO_T}$REZ" >&6
a848cd7e
SC
49728else
49729 echo "$as_me:$LINENO: result: no" >&5
49730echo "${ECHO_T}no" >&6
49731fi
49732
49733 # Extract the first word of "SetFile", so it can be a program name with args.
49734set dummy SetFile; ac_word=$2
49735echo "$as_me:$LINENO: checking for $ac_word" >&5
49736echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
49737if test "${ac_cv_prog_SETFILE+set}" = set; then
49738 echo $ECHO_N "(cached) $ECHO_C" >&6
49739else
49740 if test -n "$SETFILE"; then
49741 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
49742else
49743as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49744for as_dir in $PATH
49745do
49746 IFS=$as_save_IFS
49747 test -z "$as_dir" && as_dir=.
49748 for ac_exec_ext in '' $ac_executable_extensions; do
49749 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
49750 ac_cv_prog_SETFILE="SetFile"
49751 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49752 break 2
49753 fi
49754done
49755done
49756
49757 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
49758fi
49759fi
49760SETFILE=$ac_cv_prog_SETFILE
49761if test -n "$SETFILE"; then
49762 echo "$as_me:$LINENO: result: $SETFILE" >&5
49763echo "${ECHO_T}$SETFILE" >&6
49764else
49765 echo "$as_me:$LINENO: result: no" >&5
49766echo "${ECHO_T}no" >&6
49767fi
49768
49769 ;;
49770 esac
49771
49772
49773
49774
49775
8ced02f6 49776
99a2637b 49777 BAKEFILE_BAKEFILE_M4_VERSION="0.2.1"
a848cd7e 49778
dcc1b6ad 49779
480b9f18 49780BAKEFILE_AUTOCONF_INC_M4_VERSION="0.2.1"
a848cd7e 49781
646b6ec1 49782
74b84332 49783
a848cd7e
SC
49784 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
49785if test "${enable_precomp_headers+set}" = set; then
49786 enableval="$enable_precomp_headers"
49787 bk_use_pch="$enableval"
49788fi;
49789
49790 GCC_PCH=0
f10e38c4
VZ
49791 ICC_PCH=0
49792 USE_PCH=0
a485900c 49793 BK_MAKE_PCH=""
a848cd7e 49794
5c60e845
MW
49795 case ${BAKEFILE_HOST} in
49796 *-*-cygwin* )
49797 bk_use_pch="no"
49798 ;;
49799 esac
49800
a848cd7e
SC
49801 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
49802 if test "x$GCC" = "xyes"; then
49803 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
49804echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
49805 cat >conftest.$ac_ext <<_ACEOF
49806/* confdefs.h. */
49807_ACEOF
49808cat confdefs.h >>conftest.$ac_ext
49809cat >>conftest.$ac_ext <<_ACEOF
49810/* end confdefs.h. */
49811
49812int
49813main ()
49814{
49815
49816 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
e5efa97e 49817 There is no PCH support
a848cd7e
SC
49818 #endif
49819 #if (__GNUC__ < 3)
e5efa97e 49820 There is no PCH support
a848cd7e
SC
49821 #endif
49822 #if (__GNUC__ == 3) && \
49823 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
f10e38c4
VZ
49824 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) || \
49825 ( defined(__INTEL_COMPILER) )
e5efa97e 49826 There is no PCH support
a848cd7e
SC
49827 #endif
49828
49829 ;
49830 return 0;
49831}
49832_ACEOF
49833rm -f conftest.$ac_objext
49834if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 49835 (eval $ac_compile) 2>conftest.er1
a848cd7e 49836 ac_status=$?
ac1cb8d3
VS
49837 grep -v '^ *+' conftest.er1 >conftest.err
49838 rm -f conftest.er1
49839 cat conftest.err >&5
a848cd7e
SC
49840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49841 (exit $ac_status); } &&
bb9e79c0 49842 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
49843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49844 (eval $ac_try) 2>&5
49845 ac_status=$?
49846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49847 (exit $ac_status); }; } &&
49848 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
49849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49850 (eval $ac_try) 2>&5
49851 ac_status=$?
49852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49853 (exit $ac_status); }; }; then
49854
49855 echo "$as_me:$LINENO: result: yes" >&5
49856echo "${ECHO_T}yes" >&6
a848cd7e
SC
49857 GCC_PCH=1
49858
49859else
49860 echo "$as_me: failed program was:" >&5
49861sed 's/^/| /' conftest.$ac_ext >&5
49862
49863
f10e38c4
VZ
49864 cat >conftest.$ac_ext <<_ACEOF
49865/* confdefs.h. */
49866_ACEOF
49867cat confdefs.h >>conftest.$ac_ext
49868cat >>conftest.$ac_ext <<_ACEOF
49869/* end confdefs.h. */
49870
49871int
49872main ()
49873{
49874
49875 #if !defined(__INTEL_COMPILER) || \
49876 (__INTEL_COMPILER < 800)
e5efa97e 49877 There is no PCH support
f10e38c4
VZ
49878 #endif
49879
49880 ;
49881 return 0;
49882}
49883_ACEOF
49884rm -f conftest.$ac_objext
49885if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49886 (eval $ac_compile) 2>conftest.er1
49887 ac_status=$?
49888 grep -v '^ *+' conftest.er1 >conftest.err
49889 rm -f conftest.er1
49890 cat conftest.err >&5
49891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49892 (exit $ac_status); } &&
bb9e79c0 49893 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
f10e38c4
VZ
49894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49895 (eval $ac_try) 2>&5
49896 ac_status=$?
49897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49898 (exit $ac_status); }; } &&
49899 { ac_try='test -s conftest.$ac_objext'
49900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49901 (eval $ac_try) 2>&5
49902 ac_status=$?
49903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49904 (exit $ac_status); }; }; then
49905
49906 echo "$as_me:$LINENO: result: yes" >&5
49907echo "${ECHO_T}yes" >&6
49908 ICC_PCH=1
49909
49910else
49911 echo "$as_me: failed program was:" >&5
49912sed 's/^/| /' conftest.$ac_ext >&5
49913
49914
49915 echo "$as_me:$LINENO: result: no" >&5
a848cd7e
SC
49916echo "${ECHO_T}no" >&6
49917
49918fi
ac1cb8d3 49919rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f10e38c4
VZ
49920
49921fi
49922rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49923 if test $GCC_PCH = 1 -o $ICC_PCH = 1 ; then
49924 USE_PCH=1
1e9e8aba
DE
49925
49926D='$'
49927cat <<EOF >bk-make-pch
a848cd7e
SC
49928#!/bin/sh
49929
49930# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
49931# script. It is used to generated precompiled headers.
49932#
49933# Permission is given to use this file in any way.
49934
1e9e8aba
DE
49935outfile="${D}{1}"
49936header="${D}{2}"
a848cd7e
SC
49937shift
49938shift
49939
f10e38c4
VZ
49940compiler=""
49941headerfile=""
49942
1e9e8aba 49943while test ${D}{#} -gt 0; do
f10e38c4 49944 add_to_cmdline=1
1e9e8aba 49945 case "${D}{1}" in
a848cd7e 49946 -I* )
1e9e8aba
DE
49947 incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
49948 if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
49949 headerfile="${D}{incdir}/${D}{header}"
a848cd7e
SC
49950 fi
49951 ;;
f10e38c4
VZ
49952 -use-pch|-use_pch )
49953 shift
49954 add_to_cmdline=0
49955 ;;
a848cd7e 49956 esac
f10e38c4
VZ
49957 if test ${D}add_to_cmdline = 1 ; then
49958 compiler="${D}{compiler} ${D}{1}"
49959 fi
a848cd7e
SC
49960 shift
49961done
49962
1e9e8aba 49963if test "x${D}{headerfile}" = "x" ; then
f10e38c4 49964 echo "error: can't find header ${D}{header} in include paths" >&2
a848cd7e 49965else
1e9e8aba
DE
49966 if test -f ${D}{outfile} ; then
49967 rm -f ${D}{outfile}
a848cd7e 49968 else
1e9e8aba 49969 mkdir -p \`dirname ${D}{outfile}\`
a848cd7e 49970 fi
1e9e8aba 49971 depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
a848cd7e 49972 mkdir -p .deps
f10e38c4
VZ
49973 if test "x${GCC_PCH}" = "x1" ; then
49974 # can do this because gcc is >= 3.4:
49975 ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
49976 elif test "x${ICC_PCH}" = "x1" ; then
49977 filename=pch_gen-${D}${D}
49978 file=${D}{filename}.c
49979 dfile=${D}{filename}.d
49980 cat > ${D}file <<EOT
49981#include "${D}header"
49982EOT
49983 # using -MF icc complains about differing command lines in creation/use
49984 ${D}compiler -c -create_pch ${D}outfile -MMD ${D}file && \\
49985 sed -e "s,^.*:,${D}outfile:," -e "s, ${D}file,," < ${D}dfile > ${D}depsfile && \\
49986 rm -f ${D}file ${D}dfile ${D}{filename}.o
49987 fi
1e9e8aba 49988 exit ${D}{?}
a848cd7e
SC
49989fi
49990EOF
1e9e8aba 49991
a848cd7e 49992 chmod +x bk-make-pch
a485900c 49993 BK_MAKE_PCH="`pwd`/bk-make-pch"
a848cd7e
SC
49994 fi
49995 fi
49996 fi
49997
49998
49999
f10e38c4 50000
a485900c 50001
a848cd7e
SC
50002 COND_BUILD_DEBUG="#"
50003 if test "x$BUILD" = "xdebug" ; then
50004 COND_BUILD_DEBUG=""
50005 fi
50006
50007 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
50008 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
50009 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
50010 fi
50011
50012 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
50013 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
50014 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
50015 fi
50016
50017 COND_BUILD_DEBUG_UNICODE_0="#"
50018 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
50019 COND_BUILD_DEBUG_UNICODE_0=""
50020 fi
50021
50022 COND_BUILD_DEBUG_UNICODE_1="#"
50023 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
50024 COND_BUILD_DEBUG_UNICODE_1=""
50025 fi
50026
50027 COND_BUILD_RELEASE="#"
50028 if test "x$BUILD" = "xrelease" ; then
50029 COND_BUILD_RELEASE=""
50030 fi
50031
50032 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
50033 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
50034 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
50035 fi
50036
50037 COND_BUILD_RELEASE_UNICODE_0="#"
50038 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
50039 COND_BUILD_RELEASE_UNICODE_0=""
50040 fi
50041
50042 COND_BUILD_RELEASE_UNICODE_1="#"
50043 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
50044 COND_BUILD_RELEASE_UNICODE_1=""
50045 fi
50046
50047 COND_DEBUG_FLAG_1="#"
50048 if test "x$DEBUG_FLAG" = "x1" ; then
50049 COND_DEBUG_FLAG_1=""
50050 fi
50051
50052 COND_DEBUG_INFO_0="#"
50053 if test "x$DEBUG_INFO" = "x0" ; then
50054 COND_DEBUG_INFO_0=""
50055 fi
50056
50057 COND_DEBUG_INFO_1="#"
50058 if test "x$DEBUG_INFO" = "x1" ; then
50059 COND_DEBUG_INFO_1=""
50060 fi
50061
50062 COND_DEPS_TRACKING_0="#"
50063 if test "x$DEPS_TRACKING" = "x0" ; then
50064 COND_DEPS_TRACKING_0=""
50065 fi
50066
50067 COND_DEPS_TRACKING_1="#"
50068 if test "x$DEPS_TRACKING" = "x1" ; then
50069 COND_DEPS_TRACKING_1=""
50070 fi
50071
50072 COND_GCC_PCH_1="#"
50073 if test "x$GCC_PCH" = "x1" ; then
50074 COND_GCC_PCH_1=""
50075 fi
50076
f10e38c4
VZ
50077 COND_ICC_PCH_1="#"
50078 if test "x$ICC_PCH" = "x1" ; then
50079 COND_ICC_PCH_1=""
50080 fi
50081
a848cd7e
SC
50082 COND_MONOLITHIC_0="#"
50083 if test "x$MONOLITHIC" = "x0" ; then
50084 COND_MONOLITHIC_0=""
50085 fi
50086
50087 COND_MONOLITHIC_0_SHARED_0="#"
50088 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
50089 COND_MONOLITHIC_0_SHARED_0=""
50090 fi
50091
3f60522a
JS
50092 COND_MONOLITHIC_0_SHARED_0_USE_AUI_1="#"
50093 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_AUI" = "x1" ; then
50094 COND_MONOLITHIC_0_SHARED_0_USE_AUI_1=""
50095 fi
50096
a848cd7e
SC
50097 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
50098 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
50099 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
50100 fi
50101
90970d69
DE
50102 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
50103 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
50104 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
50105 fi
50106
f10e38c4
VZ
50107 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1="#"
50108 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
50109 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1=""
50110 fi
50111
a848cd7e
SC
50112 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
50113 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
50114 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
50115 fi
50116
6671c68b
VZ
50117 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#"
50118 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
50119 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1=""
50120 fi
50121
a848cd7e
SC
50122 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
50123 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
50124 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
50125 fi
50126
8b6682b9
JS
50127 COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1="#"
50128 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_RICHTEXT" = "x1" ; then
50129 COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1=""
50130 fi
50131
ceec2216
RL
50132 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
50133 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
50134 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
50135 fi
50136
a848cd7e
SC
50137 COND_MONOLITHIC_0_SHARED_1="#"
50138 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
50139 COND_MONOLITHIC_0_SHARED_1=""
50140 fi
50141
3f60522a
JS
50142 COND_MONOLITHIC_0_SHARED_1_USE_AUI_1="#"
50143 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_AUI" = "x1" ; then
50144 COND_MONOLITHIC_0_SHARED_1_USE_AUI_1=""
50145 fi
50146
a848cd7e
SC
50147 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
50148 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
50149 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
50150 fi
50151
90970d69
DE
50152 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
50153 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
50154 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
50155 fi
50156
f10e38c4
VZ
50157 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1="#"
50158 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
50159 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1=""
50160 fi
50161
a848cd7e
SC
50162 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
50163 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
50164 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
50165 fi
50166
6671c68b
VZ
50167 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#"
50168 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
50169 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1=""
50170 fi
50171
a848cd7e
SC
50172 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
50173 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
50174 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
50175 fi
50176
8b6682b9
JS
50177 COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1="#"
50178 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_RICHTEXT" = "x1" ; then
50179 COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1=""
50180 fi
50181
ceec2216
RL
50182 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
50183 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
50184 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
50185 fi
50186
e5efa97e
VZ
50187 COND_MONOLITHIC_0_USE_MEDIA_1="#"
50188 if test "x$MONOLITHIC" = "x0" -a "x$USE_MEDIA" = "x1" ; then
50189 COND_MONOLITHIC_0_USE_MEDIA_1=""
50190 fi
50191
a848cd7e
SC
50192 COND_MONOLITHIC_0_USE_ODBC_1="#"
50193 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
50194 COND_MONOLITHIC_0_USE_ODBC_1=""
50195 fi
50196
50197 COND_MONOLITHIC_1="#"
50198 if test "x$MONOLITHIC" = "x1" ; then
50199 COND_MONOLITHIC_1=""
50200 fi
50201
50202 COND_MONOLITHIC_1_SHARED_0="#"
50203 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
50204 COND_MONOLITHIC_1_SHARED_0=""
50205 fi
50206
50207 COND_MONOLITHIC_1_SHARED_1="#"
50208 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
50209 COND_MONOLITHIC_1_SHARED_1=""
50210 fi
50211
50212 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
50213 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
50214 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
50215 fi
50216
50217 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
50218 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
50219 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
50220 fi
50221
eb730a0c
JS
50222 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="#"
50223 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERCYGWIN" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
50224 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1=""
50225 fi
50226
a848cd7e
SC
50227 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
50228 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
50229 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
50230 fi
50231
50232 COND_PLATFORM_MACOSX_1="#"
50233 if test "x$PLATFORM_MACOSX" = "x1" ; then
50234 COND_PLATFORM_MACOSX_1=""
50235 fi
50236
a30f955f
VS
50237 COND_PLATFORM_MACOSX_1_TOOLKIT_="#"
50238 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then
50239 COND_PLATFORM_MACOSX_1_TOOLKIT_=""
50240 fi
50241
a848cd7e
SC
50242 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
50243 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
50244 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
50245 fi
50246
50247 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
50248 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
50249 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
50250 fi
50251
50252 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
50253 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
50254 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
50255 fi
50256
fc480dc1
DE
50257 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#"
50258 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
50259 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1=""
50260 fi
50261
ebee3cd0
VS
50262 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
50263 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
50264 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
50265 fi
50266
50267 COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
50268 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
50269 COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
50270 fi
50271
a848cd7e
SC
50272 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
50273 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
50274 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
50275 fi
50276
50277 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
50278 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
50279 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
50280 fi
50281
b48a2016
DE
50282 COND_PLATFORM_MACOS_1="#"
50283 if test "x$PLATFORM_MACOS" = "x1" ; then
50284 COND_PLATFORM_MACOS_1=""
50285 fi
50286
083508af
MW
50287 COND_PLATFORM_MAC_1="#"
50288 if test "x$PLATFORM_MAC" = "x1" ; then
50289 COND_PLATFORM_MAC_1=""
50290 fi
50291
e5efa97e
VZ
50292 COND_PLATFORM_MSDOS_0="#"
50293 if test "x$PLATFORM_MSDOS" = "x0" ; then
50294 COND_PLATFORM_MSDOS_0=""
50295 fi
50296
83d8eb47
MW
50297 COND_PLATFORM_MSDOS_1="#"
50298 if test "x$PLATFORM_MSDOS" = "x1" ; then
50299 COND_PLATFORM_MSDOS_1=""
50300 fi
50301
a848cd7e
SC
50302 COND_PLATFORM_OS2_1="#"
50303 if test "x$PLATFORM_OS2" = "x1" ; then
50304 COND_PLATFORM_OS2_1=""
50305 fi
50306
50307 COND_PLATFORM_UNIX_0="#"
50308 if test "x$PLATFORM_UNIX" = "x0" ; then
50309 COND_PLATFORM_UNIX_0=""
50310 fi
50311
50312 COND_PLATFORM_UNIX_1="#"
50313 if test "x$PLATFORM_UNIX" = "x1" ; then
50314 COND_PLATFORM_UNIX_1=""
50315 fi
50316
50317 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
50318 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
50319 COND_PLATFORM_UNIX_1_USE_GUI_1=""
50320 fi
50321
50322 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
50323 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
50324 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
50325 fi
50326
50327 COND_PLATFORM_WIN32_0="#"
50328 if test "x$PLATFORM_WIN32" = "x0" ; then
50329 COND_PLATFORM_WIN32_0=""
50330 fi
50331
50332 COND_PLATFORM_WIN32_1="#"
50333 if test "x$PLATFORM_WIN32" = "x1" ; then
50334 COND_PLATFORM_WIN32_1=""
50335 fi
50336
50337 COND_SHARED_0="#"
50338 if test "x$SHARED" = "x0" ; then
50339 COND_SHARED_0=""
50340 fi
50341
083508af
MW
50342 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
50343 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
50344 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
50345 fi
50346
50347 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
50348 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
50349 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
50350 fi
50351
50352 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
50353 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
50354 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
50355 fi
50356
a848cd7e
SC
50357 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
50358 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
50359 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
50360 fi
50361
50362 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
50363 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
50364 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
50365 fi
50366
50367 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
50368 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
50369 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
50370 fi
50371
50372 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
50373 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
50374 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
50375 fi
50376
083508af
MW
50377 COND_SHARED_0_USE_XRC_1="#"
50378 if test "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
50379 COND_SHARED_0_USE_XRC_1=""
50380 fi
50381
a848cd7e
SC
50382 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
50383 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
50384 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
50385 fi
50386
50387 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
50388 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
50389 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
50390 fi
50391
50392 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
50393 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
50394 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
50395 fi
50396
50397 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
50398 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
50399 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
50400 fi
50401
50402 COND_SHARED_1="#"
50403 if test "x$SHARED" = "x1" ; then
50404 COND_SHARED_1=""
50405 fi
50406
50407 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
50408 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
50409 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
50410 fi
50411
083508af
MW
50412 COND_SHARED_1_USE_XRC_1="#"
50413 if test "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
50414 COND_SHARED_1_USE_XRC_1=""
50415 fi
50416
a30f955f
VS
50417 COND_TOOLKIT_="#"
50418 if test "x$TOOLKIT" = "x" ; then
50419 COND_TOOLKIT_=""
50420 fi
50421
a848cd7e
SC
50422 COND_TOOLKIT_COCOA="#"
50423 if test "x$TOOLKIT" = "xCOCOA" ; then
50424 COND_TOOLKIT_COCOA=""
50425 fi
50426
a49baeab
DE
50427 COND_TOOLKIT_COCOA_USE_GUI_1="#"
50428 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
50429 COND_TOOLKIT_COCOA_USE_GUI_1=""
50430 fi
50431
a848cd7e
SC
50432 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
50433 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50434 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
50435 fi
50436
b3c86150
VS
50437 COND_TOOLKIT_DFB="#"
50438 if test "x$TOOLKIT" = "xDFB" ; then
50439 COND_TOOLKIT_DFB=""
50440 fi
50441
50442 COND_TOOLKIT_DFB_USE_GUI_1="#"
50443 if test "x$TOOLKIT" = "xDFB" -a "x$USE_GUI" = "x1" ; then
50444 COND_TOOLKIT_DFB_USE_GUI_1=""
50445 fi
50446
a848cd7e
SC
50447 COND_TOOLKIT_GTK="#"
50448 if test "x$TOOLKIT" = "xGTK" ; then
50449 COND_TOOLKIT_GTK=""
50450 fi
50451
d044deea
MW
50452 COND_TOOLKIT_GTK_TOOLKIT_VERSION_="#"
50453 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" ; then
50454 COND_TOOLKIT_GTK_TOOLKIT_VERSION_=""
50455 fi
50456
50457 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2="#"
50458 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" ; then
50459 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2=""
50460 fi
50461
50462 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1="#"
50463 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" ; then
50464 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1=""
50465 fi
50466
50467 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0="#"
50468 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50469 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0=""
50470 fi
50471
50472 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1="#"
50473 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" ; then
50474 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1=""
50475 fi
50476
50477 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0="#"
50478 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50479 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0=""
50480 fi
50481
a848cd7e
SC
50482 COND_TOOLKIT_GTK_USE_GUI_1="#"
50483 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
50484 COND_TOOLKIT_GTK_USE_GUI_1=""
50485 fi
50486
a848cd7e
SC
50487 COND_TOOLKIT_MAC="#"
50488 if test "x$TOOLKIT" = "xMAC" ; then
50489 COND_TOOLKIT_MAC=""
50490 fi
50491
50492 COND_TOOLKIT_MAC_USE_GUI_1="#"
50493 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
50494 COND_TOOLKIT_MAC_USE_GUI_1=""
50495 fi
50496
50497 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
50498 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50499 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
50500 fi
50501
50502 COND_TOOLKIT_MGL="#"
50503 if test "x$TOOLKIT" = "xMGL" ; then
50504 COND_TOOLKIT_MGL=""
50505 fi
50506
50507 COND_TOOLKIT_MGL_USE_GUI_1="#"
50508 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
50509 COND_TOOLKIT_MGL_USE_GUI_1=""
50510 fi
50511
50512 COND_TOOLKIT_MOTIF="#"
50513 if test "x$TOOLKIT" = "xMOTIF" ; then
50514 COND_TOOLKIT_MOTIF=""
50515 fi
50516
50517 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
50518 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
50519 COND_TOOLKIT_MOTIF_USE_GUI_1=""
50520 fi
50521
50522 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
50523 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50524 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
50525 fi
50526
50527 COND_TOOLKIT_MSW="#"
50528 if test "x$TOOLKIT" = "xMSW" ; then
50529 COND_TOOLKIT_MSW=""
50530 fi
50531
50532 COND_TOOLKIT_MSW_USE_GUI_1="#"
50533 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
50534 COND_TOOLKIT_MSW_USE_GUI_1=""
50535 fi
50536
50537 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
50538 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50539 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
50540 fi
50541
0ee4059d
DE
50542 COND_TOOLKIT_MSW_WXUNIV_0="#"
50543 if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
50544 COND_TOOLKIT_MSW_WXUNIV_0=""
50545 fi
50546
a848cd7e
SC
50547 COND_TOOLKIT_PM="#"
50548 if test "x$TOOLKIT" = "xPM" ; then
50549 COND_TOOLKIT_PM=""
50550 fi
50551
50552 COND_TOOLKIT_PM_USE_GUI_1="#"
50553 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
50554 COND_TOOLKIT_PM_USE_GUI_1=""
50555 fi
50556
50557 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
50558 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50559 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
50560 fi
50561
3fd9c298
DE
50562 COND_TOOLKIT_WINCE="#"
50563 if test "x$TOOLKIT" = "xWINCE" ; then
50564 COND_TOOLKIT_WINCE=""
50565 fi
50566
50567 COND_TOOLKIT_WINCE_USE_GUI_1="#"
50568 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
50569 COND_TOOLKIT_WINCE_USE_GUI_1=""
50570 fi
50571
50572 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
50573 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50574 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
50575 fi
50576
0ee4059d
DE
50577 COND_TOOLKIT_WINCE_WXUNIV_0="#"
50578 if test "x$TOOLKIT" = "xWINCE" -a "x$WXUNIV" = "x0" ; then
50579 COND_TOOLKIT_WINCE_WXUNIV_0=""
50580 fi
50581
a848cd7e
SC
50582 COND_TOOLKIT_X11="#"
50583 if test "x$TOOLKIT" = "xX11" ; then
50584 COND_TOOLKIT_X11=""
50585 fi
50586
50587 COND_TOOLKIT_X11_USE_GUI_1="#"
50588 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
50589 COND_TOOLKIT_X11_USE_GUI_1=""
50590 fi
50591
50592 COND_UNICODE_1="#"
50593 if test "x$UNICODE" = "x1" ; then
50594 COND_UNICODE_1=""
50595 fi
50596
50597 COND_USE_EXCEPTIONS_0="#"
50598 if test "x$USE_EXCEPTIONS" = "x0" ; then
50599 COND_USE_EXCEPTIONS_0=""
50600 fi
50601
50602 COND_USE_EXCEPTIONS_1="#"
50603 if test "x$USE_EXCEPTIONS" = "x1" ; then
50604 COND_USE_EXCEPTIONS_1=""
50605 fi
50606
50607 COND_USE_GUI_0="#"
50608 if test "x$USE_GUI" = "x0" ; then
50609 COND_USE_GUI_0=""
50610 fi
50611
50612 COND_USE_GUI_1="#"
50613 if test "x$USE_GUI" = "x1" ; then
50614 COND_USE_GUI_1=""
50615 fi
50616
50617 COND_USE_GUI_1_WXUNIV_0="#"
50618 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50619 COND_USE_GUI_1_WXUNIV_0=""
50620 fi
50621
50622 COND_USE_GUI_1_WXUNIV_1="#"
50623 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
50624 COND_USE_GUI_1_WXUNIV_1=""
50625 fi
50626
50627 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
50628 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
50629 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
50630 fi
50631
50632 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
50633 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
50634 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
50635 fi
50636
50637 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
50638 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
50639 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
50640 fi
50641
083508af
MW
50642 COND_USE_ODBC_1="#"
50643 if test "x$USE_ODBC" = "x1" ; then
50644 COND_USE_ODBC_1=""
50645 fi
50646
50647 COND_USE_OPENGL_1="#"
50648 if test "x$USE_OPENGL" = "x1" ; then
50649 COND_USE_OPENGL_1=""
50650 fi
50651
f10e38c4
VZ
50652 COND_USE_PCH_1="#"
50653 if test "x$USE_PCH" = "x1" ; then
50654 COND_USE_PCH_1=""
50655 fi
50656
a848cd7e
SC
50657 COND_USE_PLUGINS_0="#"
50658 if test "x$USE_PLUGINS" = "x0" ; then
50659 COND_USE_PLUGINS_0=""
50660 fi
50661
0b78747f
MW
50662 COND_USE_RTTI_0="#"
50663 if test "x$USE_RTTI" = "x0" ; then
50664 COND_USE_RTTI_0=""
50665 fi
50666
50667 COND_USE_RTTI_1="#"
50668 if test "x$USE_RTTI" = "x1" ; then
50669 COND_USE_RTTI_1=""
50670 fi
50671
a848cd7e
SC
50672 COND_USE_SOSYMLINKS_1="#"
50673 if test "x$USE_SOSYMLINKS" = "x1" ; then
50674 COND_USE_SOSYMLINKS_1=""
50675 fi
50676
eb730a0c
JS
50677 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="#"
50678 if test "x$USE_SOVERCYGWIN" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
50679 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1=""
50680 fi
50681
a848cd7e
SC
50682 COND_USE_SOVERLINUX_1="#"
50683 if test "x$USE_SOVERLINUX" = "x1" ; then
50684 COND_USE_SOVERLINUX_1=""
50685 fi
50686
50687 COND_USE_SOVERSION_0="#"
50688 if test "x$USE_SOVERSION" = "x0" ; then
50689 COND_USE_SOVERSION_0=""
50690 fi
50691
50692 COND_USE_SOVERSOLARIS_1="#"
50693 if test "x$USE_SOVERSOLARIS" = "x1" ; then
50694 COND_USE_SOVERSOLARIS_1=""
50695 fi
50696
0b78747f
MW
50697 COND_USE_THREADS_0="#"
50698 if test "x$USE_THREADS" = "x0" ; then
50699 COND_USE_THREADS_0=""
50700 fi
50701
50702 COND_USE_THREADS_1="#"
50703 if test "x$USE_THREADS" = "x1" ; then
50704 COND_USE_THREADS_1=""
50705 fi
50706
a13a7f89
RL
50707 COND_USE_XRC_1="#"
50708 if test "x$USE_XRC" = "x1" ; then
50709 COND_USE_XRC_1=""
50710 fi
50711
eb730a0c
JS
50712 COND_WINDOWS_IMPLIB_1="#"
50713 if test "x$WINDOWS_IMPLIB" = "x1" ; then
50714 COND_WINDOWS_IMPLIB_1=""
50715 fi
50716
a848cd7e
SC
50717 COND_WITH_PLUGIN_SDL_1="#"
50718 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
50719 COND_WITH_PLUGIN_SDL_1=""
50720 fi
50721
1e6eb025
VZ
50722 COND_WXUNIV_0="#"
50723 if test "x$WXUNIV" = "x0" ; then
50724 COND_WXUNIV_0=""
50725 fi
50726
a848cd7e
SC
50727 COND_WXUNIV_1="#"
50728 if test "x$WXUNIV" = "x1" ; then
50729 COND_WXUNIV_1=""
50730 fi
50731
50732 COND_WXUSE_EXPAT_BUILTIN="#"
50733 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
50734 COND_WXUSE_EXPAT_BUILTIN=""
50735 fi
50736
50737 COND_WXUSE_LIBJPEG_BUILTIN="#"
50738 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
50739 COND_WXUSE_LIBJPEG_BUILTIN=""
50740 fi
50741
50742 COND_WXUSE_LIBPNG_BUILTIN="#"
50743 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
50744 COND_WXUSE_LIBPNG_BUILTIN=""
50745 fi
50746
50747 COND_WXUSE_LIBTIFF_BUILTIN="#"
50748 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
50749 COND_WXUSE_LIBTIFF_BUILTIN=""
50750 fi
50751
50752 COND_WXUSE_ODBC_BUILTIN="#"
50753 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
50754 COND_WXUSE_ODBC_BUILTIN=""
50755 fi
50756
50757 COND_WXUSE_REGEX_BUILTIN="#"
50758 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
50759 COND_WXUSE_REGEX_BUILTIN=""
50760 fi
50761
50762 COND_WXUSE_ZLIB_BUILTIN="#"
50763 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
50764 COND_WXUSE_ZLIB_BUILTIN=""
50765 fi
50766
50767
50768
810b94f0
MW
50769 if test "$BAKEFILE_AUTOCONF_INC_M4_VERSION" = "" ; then
50770 { { 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
50771echo "$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;}
50772 { (exit 1); exit 1; }; }
50773 fi
50774
2057db16
VS
50775 if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
50776 { { 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
50777echo "$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;}
50778 { (exit 1); exit 1; }; }
50779 fi
50780
a848cd7e 50781
a81d5bb6
MW
50782if test $GCC_PCH = 1
50783then
50784 if test "$wx_cv_gcc_pch_bug" = yes; then
50785 { echo "$as_me:$LINENO: WARNING: *** Precompiled header support is broken on this compiler" >&5
50786echo "$as_me: WARNING: *** Precompiled header support is broken on this compiler" >&2;}
50787 { echo "$as_me:$LINENO: WARNING: *** --enable-precomp-headers is not recommended" >&5
50788echo "$as_me: WARNING: *** --enable-precomp-headers is not recommended" >&2;}
50789 { echo "$as_me:$LINENO: WARNING: *** see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13361" >&5
50790echo "$as_me: WARNING: *** see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13361" >&2;}
50791 fi
50792
50793 CPPFLAGS="-DWX_PRECOMP $CPPFLAGS"
50794fi
50795
7afc46ab
KO
50796
50797if test "$wxUSE_MAC" = 1 ; then
95768535 50798 if test "x$wxUSE_UNIVERSAL_BINARY" != "xno" ; then
7afc46ab
KO
50799 sed "s/DEPSMODE=gcc/DEPSMODE=none/" < bk-deps > temp
50800 mv temp bk-deps
50801 chmod +x bk-deps
50802 fi
50803fi
50804
ceec2216
RL
50805if test "$wxUSE_SHARED" = "yes"; then
50806
50807 sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'`
50808 EXE_LINKER=`eval echo "$sanitised_bakefile_mess"`
50809
5b674b9d
DE
50810 case "${host}" in
50811 *-pc-os2_emx | *-pc-os2-emx )
50812 SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
50813 SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
ec3edcc9
VZ
50814 cp -p ${srcdir}/src/os2/dllnames.sh .
50815 cp -p ${srcdir}/src/os2/dllar.sh .
5b674b9d
DE
50816 ;;
50817 esac
ceec2216
RL
50818else
50819
50820 EXE_LINKER="$CXX -o"
50821
50822fi
69120ee4
VZ
50823if test "$wxUSE_OMF" = "yes"; then
50824 case "${host}" in
50825 *-pc-os2_emx | *-pc-os2-emx )
50826 LDFLAGS="$LDFLAGS -Zlinker /EXEPACK"
50827 LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
50828 WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
50829 ;;
50830 esac
50831fi
a848cd7e 50832
5ff751d6 50833WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS $TOOLCHAIN_DEFS"
a848cd7e
SC
50834
50835SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
50836
50837
50838
50839
50840
50841
50842
50843
50844
50845
50846
50847
50848
50849
50850
50851
50852
50853
50854
50855
50856
50857
50858
50859
50860
50861
50862
50863
50864
50865
50866
50867
50868
50869
50870
50871
50872
50873
50874
50875
50876
50877
a848cd7e
SC
50878
50879
50880
50881
50882
50883
50884
50885
50886
50887
50888
50889
a848cd7e
SC
50890
50891
ddd14b14 50892
370d2fd7 50893
8ced02f6 50894
a848cd7e
SC
50895
50896
50897echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
50898echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 50899set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
50900if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
50901 echo $ECHO_N "(cached) $ECHO_C" >&6
50902else
50903 cat >conftest.make <<\_ACEOF
50904all:
50905 @echo 'ac_maketemp="$(MAKE)"'
50906_ACEOF
50907# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
50908eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
50909if test -n "$ac_maketemp"; then
50910 eval ac_cv_prog_make_${ac_make}_set=yes
50911else
50912 eval ac_cv_prog_make_${ac_make}_set=no
50913fi
50914rm -f conftest.make
50915fi
50916if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
50917 echo "$as_me:$LINENO: result: yes" >&5
50918echo "${ECHO_T}yes" >&6
50919 SET_MAKE=
50920else
50921 echo "$as_me:$LINENO: result: no" >&5
50922echo "${ECHO_T}no" >&6
50923 SET_MAKE="MAKE=${MAKE-make}"
50924fi
50925
50926
a848cd7e 50927
ceec2216
RL
50928 ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
50929
a848cd7e 50930
5c60e845
MW
50931if test "$USE_WIN32" = 1; then
50932 ac_config_commands="$ac_config_commands
50933 rcdefs.h
50934 "
50935
50936fi
50937
ceec2216 50938 ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
a848cd7e 50939
a848cd7e 50940
ceec2216 50941 ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
a848cd7e 50942
ceec2216
RL
50943
50944 ac_config_files="$ac_config_files version-script Makefile"
50945
50946
5c60e845 50947 ac_config_commands="$ac_config_commands wx-config"
a848cd7e
SC
50948
50949
9103d280 50950
1c14217d 50951if test "$wxWITH_SUBDIRS" != "no"; then
a848cd7e
SC
50952if test "$wxUSE_GUI" = "yes"; then
50953 SUBDIRS="samples demos utils contrib"
50954else SUBDIRS="samples utils"
50955fi
50956
50957
50958
50959# Check whether --with-cppunit-prefix or --without-cppunit-prefix was given.
50960if test "${with_cppunit_prefix+set}" = set; then
50961 withval="$with_cppunit_prefix"
50962 cppunit_config_prefix="$withval"
50963else
50964 cppunit_config_prefix=""
50965fi;
50966
50967# Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given.
50968if test "${with_cppunit_exec_prefix+set}" = set; then
50969 withval="$with_cppunit_exec_prefix"
50970 cppunit_config_exec_prefix="$withval"
50971else
50972 cppunit_config_exec_prefix=""
50973fi;
50974
50975 if test x$cppunit_config_exec_prefix != x ; then
50976 cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
50977 if test x${CPPUNIT_CONFIG+set} != xset ; then
50978 CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
50979 fi
50980 fi
50981 if test x$cppunit_config_prefix != x ; then
50982 cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
50983 if test x${CPPUNIT_CONFIG+set} != xset ; then
50984 CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
50985 fi
50986 fi
50987
50988 # Extract the first word of "cppunit-config", so it can be a program name with args.
50989set dummy cppunit-config; ac_word=$2
50990echo "$as_me:$LINENO: checking for $ac_word" >&5
50991echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
50992if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
50993 echo $ECHO_N "(cached) $ECHO_C" >&6
50994else
50995 case $CPPUNIT_CONFIG in
50996 [\\/]* | ?:[\\/]*)
50997 ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
50998 ;;
50999 *)
51000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51001for as_dir in $PATH
51002do
51003 IFS=$as_save_IFS
51004 test -z "$as_dir" && as_dir=.
51005 for ac_exec_ext in '' $ac_executable_extensions; do
51006 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
51007 ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
51008 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
51009 break 2
51010 fi
51011done
51012done
51013
51014 test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
51015 ;;
51016esac
51017fi
51018CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
51019
51020if test -n "$CPPUNIT_CONFIG"; then
51021 echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
51022echo "${ECHO_T}$CPPUNIT_CONFIG" >&6
51023else
51024 echo "$as_me:$LINENO: result: no" >&5
51025echo "${ECHO_T}no" >&6
51026fi
51027
51028 cppunit_version_min=1.8.0
51029
51030 echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
51031echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6
51032 no_cppunit=""
51033 if test "$CPPUNIT_CONFIG" = "no" ; then
3ecd9f92
MW
51034 echo "$as_me:$LINENO: result: no" >&5
51035echo "${ECHO_T}no" >&6
a848cd7e
SC
51036 no_cppunit=yes
51037 else
51038 CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
51039 CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
51040 cppunit_version=`$CPPUNIT_CONFIG --version`
51041
51042 cppunit_major_version=`echo $cppunit_version | \
51043 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
51044 cppunit_minor_version=`echo $cppunit_version | \
51045 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
51046 cppunit_micro_version=`echo $cppunit_version | \
51047 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
51048
51049 cppunit_major_min=`echo $cppunit_version_min | \
51050 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
51051 cppunit_minor_min=`echo $cppunit_version_min | \
51052 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
51053 cppunit_micro_min=`echo $cppunit_version_min | \
51054 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
51055
51056 cppunit_version_proper=`expr \
51057 $cppunit_major_version \> $cppunit_major_min \| \
51058 $cppunit_major_version \= $cppunit_major_min \& \
51059 $cppunit_minor_version \> $cppunit_minor_min \| \
51060 $cppunit_major_version \= $cppunit_major_min \& \
51061 $cppunit_minor_version \= $cppunit_minor_min \& \
51062 $cppunit_micro_version \>= $cppunit_micro_min `
51063
51064 if test "$cppunit_version_proper" = "1" ; then
51065 echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
51066echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6
51067 else
51068 echo "$as_me:$LINENO: result: no" >&5
51069echo "${ECHO_T}no" >&6
51070 no_cppunit=yes
51071 fi
51072 fi
51073
51074 if test "x$no_cppunit" = x ; then
c2218763 51075 SUBDIRS="$SUBDIRS tests"
a848cd7e
SC
51076 else
51077 CPPUNIT_CFLAGS=""
51078 CPPUNIT_LIBS=""
c2218763 51079 :
a848cd7e
SC
51080 fi
51081
51082
51083
51084
51085
74d92aac
VZ
51086if test "$USE_UNIX" != "1" -a "$USE_WIN32" != "1"; then
51087 DISABLED_CONTRIB="$DISABLED_CONTRIB net"
51088fi
51089
a848cd7e
SC
51090for subdir in `echo $SUBDIRS`; do
51091 if test -d ${srcdir}/${subdir} ; then
51092 if test "$wxUSE_GUI" = "yes"; then
51093 if test ${subdir} = "samples"; then
51094 makefiles="samples/Makefile.in $makefiles"
51095 for sample in `echo $SAMPLES_SUBDIRS`; do
51096 if test -d $srcdir/samples/$sample; then
51097 makefiles="samples/$sample/Makefile.in $makefiles"
51098 fi
51099 done
9c112555
MW
51100 else
51101 disabled_var=DISABLED_`echo $subdir | tr [a-z] [A-Z]`;
51102 eval "disabled=\$$disabled_var"
51103 disabled=/`echo X $disabled | sed 's@ @/|/@g'`/
51104 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in) | egrep -v "$disabled"`
a848cd7e
SC
51105 fi
51106 else if test ${subdir} = "samples"; then
51107 makefiles="samples/Makefile.in samples/console/Makefile.in"
51108 elif test ${subdir} = "utils"; then
6537ccf8
VS
51109 makefiles=""
51110 for util in HelpGen tex2rtf ; do
51111 if test -d $srcdir/utils/$util ; then
51112 makefiles="utils/$util/Makefile.in \
51113 utils/$util/src/Makefile.in \
51114 $makefiles"
51115 fi
51116 done
a848cd7e
SC
51117 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
51118 fi
51119 fi
51120
51121 for mkin in $makefiles ; do
51122 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
51123 ac_config_files="$ac_config_files $mk"
51124
51125 done
51126 fi
51127done
1c14217d 51128fi
a848cd7e
SC
51129cat >confcache <<\_ACEOF
51130# This file is a shell script that caches the results of configure
51131# tests run on this system so they can be shared between configure
51132# scripts and configure runs, see configure's option --config-cache.
51133# It is not useful on other systems. If it contains results you don't
51134# want to keep, you may remove or edit it.
51135#
51136# config.status only pays attention to the cache file if you give it
51137# the --recheck option to rerun configure.
51138#
51139# `ac_cv_env_foo' variables (set or unset) will be overridden when
51140# loading this file, other *unset* `ac_cv_foo' will be assigned the
51141# following values.
51142
51143_ACEOF
51144
51145# The following way of writing the cache mishandles newlines in values,
51146# but we know of no workaround that is simple, portable, and efficient.
51147# So, don't put newlines in cache variables' values.
51148# Ultrix sh set writes to stderr and can't be redirected directly,
51149# and sets the high bit in the cache file unless we assign to the vars.
51150{
51151 (set) 2>&1 |
51152 case `(ac_space=' '; set | grep ac_space) 2>&1` in
51153 *ac_space=\ *)
51154 # `set' does not quote correctly, so add quotes (double-quote
51155 # substitution turns \\\\ into \\, and sed turns \\ into \).
51156 sed -n \
ac1cb8d3
VS
51157 "s/'/'\\\\''/g;
51158 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
51159 ;;
51160 *)
51161 # `set' quotes correctly as required by POSIX, so do not add quotes.
51162 sed -n \
ac1cb8d3 51163 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
51164 ;;
51165 esac;
51166} |
51167 sed '
51168 t clear
51169 : clear
51170 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
51171 t end
51172 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
51173 : end' >>confcache
51174if diff $cache_file confcache >/dev/null 2>&1; then :; else
51175 if test -w $cache_file; then
51176 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
51177 cat confcache >$cache_file
51178 else
51179 echo "not updating unwritable cache $cache_file"
51180 fi
51181fi
51182rm -f confcache
51183
51184test "x$prefix" = xNONE && prefix=$ac_default_prefix
51185# Let make expand exec_prefix.
51186test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
51187
51188# VPATH may cause trouble with some makes, so we remove $(srcdir),
51189# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
51190# trailing colons and then remove the whole line if VPATH becomes empty
51191# (actually we leave an empty line to preserve line numbers).
51192if test "x$srcdir" = x.; then
ac1cb8d3 51193 ac_vpsub='/^[ ]*VPATH[ ]*=/{
a848cd7e
SC
51194s/:*\$(srcdir):*/:/;
51195s/:*\${srcdir}:*/:/;
51196s/:*@srcdir@:*/:/;
ac1cb8d3 51197s/^\([^=]*=[ ]*\):*/\1/;
a848cd7e 51198s/:*$//;
ac1cb8d3 51199s/^[^=]*=[ ]*$//;
a848cd7e
SC
51200}'
51201fi
51202
51203DEFS=-DHAVE_CONFIG_H
51204
51205ac_libobjs=
51206ac_ltlibobjs=
51207for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
51208 # 1. Remove the extension, and $U if already installed.
51209 ac_i=`echo "$ac_i" |
ac1cb8d3 51210 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
a848cd7e
SC
51211 # 2. Add them.
51212 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
51213 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
51214done
51215LIBOBJS=$ac_libobjs
51216
51217LTLIBOBJS=$ac_ltlibobjs
51218
51219
51220
51221: ${CONFIG_STATUS=./config.status}
51222ac_clean_files_save=$ac_clean_files
51223ac_clean_files="$ac_clean_files $CONFIG_STATUS"
51224{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
51225echo "$as_me: creating $CONFIG_STATUS" >&6;}
51226cat >$CONFIG_STATUS <<_ACEOF
51227#! $SHELL
51228# Generated by $as_me.
51229# Run this file to recreate the current configuration.
51230# Compiler output produced by configure, useful for debugging
51231# configure, is in config.log if it exists.
51232
51233debug=false
51234ac_cs_recheck=false
51235ac_cs_silent=false
51236SHELL=\${CONFIG_SHELL-$SHELL}
51237_ACEOF
51238
51239cat >>$CONFIG_STATUS <<\_ACEOF
51240## --------------------- ##
51241## M4sh Initialization. ##
51242## --------------------- ##
51243
51244# Be Bourne compatible
51245if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
51246 emulate sh
51247 NULLCMD=:
51248 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
51249 # is contrary to our usage. Disable this feature.
51250 alias -g '${1+"$@"}'='"$@"'
51251elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
51252 set -o posix
51253fi
ac1cb8d3 51254DUALCASE=1; export DUALCASE # for MKS sh
a848cd7e
SC
51255
51256# Support unset when possible.
ac1cb8d3 51257if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a848cd7e
SC
51258 as_unset=unset
51259else
51260 as_unset=false
51261fi
51262
51263
51264# Work around bugs in pre-3.0 UWIN ksh.
51265$as_unset ENV MAIL MAILPATH
51266PS1='$ '
51267PS2='> '
51268PS4='+ '
51269
51270# NLS nuisances.
51271for as_var in \
51272 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
51273 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
51274 LC_TELEPHONE LC_TIME
51275do
ac1cb8d3 51276 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
51277 eval $as_var=C; export $as_var
51278 else
51279 $as_unset $as_var
51280 fi
51281done
51282
51283# Required to use basename.
51284if expr a : '\(a\)' >/dev/null 2>&1; then
51285 as_expr=expr
51286else
51287 as_expr=false
51288fi
51289
51290if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
51291 as_basename=basename
51292else
51293 as_basename=false
51294fi
51295
51296
51297# Name of the executable.
51298as_me=`$as_basename "$0" ||
51299$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
51300 X"$0" : 'X\(//\)$' \| \
51301 X"$0" : 'X\(/\)$' \| \
51302 . : '\(.\)' 2>/dev/null ||
51303echo X/"$0" |
51304 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
51305 /^X\/\(\/\/\)$/{ s//\1/; q; }
51306 /^X\/\(\/\).*/{ s//\1/; q; }
51307 s/.*/./; q'`
51308
51309
51310# PATH needs CR, and LINENO needs CR and PATH.
51311# Avoid depending upon Character Ranges.
51312as_cr_letters='abcdefghijklmnopqrstuvwxyz'
51313as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
51314as_cr_Letters=$as_cr_letters$as_cr_LETTERS
51315as_cr_digits='0123456789'
51316as_cr_alnum=$as_cr_Letters$as_cr_digits
51317
51318# The user is always right.
51319if test "${PATH_SEPARATOR+set}" != set; then
51320 echo "#! /bin/sh" >conf$$.sh
51321 echo "exit 0" >>conf$$.sh
51322 chmod +x conf$$.sh
51323 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
51324 PATH_SEPARATOR=';'
51325 else
51326 PATH_SEPARATOR=:
51327 fi
51328 rm -f conf$$.sh
51329fi
51330
51331
51332 as_lineno_1=$LINENO
51333 as_lineno_2=$LINENO
51334 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
51335 test "x$as_lineno_1" != "x$as_lineno_2" &&
51336 test "x$as_lineno_3" = "x$as_lineno_2" || {
51337 # Find who we are. Look in the path if we contain no path at all
51338 # relative or not.
51339 case $0 in
51340 *[\\/]* ) as_myself=$0 ;;
51341 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51342for as_dir in $PATH
51343do
51344 IFS=$as_save_IFS
51345 test -z "$as_dir" && as_dir=.
51346 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
51347done
51348
51349 ;;
51350 esac
51351 # We did not find ourselves, most probably we were run as `sh COMMAND'
51352 # in which case we are not to be found in the path.
51353 if test "x$as_myself" = x; then
51354 as_myself=$0
51355 fi
51356 if test ! -f "$as_myself"; then
51357 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
51358echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
51359 { (exit 1); exit 1; }; }
51360 fi
51361 case $CONFIG_SHELL in
51362 '')
51363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51364for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
51365do
51366 IFS=$as_save_IFS
51367 test -z "$as_dir" && as_dir=.
51368 for as_base in sh bash ksh sh5; do
51369 case $as_dir in
51370 /*)
51371 if ("$as_dir/$as_base" -c '
51372 as_lineno_1=$LINENO
51373 as_lineno_2=$LINENO
51374 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
51375 test "x$as_lineno_1" != "x$as_lineno_2" &&
51376 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
51377 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
51378 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
51379 CONFIG_SHELL=$as_dir/$as_base
51380 export CONFIG_SHELL
51381 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
51382 fi;;
51383 esac
51384 done
51385done
51386;;
51387 esac
51388
51389 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
51390 # uniformly replaced by the line number. The first 'sed' inserts a
51391 # line-number line before each line; the second 'sed' does the real
51392 # work. The second script uses 'N' to pair each line-number line
51393 # with the numbered line, and appends trailing '-' during
51394 # substitution so that $LINENO is not a special case at line end.
51395 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
51396 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
51397 sed '=' <$as_myself |
51398 sed '
51399 N
51400 s,$,-,
51401 : loop
51402 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
51403 t loop
51404 s,-$,,
51405 s,^['$as_cr_digits']*\n,,
51406 ' >$as_me.lineno &&
51407 chmod +x $as_me.lineno ||
51408 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
51409echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
51410 { (exit 1); exit 1; }; }
51411
51412 # Don't try to exec as it changes $[0], causing all sort of problems
51413 # (the dirname of $[0] is not the place where we might find the
51414 # original and so on. Autoconf is especially sensible to this).
51415 . ./$as_me.lineno
51416 # Exit status is that of the last command.
51417 exit
51418}
51419
51420
51421case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
51422 *c*,-n*) ECHO_N= ECHO_C='
51423' ECHO_T=' ' ;;
51424 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
51425 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
51426esac
51427
51428if expr a : '\(a\)' >/dev/null 2>&1; then
51429 as_expr=expr
51430else
51431 as_expr=false
51432fi
51433
51434rm -f conf$$ conf$$.exe conf$$.file
51435echo >conf$$.file
51436if ln -s conf$$.file conf$$ 2>/dev/null; then
51437 # We could just check for DJGPP; but this test a) works b) is more generic
51438 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
51439 if test -f conf$$.exe; then
51440 # Don't use ln at all; we don't have any links
51441 as_ln_s='cp -p'
51442 else
51443 as_ln_s='ln -s'
51444 fi
51445elif ln conf$$.file conf$$ 2>/dev/null; then
51446 as_ln_s=ln
51447else
51448 as_ln_s='cp -p'
51449fi
51450rm -f conf$$ conf$$.exe conf$$.file
51451
51452if mkdir -p . 2>/dev/null; then
51453 as_mkdir_p=:
51454else
ac1cb8d3 51455 test -d ./-p && rmdir ./-p
a848cd7e
SC
51456 as_mkdir_p=false
51457fi
51458
51459as_executable_p="test -f"
51460
51461# Sed expression to map a string onto a valid CPP name.
ac1cb8d3 51462as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
51463
51464# Sed expression to map a string onto a valid variable name.
ac1cb8d3 51465as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
51466
51467
51468# IFS
51469# We need space, tab and new line, in precisely that order.
51470as_nl='
51471'
51472IFS=" $as_nl"
51473
51474# CDPATH.
51475$as_unset CDPATH
51476
51477exec 6>&1
51478
51479# Open the log real soon, to keep \$[0] and so on meaningful, and to
51480# report actual input values of CONFIG_FILES etc. instead of their
51481# values after options handling. Logging --version etc. is OK.
51482exec 5>>config.log
51483{
51484 echo
51485 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
51486## Running $as_me. ##
51487_ASBOX
51488} >&5
51489cat >&5 <<_CSEOF
51490
f1e3914f 51491This file was extended by wxWidgets $as_me 2.7.1, which was
ac1cb8d3 51492generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
51493
51494 CONFIG_FILES = $CONFIG_FILES
51495 CONFIG_HEADERS = $CONFIG_HEADERS
51496 CONFIG_LINKS = $CONFIG_LINKS
51497 CONFIG_COMMANDS = $CONFIG_COMMANDS
51498 $ $0 $@
51499
51500_CSEOF
51501echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
51502echo >&5
51503_ACEOF
51504
51505# Files that config.status was made for.
51506if test -n "$ac_config_files"; then
51507 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
51508fi
51509
51510if test -n "$ac_config_headers"; then
51511 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
51512fi
51513
51514if test -n "$ac_config_links"; then
51515 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
51516fi
51517
51518if test -n "$ac_config_commands"; then
51519 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
51520fi
51521
51522cat >>$CONFIG_STATUS <<\_ACEOF
51523
51524ac_cs_usage="\
51525\`$as_me' instantiates files from templates according to the
51526current configuration.
51527
51528Usage: $0 [OPTIONS] [FILE]...
51529
51530 -h, --help print this help, then exit
51531 -V, --version print version number, then exit
51532 -q, --quiet do not print progress messages
51533 -d, --debug don't remove temporary files
51534 --recheck update $as_me by reconfiguring in the same conditions
51535 --file=FILE[:TEMPLATE]
ac1cb8d3 51536 instantiate the configuration file FILE
a848cd7e 51537 --header=FILE[:TEMPLATE]
ac1cb8d3 51538 instantiate the configuration header FILE
a848cd7e
SC
51539
51540Configuration files:
51541$config_files
51542
51543Configuration headers:
51544$config_headers
51545
51546Configuration commands:
51547$config_commands
51548
51549Report bugs to <bug-autoconf@gnu.org>."
51550_ACEOF
51551
51552cat >>$CONFIG_STATUS <<_ACEOF
51553ac_cs_version="\\
f1e3914f 51554wxWidgets config.status 2.7.1
ac1cb8d3 51555configured by $0, generated by GNU Autoconf 2.59,
a848cd7e
SC
51556 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
51557
ac1cb8d3 51558Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
51559This config.status script is free software; the Free Software Foundation
51560gives unlimited permission to copy, distribute and modify it."
51561srcdir=$srcdir
51562INSTALL="$INSTALL"
51563_ACEOF
51564
51565cat >>$CONFIG_STATUS <<\_ACEOF
51566# If no file are specified by the user, then we need to provide default
51567# value. By we need to know if files were specified by the user.
51568ac_need_defaults=:
51569while test $# != 0
51570do
51571 case $1 in
51572 --*=*)
51573 ac_option=`expr "x$1" : 'x\([^=]*\)='`
51574 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
51575 ac_shift=:
51576 ;;
51577 -*)
51578 ac_option=$1
51579 ac_optarg=$2
51580 ac_shift=shift
51581 ;;
51582 *) # This is not an option, so the user has probably given explicit
51583 # arguments.
51584 ac_option=$1
51585 ac_need_defaults=false;;
51586 esac
51587
51588 case $ac_option in
51589 # Handling of the options.
51590_ACEOF
51591cat >>$CONFIG_STATUS <<\_ACEOF
51592 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
51593 ac_cs_recheck=: ;;
51594 --version | --vers* | -V )
51595 echo "$ac_cs_version"; exit 0 ;;
51596 --he | --h)
51597 # Conflict between --help and --header
51598 { { echo "$as_me:$LINENO: error: ambiguous option: $1
51599Try \`$0 --help' for more information." >&5
51600echo "$as_me: error: ambiguous option: $1
51601Try \`$0 --help' for more information." >&2;}
51602 { (exit 1); exit 1; }; };;
51603 --help | --hel | -h )
51604 echo "$ac_cs_usage"; exit 0 ;;
51605 --debug | --d* | -d )
51606 debug=: ;;
51607 --file | --fil | --fi | --f )
51608 $ac_shift
51609 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
51610 ac_need_defaults=false;;
51611 --header | --heade | --head | --hea )
51612 $ac_shift
51613 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
51614 ac_need_defaults=false;;
51615 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
51616 | -silent | --silent | --silen | --sile | --sil | --si | --s)
51617 ac_cs_silent=: ;;
51618
51619 # This is an error.
51620 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
51621Try \`$0 --help' for more information." >&5
51622echo "$as_me: error: unrecognized option: $1
51623Try \`$0 --help' for more information." >&2;}
51624 { (exit 1); exit 1; }; } ;;
51625
51626 *) ac_config_targets="$ac_config_targets $1" ;;
51627
51628 esac
51629 shift
51630done
51631
51632ac_configure_extra_args=
51633
51634if $ac_cs_silent; then
51635 exec 6>/dev/null
51636 ac_configure_extra_args="$ac_configure_extra_args --silent"
51637fi
51638
51639_ACEOF
51640cat >>$CONFIG_STATUS <<_ACEOF
51641if \$ac_cs_recheck; then
51642 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
51643 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
51644fi
51645
51646_ACEOF
51647
51648cat >>$CONFIG_STATUS <<_ACEOF
51649#
51650# INIT-COMMANDS section.
51651#
51652
5c60e845
MW
51653
51654 CPP="$CPP"
51655 infile="$srcdir/include/wx/msw/genrcdefs.h"
51656 outdir="lib/wx/include/$TOOLCHAIN_FULLNAME/wx/msw"
51657
51658
ceec2216
RL
51659 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
51660 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
51661 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
51662 LN_S="${LN_S}"
a848cd7e
SC
51663
51664
51665_ACEOF
51666
51667
51668
51669cat >>$CONFIG_STATUS <<\_ACEOF
51670for ac_config_target in $ac_config_targets
51671do
51672 case "$ac_config_target" in
51673 # Handling of arguments.
ceec2216
RL
51674 "lib/wx/config/${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
51675 "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
a848cd7e
SC
51676 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
51677 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
51678 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
5c60e845 51679 "rcdefs.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS rcdefs.h" ;;
ceec2216
RL
51680 "wx-config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
51681 "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
51682 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
51683echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
51684 { (exit 1); exit 1; }; };;
51685 esac
51686done
51687
51688# If the user did not use the arguments to specify the items to instantiate,
51689# then the envvar interface is used. Set only those that are not.
51690# We use the long form for the default assignment because of an extremely
51691# bizarre bug on SunOS 4.1.3.
51692if $ac_need_defaults; then
51693 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
51694 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
51695 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
51696fi
51697
51698# Have a temporary directory for convenience. Make it in the build tree
51699# simply because there is no reason to put it here, and in addition,
51700# creating and moving files from /tmp can sometimes cause problems.
51701# Create a temporary directory, and hook for its removal unless debugging.
51702$debug ||
51703{
51704 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
51705 trap '{ (exit 1); exit 1; }' 1 2 13 15
51706}
51707
51708# Create a (secure) tmp directory for tmp files.
51709
51710{
51711 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
51712 test -n "$tmp" && test -d "$tmp"
51713} ||
51714{
51715 tmp=./confstat$$-$RANDOM
51716 (umask 077 && mkdir $tmp)
51717} ||
51718{
51719 echo "$me: cannot create a temporary directory in ." >&2
51720 { (exit 1); exit 1; }
51721}
51722
51723_ACEOF
51724
51725cat >>$CONFIG_STATUS <<_ACEOF
51726
51727#
51728# CONFIG_FILES section.
51729#
51730
51731# No need to generate the scripts if there are no CONFIG_FILES.
51732# This happens for instance when ./config.status config.h
51733if test -n "\$CONFIG_FILES"; then
51734 # Protect against being on the right side of a sed subst in config.status.
51735 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
51736 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
51737s,@SHELL@,$SHELL,;t t
51738s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
51739s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
51740s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
51741s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
51742s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
51743s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
51744s,@exec_prefix@,$exec_prefix,;t t
51745s,@prefix@,$prefix,;t t
51746s,@program_transform_name@,$program_transform_name,;t t
51747s,@bindir@,$bindir,;t t
51748s,@sbindir@,$sbindir,;t t
51749s,@libexecdir@,$libexecdir,;t t
51750s,@datadir@,$datadir,;t t
51751s,@sysconfdir@,$sysconfdir,;t t
51752s,@sharedstatedir@,$sharedstatedir,;t t
51753s,@localstatedir@,$localstatedir,;t t
51754s,@libdir@,$libdir,;t t
51755s,@includedir@,$includedir,;t t
51756s,@oldincludedir@,$oldincludedir,;t t
51757s,@infodir@,$infodir,;t t
51758s,@mandir@,$mandir,;t t
51759s,@build_alias@,$build_alias,;t t
51760s,@host_alias@,$host_alias,;t t
51761s,@target_alias@,$target_alias,;t t
51762s,@DEFS@,$DEFS,;t t
51763s,@ECHO_C@,$ECHO_C,;t t
51764s,@ECHO_N@,$ECHO_N,;t t
51765s,@ECHO_T@,$ECHO_T,;t t
51766s,@LIBS@,$LIBS,;t t
51767s,@build@,$build,;t t
51768s,@build_cpu@,$build_cpu,;t t
51769s,@build_vendor@,$build_vendor,;t t
51770s,@build_os@,$build_os,;t t
51771s,@host@,$host,;t t
51772s,@host_cpu@,$host_cpu,;t t
51773s,@host_vendor@,$host_vendor,;t t
51774s,@host_os@,$host_os,;t t
51775s,@target@,$target,;t t
51776s,@target_cpu@,$target_cpu,;t t
51777s,@target_vendor@,$target_vendor,;t t
51778s,@target_os@,$target_os,;t t
02b05020 51779s,@wx_top_builddir@,$wx_top_builddir,;t t
a848cd7e
SC
51780s,@CC@,$CC,;t t
51781s,@CFLAGS@,$CFLAGS,;t t
51782s,@LDFLAGS@,$LDFLAGS,;t t
51783s,@CPPFLAGS@,$CPPFLAGS,;t t
51784s,@ac_ct_CC@,$ac_ct_CC,;t t
51785s,@EXEEXT@,$EXEEXT,;t t
51786s,@OBJEXT@,$OBJEXT,;t t
51787s,@CPP@,$CPP,;t t
51788s,@EGREP@,$EGREP,;t t
51789s,@CXX@,$CXX,;t t
51790s,@CXXFLAGS@,$CXXFLAGS,;t t
51791s,@ac_ct_CXX@,$ac_ct_CXX,;t t
51792s,@RANLIB@,$RANLIB,;t t
51793s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
51794s,@AR@,$AR,;t t
8c80d384 51795s,@ac_ct_AR@,$ac_ct_AR,;t t
a848cd7e
SC
51796s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
51797s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
51798s,@INSTALL_DATA@,$INSTALL_DATA,;t t
51799s,@STRIP@,$STRIP,;t t
8c80d384 51800s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
8ced02f6
DE
51801s,@WINDRES@,$WINDRES,;t t
51802s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
8c80d384
DE
51803s,@DLLTOOL@,$DLLTOOL,;t t
51804s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
a848cd7e
SC
51805s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
51806s,@LN_S@,$LN_S,;t t
51807s,@CXXCPP@,$CXXCPP,;t t
51808s,@subdirs@,$subdirs,;t t
51809s,@PKG_CONFIG@,$PKG_CONFIG,;t t
51810s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
51811s,@GTK_LIBS@,$GTK_LIBS,;t t
51812s,@GTK_CONFIG@,$GTK_CONFIG,;t t
b3c86150
VS
51813s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
51814s,@DIRECTFB_CFLAGS@,$DIRECTFB_CFLAGS,;t t
51815s,@DIRECTFB_LIBS@,$DIRECTFB_LIBS,;t t
a848cd7e
SC
51816s,@X_CFLAGS@,$X_CFLAGS,;t t
51817s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
51818s,@X_LIBS@,$X_LIBS,;t t
51819s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
51820s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
51821s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
d1c38808
VZ
51822s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
51823s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
a848cd7e
SC
51824s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
51825s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
8ced02f6 51826s,@REZ@,$REZ,;t t
a848cd7e
SC
51827s,@DEREZ@,$DEREZ,;t t
51828s,@SETFILE@,$SETFILE,;t t
51829s,@LIBICONV@,$LIBICONV,;t t
51830s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
51831s,@SDL_CONFIG@,$SDL_CONFIG,;t t
51832s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
51833s,@SDL_LIBS@,$SDL_LIBS,;t t
d1c38808
VZ
51834s,@LIBGNOMEPRINTUI_CFLAGS@,$LIBGNOMEPRINTUI_CFLAGS,;t t
51835s,@LIBGNOMEPRINTUI_LIBS@,$LIBGNOMEPRINTUI_LIBS,;t t
2b850ae1
RR
51836s,@GNOMEVFS_CFLAGS@,$GNOMEVFS_CFLAGS,;t t
51837s,@GNOMEVFS_LIBS@,$GNOMEVFS_LIBS,;t t
3565d135
RR
51838s,@HILDON_CFLAGS@,$HILDON_CFLAGS,;t t
51839s,@HILDON_LIBS@,$HILDON_LIBS,;t t
64b75e64
RD
51840s,@CAIRO_CFLAGS@,$CAIRO_CFLAGS,;t t
51841s,@CAIRO_LIBS@,$CAIRO_LIBS,;t t
f10e38c4
VZ
51842s,@GST_CFLAGS@,$GST_CFLAGS,;t t
51843s,@GST_LIBS@,$GST_LIBS,;t t
a848cd7e
SC
51844s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
51845s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
51846s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
51847s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
51848s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
51849s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
51850s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
51851s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
51852s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
51853s,@VENDOR@,$VENDOR,;t t
51854s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
ceec2216
RL
51855s,@WX_FLAVOUR@,$WX_FLAVOUR,;t t
51856s,@WX_LIB_FLAVOUR@,$WX_LIB_FLAVOUR,;t t
a848cd7e
SC
51857s,@WXUNIV@,$WXUNIV,;t t
51858s,@MONOLITHIC@,$MONOLITHIC,;t t
51859s,@USE_PLUGINS@,$USE_PLUGINS,;t t
51860s,@EXTRALIBS@,$EXTRALIBS,;t t
51861s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
51862s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
51863s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
51864s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
51865s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
51866s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t
51867s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t
d1c38808 51868s,@EXTRALIBS_GNOMEPRINT@,$EXTRALIBS_GNOMEPRINT,;t t
2b850ae1 51869s,@EXTRALIBS_GNOMEVFS@,$EXTRALIBS_GNOMEVFS,;t t
3565d135 51870s,@EXTRALIBS_HILDON@,$EXTRALIBS_HILDON,;t t
a848cd7e
SC
51871s,@UNICODE@,$UNICODE,;t t
51872s,@BUILD@,$BUILD,;t t
51873s,@DEBUG_INFO@,$DEBUG_INFO,;t t
51874s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
a848cd7e
SC
51875s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
51876s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
51877s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
51878s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
51879s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
51880s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t
51881s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t
51882s,@SET_MAKE@,$SET_MAKE,;t t
51883s,@MAKE_SET@,$MAKE_SET,;t t
a485900c 51884s,@AROPTIONS@,$AROPTIONS,;t t
a848cd7e
SC
51885s,@NM@,$NM,;t t
51886s,@ac_ct_NM@,$ac_ct_NM,;t t
51887s,@INSTALL_DIR@,$INSTALL_DIR,;t t
51888s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
51889s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
51890s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
51891s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
51892s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
1e9e8aba 51893s,@PLATFORM_MACOS@,$PLATFORM_MACOS,;t t
a848cd7e
SC
51894s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
51895s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
1e9e8aba 51896s,@PLATFORM_BEOS@,$PLATFORM_BEOS,;t t
a848cd7e
SC
51897s,@SO_SUFFIX@,$SO_SUFFIX,;t t
51898s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
51899s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t
51900s,@LIBPREFIX@,$LIBPREFIX,;t t
51901s,@LIBEXT@,$LIBEXT,;t t
51902s,@DLLPREFIX@,$DLLPREFIX,;t t
51903s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
810b94f0 51904s,@dlldir@,$dlldir,;t t
a848cd7e
SC
51905s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
51906s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
51907s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
51908s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
51909s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
51910s,@PIC_FLAG@,$PIC_FLAG,;t t
810b94f0 51911s,@WINDOWS_IMPLIB@,$WINDOWS_IMPLIB,;t t
a848cd7e
SC
51912s,@USE_SOVERSION@,$USE_SOVERSION,;t t
51913s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
51914s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
810b94f0 51915s,@USE_SOVERCYGWIN@,$USE_SOVERCYGWIN,;t t
a848cd7e
SC
51916s,@USE_MACVERSION@,$USE_MACVERSION,;t t
51917s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
51918s,@SONAME_FLAG@,$SONAME_FLAG,;t t
51919s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
a485900c 51920s,@BK_DEPS@,$BK_DEPS,;t t
a848cd7e 51921s,@GCC_PCH@,$GCC_PCH,;t t
f10e38c4 51922s,@ICC_PCH@,$ICC_PCH,;t t
a485900c 51923s,@BK_MAKE_PCH@,$BK_MAKE_PCH,;t t
a848cd7e
SC
51924s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
51925s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
51926s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
51927s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t
51928s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t
51929s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
51930s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
51931s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t
51932s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t
51933s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
51934s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
51935s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
51936s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
51937s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
51938s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
f10e38c4 51939s,@COND_ICC_PCH_1@,$COND_ICC_PCH_1,;t t
a848cd7e
SC
51940s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
51941s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
3f60522a 51942s,@COND_MONOLITHIC_0_SHARED_0_USE_AUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_AUI_1,;t t
a848cd7e 51943s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
90970d69 51944s,@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 51945s,@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 51946s,@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 51947s,@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 51948s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
8b6682b9 51949s,@COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1@,$COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1,;t t
ceec2216 51950s,@COND_MONOLITHIC_0_SHARED_0_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1,;t t
a848cd7e 51951s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
3f60522a 51952s,@COND_MONOLITHIC_0_SHARED_1_USE_AUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_AUI_1,;t t
a848cd7e 51953s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
90970d69 51954s,@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 51955s,@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 51956s,@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 51957s,@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 51958s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
8b6682b9 51959s,@COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1@,$COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1,;t t
ceec2216 51960s,@COND_MONOLITHIC_0_SHARED_1_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1,;t t
e5efa97e 51961s,@COND_MONOLITHIC_0_USE_MEDIA_1@,$COND_MONOLITHIC_0_USE_MEDIA_1,;t t
a848cd7e
SC
51962s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t
51963s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
51964s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
51965s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
51966s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
51967s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
eb730a0c 51968s,@COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1,;t t
a848cd7e
SC
51969s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
51970s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
a30f955f 51971s,@COND_PLATFORM_MACOSX_1_TOOLKIT_@,$COND_PLATFORM_MACOSX_1_TOOLKIT_,;t t
a848cd7e
SC
51972s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
51973s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
51974s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
fc480dc1 51975s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1,;t t
ebee3cd0
VS
51976s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t
51977s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t
a848cd7e
SC
51978s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
51979s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
b48a2016 51980s,@COND_PLATFORM_MACOS_1@,$COND_PLATFORM_MACOS_1,;t t
083508af 51981s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
e5efa97e 51982s,@COND_PLATFORM_MSDOS_0@,$COND_PLATFORM_MSDOS_0,;t t
83d8eb47 51983s,@COND_PLATFORM_MSDOS_1@,$COND_PLATFORM_MSDOS_1,;t t
a848cd7e
SC
51984s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
51985s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
51986s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
51987s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
51988s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t
51989s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
51990s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
51991s,@COND_SHARED_0@,$COND_SHARED_0,;t t
083508af
MW
51992s,@COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0,;t t
51993s,@COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0,;t t
51994s,@COND_SHARED_0_TOOLKIT_PM_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0,;t t
a848cd7e
SC
51995s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
51996s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
51997s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
51998s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
083508af 51999s,@COND_SHARED_0_USE_XRC_1@,$COND_SHARED_0_USE_XRC_1,;t t
a848cd7e
SC
52000s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
52001s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
52002s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
52003s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
52004s,@COND_SHARED_1@,$COND_SHARED_1,;t t
52005s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
083508af 52006s,@COND_SHARED_1_USE_XRC_1@,$COND_SHARED_1_USE_XRC_1,;t t
a30f955f 52007s,@COND_TOOLKIT_@,$COND_TOOLKIT_,;t t
a848cd7e 52008s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
a49baeab 52009s,@COND_TOOLKIT_COCOA_USE_GUI_1@,$COND_TOOLKIT_COCOA_USE_GUI_1,;t t
a848cd7e 52010s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
b3c86150
VS
52011s,@COND_TOOLKIT_DFB@,$COND_TOOLKIT_DFB,;t t
52012s,@COND_TOOLKIT_DFB_USE_GUI_1@,$COND_TOOLKIT_DFB_USE_GUI_1,;t t
a848cd7e 52013s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
d044deea
MW
52014s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_,;t t
52015s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2,;t t
52016s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1,;t t
52017s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0,;t t
52018s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1,;t t
52019s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0,;t t
a848cd7e 52020s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
a848cd7e
SC
52021s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
52022s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
52023s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
52024s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
52025s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
52026s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
52027s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
52028s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
52029s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
52030s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
52031s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
0ee4059d 52032s,@COND_TOOLKIT_MSW_WXUNIV_0@,$COND_TOOLKIT_MSW_WXUNIV_0,;t t
a848cd7e
SC
52033s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
52034s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
52035s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
3fd9c298
DE
52036s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t
52037s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t
52038s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t
0ee4059d 52039s,@COND_TOOLKIT_WINCE_WXUNIV_0@,$COND_TOOLKIT_WINCE_WXUNIV_0,;t t
a848cd7e
SC
52040s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
52041s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
52042s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
52043s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
52044s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
52045s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
52046s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
52047s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
52048s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
52049s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
52050s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
52051s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
083508af
MW
52052s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
52053s,@COND_USE_OPENGL_1@,$COND_USE_OPENGL_1,;t t
f10e38c4 52054s,@COND_USE_PCH_1@,$COND_USE_PCH_1,;t t
a848cd7e 52055s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t
0b78747f
MW
52056s,@COND_USE_RTTI_0@,$COND_USE_RTTI_0,;t t
52057s,@COND_USE_RTTI_1@,$COND_USE_RTTI_1,;t t
a848cd7e 52058s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
eb730a0c 52059s,@COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1@,$COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1,;t t
a848cd7e
SC
52060s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
52061s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
52062s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
0b78747f
MW
52063s,@COND_USE_THREADS_0@,$COND_USE_THREADS_0,;t t
52064s,@COND_USE_THREADS_1@,$COND_USE_THREADS_1,;t t
a13a7f89 52065s,@COND_USE_XRC_1@,$COND_USE_XRC_1,;t t
eb730a0c 52066s,@COND_WINDOWS_IMPLIB_1@,$COND_WINDOWS_IMPLIB_1,;t t
a848cd7e 52067s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t
1e6eb025 52068s,@COND_WXUNIV_0@,$COND_WXUNIV_0,;t t
a848cd7e
SC
52069s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
52070s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
52071s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
52072s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
52073s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
52074s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
52075s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
52076s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
ceec2216 52077s,@SHARED@,$SHARED,;t t
a848cd7e
SC
52078s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
52079s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
a848cd7e
SC
52080s,@USE_GUI@,$USE_GUI,;t t
52081s,@AFMINSTALL@,$AFMINSTALL,;t t
52082s,@WIN32INSTALL@,$WIN32INSTALL,;t t
52083s,@TOOLKIT@,$TOOLKIT,;t t
52084s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
a848cd7e 52085s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
ceec2216 52086s,@TOOLCHAIN_FULLNAME@,$TOOLCHAIN_FULLNAME,;t t
a848cd7e 52087s,@cross_compiling@,$cross_compiling,;t t
ceec2216
RL
52088s,@WIDGET_SET@,$WIDGET_SET,;t t
52089s,@WX_RELEASE@,$WX_RELEASE,;t t
52090s,@WX_VERSION@,$WX_VERSION,;t t
52091s,@WX_SUBVERSION@,$WX_SUBVERSION,;t t
52092s,@WX_CHARTYPE@,$WX_CHARTYPE,;t t
52093s,@WX_DEBUGTYPE@,$WX_DEBUGTYPE,;t t
5ff751d6
VZ
52094s,@WXCONFIG_CPPFLAGS@,$WXCONFIG_CPPFLAGS,;t t
52095s,@WXCONFIG_CFLAGS@,$WXCONFIG_CFLAGS,;t t
52096s,@WXCONFIG_CXXFLAGS@,$WXCONFIG_CXXFLAGS,;t t
52097s,@WXCONFIG_LIBS@,$WXCONFIG_LIBS,;t t
a848cd7e
SC
52098s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
52099s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
004ee6da 52100s,@WXCONFIG_RESFLAGS@,$WXCONFIG_RESFLAGS,;t t
ceec2216 52101s,@EXE_LINKER@,$EXE_LINKER,;t t
a848cd7e 52102s,@GUIDIST@,$GUIDIST,;t t
a848cd7e
SC
52103s,@DISTDIR@,$DISTDIR,;t t
52104s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
52105s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
a848cd7e
SC
52106s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
52107s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
52108s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
004ee6da 52109s,@RESCOMP@,$RESCOMP,;t t
a848cd7e
SC
52110s,@RESFLAGS@,$RESFLAGS,;t t
52111s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
52112s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
52113s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
52114s,@LIBWXMACRES@,$LIBWXMACRES,;t t
8ced02f6 52115s,@POSTLINK_COMMAND@,$POSTLINK_COMMAND,;t t
a848cd7e 52116s,@MACSETFILE@,$MACSETFILE,;t t
a848cd7e 52117s,@GCC@,$GCC,;t t
a848cd7e
SC
52118s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t
52119s,@LIBOBJS@,$LIBOBJS,;t t
52120s,@LTLIBOBJS@,$LTLIBOBJS,;t t
52121CEOF
52122
52123_ACEOF
52124
52125 cat >>$CONFIG_STATUS <<\_ACEOF
52126 # Split the substitutions into bite-sized pieces for seds with
52127 # small command number limits, like on Digital OSF/1 and HP-UX.
52128 ac_max_sed_lines=48
52129 ac_sed_frag=1 # Number of current file.
52130 ac_beg=1 # First line for current file.
52131 ac_end=$ac_max_sed_lines # Line after last line for current file.
52132 ac_more_lines=:
52133 ac_sed_cmds=
52134 while $ac_more_lines; do
52135 if test $ac_beg -gt 1; then
52136 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
52137 else
52138 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
52139 fi
52140 if test ! -s $tmp/subs.frag; then
52141 ac_more_lines=false
52142 else
52143 # The purpose of the label and of the branching condition is to
52144 # speed up the sed processing (if there are no `@' at all, there
52145 # is no need to browse any of the substitutions).
52146 # These are the two extra sed commands mentioned above.
52147 (echo ':t
52148 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
52149 if test -z "$ac_sed_cmds"; then
ac1cb8d3 52150 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e 52151 else
ac1cb8d3 52152 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e
SC
52153 fi
52154 ac_sed_frag=`expr $ac_sed_frag + 1`
52155 ac_beg=$ac_end
52156 ac_end=`expr $ac_end + $ac_max_sed_lines`
52157 fi
52158 done
52159 if test -z "$ac_sed_cmds"; then
52160 ac_sed_cmds=cat
52161 fi
52162fi # test -n "$CONFIG_FILES"
52163
52164_ACEOF
52165cat >>$CONFIG_STATUS <<\_ACEOF
52166for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
52167 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
52168 case $ac_file in
52169 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
52170 cat >$tmp/stdin
52171 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
52172 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 52173 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 52174 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
52175 * ) ac_file_in=$ac_file.in ;;
52176 esac
52177
52178 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
52179 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
52180$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
52181 X"$ac_file" : 'X\(//\)[^/]' \| \
52182 X"$ac_file" : 'X\(//\)$' \| \
52183 X"$ac_file" : 'X\(/\)' \| \
52184 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
52185echo X"$ac_file" |
52186 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52187 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52188 /^X\(\/\/\)$/{ s//\1/; q; }
52189 /^X\(\/\).*/{ s//\1/; q; }
52190 s/.*/./; q'`
52191 { if $as_mkdir_p; then
52192 mkdir -p "$ac_dir"
52193 else
52194 as_dir="$ac_dir"
52195 as_dirs=
52196 while test ! -d "$as_dir"; do
52197 as_dirs="$as_dir $as_dirs"
52198 as_dir=`(dirname "$as_dir") 2>/dev/null ||
52199$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
52200 X"$as_dir" : 'X\(//\)[^/]' \| \
52201 X"$as_dir" : 'X\(//\)$' \| \
52202 X"$as_dir" : 'X\(/\)' \| \
52203 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
52204echo X"$as_dir" |
52205 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52206 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52207 /^X\(\/\/\)$/{ s//\1/; q; }
52208 /^X\(\/\).*/{ s//\1/; q; }
52209 s/.*/./; q'`
52210 done
52211 test ! -n "$as_dirs" || mkdir $as_dirs
52212 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
52213echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
52214 { (exit 1); exit 1; }; }; }
52215
52216 ac_builddir=.
52217
52218if test "$ac_dir" != .; then
52219 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
52220 # A "../" for each directory in $ac_dir_suffix.
52221 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
52222else
52223 ac_dir_suffix= ac_top_builddir=
52224fi
52225
52226case $srcdir in
52227 .) # No --srcdir option. We are building in place.
52228 ac_srcdir=.
52229 if test -z "$ac_top_builddir"; then
52230 ac_top_srcdir=.
52231 else
52232 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
52233 fi ;;
52234 [\\/]* | ?:[\\/]* ) # Absolute path.
52235 ac_srcdir=$srcdir$ac_dir_suffix;
52236 ac_top_srcdir=$srcdir ;;
52237 *) # Relative path.
52238 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
52239 ac_top_srcdir=$ac_top_builddir$srcdir ;;
52240esac
ac1cb8d3
VS
52241
52242# Do not use `cd foo && pwd` to compute absolute paths, because
52243# the directories may not exist.
52244case `pwd` in
52245.) ac_abs_builddir="$ac_dir";;
52246*)
52247 case "$ac_dir" in
52248 .) ac_abs_builddir=`pwd`;;
52249 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
52250 *) ac_abs_builddir=`pwd`/"$ac_dir";;
52251 esac;;
52252esac
52253case $ac_abs_builddir in
52254.) ac_abs_top_builddir=${ac_top_builddir}.;;
52255*)
52256 case ${ac_top_builddir}. in
52257 .) ac_abs_top_builddir=$ac_abs_builddir;;
52258 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
52259 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
52260 esac;;
52261esac
52262case $ac_abs_builddir in
52263.) ac_abs_srcdir=$ac_srcdir;;
52264*)
52265 case $ac_srcdir in
52266 .) ac_abs_srcdir=$ac_abs_builddir;;
52267 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
52268 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
52269 esac;;
52270esac
52271case $ac_abs_builddir in
52272.) ac_abs_top_srcdir=$ac_top_srcdir;;
52273*)
52274 case $ac_top_srcdir in
52275 .) ac_abs_top_srcdir=$ac_abs_builddir;;
52276 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
52277 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
52278 esac;;
52279esac
a848cd7e
SC
52280
52281
52282 case $INSTALL in
52283 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
52284 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
52285 esac
52286
a848cd7e
SC
52287 # Let's still pretend it is `configure' which instantiates (i.e., don't
52288 # use $as_me), people would be surprised to read:
52289 # /* config.h. Generated by config.status. */
52290 if test x"$ac_file" = x-; then
52291 configure_input=
52292 else
52293 configure_input="$ac_file. "
52294 fi
52295 configure_input=$configure_input"Generated from `echo $ac_file_in |
ac1cb8d3 52296 sed 's,.*/,,'` by configure."
a848cd7e
SC
52297
52298 # First look for the input files in the build tree, otherwise in the
52299 # src tree.
52300 ac_file_inputs=`IFS=:
52301 for f in $ac_file_in; do
52302 case $f in
52303 -) echo $tmp/stdin ;;
52304 [\\/$]*)
ac1cb8d3
VS
52305 # Absolute (can't be DOS-style, as IFS=:)
52306 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
52307echo "$as_me: error: cannot find input file: $f" >&2;}
52308 { (exit 1); exit 1; }; }
ac1cb8d3 52309 echo "$f";;
a848cd7e 52310 *) # Relative
ac1cb8d3
VS
52311 if test -f "$f"; then
52312 # Build tree
52313 echo "$f"
52314 elif test -f "$srcdir/$f"; then
52315 # Source tree
52316 echo "$srcdir/$f"
52317 else
52318 # /dev/null tree
52319 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
52320echo "$as_me: error: cannot find input file: $f" >&2;}
52321 { (exit 1); exit 1; }; }
ac1cb8d3 52322 fi;;
a848cd7e
SC
52323 esac
52324 done` || { (exit 1); exit 1; }
bb9e79c0
VZ
52325
52326 if test x"$ac_file" != x-; then
52327 { echo "$as_me:$LINENO: creating $ac_file" >&5
52328echo "$as_me: creating $ac_file" >&6;}
52329 rm -f "$ac_file"
52330 fi
a848cd7e
SC
52331_ACEOF
52332cat >>$CONFIG_STATUS <<_ACEOF
52333 sed "$ac_vpsub
52334$extrasub
52335_ACEOF
52336cat >>$CONFIG_STATUS <<\_ACEOF
52337:t
52338/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
52339s,@configure_input@,$configure_input,;t t
52340s,@srcdir@,$ac_srcdir,;t t
52341s,@abs_srcdir@,$ac_abs_srcdir,;t t
52342s,@top_srcdir@,$ac_top_srcdir,;t t
52343s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
52344s,@builddir@,$ac_builddir,;t t
52345s,@abs_builddir@,$ac_abs_builddir,;t t
52346s,@top_builddir@,$ac_top_builddir,;t t
52347s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
52348s,@INSTALL@,$ac_INSTALL,;t t
52349" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
52350 rm -f $tmp/stdin
52351 if test x"$ac_file" != x-; then
52352 mv $tmp/out $ac_file
52353 else
52354 cat $tmp/out
52355 rm -f $tmp/out
52356 fi
52357
ceec2216
RL
52358 # Run the commands associated with the file.
52359 case $ac_file in
52360 lib/wx/config/${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME} ;;
52361 lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ;;
52362 esac
a848cd7e
SC
52363done
52364_ACEOF
52365cat >>$CONFIG_STATUS <<\_ACEOF
52366
52367#
52368# CONFIG_HEADER section.
52369#
52370
52371# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
52372# NAME is the cpp macro being defined and VALUE is the value it is being given.
52373#
52374# ac_d sets the value in "#define NAME VALUE" lines.
ac1cb8d3
VS
52375ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
52376ac_dB='[ ].*$,\1#\2'
a848cd7e
SC
52377ac_dC=' '
52378ac_dD=',;t'
52379# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ac1cb8d3 52380ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
a848cd7e
SC
52381ac_uB='$,\1#\2define\3'
52382ac_uC=' '
52383ac_uD=',;t'
52384
52385for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
52386 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
52387 case $ac_file in
52388 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
52389 cat >$tmp/stdin
52390 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
52391 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 52392 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 52393 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
52394 * ) ac_file_in=$ac_file.in ;;
52395 esac
52396
52397 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
52398echo "$as_me: creating $ac_file" >&6;}
52399
52400 # First look for the input files in the build tree, otherwise in the
52401 # src tree.
52402 ac_file_inputs=`IFS=:
52403 for f in $ac_file_in; do
52404 case $f in
52405 -) echo $tmp/stdin ;;
52406 [\\/$]*)
ac1cb8d3
VS
52407 # Absolute (can't be DOS-style, as IFS=:)
52408 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
52409echo "$as_me: error: cannot find input file: $f" >&2;}
52410 { (exit 1); exit 1; }; }
ac1cb8d3
VS
52411 # Do quote $f, to prevent DOS paths from being IFS'd.
52412 echo "$f";;
a848cd7e 52413 *) # Relative
ac1cb8d3
VS
52414 if test -f "$f"; then
52415 # Build tree
52416 echo "$f"
52417 elif test -f "$srcdir/$f"; then
52418 # Source tree
52419 echo "$srcdir/$f"
52420 else
52421 # /dev/null tree
52422 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
52423echo "$as_me: error: cannot find input file: $f" >&2;}
52424 { (exit 1); exit 1; }; }
ac1cb8d3 52425 fi;;
a848cd7e
SC
52426 esac
52427 done` || { (exit 1); exit 1; }
52428 # Remove the trailing spaces.
ac1cb8d3 52429 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
a848cd7e
SC
52430
52431_ACEOF
52432
52433# Transform confdefs.h into two sed scripts, `conftest.defines' and
52434# `conftest.undefs', that substitutes the proper values into
52435# config.h.in to produce config.h. The first handles `#define'
52436# templates, and the second `#undef' templates.
52437# And first: Protect against being on the right side of a sed subst in
52438# config.status. Protect against being in an unquoted here document
52439# in config.status.
52440rm -f conftest.defines conftest.undefs
52441# Using a here document instead of a string reduces the quoting nightmare.
52442# Putting comments in sed scripts is not portable.
52443#
52444# `end' is used to avoid that the second main sed command (meant for
52445# 0-ary CPP macros) applies to n-ary macro definitions.
52446# See the Autoconf documentation for `clear'.
52447cat >confdef2sed.sed <<\_ACEOF
52448s/[\\&,]/\\&/g
52449s,[\\$`],\\&,g
52450t clear
52451: clear
ac1cb8d3 52452s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
a848cd7e 52453t end
ac1cb8d3 52454s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
a848cd7e
SC
52455: end
52456_ACEOF
52457# If some macros were called several times there might be several times
52458# the same #defines, which is useless. Nevertheless, we may not want to
52459# sort them, since we want the *last* AC-DEFINE to be honored.
52460uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
52461sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
52462rm -f confdef2sed.sed
52463
52464# This sed command replaces #undef with comments. This is necessary, for
52465# example, in the case of _POSIX_SOURCE, which is predefined and required
52466# on some systems where configure will not decide to define it.
52467cat >>conftest.undefs <<\_ACEOF
ac1cb8d3 52468s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
a848cd7e
SC
52469_ACEOF
52470
52471# Break up conftest.defines because some shells have a limit on the size
52472# of here documents, and old seds have small limits too (100 cmds).
52473echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
ac1cb8d3 52474echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
a848cd7e
SC
52475echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
52476echo ' :' >>$CONFIG_STATUS
52477rm -f conftest.tail
52478while grep . conftest.defines >/dev/null
52479do
52480 # Write a limited-size here document to $tmp/defines.sed.
52481 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
52482 # Speed up: don't consider the non `#define' lines.
ac1cb8d3 52483 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
a848cd7e
SC
52484 # Work around the forget-to-reset-the-flag bug.
52485 echo 't clr' >>$CONFIG_STATUS
52486 echo ': clr' >>$CONFIG_STATUS
52487 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
52488 echo 'CEOF
52489 sed -f $tmp/defines.sed $tmp/in >$tmp/out
52490 rm -f $tmp/in
52491 mv $tmp/out $tmp/in
52492' >>$CONFIG_STATUS
52493 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
52494 rm -f conftest.defines
52495 mv conftest.tail conftest.defines
52496done
52497rm -f conftest.defines
52498echo ' fi # grep' >>$CONFIG_STATUS
52499echo >>$CONFIG_STATUS
52500
52501# Break up conftest.undefs because some shells have a limit on the size
52502# of here documents, and old seds have small limits too (100 cmds).
52503echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
52504rm -f conftest.tail
52505while grep . conftest.undefs >/dev/null
52506do
52507 # Write a limited-size here document to $tmp/undefs.sed.
52508 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
52509 # Speed up: don't consider the non `#undef'
ac1cb8d3 52510 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
a848cd7e
SC
52511 # Work around the forget-to-reset-the-flag bug.
52512 echo 't clr' >>$CONFIG_STATUS
52513 echo ': clr' >>$CONFIG_STATUS
52514 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
52515 echo 'CEOF
52516 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
52517 rm -f $tmp/in
52518 mv $tmp/out $tmp/in
52519' >>$CONFIG_STATUS
52520 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
52521 rm -f conftest.undefs
52522 mv conftest.tail conftest.undefs
52523done
52524rm -f conftest.undefs
52525
52526cat >>$CONFIG_STATUS <<\_ACEOF
52527 # Let's still pretend it is `configure' which instantiates (i.e., don't
52528 # use $as_me), people would be surprised to read:
52529 # /* config.h. Generated by config.status. */
52530 if test x"$ac_file" = x-; then
52531 echo "/* Generated by configure. */" >$tmp/config.h
52532 else
52533 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
52534 fi
52535 cat $tmp/in >>$tmp/config.h
52536 rm -f $tmp/in
52537 if test x"$ac_file" != x-; then
52538 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
52539 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
52540echo "$as_me: $ac_file is unchanged" >&6;}
52541 else
52542 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
52543$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
52544 X"$ac_file" : 'X\(//\)[^/]' \| \
52545 X"$ac_file" : 'X\(//\)$' \| \
52546 X"$ac_file" : 'X\(/\)' \| \
52547 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
52548echo X"$ac_file" |
52549 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52550 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52551 /^X\(\/\/\)$/{ s//\1/; q; }
52552 /^X\(\/\).*/{ s//\1/; q; }
52553 s/.*/./; q'`
52554 { if $as_mkdir_p; then
52555 mkdir -p "$ac_dir"
52556 else
52557 as_dir="$ac_dir"
52558 as_dirs=
52559 while test ! -d "$as_dir"; do
52560 as_dirs="$as_dir $as_dirs"
52561 as_dir=`(dirname "$as_dir") 2>/dev/null ||
52562$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
52563 X"$as_dir" : 'X\(//\)[^/]' \| \
52564 X"$as_dir" : 'X\(//\)$' \| \
52565 X"$as_dir" : 'X\(/\)' \| \
52566 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
52567echo X"$as_dir" |
52568 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52569 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52570 /^X\(\/\/\)$/{ s//\1/; q; }
52571 /^X\(\/\).*/{ s//\1/; q; }
52572 s/.*/./; q'`
52573 done
52574 test ! -n "$as_dirs" || mkdir $as_dirs
52575 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
52576echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
52577 { (exit 1); exit 1; }; }; }
52578
52579 rm -f $ac_file
52580 mv $tmp/config.h $ac_file
52581 fi
52582 else
52583 cat $tmp/config.h
52584 rm -f $tmp/config.h
52585 fi
52586done
52587_ACEOF
52588cat >>$CONFIG_STATUS <<\_ACEOF
52589
52590#
52591# CONFIG_COMMANDS section.
52592#
52593for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
52594 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
52595 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
52596 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
52597$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
52598 X"$ac_dest" : 'X\(//\)[^/]' \| \
52599 X"$ac_dest" : 'X\(//\)$' \| \
52600 X"$ac_dest" : 'X\(/\)' \| \
52601 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
52602echo X"$ac_dest" |
52603 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52604 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52605 /^X\(\/\/\)$/{ s//\1/; q; }
52606 /^X\(\/\).*/{ s//\1/; q; }
52607 s/.*/./; q'`
ac1cb8d3
VS
52608 { if $as_mkdir_p; then
52609 mkdir -p "$ac_dir"
52610 else
52611 as_dir="$ac_dir"
52612 as_dirs=
52613 while test ! -d "$as_dir"; do
52614 as_dirs="$as_dir $as_dirs"
52615 as_dir=`(dirname "$as_dir") 2>/dev/null ||
52616$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52617 X"$as_dir" : 'X\(//\)[^/]' \| \
52618 X"$as_dir" : 'X\(//\)$' \| \
52619 X"$as_dir" : 'X\(/\)' \| \
52620 . : '\(.\)' 2>/dev/null ||
52621echo X"$as_dir" |
52622 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52623 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52624 /^X\(\/\/\)$/{ s//\1/; q; }
52625 /^X\(\/\).*/{ s//\1/; q; }
52626 s/.*/./; q'`
52627 done
52628 test ! -n "$as_dirs" || mkdir $as_dirs
52629 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
52630echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
52631 { (exit 1); exit 1; }; }; }
52632
a848cd7e
SC
52633 ac_builddir=.
52634
52635if test "$ac_dir" != .; then
52636 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
52637 # A "../" for each directory in $ac_dir_suffix.
52638 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
52639else
52640 ac_dir_suffix= ac_top_builddir=
52641fi
52642
52643case $srcdir in
52644 .) # No --srcdir option. We are building in place.
52645 ac_srcdir=.
52646 if test -z "$ac_top_builddir"; then
52647 ac_top_srcdir=.
52648 else
52649 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
52650 fi ;;
52651 [\\/]* | ?:[\\/]* ) # Absolute path.
52652 ac_srcdir=$srcdir$ac_dir_suffix;
52653 ac_top_srcdir=$srcdir ;;
52654 *) # Relative path.
52655 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
52656 ac_top_srcdir=$ac_top_builddir$srcdir ;;
52657esac
ac1cb8d3
VS
52658
52659# Do not use `cd foo && pwd` to compute absolute paths, because
52660# the directories may not exist.
52661case `pwd` in
52662.) ac_abs_builddir="$ac_dir";;
52663*)
52664 case "$ac_dir" in
52665 .) ac_abs_builddir=`pwd`;;
52666 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
52667 *) ac_abs_builddir=`pwd`/"$ac_dir";;
52668 esac;;
52669esac
52670case $ac_abs_builddir in
52671.) ac_abs_top_builddir=${ac_top_builddir}.;;
52672*)
52673 case ${ac_top_builddir}. in
52674 .) ac_abs_top_builddir=$ac_abs_builddir;;
52675 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
52676 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
52677 esac;;
52678esac
52679case $ac_abs_builddir in
52680.) ac_abs_srcdir=$ac_srcdir;;
52681*)
52682 case $ac_srcdir in
52683 .) ac_abs_srcdir=$ac_abs_builddir;;
52684 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
52685 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
52686 esac;;
52687esac
52688case $ac_abs_builddir in
52689.) ac_abs_top_srcdir=$ac_top_srcdir;;
52690*)
52691 case $ac_top_srcdir in
52692 .) ac_abs_top_srcdir=$ac_abs_builddir;;
52693 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
52694 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
52695 esac;;
52696esac
a848cd7e
SC
52697
52698
52699 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
52700echo "$as_me: executing $ac_dest commands" >&6;}
52701 case $ac_dest in
5c60e845
MW
52702 rcdefs.h )
52703 mkdir -p $outdir &&
52704 $CPP $infile | sed 's/^# *[1-9].*//;s/^ *//;/./,/^$/!d' > $outdir/rcdefs.h
52705 ;;
ceec2216
RL
52706 wx-config ) rm -f wx-config
52707 ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
52708 ;;
a848cd7e
SC
52709 esac
52710done
52711_ACEOF
52712
52713cat >>$CONFIG_STATUS <<\_ACEOF
52714
52715{ (exit 0); exit 0; }
52716_ACEOF
52717chmod +x $CONFIG_STATUS
52718ac_clean_files=$ac_clean_files_save
52719
52720
52721# configure is writing to config.log, and then calls config.status.
52722# config.status does its own redirection, appending to config.log.
52723# Unfortunately, on DOS this fails, as config.log is still kept open
52724# by configure, so config.status won't be able to write to it; its
52725# output is simply discarded. So we exec the FD to /dev/null,
52726# effectively closing config.log, so it can be properly (re)opened and
52727# appended to by config.status. When coming back to configure, we
52728# need to make the FD available again.
52729if test "$no_create" != yes; then
52730 ac_cs_success=:
52731 ac_config_status_args=
52732 test "$silent" = yes &&
52733 ac_config_status_args="$ac_config_status_args --quiet"
52734 exec 5>/dev/null
52735 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
52736 exec 5>>config.log
52737 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
52738 # would make configure fail if this is the last instruction.
52739 $ac_cs_success || { (exit 1); exit 1; }
52740fi
52741
52742#
52743# CONFIG_SUBDIRS section.
52744#
52745if test "$no_recursion" != yes; then
52746
52747 # Remove --cache-file and --srcdir arguments so they do not pile up.
52748 ac_sub_configure_args=
52749 ac_prev=
52750 for ac_arg in $ac_configure_args; do
52751 if test -n "$ac_prev"; then
52752 ac_prev=
52753 continue
52754 fi
52755 case $ac_arg in
52756 -cache-file | --cache-file | --cache-fil | --cache-fi \
52757 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
52758 ac_prev=cache_file ;;
52759 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
52760 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
52761 | --c=*)
52762 ;;
52763 --config-cache | -C)
52764 ;;
52765 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
52766 ac_prev=srcdir ;;
52767 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
52768 ;;
52769 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
52770 ac_prev=prefix ;;
52771 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
52772 ;;
52773 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
52774 esac
52775 done
52776
52777 # Always prepend --prefix to ensure using the same prefix
52778 # in subdir configurations.
52779 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
52780
52781 ac_popdir=`pwd`
52782 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
52783
52784 # Do not complain, so a configure script can configure whichever
52785 # parts of a large source tree are present.
52786 test -d $srcdir/$ac_dir || continue
52787
52788 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
52789echo "$as_me: configuring in $ac_dir" >&6;}
52790 { if $as_mkdir_p; then
52791 mkdir -p "$ac_dir"
52792 else
52793 as_dir="$ac_dir"
52794 as_dirs=
52795 while test ! -d "$as_dir"; do
52796 as_dirs="$as_dir $as_dirs"
52797 as_dir=`(dirname "$as_dir") 2>/dev/null ||
52798$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
52799 X"$as_dir" : 'X\(//\)[^/]' \| \
52800 X"$as_dir" : 'X\(//\)$' \| \
52801 X"$as_dir" : 'X\(/\)' \| \
52802 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
52803echo X"$as_dir" |
52804 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52805 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52806 /^X\(\/\/\)$/{ s//\1/; q; }
52807 /^X\(\/\).*/{ s//\1/; q; }
52808 s/.*/./; q'`
52809 done
52810 test ! -n "$as_dirs" || mkdir $as_dirs
52811 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
52812echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
52813 { (exit 1); exit 1; }; }; }
52814
52815 ac_builddir=.
52816
52817if test "$ac_dir" != .; then
52818 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
52819 # A "../" for each directory in $ac_dir_suffix.
52820 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
52821else
52822 ac_dir_suffix= ac_top_builddir=
52823fi
52824
52825case $srcdir in
52826 .) # No --srcdir option. We are building in place.
52827 ac_srcdir=.
52828 if test -z "$ac_top_builddir"; then
52829 ac_top_srcdir=.
52830 else
52831 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
52832 fi ;;
52833 [\\/]* | ?:[\\/]* ) # Absolute path.
52834 ac_srcdir=$srcdir$ac_dir_suffix;
52835 ac_top_srcdir=$srcdir ;;
52836 *) # Relative path.
52837 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
52838 ac_top_srcdir=$ac_top_builddir$srcdir ;;
52839esac
ac1cb8d3
VS
52840
52841# Do not use `cd foo && pwd` to compute absolute paths, because
52842# the directories may not exist.
52843case `pwd` in
52844.) ac_abs_builddir="$ac_dir";;
52845*)
52846 case "$ac_dir" in
52847 .) ac_abs_builddir=`pwd`;;
52848 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
52849 *) ac_abs_builddir=`pwd`/"$ac_dir";;
52850 esac;;
52851esac
52852case $ac_abs_builddir in
52853.) ac_abs_top_builddir=${ac_top_builddir}.;;
52854*)
52855 case ${ac_top_builddir}. in
52856 .) ac_abs_top_builddir=$ac_abs_builddir;;
52857 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
52858 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
52859 esac;;
52860esac
52861case $ac_abs_builddir in
52862.) ac_abs_srcdir=$ac_srcdir;;
52863*)
52864 case $ac_srcdir in
52865 .) ac_abs_srcdir=$ac_abs_builddir;;
52866 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
52867 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
52868 esac;;
52869esac
52870case $ac_abs_builddir in
52871.) ac_abs_top_srcdir=$ac_top_srcdir;;
52872*)
52873 case $ac_top_srcdir in
52874 .) ac_abs_top_srcdir=$ac_abs_builddir;;
52875 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
52876 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
52877 esac;;
52878esac
a848cd7e
SC
52879
52880
52881 cd $ac_dir
52882
52883 # Check for guested configure; otherwise get Cygnus style configure.
52884 if test -f $ac_srcdir/configure.gnu; then
52885 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
52886 elif test -f $ac_srcdir/configure; then
52887 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
52888 elif test -f $ac_srcdir/configure.in; then
52889 ac_sub_configure=$ac_configure
52890 else
52891 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
52892echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
52893 ac_sub_configure=
52894 fi
52895
52896 # The recursion is here.
52897 if test -n "$ac_sub_configure"; then
52898 # Make the cache file name correct relative to the subdirectory.
52899 case $cache_file in
52900 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
52901 *) # Relative path.
ac1cb8d3 52902 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
a848cd7e
SC
52903 esac
52904
52905 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
52906echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
52907 # The eval makes quoting arguments work.
52908 eval $ac_sub_configure $ac_sub_configure_args \
ac1cb8d3
VS
52909 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
52910 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
a848cd7e
SC
52911echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
52912 { (exit 1); exit 1; }; }
52913 fi
52914
bb9e79c0 52915 cd "$ac_popdir"
a848cd7e
SC
52916 done
52917fi
52918
52919
52920echo
77ffb593 52921echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
a848cd7e 52922echo ""
c2e9ada4 52923echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_DESC}"
77ffb593 52924echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
a848cd7e 52925
77ffb593
JS
52926echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}"
52927echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}"
52928echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
a848cd7e 52929
77ffb593 52930echo " What level of wxWidgets compatibility should be enabled?"
dee1a63f
MB
52931echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-no}"
52932echo " wxWidgets 2.6 ${WXWIN_COMPATIBILITY_2_6:-yes}"
a848cd7e 52933
77ffb593 52934echo " Which libraries should wxWidgets use?"
a848cd7e
SC
52935echo " jpeg ${wxUSE_LIBJPEG-none}"
52936echo " png ${wxUSE_LIBPNG-none}"
52937echo " regex ${wxUSE_REGEX}"
52938echo " tiff ${wxUSE_LIBTIFF-none}"
52939if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
52940echo " xpm ${wxUSE_LIBXPM-none}"
52941fi
52942echo " zlib ${wxUSE_ZLIB}"
52943echo " odbc ${wxUSE_ODBC}"
52944echo " expat ${wxUSE_EXPAT}"
52945echo " libmspack ${wxUSE_LIBMSPACK}"
52946echo " sdl ${wxUSE_LIBSDL}"
52947
52948echo ""
52949