]> git.saurik.com Git - wxWidgets.git/blame - configure
log wxChoice events in the same format as wxComboBox ones to make it simpler to compa...
[wxWidgets.git] / configure
CommitLineData
a848cd7e
SC
1#! /bin/sh
2# From configure.in Id: configure.in.
3# Guess values for system-dependent variables and create Makefiles.
dd8df4fc 4# Generated by GNU Autoconf 2.59 for wxWidgets 2.7.0.
a848cd7e 5#
77ffb593 6# Report bugs to <wx-dev@lists.wxwidgets.org>.
a848cd7e 7#
ac1cb8d3 8# Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## --------------------- ##
12## M4sh Initialization. ##
13## --------------------- ##
14
15# Be Bourne compatible
16if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 emulate sh
18 NULLCMD=:
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23 set -o posix
24fi
ac1cb8d3 25DUALCASE=1; export DUALCASE # for MKS sh
a848cd7e
SC
26
27# Support unset when possible.
ac1cb8d3 28if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a848cd7e
SC
29 as_unset=unset
30else
31 as_unset=false
32fi
33
34
35# Work around bugs in pre-3.0 UWIN ksh.
36$as_unset ENV MAIL MAILPATH
37PS1='$ '
38PS2='> '
39PS4='+ '
40
41# NLS nuisances.
42for as_var in \
43 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
45 LC_TELEPHONE LC_TIME
46do
ac1cb8d3 47 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
48 eval $as_var=C; export $as_var
49 else
50 $as_unset $as_var
51 fi
52done
53
54# Required to use basename.
55if expr a : '\(a\)' >/dev/null 2>&1; then
56 as_expr=expr
57else
58 as_expr=false
59fi
60
61if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
62 as_basename=basename
63else
64 as_basename=false
65fi
66
67
68# Name of the executable.
69as_me=`$as_basename "$0" ||
70$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
71 X"$0" : 'X\(//\)$' \| \
72 X"$0" : 'X\(/\)$' \| \
73 . : '\(.\)' 2>/dev/null ||
74echo X/"$0" |
75 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
76 /^X\/\(\/\/\)$/{ s//\1/; q; }
77 /^X\/\(\/\).*/{ s//\1/; q; }
78 s/.*/./; q'`
79
80
81# PATH needs CR, and LINENO needs CR and PATH.
82# Avoid depending upon Character Ranges.
83as_cr_letters='abcdefghijklmnopqrstuvwxyz'
84as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
85as_cr_Letters=$as_cr_letters$as_cr_LETTERS
86as_cr_digits='0123456789'
87as_cr_alnum=$as_cr_Letters$as_cr_digits
88
89# The user is always right.
90if test "${PATH_SEPARATOR+set}" != set; then
91 echo "#! /bin/sh" >conf$$.sh
92 echo "exit 0" >>conf$$.sh
93 chmod +x conf$$.sh
94 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
95 PATH_SEPARATOR=';'
96 else
97 PATH_SEPARATOR=:
98 fi
99 rm -f conf$$.sh
100fi
101
102
103 as_lineno_1=$LINENO
104 as_lineno_2=$LINENO
105 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
106 test "x$as_lineno_1" != "x$as_lineno_2" &&
107 test "x$as_lineno_3" = "x$as_lineno_2" || {
108 # Find who we are. Look in the path if we contain no path at all
109 # relative or not.
110 case $0 in
111 *[\\/]* ) as_myself=$0 ;;
112 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113for as_dir in $PATH
114do
115 IFS=$as_save_IFS
116 test -z "$as_dir" && as_dir=.
117 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
118done
119
120 ;;
121 esac
122 # We did not find ourselves, most probably we were run as `sh COMMAND'
123 # in which case we are not to be found in the path.
124 if test "x$as_myself" = x; then
125 as_myself=$0
126 fi
127 if test ! -f "$as_myself"; then
128 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
129 { (exit 1); exit 1; }; }
130 fi
131 case $CONFIG_SHELL in
132 '')
133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
134for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135do
136 IFS=$as_save_IFS
137 test -z "$as_dir" && as_dir=.
138 for as_base in sh bash ksh sh5; do
139 case $as_dir in
140 /*)
141 if ("$as_dir/$as_base" -c '
142 as_lineno_1=$LINENO
143 as_lineno_2=$LINENO
144 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
145 test "x$as_lineno_1" != "x$as_lineno_2" &&
146 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
147 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
148 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
149 CONFIG_SHELL=$as_dir/$as_base
150 export CONFIG_SHELL
151 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
152 fi;;
153 esac
154 done
155done
156;;
157 esac
158
159 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
160 # uniformly replaced by the line number. The first 'sed' inserts a
161 # line-number line before each line; the second 'sed' does the real
162 # work. The second script uses 'N' to pair each line-number line
163 # with the numbered line, and appends trailing '-' during
164 # substitution so that $LINENO is not a special case at line end.
165 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
166 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
167 sed '=' <$as_myself |
168 sed '
169 N
170 s,$,-,
171 : loop
172 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
173 t loop
174 s,-$,,
175 s,^['$as_cr_digits']*\n,,
176 ' >$as_me.lineno &&
177 chmod +x $as_me.lineno ||
178 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
179 { (exit 1); exit 1; }; }
180
181 # Don't try to exec as it changes $[0], causing all sort of problems
182 # (the dirname of $[0] is not the place where we might find the
183 # original and so on. Autoconf is especially sensible to this).
184 . ./$as_me.lineno
185 # Exit status is that of the last command.
186 exit
187}
188
189
190case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
191 *c*,-n*) ECHO_N= ECHO_C='
192' ECHO_T=' ' ;;
193 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
194 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
195esac
196
197if expr a : '\(a\)' >/dev/null 2>&1; then
198 as_expr=expr
199else
200 as_expr=false
201fi
202
203rm -f conf$$ conf$$.exe conf$$.file
204echo >conf$$.file
205if ln -s conf$$.file conf$$ 2>/dev/null; then
206 # We could just check for DJGPP; but this test a) works b) is more generic
207 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
208 if test -f conf$$.exe; then
209 # Don't use ln at all; we don't have any links
210 as_ln_s='cp -p'
211 else
212 as_ln_s='ln -s'
213 fi
214elif ln conf$$.file conf$$ 2>/dev/null; then
215 as_ln_s=ln
216else
217 as_ln_s='cp -p'
218fi
219rm -f conf$$ conf$$.exe conf$$.file
220
221if mkdir -p . 2>/dev/null; then
222 as_mkdir_p=:
223else
ac1cb8d3 224 test -d ./-p && rmdir ./-p
a848cd7e
SC
225 as_mkdir_p=false
226fi
227
228as_executable_p="test -f"
229
230# Sed expression to map a string onto a valid CPP name.
ac1cb8d3 231as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
232
233# Sed expression to map a string onto a valid variable name.
ac1cb8d3 234as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
235
236
237# IFS
238# We need space, tab and new line, in precisely that order.
239as_nl='
240'
241IFS=" $as_nl"
242
243# CDPATH.
244$as_unset CDPATH
245
246
247# Name of the host.
248# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
249# so uname gets run too.
250ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
251
252exec 6>&1
253
254#
255# Initializations.
256#
257ac_default_prefix=/usr/local
258ac_config_libobj_dir=.
259cross_compiling=no
260subdirs=
261MFLAGS=
262MAKEFLAGS=
263SHELL=${CONFIG_SHELL-/bin/sh}
264
265# Maximum number of lines to put in a shell here document.
266# This variable seems obsolete. It should probably be removed, and
267# only ac_max_sed_lines should be used.
268: ${ac_max_here_lines=38}
269
270# Identity of this package.
77ffb593
JS
271PACKAGE_NAME='wxWidgets'
272PACKAGE_TARNAME='wxwidgets'
dd8df4fc
VZ
273PACKAGE_VERSION='2.7.0'
274PACKAGE_STRING='wxWidgets 2.7.0'
77ffb593 275PACKAGE_BUGREPORT='wx-dev@lists.wxwidgets.org'
a848cd7e
SC
276
277ac_unique_file="wx-config.in"
278# Factoring default headers for most tests.
279ac_includes_default="\
280#include <stdio.h>
281#if HAVE_SYS_TYPES_H
282# include <sys/types.h>
283#endif
284#if HAVE_SYS_STAT_H
285# include <sys/stat.h>
286#endif
287#if STDC_HEADERS
288# include <stdlib.h>
289# include <stddef.h>
290#else
291# if HAVE_STDLIB_H
292# include <stdlib.h>
293# endif
294#endif
295#if HAVE_STRING_H
296# if !STDC_HEADERS && HAVE_MEMORY_H
297# include <memory.h>
298# endif
299# include <string.h>
300#endif
301#if HAVE_STRINGS_H
302# include <strings.h>
303#endif
304#if HAVE_INTTYPES_H
305# include <inttypes.h>
306#else
307# if HAVE_STDINT_H
308# include <stdint.h>
309# endif
310#endif
311#if HAVE_UNISTD_H
312# include <unistd.h>
313#endif"
314
315ac_subdirs_all="$ac_subdirs_all src/expat"
e5efa97e 316ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP CXX CXXFLAGS ac_ct_CXX RANLIB ac_ct_RANLIB AR ac_ct_AR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA STRIP ac_ct_STRIP WINDRES ac_ct_WINDRES DLLTOOL ac_ct_DLLTOOL IF_GNU_MAKE LN_S CXXCPP subdirs PKG_CONFIG GTK_CFLAGS GTK_LIBS GTK_CONFIG X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS 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 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_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_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_XRC_1 COND_MONOLITHIC_0_SHARED_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_XRC_1 COND_MONOLITHIC_0_USE_MEDIA_1 COND_MONOLITHIC_0_USE_ODBC_1 COND_MONOLITHIC_1 COND_MONOLITHIC_1_SHARED_0 COND_MONOLITHIC_1_SHARED_1 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1 COND_PLATFORM_MACOSX_1 COND_PLATFORM_MACOSX_1_TOOLKIT_ COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA COND_PLATFORM_MACOSX_1_TOOLKIT_GTK COND_PLATFORM_MACOSX_1_TOOLKIT_MAC COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF COND_PLATFORM_MACOSX_1_TOOLKIT_X11 COND_PLATFORM_MACOSX_1_USE_GUI_1 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1 COND_PLATFORM_MACOS_1 COND_PLATFORM_MAC_1 COND_PLATFORM_MSDOS_0 COND_PLATFORM_MSDOS_1 COND_PLATFORM_OS2_1 COND_PLATFORM_UNIX_0 COND_PLATFORM_UNIX_1 COND_PLATFORM_UNIX_1_USE_GUI_1 COND_PLATFORM_UNIX_1_USE_PLUGINS_0 COND_PLATFORM_WIN32_0 COND_PLATFORM_WIN32_1 COND_SHARED_0 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_SHARED_0_USE_XRC_1 COND_SHARED_0_WXUSE_EXPAT_BUILTIN COND_SHARED_0_WXUSE_ODBC_BUILTIN COND_SHARED_0_WXUSE_REGEX_BUILTIN COND_SHARED_0_WXUSE_ZLIB_BUILTIN COND_SHARED_1 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1 COND_SHARED_1_USE_XRC_1 COND_TOOLKIT_ COND_TOOLKIT_COCOA COND_TOOLKIT_COCOA_USE_GUI_1 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK COND_TOOLKIT_GTK_TOOLKIT_VERSION_ COND_TOOLKIT_GTK_TOOLKIT_VERSION_2 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK_USE_GUI_1 COND_TOOLKIT_MAC COND_TOOLKIT_MAC_USE_GUI_1 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MGL COND_TOOLKIT_MGL_USE_GUI_1 COND_TOOLKIT_MOTIF COND_TOOLKIT_MOTIF_USE_GUI_1 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MSW COND_TOOLKIT_MSW_USE_GUI_1 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MSW_WXUNIV_0 COND_TOOLKIT_PM COND_TOOLKIT_PM_USE_GUI_1 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_WINCE COND_TOOLKIT_WINCE_USE_GUI_1 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_WINCE_WXUNIV_0 COND_TOOLKIT_X11 COND_TOOLKIT_X11_USE_GUI_1 COND_UNICODE_1 COND_USE_EXCEPTIONS_0 COND_USE_EXCEPTIONS_1 COND_USE_GUI_0 COND_USE_GUI_1 COND_USE_GUI_1_WXUNIV_0 COND_USE_GUI_1_WXUNIV_1 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_USE_ODBC_1 COND_USE_OPENGL_1 COND_USE_PCH_1 COND_USE_PLUGINS_0 COND_USE_RTTI_0 COND_USE_RTTI_1 COND_USE_SOSYMLINKS_1 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1 COND_USE_SOVERLINUX_1 COND_USE_SOVERSION_0 COND_USE_SOVERSOLARIS_1 COND_USE_THREADS_0 COND_USE_THREADS_1 COND_USE_XRC_1 COND_WINDOWS_IMPLIB_1 COND_WITH_PLUGIN_SDL_1 COND_WXUNIV_0 COND_WXUNIV_1 COND_WXUSE_EXPAT_BUILTIN COND_WXUSE_LIBJPEG_BUILTIN COND_WXUSE_LIBPNG_BUILTIN COND_WXUSE_LIBTIFF_BUILTIN COND_WXUSE_ODBC_BUILTIN COND_WXUSE_REGEX_BUILTIN COND_WXUSE_ZLIB_BUILTIN SHARED WX_LIBRARY_BASENAME_NOGUI WX_LIBRARY_BASENAME_GUI USE_GUI AFMINSTALL WIN32INSTALL TOOLKIT TOOLKIT_DIR TOOLCHAIN_NAME TOOLCHAIN_FULLNAME cross_compiling WIDGET_SET WX_RELEASE WX_VERSION WX_SUBVERSION WX_CHARTYPE WX_DEBUGTYPE WXCONFIG_CPPFLAGS WXCONFIG_CFLAGS WXCONFIG_CXXFLAGS WXCONFIG_LIBS WXCONFIG_RPATH WXCONFIG_LDFLAGS_GUI WXCONFIG_RESFLAGS EXE_LINKER GUIDIST DISTDIR SAMPLES_SUBDIRS LDFLAGS_GL OPENGL_LIBS DMALLOC_LIBS WX_VERSION_TAG RESCOMP RESFLAGS RESPROGRAMOBJ WX_RESOURCES_MACOSX_ASCII WX_RESOURCES_MACOSX_DATA LIBWXMACRES POSTLINK_COMMAND MACSETFILE GCC CPPUNIT_CONFIG LIBOBJS LTLIBOBJS'
a848cd7e
SC
317ac_subst_files=''
318
319# Initialize some variables set by options.
320ac_init_help=
321ac_init_version=false
322# The variables have the same names as the options, with
323# dashes changed to underlines.
324cache_file=/dev/null
325exec_prefix=NONE
326no_create=
327no_recursion=
328prefix=NONE
329program_prefix=NONE
330program_suffix=NONE
331program_transform_name=s,x,x,
332silent=
333site=
334srcdir=
335verbose=
336x_includes=NONE
337x_libraries=NONE
338
339# Installation directory options.
340# These are left unexpanded so users can "make install exec_prefix=/foo"
341# and all the variables that are supposed to be based on exec_prefix
342# by default will actually change.
343# Use braces instead of parens because sh, perl, etc. also accept them.
344bindir='${exec_prefix}/bin'
345sbindir='${exec_prefix}/sbin'
346libexecdir='${exec_prefix}/libexec'
347datadir='${prefix}/share'
348sysconfdir='${prefix}/etc'
349sharedstatedir='${prefix}/com'
350localstatedir='${prefix}/var'
351libdir='${exec_prefix}/lib'
352includedir='${prefix}/include'
353oldincludedir='/usr/include'
354infodir='${prefix}/info'
355mandir='${prefix}/man'
356
357ac_prev=
358for ac_option
359do
360 # If the previous option needs an argument, assign it.
361 if test -n "$ac_prev"; then
362 eval "$ac_prev=\$ac_option"
363 ac_prev=
364 continue
365 fi
366
367 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
368
369 # Accept the important Cygnus configure options, so we can diagnose typos.
370
371 case $ac_option in
372
373 -bindir | --bindir | --bindi | --bind | --bin | --bi)
374 ac_prev=bindir ;;
375 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
376 bindir=$ac_optarg ;;
377
378 -build | --build | --buil | --bui | --bu)
379 ac_prev=build_alias ;;
380 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
381 build_alias=$ac_optarg ;;
382
383 -cache-file | --cache-file | --cache-fil | --cache-fi \
384 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
385 ac_prev=cache_file ;;
386 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
387 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
388 cache_file=$ac_optarg ;;
389
390 --config-cache | -C)
391 cache_file=config.cache ;;
392
393 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
394 ac_prev=datadir ;;
395 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
396 | --da=*)
397 datadir=$ac_optarg ;;
398
399 -disable-* | --disable-*)
400 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
401 # Reject names that are not valid shell variable names.
402 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
403 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
404 { (exit 1); exit 1; }; }
405 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
406 eval "enable_$ac_feature=no" ;;
407
408 -enable-* | --enable-*)
409 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
410 # Reject names that are not valid shell variable names.
411 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
412 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
413 { (exit 1); exit 1; }; }
414 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
415 case $ac_option in
416 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
417 *) ac_optarg=yes ;;
418 esac
419 eval "enable_$ac_feature='$ac_optarg'" ;;
420
421 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
422 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
423 | --exec | --exe | --ex)
424 ac_prev=exec_prefix ;;
425 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
426 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
427 | --exec=* | --exe=* | --ex=*)
428 exec_prefix=$ac_optarg ;;
429
430 -gas | --gas | --ga | --g)
431 # Obsolete; use --with-gas.
432 with_gas=yes ;;
433
434 -help | --help | --hel | --he | -h)
435 ac_init_help=long ;;
436 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
437 ac_init_help=recursive ;;
438 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
439 ac_init_help=short ;;
440
441 -host | --host | --hos | --ho)
442 ac_prev=host_alias ;;
443 -host=* | --host=* | --hos=* | --ho=*)
444 host_alias=$ac_optarg ;;
445
446 -includedir | --includedir | --includedi | --included | --include \
447 | --includ | --inclu | --incl | --inc)
448 ac_prev=includedir ;;
449 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
450 | --includ=* | --inclu=* | --incl=* | --inc=*)
451 includedir=$ac_optarg ;;
452
453 -infodir | --infodir | --infodi | --infod | --info | --inf)
454 ac_prev=infodir ;;
455 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
456 infodir=$ac_optarg ;;
457
458 -libdir | --libdir | --libdi | --libd)
459 ac_prev=libdir ;;
460 -libdir=* | --libdir=* | --libdi=* | --libd=*)
461 libdir=$ac_optarg ;;
462
463 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
464 | --libexe | --libex | --libe)
465 ac_prev=libexecdir ;;
466 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
467 | --libexe=* | --libex=* | --libe=*)
468 libexecdir=$ac_optarg ;;
469
470 -localstatedir | --localstatedir | --localstatedi | --localstated \
471 | --localstate | --localstat | --localsta | --localst \
472 | --locals | --local | --loca | --loc | --lo)
473 ac_prev=localstatedir ;;
474 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
475 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
476 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
477 localstatedir=$ac_optarg ;;
478
479 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
480 ac_prev=mandir ;;
481 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
482 mandir=$ac_optarg ;;
483
484 -nfp | --nfp | --nf)
485 # Obsolete; use --without-fp.
486 with_fp=no ;;
487
488 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
489 | --no-cr | --no-c | -n)
490 no_create=yes ;;
491
492 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
493 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
494 no_recursion=yes ;;
495
496 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
497 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
498 | --oldin | --oldi | --old | --ol | --o)
499 ac_prev=oldincludedir ;;
500 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
501 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
502 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
503 oldincludedir=$ac_optarg ;;
504
505 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
506 ac_prev=prefix ;;
507 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
508 prefix=$ac_optarg ;;
509
510 -program-prefix | --program-prefix | --program-prefi | --program-pref \
511 | --program-pre | --program-pr | --program-p)
512 ac_prev=program_prefix ;;
513 -program-prefix=* | --program-prefix=* | --program-prefi=* \
514 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
515 program_prefix=$ac_optarg ;;
516
517 -program-suffix | --program-suffix | --program-suffi | --program-suff \
518 | --program-suf | --program-su | --program-s)
519 ac_prev=program_suffix ;;
520 -program-suffix=* | --program-suffix=* | --program-suffi=* \
521 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
522 program_suffix=$ac_optarg ;;
523
524 -program-transform-name | --program-transform-name \
525 | --program-transform-nam | --program-transform-na \
526 | --program-transform-n | --program-transform- \
527 | --program-transform | --program-transfor \
528 | --program-transfo | --program-transf \
529 | --program-trans | --program-tran \
530 | --progr-tra | --program-tr | --program-t)
531 ac_prev=program_transform_name ;;
532 -program-transform-name=* | --program-transform-name=* \
533 | --program-transform-nam=* | --program-transform-na=* \
534 | --program-transform-n=* | --program-transform-=* \
535 | --program-transform=* | --program-transfor=* \
536 | --program-transfo=* | --program-transf=* \
537 | --program-trans=* | --program-tran=* \
538 | --progr-tra=* | --program-tr=* | --program-t=*)
539 program_transform_name=$ac_optarg ;;
540
541 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
542 | -silent | --silent | --silen | --sile | --sil)
543 silent=yes ;;
544
545 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
546 ac_prev=sbindir ;;
547 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
548 | --sbi=* | --sb=*)
549 sbindir=$ac_optarg ;;
550
551 -sharedstatedir | --sharedstatedir | --sharedstatedi \
552 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
553 | --sharedst | --shareds | --shared | --share | --shar \
554 | --sha | --sh)
555 ac_prev=sharedstatedir ;;
556 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
557 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
558 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
559 | --sha=* | --sh=*)
560 sharedstatedir=$ac_optarg ;;
561
562 -site | --site | --sit)
563 ac_prev=site ;;
564 -site=* | --site=* | --sit=*)
565 site=$ac_optarg ;;
566
567 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
568 ac_prev=srcdir ;;
569 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
570 srcdir=$ac_optarg ;;
571
572 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
573 | --syscon | --sysco | --sysc | --sys | --sy)
574 ac_prev=sysconfdir ;;
575 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
576 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
577 sysconfdir=$ac_optarg ;;
578
579 -target | --target | --targe | --targ | --tar | --ta | --t)
580 ac_prev=target_alias ;;
581 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
582 target_alias=$ac_optarg ;;
583
584 -v | -verbose | --verbose | --verbos | --verbo | --verb)
585 verbose=yes ;;
586
587 -version | --version | --versio | --versi | --vers | -V)
588 ac_init_version=: ;;
589
590 -with-* | --with-*)
591 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
592 # Reject names that are not valid shell variable names.
593 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
594 { echo "$as_me: error: invalid package name: $ac_package" >&2
595 { (exit 1); exit 1; }; }
596 ac_package=`echo $ac_package| sed 's/-/_/g'`
597 case $ac_option in
598 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
599 *) ac_optarg=yes ;;
600 esac
601 eval "with_$ac_package='$ac_optarg'" ;;
602
603 -without-* | --without-*)
604 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
605 # Reject names that are not valid shell variable names.
606 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
607 { echo "$as_me: error: invalid package name: $ac_package" >&2
608 { (exit 1); exit 1; }; }
609 ac_package=`echo $ac_package | sed 's/-/_/g'`
610 eval "with_$ac_package=no" ;;
611
612 --x)
613 # Obsolete; use --with-x.
614 with_x=yes ;;
615
616 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
617 | --x-incl | --x-inc | --x-in | --x-i)
618 ac_prev=x_includes ;;
619 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
620 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
621 x_includes=$ac_optarg ;;
622
623 -x-libraries | --x-libraries | --x-librarie | --x-librari \
624 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
625 ac_prev=x_libraries ;;
626 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
627 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
628 x_libraries=$ac_optarg ;;
629
630 -*) { echo "$as_me: error: unrecognized option: $ac_option
631Try \`$0 --help' for more information." >&2
632 { (exit 1); exit 1; }; }
633 ;;
634
635 *=*)
636 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
637 # Reject names that are not valid shell variable names.
638 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
639 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
640 { (exit 1); exit 1; }; }
641 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
642 eval "$ac_envvar='$ac_optarg'"
643 export $ac_envvar ;;
644
645 *)
646 # FIXME: should be removed in autoconf 3.0.
647 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
648 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
649 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
650 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
651 ;;
652
653 esac
654done
655
656if test -n "$ac_prev"; then
657 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
658 { echo "$as_me: error: missing argument to $ac_option" >&2
659 { (exit 1); exit 1; }; }
660fi
661
662# Be sure to have absolute paths.
663for ac_var in exec_prefix prefix
664do
665 eval ac_val=$`echo $ac_var`
666 case $ac_val in
667 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
668 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
669 { (exit 1); exit 1; }; };;
670 esac
671done
672
673# Be sure to have absolute paths.
674for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
ac1cb8d3 675 localstatedir libdir includedir oldincludedir infodir mandir
a848cd7e
SC
676do
677 eval ac_val=$`echo $ac_var`
678 case $ac_val in
679 [\\/$]* | ?:[\\/]* ) ;;
680 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
681 { (exit 1); exit 1; }; };;
682 esac
683done
684
685# There might be people who depend on the old broken behavior: `$host'
686# used to hold the argument of --host etc.
687# FIXME: To remove some day.
688build=$build_alias
689host=$host_alias
690target=$target_alias
691
692# FIXME: To remove some day.
693if test "x$host_alias" != x; then
694 if test "x$build_alias" = x; then
695 cross_compiling=maybe
696 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
697 If a cross compiler is detected then cross compile mode will be used." >&2
698 elif test "x$build_alias" != "x$host_alias"; then
699 cross_compiling=yes
700 fi
701fi
702
703ac_tool_prefix=
704test -n "$host_alias" && ac_tool_prefix=$host_alias-
705
706test "$silent" = yes && exec 6>/dev/null
707
708
709# Find the source files, if location was not specified.
710if test -z "$srcdir"; then
711 ac_srcdir_defaulted=yes
712 # Try the directory containing this script, then its parent.
713 ac_confdir=`(dirname "$0") 2>/dev/null ||
714$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
715 X"$0" : 'X\(//\)[^/]' \| \
716 X"$0" : 'X\(//\)$' \| \
717 X"$0" : 'X\(/\)' \| \
718 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
719echo X"$0" |
720 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
721 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
722 /^X\(\/\/\)$/{ s//\1/; q; }
723 /^X\(\/\).*/{ s//\1/; q; }
724 s/.*/./; q'`
725 srcdir=$ac_confdir
726 if test ! -r $srcdir/$ac_unique_file; then
727 srcdir=..
728 fi
729else
730 ac_srcdir_defaulted=no
731fi
732if test ! -r $srcdir/$ac_unique_file; then
733 if test "$ac_srcdir_defaulted" = yes; then
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
735 { (exit 1); exit 1; }; }
736 else
737 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
738 { (exit 1); exit 1; }; }
739 fi
740fi
741(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
742 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
743 { (exit 1); exit 1; }; }
744srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
745ac_env_build_alias_set=${build_alias+set}
746ac_env_build_alias_value=$build_alias
747ac_cv_env_build_alias_set=${build_alias+set}
748ac_cv_env_build_alias_value=$build_alias
749ac_env_host_alias_set=${host_alias+set}
750ac_env_host_alias_value=$host_alias
751ac_cv_env_host_alias_set=${host_alias+set}
752ac_cv_env_host_alias_value=$host_alias
753ac_env_target_alias_set=${target_alias+set}
754ac_env_target_alias_value=$target_alias
755ac_cv_env_target_alias_set=${target_alias+set}
756ac_cv_env_target_alias_value=$target_alias
757ac_env_CC_set=${CC+set}
758ac_env_CC_value=$CC
759ac_cv_env_CC_set=${CC+set}
760ac_cv_env_CC_value=$CC
761ac_env_CFLAGS_set=${CFLAGS+set}
762ac_env_CFLAGS_value=$CFLAGS
763ac_cv_env_CFLAGS_set=${CFLAGS+set}
764ac_cv_env_CFLAGS_value=$CFLAGS
765ac_env_LDFLAGS_set=${LDFLAGS+set}
766ac_env_LDFLAGS_value=$LDFLAGS
767ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
768ac_cv_env_LDFLAGS_value=$LDFLAGS
769ac_env_CPPFLAGS_set=${CPPFLAGS+set}
770ac_env_CPPFLAGS_value=$CPPFLAGS
771ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
772ac_cv_env_CPPFLAGS_value=$CPPFLAGS
773ac_env_CPP_set=${CPP+set}
774ac_env_CPP_value=$CPP
775ac_cv_env_CPP_set=${CPP+set}
776ac_cv_env_CPP_value=$CPP
777ac_env_CXX_set=${CXX+set}
778ac_env_CXX_value=$CXX
779ac_cv_env_CXX_set=${CXX+set}
780ac_cv_env_CXX_value=$CXX
781ac_env_CXXFLAGS_set=${CXXFLAGS+set}
782ac_env_CXXFLAGS_value=$CXXFLAGS
783ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
784ac_cv_env_CXXFLAGS_value=$CXXFLAGS
785ac_env_CXXCPP_set=${CXXCPP+set}
786ac_env_CXXCPP_value=$CXXCPP
787ac_cv_env_CXXCPP_set=${CXXCPP+set}
788ac_cv_env_CXXCPP_value=$CXXCPP
789
790#
791# Report the --help message.
792#
793if test "$ac_init_help" = "long"; then
794 # Omit some internal or obsolete options to make the list less imposing.
795 # This message is too long to be a string in the A/UX 3.1 sh.
796 cat <<_ACEOF
dd8df4fc 797\`configure' configures wxWidgets 2.7.0 to adapt to many kinds of systems.
a848cd7e
SC
798
799Usage: $0 [OPTION]... [VAR=VALUE]...
800
801To assign environment variables (e.g., CC, CFLAGS...), specify them as
802VAR=VALUE. See below for descriptions of some of the useful variables.
803
804Defaults for the options are specified in brackets.
805
806Configuration:
807 -h, --help display this help and exit
808 --help=short display options specific to this package
809 --help=recursive display the short help of all the included packages
810 -V, --version display version information and exit
811 -q, --quiet, --silent do not print \`checking...' messages
812 --cache-file=FILE cache test results in FILE [disabled]
813 -C, --config-cache alias for \`--cache-file=config.cache'
814 -n, --no-create do not create output files
815 --srcdir=DIR find the sources in DIR [configure dir or \`..']
816
817_ACEOF
818
819 cat <<_ACEOF
820Installation directories:
821 --prefix=PREFIX install architecture-independent files in PREFIX
ac1cb8d3 822 [$ac_default_prefix]
a848cd7e 823 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
ac1cb8d3 824 [PREFIX]
a848cd7e
SC
825
826By default, \`make install' will install all the files in
827\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
828an installation prefix other than \`$ac_default_prefix' using \`--prefix',
829for instance \`--prefix=\$HOME'.
830
831For better control, use the options below.
832
833Fine tuning of the installation directories:
834 --bindir=DIR user executables [EPREFIX/bin]
835 --sbindir=DIR system admin executables [EPREFIX/sbin]
836 --libexecdir=DIR program executables [EPREFIX/libexec]
837 --datadir=DIR read-only architecture-independent data [PREFIX/share]
838 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
839 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
840 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
841 --libdir=DIR object code libraries [EPREFIX/lib]
842 --includedir=DIR C header files [PREFIX/include]
843 --oldincludedir=DIR C header files for non-gcc [/usr/include]
844 --infodir=DIR info documentation [PREFIX/info]
845 --mandir=DIR man documentation [PREFIX/man]
846_ACEOF
847
848 cat <<\_ACEOF
849
850X features:
851 --x-includes=DIR X include files are in DIR
852 --x-libraries=DIR X library files are in DIR
853
854System types:
855 --build=BUILD configure for building on BUILD [guessed]
856 --host=HOST cross-compile to build programs to run on HOST [BUILD]
857 --target=TARGET configure for building compilers for TARGET [HOST]
858_ACEOF
859fi
860
861if test -n "$ac_init_help"; then
862 case $ac_init_help in
dd8df4fc 863 short | recursive ) echo "Configuration of wxWidgets 2.7.0:";;
a848cd7e
SC
864 esac
865 cat <<\_ACEOF
866
867Optional Features:
868 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
869 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
870 --enable-gui use GUI classes
77ffb593
JS
871 --enable-monolithic build wxWidgets as single library
872 --enable-plugins build parts of wxWidgets as loadable components
873 --enable-universal use wxWidgets GUI controls instead of native ones
a848cd7e 874 --enable-nanox use NanoX
f34ca037 875 --disable-gtk2 use GTK+ 1.2 instead of 2.0
a848cd7e
SC
876 --enable-gpe use GNOME PDA Environment features if possible
877 --enable-shared create shared library code
878 --enable-optimise create optimised code
879 --enable-debug same as debug_flag and debug_info
880 --enable-stl use STL for containers
881 --enable-omf use OMF object format
882 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)
883 --enable-debug_info create code with debugging information
884 --enable-debug_gdb create code with extra GDB debugging information
885 --enable-debug_cntxt use wxDebugContext
886 --enable-mem_tracing create code with memory tracing
887 --enable-profile create code with profiling information
888 --enable-no_rtti create code without RTTI information
889 --enable-no_exceptions create code without C++ exceptions handling
890 --enable-permissive compile code disregarding strict ANSI
891 --enable-no_deps create code without dependency information
7afc46ab 892 --enable-universal_binary create Mac PowerPC and Intel Universal binary (not yet working)
dee1a63f
MB
893 --enable-compat24 enable wxWidgets 2.4 compatibility
894 --disable-compat26 disable wxWidgets 2.6 compatibility
ffa0583f 895 --disable-rpath disable use of rpath for uninstalled builds
a848cd7e
SC
896 --enable-intl use internationalization system
897 --enable-config use wxConfig (and derived) classes
898 --enable-protocols use wxProtocol and derived classes
899 --enable-ftp use wxFTP (requires wxProtocol
900 --enable-http use wxHTTP (requires wxProtocol
901 --enable-fileproto use wxFileProto class (requires wxProtocol
902 --enable-sockets use socket/network classes
903 --enable-ole use OLE classes (Win32 only)
904 --enable-dataobj use data object classes
905 --enable-ipc use interprocess communication (wxSocket etc.)
906 --enable-apple_ieee use the Apple IEEE codec
81f90336 907 --enable-arcstream use wxArchive streams
eaff0f0d 908 --enable-backtrace use wxStackWalker class for getting backtraces
36b6448c 909 --enable-catch_segvs catch signals in wxApp::OnFatalException (Unix only)
a848cd7e
SC
910 --enable-cmdline use wxCmdLineParser class
911 --enable-datetime use wxDateTime class
36b6448c 912 --enable-debugreport use wxDebugReport class
a848cd7e
SC
913 --enable-dialupman use dialup network classes
914 --enable-dynlib use wxLibrary class for DLL loading
915 --enable-dynamicloader use (new) wxDynamicLibrary class
916 --enable-exceptions build exception-safe library
917 --enable-ffile use wxFFile class
918 --enable-file use wxFile class
919 --enable-filesystem use virtual file systems classes
920 --enable-fontmap use font encodings conversion classes
921 --enable-fs_inet use virtual HTTP/FTP filesystems
922 --enable-fs_zip use virtual ZIP filesystems
923 --enable-geometry use geometry class
924 --enable-log use logging system
925 --enable-longlong use wxLongLong class
926 --enable-mimetype use wxMimeTypesManager
927 --enable-mslu use MS Layer for Unicode on Windows 9x (Win32 only)
928 --enable-snglinst use wxSingleInstanceChecker class
a848cd7e 929 --enable-std_iostreams use standard C++ stream classes
59746b65 930 --enable-std_string use standard C++ string classes
07158944 931 --enable-stdpaths use wxStandardPaths class
a848cd7e 932 --enable-stopwatch use wxStopWatch class
07158944 933 --enable-streams use wxStream etc classes
a848cd7e
SC
934 --enable-sysoptions use wxSystemOptions
935 --enable-textbuf use wxTextBuffer class
936 --enable-textfile use wxTextFile class
937 --enable-timer use wxTimer class
938 --enable-unicode compile wxString with Unicode support
939 --enable-sound use wxSound class
3b57de8b 940 --enable-mediactrl use wxMediaCtrl class
f10e38c4 941 --enable-gstreamer8 force GStreamer 0.8 instead of 0.10 with the wxMediaCtrl class on unix
77ffb593 942 --enable-wxprintfv use wxWidgets implementation of vprintf()
81f90336 943 --enable-zipstream use wxZip streams
a848cd7e
SC
944 --enable-url use wxURL class
945 --enable-protocol use wxProtocol class
946 --enable-protocol-http HTTP support in wxProtocol
947 --enable-protocol-ftp FTP support in wxProtocol
948 --enable-protocol-file FILE support in wxProtocol
949 --enable-threads use threads
950 --enable-docview use document view architecture
951 --enable-help use help subsystem
952 --enable-mshtmlhelp use MS HTML Help (win32)
953 --enable-html use wxHTML sub-library
954 --enable-htmlhelp use wxHTML-based help
9a8f0513 955 --enable-xrc use XRC resources sub-library
a848cd7e
SC
956 --enable-constraints use layout-constraints system
957 --enable-printarch use printing architecture
958 --enable-mdi use multiple document interface architecture
8a7b1113 959 --enable-mdidoc use docview architecture with MDI
a848cd7e
SC
960 --enable-loggui use standard GUI logger
961 --enable-logwin use wxLogWindow
962 --enable-logdialog use wxLogDialog
646b6ec1 963 --enable-webkit use wxWebKitCtrl (Mac)
91dea314 964 --enable-richtext use wxRichTextCtrl
a848cd7e
SC
965 --enable-postscript use wxPostscriptDC device context (default for gtk+)
966 --enable-prologio not available; see contrib
967 --enable-resources not available; see contrib
968 --enable-clipboard use wxClipboard class
969 --enable-dnd use Drag'n'Drop classes
970 --enable-metafile use win32 metafiles
971 --enable-controls use all usual controls
972 --enable-accel use accelerators
973 --enable-button use wxButton class
974 --enable-bmpbutton use wxBitmapButton class
975 --enable-calendar use wxCalendarCtrl class
976 --enable-caret use wxCaret class
977 --enable-checkbox use wxCheckBox class
978 --enable-checklst use wxCheckListBox (listbox with checkboxes) class
979 --enable-choice use wxChoice class
92bbdbcd 980 --enable-choicebook use wxChoicebook class
a848cd7e 981 --enable-combobox use wxComboBox class
da98e9be 982 --enable-datepick use wxDatePickerCtrl class
a848cd7e
SC
983 --enable-display use wxDisplay class
984 --enable-gauge use wxGauge class
985 --enable-grid use wxGrid class
20e34ecc 986 --enable-dataviewctrl, use wxDataViewCtrl class
a848cd7e
SC
987 --enable-imaglist use wxImageList class
988 --enable-listbook use wxListbook class
989 --enable-listbox use wxListBox class
990 --enable-listctrl use wxListCtrl class
991 --enable-notebook use wxNotebook class
992 --enable-radiobox use wxRadioBox class
993 --enable-radiobtn use wxRadioButton class
994 --enable-sash use wxSashWindow class
995 --enable-scrollbar use wxScrollBar class and scrollable windows
996 --enable-slider use wxSlider class
997 --enable-spinbtn use wxSpinButton class
998 --enable-spinctrl use wxSpinCtrl class
999 --enable-splitter use wxSplitterWindow class
1000 --enable-statbmp use wxStaticBitmap class
1001 --enable-statbox use wxStaticBox class
1002 --enable-statline use wxStaticLine class
1003 --enable-stattext use wxStaticText class
1004 --enable-statusbar use wxStatusBar class
1005 --enable-tabdialog use wxTabControl class
1006 --enable-textctrl use wxTextCtrl class
1007 --enable-togglebtn use wxToggleButton class
1008 --enable-toolbar use wxToolBar class
1009 --enable-tbarnative use native wxToolBar class
1010 --enable-tbarsmpl use wxToolBarSimple class
0093c2fc 1011 --enable-treebook use wxTreebook class
5ec3bc43 1012 --enable-toolbook use wxToolbook class
a848cd7e
SC
1013 --enable-treectrl use wxTreeCtrl class
1014 --enable-tipwindow use wxTipWindow class
1015 --enable-popupwin use wxPopUpWindow class
1016 --enable-commondlg use all common dialogs
1017 --enable-choicedlg use wxChoiceDialog
1018 --enable-coldlg use wxColourDialog
1019 --enable-filedlg use wxFileDialog
1020 --enable-finddlg use wxFindReplaceDialog
1021 --enable-fontdlg use wxFontDialog
1022 --enable-dirdlg use wxDirDialog
1023 --enable-msgdlg use wxMessageDialog
1024 --enable-numberdlg use wxNumberEntryDialog
1025 --enable-splash use wxSplashScreen
1026 --enable-textdlg use wxTextDialog
1027 --enable-tipdlg use startup tips
1028 --enable-progressdlg use wxProgressDialog
1029 --enable-wizarddlg use wxWizard
1030 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes
1031 --enable-miniframe use wxMiniFrame class
1032 --enable-tooltips use wxToolTip class
1033 --enable-splines use spline drawing code
fbe2ca43 1034 --enable-mousewheel use mousewheel
a848cd7e
SC
1035 --enable-validators use wxValidator and derived classes
1036 --enable-busyinfo use wxBusyInfo
4cb1d3da 1037 --enable-joystick use wxJoystick
38b4a946 1038 --enable-metafiles use wxMetaFile (Win32 only)
a848cd7e
SC
1039 --enable-dragimage use wxDragImage
1040 --enable-accessibility enable accessibility support
38b4a946 1041 --enable-dccache cache temporary wxDC objects (Win32 only)
a848cd7e
SC
1042 --enable-palette use wxPalette class
1043 --enable-image use wxImage class
1044 --enable-gif use gif images (GIF file format)
1045 --enable-pcx use pcx images (PCX file format)
1046 --enable-iff use iff images (IFF file format)
1047 --enable-pnm use pnm images (PNM file format)
1048 --enable-xpm use xpm images (XPM file format)
1049 --enable-icocur use Windows ICO and CUR formats
77ffb593 1050 --enable-official_build official build of wxWidgets (win32 DLL only)
a848cd7e
SC
1051 --enable-vendor=VENDOR vendor name (win32 DLL only)
1052 --disable-largefile omit support for large files
1053 --disable-gtktest do not try to compile and run a test GTK+ program
1054 --disable-gtktest Do not try to compile and run a test GTK program
1055 --disable-sdltest Do not try to compile and run a test SDL program
1056 --enable-omf use OMF object format (OS/2)
f10e38c4
VZ
1057 --disable-dependency-tracking
1058 don't use dependency tracking even if the compiler
1059 can
ebee3cd0
VS
1060 --disable-precomp-headers
1061 don't use precompiled headers even if compiler can
a848cd7e
SC
1062
1063Optional Packages:
1064 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1065 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1c14217d 1066 --without-subdirs don't generate makefiles for samples/demos/...
f34ca037 1067 --with-gtk[=VERSION] use GTK+, VERSION can be 2 (default), 1 or "any"
a848cd7e
SC
1068 --with-motif use Motif/Lesstif
1069 --with-mac use Mac OS X
1070 --with-cocoa use Cocoa
1071 --with-wine use Wine
1072 --with-msw use MS-Windows
1073 --with-pm use OS/2 Presentation Manager
1074 --with-mgl use SciTech MGL
1075 --with-microwin use MicroWindows
1076 --with-x11 use X11
1077 --with-libpng use libpng (PNG image format)
1078 --with-libjpeg use libjpeg (JPEG file format)
1079 --with-libtiff use libtiff (TIFF file format)
1080 --with-libxpm use libxpm (XPM file format)
1081 --with-libmspack use libmspack (CHM help files loading)
1082 --with-sdl use SDL for audio on Unix
d51253e8 1083 --with-gnomeprint use GNOME print for printing under Unix
3565d135 1084 --with-hildon use Hildon framework for Nokia 770
a848cd7e
SC
1085 --with-opengl use OpenGL (or Mesa)
1086 --with-dmalloc use dmalloc library (http://dmalloc.com/)
1087 --with-regex enable support for wxRegEx class
1088 --with-zlib use zlib for LZW compression
1089 --with-odbc use the IODBC and wxODBC classes
1090 --with-expat enable XML support using expat parser
ceec2216 1091 --with-flavour=NAME specify a name to identify this build
a848cd7e
SC
1092 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1093 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1094 --with-x use the X Window System
1095 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1096 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1097 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1098 --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
1099 --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
1100
1101Some influential environment variables:
dcc1b6ad
VS
1102 CC C compiler command
1103 CFLAGS C compiler flags
1104 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1105 nonstandard directory <lib dir>
1106 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1107 headers in a nonstandard directory <include dir>
1108 CPP C preprocessor
1109 CXX C++ compiler command
1110 CXXFLAGS C++ compiler flags
1111 CXXCPP C++ preprocessor
a848cd7e
SC
1112
1113Use these variables to override the choices made by `configure' or to help
1114it to find libraries and programs with nonstandard names/locations.
1115
77ffb593 1116Report bugs to <wx-dev@lists.wxwidgets.org>.
a848cd7e
SC
1117_ACEOF
1118fi
1119
1120if test "$ac_init_help" = "recursive"; then
1121 # If there are subdirs, report their specific --help.
1122 ac_popdir=`pwd`
1123 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1124 test -d $ac_dir || continue
1125 ac_builddir=.
1126
1127if test "$ac_dir" != .; then
1128 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1129 # A "../" for each directory in $ac_dir_suffix.
1130 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1131else
1132 ac_dir_suffix= ac_top_builddir=
1133fi
1134
1135case $srcdir in
1136 .) # No --srcdir option. We are building in place.
1137 ac_srcdir=.
1138 if test -z "$ac_top_builddir"; then
1139 ac_top_srcdir=.
1140 else
1141 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1142 fi ;;
1143 [\\/]* | ?:[\\/]* ) # Absolute path.
1144 ac_srcdir=$srcdir$ac_dir_suffix;
1145 ac_top_srcdir=$srcdir ;;
1146 *) # Relative path.
1147 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1148 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1149esac
ac1cb8d3
VS
1150
1151# Do not use `cd foo && pwd` to compute absolute paths, because
1152# the directories may not exist.
1153case `pwd` in
1154.) ac_abs_builddir="$ac_dir";;
1155*)
1156 case "$ac_dir" in
1157 .) ac_abs_builddir=`pwd`;;
1158 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1159 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1160 esac;;
1161esac
1162case $ac_abs_builddir in
1163.) ac_abs_top_builddir=${ac_top_builddir}.;;
1164*)
1165 case ${ac_top_builddir}. in
1166 .) ac_abs_top_builddir=$ac_abs_builddir;;
1167 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1168 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1169 esac;;
1170esac
1171case $ac_abs_builddir in
1172.) ac_abs_srcdir=$ac_srcdir;;
1173*)
1174 case $ac_srcdir in
1175 .) ac_abs_srcdir=$ac_abs_builddir;;
1176 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1177 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1178 esac;;
1179esac
1180case $ac_abs_builddir in
1181.) ac_abs_top_srcdir=$ac_top_srcdir;;
1182*)
1183 case $ac_top_srcdir in
1184 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1185 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1186 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1187 esac;;
1188esac
a848cd7e
SC
1189
1190 cd $ac_dir
1191 # Check for guested configure; otherwise get Cygnus style configure.
1192 if test -f $ac_srcdir/configure.gnu; then
1193 echo
1194 $SHELL $ac_srcdir/configure.gnu --help=recursive
1195 elif test -f $ac_srcdir/configure; then
1196 echo
1197 $SHELL $ac_srcdir/configure --help=recursive
1198 elif test -f $ac_srcdir/configure.ac ||
ac1cb8d3 1199 test -f $ac_srcdir/configure.in; then
a848cd7e
SC
1200 echo
1201 $ac_configure --help
1202 else
1203 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1204 fi
f10e38c4 1205 cd "$ac_popdir"
a848cd7e
SC
1206 done
1207fi
1208
1209test -n "$ac_init_help" && exit 0
1210if $ac_init_version; then
1211 cat <<\_ACEOF
dd8df4fc 1212wxWidgets configure 2.7.0
ac1cb8d3 1213generated by GNU Autoconf 2.59
a848cd7e 1214
ac1cb8d3 1215Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
1216This configure script is free software; the Free Software Foundation
1217gives unlimited permission to copy, distribute and modify it.
1218_ACEOF
1219 exit 0
1220fi
1221exec 5>config.log
1222cat >&5 <<_ACEOF
1223This file contains any messages produced by compilers while
1224running configure, to aid debugging if configure makes a mistake.
1225
dd8df4fc 1226It was created by wxWidgets $as_me 2.7.0, which was
ac1cb8d3 1227generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
1228
1229 $ $0 $@
1230
1231_ACEOF
1232{
1233cat <<_ASUNAME
1234## --------- ##
1235## Platform. ##
1236## --------- ##
1237
1238hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1239uname -m = `(uname -m) 2>/dev/null || echo unknown`
1240uname -r = `(uname -r) 2>/dev/null || echo unknown`
1241uname -s = `(uname -s) 2>/dev/null || echo unknown`
1242uname -v = `(uname -v) 2>/dev/null || echo unknown`
1243
1244/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1245/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1246
1247/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1248/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1249/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1250hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1251/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1252/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1253/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1254
1255_ASUNAME
1256
1257as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1258for as_dir in $PATH
1259do
1260 IFS=$as_save_IFS
1261 test -z "$as_dir" && as_dir=.
1262 echo "PATH: $as_dir"
1263done
1264
1265} >&5
1266
1267cat >&5 <<_ACEOF
1268
1269
1270## ----------- ##
1271## Core tests. ##
1272## ----------- ##
1273
1274_ACEOF
1275
1276
1277# Keep a trace of the command line.
1278# Strip out --no-create and --no-recursion so they do not pile up.
1279# Strip out --silent because we don't want to record it for future runs.
1280# Also quote any args containing shell meta-characters.
1281# Make two passes to allow for proper duplicate-argument suppression.
1282ac_configure_args=
1283ac_configure_args0=
1284ac_configure_args1=
1285ac_sep=
1286ac_must_keep_next=false
1287for ac_pass in 1 2
1288do
1289 for ac_arg
1290 do
1291 case $ac_arg in
1292 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1293 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1294 | -silent | --silent | --silen | --sile | --sil)
1295 continue ;;
1296 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1297 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1298 esac
1299 case $ac_pass in
1300 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1301 2)
1302 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1303 if test $ac_must_keep_next = true; then
ac1cb8d3 1304 ac_must_keep_next=false # Got value, back to normal.
a848cd7e 1305 else
ac1cb8d3
VS
1306 case $ac_arg in
1307 *=* | --config-cache | -C | -disable-* | --disable-* \
1308 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1309 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1310 | -with-* | --with-* | -without-* | --without-* | --x)
1311 case "$ac_configure_args0 " in
1312 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1313 esac
1314 ;;
1315 -* ) ac_must_keep_next=true ;;
1316 esac
a848cd7e
SC
1317 fi
1318 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1319 # Get rid of the leading space.
1320 ac_sep=" "
1321 ;;
1322 esac
1323 done
1324done
1325$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1326$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1327
1328# When interrupted or exit'd, cleanup temporary files, and complete
1329# config.log. We remove comments because anyway the quotes in there
1330# would cause problems or look ugly.
1331# WARNING: Be sure not to use single quotes in there, as some shells,
1332# such as our DU 5.0 friend, will then `close' the trap.
1333trap 'exit_status=$?
1334 # Save into config.log some information that might help in debugging.
1335 {
1336 echo
1337
1338 cat <<\_ASBOX
1339## ---------------- ##
1340## Cache variables. ##
1341## ---------------- ##
1342_ASBOX
1343 echo
1344 # The following way of writing the cache mishandles newlines in values,
1345{
1346 (set) 2>&1 |
1347 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1348 *ac_space=\ *)
1349 sed -n \
ac1cb8d3
VS
1350 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1351 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
a848cd7e
SC
1352 ;;
1353 *)
1354 sed -n \
ac1cb8d3 1355 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
1356 ;;
1357 esac;
1358}
1359 echo
1360
1361 cat <<\_ASBOX
1362## ----------------- ##
1363## Output variables. ##
1364## ----------------- ##
1365_ASBOX
1366 echo
1367 for ac_var in $ac_subst_vars
1368 do
1369 eval ac_val=$`echo $ac_var`
1370 echo "$ac_var='"'"'$ac_val'"'"'"
1371 done | sort
1372 echo
1373
1374 if test -n "$ac_subst_files"; then
1375 cat <<\_ASBOX
1376## ------------- ##
1377## Output files. ##
1378## ------------- ##
1379_ASBOX
1380 echo
1381 for ac_var in $ac_subst_files
1382 do
1383 eval ac_val=$`echo $ac_var`
ac1cb8d3 1384 echo "$ac_var='"'"'$ac_val'"'"'"
a848cd7e
SC
1385 done | sort
1386 echo
1387 fi
1388
1389 if test -s confdefs.h; then
1390 cat <<\_ASBOX
1391## ----------- ##
1392## confdefs.h. ##
1393## ----------- ##
1394_ASBOX
1395 echo
1396 sed "/^$/d" confdefs.h | sort
1397 echo
1398 fi
1399 test "$ac_signal" != 0 &&
1400 echo "$as_me: caught signal $ac_signal"
1401 echo "$as_me: exit $exit_status"
1402 } >&5
ac1cb8d3 1403 rm -f core *.core &&
a848cd7e
SC
1404 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1405 exit $exit_status
1406 ' 0
1407for ac_signal in 1 2 13 15; do
1408 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1409done
1410ac_signal=0
1411
1412# confdefs.h avoids OS command line length limits that DEFS can exceed.
1413rm -rf conftest* confdefs.h
1414# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1415echo >confdefs.h
1416
1417# Predefined preprocessor variables.
1418
1419cat >>confdefs.h <<_ACEOF
1420#define PACKAGE_NAME "$PACKAGE_NAME"
1421_ACEOF
1422
1423
1424cat >>confdefs.h <<_ACEOF
1425#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1426_ACEOF
1427
1428
1429cat >>confdefs.h <<_ACEOF
1430#define PACKAGE_VERSION "$PACKAGE_VERSION"
1431_ACEOF
1432
1433
1434cat >>confdefs.h <<_ACEOF
1435#define PACKAGE_STRING "$PACKAGE_STRING"
1436_ACEOF
1437
1438
1439cat >>confdefs.h <<_ACEOF
1440#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1441_ACEOF
1442
1443
1444# Let the site file select an alternate cache file if it wants to.
1445# Prefer explicitly selected file to automatically selected ones.
1446if test -z "$CONFIG_SITE"; then
1447 if test "x$prefix" != xNONE; then
1448 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1449 else
1450 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1451 fi
1452fi
1453for ac_site_file in $CONFIG_SITE; do
1454 if test -r "$ac_site_file"; then
1455 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1456echo "$as_me: loading site script $ac_site_file" >&6;}
1457 sed 's/^/| /' "$ac_site_file" >&5
1458 . "$ac_site_file"
1459 fi
1460done
1461
1462if test -r "$cache_file"; then
1463 # Some versions of bash will fail to source /dev/null (special
1464 # files actually), so we avoid doing that.
1465 if test -f "$cache_file"; then
1466 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1467echo "$as_me: loading cache $cache_file" >&6;}
1468 case $cache_file in
1469 [\\/]* | ?:[\\/]* ) . $cache_file;;
1470 *) . ./$cache_file;;
1471 esac
1472 fi
1473else
1474 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1475echo "$as_me: creating cache $cache_file" >&6;}
1476 >$cache_file
1477fi
1478
1479# Check that the precious variables saved in the cache have kept the same
1480# value.
1481ac_cache_corrupted=false
1482for ac_var in `(set) 2>&1 |
ac1cb8d3 1483 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
a848cd7e
SC
1484 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1485 eval ac_new_set=\$ac_env_${ac_var}_set
1486 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1487 eval ac_new_val="\$ac_env_${ac_var}_value"
1488 case $ac_old_set,$ac_new_set in
1489 set,)
1490 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1491echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1492 ac_cache_corrupted=: ;;
1493 ,set)
1494 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1495echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1496 ac_cache_corrupted=: ;;
1497 ,);;
1498 *)
1499 if test "x$ac_old_val" != "x$ac_new_val"; then
ac1cb8d3 1500 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
a848cd7e 1501echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
ac1cb8d3 1502 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
a848cd7e 1503echo "$as_me: former value: $ac_old_val" >&2;}
ac1cb8d3 1504 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
a848cd7e 1505echo "$as_me: current value: $ac_new_val" >&2;}
ac1cb8d3 1506 ac_cache_corrupted=:
a848cd7e
SC
1507 fi;;
1508 esac
1509 # Pass precious variables to config.status.
1510 if test "$ac_new_set" = set; then
1511 case $ac_new_val in
1512 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1513 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1514 *) ac_arg=$ac_var=$ac_new_val ;;
1515 esac
1516 case " $ac_configure_args " in
1517 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1518 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1519 esac
1520 fi
1521done
1522if $ac_cache_corrupted; then
1523 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1524echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1525 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1526echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1527 { (exit 1); exit 1; }; }
1528fi
1529
1530ac_ext=c
1531ac_cpp='$CPP $CPPFLAGS'
1532ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1533ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1534ac_compiler_gnu=$ac_cv_c_compiler_gnu
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565ac_aux_dir=
1566for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1567 if test -f $ac_dir/install-sh; then
1568 ac_aux_dir=$ac_dir
1569 ac_install_sh="$ac_aux_dir/install-sh -c"
1570 break
1571 elif test -f $ac_dir/install.sh; then
1572 ac_aux_dir=$ac_dir
1573 ac_install_sh="$ac_aux_dir/install.sh -c"
1574 break
1575 elif test -f $ac_dir/shtool; then
1576 ac_aux_dir=$ac_dir
1577 ac_install_sh="$ac_aux_dir/shtool install -c"
1578 break
1579 fi
1580done
1581if test -z "$ac_aux_dir"; then
1582 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1583echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1584 { (exit 1); exit 1; }; }
1585fi
1586ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1587ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1588ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1589
1590# Make sure we can run config.sub.
1591$ac_config_sub sun4 >/dev/null 2>&1 ||
1592 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1593echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1594 { (exit 1); exit 1; }; }
1595
1596echo "$as_me:$LINENO: checking build system type" >&5
1597echo $ECHO_N "checking build system type... $ECHO_C" >&6
1598if test "${ac_cv_build+set}" = set; then
1599 echo $ECHO_N "(cached) $ECHO_C" >&6
1600else
1601 ac_cv_build_alias=$build_alias
1602test -z "$ac_cv_build_alias" &&
1603 ac_cv_build_alias=`$ac_config_guess`
1604test -z "$ac_cv_build_alias" &&
1605 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1606echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1607 { (exit 1); exit 1; }; }
1608ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1609 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1610echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1611 { (exit 1); exit 1; }; }
1612
1613fi
1614echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1615echo "${ECHO_T}$ac_cv_build" >&6
1616build=$ac_cv_build
1617build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1618build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1619build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1620
1621
1622echo "$as_me:$LINENO: checking host system type" >&5
1623echo $ECHO_N "checking host system type... $ECHO_C" >&6
1624if test "${ac_cv_host+set}" = set; then
1625 echo $ECHO_N "(cached) $ECHO_C" >&6
1626else
1627 ac_cv_host_alias=$host_alias
1628test -z "$ac_cv_host_alias" &&
1629 ac_cv_host_alias=$ac_cv_build_alias
1630ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1631 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1632echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1633 { (exit 1); exit 1; }; }
1634
1635fi
1636echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1637echo "${ECHO_T}$ac_cv_host" >&6
1638host=$ac_cv_host
1639host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1640host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1641host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1642
1643
1644echo "$as_me:$LINENO: checking target system type" >&5
1645echo $ECHO_N "checking target system type... $ECHO_C" >&6
1646if test "${ac_cv_target+set}" = set; then
1647 echo $ECHO_N "(cached) $ECHO_C" >&6
1648else
1649 ac_cv_target_alias=$target_alias
1650test "x$ac_cv_target_alias" = "x" &&
1651 ac_cv_target_alias=$ac_cv_host_alias
1652ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1653 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1654echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1655 { (exit 1); exit 1; }; }
1656
1657fi
1658echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1659echo "${ECHO_T}$ac_cv_target" >&6
1660target=$ac_cv_target
1661target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1662target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1663target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1664
1665
1666# The aliases save the names the user supplied, while $host etc.
1667# will get canonicalized.
1668test -n "$target_alias" &&
1669 test "$program_prefix$program_suffix$program_transform_name" = \
1670 NONENONEs,x,x, &&
1671 program_prefix=${target_alias}-
1672
1673
1674
ceec2216 1675wx_major_version_number=2
dd8df4fc
VZ
1676wx_minor_version_number=7
1677wx_release_number=0
1678wx_subrelease_number=0
a848cd7e 1679
ceec2216
RL
1680WX_RELEASE=$wx_major_version_number.$wx_minor_version_number
1681WX_VERSION=$WX_RELEASE.$wx_release_number
1682WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number
a848cd7e 1683
ceec2216 1684WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number
a848cd7e 1685
a848cd7e
SC
1686
1687
1688
1689USE_UNIX=1
1690USE_OS2=0
1691USE_WIN32=0
1692USE_DOS=0
1693USE_BEOS=0
1694USE_MAC=0
1695
1696USE_AIX=
1697USE_BSD= USE_DARWIN= USE_FREEBSD=
1698USE_GNU= USE_HPUX=
1699USE_LINUX=
1700USE_NETBSD=
1701USE_OPENBSD=
1702USE_OSF= USE_SGI=
1703USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS=
1704USE_ULTRIX=
1705USE_UNIXWARE=
1706
1707USE_ALPHA=
1708
1709NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1710
1711ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11"
1712
1713DEFAULT_wxUSE_COCOA=0
1714DEFAULT_wxUSE_GTK=0
1715DEFAULT_wxUSE_MAC=0
1716DEFAULT_wxUSE_MGL=0
1717DEFAULT_wxUSE_MICROWIN=0
1718DEFAULT_wxUSE_MOTIF=0
1719DEFAULT_wxUSE_MSW=0
1720DEFAULT_wxUSE_PM=0
1721DEFAULT_wxUSE_X11=0
1722
1723DEFAULT_DEFAULT_wxUSE_COCOA=0
1724DEFAULT_DEFAULT_wxUSE_GTK=0
1725DEFAULT_DEFAULT_wxUSE_MAC=0
1726DEFAULT_DEFAULT_wxUSE_MGL=0
1727DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1728DEFAULT_DEFAULT_wxUSE_MOTIF=0
1729DEFAULT_DEFAULT_wxUSE_MSW=0
1730DEFAULT_DEFAULT_wxUSE_PM=0
1731DEFAULT_DEFAULT_wxUSE_X11=0
1732
1733PROGRAM_EXT=
1734SO_SUFFIX=so
1735SAMPLES_RPATH_FLAG=
1736SAMPLES_RPATH_POSTLINK=
1737
a03b8b04
RD
1738DEFAULT_STD_FLAG=yes
1739
a848cd7e
SC
1740case "${host}" in
1741 *-hp-hpux* )
1742 USE_HPUX=1
1743 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1744 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1745 SO_SUFFIX=sl
1746 cat >>confdefs.h <<\_ACEOF
1747#define __HPUX__ 1
1748_ACEOF
1749
2eef8513 1750
c92ad099 1751 CPPFLAGS="-D_HPUX_SOURCE $CPPFLAGS"
a848cd7e
SC
1752 ;;
1753 *-*-linux* )
1754 USE_LINUX=1
1755 cat >>confdefs.h <<\_ACEOF
1756#define __LINUX__ 1
1757_ACEOF
1758
1759 TMP=`uname -m`
1760 if test "x$TMP" = "xalpha"; then
1761 USE_ALPHA=1
1762 cat >>confdefs.h <<\_ACEOF
1763#define __ALPHA__ 1
1764_ACEOF
1765
1766 fi
1767 DEFAULT_DEFAULT_wxUSE_GTK=1
1768 ;;
1769 *-*-gnu* | *-*-k*bsd*-gnu )
1770 USE_GNU=1
1771 TMP=`uname -m`
1772 if test "x$TMP" = "xalpha"; then
1773 USE_ALPHA=1
1774 cat >>confdefs.h <<\_ACEOF
1775#define __ALPHA__ 1
1776_ACEOF
1777
1778 fi
1779 DEFAULT_DEFAULT_wxUSE_GTK=1
1780 ;;
1781 *-*-irix5* | *-*-irix6* )
1782 USE_SGI=1
1783 USE_SVR4=1
1784 cat >>confdefs.h <<\_ACEOF
1785#define __SGI__ 1
1786_ACEOF
1787
1788 cat >>confdefs.h <<\_ACEOF
1789#define __SVR4__ 1
1790_ACEOF
1791
1792 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1793 ;;
1794 *-*-solaris2* )
1795 USE_SUN=1
1796 USE_SOLARIS=1
1797 USE_SVR4=1
1798 cat >>confdefs.h <<\_ACEOF
1799#define __SUN__ 1
1800_ACEOF
1801
1802 cat >>confdefs.h <<\_ACEOF
1803#define __SOLARIS__ 1
1804_ACEOF
1805
1806 cat >>confdefs.h <<\_ACEOF
1807#define __SVR4__ 1
1808_ACEOF
1809
1810 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1811 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1812 ;;
1813 *-*-sunos4* )
1814 USE_SUN=1
1815 USE_SUNOS=1
1816 USE_BSD=1
1817 cat >>confdefs.h <<\_ACEOF
1818#define __SUN__ 1
1819_ACEOF
1820
1821 cat >>confdefs.h <<\_ACEOF
1822#define __SUNOS__ 1
1823_ACEOF
1824
1825 cat >>confdefs.h <<\_ACEOF
1826#define __BSD__ 1
1827_ACEOF
1828
1829 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1830 ;;
1831 *-*-freebsd*)
1832 USE_BSD=1
1833 USE_FREEBSD=1
1834 cat >>confdefs.h <<\_ACEOF
1835#define __FREEBSD__ 1
1836_ACEOF
1837
1838 cat >>confdefs.h <<\_ACEOF
1839#define __BSD__ 1
1840_ACEOF
1841
1842 DEFAULT_DEFAULT_wxUSE_GTK=1
1843 ;;
1844 *-*-openbsd*)
1845 USE_BSD=1
1846 USE_OPENBSD=1
1847 cat >>confdefs.h <<\_ACEOF
1848#define __OPENBSD__ 1
1849_ACEOF
1850
1851 cat >>confdefs.h <<\_ACEOF
1852#define __BSD__ 1
1853_ACEOF
1854
1855 DEFAULT_DEFAULT_wxUSE_GTK=1
1856 ;;
1857 *-*-netbsd*)
1858 USE_BSD=1
1859 USE_NETBSD=1
1860 cat >>confdefs.h <<\_ACEOF
1861#define __NETBSD__ 1
1862_ACEOF
1863
1864 cat >>confdefs.h <<\_ACEOF
1865#define __BSD__ 1
1866_ACEOF
1867
1868 DEFAULT_DEFAULT_wxUSE_GTK=1
728258f4 1869 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
def7c04a 1870
def7c04a 1871 CPPFLAGS="-D_NETBSD_SOURCE -D_LIBC $CPPFLAGS"
a848cd7e
SC
1872 ;;
1873 *-*-osf* )
1874 USE_ALPHA=1
1875 USE_OSF=1
1876 cat >>confdefs.h <<\_ACEOF
1877#define __ALPHA__ 1
1878_ACEOF
1879
1880 cat >>confdefs.h <<\_ACEOF
1881#define __OSF__ 1
1882_ACEOF
1883
1884 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1885 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1886 ;;
1887 *-*-dgux5* )
1888 USE_ALPHA=1
1889 USE_SVR4=1
1890 cat >>confdefs.h <<\_ACEOF
1891#define __ALPHA__ 1
1892_ACEOF
1893
1894 cat >>confdefs.h <<\_ACEOF
1895#define __SVR4__ 1
1896_ACEOF
1897
1898 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1899 ;;
1900 *-*-sysv5* )
1901 USE_SYSV=1
1902 USE_SVR4=1
1903 cat >>confdefs.h <<\_ACEOF
1904#define __SYSV__ 1
1905_ACEOF
1906
1907 cat >>confdefs.h <<\_ACEOF
1908#define __SVR4__ 1
1909_ACEOF
1910
1911 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1912 ;;
1913 *-*-aix* )
1914 USE_AIX=1
1915 USE_SYSV=1
1916 USE_SVR4=1
1917 SO_SUFFIX=a
1918 cat >>confdefs.h <<\_ACEOF
1919#define __AIX__ 1
1920_ACEOF
1921
1922 cat >>confdefs.h <<\_ACEOF
1923#define __SYSV__ 1
1924_ACEOF
1925
1926 cat >>confdefs.h <<\_ACEOF
1927#define __SVR4__ 1
1928_ACEOF
1929
1930 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1931 ;;
1932
1933 *-*-*UnixWare*)
1934 USE_SYSV=1
1935 USE_SVR4=1
1936 USE_UNIXWARE=1
1937 cat >>confdefs.h <<\_ACEOF
1938#define __UNIXWARE__ 1
1939_ACEOF
1940
1941 ;;
1942
1943 *-*-cygwin* | *-*-mingw32* )
1944 SO_SUFFIX=dll
1945 PROGRAM_EXT=".exe"
a848cd7e 1946 DEFAULT_DEFAULT_wxUSE_MSW=1
a03b8b04 1947 DEFAULT_STD_FLAG=no
a848cd7e
SC
1948 ;;
1949
1950 *-pc-msdosdjgpp )
1951 USE_UNIX=0
1952 USE_DOS=1
1953 cat >>confdefs.h <<\_ACEOF
1954#define __DOS__ 1
1955_ACEOF
1956
1957 PROGRAM_EXT=".exe"
1958 DEFAULT_DEFAULT_wxUSE_MGL=1
a848cd7e
SC
1959 ;;
1960
1961 *-pc-os2_emx | *-pc-os2-emx )
1962 cat >>confdefs.h <<\_ACEOF
1963#define __EMX__ 1
1964_ACEOF
1965
1966 USE_OS2=1
1967 cat >>confdefs.h <<\_ACEOF
1968#define __OS2__ 1
1969_ACEOF
1970
1971 PROGRAM_EXT=".exe"
1972 DEFAULT_DEFAULT_wxUSE_PM=1
1973 CXX=gcc
1974 LDFLAGS="$LDFLAGS -Zcrtdll"
1975 ac_executable_extensions=".exe"
1976 export ac_executable_extensions
1977 ac_save_IFS="$IFS"
1978 IFS='\\'
1979 ac_TEMP_PATH=
1980 for ac_dir in $PATH; do
1981 IFS=$ac_save_IFS
1982 if test -z "$ac_TEMP_PATH"; then
1983 ac_TEMP_PATH="$ac_dir"
1984 else
1985 ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
1986 fi
1987 done
1988 export PATH="$ac_TEMP_PATH"
1989 unset ac_TEMP_PATH
a03b8b04 1990 DEFAULT_STD_FLAG=no
a848cd7e
SC
1991 ;;
1992
cfda0ea8 1993 *-*-darwin* )
a848cd7e
SC
1994 USE_BSD=1
1995 USE_DARWIN=1
1996 SO_SUFFIX=dylib
1997 cat >>confdefs.h <<\_ACEOF
1998#define __BSD__ 1
1999_ACEOF
2000
2001 cat >>confdefs.h <<\_ACEOF
2002#define __DARWIN__ 1
a848cd7e
SC
2003_ACEOF
2004
2005 cat >>confdefs.h <<\_ACEOF
2006#define TARGET_CARBON 1
2007_ACEOF
2008
2009 DEFAULT_DEFAULT_wxUSE_MAC=1
a03b8b04 2010 DEFAULT_STD_FLAG=no
a848cd7e 2011 ;;
1e9e8aba
DE
2012 powerpc-apple-macos* )
2013 USE_UNIX=0
2014 ac_cv_c_bigendian=yes
2015 SO_SUFFIX=shlib
2016 DEFAULT_DEFAULT_wxUSE_MAC=1
a03b8b04 2017 DEFAULT_STD_FLAG=no
1e9e8aba 2018 ;;
a848cd7e
SC
2019
2020 *-*-beos* )
2021 USE_BEOS=1
2022 cat >>confdefs.h <<\_ACEOF
2023#define __BEOS__ 1
2024_ACEOF
2025
2026 ;;
2027
2028 *)
2029 { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5
2030echo "$as_me: error: unknown system type ${host}." >&2;}
2031 { (exit 1); exit 1; }; }
2032esac
2033
2034
2035
2036
2037 wx_arg_cache_file="configarg.cache"
2038 echo "loading argument cache $wx_arg_cache_file"
2039 rm -f ${wx_arg_cache_file}.tmp
2040 touch ${wx_arg_cache_file}.tmp
2041 touch ${wx_arg_cache_file}
2042
2043
2044DEBUG_CONFIGURE=0
2045if test $DEBUG_CONFIGURE = 1; then
2046 DEFAULT_wxUSE_UNIVERSAL=no
2047 DEFAULT_wxUSE_STL=no
2048
2049 DEFAULT_wxUSE_NANOX=no
2050
2051 DEFAULT_wxUSE_THREADS=yes
2052
2053 DEFAULT_wxUSE_SHARED=yes
2054 DEFAULT_wxUSE_OPTIMISE=no
2055 DEFAULT_wxUSE_PROFILE=no
2056 DEFAULT_wxUSE_NO_DEPS=no
2057 DEFAULT_wxUSE_NO_RTTI=no
2058 DEFAULT_wxUSE_NO_EXCEPTIONS=no
7afc46ab 2059 DEFAULT_wxUSE_UNIVERSAL_BINARY=no
ffa0583f 2060 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2061 DEFAULT_wxUSE_PERMISSIVE=no
2062 DEFAULT_wxUSE_DEBUG_FLAG=yes
2063 DEFAULT_wxUSE_DEBUG_INFO=yes
2064 DEFAULT_wxUSE_DEBUG_GDB=yes
2065 DEFAULT_wxUSE_MEM_TRACING=no
2066 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2067 DEFAULT_wxUSE_DMALLOC=no
2068 DEFAULT_wxUSE_APPLE_IEEE=no
2069
2070 DEFAULT_wxUSE_EXCEPTIONS=no
2071 DEFAULT_wxUSE_LOG=yes
2072 DEFAULT_wxUSE_LOGWINDOW=no
2073 DEFAULT_wxUSE_LOGGUI=no
2074 DEFAULT_wxUSE_LOGDIALOG=no
2075
2076 DEFAULT_wxUSE_GUI=yes
2077 DEFAULT_wxUSE_CONTROLS=no
2078
2079 DEFAULT_wxUSE_REGEX=no
2080 DEFAULT_wxUSE_XML=no
2081 DEFAULT_wxUSE_EXPAT=no
2082 DEFAULT_wxUSE_ZLIB=no
2083 DEFAULT_wxUSE_LIBPNG=no
2084 DEFAULT_wxUSE_LIBJPEG=no
2085 DEFAULT_wxUSE_LIBTIFF=no
2086 DEFAULT_wxUSE_LIBXPM=no
2087 DEFAULT_wxUSE_LIBMSPACK=no
2088 DEFAULT_wxUSE_LIBSDL=no
d1c38808 2089 DEFAULT_wxUSE_LIBGNOMEPRINT=no
3565d135 2090 DEFAULT_wxUSE_LIBHILDON=no
a848cd7e
SC
2091 DEFAULT_wxUSE_ODBC=no
2092 DEFAULT_wxUSE_OPENGL=no
2093
2094 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
eaff0f0d 2095 DEFAULT_wxUSE_STACKWALKER=no
36b6448c 2096 DEFAULT_wxUSE_DEBUGREPORT=no
a848cd7e
SC
2097 DEFAULT_wxUSE_SNGLINST_CHECKER=no
2098 DEFAULT_wxUSE_STD_IOSTREAM=no
59746b65 2099 DEFAULT_wxUSE_STD_STRING=no
a848cd7e
SC
2100 DEFAULT_wxUSE_CMDLINE_PARSER=no
2101 DEFAULT_wxUSE_DATETIME=no
2102 DEFAULT_wxUSE_TIMER=no
2103 DEFAULT_wxUSE_STOPWATCH=no
2104 DEFAULT_wxUSE_FILE=no
2105 DEFAULT_wxUSE_FFILE=no
07158944 2106 DEFAULT_wxUSE_STDPATHS=no
a848cd7e
SC
2107 DEFAULT_wxUSE_TEXTBUFFER=no
2108 DEFAULT_wxUSE_TEXTFILE=no
2109 DEFAULT_wxUSE_SOUND=no
3b57de8b 2110 DEFAULT_wxUSE_MEDIACTRL=no
f10e38c4 2111 DEFAULT_wxUSE_GSTREAMER8=no
a848cd7e
SC
2112 DEFAULT_wxUSE_INTL=no
2113 DEFAULT_wxUSE_CONFIG=no
2114 DEFAULT_wxUSE_FONTMAP=no
2115 DEFAULT_wxUSE_STREAMS=no
2116 DEFAULT_wxUSE_SOCKETS=no
2117 DEFAULT_wxUSE_OLE=no
2118 DEFAULT_wxUSE_DATAOBJ=no
2119 DEFAULT_wxUSE_DIALUP_MANAGER=no
2120 DEFAULT_wxUSE_JOYSTICK=no
2121 DEFAULT_wxUSE_DYNLIB_CLASS=no
2122 DEFAULT_wxUSE_DYNAMIC_LOADER=no
2123 DEFAULT_wxUSE_LONGLONG=no
2124 DEFAULT_wxUSE_GEOMETRY=no
2125
2126 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2127 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2128 DEFAULT_wxUSE_POSTSCRIPT=no
2129
2130 DEFAULT_wxUSE_CLIPBOARD=no
2131 DEFAULT_wxUSE_TOOLTIPS=no
2132 DEFAULT_wxUSE_DRAG_AND_DROP=no
2133 DEFAULT_wxUSE_DRAGIMAGE=no
2134 DEFAULT_wxUSE_SPLINES=no
fbe2ca43 2135 DEFAULT_wxUSE_MOUSEWHEEL=no
a848cd7e 2136
8a7b1113 2137 DEFAULT_wxUSE_MDI=no
a848cd7e
SC
2138 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2139 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2140 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2141
2142 DEFAULT_wxUSE_RESOURCES=no
2143 DEFAULT_wxUSE_CONSTRAINTS=no
2144 DEFAULT_wxUSE_IPC=no
2145 DEFAULT_wxUSE_HELP=no
2146 DEFAULT_wxUSE_MS_HTML_HELP=no
2147 DEFAULT_wxUSE_WXHTML_HELP=no
2148 DEFAULT_wxUSE_TREELAYOUT=no
2149 DEFAULT_wxUSE_METAFILE=no
2150 DEFAULT_wxUSE_MIMETYPE=no
2151 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2152 DEFAULT_wxUSE_PROTOCOL=no
2153 DEFAULT_wxUSE_PROTOCOL_HTTP=no
2154 DEFAULT_wxUSE_PROTOCOL_FTP=no
2155 DEFAULT_wxUSE_PROTOCOL_FILE=no
2156 DEFAULT_wxUSE_URL=no
2157
2158 DEFAULT_wxUSE_COMMONDLGS=no
2159 DEFAULT_wxUSE_CHOICEDLG=no
2160 DEFAULT_wxUSE_COLOURDLG=no
2161 DEFAULT_wxUSE_DIRDLG=no
2162 DEFAULT_wxUSE_FILEDLG=no
2163 DEFAULT_wxUSE_FINDREPLDLG=no
2164 DEFAULT_wxUSE_FONTDLG=no
2165 DEFAULT_wxUSE_MSGDLG=no
2166 DEFAULT_wxUSE_NUMBERDLG=no
2167 DEFAULT_wxUSE_TEXTDLG=no
2168 DEFAULT_wxUSE_SPLASH=no
2169 DEFAULT_wxUSE_STARTUP_TIPS=no
2170 DEFAULT_wxUSE_PROGRESSDLG=no
2171 DEFAULT_wxUSE_WIZARDDLG=no
2172
2173 DEFAULT_wxUSE_MENUS=no
2174 DEFAULT_wxUSE_MINIFRAME=no
2175 DEFAULT_wxUSE_HTML=no
91dea314 2176 DEFAULT_wxUSE_RICHTEXT=no
9a8f0513 2177 DEFAULT_wxUSE_XRC=no
646b6ec1 2178 DEFAULT_wxUSE_WEBKIT=no
a848cd7e
SC
2179 DEFAULT_wxUSE_FILESYSTEM=no
2180 DEFAULT_wxUSE_FS_INET=no
2181 DEFAULT_wxUSE_FS_ZIP=no
2182 DEFAULT_wxUSE_BUSYINFO=no
9e8e867f 2183 DEFAULT_wxUSE_ARCHIVE_STREAMS=no
a848cd7e 2184 DEFAULT_wxUSE_ZIPSTREAM=no
a848cd7e
SC
2185 DEFAULT_wxUSE_VALIDATORS=no
2186
2187 DEFAULT_wxUSE_ACCEL=no
2188 DEFAULT_wxUSE_BUTTON=no
2189 DEFAULT_wxUSE_BMPBUTTON=no
2190 DEFAULT_wxUSE_CALCTRL=no
2191 DEFAULT_wxUSE_CARET=no
2192 DEFAULT_wxUSE_CHECKBOX=no
2193 DEFAULT_wxUSE_CHECKLST=no
2194 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 2195 DEFAULT_wxUSE_CHOICEBOOK=no
a848cd7e 2196 DEFAULT_wxUSE_COMBOBOX=no
da98e9be 2197 DEFAULT_wxUSE_DATEPICKCTRL=no
a848cd7e
SC
2198 DEFAULT_wxUSE_DISPLAY=no
2199 DEFAULT_wxUSE_GAUGE=no
2200 DEFAULT_wxUSE_GRID=no
20e34ecc 2201 DEFAULT_wxUSE_DATAVIEWCTRL=no
a848cd7e
SC
2202 DEFAULT_wxUSE_IMAGLIST=no
2203 DEFAULT_wxUSE_LISTBOOK=no
2204 DEFAULT_wxUSE_LISTBOX=no
2205 DEFAULT_wxUSE_LISTCTRL=no
2206 DEFAULT_wxUSE_NOTEBOOK=no
2207 DEFAULT_wxUSE_RADIOBOX=no
2208 DEFAULT_wxUSE_RADIOBTN=no
2209 DEFAULT_wxUSE_SASH=no
2210 DEFAULT_wxUSE_SCROLLBAR=no
2211 DEFAULT_wxUSE_SLIDER=no
2212 DEFAULT_wxUSE_SPINBTN=no
2213 DEFAULT_wxUSE_SPINCTRL=no
2214 DEFAULT_wxUSE_SPLITTER=no
2215 DEFAULT_wxUSE_STATBMP=no
2216 DEFAULT_wxUSE_STATBOX=no
2217 DEFAULT_wxUSE_STATLINE=no
2218 DEFAULT_wxUSE_STATTEXT=no
2219 DEFAULT_wxUSE_STATUSBAR=yes
f10e38c4 2220 DEFAULT_wxUSE_TAB_DIALOG=no
a848cd7e
SC
2221 DEFAULT_wxUSE_TEXTCTRL=no
2222 DEFAULT_wxUSE_TOGGLEBTN=no
2223 DEFAULT_wxUSE_TOOLBAR=no
2224 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
2225 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
0093c2fc 2226 DEFAULT_wxUSE_TREEBOOK=no
5ec3bc43 2227 DEFAULT_wxUSE_TOOLBOOK=no
a848cd7e
SC
2228 DEFAULT_wxUSE_TREECTRL=no
2229 DEFAULT_wxUSE_POPUPWIN=no
2230 DEFAULT_wxUSE_TIPWINDOW=no
2231
2232 DEFAULT_wxUSE_UNICODE=no
2233 DEFAULT_wxUSE_UNICODE_MSLU=no
2234 DEFAULT_wxUSE_WCSRTOMBS=no
2235
2236 DEFAULT_wxUSE_PALETTE=no
2237 DEFAULT_wxUSE_IMAGE=no
2238 DEFAULT_wxUSE_GIF=no
2239 DEFAULT_wxUSE_PCX=no
2240 DEFAULT_wxUSE_PNM=no
2241 DEFAULT_wxUSE_IFF=no
2242 DEFAULT_wxUSE_XPM=no
2243 DEFAULT_wxUSE_ICO_CUR=no
2244 DEFAULT_wxUSE_ACCESSIBILITY=no
2245
2246 DEFAULT_wxUSE_MONOLITHIC=no
2247 DEFAULT_wxUSE_PLUGINS=no
2248 DEFAULT_wxUSE_OFFICIAL_BUILD=no
2249else
2250 DEFAULT_wxUSE_UNIVERSAL=no
2251 DEFAULT_wxUSE_STL=no
2252
2253 DEFAULT_wxUSE_NANOX=no
2254
2255 DEFAULT_wxUSE_THREADS=yes
2256
2257 DEFAULT_wxUSE_SHARED=yes
2258 DEFAULT_wxUSE_OPTIMISE=yes
2259 DEFAULT_wxUSE_PROFILE=no
2260 DEFAULT_wxUSE_NO_DEPS=no
2261 DEFAULT_wxUSE_NO_RTTI=no
2262 DEFAULT_wxUSE_NO_EXCEPTIONS=no
7afc46ab 2263 DEFAULT_wxUSE_UNIVERSAL_BINARY=no
ffa0583f 2264 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2265 DEFAULT_wxUSE_PERMISSIVE=no
2266 DEFAULT_wxUSE_DEBUG_FLAG=no
2267 DEFAULT_wxUSE_DEBUG_INFO=no
2268 DEFAULT_wxUSE_DEBUG_GDB=no
2269 DEFAULT_wxUSE_MEM_TRACING=no
2270 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2271 DEFAULT_wxUSE_DMALLOC=no
2272 DEFAULT_wxUSE_APPLE_IEEE=yes
2273
2274 DEFAULT_wxUSE_EXCEPTIONS=yes
2275 DEFAULT_wxUSE_LOG=yes
2276 DEFAULT_wxUSE_LOGWINDOW=yes
2277 DEFAULT_wxUSE_LOGGUI=yes
2278 DEFAULT_wxUSE_LOGDIALOG=yes
2279
2280 DEFAULT_wxUSE_GUI=yes
2281
2282 DEFAULT_wxUSE_REGEX=yes
2283 DEFAULT_wxUSE_XML=yes
2284 DEFAULT_wxUSE_EXPAT=yes
2285 DEFAULT_wxUSE_ZLIB=yes
2286 DEFAULT_wxUSE_LIBPNG=yes
2287 DEFAULT_wxUSE_LIBJPEG=yes
2288 DEFAULT_wxUSE_LIBTIFF=yes
2289 DEFAULT_wxUSE_LIBXPM=yes
2290 DEFAULT_wxUSE_LIBMSPACK=yes
2291 DEFAULT_wxUSE_LIBSDL=no
a03b8b04 2292 DEFAULT_wxUSE_LIBGNOMEPRINT=no
3565d135 2293 DEFAULT_wxUSE_LIBHILDON=no
a848cd7e 2294 DEFAULT_wxUSE_ODBC=no
52cb607e 2295 DEFAULT_wxUSE_OPENGL=no
a848cd7e
SC
2296
2297 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
eaff0f0d 2298 DEFAULT_wxUSE_STACKWALKER=yes
6671c68b 2299 DEFAULT_wxUSE_DEBUGREPORT=yes
a848cd7e 2300 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
a03b8b04
RD
2301 DEFAULT_wxUSE_STD_IOSTREAM=$DEFAULT_STD_FLAG
2302 DEFAULT_wxUSE_STD_STRING=$DEFAULT_STD_FLAG
a848cd7e
SC
2303 DEFAULT_wxUSE_CMDLINE_PARSER=yes
2304 DEFAULT_wxUSE_DATETIME=yes
2305 DEFAULT_wxUSE_TIMER=yes
2306 DEFAULT_wxUSE_STOPWATCH=yes
2307 DEFAULT_wxUSE_FILE=yes
2308 DEFAULT_wxUSE_FFILE=yes
07158944 2309 DEFAULT_wxUSE_STDPATHS=yes
a848cd7e
SC
2310 DEFAULT_wxUSE_TEXTBUFFER=yes
2311 DEFAULT_wxUSE_TEXTFILE=yes
2312 DEFAULT_wxUSE_SOUND=yes
3b57de8b 2313 DEFAULT_wxUSE_MEDIACTRL=no
f10e38c4 2314 DEFAULT_wxUSE_GSTREAMER8=no
a848cd7e
SC
2315 DEFAULT_wxUSE_INTL=yes
2316 DEFAULT_wxUSE_CONFIG=yes
2317 DEFAULT_wxUSE_FONTMAP=yes
2318 DEFAULT_wxUSE_STREAMS=yes
2319 DEFAULT_wxUSE_SOCKETS=yes
2320 DEFAULT_wxUSE_OLE=yes
2321 DEFAULT_wxUSE_DATAOBJ=yes
2322 DEFAULT_wxUSE_DIALUP_MANAGER=yes
2323 DEFAULT_wxUSE_JOYSTICK=yes
2324 DEFAULT_wxUSE_DYNLIB_CLASS=yes
2325 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
2326 DEFAULT_wxUSE_LONGLONG=yes
2327 DEFAULT_wxUSE_GEOMETRY=yes
2328
2329 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2330 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2331 DEFAULT_wxUSE_POSTSCRIPT=yes
2332
2333 DEFAULT_wxUSE_CLIPBOARD=yes
2334 DEFAULT_wxUSE_TOOLTIPS=yes
2335 DEFAULT_wxUSE_DRAG_AND_DROP=yes
2336 DEFAULT_wxUSE_DRAGIMAGE=yes
2337 DEFAULT_wxUSE_SPLINES=yes
fbe2ca43 2338 DEFAULT_wxUSE_MOUSEWHEEL=yes
a848cd7e 2339
8a7b1113 2340 DEFAULT_wxUSE_MDI=yes
a848cd7e
SC
2341 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2342 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2343 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2344
2345 DEFAULT_wxUSE_RESOURCES=no
2346 DEFAULT_wxUSE_CONSTRAINTS=yes
2347 DEFAULT_wxUSE_IPC=yes
2348 DEFAULT_wxUSE_HELP=yes
2349 DEFAULT_wxUSE_MS_HTML_HELP=yes
2350 DEFAULT_wxUSE_WXHTML_HELP=yes
2351 DEFAULT_wxUSE_TREELAYOUT=yes
2352 DEFAULT_wxUSE_METAFILE=yes
2353 DEFAULT_wxUSE_MIMETYPE=yes
2354 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
2355 DEFAULT_wxUSE_PROTOCOL=yes
2356 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2357 DEFAULT_wxUSE_PROTOCOL_FTP=yes
2358 DEFAULT_wxUSE_PROTOCOL_FILE=yes
2359 DEFAULT_wxUSE_URL=yes
2360
2361 DEFAULT_wxUSE_COMMONDLGS=yes
2362 DEFAULT_wxUSE_CHOICEDLG=yes
2363 DEFAULT_wxUSE_COLOURDLG=yes
2364 DEFAULT_wxUSE_DIRDLG=yes
2365 DEFAULT_wxUSE_FILEDLG=yes
2366 DEFAULT_wxUSE_FINDREPLDLG=yes
2367 DEFAULT_wxUSE_FONTDLG=yes
2368 DEFAULT_wxUSE_MSGDLG=yes
2369 DEFAULT_wxUSE_NUMBERDLG=yes
2370 DEFAULT_wxUSE_TEXTDLG=yes
2371 DEFAULT_wxUSE_SPLASH=yes
2372 DEFAULT_wxUSE_STARTUP_TIPS=yes
2373 DEFAULT_wxUSE_PROGRESSDLG=yes
2374 DEFAULT_wxUSE_WIZARDDLG=yes
2375
2376 DEFAULT_wxUSE_MENUS=yes
2377 DEFAULT_wxUSE_MINIFRAME=yes
2378 DEFAULT_wxUSE_HTML=yes
91dea314 2379 DEFAULT_wxUSE_RICHTEXT=yes
9a8f0513 2380 DEFAULT_wxUSE_XRC=yes
646b6ec1 2381 DEFAULT_wxUSE_WEBKIT=yes
a848cd7e
SC
2382 DEFAULT_wxUSE_FILESYSTEM=yes
2383 DEFAULT_wxUSE_FS_INET=yes
2384 DEFAULT_wxUSE_FS_ZIP=yes
2385 DEFAULT_wxUSE_BUSYINFO=yes
9e8e867f 2386 DEFAULT_wxUSE_ARCHIVE_STREAMS=yes
a848cd7e 2387 DEFAULT_wxUSE_ZIPSTREAM=yes
a848cd7e
SC
2388 DEFAULT_wxUSE_VALIDATORS=yes
2389
2390 DEFAULT_wxUSE_ACCEL=yes
2391 DEFAULT_wxUSE_BUTTON=yes
2392 DEFAULT_wxUSE_BMPBUTTON=yes
2393 DEFAULT_wxUSE_CALCTRL=yes
2394 DEFAULT_wxUSE_CARET=yes
2395 DEFAULT_wxUSE_CHECKBOX=yes
2396 DEFAULT_wxUSE_CHECKLST=yes
2397 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 2398 DEFAULT_wxUSE_CHOICEBOOK=yes
a848cd7e 2399 DEFAULT_wxUSE_COMBOBOX=yes
da98e9be 2400 DEFAULT_wxUSE_DATEPICKCTRL=yes
a848cd7e
SC
2401 DEFAULT_wxUSE_DISPLAY=yes
2402 DEFAULT_wxUSE_GAUGE=yes
2403 DEFAULT_wxUSE_GRID=yes
20e34ecc 2404 DEFAULT_wxUSE_DATAVIEWCTRL=no
a848cd7e
SC
2405 DEFAULT_wxUSE_IMAGLIST=yes
2406 DEFAULT_wxUSE_LISTBOOK=yes
2407 DEFAULT_wxUSE_LISTBOX=yes
2408 DEFAULT_wxUSE_LISTCTRL=yes
2409 DEFAULT_wxUSE_NOTEBOOK=yes
2410 DEFAULT_wxUSE_RADIOBOX=yes
2411 DEFAULT_wxUSE_RADIOBTN=yes
2412 DEFAULT_wxUSE_SASH=yes
2413 DEFAULT_wxUSE_SCROLLBAR=yes
2414 DEFAULT_wxUSE_SLIDER=yes
2415 DEFAULT_wxUSE_SPINBTN=yes
2416 DEFAULT_wxUSE_SPINCTRL=yes
2417 DEFAULT_wxUSE_SPLITTER=yes
2418 DEFAULT_wxUSE_STATBMP=yes
2419 DEFAULT_wxUSE_STATBOX=yes
2420 DEFAULT_wxUSE_STATLINE=yes
2421 DEFAULT_wxUSE_STATTEXT=yes
2422 DEFAULT_wxUSE_STATUSBAR=yes
f10e38c4 2423 DEFAULT_wxUSE_TAB_DIALOG=no
a848cd7e
SC
2424 DEFAULT_wxUSE_TEXTCTRL=yes
2425 DEFAULT_wxUSE_TOGGLEBTN=yes
2426 DEFAULT_wxUSE_TOOLBAR=yes
2427 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
2428 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
0093c2fc 2429 DEFAULT_wxUSE_TREEBOOK=yes
5ec3bc43 2430 DEFAULT_wxUSE_TOOLBOOK=yes
a848cd7e
SC
2431 DEFAULT_wxUSE_TREECTRL=yes
2432 DEFAULT_wxUSE_POPUPWIN=yes
2433 DEFAULT_wxUSE_TIPWINDOW=yes
2434
78de529b 2435 DEFAULT_wxUSE_UNICODE=no
a848cd7e
SC
2436 DEFAULT_wxUSE_UNICODE_MSLU=yes
2437 DEFAULT_wxUSE_WCSRTOMBS=no
2438
2439 DEFAULT_wxUSE_PALETTE=yes
2440 DEFAULT_wxUSE_IMAGE=yes
2441 DEFAULT_wxUSE_GIF=yes
2442 DEFAULT_wxUSE_PCX=yes
2443 DEFAULT_wxUSE_IFF=no
2444 DEFAULT_wxUSE_PNM=yes
2445 DEFAULT_wxUSE_XPM=yes
2446 DEFAULT_wxUSE_ICO_CUR=yes
2447 DEFAULT_wxUSE_ACCESSIBILITY=no
2448
2449 DEFAULT_wxUSE_MONOLITHIC=no
2450 DEFAULT_wxUSE_PLUGINS=no
2451 DEFAULT_wxUSE_OFFICIAL_BUILD=no
9f45f08e 2452
f34ca037 2453 DEFAULT_wxUSE_GTK2=yes
a848cd7e
SC
2454fi
2455
2456
2457
f34ca037 2458
a848cd7e
SC
2459for toolkit in `echo $ALL_TOOLKITS`; do
2460 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2461 if test "x$LINE" != "x" ; then
2462 has_toolkit_in_cache=1
2463 eval "DEFAULT_$LINE"
2464 eval "CACHE_$toolkit=1"
f34ca037
MW
2465
2466 LINE=`grep "wx${toolkit}_VERSION=" ${wx_arg_cache_file}`
2467 if test "x$LINE" != "x" ; then
2468 eval "DEFAULT_$LINE"
2469 fi
a848cd7e
SC
2470 fi
2471done
2472
2473
2474
2475 enablestring=
2476 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2477echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
2478 no_cache=0
2479 # Check whether --enable-gui or --disable-gui was given.
2480if test "${enable_gui+set}" = set; then
2481 enableval="$enable_gui"
2482
2483 if test "$enableval" = yes; then
2484 ac_cv_use_gui='wxUSE_GUI=yes'
2485 else
2486 ac_cv_use_gui='wxUSE_GUI=no'
2487 fi
2488
2489else
2490
2491 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2492 if test "x$LINE" != x ; then
2493 eval "DEFAULT_$LINE"
2494 else
2495 no_cache=1
2496 fi
2497
2498 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
2499
2500fi;
2501
2502 eval "$ac_cv_use_gui"
2503 if test "$no_cache" != 1; then
2504 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2505 fi
2506
2507 if test "$wxUSE_GUI" = yes; then
2508 echo "$as_me:$LINENO: result: yes" >&5
2509echo "${ECHO_T}yes" >&6
2510 else
2511 echo "$as_me:$LINENO: result: no" >&5
2512echo "${ECHO_T}no" >&6
2513 fi
2514
2515
2516 enablestring=
2517 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2518echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2519 no_cache=0
2520 # Check whether --enable-monolithic or --disable-monolithic was given.
2521if test "${enable_monolithic+set}" = set; then
2522 enableval="$enable_monolithic"
2523
2524 if test "$enableval" = yes; then
2525 ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2526 else
2527 ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2528 fi
2529
2530else
2531
2532 LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2533 if test "x$LINE" != x ; then
2534 eval "DEFAULT_$LINE"
2535 else
2536 no_cache=1
2537 fi
2538
2539 ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2540
2541fi;
2542
2543 eval "$ac_cv_use_monolithic"
2544 if test "$no_cache" != 1; then
2545 echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2546 fi
2547
2548 if test "$wxUSE_MONOLITHIC" = yes; then
2549 echo "$as_me:$LINENO: result: yes" >&5
2550echo "${ECHO_T}yes" >&6
2551 else
2552 echo "$as_me:$LINENO: result: no" >&5
2553echo "${ECHO_T}no" >&6
2554 fi
2555
2556
2557 enablestring=
2558 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
2559echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6
2560 no_cache=0
2561 # Check whether --enable-plugins or --disable-plugins was given.
2562if test "${enable_plugins+set}" = set; then
2563 enableval="$enable_plugins"
2564
2565 if test "$enableval" = yes; then
2566 ac_cv_use_plugins='wxUSE_PLUGINS=yes'
2567 else
2568 ac_cv_use_plugins='wxUSE_PLUGINS=no'
2569 fi
2570
2571else
2572
2573 LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}`
2574 if test "x$LINE" != x ; then
2575 eval "DEFAULT_$LINE"
2576 else
2577 no_cache=1
2578 fi
2579
2580 ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS
2581
2582fi;
2583
2584 eval "$ac_cv_use_plugins"
2585 if test "$no_cache" != 1; then
2586 echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp
2587 fi
2588
2589 if test "$wxUSE_PLUGINS" = yes; then
2590 echo "$as_me:$LINENO: result: yes" >&5
2591echo "${ECHO_T}yes" >&6
2592 else
2593 echo "$as_me:$LINENO: result: no" >&5
2594echo "${ECHO_T}no" >&6
2595 fi
2596
2597
1c14217d
VZ
2598 withstring=without
2599 echo "$as_me:$LINENO: checking for --${withstring:-with}-subdirs" >&5
2600echo $ECHO_N "checking for --${withstring:-with}-subdirs... $ECHO_C" >&6
2601 no_cache=0
2602
2603# Check whether --with-subdirs or --without-subdirs was given.
2604if test "${with_subdirs+set}" = set; then
2605 withval="$with_subdirs"
2606
2607 if test "$withval" = yes; then
2608 ac_cv_use_subdirs='wxWITH_SUBDIRS=yes'
2609 else
2610 ac_cv_use_subdirs='wxWITH_SUBDIRS=no'
2611 fi
2612
2613else
2614
2615 LINE=`grep "wxWITH_SUBDIRS" ${wx_arg_cache_file}`
2616 if test "x$LINE" != x ; then
2617 eval "DEFAULT_$LINE"
2618 else
2619 no_cache=1
2620 fi
2621
2622 ac_cv_use_subdirs='wxWITH_SUBDIRS='$DEFAULT_wxWITH_SUBDIRS
2623
2624fi;
2625
2626 eval "$ac_cv_use_subdirs"
2627 if test "$no_cache" != 1; then
2628 echo $ac_cv_use_subdirs >> ${wx_arg_cache_file}.tmp
2629 fi
2630
2631 if test "$wxWITH_SUBDIRS" = yes; then
2632 echo "$as_me:$LINENO: result: yes" >&5
2633echo "${ECHO_T}yes" >&6
2634 else
2635 echo "$as_me:$LINENO: result: no" >&5
2636echo "${ECHO_T}no" >&6
2637 fi
2638
2639
a848cd7e
SC
2640if test "$wxUSE_GUI" = "yes"; then
2641
2642
2643 enablestring=
2644 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2645echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
2646 no_cache=0
2647 # Check whether --enable-universal or --disable-universal was given.
2648if test "${enable_universal+set}" = set; then
2649 enableval="$enable_universal"
2650
2651 if test "$enableval" = yes; then
2652 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2653 else
2654 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2655 fi
2656
2657else
2658
2659 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2660 if test "x$LINE" != x ; then
2661 eval "DEFAULT_$LINE"
2662 else
2663 no_cache=1
2664 fi
2665
2666 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
2667
2668fi;
2669
2670 eval "$ac_cv_use_universal"
2671 if test "$no_cache" != 1; then
2672 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2673 fi
2674
2675 if test "$wxUSE_UNIVERSAL" = yes; then
2676 echo "$as_me:$LINENO: result: yes" >&5
2677echo "${ECHO_T}yes" >&6
2678 else
2679 echo "$as_me:$LINENO: result: no" >&5
2680echo "${ECHO_T}no" >&6
2681 fi
2682
2683
2684# Check whether --with-gtk or --without-gtk was given.
2685if test "${with_gtk+set}" = set; then
2686 withval="$with_gtk"
2687 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
2688fi;
2689
2690# Check whether --with-motif or --without-motif was given.
2691if test "${with_motif+set}" = set; then
2692 withval="$with_motif"
2693 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
2694fi;
2695
2696# Check whether --with-mac or --without-mac was given.
2697if test "${with_mac+set}" = set; then
2698 withval="$with_mac"
c228d3a4 2699 wxUSE_MAC="$withval" CACHE_MAC=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2700fi;
2701
2702# Check whether --with-cocoa or --without-cocoa was given.
2703if test "${with_cocoa+set}" = set; then
2704 withval="$with_cocoa"
c228d3a4 2705 wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2706fi;
2707
2708# Check whether --with-wine or --without-wine was given.
2709if test "${with_wine+set}" = set; then
2710 withval="$with_wine"
2711 wxUSE_WINE="$withval" CACHE_WINE=1
2712fi;
2713
2714# Check whether --with-msw or --without-msw was given.
2715if test "${with_msw+set}" = set; then
2716 withval="$with_msw"
2717 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
2718fi;
2719
2720# Check whether --with-pm or --without-pm was given.
2721if test "${with_pm+set}" = set; then
2722 withval="$with_pm"
2723 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
2724fi;
2725
2726# Check whether --with-mgl or --without-mgl was given.
2727if test "${with_mgl+set}" = set; then
2728 withval="$with_mgl"
2729 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
2730fi;
2731
2732# Check whether --with-microwin or --without-microwin was given.
2733if test "${with_microwin+set}" = set; then
2734 withval="$with_microwin"
2735 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
2736fi;
2737
2738# Check whether --with-x11 or --without-x11 was given.
2739if test "${with_x11+set}" = set; then
2740 withval="$with_x11"
2741 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
2742fi;
2743
2744 enablestring=
2745 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2746echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
2747 no_cache=0
2748 # Check whether --enable-nanox or --disable-nanox was given.
2749if test "${enable_nanox+set}" = set; then
2750 enableval="$enable_nanox"
2751
2752 if test "$enableval" = yes; then
2753 ac_cv_use_nanox='wxUSE_NANOX=yes'
2754 else
2755 ac_cv_use_nanox='wxUSE_NANOX=no'
2756 fi
2757
2758else
2759
2760 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2761 if test "x$LINE" != x ; then
2762 eval "DEFAULT_$LINE"
2763 else
2764 no_cache=1
2765 fi
2766
2767 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
2768
2769fi;
2770
2771 eval "$ac_cv_use_nanox"
2772 if test "$no_cache" != 1; then
2773 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
2774 fi
2775
2776 if test "$wxUSE_NANOX" = yes; then
2777 echo "$as_me:$LINENO: result: yes" >&5
2778echo "${ECHO_T}yes" >&6
2779 else
2780 echo "$as_me:$LINENO: result: no" >&5
2781echo "${ECHO_T}no" >&6
2782 fi
2783
2784
f34ca037
MW
2785# Check whether --enable-gtk2 or --disable-gtk2 was given.
2786if test "${enable_gtk2+set}" = set; then
2787 enableval="$enable_gtk2"
2788 wxUSE_GTK2="$enableval"
2789fi;
a848cd7e 2790
a848cd7e
SC
2791 enablestring=
2792 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
2793echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6
2794 no_cache=0
2795 # Check whether --enable-gpe or --disable-gpe was given.
2796if test "${enable_gpe+set}" = set; then
2797 enableval="$enable_gpe"
2798
2799 if test "$enableval" = yes; then
2800 ac_cv_use_gpe='wxUSE_GPE=yes'
2801 else
2802 ac_cv_use_gpe='wxUSE_GPE=no'
2803 fi
2804
2805else
2806
2807 LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}`
2808 if test "x$LINE" != x ; then
2809 eval "DEFAULT_$LINE"
2810 else
2811 no_cache=1
2812 fi
2813
2814 ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE
2815
2816fi;
2817
2818 eval "$ac_cv_use_gpe"
2819 if test "$no_cache" != 1; then
2820 echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp
2821 fi
2822
2823 if test "$wxUSE_GPE" = yes; then
2824 echo "$as_me:$LINENO: result: yes" >&5
2825echo "${ECHO_T}yes" >&6
2826 else
2827 echo "$as_me:$LINENO: result: no" >&5
2828echo "${ECHO_T}no" >&6
2829 fi
2830
2831
2832
2833 echo "$as_me:$LINENO: checking for --with-libpng" >&5
2834echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
2835 no_cache=0
2836
2837# Check whether --with-libpng or --without-libpng was given.
2838if test "${with_libpng+set}" = set; then
2839 withval="$with_libpng"
2840
2841 if test "$withval" = yes; then
2842 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
2843 elif test "$withval" = no; then
2844 ac_cv_use_libpng='wxUSE_LIBPNG=no'
2845 elif test "$withval" = sys; then
2846 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
2847 elif test "$withval" = builtin; then
2848 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
2849 else
2850 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2851echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2852 { (exit 1); exit 1; }; }
2853 fi
2854
2855else
2856
2857 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
2858 if test "x$LINE" != x ; then
2859 eval "DEFAULT_$LINE"
2860 else
2861 no_cache=1
2862 fi
2863
2864 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
2865
2866fi;
2867
2868 eval "$ac_cv_use_libpng"
2869 if test "$no_cache" != 1; then
2870 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
2871 fi
2872
2873 if test "$wxUSE_LIBPNG" = yes; then
2874 echo "$as_me:$LINENO: result: yes" >&5
2875echo "${ECHO_T}yes" >&6
2876 elif test "$wxUSE_LIBPNG" = no; then
2877 echo "$as_me:$LINENO: result: no" >&5
2878echo "${ECHO_T}no" >&6
2879 elif test "$wxUSE_LIBPNG" = sys; then
2880 echo "$as_me:$LINENO: result: system version" >&5
2881echo "${ECHO_T}system version" >&6
2882 elif test "$wxUSE_LIBPNG" = builtin; then
2883 echo "$as_me:$LINENO: result: builtin version" >&5
2884echo "${ECHO_T}builtin version" >&6
2885 else
2886 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2887echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2888 { (exit 1); exit 1; }; }
2889 fi
2890
2891
2892 echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
2893echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
2894 no_cache=0
2895
2896# Check whether --with-libjpeg or --without-libjpeg was given.
2897if test "${with_libjpeg+set}" = set; then
2898 withval="$with_libjpeg"
2899
2900 if test "$withval" = yes; then
2901 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
2902 elif test "$withval" = no; then
2903 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
2904 elif test "$withval" = sys; then
2905 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
2906 elif test "$withval" = builtin; then
2907 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
2908 else
2909 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2910echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2911 { (exit 1); exit 1; }; }
2912 fi
2913
2914else
2915
2916 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
2917 if test "x$LINE" != x ; then
2918 eval "DEFAULT_$LINE"
2919 else
2920 no_cache=1
2921 fi
2922
2923 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
2924
2925fi;
2926
2927 eval "$ac_cv_use_libjpeg"
2928 if test "$no_cache" != 1; then
2929 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
2930 fi
2931
2932 if test "$wxUSE_LIBJPEG" = yes; then
2933 echo "$as_me:$LINENO: result: yes" >&5
2934echo "${ECHO_T}yes" >&6
2935 elif test "$wxUSE_LIBJPEG" = no; then
2936 echo "$as_me:$LINENO: result: no" >&5
2937echo "${ECHO_T}no" >&6
2938 elif test "$wxUSE_LIBJPEG" = sys; then
2939 echo "$as_me:$LINENO: result: system version" >&5
2940echo "${ECHO_T}system version" >&6
2941 elif test "$wxUSE_LIBJPEG" = builtin; then
2942 echo "$as_me:$LINENO: result: builtin version" >&5
2943echo "${ECHO_T}builtin version" >&6
2944 else
2945 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2946echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2947 { (exit 1); exit 1; }; }
2948 fi
2949
2950
2951 echo "$as_me:$LINENO: checking for --with-libtiff" >&5
2952echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
2953 no_cache=0
2954
2955# Check whether --with-libtiff or --without-libtiff was given.
2956if test "${with_libtiff+set}" = set; then
2957 withval="$with_libtiff"
2958
2959 if test "$withval" = yes; then
2960 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2961 elif test "$withval" = no; then
2962 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2963 elif test "$withval" = sys; then
2964 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2965 elif test "$withval" = builtin; then
2966 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2967 else
2968 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2969echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2970 { (exit 1); exit 1; }; }
2971 fi
2972
2973else
2974
2975 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
2976 if test "x$LINE" != x ; then
2977 eval "DEFAULT_$LINE"
2978 else
2979 no_cache=1
2980 fi
2981
2982 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
2983
2984fi;
2985
2986 eval "$ac_cv_use_libtiff"
2987 if test "$no_cache" != 1; then
2988 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
2989 fi
2990
2991 if test "$wxUSE_LIBTIFF" = yes; then
2992 echo "$as_me:$LINENO: result: yes" >&5
2993echo "${ECHO_T}yes" >&6
2994 elif test "$wxUSE_LIBTIFF" = no; then
2995 echo "$as_me:$LINENO: result: no" >&5
2996echo "${ECHO_T}no" >&6
2997 elif test "$wxUSE_LIBTIFF" = sys; then
2998 echo "$as_me:$LINENO: result: system version" >&5
2999echo "${ECHO_T}system version" >&6
3000 elif test "$wxUSE_LIBTIFF" = builtin; then
3001 echo "$as_me:$LINENO: result: builtin version" >&5
3002echo "${ECHO_T}builtin version" >&6
3003 else
3004 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
3005echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
3006 { (exit 1); exit 1; }; }
3007 fi
3008
3009
3010 echo "$as_me:$LINENO: checking for --with-libxpm" >&5
3011echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6
3012 no_cache=0
3013
3014# Check whether --with-libxpm or --without-libxpm was given.
3015if test "${with_libxpm+set}" = set; then
3016 withval="$with_libxpm"
3017
3018 if test "$withval" = yes; then
3019 ac_cv_use_libxpm='wxUSE_LIBXPM=yes'
3020 elif test "$withval" = no; then
3021 ac_cv_use_libxpm='wxUSE_LIBXPM=no'
3022 elif test "$withval" = sys; then
3023 ac_cv_use_libxpm='wxUSE_LIBXPM=sys'
3024 elif test "$withval" = builtin; then
3025 ac_cv_use_libxpm='wxUSE_LIBXPM=builtin'
3026 else
3027 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3028echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3029 { (exit 1); exit 1; }; }
3030 fi
3031
3032else
3033
3034 LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}`
3035 if test "x$LINE" != x ; then
3036 eval "DEFAULT_$LINE"
3037 else
3038 no_cache=1
3039 fi
3040
3041 ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM
3042
3043fi;
3044
3045 eval "$ac_cv_use_libxpm"
3046 if test "$no_cache" != 1; then
3047 echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp
3048 fi
3049
3050 if test "$wxUSE_LIBXPM" = yes; then
3051 echo "$as_me:$LINENO: result: yes" >&5
3052echo "${ECHO_T}yes" >&6
3053 elif test "$wxUSE_LIBXPM" = no; then
3054 echo "$as_me:$LINENO: result: no" >&5
3055echo "${ECHO_T}no" >&6
3056 elif test "$wxUSE_LIBXPM" = sys; then
3057 echo "$as_me:$LINENO: result: system version" >&5
3058echo "${ECHO_T}system version" >&6
3059 elif test "$wxUSE_LIBXPM" = builtin; then
3060 echo "$as_me:$LINENO: result: builtin version" >&5
3061echo "${ECHO_T}builtin version" >&6
3062 else
3063 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3064echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3065 { (exit 1); exit 1; }; }
3066 fi
3067
3068
1c14217d
VZ
3069 withstring=
3070 echo "$as_me:$LINENO: checking for --${withstring:-with}-libmspack" >&5
3071echo $ECHO_N "checking for --${withstring:-with}-libmspack... $ECHO_C" >&6
a848cd7e
SC
3072 no_cache=0
3073
3074# Check whether --with-libmspack or --without-libmspack was given.
3075if test "${with_libmspack+set}" = set; then
3076 withval="$with_libmspack"
3077
3078 if test "$withval" = yes; then
3079 ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
3080 else
3081 ac_cv_use_libmspack='wxUSE_LIBMSPACK=no'
3082 fi
3083
3084else
3085
3086 LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}`
3087 if test "x$LINE" != x ; then
3088 eval "DEFAULT_$LINE"
3089 else
3090 no_cache=1
3091 fi
3092
3093 ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK
3094
3095fi;
3096
3097 eval "$ac_cv_use_libmspack"
3098 if test "$no_cache" != 1; then
3099 echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp
3100 fi
3101
3102 if test "$wxUSE_LIBMSPACK" = yes; then
3103 echo "$as_me:$LINENO: result: yes" >&5
3104echo "${ECHO_T}yes" >&6
3105 else
3106 echo "$as_me:$LINENO: result: no" >&5
3107echo "${ECHO_T}no" >&6
3108 fi
3109
3110
1c14217d
VZ
3111 withstring=
3112 echo "$as_me:$LINENO: checking for --${withstring:-with}-sdl" >&5
3113echo $ECHO_N "checking for --${withstring:-with}-sdl... $ECHO_C" >&6
a848cd7e
SC
3114 no_cache=0
3115
3116# Check whether --with-sdl or --without-sdl was given.
3117if test "${with_sdl+set}" = set; then
3118 withval="$with_sdl"
3119
3120 if test "$withval" = yes; then
3121 ac_cv_use_sdl='wxUSE_LIBSDL=yes'
3122 else
3123 ac_cv_use_sdl='wxUSE_LIBSDL=no'
3124 fi
3125
3126else
3127
3128 LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}`
3129 if test "x$LINE" != x ; then
3130 eval "DEFAULT_$LINE"
3131 else
3132 no_cache=1
3133 fi
3134
3135 ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL
3136
3137fi;
3138
3139 eval "$ac_cv_use_sdl"
3140 if test "$no_cache" != 1; then
3141 echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp
3142 fi
3143
3144 if test "$wxUSE_LIBSDL" = yes; then
3145 echo "$as_me:$LINENO: result: yes" >&5
3146echo "${ECHO_T}yes" >&6
3147 else
3148 echo "$as_me:$LINENO: result: no" >&5
3149echo "${ECHO_T}no" >&6
3150 fi
3151
3152
1c14217d
VZ
3153 withstring=
3154 echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomeprint" >&5
3155echo $ECHO_N "checking for --${withstring:-with}-gnomeprint... $ECHO_C" >&6
d1c38808
VZ
3156 no_cache=0
3157
3158# Check whether --with-gnomeprint or --without-gnomeprint was given.
3159if test "${with_gnomeprint+set}" = set; then
3160 withval="$with_gnomeprint"
3161
3162 if test "$withval" = yes; then
3163 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes'
3164 else
3165 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no'
3166 fi
3167
3168else
3169
3170 LINE=`grep "wxUSE_LIBGNOMEPRINT" ${wx_arg_cache_file}`
3171 if test "x$LINE" != x ; then
3172 eval "DEFAULT_$LINE"
3173 else
3174 no_cache=1
3175 fi
3176
3177 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT='$DEFAULT_wxUSE_LIBGNOMEPRINT
3178
3179fi;
3180
3181 eval "$ac_cv_use_gnomeprint"
3182 if test "$no_cache" != 1; then
3183 echo $ac_cv_use_gnomeprint >> ${wx_arg_cache_file}.tmp
3184 fi
3185
3186 if test "$wxUSE_LIBGNOMEPRINT" = yes; then
3187 echo "$as_me:$LINENO: result: yes" >&5
3188echo "${ECHO_T}yes" >&6
3189 else
3190 echo "$as_me:$LINENO: result: no" >&5
3191echo "${ECHO_T}no" >&6
3192 fi
3193
3194
3565d135
RR
3195 withstring=
3196 echo "$as_me:$LINENO: checking for --${withstring:-with}-hildon" >&5
3197echo $ECHO_N "checking for --${withstring:-with}-hildon... $ECHO_C" >&6
3198 no_cache=0
3199
3200# Check whether --with-hildon or --without-hildon was given.
3201if test "${with_hildon+set}" = set; then
3202 withval="$with_hildon"
3203
3204 if test "$withval" = yes; then
3205 ac_cv_use_hildon='wxUSE_LIBHILDON=yes'
3206 else
3207 ac_cv_use_hildon='wxUSE_LIBHILDON=no'
3208 fi
3209
3210else
3211
3212 LINE=`grep "wxUSE_LIBHILDON" ${wx_arg_cache_file}`
3213 if test "x$LINE" != x ; then
3214 eval "DEFAULT_$LINE"
3215 else
3216 no_cache=1
3217 fi
3218
3219 ac_cv_use_hildon='wxUSE_LIBHILDON='$DEFAULT_wxUSE_LIBHILDON
3220
3221fi;
3222
3223 eval "$ac_cv_use_hildon"
3224 if test "$no_cache" != 1; then
3225 echo $ac_cv_use_hildon >> ${wx_arg_cache_file}.tmp
3226 fi
3227
3228 if test "$wxUSE_LIBHILDON" = yes; then
3229 echo "$as_me:$LINENO: result: yes" >&5
3230echo "${ECHO_T}yes" >&6
3231 else
3232 echo "$as_me:$LINENO: result: no" >&5
3233echo "${ECHO_T}no" >&6
3234 fi
3235
3236
1c14217d
VZ
3237 withstring=
3238 echo "$as_me:$LINENO: checking for --${withstring:-with}-opengl" >&5
3239echo $ECHO_N "checking for --${withstring:-with}-opengl... $ECHO_C" >&6
a848cd7e
SC
3240 no_cache=0
3241
3242# Check whether --with-opengl or --without-opengl was given.
3243if test "${with_opengl+set}" = set; then
3244 withval="$with_opengl"
3245
3246 if test "$withval" = yes; then
3247 ac_cv_use_opengl='wxUSE_OPENGL=yes'
3248 else
3249 ac_cv_use_opengl='wxUSE_OPENGL=no'
3250 fi
3251
3252else
3253
3254 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
3255 if test "x$LINE" != x ; then
3256 eval "DEFAULT_$LINE"
3257 else
3258 no_cache=1
3259 fi
3260
3261 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
3262
3263fi;
3264
3265 eval "$ac_cv_use_opengl"
3266 if test "$no_cache" != 1; then
3267 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
3268 fi
3269
3270 if test "$wxUSE_OPENGL" = yes; then
3271 echo "$as_me:$LINENO: result: yes" >&5
3272echo "${ECHO_T}yes" >&6
3273 else
3274 echo "$as_me:$LINENO: result: no" >&5
3275echo "${ECHO_T}no" >&6
3276 fi
3277
3278
3279fi
3280
3281
1c14217d
VZ
3282 withstring=
3283 echo "$as_me:$LINENO: checking for --${withstring:-with}-dmalloc" >&5
3284echo $ECHO_N "checking for --${withstring:-with}-dmalloc... $ECHO_C" >&6
a848cd7e
SC
3285 no_cache=0
3286
3287# Check whether --with-dmalloc or --without-dmalloc was given.
3288if test "${with_dmalloc+set}" = set; then
3289 withval="$with_dmalloc"
3290
3291 if test "$withval" = yes; then
3292 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
3293 else
3294 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
3295 fi
3296
3297else
3298
3299 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
3300 if test "x$LINE" != x ; then
3301 eval "DEFAULT_$LINE"
3302 else
3303 no_cache=1
3304 fi
3305
3306 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
3307
3308fi;
3309
3310 eval "$ac_cv_use_dmalloc"
3311 if test "$no_cache" != 1; then
3312 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
3313 fi
3314
3315 if test "$wxUSE_DMALLOC" = yes; then
3316 echo "$as_me:$LINENO: result: yes" >&5
3317echo "${ECHO_T}yes" >&6
3318 else
3319 echo "$as_me:$LINENO: result: no" >&5
3320echo "${ECHO_T}no" >&6
3321 fi
3322
3323
3324 echo "$as_me:$LINENO: checking for --with-regex" >&5
3325echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3326 no_cache=0
3327
3328# Check whether --with-regex or --without-regex was given.
3329if test "${with_regex+set}" = set; then
3330 withval="$with_regex"
3331
3332 if test "$withval" = yes; then
3333 ac_cv_use_regex='wxUSE_REGEX=yes'
3334 elif test "$withval" = no; then
3335 ac_cv_use_regex='wxUSE_REGEX=no'
3336 elif test "$withval" = sys; then
3337 ac_cv_use_regex='wxUSE_REGEX=sys'
3338 elif test "$withval" = builtin; then
3339 ac_cv_use_regex='wxUSE_REGEX=builtin'
3340 else
3341 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3342echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3343 { (exit 1); exit 1; }; }
3344 fi
3345
3346else
3347
3348 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
3349 if test "x$LINE" != x ; then
3350 eval "DEFAULT_$LINE"
3351 else
3352 no_cache=1
3353 fi
3354
3355 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3356
3357fi;
3358
3359 eval "$ac_cv_use_regex"
3360 if test "$no_cache" != 1; then
3361 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
3362 fi
3363
3364 if test "$wxUSE_REGEX" = yes; then
3365 echo "$as_me:$LINENO: result: yes" >&5
3366echo "${ECHO_T}yes" >&6
3367 elif test "$wxUSE_REGEX" = no; then
3368 echo "$as_me:$LINENO: result: no" >&5
3369echo "${ECHO_T}no" >&6
3370 elif test "$wxUSE_REGEX" = sys; then
3371 echo "$as_me:$LINENO: result: system version" >&5
3372echo "${ECHO_T}system version" >&6
3373 elif test "$wxUSE_REGEX" = builtin; then
3374 echo "$as_me:$LINENO: result: builtin version" >&5
3375echo "${ECHO_T}builtin version" >&6
3376 else
3377 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3378echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3379 { (exit 1); exit 1; }; }
3380 fi
3381
3382
3383 echo "$as_me:$LINENO: checking for --with-zlib" >&5
3384echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
3385 no_cache=0
3386
3387# Check whether --with-zlib or --without-zlib was given.
3388if test "${with_zlib+set}" = set; then
3389 withval="$with_zlib"
3390
3391 if test "$withval" = yes; then
3392 ac_cv_use_zlib='wxUSE_ZLIB=yes'
3393 elif test "$withval" = no; then
3394 ac_cv_use_zlib='wxUSE_ZLIB=no'
3395 elif test "$withval" = sys; then
3396 ac_cv_use_zlib='wxUSE_ZLIB=sys'
3397 elif test "$withval" = builtin; then
3398 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
3399 else
3400 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3401echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3402 { (exit 1); exit 1; }; }
3403 fi
3404
3405else
3406
3407 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
3408 if test "x$LINE" != x ; then
3409 eval "DEFAULT_$LINE"
3410 else
3411 no_cache=1
3412 fi
3413
3414 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
3415
3416fi;
3417
3418 eval "$ac_cv_use_zlib"
3419 if test "$no_cache" != 1; then
3420 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
3421 fi
3422
3423 if test "$wxUSE_ZLIB" = yes; then
3424 echo "$as_me:$LINENO: result: yes" >&5
3425echo "${ECHO_T}yes" >&6
3426 elif test "$wxUSE_ZLIB" = no; then
3427 echo "$as_me:$LINENO: result: no" >&5
3428echo "${ECHO_T}no" >&6
3429 elif test "$wxUSE_ZLIB" = sys; then
3430 echo "$as_me:$LINENO: result: system version" >&5
3431echo "${ECHO_T}system version" >&6
3432 elif test "$wxUSE_ZLIB" = builtin; then
3433 echo "$as_me:$LINENO: result: builtin version" >&5
3434echo "${ECHO_T}builtin version" >&6
3435 else
3436 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3437echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3438 { (exit 1); exit 1; }; }
3439 fi
3440
3441
3442 echo "$as_me:$LINENO: checking for --with-odbc" >&5
3443echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
3444 no_cache=0
3445
3446# Check whether --with-odbc or --without-odbc was given.
3447if test "${with_odbc+set}" = set; then
3448 withval="$with_odbc"
3449
3450 if test "$withval" = yes; then
3451 ac_cv_use_odbc='wxUSE_ODBC=yes'
3452 elif test "$withval" = no; then
3453 ac_cv_use_odbc='wxUSE_ODBC=no'
3454 elif test "$withval" = sys; then
3455 ac_cv_use_odbc='wxUSE_ODBC=sys'
3456 elif test "$withval" = builtin; then
3457 ac_cv_use_odbc='wxUSE_ODBC=builtin'
3458 else
3459 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3460echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3461 { (exit 1); exit 1; }; }
3462 fi
3463
3464else
3465
3466 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
3467 if test "x$LINE" != x ; then
3468 eval "DEFAULT_$LINE"
3469 else
3470 no_cache=1
3471 fi
3472
3473 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
3474
3475fi;
3476
3477 eval "$ac_cv_use_odbc"
3478 if test "$no_cache" != 1; then
3479 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3480 fi
3481
3482 if test "$wxUSE_ODBC" = yes; then
3483 echo "$as_me:$LINENO: result: yes" >&5
3484echo "${ECHO_T}yes" >&6
3485 elif test "$wxUSE_ODBC" = no; then
3486 echo "$as_me:$LINENO: result: no" >&5
3487echo "${ECHO_T}no" >&6
3488 elif test "$wxUSE_ODBC" = sys; then
3489 echo "$as_me:$LINENO: result: system version" >&5
3490echo "${ECHO_T}system version" >&6
3491 elif test "$wxUSE_ODBC" = builtin; then
3492 echo "$as_me:$LINENO: result: builtin version" >&5
3493echo "${ECHO_T}builtin version" >&6
3494 else
3495 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3496echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3497 { (exit 1); exit 1; }; }
3498 fi
3499
3500
3501 echo "$as_me:$LINENO: checking for --with-expat" >&5
3502echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3503 no_cache=0
3504
3505# Check whether --with-expat or --without-expat was given.
3506if test "${with_expat+set}" = set; then
3507 withval="$with_expat"
3508
3509 if test "$withval" = yes; then
3510 ac_cv_use_expat='wxUSE_EXPAT=yes'
3511 elif test "$withval" = no; then
3512 ac_cv_use_expat='wxUSE_EXPAT=no'
3513 elif test "$withval" = sys; then
3514 ac_cv_use_expat='wxUSE_EXPAT=sys'
3515 elif test "$withval" = builtin; then
3516 ac_cv_use_expat='wxUSE_EXPAT=builtin'
3517 else
3518 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3519echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3520 { (exit 1); exit 1; }; }
3521 fi
3522
3523else
3524
3525 LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3526 if test "x$LINE" != x ; then
3527 eval "DEFAULT_$LINE"
3528 else
3529 no_cache=1
3530 fi
3531
3532 ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3533
3534fi;
3535
3536 eval "$ac_cv_use_expat"
3537 if test "$no_cache" != 1; then
3538 echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3539 fi
3540
3541 if test "$wxUSE_EXPAT" = yes; then
3542 echo "$as_me:$LINENO: result: yes" >&5
3543echo "${ECHO_T}yes" >&6
3544 elif test "$wxUSE_EXPAT" = no; then
3545 echo "$as_me:$LINENO: result: no" >&5
3546echo "${ECHO_T}no" >&6
3547 elif test "$wxUSE_EXPAT" = sys; then
3548 echo "$as_me:$LINENO: result: system version" >&5
3549echo "${ECHO_T}system version" >&6
3550 elif test "$wxUSE_EXPAT" = builtin; then
3551 echo "$as_me:$LINENO: result: builtin version" >&5
3552echo "${ECHO_T}builtin version" >&6
3553 else
3554 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3555echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3556 { (exit 1); exit 1; }; }
3557 fi
3558
3559
3560
3561
3562 enablestring=
3563 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3564echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
3565 no_cache=0
3566 # Check whether --enable-shared or --disable-shared was given.
3567if test "${enable_shared+set}" = set; then
3568 enableval="$enable_shared"
3569
3570 if test "$enableval" = yes; then
3571 ac_cv_use_shared='wxUSE_SHARED=yes'
3572 else
3573 ac_cv_use_shared='wxUSE_SHARED=no'
3574 fi
3575
3576else
3577
3578 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3579 if test "x$LINE" != x ; then
3580 eval "DEFAULT_$LINE"
3581 else
3582 no_cache=1
3583 fi
3584
3585 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
3586
3587fi;
3588
3589 eval "$ac_cv_use_shared"
3590 if test "$no_cache" != 1; then
3591 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3592 fi
3593
3594 if test "$wxUSE_SHARED" = yes; then
3595 echo "$as_me:$LINENO: result: yes" >&5
3596echo "${ECHO_T}yes" >&6
3597 else
3598 echo "$as_me:$LINENO: result: no" >&5
3599echo "${ECHO_T}no" >&6
3600 fi
3601
3602
3603 enablestring=
3604 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3605echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
3606 no_cache=0
3607 # Check whether --enable-optimise or --disable-optimise was given.
3608if test "${enable_optimise+set}" = set; then
3609 enableval="$enable_optimise"
3610
3611 if test "$enableval" = yes; then
3612 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3613 else
3614 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3615 fi
3616
3617else
3618
3619 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3620 if test "x$LINE" != x ; then
3621 eval "DEFAULT_$LINE"
3622 else
3623 no_cache=1
3624 fi
3625
3626 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
3627
3628fi;
3629
3630 eval "$ac_cv_use_optimise"
3631 if test "$no_cache" != 1; then
3632 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3633 fi
3634
3635 if test "$wxUSE_OPTIMISE" = yes; then
3636 echo "$as_me:$LINENO: result: yes" >&5
3637echo "${ECHO_T}yes" >&6
3638 else
3639 echo "$as_me:$LINENO: result: no" >&5
3640echo "${ECHO_T}no" >&6
3641 fi
3642
3643
3644 enablestring=
3645 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3646echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
3647 no_cache=0
3648 # Check whether --enable-debug or --disable-debug was given.
3649if test "${enable_debug+set}" = set; then
3650 enableval="$enable_debug"
3651
3652 if test "$enableval" = yes; then
3653 ac_cv_use_debug='wxUSE_DEBUG=yes'
3654 else
3655 ac_cv_use_debug='wxUSE_DEBUG=no'
3656 fi
3657
3658else
3659
3660 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3661 if test "x$LINE" != x ; then
3662 eval "DEFAULT_$LINE"
3663 else
3664 no_cache=1
3665 fi
3666
3667 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
3668
3669fi;
3670
3671 eval "$ac_cv_use_debug"
3672 if test "$no_cache" != 1; then
3673 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3674 fi
3675
3676 if test "$wxUSE_DEBUG" = yes; then
3677 echo "$as_me:$LINENO: result: yes" >&5
3678echo "${ECHO_T}yes" >&6
3679 else
3680 echo "$as_me:$LINENO: result: no" >&5
3681echo "${ECHO_T}no" >&6
3682 fi
3683
3684
3685 enablestring=
3686 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3687echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3688 no_cache=0
3689 # Check whether --enable-stl or --disable-stl was given.
3690if test "${enable_stl+set}" = set; then
3691 enableval="$enable_stl"
3692
3693 if test "$enableval" = yes; then
3694 ac_cv_use_stl='wxUSE_STL=yes'
3695 else
3696 ac_cv_use_stl='wxUSE_STL=no'
3697 fi
3698
3699else
3700
3701 LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3702 if test "x$LINE" != x ; then
3703 eval "DEFAULT_$LINE"
3704 else
3705 no_cache=1
3706 fi
3707
3708 ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3709
3710fi;
3711
3712 eval "$ac_cv_use_stl"
3713 if test "$no_cache" != 1; then
3714 echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3715 fi
3716
3717 if test "$wxUSE_STL" = yes; then
3718 echo "$as_me:$LINENO: result: yes" >&5
3719echo "${ECHO_T}yes" >&6
3720 else
3721 echo "$as_me:$LINENO: result: no" >&5
3722echo "${ECHO_T}no" >&6
3723 fi
3724
3725if test "$USE_OS2" = "1"; then
69120ee4 3726 DEFAULT_wxUSE_OMF=no
a848cd7e
SC
3727
3728 enablestring=
3729 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
3730echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6
3731 no_cache=0
3732 # Check whether --enable-omf or --disable-omf was given.
3733if test "${enable_omf+set}" = set; then
3734 enableval="$enable_omf"
3735
3736 if test "$enableval" = yes; then
3737 ac_cv_use_omf='wxUSE_OMF=yes'
3738 else
3739 ac_cv_use_omf='wxUSE_OMF=no'
3740 fi
3741
3742else
3743
3744 LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}`
3745 if test "x$LINE" != x ; then
3746 eval "DEFAULT_$LINE"
3747 else
3748 no_cache=1
3749 fi
3750
3751 ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF
3752
3753fi;
3754
3755 eval "$ac_cv_use_omf"
3756 if test "$no_cache" != 1; then
3757 echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp
3758 fi
3759
3760 if test "$wxUSE_OMF" = yes; then
3761 echo "$as_me:$LINENO: result: yes" >&5
3762echo "${ECHO_T}yes" >&6
3763 else
3764 echo "$as_me:$LINENO: result: no" >&5
3765echo "${ECHO_T}no" >&6
3766 fi
3767
3768fi
3769
3770if test "$wxUSE_DEBUG" = "yes"; then
3771 DEFAULT_wxUSE_DEBUG_FLAG=yes
3772 DEFAULT_wxUSE_DEBUG_INFO=yes
3773 BUILD=debug
3774elif test "$wxUSE_DEBUG" = "no"; then
3775 DEFAULT_wxUSE_DEBUG_FLAG=no
3776 DEFAULT_wxUSE_DEBUG_INFO=no
3777 BUILD=release
3778fi
3779
3780
3781 enablestring=
3782 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
3783echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
3784 no_cache=0
3785 # Check whether --enable-debug_flag or --disable-debug_flag was given.
3786if test "${enable_debug_flag+set}" = set; then
3787 enableval="$enable_debug_flag"
3788
3789 if test "$enableval" = yes; then
3790 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
3791 else
3792 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
3793 fi
3794
3795else
3796
3797 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
3798 if test "x$LINE" != x ; then
3799 eval "DEFAULT_$LINE"
3800 else
3801 no_cache=1
3802 fi
3803
3804 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
3805
3806fi;
3807
3808 eval "$ac_cv_use_debug_flag"
3809 if test "$no_cache" != 1; then
3810 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
3811 fi
3812
3813 if test "$wxUSE_DEBUG_FLAG" = yes; then
3814 echo "$as_me:$LINENO: result: yes" >&5
3815echo "${ECHO_T}yes" >&6
3816 else
3817 echo "$as_me:$LINENO: result: no" >&5
3818echo "${ECHO_T}no" >&6
3819 fi
3820
3821
3822 enablestring=
3823 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
3824echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
3825 no_cache=0
3826 # Check whether --enable-debug_info or --disable-debug_info was given.
3827if test "${enable_debug_info+set}" = set; then
3828 enableval="$enable_debug_info"
3829
3830 if test "$enableval" = yes; then
3831 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
3832 else
3833 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
3834 fi
3835
3836else
3837
3838 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
3839 if test "x$LINE" != x ; then
3840 eval "DEFAULT_$LINE"
3841 else
3842 no_cache=1
3843 fi
3844
3845 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
3846
3847fi;
3848
3849 eval "$ac_cv_use_debug_info"
3850 if test "$no_cache" != 1; then
3851 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
3852 fi
3853
3854 if test "$wxUSE_DEBUG_INFO" = yes; then
3855 echo "$as_me:$LINENO: result: yes" >&5
3856echo "${ECHO_T}yes" >&6
3857 else
3858 echo "$as_me:$LINENO: result: no" >&5
3859echo "${ECHO_T}no" >&6
3860 fi
3861
3862
3863 enablestring=
3864 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
3865echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
3866 no_cache=0
3867 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
3868if test "${enable_debug_gdb+set}" = set; then
3869 enableval="$enable_debug_gdb"
3870
3871 if test "$enableval" = yes; then
3872 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
3873 else
3874 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
3875 fi
3876
3877else
3878
3879 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
3880 if test "x$LINE" != x ; then
3881 eval "DEFAULT_$LINE"
3882 else
3883 no_cache=1
3884 fi
3885
3886 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
3887
3888fi;
3889
3890 eval "$ac_cv_use_debug_gdb"
3891 if test "$no_cache" != 1; then
3892 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
3893 fi
3894
3895 if test "$wxUSE_DEBUG_GDB" = yes; then
3896 echo "$as_me:$LINENO: result: yes" >&5
3897echo "${ECHO_T}yes" >&6
3898 else
3899 echo "$as_me:$LINENO: result: no" >&5
3900echo "${ECHO_T}no" >&6
3901 fi
3902
3903
3904 enablestring=
3905 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
3906echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
3907 no_cache=0
3908 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
3909if test "${enable_debug_cntxt+set}" = set; then
3910 enableval="$enable_debug_cntxt"
3911
3912 if test "$enableval" = yes; then
3913 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
3914 else
3915 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
3916 fi
3917
3918else
3919
3920 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
3921 if test "x$LINE" != x ; then
3922 eval "DEFAULT_$LINE"
3923 else
3924 no_cache=1
3925 fi
3926
3927 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
3928
3929fi;
3930
3931 eval "$ac_cv_use_debug_cntxt"
3932 if test "$no_cache" != 1; then
3933 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
3934 fi
3935
3936 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
3937 echo "$as_me:$LINENO: result: yes" >&5
3938echo "${ECHO_T}yes" >&6
3939 else
3940 echo "$as_me:$LINENO: result: no" >&5
3941echo "${ECHO_T}no" >&6
3942 fi
3943
3944
3945 enablestring=
3946 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
3947echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
3948 no_cache=0
3949 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
3950if test "${enable_mem_tracing+set}" = set; then
3951 enableval="$enable_mem_tracing"
3952
3953 if test "$enableval" = yes; then
3954 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
3955 else
3956 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
3957 fi
3958
3959else
3960
3961 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
3962 if test "x$LINE" != x ; then
3963 eval "DEFAULT_$LINE"
3964 else
3965 no_cache=1
3966 fi
3967
3968 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
3969
3970fi;
3971
3972 eval "$ac_cv_use_mem_tracing"
3973 if test "$no_cache" != 1; then
3974 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
3975 fi
3976
3977 if test "$wxUSE_MEM_TRACING" = yes; then
3978 echo "$as_me:$LINENO: result: yes" >&5
3979echo "${ECHO_T}yes" >&6
3980 else
3981 echo "$as_me:$LINENO: result: no" >&5
3982echo "${ECHO_T}no" >&6
3983 fi
3984
3985
3986 enablestring=
3987 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
3988echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
3989 no_cache=0
3990 # Check whether --enable-profile or --disable-profile was given.
3991if test "${enable_profile+set}" = set; then
3992 enableval="$enable_profile"
3993
3994 if test "$enableval" = yes; then
3995 ac_cv_use_profile='wxUSE_PROFILE=yes'
3996 else
3997 ac_cv_use_profile='wxUSE_PROFILE=no'
3998 fi
3999
4000else
4001
4002 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
4003 if test "x$LINE" != x ; then
4004 eval "DEFAULT_$LINE"
4005 else
4006 no_cache=1
4007 fi
4008
4009 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
4010
4011fi;
4012
4013 eval "$ac_cv_use_profile"
4014 if test "$no_cache" != 1; then
4015 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
4016 fi
4017
4018 if test "$wxUSE_PROFILE" = yes; then
4019 echo "$as_me:$LINENO: result: yes" >&5
4020echo "${ECHO_T}yes" >&6
4021 else
4022 echo "$as_me:$LINENO: result: no" >&5
4023echo "${ECHO_T}no" >&6
4024 fi
4025
4026
4027 enablestring=
4028 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
4029echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
4030 no_cache=0
4031 # Check whether --enable-no_rtti or --disable-no_rtti was given.
4032if test "${enable_no_rtti+set}" = set; then
4033 enableval="$enable_no_rtti"
4034
4035 if test "$enableval" = yes; then
4036 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
4037 else
4038 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
4039 fi
4040
4041else
4042
4043 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
4044 if test "x$LINE" != x ; then
4045 eval "DEFAULT_$LINE"
4046 else
4047 no_cache=1
4048 fi
4049
4050 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
4051
4052fi;
4053
4054 eval "$ac_cv_use_no_rtti"
4055 if test "$no_cache" != 1; then
4056 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
4057 fi
4058
4059 if test "$wxUSE_NO_RTTI" = yes; then
4060 echo "$as_me:$LINENO: result: yes" >&5
4061echo "${ECHO_T}yes" >&6
4062 else
4063 echo "$as_me:$LINENO: result: no" >&5
4064echo "${ECHO_T}no" >&6
4065 fi
4066
4067
4068 enablestring=
4069 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
4070echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
4071 no_cache=0
4072 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
4073if test "${enable_no_exceptions+set}" = set; then
4074 enableval="$enable_no_exceptions"
4075
4076 if test "$enableval" = yes; then
4077 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
4078 else
4079 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
4080 fi
4081
4082else
4083
4084 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
4085 if test "x$LINE" != x ; then
4086 eval "DEFAULT_$LINE"
4087 else
4088 no_cache=1
4089 fi
4090
4091 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
4092
4093fi;
4094
4095 eval "$ac_cv_use_no_exceptions"
4096 if test "$no_cache" != 1; then
4097 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
4098 fi
4099
4100 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
4101 echo "$as_me:$LINENO: result: yes" >&5
4102echo "${ECHO_T}yes" >&6
4103 else
4104 echo "$as_me:$LINENO: result: no" >&5
4105echo "${ECHO_T}no" >&6
4106 fi
4107
4108
4109 enablestring=
4110 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
4111echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
4112 no_cache=0
4113 # Check whether --enable-permissive or --disable-permissive was given.
4114if test "${enable_permissive+set}" = set; then
4115 enableval="$enable_permissive"
4116
4117 if test "$enableval" = yes; then
4118 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
4119 else
4120 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
4121 fi
4122
4123else
4124
4125 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
4126 if test "x$LINE" != x ; then
4127 eval "DEFAULT_$LINE"
4128 else
4129 no_cache=1
4130 fi
4131
4132 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
4133
4134fi;
4135
4136 eval "$ac_cv_use_permissive"
4137 if test "$no_cache" != 1; then
4138 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
4139 fi
4140
4141 if test "$wxUSE_PERMISSIVE" = yes; then
4142 echo "$as_me:$LINENO: result: yes" >&5
4143echo "${ECHO_T}yes" >&6
4144 else
4145 echo "$as_me:$LINENO: result: no" >&5
4146echo "${ECHO_T}no" >&6
4147 fi
4148
4149
4150 enablestring=
4151 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
4152echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
4153 no_cache=0
4154 # Check whether --enable-no_deps or --disable-no_deps was given.
4155if test "${enable_no_deps+set}" = set; then
4156 enableval="$enable_no_deps"
4157
4158 if test "$enableval" = yes; then
4159 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
4160 else
4161 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
4162 fi
4163
4164else
4165
4166 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
4167 if test "x$LINE" != x ; then
4168 eval "DEFAULT_$LINE"
4169 else
4170 no_cache=1
4171 fi
4172
4173 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
4174
4175fi;
4176
4177 eval "$ac_cv_use_no_deps"
4178 if test "$no_cache" != 1; then
4179 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
4180 fi
4181
4182 if test "$wxUSE_NO_DEPS" = yes; then
4183 echo "$as_me:$LINENO: result: yes" >&5
4184echo "${ECHO_T}yes" >&6
4185 else
4186 echo "$as_me:$LINENO: result: no" >&5
4187echo "${ECHO_T}no" >&6
4188 fi
4189
4190
7afc46ab
KO
4191 enablestring=
4192 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal_binary" >&5
4193echo $ECHO_N "checking for --${enablestring:-enable}-universal_binary... $ECHO_C" >&6
4194 no_cache=0
4195 # Check whether --enable-universal_binary or --disable-universal_binary was given.
4196if test "${enable_universal_binary+set}" = set; then
4197 enableval="$enable_universal_binary"
4198
4199 if test "$enableval" = yes; then
4200 ac_cv_use_universal_binary='wxUSE_UNIVERSAL_BINARY=yes'
4201 else
4202 ac_cv_use_universal_binary='wxUSE_UNIVERSAL_BINARY=no'
4203 fi
4204
4205else
4206
4207 LINE=`grep "wxUSE_UNIVERSAL_BINARY" ${wx_arg_cache_file}`
4208 if test "x$LINE" != x ; then
4209 eval "DEFAULT_$LINE"
4210 else
4211 no_cache=1
4212 fi
4213
4214 ac_cv_use_universal_binary='wxUSE_UNIVERSAL_BINARY='$DEFAULT_wxUSE_UNIVERSAL_BINARY
4215
4216fi;
4217
4218 eval "$ac_cv_use_universal_binary"
4219 if test "$no_cache" != 1; then
4220 echo $ac_cv_use_universal_binary >> ${wx_arg_cache_file}.tmp
4221 fi
4222
4223 if test "$wxUSE_UNIVERSAL_BINARY" = yes; then
4224 echo "$as_me:$LINENO: result: yes" >&5
4225echo "${ECHO_T}yes" >&6
4226 else
4227 echo "$as_me:$LINENO: result: no" >&5
4228echo "${ECHO_T}no" >&6
4229 fi
4230
4231
a848cd7e 4232
dee1a63f
MB
4233 enablestring=enable
4234 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
4235echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
a848cd7e 4236 no_cache=0
dee1a63f
MB
4237 # Check whether --enable-compat24 or --disable-compat24 was given.
4238if test "${enable_compat24+set}" = set; then
4239 enableval="$enable_compat24"
a848cd7e
SC
4240
4241 if test "$enableval" = yes; then
dee1a63f 4242 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
a848cd7e 4243 else
dee1a63f 4244 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
a848cd7e
SC
4245 fi
4246
4247else
4248
dee1a63f 4249 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
a848cd7e
SC
4250 if test "x$LINE" != x ; then
4251 eval "DEFAULT_$LINE"
4252 else
4253 no_cache=1
4254 fi
4255
dee1a63f 4256 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
a848cd7e
SC
4257
4258fi;
4259
dee1a63f 4260 eval "$ac_cv_use_compat24"
a848cd7e 4261 if test "$no_cache" != 1; then
dee1a63f 4262 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
4263 fi
4264
dee1a63f 4265 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
a848cd7e
SC
4266 echo "$as_me:$LINENO: result: yes" >&5
4267echo "${ECHO_T}yes" >&6
4268 else
4269 echo "$as_me:$LINENO: result: no" >&5
4270echo "${ECHO_T}no" >&6
4271 fi
4272
4273
4274 enablestring=disable
dee1a63f
MB
4275 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat26" >&5
4276echo $ECHO_N "checking for --${enablestring:-enable}-compat26... $ECHO_C" >&6
a848cd7e 4277 no_cache=0
dee1a63f
MB
4278 # Check whether --enable-compat26 or --disable-compat26 was given.
4279if test "${enable_compat26+set}" = set; then
4280 enableval="$enable_compat26"
a848cd7e
SC
4281
4282 if test "$enableval" = yes; then
dee1a63f 4283 ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=yes'
a848cd7e 4284 else
dee1a63f 4285 ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=no'
a848cd7e
SC
4286 fi
4287
4288else
4289
dee1a63f 4290 LINE=`grep "WXWIN_COMPATIBILITY_2_6" ${wx_arg_cache_file}`
a848cd7e
SC
4291 if test "x$LINE" != x ; then
4292 eval "DEFAULT_$LINE"
4293 else
4294 no_cache=1
4295 fi
4296
dee1a63f 4297 ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6='$DEFAULT_WXWIN_COMPATIBILITY_2_6
a848cd7e
SC
4298
4299fi;
4300
dee1a63f 4301 eval "$ac_cv_use_compat26"
a848cd7e 4302 if test "$no_cache" != 1; then
dee1a63f 4303 echo $ac_cv_use_compat26 >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
4304 fi
4305
dee1a63f 4306 if test "$WXWIN_COMPATIBILITY_2_6" = yes; then
a848cd7e
SC
4307 echo "$as_me:$LINENO: result: yes" >&5
4308echo "${ECHO_T}yes" >&6
4309 else
4310 echo "$as_me:$LINENO: result: no" >&5
4311echo "${ECHO_T}no" >&6
4312 fi
4313
4314
ffa0583f
RL
4315
4316 enablestring=
4317 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5
4318echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6
4319 no_cache=0
4320 # Check whether --enable-rpath or --disable-rpath was given.
a848cd7e
SC
4321if test "${enable_rpath+set}" = set; then
4322 enableval="$enable_rpath"
ffa0583f
RL
4323
4324 if test "$enableval" = yes; then
4325 ac_cv_use_rpath='wxUSE_RPATH=yes'
4326 else
4327 ac_cv_use_rpath='wxUSE_RPATH=no'
4328 fi
4329
4330else
4331
4332 LINE=`grep "wxUSE_RPATH" ${wx_arg_cache_file}`
4333 if test "x$LINE" != x ; then
4334 eval "DEFAULT_$LINE"
4335 else
4336 no_cache=1
4337 fi
4338
4339 ac_cv_use_rpath='wxUSE_RPATH='$DEFAULT_wxUSE_RPATH
4340
a848cd7e
SC
4341fi;
4342
ffa0583f
RL
4343 eval "$ac_cv_use_rpath"
4344 if test "$no_cache" != 1; then
4345 echo $ac_cv_use_rpath >> ${wx_arg_cache_file}.tmp
4346 fi
4347
4348 if test "$wxUSE_RPATH" = yes; then
4349 echo "$as_me:$LINENO: result: yes" >&5
4350echo "${ECHO_T}yes" >&6
4351 else
4352 echo "$as_me:$LINENO: result: no" >&5
4353echo "${ECHO_T}no" >&6
4354 fi
4355
a848cd7e
SC
4356
4357
4358
4359
4360 enablestring=
4361 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
4362echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
4363 no_cache=0
4364 # Check whether --enable-intl or --disable-intl was given.
4365if test "${enable_intl+set}" = set; then
4366 enableval="$enable_intl"
4367
4368 if test "$enableval" = yes; then
4369 ac_cv_use_intl='wxUSE_INTL=yes'
4370 else
4371 ac_cv_use_intl='wxUSE_INTL=no'
4372 fi
4373
4374else
4375
4376 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
4377 if test "x$LINE" != x ; then
4378 eval "DEFAULT_$LINE"
4379 else
4380 no_cache=1
4381 fi
4382
4383 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
4384
4385fi;
4386
4387 eval "$ac_cv_use_intl"
4388 if test "$no_cache" != 1; then
4389 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
4390 fi
4391
4392 if test "$wxUSE_INTL" = yes; then
4393 echo "$as_me:$LINENO: result: yes" >&5
4394echo "${ECHO_T}yes" >&6
4395 else
4396 echo "$as_me:$LINENO: result: no" >&5
4397echo "${ECHO_T}no" >&6
4398 fi
4399
4400
4401 enablestring=
4402 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
4403echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
4404 no_cache=0
4405 # Check whether --enable-config or --disable-config was given.
4406if test "${enable_config+set}" = set; then
4407 enableval="$enable_config"
4408
4409 if test "$enableval" = yes; then
4410 ac_cv_use_config='wxUSE_CONFIG=yes'
4411 else
4412 ac_cv_use_config='wxUSE_CONFIG=no'
4413 fi
4414
4415else
4416
4417 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
4418 if test "x$LINE" != x ; then
4419 eval "DEFAULT_$LINE"
4420 else
4421 no_cache=1
4422 fi
4423
4424 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
4425
4426fi;
4427
4428 eval "$ac_cv_use_config"
4429 if test "$no_cache" != 1; then
4430 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
4431 fi
4432
4433 if test "$wxUSE_CONFIG" = yes; then
4434 echo "$as_me:$LINENO: result: yes" >&5
4435echo "${ECHO_T}yes" >&6
4436 else
4437 echo "$as_me:$LINENO: result: no" >&5
4438echo "${ECHO_T}no" >&6
4439 fi
4440
4441
4442
4443 enablestring=
4444 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
4445echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
4446 no_cache=0
4447 # Check whether --enable-protocols or --disable-protocols was given.
4448if test "${enable_protocols+set}" = set; then
4449 enableval="$enable_protocols"
4450
4451 if test "$enableval" = yes; then
4452 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
4453 else
4454 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
4455 fi
4456
4457else
4458
4459 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4460 if test "x$LINE" != x ; then
4461 eval "DEFAULT_$LINE"
4462 else
4463 no_cache=1
4464 fi
4465
4466 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4467
4468fi;
4469
4470 eval "$ac_cv_use_protocols"
4471 if test "$no_cache" != 1; then
4472 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
4473 fi
4474
4475 if test "$wxUSE_PROTOCOL" = yes; then
4476 echo "$as_me:$LINENO: result: yes" >&5
4477echo "${ECHO_T}yes" >&6
4478 else
4479 echo "$as_me:$LINENO: result: no" >&5
4480echo "${ECHO_T}no" >&6
4481 fi
4482
4483
4484 enablestring=
4485 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
4486echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
4487 no_cache=0
4488 # Check whether --enable-ftp or --disable-ftp was given.
4489if test "${enable_ftp+set}" = set; then
4490 enableval="$enable_ftp"
4491
4492 if test "$enableval" = yes; then
4493 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
4494 else
4495 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
4496 fi
4497
4498else
4499
4500 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4501 if test "x$LINE" != x ; then
4502 eval "DEFAULT_$LINE"
4503 else
4504 no_cache=1
4505 fi
4506
4507 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4508
4509fi;
4510
4511 eval "$ac_cv_use_ftp"
4512 if test "$no_cache" != 1; then
4513 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
4514 fi
4515
4516 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4517 echo "$as_me:$LINENO: result: yes" >&5
4518echo "${ECHO_T}yes" >&6
4519 else
4520 echo "$as_me:$LINENO: result: no" >&5
4521echo "${ECHO_T}no" >&6
4522 fi
4523
4524
4525 enablestring=
4526 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
4527echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
4528 no_cache=0
4529 # Check whether --enable-http or --disable-http was given.
4530if test "${enable_http+set}" = set; then
4531 enableval="$enable_http"
4532
4533 if test "$enableval" = yes; then
4534 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
4535 else
4536 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
4537 fi
4538
4539else
4540
4541 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4542 if test "x$LINE" != x ; then
4543 eval "DEFAULT_$LINE"
4544 else
4545 no_cache=1
4546 fi
4547
4548 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4549
4550fi;
4551
4552 eval "$ac_cv_use_http"
4553 if test "$no_cache" != 1; then
4554 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
4555 fi
4556
4557 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4558 echo "$as_me:$LINENO: result: yes" >&5
4559echo "${ECHO_T}yes" >&6
4560 else
4561 echo "$as_me:$LINENO: result: no" >&5
4562echo "${ECHO_T}no" >&6
4563 fi
4564
4565
4566 enablestring=
4567 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
4568echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
4569 no_cache=0
4570 # Check whether --enable-fileproto or --disable-fileproto was given.
4571if test "${enable_fileproto+set}" = set; then
4572 enableval="$enable_fileproto"
4573
4574 if test "$enableval" = yes; then
4575 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4576 else
4577 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4578 fi
4579
4580else
4581
4582 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4583 if test "x$LINE" != x ; then
4584 eval "DEFAULT_$LINE"
4585 else
4586 no_cache=1
4587 fi
4588
4589 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4590
4591fi;
4592
4593 eval "$ac_cv_use_fileproto"
4594 if test "$no_cache" != 1; then
4595 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4596 fi
4597
4598 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4599 echo "$as_me:$LINENO: result: yes" >&5
4600echo "${ECHO_T}yes" >&6
4601 else
4602 echo "$as_me:$LINENO: result: no" >&5
4603echo "${ECHO_T}no" >&6
4604 fi
4605
4606
4607 enablestring=
4608 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4609echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
4610 no_cache=0
4611 # Check whether --enable-sockets or --disable-sockets was given.
4612if test "${enable_sockets+set}" = set; then
4613 enableval="$enable_sockets"
4614
4615 if test "$enableval" = yes; then
4616 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4617 else
4618 ac_cv_use_sockets='wxUSE_SOCKETS=no'
4619 fi
4620
4621else
4622
4623 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4624 if test "x$LINE" != x ; then
4625 eval "DEFAULT_$LINE"
4626 else
4627 no_cache=1
4628 fi
4629
4630 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
4631
4632fi;
4633
4634 eval "$ac_cv_use_sockets"
4635 if test "$no_cache" != 1; then
4636 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4637 fi
4638
4639 if test "$wxUSE_SOCKETS" = yes; then
4640 echo "$as_me:$LINENO: result: yes" >&5
4641echo "${ECHO_T}yes" >&6
4642 else
4643 echo "$as_me:$LINENO: result: no" >&5
4644echo "${ECHO_T}no" >&6
4645 fi
4646
4647
4648 enablestring=
4649 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4650echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
4651 no_cache=0
4652 # Check whether --enable-ole or --disable-ole was given.
4653if test "${enable_ole+set}" = set; then
4654 enableval="$enable_ole"
4655
4656 if test "$enableval" = yes; then
4657 ac_cv_use_ole='wxUSE_OLE=yes'
4658 else
4659 ac_cv_use_ole='wxUSE_OLE=no'
4660 fi
4661
4662else
4663
4664 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4665 if test "x$LINE" != x ; then
4666 eval "DEFAULT_$LINE"
4667 else
4668 no_cache=1
4669 fi
4670
4671 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
4672
4673fi;
4674
4675 eval "$ac_cv_use_ole"
4676 if test "$no_cache" != 1; then
4677 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4678 fi
4679
4680 if test "$wxUSE_OLE" = yes; then
4681 echo "$as_me:$LINENO: result: yes" >&5
4682echo "${ECHO_T}yes" >&6
4683 else
4684 echo "$as_me:$LINENO: result: no" >&5
4685echo "${ECHO_T}no" >&6
4686 fi
4687
4688
4689 enablestring=
4690 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4691echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
4692 no_cache=0
4693 # Check whether --enable-dataobj or --disable-dataobj was given.
4694if test "${enable_dataobj+set}" = set; then
4695 enableval="$enable_dataobj"
4696
4697 if test "$enableval" = yes; then
4698 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4699 else
4700 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4701 fi
4702
4703else
4704
4705 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4706 if test "x$LINE" != x ; then
4707 eval "DEFAULT_$LINE"
4708 else
4709 no_cache=1
4710 fi
4711
4712 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
4713
4714fi;
4715
4716 eval "$ac_cv_use_dataobj"
4717 if test "$no_cache" != 1; then
4718 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4719 fi
4720
4721 if test "$wxUSE_DATAOBJ" = yes; then
4722 echo "$as_me:$LINENO: result: yes" >&5
4723echo "${ECHO_T}yes" >&6
4724 else
4725 echo "$as_me:$LINENO: result: no" >&5
4726echo "${ECHO_T}no" >&6
4727 fi
4728
4729
4730
4731 enablestring=
4732 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4733echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
4734 no_cache=0
4735 # Check whether --enable-ipc or --disable-ipc was given.
4736if test "${enable_ipc+set}" = set; then
4737 enableval="$enable_ipc"
4738
4739 if test "$enableval" = yes; then
4740 ac_cv_use_ipc='wxUSE_IPC=yes'
4741 else
4742 ac_cv_use_ipc='wxUSE_IPC=no'
4743 fi
4744
4745else
4746
4747 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
4748 if test "x$LINE" != x ; then
4749 eval "DEFAULT_$LINE"
4750 else
4751 no_cache=1
4752 fi
4753
4754 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
4755
4756fi;
4757
4758 eval "$ac_cv_use_ipc"
4759 if test "$no_cache" != 1; then
4760 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
4761 fi
4762
4763 if test "$wxUSE_IPC" = yes; then
4764 echo "$as_me:$LINENO: result: yes" >&5
4765echo "${ECHO_T}yes" >&6
4766 else
4767 echo "$as_me:$LINENO: result: no" >&5
4768echo "${ECHO_T}no" >&6
4769 fi
4770
4771
4772
4773 enablestring=
4774 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4775echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
4776 no_cache=0
4777 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4778if test "${enable_apple_ieee+set}" = set; then
4779 enableval="$enable_apple_ieee"
4780
4781 if test "$enableval" = yes; then
4782 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
4783 else
4784 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
4785 fi
4786
4787else
4788
4789 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
4790 if test "x$LINE" != x ; then
4791 eval "DEFAULT_$LINE"
4792 else
4793 no_cache=1
4794 fi
4795
4796 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
4797
4798fi;
4799
4800 eval "$ac_cv_use_apple_ieee"
4801 if test "$no_cache" != 1; then
4802 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
4803 fi
4804
4805 if test "$wxUSE_APPLE_IEEE" = yes; then
4806 echo "$as_me:$LINENO: result: yes" >&5
4807echo "${ECHO_T}yes" >&6
4808 else
4809 echo "$as_me:$LINENO: result: no" >&5
4810echo "${ECHO_T}no" >&6
4811 fi
4812
4813
81f90336
MW
4814 enablestring=
4815 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5
4816echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6
4817 no_cache=0
4818 # Check whether --enable-arcstream or --disable-arcstream was given.
4819if test "${enable_arcstream+set}" = set; then
4820 enableval="$enable_arcstream"
4821
4822 if test "$enableval" = yes; then
9e8e867f 4823 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes'
81f90336 4824 else
9e8e867f 4825 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no'
81f90336
MW
4826 fi
4827
4828else
4829
9e8e867f 4830 LINE=`grep "wxUSE_ARCHIVE_STREAMS" ${wx_arg_cache_file}`
81f90336
MW
4831 if test "x$LINE" != x ; then
4832 eval "DEFAULT_$LINE"
4833 else
4834 no_cache=1
4835 fi
4836
9e8e867f 4837 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS='$DEFAULT_wxUSE_ARCHIVE_STREAMS
81f90336
MW
4838
4839fi;
4840
4841 eval "$ac_cv_use_arcstream"
4842 if test "$no_cache" != 1; then
4843 echo $ac_cv_use_arcstream >> ${wx_arg_cache_file}.tmp
4844 fi
4845
9e8e867f 4846 if test "$wxUSE_ARCHIVE_STREAMS" = yes; then
81f90336
MW
4847 echo "$as_me:$LINENO: result: yes" >&5
4848echo "${ECHO_T}yes" >&6
4849 else
4850 echo "$as_me:$LINENO: result: no" >&5
4851echo "${ECHO_T}no" >&6
4852 fi
4853
4854
a848cd7e 4855 enablestring=
36b6448c
VZ
4856 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5
4857echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6
a848cd7e 4858 no_cache=0
36b6448c
VZ
4859 # Check whether --enable-backtrace or --disable-backtrace was given.
4860if test "${enable_backtrace+set}" = set; then
4861 enableval="$enable_backtrace"
a848cd7e
SC
4862
4863 if test "$enableval" = yes; then
36b6448c 4864 ac_cv_use_backtrace='wxUSE_STACKWALKER=yes'
a848cd7e 4865 else
36b6448c 4866 ac_cv_use_backtrace='wxUSE_STACKWALKER=no'
a848cd7e
SC
4867 fi
4868
4869else
4870
36b6448c 4871 LINE=`grep "wxUSE_STACKWALKER" ${wx_arg_cache_file}`
a848cd7e
SC
4872 if test "x$LINE" != x ; then
4873 eval "DEFAULT_$LINE"
4874 else
4875 no_cache=1
4876 fi
4877
36b6448c 4878 ac_cv_use_backtrace='wxUSE_STACKWALKER='$DEFAULT_wxUSE_STACKWALKER
a848cd7e
SC
4879
4880fi;
4881
36b6448c 4882 eval "$ac_cv_use_backtrace"
a848cd7e 4883 if test "$no_cache" != 1; then
36b6448c 4884 echo $ac_cv_use_backtrace >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
4885 fi
4886
36b6448c 4887 if test "$wxUSE_STACKWALKER" = yes; then
a848cd7e
SC
4888 echo "$as_me:$LINENO: result: yes" >&5
4889echo "${ECHO_T}yes" >&6
4890 else
4891 echo "$as_me:$LINENO: result: no" >&5
4892echo "${ECHO_T}no" >&6
4893 fi
4894
4895
eaff0f0d 4896 enablestring=
36b6448c
VZ
4897 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
4898echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
eaff0f0d 4899 no_cache=0
36b6448c
VZ
4900 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4901if test "${enable_catch_segvs+set}" = set; then
4902 enableval="$enable_catch_segvs"
eaff0f0d
VZ
4903
4904 if test "$enableval" = yes; then
36b6448c 4905 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
eaff0f0d 4906 else
36b6448c 4907 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
eaff0f0d
VZ
4908 fi
4909
4910else
4911
36b6448c 4912 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
eaff0f0d
VZ
4913 if test "x$LINE" != x ; then
4914 eval "DEFAULT_$LINE"
4915 else
4916 no_cache=1
4917 fi
4918
36b6448c 4919 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
eaff0f0d
VZ
4920
4921fi;
4922
36b6448c 4923 eval "$ac_cv_use_catch_segvs"
eaff0f0d 4924 if test "$no_cache" != 1; then
36b6448c 4925 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
eaff0f0d
VZ
4926 fi
4927
36b6448c 4928 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
eaff0f0d
VZ
4929 echo "$as_me:$LINENO: result: yes" >&5
4930echo "${ECHO_T}yes" >&6
4931 else
4932 echo "$as_me:$LINENO: result: no" >&5
4933echo "${ECHO_T}no" >&6
4934 fi
4935
4936
a848cd7e
SC
4937 enablestring=
4938 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
4939echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
4940 no_cache=0
4941 # Check whether --enable-cmdline or --disable-cmdline was given.
4942if test "${enable_cmdline+set}" = set; then
4943 enableval="$enable_cmdline"
4944
4945 if test "$enableval" = yes; then
4946 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
4947 else
4948 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
4949 fi
4950
4951else
4952
4953 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
4954 if test "x$LINE" != x ; then
4955 eval "DEFAULT_$LINE"
4956 else
4957 no_cache=1
4958 fi
4959
4960 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
4961
4962fi;
4963
4964 eval "$ac_cv_use_cmdline"
4965 if test "$no_cache" != 1; then
4966 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
4967 fi
4968
4969 if test "$wxUSE_CMDLINE_PARSER" = yes; then
4970 echo "$as_me:$LINENO: result: yes" >&5
4971echo "${ECHO_T}yes" >&6
4972 else
4973 echo "$as_me:$LINENO: result: no" >&5
4974echo "${ECHO_T}no" >&6
4975 fi
4976
4977
4978 enablestring=
4979 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
4980echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
4981 no_cache=0
4982 # Check whether --enable-datetime or --disable-datetime was given.
4983if test "${enable_datetime+set}" = set; then
4984 enableval="$enable_datetime"
4985
4986 if test "$enableval" = yes; then
4987 ac_cv_use_datetime='wxUSE_DATETIME=yes'
4988 else
4989 ac_cv_use_datetime='wxUSE_DATETIME=no'
4990 fi
4991
4992else
4993
4994 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
4995 if test "x$LINE" != x ; then
4996 eval "DEFAULT_$LINE"
4997 else
4998 no_cache=1
4999 fi
5000
5001 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
5002
5003fi;
5004
5005 eval "$ac_cv_use_datetime"
5006 if test "$no_cache" != 1; then
5007 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
5008 fi
5009
5010 if test "$wxUSE_DATETIME" = yes; then
5011 echo "$as_me:$LINENO: result: yes" >&5
5012echo "${ECHO_T}yes" >&6
5013 else
5014 echo "$as_me:$LINENO: result: no" >&5
5015echo "${ECHO_T}no" >&6
5016 fi
5017
5018
36b6448c
VZ
5019 enablestring=
5020 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debugreport" >&5
5021echo $ECHO_N "checking for --${enablestring:-enable}-debugreport... $ECHO_C" >&6
5022 no_cache=0
5023 # Check whether --enable-debugreport or --disable-debugreport was given.
5024if test "${enable_debugreport+set}" = set; then
5025 enableval="$enable_debugreport"
5026
5027 if test "$enableval" = yes; then
5028 ac_cv_use_debugreport='wxUSE_DEBUGREPORT=yes'
5029 else
5030 ac_cv_use_debugreport='wxUSE_DEBUGREPORT=no'
5031 fi
5032
5033else
5034
5035 LINE=`grep "wxUSE_DEBUGREPORT" ${wx_arg_cache_file}`
5036 if test "x$LINE" != x ; then
5037 eval "DEFAULT_$LINE"
5038 else
5039 no_cache=1
5040 fi
5041
5042 ac_cv_use_debugreport='wxUSE_DEBUGREPORT='$DEFAULT_wxUSE_DEBUGREPORT
5043
5044fi;
5045
5046 eval "$ac_cv_use_debugreport"
5047 if test "$no_cache" != 1; then
5048 echo $ac_cv_use_debugreport >> ${wx_arg_cache_file}.tmp
5049 fi
5050
5051 if test "$wxUSE_DEBUGREPORT" = yes; then
5052 echo "$as_me:$LINENO: result: yes" >&5
5053echo "${ECHO_T}yes" >&6
5054 else
5055 echo "$as_me:$LINENO: result: no" >&5
5056echo "${ECHO_T}no" >&6
5057 fi
5058
5059
a848cd7e
SC
5060 enablestring=
5061 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
5062echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
5063 no_cache=0
5064 # Check whether --enable-dialupman or --disable-dialupman was given.
5065if test "${enable_dialupman+set}" = set; then
5066 enableval="$enable_dialupman"
5067
5068 if test "$enableval" = yes; then
5069 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
5070 else
5071 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
5072 fi
5073
5074else
5075
5076 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
5077 if test "x$LINE" != x ; then
5078 eval "DEFAULT_$LINE"
5079 else
5080 no_cache=1
5081 fi
5082
5083 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
5084
5085fi;
5086
5087 eval "$ac_cv_use_dialupman"
5088 if test "$no_cache" != 1; then
5089 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
5090 fi
5091
5092 if test "$wxUSE_DIALUP_MANAGER" = yes; then
5093 echo "$as_me:$LINENO: result: yes" >&5
5094echo "${ECHO_T}yes" >&6
5095 else
5096 echo "$as_me:$LINENO: result: no" >&5
5097echo "${ECHO_T}no" >&6
5098 fi
5099
5100
5101 enablestring=
5102 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
5103echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
5104 no_cache=0
5105 # Check whether --enable-dynlib or --disable-dynlib was given.
5106if test "${enable_dynlib+set}" = set; then
5107 enableval="$enable_dynlib"
5108
5109 if test "$enableval" = yes; then
5110 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
5111 else
5112 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
5113 fi
5114
5115else
5116
5117 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
5118 if test "x$LINE" != x ; then
5119 eval "DEFAULT_$LINE"
5120 else
5121 no_cache=1
5122 fi
5123
5124 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
5125
5126fi;
5127
5128 eval "$ac_cv_use_dynlib"
5129 if test "$no_cache" != 1; then
5130 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
5131 fi
5132
5133 if test "$wxUSE_DYNLIB_CLASS" = yes; then
5134 echo "$as_me:$LINENO: result: yes" >&5
5135echo "${ECHO_T}yes" >&6
5136 else
5137 echo "$as_me:$LINENO: result: no" >&5
5138echo "${ECHO_T}no" >&6
5139 fi
5140
5141
5142 enablestring=
5143 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
5144echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
5145 no_cache=0
5146 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
5147if test "${enable_dynamicloader+set}" = set; then
5148 enableval="$enable_dynamicloader"
5149
5150 if test "$enableval" = yes; then
5151 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
5152 else
5153 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
5154 fi
5155
5156else
5157
5158 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
5159 if test "x$LINE" != x ; then
5160 eval "DEFAULT_$LINE"
5161 else
5162 no_cache=1
5163 fi
5164
5165 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
5166
5167fi;
5168
5169 eval "$ac_cv_use_dynamicloader"
5170 if test "$no_cache" != 1; then
5171 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
5172 fi
5173
5174 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
5175 echo "$as_me:$LINENO: result: yes" >&5
5176echo "${ECHO_T}yes" >&6
5177 else
5178 echo "$as_me:$LINENO: result: no" >&5
5179echo "${ECHO_T}no" >&6
5180 fi
5181
5182
5183 enablestring=
5184 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
5185echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6
5186 no_cache=0
5187 # Check whether --enable-exceptions or --disable-exceptions was given.
5188if test "${enable_exceptions+set}" = set; then
5189 enableval="$enable_exceptions"
5190
5191 if test "$enableval" = yes; then
5192 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
5193 else
5194 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
5195 fi
5196
5197else
5198
5199 LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}`
5200 if test "x$LINE" != x ; then
5201 eval "DEFAULT_$LINE"
5202 else
5203 no_cache=1
5204 fi
5205
5206 ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS
5207
5208fi;
5209
5210 eval "$ac_cv_use_exceptions"
5211 if test "$no_cache" != 1; then
5212 echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp
5213 fi
5214
5215 if test "$wxUSE_EXCEPTIONS" = yes; then
5216 echo "$as_me:$LINENO: result: yes" >&5
5217echo "${ECHO_T}yes" >&6
5218 else
5219 echo "$as_me:$LINENO: result: no" >&5
5220echo "${ECHO_T}no" >&6
5221 fi
5222
5223
5224 enablestring=
5225 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
5226echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
5227 no_cache=0
5228 # Check whether --enable-ffile or --disable-ffile was given.
5229if test "${enable_ffile+set}" = set; then
5230 enableval="$enable_ffile"
5231
5232 if test "$enableval" = yes; then
5233 ac_cv_use_ffile='wxUSE_FFILE=yes'
5234 else
5235 ac_cv_use_ffile='wxUSE_FFILE=no'
5236 fi
5237
5238else
5239
5240 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
5241 if test "x$LINE" != x ; then
5242 eval "DEFAULT_$LINE"
5243 else
5244 no_cache=1
5245 fi
5246
5247 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
5248
5249fi;
5250
5251 eval "$ac_cv_use_ffile"
5252 if test "$no_cache" != 1; then
5253 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
5254 fi
5255
5256 if test "$wxUSE_FFILE" = yes; then
5257 echo "$as_me:$LINENO: result: yes" >&5
5258echo "${ECHO_T}yes" >&6
5259 else
5260 echo "$as_me:$LINENO: result: no" >&5
5261echo "${ECHO_T}no" >&6
5262 fi
5263
5264
5265 enablestring=
5266 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
5267echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
5268 no_cache=0
5269 # Check whether --enable-file or --disable-file was given.
5270if test "${enable_file+set}" = set; then
5271 enableval="$enable_file"
5272
5273 if test "$enableval" = yes; then
5274 ac_cv_use_file='wxUSE_FILE=yes'
5275 else
5276 ac_cv_use_file='wxUSE_FILE=no'
5277 fi
5278
5279else
5280
5281 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
5282 if test "x$LINE" != x ; then
5283 eval "DEFAULT_$LINE"
5284 else
5285 no_cache=1
5286 fi
5287
5288 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
5289
5290fi;
5291
5292 eval "$ac_cv_use_file"
5293 if test "$no_cache" != 1; then
5294 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
5295 fi
5296
5297 if test "$wxUSE_FILE" = yes; then
5298 echo "$as_me:$LINENO: result: yes" >&5
5299echo "${ECHO_T}yes" >&6
5300 else
5301 echo "$as_me:$LINENO: result: no" >&5
5302echo "${ECHO_T}no" >&6
5303 fi
5304
5305
5306 enablestring=
5307 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
5308echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
5309 no_cache=0
5310 # Check whether --enable-filesystem or --disable-filesystem was given.
5311if test "${enable_filesystem+set}" = set; then
5312 enableval="$enable_filesystem"
5313
5314 if test "$enableval" = yes; then
5315 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
5316 else
5317 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
5318 fi
5319
5320else
5321
5322 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
5323 if test "x$LINE" != x ; then
5324 eval "DEFAULT_$LINE"
5325 else
5326 no_cache=1
5327 fi
5328
5329 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
5330
5331fi;
5332
5333 eval "$ac_cv_use_filesystem"
5334 if test "$no_cache" != 1; then
5335 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
5336 fi
5337
5338 if test "$wxUSE_FILESYSTEM" = yes; then
5339 echo "$as_me:$LINENO: result: yes" >&5
5340echo "${ECHO_T}yes" >&6
5341 else
5342 echo "$as_me:$LINENO: result: no" >&5
5343echo "${ECHO_T}no" >&6
5344 fi
5345
5346
5347 enablestring=
5348 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
5349echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
5350 no_cache=0
5351 # Check whether --enable-fontmap or --disable-fontmap was given.
5352if test "${enable_fontmap+set}" = set; then
5353 enableval="$enable_fontmap"
5354
5355 if test "$enableval" = yes; then
5356 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
5357 else
5358 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
5359 fi
5360
5361else
5362
5363 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
5364 if test "x$LINE" != x ; then
5365 eval "DEFAULT_$LINE"
5366 else
5367 no_cache=1
5368 fi
5369
5370 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
5371
5372fi;
5373
5374 eval "$ac_cv_use_fontmap"
5375 if test "$no_cache" != 1; then
5376 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
5377 fi
5378
5379 if test "$wxUSE_FONTMAP" = yes; then
5380 echo "$as_me:$LINENO: result: yes" >&5
5381echo "${ECHO_T}yes" >&6
5382 else
5383 echo "$as_me:$LINENO: result: no" >&5
5384echo "${ECHO_T}no" >&6
5385 fi
5386
5387
5388 enablestring=
5389 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
5390echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
5391 no_cache=0
5392 # Check whether --enable-fs_inet or --disable-fs_inet was given.
5393if test "${enable_fs_inet+set}" = set; then
5394 enableval="$enable_fs_inet"
5395
5396 if test "$enableval" = yes; then
5397 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
5398 else
5399 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
5400 fi
5401
5402else
5403
5404 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
5405 if test "x$LINE" != x ; then
5406 eval "DEFAULT_$LINE"
5407 else
5408 no_cache=1
5409 fi
5410
5411 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
5412
5413fi;
5414
5415 eval "$ac_cv_use_fs_inet"
5416 if test "$no_cache" != 1; then
5417 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
5418 fi
5419
5420 if test "$wxUSE_FS_INET" = yes; then
5421 echo "$as_me:$LINENO: result: yes" >&5
5422echo "${ECHO_T}yes" >&6
5423 else
5424 echo "$as_me:$LINENO: result: no" >&5
5425echo "${ECHO_T}no" >&6
5426 fi
5427
5428
5429 enablestring=
5430 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
5431echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
5432 no_cache=0
5433 # Check whether --enable-fs_zip or --disable-fs_zip was given.
5434if test "${enable_fs_zip+set}" = set; then
5435 enableval="$enable_fs_zip"
5436
5437 if test "$enableval" = yes; then
5438 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
5439 else
5440 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
5441 fi
5442
5443else
5444
5445 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
5446 if test "x$LINE" != x ; then
5447 eval "DEFAULT_$LINE"
5448 else
5449 no_cache=1
5450 fi
5451
5452 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
5453
5454fi;
5455
5456 eval "$ac_cv_use_fs_zip"
5457 if test "$no_cache" != 1; then
5458 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
5459 fi
5460
5461 if test "$wxUSE_FS_ZIP" = yes; then
5462 echo "$as_me:$LINENO: result: yes" >&5
5463echo "${ECHO_T}yes" >&6
5464 else
5465 echo "$as_me:$LINENO: result: no" >&5
5466echo "${ECHO_T}no" >&6
5467 fi
5468
5469
5470 enablestring=
5471 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
5472echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
5473 no_cache=0
5474 # Check whether --enable-geometry or --disable-geometry was given.
5475if test "${enable_geometry+set}" = set; then
5476 enableval="$enable_geometry"
5477
5478 if test "$enableval" = yes; then
5479 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
5480 else
5481 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
5482 fi
5483
5484else
5485
5486 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
5487 if test "x$LINE" != x ; then
5488 eval "DEFAULT_$LINE"
5489 else
5490 no_cache=1
5491 fi
5492
5493 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
5494
5495fi;
5496
5497 eval "$ac_cv_use_geometry"
5498 if test "$no_cache" != 1; then
5499 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
5500 fi
5501
5502 if test "$wxUSE_GEOMETRY" = yes; then
5503 echo "$as_me:$LINENO: result: yes" >&5
5504echo "${ECHO_T}yes" >&6
5505 else
5506 echo "$as_me:$LINENO: result: no" >&5
5507echo "${ECHO_T}no" >&6
5508 fi
5509
5510
5511 enablestring=
5512 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
5513echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
5514 no_cache=0
5515 # Check whether --enable-log or --disable-log was given.
5516if test "${enable_log+set}" = set; then
5517 enableval="$enable_log"
5518
5519 if test "$enableval" = yes; then
5520 ac_cv_use_log='wxUSE_LOG=yes'
5521 else
5522 ac_cv_use_log='wxUSE_LOG=no'
5523 fi
5524
5525else
5526
5527 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
5528 if test "x$LINE" != x ; then
5529 eval "DEFAULT_$LINE"
5530 else
5531 no_cache=1
5532 fi
5533
5534 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
5535
5536fi;
5537
5538 eval "$ac_cv_use_log"
5539 if test "$no_cache" != 1; then
5540 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
5541 fi
5542
5543 if test "$wxUSE_LOG" = yes; then
5544 echo "$as_me:$LINENO: result: yes" >&5
5545echo "${ECHO_T}yes" >&6
5546 else
5547 echo "$as_me:$LINENO: result: no" >&5
5548echo "${ECHO_T}no" >&6
5549 fi
5550
5551
5552 enablestring=
5553 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
5554echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
5555 no_cache=0
5556 # Check whether --enable-longlong or --disable-longlong was given.
5557if test "${enable_longlong+set}" = set; then
5558 enableval="$enable_longlong"
5559
5560 if test "$enableval" = yes; then
5561 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
5562 else
5563 ac_cv_use_longlong='wxUSE_LONGLONG=no'
5564 fi
5565
5566else
5567
5568 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
5569 if test "x$LINE" != x ; then
5570 eval "DEFAULT_$LINE"
5571 else
5572 no_cache=1
5573 fi
5574
5575 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
5576
5577fi;
5578
5579 eval "$ac_cv_use_longlong"
5580 if test "$no_cache" != 1; then
5581 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
5582 fi
5583
5584 if test "$wxUSE_LONGLONG" = yes; then
5585 echo "$as_me:$LINENO: result: yes" >&5
5586echo "${ECHO_T}yes" >&6
5587 else
5588 echo "$as_me:$LINENO: result: no" >&5
5589echo "${ECHO_T}no" >&6
5590 fi
5591
5592
5593 enablestring=
5594 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5595echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
5596 no_cache=0
5597 # Check whether --enable-mimetype or --disable-mimetype was given.
5598if test "${enable_mimetype+set}" = set; then
5599 enableval="$enable_mimetype"
5600
5601 if test "$enableval" = yes; then
5602 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5603 else
5604 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5605 fi
5606
5607else
5608
5609 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5610 if test "x$LINE" != x ; then
5611 eval "DEFAULT_$LINE"
5612 else
5613 no_cache=1
5614 fi
5615
5616 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
5617
5618fi;
5619
5620 eval "$ac_cv_use_mimetype"
5621 if test "$no_cache" != 1; then
5622 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5623 fi
5624
5625 if test "$wxUSE_MIMETYPE" = yes; then
5626 echo "$as_me:$LINENO: result: yes" >&5
5627echo "${ECHO_T}yes" >&6
5628 else
5629 echo "$as_me:$LINENO: result: no" >&5
5630echo "${ECHO_T}no" >&6
5631 fi
5632
5633
5634 enablestring=
5635 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5636echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
5637 no_cache=0
5638 # Check whether --enable-mslu or --disable-mslu was given.
5639if test "${enable_mslu+set}" = set; then
5640 enableval="$enable_mslu"
5641
5642 if test "$enableval" = yes; then
5643 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5644 else
5645 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5646 fi
5647
5648else
5649
5650 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5651 if test "x$LINE" != x ; then
5652 eval "DEFAULT_$LINE"
5653 else
5654 no_cache=1
5655 fi
5656
5657 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
5658
5659fi;
5660
5661 eval "$ac_cv_use_mslu"
5662 if test "$no_cache" != 1; then
5663 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5664 fi
5665
5666 if test "$wxUSE_UNICODE_MSLU" = yes; then
5667 echo "$as_me:$LINENO: result: yes" >&5
5668echo "${ECHO_T}yes" >&6
5669 else
5670 echo "$as_me:$LINENO: result: no" >&5
5671echo "${ECHO_T}no" >&6
5672 fi
5673
5674
5675 enablestring=
5676 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5677echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
5678 no_cache=0
5679 # Check whether --enable-snglinst or --disable-snglinst was given.
5680if test "${enable_snglinst+set}" = set; then
5681 enableval="$enable_snglinst"
5682
5683 if test "$enableval" = yes; then
5684 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
5685 else
5686 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
5687 fi
5688
5689else
5690
5691 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
5692 if test "x$LINE" != x ; then
5693 eval "DEFAULT_$LINE"
5694 else
5695 no_cache=1
5696 fi
5697
5698 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
5699
5700fi;
5701
5702 eval "$ac_cv_use_snglinst"
5703 if test "$no_cache" != 1; then
5704 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
5705 fi
5706
5707 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
5708 echo "$as_me:$LINENO: result: yes" >&5
5709echo "${ECHO_T}yes" >&6
5710 else
5711 echo "$as_me:$LINENO: result: no" >&5
5712echo "${ECHO_T}no" >&6
5713 fi
5714
5715
5716 enablestring=
07158944
VZ
5717 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5718echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
a848cd7e 5719 no_cache=0
07158944
VZ
5720 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5721if test "${enable_std_iostreams+set}" = set; then
5722 enableval="$enable_std_iostreams"
a848cd7e
SC
5723
5724 if test "$enableval" = yes; then
07158944 5725 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
a848cd7e 5726 else
07158944 5727 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
a848cd7e
SC
5728 fi
5729
5730else
5731
07158944 5732 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
a848cd7e
SC
5733 if test "x$LINE" != x ; then
5734 eval "DEFAULT_$LINE"
5735 else
5736 no_cache=1
5737 fi
5738
07158944 5739 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
a848cd7e
SC
5740
5741fi;
5742
07158944 5743 eval "$ac_cv_use_std_iostreams"
a848cd7e 5744 if test "$no_cache" != 1; then
07158944 5745 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
5746 fi
5747
07158944 5748 if test "$wxUSE_STD_IOSTREAM" = yes; then
a848cd7e
SC
5749 echo "$as_me:$LINENO: result: yes" >&5
5750echo "${ECHO_T}yes" >&6
5751 else
5752 echo "$as_me:$LINENO: result: no" >&5
5753echo "${ECHO_T}no" >&6
5754 fi
5755
5756
59746b65
MW
5757 enablestring=
5758 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_string" >&5
5759echo $ECHO_N "checking for --${enablestring:-enable}-std_string... $ECHO_C" >&6
5760 no_cache=0
5761 # Check whether --enable-std_string or --disable-std_string was given.
5762if test "${enable_std_string+set}" = set; then
5763 enableval="$enable_std_string"
5764
5765 if test "$enableval" = yes; then
5766 ac_cv_use_std_string='wxUSE_STD_STRING=yes'
5767 else
5768 ac_cv_use_std_string='wxUSE_STD_STRING=no'
5769 fi
5770
5771else
5772
5773 LINE=`grep "wxUSE_STD_STRING" ${wx_arg_cache_file}`
5774 if test "x$LINE" != x ; then
5775 eval "DEFAULT_$LINE"
5776 else
5777 no_cache=1
5778 fi
5779
5780 ac_cv_use_std_string='wxUSE_STD_STRING='$DEFAULT_wxUSE_STD_STRING
5781
5782fi;
5783
5784 eval "$ac_cv_use_std_string"
5785 if test "$no_cache" != 1; then
5786 echo $ac_cv_use_std_string >> ${wx_arg_cache_file}.tmp
5787 fi
5788
5789 if test "$wxUSE_STD_STRING" = yes; then
5790 echo "$as_me:$LINENO: result: yes" >&5
5791echo "${ECHO_T}yes" >&6
5792 else
5793 echo "$as_me:$LINENO: result: no" >&5
5794echo "${ECHO_T}no" >&6
5795 fi
5796
5797
a848cd7e 5798 enablestring=
07158944
VZ
5799 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stdpaths" >&5
5800echo $ECHO_N "checking for --${enablestring:-enable}-stdpaths... $ECHO_C" >&6
a848cd7e 5801 no_cache=0
07158944
VZ
5802 # Check whether --enable-stdpaths or --disable-stdpaths was given.
5803if test "${enable_stdpaths+set}" = set; then
5804 enableval="$enable_stdpaths"
a848cd7e
SC
5805
5806 if test "$enableval" = yes; then
07158944 5807 ac_cv_use_stdpaths='wxUSE_STDPATHS=yes'
a848cd7e 5808 else
07158944 5809 ac_cv_use_stdpaths='wxUSE_STDPATHS=no'
a848cd7e
SC
5810 fi
5811
5812else
5813
07158944 5814 LINE=`grep "wxUSE_STDPATHS" ${wx_arg_cache_file}`
a848cd7e
SC
5815 if test "x$LINE" != x ; then
5816 eval "DEFAULT_$LINE"
5817 else
5818 no_cache=1
5819 fi
5820
07158944 5821 ac_cv_use_stdpaths='wxUSE_STDPATHS='$DEFAULT_wxUSE_STDPATHS
a848cd7e
SC
5822
5823fi;
5824
07158944 5825 eval "$ac_cv_use_stdpaths"
a848cd7e 5826 if test "$no_cache" != 1; then
07158944 5827 echo $ac_cv_use_stdpaths >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
5828 fi
5829
07158944 5830 if test "$wxUSE_STDPATHS" = yes; then
a848cd7e
SC
5831 echo "$as_me:$LINENO: result: yes" >&5
5832echo "${ECHO_T}yes" >&6
5833 else
5834 echo "$as_me:$LINENO: result: no" >&5
5835echo "${ECHO_T}no" >&6
5836 fi
5837
5838
5839 enablestring=
5840 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
5841echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
5842 no_cache=0
5843 # Check whether --enable-stopwatch or --disable-stopwatch was given.
5844if test "${enable_stopwatch+set}" = set; then
5845 enableval="$enable_stopwatch"
5846
5847 if test "$enableval" = yes; then
5848 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
5849 else
5850 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
5851 fi
5852
5853else
5854
5855 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
5856 if test "x$LINE" != x ; then
5857 eval "DEFAULT_$LINE"
5858 else
5859 no_cache=1
5860 fi
5861
5862 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
5863
5864fi;
5865
5866 eval "$ac_cv_use_stopwatch"
5867 if test "$no_cache" != 1; then
5868 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
5869 fi
5870
5871 if test "$wxUSE_STOPWATCH" = yes; then
5872 echo "$as_me:$LINENO: result: yes" >&5
5873echo "${ECHO_T}yes" >&6
5874 else
5875 echo "$as_me:$LINENO: result: no" >&5
5876echo "${ECHO_T}no" >&6
5877 fi
5878
5879
07158944
VZ
5880 enablestring=
5881 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
5882echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
5883 no_cache=0
5884 # Check whether --enable-streams or --disable-streams was given.
5885if test "${enable_streams+set}" = set; then
5886 enableval="$enable_streams"
5887
5888 if test "$enableval" = yes; then
5889 ac_cv_use_streams='wxUSE_STREAMS=yes'
5890 else
5891 ac_cv_use_streams='wxUSE_STREAMS=no'
5892 fi
5893
5894else
5895
5896 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
5897 if test "x$LINE" != x ; then
5898 eval "DEFAULT_$LINE"
5899 else
5900 no_cache=1
5901 fi
5902
5903 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
5904
5905fi;
5906
5907 eval "$ac_cv_use_streams"
5908 if test "$no_cache" != 1; then
5909 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
5910 fi
5911
5912 if test "$wxUSE_STREAMS" = yes; then
5913 echo "$as_me:$LINENO: result: yes" >&5
5914echo "${ECHO_T}yes" >&6
5915 else
5916 echo "$as_me:$LINENO: result: no" >&5
5917echo "${ECHO_T}no" >&6
5918 fi
5919
5920
a848cd7e
SC
5921 enablestring=
5922 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
5923echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
5924 no_cache=0
5925 # Check whether --enable-system_options or --disable-system_options was given.
5926if test "${enable_system_options+set}" = set; then
5927 enableval="$enable_system_options"
5928
5929 if test "$enableval" = yes; then
5930 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
5931 else
5932 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
5933 fi
5934
5935else
5936
5937 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
5938 if test "x$LINE" != x ; then
5939 eval "DEFAULT_$LINE"
5940 else
5941 no_cache=1
5942 fi
5943
5944 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
5945
5946fi;
5947
5948 eval "$ac_cv_use_system_options"
5949 if test "$no_cache" != 1; then
5950 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
5951 fi
5952
5953 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
5954 echo "$as_me:$LINENO: result: yes" >&5
5955echo "${ECHO_T}yes" >&6
5956 else
5957 echo "$as_me:$LINENO: result: no" >&5
5958echo "${ECHO_T}no" >&6
5959 fi
5960
5961
5962 enablestring=
5963 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
5964echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
5965 no_cache=0
5966 # Check whether --enable-textbuf or --disable-textbuf was given.
5967if test "${enable_textbuf+set}" = set; then
5968 enableval="$enable_textbuf"
5969
5970 if test "$enableval" = yes; then
5971 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
5972 else
5973 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
5974 fi
5975
5976else
5977
5978 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
5979 if test "x$LINE" != x ; then
5980 eval "DEFAULT_$LINE"
5981 else
5982 no_cache=1
5983 fi
5984
5985 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
5986
5987fi;
5988
5989 eval "$ac_cv_use_textbuf"
5990 if test "$no_cache" != 1; then
5991 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
5992 fi
5993
5994 if test "$wxUSE_TEXTBUFFER" = yes; then
5995 echo "$as_me:$LINENO: result: yes" >&5
5996echo "${ECHO_T}yes" >&6
5997 else
5998 echo "$as_me:$LINENO: result: no" >&5
5999echo "${ECHO_T}no" >&6
6000 fi
6001
6002
6003 enablestring=
6004 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
6005echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
6006 no_cache=0
6007 # Check whether --enable-textfile or --disable-textfile was given.
6008if test "${enable_textfile+set}" = set; then
6009 enableval="$enable_textfile"
6010
6011 if test "$enableval" = yes; then
6012 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
6013 else
6014 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
6015 fi
6016
6017else
6018
6019 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
6020 if test "x$LINE" != x ; then
6021 eval "DEFAULT_$LINE"
6022 else
6023 no_cache=1
6024 fi
6025
6026 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
6027
6028fi;
6029
6030 eval "$ac_cv_use_textfile"
6031 if test "$no_cache" != 1; then
6032 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
6033 fi
6034
6035 if test "$wxUSE_TEXTFILE" = yes; then
6036 echo "$as_me:$LINENO: result: yes" >&5
6037echo "${ECHO_T}yes" >&6
6038 else
6039 echo "$as_me:$LINENO: result: no" >&5
6040echo "${ECHO_T}no" >&6
6041 fi
6042
6043
6044 enablestring=
6045 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
6046echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
6047 no_cache=0
6048 # Check whether --enable-timer or --disable-timer was given.
6049if test "${enable_timer+set}" = set; then
6050 enableval="$enable_timer"
6051
6052 if test "$enableval" = yes; then
6053 ac_cv_use_timer='wxUSE_TIMER=yes'
6054 else
6055 ac_cv_use_timer='wxUSE_TIMER=no'
6056 fi
6057
6058else
6059
6060 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
6061 if test "x$LINE" != x ; then
6062 eval "DEFAULT_$LINE"
6063 else
6064 no_cache=1
6065 fi
6066
6067 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
6068
6069fi;
6070
6071 eval "$ac_cv_use_timer"
6072 if test "$no_cache" != 1; then
6073 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
6074 fi
6075
6076 if test "$wxUSE_TIMER" = yes; then
6077 echo "$as_me:$LINENO: result: yes" >&5
6078echo "${ECHO_T}yes" >&6
6079 else
6080 echo "$as_me:$LINENO: result: no" >&5
6081echo "${ECHO_T}no" >&6
6082 fi
6083
6084
6085 enablestring=
6086 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
6087echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
6088 no_cache=0
6089 # Check whether --enable-unicode or --disable-unicode was given.
6090if test "${enable_unicode+set}" = set; then
6091 enableval="$enable_unicode"
6092
6093 if test "$enableval" = yes; then
6094 ac_cv_use_unicode='wxUSE_UNICODE=yes'
6095 else
6096 ac_cv_use_unicode='wxUSE_UNICODE=no'
6097 fi
6098
6099else
6100
6101 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
6102 if test "x$LINE" != x ; then
6103 eval "DEFAULT_$LINE"
6104 else
6105 no_cache=1
6106 fi
6107
6108 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
6109
6110fi;
6111
6112 eval "$ac_cv_use_unicode"
6113 if test "$no_cache" != 1; then
6114 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
6115 fi
6116
6117 if test "$wxUSE_UNICODE" = yes; then
6118 echo "$as_me:$LINENO: result: yes" >&5
6119echo "${ECHO_T}yes" >&6
6120 else
6121 echo "$as_me:$LINENO: result: no" >&5
6122echo "${ECHO_T}no" >&6
6123 fi
6124
6125
6126 enablestring=
6127 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
6128echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6
6129 no_cache=0
6130 # Check whether --enable-sound or --disable-sound was given.
6131if test "${enable_sound+set}" = set; then
6132 enableval="$enable_sound"
6133
6134 if test "$enableval" = yes; then
6135 ac_cv_use_sound='wxUSE_SOUND=yes'
6136 else
6137 ac_cv_use_sound='wxUSE_SOUND=no'
6138 fi
6139
6140else
6141
6142 LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}`
6143 if test "x$LINE" != x ; then
6144 eval "DEFAULT_$LINE"
6145 else
6146 no_cache=1
6147 fi
6148
6149 ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND
6150
6151fi;
6152
6153 eval "$ac_cv_use_sound"
6154 if test "$no_cache" != 1; then
6155 echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp
6156 fi
6157
6158 if test "$wxUSE_SOUND" = yes; then
6159 echo "$as_me:$LINENO: result: yes" >&5
6160echo "${ECHO_T}yes" >&6
6161 else
6162 echo "$as_me:$LINENO: result: no" >&5
6163echo "${ECHO_T}no" >&6
6164 fi
6165
6166
3b57de8b
RL
6167 enablestring=
6168 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5
6169echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6
6170 no_cache=0
6171 # Check whether --enable-mediactrl or --disable-mediactrl was given.
6172if test "${enable_mediactrl+set}" = set; then
6173 enableval="$enable_mediactrl"
6174
6175 if test "$enableval" = yes; then
6176 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=yes'
6177 else
6178 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=no'
6179 fi
6180
6181else
6182
6183 LINE=`grep "wxUSE_MEDIACTRL" ${wx_arg_cache_file}`
6184 if test "x$LINE" != x ; then
6185 eval "DEFAULT_$LINE"
6186 else
6187 no_cache=1
6188 fi
6189
6190 ac_cv_use_mediactrl='wxUSE_MEDIACTRL='$DEFAULT_wxUSE_MEDIACTRL
6191
6192fi;
6193
6194 eval "$ac_cv_use_mediactrl"
6195 if test "$no_cache" != 1; then
6196 echo $ac_cv_use_mediactrl >> ${wx_arg_cache_file}.tmp
6197 fi
6198
6199 if test "$wxUSE_MEDIACTRL" = yes; then
6200 echo "$as_me:$LINENO: result: yes" >&5
6201echo "${ECHO_T}yes" >&6
6202 else
6203 echo "$as_me:$LINENO: result: no" >&5
6204echo "${ECHO_T}no" >&6
6205 fi
6206
6207
f10e38c4
VZ
6208 enablestring=
6209 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gstreamer8" >&5
6210echo $ECHO_N "checking for --${enablestring:-enable}-gstreamer8... $ECHO_C" >&6
6211 no_cache=0
6212 # Check whether --enable-gstreamer8 or --disable-gstreamer8 was given.
6213if test "${enable_gstreamer8+set}" = set; then
6214 enableval="$enable_gstreamer8"
6215
6216 if test "$enableval" = yes; then
6217 ac_cv_use_gstreamer8='wxUSE_GSTREAMER8=yes'
6218 else
6219 ac_cv_use_gstreamer8='wxUSE_GSTREAMER8=no'
6220 fi
6221
6222else
6223
6224 LINE=`grep "wxUSE_GSTREAMER8" ${wx_arg_cache_file}`
6225 if test "x$LINE" != x ; then
6226 eval "DEFAULT_$LINE"
6227 else
6228 no_cache=1
6229 fi
6230
6231 ac_cv_use_gstreamer8='wxUSE_GSTREAMER8='$DEFAULT_wxUSE_GSTREAMER8
6232
6233fi;
6234
6235 eval "$ac_cv_use_gstreamer8"
6236 if test "$no_cache" != 1; then
6237 echo $ac_cv_use_gstreamer8 >> ${wx_arg_cache_file}.tmp
6238 fi
6239
6240 if test "$wxUSE_GSTREAMER8" = yes; then
6241 echo "$as_me:$LINENO: result: yes" >&5
6242echo "${ECHO_T}yes" >&6
6243 else
6244 echo "$as_me:$LINENO: result: no" >&5
6245echo "${ECHO_T}no" >&6
6246 fi
6247
6248
a848cd7e
SC
6249 enablestring=
6250 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5
6251echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6
6252 no_cache=0
6253 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
6254if test "${enable_wxprintfv+set}" = set; then
6255 enableval="$enable_wxprintfv"
6256
6257 if test "$enableval" = yes; then
6258 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
6259 else
6260 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
6261 fi
6262
6263else
6264
6265 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
6266 if test "x$LINE" != x ; then
6267 eval "DEFAULT_$LINE"
6268 else
6269 no_cache=1
6270 fi
6271
6272 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
6273
6274fi;
6275
6276 eval "$ac_cv_use_wxprintfv"
6277 if test "$no_cache" != 1; then
6278 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
6279 fi
6280
6281 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
6282 echo "$as_me:$LINENO: result: yes" >&5
6283echo "${ECHO_T}yes" >&6
6284 else
6285 echo "$as_me:$LINENO: result: no" >&5
6286echo "${ECHO_T}no" >&6
6287 fi
6288
6289
6290 enablestring=
6291 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
6292echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
6293 no_cache=0
6294 # Check whether --enable-zipstream or --disable-zipstream was given.
6295if test "${enable_zipstream+set}" = set; then
6296 enableval="$enable_zipstream"
6297
6298 if test "$enableval" = yes; then
6299 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
6300 else
6301 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
6302 fi
6303
6304else
6305
6306 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
6307 if test "x$LINE" != x ; then
6308 eval "DEFAULT_$LINE"
6309 else
6310 no_cache=1
6311 fi
6312
6313 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
6314
6315fi;
6316
6317 eval "$ac_cv_use_zipstream"
6318 if test "$no_cache" != 1; then
6319 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
6320 fi
6321
6322 if test "$wxUSE_ZIPSTREAM" = yes; then
6323 echo "$as_me:$LINENO: result: yes" >&5
6324echo "${ECHO_T}yes" >&6
6325 else
6326 echo "$as_me:$LINENO: result: no" >&5
6327echo "${ECHO_T}no" >&6
6328 fi
6329
6330
a848cd7e
SC
6331
6332 enablestring=
6333 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
6334echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
6335 no_cache=0
6336 # Check whether --enable-url or --disable-url was given.
6337if test "${enable_url+set}" = set; then
6338 enableval="$enable_url"
6339
6340 if test "$enableval" = yes; then
6341 ac_cv_use_url='wxUSE_URL=yes'
6342 else
6343 ac_cv_use_url='wxUSE_URL=no'
6344 fi
6345
6346else
6347
6348 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
6349 if test "x$LINE" != x ; then
6350 eval "DEFAULT_$LINE"
6351 else
6352 no_cache=1
6353 fi
6354
6355 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
6356
6357fi;
6358
6359 eval "$ac_cv_use_url"
6360 if test "$no_cache" != 1; then
6361 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
6362 fi
6363
6364 if test "$wxUSE_URL" = yes; then
6365 echo "$as_me:$LINENO: result: yes" >&5
6366echo "${ECHO_T}yes" >&6
6367 else
6368 echo "$as_me:$LINENO: result: no" >&5
6369echo "${ECHO_T}no" >&6
6370 fi
6371
6372
6373 enablestring=
6374 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
6375echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
6376 no_cache=0
6377 # Check whether --enable-protocol or --disable-protocol was given.
6378if test "${enable_protocol+set}" = set; then
6379 enableval="$enable_protocol"
6380
6381 if test "$enableval" = yes; then
6382 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
6383 else
6384 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
6385 fi
6386
6387else
6388
6389 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
6390 if test "x$LINE" != x ; then
6391 eval "DEFAULT_$LINE"
6392 else
6393 no_cache=1
6394 fi
6395
6396 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
6397
6398fi;
6399
6400 eval "$ac_cv_use_protocol"
6401 if test "$no_cache" != 1; then
6402 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
6403 fi
6404
6405 if test "$wxUSE_PROTOCOL" = yes; then
6406 echo "$as_me:$LINENO: result: yes" >&5
6407echo "${ECHO_T}yes" >&6
6408 else
6409 echo "$as_me:$LINENO: result: no" >&5
6410echo "${ECHO_T}no" >&6
6411 fi
6412
6413
6414 enablestring=
6415 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
6416echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
6417 no_cache=0
6418 # Check whether --enable-protocol_http or --disable-protocol_http was given.
6419if test "${enable_protocol_http+set}" = set; then
6420 enableval="$enable_protocol_http"
6421
6422 if test "$enableval" = yes; then
6423 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
6424 else
6425 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
6426 fi
6427
6428else
6429
6430 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
6431 if test "x$LINE" != x ; then
6432 eval "DEFAULT_$LINE"
6433 else
6434 no_cache=1
6435 fi
6436
6437 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
6438
6439fi;
6440
6441 eval "$ac_cv_use_protocol_http"
6442 if test "$no_cache" != 1; then
6443 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
6444 fi
6445
6446 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
6447 echo "$as_me:$LINENO: result: yes" >&5
6448echo "${ECHO_T}yes" >&6
6449 else
6450 echo "$as_me:$LINENO: result: no" >&5
6451echo "${ECHO_T}no" >&6
6452 fi
6453
6454
6455 enablestring=
6456 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
6457echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
6458 no_cache=0
6459 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
6460if test "${enable_protocol_ftp+set}" = set; then
6461 enableval="$enable_protocol_ftp"
6462
6463 if test "$enableval" = yes; then
6464 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
6465 else
6466 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
6467 fi
6468
6469else
6470
6471 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
6472 if test "x$LINE" != x ; then
6473 eval "DEFAULT_$LINE"
6474 else
6475 no_cache=1
6476 fi
6477
6478 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
6479
6480fi;
6481
6482 eval "$ac_cv_use_protocol_ftp"
6483 if test "$no_cache" != 1; then
6484 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
6485 fi
6486
6487 if test "$wxUSE_PROTOCOL_FTP" = yes; then
6488 echo "$as_me:$LINENO: result: yes" >&5
6489echo "${ECHO_T}yes" >&6
6490 else
6491 echo "$as_me:$LINENO: result: no" >&5
6492echo "${ECHO_T}no" >&6
6493 fi
6494
6495
6496 enablestring=
6497 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
6498echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
6499 no_cache=0
6500 # Check whether --enable-protocol_file or --disable-protocol_file was given.
6501if test "${enable_protocol_file+set}" = set; then
6502 enableval="$enable_protocol_file"
6503
6504 if test "$enableval" = yes; then
6505 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
6506 else
6507 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
6508 fi
6509
6510else
6511
6512 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
6513 if test "x$LINE" != x ; then
6514 eval "DEFAULT_$LINE"
6515 else
6516 no_cache=1
6517 fi
6518
6519 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
6520
6521fi;
6522
6523 eval "$ac_cv_use_protocol_file"
6524 if test "$no_cache" != 1; then
6525 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
6526 fi
6527
6528 if test "$wxUSE_PROTOCOL_FILE" = yes; then
6529 echo "$as_me:$LINENO: result: yes" >&5
6530echo "${ECHO_T}yes" >&6
6531 else
6532 echo "$as_me:$LINENO: result: no" >&5
6533echo "${ECHO_T}no" >&6
6534 fi
6535
6536
6537
6538
6539
6540 enablestring=
6541 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
6542echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
6543 no_cache=0
6544 # Check whether --enable-threads or --disable-threads was given.
6545if test "${enable_threads+set}" = set; then
6546 enableval="$enable_threads"
6547
6548 if test "$enableval" = yes; then
6549 ac_cv_use_threads='wxUSE_THREADS=yes'
6550 else
6551 ac_cv_use_threads='wxUSE_THREADS=no'
6552 fi
6553
6554else
6555
6556 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
6557 if test "x$LINE" != x ; then
6558 eval "DEFAULT_$LINE"
6559 else
6560 no_cache=1
6561 fi
6562
6563 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
6564
6565fi;
6566
6567 eval "$ac_cv_use_threads"
6568 if test "$no_cache" != 1; then
6569 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
6570 fi
6571
6572 if test "$wxUSE_THREADS" = yes; then
6573 echo "$as_me:$LINENO: result: yes" >&5
6574echo "${ECHO_T}yes" >&6
6575 else
6576 echo "$as_me:$LINENO: result: no" >&5
6577echo "${ECHO_T}no" >&6
6578 fi
6579
6580
6581if test "$wxUSE_GUI" = "yes"; then
6582
6583
6584
6585 enablestring=
6586 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
6587echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
6588 no_cache=0
6589 # Check whether --enable-docview or --disable-docview was given.
6590if test "${enable_docview+set}" = set; then
6591 enableval="$enable_docview"
6592
6593 if test "$enableval" = yes; then
6594 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
6595 else
6596 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
6597 fi
6598
6599else
6600
6601 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
6602 if test "x$LINE" != x ; then
6603 eval "DEFAULT_$LINE"
6604 else
6605 no_cache=1
6606 fi
6607
6608 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
6609
6610fi;
6611
6612 eval "$ac_cv_use_docview"
6613 if test "$no_cache" != 1; then
6614 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
6615 fi
6616
6617 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
6618 echo "$as_me:$LINENO: result: yes" >&5
6619echo "${ECHO_T}yes" >&6
6620 else
6621 echo "$as_me:$LINENO: result: no" >&5
6622echo "${ECHO_T}no" >&6
6623 fi
6624
6625
6626 enablestring=
6627 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
6628echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
6629 no_cache=0
6630 # Check whether --enable-help or --disable-help was given.
6631if test "${enable_help+set}" = set; then
6632 enableval="$enable_help"
6633
6634 if test "$enableval" = yes; then
6635 ac_cv_use_help='wxUSE_HELP=yes'
6636 else
6637 ac_cv_use_help='wxUSE_HELP=no'
6638 fi
6639
6640else
6641
6642 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
6643 if test "x$LINE" != x ; then
6644 eval "DEFAULT_$LINE"
6645 else
6646 no_cache=1
6647 fi
6648
6649 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
6650
6651fi;
6652
6653 eval "$ac_cv_use_help"
6654 if test "$no_cache" != 1; then
6655 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
6656 fi
6657
6658 if test "$wxUSE_HELP" = yes; then
6659 echo "$as_me:$LINENO: result: yes" >&5
6660echo "${ECHO_T}yes" >&6
6661 else
6662 echo "$as_me:$LINENO: result: no" >&5
6663echo "${ECHO_T}no" >&6
6664 fi
6665
6666
6667 enablestring=
6668 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
6669echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
6670 no_cache=0
6671 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
6672if test "${enable_mshtmlhelp+set}" = set; then
6673 enableval="$enable_mshtmlhelp"
6674
6675 if test "$enableval" = yes; then
6676 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
6677 else
6678 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
6679 fi
6680
6681else
6682
6683 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
6684 if test "x$LINE" != x ; then
6685 eval "DEFAULT_$LINE"
6686 else
6687 no_cache=1
6688 fi
6689
6690 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
6691
6692fi;
6693
6694 eval "$ac_cv_use_mshtmlhelp"
6695 if test "$no_cache" != 1; then
6696 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
6697 fi
6698
6699 if test "$wxUSE_MS_HTML_HELP" = yes; then
6700 echo "$as_me:$LINENO: result: yes" >&5
6701echo "${ECHO_T}yes" >&6
6702 else
6703 echo "$as_me:$LINENO: result: no" >&5
6704echo "${ECHO_T}no" >&6
6705 fi
6706
6707
6708 enablestring=
6709 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
6710echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
6711 no_cache=0
6712 # Check whether --enable-html or --disable-html was given.
6713if test "${enable_html+set}" = set; then
6714 enableval="$enable_html"
6715
6716 if test "$enableval" = yes; then
6717 ac_cv_use_html='wxUSE_HTML=yes'
6718 else
6719 ac_cv_use_html='wxUSE_HTML=no'
6720 fi
6721
6722else
6723
6724 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
6725 if test "x$LINE" != x ; then
6726 eval "DEFAULT_$LINE"
6727 else
6728 no_cache=1
6729 fi
6730
6731 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
6732
6733fi;
6734
6735 eval "$ac_cv_use_html"
6736 if test "$no_cache" != 1; then
6737 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
6738 fi
6739
6740 if test "$wxUSE_HTML" = yes; then
6741 echo "$as_me:$LINENO: result: yes" >&5
6742echo "${ECHO_T}yes" >&6
6743 else
6744 echo "$as_me:$LINENO: result: no" >&5
6745echo "${ECHO_T}no" >&6
6746 fi
6747
6748
6749 enablestring=
6750 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
6751echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
6752 no_cache=0
6753 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
6754if test "${enable_htmlhelp+set}" = set; then
6755 enableval="$enable_htmlhelp"
6756
6757 if test "$enableval" = yes; then
6758 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
6759 else
6760 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
6761 fi
6762
6763else
6764
6765 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
6766 if test "x$LINE" != x ; then
6767 eval "DEFAULT_$LINE"
6768 else
6769 no_cache=1
6770 fi
6771
6772 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
6773
6774fi;
6775
6776 eval "$ac_cv_use_htmlhelp"
6777 if test "$no_cache" != 1; then
6778 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
6779 fi
6780
6781 if test "$wxUSE_WXHTML_HELP" = yes; then
6782 echo "$as_me:$LINENO: result: yes" >&5
6783echo "${ECHO_T}yes" >&6
6784 else
6785 echo "$as_me:$LINENO: result: no" >&5
6786echo "${ECHO_T}no" >&6
6787 fi
6788
6789
9a8f0513
VS
6790 enablestring=
6791 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5
6792echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6
6793 no_cache=0
6794 # Check whether --enable-xrc or --disable-xrc was given.
6795if test "${enable_xrc+set}" = set; then
6796 enableval="$enable_xrc"
6797
6798 if test "$enableval" = yes; then
6799 ac_cv_use_xrc='wxUSE_XRC=yes'
6800 else
6801 ac_cv_use_xrc='wxUSE_XRC=no'
6802 fi
6803
6804else
6805
6806 LINE=`grep "wxUSE_XRC" ${wx_arg_cache_file}`
6807 if test "x$LINE" != x ; then
6808 eval "DEFAULT_$LINE"
6809 else
6810 no_cache=1
6811 fi
6812
6813 ac_cv_use_xrc='wxUSE_XRC='$DEFAULT_wxUSE_XRC
6814
6815fi;
6816
6817 eval "$ac_cv_use_xrc"
6818 if test "$no_cache" != 1; then
6819 echo $ac_cv_use_xrc >> ${wx_arg_cache_file}.tmp
6820 fi
6821
6822 if test "$wxUSE_XRC" = yes; then
6823 echo "$as_me:$LINENO: result: yes" >&5
6824echo "${ECHO_T}yes" >&6
6825 else
6826 echo "$as_me:$LINENO: result: no" >&5
6827echo "${ECHO_T}no" >&6
6828 fi
6829
6830
a848cd7e
SC
6831 enablestring=
6832 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
6833echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
6834 no_cache=0
6835 # Check whether --enable-constraints or --disable-constraints was given.
6836if test "${enable_constraints+set}" = set; then
6837 enableval="$enable_constraints"
6838
6839 if test "$enableval" = yes; then
6840 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
6841 else
6842 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
6843 fi
6844
6845else
6846
6847 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
6848 if test "x$LINE" != x ; then
6849 eval "DEFAULT_$LINE"
6850 else
6851 no_cache=1
6852 fi
6853
6854 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
6855
6856fi;
6857
6858 eval "$ac_cv_use_constraints"
6859 if test "$no_cache" != 1; then
6860 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
6861 fi
6862
6863 if test "$wxUSE_CONSTRAINTS" = yes; then
6864 echo "$as_me:$LINENO: result: yes" >&5
6865echo "${ECHO_T}yes" >&6
6866 else
6867 echo "$as_me:$LINENO: result: no" >&5
6868echo "${ECHO_T}no" >&6
6869 fi
6870
6871
6872 enablestring=
6873 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
6874echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
6875 no_cache=0
6876 # Check whether --enable-printarch or --disable-printarch was given.
6877if test "${enable_printarch+set}" = set; then
6878 enableval="$enable_printarch"
6879
6880 if test "$enableval" = yes; then
6881 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
6882 else
6883 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
6884 fi
6885
6886else
6887
6888 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
6889 if test "x$LINE" != x ; then
6890 eval "DEFAULT_$LINE"
6891 else
6892 no_cache=1
6893 fi
6894
6895 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
6896
6897fi;
6898
6899 eval "$ac_cv_use_printarch"
6900 if test "$no_cache" != 1; then
6901 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
6902 fi
6903
6904 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
6905 echo "$as_me:$LINENO: result: yes" >&5
6906echo "${ECHO_T}yes" >&6
6907 else
6908 echo "$as_me:$LINENO: result: no" >&5
6909echo "${ECHO_T}no" >&6
6910 fi
6911
6912
6913 enablestring=
6914 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
6915echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
6916 no_cache=0
6917 # Check whether --enable-mdi or --disable-mdi was given.
6918if test "${enable_mdi+set}" = set; then
6919 enableval="$enable_mdi"
6920
6921 if test "$enableval" = yes; then
8a7b1113 6922 ac_cv_use_mdi='wxUSE_MDI=yes'
a848cd7e 6923 else
8a7b1113 6924 ac_cv_use_mdi='wxUSE_MDI=no'
a848cd7e
SC
6925 fi
6926
6927else
6928
8a7b1113 6929 LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}`
a848cd7e
SC
6930 if test "x$LINE" != x ; then
6931 eval "DEFAULT_$LINE"
6932 else
6933 no_cache=1
6934 fi
6935
8a7b1113 6936 ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI
a848cd7e
SC
6937
6938fi;
6939
6940 eval "$ac_cv_use_mdi"
6941 if test "$no_cache" != 1; then
6942 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
6943 fi
6944
8a7b1113
VZ
6945 if test "$wxUSE_MDI" = yes; then
6946 echo "$as_me:$LINENO: result: yes" >&5
6947echo "${ECHO_T}yes" >&6
6948 else
6949 echo "$as_me:$LINENO: result: no" >&5
6950echo "${ECHO_T}no" >&6
6951 fi
6952
6953
6954 enablestring=
6955 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
6956echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6
6957 no_cache=0
6958 # Check whether --enable-mdidoc or --disable-mdidoc was given.
6959if test "${enable_mdidoc+set}" = set; then
6960 enableval="$enable_mdidoc"
6961
6962 if test "$enableval" = yes; then
6963 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
6964 else
6965 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
6966 fi
6967
6968else
6969
6970 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
6971 if test "x$LINE" != x ; then
6972 eval "DEFAULT_$LINE"
6973 else
6974 no_cache=1
6975 fi
6976
6977 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
6978
6979fi;
6980
6981 eval "$ac_cv_use_mdidoc"
6982 if test "$no_cache" != 1; then
6983 echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp
6984 fi
6985
a848cd7e
SC
6986 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
6987 echo "$as_me:$LINENO: result: yes" >&5
6988echo "${ECHO_T}yes" >&6
6989 else
6990 echo "$as_me:$LINENO: result: no" >&5
6991echo "${ECHO_T}no" >&6
6992 fi
6993
6994
6995 enablestring=
6996 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
6997echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
6998 no_cache=0
6999 # Check whether --enable-loggui or --disable-loggui was given.
7000if test "${enable_loggui+set}" = set; then
7001 enableval="$enable_loggui"
7002
7003 if test "$enableval" = yes; then
7004 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
7005 else
7006 ac_cv_use_loggui='wxUSE_LOGGUI=no'
7007 fi
7008
7009else
7010
7011 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
7012 if test "x$LINE" != x ; then
7013 eval "DEFAULT_$LINE"
7014 else
7015 no_cache=1
7016 fi
7017
7018 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
7019
7020fi;
7021
7022 eval "$ac_cv_use_loggui"
7023 if test "$no_cache" != 1; then
7024 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
7025 fi
7026
7027 if test "$wxUSE_LOGGUI" = yes; then
7028 echo "$as_me:$LINENO: result: yes" >&5
7029echo "${ECHO_T}yes" >&6
7030 else
7031 echo "$as_me:$LINENO: result: no" >&5
7032echo "${ECHO_T}no" >&6
7033 fi
7034
7035
7036 enablestring=
7037 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
7038echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
7039 no_cache=0
7040 # Check whether --enable-logwin or --disable-logwin was given.
7041if test "${enable_logwin+set}" = set; then
7042 enableval="$enable_logwin"
7043
7044 if test "$enableval" = yes; then
7045 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
7046 else
7047 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
7048 fi
7049
7050else
7051
7052 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
7053 if test "x$LINE" != x ; then
7054 eval "DEFAULT_$LINE"
7055 else
7056 no_cache=1
7057 fi
7058
7059 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
7060
7061fi;
7062
7063 eval "$ac_cv_use_logwin"
7064 if test "$no_cache" != 1; then
7065 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
7066 fi
7067
7068 if test "$wxUSE_LOGWINDOW" = yes; then
7069 echo "$as_me:$LINENO: result: yes" >&5
7070echo "${ECHO_T}yes" >&6
7071 else
7072 echo "$as_me:$LINENO: result: no" >&5
7073echo "${ECHO_T}no" >&6
7074 fi
7075
7076
7077 enablestring=
7078 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
7079echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
7080 no_cache=0
7081 # Check whether --enable-logdialog or --disable-logdialog was given.
7082if test "${enable_logdialog+set}" = set; then
7083 enableval="$enable_logdialog"
7084
7085 if test "$enableval" = yes; then
7086 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
7087 else
7088 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
7089 fi
7090
7091else
7092
7093 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
7094 if test "x$LINE" != x ; then
7095 eval "DEFAULT_$LINE"
7096 else
7097 no_cache=1
7098 fi
7099
7100 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
7101
7102fi;
7103
7104 eval "$ac_cv_use_logdialog"
7105 if test "$no_cache" != 1; then
7106 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
7107 fi
7108
7109 if test "$wxUSE_LOGDIALOG" = yes; then
7110 echo "$as_me:$LINENO: result: yes" >&5
7111echo "${ECHO_T}yes" >&6
7112 else
7113 echo "$as_me:$LINENO: result: no" >&5
7114echo "${ECHO_T}no" >&6
7115 fi
7116
7117
646b6ec1
VS
7118 enablestring=
7119 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
7120echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6
7121 no_cache=0
7122 # Check whether --enable-webkit or --disable-webkit was given.
7123if test "${enable_webkit+set}" = set; then
7124 enableval="$enable_webkit"
7125
7126 if test "$enableval" = yes; then
7127 ac_cv_use_webkit='wxUSE_WEBKIT=yes'
7128 else
7129 ac_cv_use_webkit='wxUSE_WEBKIT=no'
7130 fi
7131
7132else
7133
7134 LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}`
7135 if test "x$LINE" != x ; then
7136 eval "DEFAULT_$LINE"
7137 else
7138 no_cache=1
7139 fi
7140
7141 ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT
7142
7143fi;
7144
7145 eval "$ac_cv_use_webkit"
7146 if test "$no_cache" != 1; then
7147 echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp
7148 fi
7149
7150 if test "$wxUSE_WEBKIT" = yes; then
7151 echo "$as_me:$LINENO: result: yes" >&5
7152echo "${ECHO_T}yes" >&6
7153 else
7154 echo "$as_me:$LINENO: result: no" >&5
7155echo "${ECHO_T}no" >&6
7156 fi
7157
7158
91dea314
MW
7159 enablestring=
7160 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
7161echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
7162 no_cache=0
7163 # Check whether --enable-html or --disable-html was given.
7164if test "${enable_html+set}" = set; then
7165 enableval="$enable_html"
7166
7167 if test "$enableval" = yes; then
7168 ac_cv_use_html='wxUSE_RICHTEXT=yes'
7169 else
7170 ac_cv_use_html='wxUSE_RICHTEXT=no'
7171 fi
7172
7173else
7174
7175 LINE=`grep "wxUSE_RICHTEXT" ${wx_arg_cache_file}`
7176 if test "x$LINE" != x ; then
7177 eval "DEFAULT_$LINE"
7178 else
7179 no_cache=1
7180 fi
7181
7182 ac_cv_use_html='wxUSE_RICHTEXT='$DEFAULT_wxUSE_RICHTEXT
7183
7184fi;
7185
7186 eval "$ac_cv_use_html"
7187 if test "$no_cache" != 1; then
7188 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
7189 fi
7190
7191 if test "$wxUSE_RICHTEXT" = yes; then
7192 echo "$as_me:$LINENO: result: yes" >&5
7193echo "${ECHO_T}yes" >&6
7194 else
7195 echo "$as_me:$LINENO: result: no" >&5
7196echo "${ECHO_T}no" >&6
7197 fi
7198
7199
a848cd7e
SC
7200
7201 enablestring=
7202 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
7203echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
7204 no_cache=0
7205 # Check whether --enable-postscript or --disable-postscript was given.
7206if test "${enable_postscript+set}" = set; then
7207 enableval="$enable_postscript"
7208
7209 if test "$enableval" = yes; then
7210 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
7211 else
7212 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
7213 fi
7214
7215else
7216
7217 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
7218 if test "x$LINE" != x ; then
7219 eval "DEFAULT_$LINE"
7220 else
7221 no_cache=1
7222 fi
7223
7224 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
7225
7226fi;
7227
7228 eval "$ac_cv_use_postscript"
7229 if test "$no_cache" != 1; then
7230 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
7231 fi
7232
7233 if test "$wxUSE_POSTSCRIPT" = yes; then
7234 echo "$as_me:$LINENO: result: yes" >&5
7235echo "${ECHO_T}yes" >&6
7236 else
7237 echo "$as_me:$LINENO: result: no" >&5
7238echo "${ECHO_T}no" >&6
7239 fi
7240
7241
7242
7243
7244
7245 enablestring=
7246 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
7247echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
7248 no_cache=0
7249 # Check whether --enable-prologio or --disable-prologio was given.
7250if test "${enable_prologio+set}" = set; then
7251 enableval="$enable_prologio"
7252
7253 if test "$enableval" = yes; then
7254 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
7255 else
7256 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
7257 fi
7258
7259else
7260
7261 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
7262 if test "x$LINE" != x ; then
7263 eval "DEFAULT_$LINE"
7264 else
7265 no_cache=1
7266 fi
7267
7268 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
7269
7270fi;
7271
7272 eval "$ac_cv_use_prologio"
7273 if test "$no_cache" != 1; then
7274 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
7275 fi
7276
7277 if test "$wxUSE_PROLOGIO" = yes; then
7278 echo "$as_me:$LINENO: result: yes" >&5
7279echo "${ECHO_T}yes" >&6
7280 else
7281 echo "$as_me:$LINENO: result: no" >&5
7282echo "${ECHO_T}no" >&6
7283 fi
7284
7285
7286 enablestring=
7287 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
7288echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
7289 no_cache=0
7290 # Check whether --enable-resources or --disable-resources was given.
7291if test "${enable_resources+set}" = set; then
7292 enableval="$enable_resources"
7293
7294 if test "$enableval" = yes; then
7295 ac_cv_use_resources='wxUSE_RESOURCES=yes'
7296 else
7297 ac_cv_use_resources='wxUSE_RESOURCES=no'
7298 fi
7299
7300else
7301
7302 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
7303 if test "x$LINE" != x ; then
7304 eval "DEFAULT_$LINE"
7305 else
7306 no_cache=1
7307 fi
7308
7309 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
7310
7311fi;
7312
7313 eval "$ac_cv_use_resources"
7314 if test "$no_cache" != 1; then
7315 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
7316 fi
7317
7318 if test "$wxUSE_RESOURCES" = yes; then
7319 echo "$as_me:$LINENO: result: yes" >&5
7320echo "${ECHO_T}yes" >&6
7321 else
7322 echo "$as_me:$LINENO: result: no" >&5
7323echo "${ECHO_T}no" >&6
7324 fi
7325
7326
7327
7328
7329 enablestring=
7330 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
7331echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
7332 no_cache=0
7333 # Check whether --enable-clipboard or --disable-clipboard was given.
7334if test "${enable_clipboard+set}" = set; then
7335 enableval="$enable_clipboard"
7336
7337 if test "$enableval" = yes; then
7338 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
7339 else
7340 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
7341 fi
7342
7343else
7344
7345 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
7346 if test "x$LINE" != x ; then
7347 eval "DEFAULT_$LINE"
7348 else
7349 no_cache=1
7350 fi
7351
7352 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
7353
7354fi;
7355
7356 eval "$ac_cv_use_clipboard"
7357 if test "$no_cache" != 1; then
7358 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
7359 fi
7360
7361 if test "$wxUSE_CLIPBOARD" = yes; then
7362 echo "$as_me:$LINENO: result: yes" >&5
7363echo "${ECHO_T}yes" >&6
7364 else
7365 echo "$as_me:$LINENO: result: no" >&5
7366echo "${ECHO_T}no" >&6
7367 fi
7368
7369
7370 enablestring=
7371 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
7372echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
7373 no_cache=0
7374 # Check whether --enable-dnd or --disable-dnd was given.
7375if test "${enable_dnd+set}" = set; then
7376 enableval="$enable_dnd"
7377
7378 if test "$enableval" = yes; then
7379 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
7380 else
7381 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
7382 fi
7383
7384else
7385
7386 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
7387 if test "x$LINE" != x ; then
7388 eval "DEFAULT_$LINE"
7389 else
7390 no_cache=1
7391 fi
7392
7393 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
7394
7395fi;
7396
7397 eval "$ac_cv_use_dnd"
7398 if test "$no_cache" != 1; then
7399 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
7400 fi
7401
7402 if test "$wxUSE_DRAG_AND_DROP" = yes; then
7403 echo "$as_me:$LINENO: result: yes" >&5
7404echo "${ECHO_T}yes" >&6
7405 else
7406 echo "$as_me:$LINENO: result: no" >&5
7407echo "${ECHO_T}no" >&6
7408 fi
7409
7410
7411 enablestring=
7412 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
7413echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
7414 no_cache=0
7415 # Check whether --enable-metafile or --disable-metafile was given.
7416if test "${enable_metafile+set}" = set; then
7417 enableval="$enable_metafile"
7418
7419 if test "$enableval" = yes; then
7420 ac_cv_use_metafile='wxUSE_METAFILE=yes'
7421 else
7422 ac_cv_use_metafile='wxUSE_METAFILE=no'
7423 fi
7424
7425else
7426
7427 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
7428 if test "x$LINE" != x ; then
7429 eval "DEFAULT_$LINE"
7430 else
7431 no_cache=1
7432 fi
7433
7434 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
7435
7436fi;
7437
7438 eval "$ac_cv_use_metafile"
7439 if test "$no_cache" != 1; then
7440 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
7441 fi
7442
7443 if test "$wxUSE_METAFILE" = yes; then
7444 echo "$as_me:$LINENO: result: yes" >&5
7445echo "${ECHO_T}yes" >&6
7446 else
7447 echo "$as_me:$LINENO: result: no" >&5
7448echo "${ECHO_T}no" >&6
7449 fi
7450
7451
7452
7453
7454
7455 enablestring=
7456 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
7457echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
7458 no_cache=0
7459 # Check whether --enable-controls or --disable-controls was given.
7460if test "${enable_controls+set}" = set; then
7461 enableval="$enable_controls"
7462
7463 if test "$enableval" = yes; then
7464 ac_cv_use_controls='wxUSE_CONTROLS=yes'
7465 else
7466 ac_cv_use_controls='wxUSE_CONTROLS=no'
7467 fi
7468
7469else
7470
7471 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
7472 if test "x$LINE" != x ; then
7473 eval "DEFAULT_$LINE"
7474 else
7475 no_cache=1
7476 fi
7477
7478 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
7479
7480fi;
7481
7482 eval "$ac_cv_use_controls"
7483 if test "$no_cache" != 1; then
7484 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
7485 fi
7486
7487 if test "$wxUSE_CONTROLS" = yes; then
7488 echo "$as_me:$LINENO: result: yes" >&5
7489echo "${ECHO_T}yes" >&6
7490 else
7491 echo "$as_me:$LINENO: result: no" >&5
7492echo "${ECHO_T}no" >&6
7493 fi
7494
7495
7496if test "$wxUSE_CONTROLS" = "yes"; then
7497 DEFAULT_wxUSE_ACCEL=yes
7498 DEFAULT_wxUSE_BMPBUTTON=yes
7499 DEFAULT_wxUSE_BUTTON=yes
da98e9be 7500 DEFAULT_wxUSE_CALCTRL=yes
a848cd7e
SC
7501 DEFAULT_wxUSE_CARET=yes
7502 DEFAULT_wxUSE_COMBOBOX=yes
7503 DEFAULT_wxUSE_CHECKBOX=yes
7504 DEFAULT_wxUSE_CHECKLISTBOX=yes
7505 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 7506 DEFAULT_wxUSE_CHOICEBOOK=yes
da98e9be 7507 DEFAULT_wxUSE_DATEPICKCTRL=yes
a848cd7e
SC
7508 DEFAULT_wxUSE_GAUGE=yes
7509 DEFAULT_wxUSE_GRID=yes
20e34ecc 7510 DEFAULT_wxUSE_DATAVIEWCTRL=no
a848cd7e
SC
7511 DEFAULT_wxUSE_IMAGLIST=yes
7512 DEFAULT_wxUSE_LISTBOOK=yes
7513 DEFAULT_wxUSE_LISTBOX=yes
7514 DEFAULT_wxUSE_LISTCTRL=yes
7515 DEFAULT_wxUSE_NOTEBOOK=yes
7516 DEFAULT_wxUSE_RADIOBOX=yes
7517 DEFAULT_wxUSE_RADIOBTN=yes
7518 DEFAULT_wxUSE_SASH=yes
7519 DEFAULT_wxUSE_SCROLLBAR=yes
7520 DEFAULT_wxUSE_SLIDER=yes
7521 DEFAULT_wxUSE_SPINBTN=yes
7522 DEFAULT_wxUSE_SPINCTRL=yes
7523 DEFAULT_wxUSE_SPLITTER=yes
7524 DEFAULT_wxUSE_STATBMP=yes
7525 DEFAULT_wxUSE_STATBOX=yes
7526 DEFAULT_wxUSE_STATLINE=yes
7527 DEFAULT_wxUSE_STATUSBAR=yes
7528 DEFAULT_wxUSE_TAB_DIALOG=yes
7529 DEFAULT_wxUSE_TOGGLEBTN=yes
7530 DEFAULT_wxUSE_TOOLBAR=yes
7531 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
7532 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
7533 DEFAULT_wxUSE_TOOLTIPS=yes
0093c2fc 7534 DEFAULT_wxUSE_TREEBOOK=yes
5ec3bc43 7535 DEFAULT_wxUSE_TOOLBOOK=yes
a848cd7e
SC
7536 DEFAULT_wxUSE_TREECTRL=yes
7537 DEFAULT_wxUSE_POPUPWIN=yes
7538 DEFAULT_wxUSE_TIPWINDOW=yes
7539elif test "$wxUSE_CONTROLS" = "no"; then
7540 DEFAULT_wxUSE_ACCEL=no
7541 DEFAULT_wxUSE_BMPBUTTON=no
7542 DEFAULT_wxUSE_BUTTON=no
7543 DEFAULT_wxUSE_CALCTRL=no
7544 DEFAULT_wxUSE_CARET=no
7545 DEFAULT_wxUSE_COMBOBOX=no
7546 DEFAULT_wxUSE_CHECKBOX=no
7547 DEFAULT_wxUSE_CHECKLISTBOX=no
7548 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 7549 DEFAULT_wxUSE_CHOICEBOOK=no
da98e9be 7550 DEFAULT_wxUSE_DATEPICKCTRL=no
a848cd7e
SC
7551 DEFAULT_wxUSE_GAUGE=no
7552 DEFAULT_wxUSE_GRID=no
20e34ecc 7553 DEFAULT_wxUSE_DATAVIEWCTRL=no
a848cd7e
SC
7554 DEFAULT_wxUSE_IMAGLIST=no
7555 DEFAULT_wxUSE_LISTBOOK=no
7556 DEFAULT_wxUSE_LISTBOX=no
7557 DEFAULT_wxUSE_LISTCTRL=no
7558 DEFAULT_wxUSE_NOTEBOOK=no
7559 DEFAULT_wxUSE_RADIOBOX=no
7560 DEFAULT_wxUSE_RADIOBTN=no
7561 DEFAULT_wxUSE_SASH=no
7562 DEFAULT_wxUSE_SCROLLBAR=no
7563 DEFAULT_wxUSE_SLIDER=no
7564 DEFAULT_wxUSE_SPINBTN=no
7565 DEFAULT_wxUSE_SPINCTRL=no
7566 DEFAULT_wxUSE_SPLITTER=no
7567 DEFAULT_wxUSE_STATBMP=no
7568 DEFAULT_wxUSE_STATBOX=no
7569 DEFAULT_wxUSE_STATLINE=no
7570 DEFAULT_wxUSE_STATUSBAR=no
7571 DEFAULT_wxUSE_TAB_DIALOG=no
7572 DEFAULT_wxUSE_TOGGLEBTN=no
7573 DEFAULT_wxUSE_TOOLBAR=no
7574 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
7575 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
7576 DEFAULT_wxUSE_TOOLTIPS=no
0093c2fc 7577 DEFAULT_wxUSE_TREEBOOK=no
5ec3bc43 7578 DEFAULT_wxUSE_TOOLBOOK=no
a848cd7e
SC
7579 DEFAULT_wxUSE_TREECTRL=no
7580 DEFAULT_wxUSE_POPUPWIN=no
7581 DEFAULT_wxUSE_TIPWINDOW=no
7582fi
7583
a848cd7e
SC
7584
7585 enablestring=
7586 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
7587echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
7588 no_cache=0
7589 # Check whether --enable-accel or --disable-accel was given.
7590if test "${enable_accel+set}" = set; then
7591 enableval="$enable_accel"
7592
7593 if test "$enableval" = yes; then
7594 ac_cv_use_accel='wxUSE_ACCEL=yes'
7595 else
7596 ac_cv_use_accel='wxUSE_ACCEL=no'
7597 fi
7598
7599else
7600
7601 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
7602 if test "x$LINE" != x ; then
7603 eval "DEFAULT_$LINE"
7604 else
7605 no_cache=1
7606 fi
7607
7608 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
7609
7610fi;
7611
7612 eval "$ac_cv_use_accel"
7613 if test "$no_cache" != 1; then
7614 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
7615 fi
7616
7617 if test "$wxUSE_ACCEL" = yes; then
7618 echo "$as_me:$LINENO: result: yes" >&5
7619echo "${ECHO_T}yes" >&6
7620 else
7621 echo "$as_me:$LINENO: result: no" >&5
7622echo "${ECHO_T}no" >&6
7623 fi
7624
7625
7626 enablestring=
7627 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
7628echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
7629 no_cache=0
7630 # Check whether --enable-button or --disable-button was given.
7631if test "${enable_button+set}" = set; then
7632 enableval="$enable_button"
7633
7634 if test "$enableval" = yes; then
7635 ac_cv_use_button='wxUSE_BUTTON=yes'
7636 else
7637 ac_cv_use_button='wxUSE_BUTTON=no'
7638 fi
7639
7640else
7641
7642 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
7643 if test "x$LINE" != x ; then
7644 eval "DEFAULT_$LINE"
7645 else
7646 no_cache=1
7647 fi
7648
7649 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
7650
7651fi;
7652
7653 eval "$ac_cv_use_button"
7654 if test "$no_cache" != 1; then
7655 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
7656 fi
7657
7658 if test "$wxUSE_BUTTON" = yes; then
7659 echo "$as_me:$LINENO: result: yes" >&5
7660echo "${ECHO_T}yes" >&6
7661 else
7662 echo "$as_me:$LINENO: result: no" >&5
7663echo "${ECHO_T}no" >&6
7664 fi
7665
7666
7667 enablestring=
7668 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
7669echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
7670 no_cache=0
7671 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
7672if test "${enable_bmpbutton+set}" = set; then
7673 enableval="$enable_bmpbutton"
7674
7675 if test "$enableval" = yes; then
7676 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
7677 else
7678 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
7679 fi
7680
7681else
7682
7683 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
7684 if test "x$LINE" != x ; then
7685 eval "DEFAULT_$LINE"
7686 else
7687 no_cache=1
7688 fi
7689
7690 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
7691
7692fi;
7693
7694 eval "$ac_cv_use_bmpbutton"
7695 if test "$no_cache" != 1; then
7696 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
7697 fi
7698
7699 if test "$wxUSE_BMPBUTTON" = yes; then
7700 echo "$as_me:$LINENO: result: yes" >&5
7701echo "${ECHO_T}yes" >&6
7702 else
7703 echo "$as_me:$LINENO: result: no" >&5
7704echo "${ECHO_T}no" >&6
7705 fi
7706
7707
7708 enablestring=
7709 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
7710echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
7711 no_cache=0
7712 # Check whether --enable-calendar or --disable-calendar was given.
7713if test "${enable_calendar+set}" = set; then
7714 enableval="$enable_calendar"
7715
7716 if test "$enableval" = yes; then
7717 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
7718 else
7719 ac_cv_use_calendar='wxUSE_CALCTRL=no'
7720 fi
7721
7722else
7723
7724 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
7725 if test "x$LINE" != x ; then
7726 eval "DEFAULT_$LINE"
7727 else
7728 no_cache=1
7729 fi
7730
7731 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
7732
7733fi;
7734
7735 eval "$ac_cv_use_calendar"
7736 if test "$no_cache" != 1; then
7737 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
7738 fi
7739
7740 if test "$wxUSE_CALCTRL" = yes; then
7741 echo "$as_me:$LINENO: result: yes" >&5
7742echo "${ECHO_T}yes" >&6
7743 else
7744 echo "$as_me:$LINENO: result: no" >&5
7745echo "${ECHO_T}no" >&6
7746 fi
7747
7748
7749 enablestring=
7750 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
7751echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
7752 no_cache=0
7753 # Check whether --enable-caret or --disable-caret was given.
7754if test "${enable_caret+set}" = set; then
7755 enableval="$enable_caret"
7756
7757 if test "$enableval" = yes; then
7758 ac_cv_use_caret='wxUSE_CARET=yes'
7759 else
7760 ac_cv_use_caret='wxUSE_CARET=no'
7761 fi
7762
7763else
7764
7765 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
7766 if test "x$LINE" != x ; then
7767 eval "DEFAULT_$LINE"
7768 else
7769 no_cache=1
7770 fi
7771
7772 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
7773
7774fi;
7775
7776 eval "$ac_cv_use_caret"
7777 if test "$no_cache" != 1; then
7778 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
7779 fi
7780
7781 if test "$wxUSE_CARET" = yes; then
7782 echo "$as_me:$LINENO: result: yes" >&5
7783echo "${ECHO_T}yes" >&6
7784 else
7785 echo "$as_me:$LINENO: result: no" >&5
7786echo "${ECHO_T}no" >&6
7787 fi
7788
7789
7790 enablestring=
7791 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
7792echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
7793 no_cache=0
7794 # Check whether --enable-checkbox or --disable-checkbox was given.
7795if test "${enable_checkbox+set}" = set; then
7796 enableval="$enable_checkbox"
7797
7798 if test "$enableval" = yes; then
7799 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
7800 else
7801 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
7802 fi
7803
7804else
7805
7806 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
7807 if test "x$LINE" != x ; then
7808 eval "DEFAULT_$LINE"
7809 else
7810 no_cache=1
7811 fi
7812
7813 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
7814
7815fi;
7816
7817 eval "$ac_cv_use_checkbox"
7818 if test "$no_cache" != 1; then
7819 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
7820 fi
7821
7822 if test "$wxUSE_CHECKBOX" = yes; then
7823 echo "$as_me:$LINENO: result: yes" >&5
7824echo "${ECHO_T}yes" >&6
7825 else
7826 echo "$as_me:$LINENO: result: no" >&5
7827echo "${ECHO_T}no" >&6
7828 fi
7829
7830
7831 enablestring=
7832 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
7833echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
7834 no_cache=0
7835 # Check whether --enable-checklst or --disable-checklst was given.
7836if test "${enable_checklst+set}" = set; then
7837 enableval="$enable_checklst"
7838
7839 if test "$enableval" = yes; then
7840 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
7841 else
7842 ac_cv_use_checklst='wxUSE_CHECKLST=no'
7843 fi
7844
7845else
7846
7847 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
7848 if test "x$LINE" != x ; then
7849 eval "DEFAULT_$LINE"
7850 else
7851 no_cache=1
7852 fi
7853
7854 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
7855
7856fi;
7857
7858 eval "$ac_cv_use_checklst"
7859 if test "$no_cache" != 1; then
7860 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
7861 fi
7862
7863 if test "$wxUSE_CHECKLST" = yes; then
7864 echo "$as_me:$LINENO: result: yes" >&5
7865echo "${ECHO_T}yes" >&6
7866 else
7867 echo "$as_me:$LINENO: result: no" >&5
7868echo "${ECHO_T}no" >&6
7869 fi
7870
7871
7872 enablestring=
7873 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
7874echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
7875 no_cache=0
7876 # Check whether --enable-choice or --disable-choice was given.
7877if test "${enable_choice+set}" = set; then
7878 enableval="$enable_choice"
7879
7880 if test "$enableval" = yes; then
7881 ac_cv_use_choice='wxUSE_CHOICE=yes'
7882 else
7883 ac_cv_use_choice='wxUSE_CHOICE=no'
7884 fi
7885
7886else
7887
7888 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
7889 if test "x$LINE" != x ; then
7890 eval "DEFAULT_$LINE"
7891 else
7892 no_cache=1
7893 fi
7894
7895 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
7896
7897fi;
7898
7899 eval "$ac_cv_use_choice"
7900 if test "$no_cache" != 1; then
7901 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
7902 fi
7903
7904 if test "$wxUSE_CHOICE" = yes; then
7905 echo "$as_me:$LINENO: result: yes" >&5
7906echo "${ECHO_T}yes" >&6
7907 else
7908 echo "$as_me:$LINENO: result: no" >&5
7909echo "${ECHO_T}no" >&6
7910 fi
7911
7912
92bbdbcd
WS
7913 enablestring=
7914 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
7915echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6
7916 no_cache=0
7917 # Check whether --enable-choicebook or --disable-choicebook was given.
7918if test "${enable_choicebook+set}" = set; then
7919 enableval="$enable_choicebook"
7920
7921 if test "$enableval" = yes; then
7922 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
7923 else
7924 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
7925 fi
7926
7927else
7928
7929 LINE=`grep "wxUSE_CHOICEBOOK" ${wx_arg_cache_file}`
7930 if test "x$LINE" != x ; then
7931 eval "DEFAULT_$LINE"
7932 else
7933 no_cache=1
7934 fi
7935
7936 ac_cv_use_choicebook='wxUSE_CHOICEBOOK='$DEFAULT_wxUSE_CHOICEBOOK
7937
7938fi;
7939
7940 eval "$ac_cv_use_choicebook"
7941 if test "$no_cache" != 1; then
7942 echo $ac_cv_use_choicebook >> ${wx_arg_cache_file}.tmp
7943 fi
7944
7945 if test "$wxUSE_CHOICEBOOK" = yes; then
7946 echo "$as_me:$LINENO: result: yes" >&5
7947echo "${ECHO_T}yes" >&6
7948 else
7949 echo "$as_me:$LINENO: result: no" >&5
7950echo "${ECHO_T}no" >&6
7951 fi
7952
7953
a848cd7e
SC
7954 enablestring=
7955 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
7956echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
7957 no_cache=0
7958 # Check whether --enable-combobox or --disable-combobox was given.
7959if test "${enable_combobox+set}" = set; then
7960 enableval="$enable_combobox"
7961
7962 if test "$enableval" = yes; then
7963 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
7964 else
7965 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
7966 fi
7967
7968else
7969
7970 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
7971 if test "x$LINE" != x ; then
7972 eval "DEFAULT_$LINE"
7973 else
7974 no_cache=1
7975 fi
7976
7977 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
7978
7979fi;
7980
7981 eval "$ac_cv_use_combobox"
7982 if test "$no_cache" != 1; then
7983 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
7984 fi
7985
7986 if test "$wxUSE_COMBOBOX" = yes; then
7987 echo "$as_me:$LINENO: result: yes" >&5
7988echo "${ECHO_T}yes" >&6
7989 else
7990 echo "$as_me:$LINENO: result: no" >&5
7991echo "${ECHO_T}no" >&6
7992 fi
7993
7994
da98e9be
VZ
7995 enablestring=
7996 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5
7997echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6
7998 no_cache=0
7999 # Check whether --enable-datepick or --disable-datepick was given.
8000if test "${enable_datepick+set}" = set; then
8001 enableval="$enable_datepick"
8002
8003 if test "$enableval" = yes; then
8004 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=yes'
8005 else
8006 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=no'
8007 fi
8008
8009else
8010
8011 LINE=`grep "wxUSE_DATEPICKCTRL" ${wx_arg_cache_file}`
8012 if test "x$LINE" != x ; then
8013 eval "DEFAULT_$LINE"
8014 else
8015 no_cache=1
8016 fi
8017
8018 ac_cv_use_datepick='wxUSE_DATEPICKCTRL='$DEFAULT_wxUSE_DATEPICKCTRL
8019
8020fi;
8021
8022 eval "$ac_cv_use_datepick"
8023 if test "$no_cache" != 1; then
8024 echo $ac_cv_use_datepick >> ${wx_arg_cache_file}.tmp
8025 fi
8026
8027 if test "$wxUSE_DATEPICKCTRL" = yes; then
8028 echo "$as_me:$LINENO: result: yes" >&5
8029echo "${ECHO_T}yes" >&6
8030 else
8031 echo "$as_me:$LINENO: result: no" >&5
8032echo "${ECHO_T}no" >&6
8033 fi
8034
8035
a848cd7e
SC
8036 enablestring=
8037 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
8038echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
8039 no_cache=0
8040 # Check whether --enable-display or --disable-display was given.
8041if test "${enable_display+set}" = set; then
8042 enableval="$enable_display"
8043
8044 if test "$enableval" = yes; then
8045 ac_cv_use_display='wxUSE_DISPLAY=yes'
8046 else
8047 ac_cv_use_display='wxUSE_DISPLAY=no'
8048 fi
8049
8050else
8051
8052 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
8053 if test "x$LINE" != x ; then
8054 eval "DEFAULT_$LINE"
8055 else
8056 no_cache=1
8057 fi
8058
8059 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
8060
8061fi;
8062
8063 eval "$ac_cv_use_display"
8064 if test "$no_cache" != 1; then
8065 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
8066 fi
8067
8068 if test "$wxUSE_DISPLAY" = yes; then
8069 echo "$as_me:$LINENO: result: yes" >&5
8070echo "${ECHO_T}yes" >&6
8071 else
8072 echo "$as_me:$LINENO: result: no" >&5
8073echo "${ECHO_T}no" >&6
8074 fi
8075
8076
8077 enablestring=
8078 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
8079echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
8080 no_cache=0
8081 # Check whether --enable-gauge or --disable-gauge was given.
8082if test "${enable_gauge+set}" = set; then
8083 enableval="$enable_gauge"
8084
8085 if test "$enableval" = yes; then
8086 ac_cv_use_gauge='wxUSE_GAUGE=yes'
8087 else
8088 ac_cv_use_gauge='wxUSE_GAUGE=no'
8089 fi
8090
8091else
8092
8093 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
8094 if test "x$LINE" != x ; then
8095 eval "DEFAULT_$LINE"
8096 else
8097 no_cache=1
8098 fi
8099
8100 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
8101
8102fi;
8103
8104 eval "$ac_cv_use_gauge"
8105 if test "$no_cache" != 1; then
8106 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
8107 fi
8108
8109 if test "$wxUSE_GAUGE" = yes; then
8110 echo "$as_me:$LINENO: result: yes" >&5
8111echo "${ECHO_T}yes" >&6
8112 else
8113 echo "$as_me:$LINENO: result: no" >&5
8114echo "${ECHO_T}no" >&6
8115 fi
8116
8117
8118 enablestring=
8119 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
8120echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
8121 no_cache=0
8122 # Check whether --enable-grid or --disable-grid was given.
8123if test "${enable_grid+set}" = set; then
8124 enableval="$enable_grid"
8125
8126 if test "$enableval" = yes; then
8127 ac_cv_use_grid='wxUSE_GRID=yes'
8128 else
8129 ac_cv_use_grid='wxUSE_GRID=no'
8130 fi
8131
8132else
8133
8134 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
8135 if test "x$LINE" != x ; then
8136 eval "DEFAULT_$LINE"
8137 else
8138 no_cache=1
8139 fi
8140
8141 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
8142
8143fi;
8144
8145 eval "$ac_cv_use_grid"
8146 if test "$no_cache" != 1; then
8147 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
8148 fi
8149
8150 if test "$wxUSE_GRID" = yes; then
8151 echo "$as_me:$LINENO: result: yes" >&5
8152echo "${ECHO_T}yes" >&6
8153 else
8154 echo "$as_me:$LINENO: result: no" >&5
8155echo "${ECHO_T}no" >&6
8156 fi
8157
8158
20e34ecc
RR
8159 enablestring=
8160 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataviewctrl" >&5
8161echo $ECHO_N "checking for --${enablestring:-enable}-dataviewctrl... $ECHO_C" >&6
8162 no_cache=0
8163 # Check whether --enable-dataviewctrl or --disable-dataviewctrl was given.
8164if test "${enable_dataviewctrl+set}" = set; then
8165 enableval="$enable_dataviewctrl"
8166
8167 if test "$enableval" = yes; then
8168 ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=yes'
8169 else
8170 ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=no'
8171 fi
8172
8173else
8174
8175 LINE=`grep "wxUSE_DATAVIEWCTRL" ${wx_arg_cache_file}`
8176 if test "x$LINE" != x ; then
8177 eval "DEFAULT_$LINE"
8178 else
8179 no_cache=1
8180 fi
8181
8182 ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL='$DEFAULT_wxUSE_DATAVIEWCTRL
8183
8184fi;
8185
8186 eval "$ac_cv_use_dataviewctrl"
8187 if test "$no_cache" != 1; then
8188 echo $ac_cv_use_dataviewctrl >> ${wx_arg_cache_file}.tmp
8189 fi
8190
8191 if test "$wxUSE_DATAVIEWCTRL" = yes; then
8192 echo "$as_me:$LINENO: result: yes" >&5
8193echo "${ECHO_T}yes" >&6
8194 else
8195 echo "$as_me:$LINENO: result: no" >&5
8196echo "${ECHO_T}no" >&6
8197 fi
8198
8199
a848cd7e
SC
8200 enablestring=
8201 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
8202echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
8203 no_cache=0
8204 # Check whether --enable-imaglist or --disable-imaglist was given.
8205if test "${enable_imaglist+set}" = set; then
8206 enableval="$enable_imaglist"
8207
8208 if test "$enableval" = yes; then
8209 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
8210 else
8211 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
8212 fi
8213
8214else
8215
8216 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
8217 if test "x$LINE" != x ; then
8218 eval "DEFAULT_$LINE"
8219 else
8220 no_cache=1
8221 fi
8222
8223 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
8224
8225fi;
8226
8227 eval "$ac_cv_use_imaglist"
8228 if test "$no_cache" != 1; then
8229 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
8230 fi
8231
8232 if test "$wxUSE_IMAGLIST" = yes; then
8233 echo "$as_me:$LINENO: result: yes" >&5
8234echo "${ECHO_T}yes" >&6
8235 else
8236 echo "$as_me:$LINENO: result: no" >&5
8237echo "${ECHO_T}no" >&6
8238 fi
8239
8240
8241 enablestring=
8242 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
8243echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6
8244 no_cache=0
8245 # Check whether --enable-listbook or --disable-listbook was given.
8246if test "${enable_listbook+set}" = set; then
8247 enableval="$enable_listbook"
8248
8249 if test "$enableval" = yes; then
8250 ac_cv_use_listbook='wxUSE_LISTBOOK=yes'
8251 else
8252 ac_cv_use_listbook='wxUSE_LISTBOOK=no'
8253 fi
8254
8255else
8256
8257 LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}`
8258 if test "x$LINE" != x ; then
8259 eval "DEFAULT_$LINE"
8260 else
8261 no_cache=1
8262 fi
8263
8264 ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK
8265
8266fi;
8267
8268 eval "$ac_cv_use_listbook"
8269 if test "$no_cache" != 1; then
8270 echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp
8271 fi
8272
8273 if test "$wxUSE_LISTBOOK" = yes; then
8274 echo "$as_me:$LINENO: result: yes" >&5
8275echo "${ECHO_T}yes" >&6
8276 else
8277 echo "$as_me:$LINENO: result: no" >&5
8278echo "${ECHO_T}no" >&6
8279 fi
8280
8281
8282 enablestring=
8283 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
8284echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
8285 no_cache=0
8286 # Check whether --enable-listbox or --disable-listbox was given.
8287if test "${enable_listbox+set}" = set; then
8288 enableval="$enable_listbox"
8289
8290 if test "$enableval" = yes; then
8291 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
8292 else
8293 ac_cv_use_listbox='wxUSE_LISTBOX=no'
8294 fi
8295
8296else
8297
8298 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
8299 if test "x$LINE" != x ; then
8300 eval "DEFAULT_$LINE"
8301 else
8302 no_cache=1
8303 fi
8304
8305 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
8306
8307fi;
8308
8309 eval "$ac_cv_use_listbox"
8310 if test "$no_cache" != 1; then
8311 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
8312 fi
8313
8314 if test "$wxUSE_LISTBOX" = yes; then
8315 echo "$as_me:$LINENO: result: yes" >&5
8316echo "${ECHO_T}yes" >&6
8317 else
8318 echo "$as_me:$LINENO: result: no" >&5
8319echo "${ECHO_T}no" >&6
8320 fi
8321
8322
8323 enablestring=
8324 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
8325echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
8326 no_cache=0
8327 # Check whether --enable-listctrl or --disable-listctrl was given.
8328if test "${enable_listctrl+set}" = set; then
8329 enableval="$enable_listctrl"
8330
8331 if test "$enableval" = yes; then
8332 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
8333 else
8334 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
8335 fi
8336
8337else
8338
8339 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
8340 if test "x$LINE" != x ; then
8341 eval "DEFAULT_$LINE"
8342 else
8343 no_cache=1
8344 fi
8345
8346 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
8347
8348fi;
8349
8350 eval "$ac_cv_use_listctrl"
8351 if test "$no_cache" != 1; then
8352 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
8353 fi
8354
8355 if test "$wxUSE_LISTCTRL" = yes; then
8356 echo "$as_me:$LINENO: result: yes" >&5
8357echo "${ECHO_T}yes" >&6
8358 else
8359 echo "$as_me:$LINENO: result: no" >&5
8360echo "${ECHO_T}no" >&6
8361 fi
8362
8363
8364 enablestring=
8365 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
8366echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
8367 no_cache=0
8368 # Check whether --enable-notebook or --disable-notebook was given.
8369if test "${enable_notebook+set}" = set; then
8370 enableval="$enable_notebook"
8371
8372 if test "$enableval" = yes; then
8373 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
8374 else
8375 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
8376 fi
8377
8378else
8379
8380 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
8381 if test "x$LINE" != x ; then
8382 eval "DEFAULT_$LINE"
8383 else
8384 no_cache=1
8385 fi
8386
8387 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
8388
8389fi;
8390
8391 eval "$ac_cv_use_notebook"
8392 if test "$no_cache" != 1; then
8393 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
8394 fi
8395
8396 if test "$wxUSE_NOTEBOOK" = yes; then
8397 echo "$as_me:$LINENO: result: yes" >&5
8398echo "${ECHO_T}yes" >&6
8399 else
8400 echo "$as_me:$LINENO: result: no" >&5
8401echo "${ECHO_T}no" >&6
8402 fi
8403
8404
8405 enablestring=
8406 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
8407echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
8408 no_cache=0
8409 # Check whether --enable-radiobox or --disable-radiobox was given.
8410if test "${enable_radiobox+set}" = set; then
8411 enableval="$enable_radiobox"
8412
8413 if test "$enableval" = yes; then
8414 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
8415 else
8416 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
8417 fi
8418
8419else
8420
8421 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
8422 if test "x$LINE" != x ; then
8423 eval "DEFAULT_$LINE"
8424 else
8425 no_cache=1
8426 fi
8427
8428 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
8429
8430fi;
8431
8432 eval "$ac_cv_use_radiobox"
8433 if test "$no_cache" != 1; then
8434 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
8435 fi
8436
8437 if test "$wxUSE_RADIOBOX" = yes; then
8438 echo "$as_me:$LINENO: result: yes" >&5
8439echo "${ECHO_T}yes" >&6
8440 else
8441 echo "$as_me:$LINENO: result: no" >&5
8442echo "${ECHO_T}no" >&6
8443 fi
8444
8445
8446 enablestring=
8447 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
8448echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
8449 no_cache=0
8450 # Check whether --enable-radiobtn or --disable-radiobtn was given.
8451if test "${enable_radiobtn+set}" = set; then
8452 enableval="$enable_radiobtn"
8453
8454 if test "$enableval" = yes; then
8455 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
8456 else
8457 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
8458 fi
8459
8460else
8461
8462 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
8463 if test "x$LINE" != x ; then
8464 eval "DEFAULT_$LINE"
8465 else
8466 no_cache=1
8467 fi
8468
8469 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
8470
8471fi;
8472
8473 eval "$ac_cv_use_radiobtn"
8474 if test "$no_cache" != 1; then
8475 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
8476 fi
8477
8478 if test "$wxUSE_RADIOBTN" = yes; then
8479 echo "$as_me:$LINENO: result: yes" >&5
8480echo "${ECHO_T}yes" >&6
8481 else
8482 echo "$as_me:$LINENO: result: no" >&5
8483echo "${ECHO_T}no" >&6
8484 fi
8485
8486
8487 enablestring=
8488 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
8489echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
8490 no_cache=0
8491 # Check whether --enable-sash or --disable-sash was given.
8492if test "${enable_sash+set}" = set; then
8493 enableval="$enable_sash"
8494
8495 if test "$enableval" = yes; then
8496 ac_cv_use_sash='wxUSE_SASH=yes'
8497 else
8498 ac_cv_use_sash='wxUSE_SASH=no'
8499 fi
8500
8501else
8502
8503 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
8504 if test "x$LINE" != x ; then
8505 eval "DEFAULT_$LINE"
8506 else
8507 no_cache=1
8508 fi
8509
8510 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
8511
8512fi;
8513
8514 eval "$ac_cv_use_sash"
8515 if test "$no_cache" != 1; then
8516 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
8517 fi
8518
8519 if test "$wxUSE_SASH" = yes; then
8520 echo "$as_me:$LINENO: result: yes" >&5
8521echo "${ECHO_T}yes" >&6
8522 else
8523 echo "$as_me:$LINENO: result: no" >&5
8524echo "${ECHO_T}no" >&6
8525 fi
8526
8527
8528 enablestring=
8529 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
8530echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
8531 no_cache=0
8532 # Check whether --enable-scrollbar or --disable-scrollbar was given.
8533if test "${enable_scrollbar+set}" = set; then
8534 enableval="$enable_scrollbar"
8535
8536 if test "$enableval" = yes; then
8537 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
8538 else
8539 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
8540 fi
8541
8542else
8543
8544 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
8545 if test "x$LINE" != x ; then
8546 eval "DEFAULT_$LINE"
8547 else
8548 no_cache=1
8549 fi
8550
8551 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
8552
8553fi;
8554
8555 eval "$ac_cv_use_scrollbar"
8556 if test "$no_cache" != 1; then
8557 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
8558 fi
8559
8560 if test "$wxUSE_SCROLLBAR" = yes; then
8561 echo "$as_me:$LINENO: result: yes" >&5
8562echo "${ECHO_T}yes" >&6
8563 else
8564 echo "$as_me:$LINENO: result: no" >&5
8565echo "${ECHO_T}no" >&6
8566 fi
8567
8568
8569 enablestring=
8570 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
8571echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
8572 no_cache=0
8573 # Check whether --enable-slider or --disable-slider was given.
8574if test "${enable_slider+set}" = set; then
8575 enableval="$enable_slider"
8576
8577 if test "$enableval" = yes; then
8578 ac_cv_use_slider='wxUSE_SLIDER=yes'
8579 else
8580 ac_cv_use_slider='wxUSE_SLIDER=no'
8581 fi
8582
8583else
8584
8585 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
8586 if test "x$LINE" != x ; then
8587 eval "DEFAULT_$LINE"
8588 else
8589 no_cache=1
8590 fi
8591
8592 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
8593
8594fi;
8595
8596 eval "$ac_cv_use_slider"
8597 if test "$no_cache" != 1; then
8598 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
8599 fi
8600
8601 if test "$wxUSE_SLIDER" = yes; then
8602 echo "$as_me:$LINENO: result: yes" >&5
8603echo "${ECHO_T}yes" >&6
8604 else
8605 echo "$as_me:$LINENO: result: no" >&5
8606echo "${ECHO_T}no" >&6
8607 fi
8608
8609
8610 enablestring=
8611 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
8612echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
8613 no_cache=0
8614 # Check whether --enable-spinbtn or --disable-spinbtn was given.
8615if test "${enable_spinbtn+set}" = set; then
8616 enableval="$enable_spinbtn"
8617
8618 if test "$enableval" = yes; then
8619 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
8620 else
8621 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
8622 fi
8623
8624else
8625
8626 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
8627 if test "x$LINE" != x ; then
8628 eval "DEFAULT_$LINE"
8629 else
8630 no_cache=1
8631 fi
8632
8633 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
8634
8635fi;
8636
8637 eval "$ac_cv_use_spinbtn"
8638 if test "$no_cache" != 1; then
8639 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
8640 fi
8641
8642 if test "$wxUSE_SPINBTN" = yes; then
8643 echo "$as_me:$LINENO: result: yes" >&5
8644echo "${ECHO_T}yes" >&6
8645 else
8646 echo "$as_me:$LINENO: result: no" >&5
8647echo "${ECHO_T}no" >&6
8648 fi
8649
8650
8651 enablestring=
8652 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
8653echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
8654 no_cache=0
8655 # Check whether --enable-spinctrl or --disable-spinctrl was given.
8656if test "${enable_spinctrl+set}" = set; then
8657 enableval="$enable_spinctrl"
8658
8659 if test "$enableval" = yes; then
8660 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
8661 else
8662 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
8663 fi
8664
8665else
8666
8667 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
8668 if test "x$LINE" != x ; then
8669 eval "DEFAULT_$LINE"
8670 else
8671 no_cache=1
8672 fi
8673
8674 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
8675
8676fi;
8677
8678 eval "$ac_cv_use_spinctrl"
8679 if test "$no_cache" != 1; then
8680 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
8681 fi
8682
8683 if test "$wxUSE_SPINCTRL" = yes; then
8684 echo "$as_me:$LINENO: result: yes" >&5
8685echo "${ECHO_T}yes" >&6
8686 else
8687 echo "$as_me:$LINENO: result: no" >&5
8688echo "${ECHO_T}no" >&6
8689 fi
8690
8691
8692 enablestring=
8693 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
8694echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
8695 no_cache=0
8696 # Check whether --enable-splitter or --disable-splitter was given.
8697if test "${enable_splitter+set}" = set; then
8698 enableval="$enable_splitter"
8699
8700 if test "$enableval" = yes; then
8701 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
8702 else
8703 ac_cv_use_splitter='wxUSE_SPLITTER=no'
8704 fi
8705
8706else
8707
8708 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
8709 if test "x$LINE" != x ; then
8710 eval "DEFAULT_$LINE"
8711 else
8712 no_cache=1
8713 fi
8714
8715 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
8716
8717fi;
8718
8719 eval "$ac_cv_use_splitter"
8720 if test "$no_cache" != 1; then
8721 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
8722 fi
8723
8724 if test "$wxUSE_SPLITTER" = yes; then
8725 echo "$as_me:$LINENO: result: yes" >&5
8726echo "${ECHO_T}yes" >&6
8727 else
8728 echo "$as_me:$LINENO: result: no" >&5
8729echo "${ECHO_T}no" >&6
8730 fi
8731
8732
8733 enablestring=
8734 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
8735echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
8736 no_cache=0
8737 # Check whether --enable-statbmp or --disable-statbmp was given.
8738if test "${enable_statbmp+set}" = set; then
8739 enableval="$enable_statbmp"
8740
8741 if test "$enableval" = yes; then
8742 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
8743 else
8744 ac_cv_use_statbmp='wxUSE_STATBMP=no'
8745 fi
8746
8747else
8748
8749 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
8750 if test "x$LINE" != x ; then
8751 eval "DEFAULT_$LINE"
8752 else
8753 no_cache=1
8754 fi
8755
8756 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
8757
8758fi;
8759
8760 eval "$ac_cv_use_statbmp"
8761 if test "$no_cache" != 1; then
8762 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
8763 fi
8764
8765 if test "$wxUSE_STATBMP" = yes; then
8766 echo "$as_me:$LINENO: result: yes" >&5
8767echo "${ECHO_T}yes" >&6
8768 else
8769 echo "$as_me:$LINENO: result: no" >&5
8770echo "${ECHO_T}no" >&6
8771 fi
8772
8773
8774 enablestring=
8775 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
8776echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
8777 no_cache=0
8778 # Check whether --enable-statbox or --disable-statbox was given.
8779if test "${enable_statbox+set}" = set; then
8780 enableval="$enable_statbox"
8781
8782 if test "$enableval" = yes; then
8783 ac_cv_use_statbox='wxUSE_STATBOX=yes'
8784 else
8785 ac_cv_use_statbox='wxUSE_STATBOX=no'
8786 fi
8787
8788else
8789
8790 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
8791 if test "x$LINE" != x ; then
8792 eval "DEFAULT_$LINE"
8793 else
8794 no_cache=1
8795 fi
8796
8797 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
8798
8799fi;
8800
8801 eval "$ac_cv_use_statbox"
8802 if test "$no_cache" != 1; then
8803 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
8804 fi
8805
8806 if test "$wxUSE_STATBOX" = yes; then
8807 echo "$as_me:$LINENO: result: yes" >&5
8808echo "${ECHO_T}yes" >&6
8809 else
8810 echo "$as_me:$LINENO: result: no" >&5
8811echo "${ECHO_T}no" >&6
8812 fi
8813
8814
8815 enablestring=
8816 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
8817echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
8818 no_cache=0
8819 # Check whether --enable-statline or --disable-statline was given.
8820if test "${enable_statline+set}" = set; then
8821 enableval="$enable_statline"
8822
8823 if test "$enableval" = yes; then
8824 ac_cv_use_statline='wxUSE_STATLINE=yes'
8825 else
8826 ac_cv_use_statline='wxUSE_STATLINE=no'
8827 fi
8828
8829else
8830
8831 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
8832 if test "x$LINE" != x ; then
8833 eval "DEFAULT_$LINE"
8834 else
8835 no_cache=1
8836 fi
8837
8838 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
8839
8840fi;
8841
8842 eval "$ac_cv_use_statline"
8843 if test "$no_cache" != 1; then
8844 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
8845 fi
8846
8847 if test "$wxUSE_STATLINE" = yes; then
8848 echo "$as_me:$LINENO: result: yes" >&5
8849echo "${ECHO_T}yes" >&6
8850 else
8851 echo "$as_me:$LINENO: result: no" >&5
8852echo "${ECHO_T}no" >&6
8853 fi
8854
8855
8856 enablestring=
8857 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
8858echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
8859 no_cache=0
8860 # Check whether --enable-stattext or --disable-stattext was given.
8861if test "${enable_stattext+set}" = set; then
8862 enableval="$enable_stattext"
8863
8864 if test "$enableval" = yes; then
8865 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
8866 else
8867 ac_cv_use_stattext='wxUSE_STATTEXT=no'
8868 fi
8869
8870else
8871
8872 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
8873 if test "x$LINE" != x ; then
8874 eval "DEFAULT_$LINE"
8875 else
8876 no_cache=1
8877 fi
8878
8879 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
8880
8881fi;
8882
8883 eval "$ac_cv_use_stattext"
8884 if test "$no_cache" != 1; then
8885 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
8886 fi
8887
8888 if test "$wxUSE_STATTEXT" = yes; then
8889 echo "$as_me:$LINENO: result: yes" >&5
8890echo "${ECHO_T}yes" >&6
8891 else
8892 echo "$as_me:$LINENO: result: no" >&5
8893echo "${ECHO_T}no" >&6
8894 fi
8895
8896
8897 enablestring=
8898 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
8899echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
8900 no_cache=0
8901 # Check whether --enable-statusbar or --disable-statusbar was given.
8902if test "${enable_statusbar+set}" = set; then
8903 enableval="$enable_statusbar"
8904
8905 if test "$enableval" = yes; then
8906 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
8907 else
8908 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
8909 fi
8910
8911else
8912
8913 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
8914 if test "x$LINE" != x ; then
8915 eval "DEFAULT_$LINE"
8916 else
8917 no_cache=1
8918 fi
8919
8920 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
8921
8922fi;
8923
8924 eval "$ac_cv_use_statusbar"
8925 if test "$no_cache" != 1; then
8926 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
8927 fi
8928
8929 if test "$wxUSE_STATUSBAR" = yes; then
8930 echo "$as_me:$LINENO: result: yes" >&5
8931echo "${ECHO_T}yes" >&6
8932 else
8933 echo "$as_me:$LINENO: result: no" >&5
8934echo "${ECHO_T}no" >&6
8935 fi
8936
8937
8938 enablestring=
8939 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
8940echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
8941 no_cache=0
8942 # Check whether --enable-tabdialog or --disable-tabdialog was given.
8943if test "${enable_tabdialog+set}" = set; then
8944 enableval="$enable_tabdialog"
8945
8946 if test "$enableval" = yes; then
f10e38c4 8947 ac_cv_use_tabdialog='wxUSE_TAB_DIALOG=yes'
a848cd7e 8948 else
f10e38c4 8949 ac_cv_use_tabdialog='wxUSE_TAB_DIALOG=no'
a848cd7e
SC
8950 fi
8951
8952else
8953
f10e38c4 8954 LINE=`grep "wxUSE_TAB_DIALOG" ${wx_arg_cache_file}`
a848cd7e
SC
8955 if test "x$LINE" != x ; then
8956 eval "DEFAULT_$LINE"
8957 else
8958 no_cache=1
8959 fi
8960
f10e38c4 8961 ac_cv_use_tabdialog='wxUSE_TAB_DIALOG='$DEFAULT_wxUSE_TAB_DIALOG
a848cd7e
SC
8962
8963fi;
8964
8965 eval "$ac_cv_use_tabdialog"
8966 if test "$no_cache" != 1; then
8967 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
8968 fi
8969
f10e38c4 8970 if test "$wxUSE_TAB_DIALOG" = yes; then
a848cd7e
SC
8971 echo "$as_me:$LINENO: result: yes" >&5
8972echo "${ECHO_T}yes" >&6
8973 else
8974 echo "$as_me:$LINENO: result: no" >&5
8975echo "${ECHO_T}no" >&6
8976 fi
8977
8978
8979 enablestring=
8980 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
8981echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
8982 no_cache=0
8983 # Check whether --enable-textctrl or --disable-textctrl was given.
8984if test "${enable_textctrl+set}" = set; then
8985 enableval="$enable_textctrl"
8986
8987 if test "$enableval" = yes; then
8988 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
8989 else
8990 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
8991 fi
8992
8993else
8994
8995 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
8996 if test "x$LINE" != x ; then
8997 eval "DEFAULT_$LINE"
8998 else
8999 no_cache=1
9000 fi
9001
9002 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
9003
9004fi;
9005
9006 eval "$ac_cv_use_textctrl"
9007 if test "$no_cache" != 1; then
9008 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
9009 fi
9010
9011 if test "$wxUSE_TEXTCTRL" = yes; then
9012 echo "$as_me:$LINENO: result: yes" >&5
9013echo "${ECHO_T}yes" >&6
9014 else
9015 echo "$as_me:$LINENO: result: no" >&5
9016echo "${ECHO_T}no" >&6
9017 fi
9018
9019
9020 enablestring=
9021 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
9022echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
9023 no_cache=0
9024 # Check whether --enable-togglebtn or --disable-togglebtn was given.
9025if test "${enable_togglebtn+set}" = set; then
9026 enableval="$enable_togglebtn"
9027
9028 if test "$enableval" = yes; then
9029 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
9030 else
9031 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
9032 fi
9033
9034else
9035
9036 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
9037 if test "x$LINE" != x ; then
9038 eval "DEFAULT_$LINE"
9039 else
9040 no_cache=1
9041 fi
9042
9043 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
9044
9045fi;
9046
9047 eval "$ac_cv_use_togglebtn"
9048 if test "$no_cache" != 1; then
9049 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
9050 fi
9051
9052 if test "$wxUSE_TOGGLEBTN" = yes; then
9053 echo "$as_me:$LINENO: result: yes" >&5
9054echo "${ECHO_T}yes" >&6
9055 else
9056 echo "$as_me:$LINENO: result: no" >&5
9057echo "${ECHO_T}no" >&6
9058 fi
9059
9060
9061 enablestring=
9062 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
9063echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
9064 no_cache=0
9065 # Check whether --enable-toolbar or --disable-toolbar was given.
9066if test "${enable_toolbar+set}" = set; then
9067 enableval="$enable_toolbar"
9068
9069 if test "$enableval" = yes; then
9070 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
9071 else
9072 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
9073 fi
9074
9075else
9076
9077 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
9078 if test "x$LINE" != x ; then
9079 eval "DEFAULT_$LINE"
9080 else
9081 no_cache=1
9082 fi
9083
9084 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
9085
9086fi;
9087
9088 eval "$ac_cv_use_toolbar"
9089 if test "$no_cache" != 1; then
9090 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
9091 fi
9092
9093 if test "$wxUSE_TOOLBAR" = yes; then
9094 echo "$as_me:$LINENO: result: yes" >&5
9095echo "${ECHO_T}yes" >&6
9096 else
9097 echo "$as_me:$LINENO: result: no" >&5
9098echo "${ECHO_T}no" >&6
9099 fi
9100
9101
9102 enablestring=
9103 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
9104echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
9105 no_cache=0
9106 # Check whether --enable-tbarnative or --disable-tbarnative was given.
9107if test "${enable_tbarnative+set}" = set; then
9108 enableval="$enable_tbarnative"
9109
9110 if test "$enableval" = yes; then
9111 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
9112 else
9113 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
9114 fi
9115
9116else
9117
9118 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
9119 if test "x$LINE" != x ; then
9120 eval "DEFAULT_$LINE"
9121 else
9122 no_cache=1
9123 fi
9124
9125 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
9126
9127fi;
9128
9129 eval "$ac_cv_use_tbarnative"
9130 if test "$no_cache" != 1; then
9131 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
9132 fi
9133
9134 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
9135 echo "$as_me:$LINENO: result: yes" >&5
9136echo "${ECHO_T}yes" >&6
9137 else
9138 echo "$as_me:$LINENO: result: no" >&5
9139echo "${ECHO_T}no" >&6
9140 fi
9141
9142
9143 enablestring=
9144 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5
9145echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6
9146 no_cache=0
9147 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
9148if test "${enable_tbarsmpl+set}" = set; then
9149 enableval="$enable_tbarsmpl"
9150
9151 if test "$enableval" = yes; then
9152 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
9153 else
9154 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
9155 fi
9156
9157else
9158
9159 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
9160 if test "x$LINE" != x ; then
9161 eval "DEFAULT_$LINE"
9162 else
9163 no_cache=1
9164 fi
9165
9166 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
9167
9168fi;
9169
9170 eval "$ac_cv_use_tbarsmpl"
9171 if test "$no_cache" != 1; then
9172 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
9173 fi
9174
9175 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
9176 echo "$as_me:$LINENO: result: yes" >&5
9177echo "${ECHO_T}yes" >&6
9178 else
9179 echo "$as_me:$LINENO: result: no" >&5
9180echo "${ECHO_T}no" >&6
9181 fi
9182
9183
0093c2fc
VZ
9184 enablestring=
9185 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treebook" >&5
9186echo $ECHO_N "checking for --${enablestring:-enable}-treebook... $ECHO_C" >&6
9187 no_cache=0
9188 # Check whether --enable-treebook or --disable-treebook was given.
9189if test "${enable_treebook+set}" = set; then
9190 enableval="$enable_treebook"
9191
9192 if test "$enableval" = yes; then
9193 ac_cv_use_treebook='wxUSE_TREEBOOK=yes'
9194 else
9195 ac_cv_use_treebook='wxUSE_TREEBOOK=no'
9196 fi
9197
9198else
9199
9200 LINE=`grep "wxUSE_TREEBOOK" ${wx_arg_cache_file}`
9201 if test "x$LINE" != x ; then
9202 eval "DEFAULT_$LINE"
9203 else
9204 no_cache=1
9205 fi
9206
9207 ac_cv_use_treebook='wxUSE_TREEBOOK='$DEFAULT_wxUSE_TREEBOOK
9208
9209fi;
9210
9211 eval "$ac_cv_use_treebook"
9212 if test "$no_cache" != 1; then
9213 echo $ac_cv_use_treebook >> ${wx_arg_cache_file}.tmp
9214 fi
9215
9216 if test "$wxUSE_TREEBOOK" = yes; then
9217 echo "$as_me:$LINENO: result: yes" >&5
9218echo "${ECHO_T}yes" >&6
9219 else
9220 echo "$as_me:$LINENO: result: no" >&5
9221echo "${ECHO_T}no" >&6
9222 fi
9223
9224
5ec3bc43
JS
9225 enablestring=
9226 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbook" >&5
9227echo $ECHO_N "checking for --${enablestring:-enable}-toolbook... $ECHO_C" >&6
9228 no_cache=0
9229 # Check whether --enable-toolbook or --disable-toolbook was given.
9230if test "${enable_toolbook+set}" = set; then
9231 enableval="$enable_toolbook"
9232
9233 if test "$enableval" = yes; then
9234 ac_cv_use_toolbook='wxUSE_TOOLBOOK=yes'
9235 else
9236 ac_cv_use_toolbook='wxUSE_TOOLBOOK=no'
9237 fi
9238
9239else
9240
9241 LINE=`grep "wxUSE_TOOLBOOK" ${wx_arg_cache_file}`
9242 if test "x$LINE" != x ; then
9243 eval "DEFAULT_$LINE"
9244 else
9245 no_cache=1
9246 fi
9247
9248 ac_cv_use_toolbook='wxUSE_TOOLBOOK='$DEFAULT_wxUSE_TOOLBOOK
9249
9250fi;
9251
9252 eval "$ac_cv_use_toolbook"
9253 if test "$no_cache" != 1; then
9254 echo $ac_cv_use_toolbook >> ${wx_arg_cache_file}.tmp
9255 fi
9256
9257 if test "$wxUSE_TOOLBOOK" = yes; then
9258 echo "$as_me:$LINENO: result: yes" >&5
9259echo "${ECHO_T}yes" >&6
9260 else
9261 echo "$as_me:$LINENO: result: no" >&5
9262echo "${ECHO_T}no" >&6
9263 fi
9264
9265
a848cd7e
SC
9266 enablestring=
9267 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
9268echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
9269 no_cache=0
9270 # Check whether --enable-treectrl or --disable-treectrl was given.
9271if test "${enable_treectrl+set}" = set; then
9272 enableval="$enable_treectrl"
9273
9274 if test "$enableval" = yes; then
9275 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
9276 else
9277 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
9278 fi
9279
9280else
9281
9282 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
9283 if test "x$LINE" != x ; then
9284 eval "DEFAULT_$LINE"
9285 else
9286 no_cache=1
9287 fi
9288
9289 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
9290
9291fi;
9292
9293 eval "$ac_cv_use_treectrl"
9294 if test "$no_cache" != 1; then
9295 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
9296 fi
9297
9298 if test "$wxUSE_TREECTRL" = yes; then
9299 echo "$as_me:$LINENO: result: yes" >&5
9300echo "${ECHO_T}yes" >&6
9301 else
9302 echo "$as_me:$LINENO: result: no" >&5
9303echo "${ECHO_T}no" >&6
9304 fi
9305
9306
9307 enablestring=
9308 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
9309echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
9310 no_cache=0
9311 # Check whether --enable-tipwindow or --disable-tipwindow was given.
9312if test "${enable_tipwindow+set}" = set; then
9313 enableval="$enable_tipwindow"
9314
9315 if test "$enableval" = yes; then
9316 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
9317 else
9318 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
9319 fi
9320
9321else
9322
9323 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
9324 if test "x$LINE" != x ; then
9325 eval "DEFAULT_$LINE"
9326 else
9327 no_cache=1
9328 fi
9329
9330 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
9331
9332fi;
9333
9334 eval "$ac_cv_use_tipwindow"
9335 if test "$no_cache" != 1; then
9336 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
9337 fi
9338
9339 if test "$wxUSE_TIPWINDOW" = yes; then
9340 echo "$as_me:$LINENO: result: yes" >&5
9341echo "${ECHO_T}yes" >&6
9342 else
9343 echo "$as_me:$LINENO: result: no" >&5
9344echo "${ECHO_T}no" >&6
9345 fi
9346
9347
9348 enablestring=
9349 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
9350echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
9351 no_cache=0
9352 # Check whether --enable-popupwin or --disable-popupwin was given.
9353if test "${enable_popupwin+set}" = set; then
9354 enableval="$enable_popupwin"
9355
9356 if test "$enableval" = yes; then
9357 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
9358 else
9359 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
9360 fi
9361
9362else
9363
9364 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
9365 if test "x$LINE" != x ; then
9366 eval "DEFAULT_$LINE"
9367 else
9368 no_cache=1
9369 fi
9370
9371 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
9372
9373fi;
9374
9375 eval "$ac_cv_use_popupwin"
9376 if test "$no_cache" != 1; then
9377 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
9378 fi
9379
9380 if test "$wxUSE_POPUPWIN" = yes; then
9381 echo "$as_me:$LINENO: result: yes" >&5
9382echo "${ECHO_T}yes" >&6
9383 else
9384 echo "$as_me:$LINENO: result: no" >&5
9385echo "${ECHO_T}no" >&6
9386 fi
9387
9388
9389
9390
9391 enablestring=
9392 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
9393echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
9394 no_cache=0
9395 # Check whether --enable-commondlg or --disable-commondlg was given.
9396if test "${enable_commondlg+set}" = set; then
9397 enableval="$enable_commondlg"
9398
9399 if test "$enableval" = yes; then
9400 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
9401 else
9402 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
9403 fi
9404
9405else
9406
9407 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
9408 if test "x$LINE" != x ; then
9409 eval "DEFAULT_$LINE"
9410 else
9411 no_cache=1
9412 fi
9413
9414 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
9415
9416fi;
9417
9418 eval "$ac_cv_use_commondlg"
9419 if test "$no_cache" != 1; then
9420 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
9421 fi
9422
9423 if test "$wxUSE_COMMONDLGS" = yes; then
9424 echo "$as_me:$LINENO: result: yes" >&5
9425echo "${ECHO_T}yes" >&6
9426 else
9427 echo "$as_me:$LINENO: result: no" >&5
9428echo "${ECHO_T}no" >&6
9429 fi
9430
9431
9432 enablestring=
9433 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
9434echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
9435 no_cache=0
9436 # Check whether --enable-choicedlg or --disable-choicedlg was given.
9437if test "${enable_choicedlg+set}" = set; then
9438 enableval="$enable_choicedlg"
9439
9440 if test "$enableval" = yes; then
9441 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
9442 else
9443 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
9444 fi
9445
9446else
9447
9448 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
9449 if test "x$LINE" != x ; then
9450 eval "DEFAULT_$LINE"
9451 else
9452 no_cache=1
9453 fi
9454
9455 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
9456
9457fi;
9458
9459 eval "$ac_cv_use_choicedlg"
9460 if test "$no_cache" != 1; then
9461 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
9462 fi
9463
9464 if test "$wxUSE_CHOICEDLG" = yes; then
9465 echo "$as_me:$LINENO: result: yes" >&5
9466echo "${ECHO_T}yes" >&6
9467 else
9468 echo "$as_me:$LINENO: result: no" >&5
9469echo "${ECHO_T}no" >&6
9470 fi
9471
9472
9473 enablestring=
9474 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
9475echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
9476 no_cache=0
9477 # Check whether --enable-coldlg or --disable-coldlg was given.
9478if test "${enable_coldlg+set}" = set; then
9479 enableval="$enable_coldlg"
9480
9481 if test "$enableval" = yes; then
9482 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
9483 else
9484 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
9485 fi
9486
9487else
9488
9489 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
9490 if test "x$LINE" != x ; then
9491 eval "DEFAULT_$LINE"
9492 else
9493 no_cache=1
9494 fi
9495
9496 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
9497
9498fi;
9499
9500 eval "$ac_cv_use_coldlg"
9501 if test "$no_cache" != 1; then
9502 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
9503 fi
9504
9505 if test "$wxUSE_COLOURDLG" = yes; then
9506 echo "$as_me:$LINENO: result: yes" >&5
9507echo "${ECHO_T}yes" >&6
9508 else
9509 echo "$as_me:$LINENO: result: no" >&5
9510echo "${ECHO_T}no" >&6
9511 fi
9512
9513
9514 enablestring=
9515 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
9516echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
9517 no_cache=0
9518 # Check whether --enable-filedlg or --disable-filedlg was given.
9519if test "${enable_filedlg+set}" = set; then
9520 enableval="$enable_filedlg"
9521
9522 if test "$enableval" = yes; then
9523 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
9524 else
9525 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
9526 fi
9527
9528else
9529
9530 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
9531 if test "x$LINE" != x ; then
9532 eval "DEFAULT_$LINE"
9533 else
9534 no_cache=1
9535 fi
9536
9537 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
9538
9539fi;
9540
9541 eval "$ac_cv_use_filedlg"
9542 if test "$no_cache" != 1; then
9543 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
9544 fi
9545
9546 if test "$wxUSE_FILEDLG" = yes; then
9547 echo "$as_me:$LINENO: result: yes" >&5
9548echo "${ECHO_T}yes" >&6
9549 else
9550 echo "$as_me:$LINENO: result: no" >&5
9551echo "${ECHO_T}no" >&6
9552 fi
9553
9554
9555 enablestring=
9556 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
9557echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
9558 no_cache=0
9559 # Check whether --enable-finddlg or --disable-finddlg was given.
9560if test "${enable_finddlg+set}" = set; then
9561 enableval="$enable_finddlg"
9562
9563 if test "$enableval" = yes; then
9564 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
9565 else
9566 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
9567 fi
9568
9569else
9570
9571 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
9572 if test "x$LINE" != x ; then
9573 eval "DEFAULT_$LINE"
9574 else
9575 no_cache=1
9576 fi
9577
9578 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
9579
9580fi;
9581
9582 eval "$ac_cv_use_finddlg"
9583 if test "$no_cache" != 1; then
9584 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
9585 fi
9586
9587 if test "$wxUSE_FINDREPLDLG" = yes; then
9588 echo "$as_me:$LINENO: result: yes" >&5
9589echo "${ECHO_T}yes" >&6
9590 else
9591 echo "$as_me:$LINENO: result: no" >&5
9592echo "${ECHO_T}no" >&6
9593 fi
9594
9595
9596 enablestring=
9597 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
9598echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
9599 no_cache=0
9600 # Check whether --enable-fontdlg or --disable-fontdlg was given.
9601if test "${enable_fontdlg+set}" = set; then
9602 enableval="$enable_fontdlg"
9603
9604 if test "$enableval" = yes; then
9605 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
9606 else
9607 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
9608 fi
9609
9610else
9611
9612 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
9613 if test "x$LINE" != x ; then
9614 eval "DEFAULT_$LINE"
9615 else
9616 no_cache=1
9617 fi
9618
9619 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
9620
9621fi;
9622
9623 eval "$ac_cv_use_fontdlg"
9624 if test "$no_cache" != 1; then
9625 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
9626 fi
9627
9628 if test "$wxUSE_FONTDLG" = yes; then
9629 echo "$as_me:$LINENO: result: yes" >&5
9630echo "${ECHO_T}yes" >&6
9631 else
9632 echo "$as_me:$LINENO: result: no" >&5
9633echo "${ECHO_T}no" >&6
9634 fi
9635
9636
9637 enablestring=
9638 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
9639echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
9640 no_cache=0
9641 # Check whether --enable-dirdlg or --disable-dirdlg was given.
9642if test "${enable_dirdlg+set}" = set; then
9643 enableval="$enable_dirdlg"
9644
9645 if test "$enableval" = yes; then
9646 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
9647 else
9648 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
9649 fi
9650
9651else
9652
9653 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
9654 if test "x$LINE" != x ; then
9655 eval "DEFAULT_$LINE"
9656 else
9657 no_cache=1
9658 fi
9659
9660 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
9661
9662fi;
9663
9664 eval "$ac_cv_use_dirdlg"
9665 if test "$no_cache" != 1; then
9666 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
9667 fi
9668
9669 if test "$wxUSE_DIRDLG" = yes; then
9670 echo "$as_me:$LINENO: result: yes" >&5
9671echo "${ECHO_T}yes" >&6
9672 else
9673 echo "$as_me:$LINENO: result: no" >&5
9674echo "${ECHO_T}no" >&6
9675 fi
9676
9677
9678 enablestring=
9679 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
9680echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
9681 no_cache=0
9682 # Check whether --enable-msgdlg or --disable-msgdlg was given.
9683if test "${enable_msgdlg+set}" = set; then
9684 enableval="$enable_msgdlg"
9685
9686 if test "$enableval" = yes; then
9687 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
9688 else
9689 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
9690 fi
9691
9692else
9693
9694 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
9695 if test "x$LINE" != x ; then
9696 eval "DEFAULT_$LINE"
9697 else
9698 no_cache=1
9699 fi
9700
9701 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
9702
9703fi;
9704
9705 eval "$ac_cv_use_msgdlg"
9706 if test "$no_cache" != 1; then
9707 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
9708 fi
9709
9710 if test "$wxUSE_MSGDLG" = yes; then
9711 echo "$as_me:$LINENO: result: yes" >&5
9712echo "${ECHO_T}yes" >&6
9713 else
9714 echo "$as_me:$LINENO: result: no" >&5
9715echo "${ECHO_T}no" >&6
9716 fi
9717
9718
9719 enablestring=
9720 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
9721echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
9722 no_cache=0
9723 # Check whether --enable-numberdlg or --disable-numberdlg was given.
9724if test "${enable_numberdlg+set}" = set; then
9725 enableval="$enable_numberdlg"
9726
9727 if test "$enableval" = yes; then
9728 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
9729 else
9730 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
9731 fi
9732
9733else
9734
9735 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
9736 if test "x$LINE" != x ; then
9737 eval "DEFAULT_$LINE"
9738 else
9739 no_cache=1
9740 fi
9741
9742 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
9743
9744fi;
9745
9746 eval "$ac_cv_use_numberdlg"
9747 if test "$no_cache" != 1; then
9748 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
9749 fi
9750
9751 if test "$wxUSE_NUMBERDLG" = yes; then
9752 echo "$as_me:$LINENO: result: yes" >&5
9753echo "${ECHO_T}yes" >&6
9754 else
9755 echo "$as_me:$LINENO: result: no" >&5
9756echo "${ECHO_T}no" >&6
9757 fi
9758
9759
9760 enablestring=
9761 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
9762echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
9763 no_cache=0
9764 # Check whether --enable-splash or --disable-splash was given.
9765if test "${enable_splash+set}" = set; then
9766 enableval="$enable_splash"
9767
9768 if test "$enableval" = yes; then
9769 ac_cv_use_splash='wxUSE_SPLASH=yes'
9770 else
9771 ac_cv_use_splash='wxUSE_SPLASH=no'
9772 fi
9773
9774else
9775
9776 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
9777 if test "x$LINE" != x ; then
9778 eval "DEFAULT_$LINE"
9779 else
9780 no_cache=1
9781 fi
9782
9783 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
9784
9785fi;
9786
9787 eval "$ac_cv_use_splash"
9788 if test "$no_cache" != 1; then
9789 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
9790 fi
9791
9792 if test "$wxUSE_SPLASH" = yes; then
9793 echo "$as_me:$LINENO: result: yes" >&5
9794echo "${ECHO_T}yes" >&6
9795 else
9796 echo "$as_me:$LINENO: result: no" >&5
9797echo "${ECHO_T}no" >&6
9798 fi
9799
9800
9801 enablestring=
9802 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
9803echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
9804 no_cache=0
9805 # Check whether --enable-textdlg or --disable-textdlg was given.
9806if test "${enable_textdlg+set}" = set; then
9807 enableval="$enable_textdlg"
9808
9809 if test "$enableval" = yes; then
9810 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
9811 else
9812 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
9813 fi
9814
9815else
9816
9817 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
9818 if test "x$LINE" != x ; then
9819 eval "DEFAULT_$LINE"
9820 else
9821 no_cache=1
9822 fi
9823
9824 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
9825
9826fi;
9827
9828 eval "$ac_cv_use_textdlg"
9829 if test "$no_cache" != 1; then
9830 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
9831 fi
9832
9833 if test "$wxUSE_TEXTDLG" = yes; then
9834 echo "$as_me:$LINENO: result: yes" >&5
9835echo "${ECHO_T}yes" >&6
9836 else
9837 echo "$as_me:$LINENO: result: no" >&5
9838echo "${ECHO_T}no" >&6
9839 fi
9840
9841
9842 enablestring=
9843 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
9844echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
9845 no_cache=0
9846 # Check whether --enable-tipdlg or --disable-tipdlg was given.
9847if test "${enable_tipdlg+set}" = set; then
9848 enableval="$enable_tipdlg"
9849
9850 if test "$enableval" = yes; then
9851 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
9852 else
9853 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
9854 fi
9855
9856else
9857
9858 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
9859 if test "x$LINE" != x ; then
9860 eval "DEFAULT_$LINE"
9861 else
9862 no_cache=1
9863 fi
9864
9865 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
9866
9867fi;
9868
9869 eval "$ac_cv_use_tipdlg"
9870 if test "$no_cache" != 1; then
9871 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
9872 fi
9873
9874 if test "$wxUSE_STARTUP_TIPS" = yes; then
9875 echo "$as_me:$LINENO: result: yes" >&5
9876echo "${ECHO_T}yes" >&6
9877 else
9878 echo "$as_me:$LINENO: result: no" >&5
9879echo "${ECHO_T}no" >&6
9880 fi
9881
9882
9883 enablestring=
9884 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
9885echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
9886 no_cache=0
9887 # Check whether --enable-progressdlg or --disable-progressdlg was given.
9888if test "${enable_progressdlg+set}" = set; then
9889 enableval="$enable_progressdlg"
9890
9891 if test "$enableval" = yes; then
9892 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
9893 else
9894 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
9895 fi
9896
9897else
9898
9899 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
9900 if test "x$LINE" != x ; then
9901 eval "DEFAULT_$LINE"
9902 else
9903 no_cache=1
9904 fi
9905
9906 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
9907
9908fi;
9909
9910 eval "$ac_cv_use_progressdlg"
9911 if test "$no_cache" != 1; then
9912 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
9913 fi
9914
9915 if test "$wxUSE_PROGRESSDLG" = yes; then
9916 echo "$as_me:$LINENO: result: yes" >&5
9917echo "${ECHO_T}yes" >&6
9918 else
9919 echo "$as_me:$LINENO: result: no" >&5
9920echo "${ECHO_T}no" >&6
9921 fi
9922
9923
9924 enablestring=
9925 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
9926echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
9927 no_cache=0
9928 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
9929if test "${enable_wizarddlg+set}" = set; then
9930 enableval="$enable_wizarddlg"
9931
9932 if test "$enableval" = yes; then
9933 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
9934 else
9935 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
9936 fi
9937
9938else
9939
9940 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
9941 if test "x$LINE" != x ; then
9942 eval "DEFAULT_$LINE"
9943 else
9944 no_cache=1
9945 fi
9946
9947 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
9948
9949fi;
9950
9951 eval "$ac_cv_use_wizarddlg"
9952 if test "$no_cache" != 1; then
9953 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
9954 fi
9955
9956 if test "$wxUSE_WIZARDDLG" = yes; then
9957 echo "$as_me:$LINENO: result: yes" >&5
9958echo "${ECHO_T}yes" >&6
9959 else
9960 echo "$as_me:$LINENO: result: no" >&5
9961echo "${ECHO_T}no" >&6
9962 fi
9963
9964
9965
9966
9967 enablestring=
9968 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
9969echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
9970 no_cache=0
9971 # Check whether --enable-menus or --disable-menus was given.
9972if test "${enable_menus+set}" = set; then
9973 enableval="$enable_menus"
9974
9975 if test "$enableval" = yes; then
9976 ac_cv_use_menus='wxUSE_MENUS=yes'
9977 else
9978 ac_cv_use_menus='wxUSE_MENUS=no'
9979 fi
9980
9981else
9982
9983 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
9984 if test "x$LINE" != x ; then
9985 eval "DEFAULT_$LINE"
9986 else
9987 no_cache=1
9988 fi
9989
9990 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
9991
9992fi;
9993
9994 eval "$ac_cv_use_menus"
9995 if test "$no_cache" != 1; then
9996 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
9997 fi
9998
9999 if test "$wxUSE_MENUS" = yes; then
10000 echo "$as_me:$LINENO: result: yes" >&5
10001echo "${ECHO_T}yes" >&6
10002 else
10003 echo "$as_me:$LINENO: result: no" >&5
10004echo "${ECHO_T}no" >&6
10005 fi
10006
10007
10008 enablestring=
10009 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
10010echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
10011 no_cache=0
10012 # Check whether --enable-miniframe or --disable-miniframe was given.
10013if test "${enable_miniframe+set}" = set; then
10014 enableval="$enable_miniframe"
10015
10016 if test "$enableval" = yes; then
10017 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
10018 else
10019 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
10020 fi
10021
10022else
10023
10024 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
10025 if test "x$LINE" != x ; then
10026 eval "DEFAULT_$LINE"
10027 else
10028 no_cache=1
10029 fi
10030
10031 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
10032
10033fi;
10034
10035 eval "$ac_cv_use_miniframe"
10036 if test "$no_cache" != 1; then
10037 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
10038 fi
10039
10040 if test "$wxUSE_MINIFRAME" = yes; then
10041 echo "$as_me:$LINENO: result: yes" >&5
10042echo "${ECHO_T}yes" >&6
10043 else
10044 echo "$as_me:$LINENO: result: no" >&5
10045echo "${ECHO_T}no" >&6
10046 fi
10047
10048
10049 enablestring=
10050 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
10051echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
10052 no_cache=0
10053 # Check whether --enable-tooltips or --disable-tooltips was given.
10054if test "${enable_tooltips+set}" = set; then
10055 enableval="$enable_tooltips"
10056
10057 if test "$enableval" = yes; then
10058 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
10059 else
10060 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
10061 fi
10062
10063else
10064
10065 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
10066 if test "x$LINE" != x ; then
10067 eval "DEFAULT_$LINE"
10068 else
10069 no_cache=1
10070 fi
10071
10072 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
10073
10074fi;
10075
10076 eval "$ac_cv_use_tooltips"
10077 if test "$no_cache" != 1; then
10078 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
10079 fi
10080
10081 if test "$wxUSE_TOOLTIPS" = yes; then
10082 echo "$as_me:$LINENO: result: yes" >&5
10083echo "${ECHO_T}yes" >&6
10084 else
10085 echo "$as_me:$LINENO: result: no" >&5
10086echo "${ECHO_T}no" >&6
10087 fi
10088
10089
10090 enablestring=
10091 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
10092echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
10093 no_cache=0
10094 # Check whether --enable-splines or --disable-splines was given.
10095if test "${enable_splines+set}" = set; then
10096 enableval="$enable_splines"
10097
10098 if test "$enableval" = yes; then
10099 ac_cv_use_splines='wxUSE_SPLINES=yes'
10100 else
10101 ac_cv_use_splines='wxUSE_SPLINES=no'
10102 fi
10103
10104else
10105
10106 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
10107 if test "x$LINE" != x ; then
10108 eval "DEFAULT_$LINE"
10109 else
10110 no_cache=1
10111 fi
10112
10113 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
10114
10115fi;
10116
10117 eval "$ac_cv_use_splines"
10118 if test "$no_cache" != 1; then
10119 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
10120 fi
10121
10122 if test "$wxUSE_SPLINES" = yes; then
10123 echo "$as_me:$LINENO: result: yes" >&5
10124echo "${ECHO_T}yes" >&6
10125 else
10126 echo "$as_me:$LINENO: result: no" >&5
10127echo "${ECHO_T}no" >&6
10128 fi
10129
10130
fbe2ca43
SN
10131 enablestring=
10132 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mousewheel" >&5
10133echo $ECHO_N "checking for --${enablestring:-enable}-mousewheel... $ECHO_C" >&6
10134 no_cache=0
10135 # Check whether --enable-mousewheel or --disable-mousewheel was given.
10136if test "${enable_mousewheel+set}" = set; then
10137 enableval="$enable_mousewheel"
10138
10139 if test "$enableval" = yes; then
10140 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=yes'
10141 else
10142 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=no'
10143 fi
10144
10145else
10146
10147 LINE=`grep "wxUSE_MOUSEWHEEL" ${wx_arg_cache_file}`
10148 if test "x$LINE" != x ; then
10149 eval "DEFAULT_$LINE"
10150 else
10151 no_cache=1
10152 fi
10153
10154 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL='$DEFAULT_wxUSE_MOUSEWHEEL
10155
10156fi;
10157
10158 eval "$ac_cv_use_mousewheel"
10159 if test "$no_cache" != 1; then
10160 echo $ac_cv_use_mousewheel >> ${wx_arg_cache_file}.tmp
10161 fi
10162
10163 if test "$wxUSE_MOUSEWHEEL" = yes; then
10164 echo "$as_me:$LINENO: result: yes" >&5
10165echo "${ECHO_T}yes" >&6
10166 else
10167 echo "$as_me:$LINENO: result: no" >&5
10168echo "${ECHO_T}no" >&6
10169 fi
10170
10171
a848cd7e
SC
10172 enablestring=
10173 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
10174echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
10175 no_cache=0
10176 # Check whether --enable-validators or --disable-validators was given.
10177if test "${enable_validators+set}" = set; then
10178 enableval="$enable_validators"
10179
10180 if test "$enableval" = yes; then
10181 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
10182 else
10183 ac_cv_use_validators='wxUSE_VALIDATORS=no'
10184 fi
10185
10186else
10187
10188 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
10189 if test "x$LINE" != x ; then
10190 eval "DEFAULT_$LINE"
10191 else
10192 no_cache=1
10193 fi
10194
10195 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
10196
10197fi;
10198
10199 eval "$ac_cv_use_validators"
10200 if test "$no_cache" != 1; then
10201 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
10202 fi
10203
10204 if test "$wxUSE_VALIDATORS" = yes; then
10205 echo "$as_me:$LINENO: result: yes" >&5
10206echo "${ECHO_T}yes" >&6
10207 else
10208 echo "$as_me:$LINENO: result: no" >&5
10209echo "${ECHO_T}no" >&6
10210 fi
10211
10212
10213 enablestring=
10214 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
10215echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
10216 no_cache=0
10217 # Check whether --enable-busyinfo or --disable-busyinfo was given.
10218if test "${enable_busyinfo+set}" = set; then
10219 enableval="$enable_busyinfo"
10220
10221 if test "$enableval" = yes; then
10222 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
10223 else
10224 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
10225 fi
10226
10227else
10228
10229 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
10230 if test "x$LINE" != x ; then
10231 eval "DEFAULT_$LINE"
10232 else
10233 no_cache=1
10234 fi
10235
10236 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
10237
10238fi;
10239
10240 eval "$ac_cv_use_busyinfo"
10241 if test "$no_cache" != 1; then
10242 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
10243 fi
10244
10245 if test "$wxUSE_BUSYINFO" = yes; then
10246 echo "$as_me:$LINENO: result: yes" >&5
10247echo "${ECHO_T}yes" >&6
10248 else
10249 echo "$as_me:$LINENO: result: no" >&5
10250echo "${ECHO_T}no" >&6
10251 fi
10252
10253
10254 enablestring=
10255 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
10256echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
10257 no_cache=0
10258 # Check whether --enable-joystick or --disable-joystick was given.
10259if test "${enable_joystick+set}" = set; then
10260 enableval="$enable_joystick"
10261
10262 if test "$enableval" = yes; then
10263 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
10264 else
10265 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
10266 fi
10267
10268else
10269
10270 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
10271 if test "x$LINE" != x ; then
10272 eval "DEFAULT_$LINE"
10273 else
10274 no_cache=1
10275 fi
10276
10277 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
10278
10279fi;
10280
10281 eval "$ac_cv_use_joystick"
10282 if test "$no_cache" != 1; then
10283 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
10284 fi
10285
10286 if test "$wxUSE_JOYSTICK" = yes; then
10287 echo "$as_me:$LINENO: result: yes" >&5
10288echo "${ECHO_T}yes" >&6
10289 else
10290 echo "$as_me:$LINENO: result: no" >&5
10291echo "${ECHO_T}no" >&6
10292 fi
10293
10294
10295 enablestring=
10296 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
10297echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
10298 no_cache=0
10299 # Check whether --enable-metafile or --disable-metafile was given.
10300if test "${enable_metafile+set}" = set; then
10301 enableval="$enable_metafile"
10302
10303 if test "$enableval" = yes; then
10304 ac_cv_use_metafile='wxUSE_METAFILE=yes'
10305 else
10306 ac_cv_use_metafile='wxUSE_METAFILE=no'
10307 fi
10308
10309else
10310
10311 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
10312 if test "x$LINE" != x ; then
10313 eval "DEFAULT_$LINE"
10314 else
10315 no_cache=1
10316 fi
10317
10318 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
10319
10320fi;
10321
10322 eval "$ac_cv_use_metafile"
10323 if test "$no_cache" != 1; then
10324 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
10325 fi
10326
10327 if test "$wxUSE_METAFILE" = yes; then
10328 echo "$as_me:$LINENO: result: yes" >&5
10329echo "${ECHO_T}yes" >&6
10330 else
10331 echo "$as_me:$LINENO: result: no" >&5
10332echo "${ECHO_T}no" >&6
10333 fi
10334
10335
10336 enablestring=
10337 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
10338echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
10339 no_cache=0
10340 # Check whether --enable-dragimage or --disable-dragimage was given.
10341if test "${enable_dragimage+set}" = set; then
10342 enableval="$enable_dragimage"
10343
10344 if test "$enableval" = yes; then
10345 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
10346 else
10347 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
10348 fi
10349
10350else
10351
10352 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
10353 if test "x$LINE" != x ; then
10354 eval "DEFAULT_$LINE"
10355 else
10356 no_cache=1
10357 fi
10358
10359 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
10360
10361fi;
10362
10363 eval "$ac_cv_use_dragimage"
10364 if test "$no_cache" != 1; then
10365 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
10366 fi
10367
10368 if test "$wxUSE_DRAGIMAGE" = yes; then
10369 echo "$as_me:$LINENO: result: yes" >&5
10370echo "${ECHO_T}yes" >&6
10371 else
10372 echo "$as_me:$LINENO: result: no" >&5
10373echo "${ECHO_T}no" >&6
10374 fi
10375
10376
10377 enablestring=
10378 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
10379echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
10380 no_cache=0
10381 # Check whether --enable-accessibility or --disable-accessibility was given.
10382if test "${enable_accessibility+set}" = set; then
10383 enableval="$enable_accessibility"
10384
10385 if test "$enableval" = yes; then
10386 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
10387 else
10388 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
10389 fi
10390
10391else
10392
10393 LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
10394 if test "x$LINE" != x ; then
10395 eval "DEFAULT_$LINE"
10396 else
10397 no_cache=1
10398 fi
10399
10400 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
10401
10402fi;
10403
10404 eval "$ac_cv_use_accessibility"
10405 if test "$no_cache" != 1; then
10406 echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
10407 fi
10408
10409 if test "$wxUSE_ACCESSIBILITY" = yes; then
10410 echo "$as_me:$LINENO: result: yes" >&5
10411echo "${ECHO_T}yes" >&6
10412 else
10413 echo "$as_me:$LINENO: result: no" >&5
10414echo "${ECHO_T}no" >&6
10415 fi
10416
10417
38b4a946
VZ
10418if test "$wxUSE_MSW" = "1"; then
10419
10420 enablestring=
10421 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dccache" >&5
10422echo $ECHO_N "checking for --${enablestring:-enable}-dccache... $ECHO_C" >&6
10423 no_cache=0
10424 # Check whether --enable-dccache or --disable-dccache was given.
10425if test "${enable_dccache+set}" = set; then
10426 enableval="$enable_dccache"
10427
10428 if test "$enableval" = yes; then
10429 ac_cv_use_dccache='wxUSE_DC_CACHEING=yes'
10430 else
10431 ac_cv_use_dccache='wxUSE_DC_CACHEING=no'
10432 fi
10433
10434else
10435
10436 LINE=`grep "wxUSE_DC_CACHEING" ${wx_arg_cache_file}`
10437 if test "x$LINE" != x ; then
10438 eval "DEFAULT_$LINE"
10439 else
10440 no_cache=1
10441 fi
10442
10443 ac_cv_use_dccache='wxUSE_DC_CACHEING='$DEFAULT_wxUSE_DC_CACHEING
10444
10445fi;
10446
10447 eval "$ac_cv_use_dccache"
10448 if test "$no_cache" != 1; then
10449 echo $ac_cv_use_dccache >> ${wx_arg_cache_file}.tmp
10450 fi
10451
10452 if test "$wxUSE_DC_CACHEING" = yes; then
10453 echo "$as_me:$LINENO: result: yes" >&5
10454echo "${ECHO_T}yes" >&6
10455 else
10456 echo "$as_me:$LINENO: result: no" >&5
10457echo "${ECHO_T}no" >&6
10458 fi
10459
10460fi
10461
a848cd7e
SC
10462
10463
10464 enablestring=
10465 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
10466echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
10467 no_cache=0
10468 # Check whether --enable-palette or --disable-palette was given.
10469if test "${enable_palette+set}" = set; then
10470 enableval="$enable_palette"
10471
10472 if test "$enableval" = yes; then
10473 ac_cv_use_palette='wxUSE_PALETTE=yes'
10474 else
10475 ac_cv_use_palette='wxUSE_PALETTE=no'
10476 fi
10477
10478else
10479
10480 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
10481 if test "x$LINE" != x ; then
10482 eval "DEFAULT_$LINE"
10483 else
10484 no_cache=1
10485 fi
10486
10487 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
10488
10489fi;
10490
10491 eval "$ac_cv_use_palette"
10492 if test "$no_cache" != 1; then
10493 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
10494 fi
10495
10496 if test "$wxUSE_PALETTE" = yes; then
10497 echo "$as_me:$LINENO: result: yes" >&5
10498echo "${ECHO_T}yes" >&6
10499 else
10500 echo "$as_me:$LINENO: result: no" >&5
10501echo "${ECHO_T}no" >&6
10502 fi
10503
10504
10505 enablestring=
10506 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
10507echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
10508 no_cache=0
10509 # Check whether --enable-image or --disable-image was given.
10510if test "${enable_image+set}" = set; then
10511 enableval="$enable_image"
10512
10513 if test "$enableval" = yes; then
10514 ac_cv_use_image='wxUSE_IMAGE=yes'
10515 else
10516 ac_cv_use_image='wxUSE_IMAGE=no'
10517 fi
10518
10519else
10520
10521 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
10522 if test "x$LINE" != x ; then
10523 eval "DEFAULT_$LINE"
10524 else
10525 no_cache=1
10526 fi
10527
10528 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
10529
10530fi;
10531
10532 eval "$ac_cv_use_image"
10533 if test "$no_cache" != 1; then
10534 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
10535 fi
10536
10537 if test "$wxUSE_IMAGE" = yes; then
10538 echo "$as_me:$LINENO: result: yes" >&5
10539echo "${ECHO_T}yes" >&6
10540 else
10541 echo "$as_me:$LINENO: result: no" >&5
10542echo "${ECHO_T}no" >&6
10543 fi
10544
10545
10546 enablestring=
10547 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
10548echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
10549 no_cache=0
10550 # Check whether --enable-gif or --disable-gif was given.
10551if test "${enable_gif+set}" = set; then
10552 enableval="$enable_gif"
10553
10554 if test "$enableval" = yes; then
10555 ac_cv_use_gif='wxUSE_GIF=yes'
10556 else
10557 ac_cv_use_gif='wxUSE_GIF=no'
10558 fi
10559
10560else
10561
10562 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
10563 if test "x$LINE" != x ; then
10564 eval "DEFAULT_$LINE"
10565 else
10566 no_cache=1
10567 fi
10568
10569 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
10570
10571fi;
10572
10573 eval "$ac_cv_use_gif"
10574 if test "$no_cache" != 1; then
10575 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
10576 fi
10577
10578 if test "$wxUSE_GIF" = yes; then
10579 echo "$as_me:$LINENO: result: yes" >&5
10580echo "${ECHO_T}yes" >&6
10581 else
10582 echo "$as_me:$LINENO: result: no" >&5
10583echo "${ECHO_T}no" >&6
10584 fi
10585
10586
10587 enablestring=
10588 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
10589echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
10590 no_cache=0
10591 # Check whether --enable-pcx or --disable-pcx was given.
10592if test "${enable_pcx+set}" = set; then
10593 enableval="$enable_pcx"
10594
10595 if test "$enableval" = yes; then
10596 ac_cv_use_pcx='wxUSE_PCX=yes'
10597 else
10598 ac_cv_use_pcx='wxUSE_PCX=no'
10599 fi
10600
10601else
10602
10603 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
10604 if test "x$LINE" != x ; then
10605 eval "DEFAULT_$LINE"
10606 else
10607 no_cache=1
10608 fi
10609
10610 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
10611
10612fi;
10613
10614 eval "$ac_cv_use_pcx"
10615 if test "$no_cache" != 1; then
10616 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
10617 fi
10618
10619 if test "$wxUSE_PCX" = yes; then
10620 echo "$as_me:$LINENO: result: yes" >&5
10621echo "${ECHO_T}yes" >&6
10622 else
10623 echo "$as_me:$LINENO: result: no" >&5
10624echo "${ECHO_T}no" >&6
10625 fi
10626
10627
10628 enablestring=
10629 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
10630echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
10631 no_cache=0
10632 # Check whether --enable-iff or --disable-iff was given.
10633if test "${enable_iff+set}" = set; then
10634 enableval="$enable_iff"
10635
10636 if test "$enableval" = yes; then
10637 ac_cv_use_iff='wxUSE_IFF=yes'
10638 else
10639 ac_cv_use_iff='wxUSE_IFF=no'
10640 fi
10641
10642else
10643
10644 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
10645 if test "x$LINE" != x ; then
10646 eval "DEFAULT_$LINE"
10647 else
10648 no_cache=1
10649 fi
10650
10651 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
10652
10653fi;
10654
10655 eval "$ac_cv_use_iff"
10656 if test "$no_cache" != 1; then
10657 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
10658 fi
10659
10660 if test "$wxUSE_IFF" = yes; then
10661 echo "$as_me:$LINENO: result: yes" >&5
10662echo "${ECHO_T}yes" >&6
10663 else
10664 echo "$as_me:$LINENO: result: no" >&5
10665echo "${ECHO_T}no" >&6
10666 fi
10667
10668
10669 enablestring=
10670 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
10671echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
10672 no_cache=0
10673 # Check whether --enable-pnm or --disable-pnm was given.
10674if test "${enable_pnm+set}" = set; then
10675 enableval="$enable_pnm"
10676
10677 if test "$enableval" = yes; then
10678 ac_cv_use_pnm='wxUSE_PNM=yes'
10679 else
10680 ac_cv_use_pnm='wxUSE_PNM=no'
10681 fi
10682
10683else
10684
10685 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
10686 if test "x$LINE" != x ; then
10687 eval "DEFAULT_$LINE"
10688 else
10689 no_cache=1
10690 fi
10691
10692 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
10693
10694fi;
10695
10696 eval "$ac_cv_use_pnm"
10697 if test "$no_cache" != 1; then
10698 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
10699 fi
10700
10701 if test "$wxUSE_PNM" = yes; then
10702 echo "$as_me:$LINENO: result: yes" >&5
10703echo "${ECHO_T}yes" >&6
10704 else
10705 echo "$as_me:$LINENO: result: no" >&5
10706echo "${ECHO_T}no" >&6
10707 fi
10708
10709
10710 enablestring=
10711 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
10712echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
10713 no_cache=0
10714 # Check whether --enable-xpm or --disable-xpm was given.
10715if test "${enable_xpm+set}" = set; then
10716 enableval="$enable_xpm"
10717
10718 if test "$enableval" = yes; then
10719 ac_cv_use_xpm='wxUSE_XPM=yes'
10720 else
10721 ac_cv_use_xpm='wxUSE_XPM=no'
10722 fi
10723
10724else
10725
10726 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
10727 if test "x$LINE" != x ; then
10728 eval "DEFAULT_$LINE"
10729 else
10730 no_cache=1
10731 fi
10732
10733 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
10734
10735fi;
10736
10737 eval "$ac_cv_use_xpm"
10738 if test "$no_cache" != 1; then
10739 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
10740 fi
10741
10742 if test "$wxUSE_XPM" = yes; then
10743 echo "$as_me:$LINENO: result: yes" >&5
10744echo "${ECHO_T}yes" >&6
10745 else
10746 echo "$as_me:$LINENO: result: no" >&5
10747echo "${ECHO_T}no" >&6
10748 fi
10749
10750
10751 enablestring=
10752 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
10753echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
10754 no_cache=0
10755 # Check whether --enable-ico_cur or --disable-ico_cur was given.
10756if test "${enable_ico_cur+set}" = set; then
10757 enableval="$enable_ico_cur"
10758
10759 if test "$enableval" = yes; then
10760 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
10761 else
10762 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
10763 fi
10764
10765else
10766
10767 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
10768 if test "x$LINE" != x ; then
10769 eval "DEFAULT_$LINE"
10770 else
10771 no_cache=1
10772 fi
10773
10774 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
10775
10776fi;
10777
10778 eval "$ac_cv_use_ico_cur"
10779 if test "$no_cache" != 1; then
10780 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
10781 fi
10782
10783 if test "$wxUSE_ICO_CUR" = yes; then
10784 echo "$as_me:$LINENO: result: yes" >&5
10785echo "${ECHO_T}yes" >&6
10786 else
10787 echo "$as_me:$LINENO: result: no" >&5
10788echo "${ECHO_T}no" >&6
10789 fi
10790
10791
10792fi
10793
10794
10795
ceec2216
RL
10796# Check whether --with-flavour or --without-flavour was given.
10797if test "${with_flavour+set}" = set; then
10798 withval="$with_flavour"
10799 WX_FLAVOUR="$withval"
10800fi;
10801
10802
10803
a848cd7e
SC
10804 enablestring=
10805 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
10806echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
10807 no_cache=0
10808 # Check whether --enable-official_build or --disable-official_build was given.
10809if test "${enable_official_build+set}" = set; then
10810 enableval="$enable_official_build"
10811
10812 if test "$enableval" = yes; then
10813 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
10814 else
10815 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
10816 fi
10817
10818else
10819
10820 LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
10821 if test "x$LINE" != x ; then
10822 eval "DEFAULT_$LINE"
10823 else
10824 no_cache=1
10825 fi
10826
10827 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
10828
10829fi;
10830
10831 eval "$ac_cv_use_official_build"
10832 if test "$no_cache" != 1; then
10833 echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
10834 fi
10835
10836 if test "$wxUSE_OFFICIAL_BUILD" = yes; then
10837 echo "$as_me:$LINENO: result: yes" >&5
10838echo "${ECHO_T}yes" >&6
10839 else
10840 echo "$as_me:$LINENO: result: no" >&5
10841echo "${ECHO_T}no" >&6
10842 fi
10843
10844# Check whether --enable-vendor or --disable-vendor was given.
10845if test "${enable_vendor+set}" = set; then
10846 enableval="$enable_vendor"
10847 VENDOR="$enableval"
10848fi;
10849if test "x$VENDOR" = "x"; then
10850 VENDOR="custom"
10851fi
10852
a848cd7e
SC
10853
10854
10855
10856 echo "saving argument cache $wx_arg_cache_file"
10857 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
10858
10859
10860
10861echo "$as_me:$LINENO: checking for toolkit" >&5
10862echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
10863
10864# In Wine, we need to default to MSW, not GTK or MOTIF
10865if test "$wxUSE_WINE" = "yes"; then
10866 DEFAULT_DEFAULT_wxUSE_GTK=0
10867 DEFAULT_DEFAULT_wxUSE_MOTIF=0
10868 DEFAULT_DEFAULT_wxUSE_MSW=1
10869 wxUSE_SHARED=no
10870fi
10871
f597b41c 10872
a848cd7e
SC
10873if test "$wxUSE_GUI" = "yes"; then
10874
10875 if test "$USE_BEOS" = 1; then
10876 { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
10877echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
10878 { (exit 1); exit 1; }; }
10879 fi
10880
10881 if test "$TOOLKIT_GIVEN" = 1; then
10882 for toolkit in `echo $ALL_TOOLKITS`; do
10883 var=wxUSE_$toolkit
10884 eval "value=\$${var}"
f34ca037
MW
10885 if test "x$value" = "xno"; then
10886 eval "$var=0"
10887 elif test "x$value" != "x"; then
10888 eval "$var=1"
10889 fi
10890
10891 if test "x$value" != "x" -a "x$value" != "xyes" -a "x$value" != "xno"; then
10892 eval "wx${toolkit}_VERSION=$value"
10893 fi
a848cd7e
SC
10894 done
10895 else
10896 for toolkit in `echo $ALL_TOOLKITS`; do
10897 if test "$has_toolkit_in_cache" != 1; then
10898 var=DEFAULT_DEFAULT_wxUSE_$toolkit
10899 else
10900 var=DEFAULT_wxUSE_$toolkit
f34ca037
MW
10901
10902 eval "version=\$DEFAULT_wx${toolkit}_VERSION"
10903 if test "x$version" != "x"; then
10904 eval "wx${toolkit}_VERSION=$version"
10905 fi
a848cd7e
SC
10906 fi
10907 eval "wxUSE_$toolkit=\$${var}"
10908 done
10909 fi
10910
10911 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
10912 + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
10913 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
10914
10915 case "${host}" in
10916 *-pc-os2_emx | *-pc-os2-emx )
10917 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
10918 esac
10919
10920 case "$NUM_TOOLKITS" in
10921 1)
10922 ;;
10923 0)
10924 { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
10925echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
10926 { (exit 1); exit 1; }; }
10927 ;;
10928 *)
10929 { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
10930echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
10931 { (exit 1); exit 1; }; }
10932 esac
10933
f34ca037
MW
10934 # to be removed when --disable-gtk2 isn't needed
10935 if test "x$wxUSE_GTK2" = "xyes"; then
10936 wxGTK_VERSION=2
10937 elif test "x$wxUSE_GTK2" = "xno"; then
10938 wxGTK_VERSION=1
10939 fi
10940
a848cd7e
SC
10941 for toolkit in `echo $ALL_TOOLKITS`; do
10942 var=wxUSE_$toolkit
10943 eval "value=\$${var}"
10944 if test "x$value" != x; then
10945 cache_var=CACHE_$toolkit
10946 eval "cache=\$${cache_var}"
10947 if test "$cache" = 1; then
10948 echo "$var=$value" >> ${wx_arg_cache_file}
f34ca037
MW
10949 eval "version=\$wx${toolkit}_VERSION"
10950 if test "x$version" != "x"; then
10951 echo "wx${toolkit}_VERSION=$version" >> ${wx_arg_cache_file}
10952 fi
a848cd7e
SC
10953 fi
10954 if test "$value" = 1; then
10955 toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
10956 echo "$as_me:$LINENO: result: $toolkit_echo" >&5
10957echo "${ECHO_T}$toolkit_echo" >&6
10958 fi
10959 fi
10960 done
10961else
10962 if test "x$host_alias" != "x"; then
10963 echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
10964echo "${ECHO_T}base ($host_alias hosted) only" >&6
10965 else
10966 echo "$as_me:$LINENO: result: base only" >&5
10967echo "${ECHO_T}base only" >&6
10968 fi
10969fi
10970
10971wants_win32=0
10972doesnt_want_win32=0
10973case "${host}" in
10974 *-*-cygwin*)
10975 if test "$wxUSE_MSW" = 1 ; then
10976 wants_win32=1
7275146d 10977 BAKEFILE_FORCE_PLATFORM=win32
a848cd7e
SC
10978 else
10979 doesnt_want_win32=1
10980 fi
10981 ;;
10982 *-*-mingw*)
10983 wants_win32=1
10984 ;;
10985esac
10986
10987if test "$wxUSE_WINE" = "yes"; then
10988 wants_win32=1
10989 CC=winegcc
10990 CXX=wineg++
a848cd7e
SC
10991 LDFLAGS_GUI="-mwindows"
10992fi
10993
10994if test "$wants_win32" = 1 ; then
10995 USE_UNIX=0
10996 USE_WIN32=1
10997 cat >>confdefs.h <<\_ACEOF
10998#define __WIN32__ 1
10999_ACEOF
11000
11001 cat >>confdefs.h <<\_ACEOF
11002#define __WIN95__ 1
11003_ACEOF
11004
11005 cat >>confdefs.h <<\_ACEOF
11006#define __WINDOWS__ 1
11007_ACEOF
11008
11009 cat >>confdefs.h <<\_ACEOF
11010#define __GNUWIN32__ 1
11011_ACEOF
11012
11013 cat >>confdefs.h <<\_ACEOF
11014#define STRICT 1
11015_ACEOF
11016
11017 cat >>confdefs.h <<\_ACEOF
11018#define WINVER 0x0400
11019_ACEOF
11020
11021fi
11022if test "$doesnt_want_win32" = 1 ; then
11023 USE_UNIX=1
11024 USE_WIN32=0
11025fi
11026
11027if test "$USE_UNIX" = 1 ; then
11028 wxUSE_UNIX=yes
11029 cat >>confdefs.h <<\_ACEOF
11030#define __UNIX__ 1
11031_ACEOF
11032
11033fi
11034
11035
11036cat >confcache <<\_ACEOF
11037# This file is a shell script that caches the results of configure
11038# tests run on this system so they can be shared between configure
11039# scripts and configure runs, see configure's option --config-cache.
11040# It is not useful on other systems. If it contains results you don't
11041# want to keep, you may remove or edit it.
11042#
11043# config.status only pays attention to the cache file if you give it
11044# the --recheck option to rerun configure.
11045#
11046# `ac_cv_env_foo' variables (set or unset) will be overridden when
11047# loading this file, other *unset* `ac_cv_foo' will be assigned the
11048# following values.
11049
11050_ACEOF
11051
11052# The following way of writing the cache mishandles newlines in values,
11053# but we know of no workaround that is simple, portable, and efficient.
11054# So, don't put newlines in cache variables' values.
11055# Ultrix sh set writes to stderr and can't be redirected directly,
11056# and sets the high bit in the cache file unless we assign to the vars.
11057{
11058 (set) 2>&1 |
11059 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11060 *ac_space=\ *)
11061 # `set' does not quote correctly, so add quotes (double-quote
11062 # substitution turns \\\\ into \\, and sed turns \\ into \).
11063 sed -n \
ac1cb8d3
VS
11064 "s/'/'\\\\''/g;
11065 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
11066 ;;
11067 *)
11068 # `set' quotes correctly as required by POSIX, so do not add quotes.
11069 sed -n \
ac1cb8d3 11070 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
11071 ;;
11072 esac;
11073} |
11074 sed '
11075 t clear
11076 : clear
11077 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11078 t end
11079 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11080 : end' >>confcache
11081if diff $cache_file confcache >/dev/null 2>&1; then :; else
11082 if test -w $cache_file; then
11083 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11084 cat confcache >$cache_file
11085 else
11086 echo "not updating unwritable cache $cache_file"
11087 fi
11088fi
11089rm -f confcache
11090
a848cd7e 11091CFLAGS=${CFLAGS:=}
6dcfc289
DE
11092
11093
3006edc0 11094
6dcfc289 11095 ac_ext=c
a848cd7e
SC
11096ac_cpp='$CPP $CPPFLAGS'
11097ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11098ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11099ac_compiler_gnu=$ac_cv_c_compiler_gnu
11100if test -n "$ac_tool_prefix"; then
11101 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11102set dummy ${ac_tool_prefix}gcc; ac_word=$2
11103echo "$as_me:$LINENO: checking for $ac_word" >&5
11104echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11105if test "${ac_cv_prog_CC+set}" = set; then
11106 echo $ECHO_N "(cached) $ECHO_C" >&6
11107else
11108 if test -n "$CC"; then
11109 ac_cv_prog_CC="$CC" # Let the user override the test.
11110else
11111as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11112for as_dir in $PATH
11113do
11114 IFS=$as_save_IFS
11115 test -z "$as_dir" && as_dir=.
11116 for ac_exec_ext in '' $ac_executable_extensions; do
11117 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11118 ac_cv_prog_CC="${ac_tool_prefix}gcc"
11119 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11120 break 2
11121 fi
11122done
11123done
11124
11125fi
11126fi
11127CC=$ac_cv_prog_CC
11128if test -n "$CC"; then
11129 echo "$as_me:$LINENO: result: $CC" >&5
11130echo "${ECHO_T}$CC" >&6
11131else
11132 echo "$as_me:$LINENO: result: no" >&5
11133echo "${ECHO_T}no" >&6
11134fi
11135
11136fi
11137if test -z "$ac_cv_prog_CC"; then
11138 ac_ct_CC=$CC
11139 # Extract the first word of "gcc", so it can be a program name with args.
11140set dummy gcc; ac_word=$2
11141echo "$as_me:$LINENO: checking for $ac_word" >&5
11142echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11143if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11144 echo $ECHO_N "(cached) $ECHO_C" >&6
11145else
11146 if test -n "$ac_ct_CC"; then
11147 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11148else
11149as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11150for as_dir in $PATH
11151do
11152 IFS=$as_save_IFS
11153 test -z "$as_dir" && as_dir=.
11154 for ac_exec_ext in '' $ac_executable_extensions; do
11155 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11156 ac_cv_prog_ac_ct_CC="gcc"
11157 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11158 break 2
11159 fi
11160done
11161done
11162
11163fi
11164fi
11165ac_ct_CC=$ac_cv_prog_ac_ct_CC
11166if test -n "$ac_ct_CC"; then
11167 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11168echo "${ECHO_T}$ac_ct_CC" >&6
11169else
11170 echo "$as_me:$LINENO: result: no" >&5
11171echo "${ECHO_T}no" >&6
11172fi
11173
11174 CC=$ac_ct_CC
11175else
11176 CC="$ac_cv_prog_CC"
11177fi
11178
11179if test -z "$CC"; then
11180 if test -n "$ac_tool_prefix"; then
11181 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11182set dummy ${ac_tool_prefix}cc; ac_word=$2
11183echo "$as_me:$LINENO: checking for $ac_word" >&5
11184echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11185if test "${ac_cv_prog_CC+set}" = set; then
11186 echo $ECHO_N "(cached) $ECHO_C" >&6
11187else
11188 if test -n "$CC"; then
11189 ac_cv_prog_CC="$CC" # Let the user override the test.
11190else
11191as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11192for as_dir in $PATH
11193do
11194 IFS=$as_save_IFS
11195 test -z "$as_dir" && as_dir=.
11196 for ac_exec_ext in '' $ac_executable_extensions; do
11197 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11198 ac_cv_prog_CC="${ac_tool_prefix}cc"
11199 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11200 break 2
11201 fi
11202done
11203done
11204
11205fi
11206fi
11207CC=$ac_cv_prog_CC
11208if test -n "$CC"; then
11209 echo "$as_me:$LINENO: result: $CC" >&5
11210echo "${ECHO_T}$CC" >&6
11211else
11212 echo "$as_me:$LINENO: result: no" >&5
11213echo "${ECHO_T}no" >&6
11214fi
11215
11216fi
11217if test -z "$ac_cv_prog_CC"; then
11218 ac_ct_CC=$CC
11219 # Extract the first word of "cc", so it can be a program name with args.
11220set dummy cc; ac_word=$2
11221echo "$as_me:$LINENO: checking for $ac_word" >&5
11222echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11223if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11224 echo $ECHO_N "(cached) $ECHO_C" >&6
11225else
11226 if test -n "$ac_ct_CC"; then
11227 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11228else
11229as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11230for as_dir in $PATH
11231do
11232 IFS=$as_save_IFS
11233 test -z "$as_dir" && as_dir=.
11234 for ac_exec_ext in '' $ac_executable_extensions; do
11235 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11236 ac_cv_prog_ac_ct_CC="cc"
11237 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11238 break 2
11239 fi
11240done
11241done
11242
11243fi
11244fi
11245ac_ct_CC=$ac_cv_prog_ac_ct_CC
11246if test -n "$ac_ct_CC"; then
11247 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11248echo "${ECHO_T}$ac_ct_CC" >&6
11249else
11250 echo "$as_me:$LINENO: result: no" >&5
11251echo "${ECHO_T}no" >&6
11252fi
11253
11254 CC=$ac_ct_CC
11255else
11256 CC="$ac_cv_prog_CC"
11257fi
11258
11259fi
11260if test -z "$CC"; then
11261 # Extract the first word of "cc", so it can be a program name with args.
11262set dummy cc; ac_word=$2
11263echo "$as_me:$LINENO: checking for $ac_word" >&5
11264echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11265if test "${ac_cv_prog_CC+set}" = set; then
11266 echo $ECHO_N "(cached) $ECHO_C" >&6
11267else
11268 if test -n "$CC"; then
11269 ac_cv_prog_CC="$CC" # Let the user override the test.
11270else
11271 ac_prog_rejected=no
11272as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11273for as_dir in $PATH
11274do
11275 IFS=$as_save_IFS
11276 test -z "$as_dir" && as_dir=.
11277 for ac_exec_ext in '' $ac_executable_extensions; do
11278 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11279 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11280 ac_prog_rejected=yes
11281 continue
11282 fi
11283 ac_cv_prog_CC="cc"
11284 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11285 break 2
11286 fi
11287done
11288done
11289
11290if test $ac_prog_rejected = yes; then
11291 # We found a bogon in the path, so make sure we never use it.
11292 set dummy $ac_cv_prog_CC
11293 shift
11294 if test $# != 0; then
11295 # We chose a different compiler from the bogus one.
11296 # However, it has the same basename, so the bogon will be chosen
11297 # first if we set CC to just the basename; use the full file name.
11298 shift
11299 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11300 fi
11301fi
11302fi
11303fi
11304CC=$ac_cv_prog_CC
11305if test -n "$CC"; then
11306 echo "$as_me:$LINENO: result: $CC" >&5
11307echo "${ECHO_T}$CC" >&6
11308else
11309 echo "$as_me:$LINENO: result: no" >&5
11310echo "${ECHO_T}no" >&6
11311fi
11312
11313fi
11314if test -z "$CC"; then
11315 if test -n "$ac_tool_prefix"; then
11316 for ac_prog in cl
11317 do
11318 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11319set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11320echo "$as_me:$LINENO: checking for $ac_word" >&5
11321echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11322if test "${ac_cv_prog_CC+set}" = set; then
11323 echo $ECHO_N "(cached) $ECHO_C" >&6
11324else
11325 if test -n "$CC"; then
11326 ac_cv_prog_CC="$CC" # Let the user override the test.
11327else
11328as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11329for as_dir in $PATH
11330do
11331 IFS=$as_save_IFS
11332 test -z "$as_dir" && as_dir=.
11333 for ac_exec_ext in '' $ac_executable_extensions; do
11334 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11335 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11336 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11337 break 2
11338 fi
11339done
11340done
11341
11342fi
11343fi
11344CC=$ac_cv_prog_CC
11345if test -n "$CC"; then
11346 echo "$as_me:$LINENO: result: $CC" >&5
11347echo "${ECHO_T}$CC" >&6
11348else
11349 echo "$as_me:$LINENO: result: no" >&5
11350echo "${ECHO_T}no" >&6
11351fi
11352
11353 test -n "$CC" && break
11354 done
11355fi
11356if test -z "$CC"; then
11357 ac_ct_CC=$CC
11358 for ac_prog in cl
11359do
11360 # Extract the first word of "$ac_prog", so it can be a program name with args.
11361set dummy $ac_prog; ac_word=$2
11362echo "$as_me:$LINENO: checking for $ac_word" >&5
11363echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11364if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11365 echo $ECHO_N "(cached) $ECHO_C" >&6
11366else
11367 if test -n "$ac_ct_CC"; then
11368 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11369else
11370as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11371for as_dir in $PATH
11372do
11373 IFS=$as_save_IFS
11374 test -z "$as_dir" && as_dir=.
11375 for ac_exec_ext in '' $ac_executable_extensions; do
11376 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11377 ac_cv_prog_ac_ct_CC="$ac_prog"
11378 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11379 break 2
11380 fi
11381done
11382done
11383
11384fi
11385fi
11386ac_ct_CC=$ac_cv_prog_ac_ct_CC
11387if test -n "$ac_ct_CC"; then
11388 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11389echo "${ECHO_T}$ac_ct_CC" >&6
11390else
11391 echo "$as_me:$LINENO: result: no" >&5
11392echo "${ECHO_T}no" >&6
11393fi
11394
11395 test -n "$ac_ct_CC" && break
11396done
11397
11398 CC=$ac_ct_CC
11399fi
11400
11401fi
11402
11403
11404test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
11405See \`config.log' for more details." >&5
11406echo "$as_me: error: no acceptable C compiler found in \$PATH
11407See \`config.log' for more details." >&2;}
11408 { (exit 1); exit 1; }; }
11409
11410# Provide some information about the compiler.
11411echo "$as_me:$LINENO:" \
11412 "checking for C compiler version" >&5
11413ac_compiler=`set X $ac_compile; echo $2`
11414{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11415 (eval $ac_compiler --version </dev/null >&5) 2>&5
11416 ac_status=$?
11417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11418 (exit $ac_status); }
11419{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11420 (eval $ac_compiler -v </dev/null >&5) 2>&5
11421 ac_status=$?
11422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11423 (exit $ac_status); }
11424{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11425 (eval $ac_compiler -V </dev/null >&5) 2>&5
11426 ac_status=$?
11427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11428 (exit $ac_status); }
11429
11430cat >conftest.$ac_ext <<_ACEOF
11431/* confdefs.h. */
11432_ACEOF
11433cat confdefs.h >>conftest.$ac_ext
11434cat >>conftest.$ac_ext <<_ACEOF
11435/* end confdefs.h. */
11436
11437int
11438main ()
11439{
11440
11441 ;
11442 return 0;
11443}
11444_ACEOF
11445ac_clean_files_save=$ac_clean_files
11446ac_clean_files="$ac_clean_files a.out a.exe b.out"
11447# Try to create an executable without -o first, disregard a.out.
11448# It will help us diagnose broken compilers, and finding out an intuition
11449# of exeext.
ac1cb8d3
VS
11450echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
11451echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
a848cd7e
SC
11452ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
11453if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
11454 (eval $ac_link_default) 2>&5
11455 ac_status=$?
11456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11457 (exit $ac_status); }; then
11458 # Find the output, starting from the most likely. This scheme is
11459# not robust to junk in `.', hence go to wildcards (a.*) only as a last
11460# resort.
11461
11462# Be careful to initialize this variable, since it used to be cached.
11463# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
11464ac_cv_exeext=
11465# b.out is created by i960 compilers.
11466for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
11467do
11468 test -f "$ac_file" || continue
11469 case $ac_file in
11470 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
ac1cb8d3 11471 ;;
a848cd7e 11472 conftest.$ac_ext )
ac1cb8d3
VS
11473 # This is the source file.
11474 ;;
a848cd7e 11475 [ab].out )
ac1cb8d3
VS
11476 # We found the default executable, but exeext='' is most
11477 # certainly right.
11478 break;;
a848cd7e 11479 *.* )
ac1cb8d3
VS
11480 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
11481 # FIXME: I believe we export ac_cv_exeext for Libtool,
11482 # but it would be cool to find out if it's true. Does anybody
11483 # maintain Libtool? --akim.
11484 export ac_cv_exeext
11485 break;;
a848cd7e 11486 * )
ac1cb8d3 11487 break;;
a848cd7e
SC
11488 esac
11489done
11490else
11491 echo "$as_me: failed program was:" >&5
11492sed 's/^/| /' conftest.$ac_ext >&5
11493
11494{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
11495See \`config.log' for more details." >&5
11496echo "$as_me: error: C compiler cannot create executables
11497See \`config.log' for more details." >&2;}
11498 { (exit 77); exit 77; }; }
11499fi
11500
11501ac_exeext=$ac_cv_exeext
11502echo "$as_me:$LINENO: result: $ac_file" >&5
11503echo "${ECHO_T}$ac_file" >&6
11504
11505# Check the compiler produces executables we can run. If not, either
11506# the compiler is broken, or we cross compile.
11507echo "$as_me:$LINENO: checking whether the C compiler works" >&5
11508echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
11509# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
11510# If not cross compiling, check that we can run a simple program.
11511if test "$cross_compiling" != yes; then
11512 if { ac_try='./$ac_file'
11513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11514 (eval $ac_try) 2>&5
11515 ac_status=$?
11516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11517 (exit $ac_status); }; }; then
11518 cross_compiling=no
11519 else
11520 if test "$cross_compiling" = maybe; then
11521 cross_compiling=yes
11522 else
11523 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
11524If you meant to cross compile, use \`--host'.
11525See \`config.log' for more details." >&5
11526echo "$as_me: error: cannot run C compiled programs.
11527If you meant to cross compile, use \`--host'.
11528See \`config.log' for more details." >&2;}
11529 { (exit 1); exit 1; }; }
11530 fi
11531 fi
11532fi
11533echo "$as_me:$LINENO: result: yes" >&5
11534echo "${ECHO_T}yes" >&6
11535
11536rm -f a.out a.exe conftest$ac_cv_exeext b.out
11537ac_clean_files=$ac_clean_files_save
11538# Check the compiler produces executables we can run. If not, either
11539# the compiler is broken, or we cross compile.
11540echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
11541echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
11542echo "$as_me:$LINENO: result: $cross_compiling" >&5
11543echo "${ECHO_T}$cross_compiling" >&6
11544
11545echo "$as_me:$LINENO: checking for suffix of executables" >&5
11546echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
11547if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11548 (eval $ac_link) 2>&5
11549 ac_status=$?
11550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11551 (exit $ac_status); }; then
11552 # If both `conftest.exe' and `conftest' are `present' (well, observable)
11553# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
11554# work properly (i.e., refer to `conftest.exe'), while it won't with
11555# `rm'.
11556for ac_file in conftest.exe conftest conftest.*; do
11557 test -f "$ac_file" || continue
11558 case $ac_file in
11559 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
11560 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
ac1cb8d3
VS
11561 export ac_cv_exeext
11562 break;;
a848cd7e
SC
11563 * ) break;;
11564 esac
11565done
11566else
11567 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
11568See \`config.log' for more details." >&5
11569echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
11570See \`config.log' for more details." >&2;}
11571 { (exit 1); exit 1; }; }
11572fi
11573
11574rm -f conftest$ac_cv_exeext
11575echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
11576echo "${ECHO_T}$ac_cv_exeext" >&6
11577
11578rm -f conftest.$ac_ext
11579EXEEXT=$ac_cv_exeext
11580ac_exeext=$EXEEXT
11581echo "$as_me:$LINENO: checking for suffix of object files" >&5
11582echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
11583if test "${ac_cv_objext+set}" = set; then
11584 echo $ECHO_N "(cached) $ECHO_C" >&6
11585else
11586 cat >conftest.$ac_ext <<_ACEOF
11587/* confdefs.h. */
11588_ACEOF
11589cat confdefs.h >>conftest.$ac_ext
11590cat >>conftest.$ac_ext <<_ACEOF
11591/* end confdefs.h. */
11592
11593int
11594main ()
11595{
11596
11597 ;
11598 return 0;
11599}
11600_ACEOF
11601rm -f conftest.o conftest.obj
11602if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11603 (eval $ac_compile) 2>&5
11604 ac_status=$?
11605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11606 (exit $ac_status); }; then
11607 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
11608 case $ac_file in
11609 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
11610 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
11611 break;;
11612 esac
11613done
11614else
11615 echo "$as_me: failed program was:" >&5
11616sed 's/^/| /' conftest.$ac_ext >&5
11617
11618{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
11619See \`config.log' for more details." >&5
11620echo "$as_me: error: cannot compute suffix of object files: cannot compile
11621See \`config.log' for more details." >&2;}
11622 { (exit 1); exit 1; }; }
11623fi
11624
11625rm -f conftest.$ac_cv_objext conftest.$ac_ext
11626fi
11627echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
11628echo "${ECHO_T}$ac_cv_objext" >&6
11629OBJEXT=$ac_cv_objext
11630ac_objext=$OBJEXT
11631echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
11632echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
11633if test "${ac_cv_c_compiler_gnu+set}" = set; then
11634 echo $ECHO_N "(cached) $ECHO_C" >&6
11635else
11636 cat >conftest.$ac_ext <<_ACEOF
11637/* confdefs.h. */
11638_ACEOF
11639cat confdefs.h >>conftest.$ac_ext
11640cat >>conftest.$ac_ext <<_ACEOF
11641/* end confdefs.h. */
11642
11643int
11644main ()
11645{
11646#ifndef __GNUC__
11647 choke me
11648#endif
11649
11650 ;
11651 return 0;
11652}
11653_ACEOF
11654rm -f conftest.$ac_objext
11655if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11656 (eval $ac_compile) 2>conftest.er1
a848cd7e 11657 ac_status=$?
ac1cb8d3
VS
11658 grep -v '^ *+' conftest.er1 >conftest.err
11659 rm -f conftest.er1
11660 cat conftest.err >&5
a848cd7e
SC
11661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11662 (exit $ac_status); } &&
f10e38c4 11663 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11665 (eval $ac_try) 2>&5
11666 ac_status=$?
11667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11668 (exit $ac_status); }; } &&
11669 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11671 (eval $ac_try) 2>&5
11672 ac_status=$?
11673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11674 (exit $ac_status); }; }; then
11675 ac_compiler_gnu=yes
11676else
11677 echo "$as_me: failed program was:" >&5
11678sed 's/^/| /' conftest.$ac_ext >&5
11679
11680ac_compiler_gnu=no
11681fi
ac1cb8d3 11682rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11683ac_cv_c_compiler_gnu=$ac_compiler_gnu
11684
11685fi
11686echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
11687echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
11688GCC=`test $ac_compiler_gnu = yes && echo yes`
11689ac_test_CFLAGS=${CFLAGS+set}
11690ac_save_CFLAGS=$CFLAGS
8aeeb05c 11691CFLAGS="-g"
a848cd7e
SC
11692echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
11693echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
11694if test "${ac_cv_prog_cc_g+set}" = set; then
11695 echo $ECHO_N "(cached) $ECHO_C" >&6
11696else
11697 cat >conftest.$ac_ext <<_ACEOF
11698/* confdefs.h. */
11699_ACEOF
11700cat confdefs.h >>conftest.$ac_ext
11701cat >>conftest.$ac_ext <<_ACEOF
11702/* end confdefs.h. */
11703
11704int
11705main ()
11706{
11707
11708 ;
11709 return 0;
11710}
11711_ACEOF
11712rm -f conftest.$ac_objext
11713if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11714 (eval $ac_compile) 2>conftest.er1
a848cd7e 11715 ac_status=$?
ac1cb8d3
VS
11716 grep -v '^ *+' conftest.er1 >conftest.err
11717 rm -f conftest.er1
11718 cat conftest.err >&5
a848cd7e
SC
11719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11720 (exit $ac_status); } &&
f10e38c4 11721 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11723 (eval $ac_try) 2>&5
11724 ac_status=$?
11725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11726 (exit $ac_status); }; } &&
11727 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11729 (eval $ac_try) 2>&5
11730 ac_status=$?
11731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11732 (exit $ac_status); }; }; then
11733 ac_cv_prog_cc_g=yes
11734else
11735 echo "$as_me: failed program was:" >&5
11736sed 's/^/| /' conftest.$ac_ext >&5
11737
11738ac_cv_prog_cc_g=no
11739fi
ac1cb8d3 11740rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11741fi
11742echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
11743echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
11744if test "$ac_test_CFLAGS" = set; then
11745 CFLAGS=$ac_save_CFLAGS
11746elif test $ac_cv_prog_cc_g = yes; then
11747 if test "$GCC" = yes; then
11748 CFLAGS="-g -O2"
11749 else
11750 CFLAGS="-g"
11751 fi
11752else
11753 if test "$GCC" = yes; then
11754 CFLAGS="-O2"
11755 else
11756 CFLAGS=
11757 fi
11758fi
11759echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
11760echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
11761if test "${ac_cv_prog_cc_stdc+set}" = set; then
11762 echo $ECHO_N "(cached) $ECHO_C" >&6
11763else
11764 ac_cv_prog_cc_stdc=no
11765ac_save_CC=$CC
11766cat >conftest.$ac_ext <<_ACEOF
11767/* confdefs.h. */
11768_ACEOF
11769cat confdefs.h >>conftest.$ac_ext
11770cat >>conftest.$ac_ext <<_ACEOF
11771/* end confdefs.h. */
11772#include <stdarg.h>
11773#include <stdio.h>
11774#include <sys/types.h>
11775#include <sys/stat.h>
11776/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11777struct buf { int x; };
11778FILE * (*rcsopen) (struct buf *, struct stat *, int);
11779static char *e (p, i)
11780 char **p;
11781 int i;
11782{
11783 return p[i];
11784}
11785static char *f (char * (*g) (char **, int), char **p, ...)
11786{
11787 char *s;
11788 va_list v;
11789 va_start (v,p);
11790 s = g (p, va_arg (v,int));
11791 va_end (v);
11792 return s;
11793}
ac1cb8d3
VS
11794
11795/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
11796 function prototypes and stuff, but not '\xHH' hex character constants.
11797 These don't provoke an error unfortunately, instead are silently treated
11798 as 'x'. The following induces an error, until -std1 is added to get
11799 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
11800 array size at least. It's necessary to write '\x00'==0 to get something
11801 that's true only with -std1. */
11802int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11803
a848cd7e
SC
11804int test (int i, double x);
11805struct s1 {int (*f) (int a);};
11806struct s2 {int (*f) (double a);};
11807int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11808int argc;
11809char **argv;
11810int
11811main ()
11812{
11813return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11814 ;
11815 return 0;
11816}
11817_ACEOF
11818# Don't try gcc -ansi; that turns off useful extensions and
11819# breaks some systems' header files.
11820# AIX -qlanglvl=ansi
11821# Ultrix and OSF/1 -std1
11822# HP-UX 10.20 and later -Ae
11823# HP-UX older versions -Aa -D_HPUX_SOURCE
11824# SVR4 -Xc -D__EXTENSIONS__
11825for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11826do
11827 CC="$ac_save_CC $ac_arg"
11828 rm -f conftest.$ac_objext
11829if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11830 (eval $ac_compile) 2>conftest.er1
a848cd7e 11831 ac_status=$?
ac1cb8d3
VS
11832 grep -v '^ *+' conftest.er1 >conftest.err
11833 rm -f conftest.er1
11834 cat conftest.err >&5
a848cd7e
SC
11835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11836 (exit $ac_status); } &&
f10e38c4 11837 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11839 (eval $ac_try) 2>&5
11840 ac_status=$?
11841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11842 (exit $ac_status); }; } &&
11843 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11845 (eval $ac_try) 2>&5
11846 ac_status=$?
11847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11848 (exit $ac_status); }; }; then
11849 ac_cv_prog_cc_stdc=$ac_arg
11850break
11851else
11852 echo "$as_me: failed program was:" >&5
11853sed 's/^/| /' conftest.$ac_ext >&5
11854
11855fi
ac1cb8d3 11856rm -f conftest.err conftest.$ac_objext
a848cd7e
SC
11857done
11858rm -f conftest.$ac_ext conftest.$ac_objext
11859CC=$ac_save_CC
11860
11861fi
11862
11863case "x$ac_cv_prog_cc_stdc" in
11864 x|xno)
11865 echo "$as_me:$LINENO: result: none needed" >&5
11866echo "${ECHO_T}none needed" >&6 ;;
11867 *)
11868 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
11869echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
11870 CC="$CC $ac_cv_prog_cc_stdc" ;;
11871esac
11872
11873# Some people use a C++ compiler to compile C. Since we use `exit',
11874# in C++ we need to declare it. In case someone uses the same compiler
11875# for both compiling C and C++ we need to have the C++ compiler decide
11876# the declaration of exit, since it's the most demanding environment.
11877cat >conftest.$ac_ext <<_ACEOF
11878#ifndef __cplusplus
11879 choke me
11880#endif
11881_ACEOF
11882rm -f conftest.$ac_objext
11883if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11884 (eval $ac_compile) 2>conftest.er1
a848cd7e 11885 ac_status=$?
ac1cb8d3
VS
11886 grep -v '^ *+' conftest.er1 >conftest.err
11887 rm -f conftest.er1
11888 cat conftest.err >&5
a848cd7e
SC
11889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11890 (exit $ac_status); } &&
f10e38c4 11891 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11893 (eval $ac_try) 2>&5
11894 ac_status=$?
11895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11896 (exit $ac_status); }; } &&
11897 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11899 (eval $ac_try) 2>&5
11900 ac_status=$?
11901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11902 (exit $ac_status); }; }; then
11903 for ac_declaration in \
ac1cb8d3 11904 '' \
a848cd7e
SC
11905 'extern "C" void std::exit (int) throw (); using std::exit;' \
11906 'extern "C" void std::exit (int); using std::exit;' \
11907 'extern "C" void exit (int) throw ();' \
11908 'extern "C" void exit (int);' \
11909 'void exit (int);'
11910do
11911 cat >conftest.$ac_ext <<_ACEOF
11912/* confdefs.h. */
11913_ACEOF
11914cat confdefs.h >>conftest.$ac_ext
11915cat >>conftest.$ac_ext <<_ACEOF
11916/* end confdefs.h. */
de59c161 11917$ac_declaration
ac1cb8d3 11918#include <stdlib.h>
a848cd7e
SC
11919int
11920main ()
11921{
11922exit (42);
11923 ;
11924 return 0;
11925}
11926_ACEOF
11927rm -f conftest.$ac_objext
11928if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11929 (eval $ac_compile) 2>conftest.er1
a848cd7e 11930 ac_status=$?
ac1cb8d3
VS
11931 grep -v '^ *+' conftest.er1 >conftest.err
11932 rm -f conftest.er1
11933 cat conftest.err >&5
a848cd7e
SC
11934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11935 (exit $ac_status); } &&
f10e38c4 11936 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11938 (eval $ac_try) 2>&5
11939 ac_status=$?
11940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11941 (exit $ac_status); }; } &&
11942 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11944 (eval $ac_try) 2>&5
11945 ac_status=$?
11946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11947 (exit $ac_status); }; }; then
11948 :
11949else
11950 echo "$as_me: failed program was:" >&5
11951sed 's/^/| /' conftest.$ac_ext >&5
11952
11953continue
11954fi
ac1cb8d3 11955rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11956 cat >conftest.$ac_ext <<_ACEOF
11957/* confdefs.h. */
11958_ACEOF
11959cat confdefs.h >>conftest.$ac_ext
11960cat >>conftest.$ac_ext <<_ACEOF
11961/* end confdefs.h. */
11962$ac_declaration
11963int
11964main ()
11965{
11966exit (42);
11967 ;
11968 return 0;
11969}
11970_ACEOF
11971rm -f conftest.$ac_objext
11972if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11973 (eval $ac_compile) 2>conftest.er1
a848cd7e 11974 ac_status=$?
ac1cb8d3
VS
11975 grep -v '^ *+' conftest.er1 >conftest.err
11976 rm -f conftest.er1
11977 cat conftest.err >&5
a848cd7e
SC
11978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11979 (exit $ac_status); } &&
f10e38c4 11980 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11982 (eval $ac_try) 2>&5
11983 ac_status=$?
11984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11985 (exit $ac_status); }; } &&
11986 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11988 (eval $ac_try) 2>&5
11989 ac_status=$?
11990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11991 (exit $ac_status); }; }; then
11992 break
11993else
11994 echo "$as_me: failed program was:" >&5
11995sed 's/^/| /' conftest.$ac_ext >&5
11996
11997fi
ac1cb8d3 11998rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11999done
12000rm -f conftest*
12001if test -n "$ac_declaration"; then
12002 echo '#ifdef __cplusplus' >>confdefs.h
12003 echo $ac_declaration >>confdefs.h
12004 echo '#endif' >>confdefs.h
12005fi
12006
12007else
12008 echo "$as_me: failed program was:" >&5
12009sed 's/^/| /' conftest.$ac_ext >&5
12010
12011fi
ac1cb8d3 12012rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12013ac_ext=c
12014ac_cpp='$CPP $CPPFLAGS'
12015ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12016ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12017ac_compiler_gnu=$ac_cv_c_compiler_gnu
12018
ab0ad5f1
VZ
12019
12020
12021 ac_ext=c
12022ac_cpp='$CPP $CPPFLAGS'
12023ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12024ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12025ac_compiler_gnu=$ac_cv_c_compiler_gnu
12026
12027 echo "$as_me:$LINENO: checking whether we are using the Intel C compiler" >&5
12028echo $ECHO_N "checking whether we are using the Intel C compiler... $ECHO_C" >&6
12029if test "${bakefile_cv_c_compiler___INTEL_COMPILER+set}" = set; then
12030 echo $ECHO_N "(cached) $ECHO_C" >&6
12031else
12032 cat >conftest.$ac_ext <<_ACEOF
12033/* confdefs.h. */
12034_ACEOF
12035cat confdefs.h >>conftest.$ac_ext
12036cat >>conftest.$ac_ext <<_ACEOF
12037/* end confdefs.h. */
12038
12039int
12040main ()
12041{
12042
12043 #ifndef __INTEL_COMPILER
12044 choke me
12045 #endif
12046
12047 ;
12048 return 0;
12049}
12050_ACEOF
12051rm -f conftest.$ac_objext
12052if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12053 (eval $ac_compile) 2>conftest.er1
12054 ac_status=$?
12055 grep -v '^ *+' conftest.er1 >conftest.err
12056 rm -f conftest.er1
12057 cat conftest.err >&5
12058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12059 (exit $ac_status); } &&
f10e38c4 12060 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ab0ad5f1
VZ
12061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12062 (eval $ac_try) 2>&5
12063 ac_status=$?
12064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12065 (exit $ac_status); }; } &&
12066 { ac_try='test -s conftest.$ac_objext'
12067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12068 (eval $ac_try) 2>&5
12069 ac_status=$?
12070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12071 (exit $ac_status); }; }; then
12072 bakefile_cv_c_compiler___INTEL_COMPILER=yes
12073else
12074 echo "$as_me: failed program was:" >&5
12075sed 's/^/| /' conftest.$ac_ext >&5
12076
12077bakefile_cv_c_compiler___INTEL_COMPILER=no
12078
12079fi
12080rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12081
12082
12083fi
12084echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER" >&5
12085echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER" >&6
12086 ac_ext=c
12087ac_cpp='$CPP $CPPFLAGS'
12088ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12089ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12090ac_compiler_gnu=$ac_cv_c_compiler_gnu
12091
12092 if test "x$bakefile_cv_c_compiler___INTEL_COMPILER" = "xyes"; then
12093 :; INTELCC=yes
12094 else
12095 :;
12096 fi
12097
12098
12099 if test "x$GCC" != "xyes"; then
3006edc0
VZ
12100 if test "xCC" = "xC"; then
12101 echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
480ccd21 12102echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6
0093c2fc 12103if test "${bakefile_cv_c_exto+set}" = set; then
480ccd21
DE
12104 echo $ECHO_N "(cached) $ECHO_C" >&6
12105else
12106 cat >conftest.$ac_ext <<_ACEOF
12107/* confdefs.h. */
12108_ACEOF
12109cat confdefs.h >>conftest.$ac_ext
12110cat >>conftest.$ac_ext <<_ACEOF
12111/* end confdefs.h. */
12112
12113int
12114main ()
12115{
12116
12117 ;
12118 return 0;
12119}
12120_ACEOF
12121rm -f conftest.$ac_objext conftest.$ac_ext.o
12122if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12123 (eval $ac_compile) 2>&5
12124 ac_status=$?
12125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12126 (exit $ac_status); }; then
12127 for ac_file in `(ls conftest.* 2>/dev/null)`; do
12128 case $ac_file in
12129 conftest.$ac_ext.o)
0093c2fc 12130 bakefile_cv_c_exto="-ext o"
480ccd21
DE
12131 ;;
12132 *)
12133 ;;
12134 esac
12135done
12136else
12137 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
12138See \`config.log' for more details." >&5
12139echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
12140See \`config.log' for more details." >&2;}
12141 { (exit 1); exit 1; }; }
12142
12143fi
12144
12145rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
12146
12147fi
0093c2fc
VZ
12148echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5
12149echo "${ECHO_T}$bakefile_cv_c_exto" >&6
12150if test "x$bakefile_cv_c_exto" '!=' "x"; then
480ccd21 12151 if test "c" = "c"; then
0093c2fc 12152 CFLAGS="$bakefile_cv_c_exto $CFLAGS"
480ccd21
DE
12153 fi
12154 if test "c" = "cxx"; then
0093c2fc 12155 CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS"
480ccd21
DE
12156 fi
12157fi
12158
0093c2fc 12159 if test "x$bakefile_cv_c_exto" '!=' "x"; then
3006edc0
VZ
12160 unset ac_cv_prog_cc_g
12161 ac_test_CFLAGS=${CFLAGS+set}
480ccd21 12162ac_save_CFLAGS=$CFLAGS
8aeeb05c 12163CFLAGS="-g"
480ccd21
DE
12164echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12165echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
12166if test "${ac_cv_prog_cc_g+set}" = set; then
12167 echo $ECHO_N "(cached) $ECHO_C" >&6
12168else
12169 cat >conftest.$ac_ext <<_ACEOF
12170/* confdefs.h. */
12171_ACEOF
12172cat confdefs.h >>conftest.$ac_ext
12173cat >>conftest.$ac_ext <<_ACEOF
12174/* end confdefs.h. */
12175
12176int
12177main ()
12178{
12179
12180 ;
12181 return 0;
12182}
12183_ACEOF
12184rm -f conftest.$ac_objext
12185if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12186 (eval $ac_compile) 2>conftest.er1
12187 ac_status=$?
12188 grep -v '^ *+' conftest.er1 >conftest.err
12189 rm -f conftest.er1
12190 cat conftest.err >&5
12191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12192 (exit $ac_status); } &&
f10e38c4 12193 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
480ccd21
DE
12194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12195 (eval $ac_try) 2>&5
12196 ac_status=$?
12197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12198 (exit $ac_status); }; } &&
12199 { ac_try='test -s conftest.$ac_objext'
12200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12201 (eval $ac_try) 2>&5
12202 ac_status=$?
12203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12204 (exit $ac_status); }; }; then
12205 ac_cv_prog_cc_g=yes
12206else
12207 echo "$as_me: failed program was:" >&5
12208sed 's/^/| /' conftest.$ac_ext >&5
12209
12210ac_cv_prog_cc_g=no
12211fi
12212rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12213fi
12214echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12215echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
12216if test "$ac_test_CFLAGS" = set; then
12217 CFLAGS=$ac_save_CFLAGS
12218elif test $ac_cv_prog_cc_g = yes; then
12219 if test "$GCC" = yes; then
12220 CFLAGS="-g -O2"
12221 else
12222 CFLAGS="-g"
12223 fi
12224else
12225 if test "$GCC" = yes; then
12226 CFLAGS="-O2"
12227 else
12228 CFLAGS=
12229 fi
12230fi
3006edc0 12231 fi
ab0ad5f1 12232 fi
3006edc0
VZ
12233
12234 case `uname -s` in
12235 AIX*)
12236 ac_ext=c
12237ac_cpp='$CPP $CPPFLAGS'
12238ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12239ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12240ac_compiler_gnu=$ac_cv_c_compiler_gnu
12241
12242echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
12243echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6
0093c2fc 12244if test "${bakefile_cv_c_compiler_xlc+set}" = set; then
3006edc0
VZ
12245 echo $ECHO_N "(cached) $ECHO_C" >&6
12246else
12247 cat >conftest.$ac_ext <<_ACEOF
12248/* confdefs.h. */
12249_ACEOF
12250cat confdefs.h >>conftest.$ac_ext
12251cat >>conftest.$ac_ext <<_ACEOF
12252/* end confdefs.h. */
12253
12254int
12255main ()
12256{
12257#ifndef __xlC__
12258 choke me
12259#endif
12260
12261 ;
12262 return 0;
12263}
12264_ACEOF
12265rm -f conftest.$ac_objext
12266if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12267 (eval $ac_compile) 2>conftest.er1
12268 ac_status=$?
12269 grep -v '^ *+' conftest.er1 >conftest.err
12270 rm -f conftest.er1
12271 cat conftest.err >&5
12272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12273 (exit $ac_status); } &&
f10e38c4 12274 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3006edc0
VZ
12275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12276 (eval $ac_try) 2>&5
12277 ac_status=$?
12278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12279 (exit $ac_status); }; } &&
12280 { ac_try='test -s conftest.$ac_objext'
12281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12282 (eval $ac_try) 2>&5
12283 ac_status=$?
12284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12285 (exit $ac_status); }; }; then
0093c2fc 12286 bakefile_compiler_xlc=yes
3006edc0
VZ
12287else
12288 echo "$as_me: failed program was:" >&5
12289sed 's/^/| /' conftest.$ac_ext >&5
12290
0093c2fc 12291bakefile_compiler_xlc=no
3006edc0
VZ
12292fi
12293rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 12294 bakefile_cv_c_compiler_xlc=$bakefile_compiler_xlc
3006edc0
VZ
12295
12296fi
0093c2fc
VZ
12297echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_xlc" >&5
12298echo "${ECHO_T}$bakefile_cv_c_compiler_xlc" >&6
3006edc0 12299
0093c2fc 12300XLCC=`test $bakefile_cv_c_compiler_xlc = yes && echo yes`
3006edc0
VZ
12301ac_ext=c
12302ac_cpp='$CPP $CPPFLAGS'
12303ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12304ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12305ac_compiler_gnu=$ac_cv_c_compiler_gnu
12306
12307
12308 ;;
12309
12310 Darwin)
12311 ac_ext=c
95986553
DE
12312ac_cpp='$CPP $CPPFLAGS'
12313ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12314ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12315ac_compiler_gnu=$ac_cv_c_compiler_gnu
12316
12317echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5
12318echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6
12319if test "${bakefile_cv_c_compiler_mwerks+set}" = set; then
12320 echo $ECHO_N "(cached) $ECHO_C" >&6
12321else
12322 cat >conftest.$ac_ext <<_ACEOF
12323/* confdefs.h. */
12324_ACEOF
12325cat confdefs.h >>conftest.$ac_ext
12326cat >>conftest.$ac_ext <<_ACEOF
12327/* end confdefs.h. */
12328
12329int
12330main ()
12331{
12332#ifndef __MWERKS__
12333 choke me
12334#endif
12335
12336 ;
12337 return 0;
12338}
12339_ACEOF
12340rm -f conftest.$ac_objext
12341if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12342 (eval $ac_compile) 2>conftest.er1
12343 ac_status=$?
12344 grep -v '^ *+' conftest.er1 >conftest.err
12345 rm -f conftest.er1
12346 cat conftest.err >&5
12347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12348 (exit $ac_status); } &&
f10e38c4 12349 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
95986553
DE
12350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12351 (eval $ac_try) 2>&5
12352 ac_status=$?
12353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12354 (exit $ac_status); }; } &&
12355 { ac_try='test -s conftest.$ac_objext'
12356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12357 (eval $ac_try) 2>&5
12358 ac_status=$?
12359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12360 (exit $ac_status); }; }; then
12361 bakefile_compiler_mwerks=yes
12362else
12363 echo "$as_me: failed program was:" >&5
12364sed 's/^/| /' conftest.$ac_ext >&5
12365
12366bakefile_compiler_mwerks=no
12367fi
12368rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12369 bakefile_cv_c_compiler_mwerks=$bakefile_compiler_mwerks
12370
12371fi
12372echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_mwerks" >&5
12373echo "${ECHO_T}$bakefile_cv_c_compiler_mwerks" >&6
12374
0e6fa1d9 12375MWCC=`test $bakefile_cv_c_compiler_mwerks = yes && echo yes`
95986553
DE
12376ac_ext=c
12377ac_cpp='$CPP $CPPFLAGS'
12378ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12379ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12380ac_compiler_gnu=$ac_cv_c_compiler_gnu
12381
12382
3006edc0 12383 ac_ext=c
9273ffba
DE
12384ac_cpp='$CPP $CPPFLAGS'
12385ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12386ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12387ac_compiler_gnu=$ac_cv_c_compiler_gnu
12388
12389echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
12390echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6
0093c2fc 12391if test "${bakefile_cv_c_compiler_xlc+set}" = set; then
9273ffba
DE
12392 echo $ECHO_N "(cached) $ECHO_C" >&6
12393else
12394 cat >conftest.$ac_ext <<_ACEOF
12395/* confdefs.h. */
12396_ACEOF
12397cat confdefs.h >>conftest.$ac_ext
12398cat >>conftest.$ac_ext <<_ACEOF
12399/* end confdefs.h. */
12400
12401int
12402main ()
12403{
12404#ifndef __xlC__
12405 choke me
12406#endif
12407
12408 ;
12409 return 0;
12410}
12411_ACEOF
12412rm -f conftest.$ac_objext
12413if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12414 (eval $ac_compile) 2>conftest.er1
12415 ac_status=$?
12416 grep -v '^ *+' conftest.er1 >conftest.err
12417 rm -f conftest.er1
12418 cat conftest.err >&5
12419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12420 (exit $ac_status); } &&
f10e38c4 12421 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9273ffba
DE
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'
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
0093c2fc 12433 bakefile_compiler_xlc=yes
9273ffba
DE
12434else
12435 echo "$as_me: failed program was:" >&5
12436sed 's/^/| /' conftest.$ac_ext >&5
12437
0093c2fc 12438bakefile_compiler_xlc=no
9273ffba
DE
12439fi
12440rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 12441 bakefile_cv_c_compiler_xlc=$bakefile_compiler_xlc
9273ffba
DE
12442
12443fi
0093c2fc
VZ
12444echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_xlc" >&5
12445echo "${ECHO_T}$bakefile_cv_c_compiler_xlc" >&6
9273ffba 12446
0093c2fc 12447XLCC=`test $bakefile_cv_c_compiler_xlc = yes && echo yes`
9273ffba
DE
12448ac_ext=c
12449ac_cpp='$CPP $CPPFLAGS'
12450ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12451ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12452ac_compiler_gnu=$ac_cv_c_compiler_gnu
12453
12454
3006edc0
VZ
12455 ;;
12456
12457 IRIX*)
a848cd7e 12458
6dcfc289 12459
0ad5d837
VZ
12460 ac_ext=c
12461ac_cpp='$CPP $CPPFLAGS'
12462ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12463ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12464ac_compiler_gnu=$ac_cv_c_compiler_gnu
12465
12466 echo "$as_me:$LINENO: checking whether we are using the SGI C compiler" >&5
12467echo $ECHO_N "checking whether we are using the SGI C compiler... $ECHO_C" >&6
12468if test "${bakefile_cv_c_compiler__SGI_COMPILER_VERSION+set}" = set; then
12469 echo $ECHO_N "(cached) $ECHO_C" >&6
12470else
12471 cat >conftest.$ac_ext <<_ACEOF
12472/* confdefs.h. */
12473_ACEOF
12474cat confdefs.h >>conftest.$ac_ext
12475cat >>conftest.$ac_ext <<_ACEOF
12476/* end confdefs.h. */
12477
12478int
12479main ()
12480{
12481
12482 #ifndef _SGI_COMPILER_VERSION
12483 choke me
12484 #endif
12485
12486 ;
12487 return 0;
12488}
12489_ACEOF
12490rm -f conftest.$ac_objext
12491if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12492 (eval $ac_compile) 2>conftest.er1
12493 ac_status=$?
12494 grep -v '^ *+' conftest.er1 >conftest.err
12495 rm -f conftest.er1
12496 cat conftest.err >&5
12497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12498 (exit $ac_status); } &&
f10e38c4 12499 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
0ad5d837
VZ
12500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12501 (eval $ac_try) 2>&5
12502 ac_status=$?
12503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12504 (exit $ac_status); }; } &&
12505 { ac_try='test -s conftest.$ac_objext'
12506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12507 (eval $ac_try) 2>&5
12508 ac_status=$?
12509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12510 (exit $ac_status); }; }; then
12511 bakefile_cv_c_compiler__SGI_COMPILER_VERSION=yes
12512else
12513 echo "$as_me: failed program was:" >&5
12514sed 's/^/| /' conftest.$ac_ext >&5
12515
12516bakefile_cv_c_compiler__SGI_COMPILER_VERSION=no
12517
12518fi
12519rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12520
12521
12522fi
12523echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&5
12524echo "${ECHO_T}$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&6
12525 ac_ext=c
12526ac_cpp='$CPP $CPPFLAGS'
12527ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12528ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12529ac_compiler_gnu=$ac_cv_c_compiler_gnu
12530
12531 if test "x$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" = "xyes"; then
12532 :; SGICC=yes
12533 else
12534 :;
12535 fi
12536
12537
3006edc0
VZ
12538 ;;
12539
0093c2fc 12540 HP-UX*)
3006edc0
VZ
12541
12542
12543 ac_ext=c
12544ac_cpp='$CPP $CPPFLAGS'
12545ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12546ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12547ac_compiler_gnu=$ac_cv_c_compiler_gnu
12548
0093c2fc
VZ
12549 echo "$as_me:$LINENO: checking whether we are using the HP C compiler" >&5
12550echo $ECHO_N "checking whether we are using the HP C compiler... $ECHO_C" >&6
12551if test "${bakefile_cv_c_compiler___HP_cc+set}" = set; then
3006edc0
VZ
12552 echo $ECHO_N "(cached) $ECHO_C" >&6
12553else
12554 cat >conftest.$ac_ext <<_ACEOF
12555/* confdefs.h. */
12556_ACEOF
12557cat confdefs.h >>conftest.$ac_ext
12558cat >>conftest.$ac_ext <<_ACEOF
12559/* end confdefs.h. */
12560
12561int
12562main ()
12563{
12564
0093c2fc 12565 #ifndef __HP_cc
3006edc0
VZ
12566 choke me
12567 #endif
12568
12569 ;
12570 return 0;
12571}
12572_ACEOF
12573rm -f conftest.$ac_objext
12574if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12575 (eval $ac_compile) 2>conftest.er1
12576 ac_status=$?
12577 grep -v '^ *+' conftest.er1 >conftest.err
12578 rm -f conftest.er1
12579 cat conftest.err >&5
12580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12581 (exit $ac_status); } &&
f10e38c4 12582 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3006edc0
VZ
12583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12584 (eval $ac_try) 2>&5
12585 ac_status=$?
12586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12587 (exit $ac_status); }; } &&
12588 { ac_try='test -s conftest.$ac_objext'
12589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12590 (eval $ac_try) 2>&5
12591 ac_status=$?
12592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12593 (exit $ac_status); }; }; then
0093c2fc 12594 bakefile_cv_c_compiler___HP_cc=yes
3006edc0
VZ
12595else
12596 echo "$as_me: failed program was:" >&5
12597sed 's/^/| /' conftest.$ac_ext >&5
12598
0093c2fc 12599bakefile_cv_c_compiler___HP_cc=no
3006edc0
VZ
12600
12601fi
12602rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12603
12604
12605fi
0093c2fc
VZ
12606echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___HP_cc" >&5
12607echo "${ECHO_T}$bakefile_cv_c_compiler___HP_cc" >&6
3006edc0
VZ
12608 ac_ext=c
12609ac_cpp='$CPP $CPPFLAGS'
12610ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12611ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12612ac_compiler_gnu=$ac_cv_c_compiler_gnu
12613
0093c2fc
VZ
12614 if test "x$bakefile_cv_c_compiler___HP_cc" = "xyes"; then
12615 :; HPCC=yes
a1aa0349
VZ
12616 else
12617 :;
12618 fi
12619
12620
12621 ;;
12622
0093c2fc 12623 OSF1)
a1aa0349
VZ
12624
12625
12626 ac_ext=c
12627ac_cpp='$CPP $CPPFLAGS'
12628ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12629ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12630ac_compiler_gnu=$ac_cv_c_compiler_gnu
12631
0093c2fc
VZ
12632 echo "$as_me:$LINENO: checking whether we are using the Compaq C compiler" >&5
12633echo $ECHO_N "checking whether we are using the Compaq C compiler... $ECHO_C" >&6
12634if test "${bakefile_cv_c_compiler___DECC+set}" = set; then
a1aa0349
VZ
12635 echo $ECHO_N "(cached) $ECHO_C" >&6
12636else
12637 cat >conftest.$ac_ext <<_ACEOF
12638/* confdefs.h. */
12639_ACEOF
12640cat confdefs.h >>conftest.$ac_ext
12641cat >>conftest.$ac_ext <<_ACEOF
12642/* end confdefs.h. */
12643
12644int
12645main ()
12646{
12647
0093c2fc 12648 #ifndef __DECC
a1aa0349
VZ
12649 choke me
12650 #endif
12651
12652 ;
12653 return 0;
12654}
12655_ACEOF
12656rm -f conftest.$ac_objext
12657if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12658 (eval $ac_compile) 2>conftest.er1
12659 ac_status=$?
12660 grep -v '^ *+' conftest.er1 >conftest.err
12661 rm -f conftest.er1
12662 cat conftest.err >&5
12663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12664 (exit $ac_status); } &&
f10e38c4 12665 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a1aa0349
VZ
12666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12667 (eval $ac_try) 2>&5
12668 ac_status=$?
12669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12670 (exit $ac_status); }; } &&
12671 { ac_try='test -s conftest.$ac_objext'
12672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12673 (eval $ac_try) 2>&5
12674 ac_status=$?
12675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12676 (exit $ac_status); }; }; then
0093c2fc 12677 bakefile_cv_c_compiler___DECC=yes
a1aa0349
VZ
12678else
12679 echo "$as_me: failed program was:" >&5
12680sed 's/^/| /' conftest.$ac_ext >&5
12681
0093c2fc 12682bakefile_cv_c_compiler___DECC=no
a1aa0349
VZ
12683
12684fi
12685rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12686
12687
12688fi
0093c2fc
VZ
12689echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___DECC" >&5
12690echo "${ECHO_T}$bakefile_cv_c_compiler___DECC" >&6
a1aa0349
VZ
12691 ac_ext=c
12692ac_cpp='$CPP $CPPFLAGS'
12693ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12694ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12695ac_compiler_gnu=$ac_cv_c_compiler_gnu
12696
0093c2fc
VZ
12697 if test "x$bakefile_cv_c_compiler___DECC" = "xyes"; then
12698 :; COMPAQCC=yes
12699 else
12700 :;
12701 fi
12702
12703
12704 ;;
12705
12706 SunOS)
12707
12708
12709 ac_ext=c
12710ac_cpp='$CPP $CPPFLAGS'
12711ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12712ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12713ac_compiler_gnu=$ac_cv_c_compiler_gnu
12714
12715 echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
12716echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6
12717if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
12718 echo $ECHO_N "(cached) $ECHO_C" >&6
12719else
12720 cat >conftest.$ac_ext <<_ACEOF
12721/* confdefs.h. */
12722_ACEOF
12723cat confdefs.h >>conftest.$ac_ext
12724cat >>conftest.$ac_ext <<_ACEOF
12725/* end confdefs.h. */
12726
12727int
12728main ()
12729{
12730
12731 #ifndef __SUNPRO_C
12732 choke me
12733 #endif
12734
12735 ;
12736 return 0;
12737}
12738_ACEOF
12739rm -f conftest.$ac_objext
12740if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12741 (eval $ac_compile) 2>conftest.er1
12742 ac_status=$?
12743 grep -v '^ *+' conftest.er1 >conftest.err
12744 rm -f conftest.er1
12745 cat conftest.err >&5
12746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12747 (exit $ac_status); } &&
f10e38c4 12748 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
0093c2fc
VZ
12749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12750 (eval $ac_try) 2>&5
12751 ac_status=$?
12752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12753 (exit $ac_status); }; } &&
12754 { ac_try='test -s conftest.$ac_objext'
12755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12756 (eval $ac_try) 2>&5
12757 ac_status=$?
12758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12759 (exit $ac_status); }; }; then
12760 bakefile_cv_c_compiler___SUNPRO_C=yes
12761else
12762 echo "$as_me: failed program was:" >&5
12763sed 's/^/| /' conftest.$ac_ext >&5
12764
12765bakefile_cv_c_compiler___SUNPRO_C=no
12766
12767fi
12768rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12769
12770
12771fi
12772echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
12773echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6
12774 ac_ext=c
12775ac_cpp='$CPP $CPPFLAGS'
12776ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12777ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12778ac_compiler_gnu=$ac_cv_c_compiler_gnu
12779
12780 if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
12781 :; SUNCC=yes
3006edc0
VZ
12782 else
12783 :;
12784 fi
12785
12786
12787 ;;
12788 esac
ab0ad5f1 12789 fi
a9e5b1f0
MW
12790
12791
3006edc0 12792
a848cd7e
SC
12793ac_ext=c
12794ac_cpp='$CPP $CPPFLAGS'
12795ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12796ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12797ac_compiler_gnu=$ac_cv_c_compiler_gnu
12798echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
12799echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
12800# On Suns, sometimes $CPP names a directory.
12801if test -n "$CPP" && test -d "$CPP"; then
12802 CPP=
12803fi
12804if test -z "$CPP"; then
12805 if test "${ac_cv_prog_CPP+set}" = set; then
12806 echo $ECHO_N "(cached) $ECHO_C" >&6
12807else
12808 # Double quotes because CPP needs to be expanded
12809 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
12810 do
12811 ac_preproc_ok=false
12812for ac_c_preproc_warn_flag in '' yes
12813do
12814 # Use a header file that comes with gcc, so configuring glibc
12815 # with a fresh cross-compiler works.
12816 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12817 # <limits.h> exists even on freestanding compilers.
12818 # On the NeXT, cc -E runs the code through the compiler's parser,
12819 # not just through cpp. "Syntax error" is here to catch this case.
12820 cat >conftest.$ac_ext <<_ACEOF
12821/* confdefs.h. */
12822_ACEOF
12823cat confdefs.h >>conftest.$ac_ext
12824cat >>conftest.$ac_ext <<_ACEOF
12825/* end confdefs.h. */
12826#ifdef __STDC__
12827# include <limits.h>
12828#else
12829# include <assert.h>
12830#endif
ac1cb8d3 12831 Syntax error
a848cd7e
SC
12832_ACEOF
12833if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12834 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12835 ac_status=$?
12836 grep -v '^ *+' conftest.er1 >conftest.err
12837 rm -f conftest.er1
12838 cat conftest.err >&5
12839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12840 (exit $ac_status); } >/dev/null; then
12841 if test -s conftest.err; then
12842 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12843 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12844 else
12845 ac_cpp_err=
12846 fi
12847else
12848 ac_cpp_err=yes
12849fi
12850if test -z "$ac_cpp_err"; then
12851 :
12852else
12853 echo "$as_me: failed program was:" >&5
12854sed 's/^/| /' conftest.$ac_ext >&5
12855
12856 # Broken: fails on valid input.
12857continue
12858fi
12859rm -f conftest.err conftest.$ac_ext
12860
12861 # OK, works on sane cases. Now check whether non-existent headers
12862 # can be detected and how.
12863 cat >conftest.$ac_ext <<_ACEOF
12864/* confdefs.h. */
12865_ACEOF
12866cat confdefs.h >>conftest.$ac_ext
12867cat >>conftest.$ac_ext <<_ACEOF
12868/* end confdefs.h. */
12869#include <ac_nonexistent.h>
12870_ACEOF
12871if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12872 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12873 ac_status=$?
12874 grep -v '^ *+' conftest.er1 >conftest.err
12875 rm -f conftest.er1
12876 cat conftest.err >&5
12877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12878 (exit $ac_status); } >/dev/null; then
12879 if test -s conftest.err; then
12880 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12881 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12882 else
12883 ac_cpp_err=
12884 fi
12885else
12886 ac_cpp_err=yes
12887fi
12888if test -z "$ac_cpp_err"; then
12889 # Broken: success on invalid input.
12890continue
12891else
12892 echo "$as_me: failed program was:" >&5
12893sed 's/^/| /' conftest.$ac_ext >&5
12894
12895 # Passes both tests.
12896ac_preproc_ok=:
12897break
12898fi
12899rm -f conftest.err conftest.$ac_ext
12900
12901done
12902# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12903rm -f conftest.err conftest.$ac_ext
12904if $ac_preproc_ok; then
12905 break
12906fi
12907
12908 done
12909 ac_cv_prog_CPP=$CPP
12910
12911fi
12912 CPP=$ac_cv_prog_CPP
12913else
12914 ac_cv_prog_CPP=$CPP
12915fi
12916echo "$as_me:$LINENO: result: $CPP" >&5
12917echo "${ECHO_T}$CPP" >&6
12918ac_preproc_ok=false
12919for ac_c_preproc_warn_flag in '' yes
12920do
12921 # Use a header file that comes with gcc, so configuring glibc
12922 # with a fresh cross-compiler works.
12923 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12924 # <limits.h> exists even on freestanding compilers.
12925 # On the NeXT, cc -E runs the code through the compiler's parser,
12926 # not just through cpp. "Syntax error" is here to catch this case.
12927 cat >conftest.$ac_ext <<_ACEOF
12928/* confdefs.h. */
12929_ACEOF
12930cat confdefs.h >>conftest.$ac_ext
12931cat >>conftest.$ac_ext <<_ACEOF
12932/* end confdefs.h. */
12933#ifdef __STDC__
12934# include <limits.h>
12935#else
12936# include <assert.h>
12937#endif
ac1cb8d3 12938 Syntax error
a848cd7e
SC
12939_ACEOF
12940if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12941 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12942 ac_status=$?
12943 grep -v '^ *+' conftest.er1 >conftest.err
12944 rm -f conftest.er1
12945 cat conftest.err >&5
12946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12947 (exit $ac_status); } >/dev/null; then
12948 if test -s conftest.err; then
12949 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12950 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12951 else
12952 ac_cpp_err=
12953 fi
12954else
12955 ac_cpp_err=yes
12956fi
12957if test -z "$ac_cpp_err"; then
12958 :
12959else
12960 echo "$as_me: failed program was:" >&5
12961sed 's/^/| /' conftest.$ac_ext >&5
12962
12963 # Broken: fails on valid input.
12964continue
12965fi
12966rm -f conftest.err conftest.$ac_ext
12967
12968 # OK, works on sane cases. Now check whether non-existent headers
12969 # can be detected and how.
12970 cat >conftest.$ac_ext <<_ACEOF
12971/* confdefs.h. */
12972_ACEOF
12973cat confdefs.h >>conftest.$ac_ext
12974cat >>conftest.$ac_ext <<_ACEOF
12975/* end confdefs.h. */
12976#include <ac_nonexistent.h>
12977_ACEOF
12978if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12979 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12980 ac_status=$?
12981 grep -v '^ *+' conftest.er1 >conftest.err
12982 rm -f conftest.er1
12983 cat conftest.err >&5
12984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12985 (exit $ac_status); } >/dev/null; then
12986 if test -s conftest.err; then
12987 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12988 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12989 else
12990 ac_cpp_err=
12991 fi
12992else
12993 ac_cpp_err=yes
12994fi
12995if test -z "$ac_cpp_err"; then
12996 # Broken: success on invalid input.
12997continue
12998else
12999 echo "$as_me: failed program was:" >&5
13000sed 's/^/| /' conftest.$ac_ext >&5
13001
13002 # Passes both tests.
13003ac_preproc_ok=:
13004break
13005fi
13006rm -f conftest.err conftest.$ac_ext
13007
13008done
13009# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13010rm -f conftest.err conftest.$ac_ext
13011if $ac_preproc_ok; then
13012 :
13013else
13014 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
13015See \`config.log' for more details." >&5
13016echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
13017See \`config.log' for more details." >&2;}
13018 { (exit 1); exit 1; }; }
13019fi
13020
13021ac_ext=c
13022ac_cpp='$CPP $CPPFLAGS'
13023ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13024ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13025ac_compiler_gnu=$ac_cv_c_compiler_gnu
13026
13027
13028echo "$as_me:$LINENO: checking for egrep" >&5
13029echo $ECHO_N "checking for egrep... $ECHO_C" >&6
13030if test "${ac_cv_prog_egrep+set}" = set; then
13031 echo $ECHO_N "(cached) $ECHO_C" >&6
13032else
13033 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
13034 then ac_cv_prog_egrep='grep -E'
13035 else ac_cv_prog_egrep='egrep'
13036 fi
13037fi
13038echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
13039echo "${ECHO_T}$ac_cv_prog_egrep" >&6
13040 EGREP=$ac_cv_prog_egrep
13041
13042
13043if test $ac_cv_c_compiler_gnu = yes; then
13044 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
13045echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
13046if test "${ac_cv_prog_gcc_traditional+set}" = set; then
13047 echo $ECHO_N "(cached) $ECHO_C" >&6
13048else
13049 ac_pattern="Autoconf.*'x'"
13050 cat >conftest.$ac_ext <<_ACEOF
13051/* confdefs.h. */
13052_ACEOF
13053cat confdefs.h >>conftest.$ac_ext
13054cat >>conftest.$ac_ext <<_ACEOF
13055/* end confdefs.h. */
13056#include <sgtty.h>
13057Autoconf TIOCGETP
13058_ACEOF
13059if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13060 $EGREP "$ac_pattern" >/dev/null 2>&1; then
13061 ac_cv_prog_gcc_traditional=yes
13062else
13063 ac_cv_prog_gcc_traditional=no
13064fi
13065rm -f conftest*
13066
13067
13068 if test $ac_cv_prog_gcc_traditional = no; then
13069 cat >conftest.$ac_ext <<_ACEOF
13070/* confdefs.h. */
13071_ACEOF
13072cat confdefs.h >>conftest.$ac_ext
13073cat >>conftest.$ac_ext <<_ACEOF
13074/* end confdefs.h. */
13075#include <termio.h>
13076Autoconf TCGETA
13077_ACEOF
13078if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13079 $EGREP "$ac_pattern" >/dev/null 2>&1; then
13080 ac_cv_prog_gcc_traditional=yes
13081fi
13082rm -f conftest*
13083
13084 fi
13085fi
13086echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
13087echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
13088 if test $ac_cv_prog_gcc_traditional = yes; then
13089 CC="$CC -traditional"
13090 fi
13091fi
13092
13093
a848cd7e
SC
13094ac_ext=cc
13095ac_cpp='$CXXCPP $CPPFLAGS'
13096ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13097ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13098ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13099
13100
13101CXXFLAGS=${CXXFLAGS:=}
6dcfc289
DE
13102
13103
3006edc0 13104
6dcfc289 13105 ac_ext=cc
a848cd7e
SC
13106ac_cpp='$CXXCPP $CPPFLAGS'
13107ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13108ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13109ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13110if test -n "$ac_tool_prefix"; then
13111 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
13112 do
13113 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13114set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13115echo "$as_me:$LINENO: checking for $ac_word" >&5
13116echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13117if test "${ac_cv_prog_CXX+set}" = set; then
13118 echo $ECHO_N "(cached) $ECHO_C" >&6
13119else
13120 if test -n "$CXX"; then
13121 ac_cv_prog_CXX="$CXX" # Let the user override the test.
13122else
13123as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13124for as_dir in $PATH
13125do
13126 IFS=$as_save_IFS
13127 test -z "$as_dir" && as_dir=.
13128 for ac_exec_ext in '' $ac_executable_extensions; do
13129 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13130 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
13131 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13132 break 2
13133 fi
13134done
13135done
13136
13137fi
13138fi
13139CXX=$ac_cv_prog_CXX
13140if test -n "$CXX"; then
13141 echo "$as_me:$LINENO: result: $CXX" >&5
13142echo "${ECHO_T}$CXX" >&6
13143else
13144 echo "$as_me:$LINENO: result: no" >&5
13145echo "${ECHO_T}no" >&6
13146fi
13147
13148 test -n "$CXX" && break
13149 done
13150fi
13151if test -z "$CXX"; then
13152 ac_ct_CXX=$CXX
13153 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
13154do
13155 # Extract the first word of "$ac_prog", so it can be a program name with args.
13156set dummy $ac_prog; ac_word=$2
13157echo "$as_me:$LINENO: checking for $ac_word" >&5
13158echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13159if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
13160 echo $ECHO_N "(cached) $ECHO_C" >&6
13161else
13162 if test -n "$ac_ct_CXX"; then
13163 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
13164else
13165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13166for as_dir in $PATH
13167do
13168 IFS=$as_save_IFS
13169 test -z "$as_dir" && as_dir=.
13170 for ac_exec_ext in '' $ac_executable_extensions; do
13171 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13172 ac_cv_prog_ac_ct_CXX="$ac_prog"
13173 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13174 break 2
13175 fi
13176done
13177done
13178
13179fi
13180fi
13181ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
13182if test -n "$ac_ct_CXX"; then
13183 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
13184echo "${ECHO_T}$ac_ct_CXX" >&6
13185else
13186 echo "$as_me:$LINENO: result: no" >&5
13187echo "${ECHO_T}no" >&6
13188fi
13189
13190 test -n "$ac_ct_CXX" && break
13191done
13192test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
13193
13194 CXX=$ac_ct_CXX
13195fi
13196
13197
13198# Provide some information about the compiler.
13199echo "$as_me:$LINENO:" \
13200 "checking for C++ compiler version" >&5
13201ac_compiler=`set X $ac_compile; echo $2`
13202{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
13203 (eval $ac_compiler --version </dev/null >&5) 2>&5
13204 ac_status=$?
13205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13206 (exit $ac_status); }
13207{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
13208 (eval $ac_compiler -v </dev/null >&5) 2>&5
13209 ac_status=$?
13210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13211 (exit $ac_status); }
13212{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
13213 (eval $ac_compiler -V </dev/null >&5) 2>&5
13214 ac_status=$?
13215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13216 (exit $ac_status); }
13217
13218echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
13219echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
13220if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
13221 echo $ECHO_N "(cached) $ECHO_C" >&6
13222else
13223 cat >conftest.$ac_ext <<_ACEOF
13224/* confdefs.h. */
13225_ACEOF
13226cat confdefs.h >>conftest.$ac_ext
13227cat >>conftest.$ac_ext <<_ACEOF
13228/* end confdefs.h. */
13229
13230int
13231main ()
13232{
13233#ifndef __GNUC__
13234 choke me
13235#endif
13236
13237 ;
13238 return 0;
13239}
13240_ACEOF
13241rm -f conftest.$ac_objext
13242if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13243 (eval $ac_compile) 2>conftest.er1
a848cd7e 13244 ac_status=$?
ac1cb8d3
VS
13245 grep -v '^ *+' conftest.er1 >conftest.err
13246 rm -f conftest.er1
13247 cat conftest.err >&5
a848cd7e
SC
13248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13249 (exit $ac_status); } &&
f10e38c4 13250 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13252 (eval $ac_try) 2>&5
13253 ac_status=$?
13254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13255 (exit $ac_status); }; } &&
13256 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13258 (eval $ac_try) 2>&5
13259 ac_status=$?
13260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13261 (exit $ac_status); }; }; then
13262 ac_compiler_gnu=yes
13263else
13264 echo "$as_me: failed program was:" >&5
13265sed 's/^/| /' conftest.$ac_ext >&5
13266
13267ac_compiler_gnu=no
13268fi
ac1cb8d3 13269rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13270ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
13271
13272fi
13273echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
13274echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
13275GXX=`test $ac_compiler_gnu = yes && echo yes`
13276ac_test_CXXFLAGS=${CXXFLAGS+set}
13277ac_save_CXXFLAGS=$CXXFLAGS
13278CXXFLAGS="-g"
13279echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
13280echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
13281if test "${ac_cv_prog_cxx_g+set}" = set; then
13282 echo $ECHO_N "(cached) $ECHO_C" >&6
13283else
13284 cat >conftest.$ac_ext <<_ACEOF
13285/* confdefs.h. */
13286_ACEOF
13287cat confdefs.h >>conftest.$ac_ext
13288cat >>conftest.$ac_ext <<_ACEOF
13289/* end confdefs.h. */
13290
13291int
13292main ()
13293{
13294
13295 ;
13296 return 0;
13297}
13298_ACEOF
13299rm -f conftest.$ac_objext
13300if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13301 (eval $ac_compile) 2>conftest.er1
a848cd7e 13302 ac_status=$?
ac1cb8d3
VS
13303 grep -v '^ *+' conftest.er1 >conftest.err
13304 rm -f conftest.er1
13305 cat conftest.err >&5
a848cd7e
SC
13306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13307 (exit $ac_status); } &&
f10e38c4 13308 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13310 (eval $ac_try) 2>&5
13311 ac_status=$?
13312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13313 (exit $ac_status); }; } &&
13314 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13316 (eval $ac_try) 2>&5
13317 ac_status=$?
13318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13319 (exit $ac_status); }; }; then
13320 ac_cv_prog_cxx_g=yes
13321else
13322 echo "$as_me: failed program was:" >&5
13323sed 's/^/| /' conftest.$ac_ext >&5
13324
13325ac_cv_prog_cxx_g=no
13326fi
ac1cb8d3 13327rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13328fi
13329echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
13330echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
13331if test "$ac_test_CXXFLAGS" = set; then
13332 CXXFLAGS=$ac_save_CXXFLAGS
13333elif test $ac_cv_prog_cxx_g = yes; then
13334 if test "$GXX" = yes; then
8aeeb05c 13335 CXXFLAGS="-g -O2"
a848cd7e 13336 else
8aeeb05c 13337 CXXFLAGS="-g"
a848cd7e
SC
13338 fi
13339else
13340 if test "$GXX" = yes; then
13341 CXXFLAGS="-O2"
13342 else
13343 CXXFLAGS=
13344 fi
13345fi
13346for ac_declaration in \
ac1cb8d3 13347 '' \
a848cd7e
SC
13348 'extern "C" void std::exit (int) throw (); using std::exit;' \
13349 'extern "C" void std::exit (int); using std::exit;' \
13350 'extern "C" void exit (int) throw ();' \
13351 'extern "C" void exit (int);' \
13352 'void exit (int);'
13353do
13354 cat >conftest.$ac_ext <<_ACEOF
13355/* confdefs.h. */
13356_ACEOF
13357cat confdefs.h >>conftest.$ac_ext
13358cat >>conftest.$ac_ext <<_ACEOF
13359/* end confdefs.h. */
de59c161 13360$ac_declaration
ac1cb8d3 13361#include <stdlib.h>
a848cd7e
SC
13362int
13363main ()
13364{
13365exit (42);
13366 ;
13367 return 0;
13368}
13369_ACEOF
13370rm -f conftest.$ac_objext
13371if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13372 (eval $ac_compile) 2>conftest.er1
a848cd7e 13373 ac_status=$?
ac1cb8d3
VS
13374 grep -v '^ *+' conftest.er1 >conftest.err
13375 rm -f conftest.er1
13376 cat conftest.err >&5
a848cd7e
SC
13377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13378 (exit $ac_status); } &&
f10e38c4 13379 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13381 (eval $ac_try) 2>&5
13382 ac_status=$?
13383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13384 (exit $ac_status); }; } &&
13385 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13387 (eval $ac_try) 2>&5
13388 ac_status=$?
13389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13390 (exit $ac_status); }; }; then
13391 :
13392else
13393 echo "$as_me: failed program was:" >&5
13394sed 's/^/| /' conftest.$ac_ext >&5
13395
13396continue
13397fi
ac1cb8d3 13398rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13399 cat >conftest.$ac_ext <<_ACEOF
13400/* confdefs.h. */
13401_ACEOF
13402cat confdefs.h >>conftest.$ac_ext
13403cat >>conftest.$ac_ext <<_ACEOF
13404/* end confdefs.h. */
13405$ac_declaration
13406int
13407main ()
13408{
13409exit (42);
13410 ;
13411 return 0;
13412}
13413_ACEOF
13414rm -f conftest.$ac_objext
13415if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13416 (eval $ac_compile) 2>conftest.er1
a848cd7e 13417 ac_status=$?
ac1cb8d3
VS
13418 grep -v '^ *+' conftest.er1 >conftest.err
13419 rm -f conftest.er1
13420 cat conftest.err >&5
a848cd7e
SC
13421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13422 (exit $ac_status); } &&
f10e38c4 13423 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13425 (eval $ac_try) 2>&5
13426 ac_status=$?
13427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13428 (exit $ac_status); }; } &&
13429 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13431 (eval $ac_try) 2>&5
13432 ac_status=$?
13433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13434 (exit $ac_status); }; }; then
13435 break
13436else
13437 echo "$as_me: failed program was:" >&5
13438sed 's/^/| /' conftest.$ac_ext >&5
13439
13440fi
ac1cb8d3 13441rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13442done
13443rm -f conftest*
13444if test -n "$ac_declaration"; then
13445 echo '#ifdef __cplusplus' >>confdefs.h
13446 echo $ac_declaration >>confdefs.h
13447 echo '#endif' >>confdefs.h
13448fi
13449
13450ac_ext=cc
13451ac_cpp='$CXXCPP $CPPFLAGS'
13452ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13453ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13454ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13455
ab0ad5f1
VZ
13456
13457
13458 ac_ext=cc
13459ac_cpp='$CXXCPP $CPPFLAGS'
13460ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13461ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13462ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13463
13464 echo "$as_me:$LINENO: checking whether we are using the Intel C++ compiler" >&5
13465echo $ECHO_N "checking whether we are using the Intel C++ compiler... $ECHO_C" >&6
13466if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER+set}" = set; then
13467 echo $ECHO_N "(cached) $ECHO_C" >&6
13468else
13469 cat >conftest.$ac_ext <<_ACEOF
13470/* confdefs.h. */
13471_ACEOF
13472cat confdefs.h >>conftest.$ac_ext
13473cat >>conftest.$ac_ext <<_ACEOF
13474/* end confdefs.h. */
13475
13476int
13477main ()
13478{
13479
13480 #ifndef __INTEL_COMPILER
13481 choke me
13482 #endif
13483
13484 ;
13485 return 0;
13486}
13487_ACEOF
13488rm -f conftest.$ac_objext
13489if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13490 (eval $ac_compile) 2>conftest.er1
13491 ac_status=$?
13492 grep -v '^ *+' conftest.er1 >conftest.err
13493 rm -f conftest.er1
13494 cat conftest.err >&5
13495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13496 (exit $ac_status); } &&
f10e38c4 13497 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ab0ad5f1
VZ
13498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13499 (eval $ac_try) 2>&5
13500 ac_status=$?
13501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13502 (exit $ac_status); }; } &&
13503 { ac_try='test -s conftest.$ac_objext'
13504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13505 (eval $ac_try) 2>&5
13506 ac_status=$?
13507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13508 (exit $ac_status); }; }; then
13509 bakefile_cv_cxx_compiler___INTEL_COMPILER=yes
13510else
13511 echo "$as_me: failed program was:" >&5
13512sed 's/^/| /' conftest.$ac_ext >&5
13513
13514bakefile_cv_cxx_compiler___INTEL_COMPILER=no
13515
13516fi
13517rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13518
13519
13520fi
13521echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER" >&5
13522echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER" >&6
13523 ac_ext=cc
13524ac_cpp='$CXXCPP $CPPFLAGS'
13525ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13526ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13527ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13528
13529 if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER" = "xyes"; then
13530 :; INTELCXX=yes
13531 else
13532 :;
13533 fi
13534
13535
3006edc0
VZ
13536 if test "x$GCXX" != "xyes"; then
13537 if test "xCXX" = "xC"; then
13538 echo "$as_me:$LINENO: checking if the C++ compiler requires -ext o" >&5
480ccd21 13539echo $ECHO_N "checking if the C++ compiler requires -ext o... $ECHO_C" >&6
0093c2fc 13540if test "${bakefile_cv_cxx_exto+set}" = set; then
480ccd21
DE
13541 echo $ECHO_N "(cached) $ECHO_C" >&6
13542else
13543 cat >conftest.$ac_ext <<_ACEOF
13544/* confdefs.h. */
13545_ACEOF
13546cat confdefs.h >>conftest.$ac_ext
13547cat >>conftest.$ac_ext <<_ACEOF
13548/* end confdefs.h. */
13549
13550int
13551main ()
13552{
13553
13554 ;
13555 return 0;
13556}
13557_ACEOF
13558rm -f conftest.$ac_objext conftest.$ac_ext.o
13559if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13560 (eval $ac_compile) 2>&5
13561 ac_status=$?
13562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13563 (exit $ac_status); }; then
13564 for ac_file in `(ls conftest.* 2>/dev/null)`; do
13565 case $ac_file in
13566 conftest.$ac_ext.o)
0093c2fc 13567 bakefile_cv_cxx_exto="-ext o"
480ccd21
DE
13568 ;;
13569 *)
13570 ;;
13571 esac
13572done
13573else
13574 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
13575See \`config.log' for more details." >&5
13576echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
13577See \`config.log' for more details." >&2;}
13578 { (exit 1); exit 1; }; }
13579
13580fi
13581
13582rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
13583
13584fi
0093c2fc
VZ
13585echo "$as_me:$LINENO: result: $bakefile_cv_cxx_exto" >&5
13586echo "${ECHO_T}$bakefile_cv_cxx_exto" >&6
13587if test "x$bakefile_cv_cxx_exto" '!=' "x"; then
480ccd21 13588 if test "cxx" = "c"; then
0093c2fc 13589 CFLAGS="$bakefile_cv_cxx_exto $CFLAGS"
480ccd21
DE
13590 fi
13591 if test "cxx" = "cxx"; then
0093c2fc 13592 CXXFLAGS="$bakefile_cv_cxx_exto $CXXFLAGS"
480ccd21
DE
13593 fi
13594fi
13595
0093c2fc 13596 if test "x$bakefile_cv_c_exto" '!=' "x"; then
3006edc0
VZ
13597 unset ac_cv_prog_cc_g
13598 ac_test_CFLAGS=${CFLAGS+set}
13599ac_save_CFLAGS=$CFLAGS
8aeeb05c 13600CFLAGS="-g"
3006edc0
VZ
13601echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
13602echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
13603if test "${ac_cv_prog_cc_g+set}" = set; then
480ccd21
DE
13604 echo $ECHO_N "(cached) $ECHO_C" >&6
13605else
13606 cat >conftest.$ac_ext <<_ACEOF
13607/* confdefs.h. */
13608_ACEOF
13609cat confdefs.h >>conftest.$ac_ext
13610cat >>conftest.$ac_ext <<_ACEOF
13611/* end confdefs.h. */
13612
13613int
13614main ()
13615{
13616
13617 ;
13618 return 0;
13619}
13620_ACEOF
13621rm -f conftest.$ac_objext
13622if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13623 (eval $ac_compile) 2>conftest.er1
13624 ac_status=$?
13625 grep -v '^ *+' conftest.er1 >conftest.err
13626 rm -f conftest.er1
13627 cat conftest.err >&5
13628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13629 (exit $ac_status); } &&
f10e38c4 13630 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
480ccd21
DE
13631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13632 (eval $ac_try) 2>&5
13633 ac_status=$?
13634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13635 (exit $ac_status); }; } &&
13636 { ac_try='test -s conftest.$ac_objext'
13637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13638 (eval $ac_try) 2>&5
13639 ac_status=$?
13640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13641 (exit $ac_status); }; }; then
3006edc0 13642 ac_cv_prog_cc_g=yes
480ccd21
DE
13643else
13644 echo "$as_me: failed program was:" >&5
13645sed 's/^/| /' conftest.$ac_ext >&5
13646
3006edc0 13647ac_cv_prog_cc_g=no
480ccd21
DE
13648fi
13649rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13650fi
3006edc0
VZ
13651echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
13652echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
13653if test "$ac_test_CFLAGS" = set; then
13654 CFLAGS=$ac_save_CFLAGS
13655elif test $ac_cv_prog_cc_g = yes; then
13656 if test "$GCC" = yes; then
13657 CFLAGS="-g -O2"
480ccd21 13658 else
3006edc0 13659 CFLAGS="-g"
480ccd21
DE
13660 fi
13661else
3006edc0
VZ
13662 if test "$GCC" = yes; then
13663 CFLAGS="-O2"
480ccd21 13664 else
3006edc0 13665 CFLAGS=
480ccd21
DE
13666 fi
13667fi
3006edc0 13668 fi
ab0ad5f1 13669 fi
3006edc0
VZ
13670
13671 case `uname -s` in
13672 AIX*)
13673 ac_ext=cc
13674ac_cpp='$CXXCPP $CPPFLAGS'
13675ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13676ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13677ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13678
13679echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
13680echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6
0093c2fc 13681if test "${bakefile_cv_cxx_compiler_xlc+set}" = set; then
3006edc0
VZ
13682 echo $ECHO_N "(cached) $ECHO_C" >&6
13683else
13684 cat >conftest.$ac_ext <<_ACEOF
13685/* confdefs.h. */
13686_ACEOF
13687cat confdefs.h >>conftest.$ac_ext
13688cat >>conftest.$ac_ext <<_ACEOF
13689/* end confdefs.h. */
13690
13691int
13692main ()
13693{
13694#ifndef __xlC__
13695 choke me
13696#endif
13697
13698 ;
13699 return 0;
13700}
13701_ACEOF
13702rm -f conftest.$ac_objext
13703if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13704 (eval $ac_compile) 2>conftest.er1
13705 ac_status=$?
13706 grep -v '^ *+' conftest.er1 >conftest.err
13707 rm -f conftest.er1
13708 cat conftest.err >&5
13709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13710 (exit $ac_status); } &&
f10e38c4 13711 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3006edc0
VZ
13712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13713 (eval $ac_try) 2>&5
13714 ac_status=$?
13715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13716 (exit $ac_status); }; } &&
13717 { ac_try='test -s conftest.$ac_objext'
13718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13719 (eval $ac_try) 2>&5
13720 ac_status=$?
13721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13722 (exit $ac_status); }; }; then
0093c2fc 13723 bakefile_compiler_xlc=yes
3006edc0
VZ
13724else
13725 echo "$as_me: failed program was:" >&5
13726sed 's/^/| /' conftest.$ac_ext >&5
13727
0093c2fc 13728bakefile_compiler_xlc=no
3006edc0
VZ
13729fi
13730rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 13731 bakefile_cv_cxx_compiler_xlc=$bakefile_compiler_xlc
3006edc0
VZ
13732
13733fi
0093c2fc
VZ
13734echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_xlc" >&5
13735echo "${ECHO_T}$bakefile_cv_cxx_compiler_xlc" >&6
3006edc0 13736
0093c2fc 13737XLCXX=`test $bakefile_cv_cxx_compiler_xlc = yes && echo yes`
3006edc0
VZ
13738ac_ext=cc
13739ac_cpp='$CXXCPP $CPPFLAGS'
13740ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13741ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13742ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13743
13744
13745 ;;
13746
13747 Darwin)
13748 ac_ext=cc
95986553
DE
13749ac_cpp='$CXXCPP $CPPFLAGS'
13750ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13751ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13752ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13753
13754echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5
13755echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6
13756if test "${bakefile_cv_cxx_compiler_mwerks+set}" = set; then
13757 echo $ECHO_N "(cached) $ECHO_C" >&6
13758else
13759 cat >conftest.$ac_ext <<_ACEOF
13760/* confdefs.h. */
13761_ACEOF
13762cat confdefs.h >>conftest.$ac_ext
13763cat >>conftest.$ac_ext <<_ACEOF
13764/* end confdefs.h. */
13765
13766int
13767main ()
13768{
13769#ifndef __MWERKS__
13770 choke me
13771#endif
13772
13773 ;
13774 return 0;
13775}
13776_ACEOF
13777rm -f conftest.$ac_objext
13778if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13779 (eval $ac_compile) 2>conftest.er1
13780 ac_status=$?
13781 grep -v '^ *+' conftest.er1 >conftest.err
13782 rm -f conftest.er1
13783 cat conftest.err >&5
13784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13785 (exit $ac_status); } &&
f10e38c4 13786 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
95986553
DE
13787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13788 (eval $ac_try) 2>&5
13789 ac_status=$?
13790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13791 (exit $ac_status); }; } &&
13792 { ac_try='test -s conftest.$ac_objext'
13793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13794 (eval $ac_try) 2>&5
13795 ac_status=$?
13796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13797 (exit $ac_status); }; }; then
13798 bakefile_compiler_mwerks=yes
13799else
13800 echo "$as_me: failed program was:" >&5
13801sed 's/^/| /' conftest.$ac_ext >&5
13802
13803bakefile_compiler_mwerks=no
13804fi
13805rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13806 bakefile_cv_cxx_compiler_mwerks=$bakefile_compiler_mwerks
13807
13808fi
13809echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_mwerks" >&5
13810echo "${ECHO_T}$bakefile_cv_cxx_compiler_mwerks" >&6
13811
0e6fa1d9 13812MWCXX=`test $bakefile_cv_cxx_compiler_mwerks = yes && echo yes`
95986553
DE
13813ac_ext=cc
13814ac_cpp='$CXXCPP $CPPFLAGS'
13815ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13816ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13817ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13818
13819
3006edc0 13820 ac_ext=cc
9273ffba
DE
13821ac_cpp='$CXXCPP $CPPFLAGS'
13822ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13823ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13824ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13825
13826echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
13827echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6
0093c2fc 13828if test "${bakefile_cv_cxx_compiler_xlc+set}" = set; then
9273ffba
DE
13829 echo $ECHO_N "(cached) $ECHO_C" >&6
13830else
13831 cat >conftest.$ac_ext <<_ACEOF
13832/* confdefs.h. */
13833_ACEOF
13834cat confdefs.h >>conftest.$ac_ext
13835cat >>conftest.$ac_ext <<_ACEOF
13836/* end confdefs.h. */
13837
13838int
13839main ()
13840{
13841#ifndef __xlC__
13842 choke me
13843#endif
13844
13845 ;
13846 return 0;
13847}
13848_ACEOF
13849rm -f conftest.$ac_objext
13850if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13851 (eval $ac_compile) 2>conftest.er1
13852 ac_status=$?
13853 grep -v '^ *+' conftest.er1 >conftest.err
13854 rm -f conftest.er1
13855 cat conftest.err >&5
13856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13857 (exit $ac_status); } &&
f10e38c4 13858 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9273ffba
DE
13859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13860 (eval $ac_try) 2>&5
13861 ac_status=$?
13862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13863 (exit $ac_status); }; } &&
13864 { ac_try='test -s conftest.$ac_objext'
13865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13866 (eval $ac_try) 2>&5
13867 ac_status=$?
13868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13869 (exit $ac_status); }; }; then
0093c2fc 13870 bakefile_compiler_xlc=yes
9273ffba
DE
13871else
13872 echo "$as_me: failed program was:" >&5
13873sed 's/^/| /' conftest.$ac_ext >&5
13874
0093c2fc 13875bakefile_compiler_xlc=no
9273ffba
DE
13876fi
13877rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 13878 bakefile_cv_cxx_compiler_xlc=$bakefile_compiler_xlc
9273ffba
DE
13879
13880fi
0093c2fc
VZ
13881echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_xlc" >&5
13882echo "${ECHO_T}$bakefile_cv_cxx_compiler_xlc" >&6
9273ffba 13883
0093c2fc 13884XLCXX=`test $bakefile_cv_cxx_compiler_xlc = yes && echo yes`
9273ffba
DE
13885ac_ext=cc
13886ac_cpp='$CXXCPP $CPPFLAGS'
13887ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13888ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13889ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13890
13891
3006edc0
VZ
13892 ;;
13893
13894 IRIX*)
95986553 13895
6dcfc289 13896
0ad5d837
VZ
13897 ac_ext=cc
13898ac_cpp='$CXXCPP $CPPFLAGS'
13899ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13900ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13901ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13902
13903 echo "$as_me:$LINENO: checking whether we are using the SGI C++ compiler" >&5
13904echo $ECHO_N "checking whether we are using the SGI C++ compiler... $ECHO_C" >&6
13905if test "${bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION+set}" = set; then
13906 echo $ECHO_N "(cached) $ECHO_C" >&6
13907else
13908 cat >conftest.$ac_ext <<_ACEOF
13909/* confdefs.h. */
13910_ACEOF
13911cat confdefs.h >>conftest.$ac_ext
13912cat >>conftest.$ac_ext <<_ACEOF
13913/* end confdefs.h. */
13914
13915int
13916main ()
13917{
13918
13919 #ifndef _SGI_COMPILER_VERSION
13920 choke me
13921 #endif
13922
13923 ;
13924 return 0;
13925}
13926_ACEOF
13927rm -f conftest.$ac_objext
13928if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13929 (eval $ac_compile) 2>conftest.er1
13930 ac_status=$?
13931 grep -v '^ *+' conftest.er1 >conftest.err
13932 rm -f conftest.er1
13933 cat conftest.err >&5
13934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13935 (exit $ac_status); } &&
f10e38c4 13936 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0ad5d837
VZ
13937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13938 (eval $ac_try) 2>&5
13939 ac_status=$?
13940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13941 (exit $ac_status); }; } &&
13942 { ac_try='test -s conftest.$ac_objext'
13943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13944 (eval $ac_try) 2>&5
13945 ac_status=$?
13946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13947 (exit $ac_status); }; }; then
13948 bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=yes
13949else
13950 echo "$as_me: failed program was:" >&5
13951sed 's/^/| /' conftest.$ac_ext >&5
13952
13953bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=no
13954
13955fi
13956rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13957
13958
13959fi
13960echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&5
13961echo "${ECHO_T}$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&6
13962 ac_ext=cc
13963ac_cpp='$CXXCPP $CPPFLAGS'
13964ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13965ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13966ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13967
13968 if test "x$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" = "xyes"; then
13969 :; SGICXX=yes
13970 else
13971 :;
13972 fi
13973
13974
3006edc0
VZ
13975 ;;
13976
0093c2fc 13977 HP-UX*)
3006edc0
VZ
13978
13979
13980 ac_ext=cc
13981ac_cpp='$CXXCPP $CPPFLAGS'
13982ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13983ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13984ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13985
0093c2fc
VZ
13986 echo "$as_me:$LINENO: checking whether we are using the HP C++ compiler" >&5
13987echo $ECHO_N "checking whether we are using the HP C++ compiler... $ECHO_C" >&6
13988if test "${bakefile_cv_cxx_compiler___HP_aCC+set}" = set; then
3006edc0
VZ
13989 echo $ECHO_N "(cached) $ECHO_C" >&6
13990else
13991 cat >conftest.$ac_ext <<_ACEOF
13992/* confdefs.h. */
13993_ACEOF
13994cat confdefs.h >>conftest.$ac_ext
13995cat >>conftest.$ac_ext <<_ACEOF
13996/* end confdefs.h. */
13997
13998int
13999main ()
14000{
14001
0093c2fc 14002 #ifndef __HP_aCC
3006edc0
VZ
14003 choke me
14004 #endif
14005
14006 ;
14007 return 0;
14008}
14009_ACEOF
14010rm -f conftest.$ac_objext
14011if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14012 (eval $ac_compile) 2>conftest.er1
14013 ac_status=$?
14014 grep -v '^ *+' conftest.er1 >conftest.err
14015 rm -f conftest.er1
14016 cat conftest.err >&5
14017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14018 (exit $ac_status); } &&
f10e38c4 14019 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3006edc0
VZ
14020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14021 (eval $ac_try) 2>&5
14022 ac_status=$?
14023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14024 (exit $ac_status); }; } &&
14025 { ac_try='test -s conftest.$ac_objext'
14026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14027 (eval $ac_try) 2>&5
14028 ac_status=$?
14029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14030 (exit $ac_status); }; }; then
0093c2fc 14031 bakefile_cv_cxx_compiler___HP_aCC=yes
3006edc0
VZ
14032else
14033 echo "$as_me: failed program was:" >&5
14034sed 's/^/| /' conftest.$ac_ext >&5
14035
0093c2fc 14036bakefile_cv_cxx_compiler___HP_aCC=no
3006edc0
VZ
14037
14038fi
14039rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14040
14041
14042fi
0093c2fc
VZ
14043echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___HP_aCC" >&5
14044echo "${ECHO_T}$bakefile_cv_cxx_compiler___HP_aCC" >&6
3006edc0
VZ
14045 ac_ext=cc
14046ac_cpp='$CXXCPP $CPPFLAGS'
14047ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14048ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14049ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14050
0093c2fc
VZ
14051 if test "x$bakefile_cv_cxx_compiler___HP_aCC" = "xyes"; then
14052 :; HPCXX=yes
a1aa0349
VZ
14053 else
14054 :;
14055 fi
14056
14057
14058 ;;
14059
0093c2fc 14060 OSF1)
a1aa0349
VZ
14061
14062
14063 ac_ext=cc
14064ac_cpp='$CXXCPP $CPPFLAGS'
14065ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14066ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14067ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14068
0093c2fc
VZ
14069 echo "$as_me:$LINENO: checking whether we are using the Compaq C++ compiler" >&5
14070echo $ECHO_N "checking whether we are using the Compaq C++ compiler... $ECHO_C" >&6
14071if test "${bakefile_cv_cxx_compiler___DECCXX+set}" = set; then
a1aa0349
VZ
14072 echo $ECHO_N "(cached) $ECHO_C" >&6
14073else
14074 cat >conftest.$ac_ext <<_ACEOF
14075/* confdefs.h. */
14076_ACEOF
14077cat confdefs.h >>conftest.$ac_ext
14078cat >>conftest.$ac_ext <<_ACEOF
14079/* end confdefs.h. */
14080
14081int
14082main ()
14083{
14084
0093c2fc 14085 #ifndef __DECCXX
a1aa0349
VZ
14086 choke me
14087 #endif
14088
14089 ;
14090 return 0;
14091}
14092_ACEOF
14093rm -f conftest.$ac_objext
14094if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14095 (eval $ac_compile) 2>conftest.er1
14096 ac_status=$?
14097 grep -v '^ *+' conftest.er1 >conftest.err
14098 rm -f conftest.er1
14099 cat conftest.err >&5
14100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14101 (exit $ac_status); } &&
f10e38c4 14102 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
a1aa0349
VZ
14103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14104 (eval $ac_try) 2>&5
14105 ac_status=$?
14106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14107 (exit $ac_status); }; } &&
14108 { ac_try='test -s conftest.$ac_objext'
14109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14110 (eval $ac_try) 2>&5
14111 ac_status=$?
14112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14113 (exit $ac_status); }; }; then
0093c2fc 14114 bakefile_cv_cxx_compiler___DECCXX=yes
a1aa0349
VZ
14115else
14116 echo "$as_me: failed program was:" >&5
14117sed 's/^/| /' conftest.$ac_ext >&5
14118
0093c2fc 14119bakefile_cv_cxx_compiler___DECCXX=no
a1aa0349
VZ
14120
14121fi
14122rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14123
14124
14125fi
0093c2fc
VZ
14126echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___DECCXX" >&5
14127echo "${ECHO_T}$bakefile_cv_cxx_compiler___DECCXX" >&6
a1aa0349
VZ
14128 ac_ext=cc
14129ac_cpp='$CXXCPP $CPPFLAGS'
14130ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14131ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14132ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14133
0093c2fc
VZ
14134 if test "x$bakefile_cv_cxx_compiler___DECCXX" = "xyes"; then
14135 :; COMPAQCXX=yes
14136 else
14137 :;
14138 fi
14139
14140
14141 ;;
14142
14143 SunOS)
14144
14145
14146 ac_ext=cc
14147ac_cpp='$CXXCPP $CPPFLAGS'
14148ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14149ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14150ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14151
14152 echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
14153echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6
14154if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
14155 echo $ECHO_N "(cached) $ECHO_C" >&6
14156else
14157 cat >conftest.$ac_ext <<_ACEOF
14158/* confdefs.h. */
14159_ACEOF
14160cat confdefs.h >>conftest.$ac_ext
14161cat >>conftest.$ac_ext <<_ACEOF
14162/* end confdefs.h. */
14163
14164int
14165main ()
14166{
14167
14168 #ifndef __SUNPRO_CC
14169 choke me
14170 #endif
14171
14172 ;
14173 return 0;
14174}
14175_ACEOF
14176rm -f conftest.$ac_objext
14177if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14178 (eval $ac_compile) 2>conftest.er1
14179 ac_status=$?
14180 grep -v '^ *+' conftest.er1 >conftest.err
14181 rm -f conftest.er1
14182 cat conftest.err >&5
14183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14184 (exit $ac_status); } &&
f10e38c4 14185 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0093c2fc
VZ
14186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14187 (eval $ac_try) 2>&5
14188 ac_status=$?
14189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14190 (exit $ac_status); }; } &&
14191 { ac_try='test -s conftest.$ac_objext'
14192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14193 (eval $ac_try) 2>&5
14194 ac_status=$?
14195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14196 (exit $ac_status); }; }; then
14197 bakefile_cv_cxx_compiler___SUNPRO_CC=yes
14198else
14199 echo "$as_me: failed program was:" >&5
14200sed 's/^/| /' conftest.$ac_ext >&5
14201
14202bakefile_cv_cxx_compiler___SUNPRO_CC=no
14203
14204fi
14205rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14206
14207
14208fi
14209echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
14210echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6
14211 ac_ext=cc
14212ac_cpp='$CXXCPP $CPPFLAGS'
14213ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14214ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14215ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14216
14217 if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
14218 :; SUNCXX=yes
3006edc0
VZ
14219 else
14220 :;
ab0ad5f1 14221 fi
a9e5b1f0
MW
14222
14223
3006edc0
VZ
14224 ;;
14225 esac
14226 fi
14227
14228
14229
a848cd7e
SC
14230ac_ext=c
14231ac_cpp='$CPP $CPPFLAGS'
14232ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14233ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14234ac_compiler_gnu=$ac_cv_c_compiler_gnu
14235
14236
a848cd7e
SC
14237if test -n "$ac_tool_prefix"; then
14238 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14239set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14240echo "$as_me:$LINENO: checking for $ac_word" >&5
14241echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14242if test "${ac_cv_prog_RANLIB+set}" = set; then
14243 echo $ECHO_N "(cached) $ECHO_C" >&6
14244else
14245 if test -n "$RANLIB"; then
14246 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14247else
14248as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14249for as_dir in $PATH
14250do
14251 IFS=$as_save_IFS
14252 test -z "$as_dir" && as_dir=.
14253 for ac_exec_ext in '' $ac_executable_extensions; do
14254 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14255 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14256 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14257 break 2
14258 fi
14259done
14260done
14261
14262fi
14263fi
14264RANLIB=$ac_cv_prog_RANLIB
14265if test -n "$RANLIB"; then
14266 echo "$as_me:$LINENO: result: $RANLIB" >&5
14267echo "${ECHO_T}$RANLIB" >&6
14268else
14269 echo "$as_me:$LINENO: result: no" >&5
14270echo "${ECHO_T}no" >&6
14271fi
14272
14273fi
14274if test -z "$ac_cv_prog_RANLIB"; then
14275 ac_ct_RANLIB=$RANLIB
14276 # Extract the first word of "ranlib", so it can be a program name with args.
14277set dummy ranlib; ac_word=$2
14278echo "$as_me:$LINENO: checking for $ac_word" >&5
14279echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14280if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14281 echo $ECHO_N "(cached) $ECHO_C" >&6
14282else
14283 if test -n "$ac_ct_RANLIB"; then
14284 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14285else
14286as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14287for as_dir in $PATH
14288do
14289 IFS=$as_save_IFS
14290 test -z "$as_dir" && as_dir=.
14291 for ac_exec_ext in '' $ac_executable_extensions; do
14292 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14293 ac_cv_prog_ac_ct_RANLIB="ranlib"
14294 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14295 break 2
14296 fi
14297done
14298done
14299
14300 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
14301fi
14302fi
14303ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14304if test -n "$ac_ct_RANLIB"; then
14305 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14306echo "${ECHO_T}$ac_ct_RANLIB" >&6
14307else
14308 echo "$as_me:$LINENO: result: no" >&5
14309echo "${ECHO_T}no" >&6
14310fi
14311
14312 RANLIB=$ac_ct_RANLIB
14313else
14314 RANLIB="$ac_cv_prog_RANLIB"
14315fi
14316
14317
8c80d384
DE
14318if test -n "$ac_tool_prefix"; then
14319 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14320set dummy ${ac_tool_prefix}ar; ac_word=$2
a848cd7e
SC
14321echo "$as_me:$LINENO: checking for $ac_word" >&5
14322echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14323if test "${ac_cv_prog_AR+set}" = set; then
14324 echo $ECHO_N "(cached) $ECHO_C" >&6
14325else
14326 if test -n "$AR"; then
14327 ac_cv_prog_AR="$AR" # Let the user override the test.
14328else
14329as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14330for as_dir in $PATH
14331do
14332 IFS=$as_save_IFS
14333 test -z "$as_dir" && as_dir=.
14334 for ac_exec_ext in '' $ac_executable_extensions; do
14335 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8c80d384 14336 ac_cv_prog_AR="${ac_tool_prefix}ar"
a848cd7e
SC
14337 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14338 break 2
14339 fi
14340done
14341done
14342
14343fi
14344fi
14345AR=$ac_cv_prog_AR
14346if test -n "$AR"; then
14347 echo "$as_me:$LINENO: result: $AR" >&5
14348echo "${ECHO_T}$AR" >&6
14349else
14350 echo "$as_me:$LINENO: result: no" >&5
14351echo "${ECHO_T}no" >&6
14352fi
14353
8c80d384
DE
14354fi
14355if test -z "$ac_cv_prog_AR"; then
14356 ac_ct_AR=$AR
14357 # Extract the first word of "ar", so it can be a program name with args.
14358set dummy ar; ac_word=$2
14359echo "$as_me:$LINENO: checking for $ac_word" >&5
14360echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14361if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
14362 echo $ECHO_N "(cached) $ECHO_C" >&6
14363else
14364 if test -n "$ac_ct_AR"; then
14365 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14366else
14367as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14368for as_dir in $PATH
14369do
14370 IFS=$as_save_IFS
14371 test -z "$as_dir" && as_dir=.
14372 for ac_exec_ext in '' $ac_executable_extensions; do
14373 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14374 ac_cv_prog_ac_ct_AR="ar"
14375 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14376 break 2
14377 fi
14378done
14379done
14380
14381fi
14382fi
14383ac_ct_AR=$ac_cv_prog_ac_ct_AR
14384if test -n "$ac_ct_AR"; then
14385 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
14386echo "${ECHO_T}$ac_ct_AR" >&6
14387else
14388 echo "$as_me:$LINENO: result: no" >&5
14389echo "${ECHO_T}no" >&6
14390fi
14391
14392 AR=$ac_ct_AR
14393else
14394 AR="$ac_cv_prog_AR"
14395fi
14396
a848cd7e 14397if test "x$AR" = "x" ; then
77ffb593
JS
14398 { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
14399echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
a848cd7e
SC
14400 { (exit 1); exit 1; }; }
14401fi
14402
14403# Find a good install program. We prefer a C program (faster),
14404# so one script is as good as another. But avoid the broken or
14405# incompatible versions:
14406# SysV /etc/install, /usr/sbin/install
14407# SunOS /usr/etc/install
14408# IRIX /sbin/install
14409# AIX /bin/install
14410# AmigaOS /C/install, which installs bootblocks on floppy discs
14411# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
14412# AFS /usr/afsws/bin/install, which mishandles nonexistent args
14413# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 14414# OS/2's system install, which has a completely different semantic
a848cd7e
SC
14415# ./install, which can be erroneously created by make from ./install.sh.
14416echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
14417echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
14418if test -z "$INSTALL"; then
14419if test "${ac_cv_path_install+set}" = set; then
14420 echo $ECHO_N "(cached) $ECHO_C" >&6
14421else
14422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14423for as_dir in $PATH
14424do
14425 IFS=$as_save_IFS
14426 test -z "$as_dir" && as_dir=.
14427 # Account for people who put trailing slashes in PATH elements.
14428case $as_dir/ in
14429 ./ | .// | /cC/* | \
14430 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 14431 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
14432 /usr/ucb/* ) ;;
14433 *)
14434 # OSF1 and SCO ODT 3.0 have their own names for install.
14435 # Don't use installbsd from OSF since it installs stuff as root
14436 # by default.
14437 for ac_prog in ginstall scoinst install; do
14438 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
14439 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
14440 if test $ac_prog = install &&
14441 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
14442 # AIX install. It has an incompatible calling convention.
14443 :
14444 elif test $ac_prog = install &&
14445 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
14446 # program-specific install script used by HP pwplus--don't use.
14447 :
14448 else
14449 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
14450 break 3
14451 fi
14452 fi
a848cd7e
SC
14453 done
14454 done
14455 ;;
14456esac
14457done
14458
14459
14460fi
14461 if test "${ac_cv_path_install+set}" = set; then
14462 INSTALL=$ac_cv_path_install
14463 else
14464 # As a last resort, use the slow shell script. We don't cache a
14465 # path for INSTALL within a source directory, because that will
14466 # break other packages using the cache if that directory is
14467 # removed, or if the path is relative.
14468 INSTALL=$ac_install_sh
14469 fi
14470fi
14471echo "$as_me:$LINENO: result: $INSTALL" >&5
14472echo "${ECHO_T}$INSTALL" >&6
14473
14474# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
14475# It thinks the first close brace ends the variable substitution.
14476test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
14477
14478test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
14479
14480test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
14481
14482
14483case ${INSTALL} in
14484 /* ) # Absolute
14485 ;;
14486 ?:* ) # Drive letter, considered as absolute.
14487 ;;
14488 *)
14489 INSTALL=`pwd`/${INSTALL} ;;
14490esac
14491
a848cd7e
SC
14492
14493case "${host}" in
14494
cfda0ea8 14495 *-*-darwin* )
a848cd7e
SC
14496 INSTALL_PROGRAM="cp -fp"
14497 INSTALL_DATA="cp -fp"
14498 ;;
14499 *)
14500 ;;
14501esac
14502
8c80d384
DE
14503if test -n "$ac_tool_prefix"; then
14504 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14505set dummy ${ac_tool_prefix}strip; ac_word=$2
a848cd7e
SC
14506echo "$as_me:$LINENO: checking for $ac_word" >&5
14507echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14508if test "${ac_cv_prog_STRIP+set}" = set; then
14509 echo $ECHO_N "(cached) $ECHO_C" >&6
14510else
14511 if test -n "$STRIP"; then
14512 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14513else
14514as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14515for as_dir in $PATH
14516do
14517 IFS=$as_save_IFS
14518 test -z "$as_dir" && as_dir=.
14519 for ac_exec_ext in '' $ac_executable_extensions; do
14520 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8c80d384 14521 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
a848cd7e
SC
14522 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14523 break 2
14524 fi
14525done
14526done
14527
a848cd7e
SC
14528fi
14529fi
14530STRIP=$ac_cv_prog_STRIP
14531if test -n "$STRIP"; then
14532 echo "$as_me:$LINENO: result: $STRIP" >&5
14533echo "${ECHO_T}$STRIP" >&6
14534else
14535 echo "$as_me:$LINENO: result: no" >&5
14536echo "${ECHO_T}no" >&6
14537fi
14538
8c80d384
DE
14539fi
14540if test -z "$ac_cv_prog_STRIP"; then
14541 ac_ct_STRIP=$STRIP
14542 # Extract the first word of "strip", so it can be a program name with args.
14543set dummy strip; ac_word=$2
14544echo "$as_me:$LINENO: checking for $ac_word" >&5
14545echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14546if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14547 echo $ECHO_N "(cached) $ECHO_C" >&6
14548else
14549 if test -n "$ac_ct_STRIP"; then
14550 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14551else
14552as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14553for as_dir in $PATH
14554do
14555 IFS=$as_save_IFS
14556 test -z "$as_dir" && as_dir=.
14557 for ac_exec_ext in '' $ac_executable_extensions; do
14558 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14559 ac_cv_prog_ac_ct_STRIP="strip"
14560 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14561 break 2
14562 fi
14563done
14564done
14565
14566 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP="true"
14567fi
14568fi
14569ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14570if test -n "$ac_ct_STRIP"; then
14571 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14572echo "${ECHO_T}$ac_ct_STRIP" >&6
14573else
14574 echo "$as_me:$LINENO: result: no" >&5
14575echo "${ECHO_T}no" >&6
14576fi
14577
14578 STRIP=$ac_ct_STRIP
14579else
14580 STRIP="$ac_cv_prog_STRIP"
14581fi
14582
14583
14584if test "$wxUSE_WINE" = "yes"; then
14585 if test -n "$ac_tool_prefix"; then
14586 # Extract the first word of "${ac_tool_prefix}wrc", so it can be a program name with args.
14587set dummy ${ac_tool_prefix}wrc; ac_word=$2
14588echo "$as_me:$LINENO: checking for $ac_word" >&5
14589echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 14590if test "${ac_cv_prog_WINDRES+set}" = set; then
8c80d384
DE
14591 echo $ECHO_N "(cached) $ECHO_C" >&6
14592else
8ced02f6
DE
14593 if test -n "$WINDRES"; then
14594 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8c80d384
DE
14595else
14596as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14597for as_dir in $PATH
14598do
14599 IFS=$as_save_IFS
14600 test -z "$as_dir" && as_dir=.
14601 for ac_exec_ext in '' $ac_executable_extensions; do
14602 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 14603 ac_cv_prog_WINDRES="${ac_tool_prefix}wrc"
8c80d384
DE
14604 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14605 break 2
14606 fi
14607done
14608done
14609
14610fi
14611fi
8ced02f6
DE
14612WINDRES=$ac_cv_prog_WINDRES
14613if test -n "$WINDRES"; then
14614 echo "$as_me:$LINENO: result: $WINDRES" >&5
14615echo "${ECHO_T}$WINDRES" >&6
8c80d384
DE
14616else
14617 echo "$as_me:$LINENO: result: no" >&5
14618echo "${ECHO_T}no" >&6
14619fi
14620
14621fi
8ced02f6
DE
14622if test -z "$ac_cv_prog_WINDRES"; then
14623 ac_ct_WINDRES=$WINDRES
8c80d384
DE
14624 # Extract the first word of "wrc", so it can be a program name with args.
14625set dummy wrc; ac_word=$2
14626echo "$as_me:$LINENO: checking for $ac_word" >&5
14627echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 14628if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
8c80d384
DE
14629 echo $ECHO_N "(cached) $ECHO_C" >&6
14630else
8ced02f6
DE
14631 if test -n "$ac_ct_WINDRES"; then
14632 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
8c80d384
DE
14633else
14634as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14635for as_dir in $PATH
14636do
14637 IFS=$as_save_IFS
14638 test -z "$as_dir" && as_dir=.
14639 for ac_exec_ext in '' $ac_executable_extensions; do
14640 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 14641 ac_cv_prog_ac_ct_WINDRES="wrc"
8c80d384
DE
14642 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14643 break 2
14644 fi
14645done
14646done
14647
14648fi
14649fi
8ced02f6
DE
14650ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
14651if test -n "$ac_ct_WINDRES"; then
14652 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
14653echo "${ECHO_T}$ac_ct_WINDRES" >&6
8c80d384
DE
14654else
14655 echo "$as_me:$LINENO: result: no" >&5
14656echo "${ECHO_T}no" >&6
14657fi
14658
8ced02f6 14659 WINDRES=$ac_ct_WINDRES
8c80d384 14660else
8ced02f6 14661 WINDRES="$ac_cv_prog_WINDRES"
8c80d384
DE
14662fi
14663
004ee6da 14664 RESCOMP="$WINDRES"
8c80d384
DE
14665else
14666 case "${host}" in
14667 *-*-cygwin* | *-*-mingw32* )
004ee6da
RL
14668 if test -n "$ac_tool_prefix"; then
14669 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
14670set dummy ${ac_tool_prefix}windres; ac_word=$2
14671echo "$as_me:$LINENO: checking for $ac_word" >&5
14672echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14673if test "${ac_cv_prog_WINDRES+set}" = set; then
14674 echo $ECHO_N "(cached) $ECHO_C" >&6
14675else
14676 if test -n "$WINDRES"; then
14677 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
14678else
14679as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14680for as_dir in $PATH
14681do
14682 IFS=$as_save_IFS
14683 test -z "$as_dir" && as_dir=.
14684 for ac_exec_ext in '' $ac_executable_extensions; do
14685 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14686 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
14687 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14688 break 2
14689 fi
14690done
14691done
14692
14693fi
14694fi
14695WINDRES=$ac_cv_prog_WINDRES
14696if test -n "$WINDRES"; then
14697 echo "$as_me:$LINENO: result: $WINDRES" >&5
14698echo "${ECHO_T}$WINDRES" >&6
14699else
14700 echo "$as_me:$LINENO: result: no" >&5
14701echo "${ECHO_T}no" >&6
14702fi
14703
14704fi
14705if test -z "$ac_cv_prog_WINDRES"; then
14706 ac_ct_WINDRES=$WINDRES
14707 # Extract the first word of "windres", so it can be a program name with args.
14708set dummy windres; ac_word=$2
14709echo "$as_me:$LINENO: checking for $ac_word" >&5
14710echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14711if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
14712 echo $ECHO_N "(cached) $ECHO_C" >&6
14713else
14714 if test -n "$ac_ct_WINDRES"; then
14715 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
14716else
14717as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14718for as_dir in $PATH
14719do
14720 IFS=$as_save_IFS
14721 test -z "$as_dir" && as_dir=.
14722 for ac_exec_ext in '' $ac_executable_extensions; do
14723 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14724 ac_cv_prog_ac_ct_WINDRES="windres"
14725 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14726 break 2
14727 fi
14728done
14729done
14730
14731fi
14732fi
14733ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
14734if test -n "$ac_ct_WINDRES"; then
14735 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
14736echo "${ECHO_T}$ac_ct_WINDRES" >&6
14737else
14738 echo "$as_me:$LINENO: result: no" >&5
14739echo "${ECHO_T}no" >&6
14740fi
14741
14742 WINDRES=$ac_ct_WINDRES
14743else
14744 WINDRES="$ac_cv_prog_WINDRES"
14745fi
14746
14747 RESCOMP="$WINDRES"
14748 if test -n "$ac_tool_prefix"; then
8c80d384
DE
14749 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
14750set dummy ${ac_tool_prefix}dlltool; ac_word=$2
14751echo "$as_me:$LINENO: checking for $ac_word" >&5
14752echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14753if test "${ac_cv_prog_DLLTOOL+set}" = set; then
14754 echo $ECHO_N "(cached) $ECHO_C" >&6
14755else
14756 if test -n "$DLLTOOL"; then
14757 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
14758else
14759as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14760for as_dir in $PATH
14761do
14762 IFS=$as_save_IFS
14763 test -z "$as_dir" && as_dir=.
14764 for ac_exec_ext in '' $ac_executable_extensions; do
14765 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14766 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
14767 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14768 break 2
14769 fi
14770done
14771done
14772
14773fi
14774fi
14775DLLTOOL=$ac_cv_prog_DLLTOOL
14776if test -n "$DLLTOOL"; then
14777 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
14778echo "${ECHO_T}$DLLTOOL" >&6
14779else
14780 echo "$as_me:$LINENO: result: no" >&5
14781echo "${ECHO_T}no" >&6
14782fi
14783
14784fi
14785if test -z "$ac_cv_prog_DLLTOOL"; then
14786 ac_ct_DLLTOOL=$DLLTOOL
14787 # Extract the first word of "dlltool", so it can be a program name with args.
14788set dummy dlltool; ac_word=$2
14789echo "$as_me:$LINENO: checking for $ac_word" >&5
14790echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14791if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
14792 echo $ECHO_N "(cached) $ECHO_C" >&6
14793else
14794 if test -n "$ac_ct_DLLTOOL"; then
14795 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
14796else
14797as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14798for as_dir in $PATH
14799do
14800 IFS=$as_save_IFS
14801 test -z "$as_dir" && as_dir=.
14802 for ac_exec_ext in '' $ac_executable_extensions; do
14803 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14804 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
14805 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14806 break 2
14807 fi
14808done
14809done
14810
14811fi
14812fi
14813ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
14814if test -n "$ac_ct_DLLTOOL"; then
14815 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
14816echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
14817else
14818 echo "$as_me:$LINENO: result: no" >&5
14819echo "${ECHO_T}no" >&6
14820fi
14821
14822 DLLTOOL=$ac_ct_DLLTOOL
14823else
14824 DLLTOOL="$ac_cv_prog_DLLTOOL"
14825fi
14826
14827 ;;
14828 esac
14829fi
a848cd7e
SC
14830
14831echo "$as_me:$LINENO: checking if make is GNU make" >&5
14832echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
14833if test "${wx_cv_prog_makeisgnu+set}" = set; then
14834 echo $ECHO_N "(cached) $ECHO_C" >&6
14835else
14836
14837 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
14838 egrep -s GNU > /dev/null); then
14839 wx_cv_prog_makeisgnu="yes"
14840 else
14841 wx_cv_prog_makeisgnu="no"
14842 fi
14843
14844fi
14845echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
14846echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
14847
14848if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
14849 IF_GNU_MAKE=""
14850else
14851 IF_GNU_MAKE="#"
14852fi
14853
14854
14855
14856if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
14857echo "$as_me:$LINENO: checking if make supports VPATH" >&5
14858echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
14859if test "${wx_cv_prog_makevpath+set}" = set; then
14860 echo $ECHO_N "(cached) $ECHO_C" >&6
14861else
14862
14863cat - << EOF > confMake
14864check : file
14865 cp \$? \$@
14866 cp \$? final_file
14867EOF
14868
14869if test ! -d sub ; then
14870 mkdir sub
14871fi
14872echo dummy > sub/file
14873${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
14874RESULT=$?
14875rm -f sub/file check final_file confMake
14876rmdir sub
14877if test "$RESULT" = 0; then
14878 wx_cv_prog_makevpath="yes"
14879else
14880 wx_cv_prog_makevpath="no"
14881fi
14882
14883fi
14884echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
14885echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
14886
14887if test "x$wx_cv_prog_makevpath" != "xyes"; then
14888{ { echo "$as_me:$LINENO: error:
14889You need a make-utility that is able to use the variable
14890VPATH correctly.
14891If your version of make does not support VPATH correctly,
14892please install GNU-make (possibly as gmake), and start
14893configure with the following command:
14894export MAKE=gmake; ./configure for sh-type shells
14895setenv MAKE gmake; ./configure for csh-type shells
14896Also please do remember to use gmake in this case every time
14897you are trying to compile.
14898" >&5
14899echo "$as_me: error:
14900You need a make-utility that is able to use the variable
14901VPATH correctly.
14902If your version of make does not support VPATH correctly,
14903please install GNU-make (possibly as gmake), and start
14904configure with the following command:
14905export MAKE=gmake; ./configure for sh-type shells
14906setenv MAKE gmake; ./configure for csh-type shells
14907Also please do remember to use gmake in this case every time
14908you are trying to compile.
14909" >&2;}
14910 { (exit 1); exit 1; }; }
14911fi fi
14912echo "$as_me:$LINENO: checking whether ln -s works" >&5
14913echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
14914LN_S=$as_ln_s
14915if test "$LN_S" = "ln -s"; then
14916 echo "$as_me:$LINENO: result: yes" >&5
14917echo "${ECHO_T}yes" >&6
14918else
14919 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
14920echo "${ECHO_T}no, using $LN_S" >&6
14921fi
14922
14923
bcaab0f9 14924
a848cd7e 14925
2113bc77 14926if test "x$XLCXX" = "xyes" -a "x$USE_AIX" = "x1"; then
c92ad099 14927 CXXFLAGS="-qunique $CXXFLAGS"
9273ffba
DE
14928fi
14929
4d7ec9f1
DE
14930case "${host}" in
14931 powerpc-*-darwin* )
14932 echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5
14933echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6
14934 cat >conftest.$ac_ext <<_ACEOF
14935/* confdefs.h. */
14936_ACEOF
14937cat confdefs.h >>conftest.$ac_ext
14938cat >>conftest.$ac_ext <<_ACEOF
14939/* end confdefs.h. */
14940
14941int
14942main ()
14943{
14944#ifndef __POWERPC__
14945 choke me for lack of PowerPC
14946#endif
14947
14948 ;
14949 return 0;
14950}
14951_ACEOF
14952rm -f conftest.$ac_objext
14953if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14954 (eval $ac_compile) 2>conftest.er1
14955 ac_status=$?
14956 grep -v '^ *+' conftest.er1 >conftest.err
14957 rm -f conftest.er1
14958 cat conftest.err >&5
14959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14960 (exit $ac_status); } &&
f10e38c4 14961 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
14962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14963 (eval $ac_try) 2>&5
14964 ac_status=$?
14965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14966 (exit $ac_status); }; } &&
14967 { ac_try='test -s conftest.$ac_objext'
14968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14969 (eval $ac_try) 2>&5
14970 ac_status=$?
14971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14972 (exit $ac_status); }; }; then
14973 echo "$as_me:$LINENO: result: yes" >&5
14974echo "${ECHO_T}yes" >&6
14975else
14976 echo "$as_me: failed program was:" >&5
14977sed 's/^/| /' conftest.$ac_ext >&5
14978
14979echo "$as_me:$LINENO: result: no" >&5
14980echo "${ECHO_T}no" >&6
14981 cat >>confdefs.h <<\_ACEOF
14982#define __POWERPC__ 1
14983_ACEOF
14984
14985
14986fi
14987rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
cfda0ea8
DE
14988 ;;
14989esac
14990
14991case "${host}" in
14992 *-*-darwin* )
4d7ec9f1
DE
14993 echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5
14994echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6
14995 cat >conftest.$ac_ext <<_ACEOF
14996/* confdefs.h. */
14997_ACEOF
14998cat confdefs.h >>conftest.$ac_ext
14999cat >>conftest.$ac_ext <<_ACEOF
15000/* end confdefs.h. */
15001#include <CoreFoundation/CFBase.h>
15002
15003int
15004main ()
15005{
15006
15007 ;
15008 return 0;
15009}
15010_ACEOF
15011rm -f conftest.$ac_objext
15012if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15013 (eval $ac_compile) 2>conftest.er1
15014 ac_status=$?
15015 grep -v '^ *+' conftest.er1 >conftest.err
15016 rm -f conftest.er1
15017 cat conftest.err >&5
15018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15019 (exit $ac_status); } &&
f10e38c4 15020 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
15021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15022 (eval $ac_try) 2>&5
15023 ac_status=$?
15024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15025 (exit $ac_status); }; } &&
15026 { ac_try='test -s conftest.$ac_objext'
15027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15028 (eval $ac_try) 2>&5
15029 ac_status=$?
15030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15031 (exit $ac_status); }; }; then
15032 echo "$as_me:$LINENO: result: yes" >&5
15033echo "${ECHO_T}yes" >&6
15034else
15035 echo "$as_me: failed program was:" >&5
15036sed 's/^/| /' conftest.$ac_ext >&5
15037
15038echo "$as_me:$LINENO: result: no" >&5
15039echo "${ECHO_T}no" >&6
15040 echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5
15041echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6
15042 cat >conftest.$ac_ext <<_ACEOF
15043/* confdefs.h. */
15044_ACEOF
15045cat confdefs.h >>conftest.$ac_ext
15046cat >>conftest.$ac_ext <<_ACEOF
15047/* end confdefs.h. */
15048#define __CF_USE_FRAMEWORK_INCLUDES__
15049#include <CoreFoundation/CFBase.h>
15050
15051int
15052main ()
15053{
15054
15055 ;
15056 return 0;
15057}
15058_ACEOF
15059rm -f conftest.$ac_objext
15060if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15061 (eval $ac_compile) 2>conftest.er1
15062 ac_status=$?
15063 grep -v '^ *+' conftest.er1 >conftest.err
15064 rm -f conftest.er1
15065 cat conftest.err >&5
15066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15067 (exit $ac_status); } &&
f10e38c4 15068 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
15069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15070 (eval $ac_try) 2>&5
15071 ac_status=$?
15072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15073 (exit $ac_status); }; } &&
15074 { ac_try='test -s conftest.$ac_objext'
15075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15076 (eval $ac_try) 2>&5
15077 ac_status=$?
15078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15079 (exit $ac_status); }; }; then
15080 echo "$as_me:$LINENO: result: yes" >&5
15081echo "${ECHO_T}yes" >&6
c92ad099 15082 CPPFLAGS="-D__CF_USE_FRAMEWORK_INCLUDES__ $CPPFLAGS"
4d7ec9f1
DE
15083else
15084 echo "$as_me: failed program was:" >&5
15085sed 's/^/| /' conftest.$ac_ext >&5
15086
15087{ { echo "$as_me:$LINENO: error: no. CoreFoundation not available.
15088See \`config.log' for more details." >&5
15089echo "$as_me: error: no. CoreFoundation not available.
15090See \`config.log' for more details." >&2;}
15091 { (exit 1); exit 1; }; }
15092
15093fi
15094rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15095
15096
15097fi
15098rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15099 ;;
15100esac
15101
a848cd7e
SC
15102case "${host}" in
15103 *-pc-os2_emx | *-pc-os2-emx )
15104 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
15105 echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
15106echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
15107if test "${ac_cv_lib_cExt_drand48+set}" = set; then
15108 echo $ECHO_N "(cached) $ECHO_C" >&6
15109else
15110 ac_check_lib_save_LIBS=$LIBS
15111LIBS="-lcExt $LIBS"
15112cat >conftest.$ac_ext <<_ACEOF
15113/* confdefs.h. */
15114_ACEOF
15115cat confdefs.h >>conftest.$ac_ext
15116cat >>conftest.$ac_ext <<_ACEOF
15117/* end confdefs.h. */
15118
15119/* Override any gcc2 internal prototype to avoid an error. */
15120#ifdef __cplusplus
15121extern "C"
15122#endif
15123/* We use char because int might match the return type of a gcc2
15124 builtin and then its argument prototype would still apply. */
15125char drand48 ();
15126int
15127main ()
15128{
15129drand48 ();
15130 ;
15131 return 0;
15132}
15133_ACEOF
15134rm -f conftest.$ac_objext conftest$ac_exeext
15135if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 15136 (eval $ac_link) 2>conftest.er1
a848cd7e 15137 ac_status=$?
ac1cb8d3
VS
15138 grep -v '^ *+' conftest.er1 >conftest.err
15139 rm -f conftest.er1
15140 cat conftest.err >&5
a848cd7e
SC
15141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15142 (exit $ac_status); } &&
f10e38c4 15143 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15145 (eval $ac_try) 2>&5
15146 ac_status=$?
15147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15148 (exit $ac_status); }; } &&
15149 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
15150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15151 (eval $ac_try) 2>&5
15152 ac_status=$?
15153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15154 (exit $ac_status); }; }; then
15155 ac_cv_lib_cExt_drand48=yes
15156else
15157 echo "$as_me: failed program was:" >&5
15158sed 's/^/| /' conftest.$ac_ext >&5
15159
15160ac_cv_lib_cExt_drand48=no
15161fi
ac1cb8d3
VS
15162rm -f conftest.err conftest.$ac_objext \
15163 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
15164LIBS=$ac_check_lib_save_LIBS
15165fi
15166echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
15167echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
15168if test $ac_cv_lib_cExt_drand48 = yes; then
15169 LIBS="$LIBS -lcExt"
15170fi
15171
15172 else
15173 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
15174 fi
69120ee4
VZ
15175 echo "$as_me:$LINENO: checking for gcc/libc version" >&5
15176echo $ECHO_N "checking for gcc/libc version... $ECHO_C" >&6
a848cd7e
SC
15177if test "${wx_cv_gccversion+set}" = set; then
15178 echo $ECHO_N "(cached) $ECHO_C" >&6
15179else
15180
391a765e
VS
15181 if test "$cross_compiling" = yes; then
15182 wx_cv_gccversion="EMX2"
15183
15184else
15185 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
15186/* confdefs.h. */
15187_ACEOF
15188cat confdefs.h >>conftest.$ac_ext
15189cat >>conftest.$ac_ext <<_ACEOF
15190/* end confdefs.h. */
15191
391a765e 15192 #include <stdio.h>
a848cd7e 15193
391a765e
VS
15194 int main()
15195 {
15196 FILE *f=fopen("conftestval", "w");
15197 if (!f) exit(1);
15198 fprintf(f,
a848cd7e 15199 #if (__GNUC__ < 3)
391a765e
VS
15200 "EMX2"
15201 #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
15202 "EMX3"
15203 #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2)
15204 "Innotek5"
15205 #else
15206 "Innotek6"
a848cd7e 15207 #endif
391a765e
VS
15208 );
15209 exit(0);
15210 }
a848cd7e 15211
a848cd7e 15212_ACEOF
391a765e
VS
15213rm -f conftest$ac_exeext
15214if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15215 (eval $ac_link) 2>&5
ac1cb8d3
VS
15216 ac_status=$?
15217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
391a765e 15218 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
a848cd7e
SC
15219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15220 (eval $ac_try) 2>&5
15221 ac_status=$?
15222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15223 (exit $ac_status); }; }; then
391a765e 15224 wx_cv_gccversion=`cat conftestval`
a848cd7e 15225else
391a765e
VS
15226 echo "$as_me: program exited with status $ac_status" >&5
15227echo "$as_me: failed program was:" >&5
a848cd7e
SC
15228sed 's/^/| /' conftest.$ac_ext >&5
15229
391a765e
VS
15230( exit $ac_status )
15231wx_cv_gccversion="EMX2"
a848cd7e 15232fi
391a765e 15233rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 15234fi
a848cd7e
SC
15235
15236fi
15237echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
15238echo "${ECHO_T}$wx_cv_gccversion" >&6
391a765e 15239 if test "$wx_cv_gccversion" = "EMX2"; then
a848cd7e
SC
15240 LIBS="$LIBS -lstdcpp"
15241 LDFLAGS="$LDFLAGS -Zsysv-signals"
15242 else
391a765e 15243 if test "$wx_cv_gccversion" = "EMX3"; then
ddd14b14 15244 LIBS="$LIBS -lstdcxx -lgcc"
a848cd7e
SC
15245 LDFLAGS="$LDFLAGS -Zsysv-signals"
15246 else
15247 LIBS="$LIBS -lstdc++"
15248 fi
15249 fi
94acd38e
DE
15250 if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then
15251 { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5
15252echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;}
15253 wxUSE_OMF=yes
2da0c077 15254 enable_omf=yes
a848cd7e
SC
15255 fi
15256 ;;
15257 *)
15258
a848cd7e
SC
15259 ac_ext=cc
15260ac_cpp='$CXXCPP $CPPFLAGS'
15261ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15262ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15263ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15264
15265
95986553 15266 echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
a848cd7e
SC
15267echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6
15268if test "${ac_cv_string_strcasecmp+set}" = set; then
15269 echo $ECHO_N "(cached) $ECHO_C" >&6
15270else
15271
15272 cat >conftest.$ac_ext <<_ACEOF
15273/* confdefs.h. */
15274_ACEOF
15275cat confdefs.h >>conftest.$ac_ext
15276cat >>conftest.$ac_ext <<_ACEOF
15277/* end confdefs.h. */
15278
15279 #include <string.h>
15280
15281int
15282main ()
15283{
15284
15285 strcasecmp("foo", "bar");
15286
15287 ;
15288 return 0;
15289}
15290_ACEOF
15291rm -f conftest.$ac_objext conftest$ac_exeext
15292if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 15293 (eval $ac_link) 2>conftest.er1
a848cd7e 15294 ac_status=$?
ac1cb8d3
VS
15295 grep -v '^ *+' conftest.er1 >conftest.err
15296 rm -f conftest.er1
15297 cat conftest.err >&5
a848cd7e
SC
15298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15299 (exit $ac_status); } &&
f10e38c4 15300 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15302 (eval $ac_try) 2>&5
15303 ac_status=$?
15304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15305 (exit $ac_status); }; } &&
15306 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
15307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15308 (eval $ac_try) 2>&5
15309 ac_status=$?
15310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15311 (exit $ac_status); }; }; then
15312 ac_cv_string_strcasecmp=yes
15313else
15314 echo "$as_me: failed program was:" >&5
15315sed 's/^/| /' conftest.$ac_ext >&5
15316
15317ac_cv_string_strcasecmp=no
15318
15319fi
ac1cb8d3
VS
15320rm -f conftest.err conftest.$ac_objext \
15321 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
15322
15323fi
15324echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
15325echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6
15326
15327 if test x"$ac_cv_string_strcasecmp" = "xyes"; then
15328 cat >>confdefs.h <<\_ACEOF
15329#define HAVE_STRCASECMP_IN_STRING_H 1
15330_ACEOF
15331
15332 else
15333 echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
15334echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6
15335if test "${ac_cv_strings_strcasecmp+set}" = set; then
15336 echo $ECHO_N "(cached) $ECHO_C" >&6
15337else
15338
15339 cat >conftest.$ac_ext <<_ACEOF
15340/* confdefs.h. */
15341_ACEOF
15342cat confdefs.h >>conftest.$ac_ext
15343cat >>conftest.$ac_ext <<_ACEOF
15344/* end confdefs.h. */
15345
15346 #include <strings.h>
15347
15348int
15349main ()
15350{
15351
15352 strcasecmp("foo", "bar");
15353
15354 ;
15355 return 0;
15356}
15357_ACEOF
15358rm -f conftest.$ac_objext conftest$ac_exeext
15359if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 15360 (eval $ac_link) 2>conftest.er1
a848cd7e 15361 ac_status=$?
ac1cb8d3
VS
15362 grep -v '^ *+' conftest.er1 >conftest.err
15363 rm -f conftest.er1
15364 cat conftest.err >&5
a848cd7e
SC
15365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15366 (exit $ac_status); } &&
f10e38c4 15367 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15369 (eval $ac_try) 2>&5
15370 ac_status=$?
15371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15372 (exit $ac_status); }; } &&
15373 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
15374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15375 (eval $ac_try) 2>&5
15376 ac_status=$?
15377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15378 (exit $ac_status); }; }; then
15379 ac_cv_strings_strcasecmp=yes
15380else
15381 echo "$as_me: failed program was:" >&5
15382sed 's/^/| /' conftest.$ac_ext >&5
15383
15384ac_cv_strings_strcasecmp=no
15385
15386fi
ac1cb8d3
VS
15387rm -f conftest.err conftest.$ac_objext \
15388 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
15389
15390fi
15391echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
15392echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6
15393
0c3c69fc 15394 if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
a848cd7e
SC
15395 cat >>confdefs.h <<\_ACEOF
15396#define HAVE_STRCASECMP_IN_STRINGS_H 1
15397_ACEOF
15398
15399 else
15400 { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
15401echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
15402 { (exit 1); exit 1; }; }
15403 fi
15404 fi
15405
15406 ac_ext=c
15407ac_cpp='$CPP $CPPFLAGS'
15408ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15409ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15410ac_compiler_gnu=$ac_cv_c_compiler_gnu
15411
15412 ;;
15413esac
15414
15415
15416echo "$as_me:$LINENO: checking for ANSI C header files" >&5
15417echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
15418if test "${ac_cv_header_stdc+set}" = set; then
15419 echo $ECHO_N "(cached) $ECHO_C" >&6
15420else
15421 cat >conftest.$ac_ext <<_ACEOF
15422/* confdefs.h. */
15423_ACEOF
15424cat confdefs.h >>conftest.$ac_ext
15425cat >>conftest.$ac_ext <<_ACEOF
15426/* end confdefs.h. */
15427#include <stdlib.h>
15428#include <stdarg.h>
15429#include <string.h>
15430#include <float.h>
15431
15432int
15433main ()
15434{
15435
15436 ;
15437 return 0;
15438}
15439_ACEOF
15440rm -f conftest.$ac_objext
15441if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15442 (eval $ac_compile) 2>conftest.er1
a848cd7e 15443 ac_status=$?
ac1cb8d3
VS
15444 grep -v '^ *+' conftest.er1 >conftest.err
15445 rm -f conftest.er1
15446 cat conftest.err >&5
a848cd7e
SC
15447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15448 (exit $ac_status); } &&
f10e38c4 15449 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15451 (eval $ac_try) 2>&5
15452 ac_status=$?
15453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15454 (exit $ac_status); }; } &&
15455 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15457 (eval $ac_try) 2>&5
15458 ac_status=$?
15459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15460 (exit $ac_status); }; }; then
15461 ac_cv_header_stdc=yes
15462else
15463 echo "$as_me: failed program was:" >&5
15464sed 's/^/| /' conftest.$ac_ext >&5
15465
15466ac_cv_header_stdc=no
15467fi
ac1cb8d3 15468rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15469
15470if test $ac_cv_header_stdc = yes; then
15471 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15472 cat >conftest.$ac_ext <<_ACEOF
15473/* confdefs.h. */
15474_ACEOF
15475cat confdefs.h >>conftest.$ac_ext
15476cat >>conftest.$ac_ext <<_ACEOF
15477/* end confdefs.h. */
15478#include <string.h>
15479
15480_ACEOF
15481if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15482 $EGREP "memchr" >/dev/null 2>&1; then
15483 :
15484else
15485 ac_cv_header_stdc=no
15486fi
15487rm -f conftest*
15488
15489fi
15490
15491if test $ac_cv_header_stdc = yes; then
15492 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15493 cat >conftest.$ac_ext <<_ACEOF
15494/* confdefs.h. */
15495_ACEOF
15496cat confdefs.h >>conftest.$ac_ext
15497cat >>conftest.$ac_ext <<_ACEOF
15498/* end confdefs.h. */
15499#include <stdlib.h>
15500
15501_ACEOF
15502if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15503 $EGREP "free" >/dev/null 2>&1; then
15504 :
15505else
15506 ac_cv_header_stdc=no
15507fi
15508rm -f conftest*
15509
15510fi
15511
15512if test $ac_cv_header_stdc = yes; then
15513 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15514 if test "$cross_compiling" = yes; then
15515 :
15516else
15517 cat >conftest.$ac_ext <<_ACEOF
15518/* confdefs.h. */
15519_ACEOF
15520cat confdefs.h >>conftest.$ac_ext
15521cat >>conftest.$ac_ext <<_ACEOF
15522/* end confdefs.h. */
15523#include <ctype.h>
15524#if ((' ' & 0x0FF) == 0x020)
15525# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15526# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15527#else
15528# define ISLOWER(c) \
ac1cb8d3
VS
15529 (('a' <= (c) && (c) <= 'i') \
15530 || ('j' <= (c) && (c) <= 'r') \
15531 || ('s' <= (c) && (c) <= 'z'))
a848cd7e
SC
15532# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15533#endif
15534
15535#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15536int
15537main ()
15538{
15539 int i;
15540 for (i = 0; i < 256; i++)
15541 if (XOR (islower (i), ISLOWER (i))
ac1cb8d3 15542 || toupper (i) != TOUPPER (i))
a848cd7e
SC
15543 exit(2);
15544 exit (0);
15545}
15546_ACEOF
15547rm -f conftest$ac_exeext
15548if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15549 (eval $ac_link) 2>&5
15550 ac_status=$?
15551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15552 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15554 (eval $ac_try) 2>&5
15555 ac_status=$?
15556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15557 (exit $ac_status); }; }; then
15558 :
15559else
15560 echo "$as_me: program exited with status $ac_status" >&5
15561echo "$as_me: failed program was:" >&5
15562sed 's/^/| /' conftest.$ac_ext >&5
15563
15564( exit $ac_status )
15565ac_cv_header_stdc=no
15566fi
ac1cb8d3 15567rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15568fi
15569fi
15570fi
15571echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
15572echo "${ECHO_T}$ac_cv_header_stdc" >&6
15573if test $ac_cv_header_stdc = yes; then
15574
15575cat >>confdefs.h <<\_ACEOF
15576#define STDC_HEADERS 1
15577_ACEOF
15578
15579fi
15580
15581# On IRIX 5.3, sys/types and inttypes.h are conflicting.
15582
15583
15584
15585
15586
15587
15588
15589
15590
15591for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
ac1cb8d3 15592 inttypes.h stdint.h unistd.h
a848cd7e
SC
15593do
15594as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15595echo "$as_me:$LINENO: checking for $ac_header" >&5
15596echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15597if eval "test \"\${$as_ac_Header+set}\" = set"; then
15598 echo $ECHO_N "(cached) $ECHO_C" >&6
15599else
15600 cat >conftest.$ac_ext <<_ACEOF
15601/* confdefs.h. */
15602_ACEOF
15603cat confdefs.h >>conftest.$ac_ext
15604cat >>conftest.$ac_ext <<_ACEOF
15605/* end confdefs.h. */
15606$ac_includes_default
15607
15608#include <$ac_header>
15609_ACEOF
15610rm -f conftest.$ac_objext
15611if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15612 (eval $ac_compile) 2>conftest.er1
a848cd7e 15613 ac_status=$?
ac1cb8d3
VS
15614 grep -v '^ *+' conftest.er1 >conftest.err
15615 rm -f conftest.er1
15616 cat conftest.err >&5
a848cd7e
SC
15617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15618 (exit $ac_status); } &&
f10e38c4 15619 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15621 (eval $ac_try) 2>&5
15622 ac_status=$?
15623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15624 (exit $ac_status); }; } &&
15625 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15627 (eval $ac_try) 2>&5
15628 ac_status=$?
15629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15630 (exit $ac_status); }; }; then
15631 eval "$as_ac_Header=yes"
15632else
15633 echo "$as_me: failed program was:" >&5
15634sed 's/^/| /' conftest.$ac_ext >&5
15635
15636eval "$as_ac_Header=no"
15637fi
ac1cb8d3 15638rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15639fi
15640echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15641echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15642if test `eval echo '${'$as_ac_Header'}'` = yes; then
15643 cat >>confdefs.h <<_ACEOF
15644#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15645_ACEOF
15646
15647fi
15648
15649done
15650
15651
15652
15653for ac_header in stdlib.h
15654do
15655as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15656if eval "test \"\${$as_ac_Header+set}\" = set"; then
15657 echo "$as_me:$LINENO: checking for $ac_header" >&5
15658echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15659if eval "test \"\${$as_ac_Header+set}\" = set"; then
15660 echo $ECHO_N "(cached) $ECHO_C" >&6
15661fi
15662echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15663echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15664else
15665 # Is the header compilable?
15666echo "$as_me:$LINENO: checking $ac_header usability" >&5
15667echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15668cat >conftest.$ac_ext <<_ACEOF
15669/* confdefs.h. */
15670_ACEOF
15671cat confdefs.h >>conftest.$ac_ext
15672cat >>conftest.$ac_ext <<_ACEOF
15673/* end confdefs.h. */
15674$ac_includes_default
15675#include <$ac_header>
15676_ACEOF
15677rm -f conftest.$ac_objext
15678if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15679 (eval $ac_compile) 2>conftest.er1
a848cd7e 15680 ac_status=$?
ac1cb8d3
VS
15681 grep -v '^ *+' conftest.er1 >conftest.err
15682 rm -f conftest.er1
15683 cat conftest.err >&5
a848cd7e
SC
15684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15685 (exit $ac_status); } &&
f10e38c4 15686 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15688 (eval $ac_try) 2>&5
15689 ac_status=$?
15690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15691 (exit $ac_status); }; } &&
15692 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15694 (eval $ac_try) 2>&5
15695 ac_status=$?
15696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15697 (exit $ac_status); }; }; then
15698 ac_header_compiler=yes
15699else
15700 echo "$as_me: failed program was:" >&5
15701sed 's/^/| /' conftest.$ac_ext >&5
15702
15703ac_header_compiler=no
15704fi
ac1cb8d3 15705rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15706echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15707echo "${ECHO_T}$ac_header_compiler" >&6
15708
15709# Is the header present?
15710echo "$as_me:$LINENO: checking $ac_header presence" >&5
15711echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15712cat >conftest.$ac_ext <<_ACEOF
15713/* confdefs.h. */
15714_ACEOF
15715cat confdefs.h >>conftest.$ac_ext
15716cat >>conftest.$ac_ext <<_ACEOF
15717/* end confdefs.h. */
15718#include <$ac_header>
15719_ACEOF
15720if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15721 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15722 ac_status=$?
15723 grep -v '^ *+' conftest.er1 >conftest.err
15724 rm -f conftest.er1
15725 cat conftest.err >&5
15726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15727 (exit $ac_status); } >/dev/null; then
15728 if test -s conftest.err; then
15729 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 15730 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
15731 else
15732 ac_cpp_err=
15733 fi
15734else
15735 ac_cpp_err=yes
15736fi
15737if test -z "$ac_cpp_err"; then
15738 ac_header_preproc=yes
15739else
15740 echo "$as_me: failed program was:" >&5
15741sed 's/^/| /' conftest.$ac_ext >&5
15742
15743 ac_header_preproc=no
15744fi
15745rm -f conftest.err conftest.$ac_ext
15746echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15747echo "${ECHO_T}$ac_header_preproc" >&6
15748
15749# So? What about this header?
ac1cb8d3
VS
15750case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15751 yes:no: )
a848cd7e
SC
15752 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15753echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
15754 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15755echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15756 ac_header_preproc=yes
a848cd7e 15757 ;;
ac1cb8d3 15758 no:yes:* )
a848cd7e
SC
15759 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15760echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
15761 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15762echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15763 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15764echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15765 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15766echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
15767 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15768echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
15769 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15770echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
15771 (
15772 cat <<\_ASBOX
ac1cb8d3
VS
15773## ----------------------------------------- ##
15774## Report this to wx-dev@lists.wxwidgets.org ##
15775## ----------------------------------------- ##
a848cd7e
SC
15776_ASBOX
15777 ) |
15778 sed "s/^/$as_me: WARNING: /" >&2
15779 ;;
15780esac
15781echo "$as_me:$LINENO: checking for $ac_header" >&5
15782echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15783if eval "test \"\${$as_ac_Header+set}\" = set"; then
15784 echo $ECHO_N "(cached) $ECHO_C" >&6
15785else
ac1cb8d3 15786 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
15787fi
15788echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15789echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15790
15791fi
15792if test `eval echo '${'$as_ac_Header'}'` = yes; then
15793 cat >>confdefs.h <<_ACEOF
15794#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15795_ACEOF
15796
15797fi
15798
15799done
15800
15801
15802for ac_header in malloc.h
15803do
15804as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15805if eval "test \"\${$as_ac_Header+set}\" = set"; then
15806 echo "$as_me:$LINENO: checking for $ac_header" >&5
15807echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15808if eval "test \"\${$as_ac_Header+set}\" = set"; then
15809 echo $ECHO_N "(cached) $ECHO_C" >&6
15810fi
15811echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15812echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15813else
15814 # Is the header compilable?
15815echo "$as_me:$LINENO: checking $ac_header usability" >&5
15816echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15817cat >conftest.$ac_ext <<_ACEOF
15818/* confdefs.h. */
15819_ACEOF
15820cat confdefs.h >>conftest.$ac_ext
15821cat >>conftest.$ac_ext <<_ACEOF
15822/* end confdefs.h. */
15823$ac_includes_default
15824#include <$ac_header>
15825_ACEOF
15826rm -f conftest.$ac_objext
15827if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15828 (eval $ac_compile) 2>conftest.er1
a848cd7e 15829 ac_status=$?
ac1cb8d3
VS
15830 grep -v '^ *+' conftest.er1 >conftest.err
15831 rm -f conftest.er1
15832 cat conftest.err >&5
a848cd7e
SC
15833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15834 (exit $ac_status); } &&
f10e38c4 15835 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15837 (eval $ac_try) 2>&5
15838 ac_status=$?
15839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15840 (exit $ac_status); }; } &&
15841 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15843 (eval $ac_try) 2>&5
15844 ac_status=$?
15845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15846 (exit $ac_status); }; }; then
15847 ac_header_compiler=yes
15848else
15849 echo "$as_me: failed program was:" >&5
15850sed 's/^/| /' conftest.$ac_ext >&5
15851
15852ac_header_compiler=no
15853fi
ac1cb8d3 15854rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15855echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15856echo "${ECHO_T}$ac_header_compiler" >&6
15857
15858# Is the header present?
15859echo "$as_me:$LINENO: checking $ac_header presence" >&5
15860echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15861cat >conftest.$ac_ext <<_ACEOF
15862/* confdefs.h. */
15863_ACEOF
15864cat confdefs.h >>conftest.$ac_ext
15865cat >>conftest.$ac_ext <<_ACEOF
15866/* end confdefs.h. */
15867#include <$ac_header>
15868_ACEOF
15869if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15870 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15871 ac_status=$?
15872 grep -v '^ *+' conftest.er1 >conftest.err
15873 rm -f conftest.er1
15874 cat conftest.err >&5
15875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15876 (exit $ac_status); } >/dev/null; then
15877 if test -s conftest.err; then
15878 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 15879 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
15880 else
15881 ac_cpp_err=
15882 fi
15883else
15884 ac_cpp_err=yes
15885fi
15886if test -z "$ac_cpp_err"; then
15887 ac_header_preproc=yes
15888else
15889 echo "$as_me: failed program was:" >&5
15890sed 's/^/| /' conftest.$ac_ext >&5
15891
15892 ac_header_preproc=no
15893fi
15894rm -f conftest.err conftest.$ac_ext
15895echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15896echo "${ECHO_T}$ac_header_preproc" >&6
15897
15898# So? What about this header?
ac1cb8d3
VS
15899case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15900 yes:no: )
a848cd7e
SC
15901 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15902echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
15903 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15904echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15905 ac_header_preproc=yes
a848cd7e 15906 ;;
ac1cb8d3 15907 no:yes:* )
a848cd7e
SC
15908 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15909echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
15910 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15911echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15912 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15913echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15914 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15915echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
15916 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15917echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
15918 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15919echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
15920 (
15921 cat <<\_ASBOX
ac1cb8d3
VS
15922## ----------------------------------------- ##
15923## Report this to wx-dev@lists.wxwidgets.org ##
15924## ----------------------------------------- ##
a848cd7e
SC
15925_ASBOX
15926 ) |
15927 sed "s/^/$as_me: WARNING: /" >&2
15928 ;;
15929esac
15930echo "$as_me:$LINENO: checking for $ac_header" >&5
15931echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15932if eval "test \"\${$as_ac_Header+set}\" = set"; then
15933 echo $ECHO_N "(cached) $ECHO_C" >&6
15934else
ac1cb8d3 15935 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
15936fi
15937echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15938echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15939
15940fi
15941if test `eval echo '${'$as_ac_Header'}'` = yes; then
15942 cat >>confdefs.h <<_ACEOF
15943#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15944_ACEOF
15945
15946fi
15947
15948done
15949
15950
15951for ac_header in unistd.h
15952do
15953as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15954if eval "test \"\${$as_ac_Header+set}\" = set"; then
15955 echo "$as_me:$LINENO: checking for $ac_header" >&5
15956echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15957if eval "test \"\${$as_ac_Header+set}\" = set"; then
15958 echo $ECHO_N "(cached) $ECHO_C" >&6
15959fi
15960echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15961echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15962else
15963 # Is the header compilable?
15964echo "$as_me:$LINENO: checking $ac_header usability" >&5
15965echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15966cat >conftest.$ac_ext <<_ACEOF
15967/* confdefs.h. */
15968_ACEOF
15969cat confdefs.h >>conftest.$ac_ext
15970cat >>conftest.$ac_ext <<_ACEOF
15971/* end confdefs.h. */
15972$ac_includes_default
15973#include <$ac_header>
15974_ACEOF
15975rm -f conftest.$ac_objext
15976if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15977 (eval $ac_compile) 2>conftest.er1
a848cd7e 15978 ac_status=$?
ac1cb8d3
VS
15979 grep -v '^ *+' conftest.er1 >conftest.err
15980 rm -f conftest.er1
15981 cat conftest.err >&5
a848cd7e
SC
15982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15983 (exit $ac_status); } &&
f10e38c4 15984 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15986 (eval $ac_try) 2>&5
15987 ac_status=$?
15988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15989 (exit $ac_status); }; } &&
15990 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15992 (eval $ac_try) 2>&5
15993 ac_status=$?
15994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15995 (exit $ac_status); }; }; then
15996 ac_header_compiler=yes
15997else
15998 echo "$as_me: failed program was:" >&5
15999sed 's/^/| /' conftest.$ac_ext >&5
16000
16001ac_header_compiler=no
16002fi
ac1cb8d3 16003rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16004echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16005echo "${ECHO_T}$ac_header_compiler" >&6
16006
16007# Is the header present?
16008echo "$as_me:$LINENO: checking $ac_header presence" >&5
16009echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16010cat >conftest.$ac_ext <<_ACEOF
16011/* confdefs.h. */
16012_ACEOF
16013cat confdefs.h >>conftest.$ac_ext
16014cat >>conftest.$ac_ext <<_ACEOF
16015/* end confdefs.h. */
16016#include <$ac_header>
16017_ACEOF
16018if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16019 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16020 ac_status=$?
16021 grep -v '^ *+' conftest.er1 >conftest.err
16022 rm -f conftest.er1
16023 cat conftest.err >&5
16024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16025 (exit $ac_status); } >/dev/null; then
16026 if test -s conftest.err; then
16027 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 16028 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
16029 else
16030 ac_cpp_err=
16031 fi
16032else
16033 ac_cpp_err=yes
16034fi
16035if test -z "$ac_cpp_err"; then
16036 ac_header_preproc=yes
16037else
16038 echo "$as_me: failed program was:" >&5
16039sed 's/^/| /' conftest.$ac_ext >&5
16040
16041 ac_header_preproc=no
16042fi
16043rm -f conftest.err conftest.$ac_ext
16044echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16045echo "${ECHO_T}$ac_header_preproc" >&6
16046
16047# So? What about this header?
ac1cb8d3
VS
16048case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16049 yes:no: )
a848cd7e
SC
16050 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16051echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16052 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16053echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16054 ac_header_preproc=yes
a848cd7e 16055 ;;
ac1cb8d3 16056 no:yes:* )
a848cd7e
SC
16057 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16058echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16059 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16060echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16061 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16062echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16063 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16064echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16065 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16066echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16067 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16068echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16069 (
16070 cat <<\_ASBOX
ac1cb8d3
VS
16071## ----------------------------------------- ##
16072## Report this to wx-dev@lists.wxwidgets.org ##
16073## ----------------------------------------- ##
a848cd7e
SC
16074_ASBOX
16075 ) |
16076 sed "s/^/$as_me: WARNING: /" >&2
16077 ;;
16078esac
16079echo "$as_me:$LINENO: checking for $ac_header" >&5
16080echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16081if eval "test \"\${$as_ac_Header+set}\" = set"; then
16082 echo $ECHO_N "(cached) $ECHO_C" >&6
16083else
ac1cb8d3 16084 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16085fi
16086echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16087echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16088
16089fi
16090if test `eval echo '${'$as_ac_Header'}'` = yes; then
16091 cat >>confdefs.h <<_ACEOF
16092#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16093_ACEOF
16094
16095fi
16096
16097done
16098
16099
16100for ac_header in wchar.h
16101do
16102as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16103if eval "test \"\${$as_ac_Header+set}\" = set"; then
16104 echo "$as_me:$LINENO: checking for $ac_header" >&5
16105echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16106if eval "test \"\${$as_ac_Header+set}\" = set"; then
16107 echo $ECHO_N "(cached) $ECHO_C" >&6
16108fi
16109echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16110echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16111else
16112 # Is the header compilable?
16113echo "$as_me:$LINENO: checking $ac_header usability" >&5
16114echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16115cat >conftest.$ac_ext <<_ACEOF
16116/* confdefs.h. */
16117_ACEOF
16118cat confdefs.h >>conftest.$ac_ext
16119cat >>conftest.$ac_ext <<_ACEOF
16120/* end confdefs.h. */
16121$ac_includes_default
16122#include <$ac_header>
16123_ACEOF
16124rm -f conftest.$ac_objext
16125if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16126 (eval $ac_compile) 2>conftest.er1
a848cd7e 16127 ac_status=$?
ac1cb8d3
VS
16128 grep -v '^ *+' conftest.er1 >conftest.err
16129 rm -f conftest.er1
16130 cat conftest.err >&5
a848cd7e
SC
16131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16132 (exit $ac_status); } &&
f10e38c4 16133 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16135 (eval $ac_try) 2>&5
16136 ac_status=$?
16137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16138 (exit $ac_status); }; } &&
16139 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16141 (eval $ac_try) 2>&5
16142 ac_status=$?
16143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16144 (exit $ac_status); }; }; then
16145 ac_header_compiler=yes
16146else
16147 echo "$as_me: failed program was:" >&5
16148sed 's/^/| /' conftest.$ac_ext >&5
16149
16150ac_header_compiler=no
16151fi
ac1cb8d3 16152rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16153echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16154echo "${ECHO_T}$ac_header_compiler" >&6
16155
16156# Is the header present?
16157echo "$as_me:$LINENO: checking $ac_header presence" >&5
16158echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16159cat >conftest.$ac_ext <<_ACEOF
16160/* confdefs.h. */
16161_ACEOF
16162cat confdefs.h >>conftest.$ac_ext
16163cat >>conftest.$ac_ext <<_ACEOF
16164/* end confdefs.h. */
16165#include <$ac_header>
16166_ACEOF
16167if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16168 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16169 ac_status=$?
16170 grep -v '^ *+' conftest.er1 >conftest.err
16171 rm -f conftest.er1
16172 cat conftest.err >&5
16173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16174 (exit $ac_status); } >/dev/null; then
16175 if test -s conftest.err; then
16176 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 16177 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
16178 else
16179 ac_cpp_err=
16180 fi
16181else
16182 ac_cpp_err=yes
16183fi
16184if test -z "$ac_cpp_err"; then
16185 ac_header_preproc=yes
16186else
16187 echo "$as_me: failed program was:" >&5
16188sed 's/^/| /' conftest.$ac_ext >&5
16189
16190 ac_header_preproc=no
16191fi
16192rm -f conftest.err conftest.$ac_ext
16193echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16194echo "${ECHO_T}$ac_header_preproc" >&6
16195
16196# So? What about this header?
ac1cb8d3
VS
16197case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16198 yes:no: )
a848cd7e
SC
16199 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16200echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16201 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16202echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16203 ac_header_preproc=yes
a848cd7e 16204 ;;
ac1cb8d3 16205 no:yes:* )
a848cd7e
SC
16206 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16207echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16208 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16209echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16210 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16211echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16212 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16213echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16214 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16215echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16216 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16217echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16218 (
16219 cat <<\_ASBOX
ac1cb8d3
VS
16220## ----------------------------------------- ##
16221## Report this to wx-dev@lists.wxwidgets.org ##
16222## ----------------------------------------- ##
a848cd7e
SC
16223_ASBOX
16224 ) |
16225 sed "s/^/$as_me: WARNING: /" >&2
16226 ;;
16227esac
16228echo "$as_me:$LINENO: checking for $ac_header" >&5
16229echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16230if eval "test \"\${$as_ac_Header+set}\" = set"; then
16231 echo $ECHO_N "(cached) $ECHO_C" >&6
16232else
ac1cb8d3 16233 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16234fi
16235echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16236echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16237
16238fi
16239if test `eval echo '${'$as_ac_Header'}'` = yes; then
16240 cat >>confdefs.h <<_ACEOF
16241#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16242_ACEOF
16243
16244fi
16245
16246done
16247
16248
16249if test "$ac_cv_header_wchar_h" != "yes"; then
16250
16251for ac_header in wcstr.h
16252do
16253as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16254if eval "test \"\${$as_ac_Header+set}\" = set"; then
16255 echo "$as_me:$LINENO: checking for $ac_header" >&5
16256echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16257if eval "test \"\${$as_ac_Header+set}\" = set"; then
16258 echo $ECHO_N "(cached) $ECHO_C" >&6
16259fi
16260echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16261echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16262else
16263 # Is the header compilable?
16264echo "$as_me:$LINENO: checking $ac_header usability" >&5
16265echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16266cat >conftest.$ac_ext <<_ACEOF
16267/* confdefs.h. */
16268_ACEOF
16269cat confdefs.h >>conftest.$ac_ext
16270cat >>conftest.$ac_ext <<_ACEOF
16271/* end confdefs.h. */
16272$ac_includes_default
16273#include <$ac_header>
16274_ACEOF
16275rm -f conftest.$ac_objext
16276if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16277 (eval $ac_compile) 2>conftest.er1
a848cd7e 16278 ac_status=$?
ac1cb8d3
VS
16279 grep -v '^ *+' conftest.er1 >conftest.err
16280 rm -f conftest.er1
16281 cat conftest.err >&5
a848cd7e
SC
16282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16283 (exit $ac_status); } &&
f10e38c4 16284 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16286 (eval $ac_try) 2>&5
16287 ac_status=$?
16288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16289 (exit $ac_status); }; } &&
16290 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16292 (eval $ac_try) 2>&5
16293 ac_status=$?
16294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16295 (exit $ac_status); }; }; then
16296 ac_header_compiler=yes
16297else
16298 echo "$as_me: failed program was:" >&5
16299sed 's/^/| /' conftest.$ac_ext >&5
16300
16301ac_header_compiler=no
16302fi
ac1cb8d3 16303rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16304echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16305echo "${ECHO_T}$ac_header_compiler" >&6
16306
16307# Is the header present?
16308echo "$as_me:$LINENO: checking $ac_header presence" >&5
16309echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16310cat >conftest.$ac_ext <<_ACEOF
16311/* confdefs.h. */
16312_ACEOF
16313cat confdefs.h >>conftest.$ac_ext
16314cat >>conftest.$ac_ext <<_ACEOF
16315/* end confdefs.h. */
16316#include <$ac_header>
16317_ACEOF
16318if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16319 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16320 ac_status=$?
16321 grep -v '^ *+' conftest.er1 >conftest.err
16322 rm -f conftest.er1
16323 cat conftest.err >&5
16324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16325 (exit $ac_status); } >/dev/null; then
16326 if test -s conftest.err; then
16327 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 16328 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
16329 else
16330 ac_cpp_err=
16331 fi
16332else
16333 ac_cpp_err=yes
16334fi
16335if test -z "$ac_cpp_err"; then
16336 ac_header_preproc=yes
16337else
16338 echo "$as_me: failed program was:" >&5
16339sed 's/^/| /' conftest.$ac_ext >&5
16340
16341 ac_header_preproc=no
16342fi
16343rm -f conftest.err conftest.$ac_ext
16344echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16345echo "${ECHO_T}$ac_header_preproc" >&6
16346
16347# So? What about this header?
ac1cb8d3
VS
16348case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16349 yes:no: )
a848cd7e
SC
16350 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16351echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16352 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16353echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16354 ac_header_preproc=yes
a848cd7e 16355 ;;
ac1cb8d3 16356 no:yes:* )
a848cd7e
SC
16357 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16358echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16359 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16360echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16361 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16362echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16363 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16364echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16365 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16366echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16367 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16368echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16369 (
16370 cat <<\_ASBOX
ac1cb8d3
VS
16371## ----------------------------------------- ##
16372## Report this to wx-dev@lists.wxwidgets.org ##
16373## ----------------------------------------- ##
a848cd7e
SC
16374_ASBOX
16375 ) |
16376 sed "s/^/$as_me: WARNING: /" >&2
16377 ;;
16378esac
16379echo "$as_me:$LINENO: checking for $ac_header" >&5
16380echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16381if eval "test \"\${$as_ac_Header+set}\" = set"; then
16382 echo $ECHO_N "(cached) $ECHO_C" >&6
16383else
ac1cb8d3 16384 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16385fi
16386echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16387echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16388
16389fi
16390if test `eval echo '${'$as_ac_Header'}'` = yes; then
16391 cat >>confdefs.h <<_ACEOF
16392#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16393_ACEOF
16394
16395fi
16396
16397done
16398
16399fi
16400
16401
16402for ac_header in fnmatch.h
16403do
16404as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16405if eval "test \"\${$as_ac_Header+set}\" = set"; then
16406 echo "$as_me:$LINENO: checking for $ac_header" >&5
16407echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16408if eval "test \"\${$as_ac_Header+set}\" = set"; then
16409 echo $ECHO_N "(cached) $ECHO_C" >&6
16410fi
16411echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16412echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16413else
16414 # Is the header compilable?
16415echo "$as_me:$LINENO: checking $ac_header usability" >&5
16416echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16417cat >conftest.$ac_ext <<_ACEOF
16418/* confdefs.h. */
16419_ACEOF
16420cat confdefs.h >>conftest.$ac_ext
16421cat >>conftest.$ac_ext <<_ACEOF
16422/* end confdefs.h. */
16423$ac_includes_default
16424#include <$ac_header>
16425_ACEOF
16426rm -f conftest.$ac_objext
16427if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16428 (eval $ac_compile) 2>conftest.er1
a848cd7e 16429 ac_status=$?
ac1cb8d3
VS
16430 grep -v '^ *+' conftest.er1 >conftest.err
16431 rm -f conftest.er1
16432 cat conftest.err >&5
a848cd7e
SC
16433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16434 (exit $ac_status); } &&
f10e38c4 16435 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16437 (eval $ac_try) 2>&5
16438 ac_status=$?
16439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16440 (exit $ac_status); }; } &&
16441 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16443 (eval $ac_try) 2>&5
16444 ac_status=$?
16445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16446 (exit $ac_status); }; }; then
16447 ac_header_compiler=yes
16448else
16449 echo "$as_me: failed program was:" >&5
16450sed 's/^/| /' conftest.$ac_ext >&5
16451
16452ac_header_compiler=no
16453fi
ac1cb8d3 16454rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16455echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16456echo "${ECHO_T}$ac_header_compiler" >&6
16457
16458# Is the header present?
16459echo "$as_me:$LINENO: checking $ac_header presence" >&5
16460echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16461cat >conftest.$ac_ext <<_ACEOF
16462/* confdefs.h. */
16463_ACEOF
16464cat confdefs.h >>conftest.$ac_ext
16465cat >>conftest.$ac_ext <<_ACEOF
16466/* end confdefs.h. */
16467#include <$ac_header>
16468_ACEOF
16469if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16470 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16471 ac_status=$?
16472 grep -v '^ *+' conftest.er1 >conftest.err
16473 rm -f conftest.er1
16474 cat conftest.err >&5
16475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16476 (exit $ac_status); } >/dev/null; then
16477 if test -s conftest.err; then
16478 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 16479 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
16480 else
16481 ac_cpp_err=
16482 fi
16483else
16484 ac_cpp_err=yes
16485fi
16486if test -z "$ac_cpp_err"; then
16487 ac_header_preproc=yes
16488else
16489 echo "$as_me: failed program was:" >&5
16490sed 's/^/| /' conftest.$ac_ext >&5
16491
16492 ac_header_preproc=no
16493fi
16494rm -f conftest.err conftest.$ac_ext
16495echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16496echo "${ECHO_T}$ac_header_preproc" >&6
16497
16498# So? What about this header?
ac1cb8d3
VS
16499case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16500 yes:no: )
a848cd7e
SC
16501 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16502echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16503 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16504echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16505 ac_header_preproc=yes
a848cd7e 16506 ;;
ac1cb8d3 16507 no:yes:* )
a848cd7e
SC
16508 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16509echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16510 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16511echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16512 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16513echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16514 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16515echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16516 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16517echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16518 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16519echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16520 (
16521 cat <<\_ASBOX
ac1cb8d3
VS
16522## ----------------------------------------- ##
16523## Report this to wx-dev@lists.wxwidgets.org ##
16524## ----------------------------------------- ##
a848cd7e
SC
16525_ASBOX
16526 ) |
16527 sed "s/^/$as_me: WARNING: /" >&2
16528 ;;
16529esac
16530echo "$as_me:$LINENO: checking for $ac_header" >&5
16531echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16532if eval "test \"\${$as_ac_Header+set}\" = set"; then
16533 echo $ECHO_N "(cached) $ECHO_C" >&6
16534else
ac1cb8d3 16535 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16536fi
16537echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16538echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16539
16540fi
16541if test `eval echo '${'$as_ac_Header'}'` = yes; then
16542 cat >>confdefs.h <<_ACEOF
16543#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16544_ACEOF
16545
16546fi
16547
16548done
16549
16550
a848cd7e
SC
16551
16552for ac_header in langinfo.h
16553do
16554as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16555if eval "test \"\${$as_ac_Header+set}\" = set"; then
16556 echo "$as_me:$LINENO: checking for $ac_header" >&5
16557echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16558if eval "test \"\${$as_ac_Header+set}\" = set"; then
16559 echo $ECHO_N "(cached) $ECHO_C" >&6
16560fi
16561echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16562echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16563else
16564 # Is the header compilable?
16565echo "$as_me:$LINENO: checking $ac_header usability" >&5
16566echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16567cat >conftest.$ac_ext <<_ACEOF
16568/* confdefs.h. */
16569_ACEOF
16570cat confdefs.h >>conftest.$ac_ext
16571cat >>conftest.$ac_ext <<_ACEOF
16572/* end confdefs.h. */
16573$ac_includes_default
16574#include <$ac_header>
16575_ACEOF
16576rm -f conftest.$ac_objext
16577if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16578 (eval $ac_compile) 2>conftest.er1
a848cd7e 16579 ac_status=$?
ac1cb8d3
VS
16580 grep -v '^ *+' conftest.er1 >conftest.err
16581 rm -f conftest.er1
16582 cat conftest.err >&5
a848cd7e
SC
16583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16584 (exit $ac_status); } &&
f10e38c4 16585 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16587 (eval $ac_try) 2>&5
16588 ac_status=$?
16589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16590 (exit $ac_status); }; } &&
16591 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16593 (eval $ac_try) 2>&5
16594 ac_status=$?
16595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16596 (exit $ac_status); }; }; then
16597 ac_header_compiler=yes
16598else
16599 echo "$as_me: failed program was:" >&5
16600sed 's/^/| /' conftest.$ac_ext >&5
16601
16602ac_header_compiler=no
16603fi
ac1cb8d3 16604rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16605echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16606echo "${ECHO_T}$ac_header_compiler" >&6
16607
16608# Is the header present?
16609echo "$as_me:$LINENO: checking $ac_header presence" >&5
16610echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16611cat >conftest.$ac_ext <<_ACEOF
16612/* confdefs.h. */
16613_ACEOF
16614cat confdefs.h >>conftest.$ac_ext
16615cat >>conftest.$ac_ext <<_ACEOF
16616/* end confdefs.h. */
16617#include <$ac_header>
16618_ACEOF
16619if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16620 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16621 ac_status=$?
16622 grep -v '^ *+' conftest.er1 >conftest.err
16623 rm -f conftest.er1
16624 cat conftest.err >&5
16625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16626 (exit $ac_status); } >/dev/null; then
16627 if test -s conftest.err; then
16628 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 16629 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
16630 else
16631 ac_cpp_err=
16632 fi
16633else
16634 ac_cpp_err=yes
16635fi
16636if test -z "$ac_cpp_err"; then
16637 ac_header_preproc=yes
16638else
16639 echo "$as_me: failed program was:" >&5
16640sed 's/^/| /' conftest.$ac_ext >&5
16641
16642 ac_header_preproc=no
16643fi
16644rm -f conftest.err conftest.$ac_ext
16645echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16646echo "${ECHO_T}$ac_header_preproc" >&6
16647
16648# So? What about this header?
ac1cb8d3
VS
16649case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16650 yes:no: )
a848cd7e
SC
16651 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16652echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16653 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16654echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16655 ac_header_preproc=yes
a848cd7e 16656 ;;
ac1cb8d3 16657 no:yes:* )
a848cd7e
SC
16658 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16659echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16660 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16661echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16662 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16663echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16664 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16665echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16666 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16667echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16668 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16669echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16670 (
16671 cat <<\_ASBOX
ac1cb8d3
VS
16672## ----------------------------------------- ##
16673## Report this to wx-dev@lists.wxwidgets.org ##
16674## ----------------------------------------- ##
a848cd7e
SC
16675_ASBOX
16676 ) |
16677 sed "s/^/$as_me: WARNING: /" >&2
16678 ;;
16679esac
16680echo "$as_me:$LINENO: checking for $ac_header" >&5
16681echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16682if eval "test \"\${$as_ac_Header+set}\" = set"; then
16683 echo $ECHO_N "(cached) $ECHO_C" >&6
16684else
ac1cb8d3 16685 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16686fi
16687echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16688echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16689
16690fi
16691if test `eval echo '${'$as_ac_Header'}'` = yes; then
16692 cat >>confdefs.h <<_ACEOF
16693#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16694_ACEOF
16695
16696fi
16697
16698done
16699
16700
16701case "${host}" in
16702 *-pc-os2_emx | *-pc-os2-emx )
391a765e
VS
16703 if test $ac_cv_header_langinfo_h = "yes" \
16704 -a \( "$wx_cv_gccversion" = "EMX2" \
16705 -o "$wx_cv_gccversion" = "EMX3" \
16706 -o "$wx_cv_gccversion" = "Innotek5" \); then
a848cd7e
SC
16707 LIBS="$LIBS -lintl"
16708 fi
16709 ;;
16710esac
16711
a848cd7e
SC
16712
16713echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
16714echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
16715if test "${ac_cv_c_const+set}" = set; then
16716 echo $ECHO_N "(cached) $ECHO_C" >&6
16717else
16718 cat >conftest.$ac_ext <<_ACEOF
16719/* confdefs.h. */
16720_ACEOF
16721cat confdefs.h >>conftest.$ac_ext
16722cat >>conftest.$ac_ext <<_ACEOF
16723/* end confdefs.h. */
16724
16725int
16726main ()
16727{
16728/* FIXME: Include the comments suggested by Paul. */
16729#ifndef __cplusplus
16730 /* Ultrix mips cc rejects this. */
16731 typedef int charset[2];
16732 const charset x;
16733 /* SunOS 4.1.1 cc rejects this. */
16734 char const *const *ccp;
16735 char **p;
16736 /* NEC SVR4.0.2 mips cc rejects this. */
16737 struct point {int x, y;};
16738 static struct point const zero = {0,0};
16739 /* AIX XL C 1.02.0.0 rejects this.
16740 It does not let you subtract one const X* pointer from another in
16741 an arm of an if-expression whose if-part is not a constant
16742 expression */
16743 const char *g = "string";
16744 ccp = &g + (g ? g-g : 0);
16745 /* HPUX 7.0 cc rejects these. */
16746 ++ccp;
16747 p = (char**) ccp;
16748 ccp = (char const *const *) p;
16749 { /* SCO 3.2v4 cc rejects this. */
16750 char *t;
16751 char const *s = 0 ? (char *) 0 : (char const *) 0;
16752
16753 *t++ = 0;
16754 }
16755 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
16756 int x[] = {25, 17};
16757 const int *foo = &x[0];
16758 ++foo;
16759 }
16760 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16761 typedef const int *iptr;
16762 iptr p = 0;
16763 ++p;
16764 }
16765 { /* AIX XL C 1.02.0.0 rejects this saying
16766 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16767 struct s { int j; const int *ap[3]; };
16768 struct s *b; b->j = 5;
16769 }
16770 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16771 const int foo = 10;
16772 }
16773#endif
16774
16775 ;
16776 return 0;
16777}
16778_ACEOF
16779rm -f conftest.$ac_objext
16780if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16781 (eval $ac_compile) 2>conftest.er1
a848cd7e 16782 ac_status=$?
ac1cb8d3
VS
16783 grep -v '^ *+' conftest.er1 >conftest.err
16784 rm -f conftest.er1
16785 cat conftest.err >&5
a848cd7e
SC
16786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16787 (exit $ac_status); } &&
f10e38c4 16788 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16790 (eval $ac_try) 2>&5
16791 ac_status=$?
16792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16793 (exit $ac_status); }; } &&
16794 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16796 (eval $ac_try) 2>&5
16797 ac_status=$?
16798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16799 (exit $ac_status); }; }; then
16800 ac_cv_c_const=yes
16801else
16802 echo "$as_me: failed program was:" >&5
16803sed 's/^/| /' conftest.$ac_ext >&5
16804
16805ac_cv_c_const=no
16806fi
ac1cb8d3 16807rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16808fi
16809echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
16810echo "${ECHO_T}$ac_cv_c_const" >&6
16811if test $ac_cv_c_const = no; then
16812
16813cat >>confdefs.h <<\_ACEOF
16814#define const
16815_ACEOF
16816
16817fi
16818
16819echo "$as_me:$LINENO: checking for inline" >&5
16820echo $ECHO_N "checking for inline... $ECHO_C" >&6
16821if test "${ac_cv_c_inline+set}" = set; then
16822 echo $ECHO_N "(cached) $ECHO_C" >&6
16823else
16824 ac_cv_c_inline=no
16825for ac_kw in inline __inline__ __inline; do
16826 cat >conftest.$ac_ext <<_ACEOF
16827/* confdefs.h. */
16828_ACEOF
16829cat confdefs.h >>conftest.$ac_ext
16830cat >>conftest.$ac_ext <<_ACEOF
16831/* end confdefs.h. */
16832#ifndef __cplusplus
16833typedef int foo_t;
16834static $ac_kw foo_t static_foo () {return 0; }
16835$ac_kw foo_t foo () {return 0; }
16836#endif
16837
16838_ACEOF
16839rm -f conftest.$ac_objext
16840if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16841 (eval $ac_compile) 2>conftest.er1
a848cd7e 16842 ac_status=$?
ac1cb8d3
VS
16843 grep -v '^ *+' conftest.er1 >conftest.err
16844 rm -f conftest.er1
16845 cat conftest.err >&5
a848cd7e
SC
16846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16847 (exit $ac_status); } &&
f10e38c4 16848 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16850 (eval $ac_try) 2>&5
16851 ac_status=$?
16852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16853 (exit $ac_status); }; } &&
16854 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16856 (eval $ac_try) 2>&5
16857 ac_status=$?
16858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16859 (exit $ac_status); }; }; then
16860 ac_cv_c_inline=$ac_kw; break
16861else
16862 echo "$as_me: failed program was:" >&5
16863sed 's/^/| /' conftest.$ac_ext >&5
16864
16865fi
ac1cb8d3 16866rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16867done
16868
16869fi
16870echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
16871echo "${ECHO_T}$ac_cv_c_inline" >&6
ac1cb8d3
VS
16872
16873
a848cd7e
SC
16874case $ac_cv_c_inline in
16875 inline | yes) ;;
ac1cb8d3
VS
16876 *)
16877 case $ac_cv_c_inline in
16878 no) ac_val=;;
16879 *) ac_val=$ac_cv_c_inline;;
16880 esac
16881 cat >>confdefs.h <<_ACEOF
16882#ifndef __cplusplus
16883#define inline $ac_val
16884#endif
de59c161 16885_ACEOF
ac1cb8d3 16886 ;;
a848cd7e
SC
16887esac
16888
16889
16890echo "$as_me:$LINENO: checking for char" >&5
16891echo $ECHO_N "checking for char... $ECHO_C" >&6
16892if test "${ac_cv_type_char+set}" = set; then
16893 echo $ECHO_N "(cached) $ECHO_C" >&6
16894else
16895 cat >conftest.$ac_ext <<_ACEOF
16896/* confdefs.h. */
16897_ACEOF
16898cat confdefs.h >>conftest.$ac_ext
16899cat >>conftest.$ac_ext <<_ACEOF
16900/* end confdefs.h. */
16901$ac_includes_default
16902int
16903main ()
16904{
16905if ((char *) 0)
16906 return 0;
16907if (sizeof (char))
16908 return 0;
16909 ;
16910 return 0;
16911}
16912_ACEOF
16913rm -f conftest.$ac_objext
16914if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16915 (eval $ac_compile) 2>conftest.er1
a848cd7e 16916 ac_status=$?
ac1cb8d3
VS
16917 grep -v '^ *+' conftest.er1 >conftest.err
16918 rm -f conftest.er1
16919 cat conftest.err >&5
a848cd7e
SC
16920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16921 (exit $ac_status); } &&
f10e38c4 16922 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16924 (eval $ac_try) 2>&5
16925 ac_status=$?
16926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16927 (exit $ac_status); }; } &&
16928 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16930 (eval $ac_try) 2>&5
16931 ac_status=$?
16932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16933 (exit $ac_status); }; }; then
16934 ac_cv_type_char=yes
16935else
16936 echo "$as_me: failed program was:" >&5
16937sed 's/^/| /' conftest.$ac_ext >&5
16938
16939ac_cv_type_char=no
16940fi
ac1cb8d3 16941rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16942fi
16943echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
16944echo "${ECHO_T}$ac_cv_type_char" >&6
16945
16946echo "$as_me:$LINENO: checking size of char" >&5
16947echo $ECHO_N "checking size of char... $ECHO_C" >&6
16948if test "${ac_cv_sizeof_char+set}" = set; then
16949 echo $ECHO_N "(cached) $ECHO_C" >&6
16950else
16951 if test "$ac_cv_type_char" = yes; then
16952 # The cast to unsigned long works around a bug in the HP C Compiler
16953 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16954 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16955 # This bug is HP SR number 8606223364.
16956 if test "$cross_compiling" = yes; then
16957 # Depending upon the size, compute the lo and hi bounds.
16958cat >conftest.$ac_ext <<_ACEOF
16959/* confdefs.h. */
16960_ACEOF
16961cat confdefs.h >>conftest.$ac_ext
16962cat >>conftest.$ac_ext <<_ACEOF
16963/* end confdefs.h. */
16964$ac_includes_default
16965int
16966main ()
16967{
16968static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
16969test_array [0] = 0
16970
16971 ;
16972 return 0;
16973}
16974_ACEOF
16975rm -f conftest.$ac_objext
16976if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16977 (eval $ac_compile) 2>conftest.er1
a848cd7e 16978 ac_status=$?
ac1cb8d3
VS
16979 grep -v '^ *+' conftest.er1 >conftest.err
16980 rm -f conftest.er1
16981 cat conftest.err >&5
a848cd7e
SC
16982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16983 (exit $ac_status); } &&
f10e38c4 16984 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16986 (eval $ac_try) 2>&5
16987 ac_status=$?
16988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16989 (exit $ac_status); }; } &&
16990 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16992 (eval $ac_try) 2>&5
16993 ac_status=$?
16994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16995 (exit $ac_status); }; }; then
16996 ac_lo=0 ac_mid=0
16997 while :; do
16998 cat >conftest.$ac_ext <<_ACEOF
16999/* confdefs.h. */
17000_ACEOF
17001cat confdefs.h >>conftest.$ac_ext
17002cat >>conftest.$ac_ext <<_ACEOF
17003/* end confdefs.h. */
17004$ac_includes_default
17005int
17006main ()
17007{
17008static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
17009test_array [0] = 0
17010
17011 ;
17012 return 0;
17013}
17014_ACEOF
17015rm -f conftest.$ac_objext
17016if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17017 (eval $ac_compile) 2>conftest.er1
a848cd7e 17018 ac_status=$?
ac1cb8d3
VS
17019 grep -v '^ *+' conftest.er1 >conftest.err
17020 rm -f conftest.er1
17021 cat conftest.err >&5
a848cd7e
SC
17022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17023 (exit $ac_status); } &&
f10e38c4 17024 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17026 (eval $ac_try) 2>&5
17027 ac_status=$?
17028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17029 (exit $ac_status); }; } &&
17030 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17032 (eval $ac_try) 2>&5
17033 ac_status=$?
17034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17035 (exit $ac_status); }; }; then
17036 ac_hi=$ac_mid; break
17037else
17038 echo "$as_me: failed program was:" >&5
17039sed 's/^/| /' conftest.$ac_ext >&5
17040
17041ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17042 if test $ac_lo -le $ac_mid; then
17043 ac_lo= ac_hi=
17044 break
17045 fi
17046 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17047fi
ac1cb8d3 17048rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17049 done
17050else
17051 echo "$as_me: failed program was:" >&5
17052sed 's/^/| /' conftest.$ac_ext >&5
17053
17054cat >conftest.$ac_ext <<_ACEOF
17055/* confdefs.h. */
17056_ACEOF
17057cat confdefs.h >>conftest.$ac_ext
17058cat >>conftest.$ac_ext <<_ACEOF
17059/* end confdefs.h. */
17060$ac_includes_default
17061int
17062main ()
17063{
17064static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
17065test_array [0] = 0
17066
17067 ;
17068 return 0;
17069}
17070_ACEOF
17071rm -f conftest.$ac_objext
17072if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17073 (eval $ac_compile) 2>conftest.er1
a848cd7e 17074 ac_status=$?
ac1cb8d3
VS
17075 grep -v '^ *+' conftest.er1 >conftest.err
17076 rm -f conftest.er1
17077 cat conftest.err >&5
a848cd7e
SC
17078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17079 (exit $ac_status); } &&
f10e38c4 17080 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17082 (eval $ac_try) 2>&5
17083 ac_status=$?
17084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17085 (exit $ac_status); }; } &&
17086 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17088 (eval $ac_try) 2>&5
17089 ac_status=$?
17090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17091 (exit $ac_status); }; }; then
17092 ac_hi=-1 ac_mid=-1
17093 while :; do
17094 cat >conftest.$ac_ext <<_ACEOF
17095/* confdefs.h. */
17096_ACEOF
17097cat confdefs.h >>conftest.$ac_ext
17098cat >>conftest.$ac_ext <<_ACEOF
17099/* end confdefs.h. */
17100$ac_includes_default
17101int
17102main ()
17103{
17104static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
17105test_array [0] = 0
17106
17107 ;
17108 return 0;
17109}
17110_ACEOF
17111rm -f conftest.$ac_objext
17112if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17113 (eval $ac_compile) 2>conftest.er1
a848cd7e 17114 ac_status=$?
ac1cb8d3
VS
17115 grep -v '^ *+' conftest.er1 >conftest.err
17116 rm -f conftest.er1
17117 cat conftest.err >&5
a848cd7e
SC
17118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17119 (exit $ac_status); } &&
f10e38c4 17120 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17122 (eval $ac_try) 2>&5
17123 ac_status=$?
17124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17125 (exit $ac_status); }; } &&
17126 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17128 (eval $ac_try) 2>&5
17129 ac_status=$?
17130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17131 (exit $ac_status); }; }; then
17132 ac_lo=$ac_mid; break
17133else
17134 echo "$as_me: failed program was:" >&5
17135sed 's/^/| /' conftest.$ac_ext >&5
17136
17137ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17138 if test $ac_mid -le $ac_hi; then
17139 ac_lo= ac_hi=
17140 break
17141 fi
17142 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17143fi
ac1cb8d3 17144rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17145 done
17146else
17147 echo "$as_me: failed program was:" >&5
17148sed 's/^/| /' conftest.$ac_ext >&5
17149
17150ac_lo= ac_hi=
17151fi
ac1cb8d3 17152rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17153fi
ac1cb8d3 17154rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17155# Binary search between lo and hi bounds.
17156while test "x$ac_lo" != "x$ac_hi"; do
17157 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17158 cat >conftest.$ac_ext <<_ACEOF
17159/* confdefs.h. */
17160_ACEOF
17161cat confdefs.h >>conftest.$ac_ext
17162cat >>conftest.$ac_ext <<_ACEOF
17163/* end confdefs.h. */
17164$ac_includes_default
17165int
17166main ()
17167{
17168static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
17169test_array [0] = 0
17170
17171 ;
17172 return 0;
17173}
17174_ACEOF
17175rm -f conftest.$ac_objext
17176if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17177 (eval $ac_compile) 2>conftest.er1
a848cd7e 17178 ac_status=$?
ac1cb8d3
VS
17179 grep -v '^ *+' conftest.er1 >conftest.err
17180 rm -f conftest.er1
17181 cat conftest.err >&5
a848cd7e
SC
17182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17183 (exit $ac_status); } &&
f10e38c4 17184 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17186 (eval $ac_try) 2>&5
17187 ac_status=$?
17188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17189 (exit $ac_status); }; } &&
17190 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17192 (eval $ac_try) 2>&5
17193 ac_status=$?
17194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17195 (exit $ac_status); }; }; then
17196 ac_hi=$ac_mid
17197else
17198 echo "$as_me: failed program was:" >&5
17199sed 's/^/| /' conftest.$ac_ext >&5
17200
17201ac_lo=`expr '(' $ac_mid ')' + 1`
17202fi
ac1cb8d3 17203rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17204done
17205case $ac_lo in
17206?*) ac_cv_sizeof_char=$ac_lo;;
17207'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
17208See \`config.log' for more details." >&5
17209echo "$as_me: error: cannot compute sizeof (char), 77
17210See \`config.log' for more details." >&2;}
17211 { (exit 1); exit 1; }; } ;;
17212esac
17213else
17214 if test "$cross_compiling" = yes; then
f10e38c4
VZ
17215 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17216echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
17217 { (exit 1); exit 1; }; }
17218else
17219 cat >conftest.$ac_ext <<_ACEOF
17220/* confdefs.h. */
17221_ACEOF
17222cat confdefs.h >>conftest.$ac_ext
17223cat >>conftest.$ac_ext <<_ACEOF
17224/* end confdefs.h. */
17225$ac_includes_default
17226long longval () { return (long) (sizeof (char)); }
17227unsigned long ulongval () { return (long) (sizeof (char)); }
17228#include <stdio.h>
17229#include <stdlib.h>
17230int
17231main ()
17232{
17233
17234 FILE *f = fopen ("conftest.val", "w");
17235 if (! f)
17236 exit (1);
17237 if (((long) (sizeof (char))) < 0)
17238 {
17239 long i = longval ();
17240 if (i != ((long) (sizeof (char))))
17241 exit (1);
17242 fprintf (f, "%ld\n", i);
17243 }
17244 else
17245 {
17246 unsigned long i = ulongval ();
17247 if (i != ((long) (sizeof (char))))
17248 exit (1);
17249 fprintf (f, "%lu\n", i);
17250 }
17251 exit (ferror (f) || fclose (f) != 0);
17252
17253 ;
17254 return 0;
17255}
17256_ACEOF
17257rm -f conftest$ac_exeext
17258if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17259 (eval $ac_link) 2>&5
17260 ac_status=$?
17261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17262 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17264 (eval $ac_try) 2>&5
17265 ac_status=$?
17266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17267 (exit $ac_status); }; }; then
17268 ac_cv_sizeof_char=`cat conftest.val`
17269else
17270 echo "$as_me: program exited with status $ac_status" >&5
17271echo "$as_me: failed program was:" >&5
17272sed 's/^/| /' conftest.$ac_ext >&5
17273
17274( exit $ac_status )
17275{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
17276See \`config.log' for more details." >&5
17277echo "$as_me: error: cannot compute sizeof (char), 77
17278See \`config.log' for more details." >&2;}
17279 { (exit 1); exit 1; }; }
17280fi
ac1cb8d3 17281rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17282fi
17283fi
17284rm -f conftest.val
17285else
17286 ac_cv_sizeof_char=0
17287fi
17288fi
17289echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
17290echo "${ECHO_T}$ac_cv_sizeof_char" >&6
17291cat >>confdefs.h <<_ACEOF
17292#define SIZEOF_CHAR $ac_cv_sizeof_char
17293_ACEOF
17294
17295
17296echo "$as_me:$LINENO: checking for short" >&5
17297echo $ECHO_N "checking for short... $ECHO_C" >&6
17298if test "${ac_cv_type_short+set}" = set; then
17299 echo $ECHO_N "(cached) $ECHO_C" >&6
17300else
17301 cat >conftest.$ac_ext <<_ACEOF
17302/* confdefs.h. */
17303_ACEOF
17304cat confdefs.h >>conftest.$ac_ext
17305cat >>conftest.$ac_ext <<_ACEOF
17306/* end confdefs.h. */
17307$ac_includes_default
17308int
17309main ()
17310{
17311if ((short *) 0)
17312 return 0;
17313if (sizeof (short))
17314 return 0;
17315 ;
17316 return 0;
17317}
17318_ACEOF
17319rm -f conftest.$ac_objext
17320if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17321 (eval $ac_compile) 2>conftest.er1
a848cd7e 17322 ac_status=$?
ac1cb8d3
VS
17323 grep -v '^ *+' conftest.er1 >conftest.err
17324 rm -f conftest.er1
17325 cat conftest.err >&5
a848cd7e
SC
17326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17327 (exit $ac_status); } &&
f10e38c4 17328 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17330 (eval $ac_try) 2>&5
17331 ac_status=$?
17332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17333 (exit $ac_status); }; } &&
17334 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17336 (eval $ac_try) 2>&5
17337 ac_status=$?
17338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17339 (exit $ac_status); }; }; then
17340 ac_cv_type_short=yes
17341else
17342 echo "$as_me: failed program was:" >&5
17343sed 's/^/| /' conftest.$ac_ext >&5
17344
17345ac_cv_type_short=no
17346fi
ac1cb8d3 17347rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17348fi
17349echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
17350echo "${ECHO_T}$ac_cv_type_short" >&6
17351
17352echo "$as_me:$LINENO: checking size of short" >&5
17353echo $ECHO_N "checking size of short... $ECHO_C" >&6
17354if test "${ac_cv_sizeof_short+set}" = set; then
17355 echo $ECHO_N "(cached) $ECHO_C" >&6
17356else
17357 if test "$ac_cv_type_short" = yes; then
17358 # The cast to unsigned long works around a bug in the HP C Compiler
17359 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17360 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17361 # This bug is HP SR number 8606223364.
17362 if test "$cross_compiling" = yes; then
17363 # Depending upon the size, compute the lo and hi bounds.
17364cat >conftest.$ac_ext <<_ACEOF
17365/* confdefs.h. */
17366_ACEOF
17367cat confdefs.h >>conftest.$ac_ext
17368cat >>conftest.$ac_ext <<_ACEOF
17369/* end confdefs.h. */
17370$ac_includes_default
17371int
17372main ()
17373{
17374static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
17375test_array [0] = 0
17376
17377 ;
17378 return 0;
17379}
17380_ACEOF
17381rm -f conftest.$ac_objext
17382if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17383 (eval $ac_compile) 2>conftest.er1
a848cd7e 17384 ac_status=$?
ac1cb8d3
VS
17385 grep -v '^ *+' conftest.er1 >conftest.err
17386 rm -f conftest.er1
17387 cat conftest.err >&5
a848cd7e
SC
17388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17389 (exit $ac_status); } &&
f10e38c4 17390 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17392 (eval $ac_try) 2>&5
17393 ac_status=$?
17394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17395 (exit $ac_status); }; } &&
17396 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17398 (eval $ac_try) 2>&5
17399 ac_status=$?
17400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17401 (exit $ac_status); }; }; then
17402 ac_lo=0 ac_mid=0
17403 while :; do
17404 cat >conftest.$ac_ext <<_ACEOF
17405/* confdefs.h. */
17406_ACEOF
17407cat confdefs.h >>conftest.$ac_ext
17408cat >>conftest.$ac_ext <<_ACEOF
17409/* end confdefs.h. */
17410$ac_includes_default
17411int
17412main ()
17413{
17414static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
17415test_array [0] = 0
17416
17417 ;
17418 return 0;
17419}
17420_ACEOF
17421rm -f conftest.$ac_objext
17422if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17423 (eval $ac_compile) 2>conftest.er1
a848cd7e 17424 ac_status=$?
ac1cb8d3
VS
17425 grep -v '^ *+' conftest.er1 >conftest.err
17426 rm -f conftest.er1
17427 cat conftest.err >&5
a848cd7e
SC
17428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17429 (exit $ac_status); } &&
f10e38c4 17430 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17432 (eval $ac_try) 2>&5
17433 ac_status=$?
17434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17435 (exit $ac_status); }; } &&
17436 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17438 (eval $ac_try) 2>&5
17439 ac_status=$?
17440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17441 (exit $ac_status); }; }; then
17442 ac_hi=$ac_mid; break
17443else
17444 echo "$as_me: failed program was:" >&5
17445sed 's/^/| /' conftest.$ac_ext >&5
17446
17447ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17448 if test $ac_lo -le $ac_mid; then
17449 ac_lo= ac_hi=
17450 break
17451 fi
17452 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17453fi
ac1cb8d3 17454rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17455 done
17456else
17457 echo "$as_me: failed program was:" >&5
17458sed 's/^/| /' conftest.$ac_ext >&5
17459
17460cat >conftest.$ac_ext <<_ACEOF
17461/* confdefs.h. */
17462_ACEOF
17463cat confdefs.h >>conftest.$ac_ext
17464cat >>conftest.$ac_ext <<_ACEOF
17465/* end confdefs.h. */
17466$ac_includes_default
17467int
17468main ()
17469{
17470static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
17471test_array [0] = 0
17472
17473 ;
17474 return 0;
17475}
17476_ACEOF
17477rm -f conftest.$ac_objext
17478if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17479 (eval $ac_compile) 2>conftest.er1
a848cd7e 17480 ac_status=$?
ac1cb8d3
VS
17481 grep -v '^ *+' conftest.er1 >conftest.err
17482 rm -f conftest.er1
17483 cat conftest.err >&5
a848cd7e
SC
17484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17485 (exit $ac_status); } &&
f10e38c4 17486 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17488 (eval $ac_try) 2>&5
17489 ac_status=$?
17490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17491 (exit $ac_status); }; } &&
17492 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17494 (eval $ac_try) 2>&5
17495 ac_status=$?
17496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17497 (exit $ac_status); }; }; then
17498 ac_hi=-1 ac_mid=-1
17499 while :; do
17500 cat >conftest.$ac_ext <<_ACEOF
17501/* confdefs.h. */
17502_ACEOF
17503cat confdefs.h >>conftest.$ac_ext
17504cat >>conftest.$ac_ext <<_ACEOF
17505/* end confdefs.h. */
17506$ac_includes_default
17507int
17508main ()
17509{
17510static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
17511test_array [0] = 0
17512
17513 ;
17514 return 0;
17515}
17516_ACEOF
17517rm -f conftest.$ac_objext
17518if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17519 (eval $ac_compile) 2>conftest.er1
a848cd7e 17520 ac_status=$?
ac1cb8d3
VS
17521 grep -v '^ *+' conftest.er1 >conftest.err
17522 rm -f conftest.er1
17523 cat conftest.err >&5
a848cd7e
SC
17524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17525 (exit $ac_status); } &&
f10e38c4 17526 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17528 (eval $ac_try) 2>&5
17529 ac_status=$?
17530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17531 (exit $ac_status); }; } &&
17532 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17534 (eval $ac_try) 2>&5
17535 ac_status=$?
17536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17537 (exit $ac_status); }; }; then
17538 ac_lo=$ac_mid; break
17539else
17540 echo "$as_me: failed program was:" >&5
17541sed 's/^/| /' conftest.$ac_ext >&5
17542
17543ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17544 if test $ac_mid -le $ac_hi; then
17545 ac_lo= ac_hi=
17546 break
17547 fi
17548 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17549fi
ac1cb8d3 17550rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17551 done
17552else
17553 echo "$as_me: failed program was:" >&5
17554sed 's/^/| /' conftest.$ac_ext >&5
17555
17556ac_lo= ac_hi=
17557fi
ac1cb8d3 17558rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17559fi
ac1cb8d3 17560rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17561# Binary search between lo and hi bounds.
17562while test "x$ac_lo" != "x$ac_hi"; do
17563 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17564 cat >conftest.$ac_ext <<_ACEOF
17565/* confdefs.h. */
17566_ACEOF
17567cat confdefs.h >>conftest.$ac_ext
17568cat >>conftest.$ac_ext <<_ACEOF
17569/* end confdefs.h. */
17570$ac_includes_default
17571int
17572main ()
17573{
17574static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
17575test_array [0] = 0
17576
17577 ;
17578 return 0;
17579}
17580_ACEOF
17581rm -f conftest.$ac_objext
17582if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17583 (eval $ac_compile) 2>conftest.er1
a848cd7e 17584 ac_status=$?
ac1cb8d3
VS
17585 grep -v '^ *+' conftest.er1 >conftest.err
17586 rm -f conftest.er1
17587 cat conftest.err >&5
a848cd7e
SC
17588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17589 (exit $ac_status); } &&
f10e38c4 17590 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17592 (eval $ac_try) 2>&5
17593 ac_status=$?
17594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17595 (exit $ac_status); }; } &&
17596 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17598 (eval $ac_try) 2>&5
17599 ac_status=$?
17600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17601 (exit $ac_status); }; }; then
17602 ac_hi=$ac_mid
17603else
17604 echo "$as_me: failed program was:" >&5
17605sed 's/^/| /' conftest.$ac_ext >&5
17606
17607ac_lo=`expr '(' $ac_mid ')' + 1`
17608fi
ac1cb8d3 17609rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17610done
17611case $ac_lo in
17612?*) ac_cv_sizeof_short=$ac_lo;;
17613'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
17614See \`config.log' for more details." >&5
17615echo "$as_me: error: cannot compute sizeof (short), 77
17616See \`config.log' for more details." >&2;}
17617 { (exit 1); exit 1; }; } ;;
17618esac
17619else
17620 if test "$cross_compiling" = yes; then
f10e38c4
VZ
17621 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17622echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
17623 { (exit 1); exit 1; }; }
17624else
17625 cat >conftest.$ac_ext <<_ACEOF
17626/* confdefs.h. */
17627_ACEOF
17628cat confdefs.h >>conftest.$ac_ext
17629cat >>conftest.$ac_ext <<_ACEOF
17630/* end confdefs.h. */
17631$ac_includes_default
17632long longval () { return (long) (sizeof (short)); }
17633unsigned long ulongval () { return (long) (sizeof (short)); }
17634#include <stdio.h>
17635#include <stdlib.h>
17636int
17637main ()
17638{
17639
17640 FILE *f = fopen ("conftest.val", "w");
17641 if (! f)
17642 exit (1);
17643 if (((long) (sizeof (short))) < 0)
17644 {
17645 long i = longval ();
17646 if (i != ((long) (sizeof (short))))
17647 exit (1);
17648 fprintf (f, "%ld\n", i);
17649 }
17650 else
17651 {
17652 unsigned long i = ulongval ();
17653 if (i != ((long) (sizeof (short))))
17654 exit (1);
17655 fprintf (f, "%lu\n", i);
17656 }
17657 exit (ferror (f) || fclose (f) != 0);
17658
17659 ;
17660 return 0;
17661}
17662_ACEOF
17663rm -f conftest$ac_exeext
17664if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17665 (eval $ac_link) 2>&5
17666 ac_status=$?
17667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17668 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17670 (eval $ac_try) 2>&5
17671 ac_status=$?
17672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17673 (exit $ac_status); }; }; then
17674 ac_cv_sizeof_short=`cat conftest.val`
17675else
17676 echo "$as_me: program exited with status $ac_status" >&5
17677echo "$as_me: failed program was:" >&5
17678sed 's/^/| /' conftest.$ac_ext >&5
17679
17680( exit $ac_status )
17681{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
17682See \`config.log' for more details." >&5
17683echo "$as_me: error: cannot compute sizeof (short), 77
17684See \`config.log' for more details." >&2;}
17685 { (exit 1); exit 1; }; }
17686fi
ac1cb8d3 17687rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17688fi
17689fi
17690rm -f conftest.val
17691else
17692 ac_cv_sizeof_short=0
17693fi
17694fi
17695echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
17696echo "${ECHO_T}$ac_cv_sizeof_short" >&6
17697cat >>confdefs.h <<_ACEOF
17698#define SIZEOF_SHORT $ac_cv_sizeof_short
17699_ACEOF
17700
17701
17702echo "$as_me:$LINENO: checking for void *" >&5
17703echo $ECHO_N "checking for void *... $ECHO_C" >&6
17704if test "${ac_cv_type_void_p+set}" = set; then
17705 echo $ECHO_N "(cached) $ECHO_C" >&6
17706else
17707 cat >conftest.$ac_ext <<_ACEOF
17708/* confdefs.h. */
17709_ACEOF
17710cat confdefs.h >>conftest.$ac_ext
17711cat >>conftest.$ac_ext <<_ACEOF
17712/* end confdefs.h. */
17713$ac_includes_default
17714int
17715main ()
17716{
17717if ((void * *) 0)
17718 return 0;
17719if (sizeof (void *))
17720 return 0;
17721 ;
17722 return 0;
17723}
17724_ACEOF
17725rm -f conftest.$ac_objext
17726if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17727 (eval $ac_compile) 2>conftest.er1
a848cd7e 17728 ac_status=$?
ac1cb8d3
VS
17729 grep -v '^ *+' conftest.er1 >conftest.err
17730 rm -f conftest.er1
17731 cat conftest.err >&5
a848cd7e
SC
17732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17733 (exit $ac_status); } &&
f10e38c4 17734 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17736 (eval $ac_try) 2>&5
17737 ac_status=$?
17738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17739 (exit $ac_status); }; } &&
17740 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17742 (eval $ac_try) 2>&5
17743 ac_status=$?
17744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17745 (exit $ac_status); }; }; then
17746 ac_cv_type_void_p=yes
17747else
17748 echo "$as_me: failed program was:" >&5
17749sed 's/^/| /' conftest.$ac_ext >&5
17750
17751ac_cv_type_void_p=no
17752fi
ac1cb8d3 17753rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17754fi
17755echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
17756echo "${ECHO_T}$ac_cv_type_void_p" >&6
17757
17758echo "$as_me:$LINENO: checking size of void *" >&5
17759echo $ECHO_N "checking size of void *... $ECHO_C" >&6
17760if test "${ac_cv_sizeof_void_p+set}" = set; then
17761 echo $ECHO_N "(cached) $ECHO_C" >&6
17762else
17763 if test "$ac_cv_type_void_p" = yes; then
17764 # The cast to unsigned long works around a bug in the HP C Compiler
17765 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17766 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17767 # This bug is HP SR number 8606223364.
17768 if test "$cross_compiling" = yes; then
17769 # Depending upon the size, compute the lo and hi bounds.
17770cat >conftest.$ac_ext <<_ACEOF
17771/* confdefs.h. */
17772_ACEOF
17773cat confdefs.h >>conftest.$ac_ext
17774cat >>conftest.$ac_ext <<_ACEOF
17775/* end confdefs.h. */
17776$ac_includes_default
17777int
17778main ()
17779{
17780static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
17781test_array [0] = 0
17782
17783 ;
17784 return 0;
17785}
17786_ACEOF
17787rm -f conftest.$ac_objext
17788if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17789 (eval $ac_compile) 2>conftest.er1
a848cd7e 17790 ac_status=$?
ac1cb8d3
VS
17791 grep -v '^ *+' conftest.er1 >conftest.err
17792 rm -f conftest.er1
17793 cat conftest.err >&5
a848cd7e
SC
17794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17795 (exit $ac_status); } &&
f10e38c4 17796 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17798 (eval $ac_try) 2>&5
17799 ac_status=$?
17800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17801 (exit $ac_status); }; } &&
17802 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17804 (eval $ac_try) 2>&5
17805 ac_status=$?
17806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17807 (exit $ac_status); }; }; then
17808 ac_lo=0 ac_mid=0
17809 while :; do
17810 cat >conftest.$ac_ext <<_ACEOF
17811/* confdefs.h. */
17812_ACEOF
17813cat confdefs.h >>conftest.$ac_ext
17814cat >>conftest.$ac_ext <<_ACEOF
17815/* end confdefs.h. */
17816$ac_includes_default
17817int
17818main ()
17819{
17820static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
17821test_array [0] = 0
17822
17823 ;
17824 return 0;
17825}
17826_ACEOF
17827rm -f conftest.$ac_objext
17828if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17829 (eval $ac_compile) 2>conftest.er1
a848cd7e 17830 ac_status=$?
ac1cb8d3
VS
17831 grep -v '^ *+' conftest.er1 >conftest.err
17832 rm -f conftest.er1
17833 cat conftest.err >&5
a848cd7e
SC
17834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17835 (exit $ac_status); } &&
f10e38c4 17836 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17838 (eval $ac_try) 2>&5
17839 ac_status=$?
17840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17841 (exit $ac_status); }; } &&
17842 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17844 (eval $ac_try) 2>&5
17845 ac_status=$?
17846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17847 (exit $ac_status); }; }; then
17848 ac_hi=$ac_mid; break
17849else
17850 echo "$as_me: failed program was:" >&5
17851sed 's/^/| /' conftest.$ac_ext >&5
17852
17853ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17854 if test $ac_lo -le $ac_mid; then
17855 ac_lo= ac_hi=
17856 break
17857 fi
17858 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17859fi
ac1cb8d3 17860rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17861 done
17862else
17863 echo "$as_me: failed program was:" >&5
17864sed 's/^/| /' conftest.$ac_ext >&5
17865
17866cat >conftest.$ac_ext <<_ACEOF
17867/* confdefs.h. */
17868_ACEOF
17869cat confdefs.h >>conftest.$ac_ext
17870cat >>conftest.$ac_ext <<_ACEOF
17871/* end confdefs.h. */
17872$ac_includes_default
17873int
17874main ()
17875{
17876static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
17877test_array [0] = 0
17878
17879 ;
17880 return 0;
17881}
17882_ACEOF
17883rm -f conftest.$ac_objext
17884if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17885 (eval $ac_compile) 2>conftest.er1
a848cd7e 17886 ac_status=$?
ac1cb8d3
VS
17887 grep -v '^ *+' conftest.er1 >conftest.err
17888 rm -f conftest.er1
17889 cat conftest.err >&5
a848cd7e
SC
17890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17891 (exit $ac_status); } &&
f10e38c4 17892 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17894 (eval $ac_try) 2>&5
17895 ac_status=$?
17896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17897 (exit $ac_status); }; } &&
17898 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17900 (eval $ac_try) 2>&5
17901 ac_status=$?
17902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17903 (exit $ac_status); }; }; then
17904 ac_hi=-1 ac_mid=-1
17905 while :; do
17906 cat >conftest.$ac_ext <<_ACEOF
17907/* confdefs.h. */
17908_ACEOF
17909cat confdefs.h >>conftest.$ac_ext
17910cat >>conftest.$ac_ext <<_ACEOF
17911/* end confdefs.h. */
17912$ac_includes_default
17913int
17914main ()
17915{
17916static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
17917test_array [0] = 0
17918
17919 ;
17920 return 0;
17921}
17922_ACEOF
17923rm -f conftest.$ac_objext
17924if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17925 (eval $ac_compile) 2>conftest.er1
a848cd7e 17926 ac_status=$?
ac1cb8d3
VS
17927 grep -v '^ *+' conftest.er1 >conftest.err
17928 rm -f conftest.er1
17929 cat conftest.err >&5
a848cd7e
SC
17930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17931 (exit $ac_status); } &&
f10e38c4 17932 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17934 (eval $ac_try) 2>&5
17935 ac_status=$?
17936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17937 (exit $ac_status); }; } &&
17938 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17940 (eval $ac_try) 2>&5
17941 ac_status=$?
17942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17943 (exit $ac_status); }; }; then
17944 ac_lo=$ac_mid; break
17945else
17946 echo "$as_me: failed program was:" >&5
17947sed 's/^/| /' conftest.$ac_ext >&5
17948
17949ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17950 if test $ac_mid -le $ac_hi; then
17951 ac_lo= ac_hi=
17952 break
17953 fi
17954 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17955fi
ac1cb8d3 17956rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17957 done
17958else
17959 echo "$as_me: failed program was:" >&5
17960sed 's/^/| /' conftest.$ac_ext >&5
17961
17962ac_lo= ac_hi=
17963fi
ac1cb8d3 17964rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17965fi
ac1cb8d3 17966rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17967# Binary search between lo and hi bounds.
17968while test "x$ac_lo" != "x$ac_hi"; do
17969 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
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{
17980static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
17981test_array [0] = 0
17982
17983 ;
17984 return 0;
17985}
17986_ACEOF
17987rm -f conftest.$ac_objext
17988if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17989 (eval $ac_compile) 2>conftest.er1
a848cd7e 17990 ac_status=$?
ac1cb8d3
VS
17991 grep -v '^ *+' conftest.er1 >conftest.err
17992 rm -f conftest.er1
17993 cat conftest.err >&5
a848cd7e
SC
17994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17995 (exit $ac_status); } &&
f10e38c4 17996 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17998 (eval $ac_try) 2>&5
17999 ac_status=$?
18000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18001 (exit $ac_status); }; } &&
18002 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18004 (eval $ac_try) 2>&5
18005 ac_status=$?
18006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18007 (exit $ac_status); }; }; then
18008 ac_hi=$ac_mid
18009else
18010 echo "$as_me: failed program was:" >&5
18011sed 's/^/| /' conftest.$ac_ext >&5
18012
18013ac_lo=`expr '(' $ac_mid ')' + 1`
18014fi
ac1cb8d3 18015rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18016done
18017case $ac_lo in
18018?*) ac_cv_sizeof_void_p=$ac_lo;;
18019'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
18020See \`config.log' for more details." >&5
18021echo "$as_me: error: cannot compute sizeof (void *), 77
18022See \`config.log' for more details." >&2;}
18023 { (exit 1); exit 1; }; } ;;
18024esac
18025else
18026 if test "$cross_compiling" = yes; then
f10e38c4
VZ
18027 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18028echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
18029 { (exit 1); exit 1; }; }
18030else
18031 cat >conftest.$ac_ext <<_ACEOF
18032/* confdefs.h. */
18033_ACEOF
18034cat confdefs.h >>conftest.$ac_ext
18035cat >>conftest.$ac_ext <<_ACEOF
18036/* end confdefs.h. */
18037$ac_includes_default
18038long longval () { return (long) (sizeof (void *)); }
18039unsigned long ulongval () { return (long) (sizeof (void *)); }
18040#include <stdio.h>
18041#include <stdlib.h>
18042int
18043main ()
18044{
18045
18046 FILE *f = fopen ("conftest.val", "w");
18047 if (! f)
18048 exit (1);
18049 if (((long) (sizeof (void *))) < 0)
18050 {
18051 long i = longval ();
18052 if (i != ((long) (sizeof (void *))))
18053 exit (1);
18054 fprintf (f, "%ld\n", i);
18055 }
18056 else
18057 {
18058 unsigned long i = ulongval ();
18059 if (i != ((long) (sizeof (void *))))
18060 exit (1);
18061 fprintf (f, "%lu\n", i);
18062 }
18063 exit (ferror (f) || fclose (f) != 0);
18064
18065 ;
18066 return 0;
18067}
18068_ACEOF
18069rm -f conftest$ac_exeext
18070if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18071 (eval $ac_link) 2>&5
18072 ac_status=$?
18073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18074 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18076 (eval $ac_try) 2>&5
18077 ac_status=$?
18078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18079 (exit $ac_status); }; }; then
18080 ac_cv_sizeof_void_p=`cat conftest.val`
18081else
18082 echo "$as_me: program exited with status $ac_status" >&5
18083echo "$as_me: failed program was:" >&5
18084sed 's/^/| /' conftest.$ac_ext >&5
18085
18086( exit $ac_status )
18087{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
18088See \`config.log' for more details." >&5
18089echo "$as_me: error: cannot compute sizeof (void *), 77
18090See \`config.log' for more details." >&2;}
18091 { (exit 1); exit 1; }; }
18092fi
ac1cb8d3 18093rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18094fi
18095fi
18096rm -f conftest.val
18097else
18098 ac_cv_sizeof_void_p=0
18099fi
18100fi
18101echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
18102echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
18103cat >>confdefs.h <<_ACEOF
18104#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
18105_ACEOF
18106
18107
18108echo "$as_me:$LINENO: checking for int" >&5
18109echo $ECHO_N "checking for int... $ECHO_C" >&6
18110if test "${ac_cv_type_int+set}" = set; then
18111 echo $ECHO_N "(cached) $ECHO_C" >&6
18112else
18113 cat >conftest.$ac_ext <<_ACEOF
18114/* confdefs.h. */
18115_ACEOF
18116cat confdefs.h >>conftest.$ac_ext
18117cat >>conftest.$ac_ext <<_ACEOF
18118/* end confdefs.h. */
18119$ac_includes_default
18120int
18121main ()
18122{
18123if ((int *) 0)
18124 return 0;
18125if (sizeof (int))
18126 return 0;
18127 ;
18128 return 0;
18129}
18130_ACEOF
18131rm -f conftest.$ac_objext
18132if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18133 (eval $ac_compile) 2>conftest.er1
a848cd7e 18134 ac_status=$?
ac1cb8d3
VS
18135 grep -v '^ *+' conftest.er1 >conftest.err
18136 rm -f conftest.er1
18137 cat conftest.err >&5
a848cd7e
SC
18138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18139 (exit $ac_status); } &&
f10e38c4 18140 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18142 (eval $ac_try) 2>&5
18143 ac_status=$?
18144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18145 (exit $ac_status); }; } &&
18146 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18148 (eval $ac_try) 2>&5
18149 ac_status=$?
18150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18151 (exit $ac_status); }; }; then
18152 ac_cv_type_int=yes
18153else
18154 echo "$as_me: failed program was:" >&5
18155sed 's/^/| /' conftest.$ac_ext >&5
18156
18157ac_cv_type_int=no
18158fi
ac1cb8d3 18159rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18160fi
18161echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
18162echo "${ECHO_T}$ac_cv_type_int" >&6
18163
18164echo "$as_me:$LINENO: checking size of int" >&5
18165echo $ECHO_N "checking size of int... $ECHO_C" >&6
18166if test "${ac_cv_sizeof_int+set}" = set; then
18167 echo $ECHO_N "(cached) $ECHO_C" >&6
18168else
18169 if test "$ac_cv_type_int" = yes; then
18170 # The cast to unsigned long works around a bug in the HP C Compiler
18171 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18172 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18173 # This bug is HP SR number 8606223364.
18174 if test "$cross_compiling" = yes; then
18175 # Depending upon the size, compute the lo and hi bounds.
18176cat >conftest.$ac_ext <<_ACEOF
18177/* confdefs.h. */
18178_ACEOF
18179cat confdefs.h >>conftest.$ac_ext
18180cat >>conftest.$ac_ext <<_ACEOF
18181/* end confdefs.h. */
18182$ac_includes_default
18183int
18184main ()
18185{
18186static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
18187test_array [0] = 0
18188
18189 ;
18190 return 0;
18191}
18192_ACEOF
18193rm -f conftest.$ac_objext
18194if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18195 (eval $ac_compile) 2>conftest.er1
a848cd7e 18196 ac_status=$?
ac1cb8d3
VS
18197 grep -v '^ *+' conftest.er1 >conftest.err
18198 rm -f conftest.er1
18199 cat conftest.err >&5
a848cd7e
SC
18200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18201 (exit $ac_status); } &&
f10e38c4 18202 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18204 (eval $ac_try) 2>&5
18205 ac_status=$?
18206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18207 (exit $ac_status); }; } &&
18208 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18210 (eval $ac_try) 2>&5
18211 ac_status=$?
18212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18213 (exit $ac_status); }; }; then
18214 ac_lo=0 ac_mid=0
18215 while :; do
18216 cat >conftest.$ac_ext <<_ACEOF
18217/* confdefs.h. */
18218_ACEOF
18219cat confdefs.h >>conftest.$ac_ext
18220cat >>conftest.$ac_ext <<_ACEOF
18221/* end confdefs.h. */
18222$ac_includes_default
18223int
18224main ()
18225{
18226static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
18227test_array [0] = 0
18228
18229 ;
18230 return 0;
18231}
18232_ACEOF
18233rm -f conftest.$ac_objext
18234if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18235 (eval $ac_compile) 2>conftest.er1
a848cd7e 18236 ac_status=$?
ac1cb8d3
VS
18237 grep -v '^ *+' conftest.er1 >conftest.err
18238 rm -f conftest.er1
18239 cat conftest.err >&5
a848cd7e
SC
18240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18241 (exit $ac_status); } &&
f10e38c4 18242 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18244 (eval $ac_try) 2>&5
18245 ac_status=$?
18246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18247 (exit $ac_status); }; } &&
18248 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18250 (eval $ac_try) 2>&5
18251 ac_status=$?
18252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18253 (exit $ac_status); }; }; then
18254 ac_hi=$ac_mid; break
18255else
18256 echo "$as_me: failed program was:" >&5
18257sed 's/^/| /' conftest.$ac_ext >&5
18258
18259ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18260 if test $ac_lo -le $ac_mid; then
18261 ac_lo= ac_hi=
18262 break
18263 fi
18264 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18265fi
ac1cb8d3 18266rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18267 done
18268else
18269 echo "$as_me: failed program was:" >&5
18270sed 's/^/| /' conftest.$ac_ext >&5
18271
18272cat >conftest.$ac_ext <<_ACEOF
18273/* confdefs.h. */
18274_ACEOF
18275cat confdefs.h >>conftest.$ac_ext
18276cat >>conftest.$ac_ext <<_ACEOF
18277/* end confdefs.h. */
18278$ac_includes_default
18279int
18280main ()
18281{
18282static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
18283test_array [0] = 0
18284
18285 ;
18286 return 0;
18287}
18288_ACEOF
18289rm -f conftest.$ac_objext
18290if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18291 (eval $ac_compile) 2>conftest.er1
a848cd7e 18292 ac_status=$?
ac1cb8d3
VS
18293 grep -v '^ *+' conftest.er1 >conftest.err
18294 rm -f conftest.er1
18295 cat conftest.err >&5
a848cd7e
SC
18296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18297 (exit $ac_status); } &&
f10e38c4 18298 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18300 (eval $ac_try) 2>&5
18301 ac_status=$?
18302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18303 (exit $ac_status); }; } &&
18304 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18306 (eval $ac_try) 2>&5
18307 ac_status=$?
18308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18309 (exit $ac_status); }; }; then
18310 ac_hi=-1 ac_mid=-1
18311 while :; do
18312 cat >conftest.$ac_ext <<_ACEOF
18313/* confdefs.h. */
18314_ACEOF
18315cat confdefs.h >>conftest.$ac_ext
18316cat >>conftest.$ac_ext <<_ACEOF
18317/* end confdefs.h. */
18318$ac_includes_default
18319int
18320main ()
18321{
18322static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
18323test_array [0] = 0
18324
18325 ;
18326 return 0;
18327}
18328_ACEOF
18329rm -f conftest.$ac_objext
18330if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18331 (eval $ac_compile) 2>conftest.er1
a848cd7e 18332 ac_status=$?
ac1cb8d3
VS
18333 grep -v '^ *+' conftest.er1 >conftest.err
18334 rm -f conftest.er1
18335 cat conftest.err >&5
a848cd7e
SC
18336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18337 (exit $ac_status); } &&
f10e38c4 18338 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18340 (eval $ac_try) 2>&5
18341 ac_status=$?
18342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18343 (exit $ac_status); }; } &&
18344 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18346 (eval $ac_try) 2>&5
18347 ac_status=$?
18348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18349 (exit $ac_status); }; }; then
18350 ac_lo=$ac_mid; break
18351else
18352 echo "$as_me: failed program was:" >&5
18353sed 's/^/| /' conftest.$ac_ext >&5
18354
18355ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18356 if test $ac_mid -le $ac_hi; then
18357 ac_lo= ac_hi=
18358 break
18359 fi
18360 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18361fi
ac1cb8d3 18362rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18363 done
18364else
18365 echo "$as_me: failed program was:" >&5
18366sed 's/^/| /' conftest.$ac_ext >&5
18367
18368ac_lo= ac_hi=
18369fi
ac1cb8d3 18370rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18371fi
ac1cb8d3 18372rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18373# Binary search between lo and hi bounds.
18374while test "x$ac_lo" != "x$ac_hi"; do
18375 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
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{
18386static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
18387test_array [0] = 0
18388
18389 ;
18390 return 0;
18391}
18392_ACEOF
18393rm -f conftest.$ac_objext
18394if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18395 (eval $ac_compile) 2>conftest.er1
a848cd7e 18396 ac_status=$?
ac1cb8d3
VS
18397 grep -v '^ *+' conftest.er1 >conftest.err
18398 rm -f conftest.er1
18399 cat conftest.err >&5
a848cd7e
SC
18400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18401 (exit $ac_status); } &&
f10e38c4 18402 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18404 (eval $ac_try) 2>&5
18405 ac_status=$?
18406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18407 (exit $ac_status); }; } &&
18408 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18410 (eval $ac_try) 2>&5
18411 ac_status=$?
18412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18413 (exit $ac_status); }; }; then
18414 ac_hi=$ac_mid
18415else
18416 echo "$as_me: failed program was:" >&5
18417sed 's/^/| /' conftest.$ac_ext >&5
18418
18419ac_lo=`expr '(' $ac_mid ')' + 1`
18420fi
ac1cb8d3 18421rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18422done
18423case $ac_lo in
18424?*) ac_cv_sizeof_int=$ac_lo;;
18425'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
18426See \`config.log' for more details." >&5
18427echo "$as_me: error: cannot compute sizeof (int), 77
18428See \`config.log' for more details." >&2;}
18429 { (exit 1); exit 1; }; } ;;
18430esac
18431else
18432 if test "$cross_compiling" = yes; then
f10e38c4
VZ
18433 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18434echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
18435 { (exit 1); exit 1; }; }
18436else
18437 cat >conftest.$ac_ext <<_ACEOF
18438/* confdefs.h. */
18439_ACEOF
18440cat confdefs.h >>conftest.$ac_ext
18441cat >>conftest.$ac_ext <<_ACEOF
18442/* end confdefs.h. */
18443$ac_includes_default
18444long longval () { return (long) (sizeof (int)); }
18445unsigned long ulongval () { return (long) (sizeof (int)); }
18446#include <stdio.h>
18447#include <stdlib.h>
18448int
18449main ()
18450{
18451
18452 FILE *f = fopen ("conftest.val", "w");
18453 if (! f)
18454 exit (1);
18455 if (((long) (sizeof (int))) < 0)
18456 {
18457 long i = longval ();
18458 if (i != ((long) (sizeof (int))))
18459 exit (1);
18460 fprintf (f, "%ld\n", i);
18461 }
18462 else
18463 {
18464 unsigned long i = ulongval ();
18465 if (i != ((long) (sizeof (int))))
18466 exit (1);
18467 fprintf (f, "%lu\n", i);
18468 }
18469 exit (ferror (f) || fclose (f) != 0);
18470
18471 ;
18472 return 0;
18473}
18474_ACEOF
18475rm -f conftest$ac_exeext
18476if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18477 (eval $ac_link) 2>&5
18478 ac_status=$?
18479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18480 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18482 (eval $ac_try) 2>&5
18483 ac_status=$?
18484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18485 (exit $ac_status); }; }; then
18486 ac_cv_sizeof_int=`cat conftest.val`
18487else
18488 echo "$as_me: program exited with status $ac_status" >&5
18489echo "$as_me: failed program was:" >&5
18490sed 's/^/| /' conftest.$ac_ext >&5
18491
18492( exit $ac_status )
18493{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
18494See \`config.log' for more details." >&5
18495echo "$as_me: error: cannot compute sizeof (int), 77
18496See \`config.log' for more details." >&2;}
18497 { (exit 1); exit 1; }; }
18498fi
ac1cb8d3 18499rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18500fi
18501fi
18502rm -f conftest.val
18503else
18504 ac_cv_sizeof_int=0
18505fi
18506fi
18507echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
18508echo "${ECHO_T}$ac_cv_sizeof_int" >&6
18509cat >>confdefs.h <<_ACEOF
18510#define SIZEOF_INT $ac_cv_sizeof_int
18511_ACEOF
18512
18513
18514echo "$as_me:$LINENO: checking for long" >&5
18515echo $ECHO_N "checking for long... $ECHO_C" >&6
18516if test "${ac_cv_type_long+set}" = set; then
18517 echo $ECHO_N "(cached) $ECHO_C" >&6
18518else
18519 cat >conftest.$ac_ext <<_ACEOF
18520/* confdefs.h. */
18521_ACEOF
18522cat confdefs.h >>conftest.$ac_ext
18523cat >>conftest.$ac_ext <<_ACEOF
18524/* end confdefs.h. */
18525$ac_includes_default
18526int
18527main ()
18528{
18529if ((long *) 0)
18530 return 0;
18531if (sizeof (long))
18532 return 0;
18533 ;
18534 return 0;
18535}
18536_ACEOF
18537rm -f conftest.$ac_objext
18538if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18539 (eval $ac_compile) 2>conftest.er1
a848cd7e 18540 ac_status=$?
ac1cb8d3
VS
18541 grep -v '^ *+' conftest.er1 >conftest.err
18542 rm -f conftest.er1
18543 cat conftest.err >&5
a848cd7e
SC
18544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18545 (exit $ac_status); } &&
f10e38c4 18546 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18548 (eval $ac_try) 2>&5
18549 ac_status=$?
18550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18551 (exit $ac_status); }; } &&
18552 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18554 (eval $ac_try) 2>&5
18555 ac_status=$?
18556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18557 (exit $ac_status); }; }; then
18558 ac_cv_type_long=yes
18559else
18560 echo "$as_me: failed program was:" >&5
18561sed 's/^/| /' conftest.$ac_ext >&5
18562
18563ac_cv_type_long=no
18564fi
ac1cb8d3 18565rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18566fi
18567echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
18568echo "${ECHO_T}$ac_cv_type_long" >&6
18569
18570echo "$as_me:$LINENO: checking size of long" >&5
18571echo $ECHO_N "checking size of long... $ECHO_C" >&6
18572if test "${ac_cv_sizeof_long+set}" = set; then
18573 echo $ECHO_N "(cached) $ECHO_C" >&6
18574else
18575 if test "$ac_cv_type_long" = yes; then
18576 # The cast to unsigned long works around a bug in the HP C Compiler
18577 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18578 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18579 # This bug is HP SR number 8606223364.
18580 if test "$cross_compiling" = yes; then
18581 # Depending upon the size, compute the lo and hi bounds.
18582cat >conftest.$ac_ext <<_ACEOF
18583/* confdefs.h. */
18584_ACEOF
18585cat confdefs.h >>conftest.$ac_ext
18586cat >>conftest.$ac_ext <<_ACEOF
18587/* end confdefs.h. */
18588$ac_includes_default
18589int
18590main ()
18591{
18592static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
18593test_array [0] = 0
18594
18595 ;
18596 return 0;
18597}
18598_ACEOF
18599rm -f conftest.$ac_objext
18600if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18601 (eval $ac_compile) 2>conftest.er1
a848cd7e 18602 ac_status=$?
ac1cb8d3
VS
18603 grep -v '^ *+' conftest.er1 >conftest.err
18604 rm -f conftest.er1
18605 cat conftest.err >&5
a848cd7e
SC
18606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18607 (exit $ac_status); } &&
f10e38c4 18608 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18610 (eval $ac_try) 2>&5
18611 ac_status=$?
18612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18613 (exit $ac_status); }; } &&
18614 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18616 (eval $ac_try) 2>&5
18617 ac_status=$?
18618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18619 (exit $ac_status); }; }; then
18620 ac_lo=0 ac_mid=0
18621 while :; do
18622 cat >conftest.$ac_ext <<_ACEOF
18623/* confdefs.h. */
18624_ACEOF
18625cat confdefs.h >>conftest.$ac_ext
18626cat >>conftest.$ac_ext <<_ACEOF
18627/* end confdefs.h. */
18628$ac_includes_default
18629int
18630main ()
18631{
18632static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
18633test_array [0] = 0
18634
18635 ;
18636 return 0;
18637}
18638_ACEOF
18639rm -f conftest.$ac_objext
18640if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18641 (eval $ac_compile) 2>conftest.er1
a848cd7e 18642 ac_status=$?
ac1cb8d3
VS
18643 grep -v '^ *+' conftest.er1 >conftest.err
18644 rm -f conftest.er1
18645 cat conftest.err >&5
a848cd7e
SC
18646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18647 (exit $ac_status); } &&
f10e38c4 18648 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18650 (eval $ac_try) 2>&5
18651 ac_status=$?
18652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18653 (exit $ac_status); }; } &&
18654 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18656 (eval $ac_try) 2>&5
18657 ac_status=$?
18658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18659 (exit $ac_status); }; }; then
18660 ac_hi=$ac_mid; break
18661else
18662 echo "$as_me: failed program was:" >&5
18663sed 's/^/| /' conftest.$ac_ext >&5
18664
18665ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18666 if test $ac_lo -le $ac_mid; then
18667 ac_lo= ac_hi=
18668 break
18669 fi
18670 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18671fi
ac1cb8d3 18672rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18673 done
18674else
18675 echo "$as_me: failed program was:" >&5
18676sed 's/^/| /' conftest.$ac_ext >&5
18677
18678cat >conftest.$ac_ext <<_ACEOF
18679/* confdefs.h. */
18680_ACEOF
18681cat confdefs.h >>conftest.$ac_ext
18682cat >>conftest.$ac_ext <<_ACEOF
18683/* end confdefs.h. */
18684$ac_includes_default
18685int
18686main ()
18687{
18688static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
18689test_array [0] = 0
18690
18691 ;
18692 return 0;
18693}
18694_ACEOF
18695rm -f conftest.$ac_objext
18696if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18697 (eval $ac_compile) 2>conftest.er1
a848cd7e 18698 ac_status=$?
ac1cb8d3
VS
18699 grep -v '^ *+' conftest.er1 >conftest.err
18700 rm -f conftest.er1
18701 cat conftest.err >&5
a848cd7e
SC
18702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18703 (exit $ac_status); } &&
f10e38c4 18704 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18706 (eval $ac_try) 2>&5
18707 ac_status=$?
18708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18709 (exit $ac_status); }; } &&
18710 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18712 (eval $ac_try) 2>&5
18713 ac_status=$?
18714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18715 (exit $ac_status); }; }; then
18716 ac_hi=-1 ac_mid=-1
18717 while :; do
18718 cat >conftest.$ac_ext <<_ACEOF
18719/* confdefs.h. */
18720_ACEOF
18721cat confdefs.h >>conftest.$ac_ext
18722cat >>conftest.$ac_ext <<_ACEOF
18723/* end confdefs.h. */
18724$ac_includes_default
18725int
18726main ()
18727{
18728static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
18729test_array [0] = 0
18730
18731 ;
18732 return 0;
18733}
18734_ACEOF
18735rm -f conftest.$ac_objext
18736if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18737 (eval $ac_compile) 2>conftest.er1
a848cd7e 18738 ac_status=$?
ac1cb8d3
VS
18739 grep -v '^ *+' conftest.er1 >conftest.err
18740 rm -f conftest.er1
18741 cat conftest.err >&5
a848cd7e
SC
18742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18743 (exit $ac_status); } &&
f10e38c4 18744 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18746 (eval $ac_try) 2>&5
18747 ac_status=$?
18748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18749 (exit $ac_status); }; } &&
18750 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18752 (eval $ac_try) 2>&5
18753 ac_status=$?
18754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18755 (exit $ac_status); }; }; then
18756 ac_lo=$ac_mid; break
18757else
18758 echo "$as_me: failed program was:" >&5
18759sed 's/^/| /' conftest.$ac_ext >&5
18760
18761ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18762 if test $ac_mid -le $ac_hi; then
18763 ac_lo= ac_hi=
18764 break
18765 fi
18766 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18767fi
ac1cb8d3 18768rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18769 done
18770else
18771 echo "$as_me: failed program was:" >&5
18772sed 's/^/| /' conftest.$ac_ext >&5
18773
18774ac_lo= ac_hi=
18775fi
ac1cb8d3 18776rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18777fi
ac1cb8d3 18778rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18779# Binary search between lo and hi bounds.
18780while test "x$ac_lo" != "x$ac_hi"; do
18781 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
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{
18792static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
18793test_array [0] = 0
18794
18795 ;
18796 return 0;
18797}
18798_ACEOF
18799rm -f conftest.$ac_objext
18800if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18801 (eval $ac_compile) 2>conftest.er1
a848cd7e 18802 ac_status=$?
ac1cb8d3
VS
18803 grep -v '^ *+' conftest.er1 >conftest.err
18804 rm -f conftest.er1
18805 cat conftest.err >&5
a848cd7e
SC
18806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18807 (exit $ac_status); } &&
f10e38c4 18808 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18810 (eval $ac_try) 2>&5
18811 ac_status=$?
18812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18813 (exit $ac_status); }; } &&
18814 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18816 (eval $ac_try) 2>&5
18817 ac_status=$?
18818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18819 (exit $ac_status); }; }; then
18820 ac_hi=$ac_mid
18821else
18822 echo "$as_me: failed program was:" >&5
18823sed 's/^/| /' conftest.$ac_ext >&5
18824
18825ac_lo=`expr '(' $ac_mid ')' + 1`
18826fi
ac1cb8d3 18827rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18828done
18829case $ac_lo in
18830?*) ac_cv_sizeof_long=$ac_lo;;
18831'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
18832See \`config.log' for more details." >&5
18833echo "$as_me: error: cannot compute sizeof (long), 77
18834See \`config.log' for more details." >&2;}
18835 { (exit 1); exit 1; }; } ;;
18836esac
18837else
18838 if test "$cross_compiling" = yes; then
f10e38c4
VZ
18839 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18840echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
18841 { (exit 1); exit 1; }; }
18842else
18843 cat >conftest.$ac_ext <<_ACEOF
18844/* confdefs.h. */
18845_ACEOF
18846cat confdefs.h >>conftest.$ac_ext
18847cat >>conftest.$ac_ext <<_ACEOF
18848/* end confdefs.h. */
18849$ac_includes_default
18850long longval () { return (long) (sizeof (long)); }
18851unsigned long ulongval () { return (long) (sizeof (long)); }
18852#include <stdio.h>
18853#include <stdlib.h>
18854int
18855main ()
18856{
18857
18858 FILE *f = fopen ("conftest.val", "w");
18859 if (! f)
18860 exit (1);
18861 if (((long) (sizeof (long))) < 0)
18862 {
18863 long i = longval ();
18864 if (i != ((long) (sizeof (long))))
18865 exit (1);
18866 fprintf (f, "%ld\n", i);
18867 }
18868 else
18869 {
18870 unsigned long i = ulongval ();
18871 if (i != ((long) (sizeof (long))))
18872 exit (1);
18873 fprintf (f, "%lu\n", i);
18874 }
18875 exit (ferror (f) || fclose (f) != 0);
18876
18877 ;
18878 return 0;
18879}
18880_ACEOF
18881rm -f conftest$ac_exeext
18882if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18883 (eval $ac_link) 2>&5
18884 ac_status=$?
18885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18886 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18888 (eval $ac_try) 2>&5
18889 ac_status=$?
18890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18891 (exit $ac_status); }; }; then
18892 ac_cv_sizeof_long=`cat conftest.val`
18893else
18894 echo "$as_me: program exited with status $ac_status" >&5
18895echo "$as_me: failed program was:" >&5
18896sed 's/^/| /' conftest.$ac_ext >&5
18897
18898( exit $ac_status )
18899{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
18900See \`config.log' for more details." >&5
18901echo "$as_me: error: cannot compute sizeof (long), 77
18902See \`config.log' for more details." >&2;}
18903 { (exit 1); exit 1; }; }
18904fi
ac1cb8d3 18905rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18906fi
18907fi
18908rm -f conftest.val
18909else
18910 ac_cv_sizeof_long=0
18911fi
18912fi
18913echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
18914echo "${ECHO_T}$ac_cv_sizeof_long" >&6
18915cat >>confdefs.h <<_ACEOF
18916#define SIZEOF_LONG $ac_cv_sizeof_long
18917_ACEOF
18918
18919
18920echo "$as_me:$LINENO: checking for size_t" >&5
18921echo $ECHO_N "checking for size_t... $ECHO_C" >&6
18922if test "${ac_cv_type_size_t+set}" = set; then
18923 echo $ECHO_N "(cached) $ECHO_C" >&6
18924else
18925 cat >conftest.$ac_ext <<_ACEOF
18926/* confdefs.h. */
18927_ACEOF
18928cat confdefs.h >>conftest.$ac_ext
18929cat >>conftest.$ac_ext <<_ACEOF
18930/* end confdefs.h. */
18931$ac_includes_default
18932int
18933main ()
18934{
18935if ((size_t *) 0)
18936 return 0;
18937if (sizeof (size_t))
18938 return 0;
18939 ;
18940 return 0;
18941}
18942_ACEOF
18943rm -f conftest.$ac_objext
18944if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18945 (eval $ac_compile) 2>conftest.er1
a848cd7e 18946 ac_status=$?
ac1cb8d3
VS
18947 grep -v '^ *+' conftest.er1 >conftest.err
18948 rm -f conftest.er1
18949 cat conftest.err >&5
a848cd7e
SC
18950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18951 (exit $ac_status); } &&
f10e38c4 18952 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18954 (eval $ac_try) 2>&5
18955 ac_status=$?
18956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18957 (exit $ac_status); }; } &&
18958 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18960 (eval $ac_try) 2>&5
18961 ac_status=$?
18962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18963 (exit $ac_status); }; }; then
18964 ac_cv_type_size_t=yes
18965else
18966 echo "$as_me: failed program was:" >&5
18967sed 's/^/| /' conftest.$ac_ext >&5
18968
18969ac_cv_type_size_t=no
18970fi
ac1cb8d3 18971rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18972fi
18973echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
18974echo "${ECHO_T}$ac_cv_type_size_t" >&6
18975
18976echo "$as_me:$LINENO: checking size of size_t" >&5
18977echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
18978if test "${ac_cv_sizeof_size_t+set}" = set; then
18979 echo $ECHO_N "(cached) $ECHO_C" >&6
18980else
18981 if test "$ac_cv_type_size_t" = yes; then
18982 # The cast to unsigned long works around a bug in the HP C Compiler
18983 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18984 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18985 # This bug is HP SR number 8606223364.
18986 if test "$cross_compiling" = yes; then
18987 # Depending upon the size, compute the lo and hi bounds.
18988cat >conftest.$ac_ext <<_ACEOF
18989/* confdefs.h. */
18990_ACEOF
18991cat confdefs.h >>conftest.$ac_ext
18992cat >>conftest.$ac_ext <<_ACEOF
18993/* end confdefs.h. */
18994$ac_includes_default
18995int
18996main ()
18997{
18998static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
18999test_array [0] = 0
19000
19001 ;
19002 return 0;
19003}
19004_ACEOF
19005rm -f conftest.$ac_objext
19006if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19007 (eval $ac_compile) 2>conftest.er1
a848cd7e 19008 ac_status=$?
ac1cb8d3
VS
19009 grep -v '^ *+' conftest.er1 >conftest.err
19010 rm -f conftest.er1
19011 cat conftest.err >&5
a848cd7e
SC
19012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19013 (exit $ac_status); } &&
f10e38c4 19014 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19016 (eval $ac_try) 2>&5
19017 ac_status=$?
19018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19019 (exit $ac_status); }; } &&
19020 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19022 (eval $ac_try) 2>&5
19023 ac_status=$?
19024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19025 (exit $ac_status); }; }; then
19026 ac_lo=0 ac_mid=0
19027 while :; do
19028 cat >conftest.$ac_ext <<_ACEOF
19029/* confdefs.h. */
19030_ACEOF
19031cat confdefs.h >>conftest.$ac_ext
19032cat >>conftest.$ac_ext <<_ACEOF
19033/* end confdefs.h. */
19034$ac_includes_default
19035int
19036main ()
19037{
19038static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
19039test_array [0] = 0
19040
19041 ;
19042 return 0;
19043}
19044_ACEOF
19045rm -f conftest.$ac_objext
19046if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19047 (eval $ac_compile) 2>conftest.er1
a848cd7e 19048 ac_status=$?
ac1cb8d3
VS
19049 grep -v '^ *+' conftest.er1 >conftest.err
19050 rm -f conftest.er1
19051 cat conftest.err >&5
a848cd7e
SC
19052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19053 (exit $ac_status); } &&
f10e38c4 19054 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19056 (eval $ac_try) 2>&5
19057 ac_status=$?
19058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19059 (exit $ac_status); }; } &&
19060 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19062 (eval $ac_try) 2>&5
19063 ac_status=$?
19064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19065 (exit $ac_status); }; }; then
19066 ac_hi=$ac_mid; break
19067else
19068 echo "$as_me: failed program was:" >&5
19069sed 's/^/| /' conftest.$ac_ext >&5
19070
19071ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
19072 if test $ac_lo -le $ac_mid; then
19073 ac_lo= ac_hi=
19074 break
19075 fi
19076 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 19077fi
ac1cb8d3 19078rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19079 done
19080else
19081 echo "$as_me: failed program was:" >&5
19082sed 's/^/| /' conftest.$ac_ext >&5
19083
19084cat >conftest.$ac_ext <<_ACEOF
19085/* confdefs.h. */
19086_ACEOF
19087cat confdefs.h >>conftest.$ac_ext
19088cat >>conftest.$ac_ext <<_ACEOF
19089/* end confdefs.h. */
19090$ac_includes_default
19091int
19092main ()
19093{
19094static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
19095test_array [0] = 0
19096
19097 ;
19098 return 0;
19099}
19100_ACEOF
19101rm -f conftest.$ac_objext
19102if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19103 (eval $ac_compile) 2>conftest.er1
a848cd7e 19104 ac_status=$?
ac1cb8d3
VS
19105 grep -v '^ *+' conftest.er1 >conftest.err
19106 rm -f conftest.er1
19107 cat conftest.err >&5
a848cd7e
SC
19108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19109 (exit $ac_status); } &&
f10e38c4 19110 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19112 (eval $ac_try) 2>&5
19113 ac_status=$?
19114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19115 (exit $ac_status); }; } &&
19116 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19118 (eval $ac_try) 2>&5
19119 ac_status=$?
19120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19121 (exit $ac_status); }; }; then
19122 ac_hi=-1 ac_mid=-1
19123 while :; do
19124 cat >conftest.$ac_ext <<_ACEOF
19125/* confdefs.h. */
19126_ACEOF
19127cat confdefs.h >>conftest.$ac_ext
19128cat >>conftest.$ac_ext <<_ACEOF
19129/* end confdefs.h. */
19130$ac_includes_default
19131int
19132main ()
19133{
19134static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
19135test_array [0] = 0
19136
19137 ;
19138 return 0;
19139}
19140_ACEOF
19141rm -f conftest.$ac_objext
19142if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19143 (eval $ac_compile) 2>conftest.er1
a848cd7e 19144 ac_status=$?
ac1cb8d3
VS
19145 grep -v '^ *+' conftest.er1 >conftest.err
19146 rm -f conftest.er1
19147 cat conftest.err >&5
a848cd7e
SC
19148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19149 (exit $ac_status); } &&
f10e38c4 19150 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19152 (eval $ac_try) 2>&5
19153 ac_status=$?
19154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19155 (exit $ac_status); }; } &&
19156 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19158 (eval $ac_try) 2>&5
19159 ac_status=$?
19160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19161 (exit $ac_status); }; }; then
19162 ac_lo=$ac_mid; break
19163else
19164 echo "$as_me: failed program was:" >&5
19165sed 's/^/| /' conftest.$ac_ext >&5
19166
19167ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
19168 if test $ac_mid -le $ac_hi; then
19169 ac_lo= ac_hi=
19170 break
19171 fi
19172 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 19173fi
ac1cb8d3 19174rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19175 done
19176else
19177 echo "$as_me: failed program was:" >&5
19178sed 's/^/| /' conftest.$ac_ext >&5
19179
19180ac_lo= ac_hi=
19181fi
ac1cb8d3 19182rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 19183fi
ac1cb8d3 19184rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19185# Binary search between lo and hi bounds.
19186while test "x$ac_lo" != "x$ac_hi"; do
19187 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
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{
19198static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
19199test_array [0] = 0
19200
19201 ;
19202 return 0;
19203}
19204_ACEOF
19205rm -f conftest.$ac_objext
19206if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19207 (eval $ac_compile) 2>conftest.er1
a848cd7e 19208 ac_status=$?
ac1cb8d3
VS
19209 grep -v '^ *+' conftest.er1 >conftest.err
19210 rm -f conftest.er1
19211 cat conftest.err >&5
a848cd7e
SC
19212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19213 (exit $ac_status); } &&
f10e38c4 19214 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19216 (eval $ac_try) 2>&5
19217 ac_status=$?
19218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19219 (exit $ac_status); }; } &&
19220 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19222 (eval $ac_try) 2>&5
19223 ac_status=$?
19224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19225 (exit $ac_status); }; }; then
19226 ac_hi=$ac_mid
19227else
19228 echo "$as_me: failed program was:" >&5
19229sed 's/^/| /' conftest.$ac_ext >&5
19230
19231ac_lo=`expr '(' $ac_mid ')' + 1`
19232fi
ac1cb8d3 19233rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19234done
19235case $ac_lo in
19236?*) ac_cv_sizeof_size_t=$ac_lo;;
19237'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
19238See \`config.log' for more details." >&5
19239echo "$as_me: error: cannot compute sizeof (size_t), 77
19240See \`config.log' for more details." >&2;}
19241 { (exit 1); exit 1; }; } ;;
19242esac
19243else
19244 if test "$cross_compiling" = yes; then
f10e38c4
VZ
19245 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19246echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
19247 { (exit 1); exit 1; }; }
19248else
19249 cat >conftest.$ac_ext <<_ACEOF
19250/* confdefs.h. */
19251_ACEOF
19252cat confdefs.h >>conftest.$ac_ext
19253cat >>conftest.$ac_ext <<_ACEOF
19254/* end confdefs.h. */
19255$ac_includes_default
19256long longval () { return (long) (sizeof (size_t)); }
19257unsigned long ulongval () { return (long) (sizeof (size_t)); }
19258#include <stdio.h>
19259#include <stdlib.h>
19260int
19261main ()
19262{
19263
19264 FILE *f = fopen ("conftest.val", "w");
19265 if (! f)
19266 exit (1);
19267 if (((long) (sizeof (size_t))) < 0)
19268 {
19269 long i = longval ();
19270 if (i != ((long) (sizeof (size_t))))
19271 exit (1);
19272 fprintf (f, "%ld\n", i);
19273 }
19274 else
19275 {
19276 unsigned long i = ulongval ();
19277 if (i != ((long) (sizeof (size_t))))
19278 exit (1);
19279 fprintf (f, "%lu\n", i);
19280 }
19281 exit (ferror (f) || fclose (f) != 0);
19282
19283 ;
19284 return 0;
19285}
19286_ACEOF
19287rm -f conftest$ac_exeext
19288if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19289 (eval $ac_link) 2>&5
19290 ac_status=$?
19291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19292 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19294 (eval $ac_try) 2>&5
19295 ac_status=$?
19296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19297 (exit $ac_status); }; }; then
19298 ac_cv_sizeof_size_t=`cat conftest.val`
19299else
19300 echo "$as_me: program exited with status $ac_status" >&5
19301echo "$as_me: failed program was:" >&5
19302sed 's/^/| /' conftest.$ac_ext >&5
19303
19304( exit $ac_status )
19305{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
19306See \`config.log' for more details." >&5
19307echo "$as_me: error: cannot compute sizeof (size_t), 77
19308See \`config.log' for more details." >&2;}
19309 { (exit 1); exit 1; }; }
19310fi
ac1cb8d3 19311rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19312fi
19313fi
19314rm -f conftest.val
19315else
19316 ac_cv_sizeof_size_t=0
19317fi
19318fi
19319echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
19320echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
19321cat >>confdefs.h <<_ACEOF
19322#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
19323_ACEOF
19324
19325
19326
19327case "${host}" in
19328 arm-*-linux* )
19329 echo "$as_me:$LINENO: checking for long long" >&5
19330echo $ECHO_N "checking for long long... $ECHO_C" >&6
19331if test "${ac_cv_type_long_long+set}" = set; then
19332 echo $ECHO_N "(cached) $ECHO_C" >&6
19333else
19334 cat >conftest.$ac_ext <<_ACEOF
19335/* confdefs.h. */
19336_ACEOF
19337cat confdefs.h >>conftest.$ac_ext
19338cat >>conftest.$ac_ext <<_ACEOF
19339/* end confdefs.h. */
19340$ac_includes_default
19341int
19342main ()
19343{
19344if ((long long *) 0)
19345 return 0;
19346if (sizeof (long long))
19347 return 0;
19348 ;
19349 return 0;
19350}
19351_ACEOF
19352rm -f conftest.$ac_objext
19353if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19354 (eval $ac_compile) 2>conftest.er1
a848cd7e 19355 ac_status=$?
ac1cb8d3
VS
19356 grep -v '^ *+' conftest.er1 >conftest.err
19357 rm -f conftest.er1
19358 cat conftest.err >&5
a848cd7e
SC
19359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19360 (exit $ac_status); } &&
f10e38c4 19361 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19363 (eval $ac_try) 2>&5
19364 ac_status=$?
19365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19366 (exit $ac_status); }; } &&
19367 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19369 (eval $ac_try) 2>&5
19370 ac_status=$?
19371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19372 (exit $ac_status); }; }; then
19373 ac_cv_type_long_long=yes
19374else
19375 echo "$as_me: failed program was:" >&5
19376sed 's/^/| /' conftest.$ac_ext >&5
19377
19378ac_cv_type_long_long=no
19379fi
ac1cb8d3 19380rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19381fi
19382echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
19383echo "${ECHO_T}$ac_cv_type_long_long" >&6
19384
19385echo "$as_me:$LINENO: checking size of long long" >&5
19386echo $ECHO_N "checking size of long long... $ECHO_C" >&6
19387if test "${ac_cv_sizeof_long_long+set}" = set; then
19388 echo $ECHO_N "(cached) $ECHO_C" >&6
19389else
19390 if test "$ac_cv_type_long_long" = yes; then
19391 # The cast to unsigned long works around a bug in the HP C Compiler
19392 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19393 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19394 # This bug is HP SR number 8606223364.
19395 if test "$cross_compiling" = yes; then
19396 # Depending upon the size, compute the lo and hi bounds.
19397cat >conftest.$ac_ext <<_ACEOF
19398/* confdefs.h. */
19399_ACEOF
19400cat confdefs.h >>conftest.$ac_ext
19401cat >>conftest.$ac_ext <<_ACEOF
19402/* end confdefs.h. */
19403$ac_includes_default
19404int
19405main ()
19406{
19407static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
19408test_array [0] = 0
19409
19410 ;
19411 return 0;
19412}
19413_ACEOF
19414rm -f conftest.$ac_objext
19415if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19416 (eval $ac_compile) 2>conftest.er1
a848cd7e 19417 ac_status=$?
ac1cb8d3
VS
19418 grep -v '^ *+' conftest.er1 >conftest.err
19419 rm -f conftest.er1
19420 cat conftest.err >&5
a848cd7e
SC
19421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19422 (exit $ac_status); } &&
f10e38c4 19423 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19425 (eval $ac_try) 2>&5
19426 ac_status=$?
19427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19428 (exit $ac_status); }; } &&
19429 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19431 (eval $ac_try) 2>&5
19432 ac_status=$?
19433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19434 (exit $ac_status); }; }; then
19435 ac_lo=0 ac_mid=0
19436 while :; do
19437 cat >conftest.$ac_ext <<_ACEOF
19438/* confdefs.h. */
19439_ACEOF
19440cat confdefs.h >>conftest.$ac_ext
19441cat >>conftest.$ac_ext <<_ACEOF
19442/* end confdefs.h. */
19443$ac_includes_default
19444int
19445main ()
19446{
19447static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
19448test_array [0] = 0
19449
19450 ;
19451 return 0;
19452}
19453_ACEOF
19454rm -f conftest.$ac_objext
19455if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19456 (eval $ac_compile) 2>conftest.er1
a848cd7e 19457 ac_status=$?
ac1cb8d3
VS
19458 grep -v '^ *+' conftest.er1 >conftest.err
19459 rm -f conftest.er1
19460 cat conftest.err >&5
a848cd7e
SC
19461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19462 (exit $ac_status); } &&
f10e38c4 19463 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19465 (eval $ac_try) 2>&5
19466 ac_status=$?
19467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19468 (exit $ac_status); }; } &&
19469 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19471 (eval $ac_try) 2>&5
19472 ac_status=$?
19473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19474 (exit $ac_status); }; }; then
19475 ac_hi=$ac_mid; break
19476else
19477 echo "$as_me: failed program was:" >&5
19478sed 's/^/| /' conftest.$ac_ext >&5
19479
19480ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
19481 if test $ac_lo -le $ac_mid; then
19482 ac_lo= ac_hi=
19483 break
19484 fi
19485 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 19486fi
ac1cb8d3 19487rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19488 done
19489else
19490 echo "$as_me: failed program was:" >&5
19491sed 's/^/| /' conftest.$ac_ext >&5
19492
19493cat >conftest.$ac_ext <<_ACEOF
19494/* confdefs.h. */
19495_ACEOF
19496cat confdefs.h >>conftest.$ac_ext
19497cat >>conftest.$ac_ext <<_ACEOF
19498/* end confdefs.h. */
19499$ac_includes_default
19500int
19501main ()
19502{
19503static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
19504test_array [0] = 0
19505
19506 ;
19507 return 0;
19508}
19509_ACEOF
19510rm -f conftest.$ac_objext
19511if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19512 (eval $ac_compile) 2>conftest.er1
a848cd7e 19513 ac_status=$?
ac1cb8d3
VS
19514 grep -v '^ *+' conftest.er1 >conftest.err
19515 rm -f conftest.er1
19516 cat conftest.err >&5
a848cd7e
SC
19517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19518 (exit $ac_status); } &&
f10e38c4 19519 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19521 (eval $ac_try) 2>&5
19522 ac_status=$?
19523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19524 (exit $ac_status); }; } &&
19525 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19527 (eval $ac_try) 2>&5
19528 ac_status=$?
19529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19530 (exit $ac_status); }; }; then
19531 ac_hi=-1 ac_mid=-1
19532 while :; do
19533 cat >conftest.$ac_ext <<_ACEOF
19534/* confdefs.h. */
19535_ACEOF
19536cat confdefs.h >>conftest.$ac_ext
19537cat >>conftest.$ac_ext <<_ACEOF
19538/* end confdefs.h. */
19539$ac_includes_default
19540int
19541main ()
19542{
19543static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
19544test_array [0] = 0
19545
19546 ;
19547 return 0;
19548}
19549_ACEOF
19550rm -f conftest.$ac_objext
19551if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19552 (eval $ac_compile) 2>conftest.er1
a848cd7e 19553 ac_status=$?
ac1cb8d3
VS
19554 grep -v '^ *+' conftest.er1 >conftest.err
19555 rm -f conftest.er1
19556 cat conftest.err >&5
a848cd7e
SC
19557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19558 (exit $ac_status); } &&
f10e38c4 19559 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19561 (eval $ac_try) 2>&5
19562 ac_status=$?
19563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19564 (exit $ac_status); }; } &&
19565 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19567 (eval $ac_try) 2>&5
19568 ac_status=$?
19569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19570 (exit $ac_status); }; }; then
19571 ac_lo=$ac_mid; break
19572else
19573 echo "$as_me: failed program was:" >&5
19574sed 's/^/| /' conftest.$ac_ext >&5
19575
19576ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
19577 if test $ac_mid -le $ac_hi; then
19578 ac_lo= ac_hi=
19579 break
19580 fi
19581 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 19582fi
ac1cb8d3 19583rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19584 done
19585else
19586 echo "$as_me: failed program was:" >&5
19587sed 's/^/| /' conftest.$ac_ext >&5
19588
19589ac_lo= ac_hi=
19590fi
ac1cb8d3 19591rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 19592fi
ac1cb8d3 19593rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19594# Binary search between lo and hi bounds.
19595while test "x$ac_lo" != "x$ac_hi"; do
19596 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19597 cat >conftest.$ac_ext <<_ACEOF
19598/* confdefs.h. */
19599_ACEOF
19600cat confdefs.h >>conftest.$ac_ext
19601cat >>conftest.$ac_ext <<_ACEOF
19602/* end confdefs.h. */
19603$ac_includes_default
19604int
19605main ()
19606{
19607static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
19608test_array [0] = 0
19609
19610 ;
19611 return 0;
19612}
19613_ACEOF
19614rm -f conftest.$ac_objext
19615if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19616 (eval $ac_compile) 2>conftest.er1
a848cd7e 19617 ac_status=$?
ac1cb8d3
VS
19618 grep -v '^ *+' conftest.er1 >conftest.err
19619 rm -f conftest.er1
19620 cat conftest.err >&5
a848cd7e
SC
19621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19622 (exit $ac_status); } &&
f10e38c4 19623 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19625 (eval $ac_try) 2>&5
19626 ac_status=$?
19627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19628 (exit $ac_status); }; } &&
19629 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19631 (eval $ac_try) 2>&5
19632 ac_status=$?
19633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19634 (exit $ac_status); }; }; then
19635 ac_hi=$ac_mid
19636else
19637 echo "$as_me: failed program was:" >&5
19638sed 's/^/| /' conftest.$ac_ext >&5
19639
19640ac_lo=`expr '(' $ac_mid ')' + 1`
19641fi
ac1cb8d3 19642rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19643done
19644case $ac_lo in
19645?*) ac_cv_sizeof_long_long=$ac_lo;;
19646'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
19647See \`config.log' for more details." >&5
19648echo "$as_me: error: cannot compute sizeof (long long), 77
19649See \`config.log' for more details." >&2;}
19650 { (exit 1); exit 1; }; } ;;
19651esac
19652else
19653 if test "$cross_compiling" = yes; then
f10e38c4
VZ
19654 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19655echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
19656 { (exit 1); exit 1; }; }
19657else
19658 cat >conftest.$ac_ext <<_ACEOF
19659/* confdefs.h. */
19660_ACEOF
19661cat confdefs.h >>conftest.$ac_ext
19662cat >>conftest.$ac_ext <<_ACEOF
19663/* end confdefs.h. */
19664$ac_includes_default
19665long longval () { return (long) (sizeof (long long)); }
19666unsigned long ulongval () { return (long) (sizeof (long long)); }
19667#include <stdio.h>
19668#include <stdlib.h>
19669int
19670main ()
19671{
19672
19673 FILE *f = fopen ("conftest.val", "w");
19674 if (! f)
19675 exit (1);
19676 if (((long) (sizeof (long long))) < 0)
19677 {
19678 long i = longval ();
19679 if (i != ((long) (sizeof (long long))))
19680 exit (1);
19681 fprintf (f, "%ld\n", i);
19682 }
19683 else
19684 {
19685 unsigned long i = ulongval ();
19686 if (i != ((long) (sizeof (long long))))
19687 exit (1);
19688 fprintf (f, "%lu\n", i);
19689 }
19690 exit (ferror (f) || fclose (f) != 0);
19691
19692 ;
19693 return 0;
19694}
19695_ACEOF
19696rm -f conftest$ac_exeext
19697if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19698 (eval $ac_link) 2>&5
19699 ac_status=$?
19700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19701 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19703 (eval $ac_try) 2>&5
19704 ac_status=$?
19705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19706 (exit $ac_status); }; }; then
19707 ac_cv_sizeof_long_long=`cat conftest.val`
19708else
19709 echo "$as_me: program exited with status $ac_status" >&5
19710echo "$as_me: failed program was:" >&5
19711sed 's/^/| /' conftest.$ac_ext >&5
19712
19713( exit $ac_status )
19714{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
19715See \`config.log' for more details." >&5
19716echo "$as_me: error: cannot compute sizeof (long long), 77
19717See \`config.log' for more details." >&2;}
19718 { (exit 1); exit 1; }; }
19719fi
ac1cb8d3 19720rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19721fi
19722fi
19723rm -f conftest.val
19724else
19725 ac_cv_sizeof_long_long=0
19726fi
19727fi
19728echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
19729echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
19730cat >>confdefs.h <<_ACEOF
19731#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
19732_ACEOF
19733
19734
19735 ;;
19736 *-hp-hpux* )
19737 echo "$as_me:$LINENO: checking for long long" >&5
19738echo $ECHO_N "checking for long long... $ECHO_C" >&6
19739if test "${ac_cv_type_long_long+set}" = set; then
19740 echo $ECHO_N "(cached) $ECHO_C" >&6
19741else
19742 cat >conftest.$ac_ext <<_ACEOF
19743/* confdefs.h. */
19744_ACEOF
19745cat confdefs.h >>conftest.$ac_ext
19746cat >>conftest.$ac_ext <<_ACEOF
19747/* end confdefs.h. */
19748$ac_includes_default
19749int
19750main ()
19751{
19752if ((long long *) 0)
19753 return 0;
19754if (sizeof (long long))
19755 return 0;
19756 ;
19757 return 0;
19758}
19759_ACEOF
19760rm -f conftest.$ac_objext
19761if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19762 (eval $ac_compile) 2>conftest.er1
a848cd7e 19763 ac_status=$?
ac1cb8d3
VS
19764 grep -v '^ *+' conftest.er1 >conftest.err
19765 rm -f conftest.er1
19766 cat conftest.err >&5
a848cd7e
SC
19767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19768 (exit $ac_status); } &&
f10e38c4 19769 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19771 (eval $ac_try) 2>&5
19772 ac_status=$?
19773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19774 (exit $ac_status); }; } &&
19775 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19777 (eval $ac_try) 2>&5
19778 ac_status=$?
19779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19780 (exit $ac_status); }; }; then
19781 ac_cv_type_long_long=yes
19782else
19783 echo "$as_me: failed program was:" >&5
19784sed 's/^/| /' conftest.$ac_ext >&5
19785
19786ac_cv_type_long_long=no
19787fi
ac1cb8d3 19788rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19789fi
19790echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
19791echo "${ECHO_T}$ac_cv_type_long_long" >&6
19792
19793echo "$as_me:$LINENO: checking size of long long" >&5
19794echo $ECHO_N "checking size of long long... $ECHO_C" >&6
19795if test "${ac_cv_sizeof_long_long+set}" = set; then
19796 echo $ECHO_N "(cached) $ECHO_C" >&6
19797else
19798 if test "$ac_cv_type_long_long" = yes; then
19799 # The cast to unsigned long works around a bug in the HP C Compiler
19800 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19801 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19802 # This bug is HP SR number 8606223364.
19803 if test "$cross_compiling" = yes; then
19804 # Depending upon the size, compute the lo and hi bounds.
19805cat >conftest.$ac_ext <<_ACEOF
19806/* confdefs.h. */
19807_ACEOF
19808cat confdefs.h >>conftest.$ac_ext
19809cat >>conftest.$ac_ext <<_ACEOF
19810/* end confdefs.h. */
19811$ac_includes_default
19812int
19813main ()
19814{
19815static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
19816test_array [0] = 0
19817
19818 ;
19819 return 0;
19820}
19821_ACEOF
19822rm -f conftest.$ac_objext
19823if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19824 (eval $ac_compile) 2>conftest.er1
a848cd7e 19825 ac_status=$?
ac1cb8d3
VS
19826 grep -v '^ *+' conftest.er1 >conftest.err
19827 rm -f conftest.er1
19828 cat conftest.err >&5
a848cd7e
SC
19829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19830 (exit $ac_status); } &&
f10e38c4 19831 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19833 (eval $ac_try) 2>&5
19834 ac_status=$?
19835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19836 (exit $ac_status); }; } &&
19837 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19839 (eval $ac_try) 2>&5
19840 ac_status=$?
19841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19842 (exit $ac_status); }; }; then
19843 ac_lo=0 ac_mid=0
19844 while :; do
19845 cat >conftest.$ac_ext <<_ACEOF
19846/* confdefs.h. */
19847_ACEOF
19848cat confdefs.h >>conftest.$ac_ext
19849cat >>conftest.$ac_ext <<_ACEOF
19850/* end confdefs.h. */
19851$ac_includes_default
19852int
19853main ()
19854{
19855static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
19856test_array [0] = 0
19857
19858 ;
19859 return 0;
19860}
19861_ACEOF
19862rm -f conftest.$ac_objext
19863if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19864 (eval $ac_compile) 2>conftest.er1
a848cd7e 19865 ac_status=$?
ac1cb8d3
VS
19866 grep -v '^ *+' conftest.er1 >conftest.err
19867 rm -f conftest.er1
19868 cat conftest.err >&5
a848cd7e
SC
19869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19870 (exit $ac_status); } &&
f10e38c4 19871 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19873 (eval $ac_try) 2>&5
19874 ac_status=$?
19875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19876 (exit $ac_status); }; } &&
19877 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19879 (eval $ac_try) 2>&5
19880 ac_status=$?
19881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19882 (exit $ac_status); }; }; then
19883 ac_hi=$ac_mid; break
19884else
19885 echo "$as_me: failed program was:" >&5
19886sed 's/^/| /' conftest.$ac_ext >&5
19887
19888ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
19889 if test $ac_lo -le $ac_mid; then
19890 ac_lo= ac_hi=
19891 break
19892 fi
19893 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 19894fi
ac1cb8d3 19895rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19896 done
19897else
19898 echo "$as_me: failed program was:" >&5
19899sed 's/^/| /' conftest.$ac_ext >&5
19900
19901cat >conftest.$ac_ext <<_ACEOF
19902/* confdefs.h. */
19903_ACEOF
19904cat confdefs.h >>conftest.$ac_ext
19905cat >>conftest.$ac_ext <<_ACEOF
19906/* end confdefs.h. */
19907$ac_includes_default
19908int
19909main ()
19910{
19911static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
19912test_array [0] = 0
19913
19914 ;
19915 return 0;
19916}
19917_ACEOF
19918rm -f conftest.$ac_objext
19919if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19920 (eval $ac_compile) 2>conftest.er1
a848cd7e 19921 ac_status=$?
ac1cb8d3
VS
19922 grep -v '^ *+' conftest.er1 >conftest.err
19923 rm -f conftest.er1
19924 cat conftest.err >&5
a848cd7e
SC
19925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19926 (exit $ac_status); } &&
f10e38c4 19927 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19929 (eval $ac_try) 2>&5
19930 ac_status=$?
19931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19932 (exit $ac_status); }; } &&
19933 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19935 (eval $ac_try) 2>&5
19936 ac_status=$?
19937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19938 (exit $ac_status); }; }; then
19939 ac_hi=-1 ac_mid=-1
19940 while :; do
19941 cat >conftest.$ac_ext <<_ACEOF
19942/* confdefs.h. */
19943_ACEOF
19944cat confdefs.h >>conftest.$ac_ext
19945cat >>conftest.$ac_ext <<_ACEOF
19946/* end confdefs.h. */
19947$ac_includes_default
19948int
19949main ()
19950{
19951static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
19952test_array [0] = 0
19953
19954 ;
19955 return 0;
19956}
19957_ACEOF
19958rm -f conftest.$ac_objext
19959if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19960 (eval $ac_compile) 2>conftest.er1
a848cd7e 19961 ac_status=$?
ac1cb8d3
VS
19962 grep -v '^ *+' conftest.er1 >conftest.err
19963 rm -f conftest.er1
19964 cat conftest.err >&5
a848cd7e
SC
19965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19966 (exit $ac_status); } &&
f10e38c4 19967 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19969 (eval $ac_try) 2>&5
19970 ac_status=$?
19971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19972 (exit $ac_status); }; } &&
19973 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19975 (eval $ac_try) 2>&5
19976 ac_status=$?
19977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19978 (exit $ac_status); }; }; then
19979 ac_lo=$ac_mid; break
19980else
19981 echo "$as_me: failed program was:" >&5
19982sed 's/^/| /' conftest.$ac_ext >&5
19983
19984ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
19985 if test $ac_mid -le $ac_hi; then
19986 ac_lo= ac_hi=
19987 break
19988 fi
19989 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 19990fi
ac1cb8d3 19991rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19992 done
19993else
19994 echo "$as_me: failed program was:" >&5
19995sed 's/^/| /' conftest.$ac_ext >&5
19996
19997ac_lo= ac_hi=
19998fi
ac1cb8d3 19999rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 20000fi
ac1cb8d3 20001rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20002# Binary search between lo and hi bounds.
20003while test "x$ac_lo" != "x$ac_hi"; do
20004 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20005 cat >conftest.$ac_ext <<_ACEOF
20006/* confdefs.h. */
20007_ACEOF
20008cat confdefs.h >>conftest.$ac_ext
20009cat >>conftest.$ac_ext <<_ACEOF
20010/* end confdefs.h. */
20011$ac_includes_default
20012int
20013main ()
20014{
20015static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20016test_array [0] = 0
20017
20018 ;
20019 return 0;
20020}
20021_ACEOF
20022rm -f conftest.$ac_objext
20023if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20024 (eval $ac_compile) 2>conftest.er1
a848cd7e 20025 ac_status=$?
ac1cb8d3
VS
20026 grep -v '^ *+' conftest.er1 >conftest.err
20027 rm -f conftest.er1
20028 cat conftest.err >&5
a848cd7e
SC
20029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20030 (exit $ac_status); } &&
f10e38c4 20031 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20033 (eval $ac_try) 2>&5
20034 ac_status=$?
20035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20036 (exit $ac_status); }; } &&
20037 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20039 (eval $ac_try) 2>&5
20040 ac_status=$?
20041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20042 (exit $ac_status); }; }; then
20043 ac_hi=$ac_mid
20044else
20045 echo "$as_me: failed program was:" >&5
20046sed 's/^/| /' conftest.$ac_ext >&5
20047
20048ac_lo=`expr '(' $ac_mid ')' + 1`
20049fi
ac1cb8d3 20050rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20051done
20052case $ac_lo in
20053?*) ac_cv_sizeof_long_long=$ac_lo;;
20054'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20055See \`config.log' for more details." >&5
20056echo "$as_me: error: cannot compute sizeof (long long), 77
20057See \`config.log' for more details." >&2;}
20058 { (exit 1); exit 1; }; } ;;
20059esac
20060else
20061 if test "$cross_compiling" = yes; then
f10e38c4
VZ
20062 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
20063echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
20064 { (exit 1); exit 1; }; }
20065else
20066 cat >conftest.$ac_ext <<_ACEOF
20067/* confdefs.h. */
20068_ACEOF
20069cat confdefs.h >>conftest.$ac_ext
20070cat >>conftest.$ac_ext <<_ACEOF
20071/* end confdefs.h. */
20072$ac_includes_default
20073long longval () { return (long) (sizeof (long long)); }
20074unsigned long ulongval () { return (long) (sizeof (long long)); }
20075#include <stdio.h>
20076#include <stdlib.h>
20077int
20078main ()
20079{
20080
20081 FILE *f = fopen ("conftest.val", "w");
20082 if (! f)
20083 exit (1);
20084 if (((long) (sizeof (long long))) < 0)
20085 {
20086 long i = longval ();
20087 if (i != ((long) (sizeof (long long))))
20088 exit (1);
20089 fprintf (f, "%ld\n", i);
20090 }
20091 else
20092 {
20093 unsigned long i = ulongval ();
20094 if (i != ((long) (sizeof (long long))))
20095 exit (1);
20096 fprintf (f, "%lu\n", i);
20097 }
20098 exit (ferror (f) || fclose (f) != 0);
20099
20100 ;
20101 return 0;
20102}
20103_ACEOF
20104rm -f conftest$ac_exeext
20105if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20106 (eval $ac_link) 2>&5
20107 ac_status=$?
20108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20109 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20111 (eval $ac_try) 2>&5
20112 ac_status=$?
20113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20114 (exit $ac_status); }; }; then
20115 ac_cv_sizeof_long_long=`cat conftest.val`
20116else
20117 echo "$as_me: program exited with status $ac_status" >&5
20118echo "$as_me: failed program was:" >&5
20119sed 's/^/| /' conftest.$ac_ext >&5
20120
20121( exit $ac_status )
20122{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20123See \`config.log' for more details." >&5
20124echo "$as_me: error: cannot compute sizeof (long long), 77
20125See \`config.log' for more details." >&2;}
20126 { (exit 1); exit 1; }; }
20127fi
ac1cb8d3 20128rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20129fi
20130fi
20131rm -f conftest.val
20132else
20133 ac_cv_sizeof_long_long=0
20134fi
20135fi
20136echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
20137echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
20138cat >>confdefs.h <<_ACEOF
20139#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
20140_ACEOF
20141
20142
20143 if test "$ac_cv_sizeof_long_long" != "0"; then
c92ad099 20144 CPPFLAGS="-D_INCLUDE_LONGLONG $CPPFLAGS"
a848cd7e
SC
20145 fi
20146 ;;
20147 * )
20148 echo "$as_me:$LINENO: checking for long long" >&5
20149echo $ECHO_N "checking for long long... $ECHO_C" >&6
20150if test "${ac_cv_type_long_long+set}" = set; then
20151 echo $ECHO_N "(cached) $ECHO_C" >&6
20152else
20153 cat >conftest.$ac_ext <<_ACEOF
20154/* confdefs.h. */
20155_ACEOF
20156cat confdefs.h >>conftest.$ac_ext
20157cat >>conftest.$ac_ext <<_ACEOF
20158/* end confdefs.h. */
20159$ac_includes_default
20160int
20161main ()
20162{
20163if ((long long *) 0)
20164 return 0;
20165if (sizeof (long long))
20166 return 0;
20167 ;
20168 return 0;
20169}
20170_ACEOF
20171rm -f conftest.$ac_objext
20172if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20173 (eval $ac_compile) 2>conftest.er1
a848cd7e 20174 ac_status=$?
ac1cb8d3
VS
20175 grep -v '^ *+' conftest.er1 >conftest.err
20176 rm -f conftest.er1
20177 cat conftest.err >&5
a848cd7e
SC
20178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20179 (exit $ac_status); } &&
f10e38c4 20180 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20182 (eval $ac_try) 2>&5
20183 ac_status=$?
20184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20185 (exit $ac_status); }; } &&
20186 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20188 (eval $ac_try) 2>&5
20189 ac_status=$?
20190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20191 (exit $ac_status); }; }; then
20192 ac_cv_type_long_long=yes
20193else
20194 echo "$as_me: failed program was:" >&5
20195sed 's/^/| /' conftest.$ac_ext >&5
20196
20197ac_cv_type_long_long=no
20198fi
ac1cb8d3 20199rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20200fi
20201echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
20202echo "${ECHO_T}$ac_cv_type_long_long" >&6
20203
20204echo "$as_me:$LINENO: checking size of long long" >&5
20205echo $ECHO_N "checking size of long long... $ECHO_C" >&6
20206if test "${ac_cv_sizeof_long_long+set}" = set; then
20207 echo $ECHO_N "(cached) $ECHO_C" >&6
20208else
20209 if test "$ac_cv_type_long_long" = yes; then
20210 # The cast to unsigned long works around a bug in the HP C Compiler
20211 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20212 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20213 # This bug is HP SR number 8606223364.
20214 if test "$cross_compiling" = yes; then
20215 # Depending upon the size, compute the lo and hi bounds.
20216cat >conftest.$ac_ext <<_ACEOF
20217/* confdefs.h. */
20218_ACEOF
20219cat confdefs.h >>conftest.$ac_ext
20220cat >>conftest.$ac_ext <<_ACEOF
20221/* end confdefs.h. */
20222$ac_includes_default
20223int
20224main ()
20225{
20226static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
20227test_array [0] = 0
20228
20229 ;
20230 return 0;
20231}
20232_ACEOF
20233rm -f conftest.$ac_objext
20234if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20235 (eval $ac_compile) 2>conftest.er1
a848cd7e 20236 ac_status=$?
ac1cb8d3
VS
20237 grep -v '^ *+' conftest.er1 >conftest.err
20238 rm -f conftest.er1
20239 cat conftest.err >&5
a848cd7e
SC
20240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20241 (exit $ac_status); } &&
f10e38c4 20242 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20244 (eval $ac_try) 2>&5
20245 ac_status=$?
20246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20247 (exit $ac_status); }; } &&
20248 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20250 (eval $ac_try) 2>&5
20251 ac_status=$?
20252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20253 (exit $ac_status); }; }; then
20254 ac_lo=0 ac_mid=0
20255 while :; do
20256 cat >conftest.$ac_ext <<_ACEOF
20257/* confdefs.h. */
20258_ACEOF
20259cat confdefs.h >>conftest.$ac_ext
20260cat >>conftest.$ac_ext <<_ACEOF
20261/* end confdefs.h. */
20262$ac_includes_default
20263int
20264main ()
20265{
20266static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20267test_array [0] = 0
20268
20269 ;
20270 return 0;
20271}
20272_ACEOF
20273rm -f conftest.$ac_objext
20274if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20275 (eval $ac_compile) 2>conftest.er1
a848cd7e 20276 ac_status=$?
ac1cb8d3
VS
20277 grep -v '^ *+' conftest.er1 >conftest.err
20278 rm -f conftest.er1
20279 cat conftest.err >&5
a848cd7e
SC
20280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20281 (exit $ac_status); } &&
f10e38c4 20282 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20284 (eval $ac_try) 2>&5
20285 ac_status=$?
20286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20287 (exit $ac_status); }; } &&
20288 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20290 (eval $ac_try) 2>&5
20291 ac_status=$?
20292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20293 (exit $ac_status); }; }; then
20294 ac_hi=$ac_mid; break
20295else
20296 echo "$as_me: failed program was:" >&5
20297sed 's/^/| /' conftest.$ac_ext >&5
20298
20299ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
20300 if test $ac_lo -le $ac_mid; then
20301 ac_lo= ac_hi=
20302 break
20303 fi
20304 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 20305fi
ac1cb8d3 20306rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20307 done
20308else
20309 echo "$as_me: failed program was:" >&5
20310sed 's/^/| /' conftest.$ac_ext >&5
20311
20312cat >conftest.$ac_ext <<_ACEOF
20313/* confdefs.h. */
20314_ACEOF
20315cat confdefs.h >>conftest.$ac_ext
20316cat >>conftest.$ac_ext <<_ACEOF
20317/* end confdefs.h. */
20318$ac_includes_default
20319int
20320main ()
20321{
20322static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
20323test_array [0] = 0
20324
20325 ;
20326 return 0;
20327}
20328_ACEOF
20329rm -f conftest.$ac_objext
20330if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20331 (eval $ac_compile) 2>conftest.er1
a848cd7e 20332 ac_status=$?
ac1cb8d3
VS
20333 grep -v '^ *+' conftest.er1 >conftest.err
20334 rm -f conftest.er1
20335 cat conftest.err >&5
a848cd7e
SC
20336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20337 (exit $ac_status); } &&
f10e38c4 20338 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20340 (eval $ac_try) 2>&5
20341 ac_status=$?
20342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20343 (exit $ac_status); }; } &&
20344 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20346 (eval $ac_try) 2>&5
20347 ac_status=$?
20348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20349 (exit $ac_status); }; }; then
20350 ac_hi=-1 ac_mid=-1
20351 while :; do
20352 cat >conftest.$ac_ext <<_ACEOF
20353/* confdefs.h. */
20354_ACEOF
20355cat confdefs.h >>conftest.$ac_ext
20356cat >>conftest.$ac_ext <<_ACEOF
20357/* end confdefs.h. */
20358$ac_includes_default
20359int
20360main ()
20361{
20362static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
20363test_array [0] = 0
20364
20365 ;
20366 return 0;
20367}
20368_ACEOF
20369rm -f conftest.$ac_objext
20370if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20371 (eval $ac_compile) 2>conftest.er1
a848cd7e 20372 ac_status=$?
ac1cb8d3
VS
20373 grep -v '^ *+' conftest.er1 >conftest.err
20374 rm -f conftest.er1
20375 cat conftest.err >&5
a848cd7e
SC
20376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20377 (exit $ac_status); } &&
f10e38c4 20378 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20380 (eval $ac_try) 2>&5
20381 ac_status=$?
20382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20383 (exit $ac_status); }; } &&
20384 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20386 (eval $ac_try) 2>&5
20387 ac_status=$?
20388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20389 (exit $ac_status); }; }; then
20390 ac_lo=$ac_mid; break
20391else
20392 echo "$as_me: failed program was:" >&5
20393sed 's/^/| /' conftest.$ac_ext >&5
20394
20395ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
20396 if test $ac_mid -le $ac_hi; then
20397 ac_lo= ac_hi=
20398 break
20399 fi
20400 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 20401fi
ac1cb8d3 20402rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20403 done
20404else
20405 echo "$as_me: failed program was:" >&5
20406sed 's/^/| /' conftest.$ac_ext >&5
20407
20408ac_lo= ac_hi=
20409fi
ac1cb8d3 20410rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 20411fi
ac1cb8d3 20412rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20413# Binary search between lo and hi bounds.
20414while test "x$ac_lo" != "x$ac_hi"; do
20415 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20416 cat >conftest.$ac_ext <<_ACEOF
20417/* confdefs.h. */
20418_ACEOF
20419cat confdefs.h >>conftest.$ac_ext
20420cat >>conftest.$ac_ext <<_ACEOF
20421/* end confdefs.h. */
20422$ac_includes_default
20423int
20424main ()
20425{
20426static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20427test_array [0] = 0
20428
20429 ;
20430 return 0;
20431}
20432_ACEOF
20433rm -f conftest.$ac_objext
20434if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20435 (eval $ac_compile) 2>conftest.er1
a848cd7e 20436 ac_status=$?
ac1cb8d3
VS
20437 grep -v '^ *+' conftest.er1 >conftest.err
20438 rm -f conftest.er1
20439 cat conftest.err >&5
a848cd7e
SC
20440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20441 (exit $ac_status); } &&
f10e38c4 20442 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
20448 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20450 (eval $ac_try) 2>&5
20451 ac_status=$?
20452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20453 (exit $ac_status); }; }; then
20454 ac_hi=$ac_mid
20455else
20456 echo "$as_me: failed program was:" >&5
20457sed 's/^/| /' conftest.$ac_ext >&5
20458
20459ac_lo=`expr '(' $ac_mid ')' + 1`
20460fi
ac1cb8d3 20461rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20462done
20463case $ac_lo in
20464?*) ac_cv_sizeof_long_long=$ac_lo;;
20465'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20466See \`config.log' for more details." >&5
20467echo "$as_me: error: cannot compute sizeof (long long), 77
20468See \`config.log' for more details." >&2;}
20469 { (exit 1); exit 1; }; } ;;
20470esac
20471else
20472 if test "$cross_compiling" = yes; then
f10e38c4
VZ
20473 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
20474echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
20475 { (exit 1); exit 1; }; }
20476else
20477 cat >conftest.$ac_ext <<_ACEOF
20478/* confdefs.h. */
20479_ACEOF
20480cat confdefs.h >>conftest.$ac_ext
20481cat >>conftest.$ac_ext <<_ACEOF
20482/* end confdefs.h. */
20483$ac_includes_default
20484long longval () { return (long) (sizeof (long long)); }
20485unsigned long ulongval () { return (long) (sizeof (long long)); }
20486#include <stdio.h>
20487#include <stdlib.h>
20488int
20489main ()
20490{
20491
20492 FILE *f = fopen ("conftest.val", "w");
20493 if (! f)
20494 exit (1);
20495 if (((long) (sizeof (long long))) < 0)
20496 {
20497 long i = longval ();
20498 if (i != ((long) (sizeof (long long))))
20499 exit (1);
20500 fprintf (f, "%ld\n", i);
20501 }
20502 else
20503 {
20504 unsigned long i = ulongval ();
20505 if (i != ((long) (sizeof (long long))))
20506 exit (1);
20507 fprintf (f, "%lu\n", i);
20508 }
20509 exit (ferror (f) || fclose (f) != 0);
20510
20511 ;
20512 return 0;
20513}
20514_ACEOF
20515rm -f conftest$ac_exeext
20516if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20517 (eval $ac_link) 2>&5
20518 ac_status=$?
20519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20520 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20522 (eval $ac_try) 2>&5
20523 ac_status=$?
20524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20525 (exit $ac_status); }; }; then
20526 ac_cv_sizeof_long_long=`cat conftest.val`
20527else
20528 echo "$as_me: program exited with status $ac_status" >&5
20529echo "$as_me: failed program was:" >&5
20530sed 's/^/| /' conftest.$ac_ext >&5
20531
20532( exit $ac_status )
20533{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20534See \`config.log' for more details." >&5
20535echo "$as_me: error: cannot compute sizeof (long long), 77
20536See \`config.log' for more details." >&2;}
20537 { (exit 1); exit 1; }; }
20538fi
ac1cb8d3 20539rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20540fi
20541fi
20542rm -f conftest.val
20543else
20544 ac_cv_sizeof_long_long=0
20545fi
20546fi
20547echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
20548echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
20549cat >>confdefs.h <<_ACEOF
20550#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
20551_ACEOF
20552
20553
20554esac
20555
238ecede
MW
20556echo "$as_me:$LINENO: checking for wchar_t" >&5
20557echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
20558if test "${ac_cv_type_wchar_t+set}" = set; then
20559 echo $ECHO_N "(cached) $ECHO_C" >&6
20560else
20561 cat >conftest.$ac_ext <<_ACEOF
20562/* confdefs.h. */
20563_ACEOF
20564cat confdefs.h >>conftest.$ac_ext
20565cat >>conftest.$ac_ext <<_ACEOF
20566/* end confdefs.h. */
20567
83d8eb47
MW
20568 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
20569 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
20570 # error "fake wchar_t"
20571 #endif
20572 #ifdef HAVE_WCHAR_H
20573 # ifdef __CYGWIN__
20574 # include <stddef.h>
20575 # endif
20576 # include <wchar.h>
20577 #endif
20578 #ifdef HAVE_STDLIB_H
20579 # include <stdlib.h>
20580 #endif
20581 #include <stdio.h>
20582
20583
20584
20585int
20586main ()
20587{
20588if ((wchar_t *) 0)
20589 return 0;
20590if (sizeof (wchar_t))
20591 return 0;
20592 ;
20593 return 0;
20594}
20595_ACEOF
20596rm -f conftest.$ac_objext
20597if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20598 (eval $ac_compile) 2>conftest.er1
20599 ac_status=$?
20600 grep -v '^ *+' conftest.er1 >conftest.err
20601 rm -f conftest.er1
20602 cat conftest.err >&5
20603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20604 (exit $ac_status); } &&
f10e38c4 20605 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
20606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20607 (eval $ac_try) 2>&5
20608 ac_status=$?
20609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20610 (exit $ac_status); }; } &&
20611 { ac_try='test -s conftest.$ac_objext'
20612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20613 (eval $ac_try) 2>&5
20614 ac_status=$?
20615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20616 (exit $ac_status); }; }; then
20617 ac_cv_type_wchar_t=yes
20618else
20619 echo "$as_me: failed program was:" >&5
20620sed 's/^/| /' conftest.$ac_ext >&5
20621
20622ac_cv_type_wchar_t=no
20623fi
20624rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20625fi
20626echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
20627echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
20628
a848cd7e
SC
20629echo "$as_me:$LINENO: checking size of wchar_t" >&5
20630echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
238ecede 20631if test "${ac_cv_sizeof_wchar_t+set}" = set; then
a848cd7e
SC
20632 echo $ECHO_N "(cached) $ECHO_C" >&6
20633else
238ecede
MW
20634 if test "$ac_cv_type_wchar_t" = yes; then
20635 # The cast to unsigned long works around a bug in the HP C Compiler
20636 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20637 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20638 # This bug is HP SR number 8606223364.
20639 if test "$cross_compiling" = yes; then
20640 # Depending upon the size, compute the lo and hi bounds.
20641cat >conftest.$ac_ext <<_ACEOF
20642/* confdefs.h. */
20643_ACEOF
20644cat confdefs.h >>conftest.$ac_ext
20645cat >>conftest.$ac_ext <<_ACEOF
20646/* end confdefs.h. */
20647
83d8eb47
MW
20648 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
20649 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
20650 # error "fake wchar_t"
20651 #endif
20652 #ifdef HAVE_WCHAR_H
20653 # ifdef __CYGWIN__
20654 # include <stddef.h>
20655 # endif
20656 # include <wchar.h>
20657 #endif
20658 #ifdef HAVE_STDLIB_H
20659 # include <stdlib.h>
20660 #endif
20661 #include <stdio.h>
20662
20663
20664
20665int
20666main ()
20667{
20668static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
20669test_array [0] = 0
20670
20671 ;
20672 return 0;
20673}
20674_ACEOF
20675rm -f conftest.$ac_objext
20676if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20677 (eval $ac_compile) 2>conftest.er1
20678 ac_status=$?
20679 grep -v '^ *+' conftest.er1 >conftest.err
20680 rm -f conftest.er1
20681 cat conftest.err >&5
20682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20683 (exit $ac_status); } &&
f10e38c4 20684 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
20685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20686 (eval $ac_try) 2>&5
20687 ac_status=$?
20688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20689 (exit $ac_status); }; } &&
20690 { ac_try='test -s conftest.$ac_objext'
20691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20692 (eval $ac_try) 2>&5
20693 ac_status=$?
20694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20695 (exit $ac_status); }; }; then
20696 ac_lo=0 ac_mid=0
20697 while :; do
20698 cat >conftest.$ac_ext <<_ACEOF
20699/* confdefs.h. */
20700_ACEOF
20701cat confdefs.h >>conftest.$ac_ext
20702cat >>conftest.$ac_ext <<_ACEOF
20703/* end confdefs.h. */
20704
83d8eb47
MW
20705 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
20706 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
20707 # error "fake wchar_t"
20708 #endif
20709 #ifdef HAVE_WCHAR_H
20710 # ifdef __CYGWIN__
20711 # include <stddef.h>
20712 # endif
20713 # include <wchar.h>
20714 #endif
20715 #ifdef HAVE_STDLIB_H
20716 # include <stdlib.h>
20717 #endif
20718 #include <stdio.h>
20719
20720
20721
20722int
20723main ()
20724{
20725static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
20726test_array [0] = 0
20727
20728 ;
20729 return 0;
20730}
20731_ACEOF
20732rm -f conftest.$ac_objext
20733if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20734 (eval $ac_compile) 2>conftest.er1
20735 ac_status=$?
20736 grep -v '^ *+' conftest.er1 >conftest.err
20737 rm -f conftest.er1
20738 cat conftest.err >&5
20739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20740 (exit $ac_status); } &&
f10e38c4 20741 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
20742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20743 (eval $ac_try) 2>&5
20744 ac_status=$?
20745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20746 (exit $ac_status); }; } &&
20747 { ac_try='test -s conftest.$ac_objext'
20748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20749 (eval $ac_try) 2>&5
20750 ac_status=$?
20751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20752 (exit $ac_status); }; }; then
20753 ac_hi=$ac_mid; break
20754else
20755 echo "$as_me: failed program was:" >&5
20756sed 's/^/| /' conftest.$ac_ext >&5
20757
20758ac_lo=`expr $ac_mid + 1`
20759 if test $ac_lo -le $ac_mid; then
20760 ac_lo= ac_hi=
20761 break
20762 fi
20763 ac_mid=`expr 2 '*' $ac_mid + 1`
20764fi
20765rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20766 done
20767else
20768 echo "$as_me: failed program was:" >&5
20769sed 's/^/| /' conftest.$ac_ext >&5
20770
20771cat >conftest.$ac_ext <<_ACEOF
20772/* confdefs.h. */
20773_ACEOF
20774cat confdefs.h >>conftest.$ac_ext
20775cat >>conftest.$ac_ext <<_ACEOF
20776/* end confdefs.h. */
20777
83d8eb47
MW
20778 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
20779 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
20780 # error "fake wchar_t"
20781 #endif
20782 #ifdef HAVE_WCHAR_H
20783 # ifdef __CYGWIN__
20784 # include <stddef.h>
20785 # endif
20786 # include <wchar.h>
20787 #endif
20788 #ifdef HAVE_STDLIB_H
20789 # include <stdlib.h>
20790 #endif
20791 #include <stdio.h>
20792
20793
20794
20795int
20796main ()
20797{
20798static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
20799test_array [0] = 0
20800
20801 ;
20802 return 0;
20803}
20804_ACEOF
20805rm -f conftest.$ac_objext
20806if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20807 (eval $ac_compile) 2>conftest.er1
20808 ac_status=$?
20809 grep -v '^ *+' conftest.er1 >conftest.err
20810 rm -f conftest.er1
20811 cat conftest.err >&5
20812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20813 (exit $ac_status); } &&
f10e38c4 20814 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
20815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20816 (eval $ac_try) 2>&5
20817 ac_status=$?
20818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20819 (exit $ac_status); }; } &&
20820 { ac_try='test -s conftest.$ac_objext'
20821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20822 (eval $ac_try) 2>&5
20823 ac_status=$?
20824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20825 (exit $ac_status); }; }; then
20826 ac_hi=-1 ac_mid=-1
20827 while :; do
20828 cat >conftest.$ac_ext <<_ACEOF
20829/* confdefs.h. */
20830_ACEOF
20831cat confdefs.h >>conftest.$ac_ext
20832cat >>conftest.$ac_ext <<_ACEOF
20833/* end confdefs.h. */
20834
83d8eb47
MW
20835 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
20836 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
20837 # error "fake wchar_t"
20838 #endif
20839 #ifdef HAVE_WCHAR_H
20840 # ifdef __CYGWIN__
20841 # include <stddef.h>
20842 # endif
20843 # include <wchar.h>
20844 #endif
20845 #ifdef HAVE_STDLIB_H
20846 # include <stdlib.h>
20847 #endif
20848 #include <stdio.h>
20849
20850
20851
20852int
20853main ()
20854{
20855static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
20856test_array [0] = 0
20857
20858 ;
20859 return 0;
20860}
20861_ACEOF
20862rm -f conftest.$ac_objext
20863if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20864 (eval $ac_compile) 2>conftest.er1
20865 ac_status=$?
20866 grep -v '^ *+' conftest.er1 >conftest.err
20867 rm -f conftest.er1
20868 cat conftest.err >&5
20869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20870 (exit $ac_status); } &&
f10e38c4 20871 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
20872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20873 (eval $ac_try) 2>&5
20874 ac_status=$?
20875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20876 (exit $ac_status); }; } &&
20877 { ac_try='test -s conftest.$ac_objext'
20878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20879 (eval $ac_try) 2>&5
20880 ac_status=$?
20881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20882 (exit $ac_status); }; }; then
20883 ac_lo=$ac_mid; break
20884else
20885 echo "$as_me: failed program was:" >&5
20886sed 's/^/| /' conftest.$ac_ext >&5
20887
20888ac_hi=`expr '(' $ac_mid ')' - 1`
20889 if test $ac_mid -le $ac_hi; then
20890 ac_lo= ac_hi=
20891 break
20892 fi
20893 ac_mid=`expr 2 '*' $ac_mid`
20894fi
20895rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20896 done
20897else
20898 echo "$as_me: failed program was:" >&5
20899sed 's/^/| /' conftest.$ac_ext >&5
20900
20901ac_lo= ac_hi=
20902fi
20903rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20904fi
20905rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20906# Binary search between lo and hi bounds.
20907while test "x$ac_lo" != "x$ac_hi"; do
20908 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20909 cat >conftest.$ac_ext <<_ACEOF
20910/* confdefs.h. */
20911_ACEOF
20912cat confdefs.h >>conftest.$ac_ext
20913cat >>conftest.$ac_ext <<_ACEOF
20914/* end confdefs.h. */
20915
83d8eb47
MW
20916 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
20917 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
20918 # error "fake wchar_t"
20919 #endif
20920 #ifdef HAVE_WCHAR_H
20921 # ifdef __CYGWIN__
20922 # include <stddef.h>
20923 # endif
20924 # include <wchar.h>
20925 #endif
20926 #ifdef HAVE_STDLIB_H
20927 # include <stdlib.h>
20928 #endif
20929 #include <stdio.h>
a848cd7e 20930
a848cd7e 20931
a848cd7e 20932
238ecede
MW
20933int
20934main ()
20935{
20936static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
20937test_array [0] = 0
a848cd7e 20938
238ecede
MW
20939 ;
20940 return 0;
20941}
20942_ACEOF
20943rm -f conftest.$ac_objext
20944if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20945 (eval $ac_compile) 2>conftest.er1
20946 ac_status=$?
20947 grep -v '^ *+' conftest.er1 >conftest.err
20948 rm -f conftest.er1
20949 cat conftest.err >&5
20950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20951 (exit $ac_status); } &&
f10e38c4 20952 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
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); }; } &&
20958 { ac_try='test -s conftest.$ac_objext'
20959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20960 (eval $ac_try) 2>&5
20961 ac_status=$?
20962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20963 (exit $ac_status); }; }; then
20964 ac_hi=$ac_mid
20965else
20966 echo "$as_me: failed program was:" >&5
20967sed 's/^/| /' conftest.$ac_ext >&5
20968
20969ac_lo=`expr '(' $ac_mid ')' + 1`
20970fi
20971rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20972done
20973case $ac_lo in
20974?*) ac_cv_sizeof_wchar_t=$ac_lo;;
20975'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
20976See \`config.log' for more details." >&5
20977echo "$as_me: error: cannot compute sizeof (wchar_t), 77
20978See \`config.log' for more details." >&2;}
20979 { (exit 1); exit 1; }; } ;;
20980esac
20981else
20982 if test "$cross_compiling" = yes; then
f10e38c4
VZ
20983 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
20984echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
238ecede 20985 { (exit 1); exit 1; }; }
a848cd7e
SC
20986else
20987 cat >conftest.$ac_ext <<_ACEOF
20988/* confdefs.h. */
20989_ACEOF
20990cat confdefs.h >>conftest.$ac_ext
20991cat >>conftest.$ac_ext <<_ACEOF
20992/* end confdefs.h. */
20993
83d8eb47
MW
20994 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
20995 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
20996 # error "fake wchar_t"
20997 #endif
20998 #ifdef HAVE_WCHAR_H
20999 # ifdef __CYGWIN__
21000 # include <stddef.h>
21001 # endif
21002 # include <wchar.h>
21003 #endif
21004 #ifdef HAVE_STDLIB_H
21005 # include <stdlib.h>
21006 #endif
21007 #include <stdio.h>
21008
21009
21010
21011long longval () { return (long) (sizeof (wchar_t)); }
21012unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
21013#include <stdio.h>
21014#include <stdlib.h>
21015int
21016main ()
21017{
a848cd7e 21018
238ecede
MW
21019 FILE *f = fopen ("conftest.val", "w");
21020 if (! f)
21021 exit (1);
21022 if (((long) (sizeof (wchar_t))) < 0)
21023 {
21024 long i = longval ();
21025 if (i != ((long) (sizeof (wchar_t))))
21026 exit (1);
21027 fprintf (f, "%ld\n", i);
21028 }
21029 else
21030 {
21031 unsigned long i = ulongval ();
21032 if (i != ((long) (sizeof (wchar_t))))
21033 exit (1);
21034 fprintf (f, "%lu\n", i);
21035 }
21036 exit (ferror (f) || fclose (f) != 0);
21037
21038 ;
21039 return 0;
21040}
a848cd7e
SC
21041_ACEOF
21042rm -f conftest$ac_exeext
21043if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21044 (eval $ac_link) 2>&5
21045 ac_status=$?
21046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21047 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21049 (eval $ac_try) 2>&5
21050 ac_status=$?
21051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21052 (exit $ac_status); }; }; then
238ecede 21053 ac_cv_sizeof_wchar_t=`cat conftest.val`
a848cd7e
SC
21054else
21055 echo "$as_me: program exited with status $ac_status" >&5
21056echo "$as_me: failed program was:" >&5
21057sed 's/^/| /' conftest.$ac_ext >&5
21058
21059( exit $ac_status )
238ecede
MW
21060{ { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
21061See \`config.log' for more details." >&5
21062echo "$as_me: error: cannot compute sizeof (wchar_t), 77
21063See \`config.log' for more details." >&2;}
21064 { (exit 1); exit 1; }; }
a848cd7e 21065fi
ac1cb8d3 21066rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 21067fi
a848cd7e 21068fi
238ecede
MW
21069rm -f conftest.val
21070else
21071 ac_cv_sizeof_wchar_t=0
21072fi
21073fi
21074echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
21075echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
a848cd7e 21076cat >>confdefs.h <<_ACEOF
238ecede 21077#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
a848cd7e
SC
21078_ACEOF
21079
21080
47a7e797
MW
21081if test "$ac_cv_sizeof_wchar_t" != "0"; then
21082 wxUSE_WCHAR_T=yes
21083else
21084 wxUSE_WCHAR_T=no
21085fi
238ecede 21086
ba3d13e1
VZ
21087echo "$as_me:$LINENO: checking for va_copy" >&5
21088echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
21089if test "${wx_cv_func_va_copy+set}" = set; then
21090 echo $ECHO_N "(cached) $ECHO_C" >&6
21091else
21092
21093 cat >conftest.$ac_ext <<_ACEOF
21094
21095 #include <stdarg.h>
21096 void foo(char *f, ...)
21097 {
21098 va_list ap1, ap2;
21099 va_start(ap1, f);
21100 va_copy(ap2, ap1);
21101 va_end(ap2);
21102 va_end(ap1);
21103 }
5886b072
VZ
21104 int main()
21105 {
b902e639
VZ
21106 foo("hi", 17);
21107 return 0;
5886b072 21108 }
ba3d13e1
VZ
21109_ACEOF
21110rm -f conftest.$ac_objext conftest$ac_exeext
21111if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21112 (eval $ac_link) 2>conftest.er1
21113 ac_status=$?
21114 grep -v '^ *+' conftest.er1 >conftest.err
21115 rm -f conftest.er1
21116 cat conftest.err >&5
21117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21118 (exit $ac_status); } &&
f10e38c4 21119 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ba3d13e1
VZ
21120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21121 (eval $ac_try) 2>&5
21122 ac_status=$?
21123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21124 (exit $ac_status); }; } &&
21125 { ac_try='test -s conftest$ac_exeext'
21126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21127 (eval $ac_try) 2>&5
21128 ac_status=$?
21129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21130 (exit $ac_status); }; }; then
21131 wx_cv_func_va_copy=yes
21132else
21133 echo "$as_me: failed program was:" >&5
21134sed 's/^/| /' conftest.$ac_ext >&5
21135
21136wx_cv_func_va_copy=no
21137
21138fi
21139rm -f conftest.err conftest.$ac_objext \
21140 conftest$ac_exeext conftest.$ac_ext
21141
21142
21143fi
21144echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
21145echo "${ECHO_T}$wx_cv_func_va_copy" >&6
21146
21147if test $wx_cv_func_va_copy = "yes"; then
21148 cat >>confdefs.h <<\_ACEOF
21149#define HAVE_VA_COPY 1
21150_ACEOF
21151
21152else
21153 echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
21154echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6
21155if test "${wx_cv_type_va_list_lvalue+set}" = set; then
21156 echo $ECHO_N "(cached) $ECHO_C" >&6
21157else
21158
21159 if test "$cross_compiling" = yes; then
21160 wx_cv_type_va_list_lvalue=yes
21161
21162else
21163 cat >conftest.$ac_ext <<_ACEOF
21164
21165 #include <stdarg.h>
21166 int foo(char *f, ...)
21167 {
21168 va_list ap1, ap2;
21169 va_start(ap1, f);
21170 ap2 = ap1;
21171 if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
21172 return 1;
21173 va_end(ap2);
21174 va_end(ap1);
21175 return 0;
21176 }
21177 int main()
21178 {
21179 return foo("hi", 17);
21180 }
21181_ACEOF
21182rm -f conftest$ac_exeext
21183if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21184 (eval $ac_link) 2>&5
21185 ac_status=$?
21186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21187 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21189 (eval $ac_try) 2>&5
21190 ac_status=$?
21191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21192 (exit $ac_status); }; }; then
21193 wx_cv_type_va_list_lvalue=yes
21194else
21195 echo "$as_me: program exited with status $ac_status" >&5
21196echo "$as_me: failed program was:" >&5
21197sed 's/^/| /' conftest.$ac_ext >&5
21198
21199( exit $ac_status )
21200wx_cv_type_va_list_lvalue=no
21201fi
21202rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21203fi
21204
21205
21206fi
21207echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
21208echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6
21209
21210 if test $wx_cv_type_va_list_lvalue != "yes"; then
21211 cat >>confdefs.h <<\_ACEOF
21212#define VA_LIST_IS_ARRAY 1
21213_ACEOF
21214
21215 fi
21216fi
21217
a848cd7e
SC
21218# Check whether --enable-largefile or --disable-largefile was given.
21219if test "${enable_largefile+set}" = set; then
21220 enableval="$enable_largefile"
21221
21222fi;
21223if test "$enable_largefile" != no; then
21224 wx_largefile=no
21225
21226 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
21227echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
21228if test "${ac_cv_sys_file_offset_bits+set}" = set; then
21229 echo $ECHO_N "(cached) $ECHO_C" >&6
21230else
21231
21232 cat >conftest.$ac_ext <<_ACEOF
21233/* confdefs.h. */
21234_ACEOF
21235cat confdefs.h >>conftest.$ac_ext
21236cat >>conftest.$ac_ext <<_ACEOF
21237/* end confdefs.h. */
21238#define _FILE_OFFSET_BITS 64
21239 #include <sys/types.h>
21240int
21241main ()
21242{
21243typedef struct {
21244 unsigned int field: sizeof(off_t) == 8;
21245} wxlf;
21246
21247 ;
21248 return 0;
21249}
21250_ACEOF
21251rm -f conftest.$ac_objext
21252if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21253 (eval $ac_compile) 2>conftest.er1
a848cd7e 21254 ac_status=$?
ac1cb8d3
VS
21255 grep -v '^ *+' conftest.er1 >conftest.err
21256 rm -f conftest.er1
21257 cat conftest.err >&5
a848cd7e
SC
21258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21259 (exit $ac_status); } &&
f10e38c4 21260 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21262 (eval $ac_try) 2>&5
21263 ac_status=$?
21264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21265 (exit $ac_status); }; } &&
21266 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21268 (eval $ac_try) 2>&5
21269 ac_status=$?
21270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21271 (exit $ac_status); }; }; then
21272 ac_cv_sys_file_offset_bits=64
21273else
21274 echo "$as_me: failed program was:" >&5
21275sed 's/^/| /' conftest.$ac_ext >&5
21276
21277ac_cv_sys_file_offset_bits=no
21278fi
ac1cb8d3 21279rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21280
21281
21282fi
21283echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
21284echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
21285
21286 if test "$ac_cv_sys_file_offset_bits" != no; then
21287 wx_largefile=yes
21288 cat >>confdefs.h <<_ACEOF
21289#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
21290_ACEOF
21291
21292 fi
21293
21294 if test "x$wx_largefile" != "xyes"; then
21295
21296 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
21297echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
21298if test "${ac_cv_sys_large_files+set}" = set; then
21299 echo $ECHO_N "(cached) $ECHO_C" >&6
21300else
21301
21302 cat >conftest.$ac_ext <<_ACEOF
21303/* confdefs.h. */
21304_ACEOF
21305cat confdefs.h >>conftest.$ac_ext
21306cat >>conftest.$ac_ext <<_ACEOF
21307/* end confdefs.h. */
21308#define _LARGE_FILES 1
21309 #include <sys/types.h>
21310int
21311main ()
21312{
21313typedef struct {
21314 unsigned int field: sizeof(off_t) == 8;
21315} wxlf;
21316
21317 ;
21318 return 0;
21319}
21320_ACEOF
21321rm -f conftest.$ac_objext
21322if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21323 (eval $ac_compile) 2>conftest.er1
a848cd7e 21324 ac_status=$?
ac1cb8d3
VS
21325 grep -v '^ *+' conftest.er1 >conftest.err
21326 rm -f conftest.er1
21327 cat conftest.err >&5
a848cd7e
SC
21328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21329 (exit $ac_status); } &&
f10e38c4 21330 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21332 (eval $ac_try) 2>&5
21333 ac_status=$?
21334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21335 (exit $ac_status); }; } &&
21336 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21338 (eval $ac_try) 2>&5
21339 ac_status=$?
21340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21341 (exit $ac_status); }; }; then
21342 ac_cv_sys_large_files=1
21343else
21344 echo "$as_me: failed program was:" >&5
21345sed 's/^/| /' conftest.$ac_ext >&5
21346
21347ac_cv_sys_large_files=no
21348fi
ac1cb8d3 21349rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21350
21351
21352fi
21353echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
21354echo "${ECHO_T}$ac_cv_sys_large_files" >&6
21355
21356 if test "$ac_cv_sys_large_files" != no; then
21357 wx_largefile=yes
21358 cat >>confdefs.h <<_ACEOF
21359#define _LARGE_FILES $ac_cv_sys_large_files
21360_ACEOF
21361
21362 fi
21363
21364 fi
21365
21366 echo "$as_me:$LINENO: checking if large file support is available" >&5
21367echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
21368 if test "x$wx_largefile" = "xyes"; then
21369 cat >>confdefs.h <<\_ACEOF
21370#define HAVE_LARGEFILE_SUPPORT 1
21371_ACEOF
21372
21373 fi
21374 echo "$as_me:$LINENO: result: $wx_largefile" >&5
21375echo "${ECHO_T}$wx_largefile" >&6
21376fi
21377
5b674b9d
DE
21378
21379if test "x$wx_largefile" = "xyes"; then
21380 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
5ff751d6 21381 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
00421666
MW
21382
21383 if test "$USE_HPUX" = 1 -a "$GXX" = "yes"; then
21384 echo "$as_me:$LINENO: checking if -D__STDC_EXT__ is required" >&5
21385echo $ECHO_N "checking if -D__STDC_EXT__ is required... $ECHO_C" >&6
21386if test "${wx_cv_STDC_EXT_required+set}" = set; then
21387 echo $ECHO_N "(cached) $ECHO_C" >&6
21388else
21389
00421666
MW
21390 ac_ext=cc
21391ac_cpp='$CXXCPP $CPPFLAGS'
21392ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21393ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21394ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21395
21396 cat >conftest.$ac_ext <<_ACEOF
21397/* confdefs.h. */
21398_ACEOF
21399cat confdefs.h >>conftest.$ac_ext
21400cat >>conftest.$ac_ext <<_ACEOF
21401/* end confdefs.h. */
21402
21403int
21404main ()
21405{
21406
21407 #ifndef __STDC_EXT__
21408 choke me
21409 #endif
21410
21411 ;
21412 return 0;
21413}
21414_ACEOF
21415rm -f conftest.$ac_objext
21416if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21417 (eval $ac_compile) 2>conftest.er1
21418 ac_status=$?
21419 grep -v '^ *+' conftest.er1 >conftest.err
21420 rm -f conftest.er1
21421 cat conftest.err >&5
21422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21423 (exit $ac_status); } &&
f10e38c4 21424 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
00421666
MW
21425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21426 (eval $ac_try) 2>&5
21427 ac_status=$?
21428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21429 (exit $ac_status); }; } &&
21430 { ac_try='test -s conftest.$ac_objext'
21431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21432 (eval $ac_try) 2>&5
21433 ac_status=$?
21434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21435 (exit $ac_status); }; }; then
21436 wx_cv_STDC_EXT_required=no
21437else
21438 echo "$as_me: failed program was:" >&5
21439sed 's/^/| /' conftest.$ac_ext >&5
21440
21441wx_cv_STDC_EXT_required=yes
21442
21443fi
21444rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21445 ac_ext=c
21446ac_cpp='$CPP $CPPFLAGS'
21447ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21448ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21449ac_compiler_gnu=$ac_cv_c_compiler_gnu
21450
21451
21452
21453fi
21454echo "$as_me:$LINENO: result: $wx_cv_STDC_EXT_required" >&5
21455echo "${ECHO_T}$wx_cv_STDC_EXT_required" >&6
21456 if test "x$wx_cv_STDC_EXT_required" = "xyes"; then
5ff751d6 21457 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -D__STDC_EXT__"
00421666
MW
21458 fi
21459 fi
5b674b9d 21460 else
5ff751d6 21461 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGE_FILES"
5b674b9d
DE
21462 fi
21463 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
5294a27e
VZ
21464echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
21465if test "${ac_cv_sys_largefile_source+set}" = set; then
21466 echo $ECHO_N "(cached) $ECHO_C" >&6
21467else
21468 while :; do
21469 ac_cv_sys_largefile_source=no
21470 cat >conftest.$ac_ext <<_ACEOF
21471/* confdefs.h. */
21472_ACEOF
21473cat confdefs.h >>conftest.$ac_ext
21474cat >>conftest.$ac_ext <<_ACEOF
21475/* end confdefs.h. */
21476#include <stdio.h>
21477int
21478main ()
21479{
21480return !fseeko;
21481 ;
21482 return 0;
21483}
21484_ACEOF
21485rm -f conftest.$ac_objext
21486if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21487 (eval $ac_compile) 2>conftest.er1
21488 ac_status=$?
21489 grep -v '^ *+' conftest.er1 >conftest.err
21490 rm -f conftest.er1
21491 cat conftest.err >&5
21492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21493 (exit $ac_status); } &&
f10e38c4 21494 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
21495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21496 (eval $ac_try) 2>&5
21497 ac_status=$?
21498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21499 (exit $ac_status); }; } &&
21500 { ac_try='test -s conftest.$ac_objext'
21501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21502 (eval $ac_try) 2>&5
21503 ac_status=$?
21504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21505 (exit $ac_status); }; }; then
21506 break
21507else
21508 echo "$as_me: failed program was:" >&5
21509sed 's/^/| /' conftest.$ac_ext >&5
21510
21511fi
21512rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21513 cat >conftest.$ac_ext <<_ACEOF
21514/* confdefs.h. */
21515_ACEOF
21516cat confdefs.h >>conftest.$ac_ext
21517cat >>conftest.$ac_ext <<_ACEOF
21518/* end confdefs.h. */
21519#define _LARGEFILE_SOURCE 1
21520#include <stdio.h>
21521int
21522main ()
21523{
21524return !fseeko;
21525 ;
21526 return 0;
21527}
21528_ACEOF
21529rm -f conftest.$ac_objext
21530if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21531 (eval $ac_compile) 2>conftest.er1
21532 ac_status=$?
21533 grep -v '^ *+' conftest.er1 >conftest.err
21534 rm -f conftest.er1
21535 cat conftest.err >&5
21536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21537 (exit $ac_status); } &&
f10e38c4 21538 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
21539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21540 (eval $ac_try) 2>&5
21541 ac_status=$?
21542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21543 (exit $ac_status); }; } &&
21544 { ac_try='test -s conftest.$ac_objext'
21545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21546 (eval $ac_try) 2>&5
21547 ac_status=$?
21548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21549 (exit $ac_status); }; }; then
21550 ac_cv_sys_largefile_source=1; break
21551else
21552 echo "$as_me: failed program was:" >&5
21553sed 's/^/| /' conftest.$ac_ext >&5
21554
21555fi
21556rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21557 break
21558done
21559fi
21560echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
21561echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
21562if test "$ac_cv_sys_largefile_source" != no; then
21563
21564cat >>confdefs.h <<_ACEOF
21565#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
21566_ACEOF
21567
21568fi
21569rm -f conftest*
21570
21571# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
21572# in glibc 2.1.3, but that breaks too many other things.
21573# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
21574echo "$as_me:$LINENO: checking for fseeko" >&5
21575echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
21576if test "${ac_cv_func_fseeko+set}" = set; then
21577 echo $ECHO_N "(cached) $ECHO_C" >&6
21578else
21579 cat >conftest.$ac_ext <<_ACEOF
21580/* confdefs.h. */
21581_ACEOF
21582cat confdefs.h >>conftest.$ac_ext
21583cat >>conftest.$ac_ext <<_ACEOF
21584/* end confdefs.h. */
21585#include <stdio.h>
21586int
21587main ()
21588{
21589return fseeko && fseeko (stdin, 0, 0);
21590 ;
21591 return 0;
21592}
21593_ACEOF
21594rm -f conftest.$ac_objext conftest$ac_exeext
21595if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21596 (eval $ac_link) 2>conftest.er1
21597 ac_status=$?
21598 grep -v '^ *+' conftest.er1 >conftest.err
21599 rm -f conftest.er1
21600 cat conftest.err >&5
21601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21602 (exit $ac_status); } &&
f10e38c4 21603 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
21604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21605 (eval $ac_try) 2>&5
21606 ac_status=$?
21607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21608 (exit $ac_status); }; } &&
21609 { ac_try='test -s conftest$ac_exeext'
21610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21611 (eval $ac_try) 2>&5
21612 ac_status=$?
21613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21614 (exit $ac_status); }; }; then
21615 ac_cv_func_fseeko=yes
21616else
21617 echo "$as_me: failed program was:" >&5
21618sed 's/^/| /' conftest.$ac_ext >&5
21619
21620ac_cv_func_fseeko=no
21621fi
21622rm -f conftest.err conftest.$ac_objext \
21623 conftest$ac_exeext conftest.$ac_ext
21624fi
21625echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
21626echo "${ECHO_T}$ac_cv_func_fseeko" >&6
21627if test $ac_cv_func_fseeko = yes; then
21628
21629cat >>confdefs.h <<\_ACEOF
21630#define HAVE_FSEEKO 1
21631_ACEOF
21632
21633fi
21634
5b674b9d 21635 if test "$ac_cv_sys_largefile_source" != no; then
5ff751d6 21636 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
a848cd7e 21637 fi
a848cd7e
SC
21638fi
21639
21640echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
21641echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
21642if test "${ac_cv_c_bigendian+set}" = set; then
21643 echo $ECHO_N "(cached) $ECHO_C" >&6
21644else
21645 ac_cv_c_bigendian=unknown
21646# See if sys/param.h defines the BYTE_ORDER macro.
21647cat >conftest.$ac_ext <<_ACEOF
21648/* confdefs.h. */
21649_ACEOF
21650cat confdefs.h >>conftest.$ac_ext
21651cat >>conftest.$ac_ext <<_ACEOF
21652/* end confdefs.h. */
21653#include <sys/types.h>
21654#include <sys/param.h>
21655int
21656main ()
21657{
21658
21659#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
21660 bogus endian macros
21661#endif
21662 ;
21663 return 0;
21664}
21665_ACEOF
21666rm -f conftest.$ac_objext
21667if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21668 (eval $ac_compile) 2>conftest.er1
a848cd7e 21669 ac_status=$?
ac1cb8d3
VS
21670 grep -v '^ *+' conftest.er1 >conftest.err
21671 rm -f conftest.er1
21672 cat conftest.err >&5
a848cd7e
SC
21673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21674 (exit $ac_status); } &&
f10e38c4 21675 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21677 (eval $ac_try) 2>&5
21678 ac_status=$?
21679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21680 (exit $ac_status); }; } &&
21681 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21683 (eval $ac_try) 2>&5
21684 ac_status=$?
21685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21686 (exit $ac_status); }; }; then
21687 # It does; now see whether it defined to BIG_ENDIAN or not.
21688cat >conftest.$ac_ext <<_ACEOF
21689/* confdefs.h. */
21690_ACEOF
21691cat confdefs.h >>conftest.$ac_ext
21692cat >>conftest.$ac_ext <<_ACEOF
21693/* end confdefs.h. */
21694#include <sys/types.h>
21695#include <sys/param.h>
21696int
21697main ()
21698{
21699
21700#if BYTE_ORDER != BIG_ENDIAN
21701 not big endian
21702#endif
21703 ;
21704 return 0;
21705}
21706_ACEOF
21707rm -f conftest.$ac_objext
21708if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21709 (eval $ac_compile) 2>conftest.er1
a848cd7e 21710 ac_status=$?
ac1cb8d3
VS
21711 grep -v '^ *+' conftest.er1 >conftest.err
21712 rm -f conftest.er1
21713 cat conftest.err >&5
a848cd7e
SC
21714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21715 (exit $ac_status); } &&
f10e38c4 21716 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21718 (eval $ac_try) 2>&5
21719 ac_status=$?
21720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21721 (exit $ac_status); }; } &&
21722 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21724 (eval $ac_try) 2>&5
21725 ac_status=$?
21726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21727 (exit $ac_status); }; }; then
21728 ac_cv_c_bigendian=yes
21729else
21730 echo "$as_me: failed program was:" >&5
21731sed 's/^/| /' conftest.$ac_ext >&5
21732
21733ac_cv_c_bigendian=no
21734fi
ac1cb8d3 21735rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21736else
21737 echo "$as_me: failed program was:" >&5
21738sed 's/^/| /' conftest.$ac_ext >&5
21739
21740fi
ac1cb8d3 21741rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21742if test $ac_cv_c_bigendian = unknown; then
21743if test "$cross_compiling" = yes; then
21744 ac_cv_c_bigendian=unknown
21745else
21746 cat >conftest.$ac_ext <<_ACEOF
21747/* confdefs.h. */
21748_ACEOF
21749cat confdefs.h >>conftest.$ac_ext
21750cat >>conftest.$ac_ext <<_ACEOF
21751/* end confdefs.h. */
21752main () {
21753 /* Are we little or big endian? From Harbison&Steele. */
21754 union
21755 {
21756 long l;
21757 char c[sizeof (long)];
21758 } u;
21759 u.l = 1;
21760 exit (u.c[sizeof (long) - 1] == 1);
21761}
21762_ACEOF
21763rm -f conftest$ac_exeext
21764if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21765 (eval $ac_link) 2>&5
21766 ac_status=$?
21767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21768 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21770 (eval $ac_try) 2>&5
21771 ac_status=$?
21772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21773 (exit $ac_status); }; }; then
21774 ac_cv_c_bigendian=no
21775else
21776 echo "$as_me: program exited with status $ac_status" >&5
21777echo "$as_me: failed program was:" >&5
21778sed 's/^/| /' conftest.$ac_ext >&5
21779
21780( exit $ac_status )
21781ac_cv_c_bigendian=yes
21782fi
ac1cb8d3 21783rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21784fi
21785fi
21786fi
21787echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
21788echo "${ECHO_T}$ac_cv_c_bigendian" >&6
21789if test $ac_cv_c_bigendian = unknown; then
21790 { 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
21791echo "$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;}
21792fi
21793if test $ac_cv_c_bigendian = yes; then
21794 cat >>confdefs.h <<\_ACEOF
21795#define WORDS_BIGENDIAN 1
21796_ACEOF
21797
21798fi
21799
21800
21801ac_ext=cc
21802ac_cpp='$CXXCPP $CPPFLAGS'
21803ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21804ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21805ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21806echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
21807echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
21808if test -z "$CXXCPP"; then
21809 if test "${ac_cv_prog_CXXCPP+set}" = set; then
21810 echo $ECHO_N "(cached) $ECHO_C" >&6
21811else
21812 # Double quotes because CXXCPP needs to be expanded
21813 for CXXCPP in "$CXX -E" "/lib/cpp"
21814 do
21815 ac_preproc_ok=false
21816for ac_cxx_preproc_warn_flag in '' yes
21817do
21818 # Use a header file that comes with gcc, so configuring glibc
21819 # with a fresh cross-compiler works.
21820 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21821 # <limits.h> exists even on freestanding compilers.
21822 # On the NeXT, cc -E runs the code through the compiler's parser,
21823 # not just through cpp. "Syntax error" is here to catch this case.
21824 cat >conftest.$ac_ext <<_ACEOF
21825/* confdefs.h. */
21826_ACEOF
21827cat confdefs.h >>conftest.$ac_ext
21828cat >>conftest.$ac_ext <<_ACEOF
21829/* end confdefs.h. */
21830#ifdef __STDC__
21831# include <limits.h>
21832#else
21833# include <assert.h>
21834#endif
ac1cb8d3 21835 Syntax error
a848cd7e
SC
21836_ACEOF
21837if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21838 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21839 ac_status=$?
21840 grep -v '^ *+' conftest.er1 >conftest.err
21841 rm -f conftest.er1
21842 cat conftest.err >&5
21843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21844 (exit $ac_status); } >/dev/null; then
21845 if test -s conftest.err; then
21846 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 21847 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
21848 else
21849 ac_cpp_err=
21850 fi
21851else
21852 ac_cpp_err=yes
21853fi
21854if test -z "$ac_cpp_err"; then
21855 :
21856else
21857 echo "$as_me: failed program was:" >&5
21858sed 's/^/| /' conftest.$ac_ext >&5
21859
21860 # Broken: fails on valid input.
21861continue
21862fi
21863rm -f conftest.err conftest.$ac_ext
21864
21865 # OK, works on sane cases. Now check whether non-existent headers
21866 # can be detected and how.
21867 cat >conftest.$ac_ext <<_ACEOF
21868/* confdefs.h. */
21869_ACEOF
21870cat confdefs.h >>conftest.$ac_ext
21871cat >>conftest.$ac_ext <<_ACEOF
21872/* end confdefs.h. */
21873#include <ac_nonexistent.h>
21874_ACEOF
21875if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21876 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21877 ac_status=$?
21878 grep -v '^ *+' conftest.er1 >conftest.err
21879 rm -f conftest.er1
21880 cat conftest.err >&5
21881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21882 (exit $ac_status); } >/dev/null; then
21883 if test -s conftest.err; then
21884 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 21885 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
21886 else
21887 ac_cpp_err=
21888 fi
21889else
21890 ac_cpp_err=yes
21891fi
21892if test -z "$ac_cpp_err"; then
21893 # Broken: success on invalid input.
21894continue
21895else
21896 echo "$as_me: failed program was:" >&5
21897sed 's/^/| /' conftest.$ac_ext >&5
21898
21899 # Passes both tests.
21900ac_preproc_ok=:
21901break
21902fi
21903rm -f conftest.err conftest.$ac_ext
21904
21905done
21906# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
21907rm -f conftest.err conftest.$ac_ext
21908if $ac_preproc_ok; then
21909 break
21910fi
21911
21912 done
21913 ac_cv_prog_CXXCPP=$CXXCPP
21914
21915fi
21916 CXXCPP=$ac_cv_prog_CXXCPP
21917else
21918 ac_cv_prog_CXXCPP=$CXXCPP
21919fi
21920echo "$as_me:$LINENO: result: $CXXCPP" >&5
21921echo "${ECHO_T}$CXXCPP" >&6
21922ac_preproc_ok=false
21923for ac_cxx_preproc_warn_flag in '' yes
21924do
21925 # Use a header file that comes with gcc, so configuring glibc
21926 # with a fresh cross-compiler works.
21927 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21928 # <limits.h> exists even on freestanding compilers.
21929 # On the NeXT, cc -E runs the code through the compiler's parser,
21930 # not just through cpp. "Syntax error" is here to catch this case.
21931 cat >conftest.$ac_ext <<_ACEOF
21932/* confdefs.h. */
21933_ACEOF
21934cat confdefs.h >>conftest.$ac_ext
21935cat >>conftest.$ac_ext <<_ACEOF
21936/* end confdefs.h. */
21937#ifdef __STDC__
21938# include <limits.h>
21939#else
21940# include <assert.h>
21941#endif
ac1cb8d3 21942 Syntax error
a848cd7e
SC
21943_ACEOF
21944if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21945 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21946 ac_status=$?
21947 grep -v '^ *+' conftest.er1 >conftest.err
21948 rm -f conftest.er1
21949 cat conftest.err >&5
21950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21951 (exit $ac_status); } >/dev/null; then
21952 if test -s conftest.err; then
21953 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 21954 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
21955 else
21956 ac_cpp_err=
21957 fi
21958else
21959 ac_cpp_err=yes
21960fi
21961if test -z "$ac_cpp_err"; then
21962 :
21963else
21964 echo "$as_me: failed program was:" >&5
21965sed 's/^/| /' conftest.$ac_ext >&5
21966
21967 # Broken: fails on valid input.
21968continue
21969fi
21970rm -f conftest.err conftest.$ac_ext
21971
21972 # OK, works on sane cases. Now check whether non-existent headers
21973 # can be detected and how.
21974 cat >conftest.$ac_ext <<_ACEOF
21975/* confdefs.h. */
21976_ACEOF
21977cat confdefs.h >>conftest.$ac_ext
21978cat >>conftest.$ac_ext <<_ACEOF
21979/* end confdefs.h. */
21980#include <ac_nonexistent.h>
21981_ACEOF
21982if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21983 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21984 ac_status=$?
21985 grep -v '^ *+' conftest.er1 >conftest.err
21986 rm -f conftest.er1
21987 cat conftest.err >&5
21988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21989 (exit $ac_status); } >/dev/null; then
21990 if test -s conftest.err; then
21991 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 21992 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
21993 else
21994 ac_cpp_err=
21995 fi
21996else
21997 ac_cpp_err=yes
21998fi
21999if test -z "$ac_cpp_err"; then
22000 # Broken: success on invalid input.
22001continue
22002else
22003 echo "$as_me: failed program was:" >&5
22004sed 's/^/| /' conftest.$ac_ext >&5
22005
22006 # Passes both tests.
22007ac_preproc_ok=:
22008break
22009fi
22010rm -f conftest.err conftest.$ac_ext
22011
22012done
22013# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
22014rm -f conftest.err conftest.$ac_ext
22015if $ac_preproc_ok; then
22016 :
22017else
22018 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
22019See \`config.log' for more details." >&5
22020echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
22021See \`config.log' for more details." >&2;}
22022 { (exit 1); exit 1; }; }
22023fi
22024
22025ac_ext=cc
22026ac_cpp='$CXXCPP $CPPFLAGS'
22027ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22028ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22029ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22030
22031
22032
22033
22034
22035 ac_ext=cc
22036ac_cpp='$CXXCPP $CPPFLAGS'
22037ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22038ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22039ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22040
22041
22042
22043for ac_header in iostream
22044do
22045as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22046if eval "test \"\${$as_ac_Header+set}\" = set"; then
22047 echo "$as_me:$LINENO: checking for $ac_header" >&5
22048echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22049if eval "test \"\${$as_ac_Header+set}\" = set"; then
22050 echo $ECHO_N "(cached) $ECHO_C" >&6
22051fi
22052echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22053echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22054else
22055 # Is the header compilable?
22056echo "$as_me:$LINENO: checking $ac_header usability" >&5
22057echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22058cat >conftest.$ac_ext <<_ACEOF
22059/* confdefs.h. */
22060_ACEOF
22061cat confdefs.h >>conftest.$ac_ext
22062cat >>conftest.$ac_ext <<_ACEOF
22063/* end confdefs.h. */
22064$ac_includes_default
22065#include <$ac_header>
22066_ACEOF
22067rm -f conftest.$ac_objext
22068if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22069 (eval $ac_compile) 2>conftest.er1
a848cd7e 22070 ac_status=$?
ac1cb8d3
VS
22071 grep -v '^ *+' conftest.er1 >conftest.err
22072 rm -f conftest.er1
22073 cat conftest.err >&5
a848cd7e
SC
22074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22075 (exit $ac_status); } &&
f10e38c4 22076 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22078 (eval $ac_try) 2>&5
22079 ac_status=$?
22080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22081 (exit $ac_status); }; } &&
22082 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22084 (eval $ac_try) 2>&5
22085 ac_status=$?
22086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22087 (exit $ac_status); }; }; then
22088 ac_header_compiler=yes
22089else
22090 echo "$as_me: failed program was:" >&5
22091sed 's/^/| /' conftest.$ac_ext >&5
22092
22093ac_header_compiler=no
22094fi
ac1cb8d3 22095rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22096echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22097echo "${ECHO_T}$ac_header_compiler" >&6
22098
22099# Is the header present?
22100echo "$as_me:$LINENO: checking $ac_header presence" >&5
22101echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22102cat >conftest.$ac_ext <<_ACEOF
22103/* confdefs.h. */
22104_ACEOF
22105cat confdefs.h >>conftest.$ac_ext
22106cat >>conftest.$ac_ext <<_ACEOF
22107/* end confdefs.h. */
22108#include <$ac_header>
22109_ACEOF
22110if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22111 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22112 ac_status=$?
22113 grep -v '^ *+' conftest.er1 >conftest.err
22114 rm -f conftest.er1
22115 cat conftest.err >&5
22116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22117 (exit $ac_status); } >/dev/null; then
22118 if test -s conftest.err; then
22119 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 22120 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
22121 else
22122 ac_cpp_err=
22123 fi
22124else
22125 ac_cpp_err=yes
22126fi
22127if test -z "$ac_cpp_err"; then
22128 ac_header_preproc=yes
22129else
22130 echo "$as_me: failed program was:" >&5
22131sed 's/^/| /' conftest.$ac_ext >&5
22132
22133 ac_header_preproc=no
22134fi
22135rm -f conftest.err conftest.$ac_ext
22136echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22137echo "${ECHO_T}$ac_header_preproc" >&6
22138
22139# So? What about this header?
ac1cb8d3
VS
22140case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
22141 yes:no: )
a848cd7e
SC
22142 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22143echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22144 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22145echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22146 ac_header_preproc=yes
a848cd7e 22147 ;;
ac1cb8d3 22148 no:yes:* )
a848cd7e
SC
22149 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22150echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22151 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22152echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22153 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22154echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22155 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22156echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22157 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22158echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22159 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22160echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22161 (
22162 cat <<\_ASBOX
ac1cb8d3
VS
22163## ----------------------------------------- ##
22164## Report this to wx-dev@lists.wxwidgets.org ##
22165## ----------------------------------------- ##
a848cd7e
SC
22166_ASBOX
22167 ) |
22168 sed "s/^/$as_me: WARNING: /" >&2
22169 ;;
22170esac
22171echo "$as_me:$LINENO: checking for $ac_header" >&5
22172echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22173if eval "test \"\${$as_ac_Header+set}\" = set"; then
22174 echo $ECHO_N "(cached) $ECHO_C" >&6
22175else
ac1cb8d3 22176 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
22177fi
22178echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22179echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22180
22181fi
22182if test `eval echo '${'$as_ac_Header'}'` = yes; then
22183 cat >>confdefs.h <<_ACEOF
22184#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22185_ACEOF
22186
22187fi
22188
22189done
22190
22191
22192 if test "$ac_cv_header_iostream" = "yes" ; then
22193 :
22194 else
22195 cat >>confdefs.h <<\_ACEOF
22196#define wxUSE_IOSTREAMH 1
22197_ACEOF
22198
22199 fi
22200
22201 ac_ext=c
22202ac_cpp='$CPP $CPPFLAGS'
22203ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22204ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22205ac_compiler_gnu=$ac_cv_c_compiler_gnu
22206
22207
22208
22209
22210 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
22211echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
22212if test "${wx_cv_cpp_bool+set}" = set; then
22213 echo $ECHO_N "(cached) $ECHO_C" >&6
22214else
22215
22216
22217
22218 ac_ext=cc
22219ac_cpp='$CXXCPP $CPPFLAGS'
22220ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22221ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22222ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22223
22224
22225 cat >conftest.$ac_ext <<_ACEOF
22226/* confdefs.h. */
22227_ACEOF
22228cat confdefs.h >>conftest.$ac_ext
22229cat >>conftest.$ac_ext <<_ACEOF
22230/* end confdefs.h. */
22231
22232
22233int
22234main ()
22235{
22236
22237 bool b = true;
22238
22239 return 0;
22240
22241 ;
22242 return 0;
22243}
22244_ACEOF
22245rm -f conftest.$ac_objext
22246if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22247 (eval $ac_compile) 2>conftest.er1
a848cd7e 22248 ac_status=$?
ac1cb8d3
VS
22249 grep -v '^ *+' conftest.er1 >conftest.err
22250 rm -f conftest.er1
22251 cat conftest.err >&5
a848cd7e
SC
22252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22253 (exit $ac_status); } &&
f10e38c4 22254 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22256 (eval $ac_try) 2>&5
22257 ac_status=$?
22258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22259 (exit $ac_status); }; } &&
22260 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22262 (eval $ac_try) 2>&5
22263 ac_status=$?
22264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22265 (exit $ac_status); }; }; then
22266
22267 wx_cv_cpp_bool=yes
22268
22269else
22270 echo "$as_me: failed program was:" >&5
22271sed 's/^/| /' conftest.$ac_ext >&5
22272
22273
22274 wx_cv_cpp_bool=no
22275
22276
22277fi
ac1cb8d3 22278rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22279
22280 ac_ext=c
22281ac_cpp='$CPP $CPPFLAGS'
22282ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22283ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22284ac_compiler_gnu=$ac_cv_c_compiler_gnu
22285
22286
22287fi
22288echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
22289echo "${ECHO_T}$wx_cv_cpp_bool" >&6
22290
22291 if test "$wx_cv_cpp_bool" = "yes"; then
22292 cat >>confdefs.h <<\_ACEOF
22293#define HAVE_BOOL 1
22294_ACEOF
22295
22296 fi
22297
22298
22299
22300 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
22301echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
22302if test "${wx_cv_explicit+set}" = set; then
22303 echo $ECHO_N "(cached) $ECHO_C" >&6
22304else
22305
22306
22307
22308 ac_ext=cc
22309ac_cpp='$CXXCPP $CPPFLAGS'
22310ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22311ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22312ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22313
22314
22315 cat >conftest.$ac_ext <<_ACEOF
22316/* confdefs.h. */
22317_ACEOF
22318cat confdefs.h >>conftest.$ac_ext
22319cat >>conftest.$ac_ext <<_ACEOF
22320/* end confdefs.h. */
22321
22322 class Foo { public: explicit Foo(int) {} };
22323
22324int
22325main ()
22326{
22327
22328 return 0;
22329
22330 ;
22331 return 0;
22332}
22333_ACEOF
22334rm -f conftest.$ac_objext
22335if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22336 (eval $ac_compile) 2>conftest.er1
a848cd7e 22337 ac_status=$?
ac1cb8d3
VS
22338 grep -v '^ *+' conftest.er1 >conftest.err
22339 rm -f conftest.er1
22340 cat conftest.err >&5
a848cd7e
SC
22341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22342 (exit $ac_status); } &&
f10e38c4 22343 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22345 (eval $ac_try) 2>&5
22346 ac_status=$?
22347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22348 (exit $ac_status); }; } &&
22349 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22351 (eval $ac_try) 2>&5
22352 ac_status=$?
22353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22354 (exit $ac_status); }; }; then
22355
22356 cat >conftest.$ac_ext <<_ACEOF
22357/* confdefs.h. */
22358_ACEOF
22359cat confdefs.h >>conftest.$ac_ext
22360cat >>conftest.$ac_ext <<_ACEOF
22361/* end confdefs.h. */
22362
22363 class Foo { public: explicit Foo(int) {} };
22364 static void TakeFoo(const Foo& foo) { }
22365
22366int
22367main ()
22368{
22369
22370 TakeFoo(17);
22371 return 0;
22372
22373 ;
22374 return 0;
22375}
22376_ACEOF
22377rm -f conftest.$ac_objext
22378if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22379 (eval $ac_compile) 2>conftest.er1
a848cd7e 22380 ac_status=$?
ac1cb8d3
VS
22381 grep -v '^ *+' conftest.er1 >conftest.err
22382 rm -f conftest.er1
22383 cat conftest.err >&5
a848cd7e
SC
22384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22385 (exit $ac_status); } &&
f10e38c4 22386 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22388 (eval $ac_try) 2>&5
22389 ac_status=$?
22390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22391 (exit $ac_status); }; } &&
22392 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22394 (eval $ac_try) 2>&5
22395 ac_status=$?
22396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22397 (exit $ac_status); }; }; then
22398 wx_cv_explicit=no
22399else
22400 echo "$as_me: failed program was:" >&5
22401sed 's/^/| /' conftest.$ac_ext >&5
22402
22403wx_cv_explicit=yes
22404
22405fi
ac1cb8d3 22406rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22407
22408else
22409 echo "$as_me: failed program was:" >&5
22410sed 's/^/| /' conftest.$ac_ext >&5
22411
22412wx_cv_explicit=no
22413
22414fi
ac1cb8d3 22415rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22416
22417 ac_ext=c
22418ac_cpp='$CPP $CPPFLAGS'
22419ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22420ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22421ac_compiler_gnu=$ac_cv_c_compiler_gnu
22422
22423
22424fi
22425echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
22426echo "${ECHO_T}$wx_cv_explicit" >&6
22427
22428 if test "$wx_cv_explicit" = "yes"; then
22429 cat >>confdefs.h <<\_ACEOF
22430#define HAVE_EXPLICIT 1
22431_ACEOF
22432
22433 fi
22434
22435
22436echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
22437echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
22438if test "${ac_cv_cxx_const_cast+set}" = set; then
22439 echo $ECHO_N "(cached) $ECHO_C" >&6
22440else
22441
22442
22443 ac_ext=cc
22444ac_cpp='$CXXCPP $CPPFLAGS'
22445ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22446ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22447ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22448
22449 cat >conftest.$ac_ext <<_ACEOF
22450/* confdefs.h. */
22451_ACEOF
22452cat confdefs.h >>conftest.$ac_ext
22453cat >>conftest.$ac_ext <<_ACEOF
22454/* end confdefs.h. */
22455
22456int
22457main ()
22458{
22459int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
22460 ;
22461 return 0;
22462}
22463_ACEOF
22464rm -f conftest.$ac_objext
22465if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22466 (eval $ac_compile) 2>conftest.er1
a848cd7e 22467 ac_status=$?
ac1cb8d3
VS
22468 grep -v '^ *+' conftest.er1 >conftest.err
22469 rm -f conftest.er1
22470 cat conftest.err >&5
a848cd7e
SC
22471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22472 (exit $ac_status); } &&
f10e38c4 22473 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22475 (eval $ac_try) 2>&5
22476 ac_status=$?
22477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22478 (exit $ac_status); }; } &&
22479 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22481 (eval $ac_try) 2>&5
22482 ac_status=$?
22483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22484 (exit $ac_status); }; }; then
22485 ac_cv_cxx_const_cast=yes
22486else
22487 echo "$as_me: failed program was:" >&5
22488sed 's/^/| /' conftest.$ac_ext >&5
22489
22490ac_cv_cxx_const_cast=no
22491fi
ac1cb8d3 22492rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22493 ac_ext=c
22494ac_cpp='$CPP $CPPFLAGS'
22495ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22496ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22497ac_compiler_gnu=$ac_cv_c_compiler_gnu
22498
22499
22500fi
22501echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
22502echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
22503if test "$ac_cv_cxx_const_cast" = yes; then
22504
22505cat >>confdefs.h <<\_ACEOF
22506#define HAVE_CONST_CAST
22507_ACEOF
22508
22509fi
22510
7714864e
RL
22511echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5
22512echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6
22513if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then
22514 echo $ECHO_N "(cached) $ECHO_C" >&6
22515else
22516
22517
22518 ac_ext=cc
22519ac_cpp='$CXXCPP $CPPFLAGS'
22520ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22521ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22522ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22523
22524 cat >conftest.$ac_ext <<_ACEOF
22525/* confdefs.h. */
22526_ACEOF
22527cat confdefs.h >>conftest.$ac_ext
22528cat >>conftest.$ac_ext <<_ACEOF
22529/* end confdefs.h. */
22530#include <typeinfo>
22531class Base { public : Base () {} virtual void f () = 0;};
22532class Derived : public Base { public : Derived () {} virtual void f () {} };
22533class Unrelated { public : Unrelated () {} };
22534int g (Unrelated&) { return 0; }
22535int
22536main ()
22537{
22538
22539Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e);
22540 ;
22541 return 0;
22542}
22543_ACEOF
22544rm -f conftest.$ac_objext
22545if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22546 (eval $ac_compile) 2>conftest.er1
22547 ac_status=$?
22548 grep -v '^ *+' conftest.er1 >conftest.err
22549 rm -f conftest.er1
22550 cat conftest.err >&5
22551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22552 (exit $ac_status); } &&
f10e38c4 22553 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7714864e
RL
22554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22555 (eval $ac_try) 2>&5
22556 ac_status=$?
22557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22558 (exit $ac_status); }; } &&
22559 { ac_try='test -s conftest.$ac_objext'
22560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22561 (eval $ac_try) 2>&5
22562 ac_status=$?
22563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22564 (exit $ac_status); }; }; then
22565 ac_cv_cxx_reinterpret_cast=yes
22566else
22567 echo "$as_me: failed program was:" >&5
22568sed 's/^/| /' conftest.$ac_ext >&5
22569
22570ac_cv_cxx_reinterpret_cast=no
22571fi
22572rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22573 ac_ext=c
22574ac_cpp='$CPP $CPPFLAGS'
22575ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22576ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22577ac_compiler_gnu=$ac_cv_c_compiler_gnu
22578
22579
22580fi
22581echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5
22582echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6
22583if test "$ac_cv_cxx_reinterpret_cast" = yes; then
22584
22585cat >>confdefs.h <<\_ACEOF
22586#define HAVE_REINTERPRET_CAST
22587_ACEOF
22588
22589fi
22590
a848cd7e
SC
22591echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
22592echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6
22593if test "${ac_cv_cxx_static_cast+set}" = set; then
22594 echo $ECHO_N "(cached) $ECHO_C" >&6
22595else
22596
22597
22598 ac_ext=cc
22599ac_cpp='$CXXCPP $CPPFLAGS'
22600ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22601ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22602ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22603
22604 cat >conftest.$ac_ext <<_ACEOF
22605/* confdefs.h. */
22606_ACEOF
22607cat confdefs.h >>conftest.$ac_ext
22608cat >>conftest.$ac_ext <<_ACEOF
22609/* end confdefs.h. */
22610#include <typeinfo>
22611class Base { public : Base () {} virtual void f () = 0; };
22612class Derived : public Base { public : Derived () {} virtual void f () {} };
22613int g (Derived&) { return 0; }
22614int
22615main ()
22616{
22617
22618Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
22619 ;
22620 return 0;
22621}
22622_ACEOF
22623rm -f conftest.$ac_objext
22624if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22625 (eval $ac_compile) 2>conftest.er1
a848cd7e 22626 ac_status=$?
ac1cb8d3
VS
22627 grep -v '^ *+' conftest.er1 >conftest.err
22628 rm -f conftest.er1
22629 cat conftest.err >&5
a848cd7e
SC
22630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22631 (exit $ac_status); } &&
f10e38c4 22632 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22634 (eval $ac_try) 2>&5
22635 ac_status=$?
22636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22637 (exit $ac_status); }; } &&
22638 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22640 (eval $ac_try) 2>&5
22641 ac_status=$?
22642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22643 (exit $ac_status); }; }; then
22644 ac_cv_cxx_static_cast=yes
22645else
22646 echo "$as_me: failed program was:" >&5
22647sed 's/^/| /' conftest.$ac_ext >&5
22648
22649ac_cv_cxx_static_cast=no
22650fi
ac1cb8d3 22651rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22652 ac_ext=c
22653ac_cpp='$CPP $CPPFLAGS'
22654ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22655ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22656ac_compiler_gnu=$ac_cv_c_compiler_gnu
22657
22658
22659fi
22660echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
22661echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6
22662if test "$ac_cv_cxx_static_cast" = yes; then
22663
22664cat >>confdefs.h <<\_ACEOF
22665#define HAVE_STATIC_CAST
22666_ACEOF
22667
22668fi
22669
22670
3c28b7cb 22671if test "x$SUNCXX" = xyes; then
c92ad099 22672 CXXFLAGS="-features=tmplife $CXXFLAGS"
3c28b7cb
MW
22673fi
22674
9122d155 22675if test "x$SUNCC" = xyes; then
c92ad099 22676 CFLAGS="-erroff=E_NO_EXPLICIT_TYPE_GIVEN $CFLAGS"
9122d155
VZ
22677fi
22678
0ad5d837 22679if test "x$SGICC" = "xyes"; then
c92ad099 22680 CFLAGS="-woff 3970 $CFLAGS"
0ad5d837
VZ
22681fi
22682if test "x$SGICXX" = "xyes"; then
c92ad099 22683 CXXFLAGS="-woff 3970 $CXXFLAGS"
0ad5d837
VZ
22684fi
22685
2eef8513 22686if test "x$HPCC" = "xyes"; then
c92ad099 22687 CFLAGS="+W 2011,2450 $CFLAGS"
2eef8513
VZ
22688fi
22689if test "x$HPCXX" = "xyes"; then
c92ad099 22690 CXXFLAGS="+W 2340 $CXXFLAGS"
2eef8513
VZ
22691fi
22692
22693if test "x$COMPAQCXX" = "xyes"; then
22694 CXXFLAGS="-w0 -msg_disable basclsnondto,unrimpret,intconlosbit"
22695fi
22696
f56c22b4 22697if test "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes"; then
a848cd7e
SC
22698 ac_ext=cc
22699ac_cpp='$CXXCPP $CPPFLAGS'
22700ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22701ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22702ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22703
22704
f56c22b4
MW
22705 if test "$wxUSE_UNICODE" = "yes"; then
22706 std_string="std::wstring"
22707 char_type="wchar_t"
22708 else
22709 std_string="std::string"
22710 char_type="char"
22711 fi
22712
22713 echo "$as_me:$LINENO: checking for $std_string in <string>" >&5
22714echo $ECHO_N "checking for $std_string in <string>... $ECHO_C" >&6
a848cd7e
SC
22715 cat >conftest.$ac_ext <<_ACEOF
22716/* confdefs.h. */
22717_ACEOF
22718cat confdefs.h >>conftest.$ac_ext
22719cat >>conftest.$ac_ext <<_ACEOF
22720/* end confdefs.h. */
22721#include <string>
a848cd7e
SC
22722int
22723main ()
22724{
f56c22b4 22725$std_string foo;
a848cd7e
SC
22726 ;
22727 return 0;
22728}
22729_ACEOF
22730rm -f conftest.$ac_objext
22731if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22732 (eval $ac_compile) 2>conftest.er1
a848cd7e 22733 ac_status=$?
ac1cb8d3
VS
22734 grep -v '^ *+' conftest.er1 >conftest.err
22735 rm -f conftest.er1
22736 cat conftest.err >&5
a848cd7e
SC
22737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22738 (exit $ac_status); } &&
f10e38c4 22739 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22741 (eval $ac_try) 2>&5
22742 ac_status=$?
22743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22744 (exit $ac_status); }; } &&
22745 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22747 (eval $ac_try) 2>&5
22748 ac_status=$?
22749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22750 (exit $ac_status); }; }; then
22751 echo "$as_me:$LINENO: result: yes" >&5
22752echo "${ECHO_T}yes" >&6
0a08f02a
MB
22753 cat >>confdefs.h <<\_ACEOF
22754#define HAVE_STD_WSTRING 1
22755_ACEOF
22756
a848cd7e
SC
22757else
22758 echo "$as_me: failed program was:" >&5
22759sed 's/^/| /' conftest.$ac_ext >&5
22760
22761echo "$as_me:$LINENO: result: no" >&5
22762echo "${ECHO_T}no" >&6
f56c22b4
MW
22763 echo "$as_me:$LINENO: checking if std::basic_string<$char_type> works" >&5
22764echo $ECHO_N "checking if std::basic_string<$char_type> works... $ECHO_C" >&6
0a08f02a
MB
22765 cat >conftest.$ac_ext <<_ACEOF
22766/* confdefs.h. */
22767_ACEOF
22768cat confdefs.h >>conftest.$ac_ext
22769cat >>conftest.$ac_ext <<_ACEOF
22770/* end confdefs.h. */
22771
22772 #ifdef HAVE_WCHAR_H
22773 # ifdef __CYGWIN__
22774 # include <stddef.h>
22775 # endif
22776 # include <wchar.h>
22777 #endif
22778 #ifdef HAVE_STDLIB_H
22779 # include <stdlib.h>
22780 #endif
22781 #include <stdio.h>
22782 #include <string>
22783
22784int
22785main ()
22786{
f56c22b4
MW
22787std::basic_string<$char_type> foo;
22788 const $char_type* dummy = foo.c_str();
0a08f02a
MB
22789 ;
22790 return 0;
22791}
22792_ACEOF
22793rm -f conftest.$ac_objext
22794if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22795 (eval $ac_compile) 2>conftest.er1
22796 ac_status=$?
22797 grep -v '^ *+' conftest.er1 >conftest.err
22798 rm -f conftest.er1
22799 cat conftest.err >&5
22800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22801 (exit $ac_status); } &&
f10e38c4 22802 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0a08f02a
MB
22803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22804 (eval $ac_try) 2>&5
22805 ac_status=$?
22806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22807 (exit $ac_status); }; } &&
22808 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
22814 echo "$as_me:$LINENO: result: yes" >&5
22815echo "${ECHO_T}yes" >&6
22816else
22817 echo "$as_me: failed program was:" >&5
22818sed 's/^/| /' conftest.$ac_ext >&5
22819
22820echo "$as_me:$LINENO: result: no" >&5
22821echo "${ECHO_T}no" >&6
f56c22b4 22822 if test "$wxUSE_STL" = "yes"; then
4b9918c5
MW
22823 { { echo "$as_me:$LINENO: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&5
22824echo "$as_me: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&2;}
22825 { (exit 1); exit 1; }; }
22826 elif grep wxUSE_STD_STRING $wx_arg_cache_file >/dev/null; then
22827 { { echo "$as_me:$LINENO: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&5
22828echo "$as_me: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&2;}
a848cd7e 22829 { (exit 1); exit 1; }; }
f56c22b4
MW
22830 else
22831 { echo "$as_me:$LINENO: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&5
22832echo "$as_me: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&2;}
22833 wxUSE_STD_STRING=no
22834 fi
22835
0a08f02a 22836
a848cd7e 22837fi
ac1cb8d3 22838rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 22839
0a08f02a
MB
22840fi
22841rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22842
22843 ac_ext=c
22844ac_cpp='$CPP $CPPFLAGS'
22845ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22846ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
f56c22b4
MW
22847ac_compiler_gnu=$ac_cv_c_compiler_gnu
22848
22849fi
22850
22851if test "$wxUSE_STD_IOSTREAM" = "yes"; then
22852 ac_ext=cc
22853ac_cpp='$CXXCPP $CPPFLAGS'
22854ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22855ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22856ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22857
22858
22859 echo "$as_me:$LINENO: checking for std::istream" >&5
22860echo $ECHO_N "checking for std::istream... $ECHO_C" >&6
22861if test "${ac_cv_type_std__istream+set}" = set; then
22862 echo $ECHO_N "(cached) $ECHO_C" >&6
22863else
22864 cat >conftest.$ac_ext <<_ACEOF
22865/* confdefs.h. */
22866_ACEOF
22867cat confdefs.h >>conftest.$ac_ext
22868cat >>conftest.$ac_ext <<_ACEOF
22869/* end confdefs.h. */
22870#include <iostream>
22871
22872int
22873main ()
22874{
22875if ((std::istream *) 0)
22876 return 0;
22877if (sizeof (std::istream))
22878 return 0;
22879 ;
22880 return 0;
22881}
22882_ACEOF
22883rm -f conftest.$ac_objext
22884if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22885 (eval $ac_compile) 2>conftest.er1
22886 ac_status=$?
22887 grep -v '^ *+' conftest.er1 >conftest.err
22888 rm -f conftest.er1
22889 cat conftest.err >&5
22890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22891 (exit $ac_status); } &&
f10e38c4 22892 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
f56c22b4
MW
22893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22894 (eval $ac_try) 2>&5
22895 ac_status=$?
22896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22897 (exit $ac_status); }; } &&
22898 { ac_try='test -s conftest.$ac_objext'
22899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22900 (eval $ac_try) 2>&5
22901 ac_status=$?
22902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22903 (exit $ac_status); }; }; then
22904 ac_cv_type_std__istream=yes
22905else
22906 echo "$as_me: failed program was:" >&5
22907sed 's/^/| /' conftest.$ac_ext >&5
22908
22909ac_cv_type_std__istream=no
22910fi
22911rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22912fi
22913echo "$as_me:$LINENO: result: $ac_cv_type_std__istream" >&5
22914echo "${ECHO_T}$ac_cv_type_std__istream" >&6
22915if test $ac_cv_type_std__istream = yes; then
22916
22917cat >>confdefs.h <<_ACEOF
22918#define HAVE_STD__ISTREAM 1
22919_ACEOF
22920
22921
22922else
22923 wxUSE_STD_IOSTREAM=no
22924fi
22925echo "$as_me:$LINENO: checking for std::ostream" >&5
22926echo $ECHO_N "checking for std::ostream... $ECHO_C" >&6
22927if test "${ac_cv_type_std__ostream+set}" = set; then
22928 echo $ECHO_N "(cached) $ECHO_C" >&6
22929else
22930 cat >conftest.$ac_ext <<_ACEOF
22931/* confdefs.h. */
22932_ACEOF
22933cat confdefs.h >>conftest.$ac_ext
22934cat >>conftest.$ac_ext <<_ACEOF
22935/* end confdefs.h. */
22936#include <iostream>
22937
22938int
22939main ()
22940{
22941if ((std::ostream *) 0)
22942 return 0;
22943if (sizeof (std::ostream))
22944 return 0;
22945 ;
22946 return 0;
22947}
22948_ACEOF
22949rm -f conftest.$ac_objext
22950if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22951 (eval $ac_compile) 2>conftest.er1
22952 ac_status=$?
22953 grep -v '^ *+' conftest.er1 >conftest.err
22954 rm -f conftest.er1
22955 cat conftest.err >&5
22956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22957 (exit $ac_status); } &&
f10e38c4 22958 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
f56c22b4
MW
22959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22960 (eval $ac_try) 2>&5
22961 ac_status=$?
22962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22963 (exit $ac_status); }; } &&
22964 { ac_try='test -s conftest.$ac_objext'
22965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22966 (eval $ac_try) 2>&5
22967 ac_status=$?
22968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22969 (exit $ac_status); }; }; then
22970 ac_cv_type_std__ostream=yes
22971else
22972 echo "$as_me: failed program was:" >&5
22973sed 's/^/| /' conftest.$ac_ext >&5
22974
22975ac_cv_type_std__ostream=no
22976fi
22977rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22978fi
22979echo "$as_me:$LINENO: result: $ac_cv_type_std__ostream" >&5
22980echo "${ECHO_T}$ac_cv_type_std__ostream" >&6
22981if test $ac_cv_type_std__ostream = yes; then
22982
22983cat >>confdefs.h <<_ACEOF
22984#define HAVE_STD__OSTREAM 1
22985_ACEOF
22986
22987
22988else
22989 wxUSE_STD_IOSTREAM=no
22990fi
22991
22992
22993 if test "$wxUSE_STD_IOSTREAM" != "yes"; then
4b9918c5
MW
22994 if grep wxUSE_STD_IOSTREAM $wx_arg_cache_file >/dev/null; then
22995 { { echo "$as_me:$LINENO: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&5
22996echo "$as_me: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&2;}
22997 { (exit 1); exit 1; }; }
22998 else
22999 { echo "$as_me:$LINENO: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&5
f56c22b4 23000echo "$as_me: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&2;}
4b9918c5 23001 fi
f56c22b4
MW
23002 fi
23003
23004 ac_ext=c
23005ac_cpp='$CPP $CPPFLAGS'
23006ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23007ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
0a08f02a
MB
23008ac_compiler_gnu=$ac_cv_c_compiler_gnu
23009
23010fi
23011
23012if test "$wxUSE_STL" = "yes"; then
23013 ac_ext=cc
23014ac_cpp='$CXXCPP $CPPFLAGS'
23015ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23016ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23017ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23018
23019
23020 echo "$as_me:$LINENO: checking for basic STL functionality" >&5
23021echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
a848cd7e
SC
23022 cat >conftest.$ac_ext <<_ACEOF
23023/* confdefs.h. */
23024_ACEOF
23025cat confdefs.h >>conftest.$ac_ext
23026cat >>conftest.$ac_ext <<_ACEOF
23027/* end confdefs.h. */
23028#include <string>
0a08f02a
MB
23029 #include <functional>
23030 #include <algorithm>
23031 #include <vector>
23032 #include <list>
a848cd7e
SC
23033int
23034main ()
23035{
0a08f02a
MB
23036std::vector<int> moo;
23037 std::list<int> foo;
23038 std::vector<int>::iterator it =
23039 std::find_if(moo.begin(), moo.end(),
23040 std::bind2nd(std::less<int>(), 3));
a848cd7e
SC
23041 ;
23042 return 0;
23043}
23044_ACEOF
23045rm -f conftest.$ac_objext
23046if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23047 (eval $ac_compile) 2>conftest.er1
a848cd7e 23048 ac_status=$?
ac1cb8d3
VS
23049 grep -v '^ *+' conftest.er1 >conftest.err
23050 rm -f conftest.er1
23051 cat conftest.err >&5
a848cd7e
SC
23052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23053 (exit $ac_status); } &&
f10e38c4 23054 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23056 (eval $ac_try) 2>&5
23057 ac_status=$?
23058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23059 (exit $ac_status); }; } &&
23060 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23062 (eval $ac_try) 2>&5
23063 ac_status=$?
23064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23065 (exit $ac_status); }; }; then
23066 echo "$as_me:$LINENO: result: yes" >&5
23067echo "${ECHO_T}yes" >&6
a848cd7e
SC
23068else
23069 echo "$as_me: failed program was:" >&5
23070sed 's/^/| /' conftest.$ac_ext >&5
23071
23072echo "$as_me:$LINENO: result: no" >&5
23073echo "${ECHO_T}no" >&6
0a08f02a
MB
23074 { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
23075echo "$as_me: error: Basic STL functionality missing" >&2;}
23076 { (exit 1); exit 1; }; }
a848cd7e 23077fi
ac1cb8d3 23078rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23079
23080 echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
23081echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
23082 cat >conftest.$ac_ext <<_ACEOF
23083/* confdefs.h. */
23084_ACEOF
23085cat confdefs.h >>conftest.$ac_ext
23086cat >>conftest.$ac_ext <<_ACEOF
23087/* end confdefs.h. */
23088#include <string>
23089int
23090main ()
23091{
23092std::string foo, bar;
23093 foo.compare(bar);
23094 foo.compare(1, 1, bar);
23095 foo.compare(1, 1, bar, 1, 1);
23096 foo.compare("");
23097 foo.compare(1, 1, "");
23098 foo.compare(1, 1, "", 2);
23099 ;
23100 return 0;
23101}
23102_ACEOF
23103rm -f conftest.$ac_objext
23104if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23105 (eval $ac_compile) 2>conftest.er1
a848cd7e 23106 ac_status=$?
ac1cb8d3
VS
23107 grep -v '^ *+' conftest.er1 >conftest.err
23108 rm -f conftest.er1
23109 cat conftest.err >&5
a848cd7e
SC
23110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23111 (exit $ac_status); } &&
f10e38c4 23112 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23114 (eval $ac_try) 2>&5
23115 ac_status=$?
23116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23117 (exit $ac_status); }; } &&
23118 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23120 (eval $ac_try) 2>&5
23121 ac_status=$?
23122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23123 (exit $ac_status); }; }; then
23124 echo "$as_me:$LINENO: result: yes" >&5
23125echo "${ECHO_T}yes" >&6
23126 cat >>confdefs.h <<\_ACEOF
23127#define HAVE_STD_STRING_COMPARE 1
23128_ACEOF
23129
23130else
23131 echo "$as_me: failed program was:" >&5
23132sed 's/^/| /' conftest.$ac_ext >&5
23133
23134echo "$as_me:$LINENO: result: no" >&5
23135echo "${ECHO_T}no" >&6
23136fi
ac1cb8d3 23137rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
23138
23139 if test "${ac_cv_header_hash_map+set}" = set; then
23140 echo "$as_me:$LINENO: checking for hash_map" >&5
23141echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
23142if test "${ac_cv_header_hash_map+set}" = set; then
23143 echo $ECHO_N "(cached) $ECHO_C" >&6
23144fi
23145echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
23146echo "${ECHO_T}$ac_cv_header_hash_map" >&6
23147else
23148 # Is the header compilable?
23149echo "$as_me:$LINENO: checking hash_map usability" >&5
23150echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6
23151cat >conftest.$ac_ext <<_ACEOF
23152/* confdefs.h. */
23153_ACEOF
23154cat confdefs.h >>conftest.$ac_ext
23155cat >>conftest.$ac_ext <<_ACEOF
23156/* end confdefs.h. */
23157$ac_includes_default
23158#include <hash_map>
23159_ACEOF
23160rm -f conftest.$ac_objext
23161if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23162 (eval $ac_compile) 2>conftest.er1
bdcade0a 23163 ac_status=$?
ac1cb8d3
VS
23164 grep -v '^ *+' conftest.er1 >conftest.err
23165 rm -f conftest.er1
23166 cat conftest.err >&5
bdcade0a
MB
23167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23168 (exit $ac_status); } &&
f10e38c4 23169 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23171 (eval $ac_try) 2>&5
23172 ac_status=$?
23173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23174 (exit $ac_status); }; } &&
23175 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
23176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23177 (eval $ac_try) 2>&5
23178 ac_status=$?
23179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23180 (exit $ac_status); }; }; then
23181 ac_header_compiler=yes
23182else
23183 echo "$as_me: failed program was:" >&5
23184sed 's/^/| /' conftest.$ac_ext >&5
23185
23186ac_header_compiler=no
23187fi
ac1cb8d3 23188rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
23189echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23190echo "${ECHO_T}$ac_header_compiler" >&6
23191
23192# Is the header present?
23193echo "$as_me:$LINENO: checking hash_map presence" >&5
23194echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6
23195cat >conftest.$ac_ext <<_ACEOF
23196/* confdefs.h. */
23197_ACEOF
23198cat confdefs.h >>conftest.$ac_ext
23199cat >>conftest.$ac_ext <<_ACEOF
23200/* end confdefs.h. */
23201#include <hash_map>
23202_ACEOF
23203if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23204 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23205 ac_status=$?
23206 grep -v '^ *+' conftest.er1 >conftest.err
23207 rm -f conftest.er1
23208 cat conftest.err >&5
23209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23210 (exit $ac_status); } >/dev/null; then
23211 if test -s conftest.err; then
23212 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 23213 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
23214 else
23215 ac_cpp_err=
23216 fi
23217else
23218 ac_cpp_err=yes
23219fi
23220if test -z "$ac_cpp_err"; then
23221 ac_header_preproc=yes
23222else
23223 echo "$as_me: failed program was:" >&5
23224sed 's/^/| /' conftest.$ac_ext >&5
23225
23226 ac_header_preproc=no
23227fi
23228rm -f conftest.err conftest.$ac_ext
23229echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23230echo "${ECHO_T}$ac_header_preproc" >&6
23231
23232# So? What about this header?
ac1cb8d3
VS
23233case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
23234 yes:no: )
bdcade0a
MB
23235 { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
23236echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23237 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5
23238echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;}
23239 ac_header_preproc=yes
bdcade0a 23240 ;;
ac1cb8d3 23241 no:yes:* )
bdcade0a
MB
23242 { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5
23243echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23244 { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5
23245echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;}
23246 { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5
23247echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;}
23248 { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5
23249echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
23250 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5
23251echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23252 { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5
23253echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
23254 (
23255 cat <<\_ASBOX
ac1cb8d3
VS
23256## ----------------------------------------- ##
23257## Report this to wx-dev@lists.wxwidgets.org ##
23258## ----------------------------------------- ##
bdcade0a
MB
23259_ASBOX
23260 ) |
23261 sed "s/^/$as_me: WARNING: /" >&2
23262 ;;
23263esac
23264echo "$as_me:$LINENO: checking for hash_map" >&5
23265echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
23266if test "${ac_cv_header_hash_map+set}" = set; then
23267 echo $ECHO_N "(cached) $ECHO_C" >&6
23268else
23269 ac_cv_header_hash_map=$ac_header_preproc
23270fi
23271echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
23272echo "${ECHO_T}$ac_cv_header_hash_map" >&6
23273
23274fi
23275if test $ac_cv_header_hash_map = yes; then
23276 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
23277echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
23278 cat >conftest.$ac_ext <<_ACEOF
23279/* confdefs.h. */
23280_ACEOF
23281cat confdefs.h >>conftest.$ac_ext
23282cat >>conftest.$ac_ext <<_ACEOF
23283/* end confdefs.h. */
23284#include <hash_map>
23285 #include <hash_set>
23286int
23287main ()
23288{
23289std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
23290 std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
23291 ;
23292 return 0;
23293}
23294_ACEOF
23295rm -f conftest.$ac_objext
23296if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23297 (eval $ac_compile) 2>conftest.er1
bdcade0a 23298 ac_status=$?
ac1cb8d3
VS
23299 grep -v '^ *+' conftest.er1 >conftest.err
23300 rm -f conftest.er1
23301 cat conftest.err >&5
bdcade0a
MB
23302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23303 (exit $ac_status); } &&
f10e38c4 23304 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23306 (eval $ac_try) 2>&5
23307 ac_status=$?
23308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23309 (exit $ac_status); }; } &&
23310 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
23311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23312 (eval $ac_try) 2>&5
23313 ac_status=$?
23314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23315 (exit $ac_status); }; }; then
23316 echo "$as_me:$LINENO: result: yes" >&5
23317echo "${ECHO_T}yes" >&6
23318 cat >>confdefs.h <<\_ACEOF
23319#define HAVE_HASH_MAP 1
23320_ACEOF
23321
23322 cat >>confdefs.h <<\_ACEOF
23323#define HAVE_STD_HASH_MAP 1
23324_ACEOF
23325
23326else
23327 echo "$as_me: failed program was:" >&5
23328sed 's/^/| /' conftest.$ac_ext >&5
23329
23330echo "$as_me:$LINENO: result: no" >&5
23331echo "${ECHO_T}no" >&6
23332fi
ac1cb8d3 23333rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
23334
23335fi
23336
23337
23338
23339 if test "${ac_cv_header_ext_hash_map+set}" = set; then
23340 echo "$as_me:$LINENO: checking for ext/hash_map" >&5
23341echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
23342if test "${ac_cv_header_ext_hash_map+set}" = set; then
23343 echo $ECHO_N "(cached) $ECHO_C" >&6
23344fi
23345echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
23346echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
23347else
23348 # Is the header compilable?
23349echo "$as_me:$LINENO: checking ext/hash_map usability" >&5
23350echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6
23351cat >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$ac_includes_default
23358#include <ext/hash_map>
23359_ACEOF
23360rm -f conftest.$ac_objext
23361if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23362 (eval $ac_compile) 2>conftest.er1
bdcade0a 23363 ac_status=$?
ac1cb8d3
VS
23364 grep -v '^ *+' conftest.er1 >conftest.err
23365 rm -f conftest.er1
23366 cat conftest.err >&5
bdcade0a
MB
23367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23368 (exit $ac_status); } &&
f10e38c4 23369 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23371 (eval $ac_try) 2>&5
23372 ac_status=$?
23373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23374 (exit $ac_status); }; } &&
23375 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
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); }; }; then
23381 ac_header_compiler=yes
23382else
23383 echo "$as_me: failed program was:" >&5
23384sed 's/^/| /' conftest.$ac_ext >&5
23385
23386ac_header_compiler=no
23387fi
ac1cb8d3 23388rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
23389echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23390echo "${ECHO_T}$ac_header_compiler" >&6
23391
23392# Is the header present?
23393echo "$as_me:$LINENO: checking ext/hash_map presence" >&5
23394echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6
23395cat >conftest.$ac_ext <<_ACEOF
23396/* confdefs.h. */
23397_ACEOF
23398cat confdefs.h >>conftest.$ac_ext
23399cat >>conftest.$ac_ext <<_ACEOF
23400/* end confdefs.h. */
23401#include <ext/hash_map>
23402_ACEOF
23403if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23404 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23405 ac_status=$?
23406 grep -v '^ *+' conftest.er1 >conftest.err
23407 rm -f conftest.er1
23408 cat conftest.err >&5
23409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23410 (exit $ac_status); } >/dev/null; then
23411 if test -s conftest.err; then
23412 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 23413 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
23414 else
23415 ac_cpp_err=
23416 fi
23417else
23418 ac_cpp_err=yes
23419fi
23420if test -z "$ac_cpp_err"; then
23421 ac_header_preproc=yes
23422else
23423 echo "$as_me: failed program was:" >&5
23424sed 's/^/| /' conftest.$ac_ext >&5
23425
23426 ac_header_preproc=no
23427fi
23428rm -f conftest.err conftest.$ac_ext
23429echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23430echo "${ECHO_T}$ac_header_preproc" >&6
23431
23432# So? What about this header?
ac1cb8d3
VS
23433case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
23434 yes:no: )
bdcade0a
MB
23435 { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
23436echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23437 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5
23438echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;}
23439 ac_header_preproc=yes
bdcade0a 23440 ;;
ac1cb8d3 23441 no:yes:* )
bdcade0a
MB
23442 { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5
23443echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23444 { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5
23445echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;}
23446 { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5
23447echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;}
23448 { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5
23449echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
23450 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5
23451echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23452 { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5
23453echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
23454 (
23455 cat <<\_ASBOX
ac1cb8d3
VS
23456## ----------------------------------------- ##
23457## Report this to wx-dev@lists.wxwidgets.org ##
23458## ----------------------------------------- ##
bdcade0a
MB
23459_ASBOX
23460 ) |
23461 sed "s/^/$as_me: WARNING: /" >&2
23462 ;;
23463esac
23464echo "$as_me:$LINENO: checking for ext/hash_map" >&5
23465echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
23466if test "${ac_cv_header_ext_hash_map+set}" = set; then
23467 echo $ECHO_N "(cached) $ECHO_C" >&6
23468else
23469 ac_cv_header_ext_hash_map=$ac_header_preproc
23470fi
23471echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
23472echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
23473
23474fi
23475if test $ac_cv_header_ext_hash_map = yes; then
23476 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
23477echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
23478 cat >conftest.$ac_ext <<_ACEOF
23479/* confdefs.h. */
23480_ACEOF
23481cat confdefs.h >>conftest.$ac_ext
23482cat >>conftest.$ac_ext <<_ACEOF
23483/* end confdefs.h. */
23484#include <ext/hash_map>
23485 #include <ext/hash_set>
23486int
23487main ()
23488{
23489__gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
23490 __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
23491 ;
23492 return 0;
23493}
23494_ACEOF
23495rm -f conftest.$ac_objext
23496if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23497 (eval $ac_compile) 2>conftest.er1
bdcade0a 23498 ac_status=$?
ac1cb8d3
VS
23499 grep -v '^ *+' conftest.er1 >conftest.err
23500 rm -f conftest.er1
23501 cat conftest.err >&5
bdcade0a
MB
23502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23503 (exit $ac_status); } &&
f10e38c4 23504 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23506 (eval $ac_try) 2>&5
23507 ac_status=$?
23508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23509 (exit $ac_status); }; } &&
23510 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
23511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23512 (eval $ac_try) 2>&5
23513 ac_status=$?
23514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23515 (exit $ac_status); }; }; then
23516 echo "$as_me:$LINENO: result: yes" >&5
23517echo "${ECHO_T}yes" >&6
23518 cat >>confdefs.h <<\_ACEOF
23519#define HAVE_EXT_HASH_MAP 1
23520_ACEOF
23521
23522 cat >>confdefs.h <<\_ACEOF
23523#define HAVE_GNU_CXX_HASH_MAP 1
23524_ACEOF
23525
23526else
23527 echo "$as_me: failed program was:" >&5
23528sed 's/^/| /' conftest.$ac_ext >&5
23529
23530echo "$as_me:$LINENO: result: no" >&5
23531echo "${ECHO_T}no" >&6
23532fi
ac1cb8d3 23533rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
23534
23535fi
23536
23537
a848cd7e
SC
23538
23539 ac_ext=c
23540ac_cpp='$CPP $CPPFLAGS'
23541ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23542ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23543ac_compiler_gnu=$ac_cv_c_compiler_gnu
23544
23545fi
23546
23547
23548SEARCH_INCLUDE="\
23549 /usr/local/include \
23550 \
23551 /usr/Motif-2.1/include \
23552 /usr/Motif-1.2/include \
23553 /usr/include/Motif1.2 \
a848cd7e
SC
23554 \
23555 /usr/dt/include \
23556 /usr/openwin/include \
23557 \
23558 /usr/include/Xm \
23559 \
23560 /usr/X11R6/include \
23561 /usr/X11R6.4/include \
23562 /usr/X11R5/include \
23563 /usr/X11R4/include \
23564 \
23565 /usr/include/X11R6 \
23566 /usr/include/X11R5 \
23567 /usr/include/X11R4 \
23568 \
23569 /usr/local/X11R6/include \
23570 /usr/local/X11R5/include \
23571 /usr/local/X11R4/include \
23572 \
23573 /usr/local/include/X11R6 \
23574 /usr/local/include/X11R5 \
23575 /usr/local/include/X11R4 \
23576 \
23577 /usr/X11/include \
23578 /usr/include/X11 \
23579 /usr/local/X11/include \
23580 /usr/local/include/X11 \
23581 \
a848cd7e 23582 /usr/XFree86/include/X11 \
e051b34e
MW
23583 /usr/pkg/include \
23584 \
a848cd7e
SC
23585 /usr/openwin/share/include"
23586
6f9cf1e6 23587echo "$as_me:$LINENO: checking for libraries directory" >&5
0ad5d837 23588echo $ECHO_N "checking for libraries directory... $ECHO_C" >&6
6f9cf1e6
MW
23589
23590case "${host}" in
23591 *-*-irix6* )
23592 if test "${wx_cv_std_libpath+set}" = set; then
0ad5d837
VZ
23593 echo $ECHO_N "(cached) $ECHO_C" >&6
23594else
23595
c687b303
VZ
23596 for d in /usr/lib /usr/lib32 /usr/lib/64 /usr/lib64; do
23597 for e in a so sl dylib dll.a; do
23598 libc="$d/libc.$e"
23599 if test -f $libc; then
23600 save_LIBS="$LIBS"
23601 LIBS="$libc"
23602 cat >conftest.$ac_ext <<_ACEOF
0ad5d837
VZ
23603int main() { return 0; }
23604_ACEOF
23605rm -f conftest.$ac_objext conftest$ac_exeext
23606if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23607 (eval $ac_link) 2>conftest.er1
23608 ac_status=$?
23609 grep -v '^ *+' conftest.er1 >conftest.err
23610 rm -f conftest.er1
23611 cat conftest.err >&5
23612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23613 (exit $ac_status); } &&
f10e38c4 23614 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
0ad5d837
VZ
23615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23616 (eval $ac_try) 2>&5
23617 ac_status=$?
23618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23619 (exit $ac_status); }; } &&
23620 { ac_try='test -s conftest$ac_exeext'
23621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23622 (eval $ac_try) 2>&5
23623 ac_status=$?
23624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23625 (exit $ac_status); }; }; then
23626 wx_cv_std_libpath=`echo $d | sed s@/usr/@@`
23627else
23628 echo "$as_me: failed program was:" >&5
23629sed 's/^/| /' conftest.$ac_ext >&5
23630
23631fi
23632rm -f conftest.err conftest.$ac_objext \
23633 conftest$ac_exeext conftest.$ac_ext
c687b303
VZ
23634 LIBS="$save_LIBS"
23635 if test "x$wx_cv_std_libpath" != "x"; then
23636 break 2
23637 fi
23638 fi
23639 done
23640 done
23641 if test "x$wx_cv_std_libpath" = "x"; then
23642 wx_cv_std_libpath="lib"
0ad5d837 23643 fi
0ad5d837
VZ
23644
23645
23646fi
6f9cf1e6
MW
23647
23648 ;;
23649
23650 *-*-solaris2* )
23651 if test "$ac_cv_sizeof_void_p" = 8 -a -d "/usr/lib/64"; then
23652 wx_cv_std_libpath="lib/64"
23653 else
23654 wx_cv_std_libpath="lib"
23655 fi
23656 ;;
23657
23658 *-*-linux* )
23659 if test "$ac_cv_sizeof_void_p" = 8 -a \
23660 -d "/usr/lib64" -a ! -h "/usr/lib64"; then
23661 wx_cv_std_libpath="lib64"
23662 else
23663 wx_cv_std_libpath="lib"
23664 fi
c687b303
VZ
23665 ;;
23666
23667 *)
23668 wx_cv_std_libpath="lib";
23669 ;;
23670esac
0ad5d837 23671
6f9cf1e6
MW
23672echo "$as_me:$LINENO: result: $wx_cv_std_libpath" >&5
23673echo "${ECHO_T}$wx_cv_std_libpath" >&6
23674
23675SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s@include@$wx_cv_std_libpath@g` /usr/$wx_cv_std_libpath"
a848cd7e 23676
3eca31dc
MW
23677if test "$build" != "$host" -a "$GCC" = yes; then
23678 if cross_root=`$CC -print-prog-name=ld 2>/dev/null`; then
23679 cross_root=`dirname $cross_root`
23680 cross_root=`dirname $cross_root`
23681
23682 SEARCH_LIB=`for x in $SEARCH_LIB; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
23683 SEARCH_INCLUDE=`for x in $SEARCH_INCLUDE; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
5c60e845 23684 SEARCH_INCLUDE="$SEARCH_INCLUDE $cross_root/include"
3eca31dc
MW
23685
23686 if test -z "$PKG_CONFIG_PATH"; then
23687 PKG_CONFIG_PATH="$cross_root/local/lib/pkgconfig:$cross_root/lib/pkgconfig"
23688 export PKG_CONFIG_PATH
23689 fi
23690
23691 if test -z "$x_includes" -o "$x_includes" = NONE; then
23692
23693ac_find_includes=
23694for ac_dir in $SEARCH_INCLUDE /usr/include;
23695 do
23696 if test -f "$ac_dir/X11/Intrinsic.h"; then
23697 ac_find_includes=$ac_dir
23698 break
23699 fi
23700 done
23701
23702 x_includes=$ac_find_includes
23703 fi
23704 if test -z "$x_libraries" -o "$x_libraries" = NONE; then
23705
0ad5d837
VZ
23706 ac_find_libraries=
23707 for ac_dir in $SEARCH_LIB;
3eca31dc
MW
23708 do
23709 for ac_extension in a so sl dylib dll.a; do
23710 if test -f "$ac_dir/libXt.$ac_extension"; then
23711 ac_find_libraries=$ac_dir
23712 break 2
23713 fi
23714 done
23715 done
23716
23717 x_libraries=$ac_find_libraries
23718 fi
23719 fi
23720fi
23721
a848cd7e
SC
23722
23723cat >confcache <<\_ACEOF
23724# This file is a shell script that caches the results of configure
23725# tests run on this system so they can be shared between configure
23726# scripts and configure runs, see configure's option --config-cache.
23727# It is not useful on other systems. If it contains results you don't
23728# want to keep, you may remove or edit it.
23729#
23730# config.status only pays attention to the cache file if you give it
23731# the --recheck option to rerun configure.
23732#
23733# `ac_cv_env_foo' variables (set or unset) will be overridden when
23734# loading this file, other *unset* `ac_cv_foo' will be assigned the
23735# following values.
23736
23737_ACEOF
23738
23739# The following way of writing the cache mishandles newlines in values,
23740# but we know of no workaround that is simple, portable, and efficient.
23741# So, don't put newlines in cache variables' values.
23742# Ultrix sh set writes to stderr and can't be redirected directly,
23743# and sets the high bit in the cache file unless we assign to the vars.
23744{
23745 (set) 2>&1 |
23746 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23747 *ac_space=\ *)
23748 # `set' does not quote correctly, so add quotes (double-quote
23749 # substitution turns \\\\ into \\, and sed turns \\ into \).
23750 sed -n \
ac1cb8d3
VS
23751 "s/'/'\\\\''/g;
23752 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
23753 ;;
23754 *)
23755 # `set' quotes correctly as required by POSIX, so do not add quotes.
23756 sed -n \
ac1cb8d3 23757 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
23758 ;;
23759 esac;
23760} |
23761 sed '
23762 t clear
23763 : clear
23764 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23765 t end
23766 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23767 : end' >>confcache
23768if diff $cache_file confcache >/dev/null 2>&1; then :; else
23769 if test -w $cache_file; then
23770 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23771 cat confcache >$cache_file
23772 else
23773 echo "not updating unwritable cache $cache_file"
23774 fi
23775fi
23776rm -f confcache
23777
23778if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
23779 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
23780echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
23781if test "${wx_cv_lib_glibc21+set}" = set; then
23782 echo $ECHO_N "(cached) $ECHO_C" >&6
23783else
23784
23785 cat >conftest.$ac_ext <<_ACEOF
23786/* confdefs.h. */
23787_ACEOF
23788cat confdefs.h >>conftest.$ac_ext
23789cat >>conftest.$ac_ext <<_ACEOF
23790/* end confdefs.h. */
23791#include <features.h>
23792int
23793main ()
23794{
23795
23796 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
04e525a0 23797 not glibc 2.1
a848cd7e
SC
23798 #endif
23799
23800 ;
23801 return 0;
23802}
23803_ACEOF
23804rm -f conftest.$ac_objext
23805if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23806 (eval $ac_compile) 2>conftest.er1
a848cd7e 23807 ac_status=$?
ac1cb8d3
VS
23808 grep -v '^ *+' conftest.er1 >conftest.err
23809 rm -f conftest.er1
23810 cat conftest.err >&5
a848cd7e
SC
23811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23812 (exit $ac_status); } &&
f10e38c4 23813 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23815 (eval $ac_try) 2>&5
23816 ac_status=$?
23817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23818 (exit $ac_status); }; } &&
23819 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23821 (eval $ac_try) 2>&5
23822 ac_status=$?
23823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23824 (exit $ac_status); }; }; then
23825
23826 wx_cv_lib_glibc21=yes
23827
23828else
23829 echo "$as_me: failed program was:" >&5
23830sed 's/^/| /' conftest.$ac_ext >&5
23831
23832
23833 wx_cv_lib_glibc21=no
23834
23835
23836fi
ac1cb8d3 23837rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23838
23839fi
23840echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
23841echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
23842 if test "$wx_cv_lib_glibc21" = "yes"; then
23843 cat >>confdefs.h <<\_ACEOF
23844#define wxHAVE_GLIBC2 1
23845_ACEOF
23846
23847 fi
23848fi
23849
23850if test "x$wx_cv_lib_glibc21" = "xyes"; then
23851 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
23852 cat >>confdefs.h <<\_ACEOF
23853#define _GNU_SOURCE 1
23854_ACEOF
23855
23856 fi
23857fi
23858
23859
23860
23861if test "$wxUSE_REGEX" != "no"; then
23862 cat >>confdefs.h <<\_ACEOF
23863#define wxUSE_REGEX 1
23864_ACEOF
23865
23866
23867 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
23868 { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
23869echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
23870 wxUSE_REGEX=builtin
23871 fi
23872
23873 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
23874 if test "${ac_cv_header_regex_h+set}" = set; then
23875 echo "$as_me:$LINENO: checking for regex.h" >&5
23876echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
23877if test "${ac_cv_header_regex_h+set}" = set; then
23878 echo $ECHO_N "(cached) $ECHO_C" >&6
23879fi
23880echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
23881echo "${ECHO_T}$ac_cv_header_regex_h" >&6
23882else
23883 # Is the header compilable?
23884echo "$as_me:$LINENO: checking regex.h usability" >&5
23885echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
23886cat >conftest.$ac_ext <<_ACEOF
23887/* confdefs.h. */
23888_ACEOF
23889cat confdefs.h >>conftest.$ac_ext
23890cat >>conftest.$ac_ext <<_ACEOF
23891/* end confdefs.h. */
23892$ac_includes_default
23893#include <regex.h>
23894_ACEOF
23895rm -f conftest.$ac_objext
23896if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23897 (eval $ac_compile) 2>conftest.er1
a848cd7e 23898 ac_status=$?
ac1cb8d3
VS
23899 grep -v '^ *+' conftest.er1 >conftest.err
23900 rm -f conftest.er1
23901 cat conftest.err >&5
a848cd7e
SC
23902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23903 (exit $ac_status); } &&
f10e38c4 23904 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23906 (eval $ac_try) 2>&5
23907 ac_status=$?
23908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23909 (exit $ac_status); }; } &&
23910 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23912 (eval $ac_try) 2>&5
23913 ac_status=$?
23914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23915 (exit $ac_status); }; }; then
23916 ac_header_compiler=yes
23917else
23918 echo "$as_me: failed program was:" >&5
23919sed 's/^/| /' conftest.$ac_ext >&5
23920
23921ac_header_compiler=no
23922fi
ac1cb8d3 23923rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23924echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23925echo "${ECHO_T}$ac_header_compiler" >&6
23926
23927# Is the header present?
23928echo "$as_me:$LINENO: checking regex.h presence" >&5
23929echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
23930cat >conftest.$ac_ext <<_ACEOF
23931/* confdefs.h. */
23932_ACEOF
23933cat confdefs.h >>conftest.$ac_ext
23934cat >>conftest.$ac_ext <<_ACEOF
23935/* end confdefs.h. */
23936#include <regex.h>
23937_ACEOF
23938if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23939 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23940 ac_status=$?
23941 grep -v '^ *+' conftest.er1 >conftest.err
23942 rm -f conftest.er1
23943 cat conftest.err >&5
23944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23945 (exit $ac_status); } >/dev/null; then
23946 if test -s conftest.err; then
23947 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 23948 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
23949 else
23950 ac_cpp_err=
23951 fi
23952else
23953 ac_cpp_err=yes
23954fi
23955if test -z "$ac_cpp_err"; then
23956 ac_header_preproc=yes
23957else
23958 echo "$as_me: failed program was:" >&5
23959sed 's/^/| /' conftest.$ac_ext >&5
23960
23961 ac_header_preproc=no
23962fi
23963rm -f conftest.err conftest.$ac_ext
23964echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23965echo "${ECHO_T}$ac_header_preproc" >&6
23966
23967# So? What about this header?
ac1cb8d3
VS
23968case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23969 yes:no: )
a848cd7e
SC
23970 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
23971echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23972 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
23973echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
23974 ac_header_preproc=yes
a848cd7e 23975 ;;
ac1cb8d3 23976 no:yes:* )
a848cd7e
SC
23977 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
23978echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23979 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
23980echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
23981 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
23982echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
23983 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
23984echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
23985 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
23986echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23987 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
23988echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
23989 (
23990 cat <<\_ASBOX
ac1cb8d3
VS
23991## ----------------------------------------- ##
23992## Report this to wx-dev@lists.wxwidgets.org ##
23993## ----------------------------------------- ##
a848cd7e
SC
23994_ASBOX
23995 ) |
23996 sed "s/^/$as_me: WARNING: /" >&2
23997 ;;
23998esac
23999echo "$as_me:$LINENO: checking for regex.h" >&5
24000echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
24001if test "${ac_cv_header_regex_h+set}" = set; then
24002 echo $ECHO_N "(cached) $ECHO_C" >&6
24003else
24004 ac_cv_header_regex_h=$ac_header_preproc
24005fi
24006echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
24007echo "${ECHO_T}$ac_cv_header_regex_h" >&6
24008
24009fi
24010if test $ac_cv_header_regex_h = yes; then
24011
ab0f0edd
MW
24012
24013for ac_func in regcomp re_search
a848cd7e
SC
24014do
24015as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24016echo "$as_me:$LINENO: checking for $ac_func" >&5
24017echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24018if eval "test \"\${$as_ac_var+set}\" = set"; then
24019 echo $ECHO_N "(cached) $ECHO_C" >&6
24020else
24021 cat >conftest.$ac_ext <<_ACEOF
24022/* confdefs.h. */
24023_ACEOF
24024cat confdefs.h >>conftest.$ac_ext
24025cat >>conftest.$ac_ext <<_ACEOF
24026/* end confdefs.h. */
ac1cb8d3
VS
24027/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24028 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24029#define $ac_func innocuous_$ac_func
24030
a848cd7e
SC
24031/* System header to define __stub macros and hopefully few prototypes,
24032 which can conflict with char $ac_func (); below.
24033 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24034 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 24035
a848cd7e
SC
24036#ifdef __STDC__
24037# include <limits.h>
24038#else
24039# include <assert.h>
24040#endif
ac1cb8d3
VS
24041
24042#undef $ac_func
24043
a848cd7e
SC
24044/* Override any gcc2 internal prototype to avoid an error. */
24045#ifdef __cplusplus
24046extern "C"
24047{
24048#endif
24049/* We use char because int might match the return type of a gcc2
24050 builtin and then its argument prototype would still apply. */
24051char $ac_func ();
24052/* The GNU C library defines this for functions which it implements
24053 to always fail with ENOSYS. Some functions are actually named
24054 something starting with __ and the normal name is an alias. */
24055#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24056choke me
24057#else
24058char (*f) () = $ac_func;
24059#endif
24060#ifdef __cplusplus
24061}
24062#endif
24063
24064int
24065main ()
24066{
24067return f != $ac_func;
24068 ;
24069 return 0;
24070}
24071_ACEOF
24072rm -f conftest.$ac_objext conftest$ac_exeext
24073if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24074 (eval $ac_link) 2>conftest.er1
a848cd7e 24075 ac_status=$?
ac1cb8d3
VS
24076 grep -v '^ *+' conftest.er1 >conftest.err
24077 rm -f conftest.er1
24078 cat conftest.err >&5
a848cd7e
SC
24079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24080 (exit $ac_status); } &&
f10e38c4 24081 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24083 (eval $ac_try) 2>&5
24084 ac_status=$?
24085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24086 (exit $ac_status); }; } &&
24087 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24089 (eval $ac_try) 2>&5
24090 ac_status=$?
24091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24092 (exit $ac_status); }; }; then
24093 eval "$as_ac_var=yes"
24094else
24095 echo "$as_me: failed program was:" >&5
24096sed 's/^/| /' conftest.$ac_ext >&5
24097
24098eval "$as_ac_var=no"
24099fi
ac1cb8d3
VS
24100rm -f conftest.err conftest.$ac_objext \
24101 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24102fi
24103echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24104echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24105if test `eval echo '${'$as_ac_var'}'` = yes; then
24106 cat >>confdefs.h <<_ACEOF
24107#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24108_ACEOF
24109
24110fi
24111done
24112
24113fi
24114
24115
24116
24117 if test "x$ac_cv_func_regcomp" != "xyes"; then
24118 if test "$wxUSE_REGEX" = "sys" ; then
24119 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
24120echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
24121 { (exit 1); exit 1; }; }
24122 else
24123 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
24124echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
24125 wxUSE_REGEX=builtin
24126 fi
24127 else
24128 wxUSE_REGEX=sys
24129 cat >>confdefs.h <<\_ACEOF
24130#define WX_NO_REGEX_ADVANCED 1
24131_ACEOF
24132
24133 fi
24134 fi
24135fi
24136
24137
24138ZLIB_LINK=
24139if test "$wxUSE_ZLIB" != "no" ; then
24140 cat >>confdefs.h <<\_ACEOF
24141#define wxUSE_ZLIB 1
24142_ACEOF
24143
24144
24145 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
24146 if test "$USE_DARWIN" = 1; then
24147 system_zlib_h_ok="yes"
24148 else
24149 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
24150echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
24151if test "${ac_cv_header_zlib_h+set}" = set; then
24152 echo $ECHO_N "(cached) $ECHO_C" >&6
24153else
24154 if test "$cross_compiling" = yes; then
24155 unset ac_cv_header_zlib_h
24156
24157else
24158 cat >conftest.$ac_ext <<_ACEOF
24159/* confdefs.h. */
24160_ACEOF
24161cat confdefs.h >>conftest.$ac_ext
24162cat >>conftest.$ac_ext <<_ACEOF
24163/* end confdefs.h. */
24164
24165 #include <zlib.h>
24166 #include <stdio.h>
24167
24168 int main()
24169 {
24170 FILE *f=fopen("conftestval", "w");
24171 if (!f) exit(1);
24172 fprintf(f, "%s",
24173 ZLIB_VERSION[0] == '1' &&
24174 (ZLIB_VERSION[2] > '1' ||
24175 (ZLIB_VERSION[2] == '1' &&
24176 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
24177 exit(0);
24178 }
24179
24180_ACEOF
24181rm -f conftest$ac_exeext
24182if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24183 (eval $ac_link) 2>&5
24184 ac_status=$?
24185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24186 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24188 (eval $ac_try) 2>&5
24189 ac_status=$?
24190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24191 (exit $ac_status); }; }; then
24192 ac_cv_header_zlib_h=`cat conftestval`
24193else
24194 echo "$as_me: program exited with status $ac_status" >&5
24195echo "$as_me: failed program was:" >&5
24196sed 's/^/| /' conftest.$ac_ext >&5
24197
24198( exit $ac_status )
24199ac_cv_header_zlib_h=no
24200fi
ac1cb8d3 24201rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24202fi
24203
24204fi
24205echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
24206echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
24207 if test "${ac_cv_header_zlib_h+set}" = set; then
24208 echo "$as_me:$LINENO: checking for zlib.h" >&5
24209echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
24210if test "${ac_cv_header_zlib_h+set}" = set; then
24211 echo $ECHO_N "(cached) $ECHO_C" >&6
24212fi
24213echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
24214echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
24215else
24216 # Is the header compilable?
24217echo "$as_me:$LINENO: checking zlib.h usability" >&5
24218echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
24219cat >conftest.$ac_ext <<_ACEOF
24220/* confdefs.h. */
24221_ACEOF
24222cat confdefs.h >>conftest.$ac_ext
24223cat >>conftest.$ac_ext <<_ACEOF
24224/* end confdefs.h. */
24225$ac_includes_default
24226#include <zlib.h>
24227_ACEOF
24228rm -f conftest.$ac_objext
24229if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24230 (eval $ac_compile) 2>conftest.er1
a848cd7e 24231 ac_status=$?
ac1cb8d3
VS
24232 grep -v '^ *+' conftest.er1 >conftest.err
24233 rm -f conftest.er1
24234 cat conftest.err >&5
a848cd7e
SC
24235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24236 (exit $ac_status); } &&
f10e38c4 24237 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24239 (eval $ac_try) 2>&5
24240 ac_status=$?
24241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24242 (exit $ac_status); }; } &&
24243 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24245 (eval $ac_try) 2>&5
24246 ac_status=$?
24247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24248 (exit $ac_status); }; }; then
24249 ac_header_compiler=yes
24250else
24251 echo "$as_me: failed program was:" >&5
24252sed 's/^/| /' conftest.$ac_ext >&5
24253
24254ac_header_compiler=no
24255fi
ac1cb8d3 24256rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24257echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24258echo "${ECHO_T}$ac_header_compiler" >&6
24259
24260# Is the header present?
24261echo "$as_me:$LINENO: checking zlib.h presence" >&5
24262echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
24263cat >conftest.$ac_ext <<_ACEOF
24264/* confdefs.h. */
24265_ACEOF
24266cat confdefs.h >>conftest.$ac_ext
24267cat >>conftest.$ac_ext <<_ACEOF
24268/* end confdefs.h. */
24269#include <zlib.h>
24270_ACEOF
24271if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24272 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24273 ac_status=$?
24274 grep -v '^ *+' conftest.er1 >conftest.err
24275 rm -f conftest.er1
24276 cat conftest.err >&5
24277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24278 (exit $ac_status); } >/dev/null; then
24279 if test -s conftest.err; then
24280 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 24281 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
24282 else
24283 ac_cpp_err=
24284 fi
24285else
24286 ac_cpp_err=yes
24287fi
24288if test -z "$ac_cpp_err"; then
24289 ac_header_preproc=yes
24290else
24291 echo "$as_me: failed program was:" >&5
24292sed 's/^/| /' conftest.$ac_ext >&5
24293
24294 ac_header_preproc=no
24295fi
24296rm -f conftest.err conftest.$ac_ext
24297echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24298echo "${ECHO_T}$ac_header_preproc" >&6
24299
24300# So? What about this header?
ac1cb8d3
VS
24301case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24302 yes:no: )
a848cd7e
SC
24303 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
24304echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
24305 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
24306echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
24307 ac_header_preproc=yes
a848cd7e 24308 ;;
ac1cb8d3 24309 no:yes:* )
a848cd7e
SC
24310 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
24311echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
24312 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
24313echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
24314 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
24315echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
24316 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
24317echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
24318 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
24319echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
24320 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
24321echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
24322 (
24323 cat <<\_ASBOX
ac1cb8d3
VS
24324## ----------------------------------------- ##
24325## Report this to wx-dev@lists.wxwidgets.org ##
24326## ----------------------------------------- ##
a848cd7e
SC
24327_ASBOX
24328 ) |
24329 sed "s/^/$as_me: WARNING: /" >&2
24330 ;;
24331esac
24332echo "$as_me:$LINENO: checking for zlib.h" >&5
24333echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
24334if test "${ac_cv_header_zlib_h+set}" = set; then
24335 echo $ECHO_N "(cached) $ECHO_C" >&6
24336else
24337 ac_cv_header_zlib_h=$ac_header_preproc
24338fi
24339echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
24340echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
24341
24342fi
24343
24344
24345
24346 system_zlib_h_ok=$ac_cv_header_zlib_h
24347 fi
24348
24349 if test "$system_zlib_h_ok" = "yes"; then
24350 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
24351echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
24352if test "${ac_cv_lib_z_deflate+set}" = set; then
24353 echo $ECHO_N "(cached) $ECHO_C" >&6
24354else
24355 ac_check_lib_save_LIBS=$LIBS
24356LIBS="-lz $LIBS"
24357cat >conftest.$ac_ext <<_ACEOF
24358/* confdefs.h. */
24359_ACEOF
24360cat confdefs.h >>conftest.$ac_ext
24361cat >>conftest.$ac_ext <<_ACEOF
24362/* end confdefs.h. */
24363
24364/* Override any gcc2 internal prototype to avoid an error. */
24365#ifdef __cplusplus
24366extern "C"
24367#endif
24368/* We use char because int might match the return type of a gcc2
24369 builtin and then its argument prototype would still apply. */
24370char deflate ();
24371int
24372main ()
24373{
24374deflate ();
24375 ;
24376 return 0;
24377}
24378_ACEOF
24379rm -f conftest.$ac_objext conftest$ac_exeext
24380if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24381 (eval $ac_link) 2>conftest.er1
a848cd7e 24382 ac_status=$?
ac1cb8d3
VS
24383 grep -v '^ *+' conftest.er1 >conftest.err
24384 rm -f conftest.er1
24385 cat conftest.err >&5
a848cd7e
SC
24386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24387 (exit $ac_status); } &&
f10e38c4 24388 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24390 (eval $ac_try) 2>&5
24391 ac_status=$?
24392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24393 (exit $ac_status); }; } &&
24394 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24396 (eval $ac_try) 2>&5
24397 ac_status=$?
24398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24399 (exit $ac_status); }; }; then
24400 ac_cv_lib_z_deflate=yes
24401else
24402 echo "$as_me: failed program was:" >&5
24403sed 's/^/| /' conftest.$ac_ext >&5
24404
24405ac_cv_lib_z_deflate=no
24406fi
ac1cb8d3
VS
24407rm -f conftest.err conftest.$ac_objext \
24408 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24409LIBS=$ac_check_lib_save_LIBS
24410fi
24411echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
24412echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
24413if test $ac_cv_lib_z_deflate = yes; then
24414 ZLIB_LINK=" -lz"
24415fi
24416
24417 fi
24418
24419 if test "x$ZLIB_LINK" = "x" ; then
24420 if test "$wxUSE_ZLIB" = "sys" ; then
24421 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
24422echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
24423 { (exit 1); exit 1; }; }
24424 else
24425 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
24426echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
24427 wxUSE_ZLIB=builtin
24428 fi
24429 else
24430 wxUSE_ZLIB=sys
24431 fi
24432 fi
24433fi
24434
24435
24436PNG_LINK=
24437if test "$wxUSE_LIBPNG" != "no" ; then
24438 cat >>confdefs.h <<\_ACEOF
24439#define wxUSE_LIBPNG 1
24440_ACEOF
24441
24442
24443 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
24444 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
24445echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
24446 wxUSE_LIBPNG=sys
24447 fi
24448
24449 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
24450 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
24451echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
24452 wxUSE_LIBPNG=builtin
24453 fi
24454
24455 if test "$wxUSE_MGL" != 1 ; then
24456 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
24457 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
24458echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
24459if test "${ac_cv_header_png_h+set}" = set; then
24460 echo $ECHO_N "(cached) $ECHO_C" >&6
24461else
24462 if test "$cross_compiling" = yes; then
24463 unset ac_cv_header_png_h
24464
24465else
24466 cat >conftest.$ac_ext <<_ACEOF
24467/* confdefs.h. */
24468_ACEOF
24469cat confdefs.h >>conftest.$ac_ext
24470cat >>conftest.$ac_ext <<_ACEOF
24471/* end confdefs.h. */
24472
24473 #include <png.h>
24474 #include <stdio.h>
24475
24476 int main()
24477 {
24478 FILE *f=fopen("conftestval", "w");
24479 if (!f) exit(1);
24480 fprintf(f, "%s",
24481 PNG_LIBPNG_VER > 90 ? "yes" : "no");
24482 exit(0);
24483 }
24484
24485_ACEOF
24486rm -f conftest$ac_exeext
24487if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24488 (eval $ac_link) 2>&5
24489 ac_status=$?
24490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24491 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24493 (eval $ac_try) 2>&5
24494 ac_status=$?
24495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24496 (exit $ac_status); }; }; then
24497 ac_cv_header_png_h=`cat conftestval`
24498else
24499 echo "$as_me: program exited with status $ac_status" >&5
24500echo "$as_me: failed program was:" >&5
24501sed 's/^/| /' conftest.$ac_ext >&5
24502
24503( exit $ac_status )
24504ac_cv_header_png_h=no
24505fi
ac1cb8d3 24506rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24507fi
24508
24509fi
24510echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
24511echo "${ECHO_T}$ac_cv_header_png_h" >&6
24512 if test "${ac_cv_header_png_h+set}" = set; then
24513 echo "$as_me:$LINENO: checking for png.h" >&5
24514echo $ECHO_N "checking for png.h... $ECHO_C" >&6
24515if test "${ac_cv_header_png_h+set}" = set; then
24516 echo $ECHO_N "(cached) $ECHO_C" >&6
24517fi
24518echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
24519echo "${ECHO_T}$ac_cv_header_png_h" >&6
24520else
24521 # Is the header compilable?
24522echo "$as_me:$LINENO: checking png.h usability" >&5
24523echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
24524cat >conftest.$ac_ext <<_ACEOF
24525/* confdefs.h. */
24526_ACEOF
24527cat confdefs.h >>conftest.$ac_ext
24528cat >>conftest.$ac_ext <<_ACEOF
24529/* end confdefs.h. */
24530$ac_includes_default
24531#include <png.h>
24532_ACEOF
24533rm -f conftest.$ac_objext
24534if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24535 (eval $ac_compile) 2>conftest.er1
a848cd7e 24536 ac_status=$?
ac1cb8d3
VS
24537 grep -v '^ *+' conftest.er1 >conftest.err
24538 rm -f conftest.er1
24539 cat conftest.err >&5
a848cd7e
SC
24540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24541 (exit $ac_status); } &&
f10e38c4 24542 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24544 (eval $ac_try) 2>&5
24545 ac_status=$?
24546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24547 (exit $ac_status); }; } &&
24548 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24550 (eval $ac_try) 2>&5
24551 ac_status=$?
24552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24553 (exit $ac_status); }; }; then
24554 ac_header_compiler=yes
24555else
24556 echo "$as_me: failed program was:" >&5
24557sed 's/^/| /' conftest.$ac_ext >&5
24558
24559ac_header_compiler=no
24560fi
ac1cb8d3 24561rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24562echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24563echo "${ECHO_T}$ac_header_compiler" >&6
24564
24565# Is the header present?
24566echo "$as_me:$LINENO: checking png.h presence" >&5
24567echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
24568cat >conftest.$ac_ext <<_ACEOF
24569/* confdefs.h. */
24570_ACEOF
24571cat confdefs.h >>conftest.$ac_ext
24572cat >>conftest.$ac_ext <<_ACEOF
24573/* end confdefs.h. */
24574#include <png.h>
24575_ACEOF
24576if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24577 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24578 ac_status=$?
24579 grep -v '^ *+' conftest.er1 >conftest.err
24580 rm -f conftest.er1
24581 cat conftest.err >&5
24582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24583 (exit $ac_status); } >/dev/null; then
24584 if test -s conftest.err; then
24585 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 24586 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
24587 else
24588 ac_cpp_err=
24589 fi
24590else
24591 ac_cpp_err=yes
24592fi
24593if test -z "$ac_cpp_err"; then
24594 ac_header_preproc=yes
24595else
24596 echo "$as_me: failed program was:" >&5
24597sed 's/^/| /' conftest.$ac_ext >&5
24598
24599 ac_header_preproc=no
24600fi
24601rm -f conftest.err conftest.$ac_ext
24602echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24603echo "${ECHO_T}$ac_header_preproc" >&6
24604
24605# So? What about this header?
ac1cb8d3
VS
24606case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24607 yes:no: )
a848cd7e
SC
24608 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
24609echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
24610 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
24611echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
24612 ac_header_preproc=yes
a848cd7e 24613 ;;
ac1cb8d3 24614 no:yes:* )
a848cd7e
SC
24615 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
24616echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
24617 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
24618echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
24619 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
24620echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
24621 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
24622echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
24623 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
24624echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
24625 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
24626echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
24627 (
24628 cat <<\_ASBOX
ac1cb8d3
VS
24629## ----------------------------------------- ##
24630## Report this to wx-dev@lists.wxwidgets.org ##
24631## ----------------------------------------- ##
a848cd7e
SC
24632_ASBOX
24633 ) |
24634 sed "s/^/$as_me: WARNING: /" >&2
24635 ;;
24636esac
24637echo "$as_me:$LINENO: checking for png.h" >&5
24638echo $ECHO_N "checking for png.h... $ECHO_C" >&6
24639if test "${ac_cv_header_png_h+set}" = set; then
24640 echo $ECHO_N "(cached) $ECHO_C" >&6
24641else
24642 ac_cv_header_png_h=$ac_header_preproc
24643fi
24644echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
24645echo "${ECHO_T}$ac_cv_header_png_h" >&6
24646
24647fi
24648
24649
24650
24651 if test "$ac_cv_header_png_h" = "yes"; then
24652 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
24653echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
24654if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
24655 echo $ECHO_N "(cached) $ECHO_C" >&6
24656else
24657 ac_check_lib_save_LIBS=$LIBS
24658LIBS="-lpng -lz -lm $LIBS"
24659cat >conftest.$ac_ext <<_ACEOF
24660/* confdefs.h. */
24661_ACEOF
24662cat confdefs.h >>conftest.$ac_ext
24663cat >>conftest.$ac_ext <<_ACEOF
24664/* end confdefs.h. */
24665
24666/* Override any gcc2 internal prototype to avoid an error. */
24667#ifdef __cplusplus
24668extern "C"
24669#endif
24670/* We use char because int might match the return type of a gcc2
24671 builtin and then its argument prototype would still apply. */
24672char png_check_sig ();
24673int
24674main ()
24675{
24676png_check_sig ();
24677 ;
24678 return 0;
24679}
24680_ACEOF
24681rm -f conftest.$ac_objext conftest$ac_exeext
24682if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24683 (eval $ac_link) 2>conftest.er1
a848cd7e 24684 ac_status=$?
ac1cb8d3
VS
24685 grep -v '^ *+' conftest.er1 >conftest.err
24686 rm -f conftest.er1
24687 cat conftest.err >&5
a848cd7e
SC
24688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24689 (exit $ac_status); } &&
f10e38c4 24690 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24692 (eval $ac_try) 2>&5
24693 ac_status=$?
24694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24695 (exit $ac_status); }; } &&
24696 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24698 (eval $ac_try) 2>&5
24699 ac_status=$?
24700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24701 (exit $ac_status); }; }; then
24702 ac_cv_lib_png_png_check_sig=yes
24703else
24704 echo "$as_me: failed program was:" >&5
24705sed 's/^/| /' conftest.$ac_ext >&5
24706
24707ac_cv_lib_png_png_check_sig=no
24708fi
ac1cb8d3
VS
24709rm -f conftest.err conftest.$ac_objext \
24710 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24711LIBS=$ac_check_lib_save_LIBS
24712fi
24713echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
24714echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
24715if test $ac_cv_lib_png_png_check_sig = yes; then
24716 PNG_LINK=" -lpng -lz"
24717fi
24718
24719 fi
24720
24721 if test "x$PNG_LINK" = "x" ; then
24722 if test "$wxUSE_LIBPNG" = "sys" ; then
24723 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
24724echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
24725 { (exit 1); exit 1; }; }
24726 else
24727 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
24728echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
24729 wxUSE_LIBPNG=builtin
24730 fi
24731 else
24732 wxUSE_LIBPNG=sys
24733 fi
24734 fi
24735 fi
24736
24737 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
24738fi
24739
24740
24741JPEG_LINK=
24742if test "$wxUSE_LIBJPEG" != "no" ; then
24743 cat >>confdefs.h <<\_ACEOF
24744#define wxUSE_LIBJPEG 1
24745_ACEOF
24746
24747
24748 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
24749 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
24750echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
24751 wxUSE_LIBJPEG=sys
24752 fi
24753
24754 if test "$wxUSE_MGL" != 1 ; then
24755 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
24756 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
24757echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
24758 if test "${ac_cv_header_jpeglib_h+set}" = set; then
24759 echo $ECHO_N "(cached) $ECHO_C" >&6
24760else
24761 cat >conftest.$ac_ext <<_ACEOF
24762/* confdefs.h. */
24763_ACEOF
24764cat confdefs.h >>conftest.$ac_ext
24765cat >>conftest.$ac_ext <<_ACEOF
24766/* end confdefs.h. */
24767
24768 #undef HAVE_STDLIB_H
24769 #include <stdio.h>
24770 #include <jpeglib.h>
24771
24772int
24773main ()
24774{
24775
24776
24777 ;
24778 return 0;
24779}
24780_ACEOF
24781rm -f conftest.$ac_objext
24782if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24783 (eval $ac_compile) 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); } &&
f10e38c4 24790 { ac_try='test -z "$ac_c_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); }; } &&
24796 { ac_try='test -s conftest.$ac_objext'
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
24802 ac_cv_header_jpeglib_h=yes
24803else
24804 echo "$as_me: failed program was:" >&5
24805sed 's/^/| /' conftest.$ac_ext >&5
24806
24807ac_cv_header_jpeglib_h=no
24808
24809fi
ac1cb8d3 24810rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24811
24812fi
24813
24814 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
24815echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
24816
24817 if test "$ac_cv_header_jpeglib_h" = "yes"; then
24818 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
24819echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
24820if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
24821 echo $ECHO_N "(cached) $ECHO_C" >&6
24822else
24823 ac_check_lib_save_LIBS=$LIBS
24824LIBS="-ljpeg $LIBS"
24825cat >conftest.$ac_ext <<_ACEOF
24826/* confdefs.h. */
24827_ACEOF
24828cat confdefs.h >>conftest.$ac_ext
24829cat >>conftest.$ac_ext <<_ACEOF
24830/* end confdefs.h. */
24831
24832/* Override any gcc2 internal prototype to avoid an error. */
24833#ifdef __cplusplus
24834extern "C"
24835#endif
24836/* We use char because int might match the return type of a gcc2
24837 builtin and then its argument prototype would still apply. */
24838char jpeg_read_header ();
24839int
24840main ()
24841{
24842jpeg_read_header ();
24843 ;
24844 return 0;
24845}
24846_ACEOF
24847rm -f conftest.$ac_objext conftest$ac_exeext
24848if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24849 (eval $ac_link) 2>conftest.er1
a848cd7e 24850 ac_status=$?
ac1cb8d3
VS
24851 grep -v '^ *+' conftest.er1 >conftest.err
24852 rm -f conftest.er1
24853 cat conftest.err >&5
a848cd7e
SC
24854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24855 (exit $ac_status); } &&
f10e38c4 24856 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24858 (eval $ac_try) 2>&5
24859 ac_status=$?
24860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24861 (exit $ac_status); }; } &&
24862 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24864 (eval $ac_try) 2>&5
24865 ac_status=$?
24866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24867 (exit $ac_status); }; }; then
24868 ac_cv_lib_jpeg_jpeg_read_header=yes
24869else
24870 echo "$as_me: failed program was:" >&5
24871sed 's/^/| /' conftest.$ac_ext >&5
24872
24873ac_cv_lib_jpeg_jpeg_read_header=no
24874fi
ac1cb8d3
VS
24875rm -f conftest.err conftest.$ac_objext \
24876 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24877LIBS=$ac_check_lib_save_LIBS
24878fi
24879echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
24880echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
24881if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
24882 JPEG_LINK=" -ljpeg"
24883fi
24884
24885 fi
24886
24887 if test "x$JPEG_LINK" = "x" ; then
24888 if test "$wxUSE_LIBJPEG" = "sys" ; then
24889 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
24890echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
24891 { (exit 1); exit 1; }; }
24892 else
24893 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
24894echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
24895 wxUSE_LIBJPEG=builtin
24896 fi
24897 else
24898 wxUSE_LIBJPEG=sys
24899 fi
24900 fi
24901 fi
24902fi
24903
24904
24905TIFF_LINK=
24906TIFF_PREREQ_LINKS=-lm
24907if test "$wxUSE_LIBTIFF" != "no" ; then
24908 cat >>confdefs.h <<\_ACEOF
24909#define wxUSE_LIBTIFF 1
24910_ACEOF
24911
24912
24913 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
24914 if test "$wxUSE_LIBJPEG" = "sys"; then
24915 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
24916 fi
24917 if test "$wxUSE_ZLIB" = "sys"; then
24918 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
24919 fi
24920 if test "${ac_cv_header_tiffio_h+set}" = set; then
24921 echo "$as_me:$LINENO: checking for tiffio.h" >&5
24922echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
24923if test "${ac_cv_header_tiffio_h+set}" = set; then
24924 echo $ECHO_N "(cached) $ECHO_C" >&6
24925fi
24926echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
24927echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
24928else
24929 # Is the header compilable?
24930echo "$as_me:$LINENO: checking tiffio.h usability" >&5
24931echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
24932cat >conftest.$ac_ext <<_ACEOF
24933/* confdefs.h. */
24934_ACEOF
24935cat confdefs.h >>conftest.$ac_ext
24936cat >>conftest.$ac_ext <<_ACEOF
24937/* end confdefs.h. */
24938$ac_includes_default
24939#include <tiffio.h>
24940_ACEOF
24941rm -f conftest.$ac_objext
24942if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24943 (eval $ac_compile) 2>conftest.er1
a848cd7e 24944 ac_status=$?
ac1cb8d3
VS
24945 grep -v '^ *+' conftest.er1 >conftest.err
24946 rm -f conftest.er1
24947 cat conftest.err >&5
a848cd7e
SC
24948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24949 (exit $ac_status); } &&
f10e38c4 24950 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24952 (eval $ac_try) 2>&5
24953 ac_status=$?
24954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24955 (exit $ac_status); }; } &&
24956 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24958 (eval $ac_try) 2>&5
24959 ac_status=$?
24960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24961 (exit $ac_status); }; }; then
24962 ac_header_compiler=yes
24963else
24964 echo "$as_me: failed program was:" >&5
24965sed 's/^/| /' conftest.$ac_ext >&5
24966
24967ac_header_compiler=no
24968fi
ac1cb8d3 24969rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24970echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24971echo "${ECHO_T}$ac_header_compiler" >&6
24972
24973# Is the header present?
24974echo "$as_me:$LINENO: checking tiffio.h presence" >&5
24975echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
24976cat >conftest.$ac_ext <<_ACEOF
24977/* confdefs.h. */
24978_ACEOF
24979cat confdefs.h >>conftest.$ac_ext
24980cat >>conftest.$ac_ext <<_ACEOF
24981/* end confdefs.h. */
24982#include <tiffio.h>
24983_ACEOF
24984if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24985 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24986 ac_status=$?
24987 grep -v '^ *+' conftest.er1 >conftest.err
24988 rm -f conftest.er1
24989 cat conftest.err >&5
24990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24991 (exit $ac_status); } >/dev/null; then
24992 if test -s conftest.err; then
24993 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 24994 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
24995 else
24996 ac_cpp_err=
24997 fi
24998else
24999 ac_cpp_err=yes
25000fi
25001if test -z "$ac_cpp_err"; then
25002 ac_header_preproc=yes
25003else
25004 echo "$as_me: failed program was:" >&5
25005sed 's/^/| /' conftest.$ac_ext >&5
25006
25007 ac_header_preproc=no
25008fi
25009rm -f conftest.err conftest.$ac_ext
25010echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25011echo "${ECHO_T}$ac_header_preproc" >&6
25012
25013# So? What about this header?
ac1cb8d3
VS
25014case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25015 yes:no: )
a848cd7e
SC
25016 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
25017echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
25018 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
25019echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
25020 ac_header_preproc=yes
a848cd7e 25021 ;;
ac1cb8d3 25022 no:yes:* )
a848cd7e
SC
25023 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
25024echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
25025 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
25026echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
25027 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
25028echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
25029 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
25030echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
25031 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
25032echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
25033 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
25034echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
25035 (
25036 cat <<\_ASBOX
ac1cb8d3
VS
25037## ----------------------------------------- ##
25038## Report this to wx-dev@lists.wxwidgets.org ##
25039## ----------------------------------------- ##
a848cd7e
SC
25040_ASBOX
25041 ) |
25042 sed "s/^/$as_me: WARNING: /" >&2
25043 ;;
25044esac
25045echo "$as_me:$LINENO: checking for tiffio.h" >&5
25046echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
25047if test "${ac_cv_header_tiffio_h+set}" = set; then
25048 echo $ECHO_N "(cached) $ECHO_C" >&6
25049else
25050 ac_cv_header_tiffio_h=$ac_header_preproc
25051fi
25052echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
25053echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
25054
25055fi
25056if test $ac_cv_header_tiffio_h = yes; then
25057
25058 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
25059echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
25060if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
25061 echo $ECHO_N "(cached) $ECHO_C" >&6
25062else
25063 ac_check_lib_save_LIBS=$LIBS
25064LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
25065cat >conftest.$ac_ext <<_ACEOF
25066/* confdefs.h. */
25067_ACEOF
25068cat confdefs.h >>conftest.$ac_ext
25069cat >>conftest.$ac_ext <<_ACEOF
25070/* end confdefs.h. */
25071
25072/* Override any gcc2 internal prototype to avoid an error. */
25073#ifdef __cplusplus
25074extern "C"
25075#endif
25076/* We use char because int might match the return type of a gcc2
25077 builtin and then its argument prototype would still apply. */
25078char TIFFError ();
25079int
25080main ()
25081{
25082TIFFError ();
25083 ;
25084 return 0;
25085}
25086_ACEOF
25087rm -f conftest.$ac_objext conftest$ac_exeext
25088if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25089 (eval $ac_link) 2>conftest.er1
a848cd7e 25090 ac_status=$?
ac1cb8d3
VS
25091 grep -v '^ *+' conftest.er1 >conftest.err
25092 rm -f conftest.er1
25093 cat conftest.err >&5
a848cd7e
SC
25094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25095 (exit $ac_status); } &&
f10e38c4 25096 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25098 (eval $ac_try) 2>&5
25099 ac_status=$?
25100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25101 (exit $ac_status); }; } &&
25102 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25104 (eval $ac_try) 2>&5
25105 ac_status=$?
25106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25107 (exit $ac_status); }; }; then
25108 ac_cv_lib_tiff_TIFFError=yes
25109else
25110 echo "$as_me: failed program was:" >&5
25111sed 's/^/| /' conftest.$ac_ext >&5
25112
25113ac_cv_lib_tiff_TIFFError=no
25114fi
ac1cb8d3
VS
25115rm -f conftest.err conftest.$ac_objext \
25116 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25117LIBS=$ac_check_lib_save_LIBS
25118fi
25119echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
25120echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
25121if test $ac_cv_lib_tiff_TIFFError = yes; then
25122 TIFF_LINK=" -ltiff"
25123fi
25124
25125
25126
25127fi
25128
25129
25130
25131 if test "x$TIFF_LINK" = "x" ; then
25132 if test "$wxUSE_LIBTIFF" = "sys" ; then
25133 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
25134echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
25135 { (exit 1); exit 1; }; }
25136 else
25137 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
25138echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
25139 wxUSE_LIBTIFF=builtin
25140 fi
25141 else
25142 wxUSE_LIBTIFF=sys
25143 fi
25144 fi
25145fi
25146
25147
47a7e797
MW
25148if test "$wxUSE_WCHAR_T" != "yes"; then
25149 if test "$wxUSE_EXPAT" != "no"; then
25150 { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&5
25151echo "$as_me: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&2;}
25152 wxUSE_EXPAT=no
25153 fi
25154 if test "$wxUSE_XML" != "no"; then
25155 { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&5
25156echo "$as_me: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&2;}
25157 wxUSE_XML=no
25158 fi
25159fi
25160
a848cd7e
SC
25161if test "$wxUSE_EXPAT" != "no"; then
25162 wxUSE_XML=yes
25163 cat >>confdefs.h <<\_ACEOF
25164#define wxUSE_EXPAT 1
25165_ACEOF
25166
25167 cat >>confdefs.h <<\_ACEOF
25168#define wxUSE_XML 1
25169_ACEOF
25170
25171
25172 if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
25173 if test "${ac_cv_header_expat_h+set}" = set; then
25174 echo "$as_me:$LINENO: checking for expat.h" >&5
25175echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
25176if test "${ac_cv_header_expat_h+set}" = set; then
25177 echo $ECHO_N "(cached) $ECHO_C" >&6
25178fi
25179echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
25180echo "${ECHO_T}$ac_cv_header_expat_h" >&6
25181else
25182 # Is the header compilable?
25183echo "$as_me:$LINENO: checking expat.h usability" >&5
25184echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
25185cat >conftest.$ac_ext <<_ACEOF
25186/* confdefs.h. */
25187_ACEOF
25188cat confdefs.h >>conftest.$ac_ext
25189cat >>conftest.$ac_ext <<_ACEOF
25190/* end confdefs.h. */
25191$ac_includes_default
25192#include <expat.h>
25193_ACEOF
25194rm -f conftest.$ac_objext
25195if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25196 (eval $ac_compile) 2>conftest.er1
a848cd7e 25197 ac_status=$?
ac1cb8d3
VS
25198 grep -v '^ *+' conftest.er1 >conftest.err
25199 rm -f conftest.er1
25200 cat conftest.err >&5
a848cd7e
SC
25201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25202 (exit $ac_status); } &&
f10e38c4 25203 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25205 (eval $ac_try) 2>&5
25206 ac_status=$?
25207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25208 (exit $ac_status); }; } &&
25209 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25211 (eval $ac_try) 2>&5
25212 ac_status=$?
25213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25214 (exit $ac_status); }; }; then
25215 ac_header_compiler=yes
25216else
25217 echo "$as_me: failed program was:" >&5
25218sed 's/^/| /' conftest.$ac_ext >&5
25219
25220ac_header_compiler=no
25221fi
ac1cb8d3 25222rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25223echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25224echo "${ECHO_T}$ac_header_compiler" >&6
25225
25226# Is the header present?
25227echo "$as_me:$LINENO: checking expat.h presence" >&5
25228echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
25229cat >conftest.$ac_ext <<_ACEOF
25230/* confdefs.h. */
25231_ACEOF
25232cat confdefs.h >>conftest.$ac_ext
25233cat >>conftest.$ac_ext <<_ACEOF
25234/* end confdefs.h. */
25235#include <expat.h>
25236_ACEOF
25237if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25238 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25239 ac_status=$?
25240 grep -v '^ *+' conftest.er1 >conftest.err
25241 rm -f conftest.er1
25242 cat conftest.err >&5
25243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25244 (exit $ac_status); } >/dev/null; then
25245 if test -s conftest.err; then
25246 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 25247 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
25248 else
25249 ac_cpp_err=
25250 fi
25251else
25252 ac_cpp_err=yes
25253fi
25254if test -z "$ac_cpp_err"; then
25255 ac_header_preproc=yes
25256else
25257 echo "$as_me: failed program was:" >&5
25258sed 's/^/| /' conftest.$ac_ext >&5
25259
25260 ac_header_preproc=no
25261fi
25262rm -f conftest.err conftest.$ac_ext
25263echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25264echo "${ECHO_T}$ac_header_preproc" >&6
25265
25266# So? What about this header?
ac1cb8d3
VS
25267case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25268 yes:no: )
a848cd7e
SC
25269 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
25270echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
25271 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
25272echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
25273 ac_header_preproc=yes
a848cd7e 25274 ;;
ac1cb8d3 25275 no:yes:* )
a848cd7e
SC
25276 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
25277echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
25278 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
25279echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
25280 { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
25281echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
25282 { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5
25283echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
25284 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
25285echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
25286 { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
25287echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
25288 (
25289 cat <<\_ASBOX
ac1cb8d3
VS
25290## ----------------------------------------- ##
25291## Report this to wx-dev@lists.wxwidgets.org ##
25292## ----------------------------------------- ##
a848cd7e
SC
25293_ASBOX
25294 ) |
25295 sed "s/^/$as_me: WARNING: /" >&2
25296 ;;
25297esac
25298echo "$as_me:$LINENO: checking for expat.h" >&5
25299echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
25300if test "${ac_cv_header_expat_h+set}" = set; then
25301 echo $ECHO_N "(cached) $ECHO_C" >&6
25302else
25303 ac_cv_header_expat_h=$ac_header_preproc
25304fi
25305echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
25306echo "${ECHO_T}$ac_cv_header_expat_h" >&6
25307
25308fi
25309if test $ac_cv_header_expat_h = yes; then
25310 found_expat_h=1
25311fi
25312
25313
25314 if test "x$found_expat_h" = "x1"; then
25315 echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
25316echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
25317if test "${wx_cv_expat_is_not_broken+set}" = set; then
25318 echo $ECHO_N "(cached) $ECHO_C" >&6
25319else
25320
a848cd7e
SC
25321 ac_ext=cc
25322ac_cpp='$CXXCPP $CPPFLAGS'
25323ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25324ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25325ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25326
25327 cat >conftest.$ac_ext <<_ACEOF
25328/* confdefs.h. */
25329_ACEOF
25330cat confdefs.h >>conftest.$ac_ext
25331cat >>conftest.$ac_ext <<_ACEOF
25332/* end confdefs.h. */
25333#include <expat.h>
25334int
25335main ()
25336{
25337
25338 ;
25339 return 0;
25340}
25341_ACEOF
25342rm -f conftest.$ac_objext
25343if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25344 (eval $ac_compile) 2>conftest.er1
a848cd7e 25345 ac_status=$?
ac1cb8d3
VS
25346 grep -v '^ *+' conftest.er1 >conftest.err
25347 rm -f conftest.er1
25348 cat conftest.err >&5
a848cd7e
SC
25349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25350 (exit $ac_status); } &&
f10e38c4 25351 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25353 (eval $ac_try) 2>&5
25354 ac_status=$?
25355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25356 (exit $ac_status); }; } &&
25357 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25359 (eval $ac_try) 2>&5
25360 ac_status=$?
25361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25362 (exit $ac_status); }; }; then
25363 wx_cv_expat_is_not_broken=yes
25364else
25365 echo "$as_me: failed program was:" >&5
25366sed 's/^/| /' conftest.$ac_ext >&5
25367
25368wx_cv_expat_is_not_broken=no
25369
25370fi
ac1cb8d3 25371rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25372 ac_ext=c
25373ac_cpp='$CPP $CPPFLAGS'
25374ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25375ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25376ac_compiler_gnu=$ac_cv_c_compiler_gnu
25377
25378
25379
25380fi
25381echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
25382echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
25383 if test "$wx_cv_expat_is_not_broken" = "yes" ; then
25384 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
25385echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
25386if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
25387 echo $ECHO_N "(cached) $ECHO_C" >&6
25388else
25389 ac_check_lib_save_LIBS=$LIBS
25390LIBS="-lexpat $LIBS"
25391cat >conftest.$ac_ext <<_ACEOF
25392/* confdefs.h. */
25393_ACEOF
25394cat confdefs.h >>conftest.$ac_ext
25395cat >>conftest.$ac_ext <<_ACEOF
25396/* end confdefs.h. */
25397
25398/* Override any gcc2 internal prototype to avoid an error. */
25399#ifdef __cplusplus
25400extern "C"
25401#endif
25402/* We use char because int might match the return type of a gcc2
25403 builtin and then its argument prototype would still apply. */
25404char XML_ParserCreate ();
25405int
25406main ()
25407{
25408XML_ParserCreate ();
25409 ;
25410 return 0;
25411}
25412_ACEOF
25413rm -f conftest.$ac_objext conftest$ac_exeext
25414if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25415 (eval $ac_link) 2>conftest.er1
a848cd7e 25416 ac_status=$?
ac1cb8d3
VS
25417 grep -v '^ *+' conftest.er1 >conftest.err
25418 rm -f conftest.er1
25419 cat conftest.err >&5
a848cd7e
SC
25420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25421 (exit $ac_status); } &&
f10e38c4 25422 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25424 (eval $ac_try) 2>&5
25425 ac_status=$?
25426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25427 (exit $ac_status); }; } &&
25428 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25430 (eval $ac_try) 2>&5
25431 ac_status=$?
25432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25433 (exit $ac_status); }; }; then
25434 ac_cv_lib_expat_XML_ParserCreate=yes
25435else
25436 echo "$as_me: failed program was:" >&5
25437sed 's/^/| /' conftest.$ac_ext >&5
25438
25439ac_cv_lib_expat_XML_ParserCreate=no
25440fi
ac1cb8d3
VS
25441rm -f conftest.err conftest.$ac_objext \
25442 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25443LIBS=$ac_check_lib_save_LIBS
25444fi
25445echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
25446echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
25447if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
25448 EXPAT_LINK=" -lexpat"
25449fi
25450
25451 fi
25452 fi
25453 if test "x$EXPAT_LINK" = "x" ; then
25454 if test "$wxUSE_EXPAT" = "sys" ; then
25455 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
25456echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
25457 { (exit 1); exit 1; }; }
25458 else
25459 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
25460echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
25461 wxUSE_EXPAT=builtin
25462 fi
25463 else
25464 wxUSE_EXPAT=sys
25465 fi
25466 fi
25467 if test "$wxUSE_EXPAT" = "builtin" ; then
25468
25469
25470subdirs="$subdirs src/expat"
25471
25472 fi
25473fi
25474
25475
25476
25477if test "$wxUSE_LIBMSPACK" != "no"; then
a848cd7e
SC
25478 if test "${ac_cv_header_mspack_h+set}" = set; then
25479 echo "$as_me:$LINENO: checking for mspack.h" >&5
25480echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
25481if test "${ac_cv_header_mspack_h+set}" = set; then
25482 echo $ECHO_N "(cached) $ECHO_C" >&6
25483fi
25484echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
25485echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
25486else
25487 # Is the header compilable?
25488echo "$as_me:$LINENO: checking mspack.h usability" >&5
25489echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
25490cat >conftest.$ac_ext <<_ACEOF
25491/* confdefs.h. */
25492_ACEOF
25493cat confdefs.h >>conftest.$ac_ext
25494cat >>conftest.$ac_ext <<_ACEOF
25495/* end confdefs.h. */
25496$ac_includes_default
25497#include <mspack.h>
25498_ACEOF
25499rm -f conftest.$ac_objext
25500if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25501 (eval $ac_compile) 2>conftest.er1
a848cd7e 25502 ac_status=$?
ac1cb8d3
VS
25503 grep -v '^ *+' conftest.er1 >conftest.err
25504 rm -f conftest.er1
25505 cat conftest.err >&5
a848cd7e
SC
25506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25507 (exit $ac_status); } &&
f10e38c4 25508 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25510 (eval $ac_try) 2>&5
25511 ac_status=$?
25512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25513 (exit $ac_status); }; } &&
25514 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25516 (eval $ac_try) 2>&5
25517 ac_status=$?
25518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25519 (exit $ac_status); }; }; then
25520 ac_header_compiler=yes
25521else
25522 echo "$as_me: failed program was:" >&5
25523sed 's/^/| /' conftest.$ac_ext >&5
25524
25525ac_header_compiler=no
25526fi
ac1cb8d3 25527rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25528echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25529echo "${ECHO_T}$ac_header_compiler" >&6
25530
25531# Is the header present?
25532echo "$as_me:$LINENO: checking mspack.h presence" >&5
25533echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
25534cat >conftest.$ac_ext <<_ACEOF
25535/* confdefs.h. */
25536_ACEOF
25537cat confdefs.h >>conftest.$ac_ext
25538cat >>conftest.$ac_ext <<_ACEOF
25539/* end confdefs.h. */
25540#include <mspack.h>
25541_ACEOF
25542if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25543 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25544 ac_status=$?
25545 grep -v '^ *+' conftest.er1 >conftest.err
25546 rm -f conftest.er1
25547 cat conftest.err >&5
25548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25549 (exit $ac_status); } >/dev/null; then
25550 if test -s conftest.err; then
25551 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 25552 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
25553 else
25554 ac_cpp_err=
25555 fi
25556else
25557 ac_cpp_err=yes
25558fi
25559if test -z "$ac_cpp_err"; then
25560 ac_header_preproc=yes
25561else
25562 echo "$as_me: failed program was:" >&5
25563sed 's/^/| /' conftest.$ac_ext >&5
25564
25565 ac_header_preproc=no
25566fi
25567rm -f conftest.err conftest.$ac_ext
25568echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25569echo "${ECHO_T}$ac_header_preproc" >&6
25570
25571# So? What about this header?
ac1cb8d3
VS
25572case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25573 yes:no: )
a848cd7e
SC
25574 { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
25575echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
25576 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5
25577echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;}
25578 ac_header_preproc=yes
a848cd7e 25579 ;;
ac1cb8d3 25580 no:yes:* )
a848cd7e
SC
25581 { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
25582echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
25583 { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5
25584echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;}
25585 { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5
25586echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;}
25587 { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5
25588echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
25589 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
25590echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
25591 { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5
25592echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
25593 (
25594 cat <<\_ASBOX
ac1cb8d3
VS
25595## ----------------------------------------- ##
25596## Report this to wx-dev@lists.wxwidgets.org ##
25597## ----------------------------------------- ##
a848cd7e
SC
25598_ASBOX
25599 ) |
25600 sed "s/^/$as_me: WARNING: /" >&2
25601 ;;
25602esac
25603echo "$as_me:$LINENO: checking for mspack.h" >&5
25604echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
25605if test "${ac_cv_header_mspack_h+set}" = set; then
25606 echo $ECHO_N "(cached) $ECHO_C" >&6
25607else
25608 ac_cv_header_mspack_h=$ac_header_preproc
25609fi
25610echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
25611echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
25612
25613fi
25614if test $ac_cv_header_mspack_h = yes; then
25615 found_mspack_h=1
25616fi
25617
25618
25619 if test "x$found_mspack_h" = "x1"; then
25620 echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
25621echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
25622if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
25623 echo $ECHO_N "(cached) $ECHO_C" >&6
25624else
25625 ac_check_lib_save_LIBS=$LIBS
25626LIBS="-lmspack $LIBS"
25627cat >conftest.$ac_ext <<_ACEOF
25628/* confdefs.h. */
25629_ACEOF
25630cat confdefs.h >>conftest.$ac_ext
25631cat >>conftest.$ac_ext <<_ACEOF
25632/* end confdefs.h. */
25633
25634/* Override any gcc2 internal prototype to avoid an error. */
25635#ifdef __cplusplus
25636extern "C"
25637#endif
25638/* We use char because int might match the return type of a gcc2
25639 builtin and then its argument prototype would still apply. */
25640char mspack_create_chm_decompressor ();
25641int
25642main ()
25643{
25644mspack_create_chm_decompressor ();
25645 ;
25646 return 0;
25647}
25648_ACEOF
25649rm -f conftest.$ac_objext conftest$ac_exeext
25650if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25651 (eval $ac_link) 2>conftest.er1
a848cd7e 25652 ac_status=$?
ac1cb8d3
VS
25653 grep -v '^ *+' conftest.er1 >conftest.err
25654 rm -f conftest.er1
25655 cat conftest.err >&5
a848cd7e
SC
25656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25657 (exit $ac_status); } &&
f10e38c4 25658 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25660 (eval $ac_try) 2>&5
25661 ac_status=$?
25662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25663 (exit $ac_status); }; } &&
25664 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25666 (eval $ac_try) 2>&5
25667 ac_status=$?
25668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25669 (exit $ac_status); }; }; then
25670 ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
25671else
25672 echo "$as_me: failed program was:" >&5
25673sed 's/^/| /' conftest.$ac_ext >&5
25674
25675ac_cv_lib_mspack_mspack_create_chm_decompressor=no
25676fi
ac1cb8d3
VS
25677rm -f conftest.err conftest.$ac_objext \
25678 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25679LIBS=$ac_check_lib_save_LIBS
25680fi
25681echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
25682echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
25683if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
25684 MSPACK_LINK=" -lmspack"
25685fi
25686
25687 fi
25688 if test "x$MSPACK_LINK" = "x" ; then
25689 wxUSE_LIBMSPACK=no
dd3a2d96
VZ
25690 fi
25691fi
25692
25693if test "$wxUSE_LIBMSPACK" != "no"; then
25694 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
25695#define wxUSE_LIBMSPACK 1
25696_ACEOF
25697
a848cd7e
SC
25698fi
25699
25700
25701
25702AFMINSTALL=
25703WIN32INSTALL=
25704
25705TOOLKIT=
25706TOOLKIT_INCLUDE=
25707WIDGET_SET=
25708
25709if test "$USE_WIN32" = 1 ; then
25710
25711for ac_header in w32api.h
25712do
25713as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25714if eval "test \"\${$as_ac_Header+set}\" = set"; then
25715 echo "$as_me:$LINENO: checking for $ac_header" >&5
25716echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25717if eval "test \"\${$as_ac_Header+set}\" = set"; then
25718 echo $ECHO_N "(cached) $ECHO_C" >&6
25719fi
25720echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25721echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25722else
25723 # Is the header compilable?
25724echo "$as_me:$LINENO: checking $ac_header usability" >&5
25725echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25726cat >conftest.$ac_ext <<_ACEOF
25727/* confdefs.h. */
25728_ACEOF
25729cat confdefs.h >>conftest.$ac_ext
25730cat >>conftest.$ac_ext <<_ACEOF
25731/* end confdefs.h. */
25732$ac_includes_default
25733#include <$ac_header>
25734_ACEOF
25735rm -f conftest.$ac_objext
25736if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25737 (eval $ac_compile) 2>conftest.er1
a848cd7e 25738 ac_status=$?
ac1cb8d3
VS
25739 grep -v '^ *+' conftest.er1 >conftest.err
25740 rm -f conftest.er1
25741 cat conftest.err >&5
a848cd7e
SC
25742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25743 (exit $ac_status); } &&
f10e38c4 25744 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25746 (eval $ac_try) 2>&5
25747 ac_status=$?
25748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25749 (exit $ac_status); }; } &&
25750 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25752 (eval $ac_try) 2>&5
25753 ac_status=$?
25754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25755 (exit $ac_status); }; }; then
25756 ac_header_compiler=yes
25757else
25758 echo "$as_me: failed program was:" >&5
25759sed 's/^/| /' conftest.$ac_ext >&5
25760
25761ac_header_compiler=no
25762fi
ac1cb8d3 25763rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25764echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25765echo "${ECHO_T}$ac_header_compiler" >&6
25766
25767# Is the header present?
25768echo "$as_me:$LINENO: checking $ac_header presence" >&5
25769echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25770cat >conftest.$ac_ext <<_ACEOF
25771/* confdefs.h. */
25772_ACEOF
25773cat confdefs.h >>conftest.$ac_ext
25774cat >>conftest.$ac_ext <<_ACEOF
25775/* end confdefs.h. */
25776#include <$ac_header>
25777_ACEOF
25778if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25779 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25780 ac_status=$?
25781 grep -v '^ *+' conftest.er1 >conftest.err
25782 rm -f conftest.er1
25783 cat conftest.err >&5
25784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25785 (exit $ac_status); } >/dev/null; then
25786 if test -s conftest.err; then
25787 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 25788 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
25789 else
25790 ac_cpp_err=
25791 fi
25792else
25793 ac_cpp_err=yes
25794fi
25795if test -z "$ac_cpp_err"; then
25796 ac_header_preproc=yes
25797else
25798 echo "$as_me: failed program was:" >&5
25799sed 's/^/| /' conftest.$ac_ext >&5
25800
25801 ac_header_preproc=no
25802fi
25803rm -f conftest.err conftest.$ac_ext
25804echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25805echo "${ECHO_T}$ac_header_preproc" >&6
25806
25807# So? What about this header?
ac1cb8d3
VS
25808case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25809 yes:no: )
a848cd7e
SC
25810 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25811echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
25812 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25813echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25814 ac_header_preproc=yes
a848cd7e 25815 ;;
ac1cb8d3 25816 no:yes:* )
a848cd7e
SC
25817 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25818echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
25819 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25820echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25821 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25822echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25823 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25824echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
25825 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25826echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
25827 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25828echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
25829 (
25830 cat <<\_ASBOX
ac1cb8d3
VS
25831## ----------------------------------------- ##
25832## Report this to wx-dev@lists.wxwidgets.org ##
25833## ----------------------------------------- ##
a848cd7e
SC
25834_ASBOX
25835 ) |
25836 sed "s/^/$as_me: WARNING: /" >&2
25837 ;;
25838esac
25839echo "$as_me:$LINENO: checking for $ac_header" >&5
25840echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25841if eval "test \"\${$as_ac_Header+set}\" = set"; then
25842 echo $ECHO_N "(cached) $ECHO_C" >&6
25843else
ac1cb8d3 25844 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
25845fi
25846echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25847echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25848
25849fi
25850if test `eval echo '${'$as_ac_Header'}'` = yes; then
25851 cat >>confdefs.h <<_ACEOF
25852#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25853_ACEOF
25854
25855fi
25856
25857done
25858
25859 if test "${ac_cv_header_windows_h+set}" = set; then
25860 echo "$as_me:$LINENO: checking for windows.h" >&5
25861echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
25862if test "${ac_cv_header_windows_h+set}" = set; then
25863 echo $ECHO_N "(cached) $ECHO_C" >&6
25864fi
25865echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
25866echo "${ECHO_T}$ac_cv_header_windows_h" >&6
25867else
25868 # Is the header compilable?
25869echo "$as_me:$LINENO: checking windows.h usability" >&5
25870echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
25871cat >conftest.$ac_ext <<_ACEOF
25872/* confdefs.h. */
25873_ACEOF
25874cat confdefs.h >>conftest.$ac_ext
25875cat >>conftest.$ac_ext <<_ACEOF
25876/* end confdefs.h. */
25877$ac_includes_default
25878#include <windows.h>
25879_ACEOF
25880rm -f conftest.$ac_objext
25881if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25882 (eval $ac_compile) 2>conftest.er1
a848cd7e 25883 ac_status=$?
ac1cb8d3
VS
25884 grep -v '^ *+' conftest.er1 >conftest.err
25885 rm -f conftest.er1
25886 cat conftest.err >&5
a848cd7e
SC
25887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25888 (exit $ac_status); } &&
f10e38c4 25889 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25891 (eval $ac_try) 2>&5
25892 ac_status=$?
25893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25894 (exit $ac_status); }; } &&
25895 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25897 (eval $ac_try) 2>&5
25898 ac_status=$?
25899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25900 (exit $ac_status); }; }; then
25901 ac_header_compiler=yes
25902else
25903 echo "$as_me: failed program was:" >&5
25904sed 's/^/| /' conftest.$ac_ext >&5
25905
25906ac_header_compiler=no
25907fi
ac1cb8d3 25908rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25909echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25910echo "${ECHO_T}$ac_header_compiler" >&6
25911
25912# Is the header present?
25913echo "$as_me:$LINENO: checking windows.h presence" >&5
25914echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
25915cat >conftest.$ac_ext <<_ACEOF
25916/* confdefs.h. */
25917_ACEOF
25918cat confdefs.h >>conftest.$ac_ext
25919cat >>conftest.$ac_ext <<_ACEOF
25920/* end confdefs.h. */
25921#include <windows.h>
25922_ACEOF
25923if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25924 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25925 ac_status=$?
25926 grep -v '^ *+' conftest.er1 >conftest.err
25927 rm -f conftest.er1
25928 cat conftest.err >&5
25929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25930 (exit $ac_status); } >/dev/null; then
25931 if test -s conftest.err; then
25932 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 25933 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
25934 else
25935 ac_cpp_err=
25936 fi
25937else
25938 ac_cpp_err=yes
25939fi
25940if test -z "$ac_cpp_err"; then
25941 ac_header_preproc=yes
25942else
25943 echo "$as_me: failed program was:" >&5
25944sed 's/^/| /' conftest.$ac_ext >&5
25945
25946 ac_header_preproc=no
25947fi
25948rm -f conftest.err conftest.$ac_ext
25949echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25950echo "${ECHO_T}$ac_header_preproc" >&6
25951
25952# So? What about this header?
ac1cb8d3
VS
25953case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25954 yes:no: )
a848cd7e
SC
25955 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
25956echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
25957 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
25958echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
25959 ac_header_preproc=yes
a848cd7e 25960 ;;
ac1cb8d3 25961 no:yes:* )
a848cd7e
SC
25962 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
25963echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
25964 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
25965echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
25966 { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
25967echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
25968 { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5
25969echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
25970 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
25971echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
25972 { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
25973echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
25974 (
25975 cat <<\_ASBOX
ac1cb8d3
VS
25976## ----------------------------------------- ##
25977## Report this to wx-dev@lists.wxwidgets.org ##
25978## ----------------------------------------- ##
a848cd7e
SC
25979_ASBOX
25980 ) |
25981 sed "s/^/$as_me: WARNING: /" >&2
25982 ;;
25983esac
25984echo "$as_me:$LINENO: checking for windows.h" >&5
25985echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
25986if test "${ac_cv_header_windows_h+set}" = set; then
25987 echo $ECHO_N "(cached) $ECHO_C" >&6
25988else
25989 ac_cv_header_windows_h=$ac_header_preproc
25990fi
25991echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
25992echo "${ECHO_T}$ac_cv_header_windows_h" >&6
25993
25994fi
25995if test $ac_cv_header_windows_h = yes; then
25996 :
25997else
25998
25999 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
26000echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
26001 { (exit 1); exit 1; }; }
26002
26003fi
26004
26005
26006
26007 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
26008
26009 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
26010 LIBS="$LIBS -loleacc"
26011 fi
26012
26013 case "${host}" in
26014 *-*-cygwin* )
26015 LIBS="$LIBS -lkernel32 -luser32"
a848cd7e
SC
26016 esac
26017
26018 if test "$wxUSE_ODBC" = "sys" ; then
26019 wxUSE_ODBC = "yes"
26020 fi
26021 if test "$wxUSE_ODBC" = "yes" ; then
26022 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
26023 cat >>confdefs.h <<\_ACEOF
26024#define wxUSE_ODBC 1
26025_ACEOF
26026
26027 fi
26028
370d2fd7 26029 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
a848cd7e
SC
26030 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
26031
004ee6da 26032 WXCONFIG_RESFLAGS="--define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
370d2fd7 26033
a848cd7e
SC
26034 WIN32INSTALL=win32install
26035fi
26036
26037if test "$wxUSE_GUI" = "yes"; then
26038 USE_GUI=1
26039
26040 GUI_TK_LIBRARY=
26041
26042 WXGTK12=
26043 WXGTK127=
26044 WXGTK20=
26045 WXGPE=
26046
207bc66c
RN
26047 if test "$wxUSE_COCOA" = 1 ; then
26048 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
26049 { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
26050echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
26051 wxUSE_PRINTING_ARCHITECTURE=no
26052 fi
26053 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
26054 { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
26055echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
26056 wxUSE_DRAG_AND_DROP=no
26057 fi
26058 if test "$wxUSE_DRAGIMAGE" = "yes"; then
26059 { echo "$as_me:$LINENO: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&5
26060echo "$as_me: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&2;}
26061 wxUSE_DRAGIMAGE=no
26062 fi
26063 fi
26064
a848cd7e
SC
26065 if test "$wxUSE_MSW" = 1 ; then
26066 TOOLKIT=MSW
26067 GUIDIST=MSW_DIST
26068
ceec2216 26069 case "${host}" in
a848cd7e
SC
26070 *-*-mingw32* )
26071 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
26072 esac
26073 fi
26074
26075 if test "$wxUSE_GTK" = 1; then
26076 echo "$as_me:$LINENO: checking for GTK+ version" >&5
26077echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
26078
26079 gtk_version_cached=1
26080 if test "${wx_cv_lib_gtk+set}" = set; then
26081 echo $ECHO_N "(cached) $ECHO_C" >&6
26082else
26083
26084 gtk_version_cached=0
26085 echo "$as_me:$LINENO: result: " >&5
26086echo "${ECHO_T}" >&6
26087
26088 GTK_MODULES=
26089 if test "$wxUSE_THREADS" = "yes"; then
26090 GTK_MODULES=gthread
26091 fi
26092
f597b41c 26093 wx_cv_lib_gtk=
5001df0d
MW
26094 if test "x$wxGTK_VERSION" != "x1"
26095 then
26096 case "${host}" in
26097 *-*-solaris2* )
26098 if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
5ff751d6 26099 enable_gtktest=no
5001df0d
MW
26100 fi
26101 esac
26102
a848cd7e
SC
26103 # Check whether --enable-gtktest or --disable-gtktest was given.
26104if test "${enable_gtktest+set}" = set; then
26105 enableval="$enable_gtktest"
26106
26107else
26108 enable_gtktest=yes
26109fi;
26110
26111 pkg_config_args=gtk+-2.0
26112 for module in . $GTK_MODULES
26113 do
26114 case "$module" in
26115 gthread)
26116 pkg_config_args="$pkg_config_args gthread-2.0"
26117 ;;
26118 esac
26119 done
26120
26121 no_gtk=""
26122
26123 # Extract the first word of "pkg-config", so it can be a program name with args.
26124set dummy pkg-config; ac_word=$2
26125echo "$as_me:$LINENO: checking for $ac_word" >&5
26126echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
26127if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
26128 echo $ECHO_N "(cached) $ECHO_C" >&6
26129else
26130 case $PKG_CONFIG in
26131 [\\/]* | ?:[\\/]*)
26132 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
26133 ;;
26134 *)
26135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26136for as_dir in $PATH
26137do
26138 IFS=$as_save_IFS
26139 test -z "$as_dir" && as_dir=.
26140 for ac_exec_ext in '' $ac_executable_extensions; do
26141 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26142 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
26143 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26144 break 2
26145 fi
26146done
26147done
26148
26149 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
26150 ;;
26151esac
26152fi
26153PKG_CONFIG=$ac_cv_path_PKG_CONFIG
26154
26155if test -n "$PKG_CONFIG"; then
26156 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
26157echo "${ECHO_T}$PKG_CONFIG" >&6
26158else
26159 echo "$as_me:$LINENO: result: no" >&5
26160echo "${ECHO_T}no" >&6
26161fi
26162
26163
26164 if test x$PKG_CONFIG != xno ; then
26165 if pkg-config --atleast-pkgconfig-version 0.7 ; then
26166 :
26167 else
c2218763 26168 echo "*** pkg-config too old; version 0.7 or better required."
a848cd7e
SC
26169 no_gtk=yes
26170 PKG_CONFIG=no
26171 fi
26172 else
26173 no_gtk=yes
26174 fi
26175
26176 min_gtk_version=2.0.0
26177 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
26178echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
26179
26180 if test x$PKG_CONFIG != xno ; then
26181 ## don't try to run the test against uninstalled libtool libs
26182 if $PKG_CONFIG --uninstalled $pkg_config_args; then
26183 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
26184 enable_gtktest=no
26185 fi
26186
26187 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
26188 :
26189 else
26190 no_gtk=yes
26191 fi
26192 fi
26193
26194 if test x"$no_gtk" = x ; then
26195 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
26196 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
26197 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
26198 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
26199 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
26200 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
26201 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
26202 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
26203 if test "x$enable_gtktest" = "xyes" ; then
26204 ac_save_CFLAGS="$CFLAGS"
26205 ac_save_LIBS="$LIBS"
26206 CFLAGS="$CFLAGS $GTK_CFLAGS"
26207 LIBS="$GTK_LIBS $LIBS"
26208 rm -f conf.gtktest
26209 if test "$cross_compiling" = yes; then
26210 echo $ac_n "cross compiling; assumed OK... $ac_c"
26211else
26212 cat >conftest.$ac_ext <<_ACEOF
26213/* confdefs.h. */
26214_ACEOF
26215cat confdefs.h >>conftest.$ac_ext
26216cat >>conftest.$ac_ext <<_ACEOF
26217/* end confdefs.h. */
26218
26219#include <gtk/gtk.h>
26220#include <stdio.h>
26221#include <stdlib.h>
26222
26223int
26224main ()
26225{
26226 int major, minor, micro;
26227 char *tmp_version;
26228
26229 system ("touch conf.gtktest");
26230
26231 /* HP/UX 9 (%@#!) writes to sscanf strings */
26232 tmp_version = g_strdup("$min_gtk_version");
26233 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
26234 printf("%s, bad version string\n", "$min_gtk_version");
26235 exit(1);
26236 }
26237
26238 if ((gtk_major_version != $gtk_config_major_version) ||
26239 (gtk_minor_version != $gtk_config_minor_version) ||
26240 (gtk_micro_version != $gtk_config_micro_version))
26241 {
26242 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
26243 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
26244 gtk_major_version, gtk_minor_version, gtk_micro_version);
26245 printf ("*** was found! If pkg-config was correct, then it is best\n");
26246 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
26247 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
26248 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
26249 printf("*** required on your system.\n");
26250 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
26251 printf("*** to point to the correct configuration files\n");
26252 }
26253 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
26254 (gtk_minor_version != GTK_MINOR_VERSION) ||
26255 (gtk_micro_version != GTK_MICRO_VERSION))
26256 {
26257 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
26258 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
26259 printf("*** library (version %d.%d.%d)\n",
26260 gtk_major_version, gtk_minor_version, gtk_micro_version);
26261 }
26262 else
26263 {
26264 if ((gtk_major_version > major) ||
26265 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
26266 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
26267 {
26268 return 0;
26269 }
26270 else
26271 {
26272 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
26273 gtk_major_version, gtk_minor_version, gtk_micro_version);
26274 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
26275 major, minor, micro);
26276 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
26277 printf("***\n");
26278 printf("*** If you have already installed a sufficiently new version, this error\n");
26279 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
26280 printf("*** being found. The easiest way to fix this is to remove the old version\n");
26281 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
26282 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
26283 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
26284 printf("*** so that the correct libraries are found at run-time))\n");
26285 }
26286 }
26287 return 1;
26288}
26289
26290_ACEOF
26291rm -f conftest$ac_exeext
26292if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26293 (eval $ac_link) 2>&5
26294 ac_status=$?
26295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26296 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26298 (eval $ac_try) 2>&5
26299 ac_status=$?
26300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26301 (exit $ac_status); }; }; then
26302 :
26303else
26304 echo "$as_me: program exited with status $ac_status" >&5
26305echo "$as_me: failed program was:" >&5
26306sed 's/^/| /' conftest.$ac_ext >&5
26307
26308( exit $ac_status )
26309no_gtk=yes
26310fi
ac1cb8d3 26311rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26312fi
26313 CFLAGS="$ac_save_CFLAGS"
26314 LIBS="$ac_save_LIBS"
26315 fi
26316 fi
26317 if test "x$no_gtk" = x ; then
26318 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
26319echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
26320 wx_cv_lib_gtk=2.0
26321 else
26322 echo "$as_me:$LINENO: result: no" >&5
26323echo "${ECHO_T}no" >&6
26324 if test "$PKG_CONFIG" = "no" ; then
26325 echo "*** A new enough version of pkg-config was not found."
26326 echo "*** See http://pkgconfig.sourceforge.net"
26327 else
26328 if test -f conf.gtktest ; then
26329 :
26330 else
26331 echo "*** Could not run GTK+ test program, checking why..."
26332 ac_save_CFLAGS="$CFLAGS"
26333 ac_save_LIBS="$LIBS"
26334 CFLAGS="$CFLAGS $GTK_CFLAGS"
26335 LIBS="$LIBS $GTK_LIBS"
26336 cat >conftest.$ac_ext <<_ACEOF
26337/* confdefs.h. */
26338_ACEOF
26339cat confdefs.h >>conftest.$ac_ext
26340cat >>conftest.$ac_ext <<_ACEOF
26341/* end confdefs.h. */
26342
26343#include <gtk/gtk.h>
26344#include <stdio.h>
26345
26346int
26347main ()
26348{
26349 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
26350 ;
26351 return 0;
26352}
26353_ACEOF
26354rm -f conftest.$ac_objext conftest$ac_exeext
26355if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26356 (eval $ac_link) 2>conftest.er1
a848cd7e 26357 ac_status=$?
ac1cb8d3
VS
26358 grep -v '^ *+' conftest.er1 >conftest.err
26359 rm -f conftest.er1
26360 cat conftest.err >&5
a848cd7e
SC
26361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26362 (exit $ac_status); } &&
f10e38c4 26363 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26365 (eval $ac_try) 2>&5
26366 ac_status=$?
26367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26368 (exit $ac_status); }; } &&
26369 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26371 (eval $ac_try) 2>&5
26372 ac_status=$?
26373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26374 (exit $ac_status); }; }; then
26375 echo "*** The test program compiled, but did not run. This usually means"
26376 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
26377 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
26378 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
26379 echo "*** to the installed location Also, make sure you have run ldconfig if that"
26380 echo "*** is required on your system"
26381 echo "***"
26382 echo "*** If you have an old version installed, it is best to remove it, although"
26383 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
26384else
26385 echo "$as_me: failed program was:" >&5
26386sed 's/^/| /' conftest.$ac_ext >&5
26387
26388 echo "*** The test program failed to compile or link. See the file config.log for the"
26389 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
26390fi
ac1cb8d3
VS
26391rm -f conftest.err conftest.$ac_objext \
26392 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26393 CFLAGS="$ac_save_CFLAGS"
26394 LIBS="$ac_save_LIBS"
26395 fi
26396 fi
26397 GTK_CFLAGS=""
26398 GTK_LIBS=""
26399 :
26400 fi
26401
26402
26403 rm -f conf.gtktest
26404
5001df0d
MW
26405
26406 case "${host}" in
26407 *-*-solaris2* )
26408 if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
26409 GTK_CFLAGS=`echo $GTK_CFLAGS | sed 's/-mt//'`
26410 GTK_LIBS=`echo $GTK_LIBS | sed 's/-mt//'`
26411 fi
26412 if test "$wxUSE_SHARED" != "yes"; then
26413 GTK_LIBS="$GTK_LIBS -lX11"
26414 fi
26415 esac
f597b41c
MW
26416 fi
26417
f34ca037
MW
26418 if test -z "$wx_cv_lib_gtk"; then
26419 if test "x$wxGTK_VERSION" = "x1" -o "x$wxGTK_VERSION" = "xany" ; then
a848cd7e
SC
26420
26421# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
26422if test "${with_gtk_prefix+set}" = set; then
26423 withval="$with_gtk_prefix"
26424 gtk_config_prefix="$withval"
26425else
26426 gtk_config_prefix=""
26427fi;
26428
26429# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
26430if test "${with_gtk_exec_prefix+set}" = set; then
26431 withval="$with_gtk_exec_prefix"
26432 gtk_config_exec_prefix="$withval"
26433else
26434 gtk_config_exec_prefix=""
26435fi;
26436# Check whether --enable-gtktest or --disable-gtktest was given.
26437if test "${enable_gtktest+set}" = set; then
26438 enableval="$enable_gtktest"
26439
26440else
26441 enable_gtktest=yes
26442fi;
26443
26444 for module in . $GTK_MODULES
26445 do
26446 case "$module" in
26447 gthread)
26448 gtk_config_args="$gtk_config_args gthread"
26449 ;;
26450 esac
26451 done
26452
26453 if test x$gtk_config_exec_prefix != x ; then
26454 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
26455 if test x${GTK_CONFIG+set} != xset ; then
26456 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
26457 fi
26458 fi
26459 if test x$gtk_config_prefix != x ; then
26460 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
26461 if test x${GTK_CONFIG+set} != xset ; then
26462 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
26463 fi
26464 fi
26465
26466 # Extract the first word of "gtk-config", so it can be a program name with args.
26467set dummy gtk-config; ac_word=$2
26468echo "$as_me:$LINENO: checking for $ac_word" >&5
26469echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
26470if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
26471 echo $ECHO_N "(cached) $ECHO_C" >&6
26472else
26473 case $GTK_CONFIG in
26474 [\\/]* | ?:[\\/]*)
26475 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
26476 ;;
26477 *)
26478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26479for as_dir in $PATH
26480do
26481 IFS=$as_save_IFS
26482 test -z "$as_dir" && as_dir=.
26483 for ac_exec_ext in '' $ac_executable_extensions; do
26484 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26485 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
26486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26487 break 2
26488 fi
26489done
26490done
26491
26492 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
26493 ;;
26494esac
26495fi
26496GTK_CONFIG=$ac_cv_path_GTK_CONFIG
26497
26498if test -n "$GTK_CONFIG"; then
26499 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
26500echo "${ECHO_T}$GTK_CONFIG" >&6
26501else
26502 echo "$as_me:$LINENO: result: no" >&5
26503echo "${ECHO_T}no" >&6
26504fi
26505
26506 min_gtk_version=1.2.7
26507 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
26508echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
26509 no_gtk=""
26510 if test "$GTK_CONFIG" = "no" ; then
26511 no_gtk=yes
26512 else
26513 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
26514 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
26515 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
26516 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
26517 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
26518 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
26519 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
26520 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
26521 if test "x$enable_gtktest" = "xyes" ; then
26522 ac_save_CFLAGS="$CFLAGS"
26523 ac_save_LIBS="$LIBS"
26524 CFLAGS="$CFLAGS $GTK_CFLAGS"
26525 LIBS="$GTK_LIBS $LIBS"
26526 rm -f conf.gtktest
26527 if test "$cross_compiling" = yes; then
26528 echo $ac_n "cross compiling; assumed OK... $ac_c"
26529else
26530 cat >conftest.$ac_ext <<_ACEOF
26531/* confdefs.h. */
26532_ACEOF
26533cat confdefs.h >>conftest.$ac_ext
26534cat >>conftest.$ac_ext <<_ACEOF
26535/* end confdefs.h. */
26536
26537#include <gtk/gtk.h>
26538#include <stdio.h>
26539#include <stdlib.h>
26540
26541int
26542main ()
26543{
26544 int major, minor, micro;
26545 char *tmp_version;
26546
26547 system ("touch conf.gtktest");
26548
26549 /* HP/UX 9 (%@#!) writes to sscanf strings */
26550 tmp_version = g_strdup("$min_gtk_version");
26551 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
26552 printf("%s, bad version string\n", "$min_gtk_version");
26553 exit(1);
26554 }
26555
26556 if ((gtk_major_version != $gtk_config_major_version) ||
26557 (gtk_minor_version != $gtk_config_minor_version) ||
26558 (gtk_micro_version != $gtk_config_micro_version))
26559 {
26560 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
26561 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
26562 gtk_major_version, gtk_minor_version, gtk_micro_version);
26563 printf ("*** was found! If gtk-config was correct, then it is best\n");
26564 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
26565 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
26566 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
26567 printf("*** required on your system.\n");
26568 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
26569 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
26570 printf("*** before re-running configure\n");
26571 }
26572#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
26573 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
26574 (gtk_minor_version != GTK_MINOR_VERSION) ||
26575 (gtk_micro_version != GTK_MICRO_VERSION))
26576 {
26577 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
26578 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
26579 printf("*** library (version %d.%d.%d)\n",
26580 gtk_major_version, gtk_minor_version, gtk_micro_version);
26581 }
26582#endif /* defined (GTK_MAJOR_VERSION) ... */
26583 else
26584 {
26585 if ((gtk_major_version > major) ||
26586 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
26587 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
26588 {
26589 return 0;
26590 }
26591 else
26592 {
26593 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
26594 gtk_major_version, gtk_minor_version, gtk_micro_version);
26595 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
26596 major, minor, micro);
26597 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
26598 printf("***\n");
26599 printf("*** If you have already installed a sufficiently new version, this error\n");
26600 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
26601 printf("*** being found. The easiest way to fix this is to remove the old version\n");
26602 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
26603 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
26604 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
26605 printf("*** so that the correct libraries are found at run-time))\n");
26606 }
26607 }
26608 return 1;
26609}
26610
26611_ACEOF
26612rm -f conftest$ac_exeext
26613if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26614 (eval $ac_link) 2>&5
26615 ac_status=$?
26616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26617 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26619 (eval $ac_try) 2>&5
26620 ac_status=$?
26621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26622 (exit $ac_status); }; }; then
26623 :
26624else
26625 echo "$as_me: program exited with status $ac_status" >&5
26626echo "$as_me: failed program was:" >&5
26627sed 's/^/| /' conftest.$ac_ext >&5
26628
26629( exit $ac_status )
26630no_gtk=yes
26631fi
ac1cb8d3 26632rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26633fi
26634 CFLAGS="$ac_save_CFLAGS"
26635 LIBS="$ac_save_LIBS"
26636 fi
26637 fi
26638 if test "x$no_gtk" = x ; then
26639 echo "$as_me:$LINENO: result: yes" >&5
26640echo "${ECHO_T}yes" >&6
26641 wx_cv_lib_gtk=1.2.7
26642 else
26643 echo "$as_me:$LINENO: result: no" >&5
26644echo "${ECHO_T}no" >&6
26645 if test "$GTK_CONFIG" = "no" ; then
26646 echo "*** The gtk-config script installed by GTK could not be found"
26647 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
26648 echo "*** your path, or set the GTK_CONFIG environment variable to the"
26649 echo "*** full path to gtk-config."
26650 else
26651 if test -f conf.gtktest ; then
26652 :
26653 else
26654 echo "*** Could not run GTK test program, checking why..."
26655 CFLAGS="$CFLAGS $GTK_CFLAGS"
26656 LIBS="$LIBS $GTK_LIBS"
26657 cat >conftest.$ac_ext <<_ACEOF
26658/* confdefs.h. */
26659_ACEOF
26660cat confdefs.h >>conftest.$ac_ext
26661cat >>conftest.$ac_ext <<_ACEOF
26662/* end confdefs.h. */
26663
26664#include <gtk/gtk.h>
26665#include <stdio.h>
26666
26667int
26668main ()
26669{
26670 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
26671 ;
26672 return 0;
26673}
26674_ACEOF
26675rm -f conftest.$ac_objext conftest$ac_exeext
26676if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26677 (eval $ac_link) 2>conftest.er1
a848cd7e 26678 ac_status=$?
ac1cb8d3
VS
26679 grep -v '^ *+' conftest.er1 >conftest.err
26680 rm -f conftest.er1
26681 cat conftest.err >&5
a848cd7e
SC
26682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26683 (exit $ac_status); } &&
f10e38c4 26684 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26686 (eval $ac_try) 2>&5
26687 ac_status=$?
26688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26689 (exit $ac_status); }; } &&
26690 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26692 (eval $ac_try) 2>&5
26693 ac_status=$?
26694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26695 (exit $ac_status); }; }; then
26696 echo "*** The test program compiled, but did not run. This usually means"
26697 echo "*** that the run-time linker is not finding GTK or finding the wrong"
26698 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
26699 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
26700 echo "*** to the installed location Also, make sure you have run ldconfig if that"
26701 echo "*** is required on your system"
26702 echo "***"
26703 echo "*** If you have an old version installed, it is best to remove it, although"
26704 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
26705 echo "***"
26706 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
26707 echo "*** came with the system with the command"
26708 echo "***"
26709 echo "*** rpm --erase --nodeps gtk gtk-devel"
26710else
26711 echo "$as_me: failed program was:" >&5
26712sed 's/^/| /' conftest.$ac_ext >&5
26713
26714 echo "*** The test program failed to compile or link. See the file config.log for the"
26715 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
26716 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
26717 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
26718fi
ac1cb8d3
VS
26719rm -f conftest.err conftest.$ac_objext \
26720 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26721 CFLAGS="$ac_save_CFLAGS"
26722 LIBS="$ac_save_LIBS"
26723 fi
26724 fi
26725 GTK_CFLAGS=""
26726 GTK_LIBS=""
26727 :
26728 fi
26729
26730
26731 rm -f conf.gtktest
26732
26733
f34ca037 26734 if test -z "$wx_cv_lib_gtk"; then
a848cd7e
SC
26735
26736# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
26737if test "${with_gtk_prefix+set}" = set; then
26738 withval="$with_gtk_prefix"
26739 gtk_config_prefix="$withval"
26740else
26741 gtk_config_prefix=""
26742fi;
26743
26744# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
26745if test "${with_gtk_exec_prefix+set}" = set; then
26746 withval="$with_gtk_exec_prefix"
26747 gtk_config_exec_prefix="$withval"
26748else
26749 gtk_config_exec_prefix=""
26750fi;
26751# Check whether --enable-gtktest or --disable-gtktest was given.
26752if test "${enable_gtktest+set}" = set; then
26753 enableval="$enable_gtktest"
26754
26755else
26756 enable_gtktest=yes
26757fi;
26758
26759 for module in . $GTK_MODULES
26760 do
26761 case "$module" in
26762 gthread)
26763 gtk_config_args="$gtk_config_args gthread"
26764 ;;
26765 esac
26766 done
26767
26768 if test x$gtk_config_exec_prefix != x ; then
26769 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
26770 if test x${GTK_CONFIG+set} != xset ; then
26771 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
26772 fi
26773 fi
26774 if test x$gtk_config_prefix != x ; then
26775 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
26776 if test x${GTK_CONFIG+set} != xset ; then
26777 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
26778 fi
26779 fi
26780
26781 # Extract the first word of "gtk-config", so it can be a program name with args.
26782set dummy gtk-config; ac_word=$2
26783echo "$as_me:$LINENO: checking for $ac_word" >&5
26784echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
26785if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
26786 echo $ECHO_N "(cached) $ECHO_C" >&6
26787else
26788 case $GTK_CONFIG in
26789 [\\/]* | ?:[\\/]*)
26790 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
26791 ;;
26792 *)
26793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26794for as_dir in $PATH
26795do
26796 IFS=$as_save_IFS
26797 test -z "$as_dir" && as_dir=.
26798 for ac_exec_ext in '' $ac_executable_extensions; do
26799 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26800 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
26801 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26802 break 2
26803 fi
26804done
26805done
26806
26807 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
26808 ;;
26809esac
26810fi
26811GTK_CONFIG=$ac_cv_path_GTK_CONFIG
26812
26813if test -n "$GTK_CONFIG"; then
26814 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
26815echo "${ECHO_T}$GTK_CONFIG" >&6
26816else
26817 echo "$as_me:$LINENO: result: no" >&5
26818echo "${ECHO_T}no" >&6
26819fi
26820
26821 min_gtk_version=1.2.3
26822 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
26823echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
26824 no_gtk=""
26825 if test "$GTK_CONFIG" = "no" ; then
26826 no_gtk=yes
26827 else
26828 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
26829 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
26830 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
26831 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
26832 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
26833 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
26834 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
26835 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
26836 if test "x$enable_gtktest" = "xyes" ; then
26837 ac_save_CFLAGS="$CFLAGS"
26838 ac_save_LIBS="$LIBS"
26839 CFLAGS="$CFLAGS $GTK_CFLAGS"
26840 LIBS="$GTK_LIBS $LIBS"
26841 rm -f conf.gtktest
26842 if test "$cross_compiling" = yes; then
26843 echo $ac_n "cross compiling; assumed OK... $ac_c"
26844else
26845 cat >conftest.$ac_ext <<_ACEOF
26846/* confdefs.h. */
26847_ACEOF
26848cat confdefs.h >>conftest.$ac_ext
26849cat >>conftest.$ac_ext <<_ACEOF
26850/* end confdefs.h. */
26851
26852#include <gtk/gtk.h>
26853#include <stdio.h>
26854#include <stdlib.h>
26855
26856int
26857main ()
26858{
26859 int major, minor, micro;
26860 char *tmp_version;
26861
26862 system ("touch conf.gtktest");
26863
26864 /* HP/UX 9 (%@#!) writes to sscanf strings */
26865 tmp_version = g_strdup("$min_gtk_version");
26866 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
26867 printf("%s, bad version string\n", "$min_gtk_version");
26868 exit(1);
26869 }
26870
26871 if ((gtk_major_version != $gtk_config_major_version) ||
26872 (gtk_minor_version != $gtk_config_minor_version) ||
26873 (gtk_micro_version != $gtk_config_micro_version))
26874 {
26875 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
26876 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
26877 gtk_major_version, gtk_minor_version, gtk_micro_version);
26878 printf ("*** was found! If gtk-config was correct, then it is best\n");
26879 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
26880 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
26881 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
26882 printf("*** required on your system.\n");
26883 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
26884 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
26885 printf("*** before re-running configure\n");
26886 }
26887#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
26888 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
26889 (gtk_minor_version != GTK_MINOR_VERSION) ||
26890 (gtk_micro_version != GTK_MICRO_VERSION))
26891 {
26892 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
26893 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
26894 printf("*** library (version %d.%d.%d)\n",
26895 gtk_major_version, gtk_minor_version, gtk_micro_version);
26896 }
26897#endif /* defined (GTK_MAJOR_VERSION) ... */
26898 else
26899 {
26900 if ((gtk_major_version > major) ||
26901 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
26902 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
26903 {
26904 return 0;
26905 }
26906 else
26907 {
26908 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
26909 gtk_major_version, gtk_minor_version, gtk_micro_version);
26910 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
26911 major, minor, micro);
26912 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
26913 printf("***\n");
26914 printf("*** If you have already installed a sufficiently new version, this error\n");
26915 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
26916 printf("*** being found. The easiest way to fix this is to remove the old version\n");
26917 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
26918 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
26919 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
26920 printf("*** so that the correct libraries are found at run-time))\n");
26921 }
26922 }
26923 return 1;
26924}
26925
26926_ACEOF
26927rm -f conftest$ac_exeext
26928if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26929 (eval $ac_link) 2>&5
26930 ac_status=$?
26931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26932 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26934 (eval $ac_try) 2>&5
26935 ac_status=$?
26936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26937 (exit $ac_status); }; }; then
26938 :
26939else
26940 echo "$as_me: program exited with status $ac_status" >&5
26941echo "$as_me: failed program was:" >&5
26942sed 's/^/| /' conftest.$ac_ext >&5
26943
26944( exit $ac_status )
26945no_gtk=yes
26946fi
ac1cb8d3 26947rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26948fi
26949 CFLAGS="$ac_save_CFLAGS"
26950 LIBS="$ac_save_LIBS"
26951 fi
26952 fi
26953 if test "x$no_gtk" = x ; then
26954 echo "$as_me:$LINENO: result: yes" >&5
26955echo "${ECHO_T}yes" >&6
26956 wx_cv_lib_gtk=1.2.3
26957 else
26958 echo "$as_me:$LINENO: result: no" >&5
26959echo "${ECHO_T}no" >&6
26960 if test "$GTK_CONFIG" = "no" ; then
26961 echo "*** The gtk-config script installed by GTK could not be found"
26962 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
26963 echo "*** your path, or set the GTK_CONFIG environment variable to the"
26964 echo "*** full path to gtk-config."
26965 else
26966 if test -f conf.gtktest ; then
26967 :
26968 else
26969 echo "*** Could not run GTK test program, checking why..."
26970 CFLAGS="$CFLAGS $GTK_CFLAGS"
26971 LIBS="$LIBS $GTK_LIBS"
26972 cat >conftest.$ac_ext <<_ACEOF
26973/* confdefs.h. */
26974_ACEOF
26975cat confdefs.h >>conftest.$ac_ext
26976cat >>conftest.$ac_ext <<_ACEOF
26977/* end confdefs.h. */
26978
26979#include <gtk/gtk.h>
26980#include <stdio.h>
26981
26982int
26983main ()
26984{
26985 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
26986 ;
26987 return 0;
26988}
26989_ACEOF
26990rm -f conftest.$ac_objext conftest$ac_exeext
26991if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26992 (eval $ac_link) 2>conftest.er1
a848cd7e 26993 ac_status=$?
ac1cb8d3
VS
26994 grep -v '^ *+' conftest.er1 >conftest.err
26995 rm -f conftest.er1
26996 cat conftest.err >&5
a848cd7e
SC
26997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26998 (exit $ac_status); } &&
f10e38c4 26999 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27001 (eval $ac_try) 2>&5
27002 ac_status=$?
27003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27004 (exit $ac_status); }; } &&
27005 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27007 (eval $ac_try) 2>&5
27008 ac_status=$?
27009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27010 (exit $ac_status); }; }; then
27011 echo "*** The test program compiled, but did not run. This usually means"
27012 echo "*** that the run-time linker is not finding GTK or finding the wrong"
27013 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
27014 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
27015 echo "*** to the installed location Also, make sure you have run ldconfig if that"
27016 echo "*** is required on your system"
27017 echo "***"
27018 echo "*** If you have an old version installed, it is best to remove it, although"
27019 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
27020 echo "***"
27021 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
27022 echo "*** came with the system with the command"
27023 echo "***"
27024 echo "*** rpm --erase --nodeps gtk gtk-devel"
27025else
27026 echo "$as_me: failed program was:" >&5
27027sed 's/^/| /' conftest.$ac_ext >&5
27028
27029 echo "*** The test program failed to compile or link. See the file config.log for the"
27030 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
27031 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
27032 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
27033fi
ac1cb8d3
VS
27034rm -f conftest.err conftest.$ac_objext \
27035 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27036 CFLAGS="$ac_save_CFLAGS"
27037 LIBS="$ac_save_LIBS"
27038 fi
27039 fi
27040 GTK_CFLAGS=""
27041 GTK_LIBS=""
27042 :
27043 fi
27044
27045
27046 rm -f conf.gtktest
27047
f34ca037 27048 fi
a848cd7e
SC
27049 fi
27050 fi
27051
27052 if test -z "$wx_cv_lib_gtk"; then
27053 wx_cv_lib_gtk=none
27054 else
27055 wx_cv_cflags_gtk=$GTK_CFLAGS
d2822091 27056 wx_cv_libs_gtk=`echo $GTK_LIBS | sed -e 's/ -l[^ ]*cairo[^ ]*//g'`
a848cd7e
SC
27057 fi
27058
27059
27060fi
27061
27062
27063 if test "$gtk_version_cached" = 1; then
27064 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
27065echo "${ECHO_T}$wx_cv_lib_gtk" >&6
27066 fi
27067
27068 case "$wx_cv_lib_gtk" in
27069 2.0) WXGTK20=1
27070 TOOLKIT_VERSION=2
27071 ;;
27072 1.2.7) WXGTK127=1
27073 WXGTK12=1
27074 ;;
27075 1.2.3) WXGTK12=1
27076 ;;
27077 *) { { echo "$as_me:$LINENO: error:
f597b41c
MW
27078The development files for GTK+ were not found. For GTK+ 2, please
27079ensure that pkg-config is in the path and that gtk+-2.0.pc is
27080installed. For GTK+ 1.2 please check that gtk-config is in the path,
27081and that the version is 1.2.3 or above. Also check that the
27082libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
27083--libs' are in the LD_LIBRARY_PATH or equivalent.
a848cd7e
SC
27084 " >&5
27085echo "$as_me: error:
f597b41c
MW
27086The development files for GTK+ were not found. For GTK+ 2, please
27087ensure that pkg-config is in the path and that gtk+-2.0.pc is
27088installed. For GTK+ 1.2 please check that gtk-config is in the path,
27089and that the version is 1.2.3 or above. Also check that the
27090libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
27091--libs' are in the LD_LIBRARY_PATH or equivalent.
a848cd7e
SC
27092 " >&2;}
27093 { (exit 1); exit 1; }; }
27094 ;;
27095 esac
27096
27097 if test "$WXGTK20" = 1; then
304205f1
VS
27098 save_CFLAGS="$CFLAGS"
27099 save_LIBS="$LIBS"
c92ad099 27100 CFLAGS="$wx_cv_cflags_gtk $CFLAGS"
abc736fd 27101 LIBS="$LIBS $wx_cv_libs_gtk"
304205f1 27102
d12aef51
VZ
27103 echo "$as_me:$LINENO: checking if gtk_icon_size_lookup is missing" >&5
27104echo $ECHO_N "checking if gtk_icon_size_lookup is missing... $ECHO_C" >&6
27105 cat >conftest.$ac_ext <<_ACEOF
304205f1
VS
27106/* confdefs.h. */
27107_ACEOF
27108cat confdefs.h >>conftest.$ac_ext
27109cat >>conftest.$ac_ext <<_ACEOF
27110/* end confdefs.h. */
304205f1 27111
d12aef51 27112 #include <gtk/gtk.h>
304205f1 27113
d12aef51
VZ
27114int
27115main ()
27116{
304205f1 27117
d12aef51 27118 void *f = gtk_icon_size_lookup;
abc736fd
MW
27119
27120 ;
27121 return 0;
27122}
27123_ACEOF
27124rm -f conftest.$ac_objext
27125if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27126 (eval $ac_compile) 2>conftest.er1
27127 ac_status=$?
27128 grep -v '^ *+' conftest.er1 >conftest.err
27129 rm -f conftest.er1
27130 cat conftest.err >&5
27131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27132 (exit $ac_status); } &&
f10e38c4 27133 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
abc736fd
MW
27134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27135 (eval $ac_try) 2>&5
27136 ac_status=$?
27137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27138 (exit $ac_status); }; } &&
27139 { ac_try='test -s conftest.$ac_objext'
27140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27141 (eval $ac_try) 2>&5
27142 ac_status=$?
27143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27144 (exit $ac_status); }; }; then
27145
27146 echo "$as_me:$LINENO: result: no" >&5
27147echo "${ECHO_T}no" >&6
27148
27149else
27150 echo "$as_me: failed program was:" >&5
27151sed 's/^/| /' conftest.$ac_ext >&5
27152
27153
27154 cat >>confdefs.h <<\_ACEOF
27155#define NEED_GTK_ICON_SIZE_LOOKUP 1
27156_ACEOF
27157
27158 echo "$as_me:$LINENO: result: yes" >&5
27159echo "${ECHO_T}yes" >&6
27160
27161fi
27162rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27163
9755e73b
VS
27164 echo "$as_me:$LINENO: checking if GTK+ is version >= 2.4" >&5
27165echo $ECHO_N "checking if GTK+ is version >= 2.4... $ECHO_C" >&6
27166 cat >conftest.$ac_ext <<_ACEOF
27167/* confdefs.h. */
27168_ACEOF
27169cat confdefs.h >>conftest.$ac_ext
27170cat >>conftest.$ac_ext <<_ACEOF
27171/* end confdefs.h. */
27172
27173 #include <gtk/gtk.h>
27174
27175int
27176main ()
27177{
27178
27179 #if !GTK_CHECK_VERSION(2,4,0)
04e525a0 27180 Not GTK+ 2.4
9755e73b
VS
27181 #endif
27182
27183 ;
27184 return 0;
27185}
27186_ACEOF
27187rm -f conftest.$ac_objext
27188if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27189 (eval $ac_compile) 2>conftest.er1
27190 ac_status=$?
27191 grep -v '^ *+' conftest.er1 >conftest.err
27192 rm -f conftest.er1
27193 cat conftest.err >&5
27194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27195 (exit $ac_status); } &&
f10e38c4 27196 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9755e73b
VS
27197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27198 (eval $ac_try) 2>&5
27199 ac_status=$?
27200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27201 (exit $ac_status); }; } &&
27202 { ac_try='test -s conftest.$ac_objext'
27203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27204 (eval $ac_try) 2>&5
27205 ac_status=$?
27206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27207 (exit $ac_status); }; }; then
27208
27209 cat >>confdefs.h <<\_ACEOF
27210#define __WXGTK24__ 1
27211_ACEOF
27212
27213 echo "$as_me:$LINENO: result: yes" >&5
27214echo "${ECHO_T}yes" >&6
27215
27216else
27217 echo "$as_me: failed program was:" >&5
27218sed 's/^/| /' conftest.$ac_ext >&5
27219
27220
27221 echo "$as_me:$LINENO: result: no" >&5
27222echo "${ECHO_T}no" >&6
27223
27224fi
27225rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27226
304205f1
VS
27227 CFLAGS="$save_CFLAGS"
27228 LIBS="$save_LIBS"
a848cd7e
SC
27229 else
27230 if test "$wxUSE_UNICODE" = "yes"; then
27231 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
27232echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
27233 wxUSE_UNICODE=no
27234 fi
27235 fi
27236
27237 if test "$USE_DARWIN" != 1; then
27238
27239for ac_func in poll
27240do
27241as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27242echo "$as_me:$LINENO: checking for $ac_func" >&5
27243echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27244if eval "test \"\${$as_ac_var+set}\" = set"; then
27245 echo $ECHO_N "(cached) $ECHO_C" >&6
27246else
27247 cat >conftest.$ac_ext <<_ACEOF
27248/* confdefs.h. */
27249_ACEOF
27250cat confdefs.h >>conftest.$ac_ext
27251cat >>conftest.$ac_ext <<_ACEOF
27252/* end confdefs.h. */
ac1cb8d3
VS
27253/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27254 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27255#define $ac_func innocuous_$ac_func
27256
a848cd7e
SC
27257/* System header to define __stub macros and hopefully few prototypes,
27258 which can conflict with char $ac_func (); below.
27259 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27260 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 27261
a848cd7e
SC
27262#ifdef __STDC__
27263# include <limits.h>
27264#else
27265# include <assert.h>
27266#endif
ac1cb8d3
VS
27267
27268#undef $ac_func
27269
a848cd7e
SC
27270/* Override any gcc2 internal prototype to avoid an error. */
27271#ifdef __cplusplus
27272extern "C"
27273{
27274#endif
27275/* We use char because int might match the return type of a gcc2
27276 builtin and then its argument prototype would still apply. */
27277char $ac_func ();
27278/* The GNU C library defines this for functions which it implements
27279 to always fail with ENOSYS. Some functions are actually named
27280 something starting with __ and the normal name is an alias. */
27281#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27282choke me
27283#else
27284char (*f) () = $ac_func;
27285#endif
27286#ifdef __cplusplus
27287}
27288#endif
27289
27290int
27291main ()
27292{
27293return f != $ac_func;
27294 ;
27295 return 0;
27296}
27297_ACEOF
27298rm -f conftest.$ac_objext conftest$ac_exeext
27299if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27300 (eval $ac_link) 2>conftest.er1
a848cd7e 27301 ac_status=$?
ac1cb8d3
VS
27302 grep -v '^ *+' conftest.er1 >conftest.err
27303 rm -f conftest.er1
27304 cat conftest.err >&5
a848cd7e
SC
27305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27306 (exit $ac_status); } &&
f10e38c4 27307 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27309 (eval $ac_try) 2>&5
27310 ac_status=$?
27311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27312 (exit $ac_status); }; } &&
27313 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27315 (eval $ac_try) 2>&5
27316 ac_status=$?
27317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27318 (exit $ac_status); }; }; then
27319 eval "$as_ac_var=yes"
27320else
27321 echo "$as_me: failed program was:" >&5
27322sed 's/^/| /' conftest.$ac_ext >&5
27323
27324eval "$as_ac_var=no"
27325fi
ac1cb8d3
VS
27326rm -f conftest.err conftest.$ac_objext \
27327 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27328fi
27329echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27330echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27331if test `eval echo '${'$as_ac_var'}'` = yes; then
27332 cat >>confdefs.h <<_ACEOF
27333#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27334_ACEOF
27335
27336fi
27337done
27338
27339 fi
27340
27341 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
27342 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
27343
27344 AFMINSTALL=afminstall
27345 TOOLKIT=GTK
27346 GUIDIST=GTK_DIST
27347
27348 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
27349echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
27350if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
27351 echo $ECHO_N "(cached) $ECHO_C" >&6
27352else
27353 ac_check_lib_save_LIBS=$LIBS
27354LIBS="-lgdk $LIBS"
27355cat >conftest.$ac_ext <<_ACEOF
27356/* confdefs.h. */
27357_ACEOF
27358cat confdefs.h >>conftest.$ac_ext
27359cat >>conftest.$ac_ext <<_ACEOF
27360/* end confdefs.h. */
27361
27362/* Override any gcc2 internal prototype to avoid an error. */
27363#ifdef __cplusplus
27364extern "C"
27365#endif
27366/* We use char because int might match the return type of a gcc2
27367 builtin and then its argument prototype would still apply. */
27368char gdk_im_open ();
27369int
27370main ()
27371{
27372gdk_im_open ();
27373 ;
27374 return 0;
27375}
27376_ACEOF
27377rm -f conftest.$ac_objext conftest$ac_exeext
27378if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27379 (eval $ac_link) 2>conftest.er1
a848cd7e 27380 ac_status=$?
ac1cb8d3
VS
27381 grep -v '^ *+' conftest.er1 >conftest.err
27382 rm -f conftest.er1
27383 cat conftest.err >&5
a848cd7e
SC
27384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27385 (exit $ac_status); } &&
f10e38c4 27386 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27388 (eval $ac_try) 2>&5
27389 ac_status=$?
27390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27391 (exit $ac_status); }; } &&
27392 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27394 (eval $ac_try) 2>&5
27395 ac_status=$?
27396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27397 (exit $ac_status); }; }; then
27398 ac_cv_lib_gdk_gdk_im_open=yes
27399else
27400 echo "$as_me: failed program was:" >&5
27401sed 's/^/| /' conftest.$ac_ext >&5
27402
27403ac_cv_lib_gdk_gdk_im_open=no
27404fi
ac1cb8d3
VS
27405rm -f conftest.err conftest.$ac_objext \
27406 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27407LIBS=$ac_check_lib_save_LIBS
27408fi
27409echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
27410echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
27411if test $ac_cv_lib_gdk_gdk_im_open = yes; then
27412 cat >>confdefs.h <<\_ACEOF
27413#define HAVE_XIM 1
27414_ACEOF
27415
27416fi
27417
27418
27419
27420 if test "$wxUSE_GPE" = "yes"; then
27421 echo "$as_me:$LINENO: checking for gpewidget library" >&5
27422echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6
27423
0ad5d837
VZ
27424 ac_find_libraries=
27425 for ac_dir in $SEARCH_LIB;
a848cd7e 27426 do
3eca31dc 27427 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
27428 if test -f "$ac_dir/libgpewidget.$ac_extension"; then
27429 ac_find_libraries=$ac_dir
27430 break 2
27431 fi
27432 done
27433 done
27434
27435 if test "$ac_find_libraries" != "" ; then
27436
0ad5d837 27437 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
27438 ac_path_to_link=""
27439 else
0ad5d837
VZ
27440 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
27441 result=$?
27442 if test $result = 0; then
27443 ac_path_to_link=""
27444 else
27445 ac_path_to_link=" -L$ac_find_libraries"
27446 fi
a848cd7e
SC
27447 fi
27448
27449 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
27450 WXGPE=1
0ad5d837
VZ
27451 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
27452echo "${ECHO_T}found in $ac_find_libraries" >&6
a848cd7e
SC
27453 else
27454 echo "$as_me:$LINENO: result: not found" >&5
27455echo "${ECHO_T}not found" >&6
27456 fi
27457
27458 fi
27459 fi
27460
27461 if test "$wxUSE_MGL" = 1; then
27462 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
27463echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
27464 if test "x$MGL_ROOT" = x ; then
27465 echo "$as_me:$LINENO: result: not found" >&5
27466echo "${ECHO_T}not found" >&6
27467 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
27468echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
27469 { (exit 1); exit 1; }; }
27470 else
27471 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
27472echo "${ECHO_T}$MGL_ROOT" >&6
27473 fi
27474
27475 echo "$as_me:$LINENO: checking for libmgl location" >&5
27476echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
27477 case "${host}" in
27478 *-*-linux* )
27479 if test "x$wxUSE_SHARED" = xyes ; then
27480 mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
27481 else
27482 mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
27483 fi
27484 ;;
27485 *-pc-msdosdjgpp )
27486 mgl_os_candidates="dos32/dj2"
27487 ;;
27488 *)
27489 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
27490echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
27491 { (exit 1); exit 1; }; }
27492 esac
27493
27494 mgl_lib_type=""
27495 mgl_os=""
27496
27497 for mgl_os_i in $mgl_os_candidates ; do
27498 if test "x$mgl_os" = x ; then
27499 if test "$wxUSE_DEBUG_FLAG" = yes ; then
27500 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
27501 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
27502 mgl_lib_type=debug
27503 mgl_os=$mgl_os_i
27504 fi
27505 fi
27506 if test "x$mgl_lib_type" = x ; then
27507 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
27508 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
27509 mgl_lib_type=release
27510 mgl_os=$mgl_os_i
27511 fi
27512 fi
27513 fi
27514 done
27515
27516 if test "x$mgl_os" = x ; then
27517 echo "$as_me:$LINENO: result: not found" >&5
27518echo "${ECHO_T}not found" >&6
27519 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
27520echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
27521 { (exit 1); exit 1; }; }
27522 fi
27523 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
27524echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
27525
27526 wxUSE_UNIVERSAL="yes"
27527
27528 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
27529 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
27530
27531 AFMINSTALL=afminstall
27532 TOOLKIT=MGL
27533 GUIDIST=MGL_DIST
27534 fi
27535
27536 if test "$wxUSE_MICROWIN" = 1; then
27537 echo "$as_me:$LINENO: checking for MicroWindows" >&5
27538echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
27539 if test "x$MICROWINDOWS" = x ; then
27540 echo "$as_me:$LINENO: result: not found" >&5
27541echo "${ECHO_T}not found" >&6
27542 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
27543echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
27544 { (exit 1); exit 1; }; }
27545 else
27546 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
27547echo "${ECHO_T}$MICROWINDOWS" >&6
27548 fi
27549
27550 if test -f $MICROWINDOWS/lib/libmwin.a; then
27551 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
27552echo "${ECHO_T}MicroWindows' libraries found." >&6
27553 else
27554 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
27555echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
27556 { (exit 1); exit 1; }; }
27557 fi
27558
27559 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
27560 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
27561
27562 wxUSE_UNIVERSAL="yes"
27563
27564 AFMINSTALL=afminstall
27565 TOOLKIT=MICROWIN
27566 GUIDIST=MICROWIN_DIST
27567
27568 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
27569 fi
27570
74b84332 27571 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
f10e38c4
VZ
27572
27573if test "x$ac_path_x_has_been_run" != xyes; then
27574 echo "$as_me:$LINENO: checking for X" >&5
a848cd7e
SC
27575echo $ECHO_N "checking for X... $ECHO_C" >&6
27576
f10e38c4 27577ac_path_x_has_been_run=yes
a848cd7e
SC
27578
27579# Check whether --with-x or --without-x was given.
27580if test "${with_x+set}" = set; then
27581 withval="$with_x"
27582
27583fi;
27584# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
27585if test "x$with_x" = xno; then
27586 # The user explicitly disabled X.
27587 have_x=disabled
27588else
27589 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
27590 # Both variables are already set.
27591 have_x=yes
27592 else
27593 if test "${ac_cv_have_x+set}" = set; then
27594 echo $ECHO_N "(cached) $ECHO_C" >&6
27595else
27596 # One or both of the vars are not set, and there is no cached value.
27597ac_x_includes=no ac_x_libraries=no
27598rm -fr conftest.dir
27599if mkdir conftest.dir; then
27600 cd conftest.dir
27601 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
27602 cat >Imakefile <<'_ACEOF'
27603acfindx:
27604 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
27605_ACEOF
27606 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
27607 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
27608 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
27609 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
27610 for ac_extension in a so sl; do
27611 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
ac1cb8d3
VS
27612 test -f $ac_im_libdir/libX11.$ac_extension; then
27613 ac_im_usrlibdir=$ac_im_libdir; break
a848cd7e
SC
27614 fi
27615 done
27616 # Screen out bogus values from the imake configuration. They are
27617 # bogus both because they are the default anyway, and because
27618 # using them would break gcc on systems where it needs fixed includes.
27619 case $ac_im_incroot in
27620 /usr/include) ;;
27621 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
27622 esac
27623 case $ac_im_usrlibdir in
27624 /usr/lib | /lib) ;;
27625 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
27626 esac
27627 fi
27628 cd ..
27629 rm -fr conftest.dir
27630fi
27631
27632# Standard set of common directories for X headers.
27633# Check X11 before X11Rn because it is often a symlink to the current release.
27634ac_x_header_dirs='
27635/usr/X11/include
27636/usr/X11R6/include
27637/usr/X11R5/include
27638/usr/X11R4/include
27639
27640/usr/include/X11
27641/usr/include/X11R6
27642/usr/include/X11R5
27643/usr/include/X11R4
27644
27645/usr/local/X11/include
27646/usr/local/X11R6/include
27647/usr/local/X11R5/include
27648/usr/local/X11R4/include
27649
27650/usr/local/include/X11
27651/usr/local/include/X11R6
27652/usr/local/include/X11R5
27653/usr/local/include/X11R4
27654
27655/usr/X386/include
27656/usr/x386/include
27657/usr/XFree86/include/X11
27658
27659/usr/include
27660/usr/local/include
27661/usr/unsupported/include
27662/usr/athena/include
27663/usr/local/x11r5/include
27664/usr/lpp/Xamples/include
27665
27666/usr/openwin/include
27667/usr/openwin/share/include'
27668
27669if test "$ac_x_includes" = no; then
f10e38c4 27670 # Guess where to find include files, by looking for a specified header file.
a848cd7e
SC
27671 # First, try using that file with no special directory specified.
27672 cat >conftest.$ac_ext <<_ACEOF
27673/* confdefs.h. */
27674_ACEOF
27675cat confdefs.h >>conftest.$ac_ext
27676cat >>conftest.$ac_ext <<_ACEOF
27677/* end confdefs.h. */
f10e38c4 27678#include <X11/Xlib.h>
a848cd7e
SC
27679_ACEOF
27680if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27681 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27682 ac_status=$?
27683 grep -v '^ *+' conftest.er1 >conftest.err
27684 rm -f conftest.er1
27685 cat conftest.err >&5
27686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27687 (exit $ac_status); } >/dev/null; then
27688 if test -s conftest.err; then
27689 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 27690 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
27691 else
27692 ac_cpp_err=
27693 fi
27694else
27695 ac_cpp_err=yes
27696fi
27697if test -z "$ac_cpp_err"; then
27698 # We can compile using X headers with no special include directory.
27699ac_x_includes=
27700else
27701 echo "$as_me: failed program was:" >&5
27702sed 's/^/| /' conftest.$ac_ext >&5
27703
27704 for ac_dir in $ac_x_header_dirs; do
f10e38c4 27705 if test -r "$ac_dir/X11/Xlib.h"; then
a848cd7e
SC
27706 ac_x_includes=$ac_dir
27707 break
27708 fi
27709done
27710fi
27711rm -f conftest.err conftest.$ac_ext
27712fi # $ac_x_includes = no
27713
27714if test "$ac_x_libraries" = no; then
27715 # Check for the libraries.
27716 # See if we find them without any special options.
27717 # Don't add to $LIBS permanently.
27718 ac_save_LIBS=$LIBS
f10e38c4 27719 LIBS="-lX11 $LIBS"
a848cd7e
SC
27720 cat >conftest.$ac_ext <<_ACEOF
27721/* confdefs.h. */
27722_ACEOF
27723cat confdefs.h >>conftest.$ac_ext
27724cat >>conftest.$ac_ext <<_ACEOF
27725/* end confdefs.h. */
f10e38c4 27726#include <X11/Xlib.h>
a848cd7e
SC
27727int
27728main ()
27729{
f10e38c4 27730XrmInitialize ()
a848cd7e
SC
27731 ;
27732 return 0;
27733}
27734_ACEOF
27735rm -f conftest.$ac_objext conftest$ac_exeext
27736if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27737 (eval $ac_link) 2>conftest.er1
a848cd7e 27738 ac_status=$?
ac1cb8d3
VS
27739 grep -v '^ *+' conftest.er1 >conftest.err
27740 rm -f conftest.er1
27741 cat conftest.err >&5
a848cd7e
SC
27742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27743 (exit $ac_status); } &&
f10e38c4 27744 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27746 (eval $ac_try) 2>&5
27747 ac_status=$?
27748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27749 (exit $ac_status); }; } &&
27750 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27752 (eval $ac_try) 2>&5
27753 ac_status=$?
27754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27755 (exit $ac_status); }; }; then
27756 LIBS=$ac_save_LIBS
27757# We can link X programs with no special library path.
27758ac_x_libraries=
27759else
27760 echo "$as_me: failed program was:" >&5
27761sed 's/^/| /' conftest.$ac_ext >&5
27762
27763LIBS=$ac_save_LIBS
27764for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
27765do
27766 # Don't even attempt the hair of trying to link an X program!
27767 for ac_extension in a so sl; do
f10e38c4 27768 if test -r $ac_dir/libX11.$ac_extension; then
a848cd7e
SC
27769 ac_x_libraries=$ac_dir
27770 break 2
27771 fi
27772 done
27773done
27774fi
ac1cb8d3
VS
27775rm -f conftest.err conftest.$ac_objext \
27776 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27777fi # $ac_x_libraries = no
27778
27779if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
27780 # Didn't find X anywhere. Cache the known absence of X.
27781 ac_cv_have_x="have_x=no"
27782else
27783 # Record where we found X for the cache.
27784 ac_cv_have_x="have_x=yes \
ac1cb8d3 27785 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
a848cd7e
SC
27786fi
27787fi
27788
27789 fi
27790 eval "$ac_cv_have_x"
27791fi # $with_x != no
27792
27793if test "$have_x" != yes; then
27794 echo "$as_me:$LINENO: result: $have_x" >&5
27795echo "${ECHO_T}$have_x" >&6
27796 no_x=yes
27797else
27798 # If each of the values was on the command line, it overrides each guess.
27799 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
27800 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
27801 # Update the cache value to reflect the command line values.
27802 ac_cv_have_x="have_x=yes \
27803 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
f10e38c4
VZ
27804 # It might be that x_includes is empty (headers are found in the
27805 # standard search path. Then output the corresponding message
27806 ac_out_x_includes=$x_includes
27807 test "x$x_includes" = x && ac_out_x_includes="in standard search path"
27808 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
27809echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
a848cd7e
SC
27810fi
27811
f10e38c4 27812fi
a848cd7e
SC
27813if test "$no_x" = yes; then
27814 # Not all programs may use this symbol, but it does not hurt to define it.
27815
27816cat >>confdefs.h <<\_ACEOF
27817#define X_DISPLAY_MISSING 1
27818_ACEOF
27819
27820 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
27821else
27822 if test -n "$x_includes"; then
27823 X_CFLAGS="$X_CFLAGS -I$x_includes"
27824 fi
27825
27826 # It would also be nice to do this for all -L options, not just this one.
27827 if test -n "$x_libraries"; then
27828 X_LIBS="$X_LIBS -L$x_libraries"
27829 # For Solaris; some versions of Sun CC require a space after -R and
27830 # others require no space. Words are not sufficient . . . .
27831 case `(uname -sr) 2>/dev/null` in
27832 "SunOS 5"*)
27833 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
27834echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
27835 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
27836 cat >conftest.$ac_ext <<_ACEOF
27837/* confdefs.h. */
27838_ACEOF
27839cat confdefs.h >>conftest.$ac_ext
27840cat >>conftest.$ac_ext <<_ACEOF
27841/* end confdefs.h. */
27842
27843int
27844main ()
27845{
27846
27847 ;
27848 return 0;
27849}
27850_ACEOF
27851rm -f conftest.$ac_objext conftest$ac_exeext
27852if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27853 (eval $ac_link) 2>conftest.er1
a848cd7e 27854 ac_status=$?
ac1cb8d3
VS
27855 grep -v '^ *+' conftest.er1 >conftest.err
27856 rm -f conftest.er1
27857 cat conftest.err >&5
a848cd7e
SC
27858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27859 (exit $ac_status); } &&
f10e38c4 27860 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27862 (eval $ac_try) 2>&5
27863 ac_status=$?
27864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27865 (exit $ac_status); }; } &&
27866 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27868 (eval $ac_try) 2>&5
27869 ac_status=$?
27870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27871 (exit $ac_status); }; }; then
27872 ac_R_nospace=yes
27873else
27874 echo "$as_me: failed program was:" >&5
27875sed 's/^/| /' conftest.$ac_ext >&5
27876
27877ac_R_nospace=no
27878fi
ac1cb8d3
VS
27879rm -f conftest.err conftest.$ac_objext \
27880 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27881 if test $ac_R_nospace = yes; then
27882 echo "$as_me:$LINENO: result: no" >&5
27883echo "${ECHO_T}no" >&6
27884 X_LIBS="$X_LIBS -R$x_libraries"
27885 else
27886 LIBS="$ac_xsave_LIBS -R $x_libraries"
27887 cat >conftest.$ac_ext <<_ACEOF
27888/* confdefs.h. */
27889_ACEOF
27890cat confdefs.h >>conftest.$ac_ext
27891cat >>conftest.$ac_ext <<_ACEOF
27892/* end confdefs.h. */
27893
27894int
27895main ()
27896{
27897
27898 ;
27899 return 0;
27900}
27901_ACEOF
27902rm -f conftest.$ac_objext conftest$ac_exeext
27903if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27904 (eval $ac_link) 2>conftest.er1
a848cd7e 27905 ac_status=$?
ac1cb8d3
VS
27906 grep -v '^ *+' conftest.er1 >conftest.err
27907 rm -f conftest.er1
27908 cat conftest.err >&5
a848cd7e
SC
27909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27910 (exit $ac_status); } &&
f10e38c4 27911 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27913 (eval $ac_try) 2>&5
27914 ac_status=$?
27915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27916 (exit $ac_status); }; } &&
27917 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27919 (eval $ac_try) 2>&5
27920 ac_status=$?
27921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27922 (exit $ac_status); }; }; then
27923 ac_R_space=yes
27924else
27925 echo "$as_me: failed program was:" >&5
27926sed 's/^/| /' conftest.$ac_ext >&5
27927
27928ac_R_space=no
27929fi
ac1cb8d3
VS
27930rm -f conftest.err conftest.$ac_objext \
27931 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27932 if test $ac_R_space = yes; then
27933 echo "$as_me:$LINENO: result: yes" >&5
27934echo "${ECHO_T}yes" >&6
27935 X_LIBS="$X_LIBS -R $x_libraries"
27936 else
27937 echo "$as_me:$LINENO: result: neither works" >&5
27938echo "${ECHO_T}neither works" >&6
27939 fi
27940 fi
27941 LIBS=$ac_xsave_LIBS
27942 esac
27943 fi
27944
27945 # Check for system-dependent libraries X programs must link with.
27946 # Do this before checking for the system-independent R6 libraries
27947 # (-lICE), since we may need -lsocket or whatever for X linking.
27948
27949 if test "$ISC" = yes; then
27950 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
27951 else
27952 # Martyn Johnson says this is needed for Ultrix, if the X
27953 # libraries were built with DECnet support. And Karl Berry says
27954 # the Alpha needs dnet_stub (dnet does not exist).
27955 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
27956 cat >conftest.$ac_ext <<_ACEOF
27957/* confdefs.h. */
27958_ACEOF
27959cat confdefs.h >>conftest.$ac_ext
27960cat >>conftest.$ac_ext <<_ACEOF
27961/* end confdefs.h. */
27962
27963/* Override any gcc2 internal prototype to avoid an error. */
27964#ifdef __cplusplus
27965extern "C"
27966#endif
27967/* We use char because int might match the return type of a gcc2
27968 builtin and then its argument prototype would still apply. */
27969char XOpenDisplay ();
27970int
27971main ()
27972{
27973XOpenDisplay ();
27974 ;
27975 return 0;
27976}
27977_ACEOF
27978rm -f conftest.$ac_objext conftest$ac_exeext
27979if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27980 (eval $ac_link) 2>conftest.er1
a848cd7e 27981 ac_status=$?
ac1cb8d3
VS
27982 grep -v '^ *+' conftest.er1 >conftest.err
27983 rm -f conftest.er1
27984 cat conftest.err >&5
a848cd7e
SC
27985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27986 (exit $ac_status); } &&
f10e38c4 27987 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27989 (eval $ac_try) 2>&5
27990 ac_status=$?
27991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27992 (exit $ac_status); }; } &&
27993 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27995 (eval $ac_try) 2>&5
27996 ac_status=$?
27997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27998 (exit $ac_status); }; }; then
27999 :
28000else
28001 echo "$as_me: failed program was:" >&5
28002sed 's/^/| /' conftest.$ac_ext >&5
28003
28004echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
28005echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
28006if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
28007 echo $ECHO_N "(cached) $ECHO_C" >&6
28008else
28009 ac_check_lib_save_LIBS=$LIBS
28010LIBS="-ldnet $LIBS"
28011cat >conftest.$ac_ext <<_ACEOF
28012/* confdefs.h. */
28013_ACEOF
28014cat confdefs.h >>conftest.$ac_ext
28015cat >>conftest.$ac_ext <<_ACEOF
28016/* end confdefs.h. */
28017
28018/* Override any gcc2 internal prototype to avoid an error. */
28019#ifdef __cplusplus
28020extern "C"
28021#endif
28022/* We use char because int might match the return type of a gcc2
28023 builtin and then its argument prototype would still apply. */
28024char dnet_ntoa ();
28025int
28026main ()
28027{
28028dnet_ntoa ();
28029 ;
28030 return 0;
28031}
28032_ACEOF
28033rm -f conftest.$ac_objext conftest$ac_exeext
28034if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28035 (eval $ac_link) 2>conftest.er1
a848cd7e 28036 ac_status=$?
ac1cb8d3
VS
28037 grep -v '^ *+' conftest.er1 >conftest.err
28038 rm -f conftest.er1
28039 cat conftest.err >&5
a848cd7e
SC
28040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28041 (exit $ac_status); } &&
f10e38c4 28042 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28044 (eval $ac_try) 2>&5
28045 ac_status=$?
28046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28047 (exit $ac_status); }; } &&
28048 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28050 (eval $ac_try) 2>&5
28051 ac_status=$?
28052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28053 (exit $ac_status); }; }; then
28054 ac_cv_lib_dnet_dnet_ntoa=yes
28055else
28056 echo "$as_me: failed program was:" >&5
28057sed 's/^/| /' conftest.$ac_ext >&5
28058
28059ac_cv_lib_dnet_dnet_ntoa=no
28060fi
ac1cb8d3
VS
28061rm -f conftest.err conftest.$ac_objext \
28062 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28063LIBS=$ac_check_lib_save_LIBS
28064fi
28065echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
28066echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
28067if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
28068 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
28069fi
28070
28071 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
28072 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
28073echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
28074if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
28075 echo $ECHO_N "(cached) $ECHO_C" >&6
28076else
28077 ac_check_lib_save_LIBS=$LIBS
28078LIBS="-ldnet_stub $LIBS"
28079cat >conftest.$ac_ext <<_ACEOF
28080/* confdefs.h. */
28081_ACEOF
28082cat confdefs.h >>conftest.$ac_ext
28083cat >>conftest.$ac_ext <<_ACEOF
28084/* end confdefs.h. */
28085
28086/* Override any gcc2 internal prototype to avoid an error. */
28087#ifdef __cplusplus
28088extern "C"
28089#endif
28090/* We use char because int might match the return type of a gcc2
28091 builtin and then its argument prototype would still apply. */
28092char dnet_ntoa ();
28093int
28094main ()
28095{
28096dnet_ntoa ();
28097 ;
28098 return 0;
28099}
28100_ACEOF
28101rm -f conftest.$ac_objext conftest$ac_exeext
28102if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28103 (eval $ac_link) 2>conftest.er1
a848cd7e 28104 ac_status=$?
ac1cb8d3
VS
28105 grep -v '^ *+' conftest.er1 >conftest.err
28106 rm -f conftest.er1
28107 cat conftest.err >&5
a848cd7e
SC
28108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28109 (exit $ac_status); } &&
f10e38c4 28110 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28112 (eval $ac_try) 2>&5
28113 ac_status=$?
28114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28115 (exit $ac_status); }; } &&
28116 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28118 (eval $ac_try) 2>&5
28119 ac_status=$?
28120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28121 (exit $ac_status); }; }; then
28122 ac_cv_lib_dnet_stub_dnet_ntoa=yes
28123else
28124 echo "$as_me: failed program was:" >&5
28125sed 's/^/| /' conftest.$ac_ext >&5
28126
28127ac_cv_lib_dnet_stub_dnet_ntoa=no
28128fi
ac1cb8d3
VS
28129rm -f conftest.err conftest.$ac_objext \
28130 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28131LIBS=$ac_check_lib_save_LIBS
28132fi
28133echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
28134echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
28135if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
28136 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
28137fi
28138
28139 fi
28140fi
ac1cb8d3
VS
28141rm -f conftest.err conftest.$ac_objext \
28142 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28143 LIBS="$ac_xsave_LIBS"
28144
28145 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
28146 # to get the SysV transport functions.
28147 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
28148 # needs -lnsl.
28149 # The nsl library prevents programs from opening the X display
28150 # on Irix 5.2, according to T.E. Dickey.
28151 # The functions gethostbyname, getservbyname, and inet_addr are
28152 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
28153 echo "$as_me:$LINENO: checking for gethostbyname" >&5
28154echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
28155if test "${ac_cv_func_gethostbyname+set}" = set; then
28156 echo $ECHO_N "(cached) $ECHO_C" >&6
28157else
28158 cat >conftest.$ac_ext <<_ACEOF
28159/* confdefs.h. */
28160_ACEOF
28161cat confdefs.h >>conftest.$ac_ext
28162cat >>conftest.$ac_ext <<_ACEOF
28163/* end confdefs.h. */
ac1cb8d3
VS
28164/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
28165 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28166#define gethostbyname innocuous_gethostbyname
28167
a848cd7e
SC
28168/* System header to define __stub macros and hopefully few prototypes,
28169 which can conflict with char gethostbyname (); below.
28170 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28171 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 28172
a848cd7e
SC
28173#ifdef __STDC__
28174# include <limits.h>
28175#else
28176# include <assert.h>
28177#endif
ac1cb8d3
VS
28178
28179#undef gethostbyname
28180
a848cd7e
SC
28181/* Override any gcc2 internal prototype to avoid an error. */
28182#ifdef __cplusplus
28183extern "C"
28184{
28185#endif
28186/* We use char because int might match the return type of a gcc2
28187 builtin and then its argument prototype would still apply. */
28188char gethostbyname ();
28189/* The GNU C library defines this for functions which it implements
28190 to always fail with ENOSYS. Some functions are actually named
28191 something starting with __ and the normal name is an alias. */
28192#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
28193choke me
28194#else
28195char (*f) () = gethostbyname;
28196#endif
28197#ifdef __cplusplus
28198}
28199#endif
28200
28201int
28202main ()
28203{
28204return f != gethostbyname;
28205 ;
28206 return 0;
28207}
28208_ACEOF
28209rm -f conftest.$ac_objext conftest$ac_exeext
28210if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28211 (eval $ac_link) 2>conftest.er1
a848cd7e 28212 ac_status=$?
ac1cb8d3
VS
28213 grep -v '^ *+' conftest.er1 >conftest.err
28214 rm -f conftest.er1
28215 cat conftest.err >&5
a848cd7e
SC
28216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28217 (exit $ac_status); } &&
f10e38c4 28218 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28220 (eval $ac_try) 2>&5
28221 ac_status=$?
28222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28223 (exit $ac_status); }; } &&
28224 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28226 (eval $ac_try) 2>&5
28227 ac_status=$?
28228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28229 (exit $ac_status); }; }; then
28230 ac_cv_func_gethostbyname=yes
28231else
28232 echo "$as_me: failed program was:" >&5
28233sed 's/^/| /' conftest.$ac_ext >&5
28234
28235ac_cv_func_gethostbyname=no
28236fi
ac1cb8d3
VS
28237rm -f conftest.err conftest.$ac_objext \
28238 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28239fi
28240echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
28241echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
28242
28243 if test $ac_cv_func_gethostbyname = no; then
28244 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
28245echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
28246if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
28247 echo $ECHO_N "(cached) $ECHO_C" >&6
28248else
28249 ac_check_lib_save_LIBS=$LIBS
28250LIBS="-lnsl $LIBS"
28251cat >conftest.$ac_ext <<_ACEOF
28252/* confdefs.h. */
28253_ACEOF
28254cat confdefs.h >>conftest.$ac_ext
28255cat >>conftest.$ac_ext <<_ACEOF
28256/* end confdefs.h. */
28257
28258/* Override any gcc2 internal prototype to avoid an error. */
28259#ifdef __cplusplus
28260extern "C"
28261#endif
28262/* We use char because int might match the return type of a gcc2
28263 builtin and then its argument prototype would still apply. */
28264char gethostbyname ();
28265int
28266main ()
28267{
28268gethostbyname ();
28269 ;
28270 return 0;
28271}
28272_ACEOF
28273rm -f conftest.$ac_objext conftest$ac_exeext
28274if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3
VS
28275 (eval $ac_link) 2>conftest.er1
28276 ac_status=$?
28277 grep -v '^ *+' conftest.er1 >conftest.err
28278 rm -f conftest.er1
28279 cat conftest.err >&5
28280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28281 (exit $ac_status); } &&
f10e38c4 28282 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28284 (eval $ac_try) 2>&5
28285 ac_status=$?
28286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28287 (exit $ac_status); }; } &&
28288 { ac_try='test -s conftest$ac_exeext'
28289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28290 (eval $ac_try) 2>&5
28291 ac_status=$?
28292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28293 (exit $ac_status); }; }; then
28294 ac_cv_lib_nsl_gethostbyname=yes
28295else
28296 echo "$as_me: failed program was:" >&5
28297sed 's/^/| /' conftest.$ac_ext >&5
28298
28299ac_cv_lib_nsl_gethostbyname=no
28300fi
28301rm -f conftest.err conftest.$ac_objext \
28302 conftest$ac_exeext conftest.$ac_ext
28303LIBS=$ac_check_lib_save_LIBS
28304fi
28305echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
28306echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
28307if test $ac_cv_lib_nsl_gethostbyname = yes; then
28308 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
28309fi
28310
28311 if test $ac_cv_lib_nsl_gethostbyname = no; then
28312 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
28313echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
28314if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
28315 echo $ECHO_N "(cached) $ECHO_C" >&6
28316else
28317 ac_check_lib_save_LIBS=$LIBS
28318LIBS="-lbsd $LIBS"
28319cat >conftest.$ac_ext <<_ACEOF
28320/* confdefs.h. */
28321_ACEOF
28322cat confdefs.h >>conftest.$ac_ext
28323cat >>conftest.$ac_ext <<_ACEOF
28324/* end confdefs.h. */
28325
28326/* Override any gcc2 internal prototype to avoid an error. */
28327#ifdef __cplusplus
28328extern "C"
28329#endif
28330/* We use char because int might match the return type of a gcc2
28331 builtin and then its argument prototype would still apply. */
28332char gethostbyname ();
28333int
28334main ()
28335{
28336gethostbyname ();
28337 ;
28338 return 0;
28339}
28340_ACEOF
28341rm -f conftest.$ac_objext conftest$ac_exeext
28342if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28343 (eval $ac_link) 2>conftest.er1
a848cd7e 28344 ac_status=$?
ac1cb8d3
VS
28345 grep -v '^ *+' conftest.er1 >conftest.err
28346 rm -f conftest.er1
28347 cat conftest.err >&5
a848cd7e
SC
28348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28349 (exit $ac_status); } &&
f10e38c4 28350 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
28351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28352 (eval $ac_try) 2>&5
28353 ac_status=$?
28354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ac1cb8d3
VS
28355 (exit $ac_status); }; } &&
28356 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28358 (eval $ac_try) 2>&5
28359 ac_status=$?
28360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28361 (exit $ac_status); }; }; then
28362 ac_cv_lib_bsd_gethostbyname=yes
28363else
28364 echo "$as_me: failed program was:" >&5
28365sed 's/^/| /' conftest.$ac_ext >&5
28366
28367ac_cv_lib_bsd_gethostbyname=no
28368fi
ac1cb8d3
VS
28369rm -f conftest.err conftest.$ac_objext \
28370 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28371LIBS=$ac_check_lib_save_LIBS
28372fi
28373echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
28374echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
28375if test $ac_cv_lib_bsd_gethostbyname = yes; then
28376 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
28377fi
28378
28379 fi
28380 fi
28381
28382 # lieder@skyler.mavd.honeywell.com says without -lsocket,
28383 # socket/setsockopt and other routines are undefined under SCO ODT
28384 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
28385 # on later versions), says Simon Leinen: it contains gethostby*
28386 # variants that don't use the name server (or something). -lsocket
28387 # must be given before -lnsl if both are needed. We assume that
28388 # if connect needs -lnsl, so does gethostbyname.
28389 echo "$as_me:$LINENO: checking for connect" >&5
28390echo $ECHO_N "checking for connect... $ECHO_C" >&6
28391if test "${ac_cv_func_connect+set}" = set; then
28392 echo $ECHO_N "(cached) $ECHO_C" >&6
28393else
28394 cat >conftest.$ac_ext <<_ACEOF
28395/* confdefs.h. */
28396_ACEOF
28397cat confdefs.h >>conftest.$ac_ext
28398cat >>conftest.$ac_ext <<_ACEOF
28399/* end confdefs.h. */
ac1cb8d3
VS
28400/* Define connect to an innocuous variant, in case <limits.h> declares connect.
28401 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28402#define connect innocuous_connect
28403
a848cd7e
SC
28404/* System header to define __stub macros and hopefully few prototypes,
28405 which can conflict with char connect (); below.
28406 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28407 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 28408
a848cd7e
SC
28409#ifdef __STDC__
28410# include <limits.h>
28411#else
28412# include <assert.h>
28413#endif
ac1cb8d3
VS
28414
28415#undef connect
28416
a848cd7e
SC
28417/* Override any gcc2 internal prototype to avoid an error. */
28418#ifdef __cplusplus
28419extern "C"
28420{
28421#endif
28422/* We use char because int might match the return type of a gcc2
28423 builtin and then its argument prototype would still apply. */
28424char connect ();
28425/* The GNU C library defines this for functions which it implements
28426 to always fail with ENOSYS. Some functions are actually named
28427 something starting with __ and the normal name is an alias. */
28428#if defined (__stub_connect) || defined (__stub___connect)
28429choke me
28430#else
28431char (*f) () = connect;
28432#endif
28433#ifdef __cplusplus
28434}
28435#endif
28436
28437int
28438main ()
28439{
28440return f != connect;
28441 ;
28442 return 0;
28443}
28444_ACEOF
28445rm -f conftest.$ac_objext conftest$ac_exeext
28446if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28447 (eval $ac_link) 2>conftest.er1
a848cd7e 28448 ac_status=$?
ac1cb8d3
VS
28449 grep -v '^ *+' conftest.er1 >conftest.err
28450 rm -f conftest.er1
28451 cat conftest.err >&5
a848cd7e
SC
28452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28453 (exit $ac_status); } &&
f10e38c4 28454 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28456 (eval $ac_try) 2>&5
28457 ac_status=$?
28458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28459 (exit $ac_status); }; } &&
28460 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28462 (eval $ac_try) 2>&5
28463 ac_status=$?
28464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28465 (exit $ac_status); }; }; then
28466 ac_cv_func_connect=yes
28467else
28468 echo "$as_me: failed program was:" >&5
28469sed 's/^/| /' conftest.$ac_ext >&5
28470
28471ac_cv_func_connect=no
28472fi
ac1cb8d3
VS
28473rm -f conftest.err conftest.$ac_objext \
28474 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28475fi
28476echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
28477echo "${ECHO_T}$ac_cv_func_connect" >&6
28478
28479 if test $ac_cv_func_connect = no; then
28480 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
28481echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
28482if test "${ac_cv_lib_socket_connect+set}" = set; then
28483 echo $ECHO_N "(cached) $ECHO_C" >&6
28484else
28485 ac_check_lib_save_LIBS=$LIBS
28486LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
28487cat >conftest.$ac_ext <<_ACEOF
28488/* confdefs.h. */
28489_ACEOF
28490cat confdefs.h >>conftest.$ac_ext
28491cat >>conftest.$ac_ext <<_ACEOF
28492/* end confdefs.h. */
28493
28494/* Override any gcc2 internal prototype to avoid an error. */
28495#ifdef __cplusplus
28496extern "C"
28497#endif
28498/* We use char because int might match the return type of a gcc2
28499 builtin and then its argument prototype would still apply. */
28500char connect ();
28501int
28502main ()
28503{
28504connect ();
28505 ;
28506 return 0;
28507}
28508_ACEOF
28509rm -f conftest.$ac_objext conftest$ac_exeext
28510if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28511 (eval $ac_link) 2>conftest.er1
a848cd7e 28512 ac_status=$?
ac1cb8d3
VS
28513 grep -v '^ *+' conftest.er1 >conftest.err
28514 rm -f conftest.er1
28515 cat conftest.err >&5
a848cd7e
SC
28516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28517 (exit $ac_status); } &&
f10e38c4 28518 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28520 (eval $ac_try) 2>&5
28521 ac_status=$?
28522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28523 (exit $ac_status); }; } &&
28524 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28526 (eval $ac_try) 2>&5
28527 ac_status=$?
28528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28529 (exit $ac_status); }; }; then
28530 ac_cv_lib_socket_connect=yes
28531else
28532 echo "$as_me: failed program was:" >&5
28533sed 's/^/| /' conftest.$ac_ext >&5
28534
28535ac_cv_lib_socket_connect=no
28536fi
ac1cb8d3
VS
28537rm -f conftest.err conftest.$ac_objext \
28538 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28539LIBS=$ac_check_lib_save_LIBS
28540fi
28541echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
28542echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
28543if test $ac_cv_lib_socket_connect = yes; then
28544 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
28545fi
28546
28547 fi
28548
28549 # Guillermo Gomez says -lposix is necessary on A/UX.
28550 echo "$as_me:$LINENO: checking for remove" >&5
28551echo $ECHO_N "checking for remove... $ECHO_C" >&6
28552if test "${ac_cv_func_remove+set}" = set; then
28553 echo $ECHO_N "(cached) $ECHO_C" >&6
28554else
28555 cat >conftest.$ac_ext <<_ACEOF
28556/* confdefs.h. */
28557_ACEOF
28558cat confdefs.h >>conftest.$ac_ext
28559cat >>conftest.$ac_ext <<_ACEOF
28560/* end confdefs.h. */
ac1cb8d3
VS
28561/* Define remove to an innocuous variant, in case <limits.h> declares remove.
28562 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28563#define remove innocuous_remove
28564
a848cd7e
SC
28565/* System header to define __stub macros and hopefully few prototypes,
28566 which can conflict with char remove (); below.
28567 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28568 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 28569
a848cd7e
SC
28570#ifdef __STDC__
28571# include <limits.h>
28572#else
28573# include <assert.h>
28574#endif
ac1cb8d3
VS
28575
28576#undef remove
28577
a848cd7e
SC
28578/* Override any gcc2 internal prototype to avoid an error. */
28579#ifdef __cplusplus
28580extern "C"
28581{
28582#endif
28583/* We use char because int might match the return type of a gcc2
28584 builtin and then its argument prototype would still apply. */
28585char remove ();
28586/* The GNU C library defines this for functions which it implements
28587 to always fail with ENOSYS. Some functions are actually named
28588 something starting with __ and the normal name is an alias. */
28589#if defined (__stub_remove) || defined (__stub___remove)
28590choke me
28591#else
28592char (*f) () = remove;
28593#endif
28594#ifdef __cplusplus
28595}
28596#endif
28597
28598int
28599main ()
28600{
28601return f != remove;
28602 ;
28603 return 0;
28604}
28605_ACEOF
28606rm -f conftest.$ac_objext conftest$ac_exeext
28607if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28608 (eval $ac_link) 2>conftest.er1
a848cd7e 28609 ac_status=$?
ac1cb8d3
VS
28610 grep -v '^ *+' conftest.er1 >conftest.err
28611 rm -f conftest.er1
28612 cat conftest.err >&5
a848cd7e
SC
28613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28614 (exit $ac_status); } &&
f10e38c4 28615 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28617 (eval $ac_try) 2>&5
28618 ac_status=$?
28619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28620 (exit $ac_status); }; } &&
28621 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28623 (eval $ac_try) 2>&5
28624 ac_status=$?
28625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28626 (exit $ac_status); }; }; then
28627 ac_cv_func_remove=yes
28628else
28629 echo "$as_me: failed program was:" >&5
28630sed 's/^/| /' conftest.$ac_ext >&5
28631
28632ac_cv_func_remove=no
28633fi
ac1cb8d3
VS
28634rm -f conftest.err conftest.$ac_objext \
28635 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28636fi
28637echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
28638echo "${ECHO_T}$ac_cv_func_remove" >&6
28639
28640 if test $ac_cv_func_remove = no; then
28641 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
28642echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
28643if test "${ac_cv_lib_posix_remove+set}" = set; then
28644 echo $ECHO_N "(cached) $ECHO_C" >&6
28645else
28646 ac_check_lib_save_LIBS=$LIBS
28647LIBS="-lposix $LIBS"
28648cat >conftest.$ac_ext <<_ACEOF
28649/* confdefs.h. */
28650_ACEOF
28651cat confdefs.h >>conftest.$ac_ext
28652cat >>conftest.$ac_ext <<_ACEOF
28653/* end confdefs.h. */
28654
28655/* Override any gcc2 internal prototype to avoid an error. */
28656#ifdef __cplusplus
28657extern "C"
28658#endif
28659/* We use char because int might match the return type of a gcc2
28660 builtin and then its argument prototype would still apply. */
28661char remove ();
28662int
28663main ()
28664{
28665remove ();
28666 ;
28667 return 0;
28668}
28669_ACEOF
28670rm -f conftest.$ac_objext conftest$ac_exeext
28671if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28672 (eval $ac_link) 2>conftest.er1
a848cd7e 28673 ac_status=$?
ac1cb8d3
VS
28674 grep -v '^ *+' conftest.er1 >conftest.err
28675 rm -f conftest.er1
28676 cat conftest.err >&5
a848cd7e
SC
28677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28678 (exit $ac_status); } &&
f10e38c4 28679 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28681 (eval $ac_try) 2>&5
28682 ac_status=$?
28683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28684 (exit $ac_status); }; } &&
28685 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28687 (eval $ac_try) 2>&5
28688 ac_status=$?
28689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28690 (exit $ac_status); }; }; then
28691 ac_cv_lib_posix_remove=yes
28692else
28693 echo "$as_me: failed program was:" >&5
28694sed 's/^/| /' conftest.$ac_ext >&5
28695
28696ac_cv_lib_posix_remove=no
28697fi
ac1cb8d3
VS
28698rm -f conftest.err conftest.$ac_objext \
28699 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28700LIBS=$ac_check_lib_save_LIBS
28701fi
28702echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
28703echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
28704if test $ac_cv_lib_posix_remove = yes; then
28705 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
28706fi
28707
28708 fi
28709
28710 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
28711 echo "$as_me:$LINENO: checking for shmat" >&5
28712echo $ECHO_N "checking for shmat... $ECHO_C" >&6
28713if test "${ac_cv_func_shmat+set}" = set; then
28714 echo $ECHO_N "(cached) $ECHO_C" >&6
28715else
28716 cat >conftest.$ac_ext <<_ACEOF
28717/* confdefs.h. */
28718_ACEOF
28719cat confdefs.h >>conftest.$ac_ext
28720cat >>conftest.$ac_ext <<_ACEOF
28721/* end confdefs.h. */
ac1cb8d3
VS
28722/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
28723 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28724#define shmat innocuous_shmat
28725
a848cd7e
SC
28726/* System header to define __stub macros and hopefully few prototypes,
28727 which can conflict with char shmat (); below.
28728 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28729 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 28730
a848cd7e
SC
28731#ifdef __STDC__
28732# include <limits.h>
28733#else
28734# include <assert.h>
28735#endif
ac1cb8d3
VS
28736
28737#undef shmat
28738
a848cd7e
SC
28739/* Override any gcc2 internal prototype to avoid an error. */
28740#ifdef __cplusplus
28741extern "C"
28742{
28743#endif
28744/* We use char because int might match the return type of a gcc2
28745 builtin and then its argument prototype would still apply. */
28746char shmat ();
28747/* The GNU C library defines this for functions which it implements
28748 to always fail with ENOSYS. Some functions are actually named
28749 something starting with __ and the normal name is an alias. */
28750#if defined (__stub_shmat) || defined (__stub___shmat)
28751choke me
28752#else
28753char (*f) () = shmat;
28754#endif
28755#ifdef __cplusplus
28756}
28757#endif
28758
28759int
28760main ()
28761{
28762return f != shmat;
28763 ;
28764 return 0;
28765}
28766_ACEOF
28767rm -f conftest.$ac_objext conftest$ac_exeext
28768if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28769 (eval $ac_link) 2>conftest.er1
a848cd7e 28770 ac_status=$?
ac1cb8d3
VS
28771 grep -v '^ *+' conftest.er1 >conftest.err
28772 rm -f conftest.er1
28773 cat conftest.err >&5
a848cd7e
SC
28774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28775 (exit $ac_status); } &&
f10e38c4 28776 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28778 (eval $ac_try) 2>&5
28779 ac_status=$?
28780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28781 (exit $ac_status); }; } &&
28782 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28784 (eval $ac_try) 2>&5
28785 ac_status=$?
28786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28787 (exit $ac_status); }; }; then
28788 ac_cv_func_shmat=yes
28789else
28790 echo "$as_me: failed program was:" >&5
28791sed 's/^/| /' conftest.$ac_ext >&5
28792
28793ac_cv_func_shmat=no
28794fi
ac1cb8d3
VS
28795rm -f conftest.err conftest.$ac_objext \
28796 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28797fi
28798echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
28799echo "${ECHO_T}$ac_cv_func_shmat" >&6
28800
28801 if test $ac_cv_func_shmat = no; then
28802 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
28803echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
28804if test "${ac_cv_lib_ipc_shmat+set}" = set; then
28805 echo $ECHO_N "(cached) $ECHO_C" >&6
28806else
28807 ac_check_lib_save_LIBS=$LIBS
28808LIBS="-lipc $LIBS"
28809cat >conftest.$ac_ext <<_ACEOF
28810/* confdefs.h. */
28811_ACEOF
28812cat confdefs.h >>conftest.$ac_ext
28813cat >>conftest.$ac_ext <<_ACEOF
28814/* end confdefs.h. */
28815
28816/* Override any gcc2 internal prototype to avoid an error. */
28817#ifdef __cplusplus
28818extern "C"
28819#endif
28820/* We use char because int might match the return type of a gcc2
28821 builtin and then its argument prototype would still apply. */
28822char shmat ();
28823int
28824main ()
28825{
28826shmat ();
28827 ;
28828 return 0;
28829}
28830_ACEOF
28831rm -f conftest.$ac_objext conftest$ac_exeext
28832if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28833 (eval $ac_link) 2>conftest.er1
a848cd7e 28834 ac_status=$?
ac1cb8d3
VS
28835 grep -v '^ *+' conftest.er1 >conftest.err
28836 rm -f conftest.er1
28837 cat conftest.err >&5
a848cd7e
SC
28838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28839 (exit $ac_status); } &&
f10e38c4 28840 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28842 (eval $ac_try) 2>&5
28843 ac_status=$?
28844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28845 (exit $ac_status); }; } &&
28846 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28848 (eval $ac_try) 2>&5
28849 ac_status=$?
28850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28851 (exit $ac_status); }; }; then
28852 ac_cv_lib_ipc_shmat=yes
28853else
28854 echo "$as_me: failed program was:" >&5
28855sed 's/^/| /' conftest.$ac_ext >&5
28856
28857ac_cv_lib_ipc_shmat=no
28858fi
ac1cb8d3
VS
28859rm -f conftest.err conftest.$ac_objext \
28860 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28861LIBS=$ac_check_lib_save_LIBS
28862fi
28863echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
28864echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
28865if test $ac_cv_lib_ipc_shmat = yes; then
28866 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
28867fi
28868
28869 fi
28870 fi
28871
28872 # Check for libraries that X11R6 Xt/Xaw programs need.
28873 ac_save_LDFLAGS=$LDFLAGS
28874 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
28875 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
28876 # check for ICE first), but we must link in the order -lSM -lICE or
28877 # we get undefined symbols. So assume we have SM if we have ICE.
28878 # These have to be linked with before -lX11, unlike the other
28879 # libraries we check for below, so use a different variable.
28880 # John Interrante, Karl Berry
28881 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
28882echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
28883if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
28884 echo $ECHO_N "(cached) $ECHO_C" >&6
28885else
28886 ac_check_lib_save_LIBS=$LIBS
28887LIBS="-lICE $X_EXTRA_LIBS $LIBS"
28888cat >conftest.$ac_ext <<_ACEOF
28889/* confdefs.h. */
28890_ACEOF
28891cat confdefs.h >>conftest.$ac_ext
28892cat >>conftest.$ac_ext <<_ACEOF
28893/* end confdefs.h. */
28894
28895/* Override any gcc2 internal prototype to avoid an error. */
28896#ifdef __cplusplus
28897extern "C"
28898#endif
28899/* We use char because int might match the return type of a gcc2
28900 builtin and then its argument prototype would still apply. */
28901char IceConnectionNumber ();
28902int
28903main ()
28904{
28905IceConnectionNumber ();
28906 ;
28907 return 0;
28908}
28909_ACEOF
28910rm -f conftest.$ac_objext conftest$ac_exeext
28911if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28912 (eval $ac_link) 2>conftest.er1
a848cd7e 28913 ac_status=$?
ac1cb8d3
VS
28914 grep -v '^ *+' conftest.er1 >conftest.err
28915 rm -f conftest.er1
28916 cat conftest.err >&5
a848cd7e
SC
28917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28918 (exit $ac_status); } &&
f10e38c4 28919 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28921 (eval $ac_try) 2>&5
28922 ac_status=$?
28923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28924 (exit $ac_status); }; } &&
28925 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28927 (eval $ac_try) 2>&5
28928 ac_status=$?
28929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28930 (exit $ac_status); }; }; then
28931 ac_cv_lib_ICE_IceConnectionNumber=yes
28932else
28933 echo "$as_me: failed program was:" >&5
28934sed 's/^/| /' conftest.$ac_ext >&5
28935
28936ac_cv_lib_ICE_IceConnectionNumber=no
28937fi
ac1cb8d3
VS
28938rm -f conftest.err conftest.$ac_objext \
28939 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28940LIBS=$ac_check_lib_save_LIBS
28941fi
28942echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
28943echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
28944if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
28945 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
28946fi
28947
28948 LDFLAGS=$ac_save_LDFLAGS
28949
28950fi
28951
28952
28953 if test "$no_x" = "yes"; then
89d90d6d
VZ
28954 { { echo "$as_me:$LINENO: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&5
28955echo "$as_me: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&2;}
28956 { (exit 1); exit 1; }; }
a848cd7e
SC
28957 fi
28958
74b84332
VS
28959 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
28960 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
a848cd7e
SC
28961 AFMINSTALL=afminstall
28962 COMPILED_X_PROGRAM=0
28963
74b84332
VS
28964 fi
28965
28966 if test "$wxUSE_X11" = 1; then
a848cd7e
SC
28967 if test "$wxUSE_NANOX" = "yes"; then
28968 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
28969echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
28970 if test "x$MICROWIN" = x ; then
28971 echo "$as_me:$LINENO: result: not found" >&5
28972echo "${ECHO_T}not found" >&6
28973 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
28974echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
28975 { (exit 1); exit 1; }; }
28976 else
28977 echo "$as_me:$LINENO: result: $MICROWIN" >&5
28978echo "${ECHO_T}$MICROWIN" >&6
28979 cat >>confdefs.h <<\_ACEOF
28980#define wxUSE_NANOX 1
28981_ACEOF
28982
28983 fi
28984 fi
28985
28986 if test "$wxUSE_UNICODE" = "yes"; then
28987
28988 succeeded=no
28989
28990 if test -z "$PKG_CONFIG"; then
28991 # Extract the first word of "pkg-config", so it can be a program name with args.
28992set dummy pkg-config; ac_word=$2
28993echo "$as_me:$LINENO: checking for $ac_word" >&5
28994echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28995if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
28996 echo $ECHO_N "(cached) $ECHO_C" >&6
28997else
28998 case $PKG_CONFIG in
28999 [\\/]* | ?:[\\/]*)
29000 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
29001 ;;
29002 *)
29003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29004for as_dir in $PATH
29005do
29006 IFS=$as_save_IFS
29007 test -z "$as_dir" && as_dir=.
29008 for ac_exec_ext in '' $ac_executable_extensions; do
29009 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29010 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29011 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29012 break 2
29013 fi
29014done
29015done
29016
29017 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
29018 ;;
29019esac
29020fi
29021PKG_CONFIG=$ac_cv_path_PKG_CONFIG
29022
29023if test -n "$PKG_CONFIG"; then
29024 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
29025echo "${ECHO_T}$PKG_CONFIG" >&6
29026else
29027 echo "$as_me:$LINENO: result: no" >&5
29028echo "${ECHO_T}no" >&6
29029fi
29030
29031 fi
29032
29033 if test "$PKG_CONFIG" = "no" ; then
29034 echo "*** The pkg-config script could not be found. Make sure it is"
29035 echo "*** in your path, or set the PKG_CONFIG environment variable"
29036 echo "*** to the full path to pkg-config."
29037 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
29038 else
29039 PKG_CONFIG_MIN_VERSION=0.9.0
29040 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
29041 echo "$as_me:$LINENO: checking for pangox" >&5
29042echo $ECHO_N "checking for pangox... $ECHO_C" >&6
29043
29044 if $PKG_CONFIG --exists "pangox" ; then
29045 echo "$as_me:$LINENO: result: yes" >&5
29046echo "${ECHO_T}yes" >&6
29047 succeeded=yes
29048
29049 echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5
29050echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6
29051 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
29052 echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5
29053echo "${ECHO_T}$PANGOX_CFLAGS" >&6
29054
29055 echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5
29056echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6
29057 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
29058 echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5
29059echo "${ECHO_T}$PANGOX_LIBS" >&6
29060 else
29061 PANGOX_CFLAGS=""
29062 PANGOX_LIBS=""
29063 ## If we have a custom action on failure, don't print errors, but
29064 ## do set a variable so people can do so.
29065 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
29066
29067 fi
29068
29069
29070
29071 else
29072 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
29073 echo "*** See http://www.freedesktop.org/software/pkgconfig"
29074 fi
29075 fi
29076
29077 if test $succeeded = yes; then
29078
c92ad099 29079 CXXFLAGS="$PANGOX_CFLAGS $CXXFLAGS"
a848cd7e
SC
29080 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
29081
29082 else
29083
29084 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
29085echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
29086 { (exit 1); exit 1; }; }
29087
29088
29089 fi
29090
29091
29092 succeeded=no
29093
29094 if test -z "$PKG_CONFIG"; then
29095 # Extract the first word of "pkg-config", so it can be a program name with args.
29096set dummy pkg-config; ac_word=$2
29097echo "$as_me:$LINENO: checking for $ac_word" >&5
29098echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29099if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
29100 echo $ECHO_N "(cached) $ECHO_C" >&6
29101else
29102 case $PKG_CONFIG in
29103 [\\/]* | ?:[\\/]*)
29104 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
29105 ;;
29106 *)
29107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29108for as_dir in $PATH
29109do
29110 IFS=$as_save_IFS
29111 test -z "$as_dir" && as_dir=.
29112 for ac_exec_ext in '' $ac_executable_extensions; do
29113 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29114 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29115 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29116 break 2
29117 fi
29118done
29119done
29120
29121 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
29122 ;;
29123esac
29124fi
29125PKG_CONFIG=$ac_cv_path_PKG_CONFIG
29126
29127if test -n "$PKG_CONFIG"; then
29128 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
29129echo "${ECHO_T}$PKG_CONFIG" >&6
29130else
29131 echo "$as_me:$LINENO: result: no" >&5
29132echo "${ECHO_T}no" >&6
29133fi
29134
29135 fi
29136
29137 if test "$PKG_CONFIG" = "no" ; then
29138 echo "*** The pkg-config script could not be found. Make sure it is"
29139 echo "*** in your path, or set the PKG_CONFIG environment variable"
29140 echo "*** to the full path to pkg-config."
29141 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
29142 else
29143 PKG_CONFIG_MIN_VERSION=0.9.0
29144 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
29145 echo "$as_me:$LINENO: checking for pangoft2" >&5
29146echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
29147
29148 if $PKG_CONFIG --exists "pangoft2" ; then
29149 echo "$as_me:$LINENO: result: yes" >&5
29150echo "${ECHO_T}yes" >&6
29151 succeeded=yes
29152
29153 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
29154echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
29155 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
29156 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
29157echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
29158
29159 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
29160echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
29161 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
29162 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
29163echo "${ECHO_T}$PANGOFT2_LIBS" >&6
29164 else
29165 PANGOFT2_CFLAGS=""
29166 PANGOFT2_LIBS=""
29167 ## If we have a custom action on failure, don't print errors, but
29168 ## do set a variable so people can do so.
29169 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
29170
29171 fi
29172
29173
29174
29175 else
29176 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
29177 echo "*** See http://www.freedesktop.org/software/pkgconfig"
29178 fi
29179 fi
29180
29181 if test $succeeded = yes; then
29182
c92ad099 29183 CXXFLAGS="$PANGOFT2_CFLAGS $CXXFLAGS"
a848cd7e
SC
29184 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
29185
29186 else
29187
29188 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
29189echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
29190 wxUSE_PRINTING_ARCHITECTURE="no"
29191
29192
29193 fi
29194
29195
29196 succeeded=no
29197
29198 if test -z "$PKG_CONFIG"; then
29199 # Extract the first word of "pkg-config", so it can be a program name with args.
29200set dummy pkg-config; ac_word=$2
29201echo "$as_me:$LINENO: checking for $ac_word" >&5
29202echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29203if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
29204 echo $ECHO_N "(cached) $ECHO_C" >&6
29205else
29206 case $PKG_CONFIG in
29207 [\\/]* | ?:[\\/]*)
29208 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
29209 ;;
29210 *)
29211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29212for as_dir in $PATH
29213do
29214 IFS=$as_save_IFS
29215 test -z "$as_dir" && as_dir=.
29216 for ac_exec_ext in '' $ac_executable_extensions; do
29217 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29218 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29219 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29220 break 2
29221 fi
29222done
29223done
29224
29225 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
29226 ;;
29227esac
29228fi
29229PKG_CONFIG=$ac_cv_path_PKG_CONFIG
29230
29231if test -n "$PKG_CONFIG"; then
29232 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
29233echo "${ECHO_T}$PKG_CONFIG" >&6
29234else
29235 echo "$as_me:$LINENO: result: no" >&5
29236echo "${ECHO_T}no" >&6
29237fi
29238
29239 fi
29240
29241 if test "$PKG_CONFIG" = "no" ; then
29242 echo "*** The pkg-config script could not be found. Make sure it is"
29243 echo "*** in your path, or set the PKG_CONFIG environment variable"
29244 echo "*** to the full path to pkg-config."
29245 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
29246 else
29247 PKG_CONFIG_MIN_VERSION=0.9.0
29248 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
29249 echo "$as_me:$LINENO: checking for pangoxft" >&5
29250echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6
29251
29252 if $PKG_CONFIG --exists "pangoxft" ; then
29253 echo "$as_me:$LINENO: result: yes" >&5
29254echo "${ECHO_T}yes" >&6
29255 succeeded=yes
29256
29257 echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5
29258echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6
29259 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
29260 echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5
29261echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6
29262
29263 echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5
29264echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6
29265 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
29266 echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5
29267echo "${ECHO_T}$PANGOXFT_LIBS" >&6
29268 else
29269 PANGOXFT_CFLAGS=""
29270 PANGOXFT_LIBS=""
29271 ## If we have a custom action on failure, don't print errors, but
29272 ## do set a variable so people can do so.
29273 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
29274
29275 fi
29276
29277
29278
29279 else
29280 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
29281 echo "*** See http://www.freedesktop.org/software/pkgconfig"
29282 fi
29283 fi
29284
29285 if test $succeeded = yes; then
29286
4ae1af05
MB
29287 cat >>confdefs.h <<\_ACEOF
29288#define HAVE_PANGO_XFT 1
29289_ACEOF
29290
c92ad099 29291 CXXFLAGS="$PANGOXFT_CFLAGS $CXXFLAGS"
a848cd7e
SC
29292 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
29293
29294 else
29295
29296 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
29297echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
29298
29299
29300 fi
29301
304205f1
VS
29302 save_CFLAGS="$CFLAGS"
29303 save_LIBS="$LIBS"
c92ad099 29304 CFLAGS="$PANGOX_CFLAGS $CFLAGS"
304205f1
VS
29305 LIBS="$LIBS $PANGOX_LIBS"
29306
29307for ac_func in pango_font_family_is_monospace
29308do
29309as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29310echo "$as_me:$LINENO: checking for $ac_func" >&5
29311echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29312if eval "test \"\${$as_ac_var+set}\" = set"; then
29313 echo $ECHO_N "(cached) $ECHO_C" >&6
29314else
29315 cat >conftest.$ac_ext <<_ACEOF
29316/* confdefs.h. */
29317_ACEOF
29318cat confdefs.h >>conftest.$ac_ext
29319cat >>conftest.$ac_ext <<_ACEOF
29320/* end confdefs.h. */
29321/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29322 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29323#define $ac_func innocuous_$ac_func
29324
29325/* System header to define __stub macros and hopefully few prototypes,
29326 which can conflict with char $ac_func (); below.
29327 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29328 <limits.h> exists even on freestanding compilers. */
29329
29330#ifdef __STDC__
29331# include <limits.h>
29332#else
29333# include <assert.h>
29334#endif
29335
29336#undef $ac_func
29337
29338/* Override any gcc2 internal prototype to avoid an error. */
29339#ifdef __cplusplus
29340extern "C"
29341{
29342#endif
29343/* We use char because int might match the return type of a gcc2
29344 builtin and then its argument prototype would still apply. */
29345char $ac_func ();
29346/* The GNU C library defines this for functions which it implements
29347 to always fail with ENOSYS. Some functions are actually named
29348 something starting with __ and the normal name is an alias. */
29349#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29350choke me
29351#else
29352char (*f) () = $ac_func;
29353#endif
29354#ifdef __cplusplus
29355}
29356#endif
29357
29358int
29359main ()
29360{
29361return f != $ac_func;
29362 ;
29363 return 0;
29364}
29365_ACEOF
29366rm -f conftest.$ac_objext conftest$ac_exeext
29367if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29368 (eval $ac_link) 2>conftest.er1
29369 ac_status=$?
29370 grep -v '^ *+' conftest.er1 >conftest.err
29371 rm -f conftest.er1
29372 cat conftest.err >&5
29373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29374 (exit $ac_status); } &&
f10e38c4 29375 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
304205f1
VS
29376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29377 (eval $ac_try) 2>&5
29378 ac_status=$?
29379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29380 (exit $ac_status); }; } &&
29381 { ac_try='test -s conftest$ac_exeext'
29382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29383 (eval $ac_try) 2>&5
29384 ac_status=$?
29385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29386 (exit $ac_status); }; }; then
29387 eval "$as_ac_var=yes"
29388else
29389 echo "$as_me: failed program was:" >&5
29390sed 's/^/| /' conftest.$ac_ext >&5
29391
29392eval "$as_ac_var=no"
29393fi
29394rm -f conftest.err conftest.$ac_objext \
29395 conftest$ac_exeext conftest.$ac_ext
29396fi
29397echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29398echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29399if test `eval echo '${'$as_ac_var'}'` = yes; then
29400 cat >>confdefs.h <<_ACEOF
29401#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29402_ACEOF
29403
29404fi
29405done
29406
29407 CFLAGS="$save_CFLAGS"
29408 LIBS="$save_LIBS"
a848cd7e
SC
29409 fi
29410
29411 wxUSE_UNIVERSAL="yes"
29412
29413 if test "$wxUSE_NANOX" = "yes"; then
29414 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
29415 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"
29416 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
29417 else
29418 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
29419 fi
29420
a848cd7e
SC
29421 TOOLKIT=X11
29422 GUIDIST=X11_DIST
29423 fi
29424
29425 if test "$wxUSE_MOTIF" = 1; then
0a08f02a
MB
29426 if test "$wxUSE_UNICODE" = "yes"; then
29427 { { echo "$as_me:$LINENO: error: Unicode configuration not supported with Motif" >&5
29428echo "$as_me: error: Unicode configuration not supported with Motif" >&2;}
29429 { (exit 1); exit 1; }; }
29430 fi
29431
74b84332
VS
29432 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
29433echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
a848cd7e 29434
74b84332
VS
29435ac_find_includes=
29436for ac_dir in $SEARCH_INCLUDE /usr/include;
29437 do
29438 if test -f "$ac_dir/Xm/Xm.h"; then
29439 ac_find_includes=$ac_dir
29440 break
29441 fi
29442 done
a848cd7e 29443
74b84332
VS
29444 if test "$ac_find_includes" != "" ; then
29445 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
29446echo "${ECHO_T}found in $ac_find_includes" >&6
29447
29448 if test "x$ac_find_includes" = "x/usr/include"; then
29449 ac_path_to_include=""
29450 else
29451 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
29452 result=$?
29453 if test $result = 0; then
29454 ac_path_to_include=""
29455 else
29456 ac_path_to_include=" -I$ac_find_includes"
29457 fi
a848cd7e
SC
29458 fi
29459
74b84332
VS
29460 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
29461 else
e051b34e 29462 save_CFLAGS=$CFLAGS
c92ad099 29463 CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
e051b34e 29464
74b84332 29465 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
29466/* confdefs.h. */
29467_ACEOF
29468cat confdefs.h >>conftest.$ac_ext
29469cat >>conftest.$ac_ext <<_ACEOF
29470/* end confdefs.h. */
29471
74b84332
VS
29472 #include <Xm/Xm.h>
29473
a848cd7e
SC
29474int
29475main ()
29476{
29477
74b84332
VS
29478 int version;
29479 version = xmUseVersion;
29480
a848cd7e
SC
29481 ;
29482 return 0;
29483}
29484_ACEOF
74b84332
VS
29485rm -f conftest.$ac_objext
29486if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29487 (eval $ac_compile) 2>conftest.er1
a848cd7e 29488 ac_status=$?
ac1cb8d3
VS
29489 grep -v '^ *+' conftest.er1 >conftest.err
29490 rm -f conftest.er1
29491 cat conftest.err >&5
a848cd7e
SC
29492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29493 (exit $ac_status); } &&
f10e38c4 29494 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29496 (eval $ac_try) 2>&5
29497 ac_status=$?
29498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29499 (exit $ac_status); }; } &&
74b84332 29500 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29502 (eval $ac_try) 2>&5
29503 ac_status=$?
29504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29505 (exit $ac_status); }; }; then
74b84332
VS
29506
29507 echo "$as_me:$LINENO: result: found in default search path" >&5
29508echo "${ECHO_T}found in default search path" >&6
29509 COMPILED_X_PROGRAM=1
29510
a848cd7e
SC
29511else
29512 echo "$as_me: failed program was:" >&5
29513sed 's/^/| /' conftest.$ac_ext >&5
29514
a848cd7e 29515
74b84332
VS
29516 echo "$as_me:$LINENO: result: no" >&5
29517echo "${ECHO_T}no" >&6
e051b34e
MW
29518 { { echo "$as_me:$LINENO: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&5
29519echo "$as_me: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&2;}
74b84332 29520 { (exit 1); exit 1; }; }
a848cd7e 29521
a848cd7e 29522
a848cd7e 29523fi
74b84332 29524rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e051b34e
MW
29525
29526 CFLAGS=$save_CFLAGS
74b84332
VS
29527 fi
29528
0ad5d837
VZ
29529
29530 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
74b84332
VS
29531echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
29532
0ad5d837
VZ
29533 ac_find_libraries=
29534 for ac_dir in $SEARCH_LIB;
74b84332 29535 do
3eca31dc 29536 for ac_extension in a so sl dylib dll.a; do
74b84332
VS
29537 if test -f "$ac_dir/libXm.$ac_extension"; then
29538 ac_find_libraries=$ac_dir
29539 break 2
a848cd7e 29540 fi
74b84332
VS
29541 done
29542 done
a848cd7e 29543
0ad5d837
VZ
29544
29545 if test "x$ac_find_libraries" != "x" ; then
29546 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
29547echo "${ECHO_T}found in $ac_find_libraries" >&6
a848cd7e 29548
74b84332 29549
0ad5d837 29550 if test "$ac_find_libraries" = "default location"; then
74b84332 29551 ac_path_to_link=""
a848cd7e 29552 else
0ad5d837
VZ
29553 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
29554 result=$?
29555 if test $result = 0; then
29556 ac_path_to_link=""
29557 else
29558 ac_path_to_link=" -L$ac_find_libraries"
29559 fi
74b84332
VS
29560 fi
29561
0ad5d837
VZ
29562 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
29563 else
29564 save_CFLAGS=$CFLAGS
c92ad099 29565 CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
6f9cf1e6
MW
29566 save_LIBS="$LIBS"
29567 LIBS="$GUI_TK_LIBRARY -lXm -lXmu -lXext -lX11"
74b84332 29568
0ad5d837 29569 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
29570/* confdefs.h. */
29571_ACEOF
29572cat confdefs.h >>conftest.$ac_ext
29573cat >>conftest.$ac_ext <<_ACEOF
29574/* end confdefs.h. */
29575
0ad5d837 29576 #include <Xm/Xm.h>
74b84332 29577
a848cd7e
SC
29578int
29579main ()
29580{
74b84332 29581
0ad5d837
VZ
29582 int version;
29583 version = xmUseVersion;
74b84332 29584
a848cd7e
SC
29585 ;
29586 return 0;
29587}
29588_ACEOF
0ad5d837
VZ
29589rm -f conftest.$ac_objext conftest$ac_exeext
29590if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29591 (eval $ac_link) 2>conftest.er1
a848cd7e 29592 ac_status=$?
ac1cb8d3
VS
29593 grep -v '^ *+' conftest.er1 >conftest.err
29594 rm -f conftest.er1
29595 cat conftest.err >&5
a848cd7e
SC
29596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29597 (exit $ac_status); } &&
f10e38c4 29598 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29600 (eval $ac_try) 2>&5
29601 ac_status=$?
29602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29603 (exit $ac_status); }; } &&
0ad5d837 29604 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29606 (eval $ac_try) 2>&5
29607 ac_status=$?
29608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29609 (exit $ac_status); }; }; then
74b84332 29610
0ad5d837 29611 echo "$as_me:$LINENO: result: found in default search path" >&5
74b84332 29612echo "${ECHO_T}found in default search path" >&6
0ad5d837 29613 COMPILED_X_PROGRAM=1
74b84332 29614
a848cd7e
SC
29615else
29616 echo "$as_me: failed program was:" >&5
29617sed 's/^/| /' conftest.$ac_ext >&5
29618
74b84332 29619
6f9cf1e6 29620 echo "$as_me:$LINENO: result: no" >&5
74b84332 29621echo "${ECHO_T}no" >&6
6f9cf1e6 29622 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
74b84332
VS
29623echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
29624 { (exit 1); exit 1; }; }
29625
29626
29627fi
0ad5d837
VZ
29628rm -f conftest.err conftest.$ac_objext \
29629 conftest$ac_exeext conftest.$ac_ext
74b84332 29630
0ad5d837 29631 CFLAGS=$save_CFLAGS
6f9cf1e6 29632 LIBS="$save_LIBS"
74b84332
VS
29633 fi
29634
29635 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
29636echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
29637 libp_link=""
29638 libsm_ice_link=""
29639 libs_found=0
29640 for libp in "" " -lXp"; do
29641 if test "$libs_found" = "0"; then
29642 for libsm_ice in "" " -lSM -lICE"; do
29643 if test "$libs_found" = "0"; then
29644 save_LIBS="$LIBS"
29645 LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
29646 save_CFLAGS=$CFLAGS
c92ad099 29647 CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
74b84332
VS
29648
29649 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
29650/* confdefs.h. */
29651_ACEOF
29652cat confdefs.h >>conftest.$ac_ext
29653cat >>conftest.$ac_ext <<_ACEOF
29654/* end confdefs.h. */
29655
74b84332
VS
29656 #include <Xm/Xm.h>
29657 #include <Xm/List.h>
29658
a848cd7e
SC
29659int
29660main ()
29661{
74b84332
VS
29662
29663 XmString string = NULL;
29664 Widget w = NULL;
29665 int position = 0;
29666 XmListAddItem(w, string, position);
29667
a848cd7e
SC
29668 ;
29669 return 0;
29670}
29671_ACEOF
29672rm -f conftest.$ac_objext conftest$ac_exeext
29673if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29674 (eval $ac_link) 2>conftest.er1
a848cd7e 29675 ac_status=$?
ac1cb8d3
VS
29676 grep -v '^ *+' conftest.er1 >conftest.err
29677 rm -f conftest.er1
29678 cat conftest.err >&5
a848cd7e
SC
29679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29680 (exit $ac_status); } &&
f10e38c4 29681 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29683 (eval $ac_try) 2>&5
29684 ac_status=$?
29685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29686 (exit $ac_status); }; } &&
29687 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29689 (eval $ac_try) 2>&5
29690 ac_status=$?
29691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29692 (exit $ac_status); }; }; then
29693
29694 libp_link="$libp"
29695 libsm_ice_link="$libsm_ice"
29696 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
29697echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
29698 libs_found=1
29699
29700else
29701 echo "$as_me: failed program was:" >&5
29702sed 's/^/| /' conftest.$ac_ext >&5
29703
29704
29705
29706fi
ac1cb8d3
VS
29707rm -f conftest.err conftest.$ac_objext \
29708 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29709
29710 LIBS="$save_LIBS"
29711 CFLAGS=$save_CFLAGS
29712 fi
29713 done
29714 fi
29715 done
29716
29717 if test "$libs_found" = "0"; then
29718 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
29719echo "${ECHO_T}can't find the right libraries" >&6
29720 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
29721echo "$as_me: error: can't link a simple motif program" >&2;}
29722 { (exit 1); exit 1; }; }
29723 fi
29724
62fa8b3a
MW
29725 echo "$as_me:$LINENO: checking for SgCreateList in -lSgm" >&5
29726echo $ECHO_N "checking for SgCreateList in -lSgm... $ECHO_C" >&6
29727if test "${ac_cv_lib_Sgm_SgCreateList+set}" = set; then
29728 echo $ECHO_N "(cached) $ECHO_C" >&6
29729else
29730 ac_check_lib_save_LIBS=$LIBS
29731LIBS="-lSgm $LIBS"
29732cat >conftest.$ac_ext <<_ACEOF
29733/* confdefs.h. */
29734_ACEOF
29735cat confdefs.h >>conftest.$ac_ext
29736cat >>conftest.$ac_ext <<_ACEOF
29737/* end confdefs.h. */
29738
29739/* Override any gcc2 internal prototype to avoid an error. */
29740#ifdef __cplusplus
29741extern "C"
29742#endif
29743/* We use char because int might match the return type of a gcc2
29744 builtin and then its argument prototype would still apply. */
29745char SgCreateList ();
29746int
29747main ()
29748{
29749SgCreateList ();
29750 ;
29751 return 0;
29752}
29753_ACEOF
29754rm -f conftest.$ac_objext conftest$ac_exeext
29755if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29756 (eval $ac_link) 2>conftest.er1
29757 ac_status=$?
29758 grep -v '^ *+' conftest.er1 >conftest.err
29759 rm -f conftest.er1
29760 cat conftest.err >&5
29761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29762 (exit $ac_status); } &&
f10e38c4 29763 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
62fa8b3a
MW
29764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29765 (eval $ac_try) 2>&5
29766 ac_status=$?
29767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29768 (exit $ac_status); }; } &&
29769 { ac_try='test -s conftest$ac_exeext'
29770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29771 (eval $ac_try) 2>&5
29772 ac_status=$?
29773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29774 (exit $ac_status); }; }; then
29775 ac_cv_lib_Sgm_SgCreateList=yes
29776else
29777 echo "$as_me: failed program was:" >&5
29778sed 's/^/| /' conftest.$ac_ext >&5
29779
29780ac_cv_lib_Sgm_SgCreateList=no
29781fi
29782rm -f conftest.err conftest.$ac_objext \
29783 conftest$ac_exeext conftest.$ac_ext
29784LIBS=$ac_check_lib_save_LIBS
29785fi
29786echo "$as_me:$LINENO: result: $ac_cv_lib_Sgm_SgCreateList" >&5
29787echo "${ECHO_T}$ac_cv_lib_Sgm_SgCreateList" >&6
29788if test $ac_cv_lib_Sgm_SgCreateList = yes; then
29789 libsgm_link=" -lSgm"
29790fi
29791
29792
a848cd7e 29793 save_CFLAGS=$CFLAGS
c92ad099 29794 CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
0ad5d837 29795
a848cd7e
SC
29796 echo "$as_me:$LINENO: checking for Motif 2" >&5
29797echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
0ad5d837
VZ
29798if test "${wx_cv_lib_motif2+set}" = set; then
29799 echo $ECHO_N "(cached) $ECHO_C" >&6
29800else
29801 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
29802/* confdefs.h. */
29803_ACEOF
29804cat confdefs.h >>conftest.$ac_ext
29805cat >>conftest.$ac_ext <<_ACEOF
29806/* end confdefs.h. */
29807
0ad5d837 29808 #include <Xm/Xm.h>
a848cd7e
SC
29809
29810int
29811main ()
29812{
29813
0ad5d837
VZ
29814 #if XmVersion < 2000
29815 Not Motif 2
29816 #endif
a848cd7e
SC
29817
29818 ;
29819 return 0;
29820}
29821_ACEOF
29822rm -f conftest.$ac_objext
29823if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29824 (eval $ac_compile) 2>conftest.er1
a848cd7e 29825 ac_status=$?
ac1cb8d3
VS
29826 grep -v '^ *+' conftest.er1 >conftest.err
29827 rm -f conftest.er1
29828 cat conftest.err >&5
a848cd7e
SC
29829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29830 (exit $ac_status); } &&
f10e38c4 29831 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29833 (eval $ac_try) 2>&5
29834 ac_status=$?
29835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29836 (exit $ac_status); }; } &&
29837 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29839 (eval $ac_try) 2>&5
29840 ac_status=$?
29841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29842 (exit $ac_status); }; }; then
0ad5d837 29843 wx_cv_lib_motif2="yes"
a848cd7e
SC
29844else
29845 echo "$as_me: failed program was:" >&5
29846sed 's/^/| /' conftest.$ac_ext >&5
29847
0ad5d837
VZ
29848wx_cv_lib_motif2="no"
29849fi
29850rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29851fi
29852echo "$as_me:$LINENO: result: $wx_cv_lib_motif2" >&5
29853echo "${ECHO_T}$wx_cv_lib_motif2" >&6
29854 if test "$wx_cv_lib_motif2" = "yes"; then
29855 cat >>confdefs.h <<\_ACEOF
29856#define __WXMOTIF20__ 1
29857_ACEOF
a848cd7e 29858
0ad5d837
VZ
29859 else
29860 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
29861#define __WXMOTIF20__ 0
29862_ACEOF
29863
0ad5d837 29864 fi
2113bc77
MW
29865
29866 echo "$as_me:$LINENO: checking whether Motif is Lesstif" >&5
29867echo $ECHO_N "checking whether Motif is Lesstif... $ECHO_C" >&6
0ad5d837
VZ
29868if test "${wx_cv_lib_lesstif+set}" = set; then
29869 echo $ECHO_N "(cached) $ECHO_C" >&6
29870else
29871 cat >conftest.$ac_ext <<_ACEOF
2113bc77
MW
29872/* confdefs.h. */
29873_ACEOF
29874cat confdefs.h >>conftest.$ac_ext
29875cat >>conftest.$ac_ext <<_ACEOF
29876/* end confdefs.h. */
29877
0ad5d837 29878 #include <Xm/Xm.h>
2113bc77
MW
29879
29880int
29881main ()
29882{
29883
0ad5d837
VZ
29884 #if !defined(LesstifVersion) || LesstifVersion <= 0
29885 Not Lesstif
29886 #endif
2113bc77
MW
29887
29888 ;
29889 return 0;
29890}
29891_ACEOF
29892rm -f conftest.$ac_objext
29893if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29894 (eval $ac_compile) 2>conftest.er1
29895 ac_status=$?
29896 grep -v '^ *+' conftest.er1 >conftest.err
29897 rm -f conftest.er1
29898 cat conftest.err >&5
29899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29900 (exit $ac_status); } &&
f10e38c4 29901 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2113bc77
MW
29902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29903 (eval $ac_try) 2>&5
29904 ac_status=$?
29905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29906 (exit $ac_status); }; } &&
29907 { ac_try='test -s conftest.$ac_objext'
29908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29909 (eval $ac_try) 2>&5
29910 ac_status=$?
29911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29912 (exit $ac_status); }; }; then
0ad5d837 29913 wx_cv_lib_lesstif="yes"
2113bc77
MW
29914else
29915 echo "$as_me: failed program was:" >&5
29916sed 's/^/| /' conftest.$ac_ext >&5
29917
0ad5d837
VZ
29918wx_cv_lib_lesstif="no"
29919fi
29920rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2113bc77 29921
0ad5d837
VZ
29922fi
29923echo "$as_me:$LINENO: result: $wx_cv_lib_lesstif" >&5
29924echo "${ECHO_T}$wx_cv_lib_lesstif" >&6
29925 if test "$wx_cv_lib_lesstif" = "yes"; then
29926 cat >>confdefs.h <<\_ACEOF
29927#define __WXLESSTIF__ 1
29928_ACEOF
29929
29930 else
29931 cat >>confdefs.h <<\_ACEOF
2113bc77
MW
29932#define __WXLESSTIF__ 0
29933_ACEOF
29934
0ad5d837 29935 fi
2113bc77 29936
a848cd7e
SC
29937 CFLAGS=$save_CFLAGS
29938
62fa8b3a 29939 GUI_TK_LIBRARY="$GUI_TK_LIBRARY${libsgm_link} -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
a848cd7e
SC
29940 TOOLKIT=MOTIF
29941 GUIDIST=MOTIF_DIST
29942 fi
29943
74b84332 29944 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
a848cd7e
SC
29945 if test "$wxUSE_LIBXPM" = "sys"; then
29946 echo "$as_me:$LINENO: checking for Xpm library" >&5
29947echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
29948
0ad5d837
VZ
29949 ac_find_libraries=
29950 for ac_dir in $SEARCH_LIB;
a848cd7e 29951 do
3eca31dc 29952 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
29953 if test -f "$ac_dir/libXpm.$ac_extension"; then
29954 ac_find_libraries=$ac_dir
29955 break 2
29956 fi
29957 done
29958 done
29959
29960 if test "$ac_find_libraries" != "" ; then
29961
0ad5d837 29962 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
29963 ac_path_to_link=""
29964 else
0ad5d837
VZ
29965 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
29966 result=$?
29967 if test $result = 0; then
29968 ac_path_to_link=""
29969 else
29970 ac_path_to_link=" -L$ac_find_libraries"
29971 fi
a848cd7e
SC
29972 fi
29973
29974 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
0ad5d837
VZ
29975 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
29976echo "${ECHO_T}found in $ac_find_libraries" >&6
a848cd7e
SC
29977
29978 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
29979echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
29980if test "${wx_cv_x11_xpm_h+set}" = set; then
29981 echo $ECHO_N "(cached) $ECHO_C" >&6
29982else
29983
29984 save_CFLAGS=$CFLAGS
c92ad099 29985 CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
a848cd7e
SC
29986
29987 cat >conftest.$ac_ext <<_ACEOF
29988/* confdefs.h. */
29989_ACEOF
29990cat confdefs.h >>conftest.$ac_ext
29991cat >>conftest.$ac_ext <<_ACEOF
29992/* end confdefs.h. */
29993
29994 #include <X11/xpm.h>
29995
29996int
29997main ()
29998{
29999
30000 int version;
30001 version = XpmLibraryVersion();
30002
30003 ;
30004 return 0;
30005}
30006_ACEOF
30007rm -f conftest.$ac_objext
30008if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30009 (eval $ac_compile) 2>conftest.er1
a848cd7e 30010 ac_status=$?
ac1cb8d3
VS
30011 grep -v '^ *+' conftest.er1 >conftest.err
30012 rm -f conftest.er1
30013 cat conftest.err >&5
a848cd7e
SC
30014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30015 (exit $ac_status); } &&
f10e38c4 30016 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
30022 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30024 (eval $ac_try) 2>&5
30025 ac_status=$?
30026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30027 (exit $ac_status); }; }; then
30028 wx_cv_x11_xpm_h=yes
30029else
30030 echo "$as_me: failed program was:" >&5
30031sed 's/^/| /' conftest.$ac_ext >&5
30032
30033wx_cv_x11_xpm_h=no
30034
30035fi
ac1cb8d3 30036rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30037
30038 CFLAGS=$save_CFLAGS
30039
30040
30041fi
30042echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
30043echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
30044
30045 if test $wx_cv_x11_xpm_h = "yes"; then
30046 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
30047 cat >>confdefs.h <<\_ACEOF
30048#define wxHAVE_LIB_XPM 1
30049_ACEOF
30050
30051 else
30052 { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
30053echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
30054 fi
30055 fi
30056
30057 fi
30058
30059 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
30060echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
30061if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
30062 echo $ECHO_N "(cached) $ECHO_C" >&6
30063else
30064 ac_check_lib_save_LIBS=$LIBS
30065LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
30066cat >conftest.$ac_ext <<_ACEOF
30067/* confdefs.h. */
30068_ACEOF
30069cat confdefs.h >>conftest.$ac_ext
30070cat >>conftest.$ac_ext <<_ACEOF
30071/* end confdefs.h. */
30072
30073/* Override any gcc2 internal prototype to avoid an error. */
30074#ifdef __cplusplus
30075extern "C"
30076#endif
30077/* We use char because int might match the return type of a gcc2
30078 builtin and then its argument prototype would still apply. */
30079char XShapeQueryExtension ();
30080int
30081main ()
30082{
30083XShapeQueryExtension ();
30084 ;
30085 return 0;
30086}
30087_ACEOF
30088rm -f conftest.$ac_objext conftest$ac_exeext
30089if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30090 (eval $ac_link) 2>conftest.er1
a848cd7e 30091 ac_status=$?
ac1cb8d3
VS
30092 grep -v '^ *+' conftest.er1 >conftest.err
30093 rm -f conftest.er1
30094 cat conftest.err >&5
a848cd7e
SC
30095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30096 (exit $ac_status); } &&
f10e38c4 30097 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30099 (eval $ac_try) 2>&5
30100 ac_status=$?
30101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30102 (exit $ac_status); }; } &&
30103 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30105 (eval $ac_try) 2>&5
30106 ac_status=$?
30107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30108 (exit $ac_status); }; }; then
30109 ac_cv_lib_Xext_XShapeQueryExtension=yes
30110else
30111 echo "$as_me: failed program was:" >&5
30112sed 's/^/| /' conftest.$ac_ext >&5
30113
30114ac_cv_lib_Xext_XShapeQueryExtension=no
30115fi
ac1cb8d3
VS
30116rm -f conftest.err conftest.$ac_objext \
30117 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30118LIBS=$ac_check_lib_save_LIBS
30119fi
30120echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
30121echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
30122if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
30123
30124 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
30125 wxHAVE_XEXT_LIB=1
30126
30127fi
30128
30129
30130 if test "$wxHAVE_XEXT_LIB" = 1; then
30131 save_CFLAGS="$CFLAGS"
c92ad099 30132 CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
a848cd7e
SC
30133
30134 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
30135echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
30136 cat >conftest.$ac_ext <<_ACEOF
30137/* confdefs.h. */
30138_ACEOF
30139cat confdefs.h >>conftest.$ac_ext
30140cat >>conftest.$ac_ext <<_ACEOF
30141/* end confdefs.h. */
30142
30143 #include <X11/Xlib.h>
30144 #include <X11/extensions/shape.h>
30145
30146int
30147main ()
30148{
30149
30150 int dummy1, dummy2;
30151 XShapeQueryExtension((Display*)NULL,
30152 (int*)NULL, (int*)NULL);
30153
30154 ;
30155 return 0;
30156}
30157_ACEOF
30158rm -f conftest.$ac_objext
30159if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30160 (eval $ac_compile) 2>conftest.er1
a848cd7e 30161 ac_status=$?
ac1cb8d3
VS
30162 grep -v '^ *+' conftest.er1 >conftest.err
30163 rm -f conftest.er1
30164 cat conftest.err >&5
a848cd7e
SC
30165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30166 (exit $ac_status); } &&
f10e38c4 30167 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30169 (eval $ac_try) 2>&5
30170 ac_status=$?
30171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30172 (exit $ac_status); }; } &&
30173 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30175 (eval $ac_try) 2>&5
30176 ac_status=$?
30177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30178 (exit $ac_status); }; }; then
30179
30180 cat >>confdefs.h <<\_ACEOF
30181#define HAVE_XSHAPE 1
30182_ACEOF
30183
30184 echo "$as_me:$LINENO: result: found" >&5
30185echo "${ECHO_T}found" >&6
30186
30187else
30188 echo "$as_me: failed program was:" >&5
30189sed 's/^/| /' conftest.$ac_ext >&5
30190
30191
30192 echo "$as_me:$LINENO: result: not found" >&5
30193echo "${ECHO_T}not found" >&6
30194
30195fi
ac1cb8d3 30196rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30197 CFLAGS="$save_CFLAGS"
30198
30199 fi
30200 fi
30201
30202 if test "$wxUSE_MAC" = 1; then
30203 echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
30204echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
30205 if test "$GCC" = yes; then
30206 echo "$as_me:$LINENO: result: gcc" >&5
30207echo "${ECHO_T}gcc" >&6
30208 CPPFLAGS_PASCAL="-fpascal-strings"
30209 elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
30210 echo "$as_me:$LINENO: result: xlc" >&5
30211echo "${ECHO_T}xlc" >&6
30212 CPPFLAGS_PASCAL="-qmacpstr"
30213 else
30214 echo "$as_me:$LINENO: result: none" >&5
30215echo "${ECHO_T}none" >&6
30216 fi
30217
1e9e8aba 30218 if test "x$wxUSE_UNIX" = "xyes"; then
c92ad099 30219 CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon $CPPFLAGS"
1e9e8aba 30220 else
c92ad099 30221 CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON $CPPFLAGS"
1e9e8aba 30222 fi
a848cd7e 30223
a848cd7e
SC
30224 TOOLKIT=MAC
30225 GUIDIST=MACX_DIST
dd21ced8 30226 WXBASEPORT="_carbon"
a848cd7e
SC
30227 fi
30228
30229 if test "$wxUSE_COCOA" = 1; then
a848cd7e
SC
30230 TOOLKIT=COCOA
30231 GUIDIST=COCOA_DIST
30232 fi
30233
30234 if test "$wxUSE_PM" = 1; then
30235 TOOLKIT=PM
de59c161
RD
30236 GUIDIST=PM_DIST
30237 echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
30238echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6
30239if test "${wx_cv_spbcdata+set}" = set; then
30240 echo $ECHO_N "(cached) $ECHO_C" >&6
30241else
30242
30243 cat >conftest.$ac_ext <<_ACEOF
de59c161
RD
30244/* confdefs.h. */
30245_ACEOF
30246cat confdefs.h >>conftest.$ac_ext
30247cat >>conftest.$ac_ext <<_ACEOF
30248/* end confdefs.h. */
30249
30250 #define INCL_PM
30251 #include <os2.h>
30252
30253int
30254main ()
30255{
30256
30257 SPBCDATA test;
30258
30259 ;
30260 return 0;
30261}
30262_ACEOF
30263rm -f conftest.$ac_objext
30264if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30265 (eval $ac_compile) 2>conftest.er1
de59c161 30266 ac_status=$?
ac1cb8d3
VS
30267 grep -v '^ *+' conftest.er1 >conftest.err
30268 rm -f conftest.er1
30269 cat conftest.err >&5
de59c161
RD
30270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30271 (exit $ac_status); } &&
f10e38c4 30272 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30274 (eval $ac_try) 2>&5
30275 ac_status=$?
30276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30277 (exit $ac_status); }; } &&
30278 { ac_try='test -s conftest.$ac_objext'
de59c161
RD
30279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30280 (eval $ac_try) 2>&5
30281 ac_status=$?
30282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30283 (exit $ac_status); }; }; then
30284 wx_cv_spbcdata=yes
30285else
30286 echo "$as_me: failed program was:" >&5
30287sed 's/^/| /' conftest.$ac_ext >&5
30288
30289wx_cv_spbcdata=no
30290
30291fi
ac1cb8d3 30292rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
de59c161
RD
30293
30294
30295fi
30296echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
30297echo "${ECHO_T}$wx_cv_spbcdata" >&6
30298
30299 if test $wx_cv_spbcdata = "yes"; then
30300 cat >>confdefs.h <<\_ACEOF
30301#define HAVE_SPBCDATA 1
30302_ACEOF
30303
30304 fi
a848cd7e
SC
30305 fi
30306
30307 if test "$TOOLKIT" = "PM" ; then
30308 TOOLKIT_DIR="os2"
30309 else
30310 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
30311 fi
30312
a848cd7e 30313 if test "$wxUSE_UNIVERSAL" = "yes"; then
a848cd7e
SC
30314 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
30315 WIDGET_SET=univ
a848cd7e
SC
30316 fi
30317
30318 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
30319 DISTDIR="wx\$(TOOLKIT)"
30320else
30321 USE_GUI=0
30322
30323 TOOLKIT_DIR="base"
30324
30325 if test "$USE_WIN32" = 1 ; then
a848cd7e 30326 TOOLKIT="MSW"
a848cd7e
SC
30327 fi
30328
a848cd7e
SC
30329 GUIDIST="BASE_DIST"
30330 DISTDIR="wxBase"
30331fi
30332
30333
d12aef51
VZ
30334if test "$wxUSE_GUI" = "yes"; then
30335 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
30336
30337for ac_header in X11/Xlib.h
30338do
30339as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30340if eval "test \"\${$as_ac_Header+set}\" = set"; then
30341 echo "$as_me:$LINENO: checking for $ac_header" >&5
30342echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30343if eval "test \"\${$as_ac_Header+set}\" = set"; then
30344 echo $ECHO_N "(cached) $ECHO_C" >&6
30345fi
30346echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30347echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30348else
30349 # Is the header compilable?
30350echo "$as_me:$LINENO: checking $ac_header usability" >&5
30351echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30352cat >conftest.$ac_ext <<_ACEOF
30353/* confdefs.h. */
30354_ACEOF
30355cat confdefs.h >>conftest.$ac_ext
30356cat >>conftest.$ac_ext <<_ACEOF
30357/* end confdefs.h. */
30358$ac_includes_default
30359#include <$ac_header>
30360_ACEOF
30361rm -f conftest.$ac_objext
30362if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30363 (eval $ac_compile) 2>conftest.er1
30364 ac_status=$?
30365 grep -v '^ *+' conftest.er1 >conftest.err
30366 rm -f conftest.er1
30367 cat conftest.err >&5
30368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30369 (exit $ac_status); } &&
f10e38c4 30370 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d12aef51
VZ
30371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30372 (eval $ac_try) 2>&5
30373 ac_status=$?
30374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30375 (exit $ac_status); }; } &&
30376 { ac_try='test -s conftest.$ac_objext'
30377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30378 (eval $ac_try) 2>&5
30379 ac_status=$?
30380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30381 (exit $ac_status); }; }; then
30382 ac_header_compiler=yes
30383else
30384 echo "$as_me: failed program was:" >&5
30385sed 's/^/| /' conftest.$ac_ext >&5
30386
30387ac_header_compiler=no
30388fi
30389rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30390echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30391echo "${ECHO_T}$ac_header_compiler" >&6
30392
30393# Is the header present?
30394echo "$as_me:$LINENO: checking $ac_header presence" >&5
30395echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30396cat >conftest.$ac_ext <<_ACEOF
30397/* confdefs.h. */
30398_ACEOF
30399cat confdefs.h >>conftest.$ac_ext
30400cat >>conftest.$ac_ext <<_ACEOF
30401/* end confdefs.h. */
30402#include <$ac_header>
30403_ACEOF
30404if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30405 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30406 ac_status=$?
30407 grep -v '^ *+' conftest.er1 >conftest.err
30408 rm -f conftest.er1
30409 cat conftest.err >&5
30410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30411 (exit $ac_status); } >/dev/null; then
30412 if test -s conftest.err; then
30413 ac_cpp_err=$ac_c_preproc_warn_flag
30414 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30415 else
30416 ac_cpp_err=
30417 fi
30418else
30419 ac_cpp_err=yes
30420fi
30421if test -z "$ac_cpp_err"; then
30422 ac_header_preproc=yes
30423else
30424 echo "$as_me: failed program was:" >&5
30425sed 's/^/| /' conftest.$ac_ext >&5
30426
30427 ac_header_preproc=no
30428fi
30429rm -f conftest.err conftest.$ac_ext
30430echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30431echo "${ECHO_T}$ac_header_preproc" >&6
30432
30433# So? What about this header?
30434case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30435 yes:no: )
30436 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30437echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30438 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30439echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30440 ac_header_preproc=yes
30441 ;;
30442 no:yes:* )
30443 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30444echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30445 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30446echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30447 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30448echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30449 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30450echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30451 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30452echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30453 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30454echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30455 (
30456 cat <<\_ASBOX
30457## ----------------------------------------- ##
30458## Report this to wx-dev@lists.wxwidgets.org ##
30459## ----------------------------------------- ##
30460_ASBOX
30461 ) |
30462 sed "s/^/$as_me: WARNING: /" >&2
30463 ;;
30464esac
30465echo "$as_me:$LINENO: checking for $ac_header" >&5
30466echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30467if eval "test \"\${$as_ac_Header+set}\" = set"; then
30468 echo $ECHO_N "(cached) $ECHO_C" >&6
30469else
30470 eval "$as_ac_Header=\$ac_header_preproc"
30471fi
30472echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30473echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30474
30475fi
30476if test `eval echo '${'$as_ac_Header'}'` = yes; then
30477 cat >>confdefs.h <<_ACEOF
30478#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30479_ACEOF
30480
30481fi
30482
30483done
30484
30485
30486for ac_header in X11/XKBlib.h
30487do
30488as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30489echo "$as_me:$LINENO: checking for $ac_header" >&5
30490echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30491if eval "test \"\${$as_ac_Header+set}\" = set"; then
30492 echo $ECHO_N "(cached) $ECHO_C" >&6
30493else
30494 cat >conftest.$ac_ext <<_ACEOF
30495/* confdefs.h. */
30496_ACEOF
30497cat confdefs.h >>conftest.$ac_ext
30498cat >>conftest.$ac_ext <<_ACEOF
30499/* end confdefs.h. */
30500
30501 #if HAVE_X11_XLIB_H
30502 #include <X11/Xlib.h>
30503 #endif
30504
30505
30506#include <$ac_header>
30507_ACEOF
30508rm -f conftest.$ac_objext
30509if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30510 (eval $ac_compile) 2>conftest.er1
30511 ac_status=$?
30512 grep -v '^ *+' conftest.er1 >conftest.err
30513 rm -f conftest.er1
30514 cat conftest.err >&5
30515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30516 (exit $ac_status); } &&
f10e38c4 30517 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d12aef51
VZ
30518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30519 (eval $ac_try) 2>&5
30520 ac_status=$?
30521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30522 (exit $ac_status); }; } &&
30523 { ac_try='test -s conftest.$ac_objext'
30524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30525 (eval $ac_try) 2>&5
30526 ac_status=$?
30527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30528 (exit $ac_status); }; }; then
30529 eval "$as_ac_Header=yes"
30530else
30531 echo "$as_me: failed program was:" >&5
30532sed 's/^/| /' conftest.$ac_ext >&5
30533
30534eval "$as_ac_Header=no"
30535fi
30536rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30537fi
30538echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30539echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30540if test `eval echo '${'$as_ac_Header'}'` = yes; then
30541 cat >>confdefs.h <<_ACEOF
30542#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30543_ACEOF
30544
30545fi
30546
30547done
30548
30549 fi
30550fi
30551
a848cd7e
SC
30552
30553
30554IODBC_C_SRC=""
30555
30556
30557if test "$TOOLKIT" != "MSW" ; then
30558
30559 if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
30560
30561 if test "${ac_cv_header_sql_h+set}" = set; then
30562 echo "$as_me:$LINENO: checking for sql.h" >&5
30563echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
30564if test "${ac_cv_header_sql_h+set}" = set; then
30565 echo $ECHO_N "(cached) $ECHO_C" >&6
30566fi
30567echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
30568echo "${ECHO_T}$ac_cv_header_sql_h" >&6
30569else
30570 # Is the header compilable?
30571echo "$as_me:$LINENO: checking sql.h usability" >&5
30572echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
30573cat >conftest.$ac_ext <<_ACEOF
30574/* confdefs.h. */
30575_ACEOF
30576cat confdefs.h >>conftest.$ac_ext
30577cat >>conftest.$ac_ext <<_ACEOF
30578/* end confdefs.h. */
30579$ac_includes_default
30580#include <sql.h>
30581_ACEOF
30582rm -f conftest.$ac_objext
30583if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30584 (eval $ac_compile) 2>conftest.er1
a848cd7e 30585 ac_status=$?
ac1cb8d3
VS
30586 grep -v '^ *+' conftest.er1 >conftest.err
30587 rm -f conftest.er1
30588 cat conftest.err >&5
a848cd7e
SC
30589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30590 (exit $ac_status); } &&
f10e38c4 30591 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30593 (eval $ac_try) 2>&5
30594 ac_status=$?
30595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30596 (exit $ac_status); }; } &&
30597 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30599 (eval $ac_try) 2>&5
30600 ac_status=$?
30601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30602 (exit $ac_status); }; }; then
30603 ac_header_compiler=yes
30604else
30605 echo "$as_me: failed program was:" >&5
30606sed 's/^/| /' conftest.$ac_ext >&5
30607
30608ac_header_compiler=no
30609fi
ac1cb8d3 30610rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30611echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30612echo "${ECHO_T}$ac_header_compiler" >&6
30613
30614# Is the header present?
30615echo "$as_me:$LINENO: checking sql.h presence" >&5
30616echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
30617cat >conftest.$ac_ext <<_ACEOF
30618/* confdefs.h. */
30619_ACEOF
30620cat confdefs.h >>conftest.$ac_ext
30621cat >>conftest.$ac_ext <<_ACEOF
30622/* end confdefs.h. */
30623#include <sql.h>
30624_ACEOF
30625if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30626 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30627 ac_status=$?
30628 grep -v '^ *+' conftest.er1 >conftest.err
30629 rm -f conftest.er1
30630 cat conftest.err >&5
30631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30632 (exit $ac_status); } >/dev/null; then
30633 if test -s conftest.err; then
30634 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 30635 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
30636 else
30637 ac_cpp_err=
30638 fi
30639else
30640 ac_cpp_err=yes
30641fi
30642if test -z "$ac_cpp_err"; then
30643 ac_header_preproc=yes
30644else
30645 echo "$as_me: failed program was:" >&5
30646sed 's/^/| /' conftest.$ac_ext >&5
30647
30648 ac_header_preproc=no
30649fi
30650rm -f conftest.err conftest.$ac_ext
30651echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30652echo "${ECHO_T}$ac_header_preproc" >&6
30653
30654# So? What about this header?
ac1cb8d3
VS
30655case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30656 yes:no: )
a848cd7e
SC
30657 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
30658echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
30659 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
30660echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
30661 ac_header_preproc=yes
a848cd7e 30662 ;;
ac1cb8d3 30663 no:yes:* )
a848cd7e
SC
30664 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
30665echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
30666 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
30667echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
30668 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
30669echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
30670 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
30671echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
30672 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
30673echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
30674 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
30675echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
30676 (
30677 cat <<\_ASBOX
ac1cb8d3
VS
30678## ----------------------------------------- ##
30679## Report this to wx-dev@lists.wxwidgets.org ##
30680## ----------------------------------------- ##
a848cd7e
SC
30681_ASBOX
30682 ) |
30683 sed "s/^/$as_me: WARNING: /" >&2
30684 ;;
30685esac
30686echo "$as_me:$LINENO: checking for sql.h" >&5
30687echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
30688if test "${ac_cv_header_sql_h+set}" = set; then
30689 echo $ECHO_N "(cached) $ECHO_C" >&6
30690else
30691 ac_cv_header_sql_h=$ac_header_preproc
30692fi
30693echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
30694echo "${ECHO_T}$ac_cv_header_sql_h" >&6
30695
30696fi
30697if test $ac_cv_header_sql_h = yes; then
30698 found_sql_h=1
30699fi
30700
30701
30702 if test "x$found_sql_h" = "x1" ; then
30703 echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
30704echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
30705if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
30706 echo $ECHO_N "(cached) $ECHO_C" >&6
30707else
30708 ac_check_lib_save_LIBS=$LIBS
30709LIBS="-liodbc $LIBS"
30710cat >conftest.$ac_ext <<_ACEOF
30711/* confdefs.h. */
30712_ACEOF
30713cat confdefs.h >>conftest.$ac_ext
30714cat >>conftest.$ac_ext <<_ACEOF
30715/* end confdefs.h. */
30716
30717/* Override any gcc2 internal prototype to avoid an error. */
30718#ifdef __cplusplus
30719extern "C"
30720#endif
30721/* We use char because int might match the return type of a gcc2
30722 builtin and then its argument prototype would still apply. */
30723char SQLAllocEnv ();
30724int
30725main ()
30726{
30727SQLAllocEnv ();
30728 ;
30729 return 0;
30730}
30731_ACEOF
30732rm -f conftest.$ac_objext conftest$ac_exeext
30733if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30734 (eval $ac_link) 2>conftest.er1
a848cd7e 30735 ac_status=$?
ac1cb8d3
VS
30736 grep -v '^ *+' conftest.er1 >conftest.err
30737 rm -f conftest.er1
30738 cat conftest.err >&5
a848cd7e
SC
30739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30740 (exit $ac_status); } &&
f10e38c4 30741 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30743 (eval $ac_try) 2>&5
30744 ac_status=$?
30745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30746 (exit $ac_status); }; } &&
30747 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30749 (eval $ac_try) 2>&5
30750 ac_status=$?
30751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30752 (exit $ac_status); }; }; then
30753 ac_cv_lib_iodbc_SQLAllocEnv=yes
30754else
30755 echo "$as_me: failed program was:" >&5
30756sed 's/^/| /' conftest.$ac_ext >&5
30757
30758ac_cv_lib_iodbc_SQLAllocEnv=no
30759fi
ac1cb8d3
VS
30760rm -f conftest.err conftest.$ac_objext \
30761 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30762LIBS=$ac_check_lib_save_LIBS
30763fi
30764echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
30765echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
30766if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
30767 ODBC_LINK=" -liodbc"
30768else
30769
30770 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
30771echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
30772if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
30773 echo $ECHO_N "(cached) $ECHO_C" >&6
30774else
30775 ac_check_lib_save_LIBS=$LIBS
30776LIBS="-lunixodbc $LIBS"
30777cat >conftest.$ac_ext <<_ACEOF
30778/* confdefs.h. */
30779_ACEOF
30780cat confdefs.h >>conftest.$ac_ext
30781cat >>conftest.$ac_ext <<_ACEOF
30782/* end confdefs.h. */
30783
30784/* Override any gcc2 internal prototype to avoid an error. */
30785#ifdef __cplusplus
30786extern "C"
30787#endif
30788/* We use char because int might match the return type of a gcc2
30789 builtin and then its argument prototype would still apply. */
30790char SQLAllocEnv ();
30791int
30792main ()
30793{
30794SQLAllocEnv ();
30795 ;
30796 return 0;
30797}
30798_ACEOF
30799rm -f conftest.$ac_objext conftest$ac_exeext
30800if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30801 (eval $ac_link) 2>conftest.er1
a848cd7e 30802 ac_status=$?
ac1cb8d3
VS
30803 grep -v '^ *+' conftest.er1 >conftest.err
30804 rm -f conftest.er1
30805 cat conftest.err >&5
a848cd7e
SC
30806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30807 (exit $ac_status); } &&
f10e38c4 30808 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30810 (eval $ac_try) 2>&5
30811 ac_status=$?
30812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30813 (exit $ac_status); }; } &&
30814 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30816 (eval $ac_try) 2>&5
30817 ac_status=$?
30818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30819 (exit $ac_status); }; }; then
30820 ac_cv_lib_unixodbc_SQLAllocEnv=yes
30821else
30822 echo "$as_me: failed program was:" >&5
30823sed 's/^/| /' conftest.$ac_ext >&5
30824
30825ac_cv_lib_unixodbc_SQLAllocEnv=no
30826fi
ac1cb8d3
VS
30827rm -f conftest.err conftest.$ac_objext \
30828 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30829LIBS=$ac_check_lib_save_LIBS
30830fi
30831echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
30832echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
30833if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
30834 ODBC_LINK=" -lunixodbc"
30835else
30836
30837 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
30838echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
30839if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
30840 echo $ECHO_N "(cached) $ECHO_C" >&6
30841else
30842 ac_check_lib_save_LIBS=$LIBS
30843LIBS="-lodbc $LIBS"
30844cat >conftest.$ac_ext <<_ACEOF
30845/* confdefs.h. */
30846_ACEOF
30847cat confdefs.h >>conftest.$ac_ext
30848cat >>conftest.$ac_ext <<_ACEOF
30849/* end confdefs.h. */
30850
30851/* Override any gcc2 internal prototype to avoid an error. */
30852#ifdef __cplusplus
30853extern "C"
30854#endif
30855/* We use char because int might match the return type of a gcc2
30856 builtin and then its argument prototype would still apply. */
30857char SQLAllocEnv ();
30858int
30859main ()
30860{
30861SQLAllocEnv ();
30862 ;
30863 return 0;
30864}
30865_ACEOF
30866rm -f conftest.$ac_objext conftest$ac_exeext
30867if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30868 (eval $ac_link) 2>conftest.er1
a848cd7e 30869 ac_status=$?
ac1cb8d3
VS
30870 grep -v '^ *+' conftest.er1 >conftest.err
30871 rm -f conftest.er1
30872 cat conftest.err >&5
a848cd7e
SC
30873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30874 (exit $ac_status); } &&
f10e38c4 30875 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30877 (eval $ac_try) 2>&5
30878 ac_status=$?
30879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30880 (exit $ac_status); }; } &&
30881 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30883 (eval $ac_try) 2>&5
30884 ac_status=$?
30885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30886 (exit $ac_status); }; }; then
30887 ac_cv_lib_odbc_SQLAllocEnv=yes
30888else
30889 echo "$as_me: failed program was:" >&5
30890sed 's/^/| /' conftest.$ac_ext >&5
30891
30892ac_cv_lib_odbc_SQLAllocEnv=no
30893fi
ac1cb8d3
VS
30894rm -f conftest.err conftest.$ac_objext \
30895 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30896LIBS=$ac_check_lib_save_LIBS
30897fi
30898echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
30899echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
30900if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
30901 ODBC_LINK=" -lodbc"
30902fi
30903
30904
30905fi
30906
30907
30908fi
30909
30910 fi
30911 if test "x$ODBC_LINK" = "x" ; then
30912 if test "$wxUSE_ODBC" = "sys" ; then
30913 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
30914echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
30915 { (exit 1); exit 1; }; }
30916 else
30917 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
30918echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
30919 wxUSE_ODBC=builtin
30920 fi
30921 else
30922 wxUSE_ODBC=sys
30923 fi
30924 fi
a848cd7e 30925
2da0c077
RD
30926 if test "$wxUSE_ODBC" = "builtin" ; then
30927 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
30928#define wxUSE_BUILTIN_IODBC 1
30929_ACEOF
30930
a848cd7e
SC
30931 fi
30932fi
30933
2da0c077
RD
30934if test "$wxUSE_ODBC" != "no" ; then
30935 cat >>confdefs.h <<\_ACEOF
30936#define wxUSE_ODBC 1
30937_ACEOF
30938
30939 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
30940
5ff751d6 30941 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_IODBC_"
2da0c077 30942fi
a848cd7e 30943
01cb68df 30944
a848cd7e 30945if test "$wxUSE_DISPLAY" = "yes"; then
2a5d7a98 30946 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
a848cd7e
SC
30947 echo "$as_me:$LINENO: checking for Xinerama" >&5
30948echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
30949
0ad5d837
VZ
30950 ac_find_libraries=
30951 for ac_dir in $SEARCH_LIB;
30952 do
30953 for ac_extension in a so sl dylib dll.a; do
30954 if test -f "$ac_dir/libXinerama.$ac_extension"; then
30955 ac_find_libraries=$ac_dir
30956 break 2
30957 fi
30958 done
30959 done
30960
a848cd7e
SC
30961 if test "$ac_find_libraries" != "" ; then
30962
0ad5d837 30963 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
30964 ac_path_to_link=""
30965 else
0ad5d837
VZ
30966 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
30967 result=$?
30968 if test $result = 0; then
30969 ac_path_to_link=""
30970 else
30971 ac_path_to_link=" -L$ac_find_libraries"
30972 fi
a848cd7e
SC
30973 fi
30974
30975 if test "$ac_path_to_link" != " -L/usr/lib" ; then
30976 LDFLAGS="$LDFLAGS $ac_path_to_link"
30977 fi
30978 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
30979 echo "$as_me:$LINENO: result: yes" >&5
30980echo "${ECHO_T}yes" >&6
30981
30982 echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
30983echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
30984
0ad5d837
VZ
30985 ac_find_libraries=
30986 for ac_dir in $SEARCH_LIB;
a848cd7e 30987 do
3eca31dc 30988 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
30989 if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
30990 ac_find_libraries=$ac_dir
30991 break 2
30992 fi
30993 done
30994 done
30995
30996 if test "$ac_find_libraries" != "" ; then
30997 echo "$as_me:$LINENO: result: yes" >&5
30998echo "${ECHO_T}yes" >&6
30999
31000for ac_header in X11/extensions/xf86vmode.h
31001do
31002as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31003echo "$as_me:$LINENO: checking for $ac_header" >&5
31004echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31005if eval "test \"\${$as_ac_Header+set}\" = set"; then
31006 echo $ECHO_N "(cached) $ECHO_C" >&6
31007else
31008 cat >conftest.$ac_ext <<_ACEOF
31009/* confdefs.h. */
31010_ACEOF
31011cat confdefs.h >>conftest.$ac_ext
31012cat >>conftest.$ac_ext <<_ACEOF
31013/* end confdefs.h. */
31014
31015 #if HAVE_X11_XLIB_H
31016 #include <X11/Xlib.h>
31017 #endif
31018
31019
31020#include <$ac_header>
31021_ACEOF
31022rm -f conftest.$ac_objext
31023if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31024 (eval $ac_compile) 2>conftest.er1
a848cd7e 31025 ac_status=$?
ac1cb8d3
VS
31026 grep -v '^ *+' conftest.er1 >conftest.err
31027 rm -f conftest.er1
31028 cat conftest.err >&5
a848cd7e
SC
31029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31030 (exit $ac_status); } &&
f10e38c4 31031 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31033 (eval $ac_try) 2>&5
31034 ac_status=$?
31035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31036 (exit $ac_status); }; } &&
31037 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31039 (eval $ac_try) 2>&5
31040 ac_status=$?
31041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31042 (exit $ac_status); }; }; then
31043 eval "$as_ac_Header=yes"
31044else
31045 echo "$as_me: failed program was:" >&5
31046sed 's/^/| /' conftest.$ac_ext >&5
31047
31048eval "$as_ac_Header=no"
31049fi
ac1cb8d3 31050rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31051fi
31052echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31053echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31054if test `eval echo '${'$as_ac_Header'}'` = yes; then
31055 cat >>confdefs.h <<_ACEOF
31056#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31057_ACEOF
31058
31059 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
31060
31061fi
31062
31063done
31064
31065 else
31066 echo "$as_me:$LINENO: result: no" >&5
31067echo "${ECHO_T}no" >&6
31068 fi
31069
31070 else
31071 echo "$as_me:$LINENO: result: no" >&5
31072echo "${ECHO_T}no" >&6
dcc1b6ad
VS
31073 { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
31074echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
a848cd7e
SC
31075 wxUSE_DISPLAY="no"
31076 fi
01cb68df
RG
31077 elif test "$wxUSE_MSW" = 1; then
31078
e5efa97e 31079for ac_header in ddraw.h
01cb68df
RG
31080do
31081as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5294a27e 31082echo "$as_me:$LINENO: checking for $ac_header" >&5
01cb68df
RG
31083echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31084if eval "test \"\${$as_ac_Header+set}\" = set"; then
31085 echo $ECHO_N "(cached) $ECHO_C" >&6
01cb68df 31086else
5294a27e 31087 cat >conftest.$ac_ext <<_ACEOF
01cb68df
RG
31088/* confdefs.h. */
31089_ACEOF
31090cat confdefs.h >>conftest.$ac_ext
31091cat >>conftest.$ac_ext <<_ACEOF
31092/* end confdefs.h. */
5294a27e
VZ
31093#include <windows.h>
31094
01cb68df
RG
31095#include <$ac_header>
31096_ACEOF
31097rm -f conftest.$ac_objext
31098if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31099 (eval $ac_compile) 2>conftest.er1
01cb68df 31100 ac_status=$?
ac1cb8d3
VS
31101 grep -v '^ *+' conftest.er1 >conftest.err
31102 rm -f conftest.er1
31103 cat conftest.err >&5
01cb68df
RG
31104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31105 (exit $ac_status); } &&
f10e38c4 31106 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
31112 { ac_try='test -s conftest.$ac_objext'
01cb68df
RG
31113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31114 (eval $ac_try) 2>&5
31115 ac_status=$?
31116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31117 (exit $ac_status); }; }; then
5294a27e 31118 eval "$as_ac_Header=yes"
01cb68df
RG
31119else
31120 echo "$as_me: failed program was:" >&5
31121sed 's/^/| /' conftest.$ac_ext >&5
31122
5294a27e 31123eval "$as_ac_Header=no"
01cb68df 31124fi
ac1cb8d3 31125rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
01cb68df
RG
31126fi
31127echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31128echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
01cb68df
RG
31129if test `eval echo '${'$as_ac_Header'}'` = yes; then
31130 cat >>confdefs.h <<_ACEOF
31131#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31132_ACEOF
31133
01cb68df
RG
31134fi
31135
31136done
31137
a848cd7e
SC
31138 fi
31139fi
31140
31141
31142USE_OPENGL=0
31143if test "$wxUSE_OPENGL" = "yes"; then
31144 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
31145 OPENGL_LIBS="-framework OpenGL -framework AGL"
31146 elif test "$wxUSE_MSW" = 1; then
31147 OPENGL_LIBS="-lopengl32 -lglu32"
31148 else
31149
31150
31151ac_find_includes=
31152for ac_dir in $SEARCH_INCLUDE /usr/include;
31153 do
31154 if test -f "$ac_dir/GL/gl.h"; then
31155 ac_find_includes=$ac_dir
31156 break
31157 fi
31158 done
31159
31160 if test "$ac_find_includes" != "" ; then
31161 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
31162echo "${ECHO_T}found in $ac_find_includes" >&6
31163
31164 if test "x$ac_find_includes" = "x/usr/include"; then
31165 ac_path_to_include=""
31166 else
31167 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
31168 result=$?
31169 if test $result = 0; then
31170 ac_path_to_include=""
31171 else
31172 ac_path_to_include=" -I$ac_find_includes"
31173 fi
31174 fi
31175
c92ad099 31176 CPPFLAGS="$ac_path_to_include $CPPFLAGS"
a848cd7e
SC
31177 fi
31178
31179 if test "${ac_cv_header_GL_gl_h+set}" = set; then
31180 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
31181echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
31182if test "${ac_cv_header_GL_gl_h+set}" = set; then
31183 echo $ECHO_N "(cached) $ECHO_C" >&6
31184fi
31185echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
31186echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
31187else
31188 # Is the header compilable?
31189echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
31190echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
31191cat >conftest.$ac_ext <<_ACEOF
31192/* confdefs.h. */
31193_ACEOF
31194cat confdefs.h >>conftest.$ac_ext
31195cat >>conftest.$ac_ext <<_ACEOF
31196/* end confdefs.h. */
31197$ac_includes_default
31198#include <GL/gl.h>
31199_ACEOF
31200rm -f conftest.$ac_objext
31201if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31202 (eval $ac_compile) 2>conftest.er1
a848cd7e 31203 ac_status=$?
ac1cb8d3
VS
31204 grep -v '^ *+' conftest.er1 >conftest.err
31205 rm -f conftest.er1
31206 cat conftest.err >&5
a848cd7e
SC
31207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31208 (exit $ac_status); } &&
f10e38c4 31209 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31211 (eval $ac_try) 2>&5
31212 ac_status=$?
31213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31214 (exit $ac_status); }; } &&
31215 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31217 (eval $ac_try) 2>&5
31218 ac_status=$?
31219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31220 (exit $ac_status); }; }; then
31221 ac_header_compiler=yes
31222else
31223 echo "$as_me: failed program was:" >&5
31224sed 's/^/| /' conftest.$ac_ext >&5
31225
31226ac_header_compiler=no
31227fi
ac1cb8d3 31228rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31229echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31230echo "${ECHO_T}$ac_header_compiler" >&6
31231
31232# Is the header present?
31233echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
31234echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
31235cat >conftest.$ac_ext <<_ACEOF
31236/* confdefs.h. */
31237_ACEOF
31238cat confdefs.h >>conftest.$ac_ext
31239cat >>conftest.$ac_ext <<_ACEOF
31240/* end confdefs.h. */
31241#include <GL/gl.h>
31242_ACEOF
31243if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31244 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31245 ac_status=$?
31246 grep -v '^ *+' conftest.er1 >conftest.err
31247 rm -f conftest.er1
31248 cat conftest.err >&5
31249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31250 (exit $ac_status); } >/dev/null; then
31251 if test -s conftest.err; then
31252 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 31253 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
31254 else
31255 ac_cpp_err=
31256 fi
31257else
31258 ac_cpp_err=yes
31259fi
31260if test -z "$ac_cpp_err"; then
31261 ac_header_preproc=yes
31262else
31263 echo "$as_me: failed program was:" >&5
31264sed 's/^/| /' conftest.$ac_ext >&5
31265
31266 ac_header_preproc=no
31267fi
31268rm -f conftest.err conftest.$ac_ext
31269echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31270echo "${ECHO_T}$ac_header_preproc" >&6
31271
31272# So? What about this header?
ac1cb8d3
VS
31273case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31274 yes:no: )
a848cd7e
SC
31275 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
31276echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
31277 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
31278echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
31279 ac_header_preproc=yes
a848cd7e 31280 ;;
ac1cb8d3 31281 no:yes:* )
a848cd7e
SC
31282 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
31283echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
31284 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
31285echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
31286 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
31287echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
31288 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
31289echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
31290 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
31291echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
31292 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
31293echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
31294 (
31295 cat <<\_ASBOX
ac1cb8d3
VS
31296## ----------------------------------------- ##
31297## Report this to wx-dev@lists.wxwidgets.org ##
31298## ----------------------------------------- ##
a848cd7e
SC
31299_ASBOX
31300 ) |
31301 sed "s/^/$as_me: WARNING: /" >&2
31302 ;;
31303esac
31304echo "$as_me:$LINENO: checking for GL/gl.h" >&5
31305echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
31306if test "${ac_cv_header_GL_gl_h+set}" = set; then
31307 echo $ECHO_N "(cached) $ECHO_C" >&6
31308else
31309 ac_cv_header_GL_gl_h=$ac_header_preproc
31310fi
31311echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
31312echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
31313
31314fi
31315if test $ac_cv_header_GL_gl_h = yes; then
31316
31317 found_gl=0
31318
31319 echo "$as_me:$LINENO: checking for -lGL" >&5
31320echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
31321
0ad5d837
VZ
31322 ac_find_libraries=
31323 for ac_dir in $SEARCH_LIB;
a848cd7e 31324 do
3eca31dc 31325 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
31326 if test -f "$ac_dir/libGL.$ac_extension"; then
31327 ac_find_libraries=$ac_dir
31328 break 2
31329 fi
31330 done
31331 done
31332
31333 if test "$ac_find_libraries" != "" ; then
69120ee4
VZ
31334 echo "$as_me:$LINENO: result: yes" >&5
31335echo "${ECHO_T}yes" >&6
31336
a848cd7e 31337
0ad5d837 31338 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
31339 ac_path_to_link=""
31340 else
0ad5d837
VZ
31341 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
31342 result=$?
31343 if test $result = 0; then
31344 ac_path_to_link=""
31345 else
31346 ac_path_to_link=" -L$ac_find_libraries"
31347 fi
a848cd7e
SC
31348 fi
31349
31350 if test "$ac_path_to_link" != " -L/usr/lib" ; then
31351 LDFLAGS_GL="$ac_path_to_link"
31352 fi
31353
69120ee4
VZ
31354 echo "$as_me:$LINENO: checking for -lGLU" >&5
31355echo $ECHO_N "checking for -lGLU... $ECHO_C" >&6
a848cd7e 31356
0ad5d837
VZ
31357 ac_find_libraries=
31358 for ac_dir in $SEARCH_LIB;
31359 do
31360 for ac_extension in a so sl dylib dll.a; do
31361 if test -f "$ac_dir/libGLU.$ac_extension"; then
31362 ac_find_libraries=$ac_dir
31363 break 2
31364 fi
31365 done
31366 done
31367
a848cd7e
SC
31368 if test "$ac_find_libraries" != "" ; then
31369
0ad5d837 31370 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
31371 ac_path_to_link=""
31372 else
0ad5d837
VZ
31373 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
31374 result=$?
31375 if test $result = 0; then
31376 ac_path_to_link=""
31377 else
31378 ac_path_to_link=" -L$ac_find_libraries"
31379 fi
a848cd7e
SC
31380 fi
31381
31382 if test "$ac_path_to_link" != " -L/usr/lib" -a \
31383 "$ac_path_to_link" != "$LDFLAGS_GL"; then
31384 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
31385 fi
31386
31387 found_gl=1
31388 OPENGL_LIBS="-lGL -lGLU"
31389 echo "$as_me:$LINENO: result: yes" >&5
31390echo "${ECHO_T}yes" >&6
69120ee4
VZ
31391 else
31392 echo "$as_me:$LINENO: result: no" >&5
31393echo "${ECHO_T}no" >&6
a848cd7e 31394 fi
69120ee4
VZ
31395 else
31396 echo "$as_me:$LINENO: result: no" >&5
31397echo "${ECHO_T}no" >&6
a848cd7e
SC
31398 fi
31399
31400 if test "$found_gl" != 1; then
a848cd7e
SC
31401 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
31402echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
31403
0ad5d837
VZ
31404 ac_find_libraries=
31405 for ac_dir in $SEARCH_LIB;
a848cd7e 31406 do
3eca31dc 31407 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
31408 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
31409 ac_find_libraries=$ac_dir
31410 break 2
31411 fi
31412 done
31413 done
31414
31415 if test "$ac_find_libraries" != "" ; then
31416
0ad5d837 31417 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
31418 ac_path_to_link=""
31419 else
0ad5d837
VZ
31420 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
31421 result=$?
31422 if test $result = 0; then
31423 ac_path_to_link=""
31424 else
31425 ac_path_to_link=" -L$ac_find_libraries"
31426 fi
a848cd7e
SC
31427 fi
31428
31429 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
31430 OPENGL_LIBS="-lMesaGL -lMesaGLU"
31431 echo "$as_me:$LINENO: result: yes" >&5
31432echo "${ECHO_T}yes" >&6
31433 else
31434 echo "$as_me:$LINENO: result: no" >&5
31435echo "${ECHO_T}no" >&6
31436 fi
31437 fi
31438
31439fi
31440
31441
31442
31443 if test "x$OPENGL_LIBS" = "x"; then
31444 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
31445echo "$as_me: error: OpenGL libraries not available" >&2;}
31446 { (exit 1); exit 1; }; }
31447 fi
31448 fi
31449
31450 if test "$wxUSE_OPENGL" = "yes"; then
31451 USE_OPENGL=1
31452 cat >>confdefs.h <<\_ACEOF
31453#define wxUSE_OPENGL 1
31454_ACEOF
31455
31456 cat >>confdefs.h <<\_ACEOF
31457#define wxUSE_GLCANVAS 1
31458_ACEOF
31459
31460 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
31461 fi
31462fi
31463
a848cd7e
SC
31464
31465if test -n "$TOOLKIT" ; then
31466 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
31467fi
31468
a848cd7e
SC
31469
31470
31471if test "$wxUSE_SHARED" = "yes"; then
31472 case "${host}" in
31473 *-pc-msdosdjgpp )
31474 wxUSE_SHARED=no
31475 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
31476echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
31477 ;;
31478 esac
31479fi
31480
a848cd7e 31481if test "$wxUSE_SHARED" = "yes"; then
a848cd7e
SC
31482
31483
31484 found_versioning=no
31485
31486
31487 if test $found_versioning = no ; then
31488 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
31489echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
31490if test "${wx_cv_version_script+set}" = set; then
31491 echo $ECHO_N "(cached) $ECHO_C" >&6
31492else
31493
31494 echo "VER_1 { *; };" >conftest.sym
31495 echo "int main() { return 0; }" >conftest.cpp
31496
31497 if { ac_try='
31498 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
31499 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
31500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31501 (eval $ac_try) 2>&5
31502 ac_status=$?
31503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31504 (exit $ac_status); }; } ; then
31505 if test -s conftest.stderr ; then
31506 wx_cv_version_script=no
31507 else
31508 wx_cv_version_script=yes
31509 fi
31510 else
31511 wx_cv_version_script=no
31512 fi
e5d4b470
MW
31513
31514 if test $wx_cv_version_script = yes
31515 then
31516 echo "struct B { virtual ~B() { } }; \
31517 struct D : public B { }; \
31518 void F() { D d; }" > conftest.cpp
31519
31520 if { ac_try='
31521 $CXX -shared -fPIC -o conftest1.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
31522 -Wl,--version-script,conftest.sym >/dev/null 2>/dev/null'
31523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31524 (eval $ac_try) 2>&5
31525 ac_status=$?
31526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31527 (exit $ac_status); }; } &&
31528 { ac_try='
31529 $CXX -shared -fPIC -o conftest2.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
31530 -Wl,--version-script,conftest.sym conftest1.output >/dev/null 2>/dev/null'
31531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31532 (eval $ac_try) 2>&5
31533 ac_status=$?
31534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31535 (exit $ac_status); }; }
31536 then
31537 if { ac_try='
31538 $CXX -shared -fPIC -o conftest3.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
31539 -Wl,--version-script,conftest.sym conftest2.output conftest1.output >/dev/null 2>/dev/null'
31540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31541 (eval $ac_try) 2>&5
31542 ac_status=$?
31543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31544 (exit $ac_status); }; }
31545 then
31546 wx_cv_version_script=yes
31547 else
31548 wx_cv_version_script=no
31549 fi
31550 fi
31551 fi
31552
a848cd7e 31553 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
e5d4b470 31554 rm -f conftest1.output conftest2.output conftest3.output
a848cd7e
SC
31555
31556fi
31557echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
31558echo "${ECHO_T}$wx_cv_version_script" >&6
31559 if test $wx_cv_version_script = yes ; then
31560 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
31561 fi
31562 fi
31563
31564
31565 case "${host}" in
31566 *-*-linux* | *-*-gnu* )
31567 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 31568 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
6ebeb4c7 31569 ;;
a848cd7e
SC
31570
31571 *-*-solaris2* )
31572 if test "$GCC" = yes ; then
c92ad099 31573 CPPFLAGS="-isystem /usr/openwin/include $CPPFLAGS"
a848cd7e
SC
31574
31575 saveLdflags="$LDFLAGS"
31576 LDFLAGS="$saveLdflags -Wl,-rpath,/"
31577 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
31578echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
31579 cat >conftest.$ac_ext <<_ACEOF
31580/* confdefs.h. */
31581_ACEOF
31582cat confdefs.h >>conftest.$ac_ext
31583cat >>conftest.$ac_ext <<_ACEOF
31584/* end confdefs.h. */
31585
31586int
31587main ()
31588{
31589
31590 ;
31591 return 0;
31592}
31593_ACEOF
31594rm -f conftest.$ac_objext conftest$ac_exeext
31595if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31596 (eval $ac_link) 2>conftest.er1
a848cd7e 31597 ac_status=$?
ac1cb8d3
VS
31598 grep -v '^ *+' conftest.er1 >conftest.err
31599 rm -f conftest.er1
31600 cat conftest.err >&5
a848cd7e
SC
31601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31602 (exit $ac_status); } &&
f10e38c4 31603 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31605 (eval $ac_try) 2>&5
31606 ac_status=$?
31607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31608 (exit $ac_status); }; } &&
31609 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31611 (eval $ac_try) 2>&5
31612 ac_status=$?
31613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31614 (exit $ac_status); }; }; then
31615
31616 echo "$as_me:$LINENO: result: yes" >&5
31617echo "${ECHO_T}yes" >&6
31618 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 31619 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
a848cd7e
SC
31620
31621else
31622 echo "$as_me: failed program was:" >&5
31623sed 's/^/| /' conftest.$ac_ext >&5
31624
31625
31626 echo "$as_me:$LINENO: result: no" >&5
31627echo "${ECHO_T}no" >&6
31628 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
31629echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
31630 LDFLAGS="$saveLdflags -Wl,-R,/"
31631 cat >conftest.$ac_ext <<_ACEOF
31632/* confdefs.h. */
31633_ACEOF
31634cat confdefs.h >>conftest.$ac_ext
31635cat >>conftest.$ac_ext <<_ACEOF
31636/* end confdefs.h. */
31637
31638int
31639main ()
31640{
31641
31642 ;
31643 return 0;
31644}
31645_ACEOF
31646rm -f conftest.$ac_objext conftest$ac_exeext
31647if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31648 (eval $ac_link) 2>conftest.er1
a848cd7e 31649 ac_status=$?
ac1cb8d3
VS
31650 grep -v '^ *+' conftest.er1 >conftest.err
31651 rm -f conftest.er1
31652 cat conftest.err >&5
a848cd7e
SC
31653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31654 (exit $ac_status); } &&
f10e38c4 31655 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31657 (eval $ac_try) 2>&5
31658 ac_status=$?
31659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31660 (exit $ac_status); }; } &&
31661 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31663 (eval $ac_try) 2>&5
31664 ac_status=$?
31665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31666 (exit $ac_status); }; }; then
31667
ffa0583f 31668 echo "$as_me:$LINENO: result: yes" >&5
a848cd7e 31669echo "${ECHO_T}yes" >&6
ffa0583f
RL
31670 SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
31671 WXCONFIG_RPATH="-Wl,-R,\$libdir"
31672
a848cd7e
SC
31673else
31674 echo "$as_me: failed program was:" >&5
31675sed 's/^/| /' conftest.$ac_ext >&5
31676
31677
31678 echo "$as_me:$LINENO: result: no" >&5
31679echo "${ECHO_T}no" >&6
31680
31681fi
ac1cb8d3
VS
31682rm -f conftest.err conftest.$ac_objext \
31683 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31684
31685fi
ac1cb8d3
VS
31686rm -f conftest.err conftest.$ac_objext \
31687 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31688 LDFLAGS="$saveLdflags"
31689 else
a848cd7e 31690 SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
ffa0583f 31691 WXCONFIG_RPATH="-R\$libdir"
a848cd7e
SC
31692 fi
31693 ;;
31694
cfda0ea8 31695 *-*-darwin* )
0caebc27
MW
31696 install_name_tool=`which install_name_tool`
31697 if test "$install_name_tool" -a -x "$install_name_tool"; then
31698 SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
31699 cat <<EOF >change-install-names
a848cd7e
SC
31700#!/bin/sh
31701libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
31702inst_cmd="install_name_tool "
31703for i in \${libnames} ; do
31704 inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
31705done
31706\${inst_cmd} \${3}
31707EOF
0caebc27
MW
31708 chmod +x change-install-names
31709 fi
a848cd7e
SC
31710 ;;
31711
31712 *-*-cygwin* | *-*-mingw32* )
5ff751d6
VZ
31713 WXCONFIG_ONLY_CPPFLAGS="$WXCONFIG_ONLY_CPPFLAGS -DWXUSINGDLL"
31714 ;;
a848cd7e 31715
81f90336
MW
31716 *-*-hpux* )
31717 SAMPLES_RPATH_FLAG="-Wl,+b,\$(top_builddir)lib"
31718 WXCONFIG_RPATH="-Wl,+b,\$libdir"
5ff751d6 31719 ;;
81f90336 31720
a848cd7e 31721 esac
ceec2216 31722
ffa0583f
RL
31723 if test $wxUSE_RPATH = "no"; then
31724 SAMPLES_RPATH_FLAG=''
31725 SAMPLES_RPATH_POSTLINK=''
31726 WXCONFIG_RPATH=''
31727 fi
31728
31729 SHARED=1
31730
31731else
31732
ceec2216
RL
31733 config_linkage_component="-static"
31734 SHARED=0
ffa0583f 31735
ceec2216 31736fi
a848cd7e 31737
a848cd7e 31738
ceec2216
RL
31739UNICODE=0
31740lib_unicode_suffix=
31741WX_CHARTYPE="ansi"
31742if test "$wxUSE_UNICODE" = "yes"; then
31743 lib_unicode_suffix=u
31744 WX_CHARTYPE="unicode"
31745 UNICODE=1
a848cd7e
SC
31746fi
31747
ceec2216
RL
31748lib_debug_suffix=
31749WX_DEBUGTYPE="release"
31750DEBUG_FLAG=0
31751if test "$wxUSE_DEBUG_FLAG" = "yes"; then
31752 lib_debug_suffix=d
31753 WX_DEBUGTYPE="debug"
31754 DEBUG_FLAG=1
31755fi
a848cd7e 31756
ceec2216
RL
31757WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
31758WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
a848cd7e 31759
ceec2216
RL
31760DEBUG_INFO=0
31761if test "$wxUSE_DEBUG_INFO" = "yes"; then
31762 DEBUG_INFO=1
31763fi
a848cd7e 31764
ceec2216 31765WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
a848cd7e 31766
ceec2216 31767TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}"
a848cd7e 31768
ceec2216 31769TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
a848cd7e 31770
ceec2216
RL
31771if test "$cross_compiling" = "yes"; then
31772 HOST_SUFFIX="-$host_alias"
31773 TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX"
31774 TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME"
a848cd7e
SC
31775fi
31776
dd21ced8 31777WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
abc736fd
MW
31778if test "${TOOLKIT_DIR}" = "os2"; then
31779 WX_LIBRARY_BASENAME_GUI="wx_pm${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
31780else
31781 WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
31782fi
ceec2216
RL
31783
31784
31785
1d1af5ea
DE
31786if test "$wxUSE_COCOA" = 1; then
31787
31788
31789 ac_ext=c
31790ac_cpp='$CPP $CPPFLAGS'
31791ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31792ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31793ac_compiler_gnu=$ac_cv_c_compiler_gnu
31794
31795ac_ext=m
31796
31797 echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5
31798echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6
31799 cat >conftest.$ac_ext <<_ACEOF
31800/* confdefs.h. */
31801_ACEOF
31802cat confdefs.h >>conftest.$ac_ext
31803cat >>conftest.$ac_ext <<_ACEOF
31804/* end confdefs.h. */
31805#include <AppKit/NSEvent.h>
31806#include <CoreFoundation/CoreFoundation.h>
31807
31808int
31809main ()
31810{
31811
31812 ;
31813 return 0;
31814}
31815_ACEOF
31816rm -f conftest.$ac_objext
31817if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31818 (eval $ac_compile) 2>conftest.er1
31819 ac_status=$?
31820 grep -v '^ *+' conftest.er1 >conftest.err
31821 rm -f conftest.er1
31822 cat conftest.err >&5
31823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31824 (exit $ac_status); } &&
f10e38c4 31825 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1d1af5ea
DE
31826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31827 (eval $ac_try) 2>&5
31828 ac_status=$?
31829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31830 (exit $ac_status); }; } &&
31831 { ac_try='test -s conftest.$ac_objext'
31832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31833 (eval $ac_try) 2>&5
31834 ac_status=$?
31835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31836 (exit $ac_status); }; }; then
31837 echo "$as_me:$LINENO: result: no" >&5
31838echo "${ECHO_T}no" >&6
31839else
31840 echo "$as_me: failed program was:" >&5
31841sed 's/^/| /' conftest.$ac_ext >&5
31842
31843echo "$as_me:$LINENO: result: yes" >&5
31844echo "${ECHO_T}yes" >&6
31845 echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5
31846echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6
31847 cat >conftest.$ac_ext <<_ACEOF
31848/* confdefs.h. */
31849_ACEOF
31850cat confdefs.h >>conftest.$ac_ext
31851cat >>conftest.$ac_ext <<_ACEOF
31852/* end confdefs.h. */
31853#define __Point__ 1
31854#include <AppKit/NSEvent.h>
31855#include <CoreFoundation/CoreFoundation.h>
31856
31857int
31858main ()
31859{
31860
31861 ;
31862 return 0;
31863}
31864_ACEOF
31865rm -f conftest.$ac_objext
31866if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31867 (eval $ac_compile) 2>conftest.er1
31868 ac_status=$?
31869 grep -v '^ *+' conftest.er1 >conftest.err
31870 rm -f conftest.er1
31871 cat conftest.err >&5
31872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31873 (exit $ac_status); } &&
f10e38c4 31874 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1d1af5ea
DE
31875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31876 (eval $ac_try) 2>&5
31877 ac_status=$?
31878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31879 (exit $ac_status); }; } &&
31880 { ac_try='test -s conftest.$ac_objext'
31881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31882 (eval $ac_try) 2>&5
31883 ac_status=$?
31884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31885 (exit $ac_status); }; }; then
31886 echo "$as_me:$LINENO: result: yes" >&5
31887echo "${ECHO_T}yes" >&6
31888 cat >>confdefs.h <<\_ACEOF
31889#define __Point__ 1
31890_ACEOF
31891
31892
31893else
31894 echo "$as_me: failed program was:" >&5
31895sed 's/^/| /' conftest.$ac_ext >&5
31896
31897{ { echo "$as_me:$LINENO: error: no
31898See \`config.log' for more details." >&5
31899echo "$as_me: error: no
31900See \`config.log' for more details." >&2;}
31901 { (exit 1); exit 1; }; }
31902
31903fi
31904rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31905
31906fi
31907rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31908 ac_ext=c
31909ac_cpp='$CPP $CPPFLAGS'
31910ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31911ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31912ac_compiler_gnu=$ac_cv_c_compiler_gnu
31913
31914fi
31915
a848cd7e 31916if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
abb9aae7
VZ
31917 WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
31918 WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
ceec2216 31919
a848cd7e 31920 LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
a848cd7e
SC
31921
31922 # Extract the first word of "Rez", so it can be a program name with args.
31923set dummy Rez; ac_word=$2
31924echo "$as_me:$LINENO: checking for $ac_word" >&5
31925echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 31926if test "${ac_cv_prog_REZ+set}" = set; then
a848cd7e
SC
31927 echo $ECHO_N "(cached) $ECHO_C" >&6
31928else
8ced02f6
DE
31929 if test -n "$REZ"; then
31930 ac_cv_prog_REZ="$REZ" # Let the user override the test.
a848cd7e
SC
31931else
31932as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31933for as_dir in $PATH
31934do
31935 IFS=$as_save_IFS
31936 test -z "$as_dir" && as_dir=.
31937 for ac_exec_ext in '' $ac_executable_extensions; do
31938 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 31939 ac_cv_prog_REZ="Rez"
a848cd7e
SC
31940 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31941 break 2
31942 fi
31943done
31944done
31945
8ced02f6 31946 test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
a848cd7e
SC
31947fi
31948fi
8ced02f6
DE
31949REZ=$ac_cv_prog_REZ
31950if test -n "$REZ"; then
31951 echo "$as_me:$LINENO: result: $REZ" >&5
31952echo "${ECHO_T}$REZ" >&6
a848cd7e
SC
31953else
31954 echo "$as_me:$LINENO: result: no" >&5
31955echo "${ECHO_T}no" >&6
31956fi
31957
31958 # Extract the first word of "DeRez", so it can be a program name with args.
31959set dummy DeRez; ac_word=$2
31960echo "$as_me:$LINENO: checking for $ac_word" >&5
31961echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
31962if test "${ac_cv_prog_DEREZ+set}" = set; then
31963 echo $ECHO_N "(cached) $ECHO_C" >&6
31964else
31965 if test -n "$DEREZ"; then
31966 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
31967else
31968as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31969for as_dir in $PATH
31970do
31971 IFS=$as_save_IFS
31972 test -z "$as_dir" && as_dir=.
31973 for ac_exec_ext in '' $ac_executable_extensions; do
31974 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31975 ac_cv_prog_DEREZ="DeRez"
31976 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31977 break 2
31978 fi
31979done
31980done
31981
31982 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
31983fi
31984fi
31985DEREZ=$ac_cv_prog_DEREZ
31986if test -n "$DEREZ"; then
31987 echo "$as_me:$LINENO: result: $DEREZ" >&5
31988echo "${ECHO_T}$DEREZ" >&6
31989else
31990 echo "$as_me:$LINENO: result: no" >&5
31991echo "${ECHO_T}no" >&6
31992fi
31993
31994 # Extract the first word of "SetFile", so it can be a program name with args.
31995set dummy SetFile; ac_word=$2
31996echo "$as_me:$LINENO: checking for $ac_word" >&5
31997echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
31998if test "${ac_cv_prog_SETFILE+set}" = set; then
31999 echo $ECHO_N "(cached) $ECHO_C" >&6
32000else
32001 if test -n "$SETFILE"; then
32002 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
32003else
32004as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32005for as_dir in $PATH
32006do
32007 IFS=$as_save_IFS
32008 test -z "$as_dir" && as_dir=.
32009 for ac_exec_ext in '' $ac_executable_extensions; do
32010 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32011 ac_cv_prog_SETFILE="SetFile"
32012 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32013 break 2
32014 fi
32015done
32016done
32017
32018 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
32019fi
32020fi
32021SETFILE=$ac_cv_prog_SETFILE
32022if test -n "$SETFILE"; then
32023 echo "$as_me:$LINENO: result: $SETFILE" >&5
32024echo "${ECHO_T}$SETFILE" >&6
32025else
32026 echo "$as_me:$LINENO: result: no" >&5
32027echo "${ECHO_T}no" >&6
32028fi
32029
32030
32031 MACSETFILE="\$(SETFILE)"
32032
32033 if test "$wxUSE_MAC" = 1; then
8ced02f6 32034 POSTLINK_COMMAND="\$(REZ) -d __DARWIN__ -t APPL Carbon.r -o"
004ee6da
RL
32035 RESCOMP="$REZ"
32036 WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL Carbon.r -o"
a848cd7e 32037 else
004ee6da
RL
32038 POSTLINK_COMMAND="echo -n | \$(REZ) -d __DARWIN__ -t APPL ${LIBWXMACRES}"
32039 RESCOMP="echo -n \| $REZ"
32040 WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL \$libdir/$WX_RESOURCES_MACOSX_ASCII"
a848cd7e 32041 fi
004ee6da 32042
a848cd7e 32043else
ffa0583f 32044 MACSETFILE="@true"
a848cd7e 32045
8ced02f6 32046 if test "$wxUSE_PM" = 1; then
004ee6da
RL
32047 RESCOMP="emxbind"
32048 WXCONFIG_RESFLAGS="-ep"
32049
32050 POSTLINK_COMMAND="$RESCOMP $WXCONFIG_RESFLAGS"
a848cd7e 32051 else
8ced02f6 32052 POSTLINK_COMMAND="@true"
a848cd7e 32053 fi
004ee6da 32054
a848cd7e
SC
32055fi
32056
32057
32058
32059echo "$as_me:$LINENO: checking for mode_t" >&5
32060echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
32061if test "${ac_cv_type_mode_t+set}" = set; then
32062 echo $ECHO_N "(cached) $ECHO_C" >&6
32063else
32064 cat >conftest.$ac_ext <<_ACEOF
32065/* confdefs.h. */
32066_ACEOF
32067cat confdefs.h >>conftest.$ac_ext
32068cat >>conftest.$ac_ext <<_ACEOF
32069/* end confdefs.h. */
32070$ac_includes_default
32071int
32072main ()
32073{
32074if ((mode_t *) 0)
32075 return 0;
32076if (sizeof (mode_t))
32077 return 0;
32078 ;
32079 return 0;
32080}
32081_ACEOF
32082rm -f conftest.$ac_objext
32083if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32084 (eval $ac_compile) 2>conftest.er1
a848cd7e 32085 ac_status=$?
ac1cb8d3
VS
32086 grep -v '^ *+' conftest.er1 >conftest.err
32087 rm -f conftest.er1
32088 cat conftest.err >&5
a848cd7e
SC
32089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32090 (exit $ac_status); } &&
f10e38c4 32091 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32093 (eval $ac_try) 2>&5
32094 ac_status=$?
32095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32096 (exit $ac_status); }; } &&
32097 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32099 (eval $ac_try) 2>&5
32100 ac_status=$?
32101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32102 (exit $ac_status); }; }; then
32103 ac_cv_type_mode_t=yes
32104else
32105 echo "$as_me: failed program was:" >&5
32106sed 's/^/| /' conftest.$ac_ext >&5
32107
32108ac_cv_type_mode_t=no
32109fi
ac1cb8d3 32110rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32111fi
32112echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
32113echo "${ECHO_T}$ac_cv_type_mode_t" >&6
32114if test $ac_cv_type_mode_t = yes; then
32115 :
32116else
32117
32118cat >>confdefs.h <<_ACEOF
32119#define mode_t int
32120_ACEOF
32121
32122fi
32123
32124echo "$as_me:$LINENO: checking for off_t" >&5
32125echo $ECHO_N "checking for off_t... $ECHO_C" >&6
32126if test "${ac_cv_type_off_t+set}" = set; then
32127 echo $ECHO_N "(cached) $ECHO_C" >&6
32128else
32129 cat >conftest.$ac_ext <<_ACEOF
32130/* confdefs.h. */
32131_ACEOF
32132cat confdefs.h >>conftest.$ac_ext
32133cat >>conftest.$ac_ext <<_ACEOF
32134/* end confdefs.h. */
32135$ac_includes_default
32136int
32137main ()
32138{
32139if ((off_t *) 0)
32140 return 0;
32141if (sizeof (off_t))
32142 return 0;
32143 ;
32144 return 0;
32145}
32146_ACEOF
32147rm -f conftest.$ac_objext
32148if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32149 (eval $ac_compile) 2>conftest.er1
a848cd7e 32150 ac_status=$?
ac1cb8d3
VS
32151 grep -v '^ *+' conftest.er1 >conftest.err
32152 rm -f conftest.er1
32153 cat conftest.err >&5
a848cd7e
SC
32154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32155 (exit $ac_status); } &&
f10e38c4 32156 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32158 (eval $ac_try) 2>&5
32159 ac_status=$?
32160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32161 (exit $ac_status); }; } &&
32162 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32164 (eval $ac_try) 2>&5
32165 ac_status=$?
32166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32167 (exit $ac_status); }; }; then
32168 ac_cv_type_off_t=yes
32169else
32170 echo "$as_me: failed program was:" >&5
32171sed 's/^/| /' conftest.$ac_ext >&5
32172
32173ac_cv_type_off_t=no
32174fi
ac1cb8d3 32175rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32176fi
32177echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
32178echo "${ECHO_T}$ac_cv_type_off_t" >&6
32179if test $ac_cv_type_off_t = yes; then
32180 :
32181else
32182
32183cat >>confdefs.h <<_ACEOF
32184#define off_t long
32185_ACEOF
32186
32187fi
32188
32189echo "$as_me:$LINENO: checking for pid_t" >&5
32190echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
32191if test "${ac_cv_type_pid_t+set}" = set; then
32192 echo $ECHO_N "(cached) $ECHO_C" >&6
32193else
32194 cat >conftest.$ac_ext <<_ACEOF
32195/* confdefs.h. */
32196_ACEOF
32197cat confdefs.h >>conftest.$ac_ext
32198cat >>conftest.$ac_ext <<_ACEOF
32199/* end confdefs.h. */
32200$ac_includes_default
32201int
32202main ()
32203{
32204if ((pid_t *) 0)
32205 return 0;
32206if (sizeof (pid_t))
32207 return 0;
32208 ;
32209 return 0;
32210}
32211_ACEOF
32212rm -f conftest.$ac_objext
32213if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32214 (eval $ac_compile) 2>conftest.er1
a848cd7e 32215 ac_status=$?
ac1cb8d3
VS
32216 grep -v '^ *+' conftest.er1 >conftest.err
32217 rm -f conftest.er1
32218 cat conftest.err >&5
a848cd7e
SC
32219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32220 (exit $ac_status); } &&
f10e38c4 32221 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32223 (eval $ac_try) 2>&5
32224 ac_status=$?
32225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32226 (exit $ac_status); }; } &&
32227 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32229 (eval $ac_try) 2>&5
32230 ac_status=$?
32231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32232 (exit $ac_status); }; }; then
32233 ac_cv_type_pid_t=yes
32234else
32235 echo "$as_me: failed program was:" >&5
32236sed 's/^/| /' conftest.$ac_ext >&5
32237
32238ac_cv_type_pid_t=no
32239fi
ac1cb8d3 32240rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32241fi
32242echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
32243echo "${ECHO_T}$ac_cv_type_pid_t" >&6
32244if test $ac_cv_type_pid_t = yes; then
32245 :
32246else
32247
32248cat >>confdefs.h <<_ACEOF
32249#define pid_t int
32250_ACEOF
32251
32252fi
32253
32254echo "$as_me:$LINENO: checking for size_t" >&5
32255echo $ECHO_N "checking for size_t... $ECHO_C" >&6
32256if test "${ac_cv_type_size_t+set}" = set; then
32257 echo $ECHO_N "(cached) $ECHO_C" >&6
32258else
32259 cat >conftest.$ac_ext <<_ACEOF
32260/* confdefs.h. */
32261_ACEOF
32262cat confdefs.h >>conftest.$ac_ext
32263cat >>conftest.$ac_ext <<_ACEOF
32264/* end confdefs.h. */
32265$ac_includes_default
32266int
32267main ()
32268{
32269if ((size_t *) 0)
32270 return 0;
32271if (sizeof (size_t))
32272 return 0;
32273 ;
32274 return 0;
32275}
32276_ACEOF
32277rm -f conftest.$ac_objext
32278if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32279 (eval $ac_compile) 2>conftest.er1
a848cd7e 32280 ac_status=$?
ac1cb8d3
VS
32281 grep -v '^ *+' conftest.er1 >conftest.err
32282 rm -f conftest.er1
32283 cat conftest.err >&5
a848cd7e
SC
32284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32285 (exit $ac_status); } &&
f10e38c4 32286 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32288 (eval $ac_try) 2>&5
32289 ac_status=$?
32290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32291 (exit $ac_status); }; } &&
32292 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32294 (eval $ac_try) 2>&5
32295 ac_status=$?
32296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32297 (exit $ac_status); }; }; then
32298 ac_cv_type_size_t=yes
32299else
32300 echo "$as_me: failed program was:" >&5
32301sed 's/^/| /' conftest.$ac_ext >&5
32302
32303ac_cv_type_size_t=no
32304fi
ac1cb8d3 32305rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32306fi
32307echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
32308echo "${ECHO_T}$ac_cv_type_size_t" >&6
32309if test $ac_cv_type_size_t = yes; then
32310 :
32311else
32312
32313cat >>confdefs.h <<_ACEOF
32314#define size_t unsigned
32315_ACEOF
32316
32317fi
32318
32319echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
32320echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
32321if test "${ac_cv_type_uid_t+set}" = set; then
32322 echo $ECHO_N "(cached) $ECHO_C" >&6
32323else
32324 cat >conftest.$ac_ext <<_ACEOF
32325/* confdefs.h. */
32326_ACEOF
32327cat confdefs.h >>conftest.$ac_ext
32328cat >>conftest.$ac_ext <<_ACEOF
32329/* end confdefs.h. */
32330#include <sys/types.h>
32331
32332_ACEOF
32333if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32334 $EGREP "uid_t" >/dev/null 2>&1; then
32335 ac_cv_type_uid_t=yes
32336else
32337 ac_cv_type_uid_t=no
32338fi
32339rm -f conftest*
32340
32341fi
32342echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
32343echo "${ECHO_T}$ac_cv_type_uid_t" >&6
32344if test $ac_cv_type_uid_t = no; then
32345
32346cat >>confdefs.h <<\_ACEOF
32347#define uid_t int
32348_ACEOF
32349
32350
32351cat >>confdefs.h <<\_ACEOF
32352#define gid_t int
32353_ACEOF
32354
32355fi
32356
32357
d51253e8
RL
32358echo "$as_me:$LINENO: checking for ssize_t" >&5
32359echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
32360if test "${ac_cv_type_ssize_t+set}" = set; then
32361 echo $ECHO_N "(cached) $ECHO_C" >&6
32362else
32363 cat >conftest.$ac_ext <<_ACEOF
32364/* confdefs.h. */
32365_ACEOF
32366cat confdefs.h >>conftest.$ac_ext
32367cat >>conftest.$ac_ext <<_ACEOF
32368/* end confdefs.h. */
32369$ac_includes_default
32370int
32371main ()
32372{
32373if ((ssize_t *) 0)
32374 return 0;
32375if (sizeof (ssize_t))
32376 return 0;
32377 ;
32378 return 0;
32379}
32380_ACEOF
32381rm -f conftest.$ac_objext
32382if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32383 (eval $ac_compile) 2>conftest.er1
32384 ac_status=$?
32385 grep -v '^ *+' conftest.er1 >conftest.err
32386 rm -f conftest.er1
32387 cat conftest.err >&5
32388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32389 (exit $ac_status); } &&
f10e38c4 32390 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d51253e8
RL
32391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32392 (eval $ac_try) 2>&5
32393 ac_status=$?
32394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32395 (exit $ac_status); }; } &&
32396 { ac_try='test -s conftest.$ac_objext'
32397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32398 (eval $ac_try) 2>&5
32399 ac_status=$?
32400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32401 (exit $ac_status); }; }; then
32402 ac_cv_type_ssize_t=yes
32403else
32404 echo "$as_me: failed program was:" >&5
32405sed 's/^/| /' conftest.$ac_ext >&5
32406
32407ac_cv_type_ssize_t=no
32408fi
32409rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32410fi
32411echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
32412echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
32413if test $ac_cv_type_ssize_t = yes; then
32414
32415cat >>confdefs.h <<_ACEOF
32416#define HAVE_SSIZE_T 1
32417_ACEOF
32418
32419
32420fi
32421
32422
a848cd7e
SC
32423ac_ext=cc
32424ac_cpp='$CXXCPP $CPPFLAGS'
32425ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32426ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32427ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32428
32429echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
32430echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
32431if test "${wx_cv_size_t_is_uint+set}" = set; then
32432 echo $ECHO_N "(cached) $ECHO_C" >&6
32433else
32434
32435 cat >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#include <stddef.h>
32442int
32443main ()
32444{
32445
32446 return 0; }
32447
32448 struct Foo { void foo(size_t); void foo(unsigned int); };
32449
32450 int bar() {
32451
32452 ;
32453 return 0;
32454}
32455_ACEOF
32456rm -f conftest.$ac_objext
32457if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32458 (eval $ac_compile) 2>conftest.er1
a848cd7e 32459 ac_status=$?
ac1cb8d3
VS
32460 grep -v '^ *+' conftest.er1 >conftest.err
32461 rm -f conftest.er1
32462 cat conftest.err >&5
a848cd7e
SC
32463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32464 (exit $ac_status); } &&
f10e38c4 32465 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32467 (eval $ac_try) 2>&5
32468 ac_status=$?
32469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32470 (exit $ac_status); }; } &&
32471 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32473 (eval $ac_try) 2>&5
32474 ac_status=$?
32475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32476 (exit $ac_status); }; }; then
32477 wx_cv_size_t_is_uint=no
32478else
32479 echo "$as_me: failed program was:" >&5
32480sed 's/^/| /' conftest.$ac_ext >&5
32481
32482wx_cv_size_t_is_uint=yes
32483
32484fi
ac1cb8d3 32485rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32486
32487
32488fi
32489echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
32490echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
32491
32492if test "$wx_cv_size_t_is_uint" = "yes"; then
32493 cat >>confdefs.h <<\_ACEOF
32494#define wxSIZE_T_IS_UINT 1
32495_ACEOF
32496
32497else
32498 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
32499echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
32500if test "${wx_cv_size_t_is_ulong+set}" = set; then
32501 echo $ECHO_N "(cached) $ECHO_C" >&6
32502else
32503 cat >conftest.$ac_ext <<_ACEOF
32504/* confdefs.h. */
32505_ACEOF
32506cat confdefs.h >>conftest.$ac_ext
32507cat >>conftest.$ac_ext <<_ACEOF
32508/* end confdefs.h. */
32509#include <stddef.h>
32510int
32511main ()
32512{
32513
32514 return 0; }
32515
32516 struct Foo { void foo(size_t); void foo(unsigned long); };
32517
32518 int bar() {
32519
32520 ;
32521 return 0;
32522}
32523_ACEOF
32524rm -f conftest.$ac_objext
32525if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32526 (eval $ac_compile) 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); } &&
f10e38c4 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_objext'
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 wx_cv_size_t_is_ulong=no
32546else
32547 echo "$as_me: failed program was:" >&5
32548sed 's/^/| /' conftest.$ac_ext >&5
32549
32550wx_cv_size_t_is_ulong=yes
32551
32552fi
ac1cb8d3 32553rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32554
32555fi
32556echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
32557echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
32558
32559 if test "$wx_cv_size_t_is_ulong" = "yes"; then
32560 cat >>confdefs.h <<\_ACEOF
32561#define wxSIZE_T_IS_ULONG 1
32562_ACEOF
32563
32564 fi
32565fi
32566
32567ac_ext=c
32568ac_cpp='$CPP $CPPFLAGS'
32569ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32570ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32571ac_compiler_gnu=$ac_cv_c_compiler_gnu
32572
32573
32574
32575echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
32576echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
32577if test "${wx_cv_struct_pw_gecos+set}" = set; then
32578 echo $ECHO_N "(cached) $ECHO_C" >&6
32579else
32580
32581 cat >conftest.$ac_ext <<_ACEOF
32582/* confdefs.h. */
32583_ACEOF
32584cat confdefs.h >>conftest.$ac_ext
32585cat >>conftest.$ac_ext <<_ACEOF
32586/* end confdefs.h. */
32587#include <pwd.h>
32588int
32589main ()
32590{
32591
32592 char *p;
32593 struct passwd *pw;
32594 p = pw->pw_gecos;
32595
32596 ;
32597 return 0;
32598}
32599_ACEOF
32600rm -f conftest.$ac_objext
32601if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32602 (eval $ac_compile) 2>conftest.er1
a848cd7e 32603 ac_status=$?
ac1cb8d3
VS
32604 grep -v '^ *+' conftest.er1 >conftest.err
32605 rm -f conftest.er1
32606 cat conftest.err >&5
a848cd7e
SC
32607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32608 (exit $ac_status); } &&
f10e38c4 32609 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32611 (eval $ac_try) 2>&5
32612 ac_status=$?
32613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32614 (exit $ac_status); }; } &&
32615 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32617 (eval $ac_try) 2>&5
32618 ac_status=$?
32619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32620 (exit $ac_status); }; }; then
32621
32622 wx_cv_struct_pw_gecos=yes
32623
32624else
32625 echo "$as_me: failed program was:" >&5
32626sed 's/^/| /' conftest.$ac_ext >&5
32627
32628
32629 wx_cv_struct_pw_gecos=no
32630
32631
32632fi
ac1cb8d3 32633rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32634
32635
32636fi
32637echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
32638echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
32639
32640if test "$wx_cv_struct_pw_gecos" = "yes"; then
32641 cat >>confdefs.h <<\_ACEOF
32642#define HAVE_PW_GECOS 1
32643_ACEOF
32644
32645fi
32646
32647
47a7e797 32648if test "$wxUSE_WCHAR_T" = "yes"; then
a848cd7e
SC
32649 cat >>confdefs.h <<\_ACEOF
32650#define wxUSE_WCHAR_T 1
32651_ACEOF
32652
32653
32654 WCSLEN_FOUND=0
32655 WCHAR_LINK=
32656
32657for ac_func in wcslen
32658do
32659as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32660echo "$as_me:$LINENO: checking for $ac_func" >&5
32661echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32662if eval "test \"\${$as_ac_var+set}\" = set"; then
32663 echo $ECHO_N "(cached) $ECHO_C" >&6
32664else
32665 cat >conftest.$ac_ext <<_ACEOF
32666/* confdefs.h. */
32667_ACEOF
32668cat confdefs.h >>conftest.$ac_ext
32669cat >>conftest.$ac_ext <<_ACEOF
32670/* end confdefs.h. */
ac1cb8d3
VS
32671/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32672 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32673#define $ac_func innocuous_$ac_func
32674
a848cd7e
SC
32675/* System header to define __stub macros and hopefully few prototypes,
32676 which can conflict with char $ac_func (); below.
32677 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32678 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32679
a848cd7e
SC
32680#ifdef __STDC__
32681# include <limits.h>
32682#else
32683# include <assert.h>
32684#endif
ac1cb8d3
VS
32685
32686#undef $ac_func
32687
a848cd7e
SC
32688/* Override any gcc2 internal prototype to avoid an error. */
32689#ifdef __cplusplus
32690extern "C"
32691{
32692#endif
32693/* We use char because int might match the return type of a gcc2
32694 builtin and then its argument prototype would still apply. */
32695char $ac_func ();
32696/* The GNU C library defines this for functions which it implements
32697 to always fail with ENOSYS. Some functions are actually named
32698 something starting with __ and the normal name is an alias. */
32699#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32700choke me
32701#else
32702char (*f) () = $ac_func;
32703#endif
32704#ifdef __cplusplus
32705}
32706#endif
32707
32708int
32709main ()
32710{
32711return f != $ac_func;
32712 ;
32713 return 0;
32714}
32715_ACEOF
32716rm -f conftest.$ac_objext conftest$ac_exeext
32717if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32718 (eval $ac_link) 2>conftest.er1
a848cd7e 32719 ac_status=$?
ac1cb8d3
VS
32720 grep -v '^ *+' conftest.er1 >conftest.err
32721 rm -f conftest.er1
32722 cat conftest.err >&5
a848cd7e
SC
32723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32724 (exit $ac_status); } &&
f10e38c4 32725 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32727 (eval $ac_try) 2>&5
32728 ac_status=$?
32729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32730 (exit $ac_status); }; } &&
32731 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32733 (eval $ac_try) 2>&5
32734 ac_status=$?
32735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32736 (exit $ac_status); }; }; then
32737 eval "$as_ac_var=yes"
32738else
32739 echo "$as_me: failed program was:" >&5
32740sed 's/^/| /' conftest.$ac_ext >&5
32741
32742eval "$as_ac_var=no"
32743fi
ac1cb8d3
VS
32744rm -f conftest.err conftest.$ac_objext \
32745 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32746fi
32747echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32748echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32749if test `eval echo '${'$as_ac_var'}'` = yes; then
32750 cat >>confdefs.h <<_ACEOF
32751#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32752_ACEOF
32753 WCSLEN_FOUND=1
32754fi
32755done
32756
32757
32758 if test "$WCSLEN_FOUND" = 0; then
32759 if test "$TOOLKIT" = "MSW"; then
32760 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
32761echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
32762if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
32763 echo $ECHO_N "(cached) $ECHO_C" >&6
32764else
32765 ac_check_lib_save_LIBS=$LIBS
32766LIBS="-lmsvcrt $LIBS"
32767cat >conftest.$ac_ext <<_ACEOF
32768/* confdefs.h. */
32769_ACEOF
32770cat confdefs.h >>conftest.$ac_ext
32771cat >>conftest.$ac_ext <<_ACEOF
32772/* end confdefs.h. */
32773
32774/* Override any gcc2 internal prototype to avoid an error. */
32775#ifdef __cplusplus
32776extern "C"
32777#endif
32778/* We use char because int might match the return type of a gcc2
32779 builtin and then its argument prototype would still apply. */
32780char wcslen ();
32781int
32782main ()
32783{
32784wcslen ();
32785 ;
32786 return 0;
32787}
32788_ACEOF
32789rm -f conftest.$ac_objext conftest$ac_exeext
32790if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32791 (eval $ac_link) 2>conftest.er1
a848cd7e 32792 ac_status=$?
ac1cb8d3
VS
32793 grep -v '^ *+' conftest.er1 >conftest.err
32794 rm -f conftest.er1
32795 cat conftest.err >&5
a848cd7e
SC
32796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32797 (exit $ac_status); } &&
f10e38c4 32798 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32800 (eval $ac_try) 2>&5
32801 ac_status=$?
32802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32803 (exit $ac_status); }; } &&
32804 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32806 (eval $ac_try) 2>&5
32807 ac_status=$?
32808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32809 (exit $ac_status); }; }; then
32810 ac_cv_lib_msvcrt_wcslen=yes
32811else
32812 echo "$as_me: failed program was:" >&5
32813sed 's/^/| /' conftest.$ac_ext >&5
32814
32815ac_cv_lib_msvcrt_wcslen=no
32816fi
ac1cb8d3
VS
32817rm -f conftest.err conftest.$ac_objext \
32818 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32819LIBS=$ac_check_lib_save_LIBS
32820fi
32821echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
32822echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
32823if test $ac_cv_lib_msvcrt_wcslen = yes; then
32824 WCHAR_OK=1
32825fi
32826
32827 else
32828 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
32829echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
32830if test "${ac_cv_lib_w_wcslen+set}" = set; then
32831 echo $ECHO_N "(cached) $ECHO_C" >&6
32832else
32833 ac_check_lib_save_LIBS=$LIBS
32834LIBS="-lw $LIBS"
32835cat >conftest.$ac_ext <<_ACEOF
32836/* confdefs.h. */
32837_ACEOF
32838cat confdefs.h >>conftest.$ac_ext
32839cat >>conftest.$ac_ext <<_ACEOF
32840/* end confdefs.h. */
32841
32842/* Override any gcc2 internal prototype to avoid an error. */
32843#ifdef __cplusplus
32844extern "C"
32845#endif
32846/* We use char because int might match the return type of a gcc2
32847 builtin and then its argument prototype would still apply. */
32848char wcslen ();
32849int
32850main ()
32851{
32852wcslen ();
32853 ;
32854 return 0;
32855}
32856_ACEOF
32857rm -f conftest.$ac_objext conftest$ac_exeext
32858if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32859 (eval $ac_link) 2>conftest.er1
a848cd7e 32860 ac_status=$?
ac1cb8d3
VS
32861 grep -v '^ *+' conftest.er1 >conftest.err
32862 rm -f conftest.er1
32863 cat conftest.err >&5
a848cd7e
SC
32864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32865 (exit $ac_status); } &&
f10e38c4 32866 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32868 (eval $ac_try) 2>&5
32869 ac_status=$?
32870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32871 (exit $ac_status); }; } &&
32872 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32874 (eval $ac_try) 2>&5
32875 ac_status=$?
32876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32877 (exit $ac_status); }; }; then
32878 ac_cv_lib_w_wcslen=yes
32879else
32880 echo "$as_me: failed program was:" >&5
32881sed 's/^/| /' conftest.$ac_ext >&5
32882
32883ac_cv_lib_w_wcslen=no
32884fi
ac1cb8d3
VS
32885rm -f conftest.err conftest.$ac_objext \
32886 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32887LIBS=$ac_check_lib_save_LIBS
32888fi
32889echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
32890echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
32891if test $ac_cv_lib_w_wcslen = yes; then
32892
32893 WCHAR_LINK=" -lw"
32894 WCSLEN_FOUND=1
32895
32896fi
32897
32898 fi
32899 fi
32900
32901 if test "$WCSLEN_FOUND" = 1; then
32902 cat >>confdefs.h <<\_ACEOF
32903#define HAVE_WCSLEN 1
32904_ACEOF
32905
32906 fi
32907
efdf6afe 32908 if test "$USE_HPUX" = 1 -a "$GCC" != "yes"; then
c92ad099 32909 CPPFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CPPFLAGS"
473276a9
VS
32910 fi
32911
efdf6afe
VZ
32912 echo "$as_me:$LINENO: checking for mbstate_t" >&5
32913echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
32914if test "${ac_cv_type_mbstate_t+set}" = set; then
32915 echo $ECHO_N "(cached) $ECHO_C" >&6
32916else
32917 cat >conftest.$ac_ext <<_ACEOF
32918/* confdefs.h. */
32919_ACEOF
32920cat confdefs.h >>conftest.$ac_ext
32921cat >>conftest.$ac_ext <<_ACEOF
32922/* end confdefs.h. */
32923#include <wchar.h>
32924
32925int
32926main ()
32927{
32928if ((mbstate_t *) 0)
32929 return 0;
32930if (sizeof (mbstate_t))
32931 return 0;
32932 ;
32933 return 0;
32934}
32935_ACEOF
32936rm -f conftest.$ac_objext
32937if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32938 (eval $ac_compile) 2>conftest.er1
32939 ac_status=$?
32940 grep -v '^ *+' conftest.er1 >conftest.err
32941 rm -f conftest.er1
32942 cat conftest.err >&5
32943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32944 (exit $ac_status); } &&
f10e38c4 32945 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
efdf6afe
VZ
32946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32947 (eval $ac_try) 2>&5
32948 ac_status=$?
32949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32950 (exit $ac_status); }; } &&
32951 { ac_try='test -s conftest.$ac_objext'
32952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32953 (eval $ac_try) 2>&5
32954 ac_status=$?
32955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32956 (exit $ac_status); }; }; then
32957 ac_cv_type_mbstate_t=yes
32958else
32959 echo "$as_me: failed program was:" >&5
32960sed 's/^/| /' conftest.$ac_ext >&5
32961
32962ac_cv_type_mbstate_t=no
32963fi
32964rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32965fi
32966echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
32967echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
32968if test $ac_cv_type_mbstate_t = yes; then
32969
32970cat >>confdefs.h <<_ACEOF
32971#define HAVE_MBSTATE_T 1
32972_ACEOF
32973
a848cd7e
SC
32974
32975for ac_func in wcsrtombs
32976do
32977as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32978echo "$as_me:$LINENO: checking for $ac_func" >&5
32979echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32980if eval "test \"\${$as_ac_var+set}\" = set"; then
32981 echo $ECHO_N "(cached) $ECHO_C" >&6
32982else
32983 cat >conftest.$ac_ext <<_ACEOF
32984/* confdefs.h. */
32985_ACEOF
32986cat confdefs.h >>conftest.$ac_ext
32987cat >>conftest.$ac_ext <<_ACEOF
32988/* end confdefs.h. */
ac1cb8d3
VS
32989/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32990 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32991#define $ac_func innocuous_$ac_func
32992
a848cd7e
SC
32993/* System header to define __stub macros and hopefully few prototypes,
32994 which can conflict with char $ac_func (); below.
32995 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32996 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32997
a848cd7e
SC
32998#ifdef __STDC__
32999# include <limits.h>
33000#else
33001# include <assert.h>
33002#endif
ac1cb8d3
VS
33003
33004#undef $ac_func
33005
a848cd7e
SC
33006/* Override any gcc2 internal prototype to avoid an error. */
33007#ifdef __cplusplus
33008extern "C"
33009{
33010#endif
33011/* We use char because int might match the return type of a gcc2
33012 builtin and then its argument prototype would still apply. */
33013char $ac_func ();
33014/* The GNU C library defines this for functions which it implements
33015 to always fail with ENOSYS. Some functions are actually named
33016 something starting with __ and the normal name is an alias. */
33017#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33018choke me
33019#else
33020char (*f) () = $ac_func;
33021#endif
33022#ifdef __cplusplus
33023}
33024#endif
33025
33026int
33027main ()
33028{
33029return f != $ac_func;
33030 ;
33031 return 0;
33032}
33033_ACEOF
33034rm -f conftest.$ac_objext conftest$ac_exeext
33035if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33036 (eval $ac_link) 2>conftest.er1
a848cd7e 33037 ac_status=$?
ac1cb8d3
VS
33038 grep -v '^ *+' conftest.er1 >conftest.err
33039 rm -f conftest.er1
33040 cat conftest.err >&5
a848cd7e
SC
33041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33042 (exit $ac_status); } &&
f10e38c4 33043 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33045 (eval $ac_try) 2>&5
33046 ac_status=$?
33047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33048 (exit $ac_status); }; } &&
33049 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33051 (eval $ac_try) 2>&5
33052 ac_status=$?
33053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33054 (exit $ac_status); }; }; then
33055 eval "$as_ac_var=yes"
33056else
33057 echo "$as_me: failed program was:" >&5
33058sed 's/^/| /' conftest.$ac_ext >&5
33059
33060eval "$as_ac_var=no"
33061fi
ac1cb8d3
VS
33062rm -f conftest.err conftest.$ac_objext \
33063 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33064fi
33065echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33066echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33067if test `eval echo '${'$as_ac_var'}'` = yes; then
33068 cat >>confdefs.h <<_ACEOF
33069#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33070_ACEOF
33071
33072fi
33073done
33074
efdf6afe
VZ
33075fi
33076
a848cd7e
SC
33077else
33078 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
33079echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
33080fi
33081
a848cd7e
SC
33082ac_ext=cc
33083ac_cpp='$CXXCPP $CPPFLAGS'
33084ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33085ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33086ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33087
33088
33089
4a767dd5
VZ
33090
33091for ac_func in snprintf vsnprintf
a848cd7e
SC
33092do
33093as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33094echo "$as_me:$LINENO: checking for $ac_func" >&5
33095echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33096if eval "test \"\${$as_ac_var+set}\" = set"; then
33097 echo $ECHO_N "(cached) $ECHO_C" >&6
33098else
33099 cat >conftest.$ac_ext <<_ACEOF
33100/* confdefs.h. */
33101_ACEOF
33102cat confdefs.h >>conftest.$ac_ext
33103cat >>conftest.$ac_ext <<_ACEOF
33104/* end confdefs.h. */
ac1cb8d3
VS
33105/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33106 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33107#define $ac_func innocuous_$ac_func
33108
a848cd7e
SC
33109/* System header to define __stub macros and hopefully few prototypes,
33110 which can conflict with char $ac_func (); below.
33111 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33112 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33113
a848cd7e
SC
33114#ifdef __STDC__
33115# include <limits.h>
33116#else
33117# include <assert.h>
33118#endif
ac1cb8d3
VS
33119
33120#undef $ac_func
33121
a848cd7e
SC
33122/* Override any gcc2 internal prototype to avoid an error. */
33123#ifdef __cplusplus
33124extern "C"
33125{
33126#endif
33127/* We use char because int might match the return type of a gcc2
33128 builtin and then its argument prototype would still apply. */
33129char $ac_func ();
33130/* The GNU C library defines this for functions which it implements
33131 to always fail with ENOSYS. Some functions are actually named
33132 something starting with __ and the normal name is an alias. */
33133#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33134choke me
33135#else
33136char (*f) () = $ac_func;
33137#endif
33138#ifdef __cplusplus
33139}
33140#endif
33141
33142int
33143main ()
33144{
33145return f != $ac_func;
33146 ;
33147 return 0;
33148}
33149_ACEOF
33150rm -f conftest.$ac_objext conftest$ac_exeext
33151if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33152 (eval $ac_link) 2>conftest.er1
a848cd7e 33153 ac_status=$?
ac1cb8d3
VS
33154 grep -v '^ *+' conftest.er1 >conftest.err
33155 rm -f conftest.er1
33156 cat conftest.err >&5
a848cd7e
SC
33157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33158 (exit $ac_status); } &&
f10e38c4 33159 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33161 (eval $ac_try) 2>&5
33162 ac_status=$?
33163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33164 (exit $ac_status); }; } &&
33165 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33167 (eval $ac_try) 2>&5
33168 ac_status=$?
33169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33170 (exit $ac_status); }; }; then
33171 eval "$as_ac_var=yes"
33172else
33173 echo "$as_me: failed program was:" >&5
33174sed 's/^/| /' conftest.$ac_ext >&5
33175
33176eval "$as_ac_var=no"
33177fi
ac1cb8d3
VS
33178rm -f conftest.err conftest.$ac_objext \
33179 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33180fi
33181echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33182echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33183if test `eval echo '${'$as_ac_var'}'` = yes; then
33184 cat >>confdefs.h <<_ACEOF
33185#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33186_ACEOF
33187
33188fi
33189done
33190
33191
33192if test "$ac_cv_func_vsnprintf" = "yes"; then
33193 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
33194echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
33195if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
33196 echo $ECHO_N "(cached) $ECHO_C" >&6
33197else
33198
efdf6afe 33199 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
33200/* confdefs.h. */
33201_ACEOF
33202cat confdefs.h >>conftest.$ac_ext
33203cat >>conftest.$ac_ext <<_ACEOF
33204/* end confdefs.h. */
33205
33206 #include <stdio.h>
33207 #include <stdarg.h>
efdf6afe
VZ
33208 #ifdef __MSL__
33209 #if __MSL__ >= 0x6000
33210 namespace std {}
33211 using namespace std;
33212 #endif
33213 #endif
a848cd7e
SC
33214
33215int
33216main ()
33217{
33218
33219 char *buf;
33220 va_list ap;
62fa8b3a 33221 vsnprintf(buf, 10u, "%s", ap);
c122b164
DE
33222
33223 ;
33224 return 0;
33225}
33226_ACEOF
33227rm -f conftest.$ac_objext
33228if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33229 (eval $ac_compile) 2>conftest.er1
33230 ac_status=$?
33231 grep -v '^ *+' conftest.er1 >conftest.err
33232 rm -f conftest.er1
33233 cat conftest.err >&5
33234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33235 (exit $ac_status); } &&
f10e38c4 33236 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
c122b164
DE
33237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33238 (eval $ac_try) 2>&5
33239 ac_status=$?
33240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33241 (exit $ac_status); }; } &&
33242 { ac_try='test -s conftest.$ac_objext'
33243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33244 (eval $ac_try) 2>&5
33245 ac_status=$?
33246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33247 (exit $ac_status); }; }; then
33248 wx_cv_func_vsnprintf_decl=yes
33249else
33250 echo "$as_me: failed program was:" >&5
33251sed 's/^/| /' conftest.$ac_ext >&5
33252
a848cd7e
SC
33253wx_cv_func_vsnprintf_decl=no
33254
33255fi
ac1cb8d3 33256rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33257
33258
33259fi
33260echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
33261echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
33262
33263 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
33264 cat >>confdefs.h <<\_ACEOF
33265#define HAVE_VSNPRINTF_DECL 1
33266_ACEOF
33267
62fa8b3a
MW
33268
33269 echo "$as_me:$LINENO: checking if vsnprintf declaration is broken" >&5
33270echo $ECHO_N "checking if vsnprintf declaration is broken... $ECHO_C" >&6
33271if test "${wx_cv_func_broken_vsnprintf_decl+set}" = set; then
33272 echo $ECHO_N "(cached) $ECHO_C" >&6
33273else
33274
33275 cat >conftest.$ac_ext <<_ACEOF
33276/* confdefs.h. */
33277_ACEOF
33278cat confdefs.h >>conftest.$ac_ext
33279cat >>conftest.$ac_ext <<_ACEOF
33280/* end confdefs.h. */
33281
33282 #include <stdio.h>
33283 #include <stdarg.h>
33284 #ifdef __MSL__
33285 #if __MSL__ >= 0x6000
33286 namespace std {}
33287 using namespace std;
33288 #endif
33289 #endif
33290
33291int
33292main ()
33293{
33294
33295 char *buf;
33296 va_list ap;
33297 const char *fmt = "%s";
33298 vsnprintf(buf, 10u, fmt, ap);
33299
33300 ;
33301 return 0;
33302}
33303_ACEOF
33304rm -f conftest.$ac_objext
33305if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33306 (eval $ac_compile) 2>conftest.er1
33307 ac_status=$?
33308 grep -v '^ *+' conftest.er1 >conftest.err
33309 rm -f conftest.er1
33310 cat conftest.err >&5
33311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33312 (exit $ac_status); } &&
f10e38c4 33313 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
62fa8b3a
MW
33314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33315 (eval $ac_try) 2>&5
33316 ac_status=$?
33317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33318 (exit $ac_status); }; } &&
33319 { ac_try='test -s conftest.$ac_objext'
33320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33321 (eval $ac_try) 2>&5
33322 ac_status=$?
33323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33324 (exit $ac_status); }; }; then
33325 wx_cv_func_broken_vsnprintf_decl=no
33326else
33327 echo "$as_me: failed program was:" >&5
33328sed 's/^/| /' conftest.$ac_ext >&5
33329
33330wx_cv_func_broken_vsnprintf_decl=yes
33331
33332fi
33333rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33334
33335
33336fi
33337echo "$as_me:$LINENO: result: $wx_cv_func_broken_vsnprintf_decl" >&5
33338echo "${ECHO_T}$wx_cv_func_broken_vsnprintf_decl" >&6
33339
33340 if test "$wx_cv_func_broken_vsnprintf_decl" = "yes"; then
33341 cat >>confdefs.h <<\_ACEOF
33342#define HAVE_BROKEN_VSNPRINTF_DECL 1
33343_ACEOF
33344
33345 fi
a848cd7e
SC
33346 fi
33347fi
33348
4a767dd5
VZ
33349if test "$ac_cv_func_snprintf" = "yes"; then
33350 echo "$as_me:$LINENO: checking for snprintf declaration" >&5
33351echo $ECHO_N "checking for snprintf declaration... $ECHO_C" >&6
33352if test "${wx_cv_func_snprintf_decl+set}" = set; then
33353 echo $ECHO_N "(cached) $ECHO_C" >&6
33354else
33355
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
33363 #include <stdio.h>
33364 #include <stdarg.h>
33365 #ifdef __MSL__
33366 #if __MSL__ >= 0x6000
33367 namespace std {}
33368 using namespace std;
33369 #endif
33370 #endif
33371
33372int
33373main ()
33374{
33375
33376 char *buf;
62fa8b3a 33377 snprintf(buf, 10u, "%s", "wx");
4a767dd5
VZ
33378
33379 ;
33380 return 0;
33381}
33382_ACEOF
33383rm -f conftest.$ac_objext
33384if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33385 (eval $ac_compile) 2>conftest.er1
33386 ac_status=$?
33387 grep -v '^ *+' conftest.er1 >conftest.err
33388 rm -f conftest.er1
33389 cat conftest.err >&5
33390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33391 (exit $ac_status); } &&
f10e38c4 33392 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4a767dd5
VZ
33393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33394 (eval $ac_try) 2>&5
33395 ac_status=$?
33396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33397 (exit $ac_status); }; } &&
33398 { ac_try='test -s conftest.$ac_objext'
33399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33400 (eval $ac_try) 2>&5
33401 ac_status=$?
33402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33403 (exit $ac_status); }; }; then
33404 wx_cv_func_snprintf_decl=yes
33405else
33406 echo "$as_me: failed program was:" >&5
33407sed 's/^/| /' conftest.$ac_ext >&5
33408
33409wx_cv_func_snprintf_decl=no
33410
33411fi
33412rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33413
33414
33415fi
33416echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_decl" >&5
33417echo "${ECHO_T}$wx_cv_func_snprintf_decl" >&6
33418
33419 if test "$wx_cv_func_snprintf_decl" = "yes"; then
33420 cat >>confdefs.h <<\_ACEOF
33421#define HAVE_SNPRINTF_DECL 1
33422_ACEOF
33423
62fa8b3a
MW
33424
33425 echo "$as_me:$LINENO: checking if snprintf declaration is broken" >&5
33426echo $ECHO_N "checking if snprintf declaration is broken... $ECHO_C" >&6
33427if test "${wx_cv_func_broken_snprintf_decl+set}" = set; then
33428 echo $ECHO_N "(cached) $ECHO_C" >&6
33429else
33430
33431 cat >conftest.$ac_ext <<_ACEOF
33432/* confdefs.h. */
33433_ACEOF
33434cat confdefs.h >>conftest.$ac_ext
33435cat >>conftest.$ac_ext <<_ACEOF
33436/* end confdefs.h. */
33437
33438 #include <stdio.h>
33439 #include <stdarg.h>
33440 #ifdef __MSL__
33441 #if __MSL__ >= 0x6000
33442 namespace std {}
33443 using namespace std;
33444 #endif
33445 #endif
33446
33447int
33448main ()
33449{
33450
33451 char *buf;
33452 const char *fmt = "%s";
33453 snprintf(buf, 10u, fmt, "wx");
33454
33455 ;
33456 return 0;
33457}
33458_ACEOF
33459rm -f conftest.$ac_objext
33460if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33461 (eval $ac_compile) 2>conftest.er1
33462 ac_status=$?
33463 grep -v '^ *+' conftest.er1 >conftest.err
33464 rm -f conftest.er1
33465 cat conftest.err >&5
33466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33467 (exit $ac_status); } &&
f10e38c4 33468 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
62fa8b3a
MW
33469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33470 (eval $ac_try) 2>&5
33471 ac_status=$?
33472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33473 (exit $ac_status); }; } &&
33474 { ac_try='test -s conftest.$ac_objext'
33475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33476 (eval $ac_try) 2>&5
33477 ac_status=$?
33478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33479 (exit $ac_status); }; }; then
33480 wx_cv_func_broken_snprintf_decl=no
33481else
33482 echo "$as_me: failed program was:" >&5
33483sed 's/^/| /' conftest.$ac_ext >&5
33484
33485wx_cv_func_broken_snprintf_decl=yes
33486
33487fi
33488rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33489
33490
33491fi
33492echo "$as_me:$LINENO: result: $wx_cv_func_broken_snprintf_decl" >&5
33493echo "${ECHO_T}$wx_cv_func_broken_snprintf_decl" >&6
33494
33495 if test "$wx_cv_func_broken_snprintf_decl" = "yes"; then
33496 cat >>confdefs.h <<\_ACEOF
33497#define HAVE_BROKEN_SNPRINTF_DECL 1
33498_ACEOF
33499
33500 fi
4a767dd5
VZ
33501 fi
33502fi
33503
a848cd7e
SC
33504if test "$wxUSE_UNICODE" = yes; then
33505
33506
33507
fbe47c7b
VS
33508
33509
33510
33511for ac_func in wputc wputchar putws fputws wprintf vswprintf
a848cd7e
SC
33512do
33513as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33514echo "$as_me:$LINENO: checking for $ac_func" >&5
33515echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33516if eval "test \"\${$as_ac_var+set}\" = set"; then
33517 echo $ECHO_N "(cached) $ECHO_C" >&6
33518else
33519 cat >conftest.$ac_ext <<_ACEOF
33520/* confdefs.h. */
33521_ACEOF
33522cat confdefs.h >>conftest.$ac_ext
33523cat >>conftest.$ac_ext <<_ACEOF
33524/* end confdefs.h. */
ac1cb8d3
VS
33525/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33526 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33527#define $ac_func innocuous_$ac_func
33528
a848cd7e
SC
33529/* System header to define __stub macros and hopefully few prototypes,
33530 which can conflict with char $ac_func (); below.
33531 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33532 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33533
a848cd7e
SC
33534#ifdef __STDC__
33535# include <limits.h>
33536#else
33537# include <assert.h>
33538#endif
ac1cb8d3
VS
33539
33540#undef $ac_func
33541
a848cd7e
SC
33542/* Override any gcc2 internal prototype to avoid an error. */
33543#ifdef __cplusplus
33544extern "C"
33545{
33546#endif
33547/* We use char because int might match the return type of a gcc2
33548 builtin and then its argument prototype would still apply. */
33549char $ac_func ();
33550/* The GNU C library defines this for functions which it implements
33551 to always fail with ENOSYS. Some functions are actually named
33552 something starting with __ and the normal name is an alias. */
33553#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33554choke me
33555#else
33556char (*f) () = $ac_func;
33557#endif
33558#ifdef __cplusplus
33559}
33560#endif
33561
33562int
33563main ()
33564{
33565return f != $ac_func;
33566 ;
33567 return 0;
33568}
33569_ACEOF
33570rm -f conftest.$ac_objext conftest$ac_exeext
33571if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33572 (eval $ac_link) 2>conftest.er1
a848cd7e 33573 ac_status=$?
ac1cb8d3
VS
33574 grep -v '^ *+' conftest.er1 >conftest.err
33575 rm -f conftest.er1
33576 cat conftest.err >&5
a848cd7e
SC
33577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33578 (exit $ac_status); } &&
f10e38c4 33579 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33581 (eval $ac_try) 2>&5
33582 ac_status=$?
33583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33584 (exit $ac_status); }; } &&
33585 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33587 (eval $ac_try) 2>&5
33588 ac_status=$?
33589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33590 (exit $ac_status); }; }; then
33591 eval "$as_ac_var=yes"
33592else
33593 echo "$as_me: failed program was:" >&5
33594sed 's/^/| /' conftest.$ac_ext >&5
33595
33596eval "$as_ac_var=no"
33597fi
ac1cb8d3
VS
33598rm -f conftest.err conftest.$ac_objext \
33599 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33600fi
33601echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33602echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33603if test `eval echo '${'$as_ac_var'}'` = yes; then
33604 cat >>confdefs.h <<_ACEOF
33605#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33606_ACEOF
33607
33608fi
33609done
33610
33611
33612 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
33613echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
33614 cat >conftest.$ac_ext <<_ACEOF
33615/* confdefs.h. */
33616_ACEOF
33617cat confdefs.h >>conftest.$ac_ext
33618cat >>conftest.$ac_ext <<_ACEOF
33619/* end confdefs.h. */
33620#include <wchar.h>
33621int
33622main ()
33623{
33624&_vsnwprintf;
33625 ;
33626 return 0;
33627}
33628_ACEOF
33629rm -f conftest.$ac_objext
33630if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33631 (eval $ac_compile) 2>conftest.er1
a848cd7e 33632 ac_status=$?
ac1cb8d3
VS
33633 grep -v '^ *+' conftest.er1 >conftest.err
33634 rm -f conftest.er1
33635 cat conftest.err >&5
a848cd7e
SC
33636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33637 (exit $ac_status); } &&
f10e38c4 33638 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33640 (eval $ac_try) 2>&5
33641 ac_status=$?
33642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33643 (exit $ac_status); }; } &&
33644 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33646 (eval $ac_try) 2>&5
33647 ac_status=$?
33648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33649 (exit $ac_status); }; }; then
33650 echo "$as_me:$LINENO: result: yes" >&5
33651echo "${ECHO_T}yes" >&6
33652 cat >>confdefs.h <<\_ACEOF
33653#define HAVE__VSNWPRINTF 1
33654_ACEOF
33655
33656else
33657 echo "$as_me: failed program was:" >&5
33658sed 's/^/| /' conftest.$ac_ext >&5
33659
33660echo "$as_me:$LINENO: result: no" >&5
33661echo "${ECHO_T}no" >&6
33662fi
ac1cb8d3 33663rm -f conftest.err conftest.$ac_objext conftest.$ac_ext;
a848cd7e
SC
33664fi
33665
33666ac_ext=c
33667ac_cpp='$CPP $CPPFLAGS'
33668ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33669ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33670ac_compiler_gnu=$ac_cv_c_compiler_gnu
33671
33672
6ebeb4c7
VZ
33673if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
33674
33675for ac_func in fnmatch
33676do
33677as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33678echo "$as_me:$LINENO: checking for $ac_func" >&5
33679echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33680if eval "test \"\${$as_ac_var+set}\" = set"; then
33681 echo $ECHO_N "(cached) $ECHO_C" >&6
33682else
33683 cat >conftest.$ac_ext <<_ACEOF
33684/* confdefs.h. */
33685_ACEOF
33686cat confdefs.h >>conftest.$ac_ext
33687cat >>conftest.$ac_ext <<_ACEOF
33688/* end confdefs.h. */
33689/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33690 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33691#define $ac_func innocuous_$ac_func
33692
33693/* System header to define __stub macros and hopefully few prototypes,
33694 which can conflict with char $ac_func (); below.
33695 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33696 <limits.h> exists even on freestanding compilers. */
33697
33698#ifdef __STDC__
33699# include <limits.h>
33700#else
33701# include <assert.h>
33702#endif
33703
33704#undef $ac_func
33705
33706/* Override any gcc2 internal prototype to avoid an error. */
33707#ifdef __cplusplus
33708extern "C"
33709{
33710#endif
33711/* We use char because int might match the return type of a gcc2
33712 builtin and then its argument prototype would still apply. */
33713char $ac_func ();
33714/* The GNU C library defines this for functions which it implements
33715 to always fail with ENOSYS. Some functions are actually named
33716 something starting with __ and the normal name is an alias. */
33717#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33718choke me
33719#else
33720char (*f) () = $ac_func;
33721#endif
33722#ifdef __cplusplus
33723}
33724#endif
33725
33726int
33727main ()
33728{
33729return f != $ac_func;
33730 ;
33731 return 0;
33732}
33733_ACEOF
33734rm -f conftest.$ac_objext conftest$ac_exeext
33735if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33736 (eval $ac_link) 2>conftest.er1
33737 ac_status=$?
33738 grep -v '^ *+' conftest.er1 >conftest.err
33739 rm -f conftest.er1
33740 cat conftest.err >&5
33741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33742 (exit $ac_status); } &&
f10e38c4 33743 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6ebeb4c7
VZ
33744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33745 (eval $ac_try) 2>&5
33746 ac_status=$?
33747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33748 (exit $ac_status); }; } &&
33749 { ac_try='test -s conftest$ac_exeext'
33750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33751 (eval $ac_try) 2>&5
33752 ac_status=$?
33753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33754 (exit $ac_status); }; }; then
33755 eval "$as_ac_var=yes"
33756else
33757 echo "$as_me: failed program was:" >&5
33758sed 's/^/| /' conftest.$ac_ext >&5
33759
33760eval "$as_ac_var=no"
33761fi
33762rm -f conftest.err conftest.$ac_objext \
33763 conftest$ac_exeext conftest.$ac_ext
33764fi
33765echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33766echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33767if test `eval echo '${'$as_ac_var'}'` = yes; then
33768 cat >>confdefs.h <<_ACEOF
33769#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33770_ACEOF
33771
33772fi
33773done
33774
33775fi
33776
33777if test "$wxUSE_FILE" = "yes"; then
33778
33779for ac_func in fsync
33780do
33781as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33782echo "$as_me:$LINENO: checking for $ac_func" >&5
33783echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33784if eval "test \"\${$as_ac_var+set}\" = set"; then
33785 echo $ECHO_N "(cached) $ECHO_C" >&6
33786else
33787 cat >conftest.$ac_ext <<_ACEOF
33788/* confdefs.h. */
33789_ACEOF
33790cat confdefs.h >>conftest.$ac_ext
33791cat >>conftest.$ac_ext <<_ACEOF
33792/* end confdefs.h. */
33793/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33794 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33795#define $ac_func innocuous_$ac_func
33796
33797/* System header to define __stub macros and hopefully few prototypes,
33798 which can conflict with char $ac_func (); below.
33799 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33800 <limits.h> exists even on freestanding compilers. */
33801
33802#ifdef __STDC__
33803# include <limits.h>
33804#else
33805# include <assert.h>
33806#endif
33807
33808#undef $ac_func
33809
33810/* Override any gcc2 internal prototype to avoid an error. */
33811#ifdef __cplusplus
33812extern "C"
33813{
33814#endif
33815/* We use char because int might match the return type of a gcc2
33816 builtin and then its argument prototype would still apply. */
33817char $ac_func ();
33818/* The GNU C library defines this for functions which it implements
33819 to always fail with ENOSYS. Some functions are actually named
33820 something starting with __ and the normal name is an alias. */
33821#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33822choke me
33823#else
33824char (*f) () = $ac_func;
33825#endif
33826#ifdef __cplusplus
33827}
33828#endif
33829
33830int
33831main ()
33832{
33833return f != $ac_func;
33834 ;
33835 return 0;
33836}
33837_ACEOF
33838rm -f conftest.$ac_objext conftest$ac_exeext
33839if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33840 (eval $ac_link) 2>conftest.er1
33841 ac_status=$?
33842 grep -v '^ *+' conftest.er1 >conftest.err
33843 rm -f conftest.er1
33844 cat conftest.err >&5
33845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33846 (exit $ac_status); } &&
f10e38c4 33847 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6ebeb4c7
VZ
33848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33849 (eval $ac_try) 2>&5
33850 ac_status=$?
33851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33852 (exit $ac_status); }; } &&
33853 { ac_try='test -s conftest$ac_exeext'
33854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33855 (eval $ac_try) 2>&5
33856 ac_status=$?
33857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33858 (exit $ac_status); }; }; then
33859 eval "$as_ac_var=yes"
33860else
33861 echo "$as_me: failed program was:" >&5
33862sed 's/^/| /' conftest.$ac_ext >&5
33863
33864eval "$as_ac_var=no"
33865fi
33866rm -f conftest.err conftest.$ac_objext \
33867 conftest$ac_exeext conftest.$ac_ext
33868fi
33869echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33870echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33871if test `eval echo '${'$as_ac_var'}'` = yes; then
33872 cat >>confdefs.h <<_ACEOF
33873#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33874_ACEOF
33875
33876fi
33877done
33878
33879fi
a848cd7e
SC
33880
33881
33882if test "$TOOLKIT" != "MSW"; then
33883
33884
a848cd7e
SC
33885ac_ext=cc
33886ac_cpp='$CXXCPP $CPPFLAGS'
33887ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33888ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33889ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33890
33891
33892
33893
33894# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
33895if test "${with_libiconv_prefix+set}" = set; then
33896 withval="$with_libiconv_prefix"
33897
33898 for dir in `echo "$withval" | tr : ' '`; do
33899 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
33900 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
33901 done
33902
33903fi;
33904
33905 echo "$as_me:$LINENO: checking for iconv" >&5
33906echo $ECHO_N "checking for iconv... $ECHO_C" >&6
33907if test "${am_cv_func_iconv+set}" = set; then
33908 echo $ECHO_N "(cached) $ECHO_C" >&6
33909else
33910
33911 am_cv_func_iconv="no, consider installing GNU libiconv"
33912 am_cv_lib_iconv=no
33913 cat >conftest.$ac_ext <<_ACEOF
33914/* confdefs.h. */
33915_ACEOF
33916cat confdefs.h >>conftest.$ac_ext
33917cat >>conftest.$ac_ext <<_ACEOF
33918/* end confdefs.h. */
33919#include <stdlib.h>
33920#include <iconv.h>
33921int
33922main ()
33923{
33924iconv_t cd = iconv_open("","");
33925 iconv(cd,NULL,NULL,NULL,NULL);
33926 iconv_close(cd);
33927 ;
33928 return 0;
33929}
33930_ACEOF
33931rm -f conftest.$ac_objext conftest$ac_exeext
33932if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33933 (eval $ac_link) 2>conftest.er1
a848cd7e 33934 ac_status=$?
ac1cb8d3
VS
33935 grep -v '^ *+' conftest.er1 >conftest.err
33936 rm -f conftest.er1
33937 cat conftest.err >&5
a848cd7e
SC
33938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33939 (exit $ac_status); } &&
f10e38c4 33940 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33942 (eval $ac_try) 2>&5
33943 ac_status=$?
33944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33945 (exit $ac_status); }; } &&
33946 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
33952 am_cv_func_iconv=yes
33953else
33954 echo "$as_me: failed program was:" >&5
33955sed 's/^/| /' conftest.$ac_ext >&5
33956
33957fi
ac1cb8d3
VS
33958rm -f conftest.err conftest.$ac_objext \
33959 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33960 if test "$am_cv_func_iconv" != yes; then
33961 am_save_LIBS="$LIBS"
33962 LIBS="$LIBS -liconv"
33963 cat >conftest.$ac_ext <<_ACEOF
33964/* confdefs.h. */
33965_ACEOF
33966cat confdefs.h >>conftest.$ac_ext
33967cat >>conftest.$ac_ext <<_ACEOF
33968/* end confdefs.h. */
33969#include <stdlib.h>
33970#include <iconv.h>
33971int
33972main ()
33973{
33974iconv_t cd = iconv_open("","");
33975 iconv(cd,NULL,NULL,NULL,NULL);
33976 iconv_close(cd);
33977 ;
33978 return 0;
33979}
33980_ACEOF
33981rm -f conftest.$ac_objext conftest$ac_exeext
33982if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33983 (eval $ac_link) 2>conftest.er1
a848cd7e 33984 ac_status=$?
ac1cb8d3
VS
33985 grep -v '^ *+' conftest.er1 >conftest.err
33986 rm -f conftest.er1
33987 cat conftest.err >&5
a848cd7e
SC
33988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33989 (exit $ac_status); } &&
f10e38c4 33990 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33992 (eval $ac_try) 2>&5
33993 ac_status=$?
33994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33995 (exit $ac_status); }; } &&
33996 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33998 (eval $ac_try) 2>&5
33999 ac_status=$?
34000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34001 (exit $ac_status); }; }; then
34002 am_cv_lib_iconv=yes
34003 am_cv_func_iconv=yes
34004else
34005 echo "$as_me: failed program was:" >&5
34006sed 's/^/| /' conftest.$ac_ext >&5
34007
34008fi
ac1cb8d3
VS
34009rm -f conftest.err conftest.$ac_objext \
34010 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34011 LIBS="$am_save_LIBS"
34012 fi
34013
34014fi
34015echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
34016echo "${ECHO_T}$am_cv_func_iconv" >&6
34017 if test "$am_cv_func_iconv" = yes; then
34018
34019cat >>confdefs.h <<\_ACEOF
34020#define HAVE_ICONV 1
34021_ACEOF
34022
34023 echo "$as_me:$LINENO: checking if iconv needs const" >&5
34024echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
34025if test "${wx_cv_func_iconv_const+set}" = set; then
34026 echo $ECHO_N "(cached) $ECHO_C" >&6
34027else
34028 cat >conftest.$ac_ext <<_ACEOF
34029/* confdefs.h. */
34030_ACEOF
34031cat confdefs.h >>conftest.$ac_ext
34032cat >>conftest.$ac_ext <<_ACEOF
34033/* end confdefs.h. */
34034
34035#include <stdlib.h>
34036#include <iconv.h>
34037extern
34038#ifdef __cplusplus
34039"C"
34040#endif
34041#if defined(__STDC__) || defined(__cplusplus)
34042size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
34043#else
34044size_t iconv();
34045#endif
34046
34047int
34048main ()
34049{
34050
34051 ;
34052 return 0;
34053}
34054_ACEOF
34055rm -f conftest.$ac_objext
34056if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34057 (eval $ac_compile) 2>conftest.er1
a848cd7e 34058 ac_status=$?
ac1cb8d3
VS
34059 grep -v '^ *+' conftest.er1 >conftest.err
34060 rm -f conftest.er1
34061 cat conftest.err >&5
a848cd7e
SC
34062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34063 (exit $ac_status); } &&
f10e38c4 34064 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34066 (eval $ac_try) 2>&5
34067 ac_status=$?
34068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34069 (exit $ac_status); }; } &&
34070 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34072 (eval $ac_try) 2>&5
34073 ac_status=$?
34074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34075 (exit $ac_status); }; }; then
34076 wx_cv_func_iconv_const="no"
34077else
34078 echo "$as_me: failed program was:" >&5
34079sed 's/^/| /' conftest.$ac_ext >&5
34080
34081wx_cv_func_iconv_const="yes"
34082
34083fi
ac1cb8d3 34084rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34085
34086fi
34087echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
34088echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
34089
34090 iconv_const=
34091 if test "x$wx_cv_func_iconv_const" = "xyes"; then
34092 iconv_const="const"
34093 fi
34094
34095
34096cat >>confdefs.h <<_ACEOF
34097#define ICONV_CONST $iconv_const
34098_ACEOF
34099
34100 fi
34101 LIBICONV=
34102 if test "$am_cv_lib_iconv" = yes; then
34103 LIBICONV="-liconv"
34104 fi
34105
34106
34107LIBS="$LIBICONV $LIBS"
34108ac_ext=c
34109ac_cpp='$CPP $CPPFLAGS'
34110ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34111ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34112ac_compiler_gnu=$ac_cv_c_compiler_gnu
34113
34114
34115if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
34116
34117for ac_func in sigaction
34118do
34119as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34120echo "$as_me:$LINENO: checking for $ac_func" >&5
34121echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34122if eval "test \"\${$as_ac_var+set}\" = set"; then
34123 echo $ECHO_N "(cached) $ECHO_C" >&6
34124else
34125 cat >conftest.$ac_ext <<_ACEOF
34126/* confdefs.h. */
34127_ACEOF
34128cat confdefs.h >>conftest.$ac_ext
34129cat >>conftest.$ac_ext <<_ACEOF
34130/* end confdefs.h. */
ac1cb8d3
VS
34131/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34132 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34133#define $ac_func innocuous_$ac_func
34134
a848cd7e
SC
34135/* System header to define __stub macros and hopefully few prototypes,
34136 which can conflict with char $ac_func (); below.
34137 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34138 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34139
a848cd7e
SC
34140#ifdef __STDC__
34141# include <limits.h>
34142#else
34143# include <assert.h>
34144#endif
ac1cb8d3
VS
34145
34146#undef $ac_func
34147
a848cd7e
SC
34148/* Override any gcc2 internal prototype to avoid an error. */
34149#ifdef __cplusplus
34150extern "C"
34151{
34152#endif
34153/* We use char because int might match the return type of a gcc2
34154 builtin and then its argument prototype would still apply. */
34155char $ac_func ();
34156/* The GNU C library defines this for functions which it implements
34157 to always fail with ENOSYS. Some functions are actually named
34158 something starting with __ and the normal name is an alias. */
34159#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34160choke me
34161#else
34162char (*f) () = $ac_func;
34163#endif
34164#ifdef __cplusplus
34165}
34166#endif
34167
34168int
34169main ()
34170{
34171return f != $ac_func;
34172 ;
34173 return 0;
34174}
34175_ACEOF
34176rm -f conftest.$ac_objext conftest$ac_exeext
34177if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34178 (eval $ac_link) 2>conftest.er1
a848cd7e 34179 ac_status=$?
ac1cb8d3
VS
34180 grep -v '^ *+' conftest.er1 >conftest.err
34181 rm -f conftest.er1
34182 cat conftest.err >&5
a848cd7e
SC
34183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34184 (exit $ac_status); } &&
f10e38c4 34185 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34187 (eval $ac_try) 2>&5
34188 ac_status=$?
34189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34190 (exit $ac_status); }; } &&
34191 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34193 (eval $ac_try) 2>&5
34194 ac_status=$?
34195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34196 (exit $ac_status); }; }; then
34197 eval "$as_ac_var=yes"
34198else
34199 echo "$as_me: failed program was:" >&5
34200sed 's/^/| /' conftest.$ac_ext >&5
34201
34202eval "$as_ac_var=no"
34203fi
ac1cb8d3
VS
34204rm -f conftest.err conftest.$ac_objext \
34205 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34206fi
34207echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34208echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34209if test `eval echo '${'$as_ac_var'}'` = yes; then
34210 cat >>confdefs.h <<_ACEOF
34211#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34212_ACEOF
34213
34214fi
34215done
34216
34217
34218 if test "$ac_cv_func_sigaction" = "no"; then
34219 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
34220echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
34221 wxUSE_ON_FATAL_EXCEPTION=no
34222 fi
34223
34224 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
a848cd7e
SC
34225 ac_ext=cc
34226ac_cpp='$CXXCPP $CPPFLAGS'
34227ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34228ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34229ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34230
34231
34232 echo "$as_me:$LINENO: checking for sa_handler type" >&5
34233echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
34234if test "${wx_cv_type_sa_handler+set}" = set; then
34235 echo $ECHO_N "(cached) $ECHO_C" >&6
34236else
34237
34238 cat >conftest.$ac_ext <<_ACEOF
34239/* confdefs.h. */
34240_ACEOF
34241cat confdefs.h >>conftest.$ac_ext
34242cat >>conftest.$ac_ext <<_ACEOF
34243/* end confdefs.h. */
34244#include <signal.h>
34245int
34246main ()
34247{
34248
34249 extern void testSigHandler(int);
34250
34251 struct sigaction sa;
34252 sa.sa_handler = testSigHandler;
34253
34254 ;
34255 return 0;
34256}
34257_ACEOF
34258rm -f conftest.$ac_objext
34259if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34260 (eval $ac_compile) 2>conftest.er1
a848cd7e 34261 ac_status=$?
ac1cb8d3
VS
34262 grep -v '^ *+' conftest.er1 >conftest.err
34263 rm -f conftest.er1
34264 cat conftest.err >&5
a848cd7e
SC
34265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34266 (exit $ac_status); } &&
f10e38c4 34267 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34269 (eval $ac_try) 2>&5
34270 ac_status=$?
34271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34272 (exit $ac_status); }; } &&
34273 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34275 (eval $ac_try) 2>&5
34276 ac_status=$?
34277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34278 (exit $ac_status); }; }; then
34279
34280 wx_cv_type_sa_handler=int
34281
34282else
34283 echo "$as_me: failed program was:" >&5
34284sed 's/^/| /' conftest.$ac_ext >&5
34285
34286
34287 wx_cv_type_sa_handler=void
34288
34289fi
ac1cb8d3 34290rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34291
34292fi
34293echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
34294echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
34295
34296 ac_ext=c
34297ac_cpp='$CPP $CPPFLAGS'
34298ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34299ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34300ac_compiler_gnu=$ac_cv_c_compiler_gnu
34301
34302
34303 cat >>confdefs.h <<_ACEOF
34304#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
34305_ACEOF
34306
34307 fi
34308fi
34309
eaff0f0d 34310if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then
eaff0f0d
VZ
34311 ac_ext=cc
34312ac_cpp='$CXXCPP $CPPFLAGS'
34313ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34314ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34315ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34316
34317
34318 echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5
34319echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6
34320if test "${wx_cv_func_backtrace+set}" = set; then
34321 echo $ECHO_N "(cached) $ECHO_C" >&6
34322else
34323
34324 cat >conftest.$ac_ext <<_ACEOF
34325/* confdefs.h. */
34326_ACEOF
34327cat confdefs.h >>conftest.$ac_ext
34328cat >>conftest.$ac_ext <<_ACEOF
34329/* end confdefs.h. */
34330#include <execinfo.h>
34331int
34332main ()
34333{
34334
34335 void *trace[1];
34336 char **messages;
34337
34338 backtrace(trace, 1);
34339 messages = backtrace_symbols(trace, 1);
34340
34341 ;
34342 return 0;
34343}
34344_ACEOF
34345rm -f conftest.$ac_objext
34346if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34347 (eval $ac_compile) 2>conftest.er1
34348 ac_status=$?
34349 grep -v '^ *+' conftest.er1 >conftest.err
34350 rm -f conftest.er1
34351 cat conftest.err >&5
34352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34353 (exit $ac_status); } &&
f10e38c4 34354 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
eaff0f0d
VZ
34355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34356 (eval $ac_try) 2>&5
34357 ac_status=$?
34358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34359 (exit $ac_status); }; } &&
34360 { ac_try='test -s conftest.$ac_objext'
34361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34362 (eval $ac_try) 2>&5
34363 ac_status=$?
34364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34365 (exit $ac_status); }; }; then
34366 wx_cv_func_backtrace=yes
34367else
34368 echo "$as_me: failed program was:" >&5
34369sed 's/^/| /' conftest.$ac_ext >&5
34370
34371wx_cv_func_backtrace=no
34372
34373fi
34374rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34375
34376
34377fi
34378echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5
34379echo "${ECHO_T}$wx_cv_func_backtrace" >&6
34380
34381
34382 if test "$wx_cv_func_backtrace" = "no"; then
34383 { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5
34384echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;}
34385 wxUSE_STACKWALKER=no
34386 else
34387 echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5
34388echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6
34389if test "${wx_cv_func_cxa_demangle+set}" = set; then
34390 echo $ECHO_N "(cached) $ECHO_C" >&6
34391else
34392
34393 cat >conftest.$ac_ext <<_ACEOF
34394/* confdefs.h. */
34395_ACEOF
34396cat confdefs.h >>conftest.$ac_ext
34397cat >>conftest.$ac_ext <<_ACEOF
34398/* end confdefs.h. */
34399#include <cxxabi.h>
34400int
34401main ()
34402{
34403
34404 int rc;
34405 __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc);
34406
34407 ;
34408 return 0;
34409}
34410_ACEOF
dfe0c803
JS
34411rm -f conftest.$ac_objext conftest$ac_exeext
34412if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34413 (eval $ac_link) 2>conftest.er1
eaff0f0d
VZ
34414 ac_status=$?
34415 grep -v '^ *+' conftest.er1 >conftest.err
34416 rm -f conftest.er1
34417 cat conftest.err >&5
34418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34419 (exit $ac_status); } &&
f10e38c4 34420 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
eaff0f0d
VZ
34421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34422 (eval $ac_try) 2>&5
34423 ac_status=$?
34424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34425 (exit $ac_status); }; } &&
dfe0c803 34426 { ac_try='test -s conftest$ac_exeext'
eaff0f0d
VZ
34427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34428 (eval $ac_try) 2>&5
34429 ac_status=$?
34430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34431 (exit $ac_status); }; }; then
34432 wx_cv_func_cxa_demangle=yes
34433else
34434 echo "$as_me: failed program was:" >&5
34435sed 's/^/| /' conftest.$ac_ext >&5
34436
34437wx_cv_func_cxa_demangle=no
34438
34439fi
dfe0c803
JS
34440rm -f conftest.err conftest.$ac_objext \
34441 conftest$ac_exeext conftest.$ac_ext
eaff0f0d
VZ
34442
34443
34444fi
34445echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5
34446echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6
34447
34448 if test "$wx_cv_func_cxa_demangle" = "yes"; then
34449 cat >>confdefs.h <<\_ACEOF
34450#define HAVE_CXA_DEMANGLE 1
34451_ACEOF
34452
34453 fi
34454 fi
34455
34456 ac_ext=c
34457ac_cpp='$CPP $CPPFLAGS'
34458ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34459ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34460ac_compiler_gnu=$ac_cv_c_compiler_gnu
34461
34462fi
34463
898beab1
DE
34464if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != "1" -a "$USE_UNIX" != "1"; then
34465 { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5
34466echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;}
34467 wxUSE_STACKWALKER=no
34468fi
34469
34470
a848cd7e
SC
34471
34472
34473for ac_func in mkstemp mktemp
34474do
34475as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34476echo "$as_me:$LINENO: checking for $ac_func" >&5
34477echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34478if eval "test \"\${$as_ac_var+set}\" = set"; then
34479 echo $ECHO_N "(cached) $ECHO_C" >&6
34480else
34481 cat >conftest.$ac_ext <<_ACEOF
34482/* confdefs.h. */
34483_ACEOF
34484cat confdefs.h >>conftest.$ac_ext
34485cat >>conftest.$ac_ext <<_ACEOF
34486/* end confdefs.h. */
ac1cb8d3
VS
34487/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34488 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34489#define $ac_func innocuous_$ac_func
34490
a848cd7e
SC
34491/* System header to define __stub macros and hopefully few prototypes,
34492 which can conflict with char $ac_func (); below.
34493 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34494 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34495
a848cd7e
SC
34496#ifdef __STDC__
34497# include <limits.h>
34498#else
34499# include <assert.h>
34500#endif
ac1cb8d3
VS
34501
34502#undef $ac_func
34503
a848cd7e
SC
34504/* Override any gcc2 internal prototype to avoid an error. */
34505#ifdef __cplusplus
34506extern "C"
34507{
34508#endif
34509/* We use char because int might match the return type of a gcc2
34510 builtin and then its argument prototype would still apply. */
34511char $ac_func ();
34512/* The GNU C library defines this for functions which it implements
34513 to always fail with ENOSYS. Some functions are actually named
34514 something starting with __ and the normal name is an alias. */
34515#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34516choke me
34517#else
34518char (*f) () = $ac_func;
34519#endif
34520#ifdef __cplusplus
34521}
34522#endif
34523
34524int
34525main ()
34526{
34527return f != $ac_func;
34528 ;
34529 return 0;
34530}
34531_ACEOF
34532rm -f conftest.$ac_objext conftest$ac_exeext
34533if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34534 (eval $ac_link) 2>conftest.er1
a848cd7e 34535 ac_status=$?
ac1cb8d3
VS
34536 grep -v '^ *+' conftest.er1 >conftest.err
34537 rm -f conftest.er1
34538 cat conftest.err >&5
a848cd7e
SC
34539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34540 (exit $ac_status); } &&
f10e38c4 34541 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34543 (eval $ac_try) 2>&5
34544 ac_status=$?
34545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34546 (exit $ac_status); }; } &&
34547 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34549 (eval $ac_try) 2>&5
34550 ac_status=$?
34551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34552 (exit $ac_status); }; }; then
34553 eval "$as_ac_var=yes"
34554else
34555 echo "$as_me: failed program was:" >&5
34556sed 's/^/| /' conftest.$ac_ext >&5
34557
34558eval "$as_ac_var=no"
34559fi
ac1cb8d3
VS
34560rm -f conftest.err conftest.$ac_objext \
34561 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34562fi
34563echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34564echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34565if test `eval echo '${'$as_ac_var'}'` = yes; then
34566 cat >>confdefs.h <<_ACEOF
34567#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34568_ACEOF
34569 break
34570fi
34571done
34572
34573
34574echo "$as_me:$LINENO: checking for statfs" >&5
34575echo $ECHO_N "checking for statfs... $ECHO_C" >&6
34576if test "${wx_cv_func_statfs+set}" = set; then
34577 echo $ECHO_N "(cached) $ECHO_C" >&6
34578else
34579 cat >conftest.$ac_ext <<_ACEOF
34580/* confdefs.h. */
34581_ACEOF
34582cat confdefs.h >>conftest.$ac_ext
34583cat >>conftest.$ac_ext <<_ACEOF
34584/* end confdefs.h. */
34585
34586 #if defined(__BSD__)
84ae7ca4
VZ
34587 #include <sys/param.h>
34588 #include <sys/mount.h>
a848cd7e 34589 #else
84ae7ca4 34590 #include <sys/vfs.h>
a848cd7e
SC
34591 #endif
34592
34593int
34594main ()
34595{
34596
34597 long l;
34598 struct statfs fs;
34599 statfs("/", &fs);
34600 l = fs.f_bsize;
34601 l += fs.f_blocks;
34602 l += fs.f_bavail;
34603
34604 ;
34605 return 0;
34606}
34607_ACEOF
34608rm -f conftest.$ac_objext
34609if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34610 (eval $ac_compile) 2>conftest.er1
a848cd7e 34611 ac_status=$?
ac1cb8d3
VS
34612 grep -v '^ *+' conftest.er1 >conftest.err
34613 rm -f conftest.er1
34614 cat conftest.err >&5
a848cd7e
SC
34615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34616 (exit $ac_status); } &&
f10e38c4 34617 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34619 (eval $ac_try) 2>&5
34620 ac_status=$?
34621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34622 (exit $ac_status); }; } &&
34623 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34625 (eval $ac_try) 2>&5
34626 ac_status=$?
34627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34628 (exit $ac_status); }; }; then
84ae7ca4 34629 wx_cv_func_statfs=yes
a848cd7e
SC
34630else
34631 echo "$as_me: failed program was:" >&5
34632sed 's/^/| /' conftest.$ac_ext >&5
34633
84ae7ca4 34634wx_cv_func_statfs=no
a848cd7e
SC
34635
34636fi
ac1cb8d3 34637rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34638
34639fi
34640echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
34641echo "${ECHO_T}$wx_cv_func_statfs" >&6
34642
34643if test "$wx_cv_func_statfs" = "yes"; then
5ec3bc43 34644 ac_ext=cc
84ae7ca4
VZ
34645ac_cpp='$CXXCPP $CPPFLAGS'
34646ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34647ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34648ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34649
34650 echo "$as_me:$LINENO: checking for statfs declaration" >&5
34651echo $ECHO_N "checking for statfs declaration... $ECHO_C" >&6
34652if test "${wx_cv_func_statfs_decl+set}" = set; then
34653 echo $ECHO_N "(cached) $ECHO_C" >&6
34654else
0683aca6
VZ
34655 cat >conftest.$ac_ext <<_ACEOF
34656/* confdefs.h. */
34657_ACEOF
34658cat confdefs.h >>conftest.$ac_ext
34659cat >>conftest.$ac_ext <<_ACEOF
34660/* end confdefs.h. */
84ae7ca4 34661
0683aca6
VZ
34662 #if defined(__BSD__)
34663 #include <sys/param.h>
34664 #include <sys/mount.h>
34665 #else
34666 #include <sys/vfs.h>
34667 #endif
34668
34669int
34670main ()
34671{
34672
34673 struct statfs fs;
34674 statfs("", &fs);
34675
34676 ;
34677 return 0;
34678}
34679_ACEOF
34680rm -f conftest.$ac_objext
34681if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34682 (eval $ac_compile) 2>conftest.er1
34683 ac_status=$?
34684 grep -v '^ *+' conftest.er1 >conftest.err
34685 rm -f conftest.er1
34686 cat conftest.err >&5
34687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34688 (exit $ac_status); } &&
f10e38c4 34689 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0683aca6
VZ
34690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34691 (eval $ac_try) 2>&5
34692 ac_status=$?
34693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34694 (exit $ac_status); }; } &&
34695 { ac_try='test -s conftest.$ac_objext'
34696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34697 (eval $ac_try) 2>&5
34698 ac_status=$?
34699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34700 (exit $ac_status); }; }; then
34701 wx_cv_func_statfs_decl=yes
34702else
34703 echo "$as_me: failed program was:" >&5
34704sed 's/^/| /' conftest.$ac_ext >&5
34705
34706wx_cv_func_statfs_decl=no
34707
34708fi
34709rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
84ae7ca4
VZ
34710
34711fi
34712echo "$as_me:$LINENO: result: $wx_cv_func_statfs_decl" >&5
34713echo "${ECHO_T}$wx_cv_func_statfs_decl" >&6
34714 ac_ext=c
34715ac_cpp='$CPP $CPPFLAGS'
34716ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34717ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34718ac_compiler_gnu=$ac_cv_c_compiler_gnu
34719
34720
34721 if test "$wx_cv_func_statfs_decl" = "yes"; then
34722 cat >>confdefs.h <<\_ACEOF
34723#define HAVE_STATFS_DECL 1
34724_ACEOF
34725
34726 fi
34727
a848cd7e
SC
34728 wx_cv_type_statvfs_t="struct statfs"
34729 cat >>confdefs.h <<\_ACEOF
34730#define HAVE_STATFS 1
34731_ACEOF
34732
34733else
34734 echo "$as_me:$LINENO: checking for statvfs" >&5
34735echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
34736if test "${wx_cv_func_statvfs+set}" = set; then
34737 echo $ECHO_N "(cached) $ECHO_C" >&6
34738else
34739 cat >conftest.$ac_ext <<_ACEOF
34740/* confdefs.h. */
34741_ACEOF
34742cat confdefs.h >>conftest.$ac_ext
34743cat >>conftest.$ac_ext <<_ACEOF
34744/* end confdefs.h. */
34745
34746 #include <stddef.h>
34747 #include <sys/statvfs.h>
34748
34749int
34750main ()
34751{
34752
34753 statvfs("/", NULL);
34754
34755 ;
34756 return 0;
34757}
34758_ACEOF
34759rm -f conftest.$ac_objext
34760if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34761 (eval $ac_compile) 2>conftest.er1
a848cd7e 34762 ac_status=$?
ac1cb8d3
VS
34763 grep -v '^ *+' conftest.er1 >conftest.err
34764 rm -f conftest.er1
34765 cat conftest.err >&5
a848cd7e
SC
34766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34767 (exit $ac_status); } &&
f10e38c4 34768 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34770 (eval $ac_try) 2>&5
34771 ac_status=$?
34772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34773 (exit $ac_status); }; } &&
34774 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34776 (eval $ac_try) 2>&5
34777 ac_status=$?
34778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34779 (exit $ac_status); }; }; then
34780 wx_cv_func_statvfs=yes
34781else
34782 echo "$as_me: failed program was:" >&5
34783sed 's/^/| /' conftest.$ac_ext >&5
34784
34785wx_cv_func_statvfs=no
34786
34787fi
ac1cb8d3 34788rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34789
34790fi
34791echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
34792echo "${ECHO_T}$wx_cv_func_statvfs" >&6
34793
34794 if test "$wx_cv_func_statvfs" = "yes"; then
5ec3bc43 34795 ac_ext=cc
a848cd7e
SC
34796ac_cpp='$CXXCPP $CPPFLAGS'
34797ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34798ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34799ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34800
34801
34802 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
34803echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
34804if test "${wx_cv_type_statvfs_t+set}" = set; then
34805 echo $ECHO_N "(cached) $ECHO_C" >&6
34806else
34807 cat >conftest.$ac_ext <<_ACEOF
34808/* confdefs.h. */
34809_ACEOF
34810cat confdefs.h >>conftest.$ac_ext
34811cat >>conftest.$ac_ext <<_ACEOF
34812/* end confdefs.h. */
34813
34814 #include <sys/statvfs.h>
34815
34816int
34817main ()
34818{
34819
34820 long l;
34821 statvfs_t fs;
34822 statvfs("/", &fs);
34823 l = fs.f_bsize;
34824 l += fs.f_blocks;
34825 l += fs.f_bavail;
34826
34827 ;
34828 return 0;
34829}
34830_ACEOF
34831rm -f conftest.$ac_objext
34832if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34833 (eval $ac_compile) 2>conftest.er1
a848cd7e 34834 ac_status=$?
ac1cb8d3
VS
34835 grep -v '^ *+' conftest.er1 >conftest.err
34836 rm -f conftest.er1
34837 cat conftest.err >&5
a848cd7e
SC
34838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34839 (exit $ac_status); } &&
f10e38c4 34840 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34842 (eval $ac_try) 2>&5
34843 ac_status=$?
34844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34845 (exit $ac_status); }; } &&
34846 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34848 (eval $ac_try) 2>&5
34849 ac_status=$?
34850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34851 (exit $ac_status); }; }; then
34852 wx_cv_type_statvfs_t=statvfs_t
34853else
34854 echo "$as_me: failed program was:" >&5
34855sed 's/^/| /' conftest.$ac_ext >&5
34856
34857
34858 cat >conftest.$ac_ext <<_ACEOF
34859/* confdefs.h. */
34860_ACEOF
34861cat confdefs.h >>conftest.$ac_ext
34862cat >>conftest.$ac_ext <<_ACEOF
34863/* end confdefs.h. */
34864
34865 #include <sys/statvfs.h>
34866
34867int
34868main ()
34869{
34870
34871 long l;
34872 struct statvfs fs;
34873 statvfs("/", &fs);
34874 l = fs.f_bsize;
34875 l += fs.f_blocks;
34876 l += fs.f_bavail;
34877
34878 ;
34879 return 0;
34880}
34881_ACEOF
34882rm -f conftest.$ac_objext
34883if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34884 (eval $ac_compile) 2>conftest.er1
a848cd7e 34885 ac_status=$?
ac1cb8d3
VS
34886 grep -v '^ *+' conftest.er1 >conftest.err
34887 rm -f conftest.er1
34888 cat conftest.err >&5
a848cd7e
SC
34889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34890 (exit $ac_status); } &&
f10e38c4 34891 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34893 (eval $ac_try) 2>&5
34894 ac_status=$?
34895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34896 (exit $ac_status); }; } &&
34897 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34899 (eval $ac_try) 2>&5
34900 ac_status=$?
34901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34902 (exit $ac_status); }; }; then
34903 wx_cv_type_statvfs_t="struct statvfs"
34904else
34905 echo "$as_me: failed program was:" >&5
34906sed 's/^/| /' conftest.$ac_ext >&5
34907
34908wx_cv_type_statvfs_t="unknown"
34909
34910fi
ac1cb8d3 34911rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34912
34913
34914fi
ac1cb8d3 34915rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34916
34917fi
34918echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
34919echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
34920
34921 ac_ext=c
34922ac_cpp='$CPP $CPPFLAGS'
34923ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34924ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34925ac_compiler_gnu=$ac_cv_c_compiler_gnu
34926
34927
34928 if test "$wx_cv_type_statvfs_t" != "unknown"; then
34929 cat >>confdefs.h <<\_ACEOF
34930#define HAVE_STATVFS 1
34931_ACEOF
34932
34933 fi
34934 else
34935 wx_cv_type_statvfs_t="unknown"
34936 fi
34937fi
34938
34939if test "$wx_cv_type_statvfs_t" != "unknown"; then
34940 cat >>confdefs.h <<_ACEOF
34941#define WX_STATFS_T $wx_cv_type_statvfs_t
34942_ACEOF
34943
34944else
34945 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
34946echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
34947fi
34948
34949if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
34950
34951
34952for ac_func in fcntl flock
34953do
34954as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34955echo "$as_me:$LINENO: checking for $ac_func" >&5
34956echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34957if eval "test \"\${$as_ac_var+set}\" = set"; then
34958 echo $ECHO_N "(cached) $ECHO_C" >&6
34959else
34960 cat >conftest.$ac_ext <<_ACEOF
34961/* confdefs.h. */
34962_ACEOF
34963cat confdefs.h >>conftest.$ac_ext
34964cat >>conftest.$ac_ext <<_ACEOF
34965/* end confdefs.h. */
ac1cb8d3
VS
34966/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34967 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34968#define $ac_func innocuous_$ac_func
34969
a848cd7e
SC
34970/* System header to define __stub macros and hopefully few prototypes,
34971 which can conflict with char $ac_func (); below.
34972 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34973 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34974
a848cd7e
SC
34975#ifdef __STDC__
34976# include <limits.h>
34977#else
34978# include <assert.h>
34979#endif
ac1cb8d3
VS
34980
34981#undef $ac_func
34982
a848cd7e
SC
34983/* Override any gcc2 internal prototype to avoid an error. */
34984#ifdef __cplusplus
34985extern "C"
34986{
34987#endif
34988/* We use char because int might match the return type of a gcc2
34989 builtin and then its argument prototype would still apply. */
34990char $ac_func ();
34991/* The GNU C library defines this for functions which it implements
34992 to always fail with ENOSYS. Some functions are actually named
34993 something starting with __ and the normal name is an alias. */
34994#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34995choke me
34996#else
34997char (*f) () = $ac_func;
34998#endif
34999#ifdef __cplusplus
35000}
35001#endif
35002
35003int
35004main ()
35005{
35006return f != $ac_func;
35007 ;
35008 return 0;
35009}
35010_ACEOF
35011rm -f conftest.$ac_objext conftest$ac_exeext
35012if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35013 (eval $ac_link) 2>conftest.er1
a848cd7e 35014 ac_status=$?
ac1cb8d3
VS
35015 grep -v '^ *+' conftest.er1 >conftest.err
35016 rm -f conftest.er1
35017 cat conftest.err >&5
a848cd7e
SC
35018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35019 (exit $ac_status); } &&
f10e38c4 35020 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35022 (eval $ac_try) 2>&5
35023 ac_status=$?
35024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35025 (exit $ac_status); }; } &&
35026 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35028 (eval $ac_try) 2>&5
35029 ac_status=$?
35030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35031 (exit $ac_status); }; }; then
35032 eval "$as_ac_var=yes"
35033else
35034 echo "$as_me: failed program was:" >&5
35035sed 's/^/| /' conftest.$ac_ext >&5
35036
35037eval "$as_ac_var=no"
35038fi
ac1cb8d3
VS
35039rm -f conftest.err conftest.$ac_objext \
35040 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35041fi
35042echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35043echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35044if test `eval echo '${'$as_ac_var'}'` = yes; then
35045 cat >>confdefs.h <<_ACEOF
35046#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35047_ACEOF
35048 break
35049fi
35050done
35051
35052
35053 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
35054 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
35055echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
35056 wxUSE_SNGLINST_CHECKER=no
35057 fi
35058fi
35059
35060
35061for ac_func in timegm
35062do
35063as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35064echo "$as_me:$LINENO: checking for $ac_func" >&5
35065echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35066if eval "test \"\${$as_ac_var+set}\" = set"; then
35067 echo $ECHO_N "(cached) $ECHO_C" >&6
35068else
35069 cat >conftest.$ac_ext <<_ACEOF
35070/* confdefs.h. */
35071_ACEOF
35072cat confdefs.h >>conftest.$ac_ext
35073cat >>conftest.$ac_ext <<_ACEOF
35074/* end confdefs.h. */
ac1cb8d3
VS
35075/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35076 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35077#define $ac_func innocuous_$ac_func
35078
a848cd7e
SC
35079/* System header to define __stub macros and hopefully few prototypes,
35080 which can conflict with char $ac_func (); below.
35081 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35082 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35083
a848cd7e
SC
35084#ifdef __STDC__
35085# include <limits.h>
35086#else
35087# include <assert.h>
35088#endif
ac1cb8d3
VS
35089
35090#undef $ac_func
35091
a848cd7e
SC
35092/* Override any gcc2 internal prototype to avoid an error. */
35093#ifdef __cplusplus
35094extern "C"
35095{
35096#endif
35097/* We use char because int might match the return type of a gcc2
35098 builtin and then its argument prototype would still apply. */
35099char $ac_func ();
35100/* The GNU C library defines this for functions which it implements
35101 to always fail with ENOSYS. Some functions are actually named
35102 something starting with __ and the normal name is an alias. */
35103#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35104choke me
35105#else
35106char (*f) () = $ac_func;
35107#endif
35108#ifdef __cplusplus
35109}
35110#endif
35111
35112int
35113main ()
35114{
35115return f != $ac_func;
35116 ;
35117 return 0;
35118}
35119_ACEOF
35120rm -f conftest.$ac_objext conftest$ac_exeext
35121if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35122 (eval $ac_link) 2>conftest.er1
a848cd7e 35123 ac_status=$?
ac1cb8d3
VS
35124 grep -v '^ *+' conftest.er1 >conftest.err
35125 rm -f conftest.er1
35126 cat conftest.err >&5
a848cd7e
SC
35127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35128 (exit $ac_status); } &&
f10e38c4 35129 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35131 (eval $ac_try) 2>&5
35132 ac_status=$?
35133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35134 (exit $ac_status); }; } &&
35135 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35137 (eval $ac_try) 2>&5
35138 ac_status=$?
35139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35140 (exit $ac_status); }; }; then
35141 eval "$as_ac_var=yes"
35142else
35143 echo "$as_me: failed program was:" >&5
35144sed 's/^/| /' conftest.$ac_ext >&5
35145
35146eval "$as_ac_var=no"
35147fi
ac1cb8d3
VS
35148rm -f conftest.err conftest.$ac_objext \
35149 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35150fi
35151echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35152echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35153if test `eval echo '${'$as_ac_var'}'` = yes; then
35154 cat >>confdefs.h <<_ACEOF
35155#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35156_ACEOF
35157
35158fi
35159done
35160
35161
35162
35163
35164for ac_func in putenv setenv
35165do
35166as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35167echo "$as_me:$LINENO: checking for $ac_func" >&5
35168echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35169if eval "test \"\${$as_ac_var+set}\" = set"; then
35170 echo $ECHO_N "(cached) $ECHO_C" >&6
35171else
35172 cat >conftest.$ac_ext <<_ACEOF
35173/* confdefs.h. */
35174_ACEOF
35175cat confdefs.h >>conftest.$ac_ext
35176cat >>conftest.$ac_ext <<_ACEOF
35177/* end confdefs.h. */
ac1cb8d3
VS
35178/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35179 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35180#define $ac_func innocuous_$ac_func
35181
a848cd7e
SC
35182/* System header to define __stub macros and hopefully few prototypes,
35183 which can conflict with char $ac_func (); below.
35184 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35185 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35186
a848cd7e
SC
35187#ifdef __STDC__
35188# include <limits.h>
35189#else
35190# include <assert.h>
35191#endif
ac1cb8d3
VS
35192
35193#undef $ac_func
35194
a848cd7e
SC
35195/* Override any gcc2 internal prototype to avoid an error. */
35196#ifdef __cplusplus
35197extern "C"
35198{
35199#endif
35200/* We use char because int might match the return type of a gcc2
35201 builtin and then its argument prototype would still apply. */
35202char $ac_func ();
35203/* The GNU C library defines this for functions which it implements
35204 to always fail with ENOSYS. Some functions are actually named
35205 something starting with __ and the normal name is an alias. */
35206#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35207choke me
35208#else
35209char (*f) () = $ac_func;
35210#endif
35211#ifdef __cplusplus
35212}
35213#endif
35214
35215int
35216main ()
35217{
35218return f != $ac_func;
35219 ;
35220 return 0;
35221}
35222_ACEOF
35223rm -f conftest.$ac_objext conftest$ac_exeext
35224if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35225 (eval $ac_link) 2>conftest.er1
a848cd7e 35226 ac_status=$?
ac1cb8d3
VS
35227 grep -v '^ *+' conftest.er1 >conftest.err
35228 rm -f conftest.er1
35229 cat conftest.err >&5
a848cd7e
SC
35230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35231 (exit $ac_status); } &&
f10e38c4 35232 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35234 (eval $ac_try) 2>&5
35235 ac_status=$?
35236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35237 (exit $ac_status); }; } &&
35238 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35240 (eval $ac_try) 2>&5
35241 ac_status=$?
35242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35243 (exit $ac_status); }; }; then
35244 eval "$as_ac_var=yes"
35245else
35246 echo "$as_me: failed program was:" >&5
35247sed 's/^/| /' conftest.$ac_ext >&5
35248
35249eval "$as_ac_var=no"
35250fi
ac1cb8d3
VS
35251rm -f conftest.err conftest.$ac_objext \
35252 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35253fi
35254echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35255echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35256if test `eval echo '${'$as_ac_var'}'` = yes; then
35257 cat >>confdefs.h <<_ACEOF
35258#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35259_ACEOF
35260 break
35261fi
35262done
35263
35264
35265HAVE_SOME_SLEEP_FUNC=0
35266if test "$USE_BEOS" = 1; then
35267 cat >>confdefs.h <<\_ACEOF
35268#define HAVE_SLEEP 1
35269_ACEOF
35270
35271 HAVE_SOME_SLEEP_FUNC=1
35272fi
35273
35274if test "$USE_DARWIN" = 1; then
35275 cat >>confdefs.h <<\_ACEOF
35276#define HAVE_USLEEP 1
35277_ACEOF
35278
35279 HAVE_SOME_SLEEP_FUNC=1
35280fi
35281
35282if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
35283 POSIX4_LINK=
35284
35285for ac_func in nanosleep
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. */
ac1cb8d3
VS
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
a848cd7e
SC
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. */
ac1cb8d3 35307
a848cd7e
SC
35308#ifdef __STDC__
35309# include <limits.h>
35310#else
35311# include <assert.h>
35312#endif
ac1cb8d3
VS
35313
35314#undef $ac_func
35315
a848cd7e
SC
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
ac1cb8d3 35346 (eval $ac_link) 2>conftest.er1
a848cd7e 35347 ac_status=$?
ac1cb8d3
VS
35348 grep -v '^ *+' conftest.er1 >conftest.err
35349 rm -f conftest.er1
35350 cat conftest.err >&5
a848cd7e
SC
35351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35352 (exit $ac_status); } &&
f10e38c4 35353 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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'
a848cd7e
SC
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
ac1cb8d3
VS
35372rm -f conftest.err conftest.$ac_objext \
35373 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
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 cat >>confdefs.h <<\_ACEOF
35382#define HAVE_NANOSLEEP 1
35383_ACEOF
35384
35385else
35386
35387 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
35388echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
35389if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
35390 echo $ECHO_N "(cached) $ECHO_C" >&6
35391else
35392 ac_check_lib_save_LIBS=$LIBS
35393LIBS="-lposix4 $LIBS"
35394cat >conftest.$ac_ext <<_ACEOF
35395/* confdefs.h. */
35396_ACEOF
35397cat confdefs.h >>conftest.$ac_ext
35398cat >>conftest.$ac_ext <<_ACEOF
35399/* end confdefs.h. */
35400
35401/* Override any gcc2 internal prototype to avoid an error. */
35402#ifdef __cplusplus
35403extern "C"
35404#endif
35405/* We use char because int might match the return type of a gcc2
35406 builtin and then its argument prototype would still apply. */
35407char nanosleep ();
35408int
35409main ()
35410{
35411nanosleep ();
35412 ;
35413 return 0;
35414}
35415_ACEOF
35416rm -f conftest.$ac_objext conftest$ac_exeext
35417if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35418 (eval $ac_link) 2>conftest.er1
a848cd7e 35419 ac_status=$?
ac1cb8d3
VS
35420 grep -v '^ *+' conftest.er1 >conftest.err
35421 rm -f conftest.er1
35422 cat conftest.err >&5
a848cd7e
SC
35423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35424 (exit $ac_status); } &&
f10e38c4 35425 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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_exeext'
a848cd7e
SC
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 ac_cv_lib_posix4_nanosleep=yes
35438else
35439 echo "$as_me: failed program was:" >&5
35440sed 's/^/| /' conftest.$ac_ext >&5
35441
35442ac_cv_lib_posix4_nanosleep=no
35443fi
ac1cb8d3
VS
35444rm -f conftest.err conftest.$ac_objext \
35445 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35446LIBS=$ac_check_lib_save_LIBS
35447fi
35448echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
35449echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
35450if test $ac_cv_lib_posix4_nanosleep = yes; then
35451
35452 cat >>confdefs.h <<\_ACEOF
35453#define HAVE_NANOSLEEP 1
35454_ACEOF
35455
35456 POSIX4_LINK=" -lposix4"
35457
35458else
35459
35460
35461for ac_func in usleep
35462do
35463as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35464echo "$as_me:$LINENO: checking for $ac_func" >&5
35465echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35466if eval "test \"\${$as_ac_var+set}\" = set"; then
35467 echo $ECHO_N "(cached) $ECHO_C" >&6
35468else
35469 cat >conftest.$ac_ext <<_ACEOF
35470/* confdefs.h. */
35471_ACEOF
35472cat confdefs.h >>conftest.$ac_ext
35473cat >>conftest.$ac_ext <<_ACEOF
35474/* end confdefs.h. */
ac1cb8d3
VS
35475/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35476 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35477#define $ac_func innocuous_$ac_func
35478
a848cd7e
SC
35479/* System header to define __stub macros and hopefully few prototypes,
35480 which can conflict with char $ac_func (); below.
35481 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35482 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35483
a848cd7e
SC
35484#ifdef __STDC__
35485# include <limits.h>
35486#else
35487# include <assert.h>
35488#endif
ac1cb8d3
VS
35489
35490#undef $ac_func
35491
a848cd7e
SC
35492/* Override any gcc2 internal prototype to avoid an error. */
35493#ifdef __cplusplus
35494extern "C"
35495{
35496#endif
35497/* We use char because int might match the return type of a gcc2
35498 builtin and then its argument prototype would still apply. */
35499char $ac_func ();
35500/* The GNU C library defines this for functions which it implements
35501 to always fail with ENOSYS. Some functions are actually named
35502 something starting with __ and the normal name is an alias. */
35503#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35504choke me
35505#else
35506char (*f) () = $ac_func;
35507#endif
35508#ifdef __cplusplus
35509}
35510#endif
35511
35512int
35513main ()
35514{
35515return f != $ac_func;
35516 ;
35517 return 0;
35518}
35519_ACEOF
35520rm -f conftest.$ac_objext conftest$ac_exeext
35521if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35522 (eval $ac_link) 2>conftest.er1
a848cd7e 35523 ac_status=$?
ac1cb8d3
VS
35524 grep -v '^ *+' conftest.er1 >conftest.err
35525 rm -f conftest.er1
35526 cat conftest.err >&5
a848cd7e
SC
35527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35528 (exit $ac_status); } &&
f10e38c4 35529 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35531 (eval $ac_try) 2>&5
35532 ac_status=$?
35533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35534 (exit $ac_status); }; } &&
35535 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35537 (eval $ac_try) 2>&5
35538 ac_status=$?
35539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35540 (exit $ac_status); }; }; then
35541 eval "$as_ac_var=yes"
35542else
35543 echo "$as_me: failed program was:" >&5
35544sed 's/^/| /' conftest.$ac_ext >&5
35545
35546eval "$as_ac_var=no"
35547fi
ac1cb8d3
VS
35548rm -f conftest.err conftest.$ac_objext \
35549 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35550fi
35551echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35552echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35553if test `eval echo '${'$as_ac_var'}'` = yes; then
35554 cat >>confdefs.h <<_ACEOF
35555#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35556_ACEOF
35557 cat >>confdefs.h <<\_ACEOF
35558#define HAVE_USLEEP 1
35559_ACEOF
35560
35561else
35562 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
35563echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
35564
35565fi
35566done
35567
35568
35569
35570fi
35571
35572
35573
35574fi
35575done
35576
35577fi
35578
35579
35580
35581for ac_func in uname gethostname
35582do
35583as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35584echo "$as_me:$LINENO: checking for $ac_func" >&5
35585echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35586if eval "test \"\${$as_ac_var+set}\" = set"; then
35587 echo $ECHO_N "(cached) $ECHO_C" >&6
35588else
35589 cat >conftest.$ac_ext <<_ACEOF
35590/* confdefs.h. */
35591_ACEOF
35592cat confdefs.h >>conftest.$ac_ext
35593cat >>conftest.$ac_ext <<_ACEOF
35594/* end confdefs.h. */
ac1cb8d3
VS
35595/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35596 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35597#define $ac_func innocuous_$ac_func
35598
a848cd7e
SC
35599/* System header to define __stub macros and hopefully few prototypes,
35600 which can conflict with char $ac_func (); below.
35601 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35602 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35603
a848cd7e
SC
35604#ifdef __STDC__
35605# include <limits.h>
35606#else
35607# include <assert.h>
35608#endif
ac1cb8d3
VS
35609
35610#undef $ac_func
35611
a848cd7e
SC
35612/* Override any gcc2 internal prototype to avoid an error. */
35613#ifdef __cplusplus
35614extern "C"
35615{
35616#endif
35617/* We use char because int might match the return type of a gcc2
35618 builtin and then its argument prototype would still apply. */
35619char $ac_func ();
35620/* The GNU C library defines this for functions which it implements
35621 to always fail with ENOSYS. Some functions are actually named
35622 something starting with __ and the normal name is an alias. */
35623#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35624choke me
35625#else
35626char (*f) () = $ac_func;
35627#endif
35628#ifdef __cplusplus
35629}
35630#endif
35631
35632int
35633main ()
35634{
35635return f != $ac_func;
35636 ;
35637 return 0;
35638}
35639_ACEOF
35640rm -f conftest.$ac_objext conftest$ac_exeext
35641if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35642 (eval $ac_link) 2>conftest.er1
a848cd7e 35643 ac_status=$?
ac1cb8d3
VS
35644 grep -v '^ *+' conftest.er1 >conftest.err
35645 rm -f conftest.er1
35646 cat conftest.err >&5
a848cd7e
SC
35647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35648 (exit $ac_status); } &&
f10e38c4 35649 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35651 (eval $ac_try) 2>&5
35652 ac_status=$?
35653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35654 (exit $ac_status); }; } &&
35655 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35657 (eval $ac_try) 2>&5
35658 ac_status=$?
35659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35660 (exit $ac_status); }; }; then
35661 eval "$as_ac_var=yes"
35662else
35663 echo "$as_me: failed program was:" >&5
35664sed 's/^/| /' conftest.$ac_ext >&5
35665
35666eval "$as_ac_var=no"
35667fi
ac1cb8d3
VS
35668rm -f conftest.err conftest.$ac_objext \
35669 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35670fi
35671echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35672echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35673if test `eval echo '${'$as_ac_var'}'` = yes; then
35674 cat >>confdefs.h <<_ACEOF
35675#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35676_ACEOF
35677 break
35678fi
35679done
35680
35681
a848cd7e
SC
35682ac_ext=cc
35683ac_cpp='$CXXCPP $CPPFLAGS'
35684ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35685ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35686ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35687
35688
35689
35690for ac_func in strtok_r
35691do
35692as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35693echo "$as_me:$LINENO: checking for $ac_func" >&5
35694echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35695if eval "test \"\${$as_ac_var+set}\" = set"; then
35696 echo $ECHO_N "(cached) $ECHO_C" >&6
35697else
35698 cat >conftest.$ac_ext <<_ACEOF
35699/* confdefs.h. */
35700_ACEOF
35701cat confdefs.h >>conftest.$ac_ext
35702cat >>conftest.$ac_ext <<_ACEOF
35703/* end confdefs.h. */
ac1cb8d3
VS
35704/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35705 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35706#define $ac_func innocuous_$ac_func
35707
a848cd7e
SC
35708/* System header to define __stub macros and hopefully few prototypes,
35709 which can conflict with char $ac_func (); below.
35710 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35711 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35712
a848cd7e
SC
35713#ifdef __STDC__
35714# include <limits.h>
35715#else
35716# include <assert.h>
35717#endif
ac1cb8d3
VS
35718
35719#undef $ac_func
35720
a848cd7e
SC
35721/* Override any gcc2 internal prototype to avoid an error. */
35722#ifdef __cplusplus
35723extern "C"
35724{
35725#endif
35726/* We use char because int might match the return type of a gcc2
35727 builtin and then its argument prototype would still apply. */
35728char $ac_func ();
35729/* The GNU C library defines this for functions which it implements
35730 to always fail with ENOSYS. Some functions are actually named
35731 something starting with __ and the normal name is an alias. */
35732#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35733choke me
35734#else
35735char (*f) () = $ac_func;
35736#endif
35737#ifdef __cplusplus
35738}
35739#endif
35740
35741int
35742main ()
35743{
35744return f != $ac_func;
35745 ;
35746 return 0;
35747}
35748_ACEOF
35749rm -f conftest.$ac_objext conftest$ac_exeext
35750if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35751 (eval $ac_link) 2>conftest.er1
a848cd7e 35752 ac_status=$?
ac1cb8d3
VS
35753 grep -v '^ *+' conftest.er1 >conftest.err
35754 rm -f conftest.er1
35755 cat conftest.err >&5
a848cd7e
SC
35756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35757 (exit $ac_status); } &&
f10e38c4 35758 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35760 (eval $ac_try) 2>&5
35761 ac_status=$?
35762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35763 (exit $ac_status); }; } &&
35764 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35766 (eval $ac_try) 2>&5
35767 ac_status=$?
35768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35769 (exit $ac_status); }; }; then
35770 eval "$as_ac_var=yes"
35771else
35772 echo "$as_me: failed program was:" >&5
35773sed 's/^/| /' conftest.$ac_ext >&5
35774
35775eval "$as_ac_var=no"
35776fi
ac1cb8d3
VS
35777rm -f conftest.err conftest.$ac_objext \
35778 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35779fi
35780echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35781echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35782if test `eval echo '${'$as_ac_var'}'` = yes; then
35783 cat >>confdefs.h <<_ACEOF
35784#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35785_ACEOF
35786
35787fi
35788done
35789
35790
35791ac_ext=c
35792ac_cpp='$CPP $CPPFLAGS'
35793ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35794ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35795ac_compiler_gnu=$ac_cv_c_compiler_gnu
35796
35797
35798INET_LINK=
35799
35800for ac_func in inet_addr
35801do
35802as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35803echo "$as_me:$LINENO: checking for $ac_func" >&5
35804echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35805if eval "test \"\${$as_ac_var+set}\" = set"; then
35806 echo $ECHO_N "(cached) $ECHO_C" >&6
35807else
35808 cat >conftest.$ac_ext <<_ACEOF
35809/* confdefs.h. */
35810_ACEOF
35811cat confdefs.h >>conftest.$ac_ext
35812cat >>conftest.$ac_ext <<_ACEOF
35813/* end confdefs.h. */
ac1cb8d3
VS
35814/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35815 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35816#define $ac_func innocuous_$ac_func
35817
a848cd7e
SC
35818/* System header to define __stub macros and hopefully few prototypes,
35819 which can conflict with char $ac_func (); below.
35820 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35821 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35822
a848cd7e
SC
35823#ifdef __STDC__
35824# include <limits.h>
35825#else
35826# include <assert.h>
35827#endif
ac1cb8d3
VS
35828
35829#undef $ac_func
35830
a848cd7e
SC
35831/* Override any gcc2 internal prototype to avoid an error. */
35832#ifdef __cplusplus
35833extern "C"
35834{
35835#endif
35836/* We use char because int might match the return type of a gcc2
35837 builtin and then its argument prototype would still apply. */
35838char $ac_func ();
35839/* The GNU C library defines this for functions which it implements
35840 to always fail with ENOSYS. Some functions are actually named
35841 something starting with __ and the normal name is an alias. */
35842#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35843choke me
35844#else
35845char (*f) () = $ac_func;
35846#endif
35847#ifdef __cplusplus
35848}
35849#endif
35850
35851int
35852main ()
35853{
35854return f != $ac_func;
35855 ;
35856 return 0;
35857}
35858_ACEOF
35859rm -f conftest.$ac_objext conftest$ac_exeext
35860if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35861 (eval $ac_link) 2>conftest.er1
a848cd7e 35862 ac_status=$?
ac1cb8d3
VS
35863 grep -v '^ *+' conftest.er1 >conftest.err
35864 rm -f conftest.er1
35865 cat conftest.err >&5
a848cd7e
SC
35866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35867 (exit $ac_status); } &&
f10e38c4 35868 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35870 (eval $ac_try) 2>&5
35871 ac_status=$?
35872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35873 (exit $ac_status); }; } &&
35874 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35876 (eval $ac_try) 2>&5
35877 ac_status=$?
35878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35879 (exit $ac_status); }; }; then
35880 eval "$as_ac_var=yes"
35881else
35882 echo "$as_me: failed program was:" >&5
35883sed 's/^/| /' conftest.$ac_ext >&5
35884
35885eval "$as_ac_var=no"
35886fi
ac1cb8d3
VS
35887rm -f conftest.err conftest.$ac_objext \
35888 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35889fi
35890echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35891echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35892if test `eval echo '${'$as_ac_var'}'` = yes; then
35893 cat >>confdefs.h <<_ACEOF
35894#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35895_ACEOF
35896 cat >>confdefs.h <<\_ACEOF
35897#define HAVE_INET_ADDR 1
35898_ACEOF
35899
35900else
35901
35902 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
35903echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
35904if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
35905 echo $ECHO_N "(cached) $ECHO_C" >&6
35906else
35907 ac_check_lib_save_LIBS=$LIBS
35908LIBS="-lnsl $LIBS"
35909cat >conftest.$ac_ext <<_ACEOF
35910/* confdefs.h. */
35911_ACEOF
35912cat confdefs.h >>conftest.$ac_ext
35913cat >>conftest.$ac_ext <<_ACEOF
35914/* end confdefs.h. */
35915
35916/* Override any gcc2 internal prototype to avoid an error. */
35917#ifdef __cplusplus
35918extern "C"
35919#endif
35920/* We use char because int might match the return type of a gcc2
35921 builtin and then its argument prototype would still apply. */
35922char inet_addr ();
35923int
35924main ()
35925{
35926inet_addr ();
35927 ;
35928 return 0;
35929}
35930_ACEOF
35931rm -f conftest.$ac_objext conftest$ac_exeext
35932if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35933 (eval $ac_link) 2>conftest.er1
a848cd7e 35934 ac_status=$?
ac1cb8d3
VS
35935 grep -v '^ *+' conftest.er1 >conftest.err
35936 rm -f conftest.er1
35937 cat conftest.err >&5
a848cd7e
SC
35938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35939 (exit $ac_status); } &&
f10e38c4 35940 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35942 (eval $ac_try) 2>&5
35943 ac_status=$?
35944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35945 (exit $ac_status); }; } &&
35946 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35948 (eval $ac_try) 2>&5
35949 ac_status=$?
35950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35951 (exit $ac_status); }; }; then
35952 ac_cv_lib_nsl_inet_addr=yes
35953else
35954 echo "$as_me: failed program was:" >&5
35955sed 's/^/| /' conftest.$ac_ext >&5
35956
35957ac_cv_lib_nsl_inet_addr=no
35958fi
ac1cb8d3
VS
35959rm -f conftest.err conftest.$ac_objext \
35960 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35961LIBS=$ac_check_lib_save_LIBS
35962fi
35963echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
35964echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
35965if test $ac_cv_lib_nsl_inet_addr = yes; then
35966 INET_LINK="nsl"
35967else
35968
35969 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
35970echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
35971if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
35972 echo $ECHO_N "(cached) $ECHO_C" >&6
35973else
35974 ac_check_lib_save_LIBS=$LIBS
35975LIBS="-lresolv $LIBS"
35976cat >conftest.$ac_ext <<_ACEOF
35977/* confdefs.h. */
35978_ACEOF
35979cat confdefs.h >>conftest.$ac_ext
35980cat >>conftest.$ac_ext <<_ACEOF
35981/* end confdefs.h. */
35982
35983/* Override any gcc2 internal prototype to avoid an error. */
35984#ifdef __cplusplus
35985extern "C"
35986#endif
35987/* We use char because int might match the return type of a gcc2
35988 builtin and then its argument prototype would still apply. */
35989char inet_addr ();
35990int
35991main ()
35992{
35993inet_addr ();
35994 ;
35995 return 0;
35996}
35997_ACEOF
35998rm -f conftest.$ac_objext conftest$ac_exeext
35999if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36000 (eval $ac_link) 2>conftest.er1
a848cd7e 36001 ac_status=$?
ac1cb8d3
VS
36002 grep -v '^ *+' conftest.er1 >conftest.err
36003 rm -f conftest.er1
36004 cat conftest.err >&5
a848cd7e
SC
36005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36006 (exit $ac_status); } &&
f10e38c4 36007 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36009 (eval $ac_try) 2>&5
36010 ac_status=$?
36011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36012 (exit $ac_status); }; } &&
36013 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36015 (eval $ac_try) 2>&5
36016 ac_status=$?
36017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36018 (exit $ac_status); }; }; then
36019 ac_cv_lib_resolv_inet_addr=yes
36020else
36021 echo "$as_me: failed program was:" >&5
36022sed 's/^/| /' conftest.$ac_ext >&5
36023
36024ac_cv_lib_resolv_inet_addr=no
36025fi
ac1cb8d3
VS
36026rm -f conftest.err conftest.$ac_objext \
36027 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36028LIBS=$ac_check_lib_save_LIBS
36029fi
36030echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
36031echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
36032if test $ac_cv_lib_resolv_inet_addr = yes; then
36033 INET_LINK="resolv"
36034else
36035
36036 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
36037echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
36038if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
36039 echo $ECHO_N "(cached) $ECHO_C" >&6
36040else
36041 ac_check_lib_save_LIBS=$LIBS
36042LIBS="-lsocket $LIBS"
36043cat >conftest.$ac_ext <<_ACEOF
36044/* confdefs.h. */
36045_ACEOF
36046cat confdefs.h >>conftest.$ac_ext
36047cat >>conftest.$ac_ext <<_ACEOF
36048/* end confdefs.h. */
36049
36050/* Override any gcc2 internal prototype to avoid an error. */
36051#ifdef __cplusplus
36052extern "C"
36053#endif
36054/* We use char because int might match the return type of a gcc2
36055 builtin and then its argument prototype would still apply. */
36056char inet_addr ();
36057int
36058main ()
36059{
36060inet_addr ();
36061 ;
36062 return 0;
36063}
36064_ACEOF
36065rm -f conftest.$ac_objext conftest$ac_exeext
36066if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36067 (eval $ac_link) 2>conftest.er1
a848cd7e 36068 ac_status=$?
ac1cb8d3
VS
36069 grep -v '^ *+' conftest.er1 >conftest.err
36070 rm -f conftest.er1
36071 cat conftest.err >&5
a848cd7e
SC
36072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36073 (exit $ac_status); } &&
f10e38c4 36074 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36076 (eval $ac_try) 2>&5
36077 ac_status=$?
36078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36079 (exit $ac_status); }; } &&
36080 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36082 (eval $ac_try) 2>&5
36083 ac_status=$?
36084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36085 (exit $ac_status); }; }; then
36086 ac_cv_lib_socket_inet_addr=yes
36087else
36088 echo "$as_me: failed program was:" >&5
36089sed 's/^/| /' conftest.$ac_ext >&5
36090
36091ac_cv_lib_socket_inet_addr=no
36092fi
ac1cb8d3
VS
36093rm -f conftest.err conftest.$ac_objext \
36094 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36095LIBS=$ac_check_lib_save_LIBS
36096fi
36097echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
36098echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
36099if test $ac_cv_lib_socket_inet_addr = yes; then
36100 INET_LINK="socket"
36101
36102fi
36103
36104
36105
36106fi
36107
36108
36109
36110fi
36111
36112
36113
36114fi
36115done
36116
36117
36118
36119for ac_func in inet_aton
36120do
36121as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36122echo "$as_me:$LINENO: checking for $ac_func" >&5
36123echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36124if eval "test \"\${$as_ac_var+set}\" = set"; then
36125 echo $ECHO_N "(cached) $ECHO_C" >&6
36126else
36127 cat >conftest.$ac_ext <<_ACEOF
36128/* confdefs.h. */
36129_ACEOF
36130cat confdefs.h >>conftest.$ac_ext
36131cat >>conftest.$ac_ext <<_ACEOF
36132/* end confdefs.h. */
ac1cb8d3
VS
36133/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36134 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36135#define $ac_func innocuous_$ac_func
36136
a848cd7e
SC
36137/* System header to define __stub macros and hopefully few prototypes,
36138 which can conflict with char $ac_func (); below.
36139 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36140 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36141
a848cd7e
SC
36142#ifdef __STDC__
36143# include <limits.h>
36144#else
36145# include <assert.h>
36146#endif
ac1cb8d3
VS
36147
36148#undef $ac_func
36149
a848cd7e
SC
36150/* Override any gcc2 internal prototype to avoid an error. */
36151#ifdef __cplusplus
36152extern "C"
36153{
36154#endif
36155/* We use char because int might match the return type of a gcc2
36156 builtin and then its argument prototype would still apply. */
36157char $ac_func ();
36158/* The GNU C library defines this for functions which it implements
36159 to always fail with ENOSYS. Some functions are actually named
36160 something starting with __ and the normal name is an alias. */
36161#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36162choke me
36163#else
36164char (*f) () = $ac_func;
36165#endif
36166#ifdef __cplusplus
36167}
36168#endif
36169
36170int
36171main ()
36172{
36173return f != $ac_func;
36174 ;
36175 return 0;
36176}
36177_ACEOF
36178rm -f conftest.$ac_objext conftest$ac_exeext
36179if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36180 (eval $ac_link) 2>conftest.er1
a848cd7e 36181 ac_status=$?
ac1cb8d3
VS
36182 grep -v '^ *+' conftest.er1 >conftest.err
36183 rm -f conftest.er1
36184 cat conftest.err >&5
a848cd7e
SC
36185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36186 (exit $ac_status); } &&
f10e38c4 36187 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36189 (eval $ac_try) 2>&5
36190 ac_status=$?
36191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36192 (exit $ac_status); }; } &&
36193 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36195 (eval $ac_try) 2>&5
36196 ac_status=$?
36197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36198 (exit $ac_status); }; }; then
36199 eval "$as_ac_var=yes"
36200else
36201 echo "$as_me: failed program was:" >&5
36202sed 's/^/| /' conftest.$ac_ext >&5
36203
36204eval "$as_ac_var=no"
36205fi
ac1cb8d3
VS
36206rm -f conftest.err conftest.$ac_objext \
36207 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36208fi
36209echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36210echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36211if test `eval echo '${'$as_ac_var'}'` = yes; then
36212 cat >>confdefs.h <<_ACEOF
36213#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36214_ACEOF
36215 cat >>confdefs.h <<\_ACEOF
36216#define HAVE_INET_ATON 1
36217_ACEOF
36218
36219else
36220
36221 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
36222echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
36223echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
36224if eval "test \"\${$as_ac_Lib+set}\" = set"; then
36225 echo $ECHO_N "(cached) $ECHO_C" >&6
36226else
36227 ac_check_lib_save_LIBS=$LIBS
36228LIBS="-l$INET_LINK $LIBS"
36229cat >conftest.$ac_ext <<_ACEOF
36230/* confdefs.h. */
36231_ACEOF
36232cat confdefs.h >>conftest.$ac_ext
36233cat >>conftest.$ac_ext <<_ACEOF
36234/* end confdefs.h. */
36235
36236/* Override any gcc2 internal prototype to avoid an error. */
36237#ifdef __cplusplus
36238extern "C"
36239#endif
36240/* We use char because int might match the return type of a gcc2
36241 builtin and then its argument prototype would still apply. */
36242char inet_aton ();
36243int
36244main ()
36245{
36246inet_aton ();
36247 ;
36248 return 0;
36249}
36250_ACEOF
36251rm -f conftest.$ac_objext conftest$ac_exeext
36252if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36253 (eval $ac_link) 2>conftest.er1
a848cd7e 36254 ac_status=$?
ac1cb8d3
VS
36255 grep -v '^ *+' conftest.er1 >conftest.err
36256 rm -f conftest.er1
36257 cat conftest.err >&5
a848cd7e
SC
36258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36259 (exit $ac_status); } &&
f10e38c4 36260 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36262 (eval $ac_try) 2>&5
36263 ac_status=$?
36264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36265 (exit $ac_status); }; } &&
36266 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36268 (eval $ac_try) 2>&5
36269 ac_status=$?
36270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36271 (exit $ac_status); }; }; then
36272 eval "$as_ac_Lib=yes"
36273else
36274 echo "$as_me: failed program was:" >&5
36275sed 's/^/| /' conftest.$ac_ext >&5
36276
36277eval "$as_ac_Lib=no"
36278fi
ac1cb8d3
VS
36279rm -f conftest.err conftest.$ac_objext \
36280 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36281LIBS=$ac_check_lib_save_LIBS
36282fi
36283echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
36284echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
36285if test `eval echo '${'$as_ac_Lib'}'` = yes; then
36286 cat >>confdefs.h <<\_ACEOF
36287#define HAVE_INET_ATON 1
36288_ACEOF
36289
36290fi
36291
36292
36293fi
36294done
36295
36296
36297if test "x$INET_LINK" != "x"; then
36298 cat >>confdefs.h <<\_ACEOF
36299#define HAVE_INET_ADDR 1
36300_ACEOF
36301
36302 INET_LINK=" -l$INET_LINK"
36303fi
36304
36305fi
36306
36307
36308
36309EXTRALIBS_ESD=
36310echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
36311echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
36312if test "${ac_cv_lib_esd_esd_close+set}" = set; then
36313 echo $ECHO_N "(cached) $ECHO_C" >&6
36314else
36315 ac_check_lib_save_LIBS=$LIBS
36316LIBS="-lesd $LIBS"
36317cat >conftest.$ac_ext <<_ACEOF
36318/* confdefs.h. */
36319_ACEOF
36320cat confdefs.h >>conftest.$ac_ext
36321cat >>conftest.$ac_ext <<_ACEOF
36322/* end confdefs.h. */
36323
36324/* Override any gcc2 internal prototype to avoid an error. */
36325#ifdef __cplusplus
36326extern "C"
36327#endif
36328/* We use char because int might match the return type of a gcc2
36329 builtin and then its argument prototype would still apply. */
36330char esd_close ();
36331int
36332main ()
36333{
36334esd_close ();
36335 ;
36336 return 0;
36337}
36338_ACEOF
36339rm -f conftest.$ac_objext conftest$ac_exeext
36340if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36341 (eval $ac_link) 2>conftest.er1
a848cd7e 36342 ac_status=$?
ac1cb8d3
VS
36343 grep -v '^ *+' conftest.er1 >conftest.err
36344 rm -f conftest.er1
36345 cat conftest.err >&5
a848cd7e
SC
36346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36347 (exit $ac_status); } &&
f10e38c4 36348 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36350 (eval $ac_try) 2>&5
36351 ac_status=$?
36352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36353 (exit $ac_status); }; } &&
36354 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36356 (eval $ac_try) 2>&5
36357 ac_status=$?
36358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36359 (exit $ac_status); }; }; then
36360 ac_cv_lib_esd_esd_close=yes
36361else
36362 echo "$as_me: failed program was:" >&5
36363sed 's/^/| /' conftest.$ac_ext >&5
36364
36365ac_cv_lib_esd_esd_close=no
36366fi
ac1cb8d3
VS
36367rm -f conftest.err conftest.$ac_objext \
36368 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36369LIBS=$ac_check_lib_save_LIBS
36370fi
36371echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
36372echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
36373if test $ac_cv_lib_esd_esd_close = yes; then
36374
36375
36376for ac_header in esd.h
36377do
36378as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36379if eval "test \"\${$as_ac_Header+set}\" = set"; then
36380 echo "$as_me:$LINENO: checking for $ac_header" >&5
36381echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36382if eval "test \"\${$as_ac_Header+set}\" = set"; then
36383 echo $ECHO_N "(cached) $ECHO_C" >&6
36384fi
36385echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36386echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36387else
36388 # Is the header compilable?
36389echo "$as_me:$LINENO: checking $ac_header usability" >&5
36390echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36391cat >conftest.$ac_ext <<_ACEOF
36392/* confdefs.h. */
36393_ACEOF
36394cat confdefs.h >>conftest.$ac_ext
36395cat >>conftest.$ac_ext <<_ACEOF
36396/* end confdefs.h. */
36397$ac_includes_default
36398#include <$ac_header>
36399_ACEOF
36400rm -f conftest.$ac_objext
36401if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36402 (eval $ac_compile) 2>conftest.er1
a848cd7e 36403 ac_status=$?
ac1cb8d3
VS
36404 grep -v '^ *+' conftest.er1 >conftest.err
36405 rm -f conftest.er1
36406 cat conftest.err >&5
a848cd7e
SC
36407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36408 (exit $ac_status); } &&
f10e38c4 36409 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36411 (eval $ac_try) 2>&5
36412 ac_status=$?
36413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36414 (exit $ac_status); }; } &&
36415 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36417 (eval $ac_try) 2>&5
36418 ac_status=$?
36419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36420 (exit $ac_status); }; }; then
36421 ac_header_compiler=yes
36422else
36423 echo "$as_me: failed program was:" >&5
36424sed 's/^/| /' conftest.$ac_ext >&5
36425
36426ac_header_compiler=no
36427fi
ac1cb8d3 36428rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36429echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36430echo "${ECHO_T}$ac_header_compiler" >&6
36431
36432# Is the header present?
36433echo "$as_me:$LINENO: checking $ac_header presence" >&5
36434echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36435cat >conftest.$ac_ext <<_ACEOF
36436/* confdefs.h. */
36437_ACEOF
36438cat confdefs.h >>conftest.$ac_ext
36439cat >>conftest.$ac_ext <<_ACEOF
36440/* end confdefs.h. */
36441#include <$ac_header>
36442_ACEOF
36443if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36444 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36445 ac_status=$?
36446 grep -v '^ *+' conftest.er1 >conftest.err
36447 rm -f conftest.er1
36448 cat conftest.err >&5
36449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36450 (exit $ac_status); } >/dev/null; then
36451 if test -s conftest.err; then
36452 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 36453 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
36454 else
36455 ac_cpp_err=
36456 fi
36457else
36458 ac_cpp_err=yes
36459fi
36460if test -z "$ac_cpp_err"; then
36461 ac_header_preproc=yes
36462else
36463 echo "$as_me: failed program was:" >&5
36464sed 's/^/| /' conftest.$ac_ext >&5
36465
36466 ac_header_preproc=no
36467fi
36468rm -f conftest.err conftest.$ac_ext
36469echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36470echo "${ECHO_T}$ac_header_preproc" >&6
36471
36472# So? What about this header?
ac1cb8d3
VS
36473case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36474 yes:no: )
a848cd7e
SC
36475 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36476echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
36477 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36478echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36479 ac_header_preproc=yes
a848cd7e 36480 ;;
ac1cb8d3 36481 no:yes:* )
a848cd7e
SC
36482 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36483echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
36484 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36485echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36486 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36487echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36488 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36489echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
36490 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36491echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
36492 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36493echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
36494 (
36495 cat <<\_ASBOX
ac1cb8d3
VS
36496## ----------------------------------------- ##
36497## Report this to wx-dev@lists.wxwidgets.org ##
36498## ----------------------------------------- ##
a848cd7e
SC
36499_ASBOX
36500 ) |
36501 sed "s/^/$as_me: WARNING: /" >&2
36502 ;;
36503esac
36504echo "$as_me:$LINENO: checking for $ac_header" >&5
36505echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36506if eval "test \"\${$as_ac_Header+set}\" = set"; then
36507 echo $ECHO_N "(cached) $ECHO_C" >&6
36508else
ac1cb8d3 36509 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
36510fi
36511echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36512echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36513
36514fi
36515if test `eval echo '${'$as_ac_Header'}'` = yes; then
36516 cat >>confdefs.h <<_ACEOF
36517#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36518_ACEOF
36519
36520 EXTRALIBS_ESD="-lesd"
36521
36522fi
36523
36524done
36525
36526
36527fi
36528
36529
36530
36531echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
36532echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
36533cat >conftest.$ac_ext <<_ACEOF
36534/* confdefs.h. */
36535_ACEOF
36536cat confdefs.h >>conftest.$ac_ext
36537cat >>conftest.$ac_ext <<_ACEOF
36538/* end confdefs.h. */
36539#ifdef __linux__
36540 #include <linux/cdrom.h>
36541 #else
36542 /* For Solaris */
36543 #include <sys/cdio.h>
36544 #endif
36545
36546int
36547main ()
36548{
36549struct cdrom_tocentry entry, old_entry;
36550 ;
36551 return 0;
36552}
36553_ACEOF
36554rm -f conftest.$ac_objext
36555if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36556 (eval $ac_compile) 2>conftest.er1
a848cd7e 36557 ac_status=$?
ac1cb8d3
VS
36558 grep -v '^ *+' conftest.er1 >conftest.err
36559 rm -f conftest.er1
36560 cat conftest.err >&5
a848cd7e
SC
36561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36562 (exit $ac_status); } &&
f10e38c4 36563 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36565 (eval $ac_try) 2>&5
36566 ac_status=$?
36567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36568 (exit $ac_status); }; } &&
36569 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36571 (eval $ac_try) 2>&5
36572 ac_status=$?
36573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36574 (exit $ac_status); }; }; then
36575 echo "$as_me:$LINENO: result: yes" >&5
36576echo "${ECHO_T}yes" >&6
36577 cat >>confdefs.h <<\_ACEOF
36578#define HAVE_KNOWN_CDROM_INTERFACE 1
36579_ACEOF
36580
36581else
36582 echo "$as_me: failed program was:" >&5
36583sed 's/^/| /' conftest.$ac_ext >&5
36584
36585echo "$as_me:$LINENO: result: no" >&5
36586echo "${ECHO_T}no" >&6
36587fi
ac1cb8d3 36588rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36589
36590
36591cat >confcache <<\_ACEOF
36592# This file is a shell script that caches the results of configure
36593# tests run on this system so they can be shared between configure
36594# scripts and configure runs, see configure's option --config-cache.
36595# It is not useful on other systems. If it contains results you don't
36596# want to keep, you may remove or edit it.
36597#
36598# config.status only pays attention to the cache file if you give it
36599# the --recheck option to rerun configure.
36600#
36601# `ac_cv_env_foo' variables (set or unset) will be overridden when
36602# loading this file, other *unset* `ac_cv_foo' will be assigned the
36603# following values.
36604
36605_ACEOF
36606
36607# The following way of writing the cache mishandles newlines in values,
36608# but we know of no workaround that is simple, portable, and efficient.
36609# So, don't put newlines in cache variables' values.
36610# Ultrix sh set writes to stderr and can't be redirected directly,
36611# and sets the high bit in the cache file unless we assign to the vars.
36612{
36613 (set) 2>&1 |
36614 case `(ac_space=' '; set | grep ac_space) 2>&1` in
36615 *ac_space=\ *)
36616 # `set' does not quote correctly, so add quotes (double-quote
36617 # substitution turns \\\\ into \\, and sed turns \\ into \).
36618 sed -n \
ac1cb8d3
VS
36619 "s/'/'\\\\''/g;
36620 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
36621 ;;
36622 *)
36623 # `set' quotes correctly as required by POSIX, so do not add quotes.
36624 sed -n \
ac1cb8d3 36625 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
36626 ;;
36627 esac;
36628} |
36629 sed '
36630 t clear
36631 : clear
36632 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
36633 t end
36634 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
36635 : end' >>confcache
36636if diff $cache_file confcache >/dev/null 2>&1; then :; else
36637 if test -w $cache_file; then
36638 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
36639 cat confcache >$cache_file
36640 else
36641 echo "not updating unwritable cache $cache_file"
36642 fi
36643fi
36644rm -f confcache
36645
36646
a848cd7e
SC
36647if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
36648
36649
36650 THREADS_LINK=
36651 THREADS_CFLAGS=
36652
36653 if test "$wxUSE_THREADS" = "yes" ; then
36654 if test "$USE_BEOS" = 1; then
36655 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
36656echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
36657 wxUSE_THREADS="no"
36658 fi
36659 fi
36660
36661 if test "$wxUSE_THREADS" = "yes" ; then
36662
36663
36664 THREAD_OPTS="-pthread"
36665 case "${host}" in
36666 *-*-solaris2* | *-*-sunos4* )
36667 if test "x$GCC" = "xyes"; then
36668 THREAD_OPTS="-pthreads $THREAD_OPTS"
36669 else
36670 THREAD_OPTS="-mt $THREAD_OPTS"
36671 fi
36672 ;;
36673 *-*-freebsd*)
36674 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
36675 ;;
36676 *-*-darwin* | *-*-cygwin* )
36677 THREAD_OPTS=""
36678 ;;
36679 *-*-aix*)
36680 THREAD_OPTS="pthreads"
36681 ;;
36682 *-hp-hpux* )
00421666
MW
36683 if test "x$GCC" = "xyes"; then
36684 $CXX -dumpspecs | grep 'pthread:' >/dev/null ||
36685 THREAD_OPTS=""
36686 else
0093c2fc 36687 THREAD_OPTS="-mt"
a848cd7e
SC
36688 fi
36689 ;;
36690
36691 *-*-irix* )
36692 if test "x$GCC" = "xyes"; then
36693 THREAD_OPTS=""
36694 fi
36695 ;;
36696
36697 *-*-*UnixWare*)
36698 if test "x$GCC" != "xyes"; then
36699 THREAD_OPTS="-Ethread"
36700 fi
36701 ;;
36702 esac
36703
36704 THREAD_OPTS="$THREAD_OPTS pthread none"
36705
36706 THREADS_OK=no
36707 for flag in $THREAD_OPTS; do
36708 case $flag in
36709 none)
36710 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
36711echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
36712 ;;
36713
36714 -*)
36715 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
36716echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
36717 THREADS_CFLAGS="$flag"
36718 ;;
36719
36720 *)
36721 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
36722echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
36723 THREADS_LINK="-l$flag"
36724 ;;
36725 esac
36726
36727 save_LIBS="$LIBS"
36728 save_CFLAGS="$CFLAGS"
36729 LIBS="$THREADS_LINK $LIBS"
36730 CFLAGS="$THREADS_CFLAGS $CFLAGS"
36731
36732 cat >conftest.$ac_ext <<_ACEOF
36733/* confdefs.h. */
36734_ACEOF
36735cat confdefs.h >>conftest.$ac_ext
36736cat >>conftest.$ac_ext <<_ACEOF
36737/* end confdefs.h. */
36738#include <pthread.h>
36739int
36740main ()
36741{
36742pthread_create(0,0,0,0);
36743 ;
36744 return 0;
36745}
36746_ACEOF
36747rm -f conftest.$ac_objext conftest$ac_exeext
36748if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36749 (eval $ac_link) 2>conftest.er1
a848cd7e 36750 ac_status=$?
ac1cb8d3
VS
36751 grep -v '^ *+' conftest.er1 >conftest.err
36752 rm -f conftest.er1
36753 cat conftest.err >&5
a848cd7e
SC
36754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36755 (exit $ac_status); } &&
f10e38c4 36756 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36758 (eval $ac_try) 2>&5
36759 ac_status=$?
36760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36761 (exit $ac_status); }; } &&
36762 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36764 (eval $ac_try) 2>&5
36765 ac_status=$?
36766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36767 (exit $ac_status); }; }; then
36768 THREADS_OK=yes
36769else
36770 echo "$as_me: failed program was:" >&5
36771sed 's/^/| /' conftest.$ac_ext >&5
36772
36773fi
ac1cb8d3
VS
36774rm -f conftest.err conftest.$ac_objext \
36775 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36776
36777 LIBS="$save_LIBS"
36778 CFLAGS="$save_CFLAGS"
36779
36780 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
36781echo "${ECHO_T}$THREADS_OK" >&6
36782 if test "x$THREADS_OK" = "xyes"; then
36783 break;
36784 fi
36785
36786 THREADS_LINK=""
36787 THREADS_CFLAGS=""
36788 done
36789
36790 if test "x$THREADS_OK" != "xyes"; then
36791 wxUSE_THREADS=no
36792 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
36793echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
36794 else
36795 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
36796 LIBS="$THREADS_LINK $LIBS"
36797
36798 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
36799echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
36800 flag=no
36801 case "${host}" in
36802 *-aix*)
36803 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
36804 flag="-D_THREAD_SAFE"
36805 ;;
36806 *-freebsd*)
36807 flag="-D_THREAD_SAFE"
36808 ;;
36809 *-hp-hpux* )
36810 flag="-D_REENTRANT"
36811 if test "x$GCC" != "xyes"; then
36812 flag="$flag -D_RWSTD_MULTI_THREAD"
36813 fi
36814 ;;
36815 *solaris* | alpha*-osf*)
36816 flag="-D_REENTRANT"
36817 ;;
36818 esac
36819 echo "$as_me:$LINENO: result: ${flag}" >&5
36820echo "${ECHO_T}${flag}" >&6
36821 if test "x$flag" != xno; then
36822 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
36823 fi
36824
5ff751d6 36825 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS $THREADS_CFLAGS"
a848cd7e
SC
36826 fi
36827 fi
36828
36829 if test "$wxUSE_THREADS" = "yes" ; then
36830
36831for ac_func in thr_setconcurrency
36832do
36833as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36834echo "$as_me:$LINENO: checking for $ac_func" >&5
36835echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36836if eval "test \"\${$as_ac_var+set}\" = set"; then
36837 echo $ECHO_N "(cached) $ECHO_C" >&6
36838else
36839 cat >conftest.$ac_ext <<_ACEOF
36840/* confdefs.h. */
36841_ACEOF
36842cat confdefs.h >>conftest.$ac_ext
36843cat >>conftest.$ac_ext <<_ACEOF
36844/* end confdefs.h. */
ac1cb8d3
VS
36845/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36846 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36847#define $ac_func innocuous_$ac_func
36848
a848cd7e
SC
36849/* System header to define __stub macros and hopefully few prototypes,
36850 which can conflict with char $ac_func (); below.
36851 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36852 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36853
a848cd7e
SC
36854#ifdef __STDC__
36855# include <limits.h>
36856#else
36857# include <assert.h>
36858#endif
ac1cb8d3
VS
36859
36860#undef $ac_func
36861
a848cd7e
SC
36862/* Override any gcc2 internal prototype to avoid an error. */
36863#ifdef __cplusplus
36864extern "C"
36865{
36866#endif
36867/* We use char because int might match the return type of a gcc2
36868 builtin and then its argument prototype would still apply. */
36869char $ac_func ();
36870/* The GNU C library defines this for functions which it implements
36871 to always fail with ENOSYS. Some functions are actually named
36872 something starting with __ and the normal name is an alias. */
36873#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36874choke me
36875#else
36876char (*f) () = $ac_func;
36877#endif
36878#ifdef __cplusplus
36879}
36880#endif
36881
36882int
36883main ()
36884{
36885return f != $ac_func;
36886 ;
36887 return 0;
36888}
36889_ACEOF
36890rm -f conftest.$ac_objext conftest$ac_exeext
36891if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36892 (eval $ac_link) 2>conftest.er1
a848cd7e 36893 ac_status=$?
ac1cb8d3
VS
36894 grep -v '^ *+' conftest.er1 >conftest.err
36895 rm -f conftest.er1
36896 cat conftest.err >&5
a848cd7e
SC
36897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36898 (exit $ac_status); } &&
f10e38c4 36899 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36901 (eval $ac_try) 2>&5
36902 ac_status=$?
36903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36904 (exit $ac_status); }; } &&
36905 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
36911 eval "$as_ac_var=yes"
36912else
36913 echo "$as_me: failed program was:" >&5
36914sed 's/^/| /' conftest.$ac_ext >&5
36915
36916eval "$as_ac_var=no"
36917fi
ac1cb8d3
VS
36918rm -f conftest.err conftest.$ac_objext \
36919 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36920fi
36921echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36922echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36923if test `eval echo '${'$as_ac_var'}'` = yes; then
36924 cat >>confdefs.h <<_ACEOF
36925#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36926_ACEOF
36927
36928fi
36929done
36930
36931
6ebeb4c7
VZ
36932 echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5
36933echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6
36934if test "${wx_cv_func_pthread_cleanup+set}" = set; then
36935 echo $ECHO_N "(cached) $ECHO_C" >&6
36936else
36937
36938 cat >conftest.$ac_ext <<_ACEOF
36939/* confdefs.h. */
36940_ACEOF
36941cat confdefs.h >>conftest.$ac_ext
36942cat >>conftest.$ac_ext <<_ACEOF
36943/* end confdefs.h. */
36944#include <pthread.h>
36945 void ThreadCleanupFunc(void *p);
36946
36947int
36948main ()
36949{
36950
36951 void *p;
36952 pthread_cleanup_push(ThreadCleanupFunc, p);
36953 pthread_cleanup_pop(0);
36954
36955 ;
36956 return 0;
36957}
36958_ACEOF
36959rm -f conftest.$ac_objext
36960if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36961 (eval $ac_compile) 2>conftest.er1
36962 ac_status=$?
36963 grep -v '^ *+' conftest.er1 >conftest.err
36964 rm -f conftest.er1
36965 cat conftest.err >&5
36966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36967 (exit $ac_status); } &&
f10e38c4 36968 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6ebeb4c7
VZ
36969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36970 (eval $ac_try) 2>&5
36971 ac_status=$?
36972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36973 (exit $ac_status); }; } &&
36974 { ac_try='test -s conftest.$ac_objext'
36975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36976 (eval $ac_try) 2>&5
36977 ac_status=$?
36978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36979 (exit $ac_status); }; }; then
36980
36981 wx_cv_func_pthread_cleanup=yes
36982
36983else
36984 echo "$as_me: failed program was:" >&5
36985sed 's/^/| /' conftest.$ac_ext >&5
36986
36987
36988 wx_cv_func_pthread_cleanup=no
36989
36990
36991fi
36992rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36993
36994fi
36995echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup" >&5
36996echo "${ECHO_T}$wx_cv_func_pthread_cleanup" >&6
36997 if test "x$wx_cv_func_pthread_cleanup" = "xyes"; then
36998 cat >>confdefs.h <<\_ACEOF
36999#define wxHAVE_PTHREAD_CLEANUP 1
37000_ACEOF
37001
37002 fi
37003
a848cd7e
SC
37004
37005for ac_header in sched.h
37006do
37007as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37008if eval "test \"\${$as_ac_Header+set}\" = set"; then
37009 echo "$as_me:$LINENO: checking for $ac_header" >&5
37010echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37011if eval "test \"\${$as_ac_Header+set}\" = set"; then
37012 echo $ECHO_N "(cached) $ECHO_C" >&6
37013fi
37014echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37015echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37016else
37017 # Is the header compilable?
37018echo "$as_me:$LINENO: checking $ac_header usability" >&5
37019echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37020cat >conftest.$ac_ext <<_ACEOF
37021/* confdefs.h. */
37022_ACEOF
37023cat confdefs.h >>conftest.$ac_ext
37024cat >>conftest.$ac_ext <<_ACEOF
37025/* end confdefs.h. */
37026$ac_includes_default
37027#include <$ac_header>
37028_ACEOF
37029rm -f conftest.$ac_objext
37030if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37031 (eval $ac_compile) 2>conftest.er1
a848cd7e 37032 ac_status=$?
ac1cb8d3
VS
37033 grep -v '^ *+' conftest.er1 >conftest.err
37034 rm -f conftest.er1
37035 cat conftest.err >&5
a848cd7e
SC
37036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37037 (exit $ac_status); } &&
f10e38c4 37038 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37040 (eval $ac_try) 2>&5
37041 ac_status=$?
37042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37043 (exit $ac_status); }; } &&
37044 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37046 (eval $ac_try) 2>&5
37047 ac_status=$?
37048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37049 (exit $ac_status); }; }; then
37050 ac_header_compiler=yes
37051else
37052 echo "$as_me: failed program was:" >&5
37053sed 's/^/| /' conftest.$ac_ext >&5
37054
37055ac_header_compiler=no
37056fi
ac1cb8d3 37057rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37058echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37059echo "${ECHO_T}$ac_header_compiler" >&6
37060
37061# Is the header present?
37062echo "$as_me:$LINENO: checking $ac_header presence" >&5
37063echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37064cat >conftest.$ac_ext <<_ACEOF
37065/* confdefs.h. */
37066_ACEOF
37067cat confdefs.h >>conftest.$ac_ext
37068cat >>conftest.$ac_ext <<_ACEOF
37069/* end confdefs.h. */
37070#include <$ac_header>
37071_ACEOF
37072if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37073 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37074 ac_status=$?
37075 grep -v '^ *+' conftest.er1 >conftest.err
37076 rm -f conftest.er1
37077 cat conftest.err >&5
37078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37079 (exit $ac_status); } >/dev/null; then
37080 if test -s conftest.err; then
37081 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 37082 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
37083 else
37084 ac_cpp_err=
37085 fi
37086else
37087 ac_cpp_err=yes
37088fi
37089if test -z "$ac_cpp_err"; then
37090 ac_header_preproc=yes
37091else
37092 echo "$as_me: failed program was:" >&5
37093sed 's/^/| /' conftest.$ac_ext >&5
37094
37095 ac_header_preproc=no
37096fi
37097rm -f conftest.err conftest.$ac_ext
37098echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37099echo "${ECHO_T}$ac_header_preproc" >&6
37100
37101# So? What about this header?
ac1cb8d3
VS
37102case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37103 yes:no: )
a848cd7e
SC
37104 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37105echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
37106 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37107echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37108 ac_header_preproc=yes
a848cd7e 37109 ;;
ac1cb8d3 37110 no:yes:* )
a848cd7e
SC
37111 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37112echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
37113 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
37114echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
37115 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37116echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37117 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
37118echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
37119 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37120echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
37121 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37122echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
37123 (
37124 cat <<\_ASBOX
ac1cb8d3
VS
37125## ----------------------------------------- ##
37126## Report this to wx-dev@lists.wxwidgets.org ##
37127## ----------------------------------------- ##
a848cd7e
SC
37128_ASBOX
37129 ) |
37130 sed "s/^/$as_me: WARNING: /" >&2
37131 ;;
37132esac
37133echo "$as_me:$LINENO: checking for $ac_header" >&5
37134echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37135if eval "test \"\${$as_ac_Header+set}\" = set"; then
37136 echo $ECHO_N "(cached) $ECHO_C" >&6
37137else
ac1cb8d3 37138 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
37139fi
37140echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37141echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37142
37143fi
37144if test `eval echo '${'$as_ac_Header'}'` = yes; then
37145 cat >>confdefs.h <<_ACEOF
37146#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37147_ACEOF
37148
37149fi
37150
37151done
37152
37153 if test "$ac_cv_header_sched_h" = "yes"; then
37154 echo "$as_me:$LINENO: checking for sched_yield" >&5
37155echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
37156if test "${ac_cv_func_sched_yield+set}" = set; then
37157 echo $ECHO_N "(cached) $ECHO_C" >&6
37158else
37159 cat >conftest.$ac_ext <<_ACEOF
37160/* confdefs.h. */
37161_ACEOF
37162cat confdefs.h >>conftest.$ac_ext
37163cat >>conftest.$ac_ext <<_ACEOF
37164/* end confdefs.h. */
ac1cb8d3
VS
37165/* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
37166 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37167#define sched_yield innocuous_sched_yield
37168
a848cd7e
SC
37169/* System header to define __stub macros and hopefully few prototypes,
37170 which can conflict with char sched_yield (); below.
37171 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37172 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37173
a848cd7e
SC
37174#ifdef __STDC__
37175# include <limits.h>
37176#else
37177# include <assert.h>
37178#endif
ac1cb8d3
VS
37179
37180#undef sched_yield
37181
a848cd7e
SC
37182/* Override any gcc2 internal prototype to avoid an error. */
37183#ifdef __cplusplus
37184extern "C"
37185{
37186#endif
37187/* We use char because int might match the return type of a gcc2
37188 builtin and then its argument prototype would still apply. */
37189char sched_yield ();
37190/* The GNU C library defines this for functions which it implements
37191 to always fail with ENOSYS. Some functions are actually named
37192 something starting with __ and the normal name is an alias. */
37193#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
37194choke me
37195#else
37196char (*f) () = sched_yield;
37197#endif
37198#ifdef __cplusplus
37199}
37200#endif
37201
37202int
37203main ()
37204{
37205return f != sched_yield;
37206 ;
37207 return 0;
37208}
37209_ACEOF
37210rm -f conftest.$ac_objext conftest$ac_exeext
37211if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37212 (eval $ac_link) 2>conftest.er1
a848cd7e 37213 ac_status=$?
ac1cb8d3
VS
37214 grep -v '^ *+' conftest.er1 >conftest.err
37215 rm -f conftest.er1
37216 cat conftest.err >&5
a848cd7e
SC
37217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37218 (exit $ac_status); } &&
f10e38c4 37219 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37221 (eval $ac_try) 2>&5
37222 ac_status=$?
37223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37224 (exit $ac_status); }; } &&
37225 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37227 (eval $ac_try) 2>&5
37228 ac_status=$?
37229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37230 (exit $ac_status); }; }; then
37231 ac_cv_func_sched_yield=yes
37232else
37233 echo "$as_me: failed program was:" >&5
37234sed 's/^/| /' conftest.$ac_ext >&5
37235
37236ac_cv_func_sched_yield=no
37237fi
ac1cb8d3
VS
37238rm -f conftest.err conftest.$ac_objext \
37239 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37240fi
37241echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
37242echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
37243if test $ac_cv_func_sched_yield = yes; then
37244 cat >>confdefs.h <<\_ACEOF
37245#define HAVE_SCHED_YIELD 1
37246_ACEOF
37247
37248else
37249
37250 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
37251echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
37252if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
37253 echo $ECHO_N "(cached) $ECHO_C" >&6
37254else
37255 ac_check_lib_save_LIBS=$LIBS
37256LIBS="-lposix4 $LIBS"
37257cat >conftest.$ac_ext <<_ACEOF
37258/* confdefs.h. */
37259_ACEOF
37260cat confdefs.h >>conftest.$ac_ext
37261cat >>conftest.$ac_ext <<_ACEOF
37262/* end confdefs.h. */
37263
37264/* Override any gcc2 internal prototype to avoid an error. */
37265#ifdef __cplusplus
37266extern "C"
37267#endif
37268/* We use char because int might match the return type of a gcc2
37269 builtin and then its argument prototype would still apply. */
37270char sched_yield ();
37271int
37272main ()
37273{
37274sched_yield ();
37275 ;
37276 return 0;
37277}
37278_ACEOF
37279rm -f conftest.$ac_objext conftest$ac_exeext
37280if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37281 (eval $ac_link) 2>conftest.er1
a848cd7e 37282 ac_status=$?
ac1cb8d3
VS
37283 grep -v '^ *+' conftest.er1 >conftest.err
37284 rm -f conftest.er1
37285 cat conftest.err >&5
a848cd7e
SC
37286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37287 (exit $ac_status); } &&
f10e38c4 37288 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37290 (eval $ac_try) 2>&5
37291 ac_status=$?
37292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37293 (exit $ac_status); }; } &&
37294 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37296 (eval $ac_try) 2>&5
37297 ac_status=$?
37298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37299 (exit $ac_status); }; }; then
37300 ac_cv_lib_posix4_sched_yield=yes
37301else
37302 echo "$as_me: failed program was:" >&5
37303sed 's/^/| /' conftest.$ac_ext >&5
37304
37305ac_cv_lib_posix4_sched_yield=no
37306fi
ac1cb8d3
VS
37307rm -f conftest.err conftest.$ac_objext \
37308 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37309LIBS=$ac_check_lib_save_LIBS
37310fi
37311echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
37312echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
37313if test $ac_cv_lib_posix4_sched_yield = yes; then
37314 cat >>confdefs.h <<\_ACEOF
37315#define HAVE_SCHED_YIELD 1
37316_ACEOF
37317 POSIX4_LINK=" -lposix4"
37318else
37319 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
37320echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
37321
37322fi
37323
37324
37325
37326fi
37327
37328 fi
37329
37330 HAVE_PRIOR_FUNCS=0
37331 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
37332echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
37333if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
37334 echo $ECHO_N "(cached) $ECHO_C" >&6
37335else
37336 cat >conftest.$ac_ext <<_ACEOF
37337/* confdefs.h. */
37338_ACEOF
37339cat confdefs.h >>conftest.$ac_ext
37340cat >>conftest.$ac_ext <<_ACEOF
37341/* end confdefs.h. */
ac1cb8d3
VS
37342/* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
37343 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37344#define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
37345
a848cd7e
SC
37346/* System header to define __stub macros and hopefully few prototypes,
37347 which can conflict with char pthread_attr_getschedpolicy (); below.
37348 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37349 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37350
a848cd7e
SC
37351#ifdef __STDC__
37352# include <limits.h>
37353#else
37354# include <assert.h>
37355#endif
ac1cb8d3
VS
37356
37357#undef pthread_attr_getschedpolicy
37358
a848cd7e
SC
37359/* Override any gcc2 internal prototype to avoid an error. */
37360#ifdef __cplusplus
37361extern "C"
37362{
37363#endif
37364/* We use char because int might match the return type of a gcc2
37365 builtin and then its argument prototype would still apply. */
37366char pthread_attr_getschedpolicy ();
37367/* The GNU C library defines this for functions which it implements
37368 to always fail with ENOSYS. Some functions are actually named
37369 something starting with __ and the normal name is an alias. */
37370#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
37371choke me
37372#else
37373char (*f) () = pthread_attr_getschedpolicy;
37374#endif
37375#ifdef __cplusplus
37376}
37377#endif
37378
37379int
37380main ()
37381{
37382return f != pthread_attr_getschedpolicy;
37383 ;
37384 return 0;
37385}
37386_ACEOF
37387rm -f conftest.$ac_objext conftest$ac_exeext
37388if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37389 (eval $ac_link) 2>conftest.er1
a848cd7e 37390 ac_status=$?
ac1cb8d3
VS
37391 grep -v '^ *+' conftest.er1 >conftest.err
37392 rm -f conftest.er1
37393 cat conftest.err >&5
a848cd7e
SC
37394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37395 (exit $ac_status); } &&
f10e38c4 37396 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37398 (eval $ac_try) 2>&5
37399 ac_status=$?
37400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37401 (exit $ac_status); }; } &&
37402 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37404 (eval $ac_try) 2>&5
37405 ac_status=$?
37406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37407 (exit $ac_status); }; }; then
37408 ac_cv_func_pthread_attr_getschedpolicy=yes
37409else
37410 echo "$as_me: failed program was:" >&5
37411sed 's/^/| /' conftest.$ac_ext >&5
37412
37413ac_cv_func_pthread_attr_getschedpolicy=no
37414fi
ac1cb8d3
VS
37415rm -f conftest.err conftest.$ac_objext \
37416 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37417fi
37418echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
37419echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
37420if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
37421 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
37422echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
37423if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
37424 echo $ECHO_N "(cached) $ECHO_C" >&6
37425else
37426 cat >conftest.$ac_ext <<_ACEOF
37427/* confdefs.h. */
37428_ACEOF
37429cat confdefs.h >>conftest.$ac_ext
37430cat >>conftest.$ac_ext <<_ACEOF
37431/* end confdefs.h. */
ac1cb8d3
VS
37432/* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
37433 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37434#define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
37435
a848cd7e
SC
37436/* System header to define __stub macros and hopefully few prototypes,
37437 which can conflict with char pthread_attr_setschedparam (); below.
37438 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37439 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37440
a848cd7e
SC
37441#ifdef __STDC__
37442# include <limits.h>
37443#else
37444# include <assert.h>
37445#endif
ac1cb8d3
VS
37446
37447#undef pthread_attr_setschedparam
37448
a848cd7e
SC
37449/* Override any gcc2 internal prototype to avoid an error. */
37450#ifdef __cplusplus
37451extern "C"
37452{
37453#endif
37454/* We use char because int might match the return type of a gcc2
37455 builtin and then its argument prototype would still apply. */
37456char pthread_attr_setschedparam ();
37457/* The GNU C library defines this for functions which it implements
37458 to always fail with ENOSYS. Some functions are actually named
37459 something starting with __ and the normal name is an alias. */
37460#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
37461choke me
37462#else
37463char (*f) () = pthread_attr_setschedparam;
37464#endif
37465#ifdef __cplusplus
37466}
37467#endif
37468
37469int
37470main ()
37471{
37472return f != pthread_attr_setschedparam;
37473 ;
37474 return 0;
37475}
37476_ACEOF
37477rm -f conftest.$ac_objext conftest$ac_exeext
37478if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37479 (eval $ac_link) 2>conftest.er1
a848cd7e 37480 ac_status=$?
ac1cb8d3
VS
37481 grep -v '^ *+' conftest.er1 >conftest.err
37482 rm -f conftest.er1
37483 cat conftest.err >&5
a848cd7e
SC
37484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37485 (exit $ac_status); } &&
f10e38c4 37486 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37488 (eval $ac_try) 2>&5
37489 ac_status=$?
37490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37491 (exit $ac_status); }; } &&
37492 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37494 (eval $ac_try) 2>&5
37495 ac_status=$?
37496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37497 (exit $ac_status); }; }; then
37498 ac_cv_func_pthread_attr_setschedparam=yes
37499else
37500 echo "$as_me: failed program was:" >&5
37501sed 's/^/| /' conftest.$ac_ext >&5
37502
37503ac_cv_func_pthread_attr_setschedparam=no
37504fi
ac1cb8d3
VS
37505rm -f conftest.err conftest.$ac_objext \
37506 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37507fi
37508echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
37509echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
37510if test $ac_cv_func_pthread_attr_setschedparam = yes; then
37511 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
37512echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
37513if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
37514 echo $ECHO_N "(cached) $ECHO_C" >&6
37515else
37516 cat >conftest.$ac_ext <<_ACEOF
37517/* confdefs.h. */
37518_ACEOF
37519cat confdefs.h >>conftest.$ac_ext
37520cat >>conftest.$ac_ext <<_ACEOF
37521/* end confdefs.h. */
ac1cb8d3
VS
37522/* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
37523 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37524#define sched_get_priority_max innocuous_sched_get_priority_max
37525
a848cd7e
SC
37526/* System header to define __stub macros and hopefully few prototypes,
37527 which can conflict with char sched_get_priority_max (); below.
37528 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37529 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37530
a848cd7e
SC
37531#ifdef __STDC__
37532# include <limits.h>
37533#else
37534# include <assert.h>
37535#endif
ac1cb8d3
VS
37536
37537#undef sched_get_priority_max
37538
a848cd7e
SC
37539/* Override any gcc2 internal prototype to avoid an error. */
37540#ifdef __cplusplus
37541extern "C"
37542{
37543#endif
37544/* We use char because int might match the return type of a gcc2
37545 builtin and then its argument prototype would still apply. */
37546char sched_get_priority_max ();
37547/* The GNU C library defines this for functions which it implements
37548 to always fail with ENOSYS. Some functions are actually named
37549 something starting with __ and the normal name is an alias. */
37550#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
37551choke me
37552#else
37553char (*f) () = sched_get_priority_max;
37554#endif
37555#ifdef __cplusplus
37556}
37557#endif
37558
37559int
37560main ()
37561{
37562return f != sched_get_priority_max;
37563 ;
37564 return 0;
37565}
37566_ACEOF
37567rm -f conftest.$ac_objext conftest$ac_exeext
37568if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37569 (eval $ac_link) 2>conftest.er1
a848cd7e 37570 ac_status=$?
ac1cb8d3
VS
37571 grep -v '^ *+' conftest.er1 >conftest.err
37572 rm -f conftest.er1
37573 cat conftest.err >&5
a848cd7e
SC
37574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37575 (exit $ac_status); } &&
f10e38c4 37576 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37578 (eval $ac_try) 2>&5
37579 ac_status=$?
37580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37581 (exit $ac_status); }; } &&
37582 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37584 (eval $ac_try) 2>&5
37585 ac_status=$?
37586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37587 (exit $ac_status); }; }; then
37588 ac_cv_func_sched_get_priority_max=yes
37589else
37590 echo "$as_me: failed program was:" >&5
37591sed 's/^/| /' conftest.$ac_ext >&5
37592
37593ac_cv_func_sched_get_priority_max=no
37594fi
ac1cb8d3
VS
37595rm -f conftest.err conftest.$ac_objext \
37596 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37597fi
37598echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
37599echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
37600if test $ac_cv_func_sched_get_priority_max = yes; then
37601 HAVE_PRIOR_FUNCS=1
37602else
37603 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
37604echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
37605if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
37606 echo $ECHO_N "(cached) $ECHO_C" >&6
37607else
37608 ac_check_lib_save_LIBS=$LIBS
37609LIBS="-lposix4 $LIBS"
37610cat >conftest.$ac_ext <<_ACEOF
37611/* confdefs.h. */
37612_ACEOF
37613cat confdefs.h >>conftest.$ac_ext
37614cat >>conftest.$ac_ext <<_ACEOF
37615/* end confdefs.h. */
37616
37617/* Override any gcc2 internal prototype to avoid an error. */
37618#ifdef __cplusplus
37619extern "C"
37620#endif
37621/* We use char because int might match the return type of a gcc2
37622 builtin and then its argument prototype would still apply. */
37623char sched_get_priority_max ();
37624int
37625main ()
37626{
37627sched_get_priority_max ();
37628 ;
37629 return 0;
37630}
37631_ACEOF
37632rm -f conftest.$ac_objext conftest$ac_exeext
37633if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37634 (eval $ac_link) 2>conftest.er1
a848cd7e 37635 ac_status=$?
ac1cb8d3
VS
37636 grep -v '^ *+' conftest.er1 >conftest.err
37637 rm -f conftest.er1
37638 cat conftest.err >&5
a848cd7e
SC
37639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37640 (exit $ac_status); } &&
f10e38c4 37641 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37643 (eval $ac_try) 2>&5
37644 ac_status=$?
37645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37646 (exit $ac_status); }; } &&
37647 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37649 (eval $ac_try) 2>&5
37650 ac_status=$?
37651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37652 (exit $ac_status); }; }; then
37653 ac_cv_lib_posix4_sched_get_priority_max=yes
37654else
37655 echo "$as_me: failed program was:" >&5
37656sed 's/^/| /' conftest.$ac_ext >&5
37657
37658ac_cv_lib_posix4_sched_get_priority_max=no
37659fi
ac1cb8d3
VS
37660rm -f conftest.err conftest.$ac_objext \
37661 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37662LIBS=$ac_check_lib_save_LIBS
37663fi
37664echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
37665echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
37666if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
37667
37668 HAVE_PRIOR_FUNCS=1
37669 POSIX4_LINK=" -lposix4"
37670
37671fi
37672
37673
37674fi
37675
37676
37677fi
37678
37679
37680fi
37681
37682
37683 if test "$HAVE_PRIOR_FUNCS" = 1; then
37684 cat >>confdefs.h <<\_ACEOF
37685#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
37686_ACEOF
37687
37688 else
37689 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
37690echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
37691 fi
37692
37693 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
37694echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
37695if test "${ac_cv_func_pthread_cancel+set}" = set; then
37696 echo $ECHO_N "(cached) $ECHO_C" >&6
37697else
37698 cat >conftest.$ac_ext <<_ACEOF
37699/* confdefs.h. */
37700_ACEOF
37701cat confdefs.h >>conftest.$ac_ext
37702cat >>conftest.$ac_ext <<_ACEOF
37703/* end confdefs.h. */
ac1cb8d3
VS
37704/* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
37705 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37706#define pthread_cancel innocuous_pthread_cancel
37707
a848cd7e
SC
37708/* System header to define __stub macros and hopefully few prototypes,
37709 which can conflict with char pthread_cancel (); below.
37710 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37711 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37712
a848cd7e
SC
37713#ifdef __STDC__
37714# include <limits.h>
37715#else
37716# include <assert.h>
37717#endif
ac1cb8d3
VS
37718
37719#undef pthread_cancel
37720
a848cd7e
SC
37721/* Override any gcc2 internal prototype to avoid an error. */
37722#ifdef __cplusplus
37723extern "C"
37724{
37725#endif
37726/* We use char because int might match the return type of a gcc2
37727 builtin and then its argument prototype would still apply. */
37728char pthread_cancel ();
37729/* The GNU C library defines this for functions which it implements
37730 to always fail with ENOSYS. Some functions are actually named
37731 something starting with __ and the normal name is an alias. */
37732#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
37733choke me
37734#else
37735char (*f) () = pthread_cancel;
37736#endif
37737#ifdef __cplusplus
37738}
37739#endif
37740
37741int
37742main ()
37743{
37744return f != pthread_cancel;
37745 ;
37746 return 0;
37747}
37748_ACEOF
37749rm -f conftest.$ac_objext conftest$ac_exeext
37750if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37751 (eval $ac_link) 2>conftest.er1
a848cd7e 37752 ac_status=$?
ac1cb8d3
VS
37753 grep -v '^ *+' conftest.er1 >conftest.err
37754 rm -f conftest.er1
37755 cat conftest.err >&5
a848cd7e
SC
37756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37757 (exit $ac_status); } &&
f10e38c4 37758 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37760 (eval $ac_try) 2>&5
37761 ac_status=$?
37762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37763 (exit $ac_status); }; } &&
37764 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37766 (eval $ac_try) 2>&5
37767 ac_status=$?
37768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37769 (exit $ac_status); }; }; then
37770 ac_cv_func_pthread_cancel=yes
37771else
37772 echo "$as_me: failed program was:" >&5
37773sed 's/^/| /' conftest.$ac_ext >&5
37774
37775ac_cv_func_pthread_cancel=no
37776fi
ac1cb8d3
VS
37777rm -f conftest.err conftest.$ac_objext \
37778 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37779fi
37780echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
37781echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
37782if test $ac_cv_func_pthread_cancel = yes; then
37783 cat >>confdefs.h <<\_ACEOF
37784#define HAVE_PTHREAD_CANCEL 1
37785_ACEOF
37786
37787else
37788 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
37789echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
37790fi
37791
37792
abc736fd
MW
37793 echo "$as_me:$LINENO: checking for pthread_attr_setstacksize" >&5
37794echo $ECHO_N "checking for pthread_attr_setstacksize... $ECHO_C" >&6
37795if test "${ac_cv_func_pthread_attr_setstacksize+set}" = set; then
37796 echo $ECHO_N "(cached) $ECHO_C" >&6
37797else
37798 cat >conftest.$ac_ext <<_ACEOF
37799/* confdefs.h. */
37800_ACEOF
37801cat confdefs.h >>conftest.$ac_ext
37802cat >>conftest.$ac_ext <<_ACEOF
37803/* end confdefs.h. */
37804/* Define pthread_attr_setstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_setstacksize.
37805 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37806#define pthread_attr_setstacksize innocuous_pthread_attr_setstacksize
37807
37808/* System header to define __stub macros and hopefully few prototypes,
37809 which can conflict with char pthread_attr_setstacksize (); below.
37810 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37811 <limits.h> exists even on freestanding compilers. */
37812
37813#ifdef __STDC__
37814# include <limits.h>
37815#else
37816# include <assert.h>
37817#endif
37818
37819#undef pthread_attr_setstacksize
37820
37821/* Override any gcc2 internal prototype to avoid an error. */
37822#ifdef __cplusplus
37823extern "C"
37824{
37825#endif
37826/* We use char because int might match the return type of a gcc2
37827 builtin and then its argument prototype would still apply. */
37828char pthread_attr_setstacksize ();
37829/* The GNU C library defines this for functions which it implements
37830 to always fail with ENOSYS. Some functions are actually named
37831 something starting with __ and the normal name is an alias. */
37832#if defined (__stub_pthread_attr_setstacksize) || defined (__stub___pthread_attr_setstacksize)
37833choke me
37834#else
37835char (*f) () = pthread_attr_setstacksize;
37836#endif
37837#ifdef __cplusplus
37838}
37839#endif
37840
37841int
37842main ()
37843{
37844return f != pthread_attr_setstacksize;
37845 ;
37846 return 0;
37847}
37848_ACEOF
37849rm -f conftest.$ac_objext conftest$ac_exeext
37850if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37851 (eval $ac_link) 2>conftest.er1
37852 ac_status=$?
37853 grep -v '^ *+' conftest.er1 >conftest.err
37854 rm -f conftest.er1
37855 cat conftest.err >&5
37856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37857 (exit $ac_status); } &&
f10e38c4 37858 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
abc736fd
MW
37859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37860 (eval $ac_try) 2>&5
37861 ac_status=$?
37862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37863 (exit $ac_status); }; } &&
37864 { ac_try='test -s conftest$ac_exeext'
37865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37866 (eval $ac_try) 2>&5
37867 ac_status=$?
37868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37869 (exit $ac_status); }; }; then
37870 ac_cv_func_pthread_attr_setstacksize=yes
37871else
37872 echo "$as_me: failed program was:" >&5
37873sed 's/^/| /' conftest.$ac_ext >&5
37874
37875ac_cv_func_pthread_attr_setstacksize=no
37876fi
37877rm -f conftest.err conftest.$ac_objext \
37878 conftest$ac_exeext conftest.$ac_ext
37879fi
37880echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setstacksize" >&5
37881echo "${ECHO_T}$ac_cv_func_pthread_attr_setstacksize" >&6
37882if test $ac_cv_func_pthread_attr_setstacksize = yes; then
37883 cat >>confdefs.h <<\_ACEOF
37884#define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1
37885_ACEOF
37886
37887fi
37888
a848cd7e
SC
37889
37890
37891 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
37892echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
37893if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
37894 echo $ECHO_N "(cached) $ECHO_C" >&6
37895else
37896
37897 cat >conftest.$ac_ext <<_ACEOF
37898/* confdefs.h. */
37899_ACEOF
37900cat confdefs.h >>conftest.$ac_ext
37901cat >>conftest.$ac_ext <<_ACEOF
37902/* end confdefs.h. */
37903#include <pthread.h>
37904int
37905main ()
37906{
37907
37908 pthread_mutexattr_t attr;
37909 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
37910
37911 ;
37912 return 0;
37913}
37914_ACEOF
37915rm -f conftest.$ac_objext
37916if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37917 (eval $ac_compile) 2>conftest.er1
a848cd7e 37918 ac_status=$?
ac1cb8d3
VS
37919 grep -v '^ *+' conftest.er1 >conftest.err
37920 rm -f conftest.er1
37921 cat conftest.err >&5
a848cd7e
SC
37922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37923 (exit $ac_status); } &&
f10e38c4 37924 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37926 (eval $ac_try) 2>&5
37927 ac_status=$?
37928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37929 (exit $ac_status); }; } &&
37930 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37932 (eval $ac_try) 2>&5
37933 ac_status=$?
37934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37935 (exit $ac_status); }; }; then
123dca7d 37936 wx_cv_type_pthread_mutexattr_t=yes
a848cd7e
SC
37937else
37938 echo "$as_me: failed program was:" >&5
37939sed 's/^/| /' conftest.$ac_ext >&5
37940
123dca7d 37941wx_cv_type_pthread_mutexattr_t=no
a848cd7e
SC
37942
37943fi
ac1cb8d3 37944rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37945
37946fi
37947echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
37948echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
37949
37950 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
37951 cat >>confdefs.h <<\_ACEOF
37952#define HAVE_PTHREAD_MUTEXATTR_T 1
37953_ACEOF
37954
123dca7d
VZ
37955
37956 echo "$as_me:$LINENO: checking for pthread_mutexattr_settype declaration" >&5
37957echo $ECHO_N "checking for pthread_mutexattr_settype declaration... $ECHO_C" >&6
37958if test "${wx_cv_func_pthread_mutexattr_settype_decl+set}" = set; then
37959 echo $ECHO_N "(cached) $ECHO_C" >&6
37960else
37961
37962 cat >conftest.$ac_ext <<_ACEOF
37963/* confdefs.h. */
37964_ACEOF
37965cat confdefs.h >>conftest.$ac_ext
37966cat >>conftest.$ac_ext <<_ACEOF
37967/* end confdefs.h. */
37968#include <pthread.h>
37969int
37970main ()
37971{
37972
37973 pthread_mutexattr_t attr;
37974 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
37975
37976 ;
37977 return 0;
37978}
37979_ACEOF
37980rm -f conftest.$ac_objext
37981if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37982 (eval $ac_compile) 2>conftest.er1
37983 ac_status=$?
37984 grep -v '^ *+' conftest.er1 >conftest.err
37985 rm -f conftest.er1
37986 cat conftest.err >&5
37987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37988 (exit $ac_status); } &&
f10e38c4 37989 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
123dca7d
VZ
37990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37991 (eval $ac_try) 2>&5
37992 ac_status=$?
37993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37994 (exit $ac_status); }; } &&
37995 { ac_try='test -s conftest.$ac_objext'
37996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37997 (eval $ac_try) 2>&5
37998 ac_status=$?
37999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38000 (exit $ac_status); }; }; then
38001 wx_cv_func_pthread_mutexattr_settype_decl=yes
38002else
38003 echo "$as_me: failed program was:" >&5
38004sed 's/^/| /' conftest.$ac_ext >&5
38005
38006wx_cv_func_pthread_mutexattr_settype_decl=no
38007
38008fi
38009rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38010
38011fi
38012echo "$as_me:$LINENO: result: $wx_cv_func_pthread_mutexattr_settype_decl" >&5
38013echo "${ECHO_T}$wx_cv_func_pthread_mutexattr_settype_decl" >&6
38014 if test "$wx_cv_func_pthread_mutexattr_settype_decl" = "yes"; then
38015 cat >>confdefs.h <<\_ACEOF
38016#define HAVE_PTHREAD_MUTEXATTR_SETTYPE_DECL 1
38017_ACEOF
38018
38019 fi
a848cd7e
SC
38020 else
38021 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
38022echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
38023if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
38024 echo $ECHO_N "(cached) $ECHO_C" >&6
38025else
38026
38027 cat >conftest.$ac_ext <<_ACEOF
38028/* confdefs.h. */
38029_ACEOF
38030cat confdefs.h >>conftest.$ac_ext
38031cat >>conftest.$ac_ext <<_ACEOF
38032/* end confdefs.h. */
38033#include <pthread.h>
38034int
38035main ()
38036{
38037
38038 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
38039
38040 ;
38041 return 0;
38042}
38043_ACEOF
38044rm -f conftest.$ac_objext
38045if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38046 (eval $ac_compile) 2>conftest.er1
a848cd7e 38047 ac_status=$?
ac1cb8d3
VS
38048 grep -v '^ *+' conftest.er1 >conftest.err
38049 rm -f conftest.er1
38050 cat conftest.err >&5
a848cd7e
SC
38051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38052 (exit $ac_status); } &&
f10e38c4 38053 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38055 (eval $ac_try) 2>&5
38056 ac_status=$?
38057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38058 (exit $ac_status); }; } &&
38059 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38061 (eval $ac_try) 2>&5
38062 ac_status=$?
38063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38064 (exit $ac_status); }; }; then
38065
38066 wx_cv_type_pthread_rec_mutex_init=yes
38067
38068else
38069 echo "$as_me: failed program was:" >&5
38070sed 's/^/| /' conftest.$ac_ext >&5
38071
38072
38073 wx_cv_type_pthread_rec_mutex_init=no
38074
38075
38076fi
ac1cb8d3 38077rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38078
38079fi
38080echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
38081echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
38082 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
38083 cat >>confdefs.h <<\_ACEOF
38084#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
38085_ACEOF
38086
38087 else
38088 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
38089echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
38090 fi
38091 fi
38092 fi
38093
38094else
38095 if test "$wxUSE_THREADS" = "yes" ; then
38096 case "${host}" in
38097 *-*-mingw32* )
38098 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
38099echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
38100if test "${wx_cv_cflags_mthread+set}" = set; then
38101 echo $ECHO_N "(cached) $ECHO_C" >&6
38102else
38103
38104 CFLAGS_OLD="$CFLAGS"
c92ad099 38105 CFLAGS="-mthreads $CFLAGS"
a848cd7e
SC
38106 cat >conftest.$ac_ext <<_ACEOF
38107/* confdefs.h. */
38108_ACEOF
38109cat confdefs.h >>conftest.$ac_ext
38110cat >>conftest.$ac_ext <<_ACEOF
38111/* end confdefs.h. */
38112
38113int
38114main ()
38115{
38116
38117 ;
38118 return 0;
38119}
38120_ACEOF
38121rm -f conftest.$ac_objext
38122if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38123 (eval $ac_compile) 2>conftest.er1
a848cd7e 38124 ac_status=$?
ac1cb8d3
VS
38125 grep -v '^ *+' conftest.er1 >conftest.err
38126 rm -f conftest.er1
38127 cat conftest.err >&5
a848cd7e
SC
38128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38129 (exit $ac_status); } &&
f10e38c4 38130 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38132 (eval $ac_try) 2>&5
38133 ac_status=$?
38134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38135 (exit $ac_status); }; } &&
38136 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38138 (eval $ac_try) 2>&5
38139 ac_status=$?
38140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38141 (exit $ac_status); }; }; then
38142 wx_cv_cflags_mthread=yes
38143else
38144 echo "$as_me: failed program was:" >&5
38145sed 's/^/| /' conftest.$ac_ext >&5
38146
38147wx_cv_cflags_mthread=no
38148
38149fi
ac1cb8d3 38150rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38151
38152
38153fi
38154echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
38155echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
38156
38157 if test "$wx_cv_cflags_mthread" = "yes"; then
5ff751d6 38158 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mthreads"
a848cd7e
SC
38159 LDFLAGS="$LDFLAGS -mthreads"
38160 else
38161 CFLAGS="$CFLAGS_OLD"
38162 fi
38163 ;;
38164 *-pc-os2*emx )
5ff751d6
VZ
38165 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -Zmt -D__ST_MT_ERRNO__"
38166 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
a848cd7e
SC
38167 LDFLAGS="$LDFLAGS -Zmt"
38168 ;;
38169 esac
38170 fi
38171fi
38172
004ee6da
RL
38173echo "$as_me:$LINENO: checking for localtime_r" >&5
38174echo $ECHO_N "checking for localtime_r... $ECHO_C" >&6
38175if test "${ac_cv_func_localtime_r+set}" = set; then
a848cd7e
SC
38176 echo $ECHO_N "(cached) $ECHO_C" >&6
38177else
38178 cat >conftest.$ac_ext <<_ACEOF
38179/* confdefs.h. */
38180_ACEOF
38181cat confdefs.h >>conftest.$ac_ext
38182cat >>conftest.$ac_ext <<_ACEOF
38183/* end confdefs.h. */
004ee6da 38184/* Define localtime_r to an innocuous variant, in case <limits.h> declares localtime_r.
ac1cb8d3 38185 For example, HP-UX 11i <limits.h> declares gettimeofday. */
004ee6da 38186#define localtime_r innocuous_localtime_r
ac1cb8d3 38187
a848cd7e 38188/* System header to define __stub macros and hopefully few prototypes,
004ee6da 38189 which can conflict with char localtime_r (); below.
a848cd7e
SC
38190 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38191 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38192
a848cd7e
SC
38193#ifdef __STDC__
38194# include <limits.h>
38195#else
38196# include <assert.h>
38197#endif
ac1cb8d3 38198
004ee6da 38199#undef localtime_r
ac1cb8d3 38200
a848cd7e
SC
38201/* Override any gcc2 internal prototype to avoid an error. */
38202#ifdef __cplusplus
38203extern "C"
38204{
38205#endif
38206/* We use char because int might match the return type of a gcc2
38207 builtin and then its argument prototype would still apply. */
004ee6da 38208char localtime_r ();
a848cd7e
SC
38209/* The GNU C library defines this for functions which it implements
38210 to always fail with ENOSYS. Some functions are actually named
38211 something starting with __ and the normal name is an alias. */
004ee6da 38212#if defined (__stub_localtime_r) || defined (__stub___localtime_r)
a848cd7e
SC
38213choke me
38214#else
004ee6da 38215char (*f) () = localtime_r;
a848cd7e
SC
38216#endif
38217#ifdef __cplusplus
38218}
38219#endif
38220
38221int
38222main ()
38223{
004ee6da
RL
38224return f != localtime_r;
38225 ;
38226 return 0;
38227}
38228_ACEOF
38229rm -f conftest.$ac_objext conftest$ac_exeext
38230if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38231 (eval $ac_link) 2>conftest.er1
38232 ac_status=$?
38233 grep -v '^ *+' conftest.er1 >conftest.err
38234 rm -f conftest.er1
38235 cat conftest.err >&5
38236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38237 (exit $ac_status); } &&
f10e38c4 38238 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
004ee6da
RL
38239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38240 (eval $ac_try) 2>&5
38241 ac_status=$?
38242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38243 (exit $ac_status); }; } &&
38244 { ac_try='test -s conftest$ac_exeext'
38245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38246 (eval $ac_try) 2>&5
38247 ac_status=$?
38248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38249 (exit $ac_status); }; }; then
38250 ac_cv_func_localtime_r=yes
38251else
38252 echo "$as_me: failed program was:" >&5
38253sed 's/^/| /' conftest.$ac_ext >&5
38254
38255ac_cv_func_localtime_r=no
38256fi
38257rm -f conftest.err conftest.$ac_objext \
38258 conftest$ac_exeext conftest.$ac_ext
38259fi
38260echo "$as_me:$LINENO: result: $ac_cv_func_localtime_r" >&5
38261echo "${ECHO_T}$ac_cv_func_localtime_r" >&6
38262if test $ac_cv_func_localtime_r = yes; then
38263 cat >>confdefs.h <<\_ACEOF
38264#define HAVE_LOCALTIME_R 1
38265_ACEOF
38266
38267fi
38268
38269echo "$as_me:$LINENO: checking for gmtime_r" >&5
38270echo $ECHO_N "checking for gmtime_r... $ECHO_C" >&6
38271if test "${ac_cv_func_gmtime_r+set}" = set; then
38272 echo $ECHO_N "(cached) $ECHO_C" >&6
38273else
38274 cat >conftest.$ac_ext <<_ACEOF
38275/* confdefs.h. */
38276_ACEOF
38277cat confdefs.h >>conftest.$ac_ext
38278cat >>conftest.$ac_ext <<_ACEOF
38279/* end confdefs.h. */
38280/* Define gmtime_r to an innocuous variant, in case <limits.h> declares gmtime_r.
38281 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38282#define gmtime_r innocuous_gmtime_r
38283
38284/* System header to define __stub macros and hopefully few prototypes,
38285 which can conflict with char gmtime_r (); below.
38286 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38287 <limits.h> exists even on freestanding compilers. */
38288
38289#ifdef __STDC__
38290# include <limits.h>
38291#else
38292# include <assert.h>
38293#endif
38294
38295#undef gmtime_r
38296
38297/* Override any gcc2 internal prototype to avoid an error. */
38298#ifdef __cplusplus
38299extern "C"
38300{
38301#endif
38302/* We use char because int might match the return type of a gcc2
38303 builtin and then its argument prototype would still apply. */
38304char gmtime_r ();
38305/* The GNU C library defines this for functions which it implements
38306 to always fail with ENOSYS. Some functions are actually named
38307 something starting with __ and the normal name is an alias. */
38308#if defined (__stub_gmtime_r) || defined (__stub___gmtime_r)
38309choke me
38310#else
38311char (*f) () = gmtime_r;
38312#endif
38313#ifdef __cplusplus
38314}
38315#endif
38316
38317int
38318main ()
38319{
38320return f != gmtime_r;
38321 ;
38322 return 0;
38323}
38324_ACEOF
38325rm -f conftest.$ac_objext conftest$ac_exeext
38326if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38327 (eval $ac_link) 2>conftest.er1
38328 ac_status=$?
38329 grep -v '^ *+' conftest.er1 >conftest.err
38330 rm -f conftest.er1
38331 cat conftest.err >&5
38332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38333 (exit $ac_status); } &&
f10e38c4 38334 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
004ee6da
RL
38335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38336 (eval $ac_try) 2>&5
38337 ac_status=$?
38338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38339 (exit $ac_status); }; } &&
38340 { ac_try='test -s conftest$ac_exeext'
38341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38342 (eval $ac_try) 2>&5
38343 ac_status=$?
38344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38345 (exit $ac_status); }; }; then
38346 ac_cv_func_gmtime_r=yes
38347else
38348 echo "$as_me: failed program was:" >&5
38349sed 's/^/| /' conftest.$ac_ext >&5
38350
38351ac_cv_func_gmtime_r=no
38352fi
38353rm -f conftest.err conftest.$ac_objext \
38354 conftest$ac_exeext conftest.$ac_ext
38355fi
38356echo "$as_me:$LINENO: result: $ac_cv_func_gmtime_r" >&5
38357echo "${ECHO_T}$ac_cv_func_gmtime_r" >&6
38358if test $ac_cv_func_gmtime_r = yes; then
38359 cat >>confdefs.h <<\_ACEOF
38360#define HAVE_GMTIME_R 1
38361_ACEOF
38362
38363fi
38364
38365echo "$as_me:$LINENO: checking for readdir_r" >&5
38366echo $ECHO_N "checking for readdir_r... $ECHO_C" >&6
38367if test "${ac_cv_func_readdir_r+set}" = set; then
38368 echo $ECHO_N "(cached) $ECHO_C" >&6
38369else
38370 cat >conftest.$ac_ext <<_ACEOF
38371/* confdefs.h. */
38372_ACEOF
38373cat confdefs.h >>conftest.$ac_ext
38374cat >>conftest.$ac_ext <<_ACEOF
38375/* end confdefs.h. */
38376/* Define readdir_r to an innocuous variant, in case <limits.h> declares readdir_r.
38377 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38378#define readdir_r innocuous_readdir_r
38379
38380/* System header to define __stub macros and hopefully few prototypes,
38381 which can conflict with char readdir_r (); below.
38382 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38383 <limits.h> exists even on freestanding compilers. */
38384
38385#ifdef __STDC__
38386# include <limits.h>
38387#else
38388# include <assert.h>
38389#endif
38390
38391#undef readdir_r
38392
38393/* Override any gcc2 internal prototype to avoid an error. */
38394#ifdef __cplusplus
38395extern "C"
38396{
38397#endif
38398/* We use char because int might match the return type of a gcc2
38399 builtin and then its argument prototype would still apply. */
38400char readdir_r ();
38401/* The GNU C library defines this for functions which it implements
38402 to always fail with ENOSYS. Some functions are actually named
38403 something starting with __ and the normal name is an alias. */
38404#if defined (__stub_readdir_r) || defined (__stub___readdir_r)
38405choke me
38406#else
38407char (*f) () = readdir_r;
38408#endif
38409#ifdef __cplusplus
38410}
38411#endif
38412
38413int
38414main ()
38415{
38416return f != readdir_r;
38417 ;
38418 return 0;
38419}
38420_ACEOF
38421rm -f conftest.$ac_objext conftest$ac_exeext
38422if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38423 (eval $ac_link) 2>conftest.er1
38424 ac_status=$?
38425 grep -v '^ *+' conftest.er1 >conftest.err
38426 rm -f conftest.er1
38427 cat conftest.err >&5
38428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38429 (exit $ac_status); } &&
f10e38c4 38430 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
004ee6da
RL
38431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38432 (eval $ac_try) 2>&5
38433 ac_status=$?
38434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38435 (exit $ac_status); }; } &&
38436 { ac_try='test -s conftest$ac_exeext'
38437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38438 (eval $ac_try) 2>&5
38439 ac_status=$?
38440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38441 (exit $ac_status); }; }; then
38442 ac_cv_func_readdir_r=yes
38443else
38444 echo "$as_me: failed program was:" >&5
38445sed 's/^/| /' conftest.$ac_ext >&5
38446
38447ac_cv_func_readdir_r=no
38448fi
38449rm -f conftest.err conftest.$ac_objext \
38450 conftest$ac_exeext conftest.$ac_ext
38451fi
38452echo "$as_me:$LINENO: result: $ac_cv_func_readdir_r" >&5
38453echo "${ECHO_T}$ac_cv_func_readdir_r" >&6
38454if test $ac_cv_func_readdir_r = yes; then
38455 cat >>confdefs.h <<\_ACEOF
38456#define HAVE_READDIR_R 1
38457_ACEOF
38458
38459fi
38460
004ee6da 38461
5ec3bc43
JS
38462ac_ext=cc
38463ac_cpp='$CXXCPP $CPPFLAGS'
38464ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38465ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38466ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38467
004ee6da
RL
38468
38469
38470 ac_ext=c
38471ac_cpp='$CPP $CPPFLAGS'
38472ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38473ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38474ac_compiler_gnu=$ac_cv_c_compiler_gnu
38475
38476 echo "$as_me:$LINENO: checking how many arguments gethostbyname_r() takes" >&5
38477echo $ECHO_N "checking how many arguments gethostbyname_r() takes... $ECHO_C" >&6
38478
38479 if test "${ac_cv_func_which_gethostbyname_r+set}" = set; then
38480 echo $ECHO_N "(cached) $ECHO_C" >&6
38481else
38482
38483
38484################################################################
38485
38486ac_cv_func_which_gethostbyname_r=unknown
38487
38488#
38489# ONE ARGUMENT (sanity check)
38490#
38491
38492# This should fail, as there is no variant of gethostbyname_r() that takes
38493# a single argument. If it actually compiles, then we can assume that
38494# netdb.h is not declaring the function, and the compiler is thereby
38495# assuming an implicit prototype. In which case, we're out of luck.
38496#
38497cat >conftest.$ac_ext <<_ACEOF
38498/* confdefs.h. */
38499_ACEOF
38500cat confdefs.h >>conftest.$ac_ext
38501cat >>conftest.$ac_ext <<_ACEOF
38502/* end confdefs.h. */
38503#include <netdb.h>
38504int
38505main ()
38506{
38507
38508 char *name = "www.gnu.org";
38509 (void)gethostbyname_r(name) /* ; */
38510
38511 ;
38512 return 0;
38513}
38514_ACEOF
38515rm -f conftest.$ac_objext
38516if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38517 (eval $ac_compile) 2>conftest.er1
38518 ac_status=$?
38519 grep -v '^ *+' conftest.er1 >conftest.err
38520 rm -f conftest.er1
38521 cat conftest.err >&5
38522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38523 (exit $ac_status); } &&
f10e38c4 38524 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
004ee6da
RL
38525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38526 (eval $ac_try) 2>&5
38527 ac_status=$?
38528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38529 (exit $ac_status); }; } &&
38530 { ac_try='test -s conftest.$ac_objext'
38531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38532 (eval $ac_try) 2>&5
38533 ac_status=$?
38534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38535 (exit $ac_status); }; }; then
38536 ac_cv_func_which_gethostbyname_r=no
38537else
38538 echo "$as_me: failed program was:" >&5
38539sed 's/^/| /' conftest.$ac_ext >&5
38540
38541fi
38542rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38543
38544#
38545# SIX ARGUMENTS
38546# (e.g. Linux)
38547#
38548
38549if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
38550
38551cat >conftest.$ac_ext <<_ACEOF
38552/* confdefs.h. */
38553_ACEOF
38554cat confdefs.h >>conftest.$ac_ext
38555cat >>conftest.$ac_ext <<_ACEOF
38556/* end confdefs.h. */
38557#include <netdb.h>
38558int
38559main ()
38560{
38561
38562 char *name = "www.gnu.org";
38563 struct hostent ret, *retp;
38564 char buf[1024];
38565 int buflen = 1024;
38566 int my_h_errno;
38567 (void)gethostbyname_r(name, &ret, buf, buflen, &retp, &my_h_errno) /* ; */
38568
38569 ;
38570 return 0;
38571}
38572_ACEOF
38573rm -f conftest.$ac_objext
38574if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38575 (eval $ac_compile) 2>conftest.er1
38576 ac_status=$?
38577 grep -v '^ *+' conftest.er1 >conftest.err
38578 rm -f conftest.er1
38579 cat conftest.err >&5
38580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38581 (exit $ac_status); } &&
f10e38c4 38582 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
004ee6da
RL
38583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38584 (eval $ac_try) 2>&5
38585 ac_status=$?
38586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38587 (exit $ac_status); }; } &&
38588 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
38594 ac_cv_func_which_gethostbyname_r=six
38595else
38596 echo "$as_me: failed program was:" >&5
38597sed 's/^/| /' conftest.$ac_ext >&5
38598
38599fi
38600rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38601
38602fi
38603
38604#
38605# FIVE ARGUMENTS
38606# (e.g. Solaris)
38607#
38608
38609if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
38610
38611cat >conftest.$ac_ext <<_ACEOF
38612/* confdefs.h. */
38613_ACEOF
38614cat confdefs.h >>conftest.$ac_ext
38615cat >>conftest.$ac_ext <<_ACEOF
38616/* end confdefs.h. */
38617#include <netdb.h>
38618int
38619main ()
38620{
38621
38622 char *name = "www.gnu.org";
38623 struct hostent ret;
38624 char buf[1024];
38625 int buflen = 1024;
38626 int my_h_errno;
38627 (void)gethostbyname_r(name, &ret, buf, buflen, &my_h_errno) /* ; */
38628
38629 ;
38630 return 0;
38631}
38632_ACEOF
38633rm -f conftest.$ac_objext
38634if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38635 (eval $ac_compile) 2>conftest.er1
38636 ac_status=$?
38637 grep -v '^ *+' conftest.er1 >conftest.err
38638 rm -f conftest.er1
38639 cat conftest.err >&5
38640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38641 (exit $ac_status); } &&
f10e38c4 38642 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
004ee6da
RL
38643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38644 (eval $ac_try) 2>&5
38645 ac_status=$?
38646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38647 (exit $ac_status); }; } &&
38648 { ac_try='test -s conftest.$ac_objext'
38649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38650 (eval $ac_try) 2>&5
38651 ac_status=$?
38652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38653 (exit $ac_status); }; }; then
38654 ac_cv_func_which_gethostbyname_r=five
38655else
38656 echo "$as_me: failed program was:" >&5
38657sed 's/^/| /' conftest.$ac_ext >&5
38658
38659fi
38660rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38661
38662fi
38663
38664#
38665# THREE ARGUMENTS
38666# (e.g. AIX, HP-UX, Tru64)
38667#
38668
38669if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
38670
38671cat >conftest.$ac_ext <<_ACEOF
38672/* confdefs.h. */
38673_ACEOF
38674cat confdefs.h >>conftest.$ac_ext
38675cat >>conftest.$ac_ext <<_ACEOF
38676/* end confdefs.h. */
38677#include <netdb.h>
38678int
38679main ()
38680{
38681
38682 char *name = "www.gnu.org";
38683 struct hostent ret;
38684 struct hostent_data data;
38685 (void)gethostbyname_r(name, &ret, &data) /* ; */
38686
38687 ;
38688 return 0;
38689}
38690_ACEOF
38691rm -f conftest.$ac_objext
38692if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38693 (eval $ac_compile) 2>conftest.er1
38694 ac_status=$?
38695 grep -v '^ *+' conftest.er1 >conftest.err
38696 rm -f conftest.er1
38697 cat conftest.err >&5
38698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38699 (exit $ac_status); } &&
f10e38c4 38700 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
004ee6da
RL
38701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38702 (eval $ac_try) 2>&5
38703 ac_status=$?
38704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38705 (exit $ac_status); }; } &&
38706 { ac_try='test -s conftest.$ac_objext'
38707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38708 (eval $ac_try) 2>&5
38709 ac_status=$?
38710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38711 (exit $ac_status); }; }; then
38712 ac_cv_func_which_gethostbyname_r=three
38713else
38714 echo "$as_me: failed program was:" >&5
38715sed 's/^/| /' conftest.$ac_ext >&5
38716
38717fi
38718rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38719
38720fi
38721
38722################################################################
38723
38724
38725fi
38726
38727case "$ac_cv_func_which_gethostbyname_r" in
38728 three)
38729 echo "$as_me:$LINENO: result: three" >&5
38730echo "${ECHO_T}three" >&6
38731 cat >>confdefs.h <<\_ACEOF
38732#define HAVE_FUNC_GETHOSTBYNAME_R_3 1
38733_ACEOF
38734
38735 ;;
38736
38737 five)
38738 echo "$as_me:$LINENO: result: five" >&5
38739echo "${ECHO_T}five" >&6
38740 cat >>confdefs.h <<\_ACEOF
38741#define HAVE_FUNC_GETHOSTBYNAME_R_5 1
38742_ACEOF
38743
38744 ;;
38745
38746 six)
38747 echo "$as_me:$LINENO: result: six" >&5
38748echo "${ECHO_T}six" >&6
38749 cat >>confdefs.h <<\_ACEOF
38750#define HAVE_FUNC_GETHOSTBYNAME_R_6 1
38751_ACEOF
38752
38753 ;;
38754
38755 no)
38756 echo "$as_me:$LINENO: result: cannot find function declaration in netdb.h" >&5
38757echo "${ECHO_T}cannot find function declaration in netdb.h" >&6
38758 ;;
38759
38760 unknown)
38761 echo "$as_me:$LINENO: result: can't tell" >&5
38762echo "${ECHO_T}can't tell" >&6
38763 ;;
38764
38765 *)
38766 { { echo "$as_me:$LINENO: error: internal error" >&5
38767echo "$as_me: error: internal error" >&2;}
38768 { (exit 1); exit 1; }; }
38769 ;;
38770esac
38771
5ec3bc43
JS
38772ac_ext=cc
38773ac_cpp='$CXXCPP $CPPFLAGS'
38774ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38775ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38776ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
004ee6da
RL
38777
38778
38779
38780 if test "x$ac_cv_func_which_gethostbyname_r" = "xno" -o \
38781 "x$ac_cv_func_which_gethostbyname_r" = "xunknown" ; then
38782 echo "$as_me:$LINENO: checking for gethostbyname" >&5
38783echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
38784if test "${ac_cv_func_gethostbyname+set}" = set; then
38785 echo $ECHO_N "(cached) $ECHO_C" >&6
38786else
38787 cat >conftest.$ac_ext <<_ACEOF
38788/* confdefs.h. */
38789_ACEOF
38790cat confdefs.h >>conftest.$ac_ext
38791cat >>conftest.$ac_ext <<_ACEOF
38792/* end confdefs.h. */
38793/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
38794 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38795#define gethostbyname innocuous_gethostbyname
38796
38797/* System header to define __stub macros and hopefully few prototypes,
38798 which can conflict with char gethostbyname (); below.
38799 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38800 <limits.h> exists even on freestanding compilers. */
38801
38802#ifdef __STDC__
38803# include <limits.h>
38804#else
38805# include <assert.h>
38806#endif
38807
38808#undef gethostbyname
38809
38810/* Override any gcc2 internal prototype to avoid an error. */
38811#ifdef __cplusplus
38812extern "C"
38813{
38814#endif
38815/* We use char because int might match the return type of a gcc2
38816 builtin and then its argument prototype would still apply. */
38817char gethostbyname ();
38818/* The GNU C library defines this for functions which it implements
38819 to always fail with ENOSYS. Some functions are actually named
38820 something starting with __ and the normal name is an alias. */
38821#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
38822choke me
38823#else
38824char (*f) () = gethostbyname;
38825#endif
38826#ifdef __cplusplus
38827}
38828#endif
38829
38830int
38831main ()
38832{
38833return f != gethostbyname;
38834 ;
38835 return 0;
38836}
38837_ACEOF
38838rm -f conftest.$ac_objext conftest$ac_exeext
38839if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38840 (eval $ac_link) 2>conftest.er1
38841 ac_status=$?
38842 grep -v '^ *+' conftest.er1 >conftest.err
38843 rm -f conftest.er1
38844 cat conftest.err >&5
38845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38846 (exit $ac_status); } &&
f10e38c4 38847 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
38848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38849 (eval $ac_try) 2>&5
38850 ac_status=$?
38851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38852 (exit $ac_status); }; } &&
38853 { ac_try='test -s conftest$ac_exeext'
38854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38855 (eval $ac_try) 2>&5
38856 ac_status=$?
38857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38858 (exit $ac_status); }; }; then
38859 ac_cv_func_gethostbyname=yes
38860else
38861 echo "$as_me: failed program was:" >&5
38862sed 's/^/| /' conftest.$ac_ext >&5
38863
38864ac_cv_func_gethostbyname=no
38865fi
38866rm -f conftest.err conftest.$ac_objext \
38867 conftest$ac_exeext conftest.$ac_ext
38868fi
38869echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
38870echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
38871if test $ac_cv_func_gethostbyname = yes; then
38872 cat >>confdefs.h <<\_ACEOF
38873#define HAVE_GETHOSTBYNAME 1
38874_ACEOF
38875
38876fi
38877
38878 fi
38879 echo "$as_me:$LINENO: checking for getservbyname_r" >&5
38880echo $ECHO_N "checking for getservbyname_r... $ECHO_C" >&6
004ee6da
RL
38881if test "${ac_cv_func_getservbyname_r+set}" = set; then
38882 echo $ECHO_N "(cached) $ECHO_C" >&6
38883else
38884 cat >conftest.$ac_ext <<_ACEOF
38885/* confdefs.h. */
38886_ACEOF
38887cat confdefs.h >>conftest.$ac_ext
38888cat >>conftest.$ac_ext <<_ACEOF
38889/* end confdefs.h. */
38890/* Define getservbyname_r to an innocuous variant, in case <limits.h> declares getservbyname_r.
38891 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38892#define getservbyname_r innocuous_getservbyname_r
38893
38894/* System header to define __stub macros and hopefully few prototypes,
38895 which can conflict with char getservbyname_r (); below.
38896 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38897 <limits.h> exists even on freestanding compilers. */
38898
38899#ifdef __STDC__
38900# include <limits.h>
38901#else
38902# include <assert.h>
38903#endif
38904
38905#undef getservbyname_r
38906
38907/* Override any gcc2 internal prototype to avoid an error. */
38908#ifdef __cplusplus
38909extern "C"
38910{
38911#endif
38912/* We use char because int might match the return type of a gcc2
38913 builtin and then its argument prototype would still apply. */
38914char getservbyname_r ();
38915/* The GNU C library defines this for functions which it implements
38916 to always fail with ENOSYS. Some functions are actually named
38917 something starting with __ and the normal name is an alias. */
38918#if defined (__stub_getservbyname_r) || defined (__stub___getservbyname_r)
38919choke me
38920#else
38921char (*f) () = getservbyname_r;
38922#endif
38923#ifdef __cplusplus
38924}
38925#endif
38926
38927int
38928main ()
38929{
38930return f != getservbyname_r;
38931 ;
38932 return 0;
38933}
38934_ACEOF
38935rm -f conftest.$ac_objext conftest$ac_exeext
38936if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38937 (eval $ac_link) 2>conftest.er1
38938 ac_status=$?
38939 grep -v '^ *+' conftest.er1 >conftest.err
38940 rm -f conftest.er1
38941 cat conftest.err >&5
38942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38943 (exit $ac_status); } &&
f10e38c4 38944 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
38945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38946 (eval $ac_try) 2>&5
38947 ac_status=$?
38948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38949 (exit $ac_status); }; } &&
38950 { ac_try='test -s conftest$ac_exeext'
38951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38952 (eval $ac_try) 2>&5
38953 ac_status=$?
38954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38955 (exit $ac_status); }; }; then
38956 ac_cv_func_getservbyname_r=yes
38957else
38958 echo "$as_me: failed program was:" >&5
38959sed 's/^/| /' conftest.$ac_ext >&5
38960
38961ac_cv_func_getservbyname_r=no
38962fi
38963rm -f conftest.err conftest.$ac_objext \
38964 conftest$ac_exeext conftest.$ac_ext
38965fi
38966echo "$as_me:$LINENO: result: $ac_cv_func_getservbyname_r" >&5
38967echo "${ECHO_T}$ac_cv_func_getservbyname_r" >&6
38968if test $ac_cv_func_getservbyname_r = yes; then
99879bbf 38969 cat >conftest.$ac_ext <<_ACEOF
004ee6da
RL
38970/* confdefs.h. */
38971_ACEOF
38972cat confdefs.h >>conftest.$ac_ext
38973cat >>conftest.$ac_ext <<_ACEOF
38974/* end confdefs.h. */
99879bbf 38975#include <netdb.h>
004ee6da
RL
38976int
38977main ()
38978{
38979
99879bbf
MR
38980 char *name;
38981 char *proto;
38982 struct servent *se;
38983 struct servent_data data;
38984 (void) getservbyname_r(name, proto, se, &data);
004ee6da
RL
38985
38986 ;
38987 return 0;
38988}
38989_ACEOF
38990rm -f conftest.$ac_objext
38991if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38992 (eval $ac_compile) 2>conftest.er1
38993 ac_status=$?
38994 grep -v '^ *+' conftest.er1 >conftest.err
38995 rm -f conftest.er1
38996 cat conftest.err >&5
38997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38998 (exit $ac_status); } &&
f10e38c4 38999 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
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); }; } &&
39005 { ac_try='test -s conftest.$ac_objext'
39006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39007 (eval $ac_try) 2>&5
39008 ac_status=$?
39009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39010 (exit $ac_status); }; }; then
39011 ac_cv_func_which_getservbyname_r=four
39012else
39013 echo "$as_me: failed program was:" >&5
39014sed 's/^/| /' conftest.$ac_ext >&5
39015
99879bbf 39016cat >conftest.$ac_ext <<_ACEOF
004ee6da
RL
39017/* confdefs.h. */
39018_ACEOF
39019cat confdefs.h >>conftest.$ac_ext
39020cat >>conftest.$ac_ext <<_ACEOF
39021/* end confdefs.h. */
99879bbf 39022#include <netdb.h>
004ee6da
RL
39023int
39024main ()
39025{
39026
99879bbf
MR
39027 char *name;
39028 char *proto;
39029 struct servent *se, *res;
39030 char buffer[2048];
39031 int buflen = 2048;
39032 (void) getservbyname_r(name, proto, se, buffer, buflen, &res);
004ee6da
RL
39033
39034 ;
39035 return 0;
39036}
39037_ACEOF
39038rm -f conftest.$ac_objext
39039if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39040 (eval $ac_compile) 2>conftest.er1
39041 ac_status=$?
39042 grep -v '^ *+' conftest.er1 >conftest.err
39043 rm -f conftest.er1
39044 cat conftest.err >&5
39045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39046 (exit $ac_status); } &&
f10e38c4 39047 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
39048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39049 (eval $ac_try) 2>&5
39050 ac_status=$?
39051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39052 (exit $ac_status); }; } &&
39053 { ac_try='test -s conftest.$ac_objext'
39054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39055 (eval $ac_try) 2>&5
39056 ac_status=$?
39057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39058 (exit $ac_status); }; }; then
39059 ac_cv_func_which_getservbyname_r=six
39060else
39061 echo "$as_me: failed program was:" >&5
39062sed 's/^/| /' conftest.$ac_ext >&5
39063
99879bbf 39064cat >conftest.$ac_ext <<_ACEOF
004ee6da
RL
39065/* confdefs.h. */
39066_ACEOF
39067cat confdefs.h >>conftest.$ac_ext
39068cat >>conftest.$ac_ext <<_ACEOF
39069/* end confdefs.h. */
99879bbf 39070#include <netdb.h>
004ee6da
RL
39071int
39072main ()
39073{
39074
99879bbf
MR
39075 char *name;
39076 char *proto;
39077 struct servent *se;
39078 char buffer[2048];
39079 int buflen = 2048;
39080 (void) getservbyname_r(name, proto, se, buffer, buflen)
004ee6da
RL
39081
39082 ;
39083 return 0;
39084}
39085_ACEOF
39086rm -f conftest.$ac_objext
39087if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39088 (eval $ac_compile) 2>conftest.er1
39089 ac_status=$?
39090 grep -v '^ *+' conftest.er1 >conftest.err
39091 rm -f conftest.er1
39092 cat conftest.err >&5
39093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39094 (exit $ac_status); } &&
f10e38c4 39095 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
39096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39097 (eval $ac_try) 2>&5
39098 ac_status=$?
39099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39100 (exit $ac_status); }; } &&
39101 { ac_try='test -s conftest.$ac_objext'
39102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39103 (eval $ac_try) 2>&5
39104 ac_status=$?
39105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39106 (exit $ac_status); }; }; then
39107 ac_cv_func_which_getservbyname_r=five
39108else
39109 echo "$as_me: failed program was:" >&5
39110sed 's/^/| /' conftest.$ac_ext >&5
39111
39112ac_cv_func_which_getservbyname_r=no
99879bbf 39113
004ee6da
RL
39114fi
39115rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39116
004ee6da
RL
39117fi
39118rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39119
004ee6da
RL
39120fi
39121rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
004ee6da
RL
39122else
39123 ac_cv_func_which_getservbyname_r=no
39124fi
39125
004ee6da
RL
39126
39127if test $ac_cv_func_which_getservbyname_r = six; then
39128 cat >>confdefs.h <<\_ACEOF
39129#define HAVE_FUNC_GETSERVBYNAME_R_6 1
39130_ACEOF
39131
39132elif test $ac_cv_func_which_getservbyname_r = five; then
39133 cat >>confdefs.h <<\_ACEOF
39134#define HAVE_FUNC_GETSERVBYNAME_R_5 1
39135_ACEOF
39136
39137elif test $ac_cv_func_which_getservbyname_r = four; then
39138 cat >>confdefs.h <<\_ACEOF
39139#define HAVE_FUNC_GETSERVBYNAME_R_4 1
39140_ACEOF
39141
004ee6da
RL
39142fi
39143
39144
39145 if test "x$ac_cv_func_which_getservbyname_r" = "xno" -o \
39146 "x$ac_cv_func_which_getservbyname_r" = "xunknown" ; then
39147
39148for ac_func in getservbyname
39149do
39150as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39151echo "$as_me:$LINENO: checking for $ac_func" >&5
39152echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39153if eval "test \"\${$as_ac_var+set}\" = set"; then
39154 echo $ECHO_N "(cached) $ECHO_C" >&6
39155else
39156 cat >conftest.$ac_ext <<_ACEOF
39157/* confdefs.h. */
39158_ACEOF
39159cat confdefs.h >>conftest.$ac_ext
39160cat >>conftest.$ac_ext <<_ACEOF
39161/* end confdefs.h. */
39162/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39163 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39164#define $ac_func innocuous_$ac_func
39165
39166/* System header to define __stub macros and hopefully few prototypes,
39167 which can conflict with char $ac_func (); below.
39168 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39169 <limits.h> exists even on freestanding compilers. */
39170
39171#ifdef __STDC__
39172# include <limits.h>
39173#else
39174# include <assert.h>
39175#endif
39176
39177#undef $ac_func
39178
39179/* Override any gcc2 internal prototype to avoid an error. */
39180#ifdef __cplusplus
39181extern "C"
39182{
39183#endif
39184/* We use char because int might match the return type of a gcc2
39185 builtin and then its argument prototype would still apply. */
39186char $ac_func ();
39187/* The GNU C library defines this for functions which it implements
39188 to always fail with ENOSYS. Some functions are actually named
39189 something starting with __ and the normal name is an alias. */
39190#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39191choke me
39192#else
39193char (*f) () = $ac_func;
39194#endif
39195#ifdef __cplusplus
39196}
39197#endif
39198
39199int
39200main ()
39201{
39202return f != $ac_func;
39203 ;
39204 return 0;
39205}
39206_ACEOF
39207rm -f conftest.$ac_objext conftest$ac_exeext
39208if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39209 (eval $ac_link) 2>conftest.er1
39210 ac_status=$?
39211 grep -v '^ *+' conftest.er1 >conftest.err
39212 rm -f conftest.er1
39213 cat conftest.err >&5
39214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39215 (exit $ac_status); } &&
f10e38c4 39216 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
39217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39218 (eval $ac_try) 2>&5
39219 ac_status=$?
39220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39221 (exit $ac_status); }; } &&
39222 { ac_try='test -s conftest$ac_exeext'
39223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39224 (eval $ac_try) 2>&5
39225 ac_status=$?
39226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39227 (exit $ac_status); }; }; then
39228 eval "$as_ac_var=yes"
39229else
39230 echo "$as_me: failed program was:" >&5
39231sed 's/^/| /' conftest.$ac_ext >&5
39232
39233eval "$as_ac_var=no"
39234fi
39235rm -f conftest.err conftest.$ac_objext \
39236 conftest$ac_exeext conftest.$ac_ext
39237fi
39238echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39239echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39240if test `eval echo '${'$as_ac_var'}'` = yes; then
39241 cat >>confdefs.h <<_ACEOF
39242#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39243_ACEOF
39244 cat >>confdefs.h <<\_ACEOF
39245#define HAVE_GETSERVBYNAME 1
39246_ACEOF
39247
39248fi
39249done
39250
39251 fi
5ec3bc43
JS
39252 ac_ext=c
39253ac_cpp='$CPP $CPPFLAGS'
39254ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39255ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39256ac_compiler_gnu=$ac_cv_c_compiler_gnu
39257
004ee6da 39258
004ee6da
RL
39259if test "$wxUSE_THREADS" = "yes"; then
39260 cat >>confdefs.h <<\_ACEOF
39261#define wxUSE_THREADS 1
39262_ACEOF
39263
39264
39265 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
39266else
39267 if test "$ac_cv_func_strtok_r" = "yes"; then
39268 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
39269echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
39270 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
39271 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_REENTRANT"
39272 echo "$as_me:$LINENO: result: yes" >&5
39273echo "${ECHO_T}yes" >&6
39274 else
39275 echo "$as_me:$LINENO: result: no" >&5
39276echo "${ECHO_T}no" >&6
39277 fi
39278 fi
39279fi
39280
39281if test "$WXGTK20" = 1 ; then
39282 cat >>confdefs.h <<_ACEOF
39283#define __WXGTK20__ $WXGTK20
39284_ACEOF
39285
39286 WXGTK12=1
39287fi
39288
39289if test "$WXGTK12" = 1 ; then
39290 cat >>confdefs.h <<_ACEOF
39291#define __WXGTK12__ $WXGTK12
39292_ACEOF
39293
39294fi
39295
39296if test "$WXGTK127" = 1 ; then
39297 cat >>confdefs.h <<_ACEOF
39298#define __WXGTK127__ $WXGTK127
39299_ACEOF
39300
39301fi
39302
39303if test "$WXGPE" = 1 ; then
39304 cat >>confdefs.h <<_ACEOF
39305#define __WXGPE__ $WXGPE
39306_ACEOF
39307
39308fi
39309
39310DEBUG_CFLAGS=
39311if test "$wxUSE_DEBUG_INFO" = "yes" ; then
39312 DEBUG_CFLAGS="-g"
39313 wxUSE_OPTIMISE=no
39314fi
39315
39316if test "$wxUSE_DEBUG_GDB" = "yes" ; then
39317 wxUSE_DEBUG_INFO=yes
39318 if test "$GCC" = yes; then
39319 DEBUG_CFLAGS="-ggdb"
39320 fi
39321fi
39322
39323if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
39324 cat >>confdefs.h <<\_ACEOF
39325#define WXDEBUG 1
39326_ACEOF
39327
39328 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D__WXDEBUG__"
39329else
39330 if test "$wxUSE_GTK" = 1 ; then
99879bbf
MR
39331 if test "x$wxGTK_VERSION" = "x1" ; then
39332 CPPFLAGS="-DGTK_NO_CHECK_CASTS $CPPFLAGS"
39333 fi
004ee6da
RL
39334 fi
39335fi
39336
39337if test "$wxUSE_MEM_TRACING" = "yes" ; then
39338 cat >>confdefs.h <<\_ACEOF
39339#define wxUSE_MEMORY_TRACING 1
39340_ACEOF
39341
39342 cat >>confdefs.h <<\_ACEOF
39343#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
39344_ACEOF
39345
39346 cat >>confdefs.h <<\_ACEOF
39347#define wxUSE_DEBUG_NEW_ALWAYS 1
39348_ACEOF
39349
39350 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
39351fi
39352
39353if test "$wxUSE_DMALLOC" = "yes" ; then
39354 DMALLOC_LIBS="-ldmallocthcxx"
39355fi
39356
39357PROFILE_FLAGS=
39358if test "$wxUSE_PROFILE" = "yes" ; then
39359 PROFILE_FLAGS=" -pg"
39360fi
39361
39362if test "$GCC" = "yes" ; then
39363 if test "$wxUSE_NO_RTTI" = "yes" ; then
39364 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-rtti"
39365 fi
39366 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
39367 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-exceptions"
39368 fi
39369 if test "$wxUSE_PERMISSIVE" = "yes" ; then
39370 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -fpermissive"
39371 fi
39372
39373 case "${host}" in
39374 powerpc*-*-aix* )
39375 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mminimal-toc"
39376 ;;
39377 *-hppa* )
39378 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -ffunction-sections"
39379 ;;
39380 esac
39381fi
39382
39383OPTIMISE_CFLAGS=
39384if test "$wxUSE_OPTIMISE" = "no" ; then
39385 if test "$GCC" = yes ; then
39386 OPTIMISE_CFLAGS="-O0"
39387 fi
39388else
39389 if test "$GCC" = yes ; then
e5efa97e
VZ
39390 case "${host}" in
39391 *-pc-os2_emx | *-pc-os2-emx )
39392 OPTIMISE_CFLAGS="-O2"
39393 ;;
39394 *)
39395 OPTIMISE_CFLAGS="-O2 -fno-strict-aliasing"
39396 ;;
39397 esac
004ee6da
RL
39398 else
39399 OPTIMISE_CFLAGS="-O"
39400 fi
39401fi
39402
39403
39404if test "x$WXWIN_COMPATIBILITY_2_4" = "xyes"; then
39405 cat >>confdefs.h <<\_ACEOF
39406#define WXWIN_COMPATIBILITY_2_4 1
39407_ACEOF
39408
39409
39410 WXWIN_COMPATIBILITY_2_6="yes"
39411fi
39412
39413if test "x$WXWIN_COMPATIBILITY_2_6" != "xno"; then
39414 cat >>confdefs.h <<\_ACEOF
39415#define WXWIN_COMPATIBILITY_2_6 1
39416_ACEOF
39417
39418fi
39419
39420
39421if test "$wxUSE_GUI" = "yes"; then
39422 cat >>confdefs.h <<\_ACEOF
39423#define wxUSE_GUI 1
39424_ACEOF
39425
39426
39427 fi
39428
39429
39430if test "$wxUSE_UNIX" = "yes"; then
39431 cat >>confdefs.h <<\_ACEOF
39432#define wxUSE_UNIX 1
39433_ACEOF
39434
39435fi
39436
39437
39438if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
39439
39440 HAVE_DL_FUNCS=0
39441 HAVE_SHL_FUNCS=0
39442 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
39443 if test "$USE_DARWIN" = 1; then
39444 HAVE_DL_FUNCS=1
39445 elif test "$USE_DOS" = 1; then
39446 HAVE_DL_FUNCS=0
39447 else
39448
39449for ac_func in dlopen
39450do
39451as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39452echo "$as_me:$LINENO: checking for $ac_func" >&5
39453echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39454if eval "test \"\${$as_ac_var+set}\" = set"; then
39455 echo $ECHO_N "(cached) $ECHO_C" >&6
39456else
39457 cat >conftest.$ac_ext <<_ACEOF
39458/* confdefs.h. */
39459_ACEOF
39460cat confdefs.h >>conftest.$ac_ext
39461cat >>conftest.$ac_ext <<_ACEOF
39462/* end confdefs.h. */
39463/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39464 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39465#define $ac_func innocuous_$ac_func
39466
39467/* System header to define __stub macros and hopefully few prototypes,
39468 which can conflict with char $ac_func (); below.
39469 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39470 <limits.h> exists even on freestanding compilers. */
39471
39472#ifdef __STDC__
39473# include <limits.h>
39474#else
39475# include <assert.h>
39476#endif
39477
39478#undef $ac_func
39479
39480/* Override any gcc2 internal prototype to avoid an error. */
39481#ifdef __cplusplus
39482extern "C"
39483{
39484#endif
39485/* We use char because int might match the return type of a gcc2
39486 builtin and then its argument prototype would still apply. */
39487char $ac_func ();
39488/* The GNU C library defines this for functions which it implements
39489 to always fail with ENOSYS. Some functions are actually named
39490 something starting with __ and the normal name is an alias. */
39491#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39492choke me
39493#else
39494char (*f) () = $ac_func;
39495#endif
39496#ifdef __cplusplus
39497}
39498#endif
39499
39500int
39501main ()
39502{
39503return f != $ac_func;
a848cd7e
SC
39504 ;
39505 return 0;
39506}
39507_ACEOF
39508rm -f conftest.$ac_objext conftest$ac_exeext
39509if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39510 (eval $ac_link) 2>conftest.er1
a848cd7e 39511 ac_status=$?
ac1cb8d3
VS
39512 grep -v '^ *+' conftest.er1 >conftest.err
39513 rm -f conftest.er1
39514 cat conftest.err >&5
a848cd7e
SC
39515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39516 (exit $ac_status); } &&
f10e38c4 39517 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
39523 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39525 (eval $ac_try) 2>&5
39526 ac_status=$?
39527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39528 (exit $ac_status); }; }; then
39529 eval "$as_ac_var=yes"
39530else
39531 echo "$as_me: failed program was:" >&5
39532sed 's/^/| /' conftest.$ac_ext >&5
39533
39534eval "$as_ac_var=no"
39535fi
ac1cb8d3
VS
39536rm -f conftest.err conftest.$ac_objext \
39537 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39538fi
39539echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39540echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39541if test `eval echo '${'$as_ac_var'}'` = yes; then
39542 cat >>confdefs.h <<_ACEOF
39543#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39544_ACEOF
39545
39546 cat >>confdefs.h <<\_ACEOF
39547#define HAVE_DLOPEN 1
39548_ACEOF
39549
39550 HAVE_DL_FUNCS=1
39551
39552else
39553
39554 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
39555echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
39556if test "${ac_cv_lib_dl_dlopen+set}" = set; then
39557 echo $ECHO_N "(cached) $ECHO_C" >&6
39558else
39559 ac_check_lib_save_LIBS=$LIBS
39560LIBS="-ldl $LIBS"
39561cat >conftest.$ac_ext <<_ACEOF
39562/* confdefs.h. */
39563_ACEOF
39564cat confdefs.h >>conftest.$ac_ext
39565cat >>conftest.$ac_ext <<_ACEOF
39566/* end confdefs.h. */
39567
39568/* Override any gcc2 internal prototype to avoid an error. */
39569#ifdef __cplusplus
39570extern "C"
39571#endif
39572/* We use char because int might match the return type of a gcc2
39573 builtin and then its argument prototype would still apply. */
39574char dlopen ();
39575int
39576main ()
39577{
39578dlopen ();
39579 ;
39580 return 0;
39581}
39582_ACEOF
39583rm -f conftest.$ac_objext conftest$ac_exeext
39584if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39585 (eval $ac_link) 2>conftest.er1
a848cd7e 39586 ac_status=$?
ac1cb8d3
VS
39587 grep -v '^ *+' conftest.er1 >conftest.err
39588 rm -f conftest.er1
39589 cat conftest.err >&5
a848cd7e
SC
39590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39591 (exit $ac_status); } &&
f10e38c4 39592 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39594 (eval $ac_try) 2>&5
39595 ac_status=$?
39596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39597 (exit $ac_status); }; } &&
39598 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39600 (eval $ac_try) 2>&5
39601 ac_status=$?
39602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39603 (exit $ac_status); }; }; then
39604 ac_cv_lib_dl_dlopen=yes
39605else
39606 echo "$as_me: failed program was:" >&5
39607sed 's/^/| /' conftest.$ac_ext >&5
39608
39609ac_cv_lib_dl_dlopen=no
39610fi
ac1cb8d3
VS
39611rm -f conftest.err conftest.$ac_objext \
39612 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39613LIBS=$ac_check_lib_save_LIBS
39614fi
39615echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
39616echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
39617if test $ac_cv_lib_dl_dlopen = yes; then
39618
39619 cat >>confdefs.h <<\_ACEOF
39620#define HAVE_DLOPEN 1
39621_ACEOF
39622
39623 HAVE_DL_FUNCS=1
39624 DL_LINK=" -ldl$DL_LINK"
39625
39626else
39627
39628
39629for ac_func in shl_load
39630do
39631as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39632echo "$as_me:$LINENO: checking for $ac_func" >&5
39633echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39634if eval "test \"\${$as_ac_var+set}\" = set"; then
39635 echo $ECHO_N "(cached) $ECHO_C" >&6
39636else
39637 cat >conftest.$ac_ext <<_ACEOF
39638/* confdefs.h. */
39639_ACEOF
39640cat confdefs.h >>conftest.$ac_ext
39641cat >>conftest.$ac_ext <<_ACEOF
39642/* end confdefs.h. */
ac1cb8d3
VS
39643/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39644 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39645#define $ac_func innocuous_$ac_func
39646
a848cd7e
SC
39647/* System header to define __stub macros and hopefully few prototypes,
39648 which can conflict with char $ac_func (); below.
39649 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39650 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 39651
a848cd7e
SC
39652#ifdef __STDC__
39653# include <limits.h>
39654#else
39655# include <assert.h>
39656#endif
ac1cb8d3
VS
39657
39658#undef $ac_func
39659
a848cd7e
SC
39660/* Override any gcc2 internal prototype to avoid an error. */
39661#ifdef __cplusplus
39662extern "C"
39663{
39664#endif
39665/* We use char because int might match the return type of a gcc2
39666 builtin and then its argument prototype would still apply. */
39667char $ac_func ();
39668/* The GNU C library defines this for functions which it implements
39669 to always fail with ENOSYS. Some functions are actually named
39670 something starting with __ and the normal name is an alias. */
39671#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39672choke me
39673#else
39674char (*f) () = $ac_func;
39675#endif
39676#ifdef __cplusplus
39677}
39678#endif
39679
39680int
39681main ()
39682{
39683return f != $ac_func;
39684 ;
39685 return 0;
39686}
39687_ACEOF
39688rm -f conftest.$ac_objext conftest$ac_exeext
39689if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39690 (eval $ac_link) 2>conftest.er1
a848cd7e 39691 ac_status=$?
ac1cb8d3
VS
39692 grep -v '^ *+' conftest.er1 >conftest.err
39693 rm -f conftest.er1
39694 cat conftest.err >&5
a848cd7e
SC
39695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39696 (exit $ac_status); } &&
f10e38c4 39697 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39699 (eval $ac_try) 2>&5
39700 ac_status=$?
39701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39702 (exit $ac_status); }; } &&
39703 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39705 (eval $ac_try) 2>&5
39706 ac_status=$?
39707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39708 (exit $ac_status); }; }; then
39709 eval "$as_ac_var=yes"
39710else
39711 echo "$as_me: failed program was:" >&5
39712sed 's/^/| /' conftest.$ac_ext >&5
39713
39714eval "$as_ac_var=no"
39715fi
ac1cb8d3
VS
39716rm -f conftest.err conftest.$ac_objext \
39717 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39718fi
39719echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39720echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39721if test `eval echo '${'$as_ac_var'}'` = yes; then
39722 cat >>confdefs.h <<_ACEOF
39723#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39724_ACEOF
39725
39726 cat >>confdefs.h <<\_ACEOF
39727#define HAVE_SHL_LOAD 1
39728_ACEOF
39729
39730 HAVE_SHL_FUNCS=1
39731
39732else
39733
39734 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
39735echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
39736if test "${ac_cv_lib_shl_load_dld+set}" = set; then
39737 echo $ECHO_N "(cached) $ECHO_C" >&6
39738else
39739 ac_check_lib_save_LIBS=$LIBS
39740LIBS="-lshl_load $LIBS"
39741cat >conftest.$ac_ext <<_ACEOF
39742/* confdefs.h. */
39743_ACEOF
39744cat confdefs.h >>conftest.$ac_ext
39745cat >>conftest.$ac_ext <<_ACEOF
39746/* end confdefs.h. */
39747
39748/* Override any gcc2 internal prototype to avoid an error. */
39749#ifdef __cplusplus
39750extern "C"
39751#endif
39752/* We use char because int might match the return type of a gcc2
39753 builtin and then its argument prototype would still apply. */
39754char dld ();
39755int
39756main ()
39757{
39758dld ();
39759 ;
39760 return 0;
39761}
39762_ACEOF
39763rm -f conftest.$ac_objext conftest$ac_exeext
39764if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39765 (eval $ac_link) 2>conftest.er1
a848cd7e 39766 ac_status=$?
ac1cb8d3
VS
39767 grep -v '^ *+' conftest.er1 >conftest.err
39768 rm -f conftest.er1
39769 cat conftest.err >&5
a848cd7e
SC
39770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39771 (exit $ac_status); } &&
f10e38c4 39772 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39774 (eval $ac_try) 2>&5
39775 ac_status=$?
39776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39777 (exit $ac_status); }; } &&
39778 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39780 (eval $ac_try) 2>&5
39781 ac_status=$?
39782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39783 (exit $ac_status); }; }; then
39784 ac_cv_lib_shl_load_dld=yes
39785else
39786 echo "$as_me: failed program was:" >&5
39787sed 's/^/| /' conftest.$ac_ext >&5
39788
39789ac_cv_lib_shl_load_dld=no
39790fi
ac1cb8d3
VS
39791rm -f conftest.err conftest.$ac_objext \
39792 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39793LIBS=$ac_check_lib_save_LIBS
39794fi
39795echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
39796echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
39797if test $ac_cv_lib_shl_load_dld = yes; then
39798
39799 HAVE_SHL_FUNCS=1
39800 DL_LINK=" -ldld$DL_LINK"
39801
39802fi
39803
39804
39805fi
39806done
39807
39808
39809fi
39810
39811
39812fi
39813done
39814
39815
39816 if test "$HAVE_DL_FUNCS" = 1; then
39817
39818for ac_func in dlerror
39819do
39820as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39821echo "$as_me:$LINENO: checking for $ac_func" >&5
39822echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39823if eval "test \"\${$as_ac_var+set}\" = set"; then
39824 echo $ECHO_N "(cached) $ECHO_C" >&6
39825else
39826 cat >conftest.$ac_ext <<_ACEOF
39827/* confdefs.h. */
39828_ACEOF
39829cat confdefs.h >>conftest.$ac_ext
39830cat >>conftest.$ac_ext <<_ACEOF
39831/* end confdefs.h. */
ac1cb8d3
VS
39832/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39833 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39834#define $ac_func innocuous_$ac_func
39835
a848cd7e
SC
39836/* System header to define __stub macros and hopefully few prototypes,
39837 which can conflict with char $ac_func (); below.
39838 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39839 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 39840
a848cd7e
SC
39841#ifdef __STDC__
39842# include <limits.h>
39843#else
39844# include <assert.h>
39845#endif
ac1cb8d3
VS
39846
39847#undef $ac_func
39848
a848cd7e
SC
39849/* Override any gcc2 internal prototype to avoid an error. */
39850#ifdef __cplusplus
39851extern "C"
39852{
39853#endif
39854/* We use char because int might match the return type of a gcc2
39855 builtin and then its argument prototype would still apply. */
39856char $ac_func ();
39857/* The GNU C library defines this for functions which it implements
39858 to always fail with ENOSYS. Some functions are actually named
39859 something starting with __ and the normal name is an alias. */
39860#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39861choke me
39862#else
39863char (*f) () = $ac_func;
39864#endif
39865#ifdef __cplusplus
39866}
39867#endif
39868
39869int
39870main ()
39871{
39872return f != $ac_func;
39873 ;
39874 return 0;
39875}
39876_ACEOF
39877rm -f conftest.$ac_objext conftest$ac_exeext
39878if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39879 (eval $ac_link) 2>conftest.er1
a848cd7e 39880 ac_status=$?
ac1cb8d3
VS
39881 grep -v '^ *+' conftest.er1 >conftest.err
39882 rm -f conftest.er1
39883 cat conftest.err >&5
a848cd7e
SC
39884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39885 (exit $ac_status); } &&
f10e38c4 39886 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39888 (eval $ac_try) 2>&5
39889 ac_status=$?
39890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39891 (exit $ac_status); }; } &&
39892 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39894 (eval $ac_try) 2>&5
39895 ac_status=$?
39896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39897 (exit $ac_status); }; }; then
39898 eval "$as_ac_var=yes"
39899else
39900 echo "$as_me: failed program was:" >&5
39901sed 's/^/| /' conftest.$ac_ext >&5
39902
39903eval "$as_ac_var=no"
39904fi
ac1cb8d3
VS
39905rm -f conftest.err conftest.$ac_objext \
39906 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39907fi
39908echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39909echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39910if test `eval echo '${'$as_ac_var'}'` = yes; then
39911 cat >>confdefs.h <<_ACEOF
39912#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39913_ACEOF
39914 cat >>confdefs.h <<\_ACEOF
39915#define HAVE_DLERROR 1
39916_ACEOF
39917
39918else
39919
39920 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
39921echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
39922if test "${ac_cv_lib_dl_dlerror+set}" = set; then
39923 echo $ECHO_N "(cached) $ECHO_C" >&6
39924else
39925 ac_check_lib_save_LIBS=$LIBS
39926LIBS="-ldl $LIBS"
39927cat >conftest.$ac_ext <<_ACEOF
39928/* confdefs.h. */
39929_ACEOF
39930cat confdefs.h >>conftest.$ac_ext
39931cat >>conftest.$ac_ext <<_ACEOF
39932/* end confdefs.h. */
39933
39934/* Override any gcc2 internal prototype to avoid an error. */
39935#ifdef __cplusplus
39936extern "C"
39937#endif
39938/* We use char because int might match the return type of a gcc2
39939 builtin and then its argument prototype would still apply. */
39940char dlerror ();
39941int
39942main ()
39943{
39944dlerror ();
39945 ;
39946 return 0;
39947}
39948_ACEOF
39949rm -f conftest.$ac_objext conftest$ac_exeext
39950if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39951 (eval $ac_link) 2>conftest.er1
a848cd7e 39952 ac_status=$?
ac1cb8d3
VS
39953 grep -v '^ *+' conftest.er1 >conftest.err
39954 rm -f conftest.er1
39955 cat conftest.err >&5
a848cd7e
SC
39956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39957 (exit $ac_status); } &&
f10e38c4 39958 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39960 (eval $ac_try) 2>&5
39961 ac_status=$?
39962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39963 (exit $ac_status); }; } &&
39964 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39966 (eval $ac_try) 2>&5
39967 ac_status=$?
39968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39969 (exit $ac_status); }; }; then
39970 ac_cv_lib_dl_dlerror=yes
39971else
39972 echo "$as_me: failed program was:" >&5
39973sed 's/^/| /' conftest.$ac_ext >&5
39974
39975ac_cv_lib_dl_dlerror=no
39976fi
ac1cb8d3
VS
39977rm -f conftest.err conftest.$ac_objext \
39978 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39979LIBS=$ac_check_lib_save_LIBS
39980fi
39981echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
39982echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
39983if test $ac_cv_lib_dl_dlerror = yes; then
39984 cat >>confdefs.h <<\_ACEOF
39985#define HAVE_DLERROR 1
39986_ACEOF
39987
39988fi
39989
39990
39991
39992fi
39993done
39994
39995 fi
39996 fi
39997
39998 if test "$HAVE_DL_FUNCS" = 0; then
39999 if test "$HAVE_SHL_FUNCS" = 0; then
47a7e797 40000 if test "$USE_UNIX" = 1 -o "$USE_DOS" = 1; then
a848cd7e
SC
40001 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
40002echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
40003 wxUSE_DYNAMIC_LOADER=no
40004 wxUSE_DYNLIB_CLASS=no
40005 else
40006 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
40007echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
40008 fi
40009 fi
40010 fi
40011 fi
40012fi
40013
40014if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
40015 cat >>confdefs.h <<\_ACEOF
40016#define wxUSE_DYNAMIC_LOADER 1
40017_ACEOF
40018
40019fi
40020if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
40021 cat >>confdefs.h <<\_ACEOF
40022#define wxUSE_DYNLIB_CLASS 1
40023_ACEOF
40024
40025fi
40026
40027
40028
40029if test "$wxUSE_PLUGINS" = "yes" ; then
40030 if test "$wxUSE_SHARED" = "no" ; then
40031 { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
40032echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
40033 wxUSE_PLUGINS=no
40034 fi
40035 if test "$wxUSE_MONOLITHIC" = "yes" ; then
40036 { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
40037echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
40038 wxUSE_PLUGINS=no
40039 fi
40040 if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
40041 { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
40042echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
40043 wxUSE_PLUGINS=no
40044 fi
40045 if test "$wxUSE_PLUGINS" = "yes" ; then
40046 cat >>confdefs.h <<\_ACEOF
40047#define wxUSE_PLUGINS 1
40048_ACEOF
40049
40050 fi
40051fi
40052
40053
40054if test "$wxUSE_STL" = "yes"; then
40055 cat >>confdefs.h <<\_ACEOF
40056#define wxUSE_STL 1
40057_ACEOF
40058
40059fi
40060
40061if test "$wxUSE_APPLE_IEEE" = "yes"; then
40062 cat >>confdefs.h <<\_ACEOF
40063#define wxUSE_APPLE_IEEE 1
40064_ACEOF
40065
40066fi
40067
40068if test "$wxUSE_TIMER" = "yes"; then
40069 cat >>confdefs.h <<\_ACEOF
40070#define wxUSE_TIMER 1
40071_ACEOF
40072
40073fi
40074
9c112555 40075if test "$USE_UNIX" = "1" ; then
d12aef51
VZ
40076 echo "$as_me:$LINENO: checking for ioctl() in sys/soundcard.h" >&5
40077echo $ECHO_N "checking for ioctl() in sys/soundcard.h... $ECHO_C" >&6
40078if test "${ac_cv_header_sys_soundcard+set}" = set; then
a848cd7e 40079 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e 40080else
d12aef51
VZ
40081
40082 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
40083/* confdefs.h. */
40084_ACEOF
40085cat confdefs.h >>conftest.$ac_ext
40086cat >>conftest.$ac_ext <<_ACEOF
40087/* end confdefs.h. */
d12aef51
VZ
40088
40089 #include <sys/soundcard.h>
40090
40091int
40092main ()
40093{
40094
40095 ioctl(0, SNDCTL_DSP_SYNC, 0);
40096
40097 ;
40098 return 0;
40099}
a848cd7e 40100_ACEOF
d12aef51
VZ
40101rm -f conftest.$ac_objext conftest$ac_exeext
40102if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40103 (eval $ac_link) 2>conftest.er1
a848cd7e 40104 ac_status=$?
ac1cb8d3
VS
40105 grep -v '^ *+' conftest.er1 >conftest.err
40106 rm -f conftest.er1
40107 cat conftest.err >&5
a848cd7e
SC
40108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40109 (exit $ac_status); } &&
f10e38c4 40110 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40112 (eval $ac_try) 2>&5
40113 ac_status=$?
40114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40115 (exit $ac_status); }; } &&
d12aef51 40116 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40118 (eval $ac_try) 2>&5
40119 ac_status=$?
40120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40121 (exit $ac_status); }; }; then
d12aef51 40122 ac_cv_header_sys_soundcard=yes
a848cd7e
SC
40123else
40124 echo "$as_me: failed program was:" >&5
40125sed 's/^/| /' conftest.$ac_ext >&5
40126
a848cd7e 40127
d12aef51
VZ
40128 saveLibs="$LIBS"
40129 LIBS="$saveLibs -lossaudio"
40130 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
40131/* confdefs.h. */
40132_ACEOF
40133cat confdefs.h >>conftest.$ac_ext
40134cat >>conftest.$ac_ext <<_ACEOF
40135/* end confdefs.h. */
d12aef51
VZ
40136
40137 #include <sys/soundcard.h>
40138
40139int
40140main ()
40141{
40142
40143 ioctl(0, SNDCTL_DSP_SYNC, 0);
40144
40145 ;
40146 return 0;
40147}
a848cd7e 40148_ACEOF
d12aef51
VZ
40149rm -f conftest.$ac_objext conftest$ac_exeext
40150if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40151 (eval $ac_link) 2>conftest.er1
a848cd7e
SC
40152 ac_status=$?
40153 grep -v '^ *+' conftest.er1 >conftest.err
40154 rm -f conftest.er1
40155 cat conftest.err >&5
40156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d12aef51 40157 (exit $ac_status); } &&
f10e38c4 40158 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d12aef51
VZ
40159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40160 (eval $ac_try) 2>&5
40161 ac_status=$?
40162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40163 (exit $ac_status); }; } &&
40164 { ac_try='test -s conftest$ac_exeext'
40165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40166 (eval $ac_try) 2>&5
40167 ac_status=$?
40168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40169 (exit $ac_status); }; }; then
40170 ac_cv_header_sys_soundcard=yes
a848cd7e
SC
40171else
40172 echo "$as_me: failed program was:" >&5
40173sed 's/^/| /' conftest.$ac_ext >&5
40174
a848cd7e 40175
d12aef51
VZ
40176 LIBS="$saveLibs"
40177 ac_cv_header_sys_soundcard=no
40178
40179
a848cd7e 40180fi
d12aef51
VZ
40181rm -f conftest.err conftest.$ac_objext \
40182 conftest$ac_exeext conftest.$ac_ext
40183
a848cd7e
SC
40184
40185fi
d12aef51
VZ
40186rm -f conftest.err conftest.$ac_objext \
40187 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40188
40189fi
d12aef51
VZ
40190echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard" >&5
40191echo "${ECHO_T}$ac_cv_header_sys_soundcard" >&6
a848cd7e 40192
d12aef51
VZ
40193 if test "$ac_cv_header_sys_soundcard" = "yes"; then
40194 cat >>confdefs.h <<\_ACEOF
40195#define HAVE_SYS_SOUNDCARD_H 1
40196_ACEOF
a848cd7e 40197
d12aef51
VZ
40198 else
40199 DISABLED_CONTRIB="$DISABLED_CONTRIB mmedia"
40200 fi
9c112555
MW
40201fi
40202WITH_PLUGIN_SDL=0
40203if test "$wxUSE_SOUND" = "yes"; then
40204 if test "$USE_UNIX" = "1" ; then
a848cd7e
SC
40205 if test "$wxUSE_LIBSDL" != "no"; then
40206
40207# Check whether --with-sdl-prefix or --without-sdl-prefix was given.
40208if test "${with_sdl_prefix+set}" = set; then
40209 withval="$with_sdl_prefix"
40210 sdl_prefix="$withval"
40211else
40212 sdl_prefix=""
40213fi;
40214
40215# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
40216if test "${with_sdl_exec_prefix+set}" = set; then
40217 withval="$with_sdl_exec_prefix"
40218 sdl_exec_prefix="$withval"
40219else
40220 sdl_exec_prefix=""
40221fi;
40222# Check whether --enable-sdltest or --disable-sdltest was given.
40223if test "${enable_sdltest+set}" = set; then
40224 enableval="$enable_sdltest"
40225
40226else
40227 enable_sdltest=yes
40228fi;
40229
40230 if test x$sdl_exec_prefix != x ; then
40231 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
40232 if test x${SDL_CONFIG+set} != xset ; then
40233 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
40234 fi
40235 fi
40236 if test x$sdl_prefix != x ; then
40237 sdl_args="$sdl_args --prefix=$sdl_prefix"
40238 if test x${SDL_CONFIG+set} != xset ; then
40239 SDL_CONFIG=$sdl_prefix/bin/sdl-config
40240 fi
40241 fi
40242
40243
40244 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
40245 # Extract the first word of "sdl-config", so it can be a program name with args.
40246set dummy sdl-config; ac_word=$2
40247echo "$as_me:$LINENO: checking for $ac_word" >&5
40248echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40249if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
40250 echo $ECHO_N "(cached) $ECHO_C" >&6
40251else
40252 case $SDL_CONFIG in
40253 [\\/]* | ?:[\\/]*)
40254 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
40255 ;;
40256 *)
40257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40258for as_dir in $PATH
40259do
40260 IFS=$as_save_IFS
40261 test -z "$as_dir" && as_dir=.
40262 for ac_exec_ext in '' $ac_executable_extensions; do
40263 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40264 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
40265 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40266 break 2
40267 fi
40268done
40269done
40270
40271 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
40272 ;;
40273esac
40274fi
40275SDL_CONFIG=$ac_cv_path_SDL_CONFIG
40276
40277if test -n "$SDL_CONFIG"; then
40278 echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
40279echo "${ECHO_T}$SDL_CONFIG" >&6
40280else
40281 echo "$as_me:$LINENO: result: no" >&5
40282echo "${ECHO_T}no" >&6
40283fi
40284
40285 min_sdl_version=1.2.0
40286 echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
40287echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
40288 no_sdl=""
40289 if test "$SDL_CONFIG" = "no" ; then
40290 no_sdl=yes
40291 else
40292 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
40293 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
40294
40295 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
40296 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
40297 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
40298 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
40299 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
40300 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
40301 if test "x$enable_sdltest" = "xyes" ; then
40302 ac_save_CFLAGS="$CFLAGS"
94acd38e 40303 ac_save_CXXFLAGS="$CXXFLAGS"
a848cd7e
SC
40304 ac_save_LIBS="$LIBS"
40305 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 40306 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
40307 LIBS="$LIBS $SDL_LIBS"
40308 rm -f conf.sdltest
40309 if test "$cross_compiling" = yes; then
40310 echo $ac_n "cross compiling; assumed OK... $ac_c"
40311else
40312 cat >conftest.$ac_ext <<_ACEOF
40313/* confdefs.h. */
40314_ACEOF
40315cat confdefs.h >>conftest.$ac_ext
40316cat >>conftest.$ac_ext <<_ACEOF
40317/* end confdefs.h. */
40318
40319#include <stdio.h>
40320#include <stdlib.h>
40321#include <string.h>
40322#include "SDL.h"
40323
40324char*
40325my_strdup (char *str)
40326{
40327 char *new_str;
40328
40329 if (str)
40330 {
40331 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
40332 strcpy (new_str, str);
40333 }
40334 else
40335 new_str = NULL;
40336
40337 return new_str;
40338}
40339
40340int main (int argc, char *argv[])
40341{
40342 int major, minor, micro;
40343 char *tmp_version;
40344
40345 /* This hangs on some systems (?)
40346 system ("touch conf.sdltest");
40347 */
40348 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
40349
40350 /* HP/UX 9 (%@#!) writes to sscanf strings */
40351 tmp_version = my_strdup("$min_sdl_version");
40352 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
40353 printf("%s, bad version string\n", "$min_sdl_version");
40354 exit(1);
40355 }
40356
40357 if (($sdl_major_version > major) ||
40358 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
40359 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
40360 {
40361 return 0;
40362 }
40363 else
40364 {
40365 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
40366 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
40367 printf("*** best to upgrade to the required version.\n");
40368 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
40369 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
40370 printf("*** config.cache before re-running configure\n");
40371 return 1;
40372 }
40373}
40374
40375
40376_ACEOF
40377rm -f conftest$ac_exeext
40378if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40379 (eval $ac_link) 2>&5
40380 ac_status=$?
40381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40382 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40384 (eval $ac_try) 2>&5
40385 ac_status=$?
40386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40387 (exit $ac_status); }; }; then
40388 :
40389else
40390 echo "$as_me: program exited with status $ac_status" >&5
40391echo "$as_me: failed program was:" >&5
40392sed 's/^/| /' conftest.$ac_ext >&5
40393
40394( exit $ac_status )
40395no_sdl=yes
40396fi
ac1cb8d3 40397rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
40398fi
40399 CFLAGS="$ac_save_CFLAGS"
94acd38e 40400 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
40401 LIBS="$ac_save_LIBS"
40402 fi
40403 fi
40404 if test "x$no_sdl" = x ; then
40405 echo "$as_me:$LINENO: result: yes" >&5
40406echo "${ECHO_T}yes" >&6
40407
40408 EXTRALIBS_SDL="$SDL_LIBS"
c92ad099 40409 CXXFLAGS="$SDL_CFLAGS $CXXFLAGS"
a848cd7e
SC
40410 cat >>confdefs.h <<\_ACEOF
40411#define wxUSE_LIBSDL 1
40412_ACEOF
40413
40414
40415 else
40416 echo "$as_me:$LINENO: result: no" >&5
40417echo "${ECHO_T}no" >&6
40418 if test "$SDL_CONFIG" = "no" ; then
40419 echo "*** The sdl-config script installed by SDL could not be found"
40420 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
40421 echo "*** your path, or set the SDL_CONFIG environment variable to the"
40422 echo "*** full path to sdl-config."
40423 else
40424 if test -f conf.sdltest ; then
40425 :
40426 else
40427 echo "*** Could not run SDL test program, checking why..."
40428 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 40429 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
40430 LIBS="$LIBS $SDL_LIBS"
40431 cat >conftest.$ac_ext <<_ACEOF
40432/* confdefs.h. */
40433_ACEOF
40434cat confdefs.h >>conftest.$ac_ext
40435cat >>conftest.$ac_ext <<_ACEOF
40436/* end confdefs.h. */
40437
40438#include <stdio.h>
40439#include "SDL.h"
40440
40441int main(int argc, char *argv[])
40442{ return 0; }
40443#undef main
40444#define main K_and_R_C_main
40445
40446int
40447main ()
40448{
40449 return 0;
40450 ;
40451 return 0;
40452}
40453_ACEOF
40454rm -f conftest.$ac_objext conftest$ac_exeext
40455if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40456 (eval $ac_link) 2>conftest.er1
a848cd7e 40457 ac_status=$?
ac1cb8d3
VS
40458 grep -v '^ *+' conftest.er1 >conftest.err
40459 rm -f conftest.er1
40460 cat conftest.err >&5
a848cd7e
SC
40461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40462 (exit $ac_status); } &&
f10e38c4 40463 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40465 (eval $ac_try) 2>&5
40466 ac_status=$?
40467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40468 (exit $ac_status); }; } &&
40469 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40471 (eval $ac_try) 2>&5
40472 ac_status=$?
40473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40474 (exit $ac_status); }; }; then
40475 echo "*** The test program compiled, but did not run. This usually means"
40476 echo "*** that the run-time linker is not finding SDL or finding the wrong"
40477 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
40478 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
40479 echo "*** to the installed location Also, make sure you have run ldconfig if that"
40480 echo "*** is required on your system"
40481 echo "***"
40482 echo "*** If you have an old version installed, it is best to remove it, although"
40483 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
40484else
40485 echo "$as_me: failed program was:" >&5
40486sed 's/^/| /' conftest.$ac_ext >&5
40487
40488 echo "*** The test program failed to compile or link. See the file config.log for the"
40489 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
40490 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
40491 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
40492fi
ac1cb8d3
VS
40493rm -f conftest.err conftest.$ac_objext \
40494 conftest$ac_exeext conftest.$ac_ext
a848cd7e 40495 CFLAGS="$ac_save_CFLAGS"
94acd38e 40496 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
40497 LIBS="$ac_save_LIBS"
40498 fi
40499 fi
40500 SDL_CFLAGS=""
40501 SDL_LIBS=""
40502 wxUSE_LIBSDL="no"
40503 fi
40504
40505
40506 rm -f conf.sdltest
40507
40508 if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
40509 WITH_PLUGIN_SDL=1
40510 fi
40511 fi
40512 fi
40513
40514 cat >>confdefs.h <<\_ACEOF
40515#define wxUSE_SOUND 1
40516_ACEOF
40517
40518 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
40519fi
40520
d1c38808
VZ
40521if test "$WXGTK20" = 1; then
40522 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
40523 if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
40524
40525
40526 succeeded=no
40527
40528 if test -z "$PKG_CONFIG"; then
40529 # Extract the first word of "pkg-config", so it can be a program name with args.
40530set dummy pkg-config; ac_word=$2
40531echo "$as_me:$LINENO: checking for $ac_word" >&5
40532echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40533if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
40534 echo $ECHO_N "(cached) $ECHO_C" >&6
40535else
40536 case $PKG_CONFIG in
40537 [\\/]* | ?:[\\/]*)
40538 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
40539 ;;
40540 *)
40541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40542for as_dir in $PATH
40543do
40544 IFS=$as_save_IFS
40545 test -z "$as_dir" && as_dir=.
40546 for ac_exec_ext in '' $ac_executable_extensions; do
40547 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40548 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
40549 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40550 break 2
40551 fi
40552done
40553done
40554
40555 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
40556 ;;
40557esac
40558fi
40559PKG_CONFIG=$ac_cv_path_PKG_CONFIG
40560
40561if test -n "$PKG_CONFIG"; then
40562 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
40563echo "${ECHO_T}$PKG_CONFIG" >&6
40564else
40565 echo "$as_me:$LINENO: result: no" >&5
40566echo "${ECHO_T}no" >&6
40567fi
40568
40569 fi
40570
40571 if test "$PKG_CONFIG" = "no" ; then
40572 echo "*** The pkg-config script could not be found. Make sure it is"
40573 echo "*** in your path, or set the PKG_CONFIG environment variable"
40574 echo "*** to the full path to pkg-config."
40575 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
40576 else
40577 PKG_CONFIG_MIN_VERSION=0.9.0
40578 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
ffa762ff
VS
40579 echo "$as_me:$LINENO: checking for libgnomeprintui-2.2 >= 2.8" >&5
40580echo $ECHO_N "checking for libgnomeprintui-2.2 >= 2.8... $ECHO_C" >&6
d1c38808 40581
ffa762ff 40582 if $PKG_CONFIG --exists "libgnomeprintui-2.2 >= 2.8" ; then
d1c38808
VZ
40583 echo "$as_me:$LINENO: result: yes" >&5
40584echo "${ECHO_T}yes" >&6
40585 succeeded=yes
40586
40587 echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_CFLAGS" >&5
40588echo $ECHO_N "checking LIBGNOMEPRINTUI_CFLAGS... $ECHO_C" >&6
ffa762ff 40589 LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
40590 echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_CFLAGS" >&5
40591echo "${ECHO_T}$LIBGNOMEPRINTUI_CFLAGS" >&6
40592
40593 echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_LIBS" >&5
40594echo $ECHO_N "checking LIBGNOMEPRINTUI_LIBS... $ECHO_C" >&6
ffa762ff 40595 LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
40596 echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_LIBS" >&5
40597echo "${ECHO_T}$LIBGNOMEPRINTUI_LIBS" >&6
40598 else
40599 LIBGNOMEPRINTUI_CFLAGS=""
40600 LIBGNOMEPRINTUI_LIBS=""
40601 ## If we have a custom action on failure, don't print errors, but
40602 ## do set a variable so people can do so.
ffa762ff 40603 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
40604
40605 fi
40606
40607
40608
40609 else
40610 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
40611 echo "*** See http://www.freedesktop.org/software/pkgconfig"
40612 fi
40613 fi
40614
40615 if test $succeeded = yes; then
40616
c92ad099 40617 CXXFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CXXFLAGS"
d1c38808
VZ
40618 cat >>confdefs.h <<\_ACEOF
40619#define wxUSE_LIBGNOMEPRINT 1
40620_ACEOF
40621
40622
40623 else
40624
40625 { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
40626echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
40627 wxUSE_LIBGNOMEPRINT="no"
40628
40629
40630 fi
40631
40632 fi
40633 fi
40634fi
40635
3565d135
RR
40636if test "$WXGTK20" = 1; then
40637 if test "$wxUSE_LIBHILDON" = "yes" ; then
40638
40639 succeeded=no
40640
40641 if test -z "$PKG_CONFIG"; then
40642 # Extract the first word of "pkg-config", so it can be a program name with args.
40643set dummy pkg-config; ac_word=$2
40644echo "$as_me:$LINENO: checking for $ac_word" >&5
40645echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40646if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
40647 echo $ECHO_N "(cached) $ECHO_C" >&6
40648else
40649 case $PKG_CONFIG in
40650 [\\/]* | ?:[\\/]*)
40651 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
40652 ;;
40653 *)
40654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40655for as_dir in $PATH
40656do
40657 IFS=$as_save_IFS
40658 test -z "$as_dir" && as_dir=.
40659 for ac_exec_ext in '' $ac_executable_extensions; do
40660 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40661 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
40662 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40663 break 2
40664 fi
40665done
40666done
40667
40668 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
40669 ;;
40670esac
40671fi
40672PKG_CONFIG=$ac_cv_path_PKG_CONFIG
40673
40674if test -n "$PKG_CONFIG"; then
40675 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
40676echo "${ECHO_T}$PKG_CONFIG" >&6
40677else
40678 echo "$as_me:$LINENO: result: no" >&5
40679echo "${ECHO_T}no" >&6
40680fi
40681
40682 fi
40683
40684 if test "$PKG_CONFIG" = "no" ; then
40685 echo "*** The pkg-config script could not be found. Make sure it is"
40686 echo "*** in your path, or set the PKG_CONFIG environment variable"
40687 echo "*** to the full path to pkg-config."
40688 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
40689 else
40690 PKG_CONFIG_MIN_VERSION=0.9.0
40691 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
40692 echo "$as_me:$LINENO: checking for hildon-lgpl >= 0.9" >&5
40693echo $ECHO_N "checking for hildon-lgpl >= 0.9... $ECHO_C" >&6
40694
40695 if $PKG_CONFIG --exists "hildon-lgpl >= 0.9" ; then
40696 echo "$as_me:$LINENO: result: yes" >&5
40697echo "${ECHO_T}yes" >&6
40698 succeeded=yes
40699
40700 echo "$as_me:$LINENO: checking HILDON_CFLAGS" >&5
40701echo $ECHO_N "checking HILDON_CFLAGS... $ECHO_C" >&6
40702 HILDON_CFLAGS=`$PKG_CONFIG --cflags "hildon-lgpl >= 0.9"`
40703 echo "$as_me:$LINENO: result: $HILDON_CFLAGS" >&5
40704echo "${ECHO_T}$HILDON_CFLAGS" >&6
40705
40706 echo "$as_me:$LINENO: checking HILDON_LIBS" >&5
40707echo $ECHO_N "checking HILDON_LIBS... $ECHO_C" >&6
40708 HILDON_LIBS=`$PKG_CONFIG --libs "hildon-lgpl >= 0.9"`
40709 echo "$as_me:$LINENO: result: $HILDON_LIBS" >&5
40710echo "${ECHO_T}$HILDON_LIBS" >&6
40711 else
40712 HILDON_CFLAGS=""
40713 HILDON_LIBS=""
40714 ## If we have a custom action on failure, don't print errors, but
40715 ## do set a variable so people can do so.
40716 HILDON_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
40717
40718 fi
40719
40720
40721
40722 else
40723 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
40724 echo "*** See http://www.freedesktop.org/software/pkgconfig"
40725 fi
40726 fi
40727
40728 if test $succeeded = yes; then
40729
40730 EXTRALIBS_HILDON="$HILDON_LIBS"
40731 CXXFLAGS="$CXXFLAGS $HILDON_CFLAGS"
40732 cat >>confdefs.h <<\_ACEOF
40733#define wxUSE_LIBHILDON 1
40734_ACEOF
40735
40736
40737 else
40738
40739 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
40740echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
40741 wxUSE_LIBHILDON="no"
40742
40743
40744 fi
40745
40746 fi
40747fi
d1c38808 40748
a848cd7e
SC
40749if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
40750 cat >>confdefs.h <<\_ACEOF
40751#define wxUSE_CMDLINE_PARSER 1
40752_ACEOF
40753
40754fi
40755
40756if test "$wxUSE_STOPWATCH" = "yes"; then
40757 cat >>confdefs.h <<\_ACEOF
40758#define wxUSE_STOPWATCH 1
40759_ACEOF
40760
40761fi
40762
40763if test "$wxUSE_DATETIME" = "yes"; then
40764 cat >>confdefs.h <<\_ACEOF
40765#define wxUSE_DATETIME 1
40766_ACEOF
40767
40768fi
40769
40770if test "$wxUSE_FILE" = "yes"; then
40771 cat >>confdefs.h <<\_ACEOF
40772#define wxUSE_FILE 1
40773_ACEOF
40774
40775fi
40776
40777if test "$wxUSE_FFILE" = "yes"; then
40778 cat >>confdefs.h <<\_ACEOF
40779#define wxUSE_FFILE 1
40780_ACEOF
40781
40782fi
40783
40784if test "$wxUSE_FILESYSTEM" = "yes"; then
40785 cat >>confdefs.h <<\_ACEOF
40786#define wxUSE_FILESYSTEM 1
40787_ACEOF
40788
40789fi
40790
40791if test "$wxUSE_FS_ZIP" = "yes"; then
40792 cat >>confdefs.h <<\_ACEOF
40793#define wxUSE_FS_ZIP 1
40794_ACEOF
40795
40796fi
40797
9e8e867f 40798if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then
a848cd7e 40799 cat >>confdefs.h <<\_ACEOF
9e8e867f 40800#define wxUSE_ARCHIVE_STREAMS 1
81f90336
MW
40801_ACEOF
40802
40803fi
40804
40805if test "$wxUSE_ZIPSTREAM" = "yes"; then
9e8e867f 40806 if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
81f90336
MW
40807 { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5
40808echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;}
40809 elif test "$wxUSE_ZLIB" = "no"; then
40810 { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5
40811echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;}
40812 else
40813 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
40814#define wxUSE_ZIPSTREAM 1
40815_ACEOF
40816
81f90336 40817 fi
a848cd7e
SC
40818fi
40819
a848cd7e 40820if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
18228ab4
MW
40821 if test "$USE_UNIX" != 1; then
40822 { echo "$as_me:$LINENO: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&5
40823echo "$as_me: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&2;}
40824 wxUSE_ON_FATAL_EXCEPTION=no
40825 else
40826 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
40827#define wxUSE_ON_FATAL_EXCEPTION 1
40828_ACEOF
40829
18228ab4 40830 fi
a848cd7e
SC
40831fi
40832
eaff0f0d
VZ
40833if test "$wxUSE_STACKWALKER" = "yes"; then
40834 cat >>confdefs.h <<\_ACEOF
40835#define wxUSE_STACKWALKER 1
40836_ACEOF
40837
40838fi
40839
36b6448c 40840if test "$wxUSE_DEBUGREPORT" = "yes"; then
18228ab4
MW
40841 if test "$USE_UNIX" != "1" -a "$USE_WIN32" != "1"; then
40842 { echo "$as_me:$LINENO: WARNING: Creating debug reports not currently supported on this system, disabled" >&5
40843echo "$as_me: WARNING: Creating debug reports not currently supported on this system, disabled" >&2;}
dfe0c803
JS
40844 wxUSE_DEBUGREPORT=no
40845 else
40846 cat >>confdefs.h <<\_ACEOF
36b6448c
VZ
40847#define wxUSE_DEBUGREPORT 1
40848_ACEOF
40849
21dfc162
MW
40850 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
40851 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt"
40852 fi
dfe0c803 40853 fi
36b6448c
VZ
40854fi
40855
a848cd7e
SC
40856if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
40857 cat >>confdefs.h <<\_ACEOF
40858#define wxUSE_SNGLINST_CHECKER 1
40859_ACEOF
40860
40861fi
40862
40863if test "$wxUSE_BUSYINFO" = "yes"; then
40864 cat >>confdefs.h <<\_ACEOF
40865#define wxUSE_BUSYINFO 1
40866_ACEOF
40867
40868fi
40869
40870if test "$wxUSE_STD_IOSTREAM" = "yes"; then
40871 cat >>confdefs.h <<\_ACEOF
40872#define wxUSE_STD_IOSTREAM 1
40873_ACEOF
40874
40875fi
40876
59746b65
MW
40877if test "$wxUSE_STD_STRING" = "yes"; then
40878 cat >>confdefs.h <<\_ACEOF
40879#define wxUSE_STD_STRING 1
40880_ACEOF
40881
40882fi
40883
07158944
VZ
40884if test "$wxUSE_STDPATHS" = "yes"; then
40885 cat >>confdefs.h <<\_ACEOF
40886#define wxUSE_STDPATHS 1
40887_ACEOF
40888
40889fi
40890
a848cd7e
SC
40891if test "$wxUSE_TEXTBUFFER" = "yes"; then
40892 cat >>confdefs.h <<\_ACEOF
40893#define wxUSE_TEXTBUFFER 1
40894_ACEOF
40895
40896fi
40897
40898if test "$wxUSE_TEXTFILE" = "yes"; then
40899 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
40900 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
40901echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
40902 else
40903 cat >>confdefs.h <<\_ACEOF
40904#define wxUSE_TEXTFILE 1
40905_ACEOF
40906
40907 fi
40908fi
40909
40910if test "$wxUSE_CONFIG" = "yes" ; then
40911 if test "$wxUSE_TEXTFILE" != "yes"; then
40912 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
40913echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
40914 else
40915 cat >>confdefs.h <<\_ACEOF
40916#define wxUSE_CONFIG 1
89be85c2
VS
40917_ACEOF
40918
40919 cat >>confdefs.h <<\_ACEOF
40920#define wxUSE_CONFIG_NATIVE 1
a848cd7e
SC
40921_ACEOF
40922
40923 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
40924 fi
40925fi
40926
40927if test "$wxUSE_INTL" = "yes" ; then
40928 if test "$wxUSE_FILE" != "yes"; then
40929 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
40930echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
40931 else
40932 cat >>confdefs.h <<\_ACEOF
40933#define wxUSE_INTL 1
40934_ACEOF
40935
40936 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
40937 GUIDIST="$GUIDIST INTL_DIST"
40938 fi
40939fi
40940
40941if test "$wxUSE_LOG" = "yes"; then
40942 cat >>confdefs.h <<\_ACEOF
40943#define wxUSE_LOG 1
40944_ACEOF
40945
40946
40947 if test "$wxUSE_LOGGUI" = "yes"; then
40948 cat >>confdefs.h <<\_ACEOF
40949#define wxUSE_LOGGUI 1
40950_ACEOF
40951
40952 fi
40953
40954 if test "$wxUSE_LOGWINDOW" = "yes"; then
40955 cat >>confdefs.h <<\_ACEOF
40956#define wxUSE_LOGWINDOW 1
40957_ACEOF
40958
40959 fi
40960
40961 if test "$wxUSE_LOGDIALOG" = "yes"; then
40962 cat >>confdefs.h <<\_ACEOF
40963#define wxUSE_LOG_DIALOG 1
40964_ACEOF
40965
40966 fi
0b78747f
MW
40967
40968 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard"
a848cd7e
SC
40969fi
40970
40971if test "$wxUSE_LONGLONG" = "yes"; then
40972 cat >>confdefs.h <<\_ACEOF
40973#define wxUSE_LONGLONG 1
40974_ACEOF
40975
40976fi
40977
40978if test "$wxUSE_GEOMETRY" = "yes"; then
40979 cat >>confdefs.h <<\_ACEOF
40980#define wxUSE_GEOMETRY 1
40981_ACEOF
40982
40983fi
40984
a848cd7e
SC
40985if test "$wxUSE_STREAMS" = "yes" ; then
40986 cat >>confdefs.h <<\_ACEOF
40987#define wxUSE_STREAMS 1
40988_ACEOF
40989
40990fi
40991
40992
40993if test "$wxUSE_DATETIME" = "yes"; then
40994
40995for ac_func in strptime
40996do
40997as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40998echo "$as_me:$LINENO: checking for $ac_func" >&5
40999echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41000if eval "test \"\${$as_ac_var+set}\" = set"; then
41001 echo $ECHO_N "(cached) $ECHO_C" >&6
41002else
41003 cat >conftest.$ac_ext <<_ACEOF
41004/* confdefs.h. */
41005_ACEOF
41006cat confdefs.h >>conftest.$ac_ext
41007cat >>conftest.$ac_ext <<_ACEOF
41008/* end confdefs.h. */
ac1cb8d3
VS
41009/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41010 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41011#define $ac_func innocuous_$ac_func
41012
a848cd7e
SC
41013/* System header to define __stub macros and hopefully few prototypes,
41014 which can conflict with char $ac_func (); below.
41015 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41016 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 41017
a848cd7e
SC
41018#ifdef __STDC__
41019# include <limits.h>
41020#else
41021# include <assert.h>
41022#endif
ac1cb8d3
VS
41023
41024#undef $ac_func
41025
a848cd7e
SC
41026/* Override any gcc2 internal prototype to avoid an error. */
41027#ifdef __cplusplus
41028extern "C"
41029{
41030#endif
41031/* We use char because int might match the return type of a gcc2
41032 builtin and then its argument prototype would still apply. */
41033char $ac_func ();
41034/* The GNU C library defines this for functions which it implements
41035 to always fail with ENOSYS. Some functions are actually named
41036 something starting with __ and the normal name is an alias. */
41037#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41038choke me
41039#else
41040char (*f) () = $ac_func;
41041#endif
41042#ifdef __cplusplus
41043}
41044#endif
41045
41046int
41047main ()
41048{
41049return f != $ac_func;
41050 ;
41051 return 0;
41052}
41053_ACEOF
41054rm -f conftest.$ac_objext conftest$ac_exeext
41055if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41056 (eval $ac_link) 2>conftest.er1
a848cd7e 41057 ac_status=$?
ac1cb8d3
VS
41058 grep -v '^ *+' conftest.er1 >conftest.err
41059 rm -f conftest.er1
41060 cat conftest.err >&5
a848cd7e
SC
41061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41062 (exit $ac_status); } &&
f10e38c4 41063 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41065 (eval $ac_try) 2>&5
41066 ac_status=$?
41067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41068 (exit $ac_status); }; } &&
41069 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41071 (eval $ac_try) 2>&5
41072 ac_status=$?
41073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41074 (exit $ac_status); }; }; then
41075 eval "$as_ac_var=yes"
41076else
41077 echo "$as_me: failed program was:" >&5
41078sed 's/^/| /' conftest.$ac_ext >&5
41079
41080eval "$as_ac_var=no"
41081fi
ac1cb8d3
VS
41082rm -f conftest.err conftest.$ac_objext \
41083 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41084fi
41085echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41086echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41087if test `eval echo '${'$as_ac_var'}'` = yes; then
41088 cat >>confdefs.h <<_ACEOF
41089#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41090_ACEOF
41091
41092fi
41093done
41094
f536f005
VZ
41095 if test "$ac_cv_func_strptime" = "yes"; then
41096 echo "$as_me:$LINENO: checking for strptime declaration" >&5
41097echo $ECHO_N "checking for strptime declaration... $ECHO_C" >&6
41098if test "${wx_cv_func_strptime_decl+set}" = set; then
41099 echo $ECHO_N "(cached) $ECHO_C" >&6
41100else
41101
f536f005
VZ
41102 ac_ext=cc
41103ac_cpp='$CXXCPP $CPPFLAGS'
41104ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41105ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41106ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41107
41108 cat >conftest.$ac_ext <<_ACEOF
41109/* confdefs.h. */
41110_ACEOF
41111cat confdefs.h >>conftest.$ac_ext
41112cat >>conftest.$ac_ext <<_ACEOF
41113/* end confdefs.h. */
41114
41115 #include <time.h>
41116
41117int
41118main ()
41119{
41120
41121 struct tm t;
41122 strptime("foo", "bar", &t);
41123
41124 ;
41125 return 0;
41126}
41127_ACEOF
41128rm -f conftest.$ac_objext
41129if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41130 (eval $ac_compile) 2>conftest.er1
41131 ac_status=$?
41132 grep -v '^ *+' conftest.er1 >conftest.err
41133 rm -f conftest.er1
41134 cat conftest.err >&5
41135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41136 (exit $ac_status); } &&
f10e38c4 41137 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
f536f005
VZ
41138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41139 (eval $ac_try) 2>&5
41140 ac_status=$?
41141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41142 (exit $ac_status); }; } &&
41143 { ac_try='test -s conftest.$ac_objext'
41144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41145 (eval $ac_try) 2>&5
41146 ac_status=$?
41147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41148 (exit $ac_status); }; }; then
41149 wx_cv_func_strptime_decl=yes
41150else
41151 echo "$as_me: failed program was:" >&5
41152sed 's/^/| /' conftest.$ac_ext >&5
41153
41154wx_cv_func_strptime_decl=no
41155
41156fi
41157rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41158 ac_ext=c
41159ac_cpp='$CPP $CPPFLAGS'
41160ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41161ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41162ac_compiler_gnu=$ac_cv_c_compiler_gnu
41163
41164
41165
41166fi
41167echo "$as_me:$LINENO: result: $wx_cv_func_strptime_decl" >&5
41168echo "${ECHO_T}$wx_cv_func_strptime_decl" >&6
41169 fi
41170 if test "$wx_cv_func_strptime_decl" = "yes"; then
41171 cat >>confdefs.h <<\_ACEOF
41172#define HAVE_STRPTIME_DECL 1
41173_ACEOF
41174
41175 fi
a848cd7e
SC
41176
41177 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
41178echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
41179if test "${wx_cv_var_timezone+set}" = set; then
41180 echo $ECHO_N "(cached) $ECHO_C" >&6
41181else
41182
41183 cat >conftest.$ac_ext <<_ACEOF
41184/* confdefs.h. */
41185_ACEOF
41186cat confdefs.h >>conftest.$ac_ext
41187cat >>conftest.$ac_ext <<_ACEOF
41188/* end confdefs.h. */
41189
41190 #include <time.h>
41191
41192int
41193main ()
41194{
41195
41196 int tz;
41197 tz = timezone;
41198
41199 ;
41200 return 0;
41201}
41202_ACEOF
41203rm -f conftest.$ac_objext
41204if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 41205 (eval $ac_compile) 2>conftest.er1
a848cd7e 41206 ac_status=$?
ac1cb8d3
VS
41207 grep -v '^ *+' conftest.er1 >conftest.err
41208 rm -f conftest.er1
41209 cat conftest.err >&5
a848cd7e
SC
41210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41211 (exit $ac_status); } &&
f10e38c4 41212 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41214 (eval $ac_try) 2>&5
41215 ac_status=$?
41216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41217 (exit $ac_status); }; } &&
41218 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
41219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41220 (eval $ac_try) 2>&5
41221 ac_status=$?
41222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41223 (exit $ac_status); }; }; then
41224
41225 wx_cv_var_timezone=timezone
41226
41227else
41228 echo "$as_me: failed program was:" >&5
41229sed 's/^/| /' conftest.$ac_ext >&5
41230
41231
41232 cat >conftest.$ac_ext <<_ACEOF
41233/* confdefs.h. */
41234_ACEOF
41235cat confdefs.h >>conftest.$ac_ext
41236cat >>conftest.$ac_ext <<_ACEOF
41237/* end confdefs.h. */
41238
41239 #include <time.h>
41240
41241int
41242main ()
41243{
41244
41245 int tz;
41246 tz = _timezone;
41247
41248 ;
41249 return 0;
41250}
41251_ACEOF
41252rm -f conftest.$ac_objext
41253if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 41254 (eval $ac_compile) 2>conftest.er1
a848cd7e 41255 ac_status=$?
ac1cb8d3
VS
41256 grep -v '^ *+' conftest.er1 >conftest.err
41257 rm -f conftest.er1
41258 cat conftest.err >&5
a848cd7e
SC
41259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41260 (exit $ac_status); } &&
f10e38c4 41261 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41263 (eval $ac_try) 2>&5
41264 ac_status=$?
41265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41266 (exit $ac_status); }; } &&
41267 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
41268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41269 (eval $ac_try) 2>&5
41270 ac_status=$?
41271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41272 (exit $ac_status); }; }; then
41273
41274 wx_cv_var_timezone=_timezone
41275
41276else
41277 echo "$as_me: failed program was:" >&5
41278sed 's/^/| /' conftest.$ac_ext >&5
41279
41280
41281 cat >conftest.$ac_ext <<_ACEOF
41282/* confdefs.h. */
41283_ACEOF
41284cat confdefs.h >>conftest.$ac_ext
41285cat >>conftest.$ac_ext <<_ACEOF
41286/* end confdefs.h. */
41287
41288 #include <time.h>
41289
41290int
41291main ()
41292{
41293
41294 int tz;
41295 tz = __timezone;
41296
41297 ;
41298 return 0;
41299}
41300_ACEOF
41301rm -f conftest.$ac_objext
41302if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 41303 (eval $ac_compile) 2>conftest.er1
a848cd7e 41304 ac_status=$?
ac1cb8d3
VS
41305 grep -v '^ *+' conftest.er1 >conftest.err
41306 rm -f conftest.er1
41307 cat conftest.err >&5
a848cd7e
SC
41308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41309 (exit $ac_status); } &&
f10e38c4 41310 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41312 (eval $ac_try) 2>&5
41313 ac_status=$?
41314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41315 (exit $ac_status); }; } &&
41316 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
41317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41318 (eval $ac_try) 2>&5
41319 ac_status=$?
41320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41321 (exit $ac_status); }; }; then
41322
41323 wx_cv_var_timezone=__timezone
41324
41325else
41326 echo "$as_me: failed program was:" >&5
41327sed 's/^/| /' conftest.$ac_ext >&5
41328
41329
41330 if test "$USE_DOS" = 0 ; then
41331 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
41332echo "$as_me: WARNING: no timezone variable" >&2;}
41333 fi
41334
41335
41336fi
ac1cb8d3 41337rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
41338
41339
41340fi
ac1cb8d3 41341rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
41342
41343
41344fi
ac1cb8d3 41345rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
41346
41347
41348fi
41349echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
41350echo "${ECHO_T}$wx_cv_var_timezone" >&6
41351
41352 if test "x$wx_cv_var_timezone" != x ; then
41353 cat >>confdefs.h <<_ACEOF
41354#define WX_TIMEZONE $wx_cv_var_timezone
41355_ACEOF
41356
41357 fi
41358
41359
41360for ac_func in localtime
41361do
41362as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41363echo "$as_me:$LINENO: checking for $ac_func" >&5
41364echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41365if eval "test \"\${$as_ac_var+set}\" = set"; then
41366 echo $ECHO_N "(cached) $ECHO_C" >&6
41367else
41368 cat >conftest.$ac_ext <<_ACEOF
41369/* confdefs.h. */
41370_ACEOF
41371cat confdefs.h >>conftest.$ac_ext
41372cat >>conftest.$ac_ext <<_ACEOF
41373/* end confdefs.h. */
ac1cb8d3
VS
41374/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41375 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41376#define $ac_func innocuous_$ac_func
41377
a848cd7e
SC
41378/* System header to define __stub macros and hopefully few prototypes,
41379 which can conflict with char $ac_func (); below.
41380 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41381 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 41382
a848cd7e
SC
41383#ifdef __STDC__
41384# include <limits.h>
41385#else
41386# include <assert.h>
41387#endif
ac1cb8d3
VS
41388
41389#undef $ac_func
41390
a848cd7e
SC
41391/* Override any gcc2 internal prototype to avoid an error. */
41392#ifdef __cplusplus
41393extern "C"
41394{
41395#endif
41396/* We use char because int might match the return type of a gcc2
41397 builtin and then its argument prototype would still apply. */
41398char $ac_func ();
41399/* The GNU C library defines this for functions which it implements
41400 to always fail with ENOSYS. Some functions are actually named
41401 something starting with __ and the normal name is an alias. */
41402#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41403choke me
41404#else
41405char (*f) () = $ac_func;
41406#endif
41407#ifdef __cplusplus
41408}
41409#endif
41410
41411int
41412main ()
41413{
41414return f != $ac_func;
41415 ;
41416 return 0;
41417}
41418_ACEOF
41419rm -f conftest.$ac_objext conftest$ac_exeext
41420if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41421 (eval $ac_link) 2>conftest.er1
a848cd7e 41422 ac_status=$?
ac1cb8d3
VS
41423 grep -v '^ *+' conftest.er1 >conftest.err
41424 rm -f conftest.er1
41425 cat conftest.err >&5
a848cd7e
SC
41426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41427 (exit $ac_status); } &&
f10e38c4 41428 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41430 (eval $ac_try) 2>&5
41431 ac_status=$?
41432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41433 (exit $ac_status); }; } &&
41434 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41436 (eval $ac_try) 2>&5
41437 ac_status=$?
41438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41439 (exit $ac_status); }; }; then
41440 eval "$as_ac_var=yes"
41441else
41442 echo "$as_me: failed program was:" >&5
41443sed 's/^/| /' conftest.$ac_ext >&5
41444
41445eval "$as_ac_var=no"
41446fi
ac1cb8d3
VS
41447rm -f conftest.err conftest.$ac_objext \
41448 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41449fi
41450echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41451echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41452if test `eval echo '${'$as_ac_var'}'` = yes; then
41453 cat >>confdefs.h <<_ACEOF
41454#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41455_ACEOF
41456
41457fi
41458done
41459
41460
41461 if test "$ac_cv_func_localtime" = "yes"; then
41462 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
41463echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
41464if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
41465 echo $ECHO_N "(cached) $ECHO_C" >&6
41466else
41467
41468 cat >conftest.$ac_ext <<_ACEOF
41469/* confdefs.h. */
41470_ACEOF
41471cat confdefs.h >>conftest.$ac_ext
41472cat >>conftest.$ac_ext <<_ACEOF
41473/* end confdefs.h. */
41474
41475 #include <time.h>
41476
41477int
41478main ()
41479{
41480
41481 struct tm tm;
41482 tm.tm_gmtoff++;
41483
41484 ;
41485 return 0;
41486}
41487_ACEOF
41488rm -f conftest.$ac_objext
41489if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 41490 (eval $ac_compile) 2>conftest.er1
a848cd7e 41491 ac_status=$?
ac1cb8d3
VS
41492 grep -v '^ *+' conftest.er1 >conftest.err
41493 rm -f conftest.er1
41494 cat conftest.err >&5
a848cd7e
SC
41495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41496 (exit $ac_status); } &&
f10e38c4 41497 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41499 (eval $ac_try) 2>&5
41500 ac_status=$?
41501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41502 (exit $ac_status); }; } &&
41503 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
41504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41505 (eval $ac_try) 2>&5
41506 ac_status=$?
41507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41508 (exit $ac_status); }; }; then
41509
41510 wx_cv_struct_tm_has_gmtoff=yes
41511
41512else
41513 echo "$as_me: failed program was:" >&5
41514sed 's/^/| /' conftest.$ac_ext >&5
41515
41516wx_cv_struct_tm_has_gmtoff=no
41517
41518fi
ac1cb8d3 41519rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
41520
41521fi
41522echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
41523echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
41524 fi
41525
41526 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
41527 cat >>confdefs.h <<\_ACEOF
41528#define WX_GMTOFF_IN_TM 1
41529_ACEOF
41530
41531 fi
41532
41533
41534
41535for ac_func in gettimeofday ftime
41536do
41537as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41538echo "$as_me:$LINENO: checking for $ac_func" >&5
41539echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41540if eval "test \"\${$as_ac_var+set}\" = set"; then
41541 echo $ECHO_N "(cached) $ECHO_C" >&6
41542else
41543 cat >conftest.$ac_ext <<_ACEOF
41544/* confdefs.h. */
41545_ACEOF
41546cat confdefs.h >>conftest.$ac_ext
41547cat >>conftest.$ac_ext <<_ACEOF
41548/* end confdefs.h. */
ac1cb8d3
VS
41549/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41550 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41551#define $ac_func innocuous_$ac_func
41552
a848cd7e
SC
41553/* System header to define __stub macros and hopefully few prototypes,
41554 which can conflict with char $ac_func (); below.
41555 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41556 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 41557
a848cd7e
SC
41558#ifdef __STDC__
41559# include <limits.h>
41560#else
41561# include <assert.h>
41562#endif
ac1cb8d3
VS
41563
41564#undef $ac_func
41565
a848cd7e
SC
41566/* Override any gcc2 internal prototype to avoid an error. */
41567#ifdef __cplusplus
41568extern "C"
41569{
41570#endif
41571/* We use char because int might match the return type of a gcc2
41572 builtin and then its argument prototype would still apply. */
41573char $ac_func ();
41574/* The GNU C library defines this for functions which it implements
41575 to always fail with ENOSYS. Some functions are actually named
41576 something starting with __ and the normal name is an alias. */
41577#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41578choke me
41579#else
41580char (*f) () = $ac_func;
41581#endif
41582#ifdef __cplusplus
41583}
41584#endif
41585
41586int
41587main ()
41588{
41589return f != $ac_func;
41590 ;
41591 return 0;
41592}
41593_ACEOF
41594rm -f conftest.$ac_objext conftest$ac_exeext
41595if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41596 (eval $ac_link) 2>conftest.er1
a848cd7e 41597 ac_status=$?
ac1cb8d3
VS
41598 grep -v '^ *+' conftest.er1 >conftest.err
41599 rm -f conftest.er1
41600 cat conftest.err >&5
a848cd7e
SC
41601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41602 (exit $ac_status); } &&
f10e38c4 41603 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41605 (eval $ac_try) 2>&5
41606 ac_status=$?
41607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41608 (exit $ac_status); }; } &&
41609 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41611 (eval $ac_try) 2>&5
41612 ac_status=$?
41613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41614 (exit $ac_status); }; }; then
41615 eval "$as_ac_var=yes"
41616else
41617 echo "$as_me: failed program was:" >&5
41618sed 's/^/| /' conftest.$ac_ext >&5
41619
41620eval "$as_ac_var=no"
41621fi
ac1cb8d3
VS
41622rm -f conftest.err conftest.$ac_objext \
41623 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41624fi
41625echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41626echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41627if test `eval echo '${'$as_ac_var'}'` = yes; then
41628 cat >>confdefs.h <<_ACEOF
41629#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41630_ACEOF
41631 break
41632fi
41633done
41634
41635
41636 if test "$ac_cv_func_gettimeofday" = "yes"; then
41637 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
41638echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
41639if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
41640 echo $ECHO_N "(cached) $ECHO_C" >&6
41641else
41642
5ec3bc43 41643 ac_ext=cc
a848cd7e
SC
41644ac_cpp='$CXXCPP $CPPFLAGS'
41645ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41646ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41647ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41648
41649
41650 cat >conftest.$ac_ext <<_ACEOF
41651/* confdefs.h. */
41652_ACEOF
41653cat confdefs.h >>conftest.$ac_ext
41654cat >>conftest.$ac_ext <<_ACEOF
41655/* end confdefs.h. */
41656
41657 #include <sys/time.h>
41658 #include <unistd.h>
41659
41660int
41661main ()
41662{
41663
41664 struct timeval tv;
41665 gettimeofday(&tv, NULL);
41666
41667 ;
41668 return 0;
41669}
41670_ACEOF
41671rm -f conftest.$ac_objext
41672if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 41673 (eval $ac_compile) 2>conftest.er1
a848cd7e 41674 ac_status=$?
ac1cb8d3
VS
41675 grep -v '^ *+' conftest.er1 >conftest.err
41676 rm -f conftest.er1
41677 cat conftest.err >&5
a848cd7e
SC
41678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41679 (exit $ac_status); } &&
f10e38c4 41680 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41682 (eval $ac_try) 2>&5
41683 ac_status=$?
41684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41685 (exit $ac_status); }; } &&
41686 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
41687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41688 (eval $ac_try) 2>&5
41689 ac_status=$?
41690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41691 (exit $ac_status); }; }; then
41692 wx_cv_func_gettimeofday_has_2_args=yes
41693else
41694 echo "$as_me: failed program was:" >&5
41695sed 's/^/| /' conftest.$ac_ext >&5
41696
41697cat >conftest.$ac_ext <<_ACEOF
41698/* confdefs.h. */
41699_ACEOF
41700cat confdefs.h >>conftest.$ac_ext
41701cat >>conftest.$ac_ext <<_ACEOF
41702/* end confdefs.h. */
41703
41704 #include <sys/time.h>
41705 #include <unistd.h>
41706
41707int
41708main ()
41709{
41710
41711 struct timeval tv;
41712 gettimeofday(&tv);
41713
41714 ;
41715 return 0;
41716}
41717_ACEOF
41718rm -f conftest.$ac_objext
41719if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 41720 (eval $ac_compile) 2>conftest.er1
a848cd7e 41721 ac_status=$?
ac1cb8d3
VS
41722 grep -v '^ *+' conftest.er1 >conftest.err
41723 rm -f conftest.er1
41724 cat conftest.err >&5
a848cd7e
SC
41725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41726 (exit $ac_status); } &&
f10e38c4 41727 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41729 (eval $ac_try) 2>&5
41730 ac_status=$?
41731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41732 (exit $ac_status); }; } &&
41733 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
41734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41735 (eval $ac_try) 2>&5
41736 ac_status=$?
41737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41738 (exit $ac_status); }; }; then
41739 wx_cv_func_gettimeofday_has_2_args=no
41740else
41741 echo "$as_me: failed program was:" >&5
41742sed 's/^/| /' conftest.$ac_ext >&5
41743
41744
41745 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
41746echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
41747 wx_cv_func_gettimeofday_has_2_args=unknown
41748
41749
41750fi
ac1cb8d3 41751rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
41752
41753fi
ac1cb8d3 41754rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
41755 ac_ext=c
41756ac_cpp='$CPP $CPPFLAGS'
41757ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41758ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41759ac_compiler_gnu=$ac_cv_c_compiler_gnu
41760
41761
41762fi
41763echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
41764echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
41765
41766 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
41767 cat >>confdefs.h <<\_ACEOF
41768#define WX_GETTIMEOFDAY_NO_TZ 1
41769_ACEOF
41770
41771 fi
41772 fi
41773
41774 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
41775fi
41776
41777
41778if test "$wxUSE_SOCKETS" = "yes"; then
41779 if test "$wxUSE_MGL" = "1"; then
41780 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
41781echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
41782 wxUSE_SOCKETS="no"
41783 fi
41784fi
41785
41786if test "$wxUSE_SOCKETS" = "yes"; then
41787 if test "$TOOLKIT" != "MSW"; then
41788 echo "$as_me:$LINENO: checking for socket" >&5
41789echo $ECHO_N "checking for socket... $ECHO_C" >&6
41790if test "${ac_cv_func_socket+set}" = set; then
41791 echo $ECHO_N "(cached) $ECHO_C" >&6
41792else
41793 cat >conftest.$ac_ext <<_ACEOF
41794/* confdefs.h. */
41795_ACEOF
41796cat confdefs.h >>conftest.$ac_ext
41797cat >>conftest.$ac_ext <<_ACEOF
41798/* end confdefs.h. */
ac1cb8d3
VS
41799/* Define socket to an innocuous variant, in case <limits.h> declares socket.
41800 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41801#define socket innocuous_socket
41802
a848cd7e
SC
41803/* System header to define __stub macros and hopefully few prototypes,
41804 which can conflict with char socket (); below.
41805 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41806 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 41807
a848cd7e
SC
41808#ifdef __STDC__
41809# include <limits.h>
41810#else
41811# include <assert.h>
41812#endif
ac1cb8d3
VS
41813
41814#undef socket
41815
a848cd7e
SC
41816/* Override any gcc2 internal prototype to avoid an error. */
41817#ifdef __cplusplus
41818extern "C"
41819{
41820#endif
41821/* We use char because int might match the return type of a gcc2
41822 builtin and then its argument prototype would still apply. */
41823char socket ();
41824/* The GNU C library defines this for functions which it implements
41825 to always fail with ENOSYS. Some functions are actually named
41826 something starting with __ and the normal name is an alias. */
41827#if defined (__stub_socket) || defined (__stub___socket)
41828choke me
41829#else
41830char (*f) () = socket;
41831#endif
41832#ifdef __cplusplus
41833}
41834#endif
41835
41836int
41837main ()
41838{
41839return f != socket;
41840 ;
41841 return 0;
41842}
41843_ACEOF
41844rm -f conftest.$ac_objext conftest$ac_exeext
41845if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41846 (eval $ac_link) 2>conftest.er1
a848cd7e 41847 ac_status=$?
ac1cb8d3
VS
41848 grep -v '^ *+' conftest.er1 >conftest.err
41849 rm -f conftest.er1
41850 cat conftest.err >&5
a848cd7e
SC
41851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41852 (exit $ac_status); } &&
f10e38c4 41853 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41855 (eval $ac_try) 2>&5
41856 ac_status=$?
41857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41858 (exit $ac_status); }; } &&
41859 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41861 (eval $ac_try) 2>&5
41862 ac_status=$?
41863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41864 (exit $ac_status); }; }; then
41865 ac_cv_func_socket=yes
41866else
41867 echo "$as_me: failed program was:" >&5
41868sed 's/^/| /' conftest.$ac_ext >&5
41869
41870ac_cv_func_socket=no
41871fi
ac1cb8d3
VS
41872rm -f conftest.err conftest.$ac_objext \
41873 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41874fi
41875echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
41876echo "${ECHO_T}$ac_cv_func_socket" >&6
41877if test $ac_cv_func_socket = yes; then
41878 :
41879else
41880
41881 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
41882echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
41883if test "${ac_cv_lib_socket_socket+set}" = set; then
41884 echo $ECHO_N "(cached) $ECHO_C" >&6
41885else
41886 ac_check_lib_save_LIBS=$LIBS
41887LIBS="-lsocket $LIBS"
41888cat >conftest.$ac_ext <<_ACEOF
41889/* confdefs.h. */
41890_ACEOF
41891cat confdefs.h >>conftest.$ac_ext
41892cat >>conftest.$ac_ext <<_ACEOF
41893/* end confdefs.h. */
41894
41895/* Override any gcc2 internal prototype to avoid an error. */
41896#ifdef __cplusplus
41897extern "C"
41898#endif
41899/* We use char because int might match the return type of a gcc2
41900 builtin and then its argument prototype would still apply. */
41901char socket ();
41902int
41903main ()
41904{
41905socket ();
41906 ;
41907 return 0;
41908}
41909_ACEOF
41910rm -f conftest.$ac_objext conftest$ac_exeext
41911if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41912 (eval $ac_link) 2>conftest.er1
a848cd7e 41913 ac_status=$?
ac1cb8d3
VS
41914 grep -v '^ *+' conftest.er1 >conftest.err
41915 rm -f conftest.er1
41916 cat conftest.err >&5
a848cd7e
SC
41917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41918 (exit $ac_status); } &&
f10e38c4 41919 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41921 (eval $ac_try) 2>&5
41922 ac_status=$?
41923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41924 (exit $ac_status); }; } &&
41925 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41927 (eval $ac_try) 2>&5
41928 ac_status=$?
41929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41930 (exit $ac_status); }; }; then
41931 ac_cv_lib_socket_socket=yes
41932else
41933 echo "$as_me: failed program was:" >&5
41934sed 's/^/| /' conftest.$ac_ext >&5
41935
41936ac_cv_lib_socket_socket=no
41937fi
ac1cb8d3
VS
41938rm -f conftest.err conftest.$ac_objext \
41939 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41940LIBS=$ac_check_lib_save_LIBS
41941fi
41942echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
41943echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
41944if test $ac_cv_lib_socket_socket = yes; then
41945 if test "$INET_LINK" != " -lsocket"; then
41946 INET_LINK="$INET_LINK -lsocket"
41947 fi
41948else
41949
41950 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
41951echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
41952 wxUSE_SOCKETS=no
41953
41954
41955fi
41956
41957
41958
41959fi
41960
41961 fi
41962fi
41963
41964if test "$wxUSE_SOCKETS" = "yes" ; then
41965 if test "$TOOLKIT" != "MSW"; then
4d4ff94c
VZ
41966 ac_ext=cc
41967ac_cpp='$CXXCPP $CPPFLAGS'
41968ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41969ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41970ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41971
41972 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
a848cd7e
SC
41973echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
41974if test "${wx_cv_type_getsockname3+set}" = set; then
41975 echo $ECHO_N "(cached) $ECHO_C" >&6
41976else
41977
41978 cat >conftest.$ac_ext <<_ACEOF
41979/* confdefs.h. */
41980_ACEOF
41981cat confdefs.h >>conftest.$ac_ext
41982cat >>conftest.$ac_ext <<_ACEOF
41983/* end confdefs.h. */
41984
41985 #include <sys/types.h>
41986 #include <sys/socket.h>
41987
41988int
41989main ()
41990{
41991
41992 socklen_t len;
41993 getsockname(0, 0, &len);
41994
41995 ;
41996 return 0;
41997}
41998_ACEOF
41999rm -f conftest.$ac_objext
42000if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42001 (eval $ac_compile) 2>conftest.er1
a848cd7e 42002 ac_status=$?
ac1cb8d3
VS
42003 grep -v '^ *+' conftest.er1 >conftest.err
42004 rm -f conftest.er1
42005 cat conftest.err >&5
a848cd7e
SC
42006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42007 (exit $ac_status); } &&
f10e38c4 42008 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42010 (eval $ac_try) 2>&5
42011 ac_status=$?
42012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42013 (exit $ac_status); }; } &&
42014 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42016 (eval $ac_try) 2>&5
42017 ac_status=$?
42018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42019 (exit $ac_status); }; }; then
42020 wx_cv_type_getsockname3=socklen_t
42021else
42022 echo "$as_me: failed program was:" >&5
42023sed 's/^/| /' conftest.$ac_ext >&5
42024
42025
6459a506 42026 CXXFLAGS_OLD="$CXXFLAGS"
a848cd7e 42027 if test "$GCC" = yes ; then
c92ad099 42028 CXXFLAGS="-Werror $CXXFLAGS"
a848cd7e
SC
42029 fi
42030
42031 cat >conftest.$ac_ext <<_ACEOF
42032/* confdefs.h. */
42033_ACEOF
42034cat confdefs.h >>conftest.$ac_ext
42035cat >>conftest.$ac_ext <<_ACEOF
42036/* end confdefs.h. */
42037
42038 #include <sys/types.h>
42039 #include <sys/socket.h>
42040
42041int
42042main ()
42043{
42044
42045 size_t len;
42046 getsockname(0, 0, &len);
42047
42048 ;
42049 return 0;
42050}
42051_ACEOF
42052rm -f conftest.$ac_objext
42053if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42054 (eval $ac_compile) 2>conftest.er1
a848cd7e 42055 ac_status=$?
ac1cb8d3
VS
42056 grep -v '^ *+' conftest.er1 >conftest.err
42057 rm -f conftest.er1
42058 cat conftest.err >&5
a848cd7e
SC
42059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42060 (exit $ac_status); } &&
f10e38c4 42061 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42063 (eval $ac_try) 2>&5
42064 ac_status=$?
42065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42066 (exit $ac_status); }; } &&
42067 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42069 (eval $ac_try) 2>&5
42070 ac_status=$?
42071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42072 (exit $ac_status); }; }; then
42073 wx_cv_type_getsockname3=size_t
42074else
42075 echo "$as_me: failed program was:" >&5
42076sed 's/^/| /' conftest.$ac_ext >&5
42077
42078cat >conftest.$ac_ext <<_ACEOF
42079/* confdefs.h. */
42080_ACEOF
42081cat confdefs.h >>conftest.$ac_ext
42082cat >>conftest.$ac_ext <<_ACEOF
42083/* end confdefs.h. */
42084
42085 #include <sys/types.h>
42086 #include <sys/socket.h>
42087
42088int
42089main ()
42090{
42091
42092 int len;
42093 getsockname(0, 0, &len);
42094
42095 ;
42096 return 0;
42097}
42098_ACEOF
42099rm -f conftest.$ac_objext
42100if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42101 (eval $ac_compile) 2>conftest.er1
a848cd7e 42102 ac_status=$?
ac1cb8d3
VS
42103 grep -v '^ *+' conftest.er1 >conftest.err
42104 rm -f conftest.er1
42105 cat conftest.err >&5
a848cd7e
SC
42106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42107 (exit $ac_status); } &&
f10e38c4 42108 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42110 (eval $ac_try) 2>&5
42111 ac_status=$?
42112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42113 (exit $ac_status); }; } &&
42114 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42116 (eval $ac_try) 2>&5
42117 ac_status=$?
42118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42119 (exit $ac_status); }; }; then
42120 wx_cv_type_getsockname3=int
42121else
42122 echo "$as_me: failed program was:" >&5
42123sed 's/^/| /' conftest.$ac_ext >&5
42124
42125wx_cv_type_getsockname3=unknown
42126
42127fi
ac1cb8d3 42128rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
42129
42130fi
ac1cb8d3 42131rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 42132
6459a506 42133 CXXFLAGS="$CXXFLAGS_OLD"
a848cd7e
SC
42134
42135
42136fi
ac1cb8d3 42137rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
42138
42139fi
42140echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
42141echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
42142
42143 if test "$wx_cv_type_getsockname3" = "unknown"; then
42144 wxUSE_SOCKETS=no
42145 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
42146echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
42147 else
42148 cat >>confdefs.h <<_ACEOF
9e03e02d 42149#define WX_SOCKLEN_T $wx_cv_type_getsockname3
5b674b9d
DE
42150_ACEOF
42151
42152 fi
42153 echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5
42154echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6
42155if test "${wx_cv_type_getsockopt5+set}" = set; then
42156 echo $ECHO_N "(cached) $ECHO_C" >&6
42157else
42158
42159 cat >conftest.$ac_ext <<_ACEOF
42160/* confdefs.h. */
42161_ACEOF
42162cat confdefs.h >>conftest.$ac_ext
42163cat >>conftest.$ac_ext <<_ACEOF
42164/* end confdefs.h. */
42165
42166 #include <sys/types.h>
42167 #include <sys/socket.h>
42168
42169int
42170main ()
42171{
42172
42173 socklen_t len;
42174 getsockopt(0, 0, 0, 0, &len);
42175
42176 ;
42177 return 0;
42178}
42179_ACEOF
42180rm -f conftest.$ac_objext
42181if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42182 (eval $ac_compile) 2>conftest.er1
42183 ac_status=$?
42184 grep -v '^ *+' conftest.er1 >conftest.err
42185 rm -f conftest.er1
42186 cat conftest.err >&5
42187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42188 (exit $ac_status); } &&
f10e38c4 42189 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
42190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42191 (eval $ac_try) 2>&5
42192 ac_status=$?
42193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42194 (exit $ac_status); }; } &&
42195 { ac_try='test -s conftest.$ac_objext'
42196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42197 (eval $ac_try) 2>&5
42198 ac_status=$?
42199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42200 (exit $ac_status); }; }; then
42201 wx_cv_type_getsockopt5=socklen_t
42202else
42203 echo "$as_me: failed program was:" >&5
42204sed 's/^/| /' conftest.$ac_ext >&5
42205
42206
6459a506 42207 CXXFLAGS_OLD="$CXXFLAGS"
5b674b9d 42208 if test "$GCC" = yes ; then
c92ad099 42209 CXXFLAGS="-Werror $CXXFLAGS"
5b674b9d
DE
42210 fi
42211
42212 cat >conftest.$ac_ext <<_ACEOF
42213/* confdefs.h. */
42214_ACEOF
42215cat confdefs.h >>conftest.$ac_ext
42216cat >>conftest.$ac_ext <<_ACEOF
42217/* end confdefs.h. */
42218
42219 #include <sys/types.h>
42220 #include <sys/socket.h>
42221
42222int
42223main ()
42224{
42225
42226 size_t len;
42227 getsockopt(0, 0, 0, 0, &len);
42228
42229 ;
42230 return 0;
42231}
42232_ACEOF
42233rm -f conftest.$ac_objext
42234if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42235 (eval $ac_compile) 2>conftest.er1
42236 ac_status=$?
42237 grep -v '^ *+' conftest.er1 >conftest.err
42238 rm -f conftest.er1
42239 cat conftest.err >&5
42240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42241 (exit $ac_status); } &&
f10e38c4 42242 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
42243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42244 (eval $ac_try) 2>&5
42245 ac_status=$?
42246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42247 (exit $ac_status); }; } &&
42248 { ac_try='test -s conftest.$ac_objext'
42249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42250 (eval $ac_try) 2>&5
42251 ac_status=$?
42252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42253 (exit $ac_status); }; }; then
42254 wx_cv_type_getsockopt5=size_t
42255else
42256 echo "$as_me: failed program was:" >&5
42257sed 's/^/| /' conftest.$ac_ext >&5
42258
42259cat >conftest.$ac_ext <<_ACEOF
42260/* confdefs.h. */
42261_ACEOF
42262cat confdefs.h >>conftest.$ac_ext
42263cat >>conftest.$ac_ext <<_ACEOF
42264/* end confdefs.h. */
42265
42266 #include <sys/types.h>
42267 #include <sys/socket.h>
42268
42269int
42270main ()
42271{
42272
42273 int len;
42274 getsockopt(0, 0, 0, 0, &len);
42275
42276 ;
42277 return 0;
42278}
42279_ACEOF
42280rm -f conftest.$ac_objext
42281if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42282 (eval $ac_compile) 2>conftest.er1
42283 ac_status=$?
42284 grep -v '^ *+' conftest.er1 >conftest.err
42285 rm -f conftest.er1
42286 cat conftest.err >&5
42287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42288 (exit $ac_status); } &&
f10e38c4 42289 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
42290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42291 (eval $ac_try) 2>&5
42292 ac_status=$?
42293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42294 (exit $ac_status); }; } &&
42295 { ac_try='test -s conftest.$ac_objext'
42296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42297 (eval $ac_try) 2>&5
42298 ac_status=$?
42299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42300 (exit $ac_status); }; }; then
42301 wx_cv_type_getsockopt5=int
42302else
42303 echo "$as_me: failed program was:" >&5
42304sed 's/^/| /' conftest.$ac_ext >&5
42305
42306wx_cv_type_getsockopt5=unknown
42307
42308fi
42309rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42310
42311fi
42312rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42313
6459a506 42314 CXXFLAGS="$CXXFLAGS_OLD"
5b674b9d
DE
42315
42316
42317fi
42318rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42319
42320fi
42321echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5
42322echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6
42323
42324 if test "$wx_cv_type_getsockopt5" = "unknown"; then
42325 wxUSE_SOCKETS=no
42326 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
42327echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
42328 else
42329 cat >>confdefs.h <<_ACEOF
42330#define SOCKOPTLEN_T $wx_cv_type_getsockopt5
a848cd7e
SC
42331_ACEOF
42332
42333 fi
4d4ff94c
VZ
42334 ac_ext=c
42335ac_cpp='$CPP $CPPFLAGS'
42336ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42337ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42338ac_compiler_gnu=$ac_cv_c_compiler_gnu
42339
a848cd7e
SC
42340 fi
42341fi
42342
42343if test "$wxUSE_SOCKETS" = "yes" ; then
42344 cat >>confdefs.h <<\_ACEOF
42345#define wxUSE_SOCKETS 1
42346_ACEOF
42347
42348 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
42349fi
42350
42351if test "$wxUSE_PROTOCOL" = "yes"; then
42352 if test "$wxUSE_SOCKETS" != "yes"; then
42353 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
42354echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
42355 wxUSE_PROTOCOL=no
42356 fi
42357fi
42358
42359if test "$wxUSE_PROTOCOL" = "yes"; then
42360 cat >>confdefs.h <<\_ACEOF
42361#define wxUSE_PROTOCOL 1
42362_ACEOF
42363
42364
42365 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
42366 cat >>confdefs.h <<\_ACEOF
42367#define wxUSE_PROTOCOL_HTTP 1
42368_ACEOF
42369
42370 fi
42371 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
42372 cat >>confdefs.h <<\_ACEOF
42373#define wxUSE_PROTOCOL_FTP 1
42374_ACEOF
42375
42376 fi
42377 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
42378 cat >>confdefs.h <<\_ACEOF
42379#define wxUSE_PROTOCOL_FILE 1
42380_ACEOF
42381
42382 fi
42383else
42384 if test "$wxUSE_FS_INET" = "yes"; then
42385 { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
42386echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
42387 wxUSE_FS_INET="no"
42388 fi
42389fi
42390
42391if test "$wxUSE_URL" = "yes"; then
42392 if test "$wxUSE_PROTOCOL" != "yes"; then
42393 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
42394echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
42395 wxUSE_URL=no
42396 fi
42397 if test "$wxUSE_URL" = "yes"; then
42398 cat >>confdefs.h <<\_ACEOF
42399#define wxUSE_URL 1
42400_ACEOF
42401
42402 fi
42403fi
42404
42405if test "$wxUSE_FS_INET" = "yes"; then
42406 cat >>confdefs.h <<\_ACEOF
42407#define wxUSE_FS_INET 1
42408_ACEOF
42409
42410fi
42411
42412
ee45c548
MW
42413if test "$wxUSE_GUI" = "yes" -a "$wxUSE_JOYSTICK" = "yes"; then
42414 wxUSE_JOYSTICK=no
42415
42416 if test "$TOOLKIT" = "MSW"; then
42417 wxUSE_JOYSTICK=yes
42418
42419 elif test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
42420 if test "$USE_DARWIN" = 1; then
42421 echo "$as_me:$LINENO: checking headers have declarations needed for joystick support" >&5
42422echo $ECHO_N "checking headers have declarations needed for joystick support... $ECHO_C" >&6
42423 ac_ext=cc
42424ac_cpp='$CXXCPP $CPPFLAGS'
42425ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42426ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42427ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42428
42429 cat >conftest.$ac_ext <<_ACEOF
42430/* confdefs.h. */
42431_ACEOF
42432cat confdefs.h >>conftest.$ac_ext
42433cat >>conftest.$ac_ext <<_ACEOF
42434/* end confdefs.h. */
42435 #include <IOKit/hid/IOHIDLib.h>
42436int
42437main ()
42438{
42439 IOHIDQueueInterface *qi = NULL;
42440 IOHIDCallbackFunction cb = NULL;
42441 qi->setEventCallout(NULL, cb, NULL, NULL);
42442 ;
42443 return 0;
42444}
42445_ACEOF
42446rm -f conftest.$ac_objext
42447if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42448 (eval $ac_compile) 2>conftest.er1
42449 ac_status=$?
42450 grep -v '^ *+' conftest.er1 >conftest.err
42451 rm -f conftest.er1
42452 cat conftest.err >&5
42453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42454 (exit $ac_status); } &&
f10e38c4 42455 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ee45c548
MW
42456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42457 (eval $ac_try) 2>&5
42458 ac_status=$?
42459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42460 (exit $ac_status); }; } &&
42461 { ac_try='test -s conftest.$ac_objext'
42462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42463 (eval $ac_try) 2>&5
42464 ac_status=$?
42465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42466 (exit $ac_status); }; }; then
42467 wxUSE_JOYSTICK=yes
a848cd7e 42468
ee45c548
MW
42469else
42470 echo "$as_me: failed program was:" >&5
42471sed 's/^/| /' conftest.$ac_ext >&5
42472
42473fi
42474rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42475 ac_ext=c
42476ac_cpp='$CPP $CPPFLAGS'
42477ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42478ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42479ac_compiler_gnu=$ac_cv_c_compiler_gnu
42480
42481 echo "$as_me:$LINENO: result: $wxUSE_JOYSTICK" >&5
42482echo "${ECHO_T}$wxUSE_JOYSTICK" >&6
42483 fi
42484
42485 else
a848cd7e
SC
42486
42487for ac_header in linux/joystick.h
42488do
42489as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
42490if eval "test \"\${$as_ac_Header+set}\" = set"; then
42491 echo "$as_me:$LINENO: checking for $ac_header" >&5
42492echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
42493if eval "test \"\${$as_ac_Header+set}\" = set"; then
42494 echo $ECHO_N "(cached) $ECHO_C" >&6
42495fi
42496echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
42497echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
42498else
42499 # Is the header compilable?
42500echo "$as_me:$LINENO: checking $ac_header usability" >&5
42501echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
42502cat >conftest.$ac_ext <<_ACEOF
42503/* confdefs.h. */
42504_ACEOF
42505cat confdefs.h >>conftest.$ac_ext
42506cat >>conftest.$ac_ext <<_ACEOF
42507/* end confdefs.h. */
42508$ac_includes_default
42509#include <$ac_header>
42510_ACEOF
42511rm -f conftest.$ac_objext
42512if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42513 (eval $ac_compile) 2>conftest.er1
a848cd7e 42514 ac_status=$?
ac1cb8d3
VS
42515 grep -v '^ *+' conftest.er1 >conftest.err
42516 rm -f conftest.er1
42517 cat conftest.err >&5
a848cd7e
SC
42518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42519 (exit $ac_status); } &&
f10e38c4 42520 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42522 (eval $ac_try) 2>&5
42523 ac_status=$?
42524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42525 (exit $ac_status); }; } &&
42526 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42528 (eval $ac_try) 2>&5
42529 ac_status=$?
42530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42531 (exit $ac_status); }; }; then
42532 ac_header_compiler=yes
42533else
42534 echo "$as_me: failed program was:" >&5
42535sed 's/^/| /' conftest.$ac_ext >&5
42536
42537ac_header_compiler=no
42538fi
ac1cb8d3 42539rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
42540echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42541echo "${ECHO_T}$ac_header_compiler" >&6
42542
42543# Is the header present?
42544echo "$as_me:$LINENO: checking $ac_header presence" >&5
42545echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
42546cat >conftest.$ac_ext <<_ACEOF
42547/* confdefs.h. */
42548_ACEOF
42549cat confdefs.h >>conftest.$ac_ext
42550cat >>conftest.$ac_ext <<_ACEOF
42551/* end confdefs.h. */
42552#include <$ac_header>
42553_ACEOF
42554if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
42555 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
42556 ac_status=$?
42557 grep -v '^ *+' conftest.er1 >conftest.err
42558 rm -f conftest.er1
42559 cat conftest.err >&5
42560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42561 (exit $ac_status); } >/dev/null; then
42562 if test -s conftest.err; then
42563 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 42564 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
42565 else
42566 ac_cpp_err=
42567 fi
42568else
42569 ac_cpp_err=yes
42570fi
42571if test -z "$ac_cpp_err"; then
42572 ac_header_preproc=yes
42573else
42574 echo "$as_me: failed program was:" >&5
42575sed 's/^/| /' conftest.$ac_ext >&5
42576
42577 ac_header_preproc=no
42578fi
42579rm -f conftest.err conftest.$ac_ext
42580echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42581echo "${ECHO_T}$ac_header_preproc" >&6
42582
42583# So? What about this header?
ac1cb8d3
VS
42584case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42585 yes:no: )
a848cd7e
SC
42586 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
42587echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
42588 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
42589echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
42590 ac_header_preproc=yes
a848cd7e 42591 ;;
ac1cb8d3 42592 no:yes:* )
a848cd7e
SC
42593 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
42594echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
42595 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
42596echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
42597 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
42598echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
42599 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
42600echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
42601 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
42602echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
42603 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
42604echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
42605 (
42606 cat <<\_ASBOX
ac1cb8d3
VS
42607## ----------------------------------------- ##
42608## Report this to wx-dev@lists.wxwidgets.org ##
42609## ----------------------------------------- ##
a848cd7e
SC
42610_ASBOX
42611 ) |
42612 sed "s/^/$as_me: WARNING: /" >&2
42613 ;;
42614esac
42615echo "$as_me:$LINENO: checking for $ac_header" >&5
42616echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
42617if eval "test \"\${$as_ac_Header+set}\" = set"; then
42618 echo $ECHO_N "(cached) $ECHO_C" >&6
42619else
ac1cb8d3 42620 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
42621fi
42622echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
42623echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
42624
42625fi
42626if test `eval echo '${'$as_ac_Header'}'` = yes; then
42627 cat >>confdefs.h <<_ACEOF
42628#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
42629_ACEOF
ee45c548 42630 wxUSE_JOYSTICK=yes
a848cd7e
SC
42631fi
42632
42633done
42634
ee45c548 42635 fi
4cb1d3da 42636
ee45c548
MW
42637 if test "$wxUSE_JOYSTICK" = "yes"; then
42638 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
42639#define wxUSE_JOYSTICK 1
42640_ACEOF
42641
ee45c548
MW
42642 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
42643 else
42644 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
42645echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
a848cd7e
SC
42646 fi
42647fi
42648
42649
42650
42651if test "$wxUSE_FONTMAP" = "yes" ; then
42652 cat >>confdefs.h <<\_ACEOF
42653#define wxUSE_FONTMAP 1
42654_ACEOF
42655
42656fi
42657
42658if test "$wxUSE_UNICODE" = "yes" ; then
42659 cat >>confdefs.h <<\_ACEOF
42660#define wxUSE_UNICODE 1
42661_ACEOF
42662
42663
42664 if test "$USE_WIN32" != 1; then
42665 wxUSE_UNICODE_MSLU=no
42666 fi
42667
42668 if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
42669 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
42670echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
42671if test "${ac_cv_lib_unicows_main+set}" = set; then
42672 echo $ECHO_N "(cached) $ECHO_C" >&6
42673else
42674 ac_check_lib_save_LIBS=$LIBS
42675LIBS="-lunicows $LIBS"
42676cat >conftest.$ac_ext <<_ACEOF
42677/* confdefs.h. */
42678_ACEOF
42679cat confdefs.h >>conftest.$ac_ext
42680cat >>conftest.$ac_ext <<_ACEOF
42681/* end confdefs.h. */
42682
42683
42684int
42685main ()
42686{
42687main ();
42688 ;
42689 return 0;
42690}
42691_ACEOF
42692rm -f conftest.$ac_objext conftest$ac_exeext
42693if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 42694 (eval $ac_link) 2>conftest.er1
a848cd7e 42695 ac_status=$?
ac1cb8d3
VS
42696 grep -v '^ *+' conftest.er1 >conftest.err
42697 rm -f conftest.er1
42698 cat conftest.err >&5
a848cd7e
SC
42699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42700 (exit $ac_status); } &&
f10e38c4 42701 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42703 (eval $ac_try) 2>&5
42704 ac_status=$?
42705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42706 (exit $ac_status); }; } &&
42707 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
42708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42709 (eval $ac_try) 2>&5
42710 ac_status=$?
42711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42712 (exit $ac_status); }; }; then
42713 ac_cv_lib_unicows_main=yes
42714else
42715 echo "$as_me: failed program was:" >&5
42716sed 's/^/| /' conftest.$ac_ext >&5
42717
42718ac_cv_lib_unicows_main=no
42719fi
ac1cb8d3
VS
42720rm -f conftest.err conftest.$ac_objext \
42721 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
42722LIBS=$ac_check_lib_save_LIBS
42723fi
42724echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
42725echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
42726if test $ac_cv_lib_unicows_main = yes; then
42727
42728 cat >>confdefs.h <<\_ACEOF
42729#define wxUSE_UNICODE_MSLU 1
42730_ACEOF
42731
42732
42733else
42734
42735 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
42736 Applications will only run on Windows NT/2000/XP!" >&5
42737echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
42738 Applications will only run on Windows NT/2000/XP!" >&2;}
42739 wxUSE_UNICODE_MSLU=no
42740
42741fi
42742
42743 fi
42744fi
42745
42746if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
42747 cat >>confdefs.h <<\_ACEOF
42748#define wxUSE_EXPERIMENTAL_PRINTF 1
42749_ACEOF
42750
42751fi
42752
42753
42754if test "$wxUSE_POSTSCRIPT" = "yes" ; then
42755 cat >>confdefs.h <<\_ACEOF
42756#define wxUSE_POSTSCRIPT 1
42757_ACEOF
42758
42759fi
42760
42761cat >>confdefs.h <<\_ACEOF
42762#define wxUSE_AFM_FOR_POSTSCRIPT 1
42763_ACEOF
42764
42765
42766cat >>confdefs.h <<\_ACEOF
42767#define wxUSE_NORMALIZED_PS_FONTS 1
42768_ACEOF
42769
42770
42771
42772if test "$wxUSE_CONSTRAINTS" = "yes"; then
42773 cat >>confdefs.h <<\_ACEOF
42774#define wxUSE_CONSTRAINTS 1
42775_ACEOF
42776
42777 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
42778fi
42779
8a7b1113
VZ
42780if test "$wxUSE_MDI" = "yes"; then
42781 cat >>confdefs.h <<\_ACEOF
42782#define wxUSE_MDI 1
42783_ACEOF
42784
42785
42786 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
42787 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
42788#define wxUSE_MDI_ARCHITECTURE 1
42789_ACEOF
42790
8a7b1113
VZ
42791 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
42792 fi
a848cd7e
SC
42793fi
42794
42795if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
42796 cat >>confdefs.h <<\_ACEOF
42797#define wxUSE_DOC_VIEW_ARCHITECTURE 1
42798_ACEOF
42799
42800 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
42801 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
42802 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
42803 fi
42804fi
42805
42806if test "$wxUSE_HELP" = "yes"; then
42807 cat >>confdefs.h <<\_ACEOF
42808#define wxUSE_HELP 1
42809_ACEOF
42810
42811 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
42812
42813 if test "$wxUSE_MSW" = 1; then
42814 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
42815 cat >>confdefs.h <<\_ACEOF
42816#define wxUSE_MS_HTML_HELP 1
42817_ACEOF
42818
42819 fi
42820 fi
42821
42822 if test "$wxUSE_WXHTML_HELP" = "yes"; then
42823 if test "$wxUSE_HTML" = "yes"; then
42824 cat >>confdefs.h <<\_ACEOF
42825#define wxUSE_WXHTML_HELP 1
42826_ACEOF
42827
42828 else
42829 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
42830echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
42831 wxUSE_WXHTML_HELP=no
42832 fi
42833 fi
42834fi
42835
42836if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
42837 if test "$wxUSE_CONSTRAINTS" != "yes"; then
42838 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
42839echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
42840 else
42841 cat >>confdefs.h <<\_ACEOF
42842#define wxUSE_PRINTING_ARCHITECTURE 1
42843_ACEOF
42844
42845 fi
42846 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
42847fi
42848
42849if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
42850 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
42851echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
42852 { (exit 1); exit 1; }; }
42853fi
42854
42855
efdf6afe
VZ
42856if test "$wxUSE_METAFILE" = "yes"; then
42857 if test "$wxUSE_MSW" != 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_PM" != 1; then
42858 { echo "$as_me:$LINENO: WARNING: wxMetafile is not available on this system... disabled" >&5
42859echo "$as_me: WARNING: wxMetafile is not available on this system... disabled" >&2;}
42860 wxUSE_METAFILE=no
42861 fi
42862fi
42863
42864
a848cd7e
SC
42865if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
42866 -o "$wxUSE_CLIPBOARD" = "yes" \
42867 -o "$wxUSE_OLE" = "yes" \
42868 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
42869
42870for ac_header in ole2.h
42871do
42872as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
42873if eval "test \"\${$as_ac_Header+set}\" = set"; then
42874 echo "$as_me:$LINENO: checking for $ac_header" >&5
42875echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
42876if eval "test \"\${$as_ac_Header+set}\" = set"; then
42877 echo $ECHO_N "(cached) $ECHO_C" >&6
42878fi
42879echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
42880echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
42881else
42882 # Is the header compilable?
42883echo "$as_me:$LINENO: checking $ac_header usability" >&5
42884echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
42885cat >conftest.$ac_ext <<_ACEOF
42886/* confdefs.h. */
42887_ACEOF
42888cat confdefs.h >>conftest.$ac_ext
42889cat >>conftest.$ac_ext <<_ACEOF
42890/* end confdefs.h. */
42891$ac_includes_default
42892#include <$ac_header>
42893_ACEOF
42894rm -f conftest.$ac_objext
42895if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42896 (eval $ac_compile) 2>conftest.er1
a848cd7e 42897 ac_status=$?
ac1cb8d3
VS
42898 grep -v '^ *+' conftest.er1 >conftest.err
42899 rm -f conftest.er1
42900 cat conftest.err >&5
a848cd7e
SC
42901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42902 (exit $ac_status); } &&
f10e38c4 42903 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42905 (eval $ac_try) 2>&5
42906 ac_status=$?
42907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42908 (exit $ac_status); }; } &&
42909 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42911 (eval $ac_try) 2>&5
42912 ac_status=$?
42913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42914 (exit $ac_status); }; }; then
42915 ac_header_compiler=yes
42916else
42917 echo "$as_me: failed program was:" >&5
42918sed 's/^/| /' conftest.$ac_ext >&5
42919
42920ac_header_compiler=no
42921fi
ac1cb8d3 42922rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
42923echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42924echo "${ECHO_T}$ac_header_compiler" >&6
42925
42926# Is the header present?
42927echo "$as_me:$LINENO: checking $ac_header presence" >&5
42928echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
42929cat >conftest.$ac_ext <<_ACEOF
42930/* confdefs.h. */
42931_ACEOF
42932cat confdefs.h >>conftest.$ac_ext
42933cat >>conftest.$ac_ext <<_ACEOF
42934/* end confdefs.h. */
42935#include <$ac_header>
42936_ACEOF
42937if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
42938 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
42939 ac_status=$?
42940 grep -v '^ *+' conftest.er1 >conftest.err
42941 rm -f conftest.er1
42942 cat conftest.err >&5
42943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42944 (exit $ac_status); } >/dev/null; then
42945 if test -s conftest.err; then
42946 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 42947 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
42948 else
42949 ac_cpp_err=
42950 fi
42951else
42952 ac_cpp_err=yes
42953fi
42954if test -z "$ac_cpp_err"; then
42955 ac_header_preproc=yes
42956else
42957 echo "$as_me: failed program was:" >&5
42958sed 's/^/| /' conftest.$ac_ext >&5
42959
42960 ac_header_preproc=no
42961fi
42962rm -f conftest.err conftest.$ac_ext
42963echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42964echo "${ECHO_T}$ac_header_preproc" >&6
42965
42966# So? What about this header?
ac1cb8d3
VS
42967case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42968 yes:no: )
a848cd7e
SC
42969 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
42970echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
42971 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
42972echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
42973 ac_header_preproc=yes
a848cd7e 42974 ;;
ac1cb8d3 42975 no:yes:* )
a848cd7e
SC
42976 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
42977echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
42978 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
42979echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
42980 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
42981echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
42982 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
42983echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
42984 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
42985echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
42986 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
42987echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
42988 (
42989 cat <<\_ASBOX
ac1cb8d3
VS
42990## ----------------------------------------- ##
42991## Report this to wx-dev@lists.wxwidgets.org ##
42992## ----------------------------------------- ##
a848cd7e
SC
42993_ASBOX
42994 ) |
42995 sed "s/^/$as_me: WARNING: /" >&2
42996 ;;
42997esac
42998echo "$as_me:$LINENO: checking for $ac_header" >&5
42999echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43000if eval "test \"\${$as_ac_Header+set}\" = set"; then
43001 echo $ECHO_N "(cached) $ECHO_C" >&6
43002else
ac1cb8d3 43003 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
43004fi
43005echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43006echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43007
43008fi
43009if test `eval echo '${'$as_ac_Header'}'` = yes; then
43010 cat >>confdefs.h <<_ACEOF
43011#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
43012_ACEOF
43013
43014fi
43015
43016done
43017
43018
43019 if test "$ac_cv_header_ole2_h" = "yes" ; then
43020 if test "$GCC" = yes ; then
a848cd7e
SC
43021 ac_ext=cc
43022ac_cpp='$CXXCPP $CPPFLAGS'
43023ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43024ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43025ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43026
43027
43028 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
43029echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
43030 cat >conftest.$ac_ext <<_ACEOF
43031/* confdefs.h. */
43032_ACEOF
43033cat confdefs.h >>conftest.$ac_ext
43034cat >>conftest.$ac_ext <<_ACEOF
43035/* end confdefs.h. */
43036#include <windows.h>
43037 #include <ole2.h>
43038int
43039main ()
43040{
43041
43042 ;
43043 return 0;
43044}
43045_ACEOF
43046rm -f conftest.$ac_objext
43047if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43048 (eval $ac_compile) 2>conftest.er1
a848cd7e 43049 ac_status=$?
ac1cb8d3
VS
43050 grep -v '^ *+' conftest.er1 >conftest.err
43051 rm -f conftest.er1
43052 cat conftest.err >&5
a848cd7e
SC
43053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43054 (exit $ac_status); } &&
f10e38c4 43055 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43057 (eval $ac_try) 2>&5
43058 ac_status=$?
43059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43060 (exit $ac_status); }; } &&
43061 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43063 (eval $ac_try) 2>&5
43064 ac_status=$?
43065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43066 (exit $ac_status); }; }; then
43067 echo "$as_me:$LINENO: result: no" >&5
43068echo "${ECHO_T}no" >&6
43069else
43070 echo "$as_me: failed program was:" >&5
43071sed 's/^/| /' conftest.$ac_ext >&5
43072
43073echo "$as_me:$LINENO: result: yes" >&5
43074echo "${ECHO_T}yes" >&6
5ff751d6 43075 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fvtable-thunks"
a848cd7e 43076fi
ac1cb8d3 43077rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
43078 ac_ext=c
43079ac_cpp='$CPP $CPPFLAGS'
43080ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43081ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43082ac_compiler_gnu=$ac_cv_c_compiler_gnu
43083
a848cd7e
SC
43084 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
43085 if test "$wxUSE_OLE" = "yes" ; then
43086 cat >>confdefs.h <<\_ACEOF
43087#define wxUSE_OLE 1
43088_ACEOF
43089
0b78747f 43090 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto"
a848cd7e
SC
43091 fi
43092 fi
43093
43094 if test "$wxUSE_DATAOBJ" = "yes" ; then
43095 cat >>confdefs.h <<\_ACEOF
43096#define wxUSE_DATAOBJ 1
43097_ACEOF
43098
43099 fi
43100 else
43101 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
43102echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
43103
43104 wxUSE_CLIPBOARD=no
43105 wxUSE_DRAG_AND_DROP=no
43106 wxUSE_DATAOBJ=no
43107 wxUSE_OLE=no
43108 fi
43109
43110 if test "$wxUSE_METAFILE" = "yes"; then
43111 cat >>confdefs.h <<\_ACEOF
43112#define wxUSE_METAFILE 1
43113_ACEOF
43114
43115
43116 cat >>confdefs.h <<\_ACEOF
43117#define wxUSE_ENH_METAFILE 1
43118_ACEOF
43119
43120 fi
43121fi
43122
43123if test "$wxUSE_IPC" = "yes"; then
0b78747f 43124 if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then
77ffb593
JS
43125 { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
43126echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
0b78747f 43127 wxUSE_IPC=no
a848cd7e
SC
43128 fi
43129
0b78747f
MW
43130 if test "$wxUSE_IPC" = "yes"; then
43131 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
43132#define wxUSE_IPC 1
43133_ACEOF
43134
0b78747f
MW
43135 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
43136 fi
a848cd7e
SC
43137fi
43138
eb730a0c 43139if test "$wxUSE_DATAOBJ" = "yes"; then
2113bc77
MW
43140 if test "$wxUSE_MGL" = 1; then
43141 { echo "$as_me:$LINENO: WARNING: wxDataObject not yet supported under MGL... disabled" >&5
43142echo "$as_me: WARNING: wxDataObject not yet supported under MGL... disabled" >&2;}
43143 wxUSE_DATAOBJ=no
43144 else
43145 cat >>confdefs.h <<\_ACEOF
eb730a0c
JS
43146#define wxUSE_DATAOBJ 1
43147_ACEOF
43148
2113bc77 43149 fi
eb730a0c
JS
43150else
43151 { echo "$as_me:$LINENO: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&5
43152echo "$as_me: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&2;}
43153 wxUSE_CLIPBOARD=no
43154 wxUSE_DRAG_AND_DROP=no
43155fi
43156
a848cd7e
SC
43157if test "$wxUSE_CLIPBOARD" = "yes"; then
43158 if test "$wxUSE_MGL" = 1; then
43159 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
43160echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
43161 wxUSE_CLIPBOARD=no
43162 fi
43163
43164 if test "$wxUSE_CLIPBOARD" = "yes"; then
43165 cat >>confdefs.h <<\_ACEOF
43166#define wxUSE_CLIPBOARD 1
43167_ACEOF
43168
a848cd7e
SC
43169 fi
43170fi
43171
43172if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
43173 if test "$wxUSE_GTK" = 1; then
43174 if test "$WXGTK12" != 1; then
43175 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
43176echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
43177 wxUSE_DRAG_AND_DROP=no
43178 fi
43179 fi
43180
43181 if test "$wxUSE_MOTIF" = 1; then
43182 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
43183echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
43184 wxUSE_DRAG_AND_DROP=no
43185 fi
43186
43187 if test "$wxUSE_X11" = 1; then
43188 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
43189echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
43190 wxUSE_DRAG_AND_DROP=no
43191 fi
43192
43193 if test "$wxUSE_MGL" = 1; then
43194 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
43195echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
43196 wxUSE_DRAG_AND_DROP=no
43197 fi
43198
43199 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
43200 cat >>confdefs.h <<\_ACEOF
43201#define wxUSE_DRAG_AND_DROP 1
43202_ACEOF
43203
43204 fi
43205
43206fi
43207
43208if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
43209 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
43210fi
43211
43212if test "$wxUSE_SPLINES" = "yes" ; then
43213 cat >>confdefs.h <<\_ACEOF
43214#define wxUSE_SPLINES 1
43215_ACEOF
43216
43217fi
43218
fbe2ca43
SN
43219if test "$wxUSE_MOUSEWHEEL" = "yes" ; then
43220 cat >>confdefs.h <<\_ACEOF
43221#define wxUSE_MOUSEWHEEL 1
43222_ACEOF
43223
43224fi
43225
a848cd7e
SC
43226
43227USES_CONTROLS=0
43228if test "$wxUSE_CONTROLS" = "yes"; then
43229 USES_CONTROLS=1
43230fi
43231
43232if test "$wxUSE_ACCEL" = "yes"; then
43233 cat >>confdefs.h <<\_ACEOF
43234#define wxUSE_ACCEL 1
43235_ACEOF
43236
43237 USES_CONTROLS=1
43238fi
43239
43240if test "$wxUSE_BUTTON" = "yes"; then
43241 cat >>confdefs.h <<\_ACEOF
43242#define wxUSE_BUTTON 1
43243_ACEOF
43244
43245 USES_CONTROLS=1
43246fi
43247
43248if test "$wxUSE_BMPBUTTON" = "yes"; then
43249 cat >>confdefs.h <<\_ACEOF
43250#define wxUSE_BMPBUTTON 1
43251_ACEOF
43252
43253 USES_CONTROLS=1
43254fi
43255
43256if test "$wxUSE_CALCTRL" = "yes"; then
43257 cat >>confdefs.h <<\_ACEOF
43258#define wxUSE_CALENDARCTRL 1
43259_ACEOF
43260
43261 USES_CONTROLS=1
43262 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
43263fi
43264
43265if test "$wxUSE_CARET" = "yes"; then
43266 cat >>confdefs.h <<\_ACEOF
43267#define wxUSE_CARET 1
43268_ACEOF
43269
43270 USES_CONTROLS=1
43271 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
43272fi
43273
43274if test "$wxUSE_COMBOBOX" = "yes"; then
43275 cat >>confdefs.h <<\_ACEOF
43276#define wxUSE_COMBOBOX 1
43277_ACEOF
43278
43279 USES_CONTROLS=1
43280fi
43281
43282if test "$wxUSE_CHOICE" = "yes"; then
43283 cat >>confdefs.h <<\_ACEOF
43284#define wxUSE_CHOICE 1
43285_ACEOF
43286
43287 USES_CONTROLS=1
43288fi
43289
92bbdbcd
WS
43290if test "$wxUSE_CHOICEBOOK" = "yes"; then
43291 cat >>confdefs.h <<\_ACEOF
43292#define wxUSE_CHOICEBOOK 1
43293_ACEOF
43294
43295 USES_CONTROLS=1
43296fi
43297
a848cd7e
SC
43298if test "$wxUSE_CHECKBOX" = "yes"; then
43299 cat >>confdefs.h <<\_ACEOF
43300#define wxUSE_CHECKBOX 1
43301_ACEOF
43302
43303 USES_CONTROLS=1
43304fi
43305
43306if test "$wxUSE_CHECKLST" = "yes"; then
43307 cat >>confdefs.h <<\_ACEOF
43308#define wxUSE_CHECKLISTBOX 1
43309_ACEOF
43310
43311 USES_CONTROLS=1
43312 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
43313fi
43314
da98e9be
VZ
43315if test "$wxUSE_DATEPICKCTRL" = "yes"; then
43316 cat >>confdefs.h <<\_ACEOF
43317#define wxUSE_DATEPICKCTRL 1
43318_ACEOF
43319
43320 USES_CONTROLS=1
43321fi
43322
a848cd7e
SC
43323if test "$wxUSE_DISPLAY" = "yes"; then
43324 cat >>confdefs.h <<\_ACEOF
43325#define wxUSE_DISPLAY 1
43326_ACEOF
43327
0b78747f 43328 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display multimon"
a848cd7e
SC
43329fi
43330
43331if test "$wxUSE_GAUGE" = "yes"; then
43332 cat >>confdefs.h <<\_ACEOF
43333#define wxUSE_GAUGE 1
43334_ACEOF
43335
43336 USES_CONTROLS=1
43337fi
43338
43339if test "$wxUSE_GRID" = "yes"; then
43340 cat >>confdefs.h <<\_ACEOF
43341#define wxUSE_GRID 1
43342_ACEOF
43343
43344 USES_CONTROLS=1
43345 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
43346fi
43347
20e34ecc
RR
43348if test "$wxUSE_DATAVIEWCTRL" = "yes"; then
43349 cat >>confdefs.h <<\_ACEOF
43350#define wxUSE_DATAVIEWCTRL 1
43351_ACEOF
43352
43353 USES_CONTROLS=1
43354 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dataview"
43355fi
43356
a848cd7e
SC
43357if test "$wxUSE_IMAGLIST" = "yes"; then
43358 cat >>confdefs.h <<\_ACEOF
43359#define wxUSE_IMAGLIST 1
43360_ACEOF
43361
43362fi
43363
43364if test "$wxUSE_LISTBOOK" = "yes"; then
43365 cat >>confdefs.h <<\_ACEOF
43366#define wxUSE_LISTBOOK 1
43367_ACEOF
43368
43369 USES_CONTROLS=1
43370fi
43371
43372if test "$wxUSE_LISTBOX" = "yes"; then
43373 cat >>confdefs.h <<\_ACEOF
43374#define wxUSE_LISTBOX 1
43375_ACEOF
43376
43377 USES_CONTROLS=1
0b78747f 43378 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listbox"
a848cd7e
SC
43379fi
43380
43381if test "$wxUSE_LISTCTRL" = "yes"; then
43382 if test "$wxUSE_IMAGLIST" = "yes"; then
43383 cat >>confdefs.h <<\_ACEOF
43384#define wxUSE_LISTCTRL 1
43385_ACEOF
43386
43387 USES_CONTROLS=1
43388 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
43389 else
43390 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
43391echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
43392 fi
43393fi
43394
43395if test "$wxUSE_NOTEBOOK" = "yes"; then
43396 cat >>confdefs.h <<\_ACEOF
43397#define wxUSE_NOTEBOOK 1
43398_ACEOF
43399
43400 USES_CONTROLS=1
43401 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
43402fi
43403
43404
43405if test "$wxUSE_RADIOBOX" = "yes"; then
43406 cat >>confdefs.h <<\_ACEOF
43407#define wxUSE_RADIOBOX 1
43408_ACEOF
43409
43410 USES_CONTROLS=1
43411fi
43412
43413if test "$wxUSE_RADIOBTN" = "yes"; then
43414 cat >>confdefs.h <<\_ACEOF
43415#define wxUSE_RADIOBTN 1
43416_ACEOF
43417
43418 USES_CONTROLS=1
43419fi
43420
43421if test "$wxUSE_SASH" = "yes"; then
43422 cat >>confdefs.h <<\_ACEOF
43423#define wxUSE_SASH 1
43424_ACEOF
43425
43426 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
43427fi
43428
43429if test "$wxUSE_SCROLLBAR" = "yes"; then
43430 cat >>confdefs.h <<\_ACEOF
43431#define wxUSE_SCROLLBAR 1
43432_ACEOF
43433
43434 USES_CONTROLS=1
43435 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
43436fi
43437
43438if test "$wxUSE_SLIDER" = "yes"; then
43439 cat >>confdefs.h <<\_ACEOF
43440#define wxUSE_SLIDER 1
43441_ACEOF
43442
43443 USES_CONTROLS=1
43444fi
43445
43446if test "$wxUSE_SPINBTN" = "yes"; then
43447 cat >>confdefs.h <<\_ACEOF
43448#define wxUSE_SPINBTN 1
43449_ACEOF
43450
43451 USES_CONTROLS=1
43452fi
43453
43454if test "$wxUSE_SPINCTRL" = "yes"; then
43455 cat >>confdefs.h <<\_ACEOF
43456#define wxUSE_SPINCTRL 1
43457_ACEOF
43458
43459 USES_CONTROLS=1
43460fi
43461
43462if test "$wxUSE_SPLITTER" = "yes"; then
43463 cat >>confdefs.h <<\_ACEOF
43464#define wxUSE_SPLITTER 1
43465_ACEOF
43466
43467 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
43468fi
43469
43470if test "$wxUSE_STATBMP" = "yes"; then
43471 cat >>confdefs.h <<\_ACEOF
43472#define wxUSE_STATBMP 1
43473_ACEOF
43474
43475 USES_CONTROLS=1
43476fi
43477
43478if test "$wxUSE_STATBOX" = "yes"; then
43479 cat >>confdefs.h <<\_ACEOF
43480#define wxUSE_STATBOX 1
43481_ACEOF
43482
43483 USES_CONTROLS=1
43484fi
43485
43486if test "$wxUSE_STATTEXT" = "yes"; then
43487 cat >>confdefs.h <<\_ACEOF
43488#define wxUSE_STATTEXT 1
43489_ACEOF
43490
43491 USES_CONTROLS=1
43492fi
43493
43494if test "$wxUSE_STATLINE" = "yes"; then
43495 cat >>confdefs.h <<\_ACEOF
43496#define wxUSE_STATLINE 1
43497_ACEOF
43498
43499 USES_CONTROLS=1
43500fi
43501
43502if test "$wxUSE_STATUSBAR" = "yes"; then
da4486fb
VZ
43503 cat >>confdefs.h <<\_ACEOF
43504#define wxUSE_NATIVE_STATUSBAR 1
43505_ACEOF
43506
a848cd7e
SC
43507 cat >>confdefs.h <<\_ACEOF
43508#define wxUSE_STATUSBAR 1
43509_ACEOF
43510
43511 USES_CONTROLS=1
43512
43513 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
43514fi
43515
f10e38c4 43516if test "$wxUSE_TAB_DIALOG" = "yes"; then
a848cd7e
SC
43517 cat >>confdefs.h <<\_ACEOF
43518#define wxUSE_TAB_DIALOG 1
43519_ACEOF
43520
a848cd7e
SC
43521fi
43522
43523if test "$wxUSE_TEXTCTRL" = "yes"; then
43524 cat >>confdefs.h <<\_ACEOF
43525#define wxUSE_TEXTCTRL 1
43526_ACEOF
43527
43528 USES_CONTROLS=1
43529 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
43530fi
43531
43532if test "$wxUSE_TOGGLEBTN" = "yes"; then
43533 if test "$wxUSE_COCOA" = 1 ; then
43534 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
43535echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
43536 wxUSE_TOGGLEBTN=no
43537 fi
43538 if test "$wxUSE_UNIVERSAL" = "yes"; then
43539 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5
43540echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;}
43541 wxUSE_TOGGLEBTN=no
43542 fi
43543
43544 if test "$wxUSE_TOGGLEBTN" = "yes"; then
43545 cat >>confdefs.h <<\_ACEOF
43546#define wxUSE_TOGGLEBTN 1
43547_ACEOF
43548
43549 USES_CONTROLS=1
43550 fi
43551fi
43552
43553if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
43554 cat >>confdefs.h <<\_ACEOF
43555#define wxUSE_TOOLBAR_SIMPLE 1
43556_ACEOF
43557
43558 wxUSE_TOOLBAR="yes"
43559 USES_CONTROLS=1
43560fi
43561
43562if test "$wxUSE_TOOLBAR" = "yes"; then
43563 cat >>confdefs.h <<\_ACEOF
43564#define wxUSE_TOOLBAR 1
43565_ACEOF
43566
43567 USES_CONTROLS=1
43568
43569 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
43570 wxUSE_TOOLBAR_NATIVE="yes"
43571 fi
43572
43573 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
43574 cat >>confdefs.h <<\_ACEOF
43575#define wxUSE_TOOLBAR_NATIVE 1
43576_ACEOF
43577
43578 USES_CONTROLS=1
43579 fi
43580
43581 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
43582fi
43583
43584if test "$wxUSE_TOOLTIPS" = "yes"; then
43585 if test "$wxUSE_MOTIF" = 1; then
43586 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
43587echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
43588 else
43589 if test "$wxUSE_UNIVERSAL" = "yes"; then
43590 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
43591echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
43592 else
43593 cat >>confdefs.h <<\_ACEOF
43594#define wxUSE_TOOLTIPS 1
43595_ACEOF
43596
43597 fi
43598 fi
43599fi
43600
0093c2fc
VZ
43601if test "$wxUSE_TREEBOOK" = "yes"; then
43602 cat >>confdefs.h <<\_ACEOF
43603#define wxUSE_TREEBOOK 1
43604_ACEOF
43605
43606 USES_CONTROLS=1
43607fi
43608
5ec3bc43
JS
43609if test "$wxUSE_TOOLBOOK" = "yes"; then
43610 cat >>confdefs.h <<\_ACEOF
43611#define wxUSE_TOOLBOOK 1
43612_ACEOF
43613
43614 USES_CONTROLS=1
43615fi
43616
a848cd7e
SC
43617if test "$wxUSE_TREECTRL" = "yes"; then
43618 if test "$wxUSE_IMAGLIST" = "yes"; then
43619 cat >>confdefs.h <<\_ACEOF
43620#define wxUSE_TREECTRL 1
43621_ACEOF
43622
43623 USES_CONTROLS=1
43624 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
43625 else
43626 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
43627echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
43628 fi
43629fi
43630
43631if test "$wxUSE_POPUPWIN" = "yes"; then
43632 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
43633 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
43634echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
43635 else
43636 if test "$wxUSE_PM" = 1; then
43637 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
43638echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
43639 else
43640 cat >>confdefs.h <<\_ACEOF
43641#define wxUSE_POPUPWIN 1
43642_ACEOF
43643
0b78747f 43644 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup"
a848cd7e
SC
43645
43646 USES_CONTROLS=1
43647 fi
43648 fi
43649fi
43650
0dcd06dd 43651if test "$wxUSE_DIALUP_MANAGER" = "yes"; then
b843b628
MB
43652 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
43653 { echo "$as_me:$LINENO: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&5
43654echo "$as_me: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&2;}
43655 else
43656 cat >>confdefs.h <<\_ACEOF
43657#define wxUSE_DIALUP_MANAGER 1
43658_ACEOF
43659
43660 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
43661 fi
43662fi
43663
a848cd7e
SC
43664if test "$wxUSE_TIPWINDOW" = "yes"; then
43665 if test "$wxUSE_PM" = 1; then
43666 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
43667echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
43668 else
43669 cat >>confdefs.h <<\_ACEOF
43670#define wxUSE_TIPWINDOW 1
43671_ACEOF
43672
43673 fi
43674fi
43675
43676if test "$USES_CONTROLS" = 1; then
43677 cat >>confdefs.h <<\_ACEOF
43678#define wxUSE_CONTROLS 1
43679_ACEOF
43680
43681fi
43682
43683
43684if test "$wxUSE_ACCESSIBILITY" = "yes"; then
43685 cat >>confdefs.h <<\_ACEOF
43686#define wxUSE_ACCESSIBILITY 1
43687_ACEOF
43688
43689 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
43690fi
43691
38b4a946
VZ
43692if test "$wxUSE_DC_CACHEING" = "yes"; then
43693 cat >>confdefs.h <<\_ACEOF
43694#define wxUSE_DC_CACHEING 1
43695_ACEOF
43696
43697fi
43698
a848cd7e
SC
43699if test "$wxUSE_DRAGIMAGE" = "yes"; then
43700 cat >>confdefs.h <<\_ACEOF
43701#define wxUSE_DRAGIMAGE 1
43702_ACEOF
43703
43704 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
43705fi
43706
43707if test "$wxUSE_EXCEPTIONS" = "yes"; then
07bea8f0
VS
43708 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
43709 { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
43710echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
43711 else
43712 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
43713#define wxUSE_EXCEPTIONS 1
43714_ACEOF
43715
07bea8f0
VS
43716 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
43717 fi
a848cd7e
SC
43718fi
43719
43720USE_HTML=0
43721if test "$wxUSE_HTML" = "yes"; then
43722 cat >>confdefs.h <<\_ACEOF
43723#define wxUSE_HTML 1
43724_ACEOF
43725
43726 USE_HTML=1
43727 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
de59c161
RD
43728 if test "$wxUSE_MAC" = 1; then
43729 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
43730 fi
a848cd7e 43731fi
646b6ec1 43732if test "$wxUSE_WEBKIT" = "yes"; then
1e9e8aba 43733 if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
07bea8f0 43734 old_CPPFLAGS="$CPPFLAGS"
c92ad099 43735 CPPFLAGS="-x objective-c++ $CPPFLAGS"
07bea8f0
VS
43736 echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
43737echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6
43738if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
43739 echo $ECHO_N "(cached) $ECHO_C" >&6
43740else
43741 cat >conftest.$ac_ext <<_ACEOF
43742/* confdefs.h. */
43743_ACEOF
43744cat confdefs.h >>conftest.$ac_ext
43745cat >>conftest.$ac_ext <<_ACEOF
43746/* end confdefs.h. */
43747#include <Carbon/Carbon.h>
43748
43749#include <WebKit/HIWebView.h>
43750_ACEOF
43751rm -f conftest.$ac_objext
43752if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43753 (eval $ac_compile) 2>conftest.er1
43754 ac_status=$?
43755 grep -v '^ *+' conftest.er1 >conftest.err
43756 rm -f conftest.er1
43757 cat conftest.err >&5
43758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43759 (exit $ac_status); } &&
f10e38c4 43760 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
07bea8f0
VS
43761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43762 (eval $ac_try) 2>&5
43763 ac_status=$?
43764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43765 (exit $ac_status); }; } &&
43766 { ac_try='test -s conftest.$ac_objext'
43767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43768 (eval $ac_try) 2>&5
43769 ac_status=$?
43770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43771 (exit $ac_status); }; }; then
43772 ac_cv_header_WebKit_HIWebView_h=yes
43773else
43774 echo "$as_me: failed program was:" >&5
43775sed 's/^/| /' conftest.$ac_ext >&5
43776
43777ac_cv_header_WebKit_HIWebView_h=no
43778fi
43779rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43780fi
43781echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
43782echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6
43783if test $ac_cv_header_WebKit_HIWebView_h = yes; then
43784
43785 cat >>confdefs.h <<\_ACEOF
646b6ec1
VS
43786#define wxUSE_WEBKIT 1
43787_ACEOF
43788
07bea8f0
VS
43789 WEBKIT_LINK="-framework WebKit"
43790
43791else
43792
43793 { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
43794echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
43795 wxUSE_WEBKIT=no
43796
646b6ec1
VS
43797fi
43798
07bea8f0
VS
43799
43800 CPPFLAGS="$old_CPPFLAGS"
43801 elif test "$wxUSE_COCOA" = 1; then
43802 cat >>confdefs.h <<\_ACEOF
43803#define wxUSE_WEBKIT 1
43804_ACEOF
43805
43806 else
43807 wxUSE_WEBKIT=no
43808 fi
43809fi
43810
9a8f0513
VS
43811USE_XRC=0
43812if test "$wxUSE_XRC" = "yes"; then
d2ebf0b7
VS
43813 if test "$wxUSE_XML" != "yes"; then
43814 { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
43815echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
43816 wxUSE_XRC=no
43817 else
43818 cat >>confdefs.h <<\_ACEOF
9a8f0513
VS
43819#define wxUSE_XRC 1
43820_ACEOF
43821
d2ebf0b7
VS
43822 USE_XRC=1
43823 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
43824 fi
9a8f0513 43825fi
07bea8f0 43826
a848cd7e
SC
43827if test "$wxUSE_MENUS" = "yes"; then
43828 cat >>confdefs.h <<\_ACEOF
43829#define wxUSE_MENUS 1
43830_ACEOF
43831
43832 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
43833fi
43834
43835if test "$wxUSE_METAFILE" = "yes"; then
43836 cat >>confdefs.h <<\_ACEOF
43837#define wxUSE_METAFILE 1
43838_ACEOF
43839
43840fi
43841
43842if test "$wxUSE_MIMETYPE" = "yes"; then
43843 cat >>confdefs.h <<\_ACEOF
43844#define wxUSE_MIMETYPE 1
43845_ACEOF
43846
43847fi
43848
43849if test "$wxUSE_MINIFRAME" = "yes"; then
43850 cat >>confdefs.h <<\_ACEOF
43851#define wxUSE_MINIFRAME 1
43852_ACEOF
43853
43854 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
43855fi
43856
43857if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
43858 cat >>confdefs.h <<\_ACEOF
43859#define wxUSE_SYSTEM_OPTIONS 1
43860_ACEOF
43861
43862 if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
a49baeab 43863 "$TOOLKIT" = "MOTIF" -o "$TOOLKIT" = "COCOA"; then
a848cd7e
SC
43864 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
43865 fi
43866fi
43867
43868
43869if test "$wxUSE_VALIDATORS" = "yes"; then
43870 cat >>confdefs.h <<\_ACEOF
43871#define wxUSE_VALIDATORS 1
43872_ACEOF
43873
43874 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
43875fi
43876
43877if test "$wxUSE_PALETTE" = "yes" ; then
43878 cat >>confdefs.h <<\_ACEOF
43879#define wxUSE_PALETTE 1
43880_ACEOF
43881
43882fi
43883
43884if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
43885 LIBS=" -lunicows $LIBS"
43886fi
43887
91dea314
MW
43888USE_RICHTEXT=0
43889if test "$wxUSE_RICHTEXT" = "yes"; then
43890 cat >>confdefs.h <<\_ACEOF
43891#define wxUSE_RICHTEXT 1
43892_ACEOF
43893
43894 USE_RICHTEXT=1
43895 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS richtext"
43896fi
43897
a848cd7e
SC
43898
43899if test "$wxUSE_IMAGE" = "yes" ; then
43900 cat >>confdefs.h <<\_ACEOF
43901#define wxUSE_IMAGE 1
43902_ACEOF
43903
43904
43905 if test "$wxUSE_GIF" = "yes" ; then
43906 cat >>confdefs.h <<\_ACEOF
43907#define wxUSE_GIF 1
43908_ACEOF
43909
43910 fi
43911
43912 if test "$wxUSE_PCX" = "yes" ; then
43913 cat >>confdefs.h <<\_ACEOF
43914#define wxUSE_PCX 1
43915_ACEOF
43916
43917 fi
43918
43919 if test "$wxUSE_IFF" = "yes" ; then
43920 cat >>confdefs.h <<\_ACEOF
43921#define wxUSE_IFF 1
43922_ACEOF
43923
43924 fi
43925
43926 if test "$wxUSE_PNM" = "yes" ; then
43927 cat >>confdefs.h <<\_ACEOF
43928#define wxUSE_PNM 1
43929_ACEOF
43930
43931 fi
43932
43933 if test "$wxUSE_XPM" = "yes" ; then
43934 cat >>confdefs.h <<\_ACEOF
43935#define wxUSE_XPM 1
43936_ACEOF
43937
43938 fi
43939
43940 if test "$wxUSE_ICO_CUR" = "yes" ; then
43941 cat >>confdefs.h <<\_ACEOF
43942#define wxUSE_ICO_CUR 1
43943_ACEOF
43944
43945 fi
43946fi
43947
43948
43949if test "$wxUSE_CHOICEDLG" = "yes"; then
43950 cat >>confdefs.h <<\_ACEOF
43951#define wxUSE_CHOICEDLG 1
43952_ACEOF
43953
43954fi
43955
43956if test "$wxUSE_COLOURDLG" = "yes"; then
43957 cat >>confdefs.h <<\_ACEOF
43958#define wxUSE_COLOURDLG 1
43959_ACEOF
43960
43961fi
43962
43963if test "$wxUSE_FILEDLG" = "yes"; then
43964 cat >>confdefs.h <<\_ACEOF
43965#define wxUSE_FILEDLG 1
43966_ACEOF
43967
43968fi
43969
43970if test "$wxUSE_FINDREPLDLG" = "yes"; then
43971 cat >>confdefs.h <<\_ACEOF
43972#define wxUSE_FINDREPLDLG 1
43973_ACEOF
43974
43975fi
43976
43977if test "$wxUSE_FONTDLG" = "yes"; then
43978 cat >>confdefs.h <<\_ACEOF
43979#define wxUSE_FONTDLG 1
43980_ACEOF
43981
43982fi
43983
43984if test "$wxUSE_DIRDLG" = "yes"; then
43985 if test "$wxUSE_TREECTRL" != "yes"; then
43986 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
43987echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
43988 else
43989 cat >>confdefs.h <<\_ACEOF
43990#define wxUSE_DIRDLG 1
43991_ACEOF
43992
43993 fi
43994fi
43995
43996if test "$wxUSE_MSGDLG" = "yes"; then
43997 cat >>confdefs.h <<\_ACEOF
43998#define wxUSE_MSGDLG 1
43999_ACEOF
44000
44001fi
44002
44003if test "$wxUSE_NUMBERDLG" = "yes"; then
44004 cat >>confdefs.h <<\_ACEOF
44005#define wxUSE_NUMBERDLG 1
44006_ACEOF
44007
44008fi
44009
44010if test "$wxUSE_PROGRESSDLG" = "yes"; then
44011 if test "$wxUSE_CONSTRAINTS" != "yes"; then
44012 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
44013echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
44014 else
44015 cat >>confdefs.h <<\_ACEOF
44016#define wxUSE_PROGRESSDLG 1
44017_ACEOF
44018
44019 fi
44020fi
44021
44022if test "$wxUSE_SPLASH" = "yes"; then
44023 cat >>confdefs.h <<\_ACEOF
44024#define wxUSE_SPLASH 1
44025_ACEOF
44026
2057db16 44027 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
a848cd7e
SC
44028fi
44029
44030if test "$wxUSE_STARTUP_TIPS" = "yes"; then
44031 if test "$wxUSE_CONSTRAINTS" != "yes"; then
44032 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
44033echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
44034 else
44035 cat >>confdefs.h <<\_ACEOF
44036#define wxUSE_STARTUP_TIPS 1
44037_ACEOF
44038
44039 fi
44040fi
44041
44042if test "$wxUSE_TEXTDLG" = "yes"; then
44043 cat >>confdefs.h <<\_ACEOF
44044#define wxUSE_TEXTDLG 1
44045_ACEOF
44046
44047fi
44048
44049if test "$wxUSE_WIZARDDLG" = "yes"; then
44050 cat >>confdefs.h <<\_ACEOF
44051#define wxUSE_WIZARDDLG 1
44052_ACEOF
44053
44054 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
44055fi
44056
44057
f10e38c4
VZ
44058USE_MEDIA=0
44059
ce756cb0 44060if test "$wxUSE_MEDIACTRL" = "yes"; then
ce756cb0
RN
44061 if test "$wxUSE_GTK" = 1; then
44062 wxUSE_GSTREAMER="yes"
44063
f10e38c4
VZ
44064 GST_VERSION_MAJOR=0
44065 GST_VERSION_MINOR=10
44066 GST_VERSION_RELEASE=0
44067 GSTREAMER_REQ=$GST_VERSION_MAJOR.$GST_VERSION_MINOR.$GST_VERSION_RELEASE
44068 GST_MAJORMINOR=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
44069
44070 if test "$wxUSE_GSTREAMER8" = "no"; then
ce756cb0 44071
dae87f93 44072 succeeded=no
ce756cb0 44073
dae87f93
RN
44074 if test -z "$PKG_CONFIG"; then
44075 # Extract the first word of "pkg-config", so it can be a program name with args.
44076set dummy pkg-config; ac_word=$2
44077echo "$as_me:$LINENO: checking for $ac_word" >&5
44078echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
44079if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
44080 echo $ECHO_N "(cached) $ECHO_C" >&6
44081else
44082 case $PKG_CONFIG in
44083 [\\/]* | ?:[\\/]*)
44084 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
44085 ;;
44086 *)
44087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44088for as_dir in $PATH
44089do
44090 IFS=$as_save_IFS
44091 test -z "$as_dir" && as_dir=.
44092 for ac_exec_ext in '' $ac_executable_extensions; do
44093 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
44094 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
44095 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44096 break 2
44097 fi
44098done
44099done
44100
44101 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
44102 ;;
44103esac
44104fi
44105PKG_CONFIG=$ac_cv_path_PKG_CONFIG
44106
44107if test -n "$PKG_CONFIG"; then
44108 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
44109echo "${ECHO_T}$PKG_CONFIG" >&6
44110else
44111 echo "$as_me:$LINENO: result: no" >&5
44112echo "${ECHO_T}no" >&6
44113fi
44114
44115 fi
44116
44117 if test "$PKG_CONFIG" = "no" ; then
44118 echo "*** The pkg-config script could not be found. Make sure it is"
44119 echo "*** in your path, or set the PKG_CONFIG environment variable"
44120 echo "*** to the full path to pkg-config."
44121 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
44122 else
44123 PKG_CONFIG_MIN_VERSION=0.9.0
44124 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
f10e38c4
VZ
44125 echo "$as_me:$LINENO: checking for gstreamer-$GST_MAJORMINOR
44126 gstreamer-plugins-base-$GST_MAJORMINOR
44127 gconf-2.0" >&5
44128echo $ECHO_N "checking for gstreamer-$GST_MAJORMINOR
44129 gstreamer-plugins-base-$GST_MAJORMINOR
44130 gconf-2.0... $ECHO_C" >&6
44131
44132 if $PKG_CONFIG --exists "gstreamer-$GST_MAJORMINOR
44133 gstreamer-plugins-base-$GST_MAJORMINOR
44134 gconf-2.0" ; then
dae87f93 44135 echo "$as_me:$LINENO: result: yes" >&5
ce756cb0 44136echo "${ECHO_T}yes" >&6
dae87f93 44137 succeeded=yes
ce756cb0 44138
f10e38c4
VZ
44139 echo "$as_me:$LINENO: checking GST_CFLAGS" >&5
44140echo $ECHO_N "checking GST_CFLAGS... $ECHO_C" >&6
44141 GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_MAJORMINOR
44142 gstreamer-plugins-base-$GST_MAJORMINOR
44143 gconf-2.0"`
44144 echo "$as_me:$LINENO: result: $GST_CFLAGS" >&5
44145echo "${ECHO_T}$GST_CFLAGS" >&6
44146
44147 echo "$as_me:$LINENO: checking GST_LIBS" >&5
44148echo $ECHO_N "checking GST_LIBS... $ECHO_C" >&6
44149 GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_MAJORMINOR
44150 gstreamer-plugins-base-$GST_MAJORMINOR
44151 gconf-2.0"`
44152 echo "$as_me:$LINENO: result: $GST_LIBS" >&5
44153echo "${ECHO_T}$GST_LIBS" >&6
dae87f93 44154 else
f10e38c4
VZ
44155 GST_CFLAGS=""
44156 GST_LIBS=""
dae87f93
RN
44157 ## If we have a custom action on failure, don't print errors, but
44158 ## do set a variable so people can do so.
f10e38c4
VZ
44159 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_MAJORMINOR
44160 gstreamer-plugins-base-$GST_MAJORMINOR
44161 gconf-2.0"`
ce756cb0 44162
dae87f93
RN
44163 fi
44164
44165
44166
44167 else
44168 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
44169 echo "*** See http://www.freedesktop.org/software/pkgconfig"
44170 fi
44171 fi
44172
44173 if test $succeeded = yes; then
44174
f10e38c4
VZ
44175 CPPFLAGS="$GST_CFLAGS $CPPFLAGS"
44176 LIBS="$LIBS $GST_LIBS -lgstinterfaces-$GST_MAJORMINOR"
ce756cb0 44177
ce756cb0 44178 else
dae87f93 44179
f10e38c4 44180 GST_VERSION_MINOR=8
dae87f93
RN
44181
44182 fi
44183
f10e38c4
VZ
44184 else
44185 GST_VERSION_MINOR=8
44186 fi
dae87f93 44187
f10e38c4
VZ
44188 GSTREAMER_REQ=$GST_VERSION_MAJOR.$GST_VERSION_MINOR.$GST_VERSION_RELEASE
44189 GST_MAJORMINOR=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
dae87f93 44190
f10e38c4 44191 if test x$GST_VERSION_MINOR = x8; then
dae87f93 44192
f10e38c4 44193 succeeded=no
dae87f93 44194
f10e38c4
VZ
44195 if test -z "$PKG_CONFIG"; then
44196 # Extract the first word of "pkg-config", so it can be a program name with args.
44197set dummy pkg-config; ac_word=$2
dae87f93
RN
44198echo "$as_me:$LINENO: checking for $ac_word" >&5
44199echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
f10e38c4 44200if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
dae87f93
RN
44201 echo $ECHO_N "(cached) $ECHO_C" >&6
44202else
f10e38c4
VZ
44203 case $PKG_CONFIG in
44204 [\\/]* | ?:[\\/]*)
44205 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
44206 ;;
44207 *)
44208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
dae87f93
RN
44209for as_dir in $PATH
44210do
44211 IFS=$as_save_IFS
44212 test -z "$as_dir" && as_dir=.
44213 for ac_exec_ext in '' $ac_executable_extensions; do
44214 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
f10e38c4 44215 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
dae87f93
RN
44216 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44217 break 2
ce756cb0 44218 fi
dae87f93
RN
44219done
44220done
44221
f10e38c4
VZ
44222 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
44223 ;;
44224esac
dae87f93 44225fi
f10e38c4
VZ
44226PKG_CONFIG=$ac_cv_path_PKG_CONFIG
44227
44228if test -n "$PKG_CONFIG"; then
44229 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
44230echo "${ECHO_T}$PKG_CONFIG" >&6
dae87f93
RN
44231else
44232 echo "$as_me:$LINENO: result: no" >&5
44233echo "${ECHO_T}no" >&6
44234fi
44235
f10e38c4 44236 fi
ce756cb0 44237
f10e38c4
VZ
44238 if test "$PKG_CONFIG" = "no" ; then
44239 echo "*** The pkg-config script could not be found. Make sure it is"
44240 echo "*** in your path, or set the PKG_CONFIG environment variable"
44241 echo "*** to the full path to pkg-config."
44242 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
44243 else
44244 PKG_CONFIG_MIN_VERSION=0.9.0
44245 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
44246 echo "$as_me:$LINENO: checking for gstreamer-$GST_MAJORMINOR
44247 gstreamer-interfaces-$GST_MAJORMINOR
44248 gstreamer-gconf-$GST_MAJORMINOR" >&5
44249echo $ECHO_N "checking for gstreamer-$GST_MAJORMINOR
44250 gstreamer-interfaces-$GST_MAJORMINOR
44251 gstreamer-gconf-$GST_MAJORMINOR... $ECHO_C" >&6
44252
44253 if $PKG_CONFIG --exists "gstreamer-$GST_MAJORMINOR
44254 gstreamer-interfaces-$GST_MAJORMINOR
44255 gstreamer-gconf-$GST_MAJORMINOR" ; then
44256 echo "$as_me:$LINENO: result: yes" >&5
44257echo "${ECHO_T}yes" >&6
44258 succeeded=yes
dae87f93 44259
f10e38c4
VZ
44260 echo "$as_me:$LINENO: checking GST_CFLAGS" >&5
44261echo $ECHO_N "checking GST_CFLAGS... $ECHO_C" >&6
44262 GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_MAJORMINOR
44263 gstreamer-interfaces-$GST_MAJORMINOR
44264 gstreamer-gconf-$GST_MAJORMINOR"`
44265 echo "$as_me:$LINENO: result: $GST_CFLAGS" >&5
44266echo "${ECHO_T}$GST_CFLAGS" >&6
44267
44268 echo "$as_me:$LINENO: checking GST_LIBS" >&5
44269echo $ECHO_N "checking GST_LIBS... $ECHO_C" >&6
44270 GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_MAJORMINOR
44271 gstreamer-interfaces-$GST_MAJORMINOR
44272 gstreamer-gconf-$GST_MAJORMINOR"`
44273 echo "$as_me:$LINENO: result: $GST_LIBS" >&5
44274echo "${ECHO_T}$GST_LIBS" >&6
44275 else
44276 GST_CFLAGS=""
44277 GST_LIBS=""
44278 ## If we have a custom action on failure, don't print errors, but
44279 ## do set a variable so people can do so.
44280 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_MAJORMINOR
44281 gstreamer-interfaces-$GST_MAJORMINOR
44282 gstreamer-gconf-$GST_MAJORMINOR"`
dae87f93 44283
dae87f93
RN
44284 fi
44285
44286
ce756cb0 44287
f10e38c4
VZ
44288 else
44289 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
44290 echo "*** See http://www.freedesktop.org/software/pkgconfig"
44291 fi
44292 fi
ce756cb0 44293
f10e38c4 44294 if test $succeeded = yes; then
dae87f93 44295
f10e38c4
VZ
44296 CPPFLAGS="$GST_CFLAGS $CPPFLAGS"
44297 LIBS="$LIBS $GST_LIBS"
dae87f93 44298
f10e38c4 44299 else
ce756cb0 44300
f10e38c4
VZ
44301 { echo "$as_me:$LINENO: WARNING: Proper GStreamer .8/.10 installation not found" >&5
44302echo "$as_me: WARNING: Proper GStreamer .8/.10 installation not found" >&2;}
44303 wxUSE_GSTREAMER="no"
ce756cb0 44304
f10e38c4 44305 fi
ce756cb0 44306
dae87f93 44307 fi
ce756cb0 44308
f10e38c4 44309
dae87f93
RN
44310 if test "$wxUSE_GSTREAMER" = "yes"; then
44311 cat >>confdefs.h <<\_ACEOF
ce756cb0
RN
44312#define wxUSE_GSTREAMER 1
44313_ACEOF
44314
dae87f93
RN
44315 echo "$as_me:$LINENO: result: GStreamer detection successful" >&5
44316echo "${ECHO_T}GStreamer detection successful" >&6
ce756cb0
RN
44317 fi
44318 fi
f10e38c4 44319 USE_MEDIA=1
ce756cb0
RN
44320 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
44321 cat >>confdefs.h <<\_ACEOF
44322#define wxUSE_MEDIACTRL 1
44323_ACEOF
44324
44325fi
44326
44327
a848cd7e
SC
44328if test "$cross_compiling" = "yes"; then
44329 OSINFO="\"$host\""
44330else
44331 OSINFO=`uname -s -r -m`
44332 OSINFO="\"$OSINFO\""
44333fi
44334
44335cat >>confdefs.h <<_ACEOF
44336#define WXWIN_OS_DESCRIPTION $OSINFO
44337_ACEOF
44338
44339
44340
44341if test "x$prefix" != "xNONE"; then
44342 wxPREFIX=$prefix
44343else
44344 wxPREFIX=$ac_default_prefix
44345fi
44346
44347cat >>confdefs.h <<_ACEOF
44348#define wxINSTALL_PREFIX "$wxPREFIX"
44349_ACEOF
44350
44351
a848cd7e
SC
44352
44353
44354CORE_BASE_LIBS="net base"
44355CORE_GUI_LIBS="adv core"
44356
44357if test "$wxUSE_XML" = "yes" ; then
44358 CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
44359fi
44360if test "$wxUSE_ODBC" != "no" ; then
44361 CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
44362 CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
44363fi
44364if test "$wxUSE_HTML" = "yes" ; then
44365 CORE_GUI_LIBS="html $CORE_GUI_LIBS"
44366fi
61639efb
VZ
44367if test "$wxUSE_DEBUGREPORT" = "yes" ; then
44368 CORE_GUI_LIBS="qa $CORE_GUI_LIBS"
44369fi
9a8f0513
VS
44370if test "$wxUSE_XRC" = "yes" ; then
44371 CORE_GUI_LIBS="xrc $CORE_GUI_LIBS"
44372fi
a848cd7e
SC
44373
44374if test "$wxUSE_GUI" != "yes"; then
44375 CORE_GUI_LIBS=""
44376fi
44377
44378
44379
44380
44381
44382
44383
a848cd7e 44384if test "$wxUSE_MAC" = 1 ; then
a98bf0c0 44385 if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then
1e9e8aba
DE
44386 if test "$USE_DARWIN" = 1; then
44387 LDFLAGS="$LDFLAGS -framework QuickTime"
44388 else
44389 LDFLAGS="$LDFLAGS -lQuickTimeLib"
44390 fi
07bea8f0 44391 fi
5dcf30a0 44392 if test "$USE_DARWIN" = 1; then
1e9e8aba
DE
44393 LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System"
44394 else
44395 LDFLAGS="$LDFLAGS -lCarbonLib"
5dcf30a0 44396 fi
a848cd7e
SC
44397fi
44398if test "$wxUSE_COCOA" = 1 ; then
4cb1d3da 44399 LDFLAGS="$LDFLAGS -framework IOKit -framework Cocoa"
4fc81cbc
RN
44400 if test "$wxUSE_MEDIACTRL" = "yes"; then
44401 LDFLAGS="$LDFLAGS -framework QuickTime"
44402 fi
a848cd7e 44403fi
19b27e78
MW
44404if test "$USE_DARWIN" = 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1 ; then
44405 LDFLAGS="$LDFLAGS -framework IOKit -framework CoreServices -framework System -framework ApplicationServices"
44406fi
a848cd7e
SC
44407
44408
44409LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
44410
44411have_cos=0
44412have_floor=0
44413
44414for ac_func in cos
44415do
44416as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44417echo "$as_me:$LINENO: checking for $ac_func" >&5
44418echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44419if eval "test \"\${$as_ac_var+set}\" = set"; then
44420 echo $ECHO_N "(cached) $ECHO_C" >&6
44421else
44422 cat >conftest.$ac_ext <<_ACEOF
44423/* confdefs.h. */
44424_ACEOF
44425cat confdefs.h >>conftest.$ac_ext
44426cat >>conftest.$ac_ext <<_ACEOF
44427/* end confdefs.h. */
ac1cb8d3
VS
44428/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44429 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44430#define $ac_func innocuous_$ac_func
44431
a848cd7e
SC
44432/* System header to define __stub macros and hopefully few prototypes,
44433 which can conflict with char $ac_func (); below.
44434 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44435 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 44436
a848cd7e
SC
44437#ifdef __STDC__
44438# include <limits.h>
44439#else
44440# include <assert.h>
44441#endif
ac1cb8d3
VS
44442
44443#undef $ac_func
44444
a848cd7e
SC
44445/* Override any gcc2 internal prototype to avoid an error. */
44446#ifdef __cplusplus
44447extern "C"
44448{
44449#endif
44450/* We use char because int might match the return type of a gcc2
44451 builtin and then its argument prototype would still apply. */
44452char $ac_func ();
44453/* The GNU C library defines this for functions which it implements
44454 to always fail with ENOSYS. Some functions are actually named
44455 something starting with __ and the normal name is an alias. */
44456#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44457choke me
44458#else
44459char (*f) () = $ac_func;
44460#endif
44461#ifdef __cplusplus
44462}
44463#endif
44464
44465int
44466main ()
44467{
44468return f != $ac_func;
44469 ;
44470 return 0;
44471}
44472_ACEOF
44473rm -f conftest.$ac_objext conftest$ac_exeext
44474if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 44475 (eval $ac_link) 2>conftest.er1
a848cd7e 44476 ac_status=$?
ac1cb8d3
VS
44477 grep -v '^ *+' conftest.er1 >conftest.err
44478 rm -f conftest.er1
44479 cat conftest.err >&5
a848cd7e
SC
44480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44481 (exit $ac_status); } &&
f10e38c4 44482 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
44483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44484 (eval $ac_try) 2>&5
44485 ac_status=$?
44486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44487 (exit $ac_status); }; } &&
44488 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
44489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44490 (eval $ac_try) 2>&5
44491 ac_status=$?
44492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44493 (exit $ac_status); }; }; then
44494 eval "$as_ac_var=yes"
44495else
44496 echo "$as_me: failed program was:" >&5
44497sed 's/^/| /' conftest.$ac_ext >&5
44498
44499eval "$as_ac_var=no"
44500fi
ac1cb8d3
VS
44501rm -f conftest.err conftest.$ac_objext \
44502 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
44503fi
44504echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44505echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44506if test `eval echo '${'$as_ac_var'}'` = yes; then
44507 cat >>confdefs.h <<_ACEOF
44508#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44509_ACEOF
44510 have_cos=1
44511fi
44512done
44513
44514
44515for ac_func in floor
44516do
44517as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44518echo "$as_me:$LINENO: checking for $ac_func" >&5
44519echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44520if eval "test \"\${$as_ac_var+set}\" = set"; then
44521 echo $ECHO_N "(cached) $ECHO_C" >&6
44522else
44523 cat >conftest.$ac_ext <<_ACEOF
44524/* confdefs.h. */
44525_ACEOF
44526cat confdefs.h >>conftest.$ac_ext
44527cat >>conftest.$ac_ext <<_ACEOF
44528/* end confdefs.h. */
ac1cb8d3
VS
44529/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44530 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44531#define $ac_func innocuous_$ac_func
44532
a848cd7e
SC
44533/* System header to define __stub macros and hopefully few prototypes,
44534 which can conflict with char $ac_func (); below.
44535 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44536 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 44537
a848cd7e
SC
44538#ifdef __STDC__
44539# include <limits.h>
44540#else
44541# include <assert.h>
44542#endif
ac1cb8d3
VS
44543
44544#undef $ac_func
44545
a848cd7e
SC
44546/* Override any gcc2 internal prototype to avoid an error. */
44547#ifdef __cplusplus
44548extern "C"
44549{
44550#endif
44551/* We use char because int might match the return type of a gcc2
44552 builtin and then its argument prototype would still apply. */
44553char $ac_func ();
44554/* The GNU C library defines this for functions which it implements
44555 to always fail with ENOSYS. Some functions are actually named
44556 something starting with __ and the normal name is an alias. */
44557#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44558choke me
44559#else
44560char (*f) () = $ac_func;
44561#endif
44562#ifdef __cplusplus
44563}
44564#endif
44565
44566int
44567main ()
44568{
44569return f != $ac_func;
44570 ;
44571 return 0;
44572}
44573_ACEOF
44574rm -f conftest.$ac_objext conftest$ac_exeext
44575if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 44576 (eval $ac_link) 2>conftest.er1
a848cd7e 44577 ac_status=$?
ac1cb8d3
VS
44578 grep -v '^ *+' conftest.er1 >conftest.err
44579 rm -f conftest.er1
44580 cat conftest.err >&5
a848cd7e
SC
44581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44582 (exit $ac_status); } &&
f10e38c4 44583 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
44584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44585 (eval $ac_try) 2>&5
44586 ac_status=$?
44587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44588 (exit $ac_status); }; } &&
44589 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
44590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44591 (eval $ac_try) 2>&5
44592 ac_status=$?
44593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44594 (exit $ac_status); }; }; then
44595 eval "$as_ac_var=yes"
44596else
44597 echo "$as_me: failed program was:" >&5
44598sed 's/^/| /' conftest.$ac_ext >&5
44599
44600eval "$as_ac_var=no"
44601fi
ac1cb8d3
VS
44602rm -f conftest.err conftest.$ac_objext \
44603 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
44604fi
44605echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44606echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44607if test `eval echo '${'$as_ac_var'}'` = yes; then
44608 cat >>confdefs.h <<_ACEOF
44609#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44610_ACEOF
44611 have_floor=1
44612fi
44613done
44614
44615echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
44616echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
44617if test "$have_cos" = 1 -a "$have_floor" = 1; then
44618 echo "$as_me:$LINENO: result: yes" >&5
44619echo "${ECHO_T}yes" >&6
44620else
44621 echo "$as_me:$LINENO: result: no" >&5
44622echo "${ECHO_T}no" >&6
44623 LIBS="$LIBS -lm"
44624 # use different functions to avoid configure caching
44625 have_sin=0
44626 have_ceil=0
44627
44628for ac_func in sin
44629do
44630as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44631echo "$as_me:$LINENO: checking for $ac_func" >&5
44632echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44633if eval "test \"\${$as_ac_var+set}\" = set"; then
44634 echo $ECHO_N "(cached) $ECHO_C" >&6
44635else
44636 cat >conftest.$ac_ext <<_ACEOF
44637/* confdefs.h. */
44638_ACEOF
44639cat confdefs.h >>conftest.$ac_ext
44640cat >>conftest.$ac_ext <<_ACEOF
44641/* end confdefs.h. */
ac1cb8d3
VS
44642/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44643 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44644#define $ac_func innocuous_$ac_func
44645
a848cd7e
SC
44646/* System header to define __stub macros and hopefully few prototypes,
44647 which can conflict with char $ac_func (); below.
44648 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44649 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 44650
a848cd7e
SC
44651#ifdef __STDC__
44652# include <limits.h>
44653#else
44654# include <assert.h>
44655#endif
ac1cb8d3
VS
44656
44657#undef $ac_func
44658
a848cd7e
SC
44659/* Override any gcc2 internal prototype to avoid an error. */
44660#ifdef __cplusplus
44661extern "C"
44662{
44663#endif
44664/* We use char because int might match the return type of a gcc2
44665 builtin and then its argument prototype would still apply. */
44666char $ac_func ();
44667/* The GNU C library defines this for functions which it implements
44668 to always fail with ENOSYS. Some functions are actually named
44669 something starting with __ and the normal name is an alias. */
44670#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44671choke me
44672#else
44673char (*f) () = $ac_func;
44674#endif
44675#ifdef __cplusplus
44676}
44677#endif
44678
44679int
44680main ()
44681{
44682return f != $ac_func;
44683 ;
44684 return 0;
44685}
44686_ACEOF
44687rm -f conftest.$ac_objext conftest$ac_exeext
44688if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 44689 (eval $ac_link) 2>conftest.er1
a848cd7e 44690 ac_status=$?
ac1cb8d3
VS
44691 grep -v '^ *+' conftest.er1 >conftest.err
44692 rm -f conftest.er1
44693 cat conftest.err >&5
a848cd7e
SC
44694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44695 (exit $ac_status); } &&
f10e38c4 44696 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
44697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44698 (eval $ac_try) 2>&5
44699 ac_status=$?
44700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44701 (exit $ac_status); }; } &&
44702 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
44703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44704 (eval $ac_try) 2>&5
44705 ac_status=$?
44706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44707 (exit $ac_status); }; }; then
44708 eval "$as_ac_var=yes"
44709else
44710 echo "$as_me: failed program was:" >&5
44711sed 's/^/| /' conftest.$ac_ext >&5
44712
44713eval "$as_ac_var=no"
44714fi
ac1cb8d3
VS
44715rm -f conftest.err conftest.$ac_objext \
44716 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
44717fi
44718echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44719echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44720if test `eval echo '${'$as_ac_var'}'` = yes; then
44721 cat >>confdefs.h <<_ACEOF
44722#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44723_ACEOF
44724 have_sin=1
44725fi
44726done
44727
44728
44729for ac_func in ceil
44730do
44731as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44732echo "$as_me:$LINENO: checking for $ac_func" >&5
44733echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44734if eval "test \"\${$as_ac_var+set}\" = set"; then
44735 echo $ECHO_N "(cached) $ECHO_C" >&6
44736else
44737 cat >conftest.$ac_ext <<_ACEOF
44738/* confdefs.h. */
44739_ACEOF
44740cat confdefs.h >>conftest.$ac_ext
44741cat >>conftest.$ac_ext <<_ACEOF
44742/* end confdefs.h. */
ac1cb8d3
VS
44743/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44744 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44745#define $ac_func innocuous_$ac_func
44746
a848cd7e
SC
44747/* System header to define __stub macros and hopefully few prototypes,
44748 which can conflict with char $ac_func (); below.
44749 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44750 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 44751
a848cd7e
SC
44752#ifdef __STDC__
44753# include <limits.h>
44754#else
44755# include <assert.h>
44756#endif
ac1cb8d3
VS
44757
44758#undef $ac_func
44759
a848cd7e
SC
44760/* Override any gcc2 internal prototype to avoid an error. */
44761#ifdef __cplusplus
44762extern "C"
44763{
44764#endif
44765/* We use char because int might match the return type of a gcc2
44766 builtin and then its argument prototype would still apply. */
44767char $ac_func ();
44768/* The GNU C library defines this for functions which it implements
44769 to always fail with ENOSYS. Some functions are actually named
44770 something starting with __ and the normal name is an alias. */
44771#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44772choke me
44773#else
44774char (*f) () = $ac_func;
44775#endif
44776#ifdef __cplusplus
44777}
44778#endif
44779
44780int
44781main ()
44782{
44783return f != $ac_func;
44784 ;
44785 return 0;
44786}
44787_ACEOF
44788rm -f conftest.$ac_objext conftest$ac_exeext
44789if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 44790 (eval $ac_link) 2>conftest.er1
a848cd7e 44791 ac_status=$?
ac1cb8d3
VS
44792 grep -v '^ *+' conftest.er1 >conftest.err
44793 rm -f conftest.er1
44794 cat conftest.err >&5
a848cd7e
SC
44795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44796 (exit $ac_status); } &&
f10e38c4 44797 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
44798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44799 (eval $ac_try) 2>&5
44800 ac_status=$?
44801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44802 (exit $ac_status); }; } &&
44803 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
44804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44805 (eval $ac_try) 2>&5
44806 ac_status=$?
44807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44808 (exit $ac_status); }; }; then
44809 eval "$as_ac_var=yes"
44810else
44811 echo "$as_me: failed program was:" >&5
44812sed 's/^/| /' conftest.$ac_ext >&5
44813
44814eval "$as_ac_var=no"
44815fi
ac1cb8d3
VS
44816rm -f conftest.err conftest.$ac_objext \
44817 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
44818fi
44819echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44820echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44821if test `eval echo '${'$as_ac_var'}'` = yes; then
44822 cat >>confdefs.h <<_ACEOF
44823#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44824_ACEOF
44825 have_ceil=1
44826fi
44827done
44828
44829 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
44830echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
44831 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
44832 echo "$as_me:$LINENO: result: yes" >&5
44833echo "${ECHO_T}yes" >&6
44834 else
44835 echo "$as_me:$LINENO: result: no" >&5
44836echo "${ECHO_T}no" >&6
44837 # not sure we should warn the user, crash, etc.
44838 fi
44839fi
44840
44841if test "$wxUSE_GUI" = "yes"; then
44842
44843
8bce5cda
MW
44844 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \
44845 dynamic erase event exec font image minimal mobile \
44846 mobile/wxedit mobile/styles propsize render \
9e39d889 44847 rotate shaped vscroll widgets"
a848cd7e
SC
44848
44849 if test "$wxUSE_MONOLITHIC" != "yes"; then
44850 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
44851 fi
0b78747f 44852 if test "$TOOLKIT" = "MSW"; then
8bce5cda
MW
44853 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest"
44854 if test "$wxUSE_UNIVERSAL" != "yes"; then
44855 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg"
44856 fi
44857 fi
44858 if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then
44859 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw"
0b78747f 44860 fi
a848cd7e
SC
44861else
44862 SAMPLES_SUBDIRS="console"
44863fi
44864
44865
48f625bc 44866if test "x$INTELCC" = "xyes" ; then
17a1ebd1
VZ
44867 CWARNINGS="-Wall -wd810,869,981,1418,1572,1684"
44868elif test "$GCC" = yes ; then
44869 CWARNINGS="-Wall -Wundef"
44870fi
44871
48f625bc 44872if test "x$INTELCXX" = "xyes" ; then
7f47faf4 44873 CXXWARNINGS="-Wall -wd279,383,444,810,869,981,1418,1419"
17a1ebd1
VZ
44874elif test "$GXX" = yes ; then
44875 CXXWARNINGS="-Wall -Wundef -Wno-ctor-dtor-privacy"
6ebeb4c7 44876fi
a848cd7e 44877
a848cd7e 44878
5ff751d6
VZ
44879WXCONFIG_CFLAGS=`echo $WXCONFIG_CFLAGS`
44880WXCONFIG_CXXFLAGS=`echo $WXCONFIG_CFLAGS $WXCONFIG_CXXFLAGS`
44881
44882
c92ad099 44883CPPFLAGS=`echo $WXCONFIG_CPPFLAGS \
bc6ee4ae 44884 -I\\${top_builddir}lib/wx/include/${TOOLCHAIN_FULLNAME} \
c92ad099
VZ
44885 -I\\${top_srcdir}/include $TOOLKIT_INCLUDE \
44886 $CPPFLAGS `
5ff751d6 44887
8aeeb05c 44888C_AND_CXX_FLAGS="$DEBUG_CFLAGS $PROFILE_FLAGS $OPTIMISE_CFLAGS"
c92ad099 44889CFLAGS=`echo $WXCONFIG_CFLAGS $CWARNINGS $C_AND_CXX_FLAGS $CFLAGS `
9cbac6d1 44890CXXFLAGS=`echo $WXCONFIG_CXXFLAGS $CXXWARNINGS $C_AND_CXX_FLAGS $CXXFLAGS `
5ff751d6
VZ
44891
44892WXCONFIG_CPPFLAGS=`echo $WXCONFIG_CPPFLAGS $WXCONFIG_ONLY_CPPFLAGS`
44893
a848cd7e 44894
95986553
DE
44895if test "x$MWCC" = "xyes"; then
44896
44897 CC="$CC -cwd source -I-"
44898 CXX="$CXX -cwd source -I-"
44899fi
44900
a848cd7e 44901
0c3c69fc 44902LIBS=`echo $LIBS`
a848cd7e
SC
44903EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
44904EXTRALIBS_XML="$EXPAT_LINK"
44905EXTRALIBS_HTML="$MSPACK_LINK"
44906EXTRALIBS_ODBC="$ODBC_LINK"
44907if test "$wxUSE_GUI" = "yes"; then
3565d135 44908 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_HILDON $EXTRALIBS_GNOMEPRINT`
a848cd7e
SC
44909fi
44910if test "$wxUSE_OPENGL" = "yes"; then
44911 EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
44912fi
44913
8aeeb05c 44914LDFLAGS="$LDFLAGS $PROFILE_FLAGS"
a848cd7e 44915
5ff751d6 44916WXCONFIG_LIBS="$LIBS"
a848cd7e
SC
44917
44918if test "$wxUSE_REGEX" = "builtin" ; then
74802184 44919 wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty"
a848cd7e
SC
44920fi
44921if test "$wxUSE_EXPAT" = "builtin" ; then
74802184 44922 wxconfig_3rdparty="expat $wxconfig_3rdparty"
a848cd7e
SC
44923fi
44924if test "$wxUSE_ODBC" = "builtin" ; then
74802184 44925 wxconfig_3rdparty="odbc $wxconfig_3rdparty"
a848cd7e
SC
44926fi
44927if test "$wxUSE_LIBTIFF" = "builtin" ; then
74802184 44928 wxconfig_3rdparty="tiff $wxconfig_3rdparty"
a848cd7e
SC
44929fi
44930if test "$wxUSE_LIBJPEG" = "builtin" ; then
74802184 44931 wxconfig_3rdparty="jpeg $wxconfig_3rdparty"
a848cd7e
SC
44932fi
44933if test "$wxUSE_LIBPNG" = "builtin" ; then
74802184 44934 wxconfig_3rdparty="png $wxconfig_3rdparty"
a848cd7e
SC
44935fi
44936if test "$wxUSE_ZLIB" = "builtin" ; then
74802184 44937 wxconfig_3rdparty="zlib $wxconfig_3rdparty"
a848cd7e
SC
44938fi
44939
44940for i in $wxconfig_3rdparty ; do
5ff751d6 44941 WXCONFIG_LIBS="-lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_LIBS"
a848cd7e
SC
44942done
44943
44944
44945if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
44946 WXUNIV=1
44947else
44948 WXUNIV=0
44949fi
44950
44951
44952
44953
44954
44955
44956
44957
44958
44959if test $wxUSE_MONOLITHIC = "yes" ; then
44960 MONOLITHIC=1
44961else
44962 MONOLITHIC=0
44963fi
44964
44965if test $wxUSE_PLUGINS = "yes" ; then
44966 USE_PLUGINS=1
44967else
44968 USE_PLUGINS=0
44969fi
44970
44971if test $wxUSE_ODBC != "no" ; then
44972 USE_ODBC=1
44973else
44974 USE_ODBC=0
44975fi
44976
16358932
VZ
44977if test "$wxUSE_DEBUGREPORT" = "yes" ; then
44978 USE_QA=1
44979else
44980 USE_QA=0
44981fi
44982
a848cd7e
SC
44983if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
44984 OFFICIAL_BUILD=1
44985else
44986 OFFICIAL_BUILD=0
44987fi
44988
44989
44990
44991
44992
44993
44994
44995
44996
44997
44998
44999
45000
45001
45002
45003
45004
45005
45006
ceec2216 45007
d1c38808 45008
3565d135 45009
a848cd7e
SC
45010
45011
45012TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
45013
45014
45015
45016
45017
45018
45019
45020
4d4ff94c
VZ
45021case "$TOOLKIT" in
45022 GTK)
45023 TOOLKIT_USER="GTK+"
45024 if test "$WXGTK20" = 1; then
45025 TOOLKIT_USER="$TOOLKIT_USER 2"
45026 fi
9a8f0513 45027 ;;
4d4ff94c
VZ
45028
45029 *)
45030 TOOLKIT_USER=$TOOLKIT_LOWERCASE
9a8f0513 45031 ;;
4d4ff94c 45032esac
a848cd7e 45033
fb00f58d
JS
45034if test "$wxUSE_WINE" = "yes"; then
45035 BAKEFILE_FORCE_PLATFORM=win32
45036fi
45037
7afc46ab
KO
45038if test "$wxUSE_MAC" = 1 ; then
45039 if test "$wxUSE_UNIVERSAL_BINARY" = "yes" ; then
45040 CXXFLAGS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch ppc -arch i386 $CXXFLAGS"
45041 CFLAGS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch ppc -arch i386 $CFLAGS"
45042 LDFLAGS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch ppc -arch i386 $LDFLAGS"
45043 bk_use_pch=no
45044 fi
45045 # TODO: where do we add "-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk" for libtool (static builds only)?
45046 # The makefile currently uses AR and RANLIB, which libtool apparently supercedes.
45047 # TODO: how can we avoid a hardwired reference to the SDK, above? (Someone used -lSystemStubs to avoid it)
45048fi
45049
9a8f0513 45050
1e9e8aba
DE
45051
45052
a848cd7e 45053 if test "x$BAKEFILE_HOST" = "x"; then
f10e38c4
VZ
45054 if test "x${host}" = "x" ; then
45055 { { echo "$as_me:$LINENO: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&5
45056echo "$as_me: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&2;}
45057 { (exit 1); exit 1; }; }
45058 fi
45059
a848cd7e
SC
45060 BAKEFILE_HOST="${host}"
45061 fi
45062
45063 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
45064
45065 if test -n "$ac_tool_prefix"; then
45066 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
45067set dummy ${ac_tool_prefix}ranlib; ac_word=$2
45068echo "$as_me:$LINENO: checking for $ac_word" >&5
45069echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45070if test "${ac_cv_prog_RANLIB+set}" = set; then
45071 echo $ECHO_N "(cached) $ECHO_C" >&6
45072else
45073 if test -n "$RANLIB"; then
45074 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
45075else
45076as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45077for as_dir in $PATH
45078do
45079 IFS=$as_save_IFS
45080 test -z "$as_dir" && as_dir=.
45081 for ac_exec_ext in '' $ac_executable_extensions; do
45082 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45083 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
45084 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45085 break 2
45086 fi
45087done
45088done
45089
45090fi
45091fi
45092RANLIB=$ac_cv_prog_RANLIB
45093if test -n "$RANLIB"; then
45094 echo "$as_me:$LINENO: result: $RANLIB" >&5
45095echo "${ECHO_T}$RANLIB" >&6
45096else
45097 echo "$as_me:$LINENO: result: no" >&5
45098echo "${ECHO_T}no" >&6
45099fi
45100
45101fi
45102if test -z "$ac_cv_prog_RANLIB"; then
45103 ac_ct_RANLIB=$RANLIB
45104 # Extract the first word of "ranlib", so it can be a program name with args.
45105set dummy ranlib; ac_word=$2
45106echo "$as_me:$LINENO: checking for $ac_word" >&5
45107echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45108if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
45109 echo $ECHO_N "(cached) $ECHO_C" >&6
45110else
45111 if test -n "$ac_ct_RANLIB"; then
45112 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
45113else
45114as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45115for as_dir in $PATH
45116do
45117 IFS=$as_save_IFS
45118 test -z "$as_dir" && as_dir=.
45119 for ac_exec_ext in '' $ac_executable_extensions; do
45120 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45121 ac_cv_prog_ac_ct_RANLIB="ranlib"
45122 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45123 break 2
45124 fi
45125done
45126done
45127
45128 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
45129fi
45130fi
45131ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
45132if test -n "$ac_ct_RANLIB"; then
45133 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
45134echo "${ECHO_T}$ac_ct_RANLIB" >&6
45135else
45136 echo "$as_me:$LINENO: result: no" >&5
45137echo "${ECHO_T}no" >&6
45138fi
45139
45140 RANLIB=$ac_ct_RANLIB
45141else
45142 RANLIB="$ac_cv_prog_RANLIB"
45143fi
45144
45145 # Find a good install program. We prefer a C program (faster),
45146# so one script is as good as another. But avoid the broken or
45147# incompatible versions:
45148# SysV /etc/install, /usr/sbin/install
45149# SunOS /usr/etc/install
45150# IRIX /sbin/install
45151# AIX /bin/install
45152# AmigaOS /C/install, which installs bootblocks on floppy discs
45153# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
45154# AFS /usr/afsws/bin/install, which mishandles nonexistent args
45155# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 45156# OS/2's system install, which has a completely different semantic
a848cd7e
SC
45157# ./install, which can be erroneously created by make from ./install.sh.
45158echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
45159echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
45160if test -z "$INSTALL"; then
45161if test "${ac_cv_path_install+set}" = set; then
45162 echo $ECHO_N "(cached) $ECHO_C" >&6
45163else
45164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45165for as_dir in $PATH
45166do
45167 IFS=$as_save_IFS
45168 test -z "$as_dir" && as_dir=.
45169 # Account for people who put trailing slashes in PATH elements.
45170case $as_dir/ in
45171 ./ | .// | /cC/* | \
45172 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 45173 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
45174 /usr/ucb/* ) ;;
45175 *)
45176 # OSF1 and SCO ODT 3.0 have their own names for install.
45177 # Don't use installbsd from OSF since it installs stuff as root
45178 # by default.
45179 for ac_prog in ginstall scoinst install; do
45180 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
45181 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
45182 if test $ac_prog = install &&
45183 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
45184 # AIX install. It has an incompatible calling convention.
45185 :
45186 elif test $ac_prog = install &&
45187 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
45188 # program-specific install script used by HP pwplus--don't use.
45189 :
45190 else
45191 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
45192 break 3
45193 fi
45194 fi
a848cd7e
SC
45195 done
45196 done
45197 ;;
45198esac
45199done
45200
45201
45202fi
45203 if test "${ac_cv_path_install+set}" = set; then
45204 INSTALL=$ac_cv_path_install
45205 else
45206 # As a last resort, use the slow shell script. We don't cache a
45207 # path for INSTALL within a source directory, because that will
45208 # break other packages using the cache if that directory is
45209 # removed, or if the path is relative.
45210 INSTALL=$ac_install_sh
45211 fi
45212fi
45213echo "$as_me:$LINENO: result: $INSTALL" >&5
45214echo "${ECHO_T}$INSTALL" >&6
45215
45216# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
45217# It thinks the first close brace ends the variable substitution.
45218test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
45219
45220test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
45221
45222test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
45223
45224 echo "$as_me:$LINENO: checking whether ln -s works" >&5
45225echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
45226LN_S=$as_ln_s
45227if test "$LN_S" = "ln -s"; then
45228 echo "$as_me:$LINENO: result: yes" >&5
45229echo "${ECHO_T}yes" >&6
45230else
45231 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
45232echo "${ECHO_T}no, using $LN_S" >&6
45233fi
45234
45235
45236 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
45237echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 45238set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
45239if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
45240 echo $ECHO_N "(cached) $ECHO_C" >&6
45241else
45242 cat >conftest.make <<\_ACEOF
45243all:
45244 @echo 'ac_maketemp="$(MAKE)"'
45245_ACEOF
45246# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
45247eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
45248if test -n "$ac_maketemp"; then
45249 eval ac_cv_prog_make_${ac_make}_set=yes
45250else
45251 eval ac_cv_prog_make_${ac_make}_set=no
45252fi
45253rm -f conftest.make
45254fi
45255if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
45256 echo "$as_me:$LINENO: result: yes" >&5
45257echo "${ECHO_T}yes" >&6
45258 SET_MAKE=
45259else
45260 echo "$as_me:$LINENO: result: no" >&5
45261echo "${ECHO_T}no" >&6
45262 SET_MAKE="MAKE=${MAKE-make}"
45263fi
45264
45265
45266
45267 if test -n "$ac_tool_prefix"; then
45268 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
45269set dummy ${ac_tool_prefix}ar; ac_word=$2
45270echo "$as_me:$LINENO: checking for $ac_word" >&5
45271echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45272if test "${ac_cv_prog_AR+set}" = set; then
45273 echo $ECHO_N "(cached) $ECHO_C" >&6
45274else
45275 if test -n "$AR"; then
45276 ac_cv_prog_AR="$AR" # Let the user override the test.
45277else
45278as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45279for as_dir in $PATH
45280do
45281 IFS=$as_save_IFS
45282 test -z "$as_dir" && as_dir=.
45283 for ac_exec_ext in '' $ac_executable_extensions; do
45284 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45285 ac_cv_prog_AR="${ac_tool_prefix}ar"
45286 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45287 break 2
45288 fi
45289done
45290done
45291
45292fi
45293fi
45294AR=$ac_cv_prog_AR
45295if test -n "$AR"; then
45296 echo "$as_me:$LINENO: result: $AR" >&5
45297echo "${ECHO_T}$AR" >&6
45298else
45299 echo "$as_me:$LINENO: result: no" >&5
45300echo "${ECHO_T}no" >&6
45301fi
45302
45303fi
45304if test -z "$ac_cv_prog_AR"; then
45305 ac_ct_AR=$AR
45306 # Extract the first word of "ar", so it can be a program name with args.
45307set dummy ar; ac_word=$2
45308echo "$as_me:$LINENO: checking for $ac_word" >&5
45309echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45310if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
45311 echo $ECHO_N "(cached) $ECHO_C" >&6
45312else
45313 if test -n "$ac_ct_AR"; then
45314 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
45315else
45316as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45317for as_dir in $PATH
45318do
45319 IFS=$as_save_IFS
45320 test -z "$as_dir" && as_dir=.
45321 for ac_exec_ext in '' $ac_executable_extensions; do
45322 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45323 ac_cv_prog_ac_ct_AR="ar"
45324 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45325 break 2
45326 fi
45327done
45328done
45329
45330 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
45331fi
45332fi
45333ac_ct_AR=$ac_cv_prog_ac_ct_AR
45334if test -n "$ac_ct_AR"; then
45335 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
45336echo "${ECHO_T}$ac_ct_AR" >&6
45337else
45338 echo "$as_me:$LINENO: result: no" >&5
45339echo "${ECHO_T}no" >&6
45340fi
45341
45342 AR=$ac_ct_AR
45343else
45344 AR="$ac_cv_prog_AR"
45345fi
45346
45347 if test -n "$ac_tool_prefix"; then
45348 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
45349set dummy ${ac_tool_prefix}strip; ac_word=$2
45350echo "$as_me:$LINENO: checking for $ac_word" >&5
45351echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45352if test "${ac_cv_prog_STRIP+set}" = set; then
45353 echo $ECHO_N "(cached) $ECHO_C" >&6
45354else
45355 if test -n "$STRIP"; then
45356 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
45357else
45358as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45359for as_dir in $PATH
45360do
45361 IFS=$as_save_IFS
45362 test -z "$as_dir" && as_dir=.
45363 for ac_exec_ext in '' $ac_executable_extensions; do
45364 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45365 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
45366 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45367 break 2
45368 fi
45369done
45370done
45371
45372fi
45373fi
45374STRIP=$ac_cv_prog_STRIP
45375if test -n "$STRIP"; then
45376 echo "$as_me:$LINENO: result: $STRIP" >&5
45377echo "${ECHO_T}$STRIP" >&6
45378else
45379 echo "$as_me:$LINENO: result: no" >&5
45380echo "${ECHO_T}no" >&6
45381fi
45382
45383fi
45384if test -z "$ac_cv_prog_STRIP"; then
45385 ac_ct_STRIP=$STRIP
45386 # Extract the first word of "strip", so it can be a program name with args.
45387set dummy strip; ac_word=$2
45388echo "$as_me:$LINENO: checking for $ac_word" >&5
45389echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45390if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
45391 echo $ECHO_N "(cached) $ECHO_C" >&6
45392else
45393 if test -n "$ac_ct_STRIP"; then
45394 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
45395else
45396as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45397for as_dir in $PATH
45398do
45399 IFS=$as_save_IFS
45400 test -z "$as_dir" && as_dir=.
45401 for ac_exec_ext in '' $ac_executable_extensions; do
45402 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45403 ac_cv_prog_ac_ct_STRIP="strip"
45404 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45405 break 2
45406 fi
45407done
45408done
45409
45410 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
45411fi
45412fi
45413ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
45414if test -n "$ac_ct_STRIP"; then
45415 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
45416echo "${ECHO_T}$ac_ct_STRIP" >&6
45417else
45418 echo "$as_me:$LINENO: result: no" >&5
45419echo "${ECHO_T}no" >&6
45420fi
45421
45422 STRIP=$ac_ct_STRIP
45423else
45424 STRIP="$ac_cv_prog_STRIP"
45425fi
45426
45427 if test -n "$ac_tool_prefix"; then
45428 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
45429set dummy ${ac_tool_prefix}nm; ac_word=$2
45430echo "$as_me:$LINENO: checking for $ac_word" >&5
45431echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45432if test "${ac_cv_prog_NM+set}" = set; then
45433 echo $ECHO_N "(cached) $ECHO_C" >&6
45434else
45435 if test -n "$NM"; then
45436 ac_cv_prog_NM="$NM" # Let the user override the test.
45437else
45438as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45439for as_dir in $PATH
45440do
45441 IFS=$as_save_IFS
45442 test -z "$as_dir" && as_dir=.
45443 for ac_exec_ext in '' $ac_executable_extensions; do
45444 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45445 ac_cv_prog_NM="${ac_tool_prefix}nm"
45446 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45447 break 2
45448 fi
45449done
45450done
45451
45452fi
45453fi
45454NM=$ac_cv_prog_NM
45455if test -n "$NM"; then
45456 echo "$as_me:$LINENO: result: $NM" >&5
45457echo "${ECHO_T}$NM" >&6
45458else
45459 echo "$as_me:$LINENO: result: no" >&5
45460echo "${ECHO_T}no" >&6
45461fi
45462
45463fi
45464if test -z "$ac_cv_prog_NM"; then
45465 ac_ct_NM=$NM
45466 # Extract the first word of "nm", so it can be a program name with args.
45467set dummy nm; ac_word=$2
45468echo "$as_me:$LINENO: checking for $ac_word" >&5
45469echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45470if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
45471 echo $ECHO_N "(cached) $ECHO_C" >&6
45472else
45473 if test -n "$ac_ct_NM"; then
45474 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
45475else
45476as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45477for as_dir in $PATH
45478do
45479 IFS=$as_save_IFS
45480 test -z "$as_dir" && as_dir=.
45481 for ac_exec_ext in '' $ac_executable_extensions; do
45482 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45483 ac_cv_prog_ac_ct_NM="nm"
45484 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45485 break 2
45486 fi
45487done
45488done
45489
45490 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
45491fi
45492fi
45493ac_ct_NM=$ac_cv_prog_ac_ct_NM
45494if test -n "$ac_ct_NM"; then
45495 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
45496echo "${ECHO_T}$ac_ct_NM" >&6
45497else
45498 echo "$as_me:$LINENO: result: no" >&5
45499echo "${ECHO_T}no" >&6
45500fi
45501
45502 NM=$ac_ct_NM
45503else
45504 NM="$ac_cv_prog_NM"
45505fi
45506
45507
45508 case ${BAKEFILE_HOST} in
45509 *-hp-hpux* )
1e9e8aba 45510 INSTALL_DIR="mkdir -p"
a848cd7e
SC
45511 ;;
45512 *) INSTALL_DIR="$INSTALL -d"
45513 ;;
45514 esac
45515
45516
45517 LDFLAGS_GUI=
45518 case ${BAKEFILE_HOST} in
45519 *-*-cygwin* | *-*-mingw32* )
45520 LDFLAGS_GUI="-mwindows"
45521 esac
45522
45523
45524 fi
45525
45526 echo "$as_me:$LINENO: checking if make is GNU make" >&5
45527echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
45528if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
45529 echo $ECHO_N "(cached) $ECHO_C" >&6
45530else
45531
45532 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
45533 egrep -s GNU > /dev/null); then
45534 bakefile_cv_prog_makeisgnu="yes"
45535 else
45536 bakefile_cv_prog_makeisgnu="no"
45537 fi
45538
45539fi
45540echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
45541echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
45542
45543 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
45544 IF_GNU_MAKE=""
45545 else
45546 IF_GNU_MAKE="#"
45547 fi
45548
45549
45550
45551 PLATFORM_UNIX=0
45552 PLATFORM_WIN32=0
45553 PLATFORM_MSDOS=0
45554 PLATFORM_MAC=0
1e9e8aba 45555 PLATFORM_MACOS=0
a848cd7e
SC
45556 PLATFORM_MACOSX=0
45557 PLATFORM_OS2=0
1e9e8aba 45558 PLATFORM_BEOS=0
a848cd7e
SC
45559
45560 if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
45561 case "${BAKEFILE_HOST}" in
810b94f0 45562 *-*-mingw32* )
a848cd7e
SC
45563 PLATFORM_WIN32=1
45564 ;;
45565 *-pc-msdosdjgpp )
45566 PLATFORM_MSDOS=1
45567 ;;
45568 *-pc-os2_emx | *-pc-os2-emx )
45569 PLATFORM_OS2=1
45570 ;;
47bd5406 45571 *-*-darwin* )
a848cd7e
SC
45572 PLATFORM_MAC=1
45573 PLATFORM_MACOSX=1
45574 ;;
1e9e8aba
DE
45575 *-*-beos* )
45576 PLATFORM_BEOS=1
45577 ;;
45578 powerpc-apple-macos* )
45579 PLATFORM_MAC=1
45580 PLATFORM_MACOS=1
45581 ;;
a848cd7e
SC
45582 * )
45583 PLATFORM_UNIX=1
45584 ;;
45585 esac
45586 else
45587 case "$BAKEFILE_FORCE_PLATFORM" in
45588 win32 )
45589 PLATFORM_WIN32=1
45590 ;;
45591 msdos )
45592 PLATFORM_MSDOS=1
45593 ;;
45594 os2 )
45595 PLATFORM_OS2=1
45596 ;;
45597 darwin )
45598 PLATFORM_MAC=1
45599 PLATFORM_MACOSX=1
45600 ;;
45601 unix )
45602 PLATFORM_UNIX=1
45603 ;;
1e9e8aba
DE
45604 beos )
45605 PLATFORM_BEOS=1
45606 ;;
a848cd7e
SC
45607 * )
45608 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
45609echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
45610 { (exit 1); exit 1; }; }
45611 ;;
45612 esac
45613 fi
45614
45615
45616
45617
45618
45619
45620
45621
45622
1e9e8aba
DE
45623
45624
a848cd7e
SC
45625 # Check whether --enable-omf or --disable-omf was given.
45626if test "${enable_omf+set}" = set; then
45627 enableval="$enable_omf"
45628 bk_os2_use_omf="$enableval"
45629fi;
45630
45631 case "${BAKEFILE_HOST}" in
45632 *-*-darwin* )
47bd5406
VZ
45633 if test "x$GCC" = "xyes"; then
45634 CFLAGS="$CFLAGS -fno-common"
45635 CXXFLAGS="$CXXFLAGS -fno-common"
45636 fi
45637 if test "x$XLCC" = "xyes"; then
45638 CFLAGS="$CFLAGS -qnocommon"
45639 CXXFLAGS="$CXXFLAGS -qnocommon"
45640 fi
a848cd7e
SC
45641 ;;
45642
45643 *-pc-os2_emx | *-pc-os2-emx )
45644 if test "x$bk_os2_use_omf" = "xyes" ; then
45645 AR=emxomfar
45646 RANLIB=:
45647 LDFLAGS="-Zomf $LDFLAGS"
45648 CFLAGS="-Zomf $CFLAGS"
45649 CXXFLAGS="-Zomf $CXXFLAGS"
45650 OS2_LIBEXT="lib"
45651 else
45652 OS2_LIBEXT="a"
45653 fi
45654 ;;
1e9e8aba
DE
45655
45656 i*86-*-beos* )
45657 LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
45658 ;;
a848cd7e
SC
45659 esac
45660
45661
45662 SO_SUFFIX="so"
45663 SO_SUFFIX_MODULE="so"
45664 EXEEXT=""
45665 LIBPREFIX="lib"
45666 LIBEXT=".a"
45667 DLLPREFIX="lib"
45668 DLLPREFIX_MODULE=""
45669 DLLIMP_SUFFIX=""
810b94f0 45670 dlldir="$libdir"
a848cd7e
SC
45671
45672 case "${BAKEFILE_HOST}" in
45673 *-hp-hpux* )
45674 SO_SUFFIX="sl"
45675 SO_SUFFIX_MODULE="sl"
45676 ;;
45677 *-*-aix* )
45678 SO_SUFFIX="a"
45679 SO_SUFFIX_MODULE="a"
45680 ;;
810b94f0
MW
45681 *-*-cygwin* )
45682 SO_SUFFIX="dll"
45683 SO_SUFFIX_MODULE="dll"
45684 DLLIMP_SUFFIX="dll.a"
45685 EXEEXT=".exe"
45686 DLLPREFIX="cyg"
45687 dlldir="$bindir"
45688 ;;
45689 *-*-mingw32* )
a848cd7e
SC
45690 SO_SUFFIX="dll"
45691 SO_SUFFIX_MODULE="dll"
45692 DLLIMP_SUFFIX="dll.a"
45693 EXEEXT=".exe"
45694 DLLPREFIX=""
810b94f0 45695 dlldir="$bindir"
a848cd7e
SC
45696 ;;
45697 *-pc-msdosdjgpp )
45698 EXEEXT=".exe"
45699 DLLPREFIX=""
810b94f0 45700 dlldir="$bindir"
a848cd7e
SC
45701 ;;
45702 *-pc-os2_emx | *-pc-os2-emx )
45703 SO_SUFFIX="dll"
45704 SO_SUFFIX_MODULE="dll"
45705 DLLIMP_SUFFIX=$OS2_LIBEXT
45706 EXEEXT=".exe"
45707 DLLPREFIX=""
45708 LIBPREFIX=""
45709 LIBEXT=".$OS2_LIBEXT"
810b94f0 45710 dlldir="$bindir"
a848cd7e 45711 ;;
47bd5406 45712 *-*-darwin* )
a848cd7e
SC
45713 SO_SUFFIX="dylib"
45714 SO_SUFFIX_MODULE="bundle"
45715 ;;
45716 esac
45717
45718 if test "x$DLLIMP_SUFFIX" = "x" ; then
45719 DLLIMP_SUFFIX="$SO_SUFFIX"
45720 fi
45721
45722
45723
45724
45725
45726
45727
45728
45729
45730
45731
810b94f0 45732
1e9e8aba
DE
45733 PIC_FLAG=""
45734 if test "x$GCC" = "xyes"; then
a848cd7e
SC
45735 PIC_FLAG="-fPIC"
45736 fi
45737
1e9e8aba
DE
45738 SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
45739 SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
810b94f0 45740 WINDOWS_IMPLIB=0
1e9e8aba 45741
a848cd7e
SC
45742 case "${BAKEFILE_HOST}" in
45743 *-hp-hpux* )
1e9e8aba 45744 if test "x$GCC" != "xyes"; then
a848cd7e
SC
45745 LDFLAGS="$LDFLAGS -L/usr/lib"
45746
45747 SHARED_LD_CC="${CC} -b -o"
45748 SHARED_LD_CXX="${CXX} -b -o"
45749 PIC_FLAG="+Z"
45750 fi
45751 ;;
45752
45753 *-*-linux* )
45754 if test "x$GCC" != "xyes"; then
45755 echo "$as_me:$LINENO: checking for Intel compiler" >&5
45756echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
45757if test "${bakefile_cv_prog_icc+set}" = set; then
45758 echo $ECHO_N "(cached) $ECHO_C" >&6
45759else
45760
45761 cat >conftest.$ac_ext <<_ACEOF
45762/* confdefs.h. */
45763_ACEOF
45764cat confdefs.h >>conftest.$ac_ext
45765cat >>conftest.$ac_ext <<_ACEOF
45766/* end confdefs.h. */
45767
45768int
45769main ()
45770{
45771
45772 #ifndef __INTEL_COMPILER
e5efa97e 45773 This is not ICC
a848cd7e
SC
45774 #endif
45775
45776 ;
45777 return 0;
45778}
45779_ACEOF
45780rm -f conftest.$ac_objext
45781if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 45782 (eval $ac_compile) 2>conftest.er1
a848cd7e 45783 ac_status=$?
ac1cb8d3
VS
45784 grep -v '^ *+' conftest.er1 >conftest.err
45785 rm -f conftest.er1
45786 cat conftest.err >&5
a848cd7e
SC
45787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45788 (exit $ac_status); } &&
f10e38c4 45789 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
45790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45791 (eval $ac_try) 2>&5
45792 ac_status=$?
45793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45794 (exit $ac_status); }; } &&
45795 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
45796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45797 (eval $ac_try) 2>&5
45798 ac_status=$?
45799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45800 (exit $ac_status); }; }; then
45801 bakefile_cv_prog_icc=yes
45802else
45803 echo "$as_me: failed program was:" >&5
45804sed 's/^/| /' conftest.$ac_ext >&5
45805
45806bakefile_cv_prog_icc=no
45807
45808fi
ac1cb8d3 45809rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
45810
45811fi
45812echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
45813echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
45814 if test "$bakefile_cv_prog_icc" = "yes"; then
45815 PIC_FLAG="-KPIC"
45816 fi
45817 fi
45818 ;;
45819
45820 *-*-solaris2* )
45821 if test "x$GCC" != xyes ; then
45822 SHARED_LD_CC="${CC} -G -o"
45823 SHARED_LD_CXX="${CXX} -G -o"
45824 PIC_FLAG="-KPIC"
45825 fi
45826 ;;
45827
45828 *-*-darwin* )
45829
473276a9
VS
45830D='$'
45831cat <<EOF >shared-ld-sh
a848cd7e
SC
45832#!/bin/sh
45833#-----------------------------------------------------------------------------
45834#-- Name: distrib/mac/shared-ld-sh
45835#-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
45836#-- Author: Gilles Depeyrot
45837#-- Copyright: (c) 2002 Gilles Depeyrot
45838#-- Licence: any use permitted
45839#-----------------------------------------------------------------------------
45840
45841verbose=0
45842args=""
45843objects=""
45844linking_flag="-dynamiclib"
810b94f0 45845ldargs="-r -keep_private_externs -nostdlib"
a848cd7e 45846
473276a9
VS
45847while test ${D}# -gt 0; do
45848 case ${D}1 in
a848cd7e
SC
45849
45850 -v)
45851 verbose=1
45852 ;;
45853
45854 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
45855 # collect these options and values
473276a9 45856 args="${D}{args} ${D}1 ${D}2"
a848cd7e
SC
45857 shift
45858 ;;
45859
810b94f0
MW
45860 -s|-Wl,*)
45861 # collect these load args
45862 ldargs="${D}{ldargs} ${D}1"
2113bc77 45863 ;;
810b94f0
MW
45864
45865 -l*|-L*|-flat_namespace|-headerpad_max_install_names)
a848cd7e 45866 # collect these options
473276a9 45867 args="${D}{args} ${D}1"
a848cd7e
SC
45868 ;;
45869
45870 -dynamiclib|-bundle)
473276a9 45871 linking_flag="${D}1"
a848cd7e
SC
45872 ;;
45873
45874 -*)
473276a9 45875 echo "shared-ld: unhandled option '${D}1'"
a848cd7e
SC
45876 exit 1
45877 ;;
45878
45879 *.o | *.a | *.dylib)
45880 # collect object files
473276a9 45881 objects="${D}{objects} ${D}1"
a848cd7e
SC
45882 ;;
45883
45884 *)
473276a9 45885 echo "shared-ld: unhandled argument '${D}1'"
a848cd7e
SC
45886 exit 1
45887 ;;
45888
45889 esac
45890 shift
45891done
45892
810b94f0
MW
45893status=0
45894
a848cd7e
SC
45895#
45896# Link one module containing all the others
45897#
473276a9 45898if test ${D}{verbose} = 1; then
810b94f0 45899 echo "c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o"
a848cd7e 45900fi
810b94f0 45901c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o
473276a9 45902status=${D}?
a848cd7e
SC
45903
45904#
810b94f0
MW
45905# Link the shared library from the single module created, but only if the
45906# previous command didn't fail:
a848cd7e 45907#
810b94f0
MW
45908if test ${D}{status} = 0; then
45909 if test ${D}{verbose} = 1; then
45910 echo "c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
45911 fi
45912 c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}
45913 status=${D}?
a848cd7e
SC
45914fi
45915
45916#
45917# Remove intermediate module
45918#
473276a9 45919rm -f master.${D}${D}.o
a848cd7e 45920
810b94f0 45921exit ${D}status
a848cd7e 45922EOF
473276a9 45923
583d6b4b
VZ
45924 chmod +x shared-ld-sh
45925
45926 SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
45927 SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
45928
45929
45930 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
45931echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
45932if test "${bakefile_cv_gcc31+set}" = set; then
45933 echo $ECHO_N "(cached) $ECHO_C" >&6
45934else
45935
45936 cat >conftest.$ac_ext <<_ACEOF
45937/* confdefs.h. */
45938_ACEOF
45939cat confdefs.h >>conftest.$ac_ext
45940cat >>conftest.$ac_ext <<_ACEOF
45941/* end confdefs.h. */
45942
45943int
45944main ()
45945{
45946
45947 #if (__GNUC__ < 3) || \
45948 ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
e5efa97e 45949 This is old gcc
583d6b4b 45950 #endif
a848cd7e 45951
583d6b4b
VZ
45952 ;
45953 return 0;
45954}
45955_ACEOF
45956rm -f conftest.$ac_objext
45957if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45958 (eval $ac_compile) 2>conftest.er1
45959 ac_status=$?
45960 grep -v '^ *+' conftest.er1 >conftest.err
45961 rm -f conftest.er1
45962 cat conftest.err >&5
45963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45964 (exit $ac_status); } &&
f10e38c4 45965 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
583d6b4b
VZ
45966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45967 (eval $ac_try) 2>&5
45968 ac_status=$?
45969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45970 (exit $ac_status); }; } &&
45971 { ac_try='test -s conftest.$ac_objext'
45972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45973 (eval $ac_try) 2>&5
45974 ac_status=$?
45975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45976 (exit $ac_status); }; }; then
45977
45978 bakefile_cv_gcc31=yes
45979
45980else
45981 echo "$as_me: failed program was:" >&5
45982sed 's/^/| /' conftest.$ac_ext >&5
45983
45984
45985 bakefile_cv_gcc31=no
45986
45987
45988fi
45989rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45990
45991fi
45992echo "$as_me:$LINENO: result: $bakefile_cv_gcc31" >&5
45993echo "${ECHO_T}$bakefile_cv_gcc31" >&6
45994 if test "$bakefile_cv_gcc31" = "no"; then
a848cd7e 45995 SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
a848cd7e 45996 SHARED_LD_CXX="$SHARED_LD_CC"
a848cd7e
SC
45997 else
45998 SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
a848cd7e 45999 SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
a848cd7e
SC
46000 fi
46001
47bd5406
VZ
46002 if test "x$GCC" == "xyes"; then
46003 PIC_FLAG="-dynamic -fPIC"
46004 fi
46005 if test "x$XLCC" = "xyes"; then
46006 PIC_FLAG="-dynamic -DPIC"
46007 fi
a848cd7e
SC
46008 ;;
46009
46010 *-*-aix* )
f6b50c59 46011 if test "x$GCC" = "xyes"; then
583d6b4b 46012 PIC_FLAG=""
f6b50c59 46013
583d6b4b
VZ
46014 case "${BAKEFILE_HOST}" in
46015 *-*-aix5* )
46016 LD_EXPFULL="-Wl,-bexpfull"
46017 ;;
46018 esac
f6b50c59 46019
583d6b4b
VZ
46020 SHARED_LD_CC="\$(CC) -shared $LD_EXPFULL -o"
46021 SHARED_LD_CXX="\$(CXX) -shared $LD_EXPFULL -o"
46022 else
46023 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
a848cd7e
SC
46024set dummy makeC++SharedLib; ac_word=$2
46025echo "$as_me:$LINENO: checking for $ac_word" >&5
46026echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
46027if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
46028 echo $ECHO_N "(cached) $ECHO_C" >&6
46029else
46030 if test -n "$AIX_CXX_LD"; then
46031 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
46032else
46033as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46034for as_dir in $PATH
46035do
46036 IFS=$as_save_IFS
46037 test -z "$as_dir" && as_dir=.
46038 for ac_exec_ext in '' $ac_executable_extensions; do
46039 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46040 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
46041 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46042 break 2
46043 fi
46044done
46045done
46046
46047 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
46048fi
46049fi
46050AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
46051if test -n "$AIX_CXX_LD"; then
46052 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
46053echo "${ECHO_T}$AIX_CXX_LD" >&6
46054else
46055 echo "$as_me:$LINENO: result: no" >&5
46056echo "${ECHO_T}no" >&6
46057fi
46058
f6b50c59 46059 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
a848cd7e
SC
46060 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
46061 fi
46062 ;;
46063
46064 *-*-beos* )
1e9e8aba
DE
46065 SHARED_LD_CC="${LD} -nostart -o"
46066 SHARED_LD_CXX="${LD} -nostart -o"
a848cd7e
SC
46067 ;;
46068
46069 *-*-irix* )
46070 if test "x$GCC" != "xyes"; then
46071 PIC_FLAG="-KPIC"
46072 fi
46073 ;;
46074
46075 *-*-cygwin* | *-*-mingw32* )
46076 PIC_FLAG=""
1e9e8aba
DE
46077 SHARED_LD_CC="\$(CC) -shared -o"
46078 SHARED_LD_CXX="\$(CXX) -shared -o"
810b94f0 46079 WINDOWS_IMPLIB=1
a848cd7e
SC
46080 ;;
46081
46082 *-pc-os2_emx | *-pc-os2-emx )
b1d22ded
DE
46083 SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
46084 SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
a848cd7e 46085 PIC_FLAG=""
473276a9
VS
46086
46087D='$'
46088cat <<EOF >dllar.sh
46089#!/bin/sh
46090#
46091# dllar - a tool to build both a .dll and an .a file
46092# from a set of object (.o) files for EMX/OS2.
46093#
46094# Written by Andrew Zabolotny, bit@freya.etu.ru
46095# Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
46096#
46097# This script will accept a set of files on the command line.
46098# All the public symbols from the .o files will be exported into
46099# a .DEF file, then linker will be run (through gcc) against them to
46100# build a shared library consisting of all given .o files. All libraries
46101# (.a) will be first decompressed into component .o files then act as
46102# described above. You can optionally give a description (-d "description")
46103# which will be put into .DLL. To see the list of accepted options (as well
46104# as command-line format) simply run this program without options. The .DLL
46105# is built to be imported by name (there is no guarantee that new versions
46106# of the library you build will have same ordinals for same symbols).
46107#
46108# dllar is free software; you can redistribute it and/or modify
46109# it under the terms of the GNU General Public License as published by
46110# the Free Software Foundation; either version 2, or (at your option)
46111# any later version.
46112#
46113# dllar is distributed in the hope that it will be useful,
46114# but WITHOUT ANY WARRANTY; without even the implied warranty of
46115# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
46116# GNU General Public License for more details.
46117#
46118# You should have received a copy of the GNU General Public License
46119# along with dllar; see the file COPYING. If not, write to the Free
46120# Software Foundation, 59 Temple Place - Suite 330, Boston, MA
46121# 02111-1307, USA.
46122
46123# To successfuly run this program you will need:
46124# - Current drive should have LFN support (HPFS, ext2, network, etc)
46125# (Sometimes dllar generates filenames which won't fit 8.3 scheme)
46126# - gcc
46127# (used to build the .dll)
46128# - emxexp
46129# (used to create .def file from .o files)
46130# - emximp
46131# (used to create .a file from .def file)
46132# - GNU text utilites (cat, sort, uniq)
46133# used to process emxexp output
46134# - GNU file utilities (mv, rm)
46135# - GNU sed
46136# - lxlite (optional, see flag below)
46137# (used for general .dll cleanup)
46138#
46139
46140flag_USE_LXLITE=1;
46141
46142#
46143# helper functions
46144# basnam, variant of basename, which does _not_ remove the path, _iff_
46145# second argument (suffix to remove) is given
46146basnam(){
46147 case ${D}# in
46148 1)
1e9e8aba 46149 echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
473276a9
VS
46150 ;;
46151 2)
46152 echo ${D}1 | sed 's/'${D}2'${D}//'
46153 ;;
46154 *)
46155 echo "error in basnam ${D}*"
46156 exit 8
46157 ;;
46158 esac
46159}
46160
46161# Cleanup temporary files and output
46162CleanUp() {
46163 cd ${D}curDir
46164 for i in ${D}inputFiles ; do
46165 case ${D}i in
46166 *!)
46167 rm -rf \`basnam ${D}i !\`
46168 ;;
46169 *)
46170 ;;
46171 esac
46172 done
46173
46174 # Kill result in case of failure as there is just to many stupid make/nmake
46175 # things out there which doesn't do this.
1e9e8aba 46176 if [ ${D}# -eq 0 ]; then
473276a9
VS
46177 rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
46178 fi
46179}
46180
46181# Print usage and exit script with rc=1.
46182PrintHelp() {
b1d22ded
DE
46183 echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]'
46184 echo ' [-name-mangler-script script.sh]'
46185 echo ' [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]'
46186 echo ' [-ord[inals]] -ex[clude] "symbol(s)"'
46187 echo ' [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]'
1e9e8aba 46188 echo ' [*.o] [*.a]'
473276a9
VS
46189 echo '*> "output_file" should have no extension.'
46190 echo ' If it has the .o, .a or .dll extension, it is automatically removed.'
46191 echo ' The import library name is derived from this and is set to "name".a,'
46192 echo ' unless overridden by -import'
46193 echo '*> "importlib_name" should have no extension.'
46194 echo ' If it has the .o, or .a extension, it is automatically removed.'
46195 echo ' This name is used as the import library name and may be longer and'
46196 echo ' more descriptive than the DLL name which has to follow the old '
46197 echo ' 8.3 convention of FAT.'
b1d22ded
DE
46198 echo '*> "script.sh may be given to override the output_file name by a'
46199 echo ' different name. It is mainly useful if the regular make process'
46200 echo ' of some package does not take into account OS/2 restriction of'
46201 echo ' DLL name lengths. It takes the importlib name as input and is'
46202 echo ' supposed to procude a shorter name as output. The script should'
46203 echo ' expect to get importlib_name without extension and should produce'
46204 echo ' a (max.) 8 letter name without extension.'
473276a9
VS
46205 echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)'
46206 echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
46207 echo ' These flags will be put at the start of GCC command line.'
b1d22ded
DE
46208 echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.'
46209 echo '*> -ex[clude] defines symbols which will not be exported. You can define'
473276a9
VS
46210 echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
46211 echo ' If the last character of a symbol is "*", all symbols beginning'
46212 echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).'
b1d22ded 46213 echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or'
473276a9 46214 echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
b1d22ded 46215 echo '*> -nocrt[dll] switch will disable linking the library against emx''s'
473276a9 46216 echo ' C runtime DLLs.'
b1d22ded 46217 echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.'
473276a9
VS
46218 echo '*> All other switches (for example -L./ or -lmylib) will be passed'
46219 echo ' unchanged to GCC at the end of command line.'
46220 echo '*> If you create a DLL from a library and you do not specify -o,'
46221 echo ' the basename for DLL and import library will be set to library name,'
46222 echo ' the initial library will be renamed to 'name'_s.a (_s for static)'
46223 echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
46224 echo ' library will be renamed into gcc_s.a.'
46225 echo '--------'
46226 echo 'Example:'
46227 echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
46228 echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
46229 CleanUp
46230 exit 1
46231}
46232
46233# Execute a command.
46234# If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
46235# @Uses Whatever CleanUp() uses.
46236doCommand() {
46237 echo "${D}*"
46238 eval ${D}*
46239 rcCmd=${D}?
46240
1e9e8aba 46241 if [ ${D}rcCmd -ne 0 ]; then
473276a9
VS
46242 echo "command failed, exit code="${D}rcCmd
46243 CleanUp
46244 exit ${D}rcCmd
46245 fi
46246}
46247
46248# main routine
46249# setup globals
46250cmdLine=${D}*
46251outFile=""
46252outimpFile=""
46253inputFiles=""
b1d22ded 46254renameScript=""
473276a9
VS
46255description=""
46256CC=gcc.exe
46257CFLAGS="-s -Zcrtdll"
46258EXTRA_CFLAGS=""
46259EXPORT_BY_ORDINALS=0
46260exclude_symbols=""
46261library_flags=""
46262curDir=\`pwd\`
46263curDirS=curDir
46264case ${D}curDirS in
46265*/)
46266 ;;
46267*)
46268 curDirS=${D}{curDirS}"/"
46269 ;;
46270esac
46271# Parse commandline
46272libsToLink=0
b1d22ded 46273omfLinking=0
1e9e8aba 46274while [ ${D}1 ]; do
473276a9
VS
46275 case ${D}1 in
46276 -ord*)
46277 EXPORT_BY_ORDINALS=1;
46278 ;;
46279 -o*)
46280 shift
46281 outFile=${D}1
46282 ;;
46283 -i*)
46284 shift
46285 outimpFile=${D}1
46286 ;;
b1d22ded
DE
46287 -name-mangler-script)
46288 shift
46289 renameScript=${D}1
46290 ;;
473276a9
VS
46291 -d*)
46292 shift
46293 description=${D}1
46294 ;;
46295 -f*)
46296 shift
46297 CFLAGS=${D}1
46298 ;;
46299 -c*)
46300 shift
46301 CC=${D}1
46302 ;;
46303 -h*)
46304 PrintHelp
46305 ;;
46306 -ex*)
46307 shift
46308 exclude_symbols=${D}{exclude_symbols}${D}1" "
46309 ;;
46310 -libf*)
46311 shift
46312 library_flags=${D}{library_flags}${D}1" "
46313 ;;
46314 -nocrt*)
46315 CFLAGS="-s"
46316 ;;
46317 -nolxl*)
46318 flag_USE_LXLITE=0
46319 ;;
46320 -* | /*)
46321 case ${D}1 in
46322 -L* | -l*)
46323 libsToLink=1
46324 ;;
b1d22ded
DE
46325 -Zomf)
46326 omfLinking=1
46327 ;;
473276a9
VS
46328 *)
46329 ;;
46330 esac
46331 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
46332 ;;
b1d22ded
DE
46333 *.dll)
46334 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`"
46335 if [ ${D}omfLinking -eq 1 ]; then
46336 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib"
46337 else
46338 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a"
46339 fi
46340 ;;
473276a9
VS
46341 *)
46342 found=0;
1e9e8aba 46343 if [ ${D}libsToLink -ne 0 ]; then
473276a9
VS
46344 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
46345 else
46346 for file in ${D}1 ; do
1e9e8aba 46347 if [ -f ${D}file ]; then
473276a9
VS
46348 inputFiles="${D}{inputFiles} ${D}file"
46349 found=1
46350 fi
46351 done
1e9e8aba 46352 if [ ${D}found -eq 0 ]; then
473276a9
VS
46353 echo "ERROR: No file(s) found: "${D}1
46354 exit 8
46355 fi
46356 fi
46357 ;;
46358 esac
46359 shift
46360done # iterate cmdline words
46361
46362#
1e9e8aba 46363if [ -z "${D}inputFiles" ]; then
473276a9
VS
46364 echo "dllar: no input files"
46365 PrintHelp
46366fi
46367
46368# Now extract all .o files from .a files
46369newInputFiles=""
46370for file in ${D}inputFiles ; do
46371 case ${D}file in
46372 *.a | *.lib)
46373 case ${D}file in
46374 *.a)
46375 suffix=".a"
46376 AR="ar"
46377 ;;
46378 *.lib)
46379 suffix=".lib"
46380 AR="emxomfar"
46381 EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
46382 ;;
46383 *)
46384 ;;
46385 esac
46386 dirname=\`basnam ${D}file ${D}suffix\`"_%"
46387 mkdir ${D}dirname
1e9e8aba 46388 if [ ${D}? -ne 0 ]; then
473276a9
VS
46389 echo "Failed to create subdirectory ./${D}dirname"
46390 CleanUp
46391 exit 8;
46392 fi
46393 # Append '!' to indicate archive
46394 newInputFiles="${D}newInputFiles ${D}{dirname}!"
46395 doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
46396 cd ${D}curDir
46397 found=0;
46398 for subfile in ${D}dirname/*.o* ; do
1e9e8aba 46399 if [ -f ${D}subfile ]; then
473276a9 46400 found=1
1e9e8aba 46401 if [ -s ${D}subfile ]; then
473276a9
VS
46402 # FIXME: This should be: is file size > 32 byte, _not_ > 0!
46403 newInputFiles="${D}newInputFiles ${D}subfile"
46404 fi
46405 fi
46406 done
1e9e8aba
DE
46407 if [ ${D}found -eq 0 ]; then
46408 echo "WARNING: there are no files in archive \\'${D}file\\'"
473276a9
VS
46409 fi
46410 ;;
46411 *)
46412 newInputFiles="${D}{newInputFiles} ${D}file"
46413 ;;
46414 esac
46415done
46416inputFiles="${D}newInputFiles"
46417
46418# Output filename(s).
46419do_backup=0;
1e9e8aba 46420if [ -z ${D}outFile ]; then
473276a9
VS
46421 do_backup=1;
46422 set outFile ${D}inputFiles; outFile=${D}2
46423fi
46424
46425# If it is an archive, remove the '!' and the '_%' suffixes
46426case ${D}outFile in
46427*_%!)
46428 outFile=\`basnam ${D}outFile _%!\`
46429 ;;
46430*)
46431 ;;
46432esac
46433case ${D}outFile in
46434*.dll)
46435 outFile=\`basnam ${D}outFile .dll\`
46436 ;;
46437*.DLL)
46438 outFile=\`basnam ${D}outFile .DLL\`
46439 ;;
46440*.o)
46441 outFile=\`basnam ${D}outFile .o\`
46442 ;;
46443*.obj)
46444 outFile=\`basnam ${D}outFile .obj\`
46445 ;;
46446*.a)
46447 outFile=\`basnam ${D}outFile .a\`
46448 ;;
46449*.lib)
46450 outFile=\`basnam ${D}outFile .lib\`
46451 ;;
46452*)
46453 ;;
46454esac
46455case ${D}outimpFile in
46456*.a)
46457 outimpFile=\`basnam ${D}outimpFile .a\`
46458 ;;
46459*.lib)
46460 outimpFile=\`basnam ${D}outimpFile .lib\`
46461 ;;
46462*)
46463 ;;
46464esac
1e9e8aba 46465if [ -z ${D}outimpFile ]; then
473276a9
VS
46466 outimpFile=${D}outFile
46467fi
46468defFile="${D}{outFile}.def"
46469arcFile="${D}{outimpFile}.a"
46470arcFile2="${D}{outimpFile}.lib"
b1d22ded
DE
46471
46472#create ${D}dllFile as something matching 8.3 restrictions,
46473if [ -z ${D}renameScript ] ; then
46474 dllFile="${D}outFile"
46475else
46476 dllFile=\`${D}renameScript ${D}outimpFile\`
46477fi
473276a9 46478
1e9e8aba
DE
46479if [ ${D}do_backup -ne 0 ] ; then
46480 if [ -f ${D}arcFile ] ; then
473276a9
VS
46481 doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
46482 fi
1e9e8aba 46483 if [ -f ${D}arcFile2 ] ; then
473276a9
VS
46484 doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
46485 fi
46486fi
46487
46488# Extract public symbols from all the object files.
46489tmpdefFile=${D}{defFile}_%
46490rm -f ${D}tmpdefFile
46491for file in ${D}inputFiles ; do
46492 case ${D}file in
46493 *!)
46494 ;;
46495 *)
46496 doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
46497 ;;
46498 esac
46499done
46500
46501# Create the def file.
46502rm -f ${D}defFile
46503echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
b1d22ded
DE
46504dllFile="${D}{dllFile}.dll"
46505if [ ! -z ${D}description ]; then
1e9e8aba 46506 echo "DESCRIPTION \\"${D}{description}\\"" >> ${D}defFile
473276a9
VS
46507fi
46508echo "EXPORTS" >> ${D}defFile
46509
46510doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
46511grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
46512
46513# Checks if the export is ok or not.
46514for word in ${D}exclude_symbols; do
46515 grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
46516 mv ${D}{tmpdefFile}% ${D}tmpdefFile
46517done
46518
46519
1e9e8aba
DE
46520if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
46521 sed "=" < ${D}tmpdefFile | \\
473276a9
VS
46522 sed '
46523 N
46524 : loop
1e9e8aba 46525 s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
473276a9
VS
46526 t loop
46527 ' > ${D}{tmpdefFile}%
46528 grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
46529else
46530 rm -f ${D}{tmpdefFile}%
46531fi
46532cat ${D}tmpdefFile >> ${D}defFile
46533rm -f ${D}tmpdefFile
46534
46535# Do linking, create implib, and apply lxlite.
46536gccCmdl="";
46537for file in ${D}inputFiles ; do
46538 case ${D}file in
46539 *!)
46540 ;;
46541 *)
46542 gccCmdl="${D}gccCmdl ${D}file"
46543 ;;
46544 esac
46545done
46546doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
46547touch "${D}{outFile}.dll"
46548
46549doCommand "emximp -o ${D}arcFile ${D}defFile"
1e9e8aba 46550if [ ${D}flag_USE_LXLITE -ne 0 ]; then
473276a9 46551 add_flags="";
1e9e8aba 46552 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
473276a9
VS
46553 add_flags="-ynd"
46554 fi
46555 doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
46556fi
46557doCommand "emxomf -s -l ${D}arcFile"
46558
46559# Successful exit.
46560CleanUp 1
46561exit 0
46562EOF
46563
46564 chmod +x dllar.sh
a848cd7e
SC
46565 ;;
46566
1e9e8aba 46567 powerpc-apple-macos* | \
0ad5d837 46568 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | *-*-k*bsd*-gnu | \
a848cd7e
SC
46569 *-*-sunos4* | \
46570 *-*-osf* | \
46571 *-*-dgux5* | \
47a7e797
MW
46572 *-*-sysv5* | \
46573 *-pc-msdosdjgpp )
a848cd7e
SC
46574 ;;
46575
46576 *)
46577 { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
46578echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
46579 { (exit 1); exit 1; }; }
46580 esac
46581
2057db16
VS
46582 if test "x$PIC_FLAG" != "x" ; then
46583 PIC_FLAG="$PIC_FLAG -DPIC"
46584 fi
46585
a848cd7e
SC
46586 if test "x$SHARED_LD_MODULE_CC" = "x" ; then
46587 SHARED_LD_MODULE_CC="$SHARED_LD_CC"
46588 fi
46589 if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
46590 SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
46591 fi
46592
46593
46594
46595
46596
46597
46598
46599
810b94f0 46600
a848cd7e
SC
46601 USE_SOVERSION=0
46602 USE_SOVERLINUX=0
46603 USE_SOVERSOLARIS=0
810b94f0 46604 USE_SOVERCYGWIN=0
a848cd7e
SC
46605 USE_SOSYMLINKS=0
46606 USE_MACVERSION=0
46607 SONAME_FLAG=
46608
46609 case "${BAKEFILE_HOST}" in
0ad5d837 46610 *-*-linux* | *-*-freebsd* | *-*-k*bsd*-gnu )
5f652d0d
VS
46611 SONAME_FLAG="-Wl,-soname,"
46612 USE_SOVERSION=1
46613 USE_SOVERLINUX=1
46614 USE_SOSYMLINKS=1
46615 ;;
46616
a848cd7e
SC
46617 *-*-solaris2* )
46618 SONAME_FLAG="-h "
46619 USE_SOVERSION=1
46620 USE_SOVERSOLARIS=1
46621 USE_SOSYMLINKS=1
46622 ;;
46623
46624 *-*-darwin* )
46625 USE_MACVERSION=1
46626 USE_SOVERSION=1
46627 USE_SOSYMLINKS=1
46628 ;;
810b94f0
MW
46629
46630 *-*-cygwin* )
46631 USE_SOVERSION=1
46632 USE_SOVERCYGWIN=1
46633 ;;
a848cd7e
SC
46634 esac
46635
46636
46637
46638
46639
46640
46641
46642
46643
810b94f0 46644
f10e38c4
VZ
46645 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
46646if test "${enable_dependency_tracking+set}" = set; then
46647 enableval="$enable_dependency_tracking"
46648 bk_use_trackdeps="$enableval"
46649fi;
46650
a848cd7e
SC
46651 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
46652echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
a848cd7e 46653
f10e38c4
VZ
46654 if test "x$bk_use_trackdeps" = "xno" ; then
46655 DEPS_TRACKING=0
46656 echo "$as_me:$LINENO: result: disabled" >&5
46657echo "${ECHO_T}disabled" >&6
46658 else
46659 DEPS_TRACKING=1
46660
46661 if test "x$GCC" = "xyes"; then
46662 DEPSMODE=gcc
46663 case "${BAKEFILE_HOST}" in
46664 *-*-darwin* )
46665 DEPSFLAG="-no-cpp-precomp -MMD"
46666 ;;
46667 * )
46668 DEPSFLAG="-MMD"
46669 ;;
46670 esac
46671 echo "$as_me:$LINENO: result: gcc" >&5
a848cd7e 46672echo "${ECHO_T}gcc" >&6
f10e38c4
VZ
46673 elif test "x$MWCC" = "xyes"; then
46674 DEPSMODE=mwcc
46675 DEPSFLAG="-MM"
46676 echo "$as_me:$LINENO: result: mwcc" >&5
b1d22ded 46677echo "${ECHO_T}mwcc" >&6
f10e38c4
VZ
46678 elif test "x$SUNCC" = "xyes"; then
46679 DEPSMODE=unixcc
46680 DEPSFLAG="-xM1"
46681 echo "$as_me:$LINENO: result: Sun cc" >&5
0ad5d837 46682echo "${ECHO_T}Sun cc" >&6
f10e38c4
VZ
46683 elif test "x$SGICC" = "xyes"; then
46684 DEPSMODE=unixcc
46685 DEPSFLAG="-M"
46686 echo "$as_me:$LINENO: result: SGI cc" >&5
0ad5d837 46687echo "${ECHO_T}SGI cc" >&6
f10e38c4
VZ
46688 elif test "x$HPCC" = "xyes"; then
46689 DEPSMODE=unixcc
46690 DEPSFLAG="+make"
46691 echo "$as_me:$LINENO: result: HP cc" >&5
3006edc0 46692echo "${ECHO_T}HP cc" >&6
f10e38c4
VZ
46693 elif test "x$COMPAQCC" = "xyes"; then
46694 DEPSMODE=gcc
46695 DEPSFLAG="-MD"
46696 echo "$as_me:$LINENO: result: Compaq cc" >&5
a1aa0349 46697echo "${ECHO_T}Compaq cc" >&6
f10e38c4
VZ
46698 else
46699 DEPS_TRACKING=0
46700 echo "$as_me:$LINENO: result: none" >&5
a848cd7e 46701echo "${ECHO_T}none" >&6
f10e38c4 46702 fi
a848cd7e 46703
f10e38c4 46704 if test $DEPS_TRACKING = 1 ; then
473276a9
VS
46705
46706D='$'
46707cat <<EOF >bk-deps
a848cd7e
SC
46708#!/bin/sh
46709
46710# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
46711# script. It is used to track C/C++ files dependencies in portable way.
46712#
46713# Permission is given to use this file in any way.
46714
473276a9 46715DEPSMODE=${DEPSMODE}
a848cd7e 46716DEPSDIR=.deps
0ad5d837 46717DEPSFLAG="${DEPSFLAG}"
a848cd7e 46718
473276a9 46719mkdir -p ${D}DEPSDIR
a848cd7e 46720
473276a9 46721if test ${D}DEPSMODE = gcc ; then
0ad5d837 46722 ${D}* ${D}{DEPSFLAG}
473276a9
VS
46723 status=${D}?
46724 if test ${D}{status} != 0 ; then
46725 exit ${D}{status}
a848cd7e
SC
46726 fi
46727 # move created file to the location we want it in:
473276a9
VS
46728 while test ${D}# -gt 0; do
46729 case "${D}1" in
a848cd7e
SC
46730 -o )
46731 shift
473276a9 46732 objfile=${D}1
a848cd7e
SC
46733 ;;
46734 -* )
46735 ;;
46736 * )
473276a9 46737 srcfile=${D}1
a848cd7e
SC
46738 ;;
46739 esac
46740 shift
46741 done
1e9e8aba
DE
46742 depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
46743 depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
473276a9
VS
46744 if test -f ${D}depfile ; then
46745 sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
46746 rm -f ${D}depfile
a848cd7e 46747 else
a1aa0349 46748 # "g++ -MMD -o fooobj.o foosrc.cpp" produces fooobj.d
1e9e8aba 46749 depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\`
a1aa0349
VZ
46750 if test ! -f ${D}depfile ; then
46751 # "cxx -MD -o fooobj.o foosrc.cpp" creates fooobj.o.d (Compaq C++)
46752 depfile="${D}objfile.d"
46753 fi
473276a9
VS
46754 if test -f ${D}depfile ; then
46755 sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
46756 rm -f ${D}depfile
a848cd7e
SC
46757 fi
46758 fi
46759 exit 0
81f90336 46760elif test ${D}DEPSMODE = mwcc ; then
f6b50c59 46761 ${D}* || exit ${D}?
81f90336
MW
46762 # Run mwcc again with -MM and redirect into the dep file we want
46763 # NOTE: We can't use shift here because we need ${D}* to be valid
46764 prevarg=
46765 for arg in ${D}* ; do
46766 if test "${D}prevarg" = "-o"; then
46767 objfile=${D}arg
46768 else
46769 case "${D}arg" in
46770 -* )
46771 ;;
46772 * )
46773 srcfile=${D}arg
46774 ;;
46775 esac
46776 fi
46777 prevarg="${D}arg"
46778 done
0ad5d837 46779 ${D}* ${D}DEPSFLAG >${D}{DEPSDIR}/${D}{objfile}.d
81f90336 46780 exit 0
0ad5d837 46781elif test ${D}DEPSMODE = unixcc; then
f6b50c59 46782 ${D}* || exit ${D}?
a9e5b1f0
MW
46783 # Run compiler again with deps flag and redirect into the dep file.
46784 # It doesn't work if the '-o FILE' option is used, but without it the
46785 # dependency file will contain the wrong name for the object. So it is
46786 # removed from the command line, and the dep file is fixed with sed.
46787 cmd=""
46788 while test ${D}# -gt 0; do
46789 case "${D}1" in
46790 -o )
46791 shift
46792 objfile=${D}1
46793 ;;
46794 * )
46795 eval arg${D}#=\\${D}1
46796 cmd="${D}cmd \\${D}arg${D}#"
46797 ;;
46798 esac
46799 shift
46800 done
0ad5d837 46801 eval "${D}cmd ${D}DEPSFLAG" | sed "s|.*:|${D}objfile:|" >${D}{DEPSDIR}/${D}{objfile}.d
a9e5b1f0 46802 exit 0
a848cd7e 46803else
473276a9
VS
46804 ${D}*
46805 exit ${D}?
a848cd7e
SC
46806fi
46807EOF
473276a9 46808
f10e38c4
VZ
46809 chmod +x bk-deps
46810 fi
a848cd7e
SC
46811 fi
46812
46813
46814
46815
a848cd7e
SC
46816 case ${BAKEFILE_HOST} in
46817 *-*-cygwin* | *-*-mingw32* )
8ced02f6
DE
46818 if test -n "$ac_tool_prefix"; then
46819 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
46820set dummy ${ac_tool_prefix}windres; ac_word=$2
46821echo "$as_me:$LINENO: checking for $ac_word" >&5
46822echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
46823if test "${ac_cv_prog_WINDRES+set}" = set; then
46824 echo $ECHO_N "(cached) $ECHO_C" >&6
46825else
46826 if test -n "$WINDRES"; then
46827 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
46828else
46829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46830for as_dir in $PATH
46831do
46832 IFS=$as_save_IFS
46833 test -z "$as_dir" && as_dir=.
46834 for ac_exec_ext in '' $ac_executable_extensions; do
46835 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46836 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
46837 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46838 break 2
46839 fi
46840done
46841done
46842
46843fi
46844fi
46845WINDRES=$ac_cv_prog_WINDRES
46846if test -n "$WINDRES"; then
46847 echo "$as_me:$LINENO: result: $WINDRES" >&5
46848echo "${ECHO_T}$WINDRES" >&6
46849else
46850 echo "$as_me:$LINENO: result: no" >&5
46851echo "${ECHO_T}no" >&6
46852fi
46853
46854fi
46855if test -z "$ac_cv_prog_WINDRES"; then
46856 ac_ct_WINDRES=$WINDRES
46857 # Extract the first word of "windres", so it can be a program name with args.
a848cd7e
SC
46858set dummy windres; ac_word=$2
46859echo "$as_me:$LINENO: checking for $ac_word" >&5
46860echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 46861if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
a848cd7e
SC
46862 echo $ECHO_N "(cached) $ECHO_C" >&6
46863else
8ced02f6
DE
46864 if test -n "$ac_ct_WINDRES"; then
46865 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
a848cd7e
SC
46866else
46867as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46868for as_dir in $PATH
46869do
46870 IFS=$as_save_IFS
46871 test -z "$as_dir" && as_dir=.
46872 for ac_exec_ext in '' $ac_executable_extensions; do
46873 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 46874 ac_cv_prog_ac_ct_WINDRES="windres"
a848cd7e
SC
46875 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46876 break 2
46877 fi
46878done
46879done
46880
a848cd7e
SC
46881fi
46882fi
8ced02f6
DE
46883ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
46884if test -n "$ac_ct_WINDRES"; then
46885 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
46886echo "${ECHO_T}$ac_ct_WINDRES" >&6
a848cd7e
SC
46887else
46888 echo "$as_me:$LINENO: result: no" >&5
46889echo "${ECHO_T}no" >&6
46890fi
46891
8ced02f6
DE
46892 WINDRES=$ac_ct_WINDRES
46893else
46894 WINDRES="$ac_cv_prog_WINDRES"
46895fi
46896
a848cd7e
SC
46897 ;;
46898
1e9e8aba 46899 *-*-darwin* | powerpc-apple-macos* )
a848cd7e
SC
46900 # Extract the first word of "Rez", so it can be a program name with args.
46901set dummy Rez; ac_word=$2
46902echo "$as_me:$LINENO: checking for $ac_word" >&5
46903echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 46904if test "${ac_cv_prog_REZ+set}" = set; then
a848cd7e
SC
46905 echo $ECHO_N "(cached) $ECHO_C" >&6
46906else
8ced02f6
DE
46907 if test -n "$REZ"; then
46908 ac_cv_prog_REZ="$REZ" # Let the user override the test.
a848cd7e
SC
46909else
46910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46911for as_dir in $PATH
46912do
46913 IFS=$as_save_IFS
46914 test -z "$as_dir" && as_dir=.
46915 for ac_exec_ext in '' $ac_executable_extensions; do
46916 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 46917 ac_cv_prog_REZ="Rez"
a848cd7e
SC
46918 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46919 break 2
46920 fi
46921done
46922done
46923
8ced02f6 46924 test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
a848cd7e
SC
46925fi
46926fi
8ced02f6
DE
46927REZ=$ac_cv_prog_REZ
46928if test -n "$REZ"; then
46929 echo "$as_me:$LINENO: result: $REZ" >&5
46930echo "${ECHO_T}$REZ" >&6
a848cd7e
SC
46931else
46932 echo "$as_me:$LINENO: result: no" >&5
46933echo "${ECHO_T}no" >&6
46934fi
46935
46936 # Extract the first word of "SetFile", so it can be a program name with args.
46937set dummy SetFile; 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_SETFILE+set}" = set; then
46941 echo $ECHO_N "(cached) $ECHO_C" >&6
46942else
46943 if test -n "$SETFILE"; then
46944 ac_cv_prog_SETFILE="$SETFILE" # 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_SETFILE="SetFile"
46954 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46955 break 2
46956 fi
46957done
46958done
46959
46960 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
46961fi
46962fi
46963SETFILE=$ac_cv_prog_SETFILE
46964if test -n "$SETFILE"; then
46965 echo "$as_me:$LINENO: result: $SETFILE" >&5
46966echo "${ECHO_T}$SETFILE" >&6
46967else
46968 echo "$as_me:$LINENO: result: no" >&5
46969echo "${ECHO_T}no" >&6
46970fi
46971
46972 ;;
46973 esac
46974
46975
46976
46977
46978
8ced02f6 46979
f10e38c4 46980 BAKEFILE_BAKEFILE_M4_VERSION="0.2.0"
a848cd7e 46981
dcc1b6ad 46982
f10e38c4 46983BAKEFILE_AUTOCONF_INC_M4_VERSION="0.2.0"
a848cd7e 46984
646b6ec1 46985
74b84332 46986
a848cd7e
SC
46987 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
46988if test "${enable_precomp_headers+set}" = set; then
46989 enableval="$enable_precomp_headers"
46990 bk_use_pch="$enableval"
46991fi;
46992
46993 GCC_PCH=0
f10e38c4
VZ
46994 ICC_PCH=0
46995 USE_PCH=0
a848cd7e 46996
5c60e845
MW
46997 case ${BAKEFILE_HOST} in
46998 *-*-cygwin* )
46999 bk_use_pch="no"
47000 ;;
47001 esac
47002
a848cd7e
SC
47003 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
47004 if test "x$GCC" = "xyes"; then
47005 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
47006echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
47007 cat >conftest.$ac_ext <<_ACEOF
47008/* confdefs.h. */
47009_ACEOF
47010cat confdefs.h >>conftest.$ac_ext
47011cat >>conftest.$ac_ext <<_ACEOF
47012/* end confdefs.h. */
47013
47014int
47015main ()
47016{
47017
47018 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
e5efa97e 47019 There is no PCH support
a848cd7e
SC
47020 #endif
47021 #if (__GNUC__ < 3)
e5efa97e 47022 There is no PCH support
a848cd7e
SC
47023 #endif
47024 #if (__GNUC__ == 3) && \
47025 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
f10e38c4
VZ
47026 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) || \
47027 ( defined(__INTEL_COMPILER) )
e5efa97e 47028 There is no PCH support
a848cd7e
SC
47029 #endif
47030
47031 ;
47032 return 0;
47033}
47034_ACEOF
47035rm -f conftest.$ac_objext
47036if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 47037 (eval $ac_compile) 2>conftest.er1
a848cd7e 47038 ac_status=$?
ac1cb8d3
VS
47039 grep -v '^ *+' conftest.er1 >conftest.err
47040 rm -f conftest.er1
47041 cat conftest.err >&5
a848cd7e
SC
47042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47043 (exit $ac_status); } &&
f10e38c4 47044 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
47045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47046 (eval $ac_try) 2>&5
47047 ac_status=$?
47048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47049 (exit $ac_status); }; } &&
47050 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
47051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47052 (eval $ac_try) 2>&5
47053 ac_status=$?
47054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47055 (exit $ac_status); }; }; then
47056
47057 echo "$as_me:$LINENO: result: yes" >&5
47058echo "${ECHO_T}yes" >&6
a848cd7e
SC
47059 GCC_PCH=1
47060
47061else
47062 echo "$as_me: failed program was:" >&5
47063sed 's/^/| /' conftest.$ac_ext >&5
47064
47065
f10e38c4
VZ
47066 cat >conftest.$ac_ext <<_ACEOF
47067/* confdefs.h. */
47068_ACEOF
47069cat confdefs.h >>conftest.$ac_ext
47070cat >>conftest.$ac_ext <<_ACEOF
47071/* end confdefs.h. */
47072
47073int
47074main ()
47075{
47076
47077 #if !defined(__INTEL_COMPILER) || \
47078 (__INTEL_COMPILER < 800)
e5efa97e 47079 There is no PCH support
f10e38c4
VZ
47080 #endif
47081
47082 ;
47083 return 0;
47084}
47085_ACEOF
47086rm -f conftest.$ac_objext
47087if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47088 (eval $ac_compile) 2>conftest.er1
47089 ac_status=$?
47090 grep -v '^ *+' conftest.er1 >conftest.err
47091 rm -f conftest.er1
47092 cat conftest.err >&5
47093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47094 (exit $ac_status); } &&
47095 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
47096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47097 (eval $ac_try) 2>&5
47098 ac_status=$?
47099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47100 (exit $ac_status); }; } &&
47101 { ac_try='test -s conftest.$ac_objext'
47102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47103 (eval $ac_try) 2>&5
47104 ac_status=$?
47105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47106 (exit $ac_status); }; }; then
47107
47108 echo "$as_me:$LINENO: result: yes" >&5
47109echo "${ECHO_T}yes" >&6
47110 ICC_PCH=1
47111
47112else
47113 echo "$as_me: failed program was:" >&5
47114sed 's/^/| /' conftest.$ac_ext >&5
47115
47116
47117 echo "$as_me:$LINENO: result: no" >&5
a848cd7e
SC
47118echo "${ECHO_T}no" >&6
47119
47120fi
ac1cb8d3 47121rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f10e38c4
VZ
47122
47123fi
47124rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47125 if test $GCC_PCH = 1 -o $ICC_PCH = 1 ; then
47126 USE_PCH=1
1e9e8aba
DE
47127
47128D='$'
47129cat <<EOF >bk-make-pch
a848cd7e
SC
47130#!/bin/sh
47131
47132# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
47133# script. It is used to generated precompiled headers.
47134#
47135# Permission is given to use this file in any way.
47136
1e9e8aba
DE
47137outfile="${D}{1}"
47138header="${D}{2}"
a848cd7e
SC
47139shift
47140shift
47141
f10e38c4
VZ
47142compiler=""
47143headerfile=""
47144
1e9e8aba 47145while test ${D}{#} -gt 0; do
f10e38c4 47146 add_to_cmdline=1
1e9e8aba 47147 case "${D}{1}" in
a848cd7e 47148 -I* )
1e9e8aba
DE
47149 incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
47150 if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
47151 headerfile="${D}{incdir}/${D}{header}"
a848cd7e
SC
47152 fi
47153 ;;
f10e38c4
VZ
47154 -use-pch|-use_pch )
47155 shift
47156 add_to_cmdline=0
47157 ;;
a848cd7e 47158 esac
f10e38c4
VZ
47159 if test ${D}add_to_cmdline = 1 ; then
47160 compiler="${D}{compiler} ${D}{1}"
47161 fi
a848cd7e
SC
47162 shift
47163done
47164
1e9e8aba 47165if test "x${D}{headerfile}" = "x" ; then
f10e38c4 47166 echo "error: can't find header ${D}{header} in include paths" >&2
a848cd7e 47167else
1e9e8aba
DE
47168 if test -f ${D}{outfile} ; then
47169 rm -f ${D}{outfile}
a848cd7e 47170 else
1e9e8aba 47171 mkdir -p \`dirname ${D}{outfile}\`
a848cd7e 47172 fi
1e9e8aba 47173 depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
a848cd7e 47174 mkdir -p .deps
f10e38c4
VZ
47175 if test "x${GCC_PCH}" = "x1" ; then
47176 # can do this because gcc is >= 3.4:
47177 ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
47178 elif test "x${ICC_PCH}" = "x1" ; then
47179 filename=pch_gen-${D}${D}
47180 file=${D}{filename}.c
47181 dfile=${D}{filename}.d
47182 cat > ${D}file <<EOT
47183#include "${D}header"
47184EOT
47185 # using -MF icc complains about differing command lines in creation/use
47186 ${D}compiler -c -create_pch ${D}outfile -MMD ${D}file && \\
47187 sed -e "s,^.*:,${D}outfile:," -e "s, ${D}file,," < ${D}dfile > ${D}depsfile && \\
47188 rm -f ${D}file ${D}dfile ${D}{filename}.o
47189 fi
1e9e8aba 47190 exit ${D}{?}
a848cd7e
SC
47191fi
47192EOF
1e9e8aba 47193
a848cd7e
SC
47194 chmod +x bk-make-pch
47195 fi
47196 fi
47197 fi
47198
47199
47200
f10e38c4 47201
a848cd7e
SC
47202 COND_BUILD_DEBUG="#"
47203 if test "x$BUILD" = "xdebug" ; then
47204 COND_BUILD_DEBUG=""
47205 fi
47206
47207 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
47208 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
47209 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
47210 fi
47211
47212 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
47213 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
47214 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
47215 fi
47216
47217 COND_BUILD_DEBUG_UNICODE_0="#"
47218 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
47219 COND_BUILD_DEBUG_UNICODE_0=""
47220 fi
47221
47222 COND_BUILD_DEBUG_UNICODE_1="#"
47223 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
47224 COND_BUILD_DEBUG_UNICODE_1=""
47225 fi
47226
47227 COND_BUILD_RELEASE="#"
47228 if test "x$BUILD" = "xrelease" ; then
47229 COND_BUILD_RELEASE=""
47230 fi
47231
47232 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
47233 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
47234 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
47235 fi
47236
47237 COND_BUILD_RELEASE_UNICODE_0="#"
47238 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
47239 COND_BUILD_RELEASE_UNICODE_0=""
47240 fi
47241
47242 COND_BUILD_RELEASE_UNICODE_1="#"
47243 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
47244 COND_BUILD_RELEASE_UNICODE_1=""
47245 fi
47246
47247 COND_DEBUG_FLAG_1="#"
47248 if test "x$DEBUG_FLAG" = "x1" ; then
47249 COND_DEBUG_FLAG_1=""
47250 fi
47251
47252 COND_DEBUG_INFO_0="#"
47253 if test "x$DEBUG_INFO" = "x0" ; then
47254 COND_DEBUG_INFO_0=""
47255 fi
47256
47257 COND_DEBUG_INFO_1="#"
47258 if test "x$DEBUG_INFO" = "x1" ; then
47259 COND_DEBUG_INFO_1=""
47260 fi
47261
47262 COND_DEPS_TRACKING_0="#"
47263 if test "x$DEPS_TRACKING" = "x0" ; then
47264 COND_DEPS_TRACKING_0=""
47265 fi
47266
47267 COND_DEPS_TRACKING_1="#"
47268 if test "x$DEPS_TRACKING" = "x1" ; then
47269 COND_DEPS_TRACKING_1=""
47270 fi
47271
47272 COND_GCC_PCH_1="#"
47273 if test "x$GCC_PCH" = "x1" ; then
47274 COND_GCC_PCH_1=""
47275 fi
47276
f10e38c4
VZ
47277 COND_ICC_PCH_1="#"
47278 if test "x$ICC_PCH" = "x1" ; then
47279 COND_ICC_PCH_1=""
47280 fi
47281
a848cd7e
SC
47282 COND_MONOLITHIC_0="#"
47283 if test "x$MONOLITHIC" = "x0" ; then
47284 COND_MONOLITHIC_0=""
47285 fi
47286
47287 COND_MONOLITHIC_0_SHARED_0="#"
47288 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
47289 COND_MONOLITHIC_0_SHARED_0=""
47290 fi
47291
47292 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
47293 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
47294 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
47295 fi
47296
90970d69
DE
47297 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
47298 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
47299 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
47300 fi
47301
f10e38c4
VZ
47302 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1="#"
47303 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
47304 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1=""
47305 fi
47306
a848cd7e
SC
47307 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
47308 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
47309 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
47310 fi
47311
6671c68b
VZ
47312 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#"
47313 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
47314 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1=""
47315 fi
47316
a848cd7e
SC
47317 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
47318 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
47319 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
47320 fi
47321
ceec2216
RL
47322 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
47323 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
47324 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
47325 fi
47326
a848cd7e
SC
47327 COND_MONOLITHIC_0_SHARED_1="#"
47328 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
47329 COND_MONOLITHIC_0_SHARED_1=""
47330 fi
47331
47332 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
47333 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
47334 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
47335 fi
47336
90970d69
DE
47337 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
47338 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
47339 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
47340 fi
47341
f10e38c4
VZ
47342 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1="#"
47343 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
47344 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1=""
47345 fi
47346
a848cd7e
SC
47347 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
47348 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
47349 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
47350 fi
47351
6671c68b
VZ
47352 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#"
47353 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
47354 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1=""
47355 fi
47356
a848cd7e
SC
47357 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
47358 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
47359 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
47360 fi
47361
ceec2216
RL
47362 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
47363 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
47364 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
47365 fi
47366
e5efa97e
VZ
47367 COND_MONOLITHIC_0_USE_MEDIA_1="#"
47368 if test "x$MONOLITHIC" = "x0" -a "x$USE_MEDIA" = "x1" ; then
47369 COND_MONOLITHIC_0_USE_MEDIA_1=""
47370 fi
47371
a848cd7e
SC
47372 COND_MONOLITHIC_0_USE_ODBC_1="#"
47373 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
47374 COND_MONOLITHIC_0_USE_ODBC_1=""
47375 fi
47376
47377 COND_MONOLITHIC_1="#"
47378 if test "x$MONOLITHIC" = "x1" ; then
47379 COND_MONOLITHIC_1=""
47380 fi
47381
47382 COND_MONOLITHIC_1_SHARED_0="#"
47383 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
47384 COND_MONOLITHIC_1_SHARED_0=""
47385 fi
47386
47387 COND_MONOLITHIC_1_SHARED_1="#"
47388 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
47389 COND_MONOLITHIC_1_SHARED_1=""
47390 fi
47391
47392 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
47393 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
47394 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
47395 fi
47396
47397 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
47398 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
47399 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
47400 fi
47401
eb730a0c
JS
47402 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="#"
47403 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERCYGWIN" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
47404 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1=""
47405 fi
47406
a848cd7e
SC
47407 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
47408 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
47409 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
47410 fi
47411
47412 COND_PLATFORM_MACOSX_1="#"
47413 if test "x$PLATFORM_MACOSX" = "x1" ; then
47414 COND_PLATFORM_MACOSX_1=""
47415 fi
47416
a30f955f
VS
47417 COND_PLATFORM_MACOSX_1_TOOLKIT_="#"
47418 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then
47419 COND_PLATFORM_MACOSX_1_TOOLKIT_=""
47420 fi
47421
a848cd7e
SC
47422 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
47423 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
47424 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
47425 fi
47426
47427 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
47428 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
47429 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
47430 fi
47431
47432 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
47433 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
47434 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
47435 fi
47436
fc480dc1
DE
47437 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#"
47438 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
47439 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1=""
47440 fi
47441
1e9e8aba
DE
47442 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
47443 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
47444 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
47445 fi
47446
ebee3cd0
VS
47447 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
47448 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
47449 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
47450 fi
47451
47452 COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
47453 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
47454 COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
47455 fi
47456
a848cd7e
SC
47457 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
47458 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
47459 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
47460 fi
47461
47462 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
47463 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
47464 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
47465 fi
47466
b48a2016
DE
47467 COND_PLATFORM_MACOS_1="#"
47468 if test "x$PLATFORM_MACOS" = "x1" ; then
47469 COND_PLATFORM_MACOS_1=""
47470 fi
47471
083508af
MW
47472 COND_PLATFORM_MAC_1="#"
47473 if test "x$PLATFORM_MAC" = "x1" ; then
47474 COND_PLATFORM_MAC_1=""
47475 fi
47476
e5efa97e
VZ
47477 COND_PLATFORM_MSDOS_0="#"
47478 if test "x$PLATFORM_MSDOS" = "x0" ; then
47479 COND_PLATFORM_MSDOS_0=""
47480 fi
47481
83d8eb47
MW
47482 COND_PLATFORM_MSDOS_1="#"
47483 if test "x$PLATFORM_MSDOS" = "x1" ; then
47484 COND_PLATFORM_MSDOS_1=""
47485 fi
47486
a848cd7e
SC
47487 COND_PLATFORM_OS2_1="#"
47488 if test "x$PLATFORM_OS2" = "x1" ; then
47489 COND_PLATFORM_OS2_1=""
47490 fi
47491
47492 COND_PLATFORM_UNIX_0="#"
47493 if test "x$PLATFORM_UNIX" = "x0" ; then
47494 COND_PLATFORM_UNIX_0=""
47495 fi
47496
47497 COND_PLATFORM_UNIX_1="#"
47498 if test "x$PLATFORM_UNIX" = "x1" ; then
47499 COND_PLATFORM_UNIX_1=""
47500 fi
47501
47502 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
47503 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
47504 COND_PLATFORM_UNIX_1_USE_GUI_1=""
47505 fi
47506
47507 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
47508 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
47509 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
47510 fi
47511
47512 COND_PLATFORM_WIN32_0="#"
47513 if test "x$PLATFORM_WIN32" = "x0" ; then
47514 COND_PLATFORM_WIN32_0=""
47515 fi
47516
47517 COND_PLATFORM_WIN32_1="#"
47518 if test "x$PLATFORM_WIN32" = "x1" ; then
47519 COND_PLATFORM_WIN32_1=""
47520 fi
47521
47522 COND_SHARED_0="#"
47523 if test "x$SHARED" = "x0" ; then
47524 COND_SHARED_0=""
47525 fi
47526
083508af
MW
47527 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
47528 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
47529 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
47530 fi
47531
47532 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
47533 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
47534 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
47535 fi
47536
47537 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
47538 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
47539 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
47540 fi
47541
a848cd7e
SC
47542 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
47543 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
47544 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
47545 fi
47546
47547 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
47548 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
47549 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
47550 fi
47551
47552 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
47553 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
47554 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
47555 fi
47556
47557 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
47558 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
47559 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
47560 fi
47561
083508af
MW
47562 COND_SHARED_0_USE_XRC_1="#"
47563 if test "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
47564 COND_SHARED_0_USE_XRC_1=""
47565 fi
47566
a848cd7e
SC
47567 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
47568 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
47569 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
47570 fi
47571
47572 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
47573 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
47574 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
47575 fi
47576
47577 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
47578 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
47579 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
47580 fi
47581
47582 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
47583 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
47584 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
47585 fi
47586
47587 COND_SHARED_1="#"
47588 if test "x$SHARED" = "x1" ; then
47589 COND_SHARED_1=""
47590 fi
47591
47592 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
47593 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
47594 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
47595 fi
47596
083508af
MW
47597 COND_SHARED_1_USE_XRC_1="#"
47598 if test "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
47599 COND_SHARED_1_USE_XRC_1=""
47600 fi
47601
a30f955f
VS
47602 COND_TOOLKIT_="#"
47603 if test "x$TOOLKIT" = "x" ; then
47604 COND_TOOLKIT_=""
47605 fi
47606
a848cd7e
SC
47607 COND_TOOLKIT_COCOA="#"
47608 if test "x$TOOLKIT" = "xCOCOA" ; then
47609 COND_TOOLKIT_COCOA=""
47610 fi
47611
a49baeab
DE
47612 COND_TOOLKIT_COCOA_USE_GUI_1="#"
47613 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
47614 COND_TOOLKIT_COCOA_USE_GUI_1=""
47615 fi
47616
a848cd7e
SC
47617 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
47618 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
47619 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
47620 fi
47621
47622 COND_TOOLKIT_GTK="#"
47623 if test "x$TOOLKIT" = "xGTK" ; then
47624 COND_TOOLKIT_GTK=""
47625 fi
47626
d044deea
MW
47627 COND_TOOLKIT_GTK_TOOLKIT_VERSION_="#"
47628 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" ; then
47629 COND_TOOLKIT_GTK_TOOLKIT_VERSION_=""
47630 fi
47631
47632 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2="#"
47633 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" ; then
47634 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2=""
47635 fi
47636
47637 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1="#"
47638 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" ; then
47639 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1=""
47640 fi
47641
47642 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0="#"
47643 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
47644 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0=""
47645 fi
47646
47647 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1="#"
47648 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" ; then
47649 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1=""
47650 fi
47651
47652 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0="#"
47653 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
47654 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0=""
47655 fi
47656
a848cd7e
SC
47657 COND_TOOLKIT_GTK_USE_GUI_1="#"
47658 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
47659 COND_TOOLKIT_GTK_USE_GUI_1=""
47660 fi
47661
a848cd7e
SC
47662 COND_TOOLKIT_MAC="#"
47663 if test "x$TOOLKIT" = "xMAC" ; then
47664 COND_TOOLKIT_MAC=""
47665 fi
47666
47667 COND_TOOLKIT_MAC_USE_GUI_1="#"
47668 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
47669 COND_TOOLKIT_MAC_USE_GUI_1=""
47670 fi
47671
47672 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
47673 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
47674 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
47675 fi
47676
47677 COND_TOOLKIT_MGL="#"
47678 if test "x$TOOLKIT" = "xMGL" ; then
47679 COND_TOOLKIT_MGL=""
47680 fi
47681
47682 COND_TOOLKIT_MGL_USE_GUI_1="#"
47683 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
47684 COND_TOOLKIT_MGL_USE_GUI_1=""
47685 fi
47686
47687 COND_TOOLKIT_MOTIF="#"
47688 if test "x$TOOLKIT" = "xMOTIF" ; then
47689 COND_TOOLKIT_MOTIF=""
47690 fi
47691
47692 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
47693 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
47694 COND_TOOLKIT_MOTIF_USE_GUI_1=""
47695 fi
47696
47697 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
47698 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
47699 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
47700 fi
47701
47702 COND_TOOLKIT_MSW="#"
47703 if test "x$TOOLKIT" = "xMSW" ; then
47704 COND_TOOLKIT_MSW=""
47705 fi
47706
47707 COND_TOOLKIT_MSW_USE_GUI_1="#"
47708 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
47709 COND_TOOLKIT_MSW_USE_GUI_1=""
47710 fi
47711
47712 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
47713 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
47714 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
47715 fi
47716
0ee4059d
DE
47717 COND_TOOLKIT_MSW_WXUNIV_0="#"
47718 if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
47719 COND_TOOLKIT_MSW_WXUNIV_0=""
47720 fi
47721
a848cd7e
SC
47722 COND_TOOLKIT_PM="#"
47723 if test "x$TOOLKIT" = "xPM" ; then
47724 COND_TOOLKIT_PM=""
47725 fi
47726
47727 COND_TOOLKIT_PM_USE_GUI_1="#"
47728 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
47729 COND_TOOLKIT_PM_USE_GUI_1=""
47730 fi
47731
47732 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
47733 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
47734 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
47735 fi
47736
3fd9c298
DE
47737 COND_TOOLKIT_WINCE="#"
47738 if test "x$TOOLKIT" = "xWINCE" ; then
47739 COND_TOOLKIT_WINCE=""
47740 fi
47741
47742 COND_TOOLKIT_WINCE_USE_GUI_1="#"
47743 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
47744 COND_TOOLKIT_WINCE_USE_GUI_1=""
47745 fi
47746
47747 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
47748 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
47749 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
47750 fi
47751
0ee4059d
DE
47752 COND_TOOLKIT_WINCE_WXUNIV_0="#"
47753 if test "x$TOOLKIT" = "xWINCE" -a "x$WXUNIV" = "x0" ; then
47754 COND_TOOLKIT_WINCE_WXUNIV_0=""
47755 fi
47756
a848cd7e
SC
47757 COND_TOOLKIT_X11="#"
47758 if test "x$TOOLKIT" = "xX11" ; then
47759 COND_TOOLKIT_X11=""
47760 fi
47761
47762 COND_TOOLKIT_X11_USE_GUI_1="#"
47763 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
47764 COND_TOOLKIT_X11_USE_GUI_1=""
47765 fi
47766
47767 COND_UNICODE_1="#"
47768 if test "x$UNICODE" = "x1" ; then
47769 COND_UNICODE_1=""
47770 fi
47771
47772 COND_USE_EXCEPTIONS_0="#"
47773 if test "x$USE_EXCEPTIONS" = "x0" ; then
47774 COND_USE_EXCEPTIONS_0=""
47775 fi
47776
47777 COND_USE_EXCEPTIONS_1="#"
47778 if test "x$USE_EXCEPTIONS" = "x1" ; then
47779 COND_USE_EXCEPTIONS_1=""
47780 fi
47781
47782 COND_USE_GUI_0="#"
47783 if test "x$USE_GUI" = "x0" ; then
47784 COND_USE_GUI_0=""
47785 fi
47786
47787 COND_USE_GUI_1="#"
47788 if test "x$USE_GUI" = "x1" ; then
47789 COND_USE_GUI_1=""
47790 fi
47791
47792 COND_USE_GUI_1_WXUNIV_0="#"
47793 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
47794 COND_USE_GUI_1_WXUNIV_0=""
47795 fi
47796
47797 COND_USE_GUI_1_WXUNIV_1="#"
47798 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
47799 COND_USE_GUI_1_WXUNIV_1=""
47800 fi
47801
47802 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
47803 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
47804 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
47805 fi
47806
47807 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
47808 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
47809 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
47810 fi
47811
47812 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
47813 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
47814 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
47815 fi
47816
083508af
MW
47817 COND_USE_ODBC_1="#"
47818 if test "x$USE_ODBC" = "x1" ; then
47819 COND_USE_ODBC_1=""
47820 fi
47821
47822 COND_USE_OPENGL_1="#"
47823 if test "x$USE_OPENGL" = "x1" ; then
47824 COND_USE_OPENGL_1=""
47825 fi
47826
f10e38c4
VZ
47827 COND_USE_PCH_1="#"
47828 if test "x$USE_PCH" = "x1" ; then
47829 COND_USE_PCH_1=""
47830 fi
47831
a848cd7e
SC
47832 COND_USE_PLUGINS_0="#"
47833 if test "x$USE_PLUGINS" = "x0" ; then
47834 COND_USE_PLUGINS_0=""
47835 fi
47836
0b78747f
MW
47837 COND_USE_RTTI_0="#"
47838 if test "x$USE_RTTI" = "x0" ; then
47839 COND_USE_RTTI_0=""
47840 fi
47841
47842 COND_USE_RTTI_1="#"
47843 if test "x$USE_RTTI" = "x1" ; then
47844 COND_USE_RTTI_1=""
47845 fi
47846
a848cd7e
SC
47847 COND_USE_SOSYMLINKS_1="#"
47848 if test "x$USE_SOSYMLINKS" = "x1" ; then
47849 COND_USE_SOSYMLINKS_1=""
47850 fi
47851
eb730a0c
JS
47852 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="#"
47853 if test "x$USE_SOVERCYGWIN" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
47854 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1=""
47855 fi
47856
a848cd7e
SC
47857 COND_USE_SOVERLINUX_1="#"
47858 if test "x$USE_SOVERLINUX" = "x1" ; then
47859 COND_USE_SOVERLINUX_1=""
47860 fi
47861
47862 COND_USE_SOVERSION_0="#"
47863 if test "x$USE_SOVERSION" = "x0" ; then
47864 COND_USE_SOVERSION_0=""
47865 fi
47866
47867 COND_USE_SOVERSOLARIS_1="#"
47868 if test "x$USE_SOVERSOLARIS" = "x1" ; then
47869 COND_USE_SOVERSOLARIS_1=""
47870 fi
47871
0b78747f
MW
47872 COND_USE_THREADS_0="#"
47873 if test "x$USE_THREADS" = "x0" ; then
47874 COND_USE_THREADS_0=""
47875 fi
47876
47877 COND_USE_THREADS_1="#"
47878 if test "x$USE_THREADS" = "x1" ; then
47879 COND_USE_THREADS_1=""
47880 fi
47881
a13a7f89
RL
47882 COND_USE_XRC_1="#"
47883 if test "x$USE_XRC" = "x1" ; then
47884 COND_USE_XRC_1=""
47885 fi
47886
eb730a0c
JS
47887 COND_WINDOWS_IMPLIB_1="#"
47888 if test "x$WINDOWS_IMPLIB" = "x1" ; then
47889 COND_WINDOWS_IMPLIB_1=""
47890 fi
47891
a848cd7e
SC
47892 COND_WITH_PLUGIN_SDL_1="#"
47893 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
47894 COND_WITH_PLUGIN_SDL_1=""
47895 fi
47896
1e6eb025
VZ
47897 COND_WXUNIV_0="#"
47898 if test "x$WXUNIV" = "x0" ; then
47899 COND_WXUNIV_0=""
47900 fi
47901
a848cd7e
SC
47902 COND_WXUNIV_1="#"
47903 if test "x$WXUNIV" = "x1" ; then
47904 COND_WXUNIV_1=""
47905 fi
47906
47907 COND_WXUSE_EXPAT_BUILTIN="#"
47908 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
47909 COND_WXUSE_EXPAT_BUILTIN=""
47910 fi
47911
47912 COND_WXUSE_LIBJPEG_BUILTIN="#"
47913 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
47914 COND_WXUSE_LIBJPEG_BUILTIN=""
47915 fi
47916
47917 COND_WXUSE_LIBPNG_BUILTIN="#"
47918 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
47919 COND_WXUSE_LIBPNG_BUILTIN=""
47920 fi
47921
47922 COND_WXUSE_LIBTIFF_BUILTIN="#"
47923 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
47924 COND_WXUSE_LIBTIFF_BUILTIN=""
47925 fi
47926
47927 COND_WXUSE_ODBC_BUILTIN="#"
47928 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
47929 COND_WXUSE_ODBC_BUILTIN=""
47930 fi
47931
47932 COND_WXUSE_REGEX_BUILTIN="#"
47933 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
47934 COND_WXUSE_REGEX_BUILTIN=""
47935 fi
47936
47937 COND_WXUSE_ZLIB_BUILTIN="#"
47938 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
47939 COND_WXUSE_ZLIB_BUILTIN=""
47940 fi
47941
47942
47943
810b94f0
MW
47944 if test "$BAKEFILE_AUTOCONF_INC_M4_VERSION" = "" ; then
47945 { { 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
47946echo "$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;}
47947 { (exit 1); exit 1; }; }
47948 fi
47949
2057db16
VS
47950 if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
47951 { { 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
47952echo "$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;}
47953 { (exit 1); exit 1; }; }
47954 fi
47955
a848cd7e 47956
7afc46ab
KO
47957
47958if test "$wxUSE_MAC" = 1 ; then
47959 if test "$wxUSE_UNIVERSAL_BINARY" = "yes" ; then
47960 sed "s/DEPSMODE=gcc/DEPSMODE=none/" < bk-deps > temp
47961 mv temp bk-deps
47962 chmod +x bk-deps
47963 fi
47964fi
47965
ceec2216
RL
47966if test "$wxUSE_SHARED" = "yes"; then
47967
47968 sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'`
47969 EXE_LINKER=`eval echo "$sanitised_bakefile_mess"`
47970
5b674b9d
DE
47971 case "${host}" in
47972 *-pc-os2_emx | *-pc-os2-emx )
47973 SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
47974 SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
47975 cp -p ${srcdir}/src/os2/dllnames.sh .
47976 cp -p ${srcdir}/src/os2/dllar.sh .
47977 ;;
47978 esac
ceec2216
RL
47979else
47980
47981 EXE_LINKER="$CXX -o"
47982
47983fi
69120ee4
VZ
47984if test "$wxUSE_OMF" = "yes"; then
47985 case "${host}" in
47986 *-pc-os2_emx | *-pc-os2-emx )
47987 LDFLAGS="$LDFLAGS -Zlinker /EXEPACK"
47988 LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
47989 WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
47990 ;;
47991 esac
47992fi
a848cd7e 47993
c08ebc62 47994if test $GCC_PCH = 1 ; then
254e8e29 47995 CPPFLAGS="-DWX_PRECOMP $CPPFLAGS"
ddd14b14 47996fi
a848cd7e 47997
5ff751d6 47998WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS $TOOLCHAIN_DEFS"
a848cd7e
SC
47999
48000SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
48001
48002
48003
48004
48005
48006
48007
48008
48009
48010
48011
48012
48013
48014
48015
48016
48017
48018
48019
48020
48021
48022
48023
48024
48025
48026
48027
48028
48029
48030
48031
48032
48033
48034
48035
48036
48037
48038
48039
48040
48041
48042
a848cd7e
SC
48043
48044
48045
48046
48047
48048
48049
48050
48051
48052
48053
48054
a848cd7e
SC
48055
48056
ddd14b14 48057
370d2fd7 48058
8ced02f6 48059
a848cd7e
SC
48060
48061
48062echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
48063echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 48064set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
48065if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
48066 echo $ECHO_N "(cached) $ECHO_C" >&6
48067else
48068 cat >conftest.make <<\_ACEOF
48069all:
48070 @echo 'ac_maketemp="$(MAKE)"'
48071_ACEOF
48072# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
48073eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
48074if test -n "$ac_maketemp"; then
48075 eval ac_cv_prog_make_${ac_make}_set=yes
48076else
48077 eval ac_cv_prog_make_${ac_make}_set=no
48078fi
48079rm -f conftest.make
48080fi
48081if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
48082 echo "$as_me:$LINENO: result: yes" >&5
48083echo "${ECHO_T}yes" >&6
48084 SET_MAKE=
48085else
48086 echo "$as_me:$LINENO: result: no" >&5
48087echo "${ECHO_T}no" >&6
48088 SET_MAKE="MAKE=${MAKE-make}"
48089fi
48090
48091
a848cd7e 48092
ceec2216
RL
48093 ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
48094
a848cd7e 48095
5c60e845
MW
48096if test "$USE_WIN32" = 1; then
48097 ac_config_commands="$ac_config_commands
48098 rcdefs.h
48099 "
48100
48101fi
48102
ceec2216 48103 ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
a848cd7e 48104
a848cd7e 48105
ceec2216 48106 ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
a848cd7e 48107
ceec2216
RL
48108
48109 ac_config_files="$ac_config_files version-script Makefile"
48110
48111
5c60e845 48112 ac_config_commands="$ac_config_commands wx-config"
a848cd7e
SC
48113
48114
9103d280 48115
1c14217d 48116if test "$wxWITH_SUBDIRS" != "no"; then
a848cd7e
SC
48117if test "$wxUSE_GUI" = "yes"; then
48118 SUBDIRS="samples demos utils contrib"
48119else SUBDIRS="samples utils"
48120fi
48121
48122
48123
48124# Check whether --with-cppunit-prefix or --without-cppunit-prefix was given.
48125if test "${with_cppunit_prefix+set}" = set; then
48126 withval="$with_cppunit_prefix"
48127 cppunit_config_prefix="$withval"
48128else
48129 cppunit_config_prefix=""
48130fi;
48131
48132# Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given.
48133if test "${with_cppunit_exec_prefix+set}" = set; then
48134 withval="$with_cppunit_exec_prefix"
48135 cppunit_config_exec_prefix="$withval"
48136else
48137 cppunit_config_exec_prefix=""
48138fi;
48139
48140 if test x$cppunit_config_exec_prefix != x ; then
48141 cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
48142 if test x${CPPUNIT_CONFIG+set} != xset ; then
48143 CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
48144 fi
48145 fi
48146 if test x$cppunit_config_prefix != x ; then
48147 cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
48148 if test x${CPPUNIT_CONFIG+set} != xset ; then
48149 CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
48150 fi
48151 fi
48152
48153 # Extract the first word of "cppunit-config", so it can be a program name with args.
48154set dummy cppunit-config; ac_word=$2
48155echo "$as_me:$LINENO: checking for $ac_word" >&5
48156echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
48157if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
48158 echo $ECHO_N "(cached) $ECHO_C" >&6
48159else
48160 case $CPPUNIT_CONFIG in
48161 [\\/]* | ?:[\\/]*)
48162 ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
48163 ;;
48164 *)
48165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48166for as_dir in $PATH
48167do
48168 IFS=$as_save_IFS
48169 test -z "$as_dir" && as_dir=.
48170 for ac_exec_ext in '' $ac_executable_extensions; do
48171 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48172 ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
48173 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48174 break 2
48175 fi
48176done
48177done
48178
48179 test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
48180 ;;
48181esac
48182fi
48183CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
48184
48185if test -n "$CPPUNIT_CONFIG"; then
48186 echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
48187echo "${ECHO_T}$CPPUNIT_CONFIG" >&6
48188else
48189 echo "$as_me:$LINENO: result: no" >&5
48190echo "${ECHO_T}no" >&6
48191fi
48192
48193 cppunit_version_min=1.8.0
48194
48195 echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
48196echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6
48197 no_cppunit=""
48198 if test "$CPPUNIT_CONFIG" = "no" ; then
48199 no_cppunit=yes
48200 else
48201 CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
48202 CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
48203 cppunit_version=`$CPPUNIT_CONFIG --version`
48204
48205 cppunit_major_version=`echo $cppunit_version | \
48206 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
48207 cppunit_minor_version=`echo $cppunit_version | \
48208 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
48209 cppunit_micro_version=`echo $cppunit_version | \
48210 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
48211
48212 cppunit_major_min=`echo $cppunit_version_min | \
48213 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
48214 cppunit_minor_min=`echo $cppunit_version_min | \
48215 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
48216 cppunit_micro_min=`echo $cppunit_version_min | \
48217 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
48218
48219 cppunit_version_proper=`expr \
48220 $cppunit_major_version \> $cppunit_major_min \| \
48221 $cppunit_major_version \= $cppunit_major_min \& \
48222 $cppunit_minor_version \> $cppunit_minor_min \| \
48223 $cppunit_major_version \= $cppunit_major_min \& \
48224 $cppunit_minor_version \= $cppunit_minor_min \& \
48225 $cppunit_micro_version \>= $cppunit_micro_min `
48226
48227 if test "$cppunit_version_proper" = "1" ; then
48228 echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
48229echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6
48230 else
48231 echo "$as_me:$LINENO: result: no" >&5
48232echo "${ECHO_T}no" >&6
48233 no_cppunit=yes
48234 fi
48235 fi
48236
48237 if test "x$no_cppunit" = x ; then
c2218763 48238 SUBDIRS="$SUBDIRS tests"
a848cd7e
SC
48239 else
48240 CPPUNIT_CFLAGS=""
48241 CPPUNIT_LIBS=""
c2218763 48242 :
a848cd7e
SC
48243 fi
48244
48245
48246
48247
48248
48249for subdir in `echo $SUBDIRS`; do
48250 if test -d ${srcdir}/${subdir} ; then
48251 if test "$wxUSE_GUI" = "yes"; then
48252 if test ${subdir} = "samples"; then
48253 makefiles="samples/Makefile.in $makefiles"
48254 for sample in `echo $SAMPLES_SUBDIRS`; do
48255 if test -d $srcdir/samples/$sample; then
48256 makefiles="samples/$sample/Makefile.in $makefiles"
48257 fi
48258 done
9c112555
MW
48259 else
48260 disabled_var=DISABLED_`echo $subdir | tr [a-z] [A-Z]`;
48261 eval "disabled=\$$disabled_var"
48262 disabled=/`echo X $disabled | sed 's@ @/|/@g'`/
48263 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in) | egrep -v "$disabled"`
a848cd7e
SC
48264 fi
48265 else if test ${subdir} = "samples"; then
48266 makefiles="samples/Makefile.in samples/console/Makefile.in"
48267 elif test ${subdir} = "utils"; then
6537ccf8
VS
48268 makefiles=""
48269 for util in HelpGen tex2rtf ; do
48270 if test -d $srcdir/utils/$util ; then
48271 makefiles="utils/$util/Makefile.in \
48272 utils/$util/src/Makefile.in \
48273 $makefiles"
48274 fi
48275 done
a848cd7e
SC
48276 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
48277 fi
48278 fi
48279
48280 for mkin in $makefiles ; do
48281 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
48282 ac_config_files="$ac_config_files $mk"
48283
48284 done
48285 fi
48286done
1c14217d 48287fi
a848cd7e
SC
48288cat >confcache <<\_ACEOF
48289# This file is a shell script that caches the results of configure
48290# tests run on this system so they can be shared between configure
48291# scripts and configure runs, see configure's option --config-cache.
48292# It is not useful on other systems. If it contains results you don't
48293# want to keep, you may remove or edit it.
48294#
48295# config.status only pays attention to the cache file if you give it
48296# the --recheck option to rerun configure.
48297#
48298# `ac_cv_env_foo' variables (set or unset) will be overridden when
48299# loading this file, other *unset* `ac_cv_foo' will be assigned the
48300# following values.
48301
48302_ACEOF
48303
48304# The following way of writing the cache mishandles newlines in values,
48305# but we know of no workaround that is simple, portable, and efficient.
48306# So, don't put newlines in cache variables' values.
48307# Ultrix sh set writes to stderr and can't be redirected directly,
48308# and sets the high bit in the cache file unless we assign to the vars.
48309{
48310 (set) 2>&1 |
48311 case `(ac_space=' '; set | grep ac_space) 2>&1` in
48312 *ac_space=\ *)
48313 # `set' does not quote correctly, so add quotes (double-quote
48314 # substitution turns \\\\ into \\, and sed turns \\ into \).
48315 sed -n \
ac1cb8d3
VS
48316 "s/'/'\\\\''/g;
48317 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
48318 ;;
48319 *)
48320 # `set' quotes correctly as required by POSIX, so do not add quotes.
48321 sed -n \
ac1cb8d3 48322 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
48323 ;;
48324 esac;
48325} |
48326 sed '
48327 t clear
48328 : clear
48329 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
48330 t end
48331 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
48332 : end' >>confcache
48333if diff $cache_file confcache >/dev/null 2>&1; then :; else
48334 if test -w $cache_file; then
48335 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
48336 cat confcache >$cache_file
48337 else
48338 echo "not updating unwritable cache $cache_file"
48339 fi
48340fi
48341rm -f confcache
48342
48343test "x$prefix" = xNONE && prefix=$ac_default_prefix
48344# Let make expand exec_prefix.
48345test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
48346
48347# VPATH may cause trouble with some makes, so we remove $(srcdir),
48348# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
48349# trailing colons and then remove the whole line if VPATH becomes empty
48350# (actually we leave an empty line to preserve line numbers).
48351if test "x$srcdir" = x.; then
ac1cb8d3 48352 ac_vpsub='/^[ ]*VPATH[ ]*=/{
a848cd7e
SC
48353s/:*\$(srcdir):*/:/;
48354s/:*\${srcdir}:*/:/;
48355s/:*@srcdir@:*/:/;
ac1cb8d3 48356s/^\([^=]*=[ ]*\):*/\1/;
a848cd7e 48357s/:*$//;
ac1cb8d3 48358s/^[^=]*=[ ]*$//;
a848cd7e
SC
48359}'
48360fi
48361
48362DEFS=-DHAVE_CONFIG_H
48363
48364ac_libobjs=
48365ac_ltlibobjs=
48366for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
48367 # 1. Remove the extension, and $U if already installed.
48368 ac_i=`echo "$ac_i" |
ac1cb8d3 48369 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
a848cd7e
SC
48370 # 2. Add them.
48371 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
48372 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
48373done
48374LIBOBJS=$ac_libobjs
48375
48376LTLIBOBJS=$ac_ltlibobjs
48377
48378
48379
48380: ${CONFIG_STATUS=./config.status}
48381ac_clean_files_save=$ac_clean_files
48382ac_clean_files="$ac_clean_files $CONFIG_STATUS"
48383{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
48384echo "$as_me: creating $CONFIG_STATUS" >&6;}
48385cat >$CONFIG_STATUS <<_ACEOF
48386#! $SHELL
48387# Generated by $as_me.
48388# Run this file to recreate the current configuration.
48389# Compiler output produced by configure, useful for debugging
48390# configure, is in config.log if it exists.
48391
48392debug=false
48393ac_cs_recheck=false
48394ac_cs_silent=false
48395SHELL=\${CONFIG_SHELL-$SHELL}
48396_ACEOF
48397
48398cat >>$CONFIG_STATUS <<\_ACEOF
48399## --------------------- ##
48400## M4sh Initialization. ##
48401## --------------------- ##
48402
48403# Be Bourne compatible
48404if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
48405 emulate sh
48406 NULLCMD=:
48407 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
48408 # is contrary to our usage. Disable this feature.
48409 alias -g '${1+"$@"}'='"$@"'
48410elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
48411 set -o posix
48412fi
ac1cb8d3 48413DUALCASE=1; export DUALCASE # for MKS sh
a848cd7e
SC
48414
48415# Support unset when possible.
ac1cb8d3 48416if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a848cd7e
SC
48417 as_unset=unset
48418else
48419 as_unset=false
48420fi
48421
48422
48423# Work around bugs in pre-3.0 UWIN ksh.
48424$as_unset ENV MAIL MAILPATH
48425PS1='$ '
48426PS2='> '
48427PS4='+ '
48428
48429# NLS nuisances.
48430for as_var in \
48431 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
48432 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
48433 LC_TELEPHONE LC_TIME
48434do
ac1cb8d3 48435 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
48436 eval $as_var=C; export $as_var
48437 else
48438 $as_unset $as_var
48439 fi
48440done
48441
48442# Required to use basename.
48443if expr a : '\(a\)' >/dev/null 2>&1; then
48444 as_expr=expr
48445else
48446 as_expr=false
48447fi
48448
48449if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
48450 as_basename=basename
48451else
48452 as_basename=false
48453fi
48454
48455
48456# Name of the executable.
48457as_me=`$as_basename "$0" ||
48458$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
48459 X"$0" : 'X\(//\)$' \| \
48460 X"$0" : 'X\(/\)$' \| \
48461 . : '\(.\)' 2>/dev/null ||
48462echo X/"$0" |
48463 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
48464 /^X\/\(\/\/\)$/{ s//\1/; q; }
48465 /^X\/\(\/\).*/{ s//\1/; q; }
48466 s/.*/./; q'`
48467
48468
48469# PATH needs CR, and LINENO needs CR and PATH.
48470# Avoid depending upon Character Ranges.
48471as_cr_letters='abcdefghijklmnopqrstuvwxyz'
48472as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
48473as_cr_Letters=$as_cr_letters$as_cr_LETTERS
48474as_cr_digits='0123456789'
48475as_cr_alnum=$as_cr_Letters$as_cr_digits
48476
48477# The user is always right.
48478if test "${PATH_SEPARATOR+set}" != set; then
48479 echo "#! /bin/sh" >conf$$.sh
48480 echo "exit 0" >>conf$$.sh
48481 chmod +x conf$$.sh
48482 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48483 PATH_SEPARATOR=';'
48484 else
48485 PATH_SEPARATOR=:
48486 fi
48487 rm -f conf$$.sh
48488fi
48489
48490
48491 as_lineno_1=$LINENO
48492 as_lineno_2=$LINENO
48493 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
48494 test "x$as_lineno_1" != "x$as_lineno_2" &&
48495 test "x$as_lineno_3" = "x$as_lineno_2" || {
48496 # Find who we are. Look in the path if we contain no path at all
48497 # relative or not.
48498 case $0 in
48499 *[\\/]* ) as_myself=$0 ;;
48500 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48501for as_dir in $PATH
48502do
48503 IFS=$as_save_IFS
48504 test -z "$as_dir" && as_dir=.
48505 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
48506done
48507
48508 ;;
48509 esac
48510 # We did not find ourselves, most probably we were run as `sh COMMAND'
48511 # in which case we are not to be found in the path.
48512 if test "x$as_myself" = x; then
48513 as_myself=$0
48514 fi
48515 if test ! -f "$as_myself"; then
48516 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
48517echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
48518 { (exit 1); exit 1; }; }
48519 fi
48520 case $CONFIG_SHELL in
48521 '')
48522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48523for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
48524do
48525 IFS=$as_save_IFS
48526 test -z "$as_dir" && as_dir=.
48527 for as_base in sh bash ksh sh5; do
48528 case $as_dir in
48529 /*)
48530 if ("$as_dir/$as_base" -c '
48531 as_lineno_1=$LINENO
48532 as_lineno_2=$LINENO
48533 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
48534 test "x$as_lineno_1" != "x$as_lineno_2" &&
48535 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
48536 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
48537 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
48538 CONFIG_SHELL=$as_dir/$as_base
48539 export CONFIG_SHELL
48540 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
48541 fi;;
48542 esac
48543 done
48544done
48545;;
48546 esac
48547
48548 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
48549 # uniformly replaced by the line number. The first 'sed' inserts a
48550 # line-number line before each line; the second 'sed' does the real
48551 # work. The second script uses 'N' to pair each line-number line
48552 # with the numbered line, and appends trailing '-' during
48553 # substitution so that $LINENO is not a special case at line end.
48554 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
48555 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
48556 sed '=' <$as_myself |
48557 sed '
48558 N
48559 s,$,-,
48560 : loop
48561 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
48562 t loop
48563 s,-$,,
48564 s,^['$as_cr_digits']*\n,,
48565 ' >$as_me.lineno &&
48566 chmod +x $as_me.lineno ||
48567 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
48568echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
48569 { (exit 1); exit 1; }; }
48570
48571 # Don't try to exec as it changes $[0], causing all sort of problems
48572 # (the dirname of $[0] is not the place where we might find the
48573 # original and so on. Autoconf is especially sensible to this).
48574 . ./$as_me.lineno
48575 # Exit status is that of the last command.
48576 exit
48577}
48578
48579
48580case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
48581 *c*,-n*) ECHO_N= ECHO_C='
48582' ECHO_T=' ' ;;
48583 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
48584 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
48585esac
48586
48587if expr a : '\(a\)' >/dev/null 2>&1; then
48588 as_expr=expr
48589else
48590 as_expr=false
48591fi
48592
48593rm -f conf$$ conf$$.exe conf$$.file
48594echo >conf$$.file
48595if ln -s conf$$.file conf$$ 2>/dev/null; then
48596 # We could just check for DJGPP; but this test a) works b) is more generic
48597 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
48598 if test -f conf$$.exe; then
48599 # Don't use ln at all; we don't have any links
48600 as_ln_s='cp -p'
48601 else
48602 as_ln_s='ln -s'
48603 fi
48604elif ln conf$$.file conf$$ 2>/dev/null; then
48605 as_ln_s=ln
48606else
48607 as_ln_s='cp -p'
48608fi
48609rm -f conf$$ conf$$.exe conf$$.file
48610
48611if mkdir -p . 2>/dev/null; then
48612 as_mkdir_p=:
48613else
ac1cb8d3 48614 test -d ./-p && rmdir ./-p
a848cd7e
SC
48615 as_mkdir_p=false
48616fi
48617
48618as_executable_p="test -f"
48619
48620# Sed expression to map a string onto a valid CPP name.
ac1cb8d3 48621as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
48622
48623# Sed expression to map a string onto a valid variable name.
ac1cb8d3 48624as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
48625
48626
48627# IFS
48628# We need space, tab and new line, in precisely that order.
48629as_nl='
48630'
48631IFS=" $as_nl"
48632
48633# CDPATH.
48634$as_unset CDPATH
48635
48636exec 6>&1
48637
48638# Open the log real soon, to keep \$[0] and so on meaningful, and to
48639# report actual input values of CONFIG_FILES etc. instead of their
48640# values after options handling. Logging --version etc. is OK.
48641exec 5>>config.log
48642{
48643 echo
48644 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
48645## Running $as_me. ##
48646_ASBOX
48647} >&5
48648cat >&5 <<_CSEOF
48649
dd8df4fc 48650This file was extended by wxWidgets $as_me 2.7.0, which was
ac1cb8d3 48651generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
48652
48653 CONFIG_FILES = $CONFIG_FILES
48654 CONFIG_HEADERS = $CONFIG_HEADERS
48655 CONFIG_LINKS = $CONFIG_LINKS
48656 CONFIG_COMMANDS = $CONFIG_COMMANDS
48657 $ $0 $@
48658
48659_CSEOF
48660echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
48661echo >&5
48662_ACEOF
48663
48664# Files that config.status was made for.
48665if test -n "$ac_config_files"; then
48666 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
48667fi
48668
48669if test -n "$ac_config_headers"; then
48670 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
48671fi
48672
48673if test -n "$ac_config_links"; then
48674 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
48675fi
48676
48677if test -n "$ac_config_commands"; then
48678 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
48679fi
48680
48681cat >>$CONFIG_STATUS <<\_ACEOF
48682
48683ac_cs_usage="\
48684\`$as_me' instantiates files from templates according to the
48685current configuration.
48686
48687Usage: $0 [OPTIONS] [FILE]...
48688
48689 -h, --help print this help, then exit
48690 -V, --version print version number, then exit
48691 -q, --quiet do not print progress messages
48692 -d, --debug don't remove temporary files
48693 --recheck update $as_me by reconfiguring in the same conditions
48694 --file=FILE[:TEMPLATE]
ac1cb8d3 48695 instantiate the configuration file FILE
a848cd7e 48696 --header=FILE[:TEMPLATE]
ac1cb8d3 48697 instantiate the configuration header FILE
a848cd7e
SC
48698
48699Configuration files:
48700$config_files
48701
48702Configuration headers:
48703$config_headers
48704
48705Configuration commands:
48706$config_commands
48707
48708Report bugs to <bug-autoconf@gnu.org>."
48709_ACEOF
48710
48711cat >>$CONFIG_STATUS <<_ACEOF
48712ac_cs_version="\\
dd8df4fc 48713wxWidgets config.status 2.7.0
ac1cb8d3 48714configured by $0, generated by GNU Autoconf 2.59,
a848cd7e
SC
48715 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
48716
ac1cb8d3 48717Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
48718This config.status script is free software; the Free Software Foundation
48719gives unlimited permission to copy, distribute and modify it."
48720srcdir=$srcdir
48721INSTALL="$INSTALL"
48722_ACEOF
48723
48724cat >>$CONFIG_STATUS <<\_ACEOF
48725# If no file are specified by the user, then we need to provide default
48726# value. By we need to know if files were specified by the user.
48727ac_need_defaults=:
48728while test $# != 0
48729do
48730 case $1 in
48731 --*=*)
48732 ac_option=`expr "x$1" : 'x\([^=]*\)='`
48733 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
48734 ac_shift=:
48735 ;;
48736 -*)
48737 ac_option=$1
48738 ac_optarg=$2
48739 ac_shift=shift
48740 ;;
48741 *) # This is not an option, so the user has probably given explicit
48742 # arguments.
48743 ac_option=$1
48744 ac_need_defaults=false;;
48745 esac
48746
48747 case $ac_option in
48748 # Handling of the options.
48749_ACEOF
48750cat >>$CONFIG_STATUS <<\_ACEOF
48751 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
48752 ac_cs_recheck=: ;;
48753 --version | --vers* | -V )
48754 echo "$ac_cs_version"; exit 0 ;;
48755 --he | --h)
48756 # Conflict between --help and --header
48757 { { echo "$as_me:$LINENO: error: ambiguous option: $1
48758Try \`$0 --help' for more information." >&5
48759echo "$as_me: error: ambiguous option: $1
48760Try \`$0 --help' for more information." >&2;}
48761 { (exit 1); exit 1; }; };;
48762 --help | --hel | -h )
48763 echo "$ac_cs_usage"; exit 0 ;;
48764 --debug | --d* | -d )
48765 debug=: ;;
48766 --file | --fil | --fi | --f )
48767 $ac_shift
48768 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
48769 ac_need_defaults=false;;
48770 --header | --heade | --head | --hea )
48771 $ac_shift
48772 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
48773 ac_need_defaults=false;;
48774 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
48775 | -silent | --silent | --silen | --sile | --sil | --si | --s)
48776 ac_cs_silent=: ;;
48777
48778 # This is an error.
48779 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
48780Try \`$0 --help' for more information." >&5
48781echo "$as_me: error: unrecognized option: $1
48782Try \`$0 --help' for more information." >&2;}
48783 { (exit 1); exit 1; }; } ;;
48784
48785 *) ac_config_targets="$ac_config_targets $1" ;;
48786
48787 esac
48788 shift
48789done
48790
48791ac_configure_extra_args=
48792
48793if $ac_cs_silent; then
48794 exec 6>/dev/null
48795 ac_configure_extra_args="$ac_configure_extra_args --silent"
48796fi
48797
48798_ACEOF
48799cat >>$CONFIG_STATUS <<_ACEOF
48800if \$ac_cs_recheck; then
48801 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
48802 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
48803fi
48804
48805_ACEOF
48806
48807cat >>$CONFIG_STATUS <<_ACEOF
48808#
48809# INIT-COMMANDS section.
48810#
48811
5c60e845
MW
48812
48813 CPP="$CPP"
48814 infile="$srcdir/include/wx/msw/genrcdefs.h"
48815 outdir="lib/wx/include/$TOOLCHAIN_FULLNAME/wx/msw"
48816
48817
ceec2216
RL
48818 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
48819 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
48820 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
48821 LN_S="${LN_S}"
a848cd7e
SC
48822
48823
48824_ACEOF
48825
48826
48827
48828cat >>$CONFIG_STATUS <<\_ACEOF
48829for ac_config_target in $ac_config_targets
48830do
48831 case "$ac_config_target" in
48832 # Handling of arguments.
ceec2216
RL
48833 "lib/wx/config/${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
48834 "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
a848cd7e
SC
48835 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
48836 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
48837 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
5c60e845 48838 "rcdefs.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS rcdefs.h" ;;
ceec2216
RL
48839 "wx-config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
48840 "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
48841 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
48842echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
48843 { (exit 1); exit 1; }; };;
48844 esac
48845done
48846
48847# If the user did not use the arguments to specify the items to instantiate,
48848# then the envvar interface is used. Set only those that are not.
48849# We use the long form for the default assignment because of an extremely
48850# bizarre bug on SunOS 4.1.3.
48851if $ac_need_defaults; then
48852 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
48853 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
48854 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
48855fi
48856
48857# Have a temporary directory for convenience. Make it in the build tree
48858# simply because there is no reason to put it here, and in addition,
48859# creating and moving files from /tmp can sometimes cause problems.
48860# Create a temporary directory, and hook for its removal unless debugging.
48861$debug ||
48862{
48863 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
48864 trap '{ (exit 1); exit 1; }' 1 2 13 15
48865}
48866
48867# Create a (secure) tmp directory for tmp files.
48868
48869{
48870 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
48871 test -n "$tmp" && test -d "$tmp"
48872} ||
48873{
48874 tmp=./confstat$$-$RANDOM
48875 (umask 077 && mkdir $tmp)
48876} ||
48877{
48878 echo "$me: cannot create a temporary directory in ." >&2
48879 { (exit 1); exit 1; }
48880}
48881
48882_ACEOF
48883
48884cat >>$CONFIG_STATUS <<_ACEOF
48885
48886#
48887# CONFIG_FILES section.
48888#
48889
48890# No need to generate the scripts if there are no CONFIG_FILES.
48891# This happens for instance when ./config.status config.h
48892if test -n "\$CONFIG_FILES"; then
48893 # Protect against being on the right side of a sed subst in config.status.
48894 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
48895 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
48896s,@SHELL@,$SHELL,;t t
48897s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
48898s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
48899s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
48900s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
48901s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
48902s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
48903s,@exec_prefix@,$exec_prefix,;t t
48904s,@prefix@,$prefix,;t t
48905s,@program_transform_name@,$program_transform_name,;t t
48906s,@bindir@,$bindir,;t t
48907s,@sbindir@,$sbindir,;t t
48908s,@libexecdir@,$libexecdir,;t t
48909s,@datadir@,$datadir,;t t
48910s,@sysconfdir@,$sysconfdir,;t t
48911s,@sharedstatedir@,$sharedstatedir,;t t
48912s,@localstatedir@,$localstatedir,;t t
48913s,@libdir@,$libdir,;t t
48914s,@includedir@,$includedir,;t t
48915s,@oldincludedir@,$oldincludedir,;t t
48916s,@infodir@,$infodir,;t t
48917s,@mandir@,$mandir,;t t
48918s,@build_alias@,$build_alias,;t t
48919s,@host_alias@,$host_alias,;t t
48920s,@target_alias@,$target_alias,;t t
48921s,@DEFS@,$DEFS,;t t
48922s,@ECHO_C@,$ECHO_C,;t t
48923s,@ECHO_N@,$ECHO_N,;t t
48924s,@ECHO_T@,$ECHO_T,;t t
48925s,@LIBS@,$LIBS,;t t
48926s,@build@,$build,;t t
48927s,@build_cpu@,$build_cpu,;t t
48928s,@build_vendor@,$build_vendor,;t t
48929s,@build_os@,$build_os,;t t
48930s,@host@,$host,;t t
48931s,@host_cpu@,$host_cpu,;t t
48932s,@host_vendor@,$host_vendor,;t t
48933s,@host_os@,$host_os,;t t
48934s,@target@,$target,;t t
48935s,@target_cpu@,$target_cpu,;t t
48936s,@target_vendor@,$target_vendor,;t t
48937s,@target_os@,$target_os,;t t
48938s,@CC@,$CC,;t t
48939s,@CFLAGS@,$CFLAGS,;t t
48940s,@LDFLAGS@,$LDFLAGS,;t t
48941s,@CPPFLAGS@,$CPPFLAGS,;t t
48942s,@ac_ct_CC@,$ac_ct_CC,;t t
48943s,@EXEEXT@,$EXEEXT,;t t
48944s,@OBJEXT@,$OBJEXT,;t t
48945s,@CPP@,$CPP,;t t
48946s,@EGREP@,$EGREP,;t t
48947s,@CXX@,$CXX,;t t
48948s,@CXXFLAGS@,$CXXFLAGS,;t t
48949s,@ac_ct_CXX@,$ac_ct_CXX,;t t
48950s,@RANLIB@,$RANLIB,;t t
48951s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
48952s,@AR@,$AR,;t t
8c80d384 48953s,@ac_ct_AR@,$ac_ct_AR,;t t
a848cd7e
SC
48954s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
48955s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
48956s,@INSTALL_DATA@,$INSTALL_DATA,;t t
48957s,@STRIP@,$STRIP,;t t
8c80d384 48958s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
8ced02f6
DE
48959s,@WINDRES@,$WINDRES,;t t
48960s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
8c80d384
DE
48961s,@DLLTOOL@,$DLLTOOL,;t t
48962s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
a848cd7e
SC
48963s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
48964s,@LN_S@,$LN_S,;t t
48965s,@CXXCPP@,$CXXCPP,;t t
48966s,@subdirs@,$subdirs,;t t
48967s,@PKG_CONFIG@,$PKG_CONFIG,;t t
48968s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
48969s,@GTK_LIBS@,$GTK_LIBS,;t t
48970s,@GTK_CONFIG@,$GTK_CONFIG,;t t
a848cd7e
SC
48971s,@X_CFLAGS@,$X_CFLAGS,;t t
48972s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
48973s,@X_LIBS@,$X_LIBS,;t t
48974s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
48975s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
48976s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
d1c38808
VZ
48977s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
48978s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
a848cd7e
SC
48979s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
48980s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
8ced02f6 48981s,@REZ@,$REZ,;t t
a848cd7e
SC
48982s,@DEREZ@,$DEREZ,;t t
48983s,@SETFILE@,$SETFILE,;t t
48984s,@LIBICONV@,$LIBICONV,;t t
48985s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
48986s,@SDL_CONFIG@,$SDL_CONFIG,;t t
48987s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
48988s,@SDL_LIBS@,$SDL_LIBS,;t t
d1c38808
VZ
48989s,@LIBGNOMEPRINTUI_CFLAGS@,$LIBGNOMEPRINTUI_CFLAGS,;t t
48990s,@LIBGNOMEPRINTUI_LIBS@,$LIBGNOMEPRINTUI_LIBS,;t t
3565d135
RR
48991s,@HILDON_CFLAGS@,$HILDON_CFLAGS,;t t
48992s,@HILDON_LIBS@,$HILDON_LIBS,;t t
f10e38c4
VZ
48993s,@GST_CFLAGS@,$GST_CFLAGS,;t t
48994s,@GST_LIBS@,$GST_LIBS,;t t
a848cd7e
SC
48995s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
48996s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
48997s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
48998s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
48999s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
49000s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
49001s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
49002s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
49003s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
49004s,@VENDOR@,$VENDOR,;t t
49005s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
ceec2216
RL
49006s,@WX_FLAVOUR@,$WX_FLAVOUR,;t t
49007s,@WX_LIB_FLAVOUR@,$WX_LIB_FLAVOUR,;t t
a848cd7e
SC
49008s,@WXUNIV@,$WXUNIV,;t t
49009s,@MONOLITHIC@,$MONOLITHIC,;t t
49010s,@USE_PLUGINS@,$USE_PLUGINS,;t t
49011s,@EXTRALIBS@,$EXTRALIBS,;t t
49012s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
49013s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
49014s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
49015s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
49016s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
49017s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t
49018s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t
d1c38808 49019s,@EXTRALIBS_GNOMEPRINT@,$EXTRALIBS_GNOMEPRINT,;t t
3565d135 49020s,@EXTRALIBS_HILDON@,$EXTRALIBS_HILDON,;t t
a848cd7e
SC
49021s,@UNICODE@,$UNICODE,;t t
49022s,@BUILD@,$BUILD,;t t
49023s,@DEBUG_INFO@,$DEBUG_INFO,;t t
49024s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
a848cd7e
SC
49025s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
49026s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
49027s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
49028s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
49029s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
49030s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t
49031s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t
49032s,@SET_MAKE@,$SET_MAKE,;t t
49033s,@MAKE_SET@,$MAKE_SET,;t t
a848cd7e
SC
49034s,@NM@,$NM,;t t
49035s,@ac_ct_NM@,$ac_ct_NM,;t t
49036s,@INSTALL_DIR@,$INSTALL_DIR,;t t
49037s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
49038s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
49039s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
49040s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
49041s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
1e9e8aba 49042s,@PLATFORM_MACOS@,$PLATFORM_MACOS,;t t
a848cd7e
SC
49043s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
49044s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
1e9e8aba 49045s,@PLATFORM_BEOS@,$PLATFORM_BEOS,;t t
a848cd7e
SC
49046s,@SO_SUFFIX@,$SO_SUFFIX,;t t
49047s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
49048s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t
49049s,@LIBPREFIX@,$LIBPREFIX,;t t
49050s,@LIBEXT@,$LIBEXT,;t t
49051s,@DLLPREFIX@,$DLLPREFIX,;t t
49052s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
810b94f0 49053s,@dlldir@,$dlldir,;t t
a848cd7e
SC
49054s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
49055s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
49056s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
49057s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
49058s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
49059s,@PIC_FLAG@,$PIC_FLAG,;t t
810b94f0 49060s,@WINDOWS_IMPLIB@,$WINDOWS_IMPLIB,;t t
a848cd7e
SC
49061s,@USE_SOVERSION@,$USE_SOVERSION,;t t
49062s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
49063s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
810b94f0 49064s,@USE_SOVERCYGWIN@,$USE_SOVERCYGWIN,;t t
a848cd7e
SC
49065s,@USE_MACVERSION@,$USE_MACVERSION,;t t
49066s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
49067s,@SONAME_FLAG@,$SONAME_FLAG,;t t
49068s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
49069s,@GCC_PCH@,$GCC_PCH,;t t
f10e38c4 49070s,@ICC_PCH@,$ICC_PCH,;t t
a848cd7e
SC
49071s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
49072s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
49073s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
49074s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t
49075s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t
49076s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
49077s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
49078s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t
49079s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t
49080s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
49081s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
49082s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
49083s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
49084s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
49085s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
f10e38c4 49086s,@COND_ICC_PCH_1@,$COND_ICC_PCH_1,;t t
a848cd7e
SC
49087s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
49088s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
49089s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
90970d69 49090s,@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 49091s,@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 49092s,@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 49093s,@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 49094s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
ceec2216 49095s,@COND_MONOLITHIC_0_SHARED_0_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1,;t t
a848cd7e
SC
49096s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
49097s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
90970d69 49098s,@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 49099s,@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 49100s,@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 49101s,@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 49102s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
ceec2216 49103s,@COND_MONOLITHIC_0_SHARED_1_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1,;t t
e5efa97e 49104s,@COND_MONOLITHIC_0_USE_MEDIA_1@,$COND_MONOLITHIC_0_USE_MEDIA_1,;t t
a848cd7e
SC
49105s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t
49106s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
49107s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
49108s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
49109s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
49110s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
eb730a0c 49111s,@COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1,;t t
a848cd7e
SC
49112s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
49113s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
a30f955f 49114s,@COND_PLATFORM_MACOSX_1_TOOLKIT_@,$COND_PLATFORM_MACOSX_1_TOOLKIT_,;t t
a848cd7e
SC
49115s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
49116s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
49117s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
fc480dc1 49118s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1,;t t
1e9e8aba 49119s,@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
49120s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t
49121s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t
a848cd7e
SC
49122s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
49123s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
b48a2016 49124s,@COND_PLATFORM_MACOS_1@,$COND_PLATFORM_MACOS_1,;t t
083508af 49125s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
e5efa97e 49126s,@COND_PLATFORM_MSDOS_0@,$COND_PLATFORM_MSDOS_0,;t t
83d8eb47 49127s,@COND_PLATFORM_MSDOS_1@,$COND_PLATFORM_MSDOS_1,;t t
a848cd7e
SC
49128s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
49129s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
49130s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
49131s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
49132s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t
49133s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
49134s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
49135s,@COND_SHARED_0@,$COND_SHARED_0,;t t
083508af
MW
49136s,@COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0,;t t
49137s,@COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0,;t t
49138s,@COND_SHARED_0_TOOLKIT_PM_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0,;t t
a848cd7e
SC
49139s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
49140s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
49141s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
49142s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
083508af 49143s,@COND_SHARED_0_USE_XRC_1@,$COND_SHARED_0_USE_XRC_1,;t t
a848cd7e
SC
49144s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
49145s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
49146s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
49147s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
49148s,@COND_SHARED_1@,$COND_SHARED_1,;t t
49149s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
083508af 49150s,@COND_SHARED_1_USE_XRC_1@,$COND_SHARED_1_USE_XRC_1,;t t
a30f955f 49151s,@COND_TOOLKIT_@,$COND_TOOLKIT_,;t t
a848cd7e 49152s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
a49baeab 49153s,@COND_TOOLKIT_COCOA_USE_GUI_1@,$COND_TOOLKIT_COCOA_USE_GUI_1,;t t
a848cd7e
SC
49154s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
49155s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
d044deea
MW
49156s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_,;t t
49157s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2,;t t
49158s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1,;t t
49159s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0,;t t
49160s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1,;t t
49161s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0,;t t
a848cd7e 49162s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
a848cd7e
SC
49163s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
49164s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
49165s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
49166s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
49167s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
49168s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
49169s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
49170s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
49171s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
49172s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
49173s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
0ee4059d 49174s,@COND_TOOLKIT_MSW_WXUNIV_0@,$COND_TOOLKIT_MSW_WXUNIV_0,;t t
a848cd7e
SC
49175s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
49176s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
49177s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
3fd9c298
DE
49178s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t
49179s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t
49180s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t
0ee4059d 49181s,@COND_TOOLKIT_WINCE_WXUNIV_0@,$COND_TOOLKIT_WINCE_WXUNIV_0,;t t
a848cd7e
SC
49182s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
49183s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
49184s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
49185s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
49186s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
49187s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
49188s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
49189s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
49190s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
49191s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
49192s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
49193s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
083508af
MW
49194s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
49195s,@COND_USE_OPENGL_1@,$COND_USE_OPENGL_1,;t t
f10e38c4 49196s,@COND_USE_PCH_1@,$COND_USE_PCH_1,;t t
a848cd7e 49197s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t
0b78747f
MW
49198s,@COND_USE_RTTI_0@,$COND_USE_RTTI_0,;t t
49199s,@COND_USE_RTTI_1@,$COND_USE_RTTI_1,;t t
a848cd7e 49200s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
eb730a0c 49201s,@COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1@,$COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1,;t t
a848cd7e
SC
49202s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
49203s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
49204s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
0b78747f
MW
49205s,@COND_USE_THREADS_0@,$COND_USE_THREADS_0,;t t
49206s,@COND_USE_THREADS_1@,$COND_USE_THREADS_1,;t t
a13a7f89 49207s,@COND_USE_XRC_1@,$COND_USE_XRC_1,;t t
eb730a0c 49208s,@COND_WINDOWS_IMPLIB_1@,$COND_WINDOWS_IMPLIB_1,;t t
a848cd7e 49209s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t
1e6eb025 49210s,@COND_WXUNIV_0@,$COND_WXUNIV_0,;t t
a848cd7e
SC
49211s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
49212s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
49213s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
49214s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
49215s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
49216s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
49217s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
49218s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
ceec2216 49219s,@SHARED@,$SHARED,;t t
a848cd7e
SC
49220s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
49221s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
a848cd7e
SC
49222s,@USE_GUI@,$USE_GUI,;t t
49223s,@AFMINSTALL@,$AFMINSTALL,;t t
49224s,@WIN32INSTALL@,$WIN32INSTALL,;t t
49225s,@TOOLKIT@,$TOOLKIT,;t t
49226s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
a848cd7e 49227s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
ceec2216 49228s,@TOOLCHAIN_FULLNAME@,$TOOLCHAIN_FULLNAME,;t t
a848cd7e 49229s,@cross_compiling@,$cross_compiling,;t t
ceec2216
RL
49230s,@WIDGET_SET@,$WIDGET_SET,;t t
49231s,@WX_RELEASE@,$WX_RELEASE,;t t
49232s,@WX_VERSION@,$WX_VERSION,;t t
49233s,@WX_SUBVERSION@,$WX_SUBVERSION,;t t
49234s,@WX_CHARTYPE@,$WX_CHARTYPE,;t t
49235s,@WX_DEBUGTYPE@,$WX_DEBUGTYPE,;t t
5ff751d6
VZ
49236s,@WXCONFIG_CPPFLAGS@,$WXCONFIG_CPPFLAGS,;t t
49237s,@WXCONFIG_CFLAGS@,$WXCONFIG_CFLAGS,;t t
49238s,@WXCONFIG_CXXFLAGS@,$WXCONFIG_CXXFLAGS,;t t
49239s,@WXCONFIG_LIBS@,$WXCONFIG_LIBS,;t t
a848cd7e
SC
49240s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
49241s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
004ee6da 49242s,@WXCONFIG_RESFLAGS@,$WXCONFIG_RESFLAGS,;t t
ceec2216 49243s,@EXE_LINKER@,$EXE_LINKER,;t t
a848cd7e 49244s,@GUIDIST@,$GUIDIST,;t t
a848cd7e
SC
49245s,@DISTDIR@,$DISTDIR,;t t
49246s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
49247s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
a848cd7e
SC
49248s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
49249s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
49250s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
004ee6da 49251s,@RESCOMP@,$RESCOMP,;t t
a848cd7e
SC
49252s,@RESFLAGS@,$RESFLAGS,;t t
49253s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
49254s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
49255s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
49256s,@LIBWXMACRES@,$LIBWXMACRES,;t t
8ced02f6 49257s,@POSTLINK_COMMAND@,$POSTLINK_COMMAND,;t t
a848cd7e 49258s,@MACSETFILE@,$MACSETFILE,;t t
a848cd7e 49259s,@GCC@,$GCC,;t t
a848cd7e
SC
49260s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t
49261s,@LIBOBJS@,$LIBOBJS,;t t
49262s,@LTLIBOBJS@,$LTLIBOBJS,;t t
49263CEOF
49264
49265_ACEOF
49266
49267 cat >>$CONFIG_STATUS <<\_ACEOF
49268 # Split the substitutions into bite-sized pieces for seds with
49269 # small command number limits, like on Digital OSF/1 and HP-UX.
49270 ac_max_sed_lines=48
49271 ac_sed_frag=1 # Number of current file.
49272 ac_beg=1 # First line for current file.
49273 ac_end=$ac_max_sed_lines # Line after last line for current file.
49274 ac_more_lines=:
49275 ac_sed_cmds=
49276 while $ac_more_lines; do
49277 if test $ac_beg -gt 1; then
49278 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
49279 else
49280 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
49281 fi
49282 if test ! -s $tmp/subs.frag; then
49283 ac_more_lines=false
49284 else
49285 # The purpose of the label and of the branching condition is to
49286 # speed up the sed processing (if there are no `@' at all, there
49287 # is no need to browse any of the substitutions).
49288 # These are the two extra sed commands mentioned above.
49289 (echo ':t
49290 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
49291 if test -z "$ac_sed_cmds"; then
ac1cb8d3 49292 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e 49293 else
ac1cb8d3 49294 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e
SC
49295 fi
49296 ac_sed_frag=`expr $ac_sed_frag + 1`
49297 ac_beg=$ac_end
49298 ac_end=`expr $ac_end + $ac_max_sed_lines`
49299 fi
49300 done
49301 if test -z "$ac_sed_cmds"; then
49302 ac_sed_cmds=cat
49303 fi
49304fi # test -n "$CONFIG_FILES"
49305
49306_ACEOF
49307cat >>$CONFIG_STATUS <<\_ACEOF
49308for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
49309 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
49310 case $ac_file in
49311 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
49312 cat >$tmp/stdin
49313 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
49314 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 49315 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 49316 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
49317 * ) ac_file_in=$ac_file.in ;;
49318 esac
49319
49320 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
49321 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
49322$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
49323 X"$ac_file" : 'X\(//\)[^/]' \| \
49324 X"$ac_file" : 'X\(//\)$' \| \
49325 X"$ac_file" : 'X\(/\)' \| \
49326 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
49327echo X"$ac_file" |
49328 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
49329 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
49330 /^X\(\/\/\)$/{ s//\1/; q; }
49331 /^X\(\/\).*/{ s//\1/; q; }
49332 s/.*/./; q'`
49333 { if $as_mkdir_p; then
49334 mkdir -p "$ac_dir"
49335 else
49336 as_dir="$ac_dir"
49337 as_dirs=
49338 while test ! -d "$as_dir"; do
49339 as_dirs="$as_dir $as_dirs"
49340 as_dir=`(dirname "$as_dir") 2>/dev/null ||
49341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
49342 X"$as_dir" : 'X\(//\)[^/]' \| \
49343 X"$as_dir" : 'X\(//\)$' \| \
49344 X"$as_dir" : 'X\(/\)' \| \
49345 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
49346echo X"$as_dir" |
49347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
49348 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
49349 /^X\(\/\/\)$/{ s//\1/; q; }
49350 /^X\(\/\).*/{ s//\1/; q; }
49351 s/.*/./; q'`
49352 done
49353 test ! -n "$as_dirs" || mkdir $as_dirs
49354 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
49355echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
49356 { (exit 1); exit 1; }; }; }
49357
49358 ac_builddir=.
49359
49360if test "$ac_dir" != .; then
49361 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
49362 # A "../" for each directory in $ac_dir_suffix.
49363 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
49364else
49365 ac_dir_suffix= ac_top_builddir=
49366fi
49367
49368case $srcdir in
49369 .) # No --srcdir option. We are building in place.
49370 ac_srcdir=.
49371 if test -z "$ac_top_builddir"; then
49372 ac_top_srcdir=.
49373 else
49374 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
49375 fi ;;
49376 [\\/]* | ?:[\\/]* ) # Absolute path.
49377 ac_srcdir=$srcdir$ac_dir_suffix;
49378 ac_top_srcdir=$srcdir ;;
49379 *) # Relative path.
49380 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
49381 ac_top_srcdir=$ac_top_builddir$srcdir ;;
49382esac
ac1cb8d3
VS
49383
49384# Do not use `cd foo && pwd` to compute absolute paths, because
49385# the directories may not exist.
49386case `pwd` in
49387.) ac_abs_builddir="$ac_dir";;
49388*)
49389 case "$ac_dir" in
49390 .) ac_abs_builddir=`pwd`;;
49391 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
49392 *) ac_abs_builddir=`pwd`/"$ac_dir";;
49393 esac;;
49394esac
49395case $ac_abs_builddir in
49396.) ac_abs_top_builddir=${ac_top_builddir}.;;
49397*)
49398 case ${ac_top_builddir}. in
49399 .) ac_abs_top_builddir=$ac_abs_builddir;;
49400 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
49401 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
49402 esac;;
49403esac
49404case $ac_abs_builddir in
49405.) ac_abs_srcdir=$ac_srcdir;;
49406*)
49407 case $ac_srcdir in
49408 .) ac_abs_srcdir=$ac_abs_builddir;;
49409 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
49410 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
49411 esac;;
49412esac
49413case $ac_abs_builddir in
49414.) ac_abs_top_srcdir=$ac_top_srcdir;;
49415*)
49416 case $ac_top_srcdir in
49417 .) ac_abs_top_srcdir=$ac_abs_builddir;;
49418 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
49419 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
49420 esac;;
49421esac
a848cd7e
SC
49422
49423
49424 case $INSTALL in
49425 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
49426 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
49427 esac
49428
a848cd7e
SC
49429 # Let's still pretend it is `configure' which instantiates (i.e., don't
49430 # use $as_me), people would be surprised to read:
49431 # /* config.h. Generated by config.status. */
49432 if test x"$ac_file" = x-; then
49433 configure_input=
49434 else
49435 configure_input="$ac_file. "
49436 fi
49437 configure_input=$configure_input"Generated from `echo $ac_file_in |
ac1cb8d3 49438 sed 's,.*/,,'` by configure."
a848cd7e
SC
49439
49440 # First look for the input files in the build tree, otherwise in the
49441 # src tree.
49442 ac_file_inputs=`IFS=:
49443 for f in $ac_file_in; do
49444 case $f in
49445 -) echo $tmp/stdin ;;
49446 [\\/$]*)
ac1cb8d3
VS
49447 # Absolute (can't be DOS-style, as IFS=:)
49448 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
49449echo "$as_me: error: cannot find input file: $f" >&2;}
49450 { (exit 1); exit 1; }; }
ac1cb8d3 49451 echo "$f";;
a848cd7e 49452 *) # Relative
ac1cb8d3
VS
49453 if test -f "$f"; then
49454 # Build tree
49455 echo "$f"
49456 elif test -f "$srcdir/$f"; then
49457 # Source tree
49458 echo "$srcdir/$f"
49459 else
49460 # /dev/null tree
49461 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
49462echo "$as_me: error: cannot find input file: $f" >&2;}
49463 { (exit 1); exit 1; }; }
ac1cb8d3 49464 fi;;
a848cd7e
SC
49465 esac
49466 done` || { (exit 1); exit 1; }
f10e38c4
VZ
49467
49468 if test x"$ac_file" != x-; then
49469 { echo "$as_me:$LINENO: creating $ac_file" >&5
49470echo "$as_me: creating $ac_file" >&6;}
49471 rm -f "$ac_file"
49472 fi
a848cd7e
SC
49473_ACEOF
49474cat >>$CONFIG_STATUS <<_ACEOF
49475 sed "$ac_vpsub
49476$extrasub
49477_ACEOF
49478cat >>$CONFIG_STATUS <<\_ACEOF
49479:t
49480/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
49481s,@configure_input@,$configure_input,;t t
49482s,@srcdir@,$ac_srcdir,;t t
49483s,@abs_srcdir@,$ac_abs_srcdir,;t t
49484s,@top_srcdir@,$ac_top_srcdir,;t t
49485s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
49486s,@builddir@,$ac_builddir,;t t
49487s,@abs_builddir@,$ac_abs_builddir,;t t
49488s,@top_builddir@,$ac_top_builddir,;t t
49489s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
49490s,@INSTALL@,$ac_INSTALL,;t t
49491" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
49492 rm -f $tmp/stdin
49493 if test x"$ac_file" != x-; then
49494 mv $tmp/out $ac_file
49495 else
49496 cat $tmp/out
49497 rm -f $tmp/out
49498 fi
49499
ceec2216
RL
49500 # Run the commands associated with the file.
49501 case $ac_file in
49502 lib/wx/config/${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME} ;;
49503 lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ;;
49504 esac
a848cd7e
SC
49505done
49506_ACEOF
49507cat >>$CONFIG_STATUS <<\_ACEOF
49508
49509#
49510# CONFIG_HEADER section.
49511#
49512
49513# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
49514# NAME is the cpp macro being defined and VALUE is the value it is being given.
49515#
49516# ac_d sets the value in "#define NAME VALUE" lines.
ac1cb8d3
VS
49517ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
49518ac_dB='[ ].*$,\1#\2'
a848cd7e
SC
49519ac_dC=' '
49520ac_dD=',;t'
49521# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ac1cb8d3 49522ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
a848cd7e
SC
49523ac_uB='$,\1#\2define\3'
49524ac_uC=' '
49525ac_uD=',;t'
49526
49527for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
49528 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
49529 case $ac_file in
49530 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
49531 cat >$tmp/stdin
49532 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
49533 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 49534 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 49535 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
49536 * ) ac_file_in=$ac_file.in ;;
49537 esac
49538
49539 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
49540echo "$as_me: creating $ac_file" >&6;}
49541
49542 # First look for the input files in the build tree, otherwise in the
49543 # src tree.
49544 ac_file_inputs=`IFS=:
49545 for f in $ac_file_in; do
49546 case $f in
49547 -) echo $tmp/stdin ;;
49548 [\\/$]*)
ac1cb8d3
VS
49549 # Absolute (can't be DOS-style, as IFS=:)
49550 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
49551echo "$as_me: error: cannot find input file: $f" >&2;}
49552 { (exit 1); exit 1; }; }
ac1cb8d3
VS
49553 # Do quote $f, to prevent DOS paths from being IFS'd.
49554 echo "$f";;
a848cd7e 49555 *) # Relative
ac1cb8d3
VS
49556 if test -f "$f"; then
49557 # Build tree
49558 echo "$f"
49559 elif test -f "$srcdir/$f"; then
49560 # Source tree
49561 echo "$srcdir/$f"
49562 else
49563 # /dev/null tree
49564 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
49565echo "$as_me: error: cannot find input file: $f" >&2;}
49566 { (exit 1); exit 1; }; }
ac1cb8d3 49567 fi;;
a848cd7e
SC
49568 esac
49569 done` || { (exit 1); exit 1; }
49570 # Remove the trailing spaces.
ac1cb8d3 49571 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
a848cd7e
SC
49572
49573_ACEOF
49574
49575# Transform confdefs.h into two sed scripts, `conftest.defines' and
49576# `conftest.undefs', that substitutes the proper values into
49577# config.h.in to produce config.h. The first handles `#define'
49578# templates, and the second `#undef' templates.
49579# And first: Protect against being on the right side of a sed subst in
49580# config.status. Protect against being in an unquoted here document
49581# in config.status.
49582rm -f conftest.defines conftest.undefs
49583# Using a here document instead of a string reduces the quoting nightmare.
49584# Putting comments in sed scripts is not portable.
49585#
49586# `end' is used to avoid that the second main sed command (meant for
49587# 0-ary CPP macros) applies to n-ary macro definitions.
49588# See the Autoconf documentation for `clear'.
49589cat >confdef2sed.sed <<\_ACEOF
49590s/[\\&,]/\\&/g
49591s,[\\$`],\\&,g
49592t clear
49593: clear
ac1cb8d3 49594s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
a848cd7e 49595t end
ac1cb8d3 49596s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
a848cd7e
SC
49597: end
49598_ACEOF
49599# If some macros were called several times there might be several times
49600# the same #defines, which is useless. Nevertheless, we may not want to
49601# sort them, since we want the *last* AC-DEFINE to be honored.
49602uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
49603sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
49604rm -f confdef2sed.sed
49605
49606# This sed command replaces #undef with comments. This is necessary, for
49607# example, in the case of _POSIX_SOURCE, which is predefined and required
49608# on some systems where configure will not decide to define it.
49609cat >>conftest.undefs <<\_ACEOF
ac1cb8d3 49610s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
a848cd7e
SC
49611_ACEOF
49612
49613# Break up conftest.defines because some shells have a limit on the size
49614# of here documents, and old seds have small limits too (100 cmds).
49615echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
ac1cb8d3 49616echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
a848cd7e
SC
49617echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
49618echo ' :' >>$CONFIG_STATUS
49619rm -f conftest.tail
49620while grep . conftest.defines >/dev/null
49621do
49622 # Write a limited-size here document to $tmp/defines.sed.
49623 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
49624 # Speed up: don't consider the non `#define' lines.
ac1cb8d3 49625 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
a848cd7e
SC
49626 # Work around the forget-to-reset-the-flag bug.
49627 echo 't clr' >>$CONFIG_STATUS
49628 echo ': clr' >>$CONFIG_STATUS
49629 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
49630 echo 'CEOF
49631 sed -f $tmp/defines.sed $tmp/in >$tmp/out
49632 rm -f $tmp/in
49633 mv $tmp/out $tmp/in
49634' >>$CONFIG_STATUS
49635 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
49636 rm -f conftest.defines
49637 mv conftest.tail conftest.defines
49638done
49639rm -f conftest.defines
49640echo ' fi # grep' >>$CONFIG_STATUS
49641echo >>$CONFIG_STATUS
49642
49643# Break up conftest.undefs because some shells have a limit on the size
49644# of here documents, and old seds have small limits too (100 cmds).
49645echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
49646rm -f conftest.tail
49647while grep . conftest.undefs >/dev/null
49648do
49649 # Write a limited-size here document to $tmp/undefs.sed.
49650 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
49651 # Speed up: don't consider the non `#undef'
ac1cb8d3 49652 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
a848cd7e
SC
49653 # Work around the forget-to-reset-the-flag bug.
49654 echo 't clr' >>$CONFIG_STATUS
49655 echo ': clr' >>$CONFIG_STATUS
49656 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
49657 echo 'CEOF
49658 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
49659 rm -f $tmp/in
49660 mv $tmp/out $tmp/in
49661' >>$CONFIG_STATUS
49662 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
49663 rm -f conftest.undefs
49664 mv conftest.tail conftest.undefs
49665done
49666rm -f conftest.undefs
49667
49668cat >>$CONFIG_STATUS <<\_ACEOF
49669 # Let's still pretend it is `configure' which instantiates (i.e., don't
49670 # use $as_me), people would be surprised to read:
49671 # /* config.h. Generated by config.status. */
49672 if test x"$ac_file" = x-; then
49673 echo "/* Generated by configure. */" >$tmp/config.h
49674 else
49675 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
49676 fi
49677 cat $tmp/in >>$tmp/config.h
49678 rm -f $tmp/in
49679 if test x"$ac_file" != x-; then
49680 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
49681 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
49682echo "$as_me: $ac_file is unchanged" >&6;}
49683 else
49684 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
49685$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
49686 X"$ac_file" : 'X\(//\)[^/]' \| \
49687 X"$ac_file" : 'X\(//\)$' \| \
49688 X"$ac_file" : 'X\(/\)' \| \
49689 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
49690echo X"$ac_file" |
49691 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
49692 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
49693 /^X\(\/\/\)$/{ s//\1/; q; }
49694 /^X\(\/\).*/{ s//\1/; q; }
49695 s/.*/./; q'`
49696 { if $as_mkdir_p; then
49697 mkdir -p "$ac_dir"
49698 else
49699 as_dir="$ac_dir"
49700 as_dirs=
49701 while test ! -d "$as_dir"; do
49702 as_dirs="$as_dir $as_dirs"
49703 as_dir=`(dirname "$as_dir") 2>/dev/null ||
49704$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
49705 X"$as_dir" : 'X\(//\)[^/]' \| \
49706 X"$as_dir" : 'X\(//\)$' \| \
49707 X"$as_dir" : 'X\(/\)' \| \
49708 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
49709echo X"$as_dir" |
49710 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
49711 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
49712 /^X\(\/\/\)$/{ s//\1/; q; }
49713 /^X\(\/\).*/{ s//\1/; q; }
49714 s/.*/./; q'`
49715 done
49716 test ! -n "$as_dirs" || mkdir $as_dirs
49717 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
49718echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
49719 { (exit 1); exit 1; }; }; }
49720
49721 rm -f $ac_file
49722 mv $tmp/config.h $ac_file
49723 fi
49724 else
49725 cat $tmp/config.h
49726 rm -f $tmp/config.h
49727 fi
49728done
49729_ACEOF
49730cat >>$CONFIG_STATUS <<\_ACEOF
49731
49732#
49733# CONFIG_COMMANDS section.
49734#
49735for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
49736 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
49737 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
49738 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
49739$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
49740 X"$ac_dest" : 'X\(//\)[^/]' \| \
49741 X"$ac_dest" : 'X\(//\)$' \| \
49742 X"$ac_dest" : 'X\(/\)' \| \
49743 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
49744echo X"$ac_dest" |
49745 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
49746 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
49747 /^X\(\/\/\)$/{ s//\1/; q; }
49748 /^X\(\/\).*/{ s//\1/; q; }
49749 s/.*/./; q'`
ac1cb8d3
VS
49750 { if $as_mkdir_p; then
49751 mkdir -p "$ac_dir"
49752 else
49753 as_dir="$ac_dir"
49754 as_dirs=
49755 while test ! -d "$as_dir"; do
49756 as_dirs="$as_dir $as_dirs"
49757 as_dir=`(dirname "$as_dir") 2>/dev/null ||
49758$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
49759 X"$as_dir" : 'X\(//\)[^/]' \| \
49760 X"$as_dir" : 'X\(//\)$' \| \
49761 X"$as_dir" : 'X\(/\)' \| \
49762 . : '\(.\)' 2>/dev/null ||
49763echo X"$as_dir" |
49764 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
49765 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
49766 /^X\(\/\/\)$/{ s//\1/; q; }
49767 /^X\(\/\).*/{ s//\1/; q; }
49768 s/.*/./; q'`
49769 done
49770 test ! -n "$as_dirs" || mkdir $as_dirs
49771 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
49772echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
49773 { (exit 1); exit 1; }; }; }
49774
a848cd7e
SC
49775 ac_builddir=.
49776
49777if test "$ac_dir" != .; then
49778 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
49779 # A "../" for each directory in $ac_dir_suffix.
49780 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
49781else
49782 ac_dir_suffix= ac_top_builddir=
49783fi
49784
49785case $srcdir in
49786 .) # No --srcdir option. We are building in place.
49787 ac_srcdir=.
49788 if test -z "$ac_top_builddir"; then
49789 ac_top_srcdir=.
49790 else
49791 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
49792 fi ;;
49793 [\\/]* | ?:[\\/]* ) # Absolute path.
49794 ac_srcdir=$srcdir$ac_dir_suffix;
49795 ac_top_srcdir=$srcdir ;;
49796 *) # Relative path.
49797 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
49798 ac_top_srcdir=$ac_top_builddir$srcdir ;;
49799esac
ac1cb8d3
VS
49800
49801# Do not use `cd foo && pwd` to compute absolute paths, because
49802# the directories may not exist.
49803case `pwd` in
49804.) ac_abs_builddir="$ac_dir";;
49805*)
49806 case "$ac_dir" in
49807 .) ac_abs_builddir=`pwd`;;
49808 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
49809 *) ac_abs_builddir=`pwd`/"$ac_dir";;
49810 esac;;
49811esac
49812case $ac_abs_builddir in
49813.) ac_abs_top_builddir=${ac_top_builddir}.;;
49814*)
49815 case ${ac_top_builddir}. in
49816 .) ac_abs_top_builddir=$ac_abs_builddir;;
49817 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
49818 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
49819 esac;;
49820esac
49821case $ac_abs_builddir in
49822.) ac_abs_srcdir=$ac_srcdir;;
49823*)
49824 case $ac_srcdir in
49825 .) ac_abs_srcdir=$ac_abs_builddir;;
49826 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
49827 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
49828 esac;;
49829esac
49830case $ac_abs_builddir in
49831.) ac_abs_top_srcdir=$ac_top_srcdir;;
49832*)
49833 case $ac_top_srcdir in
49834 .) ac_abs_top_srcdir=$ac_abs_builddir;;
49835 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
49836 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
49837 esac;;
49838esac
a848cd7e
SC
49839
49840
49841 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
49842echo "$as_me: executing $ac_dest commands" >&6;}
49843 case $ac_dest in
5c60e845
MW
49844 rcdefs.h )
49845 mkdir -p $outdir &&
49846 $CPP $infile | sed 's/^# *[1-9].*//;s/^ *//;/./,/^$/!d' > $outdir/rcdefs.h
49847 ;;
ceec2216
RL
49848 wx-config ) rm -f wx-config
49849 ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
49850 ;;
a848cd7e
SC
49851 esac
49852done
49853_ACEOF
49854
49855cat >>$CONFIG_STATUS <<\_ACEOF
49856
49857{ (exit 0); exit 0; }
49858_ACEOF
49859chmod +x $CONFIG_STATUS
49860ac_clean_files=$ac_clean_files_save
49861
49862
49863# configure is writing to config.log, and then calls config.status.
49864# config.status does its own redirection, appending to config.log.
49865# Unfortunately, on DOS this fails, as config.log is still kept open
49866# by configure, so config.status won't be able to write to it; its
49867# output is simply discarded. So we exec the FD to /dev/null,
49868# effectively closing config.log, so it can be properly (re)opened and
49869# appended to by config.status. When coming back to configure, we
49870# need to make the FD available again.
49871if test "$no_create" != yes; then
49872 ac_cs_success=:
49873 ac_config_status_args=
49874 test "$silent" = yes &&
49875 ac_config_status_args="$ac_config_status_args --quiet"
49876 exec 5>/dev/null
49877 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
49878 exec 5>>config.log
49879 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
49880 # would make configure fail if this is the last instruction.
49881 $ac_cs_success || { (exit 1); exit 1; }
49882fi
49883
49884#
49885# CONFIG_SUBDIRS section.
49886#
49887if test "$no_recursion" != yes; then
49888
49889 # Remove --cache-file and --srcdir arguments so they do not pile up.
49890 ac_sub_configure_args=
49891 ac_prev=
49892 for ac_arg in $ac_configure_args; do
49893 if test -n "$ac_prev"; then
49894 ac_prev=
49895 continue
49896 fi
49897 case $ac_arg in
49898 -cache-file | --cache-file | --cache-fil | --cache-fi \
49899 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
49900 ac_prev=cache_file ;;
49901 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
49902 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
49903 | --c=*)
49904 ;;
49905 --config-cache | -C)
49906 ;;
49907 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
49908 ac_prev=srcdir ;;
49909 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
49910 ;;
49911 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
49912 ac_prev=prefix ;;
49913 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
49914 ;;
49915 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
49916 esac
49917 done
49918
49919 # Always prepend --prefix to ensure using the same prefix
49920 # in subdir configurations.
49921 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
49922
49923 ac_popdir=`pwd`
49924 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
49925
49926 # Do not complain, so a configure script can configure whichever
49927 # parts of a large source tree are present.
49928 test -d $srcdir/$ac_dir || continue
49929
49930 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
49931echo "$as_me: configuring in $ac_dir" >&6;}
49932 { if $as_mkdir_p; then
49933 mkdir -p "$ac_dir"
49934 else
49935 as_dir="$ac_dir"
49936 as_dirs=
49937 while test ! -d "$as_dir"; do
49938 as_dirs="$as_dir $as_dirs"
49939 as_dir=`(dirname "$as_dir") 2>/dev/null ||
49940$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
49941 X"$as_dir" : 'X\(//\)[^/]' \| \
49942 X"$as_dir" : 'X\(//\)$' \| \
49943 X"$as_dir" : 'X\(/\)' \| \
49944 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
49945echo X"$as_dir" |
49946 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
49947 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
49948 /^X\(\/\/\)$/{ s//\1/; q; }
49949 /^X\(\/\).*/{ s//\1/; q; }
49950 s/.*/./; q'`
49951 done
49952 test ! -n "$as_dirs" || mkdir $as_dirs
49953 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
49954echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
49955 { (exit 1); exit 1; }; }; }
49956
49957 ac_builddir=.
49958
49959if test "$ac_dir" != .; then
49960 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
49961 # A "../" for each directory in $ac_dir_suffix.
49962 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
49963else
49964 ac_dir_suffix= ac_top_builddir=
49965fi
49966
49967case $srcdir in
49968 .) # No --srcdir option. We are building in place.
49969 ac_srcdir=.
49970 if test -z "$ac_top_builddir"; then
49971 ac_top_srcdir=.
49972 else
49973 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
49974 fi ;;
49975 [\\/]* | ?:[\\/]* ) # Absolute path.
49976 ac_srcdir=$srcdir$ac_dir_suffix;
49977 ac_top_srcdir=$srcdir ;;
49978 *) # Relative path.
49979 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
49980 ac_top_srcdir=$ac_top_builddir$srcdir ;;
49981esac
ac1cb8d3
VS
49982
49983# Do not use `cd foo && pwd` to compute absolute paths, because
49984# the directories may not exist.
49985case `pwd` in
49986.) ac_abs_builddir="$ac_dir";;
49987*)
49988 case "$ac_dir" in
49989 .) ac_abs_builddir=`pwd`;;
49990 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
49991 *) ac_abs_builddir=`pwd`/"$ac_dir";;
49992 esac;;
49993esac
49994case $ac_abs_builddir in
49995.) ac_abs_top_builddir=${ac_top_builddir}.;;
49996*)
49997 case ${ac_top_builddir}. in
49998 .) ac_abs_top_builddir=$ac_abs_builddir;;
49999 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
50000 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
50001 esac;;
50002esac
50003case $ac_abs_builddir in
50004.) ac_abs_srcdir=$ac_srcdir;;
50005*)
50006 case $ac_srcdir in
50007 .) ac_abs_srcdir=$ac_abs_builddir;;
50008 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
50009 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
50010 esac;;
50011esac
50012case $ac_abs_builddir in
50013.) ac_abs_top_srcdir=$ac_top_srcdir;;
50014*)
50015 case $ac_top_srcdir in
50016 .) ac_abs_top_srcdir=$ac_abs_builddir;;
50017 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
50018 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
50019 esac;;
50020esac
a848cd7e
SC
50021
50022
50023 cd $ac_dir
50024
50025 # Check for guested configure; otherwise get Cygnus style configure.
50026 if test -f $ac_srcdir/configure.gnu; then
50027 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
50028 elif test -f $ac_srcdir/configure; then
50029 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
50030 elif test -f $ac_srcdir/configure.in; then
50031 ac_sub_configure=$ac_configure
50032 else
50033 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
50034echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
50035 ac_sub_configure=
50036 fi
50037
50038 # The recursion is here.
50039 if test -n "$ac_sub_configure"; then
50040 # Make the cache file name correct relative to the subdirectory.
50041 case $cache_file in
50042 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
50043 *) # Relative path.
ac1cb8d3 50044 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
a848cd7e
SC
50045 esac
50046
50047 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
50048echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
50049 # The eval makes quoting arguments work.
50050 eval $ac_sub_configure $ac_sub_configure_args \
ac1cb8d3
VS
50051 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
50052 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
a848cd7e
SC
50053echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
50054 { (exit 1); exit 1; }; }
50055 fi
50056
f10e38c4 50057 cd "$ac_popdir"
a848cd7e
SC
50058 done
50059fi
50060
50061
50062echo
77ffb593 50063echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
a848cd7e 50064echo ""
4d4ff94c 50065echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_USER:-base only}"
77ffb593 50066echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
a848cd7e 50067
77ffb593
JS
50068echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}"
50069echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}"
50070echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
a848cd7e 50071
77ffb593 50072echo " What level of wxWidgets compatibility should be enabled?"
dee1a63f
MB
50073echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-no}"
50074echo " wxWidgets 2.6 ${WXWIN_COMPATIBILITY_2_6:-yes}"
a848cd7e 50075
77ffb593 50076echo " Which libraries should wxWidgets use?"
a848cd7e
SC
50077echo " jpeg ${wxUSE_LIBJPEG-none}"
50078echo " png ${wxUSE_LIBPNG-none}"
50079echo " regex ${wxUSE_REGEX}"
50080echo " tiff ${wxUSE_LIBTIFF-none}"
50081if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
50082echo " xpm ${wxUSE_LIBXPM-none}"
50083fi
50084echo " zlib ${wxUSE_ZLIB}"
50085echo " odbc ${wxUSE_ODBC}"
50086echo " expat ${wxUSE_EXPAT}"
50087echo " libmspack ${wxUSE_LIBMSPACK}"
50088echo " sdl ${wxUSE_LIBSDL}"
6d1ce868 50089echo " gnomeprint ${wxUSE_LIBGNOMEPRINT-none}"
3565d135 50090echo " hildon ${wxUSE_LIBHILDON-none}"
a848cd7e
SC
50091
50092echo ""
50093