]> git.saurik.com Git - wxWidgets.git/blame - configure
reSWIGged
[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"
b3c86150 316ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP CXX CXXFLAGS ac_ct_CXX RANLIB ac_ct_RANLIB AR ac_ct_AR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA STRIP ac_ct_STRIP WINDRES ac_ct_WINDRES DLLTOOL ac_ct_DLLTOOL IF_GNU_MAKE LN_S CXXCPP subdirs PKG_CONFIG GTK_CFLAGS GTK_LIBS GTK_CONFIG ac_pt_PKG_CONFIG DIRECTFB_CFLAGS DIRECTFB_LIBS X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS PANGOX_CFLAGS PANGOX_LIBS PANGOFT2_CFLAGS PANGOFT2_LIBS PANGOXFT_CFLAGS PANGOXFT_LIBS REZ DEREZ SETFILE LIBICONV EXTRALIBS_ESD SDL_CONFIG SDL_CFLAGS SDL_LIBS LIBGNOMEPRINTUI_CFLAGS LIBGNOMEPRINTUI_LIBS GNOMEVFS_CFLAGS GNOMEVFS_LIBS HILDON_CFLAGS HILDON_LIBS GST_CFLAGS GST_LIBS CORE_BASE_LIBS CORE_GUI_LIBS wxUSE_ZLIB wxUSE_REGEX wxUSE_EXPAT wxUSE_ODBC wxUSE_LIBJPEG wxUSE_LIBPNG wxUSE_LIBTIFF VENDOR OFFICIAL_BUILD WX_FLAVOUR WX_LIB_FLAVOUR WXUNIV MONOLITHIC USE_PLUGINS EXTRALIBS EXTRALIBS_XML EXTRALIBS_HTML EXTRALIBS_ODBC EXTRALIBS_GUI EXTRALIBS_OPENGL EXTRALIBS_SDL WITH_PLUGIN_SDL EXTRALIBS_GNOMEPRINT EXTRALIBS_GNOMEVFS EXTRALIBS_HILDON UNICODE BUILD DEBUG_INFO DEBUG_FLAG TOOLKIT_LOWERCASE TOOLKIT_VERSION SAMPLES_RPATH_FLAG SAMPLES_RPATH_POSTLINK HOST_SUFFIX CPPUNIT_CFLAGS CPPUNIT_LIBS SET_MAKE MAKE_SET NM ac_ct_NM INSTALL_DIR LDFLAGS_GUI PLATFORM_UNIX PLATFORM_WIN32 PLATFORM_MSDOS PLATFORM_MAC PLATFORM_MACOS PLATFORM_MACOSX PLATFORM_OS2 PLATFORM_BEOS SO_SUFFIX SO_SUFFIX_MODULE DLLIMP_SUFFIX LIBPREFIX LIBEXT DLLPREFIX DLLPREFIX_MODULE dlldir AIX_CXX_LD SHARED_LD_CC SHARED_LD_CXX SHARED_LD_MODULE_CC SHARED_LD_MODULE_CXX PIC_FLAG WINDOWS_IMPLIB USE_SOVERSION USE_SOVERLINUX USE_SOVERSOLARIS USE_SOVERCYGWIN USE_MACVERSION USE_SOSYMLINKS SONAME_FLAG DEPS_TRACKING GCC_PCH ICC_PCH COND_BUILD_DEBUG COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT COND_BUILD_DEBUG_UNICODE_0 COND_BUILD_DEBUG_UNICODE_1 COND_BUILD_RELEASE COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT COND_BUILD_RELEASE_UNICODE_0 COND_BUILD_RELEASE_UNICODE_1 COND_DEBUG_FLAG_1 COND_DEBUG_INFO_0 COND_DEBUG_INFO_1 COND_DEPS_TRACKING_0 COND_DEPS_TRACKING_1 COND_GCC_PCH_1 COND_ICC_PCH_1 COND_MONOLITHIC_0 COND_MONOLITHIC_0_SHARED_0 COND_MONOLITHIC_0_SHARED_0_USE_AUI_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1 COND_MONOLITHIC_0_SHARED_1 COND_MONOLITHIC_0_SHARED_1_USE_AUI_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1 COND_MONOLITHIC_0_USE_MEDIA_1 COND_MONOLITHIC_0_USE_ODBC_1 COND_MONOLITHIC_1 COND_MONOLITHIC_1_SHARED_0 COND_MONOLITHIC_1_SHARED_1 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1 COND_PLATFORM_MACOSX_1 COND_PLATFORM_MACOSX_1_TOOLKIT_ COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA COND_PLATFORM_MACOSX_1_TOOLKIT_GTK COND_PLATFORM_MACOSX_1_TOOLKIT_MAC COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF COND_PLATFORM_MACOSX_1_TOOLKIT_X11 COND_PLATFORM_MACOSX_1_USE_GUI_1 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1 COND_PLATFORM_MACOS_1 COND_PLATFORM_MAC_1 COND_PLATFORM_MSDOS_0 COND_PLATFORM_MSDOS_1 COND_PLATFORM_OS2_1 COND_PLATFORM_UNIX_0 COND_PLATFORM_UNIX_1 COND_PLATFORM_UNIX_1_USE_GUI_1 COND_PLATFORM_UNIX_1_USE_PLUGINS_0 COND_PLATFORM_WIN32_0 COND_PLATFORM_WIN32_1 COND_SHARED_0 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_SHARED_0_USE_XRC_1 COND_SHARED_0_WXUSE_EXPAT_BUILTIN COND_SHARED_0_WXUSE_ODBC_BUILTIN COND_SHARED_0_WXUSE_REGEX_BUILTIN COND_SHARED_0_WXUSE_ZLIB_BUILTIN COND_SHARED_1 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1 COND_SHARED_1_USE_XRC_1 COND_TOOLKIT_ COND_TOOLKIT_COCOA COND_TOOLKIT_COCOA_USE_GUI_1 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_DFB COND_TOOLKIT_DFB_USE_GUI_1 COND_TOOLKIT_GTK COND_TOOLKIT_GTK_TOOLKIT_VERSION_ COND_TOOLKIT_GTK_TOOLKIT_VERSION_2 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK_USE_GUI_1 COND_TOOLKIT_MAC COND_TOOLKIT_MAC_USE_GUI_1 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MGL COND_TOOLKIT_MGL_USE_GUI_1 COND_TOOLKIT_MOTIF COND_TOOLKIT_MOTIF_USE_GUI_1 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MSW COND_TOOLKIT_MSW_USE_GUI_1 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MSW_WXUNIV_0 COND_TOOLKIT_PM COND_TOOLKIT_PM_USE_GUI_1 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_WINCE COND_TOOLKIT_WINCE_USE_GUI_1 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_WINCE_WXUNIV_0 COND_TOOLKIT_X11 COND_TOOLKIT_X11_USE_GUI_1 COND_UNICODE_1 COND_USE_EXCEPTIONS_0 COND_USE_EXCEPTIONS_1 COND_USE_GUI_0 COND_USE_GUI_1 COND_USE_GUI_1_WXUNIV_0 COND_USE_GUI_1_WXUNIV_1 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_USE_ODBC_1 COND_USE_OPENGL_1 COND_USE_PCH_1 COND_USE_PLUGINS_0 COND_USE_RTTI_0 COND_USE_RTTI_1 COND_USE_SOSYMLINKS_1 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1 COND_USE_SOVERLINUX_1 COND_USE_SOVERSION_0 COND_USE_SOVERSOLARIS_1 COND_USE_THREADS_0 COND_USE_THREADS_1 COND_USE_XRC_1 COND_WINDOWS_IMPLIB_1 COND_WITH_PLUGIN_SDL_1 COND_WXUNIV_0 COND_WXUNIV_1 COND_WXUSE_EXPAT_BUILTIN COND_WXUSE_LIBJPEG_BUILTIN COND_WXUSE_LIBPNG_BUILTIN COND_WXUSE_LIBTIFF_BUILTIN COND_WXUSE_ODBC_BUILTIN COND_WXUSE_REGEX_BUILTIN COND_WXUSE_ZLIB_BUILTIN SHARED WX_LIBRARY_BASENAME_NOGUI WX_LIBRARY_BASENAME_GUI USE_GUI AFMINSTALL WIN32INSTALL TOOLKIT TOOLKIT_DIR TOOLCHAIN_NAME TOOLCHAIN_FULLNAME cross_compiling WIDGET_SET WX_RELEASE WX_VERSION WX_SUBVERSION WX_CHARTYPE WX_DEBUGTYPE WXCONFIG_CPPFLAGS WXCONFIG_CFLAGS WXCONFIG_CXXFLAGS WXCONFIG_LIBS WXCONFIG_RPATH WXCONFIG_LDFLAGS_GUI WXCONFIG_RESFLAGS EXE_LINKER GUIDIST DISTDIR SAMPLES_SUBDIRS LDFLAGS_GL OPENGL_LIBS DMALLOC_LIBS WX_VERSION_TAG RESCOMP RESFLAGS RESPROGRAMOBJ WX_RESOURCES_MACOSX_ASCII WX_RESOURCES_MACOSX_DATA LIBWXMACRES POSTLINK_COMMAND MACSETFILE GCC CPPUNIT_CONFIG LIBOBJS LTLIBOBJS'
a848cd7e
SC
317ac_subst_files=''
318
319# Initialize some variables set by options.
320ac_init_help=
321ac_init_version=false
322# The variables have the same names as the options, with
323# dashes changed to underlines.
324cache_file=/dev/null
325exec_prefix=NONE
326no_create=
327no_recursion=
328prefix=NONE
329program_prefix=NONE
330program_suffix=NONE
331program_transform_name=s,x,x,
332silent=
333site=
334srcdir=
335verbose=
336x_includes=NONE
337x_libraries=NONE
338
339# Installation directory options.
340# These are left unexpanded so users can "make install exec_prefix=/foo"
341# and all the variables that are supposed to be based on exec_prefix
342# by default will actually change.
343# Use braces instead of parens because sh, perl, etc. also accept them.
344bindir='${exec_prefix}/bin'
345sbindir='${exec_prefix}/sbin'
346libexecdir='${exec_prefix}/libexec'
347datadir='${prefix}/share'
348sysconfdir='${prefix}/etc'
349sharedstatedir='${prefix}/com'
350localstatedir='${prefix}/var'
351libdir='${exec_prefix}/lib'
352includedir='${prefix}/include'
353oldincludedir='/usr/include'
354infodir='${prefix}/info'
355mandir='${prefix}/man'
356
357ac_prev=
358for ac_option
359do
360 # If the previous option needs an argument, assign it.
361 if test -n "$ac_prev"; then
362 eval "$ac_prev=\$ac_option"
363 ac_prev=
364 continue
365 fi
366
367 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
368
369 # Accept the important Cygnus configure options, so we can diagnose typos.
370
371 case $ac_option in
372
373 -bindir | --bindir | --bindi | --bind | --bin | --bi)
374 ac_prev=bindir ;;
375 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
376 bindir=$ac_optarg ;;
377
378 -build | --build | --buil | --bui | --bu)
379 ac_prev=build_alias ;;
380 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
381 build_alias=$ac_optarg ;;
382
383 -cache-file | --cache-file | --cache-fil | --cache-fi \
384 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
385 ac_prev=cache_file ;;
386 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
387 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
388 cache_file=$ac_optarg ;;
389
390 --config-cache | -C)
391 cache_file=config.cache ;;
392
393 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
394 ac_prev=datadir ;;
395 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
396 | --da=*)
397 datadir=$ac_optarg ;;
398
399 -disable-* | --disable-*)
400 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
401 # Reject names that are not valid shell variable names.
402 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
403 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
404 { (exit 1); exit 1; }; }
405 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
406 eval "enable_$ac_feature=no" ;;
407
408 -enable-* | --enable-*)
409 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
410 # Reject names that are not valid shell variable names.
411 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
412 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
413 { (exit 1); exit 1; }; }
414 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
415 case $ac_option in
416 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
417 *) ac_optarg=yes ;;
418 esac
419 eval "enable_$ac_feature='$ac_optarg'" ;;
420
421 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
422 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
423 | --exec | --exe | --ex)
424 ac_prev=exec_prefix ;;
425 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
426 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
427 | --exec=* | --exe=* | --ex=*)
428 exec_prefix=$ac_optarg ;;
429
430 -gas | --gas | --ga | --g)
431 # Obsolete; use --with-gas.
432 with_gas=yes ;;
433
434 -help | --help | --hel | --he | -h)
435 ac_init_help=long ;;
436 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
437 ac_init_help=recursive ;;
438 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
439 ac_init_help=short ;;
440
441 -host | --host | --hos | --ho)
442 ac_prev=host_alias ;;
443 -host=* | --host=* | --hos=* | --ho=*)
444 host_alias=$ac_optarg ;;
445
446 -includedir | --includedir | --includedi | --included | --include \
447 | --includ | --inclu | --incl | --inc)
448 ac_prev=includedir ;;
449 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
450 | --includ=* | --inclu=* | --incl=* | --inc=*)
451 includedir=$ac_optarg ;;
452
453 -infodir | --infodir | --infodi | --infod | --info | --inf)
454 ac_prev=infodir ;;
455 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
456 infodir=$ac_optarg ;;
457
458 -libdir | --libdir | --libdi | --libd)
459 ac_prev=libdir ;;
460 -libdir=* | --libdir=* | --libdi=* | --libd=*)
461 libdir=$ac_optarg ;;
462
463 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
464 | --libexe | --libex | --libe)
465 ac_prev=libexecdir ;;
466 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
467 | --libexe=* | --libex=* | --libe=*)
468 libexecdir=$ac_optarg ;;
469
470 -localstatedir | --localstatedir | --localstatedi | --localstated \
471 | --localstate | --localstat | --localsta | --localst \
472 | --locals | --local | --loca | --loc | --lo)
473 ac_prev=localstatedir ;;
474 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
475 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
476 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
477 localstatedir=$ac_optarg ;;
478
479 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
480 ac_prev=mandir ;;
481 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
482 mandir=$ac_optarg ;;
483
484 -nfp | --nfp | --nf)
485 # Obsolete; use --without-fp.
486 with_fp=no ;;
487
488 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
489 | --no-cr | --no-c | -n)
490 no_create=yes ;;
491
492 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
493 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
494 no_recursion=yes ;;
495
496 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
497 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
498 | --oldin | --oldi | --old | --ol | --o)
499 ac_prev=oldincludedir ;;
500 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
501 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
502 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
503 oldincludedir=$ac_optarg ;;
504
505 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
506 ac_prev=prefix ;;
507 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
508 prefix=$ac_optarg ;;
509
510 -program-prefix | --program-prefix | --program-prefi | --program-pref \
511 | --program-pre | --program-pr | --program-p)
512 ac_prev=program_prefix ;;
513 -program-prefix=* | --program-prefix=* | --program-prefi=* \
514 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
515 program_prefix=$ac_optarg ;;
516
517 -program-suffix | --program-suffix | --program-suffi | --program-suff \
518 | --program-suf | --program-su | --program-s)
519 ac_prev=program_suffix ;;
520 -program-suffix=* | --program-suffix=* | --program-suffi=* \
521 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
522 program_suffix=$ac_optarg ;;
523
524 -program-transform-name | --program-transform-name \
525 | --program-transform-nam | --program-transform-na \
526 | --program-transform-n | --program-transform- \
527 | --program-transform | --program-transfor \
528 | --program-transfo | --program-transf \
529 | --program-trans | --program-tran \
530 | --progr-tra | --program-tr | --program-t)
531 ac_prev=program_transform_name ;;
532 -program-transform-name=* | --program-transform-name=* \
533 | --program-transform-nam=* | --program-transform-na=* \
534 | --program-transform-n=* | --program-transform-=* \
535 | --program-transform=* | --program-transfor=* \
536 | --program-transfo=* | --program-transf=* \
537 | --program-trans=* | --program-tran=* \
538 | --progr-tra=* | --program-tr=* | --program-t=*)
539 program_transform_name=$ac_optarg ;;
540
541 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
542 | -silent | --silent | --silen | --sile | --sil)
543 silent=yes ;;
544
545 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
546 ac_prev=sbindir ;;
547 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
548 | --sbi=* | --sb=*)
549 sbindir=$ac_optarg ;;
550
551 -sharedstatedir | --sharedstatedir | --sharedstatedi \
552 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
553 | --sharedst | --shareds | --shared | --share | --shar \
554 | --sha | --sh)
555 ac_prev=sharedstatedir ;;
556 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
557 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
558 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
559 | --sha=* | --sh=*)
560 sharedstatedir=$ac_optarg ;;
561
562 -site | --site | --sit)
563 ac_prev=site ;;
564 -site=* | --site=* | --sit=*)
565 site=$ac_optarg ;;
566
567 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
568 ac_prev=srcdir ;;
569 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
570 srcdir=$ac_optarg ;;
571
572 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
573 | --syscon | --sysco | --sysc | --sys | --sy)
574 ac_prev=sysconfdir ;;
575 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
576 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
577 sysconfdir=$ac_optarg ;;
578
579 -target | --target | --targe | --targ | --tar | --ta | --t)
580 ac_prev=target_alias ;;
581 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
582 target_alias=$ac_optarg ;;
583
584 -v | -verbose | --verbose | --verbos | --verbo | --verb)
585 verbose=yes ;;
586
587 -version | --version | --versio | --versi | --vers | -V)
588 ac_init_version=: ;;
589
590 -with-* | --with-*)
591 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
592 # Reject names that are not valid shell variable names.
593 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
594 { echo "$as_me: error: invalid package name: $ac_package" >&2
595 { (exit 1); exit 1; }; }
596 ac_package=`echo $ac_package| sed 's/-/_/g'`
597 case $ac_option in
598 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
599 *) ac_optarg=yes ;;
600 esac
601 eval "with_$ac_package='$ac_optarg'" ;;
602
603 -without-* | --without-*)
604 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
605 # Reject names that are not valid shell variable names.
606 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
607 { echo "$as_me: error: invalid package name: $ac_package" >&2
608 { (exit 1); exit 1; }; }
609 ac_package=`echo $ac_package | sed 's/-/_/g'`
610 eval "with_$ac_package=no" ;;
611
612 --x)
613 # Obsolete; use --with-x.
614 with_x=yes ;;
615
616 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
617 | --x-incl | --x-inc | --x-in | --x-i)
618 ac_prev=x_includes ;;
619 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
620 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
621 x_includes=$ac_optarg ;;
622
623 -x-libraries | --x-libraries | --x-librarie | --x-librari \
624 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
625 ac_prev=x_libraries ;;
626 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
627 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
628 x_libraries=$ac_optarg ;;
629
630 -*) { echo "$as_me: error: unrecognized option: $ac_option
631Try \`$0 --help' for more information." >&2
632 { (exit 1); exit 1; }; }
633 ;;
634
635 *=*)
636 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
637 # Reject names that are not valid shell variable names.
638 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
639 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
640 { (exit 1); exit 1; }; }
641 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
642 eval "$ac_envvar='$ac_optarg'"
643 export $ac_envvar ;;
644
645 *)
646 # FIXME: should be removed in autoconf 3.0.
647 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
648 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
649 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
650 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
651 ;;
652
653 esac
654done
655
656if test -n "$ac_prev"; then
657 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
658 { echo "$as_me: error: missing argument to $ac_option" >&2
659 { (exit 1); exit 1; }; }
660fi
661
662# Be sure to have absolute paths.
663for ac_var in exec_prefix prefix
664do
665 eval ac_val=$`echo $ac_var`
666 case $ac_val in
667 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
668 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
669 { (exit 1); exit 1; }; };;
670 esac
671done
672
673# Be sure to have absolute paths.
674for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
ac1cb8d3 675 localstatedir libdir includedir oldincludedir infodir mandir
a848cd7e
SC
676do
677 eval ac_val=$`echo $ac_var`
678 case $ac_val in
679 [\\/$]* | ?:[\\/]* ) ;;
680 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
681 { (exit 1); exit 1; }; };;
682 esac
683done
684
685# There might be people who depend on the old broken behavior: `$host'
686# used to hold the argument of --host etc.
687# FIXME: To remove some day.
688build=$build_alias
689host=$host_alias
690target=$target_alias
691
692# FIXME: To remove some day.
693if test "x$host_alias" != x; then
694 if test "x$build_alias" = x; then
695 cross_compiling=maybe
696 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
697 If a cross compiler is detected then cross compile mode will be used." >&2
698 elif test "x$build_alias" != "x$host_alias"; then
699 cross_compiling=yes
700 fi
701fi
702
703ac_tool_prefix=
704test -n "$host_alias" && ac_tool_prefix=$host_alias-
705
706test "$silent" = yes && exec 6>/dev/null
707
708
709# Find the source files, if location was not specified.
710if test -z "$srcdir"; then
711 ac_srcdir_defaulted=yes
712 # Try the directory containing this script, then its parent.
713 ac_confdir=`(dirname "$0") 2>/dev/null ||
714$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
715 X"$0" : 'X\(//\)[^/]' \| \
716 X"$0" : 'X\(//\)$' \| \
717 X"$0" : 'X\(/\)' \| \
718 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
719echo X"$0" |
720 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
721 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
722 /^X\(\/\/\)$/{ s//\1/; q; }
723 /^X\(\/\).*/{ s//\1/; q; }
724 s/.*/./; q'`
725 srcdir=$ac_confdir
726 if test ! -r $srcdir/$ac_unique_file; then
727 srcdir=..
728 fi
729else
730 ac_srcdir_defaulted=no
731fi
732if test ! -r $srcdir/$ac_unique_file; then
733 if test "$ac_srcdir_defaulted" = yes; then
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
735 { (exit 1); exit 1; }; }
736 else
737 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
738 { (exit 1); exit 1; }; }
739 fi
740fi
741(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
742 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
743 { (exit 1); exit 1; }; }
744srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
745ac_env_build_alias_set=${build_alias+set}
746ac_env_build_alias_value=$build_alias
747ac_cv_env_build_alias_set=${build_alias+set}
748ac_cv_env_build_alias_value=$build_alias
749ac_env_host_alias_set=${host_alias+set}
750ac_env_host_alias_value=$host_alias
751ac_cv_env_host_alias_set=${host_alias+set}
752ac_cv_env_host_alias_value=$host_alias
753ac_env_target_alias_set=${target_alias+set}
754ac_env_target_alias_value=$target_alias
755ac_cv_env_target_alias_set=${target_alias+set}
756ac_cv_env_target_alias_value=$target_alias
757ac_env_CC_set=${CC+set}
758ac_env_CC_value=$CC
759ac_cv_env_CC_set=${CC+set}
760ac_cv_env_CC_value=$CC
761ac_env_CFLAGS_set=${CFLAGS+set}
762ac_env_CFLAGS_value=$CFLAGS
763ac_cv_env_CFLAGS_set=${CFLAGS+set}
764ac_cv_env_CFLAGS_value=$CFLAGS
765ac_env_LDFLAGS_set=${LDFLAGS+set}
766ac_env_LDFLAGS_value=$LDFLAGS
767ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
768ac_cv_env_LDFLAGS_value=$LDFLAGS
769ac_env_CPPFLAGS_set=${CPPFLAGS+set}
770ac_env_CPPFLAGS_value=$CPPFLAGS
771ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
772ac_cv_env_CPPFLAGS_value=$CPPFLAGS
773ac_env_CPP_set=${CPP+set}
774ac_env_CPP_value=$CPP
775ac_cv_env_CPP_set=${CPP+set}
776ac_cv_env_CPP_value=$CPP
777ac_env_CXX_set=${CXX+set}
778ac_env_CXX_value=$CXX
779ac_cv_env_CXX_set=${CXX+set}
780ac_cv_env_CXX_value=$CXX
781ac_env_CXXFLAGS_set=${CXXFLAGS+set}
782ac_env_CXXFLAGS_value=$CXXFLAGS
783ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
784ac_cv_env_CXXFLAGS_value=$CXXFLAGS
785ac_env_CXXCPP_set=${CXXCPP+set}
786ac_env_CXXCPP_value=$CXXCPP
787ac_cv_env_CXXCPP_set=${CXXCPP+set}
788ac_cv_env_CXXCPP_value=$CXXCPP
3ecd9f92
MW
789ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
790ac_env_PKG_CONFIG_value=$PKG_CONFIG
791ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
792ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
b3c86150
VS
793ac_env_DIRECTFB_CFLAGS_set=${DIRECTFB_CFLAGS+set}
794ac_env_DIRECTFB_CFLAGS_value=$DIRECTFB_CFLAGS
795ac_cv_env_DIRECTFB_CFLAGS_set=${DIRECTFB_CFLAGS+set}
796ac_cv_env_DIRECTFB_CFLAGS_value=$DIRECTFB_CFLAGS
797ac_env_DIRECTFB_LIBS_set=${DIRECTFB_LIBS+set}
798ac_env_DIRECTFB_LIBS_value=$DIRECTFB_LIBS
799ac_cv_env_DIRECTFB_LIBS_set=${DIRECTFB_LIBS+set}
800ac_cv_env_DIRECTFB_LIBS_value=$DIRECTFB_LIBS
3ecd9f92
MW
801ac_env_PANGOX_CFLAGS_set=${PANGOX_CFLAGS+set}
802ac_env_PANGOX_CFLAGS_value=$PANGOX_CFLAGS
803ac_cv_env_PANGOX_CFLAGS_set=${PANGOX_CFLAGS+set}
804ac_cv_env_PANGOX_CFLAGS_value=$PANGOX_CFLAGS
805ac_env_PANGOX_LIBS_set=${PANGOX_LIBS+set}
806ac_env_PANGOX_LIBS_value=$PANGOX_LIBS
807ac_cv_env_PANGOX_LIBS_set=${PANGOX_LIBS+set}
808ac_cv_env_PANGOX_LIBS_value=$PANGOX_LIBS
809ac_env_PANGOFT2_CFLAGS_set=${PANGOFT2_CFLAGS+set}
810ac_env_PANGOFT2_CFLAGS_value=$PANGOFT2_CFLAGS
811ac_cv_env_PANGOFT2_CFLAGS_set=${PANGOFT2_CFLAGS+set}
812ac_cv_env_PANGOFT2_CFLAGS_value=$PANGOFT2_CFLAGS
813ac_env_PANGOFT2_LIBS_set=${PANGOFT2_LIBS+set}
814ac_env_PANGOFT2_LIBS_value=$PANGOFT2_LIBS
815ac_cv_env_PANGOFT2_LIBS_set=${PANGOFT2_LIBS+set}
816ac_cv_env_PANGOFT2_LIBS_value=$PANGOFT2_LIBS
817ac_env_PANGOXFT_CFLAGS_set=${PANGOXFT_CFLAGS+set}
818ac_env_PANGOXFT_CFLAGS_value=$PANGOXFT_CFLAGS
819ac_cv_env_PANGOXFT_CFLAGS_set=${PANGOXFT_CFLAGS+set}
820ac_cv_env_PANGOXFT_CFLAGS_value=$PANGOXFT_CFLAGS
821ac_env_PANGOXFT_LIBS_set=${PANGOXFT_LIBS+set}
822ac_env_PANGOXFT_LIBS_value=$PANGOXFT_LIBS
823ac_cv_env_PANGOXFT_LIBS_set=${PANGOXFT_LIBS+set}
824ac_cv_env_PANGOXFT_LIBS_value=$PANGOXFT_LIBS
825ac_env_LIBGNOMEPRINTUI_CFLAGS_set=${LIBGNOMEPRINTUI_CFLAGS+set}
826ac_env_LIBGNOMEPRINTUI_CFLAGS_value=$LIBGNOMEPRINTUI_CFLAGS
827ac_cv_env_LIBGNOMEPRINTUI_CFLAGS_set=${LIBGNOMEPRINTUI_CFLAGS+set}
828ac_cv_env_LIBGNOMEPRINTUI_CFLAGS_value=$LIBGNOMEPRINTUI_CFLAGS
829ac_env_LIBGNOMEPRINTUI_LIBS_set=${LIBGNOMEPRINTUI_LIBS+set}
830ac_env_LIBGNOMEPRINTUI_LIBS_value=$LIBGNOMEPRINTUI_LIBS
831ac_cv_env_LIBGNOMEPRINTUI_LIBS_set=${LIBGNOMEPRINTUI_LIBS+set}
832ac_cv_env_LIBGNOMEPRINTUI_LIBS_value=$LIBGNOMEPRINTUI_LIBS
833ac_env_GNOMEVFS_CFLAGS_set=${GNOMEVFS_CFLAGS+set}
834ac_env_GNOMEVFS_CFLAGS_value=$GNOMEVFS_CFLAGS
835ac_cv_env_GNOMEVFS_CFLAGS_set=${GNOMEVFS_CFLAGS+set}
836ac_cv_env_GNOMEVFS_CFLAGS_value=$GNOMEVFS_CFLAGS
837ac_env_GNOMEVFS_LIBS_set=${GNOMEVFS_LIBS+set}
838ac_env_GNOMEVFS_LIBS_value=$GNOMEVFS_LIBS
839ac_cv_env_GNOMEVFS_LIBS_set=${GNOMEVFS_LIBS+set}
840ac_cv_env_GNOMEVFS_LIBS_value=$GNOMEVFS_LIBS
841ac_env_HILDON_CFLAGS_set=${HILDON_CFLAGS+set}
842ac_env_HILDON_CFLAGS_value=$HILDON_CFLAGS
843ac_cv_env_HILDON_CFLAGS_set=${HILDON_CFLAGS+set}
844ac_cv_env_HILDON_CFLAGS_value=$HILDON_CFLAGS
845ac_env_HILDON_LIBS_set=${HILDON_LIBS+set}
846ac_env_HILDON_LIBS_value=$HILDON_LIBS
847ac_cv_env_HILDON_LIBS_set=${HILDON_LIBS+set}
848ac_cv_env_HILDON_LIBS_value=$HILDON_LIBS
849ac_env_GST_CFLAGS_set=${GST_CFLAGS+set}
850ac_env_GST_CFLAGS_value=$GST_CFLAGS
851ac_cv_env_GST_CFLAGS_set=${GST_CFLAGS+set}
852ac_cv_env_GST_CFLAGS_value=$GST_CFLAGS
853ac_env_GST_LIBS_set=${GST_LIBS+set}
854ac_env_GST_LIBS_value=$GST_LIBS
855ac_cv_env_GST_LIBS_set=${GST_LIBS+set}
856ac_cv_env_GST_LIBS_value=$GST_LIBS
a848cd7e
SC
857
858#
859# Report the --help message.
860#
861if test "$ac_init_help" = "long"; then
862 # Omit some internal or obsolete options to make the list less imposing.
863 # This message is too long to be a string in the A/UX 3.1 sh.
864 cat <<_ACEOF
f1e3914f 865\`configure' configures wxWidgets 2.7.1 to adapt to many kinds of systems.
a848cd7e
SC
866
867Usage: $0 [OPTION]... [VAR=VALUE]...
868
869To assign environment variables (e.g., CC, CFLAGS...), specify them as
870VAR=VALUE. See below for descriptions of some of the useful variables.
871
872Defaults for the options are specified in brackets.
873
874Configuration:
875 -h, --help display this help and exit
876 --help=short display options specific to this package
877 --help=recursive display the short help of all the included packages
878 -V, --version display version information and exit
879 -q, --quiet, --silent do not print \`checking...' messages
880 --cache-file=FILE cache test results in FILE [disabled]
881 -C, --config-cache alias for \`--cache-file=config.cache'
882 -n, --no-create do not create output files
883 --srcdir=DIR find the sources in DIR [configure dir or \`..']
884
885_ACEOF
886
887 cat <<_ACEOF
888Installation directories:
889 --prefix=PREFIX install architecture-independent files in PREFIX
ac1cb8d3 890 [$ac_default_prefix]
a848cd7e 891 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
ac1cb8d3 892 [PREFIX]
a848cd7e
SC
893
894By default, \`make install' will install all the files in
895\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
896an installation prefix other than \`$ac_default_prefix' using \`--prefix',
897for instance \`--prefix=\$HOME'.
898
899For better control, use the options below.
900
901Fine tuning of the installation directories:
902 --bindir=DIR user executables [EPREFIX/bin]
903 --sbindir=DIR system admin executables [EPREFIX/sbin]
904 --libexecdir=DIR program executables [EPREFIX/libexec]
905 --datadir=DIR read-only architecture-independent data [PREFIX/share]
906 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
907 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
908 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
909 --libdir=DIR object code libraries [EPREFIX/lib]
910 --includedir=DIR C header files [PREFIX/include]
911 --oldincludedir=DIR C header files for non-gcc [/usr/include]
912 --infodir=DIR info documentation [PREFIX/info]
913 --mandir=DIR man documentation [PREFIX/man]
914_ACEOF
915
916 cat <<\_ACEOF
917
918X features:
919 --x-includes=DIR X include files are in DIR
920 --x-libraries=DIR X library files are in DIR
921
922System types:
923 --build=BUILD configure for building on BUILD [guessed]
924 --host=HOST cross-compile to build programs to run on HOST [BUILD]
925 --target=TARGET configure for building compilers for TARGET [HOST]
926_ACEOF
927fi
928
929if test -n "$ac_init_help"; then
930 case $ac_init_help in
f1e3914f 931 short | recursive ) echo "Configuration of wxWidgets 2.7.1:";;
a848cd7e
SC
932 esac
933 cat <<\_ACEOF
934
935Optional Features:
936 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
937 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
938 --enable-gui use GUI classes
77ffb593
JS
939 --enable-monolithic build wxWidgets as single library
940 --enable-plugins build parts of wxWidgets as loadable components
941 --enable-universal use wxWidgets GUI controls instead of native ones
a848cd7e 942 --enable-nanox use NanoX
f34ca037 943 --disable-gtk2 use GTK+ 1.2 instead of 2.0
a848cd7e
SC
944 --enable-gpe use GNOME PDA Environment features if possible
945 --enable-shared create shared library code
946 --enable-optimise create optimised code
947 --enable-debug same as debug_flag and debug_info
948 --enable-stl use STL for containers
949 --enable-omf use OMF object format
950 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)
951 --enable-debug_info create code with debugging information
952 --enable-debug_gdb create code with extra GDB debugging information
953 --enable-debug_cntxt use wxDebugContext
954 --enable-mem_tracing create code with memory tracing
955 --enable-profile create code with profiling information
956 --enable-no_rtti create code without RTTI information
957 --enable-no_exceptions create code without C++ exceptions handling
958 --enable-permissive compile code disregarding strict ANSI
959 --enable-no_deps create code without dependency information
95768535 960 --enable-universal_binary[=SDK] create Mac PowerPC and Intel Universal binary (not yet working)
dee1a63f
MB
961 --enable-compat24 enable wxWidgets 2.4 compatibility
962 --disable-compat26 disable wxWidgets 2.6 compatibility
ffa0583f 963 --disable-rpath disable use of rpath for uninstalled builds
a848cd7e
SC
964 --enable-intl use internationalization system
965 --enable-config use wxConfig (and derived) classes
966 --enable-protocols use wxProtocol and derived classes
967 --enable-ftp use wxFTP (requires wxProtocol
968 --enable-http use wxHTTP (requires wxProtocol
969 --enable-fileproto use wxFileProto class (requires wxProtocol
970 --enable-sockets use socket/network classes
971 --enable-ole use OLE classes (Win32 only)
972 --enable-dataobj use data object classes
973 --enable-ipc use interprocess communication (wxSocket etc.)
974 --enable-apple_ieee use the Apple IEEE codec
81f90336 975 --enable-arcstream use wxArchive streams
eaff0f0d 976 --enable-backtrace use wxStackWalker class for getting backtraces
36b6448c 977 --enable-catch_segvs catch signals in wxApp::OnFatalException (Unix only)
a848cd7e
SC
978 --enable-cmdline use wxCmdLineParser class
979 --enable-datetime use wxDateTime class
36b6448c 980 --enable-debugreport use wxDebugReport class
a848cd7e
SC
981 --enable-dialupman use dialup network classes
982 --enable-dynlib use wxLibrary class for DLL loading
983 --enable-dynamicloader use (new) wxDynamicLibrary class
984 --enable-exceptions build exception-safe library
985 --enable-ffile use wxFFile class
986 --enable-file use wxFile class
987 --enable-filesystem use virtual file systems classes
988 --enable-fontmap use font encodings conversion classes
989 --enable-fs_inet use virtual HTTP/FTP filesystems
990 --enable-fs_zip use virtual ZIP filesystems
991 --enable-geometry use geometry class
992 --enable-log use logging system
993 --enable-longlong use wxLongLong class
994 --enable-mimetype use wxMimeTypesManager
995 --enable-mslu use MS Layer for Unicode on Windows 9x (Win32 only)
996 --enable-snglinst use wxSingleInstanceChecker class
a848cd7e 997 --enable-std_iostreams use standard C++ stream classes
59746b65 998 --enable-std_string use standard C++ string classes
07158944 999 --enable-stdpaths use wxStandardPaths class
a848cd7e 1000 --enable-stopwatch use wxStopWatch class
07158944 1001 --enable-streams use wxStream etc classes
a848cd7e
SC
1002 --enable-sysoptions use wxSystemOptions
1003 --enable-textbuf use wxTextBuffer class
1004 --enable-textfile use wxTextFile class
1005 --enable-timer use wxTimer class
1006 --enable-unicode compile wxString with Unicode support
1007 --enable-sound use wxSound class
3b57de8b 1008 --enable-mediactrl use wxMediaCtrl class
15291213 1009 --enable-gstreamer8 force GStreamer 0.8 instead of 0.10 with the wxMediaCtrl class on unix
8b6682b9 1010 --enable-printfposparam use wxVsnprintf() which supports positional parameters
81f90336 1011 --enable-zipstream use wxZip streams
a848cd7e 1012 --enable-url use wxURL class
ca5c6ac3 1013 --enable-variant use wxVariant class
a848cd7e
SC
1014 --enable-protocol use wxProtocol class
1015 --enable-protocol-http HTTP support in wxProtocol
1016 --enable-protocol-ftp FTP support in wxProtocol
1017 --enable-protocol-file FILE support in wxProtocol
1018 --enable-threads use threads
1019 --enable-docview use document view architecture
1020 --enable-help use help subsystem
1021 --enable-mshtmlhelp use MS HTML Help (win32)
1022 --enable-html use wxHTML sub-library
1023 --enable-htmlhelp use wxHTML-based help
9a8f0513 1024 --enable-xrc use XRC resources sub-library
3f60522a 1025 --enable-aui use AUI docking library
a848cd7e
SC
1026 --enable-constraints use layout-constraints system
1027 --enable-printarch use printing architecture
1028 --enable-mdi use multiple document interface architecture
8a7b1113 1029 --enable-mdidoc use docview architecture with MDI
a848cd7e
SC
1030 --enable-loggui use standard GUI logger
1031 --enable-logwin use wxLogWindow
1032 --enable-logdialog use wxLogDialog
646b6ec1 1033 --enable-webkit use wxWebKitCtrl (Mac)
91dea314 1034 --enable-richtext use wxRichTextCtrl
f43426c1 1035 --enable-graphics_ctx use graphics context 2D drawing API
a848cd7e
SC
1036 --enable-postscript use wxPostscriptDC device context (default for gtk+)
1037 --enable-prologio not available; see contrib
1038 --enable-resources not available; see contrib
1039 --enable-clipboard use wxClipboard class
1040 --enable-dnd use Drag'n'Drop classes
1041 --enable-metafile use win32 metafiles
1042 --enable-controls use all usual controls
1043 --enable-accel use accelerators
3ea50042 1044 --enable-animatectrl use wxAnimationCtrl class
a848cd7e
SC
1045 --enable-button use wxButton class
1046 --enable-bmpbutton use wxBitmapButton class
95a46303 1047 --enable-bmpcombobox use wxBitmapComboBox class
a848cd7e
SC
1048 --enable-calendar use wxCalendarCtrl class
1049 --enable-caret use wxCaret class
1050 --enable-checkbox use wxCheckBox class
1051 --enable-checklst use wxCheckListBox (listbox with checkboxes) class
1052 --enable-choice use wxChoice class
92bbdbcd 1053 --enable-choicebook use wxChoicebook class
e9263684 1054 --enable-colourpicker use wxColourPickerCtrl class
a848cd7e 1055 --enable-combobox use wxComboBox class
a57d600f 1056 --enable-comboctrl use wxComboCtrl class
da98e9be 1057 --enable-datepick use wxDatePickerCtrl class
e9263684 1058 --enable-dirpicker use wxDirPickerCtrl class
a848cd7e 1059 --enable-display use wxDisplay class
e9263684
VZ
1060 --enable-filepicker use wxFilePickerCtrl class
1061 --enable-fontpicker use wxFontPickerCtrl class
a848cd7e
SC
1062 --enable-gauge use wxGauge class
1063 --enable-grid use wxGrid class
20e34ecc 1064 --enable-dataviewctrl, use wxDataViewCtrl class
6954625c 1065 --enable-hyperlink use wxHyperlinkCtrl class
a848cd7e
SC
1066 --enable-imaglist use wxImageList class
1067 --enable-listbook use wxListbook class
1068 --enable-listbox use wxListBox class
1069 --enable-listctrl use wxListCtrl class
1070 --enable-notebook use wxNotebook class
a57d600f 1071 --enable-odcombobox use wxOwnerDrawnComboBox class
a848cd7e
SC
1072 --enable-radiobox use wxRadioBox class
1073 --enable-radiobtn use wxRadioButton class
1074 --enable-sash use wxSashWindow class
1075 --enable-scrollbar use wxScrollBar class and scrollable windows
1076 --enable-slider use wxSlider class
1077 --enable-spinbtn use wxSpinButton class
1078 --enable-spinctrl use wxSpinCtrl class
1079 --enable-splitter use wxSplitterWindow class
1080 --enable-statbmp use wxStaticBitmap class
1081 --enable-statbox use wxStaticBox class
1082 --enable-statline use wxStaticLine class
1083 --enable-stattext use wxStaticText class
1084 --enable-statusbar use wxStatusBar class
1085 --enable-tabdialog use wxTabControl class
1086 --enable-textctrl use wxTextCtrl class
1087 --enable-togglebtn use wxToggleButton class
1088 --enable-toolbar use wxToolBar class
1089 --enable-tbarnative use native wxToolBar class
0093c2fc 1090 --enable-treebook use wxTreebook class
5ec3bc43 1091 --enable-toolbook use wxToolbook class
a848cd7e
SC
1092 --enable-treectrl use wxTreeCtrl class
1093 --enable-tipwindow use wxTipWindow class
1094 --enable-popupwin use wxPopUpWindow class
1095 --enable-commondlg use all common dialogs
319c5ed4 1096 --enable-aboutdlg use wxAboutBox
a848cd7e
SC
1097 --enable-choicedlg use wxChoiceDialog
1098 --enable-coldlg use wxColourDialog
1099 --enable-filedlg use wxFileDialog
1100 --enable-finddlg use wxFindReplaceDialog
1101 --enable-fontdlg use wxFontDialog
1102 --enable-dirdlg use wxDirDialog
1103 --enable-msgdlg use wxMessageDialog
1104 --enable-numberdlg use wxNumberEntryDialog
1105 --enable-splash use wxSplashScreen
1106 --enable-textdlg use wxTextDialog
1107 --enable-tipdlg use startup tips
1108 --enable-progressdlg use wxProgressDialog
1109 --enable-wizarddlg use wxWizard
1110 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes
1111 --enable-miniframe use wxMiniFrame class
1112 --enable-tooltips use wxToolTip class
1113 --enable-splines use spline drawing code
fbe2ca43 1114 --enable-mousewheel use mousewheel
a848cd7e
SC
1115 --enable-validators use wxValidator and derived classes
1116 --enable-busyinfo use wxBusyInfo
4cb1d3da 1117 --enable-joystick use wxJoystick
38b4a946 1118 --enable-metafiles use wxMetaFile (Win32 only)
a848cd7e
SC
1119 --enable-dragimage use wxDragImage
1120 --enable-accessibility enable accessibility support
38b4a946 1121 --enable-dccache cache temporary wxDC objects (Win32 only)
a848cd7e
SC
1122 --enable-palette use wxPalette class
1123 --enable-image use wxImage class
1124 --enable-gif use gif images (GIF file format)
1125 --enable-pcx use pcx images (PCX file format)
1126 --enable-iff use iff images (IFF file format)
1127 --enable-pnm use pnm images (PNM file format)
1128 --enable-xpm use xpm images (XPM file format)
1129 --enable-icocur use Windows ICO and CUR formats
77ffb593 1130 --enable-official_build official build of wxWidgets (win32 DLL only)
a848cd7e
SC
1131 --enable-vendor=VENDOR vendor name (win32 DLL only)
1132 --disable-largefile omit support for large files
1133 --disable-gtktest do not try to compile and run a test GTK+ program
1134 --disable-gtktest Do not try to compile and run a test GTK program
1135 --disable-sdltest Do not try to compile and run a test SDL program
1136 --enable-omf use OMF object format (OS/2)
f10e38c4
VZ
1137 --disable-dependency-tracking
1138 don't use dependency tracking even if the compiler
1139 can
ebee3cd0
VS
1140 --disable-precomp-headers
1141 don't use precompiled headers even if compiler can
a848cd7e
SC
1142
1143Optional Packages:
1144 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1145 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1c14217d 1146 --without-subdirs don't generate makefiles for samples/demos/...
f34ca037 1147 --with-gtk[=VERSION] use GTK+, VERSION can be 2 (default), 1 or "any"
a848cd7e
SC
1148 --with-motif use Motif/Lesstif
1149 --with-mac use Mac OS X
1150 --with-cocoa use Cocoa
1151 --with-wine use Wine
1152 --with-msw use MS-Windows
1153 --with-pm use OS/2 Presentation Manager
1154 --with-mgl use SciTech MGL
b3c86150 1155 --with-directfb use DirectFB
a848cd7e
SC
1156 --with-microwin use MicroWindows
1157 --with-x11 use X11
1158 --with-libpng use libpng (PNG image format)
1159 --with-libjpeg use libjpeg (JPEG file format)
1160 --with-libtiff use libtiff (TIFF file format)
1161 --with-libxpm use libxpm (XPM file format)
1162 --with-libmspack use libmspack (CHM help files loading)
1163 --with-sdl use SDL for audio on Unix
2b850ae1
RR
1164 --with-gnomeprint use GNOME print for printing under GNOME
1165 --with-gnomevfs use GNOME VFS for associating MIME types
3565d135 1166 --with-hildon use Hildon framework for Nokia 770
a848cd7e 1167 --with-opengl use OpenGL (or Mesa)
4353a8df 1168 --with-themes=all|list use only the specified comma-separated list of wxUniversal themes
a848cd7e
SC
1169 --with-dmalloc use dmalloc library (http://dmalloc.com/)
1170 --with-regex enable support for wxRegEx class
1171 --with-zlib use zlib for LZW compression
1172 --with-odbc use the IODBC and wxODBC classes
1173 --with-expat enable XML support using expat parser
ceec2216 1174 --with-flavour=NAME specify a name to identify this build
a848cd7e
SC
1175 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1176 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1177 --with-x use the X Window System
1178 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1179 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1180 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1181 --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
1182 --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
1183
1184Some influential environment variables:
dcc1b6ad
VS
1185 CC C compiler command
1186 CFLAGS C compiler flags
1187 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1188 nonstandard directory <lib dir>
1189 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1190 headers in a nonstandard directory <include dir>
1191 CPP C preprocessor
1192 CXX C++ compiler command
1193 CXXFLAGS C++ compiler flags
1194 CXXCPP C++ preprocessor
3ecd9f92 1195 PKG_CONFIG path to pkg-config utility
b3c86150
VS
1196 DIRECTFB_CFLAGS
1197 C compiler flags for DIRECTFB, overriding pkg-config
1198 DIRECTFB_LIBS
1199 linker flags for DIRECTFB, overriding pkg-config
3ecd9f92
MW
1200 PANGOX_CFLAGS
1201 C compiler flags for PANGOX, overriding pkg-config
1202 PANGOX_LIBS linker flags for PANGOX, overriding pkg-config
1203 PANGOFT2_CFLAGS
1204 C compiler flags for PANGOFT2, overriding pkg-config
1205 PANGOFT2_LIBS
1206 linker flags for PANGOFT2, overriding pkg-config
1207 PANGOXFT_CFLAGS
1208 C compiler flags for PANGOXFT, overriding pkg-config
1209 PANGOXFT_LIBS
1210 linker flags for PANGOXFT, overriding pkg-config
1211 LIBGNOMEPRINTUI_CFLAGS
1212 C compiler flags for LIBGNOMEPRINTUI, overriding pkg-config
1213 LIBGNOMEPRINTUI_LIBS
1214 linker flags for LIBGNOMEPRINTUI, overriding pkg-config
1215 GNOMEVFS_CFLAGS
1216 C compiler flags for GNOMEVFS, overriding pkg-config
1217 GNOMEVFS_LIBS
1218 linker flags for GNOMEVFS, overriding pkg-config
1219 HILDON_CFLAGS
1220 C compiler flags for HILDON, overriding pkg-config
1221 HILDON_LIBS linker flags for HILDON, overriding pkg-config
1222 GST_CFLAGS C compiler flags for GST, overriding pkg-config
1223 GST_LIBS linker flags for GST, overriding pkg-config
a848cd7e
SC
1224
1225Use these variables to override the choices made by `configure' or to help
1226it to find libraries and programs with nonstandard names/locations.
1227
77ffb593 1228Report bugs to <wx-dev@lists.wxwidgets.org>.
a848cd7e
SC
1229_ACEOF
1230fi
1231
1232if test "$ac_init_help" = "recursive"; then
1233 # If there are subdirs, report their specific --help.
1234 ac_popdir=`pwd`
1235 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1236 test -d $ac_dir || continue
1237 ac_builddir=.
1238
1239if test "$ac_dir" != .; then
1240 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1241 # A "../" for each directory in $ac_dir_suffix.
1242 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1243else
1244 ac_dir_suffix= ac_top_builddir=
1245fi
1246
1247case $srcdir in
1248 .) # No --srcdir option. We are building in place.
1249 ac_srcdir=.
1250 if test -z "$ac_top_builddir"; then
1251 ac_top_srcdir=.
1252 else
1253 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1254 fi ;;
1255 [\\/]* | ?:[\\/]* ) # Absolute path.
1256 ac_srcdir=$srcdir$ac_dir_suffix;
1257 ac_top_srcdir=$srcdir ;;
1258 *) # Relative path.
1259 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1260 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1261esac
ac1cb8d3
VS
1262
1263# Do not use `cd foo && pwd` to compute absolute paths, because
1264# the directories may not exist.
1265case `pwd` in
1266.) ac_abs_builddir="$ac_dir";;
1267*)
1268 case "$ac_dir" in
1269 .) ac_abs_builddir=`pwd`;;
1270 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1271 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1272 esac;;
1273esac
1274case $ac_abs_builddir in
1275.) ac_abs_top_builddir=${ac_top_builddir}.;;
1276*)
1277 case ${ac_top_builddir}. in
1278 .) ac_abs_top_builddir=$ac_abs_builddir;;
1279 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1280 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1281 esac;;
1282esac
1283case $ac_abs_builddir in
1284.) ac_abs_srcdir=$ac_srcdir;;
1285*)
1286 case $ac_srcdir in
1287 .) ac_abs_srcdir=$ac_abs_builddir;;
1288 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1289 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1290 esac;;
1291esac
1292case $ac_abs_builddir in
1293.) ac_abs_top_srcdir=$ac_top_srcdir;;
1294*)
1295 case $ac_top_srcdir in
1296 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1297 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1298 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1299 esac;;
1300esac
a848cd7e
SC
1301
1302 cd $ac_dir
1303 # Check for guested configure; otherwise get Cygnus style configure.
1304 if test -f $ac_srcdir/configure.gnu; then
1305 echo
1306 $SHELL $ac_srcdir/configure.gnu --help=recursive
1307 elif test -f $ac_srcdir/configure; then
1308 echo
1309 $SHELL $ac_srcdir/configure --help=recursive
1310 elif test -f $ac_srcdir/configure.ac ||
ac1cb8d3 1311 test -f $ac_srcdir/configure.in; then
a848cd7e
SC
1312 echo
1313 $ac_configure --help
1314 else
1315 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1316 fi
3ea50042 1317 cd "$ac_popdir"
a848cd7e
SC
1318 done
1319fi
1320
1321test -n "$ac_init_help" && exit 0
1322if $ac_init_version; then
1323 cat <<\_ACEOF
f1e3914f 1324wxWidgets configure 2.7.1
ac1cb8d3 1325generated by GNU Autoconf 2.59
a848cd7e 1326
ac1cb8d3 1327Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
1328This configure script is free software; the Free Software Foundation
1329gives unlimited permission to copy, distribute and modify it.
1330_ACEOF
1331 exit 0
1332fi
1333exec 5>config.log
1334cat >&5 <<_ACEOF
1335This file contains any messages produced by compilers while
1336running configure, to aid debugging if configure makes a mistake.
1337
f1e3914f 1338It was created by wxWidgets $as_me 2.7.1, which was
ac1cb8d3 1339generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
1340
1341 $ $0 $@
1342
1343_ACEOF
1344{
1345cat <<_ASUNAME
1346## --------- ##
1347## Platform. ##
1348## --------- ##
1349
1350hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1351uname -m = `(uname -m) 2>/dev/null || echo unknown`
1352uname -r = `(uname -r) 2>/dev/null || echo unknown`
1353uname -s = `(uname -s) 2>/dev/null || echo unknown`
1354uname -v = `(uname -v) 2>/dev/null || echo unknown`
1355
1356/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1357/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1358
1359/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1360/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1361/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1362hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1363/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1364/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1365/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1366
1367_ASUNAME
1368
1369as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1370for as_dir in $PATH
1371do
1372 IFS=$as_save_IFS
1373 test -z "$as_dir" && as_dir=.
1374 echo "PATH: $as_dir"
1375done
1376
1377} >&5
1378
1379cat >&5 <<_ACEOF
1380
1381
1382## ----------- ##
1383## Core tests. ##
1384## ----------- ##
1385
1386_ACEOF
1387
1388
1389# Keep a trace of the command line.
1390# Strip out --no-create and --no-recursion so they do not pile up.
1391# Strip out --silent because we don't want to record it for future runs.
1392# Also quote any args containing shell meta-characters.
1393# Make two passes to allow for proper duplicate-argument suppression.
1394ac_configure_args=
1395ac_configure_args0=
1396ac_configure_args1=
1397ac_sep=
1398ac_must_keep_next=false
1399for ac_pass in 1 2
1400do
1401 for ac_arg
1402 do
1403 case $ac_arg in
1404 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1405 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1406 | -silent | --silent | --silen | --sile | --sil)
1407 continue ;;
1408 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1409 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1410 esac
1411 case $ac_pass in
1412 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1413 2)
1414 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1415 if test $ac_must_keep_next = true; then
ac1cb8d3 1416 ac_must_keep_next=false # Got value, back to normal.
a848cd7e 1417 else
ac1cb8d3
VS
1418 case $ac_arg in
1419 *=* | --config-cache | -C | -disable-* | --disable-* \
1420 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1421 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1422 | -with-* | --with-* | -without-* | --without-* | --x)
1423 case "$ac_configure_args0 " in
1424 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1425 esac
1426 ;;
1427 -* ) ac_must_keep_next=true ;;
1428 esac
a848cd7e
SC
1429 fi
1430 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1431 # Get rid of the leading space.
1432 ac_sep=" "
1433 ;;
1434 esac
1435 done
1436done
1437$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1438$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1439
1440# When interrupted or exit'd, cleanup temporary files, and complete
1441# config.log. We remove comments because anyway the quotes in there
1442# would cause problems or look ugly.
1443# WARNING: Be sure not to use single quotes in there, as some shells,
1444# such as our DU 5.0 friend, will then `close' the trap.
1445trap 'exit_status=$?
1446 # Save into config.log some information that might help in debugging.
1447 {
1448 echo
1449
1450 cat <<\_ASBOX
1451## ---------------- ##
1452## Cache variables. ##
1453## ---------------- ##
1454_ASBOX
1455 echo
1456 # The following way of writing the cache mishandles newlines in values,
1457{
1458 (set) 2>&1 |
1459 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1460 *ac_space=\ *)
1461 sed -n \
ac1cb8d3
VS
1462 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1463 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
a848cd7e
SC
1464 ;;
1465 *)
1466 sed -n \
ac1cb8d3 1467 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
1468 ;;
1469 esac;
1470}
1471 echo
1472
1473 cat <<\_ASBOX
1474## ----------------- ##
1475## Output variables. ##
1476## ----------------- ##
1477_ASBOX
1478 echo
1479 for ac_var in $ac_subst_vars
1480 do
1481 eval ac_val=$`echo $ac_var`
1482 echo "$ac_var='"'"'$ac_val'"'"'"
1483 done | sort
1484 echo
1485
1486 if test -n "$ac_subst_files"; then
1487 cat <<\_ASBOX
1488## ------------- ##
1489## Output files. ##
1490## ------------- ##
1491_ASBOX
1492 echo
1493 for ac_var in $ac_subst_files
1494 do
1495 eval ac_val=$`echo $ac_var`
ac1cb8d3 1496 echo "$ac_var='"'"'$ac_val'"'"'"
a848cd7e
SC
1497 done | sort
1498 echo
1499 fi
1500
1501 if test -s confdefs.h; then
1502 cat <<\_ASBOX
1503## ----------- ##
1504## confdefs.h. ##
1505## ----------- ##
1506_ASBOX
1507 echo
1508 sed "/^$/d" confdefs.h | sort
1509 echo
1510 fi
1511 test "$ac_signal" != 0 &&
1512 echo "$as_me: caught signal $ac_signal"
1513 echo "$as_me: exit $exit_status"
1514 } >&5
ac1cb8d3 1515 rm -f core *.core &&
a848cd7e
SC
1516 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1517 exit $exit_status
1518 ' 0
1519for ac_signal in 1 2 13 15; do
1520 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1521done
1522ac_signal=0
1523
1524# confdefs.h avoids OS command line length limits that DEFS can exceed.
1525rm -rf conftest* confdefs.h
1526# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1527echo >confdefs.h
1528
1529# Predefined preprocessor variables.
1530
1531cat >>confdefs.h <<_ACEOF
1532#define PACKAGE_NAME "$PACKAGE_NAME"
1533_ACEOF
1534
1535
1536cat >>confdefs.h <<_ACEOF
1537#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1538_ACEOF
1539
1540
1541cat >>confdefs.h <<_ACEOF
1542#define PACKAGE_VERSION "$PACKAGE_VERSION"
1543_ACEOF
1544
1545
1546cat >>confdefs.h <<_ACEOF
1547#define PACKAGE_STRING "$PACKAGE_STRING"
1548_ACEOF
1549
1550
1551cat >>confdefs.h <<_ACEOF
1552#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1553_ACEOF
1554
1555
1556# Let the site file select an alternate cache file if it wants to.
1557# Prefer explicitly selected file to automatically selected ones.
1558if test -z "$CONFIG_SITE"; then
1559 if test "x$prefix" != xNONE; then
1560 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1561 else
1562 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1563 fi
1564fi
1565for ac_site_file in $CONFIG_SITE; do
1566 if test -r "$ac_site_file"; then
1567 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1568echo "$as_me: loading site script $ac_site_file" >&6;}
1569 sed 's/^/| /' "$ac_site_file" >&5
1570 . "$ac_site_file"
1571 fi
1572done
1573
1574if test -r "$cache_file"; then
1575 # Some versions of bash will fail to source /dev/null (special
1576 # files actually), so we avoid doing that.
1577 if test -f "$cache_file"; then
1578 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1579echo "$as_me: loading cache $cache_file" >&6;}
1580 case $cache_file in
1581 [\\/]* | ?:[\\/]* ) . $cache_file;;
1582 *) . ./$cache_file;;
1583 esac
1584 fi
1585else
1586 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1587echo "$as_me: creating cache $cache_file" >&6;}
1588 >$cache_file
1589fi
1590
1591# Check that the precious variables saved in the cache have kept the same
1592# value.
1593ac_cache_corrupted=false
1594for ac_var in `(set) 2>&1 |
ac1cb8d3 1595 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
a848cd7e
SC
1596 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1597 eval ac_new_set=\$ac_env_${ac_var}_set
1598 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1599 eval ac_new_val="\$ac_env_${ac_var}_value"
1600 case $ac_old_set,$ac_new_set in
1601 set,)
1602 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1603echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1604 ac_cache_corrupted=: ;;
1605 ,set)
1606 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1607echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1608 ac_cache_corrupted=: ;;
1609 ,);;
1610 *)
1611 if test "x$ac_old_val" != "x$ac_new_val"; then
ac1cb8d3 1612 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
a848cd7e 1613echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
ac1cb8d3 1614 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
a848cd7e 1615echo "$as_me: former value: $ac_old_val" >&2;}
ac1cb8d3 1616 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
a848cd7e 1617echo "$as_me: current value: $ac_new_val" >&2;}
ac1cb8d3 1618 ac_cache_corrupted=:
a848cd7e
SC
1619 fi;;
1620 esac
1621 # Pass precious variables to config.status.
1622 if test "$ac_new_set" = set; then
1623 case $ac_new_val in
1624 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1625 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1626 *) ac_arg=$ac_var=$ac_new_val ;;
1627 esac
1628 case " $ac_configure_args " in
1629 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1630 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1631 esac
1632 fi
1633done
1634if $ac_cache_corrupted; then
1635 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1636echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1637 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1638echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1639 { (exit 1); exit 1; }; }
1640fi
1641
1642ac_ext=c
1643ac_cpp='$CPP $CPPFLAGS'
1644ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1645ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1646ac_compiler_gnu=$ac_cv_c_compiler_gnu
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677ac_aux_dir=
1678for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1679 if test -f $ac_dir/install-sh; then
1680 ac_aux_dir=$ac_dir
1681 ac_install_sh="$ac_aux_dir/install-sh -c"
1682 break
1683 elif test -f $ac_dir/install.sh; then
1684 ac_aux_dir=$ac_dir
1685 ac_install_sh="$ac_aux_dir/install.sh -c"
1686 break
1687 elif test -f $ac_dir/shtool; then
1688 ac_aux_dir=$ac_dir
1689 ac_install_sh="$ac_aux_dir/shtool install -c"
1690 break
1691 fi
1692done
1693if test -z "$ac_aux_dir"; then
1694 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1695echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1696 { (exit 1); exit 1; }; }
1697fi
1698ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1699ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1700ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1701
1702# Make sure we can run config.sub.
1703$ac_config_sub sun4 >/dev/null 2>&1 ||
1704 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1705echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1706 { (exit 1); exit 1; }; }
1707
1708echo "$as_me:$LINENO: checking build system type" >&5
1709echo $ECHO_N "checking build system type... $ECHO_C" >&6
1710if test "${ac_cv_build+set}" = set; then
1711 echo $ECHO_N "(cached) $ECHO_C" >&6
1712else
1713 ac_cv_build_alias=$build_alias
1714test -z "$ac_cv_build_alias" &&
1715 ac_cv_build_alias=`$ac_config_guess`
1716test -z "$ac_cv_build_alias" &&
1717 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1718echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1719 { (exit 1); exit 1; }; }
1720ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1721 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1722echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1723 { (exit 1); exit 1; }; }
1724
1725fi
1726echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1727echo "${ECHO_T}$ac_cv_build" >&6
1728build=$ac_cv_build
1729build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1730build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1731build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1732
1733
1734echo "$as_me:$LINENO: checking host system type" >&5
1735echo $ECHO_N "checking host system type... $ECHO_C" >&6
1736if test "${ac_cv_host+set}" = set; then
1737 echo $ECHO_N "(cached) $ECHO_C" >&6
1738else
1739 ac_cv_host_alias=$host_alias
1740test -z "$ac_cv_host_alias" &&
1741 ac_cv_host_alias=$ac_cv_build_alias
1742ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1743 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1744echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1745 { (exit 1); exit 1; }; }
1746
1747fi
1748echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1749echo "${ECHO_T}$ac_cv_host" >&6
1750host=$ac_cv_host
1751host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1752host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1753host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1754
1755
1756echo "$as_me:$LINENO: checking target system type" >&5
1757echo $ECHO_N "checking target system type... $ECHO_C" >&6
1758if test "${ac_cv_target+set}" = set; then
1759 echo $ECHO_N "(cached) $ECHO_C" >&6
1760else
1761 ac_cv_target_alias=$target_alias
1762test "x$ac_cv_target_alias" = "x" &&
1763 ac_cv_target_alias=$ac_cv_host_alias
1764ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1765 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1766echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1767 { (exit 1); exit 1; }; }
1768
1769fi
1770echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1771echo "${ECHO_T}$ac_cv_target" >&6
1772target=$ac_cv_target
1773target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1774target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1775target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1776
1777
1778# The aliases save the names the user supplied, while $host etc.
1779# will get canonicalized.
1780test -n "$target_alias" &&
1781 test "$program_prefix$program_suffix$program_transform_name" = \
1782 NONENONEs,x,x, &&
1783 program_prefix=${target_alias}-
1784
1785
1786
ceec2216 1787wx_major_version_number=2
dd8df4fc 1788wx_minor_version_number=7
f1e3914f
RR
1789wx_release_number=1
1790wx_subrelease_number=0
a848cd7e 1791
ceec2216
RL
1792WX_RELEASE=$wx_major_version_number.$wx_minor_version_number
1793WX_VERSION=$WX_RELEASE.$wx_release_number
1794WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number
a848cd7e 1795
ceec2216 1796WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number
a848cd7e 1797
a848cd7e
SC
1798
1799
1800
1801USE_UNIX=1
1802USE_OS2=0
1803USE_WIN32=0
1804USE_DOS=0
1805USE_BEOS=0
1806USE_MAC=0
1807
1808USE_AIX=
1809USE_BSD= USE_DARWIN= USE_FREEBSD=
1810USE_GNU= USE_HPUX=
1811USE_LINUX=
1812USE_NETBSD=
1813USE_OPENBSD=
1814USE_OSF= USE_SGI=
1815USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS=
1816USE_ULTRIX=
1817USE_UNIXWARE=
1818
1819USE_ALPHA=
1820
1821NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1822
b3c86150 1823ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11 DFB"
a848cd7e
SC
1824
1825DEFAULT_wxUSE_COCOA=0
1826DEFAULT_wxUSE_GTK=0
1827DEFAULT_wxUSE_MAC=0
1828DEFAULT_wxUSE_MGL=0
1829DEFAULT_wxUSE_MICROWIN=0
1830DEFAULT_wxUSE_MOTIF=0
1831DEFAULT_wxUSE_MSW=0
1832DEFAULT_wxUSE_PM=0
1833DEFAULT_wxUSE_X11=0
b3c86150 1834DEFAULT_wxUSE_DFB=0
a848cd7e
SC
1835
1836DEFAULT_DEFAULT_wxUSE_COCOA=0
1837DEFAULT_DEFAULT_wxUSE_GTK=0
1838DEFAULT_DEFAULT_wxUSE_MAC=0
1839DEFAULT_DEFAULT_wxUSE_MGL=0
1840DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1841DEFAULT_DEFAULT_wxUSE_MOTIF=0
1842DEFAULT_DEFAULT_wxUSE_MSW=0
1843DEFAULT_DEFAULT_wxUSE_PM=0
1844DEFAULT_DEFAULT_wxUSE_X11=0
b3c86150 1845DEFAULT_DEFAULT_wxUSE_DFB=0
a848cd7e
SC
1846
1847PROGRAM_EXT=
1848SO_SUFFIX=so
1849SAMPLES_RPATH_FLAG=
1850SAMPLES_RPATH_POSTLINK=
1851
a03b8b04
RD
1852DEFAULT_STD_FLAG=yes
1853
a848cd7e
SC
1854case "${host}" in
1855 *-hp-hpux* )
1856 USE_HPUX=1
1857 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1858 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1859 SO_SUFFIX=sl
1860 cat >>confdefs.h <<\_ACEOF
1861#define __HPUX__ 1
1862_ACEOF
1863
2eef8513 1864
c92ad099 1865 CPPFLAGS="-D_HPUX_SOURCE $CPPFLAGS"
a848cd7e
SC
1866 ;;
1867 *-*-linux* )
1868 USE_LINUX=1
1869 cat >>confdefs.h <<\_ACEOF
1870#define __LINUX__ 1
1871_ACEOF
1872
1873 TMP=`uname -m`
1874 if test "x$TMP" = "xalpha"; then
1875 USE_ALPHA=1
1876 cat >>confdefs.h <<\_ACEOF
1877#define __ALPHA__ 1
1878_ACEOF
1879
1880 fi
1881 DEFAULT_DEFAULT_wxUSE_GTK=1
1882 ;;
1883 *-*-gnu* | *-*-k*bsd*-gnu )
1884 USE_GNU=1
1885 TMP=`uname -m`
1886 if test "x$TMP" = "xalpha"; then
1887 USE_ALPHA=1
1888 cat >>confdefs.h <<\_ACEOF
1889#define __ALPHA__ 1
1890_ACEOF
1891
1892 fi
1893 DEFAULT_DEFAULT_wxUSE_GTK=1
1894 ;;
1895 *-*-irix5* | *-*-irix6* )
1896 USE_SGI=1
1897 USE_SVR4=1
1898 cat >>confdefs.h <<\_ACEOF
1899#define __SGI__ 1
1900_ACEOF
1901
1902 cat >>confdefs.h <<\_ACEOF
1903#define __SVR4__ 1
1904_ACEOF
1905
1906 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1907 ;;
1908 *-*-solaris2* )
1909 USE_SUN=1
1910 USE_SOLARIS=1
1911 USE_SVR4=1
1912 cat >>confdefs.h <<\_ACEOF
1913#define __SUN__ 1
1914_ACEOF
1915
1916 cat >>confdefs.h <<\_ACEOF
1917#define __SOLARIS__ 1
1918_ACEOF
1919
1920 cat >>confdefs.h <<\_ACEOF
1921#define __SVR4__ 1
1922_ACEOF
1923
1924 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1925 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1926 ;;
1927 *-*-sunos4* )
1928 USE_SUN=1
1929 USE_SUNOS=1
1930 USE_BSD=1
1931 cat >>confdefs.h <<\_ACEOF
1932#define __SUN__ 1
1933_ACEOF
1934
1935 cat >>confdefs.h <<\_ACEOF
1936#define __SUNOS__ 1
1937_ACEOF
1938
1939 cat >>confdefs.h <<\_ACEOF
1940#define __BSD__ 1
1941_ACEOF
1942
1943 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1944 ;;
1945 *-*-freebsd*)
1946 USE_BSD=1
1947 USE_FREEBSD=1
1948 cat >>confdefs.h <<\_ACEOF
1949#define __FREEBSD__ 1
1950_ACEOF
1951
1952 cat >>confdefs.h <<\_ACEOF
1953#define __BSD__ 1
1954_ACEOF
1955
1956 DEFAULT_DEFAULT_wxUSE_GTK=1
1957 ;;
c9a66001 1958 *-*-openbsd*|*-*-mirbsd*)
a848cd7e
SC
1959 USE_BSD=1
1960 USE_OPENBSD=1
1961 cat >>confdefs.h <<\_ACEOF
1962#define __OPENBSD__ 1
1963_ACEOF
1964
1965 cat >>confdefs.h <<\_ACEOF
1966#define __BSD__ 1
1967_ACEOF
1968
1969 DEFAULT_DEFAULT_wxUSE_GTK=1
1970 ;;
1971 *-*-netbsd*)
1972 USE_BSD=1
1973 USE_NETBSD=1
1974 cat >>confdefs.h <<\_ACEOF
1975#define __NETBSD__ 1
1976_ACEOF
1977
1978 cat >>confdefs.h <<\_ACEOF
1979#define __BSD__ 1
1980_ACEOF
1981
1982 DEFAULT_DEFAULT_wxUSE_GTK=1
728258f4 1983 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
def7c04a 1984
def7c04a 1985 CPPFLAGS="-D_NETBSD_SOURCE -D_LIBC $CPPFLAGS"
a848cd7e
SC
1986 ;;
1987 *-*-osf* )
1988 USE_ALPHA=1
1989 USE_OSF=1
1990 cat >>confdefs.h <<\_ACEOF
1991#define __ALPHA__ 1
1992_ACEOF
1993
1994 cat >>confdefs.h <<\_ACEOF
1995#define __OSF__ 1
1996_ACEOF
1997
1998 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1999 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2000 ;;
2001 *-*-dgux5* )
2002 USE_ALPHA=1
2003 USE_SVR4=1
2004 cat >>confdefs.h <<\_ACEOF
2005#define __ALPHA__ 1
2006_ACEOF
2007
2008 cat >>confdefs.h <<\_ACEOF
2009#define __SVR4__ 1
2010_ACEOF
2011
2012 DEFAULT_DEFAULT_wxUSE_MOTIF=1
2013 ;;
2014 *-*-sysv5* )
2015 USE_SYSV=1
2016 USE_SVR4=1
2017 cat >>confdefs.h <<\_ACEOF
2018#define __SYSV__ 1
2019_ACEOF
2020
2021 cat >>confdefs.h <<\_ACEOF
2022#define __SVR4__ 1
2023_ACEOF
2024
2025 DEFAULT_DEFAULT_wxUSE_MOTIF=1
2026 ;;
2027 *-*-aix* )
2028 USE_AIX=1
2029 USE_SYSV=1
2030 USE_SVR4=1
2031 SO_SUFFIX=a
2032 cat >>confdefs.h <<\_ACEOF
2033#define __AIX__ 1
2034_ACEOF
2035
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
2047 *-*-*UnixWare*)
2048 USE_SYSV=1
2049 USE_SVR4=1
2050 USE_UNIXWARE=1
2051 cat >>confdefs.h <<\_ACEOF
2052#define __UNIXWARE__ 1
2053_ACEOF
2054
2055 ;;
2056
2057 *-*-cygwin* | *-*-mingw32* )
2058 SO_SUFFIX=dll
2059 PROGRAM_EXT=".exe"
a848cd7e 2060 DEFAULT_DEFAULT_wxUSE_MSW=1
a03b8b04 2061 DEFAULT_STD_FLAG=no
a848cd7e
SC
2062 ;;
2063
2064 *-pc-msdosdjgpp )
2065 USE_UNIX=0
2066 USE_DOS=1
2067 cat >>confdefs.h <<\_ACEOF
2068#define __DOS__ 1
2069_ACEOF
2070
2071 PROGRAM_EXT=".exe"
2072 DEFAULT_DEFAULT_wxUSE_MGL=1
a848cd7e
SC
2073 ;;
2074
2075 *-pc-os2_emx | *-pc-os2-emx )
2076 cat >>confdefs.h <<\_ACEOF
2077#define __EMX__ 1
2078_ACEOF
2079
2080 USE_OS2=1
2081 cat >>confdefs.h <<\_ACEOF
2082#define __OS2__ 1
2083_ACEOF
2084
2085 PROGRAM_EXT=".exe"
2086 DEFAULT_DEFAULT_wxUSE_PM=1
2087 CXX=gcc
2088 LDFLAGS="$LDFLAGS -Zcrtdll"
2089 ac_executable_extensions=".exe"
2090 export ac_executable_extensions
2091 ac_save_IFS="$IFS"
2092 IFS='\\'
2093 ac_TEMP_PATH=
2094 for ac_dir in $PATH; do
2095 IFS=$ac_save_IFS
2096 if test -z "$ac_TEMP_PATH"; then
2097 ac_TEMP_PATH="$ac_dir"
2098 else
2099 ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
2100 fi
2101 done
2102 export PATH="$ac_TEMP_PATH"
2103 unset ac_TEMP_PATH
a03b8b04 2104 DEFAULT_STD_FLAG=no
a848cd7e
SC
2105 ;;
2106
cfda0ea8 2107 *-*-darwin* )
a848cd7e
SC
2108 USE_BSD=1
2109 USE_DARWIN=1
2110 SO_SUFFIX=dylib
2111 cat >>confdefs.h <<\_ACEOF
2112#define __BSD__ 1
2113_ACEOF
2114
2115 cat >>confdefs.h <<\_ACEOF
2116#define __DARWIN__ 1
a848cd7e
SC
2117_ACEOF
2118
2119 cat >>confdefs.h <<\_ACEOF
2120#define TARGET_CARBON 1
2121_ACEOF
2122
2123 DEFAULT_DEFAULT_wxUSE_MAC=1
a03b8b04 2124 DEFAULT_STD_FLAG=no
a848cd7e 2125 ;;
1e9e8aba
DE
2126 powerpc-apple-macos* )
2127 USE_UNIX=0
2128 ac_cv_c_bigendian=yes
2129 SO_SUFFIX=shlib
2130 DEFAULT_DEFAULT_wxUSE_MAC=1
a03b8b04 2131 DEFAULT_STD_FLAG=no
1e9e8aba 2132 ;;
a848cd7e
SC
2133
2134 *-*-beos* )
2135 USE_BEOS=1
2136 cat >>confdefs.h <<\_ACEOF
2137#define __BEOS__ 1
2138_ACEOF
2139
2140 ;;
2141
2142 *)
c9a66001
VZ
2143 { echo "$as_me:$LINENO: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&5
2144echo "$as_me: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&2;}
2145 { echo "$as_me:$LINENO: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&5
2146echo "$as_me: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&2;}
5acfd58d
MW
2147
2148 DEFAULT_DEFAULT_wxUSE_X11=1
2149 DEFAULT_wxUSE_SHARED=no
a848cd7e
SC
2150esac
2151
2152
2153
2154
2155 wx_arg_cache_file="configarg.cache"
2156 echo "loading argument cache $wx_arg_cache_file"
2157 rm -f ${wx_arg_cache_file}.tmp
2158 touch ${wx_arg_cache_file}.tmp
2159 touch ${wx_arg_cache_file}
2160
2161
2162DEBUG_CONFIGURE=0
2163if test $DEBUG_CONFIGURE = 1; then
2164 DEFAULT_wxUSE_UNIVERSAL=no
2165 DEFAULT_wxUSE_STL=no
2166
2167 DEFAULT_wxUSE_NANOX=no
2168
2169 DEFAULT_wxUSE_THREADS=yes
2170
5acfd58d 2171 DEFAULT_wxUSE_SHARED=${DEFAULT_wxUSE_SHARED:-yes}
a848cd7e
SC
2172 DEFAULT_wxUSE_OPTIMISE=no
2173 DEFAULT_wxUSE_PROFILE=no
2174 DEFAULT_wxUSE_NO_DEPS=no
2175 DEFAULT_wxUSE_NO_RTTI=no
2176 DEFAULT_wxUSE_NO_EXCEPTIONS=no
7afc46ab 2177 DEFAULT_wxUSE_UNIVERSAL_BINARY=no
ffa0583f 2178 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2179 DEFAULT_wxUSE_PERMISSIVE=no
2180 DEFAULT_wxUSE_DEBUG_FLAG=yes
2181 DEFAULT_wxUSE_DEBUG_INFO=yes
2182 DEFAULT_wxUSE_DEBUG_GDB=yes
2183 DEFAULT_wxUSE_MEM_TRACING=no
2184 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2185 DEFAULT_wxUSE_DMALLOC=no
2186 DEFAULT_wxUSE_APPLE_IEEE=no
2187
2188 DEFAULT_wxUSE_EXCEPTIONS=no
2189 DEFAULT_wxUSE_LOG=yes
2190 DEFAULT_wxUSE_LOGWINDOW=no
2191 DEFAULT_wxUSE_LOGGUI=no
2192 DEFAULT_wxUSE_LOGDIALOG=no
2193
2194 DEFAULT_wxUSE_GUI=yes
2195 DEFAULT_wxUSE_CONTROLS=no
2196
2197 DEFAULT_wxUSE_REGEX=no
2198 DEFAULT_wxUSE_XML=no
2199 DEFAULT_wxUSE_EXPAT=no
2200 DEFAULT_wxUSE_ZLIB=no
2201 DEFAULT_wxUSE_LIBPNG=no
2202 DEFAULT_wxUSE_LIBJPEG=no
2203 DEFAULT_wxUSE_LIBTIFF=no
2204 DEFAULT_wxUSE_LIBXPM=no
2205 DEFAULT_wxUSE_LIBMSPACK=no
2206 DEFAULT_wxUSE_LIBSDL=no
d1c38808 2207 DEFAULT_wxUSE_LIBGNOMEPRINT=no
2b850ae1 2208 DEFAULT_wxUSE_LIBGNOMEVFS=no
3565d135 2209 DEFAULT_wxUSE_LIBHILDON=no
a848cd7e
SC
2210 DEFAULT_wxUSE_ODBC=no
2211 DEFAULT_wxUSE_OPENGL=no
2212
2213 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
eaff0f0d 2214 DEFAULT_wxUSE_STACKWALKER=no
36b6448c 2215 DEFAULT_wxUSE_DEBUGREPORT=no
a848cd7e
SC
2216 DEFAULT_wxUSE_SNGLINST_CHECKER=no
2217 DEFAULT_wxUSE_STD_IOSTREAM=no
59746b65 2218 DEFAULT_wxUSE_STD_STRING=no
a848cd7e
SC
2219 DEFAULT_wxUSE_CMDLINE_PARSER=no
2220 DEFAULT_wxUSE_DATETIME=no
2221 DEFAULT_wxUSE_TIMER=no
2222 DEFAULT_wxUSE_STOPWATCH=no
2223 DEFAULT_wxUSE_FILE=no
2224 DEFAULT_wxUSE_FFILE=no
07158944 2225 DEFAULT_wxUSE_STDPATHS=no
a848cd7e
SC
2226 DEFAULT_wxUSE_TEXTBUFFER=no
2227 DEFAULT_wxUSE_TEXTFILE=no
2228 DEFAULT_wxUSE_SOUND=no
3b57de8b 2229 DEFAULT_wxUSE_MEDIACTRL=no
f10e38c4 2230 DEFAULT_wxUSE_GSTREAMER8=no
8f3773fd 2231 DEFAULT_wxUSE_PRINTF_POS_PARAMS=no
a848cd7e
SC
2232 DEFAULT_wxUSE_INTL=no
2233 DEFAULT_wxUSE_CONFIG=no
2234 DEFAULT_wxUSE_FONTMAP=no
2235 DEFAULT_wxUSE_STREAMS=no
2236 DEFAULT_wxUSE_SOCKETS=no
2237 DEFAULT_wxUSE_OLE=no
2238 DEFAULT_wxUSE_DATAOBJ=no
2239 DEFAULT_wxUSE_DIALUP_MANAGER=no
2240 DEFAULT_wxUSE_JOYSTICK=no
2241 DEFAULT_wxUSE_DYNLIB_CLASS=no
2242 DEFAULT_wxUSE_DYNAMIC_LOADER=no
2243 DEFAULT_wxUSE_LONGLONG=no
2244 DEFAULT_wxUSE_GEOMETRY=no
2245
2246 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2247 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2248 DEFAULT_wxUSE_POSTSCRIPT=no
2249
2250 DEFAULT_wxUSE_CLIPBOARD=no
2251 DEFAULT_wxUSE_TOOLTIPS=no
2252 DEFAULT_wxUSE_DRAG_AND_DROP=no
2253 DEFAULT_wxUSE_DRAGIMAGE=no
2254 DEFAULT_wxUSE_SPLINES=no
fbe2ca43 2255 DEFAULT_wxUSE_MOUSEWHEEL=no
a848cd7e 2256
8a7b1113 2257 DEFAULT_wxUSE_MDI=no
a848cd7e
SC
2258 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2259 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2260 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2261
2262 DEFAULT_wxUSE_RESOURCES=no
2263 DEFAULT_wxUSE_CONSTRAINTS=no
2264 DEFAULT_wxUSE_IPC=no
2265 DEFAULT_wxUSE_HELP=no
2266 DEFAULT_wxUSE_MS_HTML_HELP=no
2267 DEFAULT_wxUSE_WXHTML_HELP=no
2268 DEFAULT_wxUSE_TREELAYOUT=no
2269 DEFAULT_wxUSE_METAFILE=no
2270 DEFAULT_wxUSE_MIMETYPE=no
2271 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2272 DEFAULT_wxUSE_PROTOCOL=no
2273 DEFAULT_wxUSE_PROTOCOL_HTTP=no
2274 DEFAULT_wxUSE_PROTOCOL_FTP=no
2275 DEFAULT_wxUSE_PROTOCOL_FILE=no
2276 DEFAULT_wxUSE_URL=no
ca5c6ac3 2277 DEFAULT_wxUSE_VARIANT=no
a848cd7e 2278
319c5ed4 2279 DEFAULT_wxUSE_ABOUTDLG=no
a848cd7e
SC
2280 DEFAULT_wxUSE_COMMONDLGS=no
2281 DEFAULT_wxUSE_CHOICEDLG=no
2282 DEFAULT_wxUSE_COLOURDLG=no
2283 DEFAULT_wxUSE_DIRDLG=no
2284 DEFAULT_wxUSE_FILEDLG=no
2285 DEFAULT_wxUSE_FINDREPLDLG=no
2286 DEFAULT_wxUSE_FONTDLG=no
2287 DEFAULT_wxUSE_MSGDLG=no
2288 DEFAULT_wxUSE_NUMBERDLG=no
2289 DEFAULT_wxUSE_TEXTDLG=no
2290 DEFAULT_wxUSE_SPLASH=no
2291 DEFAULT_wxUSE_STARTUP_TIPS=no
2292 DEFAULT_wxUSE_PROGRESSDLG=no
2293 DEFAULT_wxUSE_WIZARDDLG=no
2294
2295 DEFAULT_wxUSE_MENUS=no
2296 DEFAULT_wxUSE_MINIFRAME=no
2297 DEFAULT_wxUSE_HTML=no
91dea314 2298 DEFAULT_wxUSE_RICHTEXT=no
9a8f0513 2299 DEFAULT_wxUSE_XRC=no
3f60522a 2300 DEFAULT_wxUSE_AUI=no
646b6ec1 2301 DEFAULT_wxUSE_WEBKIT=no
a848cd7e
SC
2302 DEFAULT_wxUSE_FILESYSTEM=no
2303 DEFAULT_wxUSE_FS_INET=no
2304 DEFAULT_wxUSE_FS_ZIP=no
2305 DEFAULT_wxUSE_BUSYINFO=no
9e8e867f 2306 DEFAULT_wxUSE_ARCHIVE_STREAMS=no
a848cd7e 2307 DEFAULT_wxUSE_ZIPSTREAM=no
a848cd7e
SC
2308 DEFAULT_wxUSE_VALIDATORS=no
2309
2310 DEFAULT_wxUSE_ACCEL=no
3ea50042 2311 DEFAULT_wxUSE_ANIMATIONCTRL=no
a848cd7e
SC
2312 DEFAULT_wxUSE_BUTTON=no
2313 DEFAULT_wxUSE_BMPBUTTON=no
95a46303 2314 DEFAULT_wxUSE_BITMAPCOMBOBOX=no
a848cd7e
SC
2315 DEFAULT_wxUSE_CALCTRL=no
2316 DEFAULT_wxUSE_CARET=no
2317 DEFAULT_wxUSE_CHECKBOX=no
2318 DEFAULT_wxUSE_CHECKLST=no
2319 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 2320 DEFAULT_wxUSE_CHOICEBOOK=no
e9263684 2321 DEFAULT_wxUSE_COLOURPICKERCTRL=no
a848cd7e 2322 DEFAULT_wxUSE_COMBOBOX=no
a57d600f 2323 DEFAULT_wxUSE_COMBOCTRL=no
da98e9be 2324 DEFAULT_wxUSE_DATEPICKCTRL=no
a848cd7e 2325 DEFAULT_wxUSE_DISPLAY=no
e9263684
VZ
2326 DEFAULT_wxUSE_DIRPICKERCTRL=no
2327 DEFAULT_wxUSE_FILEPICKERCTRL=no
2328 DEFAULT_wxUSE_FONTPICKERCTRL=no
a848cd7e 2329 DEFAULT_wxUSE_GAUGE=no
f43426c1 2330 DEFAULT_wxUSE_GRAPHICS_CONTEXT=no
a848cd7e 2331 DEFAULT_wxUSE_GRID=no
6954625c 2332 DEFAULT_wxUSE_HYPERLINKCTRL=no
20e34ecc 2333 DEFAULT_wxUSE_DATAVIEWCTRL=no
a848cd7e
SC
2334 DEFAULT_wxUSE_IMAGLIST=no
2335 DEFAULT_wxUSE_LISTBOOK=no
2336 DEFAULT_wxUSE_LISTBOX=no
2337 DEFAULT_wxUSE_LISTCTRL=no
2338 DEFAULT_wxUSE_NOTEBOOK=no
a57d600f 2339 DEFAULT_wxUSE_ODCOMBOBOX=no
a848cd7e
SC
2340 DEFAULT_wxUSE_RADIOBOX=no
2341 DEFAULT_wxUSE_RADIOBTN=no
2342 DEFAULT_wxUSE_SASH=no
2343 DEFAULT_wxUSE_SCROLLBAR=no
2344 DEFAULT_wxUSE_SLIDER=no
2345 DEFAULT_wxUSE_SPINBTN=no
2346 DEFAULT_wxUSE_SPINCTRL=no
2347 DEFAULT_wxUSE_SPLITTER=no
2348 DEFAULT_wxUSE_STATBMP=no
2349 DEFAULT_wxUSE_STATBOX=no
2350 DEFAULT_wxUSE_STATLINE=no
2351 DEFAULT_wxUSE_STATTEXT=no
2352 DEFAULT_wxUSE_STATUSBAR=yes
f10e38c4 2353 DEFAULT_wxUSE_TAB_DIALOG=no
a848cd7e
SC
2354 DEFAULT_wxUSE_TEXTCTRL=no
2355 DEFAULT_wxUSE_TOGGLEBTN=no
2356 DEFAULT_wxUSE_TOOLBAR=no
2357 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
0093c2fc 2358 DEFAULT_wxUSE_TREEBOOK=no
5ec3bc43 2359 DEFAULT_wxUSE_TOOLBOOK=no
a848cd7e
SC
2360 DEFAULT_wxUSE_TREECTRL=no
2361 DEFAULT_wxUSE_POPUPWIN=no
2362 DEFAULT_wxUSE_TIPWINDOW=no
2363
2364 DEFAULT_wxUSE_UNICODE=no
2365 DEFAULT_wxUSE_UNICODE_MSLU=no
2366 DEFAULT_wxUSE_WCSRTOMBS=no
2367
2368 DEFAULT_wxUSE_PALETTE=no
2369 DEFAULT_wxUSE_IMAGE=no
2370 DEFAULT_wxUSE_GIF=no
2371 DEFAULT_wxUSE_PCX=no
2372 DEFAULT_wxUSE_PNM=no
2373 DEFAULT_wxUSE_IFF=no
2374 DEFAULT_wxUSE_XPM=no
2375 DEFAULT_wxUSE_ICO_CUR=no
2376 DEFAULT_wxUSE_ACCESSIBILITY=no
2377
2378 DEFAULT_wxUSE_MONOLITHIC=no
2379 DEFAULT_wxUSE_PLUGINS=no
2380 DEFAULT_wxUSE_OFFICIAL_BUILD=no
2381else
2382 DEFAULT_wxUSE_UNIVERSAL=no
2383 DEFAULT_wxUSE_STL=no
2384
2385 DEFAULT_wxUSE_NANOX=no
2386
2387 DEFAULT_wxUSE_THREADS=yes
2388
5acfd58d 2389 DEFAULT_wxUSE_SHARED=${DEFAULT_wxUSE_SHARED:-yes}
a848cd7e
SC
2390 DEFAULT_wxUSE_OPTIMISE=yes
2391 DEFAULT_wxUSE_PROFILE=no
2392 DEFAULT_wxUSE_NO_DEPS=no
2393 DEFAULT_wxUSE_NO_RTTI=no
2394 DEFAULT_wxUSE_NO_EXCEPTIONS=no
7afc46ab 2395 DEFAULT_wxUSE_UNIVERSAL_BINARY=no
ffa0583f 2396 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2397 DEFAULT_wxUSE_PERMISSIVE=no
2398 DEFAULT_wxUSE_DEBUG_FLAG=no
2399 DEFAULT_wxUSE_DEBUG_INFO=no
2400 DEFAULT_wxUSE_DEBUG_GDB=no
2401 DEFAULT_wxUSE_MEM_TRACING=no
2402 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2403 DEFAULT_wxUSE_DMALLOC=no
2404 DEFAULT_wxUSE_APPLE_IEEE=yes
2405
2406 DEFAULT_wxUSE_EXCEPTIONS=yes
2407 DEFAULT_wxUSE_LOG=yes
2408 DEFAULT_wxUSE_LOGWINDOW=yes
2409 DEFAULT_wxUSE_LOGGUI=yes
2410 DEFAULT_wxUSE_LOGDIALOG=yes
2411
2412 DEFAULT_wxUSE_GUI=yes
2413
2414 DEFAULT_wxUSE_REGEX=yes
2415 DEFAULT_wxUSE_XML=yes
2416 DEFAULT_wxUSE_EXPAT=yes
2417 DEFAULT_wxUSE_ZLIB=yes
2418 DEFAULT_wxUSE_LIBPNG=yes
2419 DEFAULT_wxUSE_LIBJPEG=yes
2420 DEFAULT_wxUSE_LIBTIFF=yes
2421 DEFAULT_wxUSE_LIBXPM=yes
2422 DEFAULT_wxUSE_LIBMSPACK=yes
2423 DEFAULT_wxUSE_LIBSDL=no
a03b8b04 2424 DEFAULT_wxUSE_LIBGNOMEPRINT=no
2b850ae1 2425 DEFAULT_wxUSE_LIBGNOMEVFS=no
3565d135 2426 DEFAULT_wxUSE_LIBHILDON=no
a848cd7e 2427 DEFAULT_wxUSE_ODBC=no
52cb607e 2428 DEFAULT_wxUSE_OPENGL=no
a848cd7e
SC
2429
2430 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
eaff0f0d 2431 DEFAULT_wxUSE_STACKWALKER=yes
6671c68b 2432 DEFAULT_wxUSE_DEBUGREPORT=yes
a848cd7e 2433 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
a03b8b04
RD
2434 DEFAULT_wxUSE_STD_IOSTREAM=$DEFAULT_STD_FLAG
2435 DEFAULT_wxUSE_STD_STRING=$DEFAULT_STD_FLAG
a848cd7e
SC
2436 DEFAULT_wxUSE_CMDLINE_PARSER=yes
2437 DEFAULT_wxUSE_DATETIME=yes
2438 DEFAULT_wxUSE_TIMER=yes
2439 DEFAULT_wxUSE_STOPWATCH=yes
2440 DEFAULT_wxUSE_FILE=yes
2441 DEFAULT_wxUSE_FFILE=yes
07158944 2442 DEFAULT_wxUSE_STDPATHS=yes
a848cd7e
SC
2443 DEFAULT_wxUSE_TEXTBUFFER=yes
2444 DEFAULT_wxUSE_TEXTFILE=yes
2445 DEFAULT_wxUSE_SOUND=yes
3b57de8b 2446 DEFAULT_wxUSE_MEDIACTRL=no
f10e38c4 2447 DEFAULT_wxUSE_GSTREAMER8=no
15291213 2448 DEFAULT_wxUSE_PRINTF_POS_PARAMS=yes
a848cd7e
SC
2449 DEFAULT_wxUSE_INTL=yes
2450 DEFAULT_wxUSE_CONFIG=yes
2451 DEFAULT_wxUSE_FONTMAP=yes
2452 DEFAULT_wxUSE_STREAMS=yes
2453 DEFAULT_wxUSE_SOCKETS=yes
2454 DEFAULT_wxUSE_OLE=yes
2455 DEFAULT_wxUSE_DATAOBJ=yes
2456 DEFAULT_wxUSE_DIALUP_MANAGER=yes
2457 DEFAULT_wxUSE_JOYSTICK=yes
2458 DEFAULT_wxUSE_DYNLIB_CLASS=yes
2459 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
2460 DEFAULT_wxUSE_LONGLONG=yes
2461 DEFAULT_wxUSE_GEOMETRY=yes
2462
2463 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2464 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2465 DEFAULT_wxUSE_POSTSCRIPT=yes
2466
2467 DEFAULT_wxUSE_CLIPBOARD=yes
2468 DEFAULT_wxUSE_TOOLTIPS=yes
2469 DEFAULT_wxUSE_DRAG_AND_DROP=yes
2470 DEFAULT_wxUSE_DRAGIMAGE=yes
2471 DEFAULT_wxUSE_SPLINES=yes
fbe2ca43 2472 DEFAULT_wxUSE_MOUSEWHEEL=yes
a848cd7e 2473
8a7b1113 2474 DEFAULT_wxUSE_MDI=yes
a848cd7e
SC
2475 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2476 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2477 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2478
2479 DEFAULT_wxUSE_RESOURCES=no
2480 DEFAULT_wxUSE_CONSTRAINTS=yes
2481 DEFAULT_wxUSE_IPC=yes
2482 DEFAULT_wxUSE_HELP=yes
2483 DEFAULT_wxUSE_MS_HTML_HELP=yes
2484 DEFAULT_wxUSE_WXHTML_HELP=yes
2485 DEFAULT_wxUSE_TREELAYOUT=yes
2486 DEFAULT_wxUSE_METAFILE=yes
2487 DEFAULT_wxUSE_MIMETYPE=yes
2488 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
2489 DEFAULT_wxUSE_PROTOCOL=yes
2490 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2491 DEFAULT_wxUSE_PROTOCOL_FTP=yes
2492 DEFAULT_wxUSE_PROTOCOL_FILE=yes
2493 DEFAULT_wxUSE_URL=yes
ca5c6ac3 2494 DEFAULT_wxUSE_VARIANT=yes
a848cd7e 2495
319c5ed4 2496 DEFAULT_wxUSE_ABOUTDLG=yes
a848cd7e
SC
2497 DEFAULT_wxUSE_COMMONDLGS=yes
2498 DEFAULT_wxUSE_CHOICEDLG=yes
2499 DEFAULT_wxUSE_COLOURDLG=yes
2500 DEFAULT_wxUSE_DIRDLG=yes
2501 DEFAULT_wxUSE_FILEDLG=yes
2502 DEFAULT_wxUSE_FINDREPLDLG=yes
2503 DEFAULT_wxUSE_FONTDLG=yes
2504 DEFAULT_wxUSE_MSGDLG=yes
2505 DEFAULT_wxUSE_NUMBERDLG=yes
2506 DEFAULT_wxUSE_TEXTDLG=yes
2507 DEFAULT_wxUSE_SPLASH=yes
2508 DEFAULT_wxUSE_STARTUP_TIPS=yes
2509 DEFAULT_wxUSE_PROGRESSDLG=yes
2510 DEFAULT_wxUSE_WIZARDDLG=yes
2511
2512 DEFAULT_wxUSE_MENUS=yes
2513 DEFAULT_wxUSE_MINIFRAME=yes
2514 DEFAULT_wxUSE_HTML=yes
91dea314 2515 DEFAULT_wxUSE_RICHTEXT=yes
9a8f0513 2516 DEFAULT_wxUSE_XRC=yes
3f60522a 2517 DEFAULT_wxUSE_AUI=yes
646b6ec1 2518 DEFAULT_wxUSE_WEBKIT=yes
a848cd7e
SC
2519 DEFAULT_wxUSE_FILESYSTEM=yes
2520 DEFAULT_wxUSE_FS_INET=yes
2521 DEFAULT_wxUSE_FS_ZIP=yes
2522 DEFAULT_wxUSE_BUSYINFO=yes
9e8e867f 2523 DEFAULT_wxUSE_ARCHIVE_STREAMS=yes
a848cd7e 2524 DEFAULT_wxUSE_ZIPSTREAM=yes
a848cd7e
SC
2525 DEFAULT_wxUSE_VALIDATORS=yes
2526
2527 DEFAULT_wxUSE_ACCEL=yes
3ea50042 2528 DEFAULT_wxUSE_ANIMATIONCTRL=yes
a848cd7e
SC
2529 DEFAULT_wxUSE_BUTTON=yes
2530 DEFAULT_wxUSE_BMPBUTTON=yes
95a46303 2531 DEFAULT_wxUSE_BITMAPCOMBOBOX=yes
a848cd7e
SC
2532 DEFAULT_wxUSE_CALCTRL=yes
2533 DEFAULT_wxUSE_CARET=yes
2534 DEFAULT_wxUSE_CHECKBOX=yes
2535 DEFAULT_wxUSE_CHECKLST=yes
2536 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 2537 DEFAULT_wxUSE_CHOICEBOOK=yes
e9263684 2538 DEFAULT_wxUSE_COLOURPICKERCTRL=yes
a848cd7e 2539 DEFAULT_wxUSE_COMBOBOX=yes
a57d600f 2540 DEFAULT_wxUSE_COMBOCTRL=yes
da98e9be 2541 DEFAULT_wxUSE_DATEPICKCTRL=yes
a848cd7e 2542 DEFAULT_wxUSE_DISPLAY=yes
e9263684
VZ
2543 DEFAULT_wxUSE_DIRPICKERCTRL=yes
2544 DEFAULT_wxUSE_FILEPICKERCTRL=yes
2545 DEFAULT_wxUSE_FONTPICKERCTRL=yes
a848cd7e
SC
2546 DEFAULT_wxUSE_GAUGE=yes
2547 DEFAULT_wxUSE_GRID=yes
f43426c1 2548 DEFAULT_wxUSE_GRAPHICS_CONTEXT=no
6954625c 2549 DEFAULT_wxUSE_HYPERLINKCTRL=yes
20e34ecc 2550 DEFAULT_wxUSE_DATAVIEWCTRL=no
a848cd7e
SC
2551 DEFAULT_wxUSE_IMAGLIST=yes
2552 DEFAULT_wxUSE_LISTBOOK=yes
2553 DEFAULT_wxUSE_LISTBOX=yes
2554 DEFAULT_wxUSE_LISTCTRL=yes
2555 DEFAULT_wxUSE_NOTEBOOK=yes
a57d600f 2556 DEFAULT_wxUSE_ODCOMBOBOX=yes
a848cd7e
SC
2557 DEFAULT_wxUSE_RADIOBOX=yes
2558 DEFAULT_wxUSE_RADIOBTN=yes
2559 DEFAULT_wxUSE_SASH=yes
2560 DEFAULT_wxUSE_SCROLLBAR=yes
2561 DEFAULT_wxUSE_SLIDER=yes
2562 DEFAULT_wxUSE_SPINBTN=yes
2563 DEFAULT_wxUSE_SPINCTRL=yes
2564 DEFAULT_wxUSE_SPLITTER=yes
2565 DEFAULT_wxUSE_STATBMP=yes
2566 DEFAULT_wxUSE_STATBOX=yes
2567 DEFAULT_wxUSE_STATLINE=yes
2568 DEFAULT_wxUSE_STATTEXT=yes
2569 DEFAULT_wxUSE_STATUSBAR=yes
f10e38c4 2570 DEFAULT_wxUSE_TAB_DIALOG=no
a848cd7e
SC
2571 DEFAULT_wxUSE_TEXTCTRL=yes
2572 DEFAULT_wxUSE_TOGGLEBTN=yes
2573 DEFAULT_wxUSE_TOOLBAR=yes
2574 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
0093c2fc 2575 DEFAULT_wxUSE_TREEBOOK=yes
5ec3bc43 2576 DEFAULT_wxUSE_TOOLBOOK=yes
a848cd7e
SC
2577 DEFAULT_wxUSE_TREECTRL=yes
2578 DEFAULT_wxUSE_POPUPWIN=yes
2579 DEFAULT_wxUSE_TIPWINDOW=yes
2580
78de529b 2581 DEFAULT_wxUSE_UNICODE=no
a848cd7e
SC
2582 DEFAULT_wxUSE_UNICODE_MSLU=yes
2583 DEFAULT_wxUSE_WCSRTOMBS=no
2584
2585 DEFAULT_wxUSE_PALETTE=yes
2586 DEFAULT_wxUSE_IMAGE=yes
2587 DEFAULT_wxUSE_GIF=yes
2588 DEFAULT_wxUSE_PCX=yes
2589 DEFAULT_wxUSE_IFF=no
2590 DEFAULT_wxUSE_PNM=yes
2591 DEFAULT_wxUSE_XPM=yes
2592 DEFAULT_wxUSE_ICO_CUR=yes
2593 DEFAULT_wxUSE_ACCESSIBILITY=no
2594
2595 DEFAULT_wxUSE_MONOLITHIC=no
2596 DEFAULT_wxUSE_PLUGINS=no
2597 DEFAULT_wxUSE_OFFICIAL_BUILD=no
9f45f08e 2598
f34ca037 2599 DEFAULT_wxUSE_GTK2=yes
a848cd7e
SC
2600fi
2601
2602
2603
f34ca037 2604
a848cd7e
SC
2605for toolkit in `echo $ALL_TOOLKITS`; do
2606 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2607 if test "x$LINE" != "x" ; then
2608 has_toolkit_in_cache=1
2609 eval "DEFAULT_$LINE"
2610 eval "CACHE_$toolkit=1"
f34ca037
MW
2611
2612 LINE=`grep "wx${toolkit}_VERSION=" ${wx_arg_cache_file}`
2613 if test "x$LINE" != "x" ; then
2614 eval "DEFAULT_$LINE"
2615 fi
a848cd7e
SC
2616 fi
2617done
2618
2619
2620
2621 enablestring=
2622 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2623echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
2624 no_cache=0
2625 # Check whether --enable-gui or --disable-gui was given.
2626if test "${enable_gui+set}" = set; then
2627 enableval="$enable_gui"
2628
2629 if test "$enableval" = yes; then
2630 ac_cv_use_gui='wxUSE_GUI=yes'
2631 else
2632 ac_cv_use_gui='wxUSE_GUI=no'
2633 fi
2634
2635else
2636
2637 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2638 if test "x$LINE" != x ; then
2639 eval "DEFAULT_$LINE"
2640 else
2641 no_cache=1
2642 fi
2643
2644 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
2645
2646fi;
2647
2648 eval "$ac_cv_use_gui"
2649 if test "$no_cache" != 1; then
2650 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2651 fi
2652
2653 if test "$wxUSE_GUI" = yes; then
2654 echo "$as_me:$LINENO: result: yes" >&5
2655echo "${ECHO_T}yes" >&6
2656 else
2657 echo "$as_me:$LINENO: result: no" >&5
2658echo "${ECHO_T}no" >&6
2659 fi
2660
2661
2662 enablestring=
2663 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2664echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2665 no_cache=0
2666 # Check whether --enable-monolithic or --disable-monolithic was given.
2667if test "${enable_monolithic+set}" = set; then
2668 enableval="$enable_monolithic"
2669
2670 if test "$enableval" = yes; then
2671 ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2672 else
2673 ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2674 fi
2675
2676else
2677
2678 LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2679 if test "x$LINE" != x ; then
2680 eval "DEFAULT_$LINE"
2681 else
2682 no_cache=1
2683 fi
2684
2685 ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2686
2687fi;
2688
2689 eval "$ac_cv_use_monolithic"
2690 if test "$no_cache" != 1; then
2691 echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2692 fi
2693
2694 if test "$wxUSE_MONOLITHIC" = yes; then
2695 echo "$as_me:$LINENO: result: yes" >&5
2696echo "${ECHO_T}yes" >&6
2697 else
2698 echo "$as_me:$LINENO: result: no" >&5
2699echo "${ECHO_T}no" >&6
2700 fi
2701
2702
2703 enablestring=
2704 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
2705echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6
2706 no_cache=0
2707 # Check whether --enable-plugins or --disable-plugins was given.
2708if test "${enable_plugins+set}" = set; then
2709 enableval="$enable_plugins"
2710
2711 if test "$enableval" = yes; then
2712 ac_cv_use_plugins='wxUSE_PLUGINS=yes'
2713 else
2714 ac_cv_use_plugins='wxUSE_PLUGINS=no'
2715 fi
2716
2717else
2718
2719 LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}`
2720 if test "x$LINE" != x ; then
2721 eval "DEFAULT_$LINE"
2722 else
2723 no_cache=1
2724 fi
2725
2726 ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS
2727
2728fi;
2729
2730 eval "$ac_cv_use_plugins"
2731 if test "$no_cache" != 1; then
2732 echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp
2733 fi
2734
2735 if test "$wxUSE_PLUGINS" = yes; then
2736 echo "$as_me:$LINENO: result: yes" >&5
2737echo "${ECHO_T}yes" >&6
2738 else
2739 echo "$as_me:$LINENO: result: no" >&5
2740echo "${ECHO_T}no" >&6
2741 fi
2742
2743
1c14217d
VZ
2744 withstring=without
2745 echo "$as_me:$LINENO: checking for --${withstring:-with}-subdirs" >&5
2746echo $ECHO_N "checking for --${withstring:-with}-subdirs... $ECHO_C" >&6
2747 no_cache=0
2748
2749# Check whether --with-subdirs or --without-subdirs was given.
2750if test "${with_subdirs+set}" = set; then
2751 withval="$with_subdirs"
2752
2753 if test "$withval" = yes; then
2754 ac_cv_use_subdirs='wxWITH_SUBDIRS=yes'
2755 else
2756 ac_cv_use_subdirs='wxWITH_SUBDIRS=no'
2757 fi
2758
2759else
2760
2761 LINE=`grep "wxWITH_SUBDIRS" ${wx_arg_cache_file}`
2762 if test "x$LINE" != x ; then
2763 eval "DEFAULT_$LINE"
2764 else
2765 no_cache=1
2766 fi
2767
2768 ac_cv_use_subdirs='wxWITH_SUBDIRS='$DEFAULT_wxWITH_SUBDIRS
2769
2770fi;
2771
2772 eval "$ac_cv_use_subdirs"
2773 if test "$no_cache" != 1; then
2774 echo $ac_cv_use_subdirs >> ${wx_arg_cache_file}.tmp
2775 fi
2776
2777 if test "$wxWITH_SUBDIRS" = yes; then
2778 echo "$as_me:$LINENO: result: yes" >&5
2779echo "${ECHO_T}yes" >&6
2780 else
2781 echo "$as_me:$LINENO: result: no" >&5
2782echo "${ECHO_T}no" >&6
2783 fi
2784
2785
a848cd7e
SC
2786if test "$wxUSE_GUI" = "yes"; then
2787
2788
2789 enablestring=
2790 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2791echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
2792 no_cache=0
2793 # Check whether --enable-universal or --disable-universal was given.
2794if test "${enable_universal+set}" = set; then
2795 enableval="$enable_universal"
2796
2797 if test "$enableval" = yes; then
2798 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2799 else
2800 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2801 fi
2802
2803else
2804
2805 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2806 if test "x$LINE" != x ; then
2807 eval "DEFAULT_$LINE"
2808 else
2809 no_cache=1
2810 fi
2811
2812 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
2813
2814fi;
2815
2816 eval "$ac_cv_use_universal"
2817 if test "$no_cache" != 1; then
2818 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2819 fi
2820
2821 if test "$wxUSE_UNIVERSAL" = yes; then
2822 echo "$as_me:$LINENO: result: yes" >&5
2823echo "${ECHO_T}yes" >&6
2824 else
2825 echo "$as_me:$LINENO: result: no" >&5
2826echo "${ECHO_T}no" >&6
2827 fi
2828
2829
2830# Check whether --with-gtk or --without-gtk was given.
2831if test "${with_gtk+set}" = set; then
2832 withval="$with_gtk"
2833 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
2834fi;
2835
2836# Check whether --with-motif or --without-motif was given.
2837if test "${with_motif+set}" = set; then
2838 withval="$with_motif"
2839 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
2840fi;
2841
2842# Check whether --with-mac or --without-mac was given.
2843if test "${with_mac+set}" = set; then
2844 withval="$with_mac"
c228d3a4 2845 wxUSE_MAC="$withval" CACHE_MAC=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2846fi;
2847
2848# Check whether --with-cocoa or --without-cocoa was given.
2849if test "${with_cocoa+set}" = set; then
2850 withval="$with_cocoa"
c228d3a4 2851 wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2852fi;
2853
2854# Check whether --with-wine or --without-wine was given.
2855if test "${with_wine+set}" = set; then
2856 withval="$with_wine"
2857 wxUSE_WINE="$withval" CACHE_WINE=1
2858fi;
2859
2860# Check whether --with-msw or --without-msw was given.
2861if test "${with_msw+set}" = set; then
2862 withval="$with_msw"
2863 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
2864fi;
2865
2866# Check whether --with-pm or --without-pm was given.
2867if test "${with_pm+set}" = set; then
2868 withval="$with_pm"
2869 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
2870fi;
2871
2872# Check whether --with-mgl or --without-mgl was given.
2873if test "${with_mgl+set}" = set; then
2874 withval="$with_mgl"
2875 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
2876fi;
2877
b3c86150
VS
2878# Check whether --with-directfb or --without-directfb was given.
2879if test "${with_directfb+set}" = set; then
2880 withval="$with_directfb"
2881 wxUSE_DFB="$withval" wxUSE_UNIVERSAL="yes" CACHE_DFB=1 TOOLKIT_GIVEN=1
2882fi;
2883
a848cd7e
SC
2884# Check whether --with-microwin or --without-microwin was given.
2885if test "${with_microwin+set}" = set; then
2886 withval="$with_microwin"
2887 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
2888fi;
2889
2890# Check whether --with-x11 or --without-x11 was given.
2891if test "${with_x11+set}" = set; then
2892 withval="$with_x11"
2893 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
2894fi;
2895
2896 enablestring=
2897 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2898echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
2899 no_cache=0
2900 # Check whether --enable-nanox or --disable-nanox was given.
2901if test "${enable_nanox+set}" = set; then
2902 enableval="$enable_nanox"
2903
2904 if test "$enableval" = yes; then
2905 ac_cv_use_nanox='wxUSE_NANOX=yes'
2906 else
2907 ac_cv_use_nanox='wxUSE_NANOX=no'
2908 fi
2909
2910else
2911
2912 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2913 if test "x$LINE" != x ; then
2914 eval "DEFAULT_$LINE"
2915 else
2916 no_cache=1
2917 fi
2918
2919 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
2920
2921fi;
2922
2923 eval "$ac_cv_use_nanox"
2924 if test "$no_cache" != 1; then
2925 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
2926 fi
2927
2928 if test "$wxUSE_NANOX" = yes; then
2929 echo "$as_me:$LINENO: result: yes" >&5
2930echo "${ECHO_T}yes" >&6
2931 else
2932 echo "$as_me:$LINENO: result: no" >&5
2933echo "${ECHO_T}no" >&6
2934 fi
2935
2936
f34ca037
MW
2937# Check whether --enable-gtk2 or --disable-gtk2 was given.
2938if test "${enable_gtk2+set}" = set; then
2939 enableval="$enable_gtk2"
2940 wxUSE_GTK2="$enableval"
2941fi;
a848cd7e 2942
a848cd7e
SC
2943 enablestring=
2944 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
2945echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6
2946 no_cache=0
2947 # Check whether --enable-gpe or --disable-gpe was given.
2948if test "${enable_gpe+set}" = set; then
2949 enableval="$enable_gpe"
2950
2951 if test "$enableval" = yes; then
2952 ac_cv_use_gpe='wxUSE_GPE=yes'
2953 else
2954 ac_cv_use_gpe='wxUSE_GPE=no'
2955 fi
2956
2957else
2958
2959 LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}`
2960 if test "x$LINE" != x ; then
2961 eval "DEFAULT_$LINE"
2962 else
2963 no_cache=1
2964 fi
2965
2966 ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE
2967
2968fi;
2969
2970 eval "$ac_cv_use_gpe"
2971 if test "$no_cache" != 1; then
2972 echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp
2973 fi
2974
2975 if test "$wxUSE_GPE" = yes; then
2976 echo "$as_me:$LINENO: result: yes" >&5
2977echo "${ECHO_T}yes" >&6
2978 else
2979 echo "$as_me:$LINENO: result: no" >&5
2980echo "${ECHO_T}no" >&6
2981 fi
2982
2983
2984
2985 echo "$as_me:$LINENO: checking for --with-libpng" >&5
2986echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
2987 no_cache=0
2988
2989# Check whether --with-libpng or --without-libpng was given.
2990if test "${with_libpng+set}" = set; then
2991 withval="$with_libpng"
2992
2993 if test "$withval" = yes; then
2994 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
2995 elif test "$withval" = no; then
2996 ac_cv_use_libpng='wxUSE_LIBPNG=no'
2997 elif test "$withval" = sys; then
2998 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
2999 elif test "$withval" = builtin; then
3000 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
3001 else
3002 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
3003echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
3004 { (exit 1); exit 1; }; }
3005 fi
3006
3007else
3008
3009 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
3010 if test "x$LINE" != x ; then
3011 eval "DEFAULT_$LINE"
3012 else
3013 no_cache=1
3014 fi
3015
3016 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
3017
3018fi;
3019
3020 eval "$ac_cv_use_libpng"
3021 if test "$no_cache" != 1; then
3022 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
3023 fi
3024
3025 if test "$wxUSE_LIBPNG" = yes; then
3026 echo "$as_me:$LINENO: result: yes" >&5
3027echo "${ECHO_T}yes" >&6
3028 elif test "$wxUSE_LIBPNG" = no; then
3029 echo "$as_me:$LINENO: result: no" >&5
3030echo "${ECHO_T}no" >&6
3031 elif test "$wxUSE_LIBPNG" = sys; then
3032 echo "$as_me:$LINENO: result: system version" >&5
3033echo "${ECHO_T}system version" >&6
3034 elif test "$wxUSE_LIBPNG" = builtin; then
3035 echo "$as_me:$LINENO: result: builtin version" >&5
3036echo "${ECHO_T}builtin version" >&6
3037 else
3038 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
3039echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
3040 { (exit 1); exit 1; }; }
3041 fi
3042
3043
3044 echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
3045echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
3046 no_cache=0
3047
3048# Check whether --with-libjpeg or --without-libjpeg was given.
3049if test "${with_libjpeg+set}" = set; then
3050 withval="$with_libjpeg"
3051
3052 if test "$withval" = yes; then
3053 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
3054 elif test "$withval" = no; then
3055 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
3056 elif test "$withval" = sys; then
3057 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
3058 elif test "$withval" = builtin; then
3059 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
3060 else
3061 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
3062echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
3063 { (exit 1); exit 1; }; }
3064 fi
3065
3066else
3067
3068 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
3069 if test "x$LINE" != x ; then
3070 eval "DEFAULT_$LINE"
3071 else
3072 no_cache=1
3073 fi
3074
3075 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
3076
3077fi;
3078
3079 eval "$ac_cv_use_libjpeg"
3080 if test "$no_cache" != 1; then
3081 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
3082 fi
3083
3084 if test "$wxUSE_LIBJPEG" = yes; then
3085 echo "$as_me:$LINENO: result: yes" >&5
3086echo "${ECHO_T}yes" >&6
3087 elif test "$wxUSE_LIBJPEG" = no; then
3088 echo "$as_me:$LINENO: result: no" >&5
3089echo "${ECHO_T}no" >&6
3090 elif test "$wxUSE_LIBJPEG" = sys; then
3091 echo "$as_me:$LINENO: result: system version" >&5
3092echo "${ECHO_T}system version" >&6
3093 elif test "$wxUSE_LIBJPEG" = builtin; then
3094 echo "$as_me:$LINENO: result: builtin version" >&5
3095echo "${ECHO_T}builtin version" >&6
3096 else
3097 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
3098echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
3099 { (exit 1); exit 1; }; }
3100 fi
3101
3102
3103 echo "$as_me:$LINENO: checking for --with-libtiff" >&5
3104echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
3105 no_cache=0
3106
3107# Check whether --with-libtiff or --without-libtiff was given.
3108if test "${with_libtiff+set}" = set; then
3109 withval="$with_libtiff"
3110
3111 if test "$withval" = yes; then
3112 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
3113 elif test "$withval" = no; then
3114 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
3115 elif test "$withval" = sys; then
3116 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
3117 elif test "$withval" = builtin; then
3118 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
3119 else
3120 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
3121echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
3122 { (exit 1); exit 1; }; }
3123 fi
3124
3125else
3126
3127 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
3128 if test "x$LINE" != x ; then
3129 eval "DEFAULT_$LINE"
3130 else
3131 no_cache=1
3132 fi
3133
3134 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
3135
3136fi;
3137
3138 eval "$ac_cv_use_libtiff"
3139 if test "$no_cache" != 1; then
3140 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
3141 fi
3142
3143 if test "$wxUSE_LIBTIFF" = yes; then
3144 echo "$as_me:$LINENO: result: yes" >&5
3145echo "${ECHO_T}yes" >&6
3146 elif test "$wxUSE_LIBTIFF" = no; then
3147 echo "$as_me:$LINENO: result: no" >&5
3148echo "${ECHO_T}no" >&6
3149 elif test "$wxUSE_LIBTIFF" = sys; then
3150 echo "$as_me:$LINENO: result: system version" >&5
3151echo "${ECHO_T}system version" >&6
3152 elif test "$wxUSE_LIBTIFF" = builtin; then
3153 echo "$as_me:$LINENO: result: builtin version" >&5
3154echo "${ECHO_T}builtin version" >&6
3155 else
3156 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
3157echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
3158 { (exit 1); exit 1; }; }
3159 fi
3160
3161
3162 echo "$as_me:$LINENO: checking for --with-libxpm" >&5
3163echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6
3164 no_cache=0
3165
3166# Check whether --with-libxpm or --without-libxpm was given.
3167if test "${with_libxpm+set}" = set; then
3168 withval="$with_libxpm"
3169
3170 if test "$withval" = yes; then
3171 ac_cv_use_libxpm='wxUSE_LIBXPM=yes'
3172 elif test "$withval" = no; then
3173 ac_cv_use_libxpm='wxUSE_LIBXPM=no'
3174 elif test "$withval" = sys; then
3175 ac_cv_use_libxpm='wxUSE_LIBXPM=sys'
3176 elif test "$withval" = builtin; then
3177 ac_cv_use_libxpm='wxUSE_LIBXPM=builtin'
3178 else
3179 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3180echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3181 { (exit 1); exit 1; }; }
3182 fi
3183
3184else
3185
3186 LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}`
3187 if test "x$LINE" != x ; then
3188 eval "DEFAULT_$LINE"
3189 else
3190 no_cache=1
3191 fi
3192
3193 ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM
3194
3195fi;
3196
3197 eval "$ac_cv_use_libxpm"
3198 if test "$no_cache" != 1; then
3199 echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp
3200 fi
3201
3202 if test "$wxUSE_LIBXPM" = yes; then
3203 echo "$as_me:$LINENO: result: yes" >&5
3204echo "${ECHO_T}yes" >&6
3205 elif test "$wxUSE_LIBXPM" = no; then
3206 echo "$as_me:$LINENO: result: no" >&5
3207echo "${ECHO_T}no" >&6
3208 elif test "$wxUSE_LIBXPM" = sys; then
3209 echo "$as_me:$LINENO: result: system version" >&5
3210echo "${ECHO_T}system version" >&6
3211 elif test "$wxUSE_LIBXPM" = builtin; then
3212 echo "$as_me:$LINENO: result: builtin version" >&5
3213echo "${ECHO_T}builtin version" >&6
3214 else
3215 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3216echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3217 { (exit 1); exit 1; }; }
3218 fi
3219
3220
1c14217d
VZ
3221 withstring=
3222 echo "$as_me:$LINENO: checking for --${withstring:-with}-libmspack" >&5
3223echo $ECHO_N "checking for --${withstring:-with}-libmspack... $ECHO_C" >&6
a848cd7e
SC
3224 no_cache=0
3225
3226# Check whether --with-libmspack or --without-libmspack was given.
3227if test "${with_libmspack+set}" = set; then
3228 withval="$with_libmspack"
3229
3230 if test "$withval" = yes; then
3231 ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
3232 else
3233 ac_cv_use_libmspack='wxUSE_LIBMSPACK=no'
3234 fi
3235
3236else
3237
3238 LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}`
3239 if test "x$LINE" != x ; then
3240 eval "DEFAULT_$LINE"
3241 else
3242 no_cache=1
3243 fi
3244
3245 ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK
3246
3247fi;
3248
3249 eval "$ac_cv_use_libmspack"
3250 if test "$no_cache" != 1; then
3251 echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp
3252 fi
3253
3254 if test "$wxUSE_LIBMSPACK" = yes; then
3255 echo "$as_me:$LINENO: result: yes" >&5
3256echo "${ECHO_T}yes" >&6
3257 else
3258 echo "$as_me:$LINENO: result: no" >&5
3259echo "${ECHO_T}no" >&6
3260 fi
3261
3262
1c14217d
VZ
3263 withstring=
3264 echo "$as_me:$LINENO: checking for --${withstring:-with}-sdl" >&5
3265echo $ECHO_N "checking for --${withstring:-with}-sdl... $ECHO_C" >&6
a848cd7e
SC
3266 no_cache=0
3267
3268# Check whether --with-sdl or --without-sdl was given.
3269if test "${with_sdl+set}" = set; then
3270 withval="$with_sdl"
3271
3272 if test "$withval" = yes; then
3273 ac_cv_use_sdl='wxUSE_LIBSDL=yes'
3274 else
3275 ac_cv_use_sdl='wxUSE_LIBSDL=no'
3276 fi
3277
3278else
3279
3280 LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}`
3281 if test "x$LINE" != x ; then
3282 eval "DEFAULT_$LINE"
3283 else
3284 no_cache=1
3285 fi
3286
3287 ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL
3288
3289fi;
3290
3291 eval "$ac_cv_use_sdl"
3292 if test "$no_cache" != 1; then
3293 echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp
3294 fi
3295
3296 if test "$wxUSE_LIBSDL" = yes; then
3297 echo "$as_me:$LINENO: result: yes" >&5
3298echo "${ECHO_T}yes" >&6
3299 else
3300 echo "$as_me:$LINENO: result: no" >&5
3301echo "${ECHO_T}no" >&6
3302 fi
3303
3304
1c14217d
VZ
3305 withstring=
3306 echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomeprint" >&5
3307echo $ECHO_N "checking for --${withstring:-with}-gnomeprint... $ECHO_C" >&6
d1c38808
VZ
3308 no_cache=0
3309
3310# Check whether --with-gnomeprint or --without-gnomeprint was given.
3311if test "${with_gnomeprint+set}" = set; then
3312 withval="$with_gnomeprint"
3313
3314 if test "$withval" = yes; then
3315 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes'
3316 else
3317 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no'
3318 fi
3319
3320else
3321
3322 LINE=`grep "wxUSE_LIBGNOMEPRINT" ${wx_arg_cache_file}`
3323 if test "x$LINE" != x ; then
3324 eval "DEFAULT_$LINE"
3325 else
3326 no_cache=1
3327 fi
3328
3329 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT='$DEFAULT_wxUSE_LIBGNOMEPRINT
3330
3331fi;
3332
3333 eval "$ac_cv_use_gnomeprint"
3334 if test "$no_cache" != 1; then
3335 echo $ac_cv_use_gnomeprint >> ${wx_arg_cache_file}.tmp
3336 fi
3337
3338 if test "$wxUSE_LIBGNOMEPRINT" = yes; then
3339 echo "$as_me:$LINENO: result: yes" >&5
3340echo "${ECHO_T}yes" >&6
3341 else
3342 echo "$as_me:$LINENO: result: no" >&5
3343echo "${ECHO_T}no" >&6
3344 fi
3345
3346
2b850ae1
RR
3347 withstring=
3348 echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomevfs" >&5
3349echo $ECHO_N "checking for --${withstring:-with}-gnomevfs... $ECHO_C" >&6
3350 no_cache=0
3351
3352# Check whether --with-gnomevfs or --without-gnomevfs was given.
3353if test "${with_gnomevfs+set}" = set; then
3354 withval="$with_gnomevfs"
3355
3356 if test "$withval" = yes; then
3357 ac_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=yes'
3358 else
3359 ac_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=no'
3360 fi
3361
3362else
3363
3364 LINE=`grep "wxUSE_LIBGNOMEVFS" ${wx_arg_cache_file}`
3365 if test "x$LINE" != x ; then
3366 eval "DEFAULT_$LINE"
3367 else
3368 no_cache=1
3369 fi
3370
3371 ac_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS='$DEFAULT_wxUSE_LIBGNOMEVFS
3372
3373fi;
3374
3375 eval "$ac_cv_use_gnomevfs"
3376 if test "$no_cache" != 1; then
3377 echo $ac_cv_use_gnomevfs >> ${wx_arg_cache_file}.tmp
3378 fi
3379
3380 if test "$wxUSE_LIBGNOMEVFS" = yes; then
3381 echo "$as_me:$LINENO: result: yes" >&5
3382echo "${ECHO_T}yes" >&6
3383 else
3384 echo "$as_me:$LINENO: result: no" >&5
3385echo "${ECHO_T}no" >&6
3386 fi
3387
3388
3565d135
RR
3389 withstring=
3390 echo "$as_me:$LINENO: checking for --${withstring:-with}-hildon" >&5
3391echo $ECHO_N "checking for --${withstring:-with}-hildon... $ECHO_C" >&6
3392 no_cache=0
3393
3394# Check whether --with-hildon or --without-hildon was given.
3395if test "${with_hildon+set}" = set; then
3396 withval="$with_hildon"
3397
3398 if test "$withval" = yes; then
3399 ac_cv_use_hildon='wxUSE_LIBHILDON=yes'
3400 else
3401 ac_cv_use_hildon='wxUSE_LIBHILDON=no'
3402 fi
3403
3404else
3405
3406 LINE=`grep "wxUSE_LIBHILDON" ${wx_arg_cache_file}`
3407 if test "x$LINE" != x ; then
3408 eval "DEFAULT_$LINE"
3409 else
3410 no_cache=1
3411 fi
3412
3413 ac_cv_use_hildon='wxUSE_LIBHILDON='$DEFAULT_wxUSE_LIBHILDON
3414
3415fi;
3416
3417 eval "$ac_cv_use_hildon"
3418 if test "$no_cache" != 1; then
3419 echo $ac_cv_use_hildon >> ${wx_arg_cache_file}.tmp
3420 fi
3421
3422 if test "$wxUSE_LIBHILDON" = yes; then
3423 echo "$as_me:$LINENO: result: yes" >&5
3424echo "${ECHO_T}yes" >&6
3425 else
3426 echo "$as_me:$LINENO: result: no" >&5
3427echo "${ECHO_T}no" >&6
3428 fi
3429
3430
1c14217d
VZ
3431 withstring=
3432 echo "$as_me:$LINENO: checking for --${withstring:-with}-opengl" >&5
3433echo $ECHO_N "checking for --${withstring:-with}-opengl... $ECHO_C" >&6
a848cd7e
SC
3434 no_cache=0
3435
3436# Check whether --with-opengl or --without-opengl was given.
3437if test "${with_opengl+set}" = set; then
3438 withval="$with_opengl"
3439
3440 if test "$withval" = yes; then
3441 ac_cv_use_opengl='wxUSE_OPENGL=yes'
3442 else
3443 ac_cv_use_opengl='wxUSE_OPENGL=no'
3444 fi
3445
3446else
3447
3448 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
3449 if test "x$LINE" != x ; then
3450 eval "DEFAULT_$LINE"
3451 else
3452 no_cache=1
3453 fi
3454
3455 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
3456
3457fi;
3458
3459 eval "$ac_cv_use_opengl"
3460 if test "$no_cache" != 1; then
3461 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
3462 fi
3463
3464 if test "$wxUSE_OPENGL" = yes; then
3465 echo "$as_me:$LINENO: result: yes" >&5
3466echo "${ECHO_T}yes" >&6
3467 else
3468 echo "$as_me:$LINENO: result: no" >&5
3469echo "${ECHO_T}no" >&6
3470 fi
3471
3472
4353a8df
VZ
3473if test "$wxUSE_UNIVERSAL" = "yes"; then
3474
3475# Check whether --with-themes or --without-themes was given.
3476if test "${with_themes+set}" = set; then
3477 withval="$with_themes"
3478 wxUNIV_THEMES="$withval"
3479fi;
3480fi
3481
a848cd7e
SC
3482fi
3483
3484
1c14217d
VZ
3485 withstring=
3486 echo "$as_me:$LINENO: checking for --${withstring:-with}-dmalloc" >&5
3487echo $ECHO_N "checking for --${withstring:-with}-dmalloc... $ECHO_C" >&6
a848cd7e
SC
3488 no_cache=0
3489
3490# Check whether --with-dmalloc or --without-dmalloc was given.
3491if test "${with_dmalloc+set}" = set; then
3492 withval="$with_dmalloc"
3493
3494 if test "$withval" = yes; then
3495 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
3496 else
3497 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
3498 fi
3499
3500else
3501
3502 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
3503 if test "x$LINE" != x ; then
3504 eval "DEFAULT_$LINE"
3505 else
3506 no_cache=1
3507 fi
3508
3509 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
3510
3511fi;
3512
3513 eval "$ac_cv_use_dmalloc"
3514 if test "$no_cache" != 1; then
3515 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
3516 fi
3517
3518 if test "$wxUSE_DMALLOC" = yes; then
3519 echo "$as_me:$LINENO: result: yes" >&5
3520echo "${ECHO_T}yes" >&6
3521 else
3522 echo "$as_me:$LINENO: result: no" >&5
3523echo "${ECHO_T}no" >&6
3524 fi
3525
3526
3527 echo "$as_me:$LINENO: checking for --with-regex" >&5
3528echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3529 no_cache=0
3530
3531# Check whether --with-regex or --without-regex was given.
3532if test "${with_regex+set}" = set; then
3533 withval="$with_regex"
3534
3535 if test "$withval" = yes; then
3536 ac_cv_use_regex='wxUSE_REGEX=yes'
3537 elif test "$withval" = no; then
3538 ac_cv_use_regex='wxUSE_REGEX=no'
3539 elif test "$withval" = sys; then
3540 ac_cv_use_regex='wxUSE_REGEX=sys'
3541 elif test "$withval" = builtin; then
3542 ac_cv_use_regex='wxUSE_REGEX=builtin'
3543 else
3544 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3545echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3546 { (exit 1); exit 1; }; }
3547 fi
3548
3549else
3550
3551 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
3552 if test "x$LINE" != x ; then
3553 eval "DEFAULT_$LINE"
3554 else
3555 no_cache=1
3556 fi
3557
3558 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3559
3560fi;
3561
3562 eval "$ac_cv_use_regex"
3563 if test "$no_cache" != 1; then
3564 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
3565 fi
3566
3567 if test "$wxUSE_REGEX" = yes; then
3568 echo "$as_me:$LINENO: result: yes" >&5
3569echo "${ECHO_T}yes" >&6
3570 elif test "$wxUSE_REGEX" = no; then
3571 echo "$as_me:$LINENO: result: no" >&5
3572echo "${ECHO_T}no" >&6
3573 elif test "$wxUSE_REGEX" = sys; then
3574 echo "$as_me:$LINENO: result: system version" >&5
3575echo "${ECHO_T}system version" >&6
3576 elif test "$wxUSE_REGEX" = builtin; then
3577 echo "$as_me:$LINENO: result: builtin version" >&5
3578echo "${ECHO_T}builtin version" >&6
3579 else
3580 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3581echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3582 { (exit 1); exit 1; }; }
3583 fi
3584
3585
3586 echo "$as_me:$LINENO: checking for --with-zlib" >&5
3587echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
3588 no_cache=0
3589
3590# Check whether --with-zlib or --without-zlib was given.
3591if test "${with_zlib+set}" = set; then
3592 withval="$with_zlib"
3593
3594 if test "$withval" = yes; then
3595 ac_cv_use_zlib='wxUSE_ZLIB=yes'
3596 elif test "$withval" = no; then
3597 ac_cv_use_zlib='wxUSE_ZLIB=no'
3598 elif test "$withval" = sys; then
3599 ac_cv_use_zlib='wxUSE_ZLIB=sys'
3600 elif test "$withval" = builtin; then
3601 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
3602 else
3603 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3604echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3605 { (exit 1); exit 1; }; }
3606 fi
3607
3608else
3609
3610 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
3611 if test "x$LINE" != x ; then
3612 eval "DEFAULT_$LINE"
3613 else
3614 no_cache=1
3615 fi
3616
3617 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
3618
3619fi;
3620
3621 eval "$ac_cv_use_zlib"
3622 if test "$no_cache" != 1; then
3623 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
3624 fi
3625
3626 if test "$wxUSE_ZLIB" = yes; then
3627 echo "$as_me:$LINENO: result: yes" >&5
3628echo "${ECHO_T}yes" >&6
3629 elif test "$wxUSE_ZLIB" = no; then
3630 echo "$as_me:$LINENO: result: no" >&5
3631echo "${ECHO_T}no" >&6
3632 elif test "$wxUSE_ZLIB" = sys; then
3633 echo "$as_me:$LINENO: result: system version" >&5
3634echo "${ECHO_T}system version" >&6
3635 elif test "$wxUSE_ZLIB" = builtin; then
3636 echo "$as_me:$LINENO: result: builtin version" >&5
3637echo "${ECHO_T}builtin version" >&6
3638 else
3639 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3640echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3641 { (exit 1); exit 1; }; }
3642 fi
3643
3644
3645 echo "$as_me:$LINENO: checking for --with-odbc" >&5
3646echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
3647 no_cache=0
3648
3649# Check whether --with-odbc or --without-odbc was given.
3650if test "${with_odbc+set}" = set; then
3651 withval="$with_odbc"
3652
3653 if test "$withval" = yes; then
3654 ac_cv_use_odbc='wxUSE_ODBC=yes'
3655 elif test "$withval" = no; then
3656 ac_cv_use_odbc='wxUSE_ODBC=no'
3657 elif test "$withval" = sys; then
3658 ac_cv_use_odbc='wxUSE_ODBC=sys'
3659 elif test "$withval" = builtin; then
3660 ac_cv_use_odbc='wxUSE_ODBC=builtin'
3661 else
3662 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3663echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3664 { (exit 1); exit 1; }; }
3665 fi
3666
3667else
3668
3669 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
3670 if test "x$LINE" != x ; then
3671 eval "DEFAULT_$LINE"
3672 else
3673 no_cache=1
3674 fi
3675
3676 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
3677
3678fi;
3679
3680 eval "$ac_cv_use_odbc"
3681 if test "$no_cache" != 1; then
3682 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3683 fi
3684
3685 if test "$wxUSE_ODBC" = yes; then
3686 echo "$as_me:$LINENO: result: yes" >&5
3687echo "${ECHO_T}yes" >&6
3688 elif test "$wxUSE_ODBC" = no; then
3689 echo "$as_me:$LINENO: result: no" >&5
3690echo "${ECHO_T}no" >&6
3691 elif test "$wxUSE_ODBC" = sys; then
3692 echo "$as_me:$LINENO: result: system version" >&5
3693echo "${ECHO_T}system version" >&6
3694 elif test "$wxUSE_ODBC" = builtin; then
3695 echo "$as_me:$LINENO: result: builtin version" >&5
3696echo "${ECHO_T}builtin version" >&6
3697 else
3698 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3699echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3700 { (exit 1); exit 1; }; }
3701 fi
3702
3703
3704 echo "$as_me:$LINENO: checking for --with-expat" >&5
3705echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3706 no_cache=0
3707
3708# Check whether --with-expat or --without-expat was given.
3709if test "${with_expat+set}" = set; then
3710 withval="$with_expat"
3711
3712 if test "$withval" = yes; then
3713 ac_cv_use_expat='wxUSE_EXPAT=yes'
3714 elif test "$withval" = no; then
3715 ac_cv_use_expat='wxUSE_EXPAT=no'
3716 elif test "$withval" = sys; then
3717 ac_cv_use_expat='wxUSE_EXPAT=sys'
3718 elif test "$withval" = builtin; then
3719 ac_cv_use_expat='wxUSE_EXPAT=builtin'
3720 else
3721 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3722echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3723 { (exit 1); exit 1; }; }
3724 fi
3725
3726else
3727
3728 LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3729 if test "x$LINE" != x ; then
3730 eval "DEFAULT_$LINE"
3731 else
3732 no_cache=1
3733 fi
3734
3735 ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3736
3737fi;
3738
3739 eval "$ac_cv_use_expat"
3740 if test "$no_cache" != 1; then
3741 echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3742 fi
3743
3744 if test "$wxUSE_EXPAT" = yes; then
3745 echo "$as_me:$LINENO: result: yes" >&5
3746echo "${ECHO_T}yes" >&6
3747 elif test "$wxUSE_EXPAT" = no; then
3748 echo "$as_me:$LINENO: result: no" >&5
3749echo "${ECHO_T}no" >&6
3750 elif test "$wxUSE_EXPAT" = sys; then
3751 echo "$as_me:$LINENO: result: system version" >&5
3752echo "${ECHO_T}system version" >&6
3753 elif test "$wxUSE_EXPAT" = builtin; then
3754 echo "$as_me:$LINENO: result: builtin version" >&5
3755echo "${ECHO_T}builtin version" >&6
3756 else
3757 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3758echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3759 { (exit 1); exit 1; }; }
3760 fi
3761
3762
3763
3764
3765 enablestring=
3766 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3767echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
3768 no_cache=0
3769 # Check whether --enable-shared or --disable-shared was given.
3770if test "${enable_shared+set}" = set; then
3771 enableval="$enable_shared"
3772
3773 if test "$enableval" = yes; then
3774 ac_cv_use_shared='wxUSE_SHARED=yes'
3775 else
3776 ac_cv_use_shared='wxUSE_SHARED=no'
3777 fi
3778
3779else
3780
3781 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3782 if test "x$LINE" != x ; then
3783 eval "DEFAULT_$LINE"
3784 else
3785 no_cache=1
3786 fi
3787
3788 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
3789
3790fi;
3791
3792 eval "$ac_cv_use_shared"
3793 if test "$no_cache" != 1; then
3794 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3795 fi
3796
3797 if test "$wxUSE_SHARED" = yes; then
3798 echo "$as_me:$LINENO: result: yes" >&5
3799echo "${ECHO_T}yes" >&6
3800 else
3801 echo "$as_me:$LINENO: result: no" >&5
3802echo "${ECHO_T}no" >&6
3803 fi
3804
3805
3806 enablestring=
3807 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3808echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
3809 no_cache=0
3810 # Check whether --enable-optimise or --disable-optimise was given.
3811if test "${enable_optimise+set}" = set; then
3812 enableval="$enable_optimise"
3813
3814 if test "$enableval" = yes; then
3815 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3816 else
3817 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3818 fi
3819
3820else
3821
3822 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3823 if test "x$LINE" != x ; then
3824 eval "DEFAULT_$LINE"
3825 else
3826 no_cache=1
3827 fi
3828
3829 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
3830
3831fi;
3832
3833 eval "$ac_cv_use_optimise"
3834 if test "$no_cache" != 1; then
3835 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3836 fi
3837
3838 if test "$wxUSE_OPTIMISE" = yes; then
3839 echo "$as_me:$LINENO: result: yes" >&5
3840echo "${ECHO_T}yes" >&6
3841 else
3842 echo "$as_me:$LINENO: result: no" >&5
3843echo "${ECHO_T}no" >&6
3844 fi
3845
3846
3847 enablestring=
3848 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3849echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
3850 no_cache=0
3851 # Check whether --enable-debug or --disable-debug was given.
3852if test "${enable_debug+set}" = set; then
3853 enableval="$enable_debug"
3854
3855 if test "$enableval" = yes; then
3856 ac_cv_use_debug='wxUSE_DEBUG=yes'
3857 else
3858 ac_cv_use_debug='wxUSE_DEBUG=no'
3859 fi
3860
3861else
3862
3863 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3864 if test "x$LINE" != x ; then
3865 eval "DEFAULT_$LINE"
3866 else
3867 no_cache=1
3868 fi
3869
3870 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
3871
3872fi;
3873
3874 eval "$ac_cv_use_debug"
3875 if test "$no_cache" != 1; then
3876 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3877 fi
3878
3879 if test "$wxUSE_DEBUG" = yes; then
3880 echo "$as_me:$LINENO: result: yes" >&5
3881echo "${ECHO_T}yes" >&6
3882 else
3883 echo "$as_me:$LINENO: result: no" >&5
3884echo "${ECHO_T}no" >&6
3885 fi
3886
3887
3888 enablestring=
3889 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3890echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3891 no_cache=0
3892 # Check whether --enable-stl or --disable-stl was given.
3893if test "${enable_stl+set}" = set; then
3894 enableval="$enable_stl"
3895
3896 if test "$enableval" = yes; then
3897 ac_cv_use_stl='wxUSE_STL=yes'
3898 else
3899 ac_cv_use_stl='wxUSE_STL=no'
3900 fi
3901
3902else
3903
3904 LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3905 if test "x$LINE" != x ; then
3906 eval "DEFAULT_$LINE"
3907 else
3908 no_cache=1
3909 fi
3910
3911 ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3912
3913fi;
3914
3915 eval "$ac_cv_use_stl"
3916 if test "$no_cache" != 1; then
3917 echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3918 fi
3919
3920 if test "$wxUSE_STL" = yes; then
3921 echo "$as_me:$LINENO: result: yes" >&5
3922echo "${ECHO_T}yes" >&6
3923 else
3924 echo "$as_me:$LINENO: result: no" >&5
3925echo "${ECHO_T}no" >&6
3926 fi
3927
3928if test "$USE_OS2" = "1"; then
69120ee4 3929 DEFAULT_wxUSE_OMF=no
a848cd7e
SC
3930
3931 enablestring=
3932 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
3933echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6
3934 no_cache=0
3935 # Check whether --enable-omf or --disable-omf was given.
3936if test "${enable_omf+set}" = set; then
3937 enableval="$enable_omf"
3938
3939 if test "$enableval" = yes; then
3940 ac_cv_use_omf='wxUSE_OMF=yes'
3941 else
3942 ac_cv_use_omf='wxUSE_OMF=no'
3943 fi
3944
3945else
3946
3947 LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}`
3948 if test "x$LINE" != x ; then
3949 eval "DEFAULT_$LINE"
3950 else
3951 no_cache=1
3952 fi
3953
3954 ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF
3955
3956fi;
3957
3958 eval "$ac_cv_use_omf"
3959 if test "$no_cache" != 1; then
3960 echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp
3961 fi
3962
3963 if test "$wxUSE_OMF" = yes; then
3964 echo "$as_me:$LINENO: result: yes" >&5
3965echo "${ECHO_T}yes" >&6
3966 else
3967 echo "$as_me:$LINENO: result: no" >&5
3968echo "${ECHO_T}no" >&6
3969 fi
3970
3971fi
3972
3973if test "$wxUSE_DEBUG" = "yes"; then
3974 DEFAULT_wxUSE_DEBUG_FLAG=yes
3975 DEFAULT_wxUSE_DEBUG_INFO=yes
3976 BUILD=debug
3977elif test "$wxUSE_DEBUG" = "no"; then
3978 DEFAULT_wxUSE_DEBUG_FLAG=no
3979 DEFAULT_wxUSE_DEBUG_INFO=no
3980 BUILD=release
3981fi
3982
3983
3984 enablestring=
3985 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
3986echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
3987 no_cache=0
3988 # Check whether --enable-debug_flag or --disable-debug_flag was given.
3989if test "${enable_debug_flag+set}" = set; then
3990 enableval="$enable_debug_flag"
3991
3992 if test "$enableval" = yes; then
3993 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
3994 else
3995 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
3996 fi
3997
3998else
3999
4000 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
4001 if test "x$LINE" != x ; then
4002 eval "DEFAULT_$LINE"
4003 else
4004 no_cache=1
4005 fi
4006
4007 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
4008
4009fi;
4010
4011 eval "$ac_cv_use_debug_flag"
4012 if test "$no_cache" != 1; then
4013 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
4014 fi
4015
4016 if test "$wxUSE_DEBUG_FLAG" = yes; then
4017 echo "$as_me:$LINENO: result: yes" >&5
4018echo "${ECHO_T}yes" >&6
4019 else
4020 echo "$as_me:$LINENO: result: no" >&5
4021echo "${ECHO_T}no" >&6
4022 fi
4023
4024
4025 enablestring=
4026 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
4027echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
4028 no_cache=0
4029 # Check whether --enable-debug_info or --disable-debug_info was given.
4030if test "${enable_debug_info+set}" = set; then
4031 enableval="$enable_debug_info"
4032
4033 if test "$enableval" = yes; then
4034 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
4035 else
4036 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
4037 fi
4038
4039else
4040
4041 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
4042 if test "x$LINE" != x ; then
4043 eval "DEFAULT_$LINE"
4044 else
4045 no_cache=1
4046 fi
4047
4048 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
4049
4050fi;
4051
4052 eval "$ac_cv_use_debug_info"
4053 if test "$no_cache" != 1; then
4054 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
4055 fi
4056
4057 if test "$wxUSE_DEBUG_INFO" = yes; then
4058 echo "$as_me:$LINENO: result: yes" >&5
4059echo "${ECHO_T}yes" >&6
4060 else
4061 echo "$as_me:$LINENO: result: no" >&5
4062echo "${ECHO_T}no" >&6
4063 fi
4064
4065
4066 enablestring=
4067 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
4068echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
4069 no_cache=0
4070 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
4071if test "${enable_debug_gdb+set}" = set; then
4072 enableval="$enable_debug_gdb"
4073
4074 if test "$enableval" = yes; then
4075 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
4076 else
4077 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
4078 fi
4079
4080else
4081
4082 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
4083 if test "x$LINE" != x ; then
4084 eval "DEFAULT_$LINE"
4085 else
4086 no_cache=1
4087 fi
4088
4089 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
4090
4091fi;
4092
4093 eval "$ac_cv_use_debug_gdb"
4094 if test "$no_cache" != 1; then
4095 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
4096 fi
4097
4098 if test "$wxUSE_DEBUG_GDB" = yes; then
4099 echo "$as_me:$LINENO: result: yes" >&5
4100echo "${ECHO_T}yes" >&6
4101 else
4102 echo "$as_me:$LINENO: result: no" >&5
4103echo "${ECHO_T}no" >&6
4104 fi
4105
4106
4107 enablestring=
4108 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
4109echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
4110 no_cache=0
4111 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
4112if test "${enable_debug_cntxt+set}" = set; then
4113 enableval="$enable_debug_cntxt"
4114
4115 if test "$enableval" = yes; then
4116 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
4117 else
4118 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
4119 fi
4120
4121else
4122
4123 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
4124 if test "x$LINE" != x ; then
4125 eval "DEFAULT_$LINE"
4126 else
4127 no_cache=1
4128 fi
4129
4130 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
4131
4132fi;
4133
4134 eval "$ac_cv_use_debug_cntxt"
4135 if test "$no_cache" != 1; then
4136 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
4137 fi
4138
4139 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
4140 echo "$as_me:$LINENO: result: yes" >&5
4141echo "${ECHO_T}yes" >&6
4142 else
4143 echo "$as_me:$LINENO: result: no" >&5
4144echo "${ECHO_T}no" >&6
4145 fi
4146
4147
4148 enablestring=
4149 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
4150echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
4151 no_cache=0
4152 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
4153if test "${enable_mem_tracing+set}" = set; then
4154 enableval="$enable_mem_tracing"
4155
4156 if test "$enableval" = yes; then
4157 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
4158 else
4159 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
4160 fi
4161
4162else
4163
4164 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
4165 if test "x$LINE" != x ; then
4166 eval "DEFAULT_$LINE"
4167 else
4168 no_cache=1
4169 fi
4170
4171 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
4172
4173fi;
4174
4175 eval "$ac_cv_use_mem_tracing"
4176 if test "$no_cache" != 1; then
4177 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
4178 fi
4179
4180 if test "$wxUSE_MEM_TRACING" = yes; then
4181 echo "$as_me:$LINENO: result: yes" >&5
4182echo "${ECHO_T}yes" >&6
4183 else
4184 echo "$as_me:$LINENO: result: no" >&5
4185echo "${ECHO_T}no" >&6
4186 fi
4187
4188
4189 enablestring=
4190 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
4191echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
4192 no_cache=0
4193 # Check whether --enable-profile or --disable-profile was given.
4194if test "${enable_profile+set}" = set; then
4195 enableval="$enable_profile"
4196
4197 if test "$enableval" = yes; then
4198 ac_cv_use_profile='wxUSE_PROFILE=yes'
4199 else
4200 ac_cv_use_profile='wxUSE_PROFILE=no'
4201 fi
4202
4203else
4204
4205 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
4206 if test "x$LINE" != x ; then
4207 eval "DEFAULT_$LINE"
4208 else
4209 no_cache=1
4210 fi
4211
4212 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
4213
4214fi;
4215
4216 eval "$ac_cv_use_profile"
4217 if test "$no_cache" != 1; then
4218 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
4219 fi
4220
4221 if test "$wxUSE_PROFILE" = yes; then
4222 echo "$as_me:$LINENO: result: yes" >&5
4223echo "${ECHO_T}yes" >&6
4224 else
4225 echo "$as_me:$LINENO: result: no" >&5
4226echo "${ECHO_T}no" >&6
4227 fi
4228
4229
4230 enablestring=
4231 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
4232echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
4233 no_cache=0
4234 # Check whether --enable-no_rtti or --disable-no_rtti was given.
4235if test "${enable_no_rtti+set}" = set; then
4236 enableval="$enable_no_rtti"
4237
4238 if test "$enableval" = yes; then
4239 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
4240 else
4241 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
4242 fi
4243
4244else
4245
4246 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
4247 if test "x$LINE" != x ; then
4248 eval "DEFAULT_$LINE"
4249 else
4250 no_cache=1
4251 fi
4252
4253 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
4254
4255fi;
4256
4257 eval "$ac_cv_use_no_rtti"
4258 if test "$no_cache" != 1; then
4259 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
4260 fi
4261
4262 if test "$wxUSE_NO_RTTI" = yes; then
4263 echo "$as_me:$LINENO: result: yes" >&5
4264echo "${ECHO_T}yes" >&6
4265 else
4266 echo "$as_me:$LINENO: result: no" >&5
4267echo "${ECHO_T}no" >&6
4268 fi
4269
4270
4271 enablestring=
4272 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
4273echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
4274 no_cache=0
4275 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
4276if test "${enable_no_exceptions+set}" = set; then
4277 enableval="$enable_no_exceptions"
4278
4279 if test "$enableval" = yes; then
4280 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
4281 else
4282 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
4283 fi
4284
4285else
4286
4287 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
4288 if test "x$LINE" != x ; then
4289 eval "DEFAULT_$LINE"
4290 else
4291 no_cache=1
4292 fi
4293
4294 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
4295
4296fi;
4297
4298 eval "$ac_cv_use_no_exceptions"
4299 if test "$no_cache" != 1; then
4300 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
4301 fi
4302
4303 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
4304 echo "$as_me:$LINENO: result: yes" >&5
4305echo "${ECHO_T}yes" >&6
4306 else
4307 echo "$as_me:$LINENO: result: no" >&5
4308echo "${ECHO_T}no" >&6
4309 fi
4310
4311
4312 enablestring=
4313 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
4314echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
4315 no_cache=0
4316 # Check whether --enable-permissive or --disable-permissive was given.
4317if test "${enable_permissive+set}" = set; then
4318 enableval="$enable_permissive"
4319
4320 if test "$enableval" = yes; then
4321 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
4322 else
4323 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
4324 fi
4325
4326else
4327
4328 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
4329 if test "x$LINE" != x ; then
4330 eval "DEFAULT_$LINE"
4331 else
4332 no_cache=1
4333 fi
4334
4335 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
4336
4337fi;
4338
4339 eval "$ac_cv_use_permissive"
4340 if test "$no_cache" != 1; then
4341 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
4342 fi
4343
4344 if test "$wxUSE_PERMISSIVE" = yes; then
4345 echo "$as_me:$LINENO: result: yes" >&5
4346echo "${ECHO_T}yes" >&6
4347 else
4348 echo "$as_me:$LINENO: result: no" >&5
4349echo "${ECHO_T}no" >&6
4350 fi
4351
4352
4353 enablestring=
4354 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
4355echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
4356 no_cache=0
4357 # Check whether --enable-no_deps or --disable-no_deps was given.
4358if test "${enable_no_deps+set}" = set; then
4359 enableval="$enable_no_deps"
4360
4361 if test "$enableval" = yes; then
4362 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
4363 else
4364 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
4365 fi
4366
4367else
4368
4369 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
4370 if test "x$LINE" != x ; then
4371 eval "DEFAULT_$LINE"
4372 else
4373 no_cache=1
4374 fi
4375
4376 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
4377
4378fi;
4379
4380 eval "$ac_cv_use_no_deps"
4381 if test "$no_cache" != 1; then
4382 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
4383 fi
4384
4385 if test "$wxUSE_NO_DEPS" = yes; then
4386 echo "$as_me:$LINENO: result: yes" >&5
4387echo "${ECHO_T}yes" >&6
4388 else
4389 echo "$as_me:$LINENO: result: no" >&5
4390echo "${ECHO_T}no" >&6
4391 fi
4392
4393
95768535 4394 enablestring=
7afc46ab
KO
4395 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal_binary" >&5
4396echo $ECHO_N "checking for --${enablestring:-enable}-universal_binary... $ECHO_C" >&6
4397 no_cache=0
4398 # Check whether --enable-universal_binary or --disable-universal_binary was given.
4399if test "${enable_universal_binary+set}" = set; then
4400 enableval="$enable_universal_binary"
4401
95768535 4402 wx_cv_use_universal_binary="wxUSE_UNIVERSAL_BINARY='$enableval'"
7afc46ab
KO
4403
4404else
4405
4406 LINE=`grep "wxUSE_UNIVERSAL_BINARY" ${wx_arg_cache_file}`
4407 if test "x$LINE" != x ; then
4408 eval "DEFAULT_$LINE"
95768535 4409 wx_cv_use_universal_binary='wxUSE_UNIVERSAL_BINARY='$DEFAULT_wxUSE_UNIVERSAL_BINARY
7afc46ab
KO
4410 else
4411 no_cache=1
95768535 4412 wx_cv_use_universal_binary="wxUSE_UNIVERSAL_BINARY=no"
7afc46ab
KO
4413 fi
4414
7afc46ab
KO
4415fi;
4416
95768535 4417 eval "$wx_cv_use_universal_binary"
7afc46ab 4418 if test "$no_cache" != 1; then
95768535 4419 echo $wx_cv_use_universal_binary >> ${wx_arg_cache_file}.tmp
7afc46ab
KO
4420 fi
4421
95768535
MW
4422 echo "$as_me:$LINENO: result: $wxUSE_UNIVERSAL_BINARY" >&5
4423echo "${ECHO_T}$wxUSE_UNIVERSAL_BINARY" >&6
7afc46ab
KO
4424
4425
a848cd7e 4426
dee1a63f
MB
4427 enablestring=enable
4428 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
4429echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
a848cd7e 4430 no_cache=0
dee1a63f
MB
4431 # Check whether --enable-compat24 or --disable-compat24 was given.
4432if test "${enable_compat24+set}" = set; then
4433 enableval="$enable_compat24"
a848cd7e
SC
4434
4435 if test "$enableval" = yes; then
dee1a63f 4436 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
a848cd7e 4437 else
dee1a63f 4438 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
a848cd7e
SC
4439 fi
4440
4441else
4442
dee1a63f 4443 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
a848cd7e
SC
4444 if test "x$LINE" != x ; then
4445 eval "DEFAULT_$LINE"
4446 else
4447 no_cache=1
4448 fi
4449
dee1a63f 4450 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
a848cd7e
SC
4451
4452fi;
4453
dee1a63f 4454 eval "$ac_cv_use_compat24"
a848cd7e 4455 if test "$no_cache" != 1; then
dee1a63f 4456 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
4457 fi
4458
dee1a63f 4459 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
a848cd7e
SC
4460 echo "$as_me:$LINENO: result: yes" >&5
4461echo "${ECHO_T}yes" >&6
4462 else
4463 echo "$as_me:$LINENO: result: no" >&5
4464echo "${ECHO_T}no" >&6
4465 fi
4466
4467
4468 enablestring=disable
dee1a63f
MB
4469 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat26" >&5
4470echo $ECHO_N "checking for --${enablestring:-enable}-compat26... $ECHO_C" >&6
a848cd7e 4471 no_cache=0
dee1a63f
MB
4472 # Check whether --enable-compat26 or --disable-compat26 was given.
4473if test "${enable_compat26+set}" = set; then
4474 enableval="$enable_compat26"
a848cd7e
SC
4475
4476 if test "$enableval" = yes; then
dee1a63f 4477 ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=yes'
a848cd7e 4478 else
dee1a63f 4479 ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=no'
a848cd7e
SC
4480 fi
4481
4482else
4483
dee1a63f 4484 LINE=`grep "WXWIN_COMPATIBILITY_2_6" ${wx_arg_cache_file}`
a848cd7e
SC
4485 if test "x$LINE" != x ; then
4486 eval "DEFAULT_$LINE"
4487 else
4488 no_cache=1
4489 fi
4490
dee1a63f 4491 ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6='$DEFAULT_WXWIN_COMPATIBILITY_2_6
a848cd7e
SC
4492
4493fi;
4494
dee1a63f 4495 eval "$ac_cv_use_compat26"
a848cd7e 4496 if test "$no_cache" != 1; then
dee1a63f 4497 echo $ac_cv_use_compat26 >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
4498 fi
4499
dee1a63f 4500 if test "$WXWIN_COMPATIBILITY_2_6" = yes; then
a848cd7e
SC
4501 echo "$as_me:$LINENO: result: yes" >&5
4502echo "${ECHO_T}yes" >&6
4503 else
4504 echo "$as_me:$LINENO: result: no" >&5
4505echo "${ECHO_T}no" >&6
4506 fi
4507
4508
ffa0583f
RL
4509
4510 enablestring=
4511 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5
4512echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6
4513 no_cache=0
4514 # Check whether --enable-rpath or --disable-rpath was given.
a848cd7e
SC
4515if test "${enable_rpath+set}" = set; then
4516 enableval="$enable_rpath"
ffa0583f
RL
4517
4518 if test "$enableval" = yes; then
4519 ac_cv_use_rpath='wxUSE_RPATH=yes'
4520 else
4521 ac_cv_use_rpath='wxUSE_RPATH=no'
4522 fi
4523
4524else
4525
4526 LINE=`grep "wxUSE_RPATH" ${wx_arg_cache_file}`
4527 if test "x$LINE" != x ; then
4528 eval "DEFAULT_$LINE"
4529 else
4530 no_cache=1
4531 fi
4532
4533 ac_cv_use_rpath='wxUSE_RPATH='$DEFAULT_wxUSE_RPATH
4534
a848cd7e
SC
4535fi;
4536
ffa0583f
RL
4537 eval "$ac_cv_use_rpath"
4538 if test "$no_cache" != 1; then
4539 echo $ac_cv_use_rpath >> ${wx_arg_cache_file}.tmp
4540 fi
4541
4542 if test "$wxUSE_RPATH" = yes; then
4543 echo "$as_me:$LINENO: result: yes" >&5
4544echo "${ECHO_T}yes" >&6
4545 else
4546 echo "$as_me:$LINENO: result: no" >&5
4547echo "${ECHO_T}no" >&6
4548 fi
4549
a848cd7e
SC
4550
4551
4552
4553
4554 enablestring=
4555 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
4556echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
4557 no_cache=0
4558 # Check whether --enable-intl or --disable-intl was given.
4559if test "${enable_intl+set}" = set; then
4560 enableval="$enable_intl"
4561
4562 if test "$enableval" = yes; then
4563 ac_cv_use_intl='wxUSE_INTL=yes'
4564 else
4565 ac_cv_use_intl='wxUSE_INTL=no'
4566 fi
4567
4568else
4569
4570 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
4571 if test "x$LINE" != x ; then
4572 eval "DEFAULT_$LINE"
4573 else
4574 no_cache=1
4575 fi
4576
4577 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
4578
4579fi;
4580
4581 eval "$ac_cv_use_intl"
4582 if test "$no_cache" != 1; then
4583 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
4584 fi
4585
4586 if test "$wxUSE_INTL" = yes; then
4587 echo "$as_me:$LINENO: result: yes" >&5
4588echo "${ECHO_T}yes" >&6
4589 else
4590 echo "$as_me:$LINENO: result: no" >&5
4591echo "${ECHO_T}no" >&6
4592 fi
4593
4594
4595 enablestring=
4596 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
4597echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
4598 no_cache=0
4599 # Check whether --enable-config or --disable-config was given.
4600if test "${enable_config+set}" = set; then
4601 enableval="$enable_config"
4602
4603 if test "$enableval" = yes; then
4604 ac_cv_use_config='wxUSE_CONFIG=yes'
4605 else
4606 ac_cv_use_config='wxUSE_CONFIG=no'
4607 fi
4608
4609else
4610
4611 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
4612 if test "x$LINE" != x ; then
4613 eval "DEFAULT_$LINE"
4614 else
4615 no_cache=1
4616 fi
4617
4618 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
4619
4620fi;
4621
4622 eval "$ac_cv_use_config"
4623 if test "$no_cache" != 1; then
4624 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
4625 fi
4626
4627 if test "$wxUSE_CONFIG" = yes; then
4628 echo "$as_me:$LINENO: result: yes" >&5
4629echo "${ECHO_T}yes" >&6
4630 else
4631 echo "$as_me:$LINENO: result: no" >&5
4632echo "${ECHO_T}no" >&6
4633 fi
4634
4635
4636
4637 enablestring=
4638 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
4639echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
4640 no_cache=0
4641 # Check whether --enable-protocols or --disable-protocols was given.
4642if test "${enable_protocols+set}" = set; then
4643 enableval="$enable_protocols"
4644
4645 if test "$enableval" = yes; then
4646 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
4647 else
4648 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
4649 fi
4650
4651else
4652
4653 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4654 if test "x$LINE" != x ; then
4655 eval "DEFAULT_$LINE"
4656 else
4657 no_cache=1
4658 fi
4659
4660 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4661
4662fi;
4663
4664 eval "$ac_cv_use_protocols"
4665 if test "$no_cache" != 1; then
4666 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
4667 fi
4668
4669 if test "$wxUSE_PROTOCOL" = yes; then
4670 echo "$as_me:$LINENO: result: yes" >&5
4671echo "${ECHO_T}yes" >&6
4672 else
4673 echo "$as_me:$LINENO: result: no" >&5
4674echo "${ECHO_T}no" >&6
4675 fi
4676
4677
4678 enablestring=
4679 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
4680echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
4681 no_cache=0
4682 # Check whether --enable-ftp or --disable-ftp was given.
4683if test "${enable_ftp+set}" = set; then
4684 enableval="$enable_ftp"
4685
4686 if test "$enableval" = yes; then
4687 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
4688 else
4689 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
4690 fi
4691
4692else
4693
4694 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4695 if test "x$LINE" != x ; then
4696 eval "DEFAULT_$LINE"
4697 else
4698 no_cache=1
4699 fi
4700
4701 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4702
4703fi;
4704
4705 eval "$ac_cv_use_ftp"
4706 if test "$no_cache" != 1; then
4707 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
4708 fi
4709
4710 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4711 echo "$as_me:$LINENO: result: yes" >&5
4712echo "${ECHO_T}yes" >&6
4713 else
4714 echo "$as_me:$LINENO: result: no" >&5
4715echo "${ECHO_T}no" >&6
4716 fi
4717
4718
4719 enablestring=
4720 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
4721echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
4722 no_cache=0
4723 # Check whether --enable-http or --disable-http was given.
4724if test "${enable_http+set}" = set; then
4725 enableval="$enable_http"
4726
4727 if test "$enableval" = yes; then
4728 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
4729 else
4730 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
4731 fi
4732
4733else
4734
4735 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4736 if test "x$LINE" != x ; then
4737 eval "DEFAULT_$LINE"
4738 else
4739 no_cache=1
4740 fi
4741
4742 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4743
4744fi;
4745
4746 eval "$ac_cv_use_http"
4747 if test "$no_cache" != 1; then
4748 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
4749 fi
4750
4751 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4752 echo "$as_me:$LINENO: result: yes" >&5
4753echo "${ECHO_T}yes" >&6
4754 else
4755 echo "$as_me:$LINENO: result: no" >&5
4756echo "${ECHO_T}no" >&6
4757 fi
4758
4759
4760 enablestring=
4761 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
4762echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
4763 no_cache=0
4764 # Check whether --enable-fileproto or --disable-fileproto was given.
4765if test "${enable_fileproto+set}" = set; then
4766 enableval="$enable_fileproto"
4767
4768 if test "$enableval" = yes; then
4769 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4770 else
4771 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4772 fi
4773
4774else
4775
4776 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4777 if test "x$LINE" != x ; then
4778 eval "DEFAULT_$LINE"
4779 else
4780 no_cache=1
4781 fi
4782
4783 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4784
4785fi;
4786
4787 eval "$ac_cv_use_fileproto"
4788 if test "$no_cache" != 1; then
4789 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4790 fi
4791
4792 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4793 echo "$as_me:$LINENO: result: yes" >&5
4794echo "${ECHO_T}yes" >&6
4795 else
4796 echo "$as_me:$LINENO: result: no" >&5
4797echo "${ECHO_T}no" >&6
4798 fi
4799
4800
4801 enablestring=
4802 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4803echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
4804 no_cache=0
4805 # Check whether --enable-sockets or --disable-sockets was given.
4806if test "${enable_sockets+set}" = set; then
4807 enableval="$enable_sockets"
4808
4809 if test "$enableval" = yes; then
4810 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4811 else
4812 ac_cv_use_sockets='wxUSE_SOCKETS=no'
4813 fi
4814
4815else
4816
4817 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4818 if test "x$LINE" != x ; then
4819 eval "DEFAULT_$LINE"
4820 else
4821 no_cache=1
4822 fi
4823
4824 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
4825
4826fi;
4827
4828 eval "$ac_cv_use_sockets"
4829 if test "$no_cache" != 1; then
4830 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4831 fi
4832
4833 if test "$wxUSE_SOCKETS" = yes; then
4834 echo "$as_me:$LINENO: result: yes" >&5
4835echo "${ECHO_T}yes" >&6
4836 else
4837 echo "$as_me:$LINENO: result: no" >&5
4838echo "${ECHO_T}no" >&6
4839 fi
4840
4841
4842 enablestring=
4843 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4844echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
4845 no_cache=0
4846 # Check whether --enable-ole or --disable-ole was given.
4847if test "${enable_ole+set}" = set; then
4848 enableval="$enable_ole"
4849
4850 if test "$enableval" = yes; then
4851 ac_cv_use_ole='wxUSE_OLE=yes'
4852 else
4853 ac_cv_use_ole='wxUSE_OLE=no'
4854 fi
4855
4856else
4857
4858 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4859 if test "x$LINE" != x ; then
4860 eval "DEFAULT_$LINE"
4861 else
4862 no_cache=1
4863 fi
4864
4865 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
4866
4867fi;
4868
4869 eval "$ac_cv_use_ole"
4870 if test "$no_cache" != 1; then
4871 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4872 fi
4873
4874 if test "$wxUSE_OLE" = yes; then
4875 echo "$as_me:$LINENO: result: yes" >&5
4876echo "${ECHO_T}yes" >&6
4877 else
4878 echo "$as_me:$LINENO: result: no" >&5
4879echo "${ECHO_T}no" >&6
4880 fi
4881
4882
4883 enablestring=
4884 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4885echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
4886 no_cache=0
4887 # Check whether --enable-dataobj or --disable-dataobj was given.
4888if test "${enable_dataobj+set}" = set; then
4889 enableval="$enable_dataobj"
4890
4891 if test "$enableval" = yes; then
4892 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4893 else
4894 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4895 fi
4896
4897else
4898
4899 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4900 if test "x$LINE" != x ; then
4901 eval "DEFAULT_$LINE"
4902 else
4903 no_cache=1
4904 fi
4905
4906 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
4907
4908fi;
4909
4910 eval "$ac_cv_use_dataobj"
4911 if test "$no_cache" != 1; then
4912 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4913 fi
4914
4915 if test "$wxUSE_DATAOBJ" = yes; then
4916 echo "$as_me:$LINENO: result: yes" >&5
4917echo "${ECHO_T}yes" >&6
4918 else
4919 echo "$as_me:$LINENO: result: no" >&5
4920echo "${ECHO_T}no" >&6
4921 fi
4922
4923
4924
4925 enablestring=
4926 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4927echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
4928 no_cache=0
4929 # Check whether --enable-ipc or --disable-ipc was given.
4930if test "${enable_ipc+set}" = set; then
4931 enableval="$enable_ipc"
4932
4933 if test "$enableval" = yes; then
4934 ac_cv_use_ipc='wxUSE_IPC=yes'
4935 else
4936 ac_cv_use_ipc='wxUSE_IPC=no'
4937 fi
4938
4939else
4940
4941 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
4942 if test "x$LINE" != x ; then
4943 eval "DEFAULT_$LINE"
4944 else
4945 no_cache=1
4946 fi
4947
4948 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
4949
4950fi;
4951
4952 eval "$ac_cv_use_ipc"
4953 if test "$no_cache" != 1; then
4954 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
4955 fi
4956
4957 if test "$wxUSE_IPC" = yes; then
4958 echo "$as_me:$LINENO: result: yes" >&5
4959echo "${ECHO_T}yes" >&6
4960 else
4961 echo "$as_me:$LINENO: result: no" >&5
4962echo "${ECHO_T}no" >&6
4963 fi
4964
4965
4966
4967 enablestring=
4968 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4969echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
4970 no_cache=0
4971 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4972if test "${enable_apple_ieee+set}" = set; then
4973 enableval="$enable_apple_ieee"
4974
4975 if test "$enableval" = yes; then
4976 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
4977 else
4978 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
4979 fi
4980
4981else
4982
4983 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
4984 if test "x$LINE" != x ; then
4985 eval "DEFAULT_$LINE"
4986 else
4987 no_cache=1
4988 fi
4989
4990 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
4991
4992fi;
4993
4994 eval "$ac_cv_use_apple_ieee"
4995 if test "$no_cache" != 1; then
4996 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
4997 fi
4998
4999 if test "$wxUSE_APPLE_IEEE" = yes; then
5000 echo "$as_me:$LINENO: result: yes" >&5
5001echo "${ECHO_T}yes" >&6
5002 else
5003 echo "$as_me:$LINENO: result: no" >&5
5004echo "${ECHO_T}no" >&6
5005 fi
5006
5007
81f90336
MW
5008 enablestring=
5009 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5
5010echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6
5011 no_cache=0
5012 # Check whether --enable-arcstream or --disable-arcstream was given.
5013if test "${enable_arcstream+set}" = set; then
5014 enableval="$enable_arcstream"
5015
5016 if test "$enableval" = yes; then
9e8e867f 5017 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes'
81f90336 5018 else
9e8e867f 5019 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no'
81f90336
MW
5020 fi
5021
5022else
5023
9e8e867f 5024 LINE=`grep "wxUSE_ARCHIVE_STREAMS" ${wx_arg_cache_file}`
81f90336
MW
5025 if test "x$LINE" != x ; then
5026 eval "DEFAULT_$LINE"
5027 else
5028 no_cache=1
5029 fi
5030
9e8e867f 5031 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS='$DEFAULT_wxUSE_ARCHIVE_STREAMS
81f90336
MW
5032
5033fi;
5034
5035 eval "$ac_cv_use_arcstream"
5036 if test "$no_cache" != 1; then
5037 echo $ac_cv_use_arcstream >> ${wx_arg_cache_file}.tmp
5038 fi
5039
9e8e867f 5040 if test "$wxUSE_ARCHIVE_STREAMS" = yes; then
81f90336
MW
5041 echo "$as_me:$LINENO: result: yes" >&5
5042echo "${ECHO_T}yes" >&6
5043 else
5044 echo "$as_me:$LINENO: result: no" >&5
5045echo "${ECHO_T}no" >&6
5046 fi
5047
5048
a848cd7e 5049 enablestring=
36b6448c
VZ
5050 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5
5051echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6
a848cd7e 5052 no_cache=0
36b6448c
VZ
5053 # Check whether --enable-backtrace or --disable-backtrace was given.
5054if test "${enable_backtrace+set}" = set; then
5055 enableval="$enable_backtrace"
a848cd7e
SC
5056
5057 if test "$enableval" = yes; then
36b6448c 5058 ac_cv_use_backtrace='wxUSE_STACKWALKER=yes'
a848cd7e 5059 else
36b6448c 5060 ac_cv_use_backtrace='wxUSE_STACKWALKER=no'
a848cd7e
SC
5061 fi
5062
5063else
5064
36b6448c 5065 LINE=`grep "wxUSE_STACKWALKER" ${wx_arg_cache_file}`
a848cd7e
SC
5066 if test "x$LINE" != x ; then
5067 eval "DEFAULT_$LINE"
5068 else
5069 no_cache=1
5070 fi
5071
36b6448c 5072 ac_cv_use_backtrace='wxUSE_STACKWALKER='$DEFAULT_wxUSE_STACKWALKER
a848cd7e
SC
5073
5074fi;
5075
36b6448c 5076 eval "$ac_cv_use_backtrace"
a848cd7e 5077 if test "$no_cache" != 1; then
36b6448c 5078 echo $ac_cv_use_backtrace >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
5079 fi
5080
36b6448c 5081 if test "$wxUSE_STACKWALKER" = yes; then
a848cd7e
SC
5082 echo "$as_me:$LINENO: result: yes" >&5
5083echo "${ECHO_T}yes" >&6
5084 else
5085 echo "$as_me:$LINENO: result: no" >&5
5086echo "${ECHO_T}no" >&6
5087 fi
5088
5089
eaff0f0d 5090 enablestring=
36b6448c
VZ
5091 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
5092echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
eaff0f0d 5093 no_cache=0
36b6448c
VZ
5094 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
5095if test "${enable_catch_segvs+set}" = set; then
5096 enableval="$enable_catch_segvs"
eaff0f0d
VZ
5097
5098 if test "$enableval" = yes; then
36b6448c 5099 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
eaff0f0d 5100 else
36b6448c 5101 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
eaff0f0d
VZ
5102 fi
5103
5104else
5105
36b6448c 5106 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
eaff0f0d
VZ
5107 if test "x$LINE" != x ; then
5108 eval "DEFAULT_$LINE"
5109 else
5110 no_cache=1
5111 fi
5112
36b6448c 5113 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
eaff0f0d
VZ
5114
5115fi;
5116
36b6448c 5117 eval "$ac_cv_use_catch_segvs"
eaff0f0d 5118 if test "$no_cache" != 1; then
36b6448c 5119 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
eaff0f0d
VZ
5120 fi
5121
36b6448c 5122 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
eaff0f0d
VZ
5123 echo "$as_me:$LINENO: result: yes" >&5
5124echo "${ECHO_T}yes" >&6
5125 else
5126 echo "$as_me:$LINENO: result: no" >&5
5127echo "${ECHO_T}no" >&6
5128 fi
5129
5130
a848cd7e
SC
5131 enablestring=
5132 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
5133echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
5134 no_cache=0
5135 # Check whether --enable-cmdline or --disable-cmdline was given.
5136if test "${enable_cmdline+set}" = set; then
5137 enableval="$enable_cmdline"
5138
5139 if test "$enableval" = yes; then
5140 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
5141 else
5142 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
5143 fi
5144
5145else
5146
5147 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
5148 if test "x$LINE" != x ; then
5149 eval "DEFAULT_$LINE"
5150 else
5151 no_cache=1
5152 fi
5153
5154 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
5155
5156fi;
5157
5158 eval "$ac_cv_use_cmdline"
5159 if test "$no_cache" != 1; then
5160 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
5161 fi
5162
5163 if test "$wxUSE_CMDLINE_PARSER" = yes; then
5164 echo "$as_me:$LINENO: result: yes" >&5
5165echo "${ECHO_T}yes" >&6
5166 else
5167 echo "$as_me:$LINENO: result: no" >&5
5168echo "${ECHO_T}no" >&6
5169 fi
5170
5171
5172 enablestring=
5173 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
5174echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
5175 no_cache=0
5176 # Check whether --enable-datetime or --disable-datetime was given.
5177if test "${enable_datetime+set}" = set; then
5178 enableval="$enable_datetime"
5179
5180 if test "$enableval" = yes; then
5181 ac_cv_use_datetime='wxUSE_DATETIME=yes'
5182 else
5183 ac_cv_use_datetime='wxUSE_DATETIME=no'
5184 fi
5185
5186else
5187
5188 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
5189 if test "x$LINE" != x ; then
5190 eval "DEFAULT_$LINE"
5191 else
5192 no_cache=1
5193 fi
5194
5195 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
5196
5197fi;
5198
5199 eval "$ac_cv_use_datetime"
5200 if test "$no_cache" != 1; then
5201 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
5202 fi
5203
5204 if test "$wxUSE_DATETIME" = yes; then
5205 echo "$as_me:$LINENO: result: yes" >&5
5206echo "${ECHO_T}yes" >&6
5207 else
5208 echo "$as_me:$LINENO: result: no" >&5
5209echo "${ECHO_T}no" >&6
5210 fi
5211
5212
36b6448c
VZ
5213 enablestring=
5214 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debugreport" >&5
5215echo $ECHO_N "checking for --${enablestring:-enable}-debugreport... $ECHO_C" >&6
5216 no_cache=0
5217 # Check whether --enable-debugreport or --disable-debugreport was given.
5218if test "${enable_debugreport+set}" = set; then
5219 enableval="$enable_debugreport"
5220
5221 if test "$enableval" = yes; then
5222 ac_cv_use_debugreport='wxUSE_DEBUGREPORT=yes'
5223 else
5224 ac_cv_use_debugreport='wxUSE_DEBUGREPORT=no'
5225 fi
5226
5227else
5228
5229 LINE=`grep "wxUSE_DEBUGREPORT" ${wx_arg_cache_file}`
5230 if test "x$LINE" != x ; then
5231 eval "DEFAULT_$LINE"
5232 else
5233 no_cache=1
5234 fi
5235
5236 ac_cv_use_debugreport='wxUSE_DEBUGREPORT='$DEFAULT_wxUSE_DEBUGREPORT
5237
5238fi;
5239
5240 eval "$ac_cv_use_debugreport"
5241 if test "$no_cache" != 1; then
5242 echo $ac_cv_use_debugreport >> ${wx_arg_cache_file}.tmp
5243 fi
5244
5245 if test "$wxUSE_DEBUGREPORT" = yes; then
5246 echo "$as_me:$LINENO: result: yes" >&5
5247echo "${ECHO_T}yes" >&6
5248 else
5249 echo "$as_me:$LINENO: result: no" >&5
5250echo "${ECHO_T}no" >&6
5251 fi
5252
5253
a848cd7e
SC
5254 enablestring=
5255 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
5256echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
5257 no_cache=0
5258 # Check whether --enable-dialupman or --disable-dialupman was given.
5259if test "${enable_dialupman+set}" = set; then
5260 enableval="$enable_dialupman"
5261
5262 if test "$enableval" = yes; then
5263 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
5264 else
5265 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
5266 fi
5267
5268else
5269
5270 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
5271 if test "x$LINE" != x ; then
5272 eval "DEFAULT_$LINE"
5273 else
5274 no_cache=1
5275 fi
5276
5277 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
5278
5279fi;
5280
5281 eval "$ac_cv_use_dialupman"
5282 if test "$no_cache" != 1; then
5283 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
5284 fi
5285
5286 if test "$wxUSE_DIALUP_MANAGER" = yes; then
5287 echo "$as_me:$LINENO: result: yes" >&5
5288echo "${ECHO_T}yes" >&6
5289 else
5290 echo "$as_me:$LINENO: result: no" >&5
5291echo "${ECHO_T}no" >&6
5292 fi
5293
5294
5295 enablestring=
5296 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
5297echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
5298 no_cache=0
5299 # Check whether --enable-dynlib or --disable-dynlib was given.
5300if test "${enable_dynlib+set}" = set; then
5301 enableval="$enable_dynlib"
5302
5303 if test "$enableval" = yes; then
5304 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
5305 else
5306 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
5307 fi
5308
5309else
5310
5311 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
5312 if test "x$LINE" != x ; then
5313 eval "DEFAULT_$LINE"
5314 else
5315 no_cache=1
5316 fi
5317
5318 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
5319
5320fi;
5321
5322 eval "$ac_cv_use_dynlib"
5323 if test "$no_cache" != 1; then
5324 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
5325 fi
5326
5327 if test "$wxUSE_DYNLIB_CLASS" = yes; then
5328 echo "$as_me:$LINENO: result: yes" >&5
5329echo "${ECHO_T}yes" >&6
5330 else
5331 echo "$as_me:$LINENO: result: no" >&5
5332echo "${ECHO_T}no" >&6
5333 fi
5334
5335
5336 enablestring=
5337 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
5338echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
5339 no_cache=0
5340 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
5341if test "${enable_dynamicloader+set}" = set; then
5342 enableval="$enable_dynamicloader"
5343
5344 if test "$enableval" = yes; then
5345 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
5346 else
5347 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
5348 fi
5349
5350else
5351
5352 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
5353 if test "x$LINE" != x ; then
5354 eval "DEFAULT_$LINE"
5355 else
5356 no_cache=1
5357 fi
5358
5359 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
5360
5361fi;
5362
5363 eval "$ac_cv_use_dynamicloader"
5364 if test "$no_cache" != 1; then
5365 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
5366 fi
5367
5368 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
5369 echo "$as_me:$LINENO: result: yes" >&5
5370echo "${ECHO_T}yes" >&6
5371 else
5372 echo "$as_me:$LINENO: result: no" >&5
5373echo "${ECHO_T}no" >&6
5374 fi
5375
5376
5377 enablestring=
5378 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
5379echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6
5380 no_cache=0
5381 # Check whether --enable-exceptions or --disable-exceptions was given.
5382if test "${enable_exceptions+set}" = set; then
5383 enableval="$enable_exceptions"
5384
5385 if test "$enableval" = yes; then
5386 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
5387 else
5388 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
5389 fi
5390
5391else
5392
5393 LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}`
5394 if test "x$LINE" != x ; then
5395 eval "DEFAULT_$LINE"
5396 else
5397 no_cache=1
5398 fi
5399
5400 ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS
5401
5402fi;
5403
5404 eval "$ac_cv_use_exceptions"
5405 if test "$no_cache" != 1; then
5406 echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp
5407 fi
5408
5409 if test "$wxUSE_EXCEPTIONS" = yes; then
5410 echo "$as_me:$LINENO: result: yes" >&5
5411echo "${ECHO_T}yes" >&6
5412 else
5413 echo "$as_me:$LINENO: result: no" >&5
5414echo "${ECHO_T}no" >&6
5415 fi
5416
5417
5418 enablestring=
5419 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
5420echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
5421 no_cache=0
5422 # Check whether --enable-ffile or --disable-ffile was given.
5423if test "${enable_ffile+set}" = set; then
5424 enableval="$enable_ffile"
5425
5426 if test "$enableval" = yes; then
5427 ac_cv_use_ffile='wxUSE_FFILE=yes'
5428 else
5429 ac_cv_use_ffile='wxUSE_FFILE=no'
5430 fi
5431
5432else
5433
5434 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
5435 if test "x$LINE" != x ; then
5436 eval "DEFAULT_$LINE"
5437 else
5438 no_cache=1
5439 fi
5440
5441 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
5442
5443fi;
5444
5445 eval "$ac_cv_use_ffile"
5446 if test "$no_cache" != 1; then
5447 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
5448 fi
5449
5450 if test "$wxUSE_FFILE" = yes; then
5451 echo "$as_me:$LINENO: result: yes" >&5
5452echo "${ECHO_T}yes" >&6
5453 else
5454 echo "$as_me:$LINENO: result: no" >&5
5455echo "${ECHO_T}no" >&6
5456 fi
5457
5458
5459 enablestring=
5460 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
5461echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
5462 no_cache=0
5463 # Check whether --enable-file or --disable-file was given.
5464if test "${enable_file+set}" = set; then
5465 enableval="$enable_file"
5466
5467 if test "$enableval" = yes; then
5468 ac_cv_use_file='wxUSE_FILE=yes'
5469 else
5470 ac_cv_use_file='wxUSE_FILE=no'
5471 fi
5472
5473else
5474
5475 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
5476 if test "x$LINE" != x ; then
5477 eval "DEFAULT_$LINE"
5478 else
5479 no_cache=1
5480 fi
5481
5482 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
5483
5484fi;
5485
5486 eval "$ac_cv_use_file"
5487 if test "$no_cache" != 1; then
5488 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
5489 fi
5490
5491 if test "$wxUSE_FILE" = yes; then
5492 echo "$as_me:$LINENO: result: yes" >&5
5493echo "${ECHO_T}yes" >&6
5494 else
5495 echo "$as_me:$LINENO: result: no" >&5
5496echo "${ECHO_T}no" >&6
5497 fi
5498
5499
5500 enablestring=
5501 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
5502echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
5503 no_cache=0
5504 # Check whether --enable-filesystem or --disable-filesystem was given.
5505if test "${enable_filesystem+set}" = set; then
5506 enableval="$enable_filesystem"
5507
5508 if test "$enableval" = yes; then
5509 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
5510 else
5511 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
5512 fi
5513
5514else
5515
5516 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
5517 if test "x$LINE" != x ; then
5518 eval "DEFAULT_$LINE"
5519 else
5520 no_cache=1
5521 fi
5522
5523 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
5524
5525fi;
5526
5527 eval "$ac_cv_use_filesystem"
5528 if test "$no_cache" != 1; then
5529 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
5530 fi
5531
5532 if test "$wxUSE_FILESYSTEM" = yes; then
5533 echo "$as_me:$LINENO: result: yes" >&5
5534echo "${ECHO_T}yes" >&6
5535 else
5536 echo "$as_me:$LINENO: result: no" >&5
5537echo "${ECHO_T}no" >&6
5538 fi
5539
5540
5541 enablestring=
5542 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
5543echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
5544 no_cache=0
5545 # Check whether --enable-fontmap or --disable-fontmap was given.
5546if test "${enable_fontmap+set}" = set; then
5547 enableval="$enable_fontmap"
5548
5549 if test "$enableval" = yes; then
5550 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
5551 else
5552 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
5553 fi
5554
5555else
5556
5557 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
5558 if test "x$LINE" != x ; then
5559 eval "DEFAULT_$LINE"
5560 else
5561 no_cache=1
5562 fi
5563
5564 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
5565
5566fi;
5567
5568 eval "$ac_cv_use_fontmap"
5569 if test "$no_cache" != 1; then
5570 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
5571 fi
5572
5573 if test "$wxUSE_FONTMAP" = yes; then
5574 echo "$as_me:$LINENO: result: yes" >&5
5575echo "${ECHO_T}yes" >&6
5576 else
5577 echo "$as_me:$LINENO: result: no" >&5
5578echo "${ECHO_T}no" >&6
5579 fi
5580
5581
5582 enablestring=
5583 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
5584echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
5585 no_cache=0
5586 # Check whether --enable-fs_inet or --disable-fs_inet was given.
5587if test "${enable_fs_inet+set}" = set; then
5588 enableval="$enable_fs_inet"
5589
5590 if test "$enableval" = yes; then
5591 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
5592 else
5593 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
5594 fi
5595
5596else
5597
5598 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
5599 if test "x$LINE" != x ; then
5600 eval "DEFAULT_$LINE"
5601 else
5602 no_cache=1
5603 fi
5604
5605 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
5606
5607fi;
5608
5609 eval "$ac_cv_use_fs_inet"
5610 if test "$no_cache" != 1; then
5611 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
5612 fi
5613
5614 if test "$wxUSE_FS_INET" = yes; then
5615 echo "$as_me:$LINENO: result: yes" >&5
5616echo "${ECHO_T}yes" >&6
5617 else
5618 echo "$as_me:$LINENO: result: no" >&5
5619echo "${ECHO_T}no" >&6
5620 fi
5621
5622
5623 enablestring=
5624 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
5625echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
5626 no_cache=0
5627 # Check whether --enable-fs_zip or --disable-fs_zip was given.
5628if test "${enable_fs_zip+set}" = set; then
5629 enableval="$enable_fs_zip"
5630
5631 if test "$enableval" = yes; then
5632 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
5633 else
5634 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
5635 fi
5636
5637else
5638
5639 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
5640 if test "x$LINE" != x ; then
5641 eval "DEFAULT_$LINE"
5642 else
5643 no_cache=1
5644 fi
5645
5646 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
5647
5648fi;
5649
5650 eval "$ac_cv_use_fs_zip"
5651 if test "$no_cache" != 1; then
5652 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
5653 fi
5654
5655 if test "$wxUSE_FS_ZIP" = yes; then
5656 echo "$as_me:$LINENO: result: yes" >&5
5657echo "${ECHO_T}yes" >&6
5658 else
5659 echo "$as_me:$LINENO: result: no" >&5
5660echo "${ECHO_T}no" >&6
5661 fi
5662
5663
5664 enablestring=
5665 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
5666echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
5667 no_cache=0
5668 # Check whether --enable-geometry or --disable-geometry was given.
5669if test "${enable_geometry+set}" = set; then
5670 enableval="$enable_geometry"
5671
5672 if test "$enableval" = yes; then
5673 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
5674 else
5675 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
5676 fi
5677
5678else
5679
5680 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
5681 if test "x$LINE" != x ; then
5682 eval "DEFAULT_$LINE"
5683 else
5684 no_cache=1
5685 fi
5686
5687 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
5688
5689fi;
5690
5691 eval "$ac_cv_use_geometry"
5692 if test "$no_cache" != 1; then
5693 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
5694 fi
5695
5696 if test "$wxUSE_GEOMETRY" = yes; then
5697 echo "$as_me:$LINENO: result: yes" >&5
5698echo "${ECHO_T}yes" >&6
5699 else
5700 echo "$as_me:$LINENO: result: no" >&5
5701echo "${ECHO_T}no" >&6
5702 fi
5703
5704
5705 enablestring=
5706 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
5707echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
5708 no_cache=0
5709 # Check whether --enable-log or --disable-log was given.
5710if test "${enable_log+set}" = set; then
5711 enableval="$enable_log"
5712
5713 if test "$enableval" = yes; then
5714 ac_cv_use_log='wxUSE_LOG=yes'
5715 else
5716 ac_cv_use_log='wxUSE_LOG=no'
5717 fi
5718
5719else
5720
5721 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
5722 if test "x$LINE" != x ; then
5723 eval "DEFAULT_$LINE"
5724 else
5725 no_cache=1
5726 fi
5727
5728 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
5729
5730fi;
5731
5732 eval "$ac_cv_use_log"
5733 if test "$no_cache" != 1; then
5734 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
5735 fi
5736
5737 if test "$wxUSE_LOG" = yes; then
5738 echo "$as_me:$LINENO: result: yes" >&5
5739echo "${ECHO_T}yes" >&6
5740 else
5741 echo "$as_me:$LINENO: result: no" >&5
5742echo "${ECHO_T}no" >&6
5743 fi
5744
5745
5746 enablestring=
5747 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
5748echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
5749 no_cache=0
5750 # Check whether --enable-longlong or --disable-longlong was given.
5751if test "${enable_longlong+set}" = set; then
5752 enableval="$enable_longlong"
5753
5754 if test "$enableval" = yes; then
5755 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
5756 else
5757 ac_cv_use_longlong='wxUSE_LONGLONG=no'
5758 fi
5759
5760else
5761
5762 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
5763 if test "x$LINE" != x ; then
5764 eval "DEFAULT_$LINE"
5765 else
5766 no_cache=1
5767 fi
5768
5769 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
5770
5771fi;
5772
5773 eval "$ac_cv_use_longlong"
5774 if test "$no_cache" != 1; then
5775 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
5776 fi
5777
5778 if test "$wxUSE_LONGLONG" = yes; then
5779 echo "$as_me:$LINENO: result: yes" >&5
5780echo "${ECHO_T}yes" >&6
5781 else
5782 echo "$as_me:$LINENO: result: no" >&5
5783echo "${ECHO_T}no" >&6
5784 fi
5785
5786
5787 enablestring=
5788 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5789echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
5790 no_cache=0
5791 # Check whether --enable-mimetype or --disable-mimetype was given.
5792if test "${enable_mimetype+set}" = set; then
5793 enableval="$enable_mimetype"
5794
5795 if test "$enableval" = yes; then
5796 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5797 else
5798 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5799 fi
5800
5801else
5802
5803 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5804 if test "x$LINE" != x ; then
5805 eval "DEFAULT_$LINE"
5806 else
5807 no_cache=1
5808 fi
5809
5810 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
5811
5812fi;
5813
5814 eval "$ac_cv_use_mimetype"
5815 if test "$no_cache" != 1; then
5816 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5817 fi
5818
5819 if test "$wxUSE_MIMETYPE" = yes; then
5820 echo "$as_me:$LINENO: result: yes" >&5
5821echo "${ECHO_T}yes" >&6
5822 else
5823 echo "$as_me:$LINENO: result: no" >&5
5824echo "${ECHO_T}no" >&6
5825 fi
5826
5827
5828 enablestring=
5829 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5830echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
5831 no_cache=0
5832 # Check whether --enable-mslu or --disable-mslu was given.
5833if test "${enable_mslu+set}" = set; then
5834 enableval="$enable_mslu"
5835
5836 if test "$enableval" = yes; then
5837 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5838 else
5839 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5840 fi
5841
5842else
5843
5844 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5845 if test "x$LINE" != x ; then
5846 eval "DEFAULT_$LINE"
5847 else
5848 no_cache=1
5849 fi
5850
5851 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
5852
5853fi;
5854
5855 eval "$ac_cv_use_mslu"
5856 if test "$no_cache" != 1; then
5857 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5858 fi
5859
5860 if test "$wxUSE_UNICODE_MSLU" = yes; then
5861 echo "$as_me:$LINENO: result: yes" >&5
5862echo "${ECHO_T}yes" >&6
5863 else
5864 echo "$as_me:$LINENO: result: no" >&5
5865echo "${ECHO_T}no" >&6
5866 fi
5867
5868
5869 enablestring=
5870 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5871echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
5872 no_cache=0
5873 # Check whether --enable-snglinst or --disable-snglinst was given.
5874if test "${enable_snglinst+set}" = set; then
5875 enableval="$enable_snglinst"
5876
5877 if test "$enableval" = yes; then
5878 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
5879 else
5880 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
5881 fi
5882
5883else
5884
5885 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
5886 if test "x$LINE" != x ; then
5887 eval "DEFAULT_$LINE"
5888 else
5889 no_cache=1
5890 fi
5891
5892 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
5893
5894fi;
5895
5896 eval "$ac_cv_use_snglinst"
5897 if test "$no_cache" != 1; then
5898 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
5899 fi
5900
5901 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
5902 echo "$as_me:$LINENO: result: yes" >&5
5903echo "${ECHO_T}yes" >&6
5904 else
5905 echo "$as_me:$LINENO: result: no" >&5
5906echo "${ECHO_T}no" >&6
5907 fi
5908
5909
5910 enablestring=
07158944
VZ
5911 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5912echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
a848cd7e 5913 no_cache=0
07158944
VZ
5914 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5915if test "${enable_std_iostreams+set}" = set; then
5916 enableval="$enable_std_iostreams"
a848cd7e
SC
5917
5918 if test "$enableval" = yes; then
07158944 5919 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
a848cd7e 5920 else
07158944 5921 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
a848cd7e
SC
5922 fi
5923
5924else
5925
07158944 5926 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
a848cd7e
SC
5927 if test "x$LINE" != x ; then
5928 eval "DEFAULT_$LINE"
5929 else
5930 no_cache=1
5931 fi
5932
07158944 5933 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
a848cd7e
SC
5934
5935fi;
5936
07158944 5937 eval "$ac_cv_use_std_iostreams"
a848cd7e 5938 if test "$no_cache" != 1; then
07158944 5939 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
5940 fi
5941
07158944 5942 if test "$wxUSE_STD_IOSTREAM" = yes; then
a848cd7e
SC
5943 echo "$as_me:$LINENO: result: yes" >&5
5944echo "${ECHO_T}yes" >&6
5945 else
5946 echo "$as_me:$LINENO: result: no" >&5
5947echo "${ECHO_T}no" >&6
5948 fi
5949
5950
59746b65
MW
5951 enablestring=
5952 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_string" >&5
5953echo $ECHO_N "checking for --${enablestring:-enable}-std_string... $ECHO_C" >&6
5954 no_cache=0
5955 # Check whether --enable-std_string or --disable-std_string was given.
5956if test "${enable_std_string+set}" = set; then
5957 enableval="$enable_std_string"
5958
5959 if test "$enableval" = yes; then
5960 ac_cv_use_std_string='wxUSE_STD_STRING=yes'
5961 else
5962 ac_cv_use_std_string='wxUSE_STD_STRING=no'
5963 fi
5964
5965else
5966
5967 LINE=`grep "wxUSE_STD_STRING" ${wx_arg_cache_file}`
5968 if test "x$LINE" != x ; then
5969 eval "DEFAULT_$LINE"
5970 else
5971 no_cache=1
5972 fi
5973
5974 ac_cv_use_std_string='wxUSE_STD_STRING='$DEFAULT_wxUSE_STD_STRING
5975
5976fi;
5977
5978 eval "$ac_cv_use_std_string"
5979 if test "$no_cache" != 1; then
5980 echo $ac_cv_use_std_string >> ${wx_arg_cache_file}.tmp
5981 fi
5982
5983 if test "$wxUSE_STD_STRING" = yes; then
5984 echo "$as_me:$LINENO: result: yes" >&5
5985echo "${ECHO_T}yes" >&6
5986 else
5987 echo "$as_me:$LINENO: result: no" >&5
5988echo "${ECHO_T}no" >&6
5989 fi
5990
5991
a848cd7e 5992 enablestring=
07158944
VZ
5993 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stdpaths" >&5
5994echo $ECHO_N "checking for --${enablestring:-enable}-stdpaths... $ECHO_C" >&6
a848cd7e 5995 no_cache=0
07158944
VZ
5996 # Check whether --enable-stdpaths or --disable-stdpaths was given.
5997if test "${enable_stdpaths+set}" = set; then
5998 enableval="$enable_stdpaths"
a848cd7e
SC
5999
6000 if test "$enableval" = yes; then
07158944 6001 ac_cv_use_stdpaths='wxUSE_STDPATHS=yes'
a848cd7e 6002 else
07158944 6003 ac_cv_use_stdpaths='wxUSE_STDPATHS=no'
a848cd7e
SC
6004 fi
6005
6006else
6007
07158944 6008 LINE=`grep "wxUSE_STDPATHS" ${wx_arg_cache_file}`
a848cd7e
SC
6009 if test "x$LINE" != x ; then
6010 eval "DEFAULT_$LINE"
6011 else
6012 no_cache=1
6013 fi
6014
07158944 6015 ac_cv_use_stdpaths='wxUSE_STDPATHS='$DEFAULT_wxUSE_STDPATHS
a848cd7e
SC
6016
6017fi;
6018
07158944 6019 eval "$ac_cv_use_stdpaths"
a848cd7e 6020 if test "$no_cache" != 1; then
07158944 6021 echo $ac_cv_use_stdpaths >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
6022 fi
6023
07158944 6024 if test "$wxUSE_STDPATHS" = yes; then
a848cd7e
SC
6025 echo "$as_me:$LINENO: result: yes" >&5
6026echo "${ECHO_T}yes" >&6
6027 else
6028 echo "$as_me:$LINENO: result: no" >&5
6029echo "${ECHO_T}no" >&6
6030 fi
6031
6032
6033 enablestring=
6034 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
6035echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
6036 no_cache=0
6037 # Check whether --enable-stopwatch or --disable-stopwatch was given.
6038if test "${enable_stopwatch+set}" = set; then
6039 enableval="$enable_stopwatch"
6040
6041 if test "$enableval" = yes; then
6042 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
6043 else
6044 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
6045 fi
6046
6047else
6048
6049 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
6050 if test "x$LINE" != x ; then
6051 eval "DEFAULT_$LINE"
6052 else
6053 no_cache=1
6054 fi
6055
6056 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
6057
6058fi;
6059
6060 eval "$ac_cv_use_stopwatch"
6061 if test "$no_cache" != 1; then
6062 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
6063 fi
6064
6065 if test "$wxUSE_STOPWATCH" = yes; then
6066 echo "$as_me:$LINENO: result: yes" >&5
6067echo "${ECHO_T}yes" >&6
6068 else
6069 echo "$as_me:$LINENO: result: no" >&5
6070echo "${ECHO_T}no" >&6
6071 fi
6072
6073
07158944
VZ
6074 enablestring=
6075 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
6076echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
6077 no_cache=0
6078 # Check whether --enable-streams or --disable-streams was given.
6079if test "${enable_streams+set}" = set; then
6080 enableval="$enable_streams"
6081
6082 if test "$enableval" = yes; then
6083 ac_cv_use_streams='wxUSE_STREAMS=yes'
6084 else
6085 ac_cv_use_streams='wxUSE_STREAMS=no'
6086 fi
6087
6088else
6089
6090 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
6091 if test "x$LINE" != x ; then
6092 eval "DEFAULT_$LINE"
6093 else
6094 no_cache=1
6095 fi
6096
6097 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
6098
6099fi;
6100
6101 eval "$ac_cv_use_streams"
6102 if test "$no_cache" != 1; then
6103 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
6104 fi
6105
6106 if test "$wxUSE_STREAMS" = yes; then
6107 echo "$as_me:$LINENO: result: yes" >&5
6108echo "${ECHO_T}yes" >&6
6109 else
6110 echo "$as_me:$LINENO: result: no" >&5
6111echo "${ECHO_T}no" >&6
6112 fi
6113
6114
a848cd7e
SC
6115 enablestring=
6116 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
6117echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
6118 no_cache=0
6119 # Check whether --enable-system_options or --disable-system_options was given.
6120if test "${enable_system_options+set}" = set; then
6121 enableval="$enable_system_options"
6122
6123 if test "$enableval" = yes; then
6124 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
6125 else
6126 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
6127 fi
6128
6129else
6130
6131 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
6132 if test "x$LINE" != x ; then
6133 eval "DEFAULT_$LINE"
6134 else
6135 no_cache=1
6136 fi
6137
6138 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
6139
6140fi;
6141
6142 eval "$ac_cv_use_system_options"
6143 if test "$no_cache" != 1; then
6144 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
6145 fi
6146
6147 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
6148 echo "$as_me:$LINENO: result: yes" >&5
6149echo "${ECHO_T}yes" >&6
6150 else
6151 echo "$as_me:$LINENO: result: no" >&5
6152echo "${ECHO_T}no" >&6
6153 fi
6154
6155
6156 enablestring=
6157 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
6158echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
6159 no_cache=0
6160 # Check whether --enable-textbuf or --disable-textbuf was given.
6161if test "${enable_textbuf+set}" = set; then
6162 enableval="$enable_textbuf"
6163
6164 if test "$enableval" = yes; then
6165 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
6166 else
6167 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
6168 fi
6169
6170else
6171
6172 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
6173 if test "x$LINE" != x ; then
6174 eval "DEFAULT_$LINE"
6175 else
6176 no_cache=1
6177 fi
6178
6179 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
6180
6181fi;
6182
6183 eval "$ac_cv_use_textbuf"
6184 if test "$no_cache" != 1; then
6185 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
6186 fi
6187
6188 if test "$wxUSE_TEXTBUFFER" = yes; then
6189 echo "$as_me:$LINENO: result: yes" >&5
6190echo "${ECHO_T}yes" >&6
6191 else
6192 echo "$as_me:$LINENO: result: no" >&5
6193echo "${ECHO_T}no" >&6
6194 fi
6195
6196
6197 enablestring=
6198 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
6199echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
6200 no_cache=0
6201 # Check whether --enable-textfile or --disable-textfile was given.
6202if test "${enable_textfile+set}" = set; then
6203 enableval="$enable_textfile"
6204
6205 if test "$enableval" = yes; then
6206 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
6207 else
6208 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
6209 fi
6210
6211else
6212
6213 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
6214 if test "x$LINE" != x ; then
6215 eval "DEFAULT_$LINE"
6216 else
6217 no_cache=1
6218 fi
6219
6220 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
6221
6222fi;
6223
6224 eval "$ac_cv_use_textfile"
6225 if test "$no_cache" != 1; then
6226 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
6227 fi
6228
6229 if test "$wxUSE_TEXTFILE" = yes; then
6230 echo "$as_me:$LINENO: result: yes" >&5
6231echo "${ECHO_T}yes" >&6
6232 else
6233 echo "$as_me:$LINENO: result: no" >&5
6234echo "${ECHO_T}no" >&6
6235 fi
6236
6237
6238 enablestring=
6239 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
6240echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
6241 no_cache=0
6242 # Check whether --enable-timer or --disable-timer was given.
6243if test "${enable_timer+set}" = set; then
6244 enableval="$enable_timer"
6245
6246 if test "$enableval" = yes; then
6247 ac_cv_use_timer='wxUSE_TIMER=yes'
6248 else
6249 ac_cv_use_timer='wxUSE_TIMER=no'
6250 fi
6251
6252else
6253
6254 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
6255 if test "x$LINE" != x ; then
6256 eval "DEFAULT_$LINE"
6257 else
6258 no_cache=1
6259 fi
6260
6261 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
6262
6263fi;
6264
6265 eval "$ac_cv_use_timer"
6266 if test "$no_cache" != 1; then
6267 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
6268 fi
6269
6270 if test "$wxUSE_TIMER" = yes; then
6271 echo "$as_me:$LINENO: result: yes" >&5
6272echo "${ECHO_T}yes" >&6
6273 else
6274 echo "$as_me:$LINENO: result: no" >&5
6275echo "${ECHO_T}no" >&6
6276 fi
6277
6278
6279 enablestring=
6280 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
6281echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
6282 no_cache=0
6283 # Check whether --enable-unicode or --disable-unicode was given.
6284if test "${enable_unicode+set}" = set; then
6285 enableval="$enable_unicode"
6286
6287 if test "$enableval" = yes; then
6288 ac_cv_use_unicode='wxUSE_UNICODE=yes'
6289 else
6290 ac_cv_use_unicode='wxUSE_UNICODE=no'
6291 fi
6292
6293else
6294
6295 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
6296 if test "x$LINE" != x ; then
6297 eval "DEFAULT_$LINE"
6298 else
6299 no_cache=1
6300 fi
6301
6302 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
6303
6304fi;
6305
6306 eval "$ac_cv_use_unicode"
6307 if test "$no_cache" != 1; then
6308 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
6309 fi
6310
6311 if test "$wxUSE_UNICODE" = yes; then
6312 echo "$as_me:$LINENO: result: yes" >&5
6313echo "${ECHO_T}yes" >&6
6314 else
6315 echo "$as_me:$LINENO: result: no" >&5
6316echo "${ECHO_T}no" >&6
6317 fi
6318
6319
6320 enablestring=
6321 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
6322echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6
6323 no_cache=0
6324 # Check whether --enable-sound or --disable-sound was given.
6325if test "${enable_sound+set}" = set; then
6326 enableval="$enable_sound"
6327
6328 if test "$enableval" = yes; then
6329 ac_cv_use_sound='wxUSE_SOUND=yes'
6330 else
6331 ac_cv_use_sound='wxUSE_SOUND=no'
6332 fi
6333
6334else
6335
6336 LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}`
6337 if test "x$LINE" != x ; then
6338 eval "DEFAULT_$LINE"
6339 else
6340 no_cache=1
6341 fi
6342
6343 ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND
6344
6345fi;
6346
6347 eval "$ac_cv_use_sound"
6348 if test "$no_cache" != 1; then
6349 echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp
6350 fi
6351
6352 if test "$wxUSE_SOUND" = yes; then
6353 echo "$as_me:$LINENO: result: yes" >&5
6354echo "${ECHO_T}yes" >&6
6355 else
6356 echo "$as_me:$LINENO: result: no" >&5
6357echo "${ECHO_T}no" >&6
6358 fi
6359
6360
3b57de8b
RL
6361 enablestring=
6362 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5
6363echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6
6364 no_cache=0
6365 # Check whether --enable-mediactrl or --disable-mediactrl was given.
6366if test "${enable_mediactrl+set}" = set; then
6367 enableval="$enable_mediactrl"
6368
6369 if test "$enableval" = yes; then
6370 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=yes'
6371 else
6372 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=no'
6373 fi
6374
6375else
6376
6377 LINE=`grep "wxUSE_MEDIACTRL" ${wx_arg_cache_file}`
6378 if test "x$LINE" != x ; then
6379 eval "DEFAULT_$LINE"
6380 else
6381 no_cache=1
6382 fi
6383
6384 ac_cv_use_mediactrl='wxUSE_MEDIACTRL='$DEFAULT_wxUSE_MEDIACTRL
6385
6386fi;
6387
6388 eval "$ac_cv_use_mediactrl"
6389 if test "$no_cache" != 1; then
6390 echo $ac_cv_use_mediactrl >> ${wx_arg_cache_file}.tmp
6391 fi
6392
6393 if test "$wxUSE_MEDIACTRL" = yes; then
6394 echo "$as_me:$LINENO: result: yes" >&5
6395echo "${ECHO_T}yes" >&6
6396 else
6397 echo "$as_me:$LINENO: result: no" >&5
6398echo "${ECHO_T}no" >&6
6399 fi
6400
6401
f10e38c4
VZ
6402 enablestring=
6403 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gstreamer8" >&5
6404echo $ECHO_N "checking for --${enablestring:-enable}-gstreamer8... $ECHO_C" >&6
6405 no_cache=0
6406 # Check whether --enable-gstreamer8 or --disable-gstreamer8 was given.
6407if test "${enable_gstreamer8+set}" = set; then
6408 enableval="$enable_gstreamer8"
6409
6410 if test "$enableval" = yes; then
6411 ac_cv_use_gstreamer8='wxUSE_GSTREAMER8=yes'
6412 else
6413 ac_cv_use_gstreamer8='wxUSE_GSTREAMER8=no'
6414 fi
6415
6416else
6417
6418 LINE=`grep "wxUSE_GSTREAMER8" ${wx_arg_cache_file}`
6419 if test "x$LINE" != x ; then
6420 eval "DEFAULT_$LINE"
6421 else
6422 no_cache=1
6423 fi
6424
6425 ac_cv_use_gstreamer8='wxUSE_GSTREAMER8='$DEFAULT_wxUSE_GSTREAMER8
6426
6427fi;
6428
6429 eval "$ac_cv_use_gstreamer8"
6430 if test "$no_cache" != 1; then
6431 echo $ac_cv_use_gstreamer8 >> ${wx_arg_cache_file}.tmp
6432 fi
6433
6434 if test "$wxUSE_GSTREAMER8" = yes; then
6435 echo "$as_me:$LINENO: result: yes" >&5
6436echo "${ECHO_T}yes" >&6
6437 else
6438 echo "$as_me:$LINENO: result: no" >&5
6439echo "${ECHO_T}no" >&6
6440 fi
6441
6442
a848cd7e 6443 enablestring=
8b6682b9
JS
6444 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printfposparam" >&5
6445echo $ECHO_N "checking for --${enablestring:-enable}-printfposparam... $ECHO_C" >&6
a848cd7e 6446 no_cache=0
8b6682b9
JS
6447 # Check whether --enable-printfposparam or --disable-printfposparam was given.
6448if test "${enable_printfposparam+set}" = set; then
6449 enableval="$enable_printfposparam"
a848cd7e
SC
6450
6451 if test "$enableval" = yes; then
8b6682b9 6452 ac_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=yes'
a848cd7e 6453 else
8b6682b9 6454 ac_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=no'
a848cd7e
SC
6455 fi
6456
6457else
6458
8b6682b9 6459 LINE=`grep "wxUSE_PRINTF_POS_PARAMS" ${wx_arg_cache_file}`
a848cd7e
SC
6460 if test "x$LINE" != x ; then
6461 eval "DEFAULT_$LINE"
6462 else
6463 no_cache=1
6464 fi
6465
8b6682b9 6466 ac_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS='$DEFAULT_wxUSE_PRINTF_POS_PARAMS
a848cd7e
SC
6467
6468fi;
6469
8b6682b9 6470 eval "$ac_cv_use_printfposparam"
a848cd7e 6471 if test "$no_cache" != 1; then
8b6682b9 6472 echo $ac_cv_use_printfposparam >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
6473 fi
6474
8b6682b9 6475 if test "$wxUSE_PRINTF_POS_PARAMS" = yes; then
a848cd7e
SC
6476 echo "$as_me:$LINENO: result: yes" >&5
6477echo "${ECHO_T}yes" >&6
6478 else
6479 echo "$as_me:$LINENO: result: no" >&5
6480echo "${ECHO_T}no" >&6
6481 fi
6482
6483
6484 enablestring=
6485 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
6486echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
6487 no_cache=0
6488 # Check whether --enable-zipstream or --disable-zipstream was given.
6489if test "${enable_zipstream+set}" = set; then
6490 enableval="$enable_zipstream"
6491
6492 if test "$enableval" = yes; then
6493 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
6494 else
6495 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
6496 fi
6497
6498else
6499
6500 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
6501 if test "x$LINE" != x ; then
6502 eval "DEFAULT_$LINE"
6503 else
6504 no_cache=1
6505 fi
6506
6507 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
6508
6509fi;
6510
6511 eval "$ac_cv_use_zipstream"
6512 if test "$no_cache" != 1; then
6513 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
6514 fi
6515
6516 if test "$wxUSE_ZIPSTREAM" = yes; then
6517 echo "$as_me:$LINENO: result: yes" >&5
6518echo "${ECHO_T}yes" >&6
6519 else
6520 echo "$as_me:$LINENO: result: no" >&5
6521echo "${ECHO_T}no" >&6
6522 fi
6523
6524
a848cd7e
SC
6525
6526 enablestring=
6527 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
6528echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
6529 no_cache=0
6530 # Check whether --enable-url or --disable-url was given.
6531if test "${enable_url+set}" = set; then
6532 enableval="$enable_url"
6533
6534 if test "$enableval" = yes; then
6535 ac_cv_use_url='wxUSE_URL=yes'
6536 else
6537 ac_cv_use_url='wxUSE_URL=no'
6538 fi
6539
6540else
6541
6542 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
6543 if test "x$LINE" != x ; then
6544 eval "DEFAULT_$LINE"
6545 else
6546 no_cache=1
6547 fi
6548
6549 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
6550
6551fi;
6552
6553 eval "$ac_cv_use_url"
6554 if test "$no_cache" != 1; then
6555 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
6556 fi
6557
6558 if test "$wxUSE_URL" = yes; then
6559 echo "$as_me:$LINENO: result: yes" >&5
6560echo "${ECHO_T}yes" >&6
6561 else
6562 echo "$as_me:$LINENO: result: no" >&5
6563echo "${ECHO_T}no" >&6
6564 fi
6565
6566
ca5c6ac3
VZ
6567 enablestring=
6568 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-variant" >&5
6569echo $ECHO_N "checking for --${enablestring:-enable}-variant... $ECHO_C" >&6
6570 no_cache=0
6571 # Check whether --enable-variant or --disable-variant was given.
6572if test "${enable_variant+set}" = set; then
6573 enableval="$enable_variant"
6574
6575 if test "$enableval" = yes; then
6576 ac_cv_use_variant='wxUSE_VARIANT=yes'
6577 else
6578 ac_cv_use_variant='wxUSE_VARIANT=no'
6579 fi
6580
6581else
6582
6583 LINE=`grep "wxUSE_VARIANT" ${wx_arg_cache_file}`
6584 if test "x$LINE" != x ; then
6585 eval "DEFAULT_$LINE"
6586 else
6587 no_cache=1
6588 fi
6589
6590 ac_cv_use_variant='wxUSE_VARIANT='$DEFAULT_wxUSE_VARIANT
6591
6592fi;
6593
6594 eval "$ac_cv_use_variant"
6595 if test "$no_cache" != 1; then
6596 echo $ac_cv_use_variant >> ${wx_arg_cache_file}.tmp
6597 fi
6598
6599 if test "$wxUSE_VARIANT" = yes; then
6600 echo "$as_me:$LINENO: result: yes" >&5
6601echo "${ECHO_T}yes" >&6
6602 else
6603 echo "$as_me:$LINENO: result: no" >&5
6604echo "${ECHO_T}no" >&6
6605 fi
6606
6607
a848cd7e
SC
6608 enablestring=
6609 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
6610echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
6611 no_cache=0
6612 # Check whether --enable-protocol or --disable-protocol was given.
6613if test "${enable_protocol+set}" = set; then
6614 enableval="$enable_protocol"
6615
6616 if test "$enableval" = yes; then
6617 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
6618 else
6619 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
6620 fi
6621
6622else
6623
6624 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
6625 if test "x$LINE" != x ; then
6626 eval "DEFAULT_$LINE"
6627 else
6628 no_cache=1
6629 fi
6630
6631 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
6632
6633fi;
6634
6635 eval "$ac_cv_use_protocol"
6636 if test "$no_cache" != 1; then
6637 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
6638 fi
6639
6640 if test "$wxUSE_PROTOCOL" = yes; then
6641 echo "$as_me:$LINENO: result: yes" >&5
6642echo "${ECHO_T}yes" >&6
6643 else
6644 echo "$as_me:$LINENO: result: no" >&5
6645echo "${ECHO_T}no" >&6
6646 fi
6647
6648
6649 enablestring=
6650 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
6651echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
6652 no_cache=0
6653 # Check whether --enable-protocol_http or --disable-protocol_http was given.
6654if test "${enable_protocol_http+set}" = set; then
6655 enableval="$enable_protocol_http"
6656
6657 if test "$enableval" = yes; then
6658 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
6659 else
6660 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
6661 fi
6662
6663else
6664
6665 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
6666 if test "x$LINE" != x ; then
6667 eval "DEFAULT_$LINE"
6668 else
6669 no_cache=1
6670 fi
6671
6672 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
6673
6674fi;
6675
6676 eval "$ac_cv_use_protocol_http"
6677 if test "$no_cache" != 1; then
6678 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
6679 fi
6680
6681 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
6682 echo "$as_me:$LINENO: result: yes" >&5
6683echo "${ECHO_T}yes" >&6
6684 else
6685 echo "$as_me:$LINENO: result: no" >&5
6686echo "${ECHO_T}no" >&6
6687 fi
6688
6689
6690 enablestring=
6691 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
6692echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
6693 no_cache=0
6694 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
6695if test "${enable_protocol_ftp+set}" = set; then
6696 enableval="$enable_protocol_ftp"
6697
6698 if test "$enableval" = yes; then
6699 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
6700 else
6701 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
6702 fi
6703
6704else
6705
6706 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
6707 if test "x$LINE" != x ; then
6708 eval "DEFAULT_$LINE"
6709 else
6710 no_cache=1
6711 fi
6712
6713 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
6714
6715fi;
6716
6717 eval "$ac_cv_use_protocol_ftp"
6718 if test "$no_cache" != 1; then
6719 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
6720 fi
6721
6722 if test "$wxUSE_PROTOCOL_FTP" = yes; then
6723 echo "$as_me:$LINENO: result: yes" >&5
6724echo "${ECHO_T}yes" >&6
6725 else
6726 echo "$as_me:$LINENO: result: no" >&5
6727echo "${ECHO_T}no" >&6
6728 fi
6729
6730
6731 enablestring=
6732 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
6733echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
6734 no_cache=0
6735 # Check whether --enable-protocol_file or --disable-protocol_file was given.
6736if test "${enable_protocol_file+set}" = set; then
6737 enableval="$enable_protocol_file"
6738
6739 if test "$enableval" = yes; then
6740 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
6741 else
6742 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
6743 fi
6744
6745else
6746
6747 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
6748 if test "x$LINE" != x ; then
6749 eval "DEFAULT_$LINE"
6750 else
6751 no_cache=1
6752 fi
6753
6754 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
6755
6756fi;
6757
6758 eval "$ac_cv_use_protocol_file"
6759 if test "$no_cache" != 1; then
6760 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
6761 fi
6762
6763 if test "$wxUSE_PROTOCOL_FILE" = yes; then
6764 echo "$as_me:$LINENO: result: yes" >&5
6765echo "${ECHO_T}yes" >&6
6766 else
6767 echo "$as_me:$LINENO: result: no" >&5
6768echo "${ECHO_T}no" >&6
6769 fi
6770
6771
6772
6773
6774
6775 enablestring=
6776 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
6777echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
6778 no_cache=0
6779 # Check whether --enable-threads or --disable-threads was given.
6780if test "${enable_threads+set}" = set; then
6781 enableval="$enable_threads"
6782
6783 if test "$enableval" = yes; then
6784 ac_cv_use_threads='wxUSE_THREADS=yes'
6785 else
6786 ac_cv_use_threads='wxUSE_THREADS=no'
6787 fi
6788
6789else
6790
6791 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
6792 if test "x$LINE" != x ; then
6793 eval "DEFAULT_$LINE"
6794 else
6795 no_cache=1
6796 fi
6797
6798 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
6799
6800fi;
6801
6802 eval "$ac_cv_use_threads"
6803 if test "$no_cache" != 1; then
6804 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
6805 fi
6806
6807 if test "$wxUSE_THREADS" = yes; then
6808 echo "$as_me:$LINENO: result: yes" >&5
6809echo "${ECHO_T}yes" >&6
6810 else
6811 echo "$as_me:$LINENO: result: no" >&5
6812echo "${ECHO_T}no" >&6
6813 fi
6814
6815
6816if test "$wxUSE_GUI" = "yes"; then
6817
6818
6819
6820 enablestring=
6821 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
6822echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
6823 no_cache=0
6824 # Check whether --enable-docview or --disable-docview was given.
6825if test "${enable_docview+set}" = set; then
6826 enableval="$enable_docview"
6827
6828 if test "$enableval" = yes; then
6829 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
6830 else
6831 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
6832 fi
6833
6834else
6835
6836 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
6837 if test "x$LINE" != x ; then
6838 eval "DEFAULT_$LINE"
6839 else
6840 no_cache=1
6841 fi
6842
6843 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
6844
6845fi;
6846
6847 eval "$ac_cv_use_docview"
6848 if test "$no_cache" != 1; then
6849 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
6850 fi
6851
6852 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
6853 echo "$as_me:$LINENO: result: yes" >&5
6854echo "${ECHO_T}yes" >&6
6855 else
6856 echo "$as_me:$LINENO: result: no" >&5
6857echo "${ECHO_T}no" >&6
6858 fi
6859
6860
6861 enablestring=
6862 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
6863echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
6864 no_cache=0
6865 # Check whether --enable-help or --disable-help was given.
6866if test "${enable_help+set}" = set; then
6867 enableval="$enable_help"
6868
6869 if test "$enableval" = yes; then
6870 ac_cv_use_help='wxUSE_HELP=yes'
6871 else
6872 ac_cv_use_help='wxUSE_HELP=no'
6873 fi
6874
6875else
6876
6877 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
6878 if test "x$LINE" != x ; then
6879 eval "DEFAULT_$LINE"
6880 else
6881 no_cache=1
6882 fi
6883
6884 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
6885
6886fi;
6887
6888 eval "$ac_cv_use_help"
6889 if test "$no_cache" != 1; then
6890 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
6891 fi
6892
6893 if test "$wxUSE_HELP" = yes; then
6894 echo "$as_me:$LINENO: result: yes" >&5
6895echo "${ECHO_T}yes" >&6
6896 else
6897 echo "$as_me:$LINENO: result: no" >&5
6898echo "${ECHO_T}no" >&6
6899 fi
6900
6901
6902 enablestring=
6903 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
6904echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
6905 no_cache=0
6906 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
6907if test "${enable_mshtmlhelp+set}" = set; then
6908 enableval="$enable_mshtmlhelp"
6909
6910 if test "$enableval" = yes; then
6911 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
6912 else
6913 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
6914 fi
6915
6916else
6917
6918 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
6919 if test "x$LINE" != x ; then
6920 eval "DEFAULT_$LINE"
6921 else
6922 no_cache=1
6923 fi
6924
6925 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
6926
6927fi;
6928
6929 eval "$ac_cv_use_mshtmlhelp"
6930 if test "$no_cache" != 1; then
6931 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
6932 fi
6933
6934 if test "$wxUSE_MS_HTML_HELP" = yes; then
6935 echo "$as_me:$LINENO: result: yes" >&5
6936echo "${ECHO_T}yes" >&6
6937 else
6938 echo "$as_me:$LINENO: result: no" >&5
6939echo "${ECHO_T}no" >&6
6940 fi
6941
6942
6943 enablestring=
6944 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
6945echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
6946 no_cache=0
6947 # Check whether --enable-html or --disable-html was given.
6948if test "${enable_html+set}" = set; then
6949 enableval="$enable_html"
6950
6951 if test "$enableval" = yes; then
6952 ac_cv_use_html='wxUSE_HTML=yes'
6953 else
6954 ac_cv_use_html='wxUSE_HTML=no'
6955 fi
6956
6957else
6958
6959 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
6960 if test "x$LINE" != x ; then
6961 eval "DEFAULT_$LINE"
6962 else
6963 no_cache=1
6964 fi
6965
6966 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
6967
6968fi;
6969
6970 eval "$ac_cv_use_html"
6971 if test "$no_cache" != 1; then
6972 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
6973 fi
6974
6975 if test "$wxUSE_HTML" = yes; then
6976 echo "$as_me:$LINENO: result: yes" >&5
6977echo "${ECHO_T}yes" >&6
6978 else
6979 echo "$as_me:$LINENO: result: no" >&5
6980echo "${ECHO_T}no" >&6
6981 fi
6982
6983
6984 enablestring=
6985 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
6986echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
6987 no_cache=0
6988 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
6989if test "${enable_htmlhelp+set}" = set; then
6990 enableval="$enable_htmlhelp"
6991
6992 if test "$enableval" = yes; then
6993 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
6994 else
6995 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
6996 fi
6997
6998else
6999
7000 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
7001 if test "x$LINE" != x ; then
7002 eval "DEFAULT_$LINE"
7003 else
7004 no_cache=1
7005 fi
7006
7007 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
7008
7009fi;
7010
7011 eval "$ac_cv_use_htmlhelp"
7012 if test "$no_cache" != 1; then
7013 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
7014 fi
7015
7016 if test "$wxUSE_WXHTML_HELP" = yes; then
7017 echo "$as_me:$LINENO: result: yes" >&5
7018echo "${ECHO_T}yes" >&6
7019 else
7020 echo "$as_me:$LINENO: result: no" >&5
7021echo "${ECHO_T}no" >&6
7022 fi
7023
7024
9a8f0513
VS
7025 enablestring=
7026 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5
7027echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6
7028 no_cache=0
7029 # Check whether --enable-xrc or --disable-xrc was given.
7030if test "${enable_xrc+set}" = set; then
7031 enableval="$enable_xrc"
7032
7033 if test "$enableval" = yes; then
7034 ac_cv_use_xrc='wxUSE_XRC=yes'
7035 else
7036 ac_cv_use_xrc='wxUSE_XRC=no'
7037 fi
7038
7039else
7040
7041 LINE=`grep "wxUSE_XRC" ${wx_arg_cache_file}`
7042 if test "x$LINE" != x ; then
7043 eval "DEFAULT_$LINE"
7044 else
7045 no_cache=1
7046 fi
7047
7048 ac_cv_use_xrc='wxUSE_XRC='$DEFAULT_wxUSE_XRC
7049
7050fi;
7051
7052 eval "$ac_cv_use_xrc"
7053 if test "$no_cache" != 1; then
7054 echo $ac_cv_use_xrc >> ${wx_arg_cache_file}.tmp
7055 fi
7056
7057 if test "$wxUSE_XRC" = yes; then
7058 echo "$as_me:$LINENO: result: yes" >&5
7059echo "${ECHO_T}yes" >&6
7060 else
7061 echo "$as_me:$LINENO: result: no" >&5
7062echo "${ECHO_T}no" >&6
7063 fi
7064
7065
3f60522a
JS
7066 enablestring=
7067 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-aui" >&5
7068echo $ECHO_N "checking for --${enablestring:-enable}-aui... $ECHO_C" >&6
7069 no_cache=0
7070 # Check whether --enable-aui or --disable-aui was given.
7071if test "${enable_aui+set}" = set; then
7072 enableval="$enable_aui"
7073
7074 if test "$enableval" = yes; then
7075 ac_cv_use_aui='wxUSE_AUI=yes'
7076 else
7077 ac_cv_use_aui='wxUSE_AUI=no'
7078 fi
7079
7080else
7081
7082 LINE=`grep "wxUSE_AUI" ${wx_arg_cache_file}`
7083 if test "x$LINE" != x ; then
7084 eval "DEFAULT_$LINE"
7085 else
7086 no_cache=1
7087 fi
7088
7089 ac_cv_use_aui='wxUSE_AUI='$DEFAULT_wxUSE_AUI
7090
7091fi;
7092
7093 eval "$ac_cv_use_aui"
7094 if test "$no_cache" != 1; then
7095 echo $ac_cv_use_aui >> ${wx_arg_cache_file}.tmp
7096 fi
7097
7098 if test "$wxUSE_AUI" = yes; then
7099 echo "$as_me:$LINENO: result: yes" >&5
7100echo "${ECHO_T}yes" >&6
7101 else
7102 echo "$as_me:$LINENO: result: no" >&5
7103echo "${ECHO_T}no" >&6
7104 fi
7105
7106
a848cd7e
SC
7107 enablestring=
7108 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
7109echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
7110 no_cache=0
7111 # Check whether --enable-constraints or --disable-constraints was given.
7112if test "${enable_constraints+set}" = set; then
7113 enableval="$enable_constraints"
7114
7115 if test "$enableval" = yes; then
7116 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
7117 else
7118 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
7119 fi
7120
7121else
7122
7123 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
7124 if test "x$LINE" != x ; then
7125 eval "DEFAULT_$LINE"
7126 else
7127 no_cache=1
7128 fi
7129
7130 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
7131
7132fi;
7133
7134 eval "$ac_cv_use_constraints"
7135 if test "$no_cache" != 1; then
7136 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
7137 fi
7138
7139 if test "$wxUSE_CONSTRAINTS" = yes; then
7140 echo "$as_me:$LINENO: result: yes" >&5
7141echo "${ECHO_T}yes" >&6
7142 else
7143 echo "$as_me:$LINENO: result: no" >&5
7144echo "${ECHO_T}no" >&6
7145 fi
7146
7147
7148 enablestring=
7149 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
7150echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
7151 no_cache=0
7152 # Check whether --enable-printarch or --disable-printarch was given.
7153if test "${enable_printarch+set}" = set; then
7154 enableval="$enable_printarch"
7155
7156 if test "$enableval" = yes; then
7157 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
7158 else
7159 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
7160 fi
7161
7162else
7163
7164 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
7165 if test "x$LINE" != x ; then
7166 eval "DEFAULT_$LINE"
7167 else
7168 no_cache=1
7169 fi
7170
7171 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
7172
7173fi;
7174
7175 eval "$ac_cv_use_printarch"
7176 if test "$no_cache" != 1; then
7177 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
7178 fi
7179
7180 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
7181 echo "$as_me:$LINENO: result: yes" >&5
7182echo "${ECHO_T}yes" >&6
7183 else
7184 echo "$as_me:$LINENO: result: no" >&5
7185echo "${ECHO_T}no" >&6
7186 fi
7187
7188
7189 enablestring=
7190 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
7191echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
7192 no_cache=0
7193 # Check whether --enable-mdi or --disable-mdi was given.
7194if test "${enable_mdi+set}" = set; then
7195 enableval="$enable_mdi"
7196
7197 if test "$enableval" = yes; then
8a7b1113 7198 ac_cv_use_mdi='wxUSE_MDI=yes'
a848cd7e 7199 else
8a7b1113 7200 ac_cv_use_mdi='wxUSE_MDI=no'
a848cd7e
SC
7201 fi
7202
7203else
7204
8a7b1113 7205 LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}`
a848cd7e
SC
7206 if test "x$LINE" != x ; then
7207 eval "DEFAULT_$LINE"
7208 else
7209 no_cache=1
7210 fi
7211
8a7b1113 7212 ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI
a848cd7e
SC
7213
7214fi;
7215
7216 eval "$ac_cv_use_mdi"
7217 if test "$no_cache" != 1; then
7218 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
7219 fi
7220
8a7b1113
VZ
7221 if test "$wxUSE_MDI" = yes; then
7222 echo "$as_me:$LINENO: result: yes" >&5
7223echo "${ECHO_T}yes" >&6
7224 else
7225 echo "$as_me:$LINENO: result: no" >&5
7226echo "${ECHO_T}no" >&6
7227 fi
7228
7229
7230 enablestring=
7231 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
7232echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6
7233 no_cache=0
7234 # Check whether --enable-mdidoc or --disable-mdidoc was given.
7235if test "${enable_mdidoc+set}" = set; then
7236 enableval="$enable_mdidoc"
7237
7238 if test "$enableval" = yes; then
7239 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
7240 else
7241 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
7242 fi
7243
7244else
7245
7246 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
7247 if test "x$LINE" != x ; then
7248 eval "DEFAULT_$LINE"
7249 else
7250 no_cache=1
7251 fi
7252
7253 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
7254
7255fi;
7256
7257 eval "$ac_cv_use_mdidoc"
7258 if test "$no_cache" != 1; then
7259 echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp
7260 fi
7261
a848cd7e
SC
7262 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
7263 echo "$as_me:$LINENO: result: yes" >&5
7264echo "${ECHO_T}yes" >&6
7265 else
7266 echo "$as_me:$LINENO: result: no" >&5
7267echo "${ECHO_T}no" >&6
7268 fi
7269
7270
7271 enablestring=
7272 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
7273echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
7274 no_cache=0
7275 # Check whether --enable-loggui or --disable-loggui was given.
7276if test "${enable_loggui+set}" = set; then
7277 enableval="$enable_loggui"
7278
7279 if test "$enableval" = yes; then
7280 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
7281 else
7282 ac_cv_use_loggui='wxUSE_LOGGUI=no'
7283 fi
7284
7285else
7286
7287 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
7288 if test "x$LINE" != x ; then
7289 eval "DEFAULT_$LINE"
7290 else
7291 no_cache=1
7292 fi
7293
7294 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
7295
7296fi;
7297
7298 eval "$ac_cv_use_loggui"
7299 if test "$no_cache" != 1; then
7300 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
7301 fi
7302
7303 if test "$wxUSE_LOGGUI" = yes; then
7304 echo "$as_me:$LINENO: result: yes" >&5
7305echo "${ECHO_T}yes" >&6
7306 else
7307 echo "$as_me:$LINENO: result: no" >&5
7308echo "${ECHO_T}no" >&6
7309 fi
7310
7311
7312 enablestring=
7313 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
7314echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
7315 no_cache=0
7316 # Check whether --enable-logwin or --disable-logwin was given.
7317if test "${enable_logwin+set}" = set; then
7318 enableval="$enable_logwin"
7319
7320 if test "$enableval" = yes; then
7321 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
7322 else
7323 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
7324 fi
7325
7326else
7327
7328 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
7329 if test "x$LINE" != x ; then
7330 eval "DEFAULT_$LINE"
7331 else
7332 no_cache=1
7333 fi
7334
7335 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
7336
7337fi;
7338
7339 eval "$ac_cv_use_logwin"
7340 if test "$no_cache" != 1; then
7341 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
7342 fi
7343
7344 if test "$wxUSE_LOGWINDOW" = yes; then
7345 echo "$as_me:$LINENO: result: yes" >&5
7346echo "${ECHO_T}yes" >&6
7347 else
7348 echo "$as_me:$LINENO: result: no" >&5
7349echo "${ECHO_T}no" >&6
7350 fi
7351
7352
7353 enablestring=
7354 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
7355echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
7356 no_cache=0
7357 # Check whether --enable-logdialog or --disable-logdialog was given.
7358if test "${enable_logdialog+set}" = set; then
7359 enableval="$enable_logdialog"
7360
7361 if test "$enableval" = yes; then
7362 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
7363 else
7364 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
7365 fi
7366
7367else
7368
7369 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
7370 if test "x$LINE" != x ; then
7371 eval "DEFAULT_$LINE"
7372 else
7373 no_cache=1
7374 fi
7375
7376 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
7377
7378fi;
7379
7380 eval "$ac_cv_use_logdialog"
7381 if test "$no_cache" != 1; then
7382 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
7383 fi
7384
7385 if test "$wxUSE_LOGDIALOG" = yes; then
7386 echo "$as_me:$LINENO: result: yes" >&5
7387echo "${ECHO_T}yes" >&6
7388 else
7389 echo "$as_me:$LINENO: result: no" >&5
7390echo "${ECHO_T}no" >&6
7391 fi
7392
7393
646b6ec1
VS
7394 enablestring=
7395 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
7396echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6
7397 no_cache=0
7398 # Check whether --enable-webkit or --disable-webkit was given.
7399if test "${enable_webkit+set}" = set; then
7400 enableval="$enable_webkit"
7401
7402 if test "$enableval" = yes; then
7403 ac_cv_use_webkit='wxUSE_WEBKIT=yes'
7404 else
7405 ac_cv_use_webkit='wxUSE_WEBKIT=no'
7406 fi
7407
7408else
7409
7410 LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}`
7411 if test "x$LINE" != x ; then
7412 eval "DEFAULT_$LINE"
7413 else
7414 no_cache=1
7415 fi
7416
7417 ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT
7418
7419fi;
7420
7421 eval "$ac_cv_use_webkit"
7422 if test "$no_cache" != 1; then
7423 echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp
7424 fi
7425
7426 if test "$wxUSE_WEBKIT" = yes; then
7427 echo "$as_me:$LINENO: result: yes" >&5
7428echo "${ECHO_T}yes" >&6
7429 else
7430 echo "$as_me:$LINENO: result: no" >&5
7431echo "${ECHO_T}no" >&6
7432 fi
7433
7434
91dea314
MW
7435 enablestring=
7436 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
7437echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
7438 no_cache=0
7439 # Check whether --enable-html or --disable-html was given.
7440if test "${enable_html+set}" = set; then
7441 enableval="$enable_html"
7442
7443 if test "$enableval" = yes; then
7444 ac_cv_use_html='wxUSE_RICHTEXT=yes'
7445 else
7446 ac_cv_use_html='wxUSE_RICHTEXT=no'
7447 fi
7448
7449else
7450
7451 LINE=`grep "wxUSE_RICHTEXT" ${wx_arg_cache_file}`
7452 if test "x$LINE" != x ; then
7453 eval "DEFAULT_$LINE"
7454 else
7455 no_cache=1
7456 fi
7457
7458 ac_cv_use_html='wxUSE_RICHTEXT='$DEFAULT_wxUSE_RICHTEXT
7459
7460fi;
7461
7462 eval "$ac_cv_use_html"
7463 if test "$no_cache" != 1; then
7464 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
7465 fi
7466
7467 if test "$wxUSE_RICHTEXT" = yes; then
7468 echo "$as_me:$LINENO: result: yes" >&5
7469echo "${ECHO_T}yes" >&6
7470 else
7471 echo "$as_me:$LINENO: result: no" >&5
7472echo "${ECHO_T}no" >&6
7473 fi
7474
7475
f43426c1
RD
7476 enablestring=
7477 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-graphics_ctx" >&5
7478echo $ECHO_N "checking for --${enablestring:-enable}-graphics_ctx... $ECHO_C" >&6
7479 no_cache=0
7480 # Check whether --enable-graphics_ctx or --disable-graphics_ctx was given.
7481if test "${enable_graphics_ctx+set}" = set; then
7482 enableval="$enable_graphics_ctx"
7483
7484 if test "$enableval" = yes; then
7485 ac_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=yes'
7486 else
7487 ac_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=no'
7488 fi
7489
7490else
7491
7492 LINE=`grep "wxUSE_GRAPHICS_CONTEXT" ${wx_arg_cache_file}`
7493 if test "x$LINE" != x ; then
7494 eval "DEFAULT_$LINE"
7495 else
7496 no_cache=1
7497 fi
7498
7499 ac_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT='$DEFAULT_wxUSE_GRAPHICS_CONTEXT
7500
7501fi;
7502
7503 eval "$ac_cv_use_graphics_ctx"
7504 if test "$no_cache" != 1; then
7505 echo $ac_cv_use_graphics_ctx >> ${wx_arg_cache_file}.tmp
7506 fi
7507
7508 if test "$wxUSE_GRAPHICS_CONTEXT" = yes; then
7509 echo "$as_me:$LINENO: result: yes" >&5
7510echo "${ECHO_T}yes" >&6
7511 else
7512 echo "$as_me:$LINENO: result: no" >&5
7513echo "${ECHO_T}no" >&6
7514 fi
7515
7516
a848cd7e
SC
7517
7518 enablestring=
7519 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
7520echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
7521 no_cache=0
7522 # Check whether --enable-postscript or --disable-postscript was given.
7523if test "${enable_postscript+set}" = set; then
7524 enableval="$enable_postscript"
7525
7526 if test "$enableval" = yes; then
7527 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
7528 else
7529 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
7530 fi
7531
7532else
7533
7534 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
7535 if test "x$LINE" != x ; then
7536 eval "DEFAULT_$LINE"
7537 else
7538 no_cache=1
7539 fi
7540
7541 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
7542
7543fi;
7544
7545 eval "$ac_cv_use_postscript"
7546 if test "$no_cache" != 1; then
7547 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
7548 fi
7549
7550 if test "$wxUSE_POSTSCRIPT" = yes; then
7551 echo "$as_me:$LINENO: result: yes" >&5
7552echo "${ECHO_T}yes" >&6
7553 else
7554 echo "$as_me:$LINENO: result: no" >&5
7555echo "${ECHO_T}no" >&6
7556 fi
7557
7558
7559
7560
7561
7562 enablestring=
7563 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
7564echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
7565 no_cache=0
7566 # Check whether --enable-prologio or --disable-prologio was given.
7567if test "${enable_prologio+set}" = set; then
7568 enableval="$enable_prologio"
7569
7570 if test "$enableval" = yes; then
7571 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
7572 else
7573 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
7574 fi
7575
7576else
7577
7578 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
7579 if test "x$LINE" != x ; then
7580 eval "DEFAULT_$LINE"
7581 else
7582 no_cache=1
7583 fi
7584
7585 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
7586
7587fi;
7588
7589 eval "$ac_cv_use_prologio"
7590 if test "$no_cache" != 1; then
7591 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
7592 fi
7593
7594 if test "$wxUSE_PROLOGIO" = yes; then
7595 echo "$as_me:$LINENO: result: yes" >&5
7596echo "${ECHO_T}yes" >&6
7597 else
7598 echo "$as_me:$LINENO: result: no" >&5
7599echo "${ECHO_T}no" >&6
7600 fi
7601
7602
7603 enablestring=
7604 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
7605echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
7606 no_cache=0
7607 # Check whether --enable-resources or --disable-resources was given.
7608if test "${enable_resources+set}" = set; then
7609 enableval="$enable_resources"
7610
7611 if test "$enableval" = yes; then
7612 ac_cv_use_resources='wxUSE_RESOURCES=yes'
7613 else
7614 ac_cv_use_resources='wxUSE_RESOURCES=no'
7615 fi
7616
7617else
7618
7619 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
7620 if test "x$LINE" != x ; then
7621 eval "DEFAULT_$LINE"
7622 else
7623 no_cache=1
7624 fi
7625
7626 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
7627
7628fi;
7629
7630 eval "$ac_cv_use_resources"
7631 if test "$no_cache" != 1; then
7632 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
7633 fi
7634
7635 if test "$wxUSE_RESOURCES" = yes; then
7636 echo "$as_me:$LINENO: result: yes" >&5
7637echo "${ECHO_T}yes" >&6
7638 else
7639 echo "$as_me:$LINENO: result: no" >&5
7640echo "${ECHO_T}no" >&6
7641 fi
7642
7643
7644
7645
7646 enablestring=
7647 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
7648echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
7649 no_cache=0
7650 # Check whether --enable-clipboard or --disable-clipboard was given.
7651if test "${enable_clipboard+set}" = set; then
7652 enableval="$enable_clipboard"
7653
7654 if test "$enableval" = yes; then
7655 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
7656 else
7657 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
7658 fi
7659
7660else
7661
7662 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
7663 if test "x$LINE" != x ; then
7664 eval "DEFAULT_$LINE"
7665 else
7666 no_cache=1
7667 fi
7668
7669 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
7670
7671fi;
7672
7673 eval "$ac_cv_use_clipboard"
7674 if test "$no_cache" != 1; then
7675 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
7676 fi
7677
7678 if test "$wxUSE_CLIPBOARD" = yes; then
7679 echo "$as_me:$LINENO: result: yes" >&5
7680echo "${ECHO_T}yes" >&6
7681 else
7682 echo "$as_me:$LINENO: result: no" >&5
7683echo "${ECHO_T}no" >&6
7684 fi
7685
7686
7687 enablestring=
7688 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
7689echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
7690 no_cache=0
7691 # Check whether --enable-dnd or --disable-dnd was given.
7692if test "${enable_dnd+set}" = set; then
7693 enableval="$enable_dnd"
7694
7695 if test "$enableval" = yes; then
7696 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
7697 else
7698 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
7699 fi
7700
7701else
7702
7703 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
7704 if test "x$LINE" != x ; then
7705 eval "DEFAULT_$LINE"
7706 else
7707 no_cache=1
7708 fi
7709
7710 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
7711
7712fi;
7713
7714 eval "$ac_cv_use_dnd"
7715 if test "$no_cache" != 1; then
7716 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
7717 fi
7718
7719 if test "$wxUSE_DRAG_AND_DROP" = yes; then
7720 echo "$as_me:$LINENO: result: yes" >&5
7721echo "${ECHO_T}yes" >&6
7722 else
7723 echo "$as_me:$LINENO: result: no" >&5
7724echo "${ECHO_T}no" >&6
7725 fi
7726
7727
7728 enablestring=
7729 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
7730echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
7731 no_cache=0
7732 # Check whether --enable-metafile or --disable-metafile was given.
7733if test "${enable_metafile+set}" = set; then
7734 enableval="$enable_metafile"
7735
7736 if test "$enableval" = yes; then
7737 ac_cv_use_metafile='wxUSE_METAFILE=yes'
7738 else
7739 ac_cv_use_metafile='wxUSE_METAFILE=no'
7740 fi
7741
7742else
7743
7744 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
7745 if test "x$LINE" != x ; then
7746 eval "DEFAULT_$LINE"
7747 else
7748 no_cache=1
7749 fi
7750
7751 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
7752
7753fi;
7754
7755 eval "$ac_cv_use_metafile"
7756 if test "$no_cache" != 1; then
7757 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
7758 fi
7759
7760 if test "$wxUSE_METAFILE" = yes; then
7761 echo "$as_me:$LINENO: result: yes" >&5
7762echo "${ECHO_T}yes" >&6
7763 else
7764 echo "$as_me:$LINENO: result: no" >&5
7765echo "${ECHO_T}no" >&6
7766 fi
7767
7768
7769
7770
7771
7772 enablestring=
7773 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
7774echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
7775 no_cache=0
7776 # Check whether --enable-controls or --disable-controls was given.
7777if test "${enable_controls+set}" = set; then
7778 enableval="$enable_controls"
7779
7780 if test "$enableval" = yes; then
7781 ac_cv_use_controls='wxUSE_CONTROLS=yes'
7782 else
7783 ac_cv_use_controls='wxUSE_CONTROLS=no'
7784 fi
7785
7786else
7787
7788 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
7789 if test "x$LINE" != x ; then
7790 eval "DEFAULT_$LINE"
7791 else
7792 no_cache=1
7793 fi
7794
7795 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
7796
7797fi;
7798
7799 eval "$ac_cv_use_controls"
7800 if test "$no_cache" != 1; then
7801 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
7802 fi
7803
7804 if test "$wxUSE_CONTROLS" = yes; then
7805 echo "$as_me:$LINENO: result: yes" >&5
7806echo "${ECHO_T}yes" >&6
7807 else
7808 echo "$as_me:$LINENO: result: no" >&5
7809echo "${ECHO_T}no" >&6
7810 fi
7811
7812
7813if test "$wxUSE_CONTROLS" = "yes"; then
7814 DEFAULT_wxUSE_ACCEL=yes
3ea50042 7815 DEFAULT_wxUSE_ANIMATIONCTRL=yes
a848cd7e
SC
7816 DEFAULT_wxUSE_BMPBUTTON=yes
7817 DEFAULT_wxUSE_BUTTON=yes
da98e9be 7818 DEFAULT_wxUSE_CALCTRL=yes
a848cd7e
SC
7819 DEFAULT_wxUSE_CARET=yes
7820 DEFAULT_wxUSE_COMBOBOX=yes
7821 DEFAULT_wxUSE_CHECKBOX=yes
7822 DEFAULT_wxUSE_CHECKLISTBOX=yes
7823 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 7824 DEFAULT_wxUSE_CHOICEBOOK=yes
e9263684
VZ
7825 DEFAULT_wxUSE_COLOURPICKERCTRL=yes
7826 DEFAULT_wxUSE_COMBOBOX=yes
da98e9be 7827 DEFAULT_wxUSE_DATEPICKCTRL=yes
e9263684
VZ
7828 DEFAULT_wxUSE_DISPLAY=yes
7829 DEFAULT_wxUSE_DIRPICKERCTRL=yes
7830 DEFAULT_wxUSE_FILEPICKERCTRL=yes
7831 DEFAULT_wxUSE_FONTPICKERCTRL=yes
a848cd7e
SC
7832 DEFAULT_wxUSE_GAUGE=yes
7833 DEFAULT_wxUSE_GRID=yes
6954625c 7834 DEFAULT_wxUSE_HYPERLINKCTRL=yes
20e34ecc 7835 DEFAULT_wxUSE_DATAVIEWCTRL=no
a848cd7e
SC
7836 DEFAULT_wxUSE_IMAGLIST=yes
7837 DEFAULT_wxUSE_LISTBOOK=yes
7838 DEFAULT_wxUSE_LISTBOX=yes
7839 DEFAULT_wxUSE_LISTCTRL=yes
7840 DEFAULT_wxUSE_NOTEBOOK=yes
7841 DEFAULT_wxUSE_RADIOBOX=yes
7842 DEFAULT_wxUSE_RADIOBTN=yes
7843 DEFAULT_wxUSE_SASH=yes
7844 DEFAULT_wxUSE_SCROLLBAR=yes
7845 DEFAULT_wxUSE_SLIDER=yes
7846 DEFAULT_wxUSE_SPINBTN=yes
7847 DEFAULT_wxUSE_SPINCTRL=yes
7848 DEFAULT_wxUSE_SPLITTER=yes
7849 DEFAULT_wxUSE_STATBMP=yes
7850 DEFAULT_wxUSE_STATBOX=yes
7851 DEFAULT_wxUSE_STATLINE=yes
7852 DEFAULT_wxUSE_STATUSBAR=yes
7853 DEFAULT_wxUSE_TAB_DIALOG=yes
7854 DEFAULT_wxUSE_TOGGLEBTN=yes
7855 DEFAULT_wxUSE_TOOLBAR=yes
7856 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
a848cd7e 7857 DEFAULT_wxUSE_TOOLTIPS=yes
0093c2fc 7858 DEFAULT_wxUSE_TREEBOOK=yes
5ec3bc43 7859 DEFAULT_wxUSE_TOOLBOOK=yes
a848cd7e
SC
7860 DEFAULT_wxUSE_TREECTRL=yes
7861 DEFAULT_wxUSE_POPUPWIN=yes
7862 DEFAULT_wxUSE_TIPWINDOW=yes
7863elif test "$wxUSE_CONTROLS" = "no"; then
7864 DEFAULT_wxUSE_ACCEL=no
3ea50042 7865 DEFAULT_wxUSE_ANIMATIONCTRL=no
a848cd7e
SC
7866 DEFAULT_wxUSE_BMPBUTTON=no
7867 DEFAULT_wxUSE_BUTTON=no
7868 DEFAULT_wxUSE_CALCTRL=no
7869 DEFAULT_wxUSE_CARET=no
7870 DEFAULT_wxUSE_COMBOBOX=no
7871 DEFAULT_wxUSE_CHECKBOX=no
7872 DEFAULT_wxUSE_CHECKLISTBOX=no
7873 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 7874 DEFAULT_wxUSE_CHOICEBOOK=no
e9263684
VZ
7875 DEFAULT_wxUSE_COLOURPICKERCTRL=no
7876 DEFAULT_wxUSE_COMBOBOX=no
da98e9be 7877 DEFAULT_wxUSE_DATEPICKCTRL=no
e9263684
VZ
7878 DEFAULT_wxUSE_DISPLAY=no
7879 DEFAULT_wxUSE_DIRPICKERCTRL=no
7880 DEFAULT_wxUSE_FILEPICKERCTRL=no
7881 DEFAULT_wxUSE_FONTPICKERCTRL=no
a848cd7e
SC
7882 DEFAULT_wxUSE_GAUGE=no
7883 DEFAULT_wxUSE_GRID=no
6954625c 7884 DEFAULT_wxUSE_HYPERLINKCTRL=no
20e34ecc 7885 DEFAULT_wxUSE_DATAVIEWCTRL=no
a848cd7e
SC
7886 DEFAULT_wxUSE_IMAGLIST=no
7887 DEFAULT_wxUSE_LISTBOOK=no
7888 DEFAULT_wxUSE_LISTBOX=no
7889 DEFAULT_wxUSE_LISTCTRL=no
7890 DEFAULT_wxUSE_NOTEBOOK=no
7891 DEFAULT_wxUSE_RADIOBOX=no
7892 DEFAULT_wxUSE_RADIOBTN=no
7893 DEFAULT_wxUSE_SASH=no
7894 DEFAULT_wxUSE_SCROLLBAR=no
7895 DEFAULT_wxUSE_SLIDER=no
7896 DEFAULT_wxUSE_SPINBTN=no
7897 DEFAULT_wxUSE_SPINCTRL=no
7898 DEFAULT_wxUSE_SPLITTER=no
7899 DEFAULT_wxUSE_STATBMP=no
7900 DEFAULT_wxUSE_STATBOX=no
7901 DEFAULT_wxUSE_STATLINE=no
7902 DEFAULT_wxUSE_STATUSBAR=no
7903 DEFAULT_wxUSE_TAB_DIALOG=no
7904 DEFAULT_wxUSE_TOGGLEBTN=no
7905 DEFAULT_wxUSE_TOOLBAR=no
7906 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
a848cd7e 7907 DEFAULT_wxUSE_TOOLTIPS=no
0093c2fc 7908 DEFAULT_wxUSE_TREEBOOK=no
5ec3bc43 7909 DEFAULT_wxUSE_TOOLBOOK=no
a848cd7e
SC
7910 DEFAULT_wxUSE_TREECTRL=no
7911 DEFAULT_wxUSE_POPUPWIN=no
7912 DEFAULT_wxUSE_TIPWINDOW=no
7913fi
7914
a848cd7e
SC
7915
7916 enablestring=
7917 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
7918echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
7919 no_cache=0
7920 # Check whether --enable-accel or --disable-accel was given.
7921if test "${enable_accel+set}" = set; then
7922 enableval="$enable_accel"
7923
7924 if test "$enableval" = yes; then
7925 ac_cv_use_accel='wxUSE_ACCEL=yes'
7926 else
7927 ac_cv_use_accel='wxUSE_ACCEL=no'
7928 fi
7929
7930else
7931
7932 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
7933 if test "x$LINE" != x ; then
7934 eval "DEFAULT_$LINE"
7935 else
7936 no_cache=1
7937 fi
7938
7939 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
7940
7941fi;
7942
7943 eval "$ac_cv_use_accel"
7944 if test "$no_cache" != 1; then
7945 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
7946 fi
7947
7948 if test "$wxUSE_ACCEL" = yes; then
7949 echo "$as_me:$LINENO: result: yes" >&5
7950echo "${ECHO_T}yes" >&6
7951 else
7952 echo "$as_me:$LINENO: result: no" >&5
7953echo "${ECHO_T}no" >&6
7954 fi
7955
7956
3ea50042
VZ
7957 enablestring=
7958 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-animatectrl" >&5
7959echo $ECHO_N "checking for --${enablestring:-enable}-animatectrl... $ECHO_C" >&6
7960 no_cache=0
7961 # Check whether --enable-animatectrl or --disable-animatectrl was given.
7962if test "${enable_animatectrl+set}" = set; then
7963 enableval="$enable_animatectrl"
7964
7965 if test "$enableval" = yes; then
7966 ac_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=yes'
7967 else
7968 ac_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=no'
7969 fi
7970
7971else
7972
7973 LINE=`grep "wxUSE_ANIMATIONCTRL" ${wx_arg_cache_file}`
7974 if test "x$LINE" != x ; then
7975 eval "DEFAULT_$LINE"
7976 else
7977 no_cache=1
7978 fi
7979
7980 ac_cv_use_animatectrl='wxUSE_ANIMATIONCTRL='$DEFAULT_wxUSE_ANIMATIONCTRL
7981
7982fi;
7983
7984 eval "$ac_cv_use_animatectrl"
7985 if test "$no_cache" != 1; then
7986 echo $ac_cv_use_animatectrl >> ${wx_arg_cache_file}.tmp
7987 fi
7988
7989 if test "$wxUSE_ANIMATIONCTRL" = yes; then
7990 echo "$as_me:$LINENO: result: yes" >&5
7991echo "${ECHO_T}yes" >&6
7992 else
7993 echo "$as_me:$LINENO: result: no" >&5
7994echo "${ECHO_T}no" >&6
7995 fi
7996
7997
a848cd7e
SC
7998 enablestring=
7999 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
8000echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
8001 no_cache=0
8002 # Check whether --enable-button or --disable-button was given.
8003if test "${enable_button+set}" = set; then
8004 enableval="$enable_button"
8005
8006 if test "$enableval" = yes; then
8007 ac_cv_use_button='wxUSE_BUTTON=yes'
8008 else
8009 ac_cv_use_button='wxUSE_BUTTON=no'
8010 fi
8011
8012else
8013
8014 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
8015 if test "x$LINE" != x ; then
8016 eval "DEFAULT_$LINE"
8017 else
8018 no_cache=1
8019 fi
8020
8021 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
8022
8023fi;
8024
8025 eval "$ac_cv_use_button"
8026 if test "$no_cache" != 1; then
8027 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
8028 fi
8029
8030 if test "$wxUSE_BUTTON" = yes; then
8031 echo "$as_me:$LINENO: result: yes" >&5
8032echo "${ECHO_T}yes" >&6
8033 else
8034 echo "$as_me:$LINENO: result: no" >&5
8035echo "${ECHO_T}no" >&6
8036 fi
8037
8038
8039 enablestring=
8040 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
8041echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
8042 no_cache=0
8043 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
8044if test "${enable_bmpbutton+set}" = set; then
8045 enableval="$enable_bmpbutton"
8046
8047 if test "$enableval" = yes; then
8048 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
8049 else
8050 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
8051 fi
8052
8053else
8054
8055 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
8056 if test "x$LINE" != x ; then
8057 eval "DEFAULT_$LINE"
8058 else
8059 no_cache=1
8060 fi
8061
8062 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
8063
8064fi;
8065
8066 eval "$ac_cv_use_bmpbutton"
8067 if test "$no_cache" != 1; then
8068 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
8069 fi
8070
8071 if test "$wxUSE_BMPBUTTON" = yes; then
8072 echo "$as_me:$LINENO: result: yes" >&5
8073echo "${ECHO_T}yes" >&6
8074 else
8075 echo "$as_me:$LINENO: result: no" >&5
8076echo "${ECHO_T}no" >&6
8077 fi
8078
8079
95a46303
RR
8080 enablestring=
8081 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpcombobox" >&5
8082echo $ECHO_N "checking for --${enablestring:-enable}-bmpcombobox... $ECHO_C" >&6
8083 no_cache=0
8084 # Check whether --enable-bmpcombobox or --disable-bmpcombobox was given.
8085if test "${enable_bmpcombobox+set}" = set; then
8086 enableval="$enable_bmpcombobox"
8087
8088 if test "$enableval" = yes; then
8089 ac_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=yes'
8090 else
8091 ac_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=no'
8092 fi
8093
8094else
8095
8096 LINE=`grep "wxUSE_BITMAPCOMBOBOX" ${wx_arg_cache_file}`
8097 if test "x$LINE" != x ; then
8098 eval "DEFAULT_$LINE"
8099 else
8100 no_cache=1
8101 fi
8102
8103 ac_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX='$DEFAULT_wxUSE_BITMAPCOMBOBOX
8104
8105fi;
8106
8107 eval "$ac_cv_use_bmpcombobox"
8108 if test "$no_cache" != 1; then
8109 echo $ac_cv_use_bmpcombobox >> ${wx_arg_cache_file}.tmp
8110 fi
8111
8112 if test "$wxUSE_BITMAPCOMBOBOX" = yes; then
8113 echo "$as_me:$LINENO: result: yes" >&5
8114echo "${ECHO_T}yes" >&6
8115 else
8116 echo "$as_me:$LINENO: result: no" >&5
8117echo "${ECHO_T}no" >&6
8118 fi
8119
8120
a848cd7e
SC
8121 enablestring=
8122 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
8123echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
8124 no_cache=0
8125 # Check whether --enable-calendar or --disable-calendar was given.
8126if test "${enable_calendar+set}" = set; then
8127 enableval="$enable_calendar"
8128
8129 if test "$enableval" = yes; then
8130 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
8131 else
8132 ac_cv_use_calendar='wxUSE_CALCTRL=no'
8133 fi
8134
8135else
8136
8137 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
8138 if test "x$LINE" != x ; then
8139 eval "DEFAULT_$LINE"
8140 else
8141 no_cache=1
8142 fi
8143
8144 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
8145
8146fi;
8147
8148 eval "$ac_cv_use_calendar"
8149 if test "$no_cache" != 1; then
8150 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
8151 fi
8152
8153 if test "$wxUSE_CALCTRL" = yes; then
8154 echo "$as_me:$LINENO: result: yes" >&5
8155echo "${ECHO_T}yes" >&6
8156 else
8157 echo "$as_me:$LINENO: result: no" >&5
8158echo "${ECHO_T}no" >&6
8159 fi
8160
8161
8162 enablestring=
8163 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
8164echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
8165 no_cache=0
8166 # Check whether --enable-caret or --disable-caret was given.
8167if test "${enable_caret+set}" = set; then
8168 enableval="$enable_caret"
8169
8170 if test "$enableval" = yes; then
8171 ac_cv_use_caret='wxUSE_CARET=yes'
8172 else
8173 ac_cv_use_caret='wxUSE_CARET=no'
8174 fi
8175
8176else
8177
8178 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
8179 if test "x$LINE" != x ; then
8180 eval "DEFAULT_$LINE"
8181 else
8182 no_cache=1
8183 fi
8184
8185 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
8186
8187fi;
8188
8189 eval "$ac_cv_use_caret"
8190 if test "$no_cache" != 1; then
8191 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
8192 fi
8193
8194 if test "$wxUSE_CARET" = yes; then
8195 echo "$as_me:$LINENO: result: yes" >&5
8196echo "${ECHO_T}yes" >&6
8197 else
8198 echo "$as_me:$LINENO: result: no" >&5
8199echo "${ECHO_T}no" >&6
8200 fi
8201
8202
8203 enablestring=
8204 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
8205echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
8206 no_cache=0
8207 # Check whether --enable-checkbox or --disable-checkbox was given.
8208if test "${enable_checkbox+set}" = set; then
8209 enableval="$enable_checkbox"
8210
8211 if test "$enableval" = yes; then
8212 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
8213 else
8214 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
8215 fi
8216
8217else
8218
8219 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
8220 if test "x$LINE" != x ; then
8221 eval "DEFAULT_$LINE"
8222 else
8223 no_cache=1
8224 fi
8225
8226 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
8227
8228fi;
8229
8230 eval "$ac_cv_use_checkbox"
8231 if test "$no_cache" != 1; then
8232 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
8233 fi
8234
8235 if test "$wxUSE_CHECKBOX" = yes; then
8236 echo "$as_me:$LINENO: result: yes" >&5
8237echo "${ECHO_T}yes" >&6
8238 else
8239 echo "$as_me:$LINENO: result: no" >&5
8240echo "${ECHO_T}no" >&6
8241 fi
8242
8243
8244 enablestring=
8245 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
8246echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
8247 no_cache=0
8248 # Check whether --enable-checklst or --disable-checklst was given.
8249if test "${enable_checklst+set}" = set; then
8250 enableval="$enable_checklst"
8251
8252 if test "$enableval" = yes; then
8253 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
8254 else
8255 ac_cv_use_checklst='wxUSE_CHECKLST=no'
8256 fi
8257
8258else
8259
8260 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
8261 if test "x$LINE" != x ; then
8262 eval "DEFAULT_$LINE"
8263 else
8264 no_cache=1
8265 fi
8266
8267 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
8268
8269fi;
8270
8271 eval "$ac_cv_use_checklst"
8272 if test "$no_cache" != 1; then
8273 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
8274 fi
8275
8276 if test "$wxUSE_CHECKLST" = yes; then
8277 echo "$as_me:$LINENO: result: yes" >&5
8278echo "${ECHO_T}yes" >&6
8279 else
8280 echo "$as_me:$LINENO: result: no" >&5
8281echo "${ECHO_T}no" >&6
8282 fi
8283
8284
8285 enablestring=
8286 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
8287echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
8288 no_cache=0
8289 # Check whether --enable-choice or --disable-choice was given.
8290if test "${enable_choice+set}" = set; then
8291 enableval="$enable_choice"
8292
8293 if test "$enableval" = yes; then
8294 ac_cv_use_choice='wxUSE_CHOICE=yes'
8295 else
8296 ac_cv_use_choice='wxUSE_CHOICE=no'
8297 fi
8298
8299else
8300
8301 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
8302 if test "x$LINE" != x ; then
8303 eval "DEFAULT_$LINE"
8304 else
8305 no_cache=1
8306 fi
8307
8308 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
8309
8310fi;
8311
8312 eval "$ac_cv_use_choice"
8313 if test "$no_cache" != 1; then
8314 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
8315 fi
8316
8317 if test "$wxUSE_CHOICE" = yes; then
8318 echo "$as_me:$LINENO: result: yes" >&5
8319echo "${ECHO_T}yes" >&6
8320 else
8321 echo "$as_me:$LINENO: result: no" >&5
8322echo "${ECHO_T}no" >&6
8323 fi
8324
8325
92bbdbcd
WS
8326 enablestring=
8327 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
8328echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6
8329 no_cache=0
8330 # Check whether --enable-choicebook or --disable-choicebook was given.
8331if test "${enable_choicebook+set}" = set; then
8332 enableval="$enable_choicebook"
8333
8334 if test "$enableval" = yes; then
8335 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
8336 else
8337 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
8338 fi
8339
8340else
8341
8342 LINE=`grep "wxUSE_CHOICEBOOK" ${wx_arg_cache_file}`
8343 if test "x$LINE" != x ; then
8344 eval "DEFAULT_$LINE"
8345 else
8346 no_cache=1
8347 fi
8348
8349 ac_cv_use_choicebook='wxUSE_CHOICEBOOK='$DEFAULT_wxUSE_CHOICEBOOK
8350
8351fi;
8352
8353 eval "$ac_cv_use_choicebook"
8354 if test "$no_cache" != 1; then
8355 echo $ac_cv_use_choicebook >> ${wx_arg_cache_file}.tmp
8356 fi
8357
8358 if test "$wxUSE_CHOICEBOOK" = yes; then
8359 echo "$as_me:$LINENO: result: yes" >&5
8360echo "${ECHO_T}yes" >&6
8361 else
8362 echo "$as_me:$LINENO: result: no" >&5
8363echo "${ECHO_T}no" >&6
8364 fi
8365
8366
e9263684
VZ
8367 enablestring=
8368 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-colourpicker" >&5
8369echo $ECHO_N "checking for --${enablestring:-enable}-colourpicker... $ECHO_C" >&6
8370 no_cache=0
8371 # Check whether --enable-colourpicker or --disable-colourpicker was given.
8372if test "${enable_colourpicker+set}" = set; then
8373 enableval="$enable_colourpicker"
8374
8375 if test "$enableval" = yes; then
8376 ac_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=yes'
8377 else
8378 ac_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=no'
8379 fi
8380
8381else
8382
8383 LINE=`grep "wxUSE_COLOURPICKERCTRL" ${wx_arg_cache_file}`
8384 if test "x$LINE" != x ; then
8385 eval "DEFAULT_$LINE"
8386 else
8387 no_cache=1
8388 fi
8389
8390 ac_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL='$DEFAULT_wxUSE_COLOURPICKERCTRL
8391
8392fi;
8393
8394 eval "$ac_cv_use_colourpicker"
8395 if test "$no_cache" != 1; then
8396 echo $ac_cv_use_colourpicker >> ${wx_arg_cache_file}.tmp
8397 fi
8398
8399 if test "$wxUSE_COLOURPICKERCTRL" = yes; then
8400 echo "$as_me:$LINENO: result: yes" >&5
8401echo "${ECHO_T}yes" >&6
8402 else
8403 echo "$as_me:$LINENO: result: no" >&5
8404echo "${ECHO_T}no" >&6
8405 fi
8406
8407
a848cd7e
SC
8408 enablestring=
8409 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
8410echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
8411 no_cache=0
8412 # Check whether --enable-combobox or --disable-combobox was given.
8413if test "${enable_combobox+set}" = set; then
8414 enableval="$enable_combobox"
8415
8416 if test "$enableval" = yes; then
8417 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
8418 else
8419 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
8420 fi
8421
8422else
8423
8424 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
8425 if test "x$LINE" != x ; then
8426 eval "DEFAULT_$LINE"
8427 else
8428 no_cache=1
8429 fi
8430
8431 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
8432
8433fi;
8434
8435 eval "$ac_cv_use_combobox"
8436 if test "$no_cache" != 1; then
8437 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
8438 fi
8439
8440 if test "$wxUSE_COMBOBOX" = yes; then
8441 echo "$as_me:$LINENO: result: yes" >&5
8442echo "${ECHO_T}yes" >&6
8443 else
8444 echo "$as_me:$LINENO: result: no" >&5
8445echo "${ECHO_T}no" >&6
8446 fi
8447
8448
642bcba9 8449 enablestring=
a57d600f
VZ
8450 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-comboctrl" >&5
8451echo $ECHO_N "checking for --${enablestring:-enable}-comboctrl... $ECHO_C" >&6
642bcba9 8452 no_cache=0
a57d600f
VZ
8453 # Check whether --enable-comboctrl or --disable-comboctrl was given.
8454if test "${enable_comboctrl+set}" = set; then
8455 enableval="$enable_comboctrl"
642bcba9
VZ
8456
8457 if test "$enableval" = yes; then
a57d600f 8458 ac_cv_use_comboctrl='wxUSE_COMBOCTRL=yes'
642bcba9 8459 else
a57d600f 8460 ac_cv_use_comboctrl='wxUSE_COMBOCTRL=no'
642bcba9
VZ
8461 fi
8462
8463else
8464
a57d600f 8465 LINE=`grep "wxUSE_COMBOCTRL" ${wx_arg_cache_file}`
642bcba9
VZ
8466 if test "x$LINE" != x ; then
8467 eval "DEFAULT_$LINE"
8468 else
8469 no_cache=1
8470 fi
8471
a57d600f 8472 ac_cv_use_comboctrl='wxUSE_COMBOCTRL='$DEFAULT_wxUSE_COMBOCTRL
642bcba9
VZ
8473
8474fi;
8475
a57d600f 8476 eval "$ac_cv_use_comboctrl"
642bcba9 8477 if test "$no_cache" != 1; then
a57d600f 8478 echo $ac_cv_use_comboctrl >> ${wx_arg_cache_file}.tmp
642bcba9
VZ
8479 fi
8480
a57d600f 8481 if test "$wxUSE_COMBOCTRL" = yes; then
642bcba9
VZ
8482 echo "$as_me:$LINENO: result: yes" >&5
8483echo "${ECHO_T}yes" >&6
8484 else
8485 echo "$as_me:$LINENO: result: no" >&5
8486echo "${ECHO_T}no" >&6
8487 fi
8488
8489
da98e9be
VZ
8490 enablestring=
8491 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5
8492echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6
8493 no_cache=0
8494 # Check whether --enable-datepick or --disable-datepick was given.
8495if test "${enable_datepick+set}" = set; then
8496 enableval="$enable_datepick"
8497
8498 if test "$enableval" = yes; then
8499 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=yes'
8500 else
8501 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=no'
8502 fi
8503
8504else
8505
8506 LINE=`grep "wxUSE_DATEPICKCTRL" ${wx_arg_cache_file}`
8507 if test "x$LINE" != x ; then
8508 eval "DEFAULT_$LINE"
8509 else
8510 no_cache=1
8511 fi
8512
8513 ac_cv_use_datepick='wxUSE_DATEPICKCTRL='$DEFAULT_wxUSE_DATEPICKCTRL
8514
8515fi;
8516
8517 eval "$ac_cv_use_datepick"
8518 if test "$no_cache" != 1; then
8519 echo $ac_cv_use_datepick >> ${wx_arg_cache_file}.tmp
8520 fi
8521
8522 if test "$wxUSE_DATEPICKCTRL" = yes; then
8523 echo "$as_me:$LINENO: result: yes" >&5
8524echo "${ECHO_T}yes" >&6
8525 else
8526 echo "$as_me:$LINENO: result: no" >&5
8527echo "${ECHO_T}no" >&6
8528 fi
8529
8530
e9263684
VZ
8531 enablestring=
8532 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirpicker" >&5
8533echo $ECHO_N "checking for --${enablestring:-enable}-dirpicker... $ECHO_C" >&6
8534 no_cache=0
8535 # Check whether --enable-dirpicker or --disable-dirpicker was given.
8536if test "${enable_dirpicker+set}" = set; then
8537 enableval="$enable_dirpicker"
8538
8539 if test "$enableval" = yes; then
8540 ac_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=yes'
8541 else
8542 ac_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=no'
8543 fi
8544
8545else
8546
8547 LINE=`grep "wxUSE_DIRPICKERCTRL" ${wx_arg_cache_file}`
8548 if test "x$LINE" != x ; then
8549 eval "DEFAULT_$LINE"
8550 else
8551 no_cache=1
8552 fi
8553
8554 ac_cv_use_dirpicker='wxUSE_DIRPICKERCTRL='$DEFAULT_wxUSE_DIRPICKERCTRL
8555
8556fi;
8557
8558 eval "$ac_cv_use_dirpicker"
8559 if test "$no_cache" != 1; then
8560 echo $ac_cv_use_dirpicker >> ${wx_arg_cache_file}.tmp
8561 fi
8562
8563 if test "$wxUSE_DIRPICKERCTRL" = yes; then
8564 echo "$as_me:$LINENO: result: yes" >&5
8565echo "${ECHO_T}yes" >&6
8566 else
8567 echo "$as_me:$LINENO: result: no" >&5
8568echo "${ECHO_T}no" >&6
8569 fi
8570
8571
a848cd7e
SC
8572 enablestring=
8573 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
8574echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
8575 no_cache=0
8576 # Check whether --enable-display or --disable-display was given.
8577if test "${enable_display+set}" = set; then
8578 enableval="$enable_display"
8579
8580 if test "$enableval" = yes; then
8581 ac_cv_use_display='wxUSE_DISPLAY=yes'
8582 else
8583 ac_cv_use_display='wxUSE_DISPLAY=no'
8584 fi
8585
8586else
8587
8588 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
8589 if test "x$LINE" != x ; then
8590 eval "DEFAULT_$LINE"
8591 else
8592 no_cache=1
8593 fi
8594
8595 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
8596
8597fi;
8598
8599 eval "$ac_cv_use_display"
8600 if test "$no_cache" != 1; then
8601 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
8602 fi
8603
8604 if test "$wxUSE_DISPLAY" = yes; then
8605 echo "$as_me:$LINENO: result: yes" >&5
8606echo "${ECHO_T}yes" >&6
8607 else
8608 echo "$as_me:$LINENO: result: no" >&5
8609echo "${ECHO_T}no" >&6
8610 fi
8611
8612
e9263684
VZ
8613 enablestring=
8614 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filepicker" >&5
8615echo $ECHO_N "checking for --${enablestring:-enable}-filepicker... $ECHO_C" >&6
8616 no_cache=0
8617 # Check whether --enable-filepicker or --disable-filepicker was given.
8618if test "${enable_filepicker+set}" = set; then
8619 enableval="$enable_filepicker"
8620
8621 if test "$enableval" = yes; then
8622 ac_cv_use_filepicker='wxUSE_FILEPICKERCTRL=yes'
8623 else
8624 ac_cv_use_filepicker='wxUSE_FILEPICKERCTRL=no'
8625 fi
8626
8627else
8628
8629 LINE=`grep "wxUSE_FILEPICKERCTRL" ${wx_arg_cache_file}`
8630 if test "x$LINE" != x ; then
8631 eval "DEFAULT_$LINE"
8632 else
8633 no_cache=1
8634 fi
8635
8636 ac_cv_use_filepicker='wxUSE_FILEPICKERCTRL='$DEFAULT_wxUSE_FILEPICKERCTRL
8637
8638fi;
8639
8640 eval "$ac_cv_use_filepicker"
8641 if test "$no_cache" != 1; then
8642 echo $ac_cv_use_filepicker >> ${wx_arg_cache_file}.tmp
8643 fi
8644
8645 if test "$wxUSE_FILEPICKERCTRL" = yes; then
8646 echo "$as_me:$LINENO: result: yes" >&5
8647echo "${ECHO_T}yes" >&6
8648 else
8649 echo "$as_me:$LINENO: result: no" >&5
8650echo "${ECHO_T}no" >&6
8651 fi
8652
8653
8654 enablestring=
8655 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontpicker" >&5
8656echo $ECHO_N "checking for --${enablestring:-enable}-fontpicker... $ECHO_C" >&6
8657 no_cache=0
8658 # Check whether --enable-fontpicker or --disable-fontpicker was given.
8659if test "${enable_fontpicker+set}" = set; then
8660 enableval="$enable_fontpicker"
8661
8662 if test "$enableval" = yes; then
8663 ac_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=yes'
8664 else
8665 ac_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=no'
8666 fi
8667
8668else
8669
8670 LINE=`grep "wxUSE_FONTPICKERCTRL" ${wx_arg_cache_file}`
8671 if test "x$LINE" != x ; then
8672 eval "DEFAULT_$LINE"
8673 else
8674 no_cache=1
8675 fi
8676
8677 ac_cv_use_fontpicker='wxUSE_FONTPICKERCTRL='$DEFAULT_wxUSE_FONTPICKERCTRL
8678
8679fi;
8680
8681 eval "$ac_cv_use_fontpicker"
8682 if test "$no_cache" != 1; then
8683 echo $ac_cv_use_fontpicker >> ${wx_arg_cache_file}.tmp
8684 fi
8685
8686 if test "$wxUSE_FONTPICKERCTRL" = yes; then
8687 echo "$as_me:$LINENO: result: yes" >&5
8688echo "${ECHO_T}yes" >&6
8689 else
8690 echo "$as_me:$LINENO: result: no" >&5
8691echo "${ECHO_T}no" >&6
8692 fi
8693
8694
a848cd7e
SC
8695 enablestring=
8696 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
8697echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
8698 no_cache=0
8699 # Check whether --enable-gauge or --disable-gauge was given.
8700if test "${enable_gauge+set}" = set; then
8701 enableval="$enable_gauge"
8702
8703 if test "$enableval" = yes; then
8704 ac_cv_use_gauge='wxUSE_GAUGE=yes'
8705 else
8706 ac_cv_use_gauge='wxUSE_GAUGE=no'
8707 fi
8708
8709else
8710
8711 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
8712 if test "x$LINE" != x ; then
8713 eval "DEFAULT_$LINE"
8714 else
8715 no_cache=1
8716 fi
8717
8718 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
8719
8720fi;
8721
8722 eval "$ac_cv_use_gauge"
8723 if test "$no_cache" != 1; then
8724 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
8725 fi
8726
8727 if test "$wxUSE_GAUGE" = yes; then
8728 echo "$as_me:$LINENO: result: yes" >&5
8729echo "${ECHO_T}yes" >&6
8730 else
8731 echo "$as_me:$LINENO: result: no" >&5
8732echo "${ECHO_T}no" >&6
8733 fi
8734
8735
8736 enablestring=
8737 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
8738echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
8739 no_cache=0
8740 # Check whether --enable-grid or --disable-grid was given.
8741if test "${enable_grid+set}" = set; then
8742 enableval="$enable_grid"
8743
8744 if test "$enableval" = yes; then
8745 ac_cv_use_grid='wxUSE_GRID=yes'
8746 else
8747 ac_cv_use_grid='wxUSE_GRID=no'
8748 fi
8749
8750else
8751
8752 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
8753 if test "x$LINE" != x ; then
8754 eval "DEFAULT_$LINE"
8755 else
8756 no_cache=1
8757 fi
8758
8759 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
8760
8761fi;
8762
8763 eval "$ac_cv_use_grid"
8764 if test "$no_cache" != 1; then
8765 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
8766 fi
8767
8768 if test "$wxUSE_GRID" = yes; then
8769 echo "$as_me:$LINENO: result: yes" >&5
8770echo "${ECHO_T}yes" >&6
8771 else
8772 echo "$as_me:$LINENO: result: no" >&5
8773echo "${ECHO_T}no" >&6
8774 fi
8775
8776
20e34ecc
RR
8777 enablestring=
8778 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataviewctrl" >&5
8779echo $ECHO_N "checking for --${enablestring:-enable}-dataviewctrl... $ECHO_C" >&6
8780 no_cache=0
8781 # Check whether --enable-dataviewctrl or --disable-dataviewctrl was given.
8782if test "${enable_dataviewctrl+set}" = set; then
8783 enableval="$enable_dataviewctrl"
8784
8785 if test "$enableval" = yes; then
8786 ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=yes'
8787 else
8788 ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=no'
8789 fi
8790
8791else
8792
8793 LINE=`grep "wxUSE_DATAVIEWCTRL" ${wx_arg_cache_file}`
8794 if test "x$LINE" != x ; then
8795 eval "DEFAULT_$LINE"
8796 else
8797 no_cache=1
8798 fi
8799
8800 ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL='$DEFAULT_wxUSE_DATAVIEWCTRL
8801
8802fi;
8803
8804 eval "$ac_cv_use_dataviewctrl"
8805 if test "$no_cache" != 1; then
8806 echo $ac_cv_use_dataviewctrl >> ${wx_arg_cache_file}.tmp
8807 fi
8808
8809 if test "$wxUSE_DATAVIEWCTRL" = yes; then
8810 echo "$as_me:$LINENO: result: yes" >&5
8811echo "${ECHO_T}yes" >&6
8812 else
8813 echo "$as_me:$LINENO: result: no" >&5
8814echo "${ECHO_T}no" >&6
8815 fi
8816
8817
6954625c
VZ
8818 enablestring=
8819 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-hyperlink" >&5
8820echo $ECHO_N "checking for --${enablestring:-enable}-hyperlink... $ECHO_C" >&6
8821 no_cache=0
8822 # Check whether --enable-hyperlink or --disable-hyperlink was given.
8823if test "${enable_hyperlink+set}" = set; then
8824 enableval="$enable_hyperlink"
8825
8826 if test "$enableval" = yes; then
8827 ac_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=yes'
8828 else
8829 ac_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=no'
8830 fi
8831
8832else
8833
8834 LINE=`grep "wxUSE_HYPERLINKCTRL" ${wx_arg_cache_file}`
8835 if test "x$LINE" != x ; then
8836 eval "DEFAULT_$LINE"
8837 else
8838 no_cache=1
8839 fi
8840
8841 ac_cv_use_hyperlink='wxUSE_HYPERLINKCTRL='$DEFAULT_wxUSE_HYPERLINKCTRL
8842
8843fi;
8844
8845 eval "$ac_cv_use_hyperlink"
8846 if test "$no_cache" != 1; then
8847 echo $ac_cv_use_hyperlink >> ${wx_arg_cache_file}.tmp
8848 fi
8849
8850 if test "$wxUSE_HYPERLINKCTRL" = yes; then
8851 echo "$as_me:$LINENO: result: yes" >&5
8852echo "${ECHO_T}yes" >&6
8853 else
8854 echo "$as_me:$LINENO: result: no" >&5
8855echo "${ECHO_T}no" >&6
8856 fi
8857
8858
a848cd7e
SC
8859 enablestring=
8860 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
8861echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
8862 no_cache=0
8863 # Check whether --enable-imaglist or --disable-imaglist was given.
8864if test "${enable_imaglist+set}" = set; then
8865 enableval="$enable_imaglist"
8866
8867 if test "$enableval" = yes; then
8868 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
8869 else
8870 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
8871 fi
8872
8873else
8874
8875 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
8876 if test "x$LINE" != x ; then
8877 eval "DEFAULT_$LINE"
8878 else
8879 no_cache=1
8880 fi
8881
8882 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
8883
8884fi;
8885
8886 eval "$ac_cv_use_imaglist"
8887 if test "$no_cache" != 1; then
8888 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
8889 fi
8890
8891 if test "$wxUSE_IMAGLIST" = yes; then
8892 echo "$as_me:$LINENO: result: yes" >&5
8893echo "${ECHO_T}yes" >&6
8894 else
8895 echo "$as_me:$LINENO: result: no" >&5
8896echo "${ECHO_T}no" >&6
8897 fi
8898
8899
8900 enablestring=
8901 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
8902echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6
8903 no_cache=0
8904 # Check whether --enable-listbook or --disable-listbook was given.
8905if test "${enable_listbook+set}" = set; then
8906 enableval="$enable_listbook"
8907
8908 if test "$enableval" = yes; then
8909 ac_cv_use_listbook='wxUSE_LISTBOOK=yes'
8910 else
8911 ac_cv_use_listbook='wxUSE_LISTBOOK=no'
8912 fi
8913
8914else
8915
8916 LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}`
8917 if test "x$LINE" != x ; then
8918 eval "DEFAULT_$LINE"
8919 else
8920 no_cache=1
8921 fi
8922
8923 ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK
8924
8925fi;
8926
8927 eval "$ac_cv_use_listbook"
8928 if test "$no_cache" != 1; then
8929 echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp
8930 fi
8931
8932 if test "$wxUSE_LISTBOOK" = yes; then
8933 echo "$as_me:$LINENO: result: yes" >&5
8934echo "${ECHO_T}yes" >&6
8935 else
8936 echo "$as_me:$LINENO: result: no" >&5
8937echo "${ECHO_T}no" >&6
8938 fi
8939
8940
8941 enablestring=
8942 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
8943echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
8944 no_cache=0
8945 # Check whether --enable-listbox or --disable-listbox was given.
8946if test "${enable_listbox+set}" = set; then
8947 enableval="$enable_listbox"
8948
8949 if test "$enableval" = yes; then
8950 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
8951 else
8952 ac_cv_use_listbox='wxUSE_LISTBOX=no'
8953 fi
8954
8955else
8956
8957 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
8958 if test "x$LINE" != x ; then
8959 eval "DEFAULT_$LINE"
8960 else
8961 no_cache=1
8962 fi
8963
8964 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
8965
8966fi;
8967
8968 eval "$ac_cv_use_listbox"
8969 if test "$no_cache" != 1; then
8970 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
8971 fi
8972
8973 if test "$wxUSE_LISTBOX" = yes; then
8974 echo "$as_me:$LINENO: result: yes" >&5
8975echo "${ECHO_T}yes" >&6
8976 else
8977 echo "$as_me:$LINENO: result: no" >&5
8978echo "${ECHO_T}no" >&6
8979 fi
8980
8981
8982 enablestring=
8983 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
8984echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
8985 no_cache=0
8986 # Check whether --enable-listctrl or --disable-listctrl was given.
8987if test "${enable_listctrl+set}" = set; then
8988 enableval="$enable_listctrl"
8989
8990 if test "$enableval" = yes; then
8991 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
8992 else
8993 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
8994 fi
8995
8996else
8997
8998 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
8999 if test "x$LINE" != x ; then
9000 eval "DEFAULT_$LINE"
9001 else
9002 no_cache=1
9003 fi
9004
9005 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
9006
9007fi;
9008
9009 eval "$ac_cv_use_listctrl"
9010 if test "$no_cache" != 1; then
9011 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
9012 fi
9013
9014 if test "$wxUSE_LISTCTRL" = yes; then
9015 echo "$as_me:$LINENO: result: yes" >&5
9016echo "${ECHO_T}yes" >&6
9017 else
9018 echo "$as_me:$LINENO: result: no" >&5
9019echo "${ECHO_T}no" >&6
9020 fi
9021
9022
9023 enablestring=
9024 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
9025echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
9026 no_cache=0
9027 # Check whether --enable-notebook or --disable-notebook was given.
9028if test "${enable_notebook+set}" = set; then
9029 enableval="$enable_notebook"
9030
9031 if test "$enableval" = yes; then
9032 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
9033 else
9034 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
9035 fi
9036
9037else
9038
9039 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
9040 if test "x$LINE" != x ; then
9041 eval "DEFAULT_$LINE"
9042 else
9043 no_cache=1
9044 fi
9045
9046 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
9047
9048fi;
9049
9050 eval "$ac_cv_use_notebook"
9051 if test "$no_cache" != 1; then
9052 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
9053 fi
9054
9055 if test "$wxUSE_NOTEBOOK" = yes; then
9056 echo "$as_me:$LINENO: result: yes" >&5
9057echo "${ECHO_T}yes" >&6
9058 else
9059 echo "$as_me:$LINENO: result: no" >&5
9060echo "${ECHO_T}no" >&6
9061 fi
9062
9063
642bcba9 9064 enablestring=
a57d600f
VZ
9065 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-odcombobox" >&5
9066echo $ECHO_N "checking for --${enablestring:-enable}-odcombobox... $ECHO_C" >&6
642bcba9 9067 no_cache=0
a57d600f
VZ
9068 # Check whether --enable-odcombobox or --disable-odcombobox was given.
9069if test "${enable_odcombobox+set}" = set; then
9070 enableval="$enable_odcombobox"
642bcba9
VZ
9071
9072 if test "$enableval" = yes; then
a57d600f 9073 ac_cv_use_odcombobox='wxUSE_ODCOMBOBOX=yes'
642bcba9 9074 else
a57d600f 9075 ac_cv_use_odcombobox='wxUSE_ODCOMBOBOX=no'
642bcba9
VZ
9076 fi
9077
9078else
9079
a57d600f 9080 LINE=`grep "wxUSE_ODCOMBOBOX" ${wx_arg_cache_file}`
642bcba9
VZ
9081 if test "x$LINE" != x ; then
9082 eval "DEFAULT_$LINE"
9083 else
9084 no_cache=1
9085 fi
9086
a57d600f 9087 ac_cv_use_odcombobox='wxUSE_ODCOMBOBOX='$DEFAULT_wxUSE_ODCOMBOBOX
642bcba9
VZ
9088
9089fi;
9090
a57d600f 9091 eval "$ac_cv_use_odcombobox"
642bcba9 9092 if test "$no_cache" != 1; then
a57d600f 9093 echo $ac_cv_use_odcombobox >> ${wx_arg_cache_file}.tmp
642bcba9
VZ
9094 fi
9095
a57d600f 9096 if test "$wxUSE_ODCOMBOBOX" = yes; then
642bcba9
VZ
9097 echo "$as_me:$LINENO: result: yes" >&5
9098echo "${ECHO_T}yes" >&6
9099 else
9100 echo "$as_me:$LINENO: result: no" >&5
9101echo "${ECHO_T}no" >&6
9102 fi
9103
9104
a848cd7e
SC
9105 enablestring=
9106 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
9107echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
9108 no_cache=0
9109 # Check whether --enable-radiobox or --disable-radiobox was given.
9110if test "${enable_radiobox+set}" = set; then
9111 enableval="$enable_radiobox"
9112
9113 if test "$enableval" = yes; then
9114 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
9115 else
9116 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
9117 fi
9118
9119else
9120
9121 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
9122 if test "x$LINE" != x ; then
9123 eval "DEFAULT_$LINE"
9124 else
9125 no_cache=1
9126 fi
9127
9128 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
9129
9130fi;
9131
9132 eval "$ac_cv_use_radiobox"
9133 if test "$no_cache" != 1; then
9134 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
9135 fi
9136
9137 if test "$wxUSE_RADIOBOX" = yes; then
9138 echo "$as_me:$LINENO: result: yes" >&5
9139echo "${ECHO_T}yes" >&6
9140 else
9141 echo "$as_me:$LINENO: result: no" >&5
9142echo "${ECHO_T}no" >&6
9143 fi
9144
9145
9146 enablestring=
9147 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
9148echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
9149 no_cache=0
9150 # Check whether --enable-radiobtn or --disable-radiobtn was given.
9151if test "${enable_radiobtn+set}" = set; then
9152 enableval="$enable_radiobtn"
9153
9154 if test "$enableval" = yes; then
9155 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
9156 else
9157 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
9158 fi
9159
9160else
9161
9162 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
9163 if test "x$LINE" != x ; then
9164 eval "DEFAULT_$LINE"
9165 else
9166 no_cache=1
9167 fi
9168
9169 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
9170
9171fi;
9172
9173 eval "$ac_cv_use_radiobtn"
9174 if test "$no_cache" != 1; then
9175 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
9176 fi
9177
9178 if test "$wxUSE_RADIOBTN" = yes; then
9179 echo "$as_me:$LINENO: result: yes" >&5
9180echo "${ECHO_T}yes" >&6
9181 else
9182 echo "$as_me:$LINENO: result: no" >&5
9183echo "${ECHO_T}no" >&6
9184 fi
9185
9186
9187 enablestring=
9188 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
9189echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
9190 no_cache=0
9191 # Check whether --enable-sash or --disable-sash was given.
9192if test "${enable_sash+set}" = set; then
9193 enableval="$enable_sash"
9194
9195 if test "$enableval" = yes; then
9196 ac_cv_use_sash='wxUSE_SASH=yes'
9197 else
9198 ac_cv_use_sash='wxUSE_SASH=no'
9199 fi
9200
9201else
9202
9203 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
9204 if test "x$LINE" != x ; then
9205 eval "DEFAULT_$LINE"
9206 else
9207 no_cache=1
9208 fi
9209
9210 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
9211
9212fi;
9213
9214 eval "$ac_cv_use_sash"
9215 if test "$no_cache" != 1; then
9216 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
9217 fi
9218
9219 if test "$wxUSE_SASH" = yes; then
9220 echo "$as_me:$LINENO: result: yes" >&5
9221echo "${ECHO_T}yes" >&6
9222 else
9223 echo "$as_me:$LINENO: result: no" >&5
9224echo "${ECHO_T}no" >&6
9225 fi
9226
9227
9228 enablestring=
9229 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
9230echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
9231 no_cache=0
9232 # Check whether --enable-scrollbar or --disable-scrollbar was given.
9233if test "${enable_scrollbar+set}" = set; then
9234 enableval="$enable_scrollbar"
9235
9236 if test "$enableval" = yes; then
9237 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
9238 else
9239 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
9240 fi
9241
9242else
9243
9244 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
9245 if test "x$LINE" != x ; then
9246 eval "DEFAULT_$LINE"
9247 else
9248 no_cache=1
9249 fi
9250
9251 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
9252
9253fi;
9254
9255 eval "$ac_cv_use_scrollbar"
9256 if test "$no_cache" != 1; then
9257 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
9258 fi
9259
9260 if test "$wxUSE_SCROLLBAR" = yes; then
9261 echo "$as_me:$LINENO: result: yes" >&5
9262echo "${ECHO_T}yes" >&6
9263 else
9264 echo "$as_me:$LINENO: result: no" >&5
9265echo "${ECHO_T}no" >&6
9266 fi
9267
9268
9269 enablestring=
9270 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
9271echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
9272 no_cache=0
9273 # Check whether --enable-slider or --disable-slider was given.
9274if test "${enable_slider+set}" = set; then
9275 enableval="$enable_slider"
9276
9277 if test "$enableval" = yes; then
9278 ac_cv_use_slider='wxUSE_SLIDER=yes'
9279 else
9280 ac_cv_use_slider='wxUSE_SLIDER=no'
9281 fi
9282
9283else
9284
9285 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
9286 if test "x$LINE" != x ; then
9287 eval "DEFAULT_$LINE"
9288 else
9289 no_cache=1
9290 fi
9291
9292 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
9293
9294fi;
9295
9296 eval "$ac_cv_use_slider"
9297 if test "$no_cache" != 1; then
9298 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
9299 fi
9300
9301 if test "$wxUSE_SLIDER" = yes; then
9302 echo "$as_me:$LINENO: result: yes" >&5
9303echo "${ECHO_T}yes" >&6
9304 else
9305 echo "$as_me:$LINENO: result: no" >&5
9306echo "${ECHO_T}no" >&6
9307 fi
9308
9309
9310 enablestring=
9311 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
9312echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
9313 no_cache=0
9314 # Check whether --enable-spinbtn or --disable-spinbtn was given.
9315if test "${enable_spinbtn+set}" = set; then
9316 enableval="$enable_spinbtn"
9317
9318 if test "$enableval" = yes; then
9319 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
9320 else
9321 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
9322 fi
9323
9324else
9325
9326 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
9327 if test "x$LINE" != x ; then
9328 eval "DEFAULT_$LINE"
9329 else
9330 no_cache=1
9331 fi
9332
9333 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
9334
9335fi;
9336
9337 eval "$ac_cv_use_spinbtn"
9338 if test "$no_cache" != 1; then
9339 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
9340 fi
9341
9342 if test "$wxUSE_SPINBTN" = yes; then
9343 echo "$as_me:$LINENO: result: yes" >&5
9344echo "${ECHO_T}yes" >&6
9345 else
9346 echo "$as_me:$LINENO: result: no" >&5
9347echo "${ECHO_T}no" >&6
9348 fi
9349
9350
9351 enablestring=
9352 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
9353echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
9354 no_cache=0
9355 # Check whether --enable-spinctrl or --disable-spinctrl was given.
9356if test "${enable_spinctrl+set}" = set; then
9357 enableval="$enable_spinctrl"
9358
9359 if test "$enableval" = yes; then
9360 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
9361 else
9362 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
9363 fi
9364
9365else
9366
9367 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
9368 if test "x$LINE" != x ; then
9369 eval "DEFAULT_$LINE"
9370 else
9371 no_cache=1
9372 fi
9373
9374 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
9375
9376fi;
9377
9378 eval "$ac_cv_use_spinctrl"
9379 if test "$no_cache" != 1; then
9380 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
9381 fi
9382
9383 if test "$wxUSE_SPINCTRL" = yes; then
9384 echo "$as_me:$LINENO: result: yes" >&5
9385echo "${ECHO_T}yes" >&6
9386 else
9387 echo "$as_me:$LINENO: result: no" >&5
9388echo "${ECHO_T}no" >&6
9389 fi
9390
9391
9392 enablestring=
9393 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
9394echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
9395 no_cache=0
9396 # Check whether --enable-splitter or --disable-splitter was given.
9397if test "${enable_splitter+set}" = set; then
9398 enableval="$enable_splitter"
9399
9400 if test "$enableval" = yes; then
9401 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
9402 else
9403 ac_cv_use_splitter='wxUSE_SPLITTER=no'
9404 fi
9405
9406else
9407
9408 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
9409 if test "x$LINE" != x ; then
9410 eval "DEFAULT_$LINE"
9411 else
9412 no_cache=1
9413 fi
9414
9415 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
9416
9417fi;
9418
9419 eval "$ac_cv_use_splitter"
9420 if test "$no_cache" != 1; then
9421 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
9422 fi
9423
9424 if test "$wxUSE_SPLITTER" = yes; then
9425 echo "$as_me:$LINENO: result: yes" >&5
9426echo "${ECHO_T}yes" >&6
9427 else
9428 echo "$as_me:$LINENO: result: no" >&5
9429echo "${ECHO_T}no" >&6
9430 fi
9431
9432
9433 enablestring=
9434 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
9435echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
9436 no_cache=0
9437 # Check whether --enable-statbmp or --disable-statbmp was given.
9438if test "${enable_statbmp+set}" = set; then
9439 enableval="$enable_statbmp"
9440
9441 if test "$enableval" = yes; then
9442 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
9443 else
9444 ac_cv_use_statbmp='wxUSE_STATBMP=no'
9445 fi
9446
9447else
9448
9449 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
9450 if test "x$LINE" != x ; then
9451 eval "DEFAULT_$LINE"
9452 else
9453 no_cache=1
9454 fi
9455
9456 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
9457
9458fi;
9459
9460 eval "$ac_cv_use_statbmp"
9461 if test "$no_cache" != 1; then
9462 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
9463 fi
9464
9465 if test "$wxUSE_STATBMP" = yes; then
9466 echo "$as_me:$LINENO: result: yes" >&5
9467echo "${ECHO_T}yes" >&6
9468 else
9469 echo "$as_me:$LINENO: result: no" >&5
9470echo "${ECHO_T}no" >&6
9471 fi
9472
9473
9474 enablestring=
9475 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
9476echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
9477 no_cache=0
9478 # Check whether --enable-statbox or --disable-statbox was given.
9479if test "${enable_statbox+set}" = set; then
9480 enableval="$enable_statbox"
9481
9482 if test "$enableval" = yes; then
9483 ac_cv_use_statbox='wxUSE_STATBOX=yes'
9484 else
9485 ac_cv_use_statbox='wxUSE_STATBOX=no'
9486 fi
9487
9488else
9489
9490 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
9491 if test "x$LINE" != x ; then
9492 eval "DEFAULT_$LINE"
9493 else
9494 no_cache=1
9495 fi
9496
9497 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
9498
9499fi;
9500
9501 eval "$ac_cv_use_statbox"
9502 if test "$no_cache" != 1; then
9503 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
9504 fi
9505
9506 if test "$wxUSE_STATBOX" = yes; then
9507 echo "$as_me:$LINENO: result: yes" >&5
9508echo "${ECHO_T}yes" >&6
9509 else
9510 echo "$as_me:$LINENO: result: no" >&5
9511echo "${ECHO_T}no" >&6
9512 fi
9513
9514
9515 enablestring=
9516 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
9517echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
9518 no_cache=0
9519 # Check whether --enable-statline or --disable-statline was given.
9520if test "${enable_statline+set}" = set; then
9521 enableval="$enable_statline"
9522
9523 if test "$enableval" = yes; then
9524 ac_cv_use_statline='wxUSE_STATLINE=yes'
9525 else
9526 ac_cv_use_statline='wxUSE_STATLINE=no'
9527 fi
9528
9529else
9530
9531 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
9532 if test "x$LINE" != x ; then
9533 eval "DEFAULT_$LINE"
9534 else
9535 no_cache=1
9536 fi
9537
9538 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
9539
9540fi;
9541
9542 eval "$ac_cv_use_statline"
9543 if test "$no_cache" != 1; then
9544 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
9545 fi
9546
9547 if test "$wxUSE_STATLINE" = yes; then
9548 echo "$as_me:$LINENO: result: yes" >&5
9549echo "${ECHO_T}yes" >&6
9550 else
9551 echo "$as_me:$LINENO: result: no" >&5
9552echo "${ECHO_T}no" >&6
9553 fi
9554
9555
9556 enablestring=
9557 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
9558echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
9559 no_cache=0
9560 # Check whether --enable-stattext or --disable-stattext was given.
9561if test "${enable_stattext+set}" = set; then
9562 enableval="$enable_stattext"
9563
9564 if test "$enableval" = yes; then
9565 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
9566 else
9567 ac_cv_use_stattext='wxUSE_STATTEXT=no'
9568 fi
9569
9570else
9571
9572 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
9573 if test "x$LINE" != x ; then
9574 eval "DEFAULT_$LINE"
9575 else
9576 no_cache=1
9577 fi
9578
9579 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
9580
9581fi;
9582
9583 eval "$ac_cv_use_stattext"
9584 if test "$no_cache" != 1; then
9585 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
9586 fi
9587
9588 if test "$wxUSE_STATTEXT" = yes; then
9589 echo "$as_me:$LINENO: result: yes" >&5
9590echo "${ECHO_T}yes" >&6
9591 else
9592 echo "$as_me:$LINENO: result: no" >&5
9593echo "${ECHO_T}no" >&6
9594 fi
9595
9596
9597 enablestring=
9598 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
9599echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
9600 no_cache=0
9601 # Check whether --enable-statusbar or --disable-statusbar was given.
9602if test "${enable_statusbar+set}" = set; then
9603 enableval="$enable_statusbar"
9604
9605 if test "$enableval" = yes; then
9606 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
9607 else
9608 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
9609 fi
9610
9611else
9612
9613 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
9614 if test "x$LINE" != x ; then
9615 eval "DEFAULT_$LINE"
9616 else
9617 no_cache=1
9618 fi
9619
9620 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
9621
9622fi;
9623
9624 eval "$ac_cv_use_statusbar"
9625 if test "$no_cache" != 1; then
9626 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
9627 fi
9628
9629 if test "$wxUSE_STATUSBAR" = yes; then
9630 echo "$as_me:$LINENO: result: yes" >&5
9631echo "${ECHO_T}yes" >&6
9632 else
9633 echo "$as_me:$LINENO: result: no" >&5
9634echo "${ECHO_T}no" >&6
9635 fi
9636
9637
9638 enablestring=
9639 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
9640echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
9641 no_cache=0
9642 # Check whether --enable-tabdialog or --disable-tabdialog was given.
9643if test "${enable_tabdialog+set}" = set; then
9644 enableval="$enable_tabdialog"
9645
9646 if test "$enableval" = yes; then
f10e38c4 9647 ac_cv_use_tabdialog='wxUSE_TAB_DIALOG=yes'
a848cd7e 9648 else
f10e38c4 9649 ac_cv_use_tabdialog='wxUSE_TAB_DIALOG=no'
a848cd7e
SC
9650 fi
9651
9652else
9653
f10e38c4 9654 LINE=`grep "wxUSE_TAB_DIALOG" ${wx_arg_cache_file}`
a848cd7e
SC
9655 if test "x$LINE" != x ; then
9656 eval "DEFAULT_$LINE"
9657 else
9658 no_cache=1
9659 fi
9660
f10e38c4 9661 ac_cv_use_tabdialog='wxUSE_TAB_DIALOG='$DEFAULT_wxUSE_TAB_DIALOG
a848cd7e
SC
9662
9663fi;
9664
9665 eval "$ac_cv_use_tabdialog"
9666 if test "$no_cache" != 1; then
9667 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
9668 fi
9669
f10e38c4 9670 if test "$wxUSE_TAB_DIALOG" = yes; then
a848cd7e
SC
9671 echo "$as_me:$LINENO: result: yes" >&5
9672echo "${ECHO_T}yes" >&6
9673 else
9674 echo "$as_me:$LINENO: result: no" >&5
9675echo "${ECHO_T}no" >&6
9676 fi
9677
9678
9679 enablestring=
9680 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
9681echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
9682 no_cache=0
9683 # Check whether --enable-textctrl or --disable-textctrl was given.
9684if test "${enable_textctrl+set}" = set; then
9685 enableval="$enable_textctrl"
9686
9687 if test "$enableval" = yes; then
9688 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
9689 else
9690 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
9691 fi
9692
9693else
9694
9695 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
9696 if test "x$LINE" != x ; then
9697 eval "DEFAULT_$LINE"
9698 else
9699 no_cache=1
9700 fi
9701
9702 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
9703
9704fi;
9705
9706 eval "$ac_cv_use_textctrl"
9707 if test "$no_cache" != 1; then
9708 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
9709 fi
9710
9711 if test "$wxUSE_TEXTCTRL" = yes; then
9712 echo "$as_me:$LINENO: result: yes" >&5
9713echo "${ECHO_T}yes" >&6
9714 else
9715 echo "$as_me:$LINENO: result: no" >&5
9716echo "${ECHO_T}no" >&6
9717 fi
9718
9719
9720 enablestring=
9721 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
9722echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
9723 no_cache=0
9724 # Check whether --enable-togglebtn or --disable-togglebtn was given.
9725if test "${enable_togglebtn+set}" = set; then
9726 enableval="$enable_togglebtn"
9727
9728 if test "$enableval" = yes; then
9729 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
9730 else
9731 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
9732 fi
9733
9734else
9735
9736 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
9737 if test "x$LINE" != x ; then
9738 eval "DEFAULT_$LINE"
9739 else
9740 no_cache=1
9741 fi
9742
9743 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
9744
9745fi;
9746
9747 eval "$ac_cv_use_togglebtn"
9748 if test "$no_cache" != 1; then
9749 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
9750 fi
9751
9752 if test "$wxUSE_TOGGLEBTN" = yes; then
9753 echo "$as_me:$LINENO: result: yes" >&5
9754echo "${ECHO_T}yes" >&6
9755 else
9756 echo "$as_me:$LINENO: result: no" >&5
9757echo "${ECHO_T}no" >&6
9758 fi
9759
9760
9761 enablestring=
9762 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
9763echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
9764 no_cache=0
9765 # Check whether --enable-toolbar or --disable-toolbar was given.
9766if test "${enable_toolbar+set}" = set; then
9767 enableval="$enable_toolbar"
9768
9769 if test "$enableval" = yes; then
9770 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
9771 else
9772 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
9773 fi
9774
9775else
9776
9777 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
9778 if test "x$LINE" != x ; then
9779 eval "DEFAULT_$LINE"
9780 else
9781 no_cache=1
9782 fi
9783
9784 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
9785
9786fi;
9787
9788 eval "$ac_cv_use_toolbar"
9789 if test "$no_cache" != 1; then
9790 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
9791 fi
9792
9793 if test "$wxUSE_TOOLBAR" = yes; then
9794 echo "$as_me:$LINENO: result: yes" >&5
9795echo "${ECHO_T}yes" >&6
9796 else
9797 echo "$as_me:$LINENO: result: no" >&5
9798echo "${ECHO_T}no" >&6
9799 fi
9800
9801
9802 enablestring=
9803 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
9804echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
9805 no_cache=0
9806 # Check whether --enable-tbarnative or --disable-tbarnative was given.
9807if test "${enable_tbarnative+set}" = set; then
9808 enableval="$enable_tbarnative"
9809
9810 if test "$enableval" = yes; then
9811 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
9812 else
9813 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
9814 fi
9815
9816else
9817
9818 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
9819 if test "x$LINE" != x ; then
9820 eval "DEFAULT_$LINE"
9821 else
9822 no_cache=1
9823 fi
9824
9825 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
9826
9827fi;
9828
9829 eval "$ac_cv_use_tbarnative"
9830 if test "$no_cache" != 1; then
9831 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
9832 fi
9833
9834 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
9835 echo "$as_me:$LINENO: result: yes" >&5
9836echo "${ECHO_T}yes" >&6
9837 else
9838 echo "$as_me:$LINENO: result: no" >&5
9839echo "${ECHO_T}no" >&6
9840 fi
9841
9842
0093c2fc
VZ
9843 enablestring=
9844 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treebook" >&5
9845echo $ECHO_N "checking for --${enablestring:-enable}-treebook... $ECHO_C" >&6
9846 no_cache=0
9847 # Check whether --enable-treebook or --disable-treebook was given.
9848if test "${enable_treebook+set}" = set; then
9849 enableval="$enable_treebook"
9850
9851 if test "$enableval" = yes; then
9852 ac_cv_use_treebook='wxUSE_TREEBOOK=yes'
9853 else
9854 ac_cv_use_treebook='wxUSE_TREEBOOK=no'
9855 fi
9856
9857else
9858
9859 LINE=`grep "wxUSE_TREEBOOK" ${wx_arg_cache_file}`
9860 if test "x$LINE" != x ; then
9861 eval "DEFAULT_$LINE"
9862 else
9863 no_cache=1
9864 fi
9865
9866 ac_cv_use_treebook='wxUSE_TREEBOOK='$DEFAULT_wxUSE_TREEBOOK
9867
9868fi;
9869
9870 eval "$ac_cv_use_treebook"
9871 if test "$no_cache" != 1; then
9872 echo $ac_cv_use_treebook >> ${wx_arg_cache_file}.tmp
9873 fi
9874
9875 if test "$wxUSE_TREEBOOK" = yes; then
9876 echo "$as_me:$LINENO: result: yes" >&5
9877echo "${ECHO_T}yes" >&6
9878 else
9879 echo "$as_me:$LINENO: result: no" >&5
9880echo "${ECHO_T}no" >&6
9881 fi
9882
9883
5ec3bc43
JS
9884 enablestring=
9885 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbook" >&5
9886echo $ECHO_N "checking for --${enablestring:-enable}-toolbook... $ECHO_C" >&6
9887 no_cache=0
9888 # Check whether --enable-toolbook or --disable-toolbook was given.
9889if test "${enable_toolbook+set}" = set; then
9890 enableval="$enable_toolbook"
9891
9892 if test "$enableval" = yes; then
9893 ac_cv_use_toolbook='wxUSE_TOOLBOOK=yes'
9894 else
9895 ac_cv_use_toolbook='wxUSE_TOOLBOOK=no'
9896 fi
9897
9898else
9899
9900 LINE=`grep "wxUSE_TOOLBOOK" ${wx_arg_cache_file}`
9901 if test "x$LINE" != x ; then
9902 eval "DEFAULT_$LINE"
9903 else
9904 no_cache=1
9905 fi
9906
9907 ac_cv_use_toolbook='wxUSE_TOOLBOOK='$DEFAULT_wxUSE_TOOLBOOK
9908
9909fi;
9910
9911 eval "$ac_cv_use_toolbook"
9912 if test "$no_cache" != 1; then
9913 echo $ac_cv_use_toolbook >> ${wx_arg_cache_file}.tmp
9914 fi
9915
9916 if test "$wxUSE_TOOLBOOK" = yes; then
9917 echo "$as_me:$LINENO: result: yes" >&5
9918echo "${ECHO_T}yes" >&6
9919 else
9920 echo "$as_me:$LINENO: result: no" >&5
9921echo "${ECHO_T}no" >&6
9922 fi
9923
9924
a848cd7e
SC
9925 enablestring=
9926 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
9927echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
9928 no_cache=0
9929 # Check whether --enable-treectrl or --disable-treectrl was given.
9930if test "${enable_treectrl+set}" = set; then
9931 enableval="$enable_treectrl"
9932
9933 if test "$enableval" = yes; then
9934 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
9935 else
9936 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
9937 fi
9938
9939else
9940
9941 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
9942 if test "x$LINE" != x ; then
9943 eval "DEFAULT_$LINE"
9944 else
9945 no_cache=1
9946 fi
9947
9948 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
9949
9950fi;
9951
9952 eval "$ac_cv_use_treectrl"
9953 if test "$no_cache" != 1; then
9954 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
9955 fi
9956
9957 if test "$wxUSE_TREECTRL" = yes; then
9958 echo "$as_me:$LINENO: result: yes" >&5
9959echo "${ECHO_T}yes" >&6
9960 else
9961 echo "$as_me:$LINENO: result: no" >&5
9962echo "${ECHO_T}no" >&6
9963 fi
9964
9965
9966 enablestring=
9967 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
9968echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
9969 no_cache=0
9970 # Check whether --enable-tipwindow or --disable-tipwindow was given.
9971if test "${enable_tipwindow+set}" = set; then
9972 enableval="$enable_tipwindow"
9973
9974 if test "$enableval" = yes; then
9975 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
9976 else
9977 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
9978 fi
9979
9980else
9981
9982 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
9983 if test "x$LINE" != x ; then
9984 eval "DEFAULT_$LINE"
9985 else
9986 no_cache=1
9987 fi
9988
9989 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
9990
9991fi;
9992
9993 eval "$ac_cv_use_tipwindow"
9994 if test "$no_cache" != 1; then
9995 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
9996 fi
9997
9998 if test "$wxUSE_TIPWINDOW" = yes; then
9999 echo "$as_me:$LINENO: result: yes" >&5
10000echo "${ECHO_T}yes" >&6
10001 else
10002 echo "$as_me:$LINENO: result: no" >&5
10003echo "${ECHO_T}no" >&6
10004 fi
10005
10006
10007 enablestring=
10008 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
10009echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
10010 no_cache=0
10011 # Check whether --enable-popupwin or --disable-popupwin was given.
10012if test "${enable_popupwin+set}" = set; then
10013 enableval="$enable_popupwin"
10014
10015 if test "$enableval" = yes; then
10016 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
10017 else
10018 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
10019 fi
10020
10021else
10022
10023 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
10024 if test "x$LINE" != x ; then
10025 eval "DEFAULT_$LINE"
10026 else
10027 no_cache=1
10028 fi
10029
10030 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
10031
10032fi;
10033
10034 eval "$ac_cv_use_popupwin"
10035 if test "$no_cache" != 1; then
10036 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
10037 fi
10038
10039 if test "$wxUSE_POPUPWIN" = yes; then
10040 echo "$as_me:$LINENO: result: yes" >&5
10041echo "${ECHO_T}yes" >&6
10042 else
10043 echo "$as_me:$LINENO: result: no" >&5
10044echo "${ECHO_T}no" >&6
10045 fi
10046
10047
10048
10049
10050 enablestring=
10051 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
10052echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
10053 no_cache=0
10054 # Check whether --enable-commondlg or --disable-commondlg was given.
10055if test "${enable_commondlg+set}" = set; then
10056 enableval="$enable_commondlg"
10057
10058 if test "$enableval" = yes; then
10059 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
10060 else
10061 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
10062 fi
10063
10064else
10065
10066 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
10067 if test "x$LINE" != x ; then
10068 eval "DEFAULT_$LINE"
10069 else
10070 no_cache=1
10071 fi
10072
10073 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
10074
10075fi;
10076
10077 eval "$ac_cv_use_commondlg"
10078 if test "$no_cache" != 1; then
10079 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
10080 fi
10081
10082 if test "$wxUSE_COMMONDLGS" = yes; then
10083 echo "$as_me:$LINENO: result: yes" >&5
10084echo "${ECHO_T}yes" >&6
10085 else
10086 echo "$as_me:$LINENO: result: no" >&5
10087echo "${ECHO_T}no" >&6
10088 fi
10089
10090
319c5ed4
VZ
10091 enablestring=
10092 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-aboutdlg" >&5
10093echo $ECHO_N "checking for --${enablestring:-enable}-aboutdlg... $ECHO_C" >&6
10094 no_cache=0
10095 # Check whether --enable-aboutdlg or --disable-aboutdlg was given.
10096if test "${enable_aboutdlg+set}" = set; then
10097 enableval="$enable_aboutdlg"
10098
10099 if test "$enableval" = yes; then
10100 ac_cv_use_aboutdlg='wxUSE_ABOUTDLG=yes'
10101 else
10102 ac_cv_use_aboutdlg='wxUSE_ABOUTDLG=no'
10103 fi
10104
10105else
10106
10107 LINE=`grep "wxUSE_ABOUTDLG" ${wx_arg_cache_file}`
10108 if test "x$LINE" != x ; then
10109 eval "DEFAULT_$LINE"
10110 else
10111 no_cache=1
10112 fi
10113
10114 ac_cv_use_aboutdlg='wxUSE_ABOUTDLG='$DEFAULT_wxUSE_ABOUTDLG
10115
10116fi;
10117
10118 eval "$ac_cv_use_aboutdlg"
10119 if test "$no_cache" != 1; then
10120 echo $ac_cv_use_aboutdlg >> ${wx_arg_cache_file}.tmp
10121 fi
10122
10123 if test "$wxUSE_ABOUTDLG" = yes; then
10124 echo "$as_me:$LINENO: result: yes" >&5
10125echo "${ECHO_T}yes" >&6
10126 else
10127 echo "$as_me:$LINENO: result: no" >&5
10128echo "${ECHO_T}no" >&6
10129 fi
10130
10131
a848cd7e
SC
10132 enablestring=
10133 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
10134echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
10135 no_cache=0
10136 # Check whether --enable-choicedlg or --disable-choicedlg was given.
10137if test "${enable_choicedlg+set}" = set; then
10138 enableval="$enable_choicedlg"
10139
10140 if test "$enableval" = yes; then
10141 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
10142 else
10143 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
10144 fi
10145
10146else
10147
10148 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
10149 if test "x$LINE" != x ; then
10150 eval "DEFAULT_$LINE"
10151 else
10152 no_cache=1
10153 fi
10154
10155 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
10156
10157fi;
10158
10159 eval "$ac_cv_use_choicedlg"
10160 if test "$no_cache" != 1; then
10161 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
10162 fi
10163
10164 if test "$wxUSE_CHOICEDLG" = yes; then
10165 echo "$as_me:$LINENO: result: yes" >&5
10166echo "${ECHO_T}yes" >&6
10167 else
10168 echo "$as_me:$LINENO: result: no" >&5
10169echo "${ECHO_T}no" >&6
10170 fi
10171
10172
10173 enablestring=
10174 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
10175echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
10176 no_cache=0
10177 # Check whether --enable-coldlg or --disable-coldlg was given.
10178if test "${enable_coldlg+set}" = set; then
10179 enableval="$enable_coldlg"
10180
10181 if test "$enableval" = yes; then
10182 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
10183 else
10184 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
10185 fi
10186
10187else
10188
10189 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
10190 if test "x$LINE" != x ; then
10191 eval "DEFAULT_$LINE"
10192 else
10193 no_cache=1
10194 fi
10195
10196 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
10197
10198fi;
10199
10200 eval "$ac_cv_use_coldlg"
10201 if test "$no_cache" != 1; then
10202 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
10203 fi
10204
10205 if test "$wxUSE_COLOURDLG" = yes; then
10206 echo "$as_me:$LINENO: result: yes" >&5
10207echo "${ECHO_T}yes" >&6
10208 else
10209 echo "$as_me:$LINENO: result: no" >&5
10210echo "${ECHO_T}no" >&6
10211 fi
10212
10213
10214 enablestring=
10215 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
10216echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
10217 no_cache=0
10218 # Check whether --enable-filedlg or --disable-filedlg was given.
10219if test "${enable_filedlg+set}" = set; then
10220 enableval="$enable_filedlg"
10221
10222 if test "$enableval" = yes; then
10223 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
10224 else
10225 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
10226 fi
10227
10228else
10229
10230 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
10231 if test "x$LINE" != x ; then
10232 eval "DEFAULT_$LINE"
10233 else
10234 no_cache=1
10235 fi
10236
10237 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
10238
10239fi;
10240
10241 eval "$ac_cv_use_filedlg"
10242 if test "$no_cache" != 1; then
10243 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
10244 fi
10245
10246 if test "$wxUSE_FILEDLG" = yes; then
10247 echo "$as_me:$LINENO: result: yes" >&5
10248echo "${ECHO_T}yes" >&6
10249 else
10250 echo "$as_me:$LINENO: result: no" >&5
10251echo "${ECHO_T}no" >&6
10252 fi
10253
10254
10255 enablestring=
10256 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
10257echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
10258 no_cache=0
10259 # Check whether --enable-finddlg or --disable-finddlg was given.
10260if test "${enable_finddlg+set}" = set; then
10261 enableval="$enable_finddlg"
10262
10263 if test "$enableval" = yes; then
10264 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
10265 else
10266 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
10267 fi
10268
10269else
10270
10271 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
10272 if test "x$LINE" != x ; then
10273 eval "DEFAULT_$LINE"
10274 else
10275 no_cache=1
10276 fi
10277
10278 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
10279
10280fi;
10281
10282 eval "$ac_cv_use_finddlg"
10283 if test "$no_cache" != 1; then
10284 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
10285 fi
10286
10287 if test "$wxUSE_FINDREPLDLG" = yes; then
10288 echo "$as_me:$LINENO: result: yes" >&5
10289echo "${ECHO_T}yes" >&6
10290 else
10291 echo "$as_me:$LINENO: result: no" >&5
10292echo "${ECHO_T}no" >&6
10293 fi
10294
10295
10296 enablestring=
10297 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
10298echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
10299 no_cache=0
10300 # Check whether --enable-fontdlg or --disable-fontdlg was given.
10301if test "${enable_fontdlg+set}" = set; then
10302 enableval="$enable_fontdlg"
10303
10304 if test "$enableval" = yes; then
10305 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
10306 else
10307 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
10308 fi
10309
10310else
10311
10312 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
10313 if test "x$LINE" != x ; then
10314 eval "DEFAULT_$LINE"
10315 else
10316 no_cache=1
10317 fi
10318
10319 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
10320
10321fi;
10322
10323 eval "$ac_cv_use_fontdlg"
10324 if test "$no_cache" != 1; then
10325 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
10326 fi
10327
10328 if test "$wxUSE_FONTDLG" = yes; then
10329 echo "$as_me:$LINENO: result: yes" >&5
10330echo "${ECHO_T}yes" >&6
10331 else
10332 echo "$as_me:$LINENO: result: no" >&5
10333echo "${ECHO_T}no" >&6
10334 fi
10335
10336
10337 enablestring=
10338 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
10339echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
10340 no_cache=0
10341 # Check whether --enable-dirdlg or --disable-dirdlg was given.
10342if test "${enable_dirdlg+set}" = set; then
10343 enableval="$enable_dirdlg"
10344
10345 if test "$enableval" = yes; then
10346 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
10347 else
10348 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
10349 fi
10350
10351else
10352
10353 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
10354 if test "x$LINE" != x ; then
10355 eval "DEFAULT_$LINE"
10356 else
10357 no_cache=1
10358 fi
10359
10360 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
10361
10362fi;
10363
10364 eval "$ac_cv_use_dirdlg"
10365 if test "$no_cache" != 1; then
10366 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
10367 fi
10368
10369 if test "$wxUSE_DIRDLG" = yes; then
10370 echo "$as_me:$LINENO: result: yes" >&5
10371echo "${ECHO_T}yes" >&6
10372 else
10373 echo "$as_me:$LINENO: result: no" >&5
10374echo "${ECHO_T}no" >&6
10375 fi
10376
10377
10378 enablestring=
10379 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
10380echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
10381 no_cache=0
10382 # Check whether --enable-msgdlg or --disable-msgdlg was given.
10383if test "${enable_msgdlg+set}" = set; then
10384 enableval="$enable_msgdlg"
10385
10386 if test "$enableval" = yes; then
10387 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
10388 else
10389 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
10390 fi
10391
10392else
10393
10394 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
10395 if test "x$LINE" != x ; then
10396 eval "DEFAULT_$LINE"
10397 else
10398 no_cache=1
10399 fi
10400
10401 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
10402
10403fi;
10404
10405 eval "$ac_cv_use_msgdlg"
10406 if test "$no_cache" != 1; then
10407 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
10408 fi
10409
10410 if test "$wxUSE_MSGDLG" = yes; then
10411 echo "$as_me:$LINENO: result: yes" >&5
10412echo "${ECHO_T}yes" >&6
10413 else
10414 echo "$as_me:$LINENO: result: no" >&5
10415echo "${ECHO_T}no" >&6
10416 fi
10417
10418
10419 enablestring=
10420 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
10421echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
10422 no_cache=0
10423 # Check whether --enable-numberdlg or --disable-numberdlg was given.
10424if test "${enable_numberdlg+set}" = set; then
10425 enableval="$enable_numberdlg"
10426
10427 if test "$enableval" = yes; then
10428 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
10429 else
10430 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
10431 fi
10432
10433else
10434
10435 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
10436 if test "x$LINE" != x ; then
10437 eval "DEFAULT_$LINE"
10438 else
10439 no_cache=1
10440 fi
10441
10442 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
10443
10444fi;
10445
10446 eval "$ac_cv_use_numberdlg"
10447 if test "$no_cache" != 1; then
10448 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
10449 fi
10450
10451 if test "$wxUSE_NUMBERDLG" = yes; then
10452 echo "$as_me:$LINENO: result: yes" >&5
10453echo "${ECHO_T}yes" >&6
10454 else
10455 echo "$as_me:$LINENO: result: no" >&5
10456echo "${ECHO_T}no" >&6
10457 fi
10458
10459
10460 enablestring=
10461 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
10462echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
10463 no_cache=0
10464 # Check whether --enable-splash or --disable-splash was given.
10465if test "${enable_splash+set}" = set; then
10466 enableval="$enable_splash"
10467
10468 if test "$enableval" = yes; then
10469 ac_cv_use_splash='wxUSE_SPLASH=yes'
10470 else
10471 ac_cv_use_splash='wxUSE_SPLASH=no'
10472 fi
10473
10474else
10475
10476 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
10477 if test "x$LINE" != x ; then
10478 eval "DEFAULT_$LINE"
10479 else
10480 no_cache=1
10481 fi
10482
10483 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
10484
10485fi;
10486
10487 eval "$ac_cv_use_splash"
10488 if test "$no_cache" != 1; then
10489 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
10490 fi
10491
10492 if test "$wxUSE_SPLASH" = yes; then
10493 echo "$as_me:$LINENO: result: yes" >&5
10494echo "${ECHO_T}yes" >&6
10495 else
10496 echo "$as_me:$LINENO: result: no" >&5
10497echo "${ECHO_T}no" >&6
10498 fi
10499
10500
10501 enablestring=
10502 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
10503echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
10504 no_cache=0
10505 # Check whether --enable-textdlg or --disable-textdlg was given.
10506if test "${enable_textdlg+set}" = set; then
10507 enableval="$enable_textdlg"
10508
10509 if test "$enableval" = yes; then
10510 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
10511 else
10512 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
10513 fi
10514
10515else
10516
10517 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
10518 if test "x$LINE" != x ; then
10519 eval "DEFAULT_$LINE"
10520 else
10521 no_cache=1
10522 fi
10523
10524 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
10525
10526fi;
10527
10528 eval "$ac_cv_use_textdlg"
10529 if test "$no_cache" != 1; then
10530 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
10531 fi
10532
10533 if test "$wxUSE_TEXTDLG" = yes; then
10534 echo "$as_me:$LINENO: result: yes" >&5
10535echo "${ECHO_T}yes" >&6
10536 else
10537 echo "$as_me:$LINENO: result: no" >&5
10538echo "${ECHO_T}no" >&6
10539 fi
10540
10541
10542 enablestring=
10543 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
10544echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
10545 no_cache=0
10546 # Check whether --enable-tipdlg or --disable-tipdlg was given.
10547if test "${enable_tipdlg+set}" = set; then
10548 enableval="$enable_tipdlg"
10549
10550 if test "$enableval" = yes; then
10551 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
10552 else
10553 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
10554 fi
10555
10556else
10557
10558 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
10559 if test "x$LINE" != x ; then
10560 eval "DEFAULT_$LINE"
10561 else
10562 no_cache=1
10563 fi
10564
10565 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
10566
10567fi;
10568
10569 eval "$ac_cv_use_tipdlg"
10570 if test "$no_cache" != 1; then
10571 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
10572 fi
10573
10574 if test "$wxUSE_STARTUP_TIPS" = yes; then
10575 echo "$as_me:$LINENO: result: yes" >&5
10576echo "${ECHO_T}yes" >&6
10577 else
10578 echo "$as_me:$LINENO: result: no" >&5
10579echo "${ECHO_T}no" >&6
10580 fi
10581
10582
10583 enablestring=
10584 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
10585echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
10586 no_cache=0
10587 # Check whether --enable-progressdlg or --disable-progressdlg was given.
10588if test "${enable_progressdlg+set}" = set; then
10589 enableval="$enable_progressdlg"
10590
10591 if test "$enableval" = yes; then
10592 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
10593 else
10594 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
10595 fi
10596
10597else
10598
10599 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
10600 if test "x$LINE" != x ; then
10601 eval "DEFAULT_$LINE"
10602 else
10603 no_cache=1
10604 fi
10605
10606 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
10607
10608fi;
10609
10610 eval "$ac_cv_use_progressdlg"
10611 if test "$no_cache" != 1; then
10612 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
10613 fi
10614
10615 if test "$wxUSE_PROGRESSDLG" = yes; then
10616 echo "$as_me:$LINENO: result: yes" >&5
10617echo "${ECHO_T}yes" >&6
10618 else
10619 echo "$as_me:$LINENO: result: no" >&5
10620echo "${ECHO_T}no" >&6
10621 fi
10622
10623
10624 enablestring=
10625 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
10626echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
10627 no_cache=0
10628 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
10629if test "${enable_wizarddlg+set}" = set; then
10630 enableval="$enable_wizarddlg"
10631
10632 if test "$enableval" = yes; then
10633 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
10634 else
10635 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
10636 fi
10637
10638else
10639
10640 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
10641 if test "x$LINE" != x ; then
10642 eval "DEFAULT_$LINE"
10643 else
10644 no_cache=1
10645 fi
10646
10647 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
10648
10649fi;
10650
10651 eval "$ac_cv_use_wizarddlg"
10652 if test "$no_cache" != 1; then
10653 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
10654 fi
10655
10656 if test "$wxUSE_WIZARDDLG" = yes; then
10657 echo "$as_me:$LINENO: result: yes" >&5
10658echo "${ECHO_T}yes" >&6
10659 else
10660 echo "$as_me:$LINENO: result: no" >&5
10661echo "${ECHO_T}no" >&6
10662 fi
10663
10664
10665
10666
10667 enablestring=
10668 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
10669echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
10670 no_cache=0
10671 # Check whether --enable-menus or --disable-menus was given.
10672if test "${enable_menus+set}" = set; then
10673 enableval="$enable_menus"
10674
10675 if test "$enableval" = yes; then
10676 ac_cv_use_menus='wxUSE_MENUS=yes'
10677 else
10678 ac_cv_use_menus='wxUSE_MENUS=no'
10679 fi
10680
10681else
10682
10683 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
10684 if test "x$LINE" != x ; then
10685 eval "DEFAULT_$LINE"
10686 else
10687 no_cache=1
10688 fi
10689
10690 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
10691
10692fi;
10693
10694 eval "$ac_cv_use_menus"
10695 if test "$no_cache" != 1; then
10696 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
10697 fi
10698
10699 if test "$wxUSE_MENUS" = yes; then
10700 echo "$as_me:$LINENO: result: yes" >&5
10701echo "${ECHO_T}yes" >&6
10702 else
10703 echo "$as_me:$LINENO: result: no" >&5
10704echo "${ECHO_T}no" >&6
10705 fi
10706
10707
10708 enablestring=
10709 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
10710echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
10711 no_cache=0
10712 # Check whether --enable-miniframe or --disable-miniframe was given.
10713if test "${enable_miniframe+set}" = set; then
10714 enableval="$enable_miniframe"
10715
10716 if test "$enableval" = yes; then
10717 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
10718 else
10719 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
10720 fi
10721
10722else
10723
10724 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
10725 if test "x$LINE" != x ; then
10726 eval "DEFAULT_$LINE"
10727 else
10728 no_cache=1
10729 fi
10730
10731 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
10732
10733fi;
10734
10735 eval "$ac_cv_use_miniframe"
10736 if test "$no_cache" != 1; then
10737 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
10738 fi
10739
10740 if test "$wxUSE_MINIFRAME" = yes; then
10741 echo "$as_me:$LINENO: result: yes" >&5
10742echo "${ECHO_T}yes" >&6
10743 else
10744 echo "$as_me:$LINENO: result: no" >&5
10745echo "${ECHO_T}no" >&6
10746 fi
10747
10748
10749 enablestring=
10750 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
10751echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
10752 no_cache=0
10753 # Check whether --enable-tooltips or --disable-tooltips was given.
10754if test "${enable_tooltips+set}" = set; then
10755 enableval="$enable_tooltips"
10756
10757 if test "$enableval" = yes; then
10758 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
10759 else
10760 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
10761 fi
10762
10763else
10764
10765 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
10766 if test "x$LINE" != x ; then
10767 eval "DEFAULT_$LINE"
10768 else
10769 no_cache=1
10770 fi
10771
10772 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
10773
10774fi;
10775
10776 eval "$ac_cv_use_tooltips"
10777 if test "$no_cache" != 1; then
10778 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
10779 fi
10780
10781 if test "$wxUSE_TOOLTIPS" = yes; then
10782 echo "$as_me:$LINENO: result: yes" >&5
10783echo "${ECHO_T}yes" >&6
10784 else
10785 echo "$as_me:$LINENO: result: no" >&5
10786echo "${ECHO_T}no" >&6
10787 fi
10788
10789
10790 enablestring=
10791 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
10792echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
10793 no_cache=0
10794 # Check whether --enable-splines or --disable-splines was given.
10795if test "${enable_splines+set}" = set; then
10796 enableval="$enable_splines"
10797
10798 if test "$enableval" = yes; then
10799 ac_cv_use_splines='wxUSE_SPLINES=yes'
10800 else
10801 ac_cv_use_splines='wxUSE_SPLINES=no'
10802 fi
10803
10804else
10805
10806 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
10807 if test "x$LINE" != x ; then
10808 eval "DEFAULT_$LINE"
10809 else
10810 no_cache=1
10811 fi
10812
10813 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
10814
10815fi;
10816
10817 eval "$ac_cv_use_splines"
10818 if test "$no_cache" != 1; then
10819 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
10820 fi
10821
10822 if test "$wxUSE_SPLINES" = yes; then
10823 echo "$as_me:$LINENO: result: yes" >&5
10824echo "${ECHO_T}yes" >&6
10825 else
10826 echo "$as_me:$LINENO: result: no" >&5
10827echo "${ECHO_T}no" >&6
10828 fi
10829
10830
fbe2ca43
SN
10831 enablestring=
10832 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mousewheel" >&5
10833echo $ECHO_N "checking for --${enablestring:-enable}-mousewheel... $ECHO_C" >&6
10834 no_cache=0
10835 # Check whether --enable-mousewheel or --disable-mousewheel was given.
10836if test "${enable_mousewheel+set}" = set; then
10837 enableval="$enable_mousewheel"
10838
10839 if test "$enableval" = yes; then
10840 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=yes'
10841 else
10842 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=no'
10843 fi
10844
10845else
10846
10847 LINE=`grep "wxUSE_MOUSEWHEEL" ${wx_arg_cache_file}`
10848 if test "x$LINE" != x ; then
10849 eval "DEFAULT_$LINE"
10850 else
10851 no_cache=1
10852 fi
10853
10854 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL='$DEFAULT_wxUSE_MOUSEWHEEL
10855
10856fi;
10857
10858 eval "$ac_cv_use_mousewheel"
10859 if test "$no_cache" != 1; then
10860 echo $ac_cv_use_mousewheel >> ${wx_arg_cache_file}.tmp
10861 fi
10862
10863 if test "$wxUSE_MOUSEWHEEL" = yes; then
10864 echo "$as_me:$LINENO: result: yes" >&5
10865echo "${ECHO_T}yes" >&6
10866 else
10867 echo "$as_me:$LINENO: result: no" >&5
10868echo "${ECHO_T}no" >&6
10869 fi
10870
10871
a848cd7e
SC
10872 enablestring=
10873 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
10874echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
10875 no_cache=0
10876 # Check whether --enable-validators or --disable-validators was given.
10877if test "${enable_validators+set}" = set; then
10878 enableval="$enable_validators"
10879
10880 if test "$enableval" = yes; then
10881 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
10882 else
10883 ac_cv_use_validators='wxUSE_VALIDATORS=no'
10884 fi
10885
10886else
10887
10888 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
10889 if test "x$LINE" != x ; then
10890 eval "DEFAULT_$LINE"
10891 else
10892 no_cache=1
10893 fi
10894
10895 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
10896
10897fi;
10898
10899 eval "$ac_cv_use_validators"
10900 if test "$no_cache" != 1; then
10901 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
10902 fi
10903
10904 if test "$wxUSE_VALIDATORS" = yes; then
10905 echo "$as_me:$LINENO: result: yes" >&5
10906echo "${ECHO_T}yes" >&6
10907 else
10908 echo "$as_me:$LINENO: result: no" >&5
10909echo "${ECHO_T}no" >&6
10910 fi
10911
10912
10913 enablestring=
10914 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
10915echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
10916 no_cache=0
10917 # Check whether --enable-busyinfo or --disable-busyinfo was given.
10918if test "${enable_busyinfo+set}" = set; then
10919 enableval="$enable_busyinfo"
10920
10921 if test "$enableval" = yes; then
10922 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
10923 else
10924 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
10925 fi
10926
10927else
10928
10929 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
10930 if test "x$LINE" != x ; then
10931 eval "DEFAULT_$LINE"
10932 else
10933 no_cache=1
10934 fi
10935
10936 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
10937
10938fi;
10939
10940 eval "$ac_cv_use_busyinfo"
10941 if test "$no_cache" != 1; then
10942 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
10943 fi
10944
10945 if test "$wxUSE_BUSYINFO" = yes; then
10946 echo "$as_me:$LINENO: result: yes" >&5
10947echo "${ECHO_T}yes" >&6
10948 else
10949 echo "$as_me:$LINENO: result: no" >&5
10950echo "${ECHO_T}no" >&6
10951 fi
10952
10953
10954 enablestring=
10955 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
10956echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
10957 no_cache=0
10958 # Check whether --enable-joystick or --disable-joystick was given.
10959if test "${enable_joystick+set}" = set; then
10960 enableval="$enable_joystick"
10961
10962 if test "$enableval" = yes; then
10963 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
10964 else
10965 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
10966 fi
10967
10968else
10969
10970 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
10971 if test "x$LINE" != x ; then
10972 eval "DEFAULT_$LINE"
10973 else
10974 no_cache=1
10975 fi
10976
10977 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
10978
10979fi;
10980
10981 eval "$ac_cv_use_joystick"
10982 if test "$no_cache" != 1; then
10983 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
10984 fi
10985
10986 if test "$wxUSE_JOYSTICK" = yes; then
10987 echo "$as_me:$LINENO: result: yes" >&5
10988echo "${ECHO_T}yes" >&6
10989 else
10990 echo "$as_me:$LINENO: result: no" >&5
10991echo "${ECHO_T}no" >&6
10992 fi
10993
10994
10995 enablestring=
10996 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
10997echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
10998 no_cache=0
10999 # Check whether --enable-metafile or --disable-metafile was given.
11000if test "${enable_metafile+set}" = set; then
11001 enableval="$enable_metafile"
11002
11003 if test "$enableval" = yes; then
11004 ac_cv_use_metafile='wxUSE_METAFILE=yes'
11005 else
11006 ac_cv_use_metafile='wxUSE_METAFILE=no'
11007 fi
11008
11009else
11010
11011 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
11012 if test "x$LINE" != x ; then
11013 eval "DEFAULT_$LINE"
11014 else
11015 no_cache=1
11016 fi
11017
11018 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
11019
11020fi;
11021
11022 eval "$ac_cv_use_metafile"
11023 if test "$no_cache" != 1; then
11024 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
11025 fi
11026
11027 if test "$wxUSE_METAFILE" = yes; then
11028 echo "$as_me:$LINENO: result: yes" >&5
11029echo "${ECHO_T}yes" >&6
11030 else
11031 echo "$as_me:$LINENO: result: no" >&5
11032echo "${ECHO_T}no" >&6
11033 fi
11034
11035
11036 enablestring=
11037 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
11038echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
11039 no_cache=0
11040 # Check whether --enable-dragimage or --disable-dragimage was given.
11041if test "${enable_dragimage+set}" = set; then
11042 enableval="$enable_dragimage"
11043
11044 if test "$enableval" = yes; then
11045 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
11046 else
11047 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
11048 fi
11049
11050else
11051
11052 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
11053 if test "x$LINE" != x ; then
11054 eval "DEFAULT_$LINE"
11055 else
11056 no_cache=1
11057 fi
11058
11059 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
11060
11061fi;
11062
11063 eval "$ac_cv_use_dragimage"
11064 if test "$no_cache" != 1; then
11065 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
11066 fi
11067
11068 if test "$wxUSE_DRAGIMAGE" = yes; then
11069 echo "$as_me:$LINENO: result: yes" >&5
11070echo "${ECHO_T}yes" >&6
11071 else
11072 echo "$as_me:$LINENO: result: no" >&5
11073echo "${ECHO_T}no" >&6
11074 fi
11075
11076
11077 enablestring=
11078 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
11079echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
11080 no_cache=0
11081 # Check whether --enable-accessibility or --disable-accessibility was given.
11082if test "${enable_accessibility+set}" = set; then
11083 enableval="$enable_accessibility"
11084
11085 if test "$enableval" = yes; then
11086 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
11087 else
11088 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
11089 fi
11090
11091else
11092
11093 LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
11094 if test "x$LINE" != x ; then
11095 eval "DEFAULT_$LINE"
11096 else
11097 no_cache=1
11098 fi
11099
11100 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
11101
11102fi;
11103
11104 eval "$ac_cv_use_accessibility"
11105 if test "$no_cache" != 1; then
11106 echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
11107 fi
11108
11109 if test "$wxUSE_ACCESSIBILITY" = yes; then
11110 echo "$as_me:$LINENO: result: yes" >&5
11111echo "${ECHO_T}yes" >&6
11112 else
11113 echo "$as_me:$LINENO: result: no" >&5
11114echo "${ECHO_T}no" >&6
11115 fi
11116
11117
38b4a946
VZ
11118if test "$wxUSE_MSW" = "1"; then
11119
11120 enablestring=
11121 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dccache" >&5
11122echo $ECHO_N "checking for --${enablestring:-enable}-dccache... $ECHO_C" >&6
11123 no_cache=0
11124 # Check whether --enable-dccache or --disable-dccache was given.
11125if test "${enable_dccache+set}" = set; then
11126 enableval="$enable_dccache"
11127
11128 if test "$enableval" = yes; then
11129 ac_cv_use_dccache='wxUSE_DC_CACHEING=yes'
11130 else
11131 ac_cv_use_dccache='wxUSE_DC_CACHEING=no'
11132 fi
11133
11134else
11135
11136 LINE=`grep "wxUSE_DC_CACHEING" ${wx_arg_cache_file}`
11137 if test "x$LINE" != x ; then
11138 eval "DEFAULT_$LINE"
11139 else
11140 no_cache=1
11141 fi
11142
11143 ac_cv_use_dccache='wxUSE_DC_CACHEING='$DEFAULT_wxUSE_DC_CACHEING
11144
11145fi;
11146
11147 eval "$ac_cv_use_dccache"
11148 if test "$no_cache" != 1; then
11149 echo $ac_cv_use_dccache >> ${wx_arg_cache_file}.tmp
11150 fi
11151
11152 if test "$wxUSE_DC_CACHEING" = yes; then
11153 echo "$as_me:$LINENO: result: yes" >&5
11154echo "${ECHO_T}yes" >&6
11155 else
11156 echo "$as_me:$LINENO: result: no" >&5
11157echo "${ECHO_T}no" >&6
11158 fi
11159
11160fi
11161
a848cd7e
SC
11162
11163
11164 enablestring=
11165 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
11166echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
11167 no_cache=0
11168 # Check whether --enable-palette or --disable-palette was given.
11169if test "${enable_palette+set}" = set; then
11170 enableval="$enable_palette"
11171
11172 if test "$enableval" = yes; then
11173 ac_cv_use_palette='wxUSE_PALETTE=yes'
11174 else
11175 ac_cv_use_palette='wxUSE_PALETTE=no'
11176 fi
11177
11178else
11179
11180 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
11181 if test "x$LINE" != x ; then
11182 eval "DEFAULT_$LINE"
11183 else
11184 no_cache=1
11185 fi
11186
11187 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
11188
11189fi;
11190
11191 eval "$ac_cv_use_palette"
11192 if test "$no_cache" != 1; then
11193 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
11194 fi
11195
11196 if test "$wxUSE_PALETTE" = yes; then
11197 echo "$as_me:$LINENO: result: yes" >&5
11198echo "${ECHO_T}yes" >&6
11199 else
11200 echo "$as_me:$LINENO: result: no" >&5
11201echo "${ECHO_T}no" >&6
11202 fi
11203
11204
11205 enablestring=
11206 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
11207echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
11208 no_cache=0
11209 # Check whether --enable-image or --disable-image was given.
11210if test "${enable_image+set}" = set; then
11211 enableval="$enable_image"
11212
11213 if test "$enableval" = yes; then
11214 ac_cv_use_image='wxUSE_IMAGE=yes'
11215 else
11216 ac_cv_use_image='wxUSE_IMAGE=no'
11217 fi
11218
11219else
11220
11221 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
11222 if test "x$LINE" != x ; then
11223 eval "DEFAULT_$LINE"
11224 else
11225 no_cache=1
11226 fi
11227
11228 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
11229
11230fi;
11231
11232 eval "$ac_cv_use_image"
11233 if test "$no_cache" != 1; then
11234 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
11235 fi
11236
11237 if test "$wxUSE_IMAGE" = yes; then
11238 echo "$as_me:$LINENO: result: yes" >&5
11239echo "${ECHO_T}yes" >&6
11240 else
11241 echo "$as_me:$LINENO: result: no" >&5
11242echo "${ECHO_T}no" >&6
11243 fi
11244
11245
11246 enablestring=
11247 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
11248echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
11249 no_cache=0
11250 # Check whether --enable-gif or --disable-gif was given.
11251if test "${enable_gif+set}" = set; then
11252 enableval="$enable_gif"
11253
11254 if test "$enableval" = yes; then
11255 ac_cv_use_gif='wxUSE_GIF=yes'
11256 else
11257 ac_cv_use_gif='wxUSE_GIF=no'
11258 fi
11259
11260else
11261
11262 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
11263 if test "x$LINE" != x ; then
11264 eval "DEFAULT_$LINE"
11265 else
11266 no_cache=1
11267 fi
11268
11269 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
11270
11271fi;
11272
11273 eval "$ac_cv_use_gif"
11274 if test "$no_cache" != 1; then
11275 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
11276 fi
11277
11278 if test "$wxUSE_GIF" = yes; then
11279 echo "$as_me:$LINENO: result: yes" >&5
11280echo "${ECHO_T}yes" >&6
11281 else
11282 echo "$as_me:$LINENO: result: no" >&5
11283echo "${ECHO_T}no" >&6
11284 fi
11285
11286
11287 enablestring=
11288 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
11289echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
11290 no_cache=0
11291 # Check whether --enable-pcx or --disable-pcx was given.
11292if test "${enable_pcx+set}" = set; then
11293 enableval="$enable_pcx"
11294
11295 if test "$enableval" = yes; then
11296 ac_cv_use_pcx='wxUSE_PCX=yes'
11297 else
11298 ac_cv_use_pcx='wxUSE_PCX=no'
11299 fi
11300
11301else
11302
11303 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
11304 if test "x$LINE" != x ; then
11305 eval "DEFAULT_$LINE"
11306 else
11307 no_cache=1
11308 fi
11309
11310 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
11311
11312fi;
11313
11314 eval "$ac_cv_use_pcx"
11315 if test "$no_cache" != 1; then
11316 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
11317 fi
11318
11319 if test "$wxUSE_PCX" = yes; then
11320 echo "$as_me:$LINENO: result: yes" >&5
11321echo "${ECHO_T}yes" >&6
11322 else
11323 echo "$as_me:$LINENO: result: no" >&5
11324echo "${ECHO_T}no" >&6
11325 fi
11326
11327
11328 enablestring=
11329 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
11330echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
11331 no_cache=0
11332 # Check whether --enable-iff or --disable-iff was given.
11333if test "${enable_iff+set}" = set; then
11334 enableval="$enable_iff"
11335
11336 if test "$enableval" = yes; then
11337 ac_cv_use_iff='wxUSE_IFF=yes'
11338 else
11339 ac_cv_use_iff='wxUSE_IFF=no'
11340 fi
11341
11342else
11343
11344 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
11345 if test "x$LINE" != x ; then
11346 eval "DEFAULT_$LINE"
11347 else
11348 no_cache=1
11349 fi
11350
11351 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
11352
11353fi;
11354
11355 eval "$ac_cv_use_iff"
11356 if test "$no_cache" != 1; then
11357 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
11358 fi
11359
11360 if test "$wxUSE_IFF" = yes; then
11361 echo "$as_me:$LINENO: result: yes" >&5
11362echo "${ECHO_T}yes" >&6
11363 else
11364 echo "$as_me:$LINENO: result: no" >&5
11365echo "${ECHO_T}no" >&6
11366 fi
11367
11368
11369 enablestring=
11370 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
11371echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
11372 no_cache=0
11373 # Check whether --enable-pnm or --disable-pnm was given.
11374if test "${enable_pnm+set}" = set; then
11375 enableval="$enable_pnm"
11376
11377 if test "$enableval" = yes; then
11378 ac_cv_use_pnm='wxUSE_PNM=yes'
11379 else
11380 ac_cv_use_pnm='wxUSE_PNM=no'
11381 fi
11382
11383else
11384
11385 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
11386 if test "x$LINE" != x ; then
11387 eval "DEFAULT_$LINE"
11388 else
11389 no_cache=1
11390 fi
11391
11392 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
11393
11394fi;
11395
11396 eval "$ac_cv_use_pnm"
11397 if test "$no_cache" != 1; then
11398 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
11399 fi
11400
11401 if test "$wxUSE_PNM" = yes; then
11402 echo "$as_me:$LINENO: result: yes" >&5
11403echo "${ECHO_T}yes" >&6
11404 else
11405 echo "$as_me:$LINENO: result: no" >&5
11406echo "${ECHO_T}no" >&6
11407 fi
11408
11409
11410 enablestring=
11411 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
11412echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
11413 no_cache=0
11414 # Check whether --enable-xpm or --disable-xpm was given.
11415if test "${enable_xpm+set}" = set; then
11416 enableval="$enable_xpm"
11417
11418 if test "$enableval" = yes; then
11419 ac_cv_use_xpm='wxUSE_XPM=yes'
11420 else
11421 ac_cv_use_xpm='wxUSE_XPM=no'
11422 fi
11423
11424else
11425
11426 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
11427 if test "x$LINE" != x ; then
11428 eval "DEFAULT_$LINE"
11429 else
11430 no_cache=1
11431 fi
11432
11433 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
11434
11435fi;
11436
11437 eval "$ac_cv_use_xpm"
11438 if test "$no_cache" != 1; then
11439 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
11440 fi
11441
11442 if test "$wxUSE_XPM" = yes; then
11443 echo "$as_me:$LINENO: result: yes" >&5
11444echo "${ECHO_T}yes" >&6
11445 else
11446 echo "$as_me:$LINENO: result: no" >&5
11447echo "${ECHO_T}no" >&6
11448 fi
11449
11450
11451 enablestring=
11452 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
11453echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
11454 no_cache=0
11455 # Check whether --enable-ico_cur or --disable-ico_cur was given.
11456if test "${enable_ico_cur+set}" = set; then
11457 enableval="$enable_ico_cur"
11458
11459 if test "$enableval" = yes; then
11460 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
11461 else
11462 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
11463 fi
11464
11465else
11466
11467 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
11468 if test "x$LINE" != x ; then
11469 eval "DEFAULT_$LINE"
11470 else
11471 no_cache=1
11472 fi
11473
11474 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
11475
11476fi;
11477
11478 eval "$ac_cv_use_ico_cur"
11479 if test "$no_cache" != 1; then
11480 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
11481 fi
11482
11483 if test "$wxUSE_ICO_CUR" = yes; then
11484 echo "$as_me:$LINENO: result: yes" >&5
11485echo "${ECHO_T}yes" >&6
11486 else
11487 echo "$as_me:$LINENO: result: no" >&5
11488echo "${ECHO_T}no" >&6
11489 fi
11490
11491
11492fi
11493
11494
11495
ceec2216
RL
11496# Check whether --with-flavour or --without-flavour was given.
11497if test "${with_flavour+set}" = set; then
11498 withval="$with_flavour"
11499 WX_FLAVOUR="$withval"
11500fi;
11501
11502
11503
a848cd7e
SC
11504 enablestring=
11505 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
11506echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
11507 no_cache=0
11508 # Check whether --enable-official_build or --disable-official_build was given.
11509if test "${enable_official_build+set}" = set; then
11510 enableval="$enable_official_build"
11511
11512 if test "$enableval" = yes; then
11513 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
11514 else
11515 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
11516 fi
11517
11518else
11519
11520 LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
11521 if test "x$LINE" != x ; then
11522 eval "DEFAULT_$LINE"
11523 else
11524 no_cache=1
11525 fi
11526
11527 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
11528
11529fi;
11530
11531 eval "$ac_cv_use_official_build"
11532 if test "$no_cache" != 1; then
11533 echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
11534 fi
11535
11536 if test "$wxUSE_OFFICIAL_BUILD" = yes; then
11537 echo "$as_me:$LINENO: result: yes" >&5
11538echo "${ECHO_T}yes" >&6
11539 else
11540 echo "$as_me:$LINENO: result: no" >&5
11541echo "${ECHO_T}no" >&6
11542 fi
11543
11544# Check whether --enable-vendor or --disable-vendor was given.
11545if test "${enable_vendor+set}" = set; then
11546 enableval="$enable_vendor"
11547 VENDOR="$enableval"
11548fi;
11549if test "x$VENDOR" = "x"; then
11550 VENDOR="custom"
11551fi
11552
a848cd7e
SC
11553
11554
11555
11556 echo "saving argument cache $wx_arg_cache_file"
11557 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
11558
11559
11560
11561echo "$as_me:$LINENO: checking for toolkit" >&5
11562echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
11563
11564# In Wine, we need to default to MSW, not GTK or MOTIF
11565if test "$wxUSE_WINE" = "yes"; then
11566 DEFAULT_DEFAULT_wxUSE_GTK=0
11567 DEFAULT_DEFAULT_wxUSE_MOTIF=0
11568 DEFAULT_DEFAULT_wxUSE_MSW=1
11569 wxUSE_SHARED=no
11570fi
11571
f597b41c 11572
a848cd7e
SC
11573if test "$wxUSE_GUI" = "yes"; then
11574
11575 if test "$USE_BEOS" = 1; then
11576 { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
11577echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
11578 { (exit 1); exit 1; }; }
11579 fi
11580
11581 if test "$TOOLKIT_GIVEN" = 1; then
11582 for toolkit in `echo $ALL_TOOLKITS`; do
11583 var=wxUSE_$toolkit
11584 eval "value=\$${var}"
f34ca037
MW
11585 if test "x$value" = "xno"; then
11586 eval "$var=0"
11587 elif test "x$value" != "x"; then
11588 eval "$var=1"
11589 fi
11590
11591 if test "x$value" != "x" -a "x$value" != "xyes" -a "x$value" != "xno"; then
11592 eval "wx${toolkit}_VERSION=$value"
11593 fi
a848cd7e
SC
11594 done
11595 else
11596 for toolkit in `echo $ALL_TOOLKITS`; do
11597 if test "$has_toolkit_in_cache" != 1; then
11598 var=DEFAULT_DEFAULT_wxUSE_$toolkit
11599 else
11600 var=DEFAULT_wxUSE_$toolkit
f34ca037
MW
11601
11602 eval "version=\$DEFAULT_wx${toolkit}_VERSION"
11603 if test "x$version" != "x"; then
11604 eval "wx${toolkit}_VERSION=$version"
11605 fi
a848cd7e
SC
11606 fi
11607 eval "wxUSE_$toolkit=\$${var}"
11608 done
11609 fi
11610
11611 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
b3c86150 11612 + ${wxUSE_MGL:-0} + ${wxUSE_DFB:-0} + ${wxUSE_MICROWIN:-0} \
a848cd7e
SC
11613 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
11614
11615 case "${host}" in
11616 *-pc-os2_emx | *-pc-os2-emx )
11617 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
11618 esac
11619
11620 case "$NUM_TOOLKITS" in
11621 1)
11622 ;;
11623 0)
11624 { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
11625echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
11626 { (exit 1); exit 1; }; }
11627 ;;
11628 *)
11629 { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
11630echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
11631 { (exit 1); exit 1; }; }
11632 esac
11633
f34ca037
MW
11634 # to be removed when --disable-gtk2 isn't needed
11635 if test "x$wxUSE_GTK2" = "xyes"; then
11636 wxGTK_VERSION=2
11637 elif test "x$wxUSE_GTK2" = "xno"; then
11638 wxGTK_VERSION=1
11639 fi
11640
a848cd7e
SC
11641 for toolkit in `echo $ALL_TOOLKITS`; do
11642 var=wxUSE_$toolkit
11643 eval "value=\$${var}"
11644 if test "x$value" != x; then
11645 cache_var=CACHE_$toolkit
11646 eval "cache=\$${cache_var}"
11647 if test "$cache" = 1; then
11648 echo "$var=$value" >> ${wx_arg_cache_file}
f34ca037
MW
11649 eval "version=\$wx${toolkit}_VERSION"
11650 if test "x$version" != "x"; then
11651 echo "wx${toolkit}_VERSION=$version" >> ${wx_arg_cache_file}
11652 fi
a848cd7e
SC
11653 fi
11654 if test "$value" = 1; then
11655 toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
11656 echo "$as_me:$LINENO: result: $toolkit_echo" >&5
11657echo "${ECHO_T}$toolkit_echo" >&6
11658 fi
11659 fi
11660 done
11661else
11662 if test "x$host_alias" != "x"; then
11663 echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
11664echo "${ECHO_T}base ($host_alias hosted) only" >&6
11665 else
11666 echo "$as_me:$LINENO: result: base only" >&5
11667echo "${ECHO_T}base only" >&6
11668 fi
11669fi
11670
11671wants_win32=0
11672doesnt_want_win32=0
11673case "${host}" in
11674 *-*-cygwin*)
11675 if test "$wxUSE_MSW" = 1 ; then
11676 wants_win32=1
7275146d 11677 BAKEFILE_FORCE_PLATFORM=win32
a848cd7e
SC
11678 else
11679 doesnt_want_win32=1
11680 fi
11681 ;;
11682 *-*-mingw*)
11683 wants_win32=1
11684 ;;
11685esac
11686
11687if test "$wxUSE_WINE" = "yes"; then
11688 wants_win32=1
11689 CC=winegcc
11690 CXX=wineg++
a848cd7e
SC
11691 LDFLAGS_GUI="-mwindows"
11692fi
11693
11694if test "$wants_win32" = 1 ; then
11695 USE_UNIX=0
11696 USE_WIN32=1
11697 cat >>confdefs.h <<\_ACEOF
11698#define __WIN32__ 1
11699_ACEOF
11700
11701 cat >>confdefs.h <<\_ACEOF
11702#define __WIN95__ 1
11703_ACEOF
11704
11705 cat >>confdefs.h <<\_ACEOF
11706#define __WINDOWS__ 1
11707_ACEOF
11708
11709 cat >>confdefs.h <<\_ACEOF
11710#define __GNUWIN32__ 1
11711_ACEOF
11712
11713 cat >>confdefs.h <<\_ACEOF
11714#define STRICT 1
11715_ACEOF
11716
11717 cat >>confdefs.h <<\_ACEOF
11718#define WINVER 0x0400
11719_ACEOF
11720
11721fi
11722if test "$doesnt_want_win32" = 1 ; then
11723 USE_UNIX=1
11724 USE_WIN32=0
11725fi
11726
11727if test "$USE_UNIX" = 1 ; then
11728 wxUSE_UNIX=yes
11729 cat >>confdefs.h <<\_ACEOF
11730#define __UNIX__ 1
11731_ACEOF
11732
11733fi
11734
11735
11736cat >confcache <<\_ACEOF
11737# This file is a shell script that caches the results of configure
11738# tests run on this system so they can be shared between configure
11739# scripts and configure runs, see configure's option --config-cache.
11740# It is not useful on other systems. If it contains results you don't
11741# want to keep, you may remove or edit it.
11742#
11743# config.status only pays attention to the cache file if you give it
11744# the --recheck option to rerun configure.
11745#
11746# `ac_cv_env_foo' variables (set or unset) will be overridden when
11747# loading this file, other *unset* `ac_cv_foo' will be assigned the
11748# following values.
11749
11750_ACEOF
11751
11752# The following way of writing the cache mishandles newlines in values,
11753# but we know of no workaround that is simple, portable, and efficient.
11754# So, don't put newlines in cache variables' values.
11755# Ultrix sh set writes to stderr and can't be redirected directly,
11756# and sets the high bit in the cache file unless we assign to the vars.
11757{
11758 (set) 2>&1 |
11759 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11760 *ac_space=\ *)
11761 # `set' does not quote correctly, so add quotes (double-quote
11762 # substitution turns \\\\ into \\, and sed turns \\ into \).
11763 sed -n \
ac1cb8d3
VS
11764 "s/'/'\\\\''/g;
11765 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
11766 ;;
11767 *)
11768 # `set' quotes correctly as required by POSIX, so do not add quotes.
11769 sed -n \
ac1cb8d3 11770 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
11771 ;;
11772 esac;
11773} |
11774 sed '
11775 t clear
11776 : clear
11777 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11778 t end
11779 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11780 : end' >>confcache
11781if diff $cache_file confcache >/dev/null 2>&1; then :; else
11782 if test -w $cache_file; then
11783 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11784 cat confcache >$cache_file
11785 else
11786 echo "not updating unwritable cache $cache_file"
11787 fi
11788fi
11789rm -f confcache
11790
a848cd7e 11791CFLAGS=${CFLAGS:=}
6dcfc289
DE
11792
11793
3006edc0 11794
6dcfc289 11795 ac_ext=c
a848cd7e
SC
11796ac_cpp='$CPP $CPPFLAGS'
11797ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11798ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11799ac_compiler_gnu=$ac_cv_c_compiler_gnu
11800if test -n "$ac_tool_prefix"; then
11801 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11802set dummy ${ac_tool_prefix}gcc; ac_word=$2
11803echo "$as_me:$LINENO: checking for $ac_word" >&5
11804echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11805if test "${ac_cv_prog_CC+set}" = set; then
11806 echo $ECHO_N "(cached) $ECHO_C" >&6
11807else
11808 if test -n "$CC"; then
11809 ac_cv_prog_CC="$CC" # Let the user override the test.
11810else
11811as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11812for as_dir in $PATH
11813do
11814 IFS=$as_save_IFS
11815 test -z "$as_dir" && as_dir=.
11816 for ac_exec_ext in '' $ac_executable_extensions; do
11817 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11818 ac_cv_prog_CC="${ac_tool_prefix}gcc"
11819 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11820 break 2
11821 fi
11822done
11823done
11824
11825fi
11826fi
11827CC=$ac_cv_prog_CC
11828if test -n "$CC"; then
11829 echo "$as_me:$LINENO: result: $CC" >&5
11830echo "${ECHO_T}$CC" >&6
11831else
11832 echo "$as_me:$LINENO: result: no" >&5
11833echo "${ECHO_T}no" >&6
11834fi
11835
11836fi
11837if test -z "$ac_cv_prog_CC"; then
11838 ac_ct_CC=$CC
11839 # Extract the first word of "gcc", so it can be a program name with args.
11840set dummy gcc; ac_word=$2
11841echo "$as_me:$LINENO: checking for $ac_word" >&5
11842echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11843if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11844 echo $ECHO_N "(cached) $ECHO_C" >&6
11845else
11846 if test -n "$ac_ct_CC"; then
11847 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11848else
11849as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11850for as_dir in $PATH
11851do
11852 IFS=$as_save_IFS
11853 test -z "$as_dir" && as_dir=.
11854 for ac_exec_ext in '' $ac_executable_extensions; do
11855 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11856 ac_cv_prog_ac_ct_CC="gcc"
11857 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11858 break 2
11859 fi
11860done
11861done
11862
11863fi
11864fi
11865ac_ct_CC=$ac_cv_prog_ac_ct_CC
11866if test -n "$ac_ct_CC"; then
11867 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11868echo "${ECHO_T}$ac_ct_CC" >&6
11869else
11870 echo "$as_me:$LINENO: result: no" >&5
11871echo "${ECHO_T}no" >&6
11872fi
11873
11874 CC=$ac_ct_CC
11875else
11876 CC="$ac_cv_prog_CC"
11877fi
11878
11879if test -z "$CC"; then
11880 if test -n "$ac_tool_prefix"; then
11881 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11882set dummy ${ac_tool_prefix}cc; ac_word=$2
11883echo "$as_me:$LINENO: checking for $ac_word" >&5
11884echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11885if test "${ac_cv_prog_CC+set}" = set; then
11886 echo $ECHO_N "(cached) $ECHO_C" >&6
11887else
11888 if test -n "$CC"; then
11889 ac_cv_prog_CC="$CC" # Let the user override the test.
11890else
11891as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11892for as_dir in $PATH
11893do
11894 IFS=$as_save_IFS
11895 test -z "$as_dir" && as_dir=.
11896 for ac_exec_ext in '' $ac_executable_extensions; do
11897 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11898 ac_cv_prog_CC="${ac_tool_prefix}cc"
11899 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11900 break 2
11901 fi
11902done
11903done
11904
11905fi
11906fi
11907CC=$ac_cv_prog_CC
11908if test -n "$CC"; then
11909 echo "$as_me:$LINENO: result: $CC" >&5
11910echo "${ECHO_T}$CC" >&6
11911else
11912 echo "$as_me:$LINENO: result: no" >&5
11913echo "${ECHO_T}no" >&6
11914fi
11915
11916fi
11917if test -z "$ac_cv_prog_CC"; then
11918 ac_ct_CC=$CC
11919 # Extract the first word of "cc", so it can be a program name with args.
11920set dummy cc; ac_word=$2
11921echo "$as_me:$LINENO: checking for $ac_word" >&5
11922echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11923if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11924 echo $ECHO_N "(cached) $ECHO_C" >&6
11925else
11926 if test -n "$ac_ct_CC"; then
11927 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11928else
11929as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11930for as_dir in $PATH
11931do
11932 IFS=$as_save_IFS
11933 test -z "$as_dir" && as_dir=.
11934 for ac_exec_ext in '' $ac_executable_extensions; do
11935 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11936 ac_cv_prog_ac_ct_CC="cc"
11937 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11938 break 2
11939 fi
11940done
11941done
11942
11943fi
11944fi
11945ac_ct_CC=$ac_cv_prog_ac_ct_CC
11946if test -n "$ac_ct_CC"; then
11947 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11948echo "${ECHO_T}$ac_ct_CC" >&6
11949else
11950 echo "$as_me:$LINENO: result: no" >&5
11951echo "${ECHO_T}no" >&6
11952fi
11953
11954 CC=$ac_ct_CC
11955else
11956 CC="$ac_cv_prog_CC"
11957fi
11958
11959fi
11960if test -z "$CC"; then
11961 # Extract the first word of "cc", so it can be a program name with args.
11962set dummy cc; ac_word=$2
11963echo "$as_me:$LINENO: checking for $ac_word" >&5
11964echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11965if test "${ac_cv_prog_CC+set}" = set; then
11966 echo $ECHO_N "(cached) $ECHO_C" >&6
11967else
11968 if test -n "$CC"; then
11969 ac_cv_prog_CC="$CC" # Let the user override the test.
11970else
11971 ac_prog_rejected=no
11972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11973for as_dir in $PATH
11974do
11975 IFS=$as_save_IFS
11976 test -z "$as_dir" && as_dir=.
11977 for ac_exec_ext in '' $ac_executable_extensions; do
11978 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11979 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11980 ac_prog_rejected=yes
11981 continue
11982 fi
11983 ac_cv_prog_CC="cc"
11984 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11985 break 2
11986 fi
11987done
11988done
11989
11990if test $ac_prog_rejected = yes; then
11991 # We found a bogon in the path, so make sure we never use it.
11992 set dummy $ac_cv_prog_CC
11993 shift
11994 if test $# != 0; then
11995 # We chose a different compiler from the bogus one.
11996 # However, it has the same basename, so the bogon will be chosen
11997 # first if we set CC to just the basename; use the full file name.
11998 shift
11999 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12000 fi
12001fi
12002fi
12003fi
12004CC=$ac_cv_prog_CC
12005if test -n "$CC"; then
12006 echo "$as_me:$LINENO: result: $CC" >&5
12007echo "${ECHO_T}$CC" >&6
12008else
12009 echo "$as_me:$LINENO: result: no" >&5
12010echo "${ECHO_T}no" >&6
12011fi
12012
12013fi
12014if test -z "$CC"; then
12015 if test -n "$ac_tool_prefix"; then
12016 for ac_prog in cl
12017 do
12018 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12019set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12020echo "$as_me:$LINENO: checking for $ac_word" >&5
12021echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12022if test "${ac_cv_prog_CC+set}" = set; then
12023 echo $ECHO_N "(cached) $ECHO_C" >&6
12024else
12025 if test -n "$CC"; then
12026 ac_cv_prog_CC="$CC" # Let the user override the test.
12027else
12028as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12029for as_dir in $PATH
12030do
12031 IFS=$as_save_IFS
12032 test -z "$as_dir" && as_dir=.
12033 for ac_exec_ext in '' $ac_executable_extensions; do
12034 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12035 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12036 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12037 break 2
12038 fi
12039done
12040done
12041
12042fi
12043fi
12044CC=$ac_cv_prog_CC
12045if test -n "$CC"; then
12046 echo "$as_me:$LINENO: result: $CC" >&5
12047echo "${ECHO_T}$CC" >&6
12048else
12049 echo "$as_me:$LINENO: result: no" >&5
12050echo "${ECHO_T}no" >&6
12051fi
12052
12053 test -n "$CC" && break
12054 done
12055fi
12056if test -z "$CC"; then
12057 ac_ct_CC=$CC
12058 for ac_prog in cl
12059do
12060 # Extract the first word of "$ac_prog", so it can be a program name with args.
12061set dummy $ac_prog; ac_word=$2
12062echo "$as_me:$LINENO: checking for $ac_word" >&5
12063echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12064if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12065 echo $ECHO_N "(cached) $ECHO_C" >&6
12066else
12067 if test -n "$ac_ct_CC"; then
12068 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12069else
12070as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12071for as_dir in $PATH
12072do
12073 IFS=$as_save_IFS
12074 test -z "$as_dir" && as_dir=.
12075 for ac_exec_ext in '' $ac_executable_extensions; do
12076 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12077 ac_cv_prog_ac_ct_CC="$ac_prog"
12078 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12079 break 2
12080 fi
12081done
12082done
12083
12084fi
12085fi
12086ac_ct_CC=$ac_cv_prog_ac_ct_CC
12087if test -n "$ac_ct_CC"; then
12088 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12089echo "${ECHO_T}$ac_ct_CC" >&6
12090else
12091 echo "$as_me:$LINENO: result: no" >&5
12092echo "${ECHO_T}no" >&6
12093fi
12094
12095 test -n "$ac_ct_CC" && break
12096done
12097
12098 CC=$ac_ct_CC
12099fi
12100
12101fi
12102
12103
12104test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
12105See \`config.log' for more details." >&5
12106echo "$as_me: error: no acceptable C compiler found in \$PATH
12107See \`config.log' for more details." >&2;}
12108 { (exit 1); exit 1; }; }
12109
12110# Provide some information about the compiler.
12111echo "$as_me:$LINENO:" \
12112 "checking for C compiler version" >&5
12113ac_compiler=`set X $ac_compile; echo $2`
12114{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
12115 (eval $ac_compiler --version </dev/null >&5) 2>&5
12116 ac_status=$?
12117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12118 (exit $ac_status); }
12119{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
12120 (eval $ac_compiler -v </dev/null >&5) 2>&5
12121 ac_status=$?
12122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12123 (exit $ac_status); }
12124{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
12125 (eval $ac_compiler -V </dev/null >&5) 2>&5
12126 ac_status=$?
12127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12128 (exit $ac_status); }
12129
12130cat >conftest.$ac_ext <<_ACEOF
12131/* confdefs.h. */
12132_ACEOF
12133cat confdefs.h >>conftest.$ac_ext
12134cat >>conftest.$ac_ext <<_ACEOF
12135/* end confdefs.h. */
12136
12137int
12138main ()
12139{
12140
12141 ;
12142 return 0;
12143}
12144_ACEOF
12145ac_clean_files_save=$ac_clean_files
12146ac_clean_files="$ac_clean_files a.out a.exe b.out"
12147# Try to create an executable without -o first, disregard a.out.
12148# It will help us diagnose broken compilers, and finding out an intuition
12149# of exeext.
ac1cb8d3
VS
12150echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
12151echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
a848cd7e
SC
12152ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
12153if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
12154 (eval $ac_link_default) 2>&5
12155 ac_status=$?
12156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12157 (exit $ac_status); }; then
12158 # Find the output, starting from the most likely. This scheme is
12159# not robust to junk in `.', hence go to wildcards (a.*) only as a last
12160# resort.
12161
12162# Be careful to initialize this variable, since it used to be cached.
12163# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
12164ac_cv_exeext=
12165# b.out is created by i960 compilers.
12166for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
12167do
12168 test -f "$ac_file" || continue
12169 case $ac_file in
12170 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
ac1cb8d3 12171 ;;
a848cd7e 12172 conftest.$ac_ext )
ac1cb8d3
VS
12173 # This is the source file.
12174 ;;
a848cd7e 12175 [ab].out )
ac1cb8d3
VS
12176 # We found the default executable, but exeext='' is most
12177 # certainly right.
12178 break;;
a848cd7e 12179 *.* )
ac1cb8d3
VS
12180 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
12181 # FIXME: I believe we export ac_cv_exeext for Libtool,
12182 # but it would be cool to find out if it's true. Does anybody
12183 # maintain Libtool? --akim.
12184 export ac_cv_exeext
12185 break;;
a848cd7e 12186 * )
ac1cb8d3 12187 break;;
a848cd7e
SC
12188 esac
12189done
12190else
12191 echo "$as_me: failed program was:" >&5
12192sed 's/^/| /' conftest.$ac_ext >&5
12193
12194{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
12195See \`config.log' for more details." >&5
12196echo "$as_me: error: C compiler cannot create executables
12197See \`config.log' for more details." >&2;}
12198 { (exit 77); exit 77; }; }
12199fi
12200
12201ac_exeext=$ac_cv_exeext
12202echo "$as_me:$LINENO: result: $ac_file" >&5
12203echo "${ECHO_T}$ac_file" >&6
12204
12205# Check the compiler produces executables we can run. If not, either
12206# the compiler is broken, or we cross compile.
12207echo "$as_me:$LINENO: checking whether the C compiler works" >&5
12208echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
12209# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
12210# If not cross compiling, check that we can run a simple program.
12211if test "$cross_compiling" != yes; then
12212 if { ac_try='./$ac_file'
12213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12214 (eval $ac_try) 2>&5
12215 ac_status=$?
12216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12217 (exit $ac_status); }; }; then
12218 cross_compiling=no
12219 else
12220 if test "$cross_compiling" = maybe; then
12221 cross_compiling=yes
12222 else
12223 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
12224If you meant to cross compile, use \`--host'.
12225See \`config.log' for more details." >&5
12226echo "$as_me: error: cannot run C compiled programs.
12227If you meant to cross compile, use \`--host'.
12228See \`config.log' for more details." >&2;}
12229 { (exit 1); exit 1; }; }
12230 fi
12231 fi
12232fi
12233echo "$as_me:$LINENO: result: yes" >&5
12234echo "${ECHO_T}yes" >&6
12235
12236rm -f a.out a.exe conftest$ac_cv_exeext b.out
12237ac_clean_files=$ac_clean_files_save
12238# Check the compiler produces executables we can run. If not, either
12239# the compiler is broken, or we cross compile.
12240echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
12241echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
12242echo "$as_me:$LINENO: result: $cross_compiling" >&5
12243echo "${ECHO_T}$cross_compiling" >&6
12244
12245echo "$as_me:$LINENO: checking for suffix of executables" >&5
12246echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
12247if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12248 (eval $ac_link) 2>&5
12249 ac_status=$?
12250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12251 (exit $ac_status); }; then
12252 # If both `conftest.exe' and `conftest' are `present' (well, observable)
12253# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
12254# work properly (i.e., refer to `conftest.exe'), while it won't with
12255# `rm'.
12256for ac_file in conftest.exe conftest conftest.*; do
12257 test -f "$ac_file" || continue
12258 case $ac_file in
12259 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
12260 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
ac1cb8d3
VS
12261 export ac_cv_exeext
12262 break;;
a848cd7e
SC
12263 * ) break;;
12264 esac
12265done
12266else
12267 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
12268See \`config.log' for more details." >&5
12269echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
12270See \`config.log' for more details." >&2;}
12271 { (exit 1); exit 1; }; }
12272fi
12273
12274rm -f conftest$ac_cv_exeext
12275echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
12276echo "${ECHO_T}$ac_cv_exeext" >&6
12277
12278rm -f conftest.$ac_ext
12279EXEEXT=$ac_cv_exeext
12280ac_exeext=$EXEEXT
12281echo "$as_me:$LINENO: checking for suffix of object files" >&5
12282echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
12283if test "${ac_cv_objext+set}" = set; then
12284 echo $ECHO_N "(cached) $ECHO_C" >&6
12285else
12286 cat >conftest.$ac_ext <<_ACEOF
12287/* confdefs.h. */
12288_ACEOF
12289cat confdefs.h >>conftest.$ac_ext
12290cat >>conftest.$ac_ext <<_ACEOF
12291/* end confdefs.h. */
12292
12293int
12294main ()
12295{
12296
12297 ;
12298 return 0;
12299}
12300_ACEOF
12301rm -f conftest.o conftest.obj
12302if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12303 (eval $ac_compile) 2>&5
12304 ac_status=$?
12305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12306 (exit $ac_status); }; then
12307 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
12308 case $ac_file in
12309 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
12310 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
12311 break;;
12312 esac
12313done
12314else
12315 echo "$as_me: failed program was:" >&5
12316sed 's/^/| /' conftest.$ac_ext >&5
12317
12318{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
12319See \`config.log' for more details." >&5
12320echo "$as_me: error: cannot compute suffix of object files: cannot compile
12321See \`config.log' for more details." >&2;}
12322 { (exit 1); exit 1; }; }
12323fi
12324
12325rm -f conftest.$ac_cv_objext conftest.$ac_ext
12326fi
12327echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
12328echo "${ECHO_T}$ac_cv_objext" >&6
12329OBJEXT=$ac_cv_objext
12330ac_objext=$OBJEXT
12331echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
12332echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
12333if test "${ac_cv_c_compiler_gnu+set}" = set; then
12334 echo $ECHO_N "(cached) $ECHO_C" >&6
12335else
12336 cat >conftest.$ac_ext <<_ACEOF
12337/* confdefs.h. */
12338_ACEOF
12339cat confdefs.h >>conftest.$ac_ext
12340cat >>conftest.$ac_ext <<_ACEOF
12341/* end confdefs.h. */
12342
12343int
12344main ()
12345{
12346#ifndef __GNUC__
12347 choke me
12348#endif
12349
12350 ;
12351 return 0;
12352}
12353_ACEOF
12354rm -f conftest.$ac_objext
12355if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12356 (eval $ac_compile) 2>conftest.er1
a848cd7e 12357 ac_status=$?
ac1cb8d3
VS
12358 grep -v '^ *+' conftest.er1 >conftest.err
12359 rm -f conftest.er1
12360 cat conftest.err >&5
a848cd7e
SC
12361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12362 (exit $ac_status); } &&
3ea50042 12363 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12365 (eval $ac_try) 2>&5
12366 ac_status=$?
12367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12368 (exit $ac_status); }; } &&
12369 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12371 (eval $ac_try) 2>&5
12372 ac_status=$?
12373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12374 (exit $ac_status); }; }; then
12375 ac_compiler_gnu=yes
12376else
12377 echo "$as_me: failed program was:" >&5
12378sed 's/^/| /' conftest.$ac_ext >&5
12379
12380ac_compiler_gnu=no
12381fi
ac1cb8d3 12382rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12383ac_cv_c_compiler_gnu=$ac_compiler_gnu
12384
12385fi
12386echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
12387echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
12388GCC=`test $ac_compiler_gnu = yes && echo yes`
12389ac_test_CFLAGS=${CFLAGS+set}
12390ac_save_CFLAGS=$CFLAGS
15291213 12391CFLAGS="-g"
a848cd7e
SC
12392echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12393echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
12394if test "${ac_cv_prog_cc_g+set}" = set; then
12395 echo $ECHO_N "(cached) $ECHO_C" >&6
12396else
12397 cat >conftest.$ac_ext <<_ACEOF
12398/* confdefs.h. */
12399_ACEOF
12400cat confdefs.h >>conftest.$ac_ext
12401cat >>conftest.$ac_ext <<_ACEOF
12402/* end confdefs.h. */
12403
12404int
12405main ()
12406{
12407
12408 ;
12409 return 0;
12410}
12411_ACEOF
12412rm -f conftest.$ac_objext
12413if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12414 (eval $ac_compile) 2>conftest.er1
a848cd7e 12415 ac_status=$?
ac1cb8d3
VS
12416 grep -v '^ *+' conftest.er1 >conftest.err
12417 rm -f conftest.er1
12418 cat conftest.err >&5
a848cd7e
SC
12419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12420 (exit $ac_status); } &&
3ea50042 12421 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12423 (eval $ac_try) 2>&5
12424 ac_status=$?
12425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12426 (exit $ac_status); }; } &&
12427 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12429 (eval $ac_try) 2>&5
12430 ac_status=$?
12431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12432 (exit $ac_status); }; }; then
12433 ac_cv_prog_cc_g=yes
12434else
12435 echo "$as_me: failed program was:" >&5
12436sed 's/^/| /' conftest.$ac_ext >&5
12437
12438ac_cv_prog_cc_g=no
12439fi
ac1cb8d3 12440rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12441fi
12442echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12443echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
12444if test "$ac_test_CFLAGS" = set; then
12445 CFLAGS=$ac_save_CFLAGS
12446elif test $ac_cv_prog_cc_g = yes; then
12447 if test "$GCC" = yes; then
12448 CFLAGS="-g -O2"
12449 else
12450 CFLAGS="-g"
12451 fi
12452else
12453 if test "$GCC" = yes; then
12454 CFLAGS="-O2"
12455 else
12456 CFLAGS=
12457 fi
12458fi
12459echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
12460echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
12461if test "${ac_cv_prog_cc_stdc+set}" = set; then
12462 echo $ECHO_N "(cached) $ECHO_C" >&6
12463else
12464 ac_cv_prog_cc_stdc=no
12465ac_save_CC=$CC
12466cat >conftest.$ac_ext <<_ACEOF
12467/* confdefs.h. */
12468_ACEOF
12469cat confdefs.h >>conftest.$ac_ext
12470cat >>conftest.$ac_ext <<_ACEOF
12471/* end confdefs.h. */
12472#include <stdarg.h>
12473#include <stdio.h>
12474#include <sys/types.h>
12475#include <sys/stat.h>
12476/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
12477struct buf { int x; };
12478FILE * (*rcsopen) (struct buf *, struct stat *, int);
12479static char *e (p, i)
12480 char **p;
12481 int i;
12482{
12483 return p[i];
12484}
12485static char *f (char * (*g) (char **, int), char **p, ...)
12486{
12487 char *s;
12488 va_list v;
12489 va_start (v,p);
12490 s = g (p, va_arg (v,int));
12491 va_end (v);
12492 return s;
12493}
ac1cb8d3
VS
12494
12495/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
12496 function prototypes and stuff, but not '\xHH' hex character constants.
12497 These don't provoke an error unfortunately, instead are silently treated
12498 as 'x'. The following induces an error, until -std1 is added to get
12499 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
12500 array size at least. It's necessary to write '\x00'==0 to get something
12501 that's true only with -std1. */
12502int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12503
a848cd7e
SC
12504int test (int i, double x);
12505struct s1 {int (*f) (int a);};
12506struct s2 {int (*f) (double a);};
12507int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12508int argc;
12509char **argv;
12510int
12511main ()
12512{
12513return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
12514 ;
12515 return 0;
12516}
12517_ACEOF
12518# Don't try gcc -ansi; that turns off useful extensions and
12519# breaks some systems' header files.
12520# AIX -qlanglvl=ansi
12521# Ultrix and OSF/1 -std1
12522# HP-UX 10.20 and later -Ae
12523# HP-UX older versions -Aa -D_HPUX_SOURCE
12524# SVR4 -Xc -D__EXTENSIONS__
12525for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12526do
12527 CC="$ac_save_CC $ac_arg"
12528 rm -f conftest.$ac_objext
12529if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12530 (eval $ac_compile) 2>conftest.er1
a848cd7e 12531 ac_status=$?
ac1cb8d3
VS
12532 grep -v '^ *+' conftest.er1 >conftest.err
12533 rm -f conftest.er1
12534 cat conftest.err >&5
a848cd7e
SC
12535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12536 (exit $ac_status); } &&
3ea50042 12537 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12539 (eval $ac_try) 2>&5
12540 ac_status=$?
12541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12542 (exit $ac_status); }; } &&
12543 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12545 (eval $ac_try) 2>&5
12546 ac_status=$?
12547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12548 (exit $ac_status); }; }; then
12549 ac_cv_prog_cc_stdc=$ac_arg
12550break
12551else
12552 echo "$as_me: failed program was:" >&5
12553sed 's/^/| /' conftest.$ac_ext >&5
12554
12555fi
ac1cb8d3 12556rm -f conftest.err conftest.$ac_objext
a848cd7e
SC
12557done
12558rm -f conftest.$ac_ext conftest.$ac_objext
12559CC=$ac_save_CC
12560
12561fi
12562
12563case "x$ac_cv_prog_cc_stdc" in
12564 x|xno)
12565 echo "$as_me:$LINENO: result: none needed" >&5
12566echo "${ECHO_T}none needed" >&6 ;;
12567 *)
12568 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
12569echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
12570 CC="$CC $ac_cv_prog_cc_stdc" ;;
12571esac
12572
12573# Some people use a C++ compiler to compile C. Since we use `exit',
12574# in C++ we need to declare it. In case someone uses the same compiler
12575# for both compiling C and C++ we need to have the C++ compiler decide
12576# the declaration of exit, since it's the most demanding environment.
12577cat >conftest.$ac_ext <<_ACEOF
12578#ifndef __cplusplus
12579 choke me
12580#endif
12581_ACEOF
12582rm -f conftest.$ac_objext
12583if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12584 (eval $ac_compile) 2>conftest.er1
a848cd7e 12585 ac_status=$?
ac1cb8d3
VS
12586 grep -v '^ *+' conftest.er1 >conftest.err
12587 rm -f conftest.er1
12588 cat conftest.err >&5
a848cd7e
SC
12589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12590 (exit $ac_status); } &&
3ea50042 12591 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12593 (eval $ac_try) 2>&5
12594 ac_status=$?
12595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12596 (exit $ac_status); }; } &&
12597 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12599 (eval $ac_try) 2>&5
12600 ac_status=$?
12601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12602 (exit $ac_status); }; }; then
12603 for ac_declaration in \
ac1cb8d3 12604 '' \
a848cd7e
SC
12605 'extern "C" void std::exit (int) throw (); using std::exit;' \
12606 'extern "C" void std::exit (int); using std::exit;' \
12607 'extern "C" void exit (int) throw ();' \
12608 'extern "C" void exit (int);' \
12609 'void exit (int);'
12610do
12611 cat >conftest.$ac_ext <<_ACEOF
12612/* confdefs.h. */
12613_ACEOF
12614cat confdefs.h >>conftest.$ac_ext
12615cat >>conftest.$ac_ext <<_ACEOF
12616/* end confdefs.h. */
de59c161 12617$ac_declaration
ac1cb8d3 12618#include <stdlib.h>
a848cd7e
SC
12619int
12620main ()
12621{
12622exit (42);
12623 ;
12624 return 0;
12625}
12626_ACEOF
12627rm -f conftest.$ac_objext
12628if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12629 (eval $ac_compile) 2>conftest.er1
a848cd7e 12630 ac_status=$?
ac1cb8d3
VS
12631 grep -v '^ *+' conftest.er1 >conftest.err
12632 rm -f conftest.er1
12633 cat conftest.err >&5
a848cd7e
SC
12634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12635 (exit $ac_status); } &&
3ea50042 12636 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12638 (eval $ac_try) 2>&5
12639 ac_status=$?
12640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12641 (exit $ac_status); }; } &&
12642 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12644 (eval $ac_try) 2>&5
12645 ac_status=$?
12646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12647 (exit $ac_status); }; }; then
12648 :
12649else
12650 echo "$as_me: failed program was:" >&5
12651sed 's/^/| /' conftest.$ac_ext >&5
12652
12653continue
12654fi
ac1cb8d3 12655rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12656 cat >conftest.$ac_ext <<_ACEOF
12657/* confdefs.h. */
12658_ACEOF
12659cat confdefs.h >>conftest.$ac_ext
12660cat >>conftest.$ac_ext <<_ACEOF
12661/* end confdefs.h. */
12662$ac_declaration
12663int
12664main ()
12665{
12666exit (42);
12667 ;
12668 return 0;
12669}
12670_ACEOF
12671rm -f conftest.$ac_objext
12672if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12673 (eval $ac_compile) 2>conftest.er1
a848cd7e 12674 ac_status=$?
ac1cb8d3
VS
12675 grep -v '^ *+' conftest.er1 >conftest.err
12676 rm -f conftest.er1
12677 cat conftest.err >&5
a848cd7e
SC
12678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12679 (exit $ac_status); } &&
3ea50042 12680 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12682 (eval $ac_try) 2>&5
12683 ac_status=$?
12684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12685 (exit $ac_status); }; } &&
12686 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12688 (eval $ac_try) 2>&5
12689 ac_status=$?
12690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12691 (exit $ac_status); }; }; then
12692 break
12693else
12694 echo "$as_me: failed program was:" >&5
12695sed 's/^/| /' conftest.$ac_ext >&5
12696
12697fi
ac1cb8d3 12698rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12699done
12700rm -f conftest*
12701if test -n "$ac_declaration"; then
12702 echo '#ifdef __cplusplus' >>confdefs.h
12703 echo $ac_declaration >>confdefs.h
12704 echo '#endif' >>confdefs.h
12705fi
12706
12707else
12708 echo "$as_me: failed program was:" >&5
12709sed 's/^/| /' conftest.$ac_ext >&5
12710
12711fi
ac1cb8d3 12712rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12713ac_ext=c
12714ac_cpp='$CPP $CPPFLAGS'
12715ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12716ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12717ac_compiler_gnu=$ac_cv_c_compiler_gnu
12718
ab0ad5f1
VZ
12719
12720
12721 ac_ext=c
12722ac_cpp='$CPP $CPPFLAGS'
12723ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12724ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12725ac_compiler_gnu=$ac_cv_c_compiler_gnu
12726
12727 echo "$as_me:$LINENO: checking whether we are using the Intel C compiler" >&5
12728echo $ECHO_N "checking whether we are using the Intel C compiler... $ECHO_C" >&6
12729if test "${bakefile_cv_c_compiler___INTEL_COMPILER+set}" = set; then
12730 echo $ECHO_N "(cached) $ECHO_C" >&6
12731else
12732 cat >conftest.$ac_ext <<_ACEOF
12733/* confdefs.h. */
12734_ACEOF
12735cat confdefs.h >>conftest.$ac_ext
12736cat >>conftest.$ac_ext <<_ACEOF
12737/* end confdefs.h. */
12738
12739int
12740main ()
12741{
12742
12743 #ifndef __INTEL_COMPILER
12744 choke me
12745 #endif
12746
12747 ;
12748 return 0;
12749}
12750_ACEOF
12751rm -f conftest.$ac_objext
12752if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12753 (eval $ac_compile) 2>conftest.er1
12754 ac_status=$?
12755 grep -v '^ *+' conftest.er1 >conftest.err
12756 rm -f conftest.er1
12757 cat conftest.err >&5
12758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12759 (exit $ac_status); } &&
3ea50042 12760 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ab0ad5f1
VZ
12761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12762 (eval $ac_try) 2>&5
12763 ac_status=$?
12764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12765 (exit $ac_status); }; } &&
12766 { ac_try='test -s conftest.$ac_objext'
12767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12768 (eval $ac_try) 2>&5
12769 ac_status=$?
12770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12771 (exit $ac_status); }; }; then
12772 bakefile_cv_c_compiler___INTEL_COMPILER=yes
12773else
12774 echo "$as_me: failed program was:" >&5
12775sed 's/^/| /' conftest.$ac_ext >&5
12776
12777bakefile_cv_c_compiler___INTEL_COMPILER=no
12778
12779fi
12780rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12781
12782
12783fi
12784echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER" >&5
12785echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER" >&6
12786 ac_ext=c
12787ac_cpp='$CPP $CPPFLAGS'
12788ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12789ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12790ac_compiler_gnu=$ac_cv_c_compiler_gnu
12791
12792 if test "x$bakefile_cv_c_compiler___INTEL_COMPILER" = "xyes"; then
12793 :; INTELCC=yes
12794 else
12795 :;
12796 fi
12797
12798
12799 if test "x$GCC" != "xyes"; then
3006edc0
VZ
12800 if test "xCC" = "xC"; then
12801 echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
480ccd21 12802echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6
0093c2fc 12803if test "${bakefile_cv_c_exto+set}" = set; then
480ccd21
DE
12804 echo $ECHO_N "(cached) $ECHO_C" >&6
12805else
12806 cat >conftest.$ac_ext <<_ACEOF
12807/* confdefs.h. */
12808_ACEOF
12809cat confdefs.h >>conftest.$ac_ext
12810cat >>conftest.$ac_ext <<_ACEOF
12811/* end confdefs.h. */
12812
12813int
12814main ()
12815{
12816
12817 ;
12818 return 0;
12819}
12820_ACEOF
12821rm -f conftest.$ac_objext conftest.$ac_ext.o
12822if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12823 (eval $ac_compile) 2>&5
12824 ac_status=$?
12825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12826 (exit $ac_status); }; then
12827 for ac_file in `(ls conftest.* 2>/dev/null)`; do
12828 case $ac_file in
12829 conftest.$ac_ext.o)
0093c2fc 12830 bakefile_cv_c_exto="-ext o"
480ccd21
DE
12831 ;;
12832 *)
12833 ;;
12834 esac
12835done
12836else
12837 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
12838See \`config.log' for more details." >&5
12839echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
12840See \`config.log' for more details." >&2;}
12841 { (exit 1); exit 1; }; }
12842
12843fi
12844
12845rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
12846
12847fi
0093c2fc
VZ
12848echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5
12849echo "${ECHO_T}$bakefile_cv_c_exto" >&6
12850if test "x$bakefile_cv_c_exto" '!=' "x"; then
480ccd21 12851 if test "c" = "c"; then
0093c2fc 12852 CFLAGS="$bakefile_cv_c_exto $CFLAGS"
480ccd21
DE
12853 fi
12854 if test "c" = "cxx"; then
0093c2fc 12855 CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS"
480ccd21
DE
12856 fi
12857fi
12858
0093c2fc 12859 if test "x$bakefile_cv_c_exto" '!=' "x"; then
3006edc0
VZ
12860 unset ac_cv_prog_cc_g
12861 ac_test_CFLAGS=${CFLAGS+set}
480ccd21 12862ac_save_CFLAGS=$CFLAGS
15291213 12863CFLAGS="-g"
480ccd21
DE
12864echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12865echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
12866if test "${ac_cv_prog_cc_g+set}" = set; then
12867 echo $ECHO_N "(cached) $ECHO_C" >&6
12868else
12869 cat >conftest.$ac_ext <<_ACEOF
12870/* confdefs.h. */
12871_ACEOF
12872cat confdefs.h >>conftest.$ac_ext
12873cat >>conftest.$ac_ext <<_ACEOF
12874/* end confdefs.h. */
12875
12876int
12877main ()
12878{
12879
12880 ;
12881 return 0;
12882}
12883_ACEOF
12884rm -f conftest.$ac_objext
12885if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12886 (eval $ac_compile) 2>conftest.er1
12887 ac_status=$?
12888 grep -v '^ *+' conftest.er1 >conftest.err
12889 rm -f conftest.er1
12890 cat conftest.err >&5
12891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12892 (exit $ac_status); } &&
3ea50042 12893 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
480ccd21
DE
12894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12895 (eval $ac_try) 2>&5
12896 ac_status=$?
12897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12898 (exit $ac_status); }; } &&
12899 { ac_try='test -s conftest.$ac_objext'
12900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12901 (eval $ac_try) 2>&5
12902 ac_status=$?
12903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12904 (exit $ac_status); }; }; then
12905 ac_cv_prog_cc_g=yes
12906else
12907 echo "$as_me: failed program was:" >&5
12908sed 's/^/| /' conftest.$ac_ext >&5
12909
12910ac_cv_prog_cc_g=no
12911fi
12912rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12913fi
12914echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12915echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
12916if test "$ac_test_CFLAGS" = set; then
12917 CFLAGS=$ac_save_CFLAGS
12918elif test $ac_cv_prog_cc_g = yes; then
12919 if test "$GCC" = yes; then
12920 CFLAGS="-g -O2"
12921 else
12922 CFLAGS="-g"
12923 fi
12924else
12925 if test "$GCC" = yes; then
12926 CFLAGS="-O2"
12927 else
12928 CFLAGS=
12929 fi
12930fi
3006edc0 12931 fi
ab0ad5f1 12932 fi
3006edc0
VZ
12933
12934 case `uname -s` in
12935 AIX*)
12936 ac_ext=c
12937ac_cpp='$CPP $CPPFLAGS'
12938ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12939ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12940ac_compiler_gnu=$ac_cv_c_compiler_gnu
12941
12942echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
12943echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6
0093c2fc 12944if test "${bakefile_cv_c_compiler_xlc+set}" = set; then
3006edc0
VZ
12945 echo $ECHO_N "(cached) $ECHO_C" >&6
12946else
12947 cat >conftest.$ac_ext <<_ACEOF
12948/* confdefs.h. */
12949_ACEOF
12950cat confdefs.h >>conftest.$ac_ext
12951cat >>conftest.$ac_ext <<_ACEOF
12952/* end confdefs.h. */
12953
12954int
12955main ()
12956{
12957#ifndef __xlC__
12958 choke me
12959#endif
12960
12961 ;
12962 return 0;
12963}
12964_ACEOF
12965rm -f conftest.$ac_objext
12966if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12967 (eval $ac_compile) 2>conftest.er1
12968 ac_status=$?
12969 grep -v '^ *+' conftest.er1 >conftest.err
12970 rm -f conftest.er1
12971 cat conftest.err >&5
12972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12973 (exit $ac_status); } &&
3ea50042 12974 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3006edc0
VZ
12975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12976 (eval $ac_try) 2>&5
12977 ac_status=$?
12978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12979 (exit $ac_status); }; } &&
12980 { ac_try='test -s conftest.$ac_objext'
12981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12982 (eval $ac_try) 2>&5
12983 ac_status=$?
12984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12985 (exit $ac_status); }; }; then
0093c2fc 12986 bakefile_compiler_xlc=yes
3006edc0
VZ
12987else
12988 echo "$as_me: failed program was:" >&5
12989sed 's/^/| /' conftest.$ac_ext >&5
12990
0093c2fc 12991bakefile_compiler_xlc=no
3006edc0
VZ
12992fi
12993rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 12994 bakefile_cv_c_compiler_xlc=$bakefile_compiler_xlc
3006edc0
VZ
12995
12996fi
0093c2fc
VZ
12997echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_xlc" >&5
12998echo "${ECHO_T}$bakefile_cv_c_compiler_xlc" >&6
3006edc0 12999
0093c2fc 13000XLCC=`test $bakefile_cv_c_compiler_xlc = yes && echo yes`
3006edc0
VZ
13001ac_ext=c
13002ac_cpp='$CPP $CPPFLAGS'
13003ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13004ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13005ac_compiler_gnu=$ac_cv_c_compiler_gnu
13006
13007
13008 ;;
13009
13010 Darwin)
13011 ac_ext=c
95986553
DE
13012ac_cpp='$CPP $CPPFLAGS'
13013ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13014ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13015ac_compiler_gnu=$ac_cv_c_compiler_gnu
13016
13017echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5
13018echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6
13019if test "${bakefile_cv_c_compiler_mwerks+set}" = set; then
13020 echo $ECHO_N "(cached) $ECHO_C" >&6
13021else
13022 cat >conftest.$ac_ext <<_ACEOF
13023/* confdefs.h. */
13024_ACEOF
13025cat confdefs.h >>conftest.$ac_ext
13026cat >>conftest.$ac_ext <<_ACEOF
13027/* end confdefs.h. */
13028
13029int
13030main ()
13031{
13032#ifndef __MWERKS__
13033 choke me
13034#endif
13035
13036 ;
13037 return 0;
13038}
13039_ACEOF
13040rm -f conftest.$ac_objext
13041if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13042 (eval $ac_compile) 2>conftest.er1
13043 ac_status=$?
13044 grep -v '^ *+' conftest.er1 >conftest.err
13045 rm -f conftest.er1
13046 cat conftest.err >&5
13047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13048 (exit $ac_status); } &&
3ea50042 13049 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
95986553
DE
13050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13051 (eval $ac_try) 2>&5
13052 ac_status=$?
13053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13054 (exit $ac_status); }; } &&
13055 { ac_try='test -s conftest.$ac_objext'
13056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13057 (eval $ac_try) 2>&5
13058 ac_status=$?
13059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13060 (exit $ac_status); }; }; then
13061 bakefile_compiler_mwerks=yes
13062else
13063 echo "$as_me: failed program was:" >&5
13064sed 's/^/| /' conftest.$ac_ext >&5
13065
13066bakefile_compiler_mwerks=no
13067fi
13068rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13069 bakefile_cv_c_compiler_mwerks=$bakefile_compiler_mwerks
13070
13071fi
13072echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_mwerks" >&5
13073echo "${ECHO_T}$bakefile_cv_c_compiler_mwerks" >&6
13074
0e6fa1d9 13075MWCC=`test $bakefile_cv_c_compiler_mwerks = yes && echo yes`
95986553
DE
13076ac_ext=c
13077ac_cpp='$CPP $CPPFLAGS'
13078ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13079ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13080ac_compiler_gnu=$ac_cv_c_compiler_gnu
13081
13082
3006edc0 13083 ac_ext=c
9273ffba
DE
13084ac_cpp='$CPP $CPPFLAGS'
13085ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13086ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13087ac_compiler_gnu=$ac_cv_c_compiler_gnu
13088
13089echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
13090echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6
0093c2fc 13091if test "${bakefile_cv_c_compiler_xlc+set}" = set; then
9273ffba
DE
13092 echo $ECHO_N "(cached) $ECHO_C" >&6
13093else
13094 cat >conftest.$ac_ext <<_ACEOF
13095/* confdefs.h. */
13096_ACEOF
13097cat confdefs.h >>conftest.$ac_ext
13098cat >>conftest.$ac_ext <<_ACEOF
13099/* end confdefs.h. */
13100
13101int
13102main ()
13103{
13104#ifndef __xlC__
13105 choke me
13106#endif
13107
13108 ;
13109 return 0;
13110}
13111_ACEOF
13112rm -f conftest.$ac_objext
13113if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13114 (eval $ac_compile) 2>conftest.er1
13115 ac_status=$?
13116 grep -v '^ *+' conftest.er1 >conftest.err
13117 rm -f conftest.er1
13118 cat conftest.err >&5
13119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13120 (exit $ac_status); } &&
3ea50042 13121 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9273ffba
DE
13122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13123 (eval $ac_try) 2>&5
13124 ac_status=$?
13125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13126 (exit $ac_status); }; } &&
13127 { ac_try='test -s conftest.$ac_objext'
13128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13129 (eval $ac_try) 2>&5
13130 ac_status=$?
13131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13132 (exit $ac_status); }; }; then
0093c2fc 13133 bakefile_compiler_xlc=yes
9273ffba
DE
13134else
13135 echo "$as_me: failed program was:" >&5
13136sed 's/^/| /' conftest.$ac_ext >&5
13137
0093c2fc 13138bakefile_compiler_xlc=no
9273ffba
DE
13139fi
13140rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 13141 bakefile_cv_c_compiler_xlc=$bakefile_compiler_xlc
9273ffba
DE
13142
13143fi
0093c2fc
VZ
13144echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_xlc" >&5
13145echo "${ECHO_T}$bakefile_cv_c_compiler_xlc" >&6
9273ffba 13146
0093c2fc 13147XLCC=`test $bakefile_cv_c_compiler_xlc = yes && echo yes`
9273ffba
DE
13148ac_ext=c
13149ac_cpp='$CPP $CPPFLAGS'
13150ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13151ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13152ac_compiler_gnu=$ac_cv_c_compiler_gnu
13153
13154
3006edc0
VZ
13155 ;;
13156
13157 IRIX*)
a848cd7e 13158
6dcfc289 13159
0ad5d837
VZ
13160 ac_ext=c
13161ac_cpp='$CPP $CPPFLAGS'
13162ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13163ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13164ac_compiler_gnu=$ac_cv_c_compiler_gnu
13165
13166 echo "$as_me:$LINENO: checking whether we are using the SGI C compiler" >&5
13167echo $ECHO_N "checking whether we are using the SGI C compiler... $ECHO_C" >&6
13168if test "${bakefile_cv_c_compiler__SGI_COMPILER_VERSION+set}" = set; then
13169 echo $ECHO_N "(cached) $ECHO_C" >&6
13170else
13171 cat >conftest.$ac_ext <<_ACEOF
13172/* confdefs.h. */
13173_ACEOF
13174cat confdefs.h >>conftest.$ac_ext
13175cat >>conftest.$ac_ext <<_ACEOF
13176/* end confdefs.h. */
13177
13178int
13179main ()
13180{
13181
13182 #ifndef _SGI_COMPILER_VERSION
13183 choke me
13184 #endif
13185
13186 ;
13187 return 0;
13188}
13189_ACEOF
13190rm -f conftest.$ac_objext
13191if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13192 (eval $ac_compile) 2>conftest.er1
13193 ac_status=$?
13194 grep -v '^ *+' conftest.er1 >conftest.err
13195 rm -f conftest.er1
13196 cat conftest.err >&5
13197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13198 (exit $ac_status); } &&
3ea50042 13199 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
0ad5d837
VZ
13200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13201 (eval $ac_try) 2>&5
13202 ac_status=$?
13203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13204 (exit $ac_status); }; } &&
13205 { ac_try='test -s conftest.$ac_objext'
13206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13207 (eval $ac_try) 2>&5
13208 ac_status=$?
13209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13210 (exit $ac_status); }; }; then
13211 bakefile_cv_c_compiler__SGI_COMPILER_VERSION=yes
13212else
13213 echo "$as_me: failed program was:" >&5
13214sed 's/^/| /' conftest.$ac_ext >&5
13215
13216bakefile_cv_c_compiler__SGI_COMPILER_VERSION=no
13217
13218fi
13219rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13220
13221
13222fi
13223echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&5
13224echo "${ECHO_T}$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&6
13225 ac_ext=c
13226ac_cpp='$CPP $CPPFLAGS'
13227ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13228ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13229ac_compiler_gnu=$ac_cv_c_compiler_gnu
13230
13231 if test "x$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" = "xyes"; then
13232 :; SGICC=yes
13233 else
13234 :;
13235 fi
13236
13237
3006edc0
VZ
13238 ;;
13239
0093c2fc 13240 HP-UX*)
3006edc0
VZ
13241
13242
13243 ac_ext=c
13244ac_cpp='$CPP $CPPFLAGS'
13245ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13246ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13247ac_compiler_gnu=$ac_cv_c_compiler_gnu
13248
0093c2fc
VZ
13249 echo "$as_me:$LINENO: checking whether we are using the HP C compiler" >&5
13250echo $ECHO_N "checking whether we are using the HP C compiler... $ECHO_C" >&6
13251if test "${bakefile_cv_c_compiler___HP_cc+set}" = set; then
3006edc0
VZ
13252 echo $ECHO_N "(cached) $ECHO_C" >&6
13253else
13254 cat >conftest.$ac_ext <<_ACEOF
13255/* confdefs.h. */
13256_ACEOF
13257cat confdefs.h >>conftest.$ac_ext
13258cat >>conftest.$ac_ext <<_ACEOF
13259/* end confdefs.h. */
13260
13261int
13262main ()
13263{
13264
0093c2fc 13265 #ifndef __HP_cc
3006edc0
VZ
13266 choke me
13267 #endif
13268
13269 ;
13270 return 0;
13271}
13272_ACEOF
13273rm -f conftest.$ac_objext
13274if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13275 (eval $ac_compile) 2>conftest.er1
13276 ac_status=$?
13277 grep -v '^ *+' conftest.er1 >conftest.err
13278 rm -f conftest.er1
13279 cat conftest.err >&5
13280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13281 (exit $ac_status); } &&
3ea50042 13282 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3006edc0
VZ
13283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13284 (eval $ac_try) 2>&5
13285 ac_status=$?
13286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13287 (exit $ac_status); }; } &&
13288 { ac_try='test -s conftest.$ac_objext'
13289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13290 (eval $ac_try) 2>&5
13291 ac_status=$?
13292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13293 (exit $ac_status); }; }; then
0093c2fc 13294 bakefile_cv_c_compiler___HP_cc=yes
3006edc0
VZ
13295else
13296 echo "$as_me: failed program was:" >&5
13297sed 's/^/| /' conftest.$ac_ext >&5
13298
0093c2fc 13299bakefile_cv_c_compiler___HP_cc=no
3006edc0
VZ
13300
13301fi
13302rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13303
13304
13305fi
0093c2fc
VZ
13306echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___HP_cc" >&5
13307echo "${ECHO_T}$bakefile_cv_c_compiler___HP_cc" >&6
3006edc0
VZ
13308 ac_ext=c
13309ac_cpp='$CPP $CPPFLAGS'
13310ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13311ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13312ac_compiler_gnu=$ac_cv_c_compiler_gnu
13313
0093c2fc
VZ
13314 if test "x$bakefile_cv_c_compiler___HP_cc" = "xyes"; then
13315 :; HPCC=yes
a1aa0349
VZ
13316 else
13317 :;
13318 fi
13319
13320
13321 ;;
13322
0093c2fc 13323 OSF1)
a1aa0349
VZ
13324
13325
13326 ac_ext=c
13327ac_cpp='$CPP $CPPFLAGS'
13328ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13329ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13330ac_compiler_gnu=$ac_cv_c_compiler_gnu
13331
0093c2fc
VZ
13332 echo "$as_me:$LINENO: checking whether we are using the Compaq C compiler" >&5
13333echo $ECHO_N "checking whether we are using the Compaq C compiler... $ECHO_C" >&6
13334if test "${bakefile_cv_c_compiler___DECC+set}" = set; then
a1aa0349
VZ
13335 echo $ECHO_N "(cached) $ECHO_C" >&6
13336else
13337 cat >conftest.$ac_ext <<_ACEOF
13338/* confdefs.h. */
13339_ACEOF
13340cat confdefs.h >>conftest.$ac_ext
13341cat >>conftest.$ac_ext <<_ACEOF
13342/* end confdefs.h. */
13343
13344int
13345main ()
13346{
13347
0093c2fc 13348 #ifndef __DECC
a1aa0349
VZ
13349 choke me
13350 #endif
13351
13352 ;
13353 return 0;
13354}
13355_ACEOF
13356rm -f conftest.$ac_objext
13357if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13358 (eval $ac_compile) 2>conftest.er1
13359 ac_status=$?
13360 grep -v '^ *+' conftest.er1 >conftest.err
13361 rm -f conftest.er1
13362 cat conftest.err >&5
13363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13364 (exit $ac_status); } &&
3ea50042 13365 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a1aa0349
VZ
13366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13367 (eval $ac_try) 2>&5
13368 ac_status=$?
13369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13370 (exit $ac_status); }; } &&
13371 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
0093c2fc 13377 bakefile_cv_c_compiler___DECC=yes
a1aa0349
VZ
13378else
13379 echo "$as_me: failed program was:" >&5
13380sed 's/^/| /' conftest.$ac_ext >&5
13381
0093c2fc 13382bakefile_cv_c_compiler___DECC=no
a1aa0349
VZ
13383
13384fi
13385rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13386
13387
13388fi
0093c2fc
VZ
13389echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___DECC" >&5
13390echo "${ECHO_T}$bakefile_cv_c_compiler___DECC" >&6
a1aa0349
VZ
13391 ac_ext=c
13392ac_cpp='$CPP $CPPFLAGS'
13393ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13394ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13395ac_compiler_gnu=$ac_cv_c_compiler_gnu
13396
0093c2fc
VZ
13397 if test "x$bakefile_cv_c_compiler___DECC" = "xyes"; then
13398 :; COMPAQCC=yes
13399 else
13400 :;
13401 fi
13402
13403
13404 ;;
13405
13406 SunOS)
13407
13408
13409 ac_ext=c
13410ac_cpp='$CPP $CPPFLAGS'
13411ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13412ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13413ac_compiler_gnu=$ac_cv_c_compiler_gnu
13414
13415 echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
13416echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6
13417if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
13418 echo $ECHO_N "(cached) $ECHO_C" >&6
13419else
13420 cat >conftest.$ac_ext <<_ACEOF
13421/* confdefs.h. */
13422_ACEOF
13423cat confdefs.h >>conftest.$ac_ext
13424cat >>conftest.$ac_ext <<_ACEOF
13425/* end confdefs.h. */
13426
13427int
13428main ()
13429{
13430
13431 #ifndef __SUNPRO_C
13432 choke me
13433 #endif
13434
13435 ;
13436 return 0;
13437}
13438_ACEOF
13439rm -f conftest.$ac_objext
13440if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13441 (eval $ac_compile) 2>conftest.er1
13442 ac_status=$?
13443 grep -v '^ *+' conftest.er1 >conftest.err
13444 rm -f conftest.er1
13445 cat conftest.err >&5
13446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13447 (exit $ac_status); } &&
3ea50042 13448 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
0093c2fc
VZ
13449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13450 (eval $ac_try) 2>&5
13451 ac_status=$?
13452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13453 (exit $ac_status); }; } &&
13454 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
13460 bakefile_cv_c_compiler___SUNPRO_C=yes
13461else
13462 echo "$as_me: failed program was:" >&5
13463sed 's/^/| /' conftest.$ac_ext >&5
13464
13465bakefile_cv_c_compiler___SUNPRO_C=no
13466
13467fi
13468rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13469
13470
13471fi
13472echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
13473echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6
13474 ac_ext=c
13475ac_cpp='$CPP $CPPFLAGS'
13476ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13477ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13478ac_compiler_gnu=$ac_cv_c_compiler_gnu
13479
13480 if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
13481 :; SUNCC=yes
3006edc0
VZ
13482 else
13483 :;
13484 fi
13485
13486
13487 ;;
13488 esac
ab0ad5f1 13489 fi
a9e5b1f0
MW
13490
13491
3006edc0 13492
a848cd7e
SC
13493ac_ext=c
13494ac_cpp='$CPP $CPPFLAGS'
13495ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13496ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13497ac_compiler_gnu=$ac_cv_c_compiler_gnu
13498echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
13499echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
13500# On Suns, sometimes $CPP names a directory.
13501if test -n "$CPP" && test -d "$CPP"; then
13502 CPP=
13503fi
13504if test -z "$CPP"; then
13505 if test "${ac_cv_prog_CPP+set}" = set; then
13506 echo $ECHO_N "(cached) $ECHO_C" >&6
13507else
13508 # Double quotes because CPP needs to be expanded
13509 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
13510 do
13511 ac_preproc_ok=false
13512for ac_c_preproc_warn_flag in '' yes
13513do
13514 # Use a header file that comes with gcc, so configuring glibc
13515 # with a fresh cross-compiler works.
13516 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13517 # <limits.h> exists even on freestanding compilers.
13518 # On the NeXT, cc -E runs the code through the compiler's parser,
13519 # not just through cpp. "Syntax error" is here to catch this case.
13520 cat >conftest.$ac_ext <<_ACEOF
13521/* confdefs.h. */
13522_ACEOF
13523cat confdefs.h >>conftest.$ac_ext
13524cat >>conftest.$ac_ext <<_ACEOF
13525/* end confdefs.h. */
13526#ifdef __STDC__
13527# include <limits.h>
13528#else
13529# include <assert.h>
13530#endif
ac1cb8d3 13531 Syntax error
a848cd7e
SC
13532_ACEOF
13533if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13534 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13535 ac_status=$?
13536 grep -v '^ *+' conftest.er1 >conftest.err
13537 rm -f conftest.er1
13538 cat conftest.err >&5
13539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13540 (exit $ac_status); } >/dev/null; then
13541 if test -s conftest.err; then
13542 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13543 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13544 else
13545 ac_cpp_err=
13546 fi
13547else
13548 ac_cpp_err=yes
13549fi
13550if test -z "$ac_cpp_err"; then
13551 :
13552else
13553 echo "$as_me: failed program was:" >&5
13554sed 's/^/| /' conftest.$ac_ext >&5
13555
13556 # Broken: fails on valid input.
13557continue
13558fi
13559rm -f conftest.err conftest.$ac_ext
13560
13561 # OK, works on sane cases. Now check whether non-existent headers
13562 # can be detected and how.
13563 cat >conftest.$ac_ext <<_ACEOF
13564/* confdefs.h. */
13565_ACEOF
13566cat confdefs.h >>conftest.$ac_ext
13567cat >>conftest.$ac_ext <<_ACEOF
13568/* end confdefs.h. */
13569#include <ac_nonexistent.h>
13570_ACEOF
13571if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13572 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13573 ac_status=$?
13574 grep -v '^ *+' conftest.er1 >conftest.err
13575 rm -f conftest.er1
13576 cat conftest.err >&5
13577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13578 (exit $ac_status); } >/dev/null; then
13579 if test -s conftest.err; then
13580 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13581 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13582 else
13583 ac_cpp_err=
13584 fi
13585else
13586 ac_cpp_err=yes
13587fi
13588if test -z "$ac_cpp_err"; then
13589 # Broken: success on invalid input.
13590continue
13591else
13592 echo "$as_me: failed program was:" >&5
13593sed 's/^/| /' conftest.$ac_ext >&5
13594
13595 # Passes both tests.
13596ac_preproc_ok=:
13597break
13598fi
13599rm -f conftest.err conftest.$ac_ext
13600
13601done
13602# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13603rm -f conftest.err conftest.$ac_ext
13604if $ac_preproc_ok; then
13605 break
13606fi
13607
13608 done
13609 ac_cv_prog_CPP=$CPP
13610
13611fi
13612 CPP=$ac_cv_prog_CPP
13613else
13614 ac_cv_prog_CPP=$CPP
13615fi
13616echo "$as_me:$LINENO: result: $CPP" >&5
13617echo "${ECHO_T}$CPP" >&6
13618ac_preproc_ok=false
13619for ac_c_preproc_warn_flag in '' yes
13620do
13621 # Use a header file that comes with gcc, so configuring glibc
13622 # with a fresh cross-compiler works.
13623 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13624 # <limits.h> exists even on freestanding compilers.
13625 # On the NeXT, cc -E runs the code through the compiler's parser,
13626 # not just through cpp. "Syntax error" is here to catch this case.
13627 cat >conftest.$ac_ext <<_ACEOF
13628/* confdefs.h. */
13629_ACEOF
13630cat confdefs.h >>conftest.$ac_ext
13631cat >>conftest.$ac_ext <<_ACEOF
13632/* end confdefs.h. */
13633#ifdef __STDC__
13634# include <limits.h>
13635#else
13636# include <assert.h>
13637#endif
ac1cb8d3 13638 Syntax error
a848cd7e
SC
13639_ACEOF
13640if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13641 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13642 ac_status=$?
13643 grep -v '^ *+' conftest.er1 >conftest.err
13644 rm -f conftest.er1
13645 cat conftest.err >&5
13646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13647 (exit $ac_status); } >/dev/null; then
13648 if test -s conftest.err; then
13649 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13650 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13651 else
13652 ac_cpp_err=
13653 fi
13654else
13655 ac_cpp_err=yes
13656fi
13657if test -z "$ac_cpp_err"; then
13658 :
13659else
13660 echo "$as_me: failed program was:" >&5
13661sed 's/^/| /' conftest.$ac_ext >&5
13662
13663 # Broken: fails on valid input.
13664continue
13665fi
13666rm -f conftest.err conftest.$ac_ext
13667
13668 # OK, works on sane cases. Now check whether non-existent headers
13669 # can be detected and how.
13670 cat >conftest.$ac_ext <<_ACEOF
13671/* confdefs.h. */
13672_ACEOF
13673cat confdefs.h >>conftest.$ac_ext
13674cat >>conftest.$ac_ext <<_ACEOF
13675/* end confdefs.h. */
13676#include <ac_nonexistent.h>
13677_ACEOF
13678if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13679 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13680 ac_status=$?
13681 grep -v '^ *+' conftest.er1 >conftest.err
13682 rm -f conftest.er1
13683 cat conftest.err >&5
13684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13685 (exit $ac_status); } >/dev/null; then
13686 if test -s conftest.err; then
13687 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13688 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13689 else
13690 ac_cpp_err=
13691 fi
13692else
13693 ac_cpp_err=yes
13694fi
13695if test -z "$ac_cpp_err"; then
13696 # Broken: success on invalid input.
13697continue
13698else
13699 echo "$as_me: failed program was:" >&5
13700sed 's/^/| /' conftest.$ac_ext >&5
13701
13702 # Passes both tests.
13703ac_preproc_ok=:
13704break
13705fi
13706rm -f conftest.err conftest.$ac_ext
13707
13708done
13709# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13710rm -f conftest.err conftest.$ac_ext
13711if $ac_preproc_ok; then
13712 :
13713else
13714 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
13715See \`config.log' for more details." >&5
13716echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
13717See \`config.log' for more details." >&2;}
13718 { (exit 1); exit 1; }; }
13719fi
13720
13721ac_ext=c
13722ac_cpp='$CPP $CPPFLAGS'
13723ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13724ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13725ac_compiler_gnu=$ac_cv_c_compiler_gnu
13726
13727
13728echo "$as_me:$LINENO: checking for egrep" >&5
13729echo $ECHO_N "checking for egrep... $ECHO_C" >&6
13730if test "${ac_cv_prog_egrep+set}" = set; then
13731 echo $ECHO_N "(cached) $ECHO_C" >&6
13732else
13733 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
13734 then ac_cv_prog_egrep='grep -E'
13735 else ac_cv_prog_egrep='egrep'
13736 fi
13737fi
13738echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
13739echo "${ECHO_T}$ac_cv_prog_egrep" >&6
13740 EGREP=$ac_cv_prog_egrep
13741
13742
13743if test $ac_cv_c_compiler_gnu = yes; then
13744 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
13745echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
13746if test "${ac_cv_prog_gcc_traditional+set}" = set; then
13747 echo $ECHO_N "(cached) $ECHO_C" >&6
13748else
13749 ac_pattern="Autoconf.*'x'"
13750 cat >conftest.$ac_ext <<_ACEOF
13751/* confdefs.h. */
13752_ACEOF
13753cat confdefs.h >>conftest.$ac_ext
13754cat >>conftest.$ac_ext <<_ACEOF
13755/* end confdefs.h. */
13756#include <sgtty.h>
13757Autoconf TIOCGETP
13758_ACEOF
13759if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13760 $EGREP "$ac_pattern" >/dev/null 2>&1; then
13761 ac_cv_prog_gcc_traditional=yes
13762else
13763 ac_cv_prog_gcc_traditional=no
13764fi
13765rm -f conftest*
13766
13767
13768 if test $ac_cv_prog_gcc_traditional = no; then
13769 cat >conftest.$ac_ext <<_ACEOF
13770/* confdefs.h. */
13771_ACEOF
13772cat confdefs.h >>conftest.$ac_ext
13773cat >>conftest.$ac_ext <<_ACEOF
13774/* end confdefs.h. */
13775#include <termio.h>
13776Autoconf TCGETA
13777_ACEOF
13778if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13779 $EGREP "$ac_pattern" >/dev/null 2>&1; then
13780 ac_cv_prog_gcc_traditional=yes
13781fi
13782rm -f conftest*
13783
13784 fi
13785fi
13786echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
13787echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
13788 if test $ac_cv_prog_gcc_traditional = yes; then
13789 CC="$CC -traditional"
13790 fi
13791fi
13792
13793
a848cd7e
SC
13794ac_ext=cc
13795ac_cpp='$CXXCPP $CPPFLAGS'
13796ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13797ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13798ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13799
13800
13801CXXFLAGS=${CXXFLAGS:=}
6dcfc289
DE
13802
13803
3006edc0 13804
6dcfc289 13805 ac_ext=cc
a848cd7e
SC
13806ac_cpp='$CXXCPP $CPPFLAGS'
13807ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13808ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13809ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13810if test -n "$ac_tool_prefix"; then
13811 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
13812 do
13813 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13814set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13815echo "$as_me:$LINENO: checking for $ac_word" >&5
13816echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13817if test "${ac_cv_prog_CXX+set}" = set; then
13818 echo $ECHO_N "(cached) $ECHO_C" >&6
13819else
13820 if test -n "$CXX"; then
13821 ac_cv_prog_CXX="$CXX" # Let the user override the test.
13822else
13823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13824for as_dir in $PATH
13825do
13826 IFS=$as_save_IFS
13827 test -z "$as_dir" && as_dir=.
13828 for ac_exec_ext in '' $ac_executable_extensions; do
13829 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13830 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
13831 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13832 break 2
13833 fi
13834done
13835done
13836
13837fi
13838fi
13839CXX=$ac_cv_prog_CXX
13840if test -n "$CXX"; then
13841 echo "$as_me:$LINENO: result: $CXX" >&5
13842echo "${ECHO_T}$CXX" >&6
13843else
13844 echo "$as_me:$LINENO: result: no" >&5
13845echo "${ECHO_T}no" >&6
13846fi
13847
13848 test -n "$CXX" && break
13849 done
13850fi
13851if test -z "$CXX"; then
13852 ac_ct_CXX=$CXX
13853 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
13854do
13855 # Extract the first word of "$ac_prog", so it can be a program name with args.
13856set dummy $ac_prog; ac_word=$2
13857echo "$as_me:$LINENO: checking for $ac_word" >&5
13858echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13859if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
13860 echo $ECHO_N "(cached) $ECHO_C" >&6
13861else
13862 if test -n "$ac_ct_CXX"; then
13863 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
13864else
13865as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13866for as_dir in $PATH
13867do
13868 IFS=$as_save_IFS
13869 test -z "$as_dir" && as_dir=.
13870 for ac_exec_ext in '' $ac_executable_extensions; do
13871 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13872 ac_cv_prog_ac_ct_CXX="$ac_prog"
13873 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13874 break 2
13875 fi
13876done
13877done
13878
13879fi
13880fi
13881ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
13882if test -n "$ac_ct_CXX"; then
13883 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
13884echo "${ECHO_T}$ac_ct_CXX" >&6
13885else
13886 echo "$as_me:$LINENO: result: no" >&5
13887echo "${ECHO_T}no" >&6
13888fi
13889
13890 test -n "$ac_ct_CXX" && break
13891done
13892test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
13893
13894 CXX=$ac_ct_CXX
13895fi
13896
13897
13898# Provide some information about the compiler.
13899echo "$as_me:$LINENO:" \
13900 "checking for C++ compiler version" >&5
13901ac_compiler=`set X $ac_compile; echo $2`
13902{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
13903 (eval $ac_compiler --version </dev/null >&5) 2>&5
13904 ac_status=$?
13905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13906 (exit $ac_status); }
13907{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
13908 (eval $ac_compiler -v </dev/null >&5) 2>&5
13909 ac_status=$?
13910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13911 (exit $ac_status); }
13912{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
13913 (eval $ac_compiler -V </dev/null >&5) 2>&5
13914 ac_status=$?
13915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13916 (exit $ac_status); }
13917
13918echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
13919echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
13920if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
13921 echo $ECHO_N "(cached) $ECHO_C" >&6
13922else
13923 cat >conftest.$ac_ext <<_ACEOF
13924/* confdefs.h. */
13925_ACEOF
13926cat confdefs.h >>conftest.$ac_ext
13927cat >>conftest.$ac_ext <<_ACEOF
13928/* end confdefs.h. */
13929
13930int
13931main ()
13932{
13933#ifndef __GNUC__
13934 choke me
13935#endif
13936
13937 ;
13938 return 0;
13939}
13940_ACEOF
13941rm -f conftest.$ac_objext
13942if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13943 (eval $ac_compile) 2>conftest.er1
a848cd7e 13944 ac_status=$?
ac1cb8d3
VS
13945 grep -v '^ *+' conftest.er1 >conftest.err
13946 rm -f conftest.er1
13947 cat conftest.err >&5
a848cd7e
SC
13948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13949 (exit $ac_status); } &&
3ea50042 13950 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13952 (eval $ac_try) 2>&5
13953 ac_status=$?
13954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13955 (exit $ac_status); }; } &&
13956 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13958 (eval $ac_try) 2>&5
13959 ac_status=$?
13960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13961 (exit $ac_status); }; }; then
13962 ac_compiler_gnu=yes
13963else
13964 echo "$as_me: failed program was:" >&5
13965sed 's/^/| /' conftest.$ac_ext >&5
13966
13967ac_compiler_gnu=no
13968fi
ac1cb8d3 13969rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13970ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
13971
13972fi
13973echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
13974echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
13975GXX=`test $ac_compiler_gnu = yes && echo yes`
13976ac_test_CXXFLAGS=${CXXFLAGS+set}
13977ac_save_CXXFLAGS=$CXXFLAGS
13978CXXFLAGS="-g"
13979echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
13980echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
13981if test "${ac_cv_prog_cxx_g+set}" = set; then
13982 echo $ECHO_N "(cached) $ECHO_C" >&6
13983else
13984 cat >conftest.$ac_ext <<_ACEOF
13985/* confdefs.h. */
13986_ACEOF
13987cat confdefs.h >>conftest.$ac_ext
13988cat >>conftest.$ac_ext <<_ACEOF
13989/* end confdefs.h. */
13990
13991int
13992main ()
13993{
13994
13995 ;
13996 return 0;
13997}
13998_ACEOF
13999rm -f conftest.$ac_objext
14000if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14001 (eval $ac_compile) 2>conftest.er1
a848cd7e 14002 ac_status=$?
ac1cb8d3
VS
14003 grep -v '^ *+' conftest.er1 >conftest.err
14004 rm -f conftest.er1
14005 cat conftest.err >&5
a848cd7e
SC
14006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14007 (exit $ac_status); } &&
3ea50042 14008 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14010 (eval $ac_try) 2>&5
14011 ac_status=$?
14012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14013 (exit $ac_status); }; } &&
14014 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14016 (eval $ac_try) 2>&5
14017 ac_status=$?
14018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14019 (exit $ac_status); }; }; then
14020 ac_cv_prog_cxx_g=yes
14021else
14022 echo "$as_me: failed program was:" >&5
14023sed 's/^/| /' conftest.$ac_ext >&5
14024
14025ac_cv_prog_cxx_g=no
14026fi
ac1cb8d3 14027rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14028fi
14029echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
14030echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
14031if test "$ac_test_CXXFLAGS" = set; then
14032 CXXFLAGS=$ac_save_CXXFLAGS
14033elif test $ac_cv_prog_cxx_g = yes; then
14034 if test "$GXX" = yes; then
15291213 14035 CXXFLAGS="-g -O2"
a848cd7e 14036 else
15291213 14037 CXXFLAGS="-g"
a848cd7e
SC
14038 fi
14039else
14040 if test "$GXX" = yes; then
14041 CXXFLAGS="-O2"
14042 else
14043 CXXFLAGS=
14044 fi
14045fi
14046for ac_declaration in \
ac1cb8d3 14047 '' \
a848cd7e
SC
14048 'extern "C" void std::exit (int) throw (); using std::exit;' \
14049 'extern "C" void std::exit (int); using std::exit;' \
14050 'extern "C" void exit (int) throw ();' \
14051 'extern "C" void exit (int);' \
14052 'void exit (int);'
14053do
14054 cat >conftest.$ac_ext <<_ACEOF
14055/* confdefs.h. */
14056_ACEOF
14057cat confdefs.h >>conftest.$ac_ext
14058cat >>conftest.$ac_ext <<_ACEOF
14059/* end confdefs.h. */
de59c161 14060$ac_declaration
ac1cb8d3 14061#include <stdlib.h>
a848cd7e
SC
14062int
14063main ()
14064{
14065exit (42);
14066 ;
14067 return 0;
14068}
14069_ACEOF
14070rm -f conftest.$ac_objext
14071if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14072 (eval $ac_compile) 2>conftest.er1
a848cd7e 14073 ac_status=$?
ac1cb8d3
VS
14074 grep -v '^ *+' conftest.er1 >conftest.err
14075 rm -f conftest.er1
14076 cat conftest.err >&5
a848cd7e
SC
14077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14078 (exit $ac_status); } &&
3ea50042 14079 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14081 (eval $ac_try) 2>&5
14082 ac_status=$?
14083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14084 (exit $ac_status); }; } &&
14085 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14087 (eval $ac_try) 2>&5
14088 ac_status=$?
14089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14090 (exit $ac_status); }; }; then
14091 :
14092else
14093 echo "$as_me: failed program was:" >&5
14094sed 's/^/| /' conftest.$ac_ext >&5
14095
14096continue
14097fi
ac1cb8d3 14098rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14099 cat >conftest.$ac_ext <<_ACEOF
14100/* confdefs.h. */
14101_ACEOF
14102cat confdefs.h >>conftest.$ac_ext
14103cat >>conftest.$ac_ext <<_ACEOF
14104/* end confdefs.h. */
14105$ac_declaration
14106int
14107main ()
14108{
14109exit (42);
14110 ;
14111 return 0;
14112}
14113_ACEOF
14114rm -f conftest.$ac_objext
14115if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14116 (eval $ac_compile) 2>conftest.er1
a848cd7e 14117 ac_status=$?
ac1cb8d3
VS
14118 grep -v '^ *+' conftest.er1 >conftest.err
14119 rm -f conftest.er1
14120 cat conftest.err >&5
a848cd7e
SC
14121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14122 (exit $ac_status); } &&
3ea50042 14123 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14125 (eval $ac_try) 2>&5
14126 ac_status=$?
14127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14128 (exit $ac_status); }; } &&
14129 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14131 (eval $ac_try) 2>&5
14132 ac_status=$?
14133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14134 (exit $ac_status); }; }; then
14135 break
14136else
14137 echo "$as_me: failed program was:" >&5
14138sed 's/^/| /' conftest.$ac_ext >&5
14139
14140fi
ac1cb8d3 14141rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14142done
14143rm -f conftest*
14144if test -n "$ac_declaration"; then
14145 echo '#ifdef __cplusplus' >>confdefs.h
14146 echo $ac_declaration >>confdefs.h
14147 echo '#endif' >>confdefs.h
14148fi
14149
14150ac_ext=cc
14151ac_cpp='$CXXCPP $CPPFLAGS'
14152ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14153ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14154ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14155
ab0ad5f1
VZ
14156
14157
14158 ac_ext=cc
14159ac_cpp='$CXXCPP $CPPFLAGS'
14160ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14161ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14162ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14163
14164 echo "$as_me:$LINENO: checking whether we are using the Intel C++ compiler" >&5
14165echo $ECHO_N "checking whether we are using the Intel C++ compiler... $ECHO_C" >&6
14166if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER+set}" = set; then
14167 echo $ECHO_N "(cached) $ECHO_C" >&6
14168else
14169 cat >conftest.$ac_ext <<_ACEOF
14170/* confdefs.h. */
14171_ACEOF
14172cat confdefs.h >>conftest.$ac_ext
14173cat >>conftest.$ac_ext <<_ACEOF
14174/* end confdefs.h. */
14175
14176int
14177main ()
14178{
14179
14180 #ifndef __INTEL_COMPILER
14181 choke me
14182 #endif
14183
14184 ;
14185 return 0;
14186}
14187_ACEOF
14188rm -f conftest.$ac_objext
14189if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14190 (eval $ac_compile) 2>conftest.er1
14191 ac_status=$?
14192 grep -v '^ *+' conftest.er1 >conftest.err
14193 rm -f conftest.er1
14194 cat conftest.err >&5
14195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14196 (exit $ac_status); } &&
3ea50042 14197 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ab0ad5f1
VZ
14198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14199 (eval $ac_try) 2>&5
14200 ac_status=$?
14201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14202 (exit $ac_status); }; } &&
14203 { ac_try='test -s conftest.$ac_objext'
14204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14205 (eval $ac_try) 2>&5
14206 ac_status=$?
14207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14208 (exit $ac_status); }; }; then
14209 bakefile_cv_cxx_compiler___INTEL_COMPILER=yes
14210else
14211 echo "$as_me: failed program was:" >&5
14212sed 's/^/| /' conftest.$ac_ext >&5
14213
14214bakefile_cv_cxx_compiler___INTEL_COMPILER=no
14215
14216fi
14217rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14218
14219
14220fi
14221echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER" >&5
14222echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER" >&6
14223 ac_ext=cc
14224ac_cpp='$CXXCPP $CPPFLAGS'
14225ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14226ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14227ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14228
14229 if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER" = "xyes"; then
14230 :; INTELCXX=yes
14231 else
14232 :;
14233 fi
14234
14235
3006edc0
VZ
14236 if test "x$GCXX" != "xyes"; then
14237 if test "xCXX" = "xC"; then
14238 echo "$as_me:$LINENO: checking if the C++ compiler requires -ext o" >&5
480ccd21 14239echo $ECHO_N "checking if the C++ compiler requires -ext o... $ECHO_C" >&6
0093c2fc 14240if test "${bakefile_cv_cxx_exto+set}" = set; then
480ccd21
DE
14241 echo $ECHO_N "(cached) $ECHO_C" >&6
14242else
14243 cat >conftest.$ac_ext <<_ACEOF
14244/* confdefs.h. */
14245_ACEOF
14246cat confdefs.h >>conftest.$ac_ext
14247cat >>conftest.$ac_ext <<_ACEOF
14248/* end confdefs.h. */
14249
14250int
14251main ()
14252{
14253
14254 ;
14255 return 0;
14256}
14257_ACEOF
14258rm -f conftest.$ac_objext conftest.$ac_ext.o
14259if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14260 (eval $ac_compile) 2>&5
14261 ac_status=$?
14262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14263 (exit $ac_status); }; then
14264 for ac_file in `(ls conftest.* 2>/dev/null)`; do
14265 case $ac_file in
14266 conftest.$ac_ext.o)
0093c2fc 14267 bakefile_cv_cxx_exto="-ext o"
480ccd21
DE
14268 ;;
14269 *)
14270 ;;
14271 esac
14272done
14273else
14274 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
14275See \`config.log' for more details." >&5
14276echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
14277See \`config.log' for more details." >&2;}
14278 { (exit 1); exit 1; }; }
14279
14280fi
14281
14282rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
14283
14284fi
0093c2fc
VZ
14285echo "$as_me:$LINENO: result: $bakefile_cv_cxx_exto" >&5
14286echo "${ECHO_T}$bakefile_cv_cxx_exto" >&6
14287if test "x$bakefile_cv_cxx_exto" '!=' "x"; then
480ccd21 14288 if test "cxx" = "c"; then
0093c2fc 14289 CFLAGS="$bakefile_cv_cxx_exto $CFLAGS"
480ccd21
DE
14290 fi
14291 if test "cxx" = "cxx"; then
0093c2fc 14292 CXXFLAGS="$bakefile_cv_cxx_exto $CXXFLAGS"
480ccd21
DE
14293 fi
14294fi
14295
0093c2fc 14296 if test "x$bakefile_cv_c_exto" '!=' "x"; then
3006edc0
VZ
14297 unset ac_cv_prog_cc_g
14298 ac_test_CFLAGS=${CFLAGS+set}
14299ac_save_CFLAGS=$CFLAGS
15291213 14300CFLAGS="-g"
3006edc0
VZ
14301echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
14302echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
14303if test "${ac_cv_prog_cc_g+set}" = set; then
480ccd21
DE
14304 echo $ECHO_N "(cached) $ECHO_C" >&6
14305else
14306 cat >conftest.$ac_ext <<_ACEOF
14307/* confdefs.h. */
14308_ACEOF
14309cat confdefs.h >>conftest.$ac_ext
14310cat >>conftest.$ac_ext <<_ACEOF
14311/* end confdefs.h. */
14312
14313int
14314main ()
14315{
14316
14317 ;
14318 return 0;
14319}
14320_ACEOF
14321rm -f conftest.$ac_objext
14322if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14323 (eval $ac_compile) 2>conftest.er1
14324 ac_status=$?
14325 grep -v '^ *+' conftest.er1 >conftest.err
14326 rm -f conftest.er1
14327 cat conftest.err >&5
14328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14329 (exit $ac_status); } &&
3ea50042 14330 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
480ccd21
DE
14331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14332 (eval $ac_try) 2>&5
14333 ac_status=$?
14334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14335 (exit $ac_status); }; } &&
14336 { ac_try='test -s conftest.$ac_objext'
14337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14338 (eval $ac_try) 2>&5
14339 ac_status=$?
14340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14341 (exit $ac_status); }; }; then
3006edc0 14342 ac_cv_prog_cc_g=yes
480ccd21
DE
14343else
14344 echo "$as_me: failed program was:" >&5
14345sed 's/^/| /' conftest.$ac_ext >&5
14346
3006edc0 14347ac_cv_prog_cc_g=no
480ccd21
DE
14348fi
14349rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14350fi
3006edc0
VZ
14351echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
14352echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
14353if test "$ac_test_CFLAGS" = set; then
14354 CFLAGS=$ac_save_CFLAGS
14355elif test $ac_cv_prog_cc_g = yes; then
14356 if test "$GCC" = yes; then
14357 CFLAGS="-g -O2"
480ccd21 14358 else
3006edc0 14359 CFLAGS="-g"
480ccd21
DE
14360 fi
14361else
3006edc0
VZ
14362 if test "$GCC" = yes; then
14363 CFLAGS="-O2"
480ccd21 14364 else
3006edc0 14365 CFLAGS=
480ccd21
DE
14366 fi
14367fi
3006edc0 14368 fi
ab0ad5f1 14369 fi
3006edc0
VZ
14370
14371 case `uname -s` in
14372 AIX*)
14373 ac_ext=cc
14374ac_cpp='$CXXCPP $CPPFLAGS'
14375ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14376ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14377ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14378
14379echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
14380echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6
0093c2fc 14381if test "${bakefile_cv_cxx_compiler_xlc+set}" = set; then
3006edc0
VZ
14382 echo $ECHO_N "(cached) $ECHO_C" >&6
14383else
14384 cat >conftest.$ac_ext <<_ACEOF
14385/* confdefs.h. */
14386_ACEOF
14387cat confdefs.h >>conftest.$ac_ext
14388cat >>conftest.$ac_ext <<_ACEOF
14389/* end confdefs.h. */
14390
14391int
14392main ()
14393{
14394#ifndef __xlC__
14395 choke me
14396#endif
14397
14398 ;
14399 return 0;
14400}
14401_ACEOF
14402rm -f conftest.$ac_objext
14403if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14404 (eval $ac_compile) 2>conftest.er1
14405 ac_status=$?
14406 grep -v '^ *+' conftest.er1 >conftest.err
14407 rm -f conftest.er1
14408 cat conftest.err >&5
14409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14410 (exit $ac_status); } &&
3ea50042 14411 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3006edc0
VZ
14412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14413 (eval $ac_try) 2>&5
14414 ac_status=$?
14415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14416 (exit $ac_status); }; } &&
14417 { ac_try='test -s conftest.$ac_objext'
14418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14419 (eval $ac_try) 2>&5
14420 ac_status=$?
14421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14422 (exit $ac_status); }; }; then
0093c2fc 14423 bakefile_compiler_xlc=yes
3006edc0
VZ
14424else
14425 echo "$as_me: failed program was:" >&5
14426sed 's/^/| /' conftest.$ac_ext >&5
14427
0093c2fc 14428bakefile_compiler_xlc=no
3006edc0
VZ
14429fi
14430rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 14431 bakefile_cv_cxx_compiler_xlc=$bakefile_compiler_xlc
3006edc0
VZ
14432
14433fi
0093c2fc
VZ
14434echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_xlc" >&5
14435echo "${ECHO_T}$bakefile_cv_cxx_compiler_xlc" >&6
3006edc0 14436
0093c2fc 14437XLCXX=`test $bakefile_cv_cxx_compiler_xlc = yes && echo yes`
3006edc0
VZ
14438ac_ext=cc
14439ac_cpp='$CXXCPP $CPPFLAGS'
14440ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14441ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14442ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14443
14444
14445 ;;
14446
14447 Darwin)
14448 ac_ext=cc
95986553
DE
14449ac_cpp='$CXXCPP $CPPFLAGS'
14450ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14451ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14452ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14453
14454echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5
14455echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6
14456if test "${bakefile_cv_cxx_compiler_mwerks+set}" = set; then
14457 echo $ECHO_N "(cached) $ECHO_C" >&6
14458else
14459 cat >conftest.$ac_ext <<_ACEOF
14460/* confdefs.h. */
14461_ACEOF
14462cat confdefs.h >>conftest.$ac_ext
14463cat >>conftest.$ac_ext <<_ACEOF
14464/* end confdefs.h. */
14465
14466int
14467main ()
14468{
14469#ifndef __MWERKS__
14470 choke me
14471#endif
14472
14473 ;
14474 return 0;
14475}
14476_ACEOF
14477rm -f conftest.$ac_objext
14478if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14479 (eval $ac_compile) 2>conftest.er1
14480 ac_status=$?
14481 grep -v '^ *+' conftest.er1 >conftest.err
14482 rm -f conftest.er1
14483 cat conftest.err >&5
14484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14485 (exit $ac_status); } &&
3ea50042 14486 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
95986553
DE
14487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14488 (eval $ac_try) 2>&5
14489 ac_status=$?
14490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14491 (exit $ac_status); }; } &&
14492 { ac_try='test -s conftest.$ac_objext'
14493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14494 (eval $ac_try) 2>&5
14495 ac_status=$?
14496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14497 (exit $ac_status); }; }; then
14498 bakefile_compiler_mwerks=yes
14499else
14500 echo "$as_me: failed program was:" >&5
14501sed 's/^/| /' conftest.$ac_ext >&5
14502
14503bakefile_compiler_mwerks=no
14504fi
14505rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14506 bakefile_cv_cxx_compiler_mwerks=$bakefile_compiler_mwerks
14507
14508fi
14509echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_mwerks" >&5
14510echo "${ECHO_T}$bakefile_cv_cxx_compiler_mwerks" >&6
14511
0e6fa1d9 14512MWCXX=`test $bakefile_cv_cxx_compiler_mwerks = yes && echo yes`
95986553
DE
14513ac_ext=cc
14514ac_cpp='$CXXCPP $CPPFLAGS'
14515ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14516ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14517ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14518
14519
3006edc0 14520 ac_ext=cc
9273ffba
DE
14521ac_cpp='$CXXCPP $CPPFLAGS'
14522ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14523ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14524ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14525
14526echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
14527echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6
0093c2fc 14528if test "${bakefile_cv_cxx_compiler_xlc+set}" = set; then
9273ffba
DE
14529 echo $ECHO_N "(cached) $ECHO_C" >&6
14530else
14531 cat >conftest.$ac_ext <<_ACEOF
14532/* confdefs.h. */
14533_ACEOF
14534cat confdefs.h >>conftest.$ac_ext
14535cat >>conftest.$ac_ext <<_ACEOF
14536/* end confdefs.h. */
14537
14538int
14539main ()
14540{
14541#ifndef __xlC__
14542 choke me
14543#endif
14544
14545 ;
14546 return 0;
14547}
14548_ACEOF
14549rm -f conftest.$ac_objext
14550if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14551 (eval $ac_compile) 2>conftest.er1
14552 ac_status=$?
14553 grep -v '^ *+' conftest.er1 >conftest.err
14554 rm -f conftest.er1
14555 cat conftest.err >&5
14556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14557 (exit $ac_status); } &&
3ea50042 14558 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9273ffba
DE
14559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14560 (eval $ac_try) 2>&5
14561 ac_status=$?
14562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14563 (exit $ac_status); }; } &&
14564 { ac_try='test -s conftest.$ac_objext'
14565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14566 (eval $ac_try) 2>&5
14567 ac_status=$?
14568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14569 (exit $ac_status); }; }; then
0093c2fc 14570 bakefile_compiler_xlc=yes
9273ffba
DE
14571else
14572 echo "$as_me: failed program was:" >&5
14573sed 's/^/| /' conftest.$ac_ext >&5
14574
0093c2fc 14575bakefile_compiler_xlc=no
9273ffba
DE
14576fi
14577rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 14578 bakefile_cv_cxx_compiler_xlc=$bakefile_compiler_xlc
9273ffba
DE
14579
14580fi
0093c2fc
VZ
14581echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_xlc" >&5
14582echo "${ECHO_T}$bakefile_cv_cxx_compiler_xlc" >&6
9273ffba 14583
0093c2fc 14584XLCXX=`test $bakefile_cv_cxx_compiler_xlc = yes && echo yes`
9273ffba
DE
14585ac_ext=cc
14586ac_cpp='$CXXCPP $CPPFLAGS'
14587ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14588ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14589ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14590
14591
3006edc0
VZ
14592 ;;
14593
14594 IRIX*)
95986553 14595
6dcfc289 14596
0ad5d837
VZ
14597 ac_ext=cc
14598ac_cpp='$CXXCPP $CPPFLAGS'
14599ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14600ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14601ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14602
14603 echo "$as_me:$LINENO: checking whether we are using the SGI C++ compiler" >&5
14604echo $ECHO_N "checking whether we are using the SGI C++ compiler... $ECHO_C" >&6
14605if test "${bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION+set}" = set; then
14606 echo $ECHO_N "(cached) $ECHO_C" >&6
14607else
14608 cat >conftest.$ac_ext <<_ACEOF
14609/* confdefs.h. */
14610_ACEOF
14611cat confdefs.h >>conftest.$ac_ext
14612cat >>conftest.$ac_ext <<_ACEOF
14613/* end confdefs.h. */
14614
14615int
14616main ()
14617{
14618
14619 #ifndef _SGI_COMPILER_VERSION
14620 choke me
14621 #endif
14622
14623 ;
14624 return 0;
14625}
14626_ACEOF
14627rm -f conftest.$ac_objext
14628if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14629 (eval $ac_compile) 2>conftest.er1
14630 ac_status=$?
14631 grep -v '^ *+' conftest.er1 >conftest.err
14632 rm -f conftest.er1
14633 cat conftest.err >&5
14634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14635 (exit $ac_status); } &&
3ea50042 14636 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0ad5d837
VZ
14637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14638 (eval $ac_try) 2>&5
14639 ac_status=$?
14640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14641 (exit $ac_status); }; } &&
14642 { ac_try='test -s conftest.$ac_objext'
14643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14644 (eval $ac_try) 2>&5
14645 ac_status=$?
14646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14647 (exit $ac_status); }; }; then
14648 bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=yes
14649else
14650 echo "$as_me: failed program was:" >&5
14651sed 's/^/| /' conftest.$ac_ext >&5
14652
14653bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=no
14654
14655fi
14656rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14657
14658
14659fi
14660echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&5
14661echo "${ECHO_T}$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&6
14662 ac_ext=cc
14663ac_cpp='$CXXCPP $CPPFLAGS'
14664ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14665ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14666ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14667
14668 if test "x$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" = "xyes"; then
14669 :; SGICXX=yes
14670 else
14671 :;
14672 fi
14673
14674
3006edc0
VZ
14675 ;;
14676
0093c2fc 14677 HP-UX*)
3006edc0
VZ
14678
14679
14680 ac_ext=cc
14681ac_cpp='$CXXCPP $CPPFLAGS'
14682ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14683ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14684ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14685
0093c2fc
VZ
14686 echo "$as_me:$LINENO: checking whether we are using the HP C++ compiler" >&5
14687echo $ECHO_N "checking whether we are using the HP C++ compiler... $ECHO_C" >&6
14688if test "${bakefile_cv_cxx_compiler___HP_aCC+set}" = set; then
3006edc0
VZ
14689 echo $ECHO_N "(cached) $ECHO_C" >&6
14690else
14691 cat >conftest.$ac_ext <<_ACEOF
14692/* confdefs.h. */
14693_ACEOF
14694cat confdefs.h >>conftest.$ac_ext
14695cat >>conftest.$ac_ext <<_ACEOF
14696/* end confdefs.h. */
14697
14698int
14699main ()
14700{
14701
0093c2fc 14702 #ifndef __HP_aCC
3006edc0
VZ
14703 choke me
14704 #endif
14705
14706 ;
14707 return 0;
14708}
14709_ACEOF
14710rm -f conftest.$ac_objext
14711if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14712 (eval $ac_compile) 2>conftest.er1
14713 ac_status=$?
14714 grep -v '^ *+' conftest.er1 >conftest.err
14715 rm -f conftest.er1
14716 cat conftest.err >&5
14717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14718 (exit $ac_status); } &&
3ea50042 14719 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3006edc0
VZ
14720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14721 (eval $ac_try) 2>&5
14722 ac_status=$?
14723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14724 (exit $ac_status); }; } &&
14725 { ac_try='test -s conftest.$ac_objext'
14726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14727 (eval $ac_try) 2>&5
14728 ac_status=$?
14729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14730 (exit $ac_status); }; }; then
0093c2fc 14731 bakefile_cv_cxx_compiler___HP_aCC=yes
3006edc0
VZ
14732else
14733 echo "$as_me: failed program was:" >&5
14734sed 's/^/| /' conftest.$ac_ext >&5
14735
0093c2fc 14736bakefile_cv_cxx_compiler___HP_aCC=no
3006edc0
VZ
14737
14738fi
14739rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14740
14741
14742fi
0093c2fc
VZ
14743echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___HP_aCC" >&5
14744echo "${ECHO_T}$bakefile_cv_cxx_compiler___HP_aCC" >&6
3006edc0
VZ
14745 ac_ext=cc
14746ac_cpp='$CXXCPP $CPPFLAGS'
14747ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14748ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14749ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14750
0093c2fc
VZ
14751 if test "x$bakefile_cv_cxx_compiler___HP_aCC" = "xyes"; then
14752 :; HPCXX=yes
a1aa0349
VZ
14753 else
14754 :;
14755 fi
14756
14757
14758 ;;
14759
0093c2fc 14760 OSF1)
a1aa0349
VZ
14761
14762
14763 ac_ext=cc
14764ac_cpp='$CXXCPP $CPPFLAGS'
14765ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14766ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14767ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14768
0093c2fc
VZ
14769 echo "$as_me:$LINENO: checking whether we are using the Compaq C++ compiler" >&5
14770echo $ECHO_N "checking whether we are using the Compaq C++ compiler... $ECHO_C" >&6
14771if test "${bakefile_cv_cxx_compiler___DECCXX+set}" = set; then
a1aa0349
VZ
14772 echo $ECHO_N "(cached) $ECHO_C" >&6
14773else
14774 cat >conftest.$ac_ext <<_ACEOF
14775/* confdefs.h. */
14776_ACEOF
14777cat confdefs.h >>conftest.$ac_ext
14778cat >>conftest.$ac_ext <<_ACEOF
14779/* end confdefs.h. */
14780
14781int
14782main ()
14783{
14784
0093c2fc 14785 #ifndef __DECCXX
a1aa0349
VZ
14786 choke me
14787 #endif
14788
14789 ;
14790 return 0;
14791}
14792_ACEOF
14793rm -f conftest.$ac_objext
14794if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14795 (eval $ac_compile) 2>conftest.er1
14796 ac_status=$?
14797 grep -v '^ *+' conftest.er1 >conftest.err
14798 rm -f conftest.er1
14799 cat conftest.err >&5
14800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14801 (exit $ac_status); } &&
3ea50042 14802 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
a1aa0349
VZ
14803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14804 (eval $ac_try) 2>&5
14805 ac_status=$?
14806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14807 (exit $ac_status); }; } &&
14808 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
0093c2fc 14814 bakefile_cv_cxx_compiler___DECCXX=yes
a1aa0349
VZ
14815else
14816 echo "$as_me: failed program was:" >&5
14817sed 's/^/| /' conftest.$ac_ext >&5
14818
0093c2fc 14819bakefile_cv_cxx_compiler___DECCXX=no
a1aa0349
VZ
14820
14821fi
14822rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14823
14824
14825fi
0093c2fc
VZ
14826echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___DECCXX" >&5
14827echo "${ECHO_T}$bakefile_cv_cxx_compiler___DECCXX" >&6
a1aa0349
VZ
14828 ac_ext=cc
14829ac_cpp='$CXXCPP $CPPFLAGS'
14830ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14831ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14832ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14833
0093c2fc
VZ
14834 if test "x$bakefile_cv_cxx_compiler___DECCXX" = "xyes"; then
14835 :; COMPAQCXX=yes
14836 else
14837 :;
14838 fi
14839
14840
14841 ;;
14842
14843 SunOS)
14844
14845
14846 ac_ext=cc
14847ac_cpp='$CXXCPP $CPPFLAGS'
14848ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14849ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14850ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14851
14852 echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
14853echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6
14854if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
14855 echo $ECHO_N "(cached) $ECHO_C" >&6
14856else
14857 cat >conftest.$ac_ext <<_ACEOF
14858/* confdefs.h. */
14859_ACEOF
14860cat confdefs.h >>conftest.$ac_ext
14861cat >>conftest.$ac_ext <<_ACEOF
14862/* end confdefs.h. */
14863
14864int
14865main ()
14866{
14867
14868 #ifndef __SUNPRO_CC
14869 choke me
14870 #endif
14871
14872 ;
14873 return 0;
14874}
14875_ACEOF
14876rm -f conftest.$ac_objext
14877if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14878 (eval $ac_compile) 2>conftest.er1
14879 ac_status=$?
14880 grep -v '^ *+' conftest.er1 >conftest.err
14881 rm -f conftest.er1
14882 cat conftest.err >&5
14883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14884 (exit $ac_status); } &&
3ea50042 14885 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0093c2fc
VZ
14886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14887 (eval $ac_try) 2>&5
14888 ac_status=$?
14889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14890 (exit $ac_status); }; } &&
14891 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
14897 bakefile_cv_cxx_compiler___SUNPRO_CC=yes
14898else
14899 echo "$as_me: failed program was:" >&5
14900sed 's/^/| /' conftest.$ac_ext >&5
14901
14902bakefile_cv_cxx_compiler___SUNPRO_CC=no
14903
14904fi
14905rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14906
14907
14908fi
14909echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
14910echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6
14911 ac_ext=cc
14912ac_cpp='$CXXCPP $CPPFLAGS'
14913ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14914ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14915ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14916
14917 if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
14918 :; SUNCXX=yes
3006edc0
VZ
14919 else
14920 :;
ab0ad5f1 14921 fi
a9e5b1f0
MW
14922
14923
3006edc0
VZ
14924 ;;
14925 esac
14926 fi
14927
14928
14929
a848cd7e
SC
14930if test -n "$ac_tool_prefix"; then
14931 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14932set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14933echo "$as_me:$LINENO: checking for $ac_word" >&5
14934echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14935if test "${ac_cv_prog_RANLIB+set}" = set; then
14936 echo $ECHO_N "(cached) $ECHO_C" >&6
14937else
14938 if test -n "$RANLIB"; then
14939 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14940else
14941as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14942for as_dir in $PATH
14943do
14944 IFS=$as_save_IFS
14945 test -z "$as_dir" && as_dir=.
14946 for ac_exec_ext in '' $ac_executable_extensions; do
14947 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14948 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14949 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14950 break 2
14951 fi
14952done
14953done
14954
14955fi
14956fi
14957RANLIB=$ac_cv_prog_RANLIB
14958if test -n "$RANLIB"; then
14959 echo "$as_me:$LINENO: result: $RANLIB" >&5
14960echo "${ECHO_T}$RANLIB" >&6
14961else
14962 echo "$as_me:$LINENO: result: no" >&5
14963echo "${ECHO_T}no" >&6
14964fi
14965
14966fi
14967if test -z "$ac_cv_prog_RANLIB"; then
14968 ac_ct_RANLIB=$RANLIB
14969 # Extract the first word of "ranlib", so it can be a program name with args.
14970set dummy ranlib; ac_word=$2
14971echo "$as_me:$LINENO: checking for $ac_word" >&5
14972echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14973if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14974 echo $ECHO_N "(cached) $ECHO_C" >&6
14975else
14976 if test -n "$ac_ct_RANLIB"; then
14977 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14978else
14979as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14980for as_dir in $PATH
14981do
14982 IFS=$as_save_IFS
14983 test -z "$as_dir" && as_dir=.
14984 for ac_exec_ext in '' $ac_executable_extensions; do
14985 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14986 ac_cv_prog_ac_ct_RANLIB="ranlib"
14987 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14988 break 2
14989 fi
14990done
14991done
14992
14993 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
14994fi
14995fi
14996ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14997if test -n "$ac_ct_RANLIB"; then
14998 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14999echo "${ECHO_T}$ac_ct_RANLIB" >&6
15000else
15001 echo "$as_me:$LINENO: result: no" >&5
15002echo "${ECHO_T}no" >&6
15003fi
15004
15005 RANLIB=$ac_ct_RANLIB
15006else
15007 RANLIB="$ac_cv_prog_RANLIB"
15008fi
15009
15010
8c80d384
DE
15011if test -n "$ac_tool_prefix"; then
15012 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
15013set dummy ${ac_tool_prefix}ar; ac_word=$2
a848cd7e
SC
15014echo "$as_me:$LINENO: checking for $ac_word" >&5
15015echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15016if test "${ac_cv_prog_AR+set}" = set; then
15017 echo $ECHO_N "(cached) $ECHO_C" >&6
15018else
15019 if test -n "$AR"; then
15020 ac_cv_prog_AR="$AR" # Let the user override the test.
15021else
15022as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15023for as_dir in $PATH
15024do
15025 IFS=$as_save_IFS
15026 test -z "$as_dir" && as_dir=.
15027 for ac_exec_ext in '' $ac_executable_extensions; do
15028 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8c80d384 15029 ac_cv_prog_AR="${ac_tool_prefix}ar"
a848cd7e
SC
15030 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15031 break 2
15032 fi
15033done
15034done
15035
15036fi
15037fi
15038AR=$ac_cv_prog_AR
15039if test -n "$AR"; then
15040 echo "$as_me:$LINENO: result: $AR" >&5
15041echo "${ECHO_T}$AR" >&6
15042else
15043 echo "$as_me:$LINENO: result: no" >&5
15044echo "${ECHO_T}no" >&6
15045fi
15046
8c80d384
DE
15047fi
15048if test -z "$ac_cv_prog_AR"; then
15049 ac_ct_AR=$AR
15050 # Extract the first word of "ar", so it can be a program name with args.
15051set dummy ar; ac_word=$2
15052echo "$as_me:$LINENO: checking for $ac_word" >&5
15053echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15054if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
15055 echo $ECHO_N "(cached) $ECHO_C" >&6
15056else
15057 if test -n "$ac_ct_AR"; then
15058 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
15059else
15060as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15061for as_dir in $PATH
15062do
15063 IFS=$as_save_IFS
15064 test -z "$as_dir" && as_dir=.
15065 for ac_exec_ext in '' $ac_executable_extensions; do
15066 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15067 ac_cv_prog_ac_ct_AR="ar"
15068 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15069 break 2
15070 fi
15071done
15072done
15073
15074fi
15075fi
15076ac_ct_AR=$ac_cv_prog_ac_ct_AR
15077if test -n "$ac_ct_AR"; then
15078 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
15079echo "${ECHO_T}$ac_ct_AR" >&6
15080else
15081 echo "$as_me:$LINENO: result: no" >&5
15082echo "${ECHO_T}no" >&6
15083fi
15084
15085 AR=$ac_ct_AR
15086else
15087 AR="$ac_cv_prog_AR"
15088fi
15089
a848cd7e 15090if test "x$AR" = "x" ; then
77ffb593
JS
15091 { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
15092echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
a848cd7e
SC
15093 { (exit 1); exit 1; }; }
15094fi
15095
15096# Find a good install program. We prefer a C program (faster),
15097# so one script is as good as another. But avoid the broken or
15098# incompatible versions:
15099# SysV /etc/install, /usr/sbin/install
15100# SunOS /usr/etc/install
15101# IRIX /sbin/install
15102# AIX /bin/install
15103# AmigaOS /C/install, which installs bootblocks on floppy discs
15104# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
15105# AFS /usr/afsws/bin/install, which mishandles nonexistent args
15106# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 15107# OS/2's system install, which has a completely different semantic
a848cd7e
SC
15108# ./install, which can be erroneously created by make from ./install.sh.
15109echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
15110echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
15111if test -z "$INSTALL"; then
15112if test "${ac_cv_path_install+set}" = set; then
15113 echo $ECHO_N "(cached) $ECHO_C" >&6
15114else
15115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15116for as_dir in $PATH
15117do
15118 IFS=$as_save_IFS
15119 test -z "$as_dir" && as_dir=.
15120 # Account for people who put trailing slashes in PATH elements.
15121case $as_dir/ in
15122 ./ | .// | /cC/* | \
15123 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 15124 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
15125 /usr/ucb/* ) ;;
15126 *)
15127 # OSF1 and SCO ODT 3.0 have their own names for install.
15128 # Don't use installbsd from OSF since it installs stuff as root
15129 # by default.
15130 for ac_prog in ginstall scoinst install; do
15131 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
15132 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
15133 if test $ac_prog = install &&
15134 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
15135 # AIX install. It has an incompatible calling convention.
15136 :
15137 elif test $ac_prog = install &&
15138 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
15139 # program-specific install script used by HP pwplus--don't use.
15140 :
15141 else
15142 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
15143 break 3
15144 fi
15145 fi
a848cd7e
SC
15146 done
15147 done
15148 ;;
15149esac
15150done
15151
15152
15153fi
15154 if test "${ac_cv_path_install+set}" = set; then
15155 INSTALL=$ac_cv_path_install
15156 else
15157 # As a last resort, use the slow shell script. We don't cache a
15158 # path for INSTALL within a source directory, because that will
15159 # break other packages using the cache if that directory is
15160 # removed, or if the path is relative.
15161 INSTALL=$ac_install_sh
15162 fi
15163fi
15164echo "$as_me:$LINENO: result: $INSTALL" >&5
15165echo "${ECHO_T}$INSTALL" >&6
15166
15167# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
15168# It thinks the first close brace ends the variable substitution.
15169test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
15170
15171test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
15172
15173test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
15174
15175
15176case ${INSTALL} in
15177 /* ) # Absolute
15178 ;;
15179 ?:* ) # Drive letter, considered as absolute.
15180 ;;
15181 *)
15182 INSTALL=`pwd`/${INSTALL} ;;
15183esac
15184
a848cd7e
SC
15185
15186case "${host}" in
15187
cfda0ea8 15188 *-*-darwin* )
a848cd7e
SC
15189 INSTALL_PROGRAM="cp -fp"
15190 INSTALL_DATA="cp -fp"
15191 ;;
15192 *)
15193 ;;
15194esac
15195
8c80d384
DE
15196if test -n "$ac_tool_prefix"; then
15197 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
15198set dummy ${ac_tool_prefix}strip; ac_word=$2
a848cd7e
SC
15199echo "$as_me:$LINENO: checking for $ac_word" >&5
15200echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15201if test "${ac_cv_prog_STRIP+set}" = set; then
15202 echo $ECHO_N "(cached) $ECHO_C" >&6
15203else
15204 if test -n "$STRIP"; then
15205 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
15206else
15207as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15208for as_dir in $PATH
15209do
15210 IFS=$as_save_IFS
15211 test -z "$as_dir" && as_dir=.
15212 for ac_exec_ext in '' $ac_executable_extensions; do
15213 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8c80d384 15214 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
a848cd7e
SC
15215 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15216 break 2
15217 fi
15218done
15219done
15220
a848cd7e
SC
15221fi
15222fi
15223STRIP=$ac_cv_prog_STRIP
15224if test -n "$STRIP"; then
15225 echo "$as_me:$LINENO: result: $STRIP" >&5
15226echo "${ECHO_T}$STRIP" >&6
15227else
15228 echo "$as_me:$LINENO: result: no" >&5
15229echo "${ECHO_T}no" >&6
15230fi
15231
8c80d384
DE
15232fi
15233if test -z "$ac_cv_prog_STRIP"; then
15234 ac_ct_STRIP=$STRIP
15235 # Extract the first word of "strip", so it can be a program name with args.
15236set dummy strip; ac_word=$2
15237echo "$as_me:$LINENO: checking for $ac_word" >&5
15238echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15239if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
15240 echo $ECHO_N "(cached) $ECHO_C" >&6
15241else
15242 if test -n "$ac_ct_STRIP"; then
15243 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
15244else
15245as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15246for as_dir in $PATH
15247do
15248 IFS=$as_save_IFS
15249 test -z "$as_dir" && as_dir=.
15250 for ac_exec_ext in '' $ac_executable_extensions; do
15251 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15252 ac_cv_prog_ac_ct_STRIP="strip"
15253 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15254 break 2
15255 fi
15256done
15257done
15258
15259 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP="true"
15260fi
15261fi
15262ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
15263if test -n "$ac_ct_STRIP"; then
15264 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
15265echo "${ECHO_T}$ac_ct_STRIP" >&6
15266else
15267 echo "$as_me:$LINENO: result: no" >&5
15268echo "${ECHO_T}no" >&6
15269fi
15270
15271 STRIP=$ac_ct_STRIP
15272else
15273 STRIP="$ac_cv_prog_STRIP"
15274fi
15275
15276
15277if test "$wxUSE_WINE" = "yes"; then
15278 if test -n "$ac_tool_prefix"; then
15279 # Extract the first word of "${ac_tool_prefix}wrc", so it can be a program name with args.
15280set dummy ${ac_tool_prefix}wrc; ac_word=$2
15281echo "$as_me:$LINENO: checking for $ac_word" >&5
15282echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 15283if test "${ac_cv_prog_WINDRES+set}" = set; then
8c80d384
DE
15284 echo $ECHO_N "(cached) $ECHO_C" >&6
15285else
8ced02f6
DE
15286 if test -n "$WINDRES"; then
15287 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8c80d384
DE
15288else
15289as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15290for as_dir in $PATH
15291do
15292 IFS=$as_save_IFS
15293 test -z "$as_dir" && as_dir=.
15294 for ac_exec_ext in '' $ac_executable_extensions; do
15295 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 15296 ac_cv_prog_WINDRES="${ac_tool_prefix}wrc"
8c80d384
DE
15297 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15298 break 2
15299 fi
15300done
15301done
15302
15303fi
15304fi
8ced02f6
DE
15305WINDRES=$ac_cv_prog_WINDRES
15306if test -n "$WINDRES"; then
15307 echo "$as_me:$LINENO: result: $WINDRES" >&5
15308echo "${ECHO_T}$WINDRES" >&6
8c80d384
DE
15309else
15310 echo "$as_me:$LINENO: result: no" >&5
15311echo "${ECHO_T}no" >&6
15312fi
15313
15314fi
8ced02f6
DE
15315if test -z "$ac_cv_prog_WINDRES"; then
15316 ac_ct_WINDRES=$WINDRES
8c80d384
DE
15317 # Extract the first word of "wrc", so it can be a program name with args.
15318set dummy wrc; ac_word=$2
15319echo "$as_me:$LINENO: checking for $ac_word" >&5
15320echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 15321if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
8c80d384
DE
15322 echo $ECHO_N "(cached) $ECHO_C" >&6
15323else
8ced02f6
DE
15324 if test -n "$ac_ct_WINDRES"; then
15325 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
8c80d384
DE
15326else
15327as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15328for as_dir in $PATH
15329do
15330 IFS=$as_save_IFS
15331 test -z "$as_dir" && as_dir=.
15332 for ac_exec_ext in '' $ac_executable_extensions; do
15333 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 15334 ac_cv_prog_ac_ct_WINDRES="wrc"
8c80d384
DE
15335 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15336 break 2
15337 fi
15338done
15339done
15340
15341fi
15342fi
8ced02f6
DE
15343ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
15344if test -n "$ac_ct_WINDRES"; then
15345 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
15346echo "${ECHO_T}$ac_ct_WINDRES" >&6
8c80d384
DE
15347else
15348 echo "$as_me:$LINENO: result: no" >&5
15349echo "${ECHO_T}no" >&6
15350fi
15351
8ced02f6 15352 WINDRES=$ac_ct_WINDRES
8c80d384 15353else
8ced02f6 15354 WINDRES="$ac_cv_prog_WINDRES"
8c80d384
DE
15355fi
15356
004ee6da 15357 RESCOMP="$WINDRES"
8c80d384
DE
15358else
15359 case "${host}" in
15360 *-*-cygwin* | *-*-mingw32* )
004ee6da
RL
15361 if test -n "$ac_tool_prefix"; then
15362 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
15363set dummy ${ac_tool_prefix}windres; ac_word=$2
15364echo "$as_me:$LINENO: checking for $ac_word" >&5
15365echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15366if test "${ac_cv_prog_WINDRES+set}" = set; then
15367 echo $ECHO_N "(cached) $ECHO_C" >&6
15368else
15369 if test -n "$WINDRES"; then
15370 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
15371else
15372as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15373for as_dir in $PATH
15374do
15375 IFS=$as_save_IFS
15376 test -z "$as_dir" && as_dir=.
15377 for ac_exec_ext in '' $ac_executable_extensions; do
15378 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15379 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
15380 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15381 break 2
15382 fi
15383done
15384done
15385
15386fi
15387fi
15388WINDRES=$ac_cv_prog_WINDRES
15389if test -n "$WINDRES"; then
15390 echo "$as_me:$LINENO: result: $WINDRES" >&5
15391echo "${ECHO_T}$WINDRES" >&6
15392else
15393 echo "$as_me:$LINENO: result: no" >&5
15394echo "${ECHO_T}no" >&6
15395fi
15396
15397fi
15398if test -z "$ac_cv_prog_WINDRES"; then
15399 ac_ct_WINDRES=$WINDRES
15400 # Extract the first word of "windres", so it can be a program name with args.
15401set dummy windres; ac_word=$2
15402echo "$as_me:$LINENO: checking for $ac_word" >&5
15403echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15404if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
15405 echo $ECHO_N "(cached) $ECHO_C" >&6
15406else
15407 if test -n "$ac_ct_WINDRES"; then
15408 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
15409else
15410as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15411for as_dir in $PATH
15412do
15413 IFS=$as_save_IFS
15414 test -z "$as_dir" && as_dir=.
15415 for ac_exec_ext in '' $ac_executable_extensions; do
15416 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15417 ac_cv_prog_ac_ct_WINDRES="windres"
15418 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15419 break 2
15420 fi
15421done
15422done
15423
15424fi
15425fi
15426ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
15427if test -n "$ac_ct_WINDRES"; then
15428 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
15429echo "${ECHO_T}$ac_ct_WINDRES" >&6
15430else
15431 echo "$as_me:$LINENO: result: no" >&5
15432echo "${ECHO_T}no" >&6
15433fi
15434
15435 WINDRES=$ac_ct_WINDRES
15436else
15437 WINDRES="$ac_cv_prog_WINDRES"
15438fi
15439
15440 RESCOMP="$WINDRES"
15441 if test -n "$ac_tool_prefix"; then
8c80d384
DE
15442 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
15443set dummy ${ac_tool_prefix}dlltool; ac_word=$2
15444echo "$as_me:$LINENO: checking for $ac_word" >&5
15445echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15446if test "${ac_cv_prog_DLLTOOL+set}" = set; then
15447 echo $ECHO_N "(cached) $ECHO_C" >&6
15448else
15449 if test -n "$DLLTOOL"; then
15450 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
15451else
15452as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15453for as_dir in $PATH
15454do
15455 IFS=$as_save_IFS
15456 test -z "$as_dir" && as_dir=.
15457 for ac_exec_ext in '' $ac_executable_extensions; do
15458 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15459 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
15460 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15461 break 2
15462 fi
15463done
15464done
15465
15466fi
15467fi
15468DLLTOOL=$ac_cv_prog_DLLTOOL
15469if test -n "$DLLTOOL"; then
15470 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
15471echo "${ECHO_T}$DLLTOOL" >&6
15472else
15473 echo "$as_me:$LINENO: result: no" >&5
15474echo "${ECHO_T}no" >&6
15475fi
15476
15477fi
15478if test -z "$ac_cv_prog_DLLTOOL"; then
15479 ac_ct_DLLTOOL=$DLLTOOL
15480 # Extract the first word of "dlltool", so it can be a program name with args.
15481set dummy dlltool; ac_word=$2
15482echo "$as_me:$LINENO: checking for $ac_word" >&5
15483echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15484if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
15485 echo $ECHO_N "(cached) $ECHO_C" >&6
15486else
15487 if test -n "$ac_ct_DLLTOOL"; then
15488 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
15489else
15490as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15491for as_dir in $PATH
15492do
15493 IFS=$as_save_IFS
15494 test -z "$as_dir" && as_dir=.
15495 for ac_exec_ext in '' $ac_executable_extensions; do
15496 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15497 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
15498 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15499 break 2
15500 fi
15501done
15502done
15503
15504fi
15505fi
15506ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
15507if test -n "$ac_ct_DLLTOOL"; then
15508 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
15509echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
15510else
15511 echo "$as_me:$LINENO: result: no" >&5
15512echo "${ECHO_T}no" >&6
15513fi
15514
15515 DLLTOOL=$ac_ct_DLLTOOL
15516else
15517 DLLTOOL="$ac_cv_prog_DLLTOOL"
15518fi
15519
15520 ;;
15521 esac
15522fi
a848cd7e
SC
15523
15524echo "$as_me:$LINENO: checking if make is GNU make" >&5
15525echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
15526if test "${wx_cv_prog_makeisgnu+set}" = set; then
15527 echo $ECHO_N "(cached) $ECHO_C" >&6
15528else
15529
15530 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
15531 egrep -s GNU > /dev/null); then
15532 wx_cv_prog_makeisgnu="yes"
15533 else
15534 wx_cv_prog_makeisgnu="no"
15535 fi
15536
15537fi
15538echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
15539echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
15540
15541if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
15542 IF_GNU_MAKE=""
15543else
15544 IF_GNU_MAKE="#"
15545fi
15546
15547
15548
15549if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
15550echo "$as_me:$LINENO: checking if make supports VPATH" >&5
15551echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
15552if test "${wx_cv_prog_makevpath+set}" = set; then
15553 echo $ECHO_N "(cached) $ECHO_C" >&6
15554else
15555
15556cat - << EOF > confMake
15557check : file
15558 cp \$? \$@
15559 cp \$? final_file
15560EOF
15561
15562if test ! -d sub ; then
15563 mkdir sub
15564fi
15565echo dummy > sub/file
15566${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
15567RESULT=$?
15568rm -f sub/file check final_file confMake
15569rmdir sub
15570if test "$RESULT" = 0; then
15571 wx_cv_prog_makevpath="yes"
15572else
15573 wx_cv_prog_makevpath="no"
15574fi
15575
15576fi
15577echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
15578echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
15579
15580if test "x$wx_cv_prog_makevpath" != "xyes"; then
15581{ { echo "$as_me:$LINENO: error:
15582You need a make-utility that is able to use the variable
15583VPATH correctly.
15584If your version of make does not support VPATH correctly,
15585please install GNU-make (possibly as gmake), and start
15586configure with the following command:
15587export MAKE=gmake; ./configure for sh-type shells
15588setenv MAKE gmake; ./configure for csh-type shells
15589Also please do remember to use gmake in this case every time
15590you are trying to compile.
15591" >&5
15592echo "$as_me: error:
15593You need a make-utility that is able to use the variable
15594VPATH correctly.
15595If your version of make does not support VPATH correctly,
15596please install GNU-make (possibly as gmake), and start
15597configure with the following command:
15598export MAKE=gmake; ./configure for sh-type shells
15599setenv MAKE gmake; ./configure for csh-type shells
15600Also please do remember to use gmake in this case every time
15601you are trying to compile.
15602" >&2;}
15603 { (exit 1); exit 1; }; }
15604fi fi
15605echo "$as_me:$LINENO: checking whether ln -s works" >&5
15606echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
15607LN_S=$as_ln_s
15608if test "$LN_S" = "ln -s"; then
15609 echo "$as_me:$LINENO: result: yes" >&5
15610echo "${ECHO_T}yes" >&6
15611else
15612 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
15613echo "${ECHO_T}no, using $LN_S" >&6
15614fi
15615
15616
bcaab0f9 15617
a848cd7e 15618
2113bc77 15619if test "x$XLCXX" = "xyes" -a "x$USE_AIX" = "x1"; then
c92ad099 15620 CXXFLAGS="-qunique $CXXFLAGS"
9273ffba
DE
15621fi
15622
4d7ec9f1
DE
15623case "${host}" in
15624 powerpc-*-darwin* )
15625 echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5
15626echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6
15627 cat >conftest.$ac_ext <<_ACEOF
15628/* confdefs.h. */
15629_ACEOF
15630cat confdefs.h >>conftest.$ac_ext
15631cat >>conftest.$ac_ext <<_ACEOF
15632/* end confdefs.h. */
15633
15634int
15635main ()
15636{
15637#ifndef __POWERPC__
15638 choke me for lack of PowerPC
15639#endif
15640
15641 ;
15642 return 0;
15643}
15644_ACEOF
15645rm -f conftest.$ac_objext
15646if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15647 (eval $ac_compile) 2>conftest.er1
15648 ac_status=$?
15649 grep -v '^ *+' conftest.er1 >conftest.err
15650 rm -f conftest.er1
15651 cat conftest.err >&5
15652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15653 (exit $ac_status); } &&
3ea50042 15654 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
15655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15656 (eval $ac_try) 2>&5
15657 ac_status=$?
15658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15659 (exit $ac_status); }; } &&
15660 { ac_try='test -s conftest.$ac_objext'
15661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15662 (eval $ac_try) 2>&5
15663 ac_status=$?
15664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15665 (exit $ac_status); }; }; then
15666 echo "$as_me:$LINENO: result: yes" >&5
15667echo "${ECHO_T}yes" >&6
15668else
15669 echo "$as_me: failed program was:" >&5
15670sed 's/^/| /' conftest.$ac_ext >&5
15671
15672echo "$as_me:$LINENO: result: no" >&5
15673echo "${ECHO_T}no" >&6
15674 cat >>confdefs.h <<\_ACEOF
15675#define __POWERPC__ 1
15676_ACEOF
15677
15678
15679fi
15680rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
cfda0ea8
DE
15681 ;;
15682esac
15683
15684case "${host}" in
15685 *-*-darwin* )
4d7ec9f1
DE
15686 echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5
15687echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6
15688 cat >conftest.$ac_ext <<_ACEOF
15689/* confdefs.h. */
15690_ACEOF
15691cat confdefs.h >>conftest.$ac_ext
15692cat >>conftest.$ac_ext <<_ACEOF
15693/* end confdefs.h. */
15694#include <CoreFoundation/CFBase.h>
15695
15696int
15697main ()
15698{
15699
15700 ;
15701 return 0;
15702}
15703_ACEOF
15704rm -f conftest.$ac_objext
15705if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15706 (eval $ac_compile) 2>conftest.er1
15707 ac_status=$?
15708 grep -v '^ *+' conftest.er1 >conftest.err
15709 rm -f conftest.er1
15710 cat conftest.err >&5
15711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15712 (exit $ac_status); } &&
3ea50042 15713 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
15714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15715 (eval $ac_try) 2>&5
15716 ac_status=$?
15717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15718 (exit $ac_status); }; } &&
15719 { ac_try='test -s conftest.$ac_objext'
15720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15721 (eval $ac_try) 2>&5
15722 ac_status=$?
15723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15724 (exit $ac_status); }; }; then
15725 echo "$as_me:$LINENO: result: yes" >&5
15726echo "${ECHO_T}yes" >&6
15727else
15728 echo "$as_me: failed program was:" >&5
15729sed 's/^/| /' conftest.$ac_ext >&5
15730
15731echo "$as_me:$LINENO: result: no" >&5
15732echo "${ECHO_T}no" >&6
15733 echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5
15734echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6
15735 cat >conftest.$ac_ext <<_ACEOF
15736/* confdefs.h. */
15737_ACEOF
15738cat confdefs.h >>conftest.$ac_ext
15739cat >>conftest.$ac_ext <<_ACEOF
15740/* end confdefs.h. */
15741#define __CF_USE_FRAMEWORK_INCLUDES__
15742#include <CoreFoundation/CFBase.h>
15743
15744int
15745main ()
15746{
15747
15748 ;
15749 return 0;
15750}
15751_ACEOF
15752rm -f conftest.$ac_objext
15753if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15754 (eval $ac_compile) 2>conftest.er1
15755 ac_status=$?
15756 grep -v '^ *+' conftest.er1 >conftest.err
15757 rm -f conftest.er1
15758 cat conftest.err >&5
15759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15760 (exit $ac_status); } &&
3ea50042 15761 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
15762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15763 (eval $ac_try) 2>&5
15764 ac_status=$?
15765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15766 (exit $ac_status); }; } &&
15767 { ac_try='test -s conftest.$ac_objext'
15768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15769 (eval $ac_try) 2>&5
15770 ac_status=$?
15771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15772 (exit $ac_status); }; }; then
15773 echo "$as_me:$LINENO: result: yes" >&5
15774echo "${ECHO_T}yes" >&6
c92ad099 15775 CPPFLAGS="-D__CF_USE_FRAMEWORK_INCLUDES__ $CPPFLAGS"
4d7ec9f1
DE
15776else
15777 echo "$as_me: failed program was:" >&5
15778sed 's/^/| /' conftest.$ac_ext >&5
15779
15780{ { echo "$as_me:$LINENO: error: no. CoreFoundation not available.
15781See \`config.log' for more details." >&5
15782echo "$as_me: error: no. CoreFoundation not available.
15783See \`config.log' for more details." >&2;}
15784 { (exit 1); exit 1; }; }
15785
15786fi
15787rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15788
15789
15790fi
15791rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15792 ;;
15793esac
15794
a848cd7e
SC
15795case "${host}" in
15796 *-pc-os2_emx | *-pc-os2-emx )
6ba87b06
SN
15797 ac_ext=c
15798ac_cpp='$CPP $CPPFLAGS'
15799ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15800ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15801ac_compiler_gnu=$ac_cv_c_compiler_gnu
15802
15803 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
a848cd7e
SC
15804 echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
15805echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
15806if test "${ac_cv_lib_cExt_drand48+set}" = set; then
15807 echo $ECHO_N "(cached) $ECHO_C" >&6
15808else
15809 ac_check_lib_save_LIBS=$LIBS
15810LIBS="-lcExt $LIBS"
15811cat >conftest.$ac_ext <<_ACEOF
15812/* confdefs.h. */
15813_ACEOF
15814cat confdefs.h >>conftest.$ac_ext
15815cat >>conftest.$ac_ext <<_ACEOF
15816/* end confdefs.h. */
15817
15818/* Override any gcc2 internal prototype to avoid an error. */
15819#ifdef __cplusplus
15820extern "C"
15821#endif
15822/* We use char because int might match the return type of a gcc2
15823 builtin and then its argument prototype would still apply. */
15824char drand48 ();
15825int
15826main ()
15827{
15828drand48 ();
15829 ;
15830 return 0;
15831}
15832_ACEOF
15833rm -f conftest.$ac_objext conftest$ac_exeext
15834if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 15835 (eval $ac_link) 2>conftest.er1
a848cd7e 15836 ac_status=$?
ac1cb8d3
VS
15837 grep -v '^ *+' conftest.er1 >conftest.err
15838 rm -f conftest.er1
15839 cat conftest.err >&5
a848cd7e
SC
15840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15841 (exit $ac_status); } &&
3ea50042 15842 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15844 (eval $ac_try) 2>&5
15845 ac_status=$?
15846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15847 (exit $ac_status); }; } &&
15848 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
15849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15850 (eval $ac_try) 2>&5
15851 ac_status=$?
15852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15853 (exit $ac_status); }; }; then
15854 ac_cv_lib_cExt_drand48=yes
15855else
15856 echo "$as_me: failed program was:" >&5
15857sed 's/^/| /' conftest.$ac_ext >&5
15858
15859ac_cv_lib_cExt_drand48=no
15860fi
ac1cb8d3
VS
15861rm -f conftest.err conftest.$ac_objext \
15862 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
15863LIBS=$ac_check_lib_save_LIBS
15864fi
15865echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
15866echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
15867if test $ac_cv_lib_cExt_drand48 = yes; then
15868 LIBS="$LIBS -lcExt"
15869fi
15870
15871 else
15872 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
15873 fi
69120ee4
VZ
15874 echo "$as_me:$LINENO: checking for gcc/libc version" >&5
15875echo $ECHO_N "checking for gcc/libc version... $ECHO_C" >&6
a848cd7e
SC
15876if test "${wx_cv_gccversion+set}" = set; then
15877 echo $ECHO_N "(cached) $ECHO_C" >&6
15878else
15879
391a765e
VS
15880 if test "$cross_compiling" = yes; then
15881 wx_cv_gccversion="EMX2"
15882
15883else
15884 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
15885/* confdefs.h. */
15886_ACEOF
15887cat confdefs.h >>conftest.$ac_ext
15888cat >>conftest.$ac_ext <<_ACEOF
15889/* end confdefs.h. */
15890
391a765e 15891 #include <stdio.h>
a848cd7e 15892
391a765e
VS
15893 int main()
15894 {
15895 FILE *f=fopen("conftestval", "w");
15896 if (!f) exit(1);
15897 fprintf(f,
a848cd7e 15898 #if (__GNUC__ < 3)
391a765e
VS
15899 "EMX2"
15900 #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
15901 "EMX3"
15902 #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2)
15903 "Innotek5"
15904 #else
15905 "Innotek6"
a848cd7e 15906 #endif
5039a2df 15907 );
391a765e
VS
15908 exit(0);
15909 }
a848cd7e 15910
a848cd7e 15911_ACEOF
391a765e
VS
15912rm -f conftest$ac_exeext
15913if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15914 (eval $ac_link) 2>&5
ac1cb8d3
VS
15915 ac_status=$?
15916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
391a765e 15917 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
a848cd7e
SC
15918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15919 (eval $ac_try) 2>&5
15920 ac_status=$?
15921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15922 (exit $ac_status); }; }; then
391a765e 15923 wx_cv_gccversion=`cat conftestval`
a848cd7e 15924else
391a765e
VS
15925 echo "$as_me: program exited with status $ac_status" >&5
15926echo "$as_me: failed program was:" >&5
a848cd7e
SC
15927sed 's/^/| /' conftest.$ac_ext >&5
15928
391a765e
VS
15929( exit $ac_status )
15930wx_cv_gccversion="EMX2"
a848cd7e 15931fi
391a765e 15932rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 15933fi
a848cd7e
SC
15934
15935fi
15936echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
15937echo "${ECHO_T}$wx_cv_gccversion" >&6
6ba87b06
SN
15938 ac_ext=cc
15939ac_cpp='$CXXCPP $CPPFLAGS'
15940ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15941ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15942ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15943
391a765e 15944 if test "$wx_cv_gccversion" = "EMX2"; then
a848cd7e
SC
15945 LIBS="$LIBS -lstdcpp"
15946 LDFLAGS="$LDFLAGS -Zsysv-signals"
15947 else
391a765e 15948 if test "$wx_cv_gccversion" = "EMX3"; then
ddd14b14 15949 LIBS="$LIBS -lstdcxx -lgcc"
a848cd7e
SC
15950 LDFLAGS="$LDFLAGS -Zsysv-signals"
15951 else
15952 LIBS="$LIBS -lstdc++"
15953 fi
15954 fi
94acd38e
DE
15955 if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then
15956 { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5
15957echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;}
15958 wxUSE_OMF=yes
2da0c077 15959 enable_omf=yes
a848cd7e
SC
15960 fi
15961 ;;
15962 *)
15963
95986553 15964 echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
a848cd7e
SC
15965echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6
15966if test "${ac_cv_string_strcasecmp+set}" = set; then
15967 echo $ECHO_N "(cached) $ECHO_C" >&6
15968else
15969
15970 cat >conftest.$ac_ext <<_ACEOF
15971/* confdefs.h. */
15972_ACEOF
15973cat confdefs.h >>conftest.$ac_ext
15974cat >>conftest.$ac_ext <<_ACEOF
15975/* end confdefs.h. */
15976
15977 #include <string.h>
15978
15979int
15980main ()
15981{
15982
15983 strcasecmp("foo", "bar");
15984
15985 ;
15986 return 0;
15987}
15988_ACEOF
15989rm -f conftest.$ac_objext conftest$ac_exeext
15990if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 15991 (eval $ac_link) 2>conftest.er1
a848cd7e 15992 ac_status=$?
ac1cb8d3
VS
15993 grep -v '^ *+' conftest.er1 >conftest.err
15994 rm -f conftest.er1
15995 cat conftest.err >&5
a848cd7e
SC
15996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15997 (exit $ac_status); } &&
3ea50042 15998 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16000 (eval $ac_try) 2>&5
16001 ac_status=$?
16002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16003 (exit $ac_status); }; } &&
16004 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
16005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16006 (eval $ac_try) 2>&5
16007 ac_status=$?
16008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16009 (exit $ac_status); }; }; then
16010 ac_cv_string_strcasecmp=yes
16011else
16012 echo "$as_me: failed program was:" >&5
16013sed 's/^/| /' conftest.$ac_ext >&5
16014
16015ac_cv_string_strcasecmp=no
16016
16017fi
ac1cb8d3
VS
16018rm -f conftest.err conftest.$ac_objext \
16019 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
16020
16021fi
16022echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
16023echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6
16024
16025 if test x"$ac_cv_string_strcasecmp" = "xyes"; then
16026 cat >>confdefs.h <<\_ACEOF
16027#define HAVE_STRCASECMP_IN_STRING_H 1
16028_ACEOF
16029
16030 else
16031 echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
16032echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6
16033if test "${ac_cv_strings_strcasecmp+set}" = set; then
16034 echo $ECHO_N "(cached) $ECHO_C" >&6
16035else
16036
16037 cat >conftest.$ac_ext <<_ACEOF
16038/* confdefs.h. */
16039_ACEOF
16040cat confdefs.h >>conftest.$ac_ext
16041cat >>conftest.$ac_ext <<_ACEOF
16042/* end confdefs.h. */
16043
16044 #include <strings.h>
16045
16046int
16047main ()
16048{
16049
16050 strcasecmp("foo", "bar");
16051
16052 ;
16053 return 0;
16054}
16055_ACEOF
16056rm -f conftest.$ac_objext conftest$ac_exeext
16057if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 16058 (eval $ac_link) 2>conftest.er1
a848cd7e 16059 ac_status=$?
ac1cb8d3
VS
16060 grep -v '^ *+' conftest.er1 >conftest.err
16061 rm -f conftest.er1
16062 cat conftest.err >&5
a848cd7e
SC
16063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16064 (exit $ac_status); } &&
3ea50042 16065 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16067 (eval $ac_try) 2>&5
16068 ac_status=$?
16069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16070 (exit $ac_status); }; } &&
16071 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
16072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16073 (eval $ac_try) 2>&5
16074 ac_status=$?
16075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16076 (exit $ac_status); }; }; then
16077 ac_cv_strings_strcasecmp=yes
16078else
16079 echo "$as_me: failed program was:" >&5
16080sed 's/^/| /' conftest.$ac_ext >&5
16081
16082ac_cv_strings_strcasecmp=no
16083
16084fi
ac1cb8d3
VS
16085rm -f conftest.err conftest.$ac_objext \
16086 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
16087
16088fi
16089echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
16090echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6
16091
0c3c69fc 16092 if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
a848cd7e
SC
16093 cat >>confdefs.h <<\_ACEOF
16094#define HAVE_STRCASECMP_IN_STRINGS_H 1
16095_ACEOF
16096
16097 else
16098 { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
16099echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
16100 { (exit 1); exit 1; }; }
16101 fi
16102 fi
16103
a848cd7e
SC
16104 ;;
16105esac
16106
16107
5d7b7554
VZ
16108ac_ext=cc
16109ac_cpp='$CXXCPP $CPPFLAGS'
16110ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16111ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16112ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16113echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
16114echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
16115if test -z "$CXXCPP"; then
16116 if test "${ac_cv_prog_CXXCPP+set}" = set; then
16117 echo $ECHO_N "(cached) $ECHO_C" >&6
16118else
16119 # Double quotes because CXXCPP needs to be expanded
16120 for CXXCPP in "$CXX -E" "/lib/cpp"
16121 do
16122 ac_preproc_ok=false
16123for ac_cxx_preproc_warn_flag in '' yes
16124do
16125 # Use a header file that comes with gcc, so configuring glibc
16126 # with a fresh cross-compiler works.
16127 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16128 # <limits.h> exists even on freestanding compilers.
16129 # On the NeXT, cc -E runs the code through the compiler's parser,
16130 # not just through cpp. "Syntax error" is here to catch this case.
16131 cat >conftest.$ac_ext <<_ACEOF
16132/* confdefs.h. */
16133_ACEOF
16134cat confdefs.h >>conftest.$ac_ext
16135cat >>conftest.$ac_ext <<_ACEOF
16136/* end confdefs.h. */
16137#ifdef __STDC__
16138# include <limits.h>
16139#else
16140# include <assert.h>
16141#endif
16142 Syntax error
16143_ACEOF
16144if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16145 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16146 ac_status=$?
16147 grep -v '^ *+' conftest.er1 >conftest.err
16148 rm -f conftest.er1
16149 cat conftest.err >&5
16150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16151 (exit $ac_status); } >/dev/null; then
16152 if test -s conftest.err; then
16153 ac_cpp_err=$ac_cxx_preproc_warn_flag
16154 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
16155 else
16156 ac_cpp_err=
16157 fi
16158else
16159 ac_cpp_err=yes
16160fi
16161if test -z "$ac_cpp_err"; then
16162 :
16163else
16164 echo "$as_me: failed program was:" >&5
16165sed 's/^/| /' conftest.$ac_ext >&5
16166
16167 # Broken: fails on valid input.
16168continue
16169fi
16170rm -f conftest.err conftest.$ac_ext
16171
16172 # OK, works on sane cases. Now check whether non-existent headers
16173 # can be detected and how.
16174 cat >conftest.$ac_ext <<_ACEOF
16175/* confdefs.h. */
16176_ACEOF
16177cat confdefs.h >>conftest.$ac_ext
16178cat >>conftest.$ac_ext <<_ACEOF
16179/* end confdefs.h. */
16180#include <ac_nonexistent.h>
16181_ACEOF
16182if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16183 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16184 ac_status=$?
16185 grep -v '^ *+' conftest.er1 >conftest.err
16186 rm -f conftest.er1
16187 cat conftest.err >&5
16188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16189 (exit $ac_status); } >/dev/null; then
16190 if test -s conftest.err; then
16191 ac_cpp_err=$ac_cxx_preproc_warn_flag
16192 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
16193 else
16194 ac_cpp_err=
16195 fi
16196else
16197 ac_cpp_err=yes
16198fi
16199if test -z "$ac_cpp_err"; then
16200 # Broken: success on invalid input.
16201continue
16202else
16203 echo "$as_me: failed program was:" >&5
16204sed 's/^/| /' conftest.$ac_ext >&5
16205
16206 # Passes both tests.
16207ac_preproc_ok=:
16208break
16209fi
16210rm -f conftest.err conftest.$ac_ext
16211
16212done
16213# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16214rm -f conftest.err conftest.$ac_ext
16215if $ac_preproc_ok; then
16216 break
16217fi
16218
16219 done
16220 ac_cv_prog_CXXCPP=$CXXCPP
16221
16222fi
16223 CXXCPP=$ac_cv_prog_CXXCPP
16224else
16225 ac_cv_prog_CXXCPP=$CXXCPP
16226fi
16227echo "$as_me:$LINENO: result: $CXXCPP" >&5
16228echo "${ECHO_T}$CXXCPP" >&6
16229ac_preproc_ok=false
16230for ac_cxx_preproc_warn_flag in '' yes
16231do
16232 # Use a header file that comes with gcc, so configuring glibc
16233 # with a fresh cross-compiler works.
16234 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16235 # <limits.h> exists even on freestanding compilers.
16236 # On the NeXT, cc -E runs the code through the compiler's parser,
16237 # not just through cpp. "Syntax error" is here to catch this case.
16238 cat >conftest.$ac_ext <<_ACEOF
16239/* confdefs.h. */
16240_ACEOF
16241cat confdefs.h >>conftest.$ac_ext
16242cat >>conftest.$ac_ext <<_ACEOF
16243/* end confdefs.h. */
16244#ifdef __STDC__
16245# include <limits.h>
16246#else
16247# include <assert.h>
16248#endif
16249 Syntax error
16250_ACEOF
16251if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16252 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16253 ac_status=$?
16254 grep -v '^ *+' conftest.er1 >conftest.err
16255 rm -f conftest.er1
16256 cat conftest.err >&5
16257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16258 (exit $ac_status); } >/dev/null; then
16259 if test -s conftest.err; then
16260 ac_cpp_err=$ac_cxx_preproc_warn_flag
16261 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
16262 else
16263 ac_cpp_err=
16264 fi
16265else
16266 ac_cpp_err=yes
16267fi
16268if test -z "$ac_cpp_err"; then
16269 :
16270else
16271 echo "$as_me: failed program was:" >&5
16272sed 's/^/| /' conftest.$ac_ext >&5
16273
16274 # Broken: fails on valid input.
16275continue
16276fi
16277rm -f conftest.err conftest.$ac_ext
16278
16279 # OK, works on sane cases. Now check whether non-existent headers
16280 # can be detected and how.
16281 cat >conftest.$ac_ext <<_ACEOF
16282/* confdefs.h. */
16283_ACEOF
16284cat confdefs.h >>conftest.$ac_ext
16285cat >>conftest.$ac_ext <<_ACEOF
16286/* end confdefs.h. */
16287#include <ac_nonexistent.h>
16288_ACEOF
16289if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16290 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16291 ac_status=$?
16292 grep -v '^ *+' conftest.er1 >conftest.err
16293 rm -f conftest.er1
16294 cat conftest.err >&5
16295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16296 (exit $ac_status); } >/dev/null; then
16297 if test -s conftest.err; then
16298 ac_cpp_err=$ac_cxx_preproc_warn_flag
16299 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
16300 else
16301 ac_cpp_err=
16302 fi
16303else
16304 ac_cpp_err=yes
16305fi
16306if test -z "$ac_cpp_err"; then
16307 # Broken: success on invalid input.
16308continue
16309else
16310 echo "$as_me: failed program was:" >&5
16311sed 's/^/| /' conftest.$ac_ext >&5
16312
16313 # Passes both tests.
16314ac_preproc_ok=:
16315break
16316fi
16317rm -f conftest.err conftest.$ac_ext
16318
16319done
16320# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16321rm -f conftest.err conftest.$ac_ext
16322if $ac_preproc_ok; then
16323 :
16324else
16325 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
16326See \`config.log' for more details." >&5
16327echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
16328See \`config.log' for more details." >&2;}
16329 { (exit 1); exit 1; }; }
16330fi
16331
16332ac_ext=cc
16333ac_cpp='$CXXCPP $CPPFLAGS'
16334ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16335ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16336ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16337
16338
a848cd7e
SC
16339echo "$as_me:$LINENO: checking for ANSI C header files" >&5
16340echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
16341if test "${ac_cv_header_stdc+set}" = set; then
16342 echo $ECHO_N "(cached) $ECHO_C" >&6
16343else
16344 cat >conftest.$ac_ext <<_ACEOF
16345/* confdefs.h. */
16346_ACEOF
16347cat confdefs.h >>conftest.$ac_ext
16348cat >>conftest.$ac_ext <<_ACEOF
16349/* end confdefs.h. */
16350#include <stdlib.h>
16351#include <stdarg.h>
16352#include <string.h>
16353#include <float.h>
16354
16355int
16356main ()
16357{
16358
16359 ;
16360 return 0;
16361}
16362_ACEOF
16363rm -f conftest.$ac_objext
16364if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16365 (eval $ac_compile) 2>conftest.er1
a848cd7e 16366 ac_status=$?
ac1cb8d3
VS
16367 grep -v '^ *+' conftest.er1 >conftest.err
16368 rm -f conftest.er1
16369 cat conftest.err >&5
a848cd7e
SC
16370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16371 (exit $ac_status); } &&
3ea50042 16372 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16374 (eval $ac_try) 2>&5
16375 ac_status=$?
16376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16377 (exit $ac_status); }; } &&
16378 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16380 (eval $ac_try) 2>&5
16381 ac_status=$?
16382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16383 (exit $ac_status); }; }; then
16384 ac_cv_header_stdc=yes
16385else
16386 echo "$as_me: failed program was:" >&5
16387sed 's/^/| /' conftest.$ac_ext >&5
16388
16389ac_cv_header_stdc=no
16390fi
ac1cb8d3 16391rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16392
16393if test $ac_cv_header_stdc = yes; then
16394 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16395 cat >conftest.$ac_ext <<_ACEOF
16396/* confdefs.h. */
16397_ACEOF
16398cat confdefs.h >>conftest.$ac_ext
16399cat >>conftest.$ac_ext <<_ACEOF
16400/* end confdefs.h. */
16401#include <string.h>
16402
16403_ACEOF
16404if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16405 $EGREP "memchr" >/dev/null 2>&1; then
16406 :
16407else
16408 ac_cv_header_stdc=no
16409fi
16410rm -f conftest*
16411
16412fi
16413
16414if test $ac_cv_header_stdc = yes; then
16415 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16416 cat >conftest.$ac_ext <<_ACEOF
16417/* confdefs.h. */
16418_ACEOF
16419cat confdefs.h >>conftest.$ac_ext
16420cat >>conftest.$ac_ext <<_ACEOF
16421/* end confdefs.h. */
16422#include <stdlib.h>
16423
16424_ACEOF
16425if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16426 $EGREP "free" >/dev/null 2>&1; then
16427 :
16428else
16429 ac_cv_header_stdc=no
16430fi
16431rm -f conftest*
16432
16433fi
16434
16435if test $ac_cv_header_stdc = yes; then
16436 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16437 if test "$cross_compiling" = yes; then
16438 :
16439else
16440 cat >conftest.$ac_ext <<_ACEOF
16441/* confdefs.h. */
16442_ACEOF
16443cat confdefs.h >>conftest.$ac_ext
16444cat >>conftest.$ac_ext <<_ACEOF
16445/* end confdefs.h. */
16446#include <ctype.h>
16447#if ((' ' & 0x0FF) == 0x020)
16448# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16449# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16450#else
16451# define ISLOWER(c) \
ac1cb8d3
VS
16452 (('a' <= (c) && (c) <= 'i') \
16453 || ('j' <= (c) && (c) <= 'r') \
16454 || ('s' <= (c) && (c) <= 'z'))
a848cd7e
SC
16455# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
16456#endif
16457
16458#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16459int
16460main ()
16461{
16462 int i;
16463 for (i = 0; i < 256; i++)
16464 if (XOR (islower (i), ISLOWER (i))
ac1cb8d3 16465 || toupper (i) != TOUPPER (i))
a848cd7e
SC
16466 exit(2);
16467 exit (0);
16468}
16469_ACEOF
16470rm -f conftest$ac_exeext
16471if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16472 (eval $ac_link) 2>&5
16473 ac_status=$?
16474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16475 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16477 (eval $ac_try) 2>&5
16478 ac_status=$?
16479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16480 (exit $ac_status); }; }; then
16481 :
16482else
16483 echo "$as_me: program exited with status $ac_status" >&5
16484echo "$as_me: failed program was:" >&5
16485sed 's/^/| /' conftest.$ac_ext >&5
16486
16487( exit $ac_status )
16488ac_cv_header_stdc=no
16489fi
ac1cb8d3 16490rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16491fi
16492fi
16493fi
16494echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
16495echo "${ECHO_T}$ac_cv_header_stdc" >&6
16496if test $ac_cv_header_stdc = yes; then
16497
16498cat >>confdefs.h <<\_ACEOF
16499#define STDC_HEADERS 1
16500_ACEOF
16501
16502fi
16503
16504# On IRIX 5.3, sys/types and inttypes.h are conflicting.
16505
16506
16507
16508
16509
16510
16511
16512
16513
16514for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
ac1cb8d3 16515 inttypes.h stdint.h unistd.h
a848cd7e
SC
16516do
16517as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16518echo "$as_me:$LINENO: checking for $ac_header" >&5
16519echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16520if eval "test \"\${$as_ac_Header+set}\" = set"; then
16521 echo $ECHO_N "(cached) $ECHO_C" >&6
16522else
16523 cat >conftest.$ac_ext <<_ACEOF
16524/* confdefs.h. */
16525_ACEOF
16526cat confdefs.h >>conftest.$ac_ext
16527cat >>conftest.$ac_ext <<_ACEOF
16528/* end confdefs.h. */
16529$ac_includes_default
16530
16531#include <$ac_header>
16532_ACEOF
16533rm -f conftest.$ac_objext
16534if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16535 (eval $ac_compile) 2>conftest.er1
a848cd7e 16536 ac_status=$?
ac1cb8d3
VS
16537 grep -v '^ *+' conftest.er1 >conftest.err
16538 rm -f conftest.er1
16539 cat conftest.err >&5
a848cd7e
SC
16540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16541 (exit $ac_status); } &&
3ea50042 16542 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16544 (eval $ac_try) 2>&5
16545 ac_status=$?
16546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16547 (exit $ac_status); }; } &&
16548 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16550 (eval $ac_try) 2>&5
16551 ac_status=$?
16552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16553 (exit $ac_status); }; }; then
16554 eval "$as_ac_Header=yes"
16555else
16556 echo "$as_me: failed program was:" >&5
16557sed 's/^/| /' conftest.$ac_ext >&5
16558
16559eval "$as_ac_Header=no"
16560fi
ac1cb8d3 16561rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16562fi
16563echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16564echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16565if test `eval echo '${'$as_ac_Header'}'` = yes; then
16566 cat >>confdefs.h <<_ACEOF
16567#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16568_ACEOF
16569
16570fi
16571
16572done
16573
16574
16575
16576for ac_header in stdlib.h
16577do
16578as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16579if eval "test \"\${$as_ac_Header+set}\" = set"; then
16580 echo "$as_me:$LINENO: checking for $ac_header" >&5
16581echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16582if eval "test \"\${$as_ac_Header+set}\" = set"; then
16583 echo $ECHO_N "(cached) $ECHO_C" >&6
16584fi
16585echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16586echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16587else
16588 # Is the header compilable?
16589echo "$as_me:$LINENO: checking $ac_header usability" >&5
16590echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16591cat >conftest.$ac_ext <<_ACEOF
16592/* confdefs.h. */
16593_ACEOF
16594cat confdefs.h >>conftest.$ac_ext
16595cat >>conftest.$ac_ext <<_ACEOF
16596/* end confdefs.h. */
16597$ac_includes_default
16598#include <$ac_header>
16599_ACEOF
16600rm -f conftest.$ac_objext
16601if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16602 (eval $ac_compile) 2>conftest.er1
a848cd7e 16603 ac_status=$?
ac1cb8d3
VS
16604 grep -v '^ *+' conftest.er1 >conftest.err
16605 rm -f conftest.er1
16606 cat conftest.err >&5
a848cd7e
SC
16607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16608 (exit $ac_status); } &&
3ea50042 16609 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16611 (eval $ac_try) 2>&5
16612 ac_status=$?
16613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16614 (exit $ac_status); }; } &&
16615 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16617 (eval $ac_try) 2>&5
16618 ac_status=$?
16619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16620 (exit $ac_status); }; }; then
16621 ac_header_compiler=yes
16622else
16623 echo "$as_me: failed program was:" >&5
16624sed 's/^/| /' conftest.$ac_ext >&5
16625
16626ac_header_compiler=no
16627fi
ac1cb8d3 16628rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16629echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16630echo "${ECHO_T}$ac_header_compiler" >&6
16631
16632# Is the header present?
16633echo "$as_me:$LINENO: checking $ac_header presence" >&5
16634echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16635cat >conftest.$ac_ext <<_ACEOF
16636/* confdefs.h. */
16637_ACEOF
16638cat confdefs.h >>conftest.$ac_ext
16639cat >>conftest.$ac_ext <<_ACEOF
16640/* end confdefs.h. */
16641#include <$ac_header>
16642_ACEOF
16643if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16644 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16645 ac_status=$?
16646 grep -v '^ *+' conftest.er1 >conftest.err
16647 rm -f conftest.er1
16648 cat conftest.err >&5
16649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16650 (exit $ac_status); } >/dev/null; then
16651 if test -s conftest.err; then
5d7b7554
VZ
16652 ac_cpp_err=$ac_cxx_preproc_warn_flag
16653 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
16654 else
16655 ac_cpp_err=
16656 fi
16657else
16658 ac_cpp_err=yes
16659fi
16660if test -z "$ac_cpp_err"; then
16661 ac_header_preproc=yes
16662else
16663 echo "$as_me: failed program was:" >&5
16664sed 's/^/| /' conftest.$ac_ext >&5
16665
16666 ac_header_preproc=no
16667fi
16668rm -f conftest.err conftest.$ac_ext
16669echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16670echo "${ECHO_T}$ac_header_preproc" >&6
16671
16672# So? What about this header?
5d7b7554 16673case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 16674 yes:no: )
a848cd7e
SC
16675 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16676echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16677 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16678echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16679 ac_header_preproc=yes
a848cd7e 16680 ;;
ac1cb8d3 16681 no:yes:* )
a848cd7e
SC
16682 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16683echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16684 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16685echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16686 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16687echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16688 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16689echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16690 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16691echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16692 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16693echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16694 (
16695 cat <<\_ASBOX
ac1cb8d3
VS
16696## ----------------------------------------- ##
16697## Report this to wx-dev@lists.wxwidgets.org ##
16698## ----------------------------------------- ##
a848cd7e
SC
16699_ASBOX
16700 ) |
16701 sed "s/^/$as_me: WARNING: /" >&2
16702 ;;
16703esac
16704echo "$as_me:$LINENO: checking for $ac_header" >&5
16705echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16706if eval "test \"\${$as_ac_Header+set}\" = set"; then
16707 echo $ECHO_N "(cached) $ECHO_C" >&6
16708else
ac1cb8d3 16709 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16710fi
16711echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16712echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16713
16714fi
16715if test `eval echo '${'$as_ac_Header'}'` = yes; then
16716 cat >>confdefs.h <<_ACEOF
16717#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16718_ACEOF
16719
16720fi
16721
16722done
16723
16724
16725for ac_header in malloc.h
16726do
16727as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16728if eval "test \"\${$as_ac_Header+set}\" = set"; then
16729 echo "$as_me:$LINENO: checking for $ac_header" >&5
16730echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16731if eval "test \"\${$as_ac_Header+set}\" = set"; then
16732 echo $ECHO_N "(cached) $ECHO_C" >&6
16733fi
16734echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16735echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16736else
16737 # Is the header compilable?
16738echo "$as_me:$LINENO: checking $ac_header usability" >&5
16739echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16740cat >conftest.$ac_ext <<_ACEOF
16741/* confdefs.h. */
16742_ACEOF
16743cat confdefs.h >>conftest.$ac_ext
16744cat >>conftest.$ac_ext <<_ACEOF
16745/* end confdefs.h. */
16746$ac_includes_default
16747#include <$ac_header>
16748_ACEOF
16749rm -f conftest.$ac_objext
16750if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16751 (eval $ac_compile) 2>conftest.er1
a848cd7e 16752 ac_status=$?
ac1cb8d3
VS
16753 grep -v '^ *+' conftest.er1 >conftest.err
16754 rm -f conftest.er1
16755 cat conftest.err >&5
a848cd7e
SC
16756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16757 (exit $ac_status); } &&
3ea50042 16758 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16760 (eval $ac_try) 2>&5
16761 ac_status=$?
16762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16763 (exit $ac_status); }; } &&
16764 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16766 (eval $ac_try) 2>&5
16767 ac_status=$?
16768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16769 (exit $ac_status); }; }; then
16770 ac_header_compiler=yes
16771else
16772 echo "$as_me: failed program was:" >&5
16773sed 's/^/| /' conftest.$ac_ext >&5
16774
16775ac_header_compiler=no
16776fi
ac1cb8d3 16777rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16778echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16779echo "${ECHO_T}$ac_header_compiler" >&6
16780
16781# Is the header present?
16782echo "$as_me:$LINENO: checking $ac_header presence" >&5
16783echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16784cat >conftest.$ac_ext <<_ACEOF
16785/* confdefs.h. */
16786_ACEOF
16787cat confdefs.h >>conftest.$ac_ext
16788cat >>conftest.$ac_ext <<_ACEOF
16789/* end confdefs.h. */
16790#include <$ac_header>
16791_ACEOF
16792if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16793 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16794 ac_status=$?
16795 grep -v '^ *+' conftest.er1 >conftest.err
16796 rm -f conftest.er1
16797 cat conftest.err >&5
16798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16799 (exit $ac_status); } >/dev/null; then
16800 if test -s conftest.err; then
5d7b7554
VZ
16801 ac_cpp_err=$ac_cxx_preproc_warn_flag
16802 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
16803 else
16804 ac_cpp_err=
16805 fi
16806else
16807 ac_cpp_err=yes
16808fi
16809if test -z "$ac_cpp_err"; then
16810 ac_header_preproc=yes
16811else
16812 echo "$as_me: failed program was:" >&5
16813sed 's/^/| /' conftest.$ac_ext >&5
16814
16815 ac_header_preproc=no
16816fi
16817rm -f conftest.err conftest.$ac_ext
16818echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16819echo "${ECHO_T}$ac_header_preproc" >&6
16820
16821# So? What about this header?
5d7b7554 16822case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 16823 yes:no: )
a848cd7e
SC
16824 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16825echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16826 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16827echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16828 ac_header_preproc=yes
a848cd7e 16829 ;;
ac1cb8d3 16830 no:yes:* )
a848cd7e
SC
16831 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16832echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16833 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16834echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16835 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16836echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16837 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16838echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16839 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16840echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16841 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16842echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16843 (
16844 cat <<\_ASBOX
ac1cb8d3
VS
16845## ----------------------------------------- ##
16846## Report this to wx-dev@lists.wxwidgets.org ##
16847## ----------------------------------------- ##
a848cd7e
SC
16848_ASBOX
16849 ) |
16850 sed "s/^/$as_me: WARNING: /" >&2
16851 ;;
16852esac
16853echo "$as_me:$LINENO: checking for $ac_header" >&5
16854echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16855if eval "test \"\${$as_ac_Header+set}\" = set"; then
16856 echo $ECHO_N "(cached) $ECHO_C" >&6
16857else
ac1cb8d3 16858 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16859fi
16860echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16861echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16862
16863fi
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
16874for ac_header in unistd.h
16875do
16876as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16877if eval "test \"\${$as_ac_Header+set}\" = set"; then
16878 echo "$as_me:$LINENO: checking for $ac_header" >&5
16879echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16880if eval "test \"\${$as_ac_Header+set}\" = set"; then
16881 echo $ECHO_N "(cached) $ECHO_C" >&6
16882fi
16883echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16884echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16885else
16886 # Is the header compilable?
16887echo "$as_me:$LINENO: checking $ac_header usability" >&5
16888echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16889cat >conftest.$ac_ext <<_ACEOF
16890/* confdefs.h. */
16891_ACEOF
16892cat confdefs.h >>conftest.$ac_ext
16893cat >>conftest.$ac_ext <<_ACEOF
16894/* end confdefs.h. */
16895$ac_includes_default
16896#include <$ac_header>
16897_ACEOF
16898rm -f conftest.$ac_objext
16899if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16900 (eval $ac_compile) 2>conftest.er1
a848cd7e 16901 ac_status=$?
ac1cb8d3
VS
16902 grep -v '^ *+' conftest.er1 >conftest.err
16903 rm -f conftest.er1
16904 cat conftest.err >&5
a848cd7e
SC
16905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16906 (exit $ac_status); } &&
3ea50042 16907 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16909 (eval $ac_try) 2>&5
16910 ac_status=$?
16911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16912 (exit $ac_status); }; } &&
16913 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16915 (eval $ac_try) 2>&5
16916 ac_status=$?
16917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16918 (exit $ac_status); }; }; then
16919 ac_header_compiler=yes
16920else
16921 echo "$as_me: failed program was:" >&5
16922sed 's/^/| /' conftest.$ac_ext >&5
16923
16924ac_header_compiler=no
16925fi
ac1cb8d3 16926rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16927echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16928echo "${ECHO_T}$ac_header_compiler" >&6
16929
16930# Is the header present?
16931echo "$as_me:$LINENO: checking $ac_header presence" >&5
16932echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16933cat >conftest.$ac_ext <<_ACEOF
16934/* confdefs.h. */
16935_ACEOF
16936cat confdefs.h >>conftest.$ac_ext
16937cat >>conftest.$ac_ext <<_ACEOF
16938/* end confdefs.h. */
16939#include <$ac_header>
16940_ACEOF
16941if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16942 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16943 ac_status=$?
16944 grep -v '^ *+' conftest.er1 >conftest.err
16945 rm -f conftest.er1
16946 cat conftest.err >&5
16947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16948 (exit $ac_status); } >/dev/null; then
16949 if test -s conftest.err; then
5d7b7554
VZ
16950 ac_cpp_err=$ac_cxx_preproc_warn_flag
16951 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
16952 else
16953 ac_cpp_err=
16954 fi
16955else
16956 ac_cpp_err=yes
16957fi
16958if test -z "$ac_cpp_err"; then
16959 ac_header_preproc=yes
16960else
16961 echo "$as_me: failed program was:" >&5
16962sed 's/^/| /' conftest.$ac_ext >&5
16963
16964 ac_header_preproc=no
16965fi
16966rm -f conftest.err conftest.$ac_ext
16967echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16968echo "${ECHO_T}$ac_header_preproc" >&6
16969
16970# So? What about this header?
5d7b7554 16971case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 16972 yes:no: )
a848cd7e
SC
16973 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16974echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16975 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16976echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16977 ac_header_preproc=yes
a848cd7e 16978 ;;
ac1cb8d3 16979 no:yes:* )
a848cd7e
SC
16980 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16981echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16982 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16983echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16984 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16985echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16986 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16987echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16988 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16989echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16990 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16991echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16992 (
16993 cat <<\_ASBOX
ac1cb8d3
VS
16994## ----------------------------------------- ##
16995## Report this to wx-dev@lists.wxwidgets.org ##
16996## ----------------------------------------- ##
a848cd7e
SC
16997_ASBOX
16998 ) |
16999 sed "s/^/$as_me: WARNING: /" >&2
17000 ;;
17001esac
17002echo "$as_me:$LINENO: checking for $ac_header" >&5
17003echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17004if eval "test \"\${$as_ac_Header+set}\" = set"; then
17005 echo $ECHO_N "(cached) $ECHO_C" >&6
17006else
ac1cb8d3 17007 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
17008fi
17009echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17010echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17011
17012fi
17013if test `eval echo '${'$as_ac_Header'}'` = yes; then
17014 cat >>confdefs.h <<_ACEOF
17015#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17016_ACEOF
17017
17018fi
17019
17020done
17021
17022
17023for ac_header in wchar.h
17024do
17025as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17026if eval "test \"\${$as_ac_Header+set}\" = set"; then
17027 echo "$as_me:$LINENO: checking for $ac_header" >&5
17028echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17029if eval "test \"\${$as_ac_Header+set}\" = set"; then
17030 echo $ECHO_N "(cached) $ECHO_C" >&6
17031fi
17032echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17033echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17034else
17035 # Is the header compilable?
17036echo "$as_me:$LINENO: checking $ac_header usability" >&5
17037echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17038cat >conftest.$ac_ext <<_ACEOF
17039/* confdefs.h. */
17040_ACEOF
17041cat confdefs.h >>conftest.$ac_ext
17042cat >>conftest.$ac_ext <<_ACEOF
17043/* end confdefs.h. */
17044$ac_includes_default
17045#include <$ac_header>
17046_ACEOF
17047rm -f conftest.$ac_objext
17048if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17049 (eval $ac_compile) 2>conftest.er1
a848cd7e 17050 ac_status=$?
ac1cb8d3
VS
17051 grep -v '^ *+' conftest.er1 >conftest.err
17052 rm -f conftest.er1
17053 cat conftest.err >&5
a848cd7e
SC
17054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17055 (exit $ac_status); } &&
3ea50042 17056 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17058 (eval $ac_try) 2>&5
17059 ac_status=$?
17060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17061 (exit $ac_status); }; } &&
17062 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17064 (eval $ac_try) 2>&5
17065 ac_status=$?
17066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17067 (exit $ac_status); }; }; then
17068 ac_header_compiler=yes
17069else
17070 echo "$as_me: failed program was:" >&5
17071sed 's/^/| /' conftest.$ac_ext >&5
17072
17073ac_header_compiler=no
17074fi
ac1cb8d3 17075rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17076echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17077echo "${ECHO_T}$ac_header_compiler" >&6
17078
17079# Is the header present?
17080echo "$as_me:$LINENO: checking $ac_header presence" >&5
17081echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17082cat >conftest.$ac_ext <<_ACEOF
17083/* confdefs.h. */
17084_ACEOF
17085cat confdefs.h >>conftest.$ac_ext
17086cat >>conftest.$ac_ext <<_ACEOF
17087/* end confdefs.h. */
17088#include <$ac_header>
17089_ACEOF
17090if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17091 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17092 ac_status=$?
17093 grep -v '^ *+' conftest.er1 >conftest.err
17094 rm -f conftest.er1
17095 cat conftest.err >&5
17096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17097 (exit $ac_status); } >/dev/null; then
17098 if test -s conftest.err; then
5d7b7554
VZ
17099 ac_cpp_err=$ac_cxx_preproc_warn_flag
17100 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
17101 else
17102 ac_cpp_err=
17103 fi
17104else
17105 ac_cpp_err=yes
17106fi
17107if test -z "$ac_cpp_err"; then
17108 ac_header_preproc=yes
17109else
17110 echo "$as_me: failed program was:" >&5
17111sed 's/^/| /' conftest.$ac_ext >&5
17112
17113 ac_header_preproc=no
17114fi
17115rm -f conftest.err conftest.$ac_ext
17116echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17117echo "${ECHO_T}$ac_header_preproc" >&6
17118
17119# So? What about this header?
5d7b7554 17120case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 17121 yes:no: )
a848cd7e
SC
17122 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17123echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
17124 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17125echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17126 ac_header_preproc=yes
a848cd7e 17127 ;;
ac1cb8d3 17128 no:yes:* )
a848cd7e
SC
17129 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17130echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
17131 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17132echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17133 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17134echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17135 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17136echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
17137 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17138echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
17139 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17140echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
17141 (
17142 cat <<\_ASBOX
ac1cb8d3
VS
17143## ----------------------------------------- ##
17144## Report this to wx-dev@lists.wxwidgets.org ##
17145## ----------------------------------------- ##
a848cd7e
SC
17146_ASBOX
17147 ) |
17148 sed "s/^/$as_me: WARNING: /" >&2
17149 ;;
17150esac
17151echo "$as_me:$LINENO: checking for $ac_header" >&5
17152echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17153if eval "test \"\${$as_ac_Header+set}\" = set"; then
17154 echo $ECHO_N "(cached) $ECHO_C" >&6
17155else
ac1cb8d3 17156 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
17157fi
17158echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17159echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17160
17161fi
17162if test `eval echo '${'$as_ac_Header'}'` = yes; then
17163 cat >>confdefs.h <<_ACEOF
17164#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17165_ACEOF
17166
17167fi
17168
17169done
17170
17171
17172if test "$ac_cv_header_wchar_h" != "yes"; then
17173
17174for ac_header in wcstr.h
17175do
17176as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17177if eval "test \"\${$as_ac_Header+set}\" = set"; then
17178 echo "$as_me:$LINENO: checking for $ac_header" >&5
17179echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17180if eval "test \"\${$as_ac_Header+set}\" = set"; then
17181 echo $ECHO_N "(cached) $ECHO_C" >&6
17182fi
17183echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17184echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17185else
17186 # Is the header compilable?
17187echo "$as_me:$LINENO: checking $ac_header usability" >&5
17188echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17189cat >conftest.$ac_ext <<_ACEOF
17190/* confdefs.h. */
17191_ACEOF
17192cat confdefs.h >>conftest.$ac_ext
17193cat >>conftest.$ac_ext <<_ACEOF
17194/* end confdefs.h. */
17195$ac_includes_default
17196#include <$ac_header>
17197_ACEOF
17198rm -f conftest.$ac_objext
17199if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17200 (eval $ac_compile) 2>conftest.er1
a848cd7e 17201 ac_status=$?
ac1cb8d3
VS
17202 grep -v '^ *+' conftest.er1 >conftest.err
17203 rm -f conftest.er1
17204 cat conftest.err >&5
a848cd7e
SC
17205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17206 (exit $ac_status); } &&
3ea50042 17207 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17209 (eval $ac_try) 2>&5
17210 ac_status=$?
17211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17212 (exit $ac_status); }; } &&
17213 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17215 (eval $ac_try) 2>&5
17216 ac_status=$?
17217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17218 (exit $ac_status); }; }; then
17219 ac_header_compiler=yes
17220else
17221 echo "$as_me: failed program was:" >&5
17222sed 's/^/| /' conftest.$ac_ext >&5
17223
17224ac_header_compiler=no
17225fi
ac1cb8d3 17226rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17227echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17228echo "${ECHO_T}$ac_header_compiler" >&6
17229
17230# Is the header present?
17231echo "$as_me:$LINENO: checking $ac_header presence" >&5
17232echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17233cat >conftest.$ac_ext <<_ACEOF
17234/* confdefs.h. */
17235_ACEOF
17236cat confdefs.h >>conftest.$ac_ext
17237cat >>conftest.$ac_ext <<_ACEOF
17238/* end confdefs.h. */
17239#include <$ac_header>
17240_ACEOF
17241if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17242 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17243 ac_status=$?
17244 grep -v '^ *+' conftest.er1 >conftest.err
17245 rm -f conftest.er1
17246 cat conftest.err >&5
17247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17248 (exit $ac_status); } >/dev/null; then
17249 if test -s conftest.err; then
5d7b7554
VZ
17250 ac_cpp_err=$ac_cxx_preproc_warn_flag
17251 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
17252 else
17253 ac_cpp_err=
17254 fi
17255else
17256 ac_cpp_err=yes
17257fi
17258if test -z "$ac_cpp_err"; then
17259 ac_header_preproc=yes
17260else
17261 echo "$as_me: failed program was:" >&5
17262sed 's/^/| /' conftest.$ac_ext >&5
17263
17264 ac_header_preproc=no
17265fi
17266rm -f conftest.err conftest.$ac_ext
17267echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17268echo "${ECHO_T}$ac_header_preproc" >&6
17269
17270# So? What about this header?
5d7b7554 17271case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 17272 yes:no: )
a848cd7e
SC
17273 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17274echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
17275 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17276echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17277 ac_header_preproc=yes
a848cd7e 17278 ;;
ac1cb8d3 17279 no:yes:* )
a848cd7e
SC
17280 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17281echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
17282 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17283echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17284 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17285echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17286 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17287echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
17288 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17289echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
17290 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17291echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
17292 (
17293 cat <<\_ASBOX
ac1cb8d3
VS
17294## ----------------------------------------- ##
17295## Report this to wx-dev@lists.wxwidgets.org ##
17296## ----------------------------------------- ##
a848cd7e
SC
17297_ASBOX
17298 ) |
17299 sed "s/^/$as_me: WARNING: /" >&2
17300 ;;
17301esac
17302echo "$as_me:$LINENO: checking for $ac_header" >&5
17303echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17304if eval "test \"\${$as_ac_Header+set}\" = set"; then
17305 echo $ECHO_N "(cached) $ECHO_C" >&6
17306else
ac1cb8d3 17307 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
17308fi
17309echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17310echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17311
17312fi
17313if test `eval echo '${'$as_ac_Header'}'` = yes; then
17314 cat >>confdefs.h <<_ACEOF
17315#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17316_ACEOF
17317
17318fi
17319
17320done
17321
17322fi
17323
17324
17325for ac_header in fnmatch.h
17326do
17327as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17328if eval "test \"\${$as_ac_Header+set}\" = set"; then
17329 echo "$as_me:$LINENO: checking for $ac_header" >&5
17330echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17331if eval "test \"\${$as_ac_Header+set}\" = set"; then
17332 echo $ECHO_N "(cached) $ECHO_C" >&6
17333fi
17334echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17335echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17336else
17337 # Is the header compilable?
17338echo "$as_me:$LINENO: checking $ac_header usability" >&5
17339echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17340cat >conftest.$ac_ext <<_ACEOF
17341/* confdefs.h. */
17342_ACEOF
17343cat confdefs.h >>conftest.$ac_ext
17344cat >>conftest.$ac_ext <<_ACEOF
17345/* end confdefs.h. */
17346$ac_includes_default
17347#include <$ac_header>
17348_ACEOF
17349rm -f conftest.$ac_objext
17350if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17351 (eval $ac_compile) 2>conftest.er1
a848cd7e 17352 ac_status=$?
ac1cb8d3
VS
17353 grep -v '^ *+' conftest.er1 >conftest.err
17354 rm -f conftest.er1
17355 cat conftest.err >&5
a848cd7e
SC
17356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17357 (exit $ac_status); } &&
3ea50042 17358 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17360 (eval $ac_try) 2>&5
17361 ac_status=$?
17362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17363 (exit $ac_status); }; } &&
17364 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17366 (eval $ac_try) 2>&5
17367 ac_status=$?
17368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17369 (exit $ac_status); }; }; then
17370 ac_header_compiler=yes
17371else
17372 echo "$as_me: failed program was:" >&5
17373sed 's/^/| /' conftest.$ac_ext >&5
17374
17375ac_header_compiler=no
17376fi
ac1cb8d3 17377rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17378echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17379echo "${ECHO_T}$ac_header_compiler" >&6
17380
17381# Is the header present?
17382echo "$as_me:$LINENO: checking $ac_header presence" >&5
17383echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17384cat >conftest.$ac_ext <<_ACEOF
17385/* confdefs.h. */
17386_ACEOF
17387cat confdefs.h >>conftest.$ac_ext
17388cat >>conftest.$ac_ext <<_ACEOF
17389/* end confdefs.h. */
17390#include <$ac_header>
17391_ACEOF
17392if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17393 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17394 ac_status=$?
17395 grep -v '^ *+' conftest.er1 >conftest.err
17396 rm -f conftest.er1
17397 cat conftest.err >&5
17398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17399 (exit $ac_status); } >/dev/null; then
17400 if test -s conftest.err; then
5d7b7554
VZ
17401 ac_cpp_err=$ac_cxx_preproc_warn_flag
17402 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
17403 else
17404 ac_cpp_err=
17405 fi
17406else
17407 ac_cpp_err=yes
17408fi
17409if test -z "$ac_cpp_err"; then
17410 ac_header_preproc=yes
17411else
17412 echo "$as_me: failed program was:" >&5
17413sed 's/^/| /' conftest.$ac_ext >&5
17414
17415 ac_header_preproc=no
17416fi
17417rm -f conftest.err conftest.$ac_ext
17418echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17419echo "${ECHO_T}$ac_header_preproc" >&6
17420
17421# So? What about this header?
5d7b7554 17422case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 17423 yes:no: )
a848cd7e
SC
17424 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17425echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
17426 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17427echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17428 ac_header_preproc=yes
a848cd7e 17429 ;;
ac1cb8d3 17430 no:yes:* )
a848cd7e
SC
17431 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17432echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
17433 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17434echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17435 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17436echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17437 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17438echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
17439 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17440echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
17441 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17442echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
17443 (
17444 cat <<\_ASBOX
ac1cb8d3
VS
17445## ----------------------------------------- ##
17446## Report this to wx-dev@lists.wxwidgets.org ##
17447## ----------------------------------------- ##
a848cd7e
SC
17448_ASBOX
17449 ) |
17450 sed "s/^/$as_me: WARNING: /" >&2
17451 ;;
17452esac
17453echo "$as_me:$LINENO: checking for $ac_header" >&5
17454echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17455if eval "test \"\${$as_ac_Header+set}\" = set"; then
17456 echo $ECHO_N "(cached) $ECHO_C" >&6
17457else
ac1cb8d3 17458 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
17459fi
17460echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17461echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17462
17463fi
17464if test `eval echo '${'$as_ac_Header'}'` = yes; then
17465 cat >>confdefs.h <<_ACEOF
17466#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17467_ACEOF
17468
17469fi
17470
17471done
17472
17473
a848cd7e
SC
17474
17475for ac_header in langinfo.h
17476do
17477as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17478if eval "test \"\${$as_ac_Header+set}\" = set"; then
17479 echo "$as_me:$LINENO: checking for $ac_header" >&5
17480echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17481if eval "test \"\${$as_ac_Header+set}\" = set"; then
17482 echo $ECHO_N "(cached) $ECHO_C" >&6
17483fi
17484echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17485echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17486else
17487 # Is the header compilable?
17488echo "$as_me:$LINENO: checking $ac_header usability" >&5
17489echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17490cat >conftest.$ac_ext <<_ACEOF
17491/* confdefs.h. */
17492_ACEOF
17493cat confdefs.h >>conftest.$ac_ext
17494cat >>conftest.$ac_ext <<_ACEOF
17495/* end confdefs.h. */
17496$ac_includes_default
17497#include <$ac_header>
17498_ACEOF
17499rm -f conftest.$ac_objext
17500if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17501 (eval $ac_compile) 2>conftest.er1
a848cd7e 17502 ac_status=$?
ac1cb8d3
VS
17503 grep -v '^ *+' conftest.er1 >conftest.err
17504 rm -f conftest.er1
17505 cat conftest.err >&5
a848cd7e
SC
17506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17507 (exit $ac_status); } &&
3ea50042 17508 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17510 (eval $ac_try) 2>&5
17511 ac_status=$?
17512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17513 (exit $ac_status); }; } &&
17514 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17516 (eval $ac_try) 2>&5
17517 ac_status=$?
17518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17519 (exit $ac_status); }; }; then
17520 ac_header_compiler=yes
17521else
17522 echo "$as_me: failed program was:" >&5
17523sed 's/^/| /' conftest.$ac_ext >&5
17524
17525ac_header_compiler=no
17526fi
ac1cb8d3 17527rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17528echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17529echo "${ECHO_T}$ac_header_compiler" >&6
17530
17531# Is the header present?
17532echo "$as_me:$LINENO: checking $ac_header presence" >&5
17533echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17534cat >conftest.$ac_ext <<_ACEOF
17535/* confdefs.h. */
17536_ACEOF
17537cat confdefs.h >>conftest.$ac_ext
17538cat >>conftest.$ac_ext <<_ACEOF
17539/* end confdefs.h. */
17540#include <$ac_header>
17541_ACEOF
17542if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17543 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17544 ac_status=$?
17545 grep -v '^ *+' conftest.er1 >conftest.err
17546 rm -f conftest.er1
17547 cat conftest.err >&5
17548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17549 (exit $ac_status); } >/dev/null; then
17550 if test -s conftest.err; then
5d7b7554
VZ
17551 ac_cpp_err=$ac_cxx_preproc_warn_flag
17552 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
17553 else
17554 ac_cpp_err=
17555 fi
17556else
17557 ac_cpp_err=yes
17558fi
17559if test -z "$ac_cpp_err"; then
17560 ac_header_preproc=yes
17561else
17562 echo "$as_me: failed program was:" >&5
17563sed 's/^/| /' conftest.$ac_ext >&5
17564
17565 ac_header_preproc=no
17566fi
17567rm -f conftest.err conftest.$ac_ext
17568echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17569echo "${ECHO_T}$ac_header_preproc" >&6
17570
17571# So? What about this header?
5d7b7554 17572case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 17573 yes:no: )
a848cd7e
SC
17574 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17575echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
17576 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17577echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17578 ac_header_preproc=yes
a848cd7e 17579 ;;
ac1cb8d3 17580 no:yes:* )
a848cd7e
SC
17581 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17582echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
17583 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17584echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17585 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17586echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17587 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17588echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
17589 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17590echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
17591 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17592echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
17593 (
17594 cat <<\_ASBOX
ac1cb8d3
VS
17595## ----------------------------------------- ##
17596## Report this to wx-dev@lists.wxwidgets.org ##
17597## ----------------------------------------- ##
a848cd7e
SC
17598_ASBOX
17599 ) |
17600 sed "s/^/$as_me: WARNING: /" >&2
17601 ;;
17602esac
17603echo "$as_me:$LINENO: checking for $ac_header" >&5
17604echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17605if eval "test \"\${$as_ac_Header+set}\" = set"; then
17606 echo $ECHO_N "(cached) $ECHO_C" >&6
17607else
ac1cb8d3 17608 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
17609fi
17610echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17611echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17612
17613fi
17614if test `eval echo '${'$as_ac_Header'}'` = yes; then
17615 cat >>confdefs.h <<_ACEOF
17616#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17617_ACEOF
17618
17619fi
17620
17621done
17622
17623
17624case "${host}" in
17625 *-pc-os2_emx | *-pc-os2-emx )
391a765e
VS
17626 if test $ac_cv_header_langinfo_h = "yes" \
17627 -a \( "$wx_cv_gccversion" = "EMX2" \
17628 -o "$wx_cv_gccversion" = "EMX3" \
17629 -o "$wx_cv_gccversion" = "Innotek5" \); then
a848cd7e
SC
17630 LIBS="$LIBS -lintl"
17631 fi
17632 ;;
17633esac
17634
bc023abb
MW
17635if test "$USE_UNIX" = 1 ; then
17636
17637for ac_header in sys/select.h
17638do
17639as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17640if eval "test \"\${$as_ac_Header+set}\" = set"; then
17641 echo "$as_me:$LINENO: checking for $ac_header" >&5
17642echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17643if eval "test \"\${$as_ac_Header+set}\" = set"; then
17644 echo $ECHO_N "(cached) $ECHO_C" >&6
17645fi
17646echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17647echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17648else
17649 # Is the header compilable?
17650echo "$as_me:$LINENO: checking $ac_header usability" >&5
17651echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17652cat >conftest.$ac_ext <<_ACEOF
17653/* confdefs.h. */
17654_ACEOF
17655cat confdefs.h >>conftest.$ac_ext
17656cat >>conftest.$ac_ext <<_ACEOF
17657/* end confdefs.h. */
17658$ac_includes_default
17659#include <$ac_header>
17660_ACEOF
17661rm -f conftest.$ac_objext
17662if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17663 (eval $ac_compile) 2>conftest.er1
17664 ac_status=$?
17665 grep -v '^ *+' conftest.er1 >conftest.err
17666 rm -f conftest.er1
17667 cat conftest.err >&5
17668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17669 (exit $ac_status); } &&
3ea50042 17670 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
bc023abb
MW
17671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17672 (eval $ac_try) 2>&5
17673 ac_status=$?
17674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17675 (exit $ac_status); }; } &&
17676 { ac_try='test -s conftest.$ac_objext'
17677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17678 (eval $ac_try) 2>&5
17679 ac_status=$?
17680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17681 (exit $ac_status); }; }; then
17682 ac_header_compiler=yes
17683else
17684 echo "$as_me: failed program was:" >&5
17685sed 's/^/| /' conftest.$ac_ext >&5
17686
17687ac_header_compiler=no
17688fi
17689rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17690echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17691echo "${ECHO_T}$ac_header_compiler" >&6
17692
17693# Is the header present?
17694echo "$as_me:$LINENO: checking $ac_header presence" >&5
17695echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17696cat >conftest.$ac_ext <<_ACEOF
17697/* confdefs.h. */
17698_ACEOF
17699cat confdefs.h >>conftest.$ac_ext
17700cat >>conftest.$ac_ext <<_ACEOF
17701/* end confdefs.h. */
17702#include <$ac_header>
17703_ACEOF
17704if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17705 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17706 ac_status=$?
17707 grep -v '^ *+' conftest.er1 >conftest.err
17708 rm -f conftest.er1
17709 cat conftest.err >&5
17710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17711 (exit $ac_status); } >/dev/null; then
17712 if test -s conftest.err; then
17713 ac_cpp_err=$ac_cxx_preproc_warn_flag
17714 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
17715 else
17716 ac_cpp_err=
17717 fi
17718else
17719 ac_cpp_err=yes
17720fi
17721if test -z "$ac_cpp_err"; then
17722 ac_header_preproc=yes
17723else
17724 echo "$as_me: failed program was:" >&5
17725sed 's/^/| /' conftest.$ac_ext >&5
17726
17727 ac_header_preproc=no
17728fi
17729rm -f conftest.err conftest.$ac_ext
17730echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17731echo "${ECHO_T}$ac_header_preproc" >&6
17732
17733# So? What about this header?
17734case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
17735 yes:no: )
17736 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17737echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17738 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17739echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17740 ac_header_preproc=yes
17741 ;;
17742 no:yes:* )
17743 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17744echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17745 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17746echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17747 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17748echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17749 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17750echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17751 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17752echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17753 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17754echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17755 (
17756 cat <<\_ASBOX
17757## ----------------------------------------- ##
17758## Report this to wx-dev@lists.wxwidgets.org ##
17759## ----------------------------------------- ##
17760_ASBOX
17761 ) |
17762 sed "s/^/$as_me: WARNING: /" >&2
17763 ;;
17764esac
17765echo "$as_me:$LINENO: checking for $ac_header" >&5
17766echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17767if eval "test \"\${$as_ac_Header+set}\" = set"; then
17768 echo $ECHO_N "(cached) $ECHO_C" >&6
17769else
17770 eval "$as_ac_Header=\$ac_header_preproc"
17771fi
17772echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17773echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17774
17775fi
17776if test `eval echo '${'$as_ac_Header'}'` = yes; then
17777 cat >>confdefs.h <<_ACEOF
17778#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17779_ACEOF
17780
17781fi
17782
17783done
17784
17785fi
17786
a848cd7e
SC
17787
17788echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
17789echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
17790if test "${ac_cv_c_const+set}" = set; then
17791 echo $ECHO_N "(cached) $ECHO_C" >&6
17792else
17793 cat >conftest.$ac_ext <<_ACEOF
17794/* confdefs.h. */
17795_ACEOF
17796cat confdefs.h >>conftest.$ac_ext
17797cat >>conftest.$ac_ext <<_ACEOF
17798/* end confdefs.h. */
17799
17800int
17801main ()
17802{
17803/* FIXME: Include the comments suggested by Paul. */
17804#ifndef __cplusplus
17805 /* Ultrix mips cc rejects this. */
17806 typedef int charset[2];
17807 const charset x;
17808 /* SunOS 4.1.1 cc rejects this. */
17809 char const *const *ccp;
17810 char **p;
17811 /* NEC SVR4.0.2 mips cc rejects this. */
17812 struct point {int x, y;};
17813 static struct point const zero = {0,0};
17814 /* AIX XL C 1.02.0.0 rejects this.
17815 It does not let you subtract one const X* pointer from another in
17816 an arm of an if-expression whose if-part is not a constant
17817 expression */
17818 const char *g = "string";
17819 ccp = &g + (g ? g-g : 0);
17820 /* HPUX 7.0 cc rejects these. */
17821 ++ccp;
17822 p = (char**) ccp;
17823 ccp = (char const *const *) p;
17824 { /* SCO 3.2v4 cc rejects this. */
17825 char *t;
17826 char const *s = 0 ? (char *) 0 : (char const *) 0;
17827
17828 *t++ = 0;
17829 }
17830 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
17831 int x[] = {25, 17};
17832 const int *foo = &x[0];
17833 ++foo;
17834 }
17835 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17836 typedef const int *iptr;
17837 iptr p = 0;
17838 ++p;
17839 }
17840 { /* AIX XL C 1.02.0.0 rejects this saying
17841 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17842 struct s { int j; const int *ap[3]; };
17843 struct s *b; b->j = 5;
17844 }
17845 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17846 const int foo = 10;
17847 }
17848#endif
17849
17850 ;
17851 return 0;
17852}
17853_ACEOF
17854rm -f conftest.$ac_objext
17855if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17856 (eval $ac_compile) 2>conftest.er1
a848cd7e 17857 ac_status=$?
ac1cb8d3
VS
17858 grep -v '^ *+' conftest.er1 >conftest.err
17859 rm -f conftest.er1
17860 cat conftest.err >&5
a848cd7e
SC
17861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17862 (exit $ac_status); } &&
3ea50042 17863 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17865 (eval $ac_try) 2>&5
17866 ac_status=$?
17867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17868 (exit $ac_status); }; } &&
17869 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17871 (eval $ac_try) 2>&5
17872 ac_status=$?
17873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17874 (exit $ac_status); }; }; then
17875 ac_cv_c_const=yes
17876else
17877 echo "$as_me: failed program was:" >&5
17878sed 's/^/| /' conftest.$ac_ext >&5
17879
17880ac_cv_c_const=no
17881fi
ac1cb8d3 17882rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17883fi
17884echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
17885echo "${ECHO_T}$ac_cv_c_const" >&6
17886if test $ac_cv_c_const = no; then
17887
17888cat >>confdefs.h <<\_ACEOF
17889#define const
17890_ACEOF
17891
17892fi
17893
17894echo "$as_me:$LINENO: checking for inline" >&5
17895echo $ECHO_N "checking for inline... $ECHO_C" >&6
17896if test "${ac_cv_c_inline+set}" = set; then
17897 echo $ECHO_N "(cached) $ECHO_C" >&6
17898else
17899 ac_cv_c_inline=no
17900for ac_kw in inline __inline__ __inline; do
17901 cat >conftest.$ac_ext <<_ACEOF
17902/* confdefs.h. */
17903_ACEOF
17904cat confdefs.h >>conftest.$ac_ext
17905cat >>conftest.$ac_ext <<_ACEOF
17906/* end confdefs.h. */
17907#ifndef __cplusplus
17908typedef int foo_t;
17909static $ac_kw foo_t static_foo () {return 0; }
17910$ac_kw foo_t foo () {return 0; }
17911#endif
17912
17913_ACEOF
17914rm -f conftest.$ac_objext
17915if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17916 (eval $ac_compile) 2>conftest.er1
a848cd7e 17917 ac_status=$?
ac1cb8d3
VS
17918 grep -v '^ *+' conftest.er1 >conftest.err
17919 rm -f conftest.er1
17920 cat conftest.err >&5
a848cd7e
SC
17921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17922 (exit $ac_status); } &&
3ea50042 17923 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17925 (eval $ac_try) 2>&5
17926 ac_status=$?
17927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17928 (exit $ac_status); }; } &&
17929 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17931 (eval $ac_try) 2>&5
17932 ac_status=$?
17933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17934 (exit $ac_status); }; }; then
17935 ac_cv_c_inline=$ac_kw; break
17936else
17937 echo "$as_me: failed program was:" >&5
17938sed 's/^/| /' conftest.$ac_ext >&5
17939
17940fi
ac1cb8d3 17941rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17942done
17943
17944fi
17945echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
17946echo "${ECHO_T}$ac_cv_c_inline" >&6
ac1cb8d3
VS
17947
17948
a848cd7e
SC
17949case $ac_cv_c_inline in
17950 inline | yes) ;;
ac1cb8d3
VS
17951 *)
17952 case $ac_cv_c_inline in
17953 no) ac_val=;;
17954 *) ac_val=$ac_cv_c_inline;;
17955 esac
17956 cat >>confdefs.h <<_ACEOF
17957#ifndef __cplusplus
17958#define inline $ac_val
17959#endif
de59c161 17960_ACEOF
ac1cb8d3 17961 ;;
a848cd7e
SC
17962esac
17963
17964
17965echo "$as_me:$LINENO: checking for char" >&5
17966echo $ECHO_N "checking for char... $ECHO_C" >&6
17967if test "${ac_cv_type_char+set}" = set; then
17968 echo $ECHO_N "(cached) $ECHO_C" >&6
17969else
17970 cat >conftest.$ac_ext <<_ACEOF
17971/* confdefs.h. */
17972_ACEOF
17973cat confdefs.h >>conftest.$ac_ext
17974cat >>conftest.$ac_ext <<_ACEOF
17975/* end confdefs.h. */
17976$ac_includes_default
17977int
17978main ()
17979{
17980if ((char *) 0)
17981 return 0;
17982if (sizeof (char))
17983 return 0;
17984 ;
17985 return 0;
17986}
17987_ACEOF
17988rm -f conftest.$ac_objext
17989if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17990 (eval $ac_compile) 2>conftest.er1
a848cd7e 17991 ac_status=$?
ac1cb8d3
VS
17992 grep -v '^ *+' conftest.er1 >conftest.err
17993 rm -f conftest.er1
17994 cat conftest.err >&5
a848cd7e
SC
17995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17996 (exit $ac_status); } &&
3ea50042 17997 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17999 (eval $ac_try) 2>&5
18000 ac_status=$?
18001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18002 (exit $ac_status); }; } &&
18003 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18005 (eval $ac_try) 2>&5
18006 ac_status=$?
18007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18008 (exit $ac_status); }; }; then
18009 ac_cv_type_char=yes
18010else
18011 echo "$as_me: failed program was:" >&5
18012sed 's/^/| /' conftest.$ac_ext >&5
18013
18014ac_cv_type_char=no
18015fi
ac1cb8d3 18016rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18017fi
18018echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
18019echo "${ECHO_T}$ac_cv_type_char" >&6
18020
18021echo "$as_me:$LINENO: checking size of char" >&5
18022echo $ECHO_N "checking size of char... $ECHO_C" >&6
18023if test "${ac_cv_sizeof_char+set}" = set; then
18024 echo $ECHO_N "(cached) $ECHO_C" >&6
18025else
18026 if test "$ac_cv_type_char" = yes; then
18027 # The cast to unsigned long works around a bug in the HP C Compiler
18028 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18029 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18030 # This bug is HP SR number 8606223364.
18031 if test "$cross_compiling" = yes; then
18032 # Depending upon the size, compute the lo and hi bounds.
18033cat >conftest.$ac_ext <<_ACEOF
18034/* confdefs.h. */
18035_ACEOF
18036cat confdefs.h >>conftest.$ac_ext
18037cat >>conftest.$ac_ext <<_ACEOF
18038/* end confdefs.h. */
18039$ac_includes_default
18040int
18041main ()
18042{
18043static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
18044test_array [0] = 0
18045
18046 ;
18047 return 0;
18048}
18049_ACEOF
18050rm -f conftest.$ac_objext
18051if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18052 (eval $ac_compile) 2>conftest.er1
a848cd7e 18053 ac_status=$?
ac1cb8d3
VS
18054 grep -v '^ *+' conftest.er1 >conftest.err
18055 rm -f conftest.er1
18056 cat conftest.err >&5
a848cd7e
SC
18057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18058 (exit $ac_status); } &&
3ea50042 18059 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18061 (eval $ac_try) 2>&5
18062 ac_status=$?
18063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18064 (exit $ac_status); }; } &&
18065 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18067 (eval $ac_try) 2>&5
18068 ac_status=$?
18069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18070 (exit $ac_status); }; }; then
18071 ac_lo=0 ac_mid=0
18072 while :; do
18073 cat >conftest.$ac_ext <<_ACEOF
18074/* confdefs.h. */
18075_ACEOF
18076cat confdefs.h >>conftest.$ac_ext
18077cat >>conftest.$ac_ext <<_ACEOF
18078/* end confdefs.h. */
18079$ac_includes_default
18080int
18081main ()
18082{
18083static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
18084test_array [0] = 0
18085
18086 ;
18087 return 0;
18088}
18089_ACEOF
18090rm -f conftest.$ac_objext
18091if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18092 (eval $ac_compile) 2>conftest.er1
a848cd7e 18093 ac_status=$?
ac1cb8d3
VS
18094 grep -v '^ *+' conftest.er1 >conftest.err
18095 rm -f conftest.er1
18096 cat conftest.err >&5
a848cd7e
SC
18097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18098 (exit $ac_status); } &&
3ea50042 18099 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18101 (eval $ac_try) 2>&5
18102 ac_status=$?
18103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18104 (exit $ac_status); }; } &&
18105 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18107 (eval $ac_try) 2>&5
18108 ac_status=$?
18109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18110 (exit $ac_status); }; }; then
18111 ac_hi=$ac_mid; break
18112else
18113 echo "$as_me: failed program was:" >&5
18114sed 's/^/| /' conftest.$ac_ext >&5
18115
18116ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18117 if test $ac_lo -le $ac_mid; then
18118 ac_lo= ac_hi=
18119 break
18120 fi
18121 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18122fi
ac1cb8d3 18123rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18124 done
18125else
18126 echo "$as_me: failed program was:" >&5
18127sed 's/^/| /' conftest.$ac_ext >&5
18128
18129cat >conftest.$ac_ext <<_ACEOF
18130/* confdefs.h. */
18131_ACEOF
18132cat confdefs.h >>conftest.$ac_ext
18133cat >>conftest.$ac_ext <<_ACEOF
18134/* end confdefs.h. */
18135$ac_includes_default
18136int
18137main ()
18138{
18139static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
18140test_array [0] = 0
18141
18142 ;
18143 return 0;
18144}
18145_ACEOF
18146rm -f conftest.$ac_objext
18147if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18148 (eval $ac_compile) 2>conftest.er1
a848cd7e 18149 ac_status=$?
ac1cb8d3
VS
18150 grep -v '^ *+' conftest.er1 >conftest.err
18151 rm -f conftest.er1
18152 cat conftest.err >&5
a848cd7e
SC
18153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18154 (exit $ac_status); } &&
3ea50042 18155 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18157 (eval $ac_try) 2>&5
18158 ac_status=$?
18159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18160 (exit $ac_status); }; } &&
18161 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18163 (eval $ac_try) 2>&5
18164 ac_status=$?
18165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18166 (exit $ac_status); }; }; then
18167 ac_hi=-1 ac_mid=-1
18168 while :; do
18169 cat >conftest.$ac_ext <<_ACEOF
18170/* confdefs.h. */
18171_ACEOF
18172cat confdefs.h >>conftest.$ac_ext
18173cat >>conftest.$ac_ext <<_ACEOF
18174/* end confdefs.h. */
18175$ac_includes_default
18176int
18177main ()
18178{
18179static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
18180test_array [0] = 0
18181
18182 ;
18183 return 0;
18184}
18185_ACEOF
18186rm -f conftest.$ac_objext
18187if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18188 (eval $ac_compile) 2>conftest.er1
a848cd7e 18189 ac_status=$?
ac1cb8d3
VS
18190 grep -v '^ *+' conftest.er1 >conftest.err
18191 rm -f conftest.er1
18192 cat conftest.err >&5
a848cd7e
SC
18193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18194 (exit $ac_status); } &&
3ea50042 18195 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18197 (eval $ac_try) 2>&5
18198 ac_status=$?
18199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18200 (exit $ac_status); }; } &&
18201 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18203 (eval $ac_try) 2>&5
18204 ac_status=$?
18205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18206 (exit $ac_status); }; }; then
18207 ac_lo=$ac_mid; break
18208else
18209 echo "$as_me: failed program was:" >&5
18210sed 's/^/| /' conftest.$ac_ext >&5
18211
18212ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18213 if test $ac_mid -le $ac_hi; then
18214 ac_lo= ac_hi=
18215 break
18216 fi
18217 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18218fi
ac1cb8d3 18219rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18220 done
18221else
18222 echo "$as_me: failed program was:" >&5
18223sed 's/^/| /' conftest.$ac_ext >&5
18224
18225ac_lo= ac_hi=
18226fi
ac1cb8d3 18227rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18228fi
ac1cb8d3 18229rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18230# Binary search between lo and hi bounds.
18231while test "x$ac_lo" != "x$ac_hi"; do
18232 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18233 cat >conftest.$ac_ext <<_ACEOF
18234/* confdefs.h. */
18235_ACEOF
18236cat confdefs.h >>conftest.$ac_ext
18237cat >>conftest.$ac_ext <<_ACEOF
18238/* end confdefs.h. */
18239$ac_includes_default
18240int
18241main ()
18242{
18243static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
18244test_array [0] = 0
18245
18246 ;
18247 return 0;
18248}
18249_ACEOF
18250rm -f conftest.$ac_objext
18251if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18252 (eval $ac_compile) 2>conftest.er1
a848cd7e 18253 ac_status=$?
ac1cb8d3
VS
18254 grep -v '^ *+' conftest.er1 >conftest.err
18255 rm -f conftest.er1
18256 cat conftest.err >&5
a848cd7e
SC
18257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18258 (exit $ac_status); } &&
3ea50042 18259 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18261 (eval $ac_try) 2>&5
18262 ac_status=$?
18263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18264 (exit $ac_status); }; } &&
18265 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18267 (eval $ac_try) 2>&5
18268 ac_status=$?
18269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18270 (exit $ac_status); }; }; then
18271 ac_hi=$ac_mid
18272else
18273 echo "$as_me: failed program was:" >&5
18274sed 's/^/| /' conftest.$ac_ext >&5
18275
18276ac_lo=`expr '(' $ac_mid ')' + 1`
18277fi
ac1cb8d3 18278rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18279done
18280case $ac_lo in
18281?*) ac_cv_sizeof_char=$ac_lo;;
18282'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
18283See \`config.log' for more details." >&5
18284echo "$as_me: error: cannot compute sizeof (char), 77
18285See \`config.log' for more details." >&2;}
18286 { (exit 1); exit 1; }; } ;;
18287esac
18288else
18289 if test "$cross_compiling" = yes; then
3ea50042
VZ
18290 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18291echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
18292 { (exit 1); exit 1; }; }
18293else
18294 cat >conftest.$ac_ext <<_ACEOF
18295/* confdefs.h. */
18296_ACEOF
18297cat confdefs.h >>conftest.$ac_ext
18298cat >>conftest.$ac_ext <<_ACEOF
18299/* end confdefs.h. */
18300$ac_includes_default
18301long longval () { return (long) (sizeof (char)); }
18302unsigned long ulongval () { return (long) (sizeof (char)); }
18303#include <stdio.h>
18304#include <stdlib.h>
18305int
18306main ()
18307{
18308
18309 FILE *f = fopen ("conftest.val", "w");
18310 if (! f)
18311 exit (1);
18312 if (((long) (sizeof (char))) < 0)
18313 {
18314 long i = longval ();
18315 if (i != ((long) (sizeof (char))))
18316 exit (1);
18317 fprintf (f, "%ld\n", i);
18318 }
18319 else
18320 {
18321 unsigned long i = ulongval ();
18322 if (i != ((long) (sizeof (char))))
18323 exit (1);
18324 fprintf (f, "%lu\n", i);
18325 }
18326 exit (ferror (f) || fclose (f) != 0);
18327
18328 ;
18329 return 0;
18330}
18331_ACEOF
18332rm -f conftest$ac_exeext
18333if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18334 (eval $ac_link) 2>&5
18335 ac_status=$?
18336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18337 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18339 (eval $ac_try) 2>&5
18340 ac_status=$?
18341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18342 (exit $ac_status); }; }; then
18343 ac_cv_sizeof_char=`cat conftest.val`
18344else
18345 echo "$as_me: program exited with status $ac_status" >&5
18346echo "$as_me: failed program was:" >&5
18347sed 's/^/| /' conftest.$ac_ext >&5
18348
18349( exit $ac_status )
18350{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
18351See \`config.log' for more details." >&5
18352echo "$as_me: error: cannot compute sizeof (char), 77
18353See \`config.log' for more details." >&2;}
18354 { (exit 1); exit 1; }; }
18355fi
ac1cb8d3 18356rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18357fi
18358fi
18359rm -f conftest.val
18360else
18361 ac_cv_sizeof_char=0
18362fi
18363fi
18364echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
18365echo "${ECHO_T}$ac_cv_sizeof_char" >&6
18366cat >>confdefs.h <<_ACEOF
18367#define SIZEOF_CHAR $ac_cv_sizeof_char
18368_ACEOF
18369
18370
18371echo "$as_me:$LINENO: checking for short" >&5
18372echo $ECHO_N "checking for short... $ECHO_C" >&6
18373if test "${ac_cv_type_short+set}" = set; then
18374 echo $ECHO_N "(cached) $ECHO_C" >&6
18375else
18376 cat >conftest.$ac_ext <<_ACEOF
18377/* confdefs.h. */
18378_ACEOF
18379cat confdefs.h >>conftest.$ac_ext
18380cat >>conftest.$ac_ext <<_ACEOF
18381/* end confdefs.h. */
18382$ac_includes_default
18383int
18384main ()
18385{
18386if ((short *) 0)
18387 return 0;
18388if (sizeof (short))
18389 return 0;
18390 ;
18391 return 0;
18392}
18393_ACEOF
18394rm -f conftest.$ac_objext
18395if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18396 (eval $ac_compile) 2>conftest.er1
a848cd7e 18397 ac_status=$?
ac1cb8d3
VS
18398 grep -v '^ *+' conftest.er1 >conftest.err
18399 rm -f conftest.er1
18400 cat conftest.err >&5
a848cd7e
SC
18401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18402 (exit $ac_status); } &&
3ea50042 18403 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18405 (eval $ac_try) 2>&5
18406 ac_status=$?
18407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18408 (exit $ac_status); }; } &&
18409 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18411 (eval $ac_try) 2>&5
18412 ac_status=$?
18413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18414 (exit $ac_status); }; }; then
18415 ac_cv_type_short=yes
18416else
18417 echo "$as_me: failed program was:" >&5
18418sed 's/^/| /' conftest.$ac_ext >&5
18419
18420ac_cv_type_short=no
18421fi
ac1cb8d3 18422rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18423fi
18424echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
18425echo "${ECHO_T}$ac_cv_type_short" >&6
18426
18427echo "$as_me:$LINENO: checking size of short" >&5
18428echo $ECHO_N "checking size of short... $ECHO_C" >&6
18429if test "${ac_cv_sizeof_short+set}" = set; then
18430 echo $ECHO_N "(cached) $ECHO_C" >&6
18431else
18432 if test "$ac_cv_type_short" = yes; then
18433 # The cast to unsigned long works around a bug in the HP C Compiler
18434 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18435 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18436 # This bug is HP SR number 8606223364.
18437 if test "$cross_compiling" = yes; then
18438 # Depending upon the size, compute the lo and hi bounds.
18439cat >conftest.$ac_ext <<_ACEOF
18440/* confdefs.h. */
18441_ACEOF
18442cat confdefs.h >>conftest.$ac_ext
18443cat >>conftest.$ac_ext <<_ACEOF
18444/* end confdefs.h. */
18445$ac_includes_default
18446int
18447main ()
18448{
18449static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
18450test_array [0] = 0
18451
18452 ;
18453 return 0;
18454}
18455_ACEOF
18456rm -f conftest.$ac_objext
18457if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18458 (eval $ac_compile) 2>conftest.er1
a848cd7e 18459 ac_status=$?
ac1cb8d3
VS
18460 grep -v '^ *+' conftest.er1 >conftest.err
18461 rm -f conftest.er1
18462 cat conftest.err >&5
a848cd7e
SC
18463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18464 (exit $ac_status); } &&
3ea50042 18465 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18467 (eval $ac_try) 2>&5
18468 ac_status=$?
18469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18470 (exit $ac_status); }; } &&
18471 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18473 (eval $ac_try) 2>&5
18474 ac_status=$?
18475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18476 (exit $ac_status); }; }; then
18477 ac_lo=0 ac_mid=0
18478 while :; do
18479 cat >conftest.$ac_ext <<_ACEOF
18480/* confdefs.h. */
18481_ACEOF
18482cat confdefs.h >>conftest.$ac_ext
18483cat >>conftest.$ac_ext <<_ACEOF
18484/* end confdefs.h. */
18485$ac_includes_default
18486int
18487main ()
18488{
18489static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
18490test_array [0] = 0
18491
18492 ;
18493 return 0;
18494}
18495_ACEOF
18496rm -f conftest.$ac_objext
18497if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18498 (eval $ac_compile) 2>conftest.er1
a848cd7e 18499 ac_status=$?
ac1cb8d3
VS
18500 grep -v '^ *+' conftest.er1 >conftest.err
18501 rm -f conftest.er1
18502 cat conftest.err >&5
a848cd7e
SC
18503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18504 (exit $ac_status); } &&
3ea50042 18505 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18507 (eval $ac_try) 2>&5
18508 ac_status=$?
18509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18510 (exit $ac_status); }; } &&
18511 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18513 (eval $ac_try) 2>&5
18514 ac_status=$?
18515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18516 (exit $ac_status); }; }; then
18517 ac_hi=$ac_mid; break
18518else
18519 echo "$as_me: failed program was:" >&5
18520sed 's/^/| /' conftest.$ac_ext >&5
18521
18522ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18523 if test $ac_lo -le $ac_mid; then
18524 ac_lo= ac_hi=
18525 break
18526 fi
18527 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18528fi
ac1cb8d3 18529rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18530 done
18531else
18532 echo "$as_me: failed program was:" >&5
18533sed 's/^/| /' conftest.$ac_ext >&5
18534
18535cat >conftest.$ac_ext <<_ACEOF
18536/* confdefs.h. */
18537_ACEOF
18538cat confdefs.h >>conftest.$ac_ext
18539cat >>conftest.$ac_ext <<_ACEOF
18540/* end confdefs.h. */
18541$ac_includes_default
18542int
18543main ()
18544{
18545static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
18546test_array [0] = 0
18547
18548 ;
18549 return 0;
18550}
18551_ACEOF
18552rm -f conftest.$ac_objext
18553if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18554 (eval $ac_compile) 2>conftest.er1
a848cd7e 18555 ac_status=$?
ac1cb8d3
VS
18556 grep -v '^ *+' conftest.er1 >conftest.err
18557 rm -f conftest.er1
18558 cat conftest.err >&5
a848cd7e
SC
18559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18560 (exit $ac_status); } &&
3ea50042 18561 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18563 (eval $ac_try) 2>&5
18564 ac_status=$?
18565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18566 (exit $ac_status); }; } &&
18567 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18569 (eval $ac_try) 2>&5
18570 ac_status=$?
18571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18572 (exit $ac_status); }; }; then
18573 ac_hi=-1 ac_mid=-1
18574 while :; do
18575 cat >conftest.$ac_ext <<_ACEOF
18576/* confdefs.h. */
18577_ACEOF
18578cat confdefs.h >>conftest.$ac_ext
18579cat >>conftest.$ac_ext <<_ACEOF
18580/* end confdefs.h. */
18581$ac_includes_default
18582int
18583main ()
18584{
18585static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
18586test_array [0] = 0
18587
18588 ;
18589 return 0;
18590}
18591_ACEOF
18592rm -f conftest.$ac_objext
18593if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18594 (eval $ac_compile) 2>conftest.er1
a848cd7e 18595 ac_status=$?
ac1cb8d3
VS
18596 grep -v '^ *+' conftest.er1 >conftest.err
18597 rm -f conftest.er1
18598 cat conftest.err >&5
a848cd7e
SC
18599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18600 (exit $ac_status); } &&
3ea50042 18601 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18603 (eval $ac_try) 2>&5
18604 ac_status=$?
18605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18606 (exit $ac_status); }; } &&
18607 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18609 (eval $ac_try) 2>&5
18610 ac_status=$?
18611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18612 (exit $ac_status); }; }; then
18613 ac_lo=$ac_mid; break
18614else
18615 echo "$as_me: failed program was:" >&5
18616sed 's/^/| /' conftest.$ac_ext >&5
18617
18618ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18619 if test $ac_mid -le $ac_hi; then
18620 ac_lo= ac_hi=
18621 break
18622 fi
18623 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18624fi
ac1cb8d3 18625rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18626 done
18627else
18628 echo "$as_me: failed program was:" >&5
18629sed 's/^/| /' conftest.$ac_ext >&5
18630
18631ac_lo= ac_hi=
18632fi
ac1cb8d3 18633rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18634fi
ac1cb8d3 18635rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18636# Binary search between lo and hi bounds.
18637while test "x$ac_lo" != "x$ac_hi"; do
18638 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18639 cat >conftest.$ac_ext <<_ACEOF
18640/* confdefs.h. */
18641_ACEOF
18642cat confdefs.h >>conftest.$ac_ext
18643cat >>conftest.$ac_ext <<_ACEOF
18644/* end confdefs.h. */
18645$ac_includes_default
18646int
18647main ()
18648{
18649static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
18650test_array [0] = 0
18651
18652 ;
18653 return 0;
18654}
18655_ACEOF
18656rm -f conftest.$ac_objext
18657if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18658 (eval $ac_compile) 2>conftest.er1
a848cd7e 18659 ac_status=$?
ac1cb8d3
VS
18660 grep -v '^ *+' conftest.er1 >conftest.err
18661 rm -f conftest.er1
18662 cat conftest.err >&5
a848cd7e
SC
18663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18664 (exit $ac_status); } &&
3ea50042 18665 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18667 (eval $ac_try) 2>&5
18668 ac_status=$?
18669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18670 (exit $ac_status); }; } &&
18671 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18673 (eval $ac_try) 2>&5
18674 ac_status=$?
18675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18676 (exit $ac_status); }; }; then
18677 ac_hi=$ac_mid
18678else
18679 echo "$as_me: failed program was:" >&5
18680sed 's/^/| /' conftest.$ac_ext >&5
18681
18682ac_lo=`expr '(' $ac_mid ')' + 1`
18683fi
ac1cb8d3 18684rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18685done
18686case $ac_lo in
18687?*) ac_cv_sizeof_short=$ac_lo;;
18688'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
18689See \`config.log' for more details." >&5
18690echo "$as_me: error: cannot compute sizeof (short), 77
18691See \`config.log' for more details." >&2;}
18692 { (exit 1); exit 1; }; } ;;
18693esac
18694else
18695 if test "$cross_compiling" = yes; then
3ea50042
VZ
18696 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18697echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
18698 { (exit 1); exit 1; }; }
18699else
18700 cat >conftest.$ac_ext <<_ACEOF
18701/* confdefs.h. */
18702_ACEOF
18703cat confdefs.h >>conftest.$ac_ext
18704cat >>conftest.$ac_ext <<_ACEOF
18705/* end confdefs.h. */
18706$ac_includes_default
18707long longval () { return (long) (sizeof (short)); }
18708unsigned long ulongval () { return (long) (sizeof (short)); }
18709#include <stdio.h>
18710#include <stdlib.h>
18711int
18712main ()
18713{
18714
18715 FILE *f = fopen ("conftest.val", "w");
18716 if (! f)
18717 exit (1);
18718 if (((long) (sizeof (short))) < 0)
18719 {
18720 long i = longval ();
18721 if (i != ((long) (sizeof (short))))
18722 exit (1);
18723 fprintf (f, "%ld\n", i);
18724 }
18725 else
18726 {
18727 unsigned long i = ulongval ();
18728 if (i != ((long) (sizeof (short))))
18729 exit (1);
18730 fprintf (f, "%lu\n", i);
18731 }
18732 exit (ferror (f) || fclose (f) != 0);
18733
18734 ;
18735 return 0;
18736}
18737_ACEOF
18738rm -f conftest$ac_exeext
18739if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18740 (eval $ac_link) 2>&5
18741 ac_status=$?
18742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18743 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18745 (eval $ac_try) 2>&5
18746 ac_status=$?
18747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18748 (exit $ac_status); }; }; then
18749 ac_cv_sizeof_short=`cat conftest.val`
18750else
18751 echo "$as_me: program exited with status $ac_status" >&5
18752echo "$as_me: failed program was:" >&5
18753sed 's/^/| /' conftest.$ac_ext >&5
18754
18755( exit $ac_status )
18756{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
18757See \`config.log' for more details." >&5
18758echo "$as_me: error: cannot compute sizeof (short), 77
18759See \`config.log' for more details." >&2;}
18760 { (exit 1); exit 1; }; }
18761fi
ac1cb8d3 18762rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18763fi
18764fi
18765rm -f conftest.val
18766else
18767 ac_cv_sizeof_short=0
18768fi
18769fi
18770echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
18771echo "${ECHO_T}$ac_cv_sizeof_short" >&6
18772cat >>confdefs.h <<_ACEOF
18773#define SIZEOF_SHORT $ac_cv_sizeof_short
18774_ACEOF
18775
18776
18777echo "$as_me:$LINENO: checking for void *" >&5
18778echo $ECHO_N "checking for void *... $ECHO_C" >&6
18779if test "${ac_cv_type_void_p+set}" = set; then
18780 echo $ECHO_N "(cached) $ECHO_C" >&6
18781else
18782 cat >conftest.$ac_ext <<_ACEOF
18783/* confdefs.h. */
18784_ACEOF
18785cat confdefs.h >>conftest.$ac_ext
18786cat >>conftest.$ac_ext <<_ACEOF
18787/* end confdefs.h. */
18788$ac_includes_default
18789int
18790main ()
18791{
18792if ((void * *) 0)
18793 return 0;
18794if (sizeof (void *))
18795 return 0;
18796 ;
18797 return 0;
18798}
18799_ACEOF
18800rm -f conftest.$ac_objext
18801if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18802 (eval $ac_compile) 2>conftest.er1
a848cd7e 18803 ac_status=$?
ac1cb8d3
VS
18804 grep -v '^ *+' conftest.er1 >conftest.err
18805 rm -f conftest.er1
18806 cat conftest.err >&5
a848cd7e
SC
18807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18808 (exit $ac_status); } &&
3ea50042 18809 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18811 (eval $ac_try) 2>&5
18812 ac_status=$?
18813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18814 (exit $ac_status); }; } &&
18815 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18817 (eval $ac_try) 2>&5
18818 ac_status=$?
18819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18820 (exit $ac_status); }; }; then
18821 ac_cv_type_void_p=yes
18822else
18823 echo "$as_me: failed program was:" >&5
18824sed 's/^/| /' conftest.$ac_ext >&5
18825
18826ac_cv_type_void_p=no
18827fi
ac1cb8d3 18828rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18829fi
18830echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
18831echo "${ECHO_T}$ac_cv_type_void_p" >&6
18832
18833echo "$as_me:$LINENO: checking size of void *" >&5
18834echo $ECHO_N "checking size of void *... $ECHO_C" >&6
18835if test "${ac_cv_sizeof_void_p+set}" = set; then
18836 echo $ECHO_N "(cached) $ECHO_C" >&6
18837else
18838 if test "$ac_cv_type_void_p" = yes; then
18839 # The cast to unsigned long works around a bug in the HP C Compiler
18840 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18841 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18842 # This bug is HP SR number 8606223364.
18843 if test "$cross_compiling" = yes; then
18844 # Depending upon the size, compute the lo and hi bounds.
18845cat >conftest.$ac_ext <<_ACEOF
18846/* confdefs.h. */
18847_ACEOF
18848cat confdefs.h >>conftest.$ac_ext
18849cat >>conftest.$ac_ext <<_ACEOF
18850/* end confdefs.h. */
18851$ac_includes_default
18852int
18853main ()
18854{
18855static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
18856test_array [0] = 0
18857
18858 ;
18859 return 0;
18860}
18861_ACEOF
18862rm -f conftest.$ac_objext
18863if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18864 (eval $ac_compile) 2>conftest.er1
a848cd7e 18865 ac_status=$?
ac1cb8d3
VS
18866 grep -v '^ *+' conftest.er1 >conftest.err
18867 rm -f conftest.er1
18868 cat conftest.err >&5
a848cd7e
SC
18869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18870 (exit $ac_status); } &&
3ea50042 18871 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18873 (eval $ac_try) 2>&5
18874 ac_status=$?
18875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18876 (exit $ac_status); }; } &&
18877 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18879 (eval $ac_try) 2>&5
18880 ac_status=$?
18881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18882 (exit $ac_status); }; }; then
18883 ac_lo=0 ac_mid=0
18884 while :; do
18885 cat >conftest.$ac_ext <<_ACEOF
18886/* confdefs.h. */
18887_ACEOF
18888cat confdefs.h >>conftest.$ac_ext
18889cat >>conftest.$ac_ext <<_ACEOF
18890/* end confdefs.h. */
18891$ac_includes_default
18892int
18893main ()
18894{
18895static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
18896test_array [0] = 0
18897
18898 ;
18899 return 0;
18900}
18901_ACEOF
18902rm -f conftest.$ac_objext
18903if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18904 (eval $ac_compile) 2>conftest.er1
a848cd7e 18905 ac_status=$?
ac1cb8d3
VS
18906 grep -v '^ *+' conftest.er1 >conftest.err
18907 rm -f conftest.er1
18908 cat conftest.err >&5
a848cd7e
SC
18909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18910 (exit $ac_status); } &&
3ea50042 18911 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18913 (eval $ac_try) 2>&5
18914 ac_status=$?
18915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18916 (exit $ac_status); }; } &&
18917 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18919 (eval $ac_try) 2>&5
18920 ac_status=$?
18921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18922 (exit $ac_status); }; }; then
18923 ac_hi=$ac_mid; break
18924else
18925 echo "$as_me: failed program was:" >&5
18926sed 's/^/| /' conftest.$ac_ext >&5
18927
18928ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18929 if test $ac_lo -le $ac_mid; then
18930 ac_lo= ac_hi=
18931 break
18932 fi
18933 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18934fi
ac1cb8d3 18935rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18936 done
18937else
18938 echo "$as_me: failed program was:" >&5
18939sed 's/^/| /' conftest.$ac_ext >&5
18940
18941cat >conftest.$ac_ext <<_ACEOF
18942/* confdefs.h. */
18943_ACEOF
18944cat confdefs.h >>conftest.$ac_ext
18945cat >>conftest.$ac_ext <<_ACEOF
18946/* end confdefs.h. */
18947$ac_includes_default
18948int
18949main ()
18950{
18951static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
18952test_array [0] = 0
18953
18954 ;
18955 return 0;
18956}
18957_ACEOF
18958rm -f conftest.$ac_objext
18959if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18960 (eval $ac_compile) 2>conftest.er1
a848cd7e 18961 ac_status=$?
ac1cb8d3
VS
18962 grep -v '^ *+' conftest.er1 >conftest.err
18963 rm -f conftest.er1
18964 cat conftest.err >&5
a848cd7e
SC
18965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18966 (exit $ac_status); } &&
3ea50042 18967 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18969 (eval $ac_try) 2>&5
18970 ac_status=$?
18971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18972 (exit $ac_status); }; } &&
18973 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18975 (eval $ac_try) 2>&5
18976 ac_status=$?
18977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18978 (exit $ac_status); }; }; then
18979 ac_hi=-1 ac_mid=-1
18980 while :; do
18981 cat >conftest.$ac_ext <<_ACEOF
18982/* confdefs.h. */
18983_ACEOF
18984cat confdefs.h >>conftest.$ac_ext
18985cat >>conftest.$ac_ext <<_ACEOF
18986/* end confdefs.h. */
18987$ac_includes_default
18988int
18989main ()
18990{
18991static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
18992test_array [0] = 0
18993
18994 ;
18995 return 0;
18996}
18997_ACEOF
18998rm -f conftest.$ac_objext
18999if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19000 (eval $ac_compile) 2>conftest.er1
a848cd7e 19001 ac_status=$?
ac1cb8d3
VS
19002 grep -v '^ *+' conftest.er1 >conftest.err
19003 rm -f conftest.er1
19004 cat conftest.err >&5
a848cd7e
SC
19005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19006 (exit $ac_status); } &&
3ea50042 19007 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19009 (eval $ac_try) 2>&5
19010 ac_status=$?
19011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19012 (exit $ac_status); }; } &&
19013 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19015 (eval $ac_try) 2>&5
19016 ac_status=$?
19017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19018 (exit $ac_status); }; }; then
19019 ac_lo=$ac_mid; break
19020else
19021 echo "$as_me: failed program was:" >&5
19022sed 's/^/| /' conftest.$ac_ext >&5
19023
19024ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
19025 if test $ac_mid -le $ac_hi; then
19026 ac_lo= ac_hi=
19027 break
19028 fi
19029 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 19030fi
ac1cb8d3 19031rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19032 done
19033else
19034 echo "$as_me: failed program was:" >&5
19035sed 's/^/| /' conftest.$ac_ext >&5
19036
19037ac_lo= ac_hi=
19038fi
ac1cb8d3 19039rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 19040fi
ac1cb8d3 19041rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19042# Binary search between lo and hi bounds.
19043while test "x$ac_lo" != "x$ac_hi"; do
19044 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19045 cat >conftest.$ac_ext <<_ACEOF
19046/* confdefs.h. */
19047_ACEOF
19048cat confdefs.h >>conftest.$ac_ext
19049cat >>conftest.$ac_ext <<_ACEOF
19050/* end confdefs.h. */
19051$ac_includes_default
19052int
19053main ()
19054{
19055static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
19056test_array [0] = 0
19057
19058 ;
19059 return 0;
19060}
19061_ACEOF
19062rm -f conftest.$ac_objext
19063if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19064 (eval $ac_compile) 2>conftest.er1
a848cd7e 19065 ac_status=$?
ac1cb8d3
VS
19066 grep -v '^ *+' conftest.er1 >conftest.err
19067 rm -f conftest.er1
19068 cat conftest.err >&5
a848cd7e
SC
19069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19070 (exit $ac_status); } &&
3ea50042 19071 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19073 (eval $ac_try) 2>&5
19074 ac_status=$?
19075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19076 (exit $ac_status); }; } &&
19077 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19079 (eval $ac_try) 2>&5
19080 ac_status=$?
19081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19082 (exit $ac_status); }; }; then
19083 ac_hi=$ac_mid
19084else
19085 echo "$as_me: failed program was:" >&5
19086sed 's/^/| /' conftest.$ac_ext >&5
19087
19088ac_lo=`expr '(' $ac_mid ')' + 1`
19089fi
ac1cb8d3 19090rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19091done
19092case $ac_lo in
19093?*) ac_cv_sizeof_void_p=$ac_lo;;
19094'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
19095See \`config.log' for more details." >&5
19096echo "$as_me: error: cannot compute sizeof (void *), 77
19097See \`config.log' for more details." >&2;}
19098 { (exit 1); exit 1; }; } ;;
19099esac
19100else
19101 if test "$cross_compiling" = yes; then
3ea50042
VZ
19102 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19103echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
19104 { (exit 1); exit 1; }; }
19105else
19106 cat >conftest.$ac_ext <<_ACEOF
19107/* confdefs.h. */
19108_ACEOF
19109cat confdefs.h >>conftest.$ac_ext
19110cat >>conftest.$ac_ext <<_ACEOF
19111/* end confdefs.h. */
19112$ac_includes_default
19113long longval () { return (long) (sizeof (void *)); }
19114unsigned long ulongval () { return (long) (sizeof (void *)); }
19115#include <stdio.h>
19116#include <stdlib.h>
19117int
19118main ()
19119{
19120
19121 FILE *f = fopen ("conftest.val", "w");
19122 if (! f)
19123 exit (1);
19124 if (((long) (sizeof (void *))) < 0)
19125 {
19126 long i = longval ();
19127 if (i != ((long) (sizeof (void *))))
19128 exit (1);
19129 fprintf (f, "%ld\n", i);
19130 }
19131 else
19132 {
19133 unsigned long i = ulongval ();
19134 if (i != ((long) (sizeof (void *))))
19135 exit (1);
19136 fprintf (f, "%lu\n", i);
19137 }
19138 exit (ferror (f) || fclose (f) != 0);
19139
19140 ;
19141 return 0;
19142}
19143_ACEOF
19144rm -f conftest$ac_exeext
19145if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19146 (eval $ac_link) 2>&5
19147 ac_status=$?
19148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19149 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19151 (eval $ac_try) 2>&5
19152 ac_status=$?
19153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19154 (exit $ac_status); }; }; then
19155 ac_cv_sizeof_void_p=`cat conftest.val`
19156else
19157 echo "$as_me: program exited with status $ac_status" >&5
19158echo "$as_me: failed program was:" >&5
19159sed 's/^/| /' conftest.$ac_ext >&5
19160
19161( exit $ac_status )
19162{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
19163See \`config.log' for more details." >&5
19164echo "$as_me: error: cannot compute sizeof (void *), 77
19165See \`config.log' for more details." >&2;}
19166 { (exit 1); exit 1; }; }
19167fi
ac1cb8d3 19168rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19169fi
19170fi
19171rm -f conftest.val
19172else
19173 ac_cv_sizeof_void_p=0
19174fi
19175fi
19176echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
19177echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
19178cat >>confdefs.h <<_ACEOF
19179#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
19180_ACEOF
19181
19182
19183echo "$as_me:$LINENO: checking for int" >&5
19184echo $ECHO_N "checking for int... $ECHO_C" >&6
19185if test "${ac_cv_type_int+set}" = set; then
19186 echo $ECHO_N "(cached) $ECHO_C" >&6
19187else
19188 cat >conftest.$ac_ext <<_ACEOF
19189/* confdefs.h. */
19190_ACEOF
19191cat confdefs.h >>conftest.$ac_ext
19192cat >>conftest.$ac_ext <<_ACEOF
19193/* end confdefs.h. */
19194$ac_includes_default
19195int
19196main ()
19197{
19198if ((int *) 0)
19199 return 0;
19200if (sizeof (int))
19201 return 0;
19202 ;
19203 return 0;
19204}
19205_ACEOF
19206rm -f conftest.$ac_objext
19207if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19208 (eval $ac_compile) 2>conftest.er1
a848cd7e 19209 ac_status=$?
ac1cb8d3
VS
19210 grep -v '^ *+' conftest.er1 >conftest.err
19211 rm -f conftest.er1
19212 cat conftest.err >&5
a848cd7e
SC
19213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19214 (exit $ac_status); } &&
3ea50042 19215 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19217 (eval $ac_try) 2>&5
19218 ac_status=$?
19219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19220 (exit $ac_status); }; } &&
19221 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19223 (eval $ac_try) 2>&5
19224 ac_status=$?
19225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19226 (exit $ac_status); }; }; then
19227 ac_cv_type_int=yes
19228else
19229 echo "$as_me: failed program was:" >&5
19230sed 's/^/| /' conftest.$ac_ext >&5
19231
19232ac_cv_type_int=no
19233fi
ac1cb8d3 19234rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19235fi
19236echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
19237echo "${ECHO_T}$ac_cv_type_int" >&6
19238
19239echo "$as_me:$LINENO: checking size of int" >&5
19240echo $ECHO_N "checking size of int... $ECHO_C" >&6
19241if test "${ac_cv_sizeof_int+set}" = set; then
19242 echo $ECHO_N "(cached) $ECHO_C" >&6
19243else
19244 if test "$ac_cv_type_int" = yes; then
19245 # The cast to unsigned long works around a bug in the HP C Compiler
19246 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19247 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19248 # This bug is HP SR number 8606223364.
19249 if test "$cross_compiling" = yes; then
19250 # Depending upon the size, compute the lo and hi bounds.
19251cat >conftest.$ac_ext <<_ACEOF
19252/* confdefs.h. */
19253_ACEOF
19254cat confdefs.h >>conftest.$ac_ext
19255cat >>conftest.$ac_ext <<_ACEOF
19256/* end confdefs.h. */
19257$ac_includes_default
19258int
19259main ()
19260{
19261static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
19262test_array [0] = 0
19263
19264 ;
19265 return 0;
19266}
19267_ACEOF
19268rm -f conftest.$ac_objext
19269if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19270 (eval $ac_compile) 2>conftest.er1
a848cd7e 19271 ac_status=$?
ac1cb8d3
VS
19272 grep -v '^ *+' conftest.er1 >conftest.err
19273 rm -f conftest.er1
19274 cat conftest.err >&5
a848cd7e
SC
19275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19276 (exit $ac_status); } &&
3ea50042 19277 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19279 (eval $ac_try) 2>&5
19280 ac_status=$?
19281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19282 (exit $ac_status); }; } &&
19283 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19285 (eval $ac_try) 2>&5
19286 ac_status=$?
19287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19288 (exit $ac_status); }; }; then
19289 ac_lo=0 ac_mid=0
19290 while :; do
19291 cat >conftest.$ac_ext <<_ACEOF
19292/* confdefs.h. */
19293_ACEOF
19294cat confdefs.h >>conftest.$ac_ext
19295cat >>conftest.$ac_ext <<_ACEOF
19296/* end confdefs.h. */
19297$ac_includes_default
19298int
19299main ()
19300{
19301static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
19302test_array [0] = 0
19303
19304 ;
19305 return 0;
19306}
19307_ACEOF
19308rm -f conftest.$ac_objext
19309if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19310 (eval $ac_compile) 2>conftest.er1
a848cd7e 19311 ac_status=$?
ac1cb8d3
VS
19312 grep -v '^ *+' conftest.er1 >conftest.err
19313 rm -f conftest.er1
19314 cat conftest.err >&5
a848cd7e
SC
19315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19316 (exit $ac_status); } &&
3ea50042 19317 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19319 (eval $ac_try) 2>&5
19320 ac_status=$?
19321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19322 (exit $ac_status); }; } &&
19323 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19325 (eval $ac_try) 2>&5
19326 ac_status=$?
19327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19328 (exit $ac_status); }; }; then
19329 ac_hi=$ac_mid; break
19330else
19331 echo "$as_me: failed program was:" >&5
19332sed 's/^/| /' conftest.$ac_ext >&5
19333
19334ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
19335 if test $ac_lo -le $ac_mid; then
19336 ac_lo= ac_hi=
19337 break
19338 fi
19339 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 19340fi
ac1cb8d3 19341rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19342 done
19343else
19344 echo "$as_me: failed program was:" >&5
19345sed 's/^/| /' conftest.$ac_ext >&5
19346
19347cat >conftest.$ac_ext <<_ACEOF
19348/* confdefs.h. */
19349_ACEOF
19350cat confdefs.h >>conftest.$ac_ext
19351cat >>conftest.$ac_ext <<_ACEOF
19352/* end confdefs.h. */
19353$ac_includes_default
19354int
19355main ()
19356{
19357static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
19358test_array [0] = 0
19359
19360 ;
19361 return 0;
19362}
19363_ACEOF
19364rm -f conftest.$ac_objext
19365if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19366 (eval $ac_compile) 2>conftest.er1
a848cd7e 19367 ac_status=$?
ac1cb8d3
VS
19368 grep -v '^ *+' conftest.er1 >conftest.err
19369 rm -f conftest.er1
19370 cat conftest.err >&5
a848cd7e
SC
19371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19372 (exit $ac_status); } &&
3ea50042 19373 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19375 (eval $ac_try) 2>&5
19376 ac_status=$?
19377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19378 (exit $ac_status); }; } &&
19379 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19381 (eval $ac_try) 2>&5
19382 ac_status=$?
19383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19384 (exit $ac_status); }; }; then
19385 ac_hi=-1 ac_mid=-1
19386 while :; do
19387 cat >conftest.$ac_ext <<_ACEOF
19388/* confdefs.h. */
19389_ACEOF
19390cat confdefs.h >>conftest.$ac_ext
19391cat >>conftest.$ac_ext <<_ACEOF
19392/* end confdefs.h. */
19393$ac_includes_default
19394int
19395main ()
19396{
19397static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
19398test_array [0] = 0
19399
19400 ;
19401 return 0;
19402}
19403_ACEOF
19404rm -f conftest.$ac_objext
19405if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19406 (eval $ac_compile) 2>conftest.er1
a848cd7e 19407 ac_status=$?
ac1cb8d3
VS
19408 grep -v '^ *+' conftest.er1 >conftest.err
19409 rm -f conftest.er1
19410 cat conftest.err >&5
a848cd7e
SC
19411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19412 (exit $ac_status); } &&
3ea50042 19413 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19415 (eval $ac_try) 2>&5
19416 ac_status=$?
19417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19418 (exit $ac_status); }; } &&
19419 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19421 (eval $ac_try) 2>&5
19422 ac_status=$?
19423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19424 (exit $ac_status); }; }; then
19425 ac_lo=$ac_mid; break
19426else
19427 echo "$as_me: failed program was:" >&5
19428sed 's/^/| /' conftest.$ac_ext >&5
19429
19430ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
19431 if test $ac_mid -le $ac_hi; then
19432 ac_lo= ac_hi=
19433 break
19434 fi
19435 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 19436fi
ac1cb8d3 19437rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19438 done
19439else
19440 echo "$as_me: failed program was:" >&5
19441sed 's/^/| /' conftest.$ac_ext >&5
19442
19443ac_lo= ac_hi=
19444fi
ac1cb8d3 19445rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 19446fi
ac1cb8d3 19447rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19448# Binary search between lo and hi bounds.
19449while test "x$ac_lo" != "x$ac_hi"; do
19450 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19451 cat >conftest.$ac_ext <<_ACEOF
19452/* confdefs.h. */
19453_ACEOF
19454cat confdefs.h >>conftest.$ac_ext
19455cat >>conftest.$ac_ext <<_ACEOF
19456/* end confdefs.h. */
19457$ac_includes_default
19458int
19459main ()
19460{
19461static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
19462test_array [0] = 0
19463
19464 ;
19465 return 0;
19466}
19467_ACEOF
19468rm -f conftest.$ac_objext
19469if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19470 (eval $ac_compile) 2>conftest.er1
a848cd7e 19471 ac_status=$?
ac1cb8d3
VS
19472 grep -v '^ *+' conftest.er1 >conftest.err
19473 rm -f conftest.er1
19474 cat conftest.err >&5
a848cd7e
SC
19475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19476 (exit $ac_status); } &&
3ea50042 19477 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19479 (eval $ac_try) 2>&5
19480 ac_status=$?
19481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19482 (exit $ac_status); }; } &&
19483 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19485 (eval $ac_try) 2>&5
19486 ac_status=$?
19487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19488 (exit $ac_status); }; }; then
19489 ac_hi=$ac_mid
19490else
19491 echo "$as_me: failed program was:" >&5
19492sed 's/^/| /' conftest.$ac_ext >&5
19493
19494ac_lo=`expr '(' $ac_mid ')' + 1`
19495fi
ac1cb8d3 19496rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19497done
19498case $ac_lo in
19499?*) ac_cv_sizeof_int=$ac_lo;;
19500'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
19501See \`config.log' for more details." >&5
19502echo "$as_me: error: cannot compute sizeof (int), 77
19503See \`config.log' for more details." >&2;}
19504 { (exit 1); exit 1; }; } ;;
19505esac
19506else
19507 if test "$cross_compiling" = yes; then
3ea50042
VZ
19508 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19509echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
19510 { (exit 1); exit 1; }; }
19511else
19512 cat >conftest.$ac_ext <<_ACEOF
19513/* confdefs.h. */
19514_ACEOF
19515cat confdefs.h >>conftest.$ac_ext
19516cat >>conftest.$ac_ext <<_ACEOF
19517/* end confdefs.h. */
19518$ac_includes_default
19519long longval () { return (long) (sizeof (int)); }
19520unsigned long ulongval () { return (long) (sizeof (int)); }
19521#include <stdio.h>
19522#include <stdlib.h>
19523int
19524main ()
19525{
19526
19527 FILE *f = fopen ("conftest.val", "w");
19528 if (! f)
19529 exit (1);
19530 if (((long) (sizeof (int))) < 0)
19531 {
19532 long i = longval ();
19533 if (i != ((long) (sizeof (int))))
19534 exit (1);
19535 fprintf (f, "%ld\n", i);
19536 }
19537 else
19538 {
19539 unsigned long i = ulongval ();
19540 if (i != ((long) (sizeof (int))))
19541 exit (1);
19542 fprintf (f, "%lu\n", i);
19543 }
19544 exit (ferror (f) || fclose (f) != 0);
19545
19546 ;
19547 return 0;
19548}
19549_ACEOF
19550rm -f conftest$ac_exeext
19551if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19552 (eval $ac_link) 2>&5
19553 ac_status=$?
19554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19555 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19557 (eval $ac_try) 2>&5
19558 ac_status=$?
19559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19560 (exit $ac_status); }; }; then
19561 ac_cv_sizeof_int=`cat conftest.val`
19562else
19563 echo "$as_me: program exited with status $ac_status" >&5
19564echo "$as_me: failed program was:" >&5
19565sed 's/^/| /' conftest.$ac_ext >&5
19566
19567( exit $ac_status )
19568{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
19569See \`config.log' for more details." >&5
19570echo "$as_me: error: cannot compute sizeof (int), 77
19571See \`config.log' for more details." >&2;}
19572 { (exit 1); exit 1; }; }
19573fi
ac1cb8d3 19574rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19575fi
19576fi
19577rm -f conftest.val
19578else
19579 ac_cv_sizeof_int=0
19580fi
19581fi
19582echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
19583echo "${ECHO_T}$ac_cv_sizeof_int" >&6
19584cat >>confdefs.h <<_ACEOF
19585#define SIZEOF_INT $ac_cv_sizeof_int
19586_ACEOF
19587
19588
19589echo "$as_me:$LINENO: checking for long" >&5
19590echo $ECHO_N "checking for long... $ECHO_C" >&6
19591if test "${ac_cv_type_long+set}" = set; then
19592 echo $ECHO_N "(cached) $ECHO_C" >&6
19593else
19594 cat >conftest.$ac_ext <<_ACEOF
19595/* confdefs.h. */
19596_ACEOF
19597cat confdefs.h >>conftest.$ac_ext
19598cat >>conftest.$ac_ext <<_ACEOF
19599/* end confdefs.h. */
19600$ac_includes_default
19601int
19602main ()
19603{
19604if ((long *) 0)
19605 return 0;
19606if (sizeof (long))
19607 return 0;
19608 ;
19609 return 0;
19610}
19611_ACEOF
19612rm -f conftest.$ac_objext
19613if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19614 (eval $ac_compile) 2>conftest.er1
a848cd7e 19615 ac_status=$?
ac1cb8d3
VS
19616 grep -v '^ *+' conftest.er1 >conftest.err
19617 rm -f conftest.er1
19618 cat conftest.err >&5
a848cd7e
SC
19619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19620 (exit $ac_status); } &&
3ea50042 19621 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19623 (eval $ac_try) 2>&5
19624 ac_status=$?
19625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19626 (exit $ac_status); }; } &&
19627 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19629 (eval $ac_try) 2>&5
19630 ac_status=$?
19631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19632 (exit $ac_status); }; }; then
19633 ac_cv_type_long=yes
19634else
19635 echo "$as_me: failed program was:" >&5
19636sed 's/^/| /' conftest.$ac_ext >&5
19637
19638ac_cv_type_long=no
19639fi
ac1cb8d3 19640rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19641fi
19642echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
19643echo "${ECHO_T}$ac_cv_type_long" >&6
19644
19645echo "$as_me:$LINENO: checking size of long" >&5
19646echo $ECHO_N "checking size of long... $ECHO_C" >&6
19647if test "${ac_cv_sizeof_long+set}" = set; then
19648 echo $ECHO_N "(cached) $ECHO_C" >&6
19649else
19650 if test "$ac_cv_type_long" = yes; then
19651 # The cast to unsigned long works around a bug in the HP C Compiler
19652 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19653 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19654 # This bug is HP SR number 8606223364.
19655 if test "$cross_compiling" = yes; then
19656 # Depending upon the size, compute the lo and hi bounds.
19657cat >conftest.$ac_ext <<_ACEOF
19658/* confdefs.h. */
19659_ACEOF
19660cat confdefs.h >>conftest.$ac_ext
19661cat >>conftest.$ac_ext <<_ACEOF
19662/* end confdefs.h. */
19663$ac_includes_default
19664int
19665main ()
19666{
19667static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
19668test_array [0] = 0
19669
19670 ;
19671 return 0;
19672}
19673_ACEOF
19674rm -f conftest.$ac_objext
19675if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19676 (eval $ac_compile) 2>conftest.er1
a848cd7e 19677 ac_status=$?
ac1cb8d3
VS
19678 grep -v '^ *+' conftest.er1 >conftest.err
19679 rm -f conftest.er1
19680 cat conftest.err >&5
a848cd7e
SC
19681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19682 (exit $ac_status); } &&
3ea50042 19683 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19685 (eval $ac_try) 2>&5
19686 ac_status=$?
19687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19688 (exit $ac_status); }; } &&
19689 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19691 (eval $ac_try) 2>&5
19692 ac_status=$?
19693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19694 (exit $ac_status); }; }; then
19695 ac_lo=0 ac_mid=0
19696 while :; do
19697 cat >conftest.$ac_ext <<_ACEOF
19698/* confdefs.h. */
19699_ACEOF
19700cat confdefs.h >>conftest.$ac_ext
19701cat >>conftest.$ac_ext <<_ACEOF
19702/* end confdefs.h. */
19703$ac_includes_default
19704int
19705main ()
19706{
19707static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
19708test_array [0] = 0
19709
19710 ;
19711 return 0;
19712}
19713_ACEOF
19714rm -f conftest.$ac_objext
19715if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19716 (eval $ac_compile) 2>conftest.er1
a848cd7e 19717 ac_status=$?
ac1cb8d3
VS
19718 grep -v '^ *+' conftest.er1 >conftest.err
19719 rm -f conftest.er1
19720 cat conftest.err >&5
a848cd7e
SC
19721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19722 (exit $ac_status); } &&
3ea50042 19723 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19725 (eval $ac_try) 2>&5
19726 ac_status=$?
19727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19728 (exit $ac_status); }; } &&
19729 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19731 (eval $ac_try) 2>&5
19732 ac_status=$?
19733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19734 (exit $ac_status); }; }; then
19735 ac_hi=$ac_mid; break
19736else
19737 echo "$as_me: failed program was:" >&5
19738sed 's/^/| /' conftest.$ac_ext >&5
19739
19740ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
19741 if test $ac_lo -le $ac_mid; then
19742 ac_lo= ac_hi=
19743 break
19744 fi
19745 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 19746fi
ac1cb8d3 19747rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19748 done
19749else
19750 echo "$as_me: failed program was:" >&5
19751sed 's/^/| /' conftest.$ac_ext >&5
19752
19753cat >conftest.$ac_ext <<_ACEOF
19754/* confdefs.h. */
19755_ACEOF
19756cat confdefs.h >>conftest.$ac_ext
19757cat >>conftest.$ac_ext <<_ACEOF
19758/* end confdefs.h. */
19759$ac_includes_default
19760int
19761main ()
19762{
19763static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
19764test_array [0] = 0
19765
19766 ;
19767 return 0;
19768}
19769_ACEOF
19770rm -f conftest.$ac_objext
19771if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19772 (eval $ac_compile) 2>conftest.er1
a848cd7e 19773 ac_status=$?
ac1cb8d3
VS
19774 grep -v '^ *+' conftest.er1 >conftest.err
19775 rm -f conftest.er1
19776 cat conftest.err >&5
a848cd7e
SC
19777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19778 (exit $ac_status); } &&
3ea50042 19779 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19781 (eval $ac_try) 2>&5
19782 ac_status=$?
19783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19784 (exit $ac_status); }; } &&
19785 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19787 (eval $ac_try) 2>&5
19788 ac_status=$?
19789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19790 (exit $ac_status); }; }; then
19791 ac_hi=-1 ac_mid=-1
19792 while :; do
19793 cat >conftest.$ac_ext <<_ACEOF
19794/* confdefs.h. */
19795_ACEOF
19796cat confdefs.h >>conftest.$ac_ext
19797cat >>conftest.$ac_ext <<_ACEOF
19798/* end confdefs.h. */
19799$ac_includes_default
19800int
19801main ()
19802{
19803static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
19804test_array [0] = 0
19805
19806 ;
19807 return 0;
19808}
19809_ACEOF
19810rm -f conftest.$ac_objext
19811if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19812 (eval $ac_compile) 2>conftest.er1
a848cd7e 19813 ac_status=$?
ac1cb8d3
VS
19814 grep -v '^ *+' conftest.er1 >conftest.err
19815 rm -f conftest.er1
19816 cat conftest.err >&5
a848cd7e
SC
19817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19818 (exit $ac_status); } &&
3ea50042 19819 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19821 (eval $ac_try) 2>&5
19822 ac_status=$?
19823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19824 (exit $ac_status); }; } &&
19825 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19827 (eval $ac_try) 2>&5
19828 ac_status=$?
19829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19830 (exit $ac_status); }; }; then
19831 ac_lo=$ac_mid; break
19832else
19833 echo "$as_me: failed program was:" >&5
19834sed 's/^/| /' conftest.$ac_ext >&5
19835
19836ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
19837 if test $ac_mid -le $ac_hi; then
19838 ac_lo= ac_hi=
19839 break
19840 fi
19841 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 19842fi
ac1cb8d3 19843rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19844 done
19845else
19846 echo "$as_me: failed program was:" >&5
19847sed 's/^/| /' conftest.$ac_ext >&5
19848
19849ac_lo= ac_hi=
19850fi
ac1cb8d3 19851rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 19852fi
ac1cb8d3 19853rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19854# Binary search between lo and hi bounds.
19855while test "x$ac_lo" != "x$ac_hi"; do
19856 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19857 cat >conftest.$ac_ext <<_ACEOF
19858/* confdefs.h. */
19859_ACEOF
19860cat confdefs.h >>conftest.$ac_ext
19861cat >>conftest.$ac_ext <<_ACEOF
19862/* end confdefs.h. */
19863$ac_includes_default
19864int
19865main ()
19866{
19867static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
19868test_array [0] = 0
19869
19870 ;
19871 return 0;
19872}
19873_ACEOF
19874rm -f conftest.$ac_objext
19875if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19876 (eval $ac_compile) 2>conftest.er1
a848cd7e 19877 ac_status=$?
ac1cb8d3
VS
19878 grep -v '^ *+' conftest.er1 >conftest.err
19879 rm -f conftest.er1
19880 cat conftest.err >&5
a848cd7e
SC
19881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19882 (exit $ac_status); } &&
3ea50042 19883 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19885 (eval $ac_try) 2>&5
19886 ac_status=$?
19887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19888 (exit $ac_status); }; } &&
19889 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19891 (eval $ac_try) 2>&5
19892 ac_status=$?
19893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19894 (exit $ac_status); }; }; then
19895 ac_hi=$ac_mid
19896else
19897 echo "$as_me: failed program was:" >&5
19898sed 's/^/| /' conftest.$ac_ext >&5
19899
19900ac_lo=`expr '(' $ac_mid ')' + 1`
19901fi
ac1cb8d3 19902rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19903done
19904case $ac_lo in
19905?*) ac_cv_sizeof_long=$ac_lo;;
19906'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
19907See \`config.log' for more details." >&5
19908echo "$as_me: error: cannot compute sizeof (long), 77
19909See \`config.log' for more details." >&2;}
19910 { (exit 1); exit 1; }; } ;;
19911esac
19912else
19913 if test "$cross_compiling" = yes; then
3ea50042
VZ
19914 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19915echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
19916 { (exit 1); exit 1; }; }
19917else
19918 cat >conftest.$ac_ext <<_ACEOF
19919/* confdefs.h. */
19920_ACEOF
19921cat confdefs.h >>conftest.$ac_ext
19922cat >>conftest.$ac_ext <<_ACEOF
19923/* end confdefs.h. */
19924$ac_includes_default
19925long longval () { return (long) (sizeof (long)); }
19926unsigned long ulongval () { return (long) (sizeof (long)); }
19927#include <stdio.h>
19928#include <stdlib.h>
19929int
19930main ()
19931{
19932
19933 FILE *f = fopen ("conftest.val", "w");
19934 if (! f)
19935 exit (1);
19936 if (((long) (sizeof (long))) < 0)
19937 {
19938 long i = longval ();
19939 if (i != ((long) (sizeof (long))))
19940 exit (1);
19941 fprintf (f, "%ld\n", i);
19942 }
19943 else
19944 {
19945 unsigned long i = ulongval ();
19946 if (i != ((long) (sizeof (long))))
19947 exit (1);
19948 fprintf (f, "%lu\n", i);
19949 }
19950 exit (ferror (f) || fclose (f) != 0);
19951
19952 ;
19953 return 0;
19954}
19955_ACEOF
19956rm -f conftest$ac_exeext
19957if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19958 (eval $ac_link) 2>&5
19959 ac_status=$?
19960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19961 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19963 (eval $ac_try) 2>&5
19964 ac_status=$?
19965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19966 (exit $ac_status); }; }; then
19967 ac_cv_sizeof_long=`cat conftest.val`
19968else
19969 echo "$as_me: program exited with status $ac_status" >&5
19970echo "$as_me: failed program was:" >&5
19971sed 's/^/| /' conftest.$ac_ext >&5
19972
19973( exit $ac_status )
19974{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
19975See \`config.log' for more details." >&5
19976echo "$as_me: error: cannot compute sizeof (long), 77
19977See \`config.log' for more details." >&2;}
19978 { (exit 1); exit 1; }; }
19979fi
ac1cb8d3 19980rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19981fi
19982fi
19983rm -f conftest.val
19984else
19985 ac_cv_sizeof_long=0
19986fi
19987fi
19988echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
19989echo "${ECHO_T}$ac_cv_sizeof_long" >&6
19990cat >>confdefs.h <<_ACEOF
19991#define SIZEOF_LONG $ac_cv_sizeof_long
19992_ACEOF
19993
19994
19995echo "$as_me:$LINENO: checking for size_t" >&5
19996echo $ECHO_N "checking for size_t... $ECHO_C" >&6
19997if test "${ac_cv_type_size_t+set}" = set; then
19998 echo $ECHO_N "(cached) $ECHO_C" >&6
19999else
20000 cat >conftest.$ac_ext <<_ACEOF
20001/* confdefs.h. */
20002_ACEOF
20003cat confdefs.h >>conftest.$ac_ext
20004cat >>conftest.$ac_ext <<_ACEOF
20005/* end confdefs.h. */
20006$ac_includes_default
20007int
20008main ()
20009{
20010if ((size_t *) 0)
20011 return 0;
20012if (sizeof (size_t))
20013 return 0;
20014 ;
20015 return 0;
20016}
20017_ACEOF
20018rm -f conftest.$ac_objext
20019if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20020 (eval $ac_compile) 2>conftest.er1
a848cd7e 20021 ac_status=$?
ac1cb8d3
VS
20022 grep -v '^ *+' conftest.er1 >conftest.err
20023 rm -f conftest.er1
20024 cat conftest.err >&5
a848cd7e
SC
20025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20026 (exit $ac_status); } &&
3ea50042 20027 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20029 (eval $ac_try) 2>&5
20030 ac_status=$?
20031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20032 (exit $ac_status); }; } &&
20033 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20035 (eval $ac_try) 2>&5
20036 ac_status=$?
20037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20038 (exit $ac_status); }; }; then
20039 ac_cv_type_size_t=yes
20040else
20041 echo "$as_me: failed program was:" >&5
20042sed 's/^/| /' conftest.$ac_ext >&5
20043
20044ac_cv_type_size_t=no
20045fi
ac1cb8d3 20046rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20047fi
20048echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20049echo "${ECHO_T}$ac_cv_type_size_t" >&6
20050
20051echo "$as_me:$LINENO: checking size of size_t" >&5
20052echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
20053if test "${ac_cv_sizeof_size_t+set}" = set; then
20054 echo $ECHO_N "(cached) $ECHO_C" >&6
20055else
20056 if test "$ac_cv_type_size_t" = yes; then
20057 # The cast to unsigned long works around a bug in the HP C Compiler
20058 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20059 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20060 # This bug is HP SR number 8606223364.
20061 if test "$cross_compiling" = yes; then
20062 # Depending upon the size, compute the lo and hi bounds.
20063cat >conftest.$ac_ext <<_ACEOF
20064/* confdefs.h. */
20065_ACEOF
20066cat confdefs.h >>conftest.$ac_ext
20067cat >>conftest.$ac_ext <<_ACEOF
20068/* end confdefs.h. */
20069$ac_includes_default
20070int
20071main ()
20072{
20073static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
20074test_array [0] = 0
20075
20076 ;
20077 return 0;
20078}
20079_ACEOF
20080rm -f conftest.$ac_objext
20081if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20082 (eval $ac_compile) 2>conftest.er1
a848cd7e 20083 ac_status=$?
ac1cb8d3
VS
20084 grep -v '^ *+' conftest.er1 >conftest.err
20085 rm -f conftest.er1
20086 cat conftest.err >&5
a848cd7e
SC
20087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20088 (exit $ac_status); } &&
3ea50042 20089 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20091 (eval $ac_try) 2>&5
20092 ac_status=$?
20093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20094 (exit $ac_status); }; } &&
20095 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20097 (eval $ac_try) 2>&5
20098 ac_status=$?
20099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20100 (exit $ac_status); }; }; then
20101 ac_lo=0 ac_mid=0
20102 while :; do
20103 cat >conftest.$ac_ext <<_ACEOF
20104/* confdefs.h. */
20105_ACEOF
20106cat confdefs.h >>conftest.$ac_ext
20107cat >>conftest.$ac_ext <<_ACEOF
20108/* end confdefs.h. */
20109$ac_includes_default
20110int
20111main ()
20112{
20113static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
20114test_array [0] = 0
20115
20116 ;
20117 return 0;
20118}
20119_ACEOF
20120rm -f conftest.$ac_objext
20121if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20122 (eval $ac_compile) 2>conftest.er1
a848cd7e 20123 ac_status=$?
ac1cb8d3
VS
20124 grep -v '^ *+' conftest.er1 >conftest.err
20125 rm -f conftest.er1
20126 cat conftest.err >&5
a848cd7e
SC
20127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20128 (exit $ac_status); } &&
3ea50042 20129 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20131 (eval $ac_try) 2>&5
20132 ac_status=$?
20133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20134 (exit $ac_status); }; } &&
20135 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20137 (eval $ac_try) 2>&5
20138 ac_status=$?
20139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20140 (exit $ac_status); }; }; then
20141 ac_hi=$ac_mid; break
20142else
20143 echo "$as_me: failed program was:" >&5
20144sed 's/^/| /' conftest.$ac_ext >&5
20145
20146ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
20147 if test $ac_lo -le $ac_mid; then
20148 ac_lo= ac_hi=
20149 break
20150 fi
20151 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 20152fi
ac1cb8d3 20153rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20154 done
20155else
20156 echo "$as_me: failed program was:" >&5
20157sed 's/^/| /' conftest.$ac_ext >&5
20158
20159cat >conftest.$ac_ext <<_ACEOF
20160/* confdefs.h. */
20161_ACEOF
20162cat confdefs.h >>conftest.$ac_ext
20163cat >>conftest.$ac_ext <<_ACEOF
20164/* end confdefs.h. */
20165$ac_includes_default
20166int
20167main ()
20168{
20169static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
20170test_array [0] = 0
20171
20172 ;
20173 return 0;
20174}
20175_ACEOF
20176rm -f conftest.$ac_objext
20177if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20178 (eval $ac_compile) 2>conftest.er1
a848cd7e 20179 ac_status=$?
ac1cb8d3
VS
20180 grep -v '^ *+' conftest.er1 >conftest.err
20181 rm -f conftest.er1
20182 cat conftest.err >&5
a848cd7e
SC
20183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20184 (exit $ac_status); } &&
3ea50042 20185 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20187 (eval $ac_try) 2>&5
20188 ac_status=$?
20189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20190 (exit $ac_status); }; } &&
20191 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20193 (eval $ac_try) 2>&5
20194 ac_status=$?
20195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20196 (exit $ac_status); }; }; then
20197 ac_hi=-1 ac_mid=-1
20198 while :; do
20199 cat >conftest.$ac_ext <<_ACEOF
20200/* confdefs.h. */
20201_ACEOF
20202cat confdefs.h >>conftest.$ac_ext
20203cat >>conftest.$ac_ext <<_ACEOF
20204/* end confdefs.h. */
20205$ac_includes_default
20206int
20207main ()
20208{
20209static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
20210test_array [0] = 0
20211
20212 ;
20213 return 0;
20214}
20215_ACEOF
20216rm -f conftest.$ac_objext
20217if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20218 (eval $ac_compile) 2>conftest.er1
a848cd7e 20219 ac_status=$?
ac1cb8d3
VS
20220 grep -v '^ *+' conftest.er1 >conftest.err
20221 rm -f conftest.er1
20222 cat conftest.err >&5
a848cd7e
SC
20223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20224 (exit $ac_status); } &&
3ea50042 20225 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20227 (eval $ac_try) 2>&5
20228 ac_status=$?
20229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20230 (exit $ac_status); }; } &&
20231 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20233 (eval $ac_try) 2>&5
20234 ac_status=$?
20235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20236 (exit $ac_status); }; }; then
20237 ac_lo=$ac_mid; break
20238else
20239 echo "$as_me: failed program was:" >&5
20240sed 's/^/| /' conftest.$ac_ext >&5
20241
20242ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
20243 if test $ac_mid -le $ac_hi; then
20244 ac_lo= ac_hi=
20245 break
20246 fi
20247 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 20248fi
ac1cb8d3 20249rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20250 done
20251else
20252 echo "$as_me: failed program was:" >&5
20253sed 's/^/| /' conftest.$ac_ext >&5
20254
20255ac_lo= ac_hi=
20256fi
ac1cb8d3 20257rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 20258fi
ac1cb8d3 20259rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20260# Binary search between lo and hi bounds.
20261while test "x$ac_lo" != "x$ac_hi"; do
20262 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20263 cat >conftest.$ac_ext <<_ACEOF
20264/* confdefs.h. */
20265_ACEOF
20266cat confdefs.h >>conftest.$ac_ext
20267cat >>conftest.$ac_ext <<_ACEOF
20268/* end confdefs.h. */
20269$ac_includes_default
20270int
20271main ()
20272{
20273static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
20274test_array [0] = 0
20275
20276 ;
20277 return 0;
20278}
20279_ACEOF
20280rm -f conftest.$ac_objext
20281if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20282 (eval $ac_compile) 2>conftest.er1
a848cd7e 20283 ac_status=$?
ac1cb8d3
VS
20284 grep -v '^ *+' conftest.er1 >conftest.err
20285 rm -f conftest.er1
20286 cat conftest.err >&5
a848cd7e
SC
20287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20288 (exit $ac_status); } &&
3ea50042 20289 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20291 (eval $ac_try) 2>&5
20292 ac_status=$?
20293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20294 (exit $ac_status); }; } &&
20295 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20297 (eval $ac_try) 2>&5
20298 ac_status=$?
20299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20300 (exit $ac_status); }; }; then
20301 ac_hi=$ac_mid
20302else
20303 echo "$as_me: failed program was:" >&5
20304sed 's/^/| /' conftest.$ac_ext >&5
20305
20306ac_lo=`expr '(' $ac_mid ')' + 1`
20307fi
ac1cb8d3 20308rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20309done
20310case $ac_lo in
20311?*) ac_cv_sizeof_size_t=$ac_lo;;
20312'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
20313See \`config.log' for more details." >&5
20314echo "$as_me: error: cannot compute sizeof (size_t), 77
20315See \`config.log' for more details." >&2;}
20316 { (exit 1); exit 1; }; } ;;
20317esac
20318else
20319 if test "$cross_compiling" = yes; then
3ea50042
VZ
20320 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
20321echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
20322 { (exit 1); exit 1; }; }
20323else
20324 cat >conftest.$ac_ext <<_ACEOF
20325/* confdefs.h. */
20326_ACEOF
20327cat confdefs.h >>conftest.$ac_ext
20328cat >>conftest.$ac_ext <<_ACEOF
20329/* end confdefs.h. */
20330$ac_includes_default
20331long longval () { return (long) (sizeof (size_t)); }
20332unsigned long ulongval () { return (long) (sizeof (size_t)); }
20333#include <stdio.h>
20334#include <stdlib.h>
20335int
20336main ()
20337{
20338
20339 FILE *f = fopen ("conftest.val", "w");
20340 if (! f)
20341 exit (1);
20342 if (((long) (sizeof (size_t))) < 0)
20343 {
20344 long i = longval ();
20345 if (i != ((long) (sizeof (size_t))))
20346 exit (1);
20347 fprintf (f, "%ld\n", i);
20348 }
20349 else
20350 {
20351 unsigned long i = ulongval ();
20352 if (i != ((long) (sizeof (size_t))))
20353 exit (1);
20354 fprintf (f, "%lu\n", i);
20355 }
20356 exit (ferror (f) || fclose (f) != 0);
20357
20358 ;
20359 return 0;
20360}
20361_ACEOF
20362rm -f conftest$ac_exeext
20363if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20364 (eval $ac_link) 2>&5
20365 ac_status=$?
20366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20367 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20369 (eval $ac_try) 2>&5
20370 ac_status=$?
20371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20372 (exit $ac_status); }; }; then
20373 ac_cv_sizeof_size_t=`cat conftest.val`
20374else
20375 echo "$as_me: program exited with status $ac_status" >&5
20376echo "$as_me: failed program was:" >&5
20377sed 's/^/| /' conftest.$ac_ext >&5
20378
20379( exit $ac_status )
20380{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
20381See \`config.log' for more details." >&5
20382echo "$as_me: error: cannot compute sizeof (size_t), 77
20383See \`config.log' for more details." >&2;}
20384 { (exit 1); exit 1; }; }
20385fi
ac1cb8d3 20386rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20387fi
20388fi
20389rm -f conftest.val
20390else
20391 ac_cv_sizeof_size_t=0
20392fi
20393fi
20394echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
20395echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
20396cat >>confdefs.h <<_ACEOF
20397#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
20398_ACEOF
20399
20400
20401
20402case "${host}" in
20403 arm-*-linux* )
20404 echo "$as_me:$LINENO: checking for long long" >&5
20405echo $ECHO_N "checking for long long... $ECHO_C" >&6
20406if test "${ac_cv_type_long_long+set}" = set; then
20407 echo $ECHO_N "(cached) $ECHO_C" >&6
20408else
20409 cat >conftest.$ac_ext <<_ACEOF
20410/* confdefs.h. */
20411_ACEOF
20412cat confdefs.h >>conftest.$ac_ext
20413cat >>conftest.$ac_ext <<_ACEOF
20414/* end confdefs.h. */
20415$ac_includes_default
20416int
20417main ()
20418{
20419if ((long long *) 0)
20420 return 0;
20421if (sizeof (long long))
20422 return 0;
20423 ;
20424 return 0;
20425}
20426_ACEOF
20427rm -f conftest.$ac_objext
20428if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20429 (eval $ac_compile) 2>conftest.er1
a848cd7e 20430 ac_status=$?
ac1cb8d3
VS
20431 grep -v '^ *+' conftest.er1 >conftest.err
20432 rm -f conftest.er1
20433 cat conftest.err >&5
a848cd7e
SC
20434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20435 (exit $ac_status); } &&
3ea50042 20436 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20438 (eval $ac_try) 2>&5
20439 ac_status=$?
20440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20441 (exit $ac_status); }; } &&
20442 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20444 (eval $ac_try) 2>&5
20445 ac_status=$?
20446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20447 (exit $ac_status); }; }; then
20448 ac_cv_type_long_long=yes
20449else
20450 echo "$as_me: failed program was:" >&5
20451sed 's/^/| /' conftest.$ac_ext >&5
20452
20453ac_cv_type_long_long=no
20454fi
ac1cb8d3 20455rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20456fi
20457echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
20458echo "${ECHO_T}$ac_cv_type_long_long" >&6
20459
20460echo "$as_me:$LINENO: checking size of long long" >&5
20461echo $ECHO_N "checking size of long long... $ECHO_C" >&6
20462if test "${ac_cv_sizeof_long_long+set}" = set; then
20463 echo $ECHO_N "(cached) $ECHO_C" >&6
20464else
20465 if test "$ac_cv_type_long_long" = yes; then
20466 # The cast to unsigned long works around a bug in the HP C Compiler
20467 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20468 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20469 # This bug is HP SR number 8606223364.
20470 if test "$cross_compiling" = yes; then
20471 # Depending upon the size, compute the lo and hi bounds.
20472cat >conftest.$ac_ext <<_ACEOF
20473/* confdefs.h. */
20474_ACEOF
20475cat confdefs.h >>conftest.$ac_ext
20476cat >>conftest.$ac_ext <<_ACEOF
20477/* end confdefs.h. */
20478$ac_includes_default
20479int
20480main ()
20481{
20482static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
20483test_array [0] = 0
20484
20485 ;
20486 return 0;
20487}
20488_ACEOF
20489rm -f conftest.$ac_objext
20490if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20491 (eval $ac_compile) 2>conftest.er1
a848cd7e 20492 ac_status=$?
ac1cb8d3
VS
20493 grep -v '^ *+' conftest.er1 >conftest.err
20494 rm -f conftest.er1
20495 cat conftest.err >&5
a848cd7e
SC
20496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20497 (exit $ac_status); } &&
3ea50042 20498 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20500 (eval $ac_try) 2>&5
20501 ac_status=$?
20502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20503 (exit $ac_status); }; } &&
20504 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20506 (eval $ac_try) 2>&5
20507 ac_status=$?
20508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20509 (exit $ac_status); }; }; then
20510 ac_lo=0 ac_mid=0
20511 while :; do
20512 cat >conftest.$ac_ext <<_ACEOF
20513/* confdefs.h. */
20514_ACEOF
20515cat confdefs.h >>conftest.$ac_ext
20516cat >>conftest.$ac_ext <<_ACEOF
20517/* end confdefs.h. */
20518$ac_includes_default
20519int
20520main ()
20521{
20522static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20523test_array [0] = 0
20524
20525 ;
20526 return 0;
20527}
20528_ACEOF
20529rm -f conftest.$ac_objext
20530if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20531 (eval $ac_compile) 2>conftest.er1
a848cd7e 20532 ac_status=$?
ac1cb8d3
VS
20533 grep -v '^ *+' conftest.er1 >conftest.err
20534 rm -f conftest.er1
20535 cat conftest.err >&5
a848cd7e
SC
20536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20537 (exit $ac_status); } &&
3ea50042 20538 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20540 (eval $ac_try) 2>&5
20541 ac_status=$?
20542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20543 (exit $ac_status); }; } &&
20544 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20546 (eval $ac_try) 2>&5
20547 ac_status=$?
20548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20549 (exit $ac_status); }; }; then
20550 ac_hi=$ac_mid; break
20551else
20552 echo "$as_me: failed program was:" >&5
20553sed 's/^/| /' conftest.$ac_ext >&5
20554
20555ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
20556 if test $ac_lo -le $ac_mid; then
20557 ac_lo= ac_hi=
20558 break
20559 fi
20560 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 20561fi
ac1cb8d3 20562rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20563 done
20564else
20565 echo "$as_me: failed program was:" >&5
20566sed 's/^/| /' conftest.$ac_ext >&5
20567
20568cat >conftest.$ac_ext <<_ACEOF
20569/* confdefs.h. */
20570_ACEOF
20571cat confdefs.h >>conftest.$ac_ext
20572cat >>conftest.$ac_ext <<_ACEOF
20573/* end confdefs.h. */
20574$ac_includes_default
20575int
20576main ()
20577{
20578static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
20579test_array [0] = 0
20580
20581 ;
20582 return 0;
20583}
20584_ACEOF
20585rm -f conftest.$ac_objext
20586if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20587 (eval $ac_compile) 2>conftest.er1
a848cd7e 20588 ac_status=$?
ac1cb8d3
VS
20589 grep -v '^ *+' conftest.er1 >conftest.err
20590 rm -f conftest.er1
20591 cat conftest.err >&5
a848cd7e
SC
20592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20593 (exit $ac_status); } &&
3ea50042 20594 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
20600 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20602 (eval $ac_try) 2>&5
20603 ac_status=$?
20604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20605 (exit $ac_status); }; }; then
20606 ac_hi=-1 ac_mid=-1
20607 while :; do
20608 cat >conftest.$ac_ext <<_ACEOF
20609/* confdefs.h. */
20610_ACEOF
20611cat confdefs.h >>conftest.$ac_ext
20612cat >>conftest.$ac_ext <<_ACEOF
20613/* end confdefs.h. */
20614$ac_includes_default
20615int
20616main ()
20617{
20618static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
20619test_array [0] = 0
20620
20621 ;
20622 return 0;
20623}
20624_ACEOF
20625rm -f conftest.$ac_objext
20626if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20627 (eval $ac_compile) 2>conftest.er1
a848cd7e 20628 ac_status=$?
ac1cb8d3
VS
20629 grep -v '^ *+' conftest.er1 >conftest.err
20630 rm -f conftest.er1
20631 cat conftest.err >&5
a848cd7e
SC
20632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20633 (exit $ac_status); } &&
3ea50042 20634 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20636 (eval $ac_try) 2>&5
20637 ac_status=$?
20638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20639 (exit $ac_status); }; } &&
20640 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20642 (eval $ac_try) 2>&5
20643 ac_status=$?
20644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20645 (exit $ac_status); }; }; then
20646 ac_lo=$ac_mid; break
20647else
20648 echo "$as_me: failed program was:" >&5
20649sed 's/^/| /' conftest.$ac_ext >&5
20650
20651ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
20652 if test $ac_mid -le $ac_hi; then
20653 ac_lo= ac_hi=
20654 break
20655 fi
20656 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 20657fi
ac1cb8d3 20658rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20659 done
20660else
20661 echo "$as_me: failed program was:" >&5
20662sed 's/^/| /' conftest.$ac_ext >&5
20663
20664ac_lo= ac_hi=
20665fi
ac1cb8d3 20666rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 20667fi
ac1cb8d3 20668rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20669# Binary search between lo and hi bounds.
20670while test "x$ac_lo" != "x$ac_hi"; do
20671 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20672 cat >conftest.$ac_ext <<_ACEOF
20673/* confdefs.h. */
20674_ACEOF
20675cat confdefs.h >>conftest.$ac_ext
20676cat >>conftest.$ac_ext <<_ACEOF
20677/* end confdefs.h. */
20678$ac_includes_default
20679int
20680main ()
20681{
20682static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20683test_array [0] = 0
20684
20685 ;
20686 return 0;
20687}
20688_ACEOF
20689rm -f conftest.$ac_objext
20690if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20691 (eval $ac_compile) 2>conftest.er1
a848cd7e 20692 ac_status=$?
ac1cb8d3
VS
20693 grep -v '^ *+' conftest.er1 >conftest.err
20694 rm -f conftest.er1
20695 cat conftest.err >&5
a848cd7e
SC
20696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20697 (exit $ac_status); } &&
3ea50042 20698 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20700 (eval $ac_try) 2>&5
20701 ac_status=$?
20702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20703 (exit $ac_status); }; } &&
20704 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20706 (eval $ac_try) 2>&5
20707 ac_status=$?
20708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20709 (exit $ac_status); }; }; then
20710 ac_hi=$ac_mid
20711else
20712 echo "$as_me: failed program was:" >&5
20713sed 's/^/| /' conftest.$ac_ext >&5
20714
20715ac_lo=`expr '(' $ac_mid ')' + 1`
20716fi
ac1cb8d3 20717rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20718done
20719case $ac_lo in
20720?*) ac_cv_sizeof_long_long=$ac_lo;;
20721'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20722See \`config.log' for more details." >&5
20723echo "$as_me: error: cannot compute sizeof (long long), 77
20724See \`config.log' for more details." >&2;}
20725 { (exit 1); exit 1; }; } ;;
20726esac
20727else
20728 if test "$cross_compiling" = yes; then
3ea50042
VZ
20729 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
20730echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
20731 { (exit 1); exit 1; }; }
20732else
20733 cat >conftest.$ac_ext <<_ACEOF
20734/* confdefs.h. */
20735_ACEOF
20736cat confdefs.h >>conftest.$ac_ext
20737cat >>conftest.$ac_ext <<_ACEOF
20738/* end confdefs.h. */
20739$ac_includes_default
20740long longval () { return (long) (sizeof (long long)); }
20741unsigned long ulongval () { return (long) (sizeof (long long)); }
20742#include <stdio.h>
20743#include <stdlib.h>
20744int
20745main ()
20746{
20747
20748 FILE *f = fopen ("conftest.val", "w");
20749 if (! f)
20750 exit (1);
20751 if (((long) (sizeof (long long))) < 0)
20752 {
20753 long i = longval ();
20754 if (i != ((long) (sizeof (long long))))
20755 exit (1);
20756 fprintf (f, "%ld\n", i);
20757 }
20758 else
20759 {
20760 unsigned long i = ulongval ();
20761 if (i != ((long) (sizeof (long long))))
20762 exit (1);
20763 fprintf (f, "%lu\n", i);
20764 }
20765 exit (ferror (f) || fclose (f) != 0);
20766
20767 ;
20768 return 0;
20769}
20770_ACEOF
20771rm -f conftest$ac_exeext
20772if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20773 (eval $ac_link) 2>&5
20774 ac_status=$?
20775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20776 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20778 (eval $ac_try) 2>&5
20779 ac_status=$?
20780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20781 (exit $ac_status); }; }; then
20782 ac_cv_sizeof_long_long=`cat conftest.val`
20783else
20784 echo "$as_me: program exited with status $ac_status" >&5
20785echo "$as_me: failed program was:" >&5
20786sed 's/^/| /' conftest.$ac_ext >&5
20787
20788( exit $ac_status )
20789{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20790See \`config.log' for more details." >&5
20791echo "$as_me: error: cannot compute sizeof (long long), 77
20792See \`config.log' for more details." >&2;}
20793 { (exit 1); exit 1; }; }
20794fi
ac1cb8d3 20795rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20796fi
20797fi
20798rm -f conftest.val
20799else
20800 ac_cv_sizeof_long_long=0
20801fi
20802fi
20803echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
20804echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
20805cat >>confdefs.h <<_ACEOF
20806#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
20807_ACEOF
20808
20809
20810 ;;
20811 *-hp-hpux* )
20812 echo "$as_me:$LINENO: checking for long long" >&5
20813echo $ECHO_N "checking for long long... $ECHO_C" >&6
20814if test "${ac_cv_type_long_long+set}" = set; then
20815 echo $ECHO_N "(cached) $ECHO_C" >&6
20816else
20817 cat >conftest.$ac_ext <<_ACEOF
20818/* confdefs.h. */
20819_ACEOF
20820cat confdefs.h >>conftest.$ac_ext
20821cat >>conftest.$ac_ext <<_ACEOF
20822/* end confdefs.h. */
20823$ac_includes_default
20824int
20825main ()
20826{
20827if ((long long *) 0)
20828 return 0;
20829if (sizeof (long long))
20830 return 0;
20831 ;
20832 return 0;
20833}
20834_ACEOF
20835rm -f conftest.$ac_objext
20836if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20837 (eval $ac_compile) 2>conftest.er1
a848cd7e 20838 ac_status=$?
ac1cb8d3
VS
20839 grep -v '^ *+' conftest.er1 >conftest.err
20840 rm -f conftest.er1
20841 cat conftest.err >&5
a848cd7e
SC
20842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20843 (exit $ac_status); } &&
3ea50042 20844 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20846 (eval $ac_try) 2>&5
20847 ac_status=$?
20848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20849 (exit $ac_status); }; } &&
20850 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20852 (eval $ac_try) 2>&5
20853 ac_status=$?
20854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20855 (exit $ac_status); }; }; then
20856 ac_cv_type_long_long=yes
20857else
20858 echo "$as_me: failed program was:" >&5
20859sed 's/^/| /' conftest.$ac_ext >&5
20860
20861ac_cv_type_long_long=no
20862fi
ac1cb8d3 20863rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20864fi
20865echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
20866echo "${ECHO_T}$ac_cv_type_long_long" >&6
20867
20868echo "$as_me:$LINENO: checking size of long long" >&5
20869echo $ECHO_N "checking size of long long... $ECHO_C" >&6
20870if test "${ac_cv_sizeof_long_long+set}" = set; then
20871 echo $ECHO_N "(cached) $ECHO_C" >&6
20872else
20873 if test "$ac_cv_type_long_long" = yes; then
20874 # The cast to unsigned long works around a bug in the HP C Compiler
20875 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20876 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20877 # This bug is HP SR number 8606223364.
20878 if test "$cross_compiling" = yes; then
20879 # Depending upon the size, compute the lo and hi bounds.
20880cat >conftest.$ac_ext <<_ACEOF
20881/* confdefs.h. */
20882_ACEOF
20883cat confdefs.h >>conftest.$ac_ext
20884cat >>conftest.$ac_ext <<_ACEOF
20885/* end confdefs.h. */
20886$ac_includes_default
20887int
20888main ()
20889{
20890static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
20891test_array [0] = 0
20892
20893 ;
20894 return 0;
20895}
20896_ACEOF
20897rm -f conftest.$ac_objext
20898if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20899 (eval $ac_compile) 2>conftest.er1
a848cd7e 20900 ac_status=$?
ac1cb8d3
VS
20901 grep -v '^ *+' conftest.er1 >conftest.err
20902 rm -f conftest.er1
20903 cat conftest.err >&5
a848cd7e
SC
20904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20905 (exit $ac_status); } &&
3ea50042 20906 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20908 (eval $ac_try) 2>&5
20909 ac_status=$?
20910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20911 (exit $ac_status); }; } &&
20912 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20914 (eval $ac_try) 2>&5
20915 ac_status=$?
20916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20917 (exit $ac_status); }; }; then
20918 ac_lo=0 ac_mid=0
20919 while :; do
20920 cat >conftest.$ac_ext <<_ACEOF
20921/* confdefs.h. */
20922_ACEOF
20923cat confdefs.h >>conftest.$ac_ext
20924cat >>conftest.$ac_ext <<_ACEOF
20925/* end confdefs.h. */
20926$ac_includes_default
20927int
20928main ()
20929{
20930static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20931test_array [0] = 0
20932
20933 ;
20934 return 0;
20935}
20936_ACEOF
20937rm -f conftest.$ac_objext
20938if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20939 (eval $ac_compile) 2>conftest.er1
a848cd7e 20940 ac_status=$?
ac1cb8d3
VS
20941 grep -v '^ *+' conftest.er1 >conftest.err
20942 rm -f conftest.er1
20943 cat conftest.err >&5
a848cd7e
SC
20944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20945 (exit $ac_status); } &&
3ea50042 20946 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20948 (eval $ac_try) 2>&5
20949 ac_status=$?
20950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20951 (exit $ac_status); }; } &&
20952 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20954 (eval $ac_try) 2>&5
20955 ac_status=$?
20956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20957 (exit $ac_status); }; }; then
20958 ac_hi=$ac_mid; break
20959else
20960 echo "$as_me: failed program was:" >&5
20961sed 's/^/| /' conftest.$ac_ext >&5
20962
20963ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
20964 if test $ac_lo -le $ac_mid; then
20965 ac_lo= ac_hi=
20966 break
20967 fi
20968 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 20969fi
ac1cb8d3 20970rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20971 done
20972else
20973 echo "$as_me: failed program was:" >&5
20974sed 's/^/| /' conftest.$ac_ext >&5
20975
20976cat >conftest.$ac_ext <<_ACEOF
20977/* confdefs.h. */
20978_ACEOF
20979cat confdefs.h >>conftest.$ac_ext
20980cat >>conftest.$ac_ext <<_ACEOF
20981/* end confdefs.h. */
20982$ac_includes_default
20983int
20984main ()
20985{
20986static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
20987test_array [0] = 0
20988
20989 ;
20990 return 0;
20991}
20992_ACEOF
20993rm -f conftest.$ac_objext
20994if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20995 (eval $ac_compile) 2>conftest.er1
a848cd7e 20996 ac_status=$?
ac1cb8d3
VS
20997 grep -v '^ *+' conftest.er1 >conftest.err
20998 rm -f conftest.er1
20999 cat conftest.err >&5
a848cd7e
SC
21000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21001 (exit $ac_status); } &&
3ea50042 21002 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21004 (eval $ac_try) 2>&5
21005 ac_status=$?
21006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21007 (exit $ac_status); }; } &&
21008 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21010 (eval $ac_try) 2>&5
21011 ac_status=$?
21012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21013 (exit $ac_status); }; }; then
21014 ac_hi=-1 ac_mid=-1
21015 while :; do
21016 cat >conftest.$ac_ext <<_ACEOF
21017/* confdefs.h. */
21018_ACEOF
21019cat confdefs.h >>conftest.$ac_ext
21020cat >>conftest.$ac_ext <<_ACEOF
21021/* end confdefs.h. */
21022$ac_includes_default
21023int
21024main ()
21025{
21026static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
21027test_array [0] = 0
21028
21029 ;
21030 return 0;
21031}
21032_ACEOF
21033rm -f conftest.$ac_objext
21034if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21035 (eval $ac_compile) 2>conftest.er1
a848cd7e 21036 ac_status=$?
ac1cb8d3
VS
21037 grep -v '^ *+' conftest.er1 >conftest.err
21038 rm -f conftest.er1
21039 cat conftest.err >&5
a848cd7e
SC
21040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21041 (exit $ac_status); } &&
3ea50042 21042 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21044 (eval $ac_try) 2>&5
21045 ac_status=$?
21046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21047 (exit $ac_status); }; } &&
21048 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21050 (eval $ac_try) 2>&5
21051 ac_status=$?
21052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21053 (exit $ac_status); }; }; then
21054 ac_lo=$ac_mid; break
21055else
21056 echo "$as_me: failed program was:" >&5
21057sed 's/^/| /' conftest.$ac_ext >&5
21058
21059ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
21060 if test $ac_mid -le $ac_hi; then
21061 ac_lo= ac_hi=
21062 break
21063 fi
21064 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 21065fi
ac1cb8d3 21066rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21067 done
21068else
21069 echo "$as_me: failed program was:" >&5
21070sed 's/^/| /' conftest.$ac_ext >&5
21071
21072ac_lo= ac_hi=
21073fi
ac1cb8d3 21074rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 21075fi
ac1cb8d3 21076rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21077# Binary search between lo and hi bounds.
21078while test "x$ac_lo" != "x$ac_hi"; do
21079 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21080 cat >conftest.$ac_ext <<_ACEOF
21081/* confdefs.h. */
21082_ACEOF
21083cat confdefs.h >>conftest.$ac_ext
21084cat >>conftest.$ac_ext <<_ACEOF
21085/* end confdefs.h. */
21086$ac_includes_default
21087int
21088main ()
21089{
21090static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
21091test_array [0] = 0
21092
21093 ;
21094 return 0;
21095}
21096_ACEOF
21097rm -f conftest.$ac_objext
21098if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21099 (eval $ac_compile) 2>conftest.er1
a848cd7e 21100 ac_status=$?
ac1cb8d3
VS
21101 grep -v '^ *+' conftest.er1 >conftest.err
21102 rm -f conftest.er1
21103 cat conftest.err >&5
a848cd7e
SC
21104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21105 (exit $ac_status); } &&
3ea50042 21106 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21108 (eval $ac_try) 2>&5
21109 ac_status=$?
21110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21111 (exit $ac_status); }; } &&
21112 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21114 (eval $ac_try) 2>&5
21115 ac_status=$?
21116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21117 (exit $ac_status); }; }; then
21118 ac_hi=$ac_mid
21119else
21120 echo "$as_me: failed program was:" >&5
21121sed 's/^/| /' conftest.$ac_ext >&5
21122
21123ac_lo=`expr '(' $ac_mid ')' + 1`
21124fi
ac1cb8d3 21125rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21126done
21127case $ac_lo in
21128?*) ac_cv_sizeof_long_long=$ac_lo;;
21129'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
21130See \`config.log' for more details." >&5
21131echo "$as_me: error: cannot compute sizeof (long long), 77
21132See \`config.log' for more details." >&2;}
21133 { (exit 1); exit 1; }; } ;;
21134esac
21135else
21136 if test "$cross_compiling" = yes; then
3ea50042
VZ
21137 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
21138echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
21139 { (exit 1); exit 1; }; }
21140else
21141 cat >conftest.$ac_ext <<_ACEOF
21142/* confdefs.h. */
21143_ACEOF
21144cat confdefs.h >>conftest.$ac_ext
21145cat >>conftest.$ac_ext <<_ACEOF
21146/* end confdefs.h. */
21147$ac_includes_default
21148long longval () { return (long) (sizeof (long long)); }
21149unsigned long ulongval () { return (long) (sizeof (long long)); }
21150#include <stdio.h>
21151#include <stdlib.h>
21152int
21153main ()
21154{
21155
21156 FILE *f = fopen ("conftest.val", "w");
21157 if (! f)
21158 exit (1);
21159 if (((long) (sizeof (long long))) < 0)
21160 {
21161 long i = longval ();
21162 if (i != ((long) (sizeof (long long))))
21163 exit (1);
21164 fprintf (f, "%ld\n", i);
21165 }
21166 else
21167 {
21168 unsigned long i = ulongval ();
21169 if (i != ((long) (sizeof (long long))))
21170 exit (1);
21171 fprintf (f, "%lu\n", i);
21172 }
21173 exit (ferror (f) || fclose (f) != 0);
21174
21175 ;
21176 return 0;
21177}
21178_ACEOF
21179rm -f conftest$ac_exeext
21180if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21181 (eval $ac_link) 2>&5
21182 ac_status=$?
21183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21184 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21186 (eval $ac_try) 2>&5
21187 ac_status=$?
21188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21189 (exit $ac_status); }; }; then
21190 ac_cv_sizeof_long_long=`cat conftest.val`
21191else
21192 echo "$as_me: program exited with status $ac_status" >&5
21193echo "$as_me: failed program was:" >&5
21194sed 's/^/| /' conftest.$ac_ext >&5
21195
21196( exit $ac_status )
21197{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
21198See \`config.log' for more details." >&5
21199echo "$as_me: error: cannot compute sizeof (long long), 77
21200See \`config.log' for more details." >&2;}
21201 { (exit 1); exit 1; }; }
21202fi
ac1cb8d3 21203rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21204fi
21205fi
21206rm -f conftest.val
21207else
21208 ac_cv_sizeof_long_long=0
21209fi
21210fi
21211echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
21212echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
21213cat >>confdefs.h <<_ACEOF
21214#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
21215_ACEOF
21216
21217
21218 if test "$ac_cv_sizeof_long_long" != "0"; then
c92ad099 21219 CPPFLAGS="-D_INCLUDE_LONGLONG $CPPFLAGS"
a848cd7e
SC
21220 fi
21221 ;;
21222 * )
21223 echo "$as_me:$LINENO: checking for long long" >&5
21224echo $ECHO_N "checking for long long... $ECHO_C" >&6
21225if test "${ac_cv_type_long_long+set}" = set; then
21226 echo $ECHO_N "(cached) $ECHO_C" >&6
21227else
21228 cat >conftest.$ac_ext <<_ACEOF
21229/* confdefs.h. */
21230_ACEOF
21231cat confdefs.h >>conftest.$ac_ext
21232cat >>conftest.$ac_ext <<_ACEOF
21233/* end confdefs.h. */
21234$ac_includes_default
21235int
21236main ()
21237{
21238if ((long long *) 0)
21239 return 0;
21240if (sizeof (long long))
21241 return 0;
21242 ;
21243 return 0;
21244}
21245_ACEOF
21246rm -f conftest.$ac_objext
21247if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21248 (eval $ac_compile) 2>conftest.er1
a848cd7e 21249 ac_status=$?
ac1cb8d3
VS
21250 grep -v '^ *+' conftest.er1 >conftest.err
21251 rm -f conftest.er1
21252 cat conftest.err >&5
a848cd7e
SC
21253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21254 (exit $ac_status); } &&
3ea50042 21255 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21257 (eval $ac_try) 2>&5
21258 ac_status=$?
21259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21260 (exit $ac_status); }; } &&
21261 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21263 (eval $ac_try) 2>&5
21264 ac_status=$?
21265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21266 (exit $ac_status); }; }; then
21267 ac_cv_type_long_long=yes
21268else
21269 echo "$as_me: failed program was:" >&5
21270sed 's/^/| /' conftest.$ac_ext >&5
21271
21272ac_cv_type_long_long=no
21273fi
ac1cb8d3 21274rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21275fi
21276echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
21277echo "${ECHO_T}$ac_cv_type_long_long" >&6
21278
21279echo "$as_me:$LINENO: checking size of long long" >&5
21280echo $ECHO_N "checking size of long long... $ECHO_C" >&6
21281if test "${ac_cv_sizeof_long_long+set}" = set; then
21282 echo $ECHO_N "(cached) $ECHO_C" >&6
21283else
21284 if test "$ac_cv_type_long_long" = yes; then
21285 # The cast to unsigned long works around a bug in the HP C Compiler
21286 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21287 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21288 # This bug is HP SR number 8606223364.
21289 if test "$cross_compiling" = yes; then
21290 # Depending upon the size, compute the lo and hi bounds.
21291cat >conftest.$ac_ext <<_ACEOF
21292/* confdefs.h. */
21293_ACEOF
21294cat confdefs.h >>conftest.$ac_ext
21295cat >>conftest.$ac_ext <<_ACEOF
21296/* end confdefs.h. */
21297$ac_includes_default
21298int
21299main ()
21300{
21301static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
21302test_array [0] = 0
21303
21304 ;
21305 return 0;
21306}
21307_ACEOF
21308rm -f conftest.$ac_objext
21309if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21310 (eval $ac_compile) 2>conftest.er1
a848cd7e 21311 ac_status=$?
ac1cb8d3
VS
21312 grep -v '^ *+' conftest.er1 >conftest.err
21313 rm -f conftest.er1
21314 cat conftest.err >&5
a848cd7e
SC
21315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21316 (exit $ac_status); } &&
3ea50042 21317 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21319 (eval $ac_try) 2>&5
21320 ac_status=$?
21321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21322 (exit $ac_status); }; } &&
21323 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21325 (eval $ac_try) 2>&5
21326 ac_status=$?
21327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21328 (exit $ac_status); }; }; then
21329 ac_lo=0 ac_mid=0
21330 while :; do
21331 cat >conftest.$ac_ext <<_ACEOF
21332/* confdefs.h. */
21333_ACEOF
21334cat confdefs.h >>conftest.$ac_ext
21335cat >>conftest.$ac_ext <<_ACEOF
21336/* end confdefs.h. */
21337$ac_includes_default
21338int
21339main ()
21340{
21341static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
21342test_array [0] = 0
21343
21344 ;
21345 return 0;
21346}
21347_ACEOF
21348rm -f conftest.$ac_objext
21349if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21350 (eval $ac_compile) 2>conftest.er1
a848cd7e 21351 ac_status=$?
ac1cb8d3
VS
21352 grep -v '^ *+' conftest.er1 >conftest.err
21353 rm -f conftest.er1
21354 cat conftest.err >&5
a848cd7e
SC
21355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21356 (exit $ac_status); } &&
3ea50042 21357 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21359 (eval $ac_try) 2>&5
21360 ac_status=$?
21361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21362 (exit $ac_status); }; } &&
21363 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21365 (eval $ac_try) 2>&5
21366 ac_status=$?
21367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21368 (exit $ac_status); }; }; then
21369 ac_hi=$ac_mid; break
21370else
21371 echo "$as_me: failed program was:" >&5
21372sed 's/^/| /' conftest.$ac_ext >&5
21373
21374ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
21375 if test $ac_lo -le $ac_mid; then
21376 ac_lo= ac_hi=
21377 break
21378 fi
21379 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 21380fi
ac1cb8d3 21381rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21382 done
21383else
21384 echo "$as_me: failed program was:" >&5
21385sed 's/^/| /' conftest.$ac_ext >&5
21386
21387cat >conftest.$ac_ext <<_ACEOF
21388/* confdefs.h. */
21389_ACEOF
21390cat confdefs.h >>conftest.$ac_ext
21391cat >>conftest.$ac_ext <<_ACEOF
21392/* end confdefs.h. */
21393$ac_includes_default
21394int
21395main ()
21396{
21397static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
21398test_array [0] = 0
21399
21400 ;
21401 return 0;
21402}
21403_ACEOF
21404rm -f conftest.$ac_objext
21405if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21406 (eval $ac_compile) 2>conftest.er1
a848cd7e 21407 ac_status=$?
ac1cb8d3
VS
21408 grep -v '^ *+' conftest.er1 >conftest.err
21409 rm -f conftest.er1
21410 cat conftest.err >&5
a848cd7e
SC
21411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21412 (exit $ac_status); } &&
3ea50042 21413 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21415 (eval $ac_try) 2>&5
21416 ac_status=$?
21417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21418 (exit $ac_status); }; } &&
21419 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21421 (eval $ac_try) 2>&5
21422 ac_status=$?
21423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21424 (exit $ac_status); }; }; then
21425 ac_hi=-1 ac_mid=-1
21426 while :; do
21427 cat >conftest.$ac_ext <<_ACEOF
21428/* confdefs.h. */
21429_ACEOF
21430cat confdefs.h >>conftest.$ac_ext
21431cat >>conftest.$ac_ext <<_ACEOF
21432/* end confdefs.h. */
21433$ac_includes_default
21434int
21435main ()
21436{
21437static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
21438test_array [0] = 0
21439
21440 ;
21441 return 0;
21442}
21443_ACEOF
21444rm -f conftest.$ac_objext
21445if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21446 (eval $ac_compile) 2>conftest.er1
a848cd7e 21447 ac_status=$?
ac1cb8d3
VS
21448 grep -v '^ *+' conftest.er1 >conftest.err
21449 rm -f conftest.er1
21450 cat conftest.err >&5
a848cd7e
SC
21451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21452 (exit $ac_status); } &&
3ea50042 21453 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21455 (eval $ac_try) 2>&5
21456 ac_status=$?
21457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21458 (exit $ac_status); }; } &&
21459 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21461 (eval $ac_try) 2>&5
21462 ac_status=$?
21463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21464 (exit $ac_status); }; }; then
21465 ac_lo=$ac_mid; break
21466else
21467 echo "$as_me: failed program was:" >&5
21468sed 's/^/| /' conftest.$ac_ext >&5
21469
21470ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
21471 if test $ac_mid -le $ac_hi; then
21472 ac_lo= ac_hi=
21473 break
21474 fi
21475 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 21476fi
ac1cb8d3 21477rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21478 done
21479else
21480 echo "$as_me: failed program was:" >&5
21481sed 's/^/| /' conftest.$ac_ext >&5
21482
21483ac_lo= ac_hi=
21484fi
ac1cb8d3 21485rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 21486fi
ac1cb8d3 21487rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21488# Binary search between lo and hi bounds.
21489while test "x$ac_lo" != "x$ac_hi"; do
21490 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21491 cat >conftest.$ac_ext <<_ACEOF
21492/* confdefs.h. */
21493_ACEOF
21494cat confdefs.h >>conftest.$ac_ext
21495cat >>conftest.$ac_ext <<_ACEOF
21496/* end confdefs.h. */
21497$ac_includes_default
21498int
21499main ()
21500{
21501static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
21502test_array [0] = 0
21503
21504 ;
21505 return 0;
21506}
21507_ACEOF
21508rm -f conftest.$ac_objext
21509if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21510 (eval $ac_compile) 2>conftest.er1
a848cd7e 21511 ac_status=$?
ac1cb8d3
VS
21512 grep -v '^ *+' conftest.er1 >conftest.err
21513 rm -f conftest.er1
21514 cat conftest.err >&5
a848cd7e
SC
21515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21516 (exit $ac_status); } &&
3ea50042 21517 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21519 (eval $ac_try) 2>&5
21520 ac_status=$?
21521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21522 (exit $ac_status); }; } &&
21523 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21525 (eval $ac_try) 2>&5
21526 ac_status=$?
21527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21528 (exit $ac_status); }; }; then
21529 ac_hi=$ac_mid
21530else
21531 echo "$as_me: failed program was:" >&5
21532sed 's/^/| /' conftest.$ac_ext >&5
21533
21534ac_lo=`expr '(' $ac_mid ')' + 1`
21535fi
ac1cb8d3 21536rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21537done
21538case $ac_lo in
21539?*) ac_cv_sizeof_long_long=$ac_lo;;
21540'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
21541See \`config.log' for more details." >&5
21542echo "$as_me: error: cannot compute sizeof (long long), 77
21543See \`config.log' for more details." >&2;}
21544 { (exit 1); exit 1; }; } ;;
21545esac
21546else
21547 if test "$cross_compiling" = yes; then
3ea50042
VZ
21548 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
21549echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
21550 { (exit 1); exit 1; }; }
21551else
21552 cat >conftest.$ac_ext <<_ACEOF
21553/* confdefs.h. */
21554_ACEOF
21555cat confdefs.h >>conftest.$ac_ext
21556cat >>conftest.$ac_ext <<_ACEOF
21557/* end confdefs.h. */
21558$ac_includes_default
21559long longval () { return (long) (sizeof (long long)); }
21560unsigned long ulongval () { return (long) (sizeof (long long)); }
21561#include <stdio.h>
21562#include <stdlib.h>
21563int
21564main ()
21565{
21566
21567 FILE *f = fopen ("conftest.val", "w");
21568 if (! f)
21569 exit (1);
21570 if (((long) (sizeof (long long))) < 0)
21571 {
21572 long i = longval ();
21573 if (i != ((long) (sizeof (long long))))
21574 exit (1);
21575 fprintf (f, "%ld\n", i);
21576 }
21577 else
21578 {
21579 unsigned long i = ulongval ();
21580 if (i != ((long) (sizeof (long long))))
21581 exit (1);
21582 fprintf (f, "%lu\n", i);
21583 }
21584 exit (ferror (f) || fclose (f) != 0);
21585
21586 ;
21587 return 0;
21588}
21589_ACEOF
21590rm -f conftest$ac_exeext
21591if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21592 (eval $ac_link) 2>&5
21593 ac_status=$?
21594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21595 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21597 (eval $ac_try) 2>&5
21598 ac_status=$?
21599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21600 (exit $ac_status); }; }; then
21601 ac_cv_sizeof_long_long=`cat conftest.val`
21602else
21603 echo "$as_me: program exited with status $ac_status" >&5
21604echo "$as_me: failed program was:" >&5
21605sed 's/^/| /' conftest.$ac_ext >&5
21606
21607( exit $ac_status )
21608{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
21609See \`config.log' for more details." >&5
21610echo "$as_me: error: cannot compute sizeof (long long), 77
21611See \`config.log' for more details." >&2;}
21612 { (exit 1); exit 1; }; }
21613fi
ac1cb8d3 21614rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21615fi
21616fi
21617rm -f conftest.val
21618else
21619 ac_cv_sizeof_long_long=0
21620fi
21621fi
21622echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
21623echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
21624cat >>confdefs.h <<_ACEOF
21625#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
21626_ACEOF
21627
21628
21629esac
21630
238ecede
MW
21631echo "$as_me:$LINENO: checking for wchar_t" >&5
21632echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
21633if test "${ac_cv_type_wchar_t+set}" = set; then
21634 echo $ECHO_N "(cached) $ECHO_C" >&6
21635else
21636 cat >conftest.$ac_ext <<_ACEOF
21637/* confdefs.h. */
21638_ACEOF
21639cat confdefs.h >>conftest.$ac_ext
21640cat >>conftest.$ac_ext <<_ACEOF
21641/* end confdefs.h. */
21642
83d8eb47
MW
21643 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21644 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21645 # error "fake wchar_t"
21646 #endif
21647 #ifdef HAVE_WCHAR_H
21648 # ifdef __CYGWIN__
21649 # include <stddef.h>
21650 # endif
21651 # include <wchar.h>
21652 #endif
21653 #ifdef HAVE_STDLIB_H
21654 # include <stdlib.h>
21655 #endif
21656 #include <stdio.h>
21657
21658
21659
21660int
21661main ()
21662{
21663if ((wchar_t *) 0)
21664 return 0;
21665if (sizeof (wchar_t))
21666 return 0;
21667 ;
21668 return 0;
21669}
21670_ACEOF
21671rm -f conftest.$ac_objext
21672if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21673 (eval $ac_compile) 2>conftest.er1
21674 ac_status=$?
21675 grep -v '^ *+' conftest.er1 >conftest.err
21676 rm -f conftest.er1
21677 cat conftest.err >&5
21678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21679 (exit $ac_status); } &&
3ea50042 21680 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
238ecede
MW
21681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21682 (eval $ac_try) 2>&5
21683 ac_status=$?
21684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21685 (exit $ac_status); }; } &&
21686 { ac_try='test -s conftest.$ac_objext'
21687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21688 (eval $ac_try) 2>&5
21689 ac_status=$?
21690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21691 (exit $ac_status); }; }; then
21692 ac_cv_type_wchar_t=yes
21693else
21694 echo "$as_me: failed program was:" >&5
21695sed 's/^/| /' conftest.$ac_ext >&5
21696
21697ac_cv_type_wchar_t=no
21698fi
21699rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21700fi
21701echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
21702echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
21703
a848cd7e
SC
21704echo "$as_me:$LINENO: checking size of wchar_t" >&5
21705echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
238ecede 21706if test "${ac_cv_sizeof_wchar_t+set}" = set; then
a848cd7e
SC
21707 echo $ECHO_N "(cached) $ECHO_C" >&6
21708else
238ecede
MW
21709 if test "$ac_cv_type_wchar_t" = yes; then
21710 # The cast to unsigned long works around a bug in the HP C Compiler
21711 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21712 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21713 # This bug is HP SR number 8606223364.
21714 if test "$cross_compiling" = yes; then
21715 # Depending upon the size, compute the lo and hi bounds.
21716cat >conftest.$ac_ext <<_ACEOF
21717/* confdefs.h. */
21718_ACEOF
21719cat confdefs.h >>conftest.$ac_ext
21720cat >>conftest.$ac_ext <<_ACEOF
21721/* end confdefs.h. */
21722
83d8eb47
MW
21723 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21724 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21725 # error "fake wchar_t"
21726 #endif
21727 #ifdef HAVE_WCHAR_H
21728 # ifdef __CYGWIN__
21729 # include <stddef.h>
21730 # endif
21731 # include <wchar.h>
21732 #endif
21733 #ifdef HAVE_STDLIB_H
21734 # include <stdlib.h>
21735 #endif
21736 #include <stdio.h>
21737
21738
21739
21740int
21741main ()
21742{
21743static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
21744test_array [0] = 0
21745
21746 ;
21747 return 0;
21748}
21749_ACEOF
21750rm -f conftest.$ac_objext
21751if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21752 (eval $ac_compile) 2>conftest.er1
21753 ac_status=$?
21754 grep -v '^ *+' conftest.er1 >conftest.err
21755 rm -f conftest.er1
21756 cat conftest.err >&5
21757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21758 (exit $ac_status); } &&
3ea50042 21759 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
238ecede
MW
21760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21761 (eval $ac_try) 2>&5
21762 ac_status=$?
21763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21764 (exit $ac_status); }; } &&
21765 { ac_try='test -s conftest.$ac_objext'
21766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21767 (eval $ac_try) 2>&5
21768 ac_status=$?
21769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21770 (exit $ac_status); }; }; then
21771 ac_lo=0 ac_mid=0
21772 while :; do
21773 cat >conftest.$ac_ext <<_ACEOF
21774/* confdefs.h. */
21775_ACEOF
21776cat confdefs.h >>conftest.$ac_ext
21777cat >>conftest.$ac_ext <<_ACEOF
21778/* end confdefs.h. */
21779
83d8eb47
MW
21780 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21781 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21782 # error "fake wchar_t"
21783 #endif
21784 #ifdef HAVE_WCHAR_H
21785 # ifdef __CYGWIN__
21786 # include <stddef.h>
21787 # endif
21788 # include <wchar.h>
21789 #endif
21790 #ifdef HAVE_STDLIB_H
21791 # include <stdlib.h>
21792 #endif
21793 #include <stdio.h>
21794
21795
21796
21797int
21798main ()
21799{
21800static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $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
21809 (eval $ac_compile) 2>conftest.er1
21810 ac_status=$?
21811 grep -v '^ *+' conftest.er1 >conftest.err
21812 rm -f conftest.er1
21813 cat conftest.err >&5
21814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21815 (exit $ac_status); } &&
3ea50042 21816 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
238ecede
MW
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'
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; break
21829else
21830 echo "$as_me: failed program was:" >&5
21831sed 's/^/| /' conftest.$ac_ext >&5
21832
21833ac_lo=`expr $ac_mid + 1`
21834 if test $ac_lo -le $ac_mid; then
21835 ac_lo= ac_hi=
21836 break
21837 fi
21838 ac_mid=`expr 2 '*' $ac_mid + 1`
21839fi
21840rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21841 done
21842else
21843 echo "$as_me: failed program was:" >&5
21844sed 's/^/| /' conftest.$ac_ext >&5
21845
21846cat >conftest.$ac_ext <<_ACEOF
21847/* confdefs.h. */
21848_ACEOF
21849cat confdefs.h >>conftest.$ac_ext
21850cat >>conftest.$ac_ext <<_ACEOF
21851/* end confdefs.h. */
21852
83d8eb47
MW
21853 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21854 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21855 # error "fake wchar_t"
21856 #endif
21857 #ifdef HAVE_WCHAR_H
21858 # ifdef __CYGWIN__
21859 # include <stddef.h>
21860 # endif
21861 # include <wchar.h>
21862 #endif
21863 #ifdef HAVE_STDLIB_H
21864 # include <stdlib.h>
21865 #endif
21866 #include <stdio.h>
21867
21868
21869
21870int
21871main ()
21872{
21873static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
21874test_array [0] = 0
21875
21876 ;
21877 return 0;
21878}
21879_ACEOF
21880rm -f conftest.$ac_objext
21881if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21882 (eval $ac_compile) 2>conftest.er1
21883 ac_status=$?
21884 grep -v '^ *+' conftest.er1 >conftest.err
21885 rm -f conftest.er1
21886 cat conftest.err >&5
21887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21888 (exit $ac_status); } &&
3ea50042 21889 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
238ecede
MW
21890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21891 (eval $ac_try) 2>&5
21892 ac_status=$?
21893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21894 (exit $ac_status); }; } &&
21895 { ac_try='test -s conftest.$ac_objext'
21896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21897 (eval $ac_try) 2>&5
21898 ac_status=$?
21899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21900 (exit $ac_status); }; }; then
21901 ac_hi=-1 ac_mid=-1
21902 while :; do
21903 cat >conftest.$ac_ext <<_ACEOF
21904/* confdefs.h. */
21905_ACEOF
21906cat confdefs.h >>conftest.$ac_ext
21907cat >>conftest.$ac_ext <<_ACEOF
21908/* end confdefs.h. */
21909
83d8eb47
MW
21910 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21911 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21912 # error "fake wchar_t"
21913 #endif
21914 #ifdef HAVE_WCHAR_H
21915 # ifdef __CYGWIN__
21916 # include <stddef.h>
21917 # endif
21918 # include <wchar.h>
21919 #endif
21920 #ifdef HAVE_STDLIB_H
21921 # include <stdlib.h>
21922 #endif
21923 #include <stdio.h>
21924
21925
21926
21927int
21928main ()
21929{
21930static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
21931test_array [0] = 0
21932
21933 ;
21934 return 0;
21935}
21936_ACEOF
21937rm -f conftest.$ac_objext
21938if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21939 (eval $ac_compile) 2>conftest.er1
21940 ac_status=$?
21941 grep -v '^ *+' conftest.er1 >conftest.err
21942 rm -f conftest.er1
21943 cat conftest.err >&5
21944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21945 (exit $ac_status); } &&
3ea50042 21946 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
238ecede
MW
21947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21948 (eval $ac_try) 2>&5
21949 ac_status=$?
21950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21951 (exit $ac_status); }; } &&
21952 { ac_try='test -s conftest.$ac_objext'
21953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21954 (eval $ac_try) 2>&5
21955 ac_status=$?
21956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21957 (exit $ac_status); }; }; then
21958 ac_lo=$ac_mid; break
21959else
21960 echo "$as_me: failed program was:" >&5
21961sed 's/^/| /' conftest.$ac_ext >&5
21962
21963ac_hi=`expr '(' $ac_mid ')' - 1`
21964 if test $ac_mid -le $ac_hi; then
21965 ac_lo= ac_hi=
21966 break
21967 fi
21968 ac_mid=`expr 2 '*' $ac_mid`
21969fi
21970rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21971 done
21972else
21973 echo "$as_me: failed program was:" >&5
21974sed 's/^/| /' conftest.$ac_ext >&5
21975
21976ac_lo= ac_hi=
21977fi
21978rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21979fi
21980rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21981# Binary search between lo and hi bounds.
21982while test "x$ac_lo" != "x$ac_hi"; do
21983 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21984 cat >conftest.$ac_ext <<_ACEOF
21985/* confdefs.h. */
21986_ACEOF
21987cat confdefs.h >>conftest.$ac_ext
21988cat >>conftest.$ac_ext <<_ACEOF
21989/* end confdefs.h. */
21990
83d8eb47
MW
21991 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21992 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21993 # error "fake wchar_t"
21994 #endif
21995 #ifdef HAVE_WCHAR_H
21996 # ifdef __CYGWIN__
21997 # include <stddef.h>
21998 # endif
21999 # include <wchar.h>
22000 #endif
22001 #ifdef HAVE_STDLIB_H
22002 # include <stdlib.h>
22003 #endif
22004 #include <stdio.h>
a848cd7e 22005
a848cd7e 22006
a848cd7e 22007
238ecede
MW
22008int
22009main ()
22010{
22011static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
22012test_array [0] = 0
a848cd7e 22013
238ecede
MW
22014 ;
22015 return 0;
22016}
22017_ACEOF
22018rm -f conftest.$ac_objext
22019if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22020 (eval $ac_compile) 2>conftest.er1
22021 ac_status=$?
22022 grep -v '^ *+' conftest.er1 >conftest.err
22023 rm -f conftest.er1
22024 cat conftest.err >&5
22025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22026 (exit $ac_status); } &&
3ea50042 22027 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
238ecede
MW
22028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22029 (eval $ac_try) 2>&5
22030 ac_status=$?
22031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22032 (exit $ac_status); }; } &&
22033 { ac_try='test -s conftest.$ac_objext'
22034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22035 (eval $ac_try) 2>&5
22036 ac_status=$?
22037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22038 (exit $ac_status); }; }; then
22039 ac_hi=$ac_mid
22040else
22041 echo "$as_me: failed program was:" >&5
22042sed 's/^/| /' conftest.$ac_ext >&5
22043
22044ac_lo=`expr '(' $ac_mid ')' + 1`
22045fi
22046rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22047done
22048case $ac_lo in
22049?*) ac_cv_sizeof_wchar_t=$ac_lo;;
22050'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
22051See \`config.log' for more details." >&5
22052echo "$as_me: error: cannot compute sizeof (wchar_t), 77
22053See \`config.log' for more details." >&2;}
22054 { (exit 1); exit 1; }; } ;;
22055esac
22056else
22057 if test "$cross_compiling" = yes; then
3ea50042
VZ
22058 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
22059echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
238ecede 22060 { (exit 1); exit 1; }; }
a848cd7e
SC
22061else
22062 cat >conftest.$ac_ext <<_ACEOF
22063/* confdefs.h. */
22064_ACEOF
22065cat confdefs.h >>conftest.$ac_ext
22066cat >>conftest.$ac_ext <<_ACEOF
22067/* end confdefs.h. */
22068
83d8eb47
MW
22069 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
22070 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
22071 # error "fake wchar_t"
22072 #endif
22073 #ifdef HAVE_WCHAR_H
22074 # ifdef __CYGWIN__
22075 # include <stddef.h>
22076 # endif
22077 # include <wchar.h>
22078 #endif
22079 #ifdef HAVE_STDLIB_H
22080 # include <stdlib.h>
22081 #endif
22082 #include <stdio.h>
22083
22084
22085
22086long longval () { return (long) (sizeof (wchar_t)); }
22087unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
22088#include <stdio.h>
22089#include <stdlib.h>
22090int
22091main ()
22092{
a848cd7e 22093
238ecede
MW
22094 FILE *f = fopen ("conftest.val", "w");
22095 if (! f)
22096 exit (1);
22097 if (((long) (sizeof (wchar_t))) < 0)
22098 {
22099 long i = longval ();
22100 if (i != ((long) (sizeof (wchar_t))))
22101 exit (1);
22102 fprintf (f, "%ld\n", i);
22103 }
22104 else
22105 {
22106 unsigned long i = ulongval ();
22107 if (i != ((long) (sizeof (wchar_t))))
22108 exit (1);
22109 fprintf (f, "%lu\n", i);
22110 }
22111 exit (ferror (f) || fclose (f) != 0);
22112
22113 ;
22114 return 0;
22115}
a848cd7e
SC
22116_ACEOF
22117rm -f conftest$ac_exeext
22118if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22119 (eval $ac_link) 2>&5
22120 ac_status=$?
22121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22122 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22124 (eval $ac_try) 2>&5
22125 ac_status=$?
22126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22127 (exit $ac_status); }; }; then
238ecede 22128 ac_cv_sizeof_wchar_t=`cat conftest.val`
a848cd7e
SC
22129else
22130 echo "$as_me: program exited with status $ac_status" >&5
22131echo "$as_me: failed program was:" >&5
22132sed 's/^/| /' conftest.$ac_ext >&5
22133
22134( exit $ac_status )
238ecede
MW
22135{ { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
22136See \`config.log' for more details." >&5
22137echo "$as_me: error: cannot compute sizeof (wchar_t), 77
22138See \`config.log' for more details." >&2;}
22139 { (exit 1); exit 1; }; }
a848cd7e 22140fi
ac1cb8d3 22141rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 22142fi
a848cd7e 22143fi
238ecede
MW
22144rm -f conftest.val
22145else
22146 ac_cv_sizeof_wchar_t=0
22147fi
22148fi
22149echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
22150echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
a848cd7e 22151cat >>confdefs.h <<_ACEOF
238ecede 22152#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
a848cd7e
SC
22153_ACEOF
22154
22155
47a7e797
MW
22156if test "$ac_cv_sizeof_wchar_t" != "0"; then
22157 wxUSE_WCHAR_T=yes
22158else
22159 wxUSE_WCHAR_T=no
22160fi
238ecede 22161
ba3d13e1
VZ
22162echo "$as_me:$LINENO: checking for va_copy" >&5
22163echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
22164if test "${wx_cv_func_va_copy+set}" = set; then
22165 echo $ECHO_N "(cached) $ECHO_C" >&6
22166else
22167
22168 cat >conftest.$ac_ext <<_ACEOF
22169
22170 #include <stdarg.h>
22171 void foo(char *f, ...)
22172 {
22173 va_list ap1, ap2;
22174 va_start(ap1, f);
22175 va_copy(ap2, ap1);
22176 va_end(ap2);
22177 va_end(ap1);
22178 }
5886b072
VZ
22179 int main()
22180 {
b902e639
VZ
22181 foo("hi", 17);
22182 return 0;
5886b072 22183 }
ba3d13e1
VZ
22184_ACEOF
22185rm -f conftest.$ac_objext conftest$ac_exeext
22186if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22187 (eval $ac_link) 2>conftest.er1
22188 ac_status=$?
22189 grep -v '^ *+' conftest.er1 >conftest.err
22190 rm -f conftest.er1
22191 cat conftest.err >&5
22192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22193 (exit $ac_status); } &&
3ea50042 22194 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ba3d13e1
VZ
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); }; } &&
22200 { ac_try='test -s conftest$ac_exeext'
22201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22202 (eval $ac_try) 2>&5
22203 ac_status=$?
22204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22205 (exit $ac_status); }; }; then
22206 wx_cv_func_va_copy=yes
22207else
22208 echo "$as_me: failed program was:" >&5
22209sed 's/^/| /' conftest.$ac_ext >&5
22210
22211wx_cv_func_va_copy=no
22212
22213fi
22214rm -f conftest.err conftest.$ac_objext \
22215 conftest$ac_exeext conftest.$ac_ext
22216
22217
22218fi
22219echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
22220echo "${ECHO_T}$wx_cv_func_va_copy" >&6
22221
22222if test $wx_cv_func_va_copy = "yes"; then
22223 cat >>confdefs.h <<\_ACEOF
22224#define HAVE_VA_COPY 1
22225_ACEOF
22226
22227else
22228 echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
22229echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6
22230if test "${wx_cv_type_va_list_lvalue+set}" = set; then
22231 echo $ECHO_N "(cached) $ECHO_C" >&6
22232else
22233
22234 if test "$cross_compiling" = yes; then
22235 wx_cv_type_va_list_lvalue=yes
22236
22237else
22238 cat >conftest.$ac_ext <<_ACEOF
22239
22240 #include <stdarg.h>
22241 int foo(char *f, ...)
22242 {
22243 va_list ap1, ap2;
22244 va_start(ap1, f);
22245 ap2 = ap1;
22246 if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
22247 return 1;
22248 va_end(ap2);
22249 va_end(ap1);
22250 return 0;
22251 }
22252 int main()
22253 {
22254 return foo("hi", 17);
22255 }
22256_ACEOF
22257rm -f conftest$ac_exeext
22258if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22259 (eval $ac_link) 2>&5
22260 ac_status=$?
22261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22262 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22264 (eval $ac_try) 2>&5
22265 ac_status=$?
22266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22267 (exit $ac_status); }; }; then
22268 wx_cv_type_va_list_lvalue=yes
22269else
22270 echo "$as_me: program exited with status $ac_status" >&5
22271echo "$as_me: failed program was:" >&5
22272sed 's/^/| /' conftest.$ac_ext >&5
22273
22274( exit $ac_status )
22275wx_cv_type_va_list_lvalue=no
22276fi
22277rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22278fi
22279
22280
22281fi
22282echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
22283echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6
22284
22285 if test $wx_cv_type_va_list_lvalue != "yes"; then
22286 cat >>confdefs.h <<\_ACEOF
22287#define VA_LIST_IS_ARRAY 1
22288_ACEOF
22289
22290 fi
22291fi
22292
ca766534
VS
22293echo "$as_me:$LINENO: checking whether the compiler supports variadic macros" >&5
22294echo $ECHO_N "checking whether the compiler supports variadic macros... $ECHO_C" >&6
22295if test "${wx_cv_have_variadic_macros+set}" = set; then
22296 echo $ECHO_N "(cached) $ECHO_C" >&6
22297else
22298
22299 cat >conftest.$ac_ext <<_ACEOF
22300/* confdefs.h. */
22301_ACEOF
22302cat confdefs.h >>conftest.$ac_ext
22303cat >>conftest.$ac_ext <<_ACEOF
22304/* end confdefs.h. */
22305
22306 #include <stdio.h>
22307 #define test(fmt, ...) printf(fmt, __VA_ARGS__)
22308
22309int
22310main ()
22311{
22312
22313 test("%s %d %p", "test", 1, 0);
22314
22315
22316 ;
22317 return 0;
22318}
22319_ACEOF
22320rm -f conftest.$ac_objext
22321if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22322 (eval $ac_compile) 2>conftest.er1
22323 ac_status=$?
22324 grep -v '^ *+' conftest.er1 >conftest.err
22325 rm -f conftest.er1
22326 cat conftest.err >&5
22327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22328 (exit $ac_status); } &&
3ea50042 22329 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ca766534
VS
22330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22331 (eval $ac_try) 2>&5
22332 ac_status=$?
22333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22334 (exit $ac_status); }; } &&
22335 { ac_try='test -s conftest.$ac_objext'
22336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22337 (eval $ac_try) 2>&5
22338 ac_status=$?
22339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22340 (exit $ac_status); }; }; then
22341 wx_cv_have_variadic_macros=yes
22342else
22343 echo "$as_me: failed program was:" >&5
22344sed 's/^/| /' conftest.$ac_ext >&5
22345
22346wx_cv_have_variadic_macros=no
22347
22348fi
22349rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22350
22351
22352fi
22353echo "$as_me:$LINENO: result: $wx_cv_have_variadic_macros" >&5
22354echo "${ECHO_T}$wx_cv_have_variadic_macros" >&6
22355
22356if test $wx_cv_have_variadic_macros = "yes"; then
22357 cat >>confdefs.h <<\_ACEOF
22358#define HAVE_VARIADIC_MACROS 1
22359_ACEOF
22360
22361fi
22362
a848cd7e
SC
22363# Check whether --enable-largefile or --disable-largefile was given.
22364if test "${enable_largefile+set}" = set; then
22365 enableval="$enable_largefile"
22366
22367fi;
22368if test "$enable_largefile" != no; then
22369 wx_largefile=no
22370
22371 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
22372echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
22373if test "${ac_cv_sys_file_offset_bits+set}" = set; then
22374 echo $ECHO_N "(cached) $ECHO_C" >&6
22375else
22376
22377 cat >conftest.$ac_ext <<_ACEOF
22378/* confdefs.h. */
22379_ACEOF
22380cat confdefs.h >>conftest.$ac_ext
22381cat >>conftest.$ac_ext <<_ACEOF
22382/* end confdefs.h. */
22383#define _FILE_OFFSET_BITS 64
22384 #include <sys/types.h>
22385int
22386main ()
22387{
22388typedef struct {
22389 unsigned int field: sizeof(off_t) == 8;
22390} wxlf;
22391
22392 ;
22393 return 0;
22394}
22395_ACEOF
22396rm -f conftest.$ac_objext
22397if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22398 (eval $ac_compile) 2>conftest.er1
a848cd7e 22399 ac_status=$?
ac1cb8d3
VS
22400 grep -v '^ *+' conftest.er1 >conftest.err
22401 rm -f conftest.er1
22402 cat conftest.err >&5
a848cd7e
SC
22403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22404 (exit $ac_status); } &&
3ea50042 22405 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22407 (eval $ac_try) 2>&5
22408 ac_status=$?
22409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22410 (exit $ac_status); }; } &&
22411 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22413 (eval $ac_try) 2>&5
22414 ac_status=$?
22415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22416 (exit $ac_status); }; }; then
22417 ac_cv_sys_file_offset_bits=64
22418else
22419 echo "$as_me: failed program was:" >&5
22420sed 's/^/| /' conftest.$ac_ext >&5
22421
22422ac_cv_sys_file_offset_bits=no
22423fi
ac1cb8d3 22424rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22425
22426
22427fi
22428echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
22429echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
22430
22431 if test "$ac_cv_sys_file_offset_bits" != no; then
22432 wx_largefile=yes
22433 cat >>confdefs.h <<_ACEOF
22434#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
22435_ACEOF
22436
22437 fi
22438
22439 if test "x$wx_largefile" != "xyes"; then
22440
22441 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
22442echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
22443if test "${ac_cv_sys_large_files+set}" = set; then
22444 echo $ECHO_N "(cached) $ECHO_C" >&6
22445else
22446
22447 cat >conftest.$ac_ext <<_ACEOF
22448/* confdefs.h. */
22449_ACEOF
22450cat confdefs.h >>conftest.$ac_ext
22451cat >>conftest.$ac_ext <<_ACEOF
22452/* end confdefs.h. */
22453#define _LARGE_FILES 1
22454 #include <sys/types.h>
22455int
22456main ()
22457{
22458typedef struct {
22459 unsigned int field: sizeof(off_t) == 8;
22460} wxlf;
22461
22462 ;
22463 return 0;
22464}
22465_ACEOF
22466rm -f conftest.$ac_objext
22467if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22468 (eval $ac_compile) 2>conftest.er1
a848cd7e 22469 ac_status=$?
ac1cb8d3
VS
22470 grep -v '^ *+' conftest.er1 >conftest.err
22471 rm -f conftest.er1
22472 cat conftest.err >&5
a848cd7e
SC
22473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22474 (exit $ac_status); } &&
3ea50042 22475 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22477 (eval $ac_try) 2>&5
22478 ac_status=$?
22479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22480 (exit $ac_status); }; } &&
22481 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22483 (eval $ac_try) 2>&5
22484 ac_status=$?
22485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22486 (exit $ac_status); }; }; then
22487 ac_cv_sys_large_files=1
22488else
22489 echo "$as_me: failed program was:" >&5
22490sed 's/^/| /' conftest.$ac_ext >&5
22491
22492ac_cv_sys_large_files=no
22493fi
ac1cb8d3 22494rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22495
22496
22497fi
22498echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
22499echo "${ECHO_T}$ac_cv_sys_large_files" >&6
22500
22501 if test "$ac_cv_sys_large_files" != no; then
22502 wx_largefile=yes
22503 cat >>confdefs.h <<_ACEOF
22504#define _LARGE_FILES $ac_cv_sys_large_files
22505_ACEOF
22506
22507 fi
22508
22509 fi
22510
22511 echo "$as_me:$LINENO: checking if large file support is available" >&5
22512echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
22513 if test "x$wx_largefile" = "xyes"; then
22514 cat >>confdefs.h <<\_ACEOF
22515#define HAVE_LARGEFILE_SUPPORT 1
22516_ACEOF
22517
22518 fi
22519 echo "$as_me:$LINENO: result: $wx_largefile" >&5
22520echo "${ECHO_T}$wx_largefile" >&6
22521fi
22522
5b674b9d
DE
22523
22524if test "x$wx_largefile" = "xyes"; then
22525 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
5ff751d6 22526 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
00421666
MW
22527
22528 if test "$USE_HPUX" = 1 -a "$GXX" = "yes"; then
22529 echo "$as_me:$LINENO: checking if -D__STDC_EXT__ is required" >&5
22530echo $ECHO_N "checking if -D__STDC_EXT__ is required... $ECHO_C" >&6
22531if test "${wx_cv_STDC_EXT_required+set}" = set; then
22532 echo $ECHO_N "(cached) $ECHO_C" >&6
22533else
22534
00421666
MW
22535 cat >conftest.$ac_ext <<_ACEOF
22536/* confdefs.h. */
22537_ACEOF
22538cat confdefs.h >>conftest.$ac_ext
22539cat >>conftest.$ac_ext <<_ACEOF
22540/* end confdefs.h. */
22541
22542int
22543main ()
22544{
22545
22546 #ifndef __STDC_EXT__
22547 choke me
22548 #endif
22549
22550 ;
22551 return 0;
22552}
22553_ACEOF
22554rm -f conftest.$ac_objext
22555if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22556 (eval $ac_compile) 2>conftest.er1
22557 ac_status=$?
22558 grep -v '^ *+' conftest.er1 >conftest.err
22559 rm -f conftest.er1
22560 cat conftest.err >&5
22561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22562 (exit $ac_status); } &&
3ea50042 22563 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
00421666
MW
22564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22565 (eval $ac_try) 2>&5
22566 ac_status=$?
22567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22568 (exit $ac_status); }; } &&
22569 { ac_try='test -s conftest.$ac_objext'
22570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22571 (eval $ac_try) 2>&5
22572 ac_status=$?
22573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22574 (exit $ac_status); }; }; then
22575 wx_cv_STDC_EXT_required=no
22576else
22577 echo "$as_me: failed program was:" >&5
22578sed 's/^/| /' conftest.$ac_ext >&5
22579
22580wx_cv_STDC_EXT_required=yes
22581
22582fi
22583rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
00421666
MW
22584
22585
22586fi
22587echo "$as_me:$LINENO: result: $wx_cv_STDC_EXT_required" >&5
22588echo "${ECHO_T}$wx_cv_STDC_EXT_required" >&6
22589 if test "x$wx_cv_STDC_EXT_required" = "xyes"; then
5ff751d6 22590 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -D__STDC_EXT__"
00421666
MW
22591 fi
22592 fi
5b674b9d 22593 else
5ff751d6 22594 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGE_FILES"
5b674b9d
DE
22595 fi
22596 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
5294a27e
VZ
22597echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
22598if test "${ac_cv_sys_largefile_source+set}" = set; then
22599 echo $ECHO_N "(cached) $ECHO_C" >&6
22600else
22601 while :; do
22602 ac_cv_sys_largefile_source=no
22603 cat >conftest.$ac_ext <<_ACEOF
22604/* confdefs.h. */
22605_ACEOF
22606cat confdefs.h >>conftest.$ac_ext
22607cat >>conftest.$ac_ext <<_ACEOF
22608/* end confdefs.h. */
22609#include <stdio.h>
22610int
22611main ()
22612{
22613return !fseeko;
22614 ;
22615 return 0;
22616}
22617_ACEOF
22618rm -f conftest.$ac_objext
22619if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22620 (eval $ac_compile) 2>conftest.er1
22621 ac_status=$?
22622 grep -v '^ *+' conftest.er1 >conftest.err
22623 rm -f conftest.er1
22624 cat conftest.err >&5
22625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22626 (exit $ac_status); } &&
3ea50042 22627 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
22628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22629 (eval $ac_try) 2>&5
22630 ac_status=$?
22631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22632 (exit $ac_status); }; } &&
22633 { ac_try='test -s conftest.$ac_objext'
22634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22635 (eval $ac_try) 2>&5
22636 ac_status=$?
22637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22638 (exit $ac_status); }; }; then
22639 break
22640else
22641 echo "$as_me: failed program was:" >&5
22642sed 's/^/| /' conftest.$ac_ext >&5
22643
22644fi
22645rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22646 cat >conftest.$ac_ext <<_ACEOF
22647/* confdefs.h. */
22648_ACEOF
22649cat confdefs.h >>conftest.$ac_ext
22650cat >>conftest.$ac_ext <<_ACEOF
22651/* end confdefs.h. */
22652#define _LARGEFILE_SOURCE 1
22653#include <stdio.h>
22654int
22655main ()
22656{
22657return !fseeko;
22658 ;
22659 return 0;
22660}
22661_ACEOF
22662rm -f conftest.$ac_objext
22663if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22664 (eval $ac_compile) 2>conftest.er1
22665 ac_status=$?
22666 grep -v '^ *+' conftest.er1 >conftest.err
22667 rm -f conftest.er1
22668 cat conftest.err >&5
22669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22670 (exit $ac_status); } &&
3ea50042 22671 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
22672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22673 (eval $ac_try) 2>&5
22674 ac_status=$?
22675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22676 (exit $ac_status); }; } &&
22677 { ac_try='test -s conftest.$ac_objext'
22678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22679 (eval $ac_try) 2>&5
22680 ac_status=$?
22681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22682 (exit $ac_status); }; }; then
22683 ac_cv_sys_largefile_source=1; break
22684else
22685 echo "$as_me: failed program was:" >&5
22686sed 's/^/| /' conftest.$ac_ext >&5
22687
22688fi
22689rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22690 break
22691done
22692fi
22693echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
22694echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
22695if test "$ac_cv_sys_largefile_source" != no; then
22696
22697cat >>confdefs.h <<_ACEOF
22698#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
22699_ACEOF
22700
22701fi
22702rm -f conftest*
22703
22704# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
22705# in glibc 2.1.3, but that breaks too many other things.
22706# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
22707echo "$as_me:$LINENO: checking for fseeko" >&5
22708echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
22709if test "${ac_cv_func_fseeko+set}" = set; then
22710 echo $ECHO_N "(cached) $ECHO_C" >&6
22711else
22712 cat >conftest.$ac_ext <<_ACEOF
22713/* confdefs.h. */
22714_ACEOF
22715cat confdefs.h >>conftest.$ac_ext
22716cat >>conftest.$ac_ext <<_ACEOF
22717/* end confdefs.h. */
22718#include <stdio.h>
22719int
22720main ()
22721{
22722return fseeko && fseeko (stdin, 0, 0);
22723 ;
22724 return 0;
22725}
22726_ACEOF
22727rm -f conftest.$ac_objext conftest$ac_exeext
22728if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22729 (eval $ac_link) 2>conftest.er1
22730 ac_status=$?
22731 grep -v '^ *+' conftest.er1 >conftest.err
22732 rm -f conftest.er1
22733 cat conftest.err >&5
22734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22735 (exit $ac_status); } &&
3ea50042 22736 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
22737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22738 (eval $ac_try) 2>&5
22739 ac_status=$?
22740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22741 (exit $ac_status); }; } &&
22742 { ac_try='test -s conftest$ac_exeext'
22743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22744 (eval $ac_try) 2>&5
22745 ac_status=$?
22746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22747 (exit $ac_status); }; }; then
22748 ac_cv_func_fseeko=yes
22749else
22750 echo "$as_me: failed program was:" >&5
22751sed 's/^/| /' conftest.$ac_ext >&5
22752
22753ac_cv_func_fseeko=no
22754fi
22755rm -f conftest.err conftest.$ac_objext \
22756 conftest$ac_exeext conftest.$ac_ext
22757fi
22758echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
22759echo "${ECHO_T}$ac_cv_func_fseeko" >&6
22760if test $ac_cv_func_fseeko = yes; then
22761
22762cat >>confdefs.h <<\_ACEOF
22763#define HAVE_FSEEKO 1
22764_ACEOF
22765
22766fi
22767
5b674b9d 22768 if test "$ac_cv_sys_largefile_source" != no; then
5ff751d6 22769 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
a848cd7e 22770 fi
a848cd7e
SC
22771fi
22772
22773echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
22774echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
22775if test "${ac_cv_c_bigendian+set}" = set; then
22776 echo $ECHO_N "(cached) $ECHO_C" >&6
22777else
22778 ac_cv_c_bigendian=unknown
22779# See if sys/param.h defines the BYTE_ORDER macro.
22780cat >conftest.$ac_ext <<_ACEOF
22781/* confdefs.h. */
22782_ACEOF
22783cat confdefs.h >>conftest.$ac_ext
22784cat >>conftest.$ac_ext <<_ACEOF
22785/* end confdefs.h. */
22786#include <sys/types.h>
22787#include <sys/param.h>
22788int
22789main ()
22790{
22791
22792#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
22793 bogus endian macros
22794#endif
22795 ;
22796 return 0;
22797}
22798_ACEOF
22799rm -f conftest.$ac_objext
22800if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22801 (eval $ac_compile) 2>conftest.er1
a848cd7e 22802 ac_status=$?
ac1cb8d3
VS
22803 grep -v '^ *+' conftest.er1 >conftest.err
22804 rm -f conftest.er1
22805 cat conftest.err >&5
a848cd7e
SC
22806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22807 (exit $ac_status); } &&
3ea50042 22808 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22810 (eval $ac_try) 2>&5
22811 ac_status=$?
22812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22813 (exit $ac_status); }; } &&
22814 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22816 (eval $ac_try) 2>&5
22817 ac_status=$?
22818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22819 (exit $ac_status); }; }; then
22820 # It does; now see whether it defined to BIG_ENDIAN or not.
22821cat >conftest.$ac_ext <<_ACEOF
22822/* confdefs.h. */
22823_ACEOF
22824cat confdefs.h >>conftest.$ac_ext
22825cat >>conftest.$ac_ext <<_ACEOF
22826/* end confdefs.h. */
22827#include <sys/types.h>
22828#include <sys/param.h>
22829int
22830main ()
22831{
22832
22833#if BYTE_ORDER != BIG_ENDIAN
22834 not big endian
22835#endif
22836 ;
22837 return 0;
22838}
22839_ACEOF
22840rm -f conftest.$ac_objext
22841if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22842 (eval $ac_compile) 2>conftest.er1
a848cd7e 22843 ac_status=$?
ac1cb8d3
VS
22844 grep -v '^ *+' conftest.er1 >conftest.err
22845 rm -f conftest.er1
22846 cat conftest.err >&5
a848cd7e
SC
22847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22848 (exit $ac_status); } &&
3ea50042 22849 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22851 (eval $ac_try) 2>&5
22852 ac_status=$?
22853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22854 (exit $ac_status); }; } &&
22855 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22857 (eval $ac_try) 2>&5
22858 ac_status=$?
22859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22860 (exit $ac_status); }; }; then
22861 ac_cv_c_bigendian=yes
22862else
22863 echo "$as_me: failed program was:" >&5
22864sed 's/^/| /' conftest.$ac_ext >&5
22865
22866ac_cv_c_bigendian=no
22867fi
ac1cb8d3 22868rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22869else
22870 echo "$as_me: failed program was:" >&5
22871sed 's/^/| /' conftest.$ac_ext >&5
22872
22873fi
ac1cb8d3 22874rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22875if test $ac_cv_c_bigendian = unknown; then
22876if test "$cross_compiling" = yes; then
22877 ac_cv_c_bigendian=unknown
22878else
22879 cat >conftest.$ac_ext <<_ACEOF
22880/* confdefs.h. */
22881_ACEOF
22882cat confdefs.h >>conftest.$ac_ext
22883cat >>conftest.$ac_ext <<_ACEOF
22884/* end confdefs.h. */
22885main () {
22886 /* Are we little or big endian? From Harbison&Steele. */
22887 union
22888 {
22889 long l;
22890 char c[sizeof (long)];
22891 } u;
22892 u.l = 1;
22893 exit (u.c[sizeof (long) - 1] == 1);
22894}
22895_ACEOF
22896rm -f conftest$ac_exeext
22897if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22898 (eval $ac_link) 2>&5
22899 ac_status=$?
22900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22901 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22903 (eval $ac_try) 2>&5
22904 ac_status=$?
22905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22906 (exit $ac_status); }; }; then
22907 ac_cv_c_bigendian=no
22908else
22909 echo "$as_me: program exited with status $ac_status" >&5
22910echo "$as_me: failed program was:" >&5
22911sed 's/^/| /' conftest.$ac_ext >&5
22912
22913( exit $ac_status )
22914ac_cv_c_bigendian=yes
22915fi
ac1cb8d3 22916rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22917fi
22918fi
22919fi
22920echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
22921echo "${ECHO_T}$ac_cv_c_bigendian" >&6
22922if test $ac_cv_c_bigendian = unknown; then
22923 { 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
22924echo "$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;}
22925fi
22926if test $ac_cv_c_bigendian = yes; then
22927 cat >>confdefs.h <<\_ACEOF
22928#define WORDS_BIGENDIAN 1
22929_ACEOF
22930
22931fi
22932
22933
a848cd7e
SC
22934
22935
22936
22937 ac_ext=cc
22938ac_cpp='$CXXCPP $CPPFLAGS'
22939ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22940ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22941ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22942
22943
22944
22945for ac_header in iostream
22946do
22947as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22948if eval "test \"\${$as_ac_Header+set}\" = set"; then
22949 echo "$as_me:$LINENO: checking for $ac_header" >&5
22950echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22951if eval "test \"\${$as_ac_Header+set}\" = set"; then
22952 echo $ECHO_N "(cached) $ECHO_C" >&6
22953fi
22954echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22955echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22956else
22957 # Is the header compilable?
22958echo "$as_me:$LINENO: checking $ac_header usability" >&5
22959echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22960cat >conftest.$ac_ext <<_ACEOF
22961/* confdefs.h. */
22962_ACEOF
22963cat confdefs.h >>conftest.$ac_ext
22964cat >>conftest.$ac_ext <<_ACEOF
22965/* end confdefs.h. */
22966$ac_includes_default
22967#include <$ac_header>
22968_ACEOF
22969rm -f conftest.$ac_objext
22970if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22971 (eval $ac_compile) 2>conftest.er1
a848cd7e 22972 ac_status=$?
ac1cb8d3
VS
22973 grep -v '^ *+' conftest.er1 >conftest.err
22974 rm -f conftest.er1
22975 cat conftest.err >&5
a848cd7e
SC
22976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22977 (exit $ac_status); } &&
3ea50042 22978 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22980 (eval $ac_try) 2>&5
22981 ac_status=$?
22982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22983 (exit $ac_status); }; } &&
22984 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22986 (eval $ac_try) 2>&5
22987 ac_status=$?
22988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22989 (exit $ac_status); }; }; then
22990 ac_header_compiler=yes
22991else
22992 echo "$as_me: failed program was:" >&5
22993sed 's/^/| /' conftest.$ac_ext >&5
22994
22995ac_header_compiler=no
22996fi
ac1cb8d3 22997rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22998echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22999echo "${ECHO_T}$ac_header_compiler" >&6
23000
23001# Is the header present?
23002echo "$as_me:$LINENO: checking $ac_header presence" >&5
23003echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23004cat >conftest.$ac_ext <<_ACEOF
23005/* confdefs.h. */
23006_ACEOF
23007cat confdefs.h >>conftest.$ac_ext
23008cat >>conftest.$ac_ext <<_ACEOF
23009/* end confdefs.h. */
23010#include <$ac_header>
23011_ACEOF
23012if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23013 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23014 ac_status=$?
23015 grep -v '^ *+' conftest.er1 >conftest.err
23016 rm -f conftest.er1
23017 cat conftest.err >&5
23018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23019 (exit $ac_status); } >/dev/null; then
23020 if test -s conftest.err; then
23021 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 23022 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
23023 else
23024 ac_cpp_err=
23025 fi
23026else
23027 ac_cpp_err=yes
23028fi
23029if test -z "$ac_cpp_err"; then
23030 ac_header_preproc=yes
23031else
23032 echo "$as_me: failed program was:" >&5
23033sed 's/^/| /' conftest.$ac_ext >&5
23034
23035 ac_header_preproc=no
23036fi
23037rm -f conftest.err conftest.$ac_ext
23038echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23039echo "${ECHO_T}$ac_header_preproc" >&6
23040
23041# So? What about this header?
ac1cb8d3
VS
23042case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
23043 yes:no: )
a848cd7e
SC
23044 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23045echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23046 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23047echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23048 ac_header_preproc=yes
a848cd7e 23049 ;;
ac1cb8d3 23050 no:yes:* )
a848cd7e
SC
23051 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23052echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23053 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23054echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23055 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23056echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23057 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23058echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
23059 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23060echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23061 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23062echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
23063 (
23064 cat <<\_ASBOX
ac1cb8d3
VS
23065## ----------------------------------------- ##
23066## Report this to wx-dev@lists.wxwidgets.org ##
23067## ----------------------------------------- ##
a848cd7e
SC
23068_ASBOX
23069 ) |
23070 sed "s/^/$as_me: WARNING: /" >&2
23071 ;;
23072esac
23073echo "$as_me:$LINENO: checking for $ac_header" >&5
23074echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23075if eval "test \"\${$as_ac_Header+set}\" = set"; then
23076 echo $ECHO_N "(cached) $ECHO_C" >&6
23077else
ac1cb8d3 23078 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
23079fi
23080echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23081echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23082
23083fi
23084if test `eval echo '${'$as_ac_Header'}'` = yes; then
23085 cat >>confdefs.h <<_ACEOF
23086#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23087_ACEOF
23088
23089fi
23090
23091done
23092
23093
23094 if test "$ac_cv_header_iostream" = "yes" ; then
23095 :
23096 else
23097 cat >>confdefs.h <<\_ACEOF
23098#define wxUSE_IOSTREAMH 1
23099_ACEOF
23100
23101 fi
23102
5d7b7554
VZ
23103 ac_ext=cc
23104ac_cpp='$CXXCPP $CPPFLAGS'
23105ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23106ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23107ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a848cd7e
SC
23108
23109
23110
23111
23112 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
23113echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
23114if test "${wx_cv_cpp_bool+set}" = set; then
23115 echo $ECHO_N "(cached) $ECHO_C" >&6
23116else
23117
23118
23119
23120 ac_ext=cc
23121ac_cpp='$CXXCPP $CPPFLAGS'
23122ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23123ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23124ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23125
23126
23127 cat >conftest.$ac_ext <<_ACEOF
23128/* confdefs.h. */
23129_ACEOF
23130cat confdefs.h >>conftest.$ac_ext
23131cat >>conftest.$ac_ext <<_ACEOF
23132/* end confdefs.h. */
23133
23134
23135int
23136main ()
23137{
23138
23139 bool b = true;
23140
23141 return 0;
23142
23143 ;
23144 return 0;
23145}
23146_ACEOF
23147rm -f conftest.$ac_objext
23148if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23149 (eval $ac_compile) 2>conftest.er1
a848cd7e 23150 ac_status=$?
ac1cb8d3
VS
23151 grep -v '^ *+' conftest.er1 >conftest.err
23152 rm -f conftest.er1
23153 cat conftest.err >&5
a848cd7e
SC
23154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23155 (exit $ac_status); } &&
3ea50042 23156 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23158 (eval $ac_try) 2>&5
23159 ac_status=$?
23160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23161 (exit $ac_status); }; } &&
23162 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23164 (eval $ac_try) 2>&5
23165 ac_status=$?
23166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23167 (exit $ac_status); }; }; then
23168
23169 wx_cv_cpp_bool=yes
23170
23171else
23172 echo "$as_me: failed program was:" >&5
23173sed 's/^/| /' conftest.$ac_ext >&5
23174
23175
23176 wx_cv_cpp_bool=no
23177
23178
23179fi
ac1cb8d3 23180rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 23181
5d7b7554
VZ
23182 ac_ext=cc
23183ac_cpp='$CXXCPP $CPPFLAGS'
23184ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23185ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23186ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a848cd7e
SC
23187
23188
23189fi
23190echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
23191echo "${ECHO_T}$wx_cv_cpp_bool" >&6
23192
23193 if test "$wx_cv_cpp_bool" = "yes"; then
23194 cat >>confdefs.h <<\_ACEOF
23195#define HAVE_BOOL 1
23196_ACEOF
23197
23198 fi
23199
23200
23201
23202 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
23203echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
23204if test "${wx_cv_explicit+set}" = set; then
23205 echo $ECHO_N "(cached) $ECHO_C" >&6
23206else
23207
23208
23209
23210 ac_ext=cc
23211ac_cpp='$CXXCPP $CPPFLAGS'
23212ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23213ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23214ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23215
23216
23217 cat >conftest.$ac_ext <<_ACEOF
23218/* confdefs.h. */
23219_ACEOF
23220cat confdefs.h >>conftest.$ac_ext
23221cat >>conftest.$ac_ext <<_ACEOF
23222/* end confdefs.h. */
23223
23224 class Foo { public: explicit Foo(int) {} };
23225
23226int
23227main ()
23228{
23229
23230 return 0;
23231
23232 ;
23233 return 0;
23234}
23235_ACEOF
23236rm -f conftest.$ac_objext
23237if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23238 (eval $ac_compile) 2>conftest.er1
a848cd7e 23239 ac_status=$?
ac1cb8d3
VS
23240 grep -v '^ *+' conftest.er1 >conftest.err
23241 rm -f conftest.er1
23242 cat conftest.err >&5
a848cd7e
SC
23243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23244 (exit $ac_status); } &&
3ea50042 23245 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23247 (eval $ac_try) 2>&5
23248 ac_status=$?
23249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23250 (exit $ac_status); }; } &&
23251 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23253 (eval $ac_try) 2>&5
23254 ac_status=$?
23255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23256 (exit $ac_status); }; }; then
23257
23258 cat >conftest.$ac_ext <<_ACEOF
23259/* confdefs.h. */
23260_ACEOF
23261cat confdefs.h >>conftest.$ac_ext
23262cat >>conftest.$ac_ext <<_ACEOF
23263/* end confdefs.h. */
23264
23265 class Foo { public: explicit Foo(int) {} };
23266 static void TakeFoo(const Foo& foo) { }
23267
23268int
23269main ()
23270{
23271
23272 TakeFoo(17);
23273 return 0;
23274
23275 ;
23276 return 0;
23277}
23278_ACEOF
23279rm -f conftest.$ac_objext
23280if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23281 (eval $ac_compile) 2>conftest.er1
a848cd7e 23282 ac_status=$?
ac1cb8d3
VS
23283 grep -v '^ *+' conftest.er1 >conftest.err
23284 rm -f conftest.er1
23285 cat conftest.err >&5
a848cd7e
SC
23286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23287 (exit $ac_status); } &&
3ea50042 23288 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23290 (eval $ac_try) 2>&5
23291 ac_status=$?
23292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23293 (exit $ac_status); }; } &&
23294 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23296 (eval $ac_try) 2>&5
23297 ac_status=$?
23298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23299 (exit $ac_status); }; }; then
23300 wx_cv_explicit=no
23301else
23302 echo "$as_me: failed program was:" >&5
23303sed 's/^/| /' conftest.$ac_ext >&5
23304
23305wx_cv_explicit=yes
23306
23307fi
ac1cb8d3 23308rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23309
23310else
23311 echo "$as_me: failed program was:" >&5
23312sed 's/^/| /' conftest.$ac_ext >&5
23313
23314wx_cv_explicit=no
23315
23316fi
ac1cb8d3 23317rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 23318
5d7b7554
VZ
23319 ac_ext=cc
23320ac_cpp='$CXXCPP $CPPFLAGS'
23321ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23322ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23323ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a848cd7e
SC
23324
23325
23326fi
23327echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
23328echo "${ECHO_T}$wx_cv_explicit" >&6
23329
23330 if test "$wx_cv_explicit" = "yes"; then
23331 cat >>confdefs.h <<\_ACEOF
23332#define HAVE_EXPLICIT 1
23333_ACEOF
23334
23335 fi
23336
23337
23338echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
23339echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
23340if test "${ac_cv_cxx_const_cast+set}" = set; then
23341 echo $ECHO_N "(cached) $ECHO_C" >&6
23342else
23343
23344
23345 ac_ext=cc
23346ac_cpp='$CXXCPP $CPPFLAGS'
23347ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23348ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23349ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23350
23351 cat >conftest.$ac_ext <<_ACEOF
23352/* confdefs.h. */
23353_ACEOF
23354cat confdefs.h >>conftest.$ac_ext
23355cat >>conftest.$ac_ext <<_ACEOF
23356/* end confdefs.h. */
23357
23358int
23359main ()
23360{
23361int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
23362 ;
23363 return 0;
23364}
23365_ACEOF
23366rm -f conftest.$ac_objext
23367if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23368 (eval $ac_compile) 2>conftest.er1
a848cd7e 23369 ac_status=$?
ac1cb8d3
VS
23370 grep -v '^ *+' conftest.er1 >conftest.err
23371 rm -f conftest.er1
23372 cat conftest.err >&5
a848cd7e
SC
23373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23374 (exit $ac_status); } &&
3ea50042 23375 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23377 (eval $ac_try) 2>&5
23378 ac_status=$?
23379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23380 (exit $ac_status); }; } &&
23381 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23383 (eval $ac_try) 2>&5
23384 ac_status=$?
23385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23386 (exit $ac_status); }; }; then
23387 ac_cv_cxx_const_cast=yes
23388else
23389 echo "$as_me: failed program was:" >&5
23390sed 's/^/| /' conftest.$ac_ext >&5
23391
23392ac_cv_cxx_const_cast=no
23393fi
ac1cb8d3 23394rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5d7b7554
VZ
23395 ac_ext=cc
23396ac_cpp='$CXXCPP $CPPFLAGS'
23397ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23398ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23399ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a848cd7e
SC
23400
23401
23402fi
23403echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
23404echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
23405if test "$ac_cv_cxx_const_cast" = yes; then
23406
23407cat >>confdefs.h <<\_ACEOF
23408#define HAVE_CONST_CAST
23409_ACEOF
23410
23411fi
23412
7714864e
RL
23413echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5
23414echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6
23415if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then
23416 echo $ECHO_N "(cached) $ECHO_C" >&6
23417else
23418
23419
23420 ac_ext=cc
23421ac_cpp='$CXXCPP $CPPFLAGS'
23422ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23423ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23424ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
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#include <typeinfo>
23433class Base { public : Base () {} virtual void f () = 0;};
23434class Derived : public Base { public : Derived () {} virtual void f () {} };
23435class Unrelated { public : Unrelated () {} };
23436int g (Unrelated&) { return 0; }
23437int
23438main ()
23439{
23440
23441Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e);
23442 ;
23443 return 0;
23444}
23445_ACEOF
23446rm -f conftest.$ac_objext
23447if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23448 (eval $ac_compile) 2>conftest.er1
23449 ac_status=$?
23450 grep -v '^ *+' conftest.er1 >conftest.err
23451 rm -f conftest.er1
23452 cat conftest.err >&5
23453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23454 (exit $ac_status); } &&
3ea50042 23455 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7714864e
RL
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'
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 ac_cv_cxx_reinterpret_cast=yes
23468else
23469 echo "$as_me: failed program was:" >&5
23470sed 's/^/| /' conftest.$ac_ext >&5
23471
23472ac_cv_cxx_reinterpret_cast=no
23473fi
23474rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5d7b7554
VZ
23475 ac_ext=cc
23476ac_cpp='$CXXCPP $CPPFLAGS'
23477ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23478ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23479ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7714864e
RL
23480
23481
23482fi
23483echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5
23484echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6
23485if test "$ac_cv_cxx_reinterpret_cast" = yes; then
23486
23487cat >>confdefs.h <<\_ACEOF
23488#define HAVE_REINTERPRET_CAST
23489_ACEOF
23490
23491fi
23492
a848cd7e
SC
23493echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
23494echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6
23495if test "${ac_cv_cxx_static_cast+set}" = set; then
23496 echo $ECHO_N "(cached) $ECHO_C" >&6
23497else
23498
23499
23500 ac_ext=cc
23501ac_cpp='$CXXCPP $CPPFLAGS'
23502ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23503ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23504ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23505
23506 cat >conftest.$ac_ext <<_ACEOF
23507/* confdefs.h. */
23508_ACEOF
23509cat confdefs.h >>conftest.$ac_ext
23510cat >>conftest.$ac_ext <<_ACEOF
23511/* end confdefs.h. */
23512#include <typeinfo>
23513class Base { public : Base () {} virtual void f () = 0; };
23514class Derived : public Base { public : Derived () {} virtual void f () {} };
23515int g (Derived&) { return 0; }
23516int
23517main ()
23518{
23519
23520Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
23521 ;
23522 return 0;
23523}
23524_ACEOF
23525rm -f conftest.$ac_objext
23526if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23527 (eval $ac_compile) 2>conftest.er1
a848cd7e 23528 ac_status=$?
ac1cb8d3
VS
23529 grep -v '^ *+' conftest.er1 >conftest.err
23530 rm -f conftest.er1
23531 cat conftest.err >&5
a848cd7e
SC
23532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23533 (exit $ac_status); } &&
3ea50042 23534 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23536 (eval $ac_try) 2>&5
23537 ac_status=$?
23538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23539 (exit $ac_status); }; } &&
23540 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23542 (eval $ac_try) 2>&5
23543 ac_status=$?
23544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23545 (exit $ac_status); }; }; then
23546 ac_cv_cxx_static_cast=yes
23547else
23548 echo "$as_me: failed program was:" >&5
23549sed 's/^/| /' conftest.$ac_ext >&5
23550
23551ac_cv_cxx_static_cast=no
23552fi
ac1cb8d3 23553rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5d7b7554
VZ
23554 ac_ext=cc
23555ac_cpp='$CXXCPP $CPPFLAGS'
23556ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23557ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23558ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a848cd7e
SC
23559
23560
23561fi
23562echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
23563echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6
23564if test "$ac_cv_cxx_static_cast" = yes; then
23565
23566cat >>confdefs.h <<\_ACEOF
23567#define HAVE_STATIC_CAST
23568_ACEOF
23569
23570fi
23571
23572
3c28b7cb 23573if test "x$SUNCXX" = xyes; then
c92ad099 23574 CXXFLAGS="-features=tmplife $CXXFLAGS"
3c28b7cb
MW
23575fi
23576
9122d155 23577if test "x$SUNCC" = xyes; then
c92ad099 23578 CFLAGS="-erroff=E_NO_EXPLICIT_TYPE_GIVEN $CFLAGS"
9122d155
VZ
23579fi
23580
0ad5d837 23581if test "x$SGICC" = "xyes"; then
c92ad099 23582 CFLAGS="-woff 3970 $CFLAGS"
0ad5d837
VZ
23583fi
23584if test "x$SGICXX" = "xyes"; then
c92ad099 23585 CXXFLAGS="-woff 3970 $CXXFLAGS"
0ad5d837
VZ
23586fi
23587
2eef8513 23588if test "x$HPCC" = "xyes"; then
c92ad099 23589 CFLAGS="+W 2011,2450 $CFLAGS"
2eef8513
VZ
23590fi
23591if test "x$HPCXX" = "xyes"; then
c92ad099 23592 CXXFLAGS="+W 2340 $CXXFLAGS"
2eef8513
VZ
23593fi
23594
23595if test "x$COMPAQCXX" = "xyes"; then
23596 CXXFLAGS="-w0 -msg_disable basclsnondto,unrimpret,intconlosbit"
23597fi
23598
f56c22b4 23599if test "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes"; then
f56c22b4
MW
23600 if test "$wxUSE_UNICODE" = "yes"; then
23601 std_string="std::wstring"
23602 char_type="wchar_t"
23603 else
23604 std_string="std::string"
23605 char_type="char"
23606 fi
23607
23608 echo "$as_me:$LINENO: checking for $std_string in <string>" >&5
23609echo $ECHO_N "checking for $std_string in <string>... $ECHO_C" >&6
a848cd7e
SC
23610 cat >conftest.$ac_ext <<_ACEOF
23611/* confdefs.h. */
23612_ACEOF
23613cat confdefs.h >>conftest.$ac_ext
23614cat >>conftest.$ac_ext <<_ACEOF
23615/* end confdefs.h. */
23616#include <string>
a848cd7e
SC
23617int
23618main ()
23619{
f56c22b4 23620$std_string foo;
a848cd7e
SC
23621 ;
23622 return 0;
23623}
23624_ACEOF
23625rm -f conftest.$ac_objext
23626if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23627 (eval $ac_compile) 2>conftest.er1
a848cd7e 23628 ac_status=$?
ac1cb8d3
VS
23629 grep -v '^ *+' conftest.er1 >conftest.err
23630 rm -f conftest.er1
23631 cat conftest.err >&5
a848cd7e
SC
23632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23633 (exit $ac_status); } &&
3ea50042 23634 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23636 (eval $ac_try) 2>&5
23637 ac_status=$?
23638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23639 (exit $ac_status); }; } &&
23640 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23642 (eval $ac_try) 2>&5
23643 ac_status=$?
23644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23645 (exit $ac_status); }; }; then
23646 echo "$as_me:$LINENO: result: yes" >&5
23647echo "${ECHO_T}yes" >&6
0a08f02a
MB
23648 cat >>confdefs.h <<\_ACEOF
23649#define HAVE_STD_WSTRING 1
23650_ACEOF
23651
a848cd7e
SC
23652else
23653 echo "$as_me: failed program was:" >&5
23654sed 's/^/| /' conftest.$ac_ext >&5
23655
23656echo "$as_me:$LINENO: result: no" >&5
23657echo "${ECHO_T}no" >&6
f56c22b4
MW
23658 echo "$as_me:$LINENO: checking if std::basic_string<$char_type> works" >&5
23659echo $ECHO_N "checking if std::basic_string<$char_type> works... $ECHO_C" >&6
0a08f02a
MB
23660 cat >conftest.$ac_ext <<_ACEOF
23661/* confdefs.h. */
23662_ACEOF
23663cat confdefs.h >>conftest.$ac_ext
23664cat >>conftest.$ac_ext <<_ACEOF
23665/* end confdefs.h. */
23666
23667 #ifdef HAVE_WCHAR_H
23668 # ifdef __CYGWIN__
23669 # include <stddef.h>
23670 # endif
23671 # include <wchar.h>
23672 #endif
23673 #ifdef HAVE_STDLIB_H
23674 # include <stdlib.h>
23675 #endif
23676 #include <stdio.h>
23677 #include <string>
23678
23679int
23680main ()
23681{
f56c22b4
MW
23682std::basic_string<$char_type> foo;
23683 const $char_type* dummy = foo.c_str();
0a08f02a
MB
23684 ;
23685 return 0;
23686}
23687_ACEOF
23688rm -f conftest.$ac_objext
23689if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23690 (eval $ac_compile) 2>conftest.er1
23691 ac_status=$?
23692 grep -v '^ *+' conftest.er1 >conftest.err
23693 rm -f conftest.er1
23694 cat conftest.err >&5
23695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23696 (exit $ac_status); } &&
3ea50042 23697 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0a08f02a
MB
23698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23699 (eval $ac_try) 2>&5
23700 ac_status=$?
23701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23702 (exit $ac_status); }; } &&
23703 { ac_try='test -s conftest.$ac_objext'
23704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23705 (eval $ac_try) 2>&5
23706 ac_status=$?
23707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23708 (exit $ac_status); }; }; then
23709 echo "$as_me:$LINENO: result: yes" >&5
23710echo "${ECHO_T}yes" >&6
23711else
23712 echo "$as_me: failed program was:" >&5
23713sed 's/^/| /' conftest.$ac_ext >&5
23714
23715echo "$as_me:$LINENO: result: no" >&5
23716echo "${ECHO_T}no" >&6
f56c22b4 23717 if test "$wxUSE_STL" = "yes"; then
4b9918c5
MW
23718 { { echo "$as_me:$LINENO: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&5
23719echo "$as_me: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&2;}
23720 { (exit 1); exit 1; }; }
23721 elif grep wxUSE_STD_STRING $wx_arg_cache_file >/dev/null; then
23722 { { echo "$as_me:$LINENO: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&5
23723echo "$as_me: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&2;}
a848cd7e 23724 { (exit 1); exit 1; }; }
f56c22b4
MW
23725 else
23726 { echo "$as_me:$LINENO: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&5
23727echo "$as_me: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&2;}
23728 wxUSE_STD_STRING=no
23729 fi
23730
0a08f02a 23731
a848cd7e 23732fi
ac1cb8d3 23733rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 23734
0a08f02a
MB
23735fi
23736rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f56c22b4
MW
23737fi
23738
23739if test "$wxUSE_STD_IOSTREAM" = "yes"; then
f56c22b4
MW
23740 echo "$as_me:$LINENO: checking for std::istream" >&5
23741echo $ECHO_N "checking for std::istream... $ECHO_C" >&6
23742if test "${ac_cv_type_std__istream+set}" = set; then
23743 echo $ECHO_N "(cached) $ECHO_C" >&6
23744else
23745 cat >conftest.$ac_ext <<_ACEOF
23746/* confdefs.h. */
23747_ACEOF
23748cat confdefs.h >>conftest.$ac_ext
23749cat >>conftest.$ac_ext <<_ACEOF
23750/* end confdefs.h. */
23751#include <iostream>
23752
23753int
23754main ()
23755{
23756if ((std::istream *) 0)
23757 return 0;
23758if (sizeof (std::istream))
23759 return 0;
23760 ;
23761 return 0;
23762}
23763_ACEOF
23764rm -f conftest.$ac_objext
23765if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23766 (eval $ac_compile) 2>conftest.er1
23767 ac_status=$?
23768 grep -v '^ *+' conftest.er1 >conftest.err
23769 rm -f conftest.er1
23770 cat conftest.err >&5
23771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23772 (exit $ac_status); } &&
3ea50042 23773 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
f56c22b4
MW
23774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23775 (eval $ac_try) 2>&5
23776 ac_status=$?
23777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23778 (exit $ac_status); }; } &&
23779 { ac_try='test -s conftest.$ac_objext'
23780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23781 (eval $ac_try) 2>&5
23782 ac_status=$?
23783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23784 (exit $ac_status); }; }; then
23785 ac_cv_type_std__istream=yes
23786else
23787 echo "$as_me: failed program was:" >&5
23788sed 's/^/| /' conftest.$ac_ext >&5
23789
23790ac_cv_type_std__istream=no
23791fi
23792rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23793fi
23794echo "$as_me:$LINENO: result: $ac_cv_type_std__istream" >&5
23795echo "${ECHO_T}$ac_cv_type_std__istream" >&6
23796if test $ac_cv_type_std__istream = yes; then
23797
23798cat >>confdefs.h <<_ACEOF
23799#define HAVE_STD__ISTREAM 1
23800_ACEOF
23801
23802
23803else
23804 wxUSE_STD_IOSTREAM=no
23805fi
23806echo "$as_me:$LINENO: checking for std::ostream" >&5
23807echo $ECHO_N "checking for std::ostream... $ECHO_C" >&6
23808if test "${ac_cv_type_std__ostream+set}" = set; then
23809 echo $ECHO_N "(cached) $ECHO_C" >&6
23810else
23811 cat >conftest.$ac_ext <<_ACEOF
23812/* confdefs.h. */
23813_ACEOF
23814cat confdefs.h >>conftest.$ac_ext
23815cat >>conftest.$ac_ext <<_ACEOF
23816/* end confdefs.h. */
23817#include <iostream>
23818
23819int
23820main ()
23821{
23822if ((std::ostream *) 0)
23823 return 0;
23824if (sizeof (std::ostream))
23825 return 0;
23826 ;
23827 return 0;
23828}
23829_ACEOF
23830rm -f conftest.$ac_objext
23831if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23832 (eval $ac_compile) 2>conftest.er1
23833 ac_status=$?
23834 grep -v '^ *+' conftest.er1 >conftest.err
23835 rm -f conftest.er1
23836 cat conftest.err >&5
23837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23838 (exit $ac_status); } &&
3ea50042 23839 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
f56c22b4
MW
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); }; } &&
23845 { ac_try='test -s conftest.$ac_objext'
23846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23847 (eval $ac_try) 2>&5
23848 ac_status=$?
23849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23850 (exit $ac_status); }; }; then
23851 ac_cv_type_std__ostream=yes
23852else
23853 echo "$as_me: failed program was:" >&5
23854sed 's/^/| /' conftest.$ac_ext >&5
23855
23856ac_cv_type_std__ostream=no
23857fi
23858rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23859fi
23860echo "$as_me:$LINENO: result: $ac_cv_type_std__ostream" >&5
23861echo "${ECHO_T}$ac_cv_type_std__ostream" >&6
23862if test $ac_cv_type_std__ostream = yes; then
23863
23864cat >>confdefs.h <<_ACEOF
23865#define HAVE_STD__OSTREAM 1
23866_ACEOF
23867
23868
23869else
23870 wxUSE_STD_IOSTREAM=no
23871fi
23872
23873
23874 if test "$wxUSE_STD_IOSTREAM" != "yes"; then
4b9918c5
MW
23875 if grep wxUSE_STD_IOSTREAM $wx_arg_cache_file >/dev/null; then
23876 { { echo "$as_me:$LINENO: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&5
23877echo "$as_me: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&2;}
23878 { (exit 1); exit 1; }; }
23879 else
23880 { echo "$as_me:$LINENO: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&5
f56c22b4 23881echo "$as_me: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&2;}
4b9918c5 23882 fi
f56c22b4 23883 fi
0a08f02a
MB
23884fi
23885
23886if test "$wxUSE_STL" = "yes"; then
0a08f02a
MB
23887 echo "$as_me:$LINENO: checking for basic STL functionality" >&5
23888echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
a848cd7e
SC
23889 cat >conftest.$ac_ext <<_ACEOF
23890/* confdefs.h. */
23891_ACEOF
23892cat confdefs.h >>conftest.$ac_ext
23893cat >>conftest.$ac_ext <<_ACEOF
23894/* end confdefs.h. */
23895#include <string>
0a08f02a
MB
23896 #include <functional>
23897 #include <algorithm>
23898 #include <vector>
23899 #include <list>
a848cd7e
SC
23900int
23901main ()
23902{
0a08f02a
MB
23903std::vector<int> moo;
23904 std::list<int> foo;
23905 std::vector<int>::iterator it =
23906 std::find_if(moo.begin(), moo.end(),
23907 std::bind2nd(std::less<int>(), 3));
a848cd7e
SC
23908 ;
23909 return 0;
23910}
23911_ACEOF
23912rm -f conftest.$ac_objext
23913if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23914 (eval $ac_compile) 2>conftest.er1
a848cd7e 23915 ac_status=$?
ac1cb8d3
VS
23916 grep -v '^ *+' conftest.er1 >conftest.err
23917 rm -f conftest.er1
23918 cat conftest.err >&5
a848cd7e
SC
23919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23920 (exit $ac_status); } &&
3ea50042 23921 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23923 (eval $ac_try) 2>&5
23924 ac_status=$?
23925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23926 (exit $ac_status); }; } &&
23927 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23929 (eval $ac_try) 2>&5
23930 ac_status=$?
23931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23932 (exit $ac_status); }; }; then
23933 echo "$as_me:$LINENO: result: yes" >&5
23934echo "${ECHO_T}yes" >&6
a848cd7e
SC
23935else
23936 echo "$as_me: failed program was:" >&5
23937sed 's/^/| /' conftest.$ac_ext >&5
23938
23939echo "$as_me:$LINENO: result: no" >&5
23940echo "${ECHO_T}no" >&6
0a08f02a
MB
23941 { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
23942echo "$as_me: error: Basic STL functionality missing" >&2;}
23943 { (exit 1); exit 1; }; }
a848cd7e 23944fi
ac1cb8d3 23945rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23946
23947 echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
23948echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
23949 cat >conftest.$ac_ext <<_ACEOF
23950/* confdefs.h. */
23951_ACEOF
23952cat confdefs.h >>conftest.$ac_ext
23953cat >>conftest.$ac_ext <<_ACEOF
23954/* end confdefs.h. */
23955#include <string>
23956int
23957main ()
23958{
23959std::string foo, bar;
23960 foo.compare(bar);
23961 foo.compare(1, 1, bar);
23962 foo.compare(1, 1, bar, 1, 1);
23963 foo.compare("");
23964 foo.compare(1, 1, "");
23965 foo.compare(1, 1, "", 2);
23966 ;
23967 return 0;
23968}
23969_ACEOF
23970rm -f conftest.$ac_objext
23971if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23972 (eval $ac_compile) 2>conftest.er1
a848cd7e 23973 ac_status=$?
ac1cb8d3
VS
23974 grep -v '^ *+' conftest.er1 >conftest.err
23975 rm -f conftest.er1
23976 cat conftest.err >&5
a848cd7e
SC
23977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23978 (exit $ac_status); } &&
3ea50042 23979 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23981 (eval $ac_try) 2>&5
23982 ac_status=$?
23983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23984 (exit $ac_status); }; } &&
23985 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23987 (eval $ac_try) 2>&5
23988 ac_status=$?
23989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23990 (exit $ac_status); }; }; then
23991 echo "$as_me:$LINENO: result: yes" >&5
23992echo "${ECHO_T}yes" >&6
23993 cat >>confdefs.h <<\_ACEOF
23994#define HAVE_STD_STRING_COMPARE 1
23995_ACEOF
23996
23997else
23998 echo "$as_me: failed program was:" >&5
23999sed 's/^/| /' conftest.$ac_ext >&5
24000
24001echo "$as_me:$LINENO: result: no" >&5
24002echo "${ECHO_T}no" >&6
24003fi
ac1cb8d3 24004rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
24005
24006 if test "${ac_cv_header_hash_map+set}" = set; then
24007 echo "$as_me:$LINENO: checking for hash_map" >&5
24008echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
24009if test "${ac_cv_header_hash_map+set}" = set; then
24010 echo $ECHO_N "(cached) $ECHO_C" >&6
24011fi
24012echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
24013echo "${ECHO_T}$ac_cv_header_hash_map" >&6
24014else
24015 # Is the header compilable?
24016echo "$as_me:$LINENO: checking hash_map usability" >&5
24017echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6
24018cat >conftest.$ac_ext <<_ACEOF
24019/* confdefs.h. */
24020_ACEOF
24021cat confdefs.h >>conftest.$ac_ext
24022cat >>conftest.$ac_ext <<_ACEOF
24023/* end confdefs.h. */
24024$ac_includes_default
24025#include <hash_map>
24026_ACEOF
24027rm -f conftest.$ac_objext
24028if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24029 (eval $ac_compile) 2>conftest.er1
bdcade0a 24030 ac_status=$?
ac1cb8d3
VS
24031 grep -v '^ *+' conftest.er1 >conftest.err
24032 rm -f conftest.er1
24033 cat conftest.err >&5
bdcade0a
MB
24034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24035 (exit $ac_status); } &&
3ea50042 24036 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24038 (eval $ac_try) 2>&5
24039 ac_status=$?
24040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24041 (exit $ac_status); }; } &&
24042 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
24043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24044 (eval $ac_try) 2>&5
24045 ac_status=$?
24046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24047 (exit $ac_status); }; }; then
24048 ac_header_compiler=yes
24049else
24050 echo "$as_me: failed program was:" >&5
24051sed 's/^/| /' conftest.$ac_ext >&5
24052
24053ac_header_compiler=no
24054fi
ac1cb8d3 24055rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
24056echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24057echo "${ECHO_T}$ac_header_compiler" >&6
24058
24059# Is the header present?
24060echo "$as_me:$LINENO: checking hash_map presence" >&5
24061echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6
24062cat >conftest.$ac_ext <<_ACEOF
24063/* confdefs.h. */
24064_ACEOF
24065cat confdefs.h >>conftest.$ac_ext
24066cat >>conftest.$ac_ext <<_ACEOF
24067/* end confdefs.h. */
24068#include <hash_map>
24069_ACEOF
24070if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24071 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24072 ac_status=$?
24073 grep -v '^ *+' conftest.er1 >conftest.err
24074 rm -f conftest.er1
24075 cat conftest.err >&5
24076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24077 (exit $ac_status); } >/dev/null; then
24078 if test -s conftest.err; then
24079 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 24080 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
24081 else
24082 ac_cpp_err=
24083 fi
24084else
24085 ac_cpp_err=yes
24086fi
24087if test -z "$ac_cpp_err"; then
24088 ac_header_preproc=yes
24089else
24090 echo "$as_me: failed program was:" >&5
24091sed 's/^/| /' conftest.$ac_ext >&5
24092
24093 ac_header_preproc=no
24094fi
24095rm -f conftest.err conftest.$ac_ext
24096echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24097echo "${ECHO_T}$ac_header_preproc" >&6
24098
24099# So? What about this header?
ac1cb8d3
VS
24100case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
24101 yes:no: )
bdcade0a
MB
24102 { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
24103echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
24104 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5
24105echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;}
24106 ac_header_preproc=yes
bdcade0a 24107 ;;
ac1cb8d3 24108 no:yes:* )
bdcade0a
MB
24109 { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5
24110echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
24111 { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5
24112echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;}
24113 { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5
24114echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;}
24115 { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5
24116echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
24117 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5
24118echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
24119 { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5
24120echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
24121 (
24122 cat <<\_ASBOX
ac1cb8d3
VS
24123## ----------------------------------------- ##
24124## Report this to wx-dev@lists.wxwidgets.org ##
24125## ----------------------------------------- ##
bdcade0a
MB
24126_ASBOX
24127 ) |
24128 sed "s/^/$as_me: WARNING: /" >&2
24129 ;;
24130esac
24131echo "$as_me:$LINENO: checking for hash_map" >&5
24132echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
24133if test "${ac_cv_header_hash_map+set}" = set; then
24134 echo $ECHO_N "(cached) $ECHO_C" >&6
24135else
24136 ac_cv_header_hash_map=$ac_header_preproc
24137fi
24138echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
24139echo "${ECHO_T}$ac_cv_header_hash_map" >&6
24140
24141fi
24142if test $ac_cv_header_hash_map = yes; then
24143 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
24144echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
24145 cat >conftest.$ac_ext <<_ACEOF
24146/* confdefs.h. */
24147_ACEOF
24148cat confdefs.h >>conftest.$ac_ext
24149cat >>conftest.$ac_ext <<_ACEOF
24150/* end confdefs.h. */
24151#include <hash_map>
24152 #include <hash_set>
24153int
24154main ()
24155{
24156std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
24157 std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
24158 ;
24159 return 0;
24160}
24161_ACEOF
24162rm -f conftest.$ac_objext
24163if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24164 (eval $ac_compile) 2>conftest.er1
bdcade0a 24165 ac_status=$?
ac1cb8d3
VS
24166 grep -v '^ *+' conftest.er1 >conftest.err
24167 rm -f conftest.er1
24168 cat conftest.err >&5
bdcade0a
MB
24169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24170 (exit $ac_status); } &&
3ea50042 24171 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24173 (eval $ac_try) 2>&5
24174 ac_status=$?
24175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24176 (exit $ac_status); }; } &&
24177 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
24178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24179 (eval $ac_try) 2>&5
24180 ac_status=$?
24181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24182 (exit $ac_status); }; }; then
24183 echo "$as_me:$LINENO: result: yes" >&5
24184echo "${ECHO_T}yes" >&6
24185 cat >>confdefs.h <<\_ACEOF
24186#define HAVE_HASH_MAP 1
24187_ACEOF
24188
24189 cat >>confdefs.h <<\_ACEOF
24190#define HAVE_STD_HASH_MAP 1
24191_ACEOF
24192
24193else
24194 echo "$as_me: failed program was:" >&5
24195sed 's/^/| /' conftest.$ac_ext >&5
24196
24197echo "$as_me:$LINENO: result: no" >&5
24198echo "${ECHO_T}no" >&6
24199fi
ac1cb8d3 24200rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
24201
24202fi
24203
24204
24205
24206 if test "${ac_cv_header_ext_hash_map+set}" = set; then
24207 echo "$as_me:$LINENO: checking for ext/hash_map" >&5
24208echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
24209if test "${ac_cv_header_ext_hash_map+set}" = set; then
24210 echo $ECHO_N "(cached) $ECHO_C" >&6
24211fi
24212echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
24213echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
24214else
24215 # Is the header compilable?
24216echo "$as_me:$LINENO: checking ext/hash_map usability" >&5
24217echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6
24218cat >conftest.$ac_ext <<_ACEOF
24219/* confdefs.h. */
24220_ACEOF
24221cat confdefs.h >>conftest.$ac_ext
24222cat >>conftest.$ac_ext <<_ACEOF
24223/* end confdefs.h. */
24224$ac_includes_default
24225#include <ext/hash_map>
24226_ACEOF
24227rm -f conftest.$ac_objext
24228if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24229 (eval $ac_compile) 2>conftest.er1
bdcade0a 24230 ac_status=$?
ac1cb8d3
VS
24231 grep -v '^ *+' conftest.er1 >conftest.err
24232 rm -f conftest.er1
24233 cat conftest.err >&5
bdcade0a
MB
24234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24235 (exit $ac_status); } &&
3ea50042 24236 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24238 (eval $ac_try) 2>&5
24239 ac_status=$?
24240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24241 (exit $ac_status); }; } &&
24242 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
24243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24244 (eval $ac_try) 2>&5
24245 ac_status=$?
24246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24247 (exit $ac_status); }; }; then
24248 ac_header_compiler=yes
24249else
24250 echo "$as_me: failed program was:" >&5
24251sed 's/^/| /' conftest.$ac_ext >&5
24252
24253ac_header_compiler=no
24254fi
ac1cb8d3 24255rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
24256echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24257echo "${ECHO_T}$ac_header_compiler" >&6
24258
24259# Is the header present?
24260echo "$as_me:$LINENO: checking ext/hash_map presence" >&5
24261echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6
24262cat >conftest.$ac_ext <<_ACEOF
24263/* confdefs.h. */
24264_ACEOF
24265cat confdefs.h >>conftest.$ac_ext
24266cat >>conftest.$ac_ext <<_ACEOF
24267/* end confdefs.h. */
24268#include <ext/hash_map>
24269_ACEOF
24270if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24271 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24272 ac_status=$?
24273 grep -v '^ *+' conftest.er1 >conftest.err
24274 rm -f conftest.er1
24275 cat conftest.err >&5
24276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24277 (exit $ac_status); } >/dev/null; then
24278 if test -s conftest.err; then
24279 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 24280 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
24281 else
24282 ac_cpp_err=
24283 fi
24284else
24285 ac_cpp_err=yes
24286fi
24287if test -z "$ac_cpp_err"; then
24288 ac_header_preproc=yes
24289else
24290 echo "$as_me: failed program was:" >&5
24291sed 's/^/| /' conftest.$ac_ext >&5
24292
24293 ac_header_preproc=no
24294fi
24295rm -f conftest.err conftest.$ac_ext
24296echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24297echo "${ECHO_T}$ac_header_preproc" >&6
24298
24299# So? What about this header?
ac1cb8d3
VS
24300case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
24301 yes:no: )
bdcade0a
MB
24302 { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
24303echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
24304 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5
24305echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;}
24306 ac_header_preproc=yes
bdcade0a 24307 ;;
ac1cb8d3 24308 no:yes:* )
bdcade0a
MB
24309 { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5
24310echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
24311 { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5
24312echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;}
24313 { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5
24314echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;}
24315 { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5
24316echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
24317 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5
24318echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
24319 { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5
24320echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
24321 (
24322 cat <<\_ASBOX
ac1cb8d3
VS
24323## ----------------------------------------- ##
24324## Report this to wx-dev@lists.wxwidgets.org ##
24325## ----------------------------------------- ##
bdcade0a
MB
24326_ASBOX
24327 ) |
24328 sed "s/^/$as_me: WARNING: /" >&2
24329 ;;
24330esac
24331echo "$as_me:$LINENO: checking for ext/hash_map" >&5
24332echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
24333if test "${ac_cv_header_ext_hash_map+set}" = set; then
24334 echo $ECHO_N "(cached) $ECHO_C" >&6
24335else
24336 ac_cv_header_ext_hash_map=$ac_header_preproc
24337fi
24338echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
24339echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
24340
24341fi
24342if test $ac_cv_header_ext_hash_map = yes; then
24343 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
24344echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
24345 cat >conftest.$ac_ext <<_ACEOF
24346/* confdefs.h. */
24347_ACEOF
24348cat confdefs.h >>conftest.$ac_ext
24349cat >>conftest.$ac_ext <<_ACEOF
24350/* end confdefs.h. */
24351#include <ext/hash_map>
24352 #include <ext/hash_set>
24353int
24354main ()
24355{
24356__gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
24357 __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
24358 ;
24359 return 0;
24360}
24361_ACEOF
24362rm -f conftest.$ac_objext
24363if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24364 (eval $ac_compile) 2>conftest.er1
bdcade0a 24365 ac_status=$?
ac1cb8d3
VS
24366 grep -v '^ *+' conftest.er1 >conftest.err
24367 rm -f conftest.er1
24368 cat conftest.err >&5
bdcade0a
MB
24369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24370 (exit $ac_status); } &&
3ea50042 24371 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24373 (eval $ac_try) 2>&5
24374 ac_status=$?
24375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24376 (exit $ac_status); }; } &&
24377 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
24378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24379 (eval $ac_try) 2>&5
24380 ac_status=$?
24381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24382 (exit $ac_status); }; }; then
24383 echo "$as_me:$LINENO: result: yes" >&5
24384echo "${ECHO_T}yes" >&6
24385 cat >>confdefs.h <<\_ACEOF
24386#define HAVE_EXT_HASH_MAP 1
24387_ACEOF
24388
24389 cat >>confdefs.h <<\_ACEOF
24390#define HAVE_GNU_CXX_HASH_MAP 1
24391_ACEOF
24392
24393else
24394 echo "$as_me: failed program was:" >&5
24395sed 's/^/| /' conftest.$ac_ext >&5
24396
24397echo "$as_me:$LINENO: result: no" >&5
24398echo "${ECHO_T}no" >&6
24399fi
ac1cb8d3 24400rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
24401
24402fi
24403
24404
a848cd7e
SC
24405fi
24406
24407
24408SEARCH_INCLUDE="\
24409 /usr/local/include \
24410 \
24411 /usr/Motif-2.1/include \
24412 /usr/Motif-1.2/include \
24413 /usr/include/Motif1.2 \
a848cd7e
SC
24414 \
24415 /usr/dt/include \
24416 /usr/openwin/include \
24417 \
24418 /usr/include/Xm \
24419 \
24420 /usr/X11R6/include \
24421 /usr/X11R6.4/include \
24422 /usr/X11R5/include \
24423 /usr/X11R4/include \
24424 \
24425 /usr/include/X11R6 \
24426 /usr/include/X11R5 \
24427 /usr/include/X11R4 \
24428 \
24429 /usr/local/X11R6/include \
24430 /usr/local/X11R5/include \
24431 /usr/local/X11R4/include \
24432 \
24433 /usr/local/include/X11R6 \
24434 /usr/local/include/X11R5 \
24435 /usr/local/include/X11R4 \
24436 \
24437 /usr/X11/include \
24438 /usr/include/X11 \
24439 /usr/local/X11/include \
24440 /usr/local/include/X11 \
24441 \
a848cd7e 24442 /usr/XFree86/include/X11 \
e051b34e
MW
24443 /usr/pkg/include \
24444 \
a848cd7e
SC
24445 /usr/openwin/share/include"
24446
6f9cf1e6 24447echo "$as_me:$LINENO: checking for libraries directory" >&5
0ad5d837 24448echo $ECHO_N "checking for libraries directory... $ECHO_C" >&6
6f9cf1e6
MW
24449
24450case "${host}" in
24451 *-*-irix6* )
24452 if test "${wx_cv_std_libpath+set}" = set; then
0ad5d837
VZ
24453 echo $ECHO_N "(cached) $ECHO_C" >&6
24454else
24455
c687b303
VZ
24456 for d in /usr/lib /usr/lib32 /usr/lib/64 /usr/lib64; do
24457 for e in a so sl dylib dll.a; do
24458 libc="$d/libc.$e"
24459 if test -f $libc; then
24460 save_LIBS="$LIBS"
24461 LIBS="$libc"
24462 cat >conftest.$ac_ext <<_ACEOF
0ad5d837
VZ
24463int main() { return 0; }
24464_ACEOF
24465rm -f conftest.$ac_objext conftest$ac_exeext
24466if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24467 (eval $ac_link) 2>conftest.er1
24468 ac_status=$?
24469 grep -v '^ *+' conftest.er1 >conftest.err
24470 rm -f conftest.er1
24471 cat conftest.err >&5
24472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24473 (exit $ac_status); } &&
3ea50042 24474 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0ad5d837
VZ
24475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24476 (eval $ac_try) 2>&5
24477 ac_status=$?
24478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24479 (exit $ac_status); }; } &&
24480 { ac_try='test -s conftest$ac_exeext'
24481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24482 (eval $ac_try) 2>&5
24483 ac_status=$?
24484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24485 (exit $ac_status); }; }; then
24486 wx_cv_std_libpath=`echo $d | sed s@/usr/@@`
24487else
24488 echo "$as_me: failed program was:" >&5
24489sed 's/^/| /' conftest.$ac_ext >&5
24490
24491fi
24492rm -f conftest.err conftest.$ac_objext \
24493 conftest$ac_exeext conftest.$ac_ext
c687b303
VZ
24494 LIBS="$save_LIBS"
24495 if test "x$wx_cv_std_libpath" != "x"; then
24496 break 2
24497 fi
24498 fi
24499 done
24500 done
24501 if test "x$wx_cv_std_libpath" = "x"; then
24502 wx_cv_std_libpath="lib"
0ad5d837 24503 fi
0ad5d837
VZ
24504
24505
24506fi
6f9cf1e6
MW
24507
24508 ;;
24509
24510 *-*-solaris2* )
24511 if test "$ac_cv_sizeof_void_p" = 8 -a -d "/usr/lib/64"; then
24512 wx_cv_std_libpath="lib/64"
24513 else
24514 wx_cv_std_libpath="lib"
24515 fi
24516 ;;
24517
24518 *-*-linux* )
24519 if test "$ac_cv_sizeof_void_p" = 8 -a \
24520 -d "/usr/lib64" -a ! -h "/usr/lib64"; then
24521 wx_cv_std_libpath="lib64"
24522 else
24523 wx_cv_std_libpath="lib"
24524 fi
c687b303
VZ
24525 ;;
24526
24527 *)
24528 wx_cv_std_libpath="lib";
24529 ;;
24530esac
0ad5d837 24531
6f9cf1e6
MW
24532echo "$as_me:$LINENO: result: $wx_cv_std_libpath" >&5
24533echo "${ECHO_T}$wx_cv_std_libpath" >&6
24534
24535SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s@include@$wx_cv_std_libpath@g` /usr/$wx_cv_std_libpath"
a848cd7e 24536
3eca31dc
MW
24537if test "$build" != "$host" -a "$GCC" = yes; then
24538 if cross_root=`$CC -print-prog-name=ld 2>/dev/null`; then
24539 cross_root=`dirname $cross_root`
24540 cross_root=`dirname $cross_root`
24541
24542 SEARCH_LIB=`for x in $SEARCH_LIB; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
24543 SEARCH_INCLUDE=`for x in $SEARCH_INCLUDE; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
5c60e845 24544 SEARCH_INCLUDE="$SEARCH_INCLUDE $cross_root/include"
3eca31dc
MW
24545
24546 if test -z "$PKG_CONFIG_PATH"; then
24547 PKG_CONFIG_PATH="$cross_root/local/lib/pkgconfig:$cross_root/lib/pkgconfig"
24548 export PKG_CONFIG_PATH
24549 fi
24550
24551 if test -z "$x_includes" -o "$x_includes" = NONE; then
24552
24553ac_find_includes=
24554for ac_dir in $SEARCH_INCLUDE /usr/include;
24555 do
24556 if test -f "$ac_dir/X11/Intrinsic.h"; then
24557 ac_find_includes=$ac_dir
24558 break
24559 fi
24560 done
24561
24562 x_includes=$ac_find_includes
24563 fi
24564 if test -z "$x_libraries" -o "$x_libraries" = NONE; then
24565
0ad5d837
VZ
24566 ac_find_libraries=
24567 for ac_dir in $SEARCH_LIB;
3eca31dc
MW
24568 do
24569 for ac_extension in a so sl dylib dll.a; do
24570 if test -f "$ac_dir/libXt.$ac_extension"; then
24571 ac_find_libraries=$ac_dir
24572 break 2
24573 fi
24574 done
24575 done
24576
24577 x_libraries=$ac_find_libraries
24578 fi
24579 fi
24580fi
24581
a848cd7e
SC
24582
24583cat >confcache <<\_ACEOF
24584# This file is a shell script that caches the results of configure
24585# tests run on this system so they can be shared between configure
24586# scripts and configure runs, see configure's option --config-cache.
24587# It is not useful on other systems. If it contains results you don't
24588# want to keep, you may remove or edit it.
24589#
24590# config.status only pays attention to the cache file if you give it
24591# the --recheck option to rerun configure.
24592#
24593# `ac_cv_env_foo' variables (set or unset) will be overridden when
24594# loading this file, other *unset* `ac_cv_foo' will be assigned the
24595# following values.
24596
24597_ACEOF
24598
24599# The following way of writing the cache mishandles newlines in values,
24600# but we know of no workaround that is simple, portable, and efficient.
24601# So, don't put newlines in cache variables' values.
24602# Ultrix sh set writes to stderr and can't be redirected directly,
24603# and sets the high bit in the cache file unless we assign to the vars.
24604{
24605 (set) 2>&1 |
24606 case `(ac_space=' '; set | grep ac_space) 2>&1` in
24607 *ac_space=\ *)
24608 # `set' does not quote correctly, so add quotes (double-quote
24609 # substitution turns \\\\ into \\, and sed turns \\ into \).
24610 sed -n \
ac1cb8d3
VS
24611 "s/'/'\\\\''/g;
24612 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
24613 ;;
24614 *)
24615 # `set' quotes correctly as required by POSIX, so do not add quotes.
24616 sed -n \
ac1cb8d3 24617 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
24618 ;;
24619 esac;
24620} |
24621 sed '
24622 t clear
24623 : clear
24624 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24625 t end
24626 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24627 : end' >>confcache
24628if diff $cache_file confcache >/dev/null 2>&1; then :; else
24629 if test -w $cache_file; then
24630 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
24631 cat confcache >$cache_file
24632 else
24633 echo "not updating unwritable cache $cache_file"
24634 fi
24635fi
24636rm -f confcache
24637
24638if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
24639 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
24640echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
24641if test "${wx_cv_lib_glibc21+set}" = set; then
24642 echo $ECHO_N "(cached) $ECHO_C" >&6
24643else
24644
24645 cat >conftest.$ac_ext <<_ACEOF
24646/* confdefs.h. */
24647_ACEOF
24648cat confdefs.h >>conftest.$ac_ext
24649cat >>conftest.$ac_ext <<_ACEOF
24650/* end confdefs.h. */
24651#include <features.h>
24652int
24653main ()
24654{
24655
24656 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
04e525a0 24657 not glibc 2.1
a848cd7e
SC
24658 #endif
24659
24660 ;
24661 return 0;
24662}
24663_ACEOF
24664rm -f conftest.$ac_objext
24665if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24666 (eval $ac_compile) 2>conftest.er1
a848cd7e 24667 ac_status=$?
ac1cb8d3
VS
24668 grep -v '^ *+' conftest.er1 >conftest.err
24669 rm -f conftest.er1
24670 cat conftest.err >&5
a848cd7e
SC
24671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24672 (exit $ac_status); } &&
3ea50042 24673 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24675 (eval $ac_try) 2>&5
24676 ac_status=$?
24677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24678 (exit $ac_status); }; } &&
24679 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24681 (eval $ac_try) 2>&5
24682 ac_status=$?
24683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24684 (exit $ac_status); }; }; then
24685
24686 wx_cv_lib_glibc21=yes
24687
24688else
24689 echo "$as_me: failed program was:" >&5
24690sed 's/^/| /' conftest.$ac_ext >&5
24691
24692
24693 wx_cv_lib_glibc21=no
24694
24695
24696fi
ac1cb8d3 24697rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24698
24699fi
24700echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
24701echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
24702 if test "$wx_cv_lib_glibc21" = "yes"; then
24703 cat >>confdefs.h <<\_ACEOF
24704#define wxHAVE_GLIBC2 1
24705_ACEOF
24706
24707 fi
24708fi
24709
24710if test "x$wx_cv_lib_glibc21" = "xyes"; then
24711 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
24712 cat >>confdefs.h <<\_ACEOF
24713#define _GNU_SOURCE 1
24714_ACEOF
24715
24716 fi
24717fi
24718
5d7b7554
VZ
24719have_cos=0
24720have_floor=0
a848cd7e 24721
5d7b7554
VZ
24722for ac_func in cos
24723do
24724as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24725echo "$as_me:$LINENO: checking for $ac_func" >&5
24726echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24727if eval "test \"\${$as_ac_var+set}\" = set"; then
a848cd7e 24728 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e 24729else
5d7b7554 24730 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
24731/* confdefs.h. */
24732_ACEOF
24733cat confdefs.h >>conftest.$ac_ext
24734cat >>conftest.$ac_ext <<_ACEOF
24735/* end confdefs.h. */
5d7b7554
VZ
24736/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24737 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24738#define $ac_func innocuous_$ac_func
24739
24740/* System header to define __stub macros and hopefully few prototypes,
24741 which can conflict with char $ac_func (); below.
24742 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24743 <limits.h> exists even on freestanding compilers. */
24744
24745#ifdef __STDC__
24746# include <limits.h>
24747#else
24748# include <assert.h>
24749#endif
24750
24751#undef $ac_func
24752
24753/* Override any gcc2 internal prototype to avoid an error. */
24754#ifdef __cplusplus
24755extern "C"
24756{
24757#endif
24758/* We use char because int might match the return type of a gcc2
24759 builtin and then its argument prototype would still apply. */
24760char $ac_func ();
24761/* The GNU C library defines this for functions which it implements
24762 to always fail with ENOSYS. Some functions are actually named
24763 something starting with __ and the normal name is an alias. */
24764#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24765choke me
24766#else
24767char (*f) () = $ac_func;
24768#endif
24769#ifdef __cplusplus
24770}
24771#endif
24772
24773int
24774main ()
24775{
24776return f != $ac_func;
24777 ;
24778 return 0;
24779}
a848cd7e 24780_ACEOF
5d7b7554
VZ
24781rm -f conftest.$ac_objext conftest$ac_exeext
24782if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24783 (eval $ac_link) 2>conftest.er1
a848cd7e 24784 ac_status=$?
ac1cb8d3
VS
24785 grep -v '^ *+' conftest.er1 >conftest.err
24786 rm -f conftest.er1
24787 cat conftest.err >&5
a848cd7e
SC
24788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24789 (exit $ac_status); } &&
3ea50042 24790 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24792 (eval $ac_try) 2>&5
24793 ac_status=$?
24794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24795 (exit $ac_status); }; } &&
5d7b7554 24796 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24798 (eval $ac_try) 2>&5
24799 ac_status=$?
24800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24801 (exit $ac_status); }; }; then
5d7b7554 24802 eval "$as_ac_var=yes"
a848cd7e
SC
24803else
24804 echo "$as_me: failed program was:" >&5
24805sed 's/^/| /' conftest.$ac_ext >&5
24806
5d7b7554 24807eval "$as_ac_var=no"
a848cd7e 24808fi
5d7b7554
VZ
24809rm -f conftest.err conftest.$ac_objext \
24810 conftest$ac_exeext conftest.$ac_ext
a848cd7e 24811fi
5d7b7554
VZ
24812echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24813echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24814if test `eval echo '${'$as_ac_var'}'` = yes; then
24815 cat >>confdefs.h <<_ACEOF
24816#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24817_ACEOF
24818 have_cos=1
a848cd7e 24819fi
5d7b7554 24820done
a848cd7e 24821
ab0f0edd 24822
5d7b7554 24823for ac_func in floor
a848cd7e
SC
24824do
24825as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24826echo "$as_me:$LINENO: checking for $ac_func" >&5
24827echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24828if eval "test \"\${$as_ac_var+set}\" = set"; then
24829 echo $ECHO_N "(cached) $ECHO_C" >&6
24830else
24831 cat >conftest.$ac_ext <<_ACEOF
24832/* confdefs.h. */
24833_ACEOF
24834cat confdefs.h >>conftest.$ac_ext
24835cat >>conftest.$ac_ext <<_ACEOF
24836/* end confdefs.h. */
ac1cb8d3
VS
24837/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24838 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24839#define $ac_func innocuous_$ac_func
24840
a848cd7e
SC
24841/* System header to define __stub macros and hopefully few prototypes,
24842 which can conflict with char $ac_func (); below.
24843 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24844 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 24845
a848cd7e
SC
24846#ifdef __STDC__
24847# include <limits.h>
24848#else
24849# include <assert.h>
24850#endif
ac1cb8d3
VS
24851
24852#undef $ac_func
24853
a848cd7e
SC
24854/* Override any gcc2 internal prototype to avoid an error. */
24855#ifdef __cplusplus
24856extern "C"
24857{
24858#endif
24859/* We use char because int might match the return type of a gcc2
24860 builtin and then its argument prototype would still apply. */
24861char $ac_func ();
24862/* The GNU C library defines this for functions which it implements
24863 to always fail with ENOSYS. Some functions are actually named
24864 something starting with __ and the normal name is an alias. */
24865#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24866choke me
24867#else
24868char (*f) () = $ac_func;
24869#endif
24870#ifdef __cplusplus
24871}
24872#endif
24873
24874int
24875main ()
24876{
24877return f != $ac_func;
24878 ;
24879 return 0;
24880}
24881_ACEOF
24882rm -f conftest.$ac_objext conftest$ac_exeext
24883if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24884 (eval $ac_link) 2>conftest.er1
a848cd7e 24885 ac_status=$?
ac1cb8d3
VS
24886 grep -v '^ *+' conftest.er1 >conftest.err
24887 rm -f conftest.er1
24888 cat conftest.err >&5
a848cd7e
SC
24889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24890 (exit $ac_status); } &&
3ea50042 24891 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5d7b7554
VZ
24892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24893 (eval $ac_try) 2>&5
24894 ac_status=$?
24895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24896 (exit $ac_status); }; } &&
24897 { ac_try='test -s conftest$ac_exeext'
24898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24899 (eval $ac_try) 2>&5
24900 ac_status=$?
24901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24902 (exit $ac_status); }; }; then
24903 eval "$as_ac_var=yes"
24904else
24905 echo "$as_me: failed program was:" >&5
24906sed 's/^/| /' conftest.$ac_ext >&5
24907
24908eval "$as_ac_var=no"
24909fi
24910rm -f conftest.err conftest.$ac_objext \
24911 conftest$ac_exeext conftest.$ac_ext
24912fi
24913echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24914echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24915if test `eval echo '${'$as_ac_var'}'` = yes; then
24916 cat >>confdefs.h <<_ACEOF
24917#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24918_ACEOF
24919 have_floor=1
24920fi
24921done
24922
24923echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
24924echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
24925if test "$have_cos" = 1 -a "$have_floor" = 1; then
24926 echo "$as_me:$LINENO: result: yes" >&5
24927echo "${ECHO_T}yes" >&6
24928else
24929 echo "$as_me:$LINENO: result: no" >&5
24930echo "${ECHO_T}no" >&6
24931 LIBS="$LIBS -lm"
24932 # use different functions to avoid configure caching
24933 have_sin=0
24934 have_ceil=0
24935
24936for ac_func in sin
24937do
24938as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24939echo "$as_me:$LINENO: checking for $ac_func" >&5
24940echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24941if eval "test \"\${$as_ac_var+set}\" = set"; then
24942 echo $ECHO_N "(cached) $ECHO_C" >&6
24943else
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/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24951 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24952#define $ac_func innocuous_$ac_func
24953
24954/* System header to define __stub macros and hopefully few prototypes,
24955 which can conflict with char $ac_func (); below.
24956 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24957 <limits.h> exists even on freestanding compilers. */
24958
24959#ifdef __STDC__
24960# include <limits.h>
24961#else
24962# include <assert.h>
24963#endif
24964
24965#undef $ac_func
24966
24967/* Override any gcc2 internal prototype to avoid an error. */
24968#ifdef __cplusplus
24969extern "C"
24970{
24971#endif
24972/* We use char because int might match the return type of a gcc2
24973 builtin and then its argument prototype would still apply. */
24974char $ac_func ();
24975/* The GNU C library defines this for functions which it implements
24976 to always fail with ENOSYS. Some functions are actually named
24977 something starting with __ and the normal name is an alias. */
24978#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24979choke me
24980#else
24981char (*f) () = $ac_func;
24982#endif
24983#ifdef __cplusplus
24984}
24985#endif
24986
24987int
24988main ()
24989{
24990return f != $ac_func;
24991 ;
24992 return 0;
24993}
24994_ACEOF
24995rm -f conftest.$ac_objext conftest$ac_exeext
24996if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24997 (eval $ac_link) 2>conftest.er1
24998 ac_status=$?
24999 grep -v '^ *+' conftest.er1 >conftest.err
25000 rm -f conftest.er1
25001 cat conftest.err >&5
25002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25003 (exit $ac_status); } &&
3ea50042 25004 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5d7b7554
VZ
25005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25006 (eval $ac_try) 2>&5
25007 ac_status=$?
25008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25009 (exit $ac_status); }; } &&
25010 { ac_try='test -s conftest$ac_exeext'
25011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25012 (eval $ac_try) 2>&5
25013 ac_status=$?
25014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25015 (exit $ac_status); }; }; then
25016 eval "$as_ac_var=yes"
25017else
25018 echo "$as_me: failed program was:" >&5
25019sed 's/^/| /' conftest.$ac_ext >&5
25020
25021eval "$as_ac_var=no"
25022fi
25023rm -f conftest.err conftest.$ac_objext \
25024 conftest$ac_exeext conftest.$ac_ext
25025fi
25026echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25027echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25028if test `eval echo '${'$as_ac_var'}'` = yes; then
25029 cat >>confdefs.h <<_ACEOF
25030#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25031_ACEOF
25032 have_sin=1
25033fi
25034done
25035
25036
25037for ac_func in ceil
25038do
25039as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25040echo "$as_me:$LINENO: checking for $ac_func" >&5
25041echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25042if eval "test \"\${$as_ac_var+set}\" = set"; then
25043 echo $ECHO_N "(cached) $ECHO_C" >&6
25044else
25045 cat >conftest.$ac_ext <<_ACEOF
25046/* confdefs.h. */
25047_ACEOF
25048cat confdefs.h >>conftest.$ac_ext
25049cat >>conftest.$ac_ext <<_ACEOF
25050/* end confdefs.h. */
25051/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25052 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25053#define $ac_func innocuous_$ac_func
25054
25055/* System header to define __stub macros and hopefully few prototypes,
25056 which can conflict with char $ac_func (); below.
25057 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25058 <limits.h> exists even on freestanding compilers. */
25059
25060#ifdef __STDC__
25061# include <limits.h>
25062#else
25063# include <assert.h>
25064#endif
25065
25066#undef $ac_func
25067
25068/* Override any gcc2 internal prototype to avoid an error. */
25069#ifdef __cplusplus
25070extern "C"
25071{
25072#endif
25073/* We use char because int might match the return type of a gcc2
25074 builtin and then its argument prototype would still apply. */
25075char $ac_func ();
25076/* The GNU C library defines this for functions which it implements
25077 to always fail with ENOSYS. Some functions are actually named
25078 something starting with __ and the normal name is an alias. */
25079#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25080choke me
25081#else
25082char (*f) () = $ac_func;
25083#endif
25084#ifdef __cplusplus
25085}
25086#endif
25087
25088int
25089main ()
25090{
25091return f != $ac_func;
25092 ;
25093 return 0;
25094}
25095_ACEOF
25096rm -f conftest.$ac_objext conftest$ac_exeext
25097if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25098 (eval $ac_link) 2>conftest.er1
25099 ac_status=$?
25100 grep -v '^ *+' conftest.er1 >conftest.err
25101 rm -f conftest.er1
25102 cat conftest.err >&5
25103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25104 (exit $ac_status); } &&
3ea50042 25105 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5d7b7554
VZ
25106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25107 (eval $ac_try) 2>&5
25108 ac_status=$?
25109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25110 (exit $ac_status); }; } &&
25111 { ac_try='test -s conftest$ac_exeext'
25112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25113 (eval $ac_try) 2>&5
25114 ac_status=$?
25115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25116 (exit $ac_status); }; }; then
25117 eval "$as_ac_var=yes"
25118else
25119 echo "$as_me: failed program was:" >&5
25120sed 's/^/| /' conftest.$ac_ext >&5
25121
25122eval "$as_ac_var=no"
25123fi
25124rm -f conftest.err conftest.$ac_objext \
25125 conftest$ac_exeext conftest.$ac_ext
25126fi
25127echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25128echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25129if test `eval echo '${'$as_ac_var'}'` = yes; then
25130 cat >>confdefs.h <<_ACEOF
25131#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25132_ACEOF
25133 have_ceil=1
25134fi
25135done
25136
25137 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
25138echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
25139 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
25140 echo "$as_me:$LINENO: result: yes" >&5
25141echo "${ECHO_T}yes" >&6
25142 else
25143 echo "$as_me:$LINENO: result: no" >&5
25144echo "${ECHO_T}no" >&6
25145 # not sure we should warn the user, crash, etc.
25146 fi
25147fi
25148
25149
25150
25151if test "$wxUSE_REGEX" != "no"; then
25152 cat >>confdefs.h <<\_ACEOF
25153#define wxUSE_REGEX 1
25154_ACEOF
25155
25156
25157 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
25158 { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
25159echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
25160 wxUSE_REGEX=builtin
25161 fi
25162
25163 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
25164 if test "${ac_cv_header_regex_h+set}" = set; then
25165 echo "$as_me:$LINENO: checking for regex.h" >&5
25166echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
25167if test "${ac_cv_header_regex_h+set}" = set; then
25168 echo $ECHO_N "(cached) $ECHO_C" >&6
25169fi
25170echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
25171echo "${ECHO_T}$ac_cv_header_regex_h" >&6
25172else
25173 # Is the header compilable?
25174echo "$as_me:$LINENO: checking regex.h usability" >&5
25175echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
25176cat >conftest.$ac_ext <<_ACEOF
25177/* confdefs.h. */
25178_ACEOF
25179cat confdefs.h >>conftest.$ac_ext
25180cat >>conftest.$ac_ext <<_ACEOF
25181/* end confdefs.h. */
25182$ac_includes_default
25183#include <regex.h>
25184_ACEOF
25185rm -f conftest.$ac_objext
25186if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25187 (eval $ac_compile) 2>conftest.er1
25188 ac_status=$?
25189 grep -v '^ *+' conftest.er1 >conftest.err
25190 rm -f conftest.er1
25191 cat conftest.err >&5
25192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25193 (exit $ac_status); } &&
3ea50042 25194 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5d7b7554
VZ
25195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25196 (eval $ac_try) 2>&5
25197 ac_status=$?
25198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25199 (exit $ac_status); }; } &&
25200 { ac_try='test -s conftest.$ac_objext'
25201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25202 (eval $ac_try) 2>&5
25203 ac_status=$?
25204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25205 (exit $ac_status); }; }; then
25206 ac_header_compiler=yes
25207else
25208 echo "$as_me: failed program was:" >&5
25209sed 's/^/| /' conftest.$ac_ext >&5
25210
25211ac_header_compiler=no
25212fi
25213rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25214echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25215echo "${ECHO_T}$ac_header_compiler" >&6
25216
25217# Is the header present?
25218echo "$as_me:$LINENO: checking regex.h presence" >&5
25219echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
25220cat >conftest.$ac_ext <<_ACEOF
25221/* confdefs.h. */
25222_ACEOF
25223cat confdefs.h >>conftest.$ac_ext
25224cat >>conftest.$ac_ext <<_ACEOF
25225/* end confdefs.h. */
25226#include <regex.h>
25227_ACEOF
25228if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25229 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25230 ac_status=$?
25231 grep -v '^ *+' conftest.er1 >conftest.err
25232 rm -f conftest.er1
25233 cat conftest.err >&5
25234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25235 (exit $ac_status); } >/dev/null; then
25236 if test -s conftest.err; then
25237 ac_cpp_err=$ac_cxx_preproc_warn_flag
25238 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
25239 else
25240 ac_cpp_err=
25241 fi
25242else
25243 ac_cpp_err=yes
25244fi
25245if test -z "$ac_cpp_err"; then
25246 ac_header_preproc=yes
25247else
25248 echo "$as_me: failed program was:" >&5
25249sed 's/^/| /' conftest.$ac_ext >&5
25250
25251 ac_header_preproc=no
25252fi
25253rm -f conftest.err conftest.$ac_ext
25254echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25255echo "${ECHO_T}$ac_header_preproc" >&6
25256
25257# So? What about this header?
25258case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
25259 yes:no: )
25260 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
25261echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25262 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
25263echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
25264 ac_header_preproc=yes
25265 ;;
25266 no:yes:* )
25267 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
25268echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
25269 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
25270echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
25271 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
25272echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
25273 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
25274echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
25275 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
25276echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
25277 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
25278echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
25279 (
25280 cat <<\_ASBOX
25281## ----------------------------------------- ##
25282## Report this to wx-dev@lists.wxwidgets.org ##
25283## ----------------------------------------- ##
25284_ASBOX
25285 ) |
25286 sed "s/^/$as_me: WARNING: /" >&2
25287 ;;
25288esac
25289echo "$as_me:$LINENO: checking for regex.h" >&5
25290echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
25291if test "${ac_cv_header_regex_h+set}" = set; then
25292 echo $ECHO_N "(cached) $ECHO_C" >&6
25293else
25294 ac_cv_header_regex_h=$ac_header_preproc
25295fi
25296echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
25297echo "${ECHO_T}$ac_cv_header_regex_h" >&6
25298
25299fi
25300if test $ac_cv_header_regex_h = yes; then
25301
25302
25303for ac_func in regcomp re_search
25304do
25305as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25306echo "$as_me:$LINENO: checking for $ac_func" >&5
25307echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25308if eval "test \"\${$as_ac_var+set}\" = set"; then
25309 echo $ECHO_N "(cached) $ECHO_C" >&6
25310else
25311 cat >conftest.$ac_ext <<_ACEOF
25312/* confdefs.h. */
25313_ACEOF
25314cat confdefs.h >>conftest.$ac_ext
25315cat >>conftest.$ac_ext <<_ACEOF
25316/* end confdefs.h. */
25317/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25318 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25319#define $ac_func innocuous_$ac_func
25320
25321/* System header to define __stub macros and hopefully few prototypes,
25322 which can conflict with char $ac_func (); below.
25323 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25324 <limits.h> exists even on freestanding compilers. */
25325
25326#ifdef __STDC__
25327# include <limits.h>
25328#else
25329# include <assert.h>
25330#endif
25331
25332#undef $ac_func
25333
25334/* Override any gcc2 internal prototype to avoid an error. */
25335#ifdef __cplusplus
25336extern "C"
25337{
25338#endif
25339/* We use char because int might match the return type of a gcc2
25340 builtin and then its argument prototype would still apply. */
25341char $ac_func ();
25342/* The GNU C library defines this for functions which it implements
25343 to always fail with ENOSYS. Some functions are actually named
25344 something starting with __ and the normal name is an alias. */
25345#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25346choke me
25347#else
25348char (*f) () = $ac_func;
25349#endif
25350#ifdef __cplusplus
25351}
25352#endif
25353
25354int
25355main ()
25356{
25357return f != $ac_func;
25358 ;
25359 return 0;
25360}
25361_ACEOF
25362rm -f conftest.$ac_objext conftest$ac_exeext
25363if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25364 (eval $ac_link) 2>conftest.er1
25365 ac_status=$?
25366 grep -v '^ *+' conftest.er1 >conftest.err
25367 rm -f conftest.er1
25368 cat conftest.err >&5
25369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25370 (exit $ac_status); } &&
3ea50042 25371 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25373 (eval $ac_try) 2>&5
25374 ac_status=$?
25375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25376 (exit $ac_status); }; } &&
25377 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25379 (eval $ac_try) 2>&5
25380 ac_status=$?
25381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25382 (exit $ac_status); }; }; then
25383 eval "$as_ac_var=yes"
25384else
25385 echo "$as_me: failed program was:" >&5
25386sed 's/^/| /' conftest.$ac_ext >&5
25387
25388eval "$as_ac_var=no"
25389fi
ac1cb8d3
VS
25390rm -f conftest.err conftest.$ac_objext \
25391 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25392fi
25393echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25394echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25395if test `eval echo '${'$as_ac_var'}'` = yes; then
25396 cat >>confdefs.h <<_ACEOF
25397#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25398_ACEOF
25399
25400fi
25401done
25402
25403fi
25404
25405
25406
25407 if test "x$ac_cv_func_regcomp" != "xyes"; then
25408 if test "$wxUSE_REGEX" = "sys" ; then
25409 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
25410echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
25411 { (exit 1); exit 1; }; }
25412 else
25413 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
25414echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
25415 wxUSE_REGEX=builtin
25416 fi
25417 else
25418 wxUSE_REGEX=sys
25419 cat >>confdefs.h <<\_ACEOF
25420#define WX_NO_REGEX_ADVANCED 1
25421_ACEOF
25422
25423 fi
25424 fi
25425fi
25426
25427
25428ZLIB_LINK=
25429if test "$wxUSE_ZLIB" != "no" ; then
25430 cat >>confdefs.h <<\_ACEOF
25431#define wxUSE_ZLIB 1
25432_ACEOF
25433
25434
25435 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
25436 if test "$USE_DARWIN" = 1; then
25437 system_zlib_h_ok="yes"
25438 else
25439 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
25440echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
25441if test "${ac_cv_header_zlib_h+set}" = set; then
25442 echo $ECHO_N "(cached) $ECHO_C" >&6
25443else
25444 if test "$cross_compiling" = yes; then
25445 unset ac_cv_header_zlib_h
25446
25447else
25448 cat >conftest.$ac_ext <<_ACEOF
25449/* confdefs.h. */
25450_ACEOF
25451cat confdefs.h >>conftest.$ac_ext
25452cat >>conftest.$ac_ext <<_ACEOF
25453/* end confdefs.h. */
25454
25455 #include <zlib.h>
25456 #include <stdio.h>
25457
25458 int main()
25459 {
25460 FILE *f=fopen("conftestval", "w");
25461 if (!f) exit(1);
25462 fprintf(f, "%s",
25463 ZLIB_VERSION[0] == '1' &&
25464 (ZLIB_VERSION[2] > '1' ||
25465 (ZLIB_VERSION[2] == '1' &&
25466 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
25467 exit(0);
25468 }
25469
25470_ACEOF
25471rm -f conftest$ac_exeext
25472if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25473 (eval $ac_link) 2>&5
25474 ac_status=$?
25475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25476 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25478 (eval $ac_try) 2>&5
25479 ac_status=$?
25480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25481 (exit $ac_status); }; }; then
25482 ac_cv_header_zlib_h=`cat conftestval`
25483else
25484 echo "$as_me: program exited with status $ac_status" >&5
25485echo "$as_me: failed program was:" >&5
25486sed 's/^/| /' conftest.$ac_ext >&5
25487
25488( exit $ac_status )
25489ac_cv_header_zlib_h=no
25490fi
ac1cb8d3 25491rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25492fi
25493
25494fi
25495echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
25496echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
25497 if test "${ac_cv_header_zlib_h+set}" = set; then
25498 echo "$as_me:$LINENO: checking for zlib.h" >&5
25499echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
25500if test "${ac_cv_header_zlib_h+set}" = set; then
25501 echo $ECHO_N "(cached) $ECHO_C" >&6
25502fi
25503echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
25504echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
25505else
25506 # Is the header compilable?
25507echo "$as_me:$LINENO: checking zlib.h usability" >&5
25508echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
25509cat >conftest.$ac_ext <<_ACEOF
25510/* confdefs.h. */
25511_ACEOF
25512cat confdefs.h >>conftest.$ac_ext
25513cat >>conftest.$ac_ext <<_ACEOF
25514/* end confdefs.h. */
25515$ac_includes_default
25516#include <zlib.h>
25517_ACEOF
25518rm -f conftest.$ac_objext
25519if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25520 (eval $ac_compile) 2>conftest.er1
a848cd7e 25521 ac_status=$?
ac1cb8d3
VS
25522 grep -v '^ *+' conftest.er1 >conftest.err
25523 rm -f conftest.er1
25524 cat conftest.err >&5
a848cd7e
SC
25525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25526 (exit $ac_status); } &&
3ea50042 25527 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25529 (eval $ac_try) 2>&5
25530 ac_status=$?
25531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25532 (exit $ac_status); }; } &&
25533 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25535 (eval $ac_try) 2>&5
25536 ac_status=$?
25537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25538 (exit $ac_status); }; }; then
25539 ac_header_compiler=yes
25540else
25541 echo "$as_me: failed program was:" >&5
25542sed 's/^/| /' conftest.$ac_ext >&5
25543
25544ac_header_compiler=no
25545fi
ac1cb8d3 25546rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25547echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25548echo "${ECHO_T}$ac_header_compiler" >&6
25549
25550# Is the header present?
25551echo "$as_me:$LINENO: checking zlib.h presence" >&5
25552echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
25553cat >conftest.$ac_ext <<_ACEOF
25554/* confdefs.h. */
25555_ACEOF
25556cat confdefs.h >>conftest.$ac_ext
25557cat >>conftest.$ac_ext <<_ACEOF
25558/* end confdefs.h. */
25559#include <zlib.h>
25560_ACEOF
25561if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25562 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25563 ac_status=$?
25564 grep -v '^ *+' conftest.er1 >conftest.err
25565 rm -f conftest.er1
25566 cat conftest.err >&5
25567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25568 (exit $ac_status); } >/dev/null; then
25569 if test -s conftest.err; then
5d7b7554
VZ
25570 ac_cpp_err=$ac_cxx_preproc_warn_flag
25571 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
25572 else
25573 ac_cpp_err=
25574 fi
25575else
25576 ac_cpp_err=yes
25577fi
25578if test -z "$ac_cpp_err"; then
25579 ac_header_preproc=yes
25580else
25581 echo "$as_me: failed program was:" >&5
25582sed 's/^/| /' conftest.$ac_ext >&5
25583
25584 ac_header_preproc=no
25585fi
25586rm -f conftest.err conftest.$ac_ext
25587echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25588echo "${ECHO_T}$ac_header_preproc" >&6
25589
25590# So? What about this header?
5d7b7554 25591case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 25592 yes:no: )
a848cd7e
SC
25593 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
25594echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
25595 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
25596echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
25597 ac_header_preproc=yes
a848cd7e 25598 ;;
ac1cb8d3 25599 no:yes:* )
a848cd7e
SC
25600 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
25601echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
25602 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
25603echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
25604 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
25605echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
25606 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
25607echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
25608 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
25609echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
25610 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
25611echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
25612 (
25613 cat <<\_ASBOX
ac1cb8d3
VS
25614## ----------------------------------------- ##
25615## Report this to wx-dev@lists.wxwidgets.org ##
25616## ----------------------------------------- ##
a848cd7e
SC
25617_ASBOX
25618 ) |
25619 sed "s/^/$as_me: WARNING: /" >&2
25620 ;;
25621esac
25622echo "$as_me:$LINENO: checking for zlib.h" >&5
25623echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
25624if test "${ac_cv_header_zlib_h+set}" = set; then
25625 echo $ECHO_N "(cached) $ECHO_C" >&6
25626else
25627 ac_cv_header_zlib_h=$ac_header_preproc
25628fi
25629echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
25630echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
25631
25632fi
25633
25634
25635
25636 system_zlib_h_ok=$ac_cv_header_zlib_h
25637 fi
25638
25639 if test "$system_zlib_h_ok" = "yes"; then
25640 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
25641echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
25642if test "${ac_cv_lib_z_deflate+set}" = set; then
25643 echo $ECHO_N "(cached) $ECHO_C" >&6
25644else
25645 ac_check_lib_save_LIBS=$LIBS
25646LIBS="-lz $LIBS"
25647cat >conftest.$ac_ext <<_ACEOF
25648/* confdefs.h. */
25649_ACEOF
25650cat confdefs.h >>conftest.$ac_ext
25651cat >>conftest.$ac_ext <<_ACEOF
25652/* end confdefs.h. */
25653
25654/* Override any gcc2 internal prototype to avoid an error. */
25655#ifdef __cplusplus
25656extern "C"
25657#endif
25658/* We use char because int might match the return type of a gcc2
25659 builtin and then its argument prototype would still apply. */
25660char deflate ();
25661int
25662main ()
25663{
25664deflate ();
25665 ;
25666 return 0;
25667}
25668_ACEOF
25669rm -f conftest.$ac_objext conftest$ac_exeext
25670if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25671 (eval $ac_link) 2>conftest.er1
a848cd7e 25672 ac_status=$?
ac1cb8d3
VS
25673 grep -v '^ *+' conftest.er1 >conftest.err
25674 rm -f conftest.er1
25675 cat conftest.err >&5
a848cd7e
SC
25676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25677 (exit $ac_status); } &&
3ea50042 25678 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25680 (eval $ac_try) 2>&5
25681 ac_status=$?
25682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25683 (exit $ac_status); }; } &&
25684 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25686 (eval $ac_try) 2>&5
25687 ac_status=$?
25688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25689 (exit $ac_status); }; }; then
25690 ac_cv_lib_z_deflate=yes
25691else
25692 echo "$as_me: failed program was:" >&5
25693sed 's/^/| /' conftest.$ac_ext >&5
25694
25695ac_cv_lib_z_deflate=no
25696fi
ac1cb8d3
VS
25697rm -f conftest.err conftest.$ac_objext \
25698 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25699LIBS=$ac_check_lib_save_LIBS
25700fi
25701echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
25702echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
25703if test $ac_cv_lib_z_deflate = yes; then
25704 ZLIB_LINK=" -lz"
25705fi
25706
25707 fi
25708
25709 if test "x$ZLIB_LINK" = "x" ; then
25710 if test "$wxUSE_ZLIB" = "sys" ; then
25711 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
25712echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
25713 { (exit 1); exit 1; }; }
25714 else
25715 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
25716echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
25717 wxUSE_ZLIB=builtin
25718 fi
25719 else
25720 wxUSE_ZLIB=sys
25721 fi
25722 fi
25723fi
25724
25725
25726PNG_LINK=
25727if test "$wxUSE_LIBPNG" != "no" ; then
25728 cat >>confdefs.h <<\_ACEOF
25729#define wxUSE_LIBPNG 1
25730_ACEOF
25731
25732
25733 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
25734 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
25735echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
25736 wxUSE_LIBPNG=sys
25737 fi
25738
25739 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
25740 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
25741echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
25742 wxUSE_LIBPNG=builtin
25743 fi
25744
25745 if test "$wxUSE_MGL" != 1 ; then
25746 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
25747 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
25748echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
25749if test "${ac_cv_header_png_h+set}" = set; then
25750 echo $ECHO_N "(cached) $ECHO_C" >&6
25751else
25752 if test "$cross_compiling" = yes; then
25753 unset ac_cv_header_png_h
25754
25755else
25756 cat >conftest.$ac_ext <<_ACEOF
25757/* confdefs.h. */
25758_ACEOF
25759cat confdefs.h >>conftest.$ac_ext
25760cat >>conftest.$ac_ext <<_ACEOF
25761/* end confdefs.h. */
25762
25763 #include <png.h>
25764 #include <stdio.h>
25765
25766 int main()
25767 {
25768 FILE *f=fopen("conftestval", "w");
25769 if (!f) exit(1);
25770 fprintf(f, "%s",
25771 PNG_LIBPNG_VER > 90 ? "yes" : "no");
25772 exit(0);
25773 }
25774
25775_ACEOF
25776rm -f conftest$ac_exeext
25777if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25778 (eval $ac_link) 2>&5
25779 ac_status=$?
25780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25781 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25783 (eval $ac_try) 2>&5
25784 ac_status=$?
25785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25786 (exit $ac_status); }; }; then
25787 ac_cv_header_png_h=`cat conftestval`
25788else
25789 echo "$as_me: program exited with status $ac_status" >&5
25790echo "$as_me: failed program was:" >&5
25791sed 's/^/| /' conftest.$ac_ext >&5
25792
25793( exit $ac_status )
25794ac_cv_header_png_h=no
25795fi
ac1cb8d3 25796rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25797fi
25798
25799fi
25800echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
25801echo "${ECHO_T}$ac_cv_header_png_h" >&6
25802 if test "${ac_cv_header_png_h+set}" = set; then
25803 echo "$as_me:$LINENO: checking for png.h" >&5
25804echo $ECHO_N "checking for png.h... $ECHO_C" >&6
25805if test "${ac_cv_header_png_h+set}" = set; then
25806 echo $ECHO_N "(cached) $ECHO_C" >&6
25807fi
25808echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
25809echo "${ECHO_T}$ac_cv_header_png_h" >&6
25810else
25811 # Is the header compilable?
25812echo "$as_me:$LINENO: checking png.h usability" >&5
25813echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
25814cat >conftest.$ac_ext <<_ACEOF
25815/* confdefs.h. */
25816_ACEOF
25817cat confdefs.h >>conftest.$ac_ext
25818cat >>conftest.$ac_ext <<_ACEOF
25819/* end confdefs.h. */
25820$ac_includes_default
25821#include <png.h>
25822_ACEOF
25823rm -f conftest.$ac_objext
25824if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25825 (eval $ac_compile) 2>conftest.er1
a848cd7e 25826 ac_status=$?
ac1cb8d3
VS
25827 grep -v '^ *+' conftest.er1 >conftest.err
25828 rm -f conftest.er1
25829 cat conftest.err >&5
a848cd7e
SC
25830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25831 (exit $ac_status); } &&
3ea50042 25832 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25834 (eval $ac_try) 2>&5
25835 ac_status=$?
25836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25837 (exit $ac_status); }; } &&
25838 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25840 (eval $ac_try) 2>&5
25841 ac_status=$?
25842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25843 (exit $ac_status); }; }; then
25844 ac_header_compiler=yes
25845else
25846 echo "$as_me: failed program was:" >&5
25847sed 's/^/| /' conftest.$ac_ext >&5
25848
25849ac_header_compiler=no
25850fi
ac1cb8d3 25851rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25852echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25853echo "${ECHO_T}$ac_header_compiler" >&6
25854
25855# Is the header present?
25856echo "$as_me:$LINENO: checking png.h presence" >&5
25857echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
25858cat >conftest.$ac_ext <<_ACEOF
25859/* confdefs.h. */
25860_ACEOF
25861cat confdefs.h >>conftest.$ac_ext
25862cat >>conftest.$ac_ext <<_ACEOF
25863/* end confdefs.h. */
25864#include <png.h>
25865_ACEOF
25866if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25867 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25868 ac_status=$?
25869 grep -v '^ *+' conftest.er1 >conftest.err
25870 rm -f conftest.er1
25871 cat conftest.err >&5
25872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25873 (exit $ac_status); } >/dev/null; then
25874 if test -s conftest.err; then
5d7b7554
VZ
25875 ac_cpp_err=$ac_cxx_preproc_warn_flag
25876 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
25877 else
25878 ac_cpp_err=
25879 fi
25880else
25881 ac_cpp_err=yes
25882fi
25883if test -z "$ac_cpp_err"; then
25884 ac_header_preproc=yes
25885else
25886 echo "$as_me: failed program was:" >&5
25887sed 's/^/| /' conftest.$ac_ext >&5
25888
25889 ac_header_preproc=no
25890fi
25891rm -f conftest.err conftest.$ac_ext
25892echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25893echo "${ECHO_T}$ac_header_preproc" >&6
25894
25895# So? What about this header?
5d7b7554 25896case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 25897 yes:no: )
a848cd7e
SC
25898 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
25899echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
25900 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
25901echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
25902 ac_header_preproc=yes
a848cd7e 25903 ;;
ac1cb8d3 25904 no:yes:* )
a848cd7e
SC
25905 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
25906echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
25907 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
25908echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
25909 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
25910echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
25911 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
25912echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
25913 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
25914echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
25915 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
25916echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
25917 (
25918 cat <<\_ASBOX
ac1cb8d3
VS
25919## ----------------------------------------- ##
25920## Report this to wx-dev@lists.wxwidgets.org ##
25921## ----------------------------------------- ##
a848cd7e
SC
25922_ASBOX
25923 ) |
25924 sed "s/^/$as_me: WARNING: /" >&2
25925 ;;
25926esac
25927echo "$as_me:$LINENO: checking for png.h" >&5
25928echo $ECHO_N "checking for png.h... $ECHO_C" >&6
25929if test "${ac_cv_header_png_h+set}" = set; then
25930 echo $ECHO_N "(cached) $ECHO_C" >&6
25931else
25932 ac_cv_header_png_h=$ac_header_preproc
25933fi
25934echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
25935echo "${ECHO_T}$ac_cv_header_png_h" >&6
25936
25937fi
25938
25939
25940
25941 if test "$ac_cv_header_png_h" = "yes"; then
25942 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
25943echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
25944if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
25945 echo $ECHO_N "(cached) $ECHO_C" >&6
25946else
25947 ac_check_lib_save_LIBS=$LIBS
25948LIBS="-lpng -lz -lm $LIBS"
25949cat >conftest.$ac_ext <<_ACEOF
25950/* confdefs.h. */
25951_ACEOF
25952cat confdefs.h >>conftest.$ac_ext
25953cat >>conftest.$ac_ext <<_ACEOF
25954/* end confdefs.h. */
25955
25956/* Override any gcc2 internal prototype to avoid an error. */
25957#ifdef __cplusplus
25958extern "C"
25959#endif
25960/* We use char because int might match the return type of a gcc2
25961 builtin and then its argument prototype would still apply. */
25962char png_check_sig ();
25963int
25964main ()
25965{
25966png_check_sig ();
25967 ;
25968 return 0;
25969}
25970_ACEOF
25971rm -f conftest.$ac_objext conftest$ac_exeext
25972if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25973 (eval $ac_link) 2>conftest.er1
a848cd7e 25974 ac_status=$?
ac1cb8d3
VS
25975 grep -v '^ *+' conftest.er1 >conftest.err
25976 rm -f conftest.er1
25977 cat conftest.err >&5
a848cd7e
SC
25978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25979 (exit $ac_status); } &&
3ea50042 25980 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25982 (eval $ac_try) 2>&5
25983 ac_status=$?
25984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25985 (exit $ac_status); }; } &&
25986 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25988 (eval $ac_try) 2>&5
25989 ac_status=$?
25990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25991 (exit $ac_status); }; }; then
25992 ac_cv_lib_png_png_check_sig=yes
25993else
25994 echo "$as_me: failed program was:" >&5
25995sed 's/^/| /' conftest.$ac_ext >&5
25996
25997ac_cv_lib_png_png_check_sig=no
25998fi
ac1cb8d3
VS
25999rm -f conftest.err conftest.$ac_objext \
26000 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26001LIBS=$ac_check_lib_save_LIBS
26002fi
26003echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
26004echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
26005if test $ac_cv_lib_png_png_check_sig = yes; then
26006 PNG_LINK=" -lpng -lz"
26007fi
26008
26009 fi
26010
26011 if test "x$PNG_LINK" = "x" ; then
26012 if test "$wxUSE_LIBPNG" = "sys" ; then
26013 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
26014echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
26015 { (exit 1); exit 1; }; }
26016 else
26017 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
26018echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
26019 wxUSE_LIBPNG=builtin
26020 fi
26021 else
26022 wxUSE_LIBPNG=sys
26023 fi
26024 fi
26025 fi
26026
26027 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
26028fi
26029
26030
26031JPEG_LINK=
26032if test "$wxUSE_LIBJPEG" != "no" ; then
26033 cat >>confdefs.h <<\_ACEOF
26034#define wxUSE_LIBJPEG 1
26035_ACEOF
26036
26037
26038 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
26039 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
26040echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
26041 wxUSE_LIBJPEG=sys
26042 fi
26043
26044 if test "$wxUSE_MGL" != 1 ; then
26045 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
26046 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
26047echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
26048 if test "${ac_cv_header_jpeglib_h+set}" = set; then
26049 echo $ECHO_N "(cached) $ECHO_C" >&6
26050else
26051 cat >conftest.$ac_ext <<_ACEOF
26052/* confdefs.h. */
26053_ACEOF
26054cat confdefs.h >>conftest.$ac_ext
26055cat >>conftest.$ac_ext <<_ACEOF
26056/* end confdefs.h. */
26057
26058 #undef HAVE_STDLIB_H
26059 #include <stdio.h>
26060 #include <jpeglib.h>
26061
26062int
26063main ()
26064{
26065
26066
26067 ;
26068 return 0;
26069}
26070_ACEOF
26071rm -f conftest.$ac_objext
26072if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26073 (eval $ac_compile) 2>conftest.er1
a848cd7e 26074 ac_status=$?
ac1cb8d3
VS
26075 grep -v '^ *+' conftest.er1 >conftest.err
26076 rm -f conftest.er1
26077 cat conftest.err >&5
a848cd7e
SC
26078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26079 (exit $ac_status); } &&
3ea50042 26080 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26082 (eval $ac_try) 2>&5
26083 ac_status=$?
26084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26085 (exit $ac_status); }; } &&
26086 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26088 (eval $ac_try) 2>&5
26089 ac_status=$?
26090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26091 (exit $ac_status); }; }; then
26092 ac_cv_header_jpeglib_h=yes
26093else
26094 echo "$as_me: failed program was:" >&5
26095sed 's/^/| /' conftest.$ac_ext >&5
26096
26097ac_cv_header_jpeglib_h=no
26098
26099fi
ac1cb8d3 26100rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26101
26102fi
26103
26104 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
26105echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
26106
26107 if test "$ac_cv_header_jpeglib_h" = "yes"; then
26108 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
26109echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
26110if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
26111 echo $ECHO_N "(cached) $ECHO_C" >&6
26112else
26113 ac_check_lib_save_LIBS=$LIBS
26114LIBS="-ljpeg $LIBS"
26115cat >conftest.$ac_ext <<_ACEOF
26116/* confdefs.h. */
26117_ACEOF
26118cat confdefs.h >>conftest.$ac_ext
26119cat >>conftest.$ac_ext <<_ACEOF
26120/* end confdefs.h. */
26121
26122/* Override any gcc2 internal prototype to avoid an error. */
26123#ifdef __cplusplus
26124extern "C"
26125#endif
26126/* We use char because int might match the return type of a gcc2
26127 builtin and then its argument prototype would still apply. */
26128char jpeg_read_header ();
26129int
26130main ()
26131{
26132jpeg_read_header ();
26133 ;
26134 return 0;
26135}
26136_ACEOF
26137rm -f conftest.$ac_objext conftest$ac_exeext
26138if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26139 (eval $ac_link) 2>conftest.er1
a848cd7e 26140 ac_status=$?
ac1cb8d3
VS
26141 grep -v '^ *+' conftest.er1 >conftest.err
26142 rm -f conftest.er1
26143 cat conftest.err >&5
a848cd7e
SC
26144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26145 (exit $ac_status); } &&
3ea50042 26146 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26148 (eval $ac_try) 2>&5
26149 ac_status=$?
26150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26151 (exit $ac_status); }; } &&
26152 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26154 (eval $ac_try) 2>&5
26155 ac_status=$?
26156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26157 (exit $ac_status); }; }; then
26158 ac_cv_lib_jpeg_jpeg_read_header=yes
26159else
26160 echo "$as_me: failed program was:" >&5
26161sed 's/^/| /' conftest.$ac_ext >&5
26162
26163ac_cv_lib_jpeg_jpeg_read_header=no
26164fi
ac1cb8d3
VS
26165rm -f conftest.err conftest.$ac_objext \
26166 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26167LIBS=$ac_check_lib_save_LIBS
26168fi
26169echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
26170echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
26171if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
26172 JPEG_LINK=" -ljpeg"
26173fi
26174
26175 fi
26176
26177 if test "x$JPEG_LINK" = "x" ; then
26178 if test "$wxUSE_LIBJPEG" = "sys" ; then
26179 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
26180echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
26181 { (exit 1); exit 1; }; }
26182 else
26183 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
26184echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
26185 wxUSE_LIBJPEG=builtin
26186 fi
26187 else
26188 wxUSE_LIBJPEG=sys
26189 fi
26190 fi
26191 fi
26192fi
26193
26194
26195TIFF_LINK=
26196TIFF_PREREQ_LINKS=-lm
26197if test "$wxUSE_LIBTIFF" != "no" ; then
26198 cat >>confdefs.h <<\_ACEOF
26199#define wxUSE_LIBTIFF 1
26200_ACEOF
26201
26202
26203 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
26204 if test "$wxUSE_LIBJPEG" = "sys"; then
26205 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
26206 fi
26207 if test "$wxUSE_ZLIB" = "sys"; then
26208 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
26209 fi
26210 if test "${ac_cv_header_tiffio_h+set}" = set; then
26211 echo "$as_me:$LINENO: checking for tiffio.h" >&5
26212echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
26213if test "${ac_cv_header_tiffio_h+set}" = set; then
26214 echo $ECHO_N "(cached) $ECHO_C" >&6
26215fi
26216echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
26217echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
26218else
26219 # Is the header compilable?
26220echo "$as_me:$LINENO: checking tiffio.h usability" >&5
26221echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
26222cat >conftest.$ac_ext <<_ACEOF
26223/* confdefs.h. */
26224_ACEOF
26225cat confdefs.h >>conftest.$ac_ext
26226cat >>conftest.$ac_ext <<_ACEOF
26227/* end confdefs.h. */
26228$ac_includes_default
26229#include <tiffio.h>
26230_ACEOF
26231rm -f conftest.$ac_objext
26232if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26233 (eval $ac_compile) 2>conftest.er1
a848cd7e 26234 ac_status=$?
ac1cb8d3
VS
26235 grep -v '^ *+' conftest.er1 >conftest.err
26236 rm -f conftest.er1
26237 cat conftest.err >&5
a848cd7e
SC
26238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26239 (exit $ac_status); } &&
3ea50042 26240 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26242 (eval $ac_try) 2>&5
26243 ac_status=$?
26244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26245 (exit $ac_status); }; } &&
26246 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26248 (eval $ac_try) 2>&5
26249 ac_status=$?
26250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26251 (exit $ac_status); }; }; then
26252 ac_header_compiler=yes
26253else
26254 echo "$as_me: failed program was:" >&5
26255sed 's/^/| /' conftest.$ac_ext >&5
26256
26257ac_header_compiler=no
26258fi
ac1cb8d3 26259rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26260echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26261echo "${ECHO_T}$ac_header_compiler" >&6
26262
26263# Is the header present?
26264echo "$as_me:$LINENO: checking tiffio.h presence" >&5
26265echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
26266cat >conftest.$ac_ext <<_ACEOF
26267/* confdefs.h. */
26268_ACEOF
26269cat confdefs.h >>conftest.$ac_ext
26270cat >>conftest.$ac_ext <<_ACEOF
26271/* end confdefs.h. */
26272#include <tiffio.h>
26273_ACEOF
26274if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26275 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26276 ac_status=$?
26277 grep -v '^ *+' conftest.er1 >conftest.err
26278 rm -f conftest.er1
26279 cat conftest.err >&5
26280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26281 (exit $ac_status); } >/dev/null; then
26282 if test -s conftest.err; then
5d7b7554
VZ
26283 ac_cpp_err=$ac_cxx_preproc_warn_flag
26284 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
26285 else
26286 ac_cpp_err=
26287 fi
26288else
26289 ac_cpp_err=yes
26290fi
26291if test -z "$ac_cpp_err"; then
26292 ac_header_preproc=yes
26293else
26294 echo "$as_me: failed program was:" >&5
26295sed 's/^/| /' conftest.$ac_ext >&5
26296
26297 ac_header_preproc=no
26298fi
26299rm -f conftest.err conftest.$ac_ext
26300echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26301echo "${ECHO_T}$ac_header_preproc" >&6
26302
26303# So? What about this header?
5d7b7554 26304case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 26305 yes:no: )
a848cd7e
SC
26306 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
26307echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
26308 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
26309echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
26310 ac_header_preproc=yes
a848cd7e 26311 ;;
ac1cb8d3 26312 no:yes:* )
a848cd7e
SC
26313 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
26314echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
26315 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
26316echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
26317 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
26318echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
26319 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
26320echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
26321 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
26322echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
26323 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
26324echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
26325 (
26326 cat <<\_ASBOX
ac1cb8d3
VS
26327## ----------------------------------------- ##
26328## Report this to wx-dev@lists.wxwidgets.org ##
26329## ----------------------------------------- ##
a848cd7e
SC
26330_ASBOX
26331 ) |
26332 sed "s/^/$as_me: WARNING: /" >&2
26333 ;;
26334esac
26335echo "$as_me:$LINENO: checking for tiffio.h" >&5
26336echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
26337if test "${ac_cv_header_tiffio_h+set}" = set; then
26338 echo $ECHO_N "(cached) $ECHO_C" >&6
26339else
26340 ac_cv_header_tiffio_h=$ac_header_preproc
26341fi
26342echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
26343echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
26344
26345fi
26346if test $ac_cv_header_tiffio_h = yes; then
26347
26348 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
26349echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
26350if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
26351 echo $ECHO_N "(cached) $ECHO_C" >&6
26352else
26353 ac_check_lib_save_LIBS=$LIBS
26354LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
26355cat >conftest.$ac_ext <<_ACEOF
26356/* confdefs.h. */
26357_ACEOF
26358cat confdefs.h >>conftest.$ac_ext
26359cat >>conftest.$ac_ext <<_ACEOF
26360/* end confdefs.h. */
26361
26362/* Override any gcc2 internal prototype to avoid an error. */
26363#ifdef __cplusplus
26364extern "C"
26365#endif
26366/* We use char because int might match the return type of a gcc2
26367 builtin and then its argument prototype would still apply. */
26368char TIFFError ();
26369int
26370main ()
26371{
26372TIFFError ();
26373 ;
26374 return 0;
26375}
26376_ACEOF
26377rm -f conftest.$ac_objext conftest$ac_exeext
26378if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26379 (eval $ac_link) 2>conftest.er1
a848cd7e 26380 ac_status=$?
ac1cb8d3
VS
26381 grep -v '^ *+' conftest.er1 >conftest.err
26382 rm -f conftest.er1
26383 cat conftest.err >&5
a848cd7e
SC
26384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26385 (exit $ac_status); } &&
3ea50042 26386 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26388 (eval $ac_try) 2>&5
26389 ac_status=$?
26390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26391 (exit $ac_status); }; } &&
26392 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26394 (eval $ac_try) 2>&5
26395 ac_status=$?
26396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26397 (exit $ac_status); }; }; then
26398 ac_cv_lib_tiff_TIFFError=yes
26399else
26400 echo "$as_me: failed program was:" >&5
26401sed 's/^/| /' conftest.$ac_ext >&5
26402
26403ac_cv_lib_tiff_TIFFError=no
26404fi
ac1cb8d3
VS
26405rm -f conftest.err conftest.$ac_objext \
26406 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26407LIBS=$ac_check_lib_save_LIBS
26408fi
26409echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
26410echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
26411if test $ac_cv_lib_tiff_TIFFError = yes; then
26412 TIFF_LINK=" -ltiff"
26413fi
26414
26415
26416
26417fi
26418
26419
26420
26421 if test "x$TIFF_LINK" = "x" ; then
26422 if test "$wxUSE_LIBTIFF" = "sys" ; then
26423 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
26424echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
26425 { (exit 1); exit 1; }; }
26426 else
26427 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
26428echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
26429 wxUSE_LIBTIFF=builtin
26430 fi
26431 else
26432 wxUSE_LIBTIFF=sys
26433 fi
26434 fi
26435fi
26436
26437
47a7e797
MW
26438if test "$wxUSE_WCHAR_T" != "yes"; then
26439 if test "$wxUSE_EXPAT" != "no"; then
26440 { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&5
26441echo "$as_me: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&2;}
26442 wxUSE_EXPAT=no
26443 fi
26444 if test "$wxUSE_XML" != "no"; then
26445 { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&5
26446echo "$as_me: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&2;}
26447 wxUSE_XML=no
26448 fi
26449fi
26450
a848cd7e
SC
26451if test "$wxUSE_EXPAT" != "no"; then
26452 wxUSE_XML=yes
26453 cat >>confdefs.h <<\_ACEOF
26454#define wxUSE_EXPAT 1
26455_ACEOF
26456
26457 cat >>confdefs.h <<\_ACEOF
26458#define wxUSE_XML 1
26459_ACEOF
26460
26461
26462 if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
26463 if test "${ac_cv_header_expat_h+set}" = set; then
26464 echo "$as_me:$LINENO: checking for expat.h" >&5
26465echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
26466if test "${ac_cv_header_expat_h+set}" = set; then
26467 echo $ECHO_N "(cached) $ECHO_C" >&6
26468fi
26469echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
26470echo "${ECHO_T}$ac_cv_header_expat_h" >&6
26471else
26472 # Is the header compilable?
26473echo "$as_me:$LINENO: checking expat.h usability" >&5
26474echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
26475cat >conftest.$ac_ext <<_ACEOF
26476/* confdefs.h. */
26477_ACEOF
26478cat confdefs.h >>conftest.$ac_ext
26479cat >>conftest.$ac_ext <<_ACEOF
26480/* end confdefs.h. */
26481$ac_includes_default
26482#include <expat.h>
26483_ACEOF
26484rm -f conftest.$ac_objext
26485if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26486 (eval $ac_compile) 2>conftest.er1
a848cd7e 26487 ac_status=$?
ac1cb8d3
VS
26488 grep -v '^ *+' conftest.er1 >conftest.err
26489 rm -f conftest.er1
26490 cat conftest.err >&5
a848cd7e
SC
26491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26492 (exit $ac_status); } &&
3ea50042 26493 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26495 (eval $ac_try) 2>&5
26496 ac_status=$?
26497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26498 (exit $ac_status); }; } &&
26499 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26501 (eval $ac_try) 2>&5
26502 ac_status=$?
26503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26504 (exit $ac_status); }; }; then
26505 ac_header_compiler=yes
26506else
26507 echo "$as_me: failed program was:" >&5
26508sed 's/^/| /' conftest.$ac_ext >&5
26509
26510ac_header_compiler=no
26511fi
ac1cb8d3 26512rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26513echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26514echo "${ECHO_T}$ac_header_compiler" >&6
26515
26516# Is the header present?
26517echo "$as_me:$LINENO: checking expat.h presence" >&5
26518echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
26519cat >conftest.$ac_ext <<_ACEOF
26520/* confdefs.h. */
26521_ACEOF
26522cat confdefs.h >>conftest.$ac_ext
26523cat >>conftest.$ac_ext <<_ACEOF
26524/* end confdefs.h. */
26525#include <expat.h>
26526_ACEOF
26527if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26528 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26529 ac_status=$?
26530 grep -v '^ *+' conftest.er1 >conftest.err
26531 rm -f conftest.er1
26532 cat conftest.err >&5
26533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26534 (exit $ac_status); } >/dev/null; then
26535 if test -s conftest.err; then
5d7b7554
VZ
26536 ac_cpp_err=$ac_cxx_preproc_warn_flag
26537 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
26538 else
26539 ac_cpp_err=
26540 fi
26541else
26542 ac_cpp_err=yes
26543fi
26544if test -z "$ac_cpp_err"; then
26545 ac_header_preproc=yes
26546else
26547 echo "$as_me: failed program was:" >&5
26548sed 's/^/| /' conftest.$ac_ext >&5
26549
26550 ac_header_preproc=no
26551fi
26552rm -f conftest.err conftest.$ac_ext
26553echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26554echo "${ECHO_T}$ac_header_preproc" >&6
26555
26556# So? What about this header?
5d7b7554 26557case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 26558 yes:no: )
a848cd7e
SC
26559 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
26560echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
26561 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
26562echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
26563 ac_header_preproc=yes
a848cd7e 26564 ;;
ac1cb8d3 26565 no:yes:* )
a848cd7e
SC
26566 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
26567echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
26568 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
26569echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
26570 { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
26571echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
26572 { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5
26573echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
26574 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
26575echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
26576 { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
26577echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
26578 (
26579 cat <<\_ASBOX
ac1cb8d3
VS
26580## ----------------------------------------- ##
26581## Report this to wx-dev@lists.wxwidgets.org ##
26582## ----------------------------------------- ##
a848cd7e
SC
26583_ASBOX
26584 ) |
26585 sed "s/^/$as_me: WARNING: /" >&2
26586 ;;
26587esac
26588echo "$as_me:$LINENO: checking for expat.h" >&5
26589echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
26590if test "${ac_cv_header_expat_h+set}" = set; then
26591 echo $ECHO_N "(cached) $ECHO_C" >&6
26592else
26593 ac_cv_header_expat_h=$ac_header_preproc
26594fi
26595echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
26596echo "${ECHO_T}$ac_cv_header_expat_h" >&6
26597
26598fi
26599if test $ac_cv_header_expat_h = yes; then
26600 found_expat_h=1
26601fi
26602
26603
26604 if test "x$found_expat_h" = "x1"; then
26605 echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
26606echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
26607if test "${wx_cv_expat_is_not_broken+set}" = set; then
26608 echo $ECHO_N "(cached) $ECHO_C" >&6
26609else
26610
a848cd7e
SC
26611 cat >conftest.$ac_ext <<_ACEOF
26612/* confdefs.h. */
26613_ACEOF
26614cat confdefs.h >>conftest.$ac_ext
26615cat >>conftest.$ac_ext <<_ACEOF
26616/* end confdefs.h. */
26617#include <expat.h>
26618int
26619main ()
26620{
26621
26622 ;
26623 return 0;
26624}
26625_ACEOF
26626rm -f conftest.$ac_objext
26627if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26628 (eval $ac_compile) 2>conftest.er1
a848cd7e 26629 ac_status=$?
ac1cb8d3
VS
26630 grep -v '^ *+' conftest.er1 >conftest.err
26631 rm -f conftest.er1
26632 cat conftest.err >&5
a848cd7e
SC
26633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26634 (exit $ac_status); } &&
3ea50042 26635 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26637 (eval $ac_try) 2>&5
26638 ac_status=$?
26639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26640 (exit $ac_status); }; } &&
26641 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26643 (eval $ac_try) 2>&5
26644 ac_status=$?
26645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26646 (exit $ac_status); }; }; then
26647 wx_cv_expat_is_not_broken=yes
26648else
26649 echo "$as_me: failed program was:" >&5
26650sed 's/^/| /' conftest.$ac_ext >&5
26651
26652wx_cv_expat_is_not_broken=no
26653
26654fi
ac1cb8d3 26655rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26656
26657
26658fi
26659echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
26660echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
26661 if test "$wx_cv_expat_is_not_broken" = "yes" ; then
26662 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
26663echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
26664if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
26665 echo $ECHO_N "(cached) $ECHO_C" >&6
26666else
26667 ac_check_lib_save_LIBS=$LIBS
26668LIBS="-lexpat $LIBS"
26669cat >conftest.$ac_ext <<_ACEOF
26670/* confdefs.h. */
26671_ACEOF
26672cat confdefs.h >>conftest.$ac_ext
26673cat >>conftest.$ac_ext <<_ACEOF
26674/* end confdefs.h. */
26675
26676/* Override any gcc2 internal prototype to avoid an error. */
26677#ifdef __cplusplus
26678extern "C"
26679#endif
26680/* We use char because int might match the return type of a gcc2
26681 builtin and then its argument prototype would still apply. */
26682char XML_ParserCreate ();
26683int
26684main ()
26685{
26686XML_ParserCreate ();
26687 ;
26688 return 0;
26689}
26690_ACEOF
26691rm -f conftest.$ac_objext conftest$ac_exeext
26692if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26693 (eval $ac_link) 2>conftest.er1
a848cd7e 26694 ac_status=$?
ac1cb8d3
VS
26695 grep -v '^ *+' conftest.er1 >conftest.err
26696 rm -f conftest.er1
26697 cat conftest.err >&5
a848cd7e
SC
26698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26699 (exit $ac_status); } &&
3ea50042 26700 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26702 (eval $ac_try) 2>&5
26703 ac_status=$?
26704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26705 (exit $ac_status); }; } &&
26706 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26708 (eval $ac_try) 2>&5
26709 ac_status=$?
26710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26711 (exit $ac_status); }; }; then
26712 ac_cv_lib_expat_XML_ParserCreate=yes
26713else
26714 echo "$as_me: failed program was:" >&5
26715sed 's/^/| /' conftest.$ac_ext >&5
26716
26717ac_cv_lib_expat_XML_ParserCreate=no
26718fi
ac1cb8d3
VS
26719rm -f conftest.err conftest.$ac_objext \
26720 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26721LIBS=$ac_check_lib_save_LIBS
26722fi
26723echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
26724echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
26725if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
26726 EXPAT_LINK=" -lexpat"
26727fi
26728
26729 fi
26730 fi
26731 if test "x$EXPAT_LINK" = "x" ; then
26732 if test "$wxUSE_EXPAT" = "sys" ; then
26733 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
26734echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
26735 { (exit 1); exit 1; }; }
26736 else
26737 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
26738echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
26739 wxUSE_EXPAT=builtin
26740 fi
26741 else
26742 wxUSE_EXPAT=sys
26743 fi
26744 fi
26745 if test "$wxUSE_EXPAT" = "builtin" ; then
26746
26747
26748subdirs="$subdirs src/expat"
26749
26750 fi
26751fi
26752
26753
26754
26755if test "$wxUSE_LIBMSPACK" != "no"; then
a848cd7e
SC
26756 if test "${ac_cv_header_mspack_h+set}" = set; then
26757 echo "$as_me:$LINENO: checking for mspack.h" >&5
26758echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
26759if test "${ac_cv_header_mspack_h+set}" = set; then
26760 echo $ECHO_N "(cached) $ECHO_C" >&6
26761fi
26762echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
26763echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
26764else
26765 # Is the header compilable?
26766echo "$as_me:$LINENO: checking mspack.h usability" >&5
26767echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
26768cat >conftest.$ac_ext <<_ACEOF
26769/* confdefs.h. */
26770_ACEOF
26771cat confdefs.h >>conftest.$ac_ext
26772cat >>conftest.$ac_ext <<_ACEOF
26773/* end confdefs.h. */
26774$ac_includes_default
26775#include <mspack.h>
26776_ACEOF
26777rm -f conftest.$ac_objext
26778if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26779 (eval $ac_compile) 2>conftest.er1
a848cd7e 26780 ac_status=$?
ac1cb8d3
VS
26781 grep -v '^ *+' conftest.er1 >conftest.err
26782 rm -f conftest.er1
26783 cat conftest.err >&5
a848cd7e
SC
26784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26785 (exit $ac_status); } &&
3ea50042 26786 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26788 (eval $ac_try) 2>&5
26789 ac_status=$?
26790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26791 (exit $ac_status); }; } &&
26792 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26794 (eval $ac_try) 2>&5
26795 ac_status=$?
26796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26797 (exit $ac_status); }; }; then
26798 ac_header_compiler=yes
26799else
26800 echo "$as_me: failed program was:" >&5
26801sed 's/^/| /' conftest.$ac_ext >&5
26802
26803ac_header_compiler=no
26804fi
ac1cb8d3 26805rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26806echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26807echo "${ECHO_T}$ac_header_compiler" >&6
26808
26809# Is the header present?
26810echo "$as_me:$LINENO: checking mspack.h presence" >&5
26811echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
26812cat >conftest.$ac_ext <<_ACEOF
26813/* confdefs.h. */
26814_ACEOF
26815cat confdefs.h >>conftest.$ac_ext
26816cat >>conftest.$ac_ext <<_ACEOF
26817/* end confdefs.h. */
26818#include <mspack.h>
26819_ACEOF
26820if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26821 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26822 ac_status=$?
26823 grep -v '^ *+' conftest.er1 >conftest.err
26824 rm -f conftest.er1
26825 cat conftest.err >&5
26826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26827 (exit $ac_status); } >/dev/null; then
26828 if test -s conftest.err; then
5d7b7554
VZ
26829 ac_cpp_err=$ac_cxx_preproc_warn_flag
26830 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
26831 else
26832 ac_cpp_err=
26833 fi
26834else
26835 ac_cpp_err=yes
26836fi
26837if test -z "$ac_cpp_err"; then
26838 ac_header_preproc=yes
26839else
26840 echo "$as_me: failed program was:" >&5
26841sed 's/^/| /' conftest.$ac_ext >&5
26842
26843 ac_header_preproc=no
26844fi
26845rm -f conftest.err conftest.$ac_ext
26846echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26847echo "${ECHO_T}$ac_header_preproc" >&6
26848
26849# So? What about this header?
5d7b7554 26850case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 26851 yes:no: )
a848cd7e
SC
26852 { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
26853echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
26854 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5
26855echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;}
26856 ac_header_preproc=yes
a848cd7e 26857 ;;
ac1cb8d3 26858 no:yes:* )
a848cd7e
SC
26859 { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
26860echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
26861 { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5
26862echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;}
26863 { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5
26864echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;}
26865 { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5
26866echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
26867 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
26868echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
26869 { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5
26870echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
26871 (
26872 cat <<\_ASBOX
ac1cb8d3
VS
26873## ----------------------------------------- ##
26874## Report this to wx-dev@lists.wxwidgets.org ##
26875## ----------------------------------------- ##
a848cd7e
SC
26876_ASBOX
26877 ) |
26878 sed "s/^/$as_me: WARNING: /" >&2
26879 ;;
26880esac
26881echo "$as_me:$LINENO: checking for mspack.h" >&5
26882echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
26883if test "${ac_cv_header_mspack_h+set}" = set; then
26884 echo $ECHO_N "(cached) $ECHO_C" >&6
26885else
26886 ac_cv_header_mspack_h=$ac_header_preproc
26887fi
26888echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
26889echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
26890
26891fi
26892if test $ac_cv_header_mspack_h = yes; then
26893 found_mspack_h=1
26894fi
26895
26896
26897 if test "x$found_mspack_h" = "x1"; then
26898 echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
26899echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
26900if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
26901 echo $ECHO_N "(cached) $ECHO_C" >&6
26902else
26903 ac_check_lib_save_LIBS=$LIBS
26904LIBS="-lmspack $LIBS"
26905cat >conftest.$ac_ext <<_ACEOF
26906/* confdefs.h. */
26907_ACEOF
26908cat confdefs.h >>conftest.$ac_ext
26909cat >>conftest.$ac_ext <<_ACEOF
26910/* end confdefs.h. */
26911
26912/* Override any gcc2 internal prototype to avoid an error. */
26913#ifdef __cplusplus
26914extern "C"
26915#endif
26916/* We use char because int might match the return type of a gcc2
26917 builtin and then its argument prototype would still apply. */
26918char mspack_create_chm_decompressor ();
26919int
26920main ()
26921{
26922mspack_create_chm_decompressor ();
26923 ;
26924 return 0;
26925}
26926_ACEOF
26927rm -f conftest.$ac_objext conftest$ac_exeext
26928if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26929 (eval $ac_link) 2>conftest.er1
a848cd7e 26930 ac_status=$?
ac1cb8d3
VS
26931 grep -v '^ *+' conftest.er1 >conftest.err
26932 rm -f conftest.er1
26933 cat conftest.err >&5
a848cd7e
SC
26934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26935 (exit $ac_status); } &&
3ea50042 26936 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26938 (eval $ac_try) 2>&5
26939 ac_status=$?
26940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26941 (exit $ac_status); }; } &&
26942 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26944 (eval $ac_try) 2>&5
26945 ac_status=$?
26946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26947 (exit $ac_status); }; }; then
26948 ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
26949else
26950 echo "$as_me: failed program was:" >&5
26951sed 's/^/| /' conftest.$ac_ext >&5
26952
26953ac_cv_lib_mspack_mspack_create_chm_decompressor=no
26954fi
ac1cb8d3
VS
26955rm -f conftest.err conftest.$ac_objext \
26956 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26957LIBS=$ac_check_lib_save_LIBS
26958fi
26959echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
26960echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
26961if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
26962 MSPACK_LINK=" -lmspack"
26963fi
26964
26965 fi
26966 if test "x$MSPACK_LINK" = "x" ; then
26967 wxUSE_LIBMSPACK=no
dd3a2d96
VZ
26968 fi
26969fi
26970
26971if test "$wxUSE_LIBMSPACK" != "no"; then
26972 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
26973#define wxUSE_LIBMSPACK 1
26974_ACEOF
26975
a848cd7e
SC
26976fi
26977
26978
26979
26980AFMINSTALL=
26981WIN32INSTALL=
26982
26983TOOLKIT=
26984TOOLKIT_INCLUDE=
26985WIDGET_SET=
26986
26987if test "$USE_WIN32" = 1 ; then
26988
26989for ac_header in w32api.h
26990do
26991as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26992if eval "test \"\${$as_ac_Header+set}\" = set"; then
26993 echo "$as_me:$LINENO: checking for $ac_header" >&5
26994echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26995if eval "test \"\${$as_ac_Header+set}\" = set"; then
26996 echo $ECHO_N "(cached) $ECHO_C" >&6
26997fi
26998echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26999echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27000else
27001 # Is the header compilable?
27002echo "$as_me:$LINENO: checking $ac_header usability" >&5
27003echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27004cat >conftest.$ac_ext <<_ACEOF
27005/* confdefs.h. */
27006_ACEOF
27007cat confdefs.h >>conftest.$ac_ext
27008cat >>conftest.$ac_ext <<_ACEOF
27009/* end confdefs.h. */
27010$ac_includes_default
27011#include <$ac_header>
27012_ACEOF
27013rm -f conftest.$ac_objext
27014if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27015 (eval $ac_compile) 2>conftest.er1
a848cd7e 27016 ac_status=$?
ac1cb8d3
VS
27017 grep -v '^ *+' conftest.er1 >conftest.err
27018 rm -f conftest.er1
27019 cat conftest.err >&5
a848cd7e
SC
27020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27021 (exit $ac_status); } &&
3ea50042 27022 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27024 (eval $ac_try) 2>&5
27025 ac_status=$?
27026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27027 (exit $ac_status); }; } &&
27028 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27030 (eval $ac_try) 2>&5
27031 ac_status=$?
27032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27033 (exit $ac_status); }; }; then
27034 ac_header_compiler=yes
27035else
27036 echo "$as_me: failed program was:" >&5
27037sed 's/^/| /' conftest.$ac_ext >&5
27038
27039ac_header_compiler=no
27040fi
ac1cb8d3 27041rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27042echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27043echo "${ECHO_T}$ac_header_compiler" >&6
27044
27045# Is the header present?
27046echo "$as_me:$LINENO: checking $ac_header presence" >&5
27047echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27048cat >conftest.$ac_ext <<_ACEOF
27049/* confdefs.h. */
27050_ACEOF
27051cat confdefs.h >>conftest.$ac_ext
27052cat >>conftest.$ac_ext <<_ACEOF
27053/* end confdefs.h. */
27054#include <$ac_header>
27055_ACEOF
27056if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27057 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27058 ac_status=$?
27059 grep -v '^ *+' conftest.er1 >conftest.err
27060 rm -f conftest.er1
27061 cat conftest.err >&5
27062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27063 (exit $ac_status); } >/dev/null; then
27064 if test -s conftest.err; then
5d7b7554
VZ
27065 ac_cpp_err=$ac_cxx_preproc_warn_flag
27066 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
27067 else
27068 ac_cpp_err=
27069 fi
27070else
27071 ac_cpp_err=yes
27072fi
27073if test -z "$ac_cpp_err"; then
27074 ac_header_preproc=yes
27075else
27076 echo "$as_me: failed program was:" >&5
27077sed 's/^/| /' conftest.$ac_ext >&5
27078
27079 ac_header_preproc=no
27080fi
27081rm -f conftest.err conftest.$ac_ext
27082echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27083echo "${ECHO_T}$ac_header_preproc" >&6
27084
27085# So? What about this header?
5d7b7554 27086case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 27087 yes:no: )
a848cd7e
SC
27088 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27089echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
27090 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27091echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27092 ac_header_preproc=yes
a848cd7e 27093 ;;
ac1cb8d3 27094 no:yes:* )
a848cd7e
SC
27095 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27096echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
27097 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27098echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27099 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27100echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27101 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27102echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
27103 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27104echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
27105 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27106echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
27107 (
27108 cat <<\_ASBOX
ac1cb8d3
VS
27109## ----------------------------------------- ##
27110## Report this to wx-dev@lists.wxwidgets.org ##
27111## ----------------------------------------- ##
a848cd7e
SC
27112_ASBOX
27113 ) |
27114 sed "s/^/$as_me: WARNING: /" >&2
27115 ;;
27116esac
27117echo "$as_me:$LINENO: checking for $ac_header" >&5
27118echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27119if eval "test \"\${$as_ac_Header+set}\" = set"; then
27120 echo $ECHO_N "(cached) $ECHO_C" >&6
27121else
ac1cb8d3 27122 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
27123fi
27124echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27125echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27126
27127fi
27128if test `eval echo '${'$as_ac_Header'}'` = yes; then
27129 cat >>confdefs.h <<_ACEOF
27130#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27131_ACEOF
27132
27133fi
27134
27135done
27136
27137 if test "${ac_cv_header_windows_h+set}" = set; then
27138 echo "$as_me:$LINENO: checking for windows.h" >&5
27139echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
27140if test "${ac_cv_header_windows_h+set}" = set; then
27141 echo $ECHO_N "(cached) $ECHO_C" >&6
27142fi
27143echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
27144echo "${ECHO_T}$ac_cv_header_windows_h" >&6
27145else
27146 # Is the header compilable?
27147echo "$as_me:$LINENO: checking windows.h usability" >&5
27148echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
27149cat >conftest.$ac_ext <<_ACEOF
27150/* confdefs.h. */
27151_ACEOF
27152cat confdefs.h >>conftest.$ac_ext
27153cat >>conftest.$ac_ext <<_ACEOF
27154/* end confdefs.h. */
27155$ac_includes_default
27156#include <windows.h>
27157_ACEOF
27158rm -f conftest.$ac_objext
27159if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27160 (eval $ac_compile) 2>conftest.er1
a848cd7e 27161 ac_status=$?
ac1cb8d3
VS
27162 grep -v '^ *+' conftest.er1 >conftest.err
27163 rm -f conftest.er1
27164 cat conftest.err >&5
a848cd7e
SC
27165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27166 (exit $ac_status); } &&
3ea50042 27167 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27169 (eval $ac_try) 2>&5
27170 ac_status=$?
27171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27172 (exit $ac_status); }; } &&
27173 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27175 (eval $ac_try) 2>&5
27176 ac_status=$?
27177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27178 (exit $ac_status); }; }; then
27179 ac_header_compiler=yes
27180else
27181 echo "$as_me: failed program was:" >&5
27182sed 's/^/| /' conftest.$ac_ext >&5
27183
27184ac_header_compiler=no
27185fi
ac1cb8d3 27186rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27187echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27188echo "${ECHO_T}$ac_header_compiler" >&6
27189
27190# Is the header present?
27191echo "$as_me:$LINENO: checking windows.h presence" >&5
27192echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
27193cat >conftest.$ac_ext <<_ACEOF
27194/* confdefs.h. */
27195_ACEOF
27196cat confdefs.h >>conftest.$ac_ext
27197cat >>conftest.$ac_ext <<_ACEOF
27198/* end confdefs.h. */
27199#include <windows.h>
27200_ACEOF
27201if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27202 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27203 ac_status=$?
27204 grep -v '^ *+' conftest.er1 >conftest.err
27205 rm -f conftest.er1
27206 cat conftest.err >&5
27207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27208 (exit $ac_status); } >/dev/null; then
27209 if test -s conftest.err; then
5d7b7554
VZ
27210 ac_cpp_err=$ac_cxx_preproc_warn_flag
27211 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
27212 else
27213 ac_cpp_err=
27214 fi
27215else
27216 ac_cpp_err=yes
27217fi
27218if test -z "$ac_cpp_err"; then
27219 ac_header_preproc=yes
27220else
27221 echo "$as_me: failed program was:" >&5
27222sed 's/^/| /' conftest.$ac_ext >&5
27223
27224 ac_header_preproc=no
27225fi
27226rm -f conftest.err conftest.$ac_ext
27227echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27228echo "${ECHO_T}$ac_header_preproc" >&6
27229
27230# So? What about this header?
5d7b7554 27231case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 27232 yes:no: )
a848cd7e
SC
27233 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
27234echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
27235 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
27236echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
27237 ac_header_preproc=yes
a848cd7e 27238 ;;
ac1cb8d3 27239 no:yes:* )
a848cd7e
SC
27240 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
27241echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
27242 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
27243echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
27244 { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
27245echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
27246 { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5
27247echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
27248 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
27249echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
27250 { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
27251echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
27252 (
27253 cat <<\_ASBOX
ac1cb8d3
VS
27254## ----------------------------------------- ##
27255## Report this to wx-dev@lists.wxwidgets.org ##
27256## ----------------------------------------- ##
a848cd7e
SC
27257_ASBOX
27258 ) |
27259 sed "s/^/$as_me: WARNING: /" >&2
27260 ;;
27261esac
27262echo "$as_me:$LINENO: checking for windows.h" >&5
27263echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
27264if test "${ac_cv_header_windows_h+set}" = set; then
27265 echo $ECHO_N "(cached) $ECHO_C" >&6
27266else
27267 ac_cv_header_windows_h=$ac_header_preproc
27268fi
27269echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
27270echo "${ECHO_T}$ac_cv_header_windows_h" >&6
27271
27272fi
27273if test $ac_cv_header_windows_h = yes; then
27274 :
27275else
27276
27277 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
27278echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
27279 { (exit 1); exit 1; }; }
27280
27281fi
27282
27283
27284
27285 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
27286
27287 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
27288 LIBS="$LIBS -loleacc"
27289 fi
27290
27291 case "${host}" in
27292 *-*-cygwin* )
27293 LIBS="$LIBS -lkernel32 -luser32"
a848cd7e
SC
27294 esac
27295
27296 if test "$wxUSE_ODBC" = "sys" ; then
27297 wxUSE_ODBC = "yes"
27298 fi
27299 if test "$wxUSE_ODBC" = "yes" ; then
27300 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
27301 cat >>confdefs.h <<\_ACEOF
27302#define wxUSE_ODBC 1
27303_ACEOF
27304
27305 fi
27306
370d2fd7 27307 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
a848cd7e
SC
27308 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
27309
004ee6da 27310 WXCONFIG_RESFLAGS="--define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
370d2fd7 27311
a848cd7e 27312 WIN32INSTALL=win32install
5f41d1bf
MW
27313
27314 echo "$as_me:$LINENO: checking for boolean" >&5
27315echo $ECHO_N "checking for boolean... $ECHO_C" >&6
27316if test "${ac_cv_type_boolean+set}" = set; then
27317 echo $ECHO_N "(cached) $ECHO_C" >&6
27318else
27319 cat >conftest.$ac_ext <<_ACEOF
27320/* confdefs.h. */
27321_ACEOF
27322cat confdefs.h >>conftest.$ac_ext
27323cat >>conftest.$ac_ext <<_ACEOF
27324/* end confdefs.h. */
27325#include <windows.h>
27326
27327int
27328main ()
27329{
27330if ((boolean *) 0)
27331 return 0;
27332if (sizeof (boolean))
27333 return 0;
27334 ;
27335 return 0;
27336}
27337_ACEOF
27338rm -f conftest.$ac_objext
27339if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27340 (eval $ac_compile) 2>conftest.er1
27341 ac_status=$?
27342 grep -v '^ *+' conftest.er1 >conftest.err
27343 rm -f conftest.er1
27344 cat conftest.err >&5
27345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27346 (exit $ac_status); } &&
3ea50042 27347 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5f41d1bf
MW
27348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27349 (eval $ac_try) 2>&5
27350 ac_status=$?
27351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27352 (exit $ac_status); }; } &&
27353 { ac_try='test -s conftest.$ac_objext'
27354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27355 (eval $ac_try) 2>&5
27356 ac_status=$?
27357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27358 (exit $ac_status); }; }; then
27359 ac_cv_type_boolean=yes
27360else
27361 echo "$as_me: failed program was:" >&5
27362sed 's/^/| /' conftest.$ac_ext >&5
27363
27364ac_cv_type_boolean=no
27365fi
27366rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27367fi
27368echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
27369echo "${ECHO_T}$ac_cv_type_boolean" >&6
27370if test $ac_cv_type_boolean = yes; then
27371
27372cat >>confdefs.h <<_ACEOF
27373#define HAVE_BOOLEAN 1
27374_ACEOF
27375
27376
27377fi
27378
dcfd4ac4
MW
27379
27380
27381for ac_header in pbt.h
27382do
27383as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27384if eval "test \"\${$as_ac_Header+set}\" = set"; then
27385 echo "$as_me:$LINENO: checking for $ac_header" >&5
27386echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27387if eval "test \"\${$as_ac_Header+set}\" = set"; then
27388 echo $ECHO_N "(cached) $ECHO_C" >&6
27389fi
27390echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27391echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27392else
27393 # Is the header compilable?
27394echo "$as_me:$LINENO: checking $ac_header usability" >&5
27395echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27396cat >conftest.$ac_ext <<_ACEOF
27397/* confdefs.h. */
27398_ACEOF
27399cat confdefs.h >>conftest.$ac_ext
27400cat >>conftest.$ac_ext <<_ACEOF
27401/* end confdefs.h. */
27402$ac_includes_default
27403#include <$ac_header>
27404_ACEOF
27405rm -f conftest.$ac_objext
27406if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27407 (eval $ac_compile) 2>conftest.er1
27408 ac_status=$?
27409 grep -v '^ *+' conftest.er1 >conftest.err
27410 rm -f conftest.er1
27411 cat conftest.err >&5
27412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27413 (exit $ac_status); } &&
3ea50042 27414 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
dcfd4ac4
MW
27415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27416 (eval $ac_try) 2>&5
27417 ac_status=$?
27418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27419 (exit $ac_status); }; } &&
27420 { ac_try='test -s conftest.$ac_objext'
27421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27422 (eval $ac_try) 2>&5
27423 ac_status=$?
27424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27425 (exit $ac_status); }; }; then
27426 ac_header_compiler=yes
27427else
27428 echo "$as_me: failed program was:" >&5
27429sed 's/^/| /' conftest.$ac_ext >&5
27430
27431ac_header_compiler=no
27432fi
27433rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27434echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27435echo "${ECHO_T}$ac_header_compiler" >&6
27436
27437# Is the header present?
27438echo "$as_me:$LINENO: checking $ac_header presence" >&5
27439echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27440cat >conftest.$ac_ext <<_ACEOF
27441/* confdefs.h. */
27442_ACEOF
27443cat confdefs.h >>conftest.$ac_ext
27444cat >>conftest.$ac_ext <<_ACEOF
27445/* end confdefs.h. */
27446#include <$ac_header>
27447_ACEOF
27448if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27449 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27450 ac_status=$?
27451 grep -v '^ *+' conftest.er1 >conftest.err
27452 rm -f conftest.er1
27453 cat conftest.err >&5
27454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27455 (exit $ac_status); } >/dev/null; then
27456 if test -s conftest.err; then
27457 ac_cpp_err=$ac_cxx_preproc_warn_flag
27458 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
27459 else
27460 ac_cpp_err=
27461 fi
27462else
27463 ac_cpp_err=yes
27464fi
27465if test -z "$ac_cpp_err"; then
27466 ac_header_preproc=yes
27467else
27468 echo "$as_me: failed program was:" >&5
27469sed 's/^/| /' conftest.$ac_ext >&5
27470
27471 ac_header_preproc=no
27472fi
27473rm -f conftest.err conftest.$ac_ext
27474echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27475echo "${ECHO_T}$ac_header_preproc" >&6
27476
27477# So? What about this header?
27478case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
27479 yes:no: )
27480 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27481echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27482 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27483echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27484 ac_header_preproc=yes
27485 ;;
27486 no:yes:* )
27487 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27488echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27489 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27490echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27491 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27492echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27493 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27494echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27495 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27496echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27497 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27498echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27499 (
27500 cat <<\_ASBOX
27501## ----------------------------------------- ##
27502## Report this to wx-dev@lists.wxwidgets.org ##
27503## ----------------------------------------- ##
27504_ASBOX
27505 ) |
27506 sed "s/^/$as_me: WARNING: /" >&2
27507 ;;
27508esac
27509echo "$as_me:$LINENO: checking for $ac_header" >&5
27510echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27511if eval "test \"\${$as_ac_Header+set}\" = set"; then
27512 echo $ECHO_N "(cached) $ECHO_C" >&6
27513else
27514 eval "$as_ac_Header=\$ac_header_preproc"
27515fi
27516echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27517echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27518
27519fi
27520if test `eval echo '${'$as_ac_Header'}'` = yes; then
27521 cat >>confdefs.h <<_ACEOF
27522#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27523_ACEOF
27524
27525else
27526 cat >>confdefs.h <<\_ACEOF
27527#define NEED_PBT_H 1
27528_ACEOF
27529
27530fi
27531
27532done
27533
a848cd7e
SC
27534fi
27535
27536if test "$wxUSE_GUI" = "yes"; then
27537 USE_GUI=1
27538
27539 GUI_TK_LIBRARY=
27540
27541 WXGTK12=
27542 WXGTK127=
27543 WXGTK20=
27544 WXGPE=
27545
207bc66c
RN
27546 if test "$wxUSE_COCOA" = 1 ; then
27547 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
27548 { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
27549echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
27550 wxUSE_PRINTING_ARCHITECTURE=no
27551 fi
27552 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
27553 { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
27554echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
27555 wxUSE_DRAG_AND_DROP=no
27556 fi
27557 if test "$wxUSE_DRAGIMAGE" = "yes"; then
27558 { echo "$as_me:$LINENO: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&5
27559echo "$as_me: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&2;}
27560 wxUSE_DRAGIMAGE=no
27561 fi
27562 fi
27563
a848cd7e
SC
27564 if test "$wxUSE_MSW" = 1 ; then
27565 TOOLKIT=MSW
27566 GUIDIST=MSW_DIST
27567
ceec2216 27568 case "${host}" in
a848cd7e
SC
27569 *-*-mingw32* )
27570 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
27571 esac
27572 fi
27573
27574 if test "$wxUSE_GTK" = 1; then
5d7b7554
VZ
27575 ac_ext=c
27576ac_cpp='$CPP $CPPFLAGS'
27577ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27578ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27579ac_compiler_gnu=$ac_cv_c_compiler_gnu
27580
27581
a848cd7e
SC
27582 echo "$as_me:$LINENO: checking for GTK+ version" >&5
27583echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
27584
27585 gtk_version_cached=1
27586 if test "${wx_cv_lib_gtk+set}" = set; then
27587 echo $ECHO_N "(cached) $ECHO_C" >&6
27588else
27589
27590 gtk_version_cached=0
27591 echo "$as_me:$LINENO: result: " >&5
27592echo "${ECHO_T}" >&6
27593
27594 GTK_MODULES=
27595 if test "$wxUSE_THREADS" = "yes"; then
27596 GTK_MODULES=gthread
27597 fi
27598
f597b41c 27599 wx_cv_lib_gtk=
5001df0d
MW
27600 if test "x$wxGTK_VERSION" != "x1"
27601 then
27602 case "${host}" in
27603 *-*-solaris2* )
27604 if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
5ff751d6 27605 enable_gtktest=no
5001df0d
MW
27606 fi
27607 esac
27608
a848cd7e
SC
27609 # Check whether --enable-gtktest or --disable-gtktest was given.
27610if test "${enable_gtktest+set}" = set; then
27611 enableval="$enable_gtktest"
27612
27613else
27614 enable_gtktest=yes
27615fi;
27616
27617 pkg_config_args=gtk+-2.0
27618 for module in . $GTK_MODULES
27619 do
27620 case "$module" in
27621 gthread)
27622 pkg_config_args="$pkg_config_args gthread-2.0"
27623 ;;
27624 esac
27625 done
27626
27627 no_gtk=""
27628
27629 # Extract the first word of "pkg-config", so it can be a program name with args.
27630set dummy pkg-config; ac_word=$2
27631echo "$as_me:$LINENO: checking for $ac_word" >&5
27632echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27633if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
27634 echo $ECHO_N "(cached) $ECHO_C" >&6
27635else
27636 case $PKG_CONFIG in
27637 [\\/]* | ?:[\\/]*)
27638 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
27639 ;;
27640 *)
27641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27642for as_dir in $PATH
27643do
27644 IFS=$as_save_IFS
27645 test -z "$as_dir" && as_dir=.
27646 for ac_exec_ext in '' $ac_executable_extensions; do
27647 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27648 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27649 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27650 break 2
27651 fi
27652done
27653done
27654
27655 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
27656 ;;
27657esac
27658fi
27659PKG_CONFIG=$ac_cv_path_PKG_CONFIG
27660
27661if test -n "$PKG_CONFIG"; then
27662 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
27663echo "${ECHO_T}$PKG_CONFIG" >&6
27664else
27665 echo "$as_me:$LINENO: result: no" >&5
27666echo "${ECHO_T}no" >&6
27667fi
27668
27669
27670 if test x$PKG_CONFIG != xno ; then
27671 if pkg-config --atleast-pkgconfig-version 0.7 ; then
27672 :
27673 else
c2218763 27674 echo "*** pkg-config too old; version 0.7 or better required."
a848cd7e
SC
27675 no_gtk=yes
27676 PKG_CONFIG=no
27677 fi
27678 else
27679 no_gtk=yes
27680 fi
27681
27682 min_gtk_version=2.0.0
27683 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
27684echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
27685
27686 if test x$PKG_CONFIG != xno ; then
27687 ## don't try to run the test against uninstalled libtool libs
27688 if $PKG_CONFIG --uninstalled $pkg_config_args; then
27689 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
27690 enable_gtktest=no
27691 fi
27692
27693 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
27694 :
27695 else
27696 no_gtk=yes
27697 fi
27698 fi
27699
27700 if test x"$no_gtk" = x ; then
27701 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
27702 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
27703 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
27704 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
27705 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
27706 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
27707 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
27708 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
27709 if test "x$enable_gtktest" = "xyes" ; then
27710 ac_save_CFLAGS="$CFLAGS"
27711 ac_save_LIBS="$LIBS"
27712 CFLAGS="$CFLAGS $GTK_CFLAGS"
27713 LIBS="$GTK_LIBS $LIBS"
27714 rm -f conf.gtktest
27715 if test "$cross_compiling" = yes; then
27716 echo $ac_n "cross compiling; assumed OK... $ac_c"
27717else
27718 cat >conftest.$ac_ext <<_ACEOF
27719/* confdefs.h. */
27720_ACEOF
27721cat confdefs.h >>conftest.$ac_ext
27722cat >>conftest.$ac_ext <<_ACEOF
27723/* end confdefs.h. */
27724
27725#include <gtk/gtk.h>
27726#include <stdio.h>
27727#include <stdlib.h>
27728
27729int
27730main ()
27731{
27732 int major, minor, micro;
27733 char *tmp_version;
27734
27735 system ("touch conf.gtktest");
27736
27737 /* HP/UX 9 (%@#!) writes to sscanf strings */
27738 tmp_version = g_strdup("$min_gtk_version");
27739 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
27740 printf("%s, bad version string\n", "$min_gtk_version");
27741 exit(1);
27742 }
27743
27744 if ((gtk_major_version != $gtk_config_major_version) ||
27745 (gtk_minor_version != $gtk_config_minor_version) ||
27746 (gtk_micro_version != $gtk_config_micro_version))
27747 {
27748 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
27749 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
27750 gtk_major_version, gtk_minor_version, gtk_micro_version);
27751 printf ("*** was found! If pkg-config was correct, then it is best\n");
27752 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
27753 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
27754 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
27755 printf("*** required on your system.\n");
27756 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
27757 printf("*** to point to the correct configuration files\n");
27758 }
27759 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
27760 (gtk_minor_version != GTK_MINOR_VERSION) ||
27761 (gtk_micro_version != GTK_MICRO_VERSION))
27762 {
27763 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
27764 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
27765 printf("*** library (version %d.%d.%d)\n",
27766 gtk_major_version, gtk_minor_version, gtk_micro_version);
27767 }
27768 else
27769 {
27770 if ((gtk_major_version > major) ||
27771 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
27772 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
27773 {
27774 return 0;
27775 }
27776 else
27777 {
27778 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
27779 gtk_major_version, gtk_minor_version, gtk_micro_version);
27780 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
27781 major, minor, micro);
27782 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
27783 printf("***\n");
27784 printf("*** If you have already installed a sufficiently new version, this error\n");
27785 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
27786 printf("*** being found. The easiest way to fix this is to remove the old version\n");
27787 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
27788 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
27789 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
27790 printf("*** so that the correct libraries are found at run-time))\n");
27791 }
27792 }
27793 return 1;
27794}
27795
27796_ACEOF
27797rm -f conftest$ac_exeext
27798if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27799 (eval $ac_link) 2>&5
27800 ac_status=$?
27801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27802 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27804 (eval $ac_try) 2>&5
27805 ac_status=$?
27806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27807 (exit $ac_status); }; }; then
27808 :
27809else
27810 echo "$as_me: program exited with status $ac_status" >&5
27811echo "$as_me: failed program was:" >&5
27812sed 's/^/| /' conftest.$ac_ext >&5
27813
27814( exit $ac_status )
27815no_gtk=yes
27816fi
ac1cb8d3 27817rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27818fi
27819 CFLAGS="$ac_save_CFLAGS"
27820 LIBS="$ac_save_LIBS"
27821 fi
27822 fi
27823 if test "x$no_gtk" = x ; then
27824 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
27825echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
27826 wx_cv_lib_gtk=2.0
27827 else
27828 echo "$as_me:$LINENO: result: no" >&5
27829echo "${ECHO_T}no" >&6
27830 if test "$PKG_CONFIG" = "no" ; then
27831 echo "*** A new enough version of pkg-config was not found."
27832 echo "*** See http://pkgconfig.sourceforge.net"
27833 else
27834 if test -f conf.gtktest ; then
27835 :
27836 else
27837 echo "*** Could not run GTK+ test program, checking why..."
27838 ac_save_CFLAGS="$CFLAGS"
27839 ac_save_LIBS="$LIBS"
27840 CFLAGS="$CFLAGS $GTK_CFLAGS"
27841 LIBS="$LIBS $GTK_LIBS"
27842 cat >conftest.$ac_ext <<_ACEOF
27843/* confdefs.h. */
27844_ACEOF
27845cat confdefs.h >>conftest.$ac_ext
27846cat >>conftest.$ac_ext <<_ACEOF
27847/* end confdefs.h. */
27848
27849#include <gtk/gtk.h>
27850#include <stdio.h>
27851
27852int
27853main ()
27854{
27855 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
27856 ;
27857 return 0;
27858}
27859_ACEOF
27860rm -f conftest.$ac_objext conftest$ac_exeext
27861if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27862 (eval $ac_link) 2>conftest.er1
a848cd7e 27863 ac_status=$?
ac1cb8d3
VS
27864 grep -v '^ *+' conftest.er1 >conftest.err
27865 rm -f conftest.er1
27866 cat conftest.err >&5
a848cd7e
SC
27867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27868 (exit $ac_status); } &&
3ea50042 27869 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27871 (eval $ac_try) 2>&5
27872 ac_status=$?
27873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27874 (exit $ac_status); }; } &&
27875 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27877 (eval $ac_try) 2>&5
27878 ac_status=$?
27879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27880 (exit $ac_status); }; }; then
27881 echo "*** The test program compiled, but did not run. This usually means"
27882 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
27883 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
27884 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
27885 echo "*** to the installed location Also, make sure you have run ldconfig if that"
27886 echo "*** is required on your system"
27887 echo "***"
27888 echo "*** If you have an old version installed, it is best to remove it, although"
27889 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
27890else
27891 echo "$as_me: failed program was:" >&5
27892sed 's/^/| /' conftest.$ac_ext >&5
27893
27894 echo "*** The test program failed to compile or link. See the file config.log for the"
27895 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
27896fi
ac1cb8d3
VS
27897rm -f conftest.err conftest.$ac_objext \
27898 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27899 CFLAGS="$ac_save_CFLAGS"
27900 LIBS="$ac_save_LIBS"
27901 fi
27902 fi
27903 GTK_CFLAGS=""
27904 GTK_LIBS=""
27905 :
27906 fi
27907
27908
27909 rm -f conf.gtktest
27910
5001df0d
MW
27911
27912 case "${host}" in
27913 *-*-solaris2* )
27914 if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
27915 GTK_CFLAGS=`echo $GTK_CFLAGS | sed 's/-mt//'`
27916 GTK_LIBS=`echo $GTK_LIBS | sed 's/-mt//'`
27917 fi
27918 if test "$wxUSE_SHARED" != "yes"; then
27919 GTK_LIBS="$GTK_LIBS -lX11"
27920 fi
27921 esac
f597b41c
MW
27922 fi
27923
f34ca037
MW
27924 if test -z "$wx_cv_lib_gtk"; then
27925 if test "x$wxGTK_VERSION" = "x1" -o "x$wxGTK_VERSION" = "xany" ; then
a848cd7e
SC
27926
27927# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
27928if test "${with_gtk_prefix+set}" = set; then
27929 withval="$with_gtk_prefix"
27930 gtk_config_prefix="$withval"
27931else
27932 gtk_config_prefix=""
27933fi;
27934
27935# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
27936if test "${with_gtk_exec_prefix+set}" = set; then
27937 withval="$with_gtk_exec_prefix"
27938 gtk_config_exec_prefix="$withval"
27939else
27940 gtk_config_exec_prefix=""
27941fi;
27942# Check whether --enable-gtktest or --disable-gtktest was given.
27943if test "${enable_gtktest+set}" = set; then
27944 enableval="$enable_gtktest"
27945
27946else
27947 enable_gtktest=yes
27948fi;
27949
27950 for module in . $GTK_MODULES
27951 do
27952 case "$module" in
27953 gthread)
27954 gtk_config_args="$gtk_config_args gthread"
27955 ;;
27956 esac
27957 done
27958
27959 if test x$gtk_config_exec_prefix != x ; then
27960 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
27961 if test x${GTK_CONFIG+set} != xset ; then
27962 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
27963 fi
27964 fi
27965 if test x$gtk_config_prefix != x ; then
27966 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
27967 if test x${GTK_CONFIG+set} != xset ; then
27968 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
27969 fi
27970 fi
27971
27972 # Extract the first word of "gtk-config", so it can be a program name with args.
27973set dummy gtk-config; ac_word=$2
27974echo "$as_me:$LINENO: checking for $ac_word" >&5
27975echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27976if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
27977 echo $ECHO_N "(cached) $ECHO_C" >&6
27978else
27979 case $GTK_CONFIG in
27980 [\\/]* | ?:[\\/]*)
27981 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
27982 ;;
27983 *)
27984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27985for as_dir in $PATH
27986do
27987 IFS=$as_save_IFS
27988 test -z "$as_dir" && as_dir=.
27989 for ac_exec_ext in '' $ac_executable_extensions; do
27990 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27991 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27992 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27993 break 2
27994 fi
27995done
27996done
27997
27998 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
27999 ;;
28000esac
28001fi
28002GTK_CONFIG=$ac_cv_path_GTK_CONFIG
28003
28004if test -n "$GTK_CONFIG"; then
28005 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
28006echo "${ECHO_T}$GTK_CONFIG" >&6
28007else
28008 echo "$as_me:$LINENO: result: no" >&5
28009echo "${ECHO_T}no" >&6
28010fi
28011
28012 min_gtk_version=1.2.7
28013 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
28014echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
28015 no_gtk=""
28016 if test "$GTK_CONFIG" = "no" ; then
28017 no_gtk=yes
28018 else
28019 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
28020 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
28021 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
28022 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
28023 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
28024 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
28025 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
28026 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
28027 if test "x$enable_gtktest" = "xyes" ; then
28028 ac_save_CFLAGS="$CFLAGS"
28029 ac_save_LIBS="$LIBS"
28030 CFLAGS="$CFLAGS $GTK_CFLAGS"
28031 LIBS="$GTK_LIBS $LIBS"
28032 rm -f conf.gtktest
28033 if test "$cross_compiling" = yes; then
28034 echo $ac_n "cross compiling; assumed OK... $ac_c"
28035else
28036 cat >conftest.$ac_ext <<_ACEOF
28037/* confdefs.h. */
28038_ACEOF
28039cat confdefs.h >>conftest.$ac_ext
28040cat >>conftest.$ac_ext <<_ACEOF
28041/* end confdefs.h. */
28042
28043#include <gtk/gtk.h>
28044#include <stdio.h>
28045#include <stdlib.h>
28046
28047int
28048main ()
28049{
28050 int major, minor, micro;
28051 char *tmp_version;
28052
28053 system ("touch conf.gtktest");
28054
28055 /* HP/UX 9 (%@#!) writes to sscanf strings */
28056 tmp_version = g_strdup("$min_gtk_version");
28057 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
28058 printf("%s, bad version string\n", "$min_gtk_version");
28059 exit(1);
28060 }
28061
28062 if ((gtk_major_version != $gtk_config_major_version) ||
28063 (gtk_minor_version != $gtk_config_minor_version) ||
28064 (gtk_micro_version != $gtk_config_micro_version))
28065 {
28066 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
28067 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
28068 gtk_major_version, gtk_minor_version, gtk_micro_version);
28069 printf ("*** was found! If gtk-config was correct, then it is best\n");
28070 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
28071 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
28072 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
28073 printf("*** required on your system.\n");
28074 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
28075 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
28076 printf("*** before re-running configure\n");
28077 }
28078#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
28079 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
28080 (gtk_minor_version != GTK_MINOR_VERSION) ||
28081 (gtk_micro_version != GTK_MICRO_VERSION))
28082 {
28083 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
28084 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
28085 printf("*** library (version %d.%d.%d)\n",
28086 gtk_major_version, gtk_minor_version, gtk_micro_version);
28087 }
28088#endif /* defined (GTK_MAJOR_VERSION) ... */
28089 else
28090 {
28091 if ((gtk_major_version > major) ||
28092 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
28093 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
28094 {
28095 return 0;
28096 }
28097 else
28098 {
28099 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
28100 gtk_major_version, gtk_minor_version, gtk_micro_version);
28101 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
28102 major, minor, micro);
28103 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
28104 printf("***\n");
28105 printf("*** If you have already installed a sufficiently new version, this error\n");
28106 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
28107 printf("*** being found. The easiest way to fix this is to remove the old version\n");
28108 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
28109 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
28110 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
28111 printf("*** so that the correct libraries are found at run-time))\n");
28112 }
28113 }
28114 return 1;
28115}
28116
28117_ACEOF
28118rm -f conftest$ac_exeext
28119if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28120 (eval $ac_link) 2>&5
28121 ac_status=$?
28122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28123 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28125 (eval $ac_try) 2>&5
28126 ac_status=$?
28127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28128 (exit $ac_status); }; }; then
28129 :
28130else
28131 echo "$as_me: program exited with status $ac_status" >&5
28132echo "$as_me: failed program was:" >&5
28133sed 's/^/| /' conftest.$ac_ext >&5
28134
28135( exit $ac_status )
28136no_gtk=yes
28137fi
ac1cb8d3 28138rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28139fi
28140 CFLAGS="$ac_save_CFLAGS"
28141 LIBS="$ac_save_LIBS"
28142 fi
28143 fi
28144 if test "x$no_gtk" = x ; then
28145 echo "$as_me:$LINENO: result: yes" >&5
28146echo "${ECHO_T}yes" >&6
28147 wx_cv_lib_gtk=1.2.7
28148 else
28149 echo "$as_me:$LINENO: result: no" >&5
28150echo "${ECHO_T}no" >&6
28151 if test "$GTK_CONFIG" = "no" ; then
28152 echo "*** The gtk-config script installed by GTK could not be found"
28153 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
28154 echo "*** your path, or set the GTK_CONFIG environment variable to the"
28155 echo "*** full path to gtk-config."
28156 else
28157 if test -f conf.gtktest ; then
28158 :
28159 else
28160 echo "*** Could not run GTK test program, checking why..."
28161 CFLAGS="$CFLAGS $GTK_CFLAGS"
28162 LIBS="$LIBS $GTK_LIBS"
28163 cat >conftest.$ac_ext <<_ACEOF
28164/* confdefs.h. */
28165_ACEOF
28166cat confdefs.h >>conftest.$ac_ext
28167cat >>conftest.$ac_ext <<_ACEOF
28168/* end confdefs.h. */
28169
28170#include <gtk/gtk.h>
28171#include <stdio.h>
28172
28173int
28174main ()
28175{
28176 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
28177 ;
28178 return 0;
28179}
28180_ACEOF
28181rm -f conftest.$ac_objext conftest$ac_exeext
28182if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28183 (eval $ac_link) 2>conftest.er1
a848cd7e 28184 ac_status=$?
ac1cb8d3
VS
28185 grep -v '^ *+' conftest.er1 >conftest.err
28186 rm -f conftest.er1
28187 cat conftest.err >&5
a848cd7e
SC
28188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28189 (exit $ac_status); } &&
3ea50042 28190 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28192 (eval $ac_try) 2>&5
28193 ac_status=$?
28194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28195 (exit $ac_status); }; } &&
28196 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28198 (eval $ac_try) 2>&5
28199 ac_status=$?
28200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28201 (exit $ac_status); }; }; then
28202 echo "*** The test program compiled, but did not run. This usually means"
28203 echo "*** that the run-time linker is not finding GTK or finding the wrong"
28204 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
28205 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
28206 echo "*** to the installed location Also, make sure you have run ldconfig if that"
28207 echo "*** is required on your system"
28208 echo "***"
28209 echo "*** If you have an old version installed, it is best to remove it, although"
28210 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
28211 echo "***"
28212 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
28213 echo "*** came with the system with the command"
28214 echo "***"
28215 echo "*** rpm --erase --nodeps gtk gtk-devel"
28216else
28217 echo "$as_me: failed program was:" >&5
28218sed 's/^/| /' conftest.$ac_ext >&5
28219
28220 echo "*** The test program failed to compile or link. See the file config.log for the"
28221 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
28222 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
28223 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
28224fi
ac1cb8d3
VS
28225rm -f conftest.err conftest.$ac_objext \
28226 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28227 CFLAGS="$ac_save_CFLAGS"
28228 LIBS="$ac_save_LIBS"
28229 fi
28230 fi
28231 GTK_CFLAGS=""
28232 GTK_LIBS=""
28233 :
28234 fi
28235
28236
28237 rm -f conf.gtktest
28238
28239
f34ca037 28240 if test -z "$wx_cv_lib_gtk"; then
a848cd7e
SC
28241
28242# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
28243if test "${with_gtk_prefix+set}" = set; then
28244 withval="$with_gtk_prefix"
28245 gtk_config_prefix="$withval"
28246else
28247 gtk_config_prefix=""
28248fi;
28249
28250# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
28251if test "${with_gtk_exec_prefix+set}" = set; then
28252 withval="$with_gtk_exec_prefix"
28253 gtk_config_exec_prefix="$withval"
28254else
28255 gtk_config_exec_prefix=""
28256fi;
28257# Check whether --enable-gtktest or --disable-gtktest was given.
28258if test "${enable_gtktest+set}" = set; then
28259 enableval="$enable_gtktest"
28260
28261else
28262 enable_gtktest=yes
28263fi;
28264
28265 for module in . $GTK_MODULES
28266 do
28267 case "$module" in
28268 gthread)
28269 gtk_config_args="$gtk_config_args gthread"
28270 ;;
28271 esac
28272 done
28273
28274 if test x$gtk_config_exec_prefix != x ; then
28275 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
28276 if test x${GTK_CONFIG+set} != xset ; then
28277 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
28278 fi
28279 fi
28280 if test x$gtk_config_prefix != x ; then
28281 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
28282 if test x${GTK_CONFIG+set} != xset ; then
28283 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
28284 fi
28285 fi
28286
28287 # Extract the first word of "gtk-config", so it can be a program name with args.
28288set dummy gtk-config; ac_word=$2
28289echo "$as_me:$LINENO: checking for $ac_word" >&5
28290echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28291if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
28292 echo $ECHO_N "(cached) $ECHO_C" >&6
28293else
28294 case $GTK_CONFIG in
28295 [\\/]* | ?:[\\/]*)
28296 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
28297 ;;
28298 *)
28299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28300for as_dir in $PATH
28301do
28302 IFS=$as_save_IFS
28303 test -z "$as_dir" && as_dir=.
28304 for ac_exec_ext in '' $ac_executable_extensions; do
28305 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28306 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28307 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28308 break 2
28309 fi
28310done
28311done
28312
28313 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
28314 ;;
28315esac
28316fi
28317GTK_CONFIG=$ac_cv_path_GTK_CONFIG
28318
28319if test -n "$GTK_CONFIG"; then
28320 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
28321echo "${ECHO_T}$GTK_CONFIG" >&6
28322else
28323 echo "$as_me:$LINENO: result: no" >&5
28324echo "${ECHO_T}no" >&6
28325fi
28326
28327 min_gtk_version=1.2.3
28328 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
28329echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
28330 no_gtk=""
28331 if test "$GTK_CONFIG" = "no" ; then
28332 no_gtk=yes
28333 else
28334 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
28335 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
28336 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
28337 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
28338 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
28339 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
28340 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
28341 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
28342 if test "x$enable_gtktest" = "xyes" ; then
28343 ac_save_CFLAGS="$CFLAGS"
28344 ac_save_LIBS="$LIBS"
28345 CFLAGS="$CFLAGS $GTK_CFLAGS"
28346 LIBS="$GTK_LIBS $LIBS"
28347 rm -f conf.gtktest
28348 if test "$cross_compiling" = yes; then
28349 echo $ac_n "cross compiling; assumed OK... $ac_c"
28350else
28351 cat >conftest.$ac_ext <<_ACEOF
28352/* confdefs.h. */
28353_ACEOF
28354cat confdefs.h >>conftest.$ac_ext
28355cat >>conftest.$ac_ext <<_ACEOF
28356/* end confdefs.h. */
28357
28358#include <gtk/gtk.h>
28359#include <stdio.h>
28360#include <stdlib.h>
28361
28362int
28363main ()
28364{
28365 int major, minor, micro;
28366 char *tmp_version;
28367
28368 system ("touch conf.gtktest");
28369
28370 /* HP/UX 9 (%@#!) writes to sscanf strings */
28371 tmp_version = g_strdup("$min_gtk_version");
28372 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
28373 printf("%s, bad version string\n", "$min_gtk_version");
28374 exit(1);
28375 }
28376
28377 if ((gtk_major_version != $gtk_config_major_version) ||
28378 (gtk_minor_version != $gtk_config_minor_version) ||
28379 (gtk_micro_version != $gtk_config_micro_version))
28380 {
28381 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
28382 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
28383 gtk_major_version, gtk_minor_version, gtk_micro_version);
28384 printf ("*** was found! If gtk-config was correct, then it is best\n");
28385 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
28386 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
28387 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
28388 printf("*** required on your system.\n");
28389 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
28390 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
28391 printf("*** before re-running configure\n");
28392 }
28393#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
28394 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
28395 (gtk_minor_version != GTK_MINOR_VERSION) ||
28396 (gtk_micro_version != GTK_MICRO_VERSION))
28397 {
28398 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
28399 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
28400 printf("*** library (version %d.%d.%d)\n",
28401 gtk_major_version, gtk_minor_version, gtk_micro_version);
28402 }
28403#endif /* defined (GTK_MAJOR_VERSION) ... */
28404 else
28405 {
28406 if ((gtk_major_version > major) ||
28407 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
28408 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
28409 {
28410 return 0;
28411 }
28412 else
28413 {
28414 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
28415 gtk_major_version, gtk_minor_version, gtk_micro_version);
28416 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
28417 major, minor, micro);
28418 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
28419 printf("***\n");
28420 printf("*** If you have already installed a sufficiently new version, this error\n");
28421 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
28422 printf("*** being found. The easiest way to fix this is to remove the old version\n");
28423 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
28424 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
28425 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
28426 printf("*** so that the correct libraries are found at run-time))\n");
28427 }
28428 }
28429 return 1;
28430}
28431
28432_ACEOF
28433rm -f conftest$ac_exeext
28434if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28435 (eval $ac_link) 2>&5
28436 ac_status=$?
28437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28438 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28440 (eval $ac_try) 2>&5
28441 ac_status=$?
28442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28443 (exit $ac_status); }; }; then
28444 :
28445else
28446 echo "$as_me: program exited with status $ac_status" >&5
28447echo "$as_me: failed program was:" >&5
28448sed 's/^/| /' conftest.$ac_ext >&5
28449
28450( exit $ac_status )
28451no_gtk=yes
28452fi
ac1cb8d3 28453rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28454fi
28455 CFLAGS="$ac_save_CFLAGS"
28456 LIBS="$ac_save_LIBS"
28457 fi
28458 fi
28459 if test "x$no_gtk" = x ; then
28460 echo "$as_me:$LINENO: result: yes" >&5
28461echo "${ECHO_T}yes" >&6
28462 wx_cv_lib_gtk=1.2.3
28463 else
28464 echo "$as_me:$LINENO: result: no" >&5
28465echo "${ECHO_T}no" >&6
28466 if test "$GTK_CONFIG" = "no" ; then
28467 echo "*** The gtk-config script installed by GTK could not be found"
28468 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
28469 echo "*** your path, or set the GTK_CONFIG environment variable to the"
28470 echo "*** full path to gtk-config."
28471 else
28472 if test -f conf.gtktest ; then
28473 :
28474 else
28475 echo "*** Could not run GTK test program, checking why..."
28476 CFLAGS="$CFLAGS $GTK_CFLAGS"
28477 LIBS="$LIBS $GTK_LIBS"
28478 cat >conftest.$ac_ext <<_ACEOF
28479/* confdefs.h. */
28480_ACEOF
28481cat confdefs.h >>conftest.$ac_ext
28482cat >>conftest.$ac_ext <<_ACEOF
28483/* end confdefs.h. */
28484
28485#include <gtk/gtk.h>
28486#include <stdio.h>
28487
28488int
28489main ()
28490{
28491 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
28492 ;
28493 return 0;
28494}
28495_ACEOF
28496rm -f conftest.$ac_objext conftest$ac_exeext
28497if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28498 (eval $ac_link) 2>conftest.er1
a848cd7e 28499 ac_status=$?
ac1cb8d3
VS
28500 grep -v '^ *+' conftest.er1 >conftest.err
28501 rm -f conftest.er1
28502 cat conftest.err >&5
a848cd7e
SC
28503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28504 (exit $ac_status); } &&
3ea50042 28505 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28507 (eval $ac_try) 2>&5
28508 ac_status=$?
28509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28510 (exit $ac_status); }; } &&
28511 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28513 (eval $ac_try) 2>&5
28514 ac_status=$?
28515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28516 (exit $ac_status); }; }; then
28517 echo "*** The test program compiled, but did not run. This usually means"
28518 echo "*** that the run-time linker is not finding GTK or finding the wrong"
28519 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
28520 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
28521 echo "*** to the installed location Also, make sure you have run ldconfig if that"
28522 echo "*** is required on your system"
28523 echo "***"
28524 echo "*** If you have an old version installed, it is best to remove it, although"
28525 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
28526 echo "***"
28527 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
28528 echo "*** came with the system with the command"
28529 echo "***"
28530 echo "*** rpm --erase --nodeps gtk gtk-devel"
28531else
28532 echo "$as_me: failed program was:" >&5
28533sed 's/^/| /' conftest.$ac_ext >&5
28534
28535 echo "*** The test program failed to compile or link. See the file config.log for the"
28536 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
28537 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
28538 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
28539fi
ac1cb8d3
VS
28540rm -f conftest.err conftest.$ac_objext \
28541 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28542 CFLAGS="$ac_save_CFLAGS"
28543 LIBS="$ac_save_LIBS"
28544 fi
28545 fi
28546 GTK_CFLAGS=""
28547 GTK_LIBS=""
28548 :
28549 fi
28550
28551
28552 rm -f conf.gtktest
28553
f34ca037 28554 fi
a848cd7e
SC
28555 fi
28556 fi
28557
28558 if test -z "$wx_cv_lib_gtk"; then
28559 wx_cv_lib_gtk=none
28560 else
28561 wx_cv_cflags_gtk=$GTK_CFLAGS
d2822091 28562 wx_cv_libs_gtk=`echo $GTK_LIBS | sed -e 's/ -l[^ ]*cairo[^ ]*//g'`
a848cd7e
SC
28563 fi
28564
28565
28566fi
28567
28568
28569 if test "$gtk_version_cached" = 1; then
28570 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
28571echo "${ECHO_T}$wx_cv_lib_gtk" >&6
28572 fi
28573
28574 case "$wx_cv_lib_gtk" in
28575 2.0) WXGTK20=1
28576 TOOLKIT_VERSION=2
28577 ;;
28578 1.2.7) WXGTK127=1
28579 WXGTK12=1
28580 ;;
28581 1.2.3) WXGTK12=1
28582 ;;
28583 *) { { echo "$as_me:$LINENO: error:
f597b41c
MW
28584The development files for GTK+ were not found. For GTK+ 2, please
28585ensure that pkg-config is in the path and that gtk+-2.0.pc is
28586installed. For GTK+ 1.2 please check that gtk-config is in the path,
28587and that the version is 1.2.3 or above. Also check that the
28588libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
28589--libs' are in the LD_LIBRARY_PATH or equivalent.
a848cd7e
SC
28590 " >&5
28591echo "$as_me: error:
f597b41c
MW
28592The development files for GTK+ were not found. For GTK+ 2, please
28593ensure that pkg-config is in the path and that gtk+-2.0.pc is
28594installed. For GTK+ 1.2 please check that gtk-config is in the path,
28595and that the version is 1.2.3 or above. Also check that the
28596libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
28597--libs' are in the LD_LIBRARY_PATH or equivalent.
a848cd7e
SC
28598 " >&2;}
28599 { (exit 1); exit 1; }; }
28600 ;;
28601 esac
28602
28603 if test "$WXGTK20" = 1; then
6954625c 28604 save_CFLAGS="$CFLAGS"
304205f1 28605 save_LIBS="$LIBS"
6954625c 28606 CFLAGS="$wx_cv_cflags_gtk $CFLAGS"
abc736fd 28607 LIBS="$LIBS $wx_cv_libs_gtk"
304205f1 28608
58e65954
MW
28609 echo "$as_me:$LINENO: checking whether gtk_icon_size_lookup is declared" >&5
28610echo $ECHO_N "checking whether gtk_icon_size_lookup is declared... $ECHO_C" >&6
28611if test "${ac_cv_have_decl_gtk_icon_size_lookup+set}" = set; then
28612 echo $ECHO_N "(cached) $ECHO_C" >&6
28613else
28614 cat >conftest.$ac_ext <<_ACEOF
304205f1
VS
28615/* confdefs.h. */
28616_ACEOF
28617cat confdefs.h >>conftest.$ac_ext
28618cat >>conftest.$ac_ext <<_ACEOF
28619/* end confdefs.h. */
58e65954 28620#include <gtk/gtk.h>
304205f1 28621
d12aef51
VZ
28622int
28623main ()
28624{
58e65954
MW
28625#ifndef gtk_icon_size_lookup
28626 char *p = (char *) gtk_icon_size_lookup;
28627#endif
abc736fd
MW
28628
28629 ;
28630 return 0;
28631}
28632_ACEOF
28633rm -f conftest.$ac_objext
28634if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28635 (eval $ac_compile) 2>conftest.er1
28636 ac_status=$?
28637 grep -v '^ *+' conftest.er1 >conftest.err
28638 rm -f conftest.er1
28639 cat conftest.err >&5
28640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28641 (exit $ac_status); } &&
3ea50042 28642 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
abc736fd
MW
28643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28644 (eval $ac_try) 2>&5
28645 ac_status=$?
28646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28647 (exit $ac_status); }; } &&
28648 { ac_try='test -s conftest.$ac_objext'
28649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28650 (eval $ac_try) 2>&5
28651 ac_status=$?
28652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28653 (exit $ac_status); }; }; then
58e65954 28654 ac_cv_have_decl_gtk_icon_size_lookup=yes
abc736fd
MW
28655else
28656 echo "$as_me: failed program was:" >&5
28657sed 's/^/| /' conftest.$ac_ext >&5
28658
58e65954
MW
28659ac_cv_have_decl_gtk_icon_size_lookup=no
28660fi
28661rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28662fi
28663echo "$as_me:$LINENO: result: $ac_cv_have_decl_gtk_icon_size_lookup" >&5
28664echo "${ECHO_T}$ac_cv_have_decl_gtk_icon_size_lookup" >&6
28665if test $ac_cv_have_decl_gtk_icon_size_lookup = yes; then
abc736fd 28666
58e65954
MW
28667cat >>confdefs.h <<_ACEOF
28668#define HAVE_DECL_GTK_ICON_SIZE_LOOKUP 1
abc736fd
MW
28669_ACEOF
28670
58e65954
MW
28671
28672else
28673 cat >>confdefs.h <<_ACEOF
28674#define HAVE_DECL_GTK_ICON_SIZE_LOOKUP 0
28675_ACEOF
28676
28677cat >>confdefs.h <<\_ACEOF
28678#define NEED_GTK_ICON_SIZE_LOOKUP 1
28679_ACEOF
abc736fd
MW
28680
28681fi
58e65954
MW
28682
28683
abc736fd 28684
e9263684
VZ
28685 echo "$as_me:$LINENO: checking if GTK+ is version >= 2.6" >&5
28686echo $ECHO_N "checking if GTK+ is version >= 2.6... $ECHO_C" >&6
28687 cat >conftest.$ac_ext <<_ACEOF
28688/* confdefs.h. */
28689_ACEOF
28690cat confdefs.h >>conftest.$ac_ext
28691cat >>conftest.$ac_ext <<_ACEOF
28692/* end confdefs.h. */
28693
28694 #include <gtk/gtk.h>
28695
28696int
28697main ()
28698{
28699
28700 #if !GTK_CHECK_VERSION(2,6,0)
28701 Not GTK+ 2.6
28702 #endif
28703
28704 ;
28705 return 0;
28706}
28707_ACEOF
28708rm -f conftest.$ac_objext
28709if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28710 (eval $ac_compile) 2>conftest.er1
28711 ac_status=$?
28712 grep -v '^ *+' conftest.er1 >conftest.err
28713 rm -f conftest.er1
28714 cat conftest.err >&5
28715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28716 (exit $ac_status); } &&
3ea50042 28717 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
e9263684
VZ
28718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28719 (eval $ac_try) 2>&5
28720 ac_status=$?
28721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28722 (exit $ac_status); }; } &&
28723 { ac_try='test -s conftest.$ac_objext'
28724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28725 (eval $ac_try) 2>&5
28726 ac_status=$?
28727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28728 (exit $ac_status); }; }; then
28729
28730 cat >>confdefs.h <<\_ACEOF
28731#define __WXGTK26__ 1
28732_ACEOF
28733
28734 cat >>confdefs.h <<\_ACEOF
28735#define __WXGTK24__ 1
28736_ACEOF
28737
28738 echo "$as_me:$LINENO: result: yes" >&5
28739echo "${ECHO_T}yes" >&6
28740 ac_wxgtk26=1
28741
28742else
28743 echo "$as_me: failed program was:" >&5
28744sed 's/^/| /' conftest.$ac_ext >&5
28745
28746
28747 echo "$as_me:$LINENO: result: no" >&5
28748echo "${ECHO_T}no" >&6
28749 ac_wxgtk26=0
28750
28751fi
28752rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28753
28754 if test "$ac_wxgtk26" = 0; then
9755e73b
VS
28755 echo "$as_me:$LINENO: checking if GTK+ is version >= 2.4" >&5
28756echo $ECHO_N "checking if GTK+ is version >= 2.4... $ECHO_C" >&6
28757 cat >conftest.$ac_ext <<_ACEOF
28758/* confdefs.h. */
28759_ACEOF
28760cat confdefs.h >>conftest.$ac_ext
28761cat >>conftest.$ac_ext <<_ACEOF
28762/* end confdefs.h. */
28763
28764 #include <gtk/gtk.h>
28765
28766int
28767main ()
28768{
28769
28770 #if !GTK_CHECK_VERSION(2,4,0)
04e525a0 28771 Not GTK+ 2.4
9755e73b
VS
28772 #endif
28773
28774 ;
28775 return 0;
28776}
28777_ACEOF
28778rm -f conftest.$ac_objext
28779if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28780 (eval $ac_compile) 2>conftest.er1
28781 ac_status=$?
28782 grep -v '^ *+' conftest.er1 >conftest.err
28783 rm -f conftest.er1
28784 cat conftest.err >&5
28785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28786 (exit $ac_status); } &&
3ea50042 28787 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9755e73b
VS
28788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28789 (eval $ac_try) 2>&5
28790 ac_status=$?
28791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28792 (exit $ac_status); }; } &&
28793 { ac_try='test -s conftest.$ac_objext'
28794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28795 (eval $ac_try) 2>&5
28796 ac_status=$?
28797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28798 (exit $ac_status); }; }; then
28799
28800 cat >>confdefs.h <<\_ACEOF
28801#define __WXGTK24__ 1
28802_ACEOF
28803
28804 echo "$as_me:$LINENO: result: yes" >&5
28805echo "${ECHO_T}yes" >&6
28806
28807else
28808 echo "$as_me: failed program was:" >&5
28809sed 's/^/| /' conftest.$ac_ext >&5
28810
28811
28812 echo "$as_me:$LINENO: result: no" >&5
28813echo "${ECHO_T}no" >&6
28814
28815fi
28816rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e9263684 28817 fi
9755e73b 28818
6954625c 28819 CFLAGS="$save_CFLAGS"
304205f1 28820 LIBS="$save_LIBS"
a848cd7e
SC
28821 else
28822 if test "$wxUSE_UNICODE" = "yes"; then
28823 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
28824echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
28825 wxUSE_UNICODE=no
28826 fi
28827 fi
28828
e56f4f9e
VZ
28829 ac_ext=cc
28830ac_cpp='$CXXCPP $CPPFLAGS'
28831ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28832ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28833ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28834
28835
a848cd7e
SC
28836 if test "$USE_DARWIN" != 1; then
28837
28838for ac_func in poll
28839do
28840as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28841echo "$as_me:$LINENO: checking for $ac_func" >&5
28842echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28843if eval "test \"\${$as_ac_var+set}\" = set"; then
28844 echo $ECHO_N "(cached) $ECHO_C" >&6
28845else
28846 cat >conftest.$ac_ext <<_ACEOF
28847/* confdefs.h. */
28848_ACEOF
28849cat confdefs.h >>conftest.$ac_ext
28850cat >>conftest.$ac_ext <<_ACEOF
28851/* end confdefs.h. */
ac1cb8d3
VS
28852/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28853 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28854#define $ac_func innocuous_$ac_func
28855
a848cd7e
SC
28856/* System header to define __stub macros and hopefully few prototypes,
28857 which can conflict with char $ac_func (); below.
28858 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28859 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 28860
a848cd7e
SC
28861#ifdef __STDC__
28862# include <limits.h>
28863#else
28864# include <assert.h>
28865#endif
ac1cb8d3
VS
28866
28867#undef $ac_func
28868
a848cd7e
SC
28869/* Override any gcc2 internal prototype to avoid an error. */
28870#ifdef __cplusplus
28871extern "C"
28872{
28873#endif
28874/* We use char because int might match the return type of a gcc2
28875 builtin and then its argument prototype would still apply. */
28876char $ac_func ();
28877/* The GNU C library defines this for functions which it implements
28878 to always fail with ENOSYS. Some functions are actually named
28879 something starting with __ and the normal name is an alias. */
28880#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28881choke me
28882#else
28883char (*f) () = $ac_func;
28884#endif
28885#ifdef __cplusplus
28886}
28887#endif
28888
28889int
28890main ()
28891{
28892return f != $ac_func;
28893 ;
28894 return 0;
28895}
28896_ACEOF
28897rm -f conftest.$ac_objext conftest$ac_exeext
28898if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28899 (eval $ac_link) 2>conftest.er1
a848cd7e 28900 ac_status=$?
ac1cb8d3
VS
28901 grep -v '^ *+' conftest.er1 >conftest.err
28902 rm -f conftest.er1
28903 cat conftest.err >&5
a848cd7e
SC
28904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28905 (exit $ac_status); } &&
3ea50042 28906 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28908 (eval $ac_try) 2>&5
28909 ac_status=$?
28910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28911 (exit $ac_status); }; } &&
28912 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28914 (eval $ac_try) 2>&5
28915 ac_status=$?
28916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28917 (exit $ac_status); }; }; then
28918 eval "$as_ac_var=yes"
28919else
28920 echo "$as_me: failed program was:" >&5
28921sed 's/^/| /' conftest.$ac_ext >&5
28922
28923eval "$as_ac_var=no"
28924fi
ac1cb8d3
VS
28925rm -f conftest.err conftest.$ac_objext \
28926 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28927fi
28928echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28929echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28930if test `eval echo '${'$as_ac_var'}'` = yes; then
28931 cat >>confdefs.h <<_ACEOF
28932#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28933_ACEOF
28934
28935fi
28936done
28937
28938 fi
28939
28940 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
28941 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
28942
28943 AFMINSTALL=afminstall
28944 TOOLKIT=GTK
28945 GUIDIST=GTK_DIST
28946
28947 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
28948echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
28949if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
28950 echo $ECHO_N "(cached) $ECHO_C" >&6
28951else
28952 ac_check_lib_save_LIBS=$LIBS
28953LIBS="-lgdk $LIBS"
28954cat >conftest.$ac_ext <<_ACEOF
28955/* confdefs.h. */
28956_ACEOF
28957cat confdefs.h >>conftest.$ac_ext
28958cat >>conftest.$ac_ext <<_ACEOF
28959/* end confdefs.h. */
28960
28961/* Override any gcc2 internal prototype to avoid an error. */
28962#ifdef __cplusplus
28963extern "C"
28964#endif
28965/* We use char because int might match the return type of a gcc2
28966 builtin and then its argument prototype would still apply. */
28967char gdk_im_open ();
28968int
28969main ()
28970{
28971gdk_im_open ();
28972 ;
28973 return 0;
28974}
28975_ACEOF
28976rm -f conftest.$ac_objext conftest$ac_exeext
28977if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28978 (eval $ac_link) 2>conftest.er1
a848cd7e 28979 ac_status=$?
ac1cb8d3
VS
28980 grep -v '^ *+' conftest.er1 >conftest.err
28981 rm -f conftest.er1
28982 cat conftest.err >&5
a848cd7e
SC
28983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28984 (exit $ac_status); } &&
3ea50042 28985 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28987 (eval $ac_try) 2>&5
28988 ac_status=$?
28989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28990 (exit $ac_status); }; } &&
28991 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28993 (eval $ac_try) 2>&5
28994 ac_status=$?
28995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28996 (exit $ac_status); }; }; then
28997 ac_cv_lib_gdk_gdk_im_open=yes
28998else
28999 echo "$as_me: failed program was:" >&5
29000sed 's/^/| /' conftest.$ac_ext >&5
29001
29002ac_cv_lib_gdk_gdk_im_open=no
29003fi
ac1cb8d3
VS
29004rm -f conftest.err conftest.$ac_objext \
29005 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29006LIBS=$ac_check_lib_save_LIBS
29007fi
29008echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
29009echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
29010if test $ac_cv_lib_gdk_gdk_im_open = yes; then
29011 cat >>confdefs.h <<\_ACEOF
29012#define HAVE_XIM 1
29013_ACEOF
29014
29015fi
29016
29017
29018
29019 if test "$wxUSE_GPE" = "yes"; then
29020 echo "$as_me:$LINENO: checking for gpewidget library" >&5
29021echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6
29022
0ad5d837
VZ
29023 ac_find_libraries=
29024 for ac_dir in $SEARCH_LIB;
a848cd7e 29025 do
3eca31dc 29026 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
29027 if test -f "$ac_dir/libgpewidget.$ac_extension"; then
29028 ac_find_libraries=$ac_dir
29029 break 2
29030 fi
29031 done
29032 done
29033
29034 if test "$ac_find_libraries" != "" ; then
29035
0ad5d837 29036 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
29037 ac_path_to_link=""
29038 else
0ad5d837
VZ
29039 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
29040 result=$?
29041 if test $result = 0; then
29042 ac_path_to_link=""
29043 else
29044 ac_path_to_link=" -L$ac_find_libraries"
29045 fi
a848cd7e
SC
29046 fi
29047
29048 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
29049 WXGPE=1
0ad5d837
VZ
29050 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
29051echo "${ECHO_T}found in $ac_find_libraries" >&6
a848cd7e
SC
29052 else
29053 echo "$as_me:$LINENO: result: not found" >&5
29054echo "${ECHO_T}not found" >&6
29055 fi
29056
29057 fi
29058 fi
29059
29060 if test "$wxUSE_MGL" = 1; then
29061 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
29062echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
29063 if test "x$MGL_ROOT" = x ; then
29064 echo "$as_me:$LINENO: result: not found" >&5
29065echo "${ECHO_T}not found" >&6
29066 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
29067echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
29068 { (exit 1); exit 1; }; }
29069 else
29070 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
29071echo "${ECHO_T}$MGL_ROOT" >&6
29072 fi
29073
29074 echo "$as_me:$LINENO: checking for libmgl location" >&5
29075echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
29076 case "${host}" in
29077 *-*-linux* )
29078 if test "x$wxUSE_SHARED" = xyes ; then
29079 mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
29080 else
29081 mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
29082 fi
29083 ;;
29084 *-pc-msdosdjgpp )
29085 mgl_os_candidates="dos32/dj2"
29086 ;;
29087 *)
29088 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
29089echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
29090 { (exit 1); exit 1; }; }
29091 esac
29092
29093 mgl_lib_type=""
29094 mgl_os=""
29095
29096 for mgl_os_i in $mgl_os_candidates ; do
29097 if test "x$mgl_os" = x ; then
29098 if test "$wxUSE_DEBUG_FLAG" = yes ; then
29099 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
29100 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
29101 mgl_lib_type=debug
29102 mgl_os=$mgl_os_i
29103 fi
29104 fi
29105 if test "x$mgl_lib_type" = x ; then
29106 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
29107 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
29108 mgl_lib_type=release
29109 mgl_os=$mgl_os_i
29110 fi
29111 fi
29112 fi
29113 done
29114
29115 if test "x$mgl_os" = x ; then
29116 echo "$as_me:$LINENO: result: not found" >&5
29117echo "${ECHO_T}not found" >&6
29118 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
29119echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
29120 { (exit 1); exit 1; }; }
29121 fi
29122 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
29123echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
29124
29125 wxUSE_UNIVERSAL="yes"
29126
29127 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
29128 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
29129
29130 AFMINSTALL=afminstall
29131 TOOLKIT=MGL
29132 GUIDIST=MGL_DIST
29133 fi
29134
b3c86150
VS
29135 if test "$wxUSE_DFB" = 1; then
29136
29137
29138if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
29139 if test -n "$ac_tool_prefix"; then
29140 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
29141set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
29142echo "$as_me:$LINENO: checking for $ac_word" >&5
29143echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29144if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
29145 echo $ECHO_N "(cached) $ECHO_C" >&6
29146else
29147 case $PKG_CONFIG in
29148 [\\/]* | ?:[\\/]*)
29149 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
29150 ;;
29151 *)
29152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29153for as_dir in $PATH
29154do
29155 IFS=$as_save_IFS
29156 test -z "$as_dir" && as_dir=.
29157 for ac_exec_ext in '' $ac_executable_extensions; do
29158 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29159 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29160 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29161 break 2
29162 fi
29163done
29164done
29165
29166 ;;
29167esac
29168fi
29169PKG_CONFIG=$ac_cv_path_PKG_CONFIG
29170
29171if test -n "$PKG_CONFIG"; then
29172 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
29173echo "${ECHO_T}$PKG_CONFIG" >&6
29174else
29175 echo "$as_me:$LINENO: result: no" >&5
29176echo "${ECHO_T}no" >&6
29177fi
29178
29179fi
29180if test -z "$ac_cv_path_PKG_CONFIG"; then
29181 ac_pt_PKG_CONFIG=$PKG_CONFIG
29182 # Extract the first word of "pkg-config", so it can be a program name with args.
29183set dummy pkg-config; ac_word=$2
29184echo "$as_me:$LINENO: checking for $ac_word" >&5
29185echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29186if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
29187 echo $ECHO_N "(cached) $ECHO_C" >&6
29188else
29189 case $ac_pt_PKG_CONFIG in
29190 [\\/]* | ?:[\\/]*)
29191 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
29192 ;;
29193 *)
29194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29195for as_dir in $PATH
29196do
29197 IFS=$as_save_IFS
29198 test -z "$as_dir" && as_dir=.
29199 for ac_exec_ext in '' $ac_executable_extensions; do
29200 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29201 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29202 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29203 break 2
29204 fi
29205done
29206done
29207
29208 ;;
29209esac
29210fi
29211ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
29212
29213if test -n "$ac_pt_PKG_CONFIG"; then
29214 echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
29215echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
29216else
29217 echo "$as_me:$LINENO: result: no" >&5
29218echo "${ECHO_T}no" >&6
29219fi
29220
29221 PKG_CONFIG=$ac_pt_PKG_CONFIG
29222else
29223 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
29224fi
29225
29226fi
29227if test -n "$PKG_CONFIG"; then
29228 _pkg_min_version=0.9.0
29229 echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
29230echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
29231 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
29232 echo "$as_me:$LINENO: result: yes" >&5
29233echo "${ECHO_T}yes" >&6
29234 else
29235 echo "$as_me:$LINENO: result: no" >&5
29236echo "${ECHO_T}no" >&6
29237 PKG_CONFIG=""
29238 fi
29239
29240fi
29241
29242pkg_failed=no
29243echo "$as_me:$LINENO: checking for DIRECTFB" >&5
29244echo $ECHO_N "checking for DIRECTFB... $ECHO_C" >&6
29245
29246if test -n "$PKG_CONFIG"; then
29247 if test -n "$DIRECTFB_CFLAGS"; then
29248 pkg_cv_DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS"
29249 else
29250 if test -n "$PKG_CONFIG" && \
737d3175
VZ
29251 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.22\"") >&5
29252 ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.22") 2>&5
b3c86150
VS
29253 ac_status=$?
29254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29255 (exit $ac_status); }; then
737d3175 29256 pkg_cv_DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags "directfb >= 0.9.22" 2>/dev/null`
b3c86150
VS
29257else
29258 pkg_failed=yes
29259fi
29260 fi
29261else
29262 pkg_failed=untried
29263fi
29264if test -n "$PKG_CONFIG"; then
29265 if test -n "$DIRECTFB_LIBS"; then
29266 pkg_cv_DIRECTFB_LIBS="$DIRECTFB_LIBS"
29267 else
29268 if test -n "$PKG_CONFIG" && \
737d3175
VZ
29269 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.22\"") >&5
29270 ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.22") 2>&5
b3c86150
VS
29271 ac_status=$?
29272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29273 (exit $ac_status); }; then
737d3175 29274 pkg_cv_DIRECTFB_LIBS=`$PKG_CONFIG --libs "directfb >= 0.9.22" 2>/dev/null`
b3c86150
VS
29275else
29276 pkg_failed=yes
29277fi
29278 fi
29279else
29280 pkg_failed=untried
29281fi
29282
29283
29284
29285if test $pkg_failed = yes; then
29286
29287if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29288 _pkg_short_errors_supported=yes
29289else
29290 _pkg_short_errors_supported=no
29291fi
29292 if test $_pkg_short_errors_supported = yes; then
737d3175 29293 DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "directfb >= 0.9.22"`
b3c86150 29294 else
737d3175 29295 DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "directfb >= 0.9.22"`
b3c86150
VS
29296 fi
29297 # Put the nasty error message in config.log where it belongs
29298 echo "$DIRECTFB_PKG_ERRORS" >&5
29299
29300
29301 { { echo "$as_me:$LINENO: error: DirectFB not found." >&5
29302echo "$as_me: error: DirectFB not found." >&2;}
29303 { (exit 1); exit 1; }; }
29304
29305
29306elif test $pkg_failed = untried; then
29307
29308 { { echo "$as_me:$LINENO: error: DirectFB not found." >&5
29309echo "$as_me: error: DirectFB not found." >&2;}
29310 { (exit 1); exit 1; }; }
29311
29312
29313else
29314 DIRECTFB_CFLAGS=$pkg_cv_DIRECTFB_CFLAGS
29315 DIRECTFB_LIBS=$pkg_cv_DIRECTFB_LIBS
29316 echo "$as_me:$LINENO: result: yes" >&5
29317echo "${ECHO_T}yes" >&6
29318
29319 wxUSE_UNIVERSAL="yes"
29320 TOOLKIT_INCLUDE="$DIRECTFB_CFLAGS"
29321 GUI_TK_LIBRARY="$DIRECTFB_LIBS"
29322 TOOLKIT=DFB
29323 GUIDIST=DFB_DIST
29324
29325fi
29326 fi
29327
a848cd7e
SC
29328 if test "$wxUSE_MICROWIN" = 1; then
29329 echo "$as_me:$LINENO: checking for MicroWindows" >&5
29330echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
29331 if test "x$MICROWINDOWS" = x ; then
29332 echo "$as_me:$LINENO: result: not found" >&5
29333echo "${ECHO_T}not found" >&6
29334 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
29335echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
29336 { (exit 1); exit 1; }; }
29337 else
29338 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
29339echo "${ECHO_T}$MICROWINDOWS" >&6
29340 fi
29341
29342 if test -f $MICROWINDOWS/lib/libmwin.a; then
29343 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
29344echo "${ECHO_T}MicroWindows' libraries found." >&6
29345 else
29346 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
29347echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
29348 { (exit 1); exit 1; }; }
29349 fi
29350
29351 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
29352 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
29353
29354 wxUSE_UNIVERSAL="yes"
29355
29356 AFMINSTALL=afminstall
29357 TOOLKIT=MICROWIN
29358 GUIDIST=MICROWIN_DIST
29359
29360 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
29361 fi
29362
74b84332 29363 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
3ea50042
VZ
29364
29365if test "x$ac_path_x_has_been_run" != xyes; then
29366 echo "$as_me:$LINENO: checking for X" >&5
a848cd7e
SC
29367echo $ECHO_N "checking for X... $ECHO_C" >&6
29368
3ea50042 29369ac_path_x_has_been_run=yes
a848cd7e
SC
29370
29371# Check whether --with-x or --without-x was given.
29372if test "${with_x+set}" = set; then
29373 withval="$with_x"
29374
29375fi;
29376# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
29377if test "x$with_x" = xno; then
29378 # The user explicitly disabled X.
29379 have_x=disabled
29380else
29381 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
29382 # Both variables are already set.
29383 have_x=yes
29384 else
29385 if test "${ac_cv_have_x+set}" = set; then
29386 echo $ECHO_N "(cached) $ECHO_C" >&6
29387else
29388 # One or both of the vars are not set, and there is no cached value.
29389ac_x_includes=no ac_x_libraries=no
29390rm -fr conftest.dir
29391if mkdir conftest.dir; then
29392 cd conftest.dir
29393 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
29394 cat >Imakefile <<'_ACEOF'
29395acfindx:
29396 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
29397_ACEOF
29398 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
29399 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
29400 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
29401 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
29402 for ac_extension in a so sl; do
29403 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
ac1cb8d3
VS
29404 test -f $ac_im_libdir/libX11.$ac_extension; then
29405 ac_im_usrlibdir=$ac_im_libdir; break
a848cd7e
SC
29406 fi
29407 done
29408 # Screen out bogus values from the imake configuration. They are
29409 # bogus both because they are the default anyway, and because
29410 # using them would break gcc on systems where it needs fixed includes.
29411 case $ac_im_incroot in
29412 /usr/include) ;;
29413 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
29414 esac
29415 case $ac_im_usrlibdir in
29416 /usr/lib | /lib) ;;
29417 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
29418 esac
29419 fi
29420 cd ..
29421 rm -fr conftest.dir
29422fi
29423
29424# Standard set of common directories for X headers.
29425# Check X11 before X11Rn because it is often a symlink to the current release.
29426ac_x_header_dirs='
29427/usr/X11/include
29428/usr/X11R6/include
29429/usr/X11R5/include
29430/usr/X11R4/include
29431
29432/usr/include/X11
29433/usr/include/X11R6
29434/usr/include/X11R5
29435/usr/include/X11R4
29436
29437/usr/local/X11/include
29438/usr/local/X11R6/include
29439/usr/local/X11R5/include
29440/usr/local/X11R4/include
29441
29442/usr/local/include/X11
29443/usr/local/include/X11R6
29444/usr/local/include/X11R5
29445/usr/local/include/X11R4
29446
29447/usr/X386/include
29448/usr/x386/include
29449/usr/XFree86/include/X11
29450
29451/usr/include
29452/usr/local/include
29453/usr/unsupported/include
29454/usr/athena/include
29455/usr/local/x11r5/include
29456/usr/lpp/Xamples/include
29457
29458/usr/openwin/include
29459/usr/openwin/share/include'
29460
29461if test "$ac_x_includes" = no; then
3ea50042 29462 # Guess where to find include files, by looking for a specified header file.
a848cd7e
SC
29463 # First, try using that file with no special directory specified.
29464 cat >conftest.$ac_ext <<_ACEOF
29465/* confdefs.h. */
29466_ACEOF
29467cat confdefs.h >>conftest.$ac_ext
29468cat >>conftest.$ac_ext <<_ACEOF
29469/* end confdefs.h. */
3ea50042 29470#include <X11/Xlib.h>
a848cd7e
SC
29471_ACEOF
29472if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29473 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29474 ac_status=$?
29475 grep -v '^ *+' conftest.er1 >conftest.err
29476 rm -f conftest.er1
29477 cat conftest.err >&5
29478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29479 (exit $ac_status); } >/dev/null; then
29480 if test -s conftest.err; then
5d7b7554
VZ
29481 ac_cpp_err=$ac_cxx_preproc_warn_flag
29482 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
29483 else
29484 ac_cpp_err=
29485 fi
29486else
29487 ac_cpp_err=yes
29488fi
29489if test -z "$ac_cpp_err"; then
29490 # We can compile using X headers with no special include directory.
29491ac_x_includes=
29492else
29493 echo "$as_me: failed program was:" >&5
29494sed 's/^/| /' conftest.$ac_ext >&5
29495
29496 for ac_dir in $ac_x_header_dirs; do
3ea50042 29497 if test -r "$ac_dir/X11/Xlib.h"; then
a848cd7e
SC
29498 ac_x_includes=$ac_dir
29499 break
29500 fi
29501done
29502fi
29503rm -f conftest.err conftest.$ac_ext
29504fi # $ac_x_includes = no
29505
29506if test "$ac_x_libraries" = no; then
29507 # Check for the libraries.
29508 # See if we find them without any special options.
29509 # Don't add to $LIBS permanently.
29510 ac_save_LIBS=$LIBS
3ea50042 29511 LIBS="-lX11 $LIBS"
a848cd7e
SC
29512 cat >conftest.$ac_ext <<_ACEOF
29513/* confdefs.h. */
29514_ACEOF
29515cat confdefs.h >>conftest.$ac_ext
29516cat >>conftest.$ac_ext <<_ACEOF
29517/* end confdefs.h. */
3ea50042 29518#include <X11/Xlib.h>
a848cd7e
SC
29519int
29520main ()
29521{
3ea50042 29522XrmInitialize ()
a848cd7e
SC
29523 ;
29524 return 0;
29525}
29526_ACEOF
29527rm -f conftest.$ac_objext conftest$ac_exeext
29528if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29529 (eval $ac_link) 2>conftest.er1
a848cd7e 29530 ac_status=$?
ac1cb8d3
VS
29531 grep -v '^ *+' conftest.er1 >conftest.err
29532 rm -f conftest.er1
29533 cat conftest.err >&5
a848cd7e
SC
29534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29535 (exit $ac_status); } &&
3ea50042 29536 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29538 (eval $ac_try) 2>&5
29539 ac_status=$?
29540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29541 (exit $ac_status); }; } &&
29542 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29544 (eval $ac_try) 2>&5
29545 ac_status=$?
29546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29547 (exit $ac_status); }; }; then
29548 LIBS=$ac_save_LIBS
29549# We can link X programs with no special library path.
29550ac_x_libraries=
29551else
29552 echo "$as_me: failed program was:" >&5
29553sed 's/^/| /' conftest.$ac_ext >&5
29554
29555LIBS=$ac_save_LIBS
29556for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
29557do
29558 # Don't even attempt the hair of trying to link an X program!
29559 for ac_extension in a so sl; do
3ea50042 29560 if test -r $ac_dir/libX11.$ac_extension; then
a848cd7e
SC
29561 ac_x_libraries=$ac_dir
29562 break 2
29563 fi
29564 done
29565done
29566fi
ac1cb8d3
VS
29567rm -f conftest.err conftest.$ac_objext \
29568 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29569fi # $ac_x_libraries = no
29570
29571if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
29572 # Didn't find X anywhere. Cache the known absence of X.
29573 ac_cv_have_x="have_x=no"
29574else
29575 # Record where we found X for the cache.
29576 ac_cv_have_x="have_x=yes \
ac1cb8d3 29577 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
a848cd7e
SC
29578fi
29579fi
29580
29581 fi
29582 eval "$ac_cv_have_x"
29583fi # $with_x != no
29584
29585if test "$have_x" != yes; then
29586 echo "$as_me:$LINENO: result: $have_x" >&5
29587echo "${ECHO_T}$have_x" >&6
29588 no_x=yes
29589else
29590 # If each of the values was on the command line, it overrides each guess.
29591 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
29592 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
29593 # Update the cache value to reflect the command line values.
29594 ac_cv_have_x="have_x=yes \
29595 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
3ea50042
VZ
29596 # It might be that x_includes is empty (headers are found in the
29597 # standard search path. Then output the corresponding message
29598 ac_out_x_includes=$x_includes
29599 test "x$x_includes" = x && ac_out_x_includes="in standard search path"
29600 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
29601echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
a848cd7e
SC
29602fi
29603
3ea50042 29604fi
a848cd7e
SC
29605if test "$no_x" = yes; then
29606 # Not all programs may use this symbol, but it does not hurt to define it.
29607
29608cat >>confdefs.h <<\_ACEOF
29609#define X_DISPLAY_MISSING 1
29610_ACEOF
29611
29612 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
29613else
29614 if test -n "$x_includes"; then
29615 X_CFLAGS="$X_CFLAGS -I$x_includes"
29616 fi
29617
29618 # It would also be nice to do this for all -L options, not just this one.
29619 if test -n "$x_libraries"; then
29620 X_LIBS="$X_LIBS -L$x_libraries"
29621 # For Solaris; some versions of Sun CC require a space after -R and
29622 # others require no space. Words are not sufficient . . . .
29623 case `(uname -sr) 2>/dev/null` in
29624 "SunOS 5"*)
29625 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
29626echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
29627 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
29628 cat >conftest.$ac_ext <<_ACEOF
29629/* confdefs.h. */
29630_ACEOF
29631cat confdefs.h >>conftest.$ac_ext
29632cat >>conftest.$ac_ext <<_ACEOF
29633/* end confdefs.h. */
29634
29635int
29636main ()
29637{
29638
29639 ;
29640 return 0;
29641}
29642_ACEOF
29643rm -f conftest.$ac_objext conftest$ac_exeext
29644if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29645 (eval $ac_link) 2>conftest.er1
a848cd7e 29646 ac_status=$?
ac1cb8d3
VS
29647 grep -v '^ *+' conftest.er1 >conftest.err
29648 rm -f conftest.er1
29649 cat conftest.err >&5
a848cd7e
SC
29650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29651 (exit $ac_status); } &&
3ea50042 29652 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29654 (eval $ac_try) 2>&5
29655 ac_status=$?
29656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29657 (exit $ac_status); }; } &&
29658 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29660 (eval $ac_try) 2>&5
29661 ac_status=$?
29662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29663 (exit $ac_status); }; }; then
29664 ac_R_nospace=yes
29665else
29666 echo "$as_me: failed program was:" >&5
29667sed 's/^/| /' conftest.$ac_ext >&5
29668
29669ac_R_nospace=no
29670fi
ac1cb8d3
VS
29671rm -f conftest.err conftest.$ac_objext \
29672 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29673 if test $ac_R_nospace = yes; then
29674 echo "$as_me:$LINENO: result: no" >&5
29675echo "${ECHO_T}no" >&6
29676 X_LIBS="$X_LIBS -R$x_libraries"
29677 else
29678 LIBS="$ac_xsave_LIBS -R $x_libraries"
29679 cat >conftest.$ac_ext <<_ACEOF
29680/* confdefs.h. */
29681_ACEOF
29682cat confdefs.h >>conftest.$ac_ext
29683cat >>conftest.$ac_ext <<_ACEOF
29684/* end confdefs.h. */
29685
29686int
29687main ()
29688{
29689
29690 ;
29691 return 0;
29692}
29693_ACEOF
29694rm -f conftest.$ac_objext conftest$ac_exeext
29695if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29696 (eval $ac_link) 2>conftest.er1
a848cd7e 29697 ac_status=$?
ac1cb8d3
VS
29698 grep -v '^ *+' conftest.er1 >conftest.err
29699 rm -f conftest.er1
29700 cat conftest.err >&5
a848cd7e
SC
29701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29702 (exit $ac_status); } &&
3ea50042 29703 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29705 (eval $ac_try) 2>&5
29706 ac_status=$?
29707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29708 (exit $ac_status); }; } &&
29709 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29711 (eval $ac_try) 2>&5
29712 ac_status=$?
29713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29714 (exit $ac_status); }; }; then
29715 ac_R_space=yes
29716else
29717 echo "$as_me: failed program was:" >&5
29718sed 's/^/| /' conftest.$ac_ext >&5
29719
29720ac_R_space=no
29721fi
ac1cb8d3
VS
29722rm -f conftest.err conftest.$ac_objext \
29723 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29724 if test $ac_R_space = yes; then
29725 echo "$as_me:$LINENO: result: yes" >&5
29726echo "${ECHO_T}yes" >&6
29727 X_LIBS="$X_LIBS -R $x_libraries"
29728 else
29729 echo "$as_me:$LINENO: result: neither works" >&5
29730echo "${ECHO_T}neither works" >&6
29731 fi
29732 fi
29733 LIBS=$ac_xsave_LIBS
29734 esac
29735 fi
29736
29737 # Check for system-dependent libraries X programs must link with.
29738 # Do this before checking for the system-independent R6 libraries
29739 # (-lICE), since we may need -lsocket or whatever for X linking.
29740
29741 if test "$ISC" = yes; then
29742 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
29743 else
29744 # Martyn Johnson says this is needed for Ultrix, if the X
29745 # libraries were built with DECnet support. And Karl Berry says
29746 # the Alpha needs dnet_stub (dnet does not exist).
29747 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
29748 cat >conftest.$ac_ext <<_ACEOF
29749/* confdefs.h. */
29750_ACEOF
29751cat confdefs.h >>conftest.$ac_ext
29752cat >>conftest.$ac_ext <<_ACEOF
29753/* end confdefs.h. */
29754
29755/* Override any gcc2 internal prototype to avoid an error. */
29756#ifdef __cplusplus
29757extern "C"
29758#endif
29759/* We use char because int might match the return type of a gcc2
29760 builtin and then its argument prototype would still apply. */
29761char XOpenDisplay ();
29762int
29763main ()
29764{
29765XOpenDisplay ();
29766 ;
29767 return 0;
29768}
29769_ACEOF
29770rm -f conftest.$ac_objext conftest$ac_exeext
29771if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29772 (eval $ac_link) 2>conftest.er1
a848cd7e 29773 ac_status=$?
ac1cb8d3
VS
29774 grep -v '^ *+' conftest.er1 >conftest.err
29775 rm -f conftest.er1
29776 cat conftest.err >&5
a848cd7e
SC
29777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29778 (exit $ac_status); } &&
3ea50042 29779 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29781 (eval $ac_try) 2>&5
29782 ac_status=$?
29783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29784 (exit $ac_status); }; } &&
29785 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29787 (eval $ac_try) 2>&5
29788 ac_status=$?
29789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29790 (exit $ac_status); }; }; then
29791 :
29792else
29793 echo "$as_me: failed program was:" >&5
29794sed 's/^/| /' conftest.$ac_ext >&5
29795
29796echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
29797echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
29798if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
29799 echo $ECHO_N "(cached) $ECHO_C" >&6
29800else
29801 ac_check_lib_save_LIBS=$LIBS
29802LIBS="-ldnet $LIBS"
29803cat >conftest.$ac_ext <<_ACEOF
29804/* confdefs.h. */
29805_ACEOF
29806cat confdefs.h >>conftest.$ac_ext
29807cat >>conftest.$ac_ext <<_ACEOF
29808/* end confdefs.h. */
29809
29810/* Override any gcc2 internal prototype to avoid an error. */
29811#ifdef __cplusplus
29812extern "C"
29813#endif
29814/* We use char because int might match the return type of a gcc2
29815 builtin and then its argument prototype would still apply. */
29816char dnet_ntoa ();
29817int
29818main ()
29819{
29820dnet_ntoa ();
29821 ;
29822 return 0;
29823}
29824_ACEOF
29825rm -f conftest.$ac_objext conftest$ac_exeext
29826if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29827 (eval $ac_link) 2>conftest.er1
a848cd7e 29828 ac_status=$?
ac1cb8d3
VS
29829 grep -v '^ *+' conftest.er1 >conftest.err
29830 rm -f conftest.er1
29831 cat conftest.err >&5
a848cd7e
SC
29832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29833 (exit $ac_status); } &&
3ea50042 29834 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29836 (eval $ac_try) 2>&5
29837 ac_status=$?
29838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29839 (exit $ac_status); }; } &&
29840 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29842 (eval $ac_try) 2>&5
29843 ac_status=$?
29844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29845 (exit $ac_status); }; }; then
29846 ac_cv_lib_dnet_dnet_ntoa=yes
29847else
29848 echo "$as_me: failed program was:" >&5
29849sed 's/^/| /' conftest.$ac_ext >&5
29850
29851ac_cv_lib_dnet_dnet_ntoa=no
29852fi
ac1cb8d3
VS
29853rm -f conftest.err conftest.$ac_objext \
29854 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29855LIBS=$ac_check_lib_save_LIBS
29856fi
29857echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
29858echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
29859if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
29860 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
29861fi
29862
29863 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
29864 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
29865echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
29866if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
29867 echo $ECHO_N "(cached) $ECHO_C" >&6
29868else
29869 ac_check_lib_save_LIBS=$LIBS
29870LIBS="-ldnet_stub $LIBS"
29871cat >conftest.$ac_ext <<_ACEOF
29872/* confdefs.h. */
29873_ACEOF
29874cat confdefs.h >>conftest.$ac_ext
29875cat >>conftest.$ac_ext <<_ACEOF
29876/* end confdefs.h. */
29877
29878/* Override any gcc2 internal prototype to avoid an error. */
29879#ifdef __cplusplus
29880extern "C"
29881#endif
29882/* We use char because int might match the return type of a gcc2
29883 builtin and then its argument prototype would still apply. */
29884char dnet_ntoa ();
29885int
29886main ()
29887{
29888dnet_ntoa ();
29889 ;
29890 return 0;
29891}
29892_ACEOF
29893rm -f conftest.$ac_objext conftest$ac_exeext
29894if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29895 (eval $ac_link) 2>conftest.er1
a848cd7e 29896 ac_status=$?
ac1cb8d3
VS
29897 grep -v '^ *+' conftest.er1 >conftest.err
29898 rm -f conftest.er1
29899 cat conftest.err >&5
a848cd7e
SC
29900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29901 (exit $ac_status); } &&
3ea50042 29902 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29904 (eval $ac_try) 2>&5
29905 ac_status=$?
29906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29907 (exit $ac_status); }; } &&
29908 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29910 (eval $ac_try) 2>&5
29911 ac_status=$?
29912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29913 (exit $ac_status); }; }; then
29914 ac_cv_lib_dnet_stub_dnet_ntoa=yes
29915else
29916 echo "$as_me: failed program was:" >&5
29917sed 's/^/| /' conftest.$ac_ext >&5
29918
29919ac_cv_lib_dnet_stub_dnet_ntoa=no
29920fi
ac1cb8d3
VS
29921rm -f conftest.err conftest.$ac_objext \
29922 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29923LIBS=$ac_check_lib_save_LIBS
29924fi
29925echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
29926echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
29927if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
29928 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
29929fi
29930
29931 fi
29932fi
ac1cb8d3
VS
29933rm -f conftest.err conftest.$ac_objext \
29934 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29935 LIBS="$ac_xsave_LIBS"
29936
29937 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
29938 # to get the SysV transport functions.
29939 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
29940 # needs -lnsl.
29941 # The nsl library prevents programs from opening the X display
29942 # on Irix 5.2, according to T.E. Dickey.
29943 # The functions gethostbyname, getservbyname, and inet_addr are
29944 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
29945 echo "$as_me:$LINENO: checking for gethostbyname" >&5
29946echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
29947if test "${ac_cv_func_gethostbyname+set}" = set; then
29948 echo $ECHO_N "(cached) $ECHO_C" >&6
29949else
29950 cat >conftest.$ac_ext <<_ACEOF
29951/* confdefs.h. */
29952_ACEOF
29953cat confdefs.h >>conftest.$ac_ext
29954cat >>conftest.$ac_ext <<_ACEOF
29955/* end confdefs.h. */
ac1cb8d3
VS
29956/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
29957 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29958#define gethostbyname innocuous_gethostbyname
29959
a848cd7e
SC
29960/* System header to define __stub macros and hopefully few prototypes,
29961 which can conflict with char gethostbyname (); below.
29962 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29963 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29964
a848cd7e
SC
29965#ifdef __STDC__
29966# include <limits.h>
29967#else
29968# include <assert.h>
29969#endif
ac1cb8d3
VS
29970
29971#undef gethostbyname
29972
a848cd7e
SC
29973/* Override any gcc2 internal prototype to avoid an error. */
29974#ifdef __cplusplus
29975extern "C"
29976{
29977#endif
29978/* We use char because int might match the return type of a gcc2
29979 builtin and then its argument prototype would still apply. */
29980char gethostbyname ();
29981/* The GNU C library defines this for functions which it implements
29982 to always fail with ENOSYS. Some functions are actually named
29983 something starting with __ and the normal name is an alias. */
29984#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
29985choke me
29986#else
29987char (*f) () = gethostbyname;
29988#endif
29989#ifdef __cplusplus
29990}
29991#endif
29992
29993int
29994main ()
29995{
29996return f != gethostbyname;
29997 ;
29998 return 0;
29999}
30000_ACEOF
30001rm -f conftest.$ac_objext conftest$ac_exeext
30002if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30003 (eval $ac_link) 2>conftest.er1
a848cd7e 30004 ac_status=$?
ac1cb8d3
VS
30005 grep -v '^ *+' conftest.er1 >conftest.err
30006 rm -f conftest.er1
30007 cat conftest.err >&5
a848cd7e
SC
30008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30009 (exit $ac_status); } &&
3ea50042 30010 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30012 (eval $ac_try) 2>&5
30013 ac_status=$?
30014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30015 (exit $ac_status); }; } &&
30016 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30018 (eval $ac_try) 2>&5
30019 ac_status=$?
30020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30021 (exit $ac_status); }; }; then
30022 ac_cv_func_gethostbyname=yes
30023else
30024 echo "$as_me: failed program was:" >&5
30025sed 's/^/| /' conftest.$ac_ext >&5
30026
30027ac_cv_func_gethostbyname=no
30028fi
ac1cb8d3
VS
30029rm -f conftest.err conftest.$ac_objext \
30030 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30031fi
30032echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
30033echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
30034
30035 if test $ac_cv_func_gethostbyname = no; then
30036 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
30037echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
30038if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
30039 echo $ECHO_N "(cached) $ECHO_C" >&6
30040else
30041 ac_check_lib_save_LIBS=$LIBS
30042LIBS="-lnsl $LIBS"
30043cat >conftest.$ac_ext <<_ACEOF
30044/* confdefs.h. */
30045_ACEOF
30046cat confdefs.h >>conftest.$ac_ext
30047cat >>conftest.$ac_ext <<_ACEOF
30048/* end confdefs.h. */
30049
30050/* Override any gcc2 internal prototype to avoid an error. */
30051#ifdef __cplusplus
30052extern "C"
30053#endif
30054/* We use char because int might match the return type of a gcc2
30055 builtin and then its argument prototype would still apply. */
30056char gethostbyname ();
30057int
30058main ()
30059{
30060gethostbyname ();
30061 ;
30062 return 0;
30063}
30064_ACEOF
30065rm -f conftest.$ac_objext conftest$ac_exeext
30066if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3
VS
30067 (eval $ac_link) 2>conftest.er1
30068 ac_status=$?
30069 grep -v '^ *+' conftest.er1 >conftest.err
30070 rm -f conftest.er1
30071 cat conftest.err >&5
30072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30073 (exit $ac_status); } &&
3ea50042 30074 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30076 (eval $ac_try) 2>&5
30077 ac_status=$?
30078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30079 (exit $ac_status); }; } &&
30080 { ac_try='test -s conftest$ac_exeext'
30081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30082 (eval $ac_try) 2>&5
30083 ac_status=$?
30084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30085 (exit $ac_status); }; }; then
30086 ac_cv_lib_nsl_gethostbyname=yes
30087else
30088 echo "$as_me: failed program was:" >&5
30089sed 's/^/| /' conftest.$ac_ext >&5
30090
30091ac_cv_lib_nsl_gethostbyname=no
30092fi
30093rm -f conftest.err conftest.$ac_objext \
30094 conftest$ac_exeext conftest.$ac_ext
30095LIBS=$ac_check_lib_save_LIBS
30096fi
30097echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
30098echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
30099if test $ac_cv_lib_nsl_gethostbyname = yes; then
30100 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
30101fi
30102
30103 if test $ac_cv_lib_nsl_gethostbyname = no; then
30104 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
30105echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
30106if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
30107 echo $ECHO_N "(cached) $ECHO_C" >&6
30108else
30109 ac_check_lib_save_LIBS=$LIBS
30110LIBS="-lbsd $LIBS"
30111cat >conftest.$ac_ext <<_ACEOF
30112/* confdefs.h. */
30113_ACEOF
30114cat confdefs.h >>conftest.$ac_ext
30115cat >>conftest.$ac_ext <<_ACEOF
30116/* end confdefs.h. */
30117
30118/* Override any gcc2 internal prototype to avoid an error. */
30119#ifdef __cplusplus
30120extern "C"
30121#endif
30122/* We use char because int might match the return type of a gcc2
30123 builtin and then its argument prototype would still apply. */
30124char gethostbyname ();
30125int
30126main ()
30127{
30128gethostbyname ();
30129 ;
30130 return 0;
30131}
30132_ACEOF
30133rm -f conftest.$ac_objext conftest$ac_exeext
30134if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30135 (eval $ac_link) 2>conftest.er1
a848cd7e 30136 ac_status=$?
ac1cb8d3
VS
30137 grep -v '^ *+' conftest.er1 >conftest.err
30138 rm -f conftest.er1
30139 cat conftest.err >&5
a848cd7e
SC
30140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30141 (exit $ac_status); } &&
3ea50042 30142 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
30143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30144 (eval $ac_try) 2>&5
30145 ac_status=$?
30146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ac1cb8d3
VS
30147 (exit $ac_status); }; } &&
30148 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30150 (eval $ac_try) 2>&5
30151 ac_status=$?
30152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30153 (exit $ac_status); }; }; then
30154 ac_cv_lib_bsd_gethostbyname=yes
30155else
30156 echo "$as_me: failed program was:" >&5
30157sed 's/^/| /' conftest.$ac_ext >&5
30158
30159ac_cv_lib_bsd_gethostbyname=no
30160fi
ac1cb8d3
VS
30161rm -f conftest.err conftest.$ac_objext \
30162 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30163LIBS=$ac_check_lib_save_LIBS
30164fi
30165echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
30166echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
30167if test $ac_cv_lib_bsd_gethostbyname = yes; then
30168 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
30169fi
30170
30171 fi
30172 fi
30173
30174 # lieder@skyler.mavd.honeywell.com says without -lsocket,
30175 # socket/setsockopt and other routines are undefined under SCO ODT
30176 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
30177 # on later versions), says Simon Leinen: it contains gethostby*
30178 # variants that don't use the name server (or something). -lsocket
30179 # must be given before -lnsl if both are needed. We assume that
30180 # if connect needs -lnsl, so does gethostbyname.
30181 echo "$as_me:$LINENO: checking for connect" >&5
30182echo $ECHO_N "checking for connect... $ECHO_C" >&6
30183if test "${ac_cv_func_connect+set}" = set; then
30184 echo $ECHO_N "(cached) $ECHO_C" >&6
30185else
30186 cat >conftest.$ac_ext <<_ACEOF
30187/* confdefs.h. */
30188_ACEOF
30189cat confdefs.h >>conftest.$ac_ext
30190cat >>conftest.$ac_ext <<_ACEOF
30191/* end confdefs.h. */
ac1cb8d3
VS
30192/* Define connect to an innocuous variant, in case <limits.h> declares connect.
30193 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30194#define connect innocuous_connect
30195
a848cd7e
SC
30196/* System header to define __stub macros and hopefully few prototypes,
30197 which can conflict with char connect (); below.
30198 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30199 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30200
a848cd7e
SC
30201#ifdef __STDC__
30202# include <limits.h>
30203#else
30204# include <assert.h>
30205#endif
ac1cb8d3
VS
30206
30207#undef connect
30208
a848cd7e
SC
30209/* Override any gcc2 internal prototype to avoid an error. */
30210#ifdef __cplusplus
30211extern "C"
30212{
30213#endif
30214/* We use char because int might match the return type of a gcc2
30215 builtin and then its argument prototype would still apply. */
30216char connect ();
30217/* The GNU C library defines this for functions which it implements
30218 to always fail with ENOSYS. Some functions are actually named
30219 something starting with __ and the normal name is an alias. */
30220#if defined (__stub_connect) || defined (__stub___connect)
30221choke me
30222#else
30223char (*f) () = connect;
30224#endif
30225#ifdef __cplusplus
30226}
30227#endif
30228
30229int
30230main ()
30231{
30232return f != connect;
30233 ;
30234 return 0;
30235}
30236_ACEOF
30237rm -f conftest.$ac_objext conftest$ac_exeext
30238if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30239 (eval $ac_link) 2>conftest.er1
a848cd7e 30240 ac_status=$?
ac1cb8d3
VS
30241 grep -v '^ *+' conftest.er1 >conftest.err
30242 rm -f conftest.er1
30243 cat conftest.err >&5
a848cd7e
SC
30244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30245 (exit $ac_status); } &&
3ea50042 30246 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30248 (eval $ac_try) 2>&5
30249 ac_status=$?
30250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30251 (exit $ac_status); }; } &&
30252 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30254 (eval $ac_try) 2>&5
30255 ac_status=$?
30256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30257 (exit $ac_status); }; }; then
30258 ac_cv_func_connect=yes
30259else
30260 echo "$as_me: failed program was:" >&5
30261sed 's/^/| /' conftest.$ac_ext >&5
30262
30263ac_cv_func_connect=no
30264fi
ac1cb8d3
VS
30265rm -f conftest.err conftest.$ac_objext \
30266 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30267fi
30268echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
30269echo "${ECHO_T}$ac_cv_func_connect" >&6
30270
30271 if test $ac_cv_func_connect = no; then
30272 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
30273echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
30274if test "${ac_cv_lib_socket_connect+set}" = set; then
30275 echo $ECHO_N "(cached) $ECHO_C" >&6
30276else
30277 ac_check_lib_save_LIBS=$LIBS
30278LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
30279cat >conftest.$ac_ext <<_ACEOF
30280/* confdefs.h. */
30281_ACEOF
30282cat confdefs.h >>conftest.$ac_ext
30283cat >>conftest.$ac_ext <<_ACEOF
30284/* end confdefs.h. */
30285
30286/* Override any gcc2 internal prototype to avoid an error. */
30287#ifdef __cplusplus
30288extern "C"
30289#endif
30290/* We use char because int might match the return type of a gcc2
30291 builtin and then its argument prototype would still apply. */
30292char connect ();
30293int
30294main ()
30295{
30296connect ();
30297 ;
30298 return 0;
30299}
30300_ACEOF
30301rm -f conftest.$ac_objext conftest$ac_exeext
30302if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30303 (eval $ac_link) 2>conftest.er1
a848cd7e 30304 ac_status=$?
ac1cb8d3
VS
30305 grep -v '^ *+' conftest.er1 >conftest.err
30306 rm -f conftest.er1
30307 cat conftest.err >&5
a848cd7e
SC
30308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30309 (exit $ac_status); } &&
3ea50042 30310 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30312 (eval $ac_try) 2>&5
30313 ac_status=$?
30314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30315 (exit $ac_status); }; } &&
30316 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30318 (eval $ac_try) 2>&5
30319 ac_status=$?
30320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30321 (exit $ac_status); }; }; then
30322 ac_cv_lib_socket_connect=yes
30323else
30324 echo "$as_me: failed program was:" >&5
30325sed 's/^/| /' conftest.$ac_ext >&5
30326
30327ac_cv_lib_socket_connect=no
30328fi
ac1cb8d3
VS
30329rm -f conftest.err conftest.$ac_objext \
30330 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30331LIBS=$ac_check_lib_save_LIBS
30332fi
30333echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
30334echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
30335if test $ac_cv_lib_socket_connect = yes; then
30336 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
30337fi
30338
30339 fi
30340
30341 # Guillermo Gomez says -lposix is necessary on A/UX.
30342 echo "$as_me:$LINENO: checking for remove" >&5
30343echo $ECHO_N "checking for remove... $ECHO_C" >&6
30344if test "${ac_cv_func_remove+set}" = set; then
30345 echo $ECHO_N "(cached) $ECHO_C" >&6
30346else
30347 cat >conftest.$ac_ext <<_ACEOF
30348/* confdefs.h. */
30349_ACEOF
30350cat confdefs.h >>conftest.$ac_ext
30351cat >>conftest.$ac_ext <<_ACEOF
30352/* end confdefs.h. */
ac1cb8d3
VS
30353/* Define remove to an innocuous variant, in case <limits.h> declares remove.
30354 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30355#define remove innocuous_remove
30356
a848cd7e
SC
30357/* System header to define __stub macros and hopefully few prototypes,
30358 which can conflict with char remove (); below.
30359 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30360 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30361
a848cd7e
SC
30362#ifdef __STDC__
30363# include <limits.h>
30364#else
30365# include <assert.h>
30366#endif
ac1cb8d3
VS
30367
30368#undef remove
30369
a848cd7e
SC
30370/* Override any gcc2 internal prototype to avoid an error. */
30371#ifdef __cplusplus
30372extern "C"
30373{
30374#endif
30375/* We use char because int might match the return type of a gcc2
30376 builtin and then its argument prototype would still apply. */
30377char remove ();
30378/* The GNU C library defines this for functions which it implements
30379 to always fail with ENOSYS. Some functions are actually named
30380 something starting with __ and the normal name is an alias. */
30381#if defined (__stub_remove) || defined (__stub___remove)
30382choke me
30383#else
30384char (*f) () = remove;
30385#endif
30386#ifdef __cplusplus
30387}
30388#endif
30389
30390int
30391main ()
30392{
30393return f != remove;
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); } &&
3ea50042 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_func_remove=yes
30420else
30421 echo "$as_me: failed program was:" >&5
30422sed 's/^/| /' conftest.$ac_ext >&5
30423
30424ac_cv_func_remove=no
30425fi
ac1cb8d3
VS
30426rm -f conftest.err conftest.$ac_objext \
30427 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30428fi
30429echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
30430echo "${ECHO_T}$ac_cv_func_remove" >&6
30431
30432 if test $ac_cv_func_remove = no; then
30433 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
30434echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
30435if test "${ac_cv_lib_posix_remove+set}" = set; then
30436 echo $ECHO_N "(cached) $ECHO_C" >&6
30437else
30438 ac_check_lib_save_LIBS=$LIBS
30439LIBS="-lposix $LIBS"
30440cat >conftest.$ac_ext <<_ACEOF
30441/* confdefs.h. */
30442_ACEOF
30443cat confdefs.h >>conftest.$ac_ext
30444cat >>conftest.$ac_ext <<_ACEOF
30445/* end confdefs.h. */
30446
30447/* Override any gcc2 internal prototype to avoid an error. */
30448#ifdef __cplusplus
30449extern "C"
30450#endif
30451/* We use char because int might match the return type of a gcc2
30452 builtin and then its argument prototype would still apply. */
30453char remove ();
30454int
30455main ()
30456{
30457remove ();
30458 ;
30459 return 0;
30460}
30461_ACEOF
30462rm -f conftest.$ac_objext conftest$ac_exeext
30463if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30464 (eval $ac_link) 2>conftest.er1
a848cd7e 30465 ac_status=$?
ac1cb8d3
VS
30466 grep -v '^ *+' conftest.er1 >conftest.err
30467 rm -f conftest.er1
30468 cat conftest.err >&5
a848cd7e
SC
30469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30470 (exit $ac_status); } &&
3ea50042 30471 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30473 (eval $ac_try) 2>&5
30474 ac_status=$?
30475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30476 (exit $ac_status); }; } &&
30477 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30479 (eval $ac_try) 2>&5
30480 ac_status=$?
30481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30482 (exit $ac_status); }; }; then
30483 ac_cv_lib_posix_remove=yes
30484else
30485 echo "$as_me: failed program was:" >&5
30486sed 's/^/| /' conftest.$ac_ext >&5
30487
30488ac_cv_lib_posix_remove=no
30489fi
ac1cb8d3
VS
30490rm -f conftest.err conftest.$ac_objext \
30491 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30492LIBS=$ac_check_lib_save_LIBS
30493fi
30494echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
30495echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
30496if test $ac_cv_lib_posix_remove = yes; then
30497 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
30498fi
30499
30500 fi
30501
30502 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
30503 echo "$as_me:$LINENO: checking for shmat" >&5
30504echo $ECHO_N "checking for shmat... $ECHO_C" >&6
30505if test "${ac_cv_func_shmat+set}" = set; then
30506 echo $ECHO_N "(cached) $ECHO_C" >&6
30507else
30508 cat >conftest.$ac_ext <<_ACEOF
30509/* confdefs.h. */
30510_ACEOF
30511cat confdefs.h >>conftest.$ac_ext
30512cat >>conftest.$ac_ext <<_ACEOF
30513/* end confdefs.h. */
ac1cb8d3
VS
30514/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
30515 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30516#define shmat innocuous_shmat
30517
a848cd7e
SC
30518/* System header to define __stub macros and hopefully few prototypes,
30519 which can conflict with char shmat (); below.
30520 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30521 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30522
a848cd7e
SC
30523#ifdef __STDC__
30524# include <limits.h>
30525#else
30526# include <assert.h>
30527#endif
ac1cb8d3
VS
30528
30529#undef shmat
30530
a848cd7e
SC
30531/* Override any gcc2 internal prototype to avoid an error. */
30532#ifdef __cplusplus
30533extern "C"
30534{
30535#endif
30536/* We use char because int might match the return type of a gcc2
30537 builtin and then its argument prototype would still apply. */
30538char shmat ();
30539/* The GNU C library defines this for functions which it implements
30540 to always fail with ENOSYS. Some functions are actually named
30541 something starting with __ and the normal name is an alias. */
30542#if defined (__stub_shmat) || defined (__stub___shmat)
30543choke me
30544#else
30545char (*f) () = shmat;
30546#endif
30547#ifdef __cplusplus
30548}
30549#endif
30550
30551int
30552main ()
30553{
30554return f != shmat;
30555 ;
30556 return 0;
30557}
30558_ACEOF
30559rm -f conftest.$ac_objext conftest$ac_exeext
30560if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30561 (eval $ac_link) 2>conftest.er1
a848cd7e 30562 ac_status=$?
ac1cb8d3
VS
30563 grep -v '^ *+' conftest.er1 >conftest.err
30564 rm -f conftest.er1
30565 cat conftest.err >&5
a848cd7e
SC
30566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30567 (exit $ac_status); } &&
3ea50042 30568 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30570 (eval $ac_try) 2>&5
30571 ac_status=$?
30572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30573 (exit $ac_status); }; } &&
30574 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30576 (eval $ac_try) 2>&5
30577 ac_status=$?
30578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30579 (exit $ac_status); }; }; then
30580 ac_cv_func_shmat=yes
30581else
30582 echo "$as_me: failed program was:" >&5
30583sed 's/^/| /' conftest.$ac_ext >&5
30584
30585ac_cv_func_shmat=no
30586fi
ac1cb8d3
VS
30587rm -f conftest.err conftest.$ac_objext \
30588 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30589fi
30590echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
30591echo "${ECHO_T}$ac_cv_func_shmat" >&6
30592
30593 if test $ac_cv_func_shmat = no; then
30594 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
30595echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
30596if test "${ac_cv_lib_ipc_shmat+set}" = set; then
30597 echo $ECHO_N "(cached) $ECHO_C" >&6
30598else
30599 ac_check_lib_save_LIBS=$LIBS
30600LIBS="-lipc $LIBS"
30601cat >conftest.$ac_ext <<_ACEOF
30602/* confdefs.h. */
30603_ACEOF
30604cat confdefs.h >>conftest.$ac_ext
30605cat >>conftest.$ac_ext <<_ACEOF
30606/* end confdefs.h. */
30607
30608/* Override any gcc2 internal prototype to avoid an error. */
30609#ifdef __cplusplus
30610extern "C"
30611#endif
30612/* We use char because int might match the return type of a gcc2
30613 builtin and then its argument prototype would still apply. */
30614char shmat ();
30615int
30616main ()
30617{
30618shmat ();
30619 ;
30620 return 0;
30621}
30622_ACEOF
30623rm -f conftest.$ac_objext conftest$ac_exeext
30624if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30625 (eval $ac_link) 2>conftest.er1
a848cd7e 30626 ac_status=$?
ac1cb8d3
VS
30627 grep -v '^ *+' conftest.er1 >conftest.err
30628 rm -f conftest.er1
30629 cat conftest.err >&5
a848cd7e
SC
30630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30631 (exit $ac_status); } &&
3ea50042 30632 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30634 (eval $ac_try) 2>&5
30635 ac_status=$?
30636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30637 (exit $ac_status); }; } &&
30638 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30640 (eval $ac_try) 2>&5
30641 ac_status=$?
30642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30643 (exit $ac_status); }; }; then
30644 ac_cv_lib_ipc_shmat=yes
30645else
30646 echo "$as_me: failed program was:" >&5
30647sed 's/^/| /' conftest.$ac_ext >&5
30648
30649ac_cv_lib_ipc_shmat=no
30650fi
ac1cb8d3
VS
30651rm -f conftest.err conftest.$ac_objext \
30652 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30653LIBS=$ac_check_lib_save_LIBS
30654fi
30655echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
30656echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
30657if test $ac_cv_lib_ipc_shmat = yes; then
30658 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
30659fi
30660
30661 fi
30662 fi
30663
30664 # Check for libraries that X11R6 Xt/Xaw programs need.
30665 ac_save_LDFLAGS=$LDFLAGS
30666 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
30667 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
30668 # check for ICE first), but we must link in the order -lSM -lICE or
30669 # we get undefined symbols. So assume we have SM if we have ICE.
30670 # These have to be linked with before -lX11, unlike the other
30671 # libraries we check for below, so use a different variable.
30672 # John Interrante, Karl Berry
30673 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
30674echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
30675if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
30676 echo $ECHO_N "(cached) $ECHO_C" >&6
30677else
30678 ac_check_lib_save_LIBS=$LIBS
30679LIBS="-lICE $X_EXTRA_LIBS $LIBS"
30680cat >conftest.$ac_ext <<_ACEOF
30681/* confdefs.h. */
30682_ACEOF
30683cat confdefs.h >>conftest.$ac_ext
30684cat >>conftest.$ac_ext <<_ACEOF
30685/* end confdefs.h. */
30686
30687/* Override any gcc2 internal prototype to avoid an error. */
30688#ifdef __cplusplus
30689extern "C"
30690#endif
30691/* We use char because int might match the return type of a gcc2
30692 builtin and then its argument prototype would still apply. */
30693char IceConnectionNumber ();
30694int
30695main ()
30696{
30697IceConnectionNumber ();
30698 ;
30699 return 0;
30700}
30701_ACEOF
30702rm -f conftest.$ac_objext conftest$ac_exeext
30703if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30704 (eval $ac_link) 2>conftest.er1
a848cd7e 30705 ac_status=$?
ac1cb8d3
VS
30706 grep -v '^ *+' conftest.er1 >conftest.err
30707 rm -f conftest.er1
30708 cat conftest.err >&5
a848cd7e
SC
30709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30710 (exit $ac_status); } &&
3ea50042 30711 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30713 (eval $ac_try) 2>&5
30714 ac_status=$?
30715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30716 (exit $ac_status); }; } &&
30717 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30719 (eval $ac_try) 2>&5
30720 ac_status=$?
30721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30722 (exit $ac_status); }; }; then
30723 ac_cv_lib_ICE_IceConnectionNumber=yes
30724else
30725 echo "$as_me: failed program was:" >&5
30726sed 's/^/| /' conftest.$ac_ext >&5
30727
30728ac_cv_lib_ICE_IceConnectionNumber=no
30729fi
ac1cb8d3
VS
30730rm -f conftest.err conftest.$ac_objext \
30731 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30732LIBS=$ac_check_lib_save_LIBS
30733fi
30734echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
30735echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
30736if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
30737 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
30738fi
30739
30740 LDFLAGS=$ac_save_LDFLAGS
30741
30742fi
30743
30744
30745 if test "$no_x" = "yes"; then
89d90d6d
VZ
30746 { { echo "$as_me:$LINENO: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&5
30747echo "$as_me: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&2;}
30748 { (exit 1); exit 1; }; }
a848cd7e
SC
30749 fi
30750
74b84332
VS
30751 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
30752 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
a848cd7e
SC
30753 AFMINSTALL=afminstall
30754 COMPILED_X_PROGRAM=0
30755
74b84332
VS
30756 fi
30757
30758 if test "$wxUSE_X11" = 1; then
a848cd7e
SC
30759 if test "$wxUSE_NANOX" = "yes"; then
30760 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
30761echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
30762 if test "x$MICROWIN" = x ; then
30763 echo "$as_me:$LINENO: result: not found" >&5
30764echo "${ECHO_T}not found" >&6
30765 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
30766echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
30767 { (exit 1); exit 1; }; }
30768 else
30769 echo "$as_me:$LINENO: result: $MICROWIN" >&5
30770echo "${ECHO_T}$MICROWIN" >&6
30771 cat >>confdefs.h <<\_ACEOF
30772#define wxUSE_NANOX 1
30773_ACEOF
30774
30775 fi
30776 fi
30777
30778 if test "$wxUSE_UNICODE" = "yes"; then
30779
3ecd9f92
MW
30780pkg_failed=no
30781echo "$as_me:$LINENO: checking for PANGOX" >&5
30782echo $ECHO_N "checking for PANGOX... $ECHO_C" >&6
a848cd7e 30783
3ecd9f92
MW
30784if test -n "$PKG_CONFIG"; then
30785 if test -n "$PANGOX_CFLAGS"; then
30786 pkg_cv_PANGOX_CFLAGS="$PANGOX_CFLAGS"
30787 else
30788 if test -n "$PKG_CONFIG" && \
30789 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5
30790 ($PKG_CONFIG --exists --print-errors "pangox") 2>&5
30791 ac_status=$?
30792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30793 (exit $ac_status); }; then
30794 pkg_cv_PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox" 2>/dev/null`
30795else
30796 pkg_failed=yes
30797fi
30798 fi
30799else
30800 pkg_failed=untried
30801fi
30802if test -n "$PKG_CONFIG"; then
30803 if test -n "$PANGOX_LIBS"; then
30804 pkg_cv_PANGOX_LIBS="$PANGOX_LIBS"
30805 else
30806 if test -n "$PKG_CONFIG" && \
30807 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5
30808 ($PKG_CONFIG --exists --print-errors "pangox") 2>&5
30809 ac_status=$?
30810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30811 (exit $ac_status); }; then
30812 pkg_cv_PANGOX_LIBS=`$PKG_CONFIG --libs "pangox" 2>/dev/null`
30813else
30814 pkg_failed=yes
30815fi
30816 fi
30817else
30818 pkg_failed=untried
30819fi
30820
30821
30822
30823if test $pkg_failed = yes; then
30824
30825if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30826 _pkg_short_errors_supported=yes
30827else
30828 _pkg_short_errors_supported=no
30829fi
30830 if test $_pkg_short_errors_supported = yes; then
30831 PANGOX_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangox"`
30832 else
30833 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
a848cd7e 30834 fi
3ecd9f92
MW
30835 # Put the nasty error message in config.log where it belongs
30836 echo "$PANGOX_PKG_ERRORS" >&5
a848cd7e
SC
30837
30838
3ecd9f92
MW
30839 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
30840echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
30841 { (exit 1); exit 1; }; }
a848cd7e 30842
a848cd7e 30843
3ecd9f92 30844elif test $pkg_failed = untried; then
a848cd7e 30845
3ecd9f92
MW
30846 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
30847echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
30848 { (exit 1); exit 1; }; }
30849
30850
30851else
30852 PANGOX_CFLAGS=$pkg_cv_PANGOX_CFLAGS
30853 PANGOX_LIBS=$pkg_cv_PANGOX_LIBS
30854 echo "$as_me:$LINENO: result: yes" >&5
30855echo "${ECHO_T}yes" >&6
30856
30857 CXXFLAGS="$PANGOX_CFLAGS $CXXFLAGS"
30858 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
30859
30860fi
30861
30862pkg_failed=no
30863echo "$as_me:$LINENO: checking for PANGOFT2" >&5
30864echo $ECHO_N "checking for PANGOFT2... $ECHO_C" >&6
30865
30866if test -n "$PKG_CONFIG"; then
30867 if test -n "$PANGOFT2_CFLAGS"; then
30868 pkg_cv_PANGOFT2_CFLAGS="$PANGOFT2_CFLAGS"
30869 else
30870 if test -n "$PKG_CONFIG" && \
30871 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5
30872 ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
30873 ac_status=$?
30874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30875 (exit $ac_status); }; then
30876 pkg_cv_PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2" 2>/dev/null`
30877else
30878 pkg_failed=yes
30879fi
30880 fi
30881else
30882 pkg_failed=untried
30883fi
30884if test -n "$PKG_CONFIG"; then
30885 if test -n "$PANGOFT2_LIBS"; then
30886 pkg_cv_PANGOFT2_LIBS="$PANGOFT2_LIBS"
30887 else
30888 if test -n "$PKG_CONFIG" && \
30889 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5
30890 ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
30891 ac_status=$?
30892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30893 (exit $ac_status); }; then
30894 pkg_cv_PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2" 2>/dev/null`
30895else
30896 pkg_failed=yes
30897fi
30898 fi
30899else
30900 pkg_failed=untried
30901fi
30902
30903
30904
30905if test $pkg_failed = yes; then
30906
30907if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30908 _pkg_short_errors_supported=yes
30909else
30910 _pkg_short_errors_supported=no
30911fi
30912 if test $_pkg_short_errors_supported = yes; then
30913 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoft2"`
30914 else
30915 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
30916 fi
30917 # Put the nasty error message in config.log where it belongs
30918 echo "$PANGOFT2_PKG_ERRORS" >&5
a848cd7e 30919
a848cd7e
SC
30920
30921 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
30922echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
30923 wxUSE_PRINTING_ARCHITECTURE="no"
30924
30925
3ecd9f92 30926elif test $pkg_failed = untried; then
a848cd7e 30927
3ecd9f92
MW
30928 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
30929echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
30930 wxUSE_PRINTING_ARCHITECTURE="no"
a848cd7e 30931
a848cd7e 30932
a848cd7e 30933else
3ecd9f92
MW
30934 PANGOFT2_CFLAGS=$pkg_cv_PANGOFT2_CFLAGS
30935 PANGOFT2_LIBS=$pkg_cv_PANGOFT2_LIBS
30936 echo "$as_me:$LINENO: result: yes" >&5
30937echo "${ECHO_T}yes" >&6
30938
30939 CXXFLAGS="$PANGOFT2_CFLAGS $CXXFLAGS"
30940 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
a848cd7e 30941
a848cd7e 30942fi
3ecd9f92
MW
30943
30944pkg_failed=no
30945echo "$as_me:$LINENO: checking for PANGOXFT" >&5
30946echo $ECHO_N "checking for PANGOXFT... $ECHO_C" >&6
a848cd7e
SC
30947
30948if test -n "$PKG_CONFIG"; then
3ecd9f92
MW
30949 if test -n "$PANGOXFT_CFLAGS"; then
30950 pkg_cv_PANGOXFT_CFLAGS="$PANGOXFT_CFLAGS"
30951 else
30952 if test -n "$PKG_CONFIG" && \
30953 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5
30954 ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5
30955 ac_status=$?
30956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30957 (exit $ac_status); }; then
30958 pkg_cv_PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft" 2>/dev/null`
a848cd7e 30959else
3ecd9f92
MW
30960 pkg_failed=yes
30961fi
30962 fi
30963else
30964 pkg_failed=untried
30965fi
30966if test -n "$PKG_CONFIG"; then
30967 if test -n "$PANGOXFT_LIBS"; then
30968 pkg_cv_PANGOXFT_LIBS="$PANGOXFT_LIBS"
30969 else
30970 if test -n "$PKG_CONFIG" && \
30971 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5
30972 ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5
30973 ac_status=$?
30974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30975 (exit $ac_status); }; then
30976 pkg_cv_PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft" 2>/dev/null`
30977else
30978 pkg_failed=yes
30979fi
30980 fi
30981else
30982 pkg_failed=untried
a848cd7e
SC
30983fi
30984
a848cd7e 30985
a848cd7e 30986
3ecd9f92 30987if test $pkg_failed = yes; then
a848cd7e 30988
3ecd9f92
MW
30989if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30990 _pkg_short_errors_supported=yes
30991else
30992 _pkg_short_errors_supported=no
30993fi
30994 if test $_pkg_short_errors_supported = yes; then
30995 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoxft"`
30996 else
30997 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
a848cd7e 30998 fi
3ecd9f92
MW
30999 # Put the nasty error message in config.log where it belongs
31000 echo "$PANGOXFT_PKG_ERRORS" >&5
a848cd7e
SC
31001
31002
3ecd9f92
MW
31003 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
31004echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
31005
a848cd7e 31006
3ecd9f92 31007elif test $pkg_failed = untried; then
a848cd7e 31008
3ecd9f92
MW
31009 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
31010echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
31011
31012
31013else
31014 PANGOXFT_CFLAGS=$pkg_cv_PANGOXFT_CFLAGS
31015 PANGOXFT_LIBS=$pkg_cv_PANGOXFT_LIBS
31016 echo "$as_me:$LINENO: result: yes" >&5
31017echo "${ECHO_T}yes" >&6
a848cd7e 31018
4ae1af05
MB
31019 cat >>confdefs.h <<\_ACEOF
31020#define HAVE_PANGO_XFT 1
31021_ACEOF
31022
c92ad099 31023 CXXFLAGS="$PANGOXFT_CFLAGS $CXXFLAGS"
a848cd7e
SC
31024 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
31025
3ecd9f92 31026fi
e56f4f9e 31027 save_CXXFLAGS="$CXXFLAGS"
304205f1 31028 save_LIBS="$LIBS"
e56f4f9e 31029 CXXFLAGS="$PANGOX_CFLAGS $CXXFLAGS"
304205f1
VS
31030 LIBS="$LIBS $PANGOX_LIBS"
31031
31032for ac_func in pango_font_family_is_monospace
31033do
31034as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31035echo "$as_me:$LINENO: checking for $ac_func" >&5
31036echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31037if eval "test \"\${$as_ac_var+set}\" = set"; then
31038 echo $ECHO_N "(cached) $ECHO_C" >&6
31039else
31040 cat >conftest.$ac_ext <<_ACEOF
31041/* confdefs.h. */
31042_ACEOF
31043cat confdefs.h >>conftest.$ac_ext
31044cat >>conftest.$ac_ext <<_ACEOF
31045/* end confdefs.h. */
31046/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31047 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31048#define $ac_func innocuous_$ac_func
31049
31050/* System header to define __stub macros and hopefully few prototypes,
31051 which can conflict with char $ac_func (); below.
31052 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31053 <limits.h> exists even on freestanding compilers. */
31054
31055#ifdef __STDC__
31056# include <limits.h>
31057#else
31058# include <assert.h>
31059#endif
31060
31061#undef $ac_func
31062
31063/* Override any gcc2 internal prototype to avoid an error. */
31064#ifdef __cplusplus
31065extern "C"
31066{
31067#endif
31068/* We use char because int might match the return type of a gcc2
31069 builtin and then its argument prototype would still apply. */
31070char $ac_func ();
31071/* The GNU C library defines this for functions which it implements
31072 to always fail with ENOSYS. Some functions are actually named
31073 something starting with __ and the normal name is an alias. */
31074#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31075choke me
31076#else
31077char (*f) () = $ac_func;
31078#endif
31079#ifdef __cplusplus
31080}
31081#endif
31082
31083int
31084main ()
31085{
31086return f != $ac_func;
31087 ;
31088 return 0;
31089}
31090_ACEOF
31091rm -f conftest.$ac_objext conftest$ac_exeext
31092if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31093 (eval $ac_link) 2>conftest.er1
31094 ac_status=$?
31095 grep -v '^ *+' conftest.er1 >conftest.err
31096 rm -f conftest.er1
31097 cat conftest.err >&5
31098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31099 (exit $ac_status); } &&
3ea50042 31100 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
304205f1
VS
31101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31102 (eval $ac_try) 2>&5
31103 ac_status=$?
31104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31105 (exit $ac_status); }; } &&
31106 { ac_try='test -s conftest$ac_exeext'
31107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31108 (eval $ac_try) 2>&5
31109 ac_status=$?
31110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31111 (exit $ac_status); }; }; then
31112 eval "$as_ac_var=yes"
31113else
31114 echo "$as_me: failed program was:" >&5
31115sed 's/^/| /' conftest.$ac_ext >&5
31116
31117eval "$as_ac_var=no"
31118fi
31119rm -f conftest.err conftest.$ac_objext \
31120 conftest$ac_exeext conftest.$ac_ext
31121fi
31122echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31123echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31124if test `eval echo '${'$as_ac_var'}'` = yes; then
31125 cat >>confdefs.h <<_ACEOF
31126#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31127_ACEOF
31128
31129fi
31130done
31131
e56f4f9e 31132 CXXFLAGS="$save_CXXFLAGS"
304205f1 31133 LIBS="$save_LIBS"
a848cd7e
SC
31134 fi
31135
31136 wxUSE_UNIVERSAL="yes"
31137
31138 if test "$wxUSE_NANOX" = "yes"; then
31139 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
31140 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"
31141 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
31142 else
31143 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
31144 fi
31145
a848cd7e
SC
31146 TOOLKIT=X11
31147 GUIDIST=X11_DIST
31148 fi
31149
31150 if test "$wxUSE_MOTIF" = 1; then
0a08f02a
MB
31151 if test "$wxUSE_UNICODE" = "yes"; then
31152 { { echo "$as_me:$LINENO: error: Unicode configuration not supported with Motif" >&5
31153echo "$as_me: error: Unicode configuration not supported with Motif" >&2;}
31154 { (exit 1); exit 1; }; }
31155 fi
31156
74b84332
VS
31157 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
31158echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
a848cd7e 31159
74b84332
VS
31160ac_find_includes=
31161for ac_dir in $SEARCH_INCLUDE /usr/include;
31162 do
31163 if test -f "$ac_dir/Xm/Xm.h"; then
31164 ac_find_includes=$ac_dir
31165 break
31166 fi
31167 done
a848cd7e 31168
74b84332
VS
31169 if test "$ac_find_includes" != "" ; then
31170 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
31171echo "${ECHO_T}found in $ac_find_includes" >&6
31172
31173 if test "x$ac_find_includes" = "x/usr/include"; then
31174 ac_path_to_include=""
31175 else
31176 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
31177 result=$?
31178 if test $result = 0; then
31179 ac_path_to_include=""
31180 else
31181 ac_path_to_include=" -I$ac_find_includes"
31182 fi
a848cd7e
SC
31183 fi
31184
74b84332
VS
31185 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
31186 else
e56f4f9e
VZ
31187 save_CXXFLAGS=$CXXFLAGS
31188 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
e051b34e 31189
74b84332 31190 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
31191/* confdefs.h. */
31192_ACEOF
31193cat confdefs.h >>conftest.$ac_ext
31194cat >>conftest.$ac_ext <<_ACEOF
31195/* end confdefs.h. */
31196
74b84332
VS
31197 #include <Xm/Xm.h>
31198
a848cd7e
SC
31199int
31200main ()
31201{
31202
74b84332
VS
31203 int version;
31204 version = xmUseVersion;
31205
a848cd7e
SC
31206 ;
31207 return 0;
31208}
31209_ACEOF
74b84332
VS
31210rm -f conftest.$ac_objext
31211if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31212 (eval $ac_compile) 2>conftest.er1
a848cd7e 31213 ac_status=$?
ac1cb8d3
VS
31214 grep -v '^ *+' conftest.er1 >conftest.err
31215 rm -f conftest.er1
31216 cat conftest.err >&5
a848cd7e
SC
31217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31218 (exit $ac_status); } &&
3ea50042 31219 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31221 (eval $ac_try) 2>&5
31222 ac_status=$?
31223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31224 (exit $ac_status); }; } &&
74b84332 31225 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31227 (eval $ac_try) 2>&5
31228 ac_status=$?
31229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31230 (exit $ac_status); }; }; then
74b84332
VS
31231
31232 echo "$as_me:$LINENO: result: found in default search path" >&5
31233echo "${ECHO_T}found in default search path" >&6
31234 COMPILED_X_PROGRAM=1
31235
a848cd7e
SC
31236else
31237 echo "$as_me: failed program was:" >&5
31238sed 's/^/| /' conftest.$ac_ext >&5
31239
a848cd7e 31240
74b84332
VS
31241 echo "$as_me:$LINENO: result: no" >&5
31242echo "${ECHO_T}no" >&6
e051b34e
MW
31243 { { echo "$as_me:$LINENO: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&5
31244echo "$as_me: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&2;}
74b84332 31245 { (exit 1); exit 1; }; }
a848cd7e 31246
a848cd7e 31247
a848cd7e 31248fi
74b84332 31249rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e051b34e 31250
e56f4f9e 31251 CXXFLAGS=$save_CXXFLAGS
74b84332
VS
31252 fi
31253
0ad5d837
VZ
31254
31255 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
74b84332
VS
31256echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
31257
0ad5d837
VZ
31258 ac_find_libraries=
31259 for ac_dir in $SEARCH_LIB;
74b84332 31260 do
3eca31dc 31261 for ac_extension in a so sl dylib dll.a; do
74b84332
VS
31262 if test -f "$ac_dir/libXm.$ac_extension"; then
31263 ac_find_libraries=$ac_dir
31264 break 2
a848cd7e 31265 fi
74b84332
VS
31266 done
31267 done
a848cd7e 31268
0ad5d837
VZ
31269
31270 if test "x$ac_find_libraries" != "x" ; then
31271 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
31272echo "${ECHO_T}found in $ac_find_libraries" >&6
a848cd7e 31273
74b84332 31274
0ad5d837 31275 if test "$ac_find_libraries" = "default location"; then
74b84332 31276 ac_path_to_link=""
a848cd7e 31277 else
0ad5d837
VZ
31278 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
31279 result=$?
31280 if test $result = 0; then
31281 ac_path_to_link=""
31282 else
31283 ac_path_to_link=" -L$ac_find_libraries"
31284 fi
74b84332
VS
31285 fi
31286
0ad5d837
VZ
31287 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
31288 else
e56f4f9e
VZ
31289 save_CXXFLAGS=$CXXFLAGS
31290 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
6f9cf1e6
MW
31291 save_LIBS="$LIBS"
31292 LIBS="$GUI_TK_LIBRARY -lXm -lXmu -lXext -lX11"
74b84332 31293
0ad5d837 31294 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
31295/* confdefs.h. */
31296_ACEOF
31297cat confdefs.h >>conftest.$ac_ext
31298cat >>conftest.$ac_ext <<_ACEOF
31299/* end confdefs.h. */
31300
0ad5d837 31301 #include <Xm/Xm.h>
74b84332 31302
a848cd7e
SC
31303int
31304main ()
31305{
74b84332 31306
0ad5d837
VZ
31307 int version;
31308 version = xmUseVersion;
74b84332 31309
a848cd7e
SC
31310 ;
31311 return 0;
31312}
31313_ACEOF
0ad5d837
VZ
31314rm -f conftest.$ac_objext conftest$ac_exeext
31315if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31316 (eval $ac_link) 2>conftest.er1
a848cd7e 31317 ac_status=$?
ac1cb8d3
VS
31318 grep -v '^ *+' conftest.er1 >conftest.err
31319 rm -f conftest.er1
31320 cat conftest.err >&5
a848cd7e
SC
31321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31322 (exit $ac_status); } &&
3ea50042 31323 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31325 (eval $ac_try) 2>&5
31326 ac_status=$?
31327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31328 (exit $ac_status); }; } &&
0ad5d837 31329 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31331 (eval $ac_try) 2>&5
31332 ac_status=$?
31333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31334 (exit $ac_status); }; }; then
74b84332 31335
0ad5d837 31336 echo "$as_me:$LINENO: result: found in default search path" >&5
74b84332 31337echo "${ECHO_T}found in default search path" >&6
0ad5d837 31338 COMPILED_X_PROGRAM=1
74b84332 31339
a848cd7e
SC
31340else
31341 echo "$as_me: failed program was:" >&5
31342sed 's/^/| /' conftest.$ac_ext >&5
31343
74b84332 31344
6f9cf1e6 31345 echo "$as_me:$LINENO: result: no" >&5
74b84332 31346echo "${ECHO_T}no" >&6
6f9cf1e6 31347 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
74b84332
VS
31348echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
31349 { (exit 1); exit 1; }; }
31350
31351
31352fi
0ad5d837
VZ
31353rm -f conftest.err conftest.$ac_objext \
31354 conftest$ac_exeext conftest.$ac_ext
74b84332 31355
e56f4f9e 31356 CXXFLAGS=$save_CXXFLAGS
6f9cf1e6 31357 LIBS="$save_LIBS"
74b84332
VS
31358 fi
31359
31360 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
31361echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
31362 libp_link=""
31363 libsm_ice_link=""
31364 libs_found=0
31365 for libp in "" " -lXp"; do
31366 if test "$libs_found" = "0"; then
31367 for libsm_ice in "" " -lSM -lICE"; do
31368 if test "$libs_found" = "0"; then
31369 save_LIBS="$LIBS"
31370 LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
e56f4f9e
VZ
31371 save_CXXFLAGS=$CXXFLAGS
31372 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
74b84332
VS
31373
31374 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
31375/* confdefs.h. */
31376_ACEOF
31377cat confdefs.h >>conftest.$ac_ext
31378cat >>conftest.$ac_ext <<_ACEOF
31379/* end confdefs.h. */
31380
74b84332
VS
31381 #include <Xm/Xm.h>
31382 #include <Xm/List.h>
31383
a848cd7e
SC
31384int
31385main ()
31386{
74b84332
VS
31387
31388 XmString string = NULL;
31389 Widget w = NULL;
31390 int position = 0;
31391 XmListAddItem(w, string, position);
31392
a848cd7e
SC
31393 ;
31394 return 0;
31395}
31396_ACEOF
31397rm -f conftest.$ac_objext conftest$ac_exeext
31398if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31399 (eval $ac_link) 2>conftest.er1
a848cd7e 31400 ac_status=$?
ac1cb8d3
VS
31401 grep -v '^ *+' conftest.er1 >conftest.err
31402 rm -f conftest.er1
31403 cat conftest.err >&5
a848cd7e
SC
31404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31405 (exit $ac_status); } &&
3ea50042 31406 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31408 (eval $ac_try) 2>&5
31409 ac_status=$?
31410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31411 (exit $ac_status); }; } &&
31412 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31414 (eval $ac_try) 2>&5
31415 ac_status=$?
31416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31417 (exit $ac_status); }; }; then
31418
31419 libp_link="$libp"
31420 libsm_ice_link="$libsm_ice"
31421 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
31422echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
31423 libs_found=1
31424
31425else
31426 echo "$as_me: failed program was:" >&5
31427sed 's/^/| /' conftest.$ac_ext >&5
31428
31429
31430
31431fi
ac1cb8d3
VS
31432rm -f conftest.err conftest.$ac_objext \
31433 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31434
31435 LIBS="$save_LIBS"
e56f4f9e 31436 CXXFLAGS=$save_CXXFLAGS
a848cd7e
SC
31437 fi
31438 done
31439 fi
31440 done
31441
31442 if test "$libs_found" = "0"; then
31443 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
31444echo "${ECHO_T}can't find the right libraries" >&6
31445 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
31446echo "$as_me: error: can't link a simple motif program" >&2;}
31447 { (exit 1); exit 1; }; }
31448 fi
31449
62fa8b3a
MW
31450 echo "$as_me:$LINENO: checking for SgCreateList in -lSgm" >&5
31451echo $ECHO_N "checking for SgCreateList in -lSgm... $ECHO_C" >&6
31452if test "${ac_cv_lib_Sgm_SgCreateList+set}" = set; then
31453 echo $ECHO_N "(cached) $ECHO_C" >&6
31454else
31455 ac_check_lib_save_LIBS=$LIBS
31456LIBS="-lSgm $LIBS"
31457cat >conftest.$ac_ext <<_ACEOF
31458/* confdefs.h. */
31459_ACEOF
31460cat confdefs.h >>conftest.$ac_ext
31461cat >>conftest.$ac_ext <<_ACEOF
31462/* end confdefs.h. */
31463
31464/* Override any gcc2 internal prototype to avoid an error. */
31465#ifdef __cplusplus
31466extern "C"
31467#endif
31468/* We use char because int might match the return type of a gcc2
31469 builtin and then its argument prototype would still apply. */
31470char SgCreateList ();
31471int
31472main ()
31473{
31474SgCreateList ();
31475 ;
31476 return 0;
31477}
31478_ACEOF
31479rm -f conftest.$ac_objext conftest$ac_exeext
31480if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31481 (eval $ac_link) 2>conftest.er1
31482 ac_status=$?
31483 grep -v '^ *+' conftest.er1 >conftest.err
31484 rm -f conftest.er1
31485 cat conftest.err >&5
31486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31487 (exit $ac_status); } &&
3ea50042 31488 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
62fa8b3a
MW
31489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31490 (eval $ac_try) 2>&5
31491 ac_status=$?
31492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31493 (exit $ac_status); }; } &&
31494 { ac_try='test -s conftest$ac_exeext'
31495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31496 (eval $ac_try) 2>&5
31497 ac_status=$?
31498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31499 (exit $ac_status); }; }; then
31500 ac_cv_lib_Sgm_SgCreateList=yes
31501else
31502 echo "$as_me: failed program was:" >&5
31503sed 's/^/| /' conftest.$ac_ext >&5
31504
31505ac_cv_lib_Sgm_SgCreateList=no
31506fi
31507rm -f conftest.err conftest.$ac_objext \
31508 conftest$ac_exeext conftest.$ac_ext
31509LIBS=$ac_check_lib_save_LIBS
31510fi
31511echo "$as_me:$LINENO: result: $ac_cv_lib_Sgm_SgCreateList" >&5
31512echo "${ECHO_T}$ac_cv_lib_Sgm_SgCreateList" >&6
31513if test $ac_cv_lib_Sgm_SgCreateList = yes; then
31514 libsgm_link=" -lSgm"
31515fi
31516
31517
e56f4f9e
VZ
31518 save_CXXFLAGS=$CXXFLAGS
31519 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
0ad5d837 31520
a848cd7e
SC
31521 echo "$as_me:$LINENO: checking for Motif 2" >&5
31522echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
0ad5d837
VZ
31523if test "${wx_cv_lib_motif2+set}" = set; then
31524 echo $ECHO_N "(cached) $ECHO_C" >&6
31525else
31526 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
31527/* confdefs.h. */
31528_ACEOF
31529cat confdefs.h >>conftest.$ac_ext
31530cat >>conftest.$ac_ext <<_ACEOF
31531/* end confdefs.h. */
31532
0ad5d837 31533 #include <Xm/Xm.h>
a848cd7e
SC
31534
31535int
31536main ()
31537{
31538
0ad5d837
VZ
31539 #if XmVersion < 2000
31540 Not Motif 2
31541 #endif
a848cd7e
SC
31542
31543 ;
31544 return 0;
31545}
31546_ACEOF
31547rm -f conftest.$ac_objext
31548if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31549 (eval $ac_compile) 2>conftest.er1
a848cd7e 31550 ac_status=$?
ac1cb8d3
VS
31551 grep -v '^ *+' conftest.er1 >conftest.err
31552 rm -f conftest.er1
31553 cat conftest.err >&5
a848cd7e
SC
31554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31555 (exit $ac_status); } &&
3ea50042 31556 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31558 (eval $ac_try) 2>&5
31559 ac_status=$?
31560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31561 (exit $ac_status); }; } &&
31562 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31564 (eval $ac_try) 2>&5
31565 ac_status=$?
31566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31567 (exit $ac_status); }; }; then
0ad5d837 31568 wx_cv_lib_motif2="yes"
a848cd7e
SC
31569else
31570 echo "$as_me: failed program was:" >&5
31571sed 's/^/| /' conftest.$ac_ext >&5
31572
0ad5d837
VZ
31573wx_cv_lib_motif2="no"
31574fi
31575rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31576fi
31577echo "$as_me:$LINENO: result: $wx_cv_lib_motif2" >&5
31578echo "${ECHO_T}$wx_cv_lib_motif2" >&6
31579 if test "$wx_cv_lib_motif2" = "yes"; then
31580 cat >>confdefs.h <<\_ACEOF
31581#define __WXMOTIF20__ 1
31582_ACEOF
a848cd7e 31583
0ad5d837
VZ
31584 else
31585 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
31586#define __WXMOTIF20__ 0
31587_ACEOF
31588
0ad5d837 31589 fi
2113bc77
MW
31590
31591 echo "$as_me:$LINENO: checking whether Motif is Lesstif" >&5
31592echo $ECHO_N "checking whether Motif is Lesstif... $ECHO_C" >&6
0ad5d837
VZ
31593if test "${wx_cv_lib_lesstif+set}" = set; then
31594 echo $ECHO_N "(cached) $ECHO_C" >&6
31595else
31596 cat >conftest.$ac_ext <<_ACEOF
2113bc77
MW
31597/* confdefs.h. */
31598_ACEOF
31599cat confdefs.h >>conftest.$ac_ext
31600cat >>conftest.$ac_ext <<_ACEOF
31601/* end confdefs.h. */
31602
0ad5d837 31603 #include <Xm/Xm.h>
2113bc77
MW
31604
31605int
31606main ()
31607{
31608
0ad5d837
VZ
31609 #if !defined(LesstifVersion) || LesstifVersion <= 0
31610 Not Lesstif
31611 #endif
2113bc77
MW
31612
31613 ;
31614 return 0;
31615}
31616_ACEOF
31617rm -f conftest.$ac_objext
31618if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31619 (eval $ac_compile) 2>conftest.er1
31620 ac_status=$?
31621 grep -v '^ *+' conftest.er1 >conftest.err
31622 rm -f conftest.er1
31623 cat conftest.err >&5
31624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31625 (exit $ac_status); } &&
3ea50042 31626 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2113bc77
MW
31627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31628 (eval $ac_try) 2>&5
31629 ac_status=$?
31630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31631 (exit $ac_status); }; } &&
31632 { ac_try='test -s conftest.$ac_objext'
31633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31634 (eval $ac_try) 2>&5
31635 ac_status=$?
31636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31637 (exit $ac_status); }; }; then
0ad5d837 31638 wx_cv_lib_lesstif="yes"
2113bc77
MW
31639else
31640 echo "$as_me: failed program was:" >&5
31641sed 's/^/| /' conftest.$ac_ext >&5
31642
0ad5d837
VZ
31643wx_cv_lib_lesstif="no"
31644fi
31645rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2113bc77 31646
0ad5d837
VZ
31647fi
31648echo "$as_me:$LINENO: result: $wx_cv_lib_lesstif" >&5
31649echo "${ECHO_T}$wx_cv_lib_lesstif" >&6
31650 if test "$wx_cv_lib_lesstif" = "yes"; then
31651 cat >>confdefs.h <<\_ACEOF
31652#define __WXLESSTIF__ 1
31653_ACEOF
31654
31655 else
31656 cat >>confdefs.h <<\_ACEOF
2113bc77
MW
31657#define __WXLESSTIF__ 0
31658_ACEOF
31659
0ad5d837 31660 fi
2113bc77 31661
e56f4f9e 31662 CXXFLAGS=$save_CXXFLAGS
a848cd7e 31663
62fa8b3a 31664 GUI_TK_LIBRARY="$GUI_TK_LIBRARY${libsgm_link} -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
a848cd7e
SC
31665 TOOLKIT=MOTIF
31666 GUIDIST=MOTIF_DIST
31667 fi
31668
74b84332 31669 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
a848cd7e
SC
31670 if test "$wxUSE_LIBXPM" = "sys"; then
31671 echo "$as_me:$LINENO: checking for Xpm library" >&5
31672echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
31673
0ad5d837
VZ
31674 ac_find_libraries=
31675 for ac_dir in $SEARCH_LIB;
a848cd7e 31676 do
3eca31dc 31677 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
31678 if test -f "$ac_dir/libXpm.$ac_extension"; then
31679 ac_find_libraries=$ac_dir
31680 break 2
31681 fi
31682 done
31683 done
31684
31685 if test "$ac_find_libraries" != "" ; then
31686
0ad5d837 31687 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
31688 ac_path_to_link=""
31689 else
0ad5d837
VZ
31690 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
31691 result=$?
31692 if test $result = 0; then
31693 ac_path_to_link=""
31694 else
31695 ac_path_to_link=" -L$ac_find_libraries"
31696 fi
a848cd7e
SC
31697 fi
31698
31699 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
0ad5d837
VZ
31700 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
31701echo "${ECHO_T}found in $ac_find_libraries" >&6
a848cd7e
SC
31702
31703 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
31704echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
31705if test "${wx_cv_x11_xpm_h+set}" = set; then
31706 echo $ECHO_N "(cached) $ECHO_C" >&6
31707else
31708
e56f4f9e
VZ
31709 save_CXXFLAGS=$CXXFLAGS
31710 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
a848cd7e
SC
31711
31712 cat >conftest.$ac_ext <<_ACEOF
31713/* confdefs.h. */
31714_ACEOF
31715cat confdefs.h >>conftest.$ac_ext
31716cat >>conftest.$ac_ext <<_ACEOF
31717/* end confdefs.h. */
31718
31719 #include <X11/xpm.h>
31720
31721int
31722main ()
31723{
31724
31725 int version;
31726 version = XpmLibraryVersion();
31727
31728 ;
31729 return 0;
31730}
31731_ACEOF
31732rm -f conftest.$ac_objext
31733if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31734 (eval $ac_compile) 2>conftest.er1
a848cd7e 31735 ac_status=$?
ac1cb8d3
VS
31736 grep -v '^ *+' conftest.er1 >conftest.err
31737 rm -f conftest.er1
31738 cat conftest.err >&5
a848cd7e
SC
31739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31740 (exit $ac_status); } &&
3ea50042 31741 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31743 (eval $ac_try) 2>&5
31744 ac_status=$?
31745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31746 (exit $ac_status); }; } &&
31747 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31749 (eval $ac_try) 2>&5
31750 ac_status=$?
31751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31752 (exit $ac_status); }; }; then
31753 wx_cv_x11_xpm_h=yes
31754else
31755 echo "$as_me: failed program was:" >&5
31756sed 's/^/| /' conftest.$ac_ext >&5
31757
31758wx_cv_x11_xpm_h=no
31759
31760fi
ac1cb8d3 31761rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 31762
e56f4f9e 31763 CXXFLAGS=$save_CXXFLAGS
a848cd7e
SC
31764
31765
31766fi
31767echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
31768echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
31769
31770 if test $wx_cv_x11_xpm_h = "yes"; then
31771 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
31772 cat >>confdefs.h <<\_ACEOF
31773#define wxHAVE_LIB_XPM 1
31774_ACEOF
31775
31776 else
31777 { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
31778echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
31779 fi
31780 fi
31781
31782 fi
31783
31784 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
31785echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
31786if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
31787 echo $ECHO_N "(cached) $ECHO_C" >&6
31788else
31789 ac_check_lib_save_LIBS=$LIBS
31790LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
31791cat >conftest.$ac_ext <<_ACEOF
31792/* confdefs.h. */
31793_ACEOF
31794cat confdefs.h >>conftest.$ac_ext
31795cat >>conftest.$ac_ext <<_ACEOF
31796/* end confdefs.h. */
31797
31798/* Override any gcc2 internal prototype to avoid an error. */
31799#ifdef __cplusplus
31800extern "C"
31801#endif
31802/* We use char because int might match the return type of a gcc2
31803 builtin and then its argument prototype would still apply. */
31804char XShapeQueryExtension ();
31805int
31806main ()
31807{
31808XShapeQueryExtension ();
31809 ;
31810 return 0;
31811}
31812_ACEOF
31813rm -f conftest.$ac_objext conftest$ac_exeext
31814if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31815 (eval $ac_link) 2>conftest.er1
a848cd7e 31816 ac_status=$?
ac1cb8d3
VS
31817 grep -v '^ *+' conftest.er1 >conftest.err
31818 rm -f conftest.er1
31819 cat conftest.err >&5
a848cd7e
SC
31820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31821 (exit $ac_status); } &&
3ea50042 31822 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31824 (eval $ac_try) 2>&5
31825 ac_status=$?
31826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31827 (exit $ac_status); }; } &&
31828 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31830 (eval $ac_try) 2>&5
31831 ac_status=$?
31832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31833 (exit $ac_status); }; }; then
31834 ac_cv_lib_Xext_XShapeQueryExtension=yes
31835else
31836 echo "$as_me: failed program was:" >&5
31837sed 's/^/| /' conftest.$ac_ext >&5
31838
31839ac_cv_lib_Xext_XShapeQueryExtension=no
31840fi
ac1cb8d3
VS
31841rm -f conftest.err conftest.$ac_objext \
31842 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31843LIBS=$ac_check_lib_save_LIBS
31844fi
31845echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
31846echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
31847if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
31848
31849 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
31850 wxHAVE_XEXT_LIB=1
31851
31852fi
31853
31854
31855 if test "$wxHAVE_XEXT_LIB" = 1; then
e56f4f9e
VZ
31856 save_CXXFLAGS="$CXXFLAGS"
31857 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
a848cd7e
SC
31858
31859 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
31860echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
31861 cat >conftest.$ac_ext <<_ACEOF
31862/* confdefs.h. */
31863_ACEOF
31864cat confdefs.h >>conftest.$ac_ext
31865cat >>conftest.$ac_ext <<_ACEOF
31866/* end confdefs.h. */
31867
31868 #include <X11/Xlib.h>
31869 #include <X11/extensions/shape.h>
31870
31871int
31872main ()
31873{
31874
31875 int dummy1, dummy2;
31876 XShapeQueryExtension((Display*)NULL,
31877 (int*)NULL, (int*)NULL);
31878
31879 ;
31880 return 0;
31881}
31882_ACEOF
31883rm -f conftest.$ac_objext
31884if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31885 (eval $ac_compile) 2>conftest.er1
a848cd7e 31886 ac_status=$?
ac1cb8d3
VS
31887 grep -v '^ *+' conftest.er1 >conftest.err
31888 rm -f conftest.er1
31889 cat conftest.err >&5
a848cd7e
SC
31890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31891 (exit $ac_status); } &&
3ea50042 31892 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31894 (eval $ac_try) 2>&5
31895 ac_status=$?
31896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31897 (exit $ac_status); }; } &&
31898 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31900 (eval $ac_try) 2>&5
31901 ac_status=$?
31902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31903 (exit $ac_status); }; }; then
31904
31905 cat >>confdefs.h <<\_ACEOF
31906#define HAVE_XSHAPE 1
31907_ACEOF
31908
31909 echo "$as_me:$LINENO: result: found" >&5
31910echo "${ECHO_T}found" >&6
31911
31912else
31913 echo "$as_me: failed program was:" >&5
31914sed 's/^/| /' conftest.$ac_ext >&5
31915
31916
31917 echo "$as_me:$LINENO: result: not found" >&5
31918echo "${ECHO_T}not found" >&6
31919
31920fi
ac1cb8d3 31921rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e56f4f9e 31922 CXXFLAGS="$save_CXXFLAGS"
a848cd7e
SC
31923
31924 fi
31925 fi
31926
31927 if test "$wxUSE_MAC" = 1; then
31928 echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
31929echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
31930 if test "$GCC" = yes; then
31931 echo "$as_me:$LINENO: result: gcc" >&5
31932echo "${ECHO_T}gcc" >&6
31933 CPPFLAGS_PASCAL="-fpascal-strings"
31934 elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
31935 echo "$as_me:$LINENO: result: xlc" >&5
31936echo "${ECHO_T}xlc" >&6
31937 CPPFLAGS_PASCAL="-qmacpstr"
31938 else
31939 echo "$as_me:$LINENO: result: none" >&5
31940echo "${ECHO_T}none" >&6
31941 fi
31942
1e9e8aba 31943 if test "x$wxUSE_UNIX" = "xyes"; then
c92ad099 31944 CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon $CPPFLAGS"
1e9e8aba 31945 else
c92ad099 31946 CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON $CPPFLAGS"
1e9e8aba 31947 fi
a848cd7e 31948
a848cd7e
SC
31949 TOOLKIT=MAC
31950 GUIDIST=MACX_DIST
dd21ced8 31951 WXBASEPORT="_carbon"
a848cd7e
SC
31952 fi
31953
31954 if test "$wxUSE_COCOA" = 1; then
a848cd7e
SC
31955 TOOLKIT=COCOA
31956 GUIDIST=COCOA_DIST
31957 fi
31958
31959 if test "$wxUSE_PM" = 1; then
31960 TOOLKIT=PM
de59c161
RD
31961 GUIDIST=PM_DIST
31962 echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
31963echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6
31964if test "${wx_cv_spbcdata+set}" = set; then
31965 echo $ECHO_N "(cached) $ECHO_C" >&6
31966else
31967
31968 cat >conftest.$ac_ext <<_ACEOF
de59c161
RD
31969/* confdefs.h. */
31970_ACEOF
31971cat confdefs.h >>conftest.$ac_ext
31972cat >>conftest.$ac_ext <<_ACEOF
31973/* end confdefs.h. */
31974
31975 #define INCL_PM
31976 #include <os2.h>
31977
31978int
31979main ()
31980{
31981
31982 SPBCDATA test;
31983
31984 ;
31985 return 0;
31986}
31987_ACEOF
31988rm -f conftest.$ac_objext
31989if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31990 (eval $ac_compile) 2>conftest.er1
de59c161 31991 ac_status=$?
ac1cb8d3
VS
31992 grep -v '^ *+' conftest.er1 >conftest.err
31993 rm -f conftest.er1
31994 cat conftest.err >&5
de59c161
RD
31995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31996 (exit $ac_status); } &&
3ea50042 31997 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31999 (eval $ac_try) 2>&5
32000 ac_status=$?
32001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32002 (exit $ac_status); }; } &&
32003 { ac_try='test -s conftest.$ac_objext'
de59c161
RD
32004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32005 (eval $ac_try) 2>&5
32006 ac_status=$?
32007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32008 (exit $ac_status); }; }; then
32009 wx_cv_spbcdata=yes
32010else
32011 echo "$as_me: failed program was:" >&5
32012sed 's/^/| /' conftest.$ac_ext >&5
32013
32014wx_cv_spbcdata=no
32015
32016fi
ac1cb8d3 32017rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
de59c161
RD
32018
32019
32020fi
32021echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
32022echo "${ECHO_T}$wx_cv_spbcdata" >&6
32023
32024 if test $wx_cv_spbcdata = "yes"; then
32025 cat >>confdefs.h <<\_ACEOF
32026#define HAVE_SPBCDATA 1
32027_ACEOF
32028
32029 fi
a848cd7e
SC
32030 fi
32031
32032 if test "$TOOLKIT" = "PM" ; then
32033 TOOLKIT_DIR="os2"
32034 else
32035 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
32036 fi
32037
a848cd7e 32038 if test "$wxUSE_UNIVERSAL" = "yes"; then
a848cd7e
SC
32039 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
32040 WIDGET_SET=univ
a848cd7e
SC
32041 fi
32042
32043 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
32044 DISTDIR="wx\$(TOOLKIT)"
32045else
32046 USE_GUI=0
32047
32048 TOOLKIT_DIR="base"
32049
32050 if test "$USE_WIN32" = 1 ; then
a848cd7e 32051 TOOLKIT="MSW"
a848cd7e
SC
32052 fi
32053
a848cd7e
SC
32054 GUIDIST="BASE_DIST"
32055 DISTDIR="wxBase"
32056fi
32057
32058
d12aef51
VZ
32059if test "$wxUSE_GUI" = "yes"; then
32060 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
32061
32062for ac_header in X11/Xlib.h
32063do
32064as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32065if eval "test \"\${$as_ac_Header+set}\" = set"; then
32066 echo "$as_me:$LINENO: checking for $ac_header" >&5
32067echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32068if eval "test \"\${$as_ac_Header+set}\" = set"; then
32069 echo $ECHO_N "(cached) $ECHO_C" >&6
32070fi
32071echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32072echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32073else
32074 # Is the header compilable?
32075echo "$as_me:$LINENO: checking $ac_header usability" >&5
32076echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32077cat >conftest.$ac_ext <<_ACEOF
32078/* confdefs.h. */
32079_ACEOF
32080cat confdefs.h >>conftest.$ac_ext
32081cat >>conftest.$ac_ext <<_ACEOF
32082/* end confdefs.h. */
32083$ac_includes_default
32084#include <$ac_header>
32085_ACEOF
32086rm -f conftest.$ac_objext
32087if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32088 (eval $ac_compile) 2>conftest.er1
32089 ac_status=$?
32090 grep -v '^ *+' conftest.er1 >conftest.err
32091 rm -f conftest.er1
32092 cat conftest.err >&5
32093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32094 (exit $ac_status); } &&
3ea50042 32095 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
d12aef51
VZ
32096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32097 (eval $ac_try) 2>&5
32098 ac_status=$?
32099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32100 (exit $ac_status); }; } &&
32101 { ac_try='test -s conftest.$ac_objext'
32102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32103 (eval $ac_try) 2>&5
32104 ac_status=$?
32105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32106 (exit $ac_status); }; }; then
32107 ac_header_compiler=yes
32108else
32109 echo "$as_me: failed program was:" >&5
32110sed 's/^/| /' conftest.$ac_ext >&5
32111
32112ac_header_compiler=no
32113fi
32114rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32115echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32116echo "${ECHO_T}$ac_header_compiler" >&6
32117
32118# Is the header present?
32119echo "$as_me:$LINENO: checking $ac_header presence" >&5
32120echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32121cat >conftest.$ac_ext <<_ACEOF
32122/* confdefs.h. */
32123_ACEOF
32124cat confdefs.h >>conftest.$ac_ext
32125cat >>conftest.$ac_ext <<_ACEOF
32126/* end confdefs.h. */
32127#include <$ac_header>
32128_ACEOF
32129if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32130 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32131 ac_status=$?
32132 grep -v '^ *+' conftest.er1 >conftest.err
32133 rm -f conftest.er1
32134 cat conftest.err >&5
32135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32136 (exit $ac_status); } >/dev/null; then
32137 if test -s conftest.err; then
5d7b7554
VZ
32138 ac_cpp_err=$ac_cxx_preproc_warn_flag
32139 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
d12aef51
VZ
32140 else
32141 ac_cpp_err=
32142 fi
32143else
32144 ac_cpp_err=yes
32145fi
32146if test -z "$ac_cpp_err"; then
32147 ac_header_preproc=yes
32148else
32149 echo "$as_me: failed program was:" >&5
32150sed 's/^/| /' conftest.$ac_ext >&5
32151
32152 ac_header_preproc=no
32153fi
32154rm -f conftest.err conftest.$ac_ext
32155echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32156echo "${ECHO_T}$ac_header_preproc" >&6
32157
32158# So? What about this header?
5d7b7554 32159case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
d12aef51
VZ
32160 yes:no: )
32161 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32162echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32163 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32164echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32165 ac_header_preproc=yes
32166 ;;
32167 no:yes:* )
32168 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32169echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32170 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32171echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32172 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32173echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32174 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
32175echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
32176 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32177echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32178 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32179echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32180 (
32181 cat <<\_ASBOX
32182## ----------------------------------------- ##
32183## Report this to wx-dev@lists.wxwidgets.org ##
32184## ----------------------------------------- ##
32185_ASBOX
32186 ) |
32187 sed "s/^/$as_me: WARNING: /" >&2
32188 ;;
32189esac
32190echo "$as_me:$LINENO: checking for $ac_header" >&5
32191echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32192if eval "test \"\${$as_ac_Header+set}\" = set"; then
32193 echo $ECHO_N "(cached) $ECHO_C" >&6
32194else
32195 eval "$as_ac_Header=\$ac_header_preproc"
32196fi
32197echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32198echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32199
32200fi
32201if test `eval echo '${'$as_ac_Header'}'` = yes; then
32202 cat >>confdefs.h <<_ACEOF
32203#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32204_ACEOF
32205
32206fi
32207
32208done
32209
32210
32211for ac_header in X11/XKBlib.h
32212do
32213as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32214echo "$as_me:$LINENO: checking for $ac_header" >&5
32215echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32216if eval "test \"\${$as_ac_Header+set}\" = set"; then
32217 echo $ECHO_N "(cached) $ECHO_C" >&6
32218else
32219 cat >conftest.$ac_ext <<_ACEOF
32220/* confdefs.h. */
32221_ACEOF
32222cat confdefs.h >>conftest.$ac_ext
32223cat >>conftest.$ac_ext <<_ACEOF
32224/* end confdefs.h. */
32225
32226 #if HAVE_X11_XLIB_H
32227 #include <X11/Xlib.h>
32228 #endif
32229
32230
32231#include <$ac_header>
32232_ACEOF
32233rm -f conftest.$ac_objext
32234if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32235 (eval $ac_compile) 2>conftest.er1
32236 ac_status=$?
32237 grep -v '^ *+' conftest.er1 >conftest.err
32238 rm -f conftest.er1
32239 cat conftest.err >&5
32240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32241 (exit $ac_status); } &&
3ea50042 32242 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
d12aef51
VZ
32243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32244 (eval $ac_try) 2>&5
32245 ac_status=$?
32246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32247 (exit $ac_status); }; } &&
32248 { ac_try='test -s conftest.$ac_objext'
32249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32250 (eval $ac_try) 2>&5
32251 ac_status=$?
32252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32253 (exit $ac_status); }; }; then
32254 eval "$as_ac_Header=yes"
32255else
32256 echo "$as_me: failed program was:" >&5
32257sed 's/^/| /' conftest.$ac_ext >&5
32258
32259eval "$as_ac_Header=no"
32260fi
32261rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32262fi
32263echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32264echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32265if test `eval echo '${'$as_ac_Header'}'` = yes; then
32266 cat >>confdefs.h <<_ACEOF
32267#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32268_ACEOF
32269
32270fi
32271
32272done
32273
32274 fi
32275fi
32276
a848cd7e
SC
32277
32278
32279IODBC_C_SRC=""
32280
32281
32282if test "$TOOLKIT" != "MSW" ; then
32283
32284 if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
32285
32286 if test "${ac_cv_header_sql_h+set}" = set; then
32287 echo "$as_me:$LINENO: checking for sql.h" >&5
32288echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
32289if test "${ac_cv_header_sql_h+set}" = set; then
32290 echo $ECHO_N "(cached) $ECHO_C" >&6
32291fi
32292echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
32293echo "${ECHO_T}$ac_cv_header_sql_h" >&6
32294else
32295 # Is the header compilable?
32296echo "$as_me:$LINENO: checking sql.h usability" >&5
32297echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
32298cat >conftest.$ac_ext <<_ACEOF
32299/* confdefs.h. */
32300_ACEOF
32301cat confdefs.h >>conftest.$ac_ext
32302cat >>conftest.$ac_ext <<_ACEOF
32303/* end confdefs.h. */
32304$ac_includes_default
32305#include <sql.h>
32306_ACEOF
32307rm -f conftest.$ac_objext
32308if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32309 (eval $ac_compile) 2>conftest.er1
a848cd7e 32310 ac_status=$?
ac1cb8d3
VS
32311 grep -v '^ *+' conftest.er1 >conftest.err
32312 rm -f conftest.er1
32313 cat conftest.err >&5
a848cd7e
SC
32314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32315 (exit $ac_status); } &&
3ea50042 32316 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32318 (eval $ac_try) 2>&5
32319 ac_status=$?
32320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32321 (exit $ac_status); }; } &&
32322 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32324 (eval $ac_try) 2>&5
32325 ac_status=$?
32326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32327 (exit $ac_status); }; }; then
32328 ac_header_compiler=yes
32329else
32330 echo "$as_me: failed program was:" >&5
32331sed 's/^/| /' conftest.$ac_ext >&5
32332
32333ac_header_compiler=no
32334fi
ac1cb8d3 32335rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32336echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32337echo "${ECHO_T}$ac_header_compiler" >&6
32338
32339# Is the header present?
32340echo "$as_me:$LINENO: checking sql.h presence" >&5
32341echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
32342cat >conftest.$ac_ext <<_ACEOF
32343/* confdefs.h. */
32344_ACEOF
32345cat confdefs.h >>conftest.$ac_ext
32346cat >>conftest.$ac_ext <<_ACEOF
32347/* end confdefs.h. */
32348#include <sql.h>
32349_ACEOF
32350if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32351 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32352 ac_status=$?
32353 grep -v '^ *+' conftest.er1 >conftest.err
32354 rm -f conftest.er1
32355 cat conftest.err >&5
32356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32357 (exit $ac_status); } >/dev/null; then
32358 if test -s conftest.err; then
5d7b7554
VZ
32359 ac_cpp_err=$ac_cxx_preproc_warn_flag
32360 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
32361 else
32362 ac_cpp_err=
32363 fi
32364else
32365 ac_cpp_err=yes
32366fi
32367if test -z "$ac_cpp_err"; then
32368 ac_header_preproc=yes
32369else
32370 echo "$as_me: failed program was:" >&5
32371sed 's/^/| /' conftest.$ac_ext >&5
32372
32373 ac_header_preproc=no
32374fi
32375rm -f conftest.err conftest.$ac_ext
32376echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32377echo "${ECHO_T}$ac_header_preproc" >&6
32378
32379# So? What about this header?
5d7b7554 32380case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 32381 yes:no: )
a848cd7e
SC
32382 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
32383echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
32384 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
32385echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
32386 ac_header_preproc=yes
a848cd7e 32387 ;;
ac1cb8d3 32388 no:yes:* )
a848cd7e
SC
32389 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
32390echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
32391 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
32392echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
32393 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
32394echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
32395 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
32396echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
32397 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
32398echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
32399 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
32400echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
32401 (
32402 cat <<\_ASBOX
ac1cb8d3
VS
32403## ----------------------------------------- ##
32404## Report this to wx-dev@lists.wxwidgets.org ##
32405## ----------------------------------------- ##
a848cd7e
SC
32406_ASBOX
32407 ) |
32408 sed "s/^/$as_me: WARNING: /" >&2
32409 ;;
32410esac
32411echo "$as_me:$LINENO: checking for sql.h" >&5
32412echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
32413if test "${ac_cv_header_sql_h+set}" = set; then
32414 echo $ECHO_N "(cached) $ECHO_C" >&6
32415else
32416 ac_cv_header_sql_h=$ac_header_preproc
32417fi
32418echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
32419echo "${ECHO_T}$ac_cv_header_sql_h" >&6
32420
32421fi
32422if test $ac_cv_header_sql_h = yes; then
32423 found_sql_h=1
32424fi
32425
32426
32427 if test "x$found_sql_h" = "x1" ; then
32428 echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
32429echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
32430if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
32431 echo $ECHO_N "(cached) $ECHO_C" >&6
32432else
32433 ac_check_lib_save_LIBS=$LIBS
32434LIBS="-liodbc $LIBS"
32435cat >conftest.$ac_ext <<_ACEOF
32436/* confdefs.h. */
32437_ACEOF
32438cat confdefs.h >>conftest.$ac_ext
32439cat >>conftest.$ac_ext <<_ACEOF
32440/* end confdefs.h. */
32441
32442/* Override any gcc2 internal prototype to avoid an error. */
32443#ifdef __cplusplus
32444extern "C"
32445#endif
32446/* We use char because int might match the return type of a gcc2
32447 builtin and then its argument prototype would still apply. */
32448char SQLAllocEnv ();
32449int
32450main ()
32451{
32452SQLAllocEnv ();
32453 ;
32454 return 0;
32455}
32456_ACEOF
32457rm -f conftest.$ac_objext conftest$ac_exeext
32458if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32459 (eval $ac_link) 2>conftest.er1
a848cd7e 32460 ac_status=$?
ac1cb8d3
VS
32461 grep -v '^ *+' conftest.er1 >conftest.err
32462 rm -f conftest.er1
32463 cat conftest.err >&5
a848cd7e
SC
32464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32465 (exit $ac_status); } &&
3ea50042 32466 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32468 (eval $ac_try) 2>&5
32469 ac_status=$?
32470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32471 (exit $ac_status); }; } &&
32472 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32474 (eval $ac_try) 2>&5
32475 ac_status=$?
32476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32477 (exit $ac_status); }; }; then
32478 ac_cv_lib_iodbc_SQLAllocEnv=yes
32479else
32480 echo "$as_me: failed program was:" >&5
32481sed 's/^/| /' conftest.$ac_ext >&5
32482
32483ac_cv_lib_iodbc_SQLAllocEnv=no
32484fi
ac1cb8d3
VS
32485rm -f conftest.err conftest.$ac_objext \
32486 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32487LIBS=$ac_check_lib_save_LIBS
32488fi
32489echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
32490echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
32491if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
32492 ODBC_LINK=" -liodbc"
32493else
32494
32495 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
32496echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
32497if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
32498 echo $ECHO_N "(cached) $ECHO_C" >&6
32499else
32500 ac_check_lib_save_LIBS=$LIBS
32501LIBS="-lunixodbc $LIBS"
32502cat >conftest.$ac_ext <<_ACEOF
32503/* confdefs.h. */
32504_ACEOF
32505cat confdefs.h >>conftest.$ac_ext
32506cat >>conftest.$ac_ext <<_ACEOF
32507/* end confdefs.h. */
32508
32509/* Override any gcc2 internal prototype to avoid an error. */
32510#ifdef __cplusplus
32511extern "C"
32512#endif
32513/* We use char because int might match the return type of a gcc2
32514 builtin and then its argument prototype would still apply. */
32515char SQLAllocEnv ();
32516int
32517main ()
32518{
32519SQLAllocEnv ();
32520 ;
32521 return 0;
32522}
32523_ACEOF
32524rm -f conftest.$ac_objext conftest$ac_exeext
32525if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32526 (eval $ac_link) 2>conftest.er1
a848cd7e 32527 ac_status=$?
ac1cb8d3
VS
32528 grep -v '^ *+' conftest.er1 >conftest.err
32529 rm -f conftest.er1
32530 cat conftest.err >&5
a848cd7e
SC
32531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32532 (exit $ac_status); } &&
3ea50042 32533 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32535 (eval $ac_try) 2>&5
32536 ac_status=$?
32537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32538 (exit $ac_status); }; } &&
32539 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32541 (eval $ac_try) 2>&5
32542 ac_status=$?
32543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32544 (exit $ac_status); }; }; then
32545 ac_cv_lib_unixodbc_SQLAllocEnv=yes
32546else
32547 echo "$as_me: failed program was:" >&5
32548sed 's/^/| /' conftest.$ac_ext >&5
32549
32550ac_cv_lib_unixodbc_SQLAllocEnv=no
32551fi
ac1cb8d3
VS
32552rm -f conftest.err conftest.$ac_objext \
32553 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32554LIBS=$ac_check_lib_save_LIBS
32555fi
32556echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
32557echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
32558if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
32559 ODBC_LINK=" -lunixodbc"
32560else
32561
32562 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
32563echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
32564if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
32565 echo $ECHO_N "(cached) $ECHO_C" >&6
32566else
32567 ac_check_lib_save_LIBS=$LIBS
32568LIBS="-lodbc $LIBS"
32569cat >conftest.$ac_ext <<_ACEOF
32570/* confdefs.h. */
32571_ACEOF
32572cat confdefs.h >>conftest.$ac_ext
32573cat >>conftest.$ac_ext <<_ACEOF
32574/* end confdefs.h. */
32575
32576/* Override any gcc2 internal prototype to avoid an error. */
32577#ifdef __cplusplus
32578extern "C"
32579#endif
32580/* We use char because int might match the return type of a gcc2
32581 builtin and then its argument prototype would still apply. */
32582char SQLAllocEnv ();
32583int
32584main ()
32585{
32586SQLAllocEnv ();
32587 ;
32588 return 0;
32589}
32590_ACEOF
32591rm -f conftest.$ac_objext conftest$ac_exeext
32592if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32593 (eval $ac_link) 2>conftest.er1
a848cd7e 32594 ac_status=$?
ac1cb8d3
VS
32595 grep -v '^ *+' conftest.er1 >conftest.err
32596 rm -f conftest.er1
32597 cat conftest.err >&5
a848cd7e
SC
32598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32599 (exit $ac_status); } &&
3ea50042 32600 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32602 (eval $ac_try) 2>&5
32603 ac_status=$?
32604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32605 (exit $ac_status); }; } &&
32606 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32608 (eval $ac_try) 2>&5
32609 ac_status=$?
32610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32611 (exit $ac_status); }; }; then
32612 ac_cv_lib_odbc_SQLAllocEnv=yes
32613else
32614 echo "$as_me: failed program was:" >&5
32615sed 's/^/| /' conftest.$ac_ext >&5
32616
32617ac_cv_lib_odbc_SQLAllocEnv=no
32618fi
ac1cb8d3
VS
32619rm -f conftest.err conftest.$ac_objext \
32620 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32621LIBS=$ac_check_lib_save_LIBS
32622fi
32623echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
32624echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
32625if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
32626 ODBC_LINK=" -lodbc"
32627fi
32628
32629
32630fi
32631
32632
32633fi
32634
32635 fi
32636 if test "x$ODBC_LINK" = "x" ; then
32637 if test "$wxUSE_ODBC" = "sys" ; then
32638 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
32639echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
32640 { (exit 1); exit 1; }; }
32641 else
32642 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
32643echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
32644 wxUSE_ODBC=builtin
32645 fi
32646 else
32647 wxUSE_ODBC=sys
32648 fi
32649 fi
a848cd7e 32650
2da0c077
RD
32651 if test "$wxUSE_ODBC" = "builtin" ; then
32652 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
32653#define wxUSE_BUILTIN_IODBC 1
32654_ACEOF
32655
a848cd7e
SC
32656 fi
32657fi
32658
2da0c077
RD
32659if test "$wxUSE_ODBC" != "no" ; then
32660 cat >>confdefs.h <<\_ACEOF
32661#define wxUSE_ODBC 1
32662_ACEOF
32663
32664 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
32665
5ff751d6 32666 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_IODBC_"
2da0c077 32667fi
a848cd7e 32668
01cb68df 32669
a848cd7e 32670if test "$wxUSE_DISPLAY" = "yes"; then
2a5d7a98 32671 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
a848cd7e
SC
32672 echo "$as_me:$LINENO: checking for Xinerama" >&5
32673echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
32674
0ad5d837
VZ
32675 ac_find_libraries=
32676 for ac_dir in $SEARCH_LIB;
32677 do
32678 for ac_extension in a so sl dylib dll.a; do
32679 if test -f "$ac_dir/libXinerama.$ac_extension"; then
32680 ac_find_libraries=$ac_dir
32681 break 2
32682 fi
32683 done
32684 done
32685
a848cd7e
SC
32686 if test "$ac_find_libraries" != "" ; then
32687
0ad5d837 32688 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
32689 ac_path_to_link=""
32690 else
0ad5d837
VZ
32691 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
32692 result=$?
32693 if test $result = 0; then
32694 ac_path_to_link=""
32695 else
32696 ac_path_to_link=" -L$ac_find_libraries"
32697 fi
a848cd7e
SC
32698 fi
32699
32700 if test "$ac_path_to_link" != " -L/usr/lib" ; then
32701 LDFLAGS="$LDFLAGS $ac_path_to_link"
32702 fi
32703 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
32704 echo "$as_me:$LINENO: result: yes" >&5
32705echo "${ECHO_T}yes" >&6
32706
32707 echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
32708echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
32709
0ad5d837
VZ
32710 ac_find_libraries=
32711 for ac_dir in $SEARCH_LIB;
a848cd7e 32712 do
3eca31dc 32713 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
32714 if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
32715 ac_find_libraries=$ac_dir
32716 break 2
32717 fi
32718 done
32719 done
32720
32721 if test "$ac_find_libraries" != "" ; then
32722 echo "$as_me:$LINENO: result: yes" >&5
32723echo "${ECHO_T}yes" >&6
32724
32725for ac_header in X11/extensions/xf86vmode.h
32726do
32727as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32728echo "$as_me:$LINENO: checking for $ac_header" >&5
32729echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32730if eval "test \"\${$as_ac_Header+set}\" = set"; then
32731 echo $ECHO_N "(cached) $ECHO_C" >&6
32732else
32733 cat >conftest.$ac_ext <<_ACEOF
32734/* confdefs.h. */
32735_ACEOF
32736cat confdefs.h >>conftest.$ac_ext
32737cat >>conftest.$ac_ext <<_ACEOF
32738/* end confdefs.h. */
32739
32740 #if HAVE_X11_XLIB_H
32741 #include <X11/Xlib.h>
32742 #endif
32743
32744
32745#include <$ac_header>
32746_ACEOF
32747rm -f conftest.$ac_objext
32748if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32749 (eval $ac_compile) 2>conftest.er1
a848cd7e 32750 ac_status=$?
ac1cb8d3
VS
32751 grep -v '^ *+' conftest.er1 >conftest.err
32752 rm -f conftest.er1
32753 cat conftest.err >&5
a848cd7e
SC
32754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32755 (exit $ac_status); } &&
3ea50042 32756 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32758 (eval $ac_try) 2>&5
32759 ac_status=$?
32760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32761 (exit $ac_status); }; } &&
32762 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32764 (eval $ac_try) 2>&5
32765 ac_status=$?
32766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32767 (exit $ac_status); }; }; then
32768 eval "$as_ac_Header=yes"
32769else
32770 echo "$as_me: failed program was:" >&5
32771sed 's/^/| /' conftest.$ac_ext >&5
32772
32773eval "$as_ac_Header=no"
32774fi
ac1cb8d3 32775rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32776fi
32777echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32778echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32779if test `eval echo '${'$as_ac_Header'}'` = yes; then
32780 cat >>confdefs.h <<_ACEOF
32781#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32782_ACEOF
32783
32784 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
32785
32786fi
32787
32788done
32789
32790 else
32791 echo "$as_me:$LINENO: result: no" >&5
32792echo "${ECHO_T}no" >&6
32793 fi
32794
32795 else
32796 echo "$as_me:$LINENO: result: no" >&5
32797echo "${ECHO_T}no" >&6
dcc1b6ad
VS
32798 { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
32799echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
a848cd7e
SC
32800 wxUSE_DISPLAY="no"
32801 fi
01cb68df
RG
32802 elif test "$wxUSE_MSW" = 1; then
32803
e5efa97e 32804for ac_header in ddraw.h
01cb68df
RG
32805do
32806as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5294a27e 32807echo "$as_me:$LINENO: checking for $ac_header" >&5
01cb68df
RG
32808echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32809if eval "test \"\${$as_ac_Header+set}\" = set"; then
32810 echo $ECHO_N "(cached) $ECHO_C" >&6
01cb68df 32811else
5294a27e 32812 cat >conftest.$ac_ext <<_ACEOF
01cb68df
RG
32813/* confdefs.h. */
32814_ACEOF
32815cat confdefs.h >>conftest.$ac_ext
32816cat >>conftest.$ac_ext <<_ACEOF
32817/* end confdefs.h. */
5294a27e
VZ
32818#include <windows.h>
32819
01cb68df
RG
32820#include <$ac_header>
32821_ACEOF
32822rm -f conftest.$ac_objext
32823if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32824 (eval $ac_compile) 2>conftest.er1
01cb68df 32825 ac_status=$?
ac1cb8d3
VS
32826 grep -v '^ *+' conftest.er1 >conftest.err
32827 rm -f conftest.er1
32828 cat conftest.err >&5
01cb68df
RG
32829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32830 (exit $ac_status); } &&
3ea50042 32831 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32833 (eval $ac_try) 2>&5
32834 ac_status=$?
32835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32836 (exit $ac_status); }; } &&
32837 { ac_try='test -s conftest.$ac_objext'
01cb68df
RG
32838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32839 (eval $ac_try) 2>&5
32840 ac_status=$?
32841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32842 (exit $ac_status); }; }; then
5294a27e 32843 eval "$as_ac_Header=yes"
01cb68df
RG
32844else
32845 echo "$as_me: failed program was:" >&5
32846sed 's/^/| /' conftest.$ac_ext >&5
32847
5294a27e 32848eval "$as_ac_Header=no"
01cb68df 32849fi
ac1cb8d3 32850rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
01cb68df
RG
32851fi
32852echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32853echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
01cb68df
RG
32854if test `eval echo '${'$as_ac_Header'}'` = yes; then
32855 cat >>confdefs.h <<_ACEOF
32856#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32857_ACEOF
32858
01cb68df
RG
32859fi
32860
32861done
32862
a848cd7e
SC
32863 fi
32864fi
32865
32866
32867USE_OPENGL=0
32868if test "$wxUSE_OPENGL" = "yes"; then
32869 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
32870 OPENGL_LIBS="-framework OpenGL -framework AGL"
32871 elif test "$wxUSE_MSW" = 1; then
32872 OPENGL_LIBS="-lopengl32 -lglu32"
32873 else
32874
32875
32876ac_find_includes=
32877for ac_dir in $SEARCH_INCLUDE /usr/include;
32878 do
32879 if test -f "$ac_dir/GL/gl.h"; then
32880 ac_find_includes=$ac_dir
32881 break
32882 fi
32883 done
32884
32885 if test "$ac_find_includes" != "" ; then
32886 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
32887echo "${ECHO_T}found in $ac_find_includes" >&6
32888
32889 if test "x$ac_find_includes" = "x/usr/include"; then
32890 ac_path_to_include=""
32891 else
32892 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
32893 result=$?
32894 if test $result = 0; then
32895 ac_path_to_include=""
32896 else
32897 ac_path_to_include=" -I$ac_find_includes"
32898 fi
32899 fi
32900
c92ad099 32901 CPPFLAGS="$ac_path_to_include $CPPFLAGS"
a848cd7e
SC
32902 fi
32903
32904 if test "${ac_cv_header_GL_gl_h+set}" = set; then
32905 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
32906echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
32907if test "${ac_cv_header_GL_gl_h+set}" = set; then
32908 echo $ECHO_N "(cached) $ECHO_C" >&6
32909fi
32910echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
32911echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
32912else
32913 # Is the header compilable?
32914echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
32915echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
32916cat >conftest.$ac_ext <<_ACEOF
32917/* confdefs.h. */
32918_ACEOF
32919cat confdefs.h >>conftest.$ac_ext
32920cat >>conftest.$ac_ext <<_ACEOF
32921/* end confdefs.h. */
32922$ac_includes_default
32923#include <GL/gl.h>
32924_ACEOF
32925rm -f conftest.$ac_objext
32926if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32927 (eval $ac_compile) 2>conftest.er1
a848cd7e 32928 ac_status=$?
ac1cb8d3
VS
32929 grep -v '^ *+' conftest.er1 >conftest.err
32930 rm -f conftest.er1
32931 cat conftest.err >&5
a848cd7e
SC
32932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32933 (exit $ac_status); } &&
3ea50042 32934 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32936 (eval $ac_try) 2>&5
32937 ac_status=$?
32938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32939 (exit $ac_status); }; } &&
32940 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32942 (eval $ac_try) 2>&5
32943 ac_status=$?
32944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32945 (exit $ac_status); }; }; then
32946 ac_header_compiler=yes
32947else
32948 echo "$as_me: failed program was:" >&5
32949sed 's/^/| /' conftest.$ac_ext >&5
32950
32951ac_header_compiler=no
32952fi
ac1cb8d3 32953rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32954echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32955echo "${ECHO_T}$ac_header_compiler" >&6
32956
32957# Is the header present?
32958echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
32959echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
32960cat >conftest.$ac_ext <<_ACEOF
32961/* confdefs.h. */
32962_ACEOF
32963cat confdefs.h >>conftest.$ac_ext
32964cat >>conftest.$ac_ext <<_ACEOF
32965/* end confdefs.h. */
32966#include <GL/gl.h>
32967_ACEOF
32968if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32969 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32970 ac_status=$?
32971 grep -v '^ *+' conftest.er1 >conftest.err
32972 rm -f conftest.er1
32973 cat conftest.err >&5
32974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32975 (exit $ac_status); } >/dev/null; then
32976 if test -s conftest.err; then
5d7b7554
VZ
32977 ac_cpp_err=$ac_cxx_preproc_warn_flag
32978 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
32979 else
32980 ac_cpp_err=
32981 fi
32982else
32983 ac_cpp_err=yes
32984fi
32985if test -z "$ac_cpp_err"; then
32986 ac_header_preproc=yes
32987else
32988 echo "$as_me: failed program was:" >&5
32989sed 's/^/| /' conftest.$ac_ext >&5
32990
32991 ac_header_preproc=no
32992fi
32993rm -f conftest.err conftest.$ac_ext
32994echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32995echo "${ECHO_T}$ac_header_preproc" >&6
32996
32997# So? What about this header?
5d7b7554 32998case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 32999 yes:no: )
a848cd7e
SC
33000 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
33001echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
33002 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
33003echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
33004 ac_header_preproc=yes
a848cd7e 33005 ;;
ac1cb8d3 33006 no:yes:* )
a848cd7e
SC
33007 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
33008echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
33009 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
33010echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
33011 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
33012echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
33013 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
33014echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
33015 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
33016echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
33017 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
33018echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
33019 (
33020 cat <<\_ASBOX
ac1cb8d3
VS
33021## ----------------------------------------- ##
33022## Report this to wx-dev@lists.wxwidgets.org ##
33023## ----------------------------------------- ##
a848cd7e
SC
33024_ASBOX
33025 ) |
33026 sed "s/^/$as_me: WARNING: /" >&2
33027 ;;
33028esac
33029echo "$as_me:$LINENO: checking for GL/gl.h" >&5
33030echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
33031if test "${ac_cv_header_GL_gl_h+set}" = set; then
33032 echo $ECHO_N "(cached) $ECHO_C" >&6
33033else
33034 ac_cv_header_GL_gl_h=$ac_header_preproc
33035fi
33036echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
33037echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
33038
33039fi
33040if test $ac_cv_header_GL_gl_h = yes; then
33041
33042 found_gl=0
33043
33044 echo "$as_me:$LINENO: checking for -lGL" >&5
33045echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
33046
0ad5d837
VZ
33047 ac_find_libraries=
33048 for ac_dir in $SEARCH_LIB;
a848cd7e 33049 do
3eca31dc 33050 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
33051 if test -f "$ac_dir/libGL.$ac_extension"; then
33052 ac_find_libraries=$ac_dir
33053 break 2
33054 fi
33055 done
33056 done
33057
33058 if test "$ac_find_libraries" != "" ; then
69120ee4
VZ
33059 echo "$as_me:$LINENO: result: yes" >&5
33060echo "${ECHO_T}yes" >&6
33061
a848cd7e 33062
0ad5d837 33063 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
33064 ac_path_to_link=""
33065 else
0ad5d837
VZ
33066 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
33067 result=$?
33068 if test $result = 0; then
33069 ac_path_to_link=""
33070 else
33071 ac_path_to_link=" -L$ac_find_libraries"
33072 fi
a848cd7e
SC
33073 fi
33074
33075 if test "$ac_path_to_link" != " -L/usr/lib" ; then
33076 LDFLAGS_GL="$ac_path_to_link"
33077 fi
33078
69120ee4
VZ
33079 echo "$as_me:$LINENO: checking for -lGLU" >&5
33080echo $ECHO_N "checking for -lGLU... $ECHO_C" >&6
a848cd7e 33081
0ad5d837
VZ
33082 ac_find_libraries=
33083 for ac_dir in $SEARCH_LIB;
33084 do
33085 for ac_extension in a so sl dylib dll.a; do
33086 if test -f "$ac_dir/libGLU.$ac_extension"; then
33087 ac_find_libraries=$ac_dir
33088 break 2
33089 fi
33090 done
33091 done
33092
a848cd7e
SC
33093 if test "$ac_find_libraries" != "" ; then
33094
0ad5d837 33095 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
33096 ac_path_to_link=""
33097 else
0ad5d837
VZ
33098 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
33099 result=$?
33100 if test $result = 0; then
33101 ac_path_to_link=""
33102 else
33103 ac_path_to_link=" -L$ac_find_libraries"
33104 fi
a848cd7e
SC
33105 fi
33106
33107 if test "$ac_path_to_link" != " -L/usr/lib" -a \
33108 "$ac_path_to_link" != "$LDFLAGS_GL"; then
33109 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
33110 fi
33111
33112 found_gl=1
33113 OPENGL_LIBS="-lGL -lGLU"
33114 echo "$as_me:$LINENO: result: yes" >&5
33115echo "${ECHO_T}yes" >&6
69120ee4
VZ
33116 else
33117 echo "$as_me:$LINENO: result: no" >&5
33118echo "${ECHO_T}no" >&6
a848cd7e 33119 fi
69120ee4
VZ
33120 else
33121 echo "$as_me:$LINENO: result: no" >&5
33122echo "${ECHO_T}no" >&6
a848cd7e
SC
33123 fi
33124
33125 if test "$found_gl" != 1; then
a848cd7e
SC
33126 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
33127echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
33128
0ad5d837
VZ
33129 ac_find_libraries=
33130 for ac_dir in $SEARCH_LIB;
a848cd7e 33131 do
3eca31dc 33132 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
33133 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
33134 ac_find_libraries=$ac_dir
33135 break 2
33136 fi
33137 done
33138 done
33139
33140 if test "$ac_find_libraries" != "" ; then
33141
0ad5d837 33142 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
33143 ac_path_to_link=""
33144 else
0ad5d837
VZ
33145 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
33146 result=$?
33147 if test $result = 0; then
33148 ac_path_to_link=""
33149 else
33150 ac_path_to_link=" -L$ac_find_libraries"
33151 fi
a848cd7e
SC
33152 fi
33153
33154 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
33155 OPENGL_LIBS="-lMesaGL -lMesaGLU"
33156 echo "$as_me:$LINENO: result: yes" >&5
33157echo "${ECHO_T}yes" >&6
33158 else
33159 echo "$as_me:$LINENO: result: no" >&5
33160echo "${ECHO_T}no" >&6
33161 fi
33162 fi
33163
33164fi
33165
33166
33167
33168 if test "x$OPENGL_LIBS" = "x"; then
33169 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
33170echo "$as_me: error: OpenGL libraries not available" >&2;}
33171 { (exit 1); exit 1; }; }
33172 fi
33173 fi
33174
33175 if test "$wxUSE_OPENGL" = "yes"; then
33176 USE_OPENGL=1
33177 cat >>confdefs.h <<\_ACEOF
33178#define wxUSE_OPENGL 1
33179_ACEOF
33180
33181 cat >>confdefs.h <<\_ACEOF
33182#define wxUSE_GLCANVAS 1
33183_ACEOF
33184
33185 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
33186 fi
33187fi
33188
a848cd7e
SC
33189
33190if test -n "$TOOLKIT" ; then
33191 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
33192fi
33193
a848cd7e
SC
33194
33195
33196if test "$wxUSE_SHARED" = "yes"; then
33197 case "${host}" in
33198 *-pc-msdosdjgpp )
33199 wxUSE_SHARED=no
33200 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
33201echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
33202 ;;
33203 esac
33204fi
33205
a848cd7e 33206if test "$wxUSE_SHARED" = "yes"; then
a848cd7e
SC
33207
33208
33209 found_versioning=no
33210
33211
33212 if test $found_versioning = no ; then
33213 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
33214echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
33215if test "${wx_cv_version_script+set}" = set; then
33216 echo $ECHO_N "(cached) $ECHO_C" >&6
33217else
33218
33219 echo "VER_1 { *; };" >conftest.sym
33220 echo "int main() { return 0; }" >conftest.cpp
33221
33222 if { ac_try='
33223 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
33224 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
33225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33226 (eval $ac_try) 2>&5
33227 ac_status=$?
33228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33229 (exit $ac_status); }; } ; then
33230 if test -s conftest.stderr ; then
33231 wx_cv_version_script=no
33232 else
33233 wx_cv_version_script=yes
33234 fi
33235 else
33236 wx_cv_version_script=no
33237 fi
e5d4b470
MW
33238
33239 if test $wx_cv_version_script = yes
33240 then
33241 echo "struct B { virtual ~B() { } }; \
33242 struct D : public B { }; \
33243 void F() { D d; }" > conftest.cpp
33244
33245 if { ac_try='
33246 $CXX -shared -fPIC -o conftest1.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
33247 -Wl,--version-script,conftest.sym >/dev/null 2>/dev/null'
33248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33249 (eval $ac_try) 2>&5
33250 ac_status=$?
33251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33252 (exit $ac_status); }; } &&
33253 { ac_try='
33254 $CXX -shared -fPIC -o conftest2.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
33255 -Wl,--version-script,conftest.sym conftest1.output >/dev/null 2>/dev/null'
33256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33257 (eval $ac_try) 2>&5
33258 ac_status=$?
33259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33260 (exit $ac_status); }; }
33261 then
33262 if { ac_try='
33263 $CXX -shared -fPIC -o conftest3.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
33264 -Wl,--version-script,conftest.sym conftest2.output conftest1.output >/dev/null 2>/dev/null'
33265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33266 (eval $ac_try) 2>&5
33267 ac_status=$?
33268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33269 (exit $ac_status); }; }
33270 then
33271 wx_cv_version_script=yes
33272 else
33273 wx_cv_version_script=no
33274 fi
33275 fi
33276 fi
33277
a848cd7e 33278 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
e5d4b470 33279 rm -f conftest1.output conftest2.output conftest3.output
a848cd7e
SC
33280
33281fi
33282echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
33283echo "${ECHO_T}$wx_cv_version_script" >&6
33284 if test $wx_cv_version_script = yes ; then
33285 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
33286 fi
33287 fi
33288
33289
33290 case "${host}" in
33291 *-*-linux* | *-*-gnu* )
33292 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 33293 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
6ebeb4c7 33294 ;;
a848cd7e
SC
33295
33296 *-*-solaris2* )
33297 if test "$GCC" = yes ; then
c92ad099 33298 CPPFLAGS="-isystem /usr/openwin/include $CPPFLAGS"
a848cd7e
SC
33299
33300 saveLdflags="$LDFLAGS"
33301 LDFLAGS="$saveLdflags -Wl,-rpath,/"
33302 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
33303echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
33304 cat >conftest.$ac_ext <<_ACEOF
33305/* confdefs.h. */
33306_ACEOF
33307cat confdefs.h >>conftest.$ac_ext
33308cat >>conftest.$ac_ext <<_ACEOF
33309/* end confdefs.h. */
33310
33311int
33312main ()
33313{
33314
33315 ;
33316 return 0;
33317}
33318_ACEOF
33319rm -f conftest.$ac_objext conftest$ac_exeext
33320if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33321 (eval $ac_link) 2>conftest.er1
a848cd7e 33322 ac_status=$?
ac1cb8d3
VS
33323 grep -v '^ *+' conftest.er1 >conftest.err
33324 rm -f conftest.er1
33325 cat conftest.err >&5
a848cd7e
SC
33326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33327 (exit $ac_status); } &&
3ea50042 33328 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33330 (eval $ac_try) 2>&5
33331 ac_status=$?
33332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33333 (exit $ac_status); }; } &&
33334 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33336 (eval $ac_try) 2>&5
33337 ac_status=$?
33338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33339 (exit $ac_status); }; }; then
33340
33341 echo "$as_me:$LINENO: result: yes" >&5
33342echo "${ECHO_T}yes" >&6
33343 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 33344 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
a848cd7e
SC
33345
33346else
33347 echo "$as_me: failed program was:" >&5
33348sed 's/^/| /' conftest.$ac_ext >&5
33349
33350
33351 echo "$as_me:$LINENO: result: no" >&5
33352echo "${ECHO_T}no" >&6
33353 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
33354echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
33355 LDFLAGS="$saveLdflags -Wl,-R,/"
33356 cat >conftest.$ac_ext <<_ACEOF
33357/* confdefs.h. */
33358_ACEOF
33359cat confdefs.h >>conftest.$ac_ext
33360cat >>conftest.$ac_ext <<_ACEOF
33361/* end confdefs.h. */
33362
33363int
33364main ()
33365{
33366
33367 ;
33368 return 0;
33369}
33370_ACEOF
33371rm -f conftest.$ac_objext conftest$ac_exeext
33372if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33373 (eval $ac_link) 2>conftest.er1
a848cd7e 33374 ac_status=$?
ac1cb8d3
VS
33375 grep -v '^ *+' conftest.er1 >conftest.err
33376 rm -f conftest.er1
33377 cat conftest.err >&5
a848cd7e
SC
33378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33379 (exit $ac_status); } &&
3ea50042 33380 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33382 (eval $ac_try) 2>&5
33383 ac_status=$?
33384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33385 (exit $ac_status); }; } &&
33386 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33388 (eval $ac_try) 2>&5
33389 ac_status=$?
33390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33391 (exit $ac_status); }; }; then
33392
ffa0583f 33393 echo "$as_me:$LINENO: result: yes" >&5
a848cd7e 33394echo "${ECHO_T}yes" >&6
ffa0583f
RL
33395 SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
33396 WXCONFIG_RPATH="-Wl,-R,\$libdir"
33397
a848cd7e
SC
33398else
33399 echo "$as_me: failed program was:" >&5
33400sed 's/^/| /' conftest.$ac_ext >&5
33401
33402
33403 echo "$as_me:$LINENO: result: no" >&5
33404echo "${ECHO_T}no" >&6
33405
33406fi
ac1cb8d3
VS
33407rm -f conftest.err conftest.$ac_objext \
33408 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33409
33410fi
ac1cb8d3
VS
33411rm -f conftest.err conftest.$ac_objext \
33412 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33413 LDFLAGS="$saveLdflags"
33414 else
a848cd7e 33415 SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
ffa0583f 33416 WXCONFIG_RPATH="-R\$libdir"
a848cd7e
SC
33417 fi
33418 ;;
33419
cfda0ea8 33420 *-*-darwin* )
0caebc27
MW
33421 install_name_tool=`which install_name_tool`
33422 if test "$install_name_tool" -a -x "$install_name_tool"; then
33423 SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
33424 cat <<EOF >change-install-names
a848cd7e
SC
33425#!/bin/sh
33426libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
33427inst_cmd="install_name_tool "
33428for i in \${libnames} ; do
33429 inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
33430done
33431\${inst_cmd} \${3}
33432EOF
0caebc27
MW
33433 chmod +x change-install-names
33434 fi
a848cd7e
SC
33435 ;;
33436
33437 *-*-cygwin* | *-*-mingw32* )
5ff751d6
VZ
33438 WXCONFIG_ONLY_CPPFLAGS="$WXCONFIG_ONLY_CPPFLAGS -DWXUSINGDLL"
33439 ;;
a848cd7e 33440
81f90336
MW
33441 *-*-hpux* )
33442 SAMPLES_RPATH_FLAG="-Wl,+b,\$(top_builddir)lib"
33443 WXCONFIG_RPATH="-Wl,+b,\$libdir"
5ff751d6 33444 ;;
81f90336 33445
a848cd7e 33446 esac
ceec2216 33447
ffa0583f
RL
33448 if test $wxUSE_RPATH = "no"; then
33449 SAMPLES_RPATH_FLAG=''
33450 SAMPLES_RPATH_POSTLINK=''
33451 WXCONFIG_RPATH=''
33452 fi
33453
33454 SHARED=1
33455
33456else
33457
ceec2216
RL
33458 config_linkage_component="-static"
33459 SHARED=0
ffa0583f 33460
ceec2216 33461fi
a848cd7e 33462
a848cd7e 33463
ceec2216
RL
33464UNICODE=0
33465lib_unicode_suffix=
33466WX_CHARTYPE="ansi"
33467if test "$wxUSE_UNICODE" = "yes"; then
33468 lib_unicode_suffix=u
33469 WX_CHARTYPE="unicode"
33470 UNICODE=1
a848cd7e
SC
33471fi
33472
ceec2216
RL
33473lib_debug_suffix=
33474WX_DEBUGTYPE="release"
33475DEBUG_FLAG=0
33476if test "$wxUSE_DEBUG_FLAG" = "yes"; then
33477 lib_debug_suffix=d
33478 WX_DEBUGTYPE="debug"
33479 DEBUG_FLAG=1
33480fi
a848cd7e 33481
ceec2216
RL
33482WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
33483WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
a848cd7e 33484
ceec2216
RL
33485DEBUG_INFO=0
33486if test "$wxUSE_DEBUG_INFO" = "yes"; then
33487 DEBUG_INFO=1
33488fi
a848cd7e 33489
ceec2216 33490WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
a848cd7e 33491
ceec2216 33492TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}"
a848cd7e 33493
ceec2216 33494TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
a848cd7e 33495
ceec2216
RL
33496if test "$cross_compiling" = "yes"; then
33497 HOST_SUFFIX="-$host_alias"
33498 TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX"
33499 TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME"
a848cd7e
SC
33500fi
33501
dd21ced8 33502WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
abc736fd
MW
33503if test "${TOOLKIT_DIR}" = "os2"; then
33504 WX_LIBRARY_BASENAME_GUI="wx_pm${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
33505else
33506 WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
33507fi
ceec2216
RL
33508
33509
33510
1d1af5ea
DE
33511if test "$wxUSE_COCOA" = 1; then
33512
33513
33514 ac_ext=c
33515ac_cpp='$CPP $CPPFLAGS'
33516ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33517ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33518ac_compiler_gnu=$ac_cv_c_compiler_gnu
33519
33520ac_ext=m
33521
33522 echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5
33523echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6
33524 cat >conftest.$ac_ext <<_ACEOF
33525/* confdefs.h. */
33526_ACEOF
33527cat confdefs.h >>conftest.$ac_ext
33528cat >>conftest.$ac_ext <<_ACEOF
33529/* end confdefs.h. */
33530#include <AppKit/NSEvent.h>
33531#include <CoreFoundation/CoreFoundation.h>
33532
33533int
33534main ()
33535{
33536
33537 ;
33538 return 0;
33539}
33540_ACEOF
33541rm -f conftest.$ac_objext
33542if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33543 (eval $ac_compile) 2>conftest.er1
33544 ac_status=$?
33545 grep -v '^ *+' conftest.er1 >conftest.err
33546 rm -f conftest.er1
33547 cat conftest.err >&5
33548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33549 (exit $ac_status); } &&
3ea50042 33550 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1d1af5ea
DE
33551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33552 (eval $ac_try) 2>&5
33553 ac_status=$?
33554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33555 (exit $ac_status); }; } &&
33556 { ac_try='test -s conftest.$ac_objext'
33557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33558 (eval $ac_try) 2>&5
33559 ac_status=$?
33560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33561 (exit $ac_status); }; }; then
33562 echo "$as_me:$LINENO: result: no" >&5
33563echo "${ECHO_T}no" >&6
33564else
33565 echo "$as_me: failed program was:" >&5
33566sed 's/^/| /' conftest.$ac_ext >&5
33567
33568echo "$as_me:$LINENO: result: yes" >&5
33569echo "${ECHO_T}yes" >&6
33570 echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5
33571echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6
33572 cat >conftest.$ac_ext <<_ACEOF
33573/* confdefs.h. */
33574_ACEOF
33575cat confdefs.h >>conftest.$ac_ext
33576cat >>conftest.$ac_ext <<_ACEOF
33577/* end confdefs.h. */
33578#define __Point__ 1
33579#include <AppKit/NSEvent.h>
33580#include <CoreFoundation/CoreFoundation.h>
33581
33582int
33583main ()
33584{
33585
33586 ;
33587 return 0;
33588}
33589_ACEOF
33590rm -f conftest.$ac_objext
33591if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33592 (eval $ac_compile) 2>conftest.er1
33593 ac_status=$?
33594 grep -v '^ *+' conftest.er1 >conftest.err
33595 rm -f conftest.er1
33596 cat conftest.err >&5
33597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33598 (exit $ac_status); } &&
3ea50042 33599 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1d1af5ea
DE
33600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33601 (eval $ac_try) 2>&5
33602 ac_status=$?
33603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33604 (exit $ac_status); }; } &&
33605 { ac_try='test -s conftest.$ac_objext'
33606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33607 (eval $ac_try) 2>&5
33608 ac_status=$?
33609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33610 (exit $ac_status); }; }; then
33611 echo "$as_me:$LINENO: result: yes" >&5
33612echo "${ECHO_T}yes" >&6
33613 cat >>confdefs.h <<\_ACEOF
33614#define __Point__ 1
33615_ACEOF
33616
33617
33618else
33619 echo "$as_me: failed program was:" >&5
33620sed 's/^/| /' conftest.$ac_ext >&5
33621
33622{ { echo "$as_me:$LINENO: error: no
33623See \`config.log' for more details." >&5
33624echo "$as_me: error: no
33625See \`config.log' for more details." >&2;}
33626 { (exit 1); exit 1; }; }
33627
33628fi
33629rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33630
33631fi
33632rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5d7b7554
VZ
33633 ac_ext=cc
33634ac_cpp='$CXXCPP $CPPFLAGS'
33635ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33636ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33637ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1d1af5ea
DE
33638
33639fi
33640
a848cd7e 33641if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
abb9aae7
VZ
33642 WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
33643 WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
ceec2216 33644
a848cd7e 33645 LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
a848cd7e
SC
33646
33647 # Extract the first word of "Rez", so it can be a program name with args.
33648set dummy Rez; ac_word=$2
33649echo "$as_me:$LINENO: checking for $ac_word" >&5
33650echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 33651if test "${ac_cv_prog_REZ+set}" = set; then
a848cd7e
SC
33652 echo $ECHO_N "(cached) $ECHO_C" >&6
33653else
8ced02f6
DE
33654 if test -n "$REZ"; then
33655 ac_cv_prog_REZ="$REZ" # Let the user override the test.
a848cd7e
SC
33656else
33657as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33658for as_dir in $PATH
33659do
33660 IFS=$as_save_IFS
33661 test -z "$as_dir" && as_dir=.
33662 for ac_exec_ext in '' $ac_executable_extensions; do
33663 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 33664 ac_cv_prog_REZ="Rez"
a848cd7e
SC
33665 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33666 break 2
33667 fi
33668done
33669done
33670
8ced02f6 33671 test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
a848cd7e
SC
33672fi
33673fi
8ced02f6
DE
33674REZ=$ac_cv_prog_REZ
33675if test -n "$REZ"; then
33676 echo "$as_me:$LINENO: result: $REZ" >&5
33677echo "${ECHO_T}$REZ" >&6
a848cd7e
SC
33678else
33679 echo "$as_me:$LINENO: result: no" >&5
33680echo "${ECHO_T}no" >&6
33681fi
33682
33683 # Extract the first word of "DeRez", so it can be a program name with args.
33684set dummy DeRez; ac_word=$2
33685echo "$as_me:$LINENO: checking for $ac_word" >&5
33686echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
33687if test "${ac_cv_prog_DEREZ+set}" = set; then
33688 echo $ECHO_N "(cached) $ECHO_C" >&6
33689else
33690 if test -n "$DEREZ"; then
33691 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
33692else
33693as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33694for as_dir in $PATH
33695do
33696 IFS=$as_save_IFS
33697 test -z "$as_dir" && as_dir=.
33698 for ac_exec_ext in '' $ac_executable_extensions; do
33699 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33700 ac_cv_prog_DEREZ="DeRez"
33701 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33702 break 2
33703 fi
33704done
33705done
33706
33707 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
33708fi
33709fi
33710DEREZ=$ac_cv_prog_DEREZ
33711if test -n "$DEREZ"; then
33712 echo "$as_me:$LINENO: result: $DEREZ" >&5
33713echo "${ECHO_T}$DEREZ" >&6
33714else
33715 echo "$as_me:$LINENO: result: no" >&5
33716echo "${ECHO_T}no" >&6
33717fi
33718
33719 # Extract the first word of "SetFile", so it can be a program name with args.
33720set dummy SetFile; ac_word=$2
33721echo "$as_me:$LINENO: checking for $ac_word" >&5
33722echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
33723if test "${ac_cv_prog_SETFILE+set}" = set; then
33724 echo $ECHO_N "(cached) $ECHO_C" >&6
33725else
33726 if test -n "$SETFILE"; then
33727 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
33728else
33729as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33730for as_dir in $PATH
33731do
33732 IFS=$as_save_IFS
33733 test -z "$as_dir" && as_dir=.
33734 for ac_exec_ext in '' $ac_executable_extensions; do
33735 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33736 ac_cv_prog_SETFILE="SetFile"
33737 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33738 break 2
33739 fi
33740done
33741done
33742
33743 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
33744fi
33745fi
33746SETFILE=$ac_cv_prog_SETFILE
33747if test -n "$SETFILE"; then
33748 echo "$as_me:$LINENO: result: $SETFILE" >&5
33749echo "${ECHO_T}$SETFILE" >&6
33750else
33751 echo "$as_me:$LINENO: result: no" >&5
33752echo "${ECHO_T}no" >&6
33753fi
33754
33755
33756 MACSETFILE="\$(SETFILE)"
33757
33758 if test "$wxUSE_MAC" = 1; then
8ced02f6 33759 POSTLINK_COMMAND="\$(REZ) -d __DARWIN__ -t APPL Carbon.r -o"
004ee6da
RL
33760 RESCOMP="$REZ"
33761 WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL Carbon.r -o"
a848cd7e 33762 else
004ee6da
RL
33763 POSTLINK_COMMAND="echo -n | \$(REZ) -d __DARWIN__ -t APPL ${LIBWXMACRES}"
33764 RESCOMP="echo -n \| $REZ"
33765 WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL \$libdir/$WX_RESOURCES_MACOSX_ASCII"
a848cd7e 33766 fi
004ee6da 33767
a848cd7e 33768else
ffa0583f 33769 MACSETFILE="@true"
a848cd7e 33770
8ced02f6 33771 if test "$wxUSE_PM" = 1; then
004ee6da
RL
33772 RESCOMP="emxbind"
33773 WXCONFIG_RESFLAGS="-ep"
33774
33775 POSTLINK_COMMAND="$RESCOMP $WXCONFIG_RESFLAGS"
a848cd7e 33776 else
8ced02f6 33777 POSTLINK_COMMAND="@true"
a848cd7e 33778 fi
004ee6da 33779
a848cd7e
SC
33780fi
33781
33782
33783
33784echo "$as_me:$LINENO: checking for mode_t" >&5
33785echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
33786if test "${ac_cv_type_mode_t+set}" = set; then
33787 echo $ECHO_N "(cached) $ECHO_C" >&6
33788else
33789 cat >conftest.$ac_ext <<_ACEOF
33790/* confdefs.h. */
33791_ACEOF
33792cat confdefs.h >>conftest.$ac_ext
33793cat >>conftest.$ac_ext <<_ACEOF
33794/* end confdefs.h. */
33795$ac_includes_default
33796int
33797main ()
33798{
33799if ((mode_t *) 0)
33800 return 0;
33801if (sizeof (mode_t))
33802 return 0;
33803 ;
33804 return 0;
33805}
33806_ACEOF
33807rm -f conftest.$ac_objext
33808if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33809 (eval $ac_compile) 2>conftest.er1
a848cd7e 33810 ac_status=$?
ac1cb8d3
VS
33811 grep -v '^ *+' conftest.er1 >conftest.err
33812 rm -f conftest.er1
33813 cat conftest.err >&5
a848cd7e
SC
33814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33815 (exit $ac_status); } &&
3ea50042 33816 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33818 (eval $ac_try) 2>&5
33819 ac_status=$?
33820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33821 (exit $ac_status); }; } &&
33822 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33824 (eval $ac_try) 2>&5
33825 ac_status=$?
33826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33827 (exit $ac_status); }; }; then
33828 ac_cv_type_mode_t=yes
33829else
33830 echo "$as_me: failed program was:" >&5
33831sed 's/^/| /' conftest.$ac_ext >&5
33832
33833ac_cv_type_mode_t=no
33834fi
ac1cb8d3 33835rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33836fi
33837echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
33838echo "${ECHO_T}$ac_cv_type_mode_t" >&6
33839if test $ac_cv_type_mode_t = yes; then
33840 :
33841else
33842
33843cat >>confdefs.h <<_ACEOF
33844#define mode_t int
33845_ACEOF
33846
33847fi
33848
33849echo "$as_me:$LINENO: checking for off_t" >&5
33850echo $ECHO_N "checking for off_t... $ECHO_C" >&6
33851if test "${ac_cv_type_off_t+set}" = set; then
33852 echo $ECHO_N "(cached) $ECHO_C" >&6
33853else
33854 cat >conftest.$ac_ext <<_ACEOF
33855/* confdefs.h. */
33856_ACEOF
33857cat confdefs.h >>conftest.$ac_ext
33858cat >>conftest.$ac_ext <<_ACEOF
33859/* end confdefs.h. */
33860$ac_includes_default
33861int
33862main ()
33863{
33864if ((off_t *) 0)
33865 return 0;
33866if (sizeof (off_t))
33867 return 0;
33868 ;
33869 return 0;
33870}
33871_ACEOF
33872rm -f conftest.$ac_objext
33873if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33874 (eval $ac_compile) 2>conftest.er1
a848cd7e 33875 ac_status=$?
ac1cb8d3
VS
33876 grep -v '^ *+' conftest.er1 >conftest.err
33877 rm -f conftest.er1
33878 cat conftest.err >&5
a848cd7e
SC
33879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33880 (exit $ac_status); } &&
3ea50042 33881 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33883 (eval $ac_try) 2>&5
33884 ac_status=$?
33885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33886 (exit $ac_status); }; } &&
33887 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33889 (eval $ac_try) 2>&5
33890 ac_status=$?
33891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33892 (exit $ac_status); }; }; then
33893 ac_cv_type_off_t=yes
33894else
33895 echo "$as_me: failed program was:" >&5
33896sed 's/^/| /' conftest.$ac_ext >&5
33897
33898ac_cv_type_off_t=no
33899fi
ac1cb8d3 33900rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33901fi
33902echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
33903echo "${ECHO_T}$ac_cv_type_off_t" >&6
33904if test $ac_cv_type_off_t = yes; then
33905 :
33906else
33907
33908cat >>confdefs.h <<_ACEOF
33909#define off_t long
33910_ACEOF
33911
33912fi
33913
33914echo "$as_me:$LINENO: checking for pid_t" >&5
33915echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
33916if test "${ac_cv_type_pid_t+set}" = set; then
33917 echo $ECHO_N "(cached) $ECHO_C" >&6
33918else
33919 cat >conftest.$ac_ext <<_ACEOF
33920/* confdefs.h. */
33921_ACEOF
33922cat confdefs.h >>conftest.$ac_ext
33923cat >>conftest.$ac_ext <<_ACEOF
33924/* end confdefs.h. */
33925$ac_includes_default
33926int
33927main ()
33928{
33929if ((pid_t *) 0)
33930 return 0;
33931if (sizeof (pid_t))
33932 return 0;
33933 ;
33934 return 0;
33935}
33936_ACEOF
33937rm -f conftest.$ac_objext
33938if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33939 (eval $ac_compile) 2>conftest.er1
a848cd7e 33940 ac_status=$?
ac1cb8d3
VS
33941 grep -v '^ *+' conftest.er1 >conftest.err
33942 rm -f conftest.er1
33943 cat conftest.err >&5
a848cd7e
SC
33944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33945 (exit $ac_status); } &&
3ea50042 33946 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33948 (eval $ac_try) 2>&5
33949 ac_status=$?
33950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33951 (exit $ac_status); }; } &&
33952 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33954 (eval $ac_try) 2>&5
33955 ac_status=$?
33956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33957 (exit $ac_status); }; }; then
33958 ac_cv_type_pid_t=yes
33959else
33960 echo "$as_me: failed program was:" >&5
33961sed 's/^/| /' conftest.$ac_ext >&5
33962
33963ac_cv_type_pid_t=no
33964fi
ac1cb8d3 33965rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33966fi
33967echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
33968echo "${ECHO_T}$ac_cv_type_pid_t" >&6
33969if test $ac_cv_type_pid_t = yes; then
33970 :
33971else
33972
33973cat >>confdefs.h <<_ACEOF
33974#define pid_t int
33975_ACEOF
33976
33977fi
33978
33979echo "$as_me:$LINENO: checking for size_t" >&5
33980echo $ECHO_N "checking for size_t... $ECHO_C" >&6
33981if test "${ac_cv_type_size_t+set}" = set; then
33982 echo $ECHO_N "(cached) $ECHO_C" >&6
33983else
33984 cat >conftest.$ac_ext <<_ACEOF
33985/* confdefs.h. */
33986_ACEOF
33987cat confdefs.h >>conftest.$ac_ext
33988cat >>conftest.$ac_ext <<_ACEOF
33989/* end confdefs.h. */
33990$ac_includes_default
33991int
33992main ()
33993{
33994if ((size_t *) 0)
33995 return 0;
33996if (sizeof (size_t))
33997 return 0;
33998 ;
33999 return 0;
34000}
34001_ACEOF
34002rm -f conftest.$ac_objext
34003if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34004 (eval $ac_compile) 2>conftest.er1
a848cd7e 34005 ac_status=$?
ac1cb8d3
VS
34006 grep -v '^ *+' conftest.er1 >conftest.err
34007 rm -f conftest.er1
34008 cat conftest.err >&5
a848cd7e
SC
34009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34010 (exit $ac_status); } &&
3ea50042 34011 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34013 (eval $ac_try) 2>&5
34014 ac_status=$?
34015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34016 (exit $ac_status); }; } &&
34017 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34019 (eval $ac_try) 2>&5
34020 ac_status=$?
34021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34022 (exit $ac_status); }; }; then
34023 ac_cv_type_size_t=yes
34024else
34025 echo "$as_me: failed program was:" >&5
34026sed 's/^/| /' conftest.$ac_ext >&5
34027
34028ac_cv_type_size_t=no
34029fi
ac1cb8d3 34030rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34031fi
34032echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
34033echo "${ECHO_T}$ac_cv_type_size_t" >&6
34034if test $ac_cv_type_size_t = yes; then
34035 :
34036else
34037
34038cat >>confdefs.h <<_ACEOF
34039#define size_t unsigned
34040_ACEOF
34041
34042fi
34043
34044echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
34045echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
34046if test "${ac_cv_type_uid_t+set}" = set; then
34047 echo $ECHO_N "(cached) $ECHO_C" >&6
34048else
34049 cat >conftest.$ac_ext <<_ACEOF
34050/* confdefs.h. */
34051_ACEOF
34052cat confdefs.h >>conftest.$ac_ext
34053cat >>conftest.$ac_ext <<_ACEOF
34054/* end confdefs.h. */
34055#include <sys/types.h>
34056
34057_ACEOF
34058if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34059 $EGREP "uid_t" >/dev/null 2>&1; then
34060 ac_cv_type_uid_t=yes
34061else
34062 ac_cv_type_uid_t=no
34063fi
34064rm -f conftest*
34065
34066fi
34067echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
34068echo "${ECHO_T}$ac_cv_type_uid_t" >&6
34069if test $ac_cv_type_uid_t = no; then
34070
34071cat >>confdefs.h <<\_ACEOF
34072#define uid_t int
34073_ACEOF
34074
34075
34076cat >>confdefs.h <<\_ACEOF
34077#define gid_t int
34078_ACEOF
34079
34080fi
34081
34082
d51253e8
RL
34083echo "$as_me:$LINENO: checking for ssize_t" >&5
34084echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
34085if test "${ac_cv_type_ssize_t+set}" = set; then
34086 echo $ECHO_N "(cached) $ECHO_C" >&6
34087else
34088 cat >conftest.$ac_ext <<_ACEOF
34089/* confdefs.h. */
34090_ACEOF
34091cat confdefs.h >>conftest.$ac_ext
34092cat >>conftest.$ac_ext <<_ACEOF
34093/* end confdefs.h. */
34094$ac_includes_default
34095int
34096main ()
34097{
34098if ((ssize_t *) 0)
34099 return 0;
34100if (sizeof (ssize_t))
34101 return 0;
34102 ;
34103 return 0;
34104}
34105_ACEOF
34106rm -f conftest.$ac_objext
34107if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34108 (eval $ac_compile) 2>conftest.er1
34109 ac_status=$?
34110 grep -v '^ *+' conftest.er1 >conftest.err
34111 rm -f conftest.er1
34112 cat conftest.err >&5
34113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34114 (exit $ac_status); } &&
3ea50042 34115 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
d51253e8
RL
34116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34117 (eval $ac_try) 2>&5
34118 ac_status=$?
34119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34120 (exit $ac_status); }; } &&
34121 { ac_try='test -s conftest.$ac_objext'
34122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34123 (eval $ac_try) 2>&5
34124 ac_status=$?
34125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34126 (exit $ac_status); }; }; then
34127 ac_cv_type_ssize_t=yes
34128else
34129 echo "$as_me: failed program was:" >&5
34130sed 's/^/| /' conftest.$ac_ext >&5
34131
34132ac_cv_type_ssize_t=no
34133fi
34134rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34135fi
34136echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
34137echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
34138if test $ac_cv_type_ssize_t = yes; then
34139
34140cat >>confdefs.h <<_ACEOF
34141#define HAVE_SSIZE_T 1
34142_ACEOF
34143
34144
34145fi
34146
34147
a848cd7e
SC
34148echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
34149echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
34150if test "${wx_cv_size_t_is_uint+set}" = set; then
34151 echo $ECHO_N "(cached) $ECHO_C" >&6
34152else
34153
34154 cat >conftest.$ac_ext <<_ACEOF
34155/* confdefs.h. */
34156_ACEOF
34157cat confdefs.h >>conftest.$ac_ext
34158cat >>conftest.$ac_ext <<_ACEOF
34159/* end confdefs.h. */
34160#include <stddef.h>
34161int
34162main ()
34163{
34164
34165 return 0; }
34166
34167 struct Foo { void foo(size_t); void foo(unsigned int); };
34168
34169 int bar() {
34170
34171 ;
34172 return 0;
34173}
34174_ACEOF
34175rm -f conftest.$ac_objext
34176if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34177 (eval $ac_compile) 2>conftest.er1
a848cd7e 34178 ac_status=$?
ac1cb8d3
VS
34179 grep -v '^ *+' conftest.er1 >conftest.err
34180 rm -f conftest.er1
34181 cat conftest.err >&5
a848cd7e
SC
34182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34183 (exit $ac_status); } &&
3ea50042 34184 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34186 (eval $ac_try) 2>&5
34187 ac_status=$?
34188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34189 (exit $ac_status); }; } &&
34190 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34192 (eval $ac_try) 2>&5
34193 ac_status=$?
34194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34195 (exit $ac_status); }; }; then
34196 wx_cv_size_t_is_uint=no
34197else
34198 echo "$as_me: failed program was:" >&5
34199sed 's/^/| /' conftest.$ac_ext >&5
34200
34201wx_cv_size_t_is_uint=yes
34202
34203fi
ac1cb8d3 34204rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34205
34206
34207fi
34208echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
34209echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
34210
34211if test "$wx_cv_size_t_is_uint" = "yes"; then
34212 cat >>confdefs.h <<\_ACEOF
34213#define wxSIZE_T_IS_UINT 1
34214_ACEOF
34215
34216else
34217 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
34218echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
34219if test "${wx_cv_size_t_is_ulong+set}" = set; then
34220 echo $ECHO_N "(cached) $ECHO_C" >&6
34221else
34222 cat >conftest.$ac_ext <<_ACEOF
34223/* confdefs.h. */
34224_ACEOF
34225cat confdefs.h >>conftest.$ac_ext
34226cat >>conftest.$ac_ext <<_ACEOF
34227/* end confdefs.h. */
34228#include <stddef.h>
34229int
34230main ()
34231{
34232
34233 return 0; }
34234
34235 struct Foo { void foo(size_t); void foo(unsigned long); };
34236
34237 int bar() {
34238
34239 ;
34240 return 0;
34241}
34242_ACEOF
34243rm -f conftest.$ac_objext
34244if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34245 (eval $ac_compile) 2>conftest.er1
a848cd7e 34246 ac_status=$?
ac1cb8d3
VS
34247 grep -v '^ *+' conftest.er1 >conftest.err
34248 rm -f conftest.er1
34249 cat conftest.err >&5
a848cd7e
SC
34250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34251 (exit $ac_status); } &&
3ea50042 34252 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34254 (eval $ac_try) 2>&5
34255 ac_status=$?
34256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34257 (exit $ac_status); }; } &&
34258 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34260 (eval $ac_try) 2>&5
34261 ac_status=$?
34262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34263 (exit $ac_status); }; }; then
34264 wx_cv_size_t_is_ulong=no
34265else
34266 echo "$as_me: failed program was:" >&5
34267sed 's/^/| /' conftest.$ac_ext >&5
34268
34269wx_cv_size_t_is_ulong=yes
34270
34271fi
ac1cb8d3 34272rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34273
34274fi
34275echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
34276echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
34277
34278 if test "$wx_cv_size_t_is_ulong" = "yes"; then
34279 cat >>confdefs.h <<\_ACEOF
34280#define wxSIZE_T_IS_ULONG 1
34281_ACEOF
34282
34283 fi
34284fi
34285
a848cd7e
SC
34286
34287echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
34288echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
34289if test "${wx_cv_struct_pw_gecos+set}" = set; then
34290 echo $ECHO_N "(cached) $ECHO_C" >&6
34291else
34292
34293 cat >conftest.$ac_ext <<_ACEOF
34294/* confdefs.h. */
34295_ACEOF
34296cat confdefs.h >>conftest.$ac_ext
34297cat >>conftest.$ac_ext <<_ACEOF
34298/* end confdefs.h. */
34299#include <pwd.h>
34300int
34301main ()
34302{
34303
34304 char *p;
34305 struct passwd *pw;
34306 p = pw->pw_gecos;
34307
34308 ;
34309 return 0;
34310}
34311_ACEOF
34312rm -f conftest.$ac_objext
34313if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34314 (eval $ac_compile) 2>conftest.er1
a848cd7e 34315 ac_status=$?
ac1cb8d3
VS
34316 grep -v '^ *+' conftest.er1 >conftest.err
34317 rm -f conftest.er1
34318 cat conftest.err >&5
a848cd7e
SC
34319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34320 (exit $ac_status); } &&
3ea50042 34321 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34323 (eval $ac_try) 2>&5
34324 ac_status=$?
34325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34326 (exit $ac_status); }; } &&
34327 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34329 (eval $ac_try) 2>&5
34330 ac_status=$?
34331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34332 (exit $ac_status); }; }; then
34333
34334 wx_cv_struct_pw_gecos=yes
34335
34336else
34337 echo "$as_me: failed program was:" >&5
34338sed 's/^/| /' conftest.$ac_ext >&5
34339
34340
34341 wx_cv_struct_pw_gecos=no
34342
34343
34344fi
ac1cb8d3 34345rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34346
34347
34348fi
34349echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
34350echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
34351
34352if test "$wx_cv_struct_pw_gecos" = "yes"; then
34353 cat >>confdefs.h <<\_ACEOF
34354#define HAVE_PW_GECOS 1
34355_ACEOF
34356
34357fi
34358
34359
47a7e797 34360if test "$wxUSE_WCHAR_T" = "yes"; then
a848cd7e
SC
34361 cat >>confdefs.h <<\_ACEOF
34362#define wxUSE_WCHAR_T 1
34363_ACEOF
34364
34365
34366 WCSLEN_FOUND=0
34367 WCHAR_LINK=
34368
34369for ac_func in wcslen
34370do
34371as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34372echo "$as_me:$LINENO: checking for $ac_func" >&5
34373echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34374if eval "test \"\${$as_ac_var+set}\" = set"; then
34375 echo $ECHO_N "(cached) $ECHO_C" >&6
34376else
34377 cat >conftest.$ac_ext <<_ACEOF
34378/* confdefs.h. */
34379_ACEOF
34380cat confdefs.h >>conftest.$ac_ext
34381cat >>conftest.$ac_ext <<_ACEOF
34382/* end confdefs.h. */
ac1cb8d3
VS
34383/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34384 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34385#define $ac_func innocuous_$ac_func
34386
a848cd7e
SC
34387/* System header to define __stub macros and hopefully few prototypes,
34388 which can conflict with char $ac_func (); below.
34389 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34390 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34391
a848cd7e
SC
34392#ifdef __STDC__
34393# include <limits.h>
34394#else
34395# include <assert.h>
34396#endif
ac1cb8d3
VS
34397
34398#undef $ac_func
34399
a848cd7e
SC
34400/* Override any gcc2 internal prototype to avoid an error. */
34401#ifdef __cplusplus
34402extern "C"
34403{
34404#endif
34405/* We use char because int might match the return type of a gcc2
34406 builtin and then its argument prototype would still apply. */
34407char $ac_func ();
34408/* The GNU C library defines this for functions which it implements
34409 to always fail with ENOSYS. Some functions are actually named
34410 something starting with __ and the normal name is an alias. */
34411#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34412choke me
34413#else
34414char (*f) () = $ac_func;
34415#endif
34416#ifdef __cplusplus
34417}
34418#endif
34419
34420int
34421main ()
34422{
34423return f != $ac_func;
34424 ;
34425 return 0;
34426}
34427_ACEOF
34428rm -f conftest.$ac_objext conftest$ac_exeext
34429if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34430 (eval $ac_link) 2>conftest.er1
a848cd7e 34431 ac_status=$?
ac1cb8d3
VS
34432 grep -v '^ *+' conftest.er1 >conftest.err
34433 rm -f conftest.er1
34434 cat conftest.err >&5
a848cd7e
SC
34435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34436 (exit $ac_status); } &&
3ea50042 34437 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34439 (eval $ac_try) 2>&5
34440 ac_status=$?
34441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34442 (exit $ac_status); }; } &&
34443 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34445 (eval $ac_try) 2>&5
34446 ac_status=$?
34447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34448 (exit $ac_status); }; }; then
34449 eval "$as_ac_var=yes"
34450else
34451 echo "$as_me: failed program was:" >&5
34452sed 's/^/| /' conftest.$ac_ext >&5
34453
34454eval "$as_ac_var=no"
34455fi
ac1cb8d3
VS
34456rm -f conftest.err conftest.$ac_objext \
34457 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34458fi
34459echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34460echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34461if test `eval echo '${'$as_ac_var'}'` = yes; then
34462 cat >>confdefs.h <<_ACEOF
34463#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34464_ACEOF
34465 WCSLEN_FOUND=1
34466fi
34467done
34468
34469
34470 if test "$WCSLEN_FOUND" = 0; then
34471 if test "$TOOLKIT" = "MSW"; then
34472 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
34473echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
34474if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
34475 echo $ECHO_N "(cached) $ECHO_C" >&6
34476else
34477 ac_check_lib_save_LIBS=$LIBS
34478LIBS="-lmsvcrt $LIBS"
34479cat >conftest.$ac_ext <<_ACEOF
34480/* confdefs.h. */
34481_ACEOF
34482cat confdefs.h >>conftest.$ac_ext
34483cat >>conftest.$ac_ext <<_ACEOF
34484/* end confdefs.h. */
34485
34486/* Override any gcc2 internal prototype to avoid an error. */
34487#ifdef __cplusplus
34488extern "C"
34489#endif
34490/* We use char because int might match the return type of a gcc2
34491 builtin and then its argument prototype would still apply. */
34492char wcslen ();
34493int
34494main ()
34495{
34496wcslen ();
34497 ;
34498 return 0;
34499}
34500_ACEOF
34501rm -f conftest.$ac_objext conftest$ac_exeext
34502if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34503 (eval $ac_link) 2>conftest.er1
a848cd7e 34504 ac_status=$?
ac1cb8d3
VS
34505 grep -v '^ *+' conftest.er1 >conftest.err
34506 rm -f conftest.er1
34507 cat conftest.err >&5
a848cd7e
SC
34508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34509 (exit $ac_status); } &&
3ea50042 34510 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34512 (eval $ac_try) 2>&5
34513 ac_status=$?
34514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34515 (exit $ac_status); }; } &&
34516 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34518 (eval $ac_try) 2>&5
34519 ac_status=$?
34520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34521 (exit $ac_status); }; }; then
34522 ac_cv_lib_msvcrt_wcslen=yes
34523else
34524 echo "$as_me: failed program was:" >&5
34525sed 's/^/| /' conftest.$ac_ext >&5
34526
34527ac_cv_lib_msvcrt_wcslen=no
34528fi
ac1cb8d3
VS
34529rm -f conftest.err conftest.$ac_objext \
34530 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34531LIBS=$ac_check_lib_save_LIBS
34532fi
34533echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
34534echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
34535if test $ac_cv_lib_msvcrt_wcslen = yes; then
34536 WCHAR_OK=1
34537fi
34538
34539 else
34540 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
34541echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
34542if test "${ac_cv_lib_w_wcslen+set}" = set; then
34543 echo $ECHO_N "(cached) $ECHO_C" >&6
34544else
34545 ac_check_lib_save_LIBS=$LIBS
34546LIBS="-lw $LIBS"
34547cat >conftest.$ac_ext <<_ACEOF
34548/* confdefs.h. */
34549_ACEOF
34550cat confdefs.h >>conftest.$ac_ext
34551cat >>conftest.$ac_ext <<_ACEOF
34552/* end confdefs.h. */
34553
34554/* Override any gcc2 internal prototype to avoid an error. */
34555#ifdef __cplusplus
34556extern "C"
34557#endif
34558/* We use char because int might match the return type of a gcc2
34559 builtin and then its argument prototype would still apply. */
34560char wcslen ();
34561int
34562main ()
34563{
34564wcslen ();
34565 ;
34566 return 0;
34567}
34568_ACEOF
34569rm -f conftest.$ac_objext conftest$ac_exeext
34570if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34571 (eval $ac_link) 2>conftest.er1
a848cd7e 34572 ac_status=$?
ac1cb8d3
VS
34573 grep -v '^ *+' conftest.er1 >conftest.err
34574 rm -f conftest.er1
34575 cat conftest.err >&5
a848cd7e
SC
34576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34577 (exit $ac_status); } &&
3ea50042 34578 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34580 (eval $ac_try) 2>&5
34581 ac_status=$?
34582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34583 (exit $ac_status); }; } &&
34584 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34586 (eval $ac_try) 2>&5
34587 ac_status=$?
34588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34589 (exit $ac_status); }; }; then
34590 ac_cv_lib_w_wcslen=yes
34591else
34592 echo "$as_me: failed program was:" >&5
34593sed 's/^/| /' conftest.$ac_ext >&5
34594
34595ac_cv_lib_w_wcslen=no
34596fi
ac1cb8d3
VS
34597rm -f conftest.err conftest.$ac_objext \
34598 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34599LIBS=$ac_check_lib_save_LIBS
34600fi
34601echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
34602echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
34603if test $ac_cv_lib_w_wcslen = yes; then
34604
34605 WCHAR_LINK=" -lw"
34606 WCSLEN_FOUND=1
34607
34608fi
34609
34610 fi
34611 fi
34612
34613 if test "$WCSLEN_FOUND" = 1; then
34614 cat >>confdefs.h <<\_ACEOF
34615#define HAVE_WCSLEN 1
34616_ACEOF
34617
34618 fi
34619
efdf6afe 34620 if test "$USE_HPUX" = 1 -a "$GCC" != "yes"; then
c92ad099 34621 CPPFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CPPFLAGS"
473276a9
VS
34622 fi
34623
efdf6afe
VZ
34624 echo "$as_me:$LINENO: checking for mbstate_t" >&5
34625echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
34626if test "${ac_cv_type_mbstate_t+set}" = set; then
34627 echo $ECHO_N "(cached) $ECHO_C" >&6
34628else
34629 cat >conftest.$ac_ext <<_ACEOF
34630/* confdefs.h. */
34631_ACEOF
34632cat confdefs.h >>conftest.$ac_ext
34633cat >>conftest.$ac_ext <<_ACEOF
34634/* end confdefs.h. */
34635#include <wchar.h>
34636
34637int
34638main ()
34639{
34640if ((mbstate_t *) 0)
34641 return 0;
34642if (sizeof (mbstate_t))
34643 return 0;
34644 ;
34645 return 0;
34646}
34647_ACEOF
34648rm -f conftest.$ac_objext
34649if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34650 (eval $ac_compile) 2>conftest.er1
34651 ac_status=$?
34652 grep -v '^ *+' conftest.er1 >conftest.err
34653 rm -f conftest.er1
34654 cat conftest.err >&5
34655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34656 (exit $ac_status); } &&
3ea50042 34657 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
efdf6afe
VZ
34658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34659 (eval $ac_try) 2>&5
34660 ac_status=$?
34661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34662 (exit $ac_status); }; } &&
34663 { ac_try='test -s conftest.$ac_objext'
34664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34665 (eval $ac_try) 2>&5
34666 ac_status=$?
34667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34668 (exit $ac_status); }; }; then
34669 ac_cv_type_mbstate_t=yes
34670else
34671 echo "$as_me: failed program was:" >&5
34672sed 's/^/| /' conftest.$ac_ext >&5
34673
34674ac_cv_type_mbstate_t=no
34675fi
34676rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34677fi
34678echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
34679echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
34680if test $ac_cv_type_mbstate_t = yes; then
34681
34682cat >>confdefs.h <<_ACEOF
34683#define HAVE_MBSTATE_T 1
34684_ACEOF
34685
a848cd7e
SC
34686
34687for ac_func in wcsrtombs
34688do
34689as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34690echo "$as_me:$LINENO: checking for $ac_func" >&5
34691echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34692if eval "test \"\${$as_ac_var+set}\" = set"; then
34693 echo $ECHO_N "(cached) $ECHO_C" >&6
34694else
34695 cat >conftest.$ac_ext <<_ACEOF
34696/* confdefs.h. */
34697_ACEOF
34698cat confdefs.h >>conftest.$ac_ext
34699cat >>conftest.$ac_ext <<_ACEOF
34700/* end confdefs.h. */
ac1cb8d3
VS
34701/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34702 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34703#define $ac_func innocuous_$ac_func
34704
a848cd7e
SC
34705/* System header to define __stub macros and hopefully few prototypes,
34706 which can conflict with char $ac_func (); below.
34707 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34708 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34709
a848cd7e
SC
34710#ifdef __STDC__
34711# include <limits.h>
34712#else
34713# include <assert.h>
34714#endif
ac1cb8d3
VS
34715
34716#undef $ac_func
34717
a848cd7e
SC
34718/* Override any gcc2 internal prototype to avoid an error. */
34719#ifdef __cplusplus
34720extern "C"
34721{
34722#endif
34723/* We use char because int might match the return type of a gcc2
34724 builtin and then its argument prototype would still apply. */
34725char $ac_func ();
34726/* The GNU C library defines this for functions which it implements
34727 to always fail with ENOSYS. Some functions are actually named
34728 something starting with __ and the normal name is an alias. */
34729#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34730choke me
34731#else
34732char (*f) () = $ac_func;
34733#endif
34734#ifdef __cplusplus
34735}
34736#endif
34737
34738int
34739main ()
34740{
34741return f != $ac_func;
34742 ;
34743 return 0;
34744}
34745_ACEOF
34746rm -f conftest.$ac_objext conftest$ac_exeext
34747if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34748 (eval $ac_link) 2>conftest.er1
a848cd7e 34749 ac_status=$?
ac1cb8d3
VS
34750 grep -v '^ *+' conftest.er1 >conftest.err
34751 rm -f conftest.er1
34752 cat conftest.err >&5
a848cd7e
SC
34753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34754 (exit $ac_status); } &&
3ea50042 34755 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34757 (eval $ac_try) 2>&5
34758 ac_status=$?
34759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34760 (exit $ac_status); }; } &&
34761 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34763 (eval $ac_try) 2>&5
34764 ac_status=$?
34765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34766 (exit $ac_status); }; }; then
34767 eval "$as_ac_var=yes"
34768else
34769 echo "$as_me: failed program was:" >&5
34770sed 's/^/| /' conftest.$ac_ext >&5
34771
34772eval "$as_ac_var=no"
34773fi
ac1cb8d3
VS
34774rm -f conftest.err conftest.$ac_objext \
34775 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34776fi
34777echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34778echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34779if test `eval echo '${'$as_ac_var'}'` = yes; then
34780 cat >>confdefs.h <<_ACEOF
34781#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34782_ACEOF
34783
34784fi
34785done
34786
efdf6afe
VZ
34787fi
34788
a848cd7e
SC
34789else
34790 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
34791echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
34792fi
34793
a848cd7e 34794
4a767dd5
VZ
34795
34796for ac_func in snprintf vsnprintf
a848cd7e
SC
34797do
34798as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34799echo "$as_me:$LINENO: checking for $ac_func" >&5
34800echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34801if eval "test \"\${$as_ac_var+set}\" = set"; then
34802 echo $ECHO_N "(cached) $ECHO_C" >&6
34803else
34804 cat >conftest.$ac_ext <<_ACEOF
34805/* confdefs.h. */
34806_ACEOF
34807cat confdefs.h >>conftest.$ac_ext
34808cat >>conftest.$ac_ext <<_ACEOF
34809/* end confdefs.h. */
ac1cb8d3
VS
34810/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34811 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34812#define $ac_func innocuous_$ac_func
34813
a848cd7e
SC
34814/* System header to define __stub macros and hopefully few prototypes,
34815 which can conflict with char $ac_func (); below.
34816 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34817 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34818
a848cd7e
SC
34819#ifdef __STDC__
34820# include <limits.h>
34821#else
34822# include <assert.h>
34823#endif
ac1cb8d3
VS
34824
34825#undef $ac_func
34826
a848cd7e
SC
34827/* Override any gcc2 internal prototype to avoid an error. */
34828#ifdef __cplusplus
34829extern "C"
34830{
34831#endif
34832/* We use char because int might match the return type of a gcc2
34833 builtin and then its argument prototype would still apply. */
34834char $ac_func ();
34835/* The GNU C library defines this for functions which it implements
34836 to always fail with ENOSYS. Some functions are actually named
34837 something starting with __ and the normal name is an alias. */
34838#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34839choke me
34840#else
34841char (*f) () = $ac_func;
34842#endif
34843#ifdef __cplusplus
34844}
34845#endif
34846
34847int
34848main ()
34849{
34850return f != $ac_func;
34851 ;
34852 return 0;
34853}
34854_ACEOF
34855rm -f conftest.$ac_objext conftest$ac_exeext
34856if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34857 (eval $ac_link) 2>conftest.er1
a848cd7e 34858 ac_status=$?
ac1cb8d3
VS
34859 grep -v '^ *+' conftest.er1 >conftest.err
34860 rm -f conftest.er1
34861 cat conftest.err >&5
a848cd7e
SC
34862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34863 (exit $ac_status); } &&
3ea50042 34864 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34866 (eval $ac_try) 2>&5
34867 ac_status=$?
34868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34869 (exit $ac_status); }; } &&
34870 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34872 (eval $ac_try) 2>&5
34873 ac_status=$?
34874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34875 (exit $ac_status); }; }; then
34876 eval "$as_ac_var=yes"
34877else
34878 echo "$as_me: failed program was:" >&5
34879sed 's/^/| /' conftest.$ac_ext >&5
34880
34881eval "$as_ac_var=no"
34882fi
ac1cb8d3
VS
34883rm -f conftest.err conftest.$ac_objext \
34884 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34885fi
34886echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34887echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34888if test `eval echo '${'$as_ac_var'}'` = yes; then
34889 cat >>confdefs.h <<_ACEOF
34890#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34891_ACEOF
34892
34893fi
34894done
34895
34896
34897if test "$ac_cv_func_vsnprintf" = "yes"; then
34898 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
34899echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
34900if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
34901 echo $ECHO_N "(cached) $ECHO_C" >&6
34902else
34903
efdf6afe 34904 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
34905/* confdefs.h. */
34906_ACEOF
34907cat confdefs.h >>conftest.$ac_ext
34908cat >>conftest.$ac_ext <<_ACEOF
34909/* end confdefs.h. */
34910
34911 #include <stdio.h>
34912 #include <stdarg.h>
efdf6afe
VZ
34913 #ifdef __MSL__
34914 #if __MSL__ >= 0x6000
34915 namespace std {}
34916 using namespace std;
34917 #endif
34918 #endif
a848cd7e
SC
34919
34920int
34921main ()
34922{
34923
34924 char *buf;
34925 va_list ap;
62fa8b3a 34926 vsnprintf(buf, 10u, "%s", ap);
c122b164
DE
34927
34928 ;
34929 return 0;
34930}
34931_ACEOF
34932rm -f conftest.$ac_objext
34933if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34934 (eval $ac_compile) 2>conftest.er1
34935 ac_status=$?
34936 grep -v '^ *+' conftest.er1 >conftest.err
34937 rm -f conftest.er1
34938 cat conftest.err >&5
34939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34940 (exit $ac_status); } &&
3ea50042 34941 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
c122b164
DE
34942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34943 (eval $ac_try) 2>&5
34944 ac_status=$?
34945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34946 (exit $ac_status); }; } &&
34947 { ac_try='test -s conftest.$ac_objext'
34948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34949 (eval $ac_try) 2>&5
34950 ac_status=$?
34951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34952 (exit $ac_status); }; }; then
34953 wx_cv_func_vsnprintf_decl=yes
34954else
34955 echo "$as_me: failed program was:" >&5
34956sed 's/^/| /' conftest.$ac_ext >&5
34957
a848cd7e
SC
34958wx_cv_func_vsnprintf_decl=no
34959
34960fi
ac1cb8d3 34961rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34962
34963
34964fi
34965echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
34966echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
34967
34968 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
34969 cat >>confdefs.h <<\_ACEOF
34970#define HAVE_VSNPRINTF_DECL 1
34971_ACEOF
34972
62fa8b3a
MW
34973
34974 echo "$as_me:$LINENO: checking if vsnprintf declaration is broken" >&5
34975echo $ECHO_N "checking if vsnprintf declaration is broken... $ECHO_C" >&6
34976if test "${wx_cv_func_broken_vsnprintf_decl+set}" = set; then
34977 echo $ECHO_N "(cached) $ECHO_C" >&6
34978else
34979
34980 cat >conftest.$ac_ext <<_ACEOF
34981/* confdefs.h. */
34982_ACEOF
34983cat confdefs.h >>conftest.$ac_ext
34984cat >>conftest.$ac_ext <<_ACEOF
34985/* end confdefs.h. */
34986
34987 #include <stdio.h>
34988 #include <stdarg.h>
34989 #ifdef __MSL__
34990 #if __MSL__ >= 0x6000
34991 namespace std {}
34992 using namespace std;
34993 #endif
34994 #endif
34995
34996int
34997main ()
34998{
34999
35000 char *buf;
35001 va_list ap;
35002 const char *fmt = "%s";
35003 vsnprintf(buf, 10u, fmt, ap);
35004
35005 ;
35006 return 0;
35007}
35008_ACEOF
35009rm -f conftest.$ac_objext
35010if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35011 (eval $ac_compile) 2>conftest.er1
35012 ac_status=$?
35013 grep -v '^ *+' conftest.er1 >conftest.err
35014 rm -f conftest.er1
35015 cat conftest.err >&5
35016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35017 (exit $ac_status); } &&
3ea50042 35018 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
62fa8b3a
MW
35019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35020 (eval $ac_try) 2>&5
35021 ac_status=$?
35022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35023 (exit $ac_status); }; } &&
35024 { ac_try='test -s conftest.$ac_objext'
35025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35026 (eval $ac_try) 2>&5
35027 ac_status=$?
35028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35029 (exit $ac_status); }; }; then
35030 wx_cv_func_broken_vsnprintf_decl=no
35031else
35032 echo "$as_me: failed program was:" >&5
35033sed 's/^/| /' conftest.$ac_ext >&5
35034
35035wx_cv_func_broken_vsnprintf_decl=yes
35036
35037fi
35038rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35039
35040
35041fi
35042echo "$as_me:$LINENO: result: $wx_cv_func_broken_vsnprintf_decl" >&5
35043echo "${ECHO_T}$wx_cv_func_broken_vsnprintf_decl" >&6
35044
35045 if test "$wx_cv_func_broken_vsnprintf_decl" = "yes"; then
35046 cat >>confdefs.h <<\_ACEOF
35047#define HAVE_BROKEN_VSNPRINTF_DECL 1
35048_ACEOF
35049
35050 fi
a848cd7e
SC
35051 fi
35052fi
35053
4a767dd5
VZ
35054if test "$ac_cv_func_snprintf" = "yes"; then
35055 echo "$as_me:$LINENO: checking for snprintf declaration" >&5
35056echo $ECHO_N "checking for snprintf declaration... $ECHO_C" >&6
35057if test "${wx_cv_func_snprintf_decl+set}" = set; then
35058 echo $ECHO_N "(cached) $ECHO_C" >&6
35059else
35060
35061 cat >conftest.$ac_ext <<_ACEOF
35062/* confdefs.h. */
35063_ACEOF
35064cat confdefs.h >>conftest.$ac_ext
35065cat >>conftest.$ac_ext <<_ACEOF
35066/* end confdefs.h. */
35067
35068 #include <stdio.h>
35069 #include <stdarg.h>
35070 #ifdef __MSL__
35071 #if __MSL__ >= 0x6000
35072 namespace std {}
35073 using namespace std;
35074 #endif
35075 #endif
35076
35077int
35078main ()
35079{
35080
35081 char *buf;
62fa8b3a 35082 snprintf(buf, 10u, "%s", "wx");
4a767dd5
VZ
35083
35084 ;
35085 return 0;
35086}
35087_ACEOF
35088rm -f conftest.$ac_objext
35089if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35090 (eval $ac_compile) 2>conftest.er1
35091 ac_status=$?
35092 grep -v '^ *+' conftest.er1 >conftest.err
35093 rm -f conftest.er1
35094 cat conftest.err >&5
35095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35096 (exit $ac_status); } &&
3ea50042 35097 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4a767dd5
VZ
35098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35099 (eval $ac_try) 2>&5
35100 ac_status=$?
35101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35102 (exit $ac_status); }; } &&
35103 { ac_try='test -s conftest.$ac_objext'
35104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35105 (eval $ac_try) 2>&5
35106 ac_status=$?
35107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35108 (exit $ac_status); }; }; then
35109 wx_cv_func_snprintf_decl=yes
35110else
35111 echo "$as_me: failed program was:" >&5
35112sed 's/^/| /' conftest.$ac_ext >&5
35113
35114wx_cv_func_snprintf_decl=no
35115
35116fi
35117rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35118
35119
35120fi
35121echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_decl" >&5
35122echo "${ECHO_T}$wx_cv_func_snprintf_decl" >&6
35123
35124 if test "$wx_cv_func_snprintf_decl" = "yes"; then
35125 cat >>confdefs.h <<\_ACEOF
35126#define HAVE_SNPRINTF_DECL 1
35127_ACEOF
35128
62fa8b3a
MW
35129
35130 echo "$as_me:$LINENO: checking if snprintf declaration is broken" >&5
35131echo $ECHO_N "checking if snprintf declaration is broken... $ECHO_C" >&6
35132if test "${wx_cv_func_broken_snprintf_decl+set}" = set; then
35133 echo $ECHO_N "(cached) $ECHO_C" >&6
35134else
35135
35136 cat >conftest.$ac_ext <<_ACEOF
35137/* confdefs.h. */
35138_ACEOF
35139cat confdefs.h >>conftest.$ac_ext
35140cat >>conftest.$ac_ext <<_ACEOF
35141/* end confdefs.h. */
35142
35143 #include <stdio.h>
35144 #include <stdarg.h>
35145 #ifdef __MSL__
35146 #if __MSL__ >= 0x6000
35147 namespace std {}
35148 using namespace std;
35149 #endif
35150 #endif
35151
35152int
35153main ()
35154{
35155
35156 char *buf;
35157 const char *fmt = "%s";
35158 snprintf(buf, 10u, fmt, "wx");
35159
35160 ;
35161 return 0;
35162}
35163_ACEOF
35164rm -f conftest.$ac_objext
35165if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35166 (eval $ac_compile) 2>conftest.er1
35167 ac_status=$?
35168 grep -v '^ *+' conftest.er1 >conftest.err
35169 rm -f conftest.er1
35170 cat conftest.err >&5
35171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35172 (exit $ac_status); } &&
3ea50042 35173 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
62fa8b3a
MW
35174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35175 (eval $ac_try) 2>&5
35176 ac_status=$?
35177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35178 (exit $ac_status); }; } &&
35179 { ac_try='test -s conftest.$ac_objext'
35180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35181 (eval $ac_try) 2>&5
35182 ac_status=$?
35183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35184 (exit $ac_status); }; }; then
35185 wx_cv_func_broken_snprintf_decl=no
35186else
35187 echo "$as_me: failed program was:" >&5
35188sed 's/^/| /' conftest.$ac_ext >&5
35189
35190wx_cv_func_broken_snprintf_decl=yes
35191
35192fi
35193rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35194
35195
35196fi
35197echo "$as_me:$LINENO: result: $wx_cv_func_broken_snprintf_decl" >&5
35198echo "${ECHO_T}$wx_cv_func_broken_snprintf_decl" >&6
35199
35200 if test "$wx_cv_func_broken_snprintf_decl" = "yes"; then
35201 cat >>confdefs.h <<\_ACEOF
35202#define HAVE_BROKEN_SNPRINTF_DECL 1
8b6682b9
JS
35203_ACEOF
35204
35205 fi
35206 fi
35207
35208 if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
35209
35210 echo "$as_me:$LINENO: checking if snprintf supports positional arguments" >&5
35211echo $ECHO_N "checking if snprintf supports positional arguments... $ECHO_C" >&6
35212if test "${wx_cv_func_snprintf_pos_params+set}" = set; then
35213 echo $ECHO_N "(cached) $ECHO_C" >&6
35214else
35215
35216 if test "$cross_compiling" = yes; then
5039a2df
VZ
35217
35218 { echo "$as_me:$LINENO: WARNING: Assuming Unix98 printf() is not available,
35219define HAVE_UNIX98_PRINTF as 1 in setup.h if it is available." >&5
35220echo "$as_me: WARNING: Assuming Unix98 printf() is not available,
35221define HAVE_UNIX98_PRINTF as 1 in setup.h if it is available." >&2;}
35222 wx_cv_func_snprintf_pos_params=no
35223
35224
8b6682b9
JS
35225else
35226 cat >conftest.$ac_ext <<_ACEOF
35227/* confdefs.h. */
35228_ACEOF
35229cat confdefs.h >>conftest.$ac_ext
35230cat >>conftest.$ac_ext <<_ACEOF
35231/* end confdefs.h. */
35232
35233 #include <stdio.h>
35234
35235 int main (void)
35236 {
35237 char buffer[128];
35238 snprintf (buffer, 128, "%2\$d %3\$d %1\$d", 1, 2, 3);
35239 if (strcmp ("2 3 1", buffer) == 0)
35240 exit (0);
35241 exit (1);
35242 }
35243
35244_ACEOF
35245rm -f conftest$ac_exeext
35246if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35247 (eval $ac_link) 2>&5
35248 ac_status=$?
35249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35250 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35252 (eval $ac_try) 2>&5
35253 ac_status=$?
35254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35255 (exit $ac_status); }; }; then
35256 wx_cv_func_snprintf_pos_params=no
35257else
35258 echo "$as_me: program exited with status $ac_status" >&5
35259echo "$as_me: failed program was:" >&5
35260sed 's/^/| /' conftest.$ac_ext >&5
35261
35262( exit $ac_status )
35263wx_cv_func_snprintf_pos_params=yes
8b6682b9
JS
35264fi
35265rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35266fi
35267
35268
35269fi
35270echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_pos_params" >&5
35271echo "${ECHO_T}$wx_cv_func_snprintf_pos_params" >&6
35272
35273 if test "$wx_cv_func_snprintf_pos_params" = "yes"; then
35274 cat >>confdefs.h <<\_ACEOF
35275#define HAVE_UNIX98_PRINTF 1
62fa8b3a
MW
35276_ACEOF
35277
35278 fi
4a767dd5
VZ
35279 fi
35280fi
35281
a848cd7e
SC
35282if test "$wxUSE_UNICODE" = yes; then
35283
35284
6a5c9b3f
RR
35285for ac_func in swprintf
35286do
35287as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35288echo "$as_me:$LINENO: checking for $ac_func" >&5
35289echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35290if eval "test \"\${$as_ac_var+set}\" = set"; then
35291 echo $ECHO_N "(cached) $ECHO_C" >&6
35292else
35293 cat >conftest.$ac_ext <<_ACEOF
35294/* confdefs.h. */
35295_ACEOF
35296cat confdefs.h >>conftest.$ac_ext
35297cat >>conftest.$ac_ext <<_ACEOF
35298/* end confdefs.h. */
35299/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35300 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35301#define $ac_func innocuous_$ac_func
35302
35303/* System header to define __stub macros and hopefully few prototypes,
35304 which can conflict with char $ac_func (); below.
35305 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35306 <limits.h> exists even on freestanding compilers. */
35307
35308#ifdef __STDC__
35309# include <limits.h>
35310#else
35311# include <assert.h>
35312#endif
35313
35314#undef $ac_func
35315
35316/* Override any gcc2 internal prototype to avoid an error. */
35317#ifdef __cplusplus
35318extern "C"
35319{
35320#endif
35321/* We use char because int might match the return type of a gcc2
35322 builtin and then its argument prototype would still apply. */
35323char $ac_func ();
35324/* The GNU C library defines this for functions which it implements
35325 to always fail with ENOSYS. Some functions are actually named
35326 something starting with __ and the normal name is an alias. */
35327#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35328choke me
35329#else
35330char (*f) () = $ac_func;
35331#endif
35332#ifdef __cplusplus
35333}
35334#endif
35335
35336int
35337main ()
35338{
35339return f != $ac_func;
35340 ;
35341 return 0;
35342}
35343_ACEOF
35344rm -f conftest.$ac_objext conftest$ac_exeext
35345if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35346 (eval $ac_link) 2>conftest.er1
35347 ac_status=$?
35348 grep -v '^ *+' conftest.er1 >conftest.err
35349 rm -f conftest.er1
35350 cat conftest.err >&5
35351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35352 (exit $ac_status); } &&
3ea50042 35353 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6a5c9b3f
RR
35354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35355 (eval $ac_try) 2>&5
35356 ac_status=$?
35357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35358 (exit $ac_status); }; } &&
35359 { ac_try='test -s conftest$ac_exeext'
35360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35361 (eval $ac_try) 2>&5
35362 ac_status=$?
35363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35364 (exit $ac_status); }; }; then
35365 eval "$as_ac_var=yes"
35366else
35367 echo "$as_me: failed program was:" >&5
35368sed 's/^/| /' conftest.$ac_ext >&5
35369
35370eval "$as_ac_var=no"
35371fi
35372rm -f conftest.err conftest.$ac_objext \
35373 conftest$ac_exeext conftest.$ac_ext
35374fi
35375echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35376echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35377if test `eval echo '${'$as_ac_var'}'` = yes; then
35378 cat >>confdefs.h <<_ACEOF
35379#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35380_ACEOF
35381
35382fi
35383done
35384
35385
35386 if test "$ac_cv_func_swprintf" = "yes"; then
35387 echo "$as_me:$LINENO: checking if swprintf declaration is broken" >&5
35388echo $ECHO_N "checking if swprintf declaration is broken... $ECHO_C" >&6
35389if test "${wx_cv_func_broken_swprintf_decl+set}" = set; then
35390 echo $ECHO_N "(cached) $ECHO_C" >&6
35391else
35392
35393 cat >conftest.$ac_ext <<_ACEOF
35394/* confdefs.h. */
35395_ACEOF
35396cat confdefs.h >>conftest.$ac_ext
35397cat >>conftest.$ac_ext <<_ACEOF
35398/* end confdefs.h. */
35399
35400 #include <stdio.h>
35401 #include <stdarg.h>
35402 #include <wchar.h>
35403
35404int
35405main ()
35406{
35407
35408 wchar_t *buf;
35409 const wchar_t *fmt = L"test";
35410 swprintf(buf, 10u, fmt);
35411
35412 ;
35413 return 0;
35414}
35415_ACEOF
35416rm -f conftest.$ac_objext
35417if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35418 (eval $ac_compile) 2>conftest.er1
35419 ac_status=$?
35420 grep -v '^ *+' conftest.er1 >conftest.err
35421 rm -f conftest.er1
35422 cat conftest.err >&5
35423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35424 (exit $ac_status); } &&
3ea50042 35425 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6a5c9b3f
RR
35426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35427 (eval $ac_try) 2>&5
35428 ac_status=$?
35429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35430 (exit $ac_status); }; } &&
35431 { ac_try='test -s conftest.$ac_objext'
35432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35433 (eval $ac_try) 2>&5
35434 ac_status=$?
35435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35436 (exit $ac_status); }; }; then
35437 wx_cv_func_broken_swprintf_decl=no
35438else
35439 echo "$as_me: failed program was:" >&5
35440sed 's/^/| /' conftest.$ac_ext >&5
35441
35442wx_cv_func_broken_swprintf_decl=yes
35443
35444fi
35445rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35446
35447
35448fi
35449echo "$as_me:$LINENO: result: $wx_cv_func_broken_swprintf_decl" >&5
35450echo "${ECHO_T}$wx_cv_func_broken_swprintf_decl" >&6
35451
35452 if test "$wx_cv_func_broken_swprintf_decl" = "yes"; then
35453 cat >>confdefs.h <<\_ACEOF
35454#define HAVE_BROKEN_SWPRINTF_DECL 1
35455_ACEOF
35456
35457 fi
35458 fi
35459
35460
35461
a848cd7e 35462
fbe47c7b
VS
35463
35464
35465
35466for ac_func in wputc wputchar putws fputws wprintf vswprintf
a848cd7e
SC
35467do
35468as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35469echo "$as_me:$LINENO: checking for $ac_func" >&5
35470echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35471if eval "test \"\${$as_ac_var+set}\" = set"; then
35472 echo $ECHO_N "(cached) $ECHO_C" >&6
35473else
35474 cat >conftest.$ac_ext <<_ACEOF
35475/* confdefs.h. */
35476_ACEOF
35477cat confdefs.h >>conftest.$ac_ext
35478cat >>conftest.$ac_ext <<_ACEOF
35479/* end confdefs.h. */
ac1cb8d3
VS
35480/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35481 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35482#define $ac_func innocuous_$ac_func
35483
a848cd7e
SC
35484/* System header to define __stub macros and hopefully few prototypes,
35485 which can conflict with char $ac_func (); below.
35486 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35487 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35488
a848cd7e
SC
35489#ifdef __STDC__
35490# include <limits.h>
35491#else
35492# include <assert.h>
35493#endif
ac1cb8d3
VS
35494
35495#undef $ac_func
35496
a848cd7e
SC
35497/* Override any gcc2 internal prototype to avoid an error. */
35498#ifdef __cplusplus
35499extern "C"
35500{
35501#endif
35502/* We use char because int might match the return type of a gcc2
35503 builtin and then its argument prototype would still apply. */
35504char $ac_func ();
35505/* The GNU C library defines this for functions which it implements
35506 to always fail with ENOSYS. Some functions are actually named
35507 something starting with __ and the normal name is an alias. */
35508#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35509choke me
35510#else
35511char (*f) () = $ac_func;
35512#endif
35513#ifdef __cplusplus
35514}
35515#endif
35516
35517int
35518main ()
35519{
35520return f != $ac_func;
35521 ;
35522 return 0;
35523}
35524_ACEOF
35525rm -f conftest.$ac_objext conftest$ac_exeext
35526if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35527 (eval $ac_link) 2>conftest.er1
a848cd7e 35528 ac_status=$?
ac1cb8d3
VS
35529 grep -v '^ *+' conftest.er1 >conftest.err
35530 rm -f conftest.er1
35531 cat conftest.err >&5
a848cd7e
SC
35532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35533 (exit $ac_status); } &&
3ea50042 35534 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35536 (eval $ac_try) 2>&5
35537 ac_status=$?
35538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35539 (exit $ac_status); }; } &&
35540 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35542 (eval $ac_try) 2>&5
35543 ac_status=$?
35544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35545 (exit $ac_status); }; }; then
35546 eval "$as_ac_var=yes"
35547else
35548 echo "$as_me: failed program was:" >&5
35549sed 's/^/| /' conftest.$ac_ext >&5
35550
35551eval "$as_ac_var=no"
35552fi
ac1cb8d3
VS
35553rm -f conftest.err conftest.$ac_objext \
35554 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35555fi
35556echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35557echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35558if test `eval echo '${'$as_ac_var'}'` = yes; then
35559 cat >>confdefs.h <<_ACEOF
35560#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35561_ACEOF
35562
35563fi
35564done
35565
35566
35567 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
35568echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
35569 cat >conftest.$ac_ext <<_ACEOF
35570/* confdefs.h. */
35571_ACEOF
35572cat confdefs.h >>conftest.$ac_ext
35573cat >>conftest.$ac_ext <<_ACEOF
35574/* end confdefs.h. */
35575#include <wchar.h>
35576int
35577main ()
35578{
35579&_vsnwprintf;
35580 ;
35581 return 0;
35582}
35583_ACEOF
35584rm -f conftest.$ac_objext
35585if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35586 (eval $ac_compile) 2>conftest.er1
a848cd7e 35587 ac_status=$?
ac1cb8d3
VS
35588 grep -v '^ *+' conftest.er1 >conftest.err
35589 rm -f conftest.er1
35590 cat conftest.err >&5
a848cd7e
SC
35591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35592 (exit $ac_status); } &&
3ea50042 35593 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35595 (eval $ac_try) 2>&5
35596 ac_status=$?
35597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35598 (exit $ac_status); }; } &&
35599 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35601 (eval $ac_try) 2>&5
35602 ac_status=$?
35603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35604 (exit $ac_status); }; }; then
35605 echo "$as_me:$LINENO: result: yes" >&5
35606echo "${ECHO_T}yes" >&6
35607 cat >>confdefs.h <<\_ACEOF
35608#define HAVE__VSNWPRINTF 1
35609_ACEOF
35610
35611else
35612 echo "$as_me: failed program was:" >&5
35613sed 's/^/| /' conftest.$ac_ext >&5
35614
35615echo "$as_me:$LINENO: result: no" >&5
35616echo "${ECHO_T}no" >&6
35617fi
ac1cb8d3 35618rm -f conftest.err conftest.$ac_objext conftest.$ac_ext;
a848cd7e
SC
35619fi
35620
6ebeb4c7
VZ
35621if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
35622
35623for ac_func in fnmatch
35624do
35625as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35626echo "$as_me:$LINENO: checking for $ac_func" >&5
35627echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35628if eval "test \"\${$as_ac_var+set}\" = set"; then
35629 echo $ECHO_N "(cached) $ECHO_C" >&6
35630else
35631 cat >conftest.$ac_ext <<_ACEOF
35632/* confdefs.h. */
35633_ACEOF
35634cat confdefs.h >>conftest.$ac_ext
35635cat >>conftest.$ac_ext <<_ACEOF
35636/* end confdefs.h. */
35637/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35638 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35639#define $ac_func innocuous_$ac_func
35640
35641/* System header to define __stub macros and hopefully few prototypes,
35642 which can conflict with char $ac_func (); below.
35643 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35644 <limits.h> exists even on freestanding compilers. */
35645
35646#ifdef __STDC__
35647# include <limits.h>
35648#else
35649# include <assert.h>
35650#endif
35651
35652#undef $ac_func
35653
35654/* Override any gcc2 internal prototype to avoid an error. */
35655#ifdef __cplusplus
35656extern "C"
35657{
35658#endif
35659/* We use char because int might match the return type of a gcc2
35660 builtin and then its argument prototype would still apply. */
35661char $ac_func ();
35662/* The GNU C library defines this for functions which it implements
35663 to always fail with ENOSYS. Some functions are actually named
35664 something starting with __ and the normal name is an alias. */
35665#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35666choke me
35667#else
35668char (*f) () = $ac_func;
35669#endif
35670#ifdef __cplusplus
35671}
35672#endif
35673
35674int
35675main ()
35676{
35677return f != $ac_func;
35678 ;
35679 return 0;
35680}
35681_ACEOF
35682rm -f conftest.$ac_objext conftest$ac_exeext
35683if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35684 (eval $ac_link) 2>conftest.er1
35685 ac_status=$?
35686 grep -v '^ *+' conftest.er1 >conftest.err
35687 rm -f conftest.er1
35688 cat conftest.err >&5
35689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35690 (exit $ac_status); } &&
3ea50042 35691 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6ebeb4c7
VZ
35692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35693 (eval $ac_try) 2>&5
35694 ac_status=$?
35695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35696 (exit $ac_status); }; } &&
35697 { ac_try='test -s conftest$ac_exeext'
35698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35699 (eval $ac_try) 2>&5
35700 ac_status=$?
35701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35702 (exit $ac_status); }; }; then
35703 eval "$as_ac_var=yes"
35704else
35705 echo "$as_me: failed program was:" >&5
35706sed 's/^/| /' conftest.$ac_ext >&5
35707
35708eval "$as_ac_var=no"
35709fi
35710rm -f conftest.err conftest.$ac_objext \
35711 conftest$ac_exeext conftest.$ac_ext
35712fi
35713echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35714echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35715if test `eval echo '${'$as_ac_var'}'` = yes; then
35716 cat >>confdefs.h <<_ACEOF
35717#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35718_ACEOF
35719
35720fi
35721done
35722
35723fi
35724
35725if test "$wxUSE_FILE" = "yes"; then
35726
35727for ac_func in fsync
35728do
35729as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35730echo "$as_me:$LINENO: checking for $ac_func" >&5
35731echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35732if eval "test \"\${$as_ac_var+set}\" = set"; then
35733 echo $ECHO_N "(cached) $ECHO_C" >&6
35734else
35735 cat >conftest.$ac_ext <<_ACEOF
35736/* confdefs.h. */
35737_ACEOF
35738cat confdefs.h >>conftest.$ac_ext
35739cat >>conftest.$ac_ext <<_ACEOF
35740/* end confdefs.h. */
35741/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35742 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35743#define $ac_func innocuous_$ac_func
35744
35745/* System header to define __stub macros and hopefully few prototypes,
35746 which can conflict with char $ac_func (); below.
35747 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35748 <limits.h> exists even on freestanding compilers. */
35749
35750#ifdef __STDC__
35751# include <limits.h>
35752#else
35753# include <assert.h>
35754#endif
35755
35756#undef $ac_func
35757
35758/* Override any gcc2 internal prototype to avoid an error. */
35759#ifdef __cplusplus
35760extern "C"
35761{
35762#endif
35763/* We use char because int might match the return type of a gcc2
35764 builtin and then its argument prototype would still apply. */
35765char $ac_func ();
35766/* The GNU C library defines this for functions which it implements
35767 to always fail with ENOSYS. Some functions are actually named
35768 something starting with __ and the normal name is an alias. */
35769#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35770choke me
35771#else
35772char (*f) () = $ac_func;
35773#endif
35774#ifdef __cplusplus
35775}
35776#endif
35777
35778int
35779main ()
35780{
35781return f != $ac_func;
35782 ;
35783 return 0;
35784}
35785_ACEOF
35786rm -f conftest.$ac_objext conftest$ac_exeext
35787if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35788 (eval $ac_link) 2>conftest.er1
35789 ac_status=$?
35790 grep -v '^ *+' conftest.er1 >conftest.err
35791 rm -f conftest.er1
35792 cat conftest.err >&5
35793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35794 (exit $ac_status); } &&
3ea50042 35795 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6ebeb4c7
VZ
35796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35797 (eval $ac_try) 2>&5
35798 ac_status=$?
35799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35800 (exit $ac_status); }; } &&
35801 { ac_try='test -s conftest$ac_exeext'
35802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35803 (eval $ac_try) 2>&5
35804 ac_status=$?
35805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35806 (exit $ac_status); }; }; then
35807 eval "$as_ac_var=yes"
35808else
35809 echo "$as_me: failed program was:" >&5
35810sed 's/^/| /' conftest.$ac_ext >&5
35811
35812eval "$as_ac_var=no"
35813fi
35814rm -f conftest.err conftest.$ac_objext \
35815 conftest$ac_exeext conftest.$ac_ext
35816fi
35817echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35818echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35819if test `eval echo '${'$as_ac_var'}'` = yes; then
35820 cat >>confdefs.h <<_ACEOF
35821#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35822_ACEOF
35823
35824fi
35825done
35826
35827fi
a848cd7e
SC
35828
35829
c2e9ada4
VZ
35830for ac_func in round
35831do
35832as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35833echo "$as_me:$LINENO: checking for $ac_func" >&5
35834echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35835if eval "test \"\${$as_ac_var+set}\" = set"; then
35836 echo $ECHO_N "(cached) $ECHO_C" >&6
35837else
35838 cat >conftest.$ac_ext <<_ACEOF
35839/* confdefs.h. */
35840_ACEOF
35841cat confdefs.h >>conftest.$ac_ext
35842cat >>conftest.$ac_ext <<_ACEOF
35843/* end confdefs.h. */
35844/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35845 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35846#define $ac_func innocuous_$ac_func
35847
35848/* System header to define __stub macros and hopefully few prototypes,
35849 which can conflict with char $ac_func (); below.
35850 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35851 <limits.h> exists even on freestanding compilers. */
35852
35853#ifdef __STDC__
35854# include <limits.h>
35855#else
35856# include <assert.h>
35857#endif
35858
35859#undef $ac_func
35860
35861/* Override any gcc2 internal prototype to avoid an error. */
35862#ifdef __cplusplus
35863extern "C"
35864{
35865#endif
35866/* We use char because int might match the return type of a gcc2
35867 builtin and then its argument prototype would still apply. */
35868char $ac_func ();
35869/* The GNU C library defines this for functions which it implements
35870 to always fail with ENOSYS. Some functions are actually named
35871 something starting with __ and the normal name is an alias. */
35872#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35873choke me
35874#else
35875char (*f) () = $ac_func;
35876#endif
35877#ifdef __cplusplus
35878}
35879#endif
35880
35881int
35882main ()
35883{
35884return f != $ac_func;
35885 ;
35886 return 0;
35887}
35888_ACEOF
35889rm -f conftest.$ac_objext conftest$ac_exeext
35890if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35891 (eval $ac_link) 2>conftest.er1
35892 ac_status=$?
35893 grep -v '^ *+' conftest.er1 >conftest.err
35894 rm -f conftest.er1
35895 cat conftest.err >&5
35896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35897 (exit $ac_status); } &&
3ea50042 35898 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
c2e9ada4
VZ
35899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35900 (eval $ac_try) 2>&5
35901 ac_status=$?
35902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35903 (exit $ac_status); }; } &&
35904 { ac_try='test -s conftest$ac_exeext'
35905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35906 (eval $ac_try) 2>&5
35907 ac_status=$?
35908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35909 (exit $ac_status); }; }; then
35910 eval "$as_ac_var=yes"
35911else
35912 echo "$as_me: failed program was:" >&5
35913sed 's/^/| /' conftest.$ac_ext >&5
35914
35915eval "$as_ac_var=no"
35916fi
35917rm -f conftest.err conftest.$ac_objext \
35918 conftest$ac_exeext conftest.$ac_ext
35919fi
35920echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35921echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35922if test `eval echo '${'$as_ac_var'}'` = yes; then
35923 cat >>confdefs.h <<_ACEOF
35924#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35925_ACEOF
35926
35927fi
35928done
35929
35930if test "$ac_cv_func_round" = yes; then
35931 echo "$as_me:$LINENO: checking whether round is declared" >&5
35932echo $ECHO_N "checking whether round is declared... $ECHO_C" >&6
35933if test "${ac_cv_have_decl_round+set}" = set; then
35934 echo $ECHO_N "(cached) $ECHO_C" >&6
35935else
35936 cat >conftest.$ac_ext <<_ACEOF
35937/* confdefs.h. */
35938_ACEOF
35939cat confdefs.h >>conftest.$ac_ext
35940cat >>conftest.$ac_ext <<_ACEOF
35941/* end confdefs.h. */
35942#include <math.h>
35943
35944int
35945main ()
35946{
35947#ifndef round
35948 char *p = (char *) round;
35949#endif
35950
35951 ;
35952 return 0;
35953}
35954_ACEOF
35955rm -f conftest.$ac_objext
35956if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35957 (eval $ac_compile) 2>conftest.er1
35958 ac_status=$?
35959 grep -v '^ *+' conftest.er1 >conftest.err
35960 rm -f conftest.er1
35961 cat conftest.err >&5
35962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35963 (exit $ac_status); } &&
3ea50042 35964 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
c2e9ada4
VZ
35965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35966 (eval $ac_try) 2>&5
35967 ac_status=$?
35968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35969 (exit $ac_status); }; } &&
35970 { ac_try='test -s conftest.$ac_objext'
35971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35972 (eval $ac_try) 2>&5
35973 ac_status=$?
35974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35975 (exit $ac_status); }; }; then
35976 ac_cv_have_decl_round=yes
35977else
35978 echo "$as_me: failed program was:" >&5
35979sed 's/^/| /' conftest.$ac_ext >&5
35980
35981ac_cv_have_decl_round=no
35982fi
35983rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35984fi
35985echo "$as_me:$LINENO: result: $ac_cv_have_decl_round" >&5
35986echo "${ECHO_T}$ac_cv_have_decl_round" >&6
35987if test $ac_cv_have_decl_round = yes; then
35988
35989cat >>confdefs.h <<_ACEOF
35990#define HAVE_DECL_ROUND 1
35991_ACEOF
35992
35993
35994else
35995 cat >>confdefs.h <<_ACEOF
35996#define HAVE_DECL_ROUND 0
35997_ACEOF
35998
35999
36000fi
36001
36002
36003fi
36004
36005
a848cd7e
SC
36006if test "$TOOLKIT" != "MSW"; then
36007
36008
a848cd7e
SC
36009
36010
36011
36012# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
36013if test "${with_libiconv_prefix+set}" = set; then
36014 withval="$with_libiconv_prefix"
36015
36016 for dir in `echo "$withval" | tr : ' '`; do
36017 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
36018 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
36019 done
36020
36021fi;
36022
36023 echo "$as_me:$LINENO: checking for iconv" >&5
36024echo $ECHO_N "checking for iconv... $ECHO_C" >&6
36025if test "${am_cv_func_iconv+set}" = set; then
36026 echo $ECHO_N "(cached) $ECHO_C" >&6
36027else
36028
36029 am_cv_func_iconv="no, consider installing GNU libiconv"
36030 am_cv_lib_iconv=no
36031 cat >conftest.$ac_ext <<_ACEOF
36032/* confdefs.h. */
36033_ACEOF
36034cat confdefs.h >>conftest.$ac_ext
36035cat >>conftest.$ac_ext <<_ACEOF
36036/* end confdefs.h. */
36037#include <stdlib.h>
36038#include <iconv.h>
36039int
36040main ()
36041{
36042iconv_t cd = iconv_open("","");
36043 iconv(cd,NULL,NULL,NULL,NULL);
36044 iconv_close(cd);
36045 ;
36046 return 0;
36047}
36048_ACEOF
36049rm -f conftest.$ac_objext conftest$ac_exeext
36050if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36051 (eval $ac_link) 2>conftest.er1
a848cd7e 36052 ac_status=$?
ac1cb8d3
VS
36053 grep -v '^ *+' conftest.er1 >conftest.err
36054 rm -f conftest.er1
36055 cat conftest.err >&5
a848cd7e
SC
36056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36057 (exit $ac_status); } &&
3ea50042 36058 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36060 (eval $ac_try) 2>&5
36061 ac_status=$?
36062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36063 (exit $ac_status); }; } &&
36064 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36066 (eval $ac_try) 2>&5
36067 ac_status=$?
36068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36069 (exit $ac_status); }; }; then
36070 am_cv_func_iconv=yes
36071else
36072 echo "$as_me: failed program was:" >&5
36073sed 's/^/| /' conftest.$ac_ext >&5
36074
36075fi
ac1cb8d3
VS
36076rm -f conftest.err conftest.$ac_objext \
36077 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36078 if test "$am_cv_func_iconv" != yes; then
36079 am_save_LIBS="$LIBS"
36080 LIBS="$LIBS -liconv"
36081 cat >conftest.$ac_ext <<_ACEOF
36082/* confdefs.h. */
36083_ACEOF
36084cat confdefs.h >>conftest.$ac_ext
36085cat >>conftest.$ac_ext <<_ACEOF
36086/* end confdefs.h. */
36087#include <stdlib.h>
36088#include <iconv.h>
36089int
36090main ()
36091{
36092iconv_t cd = iconv_open("","");
36093 iconv(cd,NULL,NULL,NULL,NULL);
36094 iconv_close(cd);
36095 ;
36096 return 0;
36097}
36098_ACEOF
36099rm -f conftest.$ac_objext conftest$ac_exeext
36100if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36101 (eval $ac_link) 2>conftest.er1
a848cd7e 36102 ac_status=$?
ac1cb8d3
VS
36103 grep -v '^ *+' conftest.er1 >conftest.err
36104 rm -f conftest.er1
36105 cat conftest.err >&5
a848cd7e
SC
36106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36107 (exit $ac_status); } &&
3ea50042 36108 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36110 (eval $ac_try) 2>&5
36111 ac_status=$?
36112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36113 (exit $ac_status); }; } &&
36114 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36116 (eval $ac_try) 2>&5
36117 ac_status=$?
36118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36119 (exit $ac_status); }; }; then
36120 am_cv_lib_iconv=yes
36121 am_cv_func_iconv=yes
36122else
36123 echo "$as_me: failed program was:" >&5
36124sed 's/^/| /' conftest.$ac_ext >&5
36125
36126fi
ac1cb8d3
VS
36127rm -f conftest.err conftest.$ac_objext \
36128 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36129 LIBS="$am_save_LIBS"
36130 fi
36131
36132fi
36133echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
36134echo "${ECHO_T}$am_cv_func_iconv" >&6
36135 if test "$am_cv_func_iconv" = yes; then
36136
36137cat >>confdefs.h <<\_ACEOF
36138#define HAVE_ICONV 1
36139_ACEOF
36140
36141 echo "$as_me:$LINENO: checking if iconv needs const" >&5
36142echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
36143if test "${wx_cv_func_iconv_const+set}" = set; then
36144 echo $ECHO_N "(cached) $ECHO_C" >&6
36145else
36146 cat >conftest.$ac_ext <<_ACEOF
36147/* confdefs.h. */
36148_ACEOF
36149cat confdefs.h >>conftest.$ac_ext
36150cat >>conftest.$ac_ext <<_ACEOF
36151/* end confdefs.h. */
36152
36153#include <stdlib.h>
36154#include <iconv.h>
36155extern
36156#ifdef __cplusplus
36157"C"
36158#endif
36159#if defined(__STDC__) || defined(__cplusplus)
36160size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
36161#else
36162size_t iconv();
36163#endif
36164
36165int
36166main ()
36167{
36168
36169 ;
36170 return 0;
36171}
36172_ACEOF
36173rm -f conftest.$ac_objext
36174if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36175 (eval $ac_compile) 2>conftest.er1
a848cd7e 36176 ac_status=$?
ac1cb8d3
VS
36177 grep -v '^ *+' conftest.er1 >conftest.err
36178 rm -f conftest.er1
36179 cat conftest.err >&5
a848cd7e
SC
36180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36181 (exit $ac_status); } &&
3ea50042 36182 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36184 (eval $ac_try) 2>&5
36185 ac_status=$?
36186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36187 (exit $ac_status); }; } &&
36188 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36190 (eval $ac_try) 2>&5
36191 ac_status=$?
36192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36193 (exit $ac_status); }; }; then
36194 wx_cv_func_iconv_const="no"
36195else
36196 echo "$as_me: failed program was:" >&5
36197sed 's/^/| /' conftest.$ac_ext >&5
36198
36199wx_cv_func_iconv_const="yes"
36200
36201fi
ac1cb8d3 36202rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36203
36204fi
36205echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
36206echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
36207
36208 iconv_const=
36209 if test "x$wx_cv_func_iconv_const" = "xyes"; then
36210 iconv_const="const"
36211 fi
36212
36213
36214cat >>confdefs.h <<_ACEOF
36215#define ICONV_CONST $iconv_const
36216_ACEOF
36217
36218 fi
36219 LIBICONV=
36220 if test "$am_cv_lib_iconv" = yes; then
36221 LIBICONV="-liconv"
36222 fi
36223
36224
36225LIBS="$LIBICONV $LIBS"
a848cd7e
SC
36226
36227if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
36228
36229for ac_func in sigaction
36230do
36231as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36232echo "$as_me:$LINENO: checking for $ac_func" >&5
36233echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36234if eval "test \"\${$as_ac_var+set}\" = set"; then
36235 echo $ECHO_N "(cached) $ECHO_C" >&6
36236else
36237 cat >conftest.$ac_ext <<_ACEOF
36238/* confdefs.h. */
36239_ACEOF
36240cat confdefs.h >>conftest.$ac_ext
36241cat >>conftest.$ac_ext <<_ACEOF
36242/* end confdefs.h. */
ac1cb8d3
VS
36243/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36244 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36245#define $ac_func innocuous_$ac_func
36246
a848cd7e
SC
36247/* System header to define __stub macros and hopefully few prototypes,
36248 which can conflict with char $ac_func (); below.
36249 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36250 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36251
a848cd7e
SC
36252#ifdef __STDC__
36253# include <limits.h>
36254#else
36255# include <assert.h>
36256#endif
ac1cb8d3
VS
36257
36258#undef $ac_func
36259
a848cd7e
SC
36260/* Override any gcc2 internal prototype to avoid an error. */
36261#ifdef __cplusplus
36262extern "C"
36263{
36264#endif
36265/* We use char because int might match the return type of a gcc2
36266 builtin and then its argument prototype would still apply. */
36267char $ac_func ();
36268/* The GNU C library defines this for functions which it implements
36269 to always fail with ENOSYS. Some functions are actually named
36270 something starting with __ and the normal name is an alias. */
36271#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36272choke me
36273#else
36274char (*f) () = $ac_func;
36275#endif
36276#ifdef __cplusplus
36277}
36278#endif
36279
36280int
36281main ()
36282{
36283return f != $ac_func;
36284 ;
36285 return 0;
36286}
36287_ACEOF
36288rm -f conftest.$ac_objext conftest$ac_exeext
36289if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36290 (eval $ac_link) 2>conftest.er1
a848cd7e 36291 ac_status=$?
ac1cb8d3
VS
36292 grep -v '^ *+' conftest.er1 >conftest.err
36293 rm -f conftest.er1
36294 cat conftest.err >&5
a848cd7e
SC
36295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36296 (exit $ac_status); } &&
3ea50042 36297 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36299 (eval $ac_try) 2>&5
36300 ac_status=$?
36301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36302 (exit $ac_status); }; } &&
36303 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36305 (eval $ac_try) 2>&5
36306 ac_status=$?
36307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36308 (exit $ac_status); }; }; then
36309 eval "$as_ac_var=yes"
36310else
36311 echo "$as_me: failed program was:" >&5
36312sed 's/^/| /' conftest.$ac_ext >&5
36313
36314eval "$as_ac_var=no"
36315fi
ac1cb8d3
VS
36316rm -f conftest.err conftest.$ac_objext \
36317 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36318fi
36319echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36320echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36321if test `eval echo '${'$as_ac_var'}'` = yes; then
36322 cat >>confdefs.h <<_ACEOF
36323#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36324_ACEOF
36325
36326fi
36327done
36328
36329
36330 if test "$ac_cv_func_sigaction" = "no"; then
36331 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
36332echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
36333 wxUSE_ON_FATAL_EXCEPTION=no
36334 fi
36335
36336 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
a848cd7e
SC
36337 echo "$as_me:$LINENO: checking for sa_handler type" >&5
36338echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
36339if test "${wx_cv_type_sa_handler+set}" = set; then
36340 echo $ECHO_N "(cached) $ECHO_C" >&6
36341else
36342
36343 cat >conftest.$ac_ext <<_ACEOF
36344/* confdefs.h. */
36345_ACEOF
36346cat confdefs.h >>conftest.$ac_ext
36347cat >>conftest.$ac_ext <<_ACEOF
36348/* end confdefs.h. */
36349#include <signal.h>
36350int
36351main ()
36352{
36353
36354 extern void testSigHandler(int);
36355
36356 struct sigaction sa;
36357 sa.sa_handler = testSigHandler;
36358
36359 ;
36360 return 0;
36361}
36362_ACEOF
36363rm -f conftest.$ac_objext
36364if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36365 (eval $ac_compile) 2>conftest.er1
a848cd7e 36366 ac_status=$?
ac1cb8d3
VS
36367 grep -v '^ *+' conftest.er1 >conftest.err
36368 rm -f conftest.er1
36369 cat conftest.err >&5
a848cd7e
SC
36370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36371 (exit $ac_status); } &&
3ea50042 36372 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36374 (eval $ac_try) 2>&5
36375 ac_status=$?
36376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36377 (exit $ac_status); }; } &&
36378 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36380 (eval $ac_try) 2>&5
36381 ac_status=$?
36382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36383 (exit $ac_status); }; }; then
36384
36385 wx_cv_type_sa_handler=int
36386
36387else
36388 echo "$as_me: failed program was:" >&5
36389sed 's/^/| /' conftest.$ac_ext >&5
36390
36391
36392 wx_cv_type_sa_handler=void
36393
36394fi
ac1cb8d3 36395rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36396
36397fi
36398echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
36399echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
36400
a848cd7e
SC
36401 cat >>confdefs.h <<_ACEOF
36402#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
36403_ACEOF
36404
36405 fi
36406fi
36407
eaff0f0d 36408if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then
eaff0f0d
VZ
36409 echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5
36410echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6
36411if test "${wx_cv_func_backtrace+set}" = set; then
36412 echo $ECHO_N "(cached) $ECHO_C" >&6
36413else
36414
36415 cat >conftest.$ac_ext <<_ACEOF
36416/* confdefs.h. */
36417_ACEOF
36418cat confdefs.h >>conftest.$ac_ext
36419cat >>conftest.$ac_ext <<_ACEOF
36420/* end confdefs.h. */
36421#include <execinfo.h>
36422int
36423main ()
36424{
36425
36426 void *trace[1];
36427 char **messages;
36428
36429 backtrace(trace, 1);
36430 messages = backtrace_symbols(trace, 1);
36431
36432 ;
36433 return 0;
36434}
36435_ACEOF
36436rm -f conftest.$ac_objext
36437if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36438 (eval $ac_compile) 2>conftest.er1
36439 ac_status=$?
36440 grep -v '^ *+' conftest.er1 >conftest.err
36441 rm -f conftest.er1
36442 cat conftest.err >&5
36443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36444 (exit $ac_status); } &&
3ea50042 36445 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
eaff0f0d
VZ
36446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36447 (eval $ac_try) 2>&5
36448 ac_status=$?
36449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36450 (exit $ac_status); }; } &&
36451 { ac_try='test -s conftest.$ac_objext'
36452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36453 (eval $ac_try) 2>&5
36454 ac_status=$?
36455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36456 (exit $ac_status); }; }; then
36457 wx_cv_func_backtrace=yes
36458else
36459 echo "$as_me: failed program was:" >&5
36460sed 's/^/| /' conftest.$ac_ext >&5
36461
36462wx_cv_func_backtrace=no
36463
36464fi
36465rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36466
36467
36468fi
36469echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5
36470echo "${ECHO_T}$wx_cv_func_backtrace" >&6
36471
36472
36473 if test "$wx_cv_func_backtrace" = "no"; then
36474 { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5
36475echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;}
36476 wxUSE_STACKWALKER=no
36477 else
36478 echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5
36479echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6
36480if test "${wx_cv_func_cxa_demangle+set}" = set; then
36481 echo $ECHO_N "(cached) $ECHO_C" >&6
36482else
36483
36484 cat >conftest.$ac_ext <<_ACEOF
36485/* confdefs.h. */
36486_ACEOF
36487cat confdefs.h >>conftest.$ac_ext
36488cat >>conftest.$ac_ext <<_ACEOF
36489/* end confdefs.h. */
36490#include <cxxabi.h>
36491int
36492main ()
36493{
36494
36495 int rc;
36496 __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc);
36497
36498 ;
36499 return 0;
36500}
36501_ACEOF
dfe0c803
JS
36502rm -f conftest.$ac_objext conftest$ac_exeext
36503if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36504 (eval $ac_link) 2>conftest.er1
eaff0f0d
VZ
36505 ac_status=$?
36506 grep -v '^ *+' conftest.er1 >conftest.err
36507 rm -f conftest.er1
36508 cat conftest.err >&5
36509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36510 (exit $ac_status); } &&
3ea50042 36511 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
eaff0f0d
VZ
36512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36513 (eval $ac_try) 2>&5
36514 ac_status=$?
36515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36516 (exit $ac_status); }; } &&
dfe0c803 36517 { ac_try='test -s conftest$ac_exeext'
eaff0f0d
VZ
36518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36519 (eval $ac_try) 2>&5
36520 ac_status=$?
36521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36522 (exit $ac_status); }; }; then
36523 wx_cv_func_cxa_demangle=yes
36524else
36525 echo "$as_me: failed program was:" >&5
36526sed 's/^/| /' conftest.$ac_ext >&5
36527
36528wx_cv_func_cxa_demangle=no
36529
36530fi
dfe0c803
JS
36531rm -f conftest.err conftest.$ac_objext \
36532 conftest$ac_exeext conftest.$ac_ext
eaff0f0d
VZ
36533
36534
36535fi
36536echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5
36537echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6
36538
36539 if test "$wx_cv_func_cxa_demangle" = "yes"; then
36540 cat >>confdefs.h <<\_ACEOF
36541#define HAVE_CXA_DEMANGLE 1
36542_ACEOF
36543
36544 fi
36545 fi
eaff0f0d
VZ
36546fi
36547
898beab1
DE
36548if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != "1" -a "$USE_UNIX" != "1"; then
36549 { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5
36550echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;}
36551 wxUSE_STACKWALKER=no
36552fi
36553
36554
a848cd7e
SC
36555
36556
36557for ac_func in mkstemp mktemp
36558do
36559as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36560echo "$as_me:$LINENO: checking for $ac_func" >&5
36561echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36562if eval "test \"\${$as_ac_var+set}\" = set"; then
36563 echo $ECHO_N "(cached) $ECHO_C" >&6
36564else
36565 cat >conftest.$ac_ext <<_ACEOF
36566/* confdefs.h. */
36567_ACEOF
36568cat confdefs.h >>conftest.$ac_ext
36569cat >>conftest.$ac_ext <<_ACEOF
36570/* end confdefs.h. */
ac1cb8d3
VS
36571/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36572 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36573#define $ac_func innocuous_$ac_func
36574
a848cd7e
SC
36575/* System header to define __stub macros and hopefully few prototypes,
36576 which can conflict with char $ac_func (); below.
36577 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36578 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36579
a848cd7e
SC
36580#ifdef __STDC__
36581# include <limits.h>
36582#else
36583# include <assert.h>
36584#endif
ac1cb8d3
VS
36585
36586#undef $ac_func
36587
a848cd7e
SC
36588/* Override any gcc2 internal prototype to avoid an error. */
36589#ifdef __cplusplus
36590extern "C"
36591{
36592#endif
36593/* We use char because int might match the return type of a gcc2
36594 builtin and then its argument prototype would still apply. */
36595char $ac_func ();
36596/* The GNU C library defines this for functions which it implements
36597 to always fail with ENOSYS. Some functions are actually named
36598 something starting with __ and the normal name is an alias. */
36599#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36600choke me
36601#else
36602char (*f) () = $ac_func;
36603#endif
36604#ifdef __cplusplus
36605}
36606#endif
36607
36608int
36609main ()
36610{
36611return f != $ac_func;
36612 ;
36613 return 0;
36614}
36615_ACEOF
36616rm -f conftest.$ac_objext conftest$ac_exeext
36617if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36618 (eval $ac_link) 2>conftest.er1
a848cd7e 36619 ac_status=$?
ac1cb8d3
VS
36620 grep -v '^ *+' conftest.er1 >conftest.err
36621 rm -f conftest.er1
36622 cat conftest.err >&5
a848cd7e
SC
36623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36624 (exit $ac_status); } &&
3ea50042 36625 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36627 (eval $ac_try) 2>&5
36628 ac_status=$?
36629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36630 (exit $ac_status); }; } &&
36631 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36633 (eval $ac_try) 2>&5
36634 ac_status=$?
36635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36636 (exit $ac_status); }; }; then
36637 eval "$as_ac_var=yes"
36638else
36639 echo "$as_me: failed program was:" >&5
36640sed 's/^/| /' conftest.$ac_ext >&5
36641
36642eval "$as_ac_var=no"
36643fi
ac1cb8d3
VS
36644rm -f conftest.err conftest.$ac_objext \
36645 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36646fi
36647echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36648echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36649if test `eval echo '${'$as_ac_var'}'` = yes; then
36650 cat >>confdefs.h <<_ACEOF
36651#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36652_ACEOF
36653 break
36654fi
36655done
36656
36657
36658echo "$as_me:$LINENO: checking for statfs" >&5
36659echo $ECHO_N "checking for statfs... $ECHO_C" >&6
36660if test "${wx_cv_func_statfs+set}" = set; then
36661 echo $ECHO_N "(cached) $ECHO_C" >&6
36662else
36663 cat >conftest.$ac_ext <<_ACEOF
36664/* confdefs.h. */
36665_ACEOF
36666cat confdefs.h >>conftest.$ac_ext
36667cat >>conftest.$ac_ext <<_ACEOF
36668/* end confdefs.h. */
36669
36670 #if defined(__BSD__)
84ae7ca4
VZ
36671 #include <sys/param.h>
36672 #include <sys/mount.h>
a848cd7e 36673 #else
84ae7ca4 36674 #include <sys/vfs.h>
a848cd7e
SC
36675 #endif
36676
36677int
36678main ()
36679{
36680
36681 long l;
36682 struct statfs fs;
36683 statfs("/", &fs);
36684 l = fs.f_bsize;
36685 l += fs.f_blocks;
36686 l += fs.f_bavail;
36687
36688 ;
36689 return 0;
36690}
36691_ACEOF
36692rm -f conftest.$ac_objext
36693if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36694 (eval $ac_compile) 2>conftest.er1
a848cd7e 36695 ac_status=$?
ac1cb8d3
VS
36696 grep -v '^ *+' conftest.er1 >conftest.err
36697 rm -f conftest.er1
36698 cat conftest.err >&5
a848cd7e
SC
36699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36700 (exit $ac_status); } &&
3ea50042 36701 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36703 (eval $ac_try) 2>&5
36704 ac_status=$?
36705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36706 (exit $ac_status); }; } &&
36707 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36709 (eval $ac_try) 2>&5
36710 ac_status=$?
36711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36712 (exit $ac_status); }; }; then
84ae7ca4 36713 wx_cv_func_statfs=yes
a848cd7e
SC
36714else
36715 echo "$as_me: failed program was:" >&5
36716sed 's/^/| /' conftest.$ac_ext >&5
36717
84ae7ca4 36718wx_cv_func_statfs=no
a848cd7e
SC
36719
36720fi
ac1cb8d3 36721rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36722
36723fi
36724echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
36725echo "${ECHO_T}$wx_cv_func_statfs" >&6
36726
36727if test "$wx_cv_func_statfs" = "yes"; then
5d7b7554 36728 echo "$as_me:$LINENO: checking for statfs declaration" >&5
84ae7ca4
VZ
36729echo $ECHO_N "checking for statfs declaration... $ECHO_C" >&6
36730if test "${wx_cv_func_statfs_decl+set}" = set; then
36731 echo $ECHO_N "(cached) $ECHO_C" >&6
36732else
0683aca6
VZ
36733 cat >conftest.$ac_ext <<_ACEOF
36734/* confdefs.h. */
36735_ACEOF
36736cat confdefs.h >>conftest.$ac_ext
36737cat >>conftest.$ac_ext <<_ACEOF
36738/* end confdefs.h. */
84ae7ca4 36739
0683aca6
VZ
36740 #if defined(__BSD__)
36741 #include <sys/param.h>
36742 #include <sys/mount.h>
36743 #else
36744 #include <sys/vfs.h>
36745 #endif
36746
36747int
36748main ()
36749{
36750
36751 struct statfs fs;
36752 statfs("", &fs);
36753
36754 ;
36755 return 0;
36756}
36757_ACEOF
36758rm -f conftest.$ac_objext
36759if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36760 (eval $ac_compile) 2>conftest.er1
36761 ac_status=$?
36762 grep -v '^ *+' conftest.er1 >conftest.err
36763 rm -f conftest.er1
36764 cat conftest.err >&5
36765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36766 (exit $ac_status); } &&
3ea50042 36767 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0683aca6
VZ
36768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36769 (eval $ac_try) 2>&5
36770 ac_status=$?
36771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36772 (exit $ac_status); }; } &&
36773 { ac_try='test -s conftest.$ac_objext'
36774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36775 (eval $ac_try) 2>&5
36776 ac_status=$?
36777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36778 (exit $ac_status); }; }; then
36779 wx_cv_func_statfs_decl=yes
36780else
36781 echo "$as_me: failed program was:" >&5
36782sed 's/^/| /' conftest.$ac_ext >&5
36783
36784wx_cv_func_statfs_decl=no
36785
36786fi
36787rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
84ae7ca4
VZ
36788
36789fi
36790echo "$as_me:$LINENO: result: $wx_cv_func_statfs_decl" >&5
36791echo "${ECHO_T}$wx_cv_func_statfs_decl" >&6
84ae7ca4
VZ
36792
36793 if test "$wx_cv_func_statfs_decl" = "yes"; then
36794 cat >>confdefs.h <<\_ACEOF
36795#define HAVE_STATFS_DECL 1
36796_ACEOF
36797
36798 fi
36799
a848cd7e
SC
36800 wx_cv_type_statvfs_t="struct statfs"
36801 cat >>confdefs.h <<\_ACEOF
36802#define HAVE_STATFS 1
36803_ACEOF
36804
36805else
36806 echo "$as_me:$LINENO: checking for statvfs" >&5
36807echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
36808if test "${wx_cv_func_statvfs+set}" = set; then
36809 echo $ECHO_N "(cached) $ECHO_C" >&6
36810else
36811 cat >conftest.$ac_ext <<_ACEOF
36812/* confdefs.h. */
36813_ACEOF
36814cat confdefs.h >>conftest.$ac_ext
36815cat >>conftest.$ac_ext <<_ACEOF
36816/* end confdefs.h. */
36817
36818 #include <stddef.h>
36819 #include <sys/statvfs.h>
36820
36821int
36822main ()
36823{
36824
36825 statvfs("/", NULL);
36826
36827 ;
36828 return 0;
36829}
36830_ACEOF
36831rm -f conftest.$ac_objext
36832if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36833 (eval $ac_compile) 2>conftest.er1
a848cd7e 36834 ac_status=$?
ac1cb8d3
VS
36835 grep -v '^ *+' conftest.er1 >conftest.err
36836 rm -f conftest.er1
36837 cat conftest.err >&5
a848cd7e
SC
36838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36839 (exit $ac_status); } &&
3ea50042 36840 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36842 (eval $ac_try) 2>&5
36843 ac_status=$?
36844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36845 (exit $ac_status); }; } &&
36846 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36848 (eval $ac_try) 2>&5
36849 ac_status=$?
36850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36851 (exit $ac_status); }; }; then
36852 wx_cv_func_statvfs=yes
36853else
36854 echo "$as_me: failed program was:" >&5
36855sed 's/^/| /' conftest.$ac_ext >&5
36856
36857wx_cv_func_statvfs=no
36858
36859fi
ac1cb8d3 36860rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36861
36862fi
36863echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
36864echo "${ECHO_T}$wx_cv_func_statvfs" >&6
36865
36866 if test "$wx_cv_func_statvfs" = "yes"; then
5d7b7554 36867 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
a848cd7e
SC
36868echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
36869if test "${wx_cv_type_statvfs_t+set}" = set; then
36870 echo $ECHO_N "(cached) $ECHO_C" >&6
36871else
36872 cat >conftest.$ac_ext <<_ACEOF
36873/* confdefs.h. */
36874_ACEOF
36875cat confdefs.h >>conftest.$ac_ext
36876cat >>conftest.$ac_ext <<_ACEOF
36877/* end confdefs.h. */
36878
36879 #include <sys/statvfs.h>
36880
36881int
36882main ()
36883{
36884
36885 long l;
36886 statvfs_t fs;
36887 statvfs("/", &fs);
36888 l = fs.f_bsize;
36889 l += fs.f_blocks;
36890 l += fs.f_bavail;
36891
36892 ;
36893 return 0;
36894}
36895_ACEOF
36896rm -f conftest.$ac_objext
36897if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36898 (eval $ac_compile) 2>conftest.er1
a848cd7e 36899 ac_status=$?
ac1cb8d3
VS
36900 grep -v '^ *+' conftest.er1 >conftest.err
36901 rm -f conftest.er1
36902 cat conftest.err >&5
a848cd7e
SC
36903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36904 (exit $ac_status); } &&
3ea50042 36905 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36907 (eval $ac_try) 2>&5
36908 ac_status=$?
36909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36910 (exit $ac_status); }; } &&
36911 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36913 (eval $ac_try) 2>&5
36914 ac_status=$?
36915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36916 (exit $ac_status); }; }; then
36917 wx_cv_type_statvfs_t=statvfs_t
36918else
36919 echo "$as_me: failed program was:" >&5
36920sed 's/^/| /' conftest.$ac_ext >&5
36921
36922
36923 cat >conftest.$ac_ext <<_ACEOF
36924/* confdefs.h. */
36925_ACEOF
36926cat confdefs.h >>conftest.$ac_ext
36927cat >>conftest.$ac_ext <<_ACEOF
36928/* end confdefs.h. */
36929
36930 #include <sys/statvfs.h>
36931
36932int
36933main ()
36934{
36935
36936 long l;
36937 struct statvfs fs;
36938 statvfs("/", &fs);
36939 l = fs.f_bsize;
36940 l += fs.f_blocks;
36941 l += fs.f_bavail;
36942
36943 ;
36944 return 0;
36945}
36946_ACEOF
36947rm -f conftest.$ac_objext
36948if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36949 (eval $ac_compile) 2>conftest.er1
a848cd7e 36950 ac_status=$?
ac1cb8d3
VS
36951 grep -v '^ *+' conftest.er1 >conftest.err
36952 rm -f conftest.er1
36953 cat conftest.err >&5
a848cd7e
SC
36954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36955 (exit $ac_status); } &&
3ea50042 36956 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36958 (eval $ac_try) 2>&5
36959 ac_status=$?
36960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36961 (exit $ac_status); }; } &&
36962 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36964 (eval $ac_try) 2>&5
36965 ac_status=$?
36966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36967 (exit $ac_status); }; }; then
36968 wx_cv_type_statvfs_t="struct statvfs"
36969else
36970 echo "$as_me: failed program was:" >&5
36971sed 's/^/| /' conftest.$ac_ext >&5
36972
36973wx_cv_type_statvfs_t="unknown"
36974
36975fi
ac1cb8d3 36976rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36977
36978
36979fi
ac1cb8d3 36980rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36981
36982fi
36983echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
36984echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
36985
a848cd7e
SC
36986 if test "$wx_cv_type_statvfs_t" != "unknown"; then
36987 cat >>confdefs.h <<\_ACEOF
36988#define HAVE_STATVFS 1
36989_ACEOF
36990
36991 fi
36992 else
36993 wx_cv_type_statvfs_t="unknown"
36994 fi
36995fi
36996
36997if test "$wx_cv_type_statvfs_t" != "unknown"; then
36998 cat >>confdefs.h <<_ACEOF
36999#define WX_STATFS_T $wx_cv_type_statvfs_t
37000_ACEOF
37001
37002else
37003 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
37004echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
37005fi
37006
37007if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
37008
37009
37010for ac_func in fcntl flock
37011do
37012as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37013echo "$as_me:$LINENO: checking for $ac_func" >&5
37014echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37015if eval "test \"\${$as_ac_var+set}\" = set"; then
37016 echo $ECHO_N "(cached) $ECHO_C" >&6
37017else
37018 cat >conftest.$ac_ext <<_ACEOF
37019/* confdefs.h. */
37020_ACEOF
37021cat confdefs.h >>conftest.$ac_ext
37022cat >>conftest.$ac_ext <<_ACEOF
37023/* end confdefs.h. */
ac1cb8d3
VS
37024/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37025 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37026#define $ac_func innocuous_$ac_func
37027
a848cd7e
SC
37028/* System header to define __stub macros and hopefully few prototypes,
37029 which can conflict with char $ac_func (); below.
37030 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37031 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37032
a848cd7e
SC
37033#ifdef __STDC__
37034# include <limits.h>
37035#else
37036# include <assert.h>
37037#endif
ac1cb8d3
VS
37038
37039#undef $ac_func
37040
a848cd7e
SC
37041/* Override any gcc2 internal prototype to avoid an error. */
37042#ifdef __cplusplus
37043extern "C"
37044{
37045#endif
37046/* We use char because int might match the return type of a gcc2
37047 builtin and then its argument prototype would still apply. */
37048char $ac_func ();
37049/* The GNU C library defines this for functions which it implements
37050 to always fail with ENOSYS. Some functions are actually named
37051 something starting with __ and the normal name is an alias. */
37052#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37053choke me
37054#else
37055char (*f) () = $ac_func;
37056#endif
37057#ifdef __cplusplus
37058}
37059#endif
37060
37061int
37062main ()
37063{
37064return f != $ac_func;
37065 ;
37066 return 0;
37067}
37068_ACEOF
37069rm -f conftest.$ac_objext conftest$ac_exeext
37070if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37071 (eval $ac_link) 2>conftest.er1
a848cd7e 37072 ac_status=$?
ac1cb8d3
VS
37073 grep -v '^ *+' conftest.er1 >conftest.err
37074 rm -f conftest.er1
37075 cat conftest.err >&5
a848cd7e
SC
37076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37077 (exit $ac_status); } &&
3ea50042 37078 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37080 (eval $ac_try) 2>&5
37081 ac_status=$?
37082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37083 (exit $ac_status); }; } &&
37084 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37086 (eval $ac_try) 2>&5
37087 ac_status=$?
37088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37089 (exit $ac_status); }; }; then
37090 eval "$as_ac_var=yes"
37091else
37092 echo "$as_me: failed program was:" >&5
37093sed 's/^/| /' conftest.$ac_ext >&5
37094
37095eval "$as_ac_var=no"
37096fi
ac1cb8d3
VS
37097rm -f conftest.err conftest.$ac_objext \
37098 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37099fi
37100echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37101echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37102if test `eval echo '${'$as_ac_var'}'` = yes; then
37103 cat >>confdefs.h <<_ACEOF
37104#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37105_ACEOF
37106 break
37107fi
37108done
37109
37110
37111 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
37112 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
37113echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
37114 wxUSE_SNGLINST_CHECKER=no
37115 fi
37116fi
37117
37118
37119for ac_func in timegm
37120do
37121as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37122echo "$as_me:$LINENO: checking for $ac_func" >&5
37123echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37124if eval "test \"\${$as_ac_var+set}\" = set"; then
37125 echo $ECHO_N "(cached) $ECHO_C" >&6
37126else
37127 cat >conftest.$ac_ext <<_ACEOF
37128/* confdefs.h. */
37129_ACEOF
37130cat confdefs.h >>conftest.$ac_ext
37131cat >>conftest.$ac_ext <<_ACEOF
37132/* end confdefs.h. */
ac1cb8d3
VS
37133/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37134 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37135#define $ac_func innocuous_$ac_func
37136
a848cd7e
SC
37137/* System header to define __stub macros and hopefully few prototypes,
37138 which can conflict with char $ac_func (); below.
37139 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37140 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37141
a848cd7e
SC
37142#ifdef __STDC__
37143# include <limits.h>
37144#else
37145# include <assert.h>
37146#endif
ac1cb8d3
VS
37147
37148#undef $ac_func
37149
a848cd7e
SC
37150/* Override any gcc2 internal prototype to avoid an error. */
37151#ifdef __cplusplus
37152extern "C"
37153{
37154#endif
37155/* We use char because int might match the return type of a gcc2
37156 builtin and then its argument prototype would still apply. */
37157char $ac_func ();
37158/* The GNU C library defines this for functions which it implements
37159 to always fail with ENOSYS. Some functions are actually named
37160 something starting with __ and the normal name is an alias. */
37161#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37162choke me
37163#else
37164char (*f) () = $ac_func;
37165#endif
37166#ifdef __cplusplus
37167}
37168#endif
37169
37170int
37171main ()
37172{
37173return f != $ac_func;
37174 ;
37175 return 0;
37176}
37177_ACEOF
37178rm -f conftest.$ac_objext conftest$ac_exeext
37179if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37180 (eval $ac_link) 2>conftest.er1
a848cd7e 37181 ac_status=$?
ac1cb8d3
VS
37182 grep -v '^ *+' conftest.er1 >conftest.err
37183 rm -f conftest.er1
37184 cat conftest.err >&5
a848cd7e
SC
37185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37186 (exit $ac_status); } &&
3ea50042 37187 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37189 (eval $ac_try) 2>&5
37190 ac_status=$?
37191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37192 (exit $ac_status); }; } &&
37193 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37195 (eval $ac_try) 2>&5
37196 ac_status=$?
37197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37198 (exit $ac_status); }; }; then
37199 eval "$as_ac_var=yes"
37200else
37201 echo "$as_me: failed program was:" >&5
37202sed 's/^/| /' conftest.$ac_ext >&5
37203
37204eval "$as_ac_var=no"
37205fi
ac1cb8d3
VS
37206rm -f conftest.err conftest.$ac_objext \
37207 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37208fi
37209echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37210echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37211if test `eval echo '${'$as_ac_var'}'` = yes; then
37212 cat >>confdefs.h <<_ACEOF
37213#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37214_ACEOF
37215
37216fi
37217done
37218
37219
37220
37221
37222for ac_func in putenv setenv
37223do
37224as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37225echo "$as_me:$LINENO: checking for $ac_func" >&5
37226echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37227if eval "test \"\${$as_ac_var+set}\" = set"; then
37228 echo $ECHO_N "(cached) $ECHO_C" >&6
37229else
37230 cat >conftest.$ac_ext <<_ACEOF
37231/* confdefs.h. */
37232_ACEOF
37233cat confdefs.h >>conftest.$ac_ext
37234cat >>conftest.$ac_ext <<_ACEOF
37235/* end confdefs.h. */
ac1cb8d3
VS
37236/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37237 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37238#define $ac_func innocuous_$ac_func
37239
a848cd7e
SC
37240/* System header to define __stub macros and hopefully few prototypes,
37241 which can conflict with char $ac_func (); below.
37242 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37243 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37244
a848cd7e
SC
37245#ifdef __STDC__
37246# include <limits.h>
37247#else
37248# include <assert.h>
37249#endif
ac1cb8d3
VS
37250
37251#undef $ac_func
37252
a848cd7e
SC
37253/* Override any gcc2 internal prototype to avoid an error. */
37254#ifdef __cplusplus
37255extern "C"
37256{
37257#endif
37258/* We use char because int might match the return type of a gcc2
37259 builtin and then its argument prototype would still apply. */
37260char $ac_func ();
37261/* The GNU C library defines this for functions which it implements
37262 to always fail with ENOSYS. Some functions are actually named
37263 something starting with __ and the normal name is an alias. */
37264#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37265choke me
37266#else
37267char (*f) () = $ac_func;
37268#endif
37269#ifdef __cplusplus
37270}
37271#endif
37272
37273int
37274main ()
37275{
37276return f != $ac_func;
37277 ;
37278 return 0;
37279}
37280_ACEOF
37281rm -f conftest.$ac_objext conftest$ac_exeext
37282if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37283 (eval $ac_link) 2>conftest.er1
a848cd7e 37284 ac_status=$?
ac1cb8d3
VS
37285 grep -v '^ *+' conftest.er1 >conftest.err
37286 rm -f conftest.er1
37287 cat conftest.err >&5
a848cd7e
SC
37288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37289 (exit $ac_status); } &&
3ea50042 37290 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37292 (eval $ac_try) 2>&5
37293 ac_status=$?
37294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37295 (exit $ac_status); }; } &&
37296 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37298 (eval $ac_try) 2>&5
37299 ac_status=$?
37300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37301 (exit $ac_status); }; }; then
37302 eval "$as_ac_var=yes"
37303else
37304 echo "$as_me: failed program was:" >&5
37305sed 's/^/| /' conftest.$ac_ext >&5
37306
37307eval "$as_ac_var=no"
37308fi
ac1cb8d3
VS
37309rm -f conftest.err conftest.$ac_objext \
37310 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37311fi
37312echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37313echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37314if test `eval echo '${'$as_ac_var'}'` = yes; then
37315 cat >>confdefs.h <<_ACEOF
37316#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37317_ACEOF
37318 break
37319fi
37320done
37321
37322
37323HAVE_SOME_SLEEP_FUNC=0
37324if test "$USE_BEOS" = 1; then
37325 cat >>confdefs.h <<\_ACEOF
37326#define HAVE_SLEEP 1
37327_ACEOF
37328
37329 HAVE_SOME_SLEEP_FUNC=1
37330fi
37331
37332if test "$USE_DARWIN" = 1; then
37333 cat >>confdefs.h <<\_ACEOF
37334#define HAVE_USLEEP 1
37335_ACEOF
37336
37337 HAVE_SOME_SLEEP_FUNC=1
37338fi
37339
37340if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
37341 POSIX4_LINK=
37342
37343for ac_func in nanosleep
37344do
37345as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37346echo "$as_me:$LINENO: checking for $ac_func" >&5
37347echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37348if eval "test \"\${$as_ac_var+set}\" = set"; then
37349 echo $ECHO_N "(cached) $ECHO_C" >&6
37350else
37351 cat >conftest.$ac_ext <<_ACEOF
37352/* confdefs.h. */
37353_ACEOF
37354cat confdefs.h >>conftest.$ac_ext
37355cat >>conftest.$ac_ext <<_ACEOF
37356/* end confdefs.h. */
ac1cb8d3
VS
37357/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37358 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37359#define $ac_func innocuous_$ac_func
37360
a848cd7e
SC
37361/* System header to define __stub macros and hopefully few prototypes,
37362 which can conflict with char $ac_func (); below.
37363 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37364 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37365
a848cd7e
SC
37366#ifdef __STDC__
37367# include <limits.h>
37368#else
37369# include <assert.h>
37370#endif
ac1cb8d3
VS
37371
37372#undef $ac_func
37373
a848cd7e
SC
37374/* Override any gcc2 internal prototype to avoid an error. */
37375#ifdef __cplusplus
37376extern "C"
37377{
37378#endif
37379/* We use char because int might match the return type of a gcc2
37380 builtin and then its argument prototype would still apply. */
37381char $ac_func ();
37382/* The GNU C library defines this for functions which it implements
37383 to always fail with ENOSYS. Some functions are actually named
37384 something starting with __ and the normal name is an alias. */
37385#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37386choke me
37387#else
37388char (*f) () = $ac_func;
37389#endif
37390#ifdef __cplusplus
37391}
37392#endif
37393
37394int
37395main ()
37396{
37397return f != $ac_func;
37398 ;
37399 return 0;
37400}
37401_ACEOF
37402rm -f conftest.$ac_objext conftest$ac_exeext
37403if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37404 (eval $ac_link) 2>conftest.er1
a848cd7e 37405 ac_status=$?
ac1cb8d3
VS
37406 grep -v '^ *+' conftest.er1 >conftest.err
37407 rm -f conftest.er1
37408 cat conftest.err >&5
a848cd7e
SC
37409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37410 (exit $ac_status); } &&
3ea50042 37411 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37413 (eval $ac_try) 2>&5
37414 ac_status=$?
37415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37416 (exit $ac_status); }; } &&
37417 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37419 (eval $ac_try) 2>&5
37420 ac_status=$?
37421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37422 (exit $ac_status); }; }; then
37423 eval "$as_ac_var=yes"
37424else
37425 echo "$as_me: failed program was:" >&5
37426sed 's/^/| /' conftest.$ac_ext >&5
37427
37428eval "$as_ac_var=no"
37429fi
ac1cb8d3
VS
37430rm -f conftest.err conftest.$ac_objext \
37431 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37432fi
37433echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37434echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37435if test `eval echo '${'$as_ac_var'}'` = yes; then
37436 cat >>confdefs.h <<_ACEOF
37437#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37438_ACEOF
37439 cat >>confdefs.h <<\_ACEOF
37440#define HAVE_NANOSLEEP 1
37441_ACEOF
37442
37443else
37444
37445 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
37446echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
37447if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
37448 echo $ECHO_N "(cached) $ECHO_C" >&6
37449else
37450 ac_check_lib_save_LIBS=$LIBS
37451LIBS="-lposix4 $LIBS"
37452cat >conftest.$ac_ext <<_ACEOF
37453/* confdefs.h. */
37454_ACEOF
37455cat confdefs.h >>conftest.$ac_ext
37456cat >>conftest.$ac_ext <<_ACEOF
37457/* end confdefs.h. */
37458
37459/* Override any gcc2 internal prototype to avoid an error. */
37460#ifdef __cplusplus
37461extern "C"
37462#endif
37463/* We use char because int might match the return type of a gcc2
37464 builtin and then its argument prototype would still apply. */
37465char nanosleep ();
37466int
37467main ()
37468{
37469nanosleep ();
37470 ;
37471 return 0;
37472}
37473_ACEOF
37474rm -f conftest.$ac_objext conftest$ac_exeext
37475if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37476 (eval $ac_link) 2>conftest.er1
a848cd7e 37477 ac_status=$?
ac1cb8d3
VS
37478 grep -v '^ *+' conftest.er1 >conftest.err
37479 rm -f conftest.er1
37480 cat conftest.err >&5
a848cd7e
SC
37481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37482 (exit $ac_status); } &&
3ea50042 37483 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37485 (eval $ac_try) 2>&5
37486 ac_status=$?
37487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37488 (exit $ac_status); }; } &&
37489 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37491 (eval $ac_try) 2>&5
37492 ac_status=$?
37493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37494 (exit $ac_status); }; }; then
37495 ac_cv_lib_posix4_nanosleep=yes
37496else
37497 echo "$as_me: failed program was:" >&5
37498sed 's/^/| /' conftest.$ac_ext >&5
37499
37500ac_cv_lib_posix4_nanosleep=no
37501fi
ac1cb8d3
VS
37502rm -f conftest.err conftest.$ac_objext \
37503 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37504LIBS=$ac_check_lib_save_LIBS
37505fi
37506echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
37507echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
37508if test $ac_cv_lib_posix4_nanosleep = yes; then
37509
37510 cat >>confdefs.h <<\_ACEOF
37511#define HAVE_NANOSLEEP 1
37512_ACEOF
37513
37514 POSIX4_LINK=" -lposix4"
37515
37516else
37517
37518
37519for ac_func in usleep
37520do
37521as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37522echo "$as_me:$LINENO: checking for $ac_func" >&5
37523echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37524if eval "test \"\${$as_ac_var+set}\" = set"; then
37525 echo $ECHO_N "(cached) $ECHO_C" >&6
37526else
37527 cat >conftest.$ac_ext <<_ACEOF
37528/* confdefs.h. */
37529_ACEOF
37530cat confdefs.h >>conftest.$ac_ext
37531cat >>conftest.$ac_ext <<_ACEOF
37532/* end confdefs.h. */
ac1cb8d3
VS
37533/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37534 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37535#define $ac_func innocuous_$ac_func
37536
a848cd7e
SC
37537/* System header to define __stub macros and hopefully few prototypes,
37538 which can conflict with char $ac_func (); below.
37539 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37540 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37541
a848cd7e
SC
37542#ifdef __STDC__
37543# include <limits.h>
37544#else
37545# include <assert.h>
37546#endif
ac1cb8d3
VS
37547
37548#undef $ac_func
37549
a848cd7e
SC
37550/* Override any gcc2 internal prototype to avoid an error. */
37551#ifdef __cplusplus
37552extern "C"
37553{
37554#endif
37555/* We use char because int might match the return type of a gcc2
37556 builtin and then its argument prototype would still apply. */
37557char $ac_func ();
37558/* The GNU C library defines this for functions which it implements
37559 to always fail with ENOSYS. Some functions are actually named
37560 something starting with __ and the normal name is an alias. */
37561#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37562choke me
37563#else
37564char (*f) () = $ac_func;
37565#endif
37566#ifdef __cplusplus
37567}
37568#endif
37569
37570int
37571main ()
37572{
37573return f != $ac_func;
37574 ;
37575 return 0;
37576}
37577_ACEOF
37578rm -f conftest.$ac_objext conftest$ac_exeext
37579if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37580 (eval $ac_link) 2>conftest.er1
a848cd7e 37581 ac_status=$?
ac1cb8d3
VS
37582 grep -v '^ *+' conftest.er1 >conftest.err
37583 rm -f conftest.er1
37584 cat conftest.err >&5
a848cd7e
SC
37585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37586 (exit $ac_status); } &&
3ea50042 37587 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37589 (eval $ac_try) 2>&5
37590 ac_status=$?
37591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37592 (exit $ac_status); }; } &&
37593 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37595 (eval $ac_try) 2>&5
37596 ac_status=$?
37597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37598 (exit $ac_status); }; }; then
37599 eval "$as_ac_var=yes"
37600else
37601 echo "$as_me: failed program was:" >&5
37602sed 's/^/| /' conftest.$ac_ext >&5
37603
37604eval "$as_ac_var=no"
37605fi
ac1cb8d3
VS
37606rm -f conftest.err conftest.$ac_objext \
37607 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37608fi
37609echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37610echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37611if test `eval echo '${'$as_ac_var'}'` = yes; then
37612 cat >>confdefs.h <<_ACEOF
37613#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37614_ACEOF
37615 cat >>confdefs.h <<\_ACEOF
37616#define HAVE_USLEEP 1
37617_ACEOF
37618
37619else
37620 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
37621echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
37622
37623fi
37624done
37625
37626
37627
37628fi
37629
37630
37631
37632fi
37633done
37634
37635fi
37636
37637
37638
37639for ac_func in uname gethostname
37640do
37641as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37642echo "$as_me:$LINENO: checking for $ac_func" >&5
37643echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37644if eval "test \"\${$as_ac_var+set}\" = set"; then
37645 echo $ECHO_N "(cached) $ECHO_C" >&6
37646else
37647 cat >conftest.$ac_ext <<_ACEOF
37648/* confdefs.h. */
37649_ACEOF
37650cat confdefs.h >>conftest.$ac_ext
37651cat >>conftest.$ac_ext <<_ACEOF
37652/* end confdefs.h. */
ac1cb8d3
VS
37653/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37654 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37655#define $ac_func innocuous_$ac_func
37656
a848cd7e
SC
37657/* System header to define __stub macros and hopefully few prototypes,
37658 which can conflict with char $ac_func (); below.
37659 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37660 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37661
a848cd7e
SC
37662#ifdef __STDC__
37663# include <limits.h>
37664#else
37665# include <assert.h>
37666#endif
ac1cb8d3
VS
37667
37668#undef $ac_func
37669
a848cd7e
SC
37670/* Override any gcc2 internal prototype to avoid an error. */
37671#ifdef __cplusplus
37672extern "C"
37673{
37674#endif
37675/* We use char because int might match the return type of a gcc2
37676 builtin and then its argument prototype would still apply. */
37677char $ac_func ();
37678/* The GNU C library defines this for functions which it implements
37679 to always fail with ENOSYS. Some functions are actually named
37680 something starting with __ and the normal name is an alias. */
37681#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37682choke me
37683#else
37684char (*f) () = $ac_func;
37685#endif
37686#ifdef __cplusplus
37687}
37688#endif
37689
37690int
37691main ()
37692{
37693return f != $ac_func;
37694 ;
37695 return 0;
37696}
37697_ACEOF
37698rm -f conftest.$ac_objext conftest$ac_exeext
37699if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37700 (eval $ac_link) 2>conftest.er1
a848cd7e 37701 ac_status=$?
ac1cb8d3
VS
37702 grep -v '^ *+' conftest.er1 >conftest.err
37703 rm -f conftest.er1
37704 cat conftest.err >&5
a848cd7e
SC
37705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37706 (exit $ac_status); } &&
3ea50042 37707 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37709 (eval $ac_try) 2>&5
37710 ac_status=$?
37711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37712 (exit $ac_status); }; } &&
37713 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37715 (eval $ac_try) 2>&5
37716 ac_status=$?
37717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37718 (exit $ac_status); }; }; then
37719 eval "$as_ac_var=yes"
37720else
37721 echo "$as_me: failed program was:" >&5
37722sed 's/^/| /' conftest.$ac_ext >&5
37723
37724eval "$as_ac_var=no"
37725fi
ac1cb8d3
VS
37726rm -f conftest.err conftest.$ac_objext \
37727 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37728fi
37729echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37730echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37731if test `eval echo '${'$as_ac_var'}'` = yes; then
37732 cat >>confdefs.h <<_ACEOF
37733#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37734_ACEOF
37735 break
37736fi
37737done
37738
37739
56632e81
MW
37740
37741 for wx_func in strtok_r
37742 do
37743 echo "$as_me:$LINENO: checking for $wx_func" >&5
37744echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6
37745if eval "test \"\${wx_cv_func_$wx_func+set}\" = set"; then
a848cd7e
SC
37746 echo $ECHO_N "(cached) $ECHO_C" >&6
37747else
56632e81
MW
37748
37749 cat >conftest.$ac_ext <<_ACEOF
37750
37751 /* confdefs.h. */
a848cd7e
SC
37752_ACEOF
37753cat confdefs.h >>conftest.$ac_ext
37754cat >>conftest.$ac_ext <<_ACEOF
37755/* end confdefs.h. */
56632e81
MW
37756
37757 #define _REENTRANT
37758 $ac_includes_default
37759
a848cd7e
SC
37760int
37761main ()
37762{
56632e81
MW
37763
37764 #ifndef $wx_func
37765 &$wx_func;
37766 #endif
37767
5acfd58d 37768
a848cd7e
SC
37769 ;
37770 return 0;
37771}
56632e81 37772
a848cd7e 37773_ACEOF
56632e81
MW
37774rm -f conftest.$ac_objext conftest$ac_exeext
37775if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37776 (eval $ac_link) 2>conftest.er1
a848cd7e 37777 ac_status=$?
ac1cb8d3
VS
37778 grep -v '^ *+' conftest.er1 >conftest.err
37779 rm -f conftest.er1
37780 cat conftest.err >&5
a848cd7e
SC
37781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37782 (exit $ac_status); } &&
3ea50042 37783 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37785 (eval $ac_try) 2>&5
37786 ac_status=$?
37787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37788 (exit $ac_status); }; } &&
56632e81 37789 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37791 (eval $ac_try) 2>&5
37792 ac_status=$?
37793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37794 (exit $ac_status); }; }; then
56632e81 37795 eval wx_cv_func_$wx_func=yes
a848cd7e
SC
37796else
37797 echo "$as_me: failed program was:" >&5
37798sed 's/^/| /' conftest.$ac_ext >&5
37799
56632e81 37800eval wx_cv_func_$wx_func=no
a848cd7e 37801fi
56632e81
MW
37802rm -f conftest.err conftest.$ac_objext \
37803 conftest$ac_exeext conftest.$ac_ext
a848cd7e 37804
56632e81
MW
37805fi
37806echo "$as_me:$LINENO: result: `eval echo '${'wx_cv_func_$wx_func'}'`" >&5
37807echo "${ECHO_T}`eval echo '${'wx_cv_func_$wx_func'}'`" >&6
a848cd7e 37808
56632e81
MW
37809 if eval test \$wx_cv_func_$wx_func = yes
37810 then
37811 cat >>confdefs.h <<_ACEOF
37812#define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
82a2636b
MW
37813_ACEOF
37814
37815
56632e81
MW
37816 else
37817 :
5acfd58d 37818
56632e81
MW
37819 fi
37820 done
5acfd58d 37821
a848cd7e 37822
a848cd7e
SC
37823INET_LINK=
37824
37825for ac_func in inet_addr
37826do
37827as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37828echo "$as_me:$LINENO: checking for $ac_func" >&5
37829echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37830if eval "test \"\${$as_ac_var+set}\" = set"; then
37831 echo $ECHO_N "(cached) $ECHO_C" >&6
37832else
37833 cat >conftest.$ac_ext <<_ACEOF
37834/* confdefs.h. */
37835_ACEOF
37836cat confdefs.h >>conftest.$ac_ext
37837cat >>conftest.$ac_ext <<_ACEOF
37838/* end confdefs.h. */
ac1cb8d3
VS
37839/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37840 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37841#define $ac_func innocuous_$ac_func
37842
a848cd7e
SC
37843/* System header to define __stub macros and hopefully few prototypes,
37844 which can conflict with char $ac_func (); below.
37845 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37846 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37847
a848cd7e
SC
37848#ifdef __STDC__
37849# include <limits.h>
37850#else
37851# include <assert.h>
37852#endif
ac1cb8d3
VS
37853
37854#undef $ac_func
37855
a848cd7e
SC
37856/* Override any gcc2 internal prototype to avoid an error. */
37857#ifdef __cplusplus
37858extern "C"
37859{
37860#endif
37861/* We use char because int might match the return type of a gcc2
37862 builtin and then its argument prototype would still apply. */
37863char $ac_func ();
37864/* The GNU C library defines this for functions which it implements
37865 to always fail with ENOSYS. Some functions are actually named
37866 something starting with __ and the normal name is an alias. */
37867#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37868choke me
37869#else
37870char (*f) () = $ac_func;
37871#endif
37872#ifdef __cplusplus
37873}
37874#endif
37875
37876int
37877main ()
37878{
37879return f != $ac_func;
37880 ;
37881 return 0;
37882}
37883_ACEOF
37884rm -f conftest.$ac_objext conftest$ac_exeext
37885if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37886 (eval $ac_link) 2>conftest.er1
a848cd7e 37887 ac_status=$?
ac1cb8d3
VS
37888 grep -v '^ *+' conftest.er1 >conftest.err
37889 rm -f conftest.er1
37890 cat conftest.err >&5
a848cd7e
SC
37891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37892 (exit $ac_status); } &&
3ea50042 37893 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37895 (eval $ac_try) 2>&5
37896 ac_status=$?
37897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37898 (exit $ac_status); }; } &&
37899 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37901 (eval $ac_try) 2>&5
37902 ac_status=$?
37903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37904 (exit $ac_status); }; }; then
37905 eval "$as_ac_var=yes"
37906else
37907 echo "$as_me: failed program was:" >&5
37908sed 's/^/| /' conftest.$ac_ext >&5
37909
37910eval "$as_ac_var=no"
37911fi
ac1cb8d3
VS
37912rm -f conftest.err conftest.$ac_objext \
37913 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37914fi
37915echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37916echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37917if test `eval echo '${'$as_ac_var'}'` = yes; then
37918 cat >>confdefs.h <<_ACEOF
37919#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37920_ACEOF
37921 cat >>confdefs.h <<\_ACEOF
37922#define HAVE_INET_ADDR 1
37923_ACEOF
37924
37925else
37926
37927 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
37928echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
37929if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
37930 echo $ECHO_N "(cached) $ECHO_C" >&6
37931else
37932 ac_check_lib_save_LIBS=$LIBS
37933LIBS="-lnsl $LIBS"
37934cat >conftest.$ac_ext <<_ACEOF
37935/* confdefs.h. */
37936_ACEOF
37937cat confdefs.h >>conftest.$ac_ext
37938cat >>conftest.$ac_ext <<_ACEOF
37939/* end confdefs.h. */
37940
37941/* Override any gcc2 internal prototype to avoid an error. */
37942#ifdef __cplusplus
37943extern "C"
37944#endif
37945/* We use char because int might match the return type of a gcc2
37946 builtin and then its argument prototype would still apply. */
37947char inet_addr ();
37948int
37949main ()
37950{
37951inet_addr ();
37952 ;
37953 return 0;
37954}
37955_ACEOF
37956rm -f conftest.$ac_objext conftest$ac_exeext
37957if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37958 (eval $ac_link) 2>conftest.er1
a848cd7e 37959 ac_status=$?
ac1cb8d3
VS
37960 grep -v '^ *+' conftest.er1 >conftest.err
37961 rm -f conftest.er1
37962 cat conftest.err >&5
a848cd7e
SC
37963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37964 (exit $ac_status); } &&
3ea50042 37965 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37967 (eval $ac_try) 2>&5
37968 ac_status=$?
37969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37970 (exit $ac_status); }; } &&
37971 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37973 (eval $ac_try) 2>&5
37974 ac_status=$?
37975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37976 (exit $ac_status); }; }; then
37977 ac_cv_lib_nsl_inet_addr=yes
37978else
37979 echo "$as_me: failed program was:" >&5
37980sed 's/^/| /' conftest.$ac_ext >&5
37981
37982ac_cv_lib_nsl_inet_addr=no
37983fi
ac1cb8d3
VS
37984rm -f conftest.err conftest.$ac_objext \
37985 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37986LIBS=$ac_check_lib_save_LIBS
37987fi
37988echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
37989echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
37990if test $ac_cv_lib_nsl_inet_addr = yes; then
37991 INET_LINK="nsl"
37992else
37993
37994 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
37995echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
37996if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
37997 echo $ECHO_N "(cached) $ECHO_C" >&6
37998else
37999 ac_check_lib_save_LIBS=$LIBS
38000LIBS="-lresolv $LIBS"
38001cat >conftest.$ac_ext <<_ACEOF
38002/* confdefs.h. */
38003_ACEOF
38004cat confdefs.h >>conftest.$ac_ext
38005cat >>conftest.$ac_ext <<_ACEOF
38006/* end confdefs.h. */
38007
38008/* Override any gcc2 internal prototype to avoid an error. */
38009#ifdef __cplusplus
38010extern "C"
38011#endif
38012/* We use char because int might match the return type of a gcc2
38013 builtin and then its argument prototype would still apply. */
38014char inet_addr ();
38015int
38016main ()
38017{
38018inet_addr ();
38019 ;
38020 return 0;
38021}
38022_ACEOF
38023rm -f conftest.$ac_objext conftest$ac_exeext
38024if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38025 (eval $ac_link) 2>conftest.er1
a848cd7e 38026 ac_status=$?
ac1cb8d3
VS
38027 grep -v '^ *+' conftest.er1 >conftest.err
38028 rm -f conftest.er1
38029 cat conftest.err >&5
a848cd7e
SC
38030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38031 (exit $ac_status); } &&
3ea50042 38032 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38034 (eval $ac_try) 2>&5
38035 ac_status=$?
38036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38037 (exit $ac_status); }; } &&
38038 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38040 (eval $ac_try) 2>&5
38041 ac_status=$?
38042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38043 (exit $ac_status); }; }; then
38044 ac_cv_lib_resolv_inet_addr=yes
38045else
38046 echo "$as_me: failed program was:" >&5
38047sed 's/^/| /' conftest.$ac_ext >&5
38048
38049ac_cv_lib_resolv_inet_addr=no
38050fi
ac1cb8d3
VS
38051rm -f conftest.err conftest.$ac_objext \
38052 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38053LIBS=$ac_check_lib_save_LIBS
38054fi
38055echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
38056echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
38057if test $ac_cv_lib_resolv_inet_addr = yes; then
38058 INET_LINK="resolv"
38059else
38060
38061 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
38062echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
38063if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
38064 echo $ECHO_N "(cached) $ECHO_C" >&6
38065else
38066 ac_check_lib_save_LIBS=$LIBS
38067LIBS="-lsocket $LIBS"
38068cat >conftest.$ac_ext <<_ACEOF
38069/* confdefs.h. */
38070_ACEOF
38071cat confdefs.h >>conftest.$ac_ext
38072cat >>conftest.$ac_ext <<_ACEOF
38073/* end confdefs.h. */
38074
38075/* Override any gcc2 internal prototype to avoid an error. */
38076#ifdef __cplusplus
38077extern "C"
38078#endif
38079/* We use char because int might match the return type of a gcc2
38080 builtin and then its argument prototype would still apply. */
38081char inet_addr ();
38082int
38083main ()
38084{
38085inet_addr ();
38086 ;
38087 return 0;
38088}
38089_ACEOF
38090rm -f conftest.$ac_objext conftest$ac_exeext
38091if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38092 (eval $ac_link) 2>conftest.er1
a848cd7e 38093 ac_status=$?
ac1cb8d3
VS
38094 grep -v '^ *+' conftest.er1 >conftest.err
38095 rm -f conftest.er1
38096 cat conftest.err >&5
a848cd7e
SC
38097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38098 (exit $ac_status); } &&
3ea50042 38099 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38101 (eval $ac_try) 2>&5
38102 ac_status=$?
38103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38104 (exit $ac_status); }; } &&
38105 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38107 (eval $ac_try) 2>&5
38108 ac_status=$?
38109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38110 (exit $ac_status); }; }; then
38111 ac_cv_lib_socket_inet_addr=yes
38112else
38113 echo "$as_me: failed program was:" >&5
38114sed 's/^/| /' conftest.$ac_ext >&5
38115
38116ac_cv_lib_socket_inet_addr=no
38117fi
ac1cb8d3
VS
38118rm -f conftest.err conftest.$ac_objext \
38119 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38120LIBS=$ac_check_lib_save_LIBS
38121fi
38122echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
38123echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
38124if test $ac_cv_lib_socket_inet_addr = yes; then
38125 INET_LINK="socket"
38126
38127fi
38128
38129
38130
38131fi
38132
38133
38134
38135fi
38136
38137
38138
38139fi
38140done
38141
38142
38143
38144for ac_func in inet_aton
38145do
38146as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38147echo "$as_me:$LINENO: checking for $ac_func" >&5
38148echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38149if eval "test \"\${$as_ac_var+set}\" = set"; then
38150 echo $ECHO_N "(cached) $ECHO_C" >&6
38151else
38152 cat >conftest.$ac_ext <<_ACEOF
38153/* confdefs.h. */
38154_ACEOF
38155cat confdefs.h >>conftest.$ac_ext
38156cat >>conftest.$ac_ext <<_ACEOF
38157/* end confdefs.h. */
ac1cb8d3
VS
38158/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38159 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38160#define $ac_func innocuous_$ac_func
38161
a848cd7e
SC
38162/* System header to define __stub macros and hopefully few prototypes,
38163 which can conflict with char $ac_func (); below.
38164 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38165 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38166
a848cd7e
SC
38167#ifdef __STDC__
38168# include <limits.h>
38169#else
38170# include <assert.h>
38171#endif
ac1cb8d3
VS
38172
38173#undef $ac_func
38174
a848cd7e
SC
38175/* Override any gcc2 internal prototype to avoid an error. */
38176#ifdef __cplusplus
38177extern "C"
38178{
38179#endif
38180/* We use char because int might match the return type of a gcc2
38181 builtin and then its argument prototype would still apply. */
38182char $ac_func ();
38183/* The GNU C library defines this for functions which it implements
38184 to always fail with ENOSYS. Some functions are actually named
38185 something starting with __ and the normal name is an alias. */
38186#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38187choke me
38188#else
38189char (*f) () = $ac_func;
38190#endif
38191#ifdef __cplusplus
38192}
38193#endif
38194
38195int
38196main ()
38197{
38198return f != $ac_func;
38199 ;
38200 return 0;
38201}
38202_ACEOF
38203rm -f conftest.$ac_objext conftest$ac_exeext
38204if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38205 (eval $ac_link) 2>conftest.er1
a848cd7e 38206 ac_status=$?
ac1cb8d3
VS
38207 grep -v '^ *+' conftest.er1 >conftest.err
38208 rm -f conftest.er1
38209 cat conftest.err >&5
a848cd7e
SC
38210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38211 (exit $ac_status); } &&
3ea50042 38212 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38214 (eval $ac_try) 2>&5
38215 ac_status=$?
38216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38217 (exit $ac_status); }; } &&
38218 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38220 (eval $ac_try) 2>&5
38221 ac_status=$?
38222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38223 (exit $ac_status); }; }; then
38224 eval "$as_ac_var=yes"
38225else
38226 echo "$as_me: failed program was:" >&5
38227sed 's/^/| /' conftest.$ac_ext >&5
38228
38229eval "$as_ac_var=no"
38230fi
ac1cb8d3
VS
38231rm -f conftest.err conftest.$ac_objext \
38232 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38233fi
38234echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38235echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38236if test `eval echo '${'$as_ac_var'}'` = yes; then
38237 cat >>confdefs.h <<_ACEOF
38238#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38239_ACEOF
38240 cat >>confdefs.h <<\_ACEOF
38241#define HAVE_INET_ATON 1
38242_ACEOF
38243
38244else
38245
38246 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
38247echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
38248echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
38249if eval "test \"\${$as_ac_Lib+set}\" = set"; then
38250 echo $ECHO_N "(cached) $ECHO_C" >&6
38251else
38252 ac_check_lib_save_LIBS=$LIBS
38253LIBS="-l$INET_LINK $LIBS"
38254cat >conftest.$ac_ext <<_ACEOF
38255/* confdefs.h. */
38256_ACEOF
38257cat confdefs.h >>conftest.$ac_ext
38258cat >>conftest.$ac_ext <<_ACEOF
38259/* end confdefs.h. */
38260
38261/* Override any gcc2 internal prototype to avoid an error. */
38262#ifdef __cplusplus
38263extern "C"
38264#endif
38265/* We use char because int might match the return type of a gcc2
38266 builtin and then its argument prototype would still apply. */
38267char inet_aton ();
38268int
38269main ()
38270{
38271inet_aton ();
38272 ;
38273 return 0;
38274}
38275_ACEOF
38276rm -f conftest.$ac_objext conftest$ac_exeext
38277if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38278 (eval $ac_link) 2>conftest.er1
a848cd7e 38279 ac_status=$?
ac1cb8d3
VS
38280 grep -v '^ *+' conftest.er1 >conftest.err
38281 rm -f conftest.er1
38282 cat conftest.err >&5
a848cd7e
SC
38283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38284 (exit $ac_status); } &&
3ea50042 38285 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38287 (eval $ac_try) 2>&5
38288 ac_status=$?
38289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38290 (exit $ac_status); }; } &&
38291 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38293 (eval $ac_try) 2>&5
38294 ac_status=$?
38295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38296 (exit $ac_status); }; }; then
38297 eval "$as_ac_Lib=yes"
38298else
38299 echo "$as_me: failed program was:" >&5
38300sed 's/^/| /' conftest.$ac_ext >&5
38301
38302eval "$as_ac_Lib=no"
38303fi
ac1cb8d3
VS
38304rm -f conftest.err conftest.$ac_objext \
38305 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38306LIBS=$ac_check_lib_save_LIBS
38307fi
38308echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
38309echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
38310if test `eval echo '${'$as_ac_Lib'}'` = yes; then
38311 cat >>confdefs.h <<\_ACEOF
38312#define HAVE_INET_ATON 1
38313_ACEOF
38314
38315fi
38316
38317
38318fi
38319done
38320
38321
38322if test "x$INET_LINK" != "x"; then
38323 cat >>confdefs.h <<\_ACEOF
38324#define HAVE_INET_ADDR 1
38325_ACEOF
38326
38327 INET_LINK=" -l$INET_LINK"
38328fi
38329
38330fi
38331
38332
38333
38334EXTRALIBS_ESD=
38335echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
38336echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
38337if test "${ac_cv_lib_esd_esd_close+set}" = set; then
38338 echo $ECHO_N "(cached) $ECHO_C" >&6
38339else
38340 ac_check_lib_save_LIBS=$LIBS
38341LIBS="-lesd $LIBS"
38342cat >conftest.$ac_ext <<_ACEOF
38343/* confdefs.h. */
38344_ACEOF
38345cat confdefs.h >>conftest.$ac_ext
38346cat >>conftest.$ac_ext <<_ACEOF
38347/* end confdefs.h. */
38348
38349/* Override any gcc2 internal prototype to avoid an error. */
38350#ifdef __cplusplus
38351extern "C"
38352#endif
38353/* We use char because int might match the return type of a gcc2
38354 builtin and then its argument prototype would still apply. */
38355char esd_close ();
38356int
38357main ()
38358{
38359esd_close ();
38360 ;
38361 return 0;
38362}
38363_ACEOF
38364rm -f conftest.$ac_objext conftest$ac_exeext
38365if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38366 (eval $ac_link) 2>conftest.er1
a848cd7e 38367 ac_status=$?
ac1cb8d3
VS
38368 grep -v '^ *+' conftest.er1 >conftest.err
38369 rm -f conftest.er1
38370 cat conftest.err >&5
a848cd7e
SC
38371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38372 (exit $ac_status); } &&
3ea50042 38373 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38375 (eval $ac_try) 2>&5
38376 ac_status=$?
38377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38378 (exit $ac_status); }; } &&
38379 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38381 (eval $ac_try) 2>&5
38382 ac_status=$?
38383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38384 (exit $ac_status); }; }; then
38385 ac_cv_lib_esd_esd_close=yes
38386else
38387 echo "$as_me: failed program was:" >&5
38388sed 's/^/| /' conftest.$ac_ext >&5
38389
38390ac_cv_lib_esd_esd_close=no
38391fi
ac1cb8d3
VS
38392rm -f conftest.err conftest.$ac_objext \
38393 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38394LIBS=$ac_check_lib_save_LIBS
38395fi
38396echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
38397echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
38398if test $ac_cv_lib_esd_esd_close = yes; then
38399
38400
38401for ac_header in esd.h
38402do
38403as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38404if eval "test \"\${$as_ac_Header+set}\" = set"; then
38405 echo "$as_me:$LINENO: checking for $ac_header" >&5
38406echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38407if eval "test \"\${$as_ac_Header+set}\" = set"; then
38408 echo $ECHO_N "(cached) $ECHO_C" >&6
38409fi
38410echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38411echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38412else
38413 # Is the header compilable?
38414echo "$as_me:$LINENO: checking $ac_header usability" >&5
38415echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
38416cat >conftest.$ac_ext <<_ACEOF
38417/* confdefs.h. */
38418_ACEOF
38419cat confdefs.h >>conftest.$ac_ext
38420cat >>conftest.$ac_ext <<_ACEOF
38421/* end confdefs.h. */
38422$ac_includes_default
38423#include <$ac_header>
38424_ACEOF
38425rm -f conftest.$ac_objext
38426if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38427 (eval $ac_compile) 2>conftest.er1
a848cd7e 38428 ac_status=$?
ac1cb8d3
VS
38429 grep -v '^ *+' conftest.er1 >conftest.err
38430 rm -f conftest.er1
38431 cat conftest.err >&5
a848cd7e
SC
38432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38433 (exit $ac_status); } &&
3ea50042 38434 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38436 (eval $ac_try) 2>&5
38437 ac_status=$?
38438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38439 (exit $ac_status); }; } &&
38440 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38442 (eval $ac_try) 2>&5
38443 ac_status=$?
38444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38445 (exit $ac_status); }; }; then
38446 ac_header_compiler=yes
38447else
38448 echo "$as_me: failed program was:" >&5
38449sed 's/^/| /' conftest.$ac_ext >&5
38450
38451ac_header_compiler=no
38452fi
ac1cb8d3 38453rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38454echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38455echo "${ECHO_T}$ac_header_compiler" >&6
38456
38457# Is the header present?
38458echo "$as_me:$LINENO: checking $ac_header presence" >&5
38459echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38460cat >conftest.$ac_ext <<_ACEOF
38461/* confdefs.h. */
38462_ACEOF
38463cat confdefs.h >>conftest.$ac_ext
38464cat >>conftest.$ac_ext <<_ACEOF
38465/* end confdefs.h. */
38466#include <$ac_header>
38467_ACEOF
38468if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38469 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38470 ac_status=$?
38471 grep -v '^ *+' conftest.er1 >conftest.err
38472 rm -f conftest.er1
38473 cat conftest.err >&5
38474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38475 (exit $ac_status); } >/dev/null; then
38476 if test -s conftest.err; then
5d7b7554
VZ
38477 ac_cpp_err=$ac_cxx_preproc_warn_flag
38478 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
38479 else
38480 ac_cpp_err=
38481 fi
38482else
38483 ac_cpp_err=yes
38484fi
38485if test -z "$ac_cpp_err"; then
38486 ac_header_preproc=yes
38487else
38488 echo "$as_me: failed program was:" >&5
38489sed 's/^/| /' conftest.$ac_ext >&5
38490
38491 ac_header_preproc=no
38492fi
38493rm -f conftest.err conftest.$ac_ext
38494echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38495echo "${ECHO_T}$ac_header_preproc" >&6
38496
38497# So? What about this header?
5d7b7554 38498case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 38499 yes:no: )
a848cd7e
SC
38500 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38501echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
38502 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38503echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38504 ac_header_preproc=yes
a848cd7e 38505 ;;
ac1cb8d3 38506 no:yes:* )
a848cd7e
SC
38507 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38508echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
38509 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
38510echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
38511 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38512echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38513 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
38514echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
38515 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38516echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
38517 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38518echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
38519 (
38520 cat <<\_ASBOX
ac1cb8d3
VS
38521## ----------------------------------------- ##
38522## Report this to wx-dev@lists.wxwidgets.org ##
38523## ----------------------------------------- ##
a848cd7e
SC
38524_ASBOX
38525 ) |
38526 sed "s/^/$as_me: WARNING: /" >&2
38527 ;;
38528esac
38529echo "$as_me:$LINENO: checking for $ac_header" >&5
38530echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38531if eval "test \"\${$as_ac_Header+set}\" = set"; then
38532 echo $ECHO_N "(cached) $ECHO_C" >&6
38533else
ac1cb8d3 38534 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
38535fi
38536echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38537echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38538
38539fi
38540if test `eval echo '${'$as_ac_Header'}'` = yes; then
38541 cat >>confdefs.h <<_ACEOF
38542#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38543_ACEOF
38544
38545 EXTRALIBS_ESD="-lesd"
38546
38547fi
38548
38549done
38550
38551
38552fi
38553
38554
38555
38556echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
38557echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
38558cat >conftest.$ac_ext <<_ACEOF
38559/* confdefs.h. */
38560_ACEOF
38561cat confdefs.h >>conftest.$ac_ext
38562cat >>conftest.$ac_ext <<_ACEOF
38563/* end confdefs.h. */
38564#ifdef __linux__
38565 #include <linux/cdrom.h>
38566 #else
38567 /* For Solaris */
38568 #include <sys/cdio.h>
38569 #endif
38570
38571int
38572main ()
38573{
38574struct cdrom_tocentry entry, old_entry;
38575 ;
38576 return 0;
38577}
38578_ACEOF
38579rm -f conftest.$ac_objext
38580if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38581 (eval $ac_compile) 2>conftest.er1
a848cd7e 38582 ac_status=$?
ac1cb8d3
VS
38583 grep -v '^ *+' conftest.er1 >conftest.err
38584 rm -f conftest.er1
38585 cat conftest.err >&5
a848cd7e
SC
38586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38587 (exit $ac_status); } &&
3ea50042 38588 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38590 (eval $ac_try) 2>&5
38591 ac_status=$?
38592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38593 (exit $ac_status); }; } &&
38594 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38596 (eval $ac_try) 2>&5
38597 ac_status=$?
38598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38599 (exit $ac_status); }; }; then
38600 echo "$as_me:$LINENO: result: yes" >&5
38601echo "${ECHO_T}yes" >&6
38602 cat >>confdefs.h <<\_ACEOF
38603#define HAVE_KNOWN_CDROM_INTERFACE 1
38604_ACEOF
38605
38606else
38607 echo "$as_me: failed program was:" >&5
38608sed 's/^/| /' conftest.$ac_ext >&5
38609
38610echo "$as_me:$LINENO: result: no" >&5
38611echo "${ECHO_T}no" >&6
38612fi
ac1cb8d3 38613rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38614
38615
38616cat >confcache <<\_ACEOF
38617# This file is a shell script that caches the results of configure
38618# tests run on this system so they can be shared between configure
38619# scripts and configure runs, see configure's option --config-cache.
38620# It is not useful on other systems. If it contains results you don't
38621# want to keep, you may remove or edit it.
38622#
38623# config.status only pays attention to the cache file if you give it
38624# the --recheck option to rerun configure.
38625#
38626# `ac_cv_env_foo' variables (set or unset) will be overridden when
38627# loading this file, other *unset* `ac_cv_foo' will be assigned the
38628# following values.
38629
38630_ACEOF
38631
38632# The following way of writing the cache mishandles newlines in values,
38633# but we know of no workaround that is simple, portable, and efficient.
38634# So, don't put newlines in cache variables' values.
38635# Ultrix sh set writes to stderr and can't be redirected directly,
38636# and sets the high bit in the cache file unless we assign to the vars.
38637{
38638 (set) 2>&1 |
38639 case `(ac_space=' '; set | grep ac_space) 2>&1` in
38640 *ac_space=\ *)
38641 # `set' does not quote correctly, so add quotes (double-quote
38642 # substitution turns \\\\ into \\, and sed turns \\ into \).
38643 sed -n \
ac1cb8d3
VS
38644 "s/'/'\\\\''/g;
38645 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
38646 ;;
38647 *)
38648 # `set' quotes correctly as required by POSIX, so do not add quotes.
38649 sed -n \
ac1cb8d3 38650 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
38651 ;;
38652 esac;
38653} |
38654 sed '
38655 t clear
38656 : clear
38657 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
38658 t end
38659 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
38660 : end' >>confcache
38661if diff $cache_file confcache >/dev/null 2>&1; then :; else
38662 if test -w $cache_file; then
38663 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
38664 cat confcache >$cache_file
38665 else
38666 echo "not updating unwritable cache $cache_file"
38667 fi
38668fi
38669rm -f confcache
38670
38671
a848cd7e
SC
38672if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
38673
38674
38675 THREADS_LINK=
e56f4f9e 38676 THREADS_CXXFLAGS=
a848cd7e
SC
38677
38678 if test "$wxUSE_THREADS" = "yes" ; then
38679 if test "$USE_BEOS" = 1; then
38680 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
38681echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
38682 wxUSE_THREADS="no"
38683 fi
38684 fi
38685
38686 if test "$wxUSE_THREADS" = "yes" ; then
38687
38688
38689 THREAD_OPTS="-pthread"
38690 case "${host}" in
38691 *-*-solaris2* | *-*-sunos4* )
38692 if test "x$GCC" = "xyes"; then
38693 THREAD_OPTS="-pthreads $THREAD_OPTS"
38694 else
38695 THREAD_OPTS="-mt $THREAD_OPTS"
38696 fi
38697 ;;
38698 *-*-freebsd*)
38699 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
38700 ;;
38701 *-*-darwin* | *-*-cygwin* )
38702 THREAD_OPTS=""
38703 ;;
38704 *-*-aix*)
38705 THREAD_OPTS="pthreads"
38706 ;;
38707 *-hp-hpux* )
00421666
MW
38708 if test "x$GCC" = "xyes"; then
38709 $CXX -dumpspecs | grep 'pthread:' >/dev/null ||
38710 THREAD_OPTS=""
38711 else
0093c2fc 38712 THREAD_OPTS="-mt"
a848cd7e
SC
38713 fi
38714 ;;
38715
38716 *-*-irix* )
38717 if test "x$GCC" = "xyes"; then
38718 THREAD_OPTS=""
38719 fi
38720 ;;
38721
38722 *-*-*UnixWare*)
38723 if test "x$GCC" != "xyes"; then
38724 THREAD_OPTS="-Ethread"
38725 fi
38726 ;;
38727 esac
38728
38729 THREAD_OPTS="$THREAD_OPTS pthread none"
38730
38731 THREADS_OK=no
38732 for flag in $THREAD_OPTS; do
38733 case $flag in
38734 none)
38735 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
38736echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
38737 ;;
38738
38739 -*)
38740 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
38741echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
e56f4f9e 38742 THREADS_CXXFLAGS="$flag"
a848cd7e
SC
38743 ;;
38744
38745 *)
38746 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
38747echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
38748 THREADS_LINK="-l$flag"
38749 ;;
38750 esac
38751
38752 save_LIBS="$LIBS"
e56f4f9e 38753 save_CXXFLAGS="$CXXFLAGS"
a848cd7e 38754 LIBS="$THREADS_LINK $LIBS"
e56f4f9e 38755 CXXFLAGS="$THREADS_CXXFLAGS $CXXFLAGS"
a848cd7e
SC
38756
38757 cat >conftest.$ac_ext <<_ACEOF
38758/* confdefs.h. */
38759_ACEOF
38760cat confdefs.h >>conftest.$ac_ext
38761cat >>conftest.$ac_ext <<_ACEOF
38762/* end confdefs.h. */
38763#include <pthread.h>
38764int
38765main ()
38766{
38767pthread_create(0,0,0,0);
38768 ;
38769 return 0;
38770}
38771_ACEOF
38772rm -f conftest.$ac_objext conftest$ac_exeext
38773if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38774 (eval $ac_link) 2>conftest.er1
a848cd7e 38775 ac_status=$?
ac1cb8d3
VS
38776 grep -v '^ *+' conftest.er1 >conftest.err
38777 rm -f conftest.er1
38778 cat conftest.err >&5
a848cd7e
SC
38779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38780 (exit $ac_status); } &&
3ea50042 38781 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38783 (eval $ac_try) 2>&5
38784 ac_status=$?
38785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38786 (exit $ac_status); }; } &&
38787 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38789 (eval $ac_try) 2>&5
38790 ac_status=$?
38791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38792 (exit $ac_status); }; }; then
38793 THREADS_OK=yes
38794else
38795 echo "$as_me: failed program was:" >&5
38796sed 's/^/| /' conftest.$ac_ext >&5
38797
38798fi
ac1cb8d3
VS
38799rm -f conftest.err conftest.$ac_objext \
38800 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38801
38802 LIBS="$save_LIBS"
e56f4f9e 38803 CXXFLAGS="$save_CXXFLAGS"
a848cd7e
SC
38804
38805 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
38806echo "${ECHO_T}$THREADS_OK" >&6
38807 if test "x$THREADS_OK" = "xyes"; then
38808 break;
38809 fi
38810
38811 THREADS_LINK=""
e56f4f9e 38812 THREADS_CXXFLAGS=""
a848cd7e
SC
38813 done
38814
38815 if test "x$THREADS_OK" != "xyes"; then
38816 wxUSE_THREADS=no
38817 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
38818echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
38819 else
e56f4f9e 38820 LDFLAGS="$THREADS_CXXFLAGS $LDFLAGS"
a848cd7e
SC
38821 LIBS="$THREADS_LINK $LIBS"
38822
38823 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
38824echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
38825 flag=no
38826 case "${host}" in
38827 *-aix*)
38828 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
38829 flag="-D_THREAD_SAFE"
38830 ;;
38831 *-freebsd*)
38832 flag="-D_THREAD_SAFE"
38833 ;;
38834 *-hp-hpux* )
38835 flag="-D_REENTRANT"
38836 if test "x$GCC" != "xyes"; then
38837 flag="$flag -D_RWSTD_MULTI_THREAD"
38838 fi
38839 ;;
38840 *solaris* | alpha*-osf*)
38841 flag="-D_REENTRANT"
38842 ;;
38843 esac
38844 echo "$as_me:$LINENO: result: ${flag}" >&5
38845echo "${ECHO_T}${flag}" >&6
38846 if test "x$flag" != xno; then
e56f4f9e 38847 THREADS_CXXFLAGS="$THREADS_CXXFLAGS $flag"
a848cd7e
SC
38848 fi
38849
e56f4f9e 38850 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS $THREADS_CXXFLAGS"
a848cd7e
SC
38851 fi
38852 fi
38853
38854 if test "$wxUSE_THREADS" = "yes" ; then
38855
38856for ac_func in thr_setconcurrency
38857do
38858as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38859echo "$as_me:$LINENO: checking for $ac_func" >&5
38860echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38861if eval "test \"\${$as_ac_var+set}\" = set"; then
38862 echo $ECHO_N "(cached) $ECHO_C" >&6
38863else
38864 cat >conftest.$ac_ext <<_ACEOF
38865/* confdefs.h. */
38866_ACEOF
38867cat confdefs.h >>conftest.$ac_ext
38868cat >>conftest.$ac_ext <<_ACEOF
38869/* end confdefs.h. */
ac1cb8d3
VS
38870/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38871 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38872#define $ac_func innocuous_$ac_func
38873
a848cd7e
SC
38874/* System header to define __stub macros and hopefully few prototypes,
38875 which can conflict with char $ac_func (); below.
38876 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38877 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38878
a848cd7e
SC
38879#ifdef __STDC__
38880# include <limits.h>
38881#else
38882# include <assert.h>
38883#endif
ac1cb8d3
VS
38884
38885#undef $ac_func
38886
a848cd7e
SC
38887/* Override any gcc2 internal prototype to avoid an error. */
38888#ifdef __cplusplus
38889extern "C"
38890{
38891#endif
38892/* We use char because int might match the return type of a gcc2
38893 builtin and then its argument prototype would still apply. */
38894char $ac_func ();
38895/* The GNU C library defines this for functions which it implements
38896 to always fail with ENOSYS. Some functions are actually named
38897 something starting with __ and the normal name is an alias. */
38898#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38899choke me
38900#else
38901char (*f) () = $ac_func;
38902#endif
38903#ifdef __cplusplus
38904}
38905#endif
38906
38907int
38908main ()
38909{
38910return f != $ac_func;
38911 ;
38912 return 0;
38913}
38914_ACEOF
38915rm -f conftest.$ac_objext conftest$ac_exeext
38916if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38917 (eval $ac_link) 2>conftest.er1
a848cd7e 38918 ac_status=$?
ac1cb8d3
VS
38919 grep -v '^ *+' conftest.er1 >conftest.err
38920 rm -f conftest.er1
38921 cat conftest.err >&5
a848cd7e
SC
38922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38923 (exit $ac_status); } &&
3ea50042 38924 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38926 (eval $ac_try) 2>&5
38927 ac_status=$?
38928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38929 (exit $ac_status); }; } &&
38930 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38932 (eval $ac_try) 2>&5
38933 ac_status=$?
38934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38935 (exit $ac_status); }; }; then
38936 eval "$as_ac_var=yes"
38937else
38938 echo "$as_me: failed program was:" >&5
38939sed 's/^/| /' conftest.$ac_ext >&5
38940
38941eval "$as_ac_var=no"
38942fi
ac1cb8d3
VS
38943rm -f conftest.err conftest.$ac_objext \
38944 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38945fi
38946echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38947echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38948if test `eval echo '${'$as_ac_var'}'` = yes; then
38949 cat >>confdefs.h <<_ACEOF
38950#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38951_ACEOF
38952
38953fi
38954done
38955
38956
6ebeb4c7
VZ
38957 echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5
38958echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6
38959if test "${wx_cv_func_pthread_cleanup+set}" = set; then
38960 echo $ECHO_N "(cached) $ECHO_C" >&6
38961else
38962
38963 cat >conftest.$ac_ext <<_ACEOF
38964/* confdefs.h. */
38965_ACEOF
38966cat confdefs.h >>conftest.$ac_ext
38967cat >>conftest.$ac_ext <<_ACEOF
38968/* end confdefs.h. */
38969#include <pthread.h>
38970 void ThreadCleanupFunc(void *p);
38971
38972int
38973main ()
38974{
38975
38976 void *p;
38977 pthread_cleanup_push(ThreadCleanupFunc, p);
38978 pthread_cleanup_pop(0);
38979
38980 ;
38981 return 0;
38982}
38983_ACEOF
38984rm -f conftest.$ac_objext
38985if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38986 (eval $ac_compile) 2>conftest.er1
38987 ac_status=$?
38988 grep -v '^ *+' conftest.er1 >conftest.err
38989 rm -f conftest.er1
38990 cat conftest.err >&5
38991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38992 (exit $ac_status); } &&
3ea50042 38993 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6ebeb4c7
VZ
38994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38995 (eval $ac_try) 2>&5
38996 ac_status=$?
38997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38998 (exit $ac_status); }; } &&
38999 { ac_try='test -s conftest.$ac_objext'
39000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39001 (eval $ac_try) 2>&5
39002 ac_status=$?
39003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39004 (exit $ac_status); }; }; then
39005
39006 wx_cv_func_pthread_cleanup=yes
39007
39008else
39009 echo "$as_me: failed program was:" >&5
39010sed 's/^/| /' conftest.$ac_ext >&5
39011
39012
39013 wx_cv_func_pthread_cleanup=no
39014
39015
39016fi
39017rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39018
39019fi
39020echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup" >&5
39021echo "${ECHO_T}$wx_cv_func_pthread_cleanup" >&6
39022 if test "x$wx_cv_func_pthread_cleanup" = "xyes"; then
39023 cat >>confdefs.h <<\_ACEOF
39024#define wxHAVE_PTHREAD_CLEANUP 1
39025_ACEOF
39026
39027 fi
39028
a848cd7e
SC
39029
39030for ac_header in sched.h
39031do
39032as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
39033if eval "test \"\${$as_ac_Header+set}\" = set"; then
39034 echo "$as_me:$LINENO: checking for $ac_header" >&5
39035echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39036if eval "test \"\${$as_ac_Header+set}\" = set"; then
39037 echo $ECHO_N "(cached) $ECHO_C" >&6
39038fi
39039echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39040echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39041else
39042 # Is the header compilable?
39043echo "$as_me:$LINENO: checking $ac_header usability" >&5
39044echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
39045cat >conftest.$ac_ext <<_ACEOF
39046/* confdefs.h. */
39047_ACEOF
39048cat confdefs.h >>conftest.$ac_ext
39049cat >>conftest.$ac_ext <<_ACEOF
39050/* end confdefs.h. */
39051$ac_includes_default
39052#include <$ac_header>
39053_ACEOF
39054rm -f conftest.$ac_objext
39055if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39056 (eval $ac_compile) 2>conftest.er1
a848cd7e 39057 ac_status=$?
ac1cb8d3
VS
39058 grep -v '^ *+' conftest.er1 >conftest.err
39059 rm -f conftest.er1
39060 cat conftest.err >&5
a848cd7e
SC
39061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39062 (exit $ac_status); } &&
3ea50042 39063 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39065 (eval $ac_try) 2>&5
39066 ac_status=$?
39067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39068 (exit $ac_status); }; } &&
39069 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39071 (eval $ac_try) 2>&5
39072 ac_status=$?
39073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39074 (exit $ac_status); }; }; then
39075 ac_header_compiler=yes
39076else
39077 echo "$as_me: failed program was:" >&5
39078sed 's/^/| /' conftest.$ac_ext >&5
39079
39080ac_header_compiler=no
39081fi
ac1cb8d3 39082rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39083echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39084echo "${ECHO_T}$ac_header_compiler" >&6
39085
39086# Is the header present?
39087echo "$as_me:$LINENO: checking $ac_header presence" >&5
39088echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
39089cat >conftest.$ac_ext <<_ACEOF
39090/* confdefs.h. */
39091_ACEOF
39092cat confdefs.h >>conftest.$ac_ext
39093cat >>conftest.$ac_ext <<_ACEOF
39094/* end confdefs.h. */
39095#include <$ac_header>
39096_ACEOF
39097if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
39098 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
39099 ac_status=$?
39100 grep -v '^ *+' conftest.er1 >conftest.err
39101 rm -f conftest.er1
39102 cat conftest.err >&5
39103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39104 (exit $ac_status); } >/dev/null; then
39105 if test -s conftest.err; then
5d7b7554
VZ
39106 ac_cpp_err=$ac_cxx_preproc_warn_flag
39107 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
39108 else
39109 ac_cpp_err=
39110 fi
39111else
39112 ac_cpp_err=yes
39113fi
39114if test -z "$ac_cpp_err"; then
39115 ac_header_preproc=yes
39116else
39117 echo "$as_me: failed program was:" >&5
39118sed 's/^/| /' conftest.$ac_ext >&5
39119
39120 ac_header_preproc=no
39121fi
39122rm -f conftest.err conftest.$ac_ext
39123echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39124echo "${ECHO_T}$ac_header_preproc" >&6
39125
39126# So? What about this header?
5d7b7554 39127case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 39128 yes:no: )
a848cd7e
SC
39129 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
39130echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
39131 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
39132echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
39133 ac_header_preproc=yes
a848cd7e 39134 ;;
ac1cb8d3 39135 no:yes:* )
a848cd7e
SC
39136 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
39137echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
39138 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
39139echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
39140 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
39141echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
39142 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
39143echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
39144 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
39145echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
39146 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
39147echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
39148 (
39149 cat <<\_ASBOX
ac1cb8d3
VS
39150## ----------------------------------------- ##
39151## Report this to wx-dev@lists.wxwidgets.org ##
39152## ----------------------------------------- ##
a848cd7e
SC
39153_ASBOX
39154 ) |
39155 sed "s/^/$as_me: WARNING: /" >&2
39156 ;;
39157esac
39158echo "$as_me:$LINENO: checking for $ac_header" >&5
39159echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39160if eval "test \"\${$as_ac_Header+set}\" = set"; then
39161 echo $ECHO_N "(cached) $ECHO_C" >&6
39162else
ac1cb8d3 39163 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
39164fi
39165echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39166echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39167
39168fi
39169if test `eval echo '${'$as_ac_Header'}'` = yes; then
39170 cat >>confdefs.h <<_ACEOF
39171#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
39172_ACEOF
39173
39174fi
39175
39176done
39177
39178 if test "$ac_cv_header_sched_h" = "yes"; then
39179 echo "$as_me:$LINENO: checking for sched_yield" >&5
39180echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
39181if test "${ac_cv_func_sched_yield+set}" = set; then
39182 echo $ECHO_N "(cached) $ECHO_C" >&6
39183else
39184 cat >conftest.$ac_ext <<_ACEOF
39185/* confdefs.h. */
39186_ACEOF
39187cat confdefs.h >>conftest.$ac_ext
39188cat >>conftest.$ac_ext <<_ACEOF
39189/* end confdefs.h. */
ac1cb8d3
VS
39190/* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
39191 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39192#define sched_yield innocuous_sched_yield
39193
a848cd7e
SC
39194/* System header to define __stub macros and hopefully few prototypes,
39195 which can conflict with char sched_yield (); below.
39196 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39197 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 39198
a848cd7e
SC
39199#ifdef __STDC__
39200# include <limits.h>
39201#else
39202# include <assert.h>
39203#endif
ac1cb8d3
VS
39204
39205#undef sched_yield
39206
a848cd7e
SC
39207/* Override any gcc2 internal prototype to avoid an error. */
39208#ifdef __cplusplus
39209extern "C"
39210{
39211#endif
39212/* We use char because int might match the return type of a gcc2
39213 builtin and then its argument prototype would still apply. */
39214char sched_yield ();
39215/* The GNU C library defines this for functions which it implements
39216 to always fail with ENOSYS. Some functions are actually named
39217 something starting with __ and the normal name is an alias. */
39218#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
39219choke me
39220#else
39221char (*f) () = sched_yield;
39222#endif
39223#ifdef __cplusplus
39224}
39225#endif
39226
39227int
39228main ()
39229{
39230return f != sched_yield;
39231 ;
39232 return 0;
39233}
39234_ACEOF
39235rm -f conftest.$ac_objext conftest$ac_exeext
39236if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39237 (eval $ac_link) 2>conftest.er1
a848cd7e 39238 ac_status=$?
ac1cb8d3
VS
39239 grep -v '^ *+' conftest.er1 >conftest.err
39240 rm -f conftest.er1
39241 cat conftest.err >&5
a848cd7e
SC
39242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39243 (exit $ac_status); } &&
3ea50042 39244 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39246 (eval $ac_try) 2>&5
39247 ac_status=$?
39248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39249 (exit $ac_status); }; } &&
39250 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39252 (eval $ac_try) 2>&5
39253 ac_status=$?
39254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39255 (exit $ac_status); }; }; then
39256 ac_cv_func_sched_yield=yes
39257else
39258 echo "$as_me: failed program was:" >&5
39259sed 's/^/| /' conftest.$ac_ext >&5
39260
39261ac_cv_func_sched_yield=no
39262fi
ac1cb8d3
VS
39263rm -f conftest.err conftest.$ac_objext \
39264 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39265fi
39266echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
39267echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
39268if test $ac_cv_func_sched_yield = yes; then
39269 cat >>confdefs.h <<\_ACEOF
39270#define HAVE_SCHED_YIELD 1
39271_ACEOF
39272
39273else
39274
39275 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
39276echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
39277if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
39278 echo $ECHO_N "(cached) $ECHO_C" >&6
39279else
39280 ac_check_lib_save_LIBS=$LIBS
39281LIBS="-lposix4 $LIBS"
39282cat >conftest.$ac_ext <<_ACEOF
39283/* confdefs.h. */
39284_ACEOF
39285cat confdefs.h >>conftest.$ac_ext
39286cat >>conftest.$ac_ext <<_ACEOF
39287/* end confdefs.h. */
39288
39289/* Override any gcc2 internal prototype to avoid an error. */
39290#ifdef __cplusplus
39291extern "C"
39292#endif
39293/* We use char because int might match the return type of a gcc2
39294 builtin and then its argument prototype would still apply. */
39295char sched_yield ();
39296int
39297main ()
39298{
39299sched_yield ();
39300 ;
39301 return 0;
39302}
39303_ACEOF
39304rm -f conftest.$ac_objext conftest$ac_exeext
39305if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39306 (eval $ac_link) 2>conftest.er1
a848cd7e 39307 ac_status=$?
ac1cb8d3
VS
39308 grep -v '^ *+' conftest.er1 >conftest.err
39309 rm -f conftest.er1
39310 cat conftest.err >&5
a848cd7e
SC
39311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39312 (exit $ac_status); } &&
3ea50042 39313 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39315 (eval $ac_try) 2>&5
39316 ac_status=$?
39317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39318 (exit $ac_status); }; } &&
39319 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39321 (eval $ac_try) 2>&5
39322 ac_status=$?
39323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39324 (exit $ac_status); }; }; then
39325 ac_cv_lib_posix4_sched_yield=yes
39326else
39327 echo "$as_me: failed program was:" >&5
39328sed 's/^/| /' conftest.$ac_ext >&5
39329
39330ac_cv_lib_posix4_sched_yield=no
39331fi
ac1cb8d3
VS
39332rm -f conftest.err conftest.$ac_objext \
39333 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39334LIBS=$ac_check_lib_save_LIBS
39335fi
39336echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
39337echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
39338if test $ac_cv_lib_posix4_sched_yield = yes; then
39339 cat >>confdefs.h <<\_ACEOF
39340#define HAVE_SCHED_YIELD 1
39341_ACEOF
39342 POSIX4_LINK=" -lposix4"
39343else
39344 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
39345echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
39346
39347fi
39348
39349
39350
39351fi
39352
39353 fi
39354
39355 HAVE_PRIOR_FUNCS=0
39356 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
39357echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
39358if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
39359 echo $ECHO_N "(cached) $ECHO_C" >&6
39360else
39361 cat >conftest.$ac_ext <<_ACEOF
39362/* confdefs.h. */
39363_ACEOF
39364cat confdefs.h >>conftest.$ac_ext
39365cat >>conftest.$ac_ext <<_ACEOF
39366/* end confdefs.h. */
ac1cb8d3
VS
39367/* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
39368 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39369#define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
39370
a848cd7e
SC
39371/* System header to define __stub macros and hopefully few prototypes,
39372 which can conflict with char pthread_attr_getschedpolicy (); below.
39373 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39374 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 39375
a848cd7e
SC
39376#ifdef __STDC__
39377# include <limits.h>
39378#else
39379# include <assert.h>
39380#endif
ac1cb8d3
VS
39381
39382#undef pthread_attr_getschedpolicy
39383
a848cd7e
SC
39384/* Override any gcc2 internal prototype to avoid an error. */
39385#ifdef __cplusplus
39386extern "C"
39387{
39388#endif
39389/* We use char because int might match the return type of a gcc2
39390 builtin and then its argument prototype would still apply. */
39391char pthread_attr_getschedpolicy ();
39392/* The GNU C library defines this for functions which it implements
39393 to always fail with ENOSYS. Some functions are actually named
39394 something starting with __ and the normal name is an alias. */
39395#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
39396choke me
39397#else
39398char (*f) () = pthread_attr_getschedpolicy;
39399#endif
39400#ifdef __cplusplus
39401}
39402#endif
39403
39404int
39405main ()
39406{
39407return f != pthread_attr_getschedpolicy;
39408 ;
39409 return 0;
39410}
39411_ACEOF
39412rm -f conftest.$ac_objext conftest$ac_exeext
39413if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39414 (eval $ac_link) 2>conftest.er1
a848cd7e 39415 ac_status=$?
ac1cb8d3
VS
39416 grep -v '^ *+' conftest.er1 >conftest.err
39417 rm -f conftest.er1
39418 cat conftest.err >&5
a848cd7e
SC
39419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39420 (exit $ac_status); } &&
3ea50042 39421 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39423 (eval $ac_try) 2>&5
39424 ac_status=$?
39425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39426 (exit $ac_status); }; } &&
39427 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39429 (eval $ac_try) 2>&5
39430 ac_status=$?
39431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39432 (exit $ac_status); }; }; then
39433 ac_cv_func_pthread_attr_getschedpolicy=yes
39434else
39435 echo "$as_me: failed program was:" >&5
39436sed 's/^/| /' conftest.$ac_ext >&5
39437
39438ac_cv_func_pthread_attr_getschedpolicy=no
39439fi
ac1cb8d3
VS
39440rm -f conftest.err conftest.$ac_objext \
39441 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39442fi
39443echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
39444echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
39445if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
39446 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
39447echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
39448if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
39449 echo $ECHO_N "(cached) $ECHO_C" >&6
39450else
39451 cat >conftest.$ac_ext <<_ACEOF
39452/* confdefs.h. */
39453_ACEOF
39454cat confdefs.h >>conftest.$ac_ext
39455cat >>conftest.$ac_ext <<_ACEOF
39456/* end confdefs.h. */
ac1cb8d3
VS
39457/* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
39458 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39459#define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
39460
a848cd7e
SC
39461/* System header to define __stub macros and hopefully few prototypes,
39462 which can conflict with char pthread_attr_setschedparam (); below.
39463 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39464 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 39465
a848cd7e
SC
39466#ifdef __STDC__
39467# include <limits.h>
39468#else
39469# include <assert.h>
39470#endif
ac1cb8d3
VS
39471
39472#undef pthread_attr_setschedparam
39473
a848cd7e
SC
39474/* Override any gcc2 internal prototype to avoid an error. */
39475#ifdef __cplusplus
39476extern "C"
39477{
39478#endif
39479/* We use char because int might match the return type of a gcc2
39480 builtin and then its argument prototype would still apply. */
39481char pthread_attr_setschedparam ();
39482/* The GNU C library defines this for functions which it implements
39483 to always fail with ENOSYS. Some functions are actually named
39484 something starting with __ and the normal name is an alias. */
39485#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
39486choke me
39487#else
39488char (*f) () = pthread_attr_setschedparam;
39489#endif
39490#ifdef __cplusplus
39491}
39492#endif
39493
39494int
39495main ()
39496{
39497return f != pthread_attr_setschedparam;
39498 ;
39499 return 0;
39500}
39501_ACEOF
39502rm -f conftest.$ac_objext conftest$ac_exeext
39503if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39504 (eval $ac_link) 2>conftest.er1
a848cd7e 39505 ac_status=$?
ac1cb8d3
VS
39506 grep -v '^ *+' conftest.er1 >conftest.err
39507 rm -f conftest.er1
39508 cat conftest.err >&5
a848cd7e
SC
39509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39510 (exit $ac_status); } &&
3ea50042 39511 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39513 (eval $ac_try) 2>&5
39514 ac_status=$?
39515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39516 (exit $ac_status); }; } &&
39517 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39519 (eval $ac_try) 2>&5
39520 ac_status=$?
39521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39522 (exit $ac_status); }; }; then
39523 ac_cv_func_pthread_attr_setschedparam=yes
39524else
39525 echo "$as_me: failed program was:" >&5
39526sed 's/^/| /' conftest.$ac_ext >&5
39527
39528ac_cv_func_pthread_attr_setschedparam=no
39529fi
ac1cb8d3
VS
39530rm -f conftest.err conftest.$ac_objext \
39531 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39532fi
39533echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
39534echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
39535if test $ac_cv_func_pthread_attr_setschedparam = yes; then
39536 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
39537echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
39538if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
39539 echo $ECHO_N "(cached) $ECHO_C" >&6
39540else
39541 cat >conftest.$ac_ext <<_ACEOF
39542/* confdefs.h. */
39543_ACEOF
39544cat confdefs.h >>conftest.$ac_ext
39545cat >>conftest.$ac_ext <<_ACEOF
39546/* end confdefs.h. */
ac1cb8d3
VS
39547/* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
39548 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39549#define sched_get_priority_max innocuous_sched_get_priority_max
39550
a848cd7e
SC
39551/* System header to define __stub macros and hopefully few prototypes,
39552 which can conflict with char sched_get_priority_max (); below.
39553 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39554 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 39555
a848cd7e
SC
39556#ifdef __STDC__
39557# include <limits.h>
39558#else
39559# include <assert.h>
39560#endif
ac1cb8d3
VS
39561
39562#undef sched_get_priority_max
39563
a848cd7e
SC
39564/* Override any gcc2 internal prototype to avoid an error. */
39565#ifdef __cplusplus
39566extern "C"
39567{
39568#endif
39569/* We use char because int might match the return type of a gcc2
39570 builtin and then its argument prototype would still apply. */
39571char sched_get_priority_max ();
39572/* The GNU C library defines this for functions which it implements
39573 to always fail with ENOSYS. Some functions are actually named
39574 something starting with __ and the normal name is an alias. */
39575#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
39576choke me
39577#else
39578char (*f) () = sched_get_priority_max;
39579#endif
39580#ifdef __cplusplus
39581}
39582#endif
39583
39584int
39585main ()
39586{
39587return f != sched_get_priority_max;
39588 ;
39589 return 0;
39590}
39591_ACEOF
39592rm -f conftest.$ac_objext conftest$ac_exeext
39593if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39594 (eval $ac_link) 2>conftest.er1
a848cd7e 39595 ac_status=$?
ac1cb8d3
VS
39596 grep -v '^ *+' conftest.er1 >conftest.err
39597 rm -f conftest.er1
39598 cat conftest.err >&5
a848cd7e
SC
39599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39600 (exit $ac_status); } &&
3ea50042 39601 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39603 (eval $ac_try) 2>&5
39604 ac_status=$?
39605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39606 (exit $ac_status); }; } &&
39607 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39609 (eval $ac_try) 2>&5
39610 ac_status=$?
39611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39612 (exit $ac_status); }; }; then
39613 ac_cv_func_sched_get_priority_max=yes
39614else
39615 echo "$as_me: failed program was:" >&5
39616sed 's/^/| /' conftest.$ac_ext >&5
39617
39618ac_cv_func_sched_get_priority_max=no
39619fi
ac1cb8d3
VS
39620rm -f conftest.err conftest.$ac_objext \
39621 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39622fi
39623echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
39624echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
39625if test $ac_cv_func_sched_get_priority_max = yes; then
39626 HAVE_PRIOR_FUNCS=1
39627else
39628 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
39629echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
39630if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
39631 echo $ECHO_N "(cached) $ECHO_C" >&6
39632else
39633 ac_check_lib_save_LIBS=$LIBS
39634LIBS="-lposix4 $LIBS"
39635cat >conftest.$ac_ext <<_ACEOF
39636/* confdefs.h. */
39637_ACEOF
39638cat confdefs.h >>conftest.$ac_ext
39639cat >>conftest.$ac_ext <<_ACEOF
39640/* end confdefs.h. */
39641
39642/* Override any gcc2 internal prototype to avoid an error. */
39643#ifdef __cplusplus
39644extern "C"
39645#endif
39646/* We use char because int might match the return type of a gcc2
39647 builtin and then its argument prototype would still apply. */
39648char sched_get_priority_max ();
39649int
39650main ()
39651{
39652sched_get_priority_max ();
39653 ;
39654 return 0;
39655}
39656_ACEOF
39657rm -f conftest.$ac_objext conftest$ac_exeext
39658if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39659 (eval $ac_link) 2>conftest.er1
a848cd7e 39660 ac_status=$?
ac1cb8d3
VS
39661 grep -v '^ *+' conftest.er1 >conftest.err
39662 rm -f conftest.er1
39663 cat conftest.err >&5
a848cd7e
SC
39664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39665 (exit $ac_status); } &&
3ea50042 39666 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39668 (eval $ac_try) 2>&5
39669 ac_status=$?
39670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39671 (exit $ac_status); }; } &&
39672 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39674 (eval $ac_try) 2>&5
39675 ac_status=$?
39676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39677 (exit $ac_status); }; }; then
39678 ac_cv_lib_posix4_sched_get_priority_max=yes
39679else
39680 echo "$as_me: failed program was:" >&5
39681sed 's/^/| /' conftest.$ac_ext >&5
39682
39683ac_cv_lib_posix4_sched_get_priority_max=no
39684fi
ac1cb8d3
VS
39685rm -f conftest.err conftest.$ac_objext \
39686 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39687LIBS=$ac_check_lib_save_LIBS
39688fi
39689echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
39690echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
39691if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
39692
39693 HAVE_PRIOR_FUNCS=1
39694 POSIX4_LINK=" -lposix4"
39695
39696fi
39697
39698
39699fi
39700
39701
39702fi
39703
39704
39705fi
39706
39707
39708 if test "$HAVE_PRIOR_FUNCS" = 1; then
39709 cat >>confdefs.h <<\_ACEOF
39710#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
39711_ACEOF
39712
39713 else
39714 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
39715echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
39716 fi
39717
39718 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
39719echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
39720if test "${ac_cv_func_pthread_cancel+set}" = set; then
39721 echo $ECHO_N "(cached) $ECHO_C" >&6
39722else
39723 cat >conftest.$ac_ext <<_ACEOF
39724/* confdefs.h. */
39725_ACEOF
39726cat confdefs.h >>conftest.$ac_ext
39727cat >>conftest.$ac_ext <<_ACEOF
39728/* end confdefs.h. */
ac1cb8d3
VS
39729/* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
39730 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39731#define pthread_cancel innocuous_pthread_cancel
39732
a848cd7e
SC
39733/* System header to define __stub macros and hopefully few prototypes,
39734 which can conflict with char pthread_cancel (); below.
39735 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39736 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 39737
a848cd7e
SC
39738#ifdef __STDC__
39739# include <limits.h>
39740#else
39741# include <assert.h>
39742#endif
ac1cb8d3
VS
39743
39744#undef pthread_cancel
39745
a848cd7e
SC
39746/* Override any gcc2 internal prototype to avoid an error. */
39747#ifdef __cplusplus
39748extern "C"
39749{
39750#endif
39751/* We use char because int might match the return type of a gcc2
39752 builtin and then its argument prototype would still apply. */
39753char pthread_cancel ();
39754/* The GNU C library defines this for functions which it implements
39755 to always fail with ENOSYS. Some functions are actually named
39756 something starting with __ and the normal name is an alias. */
39757#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
39758choke me
39759#else
39760char (*f) () = pthread_cancel;
39761#endif
39762#ifdef __cplusplus
39763}
39764#endif
39765
39766int
39767main ()
39768{
39769return f != pthread_cancel;
39770 ;
39771 return 0;
39772}
39773_ACEOF
39774rm -f conftest.$ac_objext conftest$ac_exeext
39775if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39776 (eval $ac_link) 2>conftest.er1
a848cd7e 39777 ac_status=$?
ac1cb8d3
VS
39778 grep -v '^ *+' conftest.er1 >conftest.err
39779 rm -f conftest.er1
39780 cat conftest.err >&5
a848cd7e
SC
39781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39782 (exit $ac_status); } &&
3ea50042 39783 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39785 (eval $ac_try) 2>&5
39786 ac_status=$?
39787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39788 (exit $ac_status); }; } &&
39789 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39791 (eval $ac_try) 2>&5
39792 ac_status=$?
39793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39794 (exit $ac_status); }; }; then
39795 ac_cv_func_pthread_cancel=yes
39796else
39797 echo "$as_me: failed program was:" >&5
39798sed 's/^/| /' conftest.$ac_ext >&5
39799
39800ac_cv_func_pthread_cancel=no
39801fi
ac1cb8d3
VS
39802rm -f conftest.err conftest.$ac_objext \
39803 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39804fi
39805echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
39806echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
39807if test $ac_cv_func_pthread_cancel = yes; then
39808 cat >>confdefs.h <<\_ACEOF
39809#define HAVE_PTHREAD_CANCEL 1
39810_ACEOF
39811
39812else
39813 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
39814echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
39815fi
39816
39817
abc736fd
MW
39818 echo "$as_me:$LINENO: checking for pthread_attr_setstacksize" >&5
39819echo $ECHO_N "checking for pthread_attr_setstacksize... $ECHO_C" >&6
39820if test "${ac_cv_func_pthread_attr_setstacksize+set}" = set; then
39821 echo $ECHO_N "(cached) $ECHO_C" >&6
39822else
39823 cat >conftest.$ac_ext <<_ACEOF
39824/* confdefs.h. */
39825_ACEOF
39826cat confdefs.h >>conftest.$ac_ext
39827cat >>conftest.$ac_ext <<_ACEOF
39828/* end confdefs.h. */
39829/* Define pthread_attr_setstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_setstacksize.
39830 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39831#define pthread_attr_setstacksize innocuous_pthread_attr_setstacksize
39832
39833/* System header to define __stub macros and hopefully few prototypes,
39834 which can conflict with char pthread_attr_setstacksize (); below.
39835 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39836 <limits.h> exists even on freestanding compilers. */
39837
39838#ifdef __STDC__
39839# include <limits.h>
39840#else
39841# include <assert.h>
39842#endif
39843
39844#undef pthread_attr_setstacksize
39845
39846/* Override any gcc2 internal prototype to avoid an error. */
39847#ifdef __cplusplus
39848extern "C"
39849{
39850#endif
39851/* We use char because int might match the return type of a gcc2
39852 builtin and then its argument prototype would still apply. */
39853char pthread_attr_setstacksize ();
39854/* The GNU C library defines this for functions which it implements
39855 to always fail with ENOSYS. Some functions are actually named
39856 something starting with __ and the normal name is an alias. */
39857#if defined (__stub_pthread_attr_setstacksize) || defined (__stub___pthread_attr_setstacksize)
39858choke me
39859#else
39860char (*f) () = pthread_attr_setstacksize;
39861#endif
39862#ifdef __cplusplus
39863}
39864#endif
39865
39866int
39867main ()
39868{
39869return f != pthread_attr_setstacksize;
39870 ;
39871 return 0;
39872}
39873_ACEOF
39874rm -f conftest.$ac_objext conftest$ac_exeext
39875if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39876 (eval $ac_link) 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); } &&
3ea50042 39883 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
abc736fd
MW
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_exeext'
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 ac_cv_func_pthread_attr_setstacksize=yes
39896else
39897 echo "$as_me: failed program was:" >&5
39898sed 's/^/| /' conftest.$ac_ext >&5
39899
39900ac_cv_func_pthread_attr_setstacksize=no
39901fi
39902rm -f conftest.err conftest.$ac_objext \
39903 conftest$ac_exeext conftest.$ac_ext
39904fi
39905echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setstacksize" >&5
39906echo "${ECHO_T}$ac_cv_func_pthread_attr_setstacksize" >&6
39907if test $ac_cv_func_pthread_attr_setstacksize = yes; then
39908 cat >>confdefs.h <<\_ACEOF
39909#define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1
39910_ACEOF
39911
39912fi
39913
a848cd7e
SC
39914
39915
39916 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
39917echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
39918if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
39919 echo $ECHO_N "(cached) $ECHO_C" >&6
39920else
39921
39922 cat >conftest.$ac_ext <<_ACEOF
39923/* confdefs.h. */
39924_ACEOF
39925cat confdefs.h >>conftest.$ac_ext
39926cat >>conftest.$ac_ext <<_ACEOF
39927/* end confdefs.h. */
39928#include <pthread.h>
39929int
39930main ()
39931{
39932
39933 pthread_mutexattr_t attr;
39934 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
39935
39936 ;
39937 return 0;
39938}
39939_ACEOF
39940rm -f conftest.$ac_objext
39941if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39942 (eval $ac_compile) 2>conftest.er1
a848cd7e 39943 ac_status=$?
ac1cb8d3
VS
39944 grep -v '^ *+' conftest.er1 >conftest.err
39945 rm -f conftest.er1
39946 cat conftest.err >&5
a848cd7e
SC
39947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39948 (exit $ac_status); } &&
3ea50042 39949 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39951 (eval $ac_try) 2>&5
39952 ac_status=$?
39953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39954 (exit $ac_status); }; } &&
39955 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39957 (eval $ac_try) 2>&5
39958 ac_status=$?
39959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39960 (exit $ac_status); }; }; then
123dca7d 39961 wx_cv_type_pthread_mutexattr_t=yes
a848cd7e
SC
39962else
39963 echo "$as_me: failed program was:" >&5
39964sed 's/^/| /' conftest.$ac_ext >&5
39965
123dca7d 39966wx_cv_type_pthread_mutexattr_t=no
a848cd7e
SC
39967
39968fi
ac1cb8d3 39969rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39970
39971fi
39972echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
39973echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
39974
39975 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
39976 cat >>confdefs.h <<\_ACEOF
39977#define HAVE_PTHREAD_MUTEXATTR_T 1
39978_ACEOF
39979
123dca7d
VZ
39980
39981 echo "$as_me:$LINENO: checking for pthread_mutexattr_settype declaration" >&5
39982echo $ECHO_N "checking for pthread_mutexattr_settype declaration... $ECHO_C" >&6
39983if test "${wx_cv_func_pthread_mutexattr_settype_decl+set}" = set; then
39984 echo $ECHO_N "(cached) $ECHO_C" >&6
39985else
39986
39987 cat >conftest.$ac_ext <<_ACEOF
39988/* confdefs.h. */
39989_ACEOF
39990cat confdefs.h >>conftest.$ac_ext
39991cat >>conftest.$ac_ext <<_ACEOF
39992/* end confdefs.h. */
39993#include <pthread.h>
39994int
39995main ()
39996{
39997
39998 pthread_mutexattr_t attr;
39999 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
40000
40001 ;
40002 return 0;
40003}
40004_ACEOF
40005rm -f conftest.$ac_objext
40006if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40007 (eval $ac_compile) 2>conftest.er1
40008 ac_status=$?
40009 grep -v '^ *+' conftest.er1 >conftest.err
40010 rm -f conftest.er1
40011 cat conftest.err >&5
40012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40013 (exit $ac_status); } &&
3ea50042 40014 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
123dca7d
VZ
40015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40016 (eval $ac_try) 2>&5
40017 ac_status=$?
40018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40019 (exit $ac_status); }; } &&
40020 { ac_try='test -s conftest.$ac_objext'
40021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40022 (eval $ac_try) 2>&5
40023 ac_status=$?
40024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40025 (exit $ac_status); }; }; then
40026 wx_cv_func_pthread_mutexattr_settype_decl=yes
40027else
40028 echo "$as_me: failed program was:" >&5
40029sed 's/^/| /' conftest.$ac_ext >&5
40030
40031wx_cv_func_pthread_mutexattr_settype_decl=no
40032
40033fi
40034rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40035
40036fi
40037echo "$as_me:$LINENO: result: $wx_cv_func_pthread_mutexattr_settype_decl" >&5
40038echo "${ECHO_T}$wx_cv_func_pthread_mutexattr_settype_decl" >&6
40039 if test "$wx_cv_func_pthread_mutexattr_settype_decl" = "yes"; then
40040 cat >>confdefs.h <<\_ACEOF
40041#define HAVE_PTHREAD_MUTEXATTR_SETTYPE_DECL 1
40042_ACEOF
40043
40044 fi
a848cd7e
SC
40045 else
40046 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
40047echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
40048if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
40049 echo $ECHO_N "(cached) $ECHO_C" >&6
40050else
40051
40052 cat >conftest.$ac_ext <<_ACEOF
40053/* confdefs.h. */
40054_ACEOF
40055cat confdefs.h >>conftest.$ac_ext
40056cat >>conftest.$ac_ext <<_ACEOF
40057/* end confdefs.h. */
40058#include <pthread.h>
40059int
40060main ()
40061{
40062
40063 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
40064
40065 ;
40066 return 0;
40067}
40068_ACEOF
40069rm -f conftest.$ac_objext
40070if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 40071 (eval $ac_compile) 2>conftest.er1
a848cd7e 40072 ac_status=$?
ac1cb8d3
VS
40073 grep -v '^ *+' conftest.er1 >conftest.err
40074 rm -f conftest.er1
40075 cat conftest.err >&5
a848cd7e
SC
40076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40077 (exit $ac_status); } &&
3ea50042 40078 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40080 (eval $ac_try) 2>&5
40081 ac_status=$?
40082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40083 (exit $ac_status); }; } &&
40084 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
40085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40086 (eval $ac_try) 2>&5
40087 ac_status=$?
40088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40089 (exit $ac_status); }; }; then
40090
40091 wx_cv_type_pthread_rec_mutex_init=yes
40092
40093else
40094 echo "$as_me: failed program was:" >&5
40095sed 's/^/| /' conftest.$ac_ext >&5
40096
40097
40098 wx_cv_type_pthread_rec_mutex_init=no
40099
40100
40101fi
ac1cb8d3 40102rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
40103
40104fi
40105echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
40106echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
40107 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
40108 cat >>confdefs.h <<\_ACEOF
40109#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
40110_ACEOF
40111
40112 else
40113 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
40114echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
40115 fi
40116 fi
40117 fi
40118
40119else
40120 if test "$wxUSE_THREADS" = "yes" ; then
40121 case "${host}" in
40122 *-*-mingw32* )
40123 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
40124echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
40125if test "${wx_cv_cflags_mthread+set}" = set; then
40126 echo $ECHO_N "(cached) $ECHO_C" >&6
40127else
40128
e56f4f9e
VZ
40129 CXXFLAGS_OLD="$CXXFLAGS"
40130 CXXFLAGS="-mthreads $CXXFLAGS"
a848cd7e
SC
40131 cat >conftest.$ac_ext <<_ACEOF
40132/* confdefs.h. */
40133_ACEOF
40134cat confdefs.h >>conftest.$ac_ext
40135cat >>conftest.$ac_ext <<_ACEOF
40136/* end confdefs.h. */
40137
40138int
40139main ()
40140{
40141
40142 ;
40143 return 0;
40144}
40145_ACEOF
40146rm -f conftest.$ac_objext
40147if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 40148 (eval $ac_compile) 2>conftest.er1
a848cd7e 40149 ac_status=$?
ac1cb8d3
VS
40150 grep -v '^ *+' conftest.er1 >conftest.err
40151 rm -f conftest.er1
40152 cat conftest.err >&5
a848cd7e
SC
40153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40154 (exit $ac_status); } &&
3ea50042 40155 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40157 (eval $ac_try) 2>&5
40158 ac_status=$?
40159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40160 (exit $ac_status); }; } &&
40161 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
40162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40163 (eval $ac_try) 2>&5
40164 ac_status=$?
40165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40166 (exit $ac_status); }; }; then
40167 wx_cv_cflags_mthread=yes
40168else
40169 echo "$as_me: failed program was:" >&5
40170sed 's/^/| /' conftest.$ac_ext >&5
40171
40172wx_cv_cflags_mthread=no
40173
40174fi
ac1cb8d3 40175rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
40176
40177
40178fi
40179echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
40180echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
40181
40182 if test "$wx_cv_cflags_mthread" = "yes"; then
e56f4f9e 40183 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -mthreads"
a848cd7e
SC
40184 LDFLAGS="$LDFLAGS -mthreads"
40185 else
e56f4f9e 40186 CXXFLAGS="$CXXFLAGS_OLD"
a848cd7e
SC
40187 fi
40188 ;;
40189 *-pc-os2*emx )
5ff751d6
VZ
40190 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -Zmt -D__ST_MT_ERRNO__"
40191 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
a848cd7e
SC
40192 LDFLAGS="$LDFLAGS -Zmt"
40193 ;;
40194 esac
40195 fi
40196fi
40197
004ee6da
RL
40198echo "$as_me:$LINENO: checking for localtime_r" >&5
40199echo $ECHO_N "checking for localtime_r... $ECHO_C" >&6
40200if test "${ac_cv_func_localtime_r+set}" = set; then
a848cd7e
SC
40201 echo $ECHO_N "(cached) $ECHO_C" >&6
40202else
40203 cat >conftest.$ac_ext <<_ACEOF
40204/* confdefs.h. */
40205_ACEOF
40206cat confdefs.h >>conftest.$ac_ext
40207cat >>conftest.$ac_ext <<_ACEOF
40208/* end confdefs.h. */
004ee6da 40209/* Define localtime_r to an innocuous variant, in case <limits.h> declares localtime_r.
ac1cb8d3 40210 For example, HP-UX 11i <limits.h> declares gettimeofday. */
004ee6da 40211#define localtime_r innocuous_localtime_r
ac1cb8d3 40212
a848cd7e 40213/* System header to define __stub macros and hopefully few prototypes,
004ee6da 40214 which can conflict with char localtime_r (); below.
a848cd7e
SC
40215 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40216 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40217
a848cd7e
SC
40218#ifdef __STDC__
40219# include <limits.h>
40220#else
40221# include <assert.h>
40222#endif
ac1cb8d3 40223
004ee6da 40224#undef localtime_r
ac1cb8d3 40225
a848cd7e
SC
40226/* Override any gcc2 internal prototype to avoid an error. */
40227#ifdef __cplusplus
40228extern "C"
40229{
40230#endif
40231/* We use char because int might match the return type of a gcc2
40232 builtin and then its argument prototype would still apply. */
004ee6da 40233char localtime_r ();
a848cd7e
SC
40234/* The GNU C library defines this for functions which it implements
40235 to always fail with ENOSYS. Some functions are actually named
40236 something starting with __ and the normal name is an alias. */
004ee6da 40237#if defined (__stub_localtime_r) || defined (__stub___localtime_r)
a848cd7e
SC
40238choke me
40239#else
004ee6da 40240char (*f) () = localtime_r;
a848cd7e
SC
40241#endif
40242#ifdef __cplusplus
40243}
40244#endif
40245
40246int
40247main ()
40248{
004ee6da
RL
40249return f != localtime_r;
40250 ;
40251 return 0;
40252}
40253_ACEOF
40254rm -f conftest.$ac_objext conftest$ac_exeext
40255if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40256 (eval $ac_link) 2>conftest.er1
40257 ac_status=$?
40258 grep -v '^ *+' conftest.er1 >conftest.err
40259 rm -f conftest.er1
40260 cat conftest.err >&5
40261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40262 (exit $ac_status); } &&
3ea50042 40263 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
40264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40265 (eval $ac_try) 2>&5
40266 ac_status=$?
40267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40268 (exit $ac_status); }; } &&
40269 { ac_try='test -s conftest$ac_exeext'
40270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40271 (eval $ac_try) 2>&5
40272 ac_status=$?
40273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40274 (exit $ac_status); }; }; then
40275 ac_cv_func_localtime_r=yes
40276else
40277 echo "$as_me: failed program was:" >&5
40278sed 's/^/| /' conftest.$ac_ext >&5
40279
40280ac_cv_func_localtime_r=no
40281fi
40282rm -f conftest.err conftest.$ac_objext \
40283 conftest$ac_exeext conftest.$ac_ext
40284fi
40285echo "$as_me:$LINENO: result: $ac_cv_func_localtime_r" >&5
40286echo "${ECHO_T}$ac_cv_func_localtime_r" >&6
40287if test $ac_cv_func_localtime_r = yes; then
40288 cat >>confdefs.h <<\_ACEOF
40289#define HAVE_LOCALTIME_R 1
40290_ACEOF
40291
40292fi
40293
40294echo "$as_me:$LINENO: checking for gmtime_r" >&5
40295echo $ECHO_N "checking for gmtime_r... $ECHO_C" >&6
40296if test "${ac_cv_func_gmtime_r+set}" = set; then
40297 echo $ECHO_N "(cached) $ECHO_C" >&6
40298else
40299 cat >conftest.$ac_ext <<_ACEOF
40300/* confdefs.h. */
40301_ACEOF
40302cat confdefs.h >>conftest.$ac_ext
40303cat >>conftest.$ac_ext <<_ACEOF
40304/* end confdefs.h. */
40305/* Define gmtime_r to an innocuous variant, in case <limits.h> declares gmtime_r.
40306 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40307#define gmtime_r innocuous_gmtime_r
40308
40309/* System header to define __stub macros and hopefully few prototypes,
40310 which can conflict with char gmtime_r (); below.
40311 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40312 <limits.h> exists even on freestanding compilers. */
40313
40314#ifdef __STDC__
40315# include <limits.h>
40316#else
40317# include <assert.h>
40318#endif
40319
40320#undef gmtime_r
40321
40322/* Override any gcc2 internal prototype to avoid an error. */
40323#ifdef __cplusplus
40324extern "C"
40325{
40326#endif
40327/* We use char because int might match the return type of a gcc2
40328 builtin and then its argument prototype would still apply. */
40329char gmtime_r ();
40330/* The GNU C library defines this for functions which it implements
40331 to always fail with ENOSYS. Some functions are actually named
40332 something starting with __ and the normal name is an alias. */
40333#if defined (__stub_gmtime_r) || defined (__stub___gmtime_r)
40334choke me
40335#else
40336char (*f) () = gmtime_r;
40337#endif
40338#ifdef __cplusplus
40339}
40340#endif
40341
40342int
40343main ()
40344{
40345return f != gmtime_r;
40346 ;
40347 return 0;
40348}
40349_ACEOF
40350rm -f conftest.$ac_objext conftest$ac_exeext
40351if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40352 (eval $ac_link) 2>conftest.er1
40353 ac_status=$?
40354 grep -v '^ *+' conftest.er1 >conftest.err
40355 rm -f conftest.er1
40356 cat conftest.err >&5
40357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40358 (exit $ac_status); } &&
3ea50042 40359 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
40360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40361 (eval $ac_try) 2>&5
40362 ac_status=$?
40363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40364 (exit $ac_status); }; } &&
40365 { ac_try='test -s conftest$ac_exeext'
40366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40367 (eval $ac_try) 2>&5
40368 ac_status=$?
40369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40370 (exit $ac_status); }; }; then
40371 ac_cv_func_gmtime_r=yes
40372else
40373 echo "$as_me: failed program was:" >&5
40374sed 's/^/| /' conftest.$ac_ext >&5
40375
40376ac_cv_func_gmtime_r=no
40377fi
40378rm -f conftest.err conftest.$ac_objext \
40379 conftest$ac_exeext conftest.$ac_ext
40380fi
40381echo "$as_me:$LINENO: result: $ac_cv_func_gmtime_r" >&5
40382echo "${ECHO_T}$ac_cv_func_gmtime_r" >&6
40383if test $ac_cv_func_gmtime_r = yes; then
40384 cat >>confdefs.h <<\_ACEOF
40385#define HAVE_GMTIME_R 1
40386_ACEOF
40387
40388fi
40389
40390echo "$as_me:$LINENO: checking for readdir_r" >&5
40391echo $ECHO_N "checking for readdir_r... $ECHO_C" >&6
40392if test "${ac_cv_func_readdir_r+set}" = set; then
40393 echo $ECHO_N "(cached) $ECHO_C" >&6
40394else
40395 cat >conftest.$ac_ext <<_ACEOF
40396/* confdefs.h. */
40397_ACEOF
40398cat confdefs.h >>conftest.$ac_ext
40399cat >>conftest.$ac_ext <<_ACEOF
40400/* end confdefs.h. */
40401/* Define readdir_r to an innocuous variant, in case <limits.h> declares readdir_r.
40402 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40403#define readdir_r innocuous_readdir_r
40404
40405/* System header to define __stub macros and hopefully few prototypes,
40406 which can conflict with char readdir_r (); below.
40407 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40408 <limits.h> exists even on freestanding compilers. */
40409
40410#ifdef __STDC__
40411# include <limits.h>
40412#else
40413# include <assert.h>
40414#endif
40415
40416#undef readdir_r
40417
40418/* Override any gcc2 internal prototype to avoid an error. */
40419#ifdef __cplusplus
40420extern "C"
40421{
40422#endif
40423/* We use char because int might match the return type of a gcc2
40424 builtin and then its argument prototype would still apply. */
40425char readdir_r ();
40426/* The GNU C library defines this for functions which it implements
40427 to always fail with ENOSYS. Some functions are actually named
40428 something starting with __ and the normal name is an alias. */
40429#if defined (__stub_readdir_r) || defined (__stub___readdir_r)
40430choke me
40431#else
40432char (*f) () = readdir_r;
40433#endif
40434#ifdef __cplusplus
40435}
40436#endif
40437
40438int
40439main ()
40440{
40441return f != readdir_r;
40442 ;
40443 return 0;
40444}
40445_ACEOF
40446rm -f conftest.$ac_objext conftest$ac_exeext
40447if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40448 (eval $ac_link) 2>conftest.er1
40449 ac_status=$?
40450 grep -v '^ *+' conftest.er1 >conftest.err
40451 rm -f conftest.er1
40452 cat conftest.err >&5
40453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40454 (exit $ac_status); } &&
3ea50042 40455 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
40456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40457 (eval $ac_try) 2>&5
40458 ac_status=$?
40459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40460 (exit $ac_status); }; } &&
40461 { ac_try='test -s conftest$ac_exeext'
40462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40463 (eval $ac_try) 2>&5
40464 ac_status=$?
40465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40466 (exit $ac_status); }; }; then
40467 ac_cv_func_readdir_r=yes
40468else
40469 echo "$as_me: failed program was:" >&5
40470sed 's/^/| /' conftest.$ac_ext >&5
40471
40472ac_cv_func_readdir_r=no
40473fi
40474rm -f conftest.err conftest.$ac_objext \
40475 conftest$ac_exeext conftest.$ac_ext
40476fi
40477echo "$as_me:$LINENO: result: $ac_cv_func_readdir_r" >&5
40478echo "${ECHO_T}$ac_cv_func_readdir_r" >&6
40479if test $ac_cv_func_readdir_r = yes; then
40480 cat >>confdefs.h <<\_ACEOF
40481#define HAVE_READDIR_R 1
40482_ACEOF
40483
40484fi
40485
004ee6da 40486
004ee6da
RL
40487
40488
40489 ac_ext=c
40490ac_cpp='$CPP $CPPFLAGS'
40491ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40492ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40493ac_compiler_gnu=$ac_cv_c_compiler_gnu
40494
40495 echo "$as_me:$LINENO: checking how many arguments gethostbyname_r() takes" >&5
40496echo $ECHO_N "checking how many arguments gethostbyname_r() takes... $ECHO_C" >&6
40497
40498 if test "${ac_cv_func_which_gethostbyname_r+set}" = set; then
40499 echo $ECHO_N "(cached) $ECHO_C" >&6
40500else
40501
40502
2f6c5bb5 40503################################################################
004ee6da
RL
40504
40505ac_cv_func_which_gethostbyname_r=unknown
40506
40507#
40508# ONE ARGUMENT (sanity check)
40509#
40510
40511# This should fail, as there is no variant of gethostbyname_r() that takes
40512# a single argument. If it actually compiles, then we can assume that
40513# netdb.h is not declaring the function, and the compiler is thereby
40514# assuming an implicit prototype. In which case, we're out of luck.
40515#
40516cat >conftest.$ac_ext <<_ACEOF
40517/* confdefs.h. */
40518_ACEOF
40519cat confdefs.h >>conftest.$ac_ext
40520cat >>conftest.$ac_ext <<_ACEOF
40521/* end confdefs.h. */
40522#include <netdb.h>
40523int
40524main ()
40525{
40526
40527 char *name = "www.gnu.org";
40528 (void)gethostbyname_r(name) /* ; */
40529
40530 ;
40531 return 0;
40532}
40533_ACEOF
40534rm -f conftest.$ac_objext
40535if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40536 (eval $ac_compile) 2>conftest.er1
40537 ac_status=$?
40538 grep -v '^ *+' conftest.er1 >conftest.err
40539 rm -f conftest.er1
40540 cat conftest.err >&5
40541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40542 (exit $ac_status); } &&
3ea50042 40543 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
004ee6da
RL
40544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40545 (eval $ac_try) 2>&5
40546 ac_status=$?
40547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40548 (exit $ac_status); }; } &&
40549 { ac_try='test -s conftest.$ac_objext'
40550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40551 (eval $ac_try) 2>&5
40552 ac_status=$?
40553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40554 (exit $ac_status); }; }; then
40555 ac_cv_func_which_gethostbyname_r=no
40556else
40557 echo "$as_me: failed program was:" >&5
40558sed 's/^/| /' conftest.$ac_ext >&5
40559
40560fi
40561rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40562
40563#
40564# SIX ARGUMENTS
40565# (e.g. Linux)
40566#
40567
40568if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
40569
40570cat >conftest.$ac_ext <<_ACEOF
40571/* confdefs.h. */
40572_ACEOF
40573cat confdefs.h >>conftest.$ac_ext
40574cat >>conftest.$ac_ext <<_ACEOF
40575/* end confdefs.h. */
40576#include <netdb.h>
40577int
40578main ()
40579{
40580
40581 char *name = "www.gnu.org";
40582 struct hostent ret, *retp;
40583 char buf[1024];
40584 int buflen = 1024;
40585 int my_h_errno;
40586 (void)gethostbyname_r(name, &ret, buf, buflen, &retp, &my_h_errno) /* ; */
40587
40588 ;
40589 return 0;
40590}
40591_ACEOF
40592rm -f conftest.$ac_objext
40593if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40594 (eval $ac_compile) 2>conftest.er1
40595 ac_status=$?
40596 grep -v '^ *+' conftest.er1 >conftest.err
40597 rm -f conftest.er1
40598 cat conftest.err >&5
40599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40600 (exit $ac_status); } &&
3ea50042 40601 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
004ee6da
RL
40602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40603 (eval $ac_try) 2>&5
40604 ac_status=$?
40605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40606 (exit $ac_status); }; } &&
40607 { ac_try='test -s conftest.$ac_objext'
40608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40609 (eval $ac_try) 2>&5
40610 ac_status=$?
40611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40612 (exit $ac_status); }; }; then
40613 ac_cv_func_which_gethostbyname_r=six
40614else
40615 echo "$as_me: failed program was:" >&5
40616sed 's/^/| /' conftest.$ac_ext >&5
40617
40618fi
40619rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40620
40621fi
40622
40623#
40624# FIVE ARGUMENTS
40625# (e.g. Solaris)
40626#
40627
40628if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
40629
40630cat >conftest.$ac_ext <<_ACEOF
40631/* confdefs.h. */
40632_ACEOF
40633cat confdefs.h >>conftest.$ac_ext
40634cat >>conftest.$ac_ext <<_ACEOF
40635/* end confdefs.h. */
40636#include <netdb.h>
40637int
40638main ()
40639{
40640
40641 char *name = "www.gnu.org";
40642 struct hostent ret;
40643 char buf[1024];
40644 int buflen = 1024;
40645 int my_h_errno;
40646 (void)gethostbyname_r(name, &ret, buf, buflen, &my_h_errno) /* ; */
40647
40648 ;
40649 return 0;
40650}
40651_ACEOF
40652rm -f conftest.$ac_objext
40653if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40654 (eval $ac_compile) 2>conftest.er1
40655 ac_status=$?
40656 grep -v '^ *+' conftest.er1 >conftest.err
40657 rm -f conftest.er1
40658 cat conftest.err >&5
40659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40660 (exit $ac_status); } &&
3ea50042 40661 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
004ee6da
RL
40662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40663 (eval $ac_try) 2>&5
40664 ac_status=$?
40665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40666 (exit $ac_status); }; } &&
40667 { ac_try='test -s conftest.$ac_objext'
40668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40669 (eval $ac_try) 2>&5
40670 ac_status=$?
40671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40672 (exit $ac_status); }; }; then
40673 ac_cv_func_which_gethostbyname_r=five
40674else
40675 echo "$as_me: failed program was:" >&5
40676sed 's/^/| /' conftest.$ac_ext >&5
40677
40678fi
40679rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40680
40681fi
40682
40683#
40684# THREE ARGUMENTS
40685# (e.g. AIX, HP-UX, Tru64)
40686#
40687
40688if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
40689
40690cat >conftest.$ac_ext <<_ACEOF
40691/* confdefs.h. */
40692_ACEOF
40693cat confdefs.h >>conftest.$ac_ext
40694cat >>conftest.$ac_ext <<_ACEOF
40695/* end confdefs.h. */
40696#include <netdb.h>
40697int
40698main ()
40699{
40700
40701 char *name = "www.gnu.org";
40702 struct hostent ret;
40703 struct hostent_data data;
40704 (void)gethostbyname_r(name, &ret, &data) /* ; */
40705
40706 ;
40707 return 0;
40708}
40709_ACEOF
40710rm -f conftest.$ac_objext
40711if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40712 (eval $ac_compile) 2>conftest.er1
40713 ac_status=$?
40714 grep -v '^ *+' conftest.er1 >conftest.err
40715 rm -f conftest.er1
40716 cat conftest.err >&5
40717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40718 (exit $ac_status); } &&
3ea50042 40719 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
004ee6da
RL
40720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40721 (eval $ac_try) 2>&5
40722 ac_status=$?
40723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40724 (exit $ac_status); }; } &&
40725 { ac_try='test -s conftest.$ac_objext'
40726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40727 (eval $ac_try) 2>&5
40728 ac_status=$?
40729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40730 (exit $ac_status); }; }; then
40731 ac_cv_func_which_gethostbyname_r=three
40732else
40733 echo "$as_me: failed program was:" >&5
40734sed 's/^/| /' conftest.$ac_ext >&5
40735
40736fi
40737rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40738
40739fi
40740
2f6c5bb5 40741################################################################
004ee6da
RL
40742
40743
40744fi
40745
40746case "$ac_cv_func_which_gethostbyname_r" in
40747 three)
40748 echo "$as_me:$LINENO: result: three" >&5
40749echo "${ECHO_T}three" >&6
40750 cat >>confdefs.h <<\_ACEOF
40751#define HAVE_FUNC_GETHOSTBYNAME_R_3 1
40752_ACEOF
40753
40754 ;;
40755
40756 five)
40757 echo "$as_me:$LINENO: result: five" >&5
40758echo "${ECHO_T}five" >&6
40759 cat >>confdefs.h <<\_ACEOF
40760#define HAVE_FUNC_GETHOSTBYNAME_R_5 1
40761_ACEOF
40762
40763 ;;
40764
40765 six)
40766 echo "$as_me:$LINENO: result: six" >&5
40767echo "${ECHO_T}six" >&6
40768 cat >>confdefs.h <<\_ACEOF
40769#define HAVE_FUNC_GETHOSTBYNAME_R_6 1
40770_ACEOF
40771
40772 ;;
40773
40774 no)
40775 echo "$as_me:$LINENO: result: cannot find function declaration in netdb.h" >&5
40776echo "${ECHO_T}cannot find function declaration in netdb.h" >&6
40777 ;;
40778
40779 unknown)
40780 echo "$as_me:$LINENO: result: can't tell" >&5
40781echo "${ECHO_T}can't tell" >&6
40782 ;;
40783
40784 *)
40785 { { echo "$as_me:$LINENO: error: internal error" >&5
40786echo "$as_me: error: internal error" >&2;}
40787 { (exit 1); exit 1; }; }
40788 ;;
40789esac
40790
5ec3bc43
JS
40791ac_ext=cc
40792ac_cpp='$CXXCPP $CPPFLAGS'
40793ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40794ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40795ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
004ee6da
RL
40796
40797
40798
40799 if test "x$ac_cv_func_which_gethostbyname_r" = "xno" -o \
40800 "x$ac_cv_func_which_gethostbyname_r" = "xunknown" ; then
40801 echo "$as_me:$LINENO: checking for gethostbyname" >&5
40802echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
40803if test "${ac_cv_func_gethostbyname+set}" = set; then
40804 echo $ECHO_N "(cached) $ECHO_C" >&6
40805else
40806 cat >conftest.$ac_ext <<_ACEOF
40807/* confdefs.h. */
40808_ACEOF
40809cat confdefs.h >>conftest.$ac_ext
40810cat >>conftest.$ac_ext <<_ACEOF
40811/* end confdefs.h. */
40812/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
40813 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40814#define gethostbyname innocuous_gethostbyname
40815
40816/* System header to define __stub macros and hopefully few prototypes,
40817 which can conflict with char gethostbyname (); below.
40818 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40819 <limits.h> exists even on freestanding compilers. */
40820
40821#ifdef __STDC__
40822# include <limits.h>
40823#else
40824# include <assert.h>
40825#endif
40826
40827#undef gethostbyname
40828
40829/* Override any gcc2 internal prototype to avoid an error. */
40830#ifdef __cplusplus
40831extern "C"
40832{
40833#endif
40834/* We use char because int might match the return type of a gcc2
40835 builtin and then its argument prototype would still apply. */
40836char gethostbyname ();
40837/* The GNU C library defines this for functions which it implements
40838 to always fail with ENOSYS. Some functions are actually named
40839 something starting with __ and the normal name is an alias. */
40840#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
40841choke me
40842#else
40843char (*f) () = gethostbyname;
40844#endif
40845#ifdef __cplusplus
40846}
40847#endif
40848
40849int
40850main ()
40851{
40852return f != gethostbyname;
40853 ;
40854 return 0;
40855}
40856_ACEOF
40857rm -f conftest.$ac_objext conftest$ac_exeext
40858if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40859 (eval $ac_link) 2>conftest.er1
40860 ac_status=$?
40861 grep -v '^ *+' conftest.er1 >conftest.err
40862 rm -f conftest.er1
40863 cat conftest.err >&5
40864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40865 (exit $ac_status); } &&
3ea50042 40866 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
40867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40868 (eval $ac_try) 2>&5
40869 ac_status=$?
40870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40871 (exit $ac_status); }; } &&
40872 { ac_try='test -s conftest$ac_exeext'
40873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40874 (eval $ac_try) 2>&5
40875 ac_status=$?
40876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40877 (exit $ac_status); }; }; then
40878 ac_cv_func_gethostbyname=yes
40879else
40880 echo "$as_me: failed program was:" >&5
40881sed 's/^/| /' conftest.$ac_ext >&5
40882
40883ac_cv_func_gethostbyname=no
40884fi
40885rm -f conftest.err conftest.$ac_objext \
40886 conftest$ac_exeext conftest.$ac_ext
40887fi
40888echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
40889echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
40890if test $ac_cv_func_gethostbyname = yes; then
40891 cat >>confdefs.h <<\_ACEOF
40892#define HAVE_GETHOSTBYNAME 1
40893_ACEOF
40894
40895fi
40896
40897 fi
3ecd9f92 40898
81c330c6
VZ
40899echo "$as_me:$LINENO: checking how many arguments getservbyname_r() takes" >&5
40900echo $ECHO_N "checking how many arguments getservbyname_r() takes... $ECHO_C" >&6
40901if test "${ac_cv_func_which_getservbyname_r+set}" = set; then
004ee6da
RL
40902 echo $ECHO_N "(cached) $ECHO_C" >&6
40903else
3ecd9f92
MW
40904
40905 cat >conftest.$ac_ext <<_ACEOF
004ee6da
RL
40906/* confdefs.h. */
40907_ACEOF
40908cat confdefs.h >>conftest.$ac_ext
40909cat >>conftest.$ac_ext <<_ACEOF
40910/* end confdefs.h. */
81c330c6 40911#include <netdb.h>
004ee6da
RL
40912int
40913main ()
40914{
40915
81c330c6
VZ
40916 char *name;
40917 char *proto;
40918 struct servent *se, *res;
40919 char buffer[2048];
40920 int buflen = 2048;
40921 (void) getservbyname_r(name, proto, se, buffer, buflen, &res)
004ee6da
RL
40922
40923 ;
40924 return 0;
40925}
40926_ACEOF
40927rm -f conftest.$ac_objext
40928if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40929 (eval $ac_compile) 2>conftest.er1
40930 ac_status=$?
40931 grep -v '^ *+' conftest.er1 >conftest.err
40932 rm -f conftest.er1
40933 cat conftest.err >&5
40934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40935 (exit $ac_status); } &&
3ea50042 40936 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
40937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40938 (eval $ac_try) 2>&5
40939 ac_status=$?
40940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40941 (exit $ac_status); }; } &&
40942 { ac_try='test -s conftest.$ac_objext'
40943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40944 (eval $ac_try) 2>&5
40945 ac_status=$?
40946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40947 (exit $ac_status); }; }; then
81c330c6 40948 ac_cv_func_which_getservbyname_r=six
004ee6da
RL
40949else
40950 echo "$as_me: failed program was:" >&5
40951sed 's/^/| /' conftest.$ac_ext >&5
40952
3ecd9f92 40953
81c330c6 40954 cat >conftest.$ac_ext <<_ACEOF
004ee6da
RL
40955/* confdefs.h. */
40956_ACEOF
40957cat confdefs.h >>conftest.$ac_ext
40958cat >>conftest.$ac_ext <<_ACEOF
40959/* end confdefs.h. */
81c330c6 40960#include <netdb.h>
004ee6da
RL
40961int
40962main ()
40963{
40964
81c330c6
VZ
40965 char *name;
40966 char *proto;
40967 struct servent *se;
40968 char buffer[2048];
40969 int buflen = 2048;
40970 (void) getservbyname_r(name, proto, se, buffer, buflen)
004ee6da
RL
40971
40972 ;
40973 return 0;
40974}
40975_ACEOF
40976rm -f conftest.$ac_objext
40977if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40978 (eval $ac_compile) 2>conftest.er1
40979 ac_status=$?
40980 grep -v '^ *+' conftest.er1 >conftest.err
40981 rm -f conftest.er1
40982 cat conftest.err >&5
40983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40984 (exit $ac_status); } &&
3ea50042 40985 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
40986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40987 (eval $ac_try) 2>&5
40988 ac_status=$?
40989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40990 (exit $ac_status); }; } &&
40991 { ac_try='test -s conftest.$ac_objext'
40992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40993 (eval $ac_try) 2>&5
40994 ac_status=$?
40995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40996 (exit $ac_status); }; }; then
81c330c6 40997 ac_cv_func_which_getservbyname_r=five
004ee6da
RL
40998else
40999 echo "$as_me: failed program was:" >&5
41000sed 's/^/| /' conftest.$ac_ext >&5
41001
3ecd9f92 41002
81c330c6 41003 cat >conftest.$ac_ext <<_ACEOF
004ee6da
RL
41004/* confdefs.h. */
41005_ACEOF
41006cat confdefs.h >>conftest.$ac_ext
41007cat >>conftest.$ac_ext <<_ACEOF
41008/* end confdefs.h. */
81c330c6 41009#include <netdb.h>
004ee6da
RL
41010int
41011main ()
41012{
41013
81c330c6
VZ
41014 char *name;
41015 char *proto;
41016 struct servent *se;
41017 struct servent_data data;
41018 (void) getservbyname_r(name, proto, se, &data);
004ee6da
RL
41019
41020 ;
41021 return 0;
41022}
41023_ACEOF
41024rm -f conftest.$ac_objext
41025if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41026 (eval $ac_compile) 2>conftest.er1
41027 ac_status=$?
41028 grep -v '^ *+' conftest.er1 >conftest.err
41029 rm -f conftest.er1
41030 cat conftest.err >&5
41031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41032 (exit $ac_status); } &&
3ea50042 41033 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
41034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41035 (eval $ac_try) 2>&5
41036 ac_status=$?
41037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41038 (exit $ac_status); }; } &&
41039 { ac_try='test -s conftest.$ac_objext'
41040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41041 (eval $ac_try) 2>&5
41042 ac_status=$?
41043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41044 (exit $ac_status); }; }; then
81c330c6 41045 ac_cv_func_which_getservbyname_r=four
004ee6da
RL
41046else
41047 echo "$as_me: failed program was:" >&5
41048sed 's/^/| /' conftest.$ac_ext >&5
41049
41050ac_cv_func_which_getservbyname_r=no
81c330c6 41051
004ee6da
RL
41052fi
41053rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41054
3ecd9f92 41055
004ee6da
RL
41056fi
41057rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41058
3ecd9f92 41059
004ee6da
RL
41060fi
41061rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3ecd9f92 41062
004ee6da 41063
3ecd9f92
MW
41064fi
41065echo "$as_me:$LINENO: result: $ac_cv_func_which_getservbyname_r" >&5
41066echo "${ECHO_T}$ac_cv_func_which_getservbyname_r" >&6
004ee6da
RL
41067
41068if test $ac_cv_func_which_getservbyname_r = six; then
41069 cat >>confdefs.h <<\_ACEOF
41070#define HAVE_FUNC_GETSERVBYNAME_R_6 1
41071_ACEOF
41072
41073elif test $ac_cv_func_which_getservbyname_r = five; then
41074 cat >>confdefs.h <<\_ACEOF
41075#define HAVE_FUNC_GETSERVBYNAME_R_5 1
41076_ACEOF
41077
41078elif test $ac_cv_func_which_getservbyname_r = four; then
41079 cat >>confdefs.h <<\_ACEOF
41080#define HAVE_FUNC_GETSERVBYNAME_R_4 1
41081_ACEOF
41082
004ee6da
RL
41083fi
41084
41085
41086 if test "x$ac_cv_func_which_getservbyname_r" = "xno" -o \
41087 "x$ac_cv_func_which_getservbyname_r" = "xunknown" ; then
41088
41089for ac_func in getservbyname
41090do
41091as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41092echo "$as_me:$LINENO: checking for $ac_func" >&5
41093echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41094if eval "test \"\${$as_ac_var+set}\" = set"; then
41095 echo $ECHO_N "(cached) $ECHO_C" >&6
41096else
41097 cat >conftest.$ac_ext <<_ACEOF
41098/* confdefs.h. */
41099_ACEOF
41100cat confdefs.h >>conftest.$ac_ext
41101cat >>conftest.$ac_ext <<_ACEOF
41102/* end confdefs.h. */
41103/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41104 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41105#define $ac_func innocuous_$ac_func
41106
41107/* System header to define __stub macros and hopefully few prototypes,
41108 which can conflict with char $ac_func (); below.
41109 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41110 <limits.h> exists even on freestanding compilers. */
41111
41112#ifdef __STDC__
41113# include <limits.h>
41114#else
41115# include <assert.h>
41116#endif
41117
41118#undef $ac_func
41119
41120/* Override any gcc2 internal prototype to avoid an error. */
41121#ifdef __cplusplus
41122extern "C"
41123{
41124#endif
41125/* We use char because int might match the return type of a gcc2
41126 builtin and then its argument prototype would still apply. */
41127char $ac_func ();
41128/* The GNU C library defines this for functions which it implements
41129 to always fail with ENOSYS. Some functions are actually named
41130 something starting with __ and the normal name is an alias. */
41131#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41132choke me
41133#else
41134char (*f) () = $ac_func;
41135#endif
41136#ifdef __cplusplus
41137}
41138#endif
41139
41140int
41141main ()
41142{
41143return f != $ac_func;
41144 ;
41145 return 0;
41146}
41147_ACEOF
41148rm -f conftest.$ac_objext conftest$ac_exeext
41149if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41150 (eval $ac_link) 2>conftest.er1
41151 ac_status=$?
41152 grep -v '^ *+' conftest.er1 >conftest.err
41153 rm -f conftest.er1
41154 cat conftest.err >&5
41155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41156 (exit $ac_status); } &&
3ea50042 41157 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
41158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41159 (eval $ac_try) 2>&5
41160 ac_status=$?
41161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41162 (exit $ac_status); }; } &&
41163 { ac_try='test -s conftest$ac_exeext'
41164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41165 (eval $ac_try) 2>&5
41166 ac_status=$?
41167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41168 (exit $ac_status); }; }; then
41169 eval "$as_ac_var=yes"
41170else
41171 echo "$as_me: failed program was:" >&5
41172sed 's/^/| /' conftest.$ac_ext >&5
41173
41174eval "$as_ac_var=no"
41175fi
41176rm -f conftest.err conftest.$ac_objext \
41177 conftest$ac_exeext conftest.$ac_ext
41178fi
41179echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41180echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41181if test `eval echo '${'$as_ac_var'}'` = yes; then
41182 cat >>confdefs.h <<_ACEOF
41183#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41184_ACEOF
41185 cat >>confdefs.h <<\_ACEOF
41186#define HAVE_GETSERVBYNAME 1
41187_ACEOF
41188
41189fi
41190done
41191
41192 fi
41193
004ee6da
RL
41194if test "$wxUSE_THREADS" = "yes"; then
41195 cat >>confdefs.h <<\_ACEOF
41196#define wxUSE_THREADS 1
41197_ACEOF
41198
41199
41200 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
41201else
56632e81 41202 if test "$wx_cv_func_strtok_r" = "yes"; then
004ee6da
RL
41203 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
41204echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
41205 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
41206 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_REENTRANT"
41207 echo "$as_me:$LINENO: result: yes" >&5
41208echo "${ECHO_T}yes" >&6
41209 else
41210 echo "$as_me:$LINENO: result: no" >&5
41211echo "${ECHO_T}no" >&6
41212 fi
41213 fi
41214fi
41215
41216if test "$WXGTK20" = 1 ; then
41217 cat >>confdefs.h <<_ACEOF
41218#define __WXGTK20__ $WXGTK20
41219_ACEOF
41220
41221 WXGTK12=1
41222fi
41223
41224if test "$WXGTK12" = 1 ; then
41225 cat >>confdefs.h <<_ACEOF
41226#define __WXGTK12__ $WXGTK12
41227_ACEOF
41228
41229fi
41230
41231if test "$WXGTK127" = 1 ; then
41232 cat >>confdefs.h <<_ACEOF
41233#define __WXGTK127__ $WXGTK127
41234_ACEOF
41235
41236fi
41237
41238if test "$WXGPE" = 1 ; then
41239 cat >>confdefs.h <<_ACEOF
41240#define __WXGPE__ $WXGPE
41241_ACEOF
41242
41243fi
41244
41245DEBUG_CFLAGS=
41246if test "$wxUSE_DEBUG_INFO" = "yes" ; then
41247 DEBUG_CFLAGS="-g"
41248 wxUSE_OPTIMISE=no
41249fi
41250
41251if test "$wxUSE_DEBUG_GDB" = "yes" ; then
41252 wxUSE_DEBUG_INFO=yes
41253 if test "$GCC" = yes; then
41254 DEBUG_CFLAGS="-ggdb"
41255 fi
41256fi
41257
41258if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
41259 cat >>confdefs.h <<\_ACEOF
41260#define WXDEBUG 1
41261_ACEOF
41262
41263 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D__WXDEBUG__"
41264else
41265 if test "$wxUSE_GTK" = 1 ; then
99879bbf
MR
41266 if test "x$wxGTK_VERSION" = "x1" ; then
41267 CPPFLAGS="-DGTK_NO_CHECK_CASTS $CPPFLAGS"
41268 fi
004ee6da
RL
41269 fi
41270fi
41271
41272if test "$wxUSE_MEM_TRACING" = "yes" ; then
41273 cat >>confdefs.h <<\_ACEOF
41274#define wxUSE_MEMORY_TRACING 1
41275_ACEOF
41276
41277 cat >>confdefs.h <<\_ACEOF
41278#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
41279_ACEOF
41280
41281 cat >>confdefs.h <<\_ACEOF
41282#define wxUSE_DEBUG_NEW_ALWAYS 1
41283_ACEOF
41284
41285 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
41286fi
41287
41288if test "$wxUSE_DMALLOC" = "yes" ; then
41289 DMALLOC_LIBS="-ldmallocthcxx"
41290fi
41291
41292PROFILE_FLAGS=
41293if test "$wxUSE_PROFILE" = "yes" ; then
41294 PROFILE_FLAGS=" -pg"
41295fi
41296
41297if test "$GCC" = "yes" ; then
41298 if test "$wxUSE_NO_RTTI" = "yes" ; then
41299 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-rtti"
41300 fi
41301 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
41302 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-exceptions"
41303 fi
41304 if test "$wxUSE_PERMISSIVE" = "yes" ; then
41305 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -fpermissive"
41306 fi
41307
41308 case "${host}" in
41309 powerpc*-*-aix* )
41310 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mminimal-toc"
41311 ;;
41312 *-hppa* )
41313 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -ffunction-sections"
41314 ;;
41315 esac
41316fi
41317
41318OPTIMISE_CFLAGS=
41319if test "$wxUSE_OPTIMISE" = "no" ; then
41320 if test "$GCC" = yes ; then
41321 OPTIMISE_CFLAGS="-O0"
41322 fi
41323else
41324 if test "$GCC" = yes ; then
e5efa97e
VZ
41325 case "${host}" in
41326 *-pc-os2_emx | *-pc-os2-emx )
41327 OPTIMISE_CFLAGS="-O2"
41328 ;;
41329 *)
41330 OPTIMISE_CFLAGS="-O2 -fno-strict-aliasing"
41331 ;;
41332 esac
004ee6da
RL
41333 else
41334 OPTIMISE_CFLAGS="-O"
41335 fi
41336fi
41337
41338
41339if test "x$WXWIN_COMPATIBILITY_2_4" = "xyes"; then
41340 cat >>confdefs.h <<\_ACEOF
41341#define WXWIN_COMPATIBILITY_2_4 1
41342_ACEOF
41343
41344
41345 WXWIN_COMPATIBILITY_2_6="yes"
41346fi
41347
41348if test "x$WXWIN_COMPATIBILITY_2_6" != "xno"; then
41349 cat >>confdefs.h <<\_ACEOF
41350#define WXWIN_COMPATIBILITY_2_6 1
41351_ACEOF
41352
41353fi
41354
41355
41356if test "$wxUSE_GUI" = "yes"; then
41357 cat >>confdefs.h <<\_ACEOF
41358#define wxUSE_GUI 1
41359_ACEOF
41360
41361
41362 fi
41363
41364
41365if test "$wxUSE_UNIX" = "yes"; then
41366 cat >>confdefs.h <<\_ACEOF
41367#define wxUSE_UNIX 1
41368_ACEOF
41369
41370fi
41371
41372
41373if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
41374
41375 HAVE_DL_FUNCS=0
41376 HAVE_SHL_FUNCS=0
41377 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
41378 if test "$USE_DARWIN" = 1; then
41379 HAVE_DL_FUNCS=1
41380 elif test "$USE_DOS" = 1; then
41381 HAVE_DL_FUNCS=0
41382 else
41383
41384for ac_func in dlopen
41385do
41386as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41387echo "$as_me:$LINENO: checking for $ac_func" >&5
41388echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41389if eval "test \"\${$as_ac_var+set}\" = set"; then
41390 echo $ECHO_N "(cached) $ECHO_C" >&6
41391else
41392 cat >conftest.$ac_ext <<_ACEOF
41393/* confdefs.h. */
41394_ACEOF
41395cat confdefs.h >>conftest.$ac_ext
41396cat >>conftest.$ac_ext <<_ACEOF
41397/* end confdefs.h. */
41398/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41399 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41400#define $ac_func innocuous_$ac_func
41401
41402/* System header to define __stub macros and hopefully few prototypes,
41403 which can conflict with char $ac_func (); below.
41404 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41405 <limits.h> exists even on freestanding compilers. */
41406
41407#ifdef __STDC__
41408# include <limits.h>
41409#else
41410# include <assert.h>
41411#endif
41412
41413#undef $ac_func
41414
41415/* Override any gcc2 internal prototype to avoid an error. */
41416#ifdef __cplusplus
41417extern "C"
41418{
41419#endif
41420/* We use char because int might match the return type of a gcc2
41421 builtin and then its argument prototype would still apply. */
41422char $ac_func ();
41423/* The GNU C library defines this for functions which it implements
41424 to always fail with ENOSYS. Some functions are actually named
41425 something starting with __ and the normal name is an alias. */
41426#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41427choke me
41428#else
41429char (*f) () = $ac_func;
41430#endif
41431#ifdef __cplusplus
41432}
41433#endif
41434
41435int
41436main ()
41437{
41438return f != $ac_func;
a848cd7e
SC
41439 ;
41440 return 0;
41441}
41442_ACEOF
41443rm -f conftest.$ac_objext conftest$ac_exeext
41444if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41445 (eval $ac_link) 2>conftest.er1
a848cd7e 41446 ac_status=$?
ac1cb8d3
VS
41447 grep -v '^ *+' conftest.er1 >conftest.err
41448 rm -f conftest.er1
41449 cat conftest.err >&5
a848cd7e
SC
41450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41451 (exit $ac_status); } &&
3ea50042 41452 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41454 (eval $ac_try) 2>&5
41455 ac_status=$?
41456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41457 (exit $ac_status); }; } &&
41458 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41460 (eval $ac_try) 2>&5
41461 ac_status=$?
41462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41463 (exit $ac_status); }; }; then
41464 eval "$as_ac_var=yes"
41465else
41466 echo "$as_me: failed program was:" >&5
41467sed 's/^/| /' conftest.$ac_ext >&5
41468
41469eval "$as_ac_var=no"
41470fi
ac1cb8d3
VS
41471rm -f conftest.err conftest.$ac_objext \
41472 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41473fi
41474echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41475echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41476if test `eval echo '${'$as_ac_var'}'` = yes; then
41477 cat >>confdefs.h <<_ACEOF
41478#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41479_ACEOF
41480
41481 cat >>confdefs.h <<\_ACEOF
41482#define HAVE_DLOPEN 1
41483_ACEOF
41484
41485 HAVE_DL_FUNCS=1
41486
41487else
41488
41489 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
41490echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
41491if test "${ac_cv_lib_dl_dlopen+set}" = set; then
41492 echo $ECHO_N "(cached) $ECHO_C" >&6
41493else
41494 ac_check_lib_save_LIBS=$LIBS
41495LIBS="-ldl $LIBS"
41496cat >conftest.$ac_ext <<_ACEOF
41497/* confdefs.h. */
41498_ACEOF
41499cat confdefs.h >>conftest.$ac_ext
41500cat >>conftest.$ac_ext <<_ACEOF
41501/* end confdefs.h. */
41502
41503/* Override any gcc2 internal prototype to avoid an error. */
41504#ifdef __cplusplus
41505extern "C"
41506#endif
41507/* We use char because int might match the return type of a gcc2
41508 builtin and then its argument prototype would still apply. */
41509char dlopen ();
41510int
41511main ()
41512{
41513dlopen ();
41514 ;
41515 return 0;
41516}
41517_ACEOF
41518rm -f conftest.$ac_objext conftest$ac_exeext
41519if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41520 (eval $ac_link) 2>conftest.er1
a848cd7e 41521 ac_status=$?
ac1cb8d3
VS
41522 grep -v '^ *+' conftest.er1 >conftest.err
41523 rm -f conftest.er1
41524 cat conftest.err >&5
a848cd7e
SC
41525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41526 (exit $ac_status); } &&
3ea50042 41527 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41529 (eval $ac_try) 2>&5
41530 ac_status=$?
41531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41532 (exit $ac_status); }; } &&
41533 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41535 (eval $ac_try) 2>&5
41536 ac_status=$?
41537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41538 (exit $ac_status); }; }; then
41539 ac_cv_lib_dl_dlopen=yes
41540else
41541 echo "$as_me: failed program was:" >&5
41542sed 's/^/| /' conftest.$ac_ext >&5
41543
41544ac_cv_lib_dl_dlopen=no
41545fi
ac1cb8d3
VS
41546rm -f conftest.err conftest.$ac_objext \
41547 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41548LIBS=$ac_check_lib_save_LIBS
41549fi
41550echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
41551echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
41552if test $ac_cv_lib_dl_dlopen = yes; then
41553
41554 cat >>confdefs.h <<\_ACEOF
41555#define HAVE_DLOPEN 1
41556_ACEOF
41557
41558 HAVE_DL_FUNCS=1
41559 DL_LINK=" -ldl$DL_LINK"
41560
41561else
41562
41563
41564for ac_func in shl_load
41565do
41566as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41567echo "$as_me:$LINENO: checking for $ac_func" >&5
41568echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41569if eval "test \"\${$as_ac_var+set}\" = set"; then
41570 echo $ECHO_N "(cached) $ECHO_C" >&6
41571else
41572 cat >conftest.$ac_ext <<_ACEOF
41573/* confdefs.h. */
41574_ACEOF
41575cat confdefs.h >>conftest.$ac_ext
41576cat >>conftest.$ac_ext <<_ACEOF
41577/* end confdefs.h. */
ac1cb8d3
VS
41578/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41579 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41580#define $ac_func innocuous_$ac_func
41581
a848cd7e
SC
41582/* System header to define __stub macros and hopefully few prototypes,
41583 which can conflict with char $ac_func (); below.
41584 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41585 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 41586
a848cd7e
SC
41587#ifdef __STDC__
41588# include <limits.h>
41589#else
41590# include <assert.h>
41591#endif
ac1cb8d3
VS
41592
41593#undef $ac_func
41594
a848cd7e
SC
41595/* Override any gcc2 internal prototype to avoid an error. */
41596#ifdef __cplusplus
41597extern "C"
41598{
41599#endif
41600/* We use char because int might match the return type of a gcc2
41601 builtin and then its argument prototype would still apply. */
41602char $ac_func ();
41603/* The GNU C library defines this for functions which it implements
41604 to always fail with ENOSYS. Some functions are actually named
41605 something starting with __ and the normal name is an alias. */
41606#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41607choke me
41608#else
41609char (*f) () = $ac_func;
41610#endif
41611#ifdef __cplusplus
41612}
41613#endif
41614
41615int
41616main ()
41617{
41618return f != $ac_func;
41619 ;
41620 return 0;
41621}
41622_ACEOF
41623rm -f conftest.$ac_objext conftest$ac_exeext
41624if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41625 (eval $ac_link) 2>conftest.er1
a848cd7e 41626 ac_status=$?
ac1cb8d3
VS
41627 grep -v '^ *+' conftest.er1 >conftest.err
41628 rm -f conftest.er1
41629 cat conftest.err >&5
a848cd7e
SC
41630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41631 (exit $ac_status); } &&
3ea50042 41632 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41634 (eval $ac_try) 2>&5
41635 ac_status=$?
41636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41637 (exit $ac_status); }; } &&
41638 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41640 (eval $ac_try) 2>&5
41641 ac_status=$?
41642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41643 (exit $ac_status); }; }; then
41644 eval "$as_ac_var=yes"
41645else
41646 echo "$as_me: failed program was:" >&5
41647sed 's/^/| /' conftest.$ac_ext >&5
41648
41649eval "$as_ac_var=no"
41650fi
ac1cb8d3
VS
41651rm -f conftest.err conftest.$ac_objext \
41652 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41653fi
41654echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41655echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41656if test `eval echo '${'$as_ac_var'}'` = yes; then
41657 cat >>confdefs.h <<_ACEOF
41658#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41659_ACEOF
41660
41661 cat >>confdefs.h <<\_ACEOF
41662#define HAVE_SHL_LOAD 1
41663_ACEOF
41664
41665 HAVE_SHL_FUNCS=1
41666
41667else
41668
41669 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
41670echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
41671if test "${ac_cv_lib_shl_load_dld+set}" = set; then
41672 echo $ECHO_N "(cached) $ECHO_C" >&6
41673else
41674 ac_check_lib_save_LIBS=$LIBS
41675LIBS="-lshl_load $LIBS"
41676cat >conftest.$ac_ext <<_ACEOF
41677/* confdefs.h. */
41678_ACEOF
41679cat confdefs.h >>conftest.$ac_ext
41680cat >>conftest.$ac_ext <<_ACEOF
41681/* end confdefs.h. */
41682
41683/* Override any gcc2 internal prototype to avoid an error. */
41684#ifdef __cplusplus
41685extern "C"
41686#endif
41687/* We use char because int might match the return type of a gcc2
41688 builtin and then its argument prototype would still apply. */
41689char dld ();
41690int
41691main ()
41692{
41693dld ();
41694 ;
41695 return 0;
41696}
41697_ACEOF
41698rm -f conftest.$ac_objext conftest$ac_exeext
41699if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41700 (eval $ac_link) 2>conftest.er1
a848cd7e 41701 ac_status=$?
ac1cb8d3
VS
41702 grep -v '^ *+' conftest.er1 >conftest.err
41703 rm -f conftest.er1
41704 cat conftest.err >&5
a848cd7e
SC
41705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41706 (exit $ac_status); } &&
3ea50042 41707 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41709 (eval $ac_try) 2>&5
41710 ac_status=$?
41711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41712 (exit $ac_status); }; } &&
41713 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41715 (eval $ac_try) 2>&5
41716 ac_status=$?
41717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41718 (exit $ac_status); }; }; then
41719 ac_cv_lib_shl_load_dld=yes
41720else
41721 echo "$as_me: failed program was:" >&5
41722sed 's/^/| /' conftest.$ac_ext >&5
41723
41724ac_cv_lib_shl_load_dld=no
41725fi
ac1cb8d3
VS
41726rm -f conftest.err conftest.$ac_objext \
41727 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41728LIBS=$ac_check_lib_save_LIBS
41729fi
41730echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
41731echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
41732if test $ac_cv_lib_shl_load_dld = yes; then
41733
41734 HAVE_SHL_FUNCS=1
41735 DL_LINK=" -ldld$DL_LINK"
41736
41737fi
41738
41739
41740fi
41741done
41742
41743
41744fi
41745
41746
41747fi
41748done
41749
41750
41751 if test "$HAVE_DL_FUNCS" = 1; then
41752
41753for ac_func in dlerror
41754do
41755as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41756echo "$as_me:$LINENO: checking for $ac_func" >&5
41757echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41758if eval "test \"\${$as_ac_var+set}\" = set"; then
41759 echo $ECHO_N "(cached) $ECHO_C" >&6
41760else
41761 cat >conftest.$ac_ext <<_ACEOF
41762/* confdefs.h. */
41763_ACEOF
41764cat confdefs.h >>conftest.$ac_ext
41765cat >>conftest.$ac_ext <<_ACEOF
41766/* end confdefs.h. */
ac1cb8d3
VS
41767/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41768 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41769#define $ac_func innocuous_$ac_func
41770
a848cd7e
SC
41771/* System header to define __stub macros and hopefully few prototypes,
41772 which can conflict with char $ac_func (); below.
41773 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41774 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 41775
a848cd7e
SC
41776#ifdef __STDC__
41777# include <limits.h>
41778#else
41779# include <assert.h>
41780#endif
ac1cb8d3
VS
41781
41782#undef $ac_func
41783
a848cd7e
SC
41784/* Override any gcc2 internal prototype to avoid an error. */
41785#ifdef __cplusplus
41786extern "C"
41787{
41788#endif
41789/* We use char because int might match the return type of a gcc2
41790 builtin and then its argument prototype would still apply. */
41791char $ac_func ();
41792/* The GNU C library defines this for functions which it implements
41793 to always fail with ENOSYS. Some functions are actually named
41794 something starting with __ and the normal name is an alias. */
41795#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41796choke me
41797#else
41798char (*f) () = $ac_func;
41799#endif
41800#ifdef __cplusplus
41801}
41802#endif
41803
41804int
41805main ()
41806{
41807return f != $ac_func;
41808 ;
41809 return 0;
41810}
41811_ACEOF
41812rm -f conftest.$ac_objext conftest$ac_exeext
41813if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41814 (eval $ac_link) 2>conftest.er1
a848cd7e 41815 ac_status=$?
ac1cb8d3
VS
41816 grep -v '^ *+' conftest.er1 >conftest.err
41817 rm -f conftest.er1
41818 cat conftest.err >&5
a848cd7e
SC
41819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41820 (exit $ac_status); } &&
3ea50042 41821 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41823 (eval $ac_try) 2>&5
41824 ac_status=$?
41825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41826 (exit $ac_status); }; } &&
41827 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41829 (eval $ac_try) 2>&5
41830 ac_status=$?
41831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41832 (exit $ac_status); }; }; then
41833 eval "$as_ac_var=yes"
41834else
41835 echo "$as_me: failed program was:" >&5
41836sed 's/^/| /' conftest.$ac_ext >&5
41837
41838eval "$as_ac_var=no"
41839fi
ac1cb8d3
VS
41840rm -f conftest.err conftest.$ac_objext \
41841 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41842fi
41843echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41844echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41845if test `eval echo '${'$as_ac_var'}'` = yes; then
41846 cat >>confdefs.h <<_ACEOF
41847#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41848_ACEOF
41849 cat >>confdefs.h <<\_ACEOF
41850#define HAVE_DLERROR 1
41851_ACEOF
41852
41853else
41854
41855 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
41856echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
41857if test "${ac_cv_lib_dl_dlerror+set}" = set; then
41858 echo $ECHO_N "(cached) $ECHO_C" >&6
41859else
41860 ac_check_lib_save_LIBS=$LIBS
41861LIBS="-ldl $LIBS"
41862cat >conftest.$ac_ext <<_ACEOF
41863/* confdefs.h. */
41864_ACEOF
41865cat confdefs.h >>conftest.$ac_ext
41866cat >>conftest.$ac_ext <<_ACEOF
41867/* end confdefs.h. */
41868
41869/* Override any gcc2 internal prototype to avoid an error. */
41870#ifdef __cplusplus
41871extern "C"
41872#endif
41873/* We use char because int might match the return type of a gcc2
41874 builtin and then its argument prototype would still apply. */
41875char dlerror ();
41876int
41877main ()
41878{
41879dlerror ();
41880 ;
41881 return 0;
41882}
41883_ACEOF
41884rm -f conftest.$ac_objext conftest$ac_exeext
41885if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41886 (eval $ac_link) 2>conftest.er1
a848cd7e 41887 ac_status=$?
ac1cb8d3
VS
41888 grep -v '^ *+' conftest.er1 >conftest.err
41889 rm -f conftest.er1
41890 cat conftest.err >&5
a848cd7e
SC
41891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41892 (exit $ac_status); } &&
3ea50042 41893 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41895 (eval $ac_try) 2>&5
41896 ac_status=$?
41897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41898 (exit $ac_status); }; } &&
41899 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41901 (eval $ac_try) 2>&5
41902 ac_status=$?
41903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41904 (exit $ac_status); }; }; then
41905 ac_cv_lib_dl_dlerror=yes
41906else
41907 echo "$as_me: failed program was:" >&5
41908sed 's/^/| /' conftest.$ac_ext >&5
41909
41910ac_cv_lib_dl_dlerror=no
41911fi
ac1cb8d3
VS
41912rm -f conftest.err conftest.$ac_objext \
41913 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41914LIBS=$ac_check_lib_save_LIBS
41915fi
41916echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
41917echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
41918if test $ac_cv_lib_dl_dlerror = yes; then
41919 cat >>confdefs.h <<\_ACEOF
41920#define HAVE_DLERROR 1
41921_ACEOF
41922
41923fi
41924
41925
41926
41927fi
41928done
41929
41930 fi
41931 fi
41932
41933 if test "$HAVE_DL_FUNCS" = 0; then
41934 if test "$HAVE_SHL_FUNCS" = 0; then
47a7e797 41935 if test "$USE_UNIX" = 1 -o "$USE_DOS" = 1; then
a848cd7e
SC
41936 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
41937echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
41938 wxUSE_DYNAMIC_LOADER=no
41939 wxUSE_DYNLIB_CLASS=no
41940 else
41941 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
41942echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
41943 fi
41944 fi
41945 fi
41946 fi
41947fi
41948
41949if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
41950 cat >>confdefs.h <<\_ACEOF
41951#define wxUSE_DYNAMIC_LOADER 1
41952_ACEOF
41953
41954fi
41955if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
41956 cat >>confdefs.h <<\_ACEOF
41957#define wxUSE_DYNLIB_CLASS 1
41958_ACEOF
41959
41960fi
41961
41962
41963
41964if test "$wxUSE_PLUGINS" = "yes" ; then
41965 if test "$wxUSE_SHARED" = "no" ; then
41966 { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
41967echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
41968 wxUSE_PLUGINS=no
41969 fi
41970 if test "$wxUSE_MONOLITHIC" = "yes" ; then
41971 { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
41972echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
41973 wxUSE_PLUGINS=no
41974 fi
41975 if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
41976 { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
41977echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
41978 wxUSE_PLUGINS=no
41979 fi
41980 if test "$wxUSE_PLUGINS" = "yes" ; then
41981 cat >>confdefs.h <<\_ACEOF
41982#define wxUSE_PLUGINS 1
41983_ACEOF
41984
41985 fi
41986fi
41987
41988
41989if test "$wxUSE_STL" = "yes"; then
41990 cat >>confdefs.h <<\_ACEOF
41991#define wxUSE_STL 1
41992_ACEOF
41993
41994fi
41995
41996if test "$wxUSE_APPLE_IEEE" = "yes"; then
41997 cat >>confdefs.h <<\_ACEOF
41998#define wxUSE_APPLE_IEEE 1
41999_ACEOF
42000
42001fi
42002
42003if test "$wxUSE_TIMER" = "yes"; then
42004 cat >>confdefs.h <<\_ACEOF
42005#define wxUSE_TIMER 1
42006_ACEOF
42007
42008fi
42009
9c112555 42010if test "$USE_UNIX" = "1" ; then
31714590
VZ
42011 echo "$as_me:$LINENO: checking for SNDCTL_DSP_SPEED in sys/soundcard.h" >&5
42012echo $ECHO_N "checking for SNDCTL_DSP_SPEED in sys/soundcard.h... $ECHO_C" >&6
d12aef51 42013if test "${ac_cv_header_sys_soundcard+set}" = set; then
a848cd7e 42014 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e 42015else
d12aef51
VZ
42016
42017 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
42018/* confdefs.h. */
42019_ACEOF
42020cat confdefs.h >>conftest.$ac_ext
42021cat >>conftest.$ac_ext <<_ACEOF
42022/* end confdefs.h. */
d12aef51 42023
31714590 42024 #include <sys/ioctl.h>
d12aef51
VZ
42025 #include <sys/soundcard.h>
42026
42027int
42028main ()
42029{
42030
31714590 42031 ioctl(0, SNDCTL_DSP_SPEED, 0);
d12aef51
VZ
42032
42033 ;
42034 return 0;
42035}
a848cd7e 42036_ACEOF
d12aef51
VZ
42037rm -f conftest.$ac_objext conftest$ac_exeext
42038if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42039 (eval $ac_link) 2>conftest.er1
a848cd7e 42040 ac_status=$?
ac1cb8d3
VS
42041 grep -v '^ *+' conftest.er1 >conftest.err
42042 rm -f conftest.er1
42043 cat conftest.err >&5
a848cd7e
SC
42044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42045 (exit $ac_status); } &&
3ea50042 42046 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42048 (eval $ac_try) 2>&5
42049 ac_status=$?
42050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42051 (exit $ac_status); }; } &&
d12aef51 42052 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
42053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42054 (eval $ac_try) 2>&5
42055 ac_status=$?
42056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42057 (exit $ac_status); }; }; then
d12aef51 42058 ac_cv_header_sys_soundcard=yes
a848cd7e
SC
42059else
42060 echo "$as_me: failed program was:" >&5
42061sed 's/^/| /' conftest.$ac_ext >&5
42062
a848cd7e 42063
d12aef51
VZ
42064 saveLibs="$LIBS"
42065 LIBS="$saveLibs -lossaudio"
42066 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
42067/* confdefs.h. */
42068_ACEOF
42069cat confdefs.h >>conftest.$ac_ext
42070cat >>conftest.$ac_ext <<_ACEOF
42071/* end confdefs.h. */
d12aef51 42072
31714590 42073 #include <sys/ioctl.h>
d12aef51
VZ
42074 #include <sys/soundcard.h>
42075
42076int
42077main ()
42078{
42079
31714590 42080 ioctl(0, SNDCTL_DSP_SPEED, 0);
d12aef51
VZ
42081
42082 ;
42083 return 0;
42084}
a848cd7e 42085_ACEOF
d12aef51
VZ
42086rm -f conftest.$ac_objext conftest$ac_exeext
42087if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42088 (eval $ac_link) 2>conftest.er1
a848cd7e
SC
42089 ac_status=$?
42090 grep -v '^ *+' conftest.er1 >conftest.err
42091 rm -f conftest.er1
42092 cat conftest.err >&5
42093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d12aef51 42094 (exit $ac_status); } &&
3ea50042 42095 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
d12aef51
VZ
42096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42097 (eval $ac_try) 2>&5
42098 ac_status=$?
42099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42100 (exit $ac_status); }; } &&
42101 { ac_try='test -s conftest$ac_exeext'
42102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42103 (eval $ac_try) 2>&5
42104 ac_status=$?
42105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42106 (exit $ac_status); }; }; then
42107 ac_cv_header_sys_soundcard=yes
a848cd7e
SC
42108else
42109 echo "$as_me: failed program was:" >&5
42110sed 's/^/| /' conftest.$ac_ext >&5
42111
a848cd7e 42112
d12aef51
VZ
42113 LIBS="$saveLibs"
42114 ac_cv_header_sys_soundcard=no
42115
42116
a848cd7e 42117fi
d12aef51
VZ
42118rm -f conftest.err conftest.$ac_objext \
42119 conftest$ac_exeext conftest.$ac_ext
42120
a848cd7e
SC
42121
42122fi
d12aef51
VZ
42123rm -f conftest.err conftest.$ac_objext \
42124 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
42125
42126fi
d12aef51
VZ
42127echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard" >&5
42128echo "${ECHO_T}$ac_cv_header_sys_soundcard" >&6
a848cd7e 42129
d12aef51
VZ
42130 if test "$ac_cv_header_sys_soundcard" = "yes"; then
42131 cat >>confdefs.h <<\_ACEOF
42132#define HAVE_SYS_SOUNDCARD_H 1
42133_ACEOF
a848cd7e 42134
d12aef51
VZ
42135 else
42136 DISABLED_CONTRIB="$DISABLED_CONTRIB mmedia"
42137 fi
9c112555
MW
42138fi
42139WITH_PLUGIN_SDL=0
42140if test "$wxUSE_SOUND" = "yes"; then
42141 if test "$USE_UNIX" = "1" ; then
a848cd7e
SC
42142 if test "$wxUSE_LIBSDL" != "no"; then
42143
42144# Check whether --with-sdl-prefix or --without-sdl-prefix was given.
42145if test "${with_sdl_prefix+set}" = set; then
42146 withval="$with_sdl_prefix"
42147 sdl_prefix="$withval"
42148else
42149 sdl_prefix=""
42150fi;
42151
42152# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
42153if test "${with_sdl_exec_prefix+set}" = set; then
42154 withval="$with_sdl_exec_prefix"
42155 sdl_exec_prefix="$withval"
42156else
42157 sdl_exec_prefix=""
42158fi;
42159# Check whether --enable-sdltest or --disable-sdltest was given.
42160if test "${enable_sdltest+set}" = set; then
42161 enableval="$enable_sdltest"
42162
42163else
42164 enable_sdltest=yes
42165fi;
42166
42167 if test x$sdl_exec_prefix != x ; then
3ecd9f92
MW
42168 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
42169 if test x${SDL_CONFIG+set} != xset ; then
42170 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
42171 fi
a848cd7e
SC
42172 fi
42173 if test x$sdl_prefix != x ; then
3ecd9f92
MW
42174 sdl_args="$sdl_args --prefix=$sdl_prefix"
42175 if test x${SDL_CONFIG+set} != xset ; then
42176 SDL_CONFIG=$sdl_prefix/bin/sdl-config
42177 fi
a848cd7e
SC
42178 fi
42179
3ecd9f92
MW
42180 if test "x$prefix" != xNONE; then
42181 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
42182 fi
a848cd7e
SC
42183 # Extract the first word of "sdl-config", so it can be a program name with args.
42184set dummy sdl-config; ac_word=$2
42185echo "$as_me:$LINENO: checking for $ac_word" >&5
42186echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42187if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
42188 echo $ECHO_N "(cached) $ECHO_C" >&6
42189else
42190 case $SDL_CONFIG in
42191 [\\/]* | ?:[\\/]*)
42192 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
42193 ;;
42194 *)
42195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42196for as_dir in $PATH
42197do
42198 IFS=$as_save_IFS
42199 test -z "$as_dir" && as_dir=.
42200 for ac_exec_ext in '' $ac_executable_extensions; do
42201 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42202 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
42203 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42204 break 2
42205 fi
42206done
42207done
42208
42209 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
42210 ;;
42211esac
42212fi
42213SDL_CONFIG=$ac_cv_path_SDL_CONFIG
42214
42215if test -n "$SDL_CONFIG"; then
42216 echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
42217echo "${ECHO_T}$SDL_CONFIG" >&6
42218else
42219 echo "$as_me:$LINENO: result: no" >&5
42220echo "${ECHO_T}no" >&6
42221fi
42222
42223 min_sdl_version=1.2.0
42224 echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
42225echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
42226 no_sdl=""
42227 if test "$SDL_CONFIG" = "no" ; then
42228 no_sdl=yes
42229 else
42230 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
42231 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
42232
42233 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
42234 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
42235 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
42236 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
42237 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
42238 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
42239 if test "x$enable_sdltest" = "xyes" ; then
42240 ac_save_CFLAGS="$CFLAGS"
94acd38e 42241 ac_save_CXXFLAGS="$CXXFLAGS"
a848cd7e
SC
42242 ac_save_LIBS="$LIBS"
42243 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 42244 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
42245 LIBS="$LIBS $SDL_LIBS"
42246 rm -f conf.sdltest
42247 if test "$cross_compiling" = yes; then
42248 echo $ac_n "cross compiling; assumed OK... $ac_c"
42249else
42250 cat >conftest.$ac_ext <<_ACEOF
42251/* confdefs.h. */
42252_ACEOF
42253cat confdefs.h >>conftest.$ac_ext
42254cat >>conftest.$ac_ext <<_ACEOF
42255/* end confdefs.h. */
42256
42257#include <stdio.h>
42258#include <stdlib.h>
42259#include <string.h>
42260#include "SDL.h"
42261
42262char*
42263my_strdup (char *str)
42264{
42265 char *new_str;
42266
42267 if (str)
42268 {
42269 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
42270 strcpy (new_str, str);
42271 }
42272 else
42273 new_str = NULL;
42274
42275 return new_str;
42276}
42277
42278int main (int argc, char *argv[])
42279{
42280 int major, minor, micro;
42281 char *tmp_version;
42282
42283 /* This hangs on some systems (?)
42284 system ("touch conf.sdltest");
42285 */
42286 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
42287
42288 /* HP/UX 9 (%@#!) writes to sscanf strings */
42289 tmp_version = my_strdup("$min_sdl_version");
42290 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
42291 printf("%s, bad version string\n", "$min_sdl_version");
42292 exit(1);
42293 }
42294
42295 if (($sdl_major_version > major) ||
42296 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
42297 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
42298 {
42299 return 0;
42300 }
42301 else
42302 {
42303 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
42304 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
42305 printf("*** best to upgrade to the required version.\n");
42306 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
42307 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
42308 printf("*** config.cache before re-running configure\n");
42309 return 1;
42310 }
42311}
42312
42313
42314_ACEOF
42315rm -f conftest$ac_exeext
42316if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42317 (eval $ac_link) 2>&5
42318 ac_status=$?
42319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42320 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
42321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42322 (eval $ac_try) 2>&5
42323 ac_status=$?
42324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42325 (exit $ac_status); }; }; then
42326 :
42327else
42328 echo "$as_me: program exited with status $ac_status" >&5
42329echo "$as_me: failed program was:" >&5
42330sed 's/^/| /' conftest.$ac_ext >&5
42331
42332( exit $ac_status )
42333no_sdl=yes
42334fi
ac1cb8d3 42335rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
42336fi
42337 CFLAGS="$ac_save_CFLAGS"
94acd38e 42338 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
42339 LIBS="$ac_save_LIBS"
42340 fi
42341 fi
42342 if test "x$no_sdl" = x ; then
42343 echo "$as_me:$LINENO: result: yes" >&5
42344echo "${ECHO_T}yes" >&6
42345
42346 EXTRALIBS_SDL="$SDL_LIBS"
c92ad099 42347 CXXFLAGS="$SDL_CFLAGS $CXXFLAGS"
a848cd7e
SC
42348 cat >>confdefs.h <<\_ACEOF
42349#define wxUSE_LIBSDL 1
42350_ACEOF
42351
42352
42353 else
42354 echo "$as_me:$LINENO: result: no" >&5
42355echo "${ECHO_T}no" >&6
42356 if test "$SDL_CONFIG" = "no" ; then
42357 echo "*** The sdl-config script installed by SDL could not be found"
42358 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
42359 echo "*** your path, or set the SDL_CONFIG environment variable to the"
42360 echo "*** full path to sdl-config."
42361 else
42362 if test -f conf.sdltest ; then
42363 :
42364 else
42365 echo "*** Could not run SDL test program, checking why..."
42366 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 42367 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
42368 LIBS="$LIBS $SDL_LIBS"
42369 cat >conftest.$ac_ext <<_ACEOF
42370/* confdefs.h. */
42371_ACEOF
42372cat confdefs.h >>conftest.$ac_ext
42373cat >>conftest.$ac_ext <<_ACEOF
42374/* end confdefs.h. */
42375
42376#include <stdio.h>
42377#include "SDL.h"
42378
42379int main(int argc, char *argv[])
42380{ return 0; }
42381#undef main
42382#define main K_and_R_C_main
42383
42384int
42385main ()
42386{
42387 return 0;
42388 ;
42389 return 0;
42390}
42391_ACEOF
42392rm -f conftest.$ac_objext conftest$ac_exeext
42393if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 42394 (eval $ac_link) 2>conftest.er1
a848cd7e 42395 ac_status=$?
ac1cb8d3
VS
42396 grep -v '^ *+' conftest.er1 >conftest.err
42397 rm -f conftest.er1
42398 cat conftest.err >&5
a848cd7e
SC
42399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42400 (exit $ac_status); } &&
3ea50042 42401 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42403 (eval $ac_try) 2>&5
42404 ac_status=$?
42405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42406 (exit $ac_status); }; } &&
42407 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
42408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42409 (eval $ac_try) 2>&5
42410 ac_status=$?
42411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42412 (exit $ac_status); }; }; then
42413 echo "*** The test program compiled, but did not run. This usually means"
42414 echo "*** that the run-time linker is not finding SDL or finding the wrong"
42415 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
42416 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
42417 echo "*** to the installed location Also, make sure you have run ldconfig if that"
42418 echo "*** is required on your system"
42419 echo "***"
42420 echo "*** If you have an old version installed, it is best to remove it, although"
42421 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
42422else
42423 echo "$as_me: failed program was:" >&5
42424sed 's/^/| /' conftest.$ac_ext >&5
42425
42426 echo "*** The test program failed to compile or link. See the file config.log for the"
42427 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
42428 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
42429 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
42430fi
ac1cb8d3
VS
42431rm -f conftest.err conftest.$ac_objext \
42432 conftest$ac_exeext conftest.$ac_ext
a848cd7e 42433 CFLAGS="$ac_save_CFLAGS"
94acd38e 42434 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
42435 LIBS="$ac_save_LIBS"
42436 fi
42437 fi
42438 SDL_CFLAGS=""
42439 SDL_LIBS=""
42440 wxUSE_LIBSDL="no"
42441 fi
42442
42443
42444 rm -f conf.sdltest
42445
42446 if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
42447 WITH_PLUGIN_SDL=1
42448 fi
42449 fi
42450 fi
42451
42452 cat >>confdefs.h <<\_ACEOF
42453#define wxUSE_SOUND 1
42454_ACEOF
42455
42456 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
42457fi
42458
d1c38808
VZ
42459if test "$WXGTK20" = 1; then
42460 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
42461 if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
42462
42463
3ecd9f92
MW
42464pkg_failed=no
42465echo "$as_me:$LINENO: checking for LIBGNOMEPRINTUI" >&5
42466echo $ECHO_N "checking for LIBGNOMEPRINTUI... $ECHO_C" >&6
d1c38808 42467
3ecd9f92
MW
42468if test -n "$PKG_CONFIG"; then
42469 if test -n "$LIBGNOMEPRINTUI_CFLAGS"; then
42470 pkg_cv_LIBGNOMEPRINTUI_CFLAGS="$LIBGNOMEPRINTUI_CFLAGS"
42471 else
42472 if test -n "$PKG_CONFIG" && \
42473 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5
42474 ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5
42475 ac_status=$?
42476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42477 (exit $ac_status); }; then
42478 pkg_cv_LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8" 2>/dev/null`
d1c38808 42479else
3ecd9f92
MW
42480 pkg_failed=yes
42481fi
42482 fi
42483else
42484 pkg_failed=untried
d1c38808 42485fi
d1c38808 42486if test -n "$PKG_CONFIG"; then
3ecd9f92
MW
42487 if test -n "$LIBGNOMEPRINTUI_LIBS"; then
42488 pkg_cv_LIBGNOMEPRINTUI_LIBS="$LIBGNOMEPRINTUI_LIBS"
42489 else
42490 if test -n "$PKG_CONFIG" && \
42491 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5
42492 ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5
42493 ac_status=$?
42494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42495 (exit $ac_status); }; then
42496 pkg_cv_LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8" 2>/dev/null`
d1c38808 42497else
3ecd9f92
MW
42498 pkg_failed=yes
42499fi
42500 fi
42501else
42502 pkg_failed=untried
d1c38808
VZ
42503fi
42504
d1c38808 42505
d1c38808 42506
3ecd9f92 42507if test $pkg_failed = yes; then
d1c38808 42508
3ecd9f92
MW
42509if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
42510 _pkg_short_errors_supported=yes
42511else
42512 _pkg_short_errors_supported=no
42513fi
42514 if test $_pkg_short_errors_supported = yes; then
42515 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
42516 else
42517 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
d1c38808 42518 fi
3ecd9f92
MW
42519 # Put the nasty error message in config.log where it belongs
42520 echo "$LIBGNOMEPRINTUI_PKG_ERRORS" >&5
d1c38808
VZ
42521
42522
3ecd9f92
MW
42523 { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
42524echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
42525 wxUSE_LIBGNOMEPRINT="no"
d1c38808
VZ
42526
42527
3ecd9f92 42528elif test $pkg_failed = untried; then
d1c38808
VZ
42529
42530 { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
42531echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
42532 wxUSE_LIBGNOMEPRINT="no"
42533
42534
3ecd9f92
MW
42535else
42536 LIBGNOMEPRINTUI_CFLAGS=$pkg_cv_LIBGNOMEPRINTUI_CFLAGS
42537 LIBGNOMEPRINTUI_LIBS=$pkg_cv_LIBGNOMEPRINTUI_LIBS
42538 echo "$as_me:$LINENO: result: yes" >&5
42539echo "${ECHO_T}yes" >&6
d1c38808 42540
3ecd9f92
MW
42541 CXXFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CXXFLAGS"
42542 cat >>confdefs.h <<\_ACEOF
42543#define wxUSE_LIBGNOMEPRINT 1
42544_ACEOF
42545
42546
42547fi
d1c38808
VZ
42548 fi
42549 fi
42550fi
42551
2b850ae1
RR
42552if test "$WXGTK20" = 1; then
42553 if test "$wxUSE_MIMETYPE" = "yes" ; then
42554 if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
42555
42556
3ecd9f92
MW
42557pkg_failed=no
42558echo "$as_me:$LINENO: checking for GNOMEVFS" >&5
42559echo $ECHO_N "checking for GNOMEVFS... $ECHO_C" >&6
2b850ae1 42560
3ecd9f92
MW
42561if test -n "$PKG_CONFIG"; then
42562 if test -n "$GNOMEVFS_CFLAGS"; then
42563 pkg_cv_GNOMEVFS_CFLAGS="$GNOMEVFS_CFLAGS"
42564 else
42565 if test -n "$PKG_CONFIG" && \
42566 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5
42567 ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5
42568 ac_status=$?
42569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42570 (exit $ac_status); }; then
42571 pkg_cv_GNOMEVFS_CFLAGS=`$PKG_CONFIG --cflags "gnome-vfs-2.0 >= 2.0" 2>/dev/null`
2b850ae1 42572else
3ecd9f92
MW
42573 pkg_failed=yes
42574fi
42575 fi
42576else
42577 pkg_failed=untried
2b850ae1 42578fi
2b850ae1 42579if test -n "$PKG_CONFIG"; then
3ecd9f92
MW
42580 if test -n "$GNOMEVFS_LIBS"; then
42581 pkg_cv_GNOMEVFS_LIBS="$GNOMEVFS_LIBS"
42582 else
42583 if test -n "$PKG_CONFIG" && \
42584 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5
42585 ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5
42586 ac_status=$?
42587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42588 (exit $ac_status); }; then
42589 pkg_cv_GNOMEVFS_LIBS=`$PKG_CONFIG --libs "gnome-vfs-2.0 >= 2.0" 2>/dev/null`
2b850ae1 42590else
3ecd9f92
MW
42591 pkg_failed=yes
42592fi
42593 fi
42594else
42595 pkg_failed=untried
2b850ae1
RR
42596fi
42597
2b850ae1 42598
2b850ae1 42599
3ecd9f92 42600if test $pkg_failed = yes; then
2b850ae1 42601
3ecd9f92
MW
42602if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
42603 _pkg_short_errors_supported=yes
42604else
42605 _pkg_short_errors_supported=no
42606fi
42607 if test $_pkg_short_errors_supported = yes; then
42608 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
42609 else
42610 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
2b850ae1 42611 fi
3ecd9f92
MW
42612 # Put the nasty error message in config.log where it belongs
42613 echo "$GNOMEVFS_PKG_ERRORS" >&5
2b850ae1
RR
42614
42615
3ecd9f92
MW
42616 { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
42617echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
42618 wxUSE_LIBGNOMEVFS="no"
2b850ae1
RR
42619
42620
3ecd9f92 42621elif test $pkg_failed = untried; then
2b850ae1
RR
42622
42623 { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
42624echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
42625 wxUSE_LIBGNOMEVFS="no"
42626
42627
3ecd9f92
MW
42628else
42629 GNOMEVFS_CFLAGS=$pkg_cv_GNOMEVFS_CFLAGS
42630 GNOMEVFS_LIBS=$pkg_cv_GNOMEVFS_LIBS
42631 echo "$as_me:$LINENO: result: yes" >&5
42632echo "${ECHO_T}yes" >&6
2b850ae1 42633
3ecd9f92
MW
42634 CXXFLAGS="$GNOMEVFS_CFLAGS $CXXFLAGS"
42635 cat >>confdefs.h <<\_ACEOF
42636#define wxUSE_LIBGNOMEVFS 1
42637_ACEOF
42638
42639
42640fi
2b850ae1
RR
42641 fi
42642 fi
42643fi
42644
3565d135
RR
42645if test "$WXGTK20" = 1; then
42646 if test "$wxUSE_LIBHILDON" = "yes" ; then
42647
3ecd9f92
MW
42648pkg_failed=no
42649echo "$as_me:$LINENO: checking for HILDON" >&5
42650echo $ECHO_N "checking for HILDON... $ECHO_C" >&6
3565d135 42651
3ecd9f92
MW
42652if test -n "$PKG_CONFIG"; then
42653 if test -n "$HILDON_CFLAGS"; then
42654 pkg_cv_HILDON_CFLAGS="$HILDON_CFLAGS"
42655 else
42656 if test -n "$PKG_CONFIG" && \
42657 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5
42658 ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5
42659 ac_status=$?
42660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42661 (exit $ac_status); }; then
42662 pkg_cv_HILDON_CFLAGS=`$PKG_CONFIG --cflags "hildon-lgpl >= 0.9" 2>/dev/null`
3565d135 42663else
3ecd9f92
MW
42664 pkg_failed=yes
42665fi
42666 fi
42667else
42668 pkg_failed=untried
3565d135 42669fi
3565d135 42670if test -n "$PKG_CONFIG"; then
3ecd9f92
MW
42671 if test -n "$HILDON_LIBS"; then
42672 pkg_cv_HILDON_LIBS="$HILDON_LIBS"
42673 else
42674 if test -n "$PKG_CONFIG" && \
42675 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5
42676 ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5
42677 ac_status=$?
42678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42679 (exit $ac_status); }; then
42680 pkg_cv_HILDON_LIBS=`$PKG_CONFIG --libs "hildon-lgpl >= 0.9" 2>/dev/null`
3565d135 42681else
3ecd9f92
MW
42682 pkg_failed=yes
42683fi
42684 fi
42685else
42686 pkg_failed=untried
3565d135
RR
42687fi
42688
3565d135 42689
3565d135 42690
3ecd9f92 42691if test $pkg_failed = yes; then
3565d135 42692
3ecd9f92
MW
42693if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
42694 _pkg_short_errors_supported=yes
42695else
42696 _pkg_short_errors_supported=no
42697fi
42698 if test $_pkg_short_errors_supported = yes; then
42699 HILDON_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
42700 else
42701 HILDON_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
3565d135 42702 fi
3ecd9f92
MW
42703 # Put the nasty error message in config.log where it belongs
42704 echo "$HILDON_PKG_ERRORS" >&5
3565d135
RR
42705
42706
3ecd9f92
MW
42707 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
42708echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
42709 wxUSE_LIBHILDON="no"
3565d135 42710
3565d135 42711
3ecd9f92
MW
42712elif test $pkg_failed = untried; then
42713
42714 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
42715echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
42716 wxUSE_LIBHILDON="no"
42717
42718
42719else
42720 HILDON_CFLAGS=$pkg_cv_HILDON_CFLAGS
42721 HILDON_LIBS=$pkg_cv_HILDON_LIBS
42722 echo "$as_me:$LINENO: result: yes" >&5
42723echo "${ECHO_T}yes" >&6
3565d135
RR
42724
42725 EXTRALIBS_HILDON="$HILDON_LIBS"
42726 CXXFLAGS="$CXXFLAGS $HILDON_CFLAGS"
42727 cat >>confdefs.h <<\_ACEOF
42728#define wxUSE_LIBHILDON 1
42729_ACEOF
42730
42731
3ecd9f92 42732fi
3565d135
RR
42733 fi
42734fi
d1c38808 42735
a848cd7e
SC
42736if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
42737 cat >>confdefs.h <<\_ACEOF
42738#define wxUSE_CMDLINE_PARSER 1
42739_ACEOF
42740
42741fi
42742
42743if test "$wxUSE_STOPWATCH" = "yes"; then
42744 cat >>confdefs.h <<\_ACEOF
42745#define wxUSE_STOPWATCH 1
42746_ACEOF
42747
42748fi
42749
42750if test "$wxUSE_DATETIME" = "yes"; then
42751 cat >>confdefs.h <<\_ACEOF
42752#define wxUSE_DATETIME 1
42753_ACEOF
42754
42755fi
42756
42757if test "$wxUSE_FILE" = "yes"; then
42758 cat >>confdefs.h <<\_ACEOF
42759#define wxUSE_FILE 1
42760_ACEOF
42761
42762fi
42763
42764if test "$wxUSE_FFILE" = "yes"; then
42765 cat >>confdefs.h <<\_ACEOF
42766#define wxUSE_FFILE 1
42767_ACEOF
42768
42769fi
42770
42771if test "$wxUSE_FILESYSTEM" = "yes"; then
42772 cat >>confdefs.h <<\_ACEOF
42773#define wxUSE_FILESYSTEM 1
42774_ACEOF
42775
42776fi
42777
42778if test "$wxUSE_FS_ZIP" = "yes"; then
42779 cat >>confdefs.h <<\_ACEOF
42780#define wxUSE_FS_ZIP 1
42781_ACEOF
42782
42783fi
42784
9e8e867f 42785if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then
a848cd7e 42786 cat >>confdefs.h <<\_ACEOF
9e8e867f 42787#define wxUSE_ARCHIVE_STREAMS 1
81f90336
MW
42788_ACEOF
42789
42790fi
42791
42792if test "$wxUSE_ZIPSTREAM" = "yes"; then
9e8e867f 42793 if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
81f90336
MW
42794 { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5
42795echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;}
42796 elif test "$wxUSE_ZLIB" = "no"; then
42797 { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5
42798echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;}
42799 else
42800 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
42801#define wxUSE_ZIPSTREAM 1
42802_ACEOF
42803
81f90336 42804 fi
a848cd7e
SC
42805fi
42806
a848cd7e 42807if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
18228ab4
MW
42808 if test "$USE_UNIX" != 1; then
42809 { echo "$as_me:$LINENO: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&5
42810echo "$as_me: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&2;}
42811 wxUSE_ON_FATAL_EXCEPTION=no
42812 else
42813 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
42814#define wxUSE_ON_FATAL_EXCEPTION 1
42815_ACEOF
42816
18228ab4 42817 fi
a848cd7e
SC
42818fi
42819
eaff0f0d
VZ
42820if test "$wxUSE_STACKWALKER" = "yes"; then
42821 cat >>confdefs.h <<\_ACEOF
42822#define wxUSE_STACKWALKER 1
42823_ACEOF
42824
42825fi
42826
36b6448c 42827if test "$wxUSE_DEBUGREPORT" = "yes"; then
18228ab4
MW
42828 if test "$USE_UNIX" != "1" -a "$USE_WIN32" != "1"; then
42829 { echo "$as_me:$LINENO: WARNING: Creating debug reports not currently supported on this system, disabled" >&5
42830echo "$as_me: WARNING: Creating debug reports not currently supported on this system, disabled" >&2;}
dfe0c803
JS
42831 wxUSE_DEBUGREPORT=no
42832 else
42833 cat >>confdefs.h <<\_ACEOF
36b6448c
VZ
42834#define wxUSE_DEBUGREPORT 1
42835_ACEOF
42836
21dfc162
MW
42837 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
42838 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt"
42839 fi
dfe0c803 42840 fi
36b6448c
VZ
42841fi
42842
a848cd7e
SC
42843if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
42844 cat >>confdefs.h <<\_ACEOF
42845#define wxUSE_SNGLINST_CHECKER 1
42846_ACEOF
42847
42848fi
42849
42850if test "$wxUSE_BUSYINFO" = "yes"; then
42851 cat >>confdefs.h <<\_ACEOF
42852#define wxUSE_BUSYINFO 1
42853_ACEOF
42854
42855fi
42856
42857if test "$wxUSE_STD_IOSTREAM" = "yes"; then
42858 cat >>confdefs.h <<\_ACEOF
42859#define wxUSE_STD_IOSTREAM 1
42860_ACEOF
42861
42862fi
42863
59746b65
MW
42864if test "$wxUSE_STD_STRING" = "yes"; then
42865 cat >>confdefs.h <<\_ACEOF
42866#define wxUSE_STD_STRING 1
42867_ACEOF
42868
42869fi
42870
07158944
VZ
42871if test "$wxUSE_STDPATHS" = "yes"; then
42872 cat >>confdefs.h <<\_ACEOF
42873#define wxUSE_STDPATHS 1
42874_ACEOF
42875
42876fi
42877
a848cd7e
SC
42878if test "$wxUSE_TEXTBUFFER" = "yes"; then
42879 cat >>confdefs.h <<\_ACEOF
42880#define wxUSE_TEXTBUFFER 1
42881_ACEOF
42882
42883fi
42884
42885if test "$wxUSE_TEXTFILE" = "yes"; then
42886 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
42887 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
42888echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
42889 else
42890 cat >>confdefs.h <<\_ACEOF
42891#define wxUSE_TEXTFILE 1
42892_ACEOF
42893
42894 fi
42895fi
42896
42897if test "$wxUSE_CONFIG" = "yes" ; then
42898 if test "$wxUSE_TEXTFILE" != "yes"; then
42899 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
42900echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
42901 else
42902 cat >>confdefs.h <<\_ACEOF
42903#define wxUSE_CONFIG 1
89be85c2
VS
42904_ACEOF
42905
42906 cat >>confdefs.h <<\_ACEOF
42907#define wxUSE_CONFIG_NATIVE 1
a848cd7e
SC
42908_ACEOF
42909
42910 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
42911 fi
42912fi
42913
42914if test "$wxUSE_INTL" = "yes" ; then
42915 if test "$wxUSE_FILE" != "yes"; then
42916 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
42917echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
42918 else
42919 cat >>confdefs.h <<\_ACEOF
42920#define wxUSE_INTL 1
42921_ACEOF
42922
42923 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
42924 GUIDIST="$GUIDIST INTL_DIST"
42925 fi
42926fi
42927
42928if test "$wxUSE_LOG" = "yes"; then
42929 cat >>confdefs.h <<\_ACEOF
42930#define wxUSE_LOG 1
42931_ACEOF
42932
42933
42934 if test "$wxUSE_LOGGUI" = "yes"; then
42935 cat >>confdefs.h <<\_ACEOF
42936#define wxUSE_LOGGUI 1
42937_ACEOF
42938
42939 fi
42940
42941 if test "$wxUSE_LOGWINDOW" = "yes"; then
42942 cat >>confdefs.h <<\_ACEOF
42943#define wxUSE_LOGWINDOW 1
42944_ACEOF
42945
42946 fi
42947
42948 if test "$wxUSE_LOGDIALOG" = "yes"; then
42949 cat >>confdefs.h <<\_ACEOF
42950#define wxUSE_LOG_DIALOG 1
42951_ACEOF
42952
42953 fi
0b78747f
MW
42954
42955 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard"
a848cd7e
SC
42956fi
42957
42958if test "$wxUSE_LONGLONG" = "yes"; then
42959 cat >>confdefs.h <<\_ACEOF
42960#define wxUSE_LONGLONG 1
42961_ACEOF
42962
42963fi
42964
42965if test "$wxUSE_GEOMETRY" = "yes"; then
42966 cat >>confdefs.h <<\_ACEOF
42967#define wxUSE_GEOMETRY 1
42968_ACEOF
42969
42970fi
42971
a848cd7e
SC
42972if test "$wxUSE_STREAMS" = "yes" ; then
42973 cat >>confdefs.h <<\_ACEOF
42974#define wxUSE_STREAMS 1
42975_ACEOF
42976
42977fi
42978
8b6682b9
JS
42979if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
42980 cat >>confdefs.h <<\_ACEOF
42981#define wxUSE_PRINTF_POS_PARAMS 1
42982_ACEOF
42983
42984fi
42985
42986
a848cd7e
SC
42987
42988if test "$wxUSE_DATETIME" = "yes"; then
42989
42990for ac_func in strptime
42991do
42992as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42993echo "$as_me:$LINENO: checking for $ac_func" >&5
42994echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42995if eval "test \"\${$as_ac_var+set}\" = set"; then
42996 echo $ECHO_N "(cached) $ECHO_C" >&6
42997else
42998 cat >conftest.$ac_ext <<_ACEOF
42999/* confdefs.h. */
43000_ACEOF
43001cat confdefs.h >>conftest.$ac_ext
43002cat >>conftest.$ac_ext <<_ACEOF
43003/* end confdefs.h. */
ac1cb8d3
VS
43004/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43005 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43006#define $ac_func innocuous_$ac_func
43007
a848cd7e
SC
43008/* System header to define __stub macros and hopefully few prototypes,
43009 which can conflict with char $ac_func (); below.
43010 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43011 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 43012
a848cd7e
SC
43013#ifdef __STDC__
43014# include <limits.h>
43015#else
43016# include <assert.h>
43017#endif
ac1cb8d3
VS
43018
43019#undef $ac_func
43020
a848cd7e
SC
43021/* Override any gcc2 internal prototype to avoid an error. */
43022#ifdef __cplusplus
43023extern "C"
43024{
43025#endif
43026/* We use char because int might match the return type of a gcc2
43027 builtin and then its argument prototype would still apply. */
43028char $ac_func ();
43029/* The GNU C library defines this for functions which it implements
43030 to always fail with ENOSYS. Some functions are actually named
43031 something starting with __ and the normal name is an alias. */
43032#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43033choke me
43034#else
43035char (*f) () = $ac_func;
43036#endif
43037#ifdef __cplusplus
43038}
43039#endif
43040
43041int
43042main ()
43043{
43044return f != $ac_func;
43045 ;
43046 return 0;
43047}
43048_ACEOF
43049rm -f conftest.$ac_objext conftest$ac_exeext
43050if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 43051 (eval $ac_link) 2>conftest.er1
a848cd7e 43052 ac_status=$?
ac1cb8d3
VS
43053 grep -v '^ *+' conftest.er1 >conftest.err
43054 rm -f conftest.er1
43055 cat conftest.err >&5
a848cd7e
SC
43056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43057 (exit $ac_status); } &&
3ea50042 43058 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43060 (eval $ac_try) 2>&5
43061 ac_status=$?
43062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43063 (exit $ac_status); }; } &&
43064 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
43065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43066 (eval $ac_try) 2>&5
43067 ac_status=$?
43068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43069 (exit $ac_status); }; }; then
43070 eval "$as_ac_var=yes"
43071else
43072 echo "$as_me: failed program was:" >&5
43073sed 's/^/| /' conftest.$ac_ext >&5
43074
43075eval "$as_ac_var=no"
43076fi
ac1cb8d3
VS
43077rm -f conftest.err conftest.$ac_objext \
43078 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
43079fi
43080echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43081echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43082if test `eval echo '${'$as_ac_var'}'` = yes; then
43083 cat >>confdefs.h <<_ACEOF
43084#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43085_ACEOF
43086
43087fi
43088done
43089
f536f005
VZ
43090 if test "$ac_cv_func_strptime" = "yes"; then
43091 echo "$as_me:$LINENO: checking for strptime declaration" >&5
43092echo $ECHO_N "checking for strptime declaration... $ECHO_C" >&6
43093if test "${wx_cv_func_strptime_decl+set}" = set; then
43094 echo $ECHO_N "(cached) $ECHO_C" >&6
43095else
43096
f536f005
VZ
43097 cat >conftest.$ac_ext <<_ACEOF
43098/* confdefs.h. */
43099_ACEOF
43100cat confdefs.h >>conftest.$ac_ext
43101cat >>conftest.$ac_ext <<_ACEOF
43102/* end confdefs.h. */
43103
43104 #include <time.h>
43105
43106int
43107main ()
43108{
43109
43110 struct tm t;
43111 strptime("foo", "bar", &t);
43112
43113 ;
43114 return 0;
43115}
43116_ACEOF
43117rm -f conftest.$ac_objext
43118if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43119 (eval $ac_compile) 2>conftest.er1
43120 ac_status=$?
43121 grep -v '^ *+' conftest.er1 >conftest.err
43122 rm -f conftest.er1
43123 cat conftest.err >&5
43124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43125 (exit $ac_status); } &&
3ea50042 43126 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
f536f005
VZ
43127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43128 (eval $ac_try) 2>&5
43129 ac_status=$?
43130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43131 (exit $ac_status); }; } &&
43132 { ac_try='test -s conftest.$ac_objext'
43133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43134 (eval $ac_try) 2>&5
43135 ac_status=$?
43136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43137 (exit $ac_status); }; }; then
43138 wx_cv_func_strptime_decl=yes
43139else
43140 echo "$as_me: failed program was:" >&5
43141sed 's/^/| /' conftest.$ac_ext >&5
43142
43143wx_cv_func_strptime_decl=no
43144
43145fi
43146rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f536f005
VZ
43147
43148
43149fi
43150echo "$as_me:$LINENO: result: $wx_cv_func_strptime_decl" >&5
43151echo "${ECHO_T}$wx_cv_func_strptime_decl" >&6
43152 fi
43153 if test "$wx_cv_func_strptime_decl" = "yes"; then
43154 cat >>confdefs.h <<\_ACEOF
43155#define HAVE_STRPTIME_DECL 1
43156_ACEOF
43157
43158 fi
a848cd7e
SC
43159
43160 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
43161echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
43162if test "${wx_cv_var_timezone+set}" = set; then
43163 echo $ECHO_N "(cached) $ECHO_C" >&6
43164else
43165
43166 cat >conftest.$ac_ext <<_ACEOF
43167/* confdefs.h. */
43168_ACEOF
43169cat confdefs.h >>conftest.$ac_ext
43170cat >>conftest.$ac_ext <<_ACEOF
43171/* end confdefs.h. */
43172
43173 #include <time.h>
43174
43175int
43176main ()
43177{
43178
43179 int tz;
43180 tz = timezone;
43181
43182 ;
43183 return 0;
43184}
43185_ACEOF
43186rm -f conftest.$ac_objext
43187if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43188 (eval $ac_compile) 2>conftest.er1
a848cd7e 43189 ac_status=$?
ac1cb8d3
VS
43190 grep -v '^ *+' conftest.er1 >conftest.err
43191 rm -f conftest.er1
43192 cat conftest.err >&5
a848cd7e
SC
43193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43194 (exit $ac_status); } &&
3ea50042 43195 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43197 (eval $ac_try) 2>&5
43198 ac_status=$?
43199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43200 (exit $ac_status); }; } &&
43201 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43203 (eval $ac_try) 2>&5
43204 ac_status=$?
43205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43206 (exit $ac_status); }; }; then
43207
43208 wx_cv_var_timezone=timezone
43209
43210else
43211 echo "$as_me: failed program was:" >&5
43212sed 's/^/| /' conftest.$ac_ext >&5
43213
43214
43215 cat >conftest.$ac_ext <<_ACEOF
43216/* confdefs.h. */
43217_ACEOF
43218cat confdefs.h >>conftest.$ac_ext
43219cat >>conftest.$ac_ext <<_ACEOF
43220/* end confdefs.h. */
43221
43222 #include <time.h>
43223
43224int
43225main ()
43226{
43227
43228 int tz;
43229 tz = _timezone;
43230
43231 ;
43232 return 0;
43233}
43234_ACEOF
43235rm -f conftest.$ac_objext
43236if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43237 (eval $ac_compile) 2>conftest.er1
a848cd7e 43238 ac_status=$?
ac1cb8d3
VS
43239 grep -v '^ *+' conftest.er1 >conftest.err
43240 rm -f conftest.er1
43241 cat conftest.err >&5
a848cd7e
SC
43242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43243 (exit $ac_status); } &&
3ea50042 43244 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43246 (eval $ac_try) 2>&5
43247 ac_status=$?
43248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43249 (exit $ac_status); }; } &&
43250 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43252 (eval $ac_try) 2>&5
43253 ac_status=$?
43254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43255 (exit $ac_status); }; }; then
43256
43257 wx_cv_var_timezone=_timezone
43258
43259else
43260 echo "$as_me: failed program was:" >&5
43261sed 's/^/| /' conftest.$ac_ext >&5
43262
43263
43264 cat >conftest.$ac_ext <<_ACEOF
43265/* confdefs.h. */
43266_ACEOF
43267cat confdefs.h >>conftest.$ac_ext
43268cat >>conftest.$ac_ext <<_ACEOF
43269/* end confdefs.h. */
43270
43271 #include <time.h>
43272
43273int
43274main ()
43275{
43276
43277 int tz;
43278 tz = __timezone;
43279
43280 ;
43281 return 0;
43282}
43283_ACEOF
43284rm -f conftest.$ac_objext
43285if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43286 (eval $ac_compile) 2>conftest.er1
a848cd7e 43287 ac_status=$?
ac1cb8d3
VS
43288 grep -v '^ *+' conftest.er1 >conftest.err
43289 rm -f conftest.er1
43290 cat conftest.err >&5
a848cd7e
SC
43291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43292 (exit $ac_status); } &&
3ea50042 43293 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43295 (eval $ac_try) 2>&5
43296 ac_status=$?
43297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43298 (exit $ac_status); }; } &&
43299 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43301 (eval $ac_try) 2>&5
43302 ac_status=$?
43303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43304 (exit $ac_status); }; }; then
43305
43306 wx_cv_var_timezone=__timezone
43307
43308else
43309 echo "$as_me: failed program was:" >&5
43310sed 's/^/| /' conftest.$ac_ext >&5
43311
43312
43313 if test "$USE_DOS" = 0 ; then
43314 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
43315echo "$as_me: WARNING: no timezone variable" >&2;}
43316 fi
43317
43318
43319fi
ac1cb8d3 43320rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
43321
43322
43323fi
ac1cb8d3 43324rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
43325
43326
43327fi
ac1cb8d3 43328rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
43329
43330
43331fi
43332echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
43333echo "${ECHO_T}$wx_cv_var_timezone" >&6
43334
43335 if test "x$wx_cv_var_timezone" != x ; then
43336 cat >>confdefs.h <<_ACEOF
43337#define WX_TIMEZONE $wx_cv_var_timezone
43338_ACEOF
43339
43340 fi
43341
43342
43343for ac_func in localtime
43344do
43345as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43346echo "$as_me:$LINENO: checking for $ac_func" >&5
43347echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43348if eval "test \"\${$as_ac_var+set}\" = set"; then
43349 echo $ECHO_N "(cached) $ECHO_C" >&6
43350else
43351 cat >conftest.$ac_ext <<_ACEOF
43352/* confdefs.h. */
43353_ACEOF
43354cat confdefs.h >>conftest.$ac_ext
43355cat >>conftest.$ac_ext <<_ACEOF
43356/* end confdefs.h. */
ac1cb8d3
VS
43357/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43358 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43359#define $ac_func innocuous_$ac_func
43360
a848cd7e
SC
43361/* System header to define __stub macros and hopefully few prototypes,
43362 which can conflict with char $ac_func (); below.
43363 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43364 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 43365
a848cd7e
SC
43366#ifdef __STDC__
43367# include <limits.h>
43368#else
43369# include <assert.h>
43370#endif
ac1cb8d3
VS
43371
43372#undef $ac_func
43373
a848cd7e
SC
43374/* Override any gcc2 internal prototype to avoid an error. */
43375#ifdef __cplusplus
43376extern "C"
43377{
43378#endif
43379/* We use char because int might match the return type of a gcc2
43380 builtin and then its argument prototype would still apply. */
43381char $ac_func ();
43382/* The GNU C library defines this for functions which it implements
43383 to always fail with ENOSYS. Some functions are actually named
43384 something starting with __ and the normal name is an alias. */
43385#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43386choke me
43387#else
43388char (*f) () = $ac_func;
43389#endif
43390#ifdef __cplusplus
43391}
43392#endif
43393
43394int
43395main ()
43396{
43397return f != $ac_func;
43398 ;
43399 return 0;
43400}
43401_ACEOF
43402rm -f conftest.$ac_objext conftest$ac_exeext
43403if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 43404 (eval $ac_link) 2>conftest.er1
a848cd7e 43405 ac_status=$?
ac1cb8d3
VS
43406 grep -v '^ *+' conftest.er1 >conftest.err
43407 rm -f conftest.er1
43408 cat conftest.err >&5
a848cd7e
SC
43409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43410 (exit $ac_status); } &&
3ea50042 43411 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43413 (eval $ac_try) 2>&5
43414 ac_status=$?
43415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43416 (exit $ac_status); }; } &&
43417 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
43418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43419 (eval $ac_try) 2>&5
43420 ac_status=$?
43421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43422 (exit $ac_status); }; }; then
43423 eval "$as_ac_var=yes"
43424else
43425 echo "$as_me: failed program was:" >&5
43426sed 's/^/| /' conftest.$ac_ext >&5
43427
43428eval "$as_ac_var=no"
43429fi
ac1cb8d3
VS
43430rm -f conftest.err conftest.$ac_objext \
43431 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
43432fi
43433echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43434echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43435if test `eval echo '${'$as_ac_var'}'` = yes; then
43436 cat >>confdefs.h <<_ACEOF
43437#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43438_ACEOF
43439
43440fi
43441done
43442
43443
43444 if test "$ac_cv_func_localtime" = "yes"; then
43445 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
43446echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
43447if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
43448 echo $ECHO_N "(cached) $ECHO_C" >&6
43449else
43450
43451 cat >conftest.$ac_ext <<_ACEOF
43452/* confdefs.h. */
43453_ACEOF
43454cat confdefs.h >>conftest.$ac_ext
43455cat >>conftest.$ac_ext <<_ACEOF
43456/* end confdefs.h. */
43457
43458 #include <time.h>
43459
43460int
43461main ()
43462{
43463
43464 struct tm tm;
43465 tm.tm_gmtoff++;
43466
43467 ;
43468 return 0;
43469}
43470_ACEOF
43471rm -f conftest.$ac_objext
43472if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43473 (eval $ac_compile) 2>conftest.er1
a848cd7e 43474 ac_status=$?
ac1cb8d3
VS
43475 grep -v '^ *+' conftest.er1 >conftest.err
43476 rm -f conftest.er1
43477 cat conftest.err >&5
a848cd7e
SC
43478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43479 (exit $ac_status); } &&
3ea50042 43480 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43482 (eval $ac_try) 2>&5
43483 ac_status=$?
43484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43485 (exit $ac_status); }; } &&
43486 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43488 (eval $ac_try) 2>&5
43489 ac_status=$?
43490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43491 (exit $ac_status); }; }; then
43492
43493 wx_cv_struct_tm_has_gmtoff=yes
43494
43495else
43496 echo "$as_me: failed program was:" >&5
43497sed 's/^/| /' conftest.$ac_ext >&5
43498
43499wx_cv_struct_tm_has_gmtoff=no
43500
43501fi
ac1cb8d3 43502rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
43503
43504fi
43505echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
43506echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
43507 fi
43508
43509 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
43510 cat >>confdefs.h <<\_ACEOF
43511#define WX_GMTOFF_IN_TM 1
43512_ACEOF
43513
43514 fi
43515
43516
43517
43518for ac_func in gettimeofday ftime
43519do
43520as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43521echo "$as_me:$LINENO: checking for $ac_func" >&5
43522echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43523if eval "test \"\${$as_ac_var+set}\" = set"; then
43524 echo $ECHO_N "(cached) $ECHO_C" >&6
43525else
43526 cat >conftest.$ac_ext <<_ACEOF
43527/* confdefs.h. */
43528_ACEOF
43529cat confdefs.h >>conftest.$ac_ext
43530cat >>conftest.$ac_ext <<_ACEOF
43531/* end confdefs.h. */
ac1cb8d3
VS
43532/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43533 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43534#define $ac_func innocuous_$ac_func
43535
a848cd7e
SC
43536/* System header to define __stub macros and hopefully few prototypes,
43537 which can conflict with char $ac_func (); below.
43538 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43539 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 43540
a848cd7e
SC
43541#ifdef __STDC__
43542# include <limits.h>
43543#else
43544# include <assert.h>
43545#endif
ac1cb8d3
VS
43546
43547#undef $ac_func
43548
a848cd7e
SC
43549/* Override any gcc2 internal prototype to avoid an error. */
43550#ifdef __cplusplus
43551extern "C"
43552{
43553#endif
43554/* We use char because int might match the return type of a gcc2
43555 builtin and then its argument prototype would still apply. */
43556char $ac_func ();
43557/* The GNU C library defines this for functions which it implements
43558 to always fail with ENOSYS. Some functions are actually named
43559 something starting with __ and the normal name is an alias. */
43560#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43561choke me
43562#else
43563char (*f) () = $ac_func;
43564#endif
43565#ifdef __cplusplus
43566}
43567#endif
43568
43569int
43570main ()
43571{
43572return f != $ac_func;
43573 ;
43574 return 0;
43575}
43576_ACEOF
43577rm -f conftest.$ac_objext conftest$ac_exeext
43578if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 43579 (eval $ac_link) 2>conftest.er1
a848cd7e 43580 ac_status=$?
ac1cb8d3
VS
43581 grep -v '^ *+' conftest.er1 >conftest.err
43582 rm -f conftest.er1
43583 cat conftest.err >&5
a848cd7e
SC
43584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43585 (exit $ac_status); } &&
3ea50042 43586 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43588 (eval $ac_try) 2>&5
43589 ac_status=$?
43590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43591 (exit $ac_status); }; } &&
43592 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
43593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43594 (eval $ac_try) 2>&5
43595 ac_status=$?
43596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43597 (exit $ac_status); }; }; then
43598 eval "$as_ac_var=yes"
43599else
43600 echo "$as_me: failed program was:" >&5
43601sed 's/^/| /' conftest.$ac_ext >&5
43602
43603eval "$as_ac_var=no"
43604fi
ac1cb8d3
VS
43605rm -f conftest.err conftest.$ac_objext \
43606 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
43607fi
43608echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43609echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43610if test `eval echo '${'$as_ac_var'}'` = yes; then
43611 cat >>confdefs.h <<_ACEOF
43612#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43613_ACEOF
43614 break
43615fi
43616done
43617
43618
43619 if test "$ac_cv_func_gettimeofday" = "yes"; then
43620 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
43621echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
43622if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
43623 echo $ECHO_N "(cached) $ECHO_C" >&6
43624else
43625
5d7b7554 43626 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
43627/* confdefs.h. */
43628_ACEOF
43629cat confdefs.h >>conftest.$ac_ext
43630cat >>conftest.$ac_ext <<_ACEOF
43631/* end confdefs.h. */
43632
43633 #include <sys/time.h>
43634 #include <unistd.h>
43635
43636int
43637main ()
43638{
43639
43640 struct timeval tv;
43641 gettimeofday(&tv, NULL);
43642
43643 ;
43644 return 0;
43645}
43646_ACEOF
43647rm -f conftest.$ac_objext
43648if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43649 (eval $ac_compile) 2>conftest.er1
a848cd7e 43650 ac_status=$?
ac1cb8d3
VS
43651 grep -v '^ *+' conftest.er1 >conftest.err
43652 rm -f conftest.er1
43653 cat conftest.err >&5
a848cd7e
SC
43654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43655 (exit $ac_status); } &&
3ea50042 43656 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43658 (eval $ac_try) 2>&5
43659 ac_status=$?
43660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43661 (exit $ac_status); }; } &&
43662 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43664 (eval $ac_try) 2>&5
43665 ac_status=$?
43666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43667 (exit $ac_status); }; }; then
43668 wx_cv_func_gettimeofday_has_2_args=yes
43669else
43670 echo "$as_me: failed program was:" >&5
43671sed 's/^/| /' conftest.$ac_ext >&5
43672
43673cat >conftest.$ac_ext <<_ACEOF
43674/* confdefs.h. */
43675_ACEOF
43676cat confdefs.h >>conftest.$ac_ext
43677cat >>conftest.$ac_ext <<_ACEOF
43678/* end confdefs.h. */
43679
43680 #include <sys/time.h>
43681 #include <unistd.h>
43682
43683int
43684main ()
43685{
43686
43687 struct timeval tv;
43688 gettimeofday(&tv);
43689
43690 ;
43691 return 0;
43692}
43693_ACEOF
43694rm -f conftest.$ac_objext
43695if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43696 (eval $ac_compile) 2>conftest.er1
a848cd7e 43697 ac_status=$?
ac1cb8d3
VS
43698 grep -v '^ *+' conftest.er1 >conftest.err
43699 rm -f conftest.er1
43700 cat conftest.err >&5
a848cd7e
SC
43701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43702 (exit $ac_status); } &&
3ea50042 43703 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43705 (eval $ac_try) 2>&5
43706 ac_status=$?
43707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43708 (exit $ac_status); }; } &&
43709 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43711 (eval $ac_try) 2>&5
43712 ac_status=$?
43713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43714 (exit $ac_status); }; }; then
43715 wx_cv_func_gettimeofday_has_2_args=no
43716else
43717 echo "$as_me: failed program was:" >&5
43718sed 's/^/| /' conftest.$ac_ext >&5
43719
43720
43721 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
43722echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
43723 wx_cv_func_gettimeofday_has_2_args=unknown
43724
43725
43726fi
ac1cb8d3 43727rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
43728
43729fi
ac1cb8d3 43730rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
43731
43732fi
43733echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
43734echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
43735
43736 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
43737 cat >>confdefs.h <<\_ACEOF
43738#define WX_GETTIMEOFDAY_NO_TZ 1
43739_ACEOF
43740
43741 fi
43742 fi
43743
43744 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
43745fi
43746
43747
43748if test "$wxUSE_SOCKETS" = "yes"; then
43749 if test "$wxUSE_MGL" = "1"; then
43750 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
43751echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
43752 wxUSE_SOCKETS="no"
43753 fi
43754fi
43755
43756if test "$wxUSE_SOCKETS" = "yes"; then
43757 if test "$TOOLKIT" != "MSW"; then
43758 echo "$as_me:$LINENO: checking for socket" >&5
43759echo $ECHO_N "checking for socket... $ECHO_C" >&6
43760if test "${ac_cv_func_socket+set}" = set; then
43761 echo $ECHO_N "(cached) $ECHO_C" >&6
43762else
43763 cat >conftest.$ac_ext <<_ACEOF
43764/* confdefs.h. */
43765_ACEOF
43766cat confdefs.h >>conftest.$ac_ext
43767cat >>conftest.$ac_ext <<_ACEOF
43768/* end confdefs.h. */
ac1cb8d3
VS
43769/* Define socket to an innocuous variant, in case <limits.h> declares socket.
43770 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43771#define socket innocuous_socket
43772
a848cd7e
SC
43773/* System header to define __stub macros and hopefully few prototypes,
43774 which can conflict with char socket (); below.
43775 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43776 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 43777
a848cd7e
SC
43778#ifdef __STDC__
43779# include <limits.h>
43780#else
43781# include <assert.h>
43782#endif
ac1cb8d3
VS
43783
43784#undef socket
43785
a848cd7e
SC
43786/* Override any gcc2 internal prototype to avoid an error. */
43787#ifdef __cplusplus
43788extern "C"
43789{
43790#endif
43791/* We use char because int might match the return type of a gcc2
43792 builtin and then its argument prototype would still apply. */
43793char socket ();
43794/* The GNU C library defines this for functions which it implements
43795 to always fail with ENOSYS. Some functions are actually named
43796 something starting with __ and the normal name is an alias. */
43797#if defined (__stub_socket) || defined (__stub___socket)
43798choke me
43799#else
43800char (*f) () = socket;
43801#endif
43802#ifdef __cplusplus
43803}
43804#endif
43805
43806int
43807main ()
43808{
43809return f != socket;
43810 ;
43811 return 0;
43812}
43813_ACEOF
43814rm -f conftest.$ac_objext conftest$ac_exeext
43815if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 43816 (eval $ac_link) 2>conftest.er1
a848cd7e 43817 ac_status=$?
ac1cb8d3
VS
43818 grep -v '^ *+' conftest.er1 >conftest.err
43819 rm -f conftest.er1
43820 cat conftest.err >&5
a848cd7e
SC
43821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43822 (exit $ac_status); } &&
3ea50042 43823 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43825 (eval $ac_try) 2>&5
43826 ac_status=$?
43827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43828 (exit $ac_status); }; } &&
43829 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
43830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43831 (eval $ac_try) 2>&5
43832 ac_status=$?
43833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43834 (exit $ac_status); }; }; then
43835 ac_cv_func_socket=yes
43836else
43837 echo "$as_me: failed program was:" >&5
43838sed 's/^/| /' conftest.$ac_ext >&5
43839
43840ac_cv_func_socket=no
43841fi
ac1cb8d3
VS
43842rm -f conftest.err conftest.$ac_objext \
43843 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
43844fi
43845echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
43846echo "${ECHO_T}$ac_cv_func_socket" >&6
43847if test $ac_cv_func_socket = yes; then
43848 :
43849else
43850
43851 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
43852echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
43853if test "${ac_cv_lib_socket_socket+set}" = set; then
43854 echo $ECHO_N "(cached) $ECHO_C" >&6
43855else
43856 ac_check_lib_save_LIBS=$LIBS
43857LIBS="-lsocket $LIBS"
43858cat >conftest.$ac_ext <<_ACEOF
43859/* confdefs.h. */
43860_ACEOF
43861cat confdefs.h >>conftest.$ac_ext
43862cat >>conftest.$ac_ext <<_ACEOF
43863/* end confdefs.h. */
43864
43865/* Override any gcc2 internal prototype to avoid an error. */
43866#ifdef __cplusplus
43867extern "C"
43868#endif
43869/* We use char because int might match the return type of a gcc2
43870 builtin and then its argument prototype would still apply. */
43871char socket ();
43872int
43873main ()
43874{
43875socket ();
43876 ;
43877 return 0;
43878}
43879_ACEOF
43880rm -f conftest.$ac_objext conftest$ac_exeext
43881if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 43882 (eval $ac_link) 2>conftest.er1
a848cd7e 43883 ac_status=$?
ac1cb8d3
VS
43884 grep -v '^ *+' conftest.er1 >conftest.err
43885 rm -f conftest.er1
43886 cat conftest.err >&5
a848cd7e
SC
43887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43888 (exit $ac_status); } &&
3ea50042 43889 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43891 (eval $ac_try) 2>&5
43892 ac_status=$?
43893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43894 (exit $ac_status); }; } &&
43895 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
43896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43897 (eval $ac_try) 2>&5
43898 ac_status=$?
43899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43900 (exit $ac_status); }; }; then
43901 ac_cv_lib_socket_socket=yes
43902else
43903 echo "$as_me: failed program was:" >&5
43904sed 's/^/| /' conftest.$ac_ext >&5
43905
43906ac_cv_lib_socket_socket=no
43907fi
ac1cb8d3
VS
43908rm -f conftest.err conftest.$ac_objext \
43909 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
43910LIBS=$ac_check_lib_save_LIBS
43911fi
43912echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
43913echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
43914if test $ac_cv_lib_socket_socket = yes; then
43915 if test "$INET_LINK" != " -lsocket"; then
43916 INET_LINK="$INET_LINK -lsocket"
43917 fi
43918else
43919
43920 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
43921echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
43922 wxUSE_SOCKETS=no
43923
43924
43925fi
43926
43927
43928
43929fi
43930
43931 fi
43932fi
43933
43934if test "$wxUSE_SOCKETS" = "yes" ; then
43935 if test "$TOOLKIT" != "MSW"; then
5d7b7554 43936 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
a848cd7e
SC
43937echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
43938if test "${wx_cv_type_getsockname3+set}" = set; then
43939 echo $ECHO_N "(cached) $ECHO_C" >&6
43940else
43941
43942 cat >conftest.$ac_ext <<_ACEOF
43943/* confdefs.h. */
43944_ACEOF
43945cat confdefs.h >>conftest.$ac_ext
43946cat >>conftest.$ac_ext <<_ACEOF
43947/* end confdefs.h. */
43948
43949 #include <sys/types.h>
43950 #include <sys/socket.h>
43951
43952int
43953main ()
43954{
43955
43956 socklen_t len;
43957 getsockname(0, 0, &len);
43958
43959 ;
43960 return 0;
43961}
43962_ACEOF
43963rm -f conftest.$ac_objext
43964if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43965 (eval $ac_compile) 2>conftest.er1
a848cd7e 43966 ac_status=$?
ac1cb8d3
VS
43967 grep -v '^ *+' conftest.er1 >conftest.err
43968 rm -f conftest.er1
43969 cat conftest.err >&5
a848cd7e
SC
43970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43971 (exit $ac_status); } &&
3ea50042 43972 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43974 (eval $ac_try) 2>&5
43975 ac_status=$?
43976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43977 (exit $ac_status); }; } &&
43978 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43980 (eval $ac_try) 2>&5
43981 ac_status=$?
43982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43983 (exit $ac_status); }; }; then
43984 wx_cv_type_getsockname3=socklen_t
43985else
43986 echo "$as_me: failed program was:" >&5
43987sed 's/^/| /' conftest.$ac_ext >&5
43988
43989
6459a506 43990 CXXFLAGS_OLD="$CXXFLAGS"
a848cd7e 43991 if test "$GCC" = yes ; then
c92ad099 43992 CXXFLAGS="-Werror $CXXFLAGS"
a848cd7e
SC
43993 fi
43994
43995 cat >conftest.$ac_ext <<_ACEOF
43996/* confdefs.h. */
43997_ACEOF
43998cat confdefs.h >>conftest.$ac_ext
43999cat >>conftest.$ac_ext <<_ACEOF
44000/* end confdefs.h. */
44001
44002 #include <sys/types.h>
44003 #include <sys/socket.h>
44004
44005int
44006main ()
44007{
44008
44009 size_t len;
44010 getsockname(0, 0, &len);
44011
44012 ;
44013 return 0;
44014}
44015_ACEOF
44016rm -f conftest.$ac_objext
44017if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 44018 (eval $ac_compile) 2>conftest.er1
a848cd7e 44019 ac_status=$?
ac1cb8d3
VS
44020 grep -v '^ *+' conftest.er1 >conftest.err
44021 rm -f conftest.er1
44022 cat conftest.err >&5
a848cd7e
SC
44023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44024 (exit $ac_status); } &&
3ea50042 44025 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
44026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44027 (eval $ac_try) 2>&5
44028 ac_status=$?
44029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44030 (exit $ac_status); }; } &&
44031 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
44032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44033 (eval $ac_try) 2>&5
44034 ac_status=$?
44035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44036 (exit $ac_status); }; }; then
44037 wx_cv_type_getsockname3=size_t
44038else
44039 echo "$as_me: failed program was:" >&5
44040sed 's/^/| /' conftest.$ac_ext >&5
44041
44042cat >conftest.$ac_ext <<_ACEOF
44043/* confdefs.h. */
44044_ACEOF
44045cat confdefs.h >>conftest.$ac_ext
44046cat >>conftest.$ac_ext <<_ACEOF
44047/* end confdefs.h. */
44048
44049 #include <sys/types.h>
44050 #include <sys/socket.h>
44051
44052int
44053main ()
44054{
44055
44056 int len;
44057 getsockname(0, 0, &len);
44058
44059 ;
44060 return 0;
44061}
44062_ACEOF
44063rm -f conftest.$ac_objext
44064if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 44065 (eval $ac_compile) 2>conftest.er1
a848cd7e 44066 ac_status=$?
ac1cb8d3
VS
44067 grep -v '^ *+' conftest.er1 >conftest.err
44068 rm -f conftest.er1
44069 cat conftest.err >&5
a848cd7e
SC
44070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44071 (exit $ac_status); } &&
3ea50042 44072 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
44073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44074 (eval $ac_try) 2>&5
44075 ac_status=$?
44076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44077 (exit $ac_status); }; } &&
44078 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
44079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44080 (eval $ac_try) 2>&5
44081 ac_status=$?
44082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44083 (exit $ac_status); }; }; then
44084 wx_cv_type_getsockname3=int
44085else
44086 echo "$as_me: failed program was:" >&5
44087sed 's/^/| /' conftest.$ac_ext >&5
44088
44089wx_cv_type_getsockname3=unknown
44090
44091fi
ac1cb8d3 44092rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
44093
44094fi
ac1cb8d3 44095rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 44096
6459a506 44097 CXXFLAGS="$CXXFLAGS_OLD"
a848cd7e
SC
44098
44099
44100fi
ac1cb8d3 44101rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
44102
44103fi
44104echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
44105echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
44106
44107 if test "$wx_cv_type_getsockname3" = "unknown"; then
44108 wxUSE_SOCKETS=no
44109 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
44110echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
44111 else
44112 cat >>confdefs.h <<_ACEOF
9e03e02d 44113#define WX_SOCKLEN_T $wx_cv_type_getsockname3
5b674b9d
DE
44114_ACEOF
44115
44116 fi
44117 echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5
44118echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6
44119if test "${wx_cv_type_getsockopt5+set}" = set; then
44120 echo $ECHO_N "(cached) $ECHO_C" >&6
44121else
44122
44123 cat >conftest.$ac_ext <<_ACEOF
44124/* confdefs.h. */
44125_ACEOF
44126cat confdefs.h >>conftest.$ac_ext
44127cat >>conftest.$ac_ext <<_ACEOF
44128/* end confdefs.h. */
44129
44130 #include <sys/types.h>
44131 #include <sys/socket.h>
44132
44133int
44134main ()
44135{
44136
44137 socklen_t len;
44138 getsockopt(0, 0, 0, 0, &len);
44139
44140 ;
44141 return 0;
44142}
44143_ACEOF
44144rm -f conftest.$ac_objext
44145if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44146 (eval $ac_compile) 2>conftest.er1
44147 ac_status=$?
44148 grep -v '^ *+' conftest.er1 >conftest.err
44149 rm -f conftest.er1
44150 cat conftest.err >&5
44151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44152 (exit $ac_status); } &&
3ea50042 44153 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
44154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44155 (eval $ac_try) 2>&5
44156 ac_status=$?
44157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44158 (exit $ac_status); }; } &&
44159 { ac_try='test -s conftest.$ac_objext'
44160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44161 (eval $ac_try) 2>&5
44162 ac_status=$?
44163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44164 (exit $ac_status); }; }; then
44165 wx_cv_type_getsockopt5=socklen_t
44166else
44167 echo "$as_me: failed program was:" >&5
44168sed 's/^/| /' conftest.$ac_ext >&5
44169
44170
6459a506 44171 CXXFLAGS_OLD="$CXXFLAGS"
5b674b9d 44172 if test "$GCC" = yes ; then
c92ad099 44173 CXXFLAGS="-Werror $CXXFLAGS"
5b674b9d
DE
44174 fi
44175
44176 cat >conftest.$ac_ext <<_ACEOF
44177/* confdefs.h. */
44178_ACEOF
44179cat confdefs.h >>conftest.$ac_ext
44180cat >>conftest.$ac_ext <<_ACEOF
44181/* end confdefs.h. */
44182
44183 #include <sys/types.h>
44184 #include <sys/socket.h>
44185
44186int
44187main ()
44188{
44189
44190 size_t len;
44191 getsockopt(0, 0, 0, 0, &len);
44192
44193 ;
44194 return 0;
44195}
44196_ACEOF
44197rm -f conftest.$ac_objext
44198if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44199 (eval $ac_compile) 2>conftest.er1
44200 ac_status=$?
44201 grep -v '^ *+' conftest.er1 >conftest.err
44202 rm -f conftest.er1
44203 cat conftest.err >&5
44204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44205 (exit $ac_status); } &&
3ea50042 44206 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
44207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44208 (eval $ac_try) 2>&5
44209 ac_status=$?
44210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44211 (exit $ac_status); }; } &&
44212 { ac_try='test -s conftest.$ac_objext'
44213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44214 (eval $ac_try) 2>&5
44215 ac_status=$?
44216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44217 (exit $ac_status); }; }; then
44218 wx_cv_type_getsockopt5=size_t
44219else
44220 echo "$as_me: failed program was:" >&5
44221sed 's/^/| /' conftest.$ac_ext >&5
44222
44223cat >conftest.$ac_ext <<_ACEOF
44224/* confdefs.h. */
44225_ACEOF
44226cat confdefs.h >>conftest.$ac_ext
44227cat >>conftest.$ac_ext <<_ACEOF
44228/* end confdefs.h. */
44229
44230 #include <sys/types.h>
44231 #include <sys/socket.h>
44232
44233int
44234main ()
44235{
44236
44237 int len;
44238 getsockopt(0, 0, 0, 0, &len);
44239
44240 ;
44241 return 0;
44242}
44243_ACEOF
44244rm -f conftest.$ac_objext
44245if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44246 (eval $ac_compile) 2>conftest.er1
44247 ac_status=$?
44248 grep -v '^ *+' conftest.er1 >conftest.err
44249 rm -f conftest.er1
44250 cat conftest.err >&5
44251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44252 (exit $ac_status); } &&
3ea50042 44253 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
44254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44255 (eval $ac_try) 2>&5
44256 ac_status=$?
44257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44258 (exit $ac_status); }; } &&
44259 { ac_try='test -s conftest.$ac_objext'
44260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44261 (eval $ac_try) 2>&5
44262 ac_status=$?
44263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44264 (exit $ac_status); }; }; then
44265 wx_cv_type_getsockopt5=int
44266else
44267 echo "$as_me: failed program was:" >&5
44268sed 's/^/| /' conftest.$ac_ext >&5
44269
44270wx_cv_type_getsockopt5=unknown
44271
44272fi
44273rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44274
44275fi
44276rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44277
6459a506 44278 CXXFLAGS="$CXXFLAGS_OLD"
5b674b9d
DE
44279
44280
44281fi
44282rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44283
44284fi
44285echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5
44286echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6
44287
44288 if test "$wx_cv_type_getsockopt5" = "unknown"; then
44289 wxUSE_SOCKETS=no
44290 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
44291echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
44292 else
44293 cat >>confdefs.h <<_ACEOF
44294#define SOCKOPTLEN_T $wx_cv_type_getsockopt5
a848cd7e
SC
44295_ACEOF
44296
44297 fi
44298 fi
44299fi
44300
44301if test "$wxUSE_SOCKETS" = "yes" ; then
44302 cat >>confdefs.h <<\_ACEOF
44303#define wxUSE_SOCKETS 1
44304_ACEOF
44305
44306 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
44307fi
44308
44309if test "$wxUSE_PROTOCOL" = "yes"; then
44310 if test "$wxUSE_SOCKETS" != "yes"; then
44311 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
44312echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
44313 wxUSE_PROTOCOL=no
44314 fi
44315fi
44316
44317if test "$wxUSE_PROTOCOL" = "yes"; then
44318 cat >>confdefs.h <<\_ACEOF
44319#define wxUSE_PROTOCOL 1
44320_ACEOF
44321
44322
44323 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
44324 cat >>confdefs.h <<\_ACEOF
44325#define wxUSE_PROTOCOL_HTTP 1
44326_ACEOF
44327
44328 fi
44329 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
44330 cat >>confdefs.h <<\_ACEOF
44331#define wxUSE_PROTOCOL_FTP 1
44332_ACEOF
44333
44334 fi
44335 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
44336 cat >>confdefs.h <<\_ACEOF
44337#define wxUSE_PROTOCOL_FILE 1
44338_ACEOF
44339
44340 fi
44341else
44342 if test "$wxUSE_FS_INET" = "yes"; then
44343 { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
44344echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
44345 wxUSE_FS_INET="no"
44346 fi
44347fi
44348
44349if test "$wxUSE_URL" = "yes"; then
44350 if test "$wxUSE_PROTOCOL" != "yes"; then
44351 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
44352echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
44353 wxUSE_URL=no
44354 fi
44355 if test "$wxUSE_URL" = "yes"; then
44356 cat >>confdefs.h <<\_ACEOF
44357#define wxUSE_URL 1
44358_ACEOF
44359
44360 fi
44361fi
44362
ca5c6ac3
VZ
44363if test "$wxUSE_VARIANT" = "yes"; then
44364 cat >>confdefs.h <<\_ACEOF
44365#define wxUSE_VARIANT 1
44366_ACEOF
44367
44368fi
44369
a848cd7e
SC
44370if test "$wxUSE_FS_INET" = "yes"; then
44371 cat >>confdefs.h <<\_ACEOF
44372#define wxUSE_FS_INET 1
44373_ACEOF
44374
44375fi
44376
44377
ee45c548
MW
44378if test "$wxUSE_GUI" = "yes" -a "$wxUSE_JOYSTICK" = "yes"; then
44379 wxUSE_JOYSTICK=no
44380
44381 if test "$TOOLKIT" = "MSW"; then
44382 wxUSE_JOYSTICK=yes
44383
44384 elif test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
44385 if test "$USE_DARWIN" = 1; then
44386 echo "$as_me:$LINENO: checking headers have declarations needed for joystick support" >&5
44387echo $ECHO_N "checking headers have declarations needed for joystick support... $ECHO_C" >&6
ee45c548
MW
44388 cat >conftest.$ac_ext <<_ACEOF
44389/* confdefs.h. */
44390_ACEOF
44391cat confdefs.h >>conftest.$ac_ext
44392cat >>conftest.$ac_ext <<_ACEOF
44393/* end confdefs.h. */
44394 #include <IOKit/hid/IOHIDLib.h>
44395int
44396main ()
44397{
44398 IOHIDQueueInterface *qi = NULL;
44399 IOHIDCallbackFunction cb = NULL;
44400 qi->setEventCallout(NULL, cb, NULL, NULL);
44401 ;
44402 return 0;
44403}
44404_ACEOF
44405rm -f conftest.$ac_objext
44406if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44407 (eval $ac_compile) 2>conftest.er1
44408 ac_status=$?
44409 grep -v '^ *+' conftest.er1 >conftest.err
44410 rm -f conftest.er1
44411 cat conftest.err >&5
44412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44413 (exit $ac_status); } &&
3ea50042 44414 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ee45c548
MW
44415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44416 (eval $ac_try) 2>&5
44417 ac_status=$?
44418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44419 (exit $ac_status); }; } &&
44420 { ac_try='test -s conftest.$ac_objext'
44421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44422 (eval $ac_try) 2>&5
44423 ac_status=$?
44424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44425 (exit $ac_status); }; }; then
44426 wxUSE_JOYSTICK=yes
a848cd7e 44427
ee45c548
MW
44428else
44429 echo "$as_me: failed program was:" >&5
44430sed 's/^/| /' conftest.$ac_ext >&5
44431
44432fi
44433rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ee45c548
MW
44434 echo "$as_me:$LINENO: result: $wxUSE_JOYSTICK" >&5
44435echo "${ECHO_T}$wxUSE_JOYSTICK" >&6
44436 fi
44437
44438 else
a848cd7e
SC
44439
44440for ac_header in linux/joystick.h
44441do
44442as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44443if eval "test \"\${$as_ac_Header+set}\" = set"; then
44444 echo "$as_me:$LINENO: checking for $ac_header" >&5
44445echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44446if eval "test \"\${$as_ac_Header+set}\" = set"; then
44447 echo $ECHO_N "(cached) $ECHO_C" >&6
44448fi
44449echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44450echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44451else
44452 # Is the header compilable?
44453echo "$as_me:$LINENO: checking $ac_header usability" >&5
44454echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
44455cat >conftest.$ac_ext <<_ACEOF
44456/* confdefs.h. */
44457_ACEOF
44458cat confdefs.h >>conftest.$ac_ext
44459cat >>conftest.$ac_ext <<_ACEOF
44460/* end confdefs.h. */
44461$ac_includes_default
44462#include <$ac_header>
44463_ACEOF
44464rm -f conftest.$ac_objext
44465if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 44466 (eval $ac_compile) 2>conftest.er1
a848cd7e 44467 ac_status=$?
ac1cb8d3
VS
44468 grep -v '^ *+' conftest.er1 >conftest.err
44469 rm -f conftest.er1
44470 cat conftest.err >&5
a848cd7e
SC
44471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44472 (exit $ac_status); } &&
3ea50042 44473 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
44474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44475 (eval $ac_try) 2>&5
44476 ac_status=$?
44477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44478 (exit $ac_status); }; } &&
44479 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
44480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44481 (eval $ac_try) 2>&5
44482 ac_status=$?
44483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44484 (exit $ac_status); }; }; then
44485 ac_header_compiler=yes
44486else
44487 echo "$as_me: failed program was:" >&5
44488sed 's/^/| /' conftest.$ac_ext >&5
44489
44490ac_header_compiler=no
44491fi
ac1cb8d3 44492rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
44493echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44494echo "${ECHO_T}$ac_header_compiler" >&6
44495
44496# Is the header present?
44497echo "$as_me:$LINENO: checking $ac_header presence" >&5
44498echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
44499cat >conftest.$ac_ext <<_ACEOF
44500/* confdefs.h. */
44501_ACEOF
44502cat confdefs.h >>conftest.$ac_ext
44503cat >>conftest.$ac_ext <<_ACEOF
44504/* end confdefs.h. */
44505#include <$ac_header>
44506_ACEOF
44507if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
44508 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
44509 ac_status=$?
44510 grep -v '^ *+' conftest.er1 >conftest.err
44511 rm -f conftest.er1
44512 cat conftest.err >&5
44513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44514 (exit $ac_status); } >/dev/null; then
44515 if test -s conftest.err; then
5d7b7554
VZ
44516 ac_cpp_err=$ac_cxx_preproc_warn_flag
44517 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
44518 else
44519 ac_cpp_err=
44520 fi
44521else
44522 ac_cpp_err=yes
44523fi
44524if test -z "$ac_cpp_err"; then
44525 ac_header_preproc=yes
44526else
44527 echo "$as_me: failed program was:" >&5
44528sed 's/^/| /' conftest.$ac_ext >&5
44529
44530 ac_header_preproc=no
44531fi
44532rm -f conftest.err conftest.$ac_ext
44533echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44534echo "${ECHO_T}$ac_header_preproc" >&6
44535
44536# So? What about this header?
5d7b7554 44537case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 44538 yes:no: )
a848cd7e
SC
44539 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44540echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
44541 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
44542echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
44543 ac_header_preproc=yes
a848cd7e 44544 ;;
ac1cb8d3 44545 no:yes:* )
a848cd7e
SC
44546 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44547echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
44548 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
44549echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
44550 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
44551echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
44552 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
44553echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
44554 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44555echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
44556 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
44557echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
44558 (
44559 cat <<\_ASBOX
ac1cb8d3
VS
44560## ----------------------------------------- ##
44561## Report this to wx-dev@lists.wxwidgets.org ##
44562## ----------------------------------------- ##
a848cd7e
SC
44563_ASBOX
44564 ) |
44565 sed "s/^/$as_me: WARNING: /" >&2
44566 ;;
44567esac
44568echo "$as_me:$LINENO: checking for $ac_header" >&5
44569echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44570if eval "test \"\${$as_ac_Header+set}\" = set"; then
44571 echo $ECHO_N "(cached) $ECHO_C" >&6
44572else
ac1cb8d3 44573 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
44574fi
44575echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44576echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44577
44578fi
44579if test `eval echo '${'$as_ac_Header'}'` = yes; then
44580 cat >>confdefs.h <<_ACEOF
44581#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44582_ACEOF
ee45c548 44583 wxUSE_JOYSTICK=yes
a848cd7e
SC
44584fi
44585
44586done
44587
ee45c548 44588 fi
4cb1d3da 44589
ee45c548
MW
44590 if test "$wxUSE_JOYSTICK" = "yes"; then
44591 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
44592#define wxUSE_JOYSTICK 1
44593_ACEOF
44594
ee45c548
MW
44595 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
44596 else
44597 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
44598echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
a848cd7e
SC
44599 fi
44600fi
44601
44602
44603
44604if test "$wxUSE_FONTMAP" = "yes" ; then
44605 cat >>confdefs.h <<\_ACEOF
44606#define wxUSE_FONTMAP 1
44607_ACEOF
44608
44609fi
44610
44611if test "$wxUSE_UNICODE" = "yes" ; then
44612 cat >>confdefs.h <<\_ACEOF
44613#define wxUSE_UNICODE 1
44614_ACEOF
44615
44616
44617 if test "$USE_WIN32" != 1; then
44618 wxUSE_UNICODE_MSLU=no
44619 fi
44620
44621 if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
44622 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
44623echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
44624if test "${ac_cv_lib_unicows_main+set}" = set; then
44625 echo $ECHO_N "(cached) $ECHO_C" >&6
44626else
44627 ac_check_lib_save_LIBS=$LIBS
44628LIBS="-lunicows $LIBS"
44629cat >conftest.$ac_ext <<_ACEOF
44630/* confdefs.h. */
44631_ACEOF
44632cat confdefs.h >>conftest.$ac_ext
44633cat >>conftest.$ac_ext <<_ACEOF
44634/* end confdefs.h. */
44635
44636
44637int
44638main ()
44639{
44640main ();
44641 ;
44642 return 0;
44643}
44644_ACEOF
44645rm -f conftest.$ac_objext conftest$ac_exeext
44646if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 44647 (eval $ac_link) 2>conftest.er1
a848cd7e 44648 ac_status=$?
ac1cb8d3
VS
44649 grep -v '^ *+' conftest.er1 >conftest.err
44650 rm -f conftest.er1
44651 cat conftest.err >&5
a848cd7e
SC
44652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44653 (exit $ac_status); } &&
3ea50042 44654 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
44655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44656 (eval $ac_try) 2>&5
44657 ac_status=$?
44658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44659 (exit $ac_status); }; } &&
44660 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
44661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44662 (eval $ac_try) 2>&5
44663 ac_status=$?
44664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44665 (exit $ac_status); }; }; then
44666 ac_cv_lib_unicows_main=yes
44667else
44668 echo "$as_me: failed program was:" >&5
44669sed 's/^/| /' conftest.$ac_ext >&5
44670
44671ac_cv_lib_unicows_main=no
44672fi
ac1cb8d3
VS
44673rm -f conftest.err conftest.$ac_objext \
44674 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
44675LIBS=$ac_check_lib_save_LIBS
44676fi
44677echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
44678echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
44679if test $ac_cv_lib_unicows_main = yes; then
44680
44681 cat >>confdefs.h <<\_ACEOF
44682#define wxUSE_UNICODE_MSLU 1
44683_ACEOF
44684
44685
44686else
44687
44688 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
44689 Applications will only run on Windows NT/2000/XP!" >&5
44690echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
44691 Applications will only run on Windows NT/2000/XP!" >&2;}
44692 wxUSE_UNICODE_MSLU=no
44693
44694fi
44695
44696 fi
44697fi
44698
44699if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
44700 cat >>confdefs.h <<\_ACEOF
44701#define wxUSE_EXPERIMENTAL_PRINTF 1
44702_ACEOF
44703
44704fi
44705
44706
44707if test "$wxUSE_POSTSCRIPT" = "yes" ; then
44708 cat >>confdefs.h <<\_ACEOF
44709#define wxUSE_POSTSCRIPT 1
44710_ACEOF
44711
44712fi
44713
44714cat >>confdefs.h <<\_ACEOF
44715#define wxUSE_AFM_FOR_POSTSCRIPT 1
44716_ACEOF
44717
44718
44719cat >>confdefs.h <<\_ACEOF
44720#define wxUSE_NORMALIZED_PS_FONTS 1
44721_ACEOF
44722
44723
44724
44725if test "$wxUSE_CONSTRAINTS" = "yes"; then
44726 cat >>confdefs.h <<\_ACEOF
44727#define wxUSE_CONSTRAINTS 1
44728_ACEOF
44729
44730 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
44731fi
44732
8a7b1113
VZ
44733if test "$wxUSE_MDI" = "yes"; then
44734 cat >>confdefs.h <<\_ACEOF
44735#define wxUSE_MDI 1
44736_ACEOF
44737
44738
44739 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
44740 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
44741#define wxUSE_MDI_ARCHITECTURE 1
44742_ACEOF
44743
8a7b1113
VZ
44744 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
44745 fi
a848cd7e
SC
44746fi
44747
44748if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
44749 cat >>confdefs.h <<\_ACEOF
44750#define wxUSE_DOC_VIEW_ARCHITECTURE 1
44751_ACEOF
44752
44753 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
44754 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
44755 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
44756 fi
44757fi
44758
44759if test "$wxUSE_HELP" = "yes"; then
44760 cat >>confdefs.h <<\_ACEOF
44761#define wxUSE_HELP 1
44762_ACEOF
44763
44764 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
44765
44766 if test "$wxUSE_MSW" = 1; then
44767 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
44768 cat >>confdefs.h <<\_ACEOF
44769#define wxUSE_MS_HTML_HELP 1
44770_ACEOF
44771
44772 fi
44773 fi
44774
44775 if test "$wxUSE_WXHTML_HELP" = "yes"; then
44776 if test "$wxUSE_HTML" = "yes"; then
44777 cat >>confdefs.h <<\_ACEOF
44778#define wxUSE_WXHTML_HELP 1
44779_ACEOF
44780
44781 else
44782 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
44783echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
44784 wxUSE_WXHTML_HELP=no
44785 fi
44786 fi
44787fi
44788
44789if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
44790 if test "$wxUSE_CONSTRAINTS" != "yes"; then
44791 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
44792echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
44793 else
44794 cat >>confdefs.h <<\_ACEOF
44795#define wxUSE_PRINTING_ARCHITECTURE 1
44796_ACEOF
44797
44798 fi
44799 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
44800fi
44801
44802if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
44803 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
44804echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
44805 { (exit 1); exit 1; }; }
44806fi
44807
44808
efdf6afe
VZ
44809if test "$wxUSE_METAFILE" = "yes"; then
44810 if test "$wxUSE_MSW" != 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_PM" != 1; then
44811 { echo "$as_me:$LINENO: WARNING: wxMetafile is not available on this system... disabled" >&5
44812echo "$as_me: WARNING: wxMetafile is not available on this system... disabled" >&2;}
44813 wxUSE_METAFILE=no
44814 fi
44815fi
44816
44817
a848cd7e
SC
44818if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
44819 -o "$wxUSE_CLIPBOARD" = "yes" \
44820 -o "$wxUSE_OLE" = "yes" \
44821 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
44822
44823for ac_header in ole2.h
44824do
44825as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44826if eval "test \"\${$as_ac_Header+set}\" = set"; then
44827 echo "$as_me:$LINENO: checking for $ac_header" >&5
44828echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44829if eval "test \"\${$as_ac_Header+set}\" = set"; then
44830 echo $ECHO_N "(cached) $ECHO_C" >&6
44831fi
44832echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44833echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44834else
44835 # Is the header compilable?
44836echo "$as_me:$LINENO: checking $ac_header usability" >&5
44837echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
44838cat >conftest.$ac_ext <<_ACEOF
44839/* confdefs.h. */
44840_ACEOF
44841cat confdefs.h >>conftest.$ac_ext
44842cat >>conftest.$ac_ext <<_ACEOF
44843/* end confdefs.h. */
44844$ac_includes_default
44845#include <$ac_header>
44846_ACEOF
44847rm -f conftest.$ac_objext
44848if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 44849 (eval $ac_compile) 2>conftest.er1
a848cd7e 44850 ac_status=$?
ac1cb8d3
VS
44851 grep -v '^ *+' conftest.er1 >conftest.err
44852 rm -f conftest.er1
44853 cat conftest.err >&5
a848cd7e
SC
44854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44855 (exit $ac_status); } &&
3ea50042 44856 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
44857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44858 (eval $ac_try) 2>&5
44859 ac_status=$?
44860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44861 (exit $ac_status); }; } &&
44862 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
44863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44864 (eval $ac_try) 2>&5
44865 ac_status=$?
44866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44867 (exit $ac_status); }; }; then
44868 ac_header_compiler=yes
44869else
44870 echo "$as_me: failed program was:" >&5
44871sed 's/^/| /' conftest.$ac_ext >&5
44872
44873ac_header_compiler=no
44874fi
ac1cb8d3 44875rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
44876echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44877echo "${ECHO_T}$ac_header_compiler" >&6
44878
44879# Is the header present?
44880echo "$as_me:$LINENO: checking $ac_header presence" >&5
44881echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
44882cat >conftest.$ac_ext <<_ACEOF
44883/* confdefs.h. */
44884_ACEOF
44885cat confdefs.h >>conftest.$ac_ext
44886cat >>conftest.$ac_ext <<_ACEOF
44887/* end confdefs.h. */
44888#include <$ac_header>
44889_ACEOF
44890if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
44891 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
44892 ac_status=$?
44893 grep -v '^ *+' conftest.er1 >conftest.err
44894 rm -f conftest.er1
44895 cat conftest.err >&5
44896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44897 (exit $ac_status); } >/dev/null; then
44898 if test -s conftest.err; then
5d7b7554
VZ
44899 ac_cpp_err=$ac_cxx_preproc_warn_flag
44900 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
44901 else
44902 ac_cpp_err=
44903 fi
44904else
44905 ac_cpp_err=yes
44906fi
44907if test -z "$ac_cpp_err"; then
44908 ac_header_preproc=yes
44909else
44910 echo "$as_me: failed program was:" >&5
44911sed 's/^/| /' conftest.$ac_ext >&5
44912
44913 ac_header_preproc=no
44914fi
44915rm -f conftest.err conftest.$ac_ext
44916echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44917echo "${ECHO_T}$ac_header_preproc" >&6
44918
44919# So? What about this header?
5d7b7554 44920case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 44921 yes:no: )
a848cd7e
SC
44922 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44923echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
44924 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
44925echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
44926 ac_header_preproc=yes
a848cd7e 44927 ;;
ac1cb8d3 44928 no:yes:* )
a848cd7e
SC
44929 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44930echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
44931 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
44932echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
44933 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
44934echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
44935 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
44936echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
44937 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44938echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
44939 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
44940echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
44941 (
44942 cat <<\_ASBOX
ac1cb8d3
VS
44943## ----------------------------------------- ##
44944## Report this to wx-dev@lists.wxwidgets.org ##
44945## ----------------------------------------- ##
a848cd7e
SC
44946_ASBOX
44947 ) |
44948 sed "s/^/$as_me: WARNING: /" >&2
44949 ;;
44950esac
44951echo "$as_me:$LINENO: checking for $ac_header" >&5
44952echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44953if eval "test \"\${$as_ac_Header+set}\" = set"; then
44954 echo $ECHO_N "(cached) $ECHO_C" >&6
44955else
ac1cb8d3 44956 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
44957fi
44958echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44959echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44960
44961fi
44962if test `eval echo '${'$as_ac_Header'}'` = yes; then
44963 cat >>confdefs.h <<_ACEOF
44964#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44965_ACEOF
44966
44967fi
44968
44969done
44970
44971
44972 if test "$ac_cv_header_ole2_h" = "yes" ; then
44973 if test "$GCC" = yes ; then
a848cd7e
SC
44974 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
44975echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
44976 cat >conftest.$ac_ext <<_ACEOF
44977/* confdefs.h. */
44978_ACEOF
44979cat confdefs.h >>conftest.$ac_ext
44980cat >>conftest.$ac_ext <<_ACEOF
44981/* end confdefs.h. */
44982#include <windows.h>
44983 #include <ole2.h>
44984int
44985main ()
44986{
44987
44988 ;
44989 return 0;
44990}
44991_ACEOF
44992rm -f conftest.$ac_objext
44993if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 44994 (eval $ac_compile) 2>conftest.er1
a848cd7e 44995 ac_status=$?
ac1cb8d3
VS
44996 grep -v '^ *+' conftest.er1 >conftest.err
44997 rm -f conftest.er1
44998 cat conftest.err >&5
a848cd7e
SC
44999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45000 (exit $ac_status); } &&
3ea50042 45001 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
45002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45003 (eval $ac_try) 2>&5
45004 ac_status=$?
45005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45006 (exit $ac_status); }; } &&
45007 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
45008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45009 (eval $ac_try) 2>&5
45010 ac_status=$?
45011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45012 (exit $ac_status); }; }; then
45013 echo "$as_me:$LINENO: result: no" >&5
45014echo "${ECHO_T}no" >&6
45015else
45016 echo "$as_me: failed program was:" >&5
45017sed 's/^/| /' conftest.$ac_ext >&5
45018
45019echo "$as_me:$LINENO: result: yes" >&5
45020echo "${ECHO_T}yes" >&6
5ff751d6 45021 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fvtable-thunks"
a848cd7e 45022fi
ac1cb8d3 45023rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
45024 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
45025 if test "$wxUSE_OLE" = "yes" ; then
45026 cat >>confdefs.h <<\_ACEOF
45027#define wxUSE_OLE 1
f43426c1
RD
45028_ACEOF
45029
45030 cat >>confdefs.h <<\_ACEOF
45031#define wxUSE_OLE_AUTOMATION 1
45032_ACEOF
45033
45034 cat >>confdefs.h <<\_ACEOF
45035#define wxUSE_OLE_ACTIVEX 1
a848cd7e
SC
45036_ACEOF
45037
0b78747f 45038 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto"
a848cd7e
SC
45039 fi
45040 fi
45041
45042 if test "$wxUSE_DATAOBJ" = "yes" ; then
45043 cat >>confdefs.h <<\_ACEOF
45044#define wxUSE_DATAOBJ 1
45045_ACEOF
45046
45047 fi
45048 else
45049 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
45050echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
45051
45052 wxUSE_CLIPBOARD=no
45053 wxUSE_DRAG_AND_DROP=no
45054 wxUSE_DATAOBJ=no
45055 wxUSE_OLE=no
45056 fi
45057
45058 if test "$wxUSE_METAFILE" = "yes"; then
45059 cat >>confdefs.h <<\_ACEOF
45060#define wxUSE_METAFILE 1
45061_ACEOF
45062
45063
45064 cat >>confdefs.h <<\_ACEOF
45065#define wxUSE_ENH_METAFILE 1
45066_ACEOF
45067
45068 fi
45069fi
45070
45071if test "$wxUSE_IPC" = "yes"; then
0b78747f 45072 if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then
77ffb593
JS
45073 { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
45074echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
0b78747f 45075 wxUSE_IPC=no
a848cd7e
SC
45076 fi
45077
0b78747f
MW
45078 if test "$wxUSE_IPC" = "yes"; then
45079 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
45080#define wxUSE_IPC 1
45081_ACEOF
45082
0b78747f
MW
45083 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
45084 fi
a848cd7e
SC
45085fi
45086
eb730a0c 45087if test "$wxUSE_DATAOBJ" = "yes"; then
2113bc77
MW
45088 if test "$wxUSE_MGL" = 1; then
45089 { echo "$as_me:$LINENO: WARNING: wxDataObject not yet supported under MGL... disabled" >&5
45090echo "$as_me: WARNING: wxDataObject not yet supported under MGL... disabled" >&2;}
45091 wxUSE_DATAOBJ=no
45092 else
45093 cat >>confdefs.h <<\_ACEOF
eb730a0c
JS
45094#define wxUSE_DATAOBJ 1
45095_ACEOF
45096
2113bc77 45097 fi
eb730a0c
JS
45098else
45099 { echo "$as_me:$LINENO: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&5
45100echo "$as_me: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&2;}
45101 wxUSE_CLIPBOARD=no
45102 wxUSE_DRAG_AND_DROP=no
45103fi
45104
a848cd7e
SC
45105if test "$wxUSE_CLIPBOARD" = "yes"; then
45106 if test "$wxUSE_MGL" = 1; then
45107 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
45108echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
45109 wxUSE_CLIPBOARD=no
45110 fi
45111
45112 if test "$wxUSE_CLIPBOARD" = "yes"; then
45113 cat >>confdefs.h <<\_ACEOF
45114#define wxUSE_CLIPBOARD 1
45115_ACEOF
45116
a848cd7e
SC
45117 fi
45118fi
45119
45120if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
45121 if test "$wxUSE_GTK" = 1; then
45122 if test "$WXGTK12" != 1; then
45123 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
45124echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
45125 wxUSE_DRAG_AND_DROP=no
45126 fi
45127 fi
45128
45129 if test "$wxUSE_MOTIF" = 1; then
45130 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
45131echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
45132 wxUSE_DRAG_AND_DROP=no
45133 fi
45134
45135 if test "$wxUSE_X11" = 1; then
45136 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
45137echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
45138 wxUSE_DRAG_AND_DROP=no
45139 fi
45140
45141 if test "$wxUSE_MGL" = 1; then
45142 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
45143echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
45144 wxUSE_DRAG_AND_DROP=no
45145 fi
45146
45147 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
45148 cat >>confdefs.h <<\_ACEOF
45149#define wxUSE_DRAG_AND_DROP 1
45150_ACEOF
45151
45152 fi
45153
45154fi
45155
45156if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
45157 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
45158fi
45159
45160if test "$wxUSE_SPLINES" = "yes" ; then
45161 cat >>confdefs.h <<\_ACEOF
45162#define wxUSE_SPLINES 1
45163_ACEOF
45164
45165fi
45166
fbe2ca43
SN
45167if test "$wxUSE_MOUSEWHEEL" = "yes" ; then
45168 cat >>confdefs.h <<\_ACEOF
45169#define wxUSE_MOUSEWHEEL 1
45170_ACEOF
45171
45172fi
45173
a848cd7e
SC
45174
45175USES_CONTROLS=0
45176if test "$wxUSE_CONTROLS" = "yes"; then
45177 USES_CONTROLS=1
45178fi
45179
45180if test "$wxUSE_ACCEL" = "yes"; then
45181 cat >>confdefs.h <<\_ACEOF
45182#define wxUSE_ACCEL 1
45183_ACEOF
45184
45185 USES_CONTROLS=1
45186fi
45187
3ea50042
VZ
45188if test "$wxUSE_ACCEL" = "yes"; then
45189 cat >>confdefs.h <<\_ACEOF
45190#define wxUSE_ANIMATIONCTRL 1
45191_ACEOF
45192
45193 USES_CONTROLS=1
45194 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS animate"
45195fi
45196
a848cd7e
SC
45197if test "$wxUSE_BUTTON" = "yes"; then
45198 cat >>confdefs.h <<\_ACEOF
45199#define wxUSE_BUTTON 1
45200_ACEOF
45201
45202 USES_CONTROLS=1
45203fi
45204
45205if test "$wxUSE_BMPBUTTON" = "yes"; then
45206 cat >>confdefs.h <<\_ACEOF
45207#define wxUSE_BMPBUTTON 1
45208_ACEOF
45209
45210 USES_CONTROLS=1
45211fi
45212
45213if test "$wxUSE_CALCTRL" = "yes"; then
45214 cat >>confdefs.h <<\_ACEOF
45215#define wxUSE_CALENDARCTRL 1
45216_ACEOF
45217
45218 USES_CONTROLS=1
45219 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
45220fi
45221
45222if test "$wxUSE_CARET" = "yes"; then
45223 cat >>confdefs.h <<\_ACEOF
45224#define wxUSE_CARET 1
45225_ACEOF
45226
45227 USES_CONTROLS=1
45228 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
45229fi
45230
45231if test "$wxUSE_COMBOBOX" = "yes"; then
45232 cat >>confdefs.h <<\_ACEOF
45233#define wxUSE_COMBOBOX 1
45234_ACEOF
45235
45236 USES_CONTROLS=1
45237fi
45238
a57d600f 45239if test "$wxUSE_COMBOCTRL" = "yes"; then
642bcba9 45240 cat >>confdefs.h <<\_ACEOF
a57d600f 45241#define wxUSE_COMBOCTRL 1
642bcba9
VZ
45242_ACEOF
45243
45244 USES_CONTROLS=1
45245fi
45246
a848cd7e
SC
45247if test "$wxUSE_CHOICE" = "yes"; then
45248 cat >>confdefs.h <<\_ACEOF
45249#define wxUSE_CHOICE 1
45250_ACEOF
45251
45252 USES_CONTROLS=1
45253fi
45254
92bbdbcd
WS
45255if test "$wxUSE_CHOICEBOOK" = "yes"; then
45256 cat >>confdefs.h <<\_ACEOF
45257#define wxUSE_CHOICEBOOK 1
45258_ACEOF
45259
45260 USES_CONTROLS=1
45261fi
45262
a848cd7e
SC
45263if test "$wxUSE_CHECKBOX" = "yes"; then
45264 cat >>confdefs.h <<\_ACEOF
45265#define wxUSE_CHECKBOX 1
45266_ACEOF
45267
45268 USES_CONTROLS=1
45269fi
45270
45271if test "$wxUSE_CHECKLST" = "yes"; then
45272 cat >>confdefs.h <<\_ACEOF
45273#define wxUSE_CHECKLISTBOX 1
45274_ACEOF
45275
45276 USES_CONTROLS=1
45277 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
45278fi
45279
e9263684
VZ
45280if test "$wxUSE_COLOURPICKERCTRL" = "yes"; then
45281 cat >>confdefs.h <<\_ACEOF
45282#define wxUSE_COLOURPICKERCTRL 1
45283_ACEOF
45284
45285 USES_CONTROLS=1
45286fi
45287
da98e9be
VZ
45288if test "$wxUSE_DATEPICKCTRL" = "yes"; then
45289 cat >>confdefs.h <<\_ACEOF
45290#define wxUSE_DATEPICKCTRL 1
45291_ACEOF
45292
45293 USES_CONTROLS=1
45294fi
45295
e9263684
VZ
45296if test "$wxUSE_DIRPICKERCTRL" = "yes"; then
45297 cat >>confdefs.h <<\_ACEOF
45298#define wxUSE_DIRPICKERCTRL 1
45299_ACEOF
45300
45301 USES_CONTROLS=1
45302fi
45303
45304if test "$wxUSE_FILEPICKERCTRL" = "yes"; then
45305 cat >>confdefs.h <<\_ACEOF
45306#define wxUSE_FILEPICKERCTRL 1
45307_ACEOF
45308
45309 USES_CONTROLS=1
45310fi
45311
45312if test "$wxUSE_FONTPICKERCTRL" = "yes"; then
45313 cat >>confdefs.h <<\_ACEOF
45314#define wxUSE_FONTPICKERCTRL 1
45315_ACEOF
45316
45317 USES_CONTROLS=1
45318fi
45319
a848cd7e
SC
45320if test "$wxUSE_DISPLAY" = "yes"; then
45321 cat >>confdefs.h <<\_ACEOF
45322#define wxUSE_DISPLAY 1
45323_ACEOF
45324
0b78747f 45325 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display multimon"
a848cd7e
SC
45326fi
45327
45328if test "$wxUSE_GAUGE" = "yes"; then
45329 cat >>confdefs.h <<\_ACEOF
45330#define wxUSE_GAUGE 1
45331_ACEOF
45332
45333 USES_CONTROLS=1
45334fi
45335
45336if test "$wxUSE_GRID" = "yes"; then
45337 cat >>confdefs.h <<\_ACEOF
45338#define wxUSE_GRID 1
45339_ACEOF
45340
45341 USES_CONTROLS=1
45342 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
45343fi
45344
6954625c
VZ
45345if test "$wxUSE_HYPERLINKCTRL" = "yes"; then
45346 cat >>confdefs.h <<\_ACEOF
45347#define wxUSE_HYPERLINKCTRL 1
45348_ACEOF
45349
45350 USES_CONTROLS=1
45351fi
45352
95a46303
RR
45353if test "$wxUSE_BITMAPCOMBOBOX" = "yes"; then
45354 cat >>confdefs.h <<\_ACEOF
45355#define wxUSE_BITMAPCOMBOBOX 1
45356_ACEOF
45357
45358 USES_CONTROLS=1
45359fi
45360
20e34ecc
RR
45361if test "$wxUSE_DATAVIEWCTRL" = "yes"; then
45362 cat >>confdefs.h <<\_ACEOF
45363#define wxUSE_DATAVIEWCTRL 1
45364_ACEOF
45365
45366 USES_CONTROLS=1
45367 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dataview"
45368fi
45369
a848cd7e
SC
45370if test "$wxUSE_IMAGLIST" = "yes"; then
45371 cat >>confdefs.h <<\_ACEOF
45372#define wxUSE_IMAGLIST 1
45373_ACEOF
45374
45375fi
45376
45377if test "$wxUSE_LISTBOOK" = "yes"; then
45378 cat >>confdefs.h <<\_ACEOF
45379#define wxUSE_LISTBOOK 1
45380_ACEOF
45381
45382 USES_CONTROLS=1
45383fi
45384
45385if test "$wxUSE_LISTBOX" = "yes"; then
45386 cat >>confdefs.h <<\_ACEOF
45387#define wxUSE_LISTBOX 1
45388_ACEOF
45389
45390 USES_CONTROLS=1
0b78747f 45391 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listbox"
a848cd7e
SC
45392fi
45393
45394if test "$wxUSE_LISTCTRL" = "yes"; then
45395 if test "$wxUSE_IMAGLIST" = "yes"; then
45396 cat >>confdefs.h <<\_ACEOF
45397#define wxUSE_LISTCTRL 1
45398_ACEOF
45399
45400 USES_CONTROLS=1
45401 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
45402 else
45403 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
45404echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
45405 fi
45406fi
45407
45408if test "$wxUSE_NOTEBOOK" = "yes"; then
45409 cat >>confdefs.h <<\_ACEOF
45410#define wxUSE_NOTEBOOK 1
45411_ACEOF
45412
45413 USES_CONTROLS=1
45414 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
45415fi
45416
a57d600f 45417if test "$wxUSE_ODCOMBOBOX" = "yes"; then
642bcba9 45418 cat >>confdefs.h <<\_ACEOF
a57d600f 45419#define wxUSE_ODCOMBOBOX 1
642bcba9
VZ
45420_ACEOF
45421
45422 USES_CONTROLS=1
45423 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS combo"
45424fi
45425
a848cd7e
SC
45426
45427if test "$wxUSE_RADIOBOX" = "yes"; then
45428 cat >>confdefs.h <<\_ACEOF
45429#define wxUSE_RADIOBOX 1
45430_ACEOF
45431
45432 USES_CONTROLS=1
45433fi
45434
45435if test "$wxUSE_RADIOBTN" = "yes"; then
45436 cat >>confdefs.h <<\_ACEOF
45437#define wxUSE_RADIOBTN 1
45438_ACEOF
45439
45440 USES_CONTROLS=1
45441fi
45442
45443if test "$wxUSE_SASH" = "yes"; then
45444 cat >>confdefs.h <<\_ACEOF
45445#define wxUSE_SASH 1
45446_ACEOF
45447
45448 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
45449fi
45450
45451if test "$wxUSE_SCROLLBAR" = "yes"; then
45452 cat >>confdefs.h <<\_ACEOF
45453#define wxUSE_SCROLLBAR 1
45454_ACEOF
45455
45456 USES_CONTROLS=1
45457 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
45458fi
45459
45460if test "$wxUSE_SLIDER" = "yes"; then
45461 cat >>confdefs.h <<\_ACEOF
45462#define wxUSE_SLIDER 1
45463_ACEOF
45464
45465 USES_CONTROLS=1
45466fi
45467
45468if test "$wxUSE_SPINBTN" = "yes"; then
45469 cat >>confdefs.h <<\_ACEOF
45470#define wxUSE_SPINBTN 1
45471_ACEOF
45472
45473 USES_CONTROLS=1
45474fi
45475
45476if test "$wxUSE_SPINCTRL" = "yes"; then
45477 cat >>confdefs.h <<\_ACEOF
45478#define wxUSE_SPINCTRL 1
45479_ACEOF
45480
45481 USES_CONTROLS=1
45482fi
45483
45484if test "$wxUSE_SPLITTER" = "yes"; then
45485 cat >>confdefs.h <<\_ACEOF
45486#define wxUSE_SPLITTER 1
45487_ACEOF
45488
45489 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
45490fi
45491
45492if test "$wxUSE_STATBMP" = "yes"; then
45493 cat >>confdefs.h <<\_ACEOF
45494#define wxUSE_STATBMP 1
45495_ACEOF
45496
45497 USES_CONTROLS=1
45498fi
45499
45500if test "$wxUSE_STATBOX" = "yes"; then
45501 cat >>confdefs.h <<\_ACEOF
45502#define wxUSE_STATBOX 1
45503_ACEOF
45504
45505 USES_CONTROLS=1
45506fi
45507
45508if test "$wxUSE_STATTEXT" = "yes"; then
45509 cat >>confdefs.h <<\_ACEOF
45510#define wxUSE_STATTEXT 1
45511_ACEOF
45512
45513 USES_CONTROLS=1
45514fi
45515
45516if test "$wxUSE_STATLINE" = "yes"; then
45517 cat >>confdefs.h <<\_ACEOF
45518#define wxUSE_STATLINE 1
45519_ACEOF
45520
45521 USES_CONTROLS=1
45522fi
45523
45524if test "$wxUSE_STATUSBAR" = "yes"; then
da4486fb
VZ
45525 cat >>confdefs.h <<\_ACEOF
45526#define wxUSE_NATIVE_STATUSBAR 1
45527_ACEOF
45528
a848cd7e
SC
45529 cat >>confdefs.h <<\_ACEOF
45530#define wxUSE_STATUSBAR 1
45531_ACEOF
45532
45533 USES_CONTROLS=1
45534
45535 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
45536fi
45537
f10e38c4 45538if test "$wxUSE_TAB_DIALOG" = "yes"; then
a848cd7e
SC
45539 cat >>confdefs.h <<\_ACEOF
45540#define wxUSE_TAB_DIALOG 1
45541_ACEOF
45542
a848cd7e
SC
45543fi
45544
45545if test "$wxUSE_TEXTCTRL" = "yes"; then
45546 cat >>confdefs.h <<\_ACEOF
45547#define wxUSE_TEXTCTRL 1
45548_ACEOF
45549
45550 USES_CONTROLS=1
45551 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
45552fi
45553
45554if test "$wxUSE_TOGGLEBTN" = "yes"; then
45555 if test "$wxUSE_COCOA" = 1 ; then
45556 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
45557echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
45558 wxUSE_TOGGLEBTN=no
45559 fi
a848cd7e
SC
45560
45561 if test "$wxUSE_TOGGLEBTN" = "yes"; then
45562 cat >>confdefs.h <<\_ACEOF
45563#define wxUSE_TOGGLEBTN 1
45564_ACEOF
45565
45566 USES_CONTROLS=1
45567 fi
45568fi
45569
a848cd7e
SC
45570if test "$wxUSE_TOOLBAR" = "yes"; then
45571 cat >>confdefs.h <<\_ACEOF
45572#define wxUSE_TOOLBAR 1
45573_ACEOF
45574
45575 USES_CONTROLS=1
45576
452b6243
VS
45577 if test "$wxUSE_UNIVERSAL" = "yes"; then
45578 wxUSE_TOOLBAR_NATIVE="no"
45579 else
45580 wxUSE_TOOLBAR_NATIVE="yes"
a848cd7e
SC
45581 cat >>confdefs.h <<\_ACEOF
45582#define wxUSE_TOOLBAR_NATIVE 1
45583_ACEOF
45584
a848cd7e
SC
45585 fi
45586
45587 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
45588fi
45589
45590if test "$wxUSE_TOOLTIPS" = "yes"; then
45591 if test "$wxUSE_MOTIF" = 1; then
45592 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
45593echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
45594 else
45595 if test "$wxUSE_UNIVERSAL" = "yes"; then
45596 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
45597echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
45598 else
45599 cat >>confdefs.h <<\_ACEOF
45600#define wxUSE_TOOLTIPS 1
45601_ACEOF
45602
45603 fi
45604 fi
45605fi
45606
0093c2fc
VZ
45607if test "$wxUSE_TREEBOOK" = "yes"; then
45608 cat >>confdefs.h <<\_ACEOF
45609#define wxUSE_TREEBOOK 1
45610_ACEOF
45611
45612 USES_CONTROLS=1
45613fi
45614
5ec3bc43
JS
45615if test "$wxUSE_TOOLBOOK" = "yes"; then
45616 cat >>confdefs.h <<\_ACEOF
45617#define wxUSE_TOOLBOOK 1
45618_ACEOF
45619
45620 USES_CONTROLS=1
45621fi
45622
a848cd7e
SC
45623if test "$wxUSE_TREECTRL" = "yes"; then
45624 if test "$wxUSE_IMAGLIST" = "yes"; then
45625 cat >>confdefs.h <<\_ACEOF
45626#define wxUSE_TREECTRL 1
45627_ACEOF
45628
45629 USES_CONTROLS=1
45630 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
45631 else
45632 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
45633echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
45634 fi
45635fi
45636
45637if test "$wxUSE_POPUPWIN" = "yes"; then
45638 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
45639 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
45640echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
45641 else
45642 if test "$wxUSE_PM" = 1; then
45643 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
45644echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
45645 else
45646 cat >>confdefs.h <<\_ACEOF
45647#define wxUSE_POPUPWIN 1
45648_ACEOF
45649
0b78747f 45650 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup"
a848cd7e
SC
45651
45652 USES_CONTROLS=1
45653 fi
45654 fi
45655fi
45656
0dcd06dd 45657if test "$wxUSE_DIALUP_MANAGER" = "yes"; then
b843b628
MB
45658 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
45659 { echo "$as_me:$LINENO: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&5
45660echo "$as_me: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&2;}
45661 else
45662 cat >>confdefs.h <<\_ACEOF
45663#define wxUSE_DIALUP_MANAGER 1
45664_ACEOF
45665
45666 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
45667 fi
45668fi
45669
a848cd7e
SC
45670if test "$wxUSE_TIPWINDOW" = "yes"; then
45671 if test "$wxUSE_PM" = 1; then
45672 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
45673echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
45674 else
45675 cat >>confdefs.h <<\_ACEOF
45676#define wxUSE_TIPWINDOW 1
45677_ACEOF
45678
45679 fi
45680fi
45681
45682if test "$USES_CONTROLS" = 1; then
45683 cat >>confdefs.h <<\_ACEOF
45684#define wxUSE_CONTROLS 1
45685_ACEOF
45686
45687fi
45688
45689
45690if test "$wxUSE_ACCESSIBILITY" = "yes"; then
45691 cat >>confdefs.h <<\_ACEOF
45692#define wxUSE_ACCESSIBILITY 1
45693_ACEOF
45694
45695 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
45696fi
45697
38b4a946
VZ
45698if test "$wxUSE_DC_CACHEING" = "yes"; then
45699 cat >>confdefs.h <<\_ACEOF
45700#define wxUSE_DC_CACHEING 1
45701_ACEOF
45702
45703fi
45704
a848cd7e
SC
45705if test "$wxUSE_DRAGIMAGE" = "yes"; then
45706 cat >>confdefs.h <<\_ACEOF
45707#define wxUSE_DRAGIMAGE 1
45708_ACEOF
45709
45710 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
45711fi
45712
45713if test "$wxUSE_EXCEPTIONS" = "yes"; then
07bea8f0
VS
45714 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
45715 { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
45716echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
45717 else
45718 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
45719#define wxUSE_EXCEPTIONS 1
45720_ACEOF
45721
07bea8f0
VS
45722 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
45723 fi
a848cd7e
SC
45724fi
45725
45726USE_HTML=0
45727if test "$wxUSE_HTML" = "yes"; then
45728 cat >>confdefs.h <<\_ACEOF
45729#define wxUSE_HTML 1
45730_ACEOF
45731
45732 USE_HTML=1
45733 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
de59c161
RD
45734 if test "$wxUSE_MAC" = 1; then
45735 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
45736 fi
a848cd7e 45737fi
646b6ec1 45738if test "$wxUSE_WEBKIT" = "yes"; then
1e9e8aba 45739 if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
07bea8f0 45740 old_CPPFLAGS="$CPPFLAGS"
c92ad099 45741 CPPFLAGS="-x objective-c++ $CPPFLAGS"
07bea8f0
VS
45742 echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
45743echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6
45744if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
45745 echo $ECHO_N "(cached) $ECHO_C" >&6
45746else
45747 cat >conftest.$ac_ext <<_ACEOF
45748/* confdefs.h. */
45749_ACEOF
45750cat confdefs.h >>conftest.$ac_ext
45751cat >>conftest.$ac_ext <<_ACEOF
45752/* end confdefs.h. */
45753#include <Carbon/Carbon.h>
45754
45755#include <WebKit/HIWebView.h>
45756_ACEOF
45757rm -f conftest.$ac_objext
45758if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45759 (eval $ac_compile) 2>conftest.er1
45760 ac_status=$?
45761 grep -v '^ *+' conftest.er1 >conftest.err
45762 rm -f conftest.er1
45763 cat conftest.err >&5
45764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45765 (exit $ac_status); } &&
3ea50042 45766 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
07bea8f0
VS
45767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45768 (eval $ac_try) 2>&5
45769 ac_status=$?
45770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45771 (exit $ac_status); }; } &&
45772 { ac_try='test -s conftest.$ac_objext'
45773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45774 (eval $ac_try) 2>&5
45775 ac_status=$?
45776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45777 (exit $ac_status); }; }; then
45778 ac_cv_header_WebKit_HIWebView_h=yes
45779else
45780 echo "$as_me: failed program was:" >&5
45781sed 's/^/| /' conftest.$ac_ext >&5
45782
45783ac_cv_header_WebKit_HIWebView_h=no
45784fi
45785rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45786fi
45787echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
45788echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6
45789if test $ac_cv_header_WebKit_HIWebView_h = yes; then
45790
45791 cat >>confdefs.h <<\_ACEOF
646b6ec1
VS
45792#define wxUSE_WEBKIT 1
45793_ACEOF
45794
07bea8f0
VS
45795 WEBKIT_LINK="-framework WebKit"
45796
45797else
45798
45799 { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
45800echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
45801 wxUSE_WEBKIT=no
45802
646b6ec1
VS
45803fi
45804
07bea8f0
VS
45805
45806 CPPFLAGS="$old_CPPFLAGS"
45807 elif test "$wxUSE_COCOA" = 1; then
45808 cat >>confdefs.h <<\_ACEOF
45809#define wxUSE_WEBKIT 1
45810_ACEOF
45811
45812 else
45813 wxUSE_WEBKIT=no
45814 fi
45815fi
45816
9a8f0513
VS
45817USE_XRC=0
45818if test "$wxUSE_XRC" = "yes"; then
d2ebf0b7
VS
45819 if test "$wxUSE_XML" != "yes"; then
45820 { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
45821echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
45822 wxUSE_XRC=no
45823 else
45824 cat >>confdefs.h <<\_ACEOF
9a8f0513
VS
45825#define wxUSE_XRC 1
45826_ACEOF
45827
d2ebf0b7
VS
45828 USE_XRC=1
45829 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
45830 fi
9a8f0513 45831fi
07bea8f0 45832
3f60522a
JS
45833USE_AUI=0
45834if test "$wxUSE_AUI" = "yes"; then
45835 cat >>confdefs.h <<\_ACEOF
45836#define wxUSE_AUI 1
45837_ACEOF
45838
45839 USE_AUI=1
45840 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS aui"
45841fi
45842
a848cd7e
SC
45843if test "$wxUSE_MENUS" = "yes"; then
45844 cat >>confdefs.h <<\_ACEOF
45845#define wxUSE_MENUS 1
45846_ACEOF
45847
45848 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
45849fi
45850
45851if test "$wxUSE_METAFILE" = "yes"; then
45852 cat >>confdefs.h <<\_ACEOF
45853#define wxUSE_METAFILE 1
45854_ACEOF
45855
45856fi
45857
45858if test "$wxUSE_MIMETYPE" = "yes"; then
45859 cat >>confdefs.h <<\_ACEOF
45860#define wxUSE_MIMETYPE 1
45861_ACEOF
45862
45863fi
45864
45865if test "$wxUSE_MINIFRAME" = "yes"; then
45866 cat >>confdefs.h <<\_ACEOF
45867#define wxUSE_MINIFRAME 1
45868_ACEOF
45869
45870 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
45871fi
45872
45873if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
45874 cat >>confdefs.h <<\_ACEOF
45875#define wxUSE_SYSTEM_OPTIONS 1
45876_ACEOF
45877
45878 if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
a49baeab 45879 "$TOOLKIT" = "MOTIF" -o "$TOOLKIT" = "COCOA"; then
a848cd7e
SC
45880 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
45881 fi
45882fi
45883
45884
45885if test "$wxUSE_VALIDATORS" = "yes"; then
45886 cat >>confdefs.h <<\_ACEOF
45887#define wxUSE_VALIDATORS 1
45888_ACEOF
45889
45890 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
45891fi
45892
45893if test "$wxUSE_PALETTE" = "yes" ; then
45894 cat >>confdefs.h <<\_ACEOF
45895#define wxUSE_PALETTE 1
45896_ACEOF
45897
45898fi
45899
45900if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
45901 LIBS=" -lunicows $LIBS"
45902fi
45903
91dea314
MW
45904USE_RICHTEXT=0
45905if test "$wxUSE_RICHTEXT" = "yes"; then
45906 cat >>confdefs.h <<\_ACEOF
45907#define wxUSE_RICHTEXT 1
45908_ACEOF
45909
45910 USE_RICHTEXT=1
45911 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS richtext"
45912fi
45913
f43426c1
RD
45914if test "$wxUSE_GRAPHICS_CONTEXT" = "yes"; then
45915 cat >>confdefs.h <<\_ACEOF
45916#define wxUSE_GRAPHICS_CONTEXT 1
45917_ACEOF
45918
45919fi
45920
a848cd7e
SC
45921
45922if test "$wxUSE_IMAGE" = "yes" ; then
45923 cat >>confdefs.h <<\_ACEOF
45924#define wxUSE_IMAGE 1
45925_ACEOF
45926
45927
45928 if test "$wxUSE_GIF" = "yes" ; then
45929 cat >>confdefs.h <<\_ACEOF
45930#define wxUSE_GIF 1
45931_ACEOF
45932
45933 fi
45934
45935 if test "$wxUSE_PCX" = "yes" ; then
45936 cat >>confdefs.h <<\_ACEOF
45937#define wxUSE_PCX 1
45938_ACEOF
45939
45940 fi
45941
45942 if test "$wxUSE_IFF" = "yes" ; then
45943 cat >>confdefs.h <<\_ACEOF
45944#define wxUSE_IFF 1
45945_ACEOF
45946
45947 fi
45948
45949 if test "$wxUSE_PNM" = "yes" ; then
45950 cat >>confdefs.h <<\_ACEOF
45951#define wxUSE_PNM 1
45952_ACEOF
45953
45954 fi
45955
45956 if test "$wxUSE_XPM" = "yes" ; then
45957 cat >>confdefs.h <<\_ACEOF
45958#define wxUSE_XPM 1
45959_ACEOF
45960
45961 fi
45962
45963 if test "$wxUSE_ICO_CUR" = "yes" ; then
45964 cat >>confdefs.h <<\_ACEOF
45965#define wxUSE_ICO_CUR 1
45966_ACEOF
45967
45968 fi
45969fi
45970
45971
319c5ed4
VZ
45972if test "$wxUSE_ABOUTDLG" = "yes"; then
45973 cat >>confdefs.h <<\_ACEOF
45974#define wxUSE_ABOUTDLG 1
45975_ACEOF
45976
45977fi
45978
a848cd7e
SC
45979if test "$wxUSE_CHOICEDLG" = "yes"; then
45980 cat >>confdefs.h <<\_ACEOF
45981#define wxUSE_CHOICEDLG 1
45982_ACEOF
45983
45984fi
45985
45986if test "$wxUSE_COLOURDLG" = "yes"; then
45987 cat >>confdefs.h <<\_ACEOF
45988#define wxUSE_COLOURDLG 1
45989_ACEOF
45990
45991fi
45992
45993if test "$wxUSE_FILEDLG" = "yes"; then
45994 cat >>confdefs.h <<\_ACEOF
45995#define wxUSE_FILEDLG 1
45996_ACEOF
45997
45998fi
45999
46000if test "$wxUSE_FINDREPLDLG" = "yes"; then
46001 cat >>confdefs.h <<\_ACEOF
46002#define wxUSE_FINDREPLDLG 1
46003_ACEOF
46004
46005fi
46006
46007if test "$wxUSE_FONTDLG" = "yes"; then
46008 cat >>confdefs.h <<\_ACEOF
46009#define wxUSE_FONTDLG 1
46010_ACEOF
46011
46012fi
46013
46014if test "$wxUSE_DIRDLG" = "yes"; then
46015 if test "$wxUSE_TREECTRL" != "yes"; then
46016 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
46017echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
46018 else
46019 cat >>confdefs.h <<\_ACEOF
46020#define wxUSE_DIRDLG 1
46021_ACEOF
46022
46023 fi
46024fi
46025
46026if test "$wxUSE_MSGDLG" = "yes"; then
46027 cat >>confdefs.h <<\_ACEOF
46028#define wxUSE_MSGDLG 1
46029_ACEOF
46030
46031fi
46032
46033if test "$wxUSE_NUMBERDLG" = "yes"; then
46034 cat >>confdefs.h <<\_ACEOF
46035#define wxUSE_NUMBERDLG 1
46036_ACEOF
46037
46038fi
46039
46040if test "$wxUSE_PROGRESSDLG" = "yes"; then
46041 if test "$wxUSE_CONSTRAINTS" != "yes"; then
46042 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
46043echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
46044 else
46045 cat >>confdefs.h <<\_ACEOF
46046#define wxUSE_PROGRESSDLG 1
46047_ACEOF
46048
46049 fi
46050fi
46051
46052if test "$wxUSE_SPLASH" = "yes"; then
46053 cat >>confdefs.h <<\_ACEOF
46054#define wxUSE_SPLASH 1
46055_ACEOF
46056
2057db16 46057 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
a848cd7e
SC
46058fi
46059
46060if test "$wxUSE_STARTUP_TIPS" = "yes"; then
46061 if test "$wxUSE_CONSTRAINTS" != "yes"; then
46062 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
46063echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
46064 else
46065 cat >>confdefs.h <<\_ACEOF
46066#define wxUSE_STARTUP_TIPS 1
46067_ACEOF
46068
46069 fi
46070fi
46071
46072if test "$wxUSE_TEXTDLG" = "yes"; then
46073 cat >>confdefs.h <<\_ACEOF
46074#define wxUSE_TEXTDLG 1
46075_ACEOF
46076
46077fi
46078
46079if test "$wxUSE_WIZARDDLG" = "yes"; then
46080 cat >>confdefs.h <<\_ACEOF
46081#define wxUSE_WIZARDDLG 1
46082_ACEOF
46083
46084 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
46085fi
46086
46087
f10e38c4
VZ
46088USE_MEDIA=0
46089
ce756cb0 46090if test "$wxUSE_MEDIACTRL" = "yes"; then
2f6c5bb5
VZ
46091 USE_MEDIA=1
46092
ce756cb0 46093 if test "$wxUSE_GTK" = 1; then
c9a66001 46094 wxUSE_GSTREAMER="no"
ce756cb0 46095
f10e38c4
VZ
46096 GST_VERSION_MAJOR=0
46097 GST_VERSION_MINOR=10
2f6c5bb5 46098 GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
f10e38c4
VZ
46099
46100 if test "$wxUSE_GSTREAMER8" = "no"; then
ce756cb0 46101
3ecd9f92
MW
46102pkg_failed=no
46103echo "$as_me:$LINENO: checking for GST" >&5
46104echo $ECHO_N "checking for GST... $ECHO_C" >&6
ce756cb0 46105
3ecd9f92
MW
46106if test -n "$PKG_CONFIG"; then
46107 if test -n "$GST_CFLAGS"; then
46108 pkg_cv_GST_CFLAGS="$GST_CFLAGS"
46109 else
46110 if test -n "$PKG_CONFIG" && \
46111 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION gconf-2.0\"") >&5
46112 ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0") 2>&5
46113 ac_status=$?
46114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46115 (exit $ac_status); }; then
46116 pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" 2>/dev/null`
dae87f93 46117else
3ecd9f92
MW
46118 pkg_failed=yes
46119fi
46120 fi
46121else
46122 pkg_failed=untried
dae87f93 46123fi
dae87f93 46124if test -n "$PKG_CONFIG"; then
3ecd9f92
MW
46125 if test -n "$GST_LIBS"; then
46126 pkg_cv_GST_LIBS="$GST_LIBS"
46127 else
46128 if test -n "$PKG_CONFIG" && \
46129 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION gconf-2.0\"") >&5
46130 ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0") 2>&5
46131 ac_status=$?
46132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46133 (exit $ac_status); }; then
46134 pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" 2>/dev/null`
dae87f93 46135else
3ecd9f92
MW
46136 pkg_failed=yes
46137fi
46138 fi
46139else
46140 pkg_failed=untried
dae87f93
RN
46141fi
46142
dae87f93 46143
2f6c5bb5 46144
3ecd9f92 46145if test $pkg_failed = yes; then
ce756cb0 46146
3ecd9f92
MW
46147if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
46148 _pkg_short_errors_supported=yes
46149else
46150 _pkg_short_errors_supported=no
46151fi
46152 if test $_pkg_short_errors_supported = yes; then
46153 GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"`
46154 else
46155 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"`
dae87f93 46156 fi
3ecd9f92
MW
46157 # Put the nasty error message in config.log where it belongs
46158 echo "$GST_PKG_ERRORS" >&5
dae87f93
RN
46159
46160
3ecd9f92
MW
46161 { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5
46162echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;}
46163 GST_VERSION_MINOR=8
dae87f93 46164
ce756cb0 46165
3ecd9f92 46166elif test $pkg_failed = untried; then
dae87f93 46167
2f6c5bb5
VZ
46168 { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5
46169echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;}
f10e38c4 46170 GST_VERSION_MINOR=8
dae87f93 46171
2f6c5bb5 46172
3ecd9f92
MW
46173else
46174 GST_CFLAGS=$pkg_cv_GST_CFLAGS
46175 GST_LIBS=$pkg_cv_GST_LIBS
46176 echo "$as_me:$LINENO: result: yes" >&5
46177echo "${ECHO_T}yes" >&6
46178
46179 wxUSE_GSTREAMER="yes"
46180 GST_LIBS="$GST_LIBS -lgstinterfaces-$GST_VERSION"
dae87f93 46181
3ecd9f92 46182fi
2f6c5bb5
VZ
46183 else
46184 GST_VERSION_MINOR=8
f10e38c4 46185 fi
dae87f93 46186
2f6c5bb5
VZ
46187 if test $GST_VERSION_MINOR = "8"; then
46188 GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
dae87f93 46189
3ecd9f92
MW
46190pkg_failed=no
46191echo "$as_me:$LINENO: checking for GST" >&5
46192echo $ECHO_N "checking for GST... $ECHO_C" >&6
dae87f93 46193
3ecd9f92
MW
46194if test -n "$PKG_CONFIG"; then
46195 if test -n "$GST_CFLAGS"; then
46196 pkg_cv_GST_CFLAGS="$GST_CFLAGS"
46197 else
46198 if test -n "$PKG_CONFIG" && \
46199 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5
46200 ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5
46201 ac_status=$?
46202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46203 (exit $ac_status); }; then
46204 pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null`
dae87f93 46205else
3ecd9f92
MW
46206 pkg_failed=yes
46207fi
46208 fi
46209else
46210 pkg_failed=untried
dae87f93 46211fi
f10e38c4 46212if test -n "$PKG_CONFIG"; then
3ecd9f92
MW
46213 if test -n "$GST_LIBS"; then
46214 pkg_cv_GST_LIBS="$GST_LIBS"
46215 else
46216 if test -n "$PKG_CONFIG" && \
46217 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5
46218 ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5
46219 ac_status=$?
46220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46221 (exit $ac_status); }; then
46222 pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null`
dae87f93 46223else
3ecd9f92
MW
46224 pkg_failed=yes
46225fi
46226 fi
46227else
46228 pkg_failed=untried
dae87f93
RN
46229fi
46230
ce756cb0 46231
2f6c5bb5 46232
3ecd9f92 46233if test $pkg_failed = yes; then
dae87f93 46234
3ecd9f92
MW
46235if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
46236 _pkg_short_errors_supported=yes
46237else
46238 _pkg_short_errors_supported=no
46239fi
46240 if test $_pkg_short_errors_supported = yes; then
46241 GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
46242 else
46243 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
dae87f93 46244 fi
3ecd9f92
MW
46245 # Put the nasty error message in config.log where it belongs
46246 echo "$GST_PKG_ERRORS" >&5
dae87f93
RN
46247
46248
3ecd9f92
MW
46249 { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5
46250echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;}
ce756cb0 46251
3ecd9f92 46252elif test $pkg_failed = untried; then
ce756cb0 46253
2f6c5bb5
VZ
46254 { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5
46255echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;}
ce756cb0 46256
3ecd9f92
MW
46257else
46258 GST_CFLAGS=$pkg_cv_GST_CFLAGS
46259 GST_LIBS=$pkg_cv_GST_LIBS
46260 echo "$as_me:$LINENO: result: yes" >&5
46261echo "${ECHO_T}yes" >&6
46262 wxUSE_GSTREAMER="yes"
46263fi
dae87f93 46264 fi
ce756cb0 46265
f10e38c4 46266
dae87f93 46267 if test "$wxUSE_GSTREAMER" = "yes"; then
c9a66001
VZ
46268 case "${host}" in
46269 *-*-solaris2* )
46270 if "$GCC" = yes; then
46271 GST_CFLAGS=`echo $GST_CFLAGS | sed 's/-mt//'`
46272 GST_LIBS=`echo $GST_LIBS | sed 's/-mt//'`
46273 fi
46274 esac
46275
46276 CPPFLAGS="$GST_CFLAGS $CPPFLAGS"
46277 LIBS="$GST_LIBS $LIBS"
46278
dae87f93 46279 cat >>confdefs.h <<\_ACEOF
ce756cb0
RN
46280#define wxUSE_GSTREAMER 1
46281_ACEOF
46282
2f6c5bb5
VZ
46283 else
46284 USE_MEDIA=0
ce756cb0
RN
46285 fi
46286 fi
2f6c5bb5
VZ
46287
46288 if test $USE_MEDIA = 1; then
46289 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
46290 cat >>confdefs.h <<\_ACEOF
ce756cb0
RN
46291#define wxUSE_MEDIACTRL 1
46292_ACEOF
46293
2f6c5bb5 46294 fi
ce756cb0
RN
46295fi
46296
46297
a848cd7e
SC
46298if test "$cross_compiling" = "yes"; then
46299 OSINFO="\"$host\""
46300else
46301 OSINFO=`uname -s -r -m`
46302 OSINFO="\"$OSINFO\""
46303fi
46304
46305cat >>confdefs.h <<_ACEOF
46306#define WXWIN_OS_DESCRIPTION $OSINFO
46307_ACEOF
46308
46309
46310
46311if test "x$prefix" != "xNONE"; then
46312 wxPREFIX=$prefix
46313else
46314 wxPREFIX=$ac_default_prefix
46315fi
46316
46317cat >>confdefs.h <<_ACEOF
46318#define wxINSTALL_PREFIX "$wxPREFIX"
46319_ACEOF
46320
46321
a848cd7e
SC
46322
46323
46324CORE_BASE_LIBS="net base"
46325CORE_GUI_LIBS="adv core"
46326
46327if test "$wxUSE_XML" = "yes" ; then
46328 CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
46329fi
46330if test "$wxUSE_ODBC" != "no" ; then
46331 CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
46332 CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
46333fi
46334if test "$wxUSE_HTML" = "yes" ; then
46335 CORE_GUI_LIBS="html $CORE_GUI_LIBS"
46336fi
61639efb
VZ
46337if test "$wxUSE_DEBUGREPORT" = "yes" ; then
46338 CORE_GUI_LIBS="qa $CORE_GUI_LIBS"
46339fi
9a8f0513
VS
46340if test "$wxUSE_XRC" = "yes" ; then
46341 CORE_GUI_LIBS="xrc $CORE_GUI_LIBS"
46342fi
3f60522a
JS
46343if test "$wxUSE_AUI" = "yes" ; then
46344 CORE_GUI_LIBS="aui $CORE_GUI_LIBS"
46345fi
a848cd7e
SC
46346
46347if test "$wxUSE_GUI" != "yes"; then
46348 CORE_GUI_LIBS=""
46349fi
46350
46351
46352
46353
46354
5d7b7554
VZ
46355ac_ext=c
46356ac_cpp='$CPP $CPPFLAGS'
46357ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46358ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46359ac_compiler_gnu=$ac_cv_c_compiler_gnu
46360
a848cd7e
SC
46361
46362
a848cd7e 46363if test "$wxUSE_MAC" = 1 ; then
a98bf0c0 46364 if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then
1e9e8aba
DE
46365 if test "$USE_DARWIN" = 1; then
46366 LDFLAGS="$LDFLAGS -framework QuickTime"
46367 else
46368 LDFLAGS="$LDFLAGS -lQuickTimeLib"
46369 fi
07bea8f0 46370 fi
5dcf30a0 46371 if test "$USE_DARWIN" = 1; then
1e9e8aba
DE
46372 LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System"
46373 else
46374 LDFLAGS="$LDFLAGS -lCarbonLib"
5dcf30a0 46375 fi
a848cd7e
SC
46376fi
46377if test "$wxUSE_COCOA" = 1 ; then
4cb1d3da 46378 LDFLAGS="$LDFLAGS -framework IOKit -framework Cocoa"
4fc81cbc
RN
46379 if test "$wxUSE_MEDIACTRL" = "yes"; then
46380 LDFLAGS="$LDFLAGS -framework QuickTime"
46381 fi
a848cd7e 46382fi
19b27e78
MW
46383if test "$USE_DARWIN" = 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1 ; then
46384 LDFLAGS="$LDFLAGS -framework IOKit -framework CoreServices -framework System -framework ApplicationServices"
46385fi
a848cd7e 46386
a848cd7e
SC
46387LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
46388
a848cd7e
SC
46389if test "$wxUSE_GUI" = "yes"; then
46390
46391
8bce5cda
MW
46392 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \
46393 dynamic erase event exec font image minimal mobile \
46394 mobile/wxedit mobile/styles propsize render \
9e39d889 46395 rotate shaped vscroll widgets"
a848cd7e
SC
46396
46397 if test "$wxUSE_MONOLITHIC" != "yes"; then
46398 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
46399 fi
0b78747f 46400 if test "$TOOLKIT" = "MSW"; then
8bce5cda
MW
46401 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest"
46402 if test "$wxUSE_UNIVERSAL" != "yes"; then
46403 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg"
46404 fi
46405 fi
46406 if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then
46407 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw"
0b78747f 46408 fi
a848cd7e
SC
46409else
46410 SAMPLES_SUBDIRS="console"
46411fi
46412
46413
48f625bc 46414if test "x$INTELCC" = "xyes" ; then
17a1ebd1
VZ
46415 CWARNINGS="-Wall -wd810,869,981,1418,1572,1684"
46416elif test "$GCC" = yes ; then
46417 CWARNINGS="-Wall -Wundef"
46418fi
46419
48f625bc 46420if test "x$INTELCXX" = "xyes" ; then
7f47faf4 46421 CXXWARNINGS="-Wall -wd279,383,444,810,869,981,1418,1419"
17a1ebd1
VZ
46422elif test "$GXX" = yes ; then
46423 CXXWARNINGS="-Wall -Wundef -Wno-ctor-dtor-privacy"
6ebeb4c7 46424fi
a848cd7e 46425
a848cd7e 46426
5ff751d6
VZ
46427WXCONFIG_CFLAGS=`echo $WXCONFIG_CFLAGS`
46428WXCONFIG_CXXFLAGS=`echo $WXCONFIG_CFLAGS $WXCONFIG_CXXFLAGS`
46429
46430
c92ad099 46431CPPFLAGS=`echo $WXCONFIG_CPPFLAGS \
bc6ee4ae 46432 -I\\${top_builddir}lib/wx/include/${TOOLCHAIN_FULLNAME} \
c92ad099
VZ
46433 -I\\${top_srcdir}/include $TOOLKIT_INCLUDE \
46434 $CPPFLAGS `
5ff751d6 46435
8aeeb05c 46436C_AND_CXX_FLAGS="$DEBUG_CFLAGS $PROFILE_FLAGS $OPTIMISE_CFLAGS"
c92ad099 46437CFLAGS=`echo $WXCONFIG_CFLAGS $CWARNINGS $C_AND_CXX_FLAGS $CFLAGS `
9cbac6d1 46438CXXFLAGS=`echo $WXCONFIG_CXXFLAGS $CXXWARNINGS $C_AND_CXX_FLAGS $CXXFLAGS `
5ff751d6
VZ
46439
46440WXCONFIG_CPPFLAGS=`echo $WXCONFIG_CPPFLAGS $WXCONFIG_ONLY_CPPFLAGS`
46441
a848cd7e 46442
95986553
DE
46443if test "x$MWCC" = "xyes"; then
46444
46445 CC="$CC -cwd source -I-"
46446 CXX="$CXX -cwd source -I-"
46447fi
46448
a848cd7e 46449
0c3c69fc 46450LIBS=`echo $LIBS`
a848cd7e
SC
46451EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
46452EXTRALIBS_XML="$EXPAT_LINK"
46453EXTRALIBS_HTML="$MSPACK_LINK"
46454EXTRALIBS_ODBC="$ODBC_LINK"
46455if test "$wxUSE_GUI" = "yes"; then
2b850ae1 46456 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_HILDON $EXTRALIBS_GNOMEVFS $EXTRALIBS_GNOMEPRINT`
a848cd7e
SC
46457fi
46458if test "$wxUSE_OPENGL" = "yes"; then
46459 EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
46460fi
46461
8aeeb05c 46462LDFLAGS="$LDFLAGS $PROFILE_FLAGS"
a848cd7e 46463
5ff751d6 46464WXCONFIG_LIBS="$LIBS"
a848cd7e
SC
46465
46466if test "$wxUSE_REGEX" = "builtin" ; then
74802184 46467 wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty"
a848cd7e
SC
46468fi
46469if test "$wxUSE_EXPAT" = "builtin" ; then
74802184 46470 wxconfig_3rdparty="expat $wxconfig_3rdparty"
a848cd7e
SC
46471fi
46472if test "$wxUSE_ODBC" = "builtin" ; then
74802184 46473 wxconfig_3rdparty="odbc $wxconfig_3rdparty"
a848cd7e
SC
46474fi
46475if test "$wxUSE_LIBTIFF" = "builtin" ; then
74802184 46476 wxconfig_3rdparty="tiff $wxconfig_3rdparty"
a848cd7e
SC
46477fi
46478if test "$wxUSE_LIBJPEG" = "builtin" ; then
74802184 46479 wxconfig_3rdparty="jpeg $wxconfig_3rdparty"
a848cd7e
SC
46480fi
46481if test "$wxUSE_LIBPNG" = "builtin" ; then
74802184 46482 wxconfig_3rdparty="png $wxconfig_3rdparty"
a848cd7e
SC
46483fi
46484if test "$wxUSE_ZLIB" = "builtin" ; then
74802184 46485 wxconfig_3rdparty="zlib $wxconfig_3rdparty"
a848cd7e
SC
46486fi
46487
46488for i in $wxconfig_3rdparty ; do
5ff751d6 46489 WXCONFIG_LIBS="-lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_LIBS"
a848cd7e
SC
46490done
46491
46492
46493if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
46494 WXUNIV=1
4353a8df
VZ
46495
46496 case "$wxUNIV_THEMES" in
46497 ''|all)
46498 cat >>confdefs.h <<\_ACEOF
46499#define wxUSE_ALL_THEMES 1
46500_ACEOF
46501
46502 ;;
46503
46504 *)
46505 for t in `echo $wxUNIV_THEMES | tr , ' ' | tr a-z A-Z`; do
46506 cat >>confdefs.h <<_ACEOF
46507#define wxUSE_THEME_$t 1
46508_ACEOF
46509
46510 done
46511 esac
a848cd7e
SC
46512else
46513 WXUNIV=0
46514fi
46515
46516
46517
46518
46519
46520
46521
46522
46523
46524if test $wxUSE_MONOLITHIC = "yes" ; then
46525 MONOLITHIC=1
46526else
46527 MONOLITHIC=0
46528fi
46529
46530if test $wxUSE_PLUGINS = "yes" ; then
46531 USE_PLUGINS=1
46532else
46533 USE_PLUGINS=0
46534fi
46535
46536if test $wxUSE_ODBC != "no" ; then
46537 USE_ODBC=1
46538else
46539 USE_ODBC=0
46540fi
46541
16358932
VZ
46542if test "$wxUSE_DEBUGREPORT" = "yes" ; then
46543 USE_QA=1
46544else
46545 USE_QA=0
46546fi
46547
a848cd7e
SC
46548if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
46549 OFFICIAL_BUILD=1
46550else
46551 OFFICIAL_BUILD=0
46552fi
46553
46554
46555
46556
46557
46558
46559
46560
46561
46562
46563
46564
46565
46566
46567
46568
46569
46570
46571
ceec2216 46572
d1c38808 46573
3565d135 46574
2b850ae1 46575
a848cd7e
SC
46576
46577
46578TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
46579
46580
46581
46582
46583
46584
46585
46586
4d4ff94c
VZ
46587case "$TOOLKIT" in
46588 GTK)
c2e9ada4 46589 TOOLKIT_DESC="GTK+"
4d4ff94c 46590 if test "$WXGTK20" = 1; then
c2e9ada4
VZ
46591 TOOLKIT_DESC="$TOOLKIT_DESC 2"
46592 if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
46593 TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomeprint";
46594 fi
46595 if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
46596 TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomevfs"
46597 fi
46598 if test "$wxUSE_LIBHILDON" = "yes"; then
46599 TOOLKIT_EXTRA="$TOOLKIT_EXTRA hildon"
46600 fi
46601
46602 if test "$TOOLKIT_EXTRA" != ""; then
46603 TOOLKIT_DESC="$TOOLKIT_DESC with support for `echo $TOOLKIT_EXTRA | tr -s ' '`"
46604 fi
4d4ff94c 46605 fi
9a8f0513 46606 ;;
4d4ff94c 46607
c2e9ada4
VZ
46608 ?*)
46609 TOOLKIT_DESC=$TOOLKIT_LOWERCASE
46610 ;;
46611
4d4ff94c 46612 *)
c2e9ada4 46613 TOOLKIT_DESC="base only"
9a8f0513 46614 ;;
4d4ff94c 46615esac
a848cd7e 46616
fb00f58d
JS
46617if test "$wxUSE_WINE" = "yes"; then
46618 BAKEFILE_FORCE_PLATFORM=win32
46619fi
46620
7afc46ab 46621if test "$wxUSE_MAC" = 1 ; then
95768535
MW
46622 if test "x$wxUSE_UNIVERSAL_BINARY" != xno ; then
46623 if test "x$wxUSE_UNIVERSAL_BINARY" == xyes; then
46624 OSX_UNIV_OPTS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk"
46625 else
46626 OSX_UNIV_OPTS=${wxUSE_UNIVERSAL_BINARY:+"-isysroot '$wxUSE_UNIVERSAL_BINARY'"}
46627 fi
46628 OSX_UNIV_OPTS="$OSX_UNIV_OPTS -arch ppc -arch i386"
46629 CXXFLAGS="$OSX_UNIV_OPTS $CXXFLAGS"
46630 CFLAGS="$OSX_UNIV_OPTS $CFLAGS"
46631 LDFLAGS="$OSX_UNIV_OPTS $LDFLAGS"
7afc46ab
KO
46632 bk_use_pch=no
46633 fi
46634 # TODO: where do we add "-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk" for libtool (static builds only)?
46635 # The makefile currently uses AR and RANLIB, which libtool apparently supercedes.
7afc46ab
KO
46636fi
46637
9a8f0513 46638
1e9e8aba
DE
46639
46640
a848cd7e 46641 if test "x$BAKEFILE_HOST" = "x"; then
f10e38c4
VZ
46642 if test "x${host}" = "x" ; then
46643 { { echo "$as_me:$LINENO: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&5
46644echo "$as_me: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&2;}
46645 { (exit 1); exit 1; }; }
46646 fi
46647
a848cd7e
SC
46648 BAKEFILE_HOST="${host}"
46649 fi
46650
46651 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
46652
46653 if test -n "$ac_tool_prefix"; then
46654 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
46655set dummy ${ac_tool_prefix}ranlib; ac_word=$2
46656echo "$as_me:$LINENO: checking for $ac_word" >&5
46657echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
46658if test "${ac_cv_prog_RANLIB+set}" = set; then
46659 echo $ECHO_N "(cached) $ECHO_C" >&6
46660else
46661 if test -n "$RANLIB"; then
46662 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
46663else
46664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46665for as_dir in $PATH
46666do
46667 IFS=$as_save_IFS
46668 test -z "$as_dir" && as_dir=.
46669 for ac_exec_ext in '' $ac_executable_extensions; do
46670 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46671 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
46672 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46673 break 2
46674 fi
46675done
46676done
46677
46678fi
46679fi
46680RANLIB=$ac_cv_prog_RANLIB
46681if test -n "$RANLIB"; then
46682 echo "$as_me:$LINENO: result: $RANLIB" >&5
46683echo "${ECHO_T}$RANLIB" >&6
46684else
46685 echo "$as_me:$LINENO: result: no" >&5
46686echo "${ECHO_T}no" >&6
46687fi
46688
46689fi
46690if test -z "$ac_cv_prog_RANLIB"; then
46691 ac_ct_RANLIB=$RANLIB
46692 # Extract the first word of "ranlib", so it can be a program name with args.
46693set dummy ranlib; ac_word=$2
46694echo "$as_me:$LINENO: checking for $ac_word" >&5
46695echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
46696if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
46697 echo $ECHO_N "(cached) $ECHO_C" >&6
46698else
46699 if test -n "$ac_ct_RANLIB"; then
46700 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
46701else
46702as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46703for as_dir in $PATH
46704do
46705 IFS=$as_save_IFS
46706 test -z "$as_dir" && as_dir=.
46707 for ac_exec_ext in '' $ac_executable_extensions; do
46708 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46709 ac_cv_prog_ac_ct_RANLIB="ranlib"
46710 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46711 break 2
46712 fi
46713done
46714done
46715
46716 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
46717fi
46718fi
46719ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
46720if test -n "$ac_ct_RANLIB"; then
46721 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
46722echo "${ECHO_T}$ac_ct_RANLIB" >&6
46723else
46724 echo "$as_me:$LINENO: result: no" >&5
46725echo "${ECHO_T}no" >&6
46726fi
46727
46728 RANLIB=$ac_ct_RANLIB
46729else
46730 RANLIB="$ac_cv_prog_RANLIB"
46731fi
46732
46733 # Find a good install program. We prefer a C program (faster),
46734# so one script is as good as another. But avoid the broken or
46735# incompatible versions:
46736# SysV /etc/install, /usr/sbin/install
46737# SunOS /usr/etc/install
46738# IRIX /sbin/install
46739# AIX /bin/install
46740# AmigaOS /C/install, which installs bootblocks on floppy discs
46741# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
46742# AFS /usr/afsws/bin/install, which mishandles nonexistent args
46743# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 46744# OS/2's system install, which has a completely different semantic
a848cd7e
SC
46745# ./install, which can be erroneously created by make from ./install.sh.
46746echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
46747echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
46748if test -z "$INSTALL"; then
46749if test "${ac_cv_path_install+set}" = set; then
46750 echo $ECHO_N "(cached) $ECHO_C" >&6
46751else
46752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46753for as_dir in $PATH
46754do
46755 IFS=$as_save_IFS
46756 test -z "$as_dir" && as_dir=.
46757 # Account for people who put trailing slashes in PATH elements.
46758case $as_dir/ in
46759 ./ | .// | /cC/* | \
46760 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 46761 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
46762 /usr/ucb/* ) ;;
46763 *)
46764 # OSF1 and SCO ODT 3.0 have their own names for install.
46765 # Don't use installbsd from OSF since it installs stuff as root
46766 # by default.
46767 for ac_prog in ginstall scoinst install; do
46768 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
46769 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
46770 if test $ac_prog = install &&
46771 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
46772 # AIX install. It has an incompatible calling convention.
46773 :
46774 elif test $ac_prog = install &&
46775 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
46776 # program-specific install script used by HP pwplus--don't use.
46777 :
46778 else
46779 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
46780 break 3
46781 fi
46782 fi
a848cd7e
SC
46783 done
46784 done
46785 ;;
46786esac
46787done
46788
46789
46790fi
46791 if test "${ac_cv_path_install+set}" = set; then
46792 INSTALL=$ac_cv_path_install
46793 else
46794 # As a last resort, use the slow shell script. We don't cache a
46795 # path for INSTALL within a source directory, because that will
46796 # break other packages using the cache if that directory is
46797 # removed, or if the path is relative.
46798 INSTALL=$ac_install_sh
46799 fi
46800fi
46801echo "$as_me:$LINENO: result: $INSTALL" >&5
46802echo "${ECHO_T}$INSTALL" >&6
46803
46804# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
46805# It thinks the first close brace ends the variable substitution.
46806test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
46807
46808test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
46809
46810test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
46811
46812 echo "$as_me:$LINENO: checking whether ln -s works" >&5
46813echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
46814LN_S=$as_ln_s
46815if test "$LN_S" = "ln -s"; then
46816 echo "$as_me:$LINENO: result: yes" >&5
46817echo "${ECHO_T}yes" >&6
46818else
46819 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
46820echo "${ECHO_T}no, using $LN_S" >&6
46821fi
46822
46823
46824 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
46825echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 46826set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
46827if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
46828 echo $ECHO_N "(cached) $ECHO_C" >&6
46829else
46830 cat >conftest.make <<\_ACEOF
46831all:
46832 @echo 'ac_maketemp="$(MAKE)"'
46833_ACEOF
46834# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
46835eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
46836if test -n "$ac_maketemp"; then
46837 eval ac_cv_prog_make_${ac_make}_set=yes
46838else
46839 eval ac_cv_prog_make_${ac_make}_set=no
46840fi
46841rm -f conftest.make
46842fi
46843if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
46844 echo "$as_me:$LINENO: result: yes" >&5
46845echo "${ECHO_T}yes" >&6
46846 SET_MAKE=
46847else
46848 echo "$as_me:$LINENO: result: no" >&5
46849echo "${ECHO_T}no" >&6
46850 SET_MAKE="MAKE=${MAKE-make}"
46851fi
46852
46853
46854
46855 if test -n "$ac_tool_prefix"; then
46856 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
46857set dummy ${ac_tool_prefix}ar; ac_word=$2
46858echo "$as_me:$LINENO: checking for $ac_word" >&5
46859echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
46860if test "${ac_cv_prog_AR+set}" = set; then
46861 echo $ECHO_N "(cached) $ECHO_C" >&6
46862else
46863 if test -n "$AR"; then
46864 ac_cv_prog_AR="$AR" # Let the user override the test.
46865else
46866as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46867for as_dir in $PATH
46868do
46869 IFS=$as_save_IFS
46870 test -z "$as_dir" && as_dir=.
46871 for ac_exec_ext in '' $ac_executable_extensions; do
46872 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46873 ac_cv_prog_AR="${ac_tool_prefix}ar"
46874 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46875 break 2
46876 fi
46877done
46878done
46879
46880fi
46881fi
46882AR=$ac_cv_prog_AR
46883if test -n "$AR"; then
46884 echo "$as_me:$LINENO: result: $AR" >&5
46885echo "${ECHO_T}$AR" >&6
46886else
46887 echo "$as_me:$LINENO: result: no" >&5
46888echo "${ECHO_T}no" >&6
46889fi
46890
46891fi
46892if test -z "$ac_cv_prog_AR"; then
46893 ac_ct_AR=$AR
46894 # Extract the first word of "ar", so it can be a program name with args.
46895set dummy ar; ac_word=$2
46896echo "$as_me:$LINENO: checking for $ac_word" >&5
46897echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
46898if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
46899 echo $ECHO_N "(cached) $ECHO_C" >&6
46900else
46901 if test -n "$ac_ct_AR"; then
46902 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
46903else
46904as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46905for as_dir in $PATH
46906do
46907 IFS=$as_save_IFS
46908 test -z "$as_dir" && as_dir=.
46909 for ac_exec_ext in '' $ac_executable_extensions; do
46910 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46911 ac_cv_prog_ac_ct_AR="ar"
46912 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46913 break 2
46914 fi
46915done
46916done
46917
46918 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
46919fi
46920fi
46921ac_ct_AR=$ac_cv_prog_ac_ct_AR
46922if test -n "$ac_ct_AR"; then
46923 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
46924echo "${ECHO_T}$ac_ct_AR" >&6
46925else
46926 echo "$as_me:$LINENO: result: no" >&5
46927echo "${ECHO_T}no" >&6
46928fi
46929
46930 AR=$ac_ct_AR
46931else
46932 AR="$ac_cv_prog_AR"
46933fi
46934
46935 if test -n "$ac_tool_prefix"; then
46936 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
46937set dummy ${ac_tool_prefix}strip; ac_word=$2
46938echo "$as_me:$LINENO: checking for $ac_word" >&5
46939echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
46940if test "${ac_cv_prog_STRIP+set}" = set; then
46941 echo $ECHO_N "(cached) $ECHO_C" >&6
46942else
46943 if test -n "$STRIP"; then
46944 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
46945else
46946as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46947for as_dir in $PATH
46948do
46949 IFS=$as_save_IFS
46950 test -z "$as_dir" && as_dir=.
46951 for ac_exec_ext in '' $ac_executable_extensions; do
46952 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46953 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
46954 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46955 break 2
46956 fi
46957done
46958done
46959
46960fi
46961fi
46962STRIP=$ac_cv_prog_STRIP
46963if test -n "$STRIP"; then
46964 echo "$as_me:$LINENO: result: $STRIP" >&5
46965echo "${ECHO_T}$STRIP" >&6
46966else
46967 echo "$as_me:$LINENO: result: no" >&5
46968echo "${ECHO_T}no" >&6
46969fi
46970
46971fi
46972if test -z "$ac_cv_prog_STRIP"; then
46973 ac_ct_STRIP=$STRIP
46974 # Extract the first word of "strip", so it can be a program name with args.
46975set dummy strip; ac_word=$2
46976echo "$as_me:$LINENO: checking for $ac_word" >&5
46977echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
46978if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
46979 echo $ECHO_N "(cached) $ECHO_C" >&6
46980else
46981 if test -n "$ac_ct_STRIP"; then
46982 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
46983else
46984as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46985for as_dir in $PATH
46986do
46987 IFS=$as_save_IFS
46988 test -z "$as_dir" && as_dir=.
46989 for ac_exec_ext in '' $ac_executable_extensions; do
46990 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46991 ac_cv_prog_ac_ct_STRIP="strip"
46992 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46993 break 2
46994 fi
46995done
46996done
46997
46998 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
46999fi
47000fi
47001ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
47002if test -n "$ac_ct_STRIP"; then
47003 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
47004echo "${ECHO_T}$ac_ct_STRIP" >&6
47005else
47006 echo "$as_me:$LINENO: result: no" >&5
47007echo "${ECHO_T}no" >&6
47008fi
47009
47010 STRIP=$ac_ct_STRIP
47011else
47012 STRIP="$ac_cv_prog_STRIP"
47013fi
47014
47015 if test -n "$ac_tool_prefix"; then
47016 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
47017set dummy ${ac_tool_prefix}nm; ac_word=$2
47018echo "$as_me:$LINENO: checking for $ac_word" >&5
47019echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47020if test "${ac_cv_prog_NM+set}" = set; then
47021 echo $ECHO_N "(cached) $ECHO_C" >&6
47022else
47023 if test -n "$NM"; then
47024 ac_cv_prog_NM="$NM" # Let the user override the test.
47025else
47026as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47027for as_dir in $PATH
47028do
47029 IFS=$as_save_IFS
47030 test -z "$as_dir" && as_dir=.
47031 for ac_exec_ext in '' $ac_executable_extensions; do
47032 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47033 ac_cv_prog_NM="${ac_tool_prefix}nm"
47034 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47035 break 2
47036 fi
47037done
47038done
47039
47040fi
47041fi
47042NM=$ac_cv_prog_NM
47043if test -n "$NM"; then
47044 echo "$as_me:$LINENO: result: $NM" >&5
47045echo "${ECHO_T}$NM" >&6
47046else
47047 echo "$as_me:$LINENO: result: no" >&5
47048echo "${ECHO_T}no" >&6
47049fi
47050
47051fi
47052if test -z "$ac_cv_prog_NM"; then
47053 ac_ct_NM=$NM
47054 # Extract the first word of "nm", so it can be a program name with args.
47055set dummy nm; ac_word=$2
47056echo "$as_me:$LINENO: checking for $ac_word" >&5
47057echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47058if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
47059 echo $ECHO_N "(cached) $ECHO_C" >&6
47060else
47061 if test -n "$ac_ct_NM"; then
47062 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
47063else
47064as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47065for as_dir in $PATH
47066do
47067 IFS=$as_save_IFS
47068 test -z "$as_dir" && as_dir=.
47069 for ac_exec_ext in '' $ac_executable_extensions; do
47070 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47071 ac_cv_prog_ac_ct_NM="nm"
47072 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47073 break 2
47074 fi
47075done
47076done
47077
47078 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
47079fi
47080fi
47081ac_ct_NM=$ac_cv_prog_ac_ct_NM
47082if test -n "$ac_ct_NM"; then
47083 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
47084echo "${ECHO_T}$ac_ct_NM" >&6
47085else
47086 echo "$as_me:$LINENO: result: no" >&5
47087echo "${ECHO_T}no" >&6
47088fi
47089
47090 NM=$ac_ct_NM
47091else
47092 NM="$ac_cv_prog_NM"
47093fi
47094
47095
47096 case ${BAKEFILE_HOST} in
47097 *-hp-hpux* )
1e9e8aba 47098 INSTALL_DIR="mkdir -p"
a848cd7e
SC
47099 ;;
47100 *) INSTALL_DIR="$INSTALL -d"
47101 ;;
47102 esac
47103
47104
47105 LDFLAGS_GUI=
47106 case ${BAKEFILE_HOST} in
47107 *-*-cygwin* | *-*-mingw32* )
47108 LDFLAGS_GUI="-mwindows"
47109 esac
47110
47111
47112 fi
47113
47114 echo "$as_me:$LINENO: checking if make is GNU make" >&5
47115echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
47116if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
47117 echo $ECHO_N "(cached) $ECHO_C" >&6
47118else
47119
47120 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
47121 egrep -s GNU > /dev/null); then
47122 bakefile_cv_prog_makeisgnu="yes"
47123 else
47124 bakefile_cv_prog_makeisgnu="no"
47125 fi
47126
47127fi
47128echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
47129echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
47130
47131 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
47132 IF_GNU_MAKE=""
47133 else
47134 IF_GNU_MAKE="#"
47135 fi
47136
47137
47138
47139 PLATFORM_UNIX=0
47140 PLATFORM_WIN32=0
47141 PLATFORM_MSDOS=0
47142 PLATFORM_MAC=0
1e9e8aba 47143 PLATFORM_MACOS=0
a848cd7e
SC
47144 PLATFORM_MACOSX=0
47145 PLATFORM_OS2=0
1e9e8aba 47146 PLATFORM_BEOS=0
a848cd7e
SC
47147
47148 if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
47149 case "${BAKEFILE_HOST}" in
810b94f0 47150 *-*-mingw32* )
a848cd7e
SC
47151 PLATFORM_WIN32=1
47152 ;;
47153 *-pc-msdosdjgpp )
47154 PLATFORM_MSDOS=1
47155 ;;
47156 *-pc-os2_emx | *-pc-os2-emx )
47157 PLATFORM_OS2=1
47158 ;;
47bd5406 47159 *-*-darwin* )
a848cd7e
SC
47160 PLATFORM_MAC=1
47161 PLATFORM_MACOSX=1
47162 ;;
1e9e8aba
DE
47163 *-*-beos* )
47164 PLATFORM_BEOS=1
47165 ;;
47166 powerpc-apple-macos* )
47167 PLATFORM_MAC=1
47168 PLATFORM_MACOS=1
47169 ;;
a848cd7e
SC
47170 * )
47171 PLATFORM_UNIX=1
47172 ;;
47173 esac
47174 else
47175 case "$BAKEFILE_FORCE_PLATFORM" in
47176 win32 )
47177 PLATFORM_WIN32=1
47178 ;;
47179 msdos )
47180 PLATFORM_MSDOS=1
47181 ;;
47182 os2 )
47183 PLATFORM_OS2=1
47184 ;;
47185 darwin )
47186 PLATFORM_MAC=1
47187 PLATFORM_MACOSX=1
47188 ;;
47189 unix )
47190 PLATFORM_UNIX=1
47191 ;;
1e9e8aba
DE
47192 beos )
47193 PLATFORM_BEOS=1
47194 ;;
a848cd7e
SC
47195 * )
47196 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
47197echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
47198 { (exit 1); exit 1; }; }
47199 ;;
47200 esac
47201 fi
47202
47203
47204
47205
47206
47207
47208
47209
47210
1e9e8aba
DE
47211
47212
a848cd7e
SC
47213 # Check whether --enable-omf or --disable-omf was given.
47214if test "${enable_omf+set}" = set; then
47215 enableval="$enable_omf"
47216 bk_os2_use_omf="$enableval"
47217fi;
47218
47219 case "${BAKEFILE_HOST}" in
47220 *-*-darwin* )
47bd5406
VZ
47221 if test "x$GCC" = "xyes"; then
47222 CFLAGS="$CFLAGS -fno-common"
47223 CXXFLAGS="$CXXFLAGS -fno-common"
47224 fi
47225 if test "x$XLCC" = "xyes"; then
47226 CFLAGS="$CFLAGS -qnocommon"
47227 CXXFLAGS="$CXXFLAGS -qnocommon"
47228 fi
a848cd7e
SC
47229 ;;
47230
47231 *-pc-os2_emx | *-pc-os2-emx )
47232 if test "x$bk_os2_use_omf" = "xyes" ; then
47233 AR=emxomfar
47234 RANLIB=:
47235 LDFLAGS="-Zomf $LDFLAGS"
47236 CFLAGS="-Zomf $CFLAGS"
47237 CXXFLAGS="-Zomf $CXXFLAGS"
47238 OS2_LIBEXT="lib"
47239 else
47240 OS2_LIBEXT="a"
47241 fi
47242 ;;
1e9e8aba
DE
47243
47244 i*86-*-beos* )
47245 LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
47246 ;;
a848cd7e
SC
47247 esac
47248
47249
47250 SO_SUFFIX="so"
47251 SO_SUFFIX_MODULE="so"
47252 EXEEXT=""
47253 LIBPREFIX="lib"
47254 LIBEXT=".a"
47255 DLLPREFIX="lib"
47256 DLLPREFIX_MODULE=""
47257 DLLIMP_SUFFIX=""
810b94f0 47258 dlldir="$libdir"
a848cd7e
SC
47259
47260 case "${BAKEFILE_HOST}" in
47261 *-hp-hpux* )
47262 SO_SUFFIX="sl"
47263 SO_SUFFIX_MODULE="sl"
47264 ;;
47265 *-*-aix* )
47266 SO_SUFFIX="a"
47267 SO_SUFFIX_MODULE="a"
47268 ;;
810b94f0
MW
47269 *-*-cygwin* )
47270 SO_SUFFIX="dll"
47271 SO_SUFFIX_MODULE="dll"
47272 DLLIMP_SUFFIX="dll.a"
47273 EXEEXT=".exe"
47274 DLLPREFIX="cyg"
47275 dlldir="$bindir"
47276 ;;
47277 *-*-mingw32* )
a848cd7e
SC
47278 SO_SUFFIX="dll"
47279 SO_SUFFIX_MODULE="dll"
47280 DLLIMP_SUFFIX="dll.a"
47281 EXEEXT=".exe"
47282 DLLPREFIX=""
810b94f0 47283 dlldir="$bindir"
a848cd7e
SC
47284 ;;
47285 *-pc-msdosdjgpp )
47286 EXEEXT=".exe"
47287 DLLPREFIX=""
810b94f0 47288 dlldir="$bindir"
a848cd7e
SC
47289 ;;
47290 *-pc-os2_emx | *-pc-os2-emx )
47291 SO_SUFFIX="dll"
47292 SO_SUFFIX_MODULE="dll"
47293 DLLIMP_SUFFIX=$OS2_LIBEXT
47294 EXEEXT=".exe"
47295 DLLPREFIX=""
47296 LIBPREFIX=""
47297 LIBEXT=".$OS2_LIBEXT"
810b94f0 47298 dlldir="$bindir"
a848cd7e 47299 ;;
47bd5406 47300 *-*-darwin* )
a848cd7e
SC
47301 SO_SUFFIX="dylib"
47302 SO_SUFFIX_MODULE="bundle"
47303 ;;
47304 esac
47305
47306 if test "x$DLLIMP_SUFFIX" = "x" ; then
47307 DLLIMP_SUFFIX="$SO_SUFFIX"
47308 fi
47309
47310
47311
47312
47313
47314
47315
47316
47317
47318
47319
810b94f0 47320
1e9e8aba
DE
47321 PIC_FLAG=""
47322 if test "x$GCC" = "xyes"; then
a848cd7e
SC
47323 PIC_FLAG="-fPIC"
47324 fi
47325
1e9e8aba
DE
47326 SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
47327 SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
810b94f0 47328 WINDOWS_IMPLIB=0
1e9e8aba 47329
a848cd7e
SC
47330 case "${BAKEFILE_HOST}" in
47331 *-hp-hpux* )
1e9e8aba 47332 if test "x$GCC" != "xyes"; then
a848cd7e
SC
47333 LDFLAGS="$LDFLAGS -L/usr/lib"
47334
47335 SHARED_LD_CC="${CC} -b -o"
47336 SHARED_LD_CXX="${CXX} -b -o"
47337 PIC_FLAG="+Z"
47338 fi
47339 ;;
47340
47341 *-*-linux* )
47342 if test "x$GCC" != "xyes"; then
47343 echo "$as_me:$LINENO: checking for Intel compiler" >&5
47344echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
47345if test "${bakefile_cv_prog_icc+set}" = set; then
47346 echo $ECHO_N "(cached) $ECHO_C" >&6
47347else
47348
47349 cat >conftest.$ac_ext <<_ACEOF
47350/* confdefs.h. */
47351_ACEOF
47352cat confdefs.h >>conftest.$ac_ext
47353cat >>conftest.$ac_ext <<_ACEOF
47354/* end confdefs.h. */
47355
47356int
47357main ()
47358{
47359
47360 #ifndef __INTEL_COMPILER
e5efa97e 47361 This is not ICC
a848cd7e
SC
47362 #endif
47363
47364 ;
47365 return 0;
47366}
47367_ACEOF
47368rm -f conftest.$ac_objext
47369if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 47370 (eval $ac_compile) 2>conftest.er1
a848cd7e 47371 ac_status=$?
ac1cb8d3
VS
47372 grep -v '^ *+' conftest.er1 >conftest.err
47373 rm -f conftest.er1
47374 cat conftest.err >&5
a848cd7e
SC
47375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47376 (exit $ac_status); } &&
3ea50042 47377 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
47378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47379 (eval $ac_try) 2>&5
47380 ac_status=$?
47381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47382 (exit $ac_status); }; } &&
47383 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
47384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47385 (eval $ac_try) 2>&5
47386 ac_status=$?
47387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47388 (exit $ac_status); }; }; then
47389 bakefile_cv_prog_icc=yes
47390else
47391 echo "$as_me: failed program was:" >&5
47392sed 's/^/| /' conftest.$ac_ext >&5
47393
47394bakefile_cv_prog_icc=no
47395
47396fi
ac1cb8d3 47397rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
47398
47399fi
47400echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
47401echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
47402 if test "$bakefile_cv_prog_icc" = "yes"; then
47403 PIC_FLAG="-KPIC"
47404 fi
47405 fi
47406 ;;
47407
47408 *-*-solaris2* )
47409 if test "x$GCC" != xyes ; then
47410 SHARED_LD_CC="${CC} -G -o"
47411 SHARED_LD_CXX="${CXX} -G -o"
47412 PIC_FLAG="-KPIC"
47413 fi
47414 ;;
47415
47416 *-*-darwin* )
47417
473276a9
VS
47418D='$'
47419cat <<EOF >shared-ld-sh
a848cd7e
SC
47420#!/bin/sh
47421#-----------------------------------------------------------------------------
47422#-- Name: distrib/mac/shared-ld-sh
47423#-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
47424#-- Author: Gilles Depeyrot
47425#-- Copyright: (c) 2002 Gilles Depeyrot
47426#-- Licence: any use permitted
47427#-----------------------------------------------------------------------------
47428
47429verbose=0
47430args=""
47431objects=""
47432linking_flag="-dynamiclib"
810b94f0 47433ldargs="-r -keep_private_externs -nostdlib"
a848cd7e 47434
473276a9
VS
47435while test ${D}# -gt 0; do
47436 case ${D}1 in
a848cd7e
SC
47437
47438 -v)
47439 verbose=1
47440 ;;
47441
47442 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
47443 # collect these options and values
473276a9 47444 args="${D}{args} ${D}1 ${D}2"
a848cd7e
SC
47445 shift
47446 ;;
47447
810b94f0
MW
47448 -s|-Wl,*)
47449 # collect these load args
47450 ldargs="${D}{ldargs} ${D}1"
2113bc77 47451 ;;
810b94f0
MW
47452
47453 -l*|-L*|-flat_namespace|-headerpad_max_install_names)
a848cd7e 47454 # collect these options
473276a9 47455 args="${D}{args} ${D}1"
a848cd7e
SC
47456 ;;
47457
47458 -dynamiclib|-bundle)
473276a9 47459 linking_flag="${D}1"
a848cd7e
SC
47460 ;;
47461
47462 -*)
473276a9 47463 echo "shared-ld: unhandled option '${D}1'"
a848cd7e
SC
47464 exit 1
47465 ;;
47466
47467 *.o | *.a | *.dylib)
47468 # collect object files
473276a9 47469 objects="${D}{objects} ${D}1"
a848cd7e
SC
47470 ;;
47471
47472 *)
473276a9 47473 echo "shared-ld: unhandled argument '${D}1'"
a848cd7e
SC
47474 exit 1
47475 ;;
47476
47477 esac
47478 shift
47479done
47480
810b94f0
MW
47481status=0
47482
a848cd7e
SC
47483#
47484# Link one module containing all the others
47485#
473276a9 47486if test ${D}{verbose} = 1; then
810b94f0 47487 echo "c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o"
a848cd7e 47488fi
810b94f0 47489c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o
473276a9 47490status=${D}?
a848cd7e
SC
47491
47492#
810b94f0
MW
47493# Link the shared library from the single module created, but only if the
47494# previous command didn't fail:
a848cd7e 47495#
810b94f0
MW
47496if test ${D}{status} = 0; then
47497 if test ${D}{verbose} = 1; then
47498 echo "c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
47499 fi
47500 c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}
47501 status=${D}?
a848cd7e
SC
47502fi
47503
47504#
47505# Remove intermediate module
47506#
473276a9 47507rm -f master.${D}${D}.o
a848cd7e 47508
810b94f0 47509exit ${D}status
a848cd7e 47510EOF
473276a9 47511
583d6b4b
VZ
47512 chmod +x shared-ld-sh
47513
47514 SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
47515 SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
47516
47517
47518 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
47519echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
47520if test "${bakefile_cv_gcc31+set}" = set; then
47521 echo $ECHO_N "(cached) $ECHO_C" >&6
47522else
47523
47524 cat >conftest.$ac_ext <<_ACEOF
47525/* confdefs.h. */
47526_ACEOF
47527cat confdefs.h >>conftest.$ac_ext
47528cat >>conftest.$ac_ext <<_ACEOF
47529/* end confdefs.h. */
47530
47531int
47532main ()
47533{
47534
47535 #if (__GNUC__ < 3) || \
47536 ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
e5efa97e 47537 This is old gcc
583d6b4b 47538 #endif
a848cd7e 47539
583d6b4b
VZ
47540 ;
47541 return 0;
47542}
47543_ACEOF
47544rm -f conftest.$ac_objext
47545if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47546 (eval $ac_compile) 2>conftest.er1
47547 ac_status=$?
47548 grep -v '^ *+' conftest.er1 >conftest.err
47549 rm -f conftest.er1
47550 cat conftest.err >&5
47551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47552 (exit $ac_status); } &&
3ea50042 47553 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
583d6b4b
VZ
47554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47555 (eval $ac_try) 2>&5
47556 ac_status=$?
47557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47558 (exit $ac_status); }; } &&
47559 { ac_try='test -s conftest.$ac_objext'
47560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47561 (eval $ac_try) 2>&5
47562 ac_status=$?
47563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47564 (exit $ac_status); }; }; then
47565
47566 bakefile_cv_gcc31=yes
47567
47568else
47569 echo "$as_me: failed program was:" >&5
47570sed 's/^/| /' conftest.$ac_ext >&5
47571
47572
47573 bakefile_cv_gcc31=no
47574
47575
47576fi
47577rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47578
47579fi
47580echo "$as_me:$LINENO: result: $bakefile_cv_gcc31" >&5
47581echo "${ECHO_T}$bakefile_cv_gcc31" >&6
47582 if test "$bakefile_cv_gcc31" = "no"; then
a848cd7e 47583 SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
a848cd7e 47584 SHARED_LD_CXX="$SHARED_LD_CC"
a848cd7e
SC
47585 else
47586 SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
a848cd7e 47587 SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
a848cd7e
SC
47588 fi
47589
47bd5406
VZ
47590 if test "x$GCC" == "xyes"; then
47591 PIC_FLAG="-dynamic -fPIC"
47592 fi
47593 if test "x$XLCC" = "xyes"; then
47594 PIC_FLAG="-dynamic -DPIC"
47595 fi
a848cd7e
SC
47596 ;;
47597
47598 *-*-aix* )
f6b50c59 47599 if test "x$GCC" = "xyes"; then
583d6b4b 47600 PIC_FLAG=""
f6b50c59 47601
583d6b4b
VZ
47602 case "${BAKEFILE_HOST}" in
47603 *-*-aix5* )
47604 LD_EXPFULL="-Wl,-bexpfull"
47605 ;;
47606 esac
f6b50c59 47607
583d6b4b
VZ
47608 SHARED_LD_CC="\$(CC) -shared $LD_EXPFULL -o"
47609 SHARED_LD_CXX="\$(CXX) -shared $LD_EXPFULL -o"
47610 else
47611 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
a848cd7e
SC
47612set dummy makeC++SharedLib; ac_word=$2
47613echo "$as_me:$LINENO: checking for $ac_word" >&5
47614echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47615if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
47616 echo $ECHO_N "(cached) $ECHO_C" >&6
47617else
47618 if test -n "$AIX_CXX_LD"; then
47619 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
47620else
47621as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47622for as_dir in $PATH
47623do
47624 IFS=$as_save_IFS
47625 test -z "$as_dir" && as_dir=.
47626 for ac_exec_ext in '' $ac_executable_extensions; do
47627 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47628 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
47629 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47630 break 2
47631 fi
47632done
47633done
47634
47635 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
47636fi
47637fi
47638AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
47639if test -n "$AIX_CXX_LD"; then
47640 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
47641echo "${ECHO_T}$AIX_CXX_LD" >&6
47642else
47643 echo "$as_me:$LINENO: result: no" >&5
47644echo "${ECHO_T}no" >&6
47645fi
47646
f6b50c59 47647 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
a848cd7e
SC
47648 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
47649 fi
47650 ;;
47651
47652 *-*-beos* )
1e9e8aba
DE
47653 SHARED_LD_CC="${LD} -nostart -o"
47654 SHARED_LD_CXX="${LD} -nostart -o"
a848cd7e
SC
47655 ;;
47656
47657 *-*-irix* )
47658 if test "x$GCC" != "xyes"; then
47659 PIC_FLAG="-KPIC"
47660 fi
47661 ;;
47662
47663 *-*-cygwin* | *-*-mingw32* )
47664 PIC_FLAG=""
1e9e8aba
DE
47665 SHARED_LD_CC="\$(CC) -shared -o"
47666 SHARED_LD_CXX="\$(CXX) -shared -o"
810b94f0 47667 WINDOWS_IMPLIB=1
a848cd7e
SC
47668 ;;
47669
47670 *-pc-os2_emx | *-pc-os2-emx )
b1d22ded
DE
47671 SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
47672 SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
a848cd7e 47673 PIC_FLAG=""
473276a9
VS
47674
47675D='$'
47676cat <<EOF >dllar.sh
47677#!/bin/sh
47678#
47679# dllar - a tool to build both a .dll and an .a file
47680# from a set of object (.o) files for EMX/OS2.
47681#
47682# Written by Andrew Zabolotny, bit@freya.etu.ru
47683# Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
47684#
47685# This script will accept a set of files on the command line.
47686# All the public symbols from the .o files will be exported into
47687# a .DEF file, then linker will be run (through gcc) against them to
47688# build a shared library consisting of all given .o files. All libraries
47689# (.a) will be first decompressed into component .o files then act as
47690# described above. You can optionally give a description (-d "description")
47691# which will be put into .DLL. To see the list of accepted options (as well
47692# as command-line format) simply run this program without options. The .DLL
47693# is built to be imported by name (there is no guarantee that new versions
47694# of the library you build will have same ordinals for same symbols).
47695#
47696# dllar is free software; you can redistribute it and/or modify
47697# it under the terms of the GNU General Public License as published by
47698# the Free Software Foundation; either version 2, or (at your option)
47699# any later version.
47700#
47701# dllar is distributed in the hope that it will be useful,
47702# but WITHOUT ANY WARRANTY; without even the implied warranty of
47703# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
47704# GNU General Public License for more details.
47705#
47706# You should have received a copy of the GNU General Public License
47707# along with dllar; see the file COPYING. If not, write to the Free
47708# Software Foundation, 59 Temple Place - Suite 330, Boston, MA
47709# 02111-1307, USA.
47710
47711# To successfuly run this program you will need:
47712# - Current drive should have LFN support (HPFS, ext2, network, etc)
47713# (Sometimes dllar generates filenames which won't fit 8.3 scheme)
47714# - gcc
47715# (used to build the .dll)
47716# - emxexp
47717# (used to create .def file from .o files)
47718# - emximp
47719# (used to create .a file from .def file)
47720# - GNU text utilites (cat, sort, uniq)
47721# used to process emxexp output
47722# - GNU file utilities (mv, rm)
47723# - GNU sed
47724# - lxlite (optional, see flag below)
47725# (used for general .dll cleanup)
47726#
47727
47728flag_USE_LXLITE=1;
47729
47730#
47731# helper functions
47732# basnam, variant of basename, which does _not_ remove the path, _iff_
47733# second argument (suffix to remove) is given
47734basnam(){
47735 case ${D}# in
47736 1)
1e9e8aba 47737 echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
473276a9
VS
47738 ;;
47739 2)
47740 echo ${D}1 | sed 's/'${D}2'${D}//'
47741 ;;
47742 *)
47743 echo "error in basnam ${D}*"
47744 exit 8
47745 ;;
47746 esac
47747}
47748
47749# Cleanup temporary files and output
47750CleanUp() {
47751 cd ${D}curDir
47752 for i in ${D}inputFiles ; do
47753 case ${D}i in
47754 *!)
47755 rm -rf \`basnam ${D}i !\`
47756 ;;
47757 *)
47758 ;;
47759 esac
47760 done
47761
47762 # Kill result in case of failure as there is just to many stupid make/nmake
47763 # things out there which doesn't do this.
1e9e8aba 47764 if [ ${D}# -eq 0 ]; then
473276a9
VS
47765 rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
47766 fi
47767}
47768
47769# Print usage and exit script with rc=1.
47770PrintHelp() {
b1d22ded
DE
47771 echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]'
47772 echo ' [-name-mangler-script script.sh]'
47773 echo ' [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]'
47774 echo ' [-ord[inals]] -ex[clude] "symbol(s)"'
47775 echo ' [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]'
1e9e8aba 47776 echo ' [*.o] [*.a]'
473276a9
VS
47777 echo '*> "output_file" should have no extension.'
47778 echo ' If it has the .o, .a or .dll extension, it is automatically removed.'
47779 echo ' The import library name is derived from this and is set to "name".a,'
47780 echo ' unless overridden by -import'
47781 echo '*> "importlib_name" should have no extension.'
47782 echo ' If it has the .o, or .a extension, it is automatically removed.'
47783 echo ' This name is used as the import library name and may be longer and'
47784 echo ' more descriptive than the DLL name which has to follow the old '
47785 echo ' 8.3 convention of FAT.'
b1d22ded
DE
47786 echo '*> "script.sh may be given to override the output_file name by a'
47787 echo ' different name. It is mainly useful if the regular make process'
47788 echo ' of some package does not take into account OS/2 restriction of'
47789 echo ' DLL name lengths. It takes the importlib name as input and is'
47790 echo ' supposed to procude a shorter name as output. The script should'
47791 echo ' expect to get importlib_name without extension and should produce'
47792 echo ' a (max.) 8 letter name without extension.'
473276a9
VS
47793 echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)'
47794 echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
47795 echo ' These flags will be put at the start of GCC command line.'
b1d22ded
DE
47796 echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.'
47797 echo '*> -ex[clude] defines symbols which will not be exported. You can define'
473276a9
VS
47798 echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
47799 echo ' If the last character of a symbol is "*", all symbols beginning'
47800 echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).'
b1d22ded 47801 echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or'
473276a9 47802 echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
b1d22ded 47803 echo '*> -nocrt[dll] switch will disable linking the library against emx''s'
473276a9 47804 echo ' C runtime DLLs.'
b1d22ded 47805 echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.'
473276a9
VS
47806 echo '*> All other switches (for example -L./ or -lmylib) will be passed'
47807 echo ' unchanged to GCC at the end of command line.'
47808 echo '*> If you create a DLL from a library and you do not specify -o,'
47809 echo ' the basename for DLL and import library will be set to library name,'
47810 echo ' the initial library will be renamed to 'name'_s.a (_s for static)'
47811 echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
47812 echo ' library will be renamed into gcc_s.a.'
47813 echo '--------'
47814 echo 'Example:'
47815 echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
47816 echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
47817 CleanUp
47818 exit 1
47819}
47820
47821# Execute a command.
47822# If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
47823# @Uses Whatever CleanUp() uses.
47824doCommand() {
47825 echo "${D}*"
47826 eval ${D}*
47827 rcCmd=${D}?
47828
1e9e8aba 47829 if [ ${D}rcCmd -ne 0 ]; then
473276a9
VS
47830 echo "command failed, exit code="${D}rcCmd
47831 CleanUp
47832 exit ${D}rcCmd
47833 fi
47834}
47835
47836# main routine
47837# setup globals
47838cmdLine=${D}*
47839outFile=""
47840outimpFile=""
47841inputFiles=""
b1d22ded 47842renameScript=""
473276a9
VS
47843description=""
47844CC=gcc.exe
47845CFLAGS="-s -Zcrtdll"
47846EXTRA_CFLAGS=""
47847EXPORT_BY_ORDINALS=0
47848exclude_symbols=""
47849library_flags=""
47850curDir=\`pwd\`
47851curDirS=curDir
47852case ${D}curDirS in
47853*/)
47854 ;;
47855*)
47856 curDirS=${D}{curDirS}"/"
47857 ;;
47858esac
47859# Parse commandline
47860libsToLink=0
b1d22ded 47861omfLinking=0
1e9e8aba 47862while [ ${D}1 ]; do
473276a9
VS
47863 case ${D}1 in
47864 -ord*)
47865 EXPORT_BY_ORDINALS=1;
47866 ;;
47867 -o*)
47868 shift
47869 outFile=${D}1
47870 ;;
47871 -i*)
47872 shift
47873 outimpFile=${D}1
47874 ;;
b1d22ded
DE
47875 -name-mangler-script)
47876 shift
47877 renameScript=${D}1
47878 ;;
473276a9
VS
47879 -d*)
47880 shift
47881 description=${D}1
47882 ;;
47883 -f*)
47884 shift
47885 CFLAGS=${D}1
47886 ;;
47887 -c*)
47888 shift
47889 CC=${D}1
47890 ;;
47891 -h*)
47892 PrintHelp
47893 ;;
47894 -ex*)
47895 shift
47896 exclude_symbols=${D}{exclude_symbols}${D}1" "
47897 ;;
47898 -libf*)
47899 shift
47900 library_flags=${D}{library_flags}${D}1" "
47901 ;;
47902 -nocrt*)
47903 CFLAGS="-s"
47904 ;;
47905 -nolxl*)
47906 flag_USE_LXLITE=0
47907 ;;
47908 -* | /*)
47909 case ${D}1 in
47910 -L* | -l*)
47911 libsToLink=1
47912 ;;
b1d22ded
DE
47913 -Zomf)
47914 omfLinking=1
47915 ;;
473276a9
VS
47916 *)
47917 ;;
47918 esac
47919 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
47920 ;;
b1d22ded
DE
47921 *.dll)
47922 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`"
47923 if [ ${D}omfLinking -eq 1 ]; then
47924 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib"
47925 else
47926 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a"
47927 fi
47928 ;;
473276a9
VS
47929 *)
47930 found=0;
1e9e8aba 47931 if [ ${D}libsToLink -ne 0 ]; then
473276a9
VS
47932 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
47933 else
47934 for file in ${D}1 ; do
1e9e8aba 47935 if [ -f ${D}file ]; then
473276a9
VS
47936 inputFiles="${D}{inputFiles} ${D}file"
47937 found=1
47938 fi
47939 done
1e9e8aba 47940 if [ ${D}found -eq 0 ]; then
473276a9
VS
47941 echo "ERROR: No file(s) found: "${D}1
47942 exit 8
47943 fi
47944 fi
47945 ;;
47946 esac
47947 shift
47948done # iterate cmdline words
47949
47950#
1e9e8aba 47951if [ -z "${D}inputFiles" ]; then
473276a9
VS
47952 echo "dllar: no input files"
47953 PrintHelp
47954fi
47955
47956# Now extract all .o files from .a files
47957newInputFiles=""
47958for file in ${D}inputFiles ; do
47959 case ${D}file in
47960 *.a | *.lib)
47961 case ${D}file in
47962 *.a)
47963 suffix=".a"
47964 AR="ar"
47965 ;;
47966 *.lib)
47967 suffix=".lib"
47968 AR="emxomfar"
47969 EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
47970 ;;
47971 *)
47972 ;;
47973 esac
47974 dirname=\`basnam ${D}file ${D}suffix\`"_%"
47975 mkdir ${D}dirname
1e9e8aba 47976 if [ ${D}? -ne 0 ]; then
473276a9
VS
47977 echo "Failed to create subdirectory ./${D}dirname"
47978 CleanUp
47979 exit 8;
47980 fi
47981 # Append '!' to indicate archive
47982 newInputFiles="${D}newInputFiles ${D}{dirname}!"
47983 doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
47984 cd ${D}curDir
47985 found=0;
47986 for subfile in ${D}dirname/*.o* ; do
1e9e8aba 47987 if [ -f ${D}subfile ]; then
473276a9 47988 found=1
1e9e8aba 47989 if [ -s ${D}subfile ]; then
473276a9
VS
47990 # FIXME: This should be: is file size > 32 byte, _not_ > 0!
47991 newInputFiles="${D}newInputFiles ${D}subfile"
47992 fi
47993 fi
47994 done
1e9e8aba
DE
47995 if [ ${D}found -eq 0 ]; then
47996 echo "WARNING: there are no files in archive \\'${D}file\\'"
473276a9
VS
47997 fi
47998 ;;
47999 *)
48000 newInputFiles="${D}{newInputFiles} ${D}file"
48001 ;;
48002 esac
48003done
48004inputFiles="${D}newInputFiles"
48005
48006# Output filename(s).
48007do_backup=0;
1e9e8aba 48008if [ -z ${D}outFile ]; then
473276a9
VS
48009 do_backup=1;
48010 set outFile ${D}inputFiles; outFile=${D}2
48011fi
48012
48013# If it is an archive, remove the '!' and the '_%' suffixes
48014case ${D}outFile in
48015*_%!)
48016 outFile=\`basnam ${D}outFile _%!\`
48017 ;;
48018*)
48019 ;;
48020esac
48021case ${D}outFile in
48022*.dll)
48023 outFile=\`basnam ${D}outFile .dll\`
48024 ;;
48025*.DLL)
48026 outFile=\`basnam ${D}outFile .DLL\`
48027 ;;
48028*.o)
48029 outFile=\`basnam ${D}outFile .o\`
48030 ;;
48031*.obj)
48032 outFile=\`basnam ${D}outFile .obj\`
48033 ;;
48034*.a)
48035 outFile=\`basnam ${D}outFile .a\`
48036 ;;
48037*.lib)
48038 outFile=\`basnam ${D}outFile .lib\`
48039 ;;
48040*)
48041 ;;
48042esac
48043case ${D}outimpFile in
48044*.a)
48045 outimpFile=\`basnam ${D}outimpFile .a\`
48046 ;;
48047*.lib)
48048 outimpFile=\`basnam ${D}outimpFile .lib\`
48049 ;;
48050*)
48051 ;;
48052esac
1e9e8aba 48053if [ -z ${D}outimpFile ]; then
473276a9
VS
48054 outimpFile=${D}outFile
48055fi
48056defFile="${D}{outFile}.def"
48057arcFile="${D}{outimpFile}.a"
48058arcFile2="${D}{outimpFile}.lib"
b1d22ded
DE
48059
48060#create ${D}dllFile as something matching 8.3 restrictions,
48061if [ -z ${D}renameScript ] ; then
48062 dllFile="${D}outFile"
48063else
48064 dllFile=\`${D}renameScript ${D}outimpFile\`
48065fi
473276a9 48066
1e9e8aba
DE
48067if [ ${D}do_backup -ne 0 ] ; then
48068 if [ -f ${D}arcFile ] ; then
473276a9
VS
48069 doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
48070 fi
1e9e8aba 48071 if [ -f ${D}arcFile2 ] ; then
473276a9
VS
48072 doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
48073 fi
48074fi
48075
48076# Extract public symbols from all the object files.
48077tmpdefFile=${D}{defFile}_%
48078rm -f ${D}tmpdefFile
48079for file in ${D}inputFiles ; do
48080 case ${D}file in
48081 *!)
48082 ;;
48083 *)
48084 doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
48085 ;;
48086 esac
48087done
48088
48089# Create the def file.
48090rm -f ${D}defFile
48091echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
b1d22ded
DE
48092dllFile="${D}{dllFile}.dll"
48093if [ ! -z ${D}description ]; then
1e9e8aba 48094 echo "DESCRIPTION \\"${D}{description}\\"" >> ${D}defFile
473276a9
VS
48095fi
48096echo "EXPORTS" >> ${D}defFile
48097
48098doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
48099grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
48100
48101# Checks if the export is ok or not.
48102for word in ${D}exclude_symbols; do
48103 grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
48104 mv ${D}{tmpdefFile}% ${D}tmpdefFile
48105done
48106
48107
1e9e8aba
DE
48108if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
48109 sed "=" < ${D}tmpdefFile | \\
473276a9
VS
48110 sed '
48111 N
48112 : loop
1e9e8aba 48113 s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
473276a9
VS
48114 t loop
48115 ' > ${D}{tmpdefFile}%
48116 grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
48117else
48118 rm -f ${D}{tmpdefFile}%
48119fi
48120cat ${D}tmpdefFile >> ${D}defFile
48121rm -f ${D}tmpdefFile
48122
48123# Do linking, create implib, and apply lxlite.
48124gccCmdl="";
48125for file in ${D}inputFiles ; do
48126 case ${D}file in
48127 *!)
48128 ;;
48129 *)
48130 gccCmdl="${D}gccCmdl ${D}file"
48131 ;;
48132 esac
48133done
48134doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
48135touch "${D}{outFile}.dll"
48136
48137doCommand "emximp -o ${D}arcFile ${D}defFile"
1e9e8aba 48138if [ ${D}flag_USE_LXLITE -ne 0 ]; then
473276a9 48139 add_flags="";
1e9e8aba 48140 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
473276a9
VS
48141 add_flags="-ynd"
48142 fi
48143 doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
48144fi
48145doCommand "emxomf -s -l ${D}arcFile"
48146
48147# Successful exit.
48148CleanUp 1
48149exit 0
48150EOF
48151
48152 chmod +x dllar.sh
a848cd7e
SC
48153 ;;
48154
1e9e8aba 48155 powerpc-apple-macos* | \
0ad5d837 48156 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | *-*-k*bsd*-gnu | \
a848cd7e
SC
48157 *-*-sunos4* | \
48158 *-*-osf* | \
48159 *-*-dgux5* | \
47a7e797
MW
48160 *-*-sysv5* | \
48161 *-pc-msdosdjgpp )
a848cd7e
SC
48162 ;;
48163
48164 *)
3ecd9f92 48165 esac
a848cd7e 48166
2057db16
VS
48167 if test "x$PIC_FLAG" != "x" ; then
48168 PIC_FLAG="$PIC_FLAG -DPIC"
48169 fi
48170
a848cd7e
SC
48171 if test "x$SHARED_LD_MODULE_CC" = "x" ; then
48172 SHARED_LD_MODULE_CC="$SHARED_LD_CC"
48173 fi
48174 if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
48175 SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
48176 fi
48177
48178
48179
48180
48181
48182
48183
48184
810b94f0 48185
a848cd7e
SC
48186 USE_SOVERSION=0
48187 USE_SOVERLINUX=0
48188 USE_SOVERSOLARIS=0
810b94f0 48189 USE_SOVERCYGWIN=0
a848cd7e
SC
48190 USE_SOSYMLINKS=0
48191 USE_MACVERSION=0
48192 SONAME_FLAG=
48193
48194 case "${BAKEFILE_HOST}" in
0ad5d837 48195 *-*-linux* | *-*-freebsd* | *-*-k*bsd*-gnu )
5f652d0d
VS
48196 SONAME_FLAG="-Wl,-soname,"
48197 USE_SOVERSION=1
48198 USE_SOVERLINUX=1
48199 USE_SOSYMLINKS=1
48200 ;;
48201
a848cd7e
SC
48202 *-*-solaris2* )
48203 SONAME_FLAG="-h "
48204 USE_SOVERSION=1
48205 USE_SOVERSOLARIS=1
48206 USE_SOSYMLINKS=1
48207 ;;
48208
48209 *-*-darwin* )
48210 USE_MACVERSION=1
48211 USE_SOVERSION=1
48212 USE_SOSYMLINKS=1
48213 ;;
810b94f0
MW
48214
48215 *-*-cygwin* )
48216 USE_SOVERSION=1
48217 USE_SOVERCYGWIN=1
48218 ;;
a848cd7e
SC
48219 esac
48220
48221
48222
48223
48224
48225
48226
48227
48228
810b94f0 48229
f10e38c4
VZ
48230 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
48231if test "${enable_dependency_tracking+set}" = set; then
48232 enableval="$enable_dependency_tracking"
48233 bk_use_trackdeps="$enableval"
48234fi;
48235
a848cd7e
SC
48236 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
48237echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
a848cd7e 48238
f10e38c4
VZ
48239 if test "x$bk_use_trackdeps" = "xno" ; then
48240 DEPS_TRACKING=0
48241 echo "$as_me:$LINENO: result: disabled" >&5
48242echo "${ECHO_T}disabled" >&6
48243 else
48244 DEPS_TRACKING=1
48245
48246 if test "x$GCC" = "xyes"; then
48247 DEPSMODE=gcc
48248 case "${BAKEFILE_HOST}" in
48249 *-*-darwin* )
48250 DEPSFLAG="-no-cpp-precomp -MMD"
48251 ;;
48252 * )
48253 DEPSFLAG="-MMD"
48254 ;;
48255 esac
48256 echo "$as_me:$LINENO: result: gcc" >&5
a848cd7e 48257echo "${ECHO_T}gcc" >&6
f10e38c4
VZ
48258 elif test "x$MWCC" = "xyes"; then
48259 DEPSMODE=mwcc
48260 DEPSFLAG="-MM"
48261 echo "$as_me:$LINENO: result: mwcc" >&5
b1d22ded 48262echo "${ECHO_T}mwcc" >&6
f10e38c4
VZ
48263 elif test "x$SUNCC" = "xyes"; then
48264 DEPSMODE=unixcc
48265 DEPSFLAG="-xM1"
48266 echo "$as_me:$LINENO: result: Sun cc" >&5
0ad5d837 48267echo "${ECHO_T}Sun cc" >&6
f10e38c4
VZ
48268 elif test "x$SGICC" = "xyes"; then
48269 DEPSMODE=unixcc
48270 DEPSFLAG="-M"
48271 echo "$as_me:$LINENO: result: SGI cc" >&5
0ad5d837 48272echo "${ECHO_T}SGI cc" >&6
f10e38c4
VZ
48273 elif test "x$HPCC" = "xyes"; then
48274 DEPSMODE=unixcc
48275 DEPSFLAG="+make"
48276 echo "$as_me:$LINENO: result: HP cc" >&5
3006edc0 48277echo "${ECHO_T}HP cc" >&6
f10e38c4
VZ
48278 elif test "x$COMPAQCC" = "xyes"; then
48279 DEPSMODE=gcc
48280 DEPSFLAG="-MD"
48281 echo "$as_me:$LINENO: result: Compaq cc" >&5
a1aa0349 48282echo "${ECHO_T}Compaq cc" >&6
f10e38c4
VZ
48283 else
48284 DEPS_TRACKING=0
48285 echo "$as_me:$LINENO: result: none" >&5
a848cd7e 48286echo "${ECHO_T}none" >&6
f10e38c4 48287 fi
a848cd7e 48288
f10e38c4 48289 if test $DEPS_TRACKING = 1 ; then
473276a9
VS
48290
48291D='$'
48292cat <<EOF >bk-deps
a848cd7e
SC
48293#!/bin/sh
48294
48295# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
48296# script. It is used to track C/C++ files dependencies in portable way.
48297#
48298# Permission is given to use this file in any way.
48299
473276a9 48300DEPSMODE=${DEPSMODE}
a848cd7e 48301DEPSDIR=.deps
0ad5d837 48302DEPSFLAG="${DEPSFLAG}"
a848cd7e 48303
473276a9 48304mkdir -p ${D}DEPSDIR
a848cd7e 48305
473276a9 48306if test ${D}DEPSMODE = gcc ; then
0ad5d837 48307 ${D}* ${D}{DEPSFLAG}
473276a9
VS
48308 status=${D}?
48309 if test ${D}{status} != 0 ; then
48310 exit ${D}{status}
a848cd7e
SC
48311 fi
48312 # move created file to the location we want it in:
473276a9
VS
48313 while test ${D}# -gt 0; do
48314 case "${D}1" in
a848cd7e
SC
48315 -o )
48316 shift
473276a9 48317 objfile=${D}1
a848cd7e
SC
48318 ;;
48319 -* )
48320 ;;
48321 * )
473276a9 48322 srcfile=${D}1
a848cd7e
SC
48323 ;;
48324 esac
48325 shift
48326 done
1e9e8aba
DE
48327 depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
48328 depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
473276a9
VS
48329 if test -f ${D}depfile ; then
48330 sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
48331 rm -f ${D}depfile
a848cd7e 48332 else
a1aa0349 48333 # "g++ -MMD -o fooobj.o foosrc.cpp" produces fooobj.d
1e9e8aba 48334 depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\`
a1aa0349
VZ
48335 if test ! -f ${D}depfile ; then
48336 # "cxx -MD -o fooobj.o foosrc.cpp" creates fooobj.o.d (Compaq C++)
48337 depfile="${D}objfile.d"
48338 fi
473276a9
VS
48339 if test -f ${D}depfile ; then
48340 sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
48341 rm -f ${D}depfile
a848cd7e
SC
48342 fi
48343 fi
48344 exit 0
81f90336 48345elif test ${D}DEPSMODE = mwcc ; then
f6b50c59 48346 ${D}* || exit ${D}?
81f90336
MW
48347 # Run mwcc again with -MM and redirect into the dep file we want
48348 # NOTE: We can't use shift here because we need ${D}* to be valid
48349 prevarg=
48350 for arg in ${D}* ; do
48351 if test "${D}prevarg" = "-o"; then
48352 objfile=${D}arg
48353 else
48354 case "${D}arg" in
48355 -* )
48356 ;;
48357 * )
48358 srcfile=${D}arg
48359 ;;
48360 esac
48361 fi
48362 prevarg="${D}arg"
48363 done
0ad5d837 48364 ${D}* ${D}DEPSFLAG >${D}{DEPSDIR}/${D}{objfile}.d
81f90336 48365 exit 0
0ad5d837 48366elif test ${D}DEPSMODE = unixcc; then
f6b50c59 48367 ${D}* || exit ${D}?
a9e5b1f0
MW
48368 # Run compiler again with deps flag and redirect into the dep file.
48369 # It doesn't work if the '-o FILE' option is used, but without it the
48370 # dependency file will contain the wrong name for the object. So it is
48371 # removed from the command line, and the dep file is fixed with sed.
48372 cmd=""
48373 while test ${D}# -gt 0; do
48374 case "${D}1" in
48375 -o )
48376 shift
48377 objfile=${D}1
48378 ;;
48379 * )
48380 eval arg${D}#=\\${D}1
48381 cmd="${D}cmd \\${D}arg${D}#"
48382 ;;
48383 esac
48384 shift
48385 done
0ad5d837 48386 eval "${D}cmd ${D}DEPSFLAG" | sed "s|.*:|${D}objfile:|" >${D}{DEPSDIR}/${D}{objfile}.d
a9e5b1f0 48387 exit 0
a848cd7e 48388else
473276a9
VS
48389 ${D}*
48390 exit ${D}?
a848cd7e
SC
48391fi
48392EOF
473276a9 48393
f10e38c4
VZ
48394 chmod +x bk-deps
48395 fi
a848cd7e
SC
48396 fi
48397
48398
48399
48400
a848cd7e
SC
48401 case ${BAKEFILE_HOST} in
48402 *-*-cygwin* | *-*-mingw32* )
8ced02f6
DE
48403 if test -n "$ac_tool_prefix"; then
48404 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
48405set dummy ${ac_tool_prefix}windres; ac_word=$2
48406echo "$as_me:$LINENO: checking for $ac_word" >&5
48407echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
48408if test "${ac_cv_prog_WINDRES+set}" = set; then
48409 echo $ECHO_N "(cached) $ECHO_C" >&6
48410else
48411 if test -n "$WINDRES"; then
48412 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
48413else
48414as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48415for as_dir in $PATH
48416do
48417 IFS=$as_save_IFS
48418 test -z "$as_dir" && as_dir=.
48419 for ac_exec_ext in '' $ac_executable_extensions; do
48420 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48421 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
48422 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48423 break 2
48424 fi
48425done
48426done
48427
48428fi
48429fi
48430WINDRES=$ac_cv_prog_WINDRES
48431if test -n "$WINDRES"; then
48432 echo "$as_me:$LINENO: result: $WINDRES" >&5
48433echo "${ECHO_T}$WINDRES" >&6
48434else
48435 echo "$as_me:$LINENO: result: no" >&5
48436echo "${ECHO_T}no" >&6
48437fi
48438
48439fi
48440if test -z "$ac_cv_prog_WINDRES"; then
48441 ac_ct_WINDRES=$WINDRES
48442 # Extract the first word of "windres", so it can be a program name with args.
a848cd7e
SC
48443set dummy windres; ac_word=$2
48444echo "$as_me:$LINENO: checking for $ac_word" >&5
48445echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 48446if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
a848cd7e
SC
48447 echo $ECHO_N "(cached) $ECHO_C" >&6
48448else
8ced02f6
DE
48449 if test -n "$ac_ct_WINDRES"; then
48450 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
a848cd7e
SC
48451else
48452as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48453for as_dir in $PATH
48454do
48455 IFS=$as_save_IFS
48456 test -z "$as_dir" && as_dir=.
48457 for ac_exec_ext in '' $ac_executable_extensions; do
48458 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 48459 ac_cv_prog_ac_ct_WINDRES="windres"
a848cd7e
SC
48460 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48461 break 2
48462 fi
48463done
48464done
48465
a848cd7e
SC
48466fi
48467fi
8ced02f6
DE
48468ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
48469if test -n "$ac_ct_WINDRES"; then
48470 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
48471echo "${ECHO_T}$ac_ct_WINDRES" >&6
a848cd7e
SC
48472else
48473 echo "$as_me:$LINENO: result: no" >&5
48474echo "${ECHO_T}no" >&6
48475fi
48476
8ced02f6
DE
48477 WINDRES=$ac_ct_WINDRES
48478else
48479 WINDRES="$ac_cv_prog_WINDRES"
48480fi
48481
a848cd7e
SC
48482 ;;
48483
1e9e8aba 48484 *-*-darwin* | powerpc-apple-macos* )
a848cd7e
SC
48485 # Extract the first word of "Rez", so it can be a program name with args.
48486set dummy Rez; ac_word=$2
48487echo "$as_me:$LINENO: checking for $ac_word" >&5
48488echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 48489if test "${ac_cv_prog_REZ+set}" = set; then
a848cd7e
SC
48490 echo $ECHO_N "(cached) $ECHO_C" >&6
48491else
8ced02f6
DE
48492 if test -n "$REZ"; then
48493 ac_cv_prog_REZ="$REZ" # Let the user override the test.
a848cd7e
SC
48494else
48495as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48496for as_dir in $PATH
48497do
48498 IFS=$as_save_IFS
48499 test -z "$as_dir" && as_dir=.
48500 for ac_exec_ext in '' $ac_executable_extensions; do
48501 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 48502 ac_cv_prog_REZ="Rez"
a848cd7e
SC
48503 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48504 break 2
48505 fi
48506done
48507done
48508
8ced02f6 48509 test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
a848cd7e
SC
48510fi
48511fi
8ced02f6
DE
48512REZ=$ac_cv_prog_REZ
48513if test -n "$REZ"; then
48514 echo "$as_me:$LINENO: result: $REZ" >&5
48515echo "${ECHO_T}$REZ" >&6
a848cd7e
SC
48516else
48517 echo "$as_me:$LINENO: result: no" >&5
48518echo "${ECHO_T}no" >&6
48519fi
48520
48521 # Extract the first word of "SetFile", so it can be a program name with args.
48522set dummy SetFile; ac_word=$2
48523echo "$as_me:$LINENO: checking for $ac_word" >&5
48524echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
48525if test "${ac_cv_prog_SETFILE+set}" = set; then
48526 echo $ECHO_N "(cached) $ECHO_C" >&6
48527else
48528 if test -n "$SETFILE"; then
48529 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
48530else
48531as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48532for as_dir in $PATH
48533do
48534 IFS=$as_save_IFS
48535 test -z "$as_dir" && as_dir=.
48536 for ac_exec_ext in '' $ac_executable_extensions; do
48537 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48538 ac_cv_prog_SETFILE="SetFile"
48539 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48540 break 2
48541 fi
48542done
48543done
48544
48545 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
48546fi
48547fi
48548SETFILE=$ac_cv_prog_SETFILE
48549if test -n "$SETFILE"; then
48550 echo "$as_me:$LINENO: result: $SETFILE" >&5
48551echo "${ECHO_T}$SETFILE" >&6
48552else
48553 echo "$as_me:$LINENO: result: no" >&5
48554echo "${ECHO_T}no" >&6
48555fi
48556
48557 ;;
48558 esac
48559
48560
48561
48562
48563
8ced02f6 48564
f10e38c4 48565 BAKEFILE_BAKEFILE_M4_VERSION="0.2.0"
a848cd7e 48566
dcc1b6ad 48567
f10e38c4 48568BAKEFILE_AUTOCONF_INC_M4_VERSION="0.2.0"
a848cd7e 48569
646b6ec1 48570
74b84332 48571
a848cd7e
SC
48572 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
48573if test "${enable_precomp_headers+set}" = set; then
48574 enableval="$enable_precomp_headers"
48575 bk_use_pch="$enableval"
48576fi;
48577
48578 GCC_PCH=0
f10e38c4
VZ
48579 ICC_PCH=0
48580 USE_PCH=0
a848cd7e 48581
5c60e845
MW
48582 case ${BAKEFILE_HOST} in
48583 *-*-cygwin* )
48584 bk_use_pch="no"
48585 ;;
48586 esac
48587
a848cd7e
SC
48588 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
48589 if test "x$GCC" = "xyes"; then
48590 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
48591echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
48592 cat >conftest.$ac_ext <<_ACEOF
48593/* confdefs.h. */
48594_ACEOF
48595cat confdefs.h >>conftest.$ac_ext
48596cat >>conftest.$ac_ext <<_ACEOF
48597/* end confdefs.h. */
48598
48599int
48600main ()
48601{
48602
48603 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
e5efa97e 48604 There is no PCH support
a848cd7e
SC
48605 #endif
48606 #if (__GNUC__ < 3)
e5efa97e 48607 There is no PCH support
a848cd7e
SC
48608 #endif
48609 #if (__GNUC__ == 3) && \
48610 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
f10e38c4
VZ
48611 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) || \
48612 ( defined(__INTEL_COMPILER) )
e5efa97e 48613 There is no PCH support
a848cd7e
SC
48614 #endif
48615
48616 ;
48617 return 0;
48618}
48619_ACEOF
48620rm -f conftest.$ac_objext
48621if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 48622 (eval $ac_compile) 2>conftest.er1
a848cd7e 48623 ac_status=$?
ac1cb8d3
VS
48624 grep -v '^ *+' conftest.er1 >conftest.err
48625 rm -f conftest.er1
48626 cat conftest.err >&5
a848cd7e
SC
48627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48628 (exit $ac_status); } &&
3ea50042 48629 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
48630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48631 (eval $ac_try) 2>&5
48632 ac_status=$?
48633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48634 (exit $ac_status); }; } &&
48635 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
48636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48637 (eval $ac_try) 2>&5
48638 ac_status=$?
48639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48640 (exit $ac_status); }; }; then
48641
48642 echo "$as_me:$LINENO: result: yes" >&5
48643echo "${ECHO_T}yes" >&6
a848cd7e
SC
48644 GCC_PCH=1
48645
48646else
48647 echo "$as_me: failed program was:" >&5
48648sed 's/^/| /' conftest.$ac_ext >&5
48649
48650
f10e38c4
VZ
48651 cat >conftest.$ac_ext <<_ACEOF
48652/* confdefs.h. */
48653_ACEOF
48654cat confdefs.h >>conftest.$ac_ext
48655cat >>conftest.$ac_ext <<_ACEOF
48656/* end confdefs.h. */
48657
48658int
48659main ()
48660{
48661
48662 #if !defined(__INTEL_COMPILER) || \
48663 (__INTEL_COMPILER < 800)
e5efa97e 48664 There is no PCH support
f10e38c4
VZ
48665 #endif
48666
48667 ;
48668 return 0;
48669}
48670_ACEOF
48671rm -f conftest.$ac_objext
48672if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48673 (eval $ac_compile) 2>conftest.er1
48674 ac_status=$?
48675 grep -v '^ *+' conftest.er1 >conftest.err
48676 rm -f conftest.er1
48677 cat conftest.err >&5
48678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48679 (exit $ac_status); } &&
3ea50042 48680 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
f10e38c4
VZ
48681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48682 (eval $ac_try) 2>&5
48683 ac_status=$?
48684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48685 (exit $ac_status); }; } &&
48686 { ac_try='test -s conftest.$ac_objext'
48687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48688 (eval $ac_try) 2>&5
48689 ac_status=$?
48690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48691 (exit $ac_status); }; }; then
48692
48693 echo "$as_me:$LINENO: result: yes" >&5
48694echo "${ECHO_T}yes" >&6
48695 ICC_PCH=1
48696
48697else
48698 echo "$as_me: failed program was:" >&5
48699sed 's/^/| /' conftest.$ac_ext >&5
48700
48701
48702 echo "$as_me:$LINENO: result: no" >&5
a848cd7e
SC
48703echo "${ECHO_T}no" >&6
48704
48705fi
ac1cb8d3 48706rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f10e38c4
VZ
48707
48708fi
48709rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48710 if test $GCC_PCH = 1 -o $ICC_PCH = 1 ; then
48711 USE_PCH=1
1e9e8aba
DE
48712
48713D='$'
48714cat <<EOF >bk-make-pch
a848cd7e
SC
48715#!/bin/sh
48716
48717# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
48718# script. It is used to generated precompiled headers.
48719#
48720# Permission is given to use this file in any way.
48721
1e9e8aba
DE
48722outfile="${D}{1}"
48723header="${D}{2}"
a848cd7e
SC
48724shift
48725shift
48726
f10e38c4
VZ
48727compiler=""
48728headerfile=""
48729
1e9e8aba 48730while test ${D}{#} -gt 0; do
f10e38c4 48731 add_to_cmdline=1
1e9e8aba 48732 case "${D}{1}" in
a848cd7e 48733 -I* )
1e9e8aba
DE
48734 incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
48735 if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
48736 headerfile="${D}{incdir}/${D}{header}"
a848cd7e
SC
48737 fi
48738 ;;
f10e38c4
VZ
48739 -use-pch|-use_pch )
48740 shift
48741 add_to_cmdline=0
48742 ;;
a848cd7e 48743 esac
f10e38c4
VZ
48744 if test ${D}add_to_cmdline = 1 ; then
48745 compiler="${D}{compiler} ${D}{1}"
48746 fi
a848cd7e
SC
48747 shift
48748done
48749
1e9e8aba 48750if test "x${D}{headerfile}" = "x" ; then
f10e38c4 48751 echo "error: can't find header ${D}{header} in include paths" >&2
a848cd7e 48752else
1e9e8aba
DE
48753 if test -f ${D}{outfile} ; then
48754 rm -f ${D}{outfile}
a848cd7e 48755 else
1e9e8aba 48756 mkdir -p \`dirname ${D}{outfile}\`
a848cd7e 48757 fi
1e9e8aba 48758 depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
a848cd7e 48759 mkdir -p .deps
f10e38c4
VZ
48760 if test "x${GCC_PCH}" = "x1" ; then
48761 # can do this because gcc is >= 3.4:
48762 ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
48763 elif test "x${ICC_PCH}" = "x1" ; then
48764 filename=pch_gen-${D}${D}
48765 file=${D}{filename}.c
48766 dfile=${D}{filename}.d
48767 cat > ${D}file <<EOT
48768#include "${D}header"
48769EOT
48770 # using -MF icc complains about differing command lines in creation/use
48771 ${D}compiler -c -create_pch ${D}outfile -MMD ${D}file && \\
48772 sed -e "s,^.*:,${D}outfile:," -e "s, ${D}file,," < ${D}dfile > ${D}depsfile && \\
48773 rm -f ${D}file ${D}dfile ${D}{filename}.o
48774 fi
1e9e8aba 48775 exit ${D}{?}
a848cd7e
SC
48776fi
48777EOF
1e9e8aba 48778
a848cd7e
SC
48779 chmod +x bk-make-pch
48780 fi
48781 fi
48782 fi
48783
48784
48785
f10e38c4 48786
a848cd7e
SC
48787 COND_BUILD_DEBUG="#"
48788 if test "x$BUILD" = "xdebug" ; then
48789 COND_BUILD_DEBUG=""
48790 fi
48791
48792 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
48793 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
48794 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
48795 fi
48796
48797 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
48798 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
48799 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
48800 fi
48801
48802 COND_BUILD_DEBUG_UNICODE_0="#"
48803 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
48804 COND_BUILD_DEBUG_UNICODE_0=""
48805 fi
48806
48807 COND_BUILD_DEBUG_UNICODE_1="#"
48808 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
48809 COND_BUILD_DEBUG_UNICODE_1=""
48810 fi
48811
48812 COND_BUILD_RELEASE="#"
48813 if test "x$BUILD" = "xrelease" ; then
48814 COND_BUILD_RELEASE=""
48815 fi
48816
48817 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
48818 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
48819 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
48820 fi
48821
48822 COND_BUILD_RELEASE_UNICODE_0="#"
48823 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
48824 COND_BUILD_RELEASE_UNICODE_0=""
48825 fi
48826
48827 COND_BUILD_RELEASE_UNICODE_1="#"
48828 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
48829 COND_BUILD_RELEASE_UNICODE_1=""
48830 fi
48831
48832 COND_DEBUG_FLAG_1="#"
48833 if test "x$DEBUG_FLAG" = "x1" ; then
48834 COND_DEBUG_FLAG_1=""
48835 fi
48836
48837 COND_DEBUG_INFO_0="#"
48838 if test "x$DEBUG_INFO" = "x0" ; then
48839 COND_DEBUG_INFO_0=""
48840 fi
48841
48842 COND_DEBUG_INFO_1="#"
48843 if test "x$DEBUG_INFO" = "x1" ; then
48844 COND_DEBUG_INFO_1=""
48845 fi
48846
48847 COND_DEPS_TRACKING_0="#"
48848 if test "x$DEPS_TRACKING" = "x0" ; then
48849 COND_DEPS_TRACKING_0=""
48850 fi
48851
48852 COND_DEPS_TRACKING_1="#"
48853 if test "x$DEPS_TRACKING" = "x1" ; then
48854 COND_DEPS_TRACKING_1=""
48855 fi
48856
48857 COND_GCC_PCH_1="#"
48858 if test "x$GCC_PCH" = "x1" ; then
48859 COND_GCC_PCH_1=""
48860 fi
48861
f10e38c4
VZ
48862 COND_ICC_PCH_1="#"
48863 if test "x$ICC_PCH" = "x1" ; then
48864 COND_ICC_PCH_1=""
48865 fi
48866
a848cd7e
SC
48867 COND_MONOLITHIC_0="#"
48868 if test "x$MONOLITHIC" = "x0" ; then
48869 COND_MONOLITHIC_0=""
48870 fi
48871
48872 COND_MONOLITHIC_0_SHARED_0="#"
48873 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
48874 COND_MONOLITHIC_0_SHARED_0=""
48875 fi
48876
3f60522a
JS
48877 COND_MONOLITHIC_0_SHARED_0_USE_AUI_1="#"
48878 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_AUI" = "x1" ; then
48879 COND_MONOLITHIC_0_SHARED_0_USE_AUI_1=""
48880 fi
48881
a848cd7e
SC
48882 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
48883 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
48884 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
48885 fi
48886
90970d69
DE
48887 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
48888 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
48889 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
48890 fi
48891
f10e38c4
VZ
48892 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1="#"
48893 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
48894 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1=""
48895 fi
48896
a848cd7e
SC
48897 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
48898 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
48899 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
48900 fi
48901
6671c68b
VZ
48902 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#"
48903 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
48904 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1=""
48905 fi
48906
a848cd7e
SC
48907 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
48908 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
48909 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
48910 fi
48911
8b6682b9
JS
48912 COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1="#"
48913 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_RICHTEXT" = "x1" ; then
48914 COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1=""
48915 fi
48916
ceec2216
RL
48917 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
48918 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
48919 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
48920 fi
48921
a848cd7e
SC
48922 COND_MONOLITHIC_0_SHARED_1="#"
48923 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
48924 COND_MONOLITHIC_0_SHARED_1=""
48925 fi
48926
3f60522a
JS
48927 COND_MONOLITHIC_0_SHARED_1_USE_AUI_1="#"
48928 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_AUI" = "x1" ; then
48929 COND_MONOLITHIC_0_SHARED_1_USE_AUI_1=""
48930 fi
48931
a848cd7e
SC
48932 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
48933 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
48934 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
48935 fi
48936
90970d69
DE
48937 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
48938 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
48939 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
48940 fi
48941
f10e38c4
VZ
48942 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1="#"
48943 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
48944 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1=""
48945 fi
48946
a848cd7e
SC
48947 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
48948 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
48949 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
48950 fi
48951
6671c68b
VZ
48952 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#"
48953 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
48954 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1=""
48955 fi
48956
a848cd7e
SC
48957 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
48958 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
48959 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
48960 fi
48961
8b6682b9
JS
48962 COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1="#"
48963 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_RICHTEXT" = "x1" ; then
48964 COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1=""
48965 fi
48966
ceec2216
RL
48967 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
48968 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
48969 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
48970 fi
48971
e5efa97e
VZ
48972 COND_MONOLITHIC_0_USE_MEDIA_1="#"
48973 if test "x$MONOLITHIC" = "x0" -a "x$USE_MEDIA" = "x1" ; then
48974 COND_MONOLITHIC_0_USE_MEDIA_1=""
48975 fi
48976
a848cd7e
SC
48977 COND_MONOLITHIC_0_USE_ODBC_1="#"
48978 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
48979 COND_MONOLITHIC_0_USE_ODBC_1=""
48980 fi
48981
48982 COND_MONOLITHIC_1="#"
48983 if test "x$MONOLITHIC" = "x1" ; then
48984 COND_MONOLITHIC_1=""
48985 fi
48986
48987 COND_MONOLITHIC_1_SHARED_0="#"
48988 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
48989 COND_MONOLITHIC_1_SHARED_0=""
48990 fi
48991
48992 COND_MONOLITHIC_1_SHARED_1="#"
48993 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
48994 COND_MONOLITHIC_1_SHARED_1=""
48995 fi
48996
48997 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
48998 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
48999 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
49000 fi
49001
49002 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
49003 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
49004 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
49005 fi
49006
eb730a0c
JS
49007 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="#"
49008 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERCYGWIN" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
49009 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1=""
49010 fi
49011
a848cd7e
SC
49012 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
49013 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
49014 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
49015 fi
49016
49017 COND_PLATFORM_MACOSX_1="#"
49018 if test "x$PLATFORM_MACOSX" = "x1" ; then
49019 COND_PLATFORM_MACOSX_1=""
49020 fi
49021
a30f955f
VS
49022 COND_PLATFORM_MACOSX_1_TOOLKIT_="#"
49023 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then
49024 COND_PLATFORM_MACOSX_1_TOOLKIT_=""
49025 fi
49026
a848cd7e
SC
49027 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
49028 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
49029 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
49030 fi
49031
49032 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
49033 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
49034 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
49035 fi
49036
49037 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
49038 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
49039 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
49040 fi
49041
fc480dc1
DE
49042 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#"
49043 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
49044 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1=""
49045 fi
49046
1e9e8aba
DE
49047 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
49048 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49049 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
49050 fi
49051
ebee3cd0
VS
49052 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
49053 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
49054 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
49055 fi
49056
49057 COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
49058 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
49059 COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
49060 fi
49061
a848cd7e
SC
49062 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
49063 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
49064 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
49065 fi
49066
49067 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
49068 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
49069 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
49070 fi
49071
b48a2016
DE
49072 COND_PLATFORM_MACOS_1="#"
49073 if test "x$PLATFORM_MACOS" = "x1" ; then
49074 COND_PLATFORM_MACOS_1=""
49075 fi
49076
083508af
MW
49077 COND_PLATFORM_MAC_1="#"
49078 if test "x$PLATFORM_MAC" = "x1" ; then
49079 COND_PLATFORM_MAC_1=""
49080 fi
49081
e5efa97e
VZ
49082 COND_PLATFORM_MSDOS_0="#"
49083 if test "x$PLATFORM_MSDOS" = "x0" ; then
49084 COND_PLATFORM_MSDOS_0=""
49085 fi
49086
83d8eb47
MW
49087 COND_PLATFORM_MSDOS_1="#"
49088 if test "x$PLATFORM_MSDOS" = "x1" ; then
49089 COND_PLATFORM_MSDOS_1=""
49090 fi
49091
a848cd7e
SC
49092 COND_PLATFORM_OS2_1="#"
49093 if test "x$PLATFORM_OS2" = "x1" ; then
49094 COND_PLATFORM_OS2_1=""
49095 fi
49096
49097 COND_PLATFORM_UNIX_0="#"
49098 if test "x$PLATFORM_UNIX" = "x0" ; then
49099 COND_PLATFORM_UNIX_0=""
49100 fi
49101
49102 COND_PLATFORM_UNIX_1="#"
49103 if test "x$PLATFORM_UNIX" = "x1" ; then
49104 COND_PLATFORM_UNIX_1=""
49105 fi
49106
49107 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
49108 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
49109 COND_PLATFORM_UNIX_1_USE_GUI_1=""
49110 fi
49111
49112 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
49113 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
49114 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
49115 fi
49116
49117 COND_PLATFORM_WIN32_0="#"
49118 if test "x$PLATFORM_WIN32" = "x0" ; then
49119 COND_PLATFORM_WIN32_0=""
49120 fi
49121
49122 COND_PLATFORM_WIN32_1="#"
49123 if test "x$PLATFORM_WIN32" = "x1" ; then
49124 COND_PLATFORM_WIN32_1=""
49125 fi
49126
49127 COND_SHARED_0="#"
49128 if test "x$SHARED" = "x0" ; then
49129 COND_SHARED_0=""
49130 fi
49131
083508af
MW
49132 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
49133 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
49134 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
49135 fi
49136
49137 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
49138 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
49139 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
49140 fi
49141
49142 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
49143 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
49144 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
49145 fi
49146
a848cd7e
SC
49147 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
49148 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
49149 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
49150 fi
49151
49152 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
49153 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
49154 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
49155 fi
49156
49157 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
49158 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
49159 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
49160 fi
49161
49162 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
49163 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
49164 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
49165 fi
49166
083508af
MW
49167 COND_SHARED_0_USE_XRC_1="#"
49168 if test "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
49169 COND_SHARED_0_USE_XRC_1=""
49170 fi
49171
a848cd7e
SC
49172 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
49173 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
49174 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
49175 fi
49176
49177 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
49178 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
49179 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
49180 fi
49181
49182 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
49183 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
49184 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
49185 fi
49186
49187 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
49188 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
49189 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
49190 fi
49191
49192 COND_SHARED_1="#"
49193 if test "x$SHARED" = "x1" ; then
49194 COND_SHARED_1=""
49195 fi
49196
49197 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
49198 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
49199 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
49200 fi
49201
083508af
MW
49202 COND_SHARED_1_USE_XRC_1="#"
49203 if test "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
49204 COND_SHARED_1_USE_XRC_1=""
49205 fi
49206
a30f955f
VS
49207 COND_TOOLKIT_="#"
49208 if test "x$TOOLKIT" = "x" ; then
49209 COND_TOOLKIT_=""
49210 fi
49211
a848cd7e
SC
49212 COND_TOOLKIT_COCOA="#"
49213 if test "x$TOOLKIT" = "xCOCOA" ; then
49214 COND_TOOLKIT_COCOA=""
49215 fi
49216
a49baeab
DE
49217 COND_TOOLKIT_COCOA_USE_GUI_1="#"
49218 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
49219 COND_TOOLKIT_COCOA_USE_GUI_1=""
49220 fi
49221
a848cd7e
SC
49222 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
49223 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49224 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
49225 fi
49226
b3c86150
VS
49227 COND_TOOLKIT_DFB="#"
49228 if test "x$TOOLKIT" = "xDFB" ; then
49229 COND_TOOLKIT_DFB=""
49230 fi
49231
49232 COND_TOOLKIT_DFB_USE_GUI_1="#"
49233 if test "x$TOOLKIT" = "xDFB" -a "x$USE_GUI" = "x1" ; then
49234 COND_TOOLKIT_DFB_USE_GUI_1=""
49235 fi
49236
a848cd7e
SC
49237 COND_TOOLKIT_GTK="#"
49238 if test "x$TOOLKIT" = "xGTK" ; then
49239 COND_TOOLKIT_GTK=""
49240 fi
49241
d044deea
MW
49242 COND_TOOLKIT_GTK_TOOLKIT_VERSION_="#"
49243 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" ; then
49244 COND_TOOLKIT_GTK_TOOLKIT_VERSION_=""
49245 fi
49246
49247 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2="#"
49248 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" ; then
49249 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2=""
49250 fi
49251
49252 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1="#"
49253 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" ; then
49254 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1=""
49255 fi
49256
49257 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0="#"
49258 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49259 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0=""
49260 fi
49261
49262 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1="#"
49263 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" ; then
49264 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1=""
49265 fi
49266
49267 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0="#"
49268 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49269 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0=""
49270 fi
49271
a848cd7e
SC
49272 COND_TOOLKIT_GTK_USE_GUI_1="#"
49273 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
49274 COND_TOOLKIT_GTK_USE_GUI_1=""
49275 fi
49276
a848cd7e
SC
49277 COND_TOOLKIT_MAC="#"
49278 if test "x$TOOLKIT" = "xMAC" ; then
49279 COND_TOOLKIT_MAC=""
49280 fi
49281
49282 COND_TOOLKIT_MAC_USE_GUI_1="#"
49283 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
49284 COND_TOOLKIT_MAC_USE_GUI_1=""
49285 fi
49286
49287 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
49288 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49289 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
49290 fi
49291
49292 COND_TOOLKIT_MGL="#"
49293 if test "x$TOOLKIT" = "xMGL" ; then
49294 COND_TOOLKIT_MGL=""
49295 fi
49296
49297 COND_TOOLKIT_MGL_USE_GUI_1="#"
49298 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
49299 COND_TOOLKIT_MGL_USE_GUI_1=""
49300 fi
49301
49302 COND_TOOLKIT_MOTIF="#"
49303 if test "x$TOOLKIT" = "xMOTIF" ; then
49304 COND_TOOLKIT_MOTIF=""
49305 fi
49306
49307 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
49308 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
49309 COND_TOOLKIT_MOTIF_USE_GUI_1=""
49310 fi
49311
49312 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
49313 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49314 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
49315 fi
49316
49317 COND_TOOLKIT_MSW="#"
49318 if test "x$TOOLKIT" = "xMSW" ; then
49319 COND_TOOLKIT_MSW=""
49320 fi
49321
49322 COND_TOOLKIT_MSW_USE_GUI_1="#"
49323 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
49324 COND_TOOLKIT_MSW_USE_GUI_1=""
49325 fi
49326
49327 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
49328 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49329 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
49330 fi
49331
0ee4059d
DE
49332 COND_TOOLKIT_MSW_WXUNIV_0="#"
49333 if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
49334 COND_TOOLKIT_MSW_WXUNIV_0=""
49335 fi
49336
a848cd7e
SC
49337 COND_TOOLKIT_PM="#"
49338 if test "x$TOOLKIT" = "xPM" ; then
49339 COND_TOOLKIT_PM=""
49340 fi
49341
49342 COND_TOOLKIT_PM_USE_GUI_1="#"
49343 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
49344 COND_TOOLKIT_PM_USE_GUI_1=""
49345 fi
49346
49347 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
49348 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49349 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
49350 fi
49351
3fd9c298
DE
49352 COND_TOOLKIT_WINCE="#"
49353 if test "x$TOOLKIT" = "xWINCE" ; then
49354 COND_TOOLKIT_WINCE=""
49355 fi
49356
49357 COND_TOOLKIT_WINCE_USE_GUI_1="#"
49358 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
49359 COND_TOOLKIT_WINCE_USE_GUI_1=""
49360 fi
49361
49362 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
49363 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49364 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
49365 fi
49366
0ee4059d
DE
49367 COND_TOOLKIT_WINCE_WXUNIV_0="#"
49368 if test "x$TOOLKIT" = "xWINCE" -a "x$WXUNIV" = "x0" ; then
49369 COND_TOOLKIT_WINCE_WXUNIV_0=""
49370 fi
49371
a848cd7e
SC
49372 COND_TOOLKIT_X11="#"
49373 if test "x$TOOLKIT" = "xX11" ; then
49374 COND_TOOLKIT_X11=""
49375 fi
49376
49377 COND_TOOLKIT_X11_USE_GUI_1="#"
49378 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
49379 COND_TOOLKIT_X11_USE_GUI_1=""
49380 fi
49381
49382 COND_UNICODE_1="#"
49383 if test "x$UNICODE" = "x1" ; then
49384 COND_UNICODE_1=""
49385 fi
49386
49387 COND_USE_EXCEPTIONS_0="#"
49388 if test "x$USE_EXCEPTIONS" = "x0" ; then
49389 COND_USE_EXCEPTIONS_0=""
49390 fi
49391
49392 COND_USE_EXCEPTIONS_1="#"
49393 if test "x$USE_EXCEPTIONS" = "x1" ; then
49394 COND_USE_EXCEPTIONS_1=""
49395 fi
49396
49397 COND_USE_GUI_0="#"
49398 if test "x$USE_GUI" = "x0" ; then
49399 COND_USE_GUI_0=""
49400 fi
49401
49402 COND_USE_GUI_1="#"
49403 if test "x$USE_GUI" = "x1" ; then
49404 COND_USE_GUI_1=""
49405 fi
49406
49407 COND_USE_GUI_1_WXUNIV_0="#"
49408 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49409 COND_USE_GUI_1_WXUNIV_0=""
49410 fi
49411
49412 COND_USE_GUI_1_WXUNIV_1="#"
49413 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
49414 COND_USE_GUI_1_WXUNIV_1=""
49415 fi
49416
49417 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
49418 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
49419 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
49420 fi
49421
49422 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
49423 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
49424 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
49425 fi
49426
49427 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
49428 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
49429 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
49430 fi
49431
083508af
MW
49432 COND_USE_ODBC_1="#"
49433 if test "x$USE_ODBC" = "x1" ; then
49434 COND_USE_ODBC_1=""
49435 fi
49436
49437 COND_USE_OPENGL_1="#"
49438 if test "x$USE_OPENGL" = "x1" ; then
49439 COND_USE_OPENGL_1=""
49440 fi
49441
f10e38c4
VZ
49442 COND_USE_PCH_1="#"
49443 if test "x$USE_PCH" = "x1" ; then
49444 COND_USE_PCH_1=""
49445 fi
49446
a848cd7e
SC
49447 COND_USE_PLUGINS_0="#"
49448 if test "x$USE_PLUGINS" = "x0" ; then
49449 COND_USE_PLUGINS_0=""
49450 fi
49451
0b78747f
MW
49452 COND_USE_RTTI_0="#"
49453 if test "x$USE_RTTI" = "x0" ; then
49454 COND_USE_RTTI_0=""
49455 fi
49456
49457 COND_USE_RTTI_1="#"
49458 if test "x$USE_RTTI" = "x1" ; then
49459 COND_USE_RTTI_1=""
49460 fi
49461
a848cd7e
SC
49462 COND_USE_SOSYMLINKS_1="#"
49463 if test "x$USE_SOSYMLINKS" = "x1" ; then
49464 COND_USE_SOSYMLINKS_1=""
49465 fi
49466
eb730a0c
JS
49467 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="#"
49468 if test "x$USE_SOVERCYGWIN" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
49469 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1=""
49470 fi
49471
a848cd7e
SC
49472 COND_USE_SOVERLINUX_1="#"
49473 if test "x$USE_SOVERLINUX" = "x1" ; then
49474 COND_USE_SOVERLINUX_1=""
49475 fi
49476
49477 COND_USE_SOVERSION_0="#"
49478 if test "x$USE_SOVERSION" = "x0" ; then
49479 COND_USE_SOVERSION_0=""
49480 fi
49481
49482 COND_USE_SOVERSOLARIS_1="#"
49483 if test "x$USE_SOVERSOLARIS" = "x1" ; then
49484 COND_USE_SOVERSOLARIS_1=""
49485 fi
49486
0b78747f
MW
49487 COND_USE_THREADS_0="#"
49488 if test "x$USE_THREADS" = "x0" ; then
49489 COND_USE_THREADS_0=""
49490 fi
49491
49492 COND_USE_THREADS_1="#"
49493 if test "x$USE_THREADS" = "x1" ; then
49494 COND_USE_THREADS_1=""
49495 fi
49496
a13a7f89
RL
49497 COND_USE_XRC_1="#"
49498 if test "x$USE_XRC" = "x1" ; then
49499 COND_USE_XRC_1=""
49500 fi
49501
eb730a0c
JS
49502 COND_WINDOWS_IMPLIB_1="#"
49503 if test "x$WINDOWS_IMPLIB" = "x1" ; then
49504 COND_WINDOWS_IMPLIB_1=""
49505 fi
49506
a848cd7e
SC
49507 COND_WITH_PLUGIN_SDL_1="#"
49508 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
49509 COND_WITH_PLUGIN_SDL_1=""
49510 fi
49511
1e6eb025
VZ
49512 COND_WXUNIV_0="#"
49513 if test "x$WXUNIV" = "x0" ; then
49514 COND_WXUNIV_0=""
49515 fi
49516
a848cd7e
SC
49517 COND_WXUNIV_1="#"
49518 if test "x$WXUNIV" = "x1" ; then
49519 COND_WXUNIV_1=""
49520 fi
49521
49522 COND_WXUSE_EXPAT_BUILTIN="#"
49523 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
49524 COND_WXUSE_EXPAT_BUILTIN=""
49525 fi
49526
49527 COND_WXUSE_LIBJPEG_BUILTIN="#"
49528 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
49529 COND_WXUSE_LIBJPEG_BUILTIN=""
49530 fi
49531
49532 COND_WXUSE_LIBPNG_BUILTIN="#"
49533 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
49534 COND_WXUSE_LIBPNG_BUILTIN=""
49535 fi
49536
49537 COND_WXUSE_LIBTIFF_BUILTIN="#"
49538 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
49539 COND_WXUSE_LIBTIFF_BUILTIN=""
49540 fi
49541
49542 COND_WXUSE_ODBC_BUILTIN="#"
49543 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
49544 COND_WXUSE_ODBC_BUILTIN=""
49545 fi
49546
49547 COND_WXUSE_REGEX_BUILTIN="#"
49548 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
49549 COND_WXUSE_REGEX_BUILTIN=""
49550 fi
49551
49552 COND_WXUSE_ZLIB_BUILTIN="#"
49553 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
49554 COND_WXUSE_ZLIB_BUILTIN=""
49555 fi
49556
49557
49558
810b94f0
MW
49559 if test "$BAKEFILE_AUTOCONF_INC_M4_VERSION" = "" ; then
49560 { { 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
49561echo "$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;}
49562 { (exit 1); exit 1; }; }
49563 fi
49564
2057db16
VS
49565 if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
49566 { { 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
49567echo "$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;}
49568 { (exit 1); exit 1; }; }
49569 fi
49570
a848cd7e 49571
7afc46ab
KO
49572
49573if test "$wxUSE_MAC" = 1 ; then
95768535 49574 if test "x$wxUSE_UNIVERSAL_BINARY" != "xno" ; then
7afc46ab
KO
49575 sed "s/DEPSMODE=gcc/DEPSMODE=none/" < bk-deps > temp
49576 mv temp bk-deps
49577 chmod +x bk-deps
49578 fi
49579fi
49580
ceec2216
RL
49581if test "$wxUSE_SHARED" = "yes"; then
49582
49583 sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'`
49584 EXE_LINKER=`eval echo "$sanitised_bakefile_mess"`
49585
5b674b9d
DE
49586 case "${host}" in
49587 *-pc-os2_emx | *-pc-os2-emx )
49588 SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
49589 SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
49590 cp -p ${srcdir}/src/os2/dllnames.sh .
49591 cp -p ${srcdir}/src/os2/dllar.sh .
49592 ;;
49593 esac
ceec2216
RL
49594else
49595
49596 EXE_LINKER="$CXX -o"
49597
49598fi
69120ee4
VZ
49599if test "$wxUSE_OMF" = "yes"; then
49600 case "${host}" in
49601 *-pc-os2_emx | *-pc-os2-emx )
49602 LDFLAGS="$LDFLAGS -Zlinker /EXEPACK"
49603 LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
49604 WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
49605 ;;
49606 esac
49607fi
a848cd7e 49608
c08ebc62 49609if test $GCC_PCH = 1 ; then
254e8e29 49610 CPPFLAGS="-DWX_PRECOMP $CPPFLAGS"
ddd14b14 49611fi
a848cd7e 49612
5ff751d6 49613WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS $TOOLCHAIN_DEFS"
a848cd7e
SC
49614
49615SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
49616
49617
49618
49619
49620
49621
49622
49623
49624
49625
49626
49627
49628
49629
49630
49631
49632
49633
49634
49635
49636
49637
49638
49639
49640
49641
49642
49643
49644
49645
49646
49647
49648
49649
49650
49651
49652
49653
49654
49655
49656
49657
a848cd7e
SC
49658
49659
49660
49661
49662
49663
49664
49665
49666
49667
49668
49669
a848cd7e
SC
49670
49671
ddd14b14 49672
370d2fd7 49673
8ced02f6 49674
a848cd7e
SC
49675
49676
49677echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
49678echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 49679set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
49680if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
49681 echo $ECHO_N "(cached) $ECHO_C" >&6
49682else
49683 cat >conftest.make <<\_ACEOF
49684all:
49685 @echo 'ac_maketemp="$(MAKE)"'
49686_ACEOF
49687# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
49688eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
49689if test -n "$ac_maketemp"; then
49690 eval ac_cv_prog_make_${ac_make}_set=yes
49691else
49692 eval ac_cv_prog_make_${ac_make}_set=no
49693fi
49694rm -f conftest.make
49695fi
49696if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
49697 echo "$as_me:$LINENO: result: yes" >&5
49698echo "${ECHO_T}yes" >&6
49699 SET_MAKE=
49700else
49701 echo "$as_me:$LINENO: result: no" >&5
49702echo "${ECHO_T}no" >&6
49703 SET_MAKE="MAKE=${MAKE-make}"
49704fi
49705
49706
a848cd7e 49707
ceec2216
RL
49708 ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
49709
a848cd7e 49710
5c60e845
MW
49711if test "$USE_WIN32" = 1; then
49712 ac_config_commands="$ac_config_commands
49713 rcdefs.h
49714 "
49715
49716fi
49717
ceec2216 49718 ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
a848cd7e 49719
a848cd7e 49720
ceec2216 49721 ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
a848cd7e 49722
ceec2216
RL
49723
49724 ac_config_files="$ac_config_files version-script Makefile"
49725
49726
5c60e845 49727 ac_config_commands="$ac_config_commands wx-config"
a848cd7e
SC
49728
49729
9103d280 49730
1c14217d 49731if test "$wxWITH_SUBDIRS" != "no"; then
a848cd7e
SC
49732if test "$wxUSE_GUI" = "yes"; then
49733 SUBDIRS="samples demos utils contrib"
49734else SUBDIRS="samples utils"
49735fi
49736
49737
49738
49739# Check whether --with-cppunit-prefix or --without-cppunit-prefix was given.
49740if test "${with_cppunit_prefix+set}" = set; then
49741 withval="$with_cppunit_prefix"
49742 cppunit_config_prefix="$withval"
49743else
49744 cppunit_config_prefix=""
49745fi;
49746
49747# Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given.
49748if test "${with_cppunit_exec_prefix+set}" = set; then
49749 withval="$with_cppunit_exec_prefix"
49750 cppunit_config_exec_prefix="$withval"
49751else
49752 cppunit_config_exec_prefix=""
49753fi;
49754
49755 if test x$cppunit_config_exec_prefix != x ; then
49756 cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
49757 if test x${CPPUNIT_CONFIG+set} != xset ; then
49758 CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
49759 fi
49760 fi
49761 if test x$cppunit_config_prefix != x ; then
49762 cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
49763 if test x${CPPUNIT_CONFIG+set} != xset ; then
49764 CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
49765 fi
49766 fi
49767
49768 # Extract the first word of "cppunit-config", so it can be a program name with args.
49769set dummy cppunit-config; ac_word=$2
49770echo "$as_me:$LINENO: checking for $ac_word" >&5
49771echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
49772if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
49773 echo $ECHO_N "(cached) $ECHO_C" >&6
49774else
49775 case $CPPUNIT_CONFIG in
49776 [\\/]* | ?:[\\/]*)
49777 ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
49778 ;;
49779 *)
49780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49781for as_dir in $PATH
49782do
49783 IFS=$as_save_IFS
49784 test -z "$as_dir" && as_dir=.
49785 for ac_exec_ext in '' $ac_executable_extensions; do
49786 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
49787 ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
49788 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49789 break 2
49790 fi
49791done
49792done
49793
49794 test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
49795 ;;
49796esac
49797fi
49798CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
49799
49800if test -n "$CPPUNIT_CONFIG"; then
49801 echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
49802echo "${ECHO_T}$CPPUNIT_CONFIG" >&6
49803else
49804 echo "$as_me:$LINENO: result: no" >&5
49805echo "${ECHO_T}no" >&6
49806fi
49807
49808 cppunit_version_min=1.8.0
49809
49810 echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
49811echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6
49812 no_cppunit=""
49813 if test "$CPPUNIT_CONFIG" = "no" ; then
3ecd9f92
MW
49814 echo "$as_me:$LINENO: result: no" >&5
49815echo "${ECHO_T}no" >&6
a848cd7e
SC
49816 no_cppunit=yes
49817 else
49818 CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
49819 CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
49820 cppunit_version=`$CPPUNIT_CONFIG --version`
49821
49822 cppunit_major_version=`echo $cppunit_version | \
49823 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
49824 cppunit_minor_version=`echo $cppunit_version | \
49825 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
49826 cppunit_micro_version=`echo $cppunit_version | \
49827 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
49828
49829 cppunit_major_min=`echo $cppunit_version_min | \
49830 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
49831 cppunit_minor_min=`echo $cppunit_version_min | \
49832 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
49833 cppunit_micro_min=`echo $cppunit_version_min | \
49834 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
49835
49836 cppunit_version_proper=`expr \
49837 $cppunit_major_version \> $cppunit_major_min \| \
49838 $cppunit_major_version \= $cppunit_major_min \& \
49839 $cppunit_minor_version \> $cppunit_minor_min \| \
49840 $cppunit_major_version \= $cppunit_major_min \& \
49841 $cppunit_minor_version \= $cppunit_minor_min \& \
49842 $cppunit_micro_version \>= $cppunit_micro_min `
49843
49844 if test "$cppunit_version_proper" = "1" ; then
49845 echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
49846echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6
49847 else
49848 echo "$as_me:$LINENO: result: no" >&5
49849echo "${ECHO_T}no" >&6
49850 no_cppunit=yes
49851 fi
49852 fi
49853
49854 if test "x$no_cppunit" = x ; then
c2218763 49855 SUBDIRS="$SUBDIRS tests"
a848cd7e
SC
49856 else
49857 CPPUNIT_CFLAGS=""
49858 CPPUNIT_LIBS=""
c2218763 49859 :
a848cd7e
SC
49860 fi
49861
49862
49863
49864
49865
49866for subdir in `echo $SUBDIRS`; do
49867 if test -d ${srcdir}/${subdir} ; then
49868 if test "$wxUSE_GUI" = "yes"; then
49869 if test ${subdir} = "samples"; then
49870 makefiles="samples/Makefile.in $makefiles"
49871 for sample in `echo $SAMPLES_SUBDIRS`; do
49872 if test -d $srcdir/samples/$sample; then
49873 makefiles="samples/$sample/Makefile.in $makefiles"
49874 fi
49875 done
9c112555
MW
49876 else
49877 disabled_var=DISABLED_`echo $subdir | tr [a-z] [A-Z]`;
49878 eval "disabled=\$$disabled_var"
49879 disabled=/`echo X $disabled | sed 's@ @/|/@g'`/
49880 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in) | egrep -v "$disabled"`
a848cd7e
SC
49881 fi
49882 else if test ${subdir} = "samples"; then
49883 makefiles="samples/Makefile.in samples/console/Makefile.in"
49884 elif test ${subdir} = "utils"; then
6537ccf8
VS
49885 makefiles=""
49886 for util in HelpGen tex2rtf ; do
49887 if test -d $srcdir/utils/$util ; then
49888 makefiles="utils/$util/Makefile.in \
49889 utils/$util/src/Makefile.in \
49890 $makefiles"
49891 fi
49892 done
a848cd7e
SC
49893 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
49894 fi
49895 fi
49896
49897 for mkin in $makefiles ; do
49898 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
49899 ac_config_files="$ac_config_files $mk"
49900
49901 done
49902 fi
49903done
1c14217d 49904fi
a848cd7e
SC
49905cat >confcache <<\_ACEOF
49906# This file is a shell script that caches the results of configure
49907# tests run on this system so they can be shared between configure
49908# scripts and configure runs, see configure's option --config-cache.
49909# It is not useful on other systems. If it contains results you don't
49910# want to keep, you may remove or edit it.
49911#
49912# config.status only pays attention to the cache file if you give it
49913# the --recheck option to rerun configure.
49914#
49915# `ac_cv_env_foo' variables (set or unset) will be overridden when
49916# loading this file, other *unset* `ac_cv_foo' will be assigned the
49917# following values.
49918
49919_ACEOF
49920
49921# The following way of writing the cache mishandles newlines in values,
49922# but we know of no workaround that is simple, portable, and efficient.
49923# So, don't put newlines in cache variables' values.
49924# Ultrix sh set writes to stderr and can't be redirected directly,
49925# and sets the high bit in the cache file unless we assign to the vars.
49926{
49927 (set) 2>&1 |
49928 case `(ac_space=' '; set | grep ac_space) 2>&1` in
49929 *ac_space=\ *)
49930 # `set' does not quote correctly, so add quotes (double-quote
49931 # substitution turns \\\\ into \\, and sed turns \\ into \).
49932 sed -n \
ac1cb8d3
VS
49933 "s/'/'\\\\''/g;
49934 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
49935 ;;
49936 *)
49937 # `set' quotes correctly as required by POSIX, so do not add quotes.
49938 sed -n \
ac1cb8d3 49939 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
49940 ;;
49941 esac;
49942} |
49943 sed '
49944 t clear
49945 : clear
49946 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
49947 t end
49948 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
49949 : end' >>confcache
49950if diff $cache_file confcache >/dev/null 2>&1; then :; else
49951 if test -w $cache_file; then
49952 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
49953 cat confcache >$cache_file
49954 else
49955 echo "not updating unwritable cache $cache_file"
49956 fi
49957fi
49958rm -f confcache
49959
49960test "x$prefix" = xNONE && prefix=$ac_default_prefix
49961# Let make expand exec_prefix.
49962test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
49963
49964# VPATH may cause trouble with some makes, so we remove $(srcdir),
49965# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
49966# trailing colons and then remove the whole line if VPATH becomes empty
49967# (actually we leave an empty line to preserve line numbers).
49968if test "x$srcdir" = x.; then
ac1cb8d3 49969 ac_vpsub='/^[ ]*VPATH[ ]*=/{
a848cd7e
SC
49970s/:*\$(srcdir):*/:/;
49971s/:*\${srcdir}:*/:/;
49972s/:*@srcdir@:*/:/;
ac1cb8d3 49973s/^\([^=]*=[ ]*\):*/\1/;
a848cd7e 49974s/:*$//;
ac1cb8d3 49975s/^[^=]*=[ ]*$//;
a848cd7e
SC
49976}'
49977fi
49978
49979DEFS=-DHAVE_CONFIG_H
49980
49981ac_libobjs=
49982ac_ltlibobjs=
49983for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
49984 # 1. Remove the extension, and $U if already installed.
49985 ac_i=`echo "$ac_i" |
ac1cb8d3 49986 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
a848cd7e
SC
49987 # 2. Add them.
49988 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
49989 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
49990done
49991LIBOBJS=$ac_libobjs
49992
49993LTLIBOBJS=$ac_ltlibobjs
49994
49995
49996
49997: ${CONFIG_STATUS=./config.status}
49998ac_clean_files_save=$ac_clean_files
49999ac_clean_files="$ac_clean_files $CONFIG_STATUS"
50000{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
50001echo "$as_me: creating $CONFIG_STATUS" >&6;}
50002cat >$CONFIG_STATUS <<_ACEOF
50003#! $SHELL
50004# Generated by $as_me.
50005# Run this file to recreate the current configuration.
50006# Compiler output produced by configure, useful for debugging
50007# configure, is in config.log if it exists.
50008
50009debug=false
50010ac_cs_recheck=false
50011ac_cs_silent=false
50012SHELL=\${CONFIG_SHELL-$SHELL}
50013_ACEOF
50014
50015cat >>$CONFIG_STATUS <<\_ACEOF
50016## --------------------- ##
50017## M4sh Initialization. ##
50018## --------------------- ##
50019
50020# Be Bourne compatible
50021if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
50022 emulate sh
50023 NULLCMD=:
50024 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
50025 # is contrary to our usage. Disable this feature.
50026 alias -g '${1+"$@"}'='"$@"'
50027elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
50028 set -o posix
50029fi
ac1cb8d3 50030DUALCASE=1; export DUALCASE # for MKS sh
a848cd7e
SC
50031
50032# Support unset when possible.
ac1cb8d3 50033if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a848cd7e
SC
50034 as_unset=unset
50035else
50036 as_unset=false
50037fi
50038
50039
50040# Work around bugs in pre-3.0 UWIN ksh.
50041$as_unset ENV MAIL MAILPATH
50042PS1='$ '
50043PS2='> '
50044PS4='+ '
50045
50046# NLS nuisances.
50047for as_var in \
50048 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
50049 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50050 LC_TELEPHONE LC_TIME
50051do
ac1cb8d3 50052 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
50053 eval $as_var=C; export $as_var
50054 else
50055 $as_unset $as_var
50056 fi
50057done
50058
50059# Required to use basename.
50060if expr a : '\(a\)' >/dev/null 2>&1; then
50061 as_expr=expr
50062else
50063 as_expr=false
50064fi
50065
50066if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
50067 as_basename=basename
50068else
50069 as_basename=false
50070fi
50071
50072
50073# Name of the executable.
50074as_me=`$as_basename "$0" ||
50075$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
50076 X"$0" : 'X\(//\)$' \| \
50077 X"$0" : 'X\(/\)$' \| \
50078 . : '\(.\)' 2>/dev/null ||
50079echo X/"$0" |
50080 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
50081 /^X\/\(\/\/\)$/{ s//\1/; q; }
50082 /^X\/\(\/\).*/{ s//\1/; q; }
50083 s/.*/./; q'`
50084
50085
50086# PATH needs CR, and LINENO needs CR and PATH.
50087# Avoid depending upon Character Ranges.
50088as_cr_letters='abcdefghijklmnopqrstuvwxyz'
50089as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
50090as_cr_Letters=$as_cr_letters$as_cr_LETTERS
50091as_cr_digits='0123456789'
50092as_cr_alnum=$as_cr_Letters$as_cr_digits
50093
50094# The user is always right.
50095if test "${PATH_SEPARATOR+set}" != set; then
50096 echo "#! /bin/sh" >conf$$.sh
50097 echo "exit 0" >>conf$$.sh
50098 chmod +x conf$$.sh
50099 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
50100 PATH_SEPARATOR=';'
50101 else
50102 PATH_SEPARATOR=:
50103 fi
50104 rm -f conf$$.sh
50105fi
50106
50107
50108 as_lineno_1=$LINENO
50109 as_lineno_2=$LINENO
50110 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
50111 test "x$as_lineno_1" != "x$as_lineno_2" &&
50112 test "x$as_lineno_3" = "x$as_lineno_2" || {
50113 # Find who we are. Look in the path if we contain no path at all
50114 # relative or not.
50115 case $0 in
50116 *[\\/]* ) as_myself=$0 ;;
50117 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50118for as_dir in $PATH
50119do
50120 IFS=$as_save_IFS
50121 test -z "$as_dir" && as_dir=.
50122 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
50123done
50124
50125 ;;
50126 esac
50127 # We did not find ourselves, most probably we were run as `sh COMMAND'
50128 # in which case we are not to be found in the path.
50129 if test "x$as_myself" = x; then
50130 as_myself=$0
50131 fi
50132 if test ! -f "$as_myself"; then
50133 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
50134echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
50135 { (exit 1); exit 1; }; }
50136 fi
50137 case $CONFIG_SHELL in
50138 '')
50139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50140for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
50141do
50142 IFS=$as_save_IFS
50143 test -z "$as_dir" && as_dir=.
50144 for as_base in sh bash ksh sh5; do
50145 case $as_dir in
50146 /*)
50147 if ("$as_dir/$as_base" -c '
50148 as_lineno_1=$LINENO
50149 as_lineno_2=$LINENO
50150 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
50151 test "x$as_lineno_1" != "x$as_lineno_2" &&
50152 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
50153 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
50154 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
50155 CONFIG_SHELL=$as_dir/$as_base
50156 export CONFIG_SHELL
50157 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
50158 fi;;
50159 esac
50160 done
50161done
50162;;
50163 esac
50164
50165 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
50166 # uniformly replaced by the line number. The first 'sed' inserts a
50167 # line-number line before each line; the second 'sed' does the real
50168 # work. The second script uses 'N' to pair each line-number line
50169 # with the numbered line, and appends trailing '-' during
50170 # substitution so that $LINENO is not a special case at line end.
50171 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
50172 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
50173 sed '=' <$as_myself |
50174 sed '
50175 N
50176 s,$,-,
50177 : loop
50178 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
50179 t loop
50180 s,-$,,
50181 s,^['$as_cr_digits']*\n,,
50182 ' >$as_me.lineno &&
50183 chmod +x $as_me.lineno ||
50184 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
50185echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
50186 { (exit 1); exit 1; }; }
50187
50188 # Don't try to exec as it changes $[0], causing all sort of problems
50189 # (the dirname of $[0] is not the place where we might find the
50190 # original and so on. Autoconf is especially sensible to this).
50191 . ./$as_me.lineno
50192 # Exit status is that of the last command.
50193 exit
50194}
50195
50196
50197case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
50198 *c*,-n*) ECHO_N= ECHO_C='
50199' ECHO_T=' ' ;;
50200 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
50201 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
50202esac
50203
50204if expr a : '\(a\)' >/dev/null 2>&1; then
50205 as_expr=expr
50206else
50207 as_expr=false
50208fi
50209
50210rm -f conf$$ conf$$.exe conf$$.file
50211echo >conf$$.file
50212if ln -s conf$$.file conf$$ 2>/dev/null; then
50213 # We could just check for DJGPP; but this test a) works b) is more generic
50214 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
50215 if test -f conf$$.exe; then
50216 # Don't use ln at all; we don't have any links
50217 as_ln_s='cp -p'
50218 else
50219 as_ln_s='ln -s'
50220 fi
50221elif ln conf$$.file conf$$ 2>/dev/null; then
50222 as_ln_s=ln
50223else
50224 as_ln_s='cp -p'
50225fi
50226rm -f conf$$ conf$$.exe conf$$.file
50227
50228if mkdir -p . 2>/dev/null; then
50229 as_mkdir_p=:
50230else
ac1cb8d3 50231 test -d ./-p && rmdir ./-p
a848cd7e
SC
50232 as_mkdir_p=false
50233fi
50234
50235as_executable_p="test -f"
50236
50237# Sed expression to map a string onto a valid CPP name.
ac1cb8d3 50238as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
50239
50240# Sed expression to map a string onto a valid variable name.
ac1cb8d3 50241as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
50242
50243
50244# IFS
50245# We need space, tab and new line, in precisely that order.
50246as_nl='
50247'
50248IFS=" $as_nl"
50249
50250# CDPATH.
50251$as_unset CDPATH
50252
50253exec 6>&1
50254
50255# Open the log real soon, to keep \$[0] and so on meaningful, and to
50256# report actual input values of CONFIG_FILES etc. instead of their
50257# values after options handling. Logging --version etc. is OK.
50258exec 5>>config.log
50259{
50260 echo
50261 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
50262## Running $as_me. ##
50263_ASBOX
50264} >&5
50265cat >&5 <<_CSEOF
50266
f1e3914f 50267This file was extended by wxWidgets $as_me 2.7.1, which was
ac1cb8d3 50268generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
50269
50270 CONFIG_FILES = $CONFIG_FILES
50271 CONFIG_HEADERS = $CONFIG_HEADERS
50272 CONFIG_LINKS = $CONFIG_LINKS
50273 CONFIG_COMMANDS = $CONFIG_COMMANDS
50274 $ $0 $@
50275
50276_CSEOF
50277echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
50278echo >&5
50279_ACEOF
50280
50281# Files that config.status was made for.
50282if test -n "$ac_config_files"; then
50283 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
50284fi
50285
50286if test -n "$ac_config_headers"; then
50287 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
50288fi
50289
50290if test -n "$ac_config_links"; then
50291 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
50292fi
50293
50294if test -n "$ac_config_commands"; then
50295 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
50296fi
50297
50298cat >>$CONFIG_STATUS <<\_ACEOF
50299
50300ac_cs_usage="\
50301\`$as_me' instantiates files from templates according to the
50302current configuration.
50303
50304Usage: $0 [OPTIONS] [FILE]...
50305
50306 -h, --help print this help, then exit
50307 -V, --version print version number, then exit
50308 -q, --quiet do not print progress messages
50309 -d, --debug don't remove temporary files
50310 --recheck update $as_me by reconfiguring in the same conditions
50311 --file=FILE[:TEMPLATE]
ac1cb8d3 50312 instantiate the configuration file FILE
a848cd7e 50313 --header=FILE[:TEMPLATE]
ac1cb8d3 50314 instantiate the configuration header FILE
a848cd7e
SC
50315
50316Configuration files:
50317$config_files
50318
50319Configuration headers:
50320$config_headers
50321
50322Configuration commands:
50323$config_commands
50324
50325Report bugs to <bug-autoconf@gnu.org>."
50326_ACEOF
50327
50328cat >>$CONFIG_STATUS <<_ACEOF
50329ac_cs_version="\\
f1e3914f 50330wxWidgets config.status 2.7.1
ac1cb8d3 50331configured by $0, generated by GNU Autoconf 2.59,
a848cd7e
SC
50332 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
50333
ac1cb8d3 50334Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
50335This config.status script is free software; the Free Software Foundation
50336gives unlimited permission to copy, distribute and modify it."
50337srcdir=$srcdir
50338INSTALL="$INSTALL"
50339_ACEOF
50340
50341cat >>$CONFIG_STATUS <<\_ACEOF
50342# If no file are specified by the user, then we need to provide default
50343# value. By we need to know if files were specified by the user.
50344ac_need_defaults=:
50345while test $# != 0
50346do
50347 case $1 in
50348 --*=*)
50349 ac_option=`expr "x$1" : 'x\([^=]*\)='`
50350 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
50351 ac_shift=:
50352 ;;
50353 -*)
50354 ac_option=$1
50355 ac_optarg=$2
50356 ac_shift=shift
50357 ;;
50358 *) # This is not an option, so the user has probably given explicit
50359 # arguments.
50360 ac_option=$1
50361 ac_need_defaults=false;;
50362 esac
50363
50364 case $ac_option in
50365 # Handling of the options.
50366_ACEOF
50367cat >>$CONFIG_STATUS <<\_ACEOF
50368 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
50369 ac_cs_recheck=: ;;
50370 --version | --vers* | -V )
50371 echo "$ac_cs_version"; exit 0 ;;
50372 --he | --h)
50373 # Conflict between --help and --header
50374 { { echo "$as_me:$LINENO: error: ambiguous option: $1
50375Try \`$0 --help' for more information." >&5
50376echo "$as_me: error: ambiguous option: $1
50377Try \`$0 --help' for more information." >&2;}
50378 { (exit 1); exit 1; }; };;
50379 --help | --hel | -h )
50380 echo "$ac_cs_usage"; exit 0 ;;
50381 --debug | --d* | -d )
50382 debug=: ;;
50383 --file | --fil | --fi | --f )
50384 $ac_shift
50385 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
50386 ac_need_defaults=false;;
50387 --header | --heade | --head | --hea )
50388 $ac_shift
50389 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
50390 ac_need_defaults=false;;
50391 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
50392 | -silent | --silent | --silen | --sile | --sil | --si | --s)
50393 ac_cs_silent=: ;;
50394
50395 # This is an error.
50396 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
50397Try \`$0 --help' for more information." >&5
50398echo "$as_me: error: unrecognized option: $1
50399Try \`$0 --help' for more information." >&2;}
50400 { (exit 1); exit 1; }; } ;;
50401
50402 *) ac_config_targets="$ac_config_targets $1" ;;
50403
50404 esac
50405 shift
50406done
50407
50408ac_configure_extra_args=
50409
50410if $ac_cs_silent; then
50411 exec 6>/dev/null
50412 ac_configure_extra_args="$ac_configure_extra_args --silent"
50413fi
50414
50415_ACEOF
50416cat >>$CONFIG_STATUS <<_ACEOF
50417if \$ac_cs_recheck; then
50418 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
50419 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
50420fi
50421
50422_ACEOF
50423
50424cat >>$CONFIG_STATUS <<_ACEOF
50425#
50426# INIT-COMMANDS section.
50427#
50428
5c60e845
MW
50429
50430 CPP="$CPP"
50431 infile="$srcdir/include/wx/msw/genrcdefs.h"
50432 outdir="lib/wx/include/$TOOLCHAIN_FULLNAME/wx/msw"
50433
50434
ceec2216
RL
50435 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
50436 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
50437 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
50438 LN_S="${LN_S}"
a848cd7e
SC
50439
50440
50441_ACEOF
50442
50443
50444
50445cat >>$CONFIG_STATUS <<\_ACEOF
50446for ac_config_target in $ac_config_targets
50447do
50448 case "$ac_config_target" in
50449 # Handling of arguments.
ceec2216
RL
50450 "lib/wx/config/${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
50451 "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
a848cd7e
SC
50452 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
50453 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
50454 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
5c60e845 50455 "rcdefs.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS rcdefs.h" ;;
ceec2216
RL
50456 "wx-config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
50457 "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
50458 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
50459echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
50460 { (exit 1); exit 1; }; };;
50461 esac
50462done
50463
50464# If the user did not use the arguments to specify the items to instantiate,
50465# then the envvar interface is used. Set only those that are not.
50466# We use the long form for the default assignment because of an extremely
50467# bizarre bug on SunOS 4.1.3.
50468if $ac_need_defaults; then
50469 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
50470 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
50471 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
50472fi
50473
50474# Have a temporary directory for convenience. Make it in the build tree
50475# simply because there is no reason to put it here, and in addition,
50476# creating and moving files from /tmp can sometimes cause problems.
50477# Create a temporary directory, and hook for its removal unless debugging.
50478$debug ||
50479{
50480 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
50481 trap '{ (exit 1); exit 1; }' 1 2 13 15
50482}
50483
50484# Create a (secure) tmp directory for tmp files.
50485
50486{
50487 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
50488 test -n "$tmp" && test -d "$tmp"
50489} ||
50490{
50491 tmp=./confstat$$-$RANDOM
50492 (umask 077 && mkdir $tmp)
50493} ||
50494{
50495 echo "$me: cannot create a temporary directory in ." >&2
50496 { (exit 1); exit 1; }
50497}
50498
50499_ACEOF
50500
50501cat >>$CONFIG_STATUS <<_ACEOF
50502
50503#
50504# CONFIG_FILES section.
50505#
50506
50507# No need to generate the scripts if there are no CONFIG_FILES.
50508# This happens for instance when ./config.status config.h
50509if test -n "\$CONFIG_FILES"; then
50510 # Protect against being on the right side of a sed subst in config.status.
50511 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
50512 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
50513s,@SHELL@,$SHELL,;t t
50514s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
50515s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
50516s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
50517s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
50518s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
50519s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
50520s,@exec_prefix@,$exec_prefix,;t t
50521s,@prefix@,$prefix,;t t
50522s,@program_transform_name@,$program_transform_name,;t t
50523s,@bindir@,$bindir,;t t
50524s,@sbindir@,$sbindir,;t t
50525s,@libexecdir@,$libexecdir,;t t
50526s,@datadir@,$datadir,;t t
50527s,@sysconfdir@,$sysconfdir,;t t
50528s,@sharedstatedir@,$sharedstatedir,;t t
50529s,@localstatedir@,$localstatedir,;t t
50530s,@libdir@,$libdir,;t t
50531s,@includedir@,$includedir,;t t
50532s,@oldincludedir@,$oldincludedir,;t t
50533s,@infodir@,$infodir,;t t
50534s,@mandir@,$mandir,;t t
50535s,@build_alias@,$build_alias,;t t
50536s,@host_alias@,$host_alias,;t t
50537s,@target_alias@,$target_alias,;t t
50538s,@DEFS@,$DEFS,;t t
50539s,@ECHO_C@,$ECHO_C,;t t
50540s,@ECHO_N@,$ECHO_N,;t t
50541s,@ECHO_T@,$ECHO_T,;t t
50542s,@LIBS@,$LIBS,;t t
50543s,@build@,$build,;t t
50544s,@build_cpu@,$build_cpu,;t t
50545s,@build_vendor@,$build_vendor,;t t
50546s,@build_os@,$build_os,;t t
50547s,@host@,$host,;t t
50548s,@host_cpu@,$host_cpu,;t t
50549s,@host_vendor@,$host_vendor,;t t
50550s,@host_os@,$host_os,;t t
50551s,@target@,$target,;t t
50552s,@target_cpu@,$target_cpu,;t t
50553s,@target_vendor@,$target_vendor,;t t
50554s,@target_os@,$target_os,;t t
50555s,@CC@,$CC,;t t
50556s,@CFLAGS@,$CFLAGS,;t t
50557s,@LDFLAGS@,$LDFLAGS,;t t
50558s,@CPPFLAGS@,$CPPFLAGS,;t t
50559s,@ac_ct_CC@,$ac_ct_CC,;t t
50560s,@EXEEXT@,$EXEEXT,;t t
50561s,@OBJEXT@,$OBJEXT,;t t
50562s,@CPP@,$CPP,;t t
50563s,@EGREP@,$EGREP,;t t
50564s,@CXX@,$CXX,;t t
50565s,@CXXFLAGS@,$CXXFLAGS,;t t
50566s,@ac_ct_CXX@,$ac_ct_CXX,;t t
50567s,@RANLIB@,$RANLIB,;t t
50568s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
50569s,@AR@,$AR,;t t
8c80d384 50570s,@ac_ct_AR@,$ac_ct_AR,;t t
a848cd7e
SC
50571s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
50572s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
50573s,@INSTALL_DATA@,$INSTALL_DATA,;t t
50574s,@STRIP@,$STRIP,;t t
8c80d384 50575s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
8ced02f6
DE
50576s,@WINDRES@,$WINDRES,;t t
50577s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
8c80d384
DE
50578s,@DLLTOOL@,$DLLTOOL,;t t
50579s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
a848cd7e
SC
50580s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
50581s,@LN_S@,$LN_S,;t t
50582s,@CXXCPP@,$CXXCPP,;t t
50583s,@subdirs@,$subdirs,;t t
50584s,@PKG_CONFIG@,$PKG_CONFIG,;t t
50585s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
50586s,@GTK_LIBS@,$GTK_LIBS,;t t
50587s,@GTK_CONFIG@,$GTK_CONFIG,;t t
b3c86150
VS
50588s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
50589s,@DIRECTFB_CFLAGS@,$DIRECTFB_CFLAGS,;t t
50590s,@DIRECTFB_LIBS@,$DIRECTFB_LIBS,;t t
a848cd7e
SC
50591s,@X_CFLAGS@,$X_CFLAGS,;t t
50592s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
50593s,@X_LIBS@,$X_LIBS,;t t
50594s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
50595s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
50596s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
d1c38808
VZ
50597s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
50598s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
a848cd7e
SC
50599s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
50600s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
8ced02f6 50601s,@REZ@,$REZ,;t t
a848cd7e
SC
50602s,@DEREZ@,$DEREZ,;t t
50603s,@SETFILE@,$SETFILE,;t t
50604s,@LIBICONV@,$LIBICONV,;t t
50605s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
50606s,@SDL_CONFIG@,$SDL_CONFIG,;t t
50607s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
50608s,@SDL_LIBS@,$SDL_LIBS,;t t
d1c38808
VZ
50609s,@LIBGNOMEPRINTUI_CFLAGS@,$LIBGNOMEPRINTUI_CFLAGS,;t t
50610s,@LIBGNOMEPRINTUI_LIBS@,$LIBGNOMEPRINTUI_LIBS,;t t
2b850ae1
RR
50611s,@GNOMEVFS_CFLAGS@,$GNOMEVFS_CFLAGS,;t t
50612s,@GNOMEVFS_LIBS@,$GNOMEVFS_LIBS,;t t
3565d135
RR
50613s,@HILDON_CFLAGS@,$HILDON_CFLAGS,;t t
50614s,@HILDON_LIBS@,$HILDON_LIBS,;t t
f10e38c4
VZ
50615s,@GST_CFLAGS@,$GST_CFLAGS,;t t
50616s,@GST_LIBS@,$GST_LIBS,;t t
a848cd7e
SC
50617s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
50618s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
50619s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
50620s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
50621s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
50622s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
50623s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
50624s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
50625s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
50626s,@VENDOR@,$VENDOR,;t t
50627s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
ceec2216
RL
50628s,@WX_FLAVOUR@,$WX_FLAVOUR,;t t
50629s,@WX_LIB_FLAVOUR@,$WX_LIB_FLAVOUR,;t t
a848cd7e
SC
50630s,@WXUNIV@,$WXUNIV,;t t
50631s,@MONOLITHIC@,$MONOLITHIC,;t t
50632s,@USE_PLUGINS@,$USE_PLUGINS,;t t
50633s,@EXTRALIBS@,$EXTRALIBS,;t t
50634s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
50635s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
50636s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
50637s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
50638s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
50639s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t
50640s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t
d1c38808 50641s,@EXTRALIBS_GNOMEPRINT@,$EXTRALIBS_GNOMEPRINT,;t t
2b850ae1 50642s,@EXTRALIBS_GNOMEVFS@,$EXTRALIBS_GNOMEVFS,;t t
3565d135 50643s,@EXTRALIBS_HILDON@,$EXTRALIBS_HILDON,;t t
a848cd7e
SC
50644s,@UNICODE@,$UNICODE,;t t
50645s,@BUILD@,$BUILD,;t t
50646s,@DEBUG_INFO@,$DEBUG_INFO,;t t
50647s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
a848cd7e
SC
50648s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
50649s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
50650s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
50651s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
50652s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
50653s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t
50654s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t
50655s,@SET_MAKE@,$SET_MAKE,;t t
50656s,@MAKE_SET@,$MAKE_SET,;t t
a848cd7e
SC
50657s,@NM@,$NM,;t t
50658s,@ac_ct_NM@,$ac_ct_NM,;t t
50659s,@INSTALL_DIR@,$INSTALL_DIR,;t t
50660s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
50661s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
50662s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
50663s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
50664s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
1e9e8aba 50665s,@PLATFORM_MACOS@,$PLATFORM_MACOS,;t t
a848cd7e
SC
50666s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
50667s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
1e9e8aba 50668s,@PLATFORM_BEOS@,$PLATFORM_BEOS,;t t
a848cd7e
SC
50669s,@SO_SUFFIX@,$SO_SUFFIX,;t t
50670s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
50671s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t
50672s,@LIBPREFIX@,$LIBPREFIX,;t t
50673s,@LIBEXT@,$LIBEXT,;t t
50674s,@DLLPREFIX@,$DLLPREFIX,;t t
50675s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
810b94f0 50676s,@dlldir@,$dlldir,;t t
a848cd7e
SC
50677s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
50678s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
50679s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
50680s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
50681s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
50682s,@PIC_FLAG@,$PIC_FLAG,;t t
810b94f0 50683s,@WINDOWS_IMPLIB@,$WINDOWS_IMPLIB,;t t
a848cd7e
SC
50684s,@USE_SOVERSION@,$USE_SOVERSION,;t t
50685s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
50686s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
810b94f0 50687s,@USE_SOVERCYGWIN@,$USE_SOVERCYGWIN,;t t
a848cd7e
SC
50688s,@USE_MACVERSION@,$USE_MACVERSION,;t t
50689s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
50690s,@SONAME_FLAG@,$SONAME_FLAG,;t t
50691s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
50692s,@GCC_PCH@,$GCC_PCH,;t t
f10e38c4 50693s,@ICC_PCH@,$ICC_PCH,;t t
a848cd7e
SC
50694s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
50695s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
50696s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
50697s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t
50698s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t
50699s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
50700s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
50701s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t
50702s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t
50703s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
50704s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
50705s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
50706s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
50707s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
50708s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
f10e38c4 50709s,@COND_ICC_PCH_1@,$COND_ICC_PCH_1,;t t
a848cd7e
SC
50710s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
50711s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
3f60522a 50712s,@COND_MONOLITHIC_0_SHARED_0_USE_AUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_AUI_1,;t t
a848cd7e 50713s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
90970d69 50714s,@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 50715s,@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 50716s,@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 50717s,@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 50718s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
8b6682b9 50719s,@COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1@,$COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1,;t t
ceec2216 50720s,@COND_MONOLITHIC_0_SHARED_0_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1,;t t
a848cd7e 50721s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
3f60522a 50722s,@COND_MONOLITHIC_0_SHARED_1_USE_AUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_AUI_1,;t t
a848cd7e 50723s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
90970d69 50724s,@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 50725s,@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 50726s,@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 50727s,@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 50728s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
8b6682b9 50729s,@COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1@,$COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1,;t t
ceec2216 50730s,@COND_MONOLITHIC_0_SHARED_1_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1,;t t
e5efa97e 50731s,@COND_MONOLITHIC_0_USE_MEDIA_1@,$COND_MONOLITHIC_0_USE_MEDIA_1,;t t
a848cd7e
SC
50732s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t
50733s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
50734s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
50735s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
50736s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
50737s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
eb730a0c 50738s,@COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1,;t t
a848cd7e
SC
50739s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
50740s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
a30f955f 50741s,@COND_PLATFORM_MACOSX_1_TOOLKIT_@,$COND_PLATFORM_MACOSX_1_TOOLKIT_,;t t
a848cd7e
SC
50742s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
50743s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
50744s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
fc480dc1 50745s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1,;t t
1e9e8aba 50746s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
ebee3cd0
VS
50747s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t
50748s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t
a848cd7e
SC
50749s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
50750s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
b48a2016 50751s,@COND_PLATFORM_MACOS_1@,$COND_PLATFORM_MACOS_1,;t t
083508af 50752s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
e5efa97e 50753s,@COND_PLATFORM_MSDOS_0@,$COND_PLATFORM_MSDOS_0,;t t
83d8eb47 50754s,@COND_PLATFORM_MSDOS_1@,$COND_PLATFORM_MSDOS_1,;t t
a848cd7e
SC
50755s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
50756s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
50757s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
50758s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
50759s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t
50760s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
50761s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
50762s,@COND_SHARED_0@,$COND_SHARED_0,;t t
083508af
MW
50763s,@COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0,;t t
50764s,@COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0,;t t
50765s,@COND_SHARED_0_TOOLKIT_PM_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0,;t t
a848cd7e
SC
50766s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
50767s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
50768s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
50769s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
083508af 50770s,@COND_SHARED_0_USE_XRC_1@,$COND_SHARED_0_USE_XRC_1,;t t
a848cd7e
SC
50771s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
50772s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
50773s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
50774s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
50775s,@COND_SHARED_1@,$COND_SHARED_1,;t t
50776s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
083508af 50777s,@COND_SHARED_1_USE_XRC_1@,$COND_SHARED_1_USE_XRC_1,;t t
a30f955f 50778s,@COND_TOOLKIT_@,$COND_TOOLKIT_,;t t
a848cd7e 50779s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
a49baeab 50780s,@COND_TOOLKIT_COCOA_USE_GUI_1@,$COND_TOOLKIT_COCOA_USE_GUI_1,;t t
a848cd7e 50781s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
b3c86150
VS
50782s,@COND_TOOLKIT_DFB@,$COND_TOOLKIT_DFB,;t t
50783s,@COND_TOOLKIT_DFB_USE_GUI_1@,$COND_TOOLKIT_DFB_USE_GUI_1,;t t
a848cd7e 50784s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
d044deea
MW
50785s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_,;t t
50786s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2,;t t
50787s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1,;t t
50788s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0,;t t
50789s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1,;t t
50790s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0,;t t
a848cd7e 50791s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
a848cd7e
SC
50792s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
50793s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
50794s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
50795s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
50796s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
50797s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
50798s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
50799s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
50800s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
50801s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
50802s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
0ee4059d 50803s,@COND_TOOLKIT_MSW_WXUNIV_0@,$COND_TOOLKIT_MSW_WXUNIV_0,;t t
a848cd7e
SC
50804s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
50805s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
50806s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
3fd9c298
DE
50807s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t
50808s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t
50809s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t
0ee4059d 50810s,@COND_TOOLKIT_WINCE_WXUNIV_0@,$COND_TOOLKIT_WINCE_WXUNIV_0,;t t
a848cd7e
SC
50811s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
50812s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
50813s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
50814s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
50815s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
50816s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
50817s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
50818s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
50819s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
50820s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
50821s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
50822s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
083508af
MW
50823s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
50824s,@COND_USE_OPENGL_1@,$COND_USE_OPENGL_1,;t t
f10e38c4 50825s,@COND_USE_PCH_1@,$COND_USE_PCH_1,;t t
a848cd7e 50826s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t
0b78747f
MW
50827s,@COND_USE_RTTI_0@,$COND_USE_RTTI_0,;t t
50828s,@COND_USE_RTTI_1@,$COND_USE_RTTI_1,;t t
a848cd7e 50829s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
eb730a0c 50830s,@COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1@,$COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1,;t t
a848cd7e
SC
50831s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
50832s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
50833s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
0b78747f
MW
50834s,@COND_USE_THREADS_0@,$COND_USE_THREADS_0,;t t
50835s,@COND_USE_THREADS_1@,$COND_USE_THREADS_1,;t t
a13a7f89 50836s,@COND_USE_XRC_1@,$COND_USE_XRC_1,;t t
eb730a0c 50837s,@COND_WINDOWS_IMPLIB_1@,$COND_WINDOWS_IMPLIB_1,;t t
a848cd7e 50838s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t
1e6eb025 50839s,@COND_WXUNIV_0@,$COND_WXUNIV_0,;t t
a848cd7e
SC
50840s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
50841s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
50842s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
50843s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
50844s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
50845s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
50846s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
50847s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
ceec2216 50848s,@SHARED@,$SHARED,;t t
a848cd7e
SC
50849s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
50850s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
a848cd7e
SC
50851s,@USE_GUI@,$USE_GUI,;t t
50852s,@AFMINSTALL@,$AFMINSTALL,;t t
50853s,@WIN32INSTALL@,$WIN32INSTALL,;t t
50854s,@TOOLKIT@,$TOOLKIT,;t t
50855s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
a848cd7e 50856s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
ceec2216 50857s,@TOOLCHAIN_FULLNAME@,$TOOLCHAIN_FULLNAME,;t t
a848cd7e 50858s,@cross_compiling@,$cross_compiling,;t t
ceec2216
RL
50859s,@WIDGET_SET@,$WIDGET_SET,;t t
50860s,@WX_RELEASE@,$WX_RELEASE,;t t
50861s,@WX_VERSION@,$WX_VERSION,;t t
50862s,@WX_SUBVERSION@,$WX_SUBVERSION,;t t
50863s,@WX_CHARTYPE@,$WX_CHARTYPE,;t t
50864s,@WX_DEBUGTYPE@,$WX_DEBUGTYPE,;t t
5ff751d6
VZ
50865s,@WXCONFIG_CPPFLAGS@,$WXCONFIG_CPPFLAGS,;t t
50866s,@WXCONFIG_CFLAGS@,$WXCONFIG_CFLAGS,;t t
50867s,@WXCONFIG_CXXFLAGS@,$WXCONFIG_CXXFLAGS,;t t
50868s,@WXCONFIG_LIBS@,$WXCONFIG_LIBS,;t t
a848cd7e
SC
50869s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
50870s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
004ee6da 50871s,@WXCONFIG_RESFLAGS@,$WXCONFIG_RESFLAGS,;t t
ceec2216 50872s,@EXE_LINKER@,$EXE_LINKER,;t t
a848cd7e 50873s,@GUIDIST@,$GUIDIST,;t t
a848cd7e
SC
50874s,@DISTDIR@,$DISTDIR,;t t
50875s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
50876s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
a848cd7e
SC
50877s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
50878s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
50879s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
004ee6da 50880s,@RESCOMP@,$RESCOMP,;t t
a848cd7e
SC
50881s,@RESFLAGS@,$RESFLAGS,;t t
50882s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
50883s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
50884s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
50885s,@LIBWXMACRES@,$LIBWXMACRES,;t t
8ced02f6 50886s,@POSTLINK_COMMAND@,$POSTLINK_COMMAND,;t t
a848cd7e 50887s,@MACSETFILE@,$MACSETFILE,;t t
a848cd7e 50888s,@GCC@,$GCC,;t t
a848cd7e
SC
50889s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t
50890s,@LIBOBJS@,$LIBOBJS,;t t
50891s,@LTLIBOBJS@,$LTLIBOBJS,;t t
50892CEOF
50893
50894_ACEOF
50895
50896 cat >>$CONFIG_STATUS <<\_ACEOF
50897 # Split the substitutions into bite-sized pieces for seds with
50898 # small command number limits, like on Digital OSF/1 and HP-UX.
50899 ac_max_sed_lines=48
50900 ac_sed_frag=1 # Number of current file.
50901 ac_beg=1 # First line for current file.
50902 ac_end=$ac_max_sed_lines # Line after last line for current file.
50903 ac_more_lines=:
50904 ac_sed_cmds=
50905 while $ac_more_lines; do
50906 if test $ac_beg -gt 1; then
50907 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
50908 else
50909 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
50910 fi
50911 if test ! -s $tmp/subs.frag; then
50912 ac_more_lines=false
50913 else
50914 # The purpose of the label and of the branching condition is to
50915 # speed up the sed processing (if there are no `@' at all, there
50916 # is no need to browse any of the substitutions).
50917 # These are the two extra sed commands mentioned above.
50918 (echo ':t
50919 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
50920 if test -z "$ac_sed_cmds"; then
ac1cb8d3 50921 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e 50922 else
ac1cb8d3 50923 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e
SC
50924 fi
50925 ac_sed_frag=`expr $ac_sed_frag + 1`
50926 ac_beg=$ac_end
50927 ac_end=`expr $ac_end + $ac_max_sed_lines`
50928 fi
50929 done
50930 if test -z "$ac_sed_cmds"; then
50931 ac_sed_cmds=cat
50932 fi
50933fi # test -n "$CONFIG_FILES"
50934
50935_ACEOF
50936cat >>$CONFIG_STATUS <<\_ACEOF
50937for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
50938 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
50939 case $ac_file in
50940 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
50941 cat >$tmp/stdin
50942 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
50943 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 50944 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 50945 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
50946 * ) ac_file_in=$ac_file.in ;;
50947 esac
50948
50949 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
50950 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
50951$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
50952 X"$ac_file" : 'X\(//\)[^/]' \| \
50953 X"$ac_file" : 'X\(//\)$' \| \
50954 X"$ac_file" : 'X\(/\)' \| \
50955 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
50956echo X"$ac_file" |
50957 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50958 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50959 /^X\(\/\/\)$/{ s//\1/; q; }
50960 /^X\(\/\).*/{ s//\1/; q; }
50961 s/.*/./; q'`
50962 { if $as_mkdir_p; then
50963 mkdir -p "$ac_dir"
50964 else
50965 as_dir="$ac_dir"
50966 as_dirs=
50967 while test ! -d "$as_dir"; do
50968 as_dirs="$as_dir $as_dirs"
50969 as_dir=`(dirname "$as_dir") 2>/dev/null ||
50970$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
50971 X"$as_dir" : 'X\(//\)[^/]' \| \
50972 X"$as_dir" : 'X\(//\)$' \| \
50973 X"$as_dir" : 'X\(/\)' \| \
50974 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
50975echo X"$as_dir" |
50976 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50977 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50978 /^X\(\/\/\)$/{ s//\1/; q; }
50979 /^X\(\/\).*/{ s//\1/; q; }
50980 s/.*/./; q'`
50981 done
50982 test ! -n "$as_dirs" || mkdir $as_dirs
50983 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
50984echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
50985 { (exit 1); exit 1; }; }; }
50986
50987 ac_builddir=.
50988
50989if test "$ac_dir" != .; then
50990 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
50991 # A "../" for each directory in $ac_dir_suffix.
50992 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
50993else
50994 ac_dir_suffix= ac_top_builddir=
50995fi
50996
50997case $srcdir in
50998 .) # No --srcdir option. We are building in place.
50999 ac_srcdir=.
51000 if test -z "$ac_top_builddir"; then
51001 ac_top_srcdir=.
51002 else
51003 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
51004 fi ;;
51005 [\\/]* | ?:[\\/]* ) # Absolute path.
51006 ac_srcdir=$srcdir$ac_dir_suffix;
51007 ac_top_srcdir=$srcdir ;;
51008 *) # Relative path.
51009 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
51010 ac_top_srcdir=$ac_top_builddir$srcdir ;;
51011esac
ac1cb8d3
VS
51012
51013# Do not use `cd foo && pwd` to compute absolute paths, because
51014# the directories may not exist.
51015case `pwd` in
51016.) ac_abs_builddir="$ac_dir";;
51017*)
51018 case "$ac_dir" in
51019 .) ac_abs_builddir=`pwd`;;
51020 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
51021 *) ac_abs_builddir=`pwd`/"$ac_dir";;
51022 esac;;
51023esac
51024case $ac_abs_builddir in
51025.) ac_abs_top_builddir=${ac_top_builddir}.;;
51026*)
51027 case ${ac_top_builddir}. in
51028 .) ac_abs_top_builddir=$ac_abs_builddir;;
51029 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
51030 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
51031 esac;;
51032esac
51033case $ac_abs_builddir in
51034.) ac_abs_srcdir=$ac_srcdir;;
51035*)
51036 case $ac_srcdir in
51037 .) ac_abs_srcdir=$ac_abs_builddir;;
51038 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
51039 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
51040 esac;;
51041esac
51042case $ac_abs_builddir in
51043.) ac_abs_top_srcdir=$ac_top_srcdir;;
51044*)
51045 case $ac_top_srcdir in
51046 .) ac_abs_top_srcdir=$ac_abs_builddir;;
51047 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
51048 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
51049 esac;;
51050esac
a848cd7e
SC
51051
51052
51053 case $INSTALL in
51054 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
51055 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
51056 esac
51057
a848cd7e
SC
51058 # Let's still pretend it is `configure' which instantiates (i.e., don't
51059 # use $as_me), people would be surprised to read:
51060 # /* config.h. Generated by config.status. */
51061 if test x"$ac_file" = x-; then
51062 configure_input=
51063 else
51064 configure_input="$ac_file. "
51065 fi
51066 configure_input=$configure_input"Generated from `echo $ac_file_in |
ac1cb8d3 51067 sed 's,.*/,,'` by configure."
a848cd7e
SC
51068
51069 # First look for the input files in the build tree, otherwise in the
51070 # src tree.
51071 ac_file_inputs=`IFS=:
51072 for f in $ac_file_in; do
51073 case $f in
51074 -) echo $tmp/stdin ;;
51075 [\\/$]*)
ac1cb8d3
VS
51076 # Absolute (can't be DOS-style, as IFS=:)
51077 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
51078echo "$as_me: error: cannot find input file: $f" >&2;}
51079 { (exit 1); exit 1; }; }
ac1cb8d3 51080 echo "$f";;
a848cd7e 51081 *) # Relative
ac1cb8d3
VS
51082 if test -f "$f"; then
51083 # Build tree
51084 echo "$f"
51085 elif test -f "$srcdir/$f"; then
51086 # Source tree
51087 echo "$srcdir/$f"
51088 else
51089 # /dev/null tree
51090 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
51091echo "$as_me: error: cannot find input file: $f" >&2;}
51092 { (exit 1); exit 1; }; }
ac1cb8d3 51093 fi;;
a848cd7e
SC
51094 esac
51095 done` || { (exit 1); exit 1; }
3ea50042
VZ
51096
51097 if test x"$ac_file" != x-; then
51098 { echo "$as_me:$LINENO: creating $ac_file" >&5
51099echo "$as_me: creating $ac_file" >&6;}
51100 rm -f "$ac_file"
51101 fi
a848cd7e
SC
51102_ACEOF
51103cat >>$CONFIG_STATUS <<_ACEOF
51104 sed "$ac_vpsub
51105$extrasub
51106_ACEOF
51107cat >>$CONFIG_STATUS <<\_ACEOF
51108:t
51109/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
51110s,@configure_input@,$configure_input,;t t
51111s,@srcdir@,$ac_srcdir,;t t
51112s,@abs_srcdir@,$ac_abs_srcdir,;t t
51113s,@top_srcdir@,$ac_top_srcdir,;t t
51114s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
51115s,@builddir@,$ac_builddir,;t t
51116s,@abs_builddir@,$ac_abs_builddir,;t t
51117s,@top_builddir@,$ac_top_builddir,;t t
51118s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
51119s,@INSTALL@,$ac_INSTALL,;t t
51120" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
51121 rm -f $tmp/stdin
51122 if test x"$ac_file" != x-; then
51123 mv $tmp/out $ac_file
51124 else
51125 cat $tmp/out
51126 rm -f $tmp/out
51127 fi
51128
ceec2216
RL
51129 # Run the commands associated with the file.
51130 case $ac_file in
51131 lib/wx/config/${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME} ;;
51132 lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ;;
51133 esac
a848cd7e
SC
51134done
51135_ACEOF
51136cat >>$CONFIG_STATUS <<\_ACEOF
51137
51138#
51139# CONFIG_HEADER section.
51140#
51141
51142# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
51143# NAME is the cpp macro being defined and VALUE is the value it is being given.
51144#
51145# ac_d sets the value in "#define NAME VALUE" lines.
ac1cb8d3
VS
51146ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
51147ac_dB='[ ].*$,\1#\2'
a848cd7e
SC
51148ac_dC=' '
51149ac_dD=',;t'
51150# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ac1cb8d3 51151ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
a848cd7e
SC
51152ac_uB='$,\1#\2define\3'
51153ac_uC=' '
51154ac_uD=',;t'
51155
51156for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
51157 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
51158 case $ac_file in
51159 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
51160 cat >$tmp/stdin
51161 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
51162 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 51163 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 51164 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
51165 * ) ac_file_in=$ac_file.in ;;
51166 esac
51167
51168 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
51169echo "$as_me: creating $ac_file" >&6;}
51170
51171 # First look for the input files in the build tree, otherwise in the
51172 # src tree.
51173 ac_file_inputs=`IFS=:
51174 for f in $ac_file_in; do
51175 case $f in
51176 -) echo $tmp/stdin ;;
51177 [\\/$]*)
ac1cb8d3
VS
51178 # Absolute (can't be DOS-style, as IFS=:)
51179 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
51180echo "$as_me: error: cannot find input file: $f" >&2;}
51181 { (exit 1); exit 1; }; }
ac1cb8d3
VS
51182 # Do quote $f, to prevent DOS paths from being IFS'd.
51183 echo "$f";;
a848cd7e 51184 *) # Relative
ac1cb8d3
VS
51185 if test -f "$f"; then
51186 # Build tree
51187 echo "$f"
51188 elif test -f "$srcdir/$f"; then
51189 # Source tree
51190 echo "$srcdir/$f"
51191 else
51192 # /dev/null tree
51193 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
51194echo "$as_me: error: cannot find input file: $f" >&2;}
51195 { (exit 1); exit 1; }; }
ac1cb8d3 51196 fi;;
a848cd7e
SC
51197 esac
51198 done` || { (exit 1); exit 1; }
51199 # Remove the trailing spaces.
ac1cb8d3 51200 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
a848cd7e
SC
51201
51202_ACEOF
51203
51204# Transform confdefs.h into two sed scripts, `conftest.defines' and
51205# `conftest.undefs', that substitutes the proper values into
51206# config.h.in to produce config.h. The first handles `#define'
51207# templates, and the second `#undef' templates.
51208# And first: Protect against being on the right side of a sed subst in
51209# config.status. Protect against being in an unquoted here document
51210# in config.status.
51211rm -f conftest.defines conftest.undefs
51212# Using a here document instead of a string reduces the quoting nightmare.
51213# Putting comments in sed scripts is not portable.
51214#
51215# `end' is used to avoid that the second main sed command (meant for
51216# 0-ary CPP macros) applies to n-ary macro definitions.
51217# See the Autoconf documentation for `clear'.
51218cat >confdef2sed.sed <<\_ACEOF
51219s/[\\&,]/\\&/g
51220s,[\\$`],\\&,g
51221t clear
51222: clear
ac1cb8d3 51223s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
a848cd7e 51224t end
ac1cb8d3 51225s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
a848cd7e
SC
51226: end
51227_ACEOF
51228# If some macros were called several times there might be several times
51229# the same #defines, which is useless. Nevertheless, we may not want to
51230# sort them, since we want the *last* AC-DEFINE to be honored.
51231uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
51232sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
51233rm -f confdef2sed.sed
51234
51235# This sed command replaces #undef with comments. This is necessary, for
51236# example, in the case of _POSIX_SOURCE, which is predefined and required
51237# on some systems where configure will not decide to define it.
51238cat >>conftest.undefs <<\_ACEOF
ac1cb8d3 51239s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
a848cd7e
SC
51240_ACEOF
51241
51242# Break up conftest.defines because some shells have a limit on the size
51243# of here documents, and old seds have small limits too (100 cmds).
51244echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
ac1cb8d3 51245echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
a848cd7e
SC
51246echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
51247echo ' :' >>$CONFIG_STATUS
51248rm -f conftest.tail
51249while grep . conftest.defines >/dev/null
51250do
51251 # Write a limited-size here document to $tmp/defines.sed.
51252 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
51253 # Speed up: don't consider the non `#define' lines.
ac1cb8d3 51254 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
a848cd7e
SC
51255 # Work around the forget-to-reset-the-flag bug.
51256 echo 't clr' >>$CONFIG_STATUS
51257 echo ': clr' >>$CONFIG_STATUS
51258 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
51259 echo 'CEOF
51260 sed -f $tmp/defines.sed $tmp/in >$tmp/out
51261 rm -f $tmp/in
51262 mv $tmp/out $tmp/in
51263' >>$CONFIG_STATUS
51264 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
51265 rm -f conftest.defines
51266 mv conftest.tail conftest.defines
51267done
51268rm -f conftest.defines
51269echo ' fi # grep' >>$CONFIG_STATUS
51270echo >>$CONFIG_STATUS
51271
51272# Break up conftest.undefs because some shells have a limit on the size
51273# of here documents, and old seds have small limits too (100 cmds).
51274echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
51275rm -f conftest.tail
51276while grep . conftest.undefs >/dev/null
51277do
51278 # Write a limited-size here document to $tmp/undefs.sed.
51279 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
51280 # Speed up: don't consider the non `#undef'
ac1cb8d3 51281 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
a848cd7e
SC
51282 # Work around the forget-to-reset-the-flag bug.
51283 echo 't clr' >>$CONFIG_STATUS
51284 echo ': clr' >>$CONFIG_STATUS
51285 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
51286 echo 'CEOF
51287 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
51288 rm -f $tmp/in
51289 mv $tmp/out $tmp/in
51290' >>$CONFIG_STATUS
51291 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
51292 rm -f conftest.undefs
51293 mv conftest.tail conftest.undefs
51294done
51295rm -f conftest.undefs
51296
51297cat >>$CONFIG_STATUS <<\_ACEOF
51298 # Let's still pretend it is `configure' which instantiates (i.e., don't
51299 # use $as_me), people would be surprised to read:
51300 # /* config.h. Generated by config.status. */
51301 if test x"$ac_file" = x-; then
51302 echo "/* Generated by configure. */" >$tmp/config.h
51303 else
51304 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
51305 fi
51306 cat $tmp/in >>$tmp/config.h
51307 rm -f $tmp/in
51308 if test x"$ac_file" != x-; then
51309 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
51310 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
51311echo "$as_me: $ac_file is unchanged" >&6;}
51312 else
51313 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
51314$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
51315 X"$ac_file" : 'X\(//\)[^/]' \| \
51316 X"$ac_file" : 'X\(//\)$' \| \
51317 X"$ac_file" : 'X\(/\)' \| \
51318 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
51319echo X"$ac_file" |
51320 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
51321 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
51322 /^X\(\/\/\)$/{ s//\1/; q; }
51323 /^X\(\/\).*/{ s//\1/; q; }
51324 s/.*/./; q'`
51325 { if $as_mkdir_p; then
51326 mkdir -p "$ac_dir"
51327 else
51328 as_dir="$ac_dir"
51329 as_dirs=
51330 while test ! -d "$as_dir"; do
51331 as_dirs="$as_dir $as_dirs"
51332 as_dir=`(dirname "$as_dir") 2>/dev/null ||
51333$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
51334 X"$as_dir" : 'X\(//\)[^/]' \| \
51335 X"$as_dir" : 'X\(//\)$' \| \
51336 X"$as_dir" : 'X\(/\)' \| \
51337 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
51338echo X"$as_dir" |
51339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
51340 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
51341 /^X\(\/\/\)$/{ s//\1/; q; }
51342 /^X\(\/\).*/{ s//\1/; q; }
51343 s/.*/./; q'`
51344 done
51345 test ! -n "$as_dirs" || mkdir $as_dirs
51346 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
51347echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
51348 { (exit 1); exit 1; }; }; }
51349
51350 rm -f $ac_file
51351 mv $tmp/config.h $ac_file
51352 fi
51353 else
51354 cat $tmp/config.h
51355 rm -f $tmp/config.h
51356 fi
51357done
51358_ACEOF
51359cat >>$CONFIG_STATUS <<\_ACEOF
51360
51361#
51362# CONFIG_COMMANDS section.
51363#
51364for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
51365 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
51366 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
51367 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
51368$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
51369 X"$ac_dest" : 'X\(//\)[^/]' \| \
51370 X"$ac_dest" : 'X\(//\)$' \| \
51371 X"$ac_dest" : 'X\(/\)' \| \
51372 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
51373echo X"$ac_dest" |
51374 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
51375 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
51376 /^X\(\/\/\)$/{ s//\1/; q; }
51377 /^X\(\/\).*/{ s//\1/; q; }
51378 s/.*/./; q'`
ac1cb8d3
VS
51379 { if $as_mkdir_p; then
51380 mkdir -p "$ac_dir"
51381 else
51382 as_dir="$ac_dir"
51383 as_dirs=
51384 while test ! -d "$as_dir"; do
51385 as_dirs="$as_dir $as_dirs"
51386 as_dir=`(dirname "$as_dir") 2>/dev/null ||
51387$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
51388 X"$as_dir" : 'X\(//\)[^/]' \| \
51389 X"$as_dir" : 'X\(//\)$' \| \
51390 X"$as_dir" : 'X\(/\)' \| \
51391 . : '\(.\)' 2>/dev/null ||
51392echo X"$as_dir" |
51393 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
51394 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
51395 /^X\(\/\/\)$/{ s//\1/; q; }
51396 /^X\(\/\).*/{ s//\1/; q; }
51397 s/.*/./; q'`
51398 done
51399 test ! -n "$as_dirs" || mkdir $as_dirs
51400 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
51401echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
51402 { (exit 1); exit 1; }; }; }
51403
a848cd7e
SC
51404 ac_builddir=.
51405
51406if test "$ac_dir" != .; then
51407 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
51408 # A "../" for each directory in $ac_dir_suffix.
51409 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
51410else
51411 ac_dir_suffix= ac_top_builddir=
51412fi
51413
51414case $srcdir in
51415 .) # No --srcdir option. We are building in place.
51416 ac_srcdir=.
51417 if test -z "$ac_top_builddir"; then
51418 ac_top_srcdir=.
51419 else
51420 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
51421 fi ;;
51422 [\\/]* | ?:[\\/]* ) # Absolute path.
51423 ac_srcdir=$srcdir$ac_dir_suffix;
51424 ac_top_srcdir=$srcdir ;;
51425 *) # Relative path.
51426 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
51427 ac_top_srcdir=$ac_top_builddir$srcdir ;;
51428esac
ac1cb8d3
VS
51429
51430# Do not use `cd foo && pwd` to compute absolute paths, because
51431# the directories may not exist.
51432case `pwd` in
51433.) ac_abs_builddir="$ac_dir";;
51434*)
51435 case "$ac_dir" in
51436 .) ac_abs_builddir=`pwd`;;
51437 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
51438 *) ac_abs_builddir=`pwd`/"$ac_dir";;
51439 esac;;
51440esac
51441case $ac_abs_builddir in
51442.) ac_abs_top_builddir=${ac_top_builddir}.;;
51443*)
51444 case ${ac_top_builddir}. in
51445 .) ac_abs_top_builddir=$ac_abs_builddir;;
51446 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
51447 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
51448 esac;;
51449esac
51450case $ac_abs_builddir in
51451.) ac_abs_srcdir=$ac_srcdir;;
51452*)
51453 case $ac_srcdir in
51454 .) ac_abs_srcdir=$ac_abs_builddir;;
51455 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
51456 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
51457 esac;;
51458esac
51459case $ac_abs_builddir in
51460.) ac_abs_top_srcdir=$ac_top_srcdir;;
51461*)
51462 case $ac_top_srcdir in
51463 .) ac_abs_top_srcdir=$ac_abs_builddir;;
51464 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
51465 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
51466 esac;;
51467esac
a848cd7e
SC
51468
51469
51470 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
51471echo "$as_me: executing $ac_dest commands" >&6;}
51472 case $ac_dest in
5c60e845
MW
51473 rcdefs.h )
51474 mkdir -p $outdir &&
51475 $CPP $infile | sed 's/^# *[1-9].*//;s/^ *//;/./,/^$/!d' > $outdir/rcdefs.h
51476 ;;
ceec2216
RL
51477 wx-config ) rm -f wx-config
51478 ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
51479 ;;
a848cd7e
SC
51480 esac
51481done
51482_ACEOF
51483
51484cat >>$CONFIG_STATUS <<\_ACEOF
51485
51486{ (exit 0); exit 0; }
51487_ACEOF
51488chmod +x $CONFIG_STATUS
51489ac_clean_files=$ac_clean_files_save
51490
51491
51492# configure is writing to config.log, and then calls config.status.
51493# config.status does its own redirection, appending to config.log.
51494# Unfortunately, on DOS this fails, as config.log is still kept open
51495# by configure, so config.status won't be able to write to it; its
51496# output is simply discarded. So we exec the FD to /dev/null,
51497# effectively closing config.log, so it can be properly (re)opened and
51498# appended to by config.status. When coming back to configure, we
51499# need to make the FD available again.
51500if test "$no_create" != yes; then
51501 ac_cs_success=:
51502 ac_config_status_args=
51503 test "$silent" = yes &&
51504 ac_config_status_args="$ac_config_status_args --quiet"
51505 exec 5>/dev/null
51506 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
51507 exec 5>>config.log
51508 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
51509 # would make configure fail if this is the last instruction.
51510 $ac_cs_success || { (exit 1); exit 1; }
51511fi
51512
51513#
51514# CONFIG_SUBDIRS section.
51515#
51516if test "$no_recursion" != yes; then
51517
51518 # Remove --cache-file and --srcdir arguments so they do not pile up.
51519 ac_sub_configure_args=
51520 ac_prev=
51521 for ac_arg in $ac_configure_args; do
51522 if test -n "$ac_prev"; then
51523 ac_prev=
51524 continue
51525 fi
51526 case $ac_arg in
51527 -cache-file | --cache-file | --cache-fil | --cache-fi \
51528 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
51529 ac_prev=cache_file ;;
51530 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
51531 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
51532 | --c=*)
51533 ;;
51534 --config-cache | -C)
51535 ;;
51536 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
51537 ac_prev=srcdir ;;
51538 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
51539 ;;
51540 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
51541 ac_prev=prefix ;;
51542 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
51543 ;;
51544 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
51545 esac
51546 done
51547
51548 # Always prepend --prefix to ensure using the same prefix
51549 # in subdir configurations.
51550 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
51551
51552 ac_popdir=`pwd`
51553 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
51554
51555 # Do not complain, so a configure script can configure whichever
51556 # parts of a large source tree are present.
51557 test -d $srcdir/$ac_dir || continue
51558
51559 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
51560echo "$as_me: configuring in $ac_dir" >&6;}
51561 { if $as_mkdir_p; then
51562 mkdir -p "$ac_dir"
51563 else
51564 as_dir="$ac_dir"
51565 as_dirs=
51566 while test ! -d "$as_dir"; do
51567 as_dirs="$as_dir $as_dirs"
51568 as_dir=`(dirname "$as_dir") 2>/dev/null ||
51569$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
51570 X"$as_dir" : 'X\(//\)[^/]' \| \
51571 X"$as_dir" : 'X\(//\)$' \| \
51572 X"$as_dir" : 'X\(/\)' \| \
51573 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
51574echo X"$as_dir" |
51575 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
51576 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
51577 /^X\(\/\/\)$/{ s//\1/; q; }
51578 /^X\(\/\).*/{ s//\1/; q; }
51579 s/.*/./; q'`
51580 done
51581 test ! -n "$as_dirs" || mkdir $as_dirs
51582 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
51583echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
51584 { (exit 1); exit 1; }; }; }
51585
51586 ac_builddir=.
51587
51588if test "$ac_dir" != .; then
51589 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
51590 # A "../" for each directory in $ac_dir_suffix.
51591 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
51592else
51593 ac_dir_suffix= ac_top_builddir=
51594fi
51595
51596case $srcdir in
51597 .) # No --srcdir option. We are building in place.
51598 ac_srcdir=.
51599 if test -z "$ac_top_builddir"; then
51600 ac_top_srcdir=.
51601 else
51602 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
51603 fi ;;
51604 [\\/]* | ?:[\\/]* ) # Absolute path.
51605 ac_srcdir=$srcdir$ac_dir_suffix;
51606 ac_top_srcdir=$srcdir ;;
51607 *) # Relative path.
51608 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
51609 ac_top_srcdir=$ac_top_builddir$srcdir ;;
51610esac
ac1cb8d3
VS
51611
51612# Do not use `cd foo && pwd` to compute absolute paths, because
51613# the directories may not exist.
51614case `pwd` in
51615.) ac_abs_builddir="$ac_dir";;
51616*)
51617 case "$ac_dir" in
51618 .) ac_abs_builddir=`pwd`;;
51619 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
51620 *) ac_abs_builddir=`pwd`/"$ac_dir";;
51621 esac;;
51622esac
51623case $ac_abs_builddir in
51624.) ac_abs_top_builddir=${ac_top_builddir}.;;
51625*)
51626 case ${ac_top_builddir}. in
51627 .) ac_abs_top_builddir=$ac_abs_builddir;;
51628 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
51629 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
51630 esac;;
51631esac
51632case $ac_abs_builddir in
51633.) ac_abs_srcdir=$ac_srcdir;;
51634*)
51635 case $ac_srcdir in
51636 .) ac_abs_srcdir=$ac_abs_builddir;;
51637 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
51638 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
51639 esac;;
51640esac
51641case $ac_abs_builddir in
51642.) ac_abs_top_srcdir=$ac_top_srcdir;;
51643*)
51644 case $ac_top_srcdir in
51645 .) ac_abs_top_srcdir=$ac_abs_builddir;;
51646 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
51647 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
51648 esac;;
51649esac
a848cd7e
SC
51650
51651
51652 cd $ac_dir
51653
51654 # Check for guested configure; otherwise get Cygnus style configure.
51655 if test -f $ac_srcdir/configure.gnu; then
51656 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
51657 elif test -f $ac_srcdir/configure; then
51658 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
51659 elif test -f $ac_srcdir/configure.in; then
51660 ac_sub_configure=$ac_configure
51661 else
51662 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
51663echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
51664 ac_sub_configure=
51665 fi
51666
51667 # The recursion is here.
51668 if test -n "$ac_sub_configure"; then
51669 # Make the cache file name correct relative to the subdirectory.
51670 case $cache_file in
51671 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
51672 *) # Relative path.
ac1cb8d3 51673 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
a848cd7e
SC
51674 esac
51675
51676 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
51677echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
51678 # The eval makes quoting arguments work.
51679 eval $ac_sub_configure $ac_sub_configure_args \
ac1cb8d3
VS
51680 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
51681 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
a848cd7e
SC
51682echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
51683 { (exit 1); exit 1; }; }
51684 fi
51685
3ea50042 51686 cd "$ac_popdir"
a848cd7e
SC
51687 done
51688fi
51689
51690
51691echo
77ffb593 51692echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
a848cd7e 51693echo ""
c2e9ada4 51694echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_DESC}"
77ffb593 51695echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
a848cd7e 51696
77ffb593
JS
51697echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}"
51698echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}"
51699echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
a848cd7e 51700
77ffb593 51701echo " What level of wxWidgets compatibility should be enabled?"
dee1a63f
MB
51702echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-no}"
51703echo " wxWidgets 2.6 ${WXWIN_COMPATIBILITY_2_6:-yes}"
a848cd7e 51704
77ffb593 51705echo " Which libraries should wxWidgets use?"
a848cd7e
SC
51706echo " jpeg ${wxUSE_LIBJPEG-none}"
51707echo " png ${wxUSE_LIBPNG-none}"
51708echo " regex ${wxUSE_REGEX}"
51709echo " tiff ${wxUSE_LIBTIFF-none}"
51710if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
51711echo " xpm ${wxUSE_LIBXPM-none}"
51712fi
51713echo " zlib ${wxUSE_ZLIB}"
51714echo " odbc ${wxUSE_ODBC}"
51715echo " expat ${wxUSE_EXPAT}"
51716echo " libmspack ${wxUSE_LIBMSPACK}"
51717echo " sdl ${wxUSE_LIBSDL}"
51718
51719echo ""
51720