]> git.saurik.com Git - wxWidgets.git/blame - configure
wxComboControl and wxOwnerDrawnComboBox (patch 1479938)
[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"
2b850ae1 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 GNOMEVFS_CFLAGS GNOMEVFS_LIBS HILDON_CFLAGS HILDON_LIBS GST_CFLAGS GST_LIBS CORE_BASE_LIBS CORE_GUI_LIBS wxUSE_ZLIB wxUSE_REGEX wxUSE_EXPAT wxUSE_ODBC wxUSE_LIBJPEG wxUSE_LIBPNG wxUSE_LIBTIFF VENDOR OFFICIAL_BUILD WX_FLAVOUR WX_LIB_FLAVOUR WXUNIV MONOLITHIC USE_PLUGINS EXTRALIBS EXTRALIBS_XML EXTRALIBS_HTML EXTRALIBS_ODBC EXTRALIBS_GUI EXTRALIBS_OPENGL EXTRALIBS_SDL WITH_PLUGIN_SDL EXTRALIBS_GNOMEPRINT EXTRALIBS_GNOMEVFS EXTRALIBS_HILDON UNICODE BUILD DEBUG_INFO DEBUG_FLAG TOOLKIT_LOWERCASE TOOLKIT_VERSION SAMPLES_RPATH_FLAG SAMPLES_RPATH_POSTLINK HOST_SUFFIX CPPUNIT_CFLAGS CPPUNIT_LIBS SET_MAKE MAKE_SET NM ac_ct_NM INSTALL_DIR LDFLAGS_GUI PLATFORM_UNIX PLATFORM_WIN32 PLATFORM_MSDOS PLATFORM_MAC PLATFORM_MACOS PLATFORM_MACOSX PLATFORM_OS2 PLATFORM_BEOS SO_SUFFIX SO_SUFFIX_MODULE DLLIMP_SUFFIX LIBPREFIX LIBEXT DLLPREFIX DLLPREFIX_MODULE dlldir AIX_CXX_LD SHARED_LD_CC SHARED_LD_CXX SHARED_LD_MODULE_CC SHARED_LD_MODULE_CXX PIC_FLAG WINDOWS_IMPLIB USE_SOVERSION USE_SOVERLINUX USE_SOVERSOLARIS USE_SOVERCYGWIN USE_MACVERSION USE_SOSYMLINKS SONAME_FLAG DEPS_TRACKING GCC_PCH ICC_PCH COND_BUILD_DEBUG COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT COND_BUILD_DEBUG_UNICODE_0 COND_BUILD_DEBUG_UNICODE_1 COND_BUILD_RELEASE COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT COND_BUILD_RELEASE_UNICODE_0 COND_BUILD_RELEASE_UNICODE_1 COND_DEBUG_FLAG_1 COND_DEBUG_INFO_0 COND_DEBUG_INFO_1 COND_DEPS_TRACKING_0 COND_DEPS_TRACKING_1 COND_GCC_PCH_1 COND_ICC_PCH_1 COND_MONOLITHIC_0 COND_MONOLITHIC_0_SHARED_0 COND_MONOLITHIC_0_SHARED_0_USE_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
2b850ae1
RR
1083 --with-gnomeprint use GNOME print for printing under GNOME
1084 --with-gnomevfs use GNOME VFS for associating MIME types
3565d135 1085 --with-hildon use Hildon framework for Nokia 770
a848cd7e
SC
1086 --with-opengl use OpenGL (or Mesa)
1087 --with-dmalloc use dmalloc library (http://dmalloc.com/)
1088 --with-regex enable support for wxRegEx class
1089 --with-zlib use zlib for LZW compression
1090 --with-odbc use the IODBC and wxODBC classes
1091 --with-expat enable XML support using expat parser
ceec2216 1092 --with-flavour=NAME specify a name to identify this build
a848cd7e
SC
1093 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1094 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1095 --with-x use the X Window System
1096 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1097 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1098 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1099 --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
1100 --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
1101
1102Some influential environment variables:
dcc1b6ad
VS
1103 CC C compiler command
1104 CFLAGS C compiler flags
1105 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1106 nonstandard directory <lib dir>
1107 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1108 headers in a nonstandard directory <include dir>
1109 CPP C preprocessor
1110 CXX C++ compiler command
1111 CXXFLAGS C++ compiler flags
1112 CXXCPP C++ preprocessor
a848cd7e
SC
1113
1114Use these variables to override the choices made by `configure' or to help
1115it to find libraries and programs with nonstandard names/locations.
1116
77ffb593 1117Report bugs to <wx-dev@lists.wxwidgets.org>.
a848cd7e
SC
1118_ACEOF
1119fi
1120
1121if test "$ac_init_help" = "recursive"; then
1122 # If there are subdirs, report their specific --help.
1123 ac_popdir=`pwd`
1124 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1125 test -d $ac_dir || continue
1126 ac_builddir=.
1127
1128if test "$ac_dir" != .; then
1129 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1130 # A "../" for each directory in $ac_dir_suffix.
1131 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1132else
1133 ac_dir_suffix= ac_top_builddir=
1134fi
1135
1136case $srcdir in
1137 .) # No --srcdir option. We are building in place.
1138 ac_srcdir=.
1139 if test -z "$ac_top_builddir"; then
1140 ac_top_srcdir=.
1141 else
1142 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1143 fi ;;
1144 [\\/]* | ?:[\\/]* ) # Absolute path.
1145 ac_srcdir=$srcdir$ac_dir_suffix;
1146 ac_top_srcdir=$srcdir ;;
1147 *) # Relative path.
1148 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1149 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1150esac
ac1cb8d3
VS
1151
1152# Do not use `cd foo && pwd` to compute absolute paths, because
1153# the directories may not exist.
1154case `pwd` in
1155.) ac_abs_builddir="$ac_dir";;
1156*)
1157 case "$ac_dir" in
1158 .) ac_abs_builddir=`pwd`;;
1159 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1160 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1161 esac;;
1162esac
1163case $ac_abs_builddir in
1164.) ac_abs_top_builddir=${ac_top_builddir}.;;
1165*)
1166 case ${ac_top_builddir}. in
1167 .) ac_abs_top_builddir=$ac_abs_builddir;;
1168 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1169 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1170 esac;;
1171esac
1172case $ac_abs_builddir in
1173.) ac_abs_srcdir=$ac_srcdir;;
1174*)
1175 case $ac_srcdir in
1176 .) ac_abs_srcdir=$ac_abs_builddir;;
1177 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1178 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1179 esac;;
1180esac
1181case $ac_abs_builddir in
1182.) ac_abs_top_srcdir=$ac_top_srcdir;;
1183*)
1184 case $ac_top_srcdir in
1185 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1186 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1187 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1188 esac;;
1189esac
a848cd7e
SC
1190
1191 cd $ac_dir
1192 # Check for guested configure; otherwise get Cygnus style configure.
1193 if test -f $ac_srcdir/configure.gnu; then
1194 echo
1195 $SHELL $ac_srcdir/configure.gnu --help=recursive
1196 elif test -f $ac_srcdir/configure; then
1197 echo
1198 $SHELL $ac_srcdir/configure --help=recursive
1199 elif test -f $ac_srcdir/configure.ac ||
ac1cb8d3 1200 test -f $ac_srcdir/configure.in; then
a848cd7e
SC
1201 echo
1202 $ac_configure --help
1203 else
1204 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1205 fi
5d7b7554 1206 cd "$ac_popdir"
a848cd7e
SC
1207 done
1208fi
1209
1210test -n "$ac_init_help" && exit 0
1211if $ac_init_version; then
1212 cat <<\_ACEOF
dd8df4fc 1213wxWidgets configure 2.7.0
ac1cb8d3 1214generated by GNU Autoconf 2.59
a848cd7e 1215
ac1cb8d3 1216Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
1217This configure script is free software; the Free Software Foundation
1218gives unlimited permission to copy, distribute and modify it.
1219_ACEOF
1220 exit 0
1221fi
1222exec 5>config.log
1223cat >&5 <<_ACEOF
1224This file contains any messages produced by compilers while
1225running configure, to aid debugging if configure makes a mistake.
1226
dd8df4fc 1227It was created by wxWidgets $as_me 2.7.0, which was
ac1cb8d3 1228generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
1229
1230 $ $0 $@
1231
1232_ACEOF
1233{
1234cat <<_ASUNAME
1235## --------- ##
1236## Platform. ##
1237## --------- ##
1238
1239hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1240uname -m = `(uname -m) 2>/dev/null || echo unknown`
1241uname -r = `(uname -r) 2>/dev/null || echo unknown`
1242uname -s = `(uname -s) 2>/dev/null || echo unknown`
1243uname -v = `(uname -v) 2>/dev/null || echo unknown`
1244
1245/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1246/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1247
1248/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1249/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1250/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1251hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1252/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1253/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1254/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1255
1256_ASUNAME
1257
1258as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1259for as_dir in $PATH
1260do
1261 IFS=$as_save_IFS
1262 test -z "$as_dir" && as_dir=.
1263 echo "PATH: $as_dir"
1264done
1265
1266} >&5
1267
1268cat >&5 <<_ACEOF
1269
1270
1271## ----------- ##
1272## Core tests. ##
1273## ----------- ##
1274
1275_ACEOF
1276
1277
1278# Keep a trace of the command line.
1279# Strip out --no-create and --no-recursion so they do not pile up.
1280# Strip out --silent because we don't want to record it for future runs.
1281# Also quote any args containing shell meta-characters.
1282# Make two passes to allow for proper duplicate-argument suppression.
1283ac_configure_args=
1284ac_configure_args0=
1285ac_configure_args1=
1286ac_sep=
1287ac_must_keep_next=false
1288for ac_pass in 1 2
1289do
1290 for ac_arg
1291 do
1292 case $ac_arg in
1293 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1294 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1295 | -silent | --silent | --silen | --sile | --sil)
1296 continue ;;
1297 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1298 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1299 esac
1300 case $ac_pass in
1301 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1302 2)
1303 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1304 if test $ac_must_keep_next = true; then
ac1cb8d3 1305 ac_must_keep_next=false # Got value, back to normal.
a848cd7e 1306 else
ac1cb8d3
VS
1307 case $ac_arg in
1308 *=* | --config-cache | -C | -disable-* | --disable-* \
1309 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1310 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1311 | -with-* | --with-* | -without-* | --without-* | --x)
1312 case "$ac_configure_args0 " in
1313 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1314 esac
1315 ;;
1316 -* ) ac_must_keep_next=true ;;
1317 esac
a848cd7e
SC
1318 fi
1319 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1320 # Get rid of the leading space.
1321 ac_sep=" "
1322 ;;
1323 esac
1324 done
1325done
1326$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1327$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1328
1329# When interrupted or exit'd, cleanup temporary files, and complete
1330# config.log. We remove comments because anyway the quotes in there
1331# would cause problems or look ugly.
1332# WARNING: Be sure not to use single quotes in there, as some shells,
1333# such as our DU 5.0 friend, will then `close' the trap.
1334trap 'exit_status=$?
1335 # Save into config.log some information that might help in debugging.
1336 {
1337 echo
1338
1339 cat <<\_ASBOX
1340## ---------------- ##
1341## Cache variables. ##
1342## ---------------- ##
1343_ASBOX
1344 echo
1345 # The following way of writing the cache mishandles newlines in values,
1346{
1347 (set) 2>&1 |
1348 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1349 *ac_space=\ *)
1350 sed -n \
ac1cb8d3
VS
1351 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1352 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
a848cd7e
SC
1353 ;;
1354 *)
1355 sed -n \
ac1cb8d3 1356 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
1357 ;;
1358 esac;
1359}
1360 echo
1361
1362 cat <<\_ASBOX
1363## ----------------- ##
1364## Output variables. ##
1365## ----------------- ##
1366_ASBOX
1367 echo
1368 for ac_var in $ac_subst_vars
1369 do
1370 eval ac_val=$`echo $ac_var`
1371 echo "$ac_var='"'"'$ac_val'"'"'"
1372 done | sort
1373 echo
1374
1375 if test -n "$ac_subst_files"; then
1376 cat <<\_ASBOX
1377## ------------- ##
1378## Output files. ##
1379## ------------- ##
1380_ASBOX
1381 echo
1382 for ac_var in $ac_subst_files
1383 do
1384 eval ac_val=$`echo $ac_var`
ac1cb8d3 1385 echo "$ac_var='"'"'$ac_val'"'"'"
a848cd7e
SC
1386 done | sort
1387 echo
1388 fi
1389
1390 if test -s confdefs.h; then
1391 cat <<\_ASBOX
1392## ----------- ##
1393## confdefs.h. ##
1394## ----------- ##
1395_ASBOX
1396 echo
1397 sed "/^$/d" confdefs.h | sort
1398 echo
1399 fi
1400 test "$ac_signal" != 0 &&
1401 echo "$as_me: caught signal $ac_signal"
1402 echo "$as_me: exit $exit_status"
1403 } >&5
ac1cb8d3 1404 rm -f core *.core &&
a848cd7e
SC
1405 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1406 exit $exit_status
1407 ' 0
1408for ac_signal in 1 2 13 15; do
1409 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1410done
1411ac_signal=0
1412
1413# confdefs.h avoids OS command line length limits that DEFS can exceed.
1414rm -rf conftest* confdefs.h
1415# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1416echo >confdefs.h
1417
1418# Predefined preprocessor variables.
1419
1420cat >>confdefs.h <<_ACEOF
1421#define PACKAGE_NAME "$PACKAGE_NAME"
1422_ACEOF
1423
1424
1425cat >>confdefs.h <<_ACEOF
1426#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1427_ACEOF
1428
1429
1430cat >>confdefs.h <<_ACEOF
1431#define PACKAGE_VERSION "$PACKAGE_VERSION"
1432_ACEOF
1433
1434
1435cat >>confdefs.h <<_ACEOF
1436#define PACKAGE_STRING "$PACKAGE_STRING"
1437_ACEOF
1438
1439
1440cat >>confdefs.h <<_ACEOF
1441#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1442_ACEOF
1443
1444
1445# Let the site file select an alternate cache file if it wants to.
1446# Prefer explicitly selected file to automatically selected ones.
1447if test -z "$CONFIG_SITE"; then
1448 if test "x$prefix" != xNONE; then
1449 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1450 else
1451 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1452 fi
1453fi
1454for ac_site_file in $CONFIG_SITE; do
1455 if test -r "$ac_site_file"; then
1456 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1457echo "$as_me: loading site script $ac_site_file" >&6;}
1458 sed 's/^/| /' "$ac_site_file" >&5
1459 . "$ac_site_file"
1460 fi
1461done
1462
1463if test -r "$cache_file"; then
1464 # Some versions of bash will fail to source /dev/null (special
1465 # files actually), so we avoid doing that.
1466 if test -f "$cache_file"; then
1467 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1468echo "$as_me: loading cache $cache_file" >&6;}
1469 case $cache_file in
1470 [\\/]* | ?:[\\/]* ) . $cache_file;;
1471 *) . ./$cache_file;;
1472 esac
1473 fi
1474else
1475 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1476echo "$as_me: creating cache $cache_file" >&6;}
1477 >$cache_file
1478fi
1479
1480# Check that the precious variables saved in the cache have kept the same
1481# value.
1482ac_cache_corrupted=false
1483for ac_var in `(set) 2>&1 |
ac1cb8d3 1484 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
a848cd7e
SC
1485 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1486 eval ac_new_set=\$ac_env_${ac_var}_set
1487 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1488 eval ac_new_val="\$ac_env_${ac_var}_value"
1489 case $ac_old_set,$ac_new_set in
1490 set,)
1491 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1492echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1493 ac_cache_corrupted=: ;;
1494 ,set)
1495 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1496echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1497 ac_cache_corrupted=: ;;
1498 ,);;
1499 *)
1500 if test "x$ac_old_val" != "x$ac_new_val"; then
ac1cb8d3 1501 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
a848cd7e 1502echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
ac1cb8d3 1503 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
a848cd7e 1504echo "$as_me: former value: $ac_old_val" >&2;}
ac1cb8d3 1505 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
a848cd7e 1506echo "$as_me: current value: $ac_new_val" >&2;}
ac1cb8d3 1507 ac_cache_corrupted=:
a848cd7e
SC
1508 fi;;
1509 esac
1510 # Pass precious variables to config.status.
1511 if test "$ac_new_set" = set; then
1512 case $ac_new_val in
1513 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1514 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1515 *) ac_arg=$ac_var=$ac_new_val ;;
1516 esac
1517 case " $ac_configure_args " in
1518 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1519 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1520 esac
1521 fi
1522done
1523if $ac_cache_corrupted; then
1524 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1525echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1526 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1527echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1528 { (exit 1); exit 1; }; }
1529fi
1530
1531ac_ext=c
1532ac_cpp='$CPP $CPPFLAGS'
1533ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1534ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1535ac_compiler_gnu=$ac_cv_c_compiler_gnu
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
1565
1566ac_aux_dir=
1567for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1568 if test -f $ac_dir/install-sh; then
1569 ac_aux_dir=$ac_dir
1570 ac_install_sh="$ac_aux_dir/install-sh -c"
1571 break
1572 elif test -f $ac_dir/install.sh; then
1573 ac_aux_dir=$ac_dir
1574 ac_install_sh="$ac_aux_dir/install.sh -c"
1575 break
1576 elif test -f $ac_dir/shtool; then
1577 ac_aux_dir=$ac_dir
1578 ac_install_sh="$ac_aux_dir/shtool install -c"
1579 break
1580 fi
1581done
1582if test -z "$ac_aux_dir"; then
1583 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1584echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1585 { (exit 1); exit 1; }; }
1586fi
1587ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1588ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1589ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1590
1591# Make sure we can run config.sub.
1592$ac_config_sub sun4 >/dev/null 2>&1 ||
1593 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1594echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1595 { (exit 1); exit 1; }; }
1596
1597echo "$as_me:$LINENO: checking build system type" >&5
1598echo $ECHO_N "checking build system type... $ECHO_C" >&6
1599if test "${ac_cv_build+set}" = set; then
1600 echo $ECHO_N "(cached) $ECHO_C" >&6
1601else
1602 ac_cv_build_alias=$build_alias
1603test -z "$ac_cv_build_alias" &&
1604 ac_cv_build_alias=`$ac_config_guess`
1605test -z "$ac_cv_build_alias" &&
1606 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1607echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1608 { (exit 1); exit 1; }; }
1609ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1610 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1611echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1612 { (exit 1); exit 1; }; }
1613
1614fi
1615echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1616echo "${ECHO_T}$ac_cv_build" >&6
1617build=$ac_cv_build
1618build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1619build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1620build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1621
1622
1623echo "$as_me:$LINENO: checking host system type" >&5
1624echo $ECHO_N "checking host system type... $ECHO_C" >&6
1625if test "${ac_cv_host+set}" = set; then
1626 echo $ECHO_N "(cached) $ECHO_C" >&6
1627else
1628 ac_cv_host_alias=$host_alias
1629test -z "$ac_cv_host_alias" &&
1630 ac_cv_host_alias=$ac_cv_build_alias
1631ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1632 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1633echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1634 { (exit 1); exit 1; }; }
1635
1636fi
1637echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1638echo "${ECHO_T}$ac_cv_host" >&6
1639host=$ac_cv_host
1640host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1641host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1642host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1643
1644
1645echo "$as_me:$LINENO: checking target system type" >&5
1646echo $ECHO_N "checking target system type... $ECHO_C" >&6
1647if test "${ac_cv_target+set}" = set; then
1648 echo $ECHO_N "(cached) $ECHO_C" >&6
1649else
1650 ac_cv_target_alias=$target_alias
1651test "x$ac_cv_target_alias" = "x" &&
1652 ac_cv_target_alias=$ac_cv_host_alias
1653ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1654 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1655echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1656 { (exit 1); exit 1; }; }
1657
1658fi
1659echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1660echo "${ECHO_T}$ac_cv_target" >&6
1661target=$ac_cv_target
1662target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1663target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1664target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1665
1666
1667# The aliases save the names the user supplied, while $host etc.
1668# will get canonicalized.
1669test -n "$target_alias" &&
1670 test "$program_prefix$program_suffix$program_transform_name" = \
1671 NONENONEs,x,x, &&
1672 program_prefix=${target_alias}-
1673
1674
1675
ceec2216 1676wx_major_version_number=2
dd8df4fc
VZ
1677wx_minor_version_number=7
1678wx_release_number=0
1679wx_subrelease_number=0
a848cd7e 1680
ceec2216
RL
1681WX_RELEASE=$wx_major_version_number.$wx_minor_version_number
1682WX_VERSION=$WX_RELEASE.$wx_release_number
1683WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number
a848cd7e 1684
ceec2216 1685WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number
a848cd7e 1686
a848cd7e
SC
1687
1688
1689
1690USE_UNIX=1
1691USE_OS2=0
1692USE_WIN32=0
1693USE_DOS=0
1694USE_BEOS=0
1695USE_MAC=0
1696
1697USE_AIX=
1698USE_BSD= USE_DARWIN= USE_FREEBSD=
1699USE_GNU= USE_HPUX=
1700USE_LINUX=
1701USE_NETBSD=
1702USE_OPENBSD=
1703USE_OSF= USE_SGI=
1704USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS=
1705USE_ULTRIX=
1706USE_UNIXWARE=
1707
1708USE_ALPHA=
1709
1710NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1711
1712ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11"
1713
1714DEFAULT_wxUSE_COCOA=0
1715DEFAULT_wxUSE_GTK=0
1716DEFAULT_wxUSE_MAC=0
1717DEFAULT_wxUSE_MGL=0
1718DEFAULT_wxUSE_MICROWIN=0
1719DEFAULT_wxUSE_MOTIF=0
1720DEFAULT_wxUSE_MSW=0
1721DEFAULT_wxUSE_PM=0
1722DEFAULT_wxUSE_X11=0
1723
1724DEFAULT_DEFAULT_wxUSE_COCOA=0
1725DEFAULT_DEFAULT_wxUSE_GTK=0
1726DEFAULT_DEFAULT_wxUSE_MAC=0
1727DEFAULT_DEFAULT_wxUSE_MGL=0
1728DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1729DEFAULT_DEFAULT_wxUSE_MOTIF=0
1730DEFAULT_DEFAULT_wxUSE_MSW=0
1731DEFAULT_DEFAULT_wxUSE_PM=0
1732DEFAULT_DEFAULT_wxUSE_X11=0
1733
1734PROGRAM_EXT=
1735SO_SUFFIX=so
1736SAMPLES_RPATH_FLAG=
1737SAMPLES_RPATH_POSTLINK=
1738
a03b8b04
RD
1739DEFAULT_STD_FLAG=yes
1740
a848cd7e
SC
1741case "${host}" in
1742 *-hp-hpux* )
1743 USE_HPUX=1
1744 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1745 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1746 SO_SUFFIX=sl
1747 cat >>confdefs.h <<\_ACEOF
1748#define __HPUX__ 1
1749_ACEOF
1750
2eef8513 1751
c92ad099 1752 CPPFLAGS="-D_HPUX_SOURCE $CPPFLAGS"
a848cd7e
SC
1753 ;;
1754 *-*-linux* )
1755 USE_LINUX=1
1756 cat >>confdefs.h <<\_ACEOF
1757#define __LINUX__ 1
1758_ACEOF
1759
1760 TMP=`uname -m`
1761 if test "x$TMP" = "xalpha"; then
1762 USE_ALPHA=1
1763 cat >>confdefs.h <<\_ACEOF
1764#define __ALPHA__ 1
1765_ACEOF
1766
1767 fi
1768 DEFAULT_DEFAULT_wxUSE_GTK=1
1769 ;;
1770 *-*-gnu* | *-*-k*bsd*-gnu )
1771 USE_GNU=1
1772 TMP=`uname -m`
1773 if test "x$TMP" = "xalpha"; then
1774 USE_ALPHA=1
1775 cat >>confdefs.h <<\_ACEOF
1776#define __ALPHA__ 1
1777_ACEOF
1778
1779 fi
1780 DEFAULT_DEFAULT_wxUSE_GTK=1
1781 ;;
1782 *-*-irix5* | *-*-irix6* )
1783 USE_SGI=1
1784 USE_SVR4=1
1785 cat >>confdefs.h <<\_ACEOF
1786#define __SGI__ 1
1787_ACEOF
1788
1789 cat >>confdefs.h <<\_ACEOF
1790#define __SVR4__ 1
1791_ACEOF
1792
1793 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1794 ;;
1795 *-*-solaris2* )
1796 USE_SUN=1
1797 USE_SOLARIS=1
1798 USE_SVR4=1
1799 cat >>confdefs.h <<\_ACEOF
1800#define __SUN__ 1
1801_ACEOF
1802
1803 cat >>confdefs.h <<\_ACEOF
1804#define __SOLARIS__ 1
1805_ACEOF
1806
1807 cat >>confdefs.h <<\_ACEOF
1808#define __SVR4__ 1
1809_ACEOF
1810
1811 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1812 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1813 ;;
1814 *-*-sunos4* )
1815 USE_SUN=1
1816 USE_SUNOS=1
1817 USE_BSD=1
1818 cat >>confdefs.h <<\_ACEOF
1819#define __SUN__ 1
1820_ACEOF
1821
1822 cat >>confdefs.h <<\_ACEOF
1823#define __SUNOS__ 1
1824_ACEOF
1825
1826 cat >>confdefs.h <<\_ACEOF
1827#define __BSD__ 1
1828_ACEOF
1829
1830 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1831 ;;
1832 *-*-freebsd*)
1833 USE_BSD=1
1834 USE_FREEBSD=1
1835 cat >>confdefs.h <<\_ACEOF
1836#define __FREEBSD__ 1
1837_ACEOF
1838
1839 cat >>confdefs.h <<\_ACEOF
1840#define __BSD__ 1
1841_ACEOF
1842
1843 DEFAULT_DEFAULT_wxUSE_GTK=1
1844 ;;
1845 *-*-openbsd*)
1846 USE_BSD=1
1847 USE_OPENBSD=1
1848 cat >>confdefs.h <<\_ACEOF
1849#define __OPENBSD__ 1
1850_ACEOF
1851
1852 cat >>confdefs.h <<\_ACEOF
1853#define __BSD__ 1
1854_ACEOF
1855
1856 DEFAULT_DEFAULT_wxUSE_GTK=1
1857 ;;
1858 *-*-netbsd*)
1859 USE_BSD=1
1860 USE_NETBSD=1
1861 cat >>confdefs.h <<\_ACEOF
1862#define __NETBSD__ 1
1863_ACEOF
1864
1865 cat >>confdefs.h <<\_ACEOF
1866#define __BSD__ 1
1867_ACEOF
1868
1869 DEFAULT_DEFAULT_wxUSE_GTK=1
728258f4 1870 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
def7c04a 1871
def7c04a 1872 CPPFLAGS="-D_NETBSD_SOURCE -D_LIBC $CPPFLAGS"
a848cd7e
SC
1873 ;;
1874 *-*-osf* )
1875 USE_ALPHA=1
1876 USE_OSF=1
1877 cat >>confdefs.h <<\_ACEOF
1878#define __ALPHA__ 1
1879_ACEOF
1880
1881 cat >>confdefs.h <<\_ACEOF
1882#define __OSF__ 1
1883_ACEOF
1884
1885 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1886 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1887 ;;
1888 *-*-dgux5* )
1889 USE_ALPHA=1
1890 USE_SVR4=1
1891 cat >>confdefs.h <<\_ACEOF
1892#define __ALPHA__ 1
1893_ACEOF
1894
1895 cat >>confdefs.h <<\_ACEOF
1896#define __SVR4__ 1
1897_ACEOF
1898
1899 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1900 ;;
1901 *-*-sysv5* )
1902 USE_SYSV=1
1903 USE_SVR4=1
1904 cat >>confdefs.h <<\_ACEOF
1905#define __SYSV__ 1
1906_ACEOF
1907
1908 cat >>confdefs.h <<\_ACEOF
1909#define __SVR4__ 1
1910_ACEOF
1911
1912 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1913 ;;
1914 *-*-aix* )
1915 USE_AIX=1
1916 USE_SYSV=1
1917 USE_SVR4=1
1918 SO_SUFFIX=a
1919 cat >>confdefs.h <<\_ACEOF
1920#define __AIX__ 1
1921_ACEOF
1922
1923 cat >>confdefs.h <<\_ACEOF
1924#define __SYSV__ 1
1925_ACEOF
1926
1927 cat >>confdefs.h <<\_ACEOF
1928#define __SVR4__ 1
1929_ACEOF
1930
1931 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1932 ;;
1933
1934 *-*-*UnixWare*)
1935 USE_SYSV=1
1936 USE_SVR4=1
1937 USE_UNIXWARE=1
1938 cat >>confdefs.h <<\_ACEOF
1939#define __UNIXWARE__ 1
1940_ACEOF
1941
1942 ;;
1943
1944 *-*-cygwin* | *-*-mingw32* )
1945 SO_SUFFIX=dll
1946 PROGRAM_EXT=".exe"
a848cd7e 1947 DEFAULT_DEFAULT_wxUSE_MSW=1
a03b8b04 1948 DEFAULT_STD_FLAG=no
a848cd7e
SC
1949 ;;
1950
1951 *-pc-msdosdjgpp )
1952 USE_UNIX=0
1953 USE_DOS=1
1954 cat >>confdefs.h <<\_ACEOF
1955#define __DOS__ 1
1956_ACEOF
1957
1958 PROGRAM_EXT=".exe"
1959 DEFAULT_DEFAULT_wxUSE_MGL=1
a848cd7e
SC
1960 ;;
1961
1962 *-pc-os2_emx | *-pc-os2-emx )
1963 cat >>confdefs.h <<\_ACEOF
1964#define __EMX__ 1
1965_ACEOF
1966
1967 USE_OS2=1
1968 cat >>confdefs.h <<\_ACEOF
1969#define __OS2__ 1
1970_ACEOF
1971
1972 PROGRAM_EXT=".exe"
1973 DEFAULT_DEFAULT_wxUSE_PM=1
1974 CXX=gcc
1975 LDFLAGS="$LDFLAGS -Zcrtdll"
1976 ac_executable_extensions=".exe"
1977 export ac_executable_extensions
1978 ac_save_IFS="$IFS"
1979 IFS='\\'
1980 ac_TEMP_PATH=
1981 for ac_dir in $PATH; do
1982 IFS=$ac_save_IFS
1983 if test -z "$ac_TEMP_PATH"; then
1984 ac_TEMP_PATH="$ac_dir"
1985 else
1986 ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
1987 fi
1988 done
1989 export PATH="$ac_TEMP_PATH"
1990 unset ac_TEMP_PATH
a03b8b04 1991 DEFAULT_STD_FLAG=no
a848cd7e
SC
1992 ;;
1993
cfda0ea8 1994 *-*-darwin* )
a848cd7e
SC
1995 USE_BSD=1
1996 USE_DARWIN=1
1997 SO_SUFFIX=dylib
1998 cat >>confdefs.h <<\_ACEOF
1999#define __BSD__ 1
2000_ACEOF
2001
2002 cat >>confdefs.h <<\_ACEOF
2003#define __DARWIN__ 1
a848cd7e
SC
2004_ACEOF
2005
2006 cat >>confdefs.h <<\_ACEOF
2007#define TARGET_CARBON 1
2008_ACEOF
2009
2010 DEFAULT_DEFAULT_wxUSE_MAC=1
a03b8b04 2011 DEFAULT_STD_FLAG=no
a848cd7e 2012 ;;
1e9e8aba
DE
2013 powerpc-apple-macos* )
2014 USE_UNIX=0
2015 ac_cv_c_bigendian=yes
2016 SO_SUFFIX=shlib
2017 DEFAULT_DEFAULT_wxUSE_MAC=1
a03b8b04 2018 DEFAULT_STD_FLAG=no
1e9e8aba 2019 ;;
a848cd7e
SC
2020
2021 *-*-beos* )
2022 USE_BEOS=1
2023 cat >>confdefs.h <<\_ACEOF
2024#define __BEOS__ 1
2025_ACEOF
2026
2027 ;;
2028
2029 *)
2030 { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5
2031echo "$as_me: error: unknown system type ${host}." >&2;}
2032 { (exit 1); exit 1; }; }
2033esac
2034
2035
2036
2037
2038 wx_arg_cache_file="configarg.cache"
2039 echo "loading argument cache $wx_arg_cache_file"
2040 rm -f ${wx_arg_cache_file}.tmp
2041 touch ${wx_arg_cache_file}.tmp
2042 touch ${wx_arg_cache_file}
2043
2044
2045DEBUG_CONFIGURE=0
2046if test $DEBUG_CONFIGURE = 1; then
2047 DEFAULT_wxUSE_UNIVERSAL=no
2048 DEFAULT_wxUSE_STL=no
2049
2050 DEFAULT_wxUSE_NANOX=no
2051
2052 DEFAULT_wxUSE_THREADS=yes
2053
2054 DEFAULT_wxUSE_SHARED=yes
2055 DEFAULT_wxUSE_OPTIMISE=no
2056 DEFAULT_wxUSE_PROFILE=no
2057 DEFAULT_wxUSE_NO_DEPS=no
2058 DEFAULT_wxUSE_NO_RTTI=no
2059 DEFAULT_wxUSE_NO_EXCEPTIONS=no
7afc46ab 2060 DEFAULT_wxUSE_UNIVERSAL_BINARY=no
ffa0583f 2061 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2062 DEFAULT_wxUSE_PERMISSIVE=no
2063 DEFAULT_wxUSE_DEBUG_FLAG=yes
2064 DEFAULT_wxUSE_DEBUG_INFO=yes
2065 DEFAULT_wxUSE_DEBUG_GDB=yes
2066 DEFAULT_wxUSE_MEM_TRACING=no
2067 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2068 DEFAULT_wxUSE_DMALLOC=no
2069 DEFAULT_wxUSE_APPLE_IEEE=no
2070
2071 DEFAULT_wxUSE_EXCEPTIONS=no
2072 DEFAULT_wxUSE_LOG=yes
2073 DEFAULT_wxUSE_LOGWINDOW=no
2074 DEFAULT_wxUSE_LOGGUI=no
2075 DEFAULT_wxUSE_LOGDIALOG=no
2076
2077 DEFAULT_wxUSE_GUI=yes
2078 DEFAULT_wxUSE_CONTROLS=no
2079
2080 DEFAULT_wxUSE_REGEX=no
2081 DEFAULT_wxUSE_XML=no
2082 DEFAULT_wxUSE_EXPAT=no
2083 DEFAULT_wxUSE_ZLIB=no
2084 DEFAULT_wxUSE_LIBPNG=no
2085 DEFAULT_wxUSE_LIBJPEG=no
2086 DEFAULT_wxUSE_LIBTIFF=no
2087 DEFAULT_wxUSE_LIBXPM=no
2088 DEFAULT_wxUSE_LIBMSPACK=no
2089 DEFAULT_wxUSE_LIBSDL=no
d1c38808 2090 DEFAULT_wxUSE_LIBGNOMEPRINT=no
2b850ae1 2091 DEFAULT_wxUSE_LIBGNOMEVFS=no
3565d135 2092 DEFAULT_wxUSE_LIBHILDON=no
a848cd7e
SC
2093 DEFAULT_wxUSE_ODBC=no
2094 DEFAULT_wxUSE_OPENGL=no
2095
2096 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
eaff0f0d 2097 DEFAULT_wxUSE_STACKWALKER=no
36b6448c 2098 DEFAULT_wxUSE_DEBUGREPORT=no
a848cd7e
SC
2099 DEFAULT_wxUSE_SNGLINST_CHECKER=no
2100 DEFAULT_wxUSE_STD_IOSTREAM=no
59746b65 2101 DEFAULT_wxUSE_STD_STRING=no
a848cd7e
SC
2102 DEFAULT_wxUSE_CMDLINE_PARSER=no
2103 DEFAULT_wxUSE_DATETIME=no
2104 DEFAULT_wxUSE_TIMER=no
2105 DEFAULT_wxUSE_STOPWATCH=no
2106 DEFAULT_wxUSE_FILE=no
2107 DEFAULT_wxUSE_FFILE=no
07158944 2108 DEFAULT_wxUSE_STDPATHS=no
a848cd7e
SC
2109 DEFAULT_wxUSE_TEXTBUFFER=no
2110 DEFAULT_wxUSE_TEXTFILE=no
2111 DEFAULT_wxUSE_SOUND=no
3b57de8b 2112 DEFAULT_wxUSE_MEDIACTRL=no
f10e38c4 2113 DEFAULT_wxUSE_GSTREAMER8=no
a848cd7e
SC
2114 DEFAULT_wxUSE_INTL=no
2115 DEFAULT_wxUSE_CONFIG=no
2116 DEFAULT_wxUSE_FONTMAP=no
2117 DEFAULT_wxUSE_STREAMS=no
2118 DEFAULT_wxUSE_SOCKETS=no
2119 DEFAULT_wxUSE_OLE=no
2120 DEFAULT_wxUSE_DATAOBJ=no
2121 DEFAULT_wxUSE_DIALUP_MANAGER=no
2122 DEFAULT_wxUSE_JOYSTICK=no
2123 DEFAULT_wxUSE_DYNLIB_CLASS=no
2124 DEFAULT_wxUSE_DYNAMIC_LOADER=no
2125 DEFAULT_wxUSE_LONGLONG=no
2126 DEFAULT_wxUSE_GEOMETRY=no
2127
2128 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2129 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2130 DEFAULT_wxUSE_POSTSCRIPT=no
2131
2132 DEFAULT_wxUSE_CLIPBOARD=no
2133 DEFAULT_wxUSE_TOOLTIPS=no
2134 DEFAULT_wxUSE_DRAG_AND_DROP=no
2135 DEFAULT_wxUSE_DRAGIMAGE=no
2136 DEFAULT_wxUSE_SPLINES=no
fbe2ca43 2137 DEFAULT_wxUSE_MOUSEWHEEL=no
a848cd7e 2138
8a7b1113 2139 DEFAULT_wxUSE_MDI=no
a848cd7e
SC
2140 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2141 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2142 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2143
2144 DEFAULT_wxUSE_RESOURCES=no
2145 DEFAULT_wxUSE_CONSTRAINTS=no
2146 DEFAULT_wxUSE_IPC=no
2147 DEFAULT_wxUSE_HELP=no
2148 DEFAULT_wxUSE_MS_HTML_HELP=no
2149 DEFAULT_wxUSE_WXHTML_HELP=no
2150 DEFAULT_wxUSE_TREELAYOUT=no
2151 DEFAULT_wxUSE_METAFILE=no
2152 DEFAULT_wxUSE_MIMETYPE=no
2153 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2154 DEFAULT_wxUSE_PROTOCOL=no
2155 DEFAULT_wxUSE_PROTOCOL_HTTP=no
2156 DEFAULT_wxUSE_PROTOCOL_FTP=no
2157 DEFAULT_wxUSE_PROTOCOL_FILE=no
2158 DEFAULT_wxUSE_URL=no
2159
2160 DEFAULT_wxUSE_COMMONDLGS=no
2161 DEFAULT_wxUSE_CHOICEDLG=no
2162 DEFAULT_wxUSE_COLOURDLG=no
2163 DEFAULT_wxUSE_DIRDLG=no
2164 DEFAULT_wxUSE_FILEDLG=no
2165 DEFAULT_wxUSE_FINDREPLDLG=no
2166 DEFAULT_wxUSE_FONTDLG=no
2167 DEFAULT_wxUSE_MSGDLG=no
2168 DEFAULT_wxUSE_NUMBERDLG=no
2169 DEFAULT_wxUSE_TEXTDLG=no
2170 DEFAULT_wxUSE_SPLASH=no
2171 DEFAULT_wxUSE_STARTUP_TIPS=no
2172 DEFAULT_wxUSE_PROGRESSDLG=no
2173 DEFAULT_wxUSE_WIZARDDLG=no
2174
2175 DEFAULT_wxUSE_MENUS=no
2176 DEFAULT_wxUSE_MINIFRAME=no
2177 DEFAULT_wxUSE_HTML=no
91dea314 2178 DEFAULT_wxUSE_RICHTEXT=no
9a8f0513 2179 DEFAULT_wxUSE_XRC=no
646b6ec1 2180 DEFAULT_wxUSE_WEBKIT=no
a848cd7e
SC
2181 DEFAULT_wxUSE_FILESYSTEM=no
2182 DEFAULT_wxUSE_FS_INET=no
2183 DEFAULT_wxUSE_FS_ZIP=no
2184 DEFAULT_wxUSE_BUSYINFO=no
9e8e867f 2185 DEFAULT_wxUSE_ARCHIVE_STREAMS=no
a848cd7e 2186 DEFAULT_wxUSE_ZIPSTREAM=no
a848cd7e
SC
2187 DEFAULT_wxUSE_VALIDATORS=no
2188
2189 DEFAULT_wxUSE_ACCEL=no
2190 DEFAULT_wxUSE_BUTTON=no
2191 DEFAULT_wxUSE_BMPBUTTON=no
2192 DEFAULT_wxUSE_CALCTRL=no
2193 DEFAULT_wxUSE_CARET=no
2194 DEFAULT_wxUSE_CHECKBOX=no
2195 DEFAULT_wxUSE_CHECKLST=no
2196 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 2197 DEFAULT_wxUSE_CHOICEBOOK=no
a848cd7e 2198 DEFAULT_wxUSE_COMBOBOX=no
da98e9be 2199 DEFAULT_wxUSE_DATEPICKCTRL=no
a848cd7e
SC
2200 DEFAULT_wxUSE_DISPLAY=no
2201 DEFAULT_wxUSE_GAUGE=no
2202 DEFAULT_wxUSE_GRID=no
20e34ecc 2203 DEFAULT_wxUSE_DATAVIEWCTRL=no
a848cd7e
SC
2204 DEFAULT_wxUSE_IMAGLIST=no
2205 DEFAULT_wxUSE_LISTBOOK=no
2206 DEFAULT_wxUSE_LISTBOX=no
2207 DEFAULT_wxUSE_LISTCTRL=no
2208 DEFAULT_wxUSE_NOTEBOOK=no
2209 DEFAULT_wxUSE_RADIOBOX=no
2210 DEFAULT_wxUSE_RADIOBTN=no
2211 DEFAULT_wxUSE_SASH=no
2212 DEFAULT_wxUSE_SCROLLBAR=no
2213 DEFAULT_wxUSE_SLIDER=no
2214 DEFAULT_wxUSE_SPINBTN=no
2215 DEFAULT_wxUSE_SPINCTRL=no
2216 DEFAULT_wxUSE_SPLITTER=no
2217 DEFAULT_wxUSE_STATBMP=no
2218 DEFAULT_wxUSE_STATBOX=no
2219 DEFAULT_wxUSE_STATLINE=no
2220 DEFAULT_wxUSE_STATTEXT=no
2221 DEFAULT_wxUSE_STATUSBAR=yes
f10e38c4 2222 DEFAULT_wxUSE_TAB_DIALOG=no
a848cd7e
SC
2223 DEFAULT_wxUSE_TEXTCTRL=no
2224 DEFAULT_wxUSE_TOGGLEBTN=no
2225 DEFAULT_wxUSE_TOOLBAR=no
2226 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
2227 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
0093c2fc 2228 DEFAULT_wxUSE_TREEBOOK=no
5ec3bc43 2229 DEFAULT_wxUSE_TOOLBOOK=no
a848cd7e
SC
2230 DEFAULT_wxUSE_TREECTRL=no
2231 DEFAULT_wxUSE_POPUPWIN=no
2232 DEFAULT_wxUSE_TIPWINDOW=no
2233
2234 DEFAULT_wxUSE_UNICODE=no
2235 DEFAULT_wxUSE_UNICODE_MSLU=no
2236 DEFAULT_wxUSE_WCSRTOMBS=no
2237
2238 DEFAULT_wxUSE_PALETTE=no
2239 DEFAULT_wxUSE_IMAGE=no
2240 DEFAULT_wxUSE_GIF=no
2241 DEFAULT_wxUSE_PCX=no
2242 DEFAULT_wxUSE_PNM=no
2243 DEFAULT_wxUSE_IFF=no
2244 DEFAULT_wxUSE_XPM=no
2245 DEFAULT_wxUSE_ICO_CUR=no
2246 DEFAULT_wxUSE_ACCESSIBILITY=no
2247
2248 DEFAULT_wxUSE_MONOLITHIC=no
2249 DEFAULT_wxUSE_PLUGINS=no
2250 DEFAULT_wxUSE_OFFICIAL_BUILD=no
2251else
2252 DEFAULT_wxUSE_UNIVERSAL=no
2253 DEFAULT_wxUSE_STL=no
2254
2255 DEFAULT_wxUSE_NANOX=no
2256
2257 DEFAULT_wxUSE_THREADS=yes
2258
2259 DEFAULT_wxUSE_SHARED=yes
2260 DEFAULT_wxUSE_OPTIMISE=yes
2261 DEFAULT_wxUSE_PROFILE=no
2262 DEFAULT_wxUSE_NO_DEPS=no
2263 DEFAULT_wxUSE_NO_RTTI=no
2264 DEFAULT_wxUSE_NO_EXCEPTIONS=no
7afc46ab 2265 DEFAULT_wxUSE_UNIVERSAL_BINARY=no
ffa0583f 2266 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2267 DEFAULT_wxUSE_PERMISSIVE=no
2268 DEFAULT_wxUSE_DEBUG_FLAG=no
2269 DEFAULT_wxUSE_DEBUG_INFO=no
2270 DEFAULT_wxUSE_DEBUG_GDB=no
2271 DEFAULT_wxUSE_MEM_TRACING=no
2272 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2273 DEFAULT_wxUSE_DMALLOC=no
2274 DEFAULT_wxUSE_APPLE_IEEE=yes
2275
2276 DEFAULT_wxUSE_EXCEPTIONS=yes
2277 DEFAULT_wxUSE_LOG=yes
2278 DEFAULT_wxUSE_LOGWINDOW=yes
2279 DEFAULT_wxUSE_LOGGUI=yes
2280 DEFAULT_wxUSE_LOGDIALOG=yes
2281
2282 DEFAULT_wxUSE_GUI=yes
2283
2284 DEFAULT_wxUSE_REGEX=yes
2285 DEFAULT_wxUSE_XML=yes
2286 DEFAULT_wxUSE_EXPAT=yes
2287 DEFAULT_wxUSE_ZLIB=yes
2288 DEFAULT_wxUSE_LIBPNG=yes
2289 DEFAULT_wxUSE_LIBJPEG=yes
2290 DEFAULT_wxUSE_LIBTIFF=yes
2291 DEFAULT_wxUSE_LIBXPM=yes
2292 DEFAULT_wxUSE_LIBMSPACK=yes
2293 DEFAULT_wxUSE_LIBSDL=no
a03b8b04 2294 DEFAULT_wxUSE_LIBGNOMEPRINT=no
2b850ae1 2295 DEFAULT_wxUSE_LIBGNOMEVFS=no
3565d135 2296 DEFAULT_wxUSE_LIBHILDON=no
a848cd7e 2297 DEFAULT_wxUSE_ODBC=no
52cb607e 2298 DEFAULT_wxUSE_OPENGL=no
a848cd7e
SC
2299
2300 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
eaff0f0d 2301 DEFAULT_wxUSE_STACKWALKER=yes
6671c68b 2302 DEFAULT_wxUSE_DEBUGREPORT=yes
a848cd7e 2303 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
a03b8b04
RD
2304 DEFAULT_wxUSE_STD_IOSTREAM=$DEFAULT_STD_FLAG
2305 DEFAULT_wxUSE_STD_STRING=$DEFAULT_STD_FLAG
a848cd7e
SC
2306 DEFAULT_wxUSE_CMDLINE_PARSER=yes
2307 DEFAULT_wxUSE_DATETIME=yes
2308 DEFAULT_wxUSE_TIMER=yes
2309 DEFAULT_wxUSE_STOPWATCH=yes
2310 DEFAULT_wxUSE_FILE=yes
2311 DEFAULT_wxUSE_FFILE=yes
07158944 2312 DEFAULT_wxUSE_STDPATHS=yes
a848cd7e
SC
2313 DEFAULT_wxUSE_TEXTBUFFER=yes
2314 DEFAULT_wxUSE_TEXTFILE=yes
2315 DEFAULT_wxUSE_SOUND=yes
3b57de8b 2316 DEFAULT_wxUSE_MEDIACTRL=no
f10e38c4 2317 DEFAULT_wxUSE_GSTREAMER8=no
a848cd7e
SC
2318 DEFAULT_wxUSE_INTL=yes
2319 DEFAULT_wxUSE_CONFIG=yes
2320 DEFAULT_wxUSE_FONTMAP=yes
2321 DEFAULT_wxUSE_STREAMS=yes
2322 DEFAULT_wxUSE_SOCKETS=yes
2323 DEFAULT_wxUSE_OLE=yes
2324 DEFAULT_wxUSE_DATAOBJ=yes
2325 DEFAULT_wxUSE_DIALUP_MANAGER=yes
2326 DEFAULT_wxUSE_JOYSTICK=yes
2327 DEFAULT_wxUSE_DYNLIB_CLASS=yes
2328 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
2329 DEFAULT_wxUSE_LONGLONG=yes
2330 DEFAULT_wxUSE_GEOMETRY=yes
2331
2332 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2333 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2334 DEFAULT_wxUSE_POSTSCRIPT=yes
2335
2336 DEFAULT_wxUSE_CLIPBOARD=yes
2337 DEFAULT_wxUSE_TOOLTIPS=yes
2338 DEFAULT_wxUSE_DRAG_AND_DROP=yes
2339 DEFAULT_wxUSE_DRAGIMAGE=yes
2340 DEFAULT_wxUSE_SPLINES=yes
fbe2ca43 2341 DEFAULT_wxUSE_MOUSEWHEEL=yes
a848cd7e 2342
8a7b1113 2343 DEFAULT_wxUSE_MDI=yes
a848cd7e
SC
2344 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2345 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2346 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2347
2348 DEFAULT_wxUSE_RESOURCES=no
2349 DEFAULT_wxUSE_CONSTRAINTS=yes
2350 DEFAULT_wxUSE_IPC=yes
2351 DEFAULT_wxUSE_HELP=yes
2352 DEFAULT_wxUSE_MS_HTML_HELP=yes
2353 DEFAULT_wxUSE_WXHTML_HELP=yes
2354 DEFAULT_wxUSE_TREELAYOUT=yes
2355 DEFAULT_wxUSE_METAFILE=yes
2356 DEFAULT_wxUSE_MIMETYPE=yes
2357 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
2358 DEFAULT_wxUSE_PROTOCOL=yes
2359 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2360 DEFAULT_wxUSE_PROTOCOL_FTP=yes
2361 DEFAULT_wxUSE_PROTOCOL_FILE=yes
2362 DEFAULT_wxUSE_URL=yes
2363
2364 DEFAULT_wxUSE_COMMONDLGS=yes
2365 DEFAULT_wxUSE_CHOICEDLG=yes
2366 DEFAULT_wxUSE_COLOURDLG=yes
2367 DEFAULT_wxUSE_DIRDLG=yes
2368 DEFAULT_wxUSE_FILEDLG=yes
2369 DEFAULT_wxUSE_FINDREPLDLG=yes
2370 DEFAULT_wxUSE_FONTDLG=yes
2371 DEFAULT_wxUSE_MSGDLG=yes
2372 DEFAULT_wxUSE_NUMBERDLG=yes
2373 DEFAULT_wxUSE_TEXTDLG=yes
2374 DEFAULT_wxUSE_SPLASH=yes
2375 DEFAULT_wxUSE_STARTUP_TIPS=yes
2376 DEFAULT_wxUSE_PROGRESSDLG=yes
2377 DEFAULT_wxUSE_WIZARDDLG=yes
2378
2379 DEFAULT_wxUSE_MENUS=yes
2380 DEFAULT_wxUSE_MINIFRAME=yes
2381 DEFAULT_wxUSE_HTML=yes
91dea314 2382 DEFAULT_wxUSE_RICHTEXT=yes
9a8f0513 2383 DEFAULT_wxUSE_XRC=yes
646b6ec1 2384 DEFAULT_wxUSE_WEBKIT=yes
a848cd7e
SC
2385 DEFAULT_wxUSE_FILESYSTEM=yes
2386 DEFAULT_wxUSE_FS_INET=yes
2387 DEFAULT_wxUSE_FS_ZIP=yes
2388 DEFAULT_wxUSE_BUSYINFO=yes
9e8e867f 2389 DEFAULT_wxUSE_ARCHIVE_STREAMS=yes
a848cd7e 2390 DEFAULT_wxUSE_ZIPSTREAM=yes
a848cd7e
SC
2391 DEFAULT_wxUSE_VALIDATORS=yes
2392
2393 DEFAULT_wxUSE_ACCEL=yes
2394 DEFAULT_wxUSE_BUTTON=yes
2395 DEFAULT_wxUSE_BMPBUTTON=yes
2396 DEFAULT_wxUSE_CALCTRL=yes
2397 DEFAULT_wxUSE_CARET=yes
2398 DEFAULT_wxUSE_CHECKBOX=yes
2399 DEFAULT_wxUSE_CHECKLST=yes
2400 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 2401 DEFAULT_wxUSE_CHOICEBOOK=yes
a848cd7e 2402 DEFAULT_wxUSE_COMBOBOX=yes
da98e9be 2403 DEFAULT_wxUSE_DATEPICKCTRL=yes
a848cd7e
SC
2404 DEFAULT_wxUSE_DISPLAY=yes
2405 DEFAULT_wxUSE_GAUGE=yes
2406 DEFAULT_wxUSE_GRID=yes
20e34ecc 2407 DEFAULT_wxUSE_DATAVIEWCTRL=no
a848cd7e
SC
2408 DEFAULT_wxUSE_IMAGLIST=yes
2409 DEFAULT_wxUSE_LISTBOOK=yes
2410 DEFAULT_wxUSE_LISTBOX=yes
2411 DEFAULT_wxUSE_LISTCTRL=yes
2412 DEFAULT_wxUSE_NOTEBOOK=yes
2413 DEFAULT_wxUSE_RADIOBOX=yes
2414 DEFAULT_wxUSE_RADIOBTN=yes
2415 DEFAULT_wxUSE_SASH=yes
2416 DEFAULT_wxUSE_SCROLLBAR=yes
2417 DEFAULT_wxUSE_SLIDER=yes
2418 DEFAULT_wxUSE_SPINBTN=yes
2419 DEFAULT_wxUSE_SPINCTRL=yes
2420 DEFAULT_wxUSE_SPLITTER=yes
2421 DEFAULT_wxUSE_STATBMP=yes
2422 DEFAULT_wxUSE_STATBOX=yes
2423 DEFAULT_wxUSE_STATLINE=yes
2424 DEFAULT_wxUSE_STATTEXT=yes
2425 DEFAULT_wxUSE_STATUSBAR=yes
f10e38c4 2426 DEFAULT_wxUSE_TAB_DIALOG=no
a848cd7e
SC
2427 DEFAULT_wxUSE_TEXTCTRL=yes
2428 DEFAULT_wxUSE_TOGGLEBTN=yes
2429 DEFAULT_wxUSE_TOOLBAR=yes
2430 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
2431 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
0093c2fc 2432 DEFAULT_wxUSE_TREEBOOK=yes
5ec3bc43 2433 DEFAULT_wxUSE_TOOLBOOK=yes
a848cd7e
SC
2434 DEFAULT_wxUSE_TREECTRL=yes
2435 DEFAULT_wxUSE_POPUPWIN=yes
2436 DEFAULT_wxUSE_TIPWINDOW=yes
2437
78de529b 2438 DEFAULT_wxUSE_UNICODE=no
a848cd7e
SC
2439 DEFAULT_wxUSE_UNICODE_MSLU=yes
2440 DEFAULT_wxUSE_WCSRTOMBS=no
2441
2442 DEFAULT_wxUSE_PALETTE=yes
2443 DEFAULT_wxUSE_IMAGE=yes
2444 DEFAULT_wxUSE_GIF=yes
2445 DEFAULT_wxUSE_PCX=yes
2446 DEFAULT_wxUSE_IFF=no
2447 DEFAULT_wxUSE_PNM=yes
2448 DEFAULT_wxUSE_XPM=yes
2449 DEFAULT_wxUSE_ICO_CUR=yes
2450 DEFAULT_wxUSE_ACCESSIBILITY=no
2451
2452 DEFAULT_wxUSE_MONOLITHIC=no
2453 DEFAULT_wxUSE_PLUGINS=no
2454 DEFAULT_wxUSE_OFFICIAL_BUILD=no
9f45f08e 2455
f34ca037 2456 DEFAULT_wxUSE_GTK2=yes
a848cd7e
SC
2457fi
2458
2459
2460
f34ca037 2461
a848cd7e
SC
2462for toolkit in `echo $ALL_TOOLKITS`; do
2463 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2464 if test "x$LINE" != "x" ; then
2465 has_toolkit_in_cache=1
2466 eval "DEFAULT_$LINE"
2467 eval "CACHE_$toolkit=1"
f34ca037
MW
2468
2469 LINE=`grep "wx${toolkit}_VERSION=" ${wx_arg_cache_file}`
2470 if test "x$LINE" != "x" ; then
2471 eval "DEFAULT_$LINE"
2472 fi
a848cd7e
SC
2473 fi
2474done
2475
2476
2477
2478 enablestring=
2479 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2480echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
2481 no_cache=0
2482 # Check whether --enable-gui or --disable-gui was given.
2483if test "${enable_gui+set}" = set; then
2484 enableval="$enable_gui"
2485
2486 if test "$enableval" = yes; then
2487 ac_cv_use_gui='wxUSE_GUI=yes'
2488 else
2489 ac_cv_use_gui='wxUSE_GUI=no'
2490 fi
2491
2492else
2493
2494 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2495 if test "x$LINE" != x ; then
2496 eval "DEFAULT_$LINE"
2497 else
2498 no_cache=1
2499 fi
2500
2501 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
2502
2503fi;
2504
2505 eval "$ac_cv_use_gui"
2506 if test "$no_cache" != 1; then
2507 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2508 fi
2509
2510 if test "$wxUSE_GUI" = yes; then
2511 echo "$as_me:$LINENO: result: yes" >&5
2512echo "${ECHO_T}yes" >&6
2513 else
2514 echo "$as_me:$LINENO: result: no" >&5
2515echo "${ECHO_T}no" >&6
2516 fi
2517
2518
2519 enablestring=
2520 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2521echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2522 no_cache=0
2523 # Check whether --enable-monolithic or --disable-monolithic was given.
2524if test "${enable_monolithic+set}" = set; then
2525 enableval="$enable_monolithic"
2526
2527 if test "$enableval" = yes; then
2528 ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2529 else
2530 ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2531 fi
2532
2533else
2534
2535 LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2536 if test "x$LINE" != x ; then
2537 eval "DEFAULT_$LINE"
2538 else
2539 no_cache=1
2540 fi
2541
2542 ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2543
2544fi;
2545
2546 eval "$ac_cv_use_monolithic"
2547 if test "$no_cache" != 1; then
2548 echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2549 fi
2550
2551 if test "$wxUSE_MONOLITHIC" = yes; then
2552 echo "$as_me:$LINENO: result: yes" >&5
2553echo "${ECHO_T}yes" >&6
2554 else
2555 echo "$as_me:$LINENO: result: no" >&5
2556echo "${ECHO_T}no" >&6
2557 fi
2558
2559
2560 enablestring=
2561 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
2562echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6
2563 no_cache=0
2564 # Check whether --enable-plugins or --disable-plugins was given.
2565if test "${enable_plugins+set}" = set; then
2566 enableval="$enable_plugins"
2567
2568 if test "$enableval" = yes; then
2569 ac_cv_use_plugins='wxUSE_PLUGINS=yes'
2570 else
2571 ac_cv_use_plugins='wxUSE_PLUGINS=no'
2572 fi
2573
2574else
2575
2576 LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}`
2577 if test "x$LINE" != x ; then
2578 eval "DEFAULT_$LINE"
2579 else
2580 no_cache=1
2581 fi
2582
2583 ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS
2584
2585fi;
2586
2587 eval "$ac_cv_use_plugins"
2588 if test "$no_cache" != 1; then
2589 echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp
2590 fi
2591
2592 if test "$wxUSE_PLUGINS" = yes; then
2593 echo "$as_me:$LINENO: result: yes" >&5
2594echo "${ECHO_T}yes" >&6
2595 else
2596 echo "$as_me:$LINENO: result: no" >&5
2597echo "${ECHO_T}no" >&6
2598 fi
2599
2600
1c14217d
VZ
2601 withstring=without
2602 echo "$as_me:$LINENO: checking for --${withstring:-with}-subdirs" >&5
2603echo $ECHO_N "checking for --${withstring:-with}-subdirs... $ECHO_C" >&6
2604 no_cache=0
2605
2606# Check whether --with-subdirs or --without-subdirs was given.
2607if test "${with_subdirs+set}" = set; then
2608 withval="$with_subdirs"
2609
2610 if test "$withval" = yes; then
2611 ac_cv_use_subdirs='wxWITH_SUBDIRS=yes'
2612 else
2613 ac_cv_use_subdirs='wxWITH_SUBDIRS=no'
2614 fi
2615
2616else
2617
2618 LINE=`grep "wxWITH_SUBDIRS" ${wx_arg_cache_file}`
2619 if test "x$LINE" != x ; then
2620 eval "DEFAULT_$LINE"
2621 else
2622 no_cache=1
2623 fi
2624
2625 ac_cv_use_subdirs='wxWITH_SUBDIRS='$DEFAULT_wxWITH_SUBDIRS
2626
2627fi;
2628
2629 eval "$ac_cv_use_subdirs"
2630 if test "$no_cache" != 1; then
2631 echo $ac_cv_use_subdirs >> ${wx_arg_cache_file}.tmp
2632 fi
2633
2634 if test "$wxWITH_SUBDIRS" = yes; then
2635 echo "$as_me:$LINENO: result: yes" >&5
2636echo "${ECHO_T}yes" >&6
2637 else
2638 echo "$as_me:$LINENO: result: no" >&5
2639echo "${ECHO_T}no" >&6
2640 fi
2641
2642
a848cd7e
SC
2643if test "$wxUSE_GUI" = "yes"; then
2644
2645
2646 enablestring=
2647 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2648echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
2649 no_cache=0
2650 # Check whether --enable-universal or --disable-universal was given.
2651if test "${enable_universal+set}" = set; then
2652 enableval="$enable_universal"
2653
2654 if test "$enableval" = yes; then
2655 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2656 else
2657 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2658 fi
2659
2660else
2661
2662 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2663 if test "x$LINE" != x ; then
2664 eval "DEFAULT_$LINE"
2665 else
2666 no_cache=1
2667 fi
2668
2669 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
2670
2671fi;
2672
2673 eval "$ac_cv_use_universal"
2674 if test "$no_cache" != 1; then
2675 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2676 fi
2677
2678 if test "$wxUSE_UNIVERSAL" = yes; then
2679 echo "$as_me:$LINENO: result: yes" >&5
2680echo "${ECHO_T}yes" >&6
2681 else
2682 echo "$as_me:$LINENO: result: no" >&5
2683echo "${ECHO_T}no" >&6
2684 fi
2685
2686
2687# Check whether --with-gtk or --without-gtk was given.
2688if test "${with_gtk+set}" = set; then
2689 withval="$with_gtk"
2690 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
2691fi;
2692
2693# Check whether --with-motif or --without-motif was given.
2694if test "${with_motif+set}" = set; then
2695 withval="$with_motif"
2696 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
2697fi;
2698
2699# Check whether --with-mac or --without-mac was given.
2700if test "${with_mac+set}" = set; then
2701 withval="$with_mac"
c228d3a4 2702 wxUSE_MAC="$withval" CACHE_MAC=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2703fi;
2704
2705# Check whether --with-cocoa or --without-cocoa was given.
2706if test "${with_cocoa+set}" = set; then
2707 withval="$with_cocoa"
c228d3a4 2708 wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2709fi;
2710
2711# Check whether --with-wine or --without-wine was given.
2712if test "${with_wine+set}" = set; then
2713 withval="$with_wine"
2714 wxUSE_WINE="$withval" CACHE_WINE=1
2715fi;
2716
2717# Check whether --with-msw or --without-msw was given.
2718if test "${with_msw+set}" = set; then
2719 withval="$with_msw"
2720 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
2721fi;
2722
2723# Check whether --with-pm or --without-pm was given.
2724if test "${with_pm+set}" = set; then
2725 withval="$with_pm"
2726 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
2727fi;
2728
2729# Check whether --with-mgl or --without-mgl was given.
2730if test "${with_mgl+set}" = set; then
2731 withval="$with_mgl"
2732 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
2733fi;
2734
2735# Check whether --with-microwin or --without-microwin was given.
2736if test "${with_microwin+set}" = set; then
2737 withval="$with_microwin"
2738 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
2739fi;
2740
2741# Check whether --with-x11 or --without-x11 was given.
2742if test "${with_x11+set}" = set; then
2743 withval="$with_x11"
2744 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
2745fi;
2746
2747 enablestring=
2748 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2749echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
2750 no_cache=0
2751 # Check whether --enable-nanox or --disable-nanox was given.
2752if test "${enable_nanox+set}" = set; then
2753 enableval="$enable_nanox"
2754
2755 if test "$enableval" = yes; then
2756 ac_cv_use_nanox='wxUSE_NANOX=yes'
2757 else
2758 ac_cv_use_nanox='wxUSE_NANOX=no'
2759 fi
2760
2761else
2762
2763 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2764 if test "x$LINE" != x ; then
2765 eval "DEFAULT_$LINE"
2766 else
2767 no_cache=1
2768 fi
2769
2770 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
2771
2772fi;
2773
2774 eval "$ac_cv_use_nanox"
2775 if test "$no_cache" != 1; then
2776 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
2777 fi
2778
2779 if test "$wxUSE_NANOX" = yes; then
2780 echo "$as_me:$LINENO: result: yes" >&5
2781echo "${ECHO_T}yes" >&6
2782 else
2783 echo "$as_me:$LINENO: result: no" >&5
2784echo "${ECHO_T}no" >&6
2785 fi
2786
2787
f34ca037
MW
2788# Check whether --enable-gtk2 or --disable-gtk2 was given.
2789if test "${enable_gtk2+set}" = set; then
2790 enableval="$enable_gtk2"
2791 wxUSE_GTK2="$enableval"
2792fi;
a848cd7e 2793
a848cd7e
SC
2794 enablestring=
2795 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
2796echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6
2797 no_cache=0
2798 # Check whether --enable-gpe or --disable-gpe was given.
2799if test "${enable_gpe+set}" = set; then
2800 enableval="$enable_gpe"
2801
2802 if test "$enableval" = yes; then
2803 ac_cv_use_gpe='wxUSE_GPE=yes'
2804 else
2805 ac_cv_use_gpe='wxUSE_GPE=no'
2806 fi
2807
2808else
2809
2810 LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}`
2811 if test "x$LINE" != x ; then
2812 eval "DEFAULT_$LINE"
2813 else
2814 no_cache=1
2815 fi
2816
2817 ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE
2818
2819fi;
2820
2821 eval "$ac_cv_use_gpe"
2822 if test "$no_cache" != 1; then
2823 echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp
2824 fi
2825
2826 if test "$wxUSE_GPE" = yes; then
2827 echo "$as_me:$LINENO: result: yes" >&5
2828echo "${ECHO_T}yes" >&6
2829 else
2830 echo "$as_me:$LINENO: result: no" >&5
2831echo "${ECHO_T}no" >&6
2832 fi
2833
2834
2835
2836 echo "$as_me:$LINENO: checking for --with-libpng" >&5
2837echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
2838 no_cache=0
2839
2840# Check whether --with-libpng or --without-libpng was given.
2841if test "${with_libpng+set}" = set; then
2842 withval="$with_libpng"
2843
2844 if test "$withval" = yes; then
2845 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
2846 elif test "$withval" = no; then
2847 ac_cv_use_libpng='wxUSE_LIBPNG=no'
2848 elif test "$withval" = sys; then
2849 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
2850 elif test "$withval" = builtin; then
2851 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
2852 else
2853 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2854echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2855 { (exit 1); exit 1; }; }
2856 fi
2857
2858else
2859
2860 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
2861 if test "x$LINE" != x ; then
2862 eval "DEFAULT_$LINE"
2863 else
2864 no_cache=1
2865 fi
2866
2867 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
2868
2869fi;
2870
2871 eval "$ac_cv_use_libpng"
2872 if test "$no_cache" != 1; then
2873 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
2874 fi
2875
2876 if test "$wxUSE_LIBPNG" = yes; then
2877 echo "$as_me:$LINENO: result: yes" >&5
2878echo "${ECHO_T}yes" >&6
2879 elif test "$wxUSE_LIBPNG" = no; then
2880 echo "$as_me:$LINENO: result: no" >&5
2881echo "${ECHO_T}no" >&6
2882 elif test "$wxUSE_LIBPNG" = sys; then
2883 echo "$as_me:$LINENO: result: system version" >&5
2884echo "${ECHO_T}system version" >&6
2885 elif test "$wxUSE_LIBPNG" = builtin; then
2886 echo "$as_me:$LINENO: result: builtin version" >&5
2887echo "${ECHO_T}builtin version" >&6
2888 else
2889 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2890echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2891 { (exit 1); exit 1; }; }
2892 fi
2893
2894
2895 echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
2896echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
2897 no_cache=0
2898
2899# Check whether --with-libjpeg or --without-libjpeg was given.
2900if test "${with_libjpeg+set}" = set; then
2901 withval="$with_libjpeg"
2902
2903 if test "$withval" = yes; then
2904 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
2905 elif test "$withval" = no; then
2906 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
2907 elif test "$withval" = sys; then
2908 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
2909 elif test "$withval" = builtin; then
2910 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
2911 else
2912 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2913echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2914 { (exit 1); exit 1; }; }
2915 fi
2916
2917else
2918
2919 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
2920 if test "x$LINE" != x ; then
2921 eval "DEFAULT_$LINE"
2922 else
2923 no_cache=1
2924 fi
2925
2926 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
2927
2928fi;
2929
2930 eval "$ac_cv_use_libjpeg"
2931 if test "$no_cache" != 1; then
2932 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
2933 fi
2934
2935 if test "$wxUSE_LIBJPEG" = yes; then
2936 echo "$as_me:$LINENO: result: yes" >&5
2937echo "${ECHO_T}yes" >&6
2938 elif test "$wxUSE_LIBJPEG" = no; then
2939 echo "$as_me:$LINENO: result: no" >&5
2940echo "${ECHO_T}no" >&6
2941 elif test "$wxUSE_LIBJPEG" = sys; then
2942 echo "$as_me:$LINENO: result: system version" >&5
2943echo "${ECHO_T}system version" >&6
2944 elif test "$wxUSE_LIBJPEG" = builtin; then
2945 echo "$as_me:$LINENO: result: builtin version" >&5
2946echo "${ECHO_T}builtin version" >&6
2947 else
2948 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2949echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2950 { (exit 1); exit 1; }; }
2951 fi
2952
2953
2954 echo "$as_me:$LINENO: checking for --with-libtiff" >&5
2955echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
2956 no_cache=0
2957
2958# Check whether --with-libtiff or --without-libtiff was given.
2959if test "${with_libtiff+set}" = set; then
2960 withval="$with_libtiff"
2961
2962 if test "$withval" = yes; then
2963 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2964 elif test "$withval" = no; then
2965 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2966 elif test "$withval" = sys; then
2967 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2968 elif test "$withval" = builtin; then
2969 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2970 else
2971 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2972echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2973 { (exit 1); exit 1; }; }
2974 fi
2975
2976else
2977
2978 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
2979 if test "x$LINE" != x ; then
2980 eval "DEFAULT_$LINE"
2981 else
2982 no_cache=1
2983 fi
2984
2985 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
2986
2987fi;
2988
2989 eval "$ac_cv_use_libtiff"
2990 if test "$no_cache" != 1; then
2991 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
2992 fi
2993
2994 if test "$wxUSE_LIBTIFF" = yes; then
2995 echo "$as_me:$LINENO: result: yes" >&5
2996echo "${ECHO_T}yes" >&6
2997 elif test "$wxUSE_LIBTIFF" = no; then
2998 echo "$as_me:$LINENO: result: no" >&5
2999echo "${ECHO_T}no" >&6
3000 elif test "$wxUSE_LIBTIFF" = sys; then
3001 echo "$as_me:$LINENO: result: system version" >&5
3002echo "${ECHO_T}system version" >&6
3003 elif test "$wxUSE_LIBTIFF" = builtin; then
3004 echo "$as_me:$LINENO: result: builtin version" >&5
3005echo "${ECHO_T}builtin version" >&6
3006 else
3007 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
3008echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
3009 { (exit 1); exit 1; }; }
3010 fi
3011
3012
3013 echo "$as_me:$LINENO: checking for --with-libxpm" >&5
3014echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6
3015 no_cache=0
3016
3017# Check whether --with-libxpm or --without-libxpm was given.
3018if test "${with_libxpm+set}" = set; then
3019 withval="$with_libxpm"
3020
3021 if test "$withval" = yes; then
3022 ac_cv_use_libxpm='wxUSE_LIBXPM=yes'
3023 elif test "$withval" = no; then
3024 ac_cv_use_libxpm='wxUSE_LIBXPM=no'
3025 elif test "$withval" = sys; then
3026 ac_cv_use_libxpm='wxUSE_LIBXPM=sys'
3027 elif test "$withval" = builtin; then
3028 ac_cv_use_libxpm='wxUSE_LIBXPM=builtin'
3029 else
3030 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3031echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3032 { (exit 1); exit 1; }; }
3033 fi
3034
3035else
3036
3037 LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}`
3038 if test "x$LINE" != x ; then
3039 eval "DEFAULT_$LINE"
3040 else
3041 no_cache=1
3042 fi
3043
3044 ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM
3045
3046fi;
3047
3048 eval "$ac_cv_use_libxpm"
3049 if test "$no_cache" != 1; then
3050 echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp
3051 fi
3052
3053 if test "$wxUSE_LIBXPM" = yes; then
3054 echo "$as_me:$LINENO: result: yes" >&5
3055echo "${ECHO_T}yes" >&6
3056 elif test "$wxUSE_LIBXPM" = no; then
3057 echo "$as_me:$LINENO: result: no" >&5
3058echo "${ECHO_T}no" >&6
3059 elif test "$wxUSE_LIBXPM" = sys; then
3060 echo "$as_me:$LINENO: result: system version" >&5
3061echo "${ECHO_T}system version" >&6
3062 elif test "$wxUSE_LIBXPM" = builtin; then
3063 echo "$as_me:$LINENO: result: builtin version" >&5
3064echo "${ECHO_T}builtin version" >&6
3065 else
3066 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3067echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3068 { (exit 1); exit 1; }; }
3069 fi
3070
3071
1c14217d
VZ
3072 withstring=
3073 echo "$as_me:$LINENO: checking for --${withstring:-with}-libmspack" >&5
3074echo $ECHO_N "checking for --${withstring:-with}-libmspack... $ECHO_C" >&6
a848cd7e
SC
3075 no_cache=0
3076
3077# Check whether --with-libmspack or --without-libmspack was given.
3078if test "${with_libmspack+set}" = set; then
3079 withval="$with_libmspack"
3080
3081 if test "$withval" = yes; then
3082 ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
3083 else
3084 ac_cv_use_libmspack='wxUSE_LIBMSPACK=no'
3085 fi
3086
3087else
3088
3089 LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}`
3090 if test "x$LINE" != x ; then
3091 eval "DEFAULT_$LINE"
3092 else
3093 no_cache=1
3094 fi
3095
3096 ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK
3097
3098fi;
3099
3100 eval "$ac_cv_use_libmspack"
3101 if test "$no_cache" != 1; then
3102 echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp
3103 fi
3104
3105 if test "$wxUSE_LIBMSPACK" = yes; then
3106 echo "$as_me:$LINENO: result: yes" >&5
3107echo "${ECHO_T}yes" >&6
3108 else
3109 echo "$as_me:$LINENO: result: no" >&5
3110echo "${ECHO_T}no" >&6
3111 fi
3112
3113
1c14217d
VZ
3114 withstring=
3115 echo "$as_me:$LINENO: checking for --${withstring:-with}-sdl" >&5
3116echo $ECHO_N "checking for --${withstring:-with}-sdl... $ECHO_C" >&6
a848cd7e
SC
3117 no_cache=0
3118
3119# Check whether --with-sdl or --without-sdl was given.
3120if test "${with_sdl+set}" = set; then
3121 withval="$with_sdl"
3122
3123 if test "$withval" = yes; then
3124 ac_cv_use_sdl='wxUSE_LIBSDL=yes'
3125 else
3126 ac_cv_use_sdl='wxUSE_LIBSDL=no'
3127 fi
3128
3129else
3130
3131 LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}`
3132 if test "x$LINE" != x ; then
3133 eval "DEFAULT_$LINE"
3134 else
3135 no_cache=1
3136 fi
3137
3138 ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL
3139
3140fi;
3141
3142 eval "$ac_cv_use_sdl"
3143 if test "$no_cache" != 1; then
3144 echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp
3145 fi
3146
3147 if test "$wxUSE_LIBSDL" = yes; then
3148 echo "$as_me:$LINENO: result: yes" >&5
3149echo "${ECHO_T}yes" >&6
3150 else
3151 echo "$as_me:$LINENO: result: no" >&5
3152echo "${ECHO_T}no" >&6
3153 fi
3154
3155
1c14217d
VZ
3156 withstring=
3157 echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomeprint" >&5
3158echo $ECHO_N "checking for --${withstring:-with}-gnomeprint... $ECHO_C" >&6
d1c38808
VZ
3159 no_cache=0
3160
3161# Check whether --with-gnomeprint or --without-gnomeprint was given.
3162if test "${with_gnomeprint+set}" = set; then
3163 withval="$with_gnomeprint"
3164
3165 if test "$withval" = yes; then
3166 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes'
3167 else
3168 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no'
3169 fi
3170
3171else
3172
3173 LINE=`grep "wxUSE_LIBGNOMEPRINT" ${wx_arg_cache_file}`
3174 if test "x$LINE" != x ; then
3175 eval "DEFAULT_$LINE"
3176 else
3177 no_cache=1
3178 fi
3179
3180 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT='$DEFAULT_wxUSE_LIBGNOMEPRINT
3181
3182fi;
3183
3184 eval "$ac_cv_use_gnomeprint"
3185 if test "$no_cache" != 1; then
3186 echo $ac_cv_use_gnomeprint >> ${wx_arg_cache_file}.tmp
3187 fi
3188
3189 if test "$wxUSE_LIBGNOMEPRINT" = yes; then
3190 echo "$as_me:$LINENO: result: yes" >&5
3191echo "${ECHO_T}yes" >&6
3192 else
3193 echo "$as_me:$LINENO: result: no" >&5
3194echo "${ECHO_T}no" >&6
3195 fi
3196
3197
2b850ae1
RR
3198 withstring=
3199 echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomevfs" >&5
3200echo $ECHO_N "checking for --${withstring:-with}-gnomevfs... $ECHO_C" >&6
3201 no_cache=0
3202
3203# Check whether --with-gnomevfs or --without-gnomevfs was given.
3204if test "${with_gnomevfs+set}" = set; then
3205 withval="$with_gnomevfs"
3206
3207 if test "$withval" = yes; then
3208 ac_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=yes'
3209 else
3210 ac_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=no'
3211 fi
3212
3213else
3214
3215 LINE=`grep "wxUSE_LIBGNOMEVFS" ${wx_arg_cache_file}`
3216 if test "x$LINE" != x ; then
3217 eval "DEFAULT_$LINE"
3218 else
3219 no_cache=1
3220 fi
3221
3222 ac_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS='$DEFAULT_wxUSE_LIBGNOMEVFS
3223
3224fi;
3225
3226 eval "$ac_cv_use_gnomevfs"
3227 if test "$no_cache" != 1; then
3228 echo $ac_cv_use_gnomevfs >> ${wx_arg_cache_file}.tmp
3229 fi
3230
3231 if test "$wxUSE_LIBGNOMEVFS" = yes; then
3232 echo "$as_me:$LINENO: result: yes" >&5
3233echo "${ECHO_T}yes" >&6
3234 else
3235 echo "$as_me:$LINENO: result: no" >&5
3236echo "${ECHO_T}no" >&6
3237 fi
3238
3239
3565d135
RR
3240 withstring=
3241 echo "$as_me:$LINENO: checking for --${withstring:-with}-hildon" >&5
3242echo $ECHO_N "checking for --${withstring:-with}-hildon... $ECHO_C" >&6
3243 no_cache=0
3244
3245# Check whether --with-hildon or --without-hildon was given.
3246if test "${with_hildon+set}" = set; then
3247 withval="$with_hildon"
3248
3249 if test "$withval" = yes; then
3250 ac_cv_use_hildon='wxUSE_LIBHILDON=yes'
3251 else
3252 ac_cv_use_hildon='wxUSE_LIBHILDON=no'
3253 fi
3254
3255else
3256
3257 LINE=`grep "wxUSE_LIBHILDON" ${wx_arg_cache_file}`
3258 if test "x$LINE" != x ; then
3259 eval "DEFAULT_$LINE"
3260 else
3261 no_cache=1
3262 fi
3263
3264 ac_cv_use_hildon='wxUSE_LIBHILDON='$DEFAULT_wxUSE_LIBHILDON
3265
3266fi;
3267
3268 eval "$ac_cv_use_hildon"
3269 if test "$no_cache" != 1; then
3270 echo $ac_cv_use_hildon >> ${wx_arg_cache_file}.tmp
3271 fi
3272
3273 if test "$wxUSE_LIBHILDON" = yes; then
3274 echo "$as_me:$LINENO: result: yes" >&5
3275echo "${ECHO_T}yes" >&6
3276 else
3277 echo "$as_me:$LINENO: result: no" >&5
3278echo "${ECHO_T}no" >&6
3279 fi
3280
3281
1c14217d
VZ
3282 withstring=
3283 echo "$as_me:$LINENO: checking for --${withstring:-with}-opengl" >&5
3284echo $ECHO_N "checking for --${withstring:-with}-opengl... $ECHO_C" >&6
a848cd7e
SC
3285 no_cache=0
3286
3287# Check whether --with-opengl or --without-opengl was given.
3288if test "${with_opengl+set}" = set; then
3289 withval="$with_opengl"
3290
3291 if test "$withval" = yes; then
3292 ac_cv_use_opengl='wxUSE_OPENGL=yes'
3293 else
3294 ac_cv_use_opengl='wxUSE_OPENGL=no'
3295 fi
3296
3297else
3298
3299 LINE=`grep "wxUSE_OPENGL" ${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_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
3307
3308fi;
3309
3310 eval "$ac_cv_use_opengl"
3311 if test "$no_cache" != 1; then
3312 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
3313 fi
3314
3315 if test "$wxUSE_OPENGL" = 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
3324fi
3325
3326
1c14217d
VZ
3327 withstring=
3328 echo "$as_me:$LINENO: checking for --${withstring:-with}-dmalloc" >&5
3329echo $ECHO_N "checking for --${withstring:-with}-dmalloc... $ECHO_C" >&6
a848cd7e
SC
3330 no_cache=0
3331
3332# Check whether --with-dmalloc or --without-dmalloc was given.
3333if test "${with_dmalloc+set}" = set; then
3334 withval="$with_dmalloc"
3335
3336 if test "$withval" = yes; then
3337 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
3338 else
3339 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
3340 fi
3341
3342else
3343
3344 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
3345 if test "x$LINE" != x ; then
3346 eval "DEFAULT_$LINE"
3347 else
3348 no_cache=1
3349 fi
3350
3351 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
3352
3353fi;
3354
3355 eval "$ac_cv_use_dmalloc"
3356 if test "$no_cache" != 1; then
3357 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
3358 fi
3359
3360 if test "$wxUSE_DMALLOC" = yes; then
3361 echo "$as_me:$LINENO: result: yes" >&5
3362echo "${ECHO_T}yes" >&6
3363 else
3364 echo "$as_me:$LINENO: result: no" >&5
3365echo "${ECHO_T}no" >&6
3366 fi
3367
3368
3369 echo "$as_me:$LINENO: checking for --with-regex" >&5
3370echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3371 no_cache=0
3372
3373# Check whether --with-regex or --without-regex was given.
3374if test "${with_regex+set}" = set; then
3375 withval="$with_regex"
3376
3377 if test "$withval" = yes; then
3378 ac_cv_use_regex='wxUSE_REGEX=yes'
3379 elif test "$withval" = no; then
3380 ac_cv_use_regex='wxUSE_REGEX=no'
3381 elif test "$withval" = sys; then
3382 ac_cv_use_regex='wxUSE_REGEX=sys'
3383 elif test "$withval" = builtin; then
3384 ac_cv_use_regex='wxUSE_REGEX=builtin'
3385 else
3386 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3387echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3388 { (exit 1); exit 1; }; }
3389 fi
3390
3391else
3392
3393 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
3394 if test "x$LINE" != x ; then
3395 eval "DEFAULT_$LINE"
3396 else
3397 no_cache=1
3398 fi
3399
3400 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3401
3402fi;
3403
3404 eval "$ac_cv_use_regex"
3405 if test "$no_cache" != 1; then
3406 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
3407 fi
3408
3409 if test "$wxUSE_REGEX" = yes; then
3410 echo "$as_me:$LINENO: result: yes" >&5
3411echo "${ECHO_T}yes" >&6
3412 elif test "$wxUSE_REGEX" = no; then
3413 echo "$as_me:$LINENO: result: no" >&5
3414echo "${ECHO_T}no" >&6
3415 elif test "$wxUSE_REGEX" = sys; then
3416 echo "$as_me:$LINENO: result: system version" >&5
3417echo "${ECHO_T}system version" >&6
3418 elif test "$wxUSE_REGEX" = builtin; then
3419 echo "$as_me:$LINENO: result: builtin version" >&5
3420echo "${ECHO_T}builtin version" >&6
3421 else
3422 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3423echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3424 { (exit 1); exit 1; }; }
3425 fi
3426
3427
3428 echo "$as_me:$LINENO: checking for --with-zlib" >&5
3429echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
3430 no_cache=0
3431
3432# Check whether --with-zlib or --without-zlib was given.
3433if test "${with_zlib+set}" = set; then
3434 withval="$with_zlib"
3435
3436 if test "$withval" = yes; then
3437 ac_cv_use_zlib='wxUSE_ZLIB=yes'
3438 elif test "$withval" = no; then
3439 ac_cv_use_zlib='wxUSE_ZLIB=no'
3440 elif test "$withval" = sys; then
3441 ac_cv_use_zlib='wxUSE_ZLIB=sys'
3442 elif test "$withval" = builtin; then
3443 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
3444 else
3445 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3446echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3447 { (exit 1); exit 1; }; }
3448 fi
3449
3450else
3451
3452 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
3453 if test "x$LINE" != x ; then
3454 eval "DEFAULT_$LINE"
3455 else
3456 no_cache=1
3457 fi
3458
3459 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
3460
3461fi;
3462
3463 eval "$ac_cv_use_zlib"
3464 if test "$no_cache" != 1; then
3465 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
3466 fi
3467
3468 if test "$wxUSE_ZLIB" = yes; then
3469 echo "$as_me:$LINENO: result: yes" >&5
3470echo "${ECHO_T}yes" >&6
3471 elif test "$wxUSE_ZLIB" = no; then
3472 echo "$as_me:$LINENO: result: no" >&5
3473echo "${ECHO_T}no" >&6
3474 elif test "$wxUSE_ZLIB" = sys; then
3475 echo "$as_me:$LINENO: result: system version" >&5
3476echo "${ECHO_T}system version" >&6
3477 elif test "$wxUSE_ZLIB" = builtin; then
3478 echo "$as_me:$LINENO: result: builtin version" >&5
3479echo "${ECHO_T}builtin version" >&6
3480 else
3481 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3482echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3483 { (exit 1); exit 1; }; }
3484 fi
3485
3486
3487 echo "$as_me:$LINENO: checking for --with-odbc" >&5
3488echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
3489 no_cache=0
3490
3491# Check whether --with-odbc or --without-odbc was given.
3492if test "${with_odbc+set}" = set; then
3493 withval="$with_odbc"
3494
3495 if test "$withval" = yes; then
3496 ac_cv_use_odbc='wxUSE_ODBC=yes'
3497 elif test "$withval" = no; then
3498 ac_cv_use_odbc='wxUSE_ODBC=no'
3499 elif test "$withval" = sys; then
3500 ac_cv_use_odbc='wxUSE_ODBC=sys'
3501 elif test "$withval" = builtin; then
3502 ac_cv_use_odbc='wxUSE_ODBC=builtin'
3503 else
3504 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3505echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3506 { (exit 1); exit 1; }; }
3507 fi
3508
3509else
3510
3511 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
3512 if test "x$LINE" != x ; then
3513 eval "DEFAULT_$LINE"
3514 else
3515 no_cache=1
3516 fi
3517
3518 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
3519
3520fi;
3521
3522 eval "$ac_cv_use_odbc"
3523 if test "$no_cache" != 1; then
3524 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3525 fi
3526
3527 if test "$wxUSE_ODBC" = yes; then
3528 echo "$as_me:$LINENO: result: yes" >&5
3529echo "${ECHO_T}yes" >&6
3530 elif test "$wxUSE_ODBC" = no; then
3531 echo "$as_me:$LINENO: result: no" >&5
3532echo "${ECHO_T}no" >&6
3533 elif test "$wxUSE_ODBC" = sys; then
3534 echo "$as_me:$LINENO: result: system version" >&5
3535echo "${ECHO_T}system version" >&6
3536 elif test "$wxUSE_ODBC" = builtin; then
3537 echo "$as_me:$LINENO: result: builtin version" >&5
3538echo "${ECHO_T}builtin version" >&6
3539 else
3540 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3541echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3542 { (exit 1); exit 1; }; }
3543 fi
3544
3545
3546 echo "$as_me:$LINENO: checking for --with-expat" >&5
3547echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3548 no_cache=0
3549
3550# Check whether --with-expat or --without-expat was given.
3551if test "${with_expat+set}" = set; then
3552 withval="$with_expat"
3553
3554 if test "$withval" = yes; then
3555 ac_cv_use_expat='wxUSE_EXPAT=yes'
3556 elif test "$withval" = no; then
3557 ac_cv_use_expat='wxUSE_EXPAT=no'
3558 elif test "$withval" = sys; then
3559 ac_cv_use_expat='wxUSE_EXPAT=sys'
3560 elif test "$withval" = builtin; then
3561 ac_cv_use_expat='wxUSE_EXPAT=builtin'
3562 else
3563 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3564echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3565 { (exit 1); exit 1; }; }
3566 fi
3567
3568else
3569
3570 LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3571 if test "x$LINE" != x ; then
3572 eval "DEFAULT_$LINE"
3573 else
3574 no_cache=1
3575 fi
3576
3577 ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3578
3579fi;
3580
3581 eval "$ac_cv_use_expat"
3582 if test "$no_cache" != 1; then
3583 echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3584 fi
3585
3586 if test "$wxUSE_EXPAT" = yes; then
3587 echo "$as_me:$LINENO: result: yes" >&5
3588echo "${ECHO_T}yes" >&6
3589 elif test "$wxUSE_EXPAT" = no; then
3590 echo "$as_me:$LINENO: result: no" >&5
3591echo "${ECHO_T}no" >&6
3592 elif test "$wxUSE_EXPAT" = sys; then
3593 echo "$as_me:$LINENO: result: system version" >&5
3594echo "${ECHO_T}system version" >&6
3595 elif test "$wxUSE_EXPAT" = builtin; then
3596 echo "$as_me:$LINENO: result: builtin version" >&5
3597echo "${ECHO_T}builtin version" >&6
3598 else
3599 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3600echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3601 { (exit 1); exit 1; }; }
3602 fi
3603
3604
3605
3606
3607 enablestring=
3608 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3609echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
3610 no_cache=0
3611 # Check whether --enable-shared or --disable-shared was given.
3612if test "${enable_shared+set}" = set; then
3613 enableval="$enable_shared"
3614
3615 if test "$enableval" = yes; then
3616 ac_cv_use_shared='wxUSE_SHARED=yes'
3617 else
3618 ac_cv_use_shared='wxUSE_SHARED=no'
3619 fi
3620
3621else
3622
3623 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3624 if test "x$LINE" != x ; then
3625 eval "DEFAULT_$LINE"
3626 else
3627 no_cache=1
3628 fi
3629
3630 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
3631
3632fi;
3633
3634 eval "$ac_cv_use_shared"
3635 if test "$no_cache" != 1; then
3636 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3637 fi
3638
3639 if test "$wxUSE_SHARED" = yes; then
3640 echo "$as_me:$LINENO: result: yes" >&5
3641echo "${ECHO_T}yes" >&6
3642 else
3643 echo "$as_me:$LINENO: result: no" >&5
3644echo "${ECHO_T}no" >&6
3645 fi
3646
3647
3648 enablestring=
3649 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3650echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
3651 no_cache=0
3652 # Check whether --enable-optimise or --disable-optimise was given.
3653if test "${enable_optimise+set}" = set; then
3654 enableval="$enable_optimise"
3655
3656 if test "$enableval" = yes; then
3657 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3658 else
3659 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3660 fi
3661
3662else
3663
3664 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3665 if test "x$LINE" != x ; then
3666 eval "DEFAULT_$LINE"
3667 else
3668 no_cache=1
3669 fi
3670
3671 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
3672
3673fi;
3674
3675 eval "$ac_cv_use_optimise"
3676 if test "$no_cache" != 1; then
3677 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3678 fi
3679
3680 if test "$wxUSE_OPTIMISE" = yes; then
3681 echo "$as_me:$LINENO: result: yes" >&5
3682echo "${ECHO_T}yes" >&6
3683 else
3684 echo "$as_me:$LINENO: result: no" >&5
3685echo "${ECHO_T}no" >&6
3686 fi
3687
3688
3689 enablestring=
3690 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3691echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
3692 no_cache=0
3693 # Check whether --enable-debug or --disable-debug was given.
3694if test "${enable_debug+set}" = set; then
3695 enableval="$enable_debug"
3696
3697 if test "$enableval" = yes; then
3698 ac_cv_use_debug='wxUSE_DEBUG=yes'
3699 else
3700 ac_cv_use_debug='wxUSE_DEBUG=no'
3701 fi
3702
3703else
3704
3705 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3706 if test "x$LINE" != x ; then
3707 eval "DEFAULT_$LINE"
3708 else
3709 no_cache=1
3710 fi
3711
3712 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
3713
3714fi;
3715
3716 eval "$ac_cv_use_debug"
3717 if test "$no_cache" != 1; then
3718 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3719 fi
3720
3721 if test "$wxUSE_DEBUG" = yes; then
3722 echo "$as_me:$LINENO: result: yes" >&5
3723echo "${ECHO_T}yes" >&6
3724 else
3725 echo "$as_me:$LINENO: result: no" >&5
3726echo "${ECHO_T}no" >&6
3727 fi
3728
3729
3730 enablestring=
3731 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3732echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3733 no_cache=0
3734 # Check whether --enable-stl or --disable-stl was given.
3735if test "${enable_stl+set}" = set; then
3736 enableval="$enable_stl"
3737
3738 if test "$enableval" = yes; then
3739 ac_cv_use_stl='wxUSE_STL=yes'
3740 else
3741 ac_cv_use_stl='wxUSE_STL=no'
3742 fi
3743
3744else
3745
3746 LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3747 if test "x$LINE" != x ; then
3748 eval "DEFAULT_$LINE"
3749 else
3750 no_cache=1
3751 fi
3752
3753 ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3754
3755fi;
3756
3757 eval "$ac_cv_use_stl"
3758 if test "$no_cache" != 1; then
3759 echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3760 fi
3761
3762 if test "$wxUSE_STL" = yes; then
3763 echo "$as_me:$LINENO: result: yes" >&5
3764echo "${ECHO_T}yes" >&6
3765 else
3766 echo "$as_me:$LINENO: result: no" >&5
3767echo "${ECHO_T}no" >&6
3768 fi
3769
3770if test "$USE_OS2" = "1"; then
69120ee4 3771 DEFAULT_wxUSE_OMF=no
a848cd7e
SC
3772
3773 enablestring=
3774 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
3775echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6
3776 no_cache=0
3777 # Check whether --enable-omf or --disable-omf was given.
3778if test "${enable_omf+set}" = set; then
3779 enableval="$enable_omf"
3780
3781 if test "$enableval" = yes; then
3782 ac_cv_use_omf='wxUSE_OMF=yes'
3783 else
3784 ac_cv_use_omf='wxUSE_OMF=no'
3785 fi
3786
3787else
3788
3789 LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}`
3790 if test "x$LINE" != x ; then
3791 eval "DEFAULT_$LINE"
3792 else
3793 no_cache=1
3794 fi
3795
3796 ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF
3797
3798fi;
3799
3800 eval "$ac_cv_use_omf"
3801 if test "$no_cache" != 1; then
3802 echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp
3803 fi
3804
3805 if test "$wxUSE_OMF" = yes; then
3806 echo "$as_me:$LINENO: result: yes" >&5
3807echo "${ECHO_T}yes" >&6
3808 else
3809 echo "$as_me:$LINENO: result: no" >&5
3810echo "${ECHO_T}no" >&6
3811 fi
3812
3813fi
3814
3815if test "$wxUSE_DEBUG" = "yes"; then
3816 DEFAULT_wxUSE_DEBUG_FLAG=yes
3817 DEFAULT_wxUSE_DEBUG_INFO=yes
3818 BUILD=debug
3819elif test "$wxUSE_DEBUG" = "no"; then
3820 DEFAULT_wxUSE_DEBUG_FLAG=no
3821 DEFAULT_wxUSE_DEBUG_INFO=no
3822 BUILD=release
3823fi
3824
3825
3826 enablestring=
3827 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
3828echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
3829 no_cache=0
3830 # Check whether --enable-debug_flag or --disable-debug_flag was given.
3831if test "${enable_debug_flag+set}" = set; then
3832 enableval="$enable_debug_flag"
3833
3834 if test "$enableval" = yes; then
3835 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
3836 else
3837 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
3838 fi
3839
3840else
3841
3842 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
3843 if test "x$LINE" != x ; then
3844 eval "DEFAULT_$LINE"
3845 else
3846 no_cache=1
3847 fi
3848
3849 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
3850
3851fi;
3852
3853 eval "$ac_cv_use_debug_flag"
3854 if test "$no_cache" != 1; then
3855 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
3856 fi
3857
3858 if test "$wxUSE_DEBUG_FLAG" = yes; then
3859 echo "$as_me:$LINENO: result: yes" >&5
3860echo "${ECHO_T}yes" >&6
3861 else
3862 echo "$as_me:$LINENO: result: no" >&5
3863echo "${ECHO_T}no" >&6
3864 fi
3865
3866
3867 enablestring=
3868 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
3869echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
3870 no_cache=0
3871 # Check whether --enable-debug_info or --disable-debug_info was given.
3872if test "${enable_debug_info+set}" = set; then
3873 enableval="$enable_debug_info"
3874
3875 if test "$enableval" = yes; then
3876 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
3877 else
3878 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
3879 fi
3880
3881else
3882
3883 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
3884 if test "x$LINE" != x ; then
3885 eval "DEFAULT_$LINE"
3886 else
3887 no_cache=1
3888 fi
3889
3890 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
3891
3892fi;
3893
3894 eval "$ac_cv_use_debug_info"
3895 if test "$no_cache" != 1; then
3896 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
3897 fi
3898
3899 if test "$wxUSE_DEBUG_INFO" = yes; then
3900 echo "$as_me:$LINENO: result: yes" >&5
3901echo "${ECHO_T}yes" >&6
3902 else
3903 echo "$as_me:$LINENO: result: no" >&5
3904echo "${ECHO_T}no" >&6
3905 fi
3906
3907
3908 enablestring=
3909 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
3910echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
3911 no_cache=0
3912 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
3913if test "${enable_debug_gdb+set}" = set; then
3914 enableval="$enable_debug_gdb"
3915
3916 if test "$enableval" = yes; then
3917 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
3918 else
3919 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
3920 fi
3921
3922else
3923
3924 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
3925 if test "x$LINE" != x ; then
3926 eval "DEFAULT_$LINE"
3927 else
3928 no_cache=1
3929 fi
3930
3931 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
3932
3933fi;
3934
3935 eval "$ac_cv_use_debug_gdb"
3936 if test "$no_cache" != 1; then
3937 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
3938 fi
3939
3940 if test "$wxUSE_DEBUG_GDB" = yes; then
3941 echo "$as_me:$LINENO: result: yes" >&5
3942echo "${ECHO_T}yes" >&6
3943 else
3944 echo "$as_me:$LINENO: result: no" >&5
3945echo "${ECHO_T}no" >&6
3946 fi
3947
3948
3949 enablestring=
3950 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
3951echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
3952 no_cache=0
3953 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
3954if test "${enable_debug_cntxt+set}" = set; then
3955 enableval="$enable_debug_cntxt"
3956
3957 if test "$enableval" = yes; then
3958 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
3959 else
3960 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
3961 fi
3962
3963else
3964
3965 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
3966 if test "x$LINE" != x ; then
3967 eval "DEFAULT_$LINE"
3968 else
3969 no_cache=1
3970 fi
3971
3972 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
3973
3974fi;
3975
3976 eval "$ac_cv_use_debug_cntxt"
3977 if test "$no_cache" != 1; then
3978 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
3979 fi
3980
3981 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
3982 echo "$as_me:$LINENO: result: yes" >&5
3983echo "${ECHO_T}yes" >&6
3984 else
3985 echo "$as_me:$LINENO: result: no" >&5
3986echo "${ECHO_T}no" >&6
3987 fi
3988
3989
3990 enablestring=
3991 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
3992echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
3993 no_cache=0
3994 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
3995if test "${enable_mem_tracing+set}" = set; then
3996 enableval="$enable_mem_tracing"
3997
3998 if test "$enableval" = yes; then
3999 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
4000 else
4001 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
4002 fi
4003
4004else
4005
4006 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
4007 if test "x$LINE" != x ; then
4008 eval "DEFAULT_$LINE"
4009 else
4010 no_cache=1
4011 fi
4012
4013 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
4014
4015fi;
4016
4017 eval "$ac_cv_use_mem_tracing"
4018 if test "$no_cache" != 1; then
4019 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
4020 fi
4021
4022 if test "$wxUSE_MEM_TRACING" = yes; then
4023 echo "$as_me:$LINENO: result: yes" >&5
4024echo "${ECHO_T}yes" >&6
4025 else
4026 echo "$as_me:$LINENO: result: no" >&5
4027echo "${ECHO_T}no" >&6
4028 fi
4029
4030
4031 enablestring=
4032 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
4033echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
4034 no_cache=0
4035 # Check whether --enable-profile or --disable-profile was given.
4036if test "${enable_profile+set}" = set; then
4037 enableval="$enable_profile"
4038
4039 if test "$enableval" = yes; then
4040 ac_cv_use_profile='wxUSE_PROFILE=yes'
4041 else
4042 ac_cv_use_profile='wxUSE_PROFILE=no'
4043 fi
4044
4045else
4046
4047 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
4048 if test "x$LINE" != x ; then
4049 eval "DEFAULT_$LINE"
4050 else
4051 no_cache=1
4052 fi
4053
4054 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
4055
4056fi;
4057
4058 eval "$ac_cv_use_profile"
4059 if test "$no_cache" != 1; then
4060 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
4061 fi
4062
4063 if test "$wxUSE_PROFILE" = yes; then
4064 echo "$as_me:$LINENO: result: yes" >&5
4065echo "${ECHO_T}yes" >&6
4066 else
4067 echo "$as_me:$LINENO: result: no" >&5
4068echo "${ECHO_T}no" >&6
4069 fi
4070
4071
4072 enablestring=
4073 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
4074echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
4075 no_cache=0
4076 # Check whether --enable-no_rtti or --disable-no_rtti was given.
4077if test "${enable_no_rtti+set}" = set; then
4078 enableval="$enable_no_rtti"
4079
4080 if test "$enableval" = yes; then
4081 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
4082 else
4083 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
4084 fi
4085
4086else
4087
4088 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
4089 if test "x$LINE" != x ; then
4090 eval "DEFAULT_$LINE"
4091 else
4092 no_cache=1
4093 fi
4094
4095 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
4096
4097fi;
4098
4099 eval "$ac_cv_use_no_rtti"
4100 if test "$no_cache" != 1; then
4101 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
4102 fi
4103
4104 if test "$wxUSE_NO_RTTI" = yes; then
4105 echo "$as_me:$LINENO: result: yes" >&5
4106echo "${ECHO_T}yes" >&6
4107 else
4108 echo "$as_me:$LINENO: result: no" >&5
4109echo "${ECHO_T}no" >&6
4110 fi
4111
4112
4113 enablestring=
4114 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
4115echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
4116 no_cache=0
4117 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
4118if test "${enable_no_exceptions+set}" = set; then
4119 enableval="$enable_no_exceptions"
4120
4121 if test "$enableval" = yes; then
4122 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
4123 else
4124 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
4125 fi
4126
4127else
4128
4129 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
4130 if test "x$LINE" != x ; then
4131 eval "DEFAULT_$LINE"
4132 else
4133 no_cache=1
4134 fi
4135
4136 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
4137
4138fi;
4139
4140 eval "$ac_cv_use_no_exceptions"
4141 if test "$no_cache" != 1; then
4142 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
4143 fi
4144
4145 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
4146 echo "$as_me:$LINENO: result: yes" >&5
4147echo "${ECHO_T}yes" >&6
4148 else
4149 echo "$as_me:$LINENO: result: no" >&5
4150echo "${ECHO_T}no" >&6
4151 fi
4152
4153
4154 enablestring=
4155 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
4156echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
4157 no_cache=0
4158 # Check whether --enable-permissive or --disable-permissive was given.
4159if test "${enable_permissive+set}" = set; then
4160 enableval="$enable_permissive"
4161
4162 if test "$enableval" = yes; then
4163 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
4164 else
4165 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
4166 fi
4167
4168else
4169
4170 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
4171 if test "x$LINE" != x ; then
4172 eval "DEFAULT_$LINE"
4173 else
4174 no_cache=1
4175 fi
4176
4177 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
4178
4179fi;
4180
4181 eval "$ac_cv_use_permissive"
4182 if test "$no_cache" != 1; then
4183 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
4184 fi
4185
4186 if test "$wxUSE_PERMISSIVE" = yes; then
4187 echo "$as_me:$LINENO: result: yes" >&5
4188echo "${ECHO_T}yes" >&6
4189 else
4190 echo "$as_me:$LINENO: result: no" >&5
4191echo "${ECHO_T}no" >&6
4192 fi
4193
4194
4195 enablestring=
4196 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
4197echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
4198 no_cache=0
4199 # Check whether --enable-no_deps or --disable-no_deps was given.
4200if test "${enable_no_deps+set}" = set; then
4201 enableval="$enable_no_deps"
4202
4203 if test "$enableval" = yes; then
4204 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
4205 else
4206 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
4207 fi
4208
4209else
4210
4211 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
4212 if test "x$LINE" != x ; then
4213 eval "DEFAULT_$LINE"
4214 else
4215 no_cache=1
4216 fi
4217
4218 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
4219
4220fi;
4221
4222 eval "$ac_cv_use_no_deps"
4223 if test "$no_cache" != 1; then
4224 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
4225 fi
4226
4227 if test "$wxUSE_NO_DEPS" = yes; then
4228 echo "$as_me:$LINENO: result: yes" >&5
4229echo "${ECHO_T}yes" >&6
4230 else
4231 echo "$as_me:$LINENO: result: no" >&5
4232echo "${ECHO_T}no" >&6
4233 fi
4234
4235
7afc46ab
KO
4236 enablestring=
4237 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal_binary" >&5
4238echo $ECHO_N "checking for --${enablestring:-enable}-universal_binary... $ECHO_C" >&6
4239 no_cache=0
4240 # Check whether --enable-universal_binary or --disable-universal_binary was given.
4241if test "${enable_universal_binary+set}" = set; then
4242 enableval="$enable_universal_binary"
4243
4244 if test "$enableval" = yes; then
4245 ac_cv_use_universal_binary='wxUSE_UNIVERSAL_BINARY=yes'
4246 else
4247 ac_cv_use_universal_binary='wxUSE_UNIVERSAL_BINARY=no'
4248 fi
4249
4250else
4251
4252 LINE=`grep "wxUSE_UNIVERSAL_BINARY" ${wx_arg_cache_file}`
4253 if test "x$LINE" != x ; then
4254 eval "DEFAULT_$LINE"
4255 else
4256 no_cache=1
4257 fi
4258
4259 ac_cv_use_universal_binary='wxUSE_UNIVERSAL_BINARY='$DEFAULT_wxUSE_UNIVERSAL_BINARY
4260
4261fi;
4262
4263 eval "$ac_cv_use_universal_binary"
4264 if test "$no_cache" != 1; then
4265 echo $ac_cv_use_universal_binary >> ${wx_arg_cache_file}.tmp
4266 fi
4267
4268 if test "$wxUSE_UNIVERSAL_BINARY" = yes; then
4269 echo "$as_me:$LINENO: result: yes" >&5
4270echo "${ECHO_T}yes" >&6
4271 else
4272 echo "$as_me:$LINENO: result: no" >&5
4273echo "${ECHO_T}no" >&6
4274 fi
4275
4276
a848cd7e 4277
dee1a63f
MB
4278 enablestring=enable
4279 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
4280echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
a848cd7e 4281 no_cache=0
dee1a63f
MB
4282 # Check whether --enable-compat24 or --disable-compat24 was given.
4283if test "${enable_compat24+set}" = set; then
4284 enableval="$enable_compat24"
a848cd7e
SC
4285
4286 if test "$enableval" = yes; then
dee1a63f 4287 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
a848cd7e 4288 else
dee1a63f 4289 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
a848cd7e
SC
4290 fi
4291
4292else
4293
dee1a63f 4294 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
a848cd7e
SC
4295 if test "x$LINE" != x ; then
4296 eval "DEFAULT_$LINE"
4297 else
4298 no_cache=1
4299 fi
4300
dee1a63f 4301 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
a848cd7e
SC
4302
4303fi;
4304
dee1a63f 4305 eval "$ac_cv_use_compat24"
a848cd7e 4306 if test "$no_cache" != 1; then
dee1a63f 4307 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
4308 fi
4309
dee1a63f 4310 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
a848cd7e
SC
4311 echo "$as_me:$LINENO: result: yes" >&5
4312echo "${ECHO_T}yes" >&6
4313 else
4314 echo "$as_me:$LINENO: result: no" >&5
4315echo "${ECHO_T}no" >&6
4316 fi
4317
4318
4319 enablestring=disable
dee1a63f
MB
4320 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat26" >&5
4321echo $ECHO_N "checking for --${enablestring:-enable}-compat26... $ECHO_C" >&6
a848cd7e 4322 no_cache=0
dee1a63f
MB
4323 # Check whether --enable-compat26 or --disable-compat26 was given.
4324if test "${enable_compat26+set}" = set; then
4325 enableval="$enable_compat26"
a848cd7e
SC
4326
4327 if test "$enableval" = yes; then
dee1a63f 4328 ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=yes'
a848cd7e 4329 else
dee1a63f 4330 ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=no'
a848cd7e
SC
4331 fi
4332
4333else
4334
dee1a63f 4335 LINE=`grep "WXWIN_COMPATIBILITY_2_6" ${wx_arg_cache_file}`
a848cd7e
SC
4336 if test "x$LINE" != x ; then
4337 eval "DEFAULT_$LINE"
4338 else
4339 no_cache=1
4340 fi
4341
dee1a63f 4342 ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6='$DEFAULT_WXWIN_COMPATIBILITY_2_6
a848cd7e
SC
4343
4344fi;
4345
dee1a63f 4346 eval "$ac_cv_use_compat26"
a848cd7e 4347 if test "$no_cache" != 1; then
dee1a63f 4348 echo $ac_cv_use_compat26 >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
4349 fi
4350
dee1a63f 4351 if test "$WXWIN_COMPATIBILITY_2_6" = yes; then
a848cd7e
SC
4352 echo "$as_me:$LINENO: result: yes" >&5
4353echo "${ECHO_T}yes" >&6
4354 else
4355 echo "$as_me:$LINENO: result: no" >&5
4356echo "${ECHO_T}no" >&6
4357 fi
4358
4359
ffa0583f
RL
4360
4361 enablestring=
4362 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5
4363echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6
4364 no_cache=0
4365 # Check whether --enable-rpath or --disable-rpath was given.
a848cd7e
SC
4366if test "${enable_rpath+set}" = set; then
4367 enableval="$enable_rpath"
ffa0583f
RL
4368
4369 if test "$enableval" = yes; then
4370 ac_cv_use_rpath='wxUSE_RPATH=yes'
4371 else
4372 ac_cv_use_rpath='wxUSE_RPATH=no'
4373 fi
4374
4375else
4376
4377 LINE=`grep "wxUSE_RPATH" ${wx_arg_cache_file}`
4378 if test "x$LINE" != x ; then
4379 eval "DEFAULT_$LINE"
4380 else
4381 no_cache=1
4382 fi
4383
4384 ac_cv_use_rpath='wxUSE_RPATH='$DEFAULT_wxUSE_RPATH
4385
a848cd7e
SC
4386fi;
4387
ffa0583f
RL
4388 eval "$ac_cv_use_rpath"
4389 if test "$no_cache" != 1; then
4390 echo $ac_cv_use_rpath >> ${wx_arg_cache_file}.tmp
4391 fi
4392
4393 if test "$wxUSE_RPATH" = yes; then
4394 echo "$as_me:$LINENO: result: yes" >&5
4395echo "${ECHO_T}yes" >&6
4396 else
4397 echo "$as_me:$LINENO: result: no" >&5
4398echo "${ECHO_T}no" >&6
4399 fi
4400
a848cd7e
SC
4401
4402
4403
4404
4405 enablestring=
4406 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
4407echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
4408 no_cache=0
4409 # Check whether --enable-intl or --disable-intl was given.
4410if test "${enable_intl+set}" = set; then
4411 enableval="$enable_intl"
4412
4413 if test "$enableval" = yes; then
4414 ac_cv_use_intl='wxUSE_INTL=yes'
4415 else
4416 ac_cv_use_intl='wxUSE_INTL=no'
4417 fi
4418
4419else
4420
4421 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
4422 if test "x$LINE" != x ; then
4423 eval "DEFAULT_$LINE"
4424 else
4425 no_cache=1
4426 fi
4427
4428 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
4429
4430fi;
4431
4432 eval "$ac_cv_use_intl"
4433 if test "$no_cache" != 1; then
4434 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
4435 fi
4436
4437 if test "$wxUSE_INTL" = yes; then
4438 echo "$as_me:$LINENO: result: yes" >&5
4439echo "${ECHO_T}yes" >&6
4440 else
4441 echo "$as_me:$LINENO: result: no" >&5
4442echo "${ECHO_T}no" >&6
4443 fi
4444
4445
4446 enablestring=
4447 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
4448echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
4449 no_cache=0
4450 # Check whether --enable-config or --disable-config was given.
4451if test "${enable_config+set}" = set; then
4452 enableval="$enable_config"
4453
4454 if test "$enableval" = yes; then
4455 ac_cv_use_config='wxUSE_CONFIG=yes'
4456 else
4457 ac_cv_use_config='wxUSE_CONFIG=no'
4458 fi
4459
4460else
4461
4462 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
4463 if test "x$LINE" != x ; then
4464 eval "DEFAULT_$LINE"
4465 else
4466 no_cache=1
4467 fi
4468
4469 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
4470
4471fi;
4472
4473 eval "$ac_cv_use_config"
4474 if test "$no_cache" != 1; then
4475 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
4476 fi
4477
4478 if test "$wxUSE_CONFIG" = yes; then
4479 echo "$as_me:$LINENO: result: yes" >&5
4480echo "${ECHO_T}yes" >&6
4481 else
4482 echo "$as_me:$LINENO: result: no" >&5
4483echo "${ECHO_T}no" >&6
4484 fi
4485
4486
4487
4488 enablestring=
4489 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
4490echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
4491 no_cache=0
4492 # Check whether --enable-protocols or --disable-protocols was given.
4493if test "${enable_protocols+set}" = set; then
4494 enableval="$enable_protocols"
4495
4496 if test "$enableval" = yes; then
4497 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
4498 else
4499 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
4500 fi
4501
4502else
4503
4504 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4505 if test "x$LINE" != x ; then
4506 eval "DEFAULT_$LINE"
4507 else
4508 no_cache=1
4509 fi
4510
4511 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4512
4513fi;
4514
4515 eval "$ac_cv_use_protocols"
4516 if test "$no_cache" != 1; then
4517 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
4518 fi
4519
4520 if test "$wxUSE_PROTOCOL" = yes; then
4521 echo "$as_me:$LINENO: result: yes" >&5
4522echo "${ECHO_T}yes" >&6
4523 else
4524 echo "$as_me:$LINENO: result: no" >&5
4525echo "${ECHO_T}no" >&6
4526 fi
4527
4528
4529 enablestring=
4530 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
4531echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
4532 no_cache=0
4533 # Check whether --enable-ftp or --disable-ftp was given.
4534if test "${enable_ftp+set}" = set; then
4535 enableval="$enable_ftp"
4536
4537 if test "$enableval" = yes; then
4538 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
4539 else
4540 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
4541 fi
4542
4543else
4544
4545 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4546 if test "x$LINE" != x ; then
4547 eval "DEFAULT_$LINE"
4548 else
4549 no_cache=1
4550 fi
4551
4552 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4553
4554fi;
4555
4556 eval "$ac_cv_use_ftp"
4557 if test "$no_cache" != 1; then
4558 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
4559 fi
4560
4561 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4562 echo "$as_me:$LINENO: result: yes" >&5
4563echo "${ECHO_T}yes" >&6
4564 else
4565 echo "$as_me:$LINENO: result: no" >&5
4566echo "${ECHO_T}no" >&6
4567 fi
4568
4569
4570 enablestring=
4571 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
4572echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
4573 no_cache=0
4574 # Check whether --enable-http or --disable-http was given.
4575if test "${enable_http+set}" = set; then
4576 enableval="$enable_http"
4577
4578 if test "$enableval" = yes; then
4579 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
4580 else
4581 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
4582 fi
4583
4584else
4585
4586 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4587 if test "x$LINE" != x ; then
4588 eval "DEFAULT_$LINE"
4589 else
4590 no_cache=1
4591 fi
4592
4593 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4594
4595fi;
4596
4597 eval "$ac_cv_use_http"
4598 if test "$no_cache" != 1; then
4599 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
4600 fi
4601
4602 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4603 echo "$as_me:$LINENO: result: yes" >&5
4604echo "${ECHO_T}yes" >&6
4605 else
4606 echo "$as_me:$LINENO: result: no" >&5
4607echo "${ECHO_T}no" >&6
4608 fi
4609
4610
4611 enablestring=
4612 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
4613echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
4614 no_cache=0
4615 # Check whether --enable-fileproto or --disable-fileproto was given.
4616if test "${enable_fileproto+set}" = set; then
4617 enableval="$enable_fileproto"
4618
4619 if test "$enableval" = yes; then
4620 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4621 else
4622 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4623 fi
4624
4625else
4626
4627 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4628 if test "x$LINE" != x ; then
4629 eval "DEFAULT_$LINE"
4630 else
4631 no_cache=1
4632 fi
4633
4634 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4635
4636fi;
4637
4638 eval "$ac_cv_use_fileproto"
4639 if test "$no_cache" != 1; then
4640 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4641 fi
4642
4643 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4644 echo "$as_me:$LINENO: result: yes" >&5
4645echo "${ECHO_T}yes" >&6
4646 else
4647 echo "$as_me:$LINENO: result: no" >&5
4648echo "${ECHO_T}no" >&6
4649 fi
4650
4651
4652 enablestring=
4653 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4654echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
4655 no_cache=0
4656 # Check whether --enable-sockets or --disable-sockets was given.
4657if test "${enable_sockets+set}" = set; then
4658 enableval="$enable_sockets"
4659
4660 if test "$enableval" = yes; then
4661 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4662 else
4663 ac_cv_use_sockets='wxUSE_SOCKETS=no'
4664 fi
4665
4666else
4667
4668 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4669 if test "x$LINE" != x ; then
4670 eval "DEFAULT_$LINE"
4671 else
4672 no_cache=1
4673 fi
4674
4675 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
4676
4677fi;
4678
4679 eval "$ac_cv_use_sockets"
4680 if test "$no_cache" != 1; then
4681 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4682 fi
4683
4684 if test "$wxUSE_SOCKETS" = yes; then
4685 echo "$as_me:$LINENO: result: yes" >&5
4686echo "${ECHO_T}yes" >&6
4687 else
4688 echo "$as_me:$LINENO: result: no" >&5
4689echo "${ECHO_T}no" >&6
4690 fi
4691
4692
4693 enablestring=
4694 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4695echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
4696 no_cache=0
4697 # Check whether --enable-ole or --disable-ole was given.
4698if test "${enable_ole+set}" = set; then
4699 enableval="$enable_ole"
4700
4701 if test "$enableval" = yes; then
4702 ac_cv_use_ole='wxUSE_OLE=yes'
4703 else
4704 ac_cv_use_ole='wxUSE_OLE=no'
4705 fi
4706
4707else
4708
4709 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4710 if test "x$LINE" != x ; then
4711 eval "DEFAULT_$LINE"
4712 else
4713 no_cache=1
4714 fi
4715
4716 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
4717
4718fi;
4719
4720 eval "$ac_cv_use_ole"
4721 if test "$no_cache" != 1; then
4722 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4723 fi
4724
4725 if test "$wxUSE_OLE" = yes; then
4726 echo "$as_me:$LINENO: result: yes" >&5
4727echo "${ECHO_T}yes" >&6
4728 else
4729 echo "$as_me:$LINENO: result: no" >&5
4730echo "${ECHO_T}no" >&6
4731 fi
4732
4733
4734 enablestring=
4735 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4736echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
4737 no_cache=0
4738 # Check whether --enable-dataobj or --disable-dataobj was given.
4739if test "${enable_dataobj+set}" = set; then
4740 enableval="$enable_dataobj"
4741
4742 if test "$enableval" = yes; then
4743 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4744 else
4745 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4746 fi
4747
4748else
4749
4750 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4751 if test "x$LINE" != x ; then
4752 eval "DEFAULT_$LINE"
4753 else
4754 no_cache=1
4755 fi
4756
4757 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
4758
4759fi;
4760
4761 eval "$ac_cv_use_dataobj"
4762 if test "$no_cache" != 1; then
4763 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4764 fi
4765
4766 if test "$wxUSE_DATAOBJ" = yes; then
4767 echo "$as_me:$LINENO: result: yes" >&5
4768echo "${ECHO_T}yes" >&6
4769 else
4770 echo "$as_me:$LINENO: result: no" >&5
4771echo "${ECHO_T}no" >&6
4772 fi
4773
4774
4775
4776 enablestring=
4777 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4778echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
4779 no_cache=0
4780 # Check whether --enable-ipc or --disable-ipc was given.
4781if test "${enable_ipc+set}" = set; then
4782 enableval="$enable_ipc"
4783
4784 if test "$enableval" = yes; then
4785 ac_cv_use_ipc='wxUSE_IPC=yes'
4786 else
4787 ac_cv_use_ipc='wxUSE_IPC=no'
4788 fi
4789
4790else
4791
4792 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
4793 if test "x$LINE" != x ; then
4794 eval "DEFAULT_$LINE"
4795 else
4796 no_cache=1
4797 fi
4798
4799 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
4800
4801fi;
4802
4803 eval "$ac_cv_use_ipc"
4804 if test "$no_cache" != 1; then
4805 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
4806 fi
4807
4808 if test "$wxUSE_IPC" = yes; then
4809 echo "$as_me:$LINENO: result: yes" >&5
4810echo "${ECHO_T}yes" >&6
4811 else
4812 echo "$as_me:$LINENO: result: no" >&5
4813echo "${ECHO_T}no" >&6
4814 fi
4815
4816
4817
4818 enablestring=
4819 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4820echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
4821 no_cache=0
4822 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4823if test "${enable_apple_ieee+set}" = set; then
4824 enableval="$enable_apple_ieee"
4825
4826 if test "$enableval" = yes; then
4827 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
4828 else
4829 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
4830 fi
4831
4832else
4833
4834 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
4835 if test "x$LINE" != x ; then
4836 eval "DEFAULT_$LINE"
4837 else
4838 no_cache=1
4839 fi
4840
4841 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
4842
4843fi;
4844
4845 eval "$ac_cv_use_apple_ieee"
4846 if test "$no_cache" != 1; then
4847 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
4848 fi
4849
4850 if test "$wxUSE_APPLE_IEEE" = yes; then
4851 echo "$as_me:$LINENO: result: yes" >&5
4852echo "${ECHO_T}yes" >&6
4853 else
4854 echo "$as_me:$LINENO: result: no" >&5
4855echo "${ECHO_T}no" >&6
4856 fi
4857
4858
81f90336
MW
4859 enablestring=
4860 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5
4861echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6
4862 no_cache=0
4863 # Check whether --enable-arcstream or --disable-arcstream was given.
4864if test "${enable_arcstream+set}" = set; then
4865 enableval="$enable_arcstream"
4866
4867 if test "$enableval" = yes; then
9e8e867f 4868 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes'
81f90336 4869 else
9e8e867f 4870 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no'
81f90336
MW
4871 fi
4872
4873else
4874
9e8e867f 4875 LINE=`grep "wxUSE_ARCHIVE_STREAMS" ${wx_arg_cache_file}`
81f90336
MW
4876 if test "x$LINE" != x ; then
4877 eval "DEFAULT_$LINE"
4878 else
4879 no_cache=1
4880 fi
4881
9e8e867f 4882 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS='$DEFAULT_wxUSE_ARCHIVE_STREAMS
81f90336
MW
4883
4884fi;
4885
4886 eval "$ac_cv_use_arcstream"
4887 if test "$no_cache" != 1; then
4888 echo $ac_cv_use_arcstream >> ${wx_arg_cache_file}.tmp
4889 fi
4890
9e8e867f 4891 if test "$wxUSE_ARCHIVE_STREAMS" = yes; then
81f90336
MW
4892 echo "$as_me:$LINENO: result: yes" >&5
4893echo "${ECHO_T}yes" >&6
4894 else
4895 echo "$as_me:$LINENO: result: no" >&5
4896echo "${ECHO_T}no" >&6
4897 fi
4898
4899
a848cd7e 4900 enablestring=
36b6448c
VZ
4901 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5
4902echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6
a848cd7e 4903 no_cache=0
36b6448c
VZ
4904 # Check whether --enable-backtrace or --disable-backtrace was given.
4905if test "${enable_backtrace+set}" = set; then
4906 enableval="$enable_backtrace"
a848cd7e
SC
4907
4908 if test "$enableval" = yes; then
36b6448c 4909 ac_cv_use_backtrace='wxUSE_STACKWALKER=yes'
a848cd7e 4910 else
36b6448c 4911 ac_cv_use_backtrace='wxUSE_STACKWALKER=no'
a848cd7e
SC
4912 fi
4913
4914else
4915
36b6448c 4916 LINE=`grep "wxUSE_STACKWALKER" ${wx_arg_cache_file}`
a848cd7e
SC
4917 if test "x$LINE" != x ; then
4918 eval "DEFAULT_$LINE"
4919 else
4920 no_cache=1
4921 fi
4922
36b6448c 4923 ac_cv_use_backtrace='wxUSE_STACKWALKER='$DEFAULT_wxUSE_STACKWALKER
a848cd7e
SC
4924
4925fi;
4926
36b6448c 4927 eval "$ac_cv_use_backtrace"
a848cd7e 4928 if test "$no_cache" != 1; then
36b6448c 4929 echo $ac_cv_use_backtrace >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
4930 fi
4931
36b6448c 4932 if test "$wxUSE_STACKWALKER" = yes; then
a848cd7e
SC
4933 echo "$as_me:$LINENO: result: yes" >&5
4934echo "${ECHO_T}yes" >&6
4935 else
4936 echo "$as_me:$LINENO: result: no" >&5
4937echo "${ECHO_T}no" >&6
4938 fi
4939
4940
eaff0f0d 4941 enablestring=
36b6448c
VZ
4942 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
4943echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
eaff0f0d 4944 no_cache=0
36b6448c
VZ
4945 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4946if test "${enable_catch_segvs+set}" = set; then
4947 enableval="$enable_catch_segvs"
eaff0f0d
VZ
4948
4949 if test "$enableval" = yes; then
36b6448c 4950 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
eaff0f0d 4951 else
36b6448c 4952 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
eaff0f0d
VZ
4953 fi
4954
4955else
4956
36b6448c 4957 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
eaff0f0d
VZ
4958 if test "x$LINE" != x ; then
4959 eval "DEFAULT_$LINE"
4960 else
4961 no_cache=1
4962 fi
4963
36b6448c 4964 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
eaff0f0d
VZ
4965
4966fi;
4967
36b6448c 4968 eval "$ac_cv_use_catch_segvs"
eaff0f0d 4969 if test "$no_cache" != 1; then
36b6448c 4970 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
eaff0f0d
VZ
4971 fi
4972
36b6448c 4973 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
eaff0f0d
VZ
4974 echo "$as_me:$LINENO: result: yes" >&5
4975echo "${ECHO_T}yes" >&6
4976 else
4977 echo "$as_me:$LINENO: result: no" >&5
4978echo "${ECHO_T}no" >&6
4979 fi
4980
4981
a848cd7e
SC
4982 enablestring=
4983 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
4984echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
4985 no_cache=0
4986 # Check whether --enable-cmdline or --disable-cmdline was given.
4987if test "${enable_cmdline+set}" = set; then
4988 enableval="$enable_cmdline"
4989
4990 if test "$enableval" = yes; then
4991 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
4992 else
4993 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
4994 fi
4995
4996else
4997
4998 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
4999 if test "x$LINE" != x ; then
5000 eval "DEFAULT_$LINE"
5001 else
5002 no_cache=1
5003 fi
5004
5005 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
5006
5007fi;
5008
5009 eval "$ac_cv_use_cmdline"
5010 if test "$no_cache" != 1; then
5011 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
5012 fi
5013
5014 if test "$wxUSE_CMDLINE_PARSER" = yes; then
5015 echo "$as_me:$LINENO: result: yes" >&5
5016echo "${ECHO_T}yes" >&6
5017 else
5018 echo "$as_me:$LINENO: result: no" >&5
5019echo "${ECHO_T}no" >&6
5020 fi
5021
5022
5023 enablestring=
5024 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
5025echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
5026 no_cache=0
5027 # Check whether --enable-datetime or --disable-datetime was given.
5028if test "${enable_datetime+set}" = set; then
5029 enableval="$enable_datetime"
5030
5031 if test "$enableval" = yes; then
5032 ac_cv_use_datetime='wxUSE_DATETIME=yes'
5033 else
5034 ac_cv_use_datetime='wxUSE_DATETIME=no'
5035 fi
5036
5037else
5038
5039 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
5040 if test "x$LINE" != x ; then
5041 eval "DEFAULT_$LINE"
5042 else
5043 no_cache=1
5044 fi
5045
5046 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
5047
5048fi;
5049
5050 eval "$ac_cv_use_datetime"
5051 if test "$no_cache" != 1; then
5052 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
5053 fi
5054
5055 if test "$wxUSE_DATETIME" = yes; then
5056 echo "$as_me:$LINENO: result: yes" >&5
5057echo "${ECHO_T}yes" >&6
5058 else
5059 echo "$as_me:$LINENO: result: no" >&5
5060echo "${ECHO_T}no" >&6
5061 fi
5062
5063
36b6448c
VZ
5064 enablestring=
5065 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debugreport" >&5
5066echo $ECHO_N "checking for --${enablestring:-enable}-debugreport... $ECHO_C" >&6
5067 no_cache=0
5068 # Check whether --enable-debugreport or --disable-debugreport was given.
5069if test "${enable_debugreport+set}" = set; then
5070 enableval="$enable_debugreport"
5071
5072 if test "$enableval" = yes; then
5073 ac_cv_use_debugreport='wxUSE_DEBUGREPORT=yes'
5074 else
5075 ac_cv_use_debugreport='wxUSE_DEBUGREPORT=no'
5076 fi
5077
5078else
5079
5080 LINE=`grep "wxUSE_DEBUGREPORT" ${wx_arg_cache_file}`
5081 if test "x$LINE" != x ; then
5082 eval "DEFAULT_$LINE"
5083 else
5084 no_cache=1
5085 fi
5086
5087 ac_cv_use_debugreport='wxUSE_DEBUGREPORT='$DEFAULT_wxUSE_DEBUGREPORT
5088
5089fi;
5090
5091 eval "$ac_cv_use_debugreport"
5092 if test "$no_cache" != 1; then
5093 echo $ac_cv_use_debugreport >> ${wx_arg_cache_file}.tmp
5094 fi
5095
5096 if test "$wxUSE_DEBUGREPORT" = yes; then
5097 echo "$as_me:$LINENO: result: yes" >&5
5098echo "${ECHO_T}yes" >&6
5099 else
5100 echo "$as_me:$LINENO: result: no" >&5
5101echo "${ECHO_T}no" >&6
5102 fi
5103
5104
a848cd7e
SC
5105 enablestring=
5106 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
5107echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
5108 no_cache=0
5109 # Check whether --enable-dialupman or --disable-dialupman was given.
5110if test "${enable_dialupman+set}" = set; then
5111 enableval="$enable_dialupman"
5112
5113 if test "$enableval" = yes; then
5114 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
5115 else
5116 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
5117 fi
5118
5119else
5120
5121 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
5122 if test "x$LINE" != x ; then
5123 eval "DEFAULT_$LINE"
5124 else
5125 no_cache=1
5126 fi
5127
5128 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
5129
5130fi;
5131
5132 eval "$ac_cv_use_dialupman"
5133 if test "$no_cache" != 1; then
5134 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
5135 fi
5136
5137 if test "$wxUSE_DIALUP_MANAGER" = yes; then
5138 echo "$as_me:$LINENO: result: yes" >&5
5139echo "${ECHO_T}yes" >&6
5140 else
5141 echo "$as_me:$LINENO: result: no" >&5
5142echo "${ECHO_T}no" >&6
5143 fi
5144
5145
5146 enablestring=
5147 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
5148echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
5149 no_cache=0
5150 # Check whether --enable-dynlib or --disable-dynlib was given.
5151if test "${enable_dynlib+set}" = set; then
5152 enableval="$enable_dynlib"
5153
5154 if test "$enableval" = yes; then
5155 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
5156 else
5157 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
5158 fi
5159
5160else
5161
5162 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
5163 if test "x$LINE" != x ; then
5164 eval "DEFAULT_$LINE"
5165 else
5166 no_cache=1
5167 fi
5168
5169 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
5170
5171fi;
5172
5173 eval "$ac_cv_use_dynlib"
5174 if test "$no_cache" != 1; then
5175 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
5176 fi
5177
5178 if test "$wxUSE_DYNLIB_CLASS" = yes; then
5179 echo "$as_me:$LINENO: result: yes" >&5
5180echo "${ECHO_T}yes" >&6
5181 else
5182 echo "$as_me:$LINENO: result: no" >&5
5183echo "${ECHO_T}no" >&6
5184 fi
5185
5186
5187 enablestring=
5188 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
5189echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
5190 no_cache=0
5191 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
5192if test "${enable_dynamicloader+set}" = set; then
5193 enableval="$enable_dynamicloader"
5194
5195 if test "$enableval" = yes; then
5196 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
5197 else
5198 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
5199 fi
5200
5201else
5202
5203 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
5204 if test "x$LINE" != x ; then
5205 eval "DEFAULT_$LINE"
5206 else
5207 no_cache=1
5208 fi
5209
5210 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
5211
5212fi;
5213
5214 eval "$ac_cv_use_dynamicloader"
5215 if test "$no_cache" != 1; then
5216 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
5217 fi
5218
5219 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
5220 echo "$as_me:$LINENO: result: yes" >&5
5221echo "${ECHO_T}yes" >&6
5222 else
5223 echo "$as_me:$LINENO: result: no" >&5
5224echo "${ECHO_T}no" >&6
5225 fi
5226
5227
5228 enablestring=
5229 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
5230echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6
5231 no_cache=0
5232 # Check whether --enable-exceptions or --disable-exceptions was given.
5233if test "${enable_exceptions+set}" = set; then
5234 enableval="$enable_exceptions"
5235
5236 if test "$enableval" = yes; then
5237 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
5238 else
5239 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
5240 fi
5241
5242else
5243
5244 LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}`
5245 if test "x$LINE" != x ; then
5246 eval "DEFAULT_$LINE"
5247 else
5248 no_cache=1
5249 fi
5250
5251 ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS
5252
5253fi;
5254
5255 eval "$ac_cv_use_exceptions"
5256 if test "$no_cache" != 1; then
5257 echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp
5258 fi
5259
5260 if test "$wxUSE_EXCEPTIONS" = yes; then
5261 echo "$as_me:$LINENO: result: yes" >&5
5262echo "${ECHO_T}yes" >&6
5263 else
5264 echo "$as_me:$LINENO: result: no" >&5
5265echo "${ECHO_T}no" >&6
5266 fi
5267
5268
5269 enablestring=
5270 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
5271echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
5272 no_cache=0
5273 # Check whether --enable-ffile or --disable-ffile was given.
5274if test "${enable_ffile+set}" = set; then
5275 enableval="$enable_ffile"
5276
5277 if test "$enableval" = yes; then
5278 ac_cv_use_ffile='wxUSE_FFILE=yes'
5279 else
5280 ac_cv_use_ffile='wxUSE_FFILE=no'
5281 fi
5282
5283else
5284
5285 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
5286 if test "x$LINE" != x ; then
5287 eval "DEFAULT_$LINE"
5288 else
5289 no_cache=1
5290 fi
5291
5292 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
5293
5294fi;
5295
5296 eval "$ac_cv_use_ffile"
5297 if test "$no_cache" != 1; then
5298 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
5299 fi
5300
5301 if test "$wxUSE_FFILE" = yes; then
5302 echo "$as_me:$LINENO: result: yes" >&5
5303echo "${ECHO_T}yes" >&6
5304 else
5305 echo "$as_me:$LINENO: result: no" >&5
5306echo "${ECHO_T}no" >&6
5307 fi
5308
5309
5310 enablestring=
5311 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
5312echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
5313 no_cache=0
5314 # Check whether --enable-file or --disable-file was given.
5315if test "${enable_file+set}" = set; then
5316 enableval="$enable_file"
5317
5318 if test "$enableval" = yes; then
5319 ac_cv_use_file='wxUSE_FILE=yes'
5320 else
5321 ac_cv_use_file='wxUSE_FILE=no'
5322 fi
5323
5324else
5325
5326 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
5327 if test "x$LINE" != x ; then
5328 eval "DEFAULT_$LINE"
5329 else
5330 no_cache=1
5331 fi
5332
5333 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
5334
5335fi;
5336
5337 eval "$ac_cv_use_file"
5338 if test "$no_cache" != 1; then
5339 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
5340 fi
5341
5342 if test "$wxUSE_FILE" = yes; then
5343 echo "$as_me:$LINENO: result: yes" >&5
5344echo "${ECHO_T}yes" >&6
5345 else
5346 echo "$as_me:$LINENO: result: no" >&5
5347echo "${ECHO_T}no" >&6
5348 fi
5349
5350
5351 enablestring=
5352 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
5353echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
5354 no_cache=0
5355 # Check whether --enable-filesystem or --disable-filesystem was given.
5356if test "${enable_filesystem+set}" = set; then
5357 enableval="$enable_filesystem"
5358
5359 if test "$enableval" = yes; then
5360 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
5361 else
5362 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
5363 fi
5364
5365else
5366
5367 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
5368 if test "x$LINE" != x ; then
5369 eval "DEFAULT_$LINE"
5370 else
5371 no_cache=1
5372 fi
5373
5374 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
5375
5376fi;
5377
5378 eval "$ac_cv_use_filesystem"
5379 if test "$no_cache" != 1; then
5380 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
5381 fi
5382
5383 if test "$wxUSE_FILESYSTEM" = yes; then
5384 echo "$as_me:$LINENO: result: yes" >&5
5385echo "${ECHO_T}yes" >&6
5386 else
5387 echo "$as_me:$LINENO: result: no" >&5
5388echo "${ECHO_T}no" >&6
5389 fi
5390
5391
5392 enablestring=
5393 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
5394echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
5395 no_cache=0
5396 # Check whether --enable-fontmap or --disable-fontmap was given.
5397if test "${enable_fontmap+set}" = set; then
5398 enableval="$enable_fontmap"
5399
5400 if test "$enableval" = yes; then
5401 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
5402 else
5403 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
5404 fi
5405
5406else
5407
5408 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
5409 if test "x$LINE" != x ; then
5410 eval "DEFAULT_$LINE"
5411 else
5412 no_cache=1
5413 fi
5414
5415 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
5416
5417fi;
5418
5419 eval "$ac_cv_use_fontmap"
5420 if test "$no_cache" != 1; then
5421 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
5422 fi
5423
5424 if test "$wxUSE_FONTMAP" = yes; then
5425 echo "$as_me:$LINENO: result: yes" >&5
5426echo "${ECHO_T}yes" >&6
5427 else
5428 echo "$as_me:$LINENO: result: no" >&5
5429echo "${ECHO_T}no" >&6
5430 fi
5431
5432
5433 enablestring=
5434 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
5435echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
5436 no_cache=0
5437 # Check whether --enable-fs_inet or --disable-fs_inet was given.
5438if test "${enable_fs_inet+set}" = set; then
5439 enableval="$enable_fs_inet"
5440
5441 if test "$enableval" = yes; then
5442 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
5443 else
5444 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
5445 fi
5446
5447else
5448
5449 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
5450 if test "x$LINE" != x ; then
5451 eval "DEFAULT_$LINE"
5452 else
5453 no_cache=1
5454 fi
5455
5456 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
5457
5458fi;
5459
5460 eval "$ac_cv_use_fs_inet"
5461 if test "$no_cache" != 1; then
5462 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
5463 fi
5464
5465 if test "$wxUSE_FS_INET" = yes; then
5466 echo "$as_me:$LINENO: result: yes" >&5
5467echo "${ECHO_T}yes" >&6
5468 else
5469 echo "$as_me:$LINENO: result: no" >&5
5470echo "${ECHO_T}no" >&6
5471 fi
5472
5473
5474 enablestring=
5475 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
5476echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
5477 no_cache=0
5478 # Check whether --enable-fs_zip or --disable-fs_zip was given.
5479if test "${enable_fs_zip+set}" = set; then
5480 enableval="$enable_fs_zip"
5481
5482 if test "$enableval" = yes; then
5483 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
5484 else
5485 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
5486 fi
5487
5488else
5489
5490 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
5491 if test "x$LINE" != x ; then
5492 eval "DEFAULT_$LINE"
5493 else
5494 no_cache=1
5495 fi
5496
5497 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
5498
5499fi;
5500
5501 eval "$ac_cv_use_fs_zip"
5502 if test "$no_cache" != 1; then
5503 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
5504 fi
5505
5506 if test "$wxUSE_FS_ZIP" = yes; then
5507 echo "$as_me:$LINENO: result: yes" >&5
5508echo "${ECHO_T}yes" >&6
5509 else
5510 echo "$as_me:$LINENO: result: no" >&5
5511echo "${ECHO_T}no" >&6
5512 fi
5513
5514
5515 enablestring=
5516 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
5517echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
5518 no_cache=0
5519 # Check whether --enable-geometry or --disable-geometry was given.
5520if test "${enable_geometry+set}" = set; then
5521 enableval="$enable_geometry"
5522
5523 if test "$enableval" = yes; then
5524 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
5525 else
5526 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
5527 fi
5528
5529else
5530
5531 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
5532 if test "x$LINE" != x ; then
5533 eval "DEFAULT_$LINE"
5534 else
5535 no_cache=1
5536 fi
5537
5538 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
5539
5540fi;
5541
5542 eval "$ac_cv_use_geometry"
5543 if test "$no_cache" != 1; then
5544 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
5545 fi
5546
5547 if test "$wxUSE_GEOMETRY" = yes; then
5548 echo "$as_me:$LINENO: result: yes" >&5
5549echo "${ECHO_T}yes" >&6
5550 else
5551 echo "$as_me:$LINENO: result: no" >&5
5552echo "${ECHO_T}no" >&6
5553 fi
5554
5555
5556 enablestring=
5557 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
5558echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
5559 no_cache=0
5560 # Check whether --enable-log or --disable-log was given.
5561if test "${enable_log+set}" = set; then
5562 enableval="$enable_log"
5563
5564 if test "$enableval" = yes; then
5565 ac_cv_use_log='wxUSE_LOG=yes'
5566 else
5567 ac_cv_use_log='wxUSE_LOG=no'
5568 fi
5569
5570else
5571
5572 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
5573 if test "x$LINE" != x ; then
5574 eval "DEFAULT_$LINE"
5575 else
5576 no_cache=1
5577 fi
5578
5579 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
5580
5581fi;
5582
5583 eval "$ac_cv_use_log"
5584 if test "$no_cache" != 1; then
5585 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
5586 fi
5587
5588 if test "$wxUSE_LOG" = yes; then
5589 echo "$as_me:$LINENO: result: yes" >&5
5590echo "${ECHO_T}yes" >&6
5591 else
5592 echo "$as_me:$LINENO: result: no" >&5
5593echo "${ECHO_T}no" >&6
5594 fi
5595
5596
5597 enablestring=
5598 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
5599echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
5600 no_cache=0
5601 # Check whether --enable-longlong or --disable-longlong was given.
5602if test "${enable_longlong+set}" = set; then
5603 enableval="$enable_longlong"
5604
5605 if test "$enableval" = yes; then
5606 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
5607 else
5608 ac_cv_use_longlong='wxUSE_LONGLONG=no'
5609 fi
5610
5611else
5612
5613 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
5614 if test "x$LINE" != x ; then
5615 eval "DEFAULT_$LINE"
5616 else
5617 no_cache=1
5618 fi
5619
5620 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
5621
5622fi;
5623
5624 eval "$ac_cv_use_longlong"
5625 if test "$no_cache" != 1; then
5626 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
5627 fi
5628
5629 if test "$wxUSE_LONGLONG" = yes; then
5630 echo "$as_me:$LINENO: result: yes" >&5
5631echo "${ECHO_T}yes" >&6
5632 else
5633 echo "$as_me:$LINENO: result: no" >&5
5634echo "${ECHO_T}no" >&6
5635 fi
5636
5637
5638 enablestring=
5639 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5640echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
5641 no_cache=0
5642 # Check whether --enable-mimetype or --disable-mimetype was given.
5643if test "${enable_mimetype+set}" = set; then
5644 enableval="$enable_mimetype"
5645
5646 if test "$enableval" = yes; then
5647 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5648 else
5649 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5650 fi
5651
5652else
5653
5654 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5655 if test "x$LINE" != x ; then
5656 eval "DEFAULT_$LINE"
5657 else
5658 no_cache=1
5659 fi
5660
5661 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
5662
5663fi;
5664
5665 eval "$ac_cv_use_mimetype"
5666 if test "$no_cache" != 1; then
5667 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5668 fi
5669
5670 if test "$wxUSE_MIMETYPE" = yes; then
5671 echo "$as_me:$LINENO: result: yes" >&5
5672echo "${ECHO_T}yes" >&6
5673 else
5674 echo "$as_me:$LINENO: result: no" >&5
5675echo "${ECHO_T}no" >&6
5676 fi
5677
5678
5679 enablestring=
5680 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5681echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
5682 no_cache=0
5683 # Check whether --enable-mslu or --disable-mslu was given.
5684if test "${enable_mslu+set}" = set; then
5685 enableval="$enable_mslu"
5686
5687 if test "$enableval" = yes; then
5688 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5689 else
5690 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5691 fi
5692
5693else
5694
5695 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5696 if test "x$LINE" != x ; then
5697 eval "DEFAULT_$LINE"
5698 else
5699 no_cache=1
5700 fi
5701
5702 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
5703
5704fi;
5705
5706 eval "$ac_cv_use_mslu"
5707 if test "$no_cache" != 1; then
5708 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5709 fi
5710
5711 if test "$wxUSE_UNICODE_MSLU" = yes; then
5712 echo "$as_me:$LINENO: result: yes" >&5
5713echo "${ECHO_T}yes" >&6
5714 else
5715 echo "$as_me:$LINENO: result: no" >&5
5716echo "${ECHO_T}no" >&6
5717 fi
5718
5719
5720 enablestring=
5721 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5722echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
5723 no_cache=0
5724 # Check whether --enable-snglinst or --disable-snglinst was given.
5725if test "${enable_snglinst+set}" = set; then
5726 enableval="$enable_snglinst"
5727
5728 if test "$enableval" = yes; then
5729 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
5730 else
5731 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
5732 fi
5733
5734else
5735
5736 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
5737 if test "x$LINE" != x ; then
5738 eval "DEFAULT_$LINE"
5739 else
5740 no_cache=1
5741 fi
5742
5743 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
5744
5745fi;
5746
5747 eval "$ac_cv_use_snglinst"
5748 if test "$no_cache" != 1; then
5749 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
5750 fi
5751
5752 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
5753 echo "$as_me:$LINENO: result: yes" >&5
5754echo "${ECHO_T}yes" >&6
5755 else
5756 echo "$as_me:$LINENO: result: no" >&5
5757echo "${ECHO_T}no" >&6
5758 fi
5759
5760
5761 enablestring=
07158944
VZ
5762 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5763echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
a848cd7e 5764 no_cache=0
07158944
VZ
5765 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5766if test "${enable_std_iostreams+set}" = set; then
5767 enableval="$enable_std_iostreams"
a848cd7e
SC
5768
5769 if test "$enableval" = yes; then
07158944 5770 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
a848cd7e 5771 else
07158944 5772 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
a848cd7e
SC
5773 fi
5774
5775else
5776
07158944 5777 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
a848cd7e
SC
5778 if test "x$LINE" != x ; then
5779 eval "DEFAULT_$LINE"
5780 else
5781 no_cache=1
5782 fi
5783
07158944 5784 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
a848cd7e
SC
5785
5786fi;
5787
07158944 5788 eval "$ac_cv_use_std_iostreams"
a848cd7e 5789 if test "$no_cache" != 1; then
07158944 5790 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
5791 fi
5792
07158944 5793 if test "$wxUSE_STD_IOSTREAM" = yes; then
a848cd7e
SC
5794 echo "$as_me:$LINENO: result: yes" >&5
5795echo "${ECHO_T}yes" >&6
5796 else
5797 echo "$as_me:$LINENO: result: no" >&5
5798echo "${ECHO_T}no" >&6
5799 fi
5800
5801
59746b65
MW
5802 enablestring=
5803 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_string" >&5
5804echo $ECHO_N "checking for --${enablestring:-enable}-std_string... $ECHO_C" >&6
5805 no_cache=0
5806 # Check whether --enable-std_string or --disable-std_string was given.
5807if test "${enable_std_string+set}" = set; then
5808 enableval="$enable_std_string"
5809
5810 if test "$enableval" = yes; then
5811 ac_cv_use_std_string='wxUSE_STD_STRING=yes'
5812 else
5813 ac_cv_use_std_string='wxUSE_STD_STRING=no'
5814 fi
5815
5816else
5817
5818 LINE=`grep "wxUSE_STD_STRING" ${wx_arg_cache_file}`
5819 if test "x$LINE" != x ; then
5820 eval "DEFAULT_$LINE"
5821 else
5822 no_cache=1
5823 fi
5824
5825 ac_cv_use_std_string='wxUSE_STD_STRING='$DEFAULT_wxUSE_STD_STRING
5826
5827fi;
5828
5829 eval "$ac_cv_use_std_string"
5830 if test "$no_cache" != 1; then
5831 echo $ac_cv_use_std_string >> ${wx_arg_cache_file}.tmp
5832 fi
5833
5834 if test "$wxUSE_STD_STRING" = yes; then
5835 echo "$as_me:$LINENO: result: yes" >&5
5836echo "${ECHO_T}yes" >&6
5837 else
5838 echo "$as_me:$LINENO: result: no" >&5
5839echo "${ECHO_T}no" >&6
5840 fi
5841
5842
a848cd7e 5843 enablestring=
07158944
VZ
5844 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stdpaths" >&5
5845echo $ECHO_N "checking for --${enablestring:-enable}-stdpaths... $ECHO_C" >&6
a848cd7e 5846 no_cache=0
07158944
VZ
5847 # Check whether --enable-stdpaths or --disable-stdpaths was given.
5848if test "${enable_stdpaths+set}" = set; then
5849 enableval="$enable_stdpaths"
a848cd7e
SC
5850
5851 if test "$enableval" = yes; then
07158944 5852 ac_cv_use_stdpaths='wxUSE_STDPATHS=yes'
a848cd7e 5853 else
07158944 5854 ac_cv_use_stdpaths='wxUSE_STDPATHS=no'
a848cd7e
SC
5855 fi
5856
5857else
5858
07158944 5859 LINE=`grep "wxUSE_STDPATHS" ${wx_arg_cache_file}`
a848cd7e
SC
5860 if test "x$LINE" != x ; then
5861 eval "DEFAULT_$LINE"
5862 else
5863 no_cache=1
5864 fi
5865
07158944 5866 ac_cv_use_stdpaths='wxUSE_STDPATHS='$DEFAULT_wxUSE_STDPATHS
a848cd7e
SC
5867
5868fi;
5869
07158944 5870 eval "$ac_cv_use_stdpaths"
a848cd7e 5871 if test "$no_cache" != 1; then
07158944 5872 echo $ac_cv_use_stdpaths >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
5873 fi
5874
07158944 5875 if test "$wxUSE_STDPATHS" = yes; then
a848cd7e
SC
5876 echo "$as_me:$LINENO: result: yes" >&5
5877echo "${ECHO_T}yes" >&6
5878 else
5879 echo "$as_me:$LINENO: result: no" >&5
5880echo "${ECHO_T}no" >&6
5881 fi
5882
5883
5884 enablestring=
5885 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
5886echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
5887 no_cache=0
5888 # Check whether --enable-stopwatch or --disable-stopwatch was given.
5889if test "${enable_stopwatch+set}" = set; then
5890 enableval="$enable_stopwatch"
5891
5892 if test "$enableval" = yes; then
5893 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
5894 else
5895 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
5896 fi
5897
5898else
5899
5900 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
5901 if test "x$LINE" != x ; then
5902 eval "DEFAULT_$LINE"
5903 else
5904 no_cache=1
5905 fi
5906
5907 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
5908
5909fi;
5910
5911 eval "$ac_cv_use_stopwatch"
5912 if test "$no_cache" != 1; then
5913 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
5914 fi
5915
5916 if test "$wxUSE_STOPWATCH" = yes; then
5917 echo "$as_me:$LINENO: result: yes" >&5
5918echo "${ECHO_T}yes" >&6
5919 else
5920 echo "$as_me:$LINENO: result: no" >&5
5921echo "${ECHO_T}no" >&6
5922 fi
5923
5924
07158944
VZ
5925 enablestring=
5926 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
5927echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
5928 no_cache=0
5929 # Check whether --enable-streams or --disable-streams was given.
5930if test "${enable_streams+set}" = set; then
5931 enableval="$enable_streams"
5932
5933 if test "$enableval" = yes; then
5934 ac_cv_use_streams='wxUSE_STREAMS=yes'
5935 else
5936 ac_cv_use_streams='wxUSE_STREAMS=no'
5937 fi
5938
5939else
5940
5941 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
5942 if test "x$LINE" != x ; then
5943 eval "DEFAULT_$LINE"
5944 else
5945 no_cache=1
5946 fi
5947
5948 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
5949
5950fi;
5951
5952 eval "$ac_cv_use_streams"
5953 if test "$no_cache" != 1; then
5954 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
5955 fi
5956
5957 if test "$wxUSE_STREAMS" = yes; then
5958 echo "$as_me:$LINENO: result: yes" >&5
5959echo "${ECHO_T}yes" >&6
5960 else
5961 echo "$as_me:$LINENO: result: no" >&5
5962echo "${ECHO_T}no" >&6
5963 fi
5964
5965
a848cd7e
SC
5966 enablestring=
5967 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
5968echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
5969 no_cache=0
5970 # Check whether --enable-system_options or --disable-system_options was given.
5971if test "${enable_system_options+set}" = set; then
5972 enableval="$enable_system_options"
5973
5974 if test "$enableval" = yes; then
5975 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
5976 else
5977 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
5978 fi
5979
5980else
5981
5982 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
5983 if test "x$LINE" != x ; then
5984 eval "DEFAULT_$LINE"
5985 else
5986 no_cache=1
5987 fi
5988
5989 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
5990
5991fi;
5992
5993 eval "$ac_cv_use_system_options"
5994 if test "$no_cache" != 1; then
5995 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
5996 fi
5997
5998 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
5999 echo "$as_me:$LINENO: result: yes" >&5
6000echo "${ECHO_T}yes" >&6
6001 else
6002 echo "$as_me:$LINENO: result: no" >&5
6003echo "${ECHO_T}no" >&6
6004 fi
6005
6006
6007 enablestring=
6008 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
6009echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
6010 no_cache=0
6011 # Check whether --enable-textbuf or --disable-textbuf was given.
6012if test "${enable_textbuf+set}" = set; then
6013 enableval="$enable_textbuf"
6014
6015 if test "$enableval" = yes; then
6016 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
6017 else
6018 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
6019 fi
6020
6021else
6022
6023 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
6024 if test "x$LINE" != x ; then
6025 eval "DEFAULT_$LINE"
6026 else
6027 no_cache=1
6028 fi
6029
6030 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
6031
6032fi;
6033
6034 eval "$ac_cv_use_textbuf"
6035 if test "$no_cache" != 1; then
6036 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
6037 fi
6038
6039 if test "$wxUSE_TEXTBUFFER" = yes; then
6040 echo "$as_me:$LINENO: result: yes" >&5
6041echo "${ECHO_T}yes" >&6
6042 else
6043 echo "$as_me:$LINENO: result: no" >&5
6044echo "${ECHO_T}no" >&6
6045 fi
6046
6047
6048 enablestring=
6049 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
6050echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
6051 no_cache=0
6052 # Check whether --enable-textfile or --disable-textfile was given.
6053if test "${enable_textfile+set}" = set; then
6054 enableval="$enable_textfile"
6055
6056 if test "$enableval" = yes; then
6057 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
6058 else
6059 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
6060 fi
6061
6062else
6063
6064 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
6065 if test "x$LINE" != x ; then
6066 eval "DEFAULT_$LINE"
6067 else
6068 no_cache=1
6069 fi
6070
6071 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
6072
6073fi;
6074
6075 eval "$ac_cv_use_textfile"
6076 if test "$no_cache" != 1; then
6077 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
6078 fi
6079
6080 if test "$wxUSE_TEXTFILE" = yes; then
6081 echo "$as_me:$LINENO: result: yes" >&5
6082echo "${ECHO_T}yes" >&6
6083 else
6084 echo "$as_me:$LINENO: result: no" >&5
6085echo "${ECHO_T}no" >&6
6086 fi
6087
6088
6089 enablestring=
6090 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
6091echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
6092 no_cache=0
6093 # Check whether --enable-timer or --disable-timer was given.
6094if test "${enable_timer+set}" = set; then
6095 enableval="$enable_timer"
6096
6097 if test "$enableval" = yes; then
6098 ac_cv_use_timer='wxUSE_TIMER=yes'
6099 else
6100 ac_cv_use_timer='wxUSE_TIMER=no'
6101 fi
6102
6103else
6104
6105 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
6106 if test "x$LINE" != x ; then
6107 eval "DEFAULT_$LINE"
6108 else
6109 no_cache=1
6110 fi
6111
6112 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
6113
6114fi;
6115
6116 eval "$ac_cv_use_timer"
6117 if test "$no_cache" != 1; then
6118 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
6119 fi
6120
6121 if test "$wxUSE_TIMER" = yes; then
6122 echo "$as_me:$LINENO: result: yes" >&5
6123echo "${ECHO_T}yes" >&6
6124 else
6125 echo "$as_me:$LINENO: result: no" >&5
6126echo "${ECHO_T}no" >&6
6127 fi
6128
6129
6130 enablestring=
6131 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
6132echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
6133 no_cache=0
6134 # Check whether --enable-unicode or --disable-unicode was given.
6135if test "${enable_unicode+set}" = set; then
6136 enableval="$enable_unicode"
6137
6138 if test "$enableval" = yes; then
6139 ac_cv_use_unicode='wxUSE_UNICODE=yes'
6140 else
6141 ac_cv_use_unicode='wxUSE_UNICODE=no'
6142 fi
6143
6144else
6145
6146 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
6147 if test "x$LINE" != x ; then
6148 eval "DEFAULT_$LINE"
6149 else
6150 no_cache=1
6151 fi
6152
6153 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
6154
6155fi;
6156
6157 eval "$ac_cv_use_unicode"
6158 if test "$no_cache" != 1; then
6159 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
6160 fi
6161
6162 if test "$wxUSE_UNICODE" = yes; then
6163 echo "$as_me:$LINENO: result: yes" >&5
6164echo "${ECHO_T}yes" >&6
6165 else
6166 echo "$as_me:$LINENO: result: no" >&5
6167echo "${ECHO_T}no" >&6
6168 fi
6169
6170
6171 enablestring=
6172 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
6173echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6
6174 no_cache=0
6175 # Check whether --enable-sound or --disable-sound was given.
6176if test "${enable_sound+set}" = set; then
6177 enableval="$enable_sound"
6178
6179 if test "$enableval" = yes; then
6180 ac_cv_use_sound='wxUSE_SOUND=yes'
6181 else
6182 ac_cv_use_sound='wxUSE_SOUND=no'
6183 fi
6184
6185else
6186
6187 LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}`
6188 if test "x$LINE" != x ; then
6189 eval "DEFAULT_$LINE"
6190 else
6191 no_cache=1
6192 fi
6193
6194 ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND
6195
6196fi;
6197
6198 eval "$ac_cv_use_sound"
6199 if test "$no_cache" != 1; then
6200 echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp
6201 fi
6202
6203 if test "$wxUSE_SOUND" = yes; then
6204 echo "$as_me:$LINENO: result: yes" >&5
6205echo "${ECHO_T}yes" >&6
6206 else
6207 echo "$as_me:$LINENO: result: no" >&5
6208echo "${ECHO_T}no" >&6
6209 fi
6210
6211
3b57de8b
RL
6212 enablestring=
6213 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5
6214echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6
6215 no_cache=0
6216 # Check whether --enable-mediactrl or --disable-mediactrl was given.
6217if test "${enable_mediactrl+set}" = set; then
6218 enableval="$enable_mediactrl"
6219
6220 if test "$enableval" = yes; then
6221 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=yes'
6222 else
6223 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=no'
6224 fi
6225
6226else
6227
6228 LINE=`grep "wxUSE_MEDIACTRL" ${wx_arg_cache_file}`
6229 if test "x$LINE" != x ; then
6230 eval "DEFAULT_$LINE"
6231 else
6232 no_cache=1
6233 fi
6234
6235 ac_cv_use_mediactrl='wxUSE_MEDIACTRL='$DEFAULT_wxUSE_MEDIACTRL
6236
6237fi;
6238
6239 eval "$ac_cv_use_mediactrl"
6240 if test "$no_cache" != 1; then
6241 echo $ac_cv_use_mediactrl >> ${wx_arg_cache_file}.tmp
6242 fi
6243
6244 if test "$wxUSE_MEDIACTRL" = yes; then
6245 echo "$as_me:$LINENO: result: yes" >&5
6246echo "${ECHO_T}yes" >&6
6247 else
6248 echo "$as_me:$LINENO: result: no" >&5
6249echo "${ECHO_T}no" >&6
6250 fi
6251
6252
f10e38c4
VZ
6253 enablestring=
6254 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gstreamer8" >&5
6255echo $ECHO_N "checking for --${enablestring:-enable}-gstreamer8... $ECHO_C" >&6
6256 no_cache=0
6257 # Check whether --enable-gstreamer8 or --disable-gstreamer8 was given.
6258if test "${enable_gstreamer8+set}" = set; then
6259 enableval="$enable_gstreamer8"
6260
6261 if test "$enableval" = yes; then
6262 ac_cv_use_gstreamer8='wxUSE_GSTREAMER8=yes'
6263 else
6264 ac_cv_use_gstreamer8='wxUSE_GSTREAMER8=no'
6265 fi
6266
6267else
6268
6269 LINE=`grep "wxUSE_GSTREAMER8" ${wx_arg_cache_file}`
6270 if test "x$LINE" != x ; then
6271 eval "DEFAULT_$LINE"
6272 else
6273 no_cache=1
6274 fi
6275
6276 ac_cv_use_gstreamer8='wxUSE_GSTREAMER8='$DEFAULT_wxUSE_GSTREAMER8
6277
6278fi;
6279
6280 eval "$ac_cv_use_gstreamer8"
6281 if test "$no_cache" != 1; then
6282 echo $ac_cv_use_gstreamer8 >> ${wx_arg_cache_file}.tmp
6283 fi
6284
6285 if test "$wxUSE_GSTREAMER8" = yes; then
6286 echo "$as_me:$LINENO: result: yes" >&5
6287echo "${ECHO_T}yes" >&6
6288 else
6289 echo "$as_me:$LINENO: result: no" >&5
6290echo "${ECHO_T}no" >&6
6291 fi
6292
6293
a848cd7e
SC
6294 enablestring=
6295 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5
6296echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6
6297 no_cache=0
6298 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
6299if test "${enable_wxprintfv+set}" = set; then
6300 enableval="$enable_wxprintfv"
6301
6302 if test "$enableval" = yes; then
6303 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
6304 else
6305 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
6306 fi
6307
6308else
6309
6310 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
6311 if test "x$LINE" != x ; then
6312 eval "DEFAULT_$LINE"
6313 else
6314 no_cache=1
6315 fi
6316
6317 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
6318
6319fi;
6320
6321 eval "$ac_cv_use_wxprintfv"
6322 if test "$no_cache" != 1; then
6323 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
6324 fi
6325
6326 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
6327 echo "$as_me:$LINENO: result: yes" >&5
6328echo "${ECHO_T}yes" >&6
6329 else
6330 echo "$as_me:$LINENO: result: no" >&5
6331echo "${ECHO_T}no" >&6
6332 fi
6333
6334
6335 enablestring=
6336 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
6337echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
6338 no_cache=0
6339 # Check whether --enable-zipstream or --disable-zipstream was given.
6340if test "${enable_zipstream+set}" = set; then
6341 enableval="$enable_zipstream"
6342
6343 if test "$enableval" = yes; then
6344 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
6345 else
6346 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
6347 fi
6348
6349else
6350
6351 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
6352 if test "x$LINE" != x ; then
6353 eval "DEFAULT_$LINE"
6354 else
6355 no_cache=1
6356 fi
6357
6358 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
6359
6360fi;
6361
6362 eval "$ac_cv_use_zipstream"
6363 if test "$no_cache" != 1; then
6364 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
6365 fi
6366
6367 if test "$wxUSE_ZIPSTREAM" = yes; then
6368 echo "$as_me:$LINENO: result: yes" >&5
6369echo "${ECHO_T}yes" >&6
6370 else
6371 echo "$as_me:$LINENO: result: no" >&5
6372echo "${ECHO_T}no" >&6
6373 fi
6374
6375
a848cd7e
SC
6376
6377 enablestring=
6378 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
6379echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
6380 no_cache=0
6381 # Check whether --enable-url or --disable-url was given.
6382if test "${enable_url+set}" = set; then
6383 enableval="$enable_url"
6384
6385 if test "$enableval" = yes; then
6386 ac_cv_use_url='wxUSE_URL=yes'
6387 else
6388 ac_cv_use_url='wxUSE_URL=no'
6389 fi
6390
6391else
6392
6393 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
6394 if test "x$LINE" != x ; then
6395 eval "DEFAULT_$LINE"
6396 else
6397 no_cache=1
6398 fi
6399
6400 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
6401
6402fi;
6403
6404 eval "$ac_cv_use_url"
6405 if test "$no_cache" != 1; then
6406 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
6407 fi
6408
6409 if test "$wxUSE_URL" = yes; then
6410 echo "$as_me:$LINENO: result: yes" >&5
6411echo "${ECHO_T}yes" >&6
6412 else
6413 echo "$as_me:$LINENO: result: no" >&5
6414echo "${ECHO_T}no" >&6
6415 fi
6416
6417
6418 enablestring=
6419 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
6420echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
6421 no_cache=0
6422 # Check whether --enable-protocol or --disable-protocol was given.
6423if test "${enable_protocol+set}" = set; then
6424 enableval="$enable_protocol"
6425
6426 if test "$enableval" = yes; then
6427 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
6428 else
6429 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
6430 fi
6431
6432else
6433
6434 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
6435 if test "x$LINE" != x ; then
6436 eval "DEFAULT_$LINE"
6437 else
6438 no_cache=1
6439 fi
6440
6441 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
6442
6443fi;
6444
6445 eval "$ac_cv_use_protocol"
6446 if test "$no_cache" != 1; then
6447 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
6448 fi
6449
6450 if test "$wxUSE_PROTOCOL" = yes; then
6451 echo "$as_me:$LINENO: result: yes" >&5
6452echo "${ECHO_T}yes" >&6
6453 else
6454 echo "$as_me:$LINENO: result: no" >&5
6455echo "${ECHO_T}no" >&6
6456 fi
6457
6458
6459 enablestring=
6460 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
6461echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
6462 no_cache=0
6463 # Check whether --enable-protocol_http or --disable-protocol_http was given.
6464if test "${enable_protocol_http+set}" = set; then
6465 enableval="$enable_protocol_http"
6466
6467 if test "$enableval" = yes; then
6468 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
6469 else
6470 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
6471 fi
6472
6473else
6474
6475 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
6476 if test "x$LINE" != x ; then
6477 eval "DEFAULT_$LINE"
6478 else
6479 no_cache=1
6480 fi
6481
6482 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
6483
6484fi;
6485
6486 eval "$ac_cv_use_protocol_http"
6487 if test "$no_cache" != 1; then
6488 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
6489 fi
6490
6491 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
6492 echo "$as_me:$LINENO: result: yes" >&5
6493echo "${ECHO_T}yes" >&6
6494 else
6495 echo "$as_me:$LINENO: result: no" >&5
6496echo "${ECHO_T}no" >&6
6497 fi
6498
6499
6500 enablestring=
6501 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
6502echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
6503 no_cache=0
6504 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
6505if test "${enable_protocol_ftp+set}" = set; then
6506 enableval="$enable_protocol_ftp"
6507
6508 if test "$enableval" = yes; then
6509 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
6510 else
6511 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
6512 fi
6513
6514else
6515
6516 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
6517 if test "x$LINE" != x ; then
6518 eval "DEFAULT_$LINE"
6519 else
6520 no_cache=1
6521 fi
6522
6523 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
6524
6525fi;
6526
6527 eval "$ac_cv_use_protocol_ftp"
6528 if test "$no_cache" != 1; then
6529 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
6530 fi
6531
6532 if test "$wxUSE_PROTOCOL_FTP" = yes; then
6533 echo "$as_me:$LINENO: result: yes" >&5
6534echo "${ECHO_T}yes" >&6
6535 else
6536 echo "$as_me:$LINENO: result: no" >&5
6537echo "${ECHO_T}no" >&6
6538 fi
6539
6540
6541 enablestring=
6542 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
6543echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
6544 no_cache=0
6545 # Check whether --enable-protocol_file or --disable-protocol_file was given.
6546if test "${enable_protocol_file+set}" = set; then
6547 enableval="$enable_protocol_file"
6548
6549 if test "$enableval" = yes; then
6550 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
6551 else
6552 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
6553 fi
6554
6555else
6556
6557 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
6558 if test "x$LINE" != x ; then
6559 eval "DEFAULT_$LINE"
6560 else
6561 no_cache=1
6562 fi
6563
6564 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
6565
6566fi;
6567
6568 eval "$ac_cv_use_protocol_file"
6569 if test "$no_cache" != 1; then
6570 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
6571 fi
6572
6573 if test "$wxUSE_PROTOCOL_FILE" = yes; then
6574 echo "$as_me:$LINENO: result: yes" >&5
6575echo "${ECHO_T}yes" >&6
6576 else
6577 echo "$as_me:$LINENO: result: no" >&5
6578echo "${ECHO_T}no" >&6
6579 fi
6580
6581
6582
6583
6584
6585 enablestring=
6586 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
6587echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
6588 no_cache=0
6589 # Check whether --enable-threads or --disable-threads was given.
6590if test "${enable_threads+set}" = set; then
6591 enableval="$enable_threads"
6592
6593 if test "$enableval" = yes; then
6594 ac_cv_use_threads='wxUSE_THREADS=yes'
6595 else
6596 ac_cv_use_threads='wxUSE_THREADS=no'
6597 fi
6598
6599else
6600
6601 LINE=`grep "wxUSE_THREADS" ${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_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
6609
6610fi;
6611
6612 eval "$ac_cv_use_threads"
6613 if test "$no_cache" != 1; then
6614 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
6615 fi
6616
6617 if test "$wxUSE_THREADS" = 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
6626if test "$wxUSE_GUI" = "yes"; then
6627
6628
6629
6630 enablestring=
6631 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
6632echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
6633 no_cache=0
6634 # Check whether --enable-docview or --disable-docview was given.
6635if test "${enable_docview+set}" = set; then
6636 enableval="$enable_docview"
6637
6638 if test "$enableval" = yes; then
6639 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
6640 else
6641 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
6642 fi
6643
6644else
6645
6646 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
6647 if test "x$LINE" != x ; then
6648 eval "DEFAULT_$LINE"
6649 else
6650 no_cache=1
6651 fi
6652
6653 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
6654
6655fi;
6656
6657 eval "$ac_cv_use_docview"
6658 if test "$no_cache" != 1; then
6659 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
6660 fi
6661
6662 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
6663 echo "$as_me:$LINENO: result: yes" >&5
6664echo "${ECHO_T}yes" >&6
6665 else
6666 echo "$as_me:$LINENO: result: no" >&5
6667echo "${ECHO_T}no" >&6
6668 fi
6669
6670
6671 enablestring=
6672 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
6673echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
6674 no_cache=0
6675 # Check whether --enable-help or --disable-help was given.
6676if test "${enable_help+set}" = set; then
6677 enableval="$enable_help"
6678
6679 if test "$enableval" = yes; then
6680 ac_cv_use_help='wxUSE_HELP=yes'
6681 else
6682 ac_cv_use_help='wxUSE_HELP=no'
6683 fi
6684
6685else
6686
6687 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
6688 if test "x$LINE" != x ; then
6689 eval "DEFAULT_$LINE"
6690 else
6691 no_cache=1
6692 fi
6693
6694 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
6695
6696fi;
6697
6698 eval "$ac_cv_use_help"
6699 if test "$no_cache" != 1; then
6700 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
6701 fi
6702
6703 if test "$wxUSE_HELP" = yes; then
6704 echo "$as_me:$LINENO: result: yes" >&5
6705echo "${ECHO_T}yes" >&6
6706 else
6707 echo "$as_me:$LINENO: result: no" >&5
6708echo "${ECHO_T}no" >&6
6709 fi
6710
6711
6712 enablestring=
6713 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
6714echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
6715 no_cache=0
6716 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
6717if test "${enable_mshtmlhelp+set}" = set; then
6718 enableval="$enable_mshtmlhelp"
6719
6720 if test "$enableval" = yes; then
6721 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
6722 else
6723 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
6724 fi
6725
6726else
6727
6728 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
6729 if test "x$LINE" != x ; then
6730 eval "DEFAULT_$LINE"
6731 else
6732 no_cache=1
6733 fi
6734
6735 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
6736
6737fi;
6738
6739 eval "$ac_cv_use_mshtmlhelp"
6740 if test "$no_cache" != 1; then
6741 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
6742 fi
6743
6744 if test "$wxUSE_MS_HTML_HELP" = yes; then
6745 echo "$as_me:$LINENO: result: yes" >&5
6746echo "${ECHO_T}yes" >&6
6747 else
6748 echo "$as_me:$LINENO: result: no" >&5
6749echo "${ECHO_T}no" >&6
6750 fi
6751
6752
6753 enablestring=
6754 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
6755echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
6756 no_cache=0
6757 # Check whether --enable-html or --disable-html was given.
6758if test "${enable_html+set}" = set; then
6759 enableval="$enable_html"
6760
6761 if test "$enableval" = yes; then
6762 ac_cv_use_html='wxUSE_HTML=yes'
6763 else
6764 ac_cv_use_html='wxUSE_HTML=no'
6765 fi
6766
6767else
6768
6769 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
6770 if test "x$LINE" != x ; then
6771 eval "DEFAULT_$LINE"
6772 else
6773 no_cache=1
6774 fi
6775
6776 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
6777
6778fi;
6779
6780 eval "$ac_cv_use_html"
6781 if test "$no_cache" != 1; then
6782 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
6783 fi
6784
6785 if test "$wxUSE_HTML" = yes; then
6786 echo "$as_me:$LINENO: result: yes" >&5
6787echo "${ECHO_T}yes" >&6
6788 else
6789 echo "$as_me:$LINENO: result: no" >&5
6790echo "${ECHO_T}no" >&6
6791 fi
6792
6793
6794 enablestring=
6795 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
6796echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
6797 no_cache=0
6798 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
6799if test "${enable_htmlhelp+set}" = set; then
6800 enableval="$enable_htmlhelp"
6801
6802 if test "$enableval" = yes; then
6803 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
6804 else
6805 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
6806 fi
6807
6808else
6809
6810 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
6811 if test "x$LINE" != x ; then
6812 eval "DEFAULT_$LINE"
6813 else
6814 no_cache=1
6815 fi
6816
6817 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
6818
6819fi;
6820
6821 eval "$ac_cv_use_htmlhelp"
6822 if test "$no_cache" != 1; then
6823 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
6824 fi
6825
6826 if test "$wxUSE_WXHTML_HELP" = yes; then
6827 echo "$as_me:$LINENO: result: yes" >&5
6828echo "${ECHO_T}yes" >&6
6829 else
6830 echo "$as_me:$LINENO: result: no" >&5
6831echo "${ECHO_T}no" >&6
6832 fi
6833
6834
9a8f0513
VS
6835 enablestring=
6836 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5
6837echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6
6838 no_cache=0
6839 # Check whether --enable-xrc or --disable-xrc was given.
6840if test "${enable_xrc+set}" = set; then
6841 enableval="$enable_xrc"
6842
6843 if test "$enableval" = yes; then
6844 ac_cv_use_xrc='wxUSE_XRC=yes'
6845 else
6846 ac_cv_use_xrc='wxUSE_XRC=no'
6847 fi
6848
6849else
6850
6851 LINE=`grep "wxUSE_XRC" ${wx_arg_cache_file}`
6852 if test "x$LINE" != x ; then
6853 eval "DEFAULT_$LINE"
6854 else
6855 no_cache=1
6856 fi
6857
6858 ac_cv_use_xrc='wxUSE_XRC='$DEFAULT_wxUSE_XRC
6859
6860fi;
6861
6862 eval "$ac_cv_use_xrc"
6863 if test "$no_cache" != 1; then
6864 echo $ac_cv_use_xrc >> ${wx_arg_cache_file}.tmp
6865 fi
6866
6867 if test "$wxUSE_XRC" = yes; then
6868 echo "$as_me:$LINENO: result: yes" >&5
6869echo "${ECHO_T}yes" >&6
6870 else
6871 echo "$as_me:$LINENO: result: no" >&5
6872echo "${ECHO_T}no" >&6
6873 fi
6874
6875
a848cd7e
SC
6876 enablestring=
6877 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
6878echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
6879 no_cache=0
6880 # Check whether --enable-constraints or --disable-constraints was given.
6881if test "${enable_constraints+set}" = set; then
6882 enableval="$enable_constraints"
6883
6884 if test "$enableval" = yes; then
6885 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
6886 else
6887 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
6888 fi
6889
6890else
6891
6892 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
6893 if test "x$LINE" != x ; then
6894 eval "DEFAULT_$LINE"
6895 else
6896 no_cache=1
6897 fi
6898
6899 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
6900
6901fi;
6902
6903 eval "$ac_cv_use_constraints"
6904 if test "$no_cache" != 1; then
6905 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
6906 fi
6907
6908 if test "$wxUSE_CONSTRAINTS" = yes; then
6909 echo "$as_me:$LINENO: result: yes" >&5
6910echo "${ECHO_T}yes" >&6
6911 else
6912 echo "$as_me:$LINENO: result: no" >&5
6913echo "${ECHO_T}no" >&6
6914 fi
6915
6916
6917 enablestring=
6918 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
6919echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
6920 no_cache=0
6921 # Check whether --enable-printarch or --disable-printarch was given.
6922if test "${enable_printarch+set}" = set; then
6923 enableval="$enable_printarch"
6924
6925 if test "$enableval" = yes; then
6926 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
6927 else
6928 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
6929 fi
6930
6931else
6932
6933 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
6934 if test "x$LINE" != x ; then
6935 eval "DEFAULT_$LINE"
6936 else
6937 no_cache=1
6938 fi
6939
6940 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
6941
6942fi;
6943
6944 eval "$ac_cv_use_printarch"
6945 if test "$no_cache" != 1; then
6946 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
6947 fi
6948
6949 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
6950 echo "$as_me:$LINENO: result: yes" >&5
6951echo "${ECHO_T}yes" >&6
6952 else
6953 echo "$as_me:$LINENO: result: no" >&5
6954echo "${ECHO_T}no" >&6
6955 fi
6956
6957
6958 enablestring=
6959 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
6960echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
6961 no_cache=0
6962 # Check whether --enable-mdi or --disable-mdi was given.
6963if test "${enable_mdi+set}" = set; then
6964 enableval="$enable_mdi"
6965
6966 if test "$enableval" = yes; then
8a7b1113 6967 ac_cv_use_mdi='wxUSE_MDI=yes'
a848cd7e 6968 else
8a7b1113 6969 ac_cv_use_mdi='wxUSE_MDI=no'
a848cd7e
SC
6970 fi
6971
6972else
6973
8a7b1113 6974 LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}`
a848cd7e
SC
6975 if test "x$LINE" != x ; then
6976 eval "DEFAULT_$LINE"
6977 else
6978 no_cache=1
6979 fi
6980
8a7b1113 6981 ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI
a848cd7e
SC
6982
6983fi;
6984
6985 eval "$ac_cv_use_mdi"
6986 if test "$no_cache" != 1; then
6987 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
6988 fi
6989
8a7b1113
VZ
6990 if test "$wxUSE_MDI" = yes; then
6991 echo "$as_me:$LINENO: result: yes" >&5
6992echo "${ECHO_T}yes" >&6
6993 else
6994 echo "$as_me:$LINENO: result: no" >&5
6995echo "${ECHO_T}no" >&6
6996 fi
6997
6998
6999 enablestring=
7000 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
7001echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6
7002 no_cache=0
7003 # Check whether --enable-mdidoc or --disable-mdidoc was given.
7004if test "${enable_mdidoc+set}" = set; then
7005 enableval="$enable_mdidoc"
7006
7007 if test "$enableval" = yes; then
7008 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
7009 else
7010 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
7011 fi
7012
7013else
7014
7015 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
7016 if test "x$LINE" != x ; then
7017 eval "DEFAULT_$LINE"
7018 else
7019 no_cache=1
7020 fi
7021
7022 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
7023
7024fi;
7025
7026 eval "$ac_cv_use_mdidoc"
7027 if test "$no_cache" != 1; then
7028 echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp
7029 fi
7030
a848cd7e
SC
7031 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
7032 echo "$as_me:$LINENO: result: yes" >&5
7033echo "${ECHO_T}yes" >&6
7034 else
7035 echo "$as_me:$LINENO: result: no" >&5
7036echo "${ECHO_T}no" >&6
7037 fi
7038
7039
7040 enablestring=
7041 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
7042echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
7043 no_cache=0
7044 # Check whether --enable-loggui or --disable-loggui was given.
7045if test "${enable_loggui+set}" = set; then
7046 enableval="$enable_loggui"
7047
7048 if test "$enableval" = yes; then
7049 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
7050 else
7051 ac_cv_use_loggui='wxUSE_LOGGUI=no'
7052 fi
7053
7054else
7055
7056 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
7057 if test "x$LINE" != x ; then
7058 eval "DEFAULT_$LINE"
7059 else
7060 no_cache=1
7061 fi
7062
7063 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
7064
7065fi;
7066
7067 eval "$ac_cv_use_loggui"
7068 if test "$no_cache" != 1; then
7069 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
7070 fi
7071
7072 if test "$wxUSE_LOGGUI" = yes; then
7073 echo "$as_me:$LINENO: result: yes" >&5
7074echo "${ECHO_T}yes" >&6
7075 else
7076 echo "$as_me:$LINENO: result: no" >&5
7077echo "${ECHO_T}no" >&6
7078 fi
7079
7080
7081 enablestring=
7082 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
7083echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
7084 no_cache=0
7085 # Check whether --enable-logwin or --disable-logwin was given.
7086if test "${enable_logwin+set}" = set; then
7087 enableval="$enable_logwin"
7088
7089 if test "$enableval" = yes; then
7090 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
7091 else
7092 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
7093 fi
7094
7095else
7096
7097 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
7098 if test "x$LINE" != x ; then
7099 eval "DEFAULT_$LINE"
7100 else
7101 no_cache=1
7102 fi
7103
7104 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
7105
7106fi;
7107
7108 eval "$ac_cv_use_logwin"
7109 if test "$no_cache" != 1; then
7110 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
7111 fi
7112
7113 if test "$wxUSE_LOGWINDOW" = yes; then
7114 echo "$as_me:$LINENO: result: yes" >&5
7115echo "${ECHO_T}yes" >&6
7116 else
7117 echo "$as_me:$LINENO: result: no" >&5
7118echo "${ECHO_T}no" >&6
7119 fi
7120
7121
7122 enablestring=
7123 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
7124echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
7125 no_cache=0
7126 # Check whether --enable-logdialog or --disable-logdialog was given.
7127if test "${enable_logdialog+set}" = set; then
7128 enableval="$enable_logdialog"
7129
7130 if test "$enableval" = yes; then
7131 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
7132 else
7133 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
7134 fi
7135
7136else
7137
7138 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
7139 if test "x$LINE" != x ; then
7140 eval "DEFAULT_$LINE"
7141 else
7142 no_cache=1
7143 fi
7144
7145 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
7146
7147fi;
7148
7149 eval "$ac_cv_use_logdialog"
7150 if test "$no_cache" != 1; then
7151 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
7152 fi
7153
7154 if test "$wxUSE_LOGDIALOG" = yes; then
7155 echo "$as_me:$LINENO: result: yes" >&5
7156echo "${ECHO_T}yes" >&6
7157 else
7158 echo "$as_me:$LINENO: result: no" >&5
7159echo "${ECHO_T}no" >&6
7160 fi
7161
7162
646b6ec1
VS
7163 enablestring=
7164 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
7165echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6
7166 no_cache=0
7167 # Check whether --enable-webkit or --disable-webkit was given.
7168if test "${enable_webkit+set}" = set; then
7169 enableval="$enable_webkit"
7170
7171 if test "$enableval" = yes; then
7172 ac_cv_use_webkit='wxUSE_WEBKIT=yes'
7173 else
7174 ac_cv_use_webkit='wxUSE_WEBKIT=no'
7175 fi
7176
7177else
7178
7179 LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}`
7180 if test "x$LINE" != x ; then
7181 eval "DEFAULT_$LINE"
7182 else
7183 no_cache=1
7184 fi
7185
7186 ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT
7187
7188fi;
7189
7190 eval "$ac_cv_use_webkit"
7191 if test "$no_cache" != 1; then
7192 echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp
7193 fi
7194
7195 if test "$wxUSE_WEBKIT" = yes; then
7196 echo "$as_me:$LINENO: result: yes" >&5
7197echo "${ECHO_T}yes" >&6
7198 else
7199 echo "$as_me:$LINENO: result: no" >&5
7200echo "${ECHO_T}no" >&6
7201 fi
7202
7203
91dea314
MW
7204 enablestring=
7205 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
7206echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
7207 no_cache=0
7208 # Check whether --enable-html or --disable-html was given.
7209if test "${enable_html+set}" = set; then
7210 enableval="$enable_html"
7211
7212 if test "$enableval" = yes; then
7213 ac_cv_use_html='wxUSE_RICHTEXT=yes'
7214 else
7215 ac_cv_use_html='wxUSE_RICHTEXT=no'
7216 fi
7217
7218else
7219
7220 LINE=`grep "wxUSE_RICHTEXT" ${wx_arg_cache_file}`
7221 if test "x$LINE" != x ; then
7222 eval "DEFAULT_$LINE"
7223 else
7224 no_cache=1
7225 fi
7226
7227 ac_cv_use_html='wxUSE_RICHTEXT='$DEFAULT_wxUSE_RICHTEXT
7228
7229fi;
7230
7231 eval "$ac_cv_use_html"
7232 if test "$no_cache" != 1; then
7233 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
7234 fi
7235
7236 if test "$wxUSE_RICHTEXT" = yes; then
7237 echo "$as_me:$LINENO: result: yes" >&5
7238echo "${ECHO_T}yes" >&6
7239 else
7240 echo "$as_me:$LINENO: result: no" >&5
7241echo "${ECHO_T}no" >&6
7242 fi
7243
7244
a848cd7e
SC
7245
7246 enablestring=
7247 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
7248echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
7249 no_cache=0
7250 # Check whether --enable-postscript or --disable-postscript was given.
7251if test "${enable_postscript+set}" = set; then
7252 enableval="$enable_postscript"
7253
7254 if test "$enableval" = yes; then
7255 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
7256 else
7257 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
7258 fi
7259
7260else
7261
7262 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
7263 if test "x$LINE" != x ; then
7264 eval "DEFAULT_$LINE"
7265 else
7266 no_cache=1
7267 fi
7268
7269 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
7270
7271fi;
7272
7273 eval "$ac_cv_use_postscript"
7274 if test "$no_cache" != 1; then
7275 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
7276 fi
7277
7278 if test "$wxUSE_POSTSCRIPT" = yes; then
7279 echo "$as_me:$LINENO: result: yes" >&5
7280echo "${ECHO_T}yes" >&6
7281 else
7282 echo "$as_me:$LINENO: result: no" >&5
7283echo "${ECHO_T}no" >&6
7284 fi
7285
7286
7287
7288
7289
7290 enablestring=
7291 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
7292echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
7293 no_cache=0
7294 # Check whether --enable-prologio or --disable-prologio was given.
7295if test "${enable_prologio+set}" = set; then
7296 enableval="$enable_prologio"
7297
7298 if test "$enableval" = yes; then
7299 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
7300 else
7301 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
7302 fi
7303
7304else
7305
7306 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
7307 if test "x$LINE" != x ; then
7308 eval "DEFAULT_$LINE"
7309 else
7310 no_cache=1
7311 fi
7312
7313 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
7314
7315fi;
7316
7317 eval "$ac_cv_use_prologio"
7318 if test "$no_cache" != 1; then
7319 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
7320 fi
7321
7322 if test "$wxUSE_PROLOGIO" = yes; then
7323 echo "$as_me:$LINENO: result: yes" >&5
7324echo "${ECHO_T}yes" >&6
7325 else
7326 echo "$as_me:$LINENO: result: no" >&5
7327echo "${ECHO_T}no" >&6
7328 fi
7329
7330
7331 enablestring=
7332 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
7333echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
7334 no_cache=0
7335 # Check whether --enable-resources or --disable-resources was given.
7336if test "${enable_resources+set}" = set; then
7337 enableval="$enable_resources"
7338
7339 if test "$enableval" = yes; then
7340 ac_cv_use_resources='wxUSE_RESOURCES=yes'
7341 else
7342 ac_cv_use_resources='wxUSE_RESOURCES=no'
7343 fi
7344
7345else
7346
7347 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
7348 if test "x$LINE" != x ; then
7349 eval "DEFAULT_$LINE"
7350 else
7351 no_cache=1
7352 fi
7353
7354 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
7355
7356fi;
7357
7358 eval "$ac_cv_use_resources"
7359 if test "$no_cache" != 1; then
7360 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
7361 fi
7362
7363 if test "$wxUSE_RESOURCES" = yes; then
7364 echo "$as_me:$LINENO: result: yes" >&5
7365echo "${ECHO_T}yes" >&6
7366 else
7367 echo "$as_me:$LINENO: result: no" >&5
7368echo "${ECHO_T}no" >&6
7369 fi
7370
7371
7372
7373
7374 enablestring=
7375 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
7376echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
7377 no_cache=0
7378 # Check whether --enable-clipboard or --disable-clipboard was given.
7379if test "${enable_clipboard+set}" = set; then
7380 enableval="$enable_clipboard"
7381
7382 if test "$enableval" = yes; then
7383 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
7384 else
7385 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
7386 fi
7387
7388else
7389
7390 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
7391 if test "x$LINE" != x ; then
7392 eval "DEFAULT_$LINE"
7393 else
7394 no_cache=1
7395 fi
7396
7397 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
7398
7399fi;
7400
7401 eval "$ac_cv_use_clipboard"
7402 if test "$no_cache" != 1; then
7403 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
7404 fi
7405
7406 if test "$wxUSE_CLIPBOARD" = yes; then
7407 echo "$as_me:$LINENO: result: yes" >&5
7408echo "${ECHO_T}yes" >&6
7409 else
7410 echo "$as_me:$LINENO: result: no" >&5
7411echo "${ECHO_T}no" >&6
7412 fi
7413
7414
7415 enablestring=
7416 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
7417echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
7418 no_cache=0
7419 # Check whether --enable-dnd or --disable-dnd was given.
7420if test "${enable_dnd+set}" = set; then
7421 enableval="$enable_dnd"
7422
7423 if test "$enableval" = yes; then
7424 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
7425 else
7426 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
7427 fi
7428
7429else
7430
7431 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
7432 if test "x$LINE" != x ; then
7433 eval "DEFAULT_$LINE"
7434 else
7435 no_cache=1
7436 fi
7437
7438 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
7439
7440fi;
7441
7442 eval "$ac_cv_use_dnd"
7443 if test "$no_cache" != 1; then
7444 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
7445 fi
7446
7447 if test "$wxUSE_DRAG_AND_DROP" = yes; then
7448 echo "$as_me:$LINENO: result: yes" >&5
7449echo "${ECHO_T}yes" >&6
7450 else
7451 echo "$as_me:$LINENO: result: no" >&5
7452echo "${ECHO_T}no" >&6
7453 fi
7454
7455
7456 enablestring=
7457 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
7458echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
7459 no_cache=0
7460 # Check whether --enable-metafile or --disable-metafile was given.
7461if test "${enable_metafile+set}" = set; then
7462 enableval="$enable_metafile"
7463
7464 if test "$enableval" = yes; then
7465 ac_cv_use_metafile='wxUSE_METAFILE=yes'
7466 else
7467 ac_cv_use_metafile='wxUSE_METAFILE=no'
7468 fi
7469
7470else
7471
7472 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
7473 if test "x$LINE" != x ; then
7474 eval "DEFAULT_$LINE"
7475 else
7476 no_cache=1
7477 fi
7478
7479 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
7480
7481fi;
7482
7483 eval "$ac_cv_use_metafile"
7484 if test "$no_cache" != 1; then
7485 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
7486 fi
7487
7488 if test "$wxUSE_METAFILE" = yes; then
7489 echo "$as_me:$LINENO: result: yes" >&5
7490echo "${ECHO_T}yes" >&6
7491 else
7492 echo "$as_me:$LINENO: result: no" >&5
7493echo "${ECHO_T}no" >&6
7494 fi
7495
7496
7497
7498
7499
7500 enablestring=
7501 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
7502echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
7503 no_cache=0
7504 # Check whether --enable-controls or --disable-controls was given.
7505if test "${enable_controls+set}" = set; then
7506 enableval="$enable_controls"
7507
7508 if test "$enableval" = yes; then
7509 ac_cv_use_controls='wxUSE_CONTROLS=yes'
7510 else
7511 ac_cv_use_controls='wxUSE_CONTROLS=no'
7512 fi
7513
7514else
7515
7516 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
7517 if test "x$LINE" != x ; then
7518 eval "DEFAULT_$LINE"
7519 else
7520 no_cache=1
7521 fi
7522
7523 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
7524
7525fi;
7526
7527 eval "$ac_cv_use_controls"
7528 if test "$no_cache" != 1; then
7529 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
7530 fi
7531
7532 if test "$wxUSE_CONTROLS" = yes; then
7533 echo "$as_me:$LINENO: result: yes" >&5
7534echo "${ECHO_T}yes" >&6
7535 else
7536 echo "$as_me:$LINENO: result: no" >&5
7537echo "${ECHO_T}no" >&6
7538 fi
7539
7540
7541if test "$wxUSE_CONTROLS" = "yes"; then
7542 DEFAULT_wxUSE_ACCEL=yes
7543 DEFAULT_wxUSE_BMPBUTTON=yes
7544 DEFAULT_wxUSE_BUTTON=yes
da98e9be 7545 DEFAULT_wxUSE_CALCTRL=yes
a848cd7e
SC
7546 DEFAULT_wxUSE_CARET=yes
7547 DEFAULT_wxUSE_COMBOBOX=yes
7548 DEFAULT_wxUSE_CHECKBOX=yes
7549 DEFAULT_wxUSE_CHECKLISTBOX=yes
7550 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 7551 DEFAULT_wxUSE_CHOICEBOOK=yes
da98e9be 7552 DEFAULT_wxUSE_DATEPICKCTRL=yes
a848cd7e
SC
7553 DEFAULT_wxUSE_GAUGE=yes
7554 DEFAULT_wxUSE_GRID=yes
20e34ecc 7555 DEFAULT_wxUSE_DATAVIEWCTRL=no
a848cd7e
SC
7556 DEFAULT_wxUSE_IMAGLIST=yes
7557 DEFAULT_wxUSE_LISTBOOK=yes
7558 DEFAULT_wxUSE_LISTBOX=yes
7559 DEFAULT_wxUSE_LISTCTRL=yes
7560 DEFAULT_wxUSE_NOTEBOOK=yes
7561 DEFAULT_wxUSE_RADIOBOX=yes
7562 DEFAULT_wxUSE_RADIOBTN=yes
7563 DEFAULT_wxUSE_SASH=yes
7564 DEFAULT_wxUSE_SCROLLBAR=yes
7565 DEFAULT_wxUSE_SLIDER=yes
7566 DEFAULT_wxUSE_SPINBTN=yes
7567 DEFAULT_wxUSE_SPINCTRL=yes
7568 DEFAULT_wxUSE_SPLITTER=yes
7569 DEFAULT_wxUSE_STATBMP=yes
7570 DEFAULT_wxUSE_STATBOX=yes
7571 DEFAULT_wxUSE_STATLINE=yes
7572 DEFAULT_wxUSE_STATUSBAR=yes
7573 DEFAULT_wxUSE_TAB_DIALOG=yes
7574 DEFAULT_wxUSE_TOGGLEBTN=yes
7575 DEFAULT_wxUSE_TOOLBAR=yes
7576 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
7577 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
7578 DEFAULT_wxUSE_TOOLTIPS=yes
0093c2fc 7579 DEFAULT_wxUSE_TREEBOOK=yes
5ec3bc43 7580 DEFAULT_wxUSE_TOOLBOOK=yes
a848cd7e
SC
7581 DEFAULT_wxUSE_TREECTRL=yes
7582 DEFAULT_wxUSE_POPUPWIN=yes
7583 DEFAULT_wxUSE_TIPWINDOW=yes
7584elif test "$wxUSE_CONTROLS" = "no"; then
7585 DEFAULT_wxUSE_ACCEL=no
7586 DEFAULT_wxUSE_BMPBUTTON=no
7587 DEFAULT_wxUSE_BUTTON=no
7588 DEFAULT_wxUSE_CALCTRL=no
7589 DEFAULT_wxUSE_CARET=no
7590 DEFAULT_wxUSE_COMBOBOX=no
7591 DEFAULT_wxUSE_CHECKBOX=no
7592 DEFAULT_wxUSE_CHECKLISTBOX=no
7593 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 7594 DEFAULT_wxUSE_CHOICEBOOK=no
da98e9be 7595 DEFAULT_wxUSE_DATEPICKCTRL=no
a848cd7e
SC
7596 DEFAULT_wxUSE_GAUGE=no
7597 DEFAULT_wxUSE_GRID=no
20e34ecc 7598 DEFAULT_wxUSE_DATAVIEWCTRL=no
a848cd7e
SC
7599 DEFAULT_wxUSE_IMAGLIST=no
7600 DEFAULT_wxUSE_LISTBOOK=no
7601 DEFAULT_wxUSE_LISTBOX=no
7602 DEFAULT_wxUSE_LISTCTRL=no
7603 DEFAULT_wxUSE_NOTEBOOK=no
7604 DEFAULT_wxUSE_RADIOBOX=no
7605 DEFAULT_wxUSE_RADIOBTN=no
7606 DEFAULT_wxUSE_SASH=no
7607 DEFAULT_wxUSE_SCROLLBAR=no
7608 DEFAULT_wxUSE_SLIDER=no
7609 DEFAULT_wxUSE_SPINBTN=no
7610 DEFAULT_wxUSE_SPINCTRL=no
7611 DEFAULT_wxUSE_SPLITTER=no
7612 DEFAULT_wxUSE_STATBMP=no
7613 DEFAULT_wxUSE_STATBOX=no
7614 DEFAULT_wxUSE_STATLINE=no
7615 DEFAULT_wxUSE_STATUSBAR=no
7616 DEFAULT_wxUSE_TAB_DIALOG=no
7617 DEFAULT_wxUSE_TOGGLEBTN=no
7618 DEFAULT_wxUSE_TOOLBAR=no
7619 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
7620 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
7621 DEFAULT_wxUSE_TOOLTIPS=no
0093c2fc 7622 DEFAULT_wxUSE_TREEBOOK=no
5ec3bc43 7623 DEFAULT_wxUSE_TOOLBOOK=no
a848cd7e
SC
7624 DEFAULT_wxUSE_TREECTRL=no
7625 DEFAULT_wxUSE_POPUPWIN=no
7626 DEFAULT_wxUSE_TIPWINDOW=no
7627fi
7628
a848cd7e
SC
7629
7630 enablestring=
7631 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
7632echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
7633 no_cache=0
7634 # Check whether --enable-accel or --disable-accel was given.
7635if test "${enable_accel+set}" = set; then
7636 enableval="$enable_accel"
7637
7638 if test "$enableval" = yes; then
7639 ac_cv_use_accel='wxUSE_ACCEL=yes'
7640 else
7641 ac_cv_use_accel='wxUSE_ACCEL=no'
7642 fi
7643
7644else
7645
7646 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
7647 if test "x$LINE" != x ; then
7648 eval "DEFAULT_$LINE"
7649 else
7650 no_cache=1
7651 fi
7652
7653 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
7654
7655fi;
7656
7657 eval "$ac_cv_use_accel"
7658 if test "$no_cache" != 1; then
7659 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
7660 fi
7661
7662 if test "$wxUSE_ACCEL" = yes; then
7663 echo "$as_me:$LINENO: result: yes" >&5
7664echo "${ECHO_T}yes" >&6
7665 else
7666 echo "$as_me:$LINENO: result: no" >&5
7667echo "${ECHO_T}no" >&6
7668 fi
7669
7670
7671 enablestring=
7672 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
7673echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
7674 no_cache=0
7675 # Check whether --enable-button or --disable-button was given.
7676if test "${enable_button+set}" = set; then
7677 enableval="$enable_button"
7678
7679 if test "$enableval" = yes; then
7680 ac_cv_use_button='wxUSE_BUTTON=yes'
7681 else
7682 ac_cv_use_button='wxUSE_BUTTON=no'
7683 fi
7684
7685else
7686
7687 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
7688 if test "x$LINE" != x ; then
7689 eval "DEFAULT_$LINE"
7690 else
7691 no_cache=1
7692 fi
7693
7694 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
7695
7696fi;
7697
7698 eval "$ac_cv_use_button"
7699 if test "$no_cache" != 1; then
7700 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
7701 fi
7702
7703 if test "$wxUSE_BUTTON" = yes; then
7704 echo "$as_me:$LINENO: result: yes" >&5
7705echo "${ECHO_T}yes" >&6
7706 else
7707 echo "$as_me:$LINENO: result: no" >&5
7708echo "${ECHO_T}no" >&6
7709 fi
7710
7711
7712 enablestring=
7713 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
7714echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
7715 no_cache=0
7716 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
7717if test "${enable_bmpbutton+set}" = set; then
7718 enableval="$enable_bmpbutton"
7719
7720 if test "$enableval" = yes; then
7721 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
7722 else
7723 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
7724 fi
7725
7726else
7727
7728 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
7729 if test "x$LINE" != x ; then
7730 eval "DEFAULT_$LINE"
7731 else
7732 no_cache=1
7733 fi
7734
7735 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
7736
7737fi;
7738
7739 eval "$ac_cv_use_bmpbutton"
7740 if test "$no_cache" != 1; then
7741 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
7742 fi
7743
7744 if test "$wxUSE_BMPBUTTON" = yes; then
7745 echo "$as_me:$LINENO: result: yes" >&5
7746echo "${ECHO_T}yes" >&6
7747 else
7748 echo "$as_me:$LINENO: result: no" >&5
7749echo "${ECHO_T}no" >&6
7750 fi
7751
7752
7753 enablestring=
7754 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
7755echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
7756 no_cache=0
7757 # Check whether --enable-calendar or --disable-calendar was given.
7758if test "${enable_calendar+set}" = set; then
7759 enableval="$enable_calendar"
7760
7761 if test "$enableval" = yes; then
7762 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
7763 else
7764 ac_cv_use_calendar='wxUSE_CALCTRL=no'
7765 fi
7766
7767else
7768
7769 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
7770 if test "x$LINE" != x ; then
7771 eval "DEFAULT_$LINE"
7772 else
7773 no_cache=1
7774 fi
7775
7776 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
7777
7778fi;
7779
7780 eval "$ac_cv_use_calendar"
7781 if test "$no_cache" != 1; then
7782 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
7783 fi
7784
7785 if test "$wxUSE_CALCTRL" = yes; then
7786 echo "$as_me:$LINENO: result: yes" >&5
7787echo "${ECHO_T}yes" >&6
7788 else
7789 echo "$as_me:$LINENO: result: no" >&5
7790echo "${ECHO_T}no" >&6
7791 fi
7792
7793
7794 enablestring=
7795 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
7796echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
7797 no_cache=0
7798 # Check whether --enable-caret or --disable-caret was given.
7799if test "${enable_caret+set}" = set; then
7800 enableval="$enable_caret"
7801
7802 if test "$enableval" = yes; then
7803 ac_cv_use_caret='wxUSE_CARET=yes'
7804 else
7805 ac_cv_use_caret='wxUSE_CARET=no'
7806 fi
7807
7808else
7809
7810 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
7811 if test "x$LINE" != x ; then
7812 eval "DEFAULT_$LINE"
7813 else
7814 no_cache=1
7815 fi
7816
7817 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
7818
7819fi;
7820
7821 eval "$ac_cv_use_caret"
7822 if test "$no_cache" != 1; then
7823 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
7824 fi
7825
7826 if test "$wxUSE_CARET" = yes; then
7827 echo "$as_me:$LINENO: result: yes" >&5
7828echo "${ECHO_T}yes" >&6
7829 else
7830 echo "$as_me:$LINENO: result: no" >&5
7831echo "${ECHO_T}no" >&6
7832 fi
7833
7834
7835 enablestring=
7836 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
7837echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
7838 no_cache=0
7839 # Check whether --enable-checkbox or --disable-checkbox was given.
7840if test "${enable_checkbox+set}" = set; then
7841 enableval="$enable_checkbox"
7842
7843 if test "$enableval" = yes; then
7844 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
7845 else
7846 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
7847 fi
7848
7849else
7850
7851 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
7852 if test "x$LINE" != x ; then
7853 eval "DEFAULT_$LINE"
7854 else
7855 no_cache=1
7856 fi
7857
7858 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
7859
7860fi;
7861
7862 eval "$ac_cv_use_checkbox"
7863 if test "$no_cache" != 1; then
7864 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
7865 fi
7866
7867 if test "$wxUSE_CHECKBOX" = yes; then
7868 echo "$as_me:$LINENO: result: yes" >&5
7869echo "${ECHO_T}yes" >&6
7870 else
7871 echo "$as_me:$LINENO: result: no" >&5
7872echo "${ECHO_T}no" >&6
7873 fi
7874
7875
7876 enablestring=
7877 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
7878echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
7879 no_cache=0
7880 # Check whether --enable-checklst or --disable-checklst was given.
7881if test "${enable_checklst+set}" = set; then
7882 enableval="$enable_checklst"
7883
7884 if test "$enableval" = yes; then
7885 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
7886 else
7887 ac_cv_use_checklst='wxUSE_CHECKLST=no'
7888 fi
7889
7890else
7891
7892 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
7893 if test "x$LINE" != x ; then
7894 eval "DEFAULT_$LINE"
7895 else
7896 no_cache=1
7897 fi
7898
7899 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
7900
7901fi;
7902
7903 eval "$ac_cv_use_checklst"
7904 if test "$no_cache" != 1; then
7905 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
7906 fi
7907
7908 if test "$wxUSE_CHECKLST" = yes; then
7909 echo "$as_me:$LINENO: result: yes" >&5
7910echo "${ECHO_T}yes" >&6
7911 else
7912 echo "$as_me:$LINENO: result: no" >&5
7913echo "${ECHO_T}no" >&6
7914 fi
7915
7916
7917 enablestring=
7918 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
7919echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
7920 no_cache=0
7921 # Check whether --enable-choice or --disable-choice was given.
7922if test "${enable_choice+set}" = set; then
7923 enableval="$enable_choice"
7924
7925 if test "$enableval" = yes; then
7926 ac_cv_use_choice='wxUSE_CHOICE=yes'
7927 else
7928 ac_cv_use_choice='wxUSE_CHOICE=no'
7929 fi
7930
7931else
7932
7933 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
7934 if test "x$LINE" != x ; then
7935 eval "DEFAULT_$LINE"
7936 else
7937 no_cache=1
7938 fi
7939
7940 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
7941
7942fi;
7943
7944 eval "$ac_cv_use_choice"
7945 if test "$no_cache" != 1; then
7946 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
7947 fi
7948
7949 if test "$wxUSE_CHOICE" = yes; then
7950 echo "$as_me:$LINENO: result: yes" >&5
7951echo "${ECHO_T}yes" >&6
7952 else
7953 echo "$as_me:$LINENO: result: no" >&5
7954echo "${ECHO_T}no" >&6
7955 fi
7956
7957
92bbdbcd
WS
7958 enablestring=
7959 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
7960echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6
7961 no_cache=0
7962 # Check whether --enable-choicebook or --disable-choicebook was given.
7963if test "${enable_choicebook+set}" = set; then
7964 enableval="$enable_choicebook"
7965
7966 if test "$enableval" = yes; then
7967 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
7968 else
7969 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
7970 fi
7971
7972else
7973
7974 LINE=`grep "wxUSE_CHOICEBOOK" ${wx_arg_cache_file}`
7975 if test "x$LINE" != x ; then
7976 eval "DEFAULT_$LINE"
7977 else
7978 no_cache=1
7979 fi
7980
7981 ac_cv_use_choicebook='wxUSE_CHOICEBOOK='$DEFAULT_wxUSE_CHOICEBOOK
7982
7983fi;
7984
7985 eval "$ac_cv_use_choicebook"
7986 if test "$no_cache" != 1; then
7987 echo $ac_cv_use_choicebook >> ${wx_arg_cache_file}.tmp
7988 fi
7989
7990 if test "$wxUSE_CHOICEBOOK" = yes; then
7991 echo "$as_me:$LINENO: result: yes" >&5
7992echo "${ECHO_T}yes" >&6
7993 else
7994 echo "$as_me:$LINENO: result: no" >&5
7995echo "${ECHO_T}no" >&6
7996 fi
7997
7998
a848cd7e
SC
7999 enablestring=
8000 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
8001echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
8002 no_cache=0
8003 # Check whether --enable-combobox or --disable-combobox was given.
8004if test "${enable_combobox+set}" = set; then
8005 enableval="$enable_combobox"
8006
8007 if test "$enableval" = yes; then
8008 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
8009 else
8010 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
8011 fi
8012
8013else
8014
8015 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
8016 if test "x$LINE" != x ; then
8017 eval "DEFAULT_$LINE"
8018 else
8019 no_cache=1
8020 fi
8021
8022 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
8023
8024fi;
8025
8026 eval "$ac_cv_use_combobox"
8027 if test "$no_cache" != 1; then
8028 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
8029 fi
8030
8031 if test "$wxUSE_COMBOBOX" = yes; then
8032 echo "$as_me:$LINENO: result: yes" >&5
8033echo "${ECHO_T}yes" >&6
8034 else
8035 echo "$as_me:$LINENO: result: no" >&5
8036echo "${ECHO_T}no" >&6
8037 fi
8038
8039
da98e9be
VZ
8040 enablestring=
8041 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5
8042echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6
8043 no_cache=0
8044 # Check whether --enable-datepick or --disable-datepick was given.
8045if test "${enable_datepick+set}" = set; then
8046 enableval="$enable_datepick"
8047
8048 if test "$enableval" = yes; then
8049 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=yes'
8050 else
8051 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=no'
8052 fi
8053
8054else
8055
8056 LINE=`grep "wxUSE_DATEPICKCTRL" ${wx_arg_cache_file}`
8057 if test "x$LINE" != x ; then
8058 eval "DEFAULT_$LINE"
8059 else
8060 no_cache=1
8061 fi
8062
8063 ac_cv_use_datepick='wxUSE_DATEPICKCTRL='$DEFAULT_wxUSE_DATEPICKCTRL
8064
8065fi;
8066
8067 eval "$ac_cv_use_datepick"
8068 if test "$no_cache" != 1; then
8069 echo $ac_cv_use_datepick >> ${wx_arg_cache_file}.tmp
8070 fi
8071
8072 if test "$wxUSE_DATEPICKCTRL" = yes; then
8073 echo "$as_me:$LINENO: result: yes" >&5
8074echo "${ECHO_T}yes" >&6
8075 else
8076 echo "$as_me:$LINENO: result: no" >&5
8077echo "${ECHO_T}no" >&6
8078 fi
8079
8080
a848cd7e
SC
8081 enablestring=
8082 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
8083echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
8084 no_cache=0
8085 # Check whether --enable-display or --disable-display was given.
8086if test "${enable_display+set}" = set; then
8087 enableval="$enable_display"
8088
8089 if test "$enableval" = yes; then
8090 ac_cv_use_display='wxUSE_DISPLAY=yes'
8091 else
8092 ac_cv_use_display='wxUSE_DISPLAY=no'
8093 fi
8094
8095else
8096
8097 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
8098 if test "x$LINE" != x ; then
8099 eval "DEFAULT_$LINE"
8100 else
8101 no_cache=1
8102 fi
8103
8104 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
8105
8106fi;
8107
8108 eval "$ac_cv_use_display"
8109 if test "$no_cache" != 1; then
8110 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
8111 fi
8112
8113 if test "$wxUSE_DISPLAY" = yes; then
8114 echo "$as_me:$LINENO: result: yes" >&5
8115echo "${ECHO_T}yes" >&6
8116 else
8117 echo "$as_me:$LINENO: result: no" >&5
8118echo "${ECHO_T}no" >&6
8119 fi
8120
8121
8122 enablestring=
8123 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
8124echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
8125 no_cache=0
8126 # Check whether --enable-gauge or --disable-gauge was given.
8127if test "${enable_gauge+set}" = set; then
8128 enableval="$enable_gauge"
8129
8130 if test "$enableval" = yes; then
8131 ac_cv_use_gauge='wxUSE_GAUGE=yes'
8132 else
8133 ac_cv_use_gauge='wxUSE_GAUGE=no'
8134 fi
8135
8136else
8137
8138 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
8139 if test "x$LINE" != x ; then
8140 eval "DEFAULT_$LINE"
8141 else
8142 no_cache=1
8143 fi
8144
8145 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
8146
8147fi;
8148
8149 eval "$ac_cv_use_gauge"
8150 if test "$no_cache" != 1; then
8151 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
8152 fi
8153
8154 if test "$wxUSE_GAUGE" = yes; then
8155 echo "$as_me:$LINENO: result: yes" >&5
8156echo "${ECHO_T}yes" >&6
8157 else
8158 echo "$as_me:$LINENO: result: no" >&5
8159echo "${ECHO_T}no" >&6
8160 fi
8161
8162
8163 enablestring=
8164 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
8165echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
8166 no_cache=0
8167 # Check whether --enable-grid or --disable-grid was given.
8168if test "${enable_grid+set}" = set; then
8169 enableval="$enable_grid"
8170
8171 if test "$enableval" = yes; then
8172 ac_cv_use_grid='wxUSE_GRID=yes'
8173 else
8174 ac_cv_use_grid='wxUSE_GRID=no'
8175 fi
8176
8177else
8178
8179 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
8180 if test "x$LINE" != x ; then
8181 eval "DEFAULT_$LINE"
8182 else
8183 no_cache=1
8184 fi
8185
8186 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
8187
8188fi;
8189
8190 eval "$ac_cv_use_grid"
8191 if test "$no_cache" != 1; then
8192 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
8193 fi
8194
8195 if test "$wxUSE_GRID" = yes; then
8196 echo "$as_me:$LINENO: result: yes" >&5
8197echo "${ECHO_T}yes" >&6
8198 else
8199 echo "$as_me:$LINENO: result: no" >&5
8200echo "${ECHO_T}no" >&6
8201 fi
8202
8203
20e34ecc
RR
8204 enablestring=
8205 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataviewctrl" >&5
8206echo $ECHO_N "checking for --${enablestring:-enable}-dataviewctrl... $ECHO_C" >&6
8207 no_cache=0
8208 # Check whether --enable-dataviewctrl or --disable-dataviewctrl was given.
8209if test "${enable_dataviewctrl+set}" = set; then
8210 enableval="$enable_dataviewctrl"
8211
8212 if test "$enableval" = yes; then
8213 ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=yes'
8214 else
8215 ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=no'
8216 fi
8217
8218else
8219
8220 LINE=`grep "wxUSE_DATAVIEWCTRL" ${wx_arg_cache_file}`
8221 if test "x$LINE" != x ; then
8222 eval "DEFAULT_$LINE"
8223 else
8224 no_cache=1
8225 fi
8226
8227 ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL='$DEFAULT_wxUSE_DATAVIEWCTRL
8228
8229fi;
8230
8231 eval "$ac_cv_use_dataviewctrl"
8232 if test "$no_cache" != 1; then
8233 echo $ac_cv_use_dataviewctrl >> ${wx_arg_cache_file}.tmp
8234 fi
8235
8236 if test "$wxUSE_DATAVIEWCTRL" = yes; then
8237 echo "$as_me:$LINENO: result: yes" >&5
8238echo "${ECHO_T}yes" >&6
8239 else
8240 echo "$as_me:$LINENO: result: no" >&5
8241echo "${ECHO_T}no" >&6
8242 fi
8243
8244
a848cd7e
SC
8245 enablestring=
8246 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
8247echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
8248 no_cache=0
8249 # Check whether --enable-imaglist or --disable-imaglist was given.
8250if test "${enable_imaglist+set}" = set; then
8251 enableval="$enable_imaglist"
8252
8253 if test "$enableval" = yes; then
8254 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
8255 else
8256 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
8257 fi
8258
8259else
8260
8261 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
8262 if test "x$LINE" != x ; then
8263 eval "DEFAULT_$LINE"
8264 else
8265 no_cache=1
8266 fi
8267
8268 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
8269
8270fi;
8271
8272 eval "$ac_cv_use_imaglist"
8273 if test "$no_cache" != 1; then
8274 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
8275 fi
8276
8277 if test "$wxUSE_IMAGLIST" = yes; then
8278 echo "$as_me:$LINENO: result: yes" >&5
8279echo "${ECHO_T}yes" >&6
8280 else
8281 echo "$as_me:$LINENO: result: no" >&5
8282echo "${ECHO_T}no" >&6
8283 fi
8284
8285
8286 enablestring=
8287 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
8288echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6
8289 no_cache=0
8290 # Check whether --enable-listbook or --disable-listbook was given.
8291if test "${enable_listbook+set}" = set; then
8292 enableval="$enable_listbook"
8293
8294 if test "$enableval" = yes; then
8295 ac_cv_use_listbook='wxUSE_LISTBOOK=yes'
8296 else
8297 ac_cv_use_listbook='wxUSE_LISTBOOK=no'
8298 fi
8299
8300else
8301
8302 LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}`
8303 if test "x$LINE" != x ; then
8304 eval "DEFAULT_$LINE"
8305 else
8306 no_cache=1
8307 fi
8308
8309 ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK
8310
8311fi;
8312
8313 eval "$ac_cv_use_listbook"
8314 if test "$no_cache" != 1; then
8315 echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp
8316 fi
8317
8318 if test "$wxUSE_LISTBOOK" = yes; then
8319 echo "$as_me:$LINENO: result: yes" >&5
8320echo "${ECHO_T}yes" >&6
8321 else
8322 echo "$as_me:$LINENO: result: no" >&5
8323echo "${ECHO_T}no" >&6
8324 fi
8325
8326
8327 enablestring=
8328 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
8329echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
8330 no_cache=0
8331 # Check whether --enable-listbox or --disable-listbox was given.
8332if test "${enable_listbox+set}" = set; then
8333 enableval="$enable_listbox"
8334
8335 if test "$enableval" = yes; then
8336 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
8337 else
8338 ac_cv_use_listbox='wxUSE_LISTBOX=no'
8339 fi
8340
8341else
8342
8343 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
8344 if test "x$LINE" != x ; then
8345 eval "DEFAULT_$LINE"
8346 else
8347 no_cache=1
8348 fi
8349
8350 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
8351
8352fi;
8353
8354 eval "$ac_cv_use_listbox"
8355 if test "$no_cache" != 1; then
8356 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
8357 fi
8358
8359 if test "$wxUSE_LISTBOX" = yes; then
8360 echo "$as_me:$LINENO: result: yes" >&5
8361echo "${ECHO_T}yes" >&6
8362 else
8363 echo "$as_me:$LINENO: result: no" >&5
8364echo "${ECHO_T}no" >&6
8365 fi
8366
8367
8368 enablestring=
8369 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
8370echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
8371 no_cache=0
8372 # Check whether --enable-listctrl or --disable-listctrl was given.
8373if test "${enable_listctrl+set}" = set; then
8374 enableval="$enable_listctrl"
8375
8376 if test "$enableval" = yes; then
8377 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
8378 else
8379 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
8380 fi
8381
8382else
8383
8384 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
8385 if test "x$LINE" != x ; then
8386 eval "DEFAULT_$LINE"
8387 else
8388 no_cache=1
8389 fi
8390
8391 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
8392
8393fi;
8394
8395 eval "$ac_cv_use_listctrl"
8396 if test "$no_cache" != 1; then
8397 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
8398 fi
8399
8400 if test "$wxUSE_LISTCTRL" = yes; then
8401 echo "$as_me:$LINENO: result: yes" >&5
8402echo "${ECHO_T}yes" >&6
8403 else
8404 echo "$as_me:$LINENO: result: no" >&5
8405echo "${ECHO_T}no" >&6
8406 fi
8407
8408
8409 enablestring=
8410 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
8411echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
8412 no_cache=0
8413 # Check whether --enable-notebook or --disable-notebook was given.
8414if test "${enable_notebook+set}" = set; then
8415 enableval="$enable_notebook"
8416
8417 if test "$enableval" = yes; then
8418 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
8419 else
8420 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
8421 fi
8422
8423else
8424
8425 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
8426 if test "x$LINE" != x ; then
8427 eval "DEFAULT_$LINE"
8428 else
8429 no_cache=1
8430 fi
8431
8432 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
8433
8434fi;
8435
8436 eval "$ac_cv_use_notebook"
8437 if test "$no_cache" != 1; then
8438 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
8439 fi
8440
8441 if test "$wxUSE_NOTEBOOK" = yes; then
8442 echo "$as_me:$LINENO: result: yes" >&5
8443echo "${ECHO_T}yes" >&6
8444 else
8445 echo "$as_me:$LINENO: result: no" >&5
8446echo "${ECHO_T}no" >&6
8447 fi
8448
8449
8450 enablestring=
8451 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
8452echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
8453 no_cache=0
8454 # Check whether --enable-radiobox or --disable-radiobox was given.
8455if test "${enable_radiobox+set}" = set; then
8456 enableval="$enable_radiobox"
8457
8458 if test "$enableval" = yes; then
8459 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
8460 else
8461 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
8462 fi
8463
8464else
8465
8466 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
8467 if test "x$LINE" != x ; then
8468 eval "DEFAULT_$LINE"
8469 else
8470 no_cache=1
8471 fi
8472
8473 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
8474
8475fi;
8476
8477 eval "$ac_cv_use_radiobox"
8478 if test "$no_cache" != 1; then
8479 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
8480 fi
8481
8482 if test "$wxUSE_RADIOBOX" = yes; then
8483 echo "$as_me:$LINENO: result: yes" >&5
8484echo "${ECHO_T}yes" >&6
8485 else
8486 echo "$as_me:$LINENO: result: no" >&5
8487echo "${ECHO_T}no" >&6
8488 fi
8489
8490
8491 enablestring=
8492 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
8493echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
8494 no_cache=0
8495 # Check whether --enable-radiobtn or --disable-radiobtn was given.
8496if test "${enable_radiobtn+set}" = set; then
8497 enableval="$enable_radiobtn"
8498
8499 if test "$enableval" = yes; then
8500 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
8501 else
8502 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
8503 fi
8504
8505else
8506
8507 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
8508 if test "x$LINE" != x ; then
8509 eval "DEFAULT_$LINE"
8510 else
8511 no_cache=1
8512 fi
8513
8514 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
8515
8516fi;
8517
8518 eval "$ac_cv_use_radiobtn"
8519 if test "$no_cache" != 1; then
8520 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
8521 fi
8522
8523 if test "$wxUSE_RADIOBTN" = yes; then
8524 echo "$as_me:$LINENO: result: yes" >&5
8525echo "${ECHO_T}yes" >&6
8526 else
8527 echo "$as_me:$LINENO: result: no" >&5
8528echo "${ECHO_T}no" >&6
8529 fi
8530
8531
8532 enablestring=
8533 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
8534echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
8535 no_cache=0
8536 # Check whether --enable-sash or --disable-sash was given.
8537if test "${enable_sash+set}" = set; then
8538 enableval="$enable_sash"
8539
8540 if test "$enableval" = yes; then
8541 ac_cv_use_sash='wxUSE_SASH=yes'
8542 else
8543 ac_cv_use_sash='wxUSE_SASH=no'
8544 fi
8545
8546else
8547
8548 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
8549 if test "x$LINE" != x ; then
8550 eval "DEFAULT_$LINE"
8551 else
8552 no_cache=1
8553 fi
8554
8555 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
8556
8557fi;
8558
8559 eval "$ac_cv_use_sash"
8560 if test "$no_cache" != 1; then
8561 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
8562 fi
8563
8564 if test "$wxUSE_SASH" = yes; then
8565 echo "$as_me:$LINENO: result: yes" >&5
8566echo "${ECHO_T}yes" >&6
8567 else
8568 echo "$as_me:$LINENO: result: no" >&5
8569echo "${ECHO_T}no" >&6
8570 fi
8571
8572
8573 enablestring=
8574 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
8575echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
8576 no_cache=0
8577 # Check whether --enable-scrollbar or --disable-scrollbar was given.
8578if test "${enable_scrollbar+set}" = set; then
8579 enableval="$enable_scrollbar"
8580
8581 if test "$enableval" = yes; then
8582 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
8583 else
8584 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
8585 fi
8586
8587else
8588
8589 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
8590 if test "x$LINE" != x ; then
8591 eval "DEFAULT_$LINE"
8592 else
8593 no_cache=1
8594 fi
8595
8596 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
8597
8598fi;
8599
8600 eval "$ac_cv_use_scrollbar"
8601 if test "$no_cache" != 1; then
8602 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
8603 fi
8604
8605 if test "$wxUSE_SCROLLBAR" = yes; then
8606 echo "$as_me:$LINENO: result: yes" >&5
8607echo "${ECHO_T}yes" >&6
8608 else
8609 echo "$as_me:$LINENO: result: no" >&5
8610echo "${ECHO_T}no" >&6
8611 fi
8612
8613
8614 enablestring=
8615 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
8616echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
8617 no_cache=0
8618 # Check whether --enable-slider or --disable-slider was given.
8619if test "${enable_slider+set}" = set; then
8620 enableval="$enable_slider"
8621
8622 if test "$enableval" = yes; then
8623 ac_cv_use_slider='wxUSE_SLIDER=yes'
8624 else
8625 ac_cv_use_slider='wxUSE_SLIDER=no'
8626 fi
8627
8628else
8629
8630 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
8631 if test "x$LINE" != x ; then
8632 eval "DEFAULT_$LINE"
8633 else
8634 no_cache=1
8635 fi
8636
8637 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
8638
8639fi;
8640
8641 eval "$ac_cv_use_slider"
8642 if test "$no_cache" != 1; then
8643 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
8644 fi
8645
8646 if test "$wxUSE_SLIDER" = yes; then
8647 echo "$as_me:$LINENO: result: yes" >&5
8648echo "${ECHO_T}yes" >&6
8649 else
8650 echo "$as_me:$LINENO: result: no" >&5
8651echo "${ECHO_T}no" >&6
8652 fi
8653
8654
8655 enablestring=
8656 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
8657echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
8658 no_cache=0
8659 # Check whether --enable-spinbtn or --disable-spinbtn was given.
8660if test "${enable_spinbtn+set}" = set; then
8661 enableval="$enable_spinbtn"
8662
8663 if test "$enableval" = yes; then
8664 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
8665 else
8666 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
8667 fi
8668
8669else
8670
8671 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
8672 if test "x$LINE" != x ; then
8673 eval "DEFAULT_$LINE"
8674 else
8675 no_cache=1
8676 fi
8677
8678 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
8679
8680fi;
8681
8682 eval "$ac_cv_use_spinbtn"
8683 if test "$no_cache" != 1; then
8684 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
8685 fi
8686
8687 if test "$wxUSE_SPINBTN" = yes; then
8688 echo "$as_me:$LINENO: result: yes" >&5
8689echo "${ECHO_T}yes" >&6
8690 else
8691 echo "$as_me:$LINENO: result: no" >&5
8692echo "${ECHO_T}no" >&6
8693 fi
8694
8695
8696 enablestring=
8697 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
8698echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
8699 no_cache=0
8700 # Check whether --enable-spinctrl or --disable-spinctrl was given.
8701if test "${enable_spinctrl+set}" = set; then
8702 enableval="$enable_spinctrl"
8703
8704 if test "$enableval" = yes; then
8705 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
8706 else
8707 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
8708 fi
8709
8710else
8711
8712 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
8713 if test "x$LINE" != x ; then
8714 eval "DEFAULT_$LINE"
8715 else
8716 no_cache=1
8717 fi
8718
8719 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
8720
8721fi;
8722
8723 eval "$ac_cv_use_spinctrl"
8724 if test "$no_cache" != 1; then
8725 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
8726 fi
8727
8728 if test "$wxUSE_SPINCTRL" = yes; then
8729 echo "$as_me:$LINENO: result: yes" >&5
8730echo "${ECHO_T}yes" >&6
8731 else
8732 echo "$as_me:$LINENO: result: no" >&5
8733echo "${ECHO_T}no" >&6
8734 fi
8735
8736
8737 enablestring=
8738 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
8739echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
8740 no_cache=0
8741 # Check whether --enable-splitter or --disable-splitter was given.
8742if test "${enable_splitter+set}" = set; then
8743 enableval="$enable_splitter"
8744
8745 if test "$enableval" = yes; then
8746 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
8747 else
8748 ac_cv_use_splitter='wxUSE_SPLITTER=no'
8749 fi
8750
8751else
8752
8753 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
8754 if test "x$LINE" != x ; then
8755 eval "DEFAULT_$LINE"
8756 else
8757 no_cache=1
8758 fi
8759
8760 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
8761
8762fi;
8763
8764 eval "$ac_cv_use_splitter"
8765 if test "$no_cache" != 1; then
8766 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
8767 fi
8768
8769 if test "$wxUSE_SPLITTER" = yes; then
8770 echo "$as_me:$LINENO: result: yes" >&5
8771echo "${ECHO_T}yes" >&6
8772 else
8773 echo "$as_me:$LINENO: result: no" >&5
8774echo "${ECHO_T}no" >&6
8775 fi
8776
8777
8778 enablestring=
8779 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
8780echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
8781 no_cache=0
8782 # Check whether --enable-statbmp or --disable-statbmp was given.
8783if test "${enable_statbmp+set}" = set; then
8784 enableval="$enable_statbmp"
8785
8786 if test "$enableval" = yes; then
8787 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
8788 else
8789 ac_cv_use_statbmp='wxUSE_STATBMP=no'
8790 fi
8791
8792else
8793
8794 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
8795 if test "x$LINE" != x ; then
8796 eval "DEFAULT_$LINE"
8797 else
8798 no_cache=1
8799 fi
8800
8801 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
8802
8803fi;
8804
8805 eval "$ac_cv_use_statbmp"
8806 if test "$no_cache" != 1; then
8807 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
8808 fi
8809
8810 if test "$wxUSE_STATBMP" = yes; then
8811 echo "$as_me:$LINENO: result: yes" >&5
8812echo "${ECHO_T}yes" >&6
8813 else
8814 echo "$as_me:$LINENO: result: no" >&5
8815echo "${ECHO_T}no" >&6
8816 fi
8817
8818
8819 enablestring=
8820 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
8821echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
8822 no_cache=0
8823 # Check whether --enable-statbox or --disable-statbox was given.
8824if test "${enable_statbox+set}" = set; then
8825 enableval="$enable_statbox"
8826
8827 if test "$enableval" = yes; then
8828 ac_cv_use_statbox='wxUSE_STATBOX=yes'
8829 else
8830 ac_cv_use_statbox='wxUSE_STATBOX=no'
8831 fi
8832
8833else
8834
8835 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
8836 if test "x$LINE" != x ; then
8837 eval "DEFAULT_$LINE"
8838 else
8839 no_cache=1
8840 fi
8841
8842 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
8843
8844fi;
8845
8846 eval "$ac_cv_use_statbox"
8847 if test "$no_cache" != 1; then
8848 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
8849 fi
8850
8851 if test "$wxUSE_STATBOX" = yes; then
8852 echo "$as_me:$LINENO: result: yes" >&5
8853echo "${ECHO_T}yes" >&6
8854 else
8855 echo "$as_me:$LINENO: result: no" >&5
8856echo "${ECHO_T}no" >&6
8857 fi
8858
8859
8860 enablestring=
8861 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
8862echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
8863 no_cache=0
8864 # Check whether --enable-statline or --disable-statline was given.
8865if test "${enable_statline+set}" = set; then
8866 enableval="$enable_statline"
8867
8868 if test "$enableval" = yes; then
8869 ac_cv_use_statline='wxUSE_STATLINE=yes'
8870 else
8871 ac_cv_use_statline='wxUSE_STATLINE=no'
8872 fi
8873
8874else
8875
8876 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
8877 if test "x$LINE" != x ; then
8878 eval "DEFAULT_$LINE"
8879 else
8880 no_cache=1
8881 fi
8882
8883 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
8884
8885fi;
8886
8887 eval "$ac_cv_use_statline"
8888 if test "$no_cache" != 1; then
8889 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
8890 fi
8891
8892 if test "$wxUSE_STATLINE" = yes; then
8893 echo "$as_me:$LINENO: result: yes" >&5
8894echo "${ECHO_T}yes" >&6
8895 else
8896 echo "$as_me:$LINENO: result: no" >&5
8897echo "${ECHO_T}no" >&6
8898 fi
8899
8900
8901 enablestring=
8902 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
8903echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
8904 no_cache=0
8905 # Check whether --enable-stattext or --disable-stattext was given.
8906if test "${enable_stattext+set}" = set; then
8907 enableval="$enable_stattext"
8908
8909 if test "$enableval" = yes; then
8910 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
8911 else
8912 ac_cv_use_stattext='wxUSE_STATTEXT=no'
8913 fi
8914
8915else
8916
8917 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
8918 if test "x$LINE" != x ; then
8919 eval "DEFAULT_$LINE"
8920 else
8921 no_cache=1
8922 fi
8923
8924 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
8925
8926fi;
8927
8928 eval "$ac_cv_use_stattext"
8929 if test "$no_cache" != 1; then
8930 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
8931 fi
8932
8933 if test "$wxUSE_STATTEXT" = yes; then
8934 echo "$as_me:$LINENO: result: yes" >&5
8935echo "${ECHO_T}yes" >&6
8936 else
8937 echo "$as_me:$LINENO: result: no" >&5
8938echo "${ECHO_T}no" >&6
8939 fi
8940
8941
8942 enablestring=
8943 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
8944echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
8945 no_cache=0
8946 # Check whether --enable-statusbar or --disable-statusbar was given.
8947if test "${enable_statusbar+set}" = set; then
8948 enableval="$enable_statusbar"
8949
8950 if test "$enableval" = yes; then
8951 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
8952 else
8953 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
8954 fi
8955
8956else
8957
8958 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
8959 if test "x$LINE" != x ; then
8960 eval "DEFAULT_$LINE"
8961 else
8962 no_cache=1
8963 fi
8964
8965 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
8966
8967fi;
8968
8969 eval "$ac_cv_use_statusbar"
8970 if test "$no_cache" != 1; then
8971 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
8972 fi
8973
8974 if test "$wxUSE_STATUSBAR" = yes; then
8975 echo "$as_me:$LINENO: result: yes" >&5
8976echo "${ECHO_T}yes" >&6
8977 else
8978 echo "$as_me:$LINENO: result: no" >&5
8979echo "${ECHO_T}no" >&6
8980 fi
8981
8982
8983 enablestring=
8984 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
8985echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
8986 no_cache=0
8987 # Check whether --enable-tabdialog or --disable-tabdialog was given.
8988if test "${enable_tabdialog+set}" = set; then
8989 enableval="$enable_tabdialog"
8990
8991 if test "$enableval" = yes; then
f10e38c4 8992 ac_cv_use_tabdialog='wxUSE_TAB_DIALOG=yes'
a848cd7e 8993 else
f10e38c4 8994 ac_cv_use_tabdialog='wxUSE_TAB_DIALOG=no'
a848cd7e
SC
8995 fi
8996
8997else
8998
f10e38c4 8999 LINE=`grep "wxUSE_TAB_DIALOG" ${wx_arg_cache_file}`
a848cd7e
SC
9000 if test "x$LINE" != x ; then
9001 eval "DEFAULT_$LINE"
9002 else
9003 no_cache=1
9004 fi
9005
f10e38c4 9006 ac_cv_use_tabdialog='wxUSE_TAB_DIALOG='$DEFAULT_wxUSE_TAB_DIALOG
a848cd7e
SC
9007
9008fi;
9009
9010 eval "$ac_cv_use_tabdialog"
9011 if test "$no_cache" != 1; then
9012 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
9013 fi
9014
f10e38c4 9015 if test "$wxUSE_TAB_DIALOG" = yes; then
a848cd7e
SC
9016 echo "$as_me:$LINENO: result: yes" >&5
9017echo "${ECHO_T}yes" >&6
9018 else
9019 echo "$as_me:$LINENO: result: no" >&5
9020echo "${ECHO_T}no" >&6
9021 fi
9022
9023
9024 enablestring=
9025 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
9026echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
9027 no_cache=0
9028 # Check whether --enable-textctrl or --disable-textctrl was given.
9029if test "${enable_textctrl+set}" = set; then
9030 enableval="$enable_textctrl"
9031
9032 if test "$enableval" = yes; then
9033 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
9034 else
9035 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
9036 fi
9037
9038else
9039
9040 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
9041 if test "x$LINE" != x ; then
9042 eval "DEFAULT_$LINE"
9043 else
9044 no_cache=1
9045 fi
9046
9047 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
9048
9049fi;
9050
9051 eval "$ac_cv_use_textctrl"
9052 if test "$no_cache" != 1; then
9053 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
9054 fi
9055
9056 if test "$wxUSE_TEXTCTRL" = yes; then
9057 echo "$as_me:$LINENO: result: yes" >&5
9058echo "${ECHO_T}yes" >&6
9059 else
9060 echo "$as_me:$LINENO: result: no" >&5
9061echo "${ECHO_T}no" >&6
9062 fi
9063
9064
9065 enablestring=
9066 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
9067echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
9068 no_cache=0
9069 # Check whether --enable-togglebtn or --disable-togglebtn was given.
9070if test "${enable_togglebtn+set}" = set; then
9071 enableval="$enable_togglebtn"
9072
9073 if test "$enableval" = yes; then
9074 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
9075 else
9076 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
9077 fi
9078
9079else
9080
9081 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
9082 if test "x$LINE" != x ; then
9083 eval "DEFAULT_$LINE"
9084 else
9085 no_cache=1
9086 fi
9087
9088 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
9089
9090fi;
9091
9092 eval "$ac_cv_use_togglebtn"
9093 if test "$no_cache" != 1; then
9094 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
9095 fi
9096
9097 if test "$wxUSE_TOGGLEBTN" = yes; then
9098 echo "$as_me:$LINENO: result: yes" >&5
9099echo "${ECHO_T}yes" >&6
9100 else
9101 echo "$as_me:$LINENO: result: no" >&5
9102echo "${ECHO_T}no" >&6
9103 fi
9104
9105
9106 enablestring=
9107 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
9108echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
9109 no_cache=0
9110 # Check whether --enable-toolbar or --disable-toolbar was given.
9111if test "${enable_toolbar+set}" = set; then
9112 enableval="$enable_toolbar"
9113
9114 if test "$enableval" = yes; then
9115 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
9116 else
9117 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
9118 fi
9119
9120else
9121
9122 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
9123 if test "x$LINE" != x ; then
9124 eval "DEFAULT_$LINE"
9125 else
9126 no_cache=1
9127 fi
9128
9129 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
9130
9131fi;
9132
9133 eval "$ac_cv_use_toolbar"
9134 if test "$no_cache" != 1; then
9135 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
9136 fi
9137
9138 if test "$wxUSE_TOOLBAR" = yes; then
9139 echo "$as_me:$LINENO: result: yes" >&5
9140echo "${ECHO_T}yes" >&6
9141 else
9142 echo "$as_me:$LINENO: result: no" >&5
9143echo "${ECHO_T}no" >&6
9144 fi
9145
9146
9147 enablestring=
9148 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
9149echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
9150 no_cache=0
9151 # Check whether --enable-tbarnative or --disable-tbarnative was given.
9152if test "${enable_tbarnative+set}" = set; then
9153 enableval="$enable_tbarnative"
9154
9155 if test "$enableval" = yes; then
9156 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
9157 else
9158 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
9159 fi
9160
9161else
9162
9163 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
9164 if test "x$LINE" != x ; then
9165 eval "DEFAULT_$LINE"
9166 else
9167 no_cache=1
9168 fi
9169
9170 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
9171
9172fi;
9173
9174 eval "$ac_cv_use_tbarnative"
9175 if test "$no_cache" != 1; then
9176 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
9177 fi
9178
9179 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
9180 echo "$as_me:$LINENO: result: yes" >&5
9181echo "${ECHO_T}yes" >&6
9182 else
9183 echo "$as_me:$LINENO: result: no" >&5
9184echo "${ECHO_T}no" >&6
9185 fi
9186
9187
9188 enablestring=
9189 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5
9190echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6
9191 no_cache=0
9192 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
9193if test "${enable_tbarsmpl+set}" = set; then
9194 enableval="$enable_tbarsmpl"
9195
9196 if test "$enableval" = yes; then
9197 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
9198 else
9199 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
9200 fi
9201
9202else
9203
9204 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
9205 if test "x$LINE" != x ; then
9206 eval "DEFAULT_$LINE"
9207 else
9208 no_cache=1
9209 fi
9210
9211 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
9212
9213fi;
9214
9215 eval "$ac_cv_use_tbarsmpl"
9216 if test "$no_cache" != 1; then
9217 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
9218 fi
9219
9220 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
9221 echo "$as_me:$LINENO: result: yes" >&5
9222echo "${ECHO_T}yes" >&6
9223 else
9224 echo "$as_me:$LINENO: result: no" >&5
9225echo "${ECHO_T}no" >&6
9226 fi
9227
9228
0093c2fc
VZ
9229 enablestring=
9230 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treebook" >&5
9231echo $ECHO_N "checking for --${enablestring:-enable}-treebook... $ECHO_C" >&6
9232 no_cache=0
9233 # Check whether --enable-treebook or --disable-treebook was given.
9234if test "${enable_treebook+set}" = set; then
9235 enableval="$enable_treebook"
9236
9237 if test "$enableval" = yes; then
9238 ac_cv_use_treebook='wxUSE_TREEBOOK=yes'
9239 else
9240 ac_cv_use_treebook='wxUSE_TREEBOOK=no'
9241 fi
9242
9243else
9244
9245 LINE=`grep "wxUSE_TREEBOOK" ${wx_arg_cache_file}`
9246 if test "x$LINE" != x ; then
9247 eval "DEFAULT_$LINE"
9248 else
9249 no_cache=1
9250 fi
9251
9252 ac_cv_use_treebook='wxUSE_TREEBOOK='$DEFAULT_wxUSE_TREEBOOK
9253
9254fi;
9255
9256 eval "$ac_cv_use_treebook"
9257 if test "$no_cache" != 1; then
9258 echo $ac_cv_use_treebook >> ${wx_arg_cache_file}.tmp
9259 fi
9260
9261 if test "$wxUSE_TREEBOOK" = yes; then
9262 echo "$as_me:$LINENO: result: yes" >&5
9263echo "${ECHO_T}yes" >&6
9264 else
9265 echo "$as_me:$LINENO: result: no" >&5
9266echo "${ECHO_T}no" >&6
9267 fi
9268
9269
5ec3bc43
JS
9270 enablestring=
9271 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbook" >&5
9272echo $ECHO_N "checking for --${enablestring:-enable}-toolbook... $ECHO_C" >&6
9273 no_cache=0
9274 # Check whether --enable-toolbook or --disable-toolbook was given.
9275if test "${enable_toolbook+set}" = set; then
9276 enableval="$enable_toolbook"
9277
9278 if test "$enableval" = yes; then
9279 ac_cv_use_toolbook='wxUSE_TOOLBOOK=yes'
9280 else
9281 ac_cv_use_toolbook='wxUSE_TOOLBOOK=no'
9282 fi
9283
9284else
9285
9286 LINE=`grep "wxUSE_TOOLBOOK" ${wx_arg_cache_file}`
9287 if test "x$LINE" != x ; then
9288 eval "DEFAULT_$LINE"
9289 else
9290 no_cache=1
9291 fi
9292
9293 ac_cv_use_toolbook='wxUSE_TOOLBOOK='$DEFAULT_wxUSE_TOOLBOOK
9294
9295fi;
9296
9297 eval "$ac_cv_use_toolbook"
9298 if test "$no_cache" != 1; then
9299 echo $ac_cv_use_toolbook >> ${wx_arg_cache_file}.tmp
9300 fi
9301
9302 if test "$wxUSE_TOOLBOOK" = yes; then
9303 echo "$as_me:$LINENO: result: yes" >&5
9304echo "${ECHO_T}yes" >&6
9305 else
9306 echo "$as_me:$LINENO: result: no" >&5
9307echo "${ECHO_T}no" >&6
9308 fi
9309
9310
a848cd7e
SC
9311 enablestring=
9312 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
9313echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
9314 no_cache=0
9315 # Check whether --enable-treectrl or --disable-treectrl was given.
9316if test "${enable_treectrl+set}" = set; then
9317 enableval="$enable_treectrl"
9318
9319 if test "$enableval" = yes; then
9320 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
9321 else
9322 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
9323 fi
9324
9325else
9326
9327 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
9328 if test "x$LINE" != x ; then
9329 eval "DEFAULT_$LINE"
9330 else
9331 no_cache=1
9332 fi
9333
9334 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
9335
9336fi;
9337
9338 eval "$ac_cv_use_treectrl"
9339 if test "$no_cache" != 1; then
9340 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
9341 fi
9342
9343 if test "$wxUSE_TREECTRL" = yes; then
9344 echo "$as_me:$LINENO: result: yes" >&5
9345echo "${ECHO_T}yes" >&6
9346 else
9347 echo "$as_me:$LINENO: result: no" >&5
9348echo "${ECHO_T}no" >&6
9349 fi
9350
9351
9352 enablestring=
9353 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
9354echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
9355 no_cache=0
9356 # Check whether --enable-tipwindow or --disable-tipwindow was given.
9357if test "${enable_tipwindow+set}" = set; then
9358 enableval="$enable_tipwindow"
9359
9360 if test "$enableval" = yes; then
9361 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
9362 else
9363 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
9364 fi
9365
9366else
9367
9368 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
9369 if test "x$LINE" != x ; then
9370 eval "DEFAULT_$LINE"
9371 else
9372 no_cache=1
9373 fi
9374
9375 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
9376
9377fi;
9378
9379 eval "$ac_cv_use_tipwindow"
9380 if test "$no_cache" != 1; then
9381 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
9382 fi
9383
9384 if test "$wxUSE_TIPWINDOW" = yes; then
9385 echo "$as_me:$LINENO: result: yes" >&5
9386echo "${ECHO_T}yes" >&6
9387 else
9388 echo "$as_me:$LINENO: result: no" >&5
9389echo "${ECHO_T}no" >&6
9390 fi
9391
9392
9393 enablestring=
9394 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
9395echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
9396 no_cache=0
9397 # Check whether --enable-popupwin or --disable-popupwin was given.
9398if test "${enable_popupwin+set}" = set; then
9399 enableval="$enable_popupwin"
9400
9401 if test "$enableval" = yes; then
9402 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
9403 else
9404 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
9405 fi
9406
9407else
9408
9409 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
9410 if test "x$LINE" != x ; then
9411 eval "DEFAULT_$LINE"
9412 else
9413 no_cache=1
9414 fi
9415
9416 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
9417
9418fi;
9419
9420 eval "$ac_cv_use_popupwin"
9421 if test "$no_cache" != 1; then
9422 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
9423 fi
9424
9425 if test "$wxUSE_POPUPWIN" = yes; then
9426 echo "$as_me:$LINENO: result: yes" >&5
9427echo "${ECHO_T}yes" >&6
9428 else
9429 echo "$as_me:$LINENO: result: no" >&5
9430echo "${ECHO_T}no" >&6
9431 fi
9432
9433
9434
9435
9436 enablestring=
9437 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
9438echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
9439 no_cache=0
9440 # Check whether --enable-commondlg or --disable-commondlg was given.
9441if test "${enable_commondlg+set}" = set; then
9442 enableval="$enable_commondlg"
9443
9444 if test "$enableval" = yes; then
9445 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
9446 else
9447 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
9448 fi
9449
9450else
9451
9452 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
9453 if test "x$LINE" != x ; then
9454 eval "DEFAULT_$LINE"
9455 else
9456 no_cache=1
9457 fi
9458
9459 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
9460
9461fi;
9462
9463 eval "$ac_cv_use_commondlg"
9464 if test "$no_cache" != 1; then
9465 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
9466 fi
9467
9468 if test "$wxUSE_COMMONDLGS" = yes; then
9469 echo "$as_me:$LINENO: result: yes" >&5
9470echo "${ECHO_T}yes" >&6
9471 else
9472 echo "$as_me:$LINENO: result: no" >&5
9473echo "${ECHO_T}no" >&6
9474 fi
9475
9476
9477 enablestring=
9478 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
9479echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
9480 no_cache=0
9481 # Check whether --enable-choicedlg or --disable-choicedlg was given.
9482if test "${enable_choicedlg+set}" = set; then
9483 enableval="$enable_choicedlg"
9484
9485 if test "$enableval" = yes; then
9486 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
9487 else
9488 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
9489 fi
9490
9491else
9492
9493 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
9494 if test "x$LINE" != x ; then
9495 eval "DEFAULT_$LINE"
9496 else
9497 no_cache=1
9498 fi
9499
9500 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
9501
9502fi;
9503
9504 eval "$ac_cv_use_choicedlg"
9505 if test "$no_cache" != 1; then
9506 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
9507 fi
9508
9509 if test "$wxUSE_CHOICEDLG" = yes; then
9510 echo "$as_me:$LINENO: result: yes" >&5
9511echo "${ECHO_T}yes" >&6
9512 else
9513 echo "$as_me:$LINENO: result: no" >&5
9514echo "${ECHO_T}no" >&6
9515 fi
9516
9517
9518 enablestring=
9519 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
9520echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
9521 no_cache=0
9522 # Check whether --enable-coldlg or --disable-coldlg was given.
9523if test "${enable_coldlg+set}" = set; then
9524 enableval="$enable_coldlg"
9525
9526 if test "$enableval" = yes; then
9527 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
9528 else
9529 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
9530 fi
9531
9532else
9533
9534 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
9535 if test "x$LINE" != x ; then
9536 eval "DEFAULT_$LINE"
9537 else
9538 no_cache=1
9539 fi
9540
9541 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
9542
9543fi;
9544
9545 eval "$ac_cv_use_coldlg"
9546 if test "$no_cache" != 1; then
9547 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
9548 fi
9549
9550 if test "$wxUSE_COLOURDLG" = yes; then
9551 echo "$as_me:$LINENO: result: yes" >&5
9552echo "${ECHO_T}yes" >&6
9553 else
9554 echo "$as_me:$LINENO: result: no" >&5
9555echo "${ECHO_T}no" >&6
9556 fi
9557
9558
9559 enablestring=
9560 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
9561echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
9562 no_cache=0
9563 # Check whether --enable-filedlg or --disable-filedlg was given.
9564if test "${enable_filedlg+set}" = set; then
9565 enableval="$enable_filedlg"
9566
9567 if test "$enableval" = yes; then
9568 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
9569 else
9570 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
9571 fi
9572
9573else
9574
9575 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
9576 if test "x$LINE" != x ; then
9577 eval "DEFAULT_$LINE"
9578 else
9579 no_cache=1
9580 fi
9581
9582 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
9583
9584fi;
9585
9586 eval "$ac_cv_use_filedlg"
9587 if test "$no_cache" != 1; then
9588 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
9589 fi
9590
9591 if test "$wxUSE_FILEDLG" = yes; then
9592 echo "$as_me:$LINENO: result: yes" >&5
9593echo "${ECHO_T}yes" >&6
9594 else
9595 echo "$as_me:$LINENO: result: no" >&5
9596echo "${ECHO_T}no" >&6
9597 fi
9598
9599
9600 enablestring=
9601 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
9602echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
9603 no_cache=0
9604 # Check whether --enable-finddlg or --disable-finddlg was given.
9605if test "${enable_finddlg+set}" = set; then
9606 enableval="$enable_finddlg"
9607
9608 if test "$enableval" = yes; then
9609 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
9610 else
9611 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
9612 fi
9613
9614else
9615
9616 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
9617 if test "x$LINE" != x ; then
9618 eval "DEFAULT_$LINE"
9619 else
9620 no_cache=1
9621 fi
9622
9623 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
9624
9625fi;
9626
9627 eval "$ac_cv_use_finddlg"
9628 if test "$no_cache" != 1; then
9629 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
9630 fi
9631
9632 if test "$wxUSE_FINDREPLDLG" = yes; then
9633 echo "$as_me:$LINENO: result: yes" >&5
9634echo "${ECHO_T}yes" >&6
9635 else
9636 echo "$as_me:$LINENO: result: no" >&5
9637echo "${ECHO_T}no" >&6
9638 fi
9639
9640
9641 enablestring=
9642 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
9643echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
9644 no_cache=0
9645 # Check whether --enable-fontdlg or --disable-fontdlg was given.
9646if test "${enable_fontdlg+set}" = set; then
9647 enableval="$enable_fontdlg"
9648
9649 if test "$enableval" = yes; then
9650 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
9651 else
9652 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
9653 fi
9654
9655else
9656
9657 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
9658 if test "x$LINE" != x ; then
9659 eval "DEFAULT_$LINE"
9660 else
9661 no_cache=1
9662 fi
9663
9664 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
9665
9666fi;
9667
9668 eval "$ac_cv_use_fontdlg"
9669 if test "$no_cache" != 1; then
9670 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
9671 fi
9672
9673 if test "$wxUSE_FONTDLG" = yes; then
9674 echo "$as_me:$LINENO: result: yes" >&5
9675echo "${ECHO_T}yes" >&6
9676 else
9677 echo "$as_me:$LINENO: result: no" >&5
9678echo "${ECHO_T}no" >&6
9679 fi
9680
9681
9682 enablestring=
9683 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
9684echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
9685 no_cache=0
9686 # Check whether --enable-dirdlg or --disable-dirdlg was given.
9687if test "${enable_dirdlg+set}" = set; then
9688 enableval="$enable_dirdlg"
9689
9690 if test "$enableval" = yes; then
9691 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
9692 else
9693 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
9694 fi
9695
9696else
9697
9698 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
9699 if test "x$LINE" != x ; then
9700 eval "DEFAULT_$LINE"
9701 else
9702 no_cache=1
9703 fi
9704
9705 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
9706
9707fi;
9708
9709 eval "$ac_cv_use_dirdlg"
9710 if test "$no_cache" != 1; then
9711 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
9712 fi
9713
9714 if test "$wxUSE_DIRDLG" = yes; then
9715 echo "$as_me:$LINENO: result: yes" >&5
9716echo "${ECHO_T}yes" >&6
9717 else
9718 echo "$as_me:$LINENO: result: no" >&5
9719echo "${ECHO_T}no" >&6
9720 fi
9721
9722
9723 enablestring=
9724 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
9725echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
9726 no_cache=0
9727 # Check whether --enable-msgdlg or --disable-msgdlg was given.
9728if test "${enable_msgdlg+set}" = set; then
9729 enableval="$enable_msgdlg"
9730
9731 if test "$enableval" = yes; then
9732 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
9733 else
9734 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
9735 fi
9736
9737else
9738
9739 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
9740 if test "x$LINE" != x ; then
9741 eval "DEFAULT_$LINE"
9742 else
9743 no_cache=1
9744 fi
9745
9746 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
9747
9748fi;
9749
9750 eval "$ac_cv_use_msgdlg"
9751 if test "$no_cache" != 1; then
9752 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
9753 fi
9754
9755 if test "$wxUSE_MSGDLG" = yes; then
9756 echo "$as_me:$LINENO: result: yes" >&5
9757echo "${ECHO_T}yes" >&6
9758 else
9759 echo "$as_me:$LINENO: result: no" >&5
9760echo "${ECHO_T}no" >&6
9761 fi
9762
9763
9764 enablestring=
9765 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
9766echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
9767 no_cache=0
9768 # Check whether --enable-numberdlg or --disable-numberdlg was given.
9769if test "${enable_numberdlg+set}" = set; then
9770 enableval="$enable_numberdlg"
9771
9772 if test "$enableval" = yes; then
9773 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
9774 else
9775 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
9776 fi
9777
9778else
9779
9780 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
9781 if test "x$LINE" != x ; then
9782 eval "DEFAULT_$LINE"
9783 else
9784 no_cache=1
9785 fi
9786
9787 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
9788
9789fi;
9790
9791 eval "$ac_cv_use_numberdlg"
9792 if test "$no_cache" != 1; then
9793 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
9794 fi
9795
9796 if test "$wxUSE_NUMBERDLG" = yes; then
9797 echo "$as_me:$LINENO: result: yes" >&5
9798echo "${ECHO_T}yes" >&6
9799 else
9800 echo "$as_me:$LINENO: result: no" >&5
9801echo "${ECHO_T}no" >&6
9802 fi
9803
9804
9805 enablestring=
9806 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
9807echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
9808 no_cache=0
9809 # Check whether --enable-splash or --disable-splash was given.
9810if test "${enable_splash+set}" = set; then
9811 enableval="$enable_splash"
9812
9813 if test "$enableval" = yes; then
9814 ac_cv_use_splash='wxUSE_SPLASH=yes'
9815 else
9816 ac_cv_use_splash='wxUSE_SPLASH=no'
9817 fi
9818
9819else
9820
9821 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
9822 if test "x$LINE" != x ; then
9823 eval "DEFAULT_$LINE"
9824 else
9825 no_cache=1
9826 fi
9827
9828 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
9829
9830fi;
9831
9832 eval "$ac_cv_use_splash"
9833 if test "$no_cache" != 1; then
9834 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
9835 fi
9836
9837 if test "$wxUSE_SPLASH" = yes; then
9838 echo "$as_me:$LINENO: result: yes" >&5
9839echo "${ECHO_T}yes" >&6
9840 else
9841 echo "$as_me:$LINENO: result: no" >&5
9842echo "${ECHO_T}no" >&6
9843 fi
9844
9845
9846 enablestring=
9847 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
9848echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
9849 no_cache=0
9850 # Check whether --enable-textdlg or --disable-textdlg was given.
9851if test "${enable_textdlg+set}" = set; then
9852 enableval="$enable_textdlg"
9853
9854 if test "$enableval" = yes; then
9855 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
9856 else
9857 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
9858 fi
9859
9860else
9861
9862 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
9863 if test "x$LINE" != x ; then
9864 eval "DEFAULT_$LINE"
9865 else
9866 no_cache=1
9867 fi
9868
9869 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
9870
9871fi;
9872
9873 eval "$ac_cv_use_textdlg"
9874 if test "$no_cache" != 1; then
9875 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
9876 fi
9877
9878 if test "$wxUSE_TEXTDLG" = yes; then
9879 echo "$as_me:$LINENO: result: yes" >&5
9880echo "${ECHO_T}yes" >&6
9881 else
9882 echo "$as_me:$LINENO: result: no" >&5
9883echo "${ECHO_T}no" >&6
9884 fi
9885
9886
9887 enablestring=
9888 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
9889echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
9890 no_cache=0
9891 # Check whether --enable-tipdlg or --disable-tipdlg was given.
9892if test "${enable_tipdlg+set}" = set; then
9893 enableval="$enable_tipdlg"
9894
9895 if test "$enableval" = yes; then
9896 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
9897 else
9898 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
9899 fi
9900
9901else
9902
9903 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
9904 if test "x$LINE" != x ; then
9905 eval "DEFAULT_$LINE"
9906 else
9907 no_cache=1
9908 fi
9909
9910 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
9911
9912fi;
9913
9914 eval "$ac_cv_use_tipdlg"
9915 if test "$no_cache" != 1; then
9916 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
9917 fi
9918
9919 if test "$wxUSE_STARTUP_TIPS" = yes; then
9920 echo "$as_me:$LINENO: result: yes" >&5
9921echo "${ECHO_T}yes" >&6
9922 else
9923 echo "$as_me:$LINENO: result: no" >&5
9924echo "${ECHO_T}no" >&6
9925 fi
9926
9927
9928 enablestring=
9929 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
9930echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
9931 no_cache=0
9932 # Check whether --enable-progressdlg or --disable-progressdlg was given.
9933if test "${enable_progressdlg+set}" = set; then
9934 enableval="$enable_progressdlg"
9935
9936 if test "$enableval" = yes; then
9937 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
9938 else
9939 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
9940 fi
9941
9942else
9943
9944 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
9945 if test "x$LINE" != x ; then
9946 eval "DEFAULT_$LINE"
9947 else
9948 no_cache=1
9949 fi
9950
9951 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
9952
9953fi;
9954
9955 eval "$ac_cv_use_progressdlg"
9956 if test "$no_cache" != 1; then
9957 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
9958 fi
9959
9960 if test "$wxUSE_PROGRESSDLG" = yes; then
9961 echo "$as_me:$LINENO: result: yes" >&5
9962echo "${ECHO_T}yes" >&6
9963 else
9964 echo "$as_me:$LINENO: result: no" >&5
9965echo "${ECHO_T}no" >&6
9966 fi
9967
9968
9969 enablestring=
9970 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
9971echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
9972 no_cache=0
9973 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
9974if test "${enable_wizarddlg+set}" = set; then
9975 enableval="$enable_wizarddlg"
9976
9977 if test "$enableval" = yes; then
9978 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
9979 else
9980 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
9981 fi
9982
9983else
9984
9985 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
9986 if test "x$LINE" != x ; then
9987 eval "DEFAULT_$LINE"
9988 else
9989 no_cache=1
9990 fi
9991
9992 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
9993
9994fi;
9995
9996 eval "$ac_cv_use_wizarddlg"
9997 if test "$no_cache" != 1; then
9998 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
9999 fi
10000
10001 if test "$wxUSE_WIZARDDLG" = yes; then
10002 echo "$as_me:$LINENO: result: yes" >&5
10003echo "${ECHO_T}yes" >&6
10004 else
10005 echo "$as_me:$LINENO: result: no" >&5
10006echo "${ECHO_T}no" >&6
10007 fi
10008
10009
10010
10011
10012 enablestring=
10013 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
10014echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
10015 no_cache=0
10016 # Check whether --enable-menus or --disable-menus was given.
10017if test "${enable_menus+set}" = set; then
10018 enableval="$enable_menus"
10019
10020 if test "$enableval" = yes; then
10021 ac_cv_use_menus='wxUSE_MENUS=yes'
10022 else
10023 ac_cv_use_menus='wxUSE_MENUS=no'
10024 fi
10025
10026else
10027
10028 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
10029 if test "x$LINE" != x ; then
10030 eval "DEFAULT_$LINE"
10031 else
10032 no_cache=1
10033 fi
10034
10035 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
10036
10037fi;
10038
10039 eval "$ac_cv_use_menus"
10040 if test "$no_cache" != 1; then
10041 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
10042 fi
10043
10044 if test "$wxUSE_MENUS" = yes; then
10045 echo "$as_me:$LINENO: result: yes" >&5
10046echo "${ECHO_T}yes" >&6
10047 else
10048 echo "$as_me:$LINENO: result: no" >&5
10049echo "${ECHO_T}no" >&6
10050 fi
10051
10052
10053 enablestring=
10054 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
10055echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
10056 no_cache=0
10057 # Check whether --enable-miniframe or --disable-miniframe was given.
10058if test "${enable_miniframe+set}" = set; then
10059 enableval="$enable_miniframe"
10060
10061 if test "$enableval" = yes; then
10062 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
10063 else
10064 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
10065 fi
10066
10067else
10068
10069 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
10070 if test "x$LINE" != x ; then
10071 eval "DEFAULT_$LINE"
10072 else
10073 no_cache=1
10074 fi
10075
10076 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
10077
10078fi;
10079
10080 eval "$ac_cv_use_miniframe"
10081 if test "$no_cache" != 1; then
10082 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
10083 fi
10084
10085 if test "$wxUSE_MINIFRAME" = yes; then
10086 echo "$as_me:$LINENO: result: yes" >&5
10087echo "${ECHO_T}yes" >&6
10088 else
10089 echo "$as_me:$LINENO: result: no" >&5
10090echo "${ECHO_T}no" >&6
10091 fi
10092
10093
10094 enablestring=
10095 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
10096echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
10097 no_cache=0
10098 # Check whether --enable-tooltips or --disable-tooltips was given.
10099if test "${enable_tooltips+set}" = set; then
10100 enableval="$enable_tooltips"
10101
10102 if test "$enableval" = yes; then
10103 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
10104 else
10105 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
10106 fi
10107
10108else
10109
10110 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
10111 if test "x$LINE" != x ; then
10112 eval "DEFAULT_$LINE"
10113 else
10114 no_cache=1
10115 fi
10116
10117 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
10118
10119fi;
10120
10121 eval "$ac_cv_use_tooltips"
10122 if test "$no_cache" != 1; then
10123 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
10124 fi
10125
10126 if test "$wxUSE_TOOLTIPS" = yes; then
10127 echo "$as_me:$LINENO: result: yes" >&5
10128echo "${ECHO_T}yes" >&6
10129 else
10130 echo "$as_me:$LINENO: result: no" >&5
10131echo "${ECHO_T}no" >&6
10132 fi
10133
10134
10135 enablestring=
10136 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
10137echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
10138 no_cache=0
10139 # Check whether --enable-splines or --disable-splines was given.
10140if test "${enable_splines+set}" = set; then
10141 enableval="$enable_splines"
10142
10143 if test "$enableval" = yes; then
10144 ac_cv_use_splines='wxUSE_SPLINES=yes'
10145 else
10146 ac_cv_use_splines='wxUSE_SPLINES=no'
10147 fi
10148
10149else
10150
10151 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
10152 if test "x$LINE" != x ; then
10153 eval "DEFAULT_$LINE"
10154 else
10155 no_cache=1
10156 fi
10157
10158 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
10159
10160fi;
10161
10162 eval "$ac_cv_use_splines"
10163 if test "$no_cache" != 1; then
10164 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
10165 fi
10166
10167 if test "$wxUSE_SPLINES" = yes; then
10168 echo "$as_me:$LINENO: result: yes" >&5
10169echo "${ECHO_T}yes" >&6
10170 else
10171 echo "$as_me:$LINENO: result: no" >&5
10172echo "${ECHO_T}no" >&6
10173 fi
10174
10175
fbe2ca43
SN
10176 enablestring=
10177 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mousewheel" >&5
10178echo $ECHO_N "checking for --${enablestring:-enable}-mousewheel... $ECHO_C" >&6
10179 no_cache=0
10180 # Check whether --enable-mousewheel or --disable-mousewheel was given.
10181if test "${enable_mousewheel+set}" = set; then
10182 enableval="$enable_mousewheel"
10183
10184 if test "$enableval" = yes; then
10185 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=yes'
10186 else
10187 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=no'
10188 fi
10189
10190else
10191
10192 LINE=`grep "wxUSE_MOUSEWHEEL" ${wx_arg_cache_file}`
10193 if test "x$LINE" != x ; then
10194 eval "DEFAULT_$LINE"
10195 else
10196 no_cache=1
10197 fi
10198
10199 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL='$DEFAULT_wxUSE_MOUSEWHEEL
10200
10201fi;
10202
10203 eval "$ac_cv_use_mousewheel"
10204 if test "$no_cache" != 1; then
10205 echo $ac_cv_use_mousewheel >> ${wx_arg_cache_file}.tmp
10206 fi
10207
10208 if test "$wxUSE_MOUSEWHEEL" = yes; then
10209 echo "$as_me:$LINENO: result: yes" >&5
10210echo "${ECHO_T}yes" >&6
10211 else
10212 echo "$as_me:$LINENO: result: no" >&5
10213echo "${ECHO_T}no" >&6
10214 fi
10215
10216
a848cd7e
SC
10217 enablestring=
10218 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
10219echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
10220 no_cache=0
10221 # Check whether --enable-validators or --disable-validators was given.
10222if test "${enable_validators+set}" = set; then
10223 enableval="$enable_validators"
10224
10225 if test "$enableval" = yes; then
10226 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
10227 else
10228 ac_cv_use_validators='wxUSE_VALIDATORS=no'
10229 fi
10230
10231else
10232
10233 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
10234 if test "x$LINE" != x ; then
10235 eval "DEFAULT_$LINE"
10236 else
10237 no_cache=1
10238 fi
10239
10240 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
10241
10242fi;
10243
10244 eval "$ac_cv_use_validators"
10245 if test "$no_cache" != 1; then
10246 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
10247 fi
10248
10249 if test "$wxUSE_VALIDATORS" = yes; then
10250 echo "$as_me:$LINENO: result: yes" >&5
10251echo "${ECHO_T}yes" >&6
10252 else
10253 echo "$as_me:$LINENO: result: no" >&5
10254echo "${ECHO_T}no" >&6
10255 fi
10256
10257
10258 enablestring=
10259 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
10260echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
10261 no_cache=0
10262 # Check whether --enable-busyinfo or --disable-busyinfo was given.
10263if test "${enable_busyinfo+set}" = set; then
10264 enableval="$enable_busyinfo"
10265
10266 if test "$enableval" = yes; then
10267 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
10268 else
10269 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
10270 fi
10271
10272else
10273
10274 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
10275 if test "x$LINE" != x ; then
10276 eval "DEFAULT_$LINE"
10277 else
10278 no_cache=1
10279 fi
10280
10281 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
10282
10283fi;
10284
10285 eval "$ac_cv_use_busyinfo"
10286 if test "$no_cache" != 1; then
10287 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
10288 fi
10289
10290 if test "$wxUSE_BUSYINFO" = yes; then
10291 echo "$as_me:$LINENO: result: yes" >&5
10292echo "${ECHO_T}yes" >&6
10293 else
10294 echo "$as_me:$LINENO: result: no" >&5
10295echo "${ECHO_T}no" >&6
10296 fi
10297
10298
10299 enablestring=
10300 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
10301echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
10302 no_cache=0
10303 # Check whether --enable-joystick or --disable-joystick was given.
10304if test "${enable_joystick+set}" = set; then
10305 enableval="$enable_joystick"
10306
10307 if test "$enableval" = yes; then
10308 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
10309 else
10310 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
10311 fi
10312
10313else
10314
10315 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
10316 if test "x$LINE" != x ; then
10317 eval "DEFAULT_$LINE"
10318 else
10319 no_cache=1
10320 fi
10321
10322 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
10323
10324fi;
10325
10326 eval "$ac_cv_use_joystick"
10327 if test "$no_cache" != 1; then
10328 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
10329 fi
10330
10331 if test "$wxUSE_JOYSTICK" = yes; then
10332 echo "$as_me:$LINENO: result: yes" >&5
10333echo "${ECHO_T}yes" >&6
10334 else
10335 echo "$as_me:$LINENO: result: no" >&5
10336echo "${ECHO_T}no" >&6
10337 fi
10338
10339
10340 enablestring=
10341 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
10342echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
10343 no_cache=0
10344 # Check whether --enable-metafile or --disable-metafile was given.
10345if test "${enable_metafile+set}" = set; then
10346 enableval="$enable_metafile"
10347
10348 if test "$enableval" = yes; then
10349 ac_cv_use_metafile='wxUSE_METAFILE=yes'
10350 else
10351 ac_cv_use_metafile='wxUSE_METAFILE=no'
10352 fi
10353
10354else
10355
10356 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
10357 if test "x$LINE" != x ; then
10358 eval "DEFAULT_$LINE"
10359 else
10360 no_cache=1
10361 fi
10362
10363 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
10364
10365fi;
10366
10367 eval "$ac_cv_use_metafile"
10368 if test "$no_cache" != 1; then
10369 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
10370 fi
10371
10372 if test "$wxUSE_METAFILE" = yes; then
10373 echo "$as_me:$LINENO: result: yes" >&5
10374echo "${ECHO_T}yes" >&6
10375 else
10376 echo "$as_me:$LINENO: result: no" >&5
10377echo "${ECHO_T}no" >&6
10378 fi
10379
10380
10381 enablestring=
10382 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
10383echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
10384 no_cache=0
10385 # Check whether --enable-dragimage or --disable-dragimage was given.
10386if test "${enable_dragimage+set}" = set; then
10387 enableval="$enable_dragimage"
10388
10389 if test "$enableval" = yes; then
10390 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
10391 else
10392 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
10393 fi
10394
10395else
10396
10397 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
10398 if test "x$LINE" != x ; then
10399 eval "DEFAULT_$LINE"
10400 else
10401 no_cache=1
10402 fi
10403
10404 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
10405
10406fi;
10407
10408 eval "$ac_cv_use_dragimage"
10409 if test "$no_cache" != 1; then
10410 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
10411 fi
10412
10413 if test "$wxUSE_DRAGIMAGE" = yes; then
10414 echo "$as_me:$LINENO: result: yes" >&5
10415echo "${ECHO_T}yes" >&6
10416 else
10417 echo "$as_me:$LINENO: result: no" >&5
10418echo "${ECHO_T}no" >&6
10419 fi
10420
10421
10422 enablestring=
10423 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
10424echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
10425 no_cache=0
10426 # Check whether --enable-accessibility or --disable-accessibility was given.
10427if test "${enable_accessibility+set}" = set; then
10428 enableval="$enable_accessibility"
10429
10430 if test "$enableval" = yes; then
10431 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
10432 else
10433 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
10434 fi
10435
10436else
10437
10438 LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
10439 if test "x$LINE" != x ; then
10440 eval "DEFAULT_$LINE"
10441 else
10442 no_cache=1
10443 fi
10444
10445 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
10446
10447fi;
10448
10449 eval "$ac_cv_use_accessibility"
10450 if test "$no_cache" != 1; then
10451 echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
10452 fi
10453
10454 if test "$wxUSE_ACCESSIBILITY" = yes; then
10455 echo "$as_me:$LINENO: result: yes" >&5
10456echo "${ECHO_T}yes" >&6
10457 else
10458 echo "$as_me:$LINENO: result: no" >&5
10459echo "${ECHO_T}no" >&6
10460 fi
10461
10462
38b4a946
VZ
10463if test "$wxUSE_MSW" = "1"; then
10464
10465 enablestring=
10466 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dccache" >&5
10467echo $ECHO_N "checking for --${enablestring:-enable}-dccache... $ECHO_C" >&6
10468 no_cache=0
10469 # Check whether --enable-dccache or --disable-dccache was given.
10470if test "${enable_dccache+set}" = set; then
10471 enableval="$enable_dccache"
10472
10473 if test "$enableval" = yes; then
10474 ac_cv_use_dccache='wxUSE_DC_CACHEING=yes'
10475 else
10476 ac_cv_use_dccache='wxUSE_DC_CACHEING=no'
10477 fi
10478
10479else
10480
10481 LINE=`grep "wxUSE_DC_CACHEING" ${wx_arg_cache_file}`
10482 if test "x$LINE" != x ; then
10483 eval "DEFAULT_$LINE"
10484 else
10485 no_cache=1
10486 fi
10487
10488 ac_cv_use_dccache='wxUSE_DC_CACHEING='$DEFAULT_wxUSE_DC_CACHEING
10489
10490fi;
10491
10492 eval "$ac_cv_use_dccache"
10493 if test "$no_cache" != 1; then
10494 echo $ac_cv_use_dccache >> ${wx_arg_cache_file}.tmp
10495 fi
10496
10497 if test "$wxUSE_DC_CACHEING" = yes; then
10498 echo "$as_me:$LINENO: result: yes" >&5
10499echo "${ECHO_T}yes" >&6
10500 else
10501 echo "$as_me:$LINENO: result: no" >&5
10502echo "${ECHO_T}no" >&6
10503 fi
10504
10505fi
10506
a848cd7e
SC
10507
10508
10509 enablestring=
10510 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
10511echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
10512 no_cache=0
10513 # Check whether --enable-palette or --disable-palette was given.
10514if test "${enable_palette+set}" = set; then
10515 enableval="$enable_palette"
10516
10517 if test "$enableval" = yes; then
10518 ac_cv_use_palette='wxUSE_PALETTE=yes'
10519 else
10520 ac_cv_use_palette='wxUSE_PALETTE=no'
10521 fi
10522
10523else
10524
10525 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
10526 if test "x$LINE" != x ; then
10527 eval "DEFAULT_$LINE"
10528 else
10529 no_cache=1
10530 fi
10531
10532 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
10533
10534fi;
10535
10536 eval "$ac_cv_use_palette"
10537 if test "$no_cache" != 1; then
10538 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
10539 fi
10540
10541 if test "$wxUSE_PALETTE" = yes; then
10542 echo "$as_me:$LINENO: result: yes" >&5
10543echo "${ECHO_T}yes" >&6
10544 else
10545 echo "$as_me:$LINENO: result: no" >&5
10546echo "${ECHO_T}no" >&6
10547 fi
10548
10549
10550 enablestring=
10551 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
10552echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
10553 no_cache=0
10554 # Check whether --enable-image or --disable-image was given.
10555if test "${enable_image+set}" = set; then
10556 enableval="$enable_image"
10557
10558 if test "$enableval" = yes; then
10559 ac_cv_use_image='wxUSE_IMAGE=yes'
10560 else
10561 ac_cv_use_image='wxUSE_IMAGE=no'
10562 fi
10563
10564else
10565
10566 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
10567 if test "x$LINE" != x ; then
10568 eval "DEFAULT_$LINE"
10569 else
10570 no_cache=1
10571 fi
10572
10573 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
10574
10575fi;
10576
10577 eval "$ac_cv_use_image"
10578 if test "$no_cache" != 1; then
10579 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
10580 fi
10581
10582 if test "$wxUSE_IMAGE" = yes; then
10583 echo "$as_me:$LINENO: result: yes" >&5
10584echo "${ECHO_T}yes" >&6
10585 else
10586 echo "$as_me:$LINENO: result: no" >&5
10587echo "${ECHO_T}no" >&6
10588 fi
10589
10590
10591 enablestring=
10592 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
10593echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
10594 no_cache=0
10595 # Check whether --enable-gif or --disable-gif was given.
10596if test "${enable_gif+set}" = set; then
10597 enableval="$enable_gif"
10598
10599 if test "$enableval" = yes; then
10600 ac_cv_use_gif='wxUSE_GIF=yes'
10601 else
10602 ac_cv_use_gif='wxUSE_GIF=no'
10603 fi
10604
10605else
10606
10607 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
10608 if test "x$LINE" != x ; then
10609 eval "DEFAULT_$LINE"
10610 else
10611 no_cache=1
10612 fi
10613
10614 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
10615
10616fi;
10617
10618 eval "$ac_cv_use_gif"
10619 if test "$no_cache" != 1; then
10620 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
10621 fi
10622
10623 if test "$wxUSE_GIF" = yes; then
10624 echo "$as_me:$LINENO: result: yes" >&5
10625echo "${ECHO_T}yes" >&6
10626 else
10627 echo "$as_me:$LINENO: result: no" >&5
10628echo "${ECHO_T}no" >&6
10629 fi
10630
10631
10632 enablestring=
10633 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
10634echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
10635 no_cache=0
10636 # Check whether --enable-pcx or --disable-pcx was given.
10637if test "${enable_pcx+set}" = set; then
10638 enableval="$enable_pcx"
10639
10640 if test "$enableval" = yes; then
10641 ac_cv_use_pcx='wxUSE_PCX=yes'
10642 else
10643 ac_cv_use_pcx='wxUSE_PCX=no'
10644 fi
10645
10646else
10647
10648 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
10649 if test "x$LINE" != x ; then
10650 eval "DEFAULT_$LINE"
10651 else
10652 no_cache=1
10653 fi
10654
10655 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
10656
10657fi;
10658
10659 eval "$ac_cv_use_pcx"
10660 if test "$no_cache" != 1; then
10661 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
10662 fi
10663
10664 if test "$wxUSE_PCX" = yes; then
10665 echo "$as_me:$LINENO: result: yes" >&5
10666echo "${ECHO_T}yes" >&6
10667 else
10668 echo "$as_me:$LINENO: result: no" >&5
10669echo "${ECHO_T}no" >&6
10670 fi
10671
10672
10673 enablestring=
10674 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
10675echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
10676 no_cache=0
10677 # Check whether --enable-iff or --disable-iff was given.
10678if test "${enable_iff+set}" = set; then
10679 enableval="$enable_iff"
10680
10681 if test "$enableval" = yes; then
10682 ac_cv_use_iff='wxUSE_IFF=yes'
10683 else
10684 ac_cv_use_iff='wxUSE_IFF=no'
10685 fi
10686
10687else
10688
10689 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
10690 if test "x$LINE" != x ; then
10691 eval "DEFAULT_$LINE"
10692 else
10693 no_cache=1
10694 fi
10695
10696 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
10697
10698fi;
10699
10700 eval "$ac_cv_use_iff"
10701 if test "$no_cache" != 1; then
10702 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
10703 fi
10704
10705 if test "$wxUSE_IFF" = yes; then
10706 echo "$as_me:$LINENO: result: yes" >&5
10707echo "${ECHO_T}yes" >&6
10708 else
10709 echo "$as_me:$LINENO: result: no" >&5
10710echo "${ECHO_T}no" >&6
10711 fi
10712
10713
10714 enablestring=
10715 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
10716echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
10717 no_cache=0
10718 # Check whether --enable-pnm or --disable-pnm was given.
10719if test "${enable_pnm+set}" = set; then
10720 enableval="$enable_pnm"
10721
10722 if test "$enableval" = yes; then
10723 ac_cv_use_pnm='wxUSE_PNM=yes'
10724 else
10725 ac_cv_use_pnm='wxUSE_PNM=no'
10726 fi
10727
10728else
10729
10730 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
10731 if test "x$LINE" != x ; then
10732 eval "DEFAULT_$LINE"
10733 else
10734 no_cache=1
10735 fi
10736
10737 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
10738
10739fi;
10740
10741 eval "$ac_cv_use_pnm"
10742 if test "$no_cache" != 1; then
10743 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
10744 fi
10745
10746 if test "$wxUSE_PNM" = yes; then
10747 echo "$as_me:$LINENO: result: yes" >&5
10748echo "${ECHO_T}yes" >&6
10749 else
10750 echo "$as_me:$LINENO: result: no" >&5
10751echo "${ECHO_T}no" >&6
10752 fi
10753
10754
10755 enablestring=
10756 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
10757echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
10758 no_cache=0
10759 # Check whether --enable-xpm or --disable-xpm was given.
10760if test "${enable_xpm+set}" = set; then
10761 enableval="$enable_xpm"
10762
10763 if test "$enableval" = yes; then
10764 ac_cv_use_xpm='wxUSE_XPM=yes'
10765 else
10766 ac_cv_use_xpm='wxUSE_XPM=no'
10767 fi
10768
10769else
10770
10771 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
10772 if test "x$LINE" != x ; then
10773 eval "DEFAULT_$LINE"
10774 else
10775 no_cache=1
10776 fi
10777
10778 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
10779
10780fi;
10781
10782 eval "$ac_cv_use_xpm"
10783 if test "$no_cache" != 1; then
10784 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
10785 fi
10786
10787 if test "$wxUSE_XPM" = yes; then
10788 echo "$as_me:$LINENO: result: yes" >&5
10789echo "${ECHO_T}yes" >&6
10790 else
10791 echo "$as_me:$LINENO: result: no" >&5
10792echo "${ECHO_T}no" >&6
10793 fi
10794
10795
10796 enablestring=
10797 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
10798echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
10799 no_cache=0
10800 # Check whether --enable-ico_cur or --disable-ico_cur was given.
10801if test "${enable_ico_cur+set}" = set; then
10802 enableval="$enable_ico_cur"
10803
10804 if test "$enableval" = yes; then
10805 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
10806 else
10807 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
10808 fi
10809
10810else
10811
10812 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
10813 if test "x$LINE" != x ; then
10814 eval "DEFAULT_$LINE"
10815 else
10816 no_cache=1
10817 fi
10818
10819 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
10820
10821fi;
10822
10823 eval "$ac_cv_use_ico_cur"
10824 if test "$no_cache" != 1; then
10825 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
10826 fi
10827
10828 if test "$wxUSE_ICO_CUR" = yes; then
10829 echo "$as_me:$LINENO: result: yes" >&5
10830echo "${ECHO_T}yes" >&6
10831 else
10832 echo "$as_me:$LINENO: result: no" >&5
10833echo "${ECHO_T}no" >&6
10834 fi
10835
10836
10837fi
10838
10839
10840
ceec2216
RL
10841# Check whether --with-flavour or --without-flavour was given.
10842if test "${with_flavour+set}" = set; then
10843 withval="$with_flavour"
10844 WX_FLAVOUR="$withval"
10845fi;
10846
10847
10848
a848cd7e
SC
10849 enablestring=
10850 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
10851echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
10852 no_cache=0
10853 # Check whether --enable-official_build or --disable-official_build was given.
10854if test "${enable_official_build+set}" = set; then
10855 enableval="$enable_official_build"
10856
10857 if test "$enableval" = yes; then
10858 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
10859 else
10860 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
10861 fi
10862
10863else
10864
10865 LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
10866 if test "x$LINE" != x ; then
10867 eval "DEFAULT_$LINE"
10868 else
10869 no_cache=1
10870 fi
10871
10872 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
10873
10874fi;
10875
10876 eval "$ac_cv_use_official_build"
10877 if test "$no_cache" != 1; then
10878 echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
10879 fi
10880
10881 if test "$wxUSE_OFFICIAL_BUILD" = yes; then
10882 echo "$as_me:$LINENO: result: yes" >&5
10883echo "${ECHO_T}yes" >&6
10884 else
10885 echo "$as_me:$LINENO: result: no" >&5
10886echo "${ECHO_T}no" >&6
10887 fi
10888
10889# Check whether --enable-vendor or --disable-vendor was given.
10890if test "${enable_vendor+set}" = set; then
10891 enableval="$enable_vendor"
10892 VENDOR="$enableval"
10893fi;
10894if test "x$VENDOR" = "x"; then
10895 VENDOR="custom"
10896fi
10897
a848cd7e
SC
10898
10899
10900
10901 echo "saving argument cache $wx_arg_cache_file"
10902 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
10903
10904
10905
10906echo "$as_me:$LINENO: checking for toolkit" >&5
10907echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
10908
10909# In Wine, we need to default to MSW, not GTK or MOTIF
10910if test "$wxUSE_WINE" = "yes"; then
10911 DEFAULT_DEFAULT_wxUSE_GTK=0
10912 DEFAULT_DEFAULT_wxUSE_MOTIF=0
10913 DEFAULT_DEFAULT_wxUSE_MSW=1
10914 wxUSE_SHARED=no
10915fi
10916
f597b41c 10917
a848cd7e
SC
10918if test "$wxUSE_GUI" = "yes"; then
10919
10920 if test "$USE_BEOS" = 1; then
10921 { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
10922echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
10923 { (exit 1); exit 1; }; }
10924 fi
10925
10926 if test "$TOOLKIT_GIVEN" = 1; then
10927 for toolkit in `echo $ALL_TOOLKITS`; do
10928 var=wxUSE_$toolkit
10929 eval "value=\$${var}"
f34ca037
MW
10930 if test "x$value" = "xno"; then
10931 eval "$var=0"
10932 elif test "x$value" != "x"; then
10933 eval "$var=1"
10934 fi
10935
10936 if test "x$value" != "x" -a "x$value" != "xyes" -a "x$value" != "xno"; then
10937 eval "wx${toolkit}_VERSION=$value"
10938 fi
a848cd7e
SC
10939 done
10940 else
10941 for toolkit in `echo $ALL_TOOLKITS`; do
10942 if test "$has_toolkit_in_cache" != 1; then
10943 var=DEFAULT_DEFAULT_wxUSE_$toolkit
10944 else
10945 var=DEFAULT_wxUSE_$toolkit
f34ca037
MW
10946
10947 eval "version=\$DEFAULT_wx${toolkit}_VERSION"
10948 if test "x$version" != "x"; then
10949 eval "wx${toolkit}_VERSION=$version"
10950 fi
a848cd7e
SC
10951 fi
10952 eval "wxUSE_$toolkit=\$${var}"
10953 done
10954 fi
10955
10956 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
10957 + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
10958 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
10959
10960 case "${host}" in
10961 *-pc-os2_emx | *-pc-os2-emx )
10962 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
10963 esac
10964
10965 case "$NUM_TOOLKITS" in
10966 1)
10967 ;;
10968 0)
10969 { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
10970echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
10971 { (exit 1); exit 1; }; }
10972 ;;
10973 *)
10974 { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
10975echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
10976 { (exit 1); exit 1; }; }
10977 esac
10978
f34ca037
MW
10979 # to be removed when --disable-gtk2 isn't needed
10980 if test "x$wxUSE_GTK2" = "xyes"; then
10981 wxGTK_VERSION=2
10982 elif test "x$wxUSE_GTK2" = "xno"; then
10983 wxGTK_VERSION=1
10984 fi
10985
a848cd7e
SC
10986 for toolkit in `echo $ALL_TOOLKITS`; do
10987 var=wxUSE_$toolkit
10988 eval "value=\$${var}"
10989 if test "x$value" != x; then
10990 cache_var=CACHE_$toolkit
10991 eval "cache=\$${cache_var}"
10992 if test "$cache" = 1; then
10993 echo "$var=$value" >> ${wx_arg_cache_file}
f34ca037
MW
10994 eval "version=\$wx${toolkit}_VERSION"
10995 if test "x$version" != "x"; then
10996 echo "wx${toolkit}_VERSION=$version" >> ${wx_arg_cache_file}
10997 fi
a848cd7e
SC
10998 fi
10999 if test "$value" = 1; then
11000 toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
11001 echo "$as_me:$LINENO: result: $toolkit_echo" >&5
11002echo "${ECHO_T}$toolkit_echo" >&6
11003 fi
11004 fi
11005 done
11006else
11007 if test "x$host_alias" != "x"; then
11008 echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
11009echo "${ECHO_T}base ($host_alias hosted) only" >&6
11010 else
11011 echo "$as_me:$LINENO: result: base only" >&5
11012echo "${ECHO_T}base only" >&6
11013 fi
11014fi
11015
11016wants_win32=0
11017doesnt_want_win32=0
11018case "${host}" in
11019 *-*-cygwin*)
11020 if test "$wxUSE_MSW" = 1 ; then
11021 wants_win32=1
7275146d 11022 BAKEFILE_FORCE_PLATFORM=win32
a848cd7e
SC
11023 else
11024 doesnt_want_win32=1
11025 fi
11026 ;;
11027 *-*-mingw*)
11028 wants_win32=1
11029 ;;
11030esac
11031
11032if test "$wxUSE_WINE" = "yes"; then
11033 wants_win32=1
11034 CC=winegcc
11035 CXX=wineg++
a848cd7e
SC
11036 LDFLAGS_GUI="-mwindows"
11037fi
11038
11039if test "$wants_win32" = 1 ; then
11040 USE_UNIX=0
11041 USE_WIN32=1
11042 cat >>confdefs.h <<\_ACEOF
11043#define __WIN32__ 1
11044_ACEOF
11045
11046 cat >>confdefs.h <<\_ACEOF
11047#define __WIN95__ 1
11048_ACEOF
11049
11050 cat >>confdefs.h <<\_ACEOF
11051#define __WINDOWS__ 1
11052_ACEOF
11053
11054 cat >>confdefs.h <<\_ACEOF
11055#define __GNUWIN32__ 1
11056_ACEOF
11057
11058 cat >>confdefs.h <<\_ACEOF
11059#define STRICT 1
11060_ACEOF
11061
11062 cat >>confdefs.h <<\_ACEOF
11063#define WINVER 0x0400
11064_ACEOF
11065
11066fi
11067if test "$doesnt_want_win32" = 1 ; then
11068 USE_UNIX=1
11069 USE_WIN32=0
11070fi
11071
11072if test "$USE_UNIX" = 1 ; then
11073 wxUSE_UNIX=yes
11074 cat >>confdefs.h <<\_ACEOF
11075#define __UNIX__ 1
11076_ACEOF
11077
11078fi
11079
11080
11081cat >confcache <<\_ACEOF
11082# This file is a shell script that caches the results of configure
11083# tests run on this system so they can be shared between configure
11084# scripts and configure runs, see configure's option --config-cache.
11085# It is not useful on other systems. If it contains results you don't
11086# want to keep, you may remove or edit it.
11087#
11088# config.status only pays attention to the cache file if you give it
11089# the --recheck option to rerun configure.
11090#
11091# `ac_cv_env_foo' variables (set or unset) will be overridden when
11092# loading this file, other *unset* `ac_cv_foo' will be assigned the
11093# following values.
11094
11095_ACEOF
11096
11097# The following way of writing the cache mishandles newlines in values,
11098# but we know of no workaround that is simple, portable, and efficient.
11099# So, don't put newlines in cache variables' values.
11100# Ultrix sh set writes to stderr and can't be redirected directly,
11101# and sets the high bit in the cache file unless we assign to the vars.
11102{
11103 (set) 2>&1 |
11104 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11105 *ac_space=\ *)
11106 # `set' does not quote correctly, so add quotes (double-quote
11107 # substitution turns \\\\ into \\, and sed turns \\ into \).
11108 sed -n \
ac1cb8d3
VS
11109 "s/'/'\\\\''/g;
11110 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
11111 ;;
11112 *)
11113 # `set' quotes correctly as required by POSIX, so do not add quotes.
11114 sed -n \
ac1cb8d3 11115 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
11116 ;;
11117 esac;
11118} |
11119 sed '
11120 t clear
11121 : clear
11122 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11123 t end
11124 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11125 : end' >>confcache
11126if diff $cache_file confcache >/dev/null 2>&1; then :; else
11127 if test -w $cache_file; then
11128 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11129 cat confcache >$cache_file
11130 else
11131 echo "not updating unwritable cache $cache_file"
11132 fi
11133fi
11134rm -f confcache
11135
a848cd7e 11136CFLAGS=${CFLAGS:=}
6dcfc289
DE
11137
11138
3006edc0 11139
6dcfc289 11140 ac_ext=c
a848cd7e
SC
11141ac_cpp='$CPP $CPPFLAGS'
11142ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11143ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11144ac_compiler_gnu=$ac_cv_c_compiler_gnu
11145if test -n "$ac_tool_prefix"; then
11146 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11147set dummy ${ac_tool_prefix}gcc; ac_word=$2
11148echo "$as_me:$LINENO: checking for $ac_word" >&5
11149echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11150if test "${ac_cv_prog_CC+set}" = set; then
11151 echo $ECHO_N "(cached) $ECHO_C" >&6
11152else
11153 if test -n "$CC"; then
11154 ac_cv_prog_CC="$CC" # Let the user override the test.
11155else
11156as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11157for as_dir in $PATH
11158do
11159 IFS=$as_save_IFS
11160 test -z "$as_dir" && as_dir=.
11161 for ac_exec_ext in '' $ac_executable_extensions; do
11162 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11163 ac_cv_prog_CC="${ac_tool_prefix}gcc"
11164 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11165 break 2
11166 fi
11167done
11168done
11169
11170fi
11171fi
11172CC=$ac_cv_prog_CC
11173if test -n "$CC"; then
11174 echo "$as_me:$LINENO: result: $CC" >&5
11175echo "${ECHO_T}$CC" >&6
11176else
11177 echo "$as_me:$LINENO: result: no" >&5
11178echo "${ECHO_T}no" >&6
11179fi
11180
11181fi
11182if test -z "$ac_cv_prog_CC"; then
11183 ac_ct_CC=$CC
11184 # Extract the first word of "gcc", so it can be a program name with args.
11185set dummy gcc; ac_word=$2
11186echo "$as_me:$LINENO: checking for $ac_word" >&5
11187echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11188if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11189 echo $ECHO_N "(cached) $ECHO_C" >&6
11190else
11191 if test -n "$ac_ct_CC"; then
11192 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11193else
11194as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11195for as_dir in $PATH
11196do
11197 IFS=$as_save_IFS
11198 test -z "$as_dir" && as_dir=.
11199 for ac_exec_ext in '' $ac_executable_extensions; do
11200 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11201 ac_cv_prog_ac_ct_CC="gcc"
11202 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11203 break 2
11204 fi
11205done
11206done
11207
11208fi
11209fi
11210ac_ct_CC=$ac_cv_prog_ac_ct_CC
11211if test -n "$ac_ct_CC"; then
11212 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11213echo "${ECHO_T}$ac_ct_CC" >&6
11214else
11215 echo "$as_me:$LINENO: result: no" >&5
11216echo "${ECHO_T}no" >&6
11217fi
11218
11219 CC=$ac_ct_CC
11220else
11221 CC="$ac_cv_prog_CC"
11222fi
11223
11224if test -z "$CC"; then
11225 if test -n "$ac_tool_prefix"; then
11226 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11227set dummy ${ac_tool_prefix}cc; ac_word=$2
11228echo "$as_me:$LINENO: checking for $ac_word" >&5
11229echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11230if test "${ac_cv_prog_CC+set}" = set; then
11231 echo $ECHO_N "(cached) $ECHO_C" >&6
11232else
11233 if test -n "$CC"; then
11234 ac_cv_prog_CC="$CC" # Let the user override the test.
11235else
11236as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11237for as_dir in $PATH
11238do
11239 IFS=$as_save_IFS
11240 test -z "$as_dir" && as_dir=.
11241 for ac_exec_ext in '' $ac_executable_extensions; do
11242 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11243 ac_cv_prog_CC="${ac_tool_prefix}cc"
11244 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11245 break 2
11246 fi
11247done
11248done
11249
11250fi
11251fi
11252CC=$ac_cv_prog_CC
11253if test -n "$CC"; then
11254 echo "$as_me:$LINENO: result: $CC" >&5
11255echo "${ECHO_T}$CC" >&6
11256else
11257 echo "$as_me:$LINENO: result: no" >&5
11258echo "${ECHO_T}no" >&6
11259fi
11260
11261fi
11262if test -z "$ac_cv_prog_CC"; then
11263 ac_ct_CC=$CC
11264 # Extract the first word of "cc", so it can be a program name with args.
11265set dummy cc; ac_word=$2
11266echo "$as_me:$LINENO: checking for $ac_word" >&5
11267echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11268if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11269 echo $ECHO_N "(cached) $ECHO_C" >&6
11270else
11271 if test -n "$ac_ct_CC"; then
11272 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11273else
11274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11275for as_dir in $PATH
11276do
11277 IFS=$as_save_IFS
11278 test -z "$as_dir" && as_dir=.
11279 for ac_exec_ext in '' $ac_executable_extensions; do
11280 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11281 ac_cv_prog_ac_ct_CC="cc"
11282 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11283 break 2
11284 fi
11285done
11286done
11287
11288fi
11289fi
11290ac_ct_CC=$ac_cv_prog_ac_ct_CC
11291if test -n "$ac_ct_CC"; then
11292 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11293echo "${ECHO_T}$ac_ct_CC" >&6
11294else
11295 echo "$as_me:$LINENO: result: no" >&5
11296echo "${ECHO_T}no" >&6
11297fi
11298
11299 CC=$ac_ct_CC
11300else
11301 CC="$ac_cv_prog_CC"
11302fi
11303
11304fi
11305if test -z "$CC"; then
11306 # Extract the first word of "cc", so it can be a program name with args.
11307set dummy cc; ac_word=$2
11308echo "$as_me:$LINENO: checking for $ac_word" >&5
11309echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11310if test "${ac_cv_prog_CC+set}" = set; then
11311 echo $ECHO_N "(cached) $ECHO_C" >&6
11312else
11313 if test -n "$CC"; then
11314 ac_cv_prog_CC="$CC" # Let the user override the test.
11315else
11316 ac_prog_rejected=no
11317as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11318for as_dir in $PATH
11319do
11320 IFS=$as_save_IFS
11321 test -z "$as_dir" && as_dir=.
11322 for ac_exec_ext in '' $ac_executable_extensions; do
11323 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11324 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11325 ac_prog_rejected=yes
11326 continue
11327 fi
11328 ac_cv_prog_CC="cc"
11329 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11330 break 2
11331 fi
11332done
11333done
11334
11335if test $ac_prog_rejected = yes; then
11336 # We found a bogon in the path, so make sure we never use it.
11337 set dummy $ac_cv_prog_CC
11338 shift
11339 if test $# != 0; then
11340 # We chose a different compiler from the bogus one.
11341 # However, it has the same basename, so the bogon will be chosen
11342 # first if we set CC to just the basename; use the full file name.
11343 shift
11344 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11345 fi
11346fi
11347fi
11348fi
11349CC=$ac_cv_prog_CC
11350if test -n "$CC"; then
11351 echo "$as_me:$LINENO: result: $CC" >&5
11352echo "${ECHO_T}$CC" >&6
11353else
11354 echo "$as_me:$LINENO: result: no" >&5
11355echo "${ECHO_T}no" >&6
11356fi
11357
11358fi
11359if test -z "$CC"; then
11360 if test -n "$ac_tool_prefix"; then
11361 for ac_prog in cl
11362 do
11363 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11364set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11365echo "$as_me:$LINENO: checking for $ac_word" >&5
11366echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11367if test "${ac_cv_prog_CC+set}" = set; then
11368 echo $ECHO_N "(cached) $ECHO_C" >&6
11369else
11370 if test -n "$CC"; then
11371 ac_cv_prog_CC="$CC" # Let the user override the test.
11372else
11373as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11374for as_dir in $PATH
11375do
11376 IFS=$as_save_IFS
11377 test -z "$as_dir" && as_dir=.
11378 for ac_exec_ext in '' $ac_executable_extensions; do
11379 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11380 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11381 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11382 break 2
11383 fi
11384done
11385done
11386
11387fi
11388fi
11389CC=$ac_cv_prog_CC
11390if test -n "$CC"; then
11391 echo "$as_me:$LINENO: result: $CC" >&5
11392echo "${ECHO_T}$CC" >&6
11393else
11394 echo "$as_me:$LINENO: result: no" >&5
11395echo "${ECHO_T}no" >&6
11396fi
11397
11398 test -n "$CC" && break
11399 done
11400fi
11401if test -z "$CC"; then
11402 ac_ct_CC=$CC
11403 for ac_prog in cl
11404do
11405 # Extract the first word of "$ac_prog", so it can be a program name with args.
11406set dummy $ac_prog; ac_word=$2
11407echo "$as_me:$LINENO: checking for $ac_word" >&5
11408echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11409if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11410 echo $ECHO_N "(cached) $ECHO_C" >&6
11411else
11412 if test -n "$ac_ct_CC"; then
11413 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11414else
11415as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11416for as_dir in $PATH
11417do
11418 IFS=$as_save_IFS
11419 test -z "$as_dir" && as_dir=.
11420 for ac_exec_ext in '' $ac_executable_extensions; do
11421 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11422 ac_cv_prog_ac_ct_CC="$ac_prog"
11423 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11424 break 2
11425 fi
11426done
11427done
11428
11429fi
11430fi
11431ac_ct_CC=$ac_cv_prog_ac_ct_CC
11432if test -n "$ac_ct_CC"; then
11433 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11434echo "${ECHO_T}$ac_ct_CC" >&6
11435else
11436 echo "$as_me:$LINENO: result: no" >&5
11437echo "${ECHO_T}no" >&6
11438fi
11439
11440 test -n "$ac_ct_CC" && break
11441done
11442
11443 CC=$ac_ct_CC
11444fi
11445
11446fi
11447
11448
11449test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
11450See \`config.log' for more details." >&5
11451echo "$as_me: error: no acceptable C compiler found in \$PATH
11452See \`config.log' for more details." >&2;}
11453 { (exit 1); exit 1; }; }
11454
11455# Provide some information about the compiler.
11456echo "$as_me:$LINENO:" \
11457 "checking for C compiler version" >&5
11458ac_compiler=`set X $ac_compile; echo $2`
11459{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11460 (eval $ac_compiler --version </dev/null >&5) 2>&5
11461 ac_status=$?
11462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11463 (exit $ac_status); }
11464{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11465 (eval $ac_compiler -v </dev/null >&5) 2>&5
11466 ac_status=$?
11467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11468 (exit $ac_status); }
11469{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11470 (eval $ac_compiler -V </dev/null >&5) 2>&5
11471 ac_status=$?
11472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11473 (exit $ac_status); }
11474
11475cat >conftest.$ac_ext <<_ACEOF
11476/* confdefs.h. */
11477_ACEOF
11478cat confdefs.h >>conftest.$ac_ext
11479cat >>conftest.$ac_ext <<_ACEOF
11480/* end confdefs.h. */
11481
11482int
11483main ()
11484{
11485
11486 ;
11487 return 0;
11488}
11489_ACEOF
11490ac_clean_files_save=$ac_clean_files
11491ac_clean_files="$ac_clean_files a.out a.exe b.out"
11492# Try to create an executable without -o first, disregard a.out.
11493# It will help us diagnose broken compilers, and finding out an intuition
11494# of exeext.
ac1cb8d3
VS
11495echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
11496echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
a848cd7e
SC
11497ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
11498if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
11499 (eval $ac_link_default) 2>&5
11500 ac_status=$?
11501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11502 (exit $ac_status); }; then
11503 # Find the output, starting from the most likely. This scheme is
11504# not robust to junk in `.', hence go to wildcards (a.*) only as a last
11505# resort.
11506
11507# Be careful to initialize this variable, since it used to be cached.
11508# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
11509ac_cv_exeext=
11510# b.out is created by i960 compilers.
11511for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
11512do
11513 test -f "$ac_file" || continue
11514 case $ac_file in
11515 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
ac1cb8d3 11516 ;;
a848cd7e 11517 conftest.$ac_ext )
ac1cb8d3
VS
11518 # This is the source file.
11519 ;;
a848cd7e 11520 [ab].out )
ac1cb8d3
VS
11521 # We found the default executable, but exeext='' is most
11522 # certainly right.
11523 break;;
a848cd7e 11524 *.* )
ac1cb8d3
VS
11525 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
11526 # FIXME: I believe we export ac_cv_exeext for Libtool,
11527 # but it would be cool to find out if it's true. Does anybody
11528 # maintain Libtool? --akim.
11529 export ac_cv_exeext
11530 break;;
a848cd7e 11531 * )
ac1cb8d3 11532 break;;
a848cd7e
SC
11533 esac
11534done
11535else
11536 echo "$as_me: failed program was:" >&5
11537sed 's/^/| /' conftest.$ac_ext >&5
11538
11539{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
11540See \`config.log' for more details." >&5
11541echo "$as_me: error: C compiler cannot create executables
11542See \`config.log' for more details." >&2;}
11543 { (exit 77); exit 77; }; }
11544fi
11545
11546ac_exeext=$ac_cv_exeext
11547echo "$as_me:$LINENO: result: $ac_file" >&5
11548echo "${ECHO_T}$ac_file" >&6
11549
11550# Check the compiler produces executables we can run. If not, either
11551# the compiler is broken, or we cross compile.
11552echo "$as_me:$LINENO: checking whether the C compiler works" >&5
11553echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
11554# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
11555# If not cross compiling, check that we can run a simple program.
11556if test "$cross_compiling" != yes; then
11557 if { ac_try='./$ac_file'
11558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11559 (eval $ac_try) 2>&5
11560 ac_status=$?
11561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11562 (exit $ac_status); }; }; then
11563 cross_compiling=no
11564 else
11565 if test "$cross_compiling" = maybe; then
11566 cross_compiling=yes
11567 else
11568 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
11569If you meant to cross compile, use \`--host'.
11570See \`config.log' for more details." >&5
11571echo "$as_me: error: cannot run C compiled programs.
11572If you meant to cross compile, use \`--host'.
11573See \`config.log' for more details." >&2;}
11574 { (exit 1); exit 1; }; }
11575 fi
11576 fi
11577fi
11578echo "$as_me:$LINENO: result: yes" >&5
11579echo "${ECHO_T}yes" >&6
11580
11581rm -f a.out a.exe conftest$ac_cv_exeext b.out
11582ac_clean_files=$ac_clean_files_save
11583# Check the compiler produces executables we can run. If not, either
11584# the compiler is broken, or we cross compile.
11585echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
11586echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
11587echo "$as_me:$LINENO: result: $cross_compiling" >&5
11588echo "${ECHO_T}$cross_compiling" >&6
11589
11590echo "$as_me:$LINENO: checking for suffix of executables" >&5
11591echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
11592if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11593 (eval $ac_link) 2>&5
11594 ac_status=$?
11595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11596 (exit $ac_status); }; then
11597 # If both `conftest.exe' and `conftest' are `present' (well, observable)
11598# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
11599# work properly (i.e., refer to `conftest.exe'), while it won't with
11600# `rm'.
11601for ac_file in conftest.exe conftest conftest.*; do
11602 test -f "$ac_file" || continue
11603 case $ac_file in
11604 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
11605 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
ac1cb8d3
VS
11606 export ac_cv_exeext
11607 break;;
a848cd7e
SC
11608 * ) break;;
11609 esac
11610done
11611else
11612 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
11613See \`config.log' for more details." >&5
11614echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
11615See \`config.log' for more details." >&2;}
11616 { (exit 1); exit 1; }; }
11617fi
11618
11619rm -f conftest$ac_cv_exeext
11620echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
11621echo "${ECHO_T}$ac_cv_exeext" >&6
11622
11623rm -f conftest.$ac_ext
11624EXEEXT=$ac_cv_exeext
11625ac_exeext=$EXEEXT
11626echo "$as_me:$LINENO: checking for suffix of object files" >&5
11627echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
11628if test "${ac_cv_objext+set}" = set; then
11629 echo $ECHO_N "(cached) $ECHO_C" >&6
11630else
11631 cat >conftest.$ac_ext <<_ACEOF
11632/* confdefs.h. */
11633_ACEOF
11634cat confdefs.h >>conftest.$ac_ext
11635cat >>conftest.$ac_ext <<_ACEOF
11636/* end confdefs.h. */
11637
11638int
11639main ()
11640{
11641
11642 ;
11643 return 0;
11644}
11645_ACEOF
11646rm -f conftest.o conftest.obj
11647if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11648 (eval $ac_compile) 2>&5
11649 ac_status=$?
11650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11651 (exit $ac_status); }; then
11652 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
11653 case $ac_file in
11654 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
11655 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
11656 break;;
11657 esac
11658done
11659else
11660 echo "$as_me: failed program was:" >&5
11661sed 's/^/| /' conftest.$ac_ext >&5
11662
11663{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
11664See \`config.log' for more details." >&5
11665echo "$as_me: error: cannot compute suffix of object files: cannot compile
11666See \`config.log' for more details." >&2;}
11667 { (exit 1); exit 1; }; }
11668fi
11669
11670rm -f conftest.$ac_cv_objext conftest.$ac_ext
11671fi
11672echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
11673echo "${ECHO_T}$ac_cv_objext" >&6
11674OBJEXT=$ac_cv_objext
11675ac_objext=$OBJEXT
11676echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
11677echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
11678if test "${ac_cv_c_compiler_gnu+set}" = set; then
11679 echo $ECHO_N "(cached) $ECHO_C" >&6
11680else
11681 cat >conftest.$ac_ext <<_ACEOF
11682/* confdefs.h. */
11683_ACEOF
11684cat confdefs.h >>conftest.$ac_ext
11685cat >>conftest.$ac_ext <<_ACEOF
11686/* end confdefs.h. */
11687
11688int
11689main ()
11690{
11691#ifndef __GNUC__
11692 choke me
11693#endif
11694
11695 ;
11696 return 0;
11697}
11698_ACEOF
11699rm -f conftest.$ac_objext
11700if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11701 (eval $ac_compile) 2>conftest.er1
a848cd7e 11702 ac_status=$?
ac1cb8d3
VS
11703 grep -v '^ *+' conftest.er1 >conftest.err
11704 rm -f conftest.er1
11705 cat conftest.err >&5
a848cd7e
SC
11706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11707 (exit $ac_status); } &&
5d7b7554 11708 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11710 (eval $ac_try) 2>&5
11711 ac_status=$?
11712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11713 (exit $ac_status); }; } &&
11714 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11716 (eval $ac_try) 2>&5
11717 ac_status=$?
11718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11719 (exit $ac_status); }; }; then
11720 ac_compiler_gnu=yes
11721else
11722 echo "$as_me: failed program was:" >&5
11723sed 's/^/| /' conftest.$ac_ext >&5
11724
11725ac_compiler_gnu=no
11726fi
ac1cb8d3 11727rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11728ac_cv_c_compiler_gnu=$ac_compiler_gnu
11729
11730fi
11731echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
11732echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
11733GCC=`test $ac_compiler_gnu = yes && echo yes`
11734ac_test_CFLAGS=${CFLAGS+set}
11735ac_save_CFLAGS=$CFLAGS
8aeeb05c 11736CFLAGS="-g"
a848cd7e
SC
11737echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
11738echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
11739if test "${ac_cv_prog_cc_g+set}" = set; then
11740 echo $ECHO_N "(cached) $ECHO_C" >&6
11741else
11742 cat >conftest.$ac_ext <<_ACEOF
11743/* confdefs.h. */
11744_ACEOF
11745cat confdefs.h >>conftest.$ac_ext
11746cat >>conftest.$ac_ext <<_ACEOF
11747/* end confdefs.h. */
11748
11749int
11750main ()
11751{
11752
11753 ;
11754 return 0;
11755}
11756_ACEOF
11757rm -f conftest.$ac_objext
11758if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11759 (eval $ac_compile) 2>conftest.er1
a848cd7e 11760 ac_status=$?
ac1cb8d3
VS
11761 grep -v '^ *+' conftest.er1 >conftest.err
11762 rm -f conftest.er1
11763 cat conftest.err >&5
a848cd7e
SC
11764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11765 (exit $ac_status); } &&
5d7b7554 11766 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11768 (eval $ac_try) 2>&5
11769 ac_status=$?
11770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11771 (exit $ac_status); }; } &&
11772 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11774 (eval $ac_try) 2>&5
11775 ac_status=$?
11776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11777 (exit $ac_status); }; }; then
11778 ac_cv_prog_cc_g=yes
11779else
11780 echo "$as_me: failed program was:" >&5
11781sed 's/^/| /' conftest.$ac_ext >&5
11782
11783ac_cv_prog_cc_g=no
11784fi
ac1cb8d3 11785rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11786fi
11787echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
11788echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
11789if test "$ac_test_CFLAGS" = set; then
11790 CFLAGS=$ac_save_CFLAGS
11791elif test $ac_cv_prog_cc_g = yes; then
11792 if test "$GCC" = yes; then
11793 CFLAGS="-g -O2"
11794 else
11795 CFLAGS="-g"
11796 fi
11797else
11798 if test "$GCC" = yes; then
11799 CFLAGS="-O2"
11800 else
11801 CFLAGS=
11802 fi
11803fi
11804echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
11805echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
11806if test "${ac_cv_prog_cc_stdc+set}" = set; then
11807 echo $ECHO_N "(cached) $ECHO_C" >&6
11808else
11809 ac_cv_prog_cc_stdc=no
11810ac_save_CC=$CC
11811cat >conftest.$ac_ext <<_ACEOF
11812/* confdefs.h. */
11813_ACEOF
11814cat confdefs.h >>conftest.$ac_ext
11815cat >>conftest.$ac_ext <<_ACEOF
11816/* end confdefs.h. */
11817#include <stdarg.h>
11818#include <stdio.h>
11819#include <sys/types.h>
11820#include <sys/stat.h>
11821/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11822struct buf { int x; };
11823FILE * (*rcsopen) (struct buf *, struct stat *, int);
11824static char *e (p, i)
11825 char **p;
11826 int i;
11827{
11828 return p[i];
11829}
11830static char *f (char * (*g) (char **, int), char **p, ...)
11831{
11832 char *s;
11833 va_list v;
11834 va_start (v,p);
11835 s = g (p, va_arg (v,int));
11836 va_end (v);
11837 return s;
11838}
ac1cb8d3
VS
11839
11840/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
11841 function prototypes and stuff, but not '\xHH' hex character constants.
11842 These don't provoke an error unfortunately, instead are silently treated
11843 as 'x'. The following induces an error, until -std1 is added to get
11844 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
11845 array size at least. It's necessary to write '\x00'==0 to get something
11846 that's true only with -std1. */
11847int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11848
a848cd7e
SC
11849int test (int i, double x);
11850struct s1 {int (*f) (int a);};
11851struct s2 {int (*f) (double a);};
11852int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11853int argc;
11854char **argv;
11855int
11856main ()
11857{
11858return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11859 ;
11860 return 0;
11861}
11862_ACEOF
11863# Don't try gcc -ansi; that turns off useful extensions and
11864# breaks some systems' header files.
11865# AIX -qlanglvl=ansi
11866# Ultrix and OSF/1 -std1
11867# HP-UX 10.20 and later -Ae
11868# HP-UX older versions -Aa -D_HPUX_SOURCE
11869# SVR4 -Xc -D__EXTENSIONS__
11870for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11871do
11872 CC="$ac_save_CC $ac_arg"
11873 rm -f conftest.$ac_objext
11874if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11875 (eval $ac_compile) 2>conftest.er1
a848cd7e 11876 ac_status=$?
ac1cb8d3
VS
11877 grep -v '^ *+' conftest.er1 >conftest.err
11878 rm -f conftest.er1
11879 cat conftest.err >&5
a848cd7e
SC
11880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11881 (exit $ac_status); } &&
5d7b7554 11882 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11884 (eval $ac_try) 2>&5
11885 ac_status=$?
11886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11887 (exit $ac_status); }; } &&
11888 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11890 (eval $ac_try) 2>&5
11891 ac_status=$?
11892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11893 (exit $ac_status); }; }; then
11894 ac_cv_prog_cc_stdc=$ac_arg
11895break
11896else
11897 echo "$as_me: failed program was:" >&5
11898sed 's/^/| /' conftest.$ac_ext >&5
11899
11900fi
ac1cb8d3 11901rm -f conftest.err conftest.$ac_objext
a848cd7e
SC
11902done
11903rm -f conftest.$ac_ext conftest.$ac_objext
11904CC=$ac_save_CC
11905
11906fi
11907
11908case "x$ac_cv_prog_cc_stdc" in
11909 x|xno)
11910 echo "$as_me:$LINENO: result: none needed" >&5
11911echo "${ECHO_T}none needed" >&6 ;;
11912 *)
11913 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
11914echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
11915 CC="$CC $ac_cv_prog_cc_stdc" ;;
11916esac
11917
11918# Some people use a C++ compiler to compile C. Since we use `exit',
11919# in C++ we need to declare it. In case someone uses the same compiler
11920# for both compiling C and C++ we need to have the C++ compiler decide
11921# the declaration of exit, since it's the most demanding environment.
11922cat >conftest.$ac_ext <<_ACEOF
11923#ifndef __cplusplus
11924 choke me
11925#endif
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); } &&
5d7b7554 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 for ac_declaration in \
ac1cb8d3 11949 '' \
a848cd7e
SC
11950 'extern "C" void std::exit (int) throw (); using std::exit;' \
11951 'extern "C" void std::exit (int); using std::exit;' \
11952 'extern "C" void exit (int) throw ();' \
11953 'extern "C" void exit (int);' \
11954 'void exit (int);'
11955do
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. */
de59c161 11962$ac_declaration
ac1cb8d3 11963#include <stdlib.h>
a848cd7e
SC
11964int
11965main ()
11966{
11967exit (42);
11968 ;
11969 return 0;
11970}
11971_ACEOF
11972rm -f conftest.$ac_objext
11973if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11974 (eval $ac_compile) 2>conftest.er1
a848cd7e 11975 ac_status=$?
ac1cb8d3
VS
11976 grep -v '^ *+' conftest.er1 >conftest.err
11977 rm -f conftest.er1
11978 cat conftest.err >&5
a848cd7e
SC
11979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11980 (exit $ac_status); } &&
5d7b7554 11981 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11983 (eval $ac_try) 2>&5
11984 ac_status=$?
11985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11986 (exit $ac_status); }; } &&
11987 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11989 (eval $ac_try) 2>&5
11990 ac_status=$?
11991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11992 (exit $ac_status); }; }; then
11993 :
11994else
11995 echo "$as_me: failed program was:" >&5
11996sed 's/^/| /' conftest.$ac_ext >&5
11997
11998continue
11999fi
ac1cb8d3 12000rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12001 cat >conftest.$ac_ext <<_ACEOF
12002/* confdefs.h. */
12003_ACEOF
12004cat confdefs.h >>conftest.$ac_ext
12005cat >>conftest.$ac_ext <<_ACEOF
12006/* end confdefs.h. */
12007$ac_declaration
12008int
12009main ()
12010{
12011exit (42);
12012 ;
12013 return 0;
12014}
12015_ACEOF
12016rm -f conftest.$ac_objext
12017if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12018 (eval $ac_compile) 2>conftest.er1
a848cd7e 12019 ac_status=$?
ac1cb8d3
VS
12020 grep -v '^ *+' conftest.er1 >conftest.err
12021 rm -f conftest.er1
12022 cat conftest.err >&5
a848cd7e
SC
12023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12024 (exit $ac_status); } &&
5d7b7554 12025 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12027 (eval $ac_try) 2>&5
12028 ac_status=$?
12029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12030 (exit $ac_status); }; } &&
12031 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12033 (eval $ac_try) 2>&5
12034 ac_status=$?
12035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12036 (exit $ac_status); }; }; then
12037 break
12038else
12039 echo "$as_me: failed program was:" >&5
12040sed 's/^/| /' conftest.$ac_ext >&5
12041
12042fi
ac1cb8d3 12043rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12044done
12045rm -f conftest*
12046if test -n "$ac_declaration"; then
12047 echo '#ifdef __cplusplus' >>confdefs.h
12048 echo $ac_declaration >>confdefs.h
12049 echo '#endif' >>confdefs.h
12050fi
12051
12052else
12053 echo "$as_me: failed program was:" >&5
12054sed 's/^/| /' conftest.$ac_ext >&5
12055
12056fi
ac1cb8d3 12057rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12058ac_ext=c
12059ac_cpp='$CPP $CPPFLAGS'
12060ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12061ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12062ac_compiler_gnu=$ac_cv_c_compiler_gnu
12063
ab0ad5f1
VZ
12064
12065
12066 ac_ext=c
12067ac_cpp='$CPP $CPPFLAGS'
12068ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12069ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12070ac_compiler_gnu=$ac_cv_c_compiler_gnu
12071
12072 echo "$as_me:$LINENO: checking whether we are using the Intel C compiler" >&5
12073echo $ECHO_N "checking whether we are using the Intel C compiler... $ECHO_C" >&6
12074if test "${bakefile_cv_c_compiler___INTEL_COMPILER+set}" = set; then
12075 echo $ECHO_N "(cached) $ECHO_C" >&6
12076else
12077 cat >conftest.$ac_ext <<_ACEOF
12078/* confdefs.h. */
12079_ACEOF
12080cat confdefs.h >>conftest.$ac_ext
12081cat >>conftest.$ac_ext <<_ACEOF
12082/* end confdefs.h. */
12083
12084int
12085main ()
12086{
12087
12088 #ifndef __INTEL_COMPILER
12089 choke me
12090 #endif
12091
12092 ;
12093 return 0;
12094}
12095_ACEOF
12096rm -f conftest.$ac_objext
12097if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12098 (eval $ac_compile) 2>conftest.er1
12099 ac_status=$?
12100 grep -v '^ *+' conftest.er1 >conftest.err
12101 rm -f conftest.er1
12102 cat conftest.err >&5
12103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12104 (exit $ac_status); } &&
5d7b7554 12105 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ab0ad5f1
VZ
12106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12107 (eval $ac_try) 2>&5
12108 ac_status=$?
12109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12110 (exit $ac_status); }; } &&
12111 { ac_try='test -s conftest.$ac_objext'
12112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12113 (eval $ac_try) 2>&5
12114 ac_status=$?
12115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12116 (exit $ac_status); }; }; then
12117 bakefile_cv_c_compiler___INTEL_COMPILER=yes
12118else
12119 echo "$as_me: failed program was:" >&5
12120sed 's/^/| /' conftest.$ac_ext >&5
12121
12122bakefile_cv_c_compiler___INTEL_COMPILER=no
12123
12124fi
12125rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12126
12127
12128fi
12129echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER" >&5
12130echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER" >&6
12131 ac_ext=c
12132ac_cpp='$CPP $CPPFLAGS'
12133ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12134ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12135ac_compiler_gnu=$ac_cv_c_compiler_gnu
12136
12137 if test "x$bakefile_cv_c_compiler___INTEL_COMPILER" = "xyes"; then
12138 :; INTELCC=yes
12139 else
12140 :;
12141 fi
12142
12143
12144 if test "x$GCC" != "xyes"; then
3006edc0
VZ
12145 if test "xCC" = "xC"; then
12146 echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
480ccd21 12147echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6
0093c2fc 12148if test "${bakefile_cv_c_exto+set}" = set; then
480ccd21
DE
12149 echo $ECHO_N "(cached) $ECHO_C" >&6
12150else
12151 cat >conftest.$ac_ext <<_ACEOF
12152/* confdefs.h. */
12153_ACEOF
12154cat confdefs.h >>conftest.$ac_ext
12155cat >>conftest.$ac_ext <<_ACEOF
12156/* end confdefs.h. */
12157
12158int
12159main ()
12160{
12161
12162 ;
12163 return 0;
12164}
12165_ACEOF
12166rm -f conftest.$ac_objext conftest.$ac_ext.o
12167if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12168 (eval $ac_compile) 2>&5
12169 ac_status=$?
12170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12171 (exit $ac_status); }; then
12172 for ac_file in `(ls conftest.* 2>/dev/null)`; do
12173 case $ac_file in
12174 conftest.$ac_ext.o)
0093c2fc 12175 bakefile_cv_c_exto="-ext o"
480ccd21
DE
12176 ;;
12177 *)
12178 ;;
12179 esac
12180done
12181else
12182 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
12183See \`config.log' for more details." >&5
12184echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
12185See \`config.log' for more details." >&2;}
12186 { (exit 1); exit 1; }; }
12187
12188fi
12189
12190rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
12191
12192fi
0093c2fc
VZ
12193echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5
12194echo "${ECHO_T}$bakefile_cv_c_exto" >&6
12195if test "x$bakefile_cv_c_exto" '!=' "x"; then
480ccd21 12196 if test "c" = "c"; then
0093c2fc 12197 CFLAGS="$bakefile_cv_c_exto $CFLAGS"
480ccd21
DE
12198 fi
12199 if test "c" = "cxx"; then
0093c2fc 12200 CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS"
480ccd21
DE
12201 fi
12202fi
12203
0093c2fc 12204 if test "x$bakefile_cv_c_exto" '!=' "x"; then
3006edc0
VZ
12205 unset ac_cv_prog_cc_g
12206 ac_test_CFLAGS=${CFLAGS+set}
480ccd21 12207ac_save_CFLAGS=$CFLAGS
8aeeb05c 12208CFLAGS="-g"
480ccd21
DE
12209echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12210echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
12211if test "${ac_cv_prog_cc_g+set}" = set; then
12212 echo $ECHO_N "(cached) $ECHO_C" >&6
12213else
12214 cat >conftest.$ac_ext <<_ACEOF
12215/* confdefs.h. */
12216_ACEOF
12217cat confdefs.h >>conftest.$ac_ext
12218cat >>conftest.$ac_ext <<_ACEOF
12219/* end confdefs.h. */
12220
12221int
12222main ()
12223{
12224
12225 ;
12226 return 0;
12227}
12228_ACEOF
12229rm -f conftest.$ac_objext
12230if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12231 (eval $ac_compile) 2>conftest.er1
12232 ac_status=$?
12233 grep -v '^ *+' conftest.er1 >conftest.err
12234 rm -f conftest.er1
12235 cat conftest.err >&5
12236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12237 (exit $ac_status); } &&
5d7b7554 12238 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
480ccd21
DE
12239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12240 (eval $ac_try) 2>&5
12241 ac_status=$?
12242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12243 (exit $ac_status); }; } &&
12244 { ac_try='test -s conftest.$ac_objext'
12245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12246 (eval $ac_try) 2>&5
12247 ac_status=$?
12248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12249 (exit $ac_status); }; }; then
12250 ac_cv_prog_cc_g=yes
12251else
12252 echo "$as_me: failed program was:" >&5
12253sed 's/^/| /' conftest.$ac_ext >&5
12254
12255ac_cv_prog_cc_g=no
12256fi
12257rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12258fi
12259echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12260echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
12261if test "$ac_test_CFLAGS" = set; then
12262 CFLAGS=$ac_save_CFLAGS
12263elif test $ac_cv_prog_cc_g = yes; then
12264 if test "$GCC" = yes; then
12265 CFLAGS="-g -O2"
12266 else
12267 CFLAGS="-g"
12268 fi
12269else
12270 if test "$GCC" = yes; then
12271 CFLAGS="-O2"
12272 else
12273 CFLAGS=
12274 fi
12275fi
3006edc0 12276 fi
ab0ad5f1 12277 fi
3006edc0
VZ
12278
12279 case `uname -s` in
12280 AIX*)
12281 ac_ext=c
12282ac_cpp='$CPP $CPPFLAGS'
12283ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12284ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12285ac_compiler_gnu=$ac_cv_c_compiler_gnu
12286
12287echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
12288echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6
0093c2fc 12289if test "${bakefile_cv_c_compiler_xlc+set}" = set; then
3006edc0
VZ
12290 echo $ECHO_N "(cached) $ECHO_C" >&6
12291else
12292 cat >conftest.$ac_ext <<_ACEOF
12293/* confdefs.h. */
12294_ACEOF
12295cat confdefs.h >>conftest.$ac_ext
12296cat >>conftest.$ac_ext <<_ACEOF
12297/* end confdefs.h. */
12298
12299int
12300main ()
12301{
12302#ifndef __xlC__
12303 choke me
12304#endif
12305
12306 ;
12307 return 0;
12308}
12309_ACEOF
12310rm -f conftest.$ac_objext
12311if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12312 (eval $ac_compile) 2>conftest.er1
12313 ac_status=$?
12314 grep -v '^ *+' conftest.er1 >conftest.err
12315 rm -f conftest.er1
12316 cat conftest.err >&5
12317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12318 (exit $ac_status); } &&
5d7b7554 12319 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3006edc0
VZ
12320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12321 (eval $ac_try) 2>&5
12322 ac_status=$?
12323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12324 (exit $ac_status); }; } &&
12325 { ac_try='test -s conftest.$ac_objext'
12326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12327 (eval $ac_try) 2>&5
12328 ac_status=$?
12329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12330 (exit $ac_status); }; }; then
0093c2fc 12331 bakefile_compiler_xlc=yes
3006edc0
VZ
12332else
12333 echo "$as_me: failed program was:" >&5
12334sed 's/^/| /' conftest.$ac_ext >&5
12335
0093c2fc 12336bakefile_compiler_xlc=no
3006edc0
VZ
12337fi
12338rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 12339 bakefile_cv_c_compiler_xlc=$bakefile_compiler_xlc
3006edc0
VZ
12340
12341fi
0093c2fc
VZ
12342echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_xlc" >&5
12343echo "${ECHO_T}$bakefile_cv_c_compiler_xlc" >&6
3006edc0 12344
0093c2fc 12345XLCC=`test $bakefile_cv_c_compiler_xlc = yes && echo yes`
3006edc0
VZ
12346ac_ext=c
12347ac_cpp='$CPP $CPPFLAGS'
12348ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12349ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12350ac_compiler_gnu=$ac_cv_c_compiler_gnu
12351
12352
12353 ;;
12354
12355 Darwin)
12356 ac_ext=c
95986553
DE
12357ac_cpp='$CPP $CPPFLAGS'
12358ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12359ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12360ac_compiler_gnu=$ac_cv_c_compiler_gnu
12361
12362echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5
12363echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6
12364if test "${bakefile_cv_c_compiler_mwerks+set}" = set; then
12365 echo $ECHO_N "(cached) $ECHO_C" >&6
12366else
12367 cat >conftest.$ac_ext <<_ACEOF
12368/* confdefs.h. */
12369_ACEOF
12370cat confdefs.h >>conftest.$ac_ext
12371cat >>conftest.$ac_ext <<_ACEOF
12372/* end confdefs.h. */
12373
12374int
12375main ()
12376{
12377#ifndef __MWERKS__
12378 choke me
12379#endif
12380
12381 ;
12382 return 0;
12383}
12384_ACEOF
12385rm -f conftest.$ac_objext
12386if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12387 (eval $ac_compile) 2>conftest.er1
12388 ac_status=$?
12389 grep -v '^ *+' conftest.er1 >conftest.err
12390 rm -f conftest.er1
12391 cat conftest.err >&5
12392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12393 (exit $ac_status); } &&
5d7b7554 12394 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
95986553
DE
12395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12396 (eval $ac_try) 2>&5
12397 ac_status=$?
12398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12399 (exit $ac_status); }; } &&
12400 { ac_try='test -s conftest.$ac_objext'
12401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12402 (eval $ac_try) 2>&5
12403 ac_status=$?
12404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12405 (exit $ac_status); }; }; then
12406 bakefile_compiler_mwerks=yes
12407else
12408 echo "$as_me: failed program was:" >&5
12409sed 's/^/| /' conftest.$ac_ext >&5
12410
12411bakefile_compiler_mwerks=no
12412fi
12413rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12414 bakefile_cv_c_compiler_mwerks=$bakefile_compiler_mwerks
12415
12416fi
12417echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_mwerks" >&5
12418echo "${ECHO_T}$bakefile_cv_c_compiler_mwerks" >&6
12419
0e6fa1d9 12420MWCC=`test $bakefile_cv_c_compiler_mwerks = yes && echo yes`
95986553
DE
12421ac_ext=c
12422ac_cpp='$CPP $CPPFLAGS'
12423ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12424ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12425ac_compiler_gnu=$ac_cv_c_compiler_gnu
12426
12427
3006edc0 12428 ac_ext=c
9273ffba
DE
12429ac_cpp='$CPP $CPPFLAGS'
12430ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12431ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12432ac_compiler_gnu=$ac_cv_c_compiler_gnu
12433
12434echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
12435echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6
0093c2fc 12436if test "${bakefile_cv_c_compiler_xlc+set}" = set; then
9273ffba
DE
12437 echo $ECHO_N "(cached) $ECHO_C" >&6
12438else
12439 cat >conftest.$ac_ext <<_ACEOF
12440/* confdefs.h. */
12441_ACEOF
12442cat confdefs.h >>conftest.$ac_ext
12443cat >>conftest.$ac_ext <<_ACEOF
12444/* end confdefs.h. */
12445
12446int
12447main ()
12448{
12449#ifndef __xlC__
12450 choke me
12451#endif
12452
12453 ;
12454 return 0;
12455}
12456_ACEOF
12457rm -f conftest.$ac_objext
12458if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12459 (eval $ac_compile) 2>conftest.er1
12460 ac_status=$?
12461 grep -v '^ *+' conftest.er1 >conftest.err
12462 rm -f conftest.er1
12463 cat conftest.err >&5
12464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12465 (exit $ac_status); } &&
5d7b7554 12466 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9273ffba
DE
12467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12468 (eval $ac_try) 2>&5
12469 ac_status=$?
12470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12471 (exit $ac_status); }; } &&
12472 { ac_try='test -s conftest.$ac_objext'
12473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12474 (eval $ac_try) 2>&5
12475 ac_status=$?
12476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12477 (exit $ac_status); }; }; then
0093c2fc 12478 bakefile_compiler_xlc=yes
9273ffba
DE
12479else
12480 echo "$as_me: failed program was:" >&5
12481sed 's/^/| /' conftest.$ac_ext >&5
12482
0093c2fc 12483bakefile_compiler_xlc=no
9273ffba
DE
12484fi
12485rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 12486 bakefile_cv_c_compiler_xlc=$bakefile_compiler_xlc
9273ffba
DE
12487
12488fi
0093c2fc
VZ
12489echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_xlc" >&5
12490echo "${ECHO_T}$bakefile_cv_c_compiler_xlc" >&6
9273ffba 12491
0093c2fc 12492XLCC=`test $bakefile_cv_c_compiler_xlc = yes && echo yes`
9273ffba
DE
12493ac_ext=c
12494ac_cpp='$CPP $CPPFLAGS'
12495ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12496ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12497ac_compiler_gnu=$ac_cv_c_compiler_gnu
12498
12499
3006edc0
VZ
12500 ;;
12501
12502 IRIX*)
a848cd7e 12503
6dcfc289 12504
0ad5d837
VZ
12505 ac_ext=c
12506ac_cpp='$CPP $CPPFLAGS'
12507ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12508ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12509ac_compiler_gnu=$ac_cv_c_compiler_gnu
12510
12511 echo "$as_me:$LINENO: checking whether we are using the SGI C compiler" >&5
12512echo $ECHO_N "checking whether we are using the SGI C compiler... $ECHO_C" >&6
12513if test "${bakefile_cv_c_compiler__SGI_COMPILER_VERSION+set}" = set; then
12514 echo $ECHO_N "(cached) $ECHO_C" >&6
12515else
12516 cat >conftest.$ac_ext <<_ACEOF
12517/* confdefs.h. */
12518_ACEOF
12519cat confdefs.h >>conftest.$ac_ext
12520cat >>conftest.$ac_ext <<_ACEOF
12521/* end confdefs.h. */
12522
12523int
12524main ()
12525{
12526
12527 #ifndef _SGI_COMPILER_VERSION
12528 choke me
12529 #endif
12530
12531 ;
12532 return 0;
12533}
12534_ACEOF
12535rm -f conftest.$ac_objext
12536if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12537 (eval $ac_compile) 2>conftest.er1
12538 ac_status=$?
12539 grep -v '^ *+' conftest.er1 >conftest.err
12540 rm -f conftest.er1
12541 cat conftest.err >&5
12542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12543 (exit $ac_status); } &&
5d7b7554 12544 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
0ad5d837
VZ
12545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12546 (eval $ac_try) 2>&5
12547 ac_status=$?
12548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12549 (exit $ac_status); }; } &&
12550 { ac_try='test -s conftest.$ac_objext'
12551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12552 (eval $ac_try) 2>&5
12553 ac_status=$?
12554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12555 (exit $ac_status); }; }; then
12556 bakefile_cv_c_compiler__SGI_COMPILER_VERSION=yes
12557else
12558 echo "$as_me: failed program was:" >&5
12559sed 's/^/| /' conftest.$ac_ext >&5
12560
12561bakefile_cv_c_compiler__SGI_COMPILER_VERSION=no
12562
12563fi
12564rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12565
12566
12567fi
12568echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&5
12569echo "${ECHO_T}$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&6
12570 ac_ext=c
12571ac_cpp='$CPP $CPPFLAGS'
12572ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12573ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12574ac_compiler_gnu=$ac_cv_c_compiler_gnu
12575
12576 if test "x$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" = "xyes"; then
12577 :; SGICC=yes
12578 else
12579 :;
12580 fi
12581
12582
3006edc0
VZ
12583 ;;
12584
0093c2fc 12585 HP-UX*)
3006edc0
VZ
12586
12587
12588 ac_ext=c
12589ac_cpp='$CPP $CPPFLAGS'
12590ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12591ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12592ac_compiler_gnu=$ac_cv_c_compiler_gnu
12593
0093c2fc
VZ
12594 echo "$as_me:$LINENO: checking whether we are using the HP C compiler" >&5
12595echo $ECHO_N "checking whether we are using the HP C compiler... $ECHO_C" >&6
12596if test "${bakefile_cv_c_compiler___HP_cc+set}" = set; then
3006edc0
VZ
12597 echo $ECHO_N "(cached) $ECHO_C" >&6
12598else
12599 cat >conftest.$ac_ext <<_ACEOF
12600/* confdefs.h. */
12601_ACEOF
12602cat confdefs.h >>conftest.$ac_ext
12603cat >>conftest.$ac_ext <<_ACEOF
12604/* end confdefs.h. */
12605
12606int
12607main ()
12608{
12609
0093c2fc 12610 #ifndef __HP_cc
3006edc0
VZ
12611 choke me
12612 #endif
12613
12614 ;
12615 return 0;
12616}
12617_ACEOF
12618rm -f conftest.$ac_objext
12619if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12620 (eval $ac_compile) 2>conftest.er1
12621 ac_status=$?
12622 grep -v '^ *+' conftest.er1 >conftest.err
12623 rm -f conftest.er1
12624 cat conftest.err >&5
12625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12626 (exit $ac_status); } &&
5d7b7554 12627 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3006edc0
VZ
12628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12629 (eval $ac_try) 2>&5
12630 ac_status=$?
12631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12632 (exit $ac_status); }; } &&
12633 { ac_try='test -s conftest.$ac_objext'
12634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12635 (eval $ac_try) 2>&5
12636 ac_status=$?
12637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12638 (exit $ac_status); }; }; then
0093c2fc 12639 bakefile_cv_c_compiler___HP_cc=yes
3006edc0
VZ
12640else
12641 echo "$as_me: failed program was:" >&5
12642sed 's/^/| /' conftest.$ac_ext >&5
12643
0093c2fc 12644bakefile_cv_c_compiler___HP_cc=no
3006edc0
VZ
12645
12646fi
12647rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12648
12649
12650fi
0093c2fc
VZ
12651echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___HP_cc" >&5
12652echo "${ECHO_T}$bakefile_cv_c_compiler___HP_cc" >&6
3006edc0
VZ
12653 ac_ext=c
12654ac_cpp='$CPP $CPPFLAGS'
12655ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12656ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12657ac_compiler_gnu=$ac_cv_c_compiler_gnu
12658
0093c2fc
VZ
12659 if test "x$bakefile_cv_c_compiler___HP_cc" = "xyes"; then
12660 :; HPCC=yes
a1aa0349
VZ
12661 else
12662 :;
12663 fi
12664
12665
12666 ;;
12667
0093c2fc 12668 OSF1)
a1aa0349
VZ
12669
12670
12671 ac_ext=c
12672ac_cpp='$CPP $CPPFLAGS'
12673ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12674ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12675ac_compiler_gnu=$ac_cv_c_compiler_gnu
12676
0093c2fc
VZ
12677 echo "$as_me:$LINENO: checking whether we are using the Compaq C compiler" >&5
12678echo $ECHO_N "checking whether we are using the Compaq C compiler... $ECHO_C" >&6
12679if test "${bakefile_cv_c_compiler___DECC+set}" = set; then
a1aa0349
VZ
12680 echo $ECHO_N "(cached) $ECHO_C" >&6
12681else
12682 cat >conftest.$ac_ext <<_ACEOF
12683/* confdefs.h. */
12684_ACEOF
12685cat confdefs.h >>conftest.$ac_ext
12686cat >>conftest.$ac_ext <<_ACEOF
12687/* end confdefs.h. */
12688
12689int
12690main ()
12691{
12692
0093c2fc 12693 #ifndef __DECC
a1aa0349
VZ
12694 choke me
12695 #endif
12696
12697 ;
12698 return 0;
12699}
12700_ACEOF
12701rm -f conftest.$ac_objext
12702if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12703 (eval $ac_compile) 2>conftest.er1
12704 ac_status=$?
12705 grep -v '^ *+' conftest.er1 >conftest.err
12706 rm -f conftest.er1
12707 cat conftest.err >&5
12708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12709 (exit $ac_status); } &&
5d7b7554 12710 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a1aa0349
VZ
12711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12712 (eval $ac_try) 2>&5
12713 ac_status=$?
12714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12715 (exit $ac_status); }; } &&
12716 { ac_try='test -s conftest.$ac_objext'
12717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12718 (eval $ac_try) 2>&5
12719 ac_status=$?
12720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12721 (exit $ac_status); }; }; then
0093c2fc 12722 bakefile_cv_c_compiler___DECC=yes
a1aa0349
VZ
12723else
12724 echo "$as_me: failed program was:" >&5
12725sed 's/^/| /' conftest.$ac_ext >&5
12726
0093c2fc 12727bakefile_cv_c_compiler___DECC=no
a1aa0349
VZ
12728
12729fi
12730rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12731
12732
12733fi
0093c2fc
VZ
12734echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___DECC" >&5
12735echo "${ECHO_T}$bakefile_cv_c_compiler___DECC" >&6
a1aa0349
VZ
12736 ac_ext=c
12737ac_cpp='$CPP $CPPFLAGS'
12738ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12739ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12740ac_compiler_gnu=$ac_cv_c_compiler_gnu
12741
0093c2fc
VZ
12742 if test "x$bakefile_cv_c_compiler___DECC" = "xyes"; then
12743 :; COMPAQCC=yes
12744 else
12745 :;
12746 fi
12747
12748
12749 ;;
12750
12751 SunOS)
12752
12753
12754 ac_ext=c
12755ac_cpp='$CPP $CPPFLAGS'
12756ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12757ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12758ac_compiler_gnu=$ac_cv_c_compiler_gnu
12759
12760 echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
12761echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6
12762if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
12763 echo $ECHO_N "(cached) $ECHO_C" >&6
12764else
12765 cat >conftest.$ac_ext <<_ACEOF
12766/* confdefs.h. */
12767_ACEOF
12768cat confdefs.h >>conftest.$ac_ext
12769cat >>conftest.$ac_ext <<_ACEOF
12770/* end confdefs.h. */
12771
12772int
12773main ()
12774{
12775
12776 #ifndef __SUNPRO_C
12777 choke me
12778 #endif
12779
12780 ;
12781 return 0;
12782}
12783_ACEOF
12784rm -f conftest.$ac_objext
12785if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12786 (eval $ac_compile) 2>conftest.er1
12787 ac_status=$?
12788 grep -v '^ *+' conftest.er1 >conftest.err
12789 rm -f conftest.er1
12790 cat conftest.err >&5
12791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12792 (exit $ac_status); } &&
5d7b7554 12793 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
0093c2fc
VZ
12794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12795 (eval $ac_try) 2>&5
12796 ac_status=$?
12797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12798 (exit $ac_status); }; } &&
12799 { ac_try='test -s conftest.$ac_objext'
12800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12801 (eval $ac_try) 2>&5
12802 ac_status=$?
12803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12804 (exit $ac_status); }; }; then
12805 bakefile_cv_c_compiler___SUNPRO_C=yes
12806else
12807 echo "$as_me: failed program was:" >&5
12808sed 's/^/| /' conftest.$ac_ext >&5
12809
12810bakefile_cv_c_compiler___SUNPRO_C=no
12811
12812fi
12813rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12814
12815
12816fi
12817echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
12818echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6
12819 ac_ext=c
12820ac_cpp='$CPP $CPPFLAGS'
12821ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12822ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12823ac_compiler_gnu=$ac_cv_c_compiler_gnu
12824
12825 if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
12826 :; SUNCC=yes
3006edc0
VZ
12827 else
12828 :;
12829 fi
12830
12831
12832 ;;
12833 esac
ab0ad5f1 12834 fi
a9e5b1f0
MW
12835
12836
3006edc0 12837
a848cd7e
SC
12838ac_ext=c
12839ac_cpp='$CPP $CPPFLAGS'
12840ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12841ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12842ac_compiler_gnu=$ac_cv_c_compiler_gnu
12843echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
12844echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
12845# On Suns, sometimes $CPP names a directory.
12846if test -n "$CPP" && test -d "$CPP"; then
12847 CPP=
12848fi
12849if test -z "$CPP"; then
12850 if test "${ac_cv_prog_CPP+set}" = set; then
12851 echo $ECHO_N "(cached) $ECHO_C" >&6
12852else
12853 # Double quotes because CPP needs to be expanded
12854 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
12855 do
12856 ac_preproc_ok=false
12857for ac_c_preproc_warn_flag in '' yes
12858do
12859 # Use a header file that comes with gcc, so configuring glibc
12860 # with a fresh cross-compiler works.
12861 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12862 # <limits.h> exists even on freestanding compilers.
12863 # On the NeXT, cc -E runs the code through the compiler's parser,
12864 # not just through cpp. "Syntax error" is here to catch this case.
12865 cat >conftest.$ac_ext <<_ACEOF
12866/* confdefs.h. */
12867_ACEOF
12868cat confdefs.h >>conftest.$ac_ext
12869cat >>conftest.$ac_ext <<_ACEOF
12870/* end confdefs.h. */
12871#ifdef __STDC__
12872# include <limits.h>
12873#else
12874# include <assert.h>
12875#endif
ac1cb8d3 12876 Syntax error
a848cd7e
SC
12877_ACEOF
12878if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12879 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12880 ac_status=$?
12881 grep -v '^ *+' conftest.er1 >conftest.err
12882 rm -f conftest.er1
12883 cat conftest.err >&5
12884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12885 (exit $ac_status); } >/dev/null; then
12886 if test -s conftest.err; then
12887 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12888 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12889 else
12890 ac_cpp_err=
12891 fi
12892else
12893 ac_cpp_err=yes
12894fi
12895if test -z "$ac_cpp_err"; then
12896 :
12897else
12898 echo "$as_me: failed program was:" >&5
12899sed 's/^/| /' conftest.$ac_ext >&5
12900
12901 # Broken: fails on valid input.
12902continue
12903fi
12904rm -f conftest.err conftest.$ac_ext
12905
12906 # OK, works on sane cases. Now check whether non-existent headers
12907 # can be detected and how.
12908 cat >conftest.$ac_ext <<_ACEOF
12909/* confdefs.h. */
12910_ACEOF
12911cat confdefs.h >>conftest.$ac_ext
12912cat >>conftest.$ac_ext <<_ACEOF
12913/* end confdefs.h. */
12914#include <ac_nonexistent.h>
12915_ACEOF
12916if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12917 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12918 ac_status=$?
12919 grep -v '^ *+' conftest.er1 >conftest.err
12920 rm -f conftest.er1
12921 cat conftest.err >&5
12922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12923 (exit $ac_status); } >/dev/null; then
12924 if test -s conftest.err; then
12925 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12926 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12927 else
12928 ac_cpp_err=
12929 fi
12930else
12931 ac_cpp_err=yes
12932fi
12933if test -z "$ac_cpp_err"; then
12934 # Broken: success on invalid input.
12935continue
12936else
12937 echo "$as_me: failed program was:" >&5
12938sed 's/^/| /' conftest.$ac_ext >&5
12939
12940 # Passes both tests.
12941ac_preproc_ok=:
12942break
12943fi
12944rm -f conftest.err conftest.$ac_ext
12945
12946done
12947# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12948rm -f conftest.err conftest.$ac_ext
12949if $ac_preproc_ok; then
12950 break
12951fi
12952
12953 done
12954 ac_cv_prog_CPP=$CPP
12955
12956fi
12957 CPP=$ac_cv_prog_CPP
12958else
12959 ac_cv_prog_CPP=$CPP
12960fi
12961echo "$as_me:$LINENO: result: $CPP" >&5
12962echo "${ECHO_T}$CPP" >&6
12963ac_preproc_ok=false
12964for ac_c_preproc_warn_flag in '' yes
12965do
12966 # Use a header file that comes with gcc, so configuring glibc
12967 # with a fresh cross-compiler works.
12968 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12969 # <limits.h> exists even on freestanding compilers.
12970 # On the NeXT, cc -E runs the code through the compiler's parser,
12971 # not just through cpp. "Syntax error" is here to catch this case.
12972 cat >conftest.$ac_ext <<_ACEOF
12973/* confdefs.h. */
12974_ACEOF
12975cat confdefs.h >>conftest.$ac_ext
12976cat >>conftest.$ac_ext <<_ACEOF
12977/* end confdefs.h. */
12978#ifdef __STDC__
12979# include <limits.h>
12980#else
12981# include <assert.h>
12982#endif
ac1cb8d3 12983 Syntax error
a848cd7e
SC
12984_ACEOF
12985if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12986 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12987 ac_status=$?
12988 grep -v '^ *+' conftest.er1 >conftest.err
12989 rm -f conftest.er1
12990 cat conftest.err >&5
12991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12992 (exit $ac_status); } >/dev/null; then
12993 if test -s conftest.err; then
12994 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12995 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12996 else
12997 ac_cpp_err=
12998 fi
12999else
13000 ac_cpp_err=yes
13001fi
13002if test -z "$ac_cpp_err"; then
13003 :
13004else
13005 echo "$as_me: failed program was:" >&5
13006sed 's/^/| /' conftest.$ac_ext >&5
13007
13008 # Broken: fails on valid input.
13009continue
13010fi
13011rm -f conftest.err conftest.$ac_ext
13012
13013 # OK, works on sane cases. Now check whether non-existent headers
13014 # can be detected and how.
13015 cat >conftest.$ac_ext <<_ACEOF
13016/* confdefs.h. */
13017_ACEOF
13018cat confdefs.h >>conftest.$ac_ext
13019cat >>conftest.$ac_ext <<_ACEOF
13020/* end confdefs.h. */
13021#include <ac_nonexistent.h>
13022_ACEOF
13023if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13024 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13025 ac_status=$?
13026 grep -v '^ *+' conftest.er1 >conftest.err
13027 rm -f conftest.er1
13028 cat conftest.err >&5
13029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13030 (exit $ac_status); } >/dev/null; then
13031 if test -s conftest.err; then
13032 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13033 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13034 else
13035 ac_cpp_err=
13036 fi
13037else
13038 ac_cpp_err=yes
13039fi
13040if test -z "$ac_cpp_err"; then
13041 # Broken: success on invalid input.
13042continue
13043else
13044 echo "$as_me: failed program was:" >&5
13045sed 's/^/| /' conftest.$ac_ext >&5
13046
13047 # Passes both tests.
13048ac_preproc_ok=:
13049break
13050fi
13051rm -f conftest.err conftest.$ac_ext
13052
13053done
13054# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13055rm -f conftest.err conftest.$ac_ext
13056if $ac_preproc_ok; then
13057 :
13058else
13059 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
13060See \`config.log' for more details." >&5
13061echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
13062See \`config.log' for more details." >&2;}
13063 { (exit 1); exit 1; }; }
13064fi
13065
13066ac_ext=c
13067ac_cpp='$CPP $CPPFLAGS'
13068ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13069ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13070ac_compiler_gnu=$ac_cv_c_compiler_gnu
13071
13072
13073echo "$as_me:$LINENO: checking for egrep" >&5
13074echo $ECHO_N "checking for egrep... $ECHO_C" >&6
13075if test "${ac_cv_prog_egrep+set}" = set; then
13076 echo $ECHO_N "(cached) $ECHO_C" >&6
13077else
13078 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
13079 then ac_cv_prog_egrep='grep -E'
13080 else ac_cv_prog_egrep='egrep'
13081 fi
13082fi
13083echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
13084echo "${ECHO_T}$ac_cv_prog_egrep" >&6
13085 EGREP=$ac_cv_prog_egrep
13086
13087
13088if test $ac_cv_c_compiler_gnu = yes; then
13089 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
13090echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
13091if test "${ac_cv_prog_gcc_traditional+set}" = set; then
13092 echo $ECHO_N "(cached) $ECHO_C" >&6
13093else
13094 ac_pattern="Autoconf.*'x'"
13095 cat >conftest.$ac_ext <<_ACEOF
13096/* confdefs.h. */
13097_ACEOF
13098cat confdefs.h >>conftest.$ac_ext
13099cat >>conftest.$ac_ext <<_ACEOF
13100/* end confdefs.h. */
13101#include <sgtty.h>
13102Autoconf TIOCGETP
13103_ACEOF
13104if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13105 $EGREP "$ac_pattern" >/dev/null 2>&1; then
13106 ac_cv_prog_gcc_traditional=yes
13107else
13108 ac_cv_prog_gcc_traditional=no
13109fi
13110rm -f conftest*
13111
13112
13113 if test $ac_cv_prog_gcc_traditional = no; then
13114 cat >conftest.$ac_ext <<_ACEOF
13115/* confdefs.h. */
13116_ACEOF
13117cat confdefs.h >>conftest.$ac_ext
13118cat >>conftest.$ac_ext <<_ACEOF
13119/* end confdefs.h. */
13120#include <termio.h>
13121Autoconf TCGETA
13122_ACEOF
13123if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13124 $EGREP "$ac_pattern" >/dev/null 2>&1; then
13125 ac_cv_prog_gcc_traditional=yes
13126fi
13127rm -f conftest*
13128
13129 fi
13130fi
13131echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
13132echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
13133 if test $ac_cv_prog_gcc_traditional = yes; then
13134 CC="$CC -traditional"
13135 fi
13136fi
13137
13138
a848cd7e
SC
13139ac_ext=cc
13140ac_cpp='$CXXCPP $CPPFLAGS'
13141ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13142ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13143ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13144
13145
13146CXXFLAGS=${CXXFLAGS:=}
6dcfc289
DE
13147
13148
3006edc0 13149
6dcfc289 13150 ac_ext=cc
a848cd7e
SC
13151ac_cpp='$CXXCPP $CPPFLAGS'
13152ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13153ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13154ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13155if test -n "$ac_tool_prefix"; then
13156 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
13157 do
13158 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13159set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13160echo "$as_me:$LINENO: checking for $ac_word" >&5
13161echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13162if test "${ac_cv_prog_CXX+set}" = set; then
13163 echo $ECHO_N "(cached) $ECHO_C" >&6
13164else
13165 if test -n "$CXX"; then
13166 ac_cv_prog_CXX="$CXX" # Let the user override the test.
13167else
13168as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13169for as_dir in $PATH
13170do
13171 IFS=$as_save_IFS
13172 test -z "$as_dir" && as_dir=.
13173 for ac_exec_ext in '' $ac_executable_extensions; do
13174 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13175 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
13176 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13177 break 2
13178 fi
13179done
13180done
13181
13182fi
13183fi
13184CXX=$ac_cv_prog_CXX
13185if test -n "$CXX"; then
13186 echo "$as_me:$LINENO: result: $CXX" >&5
13187echo "${ECHO_T}$CXX" >&6
13188else
13189 echo "$as_me:$LINENO: result: no" >&5
13190echo "${ECHO_T}no" >&6
13191fi
13192
13193 test -n "$CXX" && break
13194 done
13195fi
13196if test -z "$CXX"; then
13197 ac_ct_CXX=$CXX
13198 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
13199do
13200 # Extract the first word of "$ac_prog", so it can be a program name with args.
13201set dummy $ac_prog; ac_word=$2
13202echo "$as_me:$LINENO: checking for $ac_word" >&5
13203echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13204if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
13205 echo $ECHO_N "(cached) $ECHO_C" >&6
13206else
13207 if test -n "$ac_ct_CXX"; then
13208 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
13209else
13210as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13211for as_dir in $PATH
13212do
13213 IFS=$as_save_IFS
13214 test -z "$as_dir" && as_dir=.
13215 for ac_exec_ext in '' $ac_executable_extensions; do
13216 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13217 ac_cv_prog_ac_ct_CXX="$ac_prog"
13218 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13219 break 2
13220 fi
13221done
13222done
13223
13224fi
13225fi
13226ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
13227if test -n "$ac_ct_CXX"; then
13228 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
13229echo "${ECHO_T}$ac_ct_CXX" >&6
13230else
13231 echo "$as_me:$LINENO: result: no" >&5
13232echo "${ECHO_T}no" >&6
13233fi
13234
13235 test -n "$ac_ct_CXX" && break
13236done
13237test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
13238
13239 CXX=$ac_ct_CXX
13240fi
13241
13242
13243# Provide some information about the compiler.
13244echo "$as_me:$LINENO:" \
13245 "checking for C++ compiler version" >&5
13246ac_compiler=`set X $ac_compile; echo $2`
13247{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
13248 (eval $ac_compiler --version </dev/null >&5) 2>&5
13249 ac_status=$?
13250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13251 (exit $ac_status); }
13252{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
13253 (eval $ac_compiler -v </dev/null >&5) 2>&5
13254 ac_status=$?
13255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13256 (exit $ac_status); }
13257{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
13258 (eval $ac_compiler -V </dev/null >&5) 2>&5
13259 ac_status=$?
13260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13261 (exit $ac_status); }
13262
13263echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
13264echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
13265if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
13266 echo $ECHO_N "(cached) $ECHO_C" >&6
13267else
13268 cat >conftest.$ac_ext <<_ACEOF
13269/* confdefs.h. */
13270_ACEOF
13271cat confdefs.h >>conftest.$ac_ext
13272cat >>conftest.$ac_ext <<_ACEOF
13273/* end confdefs.h. */
13274
13275int
13276main ()
13277{
13278#ifndef __GNUC__
13279 choke me
13280#endif
13281
13282 ;
13283 return 0;
13284}
13285_ACEOF
13286rm -f conftest.$ac_objext
13287if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13288 (eval $ac_compile) 2>conftest.er1
a848cd7e 13289 ac_status=$?
ac1cb8d3
VS
13290 grep -v '^ *+' conftest.er1 >conftest.err
13291 rm -f conftest.er1
13292 cat conftest.err >&5
a848cd7e
SC
13293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13294 (exit $ac_status); } &&
5d7b7554 13295 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13297 (eval $ac_try) 2>&5
13298 ac_status=$?
13299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13300 (exit $ac_status); }; } &&
13301 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13303 (eval $ac_try) 2>&5
13304 ac_status=$?
13305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13306 (exit $ac_status); }; }; then
13307 ac_compiler_gnu=yes
13308else
13309 echo "$as_me: failed program was:" >&5
13310sed 's/^/| /' conftest.$ac_ext >&5
13311
13312ac_compiler_gnu=no
13313fi
ac1cb8d3 13314rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13315ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
13316
13317fi
13318echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
13319echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
13320GXX=`test $ac_compiler_gnu = yes && echo yes`
13321ac_test_CXXFLAGS=${CXXFLAGS+set}
13322ac_save_CXXFLAGS=$CXXFLAGS
13323CXXFLAGS="-g"
13324echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
13325echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
13326if test "${ac_cv_prog_cxx_g+set}" = set; then
13327 echo $ECHO_N "(cached) $ECHO_C" >&6
13328else
13329 cat >conftest.$ac_ext <<_ACEOF
13330/* confdefs.h. */
13331_ACEOF
13332cat confdefs.h >>conftest.$ac_ext
13333cat >>conftest.$ac_ext <<_ACEOF
13334/* end confdefs.h. */
13335
13336int
13337main ()
13338{
13339
13340 ;
13341 return 0;
13342}
13343_ACEOF
13344rm -f conftest.$ac_objext
13345if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13346 (eval $ac_compile) 2>conftest.er1
a848cd7e 13347 ac_status=$?
ac1cb8d3
VS
13348 grep -v '^ *+' conftest.er1 >conftest.err
13349 rm -f conftest.er1
13350 cat conftest.err >&5
a848cd7e
SC
13351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13352 (exit $ac_status); } &&
5d7b7554 13353 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13355 (eval $ac_try) 2>&5
13356 ac_status=$?
13357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13358 (exit $ac_status); }; } &&
13359 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13361 (eval $ac_try) 2>&5
13362 ac_status=$?
13363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13364 (exit $ac_status); }; }; then
13365 ac_cv_prog_cxx_g=yes
13366else
13367 echo "$as_me: failed program was:" >&5
13368sed 's/^/| /' conftest.$ac_ext >&5
13369
13370ac_cv_prog_cxx_g=no
13371fi
ac1cb8d3 13372rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13373fi
13374echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
13375echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
13376if test "$ac_test_CXXFLAGS" = set; then
13377 CXXFLAGS=$ac_save_CXXFLAGS
13378elif test $ac_cv_prog_cxx_g = yes; then
13379 if test "$GXX" = yes; then
8aeeb05c 13380 CXXFLAGS="-g -O2"
a848cd7e 13381 else
8aeeb05c 13382 CXXFLAGS="-g"
a848cd7e
SC
13383 fi
13384else
13385 if test "$GXX" = yes; then
13386 CXXFLAGS="-O2"
13387 else
13388 CXXFLAGS=
13389 fi
13390fi
13391for ac_declaration in \
ac1cb8d3 13392 '' \
a848cd7e
SC
13393 'extern "C" void std::exit (int) throw (); using std::exit;' \
13394 'extern "C" void std::exit (int); using std::exit;' \
13395 'extern "C" void exit (int) throw ();' \
13396 'extern "C" void exit (int);' \
13397 'void exit (int);'
13398do
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. */
de59c161 13405$ac_declaration
ac1cb8d3 13406#include <stdlib.h>
a848cd7e
SC
13407int
13408main ()
13409{
13410exit (42);
13411 ;
13412 return 0;
13413}
13414_ACEOF
13415rm -f conftest.$ac_objext
13416if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13417 (eval $ac_compile) 2>conftest.er1
a848cd7e 13418 ac_status=$?
ac1cb8d3
VS
13419 grep -v '^ *+' conftest.er1 >conftest.err
13420 rm -f conftest.er1
13421 cat conftest.err >&5
a848cd7e
SC
13422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13423 (exit $ac_status); } &&
5d7b7554 13424 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13426 (eval $ac_try) 2>&5
13427 ac_status=$?
13428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13429 (exit $ac_status); }; } &&
13430 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13432 (eval $ac_try) 2>&5
13433 ac_status=$?
13434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13435 (exit $ac_status); }; }; then
13436 :
13437else
13438 echo "$as_me: failed program was:" >&5
13439sed 's/^/| /' conftest.$ac_ext >&5
13440
13441continue
13442fi
ac1cb8d3 13443rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13444 cat >conftest.$ac_ext <<_ACEOF
13445/* confdefs.h. */
13446_ACEOF
13447cat confdefs.h >>conftest.$ac_ext
13448cat >>conftest.$ac_ext <<_ACEOF
13449/* end confdefs.h. */
13450$ac_declaration
13451int
13452main ()
13453{
13454exit (42);
13455 ;
13456 return 0;
13457}
13458_ACEOF
13459rm -f conftest.$ac_objext
13460if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13461 (eval $ac_compile) 2>conftest.er1
a848cd7e 13462 ac_status=$?
ac1cb8d3
VS
13463 grep -v '^ *+' conftest.er1 >conftest.err
13464 rm -f conftest.er1
13465 cat conftest.err >&5
a848cd7e
SC
13466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13467 (exit $ac_status); } &&
5d7b7554 13468 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13470 (eval $ac_try) 2>&5
13471 ac_status=$?
13472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13473 (exit $ac_status); }; } &&
13474 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13476 (eval $ac_try) 2>&5
13477 ac_status=$?
13478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13479 (exit $ac_status); }; }; then
13480 break
13481else
13482 echo "$as_me: failed program was:" >&5
13483sed 's/^/| /' conftest.$ac_ext >&5
13484
13485fi
ac1cb8d3 13486rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13487done
13488rm -f conftest*
13489if test -n "$ac_declaration"; then
13490 echo '#ifdef __cplusplus' >>confdefs.h
13491 echo $ac_declaration >>confdefs.h
13492 echo '#endif' >>confdefs.h
13493fi
13494
13495ac_ext=cc
13496ac_cpp='$CXXCPP $CPPFLAGS'
13497ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13498ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13499ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13500
ab0ad5f1
VZ
13501
13502
13503 ac_ext=cc
13504ac_cpp='$CXXCPP $CPPFLAGS'
13505ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13506ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13507ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13508
13509 echo "$as_me:$LINENO: checking whether we are using the Intel C++ compiler" >&5
13510echo $ECHO_N "checking whether we are using the Intel C++ compiler... $ECHO_C" >&6
13511if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER+set}" = set; then
13512 echo $ECHO_N "(cached) $ECHO_C" >&6
13513else
13514 cat >conftest.$ac_ext <<_ACEOF
13515/* confdefs.h. */
13516_ACEOF
13517cat confdefs.h >>conftest.$ac_ext
13518cat >>conftest.$ac_ext <<_ACEOF
13519/* end confdefs.h. */
13520
13521int
13522main ()
13523{
13524
13525 #ifndef __INTEL_COMPILER
13526 choke me
13527 #endif
13528
13529 ;
13530 return 0;
13531}
13532_ACEOF
13533rm -f conftest.$ac_objext
13534if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13535 (eval $ac_compile) 2>conftest.er1
13536 ac_status=$?
13537 grep -v '^ *+' conftest.er1 >conftest.err
13538 rm -f conftest.er1
13539 cat conftest.err >&5
13540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13541 (exit $ac_status); } &&
5d7b7554 13542 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ab0ad5f1
VZ
13543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13544 (eval $ac_try) 2>&5
13545 ac_status=$?
13546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13547 (exit $ac_status); }; } &&
13548 { ac_try='test -s conftest.$ac_objext'
13549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13550 (eval $ac_try) 2>&5
13551 ac_status=$?
13552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13553 (exit $ac_status); }; }; then
13554 bakefile_cv_cxx_compiler___INTEL_COMPILER=yes
13555else
13556 echo "$as_me: failed program was:" >&5
13557sed 's/^/| /' conftest.$ac_ext >&5
13558
13559bakefile_cv_cxx_compiler___INTEL_COMPILER=no
13560
13561fi
13562rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13563
13564
13565fi
13566echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER" >&5
13567echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER" >&6
13568 ac_ext=cc
13569ac_cpp='$CXXCPP $CPPFLAGS'
13570ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13571ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13572ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13573
13574 if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER" = "xyes"; then
13575 :; INTELCXX=yes
13576 else
13577 :;
13578 fi
13579
13580
3006edc0
VZ
13581 if test "x$GCXX" != "xyes"; then
13582 if test "xCXX" = "xC"; then
13583 echo "$as_me:$LINENO: checking if the C++ compiler requires -ext o" >&5
480ccd21 13584echo $ECHO_N "checking if the C++ compiler requires -ext o... $ECHO_C" >&6
0093c2fc 13585if test "${bakefile_cv_cxx_exto+set}" = set; then
480ccd21
DE
13586 echo $ECHO_N "(cached) $ECHO_C" >&6
13587else
13588 cat >conftest.$ac_ext <<_ACEOF
13589/* confdefs.h. */
13590_ACEOF
13591cat confdefs.h >>conftest.$ac_ext
13592cat >>conftest.$ac_ext <<_ACEOF
13593/* end confdefs.h. */
13594
13595int
13596main ()
13597{
13598
13599 ;
13600 return 0;
13601}
13602_ACEOF
13603rm -f conftest.$ac_objext conftest.$ac_ext.o
13604if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13605 (eval $ac_compile) 2>&5
13606 ac_status=$?
13607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13608 (exit $ac_status); }; then
13609 for ac_file in `(ls conftest.* 2>/dev/null)`; do
13610 case $ac_file in
13611 conftest.$ac_ext.o)
0093c2fc 13612 bakefile_cv_cxx_exto="-ext o"
480ccd21
DE
13613 ;;
13614 *)
13615 ;;
13616 esac
13617done
13618else
13619 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
13620See \`config.log' for more details." >&5
13621echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
13622See \`config.log' for more details." >&2;}
13623 { (exit 1); exit 1; }; }
13624
13625fi
13626
13627rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
13628
13629fi
0093c2fc
VZ
13630echo "$as_me:$LINENO: result: $bakefile_cv_cxx_exto" >&5
13631echo "${ECHO_T}$bakefile_cv_cxx_exto" >&6
13632if test "x$bakefile_cv_cxx_exto" '!=' "x"; then
480ccd21 13633 if test "cxx" = "c"; then
0093c2fc 13634 CFLAGS="$bakefile_cv_cxx_exto $CFLAGS"
480ccd21
DE
13635 fi
13636 if test "cxx" = "cxx"; then
0093c2fc 13637 CXXFLAGS="$bakefile_cv_cxx_exto $CXXFLAGS"
480ccd21
DE
13638 fi
13639fi
13640
0093c2fc 13641 if test "x$bakefile_cv_c_exto" '!=' "x"; then
3006edc0
VZ
13642 unset ac_cv_prog_cc_g
13643 ac_test_CFLAGS=${CFLAGS+set}
13644ac_save_CFLAGS=$CFLAGS
8aeeb05c 13645CFLAGS="-g"
3006edc0
VZ
13646echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
13647echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
13648if test "${ac_cv_prog_cc_g+set}" = set; then
480ccd21
DE
13649 echo $ECHO_N "(cached) $ECHO_C" >&6
13650else
13651 cat >conftest.$ac_ext <<_ACEOF
13652/* confdefs.h. */
13653_ACEOF
13654cat confdefs.h >>conftest.$ac_ext
13655cat >>conftest.$ac_ext <<_ACEOF
13656/* end confdefs.h. */
13657
13658int
13659main ()
13660{
13661
13662 ;
13663 return 0;
13664}
13665_ACEOF
13666rm -f conftest.$ac_objext
13667if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13668 (eval $ac_compile) 2>conftest.er1
13669 ac_status=$?
13670 grep -v '^ *+' conftest.er1 >conftest.err
13671 rm -f conftest.er1
13672 cat conftest.err >&5
13673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13674 (exit $ac_status); } &&
5d7b7554 13675 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
480ccd21
DE
13676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13677 (eval $ac_try) 2>&5
13678 ac_status=$?
13679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13680 (exit $ac_status); }; } &&
13681 { ac_try='test -s conftest.$ac_objext'
13682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13683 (eval $ac_try) 2>&5
13684 ac_status=$?
13685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13686 (exit $ac_status); }; }; then
3006edc0 13687 ac_cv_prog_cc_g=yes
480ccd21
DE
13688else
13689 echo "$as_me: failed program was:" >&5
13690sed 's/^/| /' conftest.$ac_ext >&5
13691
3006edc0 13692ac_cv_prog_cc_g=no
480ccd21
DE
13693fi
13694rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13695fi
3006edc0
VZ
13696echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
13697echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
13698if test "$ac_test_CFLAGS" = set; then
13699 CFLAGS=$ac_save_CFLAGS
13700elif test $ac_cv_prog_cc_g = yes; then
13701 if test "$GCC" = yes; then
13702 CFLAGS="-g -O2"
480ccd21 13703 else
3006edc0 13704 CFLAGS="-g"
480ccd21
DE
13705 fi
13706else
3006edc0
VZ
13707 if test "$GCC" = yes; then
13708 CFLAGS="-O2"
480ccd21 13709 else
3006edc0 13710 CFLAGS=
480ccd21
DE
13711 fi
13712fi
3006edc0 13713 fi
ab0ad5f1 13714 fi
3006edc0
VZ
13715
13716 case `uname -s` in
13717 AIX*)
13718 ac_ext=cc
13719ac_cpp='$CXXCPP $CPPFLAGS'
13720ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13721ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13722ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13723
13724echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
13725echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6
0093c2fc 13726if test "${bakefile_cv_cxx_compiler_xlc+set}" = set; then
3006edc0
VZ
13727 echo $ECHO_N "(cached) $ECHO_C" >&6
13728else
13729 cat >conftest.$ac_ext <<_ACEOF
13730/* confdefs.h. */
13731_ACEOF
13732cat confdefs.h >>conftest.$ac_ext
13733cat >>conftest.$ac_ext <<_ACEOF
13734/* end confdefs.h. */
13735
13736int
13737main ()
13738{
13739#ifndef __xlC__
13740 choke me
13741#endif
13742
13743 ;
13744 return 0;
13745}
13746_ACEOF
13747rm -f conftest.$ac_objext
13748if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13749 (eval $ac_compile) 2>conftest.er1
13750 ac_status=$?
13751 grep -v '^ *+' conftest.er1 >conftest.err
13752 rm -f conftest.er1
13753 cat conftest.err >&5
13754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13755 (exit $ac_status); } &&
5d7b7554 13756 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3006edc0
VZ
13757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13758 (eval $ac_try) 2>&5
13759 ac_status=$?
13760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13761 (exit $ac_status); }; } &&
13762 { ac_try='test -s conftest.$ac_objext'
13763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13764 (eval $ac_try) 2>&5
13765 ac_status=$?
13766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13767 (exit $ac_status); }; }; then
0093c2fc 13768 bakefile_compiler_xlc=yes
3006edc0
VZ
13769else
13770 echo "$as_me: failed program was:" >&5
13771sed 's/^/| /' conftest.$ac_ext >&5
13772
0093c2fc 13773bakefile_compiler_xlc=no
3006edc0
VZ
13774fi
13775rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 13776 bakefile_cv_cxx_compiler_xlc=$bakefile_compiler_xlc
3006edc0
VZ
13777
13778fi
0093c2fc
VZ
13779echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_xlc" >&5
13780echo "${ECHO_T}$bakefile_cv_cxx_compiler_xlc" >&6
3006edc0 13781
0093c2fc 13782XLCXX=`test $bakefile_cv_cxx_compiler_xlc = yes && echo yes`
3006edc0
VZ
13783ac_ext=cc
13784ac_cpp='$CXXCPP $CPPFLAGS'
13785ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13786ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13787ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13788
13789
13790 ;;
13791
13792 Darwin)
13793 ac_ext=cc
95986553
DE
13794ac_cpp='$CXXCPP $CPPFLAGS'
13795ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13796ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13797ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13798
13799echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5
13800echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6
13801if test "${bakefile_cv_cxx_compiler_mwerks+set}" = set; then
13802 echo $ECHO_N "(cached) $ECHO_C" >&6
13803else
13804 cat >conftest.$ac_ext <<_ACEOF
13805/* confdefs.h. */
13806_ACEOF
13807cat confdefs.h >>conftest.$ac_ext
13808cat >>conftest.$ac_ext <<_ACEOF
13809/* end confdefs.h. */
13810
13811int
13812main ()
13813{
13814#ifndef __MWERKS__
13815 choke me
13816#endif
13817
13818 ;
13819 return 0;
13820}
13821_ACEOF
13822rm -f conftest.$ac_objext
13823if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13824 (eval $ac_compile) 2>conftest.er1
13825 ac_status=$?
13826 grep -v '^ *+' conftest.er1 >conftest.err
13827 rm -f conftest.er1
13828 cat conftest.err >&5
13829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13830 (exit $ac_status); } &&
5d7b7554 13831 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
95986553
DE
13832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13833 (eval $ac_try) 2>&5
13834 ac_status=$?
13835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13836 (exit $ac_status); }; } &&
13837 { ac_try='test -s conftest.$ac_objext'
13838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13839 (eval $ac_try) 2>&5
13840 ac_status=$?
13841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13842 (exit $ac_status); }; }; then
13843 bakefile_compiler_mwerks=yes
13844else
13845 echo "$as_me: failed program was:" >&5
13846sed 's/^/| /' conftest.$ac_ext >&5
13847
13848bakefile_compiler_mwerks=no
13849fi
13850rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13851 bakefile_cv_cxx_compiler_mwerks=$bakefile_compiler_mwerks
13852
13853fi
13854echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_mwerks" >&5
13855echo "${ECHO_T}$bakefile_cv_cxx_compiler_mwerks" >&6
13856
0e6fa1d9 13857MWCXX=`test $bakefile_cv_cxx_compiler_mwerks = yes && echo yes`
95986553
DE
13858ac_ext=cc
13859ac_cpp='$CXXCPP $CPPFLAGS'
13860ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13861ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13862ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13863
13864
3006edc0 13865 ac_ext=cc
9273ffba
DE
13866ac_cpp='$CXXCPP $CPPFLAGS'
13867ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13868ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13869ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13870
13871echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
13872echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6
0093c2fc 13873if test "${bakefile_cv_cxx_compiler_xlc+set}" = set; then
9273ffba
DE
13874 echo $ECHO_N "(cached) $ECHO_C" >&6
13875else
13876 cat >conftest.$ac_ext <<_ACEOF
13877/* confdefs.h. */
13878_ACEOF
13879cat confdefs.h >>conftest.$ac_ext
13880cat >>conftest.$ac_ext <<_ACEOF
13881/* end confdefs.h. */
13882
13883int
13884main ()
13885{
13886#ifndef __xlC__
13887 choke me
13888#endif
13889
13890 ;
13891 return 0;
13892}
13893_ACEOF
13894rm -f conftest.$ac_objext
13895if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13896 (eval $ac_compile) 2>conftest.er1
13897 ac_status=$?
13898 grep -v '^ *+' conftest.er1 >conftest.err
13899 rm -f conftest.er1
13900 cat conftest.err >&5
13901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13902 (exit $ac_status); } &&
5d7b7554 13903 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9273ffba
DE
13904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13905 (eval $ac_try) 2>&5
13906 ac_status=$?
13907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13908 (exit $ac_status); }; } &&
13909 { ac_try='test -s conftest.$ac_objext'
13910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13911 (eval $ac_try) 2>&5
13912 ac_status=$?
13913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13914 (exit $ac_status); }; }; then
0093c2fc 13915 bakefile_compiler_xlc=yes
9273ffba
DE
13916else
13917 echo "$as_me: failed program was:" >&5
13918sed 's/^/| /' conftest.$ac_ext >&5
13919
0093c2fc 13920bakefile_compiler_xlc=no
9273ffba
DE
13921fi
13922rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 13923 bakefile_cv_cxx_compiler_xlc=$bakefile_compiler_xlc
9273ffba
DE
13924
13925fi
0093c2fc
VZ
13926echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_xlc" >&5
13927echo "${ECHO_T}$bakefile_cv_cxx_compiler_xlc" >&6
9273ffba 13928
0093c2fc 13929XLCXX=`test $bakefile_cv_cxx_compiler_xlc = yes && echo yes`
9273ffba
DE
13930ac_ext=cc
13931ac_cpp='$CXXCPP $CPPFLAGS'
13932ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13933ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13934ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13935
13936
3006edc0
VZ
13937 ;;
13938
13939 IRIX*)
95986553 13940
6dcfc289 13941
0ad5d837
VZ
13942 ac_ext=cc
13943ac_cpp='$CXXCPP $CPPFLAGS'
13944ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13945ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13946ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13947
13948 echo "$as_me:$LINENO: checking whether we are using the SGI C++ compiler" >&5
13949echo $ECHO_N "checking whether we are using the SGI C++ compiler... $ECHO_C" >&6
13950if test "${bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION+set}" = set; then
13951 echo $ECHO_N "(cached) $ECHO_C" >&6
13952else
13953 cat >conftest.$ac_ext <<_ACEOF
13954/* confdefs.h. */
13955_ACEOF
13956cat confdefs.h >>conftest.$ac_ext
13957cat >>conftest.$ac_ext <<_ACEOF
13958/* end confdefs.h. */
13959
13960int
13961main ()
13962{
13963
13964 #ifndef _SGI_COMPILER_VERSION
13965 choke me
13966 #endif
13967
13968 ;
13969 return 0;
13970}
13971_ACEOF
13972rm -f conftest.$ac_objext
13973if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13974 (eval $ac_compile) 2>conftest.er1
13975 ac_status=$?
13976 grep -v '^ *+' conftest.er1 >conftest.err
13977 rm -f conftest.er1
13978 cat conftest.err >&5
13979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13980 (exit $ac_status); } &&
5d7b7554 13981 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0ad5d837
VZ
13982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13983 (eval $ac_try) 2>&5
13984 ac_status=$?
13985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13986 (exit $ac_status); }; } &&
13987 { ac_try='test -s conftest.$ac_objext'
13988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13989 (eval $ac_try) 2>&5
13990 ac_status=$?
13991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13992 (exit $ac_status); }; }; then
13993 bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=yes
13994else
13995 echo "$as_me: failed program was:" >&5
13996sed 's/^/| /' conftest.$ac_ext >&5
13997
13998bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=no
13999
14000fi
14001rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14002
14003
14004fi
14005echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&5
14006echo "${ECHO_T}$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&6
14007 ac_ext=cc
14008ac_cpp='$CXXCPP $CPPFLAGS'
14009ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14010ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14011ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14012
14013 if test "x$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" = "xyes"; then
14014 :; SGICXX=yes
14015 else
14016 :;
14017 fi
14018
14019
3006edc0
VZ
14020 ;;
14021
0093c2fc 14022 HP-UX*)
3006edc0
VZ
14023
14024
14025 ac_ext=cc
14026ac_cpp='$CXXCPP $CPPFLAGS'
14027ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14028ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14029ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14030
0093c2fc
VZ
14031 echo "$as_me:$LINENO: checking whether we are using the HP C++ compiler" >&5
14032echo $ECHO_N "checking whether we are using the HP C++ compiler... $ECHO_C" >&6
14033if test "${bakefile_cv_cxx_compiler___HP_aCC+set}" = set; then
3006edc0
VZ
14034 echo $ECHO_N "(cached) $ECHO_C" >&6
14035else
14036 cat >conftest.$ac_ext <<_ACEOF
14037/* confdefs.h. */
14038_ACEOF
14039cat confdefs.h >>conftest.$ac_ext
14040cat >>conftest.$ac_ext <<_ACEOF
14041/* end confdefs.h. */
14042
14043int
14044main ()
14045{
14046
0093c2fc 14047 #ifndef __HP_aCC
3006edc0
VZ
14048 choke me
14049 #endif
14050
14051 ;
14052 return 0;
14053}
14054_ACEOF
14055rm -f conftest.$ac_objext
14056if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14057 (eval $ac_compile) 2>conftest.er1
14058 ac_status=$?
14059 grep -v '^ *+' conftest.er1 >conftest.err
14060 rm -f conftest.er1
14061 cat conftest.err >&5
14062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14063 (exit $ac_status); } &&
5d7b7554 14064 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3006edc0
VZ
14065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14066 (eval $ac_try) 2>&5
14067 ac_status=$?
14068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14069 (exit $ac_status); }; } &&
14070 { ac_try='test -s conftest.$ac_objext'
14071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14072 (eval $ac_try) 2>&5
14073 ac_status=$?
14074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14075 (exit $ac_status); }; }; then
0093c2fc 14076 bakefile_cv_cxx_compiler___HP_aCC=yes
3006edc0
VZ
14077else
14078 echo "$as_me: failed program was:" >&5
14079sed 's/^/| /' conftest.$ac_ext >&5
14080
0093c2fc 14081bakefile_cv_cxx_compiler___HP_aCC=no
3006edc0
VZ
14082
14083fi
14084rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14085
14086
14087fi
0093c2fc
VZ
14088echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___HP_aCC" >&5
14089echo "${ECHO_T}$bakefile_cv_cxx_compiler___HP_aCC" >&6
3006edc0
VZ
14090 ac_ext=cc
14091ac_cpp='$CXXCPP $CPPFLAGS'
14092ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14093ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14094ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14095
0093c2fc
VZ
14096 if test "x$bakefile_cv_cxx_compiler___HP_aCC" = "xyes"; then
14097 :; HPCXX=yes
a1aa0349
VZ
14098 else
14099 :;
14100 fi
14101
14102
14103 ;;
14104
0093c2fc 14105 OSF1)
a1aa0349
VZ
14106
14107
14108 ac_ext=cc
14109ac_cpp='$CXXCPP $CPPFLAGS'
14110ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14111ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14112ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14113
0093c2fc
VZ
14114 echo "$as_me:$LINENO: checking whether we are using the Compaq C++ compiler" >&5
14115echo $ECHO_N "checking whether we are using the Compaq C++ compiler... $ECHO_C" >&6
14116if test "${bakefile_cv_cxx_compiler___DECCXX+set}" = set; then
a1aa0349
VZ
14117 echo $ECHO_N "(cached) $ECHO_C" >&6
14118else
14119 cat >conftest.$ac_ext <<_ACEOF
14120/* confdefs.h. */
14121_ACEOF
14122cat confdefs.h >>conftest.$ac_ext
14123cat >>conftest.$ac_ext <<_ACEOF
14124/* end confdefs.h. */
14125
14126int
14127main ()
14128{
14129
0093c2fc 14130 #ifndef __DECCXX
a1aa0349
VZ
14131 choke me
14132 #endif
14133
14134 ;
14135 return 0;
14136}
14137_ACEOF
14138rm -f conftest.$ac_objext
14139if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14140 (eval $ac_compile) 2>conftest.er1
14141 ac_status=$?
14142 grep -v '^ *+' conftest.er1 >conftest.err
14143 rm -f conftest.er1
14144 cat conftest.err >&5
14145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14146 (exit $ac_status); } &&
5d7b7554 14147 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
a1aa0349
VZ
14148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14149 (eval $ac_try) 2>&5
14150 ac_status=$?
14151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14152 (exit $ac_status); }; } &&
14153 { ac_try='test -s conftest.$ac_objext'
14154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14155 (eval $ac_try) 2>&5
14156 ac_status=$?
14157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14158 (exit $ac_status); }; }; then
0093c2fc 14159 bakefile_cv_cxx_compiler___DECCXX=yes
a1aa0349
VZ
14160else
14161 echo "$as_me: failed program was:" >&5
14162sed 's/^/| /' conftest.$ac_ext >&5
14163
0093c2fc 14164bakefile_cv_cxx_compiler___DECCXX=no
a1aa0349
VZ
14165
14166fi
14167rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14168
14169
14170fi
0093c2fc
VZ
14171echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___DECCXX" >&5
14172echo "${ECHO_T}$bakefile_cv_cxx_compiler___DECCXX" >&6
a1aa0349
VZ
14173 ac_ext=cc
14174ac_cpp='$CXXCPP $CPPFLAGS'
14175ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14176ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14177ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14178
0093c2fc
VZ
14179 if test "x$bakefile_cv_cxx_compiler___DECCXX" = "xyes"; then
14180 :; COMPAQCXX=yes
14181 else
14182 :;
14183 fi
14184
14185
14186 ;;
14187
14188 SunOS)
14189
14190
14191 ac_ext=cc
14192ac_cpp='$CXXCPP $CPPFLAGS'
14193ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14194ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14195ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14196
14197 echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
14198echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6
14199if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
14200 echo $ECHO_N "(cached) $ECHO_C" >&6
14201else
14202 cat >conftest.$ac_ext <<_ACEOF
14203/* confdefs.h. */
14204_ACEOF
14205cat confdefs.h >>conftest.$ac_ext
14206cat >>conftest.$ac_ext <<_ACEOF
14207/* end confdefs.h. */
14208
14209int
14210main ()
14211{
14212
14213 #ifndef __SUNPRO_CC
14214 choke me
14215 #endif
14216
14217 ;
14218 return 0;
14219}
14220_ACEOF
14221rm -f conftest.$ac_objext
14222if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14223 (eval $ac_compile) 2>conftest.er1
14224 ac_status=$?
14225 grep -v '^ *+' conftest.er1 >conftest.err
14226 rm -f conftest.er1
14227 cat conftest.err >&5
14228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14229 (exit $ac_status); } &&
5d7b7554 14230 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0093c2fc
VZ
14231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14232 (eval $ac_try) 2>&5
14233 ac_status=$?
14234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14235 (exit $ac_status); }; } &&
14236 { ac_try='test -s conftest.$ac_objext'
14237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14238 (eval $ac_try) 2>&5
14239 ac_status=$?
14240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14241 (exit $ac_status); }; }; then
14242 bakefile_cv_cxx_compiler___SUNPRO_CC=yes
14243else
14244 echo "$as_me: failed program was:" >&5
14245sed 's/^/| /' conftest.$ac_ext >&5
14246
14247bakefile_cv_cxx_compiler___SUNPRO_CC=no
14248
14249fi
14250rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14251
14252
14253fi
14254echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
14255echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6
14256 ac_ext=cc
14257ac_cpp='$CXXCPP $CPPFLAGS'
14258ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14259ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14260ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14261
14262 if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
14263 :; SUNCXX=yes
3006edc0
VZ
14264 else
14265 :;
ab0ad5f1 14266 fi
a9e5b1f0
MW
14267
14268
3006edc0
VZ
14269 ;;
14270 esac
14271 fi
14272
14273
14274
a848cd7e
SC
14275if test -n "$ac_tool_prefix"; then
14276 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14277set dummy ${ac_tool_prefix}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_RANLIB+set}" = set; then
14281 echo $ECHO_N "(cached) $ECHO_C" >&6
14282else
14283 if test -n "$RANLIB"; then
14284 ac_cv_prog_RANLIB="$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_RANLIB="${ac_tool_prefix}ranlib"
14294 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14295 break 2
14296 fi
14297done
14298done
14299
14300fi
14301fi
14302RANLIB=$ac_cv_prog_RANLIB
14303if test -n "$RANLIB"; then
14304 echo "$as_me:$LINENO: result: $RANLIB" >&5
14305echo "${ECHO_T}$RANLIB" >&6
14306else
14307 echo "$as_me:$LINENO: result: no" >&5
14308echo "${ECHO_T}no" >&6
14309fi
14310
14311fi
14312if test -z "$ac_cv_prog_RANLIB"; then
14313 ac_ct_RANLIB=$RANLIB
14314 # Extract the first word of "ranlib", so it can be a program name with args.
14315set dummy ranlib; ac_word=$2
14316echo "$as_me:$LINENO: checking for $ac_word" >&5
14317echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14318if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14319 echo $ECHO_N "(cached) $ECHO_C" >&6
14320else
14321 if test -n "$ac_ct_RANLIB"; then
14322 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14323else
14324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14325for as_dir in $PATH
14326do
14327 IFS=$as_save_IFS
14328 test -z "$as_dir" && as_dir=.
14329 for ac_exec_ext in '' $ac_executable_extensions; do
14330 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14331 ac_cv_prog_ac_ct_RANLIB="ranlib"
14332 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14333 break 2
14334 fi
14335done
14336done
14337
14338 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
14339fi
14340fi
14341ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14342if test -n "$ac_ct_RANLIB"; then
14343 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14344echo "${ECHO_T}$ac_ct_RANLIB" >&6
14345else
14346 echo "$as_me:$LINENO: result: no" >&5
14347echo "${ECHO_T}no" >&6
14348fi
14349
14350 RANLIB=$ac_ct_RANLIB
14351else
14352 RANLIB="$ac_cv_prog_RANLIB"
14353fi
14354
14355
8c80d384
DE
14356if test -n "$ac_tool_prefix"; then
14357 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14358set dummy ${ac_tool_prefix}ar; ac_word=$2
a848cd7e
SC
14359echo "$as_me:$LINENO: checking for $ac_word" >&5
14360echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14361if test "${ac_cv_prog_AR+set}" = set; then
14362 echo $ECHO_N "(cached) $ECHO_C" >&6
14363else
14364 if test -n "$AR"; then
14365 ac_cv_prog_AR="$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
8c80d384 14374 ac_cv_prog_AR="${ac_tool_prefix}ar"
a848cd7e
SC
14375 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14376 break 2
14377 fi
14378done
14379done
14380
14381fi
14382fi
14383AR=$ac_cv_prog_AR
14384if test -n "$AR"; then
14385 echo "$as_me:$LINENO: result: $AR" >&5
14386echo "${ECHO_T}$AR" >&6
14387else
14388 echo "$as_me:$LINENO: result: no" >&5
14389echo "${ECHO_T}no" >&6
14390fi
14391
8c80d384
DE
14392fi
14393if test -z "$ac_cv_prog_AR"; then
14394 ac_ct_AR=$AR
14395 # Extract the first word of "ar", so it can be a program name with args.
14396set dummy ar; ac_word=$2
14397echo "$as_me:$LINENO: checking for $ac_word" >&5
14398echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14399if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
14400 echo $ECHO_N "(cached) $ECHO_C" >&6
14401else
14402 if test -n "$ac_ct_AR"; then
14403 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14404else
14405as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14406for as_dir in $PATH
14407do
14408 IFS=$as_save_IFS
14409 test -z "$as_dir" && as_dir=.
14410 for ac_exec_ext in '' $ac_executable_extensions; do
14411 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14412 ac_cv_prog_ac_ct_AR="ar"
14413 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14414 break 2
14415 fi
14416done
14417done
14418
14419fi
14420fi
14421ac_ct_AR=$ac_cv_prog_ac_ct_AR
14422if test -n "$ac_ct_AR"; then
14423 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
14424echo "${ECHO_T}$ac_ct_AR" >&6
14425else
14426 echo "$as_me:$LINENO: result: no" >&5
14427echo "${ECHO_T}no" >&6
14428fi
14429
14430 AR=$ac_ct_AR
14431else
14432 AR="$ac_cv_prog_AR"
14433fi
14434
a848cd7e 14435if test "x$AR" = "x" ; then
77ffb593
JS
14436 { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
14437echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
a848cd7e
SC
14438 { (exit 1); exit 1; }; }
14439fi
14440
14441# Find a good install program. We prefer a C program (faster),
14442# so one script is as good as another. But avoid the broken or
14443# incompatible versions:
14444# SysV /etc/install, /usr/sbin/install
14445# SunOS /usr/etc/install
14446# IRIX /sbin/install
14447# AIX /bin/install
14448# AmigaOS /C/install, which installs bootblocks on floppy discs
14449# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
14450# AFS /usr/afsws/bin/install, which mishandles nonexistent args
14451# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 14452# OS/2's system install, which has a completely different semantic
a848cd7e
SC
14453# ./install, which can be erroneously created by make from ./install.sh.
14454echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
14455echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
14456if test -z "$INSTALL"; then
14457if test "${ac_cv_path_install+set}" = set; then
14458 echo $ECHO_N "(cached) $ECHO_C" >&6
14459else
14460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14461for as_dir in $PATH
14462do
14463 IFS=$as_save_IFS
14464 test -z "$as_dir" && as_dir=.
14465 # Account for people who put trailing slashes in PATH elements.
14466case $as_dir/ in
14467 ./ | .// | /cC/* | \
14468 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 14469 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
14470 /usr/ucb/* ) ;;
14471 *)
14472 # OSF1 and SCO ODT 3.0 have their own names for install.
14473 # Don't use installbsd from OSF since it installs stuff as root
14474 # by default.
14475 for ac_prog in ginstall scoinst install; do
14476 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
14477 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
14478 if test $ac_prog = install &&
14479 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
14480 # AIX install. It has an incompatible calling convention.
14481 :
14482 elif test $ac_prog = install &&
14483 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
14484 # program-specific install script used by HP pwplus--don't use.
14485 :
14486 else
14487 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
14488 break 3
14489 fi
14490 fi
a848cd7e
SC
14491 done
14492 done
14493 ;;
14494esac
14495done
14496
14497
14498fi
14499 if test "${ac_cv_path_install+set}" = set; then
14500 INSTALL=$ac_cv_path_install
14501 else
14502 # As a last resort, use the slow shell script. We don't cache a
14503 # path for INSTALL within a source directory, because that will
14504 # break other packages using the cache if that directory is
14505 # removed, or if the path is relative.
14506 INSTALL=$ac_install_sh
14507 fi
14508fi
14509echo "$as_me:$LINENO: result: $INSTALL" >&5
14510echo "${ECHO_T}$INSTALL" >&6
14511
14512# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
14513# It thinks the first close brace ends the variable substitution.
14514test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
14515
14516test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
14517
14518test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
14519
14520
14521case ${INSTALL} in
14522 /* ) # Absolute
14523 ;;
14524 ?:* ) # Drive letter, considered as absolute.
14525 ;;
14526 *)
14527 INSTALL=`pwd`/${INSTALL} ;;
14528esac
14529
a848cd7e
SC
14530
14531case "${host}" in
14532
cfda0ea8 14533 *-*-darwin* )
a848cd7e
SC
14534 INSTALL_PROGRAM="cp -fp"
14535 INSTALL_DATA="cp -fp"
14536 ;;
14537 *)
14538 ;;
14539esac
14540
8c80d384
DE
14541if test -n "$ac_tool_prefix"; then
14542 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14543set dummy ${ac_tool_prefix}strip; ac_word=$2
a848cd7e
SC
14544echo "$as_me:$LINENO: checking for $ac_word" >&5
14545echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14546if test "${ac_cv_prog_STRIP+set}" = set; then
14547 echo $ECHO_N "(cached) $ECHO_C" >&6
14548else
14549 if test -n "$STRIP"; then
14550 ac_cv_prog_STRIP="$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
8c80d384 14559 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
a848cd7e
SC
14560 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14561 break 2
14562 fi
14563done
14564done
14565
a848cd7e
SC
14566fi
14567fi
14568STRIP=$ac_cv_prog_STRIP
14569if test -n "$STRIP"; then
14570 echo "$as_me:$LINENO: result: $STRIP" >&5
14571echo "${ECHO_T}$STRIP" >&6
14572else
14573 echo "$as_me:$LINENO: result: no" >&5
14574echo "${ECHO_T}no" >&6
14575fi
14576
8c80d384
DE
14577fi
14578if test -z "$ac_cv_prog_STRIP"; then
14579 ac_ct_STRIP=$STRIP
14580 # Extract the first word of "strip", so it can be a program name with args.
14581set dummy strip; ac_word=$2
14582echo "$as_me:$LINENO: checking for $ac_word" >&5
14583echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14584if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14585 echo $ECHO_N "(cached) $ECHO_C" >&6
14586else
14587 if test -n "$ac_ct_STRIP"; then
14588 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14589else
14590as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14591for as_dir in $PATH
14592do
14593 IFS=$as_save_IFS
14594 test -z "$as_dir" && as_dir=.
14595 for ac_exec_ext in '' $ac_executable_extensions; do
14596 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14597 ac_cv_prog_ac_ct_STRIP="strip"
14598 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14599 break 2
14600 fi
14601done
14602done
14603
14604 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP="true"
14605fi
14606fi
14607ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14608if test -n "$ac_ct_STRIP"; then
14609 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14610echo "${ECHO_T}$ac_ct_STRIP" >&6
14611else
14612 echo "$as_me:$LINENO: result: no" >&5
14613echo "${ECHO_T}no" >&6
14614fi
14615
14616 STRIP=$ac_ct_STRIP
14617else
14618 STRIP="$ac_cv_prog_STRIP"
14619fi
14620
14621
14622if test "$wxUSE_WINE" = "yes"; then
14623 if test -n "$ac_tool_prefix"; then
14624 # Extract the first word of "${ac_tool_prefix}wrc", so it can be a program name with args.
14625set dummy ${ac_tool_prefix}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_WINDRES+set}" = set; then
8c80d384
DE
14629 echo $ECHO_N "(cached) $ECHO_C" >&6
14630else
8ced02f6
DE
14631 if test -n "$WINDRES"; then
14632 ac_cv_prog_WINDRES="$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_WINDRES="${ac_tool_prefix}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
14650WINDRES=$ac_cv_prog_WINDRES
14651if test -n "$WINDRES"; then
14652 echo "$as_me:$LINENO: result: $WINDRES" >&5
14653echo "${ECHO_T}$WINDRES" >&6
8c80d384
DE
14654else
14655 echo "$as_me:$LINENO: result: no" >&5
14656echo "${ECHO_T}no" >&6
14657fi
14658
14659fi
8ced02f6
DE
14660if test -z "$ac_cv_prog_WINDRES"; then
14661 ac_ct_WINDRES=$WINDRES
8c80d384
DE
14662 # Extract the first word of "wrc", so it can be a program name with args.
14663set dummy wrc; ac_word=$2
14664echo "$as_me:$LINENO: checking for $ac_word" >&5
14665echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 14666if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
8c80d384
DE
14667 echo $ECHO_N "(cached) $ECHO_C" >&6
14668else
8ced02f6
DE
14669 if test -n "$ac_ct_WINDRES"; then
14670 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
8c80d384
DE
14671else
14672as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14673for as_dir in $PATH
14674do
14675 IFS=$as_save_IFS
14676 test -z "$as_dir" && as_dir=.
14677 for ac_exec_ext in '' $ac_executable_extensions; do
14678 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 14679 ac_cv_prog_ac_ct_WINDRES="wrc"
8c80d384
DE
14680 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14681 break 2
14682 fi
14683done
14684done
14685
14686fi
14687fi
8ced02f6
DE
14688ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
14689if test -n "$ac_ct_WINDRES"; then
14690 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
14691echo "${ECHO_T}$ac_ct_WINDRES" >&6
8c80d384
DE
14692else
14693 echo "$as_me:$LINENO: result: no" >&5
14694echo "${ECHO_T}no" >&6
14695fi
14696
8ced02f6 14697 WINDRES=$ac_ct_WINDRES
8c80d384 14698else
8ced02f6 14699 WINDRES="$ac_cv_prog_WINDRES"
8c80d384
DE
14700fi
14701
004ee6da 14702 RESCOMP="$WINDRES"
8c80d384
DE
14703else
14704 case "${host}" in
14705 *-*-cygwin* | *-*-mingw32* )
004ee6da
RL
14706 if test -n "$ac_tool_prefix"; then
14707 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
14708set dummy ${ac_tool_prefix}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_WINDRES+set}" = set; then
14712 echo $ECHO_N "(cached) $ECHO_C" >&6
14713else
14714 if test -n "$WINDRES"; then
14715 ac_cv_prog_WINDRES="$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_WINDRES="${ac_tool_prefix}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
14733WINDRES=$ac_cv_prog_WINDRES
14734if test -n "$WINDRES"; then
14735 echo "$as_me:$LINENO: result: $WINDRES" >&5
14736echo "${ECHO_T}$WINDRES" >&6
14737else
14738 echo "$as_me:$LINENO: result: no" >&5
14739echo "${ECHO_T}no" >&6
14740fi
14741
14742fi
14743if test -z "$ac_cv_prog_WINDRES"; then
14744 ac_ct_WINDRES=$WINDRES
14745 # Extract the first word of "windres", so it can be a program name with args.
14746set dummy windres; ac_word=$2
14747echo "$as_me:$LINENO: checking for $ac_word" >&5
14748echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14749if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
14750 echo $ECHO_N "(cached) $ECHO_C" >&6
14751else
14752 if test -n "$ac_ct_WINDRES"; then
14753 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
14754else
14755as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14756for as_dir in $PATH
14757do
14758 IFS=$as_save_IFS
14759 test -z "$as_dir" && as_dir=.
14760 for ac_exec_ext in '' $ac_executable_extensions; do
14761 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14762 ac_cv_prog_ac_ct_WINDRES="windres"
14763 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14764 break 2
14765 fi
14766done
14767done
14768
14769fi
14770fi
14771ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
14772if test -n "$ac_ct_WINDRES"; then
14773 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
14774echo "${ECHO_T}$ac_ct_WINDRES" >&6
14775else
14776 echo "$as_me:$LINENO: result: no" >&5
14777echo "${ECHO_T}no" >&6
14778fi
14779
14780 WINDRES=$ac_ct_WINDRES
14781else
14782 WINDRES="$ac_cv_prog_WINDRES"
14783fi
14784
14785 RESCOMP="$WINDRES"
14786 if test -n "$ac_tool_prefix"; then
8c80d384
DE
14787 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
14788set dummy ${ac_tool_prefix}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_DLLTOOL+set}" = set; then
14792 echo $ECHO_N "(cached) $ECHO_C" >&6
14793else
14794 if test -n "$DLLTOOL"; then
14795 ac_cv_prog_DLLTOOL="$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_DLLTOOL="${ac_tool_prefix}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
14813DLLTOOL=$ac_cv_prog_DLLTOOL
14814if test -n "$DLLTOOL"; then
14815 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
14816echo "${ECHO_T}$DLLTOOL" >&6
14817else
14818 echo "$as_me:$LINENO: result: no" >&5
14819echo "${ECHO_T}no" >&6
14820fi
14821
14822fi
14823if test -z "$ac_cv_prog_DLLTOOL"; then
14824 ac_ct_DLLTOOL=$DLLTOOL
14825 # Extract the first word of "dlltool", so it can be a program name with args.
14826set dummy dlltool; ac_word=$2
14827echo "$as_me:$LINENO: checking for $ac_word" >&5
14828echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14829if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
14830 echo $ECHO_N "(cached) $ECHO_C" >&6
14831else
14832 if test -n "$ac_ct_DLLTOOL"; then
14833 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
14834else
14835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14836for as_dir in $PATH
14837do
14838 IFS=$as_save_IFS
14839 test -z "$as_dir" && as_dir=.
14840 for ac_exec_ext in '' $ac_executable_extensions; do
14841 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14842 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
14843 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14844 break 2
14845 fi
14846done
14847done
14848
14849fi
14850fi
14851ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
14852if test -n "$ac_ct_DLLTOOL"; then
14853 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
14854echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
14855else
14856 echo "$as_me:$LINENO: result: no" >&5
14857echo "${ECHO_T}no" >&6
14858fi
14859
14860 DLLTOOL=$ac_ct_DLLTOOL
14861else
14862 DLLTOOL="$ac_cv_prog_DLLTOOL"
14863fi
14864
14865 ;;
14866 esac
14867fi
a848cd7e
SC
14868
14869echo "$as_me:$LINENO: checking if make is GNU make" >&5
14870echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
14871if test "${wx_cv_prog_makeisgnu+set}" = set; then
14872 echo $ECHO_N "(cached) $ECHO_C" >&6
14873else
14874
14875 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
14876 egrep -s GNU > /dev/null); then
14877 wx_cv_prog_makeisgnu="yes"
14878 else
14879 wx_cv_prog_makeisgnu="no"
14880 fi
14881
14882fi
14883echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
14884echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
14885
14886if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
14887 IF_GNU_MAKE=""
14888else
14889 IF_GNU_MAKE="#"
14890fi
14891
14892
14893
14894if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
14895echo "$as_me:$LINENO: checking if make supports VPATH" >&5
14896echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
14897if test "${wx_cv_prog_makevpath+set}" = set; then
14898 echo $ECHO_N "(cached) $ECHO_C" >&6
14899else
14900
14901cat - << EOF > confMake
14902check : file
14903 cp \$? \$@
14904 cp \$? final_file
14905EOF
14906
14907if test ! -d sub ; then
14908 mkdir sub
14909fi
14910echo dummy > sub/file
14911${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
14912RESULT=$?
14913rm -f sub/file check final_file confMake
14914rmdir sub
14915if test "$RESULT" = 0; then
14916 wx_cv_prog_makevpath="yes"
14917else
14918 wx_cv_prog_makevpath="no"
14919fi
14920
14921fi
14922echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
14923echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
14924
14925if test "x$wx_cv_prog_makevpath" != "xyes"; then
14926{ { echo "$as_me:$LINENO: error:
14927You need a make-utility that is able to use the variable
14928VPATH correctly.
14929If your version of make does not support VPATH correctly,
14930please install GNU-make (possibly as gmake), and start
14931configure with the following command:
14932export MAKE=gmake; ./configure for sh-type shells
14933setenv MAKE gmake; ./configure for csh-type shells
14934Also please do remember to use gmake in this case every time
14935you are trying to compile.
14936" >&5
14937echo "$as_me: error:
14938You need a make-utility that is able to use the variable
14939VPATH correctly.
14940If your version of make does not support VPATH correctly,
14941please install GNU-make (possibly as gmake), and start
14942configure with the following command:
14943export MAKE=gmake; ./configure for sh-type shells
14944setenv MAKE gmake; ./configure for csh-type shells
14945Also please do remember to use gmake in this case every time
14946you are trying to compile.
14947" >&2;}
14948 { (exit 1); exit 1; }; }
14949fi fi
14950echo "$as_me:$LINENO: checking whether ln -s works" >&5
14951echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
14952LN_S=$as_ln_s
14953if test "$LN_S" = "ln -s"; then
14954 echo "$as_me:$LINENO: result: yes" >&5
14955echo "${ECHO_T}yes" >&6
14956else
14957 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
14958echo "${ECHO_T}no, using $LN_S" >&6
14959fi
14960
14961
bcaab0f9 14962
a848cd7e 14963
2113bc77 14964if test "x$XLCXX" = "xyes" -a "x$USE_AIX" = "x1"; then
c92ad099 14965 CXXFLAGS="-qunique $CXXFLAGS"
9273ffba
DE
14966fi
14967
4d7ec9f1
DE
14968case "${host}" in
14969 powerpc-*-darwin* )
14970 echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5
14971echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6
14972 cat >conftest.$ac_ext <<_ACEOF
14973/* confdefs.h. */
14974_ACEOF
14975cat confdefs.h >>conftest.$ac_ext
14976cat >>conftest.$ac_ext <<_ACEOF
14977/* end confdefs.h. */
14978
14979int
14980main ()
14981{
14982#ifndef __POWERPC__
14983 choke me for lack of PowerPC
14984#endif
14985
14986 ;
14987 return 0;
14988}
14989_ACEOF
14990rm -f conftest.$ac_objext
14991if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14992 (eval $ac_compile) 2>conftest.er1
14993 ac_status=$?
14994 grep -v '^ *+' conftest.er1 >conftest.err
14995 rm -f conftest.er1
14996 cat conftest.err >&5
14997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14998 (exit $ac_status); } &&
5d7b7554 14999 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
15000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15001 (eval $ac_try) 2>&5
15002 ac_status=$?
15003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15004 (exit $ac_status); }; } &&
15005 { ac_try='test -s conftest.$ac_objext'
15006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15007 (eval $ac_try) 2>&5
15008 ac_status=$?
15009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15010 (exit $ac_status); }; }; then
15011 echo "$as_me:$LINENO: result: yes" >&5
15012echo "${ECHO_T}yes" >&6
15013else
15014 echo "$as_me: failed program was:" >&5
15015sed 's/^/| /' conftest.$ac_ext >&5
15016
15017echo "$as_me:$LINENO: result: no" >&5
15018echo "${ECHO_T}no" >&6
15019 cat >>confdefs.h <<\_ACEOF
15020#define __POWERPC__ 1
15021_ACEOF
15022
15023
15024fi
15025rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
cfda0ea8
DE
15026 ;;
15027esac
15028
15029case "${host}" in
15030 *-*-darwin* )
4d7ec9f1
DE
15031 echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5
15032echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6
15033 cat >conftest.$ac_ext <<_ACEOF
15034/* confdefs.h. */
15035_ACEOF
15036cat confdefs.h >>conftest.$ac_ext
15037cat >>conftest.$ac_ext <<_ACEOF
15038/* end confdefs.h. */
15039#include <CoreFoundation/CFBase.h>
15040
15041int
15042main ()
15043{
15044
15045 ;
15046 return 0;
15047}
15048_ACEOF
15049rm -f conftest.$ac_objext
15050if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15051 (eval $ac_compile) 2>conftest.er1
15052 ac_status=$?
15053 grep -v '^ *+' conftest.er1 >conftest.err
15054 rm -f conftest.er1
15055 cat conftest.err >&5
15056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15057 (exit $ac_status); } &&
5d7b7554 15058 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
15059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15060 (eval $ac_try) 2>&5
15061 ac_status=$?
15062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15063 (exit $ac_status); }; } &&
15064 { ac_try='test -s conftest.$ac_objext'
15065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15066 (eval $ac_try) 2>&5
15067 ac_status=$?
15068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15069 (exit $ac_status); }; }; then
15070 echo "$as_me:$LINENO: result: yes" >&5
15071echo "${ECHO_T}yes" >&6
15072else
15073 echo "$as_me: failed program was:" >&5
15074sed 's/^/| /' conftest.$ac_ext >&5
15075
15076echo "$as_me:$LINENO: result: no" >&5
15077echo "${ECHO_T}no" >&6
15078 echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5
15079echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6
15080 cat >conftest.$ac_ext <<_ACEOF
15081/* confdefs.h. */
15082_ACEOF
15083cat confdefs.h >>conftest.$ac_ext
15084cat >>conftest.$ac_ext <<_ACEOF
15085/* end confdefs.h. */
15086#define __CF_USE_FRAMEWORK_INCLUDES__
15087#include <CoreFoundation/CFBase.h>
15088
15089int
15090main ()
15091{
15092
15093 ;
15094 return 0;
15095}
15096_ACEOF
15097rm -f conftest.$ac_objext
15098if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15099 (eval $ac_compile) 2>conftest.er1
15100 ac_status=$?
15101 grep -v '^ *+' conftest.er1 >conftest.err
15102 rm -f conftest.er1
15103 cat conftest.err >&5
15104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15105 (exit $ac_status); } &&
5d7b7554 15106 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
15107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15108 (eval $ac_try) 2>&5
15109 ac_status=$?
15110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15111 (exit $ac_status); }; } &&
15112 { ac_try='test -s conftest.$ac_objext'
15113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15114 (eval $ac_try) 2>&5
15115 ac_status=$?
15116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15117 (exit $ac_status); }; }; then
15118 echo "$as_me:$LINENO: result: yes" >&5
15119echo "${ECHO_T}yes" >&6
c92ad099 15120 CPPFLAGS="-D__CF_USE_FRAMEWORK_INCLUDES__ $CPPFLAGS"
4d7ec9f1
DE
15121else
15122 echo "$as_me: failed program was:" >&5
15123sed 's/^/| /' conftest.$ac_ext >&5
15124
15125{ { echo "$as_me:$LINENO: error: no. CoreFoundation not available.
15126See \`config.log' for more details." >&5
15127echo "$as_me: error: no. CoreFoundation not available.
15128See \`config.log' for more details." >&2;}
15129 { (exit 1); exit 1; }; }
15130
15131fi
15132rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15133
15134
15135fi
15136rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15137 ;;
15138esac
15139
a848cd7e
SC
15140case "${host}" in
15141 *-pc-os2_emx | *-pc-os2-emx )
6ba87b06
SN
15142 ac_ext=c
15143ac_cpp='$CPP $CPPFLAGS'
15144ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15145ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15146ac_compiler_gnu=$ac_cv_c_compiler_gnu
15147
15148 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
a848cd7e
SC
15149 echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
15150echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
15151if test "${ac_cv_lib_cExt_drand48+set}" = set; then
15152 echo $ECHO_N "(cached) $ECHO_C" >&6
15153else
15154 ac_check_lib_save_LIBS=$LIBS
15155LIBS="-lcExt $LIBS"
15156cat >conftest.$ac_ext <<_ACEOF
15157/* confdefs.h. */
15158_ACEOF
15159cat confdefs.h >>conftest.$ac_ext
15160cat >>conftest.$ac_ext <<_ACEOF
15161/* end confdefs.h. */
15162
15163/* Override any gcc2 internal prototype to avoid an error. */
15164#ifdef __cplusplus
15165extern "C"
15166#endif
15167/* We use char because int might match the return type of a gcc2
15168 builtin and then its argument prototype would still apply. */
15169char drand48 ();
15170int
15171main ()
15172{
15173drand48 ();
15174 ;
15175 return 0;
15176}
15177_ACEOF
15178rm -f conftest.$ac_objext conftest$ac_exeext
15179if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 15180 (eval $ac_link) 2>conftest.er1
a848cd7e 15181 ac_status=$?
ac1cb8d3
VS
15182 grep -v '^ *+' conftest.er1 >conftest.err
15183 rm -f conftest.er1
15184 cat conftest.err >&5
a848cd7e
SC
15185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15186 (exit $ac_status); } &&
5d7b7554 15187 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15189 (eval $ac_try) 2>&5
15190 ac_status=$?
15191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15192 (exit $ac_status); }; } &&
15193 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
15194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15195 (eval $ac_try) 2>&5
15196 ac_status=$?
15197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15198 (exit $ac_status); }; }; then
15199 ac_cv_lib_cExt_drand48=yes
15200else
15201 echo "$as_me: failed program was:" >&5
15202sed 's/^/| /' conftest.$ac_ext >&5
15203
15204ac_cv_lib_cExt_drand48=no
15205fi
ac1cb8d3
VS
15206rm -f conftest.err conftest.$ac_objext \
15207 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
15208LIBS=$ac_check_lib_save_LIBS
15209fi
15210echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
15211echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
15212if test $ac_cv_lib_cExt_drand48 = yes; then
15213 LIBS="$LIBS -lcExt"
15214fi
15215
15216 else
15217 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
15218 fi
69120ee4
VZ
15219 echo "$as_me:$LINENO: checking for gcc/libc version" >&5
15220echo $ECHO_N "checking for gcc/libc version... $ECHO_C" >&6
a848cd7e
SC
15221if test "${wx_cv_gccversion+set}" = set; then
15222 echo $ECHO_N "(cached) $ECHO_C" >&6
15223else
15224
391a765e
VS
15225 if test "$cross_compiling" = yes; then
15226 wx_cv_gccversion="EMX2"
15227
15228else
15229 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
15230/* confdefs.h. */
15231_ACEOF
15232cat confdefs.h >>conftest.$ac_ext
15233cat >>conftest.$ac_ext <<_ACEOF
15234/* end confdefs.h. */
15235
391a765e 15236 #include <stdio.h>
a848cd7e 15237
391a765e
VS
15238 int main()
15239 {
15240 FILE *f=fopen("conftestval", "w");
15241 if (!f) exit(1);
15242 fprintf(f,
a848cd7e 15243 #if (__GNUC__ < 3)
391a765e
VS
15244 "EMX2"
15245 #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
15246 "EMX3"
15247 #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2)
15248 "Innotek5"
15249 #else
15250 "Innotek6"
a848cd7e 15251 #endif
391a765e
VS
15252 );
15253 exit(0);
15254 }
a848cd7e 15255
a848cd7e 15256_ACEOF
391a765e
VS
15257rm -f conftest$ac_exeext
15258if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15259 (eval $ac_link) 2>&5
ac1cb8d3
VS
15260 ac_status=$?
15261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
391a765e 15262 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
a848cd7e
SC
15263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15264 (eval $ac_try) 2>&5
15265 ac_status=$?
15266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15267 (exit $ac_status); }; }; then
391a765e 15268 wx_cv_gccversion=`cat conftestval`
a848cd7e 15269else
391a765e
VS
15270 echo "$as_me: program exited with status $ac_status" >&5
15271echo "$as_me: failed program was:" >&5
a848cd7e
SC
15272sed 's/^/| /' conftest.$ac_ext >&5
15273
391a765e
VS
15274( exit $ac_status )
15275wx_cv_gccversion="EMX2"
a848cd7e 15276fi
391a765e 15277rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 15278fi
a848cd7e
SC
15279
15280fi
15281echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
15282echo "${ECHO_T}$wx_cv_gccversion" >&6
6ba87b06
SN
15283 ac_ext=cc
15284ac_cpp='$CXXCPP $CPPFLAGS'
15285ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15286ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15287ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15288
391a765e 15289 if test "$wx_cv_gccversion" = "EMX2"; then
a848cd7e
SC
15290 LIBS="$LIBS -lstdcpp"
15291 LDFLAGS="$LDFLAGS -Zsysv-signals"
15292 else
391a765e 15293 if test "$wx_cv_gccversion" = "EMX3"; then
ddd14b14 15294 LIBS="$LIBS -lstdcxx -lgcc"
a848cd7e
SC
15295 LDFLAGS="$LDFLAGS -Zsysv-signals"
15296 else
15297 LIBS="$LIBS -lstdc++"
15298 fi
15299 fi
94acd38e
DE
15300 if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then
15301 { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5
15302echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;}
15303 wxUSE_OMF=yes
2da0c077 15304 enable_omf=yes
a848cd7e
SC
15305 fi
15306 ;;
15307 *)
15308
95986553 15309 echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
a848cd7e
SC
15310echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6
15311if test "${ac_cv_string_strcasecmp+set}" = set; then
15312 echo $ECHO_N "(cached) $ECHO_C" >&6
15313else
15314
15315 cat >conftest.$ac_ext <<_ACEOF
15316/* confdefs.h. */
15317_ACEOF
15318cat confdefs.h >>conftest.$ac_ext
15319cat >>conftest.$ac_ext <<_ACEOF
15320/* end confdefs.h. */
15321
15322 #include <string.h>
15323
15324int
15325main ()
15326{
15327
15328 strcasecmp("foo", "bar");
15329
15330 ;
15331 return 0;
15332}
15333_ACEOF
15334rm -f conftest.$ac_objext conftest$ac_exeext
15335if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 15336 (eval $ac_link) 2>conftest.er1
a848cd7e 15337 ac_status=$?
ac1cb8d3
VS
15338 grep -v '^ *+' conftest.er1 >conftest.err
15339 rm -f conftest.er1
15340 cat conftest.err >&5
a848cd7e
SC
15341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15342 (exit $ac_status); } &&
5d7b7554 15343 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15345 (eval $ac_try) 2>&5
15346 ac_status=$?
15347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15348 (exit $ac_status); }; } &&
15349 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
15350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15351 (eval $ac_try) 2>&5
15352 ac_status=$?
15353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15354 (exit $ac_status); }; }; then
15355 ac_cv_string_strcasecmp=yes
15356else
15357 echo "$as_me: failed program was:" >&5
15358sed 's/^/| /' conftest.$ac_ext >&5
15359
15360ac_cv_string_strcasecmp=no
15361
15362fi
ac1cb8d3
VS
15363rm -f conftest.err conftest.$ac_objext \
15364 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
15365
15366fi
15367echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
15368echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6
15369
15370 if test x"$ac_cv_string_strcasecmp" = "xyes"; then
15371 cat >>confdefs.h <<\_ACEOF
15372#define HAVE_STRCASECMP_IN_STRING_H 1
15373_ACEOF
15374
15375 else
15376 echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
15377echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6
15378if test "${ac_cv_strings_strcasecmp+set}" = set; then
15379 echo $ECHO_N "(cached) $ECHO_C" >&6
15380else
15381
15382 cat >conftest.$ac_ext <<_ACEOF
15383/* confdefs.h. */
15384_ACEOF
15385cat confdefs.h >>conftest.$ac_ext
15386cat >>conftest.$ac_ext <<_ACEOF
15387/* end confdefs.h. */
15388
15389 #include <strings.h>
15390
15391int
15392main ()
15393{
15394
15395 strcasecmp("foo", "bar");
15396
15397 ;
15398 return 0;
15399}
15400_ACEOF
15401rm -f conftest.$ac_objext conftest$ac_exeext
15402if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 15403 (eval $ac_link) 2>conftest.er1
a848cd7e 15404 ac_status=$?
ac1cb8d3
VS
15405 grep -v '^ *+' conftest.er1 >conftest.err
15406 rm -f conftest.er1
15407 cat conftest.err >&5
a848cd7e
SC
15408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15409 (exit $ac_status); } &&
5d7b7554 15410 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15412 (eval $ac_try) 2>&5
15413 ac_status=$?
15414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15415 (exit $ac_status); }; } &&
15416 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
15417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15418 (eval $ac_try) 2>&5
15419 ac_status=$?
15420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15421 (exit $ac_status); }; }; then
15422 ac_cv_strings_strcasecmp=yes
15423else
15424 echo "$as_me: failed program was:" >&5
15425sed 's/^/| /' conftest.$ac_ext >&5
15426
15427ac_cv_strings_strcasecmp=no
15428
15429fi
ac1cb8d3
VS
15430rm -f conftest.err conftest.$ac_objext \
15431 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
15432
15433fi
15434echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
15435echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6
15436
0c3c69fc 15437 if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
a848cd7e
SC
15438 cat >>confdefs.h <<\_ACEOF
15439#define HAVE_STRCASECMP_IN_STRINGS_H 1
15440_ACEOF
15441
15442 else
15443 { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
15444echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
15445 { (exit 1); exit 1; }; }
15446 fi
15447 fi
15448
a848cd7e
SC
15449 ;;
15450esac
15451
15452
5d7b7554
VZ
15453ac_ext=cc
15454ac_cpp='$CXXCPP $CPPFLAGS'
15455ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15456ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15457ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15458echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
15459echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
15460if test -z "$CXXCPP"; then
15461 if test "${ac_cv_prog_CXXCPP+set}" = set; then
15462 echo $ECHO_N "(cached) $ECHO_C" >&6
15463else
15464 # Double quotes because CXXCPP needs to be expanded
15465 for CXXCPP in "$CXX -E" "/lib/cpp"
15466 do
15467 ac_preproc_ok=false
15468for ac_cxx_preproc_warn_flag in '' yes
15469do
15470 # Use a header file that comes with gcc, so configuring glibc
15471 # with a fresh cross-compiler works.
15472 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15473 # <limits.h> exists even on freestanding compilers.
15474 # On the NeXT, cc -E runs the code through the compiler's parser,
15475 # not just through cpp. "Syntax error" is here to catch this case.
15476 cat >conftest.$ac_ext <<_ACEOF
15477/* confdefs.h. */
15478_ACEOF
15479cat confdefs.h >>conftest.$ac_ext
15480cat >>conftest.$ac_ext <<_ACEOF
15481/* end confdefs.h. */
15482#ifdef __STDC__
15483# include <limits.h>
15484#else
15485# include <assert.h>
15486#endif
15487 Syntax error
15488_ACEOF
15489if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15490 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15491 ac_status=$?
15492 grep -v '^ *+' conftest.er1 >conftest.err
15493 rm -f conftest.er1
15494 cat conftest.err >&5
15495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15496 (exit $ac_status); } >/dev/null; then
15497 if test -s conftest.err; then
15498 ac_cpp_err=$ac_cxx_preproc_warn_flag
15499 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15500 else
15501 ac_cpp_err=
15502 fi
15503else
15504 ac_cpp_err=yes
15505fi
15506if test -z "$ac_cpp_err"; then
15507 :
15508else
15509 echo "$as_me: failed program was:" >&5
15510sed 's/^/| /' conftest.$ac_ext >&5
15511
15512 # Broken: fails on valid input.
15513continue
15514fi
15515rm -f conftest.err conftest.$ac_ext
15516
15517 # OK, works on sane cases. Now check whether non-existent headers
15518 # can be detected and how.
15519 cat >conftest.$ac_ext <<_ACEOF
15520/* confdefs.h. */
15521_ACEOF
15522cat confdefs.h >>conftest.$ac_ext
15523cat >>conftest.$ac_ext <<_ACEOF
15524/* end confdefs.h. */
15525#include <ac_nonexistent.h>
15526_ACEOF
15527if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15528 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15529 ac_status=$?
15530 grep -v '^ *+' conftest.er1 >conftest.err
15531 rm -f conftest.er1
15532 cat conftest.err >&5
15533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15534 (exit $ac_status); } >/dev/null; then
15535 if test -s conftest.err; then
15536 ac_cpp_err=$ac_cxx_preproc_warn_flag
15537 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15538 else
15539 ac_cpp_err=
15540 fi
15541else
15542 ac_cpp_err=yes
15543fi
15544if test -z "$ac_cpp_err"; then
15545 # Broken: success on invalid input.
15546continue
15547else
15548 echo "$as_me: failed program was:" >&5
15549sed 's/^/| /' conftest.$ac_ext >&5
15550
15551 # Passes both tests.
15552ac_preproc_ok=:
15553break
15554fi
15555rm -f conftest.err conftest.$ac_ext
15556
15557done
15558# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15559rm -f conftest.err conftest.$ac_ext
15560if $ac_preproc_ok; then
15561 break
15562fi
15563
15564 done
15565 ac_cv_prog_CXXCPP=$CXXCPP
15566
15567fi
15568 CXXCPP=$ac_cv_prog_CXXCPP
15569else
15570 ac_cv_prog_CXXCPP=$CXXCPP
15571fi
15572echo "$as_me:$LINENO: result: $CXXCPP" >&5
15573echo "${ECHO_T}$CXXCPP" >&6
15574ac_preproc_ok=false
15575for ac_cxx_preproc_warn_flag in '' yes
15576do
15577 # Use a header file that comes with gcc, so configuring glibc
15578 # with a fresh cross-compiler works.
15579 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15580 # <limits.h> exists even on freestanding compilers.
15581 # On the NeXT, cc -E runs the code through the compiler's parser,
15582 # not just through cpp. "Syntax error" is here to catch this case.
15583 cat >conftest.$ac_ext <<_ACEOF
15584/* confdefs.h. */
15585_ACEOF
15586cat confdefs.h >>conftest.$ac_ext
15587cat >>conftest.$ac_ext <<_ACEOF
15588/* end confdefs.h. */
15589#ifdef __STDC__
15590# include <limits.h>
15591#else
15592# include <assert.h>
15593#endif
15594 Syntax error
15595_ACEOF
15596if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15597 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15598 ac_status=$?
15599 grep -v '^ *+' conftest.er1 >conftest.err
15600 rm -f conftest.er1
15601 cat conftest.err >&5
15602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15603 (exit $ac_status); } >/dev/null; then
15604 if test -s conftest.err; then
15605 ac_cpp_err=$ac_cxx_preproc_warn_flag
15606 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15607 else
15608 ac_cpp_err=
15609 fi
15610else
15611 ac_cpp_err=yes
15612fi
15613if test -z "$ac_cpp_err"; then
15614 :
15615else
15616 echo "$as_me: failed program was:" >&5
15617sed 's/^/| /' conftest.$ac_ext >&5
15618
15619 # Broken: fails on valid input.
15620continue
15621fi
15622rm -f conftest.err conftest.$ac_ext
15623
15624 # OK, works on sane cases. Now check whether non-existent headers
15625 # can be detected and how.
15626 cat >conftest.$ac_ext <<_ACEOF
15627/* confdefs.h. */
15628_ACEOF
15629cat confdefs.h >>conftest.$ac_ext
15630cat >>conftest.$ac_ext <<_ACEOF
15631/* end confdefs.h. */
15632#include <ac_nonexistent.h>
15633_ACEOF
15634if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15635 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15636 ac_status=$?
15637 grep -v '^ *+' conftest.er1 >conftest.err
15638 rm -f conftest.er1
15639 cat conftest.err >&5
15640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15641 (exit $ac_status); } >/dev/null; then
15642 if test -s conftest.err; then
15643 ac_cpp_err=$ac_cxx_preproc_warn_flag
15644 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15645 else
15646 ac_cpp_err=
15647 fi
15648else
15649 ac_cpp_err=yes
15650fi
15651if test -z "$ac_cpp_err"; then
15652 # Broken: success on invalid input.
15653continue
15654else
15655 echo "$as_me: failed program was:" >&5
15656sed 's/^/| /' conftest.$ac_ext >&5
15657
15658 # Passes both tests.
15659ac_preproc_ok=:
15660break
15661fi
15662rm -f conftest.err conftest.$ac_ext
15663
15664done
15665# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15666rm -f conftest.err conftest.$ac_ext
15667if $ac_preproc_ok; then
15668 :
15669else
15670 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
15671See \`config.log' for more details." >&5
15672echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
15673See \`config.log' for more details." >&2;}
15674 { (exit 1); exit 1; }; }
15675fi
15676
15677ac_ext=cc
15678ac_cpp='$CXXCPP $CPPFLAGS'
15679ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15680ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15681ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15682
15683
a848cd7e
SC
15684echo "$as_me:$LINENO: checking for ANSI C header files" >&5
15685echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
15686if test "${ac_cv_header_stdc+set}" = set; then
15687 echo $ECHO_N "(cached) $ECHO_C" >&6
15688else
15689 cat >conftest.$ac_ext <<_ACEOF
15690/* confdefs.h. */
15691_ACEOF
15692cat confdefs.h >>conftest.$ac_ext
15693cat >>conftest.$ac_ext <<_ACEOF
15694/* end confdefs.h. */
15695#include <stdlib.h>
15696#include <stdarg.h>
15697#include <string.h>
15698#include <float.h>
15699
15700int
15701main ()
15702{
15703
15704 ;
15705 return 0;
15706}
15707_ACEOF
15708rm -f conftest.$ac_objext
15709if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15710 (eval $ac_compile) 2>conftest.er1
a848cd7e 15711 ac_status=$?
ac1cb8d3
VS
15712 grep -v '^ *+' conftest.er1 >conftest.err
15713 rm -f conftest.er1
15714 cat conftest.err >&5
a848cd7e
SC
15715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15716 (exit $ac_status); } &&
5d7b7554 15717 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15719 (eval $ac_try) 2>&5
15720 ac_status=$?
15721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15722 (exit $ac_status); }; } &&
15723 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15725 (eval $ac_try) 2>&5
15726 ac_status=$?
15727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15728 (exit $ac_status); }; }; then
15729 ac_cv_header_stdc=yes
15730else
15731 echo "$as_me: failed program was:" >&5
15732sed 's/^/| /' conftest.$ac_ext >&5
15733
15734ac_cv_header_stdc=no
15735fi
ac1cb8d3 15736rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15737
15738if test $ac_cv_header_stdc = yes; then
15739 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15740 cat >conftest.$ac_ext <<_ACEOF
15741/* confdefs.h. */
15742_ACEOF
15743cat confdefs.h >>conftest.$ac_ext
15744cat >>conftest.$ac_ext <<_ACEOF
15745/* end confdefs.h. */
15746#include <string.h>
15747
15748_ACEOF
15749if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15750 $EGREP "memchr" >/dev/null 2>&1; then
15751 :
15752else
15753 ac_cv_header_stdc=no
15754fi
15755rm -f conftest*
15756
15757fi
15758
15759if test $ac_cv_header_stdc = yes; then
15760 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15761 cat >conftest.$ac_ext <<_ACEOF
15762/* confdefs.h. */
15763_ACEOF
15764cat confdefs.h >>conftest.$ac_ext
15765cat >>conftest.$ac_ext <<_ACEOF
15766/* end confdefs.h. */
15767#include <stdlib.h>
15768
15769_ACEOF
15770if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15771 $EGREP "free" >/dev/null 2>&1; then
15772 :
15773else
15774 ac_cv_header_stdc=no
15775fi
15776rm -f conftest*
15777
15778fi
15779
15780if test $ac_cv_header_stdc = yes; then
15781 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15782 if test "$cross_compiling" = yes; then
15783 :
15784else
15785 cat >conftest.$ac_ext <<_ACEOF
15786/* confdefs.h. */
15787_ACEOF
15788cat confdefs.h >>conftest.$ac_ext
15789cat >>conftest.$ac_ext <<_ACEOF
15790/* end confdefs.h. */
15791#include <ctype.h>
15792#if ((' ' & 0x0FF) == 0x020)
15793# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15794# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15795#else
15796# define ISLOWER(c) \
ac1cb8d3
VS
15797 (('a' <= (c) && (c) <= 'i') \
15798 || ('j' <= (c) && (c) <= 'r') \
15799 || ('s' <= (c) && (c) <= 'z'))
a848cd7e
SC
15800# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15801#endif
15802
15803#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15804int
15805main ()
15806{
15807 int i;
15808 for (i = 0; i < 256; i++)
15809 if (XOR (islower (i), ISLOWER (i))
ac1cb8d3 15810 || toupper (i) != TOUPPER (i))
a848cd7e
SC
15811 exit(2);
15812 exit (0);
15813}
15814_ACEOF
15815rm -f conftest$ac_exeext
15816if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15817 (eval $ac_link) 2>&5
15818 ac_status=$?
15819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15820 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15822 (eval $ac_try) 2>&5
15823 ac_status=$?
15824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15825 (exit $ac_status); }; }; then
15826 :
15827else
15828 echo "$as_me: program exited with status $ac_status" >&5
15829echo "$as_me: failed program was:" >&5
15830sed 's/^/| /' conftest.$ac_ext >&5
15831
15832( exit $ac_status )
15833ac_cv_header_stdc=no
15834fi
ac1cb8d3 15835rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15836fi
15837fi
15838fi
15839echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
15840echo "${ECHO_T}$ac_cv_header_stdc" >&6
15841if test $ac_cv_header_stdc = yes; then
15842
15843cat >>confdefs.h <<\_ACEOF
15844#define STDC_HEADERS 1
15845_ACEOF
15846
15847fi
15848
15849# On IRIX 5.3, sys/types and inttypes.h are conflicting.
15850
15851
15852
15853
15854
15855
15856
15857
15858
15859for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
ac1cb8d3 15860 inttypes.h stdint.h unistd.h
a848cd7e
SC
15861do
15862as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15863echo "$as_me:$LINENO: checking for $ac_header" >&5
15864echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15865if eval "test \"\${$as_ac_Header+set}\" = set"; then
15866 echo $ECHO_N "(cached) $ECHO_C" >&6
15867else
15868 cat >conftest.$ac_ext <<_ACEOF
15869/* confdefs.h. */
15870_ACEOF
15871cat confdefs.h >>conftest.$ac_ext
15872cat >>conftest.$ac_ext <<_ACEOF
15873/* end confdefs.h. */
15874$ac_includes_default
15875
15876#include <$ac_header>
15877_ACEOF
15878rm -f conftest.$ac_objext
15879if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15880 (eval $ac_compile) 2>conftest.er1
a848cd7e 15881 ac_status=$?
ac1cb8d3
VS
15882 grep -v '^ *+' conftest.er1 >conftest.err
15883 rm -f conftest.er1
15884 cat conftest.err >&5
a848cd7e
SC
15885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15886 (exit $ac_status); } &&
5d7b7554 15887 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15889 (eval $ac_try) 2>&5
15890 ac_status=$?
15891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15892 (exit $ac_status); }; } &&
15893 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15895 (eval $ac_try) 2>&5
15896 ac_status=$?
15897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15898 (exit $ac_status); }; }; then
15899 eval "$as_ac_Header=yes"
15900else
15901 echo "$as_me: failed program was:" >&5
15902sed 's/^/| /' conftest.$ac_ext >&5
15903
15904eval "$as_ac_Header=no"
15905fi
ac1cb8d3 15906rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15907fi
15908echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15909echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15910if test `eval echo '${'$as_ac_Header'}'` = yes; then
15911 cat >>confdefs.h <<_ACEOF
15912#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15913_ACEOF
15914
15915fi
15916
15917done
15918
15919
15920
15921for ac_header in stdlib.h
15922do
15923as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15924if eval "test \"\${$as_ac_Header+set}\" = set"; then
15925 echo "$as_me:$LINENO: checking for $ac_header" >&5
15926echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15927if eval "test \"\${$as_ac_Header+set}\" = set"; then
15928 echo $ECHO_N "(cached) $ECHO_C" >&6
15929fi
15930echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15931echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15932else
15933 # Is the header compilable?
15934echo "$as_me:$LINENO: checking $ac_header usability" >&5
15935echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15936cat >conftest.$ac_ext <<_ACEOF
15937/* confdefs.h. */
15938_ACEOF
15939cat confdefs.h >>conftest.$ac_ext
15940cat >>conftest.$ac_ext <<_ACEOF
15941/* end confdefs.h. */
15942$ac_includes_default
15943#include <$ac_header>
15944_ACEOF
15945rm -f conftest.$ac_objext
15946if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15947 (eval $ac_compile) 2>conftest.er1
a848cd7e 15948 ac_status=$?
ac1cb8d3
VS
15949 grep -v '^ *+' conftest.er1 >conftest.err
15950 rm -f conftest.er1
15951 cat conftest.err >&5
a848cd7e
SC
15952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15953 (exit $ac_status); } &&
5d7b7554 15954 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15956 (eval $ac_try) 2>&5
15957 ac_status=$?
15958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15959 (exit $ac_status); }; } &&
15960 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15962 (eval $ac_try) 2>&5
15963 ac_status=$?
15964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15965 (exit $ac_status); }; }; then
15966 ac_header_compiler=yes
15967else
15968 echo "$as_me: failed program was:" >&5
15969sed 's/^/| /' conftest.$ac_ext >&5
15970
15971ac_header_compiler=no
15972fi
ac1cb8d3 15973rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15974echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15975echo "${ECHO_T}$ac_header_compiler" >&6
15976
15977# Is the header present?
15978echo "$as_me:$LINENO: checking $ac_header presence" >&5
15979echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15980cat >conftest.$ac_ext <<_ACEOF
15981/* confdefs.h. */
15982_ACEOF
15983cat confdefs.h >>conftest.$ac_ext
15984cat >>conftest.$ac_ext <<_ACEOF
15985/* end confdefs.h. */
15986#include <$ac_header>
15987_ACEOF
15988if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15989 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15990 ac_status=$?
15991 grep -v '^ *+' conftest.er1 >conftest.err
15992 rm -f conftest.er1
15993 cat conftest.err >&5
15994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15995 (exit $ac_status); } >/dev/null; then
15996 if test -s conftest.err; then
5d7b7554
VZ
15997 ac_cpp_err=$ac_cxx_preproc_warn_flag
15998 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
15999 else
16000 ac_cpp_err=
16001 fi
16002else
16003 ac_cpp_err=yes
16004fi
16005if test -z "$ac_cpp_err"; then
16006 ac_header_preproc=yes
16007else
16008 echo "$as_me: failed program was:" >&5
16009sed 's/^/| /' conftest.$ac_ext >&5
16010
16011 ac_header_preproc=no
16012fi
16013rm -f conftest.err conftest.$ac_ext
16014echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16015echo "${ECHO_T}$ac_header_preproc" >&6
16016
16017# So? What about this header?
5d7b7554 16018case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 16019 yes:no: )
a848cd7e
SC
16020 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16021echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16022 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16023echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16024 ac_header_preproc=yes
a848cd7e 16025 ;;
ac1cb8d3 16026 no:yes:* )
a848cd7e
SC
16027 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16028echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16029 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16030echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16031 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16032echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16033 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16034echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16035 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16036echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16037 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16038echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16039 (
16040 cat <<\_ASBOX
ac1cb8d3
VS
16041## ----------------------------------------- ##
16042## Report this to wx-dev@lists.wxwidgets.org ##
16043## ----------------------------------------- ##
a848cd7e
SC
16044_ASBOX
16045 ) |
16046 sed "s/^/$as_me: WARNING: /" >&2
16047 ;;
16048esac
16049echo "$as_me:$LINENO: checking for $ac_header" >&5
16050echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16051if eval "test \"\${$as_ac_Header+set}\" = set"; then
16052 echo $ECHO_N "(cached) $ECHO_C" >&6
16053else
ac1cb8d3 16054 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16055fi
16056echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16057echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16058
16059fi
16060if test `eval echo '${'$as_ac_Header'}'` = yes; then
16061 cat >>confdefs.h <<_ACEOF
16062#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16063_ACEOF
16064
16065fi
16066
16067done
16068
16069
16070for ac_header in malloc.h
16071do
16072as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16073if eval "test \"\${$as_ac_Header+set}\" = set"; then
16074 echo "$as_me:$LINENO: checking for $ac_header" >&5
16075echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16076if eval "test \"\${$as_ac_Header+set}\" = set"; then
16077 echo $ECHO_N "(cached) $ECHO_C" >&6
16078fi
16079echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16080echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16081else
16082 # Is the header compilable?
16083echo "$as_me:$LINENO: checking $ac_header usability" >&5
16084echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16085cat >conftest.$ac_ext <<_ACEOF
16086/* confdefs.h. */
16087_ACEOF
16088cat confdefs.h >>conftest.$ac_ext
16089cat >>conftest.$ac_ext <<_ACEOF
16090/* end confdefs.h. */
16091$ac_includes_default
16092#include <$ac_header>
16093_ACEOF
16094rm -f conftest.$ac_objext
16095if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16096 (eval $ac_compile) 2>conftest.er1
a848cd7e 16097 ac_status=$?
ac1cb8d3
VS
16098 grep -v '^ *+' conftest.er1 >conftest.err
16099 rm -f conftest.er1
16100 cat conftest.err >&5
a848cd7e
SC
16101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16102 (exit $ac_status); } &&
5d7b7554 16103 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16105 (eval $ac_try) 2>&5
16106 ac_status=$?
16107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16108 (exit $ac_status); }; } &&
16109 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16111 (eval $ac_try) 2>&5
16112 ac_status=$?
16113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16114 (exit $ac_status); }; }; then
16115 ac_header_compiler=yes
16116else
16117 echo "$as_me: failed program was:" >&5
16118sed 's/^/| /' conftest.$ac_ext >&5
16119
16120ac_header_compiler=no
16121fi
ac1cb8d3 16122rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16123echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16124echo "${ECHO_T}$ac_header_compiler" >&6
16125
16126# Is the header present?
16127echo "$as_me:$LINENO: checking $ac_header presence" >&5
16128echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16129cat >conftest.$ac_ext <<_ACEOF
16130/* confdefs.h. */
16131_ACEOF
16132cat confdefs.h >>conftest.$ac_ext
16133cat >>conftest.$ac_ext <<_ACEOF
16134/* end confdefs.h. */
16135#include <$ac_header>
16136_ACEOF
16137if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16138 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16139 ac_status=$?
16140 grep -v '^ *+' conftest.er1 >conftest.err
16141 rm -f conftest.er1
16142 cat conftest.err >&5
16143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16144 (exit $ac_status); } >/dev/null; then
16145 if test -s conftest.err; then
5d7b7554
VZ
16146 ac_cpp_err=$ac_cxx_preproc_warn_flag
16147 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
16148 else
16149 ac_cpp_err=
16150 fi
16151else
16152 ac_cpp_err=yes
16153fi
16154if test -z "$ac_cpp_err"; then
16155 ac_header_preproc=yes
16156else
16157 echo "$as_me: failed program was:" >&5
16158sed 's/^/| /' conftest.$ac_ext >&5
16159
16160 ac_header_preproc=no
16161fi
16162rm -f conftest.err conftest.$ac_ext
16163echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16164echo "${ECHO_T}$ac_header_preproc" >&6
16165
16166# So? What about this header?
5d7b7554 16167case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 16168 yes:no: )
a848cd7e
SC
16169 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16170echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16171 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16172echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16173 ac_header_preproc=yes
a848cd7e 16174 ;;
ac1cb8d3 16175 no:yes:* )
a848cd7e
SC
16176 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16177echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16178 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16179echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16180 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16181echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16182 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16183echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16184 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16185echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16186 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16187echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16188 (
16189 cat <<\_ASBOX
ac1cb8d3
VS
16190## ----------------------------------------- ##
16191## Report this to wx-dev@lists.wxwidgets.org ##
16192## ----------------------------------------- ##
a848cd7e
SC
16193_ASBOX
16194 ) |
16195 sed "s/^/$as_me: WARNING: /" >&2
16196 ;;
16197esac
16198echo "$as_me:$LINENO: checking for $ac_header" >&5
16199echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16200if eval "test \"\${$as_ac_Header+set}\" = set"; then
16201 echo $ECHO_N "(cached) $ECHO_C" >&6
16202else
ac1cb8d3 16203 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16204fi
16205echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16206echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16207
16208fi
16209if test `eval echo '${'$as_ac_Header'}'` = yes; then
16210 cat >>confdefs.h <<_ACEOF
16211#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16212_ACEOF
16213
16214fi
16215
16216done
16217
16218
16219for ac_header in unistd.h
16220do
16221as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16222if eval "test \"\${$as_ac_Header+set}\" = set"; then
16223 echo "$as_me:$LINENO: checking for $ac_header" >&5
16224echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16225if eval "test \"\${$as_ac_Header+set}\" = set"; then
16226 echo $ECHO_N "(cached) $ECHO_C" >&6
16227fi
16228echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16229echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16230else
16231 # Is the header compilable?
16232echo "$as_me:$LINENO: checking $ac_header usability" >&5
16233echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16234cat >conftest.$ac_ext <<_ACEOF
16235/* confdefs.h. */
16236_ACEOF
16237cat confdefs.h >>conftest.$ac_ext
16238cat >>conftest.$ac_ext <<_ACEOF
16239/* end confdefs.h. */
16240$ac_includes_default
16241#include <$ac_header>
16242_ACEOF
16243rm -f conftest.$ac_objext
16244if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16245 (eval $ac_compile) 2>conftest.er1
a848cd7e 16246 ac_status=$?
ac1cb8d3
VS
16247 grep -v '^ *+' conftest.er1 >conftest.err
16248 rm -f conftest.er1
16249 cat conftest.err >&5
a848cd7e
SC
16250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16251 (exit $ac_status); } &&
5d7b7554 16252 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16254 (eval $ac_try) 2>&5
16255 ac_status=$?
16256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16257 (exit $ac_status); }; } &&
16258 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16260 (eval $ac_try) 2>&5
16261 ac_status=$?
16262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16263 (exit $ac_status); }; }; then
16264 ac_header_compiler=yes
16265else
16266 echo "$as_me: failed program was:" >&5
16267sed 's/^/| /' conftest.$ac_ext >&5
16268
16269ac_header_compiler=no
16270fi
ac1cb8d3 16271rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16272echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16273echo "${ECHO_T}$ac_header_compiler" >&6
16274
16275# Is the header present?
16276echo "$as_me:$LINENO: checking $ac_header presence" >&5
16277echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16278cat >conftest.$ac_ext <<_ACEOF
16279/* confdefs.h. */
16280_ACEOF
16281cat confdefs.h >>conftest.$ac_ext
16282cat >>conftest.$ac_ext <<_ACEOF
16283/* end confdefs.h. */
16284#include <$ac_header>
16285_ACEOF
16286if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16287 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16288 ac_status=$?
16289 grep -v '^ *+' conftest.er1 >conftest.err
16290 rm -f conftest.er1
16291 cat conftest.err >&5
16292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16293 (exit $ac_status); } >/dev/null; then
16294 if test -s conftest.err; then
5d7b7554
VZ
16295 ac_cpp_err=$ac_cxx_preproc_warn_flag
16296 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
16297 else
16298 ac_cpp_err=
16299 fi
16300else
16301 ac_cpp_err=yes
16302fi
16303if test -z "$ac_cpp_err"; then
16304 ac_header_preproc=yes
16305else
16306 echo "$as_me: failed program was:" >&5
16307sed 's/^/| /' conftest.$ac_ext >&5
16308
16309 ac_header_preproc=no
16310fi
16311rm -f conftest.err conftest.$ac_ext
16312echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16313echo "${ECHO_T}$ac_header_preproc" >&6
16314
16315# So? What about this header?
5d7b7554 16316case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 16317 yes:no: )
a848cd7e
SC
16318 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16319echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16320 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16321echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16322 ac_header_preproc=yes
a848cd7e 16323 ;;
ac1cb8d3 16324 no:yes:* )
a848cd7e
SC
16325 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16326echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16327 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16328echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16329 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16330echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16331 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16332echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16333 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16334echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16335 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16336echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16337 (
16338 cat <<\_ASBOX
ac1cb8d3
VS
16339## ----------------------------------------- ##
16340## Report this to wx-dev@lists.wxwidgets.org ##
16341## ----------------------------------------- ##
a848cd7e
SC
16342_ASBOX
16343 ) |
16344 sed "s/^/$as_me: WARNING: /" >&2
16345 ;;
16346esac
16347echo "$as_me:$LINENO: checking for $ac_header" >&5
16348echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16349if eval "test \"\${$as_ac_Header+set}\" = set"; then
16350 echo $ECHO_N "(cached) $ECHO_C" >&6
16351else
ac1cb8d3 16352 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16353fi
16354echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16355echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16356
16357fi
16358if test `eval echo '${'$as_ac_Header'}'` = yes; then
16359 cat >>confdefs.h <<_ACEOF
16360#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16361_ACEOF
16362
16363fi
16364
16365done
16366
16367
16368for ac_header in wchar.h
16369do
16370as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16371if eval "test \"\${$as_ac_Header+set}\" = set"; then
16372 echo "$as_me:$LINENO: checking for $ac_header" >&5
16373echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16374if eval "test \"\${$as_ac_Header+set}\" = set"; then
16375 echo $ECHO_N "(cached) $ECHO_C" >&6
16376fi
16377echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16378echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16379else
16380 # Is the header compilable?
16381echo "$as_me:$LINENO: checking $ac_header usability" >&5
16382echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16383cat >conftest.$ac_ext <<_ACEOF
16384/* confdefs.h. */
16385_ACEOF
16386cat confdefs.h >>conftest.$ac_ext
16387cat >>conftest.$ac_ext <<_ACEOF
16388/* end confdefs.h. */
16389$ac_includes_default
16390#include <$ac_header>
16391_ACEOF
16392rm -f conftest.$ac_objext
16393if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16394 (eval $ac_compile) 2>conftest.er1
a848cd7e 16395 ac_status=$?
ac1cb8d3
VS
16396 grep -v '^ *+' conftest.er1 >conftest.err
16397 rm -f conftest.er1
16398 cat conftest.err >&5
a848cd7e
SC
16399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16400 (exit $ac_status); } &&
5d7b7554 16401 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16403 (eval $ac_try) 2>&5
16404 ac_status=$?
16405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16406 (exit $ac_status); }; } &&
16407 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16409 (eval $ac_try) 2>&5
16410 ac_status=$?
16411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16412 (exit $ac_status); }; }; then
16413 ac_header_compiler=yes
16414else
16415 echo "$as_me: failed program was:" >&5
16416sed 's/^/| /' conftest.$ac_ext >&5
16417
16418ac_header_compiler=no
16419fi
ac1cb8d3 16420rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16421echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16422echo "${ECHO_T}$ac_header_compiler" >&6
16423
16424# Is the header present?
16425echo "$as_me:$LINENO: checking $ac_header presence" >&5
16426echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16427cat >conftest.$ac_ext <<_ACEOF
16428/* confdefs.h. */
16429_ACEOF
16430cat confdefs.h >>conftest.$ac_ext
16431cat >>conftest.$ac_ext <<_ACEOF
16432/* end confdefs.h. */
16433#include <$ac_header>
16434_ACEOF
16435if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16436 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16437 ac_status=$?
16438 grep -v '^ *+' conftest.er1 >conftest.err
16439 rm -f conftest.er1
16440 cat conftest.err >&5
16441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16442 (exit $ac_status); } >/dev/null; then
16443 if test -s conftest.err; then
5d7b7554
VZ
16444 ac_cpp_err=$ac_cxx_preproc_warn_flag
16445 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
16446 else
16447 ac_cpp_err=
16448 fi
16449else
16450 ac_cpp_err=yes
16451fi
16452if test -z "$ac_cpp_err"; then
16453 ac_header_preproc=yes
16454else
16455 echo "$as_me: failed program was:" >&5
16456sed 's/^/| /' conftest.$ac_ext >&5
16457
16458 ac_header_preproc=no
16459fi
16460rm -f conftest.err conftest.$ac_ext
16461echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16462echo "${ECHO_T}$ac_header_preproc" >&6
16463
16464# So? What about this header?
5d7b7554 16465case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 16466 yes:no: )
a848cd7e
SC
16467 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16468echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16469 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16470echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16471 ac_header_preproc=yes
a848cd7e 16472 ;;
ac1cb8d3 16473 no:yes:* )
a848cd7e
SC
16474 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16475echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16476 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16477echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16478 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16479echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16480 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16481echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16482 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16483echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16484 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16485echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16486 (
16487 cat <<\_ASBOX
ac1cb8d3
VS
16488## ----------------------------------------- ##
16489## Report this to wx-dev@lists.wxwidgets.org ##
16490## ----------------------------------------- ##
a848cd7e
SC
16491_ASBOX
16492 ) |
16493 sed "s/^/$as_me: WARNING: /" >&2
16494 ;;
16495esac
16496echo "$as_me:$LINENO: checking for $ac_header" >&5
16497echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16498if eval "test \"\${$as_ac_Header+set}\" = set"; then
16499 echo $ECHO_N "(cached) $ECHO_C" >&6
16500else
ac1cb8d3 16501 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16502fi
16503echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16504echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16505
16506fi
16507if test `eval echo '${'$as_ac_Header'}'` = yes; then
16508 cat >>confdefs.h <<_ACEOF
16509#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16510_ACEOF
16511
16512fi
16513
16514done
16515
16516
16517if test "$ac_cv_header_wchar_h" != "yes"; then
16518
16519for ac_header in wcstr.h
16520do
16521as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16522if eval "test \"\${$as_ac_Header+set}\" = set"; then
16523 echo "$as_me:$LINENO: checking for $ac_header" >&5
16524echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16525if eval "test \"\${$as_ac_Header+set}\" = set"; then
16526 echo $ECHO_N "(cached) $ECHO_C" >&6
16527fi
16528echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16529echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16530else
16531 # Is the header compilable?
16532echo "$as_me:$LINENO: checking $ac_header usability" >&5
16533echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16534cat >conftest.$ac_ext <<_ACEOF
16535/* confdefs.h. */
16536_ACEOF
16537cat confdefs.h >>conftest.$ac_ext
16538cat >>conftest.$ac_ext <<_ACEOF
16539/* end confdefs.h. */
16540$ac_includes_default
16541#include <$ac_header>
16542_ACEOF
16543rm -f conftest.$ac_objext
16544if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16545 (eval $ac_compile) 2>conftest.er1
a848cd7e 16546 ac_status=$?
ac1cb8d3
VS
16547 grep -v '^ *+' conftest.er1 >conftest.err
16548 rm -f conftest.er1
16549 cat conftest.err >&5
a848cd7e
SC
16550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16551 (exit $ac_status); } &&
5d7b7554 16552 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16554 (eval $ac_try) 2>&5
16555 ac_status=$?
16556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16557 (exit $ac_status); }; } &&
16558 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16560 (eval $ac_try) 2>&5
16561 ac_status=$?
16562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16563 (exit $ac_status); }; }; then
16564 ac_header_compiler=yes
16565else
16566 echo "$as_me: failed program was:" >&5
16567sed 's/^/| /' conftest.$ac_ext >&5
16568
16569ac_header_compiler=no
16570fi
ac1cb8d3 16571rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16572echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16573echo "${ECHO_T}$ac_header_compiler" >&6
16574
16575# Is the header present?
16576echo "$as_me:$LINENO: checking $ac_header presence" >&5
16577echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16578cat >conftest.$ac_ext <<_ACEOF
16579/* confdefs.h. */
16580_ACEOF
16581cat confdefs.h >>conftest.$ac_ext
16582cat >>conftest.$ac_ext <<_ACEOF
16583/* end confdefs.h. */
16584#include <$ac_header>
16585_ACEOF
16586if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16587 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16588 ac_status=$?
16589 grep -v '^ *+' conftest.er1 >conftest.err
16590 rm -f conftest.er1
16591 cat conftest.err >&5
16592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16593 (exit $ac_status); } >/dev/null; then
16594 if test -s conftest.err; then
5d7b7554
VZ
16595 ac_cpp_err=$ac_cxx_preproc_warn_flag
16596 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
16597 else
16598 ac_cpp_err=
16599 fi
16600else
16601 ac_cpp_err=yes
16602fi
16603if test -z "$ac_cpp_err"; then
16604 ac_header_preproc=yes
16605else
16606 echo "$as_me: failed program was:" >&5
16607sed 's/^/| /' conftest.$ac_ext >&5
16608
16609 ac_header_preproc=no
16610fi
16611rm -f conftest.err conftest.$ac_ext
16612echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16613echo "${ECHO_T}$ac_header_preproc" >&6
16614
16615# So? What about this header?
5d7b7554 16616case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 16617 yes:no: )
a848cd7e
SC
16618 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16619echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16620 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16621echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16622 ac_header_preproc=yes
a848cd7e 16623 ;;
ac1cb8d3 16624 no:yes:* )
a848cd7e
SC
16625 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16626echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16627 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16628echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16629 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16630echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16631 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16632echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16633 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16634echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16635 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16636echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16637 (
16638 cat <<\_ASBOX
ac1cb8d3
VS
16639## ----------------------------------------- ##
16640## Report this to wx-dev@lists.wxwidgets.org ##
16641## ----------------------------------------- ##
a848cd7e
SC
16642_ASBOX
16643 ) |
16644 sed "s/^/$as_me: WARNING: /" >&2
16645 ;;
16646esac
16647echo "$as_me:$LINENO: checking for $ac_header" >&5
16648echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16649if eval "test \"\${$as_ac_Header+set}\" = set"; then
16650 echo $ECHO_N "(cached) $ECHO_C" >&6
16651else
ac1cb8d3 16652 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16653fi
16654echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16655echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16656
16657fi
16658if test `eval echo '${'$as_ac_Header'}'` = yes; then
16659 cat >>confdefs.h <<_ACEOF
16660#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16661_ACEOF
16662
16663fi
16664
16665done
16666
16667fi
16668
16669
16670for ac_header in fnmatch.h
16671do
16672as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16673if eval "test \"\${$as_ac_Header+set}\" = set"; then
16674 echo "$as_me:$LINENO: checking for $ac_header" >&5
16675echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16676if eval "test \"\${$as_ac_Header+set}\" = set"; then
16677 echo $ECHO_N "(cached) $ECHO_C" >&6
16678fi
16679echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16680echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16681else
16682 # Is the header compilable?
16683echo "$as_me:$LINENO: checking $ac_header usability" >&5
16684echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16685cat >conftest.$ac_ext <<_ACEOF
16686/* confdefs.h. */
16687_ACEOF
16688cat confdefs.h >>conftest.$ac_ext
16689cat >>conftest.$ac_ext <<_ACEOF
16690/* end confdefs.h. */
16691$ac_includes_default
16692#include <$ac_header>
16693_ACEOF
16694rm -f conftest.$ac_objext
16695if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16696 (eval $ac_compile) 2>conftest.er1
a848cd7e 16697 ac_status=$?
ac1cb8d3
VS
16698 grep -v '^ *+' conftest.er1 >conftest.err
16699 rm -f conftest.er1
16700 cat conftest.err >&5
a848cd7e
SC
16701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16702 (exit $ac_status); } &&
5d7b7554 16703 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16705 (eval $ac_try) 2>&5
16706 ac_status=$?
16707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16708 (exit $ac_status); }; } &&
16709 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16711 (eval $ac_try) 2>&5
16712 ac_status=$?
16713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16714 (exit $ac_status); }; }; then
16715 ac_header_compiler=yes
16716else
16717 echo "$as_me: failed program was:" >&5
16718sed 's/^/| /' conftest.$ac_ext >&5
16719
16720ac_header_compiler=no
16721fi
ac1cb8d3 16722rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16723echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16724echo "${ECHO_T}$ac_header_compiler" >&6
16725
16726# Is the header present?
16727echo "$as_me:$LINENO: checking $ac_header presence" >&5
16728echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16729cat >conftest.$ac_ext <<_ACEOF
16730/* confdefs.h. */
16731_ACEOF
16732cat confdefs.h >>conftest.$ac_ext
16733cat >>conftest.$ac_ext <<_ACEOF
16734/* end confdefs.h. */
16735#include <$ac_header>
16736_ACEOF
16737if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16738 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16739 ac_status=$?
16740 grep -v '^ *+' conftest.er1 >conftest.err
16741 rm -f conftest.er1
16742 cat conftest.err >&5
16743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16744 (exit $ac_status); } >/dev/null; then
16745 if test -s conftest.err; then
5d7b7554
VZ
16746 ac_cpp_err=$ac_cxx_preproc_warn_flag
16747 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
16748 else
16749 ac_cpp_err=
16750 fi
16751else
16752 ac_cpp_err=yes
16753fi
16754if test -z "$ac_cpp_err"; then
16755 ac_header_preproc=yes
16756else
16757 echo "$as_me: failed program was:" >&5
16758sed 's/^/| /' conftest.$ac_ext >&5
16759
16760 ac_header_preproc=no
16761fi
16762rm -f conftest.err conftest.$ac_ext
16763echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16764echo "${ECHO_T}$ac_header_preproc" >&6
16765
16766# So? What about this header?
5d7b7554 16767case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 16768 yes:no: )
a848cd7e
SC
16769 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16770echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16771 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16772echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16773 ac_header_preproc=yes
a848cd7e 16774 ;;
ac1cb8d3 16775 no:yes:* )
a848cd7e
SC
16776 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16777echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16778 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16779echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16780 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16781echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16782 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16783echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16784 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16785echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16786 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16787echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16788 (
16789 cat <<\_ASBOX
ac1cb8d3
VS
16790## ----------------------------------------- ##
16791## Report this to wx-dev@lists.wxwidgets.org ##
16792## ----------------------------------------- ##
a848cd7e
SC
16793_ASBOX
16794 ) |
16795 sed "s/^/$as_me: WARNING: /" >&2
16796 ;;
16797esac
16798echo "$as_me:$LINENO: checking for $ac_header" >&5
16799echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16800if eval "test \"\${$as_ac_Header+set}\" = set"; then
16801 echo $ECHO_N "(cached) $ECHO_C" >&6
16802else
ac1cb8d3 16803 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16804fi
16805echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16806echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16807
16808fi
16809if test `eval echo '${'$as_ac_Header'}'` = yes; then
16810 cat >>confdefs.h <<_ACEOF
16811#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16812_ACEOF
16813
16814fi
16815
16816done
16817
16818
a848cd7e
SC
16819
16820for ac_header in langinfo.h
16821do
16822as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16823if eval "test \"\${$as_ac_Header+set}\" = set"; then
16824 echo "$as_me:$LINENO: checking for $ac_header" >&5
16825echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16826if eval "test \"\${$as_ac_Header+set}\" = set"; then
16827 echo $ECHO_N "(cached) $ECHO_C" >&6
16828fi
16829echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16830echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16831else
16832 # Is the header compilable?
16833echo "$as_me:$LINENO: checking $ac_header usability" >&5
16834echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16835cat >conftest.$ac_ext <<_ACEOF
16836/* confdefs.h. */
16837_ACEOF
16838cat confdefs.h >>conftest.$ac_ext
16839cat >>conftest.$ac_ext <<_ACEOF
16840/* end confdefs.h. */
16841$ac_includes_default
16842#include <$ac_header>
16843_ACEOF
16844rm -f conftest.$ac_objext
16845if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16846 (eval $ac_compile) 2>conftest.er1
a848cd7e 16847 ac_status=$?
ac1cb8d3
VS
16848 grep -v '^ *+' conftest.er1 >conftest.err
16849 rm -f conftest.er1
16850 cat conftest.err >&5
a848cd7e
SC
16851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16852 (exit $ac_status); } &&
5d7b7554 16853 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16855 (eval $ac_try) 2>&5
16856 ac_status=$?
16857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16858 (exit $ac_status); }; } &&
16859 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16861 (eval $ac_try) 2>&5
16862 ac_status=$?
16863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16864 (exit $ac_status); }; }; then
16865 ac_header_compiler=yes
16866else
16867 echo "$as_me: failed program was:" >&5
16868sed 's/^/| /' conftest.$ac_ext >&5
16869
16870ac_header_compiler=no
16871fi
ac1cb8d3 16872rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16873echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16874echo "${ECHO_T}$ac_header_compiler" >&6
16875
16876# Is the header present?
16877echo "$as_me:$LINENO: checking $ac_header presence" >&5
16878echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16879cat >conftest.$ac_ext <<_ACEOF
16880/* confdefs.h. */
16881_ACEOF
16882cat confdefs.h >>conftest.$ac_ext
16883cat >>conftest.$ac_ext <<_ACEOF
16884/* end confdefs.h. */
16885#include <$ac_header>
16886_ACEOF
16887if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16888 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16889 ac_status=$?
16890 grep -v '^ *+' conftest.er1 >conftest.err
16891 rm -f conftest.er1
16892 cat conftest.err >&5
16893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16894 (exit $ac_status); } >/dev/null; then
16895 if test -s conftest.err; then
5d7b7554
VZ
16896 ac_cpp_err=$ac_cxx_preproc_warn_flag
16897 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
16898 else
16899 ac_cpp_err=
16900 fi
16901else
16902 ac_cpp_err=yes
16903fi
16904if test -z "$ac_cpp_err"; then
16905 ac_header_preproc=yes
16906else
16907 echo "$as_me: failed program was:" >&5
16908sed 's/^/| /' conftest.$ac_ext >&5
16909
16910 ac_header_preproc=no
16911fi
16912rm -f conftest.err conftest.$ac_ext
16913echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16914echo "${ECHO_T}$ac_header_preproc" >&6
16915
16916# So? What about this header?
5d7b7554 16917case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 16918 yes:no: )
a848cd7e
SC
16919 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16920echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16921 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16922echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16923 ac_header_preproc=yes
a848cd7e 16924 ;;
ac1cb8d3 16925 no:yes:* )
a848cd7e
SC
16926 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16927echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16928 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16929echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16930 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16931echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16932 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16933echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16934 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16935echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16936 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16937echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16938 (
16939 cat <<\_ASBOX
ac1cb8d3
VS
16940## ----------------------------------------- ##
16941## Report this to wx-dev@lists.wxwidgets.org ##
16942## ----------------------------------------- ##
a848cd7e
SC
16943_ASBOX
16944 ) |
16945 sed "s/^/$as_me: WARNING: /" >&2
16946 ;;
16947esac
16948echo "$as_me:$LINENO: checking for $ac_header" >&5
16949echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16950if eval "test \"\${$as_ac_Header+set}\" = set"; then
16951 echo $ECHO_N "(cached) $ECHO_C" >&6
16952else
ac1cb8d3 16953 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16954fi
16955echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16956echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16957
16958fi
16959if test `eval echo '${'$as_ac_Header'}'` = yes; then
16960 cat >>confdefs.h <<_ACEOF
16961#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16962_ACEOF
16963
16964fi
16965
16966done
16967
16968
16969case "${host}" in
16970 *-pc-os2_emx | *-pc-os2-emx )
391a765e
VS
16971 if test $ac_cv_header_langinfo_h = "yes" \
16972 -a \( "$wx_cv_gccversion" = "EMX2" \
16973 -o "$wx_cv_gccversion" = "EMX3" \
16974 -o "$wx_cv_gccversion" = "Innotek5" \); then
a848cd7e
SC
16975 LIBS="$LIBS -lintl"
16976 fi
16977 ;;
16978esac
16979
a848cd7e
SC
16980
16981echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
16982echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
16983if test "${ac_cv_c_const+set}" = set; then
16984 echo $ECHO_N "(cached) $ECHO_C" >&6
16985else
16986 cat >conftest.$ac_ext <<_ACEOF
16987/* confdefs.h. */
16988_ACEOF
16989cat confdefs.h >>conftest.$ac_ext
16990cat >>conftest.$ac_ext <<_ACEOF
16991/* end confdefs.h. */
16992
16993int
16994main ()
16995{
16996/* FIXME: Include the comments suggested by Paul. */
16997#ifndef __cplusplus
16998 /* Ultrix mips cc rejects this. */
16999 typedef int charset[2];
17000 const charset x;
17001 /* SunOS 4.1.1 cc rejects this. */
17002 char const *const *ccp;
17003 char **p;
17004 /* NEC SVR4.0.2 mips cc rejects this. */
17005 struct point {int x, y;};
17006 static struct point const zero = {0,0};
17007 /* AIX XL C 1.02.0.0 rejects this.
17008 It does not let you subtract one const X* pointer from another in
17009 an arm of an if-expression whose if-part is not a constant
17010 expression */
17011 const char *g = "string";
17012 ccp = &g + (g ? g-g : 0);
17013 /* HPUX 7.0 cc rejects these. */
17014 ++ccp;
17015 p = (char**) ccp;
17016 ccp = (char const *const *) p;
17017 { /* SCO 3.2v4 cc rejects this. */
17018 char *t;
17019 char const *s = 0 ? (char *) 0 : (char const *) 0;
17020
17021 *t++ = 0;
17022 }
17023 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
17024 int x[] = {25, 17};
17025 const int *foo = &x[0];
17026 ++foo;
17027 }
17028 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17029 typedef const int *iptr;
17030 iptr p = 0;
17031 ++p;
17032 }
17033 { /* AIX XL C 1.02.0.0 rejects this saying
17034 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17035 struct s { int j; const int *ap[3]; };
17036 struct s *b; b->j = 5;
17037 }
17038 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17039 const int foo = 10;
17040 }
17041#endif
17042
17043 ;
17044 return 0;
17045}
17046_ACEOF
17047rm -f conftest.$ac_objext
17048if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17049 (eval $ac_compile) 2>conftest.er1
a848cd7e 17050 ac_status=$?
ac1cb8d3
VS
17051 grep -v '^ *+' conftest.er1 >conftest.err
17052 rm -f conftest.er1
17053 cat conftest.err >&5
a848cd7e
SC
17054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17055 (exit $ac_status); } &&
5d7b7554 17056 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17058 (eval $ac_try) 2>&5
17059 ac_status=$?
17060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17061 (exit $ac_status); }; } &&
17062 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17064 (eval $ac_try) 2>&5
17065 ac_status=$?
17066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17067 (exit $ac_status); }; }; then
17068 ac_cv_c_const=yes
17069else
17070 echo "$as_me: failed program was:" >&5
17071sed 's/^/| /' conftest.$ac_ext >&5
17072
17073ac_cv_c_const=no
17074fi
ac1cb8d3 17075rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17076fi
17077echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
17078echo "${ECHO_T}$ac_cv_c_const" >&6
17079if test $ac_cv_c_const = no; then
17080
17081cat >>confdefs.h <<\_ACEOF
17082#define const
17083_ACEOF
17084
17085fi
17086
17087echo "$as_me:$LINENO: checking for inline" >&5
17088echo $ECHO_N "checking for inline... $ECHO_C" >&6
17089if test "${ac_cv_c_inline+set}" = set; then
17090 echo $ECHO_N "(cached) $ECHO_C" >&6
17091else
17092 ac_cv_c_inline=no
17093for ac_kw in inline __inline__ __inline; 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#ifndef __cplusplus
17101typedef int foo_t;
17102static $ac_kw foo_t static_foo () {return 0; }
17103$ac_kw foo_t foo () {return 0; }
17104#endif
17105
17106_ACEOF
17107rm -f conftest.$ac_objext
17108if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17109 (eval $ac_compile) 2>conftest.er1
a848cd7e 17110 ac_status=$?
ac1cb8d3
VS
17111 grep -v '^ *+' conftest.er1 >conftest.err
17112 rm -f conftest.er1
17113 cat conftest.err >&5
a848cd7e
SC
17114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17115 (exit $ac_status); } &&
5d7b7554 17116 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17118 (eval $ac_try) 2>&5
17119 ac_status=$?
17120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17121 (exit $ac_status); }; } &&
17122 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17124 (eval $ac_try) 2>&5
17125 ac_status=$?
17126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17127 (exit $ac_status); }; }; then
17128 ac_cv_c_inline=$ac_kw; break
17129else
17130 echo "$as_me: failed program was:" >&5
17131sed 's/^/| /' conftest.$ac_ext >&5
17132
17133fi
ac1cb8d3 17134rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17135done
17136
17137fi
17138echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
17139echo "${ECHO_T}$ac_cv_c_inline" >&6
ac1cb8d3
VS
17140
17141
a848cd7e
SC
17142case $ac_cv_c_inline in
17143 inline | yes) ;;
ac1cb8d3
VS
17144 *)
17145 case $ac_cv_c_inline in
17146 no) ac_val=;;
17147 *) ac_val=$ac_cv_c_inline;;
17148 esac
17149 cat >>confdefs.h <<_ACEOF
17150#ifndef __cplusplus
17151#define inline $ac_val
17152#endif
de59c161 17153_ACEOF
ac1cb8d3 17154 ;;
a848cd7e
SC
17155esac
17156
17157
17158echo "$as_me:$LINENO: checking for char" >&5
17159echo $ECHO_N "checking for char... $ECHO_C" >&6
17160if test "${ac_cv_type_char+set}" = set; then
17161 echo $ECHO_N "(cached) $ECHO_C" >&6
17162else
17163 cat >conftest.$ac_ext <<_ACEOF
17164/* confdefs.h. */
17165_ACEOF
17166cat confdefs.h >>conftest.$ac_ext
17167cat >>conftest.$ac_ext <<_ACEOF
17168/* end confdefs.h. */
17169$ac_includes_default
17170int
17171main ()
17172{
17173if ((char *) 0)
17174 return 0;
17175if (sizeof (char))
17176 return 0;
17177 ;
17178 return 0;
17179}
17180_ACEOF
17181rm -f conftest.$ac_objext
17182if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17183 (eval $ac_compile) 2>conftest.er1
a848cd7e 17184 ac_status=$?
ac1cb8d3
VS
17185 grep -v '^ *+' conftest.er1 >conftest.err
17186 rm -f conftest.er1
17187 cat conftest.err >&5
a848cd7e
SC
17188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17189 (exit $ac_status); } &&
5d7b7554 17190 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
17196 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17198 (eval $ac_try) 2>&5
17199 ac_status=$?
17200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17201 (exit $ac_status); }; }; then
17202 ac_cv_type_char=yes
17203else
17204 echo "$as_me: failed program was:" >&5
17205sed 's/^/| /' conftest.$ac_ext >&5
17206
17207ac_cv_type_char=no
17208fi
ac1cb8d3 17209rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17210fi
17211echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
17212echo "${ECHO_T}$ac_cv_type_char" >&6
17213
17214echo "$as_me:$LINENO: checking size of char" >&5
17215echo $ECHO_N "checking size of char... $ECHO_C" >&6
17216if test "${ac_cv_sizeof_char+set}" = set; then
17217 echo $ECHO_N "(cached) $ECHO_C" >&6
17218else
17219 if test "$ac_cv_type_char" = yes; then
17220 # The cast to unsigned long works around a bug in the HP C Compiler
17221 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17222 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17223 # This bug is HP SR number 8606223364.
17224 if test "$cross_compiling" = yes; then
17225 # Depending upon the size, compute the lo and hi bounds.
17226cat >conftest.$ac_ext <<_ACEOF
17227/* confdefs.h. */
17228_ACEOF
17229cat confdefs.h >>conftest.$ac_ext
17230cat >>conftest.$ac_ext <<_ACEOF
17231/* end confdefs.h. */
17232$ac_includes_default
17233int
17234main ()
17235{
17236static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
17237test_array [0] = 0
17238
17239 ;
17240 return 0;
17241}
17242_ACEOF
17243rm -f conftest.$ac_objext
17244if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17245 (eval $ac_compile) 2>conftest.er1
a848cd7e 17246 ac_status=$?
ac1cb8d3
VS
17247 grep -v '^ *+' conftest.er1 >conftest.err
17248 rm -f conftest.er1
17249 cat conftest.err >&5
a848cd7e
SC
17250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17251 (exit $ac_status); } &&
5d7b7554 17252 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17254 (eval $ac_try) 2>&5
17255 ac_status=$?
17256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17257 (exit $ac_status); }; } &&
17258 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17260 (eval $ac_try) 2>&5
17261 ac_status=$?
17262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17263 (exit $ac_status); }; }; then
17264 ac_lo=0 ac_mid=0
17265 while :; do
17266 cat >conftest.$ac_ext <<_ACEOF
17267/* confdefs.h. */
17268_ACEOF
17269cat confdefs.h >>conftest.$ac_ext
17270cat >>conftest.$ac_ext <<_ACEOF
17271/* end confdefs.h. */
17272$ac_includes_default
17273int
17274main ()
17275{
17276static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
17277test_array [0] = 0
17278
17279 ;
17280 return 0;
17281}
17282_ACEOF
17283rm -f conftest.$ac_objext
17284if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17285 (eval $ac_compile) 2>conftest.er1
a848cd7e 17286 ac_status=$?
ac1cb8d3
VS
17287 grep -v '^ *+' conftest.er1 >conftest.err
17288 rm -f conftest.er1
17289 cat conftest.err >&5
a848cd7e
SC
17290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17291 (exit $ac_status); } &&
5d7b7554 17292 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17294 (eval $ac_try) 2>&5
17295 ac_status=$?
17296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17297 (exit $ac_status); }; } &&
17298 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17300 (eval $ac_try) 2>&5
17301 ac_status=$?
17302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17303 (exit $ac_status); }; }; then
17304 ac_hi=$ac_mid; break
17305else
17306 echo "$as_me: failed program was:" >&5
17307sed 's/^/| /' conftest.$ac_ext >&5
17308
17309ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17310 if test $ac_lo -le $ac_mid; then
17311 ac_lo= ac_hi=
17312 break
17313 fi
17314 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17315fi
ac1cb8d3 17316rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17317 done
17318else
17319 echo "$as_me: failed program was:" >&5
17320sed 's/^/| /' conftest.$ac_ext >&5
17321
17322cat >conftest.$ac_ext <<_ACEOF
17323/* confdefs.h. */
17324_ACEOF
17325cat confdefs.h >>conftest.$ac_ext
17326cat >>conftest.$ac_ext <<_ACEOF
17327/* end confdefs.h. */
17328$ac_includes_default
17329int
17330main ()
17331{
17332static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
17333test_array [0] = 0
17334
17335 ;
17336 return 0;
17337}
17338_ACEOF
17339rm -f conftest.$ac_objext
17340if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17341 (eval $ac_compile) 2>conftest.er1
a848cd7e 17342 ac_status=$?
ac1cb8d3
VS
17343 grep -v '^ *+' conftest.er1 >conftest.err
17344 rm -f conftest.er1
17345 cat conftest.err >&5
a848cd7e
SC
17346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17347 (exit $ac_status); } &&
5d7b7554 17348 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17350 (eval $ac_try) 2>&5
17351 ac_status=$?
17352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17353 (exit $ac_status); }; } &&
17354 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17356 (eval $ac_try) 2>&5
17357 ac_status=$?
17358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17359 (exit $ac_status); }; }; then
17360 ac_hi=-1 ac_mid=-1
17361 while :; do
17362 cat >conftest.$ac_ext <<_ACEOF
17363/* confdefs.h. */
17364_ACEOF
17365cat confdefs.h >>conftest.$ac_ext
17366cat >>conftest.$ac_ext <<_ACEOF
17367/* end confdefs.h. */
17368$ac_includes_default
17369int
17370main ()
17371{
17372static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
17373test_array [0] = 0
17374
17375 ;
17376 return 0;
17377}
17378_ACEOF
17379rm -f conftest.$ac_objext
17380if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17381 (eval $ac_compile) 2>conftest.er1
a848cd7e 17382 ac_status=$?
ac1cb8d3
VS
17383 grep -v '^ *+' conftest.er1 >conftest.err
17384 rm -f conftest.er1
17385 cat conftest.err >&5
a848cd7e
SC
17386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17387 (exit $ac_status); } &&
5d7b7554 17388 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17390 (eval $ac_try) 2>&5
17391 ac_status=$?
17392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17393 (exit $ac_status); }; } &&
17394 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17396 (eval $ac_try) 2>&5
17397 ac_status=$?
17398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17399 (exit $ac_status); }; }; then
17400 ac_lo=$ac_mid; break
17401else
17402 echo "$as_me: failed program was:" >&5
17403sed 's/^/| /' conftest.$ac_ext >&5
17404
17405ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17406 if test $ac_mid -le $ac_hi; then
17407 ac_lo= ac_hi=
17408 break
17409 fi
17410 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17411fi
ac1cb8d3 17412rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17413 done
17414else
17415 echo "$as_me: failed program was:" >&5
17416sed 's/^/| /' conftest.$ac_ext >&5
17417
17418ac_lo= ac_hi=
17419fi
ac1cb8d3 17420rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17421fi
ac1cb8d3 17422rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17423# Binary search between lo and hi bounds.
17424while test "x$ac_lo" != "x$ac_hi"; do
17425 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17426 cat >conftest.$ac_ext <<_ACEOF
17427/* confdefs.h. */
17428_ACEOF
17429cat confdefs.h >>conftest.$ac_ext
17430cat >>conftest.$ac_ext <<_ACEOF
17431/* end confdefs.h. */
17432$ac_includes_default
17433int
17434main ()
17435{
17436static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
17437test_array [0] = 0
17438
17439 ;
17440 return 0;
17441}
17442_ACEOF
17443rm -f conftest.$ac_objext
17444if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17445 (eval $ac_compile) 2>conftest.er1
a848cd7e 17446 ac_status=$?
ac1cb8d3
VS
17447 grep -v '^ *+' conftest.er1 >conftest.err
17448 rm -f conftest.er1
17449 cat conftest.err >&5
a848cd7e
SC
17450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17451 (exit $ac_status); } &&
5d7b7554 17452 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17454 (eval $ac_try) 2>&5
17455 ac_status=$?
17456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17457 (exit $ac_status); }; } &&
17458 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17460 (eval $ac_try) 2>&5
17461 ac_status=$?
17462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17463 (exit $ac_status); }; }; then
17464 ac_hi=$ac_mid
17465else
17466 echo "$as_me: failed program was:" >&5
17467sed 's/^/| /' conftest.$ac_ext >&5
17468
17469ac_lo=`expr '(' $ac_mid ')' + 1`
17470fi
ac1cb8d3 17471rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17472done
17473case $ac_lo in
17474?*) ac_cv_sizeof_char=$ac_lo;;
17475'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
17476See \`config.log' for more details." >&5
17477echo "$as_me: error: cannot compute sizeof (char), 77
17478See \`config.log' for more details." >&2;}
17479 { (exit 1); exit 1; }; } ;;
17480esac
17481else
17482 if test "$cross_compiling" = yes; then
5d7b7554
VZ
17483 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17484echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
17485 { (exit 1); exit 1; }; }
17486else
17487 cat >conftest.$ac_ext <<_ACEOF
17488/* confdefs.h. */
17489_ACEOF
17490cat confdefs.h >>conftest.$ac_ext
17491cat >>conftest.$ac_ext <<_ACEOF
17492/* end confdefs.h. */
17493$ac_includes_default
17494long longval () { return (long) (sizeof (char)); }
17495unsigned long ulongval () { return (long) (sizeof (char)); }
17496#include <stdio.h>
17497#include <stdlib.h>
17498int
17499main ()
17500{
17501
17502 FILE *f = fopen ("conftest.val", "w");
17503 if (! f)
17504 exit (1);
17505 if (((long) (sizeof (char))) < 0)
17506 {
17507 long i = longval ();
17508 if (i != ((long) (sizeof (char))))
17509 exit (1);
17510 fprintf (f, "%ld\n", i);
17511 }
17512 else
17513 {
17514 unsigned long i = ulongval ();
17515 if (i != ((long) (sizeof (char))))
17516 exit (1);
17517 fprintf (f, "%lu\n", i);
17518 }
17519 exit (ferror (f) || fclose (f) != 0);
17520
17521 ;
17522 return 0;
17523}
17524_ACEOF
17525rm -f conftest$ac_exeext
17526if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17527 (eval $ac_link) 2>&5
17528 ac_status=$?
17529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17530 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17532 (eval $ac_try) 2>&5
17533 ac_status=$?
17534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17535 (exit $ac_status); }; }; then
17536 ac_cv_sizeof_char=`cat conftest.val`
17537else
17538 echo "$as_me: program exited with status $ac_status" >&5
17539echo "$as_me: failed program was:" >&5
17540sed 's/^/| /' conftest.$ac_ext >&5
17541
17542( exit $ac_status )
17543{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
17544See \`config.log' for more details." >&5
17545echo "$as_me: error: cannot compute sizeof (char), 77
17546See \`config.log' for more details." >&2;}
17547 { (exit 1); exit 1; }; }
17548fi
ac1cb8d3 17549rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17550fi
17551fi
17552rm -f conftest.val
17553else
17554 ac_cv_sizeof_char=0
17555fi
17556fi
17557echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
17558echo "${ECHO_T}$ac_cv_sizeof_char" >&6
17559cat >>confdefs.h <<_ACEOF
17560#define SIZEOF_CHAR $ac_cv_sizeof_char
17561_ACEOF
17562
17563
17564echo "$as_me:$LINENO: checking for short" >&5
17565echo $ECHO_N "checking for short... $ECHO_C" >&6
17566if test "${ac_cv_type_short+set}" = set; then
17567 echo $ECHO_N "(cached) $ECHO_C" >&6
17568else
17569 cat >conftest.$ac_ext <<_ACEOF
17570/* confdefs.h. */
17571_ACEOF
17572cat confdefs.h >>conftest.$ac_ext
17573cat >>conftest.$ac_ext <<_ACEOF
17574/* end confdefs.h. */
17575$ac_includes_default
17576int
17577main ()
17578{
17579if ((short *) 0)
17580 return 0;
17581if (sizeof (short))
17582 return 0;
17583 ;
17584 return 0;
17585}
17586_ACEOF
17587rm -f conftest.$ac_objext
17588if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17589 (eval $ac_compile) 2>conftest.er1
a848cd7e 17590 ac_status=$?
ac1cb8d3
VS
17591 grep -v '^ *+' conftest.er1 >conftest.err
17592 rm -f conftest.er1
17593 cat conftest.err >&5
a848cd7e
SC
17594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17595 (exit $ac_status); } &&
5d7b7554 17596 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
17602 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17604 (eval $ac_try) 2>&5
17605 ac_status=$?
17606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17607 (exit $ac_status); }; }; then
17608 ac_cv_type_short=yes
17609else
17610 echo "$as_me: failed program was:" >&5
17611sed 's/^/| /' conftest.$ac_ext >&5
17612
17613ac_cv_type_short=no
17614fi
ac1cb8d3 17615rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17616fi
17617echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
17618echo "${ECHO_T}$ac_cv_type_short" >&6
17619
17620echo "$as_me:$LINENO: checking size of short" >&5
17621echo $ECHO_N "checking size of short... $ECHO_C" >&6
17622if test "${ac_cv_sizeof_short+set}" = set; then
17623 echo $ECHO_N "(cached) $ECHO_C" >&6
17624else
17625 if test "$ac_cv_type_short" = yes; then
17626 # The cast to unsigned long works around a bug in the HP C Compiler
17627 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17628 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17629 # This bug is HP SR number 8606223364.
17630 if test "$cross_compiling" = yes; then
17631 # Depending upon the size, compute the lo and hi bounds.
17632cat >conftest.$ac_ext <<_ACEOF
17633/* confdefs.h. */
17634_ACEOF
17635cat confdefs.h >>conftest.$ac_ext
17636cat >>conftest.$ac_ext <<_ACEOF
17637/* end confdefs.h. */
17638$ac_includes_default
17639int
17640main ()
17641{
17642static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
17643test_array [0] = 0
17644
17645 ;
17646 return 0;
17647}
17648_ACEOF
17649rm -f conftest.$ac_objext
17650if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17651 (eval $ac_compile) 2>conftest.er1
a848cd7e 17652 ac_status=$?
ac1cb8d3
VS
17653 grep -v '^ *+' conftest.er1 >conftest.err
17654 rm -f conftest.er1
17655 cat conftest.err >&5
a848cd7e
SC
17656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17657 (exit $ac_status); } &&
5d7b7554 17658 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17660 (eval $ac_try) 2>&5
17661 ac_status=$?
17662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17663 (exit $ac_status); }; } &&
17664 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17666 (eval $ac_try) 2>&5
17667 ac_status=$?
17668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17669 (exit $ac_status); }; }; then
17670 ac_lo=0 ac_mid=0
17671 while :; do
17672 cat >conftest.$ac_ext <<_ACEOF
17673/* confdefs.h. */
17674_ACEOF
17675cat confdefs.h >>conftest.$ac_ext
17676cat >>conftest.$ac_ext <<_ACEOF
17677/* end confdefs.h. */
17678$ac_includes_default
17679int
17680main ()
17681{
17682static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
17683test_array [0] = 0
17684
17685 ;
17686 return 0;
17687}
17688_ACEOF
17689rm -f conftest.$ac_objext
17690if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17691 (eval $ac_compile) 2>conftest.er1
a848cd7e 17692 ac_status=$?
ac1cb8d3
VS
17693 grep -v '^ *+' conftest.er1 >conftest.err
17694 rm -f conftest.er1
17695 cat conftest.err >&5
a848cd7e
SC
17696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17697 (exit $ac_status); } &&
5d7b7554 17698 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17700 (eval $ac_try) 2>&5
17701 ac_status=$?
17702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17703 (exit $ac_status); }; } &&
17704 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17706 (eval $ac_try) 2>&5
17707 ac_status=$?
17708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17709 (exit $ac_status); }; }; then
17710 ac_hi=$ac_mid; break
17711else
17712 echo "$as_me: failed program was:" >&5
17713sed 's/^/| /' conftest.$ac_ext >&5
17714
17715ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17716 if test $ac_lo -le $ac_mid; then
17717 ac_lo= ac_hi=
17718 break
17719 fi
17720 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17721fi
ac1cb8d3 17722rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17723 done
17724else
17725 echo "$as_me: failed program was:" >&5
17726sed 's/^/| /' conftest.$ac_ext >&5
17727
17728cat >conftest.$ac_ext <<_ACEOF
17729/* confdefs.h. */
17730_ACEOF
17731cat confdefs.h >>conftest.$ac_ext
17732cat >>conftest.$ac_ext <<_ACEOF
17733/* end confdefs.h. */
17734$ac_includes_default
17735int
17736main ()
17737{
17738static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
17739test_array [0] = 0
17740
17741 ;
17742 return 0;
17743}
17744_ACEOF
17745rm -f conftest.$ac_objext
17746if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17747 (eval $ac_compile) 2>conftest.er1
a848cd7e 17748 ac_status=$?
ac1cb8d3
VS
17749 grep -v '^ *+' conftest.er1 >conftest.err
17750 rm -f conftest.er1
17751 cat conftest.err >&5
a848cd7e
SC
17752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17753 (exit $ac_status); } &&
5d7b7554 17754 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17756 (eval $ac_try) 2>&5
17757 ac_status=$?
17758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17759 (exit $ac_status); }; } &&
17760 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17762 (eval $ac_try) 2>&5
17763 ac_status=$?
17764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17765 (exit $ac_status); }; }; then
17766 ac_hi=-1 ac_mid=-1
17767 while :; do
17768 cat >conftest.$ac_ext <<_ACEOF
17769/* confdefs.h. */
17770_ACEOF
17771cat confdefs.h >>conftest.$ac_ext
17772cat >>conftest.$ac_ext <<_ACEOF
17773/* end confdefs.h. */
17774$ac_includes_default
17775int
17776main ()
17777{
17778static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
17779test_array [0] = 0
17780
17781 ;
17782 return 0;
17783}
17784_ACEOF
17785rm -f conftest.$ac_objext
17786if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17787 (eval $ac_compile) 2>conftest.er1
a848cd7e 17788 ac_status=$?
ac1cb8d3
VS
17789 grep -v '^ *+' conftest.er1 >conftest.err
17790 rm -f conftest.er1
17791 cat conftest.err >&5
a848cd7e
SC
17792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17793 (exit $ac_status); } &&
5d7b7554 17794 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17796 (eval $ac_try) 2>&5
17797 ac_status=$?
17798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17799 (exit $ac_status); }; } &&
17800 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17802 (eval $ac_try) 2>&5
17803 ac_status=$?
17804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17805 (exit $ac_status); }; }; then
17806 ac_lo=$ac_mid; break
17807else
17808 echo "$as_me: failed program was:" >&5
17809sed 's/^/| /' conftest.$ac_ext >&5
17810
17811ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17812 if test $ac_mid -le $ac_hi; then
17813 ac_lo= ac_hi=
17814 break
17815 fi
17816 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17817fi
ac1cb8d3 17818rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17819 done
17820else
17821 echo "$as_me: failed program was:" >&5
17822sed 's/^/| /' conftest.$ac_ext >&5
17823
17824ac_lo= ac_hi=
17825fi
ac1cb8d3 17826rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17827fi
ac1cb8d3 17828rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17829# Binary search between lo and hi bounds.
17830while test "x$ac_lo" != "x$ac_hi"; do
17831 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17832 cat >conftest.$ac_ext <<_ACEOF
17833/* confdefs.h. */
17834_ACEOF
17835cat confdefs.h >>conftest.$ac_ext
17836cat >>conftest.$ac_ext <<_ACEOF
17837/* end confdefs.h. */
17838$ac_includes_default
17839int
17840main ()
17841{
17842static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
17843test_array [0] = 0
17844
17845 ;
17846 return 0;
17847}
17848_ACEOF
17849rm -f conftest.$ac_objext
17850if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17851 (eval $ac_compile) 2>conftest.er1
a848cd7e 17852 ac_status=$?
ac1cb8d3
VS
17853 grep -v '^ *+' conftest.er1 >conftest.err
17854 rm -f conftest.er1
17855 cat conftest.err >&5
a848cd7e
SC
17856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17857 (exit $ac_status); } &&
5d7b7554 17858 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17860 (eval $ac_try) 2>&5
17861 ac_status=$?
17862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17863 (exit $ac_status); }; } &&
17864 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17866 (eval $ac_try) 2>&5
17867 ac_status=$?
17868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17869 (exit $ac_status); }; }; then
17870 ac_hi=$ac_mid
17871else
17872 echo "$as_me: failed program was:" >&5
17873sed 's/^/| /' conftest.$ac_ext >&5
17874
17875ac_lo=`expr '(' $ac_mid ')' + 1`
17876fi
ac1cb8d3 17877rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17878done
17879case $ac_lo in
17880?*) ac_cv_sizeof_short=$ac_lo;;
17881'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
17882See \`config.log' for more details." >&5
17883echo "$as_me: error: cannot compute sizeof (short), 77
17884See \`config.log' for more details." >&2;}
17885 { (exit 1); exit 1; }; } ;;
17886esac
17887else
17888 if test "$cross_compiling" = yes; then
5d7b7554
VZ
17889 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17890echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
17891 { (exit 1); exit 1; }; }
17892else
17893 cat >conftest.$ac_ext <<_ACEOF
17894/* confdefs.h. */
17895_ACEOF
17896cat confdefs.h >>conftest.$ac_ext
17897cat >>conftest.$ac_ext <<_ACEOF
17898/* end confdefs.h. */
17899$ac_includes_default
17900long longval () { return (long) (sizeof (short)); }
17901unsigned long ulongval () { return (long) (sizeof (short)); }
17902#include <stdio.h>
17903#include <stdlib.h>
17904int
17905main ()
17906{
17907
17908 FILE *f = fopen ("conftest.val", "w");
17909 if (! f)
17910 exit (1);
17911 if (((long) (sizeof (short))) < 0)
17912 {
17913 long i = longval ();
17914 if (i != ((long) (sizeof (short))))
17915 exit (1);
17916 fprintf (f, "%ld\n", i);
17917 }
17918 else
17919 {
17920 unsigned long i = ulongval ();
17921 if (i != ((long) (sizeof (short))))
17922 exit (1);
17923 fprintf (f, "%lu\n", i);
17924 }
17925 exit (ferror (f) || fclose (f) != 0);
17926
17927 ;
17928 return 0;
17929}
17930_ACEOF
17931rm -f conftest$ac_exeext
17932if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17933 (eval $ac_link) 2>&5
17934 ac_status=$?
17935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17936 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17938 (eval $ac_try) 2>&5
17939 ac_status=$?
17940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17941 (exit $ac_status); }; }; then
17942 ac_cv_sizeof_short=`cat conftest.val`
17943else
17944 echo "$as_me: program exited with status $ac_status" >&5
17945echo "$as_me: failed program was:" >&5
17946sed 's/^/| /' conftest.$ac_ext >&5
17947
17948( exit $ac_status )
17949{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
17950See \`config.log' for more details." >&5
17951echo "$as_me: error: cannot compute sizeof (short), 77
17952See \`config.log' for more details." >&2;}
17953 { (exit 1); exit 1; }; }
17954fi
ac1cb8d3 17955rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17956fi
17957fi
17958rm -f conftest.val
17959else
17960 ac_cv_sizeof_short=0
17961fi
17962fi
17963echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
17964echo "${ECHO_T}$ac_cv_sizeof_short" >&6
17965cat >>confdefs.h <<_ACEOF
17966#define SIZEOF_SHORT $ac_cv_sizeof_short
17967_ACEOF
17968
17969
17970echo "$as_me:$LINENO: checking for void *" >&5
17971echo $ECHO_N "checking for void *... $ECHO_C" >&6
17972if test "${ac_cv_type_void_p+set}" = set; then
17973 echo $ECHO_N "(cached) $ECHO_C" >&6
17974else
17975 cat >conftest.$ac_ext <<_ACEOF
17976/* confdefs.h. */
17977_ACEOF
17978cat confdefs.h >>conftest.$ac_ext
17979cat >>conftest.$ac_ext <<_ACEOF
17980/* end confdefs.h. */
17981$ac_includes_default
17982int
17983main ()
17984{
17985if ((void * *) 0)
17986 return 0;
17987if (sizeof (void *))
17988 return 0;
17989 ;
17990 return 0;
17991}
17992_ACEOF
17993rm -f conftest.$ac_objext
17994if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17995 (eval $ac_compile) 2>conftest.er1
a848cd7e 17996 ac_status=$?
ac1cb8d3
VS
17997 grep -v '^ *+' conftest.er1 >conftest.err
17998 rm -f conftest.er1
17999 cat conftest.err >&5
a848cd7e
SC
18000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18001 (exit $ac_status); } &&
5d7b7554 18002 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
18008 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18010 (eval $ac_try) 2>&5
18011 ac_status=$?
18012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18013 (exit $ac_status); }; }; then
18014 ac_cv_type_void_p=yes
18015else
18016 echo "$as_me: failed program was:" >&5
18017sed 's/^/| /' conftest.$ac_ext >&5
18018
18019ac_cv_type_void_p=no
18020fi
ac1cb8d3 18021rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18022fi
18023echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
18024echo "${ECHO_T}$ac_cv_type_void_p" >&6
18025
18026echo "$as_me:$LINENO: checking size of void *" >&5
18027echo $ECHO_N "checking size of void *... $ECHO_C" >&6
18028if test "${ac_cv_sizeof_void_p+set}" = set; then
18029 echo $ECHO_N "(cached) $ECHO_C" >&6
18030else
18031 if test "$ac_cv_type_void_p" = yes; then
18032 # The cast to unsigned long works around a bug in the HP C Compiler
18033 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18034 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18035 # This bug is HP SR number 8606223364.
18036 if test "$cross_compiling" = yes; then
18037 # Depending upon the size, compute the lo and hi bounds.
18038cat >conftest.$ac_ext <<_ACEOF
18039/* confdefs.h. */
18040_ACEOF
18041cat confdefs.h >>conftest.$ac_ext
18042cat >>conftest.$ac_ext <<_ACEOF
18043/* end confdefs.h. */
18044$ac_includes_default
18045int
18046main ()
18047{
18048static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
18049test_array [0] = 0
18050
18051 ;
18052 return 0;
18053}
18054_ACEOF
18055rm -f conftest.$ac_objext
18056if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18057 (eval $ac_compile) 2>conftest.er1
a848cd7e 18058 ac_status=$?
ac1cb8d3
VS
18059 grep -v '^ *+' conftest.er1 >conftest.err
18060 rm -f conftest.er1
18061 cat conftest.err >&5
a848cd7e
SC
18062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18063 (exit $ac_status); } &&
5d7b7554 18064 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18066 (eval $ac_try) 2>&5
18067 ac_status=$?
18068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18069 (exit $ac_status); }; } &&
18070 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18072 (eval $ac_try) 2>&5
18073 ac_status=$?
18074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18075 (exit $ac_status); }; }; then
18076 ac_lo=0 ac_mid=0
18077 while :; do
18078 cat >conftest.$ac_ext <<_ACEOF
18079/* confdefs.h. */
18080_ACEOF
18081cat confdefs.h >>conftest.$ac_ext
18082cat >>conftest.$ac_ext <<_ACEOF
18083/* end confdefs.h. */
18084$ac_includes_default
18085int
18086main ()
18087{
18088static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
18089test_array [0] = 0
18090
18091 ;
18092 return 0;
18093}
18094_ACEOF
18095rm -f conftest.$ac_objext
18096if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18097 (eval $ac_compile) 2>conftest.er1
a848cd7e 18098 ac_status=$?
ac1cb8d3
VS
18099 grep -v '^ *+' conftest.er1 >conftest.err
18100 rm -f conftest.er1
18101 cat conftest.err >&5
a848cd7e
SC
18102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18103 (exit $ac_status); } &&
5d7b7554 18104 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18106 (eval $ac_try) 2>&5
18107 ac_status=$?
18108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18109 (exit $ac_status); }; } &&
18110 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18112 (eval $ac_try) 2>&5
18113 ac_status=$?
18114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18115 (exit $ac_status); }; }; then
18116 ac_hi=$ac_mid; break
18117else
18118 echo "$as_me: failed program was:" >&5
18119sed 's/^/| /' conftest.$ac_ext >&5
18120
18121ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18122 if test $ac_lo -le $ac_mid; then
18123 ac_lo= ac_hi=
18124 break
18125 fi
18126 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18127fi
ac1cb8d3 18128rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18129 done
18130else
18131 echo "$as_me: failed program was:" >&5
18132sed 's/^/| /' conftest.$ac_ext >&5
18133
18134cat >conftest.$ac_ext <<_ACEOF
18135/* confdefs.h. */
18136_ACEOF
18137cat confdefs.h >>conftest.$ac_ext
18138cat >>conftest.$ac_ext <<_ACEOF
18139/* end confdefs.h. */
18140$ac_includes_default
18141int
18142main ()
18143{
18144static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
18145test_array [0] = 0
18146
18147 ;
18148 return 0;
18149}
18150_ACEOF
18151rm -f conftest.$ac_objext
18152if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18153 (eval $ac_compile) 2>conftest.er1
a848cd7e 18154 ac_status=$?
ac1cb8d3
VS
18155 grep -v '^ *+' conftest.er1 >conftest.err
18156 rm -f conftest.er1
18157 cat conftest.err >&5
a848cd7e
SC
18158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18159 (exit $ac_status); } &&
5d7b7554 18160 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18162 (eval $ac_try) 2>&5
18163 ac_status=$?
18164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18165 (exit $ac_status); }; } &&
18166 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18168 (eval $ac_try) 2>&5
18169 ac_status=$?
18170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18171 (exit $ac_status); }; }; then
18172 ac_hi=-1 ac_mid=-1
18173 while :; do
18174 cat >conftest.$ac_ext <<_ACEOF
18175/* confdefs.h. */
18176_ACEOF
18177cat confdefs.h >>conftest.$ac_ext
18178cat >>conftest.$ac_ext <<_ACEOF
18179/* end confdefs.h. */
18180$ac_includes_default
18181int
18182main ()
18183{
18184static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
18185test_array [0] = 0
18186
18187 ;
18188 return 0;
18189}
18190_ACEOF
18191rm -f conftest.$ac_objext
18192if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18193 (eval $ac_compile) 2>conftest.er1
a848cd7e 18194 ac_status=$?
ac1cb8d3
VS
18195 grep -v '^ *+' conftest.er1 >conftest.err
18196 rm -f conftest.er1
18197 cat conftest.err >&5
a848cd7e
SC
18198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18199 (exit $ac_status); } &&
5d7b7554 18200 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18202 (eval $ac_try) 2>&5
18203 ac_status=$?
18204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18205 (exit $ac_status); }; } &&
18206 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18208 (eval $ac_try) 2>&5
18209 ac_status=$?
18210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18211 (exit $ac_status); }; }; then
18212 ac_lo=$ac_mid; break
18213else
18214 echo "$as_me: failed program was:" >&5
18215sed 's/^/| /' conftest.$ac_ext >&5
18216
18217ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18218 if test $ac_mid -le $ac_hi; then
18219 ac_lo= ac_hi=
18220 break
18221 fi
18222 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18223fi
ac1cb8d3 18224rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18225 done
18226else
18227 echo "$as_me: failed program was:" >&5
18228sed 's/^/| /' conftest.$ac_ext >&5
18229
18230ac_lo= ac_hi=
18231fi
ac1cb8d3 18232rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18233fi
ac1cb8d3 18234rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18235# Binary search between lo and hi bounds.
18236while test "x$ac_lo" != "x$ac_hi"; do
18237 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18238 cat >conftest.$ac_ext <<_ACEOF
18239/* confdefs.h. */
18240_ACEOF
18241cat confdefs.h >>conftest.$ac_ext
18242cat >>conftest.$ac_ext <<_ACEOF
18243/* end confdefs.h. */
18244$ac_includes_default
18245int
18246main ()
18247{
18248static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
18249test_array [0] = 0
18250
18251 ;
18252 return 0;
18253}
18254_ACEOF
18255rm -f conftest.$ac_objext
18256if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18257 (eval $ac_compile) 2>conftest.er1
a848cd7e 18258 ac_status=$?
ac1cb8d3
VS
18259 grep -v '^ *+' conftest.er1 >conftest.err
18260 rm -f conftest.er1
18261 cat conftest.err >&5
a848cd7e
SC
18262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18263 (exit $ac_status); } &&
5d7b7554 18264 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18266 (eval $ac_try) 2>&5
18267 ac_status=$?
18268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18269 (exit $ac_status); }; } &&
18270 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18272 (eval $ac_try) 2>&5
18273 ac_status=$?
18274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18275 (exit $ac_status); }; }; then
18276 ac_hi=$ac_mid
18277else
18278 echo "$as_me: failed program was:" >&5
18279sed 's/^/| /' conftest.$ac_ext >&5
18280
18281ac_lo=`expr '(' $ac_mid ')' + 1`
18282fi
ac1cb8d3 18283rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18284done
18285case $ac_lo in
18286?*) ac_cv_sizeof_void_p=$ac_lo;;
18287'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
18288See \`config.log' for more details." >&5
18289echo "$as_me: error: cannot compute sizeof (void *), 77
18290See \`config.log' for more details." >&2;}
18291 { (exit 1); exit 1; }; } ;;
18292esac
18293else
18294 if test "$cross_compiling" = yes; then
5d7b7554
VZ
18295 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18296echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
18297 { (exit 1); exit 1; }; }
18298else
18299 cat >conftest.$ac_ext <<_ACEOF
18300/* confdefs.h. */
18301_ACEOF
18302cat confdefs.h >>conftest.$ac_ext
18303cat >>conftest.$ac_ext <<_ACEOF
18304/* end confdefs.h. */
18305$ac_includes_default
18306long longval () { return (long) (sizeof (void *)); }
18307unsigned long ulongval () { return (long) (sizeof (void *)); }
18308#include <stdio.h>
18309#include <stdlib.h>
18310int
18311main ()
18312{
18313
18314 FILE *f = fopen ("conftest.val", "w");
18315 if (! f)
18316 exit (1);
18317 if (((long) (sizeof (void *))) < 0)
18318 {
18319 long i = longval ();
18320 if (i != ((long) (sizeof (void *))))
18321 exit (1);
18322 fprintf (f, "%ld\n", i);
18323 }
18324 else
18325 {
18326 unsigned long i = ulongval ();
18327 if (i != ((long) (sizeof (void *))))
18328 exit (1);
18329 fprintf (f, "%lu\n", i);
18330 }
18331 exit (ferror (f) || fclose (f) != 0);
18332
18333 ;
18334 return 0;
18335}
18336_ACEOF
18337rm -f conftest$ac_exeext
18338if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18339 (eval $ac_link) 2>&5
18340 ac_status=$?
18341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18342 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18344 (eval $ac_try) 2>&5
18345 ac_status=$?
18346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18347 (exit $ac_status); }; }; then
18348 ac_cv_sizeof_void_p=`cat conftest.val`
18349else
18350 echo "$as_me: program exited with status $ac_status" >&5
18351echo "$as_me: failed program was:" >&5
18352sed 's/^/| /' conftest.$ac_ext >&5
18353
18354( exit $ac_status )
18355{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
18356See \`config.log' for more details." >&5
18357echo "$as_me: error: cannot compute sizeof (void *), 77
18358See \`config.log' for more details." >&2;}
18359 { (exit 1); exit 1; }; }
18360fi
ac1cb8d3 18361rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18362fi
18363fi
18364rm -f conftest.val
18365else
18366 ac_cv_sizeof_void_p=0
18367fi
18368fi
18369echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
18370echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
18371cat >>confdefs.h <<_ACEOF
18372#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
18373_ACEOF
18374
18375
18376echo "$as_me:$LINENO: checking for int" >&5
18377echo $ECHO_N "checking for int... $ECHO_C" >&6
18378if test "${ac_cv_type_int+set}" = set; then
18379 echo $ECHO_N "(cached) $ECHO_C" >&6
18380else
18381 cat >conftest.$ac_ext <<_ACEOF
18382/* confdefs.h. */
18383_ACEOF
18384cat confdefs.h >>conftest.$ac_ext
18385cat >>conftest.$ac_ext <<_ACEOF
18386/* end confdefs.h. */
18387$ac_includes_default
18388int
18389main ()
18390{
18391if ((int *) 0)
18392 return 0;
18393if (sizeof (int))
18394 return 0;
18395 ;
18396 return 0;
18397}
18398_ACEOF
18399rm -f conftest.$ac_objext
18400if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18401 (eval $ac_compile) 2>conftest.er1
a848cd7e 18402 ac_status=$?
ac1cb8d3
VS
18403 grep -v '^ *+' conftest.er1 >conftest.err
18404 rm -f conftest.er1
18405 cat conftest.err >&5
a848cd7e
SC
18406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18407 (exit $ac_status); } &&
5d7b7554 18408 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
18414 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18416 (eval $ac_try) 2>&5
18417 ac_status=$?
18418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18419 (exit $ac_status); }; }; then
18420 ac_cv_type_int=yes
18421else
18422 echo "$as_me: failed program was:" >&5
18423sed 's/^/| /' conftest.$ac_ext >&5
18424
18425ac_cv_type_int=no
18426fi
ac1cb8d3 18427rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18428fi
18429echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
18430echo "${ECHO_T}$ac_cv_type_int" >&6
18431
18432echo "$as_me:$LINENO: checking size of int" >&5
18433echo $ECHO_N "checking size of int... $ECHO_C" >&6
18434if test "${ac_cv_sizeof_int+set}" = set; then
18435 echo $ECHO_N "(cached) $ECHO_C" >&6
18436else
18437 if test "$ac_cv_type_int" = yes; then
18438 # The cast to unsigned long works around a bug in the HP C Compiler
18439 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18440 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18441 # This bug is HP SR number 8606223364.
18442 if test "$cross_compiling" = yes; then
18443 # Depending upon the size, compute the lo and hi bounds.
18444cat >conftest.$ac_ext <<_ACEOF
18445/* confdefs.h. */
18446_ACEOF
18447cat confdefs.h >>conftest.$ac_ext
18448cat >>conftest.$ac_ext <<_ACEOF
18449/* end confdefs.h. */
18450$ac_includes_default
18451int
18452main ()
18453{
18454static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
18455test_array [0] = 0
18456
18457 ;
18458 return 0;
18459}
18460_ACEOF
18461rm -f conftest.$ac_objext
18462if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18463 (eval $ac_compile) 2>conftest.er1
a848cd7e 18464 ac_status=$?
ac1cb8d3
VS
18465 grep -v '^ *+' conftest.er1 >conftest.err
18466 rm -f conftest.er1
18467 cat conftest.err >&5
a848cd7e
SC
18468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18469 (exit $ac_status); } &&
5d7b7554 18470 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18472 (eval $ac_try) 2>&5
18473 ac_status=$?
18474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18475 (exit $ac_status); }; } &&
18476 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18478 (eval $ac_try) 2>&5
18479 ac_status=$?
18480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18481 (exit $ac_status); }; }; then
18482 ac_lo=0 ac_mid=0
18483 while :; do
18484 cat >conftest.$ac_ext <<_ACEOF
18485/* confdefs.h. */
18486_ACEOF
18487cat confdefs.h >>conftest.$ac_ext
18488cat >>conftest.$ac_ext <<_ACEOF
18489/* end confdefs.h. */
18490$ac_includes_default
18491int
18492main ()
18493{
18494static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
18495test_array [0] = 0
18496
18497 ;
18498 return 0;
18499}
18500_ACEOF
18501rm -f conftest.$ac_objext
18502if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18503 (eval $ac_compile) 2>conftest.er1
a848cd7e 18504 ac_status=$?
ac1cb8d3
VS
18505 grep -v '^ *+' conftest.er1 >conftest.err
18506 rm -f conftest.er1
18507 cat conftest.err >&5
a848cd7e
SC
18508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18509 (exit $ac_status); } &&
5d7b7554 18510 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18512 (eval $ac_try) 2>&5
18513 ac_status=$?
18514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18515 (exit $ac_status); }; } &&
18516 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18518 (eval $ac_try) 2>&5
18519 ac_status=$?
18520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18521 (exit $ac_status); }; }; then
18522 ac_hi=$ac_mid; break
18523else
18524 echo "$as_me: failed program was:" >&5
18525sed 's/^/| /' conftest.$ac_ext >&5
18526
18527ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18528 if test $ac_lo -le $ac_mid; then
18529 ac_lo= ac_hi=
18530 break
18531 fi
18532 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18533fi
ac1cb8d3 18534rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18535 done
18536else
18537 echo "$as_me: failed program was:" >&5
18538sed 's/^/| /' conftest.$ac_ext >&5
18539
18540cat >conftest.$ac_ext <<_ACEOF
18541/* confdefs.h. */
18542_ACEOF
18543cat confdefs.h >>conftest.$ac_ext
18544cat >>conftest.$ac_ext <<_ACEOF
18545/* end confdefs.h. */
18546$ac_includes_default
18547int
18548main ()
18549{
18550static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
18551test_array [0] = 0
18552
18553 ;
18554 return 0;
18555}
18556_ACEOF
18557rm -f conftest.$ac_objext
18558if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18559 (eval $ac_compile) 2>conftest.er1
a848cd7e 18560 ac_status=$?
ac1cb8d3
VS
18561 grep -v '^ *+' conftest.er1 >conftest.err
18562 rm -f conftest.er1
18563 cat conftest.err >&5
a848cd7e
SC
18564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18565 (exit $ac_status); } &&
5d7b7554 18566 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18568 (eval $ac_try) 2>&5
18569 ac_status=$?
18570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18571 (exit $ac_status); }; } &&
18572 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18574 (eval $ac_try) 2>&5
18575 ac_status=$?
18576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18577 (exit $ac_status); }; }; then
18578 ac_hi=-1 ac_mid=-1
18579 while :; do
18580 cat >conftest.$ac_ext <<_ACEOF
18581/* confdefs.h. */
18582_ACEOF
18583cat confdefs.h >>conftest.$ac_ext
18584cat >>conftest.$ac_ext <<_ACEOF
18585/* end confdefs.h. */
18586$ac_includes_default
18587int
18588main ()
18589{
18590static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
18591test_array [0] = 0
18592
18593 ;
18594 return 0;
18595}
18596_ACEOF
18597rm -f conftest.$ac_objext
18598if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18599 (eval $ac_compile) 2>conftest.er1
a848cd7e 18600 ac_status=$?
ac1cb8d3
VS
18601 grep -v '^ *+' conftest.er1 >conftest.err
18602 rm -f conftest.er1
18603 cat conftest.err >&5
a848cd7e
SC
18604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18605 (exit $ac_status); } &&
5d7b7554 18606 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18608 (eval $ac_try) 2>&5
18609 ac_status=$?
18610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18611 (exit $ac_status); }; } &&
18612 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18614 (eval $ac_try) 2>&5
18615 ac_status=$?
18616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18617 (exit $ac_status); }; }; then
18618 ac_lo=$ac_mid; break
18619else
18620 echo "$as_me: failed program was:" >&5
18621sed 's/^/| /' conftest.$ac_ext >&5
18622
18623ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18624 if test $ac_mid -le $ac_hi; then
18625 ac_lo= ac_hi=
18626 break
18627 fi
18628 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18629fi
ac1cb8d3 18630rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18631 done
18632else
18633 echo "$as_me: failed program was:" >&5
18634sed 's/^/| /' conftest.$ac_ext >&5
18635
18636ac_lo= ac_hi=
18637fi
ac1cb8d3 18638rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18639fi
ac1cb8d3 18640rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18641# Binary search between lo and hi bounds.
18642while test "x$ac_lo" != "x$ac_hi"; do
18643 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18644 cat >conftest.$ac_ext <<_ACEOF
18645/* confdefs.h. */
18646_ACEOF
18647cat confdefs.h >>conftest.$ac_ext
18648cat >>conftest.$ac_ext <<_ACEOF
18649/* end confdefs.h. */
18650$ac_includes_default
18651int
18652main ()
18653{
18654static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
18655test_array [0] = 0
18656
18657 ;
18658 return 0;
18659}
18660_ACEOF
18661rm -f conftest.$ac_objext
18662if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18663 (eval $ac_compile) 2>conftest.er1
a848cd7e 18664 ac_status=$?
ac1cb8d3
VS
18665 grep -v '^ *+' conftest.er1 >conftest.err
18666 rm -f conftest.er1
18667 cat conftest.err >&5
a848cd7e
SC
18668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18669 (exit $ac_status); } &&
5d7b7554 18670 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18672 (eval $ac_try) 2>&5
18673 ac_status=$?
18674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18675 (exit $ac_status); }; } &&
18676 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18678 (eval $ac_try) 2>&5
18679 ac_status=$?
18680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18681 (exit $ac_status); }; }; then
18682 ac_hi=$ac_mid
18683else
18684 echo "$as_me: failed program was:" >&5
18685sed 's/^/| /' conftest.$ac_ext >&5
18686
18687ac_lo=`expr '(' $ac_mid ')' + 1`
18688fi
ac1cb8d3 18689rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18690done
18691case $ac_lo in
18692?*) ac_cv_sizeof_int=$ac_lo;;
18693'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
18694See \`config.log' for more details." >&5
18695echo "$as_me: error: cannot compute sizeof (int), 77
18696See \`config.log' for more details." >&2;}
18697 { (exit 1); exit 1; }; } ;;
18698esac
18699else
18700 if test "$cross_compiling" = yes; then
5d7b7554
VZ
18701 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18702echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
18703 { (exit 1); exit 1; }; }
18704else
18705 cat >conftest.$ac_ext <<_ACEOF
18706/* confdefs.h. */
18707_ACEOF
18708cat confdefs.h >>conftest.$ac_ext
18709cat >>conftest.$ac_ext <<_ACEOF
18710/* end confdefs.h. */
18711$ac_includes_default
18712long longval () { return (long) (sizeof (int)); }
18713unsigned long ulongval () { return (long) (sizeof (int)); }
18714#include <stdio.h>
18715#include <stdlib.h>
18716int
18717main ()
18718{
18719
18720 FILE *f = fopen ("conftest.val", "w");
18721 if (! f)
18722 exit (1);
18723 if (((long) (sizeof (int))) < 0)
18724 {
18725 long i = longval ();
18726 if (i != ((long) (sizeof (int))))
18727 exit (1);
18728 fprintf (f, "%ld\n", i);
18729 }
18730 else
18731 {
18732 unsigned long i = ulongval ();
18733 if (i != ((long) (sizeof (int))))
18734 exit (1);
18735 fprintf (f, "%lu\n", i);
18736 }
18737 exit (ferror (f) || fclose (f) != 0);
18738
18739 ;
18740 return 0;
18741}
18742_ACEOF
18743rm -f conftest$ac_exeext
18744if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18745 (eval $ac_link) 2>&5
18746 ac_status=$?
18747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18748 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18750 (eval $ac_try) 2>&5
18751 ac_status=$?
18752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18753 (exit $ac_status); }; }; then
18754 ac_cv_sizeof_int=`cat conftest.val`
18755else
18756 echo "$as_me: program exited with status $ac_status" >&5
18757echo "$as_me: failed program was:" >&5
18758sed 's/^/| /' conftest.$ac_ext >&5
18759
18760( exit $ac_status )
18761{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
18762See \`config.log' for more details." >&5
18763echo "$as_me: error: cannot compute sizeof (int), 77
18764See \`config.log' for more details." >&2;}
18765 { (exit 1); exit 1; }; }
18766fi
ac1cb8d3 18767rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18768fi
18769fi
18770rm -f conftest.val
18771else
18772 ac_cv_sizeof_int=0
18773fi
18774fi
18775echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
18776echo "${ECHO_T}$ac_cv_sizeof_int" >&6
18777cat >>confdefs.h <<_ACEOF
18778#define SIZEOF_INT $ac_cv_sizeof_int
18779_ACEOF
18780
18781
18782echo "$as_me:$LINENO: checking for long" >&5
18783echo $ECHO_N "checking for long... $ECHO_C" >&6
18784if test "${ac_cv_type_long+set}" = set; then
18785 echo $ECHO_N "(cached) $ECHO_C" >&6
18786else
18787 cat >conftest.$ac_ext <<_ACEOF
18788/* confdefs.h. */
18789_ACEOF
18790cat confdefs.h >>conftest.$ac_ext
18791cat >>conftest.$ac_ext <<_ACEOF
18792/* end confdefs.h. */
18793$ac_includes_default
18794int
18795main ()
18796{
18797if ((long *) 0)
18798 return 0;
18799if (sizeof (long))
18800 return 0;
18801 ;
18802 return 0;
18803}
18804_ACEOF
18805rm -f conftest.$ac_objext
18806if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18807 (eval $ac_compile) 2>conftest.er1
a848cd7e 18808 ac_status=$?
ac1cb8d3
VS
18809 grep -v '^ *+' conftest.er1 >conftest.err
18810 rm -f conftest.er1
18811 cat conftest.err >&5
a848cd7e
SC
18812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18813 (exit $ac_status); } &&
5d7b7554 18814 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
18820 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18822 (eval $ac_try) 2>&5
18823 ac_status=$?
18824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18825 (exit $ac_status); }; }; then
18826 ac_cv_type_long=yes
18827else
18828 echo "$as_me: failed program was:" >&5
18829sed 's/^/| /' conftest.$ac_ext >&5
18830
18831ac_cv_type_long=no
18832fi
ac1cb8d3 18833rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18834fi
18835echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
18836echo "${ECHO_T}$ac_cv_type_long" >&6
18837
18838echo "$as_me:$LINENO: checking size of long" >&5
18839echo $ECHO_N "checking size of long... $ECHO_C" >&6
18840if test "${ac_cv_sizeof_long+set}" = set; then
18841 echo $ECHO_N "(cached) $ECHO_C" >&6
18842else
18843 if test "$ac_cv_type_long" = yes; then
18844 # The cast to unsigned long works around a bug in the HP C Compiler
18845 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18846 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18847 # This bug is HP SR number 8606223364.
18848 if test "$cross_compiling" = yes; then
18849 # Depending upon the size, compute the lo and hi bounds.
18850cat >conftest.$ac_ext <<_ACEOF
18851/* confdefs.h. */
18852_ACEOF
18853cat confdefs.h >>conftest.$ac_ext
18854cat >>conftest.$ac_ext <<_ACEOF
18855/* end confdefs.h. */
18856$ac_includes_default
18857int
18858main ()
18859{
18860static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
18861test_array [0] = 0
18862
18863 ;
18864 return 0;
18865}
18866_ACEOF
18867rm -f conftest.$ac_objext
18868if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18869 (eval $ac_compile) 2>conftest.er1
a848cd7e 18870 ac_status=$?
ac1cb8d3
VS
18871 grep -v '^ *+' conftest.er1 >conftest.err
18872 rm -f conftest.er1
18873 cat conftest.err >&5
a848cd7e
SC
18874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18875 (exit $ac_status); } &&
5d7b7554 18876 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18878 (eval $ac_try) 2>&5
18879 ac_status=$?
18880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18881 (exit $ac_status); }; } &&
18882 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18884 (eval $ac_try) 2>&5
18885 ac_status=$?
18886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18887 (exit $ac_status); }; }; then
18888 ac_lo=0 ac_mid=0
18889 while :; do
18890 cat >conftest.$ac_ext <<_ACEOF
18891/* confdefs.h. */
18892_ACEOF
18893cat confdefs.h >>conftest.$ac_ext
18894cat >>conftest.$ac_ext <<_ACEOF
18895/* end confdefs.h. */
18896$ac_includes_default
18897int
18898main ()
18899{
18900static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
18901test_array [0] = 0
18902
18903 ;
18904 return 0;
18905}
18906_ACEOF
18907rm -f conftest.$ac_objext
18908if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18909 (eval $ac_compile) 2>conftest.er1
a848cd7e 18910 ac_status=$?
ac1cb8d3
VS
18911 grep -v '^ *+' conftest.er1 >conftest.err
18912 rm -f conftest.er1
18913 cat conftest.err >&5
a848cd7e
SC
18914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18915 (exit $ac_status); } &&
5d7b7554 18916 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18918 (eval $ac_try) 2>&5
18919 ac_status=$?
18920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18921 (exit $ac_status); }; } &&
18922 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18924 (eval $ac_try) 2>&5
18925 ac_status=$?
18926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18927 (exit $ac_status); }; }; then
18928 ac_hi=$ac_mid; break
18929else
18930 echo "$as_me: failed program was:" >&5
18931sed 's/^/| /' conftest.$ac_ext >&5
18932
18933ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18934 if test $ac_lo -le $ac_mid; then
18935 ac_lo= ac_hi=
18936 break
18937 fi
18938 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18939fi
ac1cb8d3 18940rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18941 done
18942else
18943 echo "$as_me: failed program was:" >&5
18944sed 's/^/| /' conftest.$ac_ext >&5
18945
18946cat >conftest.$ac_ext <<_ACEOF
18947/* confdefs.h. */
18948_ACEOF
18949cat confdefs.h >>conftest.$ac_ext
18950cat >>conftest.$ac_ext <<_ACEOF
18951/* end confdefs.h. */
18952$ac_includes_default
18953int
18954main ()
18955{
18956static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
18957test_array [0] = 0
18958
18959 ;
18960 return 0;
18961}
18962_ACEOF
18963rm -f conftest.$ac_objext
18964if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18965 (eval $ac_compile) 2>conftest.er1
a848cd7e 18966 ac_status=$?
ac1cb8d3
VS
18967 grep -v '^ *+' conftest.er1 >conftest.err
18968 rm -f conftest.er1
18969 cat conftest.err >&5
a848cd7e
SC
18970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18971 (exit $ac_status); } &&
5d7b7554 18972 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18974 (eval $ac_try) 2>&5
18975 ac_status=$?
18976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18977 (exit $ac_status); }; } &&
18978 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18980 (eval $ac_try) 2>&5
18981 ac_status=$?
18982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18983 (exit $ac_status); }; }; then
18984 ac_hi=-1 ac_mid=-1
18985 while :; do
18986 cat >conftest.$ac_ext <<_ACEOF
18987/* confdefs.h. */
18988_ACEOF
18989cat confdefs.h >>conftest.$ac_ext
18990cat >>conftest.$ac_ext <<_ACEOF
18991/* end confdefs.h. */
18992$ac_includes_default
18993int
18994main ()
18995{
18996static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
18997test_array [0] = 0
18998
18999 ;
19000 return 0;
19001}
19002_ACEOF
19003rm -f conftest.$ac_objext
19004if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19005 (eval $ac_compile) 2>conftest.er1
a848cd7e 19006 ac_status=$?
ac1cb8d3
VS
19007 grep -v '^ *+' conftest.er1 >conftest.err
19008 rm -f conftest.er1
19009 cat conftest.err >&5
a848cd7e
SC
19010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19011 (exit $ac_status); } &&
5d7b7554 19012 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19014 (eval $ac_try) 2>&5
19015 ac_status=$?
19016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19017 (exit $ac_status); }; } &&
19018 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19020 (eval $ac_try) 2>&5
19021 ac_status=$?
19022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19023 (exit $ac_status); }; }; then
19024 ac_lo=$ac_mid; break
19025else
19026 echo "$as_me: failed program was:" >&5
19027sed 's/^/| /' conftest.$ac_ext >&5
19028
19029ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
19030 if test $ac_mid -le $ac_hi; then
19031 ac_lo= ac_hi=
19032 break
19033 fi
19034 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 19035fi
ac1cb8d3 19036rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19037 done
19038else
19039 echo "$as_me: failed program was:" >&5
19040sed 's/^/| /' conftest.$ac_ext >&5
19041
19042ac_lo= ac_hi=
19043fi
ac1cb8d3 19044rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 19045fi
ac1cb8d3 19046rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19047# Binary search between lo and hi bounds.
19048while test "x$ac_lo" != "x$ac_hi"; do
19049 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19050 cat >conftest.$ac_ext <<_ACEOF
19051/* confdefs.h. */
19052_ACEOF
19053cat confdefs.h >>conftest.$ac_ext
19054cat >>conftest.$ac_ext <<_ACEOF
19055/* end confdefs.h. */
19056$ac_includes_default
19057int
19058main ()
19059{
19060static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
19061test_array [0] = 0
19062
19063 ;
19064 return 0;
19065}
19066_ACEOF
19067rm -f conftest.$ac_objext
19068if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19069 (eval $ac_compile) 2>conftest.er1
a848cd7e 19070 ac_status=$?
ac1cb8d3
VS
19071 grep -v '^ *+' conftest.er1 >conftest.err
19072 rm -f conftest.er1
19073 cat conftest.err >&5
a848cd7e
SC
19074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19075 (exit $ac_status); } &&
5d7b7554 19076 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19078 (eval $ac_try) 2>&5
19079 ac_status=$?
19080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19081 (exit $ac_status); }; } &&
19082 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19084 (eval $ac_try) 2>&5
19085 ac_status=$?
19086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19087 (exit $ac_status); }; }; then
19088 ac_hi=$ac_mid
19089else
19090 echo "$as_me: failed program was:" >&5
19091sed 's/^/| /' conftest.$ac_ext >&5
19092
19093ac_lo=`expr '(' $ac_mid ')' + 1`
19094fi
ac1cb8d3 19095rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19096done
19097case $ac_lo in
19098?*) ac_cv_sizeof_long=$ac_lo;;
19099'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
19100See \`config.log' for more details." >&5
19101echo "$as_me: error: cannot compute sizeof (long), 77
19102See \`config.log' for more details." >&2;}
19103 { (exit 1); exit 1; }; } ;;
19104esac
19105else
19106 if test "$cross_compiling" = yes; then
5d7b7554
VZ
19107 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19108echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
19109 { (exit 1); exit 1; }; }
19110else
19111 cat >conftest.$ac_ext <<_ACEOF
19112/* confdefs.h. */
19113_ACEOF
19114cat confdefs.h >>conftest.$ac_ext
19115cat >>conftest.$ac_ext <<_ACEOF
19116/* end confdefs.h. */
19117$ac_includes_default
19118long longval () { return (long) (sizeof (long)); }
19119unsigned long ulongval () { return (long) (sizeof (long)); }
19120#include <stdio.h>
19121#include <stdlib.h>
19122int
19123main ()
19124{
19125
19126 FILE *f = fopen ("conftest.val", "w");
19127 if (! f)
19128 exit (1);
19129 if (((long) (sizeof (long))) < 0)
19130 {
19131 long i = longval ();
19132 if (i != ((long) (sizeof (long))))
19133 exit (1);
19134 fprintf (f, "%ld\n", i);
19135 }
19136 else
19137 {
19138 unsigned long i = ulongval ();
19139 if (i != ((long) (sizeof (long))))
19140 exit (1);
19141 fprintf (f, "%lu\n", i);
19142 }
19143 exit (ferror (f) || fclose (f) != 0);
19144
19145 ;
19146 return 0;
19147}
19148_ACEOF
19149rm -f conftest$ac_exeext
19150if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19151 (eval $ac_link) 2>&5
19152 ac_status=$?
19153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19154 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19156 (eval $ac_try) 2>&5
19157 ac_status=$?
19158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19159 (exit $ac_status); }; }; then
19160 ac_cv_sizeof_long=`cat conftest.val`
19161else
19162 echo "$as_me: program exited with status $ac_status" >&5
19163echo "$as_me: failed program was:" >&5
19164sed 's/^/| /' conftest.$ac_ext >&5
19165
19166( exit $ac_status )
19167{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
19168See \`config.log' for more details." >&5
19169echo "$as_me: error: cannot compute sizeof (long), 77
19170See \`config.log' for more details." >&2;}
19171 { (exit 1); exit 1; }; }
19172fi
ac1cb8d3 19173rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19174fi
19175fi
19176rm -f conftest.val
19177else
19178 ac_cv_sizeof_long=0
19179fi
19180fi
19181echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
19182echo "${ECHO_T}$ac_cv_sizeof_long" >&6
19183cat >>confdefs.h <<_ACEOF
19184#define SIZEOF_LONG $ac_cv_sizeof_long
19185_ACEOF
19186
19187
19188echo "$as_me:$LINENO: checking for size_t" >&5
19189echo $ECHO_N "checking for size_t... $ECHO_C" >&6
19190if test "${ac_cv_type_size_t+set}" = set; then
19191 echo $ECHO_N "(cached) $ECHO_C" >&6
19192else
19193 cat >conftest.$ac_ext <<_ACEOF
19194/* confdefs.h. */
19195_ACEOF
19196cat confdefs.h >>conftest.$ac_ext
19197cat >>conftest.$ac_ext <<_ACEOF
19198/* end confdefs.h. */
19199$ac_includes_default
19200int
19201main ()
19202{
19203if ((size_t *) 0)
19204 return 0;
19205if (sizeof (size_t))
19206 return 0;
19207 ;
19208 return 0;
19209}
19210_ACEOF
19211rm -f conftest.$ac_objext
19212if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19213 (eval $ac_compile) 2>conftest.er1
a848cd7e 19214 ac_status=$?
ac1cb8d3
VS
19215 grep -v '^ *+' conftest.er1 >conftest.err
19216 rm -f conftest.er1
19217 cat conftest.err >&5
a848cd7e
SC
19218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19219 (exit $ac_status); } &&
5d7b7554 19220 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
19226 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19228 (eval $ac_try) 2>&5
19229 ac_status=$?
19230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19231 (exit $ac_status); }; }; then
19232 ac_cv_type_size_t=yes
19233else
19234 echo "$as_me: failed program was:" >&5
19235sed 's/^/| /' conftest.$ac_ext >&5
19236
19237ac_cv_type_size_t=no
19238fi
ac1cb8d3 19239rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19240fi
19241echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
19242echo "${ECHO_T}$ac_cv_type_size_t" >&6
19243
19244echo "$as_me:$LINENO: checking size of size_t" >&5
19245echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
19246if test "${ac_cv_sizeof_size_t+set}" = set; then
19247 echo $ECHO_N "(cached) $ECHO_C" >&6
19248else
19249 if test "$ac_cv_type_size_t" = yes; then
19250 # The cast to unsigned long works around a bug in the HP C Compiler
19251 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19252 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19253 # This bug is HP SR number 8606223364.
19254 if test "$cross_compiling" = yes; then
19255 # Depending upon the size, compute the lo and hi bounds.
19256cat >conftest.$ac_ext <<_ACEOF
19257/* confdefs.h. */
19258_ACEOF
19259cat confdefs.h >>conftest.$ac_ext
19260cat >>conftest.$ac_ext <<_ACEOF
19261/* end confdefs.h. */
19262$ac_includes_default
19263int
19264main ()
19265{
19266static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
19267test_array [0] = 0
19268
19269 ;
19270 return 0;
19271}
19272_ACEOF
19273rm -f conftest.$ac_objext
19274if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19275 (eval $ac_compile) 2>conftest.er1
a848cd7e 19276 ac_status=$?
ac1cb8d3
VS
19277 grep -v '^ *+' conftest.er1 >conftest.err
19278 rm -f conftest.er1
19279 cat conftest.err >&5
a848cd7e
SC
19280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19281 (exit $ac_status); } &&
5d7b7554 19282 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19284 (eval $ac_try) 2>&5
19285 ac_status=$?
19286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19287 (exit $ac_status); }; } &&
19288 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19290 (eval $ac_try) 2>&5
19291 ac_status=$?
19292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19293 (exit $ac_status); }; }; then
19294 ac_lo=0 ac_mid=0
19295 while :; do
19296 cat >conftest.$ac_ext <<_ACEOF
19297/* confdefs.h. */
19298_ACEOF
19299cat confdefs.h >>conftest.$ac_ext
19300cat >>conftest.$ac_ext <<_ACEOF
19301/* end confdefs.h. */
19302$ac_includes_default
19303int
19304main ()
19305{
19306static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
19307test_array [0] = 0
19308
19309 ;
19310 return 0;
19311}
19312_ACEOF
19313rm -f conftest.$ac_objext
19314if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19315 (eval $ac_compile) 2>conftest.er1
a848cd7e 19316 ac_status=$?
ac1cb8d3
VS
19317 grep -v '^ *+' conftest.er1 >conftest.err
19318 rm -f conftest.er1
19319 cat conftest.err >&5
a848cd7e
SC
19320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19321 (exit $ac_status); } &&
5d7b7554 19322 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19324 (eval $ac_try) 2>&5
19325 ac_status=$?
19326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19327 (exit $ac_status); }; } &&
19328 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19330 (eval $ac_try) 2>&5
19331 ac_status=$?
19332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19333 (exit $ac_status); }; }; then
19334 ac_hi=$ac_mid; break
19335else
19336 echo "$as_me: failed program was:" >&5
19337sed 's/^/| /' conftest.$ac_ext >&5
19338
19339ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
19340 if test $ac_lo -le $ac_mid; then
19341 ac_lo= ac_hi=
19342 break
19343 fi
19344 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 19345fi
ac1cb8d3 19346rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19347 done
19348else
19349 echo "$as_me: failed program was:" >&5
19350sed 's/^/| /' conftest.$ac_ext >&5
19351
19352cat >conftest.$ac_ext <<_ACEOF
19353/* confdefs.h. */
19354_ACEOF
19355cat confdefs.h >>conftest.$ac_ext
19356cat >>conftest.$ac_ext <<_ACEOF
19357/* end confdefs.h. */
19358$ac_includes_default
19359int
19360main ()
19361{
19362static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
19363test_array [0] = 0
19364
19365 ;
19366 return 0;
19367}
19368_ACEOF
19369rm -f conftest.$ac_objext
19370if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19371 (eval $ac_compile) 2>conftest.er1
a848cd7e 19372 ac_status=$?
ac1cb8d3
VS
19373 grep -v '^ *+' conftest.er1 >conftest.err
19374 rm -f conftest.er1
19375 cat conftest.err >&5
a848cd7e
SC
19376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19377 (exit $ac_status); } &&
5d7b7554 19378 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19380 (eval $ac_try) 2>&5
19381 ac_status=$?
19382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19383 (exit $ac_status); }; } &&
19384 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19386 (eval $ac_try) 2>&5
19387 ac_status=$?
19388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19389 (exit $ac_status); }; }; then
19390 ac_hi=-1 ac_mid=-1
19391 while :; do
19392 cat >conftest.$ac_ext <<_ACEOF
19393/* confdefs.h. */
19394_ACEOF
19395cat confdefs.h >>conftest.$ac_ext
19396cat >>conftest.$ac_ext <<_ACEOF
19397/* end confdefs.h. */
19398$ac_includes_default
19399int
19400main ()
19401{
19402static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
19403test_array [0] = 0
19404
19405 ;
19406 return 0;
19407}
19408_ACEOF
19409rm -f conftest.$ac_objext
19410if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19411 (eval $ac_compile) 2>conftest.er1
a848cd7e 19412 ac_status=$?
ac1cb8d3
VS
19413 grep -v '^ *+' conftest.er1 >conftest.err
19414 rm -f conftest.er1
19415 cat conftest.err >&5
a848cd7e
SC
19416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19417 (exit $ac_status); } &&
5d7b7554 19418 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19420 (eval $ac_try) 2>&5
19421 ac_status=$?
19422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19423 (exit $ac_status); }; } &&
19424 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19426 (eval $ac_try) 2>&5
19427 ac_status=$?
19428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19429 (exit $ac_status); }; }; then
19430 ac_lo=$ac_mid; break
19431else
19432 echo "$as_me: failed program was:" >&5
19433sed 's/^/| /' conftest.$ac_ext >&5
19434
19435ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
19436 if test $ac_mid -le $ac_hi; then
19437 ac_lo= ac_hi=
19438 break
19439 fi
19440 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 19441fi
ac1cb8d3 19442rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19443 done
19444else
19445 echo "$as_me: failed program was:" >&5
19446sed 's/^/| /' conftest.$ac_ext >&5
19447
19448ac_lo= ac_hi=
19449fi
ac1cb8d3 19450rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 19451fi
ac1cb8d3 19452rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19453# Binary search between lo and hi bounds.
19454while test "x$ac_lo" != "x$ac_hi"; do
19455 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19456 cat >conftest.$ac_ext <<_ACEOF
19457/* confdefs.h. */
19458_ACEOF
19459cat confdefs.h >>conftest.$ac_ext
19460cat >>conftest.$ac_ext <<_ACEOF
19461/* end confdefs.h. */
19462$ac_includes_default
19463int
19464main ()
19465{
19466static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
19467test_array [0] = 0
19468
19469 ;
19470 return 0;
19471}
19472_ACEOF
19473rm -f conftest.$ac_objext
19474if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19475 (eval $ac_compile) 2>conftest.er1
a848cd7e 19476 ac_status=$?
ac1cb8d3
VS
19477 grep -v '^ *+' conftest.er1 >conftest.err
19478 rm -f conftest.er1
19479 cat conftest.err >&5
a848cd7e
SC
19480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19481 (exit $ac_status); } &&
5d7b7554 19482 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19484 (eval $ac_try) 2>&5
19485 ac_status=$?
19486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19487 (exit $ac_status); }; } &&
19488 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19490 (eval $ac_try) 2>&5
19491 ac_status=$?
19492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19493 (exit $ac_status); }; }; then
19494 ac_hi=$ac_mid
19495else
19496 echo "$as_me: failed program was:" >&5
19497sed 's/^/| /' conftest.$ac_ext >&5
19498
19499ac_lo=`expr '(' $ac_mid ')' + 1`
19500fi
ac1cb8d3 19501rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19502done
19503case $ac_lo in
19504?*) ac_cv_sizeof_size_t=$ac_lo;;
19505'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
19506See \`config.log' for more details." >&5
19507echo "$as_me: error: cannot compute sizeof (size_t), 77
19508See \`config.log' for more details." >&2;}
19509 { (exit 1); exit 1; }; } ;;
19510esac
19511else
19512 if test "$cross_compiling" = yes; then
5d7b7554
VZ
19513 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19514echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
19515 { (exit 1); exit 1; }; }
19516else
19517 cat >conftest.$ac_ext <<_ACEOF
19518/* confdefs.h. */
19519_ACEOF
19520cat confdefs.h >>conftest.$ac_ext
19521cat >>conftest.$ac_ext <<_ACEOF
19522/* end confdefs.h. */
19523$ac_includes_default
19524long longval () { return (long) (sizeof (size_t)); }
19525unsigned long ulongval () { return (long) (sizeof (size_t)); }
19526#include <stdio.h>
19527#include <stdlib.h>
19528int
19529main ()
19530{
19531
19532 FILE *f = fopen ("conftest.val", "w");
19533 if (! f)
19534 exit (1);
19535 if (((long) (sizeof (size_t))) < 0)
19536 {
19537 long i = longval ();
19538 if (i != ((long) (sizeof (size_t))))
19539 exit (1);
19540 fprintf (f, "%ld\n", i);
19541 }
19542 else
19543 {
19544 unsigned long i = ulongval ();
19545 if (i != ((long) (sizeof (size_t))))
19546 exit (1);
19547 fprintf (f, "%lu\n", i);
19548 }
19549 exit (ferror (f) || fclose (f) != 0);
19550
19551 ;
19552 return 0;
19553}
19554_ACEOF
19555rm -f conftest$ac_exeext
19556if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19557 (eval $ac_link) 2>&5
19558 ac_status=$?
19559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19560 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19562 (eval $ac_try) 2>&5
19563 ac_status=$?
19564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19565 (exit $ac_status); }; }; then
19566 ac_cv_sizeof_size_t=`cat conftest.val`
19567else
19568 echo "$as_me: program exited with status $ac_status" >&5
19569echo "$as_me: failed program was:" >&5
19570sed 's/^/| /' conftest.$ac_ext >&5
19571
19572( exit $ac_status )
19573{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
19574See \`config.log' for more details." >&5
19575echo "$as_me: error: cannot compute sizeof (size_t), 77
19576See \`config.log' for more details." >&2;}
19577 { (exit 1); exit 1; }; }
19578fi
ac1cb8d3 19579rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19580fi
19581fi
19582rm -f conftest.val
19583else
19584 ac_cv_sizeof_size_t=0
19585fi
19586fi
19587echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
19588echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
19589cat >>confdefs.h <<_ACEOF
19590#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
19591_ACEOF
19592
19593
19594
19595case "${host}" in
19596 arm-*-linux* )
19597 echo "$as_me:$LINENO: checking for long long" >&5
19598echo $ECHO_N "checking for long long... $ECHO_C" >&6
19599if test "${ac_cv_type_long_long+set}" = set; then
19600 echo $ECHO_N "(cached) $ECHO_C" >&6
19601else
19602 cat >conftest.$ac_ext <<_ACEOF
19603/* confdefs.h. */
19604_ACEOF
19605cat confdefs.h >>conftest.$ac_ext
19606cat >>conftest.$ac_ext <<_ACEOF
19607/* end confdefs.h. */
19608$ac_includes_default
19609int
19610main ()
19611{
19612if ((long long *) 0)
19613 return 0;
19614if (sizeof (long long))
19615 return 0;
19616 ;
19617 return 0;
19618}
19619_ACEOF
19620rm -f conftest.$ac_objext
19621if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19622 (eval $ac_compile) 2>conftest.er1
a848cd7e 19623 ac_status=$?
ac1cb8d3
VS
19624 grep -v '^ *+' conftest.er1 >conftest.err
19625 rm -f conftest.er1
19626 cat conftest.err >&5
a848cd7e
SC
19627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19628 (exit $ac_status); } &&
5d7b7554 19629 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
19635 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19637 (eval $ac_try) 2>&5
19638 ac_status=$?
19639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19640 (exit $ac_status); }; }; then
19641 ac_cv_type_long_long=yes
19642else
19643 echo "$as_me: failed program was:" >&5
19644sed 's/^/| /' conftest.$ac_ext >&5
19645
19646ac_cv_type_long_long=no
19647fi
ac1cb8d3 19648rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19649fi
19650echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
19651echo "${ECHO_T}$ac_cv_type_long_long" >&6
19652
19653echo "$as_me:$LINENO: checking size of long long" >&5
19654echo $ECHO_N "checking size of long long... $ECHO_C" >&6
19655if test "${ac_cv_sizeof_long_long+set}" = set; then
19656 echo $ECHO_N "(cached) $ECHO_C" >&6
19657else
19658 if test "$ac_cv_type_long_long" = yes; then
19659 # The cast to unsigned long works around a bug in the HP C Compiler
19660 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19661 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19662 # This bug is HP SR number 8606223364.
19663 if test "$cross_compiling" = yes; then
19664 # Depending upon the size, compute the lo and hi bounds.
19665cat >conftest.$ac_ext <<_ACEOF
19666/* confdefs.h. */
19667_ACEOF
19668cat confdefs.h >>conftest.$ac_ext
19669cat >>conftest.$ac_ext <<_ACEOF
19670/* end confdefs.h. */
19671$ac_includes_default
19672int
19673main ()
19674{
19675static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
19676test_array [0] = 0
19677
19678 ;
19679 return 0;
19680}
19681_ACEOF
19682rm -f conftest.$ac_objext
19683if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19684 (eval $ac_compile) 2>conftest.er1
a848cd7e 19685 ac_status=$?
ac1cb8d3
VS
19686 grep -v '^ *+' conftest.er1 >conftest.err
19687 rm -f conftest.er1
19688 cat conftest.err >&5
a848cd7e
SC
19689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19690 (exit $ac_status); } &&
5d7b7554 19691 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19693 (eval $ac_try) 2>&5
19694 ac_status=$?
19695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19696 (exit $ac_status); }; } &&
19697 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19699 (eval $ac_try) 2>&5
19700 ac_status=$?
19701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19702 (exit $ac_status); }; }; then
19703 ac_lo=0 ac_mid=0
19704 while :; do
19705 cat >conftest.$ac_ext <<_ACEOF
19706/* confdefs.h. */
19707_ACEOF
19708cat confdefs.h >>conftest.$ac_ext
19709cat >>conftest.$ac_ext <<_ACEOF
19710/* end confdefs.h. */
19711$ac_includes_default
19712int
19713main ()
19714{
19715static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
19716test_array [0] = 0
19717
19718 ;
19719 return 0;
19720}
19721_ACEOF
19722rm -f conftest.$ac_objext
19723if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19724 (eval $ac_compile) 2>conftest.er1
a848cd7e 19725 ac_status=$?
ac1cb8d3
VS
19726 grep -v '^ *+' conftest.er1 >conftest.err
19727 rm -f conftest.er1
19728 cat conftest.err >&5
a848cd7e
SC
19729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19730 (exit $ac_status); } &&
5d7b7554 19731 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19733 (eval $ac_try) 2>&5
19734 ac_status=$?
19735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19736 (exit $ac_status); }; } &&
19737 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19739 (eval $ac_try) 2>&5
19740 ac_status=$?
19741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19742 (exit $ac_status); }; }; then
19743 ac_hi=$ac_mid; break
19744else
19745 echo "$as_me: failed program was:" >&5
19746sed 's/^/| /' conftest.$ac_ext >&5
19747
19748ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
19749 if test $ac_lo -le $ac_mid; then
19750 ac_lo= ac_hi=
19751 break
19752 fi
19753 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 19754fi
ac1cb8d3 19755rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19756 done
19757else
19758 echo "$as_me: failed program was:" >&5
19759sed 's/^/| /' conftest.$ac_ext >&5
19760
19761cat >conftest.$ac_ext <<_ACEOF
19762/* confdefs.h. */
19763_ACEOF
19764cat confdefs.h >>conftest.$ac_ext
19765cat >>conftest.$ac_ext <<_ACEOF
19766/* end confdefs.h. */
19767$ac_includes_default
19768int
19769main ()
19770{
19771static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
19772test_array [0] = 0
19773
19774 ;
19775 return 0;
19776}
19777_ACEOF
19778rm -f conftest.$ac_objext
19779if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19780 (eval $ac_compile) 2>conftest.er1
a848cd7e 19781 ac_status=$?
ac1cb8d3
VS
19782 grep -v '^ *+' conftest.er1 >conftest.err
19783 rm -f conftest.er1
19784 cat conftest.err >&5
a848cd7e
SC
19785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19786 (exit $ac_status); } &&
5d7b7554 19787 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19789 (eval $ac_try) 2>&5
19790 ac_status=$?
19791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19792 (exit $ac_status); }; } &&
19793 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19795 (eval $ac_try) 2>&5
19796 ac_status=$?
19797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19798 (exit $ac_status); }; }; then
19799 ac_hi=-1 ac_mid=-1
19800 while :; do
19801 cat >conftest.$ac_ext <<_ACEOF
19802/* confdefs.h. */
19803_ACEOF
19804cat confdefs.h >>conftest.$ac_ext
19805cat >>conftest.$ac_ext <<_ACEOF
19806/* end confdefs.h. */
19807$ac_includes_default
19808int
19809main ()
19810{
19811static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
19812test_array [0] = 0
19813
19814 ;
19815 return 0;
19816}
19817_ACEOF
19818rm -f conftest.$ac_objext
19819if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19820 (eval $ac_compile) 2>conftest.er1
a848cd7e 19821 ac_status=$?
ac1cb8d3
VS
19822 grep -v '^ *+' conftest.er1 >conftest.err
19823 rm -f conftest.er1
19824 cat conftest.err >&5
a848cd7e
SC
19825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19826 (exit $ac_status); } &&
5d7b7554 19827 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19829 (eval $ac_try) 2>&5
19830 ac_status=$?
19831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19832 (exit $ac_status); }; } &&
19833 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19835 (eval $ac_try) 2>&5
19836 ac_status=$?
19837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19838 (exit $ac_status); }; }; then
19839 ac_lo=$ac_mid; break
19840else
19841 echo "$as_me: failed program was:" >&5
19842sed 's/^/| /' conftest.$ac_ext >&5
19843
19844ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
19845 if test $ac_mid -le $ac_hi; then
19846 ac_lo= ac_hi=
19847 break
19848 fi
19849 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 19850fi
ac1cb8d3 19851rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19852 done
19853else
19854 echo "$as_me: failed program was:" >&5
19855sed 's/^/| /' conftest.$ac_ext >&5
19856
19857ac_lo= ac_hi=
19858fi
ac1cb8d3 19859rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 19860fi
ac1cb8d3 19861rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19862# Binary search between lo and hi bounds.
19863while test "x$ac_lo" != "x$ac_hi"; do
19864 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19865 cat >conftest.$ac_ext <<_ACEOF
19866/* confdefs.h. */
19867_ACEOF
19868cat confdefs.h >>conftest.$ac_ext
19869cat >>conftest.$ac_ext <<_ACEOF
19870/* end confdefs.h. */
19871$ac_includes_default
19872int
19873main ()
19874{
19875static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
19876test_array [0] = 0
19877
19878 ;
19879 return 0;
19880}
19881_ACEOF
19882rm -f conftest.$ac_objext
19883if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19884 (eval $ac_compile) 2>conftest.er1
a848cd7e 19885 ac_status=$?
ac1cb8d3
VS
19886 grep -v '^ *+' conftest.er1 >conftest.err
19887 rm -f conftest.er1
19888 cat conftest.err >&5
a848cd7e
SC
19889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19890 (exit $ac_status); } &&
5d7b7554 19891 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19893 (eval $ac_try) 2>&5
19894 ac_status=$?
19895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19896 (exit $ac_status); }; } &&
19897 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19899 (eval $ac_try) 2>&5
19900 ac_status=$?
19901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19902 (exit $ac_status); }; }; then
19903 ac_hi=$ac_mid
19904else
19905 echo "$as_me: failed program was:" >&5
19906sed 's/^/| /' conftest.$ac_ext >&5
19907
19908ac_lo=`expr '(' $ac_mid ')' + 1`
19909fi
ac1cb8d3 19910rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19911done
19912case $ac_lo in
19913?*) ac_cv_sizeof_long_long=$ac_lo;;
19914'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
19915See \`config.log' for more details." >&5
19916echo "$as_me: error: cannot compute sizeof (long long), 77
19917See \`config.log' for more details." >&2;}
19918 { (exit 1); exit 1; }; } ;;
19919esac
19920else
19921 if test "$cross_compiling" = yes; then
5d7b7554
VZ
19922 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19923echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
19924 { (exit 1); exit 1; }; }
19925else
19926 cat >conftest.$ac_ext <<_ACEOF
19927/* confdefs.h. */
19928_ACEOF
19929cat confdefs.h >>conftest.$ac_ext
19930cat >>conftest.$ac_ext <<_ACEOF
19931/* end confdefs.h. */
19932$ac_includes_default
19933long longval () { return (long) (sizeof (long long)); }
19934unsigned long ulongval () { return (long) (sizeof (long long)); }
19935#include <stdio.h>
19936#include <stdlib.h>
19937int
19938main ()
19939{
19940
19941 FILE *f = fopen ("conftest.val", "w");
19942 if (! f)
19943 exit (1);
19944 if (((long) (sizeof (long long))) < 0)
19945 {
19946 long i = longval ();
19947 if (i != ((long) (sizeof (long long))))
19948 exit (1);
19949 fprintf (f, "%ld\n", i);
19950 }
19951 else
19952 {
19953 unsigned long i = ulongval ();
19954 if (i != ((long) (sizeof (long long))))
19955 exit (1);
19956 fprintf (f, "%lu\n", i);
19957 }
19958 exit (ferror (f) || fclose (f) != 0);
19959
19960 ;
19961 return 0;
19962}
19963_ACEOF
19964rm -f conftest$ac_exeext
19965if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19966 (eval $ac_link) 2>&5
19967 ac_status=$?
19968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19969 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19971 (eval $ac_try) 2>&5
19972 ac_status=$?
19973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19974 (exit $ac_status); }; }; then
19975 ac_cv_sizeof_long_long=`cat conftest.val`
19976else
19977 echo "$as_me: program exited with status $ac_status" >&5
19978echo "$as_me: failed program was:" >&5
19979sed 's/^/| /' conftest.$ac_ext >&5
19980
19981( exit $ac_status )
19982{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
19983See \`config.log' for more details." >&5
19984echo "$as_me: error: cannot compute sizeof (long long), 77
19985See \`config.log' for more details." >&2;}
19986 { (exit 1); exit 1; }; }
19987fi
ac1cb8d3 19988rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19989fi
19990fi
19991rm -f conftest.val
19992else
19993 ac_cv_sizeof_long_long=0
19994fi
19995fi
19996echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
19997echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
19998cat >>confdefs.h <<_ACEOF
19999#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
20000_ACEOF
20001
20002
20003 ;;
20004 *-hp-hpux* )
20005 echo "$as_me:$LINENO: checking for long long" >&5
20006echo $ECHO_N "checking for long long... $ECHO_C" >&6
20007if test "${ac_cv_type_long_long+set}" = set; then
20008 echo $ECHO_N "(cached) $ECHO_C" >&6
20009else
20010 cat >conftest.$ac_ext <<_ACEOF
20011/* confdefs.h. */
20012_ACEOF
20013cat confdefs.h >>conftest.$ac_ext
20014cat >>conftest.$ac_ext <<_ACEOF
20015/* end confdefs.h. */
20016$ac_includes_default
20017int
20018main ()
20019{
20020if ((long long *) 0)
20021 return 0;
20022if (sizeof (long long))
20023 return 0;
20024 ;
20025 return 0;
20026}
20027_ACEOF
20028rm -f conftest.$ac_objext
20029if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20030 (eval $ac_compile) 2>conftest.er1
a848cd7e 20031 ac_status=$?
ac1cb8d3
VS
20032 grep -v '^ *+' conftest.er1 >conftest.err
20033 rm -f conftest.er1
20034 cat conftest.err >&5
a848cd7e
SC
20035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20036 (exit $ac_status); } &&
5d7b7554 20037 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
20043 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20045 (eval $ac_try) 2>&5
20046 ac_status=$?
20047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20048 (exit $ac_status); }; }; then
20049 ac_cv_type_long_long=yes
20050else
20051 echo "$as_me: failed program was:" >&5
20052sed 's/^/| /' conftest.$ac_ext >&5
20053
20054ac_cv_type_long_long=no
20055fi
ac1cb8d3 20056rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20057fi
20058echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
20059echo "${ECHO_T}$ac_cv_type_long_long" >&6
20060
20061echo "$as_me:$LINENO: checking size of long long" >&5
20062echo $ECHO_N "checking size of long long... $ECHO_C" >&6
20063if test "${ac_cv_sizeof_long_long+set}" = set; then
20064 echo $ECHO_N "(cached) $ECHO_C" >&6
20065else
20066 if test "$ac_cv_type_long_long" = yes; then
20067 # The cast to unsigned long works around a bug in the HP C Compiler
20068 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20069 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20070 # This bug is HP SR number 8606223364.
20071 if test "$cross_compiling" = yes; then
20072 # Depending upon the size, compute the lo and hi bounds.
20073cat >conftest.$ac_ext <<_ACEOF
20074/* confdefs.h. */
20075_ACEOF
20076cat confdefs.h >>conftest.$ac_ext
20077cat >>conftest.$ac_ext <<_ACEOF
20078/* end confdefs.h. */
20079$ac_includes_default
20080int
20081main ()
20082{
20083static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
20084test_array [0] = 0
20085
20086 ;
20087 return 0;
20088}
20089_ACEOF
20090rm -f conftest.$ac_objext
20091if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20092 (eval $ac_compile) 2>conftest.er1
a848cd7e 20093 ac_status=$?
ac1cb8d3
VS
20094 grep -v '^ *+' conftest.er1 >conftest.err
20095 rm -f conftest.er1
20096 cat conftest.err >&5
a848cd7e
SC
20097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20098 (exit $ac_status); } &&
5d7b7554 20099 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20101 (eval $ac_try) 2>&5
20102 ac_status=$?
20103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20104 (exit $ac_status); }; } &&
20105 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20107 (eval $ac_try) 2>&5
20108 ac_status=$?
20109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20110 (exit $ac_status); }; }; then
20111 ac_lo=0 ac_mid=0
20112 while :; do
20113 cat >conftest.$ac_ext <<_ACEOF
20114/* confdefs.h. */
20115_ACEOF
20116cat confdefs.h >>conftest.$ac_ext
20117cat >>conftest.$ac_ext <<_ACEOF
20118/* end confdefs.h. */
20119$ac_includes_default
20120int
20121main ()
20122{
20123static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20124test_array [0] = 0
20125
20126 ;
20127 return 0;
20128}
20129_ACEOF
20130rm -f conftest.$ac_objext
20131if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20132 (eval $ac_compile) 2>conftest.er1
a848cd7e 20133 ac_status=$?
ac1cb8d3
VS
20134 grep -v '^ *+' conftest.er1 >conftest.err
20135 rm -f conftest.er1
20136 cat conftest.err >&5
a848cd7e
SC
20137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20138 (exit $ac_status); } &&
5d7b7554 20139 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20141 (eval $ac_try) 2>&5
20142 ac_status=$?
20143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20144 (exit $ac_status); }; } &&
20145 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20147 (eval $ac_try) 2>&5
20148 ac_status=$?
20149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20150 (exit $ac_status); }; }; then
20151 ac_hi=$ac_mid; break
20152else
20153 echo "$as_me: failed program was:" >&5
20154sed 's/^/| /' conftest.$ac_ext >&5
20155
20156ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
20157 if test $ac_lo -le $ac_mid; then
20158 ac_lo= ac_hi=
20159 break
20160 fi
20161 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 20162fi
ac1cb8d3 20163rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20164 done
20165else
20166 echo "$as_me: failed program was:" >&5
20167sed 's/^/| /' conftest.$ac_ext >&5
20168
20169cat >conftest.$ac_ext <<_ACEOF
20170/* confdefs.h. */
20171_ACEOF
20172cat confdefs.h >>conftest.$ac_ext
20173cat >>conftest.$ac_ext <<_ACEOF
20174/* end confdefs.h. */
20175$ac_includes_default
20176int
20177main ()
20178{
20179static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
20180test_array [0] = 0
20181
20182 ;
20183 return 0;
20184}
20185_ACEOF
20186rm -f conftest.$ac_objext
20187if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20188 (eval $ac_compile) 2>conftest.er1
a848cd7e 20189 ac_status=$?
ac1cb8d3
VS
20190 grep -v '^ *+' conftest.er1 >conftest.err
20191 rm -f conftest.er1
20192 cat conftest.err >&5
a848cd7e
SC
20193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20194 (exit $ac_status); } &&
5d7b7554 20195 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20197 (eval $ac_try) 2>&5
20198 ac_status=$?
20199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20200 (exit $ac_status); }; } &&
20201 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20203 (eval $ac_try) 2>&5
20204 ac_status=$?
20205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20206 (exit $ac_status); }; }; then
20207 ac_hi=-1 ac_mid=-1
20208 while :; do
20209 cat >conftest.$ac_ext <<_ACEOF
20210/* confdefs.h. */
20211_ACEOF
20212cat confdefs.h >>conftest.$ac_ext
20213cat >>conftest.$ac_ext <<_ACEOF
20214/* end confdefs.h. */
20215$ac_includes_default
20216int
20217main ()
20218{
20219static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
20220test_array [0] = 0
20221
20222 ;
20223 return 0;
20224}
20225_ACEOF
20226rm -f conftest.$ac_objext
20227if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20228 (eval $ac_compile) 2>conftest.er1
a848cd7e 20229 ac_status=$?
ac1cb8d3
VS
20230 grep -v '^ *+' conftest.er1 >conftest.err
20231 rm -f conftest.er1
20232 cat conftest.err >&5
a848cd7e
SC
20233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20234 (exit $ac_status); } &&
5d7b7554 20235 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20237 (eval $ac_try) 2>&5
20238 ac_status=$?
20239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20240 (exit $ac_status); }; } &&
20241 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20243 (eval $ac_try) 2>&5
20244 ac_status=$?
20245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20246 (exit $ac_status); }; }; then
20247 ac_lo=$ac_mid; break
20248else
20249 echo "$as_me: failed program was:" >&5
20250sed 's/^/| /' conftest.$ac_ext >&5
20251
20252ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
20253 if test $ac_mid -le $ac_hi; then
20254 ac_lo= ac_hi=
20255 break
20256 fi
20257 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 20258fi
ac1cb8d3 20259rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20260 done
20261else
20262 echo "$as_me: failed program was:" >&5
20263sed 's/^/| /' conftest.$ac_ext >&5
20264
20265ac_lo= ac_hi=
20266fi
ac1cb8d3 20267rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 20268fi
ac1cb8d3 20269rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20270# Binary search between lo and hi bounds.
20271while test "x$ac_lo" != "x$ac_hi"; do
20272 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20273 cat >conftest.$ac_ext <<_ACEOF
20274/* confdefs.h. */
20275_ACEOF
20276cat confdefs.h >>conftest.$ac_ext
20277cat >>conftest.$ac_ext <<_ACEOF
20278/* end confdefs.h. */
20279$ac_includes_default
20280int
20281main ()
20282{
20283static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20284test_array [0] = 0
20285
20286 ;
20287 return 0;
20288}
20289_ACEOF
20290rm -f conftest.$ac_objext
20291if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20292 (eval $ac_compile) 2>conftest.er1
a848cd7e 20293 ac_status=$?
ac1cb8d3
VS
20294 grep -v '^ *+' conftest.er1 >conftest.err
20295 rm -f conftest.er1
20296 cat conftest.err >&5
a848cd7e
SC
20297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20298 (exit $ac_status); } &&
5d7b7554 20299 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20301 (eval $ac_try) 2>&5
20302 ac_status=$?
20303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20304 (exit $ac_status); }; } &&
20305 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20307 (eval $ac_try) 2>&5
20308 ac_status=$?
20309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20310 (exit $ac_status); }; }; then
20311 ac_hi=$ac_mid
20312else
20313 echo "$as_me: failed program was:" >&5
20314sed 's/^/| /' conftest.$ac_ext >&5
20315
20316ac_lo=`expr '(' $ac_mid ')' + 1`
20317fi
ac1cb8d3 20318rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20319done
20320case $ac_lo in
20321?*) ac_cv_sizeof_long_long=$ac_lo;;
20322'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20323See \`config.log' for more details." >&5
20324echo "$as_me: error: cannot compute sizeof (long long), 77
20325See \`config.log' for more details." >&2;}
20326 { (exit 1); exit 1; }; } ;;
20327esac
20328else
20329 if test "$cross_compiling" = yes; then
5d7b7554
VZ
20330 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
20331echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
20332 { (exit 1); exit 1; }; }
20333else
20334 cat >conftest.$ac_ext <<_ACEOF
20335/* confdefs.h. */
20336_ACEOF
20337cat confdefs.h >>conftest.$ac_ext
20338cat >>conftest.$ac_ext <<_ACEOF
20339/* end confdefs.h. */
20340$ac_includes_default
20341long longval () { return (long) (sizeof (long long)); }
20342unsigned long ulongval () { return (long) (sizeof (long long)); }
20343#include <stdio.h>
20344#include <stdlib.h>
20345int
20346main ()
20347{
20348
20349 FILE *f = fopen ("conftest.val", "w");
20350 if (! f)
20351 exit (1);
20352 if (((long) (sizeof (long long))) < 0)
20353 {
20354 long i = longval ();
20355 if (i != ((long) (sizeof (long long))))
20356 exit (1);
20357 fprintf (f, "%ld\n", i);
20358 }
20359 else
20360 {
20361 unsigned long i = ulongval ();
20362 if (i != ((long) (sizeof (long long))))
20363 exit (1);
20364 fprintf (f, "%lu\n", i);
20365 }
20366 exit (ferror (f) || fclose (f) != 0);
20367
20368 ;
20369 return 0;
20370}
20371_ACEOF
20372rm -f conftest$ac_exeext
20373if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20374 (eval $ac_link) 2>&5
20375 ac_status=$?
20376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20377 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20379 (eval $ac_try) 2>&5
20380 ac_status=$?
20381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20382 (exit $ac_status); }; }; then
20383 ac_cv_sizeof_long_long=`cat conftest.val`
20384else
20385 echo "$as_me: program exited with status $ac_status" >&5
20386echo "$as_me: failed program was:" >&5
20387sed 's/^/| /' conftest.$ac_ext >&5
20388
20389( exit $ac_status )
20390{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20391See \`config.log' for more details." >&5
20392echo "$as_me: error: cannot compute sizeof (long long), 77
20393See \`config.log' for more details." >&2;}
20394 { (exit 1); exit 1; }; }
20395fi
ac1cb8d3 20396rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20397fi
20398fi
20399rm -f conftest.val
20400else
20401 ac_cv_sizeof_long_long=0
20402fi
20403fi
20404echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
20405echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
20406cat >>confdefs.h <<_ACEOF
20407#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
20408_ACEOF
20409
20410
20411 if test "$ac_cv_sizeof_long_long" != "0"; then
c92ad099 20412 CPPFLAGS="-D_INCLUDE_LONGLONG $CPPFLAGS"
a848cd7e
SC
20413 fi
20414 ;;
20415 * )
20416 echo "$as_me:$LINENO: checking for long long" >&5
20417echo $ECHO_N "checking for long long... $ECHO_C" >&6
20418if test "${ac_cv_type_long_long+set}" = set; then
20419 echo $ECHO_N "(cached) $ECHO_C" >&6
20420else
20421 cat >conftest.$ac_ext <<_ACEOF
20422/* confdefs.h. */
20423_ACEOF
20424cat confdefs.h >>conftest.$ac_ext
20425cat >>conftest.$ac_ext <<_ACEOF
20426/* end confdefs.h. */
20427$ac_includes_default
20428int
20429main ()
20430{
20431if ((long long *) 0)
20432 return 0;
20433if (sizeof (long long))
20434 return 0;
20435 ;
20436 return 0;
20437}
20438_ACEOF
20439rm -f conftest.$ac_objext
20440if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20441 (eval $ac_compile) 2>conftest.er1
a848cd7e 20442 ac_status=$?
ac1cb8d3
VS
20443 grep -v '^ *+' conftest.er1 >conftest.err
20444 rm -f conftest.er1
20445 cat conftest.err >&5
a848cd7e
SC
20446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20447 (exit $ac_status); } &&
5d7b7554 20448 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
20454 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20456 (eval $ac_try) 2>&5
20457 ac_status=$?
20458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20459 (exit $ac_status); }; }; then
20460 ac_cv_type_long_long=yes
20461else
20462 echo "$as_me: failed program was:" >&5
20463sed 's/^/| /' conftest.$ac_ext >&5
20464
20465ac_cv_type_long_long=no
20466fi
ac1cb8d3 20467rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20468fi
20469echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
20470echo "${ECHO_T}$ac_cv_type_long_long" >&6
20471
20472echo "$as_me:$LINENO: checking size of long long" >&5
20473echo $ECHO_N "checking size of long long... $ECHO_C" >&6
20474if test "${ac_cv_sizeof_long_long+set}" = set; then
20475 echo $ECHO_N "(cached) $ECHO_C" >&6
20476else
20477 if test "$ac_cv_type_long_long" = yes; then
20478 # The cast to unsigned long works around a bug in the HP C Compiler
20479 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20480 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20481 # This bug is HP SR number 8606223364.
20482 if test "$cross_compiling" = yes; then
20483 # Depending upon the size, compute the lo and hi bounds.
20484cat >conftest.$ac_ext <<_ACEOF
20485/* confdefs.h. */
20486_ACEOF
20487cat confdefs.h >>conftest.$ac_ext
20488cat >>conftest.$ac_ext <<_ACEOF
20489/* end confdefs.h. */
20490$ac_includes_default
20491int
20492main ()
20493{
20494static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
20495test_array [0] = 0
20496
20497 ;
20498 return 0;
20499}
20500_ACEOF
20501rm -f conftest.$ac_objext
20502if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20503 (eval $ac_compile) 2>conftest.er1
a848cd7e 20504 ac_status=$?
ac1cb8d3
VS
20505 grep -v '^ *+' conftest.er1 >conftest.err
20506 rm -f conftest.er1
20507 cat conftest.err >&5
a848cd7e
SC
20508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20509 (exit $ac_status); } &&
5d7b7554 20510 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20512 (eval $ac_try) 2>&5
20513 ac_status=$?
20514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20515 (exit $ac_status); }; } &&
20516 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20518 (eval $ac_try) 2>&5
20519 ac_status=$?
20520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20521 (exit $ac_status); }; }; then
20522 ac_lo=0 ac_mid=0
20523 while :; do
20524 cat >conftest.$ac_ext <<_ACEOF
20525/* confdefs.h. */
20526_ACEOF
20527cat confdefs.h >>conftest.$ac_ext
20528cat >>conftest.$ac_ext <<_ACEOF
20529/* end confdefs.h. */
20530$ac_includes_default
20531int
20532main ()
20533{
20534static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20535test_array [0] = 0
20536
20537 ;
20538 return 0;
20539}
20540_ACEOF
20541rm -f conftest.$ac_objext
20542if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20543 (eval $ac_compile) 2>conftest.er1
a848cd7e 20544 ac_status=$?
ac1cb8d3
VS
20545 grep -v '^ *+' conftest.er1 >conftest.err
20546 rm -f conftest.er1
20547 cat conftest.err >&5
a848cd7e
SC
20548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20549 (exit $ac_status); } &&
5d7b7554 20550 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20552 (eval $ac_try) 2>&5
20553 ac_status=$?
20554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20555 (exit $ac_status); }; } &&
20556 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20558 (eval $ac_try) 2>&5
20559 ac_status=$?
20560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20561 (exit $ac_status); }; }; then
20562 ac_hi=$ac_mid; break
20563else
20564 echo "$as_me: failed program was:" >&5
20565sed 's/^/| /' conftest.$ac_ext >&5
20566
20567ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
20568 if test $ac_lo -le $ac_mid; then
20569 ac_lo= ac_hi=
20570 break
20571 fi
20572 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 20573fi
ac1cb8d3 20574rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20575 done
20576else
20577 echo "$as_me: failed program was:" >&5
20578sed 's/^/| /' conftest.$ac_ext >&5
20579
20580cat >conftest.$ac_ext <<_ACEOF
20581/* confdefs.h. */
20582_ACEOF
20583cat confdefs.h >>conftest.$ac_ext
20584cat >>conftest.$ac_ext <<_ACEOF
20585/* end confdefs.h. */
20586$ac_includes_default
20587int
20588main ()
20589{
20590static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
20591test_array [0] = 0
20592
20593 ;
20594 return 0;
20595}
20596_ACEOF
20597rm -f conftest.$ac_objext
20598if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20599 (eval $ac_compile) 2>conftest.er1
a848cd7e 20600 ac_status=$?
ac1cb8d3
VS
20601 grep -v '^ *+' conftest.er1 >conftest.err
20602 rm -f conftest.er1
20603 cat conftest.err >&5
a848cd7e
SC
20604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20605 (exit $ac_status); } &&
5d7b7554 20606 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20608 (eval $ac_try) 2>&5
20609 ac_status=$?
20610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20611 (exit $ac_status); }; } &&
20612 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20614 (eval $ac_try) 2>&5
20615 ac_status=$?
20616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20617 (exit $ac_status); }; }; then
20618 ac_hi=-1 ac_mid=-1
20619 while :; do
20620 cat >conftest.$ac_ext <<_ACEOF
20621/* confdefs.h. */
20622_ACEOF
20623cat confdefs.h >>conftest.$ac_ext
20624cat >>conftest.$ac_ext <<_ACEOF
20625/* end confdefs.h. */
20626$ac_includes_default
20627int
20628main ()
20629{
20630static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
20631test_array [0] = 0
20632
20633 ;
20634 return 0;
20635}
20636_ACEOF
20637rm -f conftest.$ac_objext
20638if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20639 (eval $ac_compile) 2>conftest.er1
a848cd7e 20640 ac_status=$?
ac1cb8d3
VS
20641 grep -v '^ *+' conftest.er1 >conftest.err
20642 rm -f conftest.er1
20643 cat conftest.err >&5
a848cd7e
SC
20644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20645 (exit $ac_status); } &&
5d7b7554 20646 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20648 (eval $ac_try) 2>&5
20649 ac_status=$?
20650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20651 (exit $ac_status); }; } &&
20652 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20654 (eval $ac_try) 2>&5
20655 ac_status=$?
20656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20657 (exit $ac_status); }; }; then
20658 ac_lo=$ac_mid; break
20659else
20660 echo "$as_me: failed program was:" >&5
20661sed 's/^/| /' conftest.$ac_ext >&5
20662
20663ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
20664 if test $ac_mid -le $ac_hi; then
20665 ac_lo= ac_hi=
20666 break
20667 fi
20668 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 20669fi
ac1cb8d3 20670rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20671 done
20672else
20673 echo "$as_me: failed program was:" >&5
20674sed 's/^/| /' conftest.$ac_ext >&5
20675
20676ac_lo= ac_hi=
20677fi
ac1cb8d3 20678rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 20679fi
ac1cb8d3 20680rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20681# Binary search between lo and hi bounds.
20682while test "x$ac_lo" != "x$ac_hi"; do
20683 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20684 cat >conftest.$ac_ext <<_ACEOF
20685/* confdefs.h. */
20686_ACEOF
20687cat confdefs.h >>conftest.$ac_ext
20688cat >>conftest.$ac_ext <<_ACEOF
20689/* end confdefs.h. */
20690$ac_includes_default
20691int
20692main ()
20693{
20694static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20695test_array [0] = 0
20696
20697 ;
20698 return 0;
20699}
20700_ACEOF
20701rm -f conftest.$ac_objext
20702if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20703 (eval $ac_compile) 2>conftest.er1
a848cd7e 20704 ac_status=$?
ac1cb8d3
VS
20705 grep -v '^ *+' conftest.er1 >conftest.err
20706 rm -f conftest.er1
20707 cat conftest.err >&5
a848cd7e
SC
20708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20709 (exit $ac_status); } &&
5d7b7554 20710 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20712 (eval $ac_try) 2>&5
20713 ac_status=$?
20714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20715 (exit $ac_status); }; } &&
20716 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20718 (eval $ac_try) 2>&5
20719 ac_status=$?
20720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20721 (exit $ac_status); }; }; then
20722 ac_hi=$ac_mid
20723else
20724 echo "$as_me: failed program was:" >&5
20725sed 's/^/| /' conftest.$ac_ext >&5
20726
20727ac_lo=`expr '(' $ac_mid ')' + 1`
20728fi
ac1cb8d3 20729rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20730done
20731case $ac_lo in
20732?*) ac_cv_sizeof_long_long=$ac_lo;;
20733'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20734See \`config.log' for more details." >&5
20735echo "$as_me: error: cannot compute sizeof (long long), 77
20736See \`config.log' for more details." >&2;}
20737 { (exit 1); exit 1; }; } ;;
20738esac
20739else
20740 if test "$cross_compiling" = yes; then
5d7b7554
VZ
20741 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
20742echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
20743 { (exit 1); exit 1; }; }
20744else
20745 cat >conftest.$ac_ext <<_ACEOF
20746/* confdefs.h. */
20747_ACEOF
20748cat confdefs.h >>conftest.$ac_ext
20749cat >>conftest.$ac_ext <<_ACEOF
20750/* end confdefs.h. */
20751$ac_includes_default
20752long longval () { return (long) (sizeof (long long)); }
20753unsigned long ulongval () { return (long) (sizeof (long long)); }
20754#include <stdio.h>
20755#include <stdlib.h>
20756int
20757main ()
20758{
20759
20760 FILE *f = fopen ("conftest.val", "w");
20761 if (! f)
20762 exit (1);
20763 if (((long) (sizeof (long long))) < 0)
20764 {
20765 long i = longval ();
20766 if (i != ((long) (sizeof (long long))))
20767 exit (1);
20768 fprintf (f, "%ld\n", i);
20769 }
20770 else
20771 {
20772 unsigned long i = ulongval ();
20773 if (i != ((long) (sizeof (long long))))
20774 exit (1);
20775 fprintf (f, "%lu\n", i);
20776 }
20777 exit (ferror (f) || fclose (f) != 0);
20778
20779 ;
20780 return 0;
20781}
20782_ACEOF
20783rm -f conftest$ac_exeext
20784if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20785 (eval $ac_link) 2>&5
20786 ac_status=$?
20787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20788 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20790 (eval $ac_try) 2>&5
20791 ac_status=$?
20792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20793 (exit $ac_status); }; }; then
20794 ac_cv_sizeof_long_long=`cat conftest.val`
20795else
20796 echo "$as_me: program exited with status $ac_status" >&5
20797echo "$as_me: failed program was:" >&5
20798sed 's/^/| /' conftest.$ac_ext >&5
20799
20800( exit $ac_status )
20801{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20802See \`config.log' for more details." >&5
20803echo "$as_me: error: cannot compute sizeof (long long), 77
20804See \`config.log' for more details." >&2;}
20805 { (exit 1); exit 1; }; }
20806fi
ac1cb8d3 20807rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20808fi
20809fi
20810rm -f conftest.val
20811else
20812 ac_cv_sizeof_long_long=0
20813fi
20814fi
20815echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
20816echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
20817cat >>confdefs.h <<_ACEOF
20818#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
20819_ACEOF
20820
20821
20822esac
20823
238ecede
MW
20824echo "$as_me:$LINENO: checking for wchar_t" >&5
20825echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
20826if test "${ac_cv_type_wchar_t+set}" = set; then
20827 echo $ECHO_N "(cached) $ECHO_C" >&6
20828else
20829 cat >conftest.$ac_ext <<_ACEOF
20830/* confdefs.h. */
20831_ACEOF
20832cat confdefs.h >>conftest.$ac_ext
20833cat >>conftest.$ac_ext <<_ACEOF
20834/* end confdefs.h. */
20835
83d8eb47
MW
20836 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
20837 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
20838 # error "fake wchar_t"
20839 #endif
20840 #ifdef HAVE_WCHAR_H
20841 # ifdef __CYGWIN__
20842 # include <stddef.h>
20843 # endif
20844 # include <wchar.h>
20845 #endif
20846 #ifdef HAVE_STDLIB_H
20847 # include <stdlib.h>
20848 #endif
20849 #include <stdio.h>
20850
20851
20852
20853int
20854main ()
20855{
20856if ((wchar_t *) 0)
20857 return 0;
20858if (sizeof (wchar_t))
20859 return 0;
20860 ;
20861 return 0;
20862}
20863_ACEOF
20864rm -f conftest.$ac_objext
20865if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20866 (eval $ac_compile) 2>conftest.er1
20867 ac_status=$?
20868 grep -v '^ *+' conftest.er1 >conftest.err
20869 rm -f conftest.er1
20870 cat conftest.err >&5
20871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20872 (exit $ac_status); } &&
5d7b7554 20873 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
238ecede
MW
20874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20875 (eval $ac_try) 2>&5
20876 ac_status=$?
20877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20878 (exit $ac_status); }; } &&
20879 { ac_try='test -s conftest.$ac_objext'
20880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20881 (eval $ac_try) 2>&5
20882 ac_status=$?
20883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20884 (exit $ac_status); }; }; then
20885 ac_cv_type_wchar_t=yes
20886else
20887 echo "$as_me: failed program was:" >&5
20888sed 's/^/| /' conftest.$ac_ext >&5
20889
20890ac_cv_type_wchar_t=no
20891fi
20892rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20893fi
20894echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
20895echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
20896
a848cd7e
SC
20897echo "$as_me:$LINENO: checking size of wchar_t" >&5
20898echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
238ecede 20899if test "${ac_cv_sizeof_wchar_t+set}" = set; then
a848cd7e
SC
20900 echo $ECHO_N "(cached) $ECHO_C" >&6
20901else
238ecede
MW
20902 if test "$ac_cv_type_wchar_t" = yes; then
20903 # The cast to unsigned long works around a bug in the HP C Compiler
20904 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20905 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20906 # This bug is HP SR number 8606223364.
20907 if test "$cross_compiling" = yes; then
20908 # Depending upon the size, compute the lo and hi bounds.
20909cat >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>
20930
20931
20932
20933int
20934main ()
20935{
20936static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
20937test_array [0] = 0
20938
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); } &&
5d7b7554 20952 { ac_try='test -z "$ac_cxx_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_lo=0 ac_mid=0
20965 while :; do
20966 cat >conftest.$ac_ext <<_ACEOF
20967/* confdefs.h. */
20968_ACEOF
20969cat confdefs.h >>conftest.$ac_ext
20970cat >>conftest.$ac_ext <<_ACEOF
20971/* end confdefs.h. */
20972
83d8eb47
MW
20973 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
20974 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
20975 # error "fake wchar_t"
20976 #endif
20977 #ifdef HAVE_WCHAR_H
20978 # ifdef __CYGWIN__
20979 # include <stddef.h>
20980 # endif
20981 # include <wchar.h>
20982 #endif
20983 #ifdef HAVE_STDLIB_H
20984 # include <stdlib.h>
20985 #endif
20986 #include <stdio.h>
20987
20988
20989
20990int
20991main ()
20992{
20993static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
20994test_array [0] = 0
20995
20996 ;
20997 return 0;
20998}
20999_ACEOF
21000rm -f conftest.$ac_objext
21001if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21002 (eval $ac_compile) 2>conftest.er1
21003 ac_status=$?
21004 grep -v '^ *+' conftest.er1 >conftest.err
21005 rm -f conftest.er1
21006 cat conftest.err >&5
21007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21008 (exit $ac_status); } &&
5d7b7554 21009 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
238ecede
MW
21010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21011 (eval $ac_try) 2>&5
21012 ac_status=$?
21013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21014 (exit $ac_status); }; } &&
21015 { ac_try='test -s conftest.$ac_objext'
21016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21017 (eval $ac_try) 2>&5
21018 ac_status=$?
21019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21020 (exit $ac_status); }; }; then
21021 ac_hi=$ac_mid; break
21022else
21023 echo "$as_me: failed program was:" >&5
21024sed 's/^/| /' conftest.$ac_ext >&5
21025
21026ac_lo=`expr $ac_mid + 1`
21027 if test $ac_lo -le $ac_mid; then
21028 ac_lo= ac_hi=
21029 break
21030 fi
21031 ac_mid=`expr 2 '*' $ac_mid + 1`
21032fi
21033rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21034 done
21035else
21036 echo "$as_me: failed program was:" >&5
21037sed 's/^/| /' conftest.$ac_ext >&5
21038
21039cat >conftest.$ac_ext <<_ACEOF
21040/* confdefs.h. */
21041_ACEOF
21042cat confdefs.h >>conftest.$ac_ext
21043cat >>conftest.$ac_ext <<_ACEOF
21044/* end confdefs.h. */
21045
83d8eb47
MW
21046 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21047 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21048 # error "fake wchar_t"
21049 #endif
21050 #ifdef HAVE_WCHAR_H
21051 # ifdef __CYGWIN__
21052 # include <stddef.h>
21053 # endif
21054 # include <wchar.h>
21055 #endif
21056 #ifdef HAVE_STDLIB_H
21057 # include <stdlib.h>
21058 #endif
21059 #include <stdio.h>
21060
21061
21062
21063int
21064main ()
21065{
21066static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
21067test_array [0] = 0
21068
21069 ;
21070 return 0;
21071}
21072_ACEOF
21073rm -f conftest.$ac_objext
21074if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21075 (eval $ac_compile) 2>conftest.er1
21076 ac_status=$?
21077 grep -v '^ *+' conftest.er1 >conftest.err
21078 rm -f conftest.er1
21079 cat conftest.err >&5
21080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21081 (exit $ac_status); } &&
5d7b7554 21082 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
238ecede
MW
21083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21084 (eval $ac_try) 2>&5
21085 ac_status=$?
21086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21087 (exit $ac_status); }; } &&
21088 { ac_try='test -s conftest.$ac_objext'
21089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21090 (eval $ac_try) 2>&5
21091 ac_status=$?
21092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21093 (exit $ac_status); }; }; then
21094 ac_hi=-1 ac_mid=-1
21095 while :; do
21096 cat >conftest.$ac_ext <<_ACEOF
21097/* confdefs.h. */
21098_ACEOF
21099cat confdefs.h >>conftest.$ac_ext
21100cat >>conftest.$ac_ext <<_ACEOF
21101/* end confdefs.h. */
21102
83d8eb47
MW
21103 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21104 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21105 # error "fake wchar_t"
21106 #endif
21107 #ifdef HAVE_WCHAR_H
21108 # ifdef __CYGWIN__
21109 # include <stddef.h>
21110 # endif
21111 # include <wchar.h>
21112 #endif
21113 #ifdef HAVE_STDLIB_H
21114 # include <stdlib.h>
21115 #endif
21116 #include <stdio.h>
21117
21118
21119
21120int
21121main ()
21122{
21123static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
21124test_array [0] = 0
21125
21126 ;
21127 return 0;
21128}
21129_ACEOF
21130rm -f conftest.$ac_objext
21131if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21132 (eval $ac_compile) 2>conftest.er1
21133 ac_status=$?
21134 grep -v '^ *+' conftest.er1 >conftest.err
21135 rm -f conftest.er1
21136 cat conftest.err >&5
21137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21138 (exit $ac_status); } &&
5d7b7554 21139 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
238ecede
MW
21140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21141 (eval $ac_try) 2>&5
21142 ac_status=$?
21143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21144 (exit $ac_status); }; } &&
21145 { ac_try='test -s conftest.$ac_objext'
21146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21147 (eval $ac_try) 2>&5
21148 ac_status=$?
21149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21150 (exit $ac_status); }; }; then
21151 ac_lo=$ac_mid; break
21152else
21153 echo "$as_me: failed program was:" >&5
21154sed 's/^/| /' conftest.$ac_ext >&5
21155
21156ac_hi=`expr '(' $ac_mid ')' - 1`
21157 if test $ac_mid -le $ac_hi; then
21158 ac_lo= ac_hi=
21159 break
21160 fi
21161 ac_mid=`expr 2 '*' $ac_mid`
21162fi
21163rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21164 done
21165else
21166 echo "$as_me: failed program was:" >&5
21167sed 's/^/| /' conftest.$ac_ext >&5
21168
21169ac_lo= ac_hi=
21170fi
21171rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21172fi
21173rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21174# Binary search between lo and hi bounds.
21175while test "x$ac_lo" != "x$ac_hi"; do
21176 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21177 cat >conftest.$ac_ext <<_ACEOF
21178/* confdefs.h. */
21179_ACEOF
21180cat confdefs.h >>conftest.$ac_ext
21181cat >>conftest.$ac_ext <<_ACEOF
21182/* end confdefs.h. */
21183
83d8eb47
MW
21184 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21185 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21186 # error "fake wchar_t"
21187 #endif
21188 #ifdef HAVE_WCHAR_H
21189 # ifdef __CYGWIN__
21190 # include <stddef.h>
21191 # endif
21192 # include <wchar.h>
21193 #endif
21194 #ifdef HAVE_STDLIB_H
21195 # include <stdlib.h>
21196 #endif
21197 #include <stdio.h>
a848cd7e 21198
a848cd7e 21199
a848cd7e 21200
238ecede
MW
21201int
21202main ()
21203{
21204static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
21205test_array [0] = 0
a848cd7e 21206
238ecede
MW
21207 ;
21208 return 0;
21209}
21210_ACEOF
21211rm -f conftest.$ac_objext
21212if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21213 (eval $ac_compile) 2>conftest.er1
21214 ac_status=$?
21215 grep -v '^ *+' conftest.er1 >conftest.err
21216 rm -f conftest.er1
21217 cat conftest.err >&5
21218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21219 (exit $ac_status); } &&
5d7b7554 21220 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
238ecede
MW
21221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21222 (eval $ac_try) 2>&5
21223 ac_status=$?
21224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21225 (exit $ac_status); }; } &&
21226 { ac_try='test -s conftest.$ac_objext'
21227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21228 (eval $ac_try) 2>&5
21229 ac_status=$?
21230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21231 (exit $ac_status); }; }; then
21232 ac_hi=$ac_mid
21233else
21234 echo "$as_me: failed program was:" >&5
21235sed 's/^/| /' conftest.$ac_ext >&5
21236
21237ac_lo=`expr '(' $ac_mid ')' + 1`
21238fi
21239rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21240done
21241case $ac_lo in
21242?*) ac_cv_sizeof_wchar_t=$ac_lo;;
21243'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
21244See \`config.log' for more details." >&5
21245echo "$as_me: error: cannot compute sizeof (wchar_t), 77
21246See \`config.log' for more details." >&2;}
21247 { (exit 1); exit 1; }; } ;;
21248esac
21249else
21250 if test "$cross_compiling" = yes; then
5d7b7554
VZ
21251 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
21252echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
238ecede 21253 { (exit 1); exit 1; }; }
a848cd7e
SC
21254else
21255 cat >conftest.$ac_ext <<_ACEOF
21256/* confdefs.h. */
21257_ACEOF
21258cat confdefs.h >>conftest.$ac_ext
21259cat >>conftest.$ac_ext <<_ACEOF
21260/* end confdefs.h. */
21261
83d8eb47
MW
21262 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21263 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21264 # error "fake wchar_t"
21265 #endif
21266 #ifdef HAVE_WCHAR_H
21267 # ifdef __CYGWIN__
21268 # include <stddef.h>
21269 # endif
21270 # include <wchar.h>
21271 #endif
21272 #ifdef HAVE_STDLIB_H
21273 # include <stdlib.h>
21274 #endif
21275 #include <stdio.h>
21276
21277
21278
21279long longval () { return (long) (sizeof (wchar_t)); }
21280unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
21281#include <stdio.h>
21282#include <stdlib.h>
21283int
21284main ()
21285{
a848cd7e 21286
238ecede
MW
21287 FILE *f = fopen ("conftest.val", "w");
21288 if (! f)
21289 exit (1);
21290 if (((long) (sizeof (wchar_t))) < 0)
21291 {
21292 long i = longval ();
21293 if (i != ((long) (sizeof (wchar_t))))
21294 exit (1);
21295 fprintf (f, "%ld\n", i);
21296 }
21297 else
21298 {
21299 unsigned long i = ulongval ();
21300 if (i != ((long) (sizeof (wchar_t))))
21301 exit (1);
21302 fprintf (f, "%lu\n", i);
21303 }
21304 exit (ferror (f) || fclose (f) != 0);
21305
21306 ;
21307 return 0;
21308}
a848cd7e
SC
21309_ACEOF
21310rm -f conftest$ac_exeext
21311if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21312 (eval $ac_link) 2>&5
21313 ac_status=$?
21314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21315 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21317 (eval $ac_try) 2>&5
21318 ac_status=$?
21319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21320 (exit $ac_status); }; }; then
238ecede 21321 ac_cv_sizeof_wchar_t=`cat conftest.val`
a848cd7e
SC
21322else
21323 echo "$as_me: program exited with status $ac_status" >&5
21324echo "$as_me: failed program was:" >&5
21325sed 's/^/| /' conftest.$ac_ext >&5
21326
21327( exit $ac_status )
238ecede
MW
21328{ { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
21329See \`config.log' for more details." >&5
21330echo "$as_me: error: cannot compute sizeof (wchar_t), 77
21331See \`config.log' for more details." >&2;}
21332 { (exit 1); exit 1; }; }
a848cd7e 21333fi
ac1cb8d3 21334rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 21335fi
a848cd7e 21336fi
238ecede
MW
21337rm -f conftest.val
21338else
21339 ac_cv_sizeof_wchar_t=0
21340fi
21341fi
21342echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
21343echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
a848cd7e 21344cat >>confdefs.h <<_ACEOF
238ecede 21345#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
a848cd7e
SC
21346_ACEOF
21347
21348
47a7e797
MW
21349if test "$ac_cv_sizeof_wchar_t" != "0"; then
21350 wxUSE_WCHAR_T=yes
21351else
21352 wxUSE_WCHAR_T=no
21353fi
238ecede 21354
ba3d13e1
VZ
21355echo "$as_me:$LINENO: checking for va_copy" >&5
21356echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
21357if test "${wx_cv_func_va_copy+set}" = set; then
21358 echo $ECHO_N "(cached) $ECHO_C" >&6
21359else
21360
21361 cat >conftest.$ac_ext <<_ACEOF
21362
21363 #include <stdarg.h>
21364 void foo(char *f, ...)
21365 {
21366 va_list ap1, ap2;
21367 va_start(ap1, f);
21368 va_copy(ap2, ap1);
21369 va_end(ap2);
21370 va_end(ap1);
21371 }
5886b072
VZ
21372 int main()
21373 {
b902e639
VZ
21374 foo("hi", 17);
21375 return 0;
5886b072 21376 }
ba3d13e1
VZ
21377_ACEOF
21378rm -f conftest.$ac_objext conftest$ac_exeext
21379if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21380 (eval $ac_link) 2>conftest.er1
21381 ac_status=$?
21382 grep -v '^ *+' conftest.er1 >conftest.err
21383 rm -f conftest.er1
21384 cat conftest.err >&5
21385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21386 (exit $ac_status); } &&
5d7b7554 21387 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ba3d13e1
VZ
21388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21389 (eval $ac_try) 2>&5
21390 ac_status=$?
21391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21392 (exit $ac_status); }; } &&
21393 { ac_try='test -s conftest$ac_exeext'
21394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21395 (eval $ac_try) 2>&5
21396 ac_status=$?
21397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21398 (exit $ac_status); }; }; then
21399 wx_cv_func_va_copy=yes
21400else
21401 echo "$as_me: failed program was:" >&5
21402sed 's/^/| /' conftest.$ac_ext >&5
21403
21404wx_cv_func_va_copy=no
21405
21406fi
21407rm -f conftest.err conftest.$ac_objext \
21408 conftest$ac_exeext conftest.$ac_ext
21409
21410
21411fi
21412echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
21413echo "${ECHO_T}$wx_cv_func_va_copy" >&6
21414
21415if test $wx_cv_func_va_copy = "yes"; then
21416 cat >>confdefs.h <<\_ACEOF
21417#define HAVE_VA_COPY 1
21418_ACEOF
21419
21420else
21421 echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
21422echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6
21423if test "${wx_cv_type_va_list_lvalue+set}" = set; then
21424 echo $ECHO_N "(cached) $ECHO_C" >&6
21425else
21426
21427 if test "$cross_compiling" = yes; then
21428 wx_cv_type_va_list_lvalue=yes
21429
21430else
21431 cat >conftest.$ac_ext <<_ACEOF
21432
21433 #include <stdarg.h>
21434 int foo(char *f, ...)
21435 {
21436 va_list ap1, ap2;
21437 va_start(ap1, f);
21438 ap2 = ap1;
21439 if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
21440 return 1;
21441 va_end(ap2);
21442 va_end(ap1);
21443 return 0;
21444 }
21445 int main()
21446 {
21447 return foo("hi", 17);
21448 }
21449_ACEOF
21450rm -f conftest$ac_exeext
21451if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21452 (eval $ac_link) 2>&5
21453 ac_status=$?
21454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21455 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21457 (eval $ac_try) 2>&5
21458 ac_status=$?
21459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21460 (exit $ac_status); }; }; then
21461 wx_cv_type_va_list_lvalue=yes
21462else
21463 echo "$as_me: program exited with status $ac_status" >&5
21464echo "$as_me: failed program was:" >&5
21465sed 's/^/| /' conftest.$ac_ext >&5
21466
21467( exit $ac_status )
21468wx_cv_type_va_list_lvalue=no
21469fi
21470rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21471fi
21472
21473
21474fi
21475echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
21476echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6
21477
21478 if test $wx_cv_type_va_list_lvalue != "yes"; then
21479 cat >>confdefs.h <<\_ACEOF
21480#define VA_LIST_IS_ARRAY 1
21481_ACEOF
21482
21483 fi
21484fi
21485
a848cd7e
SC
21486# Check whether --enable-largefile or --disable-largefile was given.
21487if test "${enable_largefile+set}" = set; then
21488 enableval="$enable_largefile"
21489
21490fi;
21491if test "$enable_largefile" != no; then
21492 wx_largefile=no
21493
21494 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
21495echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
21496if test "${ac_cv_sys_file_offset_bits+set}" = set; then
21497 echo $ECHO_N "(cached) $ECHO_C" >&6
21498else
21499
21500 cat >conftest.$ac_ext <<_ACEOF
21501/* confdefs.h. */
21502_ACEOF
21503cat confdefs.h >>conftest.$ac_ext
21504cat >>conftest.$ac_ext <<_ACEOF
21505/* end confdefs.h. */
21506#define _FILE_OFFSET_BITS 64
21507 #include <sys/types.h>
21508int
21509main ()
21510{
21511typedef struct {
21512 unsigned int field: sizeof(off_t) == 8;
21513} wxlf;
21514
21515 ;
21516 return 0;
21517}
21518_ACEOF
21519rm -f conftest.$ac_objext
21520if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21521 (eval $ac_compile) 2>conftest.er1
a848cd7e 21522 ac_status=$?
ac1cb8d3
VS
21523 grep -v '^ *+' conftest.er1 >conftest.err
21524 rm -f conftest.er1
21525 cat conftest.err >&5
a848cd7e
SC
21526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21527 (exit $ac_status); } &&
5d7b7554 21528 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21530 (eval $ac_try) 2>&5
21531 ac_status=$?
21532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21533 (exit $ac_status); }; } &&
21534 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21536 (eval $ac_try) 2>&5
21537 ac_status=$?
21538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21539 (exit $ac_status); }; }; then
21540 ac_cv_sys_file_offset_bits=64
21541else
21542 echo "$as_me: failed program was:" >&5
21543sed 's/^/| /' conftest.$ac_ext >&5
21544
21545ac_cv_sys_file_offset_bits=no
21546fi
ac1cb8d3 21547rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21548
21549
21550fi
21551echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
21552echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
21553
21554 if test "$ac_cv_sys_file_offset_bits" != no; then
21555 wx_largefile=yes
21556 cat >>confdefs.h <<_ACEOF
21557#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
21558_ACEOF
21559
21560 fi
21561
21562 if test "x$wx_largefile" != "xyes"; then
21563
21564 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
21565echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
21566if test "${ac_cv_sys_large_files+set}" = set; then
21567 echo $ECHO_N "(cached) $ECHO_C" >&6
21568else
21569
21570 cat >conftest.$ac_ext <<_ACEOF
21571/* confdefs.h. */
21572_ACEOF
21573cat confdefs.h >>conftest.$ac_ext
21574cat >>conftest.$ac_ext <<_ACEOF
21575/* end confdefs.h. */
21576#define _LARGE_FILES 1
21577 #include <sys/types.h>
21578int
21579main ()
21580{
21581typedef struct {
21582 unsigned int field: sizeof(off_t) == 8;
21583} wxlf;
21584
21585 ;
21586 return 0;
21587}
21588_ACEOF
21589rm -f conftest.$ac_objext
21590if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21591 (eval $ac_compile) 2>conftest.er1
a848cd7e 21592 ac_status=$?
ac1cb8d3
VS
21593 grep -v '^ *+' conftest.er1 >conftest.err
21594 rm -f conftest.er1
21595 cat conftest.err >&5
a848cd7e
SC
21596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21597 (exit $ac_status); } &&
5d7b7554 21598 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21600 (eval $ac_try) 2>&5
21601 ac_status=$?
21602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21603 (exit $ac_status); }; } &&
21604 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21606 (eval $ac_try) 2>&5
21607 ac_status=$?
21608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21609 (exit $ac_status); }; }; then
21610 ac_cv_sys_large_files=1
21611else
21612 echo "$as_me: failed program was:" >&5
21613sed 's/^/| /' conftest.$ac_ext >&5
21614
21615ac_cv_sys_large_files=no
21616fi
ac1cb8d3 21617rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21618
21619
21620fi
21621echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
21622echo "${ECHO_T}$ac_cv_sys_large_files" >&6
21623
21624 if test "$ac_cv_sys_large_files" != no; then
21625 wx_largefile=yes
21626 cat >>confdefs.h <<_ACEOF
21627#define _LARGE_FILES $ac_cv_sys_large_files
21628_ACEOF
21629
21630 fi
21631
21632 fi
21633
21634 echo "$as_me:$LINENO: checking if large file support is available" >&5
21635echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
21636 if test "x$wx_largefile" = "xyes"; then
21637 cat >>confdefs.h <<\_ACEOF
21638#define HAVE_LARGEFILE_SUPPORT 1
21639_ACEOF
21640
21641 fi
21642 echo "$as_me:$LINENO: result: $wx_largefile" >&5
21643echo "${ECHO_T}$wx_largefile" >&6
21644fi
21645
5b674b9d
DE
21646
21647if test "x$wx_largefile" = "xyes"; then
21648 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
5ff751d6 21649 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
00421666
MW
21650
21651 if test "$USE_HPUX" = 1 -a "$GXX" = "yes"; then
21652 echo "$as_me:$LINENO: checking if -D__STDC_EXT__ is required" >&5
21653echo $ECHO_N "checking if -D__STDC_EXT__ is required... $ECHO_C" >&6
21654if test "${wx_cv_STDC_EXT_required+set}" = set; then
21655 echo $ECHO_N "(cached) $ECHO_C" >&6
21656else
21657
00421666
MW
21658 cat >conftest.$ac_ext <<_ACEOF
21659/* confdefs.h. */
21660_ACEOF
21661cat confdefs.h >>conftest.$ac_ext
21662cat >>conftest.$ac_ext <<_ACEOF
21663/* end confdefs.h. */
21664
21665int
21666main ()
21667{
21668
21669 #ifndef __STDC_EXT__
21670 choke me
21671 #endif
21672
21673 ;
21674 return 0;
21675}
21676_ACEOF
21677rm -f conftest.$ac_objext
21678if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21679 (eval $ac_compile) 2>conftest.er1
21680 ac_status=$?
21681 grep -v '^ *+' conftest.er1 >conftest.err
21682 rm -f conftest.er1
21683 cat conftest.err >&5
21684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21685 (exit $ac_status); } &&
5d7b7554 21686 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
00421666
MW
21687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21688 (eval $ac_try) 2>&5
21689 ac_status=$?
21690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21691 (exit $ac_status); }; } &&
21692 { ac_try='test -s conftest.$ac_objext'
21693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21694 (eval $ac_try) 2>&5
21695 ac_status=$?
21696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21697 (exit $ac_status); }; }; then
21698 wx_cv_STDC_EXT_required=no
21699else
21700 echo "$as_me: failed program was:" >&5
21701sed 's/^/| /' conftest.$ac_ext >&5
21702
21703wx_cv_STDC_EXT_required=yes
21704
21705fi
21706rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
00421666
MW
21707
21708
21709fi
21710echo "$as_me:$LINENO: result: $wx_cv_STDC_EXT_required" >&5
21711echo "${ECHO_T}$wx_cv_STDC_EXT_required" >&6
21712 if test "x$wx_cv_STDC_EXT_required" = "xyes"; then
5ff751d6 21713 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -D__STDC_EXT__"
00421666
MW
21714 fi
21715 fi
5b674b9d 21716 else
5ff751d6 21717 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGE_FILES"
5b674b9d
DE
21718 fi
21719 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
5294a27e
VZ
21720echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
21721if test "${ac_cv_sys_largefile_source+set}" = set; then
21722 echo $ECHO_N "(cached) $ECHO_C" >&6
21723else
21724 while :; do
21725 ac_cv_sys_largefile_source=no
21726 cat >conftest.$ac_ext <<_ACEOF
21727/* confdefs.h. */
21728_ACEOF
21729cat confdefs.h >>conftest.$ac_ext
21730cat >>conftest.$ac_ext <<_ACEOF
21731/* end confdefs.h. */
21732#include <stdio.h>
21733int
21734main ()
21735{
21736return !fseeko;
21737 ;
21738 return 0;
21739}
21740_ACEOF
21741rm -f conftest.$ac_objext
21742if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21743 (eval $ac_compile) 2>conftest.er1
21744 ac_status=$?
21745 grep -v '^ *+' conftest.er1 >conftest.err
21746 rm -f conftest.er1
21747 cat conftest.err >&5
21748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21749 (exit $ac_status); } &&
5d7b7554 21750 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
21751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21752 (eval $ac_try) 2>&5
21753 ac_status=$?
21754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21755 (exit $ac_status); }; } &&
21756 { ac_try='test -s conftest.$ac_objext'
21757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21758 (eval $ac_try) 2>&5
21759 ac_status=$?
21760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21761 (exit $ac_status); }; }; then
21762 break
21763else
21764 echo "$as_me: failed program was:" >&5
21765sed 's/^/| /' conftest.$ac_ext >&5
21766
21767fi
21768rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21769 cat >conftest.$ac_ext <<_ACEOF
21770/* confdefs.h. */
21771_ACEOF
21772cat confdefs.h >>conftest.$ac_ext
21773cat >>conftest.$ac_ext <<_ACEOF
21774/* end confdefs.h. */
21775#define _LARGEFILE_SOURCE 1
21776#include <stdio.h>
21777int
21778main ()
21779{
21780return !fseeko;
21781 ;
21782 return 0;
21783}
21784_ACEOF
21785rm -f conftest.$ac_objext
21786if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21787 (eval $ac_compile) 2>conftest.er1
21788 ac_status=$?
21789 grep -v '^ *+' conftest.er1 >conftest.err
21790 rm -f conftest.er1
21791 cat conftest.err >&5
21792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21793 (exit $ac_status); } &&
5d7b7554 21794 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
21795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21796 (eval $ac_try) 2>&5
21797 ac_status=$?
21798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21799 (exit $ac_status); }; } &&
21800 { ac_try='test -s conftest.$ac_objext'
21801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21802 (eval $ac_try) 2>&5
21803 ac_status=$?
21804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21805 (exit $ac_status); }; }; then
21806 ac_cv_sys_largefile_source=1; break
21807else
21808 echo "$as_me: failed program was:" >&5
21809sed 's/^/| /' conftest.$ac_ext >&5
21810
21811fi
21812rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21813 break
21814done
21815fi
21816echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
21817echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
21818if test "$ac_cv_sys_largefile_source" != no; then
21819
21820cat >>confdefs.h <<_ACEOF
21821#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
21822_ACEOF
21823
21824fi
21825rm -f conftest*
21826
21827# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
21828# in glibc 2.1.3, but that breaks too many other things.
21829# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
21830echo "$as_me:$LINENO: checking for fseeko" >&5
21831echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
21832if test "${ac_cv_func_fseeko+set}" = set; then
21833 echo $ECHO_N "(cached) $ECHO_C" >&6
21834else
21835 cat >conftest.$ac_ext <<_ACEOF
21836/* confdefs.h. */
21837_ACEOF
21838cat confdefs.h >>conftest.$ac_ext
21839cat >>conftest.$ac_ext <<_ACEOF
21840/* end confdefs.h. */
21841#include <stdio.h>
21842int
21843main ()
21844{
21845return fseeko && fseeko (stdin, 0, 0);
21846 ;
21847 return 0;
21848}
21849_ACEOF
21850rm -f conftest.$ac_objext conftest$ac_exeext
21851if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21852 (eval $ac_link) 2>conftest.er1
21853 ac_status=$?
21854 grep -v '^ *+' conftest.er1 >conftest.err
21855 rm -f conftest.er1
21856 cat conftest.err >&5
21857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21858 (exit $ac_status); } &&
5d7b7554 21859 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
21860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21861 (eval $ac_try) 2>&5
21862 ac_status=$?
21863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21864 (exit $ac_status); }; } &&
21865 { ac_try='test -s conftest$ac_exeext'
21866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21867 (eval $ac_try) 2>&5
21868 ac_status=$?
21869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21870 (exit $ac_status); }; }; then
21871 ac_cv_func_fseeko=yes
21872else
21873 echo "$as_me: failed program was:" >&5
21874sed 's/^/| /' conftest.$ac_ext >&5
21875
21876ac_cv_func_fseeko=no
21877fi
21878rm -f conftest.err conftest.$ac_objext \
21879 conftest$ac_exeext conftest.$ac_ext
21880fi
21881echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
21882echo "${ECHO_T}$ac_cv_func_fseeko" >&6
21883if test $ac_cv_func_fseeko = yes; then
21884
21885cat >>confdefs.h <<\_ACEOF
21886#define HAVE_FSEEKO 1
21887_ACEOF
21888
21889fi
21890
5b674b9d 21891 if test "$ac_cv_sys_largefile_source" != no; then
5ff751d6 21892 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
a848cd7e 21893 fi
a848cd7e
SC
21894fi
21895
21896echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
21897echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
21898if test "${ac_cv_c_bigendian+set}" = set; then
21899 echo $ECHO_N "(cached) $ECHO_C" >&6
21900else
21901 ac_cv_c_bigendian=unknown
21902# See if sys/param.h defines the BYTE_ORDER macro.
21903cat >conftest.$ac_ext <<_ACEOF
21904/* confdefs.h. */
21905_ACEOF
21906cat confdefs.h >>conftest.$ac_ext
21907cat >>conftest.$ac_ext <<_ACEOF
21908/* end confdefs.h. */
21909#include <sys/types.h>
21910#include <sys/param.h>
21911int
21912main ()
21913{
21914
21915#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
21916 bogus endian macros
21917#endif
21918 ;
21919 return 0;
21920}
21921_ACEOF
21922rm -f conftest.$ac_objext
21923if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21924 (eval $ac_compile) 2>conftest.er1
a848cd7e 21925 ac_status=$?
ac1cb8d3
VS
21926 grep -v '^ *+' conftest.er1 >conftest.err
21927 rm -f conftest.er1
21928 cat conftest.err >&5
a848cd7e
SC
21929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21930 (exit $ac_status); } &&
5d7b7554 21931 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21933 (eval $ac_try) 2>&5
21934 ac_status=$?
21935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21936 (exit $ac_status); }; } &&
21937 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21939 (eval $ac_try) 2>&5
21940 ac_status=$?
21941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21942 (exit $ac_status); }; }; then
21943 # It does; now see whether it defined to BIG_ENDIAN or not.
21944cat >conftest.$ac_ext <<_ACEOF
21945/* confdefs.h. */
21946_ACEOF
21947cat confdefs.h >>conftest.$ac_ext
21948cat >>conftest.$ac_ext <<_ACEOF
21949/* end confdefs.h. */
21950#include <sys/types.h>
21951#include <sys/param.h>
21952int
21953main ()
21954{
21955
21956#if BYTE_ORDER != BIG_ENDIAN
21957 not big endian
21958#endif
21959 ;
21960 return 0;
21961}
21962_ACEOF
21963rm -f conftest.$ac_objext
21964if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21965 (eval $ac_compile) 2>conftest.er1
a848cd7e 21966 ac_status=$?
ac1cb8d3
VS
21967 grep -v '^ *+' conftest.er1 >conftest.err
21968 rm -f conftest.er1
21969 cat conftest.err >&5
a848cd7e
SC
21970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21971 (exit $ac_status); } &&
5d7b7554 21972 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21974 (eval $ac_try) 2>&5
21975 ac_status=$?
21976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21977 (exit $ac_status); }; } &&
21978 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21980 (eval $ac_try) 2>&5
21981 ac_status=$?
21982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21983 (exit $ac_status); }; }; then
21984 ac_cv_c_bigendian=yes
21985else
21986 echo "$as_me: failed program was:" >&5
21987sed 's/^/| /' conftest.$ac_ext >&5
21988
21989ac_cv_c_bigendian=no
21990fi
ac1cb8d3 21991rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21992else
21993 echo "$as_me: failed program was:" >&5
21994sed 's/^/| /' conftest.$ac_ext >&5
21995
21996fi
ac1cb8d3 21997rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21998if test $ac_cv_c_bigendian = unknown; then
21999if test "$cross_compiling" = yes; then
22000 ac_cv_c_bigendian=unknown
22001else
22002 cat >conftest.$ac_ext <<_ACEOF
22003/* confdefs.h. */
22004_ACEOF
22005cat confdefs.h >>conftest.$ac_ext
22006cat >>conftest.$ac_ext <<_ACEOF
22007/* end confdefs.h. */
22008main () {
22009 /* Are we little or big endian? From Harbison&Steele. */
22010 union
22011 {
22012 long l;
22013 char c[sizeof (long)];
22014 } u;
22015 u.l = 1;
22016 exit (u.c[sizeof (long) - 1] == 1);
22017}
22018_ACEOF
22019rm -f conftest$ac_exeext
22020if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22021 (eval $ac_link) 2>&5
22022 ac_status=$?
22023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22024 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22026 (eval $ac_try) 2>&5
22027 ac_status=$?
22028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22029 (exit $ac_status); }; }; then
22030 ac_cv_c_bigendian=no
22031else
22032 echo "$as_me: program exited with status $ac_status" >&5
22033echo "$as_me: failed program was:" >&5
22034sed 's/^/| /' conftest.$ac_ext >&5
22035
22036( exit $ac_status )
22037ac_cv_c_bigendian=yes
22038fi
ac1cb8d3 22039rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22040fi
22041fi
22042fi
22043echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
22044echo "${ECHO_T}$ac_cv_c_bigendian" >&6
22045if test $ac_cv_c_bigendian = unknown; then
22046 { 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
22047echo "$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;}
22048fi
22049if test $ac_cv_c_bigendian = yes; then
22050 cat >>confdefs.h <<\_ACEOF
22051#define WORDS_BIGENDIAN 1
22052_ACEOF
22053
22054fi
22055
22056
a848cd7e
SC
22057
22058
22059
22060 ac_ext=cc
22061ac_cpp='$CXXCPP $CPPFLAGS'
22062ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22063ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22064ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22065
22066
22067
22068for ac_header in iostream
22069do
22070as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22071if eval "test \"\${$as_ac_Header+set}\" = set"; then
22072 echo "$as_me:$LINENO: checking for $ac_header" >&5
22073echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22074if eval "test \"\${$as_ac_Header+set}\" = set"; then
22075 echo $ECHO_N "(cached) $ECHO_C" >&6
22076fi
22077echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22078echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22079else
22080 # Is the header compilable?
22081echo "$as_me:$LINENO: checking $ac_header usability" >&5
22082echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22083cat >conftest.$ac_ext <<_ACEOF
22084/* confdefs.h. */
22085_ACEOF
22086cat confdefs.h >>conftest.$ac_ext
22087cat >>conftest.$ac_ext <<_ACEOF
22088/* end confdefs.h. */
22089$ac_includes_default
22090#include <$ac_header>
22091_ACEOF
22092rm -f conftest.$ac_objext
22093if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22094 (eval $ac_compile) 2>conftest.er1
a848cd7e 22095 ac_status=$?
ac1cb8d3
VS
22096 grep -v '^ *+' conftest.er1 >conftest.err
22097 rm -f conftest.er1
22098 cat conftest.err >&5
a848cd7e
SC
22099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22100 (exit $ac_status); } &&
5d7b7554 22101 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22103 (eval $ac_try) 2>&5
22104 ac_status=$?
22105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22106 (exit $ac_status); }; } &&
22107 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22109 (eval $ac_try) 2>&5
22110 ac_status=$?
22111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22112 (exit $ac_status); }; }; then
22113 ac_header_compiler=yes
22114else
22115 echo "$as_me: failed program was:" >&5
22116sed 's/^/| /' conftest.$ac_ext >&5
22117
22118ac_header_compiler=no
22119fi
ac1cb8d3 22120rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22121echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22122echo "${ECHO_T}$ac_header_compiler" >&6
22123
22124# Is the header present?
22125echo "$as_me:$LINENO: checking $ac_header presence" >&5
22126echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22127cat >conftest.$ac_ext <<_ACEOF
22128/* confdefs.h. */
22129_ACEOF
22130cat confdefs.h >>conftest.$ac_ext
22131cat >>conftest.$ac_ext <<_ACEOF
22132/* end confdefs.h. */
22133#include <$ac_header>
22134_ACEOF
22135if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22136 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22137 ac_status=$?
22138 grep -v '^ *+' conftest.er1 >conftest.err
22139 rm -f conftest.er1
22140 cat conftest.err >&5
22141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22142 (exit $ac_status); } >/dev/null; then
22143 if test -s conftest.err; then
22144 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 22145 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
22146 else
22147 ac_cpp_err=
22148 fi
22149else
22150 ac_cpp_err=yes
22151fi
22152if test -z "$ac_cpp_err"; then
22153 ac_header_preproc=yes
22154else
22155 echo "$as_me: failed program was:" >&5
22156sed 's/^/| /' conftest.$ac_ext >&5
22157
22158 ac_header_preproc=no
22159fi
22160rm -f conftest.err conftest.$ac_ext
22161echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22162echo "${ECHO_T}$ac_header_preproc" >&6
22163
22164# So? What about this header?
ac1cb8d3
VS
22165case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
22166 yes:no: )
a848cd7e
SC
22167 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22168echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22169 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22170echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22171 ac_header_preproc=yes
a848cd7e 22172 ;;
ac1cb8d3 22173 no:yes:* )
a848cd7e
SC
22174 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22175echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22176 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22177echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22178 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22179echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22180 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22181echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22182 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22183echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22184 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22185echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22186 (
22187 cat <<\_ASBOX
ac1cb8d3
VS
22188## ----------------------------------------- ##
22189## Report this to wx-dev@lists.wxwidgets.org ##
22190## ----------------------------------------- ##
a848cd7e
SC
22191_ASBOX
22192 ) |
22193 sed "s/^/$as_me: WARNING: /" >&2
22194 ;;
22195esac
22196echo "$as_me:$LINENO: checking for $ac_header" >&5
22197echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22198if eval "test \"\${$as_ac_Header+set}\" = set"; then
22199 echo $ECHO_N "(cached) $ECHO_C" >&6
22200else
ac1cb8d3 22201 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
22202fi
22203echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22204echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22205
22206fi
22207if test `eval echo '${'$as_ac_Header'}'` = yes; then
22208 cat >>confdefs.h <<_ACEOF
22209#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22210_ACEOF
22211
22212fi
22213
22214done
22215
22216
22217 if test "$ac_cv_header_iostream" = "yes" ; then
22218 :
22219 else
22220 cat >>confdefs.h <<\_ACEOF
22221#define wxUSE_IOSTREAMH 1
22222_ACEOF
22223
22224 fi
22225
5d7b7554
VZ
22226 ac_ext=cc
22227ac_cpp='$CXXCPP $CPPFLAGS'
22228ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22229ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22230ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a848cd7e
SC
22231
22232
22233
22234
22235 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
22236echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
22237if test "${wx_cv_cpp_bool+set}" = set; then
22238 echo $ECHO_N "(cached) $ECHO_C" >&6
22239else
22240
22241
22242
22243 ac_ext=cc
22244ac_cpp='$CXXCPP $CPPFLAGS'
22245ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22246ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22247ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22248
22249
22250 cat >conftest.$ac_ext <<_ACEOF
22251/* confdefs.h. */
22252_ACEOF
22253cat confdefs.h >>conftest.$ac_ext
22254cat >>conftest.$ac_ext <<_ACEOF
22255/* end confdefs.h. */
22256
22257
22258int
22259main ()
22260{
22261
22262 bool b = true;
22263
22264 return 0;
22265
22266 ;
22267 return 0;
22268}
22269_ACEOF
22270rm -f conftest.$ac_objext
22271if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22272 (eval $ac_compile) 2>conftest.er1
a848cd7e 22273 ac_status=$?
ac1cb8d3
VS
22274 grep -v '^ *+' conftest.er1 >conftest.err
22275 rm -f conftest.er1
22276 cat conftest.err >&5
a848cd7e
SC
22277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22278 (exit $ac_status); } &&
5d7b7554 22279 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22281 (eval $ac_try) 2>&5
22282 ac_status=$?
22283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22284 (exit $ac_status); }; } &&
22285 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22287 (eval $ac_try) 2>&5
22288 ac_status=$?
22289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22290 (exit $ac_status); }; }; then
22291
22292 wx_cv_cpp_bool=yes
22293
22294else
22295 echo "$as_me: failed program was:" >&5
22296sed 's/^/| /' conftest.$ac_ext >&5
22297
22298
22299 wx_cv_cpp_bool=no
22300
22301
22302fi
ac1cb8d3 22303rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 22304
5d7b7554
VZ
22305 ac_ext=cc
22306ac_cpp='$CXXCPP $CPPFLAGS'
22307ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22308ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22309ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a848cd7e
SC
22310
22311
22312fi
22313echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
22314echo "${ECHO_T}$wx_cv_cpp_bool" >&6
22315
22316 if test "$wx_cv_cpp_bool" = "yes"; then
22317 cat >>confdefs.h <<\_ACEOF
22318#define HAVE_BOOL 1
22319_ACEOF
22320
22321 fi
22322
22323
22324
22325 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
22326echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
22327if test "${wx_cv_explicit+set}" = set; then
22328 echo $ECHO_N "(cached) $ECHO_C" >&6
22329else
22330
22331
22332
22333 ac_ext=cc
22334ac_cpp='$CXXCPP $CPPFLAGS'
22335ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22336ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22337ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22338
22339
22340 cat >conftest.$ac_ext <<_ACEOF
22341/* confdefs.h. */
22342_ACEOF
22343cat confdefs.h >>conftest.$ac_ext
22344cat >>conftest.$ac_ext <<_ACEOF
22345/* end confdefs.h. */
22346
22347 class Foo { public: explicit Foo(int) {} };
22348
22349int
22350main ()
22351{
22352
22353 return 0;
22354
22355 ;
22356 return 0;
22357}
22358_ACEOF
22359rm -f conftest.$ac_objext
22360if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22361 (eval $ac_compile) 2>conftest.er1
a848cd7e 22362 ac_status=$?
ac1cb8d3
VS
22363 grep -v '^ *+' conftest.er1 >conftest.err
22364 rm -f conftest.er1
22365 cat conftest.err >&5
a848cd7e
SC
22366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22367 (exit $ac_status); } &&
5d7b7554 22368 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22370 (eval $ac_try) 2>&5
22371 ac_status=$?
22372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22373 (exit $ac_status); }; } &&
22374 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22376 (eval $ac_try) 2>&5
22377 ac_status=$?
22378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22379 (exit $ac_status); }; }; then
22380
22381 cat >conftest.$ac_ext <<_ACEOF
22382/* confdefs.h. */
22383_ACEOF
22384cat confdefs.h >>conftest.$ac_ext
22385cat >>conftest.$ac_ext <<_ACEOF
22386/* end confdefs.h. */
22387
22388 class Foo { public: explicit Foo(int) {} };
22389 static void TakeFoo(const Foo& foo) { }
22390
22391int
22392main ()
22393{
22394
22395 TakeFoo(17);
22396 return 0;
22397
22398 ;
22399 return 0;
22400}
22401_ACEOF
22402rm -f conftest.$ac_objext
22403if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22404 (eval $ac_compile) 2>conftest.er1
a848cd7e 22405 ac_status=$?
ac1cb8d3
VS
22406 grep -v '^ *+' conftest.er1 >conftest.err
22407 rm -f conftest.er1
22408 cat conftest.err >&5
a848cd7e
SC
22409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22410 (exit $ac_status); } &&
5d7b7554 22411 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22413 (eval $ac_try) 2>&5
22414 ac_status=$?
22415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22416 (exit $ac_status); }; } &&
22417 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22419 (eval $ac_try) 2>&5
22420 ac_status=$?
22421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22422 (exit $ac_status); }; }; then
22423 wx_cv_explicit=no
22424else
22425 echo "$as_me: failed program was:" >&5
22426sed 's/^/| /' conftest.$ac_ext >&5
22427
22428wx_cv_explicit=yes
22429
22430fi
ac1cb8d3 22431rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22432
22433else
22434 echo "$as_me: failed program was:" >&5
22435sed 's/^/| /' conftest.$ac_ext >&5
22436
22437wx_cv_explicit=no
22438
22439fi
ac1cb8d3 22440rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 22441
5d7b7554
VZ
22442 ac_ext=cc
22443ac_cpp='$CXXCPP $CPPFLAGS'
22444ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22445ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22446ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a848cd7e
SC
22447
22448
22449fi
22450echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
22451echo "${ECHO_T}$wx_cv_explicit" >&6
22452
22453 if test "$wx_cv_explicit" = "yes"; then
22454 cat >>confdefs.h <<\_ACEOF
22455#define HAVE_EXPLICIT 1
22456_ACEOF
22457
22458 fi
22459
22460
22461echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
22462echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
22463if test "${ac_cv_cxx_const_cast+set}" = set; then
22464 echo $ECHO_N "(cached) $ECHO_C" >&6
22465else
22466
22467
22468 ac_ext=cc
22469ac_cpp='$CXXCPP $CPPFLAGS'
22470ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22471ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22472ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22473
22474 cat >conftest.$ac_ext <<_ACEOF
22475/* confdefs.h. */
22476_ACEOF
22477cat confdefs.h >>conftest.$ac_ext
22478cat >>conftest.$ac_ext <<_ACEOF
22479/* end confdefs.h. */
22480
22481int
22482main ()
22483{
22484int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
22485 ;
22486 return 0;
22487}
22488_ACEOF
22489rm -f conftest.$ac_objext
22490if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22491 (eval $ac_compile) 2>conftest.er1
a848cd7e 22492 ac_status=$?
ac1cb8d3
VS
22493 grep -v '^ *+' conftest.er1 >conftest.err
22494 rm -f conftest.er1
22495 cat conftest.err >&5
a848cd7e
SC
22496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22497 (exit $ac_status); } &&
5d7b7554 22498 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22500 (eval $ac_try) 2>&5
22501 ac_status=$?
22502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22503 (exit $ac_status); }; } &&
22504 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22506 (eval $ac_try) 2>&5
22507 ac_status=$?
22508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22509 (exit $ac_status); }; }; then
22510 ac_cv_cxx_const_cast=yes
22511else
22512 echo "$as_me: failed program was:" >&5
22513sed 's/^/| /' conftest.$ac_ext >&5
22514
22515ac_cv_cxx_const_cast=no
22516fi
ac1cb8d3 22517rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5d7b7554
VZ
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
a848cd7e
SC
22523
22524
22525fi
22526echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
22527echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
22528if test "$ac_cv_cxx_const_cast" = yes; then
22529
22530cat >>confdefs.h <<\_ACEOF
22531#define HAVE_CONST_CAST
22532_ACEOF
22533
22534fi
22535
7714864e
RL
22536echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5
22537echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6
22538if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then
22539 echo $ECHO_N "(cached) $ECHO_C" >&6
22540else
22541
22542
22543 ac_ext=cc
22544ac_cpp='$CXXCPP $CPPFLAGS'
22545ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22546ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22547ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22548
22549 cat >conftest.$ac_ext <<_ACEOF
22550/* confdefs.h. */
22551_ACEOF
22552cat confdefs.h >>conftest.$ac_ext
22553cat >>conftest.$ac_ext <<_ACEOF
22554/* end confdefs.h. */
22555#include <typeinfo>
22556class Base { public : Base () {} virtual void f () = 0;};
22557class Derived : public Base { public : Derived () {} virtual void f () {} };
22558class Unrelated { public : Unrelated () {} };
22559int g (Unrelated&) { return 0; }
22560int
22561main ()
22562{
22563
22564Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e);
22565 ;
22566 return 0;
22567}
22568_ACEOF
22569rm -f conftest.$ac_objext
22570if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22571 (eval $ac_compile) 2>conftest.er1
22572 ac_status=$?
22573 grep -v '^ *+' conftest.er1 >conftest.err
22574 rm -f conftest.er1
22575 cat conftest.err >&5
22576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22577 (exit $ac_status); } &&
5d7b7554 22578 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7714864e
RL
22579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22580 (eval $ac_try) 2>&5
22581 ac_status=$?
22582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22583 (exit $ac_status); }; } &&
22584 { ac_try='test -s conftest.$ac_objext'
22585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22586 (eval $ac_try) 2>&5
22587 ac_status=$?
22588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22589 (exit $ac_status); }; }; then
22590 ac_cv_cxx_reinterpret_cast=yes
22591else
22592 echo "$as_me: failed program was:" >&5
22593sed 's/^/| /' conftest.$ac_ext >&5
22594
22595ac_cv_cxx_reinterpret_cast=no
22596fi
22597rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5d7b7554
VZ
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
7714864e
RL
22603
22604
22605fi
22606echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5
22607echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6
22608if test "$ac_cv_cxx_reinterpret_cast" = yes; then
22609
22610cat >>confdefs.h <<\_ACEOF
22611#define HAVE_REINTERPRET_CAST
22612_ACEOF
22613
22614fi
22615
a848cd7e
SC
22616echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
22617echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6
22618if test "${ac_cv_cxx_static_cast+set}" = set; then
22619 echo $ECHO_N "(cached) $ECHO_C" >&6
22620else
22621
22622
22623 ac_ext=cc
22624ac_cpp='$CXXCPP $CPPFLAGS'
22625ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22626ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22627ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22628
22629 cat >conftest.$ac_ext <<_ACEOF
22630/* confdefs.h. */
22631_ACEOF
22632cat confdefs.h >>conftest.$ac_ext
22633cat >>conftest.$ac_ext <<_ACEOF
22634/* end confdefs.h. */
22635#include <typeinfo>
22636class Base { public : Base () {} virtual void f () = 0; };
22637class Derived : public Base { public : Derived () {} virtual void f () {} };
22638int g (Derived&) { return 0; }
22639int
22640main ()
22641{
22642
22643Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
22644 ;
22645 return 0;
22646}
22647_ACEOF
22648rm -f conftest.$ac_objext
22649if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22650 (eval $ac_compile) 2>conftest.er1
a848cd7e 22651 ac_status=$?
ac1cb8d3
VS
22652 grep -v '^ *+' conftest.er1 >conftest.err
22653 rm -f conftest.er1
22654 cat conftest.err >&5
a848cd7e
SC
22655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22656 (exit $ac_status); } &&
5d7b7554 22657 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22659 (eval $ac_try) 2>&5
22660 ac_status=$?
22661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22662 (exit $ac_status); }; } &&
22663 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22665 (eval $ac_try) 2>&5
22666 ac_status=$?
22667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22668 (exit $ac_status); }; }; then
22669 ac_cv_cxx_static_cast=yes
22670else
22671 echo "$as_me: failed program was:" >&5
22672sed 's/^/| /' conftest.$ac_ext >&5
22673
22674ac_cv_cxx_static_cast=no
22675fi
ac1cb8d3 22676rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5d7b7554
VZ
22677 ac_ext=cc
22678ac_cpp='$CXXCPP $CPPFLAGS'
22679ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22680ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22681ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a848cd7e
SC
22682
22683
22684fi
22685echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
22686echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6
22687if test "$ac_cv_cxx_static_cast" = yes; then
22688
22689cat >>confdefs.h <<\_ACEOF
22690#define HAVE_STATIC_CAST
22691_ACEOF
22692
22693fi
22694
22695
3c28b7cb 22696if test "x$SUNCXX" = xyes; then
c92ad099 22697 CXXFLAGS="-features=tmplife $CXXFLAGS"
3c28b7cb
MW
22698fi
22699
9122d155 22700if test "x$SUNCC" = xyes; then
c92ad099 22701 CFLAGS="-erroff=E_NO_EXPLICIT_TYPE_GIVEN $CFLAGS"
9122d155
VZ
22702fi
22703
0ad5d837 22704if test "x$SGICC" = "xyes"; then
c92ad099 22705 CFLAGS="-woff 3970 $CFLAGS"
0ad5d837
VZ
22706fi
22707if test "x$SGICXX" = "xyes"; then
c92ad099 22708 CXXFLAGS="-woff 3970 $CXXFLAGS"
0ad5d837
VZ
22709fi
22710
2eef8513 22711if test "x$HPCC" = "xyes"; then
c92ad099 22712 CFLAGS="+W 2011,2450 $CFLAGS"
2eef8513
VZ
22713fi
22714if test "x$HPCXX" = "xyes"; then
c92ad099 22715 CXXFLAGS="+W 2340 $CXXFLAGS"
2eef8513
VZ
22716fi
22717
22718if test "x$COMPAQCXX" = "xyes"; then
22719 CXXFLAGS="-w0 -msg_disable basclsnondto,unrimpret,intconlosbit"
22720fi
22721
f56c22b4 22722if test "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes"; then
f56c22b4
MW
22723 if test "$wxUSE_UNICODE" = "yes"; then
22724 std_string="std::wstring"
22725 char_type="wchar_t"
22726 else
22727 std_string="std::string"
22728 char_type="char"
22729 fi
22730
22731 echo "$as_me:$LINENO: checking for $std_string in <string>" >&5
22732echo $ECHO_N "checking for $std_string in <string>... $ECHO_C" >&6
a848cd7e
SC
22733 cat >conftest.$ac_ext <<_ACEOF
22734/* confdefs.h. */
22735_ACEOF
22736cat confdefs.h >>conftest.$ac_ext
22737cat >>conftest.$ac_ext <<_ACEOF
22738/* end confdefs.h. */
22739#include <string>
a848cd7e
SC
22740int
22741main ()
22742{
f56c22b4 22743$std_string foo;
a848cd7e
SC
22744 ;
22745 return 0;
22746}
22747_ACEOF
22748rm -f conftest.$ac_objext
22749if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22750 (eval $ac_compile) 2>conftest.er1
a848cd7e 22751 ac_status=$?
ac1cb8d3
VS
22752 grep -v '^ *+' conftest.er1 >conftest.err
22753 rm -f conftest.er1
22754 cat conftest.err >&5
a848cd7e
SC
22755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22756 (exit $ac_status); } &&
5d7b7554 22757 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22759 (eval $ac_try) 2>&5
22760 ac_status=$?
22761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22762 (exit $ac_status); }; } &&
22763 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22765 (eval $ac_try) 2>&5
22766 ac_status=$?
22767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22768 (exit $ac_status); }; }; then
22769 echo "$as_me:$LINENO: result: yes" >&5
22770echo "${ECHO_T}yes" >&6
0a08f02a
MB
22771 cat >>confdefs.h <<\_ACEOF
22772#define HAVE_STD_WSTRING 1
22773_ACEOF
22774
a848cd7e
SC
22775else
22776 echo "$as_me: failed program was:" >&5
22777sed 's/^/| /' conftest.$ac_ext >&5
22778
22779echo "$as_me:$LINENO: result: no" >&5
22780echo "${ECHO_T}no" >&6
f56c22b4
MW
22781 echo "$as_me:$LINENO: checking if std::basic_string<$char_type> works" >&5
22782echo $ECHO_N "checking if std::basic_string<$char_type> works... $ECHO_C" >&6
0a08f02a
MB
22783 cat >conftest.$ac_ext <<_ACEOF
22784/* confdefs.h. */
22785_ACEOF
22786cat confdefs.h >>conftest.$ac_ext
22787cat >>conftest.$ac_ext <<_ACEOF
22788/* end confdefs.h. */
22789
22790 #ifdef HAVE_WCHAR_H
22791 # ifdef __CYGWIN__
22792 # include <stddef.h>
22793 # endif
22794 # include <wchar.h>
22795 #endif
22796 #ifdef HAVE_STDLIB_H
22797 # include <stdlib.h>
22798 #endif
22799 #include <stdio.h>
22800 #include <string>
22801
22802int
22803main ()
22804{
f56c22b4
MW
22805std::basic_string<$char_type> foo;
22806 const $char_type* dummy = foo.c_str();
0a08f02a
MB
22807 ;
22808 return 0;
22809}
22810_ACEOF
22811rm -f conftest.$ac_objext
22812if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22813 (eval $ac_compile) 2>conftest.er1
22814 ac_status=$?
22815 grep -v '^ *+' conftest.er1 >conftest.err
22816 rm -f conftest.er1
22817 cat conftest.err >&5
22818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22819 (exit $ac_status); } &&
5d7b7554 22820 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0a08f02a
MB
22821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22822 (eval $ac_try) 2>&5
22823 ac_status=$?
22824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22825 (exit $ac_status); }; } &&
22826 { ac_try='test -s conftest.$ac_objext'
22827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22828 (eval $ac_try) 2>&5
22829 ac_status=$?
22830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22831 (exit $ac_status); }; }; then
22832 echo "$as_me:$LINENO: result: yes" >&5
22833echo "${ECHO_T}yes" >&6
22834else
22835 echo "$as_me: failed program was:" >&5
22836sed 's/^/| /' conftest.$ac_ext >&5
22837
22838echo "$as_me:$LINENO: result: no" >&5
22839echo "${ECHO_T}no" >&6
f56c22b4 22840 if test "$wxUSE_STL" = "yes"; then
4b9918c5
MW
22841 { { echo "$as_me:$LINENO: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&5
22842echo "$as_me: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&2;}
22843 { (exit 1); exit 1; }; }
22844 elif grep wxUSE_STD_STRING $wx_arg_cache_file >/dev/null; then
22845 { { echo "$as_me:$LINENO: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&5
22846echo "$as_me: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&2;}
a848cd7e 22847 { (exit 1); exit 1; }; }
f56c22b4
MW
22848 else
22849 { echo "$as_me:$LINENO: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&5
22850echo "$as_me: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&2;}
22851 wxUSE_STD_STRING=no
22852 fi
22853
0a08f02a 22854
a848cd7e 22855fi
ac1cb8d3 22856rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 22857
0a08f02a
MB
22858fi
22859rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f56c22b4
MW
22860fi
22861
22862if test "$wxUSE_STD_IOSTREAM" = "yes"; then
f56c22b4
MW
22863 echo "$as_me:$LINENO: checking for std::istream" >&5
22864echo $ECHO_N "checking for std::istream... $ECHO_C" >&6
22865if test "${ac_cv_type_std__istream+set}" = set; then
22866 echo $ECHO_N "(cached) $ECHO_C" >&6
22867else
22868 cat >conftest.$ac_ext <<_ACEOF
22869/* confdefs.h. */
22870_ACEOF
22871cat confdefs.h >>conftest.$ac_ext
22872cat >>conftest.$ac_ext <<_ACEOF
22873/* end confdefs.h. */
22874#include <iostream>
22875
22876int
22877main ()
22878{
22879if ((std::istream *) 0)
22880 return 0;
22881if (sizeof (std::istream))
22882 return 0;
22883 ;
22884 return 0;
22885}
22886_ACEOF
22887rm -f conftest.$ac_objext
22888if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22889 (eval $ac_compile) 2>conftest.er1
22890 ac_status=$?
22891 grep -v '^ *+' conftest.er1 >conftest.err
22892 rm -f conftest.er1
22893 cat conftest.err >&5
22894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22895 (exit $ac_status); } &&
5d7b7554 22896 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
f56c22b4
MW
22897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22898 (eval $ac_try) 2>&5
22899 ac_status=$?
22900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22901 (exit $ac_status); }; } &&
22902 { ac_try='test -s conftest.$ac_objext'
22903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22904 (eval $ac_try) 2>&5
22905 ac_status=$?
22906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22907 (exit $ac_status); }; }; then
22908 ac_cv_type_std__istream=yes
22909else
22910 echo "$as_me: failed program was:" >&5
22911sed 's/^/| /' conftest.$ac_ext >&5
22912
22913ac_cv_type_std__istream=no
22914fi
22915rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22916fi
22917echo "$as_me:$LINENO: result: $ac_cv_type_std__istream" >&5
22918echo "${ECHO_T}$ac_cv_type_std__istream" >&6
22919if test $ac_cv_type_std__istream = yes; then
22920
22921cat >>confdefs.h <<_ACEOF
22922#define HAVE_STD__ISTREAM 1
22923_ACEOF
22924
22925
22926else
22927 wxUSE_STD_IOSTREAM=no
22928fi
22929echo "$as_me:$LINENO: checking for std::ostream" >&5
22930echo $ECHO_N "checking for std::ostream... $ECHO_C" >&6
22931if test "${ac_cv_type_std__ostream+set}" = set; then
22932 echo $ECHO_N "(cached) $ECHO_C" >&6
22933else
22934 cat >conftest.$ac_ext <<_ACEOF
22935/* confdefs.h. */
22936_ACEOF
22937cat confdefs.h >>conftest.$ac_ext
22938cat >>conftest.$ac_ext <<_ACEOF
22939/* end confdefs.h. */
22940#include <iostream>
22941
22942int
22943main ()
22944{
22945if ((std::ostream *) 0)
22946 return 0;
22947if (sizeof (std::ostream))
22948 return 0;
22949 ;
22950 return 0;
22951}
22952_ACEOF
22953rm -f conftest.$ac_objext
22954if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22955 (eval $ac_compile) 2>conftest.er1
22956 ac_status=$?
22957 grep -v '^ *+' conftest.er1 >conftest.err
22958 rm -f conftest.er1
22959 cat conftest.err >&5
22960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22961 (exit $ac_status); } &&
5d7b7554 22962 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
f56c22b4
MW
22963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22964 (eval $ac_try) 2>&5
22965 ac_status=$?
22966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22967 (exit $ac_status); }; } &&
22968 { ac_try='test -s conftest.$ac_objext'
22969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22970 (eval $ac_try) 2>&5
22971 ac_status=$?
22972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22973 (exit $ac_status); }; }; then
22974 ac_cv_type_std__ostream=yes
22975else
22976 echo "$as_me: failed program was:" >&5
22977sed 's/^/| /' conftest.$ac_ext >&5
22978
22979ac_cv_type_std__ostream=no
22980fi
22981rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22982fi
22983echo "$as_me:$LINENO: result: $ac_cv_type_std__ostream" >&5
22984echo "${ECHO_T}$ac_cv_type_std__ostream" >&6
22985if test $ac_cv_type_std__ostream = yes; then
22986
22987cat >>confdefs.h <<_ACEOF
22988#define HAVE_STD__OSTREAM 1
22989_ACEOF
22990
22991
22992else
22993 wxUSE_STD_IOSTREAM=no
22994fi
22995
22996
22997 if test "$wxUSE_STD_IOSTREAM" != "yes"; then
4b9918c5
MW
22998 if grep wxUSE_STD_IOSTREAM $wx_arg_cache_file >/dev/null; then
22999 { { echo "$as_me:$LINENO: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&5
23000echo "$as_me: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&2;}
23001 { (exit 1); exit 1; }; }
23002 else
23003 { echo "$as_me:$LINENO: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&5
f56c22b4 23004echo "$as_me: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&2;}
4b9918c5 23005 fi
f56c22b4 23006 fi
0a08f02a
MB
23007fi
23008
23009if test "$wxUSE_STL" = "yes"; then
0a08f02a
MB
23010 echo "$as_me:$LINENO: checking for basic STL functionality" >&5
23011echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
a848cd7e
SC
23012 cat >conftest.$ac_ext <<_ACEOF
23013/* confdefs.h. */
23014_ACEOF
23015cat confdefs.h >>conftest.$ac_ext
23016cat >>conftest.$ac_ext <<_ACEOF
23017/* end confdefs.h. */
23018#include <string>
0a08f02a
MB
23019 #include <functional>
23020 #include <algorithm>
23021 #include <vector>
23022 #include <list>
a848cd7e
SC
23023int
23024main ()
23025{
0a08f02a
MB
23026std::vector<int> moo;
23027 std::list<int> foo;
23028 std::vector<int>::iterator it =
23029 std::find_if(moo.begin(), moo.end(),
23030 std::bind2nd(std::less<int>(), 3));
a848cd7e
SC
23031 ;
23032 return 0;
23033}
23034_ACEOF
23035rm -f conftest.$ac_objext
23036if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23037 (eval $ac_compile) 2>conftest.er1
a848cd7e 23038 ac_status=$?
ac1cb8d3
VS
23039 grep -v '^ *+' conftest.er1 >conftest.err
23040 rm -f conftest.er1
23041 cat conftest.err >&5
a848cd7e
SC
23042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23043 (exit $ac_status); } &&
5d7b7554 23044 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23046 (eval $ac_try) 2>&5
23047 ac_status=$?
23048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23049 (exit $ac_status); }; } &&
23050 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23052 (eval $ac_try) 2>&5
23053 ac_status=$?
23054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23055 (exit $ac_status); }; }; then
23056 echo "$as_me:$LINENO: result: yes" >&5
23057echo "${ECHO_T}yes" >&6
a848cd7e
SC
23058else
23059 echo "$as_me: failed program was:" >&5
23060sed 's/^/| /' conftest.$ac_ext >&5
23061
23062echo "$as_me:$LINENO: result: no" >&5
23063echo "${ECHO_T}no" >&6
0a08f02a
MB
23064 { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
23065echo "$as_me: error: Basic STL functionality missing" >&2;}
23066 { (exit 1); exit 1; }; }
a848cd7e 23067fi
ac1cb8d3 23068rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23069
23070 echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
23071echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
23072 cat >conftest.$ac_ext <<_ACEOF
23073/* confdefs.h. */
23074_ACEOF
23075cat confdefs.h >>conftest.$ac_ext
23076cat >>conftest.$ac_ext <<_ACEOF
23077/* end confdefs.h. */
23078#include <string>
23079int
23080main ()
23081{
23082std::string foo, bar;
23083 foo.compare(bar);
23084 foo.compare(1, 1, bar);
23085 foo.compare(1, 1, bar, 1, 1);
23086 foo.compare("");
23087 foo.compare(1, 1, "");
23088 foo.compare(1, 1, "", 2);
23089 ;
23090 return 0;
23091}
23092_ACEOF
23093rm -f conftest.$ac_objext
23094if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23095 (eval $ac_compile) 2>conftest.er1
a848cd7e 23096 ac_status=$?
ac1cb8d3
VS
23097 grep -v '^ *+' conftest.er1 >conftest.err
23098 rm -f conftest.er1
23099 cat conftest.err >&5
a848cd7e
SC
23100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23101 (exit $ac_status); } &&
5d7b7554 23102 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23104 (eval $ac_try) 2>&5
23105 ac_status=$?
23106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23107 (exit $ac_status); }; } &&
23108 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23110 (eval $ac_try) 2>&5
23111 ac_status=$?
23112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23113 (exit $ac_status); }; }; then
23114 echo "$as_me:$LINENO: result: yes" >&5
23115echo "${ECHO_T}yes" >&6
23116 cat >>confdefs.h <<\_ACEOF
23117#define HAVE_STD_STRING_COMPARE 1
23118_ACEOF
23119
23120else
23121 echo "$as_me: failed program was:" >&5
23122sed 's/^/| /' conftest.$ac_ext >&5
23123
23124echo "$as_me:$LINENO: result: no" >&5
23125echo "${ECHO_T}no" >&6
23126fi
ac1cb8d3 23127rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
23128
23129 if test "${ac_cv_header_hash_map+set}" = set; then
23130 echo "$as_me:$LINENO: checking for hash_map" >&5
23131echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
23132if test "${ac_cv_header_hash_map+set}" = set; then
23133 echo $ECHO_N "(cached) $ECHO_C" >&6
23134fi
23135echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
23136echo "${ECHO_T}$ac_cv_header_hash_map" >&6
23137else
23138 # Is the header compilable?
23139echo "$as_me:$LINENO: checking hash_map usability" >&5
23140echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6
23141cat >conftest.$ac_ext <<_ACEOF
23142/* confdefs.h. */
23143_ACEOF
23144cat confdefs.h >>conftest.$ac_ext
23145cat >>conftest.$ac_ext <<_ACEOF
23146/* end confdefs.h. */
23147$ac_includes_default
23148#include <hash_map>
23149_ACEOF
23150rm -f conftest.$ac_objext
23151if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23152 (eval $ac_compile) 2>conftest.er1
bdcade0a 23153 ac_status=$?
ac1cb8d3
VS
23154 grep -v '^ *+' conftest.er1 >conftest.err
23155 rm -f conftest.er1
23156 cat conftest.err >&5
bdcade0a
MB
23157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23158 (exit $ac_status); } &&
5d7b7554 23159 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23161 (eval $ac_try) 2>&5
23162 ac_status=$?
23163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23164 (exit $ac_status); }; } &&
23165 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
23166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23167 (eval $ac_try) 2>&5
23168 ac_status=$?
23169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23170 (exit $ac_status); }; }; then
23171 ac_header_compiler=yes
23172else
23173 echo "$as_me: failed program was:" >&5
23174sed 's/^/| /' conftest.$ac_ext >&5
23175
23176ac_header_compiler=no
23177fi
ac1cb8d3 23178rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
23179echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23180echo "${ECHO_T}$ac_header_compiler" >&6
23181
23182# Is the header present?
23183echo "$as_me:$LINENO: checking hash_map presence" >&5
23184echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6
23185cat >conftest.$ac_ext <<_ACEOF
23186/* confdefs.h. */
23187_ACEOF
23188cat confdefs.h >>conftest.$ac_ext
23189cat >>conftest.$ac_ext <<_ACEOF
23190/* end confdefs.h. */
23191#include <hash_map>
23192_ACEOF
23193if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23194 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23195 ac_status=$?
23196 grep -v '^ *+' conftest.er1 >conftest.err
23197 rm -f conftest.er1
23198 cat conftest.err >&5
23199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23200 (exit $ac_status); } >/dev/null; then
23201 if test -s conftest.err; then
23202 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 23203 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
23204 else
23205 ac_cpp_err=
23206 fi
23207else
23208 ac_cpp_err=yes
23209fi
23210if test -z "$ac_cpp_err"; then
23211 ac_header_preproc=yes
23212else
23213 echo "$as_me: failed program was:" >&5
23214sed 's/^/| /' conftest.$ac_ext >&5
23215
23216 ac_header_preproc=no
23217fi
23218rm -f conftest.err conftest.$ac_ext
23219echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23220echo "${ECHO_T}$ac_header_preproc" >&6
23221
23222# So? What about this header?
ac1cb8d3
VS
23223case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
23224 yes:no: )
bdcade0a
MB
23225 { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
23226echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23227 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5
23228echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;}
23229 ac_header_preproc=yes
bdcade0a 23230 ;;
ac1cb8d3 23231 no:yes:* )
bdcade0a
MB
23232 { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5
23233echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23234 { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5
23235echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;}
23236 { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5
23237echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;}
23238 { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5
23239echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
23240 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5
23241echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23242 { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5
23243echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
23244 (
23245 cat <<\_ASBOX
ac1cb8d3
VS
23246## ----------------------------------------- ##
23247## Report this to wx-dev@lists.wxwidgets.org ##
23248## ----------------------------------------- ##
bdcade0a
MB
23249_ASBOX
23250 ) |
23251 sed "s/^/$as_me: WARNING: /" >&2
23252 ;;
23253esac
23254echo "$as_me:$LINENO: checking for hash_map" >&5
23255echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
23256if test "${ac_cv_header_hash_map+set}" = set; then
23257 echo $ECHO_N "(cached) $ECHO_C" >&6
23258else
23259 ac_cv_header_hash_map=$ac_header_preproc
23260fi
23261echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
23262echo "${ECHO_T}$ac_cv_header_hash_map" >&6
23263
23264fi
23265if test $ac_cv_header_hash_map = yes; then
23266 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
23267echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
23268 cat >conftest.$ac_ext <<_ACEOF
23269/* confdefs.h. */
23270_ACEOF
23271cat confdefs.h >>conftest.$ac_ext
23272cat >>conftest.$ac_ext <<_ACEOF
23273/* end confdefs.h. */
23274#include <hash_map>
23275 #include <hash_set>
23276int
23277main ()
23278{
23279std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
23280 std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
23281 ;
23282 return 0;
23283}
23284_ACEOF
23285rm -f conftest.$ac_objext
23286if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23287 (eval $ac_compile) 2>conftest.er1
bdcade0a 23288 ac_status=$?
ac1cb8d3
VS
23289 grep -v '^ *+' conftest.er1 >conftest.err
23290 rm -f conftest.er1
23291 cat conftest.err >&5
bdcade0a
MB
23292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23293 (exit $ac_status); } &&
5d7b7554 23294 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23296 (eval $ac_try) 2>&5
23297 ac_status=$?
23298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23299 (exit $ac_status); }; } &&
23300 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
23301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23302 (eval $ac_try) 2>&5
23303 ac_status=$?
23304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23305 (exit $ac_status); }; }; then
23306 echo "$as_me:$LINENO: result: yes" >&5
23307echo "${ECHO_T}yes" >&6
23308 cat >>confdefs.h <<\_ACEOF
23309#define HAVE_HASH_MAP 1
23310_ACEOF
23311
23312 cat >>confdefs.h <<\_ACEOF
23313#define HAVE_STD_HASH_MAP 1
23314_ACEOF
23315
23316else
23317 echo "$as_me: failed program was:" >&5
23318sed 's/^/| /' conftest.$ac_ext >&5
23319
23320echo "$as_me:$LINENO: result: no" >&5
23321echo "${ECHO_T}no" >&6
23322fi
ac1cb8d3 23323rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
23324
23325fi
23326
23327
23328
23329 if test "${ac_cv_header_ext_hash_map+set}" = set; then
23330 echo "$as_me:$LINENO: checking for ext/hash_map" >&5
23331echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
23332if test "${ac_cv_header_ext_hash_map+set}" = set; then
23333 echo $ECHO_N "(cached) $ECHO_C" >&6
23334fi
23335echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
23336echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
23337else
23338 # Is the header compilable?
23339echo "$as_me:$LINENO: checking ext/hash_map usability" >&5
23340echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6
23341cat >conftest.$ac_ext <<_ACEOF
23342/* confdefs.h. */
23343_ACEOF
23344cat confdefs.h >>conftest.$ac_ext
23345cat >>conftest.$ac_ext <<_ACEOF
23346/* end confdefs.h. */
23347$ac_includes_default
23348#include <ext/hash_map>
23349_ACEOF
23350rm -f conftest.$ac_objext
23351if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23352 (eval $ac_compile) 2>conftest.er1
bdcade0a 23353 ac_status=$?
ac1cb8d3
VS
23354 grep -v '^ *+' conftest.er1 >conftest.err
23355 rm -f conftest.er1
23356 cat conftest.err >&5
bdcade0a
MB
23357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23358 (exit $ac_status); } &&
5d7b7554 23359 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23361 (eval $ac_try) 2>&5
23362 ac_status=$?
23363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23364 (exit $ac_status); }; } &&
23365 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
23366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23367 (eval $ac_try) 2>&5
23368 ac_status=$?
23369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23370 (exit $ac_status); }; }; then
23371 ac_header_compiler=yes
23372else
23373 echo "$as_me: failed program was:" >&5
23374sed 's/^/| /' conftest.$ac_ext >&5
23375
23376ac_header_compiler=no
23377fi
ac1cb8d3 23378rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
23379echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23380echo "${ECHO_T}$ac_header_compiler" >&6
23381
23382# Is the header present?
23383echo "$as_me:$LINENO: checking ext/hash_map presence" >&5
23384echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6
23385cat >conftest.$ac_ext <<_ACEOF
23386/* confdefs.h. */
23387_ACEOF
23388cat confdefs.h >>conftest.$ac_ext
23389cat >>conftest.$ac_ext <<_ACEOF
23390/* end confdefs.h. */
23391#include <ext/hash_map>
23392_ACEOF
23393if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23394 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23395 ac_status=$?
23396 grep -v '^ *+' conftest.er1 >conftest.err
23397 rm -f conftest.er1
23398 cat conftest.err >&5
23399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23400 (exit $ac_status); } >/dev/null; then
23401 if test -s conftest.err; then
23402 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 23403 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
23404 else
23405 ac_cpp_err=
23406 fi
23407else
23408 ac_cpp_err=yes
23409fi
23410if test -z "$ac_cpp_err"; then
23411 ac_header_preproc=yes
23412else
23413 echo "$as_me: failed program was:" >&5
23414sed 's/^/| /' conftest.$ac_ext >&5
23415
23416 ac_header_preproc=no
23417fi
23418rm -f conftest.err conftest.$ac_ext
23419echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23420echo "${ECHO_T}$ac_header_preproc" >&6
23421
23422# So? What about this header?
ac1cb8d3
VS
23423case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
23424 yes:no: )
bdcade0a
MB
23425 { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
23426echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23427 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5
23428echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;}
23429 ac_header_preproc=yes
bdcade0a 23430 ;;
ac1cb8d3 23431 no:yes:* )
bdcade0a
MB
23432 { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5
23433echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23434 { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5
23435echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;}
23436 { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5
23437echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;}
23438 { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5
23439echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
23440 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5
23441echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23442 { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5
23443echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
23444 (
23445 cat <<\_ASBOX
ac1cb8d3
VS
23446## ----------------------------------------- ##
23447## Report this to wx-dev@lists.wxwidgets.org ##
23448## ----------------------------------------- ##
bdcade0a
MB
23449_ASBOX
23450 ) |
23451 sed "s/^/$as_me: WARNING: /" >&2
23452 ;;
23453esac
23454echo "$as_me:$LINENO: checking for ext/hash_map" >&5
23455echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
23456if test "${ac_cv_header_ext_hash_map+set}" = set; then
23457 echo $ECHO_N "(cached) $ECHO_C" >&6
23458else
23459 ac_cv_header_ext_hash_map=$ac_header_preproc
23460fi
23461echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
23462echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
23463
23464fi
23465if test $ac_cv_header_ext_hash_map = yes; then
23466 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
23467echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
23468 cat >conftest.$ac_ext <<_ACEOF
23469/* confdefs.h. */
23470_ACEOF
23471cat confdefs.h >>conftest.$ac_ext
23472cat >>conftest.$ac_ext <<_ACEOF
23473/* end confdefs.h. */
23474#include <ext/hash_map>
23475 #include <ext/hash_set>
23476int
23477main ()
23478{
23479__gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
23480 __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
23481 ;
23482 return 0;
23483}
23484_ACEOF
23485rm -f conftest.$ac_objext
23486if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23487 (eval $ac_compile) 2>conftest.er1
bdcade0a 23488 ac_status=$?
ac1cb8d3
VS
23489 grep -v '^ *+' conftest.er1 >conftest.err
23490 rm -f conftest.er1
23491 cat conftest.err >&5
bdcade0a
MB
23492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23493 (exit $ac_status); } &&
5d7b7554 23494 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23496 (eval $ac_try) 2>&5
23497 ac_status=$?
23498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23499 (exit $ac_status); }; } &&
23500 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
23501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23502 (eval $ac_try) 2>&5
23503 ac_status=$?
23504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23505 (exit $ac_status); }; }; then
23506 echo "$as_me:$LINENO: result: yes" >&5
23507echo "${ECHO_T}yes" >&6
23508 cat >>confdefs.h <<\_ACEOF
23509#define HAVE_EXT_HASH_MAP 1
23510_ACEOF
23511
23512 cat >>confdefs.h <<\_ACEOF
23513#define HAVE_GNU_CXX_HASH_MAP 1
23514_ACEOF
23515
23516else
23517 echo "$as_me: failed program was:" >&5
23518sed 's/^/| /' conftest.$ac_ext >&5
23519
23520echo "$as_me:$LINENO: result: no" >&5
23521echo "${ECHO_T}no" >&6
23522fi
ac1cb8d3 23523rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
23524
23525fi
23526
23527
a848cd7e
SC
23528fi
23529
23530
23531SEARCH_INCLUDE="\
23532 /usr/local/include \
23533 \
23534 /usr/Motif-2.1/include \
23535 /usr/Motif-1.2/include \
23536 /usr/include/Motif1.2 \
a848cd7e
SC
23537 \
23538 /usr/dt/include \
23539 /usr/openwin/include \
23540 \
23541 /usr/include/Xm \
23542 \
23543 /usr/X11R6/include \
23544 /usr/X11R6.4/include \
23545 /usr/X11R5/include \
23546 /usr/X11R4/include \
23547 \
23548 /usr/include/X11R6 \
23549 /usr/include/X11R5 \
23550 /usr/include/X11R4 \
23551 \
23552 /usr/local/X11R6/include \
23553 /usr/local/X11R5/include \
23554 /usr/local/X11R4/include \
23555 \
23556 /usr/local/include/X11R6 \
23557 /usr/local/include/X11R5 \
23558 /usr/local/include/X11R4 \
23559 \
23560 /usr/X11/include \
23561 /usr/include/X11 \
23562 /usr/local/X11/include \
23563 /usr/local/include/X11 \
23564 \
a848cd7e 23565 /usr/XFree86/include/X11 \
e051b34e
MW
23566 /usr/pkg/include \
23567 \
a848cd7e
SC
23568 /usr/openwin/share/include"
23569
6f9cf1e6 23570echo "$as_me:$LINENO: checking for libraries directory" >&5
0ad5d837 23571echo $ECHO_N "checking for libraries directory... $ECHO_C" >&6
6f9cf1e6
MW
23572
23573case "${host}" in
23574 *-*-irix6* )
23575 if test "${wx_cv_std_libpath+set}" = set; then
0ad5d837
VZ
23576 echo $ECHO_N "(cached) $ECHO_C" >&6
23577else
23578
c687b303
VZ
23579 for d in /usr/lib /usr/lib32 /usr/lib/64 /usr/lib64; do
23580 for e in a so sl dylib dll.a; do
23581 libc="$d/libc.$e"
23582 if test -f $libc; then
23583 save_LIBS="$LIBS"
23584 LIBS="$libc"
23585 cat >conftest.$ac_ext <<_ACEOF
0ad5d837
VZ
23586int main() { return 0; }
23587_ACEOF
23588rm -f conftest.$ac_objext conftest$ac_exeext
23589if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23590 (eval $ac_link) 2>conftest.er1
23591 ac_status=$?
23592 grep -v '^ *+' conftest.er1 >conftest.err
23593 rm -f conftest.er1
23594 cat conftest.err >&5
23595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23596 (exit $ac_status); } &&
5d7b7554 23597 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0ad5d837
VZ
23598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23599 (eval $ac_try) 2>&5
23600 ac_status=$?
23601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23602 (exit $ac_status); }; } &&
23603 { ac_try='test -s conftest$ac_exeext'
23604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23605 (eval $ac_try) 2>&5
23606 ac_status=$?
23607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23608 (exit $ac_status); }; }; then
23609 wx_cv_std_libpath=`echo $d | sed s@/usr/@@`
23610else
23611 echo "$as_me: failed program was:" >&5
23612sed 's/^/| /' conftest.$ac_ext >&5
23613
23614fi
23615rm -f conftest.err conftest.$ac_objext \
23616 conftest$ac_exeext conftest.$ac_ext
c687b303
VZ
23617 LIBS="$save_LIBS"
23618 if test "x$wx_cv_std_libpath" != "x"; then
23619 break 2
23620 fi
23621 fi
23622 done
23623 done
23624 if test "x$wx_cv_std_libpath" = "x"; then
23625 wx_cv_std_libpath="lib"
0ad5d837 23626 fi
0ad5d837
VZ
23627
23628
23629fi
6f9cf1e6
MW
23630
23631 ;;
23632
23633 *-*-solaris2* )
23634 if test "$ac_cv_sizeof_void_p" = 8 -a -d "/usr/lib/64"; then
23635 wx_cv_std_libpath="lib/64"
23636 else
23637 wx_cv_std_libpath="lib"
23638 fi
23639 ;;
23640
23641 *-*-linux* )
23642 if test "$ac_cv_sizeof_void_p" = 8 -a \
23643 -d "/usr/lib64" -a ! -h "/usr/lib64"; then
23644 wx_cv_std_libpath="lib64"
23645 else
23646 wx_cv_std_libpath="lib"
23647 fi
c687b303
VZ
23648 ;;
23649
23650 *)
23651 wx_cv_std_libpath="lib";
23652 ;;
23653esac
0ad5d837 23654
6f9cf1e6
MW
23655echo "$as_me:$LINENO: result: $wx_cv_std_libpath" >&5
23656echo "${ECHO_T}$wx_cv_std_libpath" >&6
23657
23658SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s@include@$wx_cv_std_libpath@g` /usr/$wx_cv_std_libpath"
a848cd7e 23659
3eca31dc
MW
23660if test "$build" != "$host" -a "$GCC" = yes; then
23661 if cross_root=`$CC -print-prog-name=ld 2>/dev/null`; then
23662 cross_root=`dirname $cross_root`
23663 cross_root=`dirname $cross_root`
23664
23665 SEARCH_LIB=`for x in $SEARCH_LIB; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
23666 SEARCH_INCLUDE=`for x in $SEARCH_INCLUDE; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
5c60e845 23667 SEARCH_INCLUDE="$SEARCH_INCLUDE $cross_root/include"
3eca31dc
MW
23668
23669 if test -z "$PKG_CONFIG_PATH"; then
23670 PKG_CONFIG_PATH="$cross_root/local/lib/pkgconfig:$cross_root/lib/pkgconfig"
23671 export PKG_CONFIG_PATH
23672 fi
23673
23674 if test -z "$x_includes" -o "$x_includes" = NONE; then
23675
23676ac_find_includes=
23677for ac_dir in $SEARCH_INCLUDE /usr/include;
23678 do
23679 if test -f "$ac_dir/X11/Intrinsic.h"; then
23680 ac_find_includes=$ac_dir
23681 break
23682 fi
23683 done
23684
23685 x_includes=$ac_find_includes
23686 fi
23687 if test -z "$x_libraries" -o "$x_libraries" = NONE; then
23688
0ad5d837
VZ
23689 ac_find_libraries=
23690 for ac_dir in $SEARCH_LIB;
3eca31dc
MW
23691 do
23692 for ac_extension in a so sl dylib dll.a; do
23693 if test -f "$ac_dir/libXt.$ac_extension"; then
23694 ac_find_libraries=$ac_dir
23695 break 2
23696 fi
23697 done
23698 done
23699
23700 x_libraries=$ac_find_libraries
23701 fi
23702 fi
23703fi
23704
a848cd7e
SC
23705
23706cat >confcache <<\_ACEOF
23707# This file is a shell script that caches the results of configure
23708# tests run on this system so they can be shared between configure
23709# scripts and configure runs, see configure's option --config-cache.
23710# It is not useful on other systems. If it contains results you don't
23711# want to keep, you may remove or edit it.
23712#
23713# config.status only pays attention to the cache file if you give it
23714# the --recheck option to rerun configure.
23715#
23716# `ac_cv_env_foo' variables (set or unset) will be overridden when
23717# loading this file, other *unset* `ac_cv_foo' will be assigned the
23718# following values.
23719
23720_ACEOF
23721
23722# The following way of writing the cache mishandles newlines in values,
23723# but we know of no workaround that is simple, portable, and efficient.
23724# So, don't put newlines in cache variables' values.
23725# Ultrix sh set writes to stderr and can't be redirected directly,
23726# and sets the high bit in the cache file unless we assign to the vars.
23727{
23728 (set) 2>&1 |
23729 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23730 *ac_space=\ *)
23731 # `set' does not quote correctly, so add quotes (double-quote
23732 # substitution turns \\\\ into \\, and sed turns \\ into \).
23733 sed -n \
ac1cb8d3
VS
23734 "s/'/'\\\\''/g;
23735 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
23736 ;;
23737 *)
23738 # `set' quotes correctly as required by POSIX, so do not add quotes.
23739 sed -n \
ac1cb8d3 23740 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
23741 ;;
23742 esac;
23743} |
23744 sed '
23745 t clear
23746 : clear
23747 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23748 t end
23749 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23750 : end' >>confcache
23751if diff $cache_file confcache >/dev/null 2>&1; then :; else
23752 if test -w $cache_file; then
23753 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23754 cat confcache >$cache_file
23755 else
23756 echo "not updating unwritable cache $cache_file"
23757 fi
23758fi
23759rm -f confcache
23760
23761if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
23762 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
23763echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
23764if test "${wx_cv_lib_glibc21+set}" = set; then
23765 echo $ECHO_N "(cached) $ECHO_C" >&6
23766else
23767
23768 cat >conftest.$ac_ext <<_ACEOF
23769/* confdefs.h. */
23770_ACEOF
23771cat confdefs.h >>conftest.$ac_ext
23772cat >>conftest.$ac_ext <<_ACEOF
23773/* end confdefs.h. */
23774#include <features.h>
23775int
23776main ()
23777{
23778
23779 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
04e525a0 23780 not glibc 2.1
a848cd7e
SC
23781 #endif
23782
23783 ;
23784 return 0;
23785}
23786_ACEOF
23787rm -f conftest.$ac_objext
23788if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23789 (eval $ac_compile) 2>conftest.er1
a848cd7e 23790 ac_status=$?
ac1cb8d3
VS
23791 grep -v '^ *+' conftest.er1 >conftest.err
23792 rm -f conftest.er1
23793 cat conftest.err >&5
a848cd7e
SC
23794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23795 (exit $ac_status); } &&
5d7b7554 23796 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23798 (eval $ac_try) 2>&5
23799 ac_status=$?
23800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23801 (exit $ac_status); }; } &&
23802 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23804 (eval $ac_try) 2>&5
23805 ac_status=$?
23806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23807 (exit $ac_status); }; }; then
23808
23809 wx_cv_lib_glibc21=yes
23810
23811else
23812 echo "$as_me: failed program was:" >&5
23813sed 's/^/| /' conftest.$ac_ext >&5
23814
23815
23816 wx_cv_lib_glibc21=no
23817
23818
23819fi
ac1cb8d3 23820rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23821
23822fi
23823echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
23824echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
23825 if test "$wx_cv_lib_glibc21" = "yes"; then
23826 cat >>confdefs.h <<\_ACEOF
23827#define wxHAVE_GLIBC2 1
23828_ACEOF
23829
23830 fi
23831fi
23832
23833if test "x$wx_cv_lib_glibc21" = "xyes"; then
23834 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
23835 cat >>confdefs.h <<\_ACEOF
23836#define _GNU_SOURCE 1
23837_ACEOF
23838
23839 fi
23840fi
23841
5d7b7554
VZ
23842have_cos=0
23843have_floor=0
a848cd7e 23844
5d7b7554
VZ
23845for ac_func in cos
23846do
23847as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23848echo "$as_me:$LINENO: checking for $ac_func" >&5
23849echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23850if eval "test \"\${$as_ac_var+set}\" = set"; then
a848cd7e 23851 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e 23852else
5d7b7554 23853 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
23854/* confdefs.h. */
23855_ACEOF
23856cat confdefs.h >>conftest.$ac_ext
23857cat >>conftest.$ac_ext <<_ACEOF
23858/* end confdefs.h. */
5d7b7554
VZ
23859/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23860 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23861#define $ac_func innocuous_$ac_func
23862
23863/* System header to define __stub macros and hopefully few prototypes,
23864 which can conflict with char $ac_func (); below.
23865 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23866 <limits.h> exists even on freestanding compilers. */
23867
23868#ifdef __STDC__
23869# include <limits.h>
23870#else
23871# include <assert.h>
23872#endif
23873
23874#undef $ac_func
23875
23876/* Override any gcc2 internal prototype to avoid an error. */
23877#ifdef __cplusplus
23878extern "C"
23879{
23880#endif
23881/* We use char because int might match the return type of a gcc2
23882 builtin and then its argument prototype would still apply. */
23883char $ac_func ();
23884/* The GNU C library defines this for functions which it implements
23885 to always fail with ENOSYS. Some functions are actually named
23886 something starting with __ and the normal name is an alias. */
23887#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23888choke me
23889#else
23890char (*f) () = $ac_func;
23891#endif
23892#ifdef __cplusplus
23893}
23894#endif
23895
23896int
23897main ()
23898{
23899return f != $ac_func;
23900 ;
23901 return 0;
23902}
a848cd7e 23903_ACEOF
5d7b7554
VZ
23904rm -f conftest.$ac_objext conftest$ac_exeext
23905if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23906 (eval $ac_link) 2>conftest.er1
a848cd7e 23907 ac_status=$?
ac1cb8d3
VS
23908 grep -v '^ *+' conftest.er1 >conftest.err
23909 rm -f conftest.er1
23910 cat conftest.err >&5
a848cd7e
SC
23911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23912 (exit $ac_status); } &&
5d7b7554 23913 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23915 (eval $ac_try) 2>&5
23916 ac_status=$?
23917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23918 (exit $ac_status); }; } &&
5d7b7554 23919 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23921 (eval $ac_try) 2>&5
23922 ac_status=$?
23923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23924 (exit $ac_status); }; }; then
5d7b7554 23925 eval "$as_ac_var=yes"
a848cd7e
SC
23926else
23927 echo "$as_me: failed program was:" >&5
23928sed 's/^/| /' conftest.$ac_ext >&5
23929
5d7b7554 23930eval "$as_ac_var=no"
a848cd7e 23931fi
5d7b7554
VZ
23932rm -f conftest.err conftest.$ac_objext \
23933 conftest$ac_exeext conftest.$ac_ext
a848cd7e 23934fi
5d7b7554
VZ
23935echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23936echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23937if test `eval echo '${'$as_ac_var'}'` = yes; then
23938 cat >>confdefs.h <<_ACEOF
23939#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23940_ACEOF
23941 have_cos=1
a848cd7e 23942fi
5d7b7554 23943done
a848cd7e 23944
ab0f0edd 23945
5d7b7554 23946for ac_func in floor
a848cd7e
SC
23947do
23948as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23949echo "$as_me:$LINENO: checking for $ac_func" >&5
23950echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23951if eval "test \"\${$as_ac_var+set}\" = set"; then
23952 echo $ECHO_N "(cached) $ECHO_C" >&6
23953else
23954 cat >conftest.$ac_ext <<_ACEOF
23955/* confdefs.h. */
23956_ACEOF
23957cat confdefs.h >>conftest.$ac_ext
23958cat >>conftest.$ac_ext <<_ACEOF
23959/* end confdefs.h. */
ac1cb8d3
VS
23960/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23961 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23962#define $ac_func innocuous_$ac_func
23963
a848cd7e
SC
23964/* System header to define __stub macros and hopefully few prototypes,
23965 which can conflict with char $ac_func (); below.
23966 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23967 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 23968
a848cd7e
SC
23969#ifdef __STDC__
23970# include <limits.h>
23971#else
23972# include <assert.h>
23973#endif
ac1cb8d3
VS
23974
23975#undef $ac_func
23976
a848cd7e
SC
23977/* Override any gcc2 internal prototype to avoid an error. */
23978#ifdef __cplusplus
23979extern "C"
23980{
23981#endif
23982/* We use char because int might match the return type of a gcc2
23983 builtin and then its argument prototype would still apply. */
23984char $ac_func ();
23985/* The GNU C library defines this for functions which it implements
23986 to always fail with ENOSYS. Some functions are actually named
23987 something starting with __ and the normal name is an alias. */
23988#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23989choke me
23990#else
23991char (*f) () = $ac_func;
23992#endif
23993#ifdef __cplusplus
23994}
23995#endif
23996
23997int
23998main ()
23999{
24000return f != $ac_func;
24001 ;
24002 return 0;
24003}
24004_ACEOF
24005rm -f conftest.$ac_objext conftest$ac_exeext
24006if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24007 (eval $ac_link) 2>conftest.er1
a848cd7e 24008 ac_status=$?
ac1cb8d3
VS
24009 grep -v '^ *+' conftest.er1 >conftest.err
24010 rm -f conftest.er1
24011 cat conftest.err >&5
a848cd7e
SC
24012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24013 (exit $ac_status); } &&
5d7b7554
VZ
24014 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
24015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24016 (eval $ac_try) 2>&5
24017 ac_status=$?
24018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24019 (exit $ac_status); }; } &&
24020 { ac_try='test -s conftest$ac_exeext'
24021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24022 (eval $ac_try) 2>&5
24023 ac_status=$?
24024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24025 (exit $ac_status); }; }; then
24026 eval "$as_ac_var=yes"
24027else
24028 echo "$as_me: failed program was:" >&5
24029sed 's/^/| /' conftest.$ac_ext >&5
24030
24031eval "$as_ac_var=no"
24032fi
24033rm -f conftest.err conftest.$ac_objext \
24034 conftest$ac_exeext conftest.$ac_ext
24035fi
24036echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24037echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24038if test `eval echo '${'$as_ac_var'}'` = yes; then
24039 cat >>confdefs.h <<_ACEOF
24040#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24041_ACEOF
24042 have_floor=1
24043fi
24044done
24045
24046echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
24047echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
24048if test "$have_cos" = 1 -a "$have_floor" = 1; then
24049 echo "$as_me:$LINENO: result: yes" >&5
24050echo "${ECHO_T}yes" >&6
24051else
24052 echo "$as_me:$LINENO: result: no" >&5
24053echo "${ECHO_T}no" >&6
24054 LIBS="$LIBS -lm"
24055 # use different functions to avoid configure caching
24056 have_sin=0
24057 have_ceil=0
24058
24059for ac_func in sin
24060do
24061as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24062echo "$as_me:$LINENO: checking for $ac_func" >&5
24063echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24064if eval "test \"\${$as_ac_var+set}\" = set"; then
24065 echo $ECHO_N "(cached) $ECHO_C" >&6
24066else
24067 cat >conftest.$ac_ext <<_ACEOF
24068/* confdefs.h. */
24069_ACEOF
24070cat confdefs.h >>conftest.$ac_ext
24071cat >>conftest.$ac_ext <<_ACEOF
24072/* end confdefs.h. */
24073/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24074 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24075#define $ac_func innocuous_$ac_func
24076
24077/* System header to define __stub macros and hopefully few prototypes,
24078 which can conflict with char $ac_func (); below.
24079 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24080 <limits.h> exists even on freestanding compilers. */
24081
24082#ifdef __STDC__
24083# include <limits.h>
24084#else
24085# include <assert.h>
24086#endif
24087
24088#undef $ac_func
24089
24090/* Override any gcc2 internal prototype to avoid an error. */
24091#ifdef __cplusplus
24092extern "C"
24093{
24094#endif
24095/* We use char because int might match the return type of a gcc2
24096 builtin and then its argument prototype would still apply. */
24097char $ac_func ();
24098/* The GNU C library defines this for functions which it implements
24099 to always fail with ENOSYS. Some functions are actually named
24100 something starting with __ and the normal name is an alias. */
24101#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24102choke me
24103#else
24104char (*f) () = $ac_func;
24105#endif
24106#ifdef __cplusplus
24107}
24108#endif
24109
24110int
24111main ()
24112{
24113return f != $ac_func;
24114 ;
24115 return 0;
24116}
24117_ACEOF
24118rm -f conftest.$ac_objext conftest$ac_exeext
24119if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24120 (eval $ac_link) 2>conftest.er1
24121 ac_status=$?
24122 grep -v '^ *+' conftest.er1 >conftest.err
24123 rm -f conftest.er1
24124 cat conftest.err >&5
24125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24126 (exit $ac_status); } &&
24127 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
24128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24129 (eval $ac_try) 2>&5
24130 ac_status=$?
24131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24132 (exit $ac_status); }; } &&
24133 { ac_try='test -s conftest$ac_exeext'
24134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24135 (eval $ac_try) 2>&5
24136 ac_status=$?
24137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24138 (exit $ac_status); }; }; then
24139 eval "$as_ac_var=yes"
24140else
24141 echo "$as_me: failed program was:" >&5
24142sed 's/^/| /' conftest.$ac_ext >&5
24143
24144eval "$as_ac_var=no"
24145fi
24146rm -f conftest.err conftest.$ac_objext \
24147 conftest$ac_exeext conftest.$ac_ext
24148fi
24149echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24150echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24151if test `eval echo '${'$as_ac_var'}'` = yes; then
24152 cat >>confdefs.h <<_ACEOF
24153#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24154_ACEOF
24155 have_sin=1
24156fi
24157done
24158
24159
24160for ac_func in ceil
24161do
24162as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24163echo "$as_me:$LINENO: checking for $ac_func" >&5
24164echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24165if eval "test \"\${$as_ac_var+set}\" = set"; then
24166 echo $ECHO_N "(cached) $ECHO_C" >&6
24167else
24168 cat >conftest.$ac_ext <<_ACEOF
24169/* confdefs.h. */
24170_ACEOF
24171cat confdefs.h >>conftest.$ac_ext
24172cat >>conftest.$ac_ext <<_ACEOF
24173/* end confdefs.h. */
24174/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24175 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24176#define $ac_func innocuous_$ac_func
24177
24178/* System header to define __stub macros and hopefully few prototypes,
24179 which can conflict with char $ac_func (); below.
24180 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24181 <limits.h> exists even on freestanding compilers. */
24182
24183#ifdef __STDC__
24184# include <limits.h>
24185#else
24186# include <assert.h>
24187#endif
24188
24189#undef $ac_func
24190
24191/* Override any gcc2 internal prototype to avoid an error. */
24192#ifdef __cplusplus
24193extern "C"
24194{
24195#endif
24196/* We use char because int might match the return type of a gcc2
24197 builtin and then its argument prototype would still apply. */
24198char $ac_func ();
24199/* The GNU C library defines this for functions which it implements
24200 to always fail with ENOSYS. Some functions are actually named
24201 something starting with __ and the normal name is an alias. */
24202#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24203choke me
24204#else
24205char (*f) () = $ac_func;
24206#endif
24207#ifdef __cplusplus
24208}
24209#endif
24210
24211int
24212main ()
24213{
24214return f != $ac_func;
24215 ;
24216 return 0;
24217}
24218_ACEOF
24219rm -f conftest.$ac_objext conftest$ac_exeext
24220if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24221 (eval $ac_link) 2>conftest.er1
24222 ac_status=$?
24223 grep -v '^ *+' conftest.er1 >conftest.err
24224 rm -f conftest.er1
24225 cat conftest.err >&5
24226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24227 (exit $ac_status); } &&
24228 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
24229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24230 (eval $ac_try) 2>&5
24231 ac_status=$?
24232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24233 (exit $ac_status); }; } &&
24234 { ac_try='test -s conftest$ac_exeext'
24235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24236 (eval $ac_try) 2>&5
24237 ac_status=$?
24238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24239 (exit $ac_status); }; }; then
24240 eval "$as_ac_var=yes"
24241else
24242 echo "$as_me: failed program was:" >&5
24243sed 's/^/| /' conftest.$ac_ext >&5
24244
24245eval "$as_ac_var=no"
24246fi
24247rm -f conftest.err conftest.$ac_objext \
24248 conftest$ac_exeext conftest.$ac_ext
24249fi
24250echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24251echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24252if test `eval echo '${'$as_ac_var'}'` = yes; then
24253 cat >>confdefs.h <<_ACEOF
24254#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24255_ACEOF
24256 have_ceil=1
24257fi
24258done
24259
24260 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
24261echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
24262 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
24263 echo "$as_me:$LINENO: result: yes" >&5
24264echo "${ECHO_T}yes" >&6
24265 else
24266 echo "$as_me:$LINENO: result: no" >&5
24267echo "${ECHO_T}no" >&6
24268 # not sure we should warn the user, crash, etc.
24269 fi
24270fi
24271
24272
24273
24274if test "$wxUSE_REGEX" != "no"; then
24275 cat >>confdefs.h <<\_ACEOF
24276#define wxUSE_REGEX 1
24277_ACEOF
24278
24279
24280 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
24281 { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
24282echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
24283 wxUSE_REGEX=builtin
24284 fi
24285
24286 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
24287 if test "${ac_cv_header_regex_h+set}" = set; then
24288 echo "$as_me:$LINENO: checking for regex.h" >&5
24289echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
24290if test "${ac_cv_header_regex_h+set}" = set; then
24291 echo $ECHO_N "(cached) $ECHO_C" >&6
24292fi
24293echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
24294echo "${ECHO_T}$ac_cv_header_regex_h" >&6
24295else
24296 # Is the header compilable?
24297echo "$as_me:$LINENO: checking regex.h usability" >&5
24298echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
24299cat >conftest.$ac_ext <<_ACEOF
24300/* confdefs.h. */
24301_ACEOF
24302cat confdefs.h >>conftest.$ac_ext
24303cat >>conftest.$ac_ext <<_ACEOF
24304/* end confdefs.h. */
24305$ac_includes_default
24306#include <regex.h>
24307_ACEOF
24308rm -f conftest.$ac_objext
24309if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24310 (eval $ac_compile) 2>conftest.er1
24311 ac_status=$?
24312 grep -v '^ *+' conftest.er1 >conftest.err
24313 rm -f conftest.er1
24314 cat conftest.err >&5
24315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24316 (exit $ac_status); } &&
24317 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
24318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24319 (eval $ac_try) 2>&5
24320 ac_status=$?
24321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24322 (exit $ac_status); }; } &&
24323 { ac_try='test -s conftest.$ac_objext'
24324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24325 (eval $ac_try) 2>&5
24326 ac_status=$?
24327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24328 (exit $ac_status); }; }; then
24329 ac_header_compiler=yes
24330else
24331 echo "$as_me: failed program was:" >&5
24332sed 's/^/| /' conftest.$ac_ext >&5
24333
24334ac_header_compiler=no
24335fi
24336rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24337echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24338echo "${ECHO_T}$ac_header_compiler" >&6
24339
24340# Is the header present?
24341echo "$as_me:$LINENO: checking regex.h presence" >&5
24342echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
24343cat >conftest.$ac_ext <<_ACEOF
24344/* confdefs.h. */
24345_ACEOF
24346cat confdefs.h >>conftest.$ac_ext
24347cat >>conftest.$ac_ext <<_ACEOF
24348/* end confdefs.h. */
24349#include <regex.h>
24350_ACEOF
24351if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24352 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24353 ac_status=$?
24354 grep -v '^ *+' conftest.er1 >conftest.err
24355 rm -f conftest.er1
24356 cat conftest.err >&5
24357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24358 (exit $ac_status); } >/dev/null; then
24359 if test -s conftest.err; then
24360 ac_cpp_err=$ac_cxx_preproc_warn_flag
24361 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
24362 else
24363 ac_cpp_err=
24364 fi
24365else
24366 ac_cpp_err=yes
24367fi
24368if test -z "$ac_cpp_err"; then
24369 ac_header_preproc=yes
24370else
24371 echo "$as_me: failed program was:" >&5
24372sed 's/^/| /' conftest.$ac_ext >&5
24373
24374 ac_header_preproc=no
24375fi
24376rm -f conftest.err conftest.$ac_ext
24377echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24378echo "${ECHO_T}$ac_header_preproc" >&6
24379
24380# So? What about this header?
24381case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
24382 yes:no: )
24383 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
24384echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24385 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
24386echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
24387 ac_header_preproc=yes
24388 ;;
24389 no:yes:* )
24390 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
24391echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
24392 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
24393echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
24394 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
24395echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
24396 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
24397echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
24398 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
24399echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
24400 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
24401echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
24402 (
24403 cat <<\_ASBOX
24404## ----------------------------------------- ##
24405## Report this to wx-dev@lists.wxwidgets.org ##
24406## ----------------------------------------- ##
24407_ASBOX
24408 ) |
24409 sed "s/^/$as_me: WARNING: /" >&2
24410 ;;
24411esac
24412echo "$as_me:$LINENO: checking for regex.h" >&5
24413echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
24414if test "${ac_cv_header_regex_h+set}" = set; then
24415 echo $ECHO_N "(cached) $ECHO_C" >&6
24416else
24417 ac_cv_header_regex_h=$ac_header_preproc
24418fi
24419echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
24420echo "${ECHO_T}$ac_cv_header_regex_h" >&6
24421
24422fi
24423if test $ac_cv_header_regex_h = yes; then
24424
24425
24426for ac_func in regcomp re_search
24427do
24428as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24429echo "$as_me:$LINENO: checking for $ac_func" >&5
24430echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24431if eval "test \"\${$as_ac_var+set}\" = set"; then
24432 echo $ECHO_N "(cached) $ECHO_C" >&6
24433else
24434 cat >conftest.$ac_ext <<_ACEOF
24435/* confdefs.h. */
24436_ACEOF
24437cat confdefs.h >>conftest.$ac_ext
24438cat >>conftest.$ac_ext <<_ACEOF
24439/* end confdefs.h. */
24440/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24441 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24442#define $ac_func innocuous_$ac_func
24443
24444/* System header to define __stub macros and hopefully few prototypes,
24445 which can conflict with char $ac_func (); below.
24446 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24447 <limits.h> exists even on freestanding compilers. */
24448
24449#ifdef __STDC__
24450# include <limits.h>
24451#else
24452# include <assert.h>
24453#endif
24454
24455#undef $ac_func
24456
24457/* Override any gcc2 internal prototype to avoid an error. */
24458#ifdef __cplusplus
24459extern "C"
24460{
24461#endif
24462/* We use char because int might match the return type of a gcc2
24463 builtin and then its argument prototype would still apply. */
24464char $ac_func ();
24465/* The GNU C library defines this for functions which it implements
24466 to always fail with ENOSYS. Some functions are actually named
24467 something starting with __ and the normal name is an alias. */
24468#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24469choke me
24470#else
24471char (*f) () = $ac_func;
24472#endif
24473#ifdef __cplusplus
24474}
24475#endif
24476
24477int
24478main ()
24479{
24480return f != $ac_func;
24481 ;
24482 return 0;
24483}
24484_ACEOF
24485rm -f conftest.$ac_objext conftest$ac_exeext
24486if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24487 (eval $ac_link) 2>conftest.er1
24488 ac_status=$?
24489 grep -v '^ *+' conftest.er1 >conftest.err
24490 rm -f conftest.er1
24491 cat conftest.err >&5
24492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24493 (exit $ac_status); } &&
24494 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24496 (eval $ac_try) 2>&5
24497 ac_status=$?
24498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24499 (exit $ac_status); }; } &&
24500 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24502 (eval $ac_try) 2>&5
24503 ac_status=$?
24504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24505 (exit $ac_status); }; }; then
24506 eval "$as_ac_var=yes"
24507else
24508 echo "$as_me: failed program was:" >&5
24509sed 's/^/| /' conftest.$ac_ext >&5
24510
24511eval "$as_ac_var=no"
24512fi
ac1cb8d3
VS
24513rm -f conftest.err conftest.$ac_objext \
24514 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24515fi
24516echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24517echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24518if test `eval echo '${'$as_ac_var'}'` = yes; then
24519 cat >>confdefs.h <<_ACEOF
24520#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24521_ACEOF
24522
24523fi
24524done
24525
24526fi
24527
24528
24529
24530 if test "x$ac_cv_func_regcomp" != "xyes"; then
24531 if test "$wxUSE_REGEX" = "sys" ; then
24532 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
24533echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
24534 { (exit 1); exit 1; }; }
24535 else
24536 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
24537echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
24538 wxUSE_REGEX=builtin
24539 fi
24540 else
24541 wxUSE_REGEX=sys
24542 cat >>confdefs.h <<\_ACEOF
24543#define WX_NO_REGEX_ADVANCED 1
24544_ACEOF
24545
24546 fi
24547 fi
24548fi
24549
24550
24551ZLIB_LINK=
24552if test "$wxUSE_ZLIB" != "no" ; then
24553 cat >>confdefs.h <<\_ACEOF
24554#define wxUSE_ZLIB 1
24555_ACEOF
24556
24557
24558 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
24559 if test "$USE_DARWIN" = 1; then
24560 system_zlib_h_ok="yes"
24561 else
24562 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
24563echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
24564if test "${ac_cv_header_zlib_h+set}" = set; then
24565 echo $ECHO_N "(cached) $ECHO_C" >&6
24566else
24567 if test "$cross_compiling" = yes; then
24568 unset ac_cv_header_zlib_h
24569
24570else
24571 cat >conftest.$ac_ext <<_ACEOF
24572/* confdefs.h. */
24573_ACEOF
24574cat confdefs.h >>conftest.$ac_ext
24575cat >>conftest.$ac_ext <<_ACEOF
24576/* end confdefs.h. */
24577
24578 #include <zlib.h>
24579 #include <stdio.h>
24580
24581 int main()
24582 {
24583 FILE *f=fopen("conftestval", "w");
24584 if (!f) exit(1);
24585 fprintf(f, "%s",
24586 ZLIB_VERSION[0] == '1' &&
24587 (ZLIB_VERSION[2] > '1' ||
24588 (ZLIB_VERSION[2] == '1' &&
24589 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
24590 exit(0);
24591 }
24592
24593_ACEOF
24594rm -f conftest$ac_exeext
24595if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24596 (eval $ac_link) 2>&5
24597 ac_status=$?
24598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24599 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24601 (eval $ac_try) 2>&5
24602 ac_status=$?
24603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24604 (exit $ac_status); }; }; then
24605 ac_cv_header_zlib_h=`cat conftestval`
24606else
24607 echo "$as_me: program exited with status $ac_status" >&5
24608echo "$as_me: failed program was:" >&5
24609sed 's/^/| /' conftest.$ac_ext >&5
24610
24611( exit $ac_status )
24612ac_cv_header_zlib_h=no
24613fi
ac1cb8d3 24614rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24615fi
24616
24617fi
24618echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
24619echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
24620 if test "${ac_cv_header_zlib_h+set}" = set; then
24621 echo "$as_me:$LINENO: checking for zlib.h" >&5
24622echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
24623if test "${ac_cv_header_zlib_h+set}" = set; then
24624 echo $ECHO_N "(cached) $ECHO_C" >&6
24625fi
24626echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
24627echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
24628else
24629 # Is the header compilable?
24630echo "$as_me:$LINENO: checking zlib.h usability" >&5
24631echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
24632cat >conftest.$ac_ext <<_ACEOF
24633/* confdefs.h. */
24634_ACEOF
24635cat confdefs.h >>conftest.$ac_ext
24636cat >>conftest.$ac_ext <<_ACEOF
24637/* end confdefs.h. */
24638$ac_includes_default
24639#include <zlib.h>
24640_ACEOF
24641rm -f conftest.$ac_objext
24642if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24643 (eval $ac_compile) 2>conftest.er1
a848cd7e 24644 ac_status=$?
ac1cb8d3
VS
24645 grep -v '^ *+' conftest.er1 >conftest.err
24646 rm -f conftest.er1
24647 cat conftest.err >&5
a848cd7e
SC
24648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24649 (exit $ac_status); } &&
5d7b7554 24650 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24652 (eval $ac_try) 2>&5
24653 ac_status=$?
24654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24655 (exit $ac_status); }; } &&
24656 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24658 (eval $ac_try) 2>&5
24659 ac_status=$?
24660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24661 (exit $ac_status); }; }; then
24662 ac_header_compiler=yes
24663else
24664 echo "$as_me: failed program was:" >&5
24665sed 's/^/| /' conftest.$ac_ext >&5
24666
24667ac_header_compiler=no
24668fi
ac1cb8d3 24669rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24670echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24671echo "${ECHO_T}$ac_header_compiler" >&6
24672
24673# Is the header present?
24674echo "$as_me:$LINENO: checking zlib.h presence" >&5
24675echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
24676cat >conftest.$ac_ext <<_ACEOF
24677/* confdefs.h. */
24678_ACEOF
24679cat confdefs.h >>conftest.$ac_ext
24680cat >>conftest.$ac_ext <<_ACEOF
24681/* end confdefs.h. */
24682#include <zlib.h>
24683_ACEOF
24684if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24685 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24686 ac_status=$?
24687 grep -v '^ *+' conftest.er1 >conftest.err
24688 rm -f conftest.er1
24689 cat conftest.err >&5
24690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24691 (exit $ac_status); } >/dev/null; then
24692 if test -s conftest.err; then
5d7b7554
VZ
24693 ac_cpp_err=$ac_cxx_preproc_warn_flag
24694 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
24695 else
24696 ac_cpp_err=
24697 fi
24698else
24699 ac_cpp_err=yes
24700fi
24701if test -z "$ac_cpp_err"; then
24702 ac_header_preproc=yes
24703else
24704 echo "$as_me: failed program was:" >&5
24705sed 's/^/| /' conftest.$ac_ext >&5
24706
24707 ac_header_preproc=no
24708fi
24709rm -f conftest.err conftest.$ac_ext
24710echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24711echo "${ECHO_T}$ac_header_preproc" >&6
24712
24713# So? What about this header?
5d7b7554 24714case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 24715 yes:no: )
a848cd7e
SC
24716 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
24717echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
24718 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
24719echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
24720 ac_header_preproc=yes
a848cd7e 24721 ;;
ac1cb8d3 24722 no:yes:* )
a848cd7e
SC
24723 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
24724echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
24725 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
24726echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
24727 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
24728echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
24729 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
24730echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
24731 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
24732echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
24733 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
24734echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
24735 (
24736 cat <<\_ASBOX
ac1cb8d3
VS
24737## ----------------------------------------- ##
24738## Report this to wx-dev@lists.wxwidgets.org ##
24739## ----------------------------------------- ##
a848cd7e
SC
24740_ASBOX
24741 ) |
24742 sed "s/^/$as_me: WARNING: /" >&2
24743 ;;
24744esac
24745echo "$as_me:$LINENO: checking for zlib.h" >&5
24746echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
24747if test "${ac_cv_header_zlib_h+set}" = set; then
24748 echo $ECHO_N "(cached) $ECHO_C" >&6
24749else
24750 ac_cv_header_zlib_h=$ac_header_preproc
24751fi
24752echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
24753echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
24754
24755fi
24756
24757
24758
24759 system_zlib_h_ok=$ac_cv_header_zlib_h
24760 fi
24761
24762 if test "$system_zlib_h_ok" = "yes"; then
24763 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
24764echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
24765if test "${ac_cv_lib_z_deflate+set}" = set; then
24766 echo $ECHO_N "(cached) $ECHO_C" >&6
24767else
24768 ac_check_lib_save_LIBS=$LIBS
24769LIBS="-lz $LIBS"
24770cat >conftest.$ac_ext <<_ACEOF
24771/* confdefs.h. */
24772_ACEOF
24773cat confdefs.h >>conftest.$ac_ext
24774cat >>conftest.$ac_ext <<_ACEOF
24775/* end confdefs.h. */
24776
24777/* Override any gcc2 internal prototype to avoid an error. */
24778#ifdef __cplusplus
24779extern "C"
24780#endif
24781/* We use char because int might match the return type of a gcc2
24782 builtin and then its argument prototype would still apply. */
24783char deflate ();
24784int
24785main ()
24786{
24787deflate ();
24788 ;
24789 return 0;
24790}
24791_ACEOF
24792rm -f conftest.$ac_objext conftest$ac_exeext
24793if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24794 (eval $ac_link) 2>conftest.er1
a848cd7e 24795 ac_status=$?
ac1cb8d3
VS
24796 grep -v '^ *+' conftest.er1 >conftest.err
24797 rm -f conftest.er1
24798 cat conftest.err >&5
a848cd7e
SC
24799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24800 (exit $ac_status); } &&
5d7b7554 24801 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24803 (eval $ac_try) 2>&5
24804 ac_status=$?
24805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24806 (exit $ac_status); }; } &&
24807 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24809 (eval $ac_try) 2>&5
24810 ac_status=$?
24811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24812 (exit $ac_status); }; }; then
24813 ac_cv_lib_z_deflate=yes
24814else
24815 echo "$as_me: failed program was:" >&5
24816sed 's/^/| /' conftest.$ac_ext >&5
24817
24818ac_cv_lib_z_deflate=no
24819fi
ac1cb8d3
VS
24820rm -f conftest.err conftest.$ac_objext \
24821 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24822LIBS=$ac_check_lib_save_LIBS
24823fi
24824echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
24825echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
24826if test $ac_cv_lib_z_deflate = yes; then
24827 ZLIB_LINK=" -lz"
24828fi
24829
24830 fi
24831
24832 if test "x$ZLIB_LINK" = "x" ; then
24833 if test "$wxUSE_ZLIB" = "sys" ; then
24834 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
24835echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
24836 { (exit 1); exit 1; }; }
24837 else
24838 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
24839echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
24840 wxUSE_ZLIB=builtin
24841 fi
24842 else
24843 wxUSE_ZLIB=sys
24844 fi
24845 fi
24846fi
24847
24848
24849PNG_LINK=
24850if test "$wxUSE_LIBPNG" != "no" ; then
24851 cat >>confdefs.h <<\_ACEOF
24852#define wxUSE_LIBPNG 1
24853_ACEOF
24854
24855
24856 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
24857 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
24858echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
24859 wxUSE_LIBPNG=sys
24860 fi
24861
24862 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
24863 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
24864echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
24865 wxUSE_LIBPNG=builtin
24866 fi
24867
24868 if test "$wxUSE_MGL" != 1 ; then
24869 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
24870 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
24871echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
24872if test "${ac_cv_header_png_h+set}" = set; then
24873 echo $ECHO_N "(cached) $ECHO_C" >&6
24874else
24875 if test "$cross_compiling" = yes; then
24876 unset ac_cv_header_png_h
24877
24878else
24879 cat >conftest.$ac_ext <<_ACEOF
24880/* confdefs.h. */
24881_ACEOF
24882cat confdefs.h >>conftest.$ac_ext
24883cat >>conftest.$ac_ext <<_ACEOF
24884/* end confdefs.h. */
24885
24886 #include <png.h>
24887 #include <stdio.h>
24888
24889 int main()
24890 {
24891 FILE *f=fopen("conftestval", "w");
24892 if (!f) exit(1);
24893 fprintf(f, "%s",
24894 PNG_LIBPNG_VER > 90 ? "yes" : "no");
24895 exit(0);
24896 }
24897
24898_ACEOF
24899rm -f conftest$ac_exeext
24900if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24901 (eval $ac_link) 2>&5
24902 ac_status=$?
24903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24904 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24906 (eval $ac_try) 2>&5
24907 ac_status=$?
24908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24909 (exit $ac_status); }; }; then
24910 ac_cv_header_png_h=`cat conftestval`
24911else
24912 echo "$as_me: program exited with status $ac_status" >&5
24913echo "$as_me: failed program was:" >&5
24914sed 's/^/| /' conftest.$ac_ext >&5
24915
24916( exit $ac_status )
24917ac_cv_header_png_h=no
24918fi
ac1cb8d3 24919rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24920fi
24921
24922fi
24923echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
24924echo "${ECHO_T}$ac_cv_header_png_h" >&6
24925 if test "${ac_cv_header_png_h+set}" = set; then
24926 echo "$as_me:$LINENO: checking for png.h" >&5
24927echo $ECHO_N "checking for png.h... $ECHO_C" >&6
24928if test "${ac_cv_header_png_h+set}" = set; then
24929 echo $ECHO_N "(cached) $ECHO_C" >&6
24930fi
24931echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
24932echo "${ECHO_T}$ac_cv_header_png_h" >&6
24933else
24934 # Is the header compilable?
24935echo "$as_me:$LINENO: checking png.h usability" >&5
24936echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
24937cat >conftest.$ac_ext <<_ACEOF
24938/* confdefs.h. */
24939_ACEOF
24940cat confdefs.h >>conftest.$ac_ext
24941cat >>conftest.$ac_ext <<_ACEOF
24942/* end confdefs.h. */
24943$ac_includes_default
24944#include <png.h>
24945_ACEOF
24946rm -f conftest.$ac_objext
24947if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24948 (eval $ac_compile) 2>conftest.er1
a848cd7e 24949 ac_status=$?
ac1cb8d3
VS
24950 grep -v '^ *+' conftest.er1 >conftest.err
24951 rm -f conftest.er1
24952 cat conftest.err >&5
a848cd7e
SC
24953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24954 (exit $ac_status); } &&
5d7b7554 24955 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24957 (eval $ac_try) 2>&5
24958 ac_status=$?
24959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24960 (exit $ac_status); }; } &&
24961 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24963 (eval $ac_try) 2>&5
24964 ac_status=$?
24965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24966 (exit $ac_status); }; }; then
24967 ac_header_compiler=yes
24968else
24969 echo "$as_me: failed program was:" >&5
24970sed 's/^/| /' conftest.$ac_ext >&5
24971
24972ac_header_compiler=no
24973fi
ac1cb8d3 24974rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24975echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24976echo "${ECHO_T}$ac_header_compiler" >&6
24977
24978# Is the header present?
24979echo "$as_me:$LINENO: checking png.h presence" >&5
24980echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
24981cat >conftest.$ac_ext <<_ACEOF
24982/* confdefs.h. */
24983_ACEOF
24984cat confdefs.h >>conftest.$ac_ext
24985cat >>conftest.$ac_ext <<_ACEOF
24986/* end confdefs.h. */
24987#include <png.h>
24988_ACEOF
24989if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24990 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24991 ac_status=$?
24992 grep -v '^ *+' conftest.er1 >conftest.err
24993 rm -f conftest.er1
24994 cat conftest.err >&5
24995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24996 (exit $ac_status); } >/dev/null; then
24997 if test -s conftest.err; then
5d7b7554
VZ
24998 ac_cpp_err=$ac_cxx_preproc_warn_flag
24999 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
25000 else
25001 ac_cpp_err=
25002 fi
25003else
25004 ac_cpp_err=yes
25005fi
25006if test -z "$ac_cpp_err"; then
25007 ac_header_preproc=yes
25008else
25009 echo "$as_me: failed program was:" >&5
25010sed 's/^/| /' conftest.$ac_ext >&5
25011
25012 ac_header_preproc=no
25013fi
25014rm -f conftest.err conftest.$ac_ext
25015echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25016echo "${ECHO_T}$ac_header_preproc" >&6
25017
25018# So? What about this header?
5d7b7554 25019case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 25020 yes:no: )
a848cd7e
SC
25021 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
25022echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
25023 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
25024echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
25025 ac_header_preproc=yes
a848cd7e 25026 ;;
ac1cb8d3 25027 no:yes:* )
a848cd7e
SC
25028 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
25029echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
25030 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
25031echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
25032 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
25033echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
25034 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
25035echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
25036 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
25037echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
25038 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
25039echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
25040 (
25041 cat <<\_ASBOX
ac1cb8d3
VS
25042## ----------------------------------------- ##
25043## Report this to wx-dev@lists.wxwidgets.org ##
25044## ----------------------------------------- ##
a848cd7e
SC
25045_ASBOX
25046 ) |
25047 sed "s/^/$as_me: WARNING: /" >&2
25048 ;;
25049esac
25050echo "$as_me:$LINENO: checking for png.h" >&5
25051echo $ECHO_N "checking for png.h... $ECHO_C" >&6
25052if test "${ac_cv_header_png_h+set}" = set; then
25053 echo $ECHO_N "(cached) $ECHO_C" >&6
25054else
25055 ac_cv_header_png_h=$ac_header_preproc
25056fi
25057echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
25058echo "${ECHO_T}$ac_cv_header_png_h" >&6
25059
25060fi
25061
25062
25063
25064 if test "$ac_cv_header_png_h" = "yes"; then
25065 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
25066echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
25067if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
25068 echo $ECHO_N "(cached) $ECHO_C" >&6
25069else
25070 ac_check_lib_save_LIBS=$LIBS
25071LIBS="-lpng -lz -lm $LIBS"
25072cat >conftest.$ac_ext <<_ACEOF
25073/* confdefs.h. */
25074_ACEOF
25075cat confdefs.h >>conftest.$ac_ext
25076cat >>conftest.$ac_ext <<_ACEOF
25077/* end confdefs.h. */
25078
25079/* Override any gcc2 internal prototype to avoid an error. */
25080#ifdef __cplusplus
25081extern "C"
25082#endif
25083/* We use char because int might match the return type of a gcc2
25084 builtin and then its argument prototype would still apply. */
25085char png_check_sig ();
25086int
25087main ()
25088{
25089png_check_sig ();
25090 ;
25091 return 0;
25092}
25093_ACEOF
25094rm -f conftest.$ac_objext conftest$ac_exeext
25095if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25096 (eval $ac_link) 2>conftest.er1
a848cd7e 25097 ac_status=$?
ac1cb8d3
VS
25098 grep -v '^ *+' conftest.er1 >conftest.err
25099 rm -f conftest.er1
25100 cat conftest.err >&5
a848cd7e
SC
25101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25102 (exit $ac_status); } &&
5d7b7554 25103 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25105 (eval $ac_try) 2>&5
25106 ac_status=$?
25107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25108 (exit $ac_status); }; } &&
25109 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25111 (eval $ac_try) 2>&5
25112 ac_status=$?
25113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25114 (exit $ac_status); }; }; then
25115 ac_cv_lib_png_png_check_sig=yes
25116else
25117 echo "$as_me: failed program was:" >&5
25118sed 's/^/| /' conftest.$ac_ext >&5
25119
25120ac_cv_lib_png_png_check_sig=no
25121fi
ac1cb8d3
VS
25122rm -f conftest.err conftest.$ac_objext \
25123 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25124LIBS=$ac_check_lib_save_LIBS
25125fi
25126echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
25127echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
25128if test $ac_cv_lib_png_png_check_sig = yes; then
25129 PNG_LINK=" -lpng -lz"
25130fi
25131
25132 fi
25133
25134 if test "x$PNG_LINK" = "x" ; then
25135 if test "$wxUSE_LIBPNG" = "sys" ; then
25136 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
25137echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
25138 { (exit 1); exit 1; }; }
25139 else
25140 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
25141echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
25142 wxUSE_LIBPNG=builtin
25143 fi
25144 else
25145 wxUSE_LIBPNG=sys
25146 fi
25147 fi
25148 fi
25149
25150 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
25151fi
25152
25153
25154JPEG_LINK=
25155if test "$wxUSE_LIBJPEG" != "no" ; then
25156 cat >>confdefs.h <<\_ACEOF
25157#define wxUSE_LIBJPEG 1
25158_ACEOF
25159
25160
25161 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
25162 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
25163echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
25164 wxUSE_LIBJPEG=sys
25165 fi
25166
25167 if test "$wxUSE_MGL" != 1 ; then
25168 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
25169 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
25170echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
25171 if test "${ac_cv_header_jpeglib_h+set}" = set; then
25172 echo $ECHO_N "(cached) $ECHO_C" >&6
25173else
25174 cat >conftest.$ac_ext <<_ACEOF
25175/* confdefs.h. */
25176_ACEOF
25177cat confdefs.h >>conftest.$ac_ext
25178cat >>conftest.$ac_ext <<_ACEOF
25179/* end confdefs.h. */
25180
25181 #undef HAVE_STDLIB_H
25182 #include <stdio.h>
25183 #include <jpeglib.h>
25184
25185int
25186main ()
25187{
25188
25189
25190 ;
25191 return 0;
25192}
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); } &&
5d7b7554 25203 { ac_try='test -z "$ac_cxx_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_cv_header_jpeglib_h=yes
25216else
25217 echo "$as_me: failed program was:" >&5
25218sed 's/^/| /' conftest.$ac_ext >&5
25219
25220ac_cv_header_jpeglib_h=no
25221
25222fi
ac1cb8d3 25223rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25224
25225fi
25226
25227 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
25228echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
25229
25230 if test "$ac_cv_header_jpeglib_h" = "yes"; then
25231 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
25232echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
25233if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
25234 echo $ECHO_N "(cached) $ECHO_C" >&6
25235else
25236 ac_check_lib_save_LIBS=$LIBS
25237LIBS="-ljpeg $LIBS"
25238cat >conftest.$ac_ext <<_ACEOF
25239/* confdefs.h. */
25240_ACEOF
25241cat confdefs.h >>conftest.$ac_ext
25242cat >>conftest.$ac_ext <<_ACEOF
25243/* end confdefs.h. */
25244
25245/* Override any gcc2 internal prototype to avoid an error. */
25246#ifdef __cplusplus
25247extern "C"
25248#endif
25249/* We use char because int might match the return type of a gcc2
25250 builtin and then its argument prototype would still apply. */
25251char jpeg_read_header ();
25252int
25253main ()
25254{
25255jpeg_read_header ();
25256 ;
25257 return 0;
25258}
25259_ACEOF
25260rm -f conftest.$ac_objext conftest$ac_exeext
25261if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25262 (eval $ac_link) 2>conftest.er1
a848cd7e 25263 ac_status=$?
ac1cb8d3
VS
25264 grep -v '^ *+' conftest.er1 >conftest.err
25265 rm -f conftest.er1
25266 cat conftest.err >&5
a848cd7e
SC
25267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25268 (exit $ac_status); } &&
5d7b7554 25269 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25271 (eval $ac_try) 2>&5
25272 ac_status=$?
25273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25274 (exit $ac_status); }; } &&
25275 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25277 (eval $ac_try) 2>&5
25278 ac_status=$?
25279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25280 (exit $ac_status); }; }; then
25281 ac_cv_lib_jpeg_jpeg_read_header=yes
25282else
25283 echo "$as_me: failed program was:" >&5
25284sed 's/^/| /' conftest.$ac_ext >&5
25285
25286ac_cv_lib_jpeg_jpeg_read_header=no
25287fi
ac1cb8d3
VS
25288rm -f conftest.err conftest.$ac_objext \
25289 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25290LIBS=$ac_check_lib_save_LIBS
25291fi
25292echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
25293echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
25294if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
25295 JPEG_LINK=" -ljpeg"
25296fi
25297
25298 fi
25299
25300 if test "x$JPEG_LINK" = "x" ; then
25301 if test "$wxUSE_LIBJPEG" = "sys" ; then
25302 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
25303echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
25304 { (exit 1); exit 1; }; }
25305 else
25306 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
25307echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
25308 wxUSE_LIBJPEG=builtin
25309 fi
25310 else
25311 wxUSE_LIBJPEG=sys
25312 fi
25313 fi
25314 fi
25315fi
25316
25317
25318TIFF_LINK=
25319TIFF_PREREQ_LINKS=-lm
25320if test "$wxUSE_LIBTIFF" != "no" ; then
25321 cat >>confdefs.h <<\_ACEOF
25322#define wxUSE_LIBTIFF 1
25323_ACEOF
25324
25325
25326 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
25327 if test "$wxUSE_LIBJPEG" = "sys"; then
25328 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
25329 fi
25330 if test "$wxUSE_ZLIB" = "sys"; then
25331 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
25332 fi
25333 if test "${ac_cv_header_tiffio_h+set}" = set; then
25334 echo "$as_me:$LINENO: checking for tiffio.h" >&5
25335echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
25336if test "${ac_cv_header_tiffio_h+set}" = set; then
25337 echo $ECHO_N "(cached) $ECHO_C" >&6
25338fi
25339echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
25340echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
25341else
25342 # Is the header compilable?
25343echo "$as_me:$LINENO: checking tiffio.h usability" >&5
25344echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
25345cat >conftest.$ac_ext <<_ACEOF
25346/* confdefs.h. */
25347_ACEOF
25348cat confdefs.h >>conftest.$ac_ext
25349cat >>conftest.$ac_ext <<_ACEOF
25350/* end confdefs.h. */
25351$ac_includes_default
25352#include <tiffio.h>
25353_ACEOF
25354rm -f conftest.$ac_objext
25355if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25356 (eval $ac_compile) 2>conftest.er1
a848cd7e 25357 ac_status=$?
ac1cb8d3
VS
25358 grep -v '^ *+' conftest.er1 >conftest.err
25359 rm -f conftest.er1
25360 cat conftest.err >&5
a848cd7e
SC
25361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25362 (exit $ac_status); } &&
5d7b7554 25363 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25365 (eval $ac_try) 2>&5
25366 ac_status=$?
25367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25368 (exit $ac_status); }; } &&
25369 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25371 (eval $ac_try) 2>&5
25372 ac_status=$?
25373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25374 (exit $ac_status); }; }; then
25375 ac_header_compiler=yes
25376else
25377 echo "$as_me: failed program was:" >&5
25378sed 's/^/| /' conftest.$ac_ext >&5
25379
25380ac_header_compiler=no
25381fi
ac1cb8d3 25382rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25383echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25384echo "${ECHO_T}$ac_header_compiler" >&6
25385
25386# Is the header present?
25387echo "$as_me:$LINENO: checking tiffio.h presence" >&5
25388echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
25389cat >conftest.$ac_ext <<_ACEOF
25390/* confdefs.h. */
25391_ACEOF
25392cat confdefs.h >>conftest.$ac_ext
25393cat >>conftest.$ac_ext <<_ACEOF
25394/* end confdefs.h. */
25395#include <tiffio.h>
25396_ACEOF
25397if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25398 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25399 ac_status=$?
25400 grep -v '^ *+' conftest.er1 >conftest.err
25401 rm -f conftest.er1
25402 cat conftest.err >&5
25403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25404 (exit $ac_status); } >/dev/null; then
25405 if test -s conftest.err; then
5d7b7554
VZ
25406 ac_cpp_err=$ac_cxx_preproc_warn_flag
25407 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
25408 else
25409 ac_cpp_err=
25410 fi
25411else
25412 ac_cpp_err=yes
25413fi
25414if test -z "$ac_cpp_err"; then
25415 ac_header_preproc=yes
25416else
25417 echo "$as_me: failed program was:" >&5
25418sed 's/^/| /' conftest.$ac_ext >&5
25419
25420 ac_header_preproc=no
25421fi
25422rm -f conftest.err conftest.$ac_ext
25423echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25424echo "${ECHO_T}$ac_header_preproc" >&6
25425
25426# So? What about this header?
5d7b7554 25427case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 25428 yes:no: )
a848cd7e
SC
25429 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
25430echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
25431 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
25432echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
25433 ac_header_preproc=yes
a848cd7e 25434 ;;
ac1cb8d3 25435 no:yes:* )
a848cd7e
SC
25436 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
25437echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
25438 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
25439echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
25440 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
25441echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
25442 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
25443echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
25444 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
25445echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
25446 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
25447echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
25448 (
25449 cat <<\_ASBOX
ac1cb8d3
VS
25450## ----------------------------------------- ##
25451## Report this to wx-dev@lists.wxwidgets.org ##
25452## ----------------------------------------- ##
a848cd7e
SC
25453_ASBOX
25454 ) |
25455 sed "s/^/$as_me: WARNING: /" >&2
25456 ;;
25457esac
25458echo "$as_me:$LINENO: checking for tiffio.h" >&5
25459echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
25460if test "${ac_cv_header_tiffio_h+set}" = set; then
25461 echo $ECHO_N "(cached) $ECHO_C" >&6
25462else
25463 ac_cv_header_tiffio_h=$ac_header_preproc
25464fi
25465echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
25466echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
25467
25468fi
25469if test $ac_cv_header_tiffio_h = yes; then
25470
25471 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
25472echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
25473if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
25474 echo $ECHO_N "(cached) $ECHO_C" >&6
25475else
25476 ac_check_lib_save_LIBS=$LIBS
25477LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
25478cat >conftest.$ac_ext <<_ACEOF
25479/* confdefs.h. */
25480_ACEOF
25481cat confdefs.h >>conftest.$ac_ext
25482cat >>conftest.$ac_ext <<_ACEOF
25483/* end confdefs.h. */
25484
25485/* Override any gcc2 internal prototype to avoid an error. */
25486#ifdef __cplusplus
25487extern "C"
25488#endif
25489/* We use char because int might match the return type of a gcc2
25490 builtin and then its argument prototype would still apply. */
25491char TIFFError ();
25492int
25493main ()
25494{
25495TIFFError ();
25496 ;
25497 return 0;
25498}
25499_ACEOF
25500rm -f conftest.$ac_objext conftest$ac_exeext
25501if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25502 (eval $ac_link) 2>conftest.er1
a848cd7e 25503 ac_status=$?
ac1cb8d3
VS
25504 grep -v '^ *+' conftest.er1 >conftest.err
25505 rm -f conftest.er1
25506 cat conftest.err >&5
a848cd7e
SC
25507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25508 (exit $ac_status); } &&
5d7b7554 25509 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25511 (eval $ac_try) 2>&5
25512 ac_status=$?
25513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25514 (exit $ac_status); }; } &&
25515 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25517 (eval $ac_try) 2>&5
25518 ac_status=$?
25519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25520 (exit $ac_status); }; }; then
25521 ac_cv_lib_tiff_TIFFError=yes
25522else
25523 echo "$as_me: failed program was:" >&5
25524sed 's/^/| /' conftest.$ac_ext >&5
25525
25526ac_cv_lib_tiff_TIFFError=no
25527fi
ac1cb8d3
VS
25528rm -f conftest.err conftest.$ac_objext \
25529 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25530LIBS=$ac_check_lib_save_LIBS
25531fi
25532echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
25533echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
25534if test $ac_cv_lib_tiff_TIFFError = yes; then
25535 TIFF_LINK=" -ltiff"
25536fi
25537
25538
25539
25540fi
25541
25542
25543
25544 if test "x$TIFF_LINK" = "x" ; then
25545 if test "$wxUSE_LIBTIFF" = "sys" ; then
25546 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
25547echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
25548 { (exit 1); exit 1; }; }
25549 else
25550 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
25551echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
25552 wxUSE_LIBTIFF=builtin
25553 fi
25554 else
25555 wxUSE_LIBTIFF=sys
25556 fi
25557 fi
25558fi
25559
25560
47a7e797
MW
25561if test "$wxUSE_WCHAR_T" != "yes"; then
25562 if test "$wxUSE_EXPAT" != "no"; then
25563 { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&5
25564echo "$as_me: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&2;}
25565 wxUSE_EXPAT=no
25566 fi
25567 if test "$wxUSE_XML" != "no"; then
25568 { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&5
25569echo "$as_me: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&2;}
25570 wxUSE_XML=no
25571 fi
25572fi
25573
a848cd7e
SC
25574if test "$wxUSE_EXPAT" != "no"; then
25575 wxUSE_XML=yes
25576 cat >>confdefs.h <<\_ACEOF
25577#define wxUSE_EXPAT 1
25578_ACEOF
25579
25580 cat >>confdefs.h <<\_ACEOF
25581#define wxUSE_XML 1
25582_ACEOF
25583
25584
25585 if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
25586 if test "${ac_cv_header_expat_h+set}" = set; then
25587 echo "$as_me:$LINENO: checking for expat.h" >&5
25588echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
25589if test "${ac_cv_header_expat_h+set}" = set; then
25590 echo $ECHO_N "(cached) $ECHO_C" >&6
25591fi
25592echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
25593echo "${ECHO_T}$ac_cv_header_expat_h" >&6
25594else
25595 # Is the header compilable?
25596echo "$as_me:$LINENO: checking expat.h usability" >&5
25597echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
25598cat >conftest.$ac_ext <<_ACEOF
25599/* confdefs.h. */
25600_ACEOF
25601cat confdefs.h >>conftest.$ac_ext
25602cat >>conftest.$ac_ext <<_ACEOF
25603/* end confdefs.h. */
25604$ac_includes_default
25605#include <expat.h>
25606_ACEOF
25607rm -f conftest.$ac_objext
25608if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25609 (eval $ac_compile) 2>conftest.er1
a848cd7e 25610 ac_status=$?
ac1cb8d3
VS
25611 grep -v '^ *+' conftest.er1 >conftest.err
25612 rm -f conftest.er1
25613 cat conftest.err >&5
a848cd7e
SC
25614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25615 (exit $ac_status); } &&
5d7b7554 25616 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25618 (eval $ac_try) 2>&5
25619 ac_status=$?
25620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25621 (exit $ac_status); }; } &&
25622 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25624 (eval $ac_try) 2>&5
25625 ac_status=$?
25626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25627 (exit $ac_status); }; }; then
25628 ac_header_compiler=yes
25629else
25630 echo "$as_me: failed program was:" >&5
25631sed 's/^/| /' conftest.$ac_ext >&5
25632
25633ac_header_compiler=no
25634fi
ac1cb8d3 25635rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25636echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25637echo "${ECHO_T}$ac_header_compiler" >&6
25638
25639# Is the header present?
25640echo "$as_me:$LINENO: checking expat.h presence" >&5
25641echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
25642cat >conftest.$ac_ext <<_ACEOF
25643/* confdefs.h. */
25644_ACEOF
25645cat confdefs.h >>conftest.$ac_ext
25646cat >>conftest.$ac_ext <<_ACEOF
25647/* end confdefs.h. */
25648#include <expat.h>
25649_ACEOF
25650if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25651 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25652 ac_status=$?
25653 grep -v '^ *+' conftest.er1 >conftest.err
25654 rm -f conftest.er1
25655 cat conftest.err >&5
25656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25657 (exit $ac_status); } >/dev/null; then
25658 if test -s conftest.err; then
5d7b7554
VZ
25659 ac_cpp_err=$ac_cxx_preproc_warn_flag
25660 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
25661 else
25662 ac_cpp_err=
25663 fi
25664else
25665 ac_cpp_err=yes
25666fi
25667if test -z "$ac_cpp_err"; then
25668 ac_header_preproc=yes
25669else
25670 echo "$as_me: failed program was:" >&5
25671sed 's/^/| /' conftest.$ac_ext >&5
25672
25673 ac_header_preproc=no
25674fi
25675rm -f conftest.err conftest.$ac_ext
25676echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25677echo "${ECHO_T}$ac_header_preproc" >&6
25678
25679# So? What about this header?
5d7b7554 25680case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 25681 yes:no: )
a848cd7e
SC
25682 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
25683echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
25684 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
25685echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
25686 ac_header_preproc=yes
a848cd7e 25687 ;;
ac1cb8d3 25688 no:yes:* )
a848cd7e
SC
25689 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
25690echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
25691 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
25692echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
25693 { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
25694echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
25695 { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5
25696echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
25697 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
25698echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
25699 { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
25700echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
25701 (
25702 cat <<\_ASBOX
ac1cb8d3
VS
25703## ----------------------------------------- ##
25704## Report this to wx-dev@lists.wxwidgets.org ##
25705## ----------------------------------------- ##
a848cd7e
SC
25706_ASBOX
25707 ) |
25708 sed "s/^/$as_me: WARNING: /" >&2
25709 ;;
25710esac
25711echo "$as_me:$LINENO: checking for expat.h" >&5
25712echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
25713if test "${ac_cv_header_expat_h+set}" = set; then
25714 echo $ECHO_N "(cached) $ECHO_C" >&6
25715else
25716 ac_cv_header_expat_h=$ac_header_preproc
25717fi
25718echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
25719echo "${ECHO_T}$ac_cv_header_expat_h" >&6
25720
25721fi
25722if test $ac_cv_header_expat_h = yes; then
25723 found_expat_h=1
25724fi
25725
25726
25727 if test "x$found_expat_h" = "x1"; then
25728 echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
25729echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
25730if test "${wx_cv_expat_is_not_broken+set}" = set; then
25731 echo $ECHO_N "(cached) $ECHO_C" >&6
25732else
25733
a848cd7e
SC
25734 cat >conftest.$ac_ext <<_ACEOF
25735/* confdefs.h. */
25736_ACEOF
25737cat confdefs.h >>conftest.$ac_ext
25738cat >>conftest.$ac_ext <<_ACEOF
25739/* end confdefs.h. */
25740#include <expat.h>
25741int
25742main ()
25743{
25744
25745 ;
25746 return 0;
25747}
25748_ACEOF
25749rm -f conftest.$ac_objext
25750if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25751 (eval $ac_compile) 2>conftest.er1
a848cd7e 25752 ac_status=$?
ac1cb8d3
VS
25753 grep -v '^ *+' conftest.er1 >conftest.err
25754 rm -f conftest.er1
25755 cat conftest.err >&5
a848cd7e
SC
25756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25757 (exit $ac_status); } &&
5d7b7554 25758 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25760 (eval $ac_try) 2>&5
25761 ac_status=$?
25762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25763 (exit $ac_status); }; } &&
25764 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25766 (eval $ac_try) 2>&5
25767 ac_status=$?
25768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25769 (exit $ac_status); }; }; then
25770 wx_cv_expat_is_not_broken=yes
25771else
25772 echo "$as_me: failed program was:" >&5
25773sed 's/^/| /' conftest.$ac_ext >&5
25774
25775wx_cv_expat_is_not_broken=no
25776
25777fi
ac1cb8d3 25778rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25779
25780
25781fi
25782echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
25783echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
25784 if test "$wx_cv_expat_is_not_broken" = "yes" ; then
25785 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
25786echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
25787if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
25788 echo $ECHO_N "(cached) $ECHO_C" >&6
25789else
25790 ac_check_lib_save_LIBS=$LIBS
25791LIBS="-lexpat $LIBS"
25792cat >conftest.$ac_ext <<_ACEOF
25793/* confdefs.h. */
25794_ACEOF
25795cat confdefs.h >>conftest.$ac_ext
25796cat >>conftest.$ac_ext <<_ACEOF
25797/* end confdefs.h. */
25798
25799/* Override any gcc2 internal prototype to avoid an error. */
25800#ifdef __cplusplus
25801extern "C"
25802#endif
25803/* We use char because int might match the return type of a gcc2
25804 builtin and then its argument prototype would still apply. */
25805char XML_ParserCreate ();
25806int
25807main ()
25808{
25809XML_ParserCreate ();
25810 ;
25811 return 0;
25812}
25813_ACEOF
25814rm -f conftest.$ac_objext conftest$ac_exeext
25815if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25816 (eval $ac_link) 2>conftest.er1
a848cd7e 25817 ac_status=$?
ac1cb8d3
VS
25818 grep -v '^ *+' conftest.er1 >conftest.err
25819 rm -f conftest.er1
25820 cat conftest.err >&5
a848cd7e
SC
25821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25822 (exit $ac_status); } &&
5d7b7554 25823 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25825 (eval $ac_try) 2>&5
25826 ac_status=$?
25827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25828 (exit $ac_status); }; } &&
25829 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25831 (eval $ac_try) 2>&5
25832 ac_status=$?
25833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25834 (exit $ac_status); }; }; then
25835 ac_cv_lib_expat_XML_ParserCreate=yes
25836else
25837 echo "$as_me: failed program was:" >&5
25838sed 's/^/| /' conftest.$ac_ext >&5
25839
25840ac_cv_lib_expat_XML_ParserCreate=no
25841fi
ac1cb8d3
VS
25842rm -f conftest.err conftest.$ac_objext \
25843 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25844LIBS=$ac_check_lib_save_LIBS
25845fi
25846echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
25847echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
25848if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
25849 EXPAT_LINK=" -lexpat"
25850fi
25851
25852 fi
25853 fi
25854 if test "x$EXPAT_LINK" = "x" ; then
25855 if test "$wxUSE_EXPAT" = "sys" ; then
25856 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
25857echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
25858 { (exit 1); exit 1; }; }
25859 else
25860 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
25861echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
25862 wxUSE_EXPAT=builtin
25863 fi
25864 else
25865 wxUSE_EXPAT=sys
25866 fi
25867 fi
25868 if test "$wxUSE_EXPAT" = "builtin" ; then
25869
25870
25871subdirs="$subdirs src/expat"
25872
25873 fi
25874fi
25875
25876
25877
25878if test "$wxUSE_LIBMSPACK" != "no"; then
a848cd7e
SC
25879 if test "${ac_cv_header_mspack_h+set}" = set; then
25880 echo "$as_me:$LINENO: checking for mspack.h" >&5
25881echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
25882if test "${ac_cv_header_mspack_h+set}" = set; then
25883 echo $ECHO_N "(cached) $ECHO_C" >&6
25884fi
25885echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
25886echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
25887else
25888 # Is the header compilable?
25889echo "$as_me:$LINENO: checking mspack.h usability" >&5
25890echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
25891cat >conftest.$ac_ext <<_ACEOF
25892/* confdefs.h. */
25893_ACEOF
25894cat confdefs.h >>conftest.$ac_ext
25895cat >>conftest.$ac_ext <<_ACEOF
25896/* end confdefs.h. */
25897$ac_includes_default
25898#include <mspack.h>
25899_ACEOF
25900rm -f conftest.$ac_objext
25901if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25902 (eval $ac_compile) 2>conftest.er1
a848cd7e 25903 ac_status=$?
ac1cb8d3
VS
25904 grep -v '^ *+' conftest.er1 >conftest.err
25905 rm -f conftest.er1
25906 cat conftest.err >&5
a848cd7e
SC
25907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25908 (exit $ac_status); } &&
5d7b7554 25909 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25911 (eval $ac_try) 2>&5
25912 ac_status=$?
25913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25914 (exit $ac_status); }; } &&
25915 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25917 (eval $ac_try) 2>&5
25918 ac_status=$?
25919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25920 (exit $ac_status); }; }; then
25921 ac_header_compiler=yes
25922else
25923 echo "$as_me: failed program was:" >&5
25924sed 's/^/| /' conftest.$ac_ext >&5
25925
25926ac_header_compiler=no
25927fi
ac1cb8d3 25928rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25929echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25930echo "${ECHO_T}$ac_header_compiler" >&6
25931
25932# Is the header present?
25933echo "$as_me:$LINENO: checking mspack.h presence" >&5
25934echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
25935cat >conftest.$ac_ext <<_ACEOF
25936/* confdefs.h. */
25937_ACEOF
25938cat confdefs.h >>conftest.$ac_ext
25939cat >>conftest.$ac_ext <<_ACEOF
25940/* end confdefs.h. */
25941#include <mspack.h>
25942_ACEOF
25943if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25944 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25945 ac_status=$?
25946 grep -v '^ *+' conftest.er1 >conftest.err
25947 rm -f conftest.er1
25948 cat conftest.err >&5
25949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25950 (exit $ac_status); } >/dev/null; then
25951 if test -s conftest.err; then
5d7b7554
VZ
25952 ac_cpp_err=$ac_cxx_preproc_warn_flag
25953 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
25954 else
25955 ac_cpp_err=
25956 fi
25957else
25958 ac_cpp_err=yes
25959fi
25960if test -z "$ac_cpp_err"; then
25961 ac_header_preproc=yes
25962else
25963 echo "$as_me: failed program was:" >&5
25964sed 's/^/| /' conftest.$ac_ext >&5
25965
25966 ac_header_preproc=no
25967fi
25968rm -f conftest.err conftest.$ac_ext
25969echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25970echo "${ECHO_T}$ac_header_preproc" >&6
25971
25972# So? What about this header?
5d7b7554 25973case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 25974 yes:no: )
a848cd7e
SC
25975 { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
25976echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
25977 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5
25978echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;}
25979 ac_header_preproc=yes
a848cd7e 25980 ;;
ac1cb8d3 25981 no:yes:* )
a848cd7e
SC
25982 { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
25983echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
25984 { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5
25985echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;}
25986 { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5
25987echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;}
25988 { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5
25989echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
25990 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
25991echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
25992 { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5
25993echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
25994 (
25995 cat <<\_ASBOX
ac1cb8d3
VS
25996## ----------------------------------------- ##
25997## Report this to wx-dev@lists.wxwidgets.org ##
25998## ----------------------------------------- ##
a848cd7e
SC
25999_ASBOX
26000 ) |
26001 sed "s/^/$as_me: WARNING: /" >&2
26002 ;;
26003esac
26004echo "$as_me:$LINENO: checking for mspack.h" >&5
26005echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
26006if test "${ac_cv_header_mspack_h+set}" = set; then
26007 echo $ECHO_N "(cached) $ECHO_C" >&6
26008else
26009 ac_cv_header_mspack_h=$ac_header_preproc
26010fi
26011echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
26012echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
26013
26014fi
26015if test $ac_cv_header_mspack_h = yes; then
26016 found_mspack_h=1
26017fi
26018
26019
26020 if test "x$found_mspack_h" = "x1"; then
26021 echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
26022echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
26023if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
26024 echo $ECHO_N "(cached) $ECHO_C" >&6
26025else
26026 ac_check_lib_save_LIBS=$LIBS
26027LIBS="-lmspack $LIBS"
26028cat >conftest.$ac_ext <<_ACEOF
26029/* confdefs.h. */
26030_ACEOF
26031cat confdefs.h >>conftest.$ac_ext
26032cat >>conftest.$ac_ext <<_ACEOF
26033/* end confdefs.h. */
26034
26035/* Override any gcc2 internal prototype to avoid an error. */
26036#ifdef __cplusplus
26037extern "C"
26038#endif
26039/* We use char because int might match the return type of a gcc2
26040 builtin and then its argument prototype would still apply. */
26041char mspack_create_chm_decompressor ();
26042int
26043main ()
26044{
26045mspack_create_chm_decompressor ();
26046 ;
26047 return 0;
26048}
26049_ACEOF
26050rm -f conftest.$ac_objext conftest$ac_exeext
26051if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26052 (eval $ac_link) 2>conftest.er1
a848cd7e 26053 ac_status=$?
ac1cb8d3
VS
26054 grep -v '^ *+' conftest.er1 >conftest.err
26055 rm -f conftest.er1
26056 cat conftest.err >&5
a848cd7e
SC
26057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26058 (exit $ac_status); } &&
5d7b7554 26059 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26061 (eval $ac_try) 2>&5
26062 ac_status=$?
26063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26064 (exit $ac_status); }; } &&
26065 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26067 (eval $ac_try) 2>&5
26068 ac_status=$?
26069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26070 (exit $ac_status); }; }; then
26071 ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
26072else
26073 echo "$as_me: failed program was:" >&5
26074sed 's/^/| /' conftest.$ac_ext >&5
26075
26076ac_cv_lib_mspack_mspack_create_chm_decompressor=no
26077fi
ac1cb8d3
VS
26078rm -f conftest.err conftest.$ac_objext \
26079 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26080LIBS=$ac_check_lib_save_LIBS
26081fi
26082echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
26083echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
26084if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
26085 MSPACK_LINK=" -lmspack"
26086fi
26087
26088 fi
26089 if test "x$MSPACK_LINK" = "x" ; then
26090 wxUSE_LIBMSPACK=no
dd3a2d96
VZ
26091 fi
26092fi
26093
26094if test "$wxUSE_LIBMSPACK" != "no"; then
26095 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
26096#define wxUSE_LIBMSPACK 1
26097_ACEOF
26098
a848cd7e
SC
26099fi
26100
26101
26102
26103AFMINSTALL=
26104WIN32INSTALL=
26105
26106TOOLKIT=
26107TOOLKIT_INCLUDE=
26108WIDGET_SET=
26109
26110if test "$USE_WIN32" = 1 ; then
26111
26112for ac_header in w32api.h
26113do
26114as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26115if eval "test \"\${$as_ac_Header+set}\" = set"; then
26116 echo "$as_me:$LINENO: checking for $ac_header" >&5
26117echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26118if eval "test \"\${$as_ac_Header+set}\" = set"; then
26119 echo $ECHO_N "(cached) $ECHO_C" >&6
26120fi
26121echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26122echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26123else
26124 # Is the header compilable?
26125echo "$as_me:$LINENO: checking $ac_header usability" >&5
26126echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26127cat >conftest.$ac_ext <<_ACEOF
26128/* confdefs.h. */
26129_ACEOF
26130cat confdefs.h >>conftest.$ac_ext
26131cat >>conftest.$ac_ext <<_ACEOF
26132/* end confdefs.h. */
26133$ac_includes_default
26134#include <$ac_header>
26135_ACEOF
26136rm -f conftest.$ac_objext
26137if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26138 (eval $ac_compile) 2>conftest.er1
a848cd7e 26139 ac_status=$?
ac1cb8d3
VS
26140 grep -v '^ *+' conftest.er1 >conftest.err
26141 rm -f conftest.er1
26142 cat conftest.err >&5
a848cd7e
SC
26143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26144 (exit $ac_status); } &&
5d7b7554 26145 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26147 (eval $ac_try) 2>&5
26148 ac_status=$?
26149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26150 (exit $ac_status); }; } &&
26151 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26153 (eval $ac_try) 2>&5
26154 ac_status=$?
26155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26156 (exit $ac_status); }; }; then
26157 ac_header_compiler=yes
26158else
26159 echo "$as_me: failed program was:" >&5
26160sed 's/^/| /' conftest.$ac_ext >&5
26161
26162ac_header_compiler=no
26163fi
ac1cb8d3 26164rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26165echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26166echo "${ECHO_T}$ac_header_compiler" >&6
26167
26168# Is the header present?
26169echo "$as_me:$LINENO: checking $ac_header presence" >&5
26170echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26171cat >conftest.$ac_ext <<_ACEOF
26172/* confdefs.h. */
26173_ACEOF
26174cat confdefs.h >>conftest.$ac_ext
26175cat >>conftest.$ac_ext <<_ACEOF
26176/* end confdefs.h. */
26177#include <$ac_header>
26178_ACEOF
26179if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26180 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26181 ac_status=$?
26182 grep -v '^ *+' conftest.er1 >conftest.err
26183 rm -f conftest.er1
26184 cat conftest.err >&5
26185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26186 (exit $ac_status); } >/dev/null; then
26187 if test -s conftest.err; then
5d7b7554
VZ
26188 ac_cpp_err=$ac_cxx_preproc_warn_flag
26189 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
26190 else
26191 ac_cpp_err=
26192 fi
26193else
26194 ac_cpp_err=yes
26195fi
26196if test -z "$ac_cpp_err"; then
26197 ac_header_preproc=yes
26198else
26199 echo "$as_me: failed program was:" >&5
26200sed 's/^/| /' conftest.$ac_ext >&5
26201
26202 ac_header_preproc=no
26203fi
26204rm -f conftest.err conftest.$ac_ext
26205echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26206echo "${ECHO_T}$ac_header_preproc" >&6
26207
26208# So? What about this header?
5d7b7554 26209case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 26210 yes:no: )
a848cd7e
SC
26211 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26212echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
26213 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26214echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26215 ac_header_preproc=yes
a848cd7e 26216 ;;
ac1cb8d3 26217 no:yes:* )
a848cd7e
SC
26218 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26219echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
26220 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26221echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26222 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26223echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26224 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26225echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
26226 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26227echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
26228 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26229echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
26230 (
26231 cat <<\_ASBOX
ac1cb8d3
VS
26232## ----------------------------------------- ##
26233## Report this to wx-dev@lists.wxwidgets.org ##
26234## ----------------------------------------- ##
a848cd7e
SC
26235_ASBOX
26236 ) |
26237 sed "s/^/$as_me: WARNING: /" >&2
26238 ;;
26239esac
26240echo "$as_me:$LINENO: checking for $ac_header" >&5
26241echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26242if eval "test \"\${$as_ac_Header+set}\" = set"; then
26243 echo $ECHO_N "(cached) $ECHO_C" >&6
26244else
ac1cb8d3 26245 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
26246fi
26247echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26248echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26249
26250fi
26251if test `eval echo '${'$as_ac_Header'}'` = yes; then
26252 cat >>confdefs.h <<_ACEOF
26253#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26254_ACEOF
26255
26256fi
26257
26258done
26259
26260 if test "${ac_cv_header_windows_h+set}" = set; then
26261 echo "$as_me:$LINENO: checking for windows.h" >&5
26262echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
26263if test "${ac_cv_header_windows_h+set}" = set; then
26264 echo $ECHO_N "(cached) $ECHO_C" >&6
26265fi
26266echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
26267echo "${ECHO_T}$ac_cv_header_windows_h" >&6
26268else
26269 # Is the header compilable?
26270echo "$as_me:$LINENO: checking windows.h usability" >&5
26271echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
26272cat >conftest.$ac_ext <<_ACEOF
26273/* confdefs.h. */
26274_ACEOF
26275cat confdefs.h >>conftest.$ac_ext
26276cat >>conftest.$ac_ext <<_ACEOF
26277/* end confdefs.h. */
26278$ac_includes_default
26279#include <windows.h>
26280_ACEOF
26281rm -f conftest.$ac_objext
26282if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26283 (eval $ac_compile) 2>conftest.er1
a848cd7e 26284 ac_status=$?
ac1cb8d3
VS
26285 grep -v '^ *+' conftest.er1 >conftest.err
26286 rm -f conftest.er1
26287 cat conftest.err >&5
a848cd7e
SC
26288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26289 (exit $ac_status); } &&
5d7b7554 26290 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26292 (eval $ac_try) 2>&5
26293 ac_status=$?
26294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26295 (exit $ac_status); }; } &&
26296 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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 ac_header_compiler=yes
26303else
26304 echo "$as_me: failed program was:" >&5
26305sed 's/^/| /' conftest.$ac_ext >&5
26306
26307ac_header_compiler=no
26308fi
ac1cb8d3 26309rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26310echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26311echo "${ECHO_T}$ac_header_compiler" >&6
26312
26313# Is the header present?
26314echo "$as_me:$LINENO: checking windows.h presence" >&5
26315echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
26316cat >conftest.$ac_ext <<_ACEOF
26317/* confdefs.h. */
26318_ACEOF
26319cat confdefs.h >>conftest.$ac_ext
26320cat >>conftest.$ac_ext <<_ACEOF
26321/* end confdefs.h. */
26322#include <windows.h>
26323_ACEOF
26324if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26325 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26326 ac_status=$?
26327 grep -v '^ *+' conftest.er1 >conftest.err
26328 rm -f conftest.er1
26329 cat conftest.err >&5
26330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26331 (exit $ac_status); } >/dev/null; then
26332 if test -s conftest.err; then
5d7b7554
VZ
26333 ac_cpp_err=$ac_cxx_preproc_warn_flag
26334 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
26335 else
26336 ac_cpp_err=
26337 fi
26338else
26339 ac_cpp_err=yes
26340fi
26341if test -z "$ac_cpp_err"; then
26342 ac_header_preproc=yes
26343else
26344 echo "$as_me: failed program was:" >&5
26345sed 's/^/| /' conftest.$ac_ext >&5
26346
26347 ac_header_preproc=no
26348fi
26349rm -f conftest.err conftest.$ac_ext
26350echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26351echo "${ECHO_T}$ac_header_preproc" >&6
26352
26353# So? What about this header?
5d7b7554 26354case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 26355 yes:no: )
a848cd7e
SC
26356 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
26357echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
26358 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
26359echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
26360 ac_header_preproc=yes
a848cd7e 26361 ;;
ac1cb8d3 26362 no:yes:* )
a848cd7e
SC
26363 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
26364echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
26365 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
26366echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
26367 { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
26368echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
26369 { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5
26370echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
26371 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
26372echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
26373 { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
26374echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
26375 (
26376 cat <<\_ASBOX
ac1cb8d3
VS
26377## ----------------------------------------- ##
26378## Report this to wx-dev@lists.wxwidgets.org ##
26379## ----------------------------------------- ##
a848cd7e
SC
26380_ASBOX
26381 ) |
26382 sed "s/^/$as_me: WARNING: /" >&2
26383 ;;
26384esac
26385echo "$as_me:$LINENO: checking for windows.h" >&5
26386echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
26387if test "${ac_cv_header_windows_h+set}" = set; then
26388 echo $ECHO_N "(cached) $ECHO_C" >&6
26389else
26390 ac_cv_header_windows_h=$ac_header_preproc
26391fi
26392echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
26393echo "${ECHO_T}$ac_cv_header_windows_h" >&6
26394
26395fi
26396if test $ac_cv_header_windows_h = yes; then
26397 :
26398else
26399
26400 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
26401echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
26402 { (exit 1); exit 1; }; }
26403
26404fi
26405
26406
26407
26408 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
26409
26410 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
26411 LIBS="$LIBS -loleacc"
26412 fi
26413
26414 case "${host}" in
26415 *-*-cygwin* )
26416 LIBS="$LIBS -lkernel32 -luser32"
a848cd7e
SC
26417 esac
26418
26419 if test "$wxUSE_ODBC" = "sys" ; then
26420 wxUSE_ODBC = "yes"
26421 fi
26422 if test "$wxUSE_ODBC" = "yes" ; then
26423 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
26424 cat >>confdefs.h <<\_ACEOF
26425#define wxUSE_ODBC 1
26426_ACEOF
26427
26428 fi
26429
370d2fd7 26430 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
a848cd7e
SC
26431 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
26432
004ee6da 26433 WXCONFIG_RESFLAGS="--define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
370d2fd7 26434
a848cd7e
SC
26435 WIN32INSTALL=win32install
26436fi
26437
26438if test "$wxUSE_GUI" = "yes"; then
26439 USE_GUI=1
26440
26441 GUI_TK_LIBRARY=
26442
26443 WXGTK12=
26444 WXGTK127=
26445 WXGTK20=
26446 WXGPE=
26447
207bc66c
RN
26448 if test "$wxUSE_COCOA" = 1 ; then
26449 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
26450 { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
26451echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
26452 wxUSE_PRINTING_ARCHITECTURE=no
26453 fi
26454 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
26455 { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
26456echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
26457 wxUSE_DRAG_AND_DROP=no
26458 fi
26459 if test "$wxUSE_DRAGIMAGE" = "yes"; then
26460 { echo "$as_me:$LINENO: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&5
26461echo "$as_me: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&2;}
26462 wxUSE_DRAGIMAGE=no
26463 fi
26464 fi
26465
a848cd7e
SC
26466 if test "$wxUSE_MSW" = 1 ; then
26467 TOOLKIT=MSW
26468 GUIDIST=MSW_DIST
26469
ceec2216 26470 case "${host}" in
a848cd7e
SC
26471 *-*-mingw32* )
26472 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
26473 esac
26474 fi
26475
26476 if test "$wxUSE_GTK" = 1; then
5d7b7554
VZ
26477 ac_ext=c
26478ac_cpp='$CPP $CPPFLAGS'
26479ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26480ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26481ac_compiler_gnu=$ac_cv_c_compiler_gnu
26482
26483
a848cd7e
SC
26484 echo "$as_me:$LINENO: checking for GTK+ version" >&5
26485echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
26486
26487 gtk_version_cached=1
26488 if test "${wx_cv_lib_gtk+set}" = set; then
26489 echo $ECHO_N "(cached) $ECHO_C" >&6
26490else
26491
26492 gtk_version_cached=0
26493 echo "$as_me:$LINENO: result: " >&5
26494echo "${ECHO_T}" >&6
26495
26496 GTK_MODULES=
26497 if test "$wxUSE_THREADS" = "yes"; then
26498 GTK_MODULES=gthread
26499 fi
26500
f597b41c 26501 wx_cv_lib_gtk=
5001df0d
MW
26502 if test "x$wxGTK_VERSION" != "x1"
26503 then
26504 case "${host}" in
26505 *-*-solaris2* )
26506 if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
5ff751d6 26507 enable_gtktest=no
5001df0d
MW
26508 fi
26509 esac
26510
a848cd7e
SC
26511 # Check whether --enable-gtktest or --disable-gtktest was given.
26512if test "${enable_gtktest+set}" = set; then
26513 enableval="$enable_gtktest"
26514
26515else
26516 enable_gtktest=yes
26517fi;
26518
26519 pkg_config_args=gtk+-2.0
26520 for module in . $GTK_MODULES
26521 do
26522 case "$module" in
26523 gthread)
26524 pkg_config_args="$pkg_config_args gthread-2.0"
26525 ;;
26526 esac
26527 done
26528
26529 no_gtk=""
26530
26531 # Extract the first word of "pkg-config", so it can be a program name with args.
26532set dummy pkg-config; ac_word=$2
26533echo "$as_me:$LINENO: checking for $ac_word" >&5
26534echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
26535if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
26536 echo $ECHO_N "(cached) $ECHO_C" >&6
26537else
26538 case $PKG_CONFIG in
26539 [\\/]* | ?:[\\/]*)
26540 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
26541 ;;
26542 *)
26543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26544for as_dir in $PATH
26545do
26546 IFS=$as_save_IFS
26547 test -z "$as_dir" && as_dir=.
26548 for ac_exec_ext in '' $ac_executable_extensions; do
26549 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26550 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
26551 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26552 break 2
26553 fi
26554done
26555done
26556
26557 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
26558 ;;
26559esac
26560fi
26561PKG_CONFIG=$ac_cv_path_PKG_CONFIG
26562
26563if test -n "$PKG_CONFIG"; then
26564 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
26565echo "${ECHO_T}$PKG_CONFIG" >&6
26566else
26567 echo "$as_me:$LINENO: result: no" >&5
26568echo "${ECHO_T}no" >&6
26569fi
26570
26571
26572 if test x$PKG_CONFIG != xno ; then
26573 if pkg-config --atleast-pkgconfig-version 0.7 ; then
26574 :
26575 else
c2218763 26576 echo "*** pkg-config too old; version 0.7 or better required."
a848cd7e
SC
26577 no_gtk=yes
26578 PKG_CONFIG=no
26579 fi
26580 else
26581 no_gtk=yes
26582 fi
26583
26584 min_gtk_version=2.0.0
26585 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
26586echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
26587
26588 if test x$PKG_CONFIG != xno ; then
26589 ## don't try to run the test against uninstalled libtool libs
26590 if $PKG_CONFIG --uninstalled $pkg_config_args; then
26591 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
26592 enable_gtktest=no
26593 fi
26594
26595 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
26596 :
26597 else
26598 no_gtk=yes
26599 fi
26600 fi
26601
26602 if test x"$no_gtk" = x ; then
26603 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
26604 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
26605 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
26606 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
26607 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
26608 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
26609 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
26610 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
26611 if test "x$enable_gtktest" = "xyes" ; then
26612 ac_save_CFLAGS="$CFLAGS"
26613 ac_save_LIBS="$LIBS"
26614 CFLAGS="$CFLAGS $GTK_CFLAGS"
26615 LIBS="$GTK_LIBS $LIBS"
26616 rm -f conf.gtktest
26617 if test "$cross_compiling" = yes; then
26618 echo $ac_n "cross compiling; assumed OK... $ac_c"
26619else
26620 cat >conftest.$ac_ext <<_ACEOF
26621/* confdefs.h. */
26622_ACEOF
26623cat confdefs.h >>conftest.$ac_ext
26624cat >>conftest.$ac_ext <<_ACEOF
26625/* end confdefs.h. */
26626
26627#include <gtk/gtk.h>
26628#include <stdio.h>
26629#include <stdlib.h>
26630
26631int
26632main ()
26633{
26634 int major, minor, micro;
26635 char *tmp_version;
26636
26637 system ("touch conf.gtktest");
26638
26639 /* HP/UX 9 (%@#!) writes to sscanf strings */
26640 tmp_version = g_strdup("$min_gtk_version");
26641 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
26642 printf("%s, bad version string\n", "$min_gtk_version");
26643 exit(1);
26644 }
26645
26646 if ((gtk_major_version != $gtk_config_major_version) ||
26647 (gtk_minor_version != $gtk_config_minor_version) ||
26648 (gtk_micro_version != $gtk_config_micro_version))
26649 {
26650 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
26651 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
26652 gtk_major_version, gtk_minor_version, gtk_micro_version);
26653 printf ("*** was found! If pkg-config was correct, then it is best\n");
26654 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
26655 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
26656 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
26657 printf("*** required on your system.\n");
26658 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
26659 printf("*** to point to the correct configuration files\n");
26660 }
26661 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
26662 (gtk_minor_version != GTK_MINOR_VERSION) ||
26663 (gtk_micro_version != GTK_MICRO_VERSION))
26664 {
26665 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
26666 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
26667 printf("*** library (version %d.%d.%d)\n",
26668 gtk_major_version, gtk_minor_version, gtk_micro_version);
26669 }
26670 else
26671 {
26672 if ((gtk_major_version > major) ||
26673 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
26674 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
26675 {
26676 return 0;
26677 }
26678 else
26679 {
26680 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
26681 gtk_major_version, gtk_minor_version, gtk_micro_version);
26682 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
26683 major, minor, micro);
26684 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
26685 printf("***\n");
26686 printf("*** If you have already installed a sufficiently new version, this error\n");
26687 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
26688 printf("*** being found. The easiest way to fix this is to remove the old version\n");
26689 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
26690 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
26691 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
26692 printf("*** so that the correct libraries are found at run-time))\n");
26693 }
26694 }
26695 return 1;
26696}
26697
26698_ACEOF
26699rm -f conftest$ac_exeext
26700if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26701 (eval $ac_link) 2>&5
26702 ac_status=$?
26703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26704 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26706 (eval $ac_try) 2>&5
26707 ac_status=$?
26708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26709 (exit $ac_status); }; }; then
26710 :
26711else
26712 echo "$as_me: program exited with status $ac_status" >&5
26713echo "$as_me: failed program was:" >&5
26714sed 's/^/| /' conftest.$ac_ext >&5
26715
26716( exit $ac_status )
26717no_gtk=yes
26718fi
ac1cb8d3 26719rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26720fi
26721 CFLAGS="$ac_save_CFLAGS"
26722 LIBS="$ac_save_LIBS"
26723 fi
26724 fi
26725 if test "x$no_gtk" = x ; then
26726 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
26727echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
26728 wx_cv_lib_gtk=2.0
26729 else
26730 echo "$as_me:$LINENO: result: no" >&5
26731echo "${ECHO_T}no" >&6
26732 if test "$PKG_CONFIG" = "no" ; then
26733 echo "*** A new enough version of pkg-config was not found."
26734 echo "*** See http://pkgconfig.sourceforge.net"
26735 else
26736 if test -f conf.gtktest ; then
26737 :
26738 else
26739 echo "*** Could not run GTK+ test program, checking why..."
26740 ac_save_CFLAGS="$CFLAGS"
26741 ac_save_LIBS="$LIBS"
26742 CFLAGS="$CFLAGS $GTK_CFLAGS"
26743 LIBS="$LIBS $GTK_LIBS"
26744 cat >conftest.$ac_ext <<_ACEOF
26745/* confdefs.h. */
26746_ACEOF
26747cat confdefs.h >>conftest.$ac_ext
26748cat >>conftest.$ac_ext <<_ACEOF
26749/* end confdefs.h. */
26750
26751#include <gtk/gtk.h>
26752#include <stdio.h>
26753
26754int
26755main ()
26756{
26757 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
26758 ;
26759 return 0;
26760}
26761_ACEOF
26762rm -f conftest.$ac_objext conftest$ac_exeext
26763if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26764 (eval $ac_link) 2>conftest.er1
a848cd7e 26765 ac_status=$?
ac1cb8d3
VS
26766 grep -v '^ *+' conftest.er1 >conftest.err
26767 rm -f conftest.er1
26768 cat conftest.err >&5
a848cd7e
SC
26769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26770 (exit $ac_status); } &&
5d7b7554 26771 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26773 (eval $ac_try) 2>&5
26774 ac_status=$?
26775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26776 (exit $ac_status); }; } &&
26777 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26779 (eval $ac_try) 2>&5
26780 ac_status=$?
26781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26782 (exit $ac_status); }; }; then
26783 echo "*** The test program compiled, but did not run. This usually means"
26784 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
26785 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
26786 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
26787 echo "*** to the installed location Also, make sure you have run ldconfig if that"
26788 echo "*** is required on your system"
26789 echo "***"
26790 echo "*** If you have an old version installed, it is best to remove it, although"
26791 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
26792else
26793 echo "$as_me: failed program was:" >&5
26794sed 's/^/| /' conftest.$ac_ext >&5
26795
26796 echo "*** The test program failed to compile or link. See the file config.log for the"
26797 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
26798fi
ac1cb8d3
VS
26799rm -f conftest.err conftest.$ac_objext \
26800 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26801 CFLAGS="$ac_save_CFLAGS"
26802 LIBS="$ac_save_LIBS"
26803 fi
26804 fi
26805 GTK_CFLAGS=""
26806 GTK_LIBS=""
26807 :
26808 fi
26809
26810
26811 rm -f conf.gtktest
26812
5001df0d
MW
26813
26814 case "${host}" in
26815 *-*-solaris2* )
26816 if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
26817 GTK_CFLAGS=`echo $GTK_CFLAGS | sed 's/-mt//'`
26818 GTK_LIBS=`echo $GTK_LIBS | sed 's/-mt//'`
26819 fi
26820 if test "$wxUSE_SHARED" != "yes"; then
26821 GTK_LIBS="$GTK_LIBS -lX11"
26822 fi
26823 esac
f597b41c
MW
26824 fi
26825
f34ca037
MW
26826 if test -z "$wx_cv_lib_gtk"; then
26827 if test "x$wxGTK_VERSION" = "x1" -o "x$wxGTK_VERSION" = "xany" ; then
a848cd7e
SC
26828
26829# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
26830if test "${with_gtk_prefix+set}" = set; then
26831 withval="$with_gtk_prefix"
26832 gtk_config_prefix="$withval"
26833else
26834 gtk_config_prefix=""
26835fi;
26836
26837# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
26838if test "${with_gtk_exec_prefix+set}" = set; then
26839 withval="$with_gtk_exec_prefix"
26840 gtk_config_exec_prefix="$withval"
26841else
26842 gtk_config_exec_prefix=""
26843fi;
26844# Check whether --enable-gtktest or --disable-gtktest was given.
26845if test "${enable_gtktest+set}" = set; then
26846 enableval="$enable_gtktest"
26847
26848else
26849 enable_gtktest=yes
26850fi;
26851
26852 for module in . $GTK_MODULES
26853 do
26854 case "$module" in
26855 gthread)
26856 gtk_config_args="$gtk_config_args gthread"
26857 ;;
26858 esac
26859 done
26860
26861 if test x$gtk_config_exec_prefix != x ; then
26862 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
26863 if test x${GTK_CONFIG+set} != xset ; then
26864 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
26865 fi
26866 fi
26867 if test x$gtk_config_prefix != x ; then
26868 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
26869 if test x${GTK_CONFIG+set} != xset ; then
26870 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
26871 fi
26872 fi
26873
26874 # Extract the first word of "gtk-config", so it can be a program name with args.
26875set dummy gtk-config; ac_word=$2
26876echo "$as_me:$LINENO: checking for $ac_word" >&5
26877echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
26878if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
26879 echo $ECHO_N "(cached) $ECHO_C" >&6
26880else
26881 case $GTK_CONFIG in
26882 [\\/]* | ?:[\\/]*)
26883 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
26884 ;;
26885 *)
26886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26887for as_dir in $PATH
26888do
26889 IFS=$as_save_IFS
26890 test -z "$as_dir" && as_dir=.
26891 for ac_exec_ext in '' $ac_executable_extensions; do
26892 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26893 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
26894 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26895 break 2
26896 fi
26897done
26898done
26899
26900 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
26901 ;;
26902esac
26903fi
26904GTK_CONFIG=$ac_cv_path_GTK_CONFIG
26905
26906if test -n "$GTK_CONFIG"; then
26907 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
26908echo "${ECHO_T}$GTK_CONFIG" >&6
26909else
26910 echo "$as_me:$LINENO: result: no" >&5
26911echo "${ECHO_T}no" >&6
26912fi
26913
26914 min_gtk_version=1.2.7
26915 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
26916echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
26917 no_gtk=""
26918 if test "$GTK_CONFIG" = "no" ; then
26919 no_gtk=yes
26920 else
26921 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
26922 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
26923 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
26924 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
26925 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
26926 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
26927 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
26928 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
26929 if test "x$enable_gtktest" = "xyes" ; then
26930 ac_save_CFLAGS="$CFLAGS"
26931 ac_save_LIBS="$LIBS"
26932 CFLAGS="$CFLAGS $GTK_CFLAGS"
26933 LIBS="$GTK_LIBS $LIBS"
26934 rm -f conf.gtktest
26935 if test "$cross_compiling" = yes; then
26936 echo $ac_n "cross compiling; assumed OK... $ac_c"
26937else
26938 cat >conftest.$ac_ext <<_ACEOF
26939/* confdefs.h. */
26940_ACEOF
26941cat confdefs.h >>conftest.$ac_ext
26942cat >>conftest.$ac_ext <<_ACEOF
26943/* end confdefs.h. */
26944
26945#include <gtk/gtk.h>
26946#include <stdio.h>
26947#include <stdlib.h>
26948
26949int
26950main ()
26951{
26952 int major, minor, micro;
26953 char *tmp_version;
26954
26955 system ("touch conf.gtktest");
26956
26957 /* HP/UX 9 (%@#!) writes to sscanf strings */
26958 tmp_version = g_strdup("$min_gtk_version");
26959 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
26960 printf("%s, bad version string\n", "$min_gtk_version");
26961 exit(1);
26962 }
26963
26964 if ((gtk_major_version != $gtk_config_major_version) ||
26965 (gtk_minor_version != $gtk_config_minor_version) ||
26966 (gtk_micro_version != $gtk_config_micro_version))
26967 {
26968 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
26969 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
26970 gtk_major_version, gtk_minor_version, gtk_micro_version);
26971 printf ("*** was found! If gtk-config was correct, then it is best\n");
26972 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
26973 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
26974 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
26975 printf("*** required on your system.\n");
26976 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
26977 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
26978 printf("*** before re-running configure\n");
26979 }
26980#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
26981 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
26982 (gtk_minor_version != GTK_MINOR_VERSION) ||
26983 (gtk_micro_version != GTK_MICRO_VERSION))
26984 {
26985 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
26986 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
26987 printf("*** library (version %d.%d.%d)\n",
26988 gtk_major_version, gtk_minor_version, gtk_micro_version);
26989 }
26990#endif /* defined (GTK_MAJOR_VERSION) ... */
26991 else
26992 {
26993 if ((gtk_major_version > major) ||
26994 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
26995 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
26996 {
26997 return 0;
26998 }
26999 else
27000 {
27001 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
27002 gtk_major_version, gtk_minor_version, gtk_micro_version);
27003 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
27004 major, minor, micro);
27005 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
27006 printf("***\n");
27007 printf("*** If you have already installed a sufficiently new version, this error\n");
27008 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
27009 printf("*** being found. The easiest way to fix this is to remove the old version\n");
27010 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
27011 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
27012 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
27013 printf("*** so that the correct libraries are found at run-time))\n");
27014 }
27015 }
27016 return 1;
27017}
27018
27019_ACEOF
27020rm -f conftest$ac_exeext
27021if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27022 (eval $ac_link) 2>&5
27023 ac_status=$?
27024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27025 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27027 (eval $ac_try) 2>&5
27028 ac_status=$?
27029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27030 (exit $ac_status); }; }; then
27031 :
27032else
27033 echo "$as_me: program exited with status $ac_status" >&5
27034echo "$as_me: failed program was:" >&5
27035sed 's/^/| /' conftest.$ac_ext >&5
27036
27037( exit $ac_status )
27038no_gtk=yes
27039fi
ac1cb8d3 27040rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27041fi
27042 CFLAGS="$ac_save_CFLAGS"
27043 LIBS="$ac_save_LIBS"
27044 fi
27045 fi
27046 if test "x$no_gtk" = x ; then
27047 echo "$as_me:$LINENO: result: yes" >&5
27048echo "${ECHO_T}yes" >&6
27049 wx_cv_lib_gtk=1.2.7
27050 else
27051 echo "$as_me:$LINENO: result: no" >&5
27052echo "${ECHO_T}no" >&6
27053 if test "$GTK_CONFIG" = "no" ; then
27054 echo "*** The gtk-config script installed by GTK could not be found"
27055 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
27056 echo "*** your path, or set the GTK_CONFIG environment variable to the"
27057 echo "*** full path to gtk-config."
27058 else
27059 if test -f conf.gtktest ; then
27060 :
27061 else
27062 echo "*** Could not run GTK test program, checking why..."
27063 CFLAGS="$CFLAGS $GTK_CFLAGS"
27064 LIBS="$LIBS $GTK_LIBS"
27065 cat >conftest.$ac_ext <<_ACEOF
27066/* confdefs.h. */
27067_ACEOF
27068cat confdefs.h >>conftest.$ac_ext
27069cat >>conftest.$ac_ext <<_ACEOF
27070/* end confdefs.h. */
27071
27072#include <gtk/gtk.h>
27073#include <stdio.h>
27074
27075int
27076main ()
27077{
27078 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
27079 ;
27080 return 0;
27081}
27082_ACEOF
27083rm -f conftest.$ac_objext conftest$ac_exeext
27084if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27085 (eval $ac_link) 2>conftest.er1
a848cd7e 27086 ac_status=$?
ac1cb8d3
VS
27087 grep -v '^ *+' conftest.er1 >conftest.err
27088 rm -f conftest.er1
27089 cat conftest.err >&5
a848cd7e
SC
27090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27091 (exit $ac_status); } &&
5d7b7554 27092 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27094 (eval $ac_try) 2>&5
27095 ac_status=$?
27096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27097 (exit $ac_status); }; } &&
27098 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27100 (eval $ac_try) 2>&5
27101 ac_status=$?
27102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27103 (exit $ac_status); }; }; then
27104 echo "*** The test program compiled, but did not run. This usually means"
27105 echo "*** that the run-time linker is not finding GTK or finding the wrong"
27106 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
27107 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
27108 echo "*** to the installed location Also, make sure you have run ldconfig if that"
27109 echo "*** is required on your system"
27110 echo "***"
27111 echo "*** If you have an old version installed, it is best to remove it, although"
27112 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
27113 echo "***"
27114 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
27115 echo "*** came with the system with the command"
27116 echo "***"
27117 echo "*** rpm --erase --nodeps gtk gtk-devel"
27118else
27119 echo "$as_me: failed program was:" >&5
27120sed 's/^/| /' conftest.$ac_ext >&5
27121
27122 echo "*** The test program failed to compile or link. See the file config.log for the"
27123 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
27124 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
27125 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
27126fi
ac1cb8d3
VS
27127rm -f conftest.err conftest.$ac_objext \
27128 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27129 CFLAGS="$ac_save_CFLAGS"
27130 LIBS="$ac_save_LIBS"
27131 fi
27132 fi
27133 GTK_CFLAGS=""
27134 GTK_LIBS=""
27135 :
27136 fi
27137
27138
27139 rm -f conf.gtktest
27140
27141
f34ca037 27142 if test -z "$wx_cv_lib_gtk"; then
a848cd7e
SC
27143
27144# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
27145if test "${with_gtk_prefix+set}" = set; then
27146 withval="$with_gtk_prefix"
27147 gtk_config_prefix="$withval"
27148else
27149 gtk_config_prefix=""
27150fi;
27151
27152# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
27153if test "${with_gtk_exec_prefix+set}" = set; then
27154 withval="$with_gtk_exec_prefix"
27155 gtk_config_exec_prefix="$withval"
27156else
27157 gtk_config_exec_prefix=""
27158fi;
27159# Check whether --enable-gtktest or --disable-gtktest was given.
27160if test "${enable_gtktest+set}" = set; then
27161 enableval="$enable_gtktest"
27162
27163else
27164 enable_gtktest=yes
27165fi;
27166
27167 for module in . $GTK_MODULES
27168 do
27169 case "$module" in
27170 gthread)
27171 gtk_config_args="$gtk_config_args gthread"
27172 ;;
27173 esac
27174 done
27175
27176 if test x$gtk_config_exec_prefix != x ; then
27177 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
27178 if test x${GTK_CONFIG+set} != xset ; then
27179 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
27180 fi
27181 fi
27182 if test x$gtk_config_prefix != x ; then
27183 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
27184 if test x${GTK_CONFIG+set} != xset ; then
27185 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
27186 fi
27187 fi
27188
27189 # Extract the first word of "gtk-config", so it can be a program name with args.
27190set dummy gtk-config; ac_word=$2
27191echo "$as_me:$LINENO: checking for $ac_word" >&5
27192echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27193if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
27194 echo $ECHO_N "(cached) $ECHO_C" >&6
27195else
27196 case $GTK_CONFIG in
27197 [\\/]* | ?:[\\/]*)
27198 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
27199 ;;
27200 *)
27201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27202for as_dir in $PATH
27203do
27204 IFS=$as_save_IFS
27205 test -z "$as_dir" && as_dir=.
27206 for ac_exec_ext in '' $ac_executable_extensions; do
27207 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27208 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27209 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27210 break 2
27211 fi
27212done
27213done
27214
27215 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
27216 ;;
27217esac
27218fi
27219GTK_CONFIG=$ac_cv_path_GTK_CONFIG
27220
27221if test -n "$GTK_CONFIG"; then
27222 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
27223echo "${ECHO_T}$GTK_CONFIG" >&6
27224else
27225 echo "$as_me:$LINENO: result: no" >&5
27226echo "${ECHO_T}no" >&6
27227fi
27228
27229 min_gtk_version=1.2.3
27230 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
27231echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
27232 no_gtk=""
27233 if test "$GTK_CONFIG" = "no" ; then
27234 no_gtk=yes
27235 else
27236 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
27237 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
27238 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
27239 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
27240 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
27241 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
27242 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
27243 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
27244 if test "x$enable_gtktest" = "xyes" ; then
27245 ac_save_CFLAGS="$CFLAGS"
27246 ac_save_LIBS="$LIBS"
27247 CFLAGS="$CFLAGS $GTK_CFLAGS"
27248 LIBS="$GTK_LIBS $LIBS"
27249 rm -f conf.gtktest
27250 if test "$cross_compiling" = yes; then
27251 echo $ac_n "cross compiling; assumed OK... $ac_c"
27252else
27253 cat >conftest.$ac_ext <<_ACEOF
27254/* confdefs.h. */
27255_ACEOF
27256cat confdefs.h >>conftest.$ac_ext
27257cat >>conftest.$ac_ext <<_ACEOF
27258/* end confdefs.h. */
27259
27260#include <gtk/gtk.h>
27261#include <stdio.h>
27262#include <stdlib.h>
27263
27264int
27265main ()
27266{
27267 int major, minor, micro;
27268 char *tmp_version;
27269
27270 system ("touch conf.gtktest");
27271
27272 /* HP/UX 9 (%@#!) writes to sscanf strings */
27273 tmp_version = g_strdup("$min_gtk_version");
27274 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
27275 printf("%s, bad version string\n", "$min_gtk_version");
27276 exit(1);
27277 }
27278
27279 if ((gtk_major_version != $gtk_config_major_version) ||
27280 (gtk_minor_version != $gtk_config_minor_version) ||
27281 (gtk_micro_version != $gtk_config_micro_version))
27282 {
27283 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
27284 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
27285 gtk_major_version, gtk_minor_version, gtk_micro_version);
27286 printf ("*** was found! If gtk-config was correct, then it is best\n");
27287 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
27288 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
27289 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
27290 printf("*** required on your system.\n");
27291 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
27292 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
27293 printf("*** before re-running configure\n");
27294 }
27295#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
27296 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
27297 (gtk_minor_version != GTK_MINOR_VERSION) ||
27298 (gtk_micro_version != GTK_MICRO_VERSION))
27299 {
27300 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
27301 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
27302 printf("*** library (version %d.%d.%d)\n",
27303 gtk_major_version, gtk_minor_version, gtk_micro_version);
27304 }
27305#endif /* defined (GTK_MAJOR_VERSION) ... */
27306 else
27307 {
27308 if ((gtk_major_version > major) ||
27309 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
27310 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
27311 {
27312 return 0;
27313 }
27314 else
27315 {
27316 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
27317 gtk_major_version, gtk_minor_version, gtk_micro_version);
27318 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
27319 major, minor, micro);
27320 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
27321 printf("***\n");
27322 printf("*** If you have already installed a sufficiently new version, this error\n");
27323 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
27324 printf("*** being found. The easiest way to fix this is to remove the old version\n");
27325 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
27326 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
27327 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
27328 printf("*** so that the correct libraries are found at run-time))\n");
27329 }
27330 }
27331 return 1;
27332}
27333
27334_ACEOF
27335rm -f conftest$ac_exeext
27336if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27337 (eval $ac_link) 2>&5
27338 ac_status=$?
27339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27340 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27342 (eval $ac_try) 2>&5
27343 ac_status=$?
27344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27345 (exit $ac_status); }; }; then
27346 :
27347else
27348 echo "$as_me: program exited with status $ac_status" >&5
27349echo "$as_me: failed program was:" >&5
27350sed 's/^/| /' conftest.$ac_ext >&5
27351
27352( exit $ac_status )
27353no_gtk=yes
27354fi
ac1cb8d3 27355rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27356fi
27357 CFLAGS="$ac_save_CFLAGS"
27358 LIBS="$ac_save_LIBS"
27359 fi
27360 fi
27361 if test "x$no_gtk" = x ; then
27362 echo "$as_me:$LINENO: result: yes" >&5
27363echo "${ECHO_T}yes" >&6
27364 wx_cv_lib_gtk=1.2.3
27365 else
27366 echo "$as_me:$LINENO: result: no" >&5
27367echo "${ECHO_T}no" >&6
27368 if test "$GTK_CONFIG" = "no" ; then
27369 echo "*** The gtk-config script installed by GTK could not be found"
27370 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
27371 echo "*** your path, or set the GTK_CONFIG environment variable to the"
27372 echo "*** full path to gtk-config."
27373 else
27374 if test -f conf.gtktest ; then
27375 :
27376 else
27377 echo "*** Could not run GTK test program, checking why..."
27378 CFLAGS="$CFLAGS $GTK_CFLAGS"
27379 LIBS="$LIBS $GTK_LIBS"
27380 cat >conftest.$ac_ext <<_ACEOF
27381/* confdefs.h. */
27382_ACEOF
27383cat confdefs.h >>conftest.$ac_ext
27384cat >>conftest.$ac_ext <<_ACEOF
27385/* end confdefs.h. */
27386
27387#include <gtk/gtk.h>
27388#include <stdio.h>
27389
27390int
27391main ()
27392{
27393 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
27394 ;
27395 return 0;
27396}
27397_ACEOF
27398rm -f conftest.$ac_objext conftest$ac_exeext
27399if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27400 (eval $ac_link) 2>conftest.er1
a848cd7e 27401 ac_status=$?
ac1cb8d3
VS
27402 grep -v '^ *+' conftest.er1 >conftest.err
27403 rm -f conftest.er1
27404 cat conftest.err >&5
a848cd7e
SC
27405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27406 (exit $ac_status); } &&
5d7b7554 27407 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27409 (eval $ac_try) 2>&5
27410 ac_status=$?
27411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27412 (exit $ac_status); }; } &&
27413 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27415 (eval $ac_try) 2>&5
27416 ac_status=$?
27417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27418 (exit $ac_status); }; }; then
27419 echo "*** The test program compiled, but did not run. This usually means"
27420 echo "*** that the run-time linker is not finding GTK or finding the wrong"
27421 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
27422 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
27423 echo "*** to the installed location Also, make sure you have run ldconfig if that"
27424 echo "*** is required on your system"
27425 echo "***"
27426 echo "*** If you have an old version installed, it is best to remove it, although"
27427 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
27428 echo "***"
27429 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
27430 echo "*** came with the system with the command"
27431 echo "***"
27432 echo "*** rpm --erase --nodeps gtk gtk-devel"
27433else
27434 echo "$as_me: failed program was:" >&5
27435sed 's/^/| /' conftest.$ac_ext >&5
27436
27437 echo "*** The test program failed to compile or link. See the file config.log for the"
27438 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
27439 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
27440 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
27441fi
ac1cb8d3
VS
27442rm -f conftest.err conftest.$ac_objext \
27443 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27444 CFLAGS="$ac_save_CFLAGS"
27445 LIBS="$ac_save_LIBS"
27446 fi
27447 fi
27448 GTK_CFLAGS=""
27449 GTK_LIBS=""
27450 :
27451 fi
27452
27453
27454 rm -f conf.gtktest
27455
f34ca037 27456 fi
a848cd7e
SC
27457 fi
27458 fi
27459
27460 if test -z "$wx_cv_lib_gtk"; then
27461 wx_cv_lib_gtk=none
27462 else
27463 wx_cv_cflags_gtk=$GTK_CFLAGS
d2822091 27464 wx_cv_libs_gtk=`echo $GTK_LIBS | sed -e 's/ -l[^ ]*cairo[^ ]*//g'`
a848cd7e
SC
27465 fi
27466
27467
27468fi
27469
27470
27471 if test "$gtk_version_cached" = 1; then
27472 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
27473echo "${ECHO_T}$wx_cv_lib_gtk" >&6
27474 fi
27475
27476 case "$wx_cv_lib_gtk" in
27477 2.0) WXGTK20=1
27478 TOOLKIT_VERSION=2
27479 ;;
27480 1.2.7) WXGTK127=1
27481 WXGTK12=1
27482 ;;
27483 1.2.3) WXGTK12=1
27484 ;;
27485 *) { { echo "$as_me:$LINENO: error:
f597b41c
MW
27486The development files for GTK+ were not found. For GTK+ 2, please
27487ensure that pkg-config is in the path and that gtk+-2.0.pc is
27488installed. For GTK+ 1.2 please check that gtk-config is in the path,
27489and that the version is 1.2.3 or above. Also check that the
27490libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
27491--libs' are in the LD_LIBRARY_PATH or equivalent.
a848cd7e
SC
27492 " >&5
27493echo "$as_me: error:
f597b41c
MW
27494The development files for GTK+ were not found. For GTK+ 2, please
27495ensure that pkg-config is in the path and that gtk+-2.0.pc is
27496installed. For GTK+ 1.2 please check that gtk-config is in the path,
27497and that the version is 1.2.3 or above. Also check that the
27498libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
27499--libs' are in the LD_LIBRARY_PATH or equivalent.
a848cd7e
SC
27500 " >&2;}
27501 { (exit 1); exit 1; }; }
27502 ;;
27503 esac
27504
27505 if test "$WXGTK20" = 1; then
e56f4f9e 27506 save_CXXFLAGS="$CFLAGS"
304205f1 27507 save_LIBS="$LIBS"
c92ad099 27508 CFLAGS="$wx_cv_cflags_gtk $CFLAGS"
abc736fd 27509 LIBS="$LIBS $wx_cv_libs_gtk"
304205f1 27510
d12aef51
VZ
27511 echo "$as_me:$LINENO: checking if gtk_icon_size_lookup is missing" >&5
27512echo $ECHO_N "checking if gtk_icon_size_lookup is missing... $ECHO_C" >&6
27513 cat >conftest.$ac_ext <<_ACEOF
304205f1
VS
27514/* confdefs.h. */
27515_ACEOF
27516cat confdefs.h >>conftest.$ac_ext
27517cat >>conftest.$ac_ext <<_ACEOF
27518/* end confdefs.h. */
304205f1 27519
d12aef51 27520 #include <gtk/gtk.h>
304205f1 27521
d12aef51
VZ
27522int
27523main ()
27524{
304205f1 27525
d12aef51 27526 void *f = gtk_icon_size_lookup;
abc736fd
MW
27527
27528 ;
27529 return 0;
27530}
27531_ACEOF
27532rm -f conftest.$ac_objext
27533if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27534 (eval $ac_compile) 2>conftest.er1
27535 ac_status=$?
27536 grep -v '^ *+' conftest.er1 >conftest.err
27537 rm -f conftest.er1
27538 cat conftest.err >&5
27539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27540 (exit $ac_status); } &&
e56f4f9e 27541 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
abc736fd
MW
27542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27543 (eval $ac_try) 2>&5
27544 ac_status=$?
27545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27546 (exit $ac_status); }; } &&
27547 { ac_try='test -s conftest.$ac_objext'
27548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27549 (eval $ac_try) 2>&5
27550 ac_status=$?
27551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27552 (exit $ac_status); }; }; then
27553
27554 echo "$as_me:$LINENO: result: no" >&5
27555echo "${ECHO_T}no" >&6
27556
27557else
27558 echo "$as_me: failed program was:" >&5
27559sed 's/^/| /' conftest.$ac_ext >&5
27560
27561
27562 cat >>confdefs.h <<\_ACEOF
27563#define NEED_GTK_ICON_SIZE_LOOKUP 1
27564_ACEOF
27565
27566 echo "$as_me:$LINENO: result: yes" >&5
27567echo "${ECHO_T}yes" >&6
27568
27569fi
27570rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27571
9755e73b
VS
27572 echo "$as_me:$LINENO: checking if GTK+ is version >= 2.4" >&5
27573echo $ECHO_N "checking if GTK+ is version >= 2.4... $ECHO_C" >&6
27574 cat >conftest.$ac_ext <<_ACEOF
27575/* confdefs.h. */
27576_ACEOF
27577cat confdefs.h >>conftest.$ac_ext
27578cat >>conftest.$ac_ext <<_ACEOF
27579/* end confdefs.h. */
27580
27581 #include <gtk/gtk.h>
27582
27583int
27584main ()
27585{
27586
27587 #if !GTK_CHECK_VERSION(2,4,0)
04e525a0 27588 Not GTK+ 2.4
9755e73b
VS
27589 #endif
27590
27591 ;
27592 return 0;
27593}
27594_ACEOF
27595rm -f conftest.$ac_objext
27596if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27597 (eval $ac_compile) 2>conftest.er1
27598 ac_status=$?
27599 grep -v '^ *+' conftest.er1 >conftest.err
27600 rm -f conftest.er1
27601 cat conftest.err >&5
27602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27603 (exit $ac_status); } &&
e56f4f9e 27604 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9755e73b
VS
27605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27606 (eval $ac_try) 2>&5
27607 ac_status=$?
27608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27609 (exit $ac_status); }; } &&
27610 { ac_try='test -s conftest.$ac_objext'
27611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27612 (eval $ac_try) 2>&5
27613 ac_status=$?
27614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27615 (exit $ac_status); }; }; then
27616
27617 cat >>confdefs.h <<\_ACEOF
27618#define __WXGTK24__ 1
27619_ACEOF
27620
27621 echo "$as_me:$LINENO: result: yes" >&5
27622echo "${ECHO_T}yes" >&6
27623
27624else
27625 echo "$as_me: failed program was:" >&5
27626sed 's/^/| /' conftest.$ac_ext >&5
27627
27628
27629 echo "$as_me:$LINENO: result: no" >&5
27630echo "${ECHO_T}no" >&6
27631
27632fi
27633rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27634
304205f1
VS
27635 CFLAGS="$save_CFLAGS"
27636 LIBS="$save_LIBS"
a848cd7e
SC
27637 else
27638 if test "$wxUSE_UNICODE" = "yes"; then
27639 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
27640echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
27641 wxUSE_UNICODE=no
27642 fi
27643 fi
27644
e56f4f9e
VZ
27645 ac_ext=cc
27646ac_cpp='$CXXCPP $CPPFLAGS'
27647ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27648ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27649ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27650
27651
a848cd7e
SC
27652 if test "$USE_DARWIN" != 1; then
27653
27654for ac_func in poll
27655do
27656as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27657echo "$as_me:$LINENO: checking for $ac_func" >&5
27658echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27659if eval "test \"\${$as_ac_var+set}\" = set"; then
27660 echo $ECHO_N "(cached) $ECHO_C" >&6
27661else
27662 cat >conftest.$ac_ext <<_ACEOF
27663/* confdefs.h. */
27664_ACEOF
27665cat confdefs.h >>conftest.$ac_ext
27666cat >>conftest.$ac_ext <<_ACEOF
27667/* end confdefs.h. */
ac1cb8d3
VS
27668/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27669 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27670#define $ac_func innocuous_$ac_func
27671
a848cd7e
SC
27672/* System header to define __stub macros and hopefully few prototypes,
27673 which can conflict with char $ac_func (); below.
27674 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27675 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 27676
a848cd7e
SC
27677#ifdef __STDC__
27678# include <limits.h>
27679#else
27680# include <assert.h>
27681#endif
ac1cb8d3
VS
27682
27683#undef $ac_func
27684
a848cd7e
SC
27685/* Override any gcc2 internal prototype to avoid an error. */
27686#ifdef __cplusplus
27687extern "C"
27688{
27689#endif
27690/* We use char because int might match the return type of a gcc2
27691 builtin and then its argument prototype would still apply. */
27692char $ac_func ();
27693/* The GNU C library defines this for functions which it implements
27694 to always fail with ENOSYS. Some functions are actually named
27695 something starting with __ and the normal name is an alias. */
27696#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27697choke me
27698#else
27699char (*f) () = $ac_func;
27700#endif
27701#ifdef __cplusplus
27702}
27703#endif
27704
27705int
27706main ()
27707{
27708return f != $ac_func;
27709 ;
27710 return 0;
27711}
27712_ACEOF
27713rm -f conftest.$ac_objext conftest$ac_exeext
27714if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27715 (eval $ac_link) 2>conftest.er1
a848cd7e 27716 ac_status=$?
ac1cb8d3
VS
27717 grep -v '^ *+' conftest.er1 >conftest.err
27718 rm -f conftest.er1
27719 cat conftest.err >&5
a848cd7e
SC
27720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27721 (exit $ac_status); } &&
5d7b7554 27722 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27724 (eval $ac_try) 2>&5
27725 ac_status=$?
27726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27727 (exit $ac_status); }; } &&
27728 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27730 (eval $ac_try) 2>&5
27731 ac_status=$?
27732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27733 (exit $ac_status); }; }; then
27734 eval "$as_ac_var=yes"
27735else
27736 echo "$as_me: failed program was:" >&5
27737sed 's/^/| /' conftest.$ac_ext >&5
27738
27739eval "$as_ac_var=no"
27740fi
ac1cb8d3
VS
27741rm -f conftest.err conftest.$ac_objext \
27742 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27743fi
27744echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27745echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27746if test `eval echo '${'$as_ac_var'}'` = yes; then
27747 cat >>confdefs.h <<_ACEOF
27748#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27749_ACEOF
27750
27751fi
27752done
27753
27754 fi
27755
27756 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
27757 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
27758
27759 AFMINSTALL=afminstall
27760 TOOLKIT=GTK
27761 GUIDIST=GTK_DIST
27762
27763 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
27764echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
27765if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
27766 echo $ECHO_N "(cached) $ECHO_C" >&6
27767else
27768 ac_check_lib_save_LIBS=$LIBS
27769LIBS="-lgdk $LIBS"
27770cat >conftest.$ac_ext <<_ACEOF
27771/* confdefs.h. */
27772_ACEOF
27773cat confdefs.h >>conftest.$ac_ext
27774cat >>conftest.$ac_ext <<_ACEOF
27775/* end confdefs.h. */
27776
27777/* Override any gcc2 internal prototype to avoid an error. */
27778#ifdef __cplusplus
27779extern "C"
27780#endif
27781/* We use char because int might match the return type of a gcc2
27782 builtin and then its argument prototype would still apply. */
27783char gdk_im_open ();
27784int
27785main ()
27786{
27787gdk_im_open ();
27788 ;
27789 return 0;
27790}
27791_ACEOF
27792rm -f conftest.$ac_objext conftest$ac_exeext
27793if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27794 (eval $ac_link) 2>conftest.er1
a848cd7e 27795 ac_status=$?
ac1cb8d3
VS
27796 grep -v '^ *+' conftest.er1 >conftest.err
27797 rm -f conftest.er1
27798 cat conftest.err >&5
a848cd7e
SC
27799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27800 (exit $ac_status); } &&
5d7b7554 27801 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27803 (eval $ac_try) 2>&5
27804 ac_status=$?
27805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27806 (exit $ac_status); }; } &&
27807 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27809 (eval $ac_try) 2>&5
27810 ac_status=$?
27811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27812 (exit $ac_status); }; }; then
27813 ac_cv_lib_gdk_gdk_im_open=yes
27814else
27815 echo "$as_me: failed program was:" >&5
27816sed 's/^/| /' conftest.$ac_ext >&5
27817
27818ac_cv_lib_gdk_gdk_im_open=no
27819fi
ac1cb8d3
VS
27820rm -f conftest.err conftest.$ac_objext \
27821 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27822LIBS=$ac_check_lib_save_LIBS
27823fi
27824echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
27825echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
27826if test $ac_cv_lib_gdk_gdk_im_open = yes; then
27827 cat >>confdefs.h <<\_ACEOF
27828#define HAVE_XIM 1
27829_ACEOF
27830
27831fi
27832
27833
27834
27835 if test "$wxUSE_GPE" = "yes"; then
27836 echo "$as_me:$LINENO: checking for gpewidget library" >&5
27837echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6
27838
0ad5d837
VZ
27839 ac_find_libraries=
27840 for ac_dir in $SEARCH_LIB;
a848cd7e 27841 do
3eca31dc 27842 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
27843 if test -f "$ac_dir/libgpewidget.$ac_extension"; then
27844 ac_find_libraries=$ac_dir
27845 break 2
27846 fi
27847 done
27848 done
27849
27850 if test "$ac_find_libraries" != "" ; then
27851
0ad5d837 27852 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
27853 ac_path_to_link=""
27854 else
0ad5d837
VZ
27855 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
27856 result=$?
27857 if test $result = 0; then
27858 ac_path_to_link=""
27859 else
27860 ac_path_to_link=" -L$ac_find_libraries"
27861 fi
a848cd7e
SC
27862 fi
27863
27864 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
27865 WXGPE=1
0ad5d837
VZ
27866 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
27867echo "${ECHO_T}found in $ac_find_libraries" >&6
a848cd7e
SC
27868 else
27869 echo "$as_me:$LINENO: result: not found" >&5
27870echo "${ECHO_T}not found" >&6
27871 fi
27872
27873 fi
27874 fi
27875
27876 if test "$wxUSE_MGL" = 1; then
27877 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
27878echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
27879 if test "x$MGL_ROOT" = x ; then
27880 echo "$as_me:$LINENO: result: not found" >&5
27881echo "${ECHO_T}not found" >&6
27882 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
27883echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
27884 { (exit 1); exit 1; }; }
27885 else
27886 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
27887echo "${ECHO_T}$MGL_ROOT" >&6
27888 fi
27889
27890 echo "$as_me:$LINENO: checking for libmgl location" >&5
27891echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
27892 case "${host}" in
27893 *-*-linux* )
27894 if test "x$wxUSE_SHARED" = xyes ; then
27895 mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
27896 else
27897 mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
27898 fi
27899 ;;
27900 *-pc-msdosdjgpp )
27901 mgl_os_candidates="dos32/dj2"
27902 ;;
27903 *)
27904 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
27905echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
27906 { (exit 1); exit 1; }; }
27907 esac
27908
27909 mgl_lib_type=""
27910 mgl_os=""
27911
27912 for mgl_os_i in $mgl_os_candidates ; do
27913 if test "x$mgl_os" = x ; then
27914 if test "$wxUSE_DEBUG_FLAG" = yes ; then
27915 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
27916 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
27917 mgl_lib_type=debug
27918 mgl_os=$mgl_os_i
27919 fi
27920 fi
27921 if test "x$mgl_lib_type" = x ; then
27922 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
27923 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
27924 mgl_lib_type=release
27925 mgl_os=$mgl_os_i
27926 fi
27927 fi
27928 fi
27929 done
27930
27931 if test "x$mgl_os" = x ; then
27932 echo "$as_me:$LINENO: result: not found" >&5
27933echo "${ECHO_T}not found" >&6
27934 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
27935echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
27936 { (exit 1); exit 1; }; }
27937 fi
27938 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
27939echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
27940
27941 wxUSE_UNIVERSAL="yes"
27942
27943 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
27944 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
27945
27946 AFMINSTALL=afminstall
27947 TOOLKIT=MGL
27948 GUIDIST=MGL_DIST
27949 fi
27950
27951 if test "$wxUSE_MICROWIN" = 1; then
27952 echo "$as_me:$LINENO: checking for MicroWindows" >&5
27953echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
27954 if test "x$MICROWINDOWS" = x ; then
27955 echo "$as_me:$LINENO: result: not found" >&5
27956echo "${ECHO_T}not found" >&6
27957 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
27958echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
27959 { (exit 1); exit 1; }; }
27960 else
27961 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
27962echo "${ECHO_T}$MICROWINDOWS" >&6
27963 fi
27964
27965 if test -f $MICROWINDOWS/lib/libmwin.a; then
27966 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
27967echo "${ECHO_T}MicroWindows' libraries found." >&6
27968 else
27969 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
27970echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
27971 { (exit 1); exit 1; }; }
27972 fi
27973
27974 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
27975 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
27976
27977 wxUSE_UNIVERSAL="yes"
27978
27979 AFMINSTALL=afminstall
27980 TOOLKIT=MICROWIN
27981 GUIDIST=MICROWIN_DIST
27982
27983 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
27984 fi
27985
74b84332 27986 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
5d7b7554
VZ
27987
27988if test "x$ac_path_x_has_been_run" != xyes; then
27989 echo "$as_me:$LINENO: checking for X" >&5
a848cd7e
SC
27990echo $ECHO_N "checking for X... $ECHO_C" >&6
27991
5d7b7554 27992ac_path_x_has_been_run=yes
a848cd7e
SC
27993
27994# Check whether --with-x or --without-x was given.
27995if test "${with_x+set}" = set; then
27996 withval="$with_x"
27997
27998fi;
27999# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
28000if test "x$with_x" = xno; then
28001 # The user explicitly disabled X.
28002 have_x=disabled
28003else
28004 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
28005 # Both variables are already set.
28006 have_x=yes
28007 else
28008 if test "${ac_cv_have_x+set}" = set; then
28009 echo $ECHO_N "(cached) $ECHO_C" >&6
28010else
28011 # One or both of the vars are not set, and there is no cached value.
28012ac_x_includes=no ac_x_libraries=no
28013rm -fr conftest.dir
28014if mkdir conftest.dir; then
28015 cd conftest.dir
28016 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
28017 cat >Imakefile <<'_ACEOF'
28018acfindx:
28019 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
28020_ACEOF
28021 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
28022 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
28023 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
28024 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
28025 for ac_extension in a so sl; do
28026 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
ac1cb8d3
VS
28027 test -f $ac_im_libdir/libX11.$ac_extension; then
28028 ac_im_usrlibdir=$ac_im_libdir; break
a848cd7e
SC
28029 fi
28030 done
28031 # Screen out bogus values from the imake configuration. They are
28032 # bogus both because they are the default anyway, and because
28033 # using them would break gcc on systems where it needs fixed includes.
28034 case $ac_im_incroot in
28035 /usr/include) ;;
28036 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
28037 esac
28038 case $ac_im_usrlibdir in
28039 /usr/lib | /lib) ;;
28040 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
28041 esac
28042 fi
28043 cd ..
28044 rm -fr conftest.dir
28045fi
28046
28047# Standard set of common directories for X headers.
28048# Check X11 before X11Rn because it is often a symlink to the current release.
28049ac_x_header_dirs='
28050/usr/X11/include
28051/usr/X11R6/include
28052/usr/X11R5/include
28053/usr/X11R4/include
28054
28055/usr/include/X11
28056/usr/include/X11R6
28057/usr/include/X11R5
28058/usr/include/X11R4
28059
28060/usr/local/X11/include
28061/usr/local/X11R6/include
28062/usr/local/X11R5/include
28063/usr/local/X11R4/include
28064
28065/usr/local/include/X11
28066/usr/local/include/X11R6
28067/usr/local/include/X11R5
28068/usr/local/include/X11R4
28069
28070/usr/X386/include
28071/usr/x386/include
28072/usr/XFree86/include/X11
28073
28074/usr/include
28075/usr/local/include
28076/usr/unsupported/include
28077/usr/athena/include
28078/usr/local/x11r5/include
28079/usr/lpp/Xamples/include
28080
28081/usr/openwin/include
28082/usr/openwin/share/include'
28083
28084if test "$ac_x_includes" = no; then
5d7b7554 28085 # Guess where to find include files, by looking for a specified header file.
a848cd7e
SC
28086 # First, try using that file with no special directory specified.
28087 cat >conftest.$ac_ext <<_ACEOF
28088/* confdefs.h. */
28089_ACEOF
28090cat confdefs.h >>conftest.$ac_ext
28091cat >>conftest.$ac_ext <<_ACEOF
28092/* end confdefs.h. */
2b850ae1 28093#include <X11/Intrinsic.h>
a848cd7e
SC
28094_ACEOF
28095if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28096 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28097 ac_status=$?
28098 grep -v '^ *+' conftest.er1 >conftest.err
28099 rm -f conftest.er1
28100 cat conftest.err >&5
28101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28102 (exit $ac_status); } >/dev/null; then
28103 if test -s conftest.err; then
5d7b7554
VZ
28104 ac_cpp_err=$ac_cxx_preproc_warn_flag
28105 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
28106 else
28107 ac_cpp_err=
28108 fi
28109else
28110 ac_cpp_err=yes
28111fi
28112if test -z "$ac_cpp_err"; then
28113 # We can compile using X headers with no special include directory.
28114ac_x_includes=
28115else
28116 echo "$as_me: failed program was:" >&5
28117sed 's/^/| /' conftest.$ac_ext >&5
28118
28119 for ac_dir in $ac_x_header_dirs; do
2b850ae1 28120 if test -r "$ac_dir/X11/Intrinsic.h"; then
a848cd7e
SC
28121 ac_x_includes=$ac_dir
28122 break
28123 fi
28124done
28125fi
28126rm -f conftest.err conftest.$ac_ext
28127fi # $ac_x_includes = no
28128
28129if test "$ac_x_libraries" = no; then
28130 # Check for the libraries.
28131 # See if we find them without any special options.
28132 # Don't add to $LIBS permanently.
28133 ac_save_LIBS=$LIBS
2b850ae1 28134 LIBS="-lXt $LIBS"
a848cd7e
SC
28135 cat >conftest.$ac_ext <<_ACEOF
28136/* confdefs.h. */
28137_ACEOF
28138cat confdefs.h >>conftest.$ac_ext
28139cat >>conftest.$ac_ext <<_ACEOF
28140/* end confdefs.h. */
2b850ae1 28141#include <X11/Intrinsic.h>
a848cd7e
SC
28142int
28143main ()
28144{
2b850ae1 28145XtMalloc (0)
a848cd7e
SC
28146 ;
28147 return 0;
28148}
28149_ACEOF
28150rm -f conftest.$ac_objext conftest$ac_exeext
28151if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28152 (eval $ac_link) 2>conftest.er1
a848cd7e 28153 ac_status=$?
ac1cb8d3
VS
28154 grep -v '^ *+' conftest.er1 >conftest.err
28155 rm -f conftest.er1
28156 cat conftest.err >&5
a848cd7e
SC
28157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28158 (exit $ac_status); } &&
5d7b7554 28159 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28161 (eval $ac_try) 2>&5
28162 ac_status=$?
28163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28164 (exit $ac_status); }; } &&
28165 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28167 (eval $ac_try) 2>&5
28168 ac_status=$?
28169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28170 (exit $ac_status); }; }; then
28171 LIBS=$ac_save_LIBS
28172# We can link X programs with no special library path.
28173ac_x_libraries=
28174else
28175 echo "$as_me: failed program was:" >&5
28176sed 's/^/| /' conftest.$ac_ext >&5
28177
28178LIBS=$ac_save_LIBS
28179for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
28180do
28181 # Don't even attempt the hair of trying to link an X program!
28182 for ac_extension in a so sl; do
2b850ae1 28183 if test -r $ac_dir/libXt.$ac_extension; then
a848cd7e
SC
28184 ac_x_libraries=$ac_dir
28185 break 2
28186 fi
28187 done
28188done
28189fi
ac1cb8d3
VS
28190rm -f conftest.err conftest.$ac_objext \
28191 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28192fi # $ac_x_libraries = no
28193
28194if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
28195 # Didn't find X anywhere. Cache the known absence of X.
28196 ac_cv_have_x="have_x=no"
28197else
28198 # Record where we found X for the cache.
28199 ac_cv_have_x="have_x=yes \
ac1cb8d3 28200 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
a848cd7e
SC
28201fi
28202fi
28203
28204 fi
28205 eval "$ac_cv_have_x"
28206fi # $with_x != no
28207
28208if test "$have_x" != yes; then
28209 echo "$as_me:$LINENO: result: $have_x" >&5
28210echo "${ECHO_T}$have_x" >&6
28211 no_x=yes
28212else
28213 # If each of the values was on the command line, it overrides each guess.
28214 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
28215 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
28216 # Update the cache value to reflect the command line values.
28217 ac_cv_have_x="have_x=yes \
28218 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
5d7b7554
VZ
28219 # It might be that x_includes is empty (headers are found in the
28220 # standard search path. Then output the corresponding message
28221 ac_out_x_includes=$x_includes
28222 test "x$x_includes" = x && ac_out_x_includes="in standard search path"
28223 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
28224echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
a848cd7e
SC
28225fi
28226
5d7b7554 28227fi
a848cd7e
SC
28228if test "$no_x" = yes; then
28229 # Not all programs may use this symbol, but it does not hurt to define it.
28230
28231cat >>confdefs.h <<\_ACEOF
28232#define X_DISPLAY_MISSING 1
28233_ACEOF
28234
28235 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
28236else
28237 if test -n "$x_includes"; then
28238 X_CFLAGS="$X_CFLAGS -I$x_includes"
28239 fi
28240
28241 # It would also be nice to do this for all -L options, not just this one.
28242 if test -n "$x_libraries"; then
28243 X_LIBS="$X_LIBS -L$x_libraries"
28244 # For Solaris; some versions of Sun CC require a space after -R and
28245 # others require no space. Words are not sufficient . . . .
28246 case `(uname -sr) 2>/dev/null` in
28247 "SunOS 5"*)
28248 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
28249echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
28250 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
28251 cat >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
28258int
28259main ()
28260{
28261
28262 ;
28263 return 0;
28264}
28265_ACEOF
28266rm -f conftest.$ac_objext conftest$ac_exeext
28267if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28268 (eval $ac_link) 2>conftest.er1
a848cd7e 28269 ac_status=$?
ac1cb8d3
VS
28270 grep -v '^ *+' conftest.er1 >conftest.err
28271 rm -f conftest.er1
28272 cat conftest.err >&5
a848cd7e
SC
28273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28274 (exit $ac_status); } &&
5d7b7554 28275 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28277 (eval $ac_try) 2>&5
28278 ac_status=$?
28279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28280 (exit $ac_status); }; } &&
28281 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28283 (eval $ac_try) 2>&5
28284 ac_status=$?
28285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28286 (exit $ac_status); }; }; then
28287 ac_R_nospace=yes
28288else
28289 echo "$as_me: failed program was:" >&5
28290sed 's/^/| /' conftest.$ac_ext >&5
28291
28292ac_R_nospace=no
28293fi
ac1cb8d3
VS
28294rm -f conftest.err conftest.$ac_objext \
28295 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28296 if test $ac_R_nospace = yes; then
28297 echo "$as_me:$LINENO: result: no" >&5
28298echo "${ECHO_T}no" >&6
28299 X_LIBS="$X_LIBS -R$x_libraries"
28300 else
28301 LIBS="$ac_xsave_LIBS -R $x_libraries"
28302 cat >conftest.$ac_ext <<_ACEOF
28303/* confdefs.h. */
28304_ACEOF
28305cat confdefs.h >>conftest.$ac_ext
28306cat >>conftest.$ac_ext <<_ACEOF
28307/* end confdefs.h. */
28308
28309int
28310main ()
28311{
28312
28313 ;
28314 return 0;
28315}
28316_ACEOF
28317rm -f conftest.$ac_objext conftest$ac_exeext
28318if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28319 (eval $ac_link) 2>conftest.er1
a848cd7e 28320 ac_status=$?
ac1cb8d3
VS
28321 grep -v '^ *+' conftest.er1 >conftest.err
28322 rm -f conftest.er1
28323 cat conftest.err >&5
a848cd7e
SC
28324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28325 (exit $ac_status); } &&
5d7b7554 28326 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28328 (eval $ac_try) 2>&5
28329 ac_status=$?
28330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28331 (exit $ac_status); }; } &&
28332 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28334 (eval $ac_try) 2>&5
28335 ac_status=$?
28336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28337 (exit $ac_status); }; }; then
28338 ac_R_space=yes
28339else
28340 echo "$as_me: failed program was:" >&5
28341sed 's/^/| /' conftest.$ac_ext >&5
28342
28343ac_R_space=no
28344fi
ac1cb8d3
VS
28345rm -f conftest.err conftest.$ac_objext \
28346 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28347 if test $ac_R_space = yes; then
28348 echo "$as_me:$LINENO: result: yes" >&5
28349echo "${ECHO_T}yes" >&6
28350 X_LIBS="$X_LIBS -R $x_libraries"
28351 else
28352 echo "$as_me:$LINENO: result: neither works" >&5
28353echo "${ECHO_T}neither works" >&6
28354 fi
28355 fi
28356 LIBS=$ac_xsave_LIBS
28357 esac
28358 fi
28359
28360 # Check for system-dependent libraries X programs must link with.
28361 # Do this before checking for the system-independent R6 libraries
28362 # (-lICE), since we may need -lsocket or whatever for X linking.
28363
28364 if test "$ISC" = yes; then
28365 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
28366 else
28367 # Martyn Johnson says this is needed for Ultrix, if the X
28368 # libraries were built with DECnet support. And Karl Berry says
28369 # the Alpha needs dnet_stub (dnet does not exist).
28370 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
28371 cat >conftest.$ac_ext <<_ACEOF
28372/* confdefs.h. */
28373_ACEOF
28374cat confdefs.h >>conftest.$ac_ext
28375cat >>conftest.$ac_ext <<_ACEOF
28376/* end confdefs.h. */
28377
28378/* Override any gcc2 internal prototype to avoid an error. */
28379#ifdef __cplusplus
28380extern "C"
28381#endif
28382/* We use char because int might match the return type of a gcc2
28383 builtin and then its argument prototype would still apply. */
28384char XOpenDisplay ();
28385int
28386main ()
28387{
28388XOpenDisplay ();
28389 ;
28390 return 0;
28391}
28392_ACEOF
28393rm -f conftest.$ac_objext conftest$ac_exeext
28394if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28395 (eval $ac_link) 2>conftest.er1
a848cd7e 28396 ac_status=$?
ac1cb8d3
VS
28397 grep -v '^ *+' conftest.er1 >conftest.err
28398 rm -f conftest.er1
28399 cat conftest.err >&5
a848cd7e
SC
28400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28401 (exit $ac_status); } &&
5d7b7554 28402 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28404 (eval $ac_try) 2>&5
28405 ac_status=$?
28406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28407 (exit $ac_status); }; } &&
28408 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28410 (eval $ac_try) 2>&5
28411 ac_status=$?
28412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28413 (exit $ac_status); }; }; then
28414 :
28415else
28416 echo "$as_me: failed program was:" >&5
28417sed 's/^/| /' conftest.$ac_ext >&5
28418
28419echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
28420echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
28421if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
28422 echo $ECHO_N "(cached) $ECHO_C" >&6
28423else
28424 ac_check_lib_save_LIBS=$LIBS
28425LIBS="-ldnet $LIBS"
28426cat >conftest.$ac_ext <<_ACEOF
28427/* confdefs.h. */
28428_ACEOF
28429cat confdefs.h >>conftest.$ac_ext
28430cat >>conftest.$ac_ext <<_ACEOF
28431/* end confdefs.h. */
28432
28433/* Override any gcc2 internal prototype to avoid an error. */
28434#ifdef __cplusplus
28435extern "C"
28436#endif
28437/* We use char because int might match the return type of a gcc2
28438 builtin and then its argument prototype would still apply. */
28439char dnet_ntoa ();
28440int
28441main ()
28442{
28443dnet_ntoa ();
28444 ;
28445 return 0;
28446}
28447_ACEOF
28448rm -f conftest.$ac_objext conftest$ac_exeext
28449if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28450 (eval $ac_link) 2>conftest.er1
a848cd7e 28451 ac_status=$?
ac1cb8d3
VS
28452 grep -v '^ *+' conftest.er1 >conftest.err
28453 rm -f conftest.er1
28454 cat conftest.err >&5
a848cd7e
SC
28455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28456 (exit $ac_status); } &&
5d7b7554 28457 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28459 (eval $ac_try) 2>&5
28460 ac_status=$?
28461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28462 (exit $ac_status); }; } &&
28463 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28465 (eval $ac_try) 2>&5
28466 ac_status=$?
28467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28468 (exit $ac_status); }; }; then
28469 ac_cv_lib_dnet_dnet_ntoa=yes
28470else
28471 echo "$as_me: failed program was:" >&5
28472sed 's/^/| /' conftest.$ac_ext >&5
28473
28474ac_cv_lib_dnet_dnet_ntoa=no
28475fi
ac1cb8d3
VS
28476rm -f conftest.err conftest.$ac_objext \
28477 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28478LIBS=$ac_check_lib_save_LIBS
28479fi
28480echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
28481echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
28482if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
28483 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
28484fi
28485
28486 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
28487 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
28488echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
28489if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
28490 echo $ECHO_N "(cached) $ECHO_C" >&6
28491else
28492 ac_check_lib_save_LIBS=$LIBS
28493LIBS="-ldnet_stub $LIBS"
28494cat >conftest.$ac_ext <<_ACEOF
28495/* confdefs.h. */
28496_ACEOF
28497cat confdefs.h >>conftest.$ac_ext
28498cat >>conftest.$ac_ext <<_ACEOF
28499/* end confdefs.h. */
28500
28501/* Override any gcc2 internal prototype to avoid an error. */
28502#ifdef __cplusplus
28503extern "C"
28504#endif
28505/* We use char because int might match the return type of a gcc2
28506 builtin and then its argument prototype would still apply. */
28507char dnet_ntoa ();
28508int
28509main ()
28510{
28511dnet_ntoa ();
28512 ;
28513 return 0;
28514}
28515_ACEOF
28516rm -f conftest.$ac_objext conftest$ac_exeext
28517if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28518 (eval $ac_link) 2>conftest.er1
a848cd7e 28519 ac_status=$?
ac1cb8d3
VS
28520 grep -v '^ *+' conftest.er1 >conftest.err
28521 rm -f conftest.er1
28522 cat conftest.err >&5
a848cd7e
SC
28523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28524 (exit $ac_status); } &&
5d7b7554 28525 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28527 (eval $ac_try) 2>&5
28528 ac_status=$?
28529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28530 (exit $ac_status); }; } &&
28531 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28533 (eval $ac_try) 2>&5
28534 ac_status=$?
28535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28536 (exit $ac_status); }; }; then
28537 ac_cv_lib_dnet_stub_dnet_ntoa=yes
28538else
28539 echo "$as_me: failed program was:" >&5
28540sed 's/^/| /' conftest.$ac_ext >&5
28541
28542ac_cv_lib_dnet_stub_dnet_ntoa=no
28543fi
ac1cb8d3
VS
28544rm -f conftest.err conftest.$ac_objext \
28545 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28546LIBS=$ac_check_lib_save_LIBS
28547fi
28548echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
28549echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
28550if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
28551 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
28552fi
28553
28554 fi
28555fi
ac1cb8d3
VS
28556rm -f conftest.err conftest.$ac_objext \
28557 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28558 LIBS="$ac_xsave_LIBS"
28559
28560 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
28561 # to get the SysV transport functions.
28562 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
28563 # needs -lnsl.
28564 # The nsl library prevents programs from opening the X display
28565 # on Irix 5.2, according to T.E. Dickey.
28566 # The functions gethostbyname, getservbyname, and inet_addr are
28567 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
28568 echo "$as_me:$LINENO: checking for gethostbyname" >&5
28569echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
28570if test "${ac_cv_func_gethostbyname+set}" = set; then
28571 echo $ECHO_N "(cached) $ECHO_C" >&6
28572else
28573 cat >conftest.$ac_ext <<_ACEOF
28574/* confdefs.h. */
28575_ACEOF
28576cat confdefs.h >>conftest.$ac_ext
28577cat >>conftest.$ac_ext <<_ACEOF
28578/* end confdefs.h. */
ac1cb8d3
VS
28579/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
28580 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28581#define gethostbyname innocuous_gethostbyname
28582
a848cd7e
SC
28583/* System header to define __stub macros and hopefully few prototypes,
28584 which can conflict with char gethostbyname (); below.
28585 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28586 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 28587
a848cd7e
SC
28588#ifdef __STDC__
28589# include <limits.h>
28590#else
28591# include <assert.h>
28592#endif
ac1cb8d3
VS
28593
28594#undef gethostbyname
28595
a848cd7e
SC
28596/* Override any gcc2 internal prototype to avoid an error. */
28597#ifdef __cplusplus
28598extern "C"
28599{
28600#endif
28601/* We use char because int might match the return type of a gcc2
28602 builtin and then its argument prototype would still apply. */
28603char gethostbyname ();
28604/* The GNU C library defines this for functions which it implements
28605 to always fail with ENOSYS. Some functions are actually named
28606 something starting with __ and the normal name is an alias. */
28607#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
28608choke me
28609#else
28610char (*f) () = gethostbyname;
28611#endif
28612#ifdef __cplusplus
28613}
28614#endif
28615
28616int
28617main ()
28618{
28619return f != gethostbyname;
28620 ;
28621 return 0;
28622}
28623_ACEOF
28624rm -f conftest.$ac_objext conftest$ac_exeext
28625if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28626 (eval $ac_link) 2>conftest.er1
a848cd7e 28627 ac_status=$?
ac1cb8d3
VS
28628 grep -v '^ *+' conftest.er1 >conftest.err
28629 rm -f conftest.er1
28630 cat conftest.err >&5
a848cd7e
SC
28631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28632 (exit $ac_status); } &&
5d7b7554 28633 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28635 (eval $ac_try) 2>&5
28636 ac_status=$?
28637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28638 (exit $ac_status); }; } &&
28639 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28641 (eval $ac_try) 2>&5
28642 ac_status=$?
28643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28644 (exit $ac_status); }; }; then
28645 ac_cv_func_gethostbyname=yes
28646else
28647 echo "$as_me: failed program was:" >&5
28648sed 's/^/| /' conftest.$ac_ext >&5
28649
28650ac_cv_func_gethostbyname=no
28651fi
ac1cb8d3
VS
28652rm -f conftest.err conftest.$ac_objext \
28653 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28654fi
28655echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
28656echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
28657
28658 if test $ac_cv_func_gethostbyname = no; then
28659 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
28660echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
28661if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
28662 echo $ECHO_N "(cached) $ECHO_C" >&6
28663else
28664 ac_check_lib_save_LIBS=$LIBS
28665LIBS="-lnsl $LIBS"
28666cat >conftest.$ac_ext <<_ACEOF
28667/* confdefs.h. */
28668_ACEOF
28669cat confdefs.h >>conftest.$ac_ext
28670cat >>conftest.$ac_ext <<_ACEOF
28671/* end confdefs.h. */
28672
28673/* Override any gcc2 internal prototype to avoid an error. */
28674#ifdef __cplusplus
28675extern "C"
28676#endif
28677/* We use char because int might match the return type of a gcc2
28678 builtin and then its argument prototype would still apply. */
28679char gethostbyname ();
28680int
28681main ()
28682{
28683gethostbyname ();
28684 ;
28685 return 0;
28686}
28687_ACEOF
28688rm -f conftest.$ac_objext conftest$ac_exeext
28689if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3
VS
28690 (eval $ac_link) 2>conftest.er1
28691 ac_status=$?
28692 grep -v '^ *+' conftest.er1 >conftest.err
28693 rm -f conftest.er1
28694 cat conftest.err >&5
28695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28696 (exit $ac_status); } &&
5d7b7554 28697 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28699 (eval $ac_try) 2>&5
28700 ac_status=$?
28701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28702 (exit $ac_status); }; } &&
28703 { ac_try='test -s conftest$ac_exeext'
28704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28705 (eval $ac_try) 2>&5
28706 ac_status=$?
28707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28708 (exit $ac_status); }; }; then
28709 ac_cv_lib_nsl_gethostbyname=yes
28710else
28711 echo "$as_me: failed program was:" >&5
28712sed 's/^/| /' conftest.$ac_ext >&5
28713
28714ac_cv_lib_nsl_gethostbyname=no
28715fi
28716rm -f conftest.err conftest.$ac_objext \
28717 conftest$ac_exeext conftest.$ac_ext
28718LIBS=$ac_check_lib_save_LIBS
28719fi
28720echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
28721echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
28722if test $ac_cv_lib_nsl_gethostbyname = yes; then
28723 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
28724fi
28725
28726 if test $ac_cv_lib_nsl_gethostbyname = no; then
28727 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
28728echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
28729if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
28730 echo $ECHO_N "(cached) $ECHO_C" >&6
28731else
28732 ac_check_lib_save_LIBS=$LIBS
28733LIBS="-lbsd $LIBS"
28734cat >conftest.$ac_ext <<_ACEOF
28735/* confdefs.h. */
28736_ACEOF
28737cat confdefs.h >>conftest.$ac_ext
28738cat >>conftest.$ac_ext <<_ACEOF
28739/* end confdefs.h. */
28740
28741/* Override any gcc2 internal prototype to avoid an error. */
28742#ifdef __cplusplus
28743extern "C"
28744#endif
28745/* We use char because int might match the return type of a gcc2
28746 builtin and then its argument prototype would still apply. */
28747char gethostbyname ();
28748int
28749main ()
28750{
28751gethostbyname ();
28752 ;
28753 return 0;
28754}
28755_ACEOF
28756rm -f conftest.$ac_objext conftest$ac_exeext
28757if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28758 (eval $ac_link) 2>conftest.er1
a848cd7e 28759 ac_status=$?
ac1cb8d3
VS
28760 grep -v '^ *+' conftest.er1 >conftest.err
28761 rm -f conftest.er1
28762 cat conftest.err >&5
a848cd7e
SC
28763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28764 (exit $ac_status); } &&
5d7b7554 28765 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
28766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28767 (eval $ac_try) 2>&5
28768 ac_status=$?
28769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ac1cb8d3
VS
28770 (exit $ac_status); }; } &&
28771 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28773 (eval $ac_try) 2>&5
28774 ac_status=$?
28775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28776 (exit $ac_status); }; }; then
28777 ac_cv_lib_bsd_gethostbyname=yes
28778else
28779 echo "$as_me: failed program was:" >&5
28780sed 's/^/| /' conftest.$ac_ext >&5
28781
28782ac_cv_lib_bsd_gethostbyname=no
28783fi
ac1cb8d3
VS
28784rm -f conftest.err conftest.$ac_objext \
28785 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28786LIBS=$ac_check_lib_save_LIBS
28787fi
28788echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
28789echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
28790if test $ac_cv_lib_bsd_gethostbyname = yes; then
28791 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
28792fi
28793
28794 fi
28795 fi
28796
28797 # lieder@skyler.mavd.honeywell.com says without -lsocket,
28798 # socket/setsockopt and other routines are undefined under SCO ODT
28799 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
28800 # on later versions), says Simon Leinen: it contains gethostby*
28801 # variants that don't use the name server (or something). -lsocket
28802 # must be given before -lnsl if both are needed. We assume that
28803 # if connect needs -lnsl, so does gethostbyname.
28804 echo "$as_me:$LINENO: checking for connect" >&5
28805echo $ECHO_N "checking for connect... $ECHO_C" >&6
28806if test "${ac_cv_func_connect+set}" = set; then
28807 echo $ECHO_N "(cached) $ECHO_C" >&6
28808else
28809 cat >conftest.$ac_ext <<_ACEOF
28810/* confdefs.h. */
28811_ACEOF
28812cat confdefs.h >>conftest.$ac_ext
28813cat >>conftest.$ac_ext <<_ACEOF
28814/* end confdefs.h. */
ac1cb8d3
VS
28815/* Define connect to an innocuous variant, in case <limits.h> declares connect.
28816 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28817#define connect innocuous_connect
28818
a848cd7e
SC
28819/* System header to define __stub macros and hopefully few prototypes,
28820 which can conflict with char connect (); below.
28821 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28822 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 28823
a848cd7e
SC
28824#ifdef __STDC__
28825# include <limits.h>
28826#else
28827# include <assert.h>
28828#endif
ac1cb8d3
VS
28829
28830#undef connect
28831
a848cd7e
SC
28832/* Override any gcc2 internal prototype to avoid an error. */
28833#ifdef __cplusplus
28834extern "C"
28835{
28836#endif
28837/* We use char because int might match the return type of a gcc2
28838 builtin and then its argument prototype would still apply. */
28839char connect ();
28840/* The GNU C library defines this for functions which it implements
28841 to always fail with ENOSYS. Some functions are actually named
28842 something starting with __ and the normal name is an alias. */
28843#if defined (__stub_connect) || defined (__stub___connect)
28844choke me
28845#else
28846char (*f) () = connect;
28847#endif
28848#ifdef __cplusplus
28849}
28850#endif
28851
28852int
28853main ()
28854{
28855return f != connect;
28856 ;
28857 return 0;
28858}
28859_ACEOF
28860rm -f conftest.$ac_objext conftest$ac_exeext
28861if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28862 (eval $ac_link) 2>conftest.er1
a848cd7e 28863 ac_status=$?
ac1cb8d3
VS
28864 grep -v '^ *+' conftest.er1 >conftest.err
28865 rm -f conftest.er1
28866 cat conftest.err >&5
a848cd7e
SC
28867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28868 (exit $ac_status); } &&
5d7b7554 28869 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28871 (eval $ac_try) 2>&5
28872 ac_status=$?
28873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28874 (exit $ac_status); }; } &&
28875 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28877 (eval $ac_try) 2>&5
28878 ac_status=$?
28879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28880 (exit $ac_status); }; }; then
28881 ac_cv_func_connect=yes
28882else
28883 echo "$as_me: failed program was:" >&5
28884sed 's/^/| /' conftest.$ac_ext >&5
28885
28886ac_cv_func_connect=no
28887fi
ac1cb8d3
VS
28888rm -f conftest.err conftest.$ac_objext \
28889 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28890fi
28891echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
28892echo "${ECHO_T}$ac_cv_func_connect" >&6
28893
28894 if test $ac_cv_func_connect = no; then
28895 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
28896echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
28897if test "${ac_cv_lib_socket_connect+set}" = set; then
28898 echo $ECHO_N "(cached) $ECHO_C" >&6
28899else
28900 ac_check_lib_save_LIBS=$LIBS
28901LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
28902cat >conftest.$ac_ext <<_ACEOF
28903/* confdefs.h. */
28904_ACEOF
28905cat confdefs.h >>conftest.$ac_ext
28906cat >>conftest.$ac_ext <<_ACEOF
28907/* end confdefs.h. */
28908
28909/* Override any gcc2 internal prototype to avoid an error. */
28910#ifdef __cplusplus
28911extern "C"
28912#endif
28913/* We use char because int might match the return type of a gcc2
28914 builtin and then its argument prototype would still apply. */
28915char connect ();
28916int
28917main ()
28918{
28919connect ();
28920 ;
28921 return 0;
28922}
28923_ACEOF
28924rm -f conftest.$ac_objext conftest$ac_exeext
28925if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28926 (eval $ac_link) 2>conftest.er1
a848cd7e 28927 ac_status=$?
ac1cb8d3
VS
28928 grep -v '^ *+' conftest.er1 >conftest.err
28929 rm -f conftest.er1
28930 cat conftest.err >&5
a848cd7e
SC
28931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28932 (exit $ac_status); } &&
5d7b7554 28933 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28935 (eval $ac_try) 2>&5
28936 ac_status=$?
28937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28938 (exit $ac_status); }; } &&
28939 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28941 (eval $ac_try) 2>&5
28942 ac_status=$?
28943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28944 (exit $ac_status); }; }; then
28945 ac_cv_lib_socket_connect=yes
28946else
28947 echo "$as_me: failed program was:" >&5
28948sed 's/^/| /' conftest.$ac_ext >&5
28949
28950ac_cv_lib_socket_connect=no
28951fi
ac1cb8d3
VS
28952rm -f conftest.err conftest.$ac_objext \
28953 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28954LIBS=$ac_check_lib_save_LIBS
28955fi
28956echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
28957echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
28958if test $ac_cv_lib_socket_connect = yes; then
28959 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
28960fi
28961
28962 fi
28963
28964 # Guillermo Gomez says -lposix is necessary on A/UX.
28965 echo "$as_me:$LINENO: checking for remove" >&5
28966echo $ECHO_N "checking for remove... $ECHO_C" >&6
28967if test "${ac_cv_func_remove+set}" = set; then
28968 echo $ECHO_N "(cached) $ECHO_C" >&6
28969else
28970 cat >conftest.$ac_ext <<_ACEOF
28971/* confdefs.h. */
28972_ACEOF
28973cat confdefs.h >>conftest.$ac_ext
28974cat >>conftest.$ac_ext <<_ACEOF
28975/* end confdefs.h. */
ac1cb8d3
VS
28976/* Define remove to an innocuous variant, in case <limits.h> declares remove.
28977 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28978#define remove innocuous_remove
28979
a848cd7e
SC
28980/* System header to define __stub macros and hopefully few prototypes,
28981 which can conflict with char remove (); below.
28982 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28983 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 28984
a848cd7e
SC
28985#ifdef __STDC__
28986# include <limits.h>
28987#else
28988# include <assert.h>
28989#endif
ac1cb8d3
VS
28990
28991#undef remove
28992
a848cd7e
SC
28993/* Override any gcc2 internal prototype to avoid an error. */
28994#ifdef __cplusplus
28995extern "C"
28996{
28997#endif
28998/* We use char because int might match the return type of a gcc2
28999 builtin and then its argument prototype would still apply. */
29000char remove ();
29001/* The GNU C library defines this for functions which it implements
29002 to always fail with ENOSYS. Some functions are actually named
29003 something starting with __ and the normal name is an alias. */
29004#if defined (__stub_remove) || defined (__stub___remove)
29005choke me
29006#else
29007char (*f) () = remove;
29008#endif
29009#ifdef __cplusplus
29010}
29011#endif
29012
29013int
29014main ()
29015{
29016return f != remove;
29017 ;
29018 return 0;
29019}
29020_ACEOF
29021rm -f conftest.$ac_objext conftest$ac_exeext
29022if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29023 (eval $ac_link) 2>conftest.er1
a848cd7e 29024 ac_status=$?
ac1cb8d3
VS
29025 grep -v '^ *+' conftest.er1 >conftest.err
29026 rm -f conftest.er1
29027 cat conftest.err >&5
a848cd7e
SC
29028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29029 (exit $ac_status); } &&
5d7b7554 29030 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29032 (eval $ac_try) 2>&5
29033 ac_status=$?
29034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29035 (exit $ac_status); }; } &&
29036 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29038 (eval $ac_try) 2>&5
29039 ac_status=$?
29040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29041 (exit $ac_status); }; }; then
29042 ac_cv_func_remove=yes
29043else
29044 echo "$as_me: failed program was:" >&5
29045sed 's/^/| /' conftest.$ac_ext >&5
29046
29047ac_cv_func_remove=no
29048fi
ac1cb8d3
VS
29049rm -f conftest.err conftest.$ac_objext \
29050 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29051fi
29052echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
29053echo "${ECHO_T}$ac_cv_func_remove" >&6
29054
29055 if test $ac_cv_func_remove = no; then
29056 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
29057echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
29058if test "${ac_cv_lib_posix_remove+set}" = set; then
29059 echo $ECHO_N "(cached) $ECHO_C" >&6
29060else
29061 ac_check_lib_save_LIBS=$LIBS
29062LIBS="-lposix $LIBS"
29063cat >conftest.$ac_ext <<_ACEOF
29064/* confdefs.h. */
29065_ACEOF
29066cat confdefs.h >>conftest.$ac_ext
29067cat >>conftest.$ac_ext <<_ACEOF
29068/* end confdefs.h. */
29069
29070/* Override any gcc2 internal prototype to avoid an error. */
29071#ifdef __cplusplus
29072extern "C"
29073#endif
29074/* We use char because int might match the return type of a gcc2
29075 builtin and then its argument prototype would still apply. */
29076char remove ();
29077int
29078main ()
29079{
29080remove ();
29081 ;
29082 return 0;
29083}
29084_ACEOF
29085rm -f conftest.$ac_objext conftest$ac_exeext
29086if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29087 (eval $ac_link) 2>conftest.er1
a848cd7e 29088 ac_status=$?
ac1cb8d3
VS
29089 grep -v '^ *+' conftest.er1 >conftest.err
29090 rm -f conftest.er1
29091 cat conftest.err >&5
a848cd7e
SC
29092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29093 (exit $ac_status); } &&
5d7b7554 29094 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29096 (eval $ac_try) 2>&5
29097 ac_status=$?
29098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29099 (exit $ac_status); }; } &&
29100 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29102 (eval $ac_try) 2>&5
29103 ac_status=$?
29104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29105 (exit $ac_status); }; }; then
29106 ac_cv_lib_posix_remove=yes
29107else
29108 echo "$as_me: failed program was:" >&5
29109sed 's/^/| /' conftest.$ac_ext >&5
29110
29111ac_cv_lib_posix_remove=no
29112fi
ac1cb8d3
VS
29113rm -f conftest.err conftest.$ac_objext \
29114 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29115LIBS=$ac_check_lib_save_LIBS
29116fi
29117echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
29118echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
29119if test $ac_cv_lib_posix_remove = yes; then
29120 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
29121fi
29122
29123 fi
29124
29125 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
29126 echo "$as_me:$LINENO: checking for shmat" >&5
29127echo $ECHO_N "checking for shmat... $ECHO_C" >&6
29128if test "${ac_cv_func_shmat+set}" = set; then
29129 echo $ECHO_N "(cached) $ECHO_C" >&6
29130else
29131 cat >conftest.$ac_ext <<_ACEOF
29132/* confdefs.h. */
29133_ACEOF
29134cat confdefs.h >>conftest.$ac_ext
29135cat >>conftest.$ac_ext <<_ACEOF
29136/* end confdefs.h. */
ac1cb8d3
VS
29137/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
29138 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29139#define shmat innocuous_shmat
29140
a848cd7e
SC
29141/* System header to define __stub macros and hopefully few prototypes,
29142 which can conflict with char shmat (); below.
29143 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29144 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29145
a848cd7e
SC
29146#ifdef __STDC__
29147# include <limits.h>
29148#else
29149# include <assert.h>
29150#endif
ac1cb8d3
VS
29151
29152#undef shmat
29153
a848cd7e
SC
29154/* Override any gcc2 internal prototype to avoid an error. */
29155#ifdef __cplusplus
29156extern "C"
29157{
29158#endif
29159/* We use char because int might match the return type of a gcc2
29160 builtin and then its argument prototype would still apply. */
29161char shmat ();
29162/* The GNU C library defines this for functions which it implements
29163 to always fail with ENOSYS. Some functions are actually named
29164 something starting with __ and the normal name is an alias. */
29165#if defined (__stub_shmat) || defined (__stub___shmat)
29166choke me
29167#else
29168char (*f) () = shmat;
29169#endif
29170#ifdef __cplusplus
29171}
29172#endif
29173
29174int
29175main ()
29176{
29177return f != shmat;
29178 ;
29179 return 0;
29180}
29181_ACEOF
29182rm -f conftest.$ac_objext conftest$ac_exeext
29183if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29184 (eval $ac_link) 2>conftest.er1
a848cd7e 29185 ac_status=$?
ac1cb8d3
VS
29186 grep -v '^ *+' conftest.er1 >conftest.err
29187 rm -f conftest.er1
29188 cat conftest.err >&5
a848cd7e
SC
29189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29190 (exit $ac_status); } &&
5d7b7554 29191 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29193 (eval $ac_try) 2>&5
29194 ac_status=$?
29195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29196 (exit $ac_status); }; } &&
29197 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29199 (eval $ac_try) 2>&5
29200 ac_status=$?
29201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29202 (exit $ac_status); }; }; then
29203 ac_cv_func_shmat=yes
29204else
29205 echo "$as_me: failed program was:" >&5
29206sed 's/^/| /' conftest.$ac_ext >&5
29207
29208ac_cv_func_shmat=no
29209fi
ac1cb8d3
VS
29210rm -f conftest.err conftest.$ac_objext \
29211 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29212fi
29213echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
29214echo "${ECHO_T}$ac_cv_func_shmat" >&6
29215
29216 if test $ac_cv_func_shmat = no; then
29217 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
29218echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
29219if test "${ac_cv_lib_ipc_shmat+set}" = set; then
29220 echo $ECHO_N "(cached) $ECHO_C" >&6
29221else
29222 ac_check_lib_save_LIBS=$LIBS
29223LIBS="-lipc $LIBS"
29224cat >conftest.$ac_ext <<_ACEOF
29225/* confdefs.h. */
29226_ACEOF
29227cat confdefs.h >>conftest.$ac_ext
29228cat >>conftest.$ac_ext <<_ACEOF
29229/* end confdefs.h. */
29230
29231/* Override any gcc2 internal prototype to avoid an error. */
29232#ifdef __cplusplus
29233extern "C"
29234#endif
29235/* We use char because int might match the return type of a gcc2
29236 builtin and then its argument prototype would still apply. */
29237char shmat ();
29238int
29239main ()
29240{
29241shmat ();
29242 ;
29243 return 0;
29244}
29245_ACEOF
29246rm -f conftest.$ac_objext conftest$ac_exeext
29247if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29248 (eval $ac_link) 2>conftest.er1
a848cd7e 29249 ac_status=$?
ac1cb8d3
VS
29250 grep -v '^ *+' conftest.er1 >conftest.err
29251 rm -f conftest.er1
29252 cat conftest.err >&5
a848cd7e
SC
29253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29254 (exit $ac_status); } &&
5d7b7554 29255 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29257 (eval $ac_try) 2>&5
29258 ac_status=$?
29259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29260 (exit $ac_status); }; } &&
29261 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29263 (eval $ac_try) 2>&5
29264 ac_status=$?
29265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29266 (exit $ac_status); }; }; then
29267 ac_cv_lib_ipc_shmat=yes
29268else
29269 echo "$as_me: failed program was:" >&5
29270sed 's/^/| /' conftest.$ac_ext >&5
29271
29272ac_cv_lib_ipc_shmat=no
29273fi
ac1cb8d3
VS
29274rm -f conftest.err conftest.$ac_objext \
29275 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29276LIBS=$ac_check_lib_save_LIBS
29277fi
29278echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
29279echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
29280if test $ac_cv_lib_ipc_shmat = yes; then
29281 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
29282fi
29283
29284 fi
29285 fi
29286
29287 # Check for libraries that X11R6 Xt/Xaw programs need.
29288 ac_save_LDFLAGS=$LDFLAGS
29289 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
29290 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
29291 # check for ICE first), but we must link in the order -lSM -lICE or
29292 # we get undefined symbols. So assume we have SM if we have ICE.
29293 # These have to be linked with before -lX11, unlike the other
29294 # libraries we check for below, so use a different variable.
29295 # John Interrante, Karl Berry
29296 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
29297echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
29298if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
29299 echo $ECHO_N "(cached) $ECHO_C" >&6
29300else
29301 ac_check_lib_save_LIBS=$LIBS
29302LIBS="-lICE $X_EXTRA_LIBS $LIBS"
29303cat >conftest.$ac_ext <<_ACEOF
29304/* confdefs.h. */
29305_ACEOF
29306cat confdefs.h >>conftest.$ac_ext
29307cat >>conftest.$ac_ext <<_ACEOF
29308/* end confdefs.h. */
29309
29310/* Override any gcc2 internal prototype to avoid an error. */
29311#ifdef __cplusplus
29312extern "C"
29313#endif
29314/* We use char because int might match the return type of a gcc2
29315 builtin and then its argument prototype would still apply. */
29316char IceConnectionNumber ();
29317int
29318main ()
29319{
29320IceConnectionNumber ();
29321 ;
29322 return 0;
29323}
29324_ACEOF
29325rm -f conftest.$ac_objext conftest$ac_exeext
29326if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29327 (eval $ac_link) 2>conftest.er1
a848cd7e 29328 ac_status=$?
ac1cb8d3
VS
29329 grep -v '^ *+' conftest.er1 >conftest.err
29330 rm -f conftest.er1
29331 cat conftest.err >&5
a848cd7e
SC
29332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29333 (exit $ac_status); } &&
5d7b7554 29334 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29336 (eval $ac_try) 2>&5
29337 ac_status=$?
29338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29339 (exit $ac_status); }; } &&
29340 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29342 (eval $ac_try) 2>&5
29343 ac_status=$?
29344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29345 (exit $ac_status); }; }; then
29346 ac_cv_lib_ICE_IceConnectionNumber=yes
29347else
29348 echo "$as_me: failed program was:" >&5
29349sed 's/^/| /' conftest.$ac_ext >&5
29350
29351ac_cv_lib_ICE_IceConnectionNumber=no
29352fi
ac1cb8d3
VS
29353rm -f conftest.err conftest.$ac_objext \
29354 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29355LIBS=$ac_check_lib_save_LIBS
29356fi
29357echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
29358echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
29359if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
29360 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
29361fi
29362
29363 LDFLAGS=$ac_save_LDFLAGS
29364
29365fi
29366
29367
29368 if test "$no_x" = "yes"; then
89d90d6d
VZ
29369 { { echo "$as_me:$LINENO: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&5
29370echo "$as_me: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&2;}
29371 { (exit 1); exit 1; }; }
a848cd7e
SC
29372 fi
29373
74b84332
VS
29374 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
29375 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
a848cd7e
SC
29376 AFMINSTALL=afminstall
29377 COMPILED_X_PROGRAM=0
29378
74b84332
VS
29379 fi
29380
29381 if test "$wxUSE_X11" = 1; then
a848cd7e
SC
29382 if test "$wxUSE_NANOX" = "yes"; then
29383 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
29384echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
29385 if test "x$MICROWIN" = x ; then
29386 echo "$as_me:$LINENO: result: not found" >&5
29387echo "${ECHO_T}not found" >&6
29388 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
29389echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
29390 { (exit 1); exit 1; }; }
29391 else
29392 echo "$as_me:$LINENO: result: $MICROWIN" >&5
29393echo "${ECHO_T}$MICROWIN" >&6
29394 cat >>confdefs.h <<\_ACEOF
29395#define wxUSE_NANOX 1
29396_ACEOF
29397
29398 fi
29399 fi
29400
29401 if test "$wxUSE_UNICODE" = "yes"; then
29402
29403 succeeded=no
29404
29405 if test -z "$PKG_CONFIG"; then
29406 # Extract the first word of "pkg-config", so it can be a program name with args.
29407set dummy pkg-config; ac_word=$2
29408echo "$as_me:$LINENO: checking for $ac_word" >&5
29409echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29410if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
29411 echo $ECHO_N "(cached) $ECHO_C" >&6
29412else
29413 case $PKG_CONFIG in
29414 [\\/]* | ?:[\\/]*)
29415 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
29416 ;;
29417 *)
29418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29419for as_dir in $PATH
29420do
29421 IFS=$as_save_IFS
29422 test -z "$as_dir" && as_dir=.
29423 for ac_exec_ext in '' $ac_executable_extensions; do
29424 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29425 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29426 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29427 break 2
29428 fi
29429done
29430done
29431
29432 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
29433 ;;
29434esac
29435fi
29436PKG_CONFIG=$ac_cv_path_PKG_CONFIG
29437
29438if test -n "$PKG_CONFIG"; then
29439 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
29440echo "${ECHO_T}$PKG_CONFIG" >&6
29441else
29442 echo "$as_me:$LINENO: result: no" >&5
29443echo "${ECHO_T}no" >&6
29444fi
29445
29446 fi
29447
29448 if test "$PKG_CONFIG" = "no" ; then
29449 echo "*** The pkg-config script could not be found. Make sure it is"
29450 echo "*** in your path, or set the PKG_CONFIG environment variable"
29451 echo "*** to the full path to pkg-config."
29452 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
29453 else
29454 PKG_CONFIG_MIN_VERSION=0.9.0
29455 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
29456 echo "$as_me:$LINENO: checking for pangox" >&5
29457echo $ECHO_N "checking for pangox... $ECHO_C" >&6
29458
29459 if $PKG_CONFIG --exists "pangox" ; then
29460 echo "$as_me:$LINENO: result: yes" >&5
29461echo "${ECHO_T}yes" >&6
29462 succeeded=yes
29463
29464 echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5
29465echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6
29466 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
29467 echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5
29468echo "${ECHO_T}$PANGOX_CFLAGS" >&6
29469
29470 echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5
29471echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6
29472 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
29473 echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5
29474echo "${ECHO_T}$PANGOX_LIBS" >&6
29475 else
29476 PANGOX_CFLAGS=""
29477 PANGOX_LIBS=""
29478 ## If we have a custom action on failure, don't print errors, but
29479 ## do set a variable so people can do so.
29480 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
29481
29482 fi
29483
29484
29485
29486 else
29487 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
29488 echo "*** See http://www.freedesktop.org/software/pkgconfig"
29489 fi
29490 fi
29491
29492 if test $succeeded = yes; then
29493
c92ad099 29494 CXXFLAGS="$PANGOX_CFLAGS $CXXFLAGS"
a848cd7e
SC
29495 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
29496
29497 else
29498
29499 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
29500echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
29501 { (exit 1); exit 1; }; }
29502
29503
29504 fi
29505
29506
29507 succeeded=no
29508
29509 if test -z "$PKG_CONFIG"; then
29510 # Extract the first word of "pkg-config", so it can be a program name with args.
29511set dummy pkg-config; ac_word=$2
29512echo "$as_me:$LINENO: checking for $ac_word" >&5
29513echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29514if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
29515 echo $ECHO_N "(cached) $ECHO_C" >&6
29516else
29517 case $PKG_CONFIG in
29518 [\\/]* | ?:[\\/]*)
29519 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
29520 ;;
29521 *)
29522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29523for as_dir in $PATH
29524do
29525 IFS=$as_save_IFS
29526 test -z "$as_dir" && as_dir=.
29527 for ac_exec_ext in '' $ac_executable_extensions; do
29528 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29529 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29530 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29531 break 2
29532 fi
29533done
29534done
29535
29536 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
29537 ;;
29538esac
29539fi
29540PKG_CONFIG=$ac_cv_path_PKG_CONFIG
29541
29542if test -n "$PKG_CONFIG"; then
29543 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
29544echo "${ECHO_T}$PKG_CONFIG" >&6
29545else
29546 echo "$as_me:$LINENO: result: no" >&5
29547echo "${ECHO_T}no" >&6
29548fi
29549
29550 fi
29551
29552 if test "$PKG_CONFIG" = "no" ; then
29553 echo "*** The pkg-config script could not be found. Make sure it is"
29554 echo "*** in your path, or set the PKG_CONFIG environment variable"
29555 echo "*** to the full path to pkg-config."
29556 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
29557 else
29558 PKG_CONFIG_MIN_VERSION=0.9.0
29559 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
29560 echo "$as_me:$LINENO: checking for pangoft2" >&5
29561echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
29562
29563 if $PKG_CONFIG --exists "pangoft2" ; then
29564 echo "$as_me:$LINENO: result: yes" >&5
29565echo "${ECHO_T}yes" >&6
29566 succeeded=yes
29567
29568 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
29569echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
29570 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
29571 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
29572echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
29573
29574 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
29575echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
29576 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
29577 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
29578echo "${ECHO_T}$PANGOFT2_LIBS" >&6
29579 else
29580 PANGOFT2_CFLAGS=""
29581 PANGOFT2_LIBS=""
29582 ## If we have a custom action on failure, don't print errors, but
29583 ## do set a variable so people can do so.
29584 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
29585
29586 fi
29587
29588
29589
29590 else
29591 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
29592 echo "*** See http://www.freedesktop.org/software/pkgconfig"
29593 fi
29594 fi
29595
29596 if test $succeeded = yes; then
29597
c92ad099 29598 CXXFLAGS="$PANGOFT2_CFLAGS $CXXFLAGS"
a848cd7e
SC
29599 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
29600
29601 else
29602
29603 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
29604echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
29605 wxUSE_PRINTING_ARCHITECTURE="no"
29606
29607
29608 fi
29609
29610
29611 succeeded=no
29612
29613 if test -z "$PKG_CONFIG"; then
29614 # Extract the first word of "pkg-config", so it can be a program name with args.
29615set dummy pkg-config; ac_word=$2
29616echo "$as_me:$LINENO: checking for $ac_word" >&5
29617echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29618if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
29619 echo $ECHO_N "(cached) $ECHO_C" >&6
29620else
29621 case $PKG_CONFIG in
29622 [\\/]* | ?:[\\/]*)
29623 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
29624 ;;
29625 *)
29626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29627for as_dir in $PATH
29628do
29629 IFS=$as_save_IFS
29630 test -z "$as_dir" && as_dir=.
29631 for ac_exec_ext in '' $ac_executable_extensions; do
29632 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29633 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29634 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29635 break 2
29636 fi
29637done
29638done
29639
29640 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
29641 ;;
29642esac
29643fi
29644PKG_CONFIG=$ac_cv_path_PKG_CONFIG
29645
29646if test -n "$PKG_CONFIG"; then
29647 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
29648echo "${ECHO_T}$PKG_CONFIG" >&6
29649else
29650 echo "$as_me:$LINENO: result: no" >&5
29651echo "${ECHO_T}no" >&6
29652fi
29653
29654 fi
29655
29656 if test "$PKG_CONFIG" = "no" ; then
29657 echo "*** The pkg-config script could not be found. Make sure it is"
29658 echo "*** in your path, or set the PKG_CONFIG environment variable"
29659 echo "*** to the full path to pkg-config."
29660 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
29661 else
29662 PKG_CONFIG_MIN_VERSION=0.9.0
29663 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
29664 echo "$as_me:$LINENO: checking for pangoxft" >&5
29665echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6
29666
29667 if $PKG_CONFIG --exists "pangoxft" ; then
29668 echo "$as_me:$LINENO: result: yes" >&5
29669echo "${ECHO_T}yes" >&6
29670 succeeded=yes
29671
29672 echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5
29673echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6
29674 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
29675 echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5
29676echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6
29677
29678 echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5
29679echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6
29680 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
29681 echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5
29682echo "${ECHO_T}$PANGOXFT_LIBS" >&6
29683 else
29684 PANGOXFT_CFLAGS=""
29685 PANGOXFT_LIBS=""
29686 ## If we have a custom action on failure, don't print errors, but
29687 ## do set a variable so people can do so.
29688 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
29689
29690 fi
29691
29692
29693
29694 else
29695 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
29696 echo "*** See http://www.freedesktop.org/software/pkgconfig"
29697 fi
29698 fi
29699
29700 if test $succeeded = yes; then
29701
4ae1af05
MB
29702 cat >>confdefs.h <<\_ACEOF
29703#define HAVE_PANGO_XFT 1
29704_ACEOF
29705
c92ad099 29706 CXXFLAGS="$PANGOXFT_CFLAGS $CXXFLAGS"
a848cd7e
SC
29707 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
29708
29709 else
29710
29711 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
29712echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
29713
29714
29715 fi
29716
e56f4f9e 29717 save_CXXFLAGS="$CXXFLAGS"
304205f1 29718 save_LIBS="$LIBS"
e56f4f9e 29719 CXXFLAGS="$PANGOX_CFLAGS $CXXFLAGS"
304205f1
VS
29720 LIBS="$LIBS $PANGOX_LIBS"
29721
29722for ac_func in pango_font_family_is_monospace
29723do
29724as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29725echo "$as_me:$LINENO: checking for $ac_func" >&5
29726echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29727if eval "test \"\${$as_ac_var+set}\" = set"; then
29728 echo $ECHO_N "(cached) $ECHO_C" >&6
29729else
29730 cat >conftest.$ac_ext <<_ACEOF
29731/* confdefs.h. */
29732_ACEOF
29733cat confdefs.h >>conftest.$ac_ext
29734cat >>conftest.$ac_ext <<_ACEOF
29735/* end confdefs.h. */
29736/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29737 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29738#define $ac_func innocuous_$ac_func
29739
29740/* System header to define __stub macros and hopefully few prototypes,
29741 which can conflict with char $ac_func (); below.
29742 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29743 <limits.h> exists even on freestanding compilers. */
29744
29745#ifdef __STDC__
29746# include <limits.h>
29747#else
29748# include <assert.h>
29749#endif
29750
29751#undef $ac_func
29752
29753/* Override any gcc2 internal prototype to avoid an error. */
29754#ifdef __cplusplus
29755extern "C"
29756{
29757#endif
29758/* We use char because int might match the return type of a gcc2
29759 builtin and then its argument prototype would still apply. */
29760char $ac_func ();
29761/* The GNU C library defines this for functions which it implements
29762 to always fail with ENOSYS. Some functions are actually named
29763 something starting with __ and the normal name is an alias. */
29764#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29765choke me
29766#else
29767char (*f) () = $ac_func;
29768#endif
29769#ifdef __cplusplus
29770}
29771#endif
29772
29773int
29774main ()
29775{
29776return f != $ac_func;
29777 ;
29778 return 0;
29779}
29780_ACEOF
29781rm -f conftest.$ac_objext conftest$ac_exeext
29782if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29783 (eval $ac_link) 2>conftest.er1
29784 ac_status=$?
29785 grep -v '^ *+' conftest.er1 >conftest.err
29786 rm -f conftest.er1
29787 cat conftest.err >&5
29788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29789 (exit $ac_status); } &&
5d7b7554 29790 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
304205f1
VS
29791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29792 (eval $ac_try) 2>&5
29793 ac_status=$?
29794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29795 (exit $ac_status); }; } &&
29796 { ac_try='test -s conftest$ac_exeext'
29797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29798 (eval $ac_try) 2>&5
29799 ac_status=$?
29800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29801 (exit $ac_status); }; }; then
29802 eval "$as_ac_var=yes"
29803else
29804 echo "$as_me: failed program was:" >&5
29805sed 's/^/| /' conftest.$ac_ext >&5
29806
29807eval "$as_ac_var=no"
29808fi
29809rm -f conftest.err conftest.$ac_objext \
29810 conftest$ac_exeext conftest.$ac_ext
29811fi
29812echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29813echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29814if test `eval echo '${'$as_ac_var'}'` = yes; then
29815 cat >>confdefs.h <<_ACEOF
29816#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29817_ACEOF
29818
29819fi
29820done
29821
e56f4f9e 29822 CXXFLAGS="$save_CXXFLAGS"
304205f1 29823 LIBS="$save_LIBS"
a848cd7e
SC
29824 fi
29825
29826 wxUSE_UNIVERSAL="yes"
29827
29828 if test "$wxUSE_NANOX" = "yes"; then
29829 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
29830 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"
29831 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
29832 else
29833 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
29834 fi
29835
a848cd7e
SC
29836 TOOLKIT=X11
29837 GUIDIST=X11_DIST
29838 fi
29839
29840 if test "$wxUSE_MOTIF" = 1; then
0a08f02a
MB
29841 if test "$wxUSE_UNICODE" = "yes"; then
29842 { { echo "$as_me:$LINENO: error: Unicode configuration not supported with Motif" >&5
29843echo "$as_me: error: Unicode configuration not supported with Motif" >&2;}
29844 { (exit 1); exit 1; }; }
29845 fi
29846
74b84332
VS
29847 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
29848echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
a848cd7e 29849
74b84332
VS
29850ac_find_includes=
29851for ac_dir in $SEARCH_INCLUDE /usr/include;
29852 do
29853 if test -f "$ac_dir/Xm/Xm.h"; then
29854 ac_find_includes=$ac_dir
29855 break
29856 fi
29857 done
a848cd7e 29858
74b84332
VS
29859 if test "$ac_find_includes" != "" ; then
29860 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
29861echo "${ECHO_T}found in $ac_find_includes" >&6
29862
29863 if test "x$ac_find_includes" = "x/usr/include"; then
29864 ac_path_to_include=""
29865 else
29866 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
29867 result=$?
29868 if test $result = 0; then
29869 ac_path_to_include=""
29870 else
29871 ac_path_to_include=" -I$ac_find_includes"
29872 fi
a848cd7e
SC
29873 fi
29874
74b84332
VS
29875 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
29876 else
e56f4f9e
VZ
29877 save_CXXFLAGS=$CXXFLAGS
29878 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
e051b34e 29879
74b84332 29880 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
29881/* confdefs.h. */
29882_ACEOF
29883cat confdefs.h >>conftest.$ac_ext
29884cat >>conftest.$ac_ext <<_ACEOF
29885/* end confdefs.h. */
29886
74b84332
VS
29887 #include <Xm/Xm.h>
29888
a848cd7e
SC
29889int
29890main ()
29891{
29892
74b84332
VS
29893 int version;
29894 version = xmUseVersion;
29895
a848cd7e
SC
29896 ;
29897 return 0;
29898}
29899_ACEOF
74b84332
VS
29900rm -f conftest.$ac_objext
29901if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29902 (eval $ac_compile) 2>conftest.er1
a848cd7e 29903 ac_status=$?
ac1cb8d3
VS
29904 grep -v '^ *+' conftest.er1 >conftest.err
29905 rm -f conftest.er1
29906 cat conftest.err >&5
a848cd7e
SC
29907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29908 (exit $ac_status); } &&
5d7b7554 29909 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29911 (eval $ac_try) 2>&5
29912 ac_status=$?
29913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29914 (exit $ac_status); }; } &&
74b84332 29915 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29917 (eval $ac_try) 2>&5
29918 ac_status=$?
29919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29920 (exit $ac_status); }; }; then
74b84332
VS
29921
29922 echo "$as_me:$LINENO: result: found in default search path" >&5
29923echo "${ECHO_T}found in default search path" >&6
29924 COMPILED_X_PROGRAM=1
29925
a848cd7e
SC
29926else
29927 echo "$as_me: failed program was:" >&5
29928sed 's/^/| /' conftest.$ac_ext >&5
29929
a848cd7e 29930
74b84332
VS
29931 echo "$as_me:$LINENO: result: no" >&5
29932echo "${ECHO_T}no" >&6
e051b34e
MW
29933 { { echo "$as_me:$LINENO: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&5
29934echo "$as_me: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&2;}
74b84332 29935 { (exit 1); exit 1; }; }
a848cd7e 29936
a848cd7e 29937
a848cd7e 29938fi
74b84332 29939rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e051b34e 29940
e56f4f9e 29941 CXXFLAGS=$save_CXXFLAGS
74b84332
VS
29942 fi
29943
0ad5d837
VZ
29944
29945 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
74b84332
VS
29946echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
29947
0ad5d837
VZ
29948 ac_find_libraries=
29949 for ac_dir in $SEARCH_LIB;
74b84332 29950 do
3eca31dc 29951 for ac_extension in a so sl dylib dll.a; do
74b84332
VS
29952 if test -f "$ac_dir/libXm.$ac_extension"; then
29953 ac_find_libraries=$ac_dir
29954 break 2
a848cd7e 29955 fi
74b84332
VS
29956 done
29957 done
a848cd7e 29958
0ad5d837
VZ
29959
29960 if test "x$ac_find_libraries" != "x" ; then
29961 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
29962echo "${ECHO_T}found in $ac_find_libraries" >&6
a848cd7e 29963
74b84332 29964
0ad5d837 29965 if test "$ac_find_libraries" = "default location"; then
74b84332 29966 ac_path_to_link=""
a848cd7e 29967 else
0ad5d837
VZ
29968 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
29969 result=$?
29970 if test $result = 0; then
29971 ac_path_to_link=""
29972 else
29973 ac_path_to_link=" -L$ac_find_libraries"
29974 fi
74b84332
VS
29975 fi
29976
0ad5d837
VZ
29977 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
29978 else
e56f4f9e
VZ
29979 save_CXXFLAGS=$CXXFLAGS
29980 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
6f9cf1e6
MW
29981 save_LIBS="$LIBS"
29982 LIBS="$GUI_TK_LIBRARY -lXm -lXmu -lXext -lX11"
74b84332 29983
0ad5d837 29984 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
29985/* confdefs.h. */
29986_ACEOF
29987cat confdefs.h >>conftest.$ac_ext
29988cat >>conftest.$ac_ext <<_ACEOF
29989/* end confdefs.h. */
29990
0ad5d837 29991 #include <Xm/Xm.h>
74b84332 29992
a848cd7e
SC
29993int
29994main ()
29995{
74b84332 29996
0ad5d837
VZ
29997 int version;
29998 version = xmUseVersion;
74b84332 29999
a848cd7e
SC
30000 ;
30001 return 0;
30002}
30003_ACEOF
0ad5d837
VZ
30004rm -f conftest.$ac_objext conftest$ac_exeext
30005if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30006 (eval $ac_link) 2>conftest.er1
a848cd7e 30007 ac_status=$?
ac1cb8d3
VS
30008 grep -v '^ *+' conftest.er1 >conftest.err
30009 rm -f conftest.er1
30010 cat conftest.err >&5
a848cd7e
SC
30011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30012 (exit $ac_status); } &&
5d7b7554 30013 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30015 (eval $ac_try) 2>&5
30016 ac_status=$?
30017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30018 (exit $ac_status); }; } &&
0ad5d837 30019 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30021 (eval $ac_try) 2>&5
30022 ac_status=$?
30023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30024 (exit $ac_status); }; }; then
74b84332 30025
0ad5d837 30026 echo "$as_me:$LINENO: result: found in default search path" >&5
74b84332 30027echo "${ECHO_T}found in default search path" >&6
0ad5d837 30028 COMPILED_X_PROGRAM=1
74b84332 30029
a848cd7e
SC
30030else
30031 echo "$as_me: failed program was:" >&5
30032sed 's/^/| /' conftest.$ac_ext >&5
30033
74b84332 30034
6f9cf1e6 30035 echo "$as_me:$LINENO: result: no" >&5
74b84332 30036echo "${ECHO_T}no" >&6
6f9cf1e6 30037 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
74b84332
VS
30038echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
30039 { (exit 1); exit 1; }; }
30040
30041
30042fi
0ad5d837
VZ
30043rm -f conftest.err conftest.$ac_objext \
30044 conftest$ac_exeext conftest.$ac_ext
74b84332 30045
e56f4f9e 30046 CXXFLAGS=$save_CXXFLAGS
6f9cf1e6 30047 LIBS="$save_LIBS"
74b84332
VS
30048 fi
30049
30050 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
30051echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
30052 libp_link=""
30053 libsm_ice_link=""
30054 libs_found=0
30055 for libp in "" " -lXp"; do
30056 if test "$libs_found" = "0"; then
30057 for libsm_ice in "" " -lSM -lICE"; do
30058 if test "$libs_found" = "0"; then
30059 save_LIBS="$LIBS"
30060 LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
e56f4f9e
VZ
30061 save_CXXFLAGS=$CXXFLAGS
30062 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
74b84332
VS
30063
30064 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
30065/* confdefs.h. */
30066_ACEOF
30067cat confdefs.h >>conftest.$ac_ext
30068cat >>conftest.$ac_ext <<_ACEOF
30069/* end confdefs.h. */
30070
74b84332
VS
30071 #include <Xm/Xm.h>
30072 #include <Xm/List.h>
30073
a848cd7e
SC
30074int
30075main ()
30076{
74b84332
VS
30077
30078 XmString string = NULL;
30079 Widget w = NULL;
30080 int position = 0;
30081 XmListAddItem(w, string, position);
30082
a848cd7e
SC
30083 ;
30084 return 0;
30085}
30086_ACEOF
30087rm -f conftest.$ac_objext conftest$ac_exeext
30088if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30089 (eval $ac_link) 2>conftest.er1
a848cd7e 30090 ac_status=$?
ac1cb8d3
VS
30091 grep -v '^ *+' conftest.er1 >conftest.err
30092 rm -f conftest.er1
30093 cat conftest.err >&5
a848cd7e
SC
30094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30095 (exit $ac_status); } &&
5d7b7554 30096 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30098 (eval $ac_try) 2>&5
30099 ac_status=$?
30100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30101 (exit $ac_status); }; } &&
30102 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30104 (eval $ac_try) 2>&5
30105 ac_status=$?
30106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30107 (exit $ac_status); }; }; then
30108
30109 libp_link="$libp"
30110 libsm_ice_link="$libsm_ice"
30111 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
30112echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
30113 libs_found=1
30114
30115else
30116 echo "$as_me: failed program was:" >&5
30117sed 's/^/| /' conftest.$ac_ext >&5
30118
30119
30120
30121fi
ac1cb8d3
VS
30122rm -f conftest.err conftest.$ac_objext \
30123 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30124
30125 LIBS="$save_LIBS"
e56f4f9e 30126 CXXFLAGS=$save_CXXFLAGS
a848cd7e
SC
30127 fi
30128 done
30129 fi
30130 done
30131
30132 if test "$libs_found" = "0"; then
30133 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
30134echo "${ECHO_T}can't find the right libraries" >&6
30135 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
30136echo "$as_me: error: can't link a simple motif program" >&2;}
30137 { (exit 1); exit 1; }; }
30138 fi
30139
62fa8b3a
MW
30140 echo "$as_me:$LINENO: checking for SgCreateList in -lSgm" >&5
30141echo $ECHO_N "checking for SgCreateList in -lSgm... $ECHO_C" >&6
30142if test "${ac_cv_lib_Sgm_SgCreateList+set}" = set; then
30143 echo $ECHO_N "(cached) $ECHO_C" >&6
30144else
30145 ac_check_lib_save_LIBS=$LIBS
30146LIBS="-lSgm $LIBS"
30147cat >conftest.$ac_ext <<_ACEOF
30148/* confdefs.h. */
30149_ACEOF
30150cat confdefs.h >>conftest.$ac_ext
30151cat >>conftest.$ac_ext <<_ACEOF
30152/* end confdefs.h. */
30153
30154/* Override any gcc2 internal prototype to avoid an error. */
30155#ifdef __cplusplus
30156extern "C"
30157#endif
30158/* We use char because int might match the return type of a gcc2
30159 builtin and then its argument prototype would still apply. */
30160char SgCreateList ();
30161int
30162main ()
30163{
30164SgCreateList ();
30165 ;
30166 return 0;
30167}
30168_ACEOF
30169rm -f conftest.$ac_objext conftest$ac_exeext
30170if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30171 (eval $ac_link) 2>conftest.er1
30172 ac_status=$?
30173 grep -v '^ *+' conftest.er1 >conftest.err
30174 rm -f conftest.er1
30175 cat conftest.err >&5
30176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30177 (exit $ac_status); } &&
5d7b7554 30178 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
62fa8b3a
MW
30179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30180 (eval $ac_try) 2>&5
30181 ac_status=$?
30182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30183 (exit $ac_status); }; } &&
30184 { ac_try='test -s conftest$ac_exeext'
30185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30186 (eval $ac_try) 2>&5
30187 ac_status=$?
30188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30189 (exit $ac_status); }; }; then
30190 ac_cv_lib_Sgm_SgCreateList=yes
30191else
30192 echo "$as_me: failed program was:" >&5
30193sed 's/^/| /' conftest.$ac_ext >&5
30194
30195ac_cv_lib_Sgm_SgCreateList=no
30196fi
30197rm -f conftest.err conftest.$ac_objext \
30198 conftest$ac_exeext conftest.$ac_ext
30199LIBS=$ac_check_lib_save_LIBS
30200fi
30201echo "$as_me:$LINENO: result: $ac_cv_lib_Sgm_SgCreateList" >&5
30202echo "${ECHO_T}$ac_cv_lib_Sgm_SgCreateList" >&6
30203if test $ac_cv_lib_Sgm_SgCreateList = yes; then
30204 libsgm_link=" -lSgm"
30205fi
30206
30207
e56f4f9e
VZ
30208 save_CXXFLAGS=$CXXFLAGS
30209 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
0ad5d837 30210
a848cd7e
SC
30211 echo "$as_me:$LINENO: checking for Motif 2" >&5
30212echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
0ad5d837
VZ
30213if test "${wx_cv_lib_motif2+set}" = set; then
30214 echo $ECHO_N "(cached) $ECHO_C" >&6
30215else
30216 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
30217/* confdefs.h. */
30218_ACEOF
30219cat confdefs.h >>conftest.$ac_ext
30220cat >>conftest.$ac_ext <<_ACEOF
30221/* end confdefs.h. */
30222
0ad5d837 30223 #include <Xm/Xm.h>
a848cd7e
SC
30224
30225int
30226main ()
30227{
30228
0ad5d837
VZ
30229 #if XmVersion < 2000
30230 Not Motif 2
30231 #endif
a848cd7e
SC
30232
30233 ;
30234 return 0;
30235}
30236_ACEOF
30237rm -f conftest.$ac_objext
30238if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30239 (eval $ac_compile) 2>conftest.er1
a848cd7e 30240 ac_status=$?
ac1cb8d3
VS
30241 grep -v '^ *+' conftest.er1 >conftest.err
30242 rm -f conftest.er1
30243 cat conftest.err >&5
a848cd7e
SC
30244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30245 (exit $ac_status); } &&
5d7b7554 30246 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30248 (eval $ac_try) 2>&5
30249 ac_status=$?
30250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30251 (exit $ac_status); }; } &&
30252 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30254 (eval $ac_try) 2>&5
30255 ac_status=$?
30256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30257 (exit $ac_status); }; }; then
0ad5d837 30258 wx_cv_lib_motif2="yes"
a848cd7e
SC
30259else
30260 echo "$as_me: failed program was:" >&5
30261sed 's/^/| /' conftest.$ac_ext >&5
30262
0ad5d837
VZ
30263wx_cv_lib_motif2="no"
30264fi
30265rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30266fi
30267echo "$as_me:$LINENO: result: $wx_cv_lib_motif2" >&5
30268echo "${ECHO_T}$wx_cv_lib_motif2" >&6
30269 if test "$wx_cv_lib_motif2" = "yes"; then
30270 cat >>confdefs.h <<\_ACEOF
30271#define __WXMOTIF20__ 1
30272_ACEOF
a848cd7e 30273
0ad5d837
VZ
30274 else
30275 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
30276#define __WXMOTIF20__ 0
30277_ACEOF
30278
0ad5d837 30279 fi
2113bc77
MW
30280
30281 echo "$as_me:$LINENO: checking whether Motif is Lesstif" >&5
30282echo $ECHO_N "checking whether Motif is Lesstif... $ECHO_C" >&6
0ad5d837
VZ
30283if test "${wx_cv_lib_lesstif+set}" = set; then
30284 echo $ECHO_N "(cached) $ECHO_C" >&6
30285else
30286 cat >conftest.$ac_ext <<_ACEOF
2113bc77
MW
30287/* confdefs.h. */
30288_ACEOF
30289cat confdefs.h >>conftest.$ac_ext
30290cat >>conftest.$ac_ext <<_ACEOF
30291/* end confdefs.h. */
30292
0ad5d837 30293 #include <Xm/Xm.h>
2113bc77
MW
30294
30295int
30296main ()
30297{
30298
0ad5d837
VZ
30299 #if !defined(LesstifVersion) || LesstifVersion <= 0
30300 Not Lesstif
30301 #endif
2113bc77
MW
30302
30303 ;
30304 return 0;
30305}
30306_ACEOF
30307rm -f conftest.$ac_objext
30308if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30309 (eval $ac_compile) 2>conftest.er1
30310 ac_status=$?
30311 grep -v '^ *+' conftest.er1 >conftest.err
30312 rm -f conftest.er1
30313 cat conftest.err >&5
30314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30315 (exit $ac_status); } &&
5d7b7554 30316 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2113bc77
MW
30317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30318 (eval $ac_try) 2>&5
30319 ac_status=$?
30320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30321 (exit $ac_status); }; } &&
30322 { ac_try='test -s conftest.$ac_objext'
30323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30324 (eval $ac_try) 2>&5
30325 ac_status=$?
30326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30327 (exit $ac_status); }; }; then
0ad5d837 30328 wx_cv_lib_lesstif="yes"
2113bc77
MW
30329else
30330 echo "$as_me: failed program was:" >&5
30331sed 's/^/| /' conftest.$ac_ext >&5
30332
0ad5d837
VZ
30333wx_cv_lib_lesstif="no"
30334fi
30335rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2113bc77 30336
0ad5d837
VZ
30337fi
30338echo "$as_me:$LINENO: result: $wx_cv_lib_lesstif" >&5
30339echo "${ECHO_T}$wx_cv_lib_lesstif" >&6
30340 if test "$wx_cv_lib_lesstif" = "yes"; then
30341 cat >>confdefs.h <<\_ACEOF
30342#define __WXLESSTIF__ 1
30343_ACEOF
30344
30345 else
30346 cat >>confdefs.h <<\_ACEOF
2113bc77
MW
30347#define __WXLESSTIF__ 0
30348_ACEOF
30349
0ad5d837 30350 fi
2113bc77 30351
e56f4f9e 30352 CXXFLAGS=$save_CXXFLAGS
a848cd7e 30353
62fa8b3a 30354 GUI_TK_LIBRARY="$GUI_TK_LIBRARY${libsgm_link} -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
a848cd7e
SC
30355 TOOLKIT=MOTIF
30356 GUIDIST=MOTIF_DIST
30357 fi
30358
74b84332 30359 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
a848cd7e
SC
30360 if test "$wxUSE_LIBXPM" = "sys"; then
30361 echo "$as_me:$LINENO: checking for Xpm library" >&5
30362echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
30363
0ad5d837
VZ
30364 ac_find_libraries=
30365 for ac_dir in $SEARCH_LIB;
a848cd7e 30366 do
3eca31dc 30367 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
30368 if test -f "$ac_dir/libXpm.$ac_extension"; then
30369 ac_find_libraries=$ac_dir
30370 break 2
30371 fi
30372 done
30373 done
30374
30375 if test "$ac_find_libraries" != "" ; then
30376
0ad5d837 30377 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
30378 ac_path_to_link=""
30379 else
0ad5d837
VZ
30380 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
30381 result=$?
30382 if test $result = 0; then
30383 ac_path_to_link=""
30384 else
30385 ac_path_to_link=" -L$ac_find_libraries"
30386 fi
a848cd7e
SC
30387 fi
30388
30389 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
0ad5d837
VZ
30390 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
30391echo "${ECHO_T}found in $ac_find_libraries" >&6
a848cd7e
SC
30392
30393 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
30394echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
30395if test "${wx_cv_x11_xpm_h+set}" = set; then
30396 echo $ECHO_N "(cached) $ECHO_C" >&6
30397else
30398
e56f4f9e
VZ
30399 save_CXXFLAGS=$CXXFLAGS
30400 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
a848cd7e
SC
30401
30402 cat >conftest.$ac_ext <<_ACEOF
30403/* confdefs.h. */
30404_ACEOF
30405cat confdefs.h >>conftest.$ac_ext
30406cat >>conftest.$ac_ext <<_ACEOF
30407/* end confdefs.h. */
30408
30409 #include <X11/xpm.h>
30410
30411int
30412main ()
30413{
30414
30415 int version;
30416 version = XpmLibraryVersion();
30417
30418 ;
30419 return 0;
30420}
30421_ACEOF
30422rm -f conftest.$ac_objext
30423if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30424 (eval $ac_compile) 2>conftest.er1
a848cd7e 30425 ac_status=$?
ac1cb8d3
VS
30426 grep -v '^ *+' conftest.er1 >conftest.err
30427 rm -f conftest.er1
30428 cat conftest.err >&5
a848cd7e
SC
30429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30430 (exit $ac_status); } &&
5d7b7554 30431 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30433 (eval $ac_try) 2>&5
30434 ac_status=$?
30435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30436 (exit $ac_status); }; } &&
30437 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30439 (eval $ac_try) 2>&5
30440 ac_status=$?
30441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30442 (exit $ac_status); }; }; then
30443 wx_cv_x11_xpm_h=yes
30444else
30445 echo "$as_me: failed program was:" >&5
30446sed 's/^/| /' conftest.$ac_ext >&5
30447
30448wx_cv_x11_xpm_h=no
30449
30450fi
ac1cb8d3 30451rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 30452
e56f4f9e 30453 CXXFLAGS=$save_CXXFLAGS
a848cd7e
SC
30454
30455
30456fi
30457echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
30458echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
30459
30460 if test $wx_cv_x11_xpm_h = "yes"; then
30461 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
30462 cat >>confdefs.h <<\_ACEOF
30463#define wxHAVE_LIB_XPM 1
30464_ACEOF
30465
30466 else
30467 { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
30468echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
30469 fi
30470 fi
30471
30472 fi
30473
30474 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
30475echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
30476if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
30477 echo $ECHO_N "(cached) $ECHO_C" >&6
30478else
30479 ac_check_lib_save_LIBS=$LIBS
30480LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
30481cat >conftest.$ac_ext <<_ACEOF
30482/* confdefs.h. */
30483_ACEOF
30484cat confdefs.h >>conftest.$ac_ext
30485cat >>conftest.$ac_ext <<_ACEOF
30486/* end confdefs.h. */
30487
30488/* Override any gcc2 internal prototype to avoid an error. */
30489#ifdef __cplusplus
30490extern "C"
30491#endif
30492/* We use char because int might match the return type of a gcc2
30493 builtin and then its argument prototype would still apply. */
30494char XShapeQueryExtension ();
30495int
30496main ()
30497{
30498XShapeQueryExtension ();
30499 ;
30500 return 0;
30501}
30502_ACEOF
30503rm -f conftest.$ac_objext conftest$ac_exeext
30504if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30505 (eval $ac_link) 2>conftest.er1
a848cd7e 30506 ac_status=$?
ac1cb8d3
VS
30507 grep -v '^ *+' conftest.er1 >conftest.err
30508 rm -f conftest.er1
30509 cat conftest.err >&5
a848cd7e
SC
30510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30511 (exit $ac_status); } &&
5d7b7554 30512 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30514 (eval $ac_try) 2>&5
30515 ac_status=$?
30516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30517 (exit $ac_status); }; } &&
30518 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30520 (eval $ac_try) 2>&5
30521 ac_status=$?
30522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30523 (exit $ac_status); }; }; then
30524 ac_cv_lib_Xext_XShapeQueryExtension=yes
30525else
30526 echo "$as_me: failed program was:" >&5
30527sed 's/^/| /' conftest.$ac_ext >&5
30528
30529ac_cv_lib_Xext_XShapeQueryExtension=no
30530fi
ac1cb8d3
VS
30531rm -f conftest.err conftest.$ac_objext \
30532 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30533LIBS=$ac_check_lib_save_LIBS
30534fi
30535echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
30536echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
30537if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
30538
30539 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
30540 wxHAVE_XEXT_LIB=1
30541
30542fi
30543
30544
30545 if test "$wxHAVE_XEXT_LIB" = 1; then
e56f4f9e
VZ
30546 save_CXXFLAGS="$CXXFLAGS"
30547 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
a848cd7e
SC
30548
30549 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
30550echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
30551 cat >conftest.$ac_ext <<_ACEOF
30552/* confdefs.h. */
30553_ACEOF
30554cat confdefs.h >>conftest.$ac_ext
30555cat >>conftest.$ac_ext <<_ACEOF
30556/* end confdefs.h. */
30557
30558 #include <X11/Xlib.h>
30559 #include <X11/extensions/shape.h>
30560
30561int
30562main ()
30563{
30564
30565 int dummy1, dummy2;
30566 XShapeQueryExtension((Display*)NULL,
30567 (int*)NULL, (int*)NULL);
30568
30569 ;
30570 return 0;
30571}
30572_ACEOF
30573rm -f conftest.$ac_objext
30574if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30575 (eval $ac_compile) 2>conftest.er1
a848cd7e 30576 ac_status=$?
ac1cb8d3
VS
30577 grep -v '^ *+' conftest.er1 >conftest.err
30578 rm -f conftest.er1
30579 cat conftest.err >&5
a848cd7e
SC
30580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30581 (exit $ac_status); } &&
5d7b7554 30582 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30584 (eval $ac_try) 2>&5
30585 ac_status=$?
30586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30587 (exit $ac_status); }; } &&
30588 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30590 (eval $ac_try) 2>&5
30591 ac_status=$?
30592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30593 (exit $ac_status); }; }; then
30594
30595 cat >>confdefs.h <<\_ACEOF
30596#define HAVE_XSHAPE 1
30597_ACEOF
30598
30599 echo "$as_me:$LINENO: result: found" >&5
30600echo "${ECHO_T}found" >&6
30601
30602else
30603 echo "$as_me: failed program was:" >&5
30604sed 's/^/| /' conftest.$ac_ext >&5
30605
30606
30607 echo "$as_me:$LINENO: result: not found" >&5
30608echo "${ECHO_T}not found" >&6
30609
30610fi
ac1cb8d3 30611rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e56f4f9e 30612 CXXFLAGS="$save_CXXFLAGS"
a848cd7e
SC
30613
30614 fi
30615 fi
30616
30617 if test "$wxUSE_MAC" = 1; then
30618 echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
30619echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
30620 if test "$GCC" = yes; then
30621 echo "$as_me:$LINENO: result: gcc" >&5
30622echo "${ECHO_T}gcc" >&6
30623 CPPFLAGS_PASCAL="-fpascal-strings"
30624 elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
30625 echo "$as_me:$LINENO: result: xlc" >&5
30626echo "${ECHO_T}xlc" >&6
30627 CPPFLAGS_PASCAL="-qmacpstr"
30628 else
30629 echo "$as_me:$LINENO: result: none" >&5
30630echo "${ECHO_T}none" >&6
30631 fi
30632
1e9e8aba 30633 if test "x$wxUSE_UNIX" = "xyes"; then
c92ad099 30634 CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon $CPPFLAGS"
1e9e8aba 30635 else
c92ad099 30636 CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON $CPPFLAGS"
1e9e8aba 30637 fi
a848cd7e 30638
a848cd7e
SC
30639 TOOLKIT=MAC
30640 GUIDIST=MACX_DIST
dd21ced8 30641 WXBASEPORT="_carbon"
a848cd7e
SC
30642 fi
30643
30644 if test "$wxUSE_COCOA" = 1; then
a848cd7e
SC
30645 TOOLKIT=COCOA
30646 GUIDIST=COCOA_DIST
30647 fi
30648
30649 if test "$wxUSE_PM" = 1; then
30650 TOOLKIT=PM
de59c161
RD
30651 GUIDIST=PM_DIST
30652 echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
30653echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6
30654if test "${wx_cv_spbcdata+set}" = set; then
30655 echo $ECHO_N "(cached) $ECHO_C" >&6
30656else
30657
30658 cat >conftest.$ac_ext <<_ACEOF
de59c161
RD
30659/* confdefs.h. */
30660_ACEOF
30661cat confdefs.h >>conftest.$ac_ext
30662cat >>conftest.$ac_ext <<_ACEOF
30663/* end confdefs.h. */
30664
30665 #define INCL_PM
30666 #include <os2.h>
30667
30668int
30669main ()
30670{
30671
30672 SPBCDATA test;
30673
30674 ;
30675 return 0;
30676}
30677_ACEOF
30678rm -f conftest.$ac_objext
30679if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30680 (eval $ac_compile) 2>conftest.er1
de59c161 30681 ac_status=$?
ac1cb8d3
VS
30682 grep -v '^ *+' conftest.er1 >conftest.err
30683 rm -f conftest.er1
30684 cat conftest.err >&5
de59c161
RD
30685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30686 (exit $ac_status); } &&
5d7b7554 30687 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30689 (eval $ac_try) 2>&5
30690 ac_status=$?
30691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30692 (exit $ac_status); }; } &&
30693 { ac_try='test -s conftest.$ac_objext'
de59c161
RD
30694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30695 (eval $ac_try) 2>&5
30696 ac_status=$?
30697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30698 (exit $ac_status); }; }; then
30699 wx_cv_spbcdata=yes
30700else
30701 echo "$as_me: failed program was:" >&5
30702sed 's/^/| /' conftest.$ac_ext >&5
30703
30704wx_cv_spbcdata=no
30705
30706fi
ac1cb8d3 30707rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
de59c161
RD
30708
30709
30710fi
30711echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
30712echo "${ECHO_T}$wx_cv_spbcdata" >&6
30713
30714 if test $wx_cv_spbcdata = "yes"; then
30715 cat >>confdefs.h <<\_ACEOF
30716#define HAVE_SPBCDATA 1
30717_ACEOF
30718
30719 fi
a848cd7e
SC
30720 fi
30721
30722 if test "$TOOLKIT" = "PM" ; then
30723 TOOLKIT_DIR="os2"
30724 else
30725 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
30726 fi
30727
a848cd7e 30728 if test "$wxUSE_UNIVERSAL" = "yes"; then
a848cd7e
SC
30729 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
30730 WIDGET_SET=univ
a848cd7e
SC
30731 fi
30732
30733 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
30734 DISTDIR="wx\$(TOOLKIT)"
30735else
30736 USE_GUI=0
30737
30738 TOOLKIT_DIR="base"
30739
30740 if test "$USE_WIN32" = 1 ; then
a848cd7e 30741 TOOLKIT="MSW"
a848cd7e
SC
30742 fi
30743
a848cd7e
SC
30744 GUIDIST="BASE_DIST"
30745 DISTDIR="wxBase"
30746fi
30747
30748
d12aef51
VZ
30749if test "$wxUSE_GUI" = "yes"; then
30750 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
30751
30752for ac_header in X11/Xlib.h
30753do
30754as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30755if eval "test \"\${$as_ac_Header+set}\" = set"; then
30756 echo "$as_me:$LINENO: checking for $ac_header" >&5
30757echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30758if eval "test \"\${$as_ac_Header+set}\" = set"; then
30759 echo $ECHO_N "(cached) $ECHO_C" >&6
30760fi
30761echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30762echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30763else
30764 # Is the header compilable?
30765echo "$as_me:$LINENO: checking $ac_header usability" >&5
30766echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30767cat >conftest.$ac_ext <<_ACEOF
30768/* confdefs.h. */
30769_ACEOF
30770cat confdefs.h >>conftest.$ac_ext
30771cat >>conftest.$ac_ext <<_ACEOF
30772/* end confdefs.h. */
30773$ac_includes_default
30774#include <$ac_header>
30775_ACEOF
30776rm -f conftest.$ac_objext
30777if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30778 (eval $ac_compile) 2>conftest.er1
30779 ac_status=$?
30780 grep -v '^ *+' conftest.er1 >conftest.err
30781 rm -f conftest.er1
30782 cat conftest.err >&5
30783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30784 (exit $ac_status); } &&
5d7b7554 30785 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
d12aef51
VZ
30786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30787 (eval $ac_try) 2>&5
30788 ac_status=$?
30789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30790 (exit $ac_status); }; } &&
30791 { ac_try='test -s conftest.$ac_objext'
30792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30793 (eval $ac_try) 2>&5
30794 ac_status=$?
30795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30796 (exit $ac_status); }; }; then
30797 ac_header_compiler=yes
30798else
30799 echo "$as_me: failed program was:" >&5
30800sed 's/^/| /' conftest.$ac_ext >&5
30801
30802ac_header_compiler=no
30803fi
30804rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30805echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30806echo "${ECHO_T}$ac_header_compiler" >&6
30807
30808# Is the header present?
30809echo "$as_me:$LINENO: checking $ac_header presence" >&5
30810echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30811cat >conftest.$ac_ext <<_ACEOF
30812/* confdefs.h. */
30813_ACEOF
30814cat confdefs.h >>conftest.$ac_ext
30815cat >>conftest.$ac_ext <<_ACEOF
30816/* end confdefs.h. */
30817#include <$ac_header>
30818_ACEOF
30819if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30820 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30821 ac_status=$?
30822 grep -v '^ *+' conftest.er1 >conftest.err
30823 rm -f conftest.er1
30824 cat conftest.err >&5
30825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30826 (exit $ac_status); } >/dev/null; then
30827 if test -s conftest.err; then
5d7b7554
VZ
30828 ac_cpp_err=$ac_cxx_preproc_warn_flag
30829 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
d12aef51
VZ
30830 else
30831 ac_cpp_err=
30832 fi
30833else
30834 ac_cpp_err=yes
30835fi
30836if test -z "$ac_cpp_err"; then
30837 ac_header_preproc=yes
30838else
30839 echo "$as_me: failed program was:" >&5
30840sed 's/^/| /' conftest.$ac_ext >&5
30841
30842 ac_header_preproc=no
30843fi
30844rm -f conftest.err conftest.$ac_ext
30845echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30846echo "${ECHO_T}$ac_header_preproc" >&6
30847
30848# So? What about this header?
5d7b7554 30849case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
d12aef51
VZ
30850 yes:no: )
30851 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30852echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30853 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30854echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30855 ac_header_preproc=yes
30856 ;;
30857 no:yes:* )
30858 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30859echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30860 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30861echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30862 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30863echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30864 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30865echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30866 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30867echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30868 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30869echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30870 (
30871 cat <<\_ASBOX
30872## ----------------------------------------- ##
30873## Report this to wx-dev@lists.wxwidgets.org ##
30874## ----------------------------------------- ##
30875_ASBOX
30876 ) |
30877 sed "s/^/$as_me: WARNING: /" >&2
30878 ;;
30879esac
30880echo "$as_me:$LINENO: checking for $ac_header" >&5
30881echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30882if eval "test \"\${$as_ac_Header+set}\" = set"; then
30883 echo $ECHO_N "(cached) $ECHO_C" >&6
30884else
30885 eval "$as_ac_Header=\$ac_header_preproc"
30886fi
30887echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30888echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30889
30890fi
30891if test `eval echo '${'$as_ac_Header'}'` = yes; then
30892 cat >>confdefs.h <<_ACEOF
30893#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30894_ACEOF
30895
30896fi
30897
30898done
30899
30900
30901for ac_header in X11/XKBlib.h
30902do
30903as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30904echo "$as_me:$LINENO: checking for $ac_header" >&5
30905echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30906if eval "test \"\${$as_ac_Header+set}\" = set"; then
30907 echo $ECHO_N "(cached) $ECHO_C" >&6
30908else
30909 cat >conftest.$ac_ext <<_ACEOF
30910/* confdefs.h. */
30911_ACEOF
30912cat confdefs.h >>conftest.$ac_ext
30913cat >>conftest.$ac_ext <<_ACEOF
30914/* end confdefs.h. */
30915
30916 #if HAVE_X11_XLIB_H
30917 #include <X11/Xlib.h>
30918 #endif
30919
30920
30921#include <$ac_header>
30922_ACEOF
30923rm -f conftest.$ac_objext
30924if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30925 (eval $ac_compile) 2>conftest.er1
30926 ac_status=$?
30927 grep -v '^ *+' conftest.er1 >conftest.err
30928 rm -f conftest.er1
30929 cat conftest.err >&5
30930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30931 (exit $ac_status); } &&
5d7b7554 30932 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
d12aef51
VZ
30933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30934 (eval $ac_try) 2>&5
30935 ac_status=$?
30936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30937 (exit $ac_status); }; } &&
30938 { ac_try='test -s conftest.$ac_objext'
30939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30940 (eval $ac_try) 2>&5
30941 ac_status=$?
30942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30943 (exit $ac_status); }; }; then
30944 eval "$as_ac_Header=yes"
30945else
30946 echo "$as_me: failed program was:" >&5
30947sed 's/^/| /' conftest.$ac_ext >&5
30948
30949eval "$as_ac_Header=no"
30950fi
30951rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30952fi
30953echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30954echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30955if test `eval echo '${'$as_ac_Header'}'` = yes; then
30956 cat >>confdefs.h <<_ACEOF
30957#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30958_ACEOF
30959
30960fi
30961
30962done
30963
30964 fi
30965fi
30966
a848cd7e
SC
30967
30968
30969IODBC_C_SRC=""
30970
30971
30972if test "$TOOLKIT" != "MSW" ; then
30973
30974 if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
30975
30976 if test "${ac_cv_header_sql_h+set}" = set; then
30977 echo "$as_me:$LINENO: checking for sql.h" >&5
30978echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
30979if test "${ac_cv_header_sql_h+set}" = set; then
30980 echo $ECHO_N "(cached) $ECHO_C" >&6
30981fi
30982echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
30983echo "${ECHO_T}$ac_cv_header_sql_h" >&6
30984else
30985 # Is the header compilable?
30986echo "$as_me:$LINENO: checking sql.h usability" >&5
30987echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
30988cat >conftest.$ac_ext <<_ACEOF
30989/* confdefs.h. */
30990_ACEOF
30991cat confdefs.h >>conftest.$ac_ext
30992cat >>conftest.$ac_ext <<_ACEOF
30993/* end confdefs.h. */
30994$ac_includes_default
30995#include <sql.h>
30996_ACEOF
30997rm -f conftest.$ac_objext
30998if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30999 (eval $ac_compile) 2>conftest.er1
a848cd7e 31000 ac_status=$?
ac1cb8d3
VS
31001 grep -v '^ *+' conftest.er1 >conftest.err
31002 rm -f conftest.er1
31003 cat conftest.err >&5
a848cd7e
SC
31004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31005 (exit $ac_status); } &&
5d7b7554 31006 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31008 (eval $ac_try) 2>&5
31009 ac_status=$?
31010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31011 (exit $ac_status); }; } &&
31012 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31014 (eval $ac_try) 2>&5
31015 ac_status=$?
31016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31017 (exit $ac_status); }; }; then
31018 ac_header_compiler=yes
31019else
31020 echo "$as_me: failed program was:" >&5
31021sed 's/^/| /' conftest.$ac_ext >&5
31022
31023ac_header_compiler=no
31024fi
ac1cb8d3 31025rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31026echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31027echo "${ECHO_T}$ac_header_compiler" >&6
31028
31029# Is the header present?
31030echo "$as_me:$LINENO: checking sql.h presence" >&5
31031echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
31032cat >conftest.$ac_ext <<_ACEOF
31033/* confdefs.h. */
31034_ACEOF
31035cat confdefs.h >>conftest.$ac_ext
31036cat >>conftest.$ac_ext <<_ACEOF
31037/* end confdefs.h. */
31038#include <sql.h>
31039_ACEOF
31040if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31041 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31042 ac_status=$?
31043 grep -v '^ *+' conftest.er1 >conftest.err
31044 rm -f conftest.er1
31045 cat conftest.err >&5
31046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31047 (exit $ac_status); } >/dev/null; then
31048 if test -s conftest.err; then
5d7b7554
VZ
31049 ac_cpp_err=$ac_cxx_preproc_warn_flag
31050 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
31051 else
31052 ac_cpp_err=
31053 fi
31054else
31055 ac_cpp_err=yes
31056fi
31057if test -z "$ac_cpp_err"; then
31058 ac_header_preproc=yes
31059else
31060 echo "$as_me: failed program was:" >&5
31061sed 's/^/| /' conftest.$ac_ext >&5
31062
31063 ac_header_preproc=no
31064fi
31065rm -f conftest.err conftest.$ac_ext
31066echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31067echo "${ECHO_T}$ac_header_preproc" >&6
31068
31069# So? What about this header?
5d7b7554 31070case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 31071 yes:no: )
a848cd7e
SC
31072 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
31073echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
31074 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
31075echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
31076 ac_header_preproc=yes
a848cd7e 31077 ;;
ac1cb8d3 31078 no:yes:* )
a848cd7e
SC
31079 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
31080echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
31081 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
31082echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
31083 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
31084echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
31085 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
31086echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
31087 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
31088echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
31089 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
31090echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
31091 (
31092 cat <<\_ASBOX
ac1cb8d3
VS
31093## ----------------------------------------- ##
31094## Report this to wx-dev@lists.wxwidgets.org ##
31095## ----------------------------------------- ##
a848cd7e
SC
31096_ASBOX
31097 ) |
31098 sed "s/^/$as_me: WARNING: /" >&2
31099 ;;
31100esac
31101echo "$as_me:$LINENO: checking for sql.h" >&5
31102echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
31103if test "${ac_cv_header_sql_h+set}" = set; then
31104 echo $ECHO_N "(cached) $ECHO_C" >&6
31105else
31106 ac_cv_header_sql_h=$ac_header_preproc
31107fi
31108echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
31109echo "${ECHO_T}$ac_cv_header_sql_h" >&6
31110
31111fi
31112if test $ac_cv_header_sql_h = yes; then
31113 found_sql_h=1
31114fi
31115
31116
31117 if test "x$found_sql_h" = "x1" ; then
31118 echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
31119echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
31120if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
31121 echo $ECHO_N "(cached) $ECHO_C" >&6
31122else
31123 ac_check_lib_save_LIBS=$LIBS
31124LIBS="-liodbc $LIBS"
31125cat >conftest.$ac_ext <<_ACEOF
31126/* confdefs.h. */
31127_ACEOF
31128cat confdefs.h >>conftest.$ac_ext
31129cat >>conftest.$ac_ext <<_ACEOF
31130/* end confdefs.h. */
31131
31132/* Override any gcc2 internal prototype to avoid an error. */
31133#ifdef __cplusplus
31134extern "C"
31135#endif
31136/* We use char because int might match the return type of a gcc2
31137 builtin and then its argument prototype would still apply. */
31138char SQLAllocEnv ();
31139int
31140main ()
31141{
31142SQLAllocEnv ();
31143 ;
31144 return 0;
31145}
31146_ACEOF
31147rm -f conftest.$ac_objext conftest$ac_exeext
31148if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31149 (eval $ac_link) 2>conftest.er1
a848cd7e 31150 ac_status=$?
ac1cb8d3
VS
31151 grep -v '^ *+' conftest.er1 >conftest.err
31152 rm -f conftest.er1
31153 cat conftest.err >&5
a848cd7e
SC
31154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31155 (exit $ac_status); } &&
5d7b7554 31156 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31158 (eval $ac_try) 2>&5
31159 ac_status=$?
31160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31161 (exit $ac_status); }; } &&
31162 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31164 (eval $ac_try) 2>&5
31165 ac_status=$?
31166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31167 (exit $ac_status); }; }; then
31168 ac_cv_lib_iodbc_SQLAllocEnv=yes
31169else
31170 echo "$as_me: failed program was:" >&5
31171sed 's/^/| /' conftest.$ac_ext >&5
31172
31173ac_cv_lib_iodbc_SQLAllocEnv=no
31174fi
ac1cb8d3
VS
31175rm -f conftest.err conftest.$ac_objext \
31176 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31177LIBS=$ac_check_lib_save_LIBS
31178fi
31179echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
31180echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
31181if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
31182 ODBC_LINK=" -liodbc"
31183else
31184
31185 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
31186echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
31187if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
31188 echo $ECHO_N "(cached) $ECHO_C" >&6
31189else
31190 ac_check_lib_save_LIBS=$LIBS
31191LIBS="-lunixodbc $LIBS"
31192cat >conftest.$ac_ext <<_ACEOF
31193/* confdefs.h. */
31194_ACEOF
31195cat confdefs.h >>conftest.$ac_ext
31196cat >>conftest.$ac_ext <<_ACEOF
31197/* end confdefs.h. */
31198
31199/* Override any gcc2 internal prototype to avoid an error. */
31200#ifdef __cplusplus
31201extern "C"
31202#endif
31203/* We use char because int might match the return type of a gcc2
31204 builtin and then its argument prototype would still apply. */
31205char SQLAllocEnv ();
31206int
31207main ()
31208{
31209SQLAllocEnv ();
31210 ;
31211 return 0;
31212}
31213_ACEOF
31214rm -f conftest.$ac_objext conftest$ac_exeext
31215if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31216 (eval $ac_link) 2>conftest.er1
a848cd7e 31217 ac_status=$?
ac1cb8d3
VS
31218 grep -v '^ *+' conftest.er1 >conftest.err
31219 rm -f conftest.er1
31220 cat conftest.err >&5
a848cd7e
SC
31221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31222 (exit $ac_status); } &&
5d7b7554 31223 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31225 (eval $ac_try) 2>&5
31226 ac_status=$?
31227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31228 (exit $ac_status); }; } &&
31229 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31231 (eval $ac_try) 2>&5
31232 ac_status=$?
31233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31234 (exit $ac_status); }; }; then
31235 ac_cv_lib_unixodbc_SQLAllocEnv=yes
31236else
31237 echo "$as_me: failed program was:" >&5
31238sed 's/^/| /' conftest.$ac_ext >&5
31239
31240ac_cv_lib_unixodbc_SQLAllocEnv=no
31241fi
ac1cb8d3
VS
31242rm -f conftest.err conftest.$ac_objext \
31243 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31244LIBS=$ac_check_lib_save_LIBS
31245fi
31246echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
31247echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
31248if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
31249 ODBC_LINK=" -lunixodbc"
31250else
31251
31252 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
31253echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
31254if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
31255 echo $ECHO_N "(cached) $ECHO_C" >&6
31256else
31257 ac_check_lib_save_LIBS=$LIBS
31258LIBS="-lodbc $LIBS"
31259cat >conftest.$ac_ext <<_ACEOF
31260/* confdefs.h. */
31261_ACEOF
31262cat confdefs.h >>conftest.$ac_ext
31263cat >>conftest.$ac_ext <<_ACEOF
31264/* end confdefs.h. */
31265
31266/* Override any gcc2 internal prototype to avoid an error. */
31267#ifdef __cplusplus
31268extern "C"
31269#endif
31270/* We use char because int might match the return type of a gcc2
31271 builtin and then its argument prototype would still apply. */
31272char SQLAllocEnv ();
31273int
31274main ()
31275{
31276SQLAllocEnv ();
31277 ;
31278 return 0;
31279}
31280_ACEOF
31281rm -f conftest.$ac_objext conftest$ac_exeext
31282if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31283 (eval $ac_link) 2>conftest.er1
a848cd7e 31284 ac_status=$?
ac1cb8d3
VS
31285 grep -v '^ *+' conftest.er1 >conftest.err
31286 rm -f conftest.er1
31287 cat conftest.err >&5
a848cd7e
SC
31288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31289 (exit $ac_status); } &&
5d7b7554 31290 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31292 (eval $ac_try) 2>&5
31293 ac_status=$?
31294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31295 (exit $ac_status); }; } &&
31296 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31298 (eval $ac_try) 2>&5
31299 ac_status=$?
31300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31301 (exit $ac_status); }; }; then
31302 ac_cv_lib_odbc_SQLAllocEnv=yes
31303else
31304 echo "$as_me: failed program was:" >&5
31305sed 's/^/| /' conftest.$ac_ext >&5
31306
31307ac_cv_lib_odbc_SQLAllocEnv=no
31308fi
ac1cb8d3
VS
31309rm -f conftest.err conftest.$ac_objext \
31310 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31311LIBS=$ac_check_lib_save_LIBS
31312fi
31313echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
31314echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
31315if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
31316 ODBC_LINK=" -lodbc"
31317fi
31318
31319
31320fi
31321
31322
31323fi
31324
31325 fi
31326 if test "x$ODBC_LINK" = "x" ; then
31327 if test "$wxUSE_ODBC" = "sys" ; then
31328 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
31329echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
31330 { (exit 1); exit 1; }; }
31331 else
31332 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
31333echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
31334 wxUSE_ODBC=builtin
31335 fi
31336 else
31337 wxUSE_ODBC=sys
31338 fi
31339 fi
a848cd7e 31340
2da0c077
RD
31341 if test "$wxUSE_ODBC" = "builtin" ; then
31342 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
31343#define wxUSE_BUILTIN_IODBC 1
31344_ACEOF
31345
a848cd7e
SC
31346 fi
31347fi
31348
2da0c077
RD
31349if test "$wxUSE_ODBC" != "no" ; then
31350 cat >>confdefs.h <<\_ACEOF
31351#define wxUSE_ODBC 1
31352_ACEOF
31353
31354 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
31355
5ff751d6 31356 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_IODBC_"
2da0c077 31357fi
a848cd7e 31358
01cb68df 31359
a848cd7e 31360if test "$wxUSE_DISPLAY" = "yes"; then
2a5d7a98 31361 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
a848cd7e
SC
31362 echo "$as_me:$LINENO: checking for Xinerama" >&5
31363echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
31364
0ad5d837
VZ
31365 ac_find_libraries=
31366 for ac_dir in $SEARCH_LIB;
31367 do
31368 for ac_extension in a so sl dylib dll.a; do
31369 if test -f "$ac_dir/libXinerama.$ac_extension"; then
31370 ac_find_libraries=$ac_dir
31371 break 2
31372 fi
31373 done
31374 done
31375
a848cd7e
SC
31376 if test "$ac_find_libraries" != "" ; then
31377
0ad5d837 31378 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
31379 ac_path_to_link=""
31380 else
0ad5d837
VZ
31381 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
31382 result=$?
31383 if test $result = 0; then
31384 ac_path_to_link=""
31385 else
31386 ac_path_to_link=" -L$ac_find_libraries"
31387 fi
a848cd7e
SC
31388 fi
31389
31390 if test "$ac_path_to_link" != " -L/usr/lib" ; then
31391 LDFLAGS="$LDFLAGS $ac_path_to_link"
31392 fi
31393 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
31394 echo "$as_me:$LINENO: result: yes" >&5
31395echo "${ECHO_T}yes" >&6
31396
31397 echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
31398echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
31399
0ad5d837
VZ
31400 ac_find_libraries=
31401 for ac_dir in $SEARCH_LIB;
a848cd7e 31402 do
3eca31dc 31403 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
31404 if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
31405 ac_find_libraries=$ac_dir
31406 break 2
31407 fi
31408 done
31409 done
31410
31411 if test "$ac_find_libraries" != "" ; then
31412 echo "$as_me:$LINENO: result: yes" >&5
31413echo "${ECHO_T}yes" >&6
31414
31415for ac_header in X11/extensions/xf86vmode.h
31416do
31417as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31418echo "$as_me:$LINENO: checking for $ac_header" >&5
31419echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31420if eval "test \"\${$as_ac_Header+set}\" = set"; then
31421 echo $ECHO_N "(cached) $ECHO_C" >&6
31422else
31423 cat >conftest.$ac_ext <<_ACEOF
31424/* confdefs.h. */
31425_ACEOF
31426cat confdefs.h >>conftest.$ac_ext
31427cat >>conftest.$ac_ext <<_ACEOF
31428/* end confdefs.h. */
31429
31430 #if HAVE_X11_XLIB_H
31431 #include <X11/Xlib.h>
31432 #endif
31433
31434
31435#include <$ac_header>
31436_ACEOF
31437rm -f conftest.$ac_objext
31438if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31439 (eval $ac_compile) 2>conftest.er1
a848cd7e 31440 ac_status=$?
ac1cb8d3
VS
31441 grep -v '^ *+' conftest.er1 >conftest.err
31442 rm -f conftest.er1
31443 cat conftest.err >&5
a848cd7e
SC
31444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31445 (exit $ac_status); } &&
5d7b7554 31446 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31448 (eval $ac_try) 2>&5
31449 ac_status=$?
31450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31451 (exit $ac_status); }; } &&
31452 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31454 (eval $ac_try) 2>&5
31455 ac_status=$?
31456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31457 (exit $ac_status); }; }; then
31458 eval "$as_ac_Header=yes"
31459else
31460 echo "$as_me: failed program was:" >&5
31461sed 's/^/| /' conftest.$ac_ext >&5
31462
31463eval "$as_ac_Header=no"
31464fi
ac1cb8d3 31465rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31466fi
31467echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31468echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31469if test `eval echo '${'$as_ac_Header'}'` = yes; then
31470 cat >>confdefs.h <<_ACEOF
31471#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31472_ACEOF
31473
31474 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
31475
31476fi
31477
31478done
31479
31480 else
31481 echo "$as_me:$LINENO: result: no" >&5
31482echo "${ECHO_T}no" >&6
31483 fi
31484
31485 else
31486 echo "$as_me:$LINENO: result: no" >&5
31487echo "${ECHO_T}no" >&6
dcc1b6ad
VS
31488 { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
31489echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
a848cd7e
SC
31490 wxUSE_DISPLAY="no"
31491 fi
01cb68df
RG
31492 elif test "$wxUSE_MSW" = 1; then
31493
e5efa97e 31494for ac_header in ddraw.h
01cb68df
RG
31495do
31496as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5294a27e 31497echo "$as_me:$LINENO: checking for $ac_header" >&5
01cb68df
RG
31498echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31499if eval "test \"\${$as_ac_Header+set}\" = set"; then
31500 echo $ECHO_N "(cached) $ECHO_C" >&6
01cb68df 31501else
5294a27e 31502 cat >conftest.$ac_ext <<_ACEOF
01cb68df
RG
31503/* confdefs.h. */
31504_ACEOF
31505cat confdefs.h >>conftest.$ac_ext
31506cat >>conftest.$ac_ext <<_ACEOF
31507/* end confdefs.h. */
5294a27e
VZ
31508#include <windows.h>
31509
01cb68df
RG
31510#include <$ac_header>
31511_ACEOF
31512rm -f conftest.$ac_objext
31513if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31514 (eval $ac_compile) 2>conftest.er1
01cb68df 31515 ac_status=$?
ac1cb8d3
VS
31516 grep -v '^ *+' conftest.er1 >conftest.err
31517 rm -f conftest.er1
31518 cat conftest.err >&5
01cb68df
RG
31519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31520 (exit $ac_status); } &&
5d7b7554 31521 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31523 (eval $ac_try) 2>&5
31524 ac_status=$?
31525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31526 (exit $ac_status); }; } &&
31527 { ac_try='test -s conftest.$ac_objext'
01cb68df
RG
31528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31529 (eval $ac_try) 2>&5
31530 ac_status=$?
31531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31532 (exit $ac_status); }; }; then
5294a27e 31533 eval "$as_ac_Header=yes"
01cb68df
RG
31534else
31535 echo "$as_me: failed program was:" >&5
31536sed 's/^/| /' conftest.$ac_ext >&5
31537
5294a27e 31538eval "$as_ac_Header=no"
01cb68df 31539fi
ac1cb8d3 31540rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
01cb68df
RG
31541fi
31542echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31543echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
01cb68df
RG
31544if test `eval echo '${'$as_ac_Header'}'` = yes; then
31545 cat >>confdefs.h <<_ACEOF
31546#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31547_ACEOF
31548
01cb68df
RG
31549fi
31550
31551done
31552
a848cd7e
SC
31553 fi
31554fi
31555
31556
31557USE_OPENGL=0
31558if test "$wxUSE_OPENGL" = "yes"; then
31559 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
31560 OPENGL_LIBS="-framework OpenGL -framework AGL"
31561 elif test "$wxUSE_MSW" = 1; then
31562 OPENGL_LIBS="-lopengl32 -lglu32"
31563 else
31564
31565
31566ac_find_includes=
31567for ac_dir in $SEARCH_INCLUDE /usr/include;
31568 do
31569 if test -f "$ac_dir/GL/gl.h"; then
31570 ac_find_includes=$ac_dir
31571 break
31572 fi
31573 done
31574
31575 if test "$ac_find_includes" != "" ; then
31576 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
31577echo "${ECHO_T}found in $ac_find_includes" >&6
31578
31579 if test "x$ac_find_includes" = "x/usr/include"; then
31580 ac_path_to_include=""
31581 else
31582 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
31583 result=$?
31584 if test $result = 0; then
31585 ac_path_to_include=""
31586 else
31587 ac_path_to_include=" -I$ac_find_includes"
31588 fi
31589 fi
31590
c92ad099 31591 CPPFLAGS="$ac_path_to_include $CPPFLAGS"
a848cd7e
SC
31592 fi
31593
31594 if test "${ac_cv_header_GL_gl_h+set}" = set; then
31595 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
31596echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
31597if test "${ac_cv_header_GL_gl_h+set}" = set; then
31598 echo $ECHO_N "(cached) $ECHO_C" >&6
31599fi
31600echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
31601echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
31602else
31603 # Is the header compilable?
31604echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
31605echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
31606cat >conftest.$ac_ext <<_ACEOF
31607/* confdefs.h. */
31608_ACEOF
31609cat confdefs.h >>conftest.$ac_ext
31610cat >>conftest.$ac_ext <<_ACEOF
31611/* end confdefs.h. */
31612$ac_includes_default
31613#include <GL/gl.h>
31614_ACEOF
31615rm -f conftest.$ac_objext
31616if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31617 (eval $ac_compile) 2>conftest.er1
a848cd7e 31618 ac_status=$?
ac1cb8d3
VS
31619 grep -v '^ *+' conftest.er1 >conftest.err
31620 rm -f conftest.er1
31621 cat conftest.err >&5
a848cd7e
SC
31622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31623 (exit $ac_status); } &&
5d7b7554 31624 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31626 (eval $ac_try) 2>&5
31627 ac_status=$?
31628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31629 (exit $ac_status); }; } &&
31630 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31632 (eval $ac_try) 2>&5
31633 ac_status=$?
31634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31635 (exit $ac_status); }; }; then
31636 ac_header_compiler=yes
31637else
31638 echo "$as_me: failed program was:" >&5
31639sed 's/^/| /' conftest.$ac_ext >&5
31640
31641ac_header_compiler=no
31642fi
ac1cb8d3 31643rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31644echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31645echo "${ECHO_T}$ac_header_compiler" >&6
31646
31647# Is the header present?
31648echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
31649echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
31650cat >conftest.$ac_ext <<_ACEOF
31651/* confdefs.h. */
31652_ACEOF
31653cat confdefs.h >>conftest.$ac_ext
31654cat >>conftest.$ac_ext <<_ACEOF
31655/* end confdefs.h. */
31656#include <GL/gl.h>
31657_ACEOF
31658if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31659 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31660 ac_status=$?
31661 grep -v '^ *+' conftest.er1 >conftest.err
31662 rm -f conftest.er1
31663 cat conftest.err >&5
31664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31665 (exit $ac_status); } >/dev/null; then
31666 if test -s conftest.err; then
5d7b7554
VZ
31667 ac_cpp_err=$ac_cxx_preproc_warn_flag
31668 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
31669 else
31670 ac_cpp_err=
31671 fi
31672else
31673 ac_cpp_err=yes
31674fi
31675if test -z "$ac_cpp_err"; then
31676 ac_header_preproc=yes
31677else
31678 echo "$as_me: failed program was:" >&5
31679sed 's/^/| /' conftest.$ac_ext >&5
31680
31681 ac_header_preproc=no
31682fi
31683rm -f conftest.err conftest.$ac_ext
31684echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31685echo "${ECHO_T}$ac_header_preproc" >&6
31686
31687# So? What about this header?
5d7b7554 31688case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 31689 yes:no: )
a848cd7e
SC
31690 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
31691echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
31692 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
31693echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
31694 ac_header_preproc=yes
a848cd7e 31695 ;;
ac1cb8d3 31696 no:yes:* )
a848cd7e
SC
31697 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
31698echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
31699 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
31700echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
31701 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
31702echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
31703 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
31704echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
31705 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
31706echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
31707 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
31708echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
31709 (
31710 cat <<\_ASBOX
ac1cb8d3
VS
31711## ----------------------------------------- ##
31712## Report this to wx-dev@lists.wxwidgets.org ##
31713## ----------------------------------------- ##
a848cd7e
SC
31714_ASBOX
31715 ) |
31716 sed "s/^/$as_me: WARNING: /" >&2
31717 ;;
31718esac
31719echo "$as_me:$LINENO: checking for GL/gl.h" >&5
31720echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
31721if test "${ac_cv_header_GL_gl_h+set}" = set; then
31722 echo $ECHO_N "(cached) $ECHO_C" >&6
31723else
31724 ac_cv_header_GL_gl_h=$ac_header_preproc
31725fi
31726echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
31727echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
31728
31729fi
31730if test $ac_cv_header_GL_gl_h = yes; then
31731
31732 found_gl=0
31733
31734 echo "$as_me:$LINENO: checking for -lGL" >&5
31735echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
31736
0ad5d837
VZ
31737 ac_find_libraries=
31738 for ac_dir in $SEARCH_LIB;
a848cd7e 31739 do
3eca31dc 31740 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
31741 if test -f "$ac_dir/libGL.$ac_extension"; then
31742 ac_find_libraries=$ac_dir
31743 break 2
31744 fi
31745 done
31746 done
31747
31748 if test "$ac_find_libraries" != "" ; then
69120ee4
VZ
31749 echo "$as_me:$LINENO: result: yes" >&5
31750echo "${ECHO_T}yes" >&6
31751
a848cd7e 31752
0ad5d837 31753 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
31754 ac_path_to_link=""
31755 else
0ad5d837
VZ
31756 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
31757 result=$?
31758 if test $result = 0; then
31759 ac_path_to_link=""
31760 else
31761 ac_path_to_link=" -L$ac_find_libraries"
31762 fi
a848cd7e
SC
31763 fi
31764
31765 if test "$ac_path_to_link" != " -L/usr/lib" ; then
31766 LDFLAGS_GL="$ac_path_to_link"
31767 fi
31768
69120ee4
VZ
31769 echo "$as_me:$LINENO: checking for -lGLU" >&5
31770echo $ECHO_N "checking for -lGLU... $ECHO_C" >&6
a848cd7e 31771
0ad5d837
VZ
31772 ac_find_libraries=
31773 for ac_dir in $SEARCH_LIB;
31774 do
31775 for ac_extension in a so sl dylib dll.a; do
31776 if test -f "$ac_dir/libGLU.$ac_extension"; then
31777 ac_find_libraries=$ac_dir
31778 break 2
31779 fi
31780 done
31781 done
31782
a848cd7e
SC
31783 if test "$ac_find_libraries" != "" ; then
31784
0ad5d837 31785 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
31786 ac_path_to_link=""
31787 else
0ad5d837
VZ
31788 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
31789 result=$?
31790 if test $result = 0; then
31791 ac_path_to_link=""
31792 else
31793 ac_path_to_link=" -L$ac_find_libraries"
31794 fi
a848cd7e
SC
31795 fi
31796
31797 if test "$ac_path_to_link" != " -L/usr/lib" -a \
31798 "$ac_path_to_link" != "$LDFLAGS_GL"; then
31799 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
31800 fi
31801
31802 found_gl=1
31803 OPENGL_LIBS="-lGL -lGLU"
31804 echo "$as_me:$LINENO: result: yes" >&5
31805echo "${ECHO_T}yes" >&6
69120ee4
VZ
31806 else
31807 echo "$as_me:$LINENO: result: no" >&5
31808echo "${ECHO_T}no" >&6
a848cd7e 31809 fi
69120ee4
VZ
31810 else
31811 echo "$as_me:$LINENO: result: no" >&5
31812echo "${ECHO_T}no" >&6
a848cd7e
SC
31813 fi
31814
31815 if test "$found_gl" != 1; then
a848cd7e
SC
31816 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
31817echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
31818
0ad5d837
VZ
31819 ac_find_libraries=
31820 for ac_dir in $SEARCH_LIB;
a848cd7e 31821 do
3eca31dc 31822 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
31823 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
31824 ac_find_libraries=$ac_dir
31825 break 2
31826 fi
31827 done
31828 done
31829
31830 if test "$ac_find_libraries" != "" ; then
31831
0ad5d837 31832 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
31833 ac_path_to_link=""
31834 else
0ad5d837
VZ
31835 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
31836 result=$?
31837 if test $result = 0; then
31838 ac_path_to_link=""
31839 else
31840 ac_path_to_link=" -L$ac_find_libraries"
31841 fi
a848cd7e
SC
31842 fi
31843
31844 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
31845 OPENGL_LIBS="-lMesaGL -lMesaGLU"
31846 echo "$as_me:$LINENO: result: yes" >&5
31847echo "${ECHO_T}yes" >&6
31848 else
31849 echo "$as_me:$LINENO: result: no" >&5
31850echo "${ECHO_T}no" >&6
31851 fi
31852 fi
31853
31854fi
31855
31856
31857
31858 if test "x$OPENGL_LIBS" = "x"; then
31859 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
31860echo "$as_me: error: OpenGL libraries not available" >&2;}
31861 { (exit 1); exit 1; }; }
31862 fi
31863 fi
31864
31865 if test "$wxUSE_OPENGL" = "yes"; then
31866 USE_OPENGL=1
31867 cat >>confdefs.h <<\_ACEOF
31868#define wxUSE_OPENGL 1
31869_ACEOF
31870
31871 cat >>confdefs.h <<\_ACEOF
31872#define wxUSE_GLCANVAS 1
31873_ACEOF
31874
31875 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
31876 fi
31877fi
31878
a848cd7e
SC
31879
31880if test -n "$TOOLKIT" ; then
31881 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
31882fi
31883
a848cd7e
SC
31884
31885
31886if test "$wxUSE_SHARED" = "yes"; then
31887 case "${host}" in
31888 *-pc-msdosdjgpp )
31889 wxUSE_SHARED=no
31890 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
31891echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
31892 ;;
31893 esac
31894fi
31895
a848cd7e 31896if test "$wxUSE_SHARED" = "yes"; then
a848cd7e
SC
31897
31898
31899 found_versioning=no
31900
31901
31902 if test $found_versioning = no ; then
31903 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
31904echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
31905if test "${wx_cv_version_script+set}" = set; then
31906 echo $ECHO_N "(cached) $ECHO_C" >&6
31907else
31908
31909 echo "VER_1 { *; };" >conftest.sym
31910 echo "int main() { return 0; }" >conftest.cpp
31911
31912 if { ac_try='
31913 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
31914 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
31915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31916 (eval $ac_try) 2>&5
31917 ac_status=$?
31918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31919 (exit $ac_status); }; } ; then
31920 if test -s conftest.stderr ; then
31921 wx_cv_version_script=no
31922 else
31923 wx_cv_version_script=yes
31924 fi
31925 else
31926 wx_cv_version_script=no
31927 fi
e5d4b470
MW
31928
31929 if test $wx_cv_version_script = yes
31930 then
31931 echo "struct B { virtual ~B() { } }; \
31932 struct D : public B { }; \
31933 void F() { D d; }" > conftest.cpp
31934
31935 if { ac_try='
31936 $CXX -shared -fPIC -o conftest1.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
31937 -Wl,--version-script,conftest.sym >/dev/null 2>/dev/null'
31938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31939 (eval $ac_try) 2>&5
31940 ac_status=$?
31941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31942 (exit $ac_status); }; } &&
31943 { ac_try='
31944 $CXX -shared -fPIC -o conftest2.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
31945 -Wl,--version-script,conftest.sym conftest1.output >/dev/null 2>/dev/null'
31946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31947 (eval $ac_try) 2>&5
31948 ac_status=$?
31949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31950 (exit $ac_status); }; }
31951 then
31952 if { ac_try='
31953 $CXX -shared -fPIC -o conftest3.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
31954 -Wl,--version-script,conftest.sym conftest2.output conftest1.output >/dev/null 2>/dev/null'
31955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31956 (eval $ac_try) 2>&5
31957 ac_status=$?
31958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31959 (exit $ac_status); }; }
31960 then
31961 wx_cv_version_script=yes
31962 else
31963 wx_cv_version_script=no
31964 fi
31965 fi
31966 fi
31967
a848cd7e 31968 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
e5d4b470 31969 rm -f conftest1.output conftest2.output conftest3.output
a848cd7e
SC
31970
31971fi
31972echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
31973echo "${ECHO_T}$wx_cv_version_script" >&6
31974 if test $wx_cv_version_script = yes ; then
31975 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
31976 fi
31977 fi
31978
31979
31980 case "${host}" in
31981 *-*-linux* | *-*-gnu* )
31982 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 31983 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
6ebeb4c7 31984 ;;
a848cd7e
SC
31985
31986 *-*-solaris2* )
31987 if test "$GCC" = yes ; then
c92ad099 31988 CPPFLAGS="-isystem /usr/openwin/include $CPPFLAGS"
a848cd7e
SC
31989
31990 saveLdflags="$LDFLAGS"
31991 LDFLAGS="$saveLdflags -Wl,-rpath,/"
31992 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
31993echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
31994 cat >conftest.$ac_ext <<_ACEOF
31995/* confdefs.h. */
31996_ACEOF
31997cat confdefs.h >>conftest.$ac_ext
31998cat >>conftest.$ac_ext <<_ACEOF
31999/* end confdefs.h. */
32000
32001int
32002main ()
32003{
32004
32005 ;
32006 return 0;
32007}
32008_ACEOF
32009rm -f conftest.$ac_objext conftest$ac_exeext
32010if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32011 (eval $ac_link) 2>conftest.er1
a848cd7e 32012 ac_status=$?
ac1cb8d3
VS
32013 grep -v '^ *+' conftest.er1 >conftest.err
32014 rm -f conftest.er1
32015 cat conftest.err >&5
a848cd7e
SC
32016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32017 (exit $ac_status); } &&
5d7b7554 32018 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32020 (eval $ac_try) 2>&5
32021 ac_status=$?
32022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32023 (exit $ac_status); }; } &&
32024 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32026 (eval $ac_try) 2>&5
32027 ac_status=$?
32028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32029 (exit $ac_status); }; }; then
32030
32031 echo "$as_me:$LINENO: result: yes" >&5
32032echo "${ECHO_T}yes" >&6
32033 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 32034 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
a848cd7e
SC
32035
32036else
32037 echo "$as_me: failed program was:" >&5
32038sed 's/^/| /' conftest.$ac_ext >&5
32039
32040
32041 echo "$as_me:$LINENO: result: no" >&5
32042echo "${ECHO_T}no" >&6
32043 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
32044echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
32045 LDFLAGS="$saveLdflags -Wl,-R,/"
32046 cat >conftest.$ac_ext <<_ACEOF
32047/* confdefs.h. */
32048_ACEOF
32049cat confdefs.h >>conftest.$ac_ext
32050cat >>conftest.$ac_ext <<_ACEOF
32051/* end confdefs.h. */
32052
32053int
32054main ()
32055{
32056
32057 ;
32058 return 0;
32059}
32060_ACEOF
32061rm -f conftest.$ac_objext conftest$ac_exeext
32062if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32063 (eval $ac_link) 2>conftest.er1
a848cd7e 32064 ac_status=$?
ac1cb8d3
VS
32065 grep -v '^ *+' conftest.er1 >conftest.err
32066 rm -f conftest.er1
32067 cat conftest.err >&5
a848cd7e
SC
32068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32069 (exit $ac_status); } &&
5d7b7554 32070 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32072 (eval $ac_try) 2>&5
32073 ac_status=$?
32074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32075 (exit $ac_status); }; } &&
32076 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32078 (eval $ac_try) 2>&5
32079 ac_status=$?
32080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32081 (exit $ac_status); }; }; then
32082
ffa0583f 32083 echo "$as_me:$LINENO: result: yes" >&5
a848cd7e 32084echo "${ECHO_T}yes" >&6
ffa0583f
RL
32085 SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
32086 WXCONFIG_RPATH="-Wl,-R,\$libdir"
32087
a848cd7e
SC
32088else
32089 echo "$as_me: failed program was:" >&5
32090sed 's/^/| /' conftest.$ac_ext >&5
32091
32092
32093 echo "$as_me:$LINENO: result: no" >&5
32094echo "${ECHO_T}no" >&6
32095
32096fi
ac1cb8d3
VS
32097rm -f conftest.err conftest.$ac_objext \
32098 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32099
32100fi
ac1cb8d3
VS
32101rm -f conftest.err conftest.$ac_objext \
32102 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32103 LDFLAGS="$saveLdflags"
32104 else
a848cd7e 32105 SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
ffa0583f 32106 WXCONFIG_RPATH="-R\$libdir"
a848cd7e
SC
32107 fi
32108 ;;
32109
cfda0ea8 32110 *-*-darwin* )
0caebc27
MW
32111 install_name_tool=`which install_name_tool`
32112 if test "$install_name_tool" -a -x "$install_name_tool"; then
32113 SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
32114 cat <<EOF >change-install-names
a848cd7e
SC
32115#!/bin/sh
32116libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
32117inst_cmd="install_name_tool "
32118for i in \${libnames} ; do
32119 inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
32120done
32121\${inst_cmd} \${3}
32122EOF
0caebc27
MW
32123 chmod +x change-install-names
32124 fi
a848cd7e
SC
32125 ;;
32126
32127 *-*-cygwin* | *-*-mingw32* )
5ff751d6
VZ
32128 WXCONFIG_ONLY_CPPFLAGS="$WXCONFIG_ONLY_CPPFLAGS -DWXUSINGDLL"
32129 ;;
a848cd7e 32130
81f90336
MW
32131 *-*-hpux* )
32132 SAMPLES_RPATH_FLAG="-Wl,+b,\$(top_builddir)lib"
32133 WXCONFIG_RPATH="-Wl,+b,\$libdir"
5ff751d6 32134 ;;
81f90336 32135
a848cd7e 32136 esac
ceec2216 32137
ffa0583f
RL
32138 if test $wxUSE_RPATH = "no"; then
32139 SAMPLES_RPATH_FLAG=''
32140 SAMPLES_RPATH_POSTLINK=''
32141 WXCONFIG_RPATH=''
32142 fi
32143
32144 SHARED=1
32145
32146else
32147
ceec2216
RL
32148 config_linkage_component="-static"
32149 SHARED=0
ffa0583f 32150
ceec2216 32151fi
a848cd7e 32152
a848cd7e 32153
ceec2216
RL
32154UNICODE=0
32155lib_unicode_suffix=
32156WX_CHARTYPE="ansi"
32157if test "$wxUSE_UNICODE" = "yes"; then
32158 lib_unicode_suffix=u
32159 WX_CHARTYPE="unicode"
32160 UNICODE=1
a848cd7e
SC
32161fi
32162
ceec2216
RL
32163lib_debug_suffix=
32164WX_DEBUGTYPE="release"
32165DEBUG_FLAG=0
32166if test "$wxUSE_DEBUG_FLAG" = "yes"; then
32167 lib_debug_suffix=d
32168 WX_DEBUGTYPE="debug"
32169 DEBUG_FLAG=1
32170fi
a848cd7e 32171
ceec2216
RL
32172WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
32173WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
a848cd7e 32174
ceec2216
RL
32175DEBUG_INFO=0
32176if test "$wxUSE_DEBUG_INFO" = "yes"; then
32177 DEBUG_INFO=1
32178fi
a848cd7e 32179
ceec2216 32180WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
a848cd7e 32181
ceec2216 32182TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}"
a848cd7e 32183
ceec2216 32184TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
a848cd7e 32185
ceec2216
RL
32186if test "$cross_compiling" = "yes"; then
32187 HOST_SUFFIX="-$host_alias"
32188 TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX"
32189 TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME"
a848cd7e
SC
32190fi
32191
dd21ced8 32192WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
abc736fd
MW
32193if test "${TOOLKIT_DIR}" = "os2"; then
32194 WX_LIBRARY_BASENAME_GUI="wx_pm${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
32195else
32196 WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
32197fi
ceec2216
RL
32198
32199
32200
1d1af5ea
DE
32201if test "$wxUSE_COCOA" = 1; then
32202
32203
32204 ac_ext=c
32205ac_cpp='$CPP $CPPFLAGS'
32206ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32207ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32208ac_compiler_gnu=$ac_cv_c_compiler_gnu
32209
32210ac_ext=m
32211
32212 echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5
32213echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6
32214 cat >conftest.$ac_ext <<_ACEOF
32215/* confdefs.h. */
32216_ACEOF
32217cat confdefs.h >>conftest.$ac_ext
32218cat >>conftest.$ac_ext <<_ACEOF
32219/* end confdefs.h. */
32220#include <AppKit/NSEvent.h>
32221#include <CoreFoundation/CoreFoundation.h>
32222
32223int
32224main ()
32225{
32226
32227 ;
32228 return 0;
32229}
32230_ACEOF
32231rm -f conftest.$ac_objext
32232if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32233 (eval $ac_compile) 2>conftest.er1
32234 ac_status=$?
32235 grep -v '^ *+' conftest.er1 >conftest.err
32236 rm -f conftest.er1
32237 cat conftest.err >&5
32238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32239 (exit $ac_status); } &&
5d7b7554 32240 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1d1af5ea
DE
32241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32242 (eval $ac_try) 2>&5
32243 ac_status=$?
32244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32245 (exit $ac_status); }; } &&
32246 { ac_try='test -s conftest.$ac_objext'
32247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32248 (eval $ac_try) 2>&5
32249 ac_status=$?
32250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32251 (exit $ac_status); }; }; then
32252 echo "$as_me:$LINENO: result: no" >&5
32253echo "${ECHO_T}no" >&6
32254else
32255 echo "$as_me: failed program was:" >&5
32256sed 's/^/| /' conftest.$ac_ext >&5
32257
32258echo "$as_me:$LINENO: result: yes" >&5
32259echo "${ECHO_T}yes" >&6
32260 echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5
32261echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6
32262 cat >conftest.$ac_ext <<_ACEOF
32263/* confdefs.h. */
32264_ACEOF
32265cat confdefs.h >>conftest.$ac_ext
32266cat >>conftest.$ac_ext <<_ACEOF
32267/* end confdefs.h. */
32268#define __Point__ 1
32269#include <AppKit/NSEvent.h>
32270#include <CoreFoundation/CoreFoundation.h>
32271
32272int
32273main ()
32274{
32275
32276 ;
32277 return 0;
32278}
32279_ACEOF
32280rm -f conftest.$ac_objext
32281if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32282 (eval $ac_compile) 2>conftest.er1
32283 ac_status=$?
32284 grep -v '^ *+' conftest.er1 >conftest.err
32285 rm -f conftest.er1
32286 cat conftest.err >&5
32287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32288 (exit $ac_status); } &&
5d7b7554 32289 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1d1af5ea
DE
32290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32291 (eval $ac_try) 2>&5
32292 ac_status=$?
32293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32294 (exit $ac_status); }; } &&
32295 { ac_try='test -s conftest.$ac_objext'
32296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32297 (eval $ac_try) 2>&5
32298 ac_status=$?
32299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32300 (exit $ac_status); }; }; then
32301 echo "$as_me:$LINENO: result: yes" >&5
32302echo "${ECHO_T}yes" >&6
32303 cat >>confdefs.h <<\_ACEOF
32304#define __Point__ 1
32305_ACEOF
32306
32307
32308else
32309 echo "$as_me: failed program was:" >&5
32310sed 's/^/| /' conftest.$ac_ext >&5
32311
32312{ { echo "$as_me:$LINENO: error: no
32313See \`config.log' for more details." >&5
32314echo "$as_me: error: no
32315See \`config.log' for more details." >&2;}
32316 { (exit 1); exit 1; }; }
32317
32318fi
32319rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32320
32321fi
32322rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5d7b7554
VZ
32323 ac_ext=cc
32324ac_cpp='$CXXCPP $CPPFLAGS'
32325ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32326ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32327ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1d1af5ea
DE
32328
32329fi
32330
a848cd7e 32331if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
abb9aae7
VZ
32332 WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
32333 WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
ceec2216 32334
a848cd7e 32335 LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
a848cd7e
SC
32336
32337 # Extract the first word of "Rez", so it can be a program name with args.
32338set dummy Rez; ac_word=$2
32339echo "$as_me:$LINENO: checking for $ac_word" >&5
32340echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 32341if test "${ac_cv_prog_REZ+set}" = set; then
a848cd7e
SC
32342 echo $ECHO_N "(cached) $ECHO_C" >&6
32343else
8ced02f6
DE
32344 if test -n "$REZ"; then
32345 ac_cv_prog_REZ="$REZ" # Let the user override the test.
a848cd7e
SC
32346else
32347as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32348for as_dir in $PATH
32349do
32350 IFS=$as_save_IFS
32351 test -z "$as_dir" && as_dir=.
32352 for ac_exec_ext in '' $ac_executable_extensions; do
32353 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 32354 ac_cv_prog_REZ="Rez"
a848cd7e
SC
32355 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32356 break 2
32357 fi
32358done
32359done
32360
8ced02f6 32361 test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
a848cd7e
SC
32362fi
32363fi
8ced02f6
DE
32364REZ=$ac_cv_prog_REZ
32365if test -n "$REZ"; then
32366 echo "$as_me:$LINENO: result: $REZ" >&5
32367echo "${ECHO_T}$REZ" >&6
a848cd7e
SC
32368else
32369 echo "$as_me:$LINENO: result: no" >&5
32370echo "${ECHO_T}no" >&6
32371fi
32372
32373 # Extract the first word of "DeRez", so it can be a program name with args.
32374set dummy DeRez; ac_word=$2
32375echo "$as_me:$LINENO: checking for $ac_word" >&5
32376echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
32377if test "${ac_cv_prog_DEREZ+set}" = set; then
32378 echo $ECHO_N "(cached) $ECHO_C" >&6
32379else
32380 if test -n "$DEREZ"; then
32381 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
32382else
32383as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32384for as_dir in $PATH
32385do
32386 IFS=$as_save_IFS
32387 test -z "$as_dir" && as_dir=.
32388 for ac_exec_ext in '' $ac_executable_extensions; do
32389 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32390 ac_cv_prog_DEREZ="DeRez"
32391 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32392 break 2
32393 fi
32394done
32395done
32396
32397 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
32398fi
32399fi
32400DEREZ=$ac_cv_prog_DEREZ
32401if test -n "$DEREZ"; then
32402 echo "$as_me:$LINENO: result: $DEREZ" >&5
32403echo "${ECHO_T}$DEREZ" >&6
32404else
32405 echo "$as_me:$LINENO: result: no" >&5
32406echo "${ECHO_T}no" >&6
32407fi
32408
32409 # Extract the first word of "SetFile", so it can be a program name with args.
32410set dummy SetFile; ac_word=$2
32411echo "$as_me:$LINENO: checking for $ac_word" >&5
32412echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
32413if test "${ac_cv_prog_SETFILE+set}" = set; then
32414 echo $ECHO_N "(cached) $ECHO_C" >&6
32415else
32416 if test -n "$SETFILE"; then
32417 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
32418else
32419as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32420for as_dir in $PATH
32421do
32422 IFS=$as_save_IFS
32423 test -z "$as_dir" && as_dir=.
32424 for ac_exec_ext in '' $ac_executable_extensions; do
32425 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32426 ac_cv_prog_SETFILE="SetFile"
32427 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32428 break 2
32429 fi
32430done
32431done
32432
32433 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
32434fi
32435fi
32436SETFILE=$ac_cv_prog_SETFILE
32437if test -n "$SETFILE"; then
32438 echo "$as_me:$LINENO: result: $SETFILE" >&5
32439echo "${ECHO_T}$SETFILE" >&6
32440else
32441 echo "$as_me:$LINENO: result: no" >&5
32442echo "${ECHO_T}no" >&6
32443fi
32444
32445
32446 MACSETFILE="\$(SETFILE)"
32447
32448 if test "$wxUSE_MAC" = 1; then
8ced02f6 32449 POSTLINK_COMMAND="\$(REZ) -d __DARWIN__ -t APPL Carbon.r -o"
004ee6da
RL
32450 RESCOMP="$REZ"
32451 WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL Carbon.r -o"
a848cd7e 32452 else
004ee6da
RL
32453 POSTLINK_COMMAND="echo -n | \$(REZ) -d __DARWIN__ -t APPL ${LIBWXMACRES}"
32454 RESCOMP="echo -n \| $REZ"
32455 WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL \$libdir/$WX_RESOURCES_MACOSX_ASCII"
a848cd7e 32456 fi
004ee6da 32457
a848cd7e 32458else
ffa0583f 32459 MACSETFILE="@true"
a848cd7e 32460
8ced02f6 32461 if test "$wxUSE_PM" = 1; then
004ee6da
RL
32462 RESCOMP="emxbind"
32463 WXCONFIG_RESFLAGS="-ep"
32464
32465 POSTLINK_COMMAND="$RESCOMP $WXCONFIG_RESFLAGS"
a848cd7e 32466 else
8ced02f6 32467 POSTLINK_COMMAND="@true"
a848cd7e 32468 fi
004ee6da 32469
a848cd7e
SC
32470fi
32471
32472
32473
32474echo "$as_me:$LINENO: checking for mode_t" >&5
32475echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
32476if test "${ac_cv_type_mode_t+set}" = set; then
32477 echo $ECHO_N "(cached) $ECHO_C" >&6
32478else
32479 cat >conftest.$ac_ext <<_ACEOF
32480/* confdefs.h. */
32481_ACEOF
32482cat confdefs.h >>conftest.$ac_ext
32483cat >>conftest.$ac_ext <<_ACEOF
32484/* end confdefs.h. */
32485$ac_includes_default
32486int
32487main ()
32488{
32489if ((mode_t *) 0)
32490 return 0;
32491if (sizeof (mode_t))
32492 return 0;
32493 ;
32494 return 0;
32495}
32496_ACEOF
32497rm -f conftest.$ac_objext
32498if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32499 (eval $ac_compile) 2>conftest.er1
a848cd7e 32500 ac_status=$?
ac1cb8d3
VS
32501 grep -v '^ *+' conftest.er1 >conftest.err
32502 rm -f conftest.er1
32503 cat conftest.err >&5
a848cd7e
SC
32504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32505 (exit $ac_status); } &&
5d7b7554 32506 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32508 (eval $ac_try) 2>&5
32509 ac_status=$?
32510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32511 (exit $ac_status); }; } &&
32512 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32514 (eval $ac_try) 2>&5
32515 ac_status=$?
32516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32517 (exit $ac_status); }; }; then
32518 ac_cv_type_mode_t=yes
32519else
32520 echo "$as_me: failed program was:" >&5
32521sed 's/^/| /' conftest.$ac_ext >&5
32522
32523ac_cv_type_mode_t=no
32524fi
ac1cb8d3 32525rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32526fi
32527echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
32528echo "${ECHO_T}$ac_cv_type_mode_t" >&6
32529if test $ac_cv_type_mode_t = yes; then
32530 :
32531else
32532
32533cat >>confdefs.h <<_ACEOF
32534#define mode_t int
32535_ACEOF
32536
32537fi
32538
32539echo "$as_me:$LINENO: checking for off_t" >&5
32540echo $ECHO_N "checking for off_t... $ECHO_C" >&6
32541if test "${ac_cv_type_off_t+set}" = set; then
32542 echo $ECHO_N "(cached) $ECHO_C" >&6
32543else
32544 cat >conftest.$ac_ext <<_ACEOF
32545/* confdefs.h. */
32546_ACEOF
32547cat confdefs.h >>conftest.$ac_ext
32548cat >>conftest.$ac_ext <<_ACEOF
32549/* end confdefs.h. */
32550$ac_includes_default
32551int
32552main ()
32553{
32554if ((off_t *) 0)
32555 return 0;
32556if (sizeof (off_t))
32557 return 0;
32558 ;
32559 return 0;
32560}
32561_ACEOF
32562rm -f conftest.$ac_objext
32563if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32564 (eval $ac_compile) 2>conftest.er1
a848cd7e 32565 ac_status=$?
ac1cb8d3
VS
32566 grep -v '^ *+' conftest.er1 >conftest.err
32567 rm -f conftest.er1
32568 cat conftest.err >&5
a848cd7e
SC
32569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32570 (exit $ac_status); } &&
5d7b7554 32571 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32573 (eval $ac_try) 2>&5
32574 ac_status=$?
32575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32576 (exit $ac_status); }; } &&
32577 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32579 (eval $ac_try) 2>&5
32580 ac_status=$?
32581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32582 (exit $ac_status); }; }; then
32583 ac_cv_type_off_t=yes
32584else
32585 echo "$as_me: failed program was:" >&5
32586sed 's/^/| /' conftest.$ac_ext >&5
32587
32588ac_cv_type_off_t=no
32589fi
ac1cb8d3 32590rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32591fi
32592echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
32593echo "${ECHO_T}$ac_cv_type_off_t" >&6
32594if test $ac_cv_type_off_t = yes; then
32595 :
32596else
32597
32598cat >>confdefs.h <<_ACEOF
32599#define off_t long
32600_ACEOF
32601
32602fi
32603
32604echo "$as_me:$LINENO: checking for pid_t" >&5
32605echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
32606if test "${ac_cv_type_pid_t+set}" = set; then
32607 echo $ECHO_N "(cached) $ECHO_C" >&6
32608else
32609 cat >conftest.$ac_ext <<_ACEOF
32610/* confdefs.h. */
32611_ACEOF
32612cat confdefs.h >>conftest.$ac_ext
32613cat >>conftest.$ac_ext <<_ACEOF
32614/* end confdefs.h. */
32615$ac_includes_default
32616int
32617main ()
32618{
32619if ((pid_t *) 0)
32620 return 0;
32621if (sizeof (pid_t))
32622 return 0;
32623 ;
32624 return 0;
32625}
32626_ACEOF
32627rm -f conftest.$ac_objext
32628if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32629 (eval $ac_compile) 2>conftest.er1
a848cd7e 32630 ac_status=$?
ac1cb8d3
VS
32631 grep -v '^ *+' conftest.er1 >conftest.err
32632 rm -f conftest.er1
32633 cat conftest.err >&5
a848cd7e
SC
32634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32635 (exit $ac_status); } &&
5d7b7554 32636 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32638 (eval $ac_try) 2>&5
32639 ac_status=$?
32640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32641 (exit $ac_status); }; } &&
32642 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32644 (eval $ac_try) 2>&5
32645 ac_status=$?
32646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32647 (exit $ac_status); }; }; then
32648 ac_cv_type_pid_t=yes
32649else
32650 echo "$as_me: failed program was:" >&5
32651sed 's/^/| /' conftest.$ac_ext >&5
32652
32653ac_cv_type_pid_t=no
32654fi
ac1cb8d3 32655rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32656fi
32657echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
32658echo "${ECHO_T}$ac_cv_type_pid_t" >&6
32659if test $ac_cv_type_pid_t = yes; then
32660 :
32661else
32662
32663cat >>confdefs.h <<_ACEOF
32664#define pid_t int
32665_ACEOF
32666
32667fi
32668
32669echo "$as_me:$LINENO: checking for size_t" >&5
32670echo $ECHO_N "checking for size_t... $ECHO_C" >&6
32671if test "${ac_cv_type_size_t+set}" = set; then
32672 echo $ECHO_N "(cached) $ECHO_C" >&6
32673else
32674 cat >conftest.$ac_ext <<_ACEOF
32675/* confdefs.h. */
32676_ACEOF
32677cat confdefs.h >>conftest.$ac_ext
32678cat >>conftest.$ac_ext <<_ACEOF
32679/* end confdefs.h. */
32680$ac_includes_default
32681int
32682main ()
32683{
32684if ((size_t *) 0)
32685 return 0;
32686if (sizeof (size_t))
32687 return 0;
32688 ;
32689 return 0;
32690}
32691_ACEOF
32692rm -f conftest.$ac_objext
32693if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32694 (eval $ac_compile) 2>conftest.er1
a848cd7e 32695 ac_status=$?
ac1cb8d3
VS
32696 grep -v '^ *+' conftest.er1 >conftest.err
32697 rm -f conftest.er1
32698 cat conftest.err >&5
a848cd7e
SC
32699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32700 (exit $ac_status); } &&
5d7b7554 32701 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32703 (eval $ac_try) 2>&5
32704 ac_status=$?
32705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32706 (exit $ac_status); }; } &&
32707 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32709 (eval $ac_try) 2>&5
32710 ac_status=$?
32711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32712 (exit $ac_status); }; }; then
32713 ac_cv_type_size_t=yes
32714else
32715 echo "$as_me: failed program was:" >&5
32716sed 's/^/| /' conftest.$ac_ext >&5
32717
32718ac_cv_type_size_t=no
32719fi
ac1cb8d3 32720rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32721fi
32722echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
32723echo "${ECHO_T}$ac_cv_type_size_t" >&6
32724if test $ac_cv_type_size_t = yes; then
32725 :
32726else
32727
32728cat >>confdefs.h <<_ACEOF
32729#define size_t unsigned
32730_ACEOF
32731
32732fi
32733
32734echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
32735echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
32736if test "${ac_cv_type_uid_t+set}" = set; then
32737 echo $ECHO_N "(cached) $ECHO_C" >&6
32738else
32739 cat >conftest.$ac_ext <<_ACEOF
32740/* confdefs.h. */
32741_ACEOF
32742cat confdefs.h >>conftest.$ac_ext
32743cat >>conftest.$ac_ext <<_ACEOF
32744/* end confdefs.h. */
32745#include <sys/types.h>
32746
32747_ACEOF
32748if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32749 $EGREP "uid_t" >/dev/null 2>&1; then
32750 ac_cv_type_uid_t=yes
32751else
32752 ac_cv_type_uid_t=no
32753fi
32754rm -f conftest*
32755
32756fi
32757echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
32758echo "${ECHO_T}$ac_cv_type_uid_t" >&6
32759if test $ac_cv_type_uid_t = no; then
32760
32761cat >>confdefs.h <<\_ACEOF
32762#define uid_t int
32763_ACEOF
32764
32765
32766cat >>confdefs.h <<\_ACEOF
32767#define gid_t int
32768_ACEOF
32769
32770fi
32771
32772
d51253e8
RL
32773echo "$as_me:$LINENO: checking for ssize_t" >&5
32774echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
32775if test "${ac_cv_type_ssize_t+set}" = set; then
32776 echo $ECHO_N "(cached) $ECHO_C" >&6
32777else
32778 cat >conftest.$ac_ext <<_ACEOF
32779/* confdefs.h. */
32780_ACEOF
32781cat confdefs.h >>conftest.$ac_ext
32782cat >>conftest.$ac_ext <<_ACEOF
32783/* end confdefs.h. */
32784$ac_includes_default
32785int
32786main ()
32787{
32788if ((ssize_t *) 0)
32789 return 0;
32790if (sizeof (ssize_t))
32791 return 0;
32792 ;
32793 return 0;
32794}
32795_ACEOF
32796rm -f conftest.$ac_objext
32797if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32798 (eval $ac_compile) 2>conftest.er1
32799 ac_status=$?
32800 grep -v '^ *+' conftest.er1 >conftest.err
32801 rm -f conftest.er1
32802 cat conftest.err >&5
32803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32804 (exit $ac_status); } &&
5d7b7554 32805 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
d51253e8
RL
32806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32807 (eval $ac_try) 2>&5
32808 ac_status=$?
32809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32810 (exit $ac_status); }; } &&
32811 { ac_try='test -s conftest.$ac_objext'
32812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32813 (eval $ac_try) 2>&5
32814 ac_status=$?
32815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32816 (exit $ac_status); }; }; then
32817 ac_cv_type_ssize_t=yes
32818else
32819 echo "$as_me: failed program was:" >&5
32820sed 's/^/| /' conftest.$ac_ext >&5
32821
32822ac_cv_type_ssize_t=no
32823fi
32824rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32825fi
32826echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
32827echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
32828if test $ac_cv_type_ssize_t = yes; then
32829
32830cat >>confdefs.h <<_ACEOF
32831#define HAVE_SSIZE_T 1
32832_ACEOF
32833
32834
32835fi
32836
32837
a848cd7e
SC
32838echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
32839echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
32840if test "${wx_cv_size_t_is_uint+set}" = set; then
32841 echo $ECHO_N "(cached) $ECHO_C" >&6
32842else
32843
32844 cat >conftest.$ac_ext <<_ACEOF
32845/* confdefs.h. */
32846_ACEOF
32847cat confdefs.h >>conftest.$ac_ext
32848cat >>conftest.$ac_ext <<_ACEOF
32849/* end confdefs.h. */
32850#include <stddef.h>
32851int
32852main ()
32853{
32854
32855 return 0; }
32856
32857 struct Foo { void foo(size_t); void foo(unsigned int); };
32858
32859 int bar() {
32860
32861 ;
32862 return 0;
32863}
32864_ACEOF
32865rm -f conftest.$ac_objext
32866if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32867 (eval $ac_compile) 2>conftest.er1
a848cd7e 32868 ac_status=$?
ac1cb8d3
VS
32869 grep -v '^ *+' conftest.er1 >conftest.err
32870 rm -f conftest.er1
32871 cat conftest.err >&5
a848cd7e
SC
32872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32873 (exit $ac_status); } &&
5d7b7554 32874 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32876 (eval $ac_try) 2>&5
32877 ac_status=$?
32878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32879 (exit $ac_status); }; } &&
32880 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32882 (eval $ac_try) 2>&5
32883 ac_status=$?
32884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32885 (exit $ac_status); }; }; then
32886 wx_cv_size_t_is_uint=no
32887else
32888 echo "$as_me: failed program was:" >&5
32889sed 's/^/| /' conftest.$ac_ext >&5
32890
32891wx_cv_size_t_is_uint=yes
32892
32893fi
ac1cb8d3 32894rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32895
32896
32897fi
32898echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
32899echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
32900
32901if test "$wx_cv_size_t_is_uint" = "yes"; then
32902 cat >>confdefs.h <<\_ACEOF
32903#define wxSIZE_T_IS_UINT 1
32904_ACEOF
32905
32906else
32907 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
32908echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
32909if test "${wx_cv_size_t_is_ulong+set}" = set; then
32910 echo $ECHO_N "(cached) $ECHO_C" >&6
32911else
32912 cat >conftest.$ac_ext <<_ACEOF
32913/* confdefs.h. */
32914_ACEOF
32915cat confdefs.h >>conftest.$ac_ext
32916cat >>conftest.$ac_ext <<_ACEOF
32917/* end confdefs.h. */
32918#include <stddef.h>
32919int
32920main ()
32921{
32922
32923 return 0; }
32924
32925 struct Foo { void foo(size_t); void foo(unsigned long); };
32926
32927 int bar() {
32928
32929 ;
32930 return 0;
32931}
32932_ACEOF
32933rm -f conftest.$ac_objext
32934if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32935 (eval $ac_compile) 2>conftest.er1
a848cd7e 32936 ac_status=$?
ac1cb8d3
VS
32937 grep -v '^ *+' conftest.er1 >conftest.err
32938 rm -f conftest.er1
32939 cat conftest.err >&5
a848cd7e
SC
32940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32941 (exit $ac_status); } &&
5d7b7554 32942 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32944 (eval $ac_try) 2>&5
32945 ac_status=$?
32946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32947 (exit $ac_status); }; } &&
32948 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32950 (eval $ac_try) 2>&5
32951 ac_status=$?
32952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32953 (exit $ac_status); }; }; then
32954 wx_cv_size_t_is_ulong=no
32955else
32956 echo "$as_me: failed program was:" >&5
32957sed 's/^/| /' conftest.$ac_ext >&5
32958
32959wx_cv_size_t_is_ulong=yes
32960
32961fi
ac1cb8d3 32962rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32963
32964fi
32965echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
32966echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
32967
32968 if test "$wx_cv_size_t_is_ulong" = "yes"; then
32969 cat >>confdefs.h <<\_ACEOF
32970#define wxSIZE_T_IS_ULONG 1
32971_ACEOF
32972
32973 fi
32974fi
32975
a848cd7e
SC
32976
32977echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
32978echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
32979if test "${wx_cv_struct_pw_gecos+set}" = set; then
32980 echo $ECHO_N "(cached) $ECHO_C" >&6
32981else
32982
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. */
32989#include <pwd.h>
32990int
32991main ()
32992{
32993
32994 char *p;
32995 struct passwd *pw;
32996 p = pw->pw_gecos;
32997
32998 ;
32999 return 0;
33000}
33001_ACEOF
33002rm -f conftest.$ac_objext
33003if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33004 (eval $ac_compile) 2>conftest.er1
a848cd7e 33005 ac_status=$?
ac1cb8d3
VS
33006 grep -v '^ *+' conftest.er1 >conftest.err
33007 rm -f conftest.er1
33008 cat conftest.err >&5
a848cd7e
SC
33009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33010 (exit $ac_status); } &&
5d7b7554 33011 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33013 (eval $ac_try) 2>&5
33014 ac_status=$?
33015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33016 (exit $ac_status); }; } &&
33017 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33019 (eval $ac_try) 2>&5
33020 ac_status=$?
33021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33022 (exit $ac_status); }; }; then
33023
33024 wx_cv_struct_pw_gecos=yes
33025
33026else
33027 echo "$as_me: failed program was:" >&5
33028sed 's/^/| /' conftest.$ac_ext >&5
33029
33030
33031 wx_cv_struct_pw_gecos=no
33032
33033
33034fi
ac1cb8d3 33035rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33036
33037
33038fi
33039echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
33040echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
33041
33042if test "$wx_cv_struct_pw_gecos" = "yes"; then
33043 cat >>confdefs.h <<\_ACEOF
33044#define HAVE_PW_GECOS 1
33045_ACEOF
33046
33047fi
33048
33049
47a7e797 33050if test "$wxUSE_WCHAR_T" = "yes"; then
a848cd7e
SC
33051 cat >>confdefs.h <<\_ACEOF
33052#define wxUSE_WCHAR_T 1
33053_ACEOF
33054
33055
33056 WCSLEN_FOUND=0
33057 WCHAR_LINK=
33058
33059for ac_func in wcslen
33060do
33061as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33062echo "$as_me:$LINENO: checking for $ac_func" >&5
33063echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33064if eval "test \"\${$as_ac_var+set}\" = set"; then
33065 echo $ECHO_N "(cached) $ECHO_C" >&6
33066else
33067 cat >conftest.$ac_ext <<_ACEOF
33068/* confdefs.h. */
33069_ACEOF
33070cat confdefs.h >>conftest.$ac_ext
33071cat >>conftest.$ac_ext <<_ACEOF
33072/* end confdefs.h. */
ac1cb8d3
VS
33073/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33074 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33075#define $ac_func innocuous_$ac_func
33076
a848cd7e
SC
33077/* System header to define __stub macros and hopefully few prototypes,
33078 which can conflict with char $ac_func (); below.
33079 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33080 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33081
a848cd7e
SC
33082#ifdef __STDC__
33083# include <limits.h>
33084#else
33085# include <assert.h>
33086#endif
ac1cb8d3
VS
33087
33088#undef $ac_func
33089
a848cd7e
SC
33090/* Override any gcc2 internal prototype to avoid an error. */
33091#ifdef __cplusplus
33092extern "C"
33093{
33094#endif
33095/* We use char because int might match the return type of a gcc2
33096 builtin and then its argument prototype would still apply. */
33097char $ac_func ();
33098/* The GNU C library defines this for functions which it implements
33099 to always fail with ENOSYS. Some functions are actually named
33100 something starting with __ and the normal name is an alias. */
33101#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33102choke me
33103#else
33104char (*f) () = $ac_func;
33105#endif
33106#ifdef __cplusplus
33107}
33108#endif
33109
33110int
33111main ()
33112{
33113return f != $ac_func;
33114 ;
33115 return 0;
33116}
33117_ACEOF
33118rm -f conftest.$ac_objext conftest$ac_exeext
33119if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33120 (eval $ac_link) 2>conftest.er1
a848cd7e 33121 ac_status=$?
ac1cb8d3
VS
33122 grep -v '^ *+' conftest.er1 >conftest.err
33123 rm -f conftest.er1
33124 cat conftest.err >&5
a848cd7e
SC
33125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33126 (exit $ac_status); } &&
5d7b7554 33127 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33129 (eval $ac_try) 2>&5
33130 ac_status=$?
33131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33132 (exit $ac_status); }; } &&
33133 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33135 (eval $ac_try) 2>&5
33136 ac_status=$?
33137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33138 (exit $ac_status); }; }; then
33139 eval "$as_ac_var=yes"
33140else
33141 echo "$as_me: failed program was:" >&5
33142sed 's/^/| /' conftest.$ac_ext >&5
33143
33144eval "$as_ac_var=no"
33145fi
ac1cb8d3
VS
33146rm -f conftest.err conftest.$ac_objext \
33147 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33148fi
33149echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33150echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33151if test `eval echo '${'$as_ac_var'}'` = yes; then
33152 cat >>confdefs.h <<_ACEOF
33153#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33154_ACEOF
33155 WCSLEN_FOUND=1
33156fi
33157done
33158
33159
33160 if test "$WCSLEN_FOUND" = 0; then
33161 if test "$TOOLKIT" = "MSW"; then
33162 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
33163echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
33164if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
33165 echo $ECHO_N "(cached) $ECHO_C" >&6
33166else
33167 ac_check_lib_save_LIBS=$LIBS
33168LIBS="-lmsvcrt $LIBS"
33169cat >conftest.$ac_ext <<_ACEOF
33170/* confdefs.h. */
33171_ACEOF
33172cat confdefs.h >>conftest.$ac_ext
33173cat >>conftest.$ac_ext <<_ACEOF
33174/* end confdefs.h. */
33175
33176/* Override any gcc2 internal prototype to avoid an error. */
33177#ifdef __cplusplus
33178extern "C"
33179#endif
33180/* We use char because int might match the return type of a gcc2
33181 builtin and then its argument prototype would still apply. */
33182char wcslen ();
33183int
33184main ()
33185{
33186wcslen ();
33187 ;
33188 return 0;
33189}
33190_ACEOF
33191rm -f conftest.$ac_objext conftest$ac_exeext
33192if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33193 (eval $ac_link) 2>conftest.er1
a848cd7e 33194 ac_status=$?
ac1cb8d3
VS
33195 grep -v '^ *+' conftest.er1 >conftest.err
33196 rm -f conftest.er1
33197 cat conftest.err >&5
a848cd7e
SC
33198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33199 (exit $ac_status); } &&
5d7b7554 33200 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33202 (eval $ac_try) 2>&5
33203 ac_status=$?
33204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33205 (exit $ac_status); }; } &&
33206 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33208 (eval $ac_try) 2>&5
33209 ac_status=$?
33210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33211 (exit $ac_status); }; }; then
33212 ac_cv_lib_msvcrt_wcslen=yes
33213else
33214 echo "$as_me: failed program was:" >&5
33215sed 's/^/| /' conftest.$ac_ext >&5
33216
33217ac_cv_lib_msvcrt_wcslen=no
33218fi
ac1cb8d3
VS
33219rm -f conftest.err conftest.$ac_objext \
33220 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33221LIBS=$ac_check_lib_save_LIBS
33222fi
33223echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
33224echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
33225if test $ac_cv_lib_msvcrt_wcslen = yes; then
33226 WCHAR_OK=1
33227fi
33228
33229 else
33230 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
33231echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
33232if test "${ac_cv_lib_w_wcslen+set}" = set; then
33233 echo $ECHO_N "(cached) $ECHO_C" >&6
33234else
33235 ac_check_lib_save_LIBS=$LIBS
33236LIBS="-lw $LIBS"
33237cat >conftest.$ac_ext <<_ACEOF
33238/* confdefs.h. */
33239_ACEOF
33240cat confdefs.h >>conftest.$ac_ext
33241cat >>conftest.$ac_ext <<_ACEOF
33242/* end confdefs.h. */
33243
33244/* Override any gcc2 internal prototype to avoid an error. */
33245#ifdef __cplusplus
33246extern "C"
33247#endif
33248/* We use char because int might match the return type of a gcc2
33249 builtin and then its argument prototype would still apply. */
33250char wcslen ();
33251int
33252main ()
33253{
33254wcslen ();
33255 ;
33256 return 0;
33257}
33258_ACEOF
33259rm -f conftest.$ac_objext conftest$ac_exeext
33260if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33261 (eval $ac_link) 2>conftest.er1
a848cd7e 33262 ac_status=$?
ac1cb8d3
VS
33263 grep -v '^ *+' conftest.er1 >conftest.err
33264 rm -f conftest.er1
33265 cat conftest.err >&5
a848cd7e
SC
33266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33267 (exit $ac_status); } &&
5d7b7554 33268 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33270 (eval $ac_try) 2>&5
33271 ac_status=$?
33272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33273 (exit $ac_status); }; } &&
33274 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33276 (eval $ac_try) 2>&5
33277 ac_status=$?
33278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33279 (exit $ac_status); }; }; then
33280 ac_cv_lib_w_wcslen=yes
33281else
33282 echo "$as_me: failed program was:" >&5
33283sed 's/^/| /' conftest.$ac_ext >&5
33284
33285ac_cv_lib_w_wcslen=no
33286fi
ac1cb8d3
VS
33287rm -f conftest.err conftest.$ac_objext \
33288 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33289LIBS=$ac_check_lib_save_LIBS
33290fi
33291echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
33292echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
33293if test $ac_cv_lib_w_wcslen = yes; then
33294
33295 WCHAR_LINK=" -lw"
33296 WCSLEN_FOUND=1
33297
33298fi
33299
33300 fi
33301 fi
33302
33303 if test "$WCSLEN_FOUND" = 1; then
33304 cat >>confdefs.h <<\_ACEOF
33305#define HAVE_WCSLEN 1
33306_ACEOF
33307
33308 fi
33309
efdf6afe 33310 if test "$USE_HPUX" = 1 -a "$GCC" != "yes"; then
c92ad099 33311 CPPFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CPPFLAGS"
473276a9
VS
33312 fi
33313
efdf6afe
VZ
33314 echo "$as_me:$LINENO: checking for mbstate_t" >&5
33315echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
33316if test "${ac_cv_type_mbstate_t+set}" = set; then
33317 echo $ECHO_N "(cached) $ECHO_C" >&6
33318else
33319 cat >conftest.$ac_ext <<_ACEOF
33320/* confdefs.h. */
33321_ACEOF
33322cat confdefs.h >>conftest.$ac_ext
33323cat >>conftest.$ac_ext <<_ACEOF
33324/* end confdefs.h. */
33325#include <wchar.h>
33326
33327int
33328main ()
33329{
33330if ((mbstate_t *) 0)
33331 return 0;
33332if (sizeof (mbstate_t))
33333 return 0;
33334 ;
33335 return 0;
33336}
33337_ACEOF
33338rm -f conftest.$ac_objext
33339if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33340 (eval $ac_compile) 2>conftest.er1
33341 ac_status=$?
33342 grep -v '^ *+' conftest.er1 >conftest.err
33343 rm -f conftest.er1
33344 cat conftest.err >&5
33345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33346 (exit $ac_status); } &&
5d7b7554 33347 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
efdf6afe
VZ
33348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33349 (eval $ac_try) 2>&5
33350 ac_status=$?
33351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33352 (exit $ac_status); }; } &&
33353 { ac_try='test -s conftest.$ac_objext'
33354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33355 (eval $ac_try) 2>&5
33356 ac_status=$?
33357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33358 (exit $ac_status); }; }; then
33359 ac_cv_type_mbstate_t=yes
33360else
33361 echo "$as_me: failed program was:" >&5
33362sed 's/^/| /' conftest.$ac_ext >&5
33363
33364ac_cv_type_mbstate_t=no
33365fi
33366rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33367fi
33368echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
33369echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
33370if test $ac_cv_type_mbstate_t = yes; then
33371
33372cat >>confdefs.h <<_ACEOF
33373#define HAVE_MBSTATE_T 1
33374_ACEOF
33375
a848cd7e
SC
33376
33377for ac_func in wcsrtombs
33378do
33379as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33380echo "$as_me:$LINENO: checking for $ac_func" >&5
33381echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33382if eval "test \"\${$as_ac_var+set}\" = set"; then
33383 echo $ECHO_N "(cached) $ECHO_C" >&6
33384else
33385 cat >conftest.$ac_ext <<_ACEOF
33386/* confdefs.h. */
33387_ACEOF
33388cat confdefs.h >>conftest.$ac_ext
33389cat >>conftest.$ac_ext <<_ACEOF
33390/* end confdefs.h. */
ac1cb8d3
VS
33391/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33392 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33393#define $ac_func innocuous_$ac_func
33394
a848cd7e
SC
33395/* System header to define __stub macros and hopefully few prototypes,
33396 which can conflict with char $ac_func (); below.
33397 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33398 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33399
a848cd7e
SC
33400#ifdef __STDC__
33401# include <limits.h>
33402#else
33403# include <assert.h>
33404#endif
ac1cb8d3
VS
33405
33406#undef $ac_func
33407
a848cd7e
SC
33408/* Override any gcc2 internal prototype to avoid an error. */
33409#ifdef __cplusplus
33410extern "C"
33411{
33412#endif
33413/* We use char because int might match the return type of a gcc2
33414 builtin and then its argument prototype would still apply. */
33415char $ac_func ();
33416/* The GNU C library defines this for functions which it implements
33417 to always fail with ENOSYS. Some functions are actually named
33418 something starting with __ and the normal name is an alias. */
33419#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33420choke me
33421#else
33422char (*f) () = $ac_func;
33423#endif
33424#ifdef __cplusplus
33425}
33426#endif
33427
33428int
33429main ()
33430{
33431return f != $ac_func;
33432 ;
33433 return 0;
33434}
33435_ACEOF
33436rm -f conftest.$ac_objext conftest$ac_exeext
33437if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33438 (eval $ac_link) 2>conftest.er1
a848cd7e 33439 ac_status=$?
ac1cb8d3
VS
33440 grep -v '^ *+' conftest.er1 >conftest.err
33441 rm -f conftest.er1
33442 cat conftest.err >&5
a848cd7e
SC
33443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33444 (exit $ac_status); } &&
5d7b7554 33445 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33447 (eval $ac_try) 2>&5
33448 ac_status=$?
33449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33450 (exit $ac_status); }; } &&
33451 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33453 (eval $ac_try) 2>&5
33454 ac_status=$?
33455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33456 (exit $ac_status); }; }; then
33457 eval "$as_ac_var=yes"
33458else
33459 echo "$as_me: failed program was:" >&5
33460sed 's/^/| /' conftest.$ac_ext >&5
33461
33462eval "$as_ac_var=no"
33463fi
ac1cb8d3
VS
33464rm -f conftest.err conftest.$ac_objext \
33465 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33466fi
33467echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33468echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33469if test `eval echo '${'$as_ac_var'}'` = yes; then
33470 cat >>confdefs.h <<_ACEOF
33471#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33472_ACEOF
33473
33474fi
33475done
33476
efdf6afe
VZ
33477fi
33478
a848cd7e
SC
33479else
33480 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
33481echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
33482fi
33483
a848cd7e 33484
4a767dd5
VZ
33485
33486for ac_func in snprintf vsnprintf
a848cd7e
SC
33487do
33488as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33489echo "$as_me:$LINENO: checking for $ac_func" >&5
33490echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33491if eval "test \"\${$as_ac_var+set}\" = set"; then
33492 echo $ECHO_N "(cached) $ECHO_C" >&6
33493else
33494 cat >conftest.$ac_ext <<_ACEOF
33495/* confdefs.h. */
33496_ACEOF
33497cat confdefs.h >>conftest.$ac_ext
33498cat >>conftest.$ac_ext <<_ACEOF
33499/* end confdefs.h. */
ac1cb8d3
VS
33500/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33501 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33502#define $ac_func innocuous_$ac_func
33503
a848cd7e
SC
33504/* System header to define __stub macros and hopefully few prototypes,
33505 which can conflict with char $ac_func (); below.
33506 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33507 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33508
a848cd7e
SC
33509#ifdef __STDC__
33510# include <limits.h>
33511#else
33512# include <assert.h>
33513#endif
ac1cb8d3
VS
33514
33515#undef $ac_func
33516
a848cd7e
SC
33517/* Override any gcc2 internal prototype to avoid an error. */
33518#ifdef __cplusplus
33519extern "C"
33520{
33521#endif
33522/* We use char because int might match the return type of a gcc2
33523 builtin and then its argument prototype would still apply. */
33524char $ac_func ();
33525/* The GNU C library defines this for functions which it implements
33526 to always fail with ENOSYS. Some functions are actually named
33527 something starting with __ and the normal name is an alias. */
33528#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33529choke me
33530#else
33531char (*f) () = $ac_func;
33532#endif
33533#ifdef __cplusplus
33534}
33535#endif
33536
33537int
33538main ()
33539{
33540return f != $ac_func;
33541 ;
33542 return 0;
33543}
33544_ACEOF
33545rm -f conftest.$ac_objext conftest$ac_exeext
33546if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33547 (eval $ac_link) 2>conftest.er1
a848cd7e 33548 ac_status=$?
ac1cb8d3
VS
33549 grep -v '^ *+' conftest.er1 >conftest.err
33550 rm -f conftest.er1
33551 cat conftest.err >&5
a848cd7e
SC
33552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33553 (exit $ac_status); } &&
5d7b7554 33554 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33556 (eval $ac_try) 2>&5
33557 ac_status=$?
33558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33559 (exit $ac_status); }; } &&
33560 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33562 (eval $ac_try) 2>&5
33563 ac_status=$?
33564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33565 (exit $ac_status); }; }; then
33566 eval "$as_ac_var=yes"
33567else
33568 echo "$as_me: failed program was:" >&5
33569sed 's/^/| /' conftest.$ac_ext >&5
33570
33571eval "$as_ac_var=no"
33572fi
ac1cb8d3
VS
33573rm -f conftest.err conftest.$ac_objext \
33574 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33575fi
33576echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33577echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33578if test `eval echo '${'$as_ac_var'}'` = yes; then
33579 cat >>confdefs.h <<_ACEOF
33580#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33581_ACEOF
33582
33583fi
33584done
33585
33586
33587if test "$ac_cv_func_vsnprintf" = "yes"; then
33588 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
33589echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
33590if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
33591 echo $ECHO_N "(cached) $ECHO_C" >&6
33592else
33593
efdf6afe 33594 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
33595/* confdefs.h. */
33596_ACEOF
33597cat confdefs.h >>conftest.$ac_ext
33598cat >>conftest.$ac_ext <<_ACEOF
33599/* end confdefs.h. */
33600
33601 #include <stdio.h>
33602 #include <stdarg.h>
efdf6afe
VZ
33603 #ifdef __MSL__
33604 #if __MSL__ >= 0x6000
33605 namespace std {}
33606 using namespace std;
33607 #endif
33608 #endif
a848cd7e
SC
33609
33610int
33611main ()
33612{
33613
33614 char *buf;
33615 va_list ap;
62fa8b3a 33616 vsnprintf(buf, 10u, "%s", ap);
c122b164
DE
33617
33618 ;
33619 return 0;
33620}
33621_ACEOF
33622rm -f conftest.$ac_objext
33623if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33624 (eval $ac_compile) 2>conftest.er1
33625 ac_status=$?
33626 grep -v '^ *+' conftest.er1 >conftest.err
33627 rm -f conftest.er1
33628 cat conftest.err >&5
33629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33630 (exit $ac_status); } &&
5d7b7554 33631 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
c122b164
DE
33632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33633 (eval $ac_try) 2>&5
33634 ac_status=$?
33635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33636 (exit $ac_status); }; } &&
33637 { ac_try='test -s conftest.$ac_objext'
33638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33639 (eval $ac_try) 2>&5
33640 ac_status=$?
33641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33642 (exit $ac_status); }; }; then
33643 wx_cv_func_vsnprintf_decl=yes
33644else
33645 echo "$as_me: failed program was:" >&5
33646sed 's/^/| /' conftest.$ac_ext >&5
33647
a848cd7e
SC
33648wx_cv_func_vsnprintf_decl=no
33649
33650fi
ac1cb8d3 33651rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33652
33653
33654fi
33655echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
33656echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
33657
33658 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
33659 cat >>confdefs.h <<\_ACEOF
33660#define HAVE_VSNPRINTF_DECL 1
33661_ACEOF
33662
62fa8b3a
MW
33663
33664 echo "$as_me:$LINENO: checking if vsnprintf declaration is broken" >&5
33665echo $ECHO_N "checking if vsnprintf declaration is broken... $ECHO_C" >&6
33666if test "${wx_cv_func_broken_vsnprintf_decl+set}" = set; then
33667 echo $ECHO_N "(cached) $ECHO_C" >&6
33668else
33669
33670 cat >conftest.$ac_ext <<_ACEOF
33671/* confdefs.h. */
33672_ACEOF
33673cat confdefs.h >>conftest.$ac_ext
33674cat >>conftest.$ac_ext <<_ACEOF
33675/* end confdefs.h. */
33676
33677 #include <stdio.h>
33678 #include <stdarg.h>
33679 #ifdef __MSL__
33680 #if __MSL__ >= 0x6000
33681 namespace std {}
33682 using namespace std;
33683 #endif
33684 #endif
33685
33686int
33687main ()
33688{
33689
33690 char *buf;
33691 va_list ap;
33692 const char *fmt = "%s";
33693 vsnprintf(buf, 10u, fmt, ap);
33694
33695 ;
33696 return 0;
33697}
33698_ACEOF
33699rm -f conftest.$ac_objext
33700if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33701 (eval $ac_compile) 2>conftest.er1
33702 ac_status=$?
33703 grep -v '^ *+' conftest.er1 >conftest.err
33704 rm -f conftest.er1
33705 cat conftest.err >&5
33706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33707 (exit $ac_status); } &&
5d7b7554 33708 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
62fa8b3a
MW
33709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33710 (eval $ac_try) 2>&5
33711 ac_status=$?
33712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33713 (exit $ac_status); }; } &&
33714 { ac_try='test -s conftest.$ac_objext'
33715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33716 (eval $ac_try) 2>&5
33717 ac_status=$?
33718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33719 (exit $ac_status); }; }; then
33720 wx_cv_func_broken_vsnprintf_decl=no
33721else
33722 echo "$as_me: failed program was:" >&5
33723sed 's/^/| /' conftest.$ac_ext >&5
33724
33725wx_cv_func_broken_vsnprintf_decl=yes
33726
33727fi
33728rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33729
33730
33731fi
33732echo "$as_me:$LINENO: result: $wx_cv_func_broken_vsnprintf_decl" >&5
33733echo "${ECHO_T}$wx_cv_func_broken_vsnprintf_decl" >&6
33734
33735 if test "$wx_cv_func_broken_vsnprintf_decl" = "yes"; then
33736 cat >>confdefs.h <<\_ACEOF
33737#define HAVE_BROKEN_VSNPRINTF_DECL 1
33738_ACEOF
33739
33740 fi
a848cd7e
SC
33741 fi
33742fi
33743
4a767dd5
VZ
33744if test "$ac_cv_func_snprintf" = "yes"; then
33745 echo "$as_me:$LINENO: checking for snprintf declaration" >&5
33746echo $ECHO_N "checking for snprintf declaration... $ECHO_C" >&6
33747if test "${wx_cv_func_snprintf_decl+set}" = set; then
33748 echo $ECHO_N "(cached) $ECHO_C" >&6
33749else
33750
33751 cat >conftest.$ac_ext <<_ACEOF
33752/* confdefs.h. */
33753_ACEOF
33754cat confdefs.h >>conftest.$ac_ext
33755cat >>conftest.$ac_ext <<_ACEOF
33756/* end confdefs.h. */
33757
33758 #include <stdio.h>
33759 #include <stdarg.h>
33760 #ifdef __MSL__
33761 #if __MSL__ >= 0x6000
33762 namespace std {}
33763 using namespace std;
33764 #endif
33765 #endif
33766
33767int
33768main ()
33769{
33770
33771 char *buf;
62fa8b3a 33772 snprintf(buf, 10u, "%s", "wx");
4a767dd5
VZ
33773
33774 ;
33775 return 0;
33776}
33777_ACEOF
33778rm -f conftest.$ac_objext
33779if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33780 (eval $ac_compile) 2>conftest.er1
33781 ac_status=$?
33782 grep -v '^ *+' conftest.er1 >conftest.err
33783 rm -f conftest.er1
33784 cat conftest.err >&5
33785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33786 (exit $ac_status); } &&
5d7b7554 33787 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4a767dd5
VZ
33788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33789 (eval $ac_try) 2>&5
33790 ac_status=$?
33791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33792 (exit $ac_status); }; } &&
33793 { ac_try='test -s conftest.$ac_objext'
33794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33795 (eval $ac_try) 2>&5
33796 ac_status=$?
33797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33798 (exit $ac_status); }; }; then
33799 wx_cv_func_snprintf_decl=yes
33800else
33801 echo "$as_me: failed program was:" >&5
33802sed 's/^/| /' conftest.$ac_ext >&5
33803
33804wx_cv_func_snprintf_decl=no
33805
33806fi
33807rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33808
33809
33810fi
33811echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_decl" >&5
33812echo "${ECHO_T}$wx_cv_func_snprintf_decl" >&6
33813
33814 if test "$wx_cv_func_snprintf_decl" = "yes"; then
33815 cat >>confdefs.h <<\_ACEOF
33816#define HAVE_SNPRINTF_DECL 1
33817_ACEOF
33818
62fa8b3a
MW
33819
33820 echo "$as_me:$LINENO: checking if snprintf declaration is broken" >&5
33821echo $ECHO_N "checking if snprintf declaration is broken... $ECHO_C" >&6
33822if test "${wx_cv_func_broken_snprintf_decl+set}" = set; then
33823 echo $ECHO_N "(cached) $ECHO_C" >&6
33824else
33825
33826 cat >conftest.$ac_ext <<_ACEOF
33827/* confdefs.h. */
33828_ACEOF
33829cat confdefs.h >>conftest.$ac_ext
33830cat >>conftest.$ac_ext <<_ACEOF
33831/* end confdefs.h. */
33832
33833 #include <stdio.h>
33834 #include <stdarg.h>
33835 #ifdef __MSL__
33836 #if __MSL__ >= 0x6000
33837 namespace std {}
33838 using namespace std;
33839 #endif
33840 #endif
33841
33842int
33843main ()
33844{
33845
33846 char *buf;
33847 const char *fmt = "%s";
33848 snprintf(buf, 10u, fmt, "wx");
33849
33850 ;
33851 return 0;
33852}
33853_ACEOF
33854rm -f conftest.$ac_objext
33855if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33856 (eval $ac_compile) 2>conftest.er1
33857 ac_status=$?
33858 grep -v '^ *+' conftest.er1 >conftest.err
33859 rm -f conftest.er1
33860 cat conftest.err >&5
33861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33862 (exit $ac_status); } &&
5d7b7554 33863 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
62fa8b3a
MW
33864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33865 (eval $ac_try) 2>&5
33866 ac_status=$?
33867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33868 (exit $ac_status); }; } &&
33869 { ac_try='test -s conftest.$ac_objext'
33870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33871 (eval $ac_try) 2>&5
33872 ac_status=$?
33873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33874 (exit $ac_status); }; }; then
33875 wx_cv_func_broken_snprintf_decl=no
33876else
33877 echo "$as_me: failed program was:" >&5
33878sed 's/^/| /' conftest.$ac_ext >&5
33879
33880wx_cv_func_broken_snprintf_decl=yes
33881
33882fi
33883rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33884
33885
33886fi
33887echo "$as_me:$LINENO: result: $wx_cv_func_broken_snprintf_decl" >&5
33888echo "${ECHO_T}$wx_cv_func_broken_snprintf_decl" >&6
33889
33890 if test "$wx_cv_func_broken_snprintf_decl" = "yes"; then
33891 cat >>confdefs.h <<\_ACEOF
33892#define HAVE_BROKEN_SNPRINTF_DECL 1
33893_ACEOF
33894
33895 fi
4a767dd5
VZ
33896 fi
33897fi
33898
a848cd7e
SC
33899if test "$wxUSE_UNICODE" = yes; then
33900
33901
33902
fbe47c7b
VS
33903
33904
33905
33906for ac_func in wputc wputchar putws fputws wprintf vswprintf
a848cd7e
SC
33907do
33908as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33909echo "$as_me:$LINENO: checking for $ac_func" >&5
33910echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33911if eval "test \"\${$as_ac_var+set}\" = set"; then
33912 echo $ECHO_N "(cached) $ECHO_C" >&6
33913else
33914 cat >conftest.$ac_ext <<_ACEOF
33915/* confdefs.h. */
33916_ACEOF
33917cat confdefs.h >>conftest.$ac_ext
33918cat >>conftest.$ac_ext <<_ACEOF
33919/* end confdefs.h. */
ac1cb8d3
VS
33920/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33921 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33922#define $ac_func innocuous_$ac_func
33923
a848cd7e
SC
33924/* System header to define __stub macros and hopefully few prototypes,
33925 which can conflict with char $ac_func (); below.
33926 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33927 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33928
a848cd7e
SC
33929#ifdef __STDC__
33930# include <limits.h>
33931#else
33932# include <assert.h>
33933#endif
ac1cb8d3
VS
33934
33935#undef $ac_func
33936
a848cd7e
SC
33937/* Override any gcc2 internal prototype to avoid an error. */
33938#ifdef __cplusplus
33939extern "C"
33940{
33941#endif
33942/* We use char because int might match the return type of a gcc2
33943 builtin and then its argument prototype would still apply. */
33944char $ac_func ();
33945/* The GNU C library defines this for functions which it implements
33946 to always fail with ENOSYS. Some functions are actually named
33947 something starting with __ and the normal name is an alias. */
33948#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33949choke me
33950#else
33951char (*f) () = $ac_func;
33952#endif
33953#ifdef __cplusplus
33954}
33955#endif
33956
33957int
33958main ()
33959{
33960return f != $ac_func;
33961 ;
33962 return 0;
33963}
33964_ACEOF
33965rm -f conftest.$ac_objext conftest$ac_exeext
33966if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33967 (eval $ac_link) 2>conftest.er1
a848cd7e 33968 ac_status=$?
ac1cb8d3
VS
33969 grep -v '^ *+' conftest.er1 >conftest.err
33970 rm -f conftest.er1
33971 cat conftest.err >&5
a848cd7e
SC
33972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33973 (exit $ac_status); } &&
5d7b7554 33974 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33976 (eval $ac_try) 2>&5
33977 ac_status=$?
33978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33979 (exit $ac_status); }; } &&
33980 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33982 (eval $ac_try) 2>&5
33983 ac_status=$?
33984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33985 (exit $ac_status); }; }; then
33986 eval "$as_ac_var=yes"
33987else
33988 echo "$as_me: failed program was:" >&5
33989sed 's/^/| /' conftest.$ac_ext >&5
33990
33991eval "$as_ac_var=no"
33992fi
ac1cb8d3
VS
33993rm -f conftest.err conftest.$ac_objext \
33994 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33995fi
33996echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33997echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33998if test `eval echo '${'$as_ac_var'}'` = yes; then
33999 cat >>confdefs.h <<_ACEOF
34000#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34001_ACEOF
34002
34003fi
34004done
34005
34006
34007 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
34008echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
34009 cat >conftest.$ac_ext <<_ACEOF
34010/* confdefs.h. */
34011_ACEOF
34012cat confdefs.h >>conftest.$ac_ext
34013cat >>conftest.$ac_ext <<_ACEOF
34014/* end confdefs.h. */
34015#include <wchar.h>
34016int
34017main ()
34018{
34019&_vsnwprintf;
34020 ;
34021 return 0;
34022}
34023_ACEOF
34024rm -f conftest.$ac_objext
34025if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34026 (eval $ac_compile) 2>conftest.er1
a848cd7e 34027 ac_status=$?
ac1cb8d3
VS
34028 grep -v '^ *+' conftest.er1 >conftest.err
34029 rm -f conftest.er1
34030 cat conftest.err >&5
a848cd7e
SC
34031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34032 (exit $ac_status); } &&
5d7b7554 34033 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34035 (eval $ac_try) 2>&5
34036 ac_status=$?
34037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34038 (exit $ac_status); }; } &&
34039 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34041 (eval $ac_try) 2>&5
34042 ac_status=$?
34043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34044 (exit $ac_status); }; }; then
34045 echo "$as_me:$LINENO: result: yes" >&5
34046echo "${ECHO_T}yes" >&6
34047 cat >>confdefs.h <<\_ACEOF
34048#define HAVE__VSNWPRINTF 1
34049_ACEOF
34050
34051else
34052 echo "$as_me: failed program was:" >&5
34053sed 's/^/| /' conftest.$ac_ext >&5
34054
34055echo "$as_me:$LINENO: result: no" >&5
34056echo "${ECHO_T}no" >&6
34057fi
ac1cb8d3 34058rm -f conftest.err conftest.$ac_objext conftest.$ac_ext;
a848cd7e
SC
34059fi
34060
6ebeb4c7
VZ
34061if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
34062
34063for ac_func in fnmatch
34064do
34065as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34066echo "$as_me:$LINENO: checking for $ac_func" >&5
34067echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34068if eval "test \"\${$as_ac_var+set}\" = set"; then
34069 echo $ECHO_N "(cached) $ECHO_C" >&6
34070else
34071 cat >conftest.$ac_ext <<_ACEOF
34072/* confdefs.h. */
34073_ACEOF
34074cat confdefs.h >>conftest.$ac_ext
34075cat >>conftest.$ac_ext <<_ACEOF
34076/* end confdefs.h. */
34077/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34078 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34079#define $ac_func innocuous_$ac_func
34080
34081/* System header to define __stub macros and hopefully few prototypes,
34082 which can conflict with char $ac_func (); below.
34083 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34084 <limits.h> exists even on freestanding compilers. */
34085
34086#ifdef __STDC__
34087# include <limits.h>
34088#else
34089# include <assert.h>
34090#endif
34091
34092#undef $ac_func
34093
34094/* Override any gcc2 internal prototype to avoid an error. */
34095#ifdef __cplusplus
34096extern "C"
34097{
34098#endif
34099/* We use char because int might match the return type of a gcc2
34100 builtin and then its argument prototype would still apply. */
34101char $ac_func ();
34102/* The GNU C library defines this for functions which it implements
34103 to always fail with ENOSYS. Some functions are actually named
34104 something starting with __ and the normal name is an alias. */
34105#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34106choke me
34107#else
34108char (*f) () = $ac_func;
34109#endif
34110#ifdef __cplusplus
34111}
34112#endif
34113
34114int
34115main ()
34116{
34117return f != $ac_func;
34118 ;
34119 return 0;
34120}
34121_ACEOF
34122rm -f conftest.$ac_objext conftest$ac_exeext
34123if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34124 (eval $ac_link) 2>conftest.er1
34125 ac_status=$?
34126 grep -v '^ *+' conftest.er1 >conftest.err
34127 rm -f conftest.er1
34128 cat conftest.err >&5
34129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34130 (exit $ac_status); } &&
5d7b7554 34131 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6ebeb4c7
VZ
34132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34133 (eval $ac_try) 2>&5
34134 ac_status=$?
34135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34136 (exit $ac_status); }; } &&
34137 { ac_try='test -s conftest$ac_exeext'
34138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34139 (eval $ac_try) 2>&5
34140 ac_status=$?
34141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34142 (exit $ac_status); }; }; then
34143 eval "$as_ac_var=yes"
34144else
34145 echo "$as_me: failed program was:" >&5
34146sed 's/^/| /' conftest.$ac_ext >&5
34147
34148eval "$as_ac_var=no"
34149fi
34150rm -f conftest.err conftest.$ac_objext \
34151 conftest$ac_exeext conftest.$ac_ext
34152fi
34153echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34154echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34155if test `eval echo '${'$as_ac_var'}'` = yes; then
34156 cat >>confdefs.h <<_ACEOF
34157#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34158_ACEOF
34159
34160fi
34161done
34162
34163fi
34164
34165if test "$wxUSE_FILE" = "yes"; then
34166
34167for ac_func in fsync
34168do
34169as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34170echo "$as_me:$LINENO: checking for $ac_func" >&5
34171echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34172if eval "test \"\${$as_ac_var+set}\" = set"; then
34173 echo $ECHO_N "(cached) $ECHO_C" >&6
34174else
34175 cat >conftest.$ac_ext <<_ACEOF
34176/* confdefs.h. */
34177_ACEOF
34178cat confdefs.h >>conftest.$ac_ext
34179cat >>conftest.$ac_ext <<_ACEOF
34180/* end confdefs.h. */
34181/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34182 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34183#define $ac_func innocuous_$ac_func
34184
34185/* System header to define __stub macros and hopefully few prototypes,
34186 which can conflict with char $ac_func (); below.
34187 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34188 <limits.h> exists even on freestanding compilers. */
34189
34190#ifdef __STDC__
34191# include <limits.h>
34192#else
34193# include <assert.h>
34194#endif
34195
34196#undef $ac_func
34197
34198/* Override any gcc2 internal prototype to avoid an error. */
34199#ifdef __cplusplus
34200extern "C"
34201{
34202#endif
34203/* We use char because int might match the return type of a gcc2
34204 builtin and then its argument prototype would still apply. */
34205char $ac_func ();
34206/* The GNU C library defines this for functions which it implements
34207 to always fail with ENOSYS. Some functions are actually named
34208 something starting with __ and the normal name is an alias. */
34209#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34210choke me
34211#else
34212char (*f) () = $ac_func;
34213#endif
34214#ifdef __cplusplus
34215}
34216#endif
34217
34218int
34219main ()
34220{
34221return f != $ac_func;
34222 ;
34223 return 0;
34224}
34225_ACEOF
34226rm -f conftest.$ac_objext conftest$ac_exeext
34227if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34228 (eval $ac_link) 2>conftest.er1
34229 ac_status=$?
34230 grep -v '^ *+' conftest.er1 >conftest.err
34231 rm -f conftest.er1
34232 cat conftest.err >&5
34233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34234 (exit $ac_status); } &&
5d7b7554 34235 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6ebeb4c7
VZ
34236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34237 (eval $ac_try) 2>&5
34238 ac_status=$?
34239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34240 (exit $ac_status); }; } &&
34241 { ac_try='test -s conftest$ac_exeext'
34242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34243 (eval $ac_try) 2>&5
34244 ac_status=$?
34245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34246 (exit $ac_status); }; }; then
34247 eval "$as_ac_var=yes"
34248else
34249 echo "$as_me: failed program was:" >&5
34250sed 's/^/| /' conftest.$ac_ext >&5
34251
34252eval "$as_ac_var=no"
34253fi
34254rm -f conftest.err conftest.$ac_objext \
34255 conftest$ac_exeext conftest.$ac_ext
34256fi
34257echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34258echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34259if test `eval echo '${'$as_ac_var'}'` = yes; then
34260 cat >>confdefs.h <<_ACEOF
34261#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34262_ACEOF
34263
34264fi
34265done
34266
34267fi
a848cd7e
SC
34268
34269
34270if test "$TOOLKIT" != "MSW"; then
34271
34272
a848cd7e
SC
34273
34274
34275
34276# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
34277if test "${with_libiconv_prefix+set}" = set; then
34278 withval="$with_libiconv_prefix"
34279
34280 for dir in `echo "$withval" | tr : ' '`; do
34281 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
34282 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
34283 done
34284
34285fi;
34286
34287 echo "$as_me:$LINENO: checking for iconv" >&5
34288echo $ECHO_N "checking for iconv... $ECHO_C" >&6
34289if test "${am_cv_func_iconv+set}" = set; then
34290 echo $ECHO_N "(cached) $ECHO_C" >&6
34291else
34292
34293 am_cv_func_iconv="no, consider installing GNU libiconv"
34294 am_cv_lib_iconv=no
34295 cat >conftest.$ac_ext <<_ACEOF
34296/* confdefs.h. */
34297_ACEOF
34298cat confdefs.h >>conftest.$ac_ext
34299cat >>conftest.$ac_ext <<_ACEOF
34300/* end confdefs.h. */
34301#include <stdlib.h>
34302#include <iconv.h>
34303int
34304main ()
34305{
34306iconv_t cd = iconv_open("","");
34307 iconv(cd,NULL,NULL,NULL,NULL);
34308 iconv_close(cd);
34309 ;
34310 return 0;
34311}
34312_ACEOF
34313rm -f conftest.$ac_objext conftest$ac_exeext
34314if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34315 (eval $ac_link) 2>conftest.er1
a848cd7e 34316 ac_status=$?
ac1cb8d3
VS
34317 grep -v '^ *+' conftest.er1 >conftest.err
34318 rm -f conftest.er1
34319 cat conftest.err >&5
a848cd7e
SC
34320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34321 (exit $ac_status); } &&
5d7b7554 34322 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34324 (eval $ac_try) 2>&5
34325 ac_status=$?
34326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34327 (exit $ac_status); }; } &&
34328 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34330 (eval $ac_try) 2>&5
34331 ac_status=$?
34332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34333 (exit $ac_status); }; }; then
34334 am_cv_func_iconv=yes
34335else
34336 echo "$as_me: failed program was:" >&5
34337sed 's/^/| /' conftest.$ac_ext >&5
34338
34339fi
ac1cb8d3
VS
34340rm -f conftest.err conftest.$ac_objext \
34341 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34342 if test "$am_cv_func_iconv" != yes; then
34343 am_save_LIBS="$LIBS"
34344 LIBS="$LIBS -liconv"
34345 cat >conftest.$ac_ext <<_ACEOF
34346/* confdefs.h. */
34347_ACEOF
34348cat confdefs.h >>conftest.$ac_ext
34349cat >>conftest.$ac_ext <<_ACEOF
34350/* end confdefs.h. */
34351#include <stdlib.h>
34352#include <iconv.h>
34353int
34354main ()
34355{
34356iconv_t cd = iconv_open("","");
34357 iconv(cd,NULL,NULL,NULL,NULL);
34358 iconv_close(cd);
34359 ;
34360 return 0;
34361}
34362_ACEOF
34363rm -f conftest.$ac_objext conftest$ac_exeext
34364if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34365 (eval $ac_link) 2>conftest.er1
a848cd7e 34366 ac_status=$?
ac1cb8d3
VS
34367 grep -v '^ *+' conftest.er1 >conftest.err
34368 rm -f conftest.er1
34369 cat conftest.err >&5
a848cd7e
SC
34370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34371 (exit $ac_status); } &&
5d7b7554 34372 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34374 (eval $ac_try) 2>&5
34375 ac_status=$?
34376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34377 (exit $ac_status); }; } &&
34378 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34380 (eval $ac_try) 2>&5
34381 ac_status=$?
34382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34383 (exit $ac_status); }; }; then
34384 am_cv_lib_iconv=yes
34385 am_cv_func_iconv=yes
34386else
34387 echo "$as_me: failed program was:" >&5
34388sed 's/^/| /' conftest.$ac_ext >&5
34389
34390fi
ac1cb8d3
VS
34391rm -f conftest.err conftest.$ac_objext \
34392 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34393 LIBS="$am_save_LIBS"
34394 fi
34395
34396fi
34397echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
34398echo "${ECHO_T}$am_cv_func_iconv" >&6
34399 if test "$am_cv_func_iconv" = yes; then
34400
34401cat >>confdefs.h <<\_ACEOF
34402#define HAVE_ICONV 1
34403_ACEOF
34404
34405 echo "$as_me:$LINENO: checking if iconv needs const" >&5
34406echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
34407if test "${wx_cv_func_iconv_const+set}" = set; then
34408 echo $ECHO_N "(cached) $ECHO_C" >&6
34409else
34410 cat >conftest.$ac_ext <<_ACEOF
34411/* confdefs.h. */
34412_ACEOF
34413cat confdefs.h >>conftest.$ac_ext
34414cat >>conftest.$ac_ext <<_ACEOF
34415/* end confdefs.h. */
34416
34417#include <stdlib.h>
34418#include <iconv.h>
34419extern
34420#ifdef __cplusplus
34421"C"
34422#endif
34423#if defined(__STDC__) || defined(__cplusplus)
34424size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
34425#else
34426size_t iconv();
34427#endif
34428
34429int
34430main ()
34431{
34432
34433 ;
34434 return 0;
34435}
34436_ACEOF
34437rm -f conftest.$ac_objext
34438if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34439 (eval $ac_compile) 2>conftest.er1
a848cd7e 34440 ac_status=$?
ac1cb8d3
VS
34441 grep -v '^ *+' conftest.er1 >conftest.err
34442 rm -f conftest.er1
34443 cat conftest.err >&5
a848cd7e
SC
34444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34445 (exit $ac_status); } &&
5d7b7554 34446 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34448 (eval $ac_try) 2>&5
34449 ac_status=$?
34450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34451 (exit $ac_status); }; } &&
34452 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34454 (eval $ac_try) 2>&5
34455 ac_status=$?
34456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34457 (exit $ac_status); }; }; then
34458 wx_cv_func_iconv_const="no"
34459else
34460 echo "$as_me: failed program was:" >&5
34461sed 's/^/| /' conftest.$ac_ext >&5
34462
34463wx_cv_func_iconv_const="yes"
34464
34465fi
ac1cb8d3 34466rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34467
34468fi
34469echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
34470echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
34471
34472 iconv_const=
34473 if test "x$wx_cv_func_iconv_const" = "xyes"; then
34474 iconv_const="const"
34475 fi
34476
34477
34478cat >>confdefs.h <<_ACEOF
34479#define ICONV_CONST $iconv_const
34480_ACEOF
34481
34482 fi
34483 LIBICONV=
34484 if test "$am_cv_lib_iconv" = yes; then
34485 LIBICONV="-liconv"
34486 fi
34487
34488
34489LIBS="$LIBICONV $LIBS"
a848cd7e
SC
34490
34491if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
34492
34493for ac_func in sigaction
34494do
34495as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34496echo "$as_me:$LINENO: checking for $ac_func" >&5
34497echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34498if eval "test \"\${$as_ac_var+set}\" = set"; then
34499 echo $ECHO_N "(cached) $ECHO_C" >&6
34500else
34501 cat >conftest.$ac_ext <<_ACEOF
34502/* confdefs.h. */
34503_ACEOF
34504cat confdefs.h >>conftest.$ac_ext
34505cat >>conftest.$ac_ext <<_ACEOF
34506/* end confdefs.h. */
ac1cb8d3
VS
34507/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34508 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34509#define $ac_func innocuous_$ac_func
34510
a848cd7e
SC
34511/* System header to define __stub macros and hopefully few prototypes,
34512 which can conflict with char $ac_func (); below.
34513 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34514 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34515
a848cd7e
SC
34516#ifdef __STDC__
34517# include <limits.h>
34518#else
34519# include <assert.h>
34520#endif
ac1cb8d3
VS
34521
34522#undef $ac_func
34523
a848cd7e
SC
34524/* Override any gcc2 internal prototype to avoid an error. */
34525#ifdef __cplusplus
34526extern "C"
34527{
34528#endif
34529/* We use char because int might match the return type of a gcc2
34530 builtin and then its argument prototype would still apply. */
34531char $ac_func ();
34532/* The GNU C library defines this for functions which it implements
34533 to always fail with ENOSYS. Some functions are actually named
34534 something starting with __ and the normal name is an alias. */
34535#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34536choke me
34537#else
34538char (*f) () = $ac_func;
34539#endif
34540#ifdef __cplusplus
34541}
34542#endif
34543
34544int
34545main ()
34546{
34547return f != $ac_func;
34548 ;
34549 return 0;
34550}
34551_ACEOF
34552rm -f conftest.$ac_objext conftest$ac_exeext
34553if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34554 (eval $ac_link) 2>conftest.er1
a848cd7e 34555 ac_status=$?
ac1cb8d3
VS
34556 grep -v '^ *+' conftest.er1 >conftest.err
34557 rm -f conftest.er1
34558 cat conftest.err >&5
a848cd7e
SC
34559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34560 (exit $ac_status); } &&
5d7b7554 34561 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34563 (eval $ac_try) 2>&5
34564 ac_status=$?
34565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34566 (exit $ac_status); }; } &&
34567 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34569 (eval $ac_try) 2>&5
34570 ac_status=$?
34571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34572 (exit $ac_status); }; }; then
34573 eval "$as_ac_var=yes"
34574else
34575 echo "$as_me: failed program was:" >&5
34576sed 's/^/| /' conftest.$ac_ext >&5
34577
34578eval "$as_ac_var=no"
34579fi
ac1cb8d3
VS
34580rm -f conftest.err conftest.$ac_objext \
34581 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34582fi
34583echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34584echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34585if test `eval echo '${'$as_ac_var'}'` = yes; then
34586 cat >>confdefs.h <<_ACEOF
34587#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34588_ACEOF
34589
34590fi
34591done
34592
34593
34594 if test "$ac_cv_func_sigaction" = "no"; then
34595 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
34596echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
34597 wxUSE_ON_FATAL_EXCEPTION=no
34598 fi
34599
34600 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
a848cd7e
SC
34601 echo "$as_me:$LINENO: checking for sa_handler type" >&5
34602echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
34603if test "${wx_cv_type_sa_handler+set}" = set; then
34604 echo $ECHO_N "(cached) $ECHO_C" >&6
34605else
34606
34607 cat >conftest.$ac_ext <<_ACEOF
34608/* confdefs.h. */
34609_ACEOF
34610cat confdefs.h >>conftest.$ac_ext
34611cat >>conftest.$ac_ext <<_ACEOF
34612/* end confdefs.h. */
34613#include <signal.h>
34614int
34615main ()
34616{
34617
34618 extern void testSigHandler(int);
34619
34620 struct sigaction sa;
34621 sa.sa_handler = testSigHandler;
34622
34623 ;
34624 return 0;
34625}
34626_ACEOF
34627rm -f conftest.$ac_objext
34628if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34629 (eval $ac_compile) 2>conftest.er1
a848cd7e 34630 ac_status=$?
ac1cb8d3
VS
34631 grep -v '^ *+' conftest.er1 >conftest.err
34632 rm -f conftest.er1
34633 cat conftest.err >&5
a848cd7e
SC
34634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34635 (exit $ac_status); } &&
5d7b7554 34636 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34638 (eval $ac_try) 2>&5
34639 ac_status=$?
34640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34641 (exit $ac_status); }; } &&
34642 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34644 (eval $ac_try) 2>&5
34645 ac_status=$?
34646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34647 (exit $ac_status); }; }; then
34648
34649 wx_cv_type_sa_handler=int
34650
34651else
34652 echo "$as_me: failed program was:" >&5
34653sed 's/^/| /' conftest.$ac_ext >&5
34654
34655
34656 wx_cv_type_sa_handler=void
34657
34658fi
ac1cb8d3 34659rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34660
34661fi
34662echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
34663echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
34664
a848cd7e
SC
34665 cat >>confdefs.h <<_ACEOF
34666#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
34667_ACEOF
34668
34669 fi
34670fi
34671
eaff0f0d 34672if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then
eaff0f0d
VZ
34673 echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5
34674echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6
34675if test "${wx_cv_func_backtrace+set}" = set; then
34676 echo $ECHO_N "(cached) $ECHO_C" >&6
34677else
34678
34679 cat >conftest.$ac_ext <<_ACEOF
34680/* confdefs.h. */
34681_ACEOF
34682cat confdefs.h >>conftest.$ac_ext
34683cat >>conftest.$ac_ext <<_ACEOF
34684/* end confdefs.h. */
34685#include <execinfo.h>
34686int
34687main ()
34688{
34689
34690 void *trace[1];
34691 char **messages;
34692
34693 backtrace(trace, 1);
34694 messages = backtrace_symbols(trace, 1);
34695
34696 ;
34697 return 0;
34698}
34699_ACEOF
34700rm -f conftest.$ac_objext
34701if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34702 (eval $ac_compile) 2>conftest.er1
34703 ac_status=$?
34704 grep -v '^ *+' conftest.er1 >conftest.err
34705 rm -f conftest.er1
34706 cat conftest.err >&5
34707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34708 (exit $ac_status); } &&
5d7b7554 34709 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
eaff0f0d
VZ
34710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34711 (eval $ac_try) 2>&5
34712 ac_status=$?
34713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34714 (exit $ac_status); }; } &&
34715 { ac_try='test -s conftest.$ac_objext'
34716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34717 (eval $ac_try) 2>&5
34718 ac_status=$?
34719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34720 (exit $ac_status); }; }; then
34721 wx_cv_func_backtrace=yes
34722else
34723 echo "$as_me: failed program was:" >&5
34724sed 's/^/| /' conftest.$ac_ext >&5
34725
34726wx_cv_func_backtrace=no
34727
34728fi
34729rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34730
34731
34732fi
34733echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5
34734echo "${ECHO_T}$wx_cv_func_backtrace" >&6
34735
34736
34737 if test "$wx_cv_func_backtrace" = "no"; then
34738 { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5
34739echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;}
34740 wxUSE_STACKWALKER=no
34741 else
34742 echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5
34743echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6
34744if test "${wx_cv_func_cxa_demangle+set}" = set; then
34745 echo $ECHO_N "(cached) $ECHO_C" >&6
34746else
34747
34748 cat >conftest.$ac_ext <<_ACEOF
34749/* confdefs.h. */
34750_ACEOF
34751cat confdefs.h >>conftest.$ac_ext
34752cat >>conftest.$ac_ext <<_ACEOF
34753/* end confdefs.h. */
34754#include <cxxabi.h>
34755int
34756main ()
34757{
34758
34759 int rc;
34760 __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc);
34761
34762 ;
34763 return 0;
34764}
34765_ACEOF
dfe0c803
JS
34766rm -f conftest.$ac_objext conftest$ac_exeext
34767if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34768 (eval $ac_link) 2>conftest.er1
eaff0f0d
VZ
34769 ac_status=$?
34770 grep -v '^ *+' conftest.er1 >conftest.err
34771 rm -f conftest.er1
34772 cat conftest.err >&5
34773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34774 (exit $ac_status); } &&
5d7b7554 34775 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
eaff0f0d
VZ
34776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34777 (eval $ac_try) 2>&5
34778 ac_status=$?
34779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34780 (exit $ac_status); }; } &&
dfe0c803 34781 { ac_try='test -s conftest$ac_exeext'
eaff0f0d
VZ
34782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34783 (eval $ac_try) 2>&5
34784 ac_status=$?
34785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34786 (exit $ac_status); }; }; then
34787 wx_cv_func_cxa_demangle=yes
34788else
34789 echo "$as_me: failed program was:" >&5
34790sed 's/^/| /' conftest.$ac_ext >&5
34791
34792wx_cv_func_cxa_demangle=no
34793
34794fi
dfe0c803
JS
34795rm -f conftest.err conftest.$ac_objext \
34796 conftest$ac_exeext conftest.$ac_ext
eaff0f0d
VZ
34797
34798
34799fi
34800echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5
34801echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6
34802
34803 if test "$wx_cv_func_cxa_demangle" = "yes"; then
34804 cat >>confdefs.h <<\_ACEOF
34805#define HAVE_CXA_DEMANGLE 1
34806_ACEOF
34807
34808 fi
34809 fi
eaff0f0d
VZ
34810fi
34811
898beab1
DE
34812if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != "1" -a "$USE_UNIX" != "1"; then
34813 { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5
34814echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;}
34815 wxUSE_STACKWALKER=no
34816fi
34817
34818
a848cd7e
SC
34819
34820
34821for ac_func in mkstemp mktemp
34822do
34823as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34824echo "$as_me:$LINENO: checking for $ac_func" >&5
34825echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34826if eval "test \"\${$as_ac_var+set}\" = set"; then
34827 echo $ECHO_N "(cached) $ECHO_C" >&6
34828else
34829 cat >conftest.$ac_ext <<_ACEOF
34830/* confdefs.h. */
34831_ACEOF
34832cat confdefs.h >>conftest.$ac_ext
34833cat >>conftest.$ac_ext <<_ACEOF
34834/* end confdefs.h. */
ac1cb8d3
VS
34835/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34836 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34837#define $ac_func innocuous_$ac_func
34838
a848cd7e
SC
34839/* System header to define __stub macros and hopefully few prototypes,
34840 which can conflict with char $ac_func (); below.
34841 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34842 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34843
a848cd7e
SC
34844#ifdef __STDC__
34845# include <limits.h>
34846#else
34847# include <assert.h>
34848#endif
ac1cb8d3
VS
34849
34850#undef $ac_func
34851
a848cd7e
SC
34852/* Override any gcc2 internal prototype to avoid an error. */
34853#ifdef __cplusplus
34854extern "C"
34855{
34856#endif
34857/* We use char because int might match the return type of a gcc2
34858 builtin and then its argument prototype would still apply. */
34859char $ac_func ();
34860/* The GNU C library defines this for functions which it implements
34861 to always fail with ENOSYS. Some functions are actually named
34862 something starting with __ and the normal name is an alias. */
34863#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34864choke me
34865#else
34866char (*f) () = $ac_func;
34867#endif
34868#ifdef __cplusplus
34869}
34870#endif
34871
34872int
34873main ()
34874{
34875return f != $ac_func;
34876 ;
34877 return 0;
34878}
34879_ACEOF
34880rm -f conftest.$ac_objext conftest$ac_exeext
34881if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34882 (eval $ac_link) 2>conftest.er1
a848cd7e 34883 ac_status=$?
ac1cb8d3
VS
34884 grep -v '^ *+' conftest.er1 >conftest.err
34885 rm -f conftest.er1
34886 cat conftest.err >&5
a848cd7e
SC
34887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34888 (exit $ac_status); } &&
5d7b7554 34889 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34891 (eval $ac_try) 2>&5
34892 ac_status=$?
34893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34894 (exit $ac_status); }; } &&
34895 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34897 (eval $ac_try) 2>&5
34898 ac_status=$?
34899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34900 (exit $ac_status); }; }; then
34901 eval "$as_ac_var=yes"
34902else
34903 echo "$as_me: failed program was:" >&5
34904sed 's/^/| /' conftest.$ac_ext >&5
34905
34906eval "$as_ac_var=no"
34907fi
ac1cb8d3
VS
34908rm -f conftest.err conftest.$ac_objext \
34909 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34910fi
34911echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34912echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34913if test `eval echo '${'$as_ac_var'}'` = yes; then
34914 cat >>confdefs.h <<_ACEOF
34915#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34916_ACEOF
34917 break
34918fi
34919done
34920
34921
34922echo "$as_me:$LINENO: checking for statfs" >&5
34923echo $ECHO_N "checking for statfs... $ECHO_C" >&6
34924if test "${wx_cv_func_statfs+set}" = set; then
34925 echo $ECHO_N "(cached) $ECHO_C" >&6
34926else
34927 cat >conftest.$ac_ext <<_ACEOF
34928/* confdefs.h. */
34929_ACEOF
34930cat confdefs.h >>conftest.$ac_ext
34931cat >>conftest.$ac_ext <<_ACEOF
34932/* end confdefs.h. */
34933
34934 #if defined(__BSD__)
84ae7ca4
VZ
34935 #include <sys/param.h>
34936 #include <sys/mount.h>
a848cd7e 34937 #else
84ae7ca4 34938 #include <sys/vfs.h>
a848cd7e
SC
34939 #endif
34940
34941int
34942main ()
34943{
34944
34945 long l;
34946 struct statfs fs;
34947 statfs("/", &fs);
34948 l = fs.f_bsize;
34949 l += fs.f_blocks;
34950 l += fs.f_bavail;
34951
34952 ;
34953 return 0;
34954}
34955_ACEOF
34956rm -f conftest.$ac_objext
34957if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34958 (eval $ac_compile) 2>conftest.er1
a848cd7e 34959 ac_status=$?
ac1cb8d3
VS
34960 grep -v '^ *+' conftest.er1 >conftest.err
34961 rm -f conftest.er1
34962 cat conftest.err >&5
a848cd7e
SC
34963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34964 (exit $ac_status); } &&
5d7b7554 34965 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34967 (eval $ac_try) 2>&5
34968 ac_status=$?
34969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34970 (exit $ac_status); }; } &&
34971 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34973 (eval $ac_try) 2>&5
34974 ac_status=$?
34975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34976 (exit $ac_status); }; }; then
84ae7ca4 34977 wx_cv_func_statfs=yes
a848cd7e
SC
34978else
34979 echo "$as_me: failed program was:" >&5
34980sed 's/^/| /' conftest.$ac_ext >&5
34981
84ae7ca4 34982wx_cv_func_statfs=no
a848cd7e
SC
34983
34984fi
ac1cb8d3 34985rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34986
34987fi
34988echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
34989echo "${ECHO_T}$wx_cv_func_statfs" >&6
34990
34991if test "$wx_cv_func_statfs" = "yes"; then
5d7b7554 34992 echo "$as_me:$LINENO: checking for statfs declaration" >&5
84ae7ca4
VZ
34993echo $ECHO_N "checking for statfs declaration... $ECHO_C" >&6
34994if test "${wx_cv_func_statfs_decl+set}" = set; then
34995 echo $ECHO_N "(cached) $ECHO_C" >&6
34996else
0683aca6
VZ
34997 cat >conftest.$ac_ext <<_ACEOF
34998/* confdefs.h. */
34999_ACEOF
35000cat confdefs.h >>conftest.$ac_ext
35001cat >>conftest.$ac_ext <<_ACEOF
35002/* end confdefs.h. */
84ae7ca4 35003
0683aca6
VZ
35004 #if defined(__BSD__)
35005 #include <sys/param.h>
35006 #include <sys/mount.h>
35007 #else
35008 #include <sys/vfs.h>
35009 #endif
35010
35011int
35012main ()
35013{
35014
35015 struct statfs fs;
35016 statfs("", &fs);
35017
35018 ;
35019 return 0;
35020}
35021_ACEOF
35022rm -f conftest.$ac_objext
35023if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35024 (eval $ac_compile) 2>conftest.er1
35025 ac_status=$?
35026 grep -v '^ *+' conftest.er1 >conftest.err
35027 rm -f conftest.er1
35028 cat conftest.err >&5
35029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35030 (exit $ac_status); } &&
5d7b7554 35031 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0683aca6
VZ
35032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35033 (eval $ac_try) 2>&5
35034 ac_status=$?
35035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35036 (exit $ac_status); }; } &&
35037 { ac_try='test -s conftest.$ac_objext'
35038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35039 (eval $ac_try) 2>&5
35040 ac_status=$?
35041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35042 (exit $ac_status); }; }; then
35043 wx_cv_func_statfs_decl=yes
35044else
35045 echo "$as_me: failed program was:" >&5
35046sed 's/^/| /' conftest.$ac_ext >&5
35047
35048wx_cv_func_statfs_decl=no
35049
35050fi
35051rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
84ae7ca4
VZ
35052
35053fi
35054echo "$as_me:$LINENO: result: $wx_cv_func_statfs_decl" >&5
35055echo "${ECHO_T}$wx_cv_func_statfs_decl" >&6
84ae7ca4
VZ
35056
35057 if test "$wx_cv_func_statfs_decl" = "yes"; then
35058 cat >>confdefs.h <<\_ACEOF
35059#define HAVE_STATFS_DECL 1
35060_ACEOF
35061
35062 fi
35063
a848cd7e
SC
35064 wx_cv_type_statvfs_t="struct statfs"
35065 cat >>confdefs.h <<\_ACEOF
35066#define HAVE_STATFS 1
35067_ACEOF
35068
35069else
35070 echo "$as_me:$LINENO: checking for statvfs" >&5
35071echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
35072if test "${wx_cv_func_statvfs+set}" = set; then
35073 echo $ECHO_N "(cached) $ECHO_C" >&6
35074else
35075 cat >conftest.$ac_ext <<_ACEOF
35076/* confdefs.h. */
35077_ACEOF
35078cat confdefs.h >>conftest.$ac_ext
35079cat >>conftest.$ac_ext <<_ACEOF
35080/* end confdefs.h. */
35081
35082 #include <stddef.h>
35083 #include <sys/statvfs.h>
35084
35085int
35086main ()
35087{
35088
35089 statvfs("/", NULL);
35090
35091 ;
35092 return 0;
35093}
35094_ACEOF
35095rm -f conftest.$ac_objext
35096if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35097 (eval $ac_compile) 2>conftest.er1
a848cd7e 35098 ac_status=$?
ac1cb8d3
VS
35099 grep -v '^ *+' conftest.er1 >conftest.err
35100 rm -f conftest.er1
35101 cat conftest.err >&5
a848cd7e
SC
35102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35103 (exit $ac_status); } &&
5d7b7554 35104 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35106 (eval $ac_try) 2>&5
35107 ac_status=$?
35108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35109 (exit $ac_status); }; } &&
35110 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35112 (eval $ac_try) 2>&5
35113 ac_status=$?
35114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35115 (exit $ac_status); }; }; then
35116 wx_cv_func_statvfs=yes
35117else
35118 echo "$as_me: failed program was:" >&5
35119sed 's/^/| /' conftest.$ac_ext >&5
35120
35121wx_cv_func_statvfs=no
35122
35123fi
ac1cb8d3 35124rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35125
35126fi
35127echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
35128echo "${ECHO_T}$wx_cv_func_statvfs" >&6
35129
35130 if test "$wx_cv_func_statvfs" = "yes"; then
5d7b7554 35131 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
a848cd7e
SC
35132echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
35133if test "${wx_cv_type_statvfs_t+set}" = set; then
35134 echo $ECHO_N "(cached) $ECHO_C" >&6
35135else
35136 cat >conftest.$ac_ext <<_ACEOF
35137/* confdefs.h. */
35138_ACEOF
35139cat confdefs.h >>conftest.$ac_ext
35140cat >>conftest.$ac_ext <<_ACEOF
35141/* end confdefs.h. */
35142
35143 #include <sys/statvfs.h>
35144
35145int
35146main ()
35147{
35148
35149 long l;
35150 statvfs_t fs;
35151 statvfs("/", &fs);
35152 l = fs.f_bsize;
35153 l += fs.f_blocks;
35154 l += fs.f_bavail;
35155
35156 ;
35157 return 0;
35158}
35159_ACEOF
35160rm -f conftest.$ac_objext
35161if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35162 (eval $ac_compile) 2>conftest.er1
a848cd7e 35163 ac_status=$?
ac1cb8d3
VS
35164 grep -v '^ *+' conftest.er1 >conftest.err
35165 rm -f conftest.er1
35166 cat conftest.err >&5
a848cd7e
SC
35167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35168 (exit $ac_status); } &&
5d7b7554 35169 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35171 (eval $ac_try) 2>&5
35172 ac_status=$?
35173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35174 (exit $ac_status); }; } &&
35175 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35177 (eval $ac_try) 2>&5
35178 ac_status=$?
35179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35180 (exit $ac_status); }; }; then
35181 wx_cv_type_statvfs_t=statvfs_t
35182else
35183 echo "$as_me: failed program was:" >&5
35184sed 's/^/| /' conftest.$ac_ext >&5
35185
35186
35187 cat >conftest.$ac_ext <<_ACEOF
35188/* confdefs.h. */
35189_ACEOF
35190cat confdefs.h >>conftest.$ac_ext
35191cat >>conftest.$ac_ext <<_ACEOF
35192/* end confdefs.h. */
35193
35194 #include <sys/statvfs.h>
35195
35196int
35197main ()
35198{
35199
35200 long l;
35201 struct statvfs fs;
35202 statvfs("/", &fs);
35203 l = fs.f_bsize;
35204 l += fs.f_blocks;
35205 l += fs.f_bavail;
35206
35207 ;
35208 return 0;
35209}
35210_ACEOF
35211rm -f conftest.$ac_objext
35212if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35213 (eval $ac_compile) 2>conftest.er1
a848cd7e 35214 ac_status=$?
ac1cb8d3
VS
35215 grep -v '^ *+' conftest.er1 >conftest.err
35216 rm -f conftest.er1
35217 cat conftest.err >&5
a848cd7e
SC
35218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35219 (exit $ac_status); } &&
5d7b7554 35220 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35222 (eval $ac_try) 2>&5
35223 ac_status=$?
35224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35225 (exit $ac_status); }; } &&
35226 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35228 (eval $ac_try) 2>&5
35229 ac_status=$?
35230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35231 (exit $ac_status); }; }; then
35232 wx_cv_type_statvfs_t="struct statvfs"
35233else
35234 echo "$as_me: failed program was:" >&5
35235sed 's/^/| /' conftest.$ac_ext >&5
35236
35237wx_cv_type_statvfs_t="unknown"
35238
35239fi
ac1cb8d3 35240rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35241
35242
35243fi
ac1cb8d3 35244rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35245
35246fi
35247echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
35248echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
35249
a848cd7e
SC
35250 if test "$wx_cv_type_statvfs_t" != "unknown"; then
35251 cat >>confdefs.h <<\_ACEOF
35252#define HAVE_STATVFS 1
35253_ACEOF
35254
35255 fi
35256 else
35257 wx_cv_type_statvfs_t="unknown"
35258 fi
35259fi
35260
35261if test "$wx_cv_type_statvfs_t" != "unknown"; then
35262 cat >>confdefs.h <<_ACEOF
35263#define WX_STATFS_T $wx_cv_type_statvfs_t
35264_ACEOF
35265
35266else
35267 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
35268echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
35269fi
35270
35271if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
35272
35273
35274for ac_func in fcntl flock
35275do
35276as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35277echo "$as_me:$LINENO: checking for $ac_func" >&5
35278echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35279if eval "test \"\${$as_ac_var+set}\" = set"; then
35280 echo $ECHO_N "(cached) $ECHO_C" >&6
35281else
35282 cat >conftest.$ac_ext <<_ACEOF
35283/* confdefs.h. */
35284_ACEOF
35285cat confdefs.h >>conftest.$ac_ext
35286cat >>conftest.$ac_ext <<_ACEOF
35287/* end confdefs.h. */
ac1cb8d3
VS
35288/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35289 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35290#define $ac_func innocuous_$ac_func
35291
a848cd7e
SC
35292/* System header to define __stub macros and hopefully few prototypes,
35293 which can conflict with char $ac_func (); below.
35294 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35295 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35296
a848cd7e
SC
35297#ifdef __STDC__
35298# include <limits.h>
35299#else
35300# include <assert.h>
35301#endif
ac1cb8d3
VS
35302
35303#undef $ac_func
35304
a848cd7e
SC
35305/* Override any gcc2 internal prototype to avoid an error. */
35306#ifdef __cplusplus
35307extern "C"
35308{
35309#endif
35310/* We use char because int might match the return type of a gcc2
35311 builtin and then its argument prototype would still apply. */
35312char $ac_func ();
35313/* The GNU C library defines this for functions which it implements
35314 to always fail with ENOSYS. Some functions are actually named
35315 something starting with __ and the normal name is an alias. */
35316#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35317choke me
35318#else
35319char (*f) () = $ac_func;
35320#endif
35321#ifdef __cplusplus
35322}
35323#endif
35324
35325int
35326main ()
35327{
35328return f != $ac_func;
35329 ;
35330 return 0;
35331}
35332_ACEOF
35333rm -f conftest.$ac_objext conftest$ac_exeext
35334if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35335 (eval $ac_link) 2>conftest.er1
a848cd7e 35336 ac_status=$?
ac1cb8d3
VS
35337 grep -v '^ *+' conftest.er1 >conftest.err
35338 rm -f conftest.er1
35339 cat conftest.err >&5
a848cd7e
SC
35340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35341 (exit $ac_status); } &&
5d7b7554 35342 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35344 (eval $ac_try) 2>&5
35345 ac_status=$?
35346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35347 (exit $ac_status); }; } &&
35348 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35350 (eval $ac_try) 2>&5
35351 ac_status=$?
35352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35353 (exit $ac_status); }; }; then
35354 eval "$as_ac_var=yes"
35355else
35356 echo "$as_me: failed program was:" >&5
35357sed 's/^/| /' conftest.$ac_ext >&5
35358
35359eval "$as_ac_var=no"
35360fi
ac1cb8d3
VS
35361rm -f conftest.err conftest.$ac_objext \
35362 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35363fi
35364echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35365echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35366if test `eval echo '${'$as_ac_var'}'` = yes; then
35367 cat >>confdefs.h <<_ACEOF
35368#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35369_ACEOF
35370 break
35371fi
35372done
35373
35374
35375 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
35376 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
35377echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
35378 wxUSE_SNGLINST_CHECKER=no
35379 fi
35380fi
35381
35382
35383for ac_func in timegm
35384do
35385as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35386echo "$as_me:$LINENO: checking for $ac_func" >&5
35387echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35388if eval "test \"\${$as_ac_var+set}\" = set"; then
35389 echo $ECHO_N "(cached) $ECHO_C" >&6
35390else
35391 cat >conftest.$ac_ext <<_ACEOF
35392/* confdefs.h. */
35393_ACEOF
35394cat confdefs.h >>conftest.$ac_ext
35395cat >>conftest.$ac_ext <<_ACEOF
35396/* end confdefs.h. */
ac1cb8d3
VS
35397/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35398 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35399#define $ac_func innocuous_$ac_func
35400
a848cd7e
SC
35401/* System header to define __stub macros and hopefully few prototypes,
35402 which can conflict with char $ac_func (); below.
35403 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35404 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35405
a848cd7e
SC
35406#ifdef __STDC__
35407# include <limits.h>
35408#else
35409# include <assert.h>
35410#endif
ac1cb8d3
VS
35411
35412#undef $ac_func
35413
a848cd7e
SC
35414/* Override any gcc2 internal prototype to avoid an error. */
35415#ifdef __cplusplus
35416extern "C"
35417{
35418#endif
35419/* We use char because int might match the return type of a gcc2
35420 builtin and then its argument prototype would still apply. */
35421char $ac_func ();
35422/* The GNU C library defines this for functions which it implements
35423 to always fail with ENOSYS. Some functions are actually named
35424 something starting with __ and the normal name is an alias. */
35425#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35426choke me
35427#else
35428char (*f) () = $ac_func;
35429#endif
35430#ifdef __cplusplus
35431}
35432#endif
35433
35434int
35435main ()
35436{
35437return f != $ac_func;
35438 ;
35439 return 0;
35440}
35441_ACEOF
35442rm -f conftest.$ac_objext conftest$ac_exeext
35443if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35444 (eval $ac_link) 2>conftest.er1
a848cd7e 35445 ac_status=$?
ac1cb8d3
VS
35446 grep -v '^ *+' conftest.er1 >conftest.err
35447 rm -f conftest.er1
35448 cat conftest.err >&5
a848cd7e
SC
35449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35450 (exit $ac_status); } &&
5d7b7554 35451 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35453 (eval $ac_try) 2>&5
35454 ac_status=$?
35455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35456 (exit $ac_status); }; } &&
35457 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35459 (eval $ac_try) 2>&5
35460 ac_status=$?
35461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35462 (exit $ac_status); }; }; then
35463 eval "$as_ac_var=yes"
35464else
35465 echo "$as_me: failed program was:" >&5
35466sed 's/^/| /' conftest.$ac_ext >&5
35467
35468eval "$as_ac_var=no"
35469fi
ac1cb8d3
VS
35470rm -f conftest.err conftest.$ac_objext \
35471 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35472fi
35473echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35474echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35475if test `eval echo '${'$as_ac_var'}'` = yes; then
35476 cat >>confdefs.h <<_ACEOF
35477#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35478_ACEOF
35479
35480fi
35481done
35482
35483
35484
35485
35486for ac_func in putenv setenv
35487do
35488as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35489echo "$as_me:$LINENO: checking for $ac_func" >&5
35490echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35491if eval "test \"\${$as_ac_var+set}\" = set"; then
35492 echo $ECHO_N "(cached) $ECHO_C" >&6
35493else
35494 cat >conftest.$ac_ext <<_ACEOF
35495/* confdefs.h. */
35496_ACEOF
35497cat confdefs.h >>conftest.$ac_ext
35498cat >>conftest.$ac_ext <<_ACEOF
35499/* end confdefs.h. */
ac1cb8d3
VS
35500/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35501 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35502#define $ac_func innocuous_$ac_func
35503
a848cd7e
SC
35504/* System header to define __stub macros and hopefully few prototypes,
35505 which can conflict with char $ac_func (); below.
35506 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35507 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35508
a848cd7e
SC
35509#ifdef __STDC__
35510# include <limits.h>
35511#else
35512# include <assert.h>
35513#endif
ac1cb8d3
VS
35514
35515#undef $ac_func
35516
a848cd7e
SC
35517/* Override any gcc2 internal prototype to avoid an error. */
35518#ifdef __cplusplus
35519extern "C"
35520{
35521#endif
35522/* We use char because int might match the return type of a gcc2
35523 builtin and then its argument prototype would still apply. */
35524char $ac_func ();
35525/* The GNU C library defines this for functions which it implements
35526 to always fail with ENOSYS. Some functions are actually named
35527 something starting with __ and the normal name is an alias. */
35528#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35529choke me
35530#else
35531char (*f) () = $ac_func;
35532#endif
35533#ifdef __cplusplus
35534}
35535#endif
35536
35537int
35538main ()
35539{
35540return f != $ac_func;
35541 ;
35542 return 0;
35543}
35544_ACEOF
35545rm -f conftest.$ac_objext conftest$ac_exeext
35546if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35547 (eval $ac_link) 2>conftest.er1
a848cd7e 35548 ac_status=$?
ac1cb8d3
VS
35549 grep -v '^ *+' conftest.er1 >conftest.err
35550 rm -f conftest.er1
35551 cat conftest.err >&5
a848cd7e
SC
35552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35553 (exit $ac_status); } &&
5d7b7554 35554 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35556 (eval $ac_try) 2>&5
35557 ac_status=$?
35558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35559 (exit $ac_status); }; } &&
35560 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35562 (eval $ac_try) 2>&5
35563 ac_status=$?
35564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35565 (exit $ac_status); }; }; then
35566 eval "$as_ac_var=yes"
35567else
35568 echo "$as_me: failed program was:" >&5
35569sed 's/^/| /' conftest.$ac_ext >&5
35570
35571eval "$as_ac_var=no"
35572fi
ac1cb8d3
VS
35573rm -f conftest.err conftest.$ac_objext \
35574 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35575fi
35576echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35577echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35578if test `eval echo '${'$as_ac_var'}'` = yes; then
35579 cat >>confdefs.h <<_ACEOF
35580#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35581_ACEOF
35582 break
35583fi
35584done
35585
35586
35587HAVE_SOME_SLEEP_FUNC=0
35588if test "$USE_BEOS" = 1; then
35589 cat >>confdefs.h <<\_ACEOF
35590#define HAVE_SLEEP 1
35591_ACEOF
35592
35593 HAVE_SOME_SLEEP_FUNC=1
35594fi
35595
35596if test "$USE_DARWIN" = 1; then
35597 cat >>confdefs.h <<\_ACEOF
35598#define HAVE_USLEEP 1
35599_ACEOF
35600
35601 HAVE_SOME_SLEEP_FUNC=1
35602fi
35603
35604if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
35605 POSIX4_LINK=
35606
35607for ac_func in nanosleep
35608do
35609as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35610echo "$as_me:$LINENO: checking for $ac_func" >&5
35611echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35612if eval "test \"\${$as_ac_var+set}\" = set"; then
35613 echo $ECHO_N "(cached) $ECHO_C" >&6
35614else
35615 cat >conftest.$ac_ext <<_ACEOF
35616/* confdefs.h. */
35617_ACEOF
35618cat confdefs.h >>conftest.$ac_ext
35619cat >>conftest.$ac_ext <<_ACEOF
35620/* end confdefs.h. */
ac1cb8d3
VS
35621/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35622 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35623#define $ac_func innocuous_$ac_func
35624
a848cd7e
SC
35625/* System header to define __stub macros and hopefully few prototypes,
35626 which can conflict with char $ac_func (); below.
35627 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35628 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35629
a848cd7e
SC
35630#ifdef __STDC__
35631# include <limits.h>
35632#else
35633# include <assert.h>
35634#endif
ac1cb8d3
VS
35635
35636#undef $ac_func
35637
a848cd7e
SC
35638/* Override any gcc2 internal prototype to avoid an error. */
35639#ifdef __cplusplus
35640extern "C"
35641{
35642#endif
35643/* We use char because int might match the return type of a gcc2
35644 builtin and then its argument prototype would still apply. */
35645char $ac_func ();
35646/* The GNU C library defines this for functions which it implements
35647 to always fail with ENOSYS. Some functions are actually named
35648 something starting with __ and the normal name is an alias. */
35649#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35650choke me
35651#else
35652char (*f) () = $ac_func;
35653#endif
35654#ifdef __cplusplus
35655}
35656#endif
35657
35658int
35659main ()
35660{
35661return f != $ac_func;
35662 ;
35663 return 0;
35664}
35665_ACEOF
35666rm -f conftest.$ac_objext conftest$ac_exeext
35667if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35668 (eval $ac_link) 2>conftest.er1
a848cd7e 35669 ac_status=$?
ac1cb8d3
VS
35670 grep -v '^ *+' conftest.er1 >conftest.err
35671 rm -f conftest.er1
35672 cat conftest.err >&5
a848cd7e
SC
35673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35674 (exit $ac_status); } &&
5d7b7554 35675 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35677 (eval $ac_try) 2>&5
35678 ac_status=$?
35679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35680 (exit $ac_status); }; } &&
35681 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35683 (eval $ac_try) 2>&5
35684 ac_status=$?
35685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35686 (exit $ac_status); }; }; then
35687 eval "$as_ac_var=yes"
35688else
35689 echo "$as_me: failed program was:" >&5
35690sed 's/^/| /' conftest.$ac_ext >&5
35691
35692eval "$as_ac_var=no"
35693fi
ac1cb8d3
VS
35694rm -f conftest.err conftest.$ac_objext \
35695 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35696fi
35697echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35698echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35699if test `eval echo '${'$as_ac_var'}'` = yes; then
35700 cat >>confdefs.h <<_ACEOF
35701#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35702_ACEOF
35703 cat >>confdefs.h <<\_ACEOF
35704#define HAVE_NANOSLEEP 1
35705_ACEOF
35706
35707else
35708
35709 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
35710echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
35711if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
35712 echo $ECHO_N "(cached) $ECHO_C" >&6
35713else
35714 ac_check_lib_save_LIBS=$LIBS
35715LIBS="-lposix4 $LIBS"
35716cat >conftest.$ac_ext <<_ACEOF
35717/* confdefs.h. */
35718_ACEOF
35719cat confdefs.h >>conftest.$ac_ext
35720cat >>conftest.$ac_ext <<_ACEOF
35721/* end confdefs.h. */
35722
35723/* Override any gcc2 internal prototype to avoid an error. */
35724#ifdef __cplusplus
35725extern "C"
35726#endif
35727/* We use char because int might match the return type of a gcc2
35728 builtin and then its argument prototype would still apply. */
35729char nanosleep ();
35730int
35731main ()
35732{
35733nanosleep ();
35734 ;
35735 return 0;
35736}
35737_ACEOF
35738rm -f conftest.$ac_objext conftest$ac_exeext
35739if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35740 (eval $ac_link) 2>conftest.er1
a848cd7e 35741 ac_status=$?
ac1cb8d3
VS
35742 grep -v '^ *+' conftest.er1 >conftest.err
35743 rm -f conftest.er1
35744 cat conftest.err >&5
a848cd7e
SC
35745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35746 (exit $ac_status); } &&
5d7b7554 35747 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35749 (eval $ac_try) 2>&5
35750 ac_status=$?
35751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35752 (exit $ac_status); }; } &&
35753 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35755 (eval $ac_try) 2>&5
35756 ac_status=$?
35757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35758 (exit $ac_status); }; }; then
35759 ac_cv_lib_posix4_nanosleep=yes
35760else
35761 echo "$as_me: failed program was:" >&5
35762sed 's/^/| /' conftest.$ac_ext >&5
35763
35764ac_cv_lib_posix4_nanosleep=no
35765fi
ac1cb8d3
VS
35766rm -f conftest.err conftest.$ac_objext \
35767 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35768LIBS=$ac_check_lib_save_LIBS
35769fi
35770echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
35771echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
35772if test $ac_cv_lib_posix4_nanosleep = yes; then
35773
35774 cat >>confdefs.h <<\_ACEOF
35775#define HAVE_NANOSLEEP 1
35776_ACEOF
35777
35778 POSIX4_LINK=" -lposix4"
35779
35780else
35781
35782
35783for ac_func in usleep
35784do
35785as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35786echo "$as_me:$LINENO: checking for $ac_func" >&5
35787echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35788if eval "test \"\${$as_ac_var+set}\" = set"; then
35789 echo $ECHO_N "(cached) $ECHO_C" >&6
35790else
35791 cat >conftest.$ac_ext <<_ACEOF
35792/* confdefs.h. */
35793_ACEOF
35794cat confdefs.h >>conftest.$ac_ext
35795cat >>conftest.$ac_ext <<_ACEOF
35796/* end confdefs.h. */
ac1cb8d3
VS
35797/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35798 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35799#define $ac_func innocuous_$ac_func
35800
a848cd7e
SC
35801/* System header to define __stub macros and hopefully few prototypes,
35802 which can conflict with char $ac_func (); below.
35803 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35804 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35805
a848cd7e
SC
35806#ifdef __STDC__
35807# include <limits.h>
35808#else
35809# include <assert.h>
35810#endif
ac1cb8d3
VS
35811
35812#undef $ac_func
35813
a848cd7e
SC
35814/* Override any gcc2 internal prototype to avoid an error. */
35815#ifdef __cplusplus
35816extern "C"
35817{
35818#endif
35819/* We use char because int might match the return type of a gcc2
35820 builtin and then its argument prototype would still apply. */
35821char $ac_func ();
35822/* The GNU C library defines this for functions which it implements
35823 to always fail with ENOSYS. Some functions are actually named
35824 something starting with __ and the normal name is an alias. */
35825#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35826choke me
35827#else
35828char (*f) () = $ac_func;
35829#endif
35830#ifdef __cplusplus
35831}
35832#endif
35833
35834int
35835main ()
35836{
35837return f != $ac_func;
35838 ;
35839 return 0;
35840}
35841_ACEOF
35842rm -f conftest.$ac_objext conftest$ac_exeext
35843if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35844 (eval $ac_link) 2>conftest.er1
a848cd7e 35845 ac_status=$?
ac1cb8d3
VS
35846 grep -v '^ *+' conftest.er1 >conftest.err
35847 rm -f conftest.er1
35848 cat conftest.err >&5
a848cd7e
SC
35849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35850 (exit $ac_status); } &&
5d7b7554 35851 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35853 (eval $ac_try) 2>&5
35854 ac_status=$?
35855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35856 (exit $ac_status); }; } &&
35857 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35859 (eval $ac_try) 2>&5
35860 ac_status=$?
35861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35862 (exit $ac_status); }; }; then
35863 eval "$as_ac_var=yes"
35864else
35865 echo "$as_me: failed program was:" >&5
35866sed 's/^/| /' conftest.$ac_ext >&5
35867
35868eval "$as_ac_var=no"
35869fi
ac1cb8d3
VS
35870rm -f conftest.err conftest.$ac_objext \
35871 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35872fi
35873echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35874echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35875if test `eval echo '${'$as_ac_var'}'` = yes; then
35876 cat >>confdefs.h <<_ACEOF
35877#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35878_ACEOF
35879 cat >>confdefs.h <<\_ACEOF
35880#define HAVE_USLEEP 1
35881_ACEOF
35882
35883else
35884 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
35885echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
35886
35887fi
35888done
35889
35890
35891
35892fi
35893
35894
35895
35896fi
35897done
35898
35899fi
35900
35901
35902
35903for ac_func in uname gethostname
35904do
35905as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35906echo "$as_me:$LINENO: checking for $ac_func" >&5
35907echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35908if eval "test \"\${$as_ac_var+set}\" = set"; then
35909 echo $ECHO_N "(cached) $ECHO_C" >&6
35910else
35911 cat >conftest.$ac_ext <<_ACEOF
35912/* confdefs.h. */
35913_ACEOF
35914cat confdefs.h >>conftest.$ac_ext
35915cat >>conftest.$ac_ext <<_ACEOF
35916/* end confdefs.h. */
ac1cb8d3
VS
35917/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35918 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35919#define $ac_func innocuous_$ac_func
35920
a848cd7e
SC
35921/* System header to define __stub macros and hopefully few prototypes,
35922 which can conflict with char $ac_func (); below.
35923 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35924 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35925
a848cd7e
SC
35926#ifdef __STDC__
35927# include <limits.h>
35928#else
35929# include <assert.h>
35930#endif
ac1cb8d3
VS
35931
35932#undef $ac_func
35933
a848cd7e
SC
35934/* Override any gcc2 internal prototype to avoid an error. */
35935#ifdef __cplusplus
35936extern "C"
35937{
35938#endif
35939/* We use char because int might match the return type of a gcc2
35940 builtin and then its argument prototype would still apply. */
35941char $ac_func ();
35942/* The GNU C library defines this for functions which it implements
35943 to always fail with ENOSYS. Some functions are actually named
35944 something starting with __ and the normal name is an alias. */
35945#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35946choke me
35947#else
35948char (*f) () = $ac_func;
35949#endif
35950#ifdef __cplusplus
35951}
35952#endif
35953
35954int
35955main ()
35956{
35957return f != $ac_func;
35958 ;
35959 return 0;
35960}
35961_ACEOF
35962rm -f conftest.$ac_objext conftest$ac_exeext
35963if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35964 (eval $ac_link) 2>conftest.er1
a848cd7e 35965 ac_status=$?
ac1cb8d3
VS
35966 grep -v '^ *+' conftest.er1 >conftest.err
35967 rm -f conftest.er1
35968 cat conftest.err >&5
a848cd7e
SC
35969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35970 (exit $ac_status); } &&
5d7b7554 35971 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35973 (eval $ac_try) 2>&5
35974 ac_status=$?
35975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35976 (exit $ac_status); }; } &&
35977 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35979 (eval $ac_try) 2>&5
35980 ac_status=$?
35981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35982 (exit $ac_status); }; }; then
35983 eval "$as_ac_var=yes"
35984else
35985 echo "$as_me: failed program was:" >&5
35986sed 's/^/| /' conftest.$ac_ext >&5
35987
35988eval "$as_ac_var=no"
35989fi
ac1cb8d3
VS
35990rm -f conftest.err conftest.$ac_objext \
35991 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35992fi
35993echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35994echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35995if test `eval echo '${'$as_ac_var'}'` = yes; then
35996 cat >>confdefs.h <<_ACEOF
35997#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35998_ACEOF
35999 break
36000fi
36001done
36002
36003
a848cd7e
SC
36004
36005for ac_func in strtok_r
36006do
36007as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36008echo "$as_me:$LINENO: checking for $ac_func" >&5
36009echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36010if eval "test \"\${$as_ac_var+set}\" = set"; then
36011 echo $ECHO_N "(cached) $ECHO_C" >&6
36012else
36013 cat >conftest.$ac_ext <<_ACEOF
36014/* confdefs.h. */
36015_ACEOF
36016cat confdefs.h >>conftest.$ac_ext
36017cat >>conftest.$ac_ext <<_ACEOF
36018/* end confdefs.h. */
ac1cb8d3
VS
36019/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36020 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36021#define $ac_func innocuous_$ac_func
36022
a848cd7e
SC
36023/* System header to define __stub macros and hopefully few prototypes,
36024 which can conflict with char $ac_func (); below.
36025 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36026 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36027
a848cd7e
SC
36028#ifdef __STDC__
36029# include <limits.h>
36030#else
36031# include <assert.h>
36032#endif
ac1cb8d3
VS
36033
36034#undef $ac_func
36035
a848cd7e
SC
36036/* Override any gcc2 internal prototype to avoid an error. */
36037#ifdef __cplusplus
36038extern "C"
36039{
36040#endif
36041/* We use char because int might match the return type of a gcc2
36042 builtin and then its argument prototype would still apply. */
36043char $ac_func ();
36044/* The GNU C library defines this for functions which it implements
36045 to always fail with ENOSYS. Some functions are actually named
36046 something starting with __ and the normal name is an alias. */
36047#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36048choke me
36049#else
36050char (*f) () = $ac_func;
36051#endif
36052#ifdef __cplusplus
36053}
36054#endif
36055
36056int
36057main ()
36058{
36059return f != $ac_func;
36060 ;
36061 return 0;
36062}
36063_ACEOF
36064rm -f conftest.$ac_objext conftest$ac_exeext
36065if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36066 (eval $ac_link) 2>conftest.er1
a848cd7e 36067 ac_status=$?
ac1cb8d3
VS
36068 grep -v '^ *+' conftest.er1 >conftest.err
36069 rm -f conftest.er1
36070 cat conftest.err >&5
a848cd7e
SC
36071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36072 (exit $ac_status); } &&
5d7b7554 36073 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36075 (eval $ac_try) 2>&5
36076 ac_status=$?
36077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36078 (exit $ac_status); }; } &&
36079 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36081 (eval $ac_try) 2>&5
36082 ac_status=$?
36083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36084 (exit $ac_status); }; }; then
36085 eval "$as_ac_var=yes"
36086else
36087 echo "$as_me: failed program was:" >&5
36088sed 's/^/| /' conftest.$ac_ext >&5
36089
36090eval "$as_ac_var=no"
36091fi
ac1cb8d3
VS
36092rm -f conftest.err conftest.$ac_objext \
36093 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36094fi
36095echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36096echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36097if test `eval echo '${'$as_ac_var'}'` = yes; then
36098 cat >>confdefs.h <<_ACEOF
36099#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36100_ACEOF
36101
36102fi
36103done
36104
36105
a848cd7e
SC
36106INET_LINK=
36107
36108for ac_func in inet_addr
36109do
36110as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36111echo "$as_me:$LINENO: checking for $ac_func" >&5
36112echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36113if eval "test \"\${$as_ac_var+set}\" = set"; then
36114 echo $ECHO_N "(cached) $ECHO_C" >&6
36115else
36116 cat >conftest.$ac_ext <<_ACEOF
36117/* confdefs.h. */
36118_ACEOF
36119cat confdefs.h >>conftest.$ac_ext
36120cat >>conftest.$ac_ext <<_ACEOF
36121/* end confdefs.h. */
ac1cb8d3
VS
36122/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36123 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36124#define $ac_func innocuous_$ac_func
36125
a848cd7e
SC
36126/* System header to define __stub macros and hopefully few prototypes,
36127 which can conflict with char $ac_func (); below.
36128 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36129 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36130
a848cd7e
SC
36131#ifdef __STDC__
36132# include <limits.h>
36133#else
36134# include <assert.h>
36135#endif
ac1cb8d3
VS
36136
36137#undef $ac_func
36138
a848cd7e
SC
36139/* Override any gcc2 internal prototype to avoid an error. */
36140#ifdef __cplusplus
36141extern "C"
36142{
36143#endif
36144/* We use char because int might match the return type of a gcc2
36145 builtin and then its argument prototype would still apply. */
36146char $ac_func ();
36147/* The GNU C library defines this for functions which it implements
36148 to always fail with ENOSYS. Some functions are actually named
36149 something starting with __ and the normal name is an alias. */
36150#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36151choke me
36152#else
36153char (*f) () = $ac_func;
36154#endif
36155#ifdef __cplusplus
36156}
36157#endif
36158
36159int
36160main ()
36161{
36162return f != $ac_func;
36163 ;
36164 return 0;
36165}
36166_ACEOF
36167rm -f conftest.$ac_objext conftest$ac_exeext
36168if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36169 (eval $ac_link) 2>conftest.er1
a848cd7e 36170 ac_status=$?
ac1cb8d3
VS
36171 grep -v '^ *+' conftest.er1 >conftest.err
36172 rm -f conftest.er1
36173 cat conftest.err >&5
a848cd7e
SC
36174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36175 (exit $ac_status); } &&
5d7b7554 36176 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36178 (eval $ac_try) 2>&5
36179 ac_status=$?
36180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36181 (exit $ac_status); }; } &&
36182 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36184 (eval $ac_try) 2>&5
36185 ac_status=$?
36186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36187 (exit $ac_status); }; }; then
36188 eval "$as_ac_var=yes"
36189else
36190 echo "$as_me: failed program was:" >&5
36191sed 's/^/| /' conftest.$ac_ext >&5
36192
36193eval "$as_ac_var=no"
36194fi
ac1cb8d3
VS
36195rm -f conftest.err conftest.$ac_objext \
36196 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36197fi
36198echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36199echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36200if test `eval echo '${'$as_ac_var'}'` = yes; then
36201 cat >>confdefs.h <<_ACEOF
36202#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36203_ACEOF
36204 cat >>confdefs.h <<\_ACEOF
36205#define HAVE_INET_ADDR 1
36206_ACEOF
36207
36208else
36209
36210 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
36211echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
36212if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
36213 echo $ECHO_N "(cached) $ECHO_C" >&6
36214else
36215 ac_check_lib_save_LIBS=$LIBS
36216LIBS="-lnsl $LIBS"
36217cat >conftest.$ac_ext <<_ACEOF
36218/* confdefs.h. */
36219_ACEOF
36220cat confdefs.h >>conftest.$ac_ext
36221cat >>conftest.$ac_ext <<_ACEOF
36222/* end confdefs.h. */
36223
36224/* Override any gcc2 internal prototype to avoid an error. */
36225#ifdef __cplusplus
36226extern "C"
36227#endif
36228/* We use char because int might match the return type of a gcc2
36229 builtin and then its argument prototype would still apply. */
36230char inet_addr ();
36231int
36232main ()
36233{
36234inet_addr ();
36235 ;
36236 return 0;
36237}
36238_ACEOF
36239rm -f conftest.$ac_objext conftest$ac_exeext
36240if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36241 (eval $ac_link) 2>conftest.er1
a848cd7e 36242 ac_status=$?
ac1cb8d3
VS
36243 grep -v '^ *+' conftest.er1 >conftest.err
36244 rm -f conftest.er1
36245 cat conftest.err >&5
a848cd7e
SC
36246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36247 (exit $ac_status); } &&
5d7b7554 36248 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36250 (eval $ac_try) 2>&5
36251 ac_status=$?
36252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36253 (exit $ac_status); }; } &&
36254 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36256 (eval $ac_try) 2>&5
36257 ac_status=$?
36258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36259 (exit $ac_status); }; }; then
36260 ac_cv_lib_nsl_inet_addr=yes
36261else
36262 echo "$as_me: failed program was:" >&5
36263sed 's/^/| /' conftest.$ac_ext >&5
36264
36265ac_cv_lib_nsl_inet_addr=no
36266fi
ac1cb8d3
VS
36267rm -f conftest.err conftest.$ac_objext \
36268 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36269LIBS=$ac_check_lib_save_LIBS
36270fi
36271echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
36272echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
36273if test $ac_cv_lib_nsl_inet_addr = yes; then
36274 INET_LINK="nsl"
36275else
36276
36277 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
36278echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
36279if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
36280 echo $ECHO_N "(cached) $ECHO_C" >&6
36281else
36282 ac_check_lib_save_LIBS=$LIBS
36283LIBS="-lresolv $LIBS"
36284cat >conftest.$ac_ext <<_ACEOF
36285/* confdefs.h. */
36286_ACEOF
36287cat confdefs.h >>conftest.$ac_ext
36288cat >>conftest.$ac_ext <<_ACEOF
36289/* end confdefs.h. */
36290
36291/* Override any gcc2 internal prototype to avoid an error. */
36292#ifdef __cplusplus
36293extern "C"
36294#endif
36295/* We use char because int might match the return type of a gcc2
36296 builtin and then its argument prototype would still apply. */
36297char inet_addr ();
36298int
36299main ()
36300{
36301inet_addr ();
36302 ;
36303 return 0;
36304}
36305_ACEOF
36306rm -f conftest.$ac_objext conftest$ac_exeext
36307if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36308 (eval $ac_link) 2>conftest.er1
a848cd7e 36309 ac_status=$?
ac1cb8d3
VS
36310 grep -v '^ *+' conftest.er1 >conftest.err
36311 rm -f conftest.er1
36312 cat conftest.err >&5
a848cd7e
SC
36313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36314 (exit $ac_status); } &&
5d7b7554 36315 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36317 (eval $ac_try) 2>&5
36318 ac_status=$?
36319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36320 (exit $ac_status); }; } &&
36321 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36323 (eval $ac_try) 2>&5
36324 ac_status=$?
36325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36326 (exit $ac_status); }; }; then
36327 ac_cv_lib_resolv_inet_addr=yes
36328else
36329 echo "$as_me: failed program was:" >&5
36330sed 's/^/| /' conftest.$ac_ext >&5
36331
36332ac_cv_lib_resolv_inet_addr=no
36333fi
ac1cb8d3
VS
36334rm -f conftest.err conftest.$ac_objext \
36335 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36336LIBS=$ac_check_lib_save_LIBS
36337fi
36338echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
36339echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
36340if test $ac_cv_lib_resolv_inet_addr = yes; then
36341 INET_LINK="resolv"
36342else
36343
36344 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
36345echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
36346if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
36347 echo $ECHO_N "(cached) $ECHO_C" >&6
36348else
36349 ac_check_lib_save_LIBS=$LIBS
36350LIBS="-lsocket $LIBS"
36351cat >conftest.$ac_ext <<_ACEOF
36352/* confdefs.h. */
36353_ACEOF
36354cat confdefs.h >>conftest.$ac_ext
36355cat >>conftest.$ac_ext <<_ACEOF
36356/* end confdefs.h. */
36357
36358/* Override any gcc2 internal prototype to avoid an error. */
36359#ifdef __cplusplus
36360extern "C"
36361#endif
36362/* We use char because int might match the return type of a gcc2
36363 builtin and then its argument prototype would still apply. */
36364char inet_addr ();
36365int
36366main ()
36367{
36368inet_addr ();
36369 ;
36370 return 0;
36371}
36372_ACEOF
36373rm -f conftest.$ac_objext conftest$ac_exeext
36374if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36375 (eval $ac_link) 2>conftest.er1
a848cd7e 36376 ac_status=$?
ac1cb8d3
VS
36377 grep -v '^ *+' conftest.er1 >conftest.err
36378 rm -f conftest.er1
36379 cat conftest.err >&5
a848cd7e
SC
36380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36381 (exit $ac_status); } &&
5d7b7554 36382 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36384 (eval $ac_try) 2>&5
36385 ac_status=$?
36386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36387 (exit $ac_status); }; } &&
36388 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36390 (eval $ac_try) 2>&5
36391 ac_status=$?
36392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36393 (exit $ac_status); }; }; then
36394 ac_cv_lib_socket_inet_addr=yes
36395else
36396 echo "$as_me: failed program was:" >&5
36397sed 's/^/| /' conftest.$ac_ext >&5
36398
36399ac_cv_lib_socket_inet_addr=no
36400fi
ac1cb8d3
VS
36401rm -f conftest.err conftest.$ac_objext \
36402 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36403LIBS=$ac_check_lib_save_LIBS
36404fi
36405echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
36406echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
36407if test $ac_cv_lib_socket_inet_addr = yes; then
36408 INET_LINK="socket"
36409
36410fi
36411
36412
36413
36414fi
36415
36416
36417
36418fi
36419
36420
36421
36422fi
36423done
36424
36425
36426
36427for ac_func in inet_aton
36428do
36429as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36430echo "$as_me:$LINENO: checking for $ac_func" >&5
36431echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36432if eval "test \"\${$as_ac_var+set}\" = set"; then
36433 echo $ECHO_N "(cached) $ECHO_C" >&6
36434else
36435 cat >conftest.$ac_ext <<_ACEOF
36436/* confdefs.h. */
36437_ACEOF
36438cat confdefs.h >>conftest.$ac_ext
36439cat >>conftest.$ac_ext <<_ACEOF
36440/* end confdefs.h. */
ac1cb8d3
VS
36441/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36442 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36443#define $ac_func innocuous_$ac_func
36444
a848cd7e
SC
36445/* System header to define __stub macros and hopefully few prototypes,
36446 which can conflict with char $ac_func (); below.
36447 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36448 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36449
a848cd7e
SC
36450#ifdef __STDC__
36451# include <limits.h>
36452#else
36453# include <assert.h>
36454#endif
ac1cb8d3
VS
36455
36456#undef $ac_func
36457
a848cd7e
SC
36458/* Override any gcc2 internal prototype to avoid an error. */
36459#ifdef __cplusplus
36460extern "C"
36461{
36462#endif
36463/* We use char because int might match the return type of a gcc2
36464 builtin and then its argument prototype would still apply. */
36465char $ac_func ();
36466/* The GNU C library defines this for functions which it implements
36467 to always fail with ENOSYS. Some functions are actually named
36468 something starting with __ and the normal name is an alias. */
36469#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36470choke me
36471#else
36472char (*f) () = $ac_func;
36473#endif
36474#ifdef __cplusplus
36475}
36476#endif
36477
36478int
36479main ()
36480{
36481return f != $ac_func;
36482 ;
36483 return 0;
36484}
36485_ACEOF
36486rm -f conftest.$ac_objext conftest$ac_exeext
36487if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36488 (eval $ac_link) 2>conftest.er1
a848cd7e 36489 ac_status=$?
ac1cb8d3
VS
36490 grep -v '^ *+' conftest.er1 >conftest.err
36491 rm -f conftest.er1
36492 cat conftest.err >&5
a848cd7e
SC
36493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36494 (exit $ac_status); } &&
5d7b7554 36495 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36497 (eval $ac_try) 2>&5
36498 ac_status=$?
36499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36500 (exit $ac_status); }; } &&
36501 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36503 (eval $ac_try) 2>&5
36504 ac_status=$?
36505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36506 (exit $ac_status); }; }; then
36507 eval "$as_ac_var=yes"
36508else
36509 echo "$as_me: failed program was:" >&5
36510sed 's/^/| /' conftest.$ac_ext >&5
36511
36512eval "$as_ac_var=no"
36513fi
ac1cb8d3
VS
36514rm -f conftest.err conftest.$ac_objext \
36515 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36516fi
36517echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36518echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36519if test `eval echo '${'$as_ac_var'}'` = yes; then
36520 cat >>confdefs.h <<_ACEOF
36521#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36522_ACEOF
36523 cat >>confdefs.h <<\_ACEOF
36524#define HAVE_INET_ATON 1
36525_ACEOF
36526
36527else
36528
36529 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
36530echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
36531echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
36532if eval "test \"\${$as_ac_Lib+set}\" = set"; then
36533 echo $ECHO_N "(cached) $ECHO_C" >&6
36534else
36535 ac_check_lib_save_LIBS=$LIBS
36536LIBS="-l$INET_LINK $LIBS"
36537cat >conftest.$ac_ext <<_ACEOF
36538/* confdefs.h. */
36539_ACEOF
36540cat confdefs.h >>conftest.$ac_ext
36541cat >>conftest.$ac_ext <<_ACEOF
36542/* end confdefs.h. */
36543
36544/* Override any gcc2 internal prototype to avoid an error. */
36545#ifdef __cplusplus
36546extern "C"
36547#endif
36548/* We use char because int might match the return type of a gcc2
36549 builtin and then its argument prototype would still apply. */
36550char inet_aton ();
36551int
36552main ()
36553{
36554inet_aton ();
36555 ;
36556 return 0;
36557}
36558_ACEOF
36559rm -f conftest.$ac_objext conftest$ac_exeext
36560if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36561 (eval $ac_link) 2>conftest.er1
a848cd7e 36562 ac_status=$?
ac1cb8d3
VS
36563 grep -v '^ *+' conftest.er1 >conftest.err
36564 rm -f conftest.er1
36565 cat conftest.err >&5
a848cd7e
SC
36566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36567 (exit $ac_status); } &&
5d7b7554 36568 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36570 (eval $ac_try) 2>&5
36571 ac_status=$?
36572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36573 (exit $ac_status); }; } &&
36574 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36576 (eval $ac_try) 2>&5
36577 ac_status=$?
36578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36579 (exit $ac_status); }; }; then
36580 eval "$as_ac_Lib=yes"
36581else
36582 echo "$as_me: failed program was:" >&5
36583sed 's/^/| /' conftest.$ac_ext >&5
36584
36585eval "$as_ac_Lib=no"
36586fi
ac1cb8d3
VS
36587rm -f conftest.err conftest.$ac_objext \
36588 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36589LIBS=$ac_check_lib_save_LIBS
36590fi
36591echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
36592echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
36593if test `eval echo '${'$as_ac_Lib'}'` = yes; then
36594 cat >>confdefs.h <<\_ACEOF
36595#define HAVE_INET_ATON 1
36596_ACEOF
36597
36598fi
36599
36600
36601fi
36602done
36603
36604
36605if test "x$INET_LINK" != "x"; then
36606 cat >>confdefs.h <<\_ACEOF
36607#define HAVE_INET_ADDR 1
36608_ACEOF
36609
36610 INET_LINK=" -l$INET_LINK"
36611fi
36612
36613fi
36614
36615
36616
36617EXTRALIBS_ESD=
36618echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
36619echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
36620if test "${ac_cv_lib_esd_esd_close+set}" = set; then
36621 echo $ECHO_N "(cached) $ECHO_C" >&6
36622else
36623 ac_check_lib_save_LIBS=$LIBS
36624LIBS="-lesd $LIBS"
36625cat >conftest.$ac_ext <<_ACEOF
36626/* confdefs.h. */
36627_ACEOF
36628cat confdefs.h >>conftest.$ac_ext
36629cat >>conftest.$ac_ext <<_ACEOF
36630/* end confdefs.h. */
36631
36632/* Override any gcc2 internal prototype to avoid an error. */
36633#ifdef __cplusplus
36634extern "C"
36635#endif
36636/* We use char because int might match the return type of a gcc2
36637 builtin and then its argument prototype would still apply. */
36638char esd_close ();
36639int
36640main ()
36641{
36642esd_close ();
36643 ;
36644 return 0;
36645}
36646_ACEOF
36647rm -f conftest.$ac_objext conftest$ac_exeext
36648if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36649 (eval $ac_link) 2>conftest.er1
a848cd7e 36650 ac_status=$?
ac1cb8d3
VS
36651 grep -v '^ *+' conftest.er1 >conftest.err
36652 rm -f conftest.er1
36653 cat conftest.err >&5
a848cd7e
SC
36654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36655 (exit $ac_status); } &&
5d7b7554 36656 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36658 (eval $ac_try) 2>&5
36659 ac_status=$?
36660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36661 (exit $ac_status); }; } &&
36662 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36664 (eval $ac_try) 2>&5
36665 ac_status=$?
36666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36667 (exit $ac_status); }; }; then
36668 ac_cv_lib_esd_esd_close=yes
36669else
36670 echo "$as_me: failed program was:" >&5
36671sed 's/^/| /' conftest.$ac_ext >&5
36672
36673ac_cv_lib_esd_esd_close=no
36674fi
ac1cb8d3
VS
36675rm -f conftest.err conftest.$ac_objext \
36676 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36677LIBS=$ac_check_lib_save_LIBS
36678fi
36679echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
36680echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
36681if test $ac_cv_lib_esd_esd_close = yes; then
36682
36683
36684for ac_header in esd.h
36685do
36686as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36687if eval "test \"\${$as_ac_Header+set}\" = set"; then
36688 echo "$as_me:$LINENO: checking for $ac_header" >&5
36689echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36690if eval "test \"\${$as_ac_Header+set}\" = set"; then
36691 echo $ECHO_N "(cached) $ECHO_C" >&6
36692fi
36693echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36694echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36695else
36696 # Is the header compilable?
36697echo "$as_me:$LINENO: checking $ac_header usability" >&5
36698echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36699cat >conftest.$ac_ext <<_ACEOF
36700/* confdefs.h. */
36701_ACEOF
36702cat confdefs.h >>conftest.$ac_ext
36703cat >>conftest.$ac_ext <<_ACEOF
36704/* end confdefs.h. */
36705$ac_includes_default
36706#include <$ac_header>
36707_ACEOF
36708rm -f conftest.$ac_objext
36709if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36710 (eval $ac_compile) 2>conftest.er1
a848cd7e 36711 ac_status=$?
ac1cb8d3
VS
36712 grep -v '^ *+' conftest.er1 >conftest.err
36713 rm -f conftest.er1
36714 cat conftest.err >&5
a848cd7e
SC
36715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36716 (exit $ac_status); } &&
5d7b7554 36717 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36719 (eval $ac_try) 2>&5
36720 ac_status=$?
36721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36722 (exit $ac_status); }; } &&
36723 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36725 (eval $ac_try) 2>&5
36726 ac_status=$?
36727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36728 (exit $ac_status); }; }; then
36729 ac_header_compiler=yes
36730else
36731 echo "$as_me: failed program was:" >&5
36732sed 's/^/| /' conftest.$ac_ext >&5
36733
36734ac_header_compiler=no
36735fi
ac1cb8d3 36736rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36737echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36738echo "${ECHO_T}$ac_header_compiler" >&6
36739
36740# Is the header present?
36741echo "$as_me:$LINENO: checking $ac_header presence" >&5
36742echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36743cat >conftest.$ac_ext <<_ACEOF
36744/* confdefs.h. */
36745_ACEOF
36746cat confdefs.h >>conftest.$ac_ext
36747cat >>conftest.$ac_ext <<_ACEOF
36748/* end confdefs.h. */
36749#include <$ac_header>
36750_ACEOF
36751if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36752 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36753 ac_status=$?
36754 grep -v '^ *+' conftest.er1 >conftest.err
36755 rm -f conftest.er1
36756 cat conftest.err >&5
36757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36758 (exit $ac_status); } >/dev/null; then
36759 if test -s conftest.err; then
5d7b7554
VZ
36760 ac_cpp_err=$ac_cxx_preproc_warn_flag
36761 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
36762 else
36763 ac_cpp_err=
36764 fi
36765else
36766 ac_cpp_err=yes
36767fi
36768if test -z "$ac_cpp_err"; then
36769 ac_header_preproc=yes
36770else
36771 echo "$as_me: failed program was:" >&5
36772sed 's/^/| /' conftest.$ac_ext >&5
36773
36774 ac_header_preproc=no
36775fi
36776rm -f conftest.err conftest.$ac_ext
36777echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36778echo "${ECHO_T}$ac_header_preproc" >&6
36779
36780# So? What about this header?
5d7b7554 36781case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 36782 yes:no: )
a848cd7e
SC
36783 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36784echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
36785 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36786echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36787 ac_header_preproc=yes
a848cd7e 36788 ;;
ac1cb8d3 36789 no:yes:* )
a848cd7e
SC
36790 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36791echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
36792 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36793echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36794 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36795echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36796 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36797echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
36798 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36799echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
36800 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36801echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
36802 (
36803 cat <<\_ASBOX
ac1cb8d3
VS
36804## ----------------------------------------- ##
36805## Report this to wx-dev@lists.wxwidgets.org ##
36806## ----------------------------------------- ##
a848cd7e
SC
36807_ASBOX
36808 ) |
36809 sed "s/^/$as_me: WARNING: /" >&2
36810 ;;
36811esac
36812echo "$as_me:$LINENO: checking for $ac_header" >&5
36813echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36814if eval "test \"\${$as_ac_Header+set}\" = set"; then
36815 echo $ECHO_N "(cached) $ECHO_C" >&6
36816else
ac1cb8d3 36817 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
36818fi
36819echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36820echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36821
36822fi
36823if test `eval echo '${'$as_ac_Header'}'` = yes; then
36824 cat >>confdefs.h <<_ACEOF
36825#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36826_ACEOF
36827
36828 EXTRALIBS_ESD="-lesd"
36829
36830fi
36831
36832done
36833
36834
36835fi
36836
36837
36838
36839echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
36840echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
36841cat >conftest.$ac_ext <<_ACEOF
36842/* confdefs.h. */
36843_ACEOF
36844cat confdefs.h >>conftest.$ac_ext
36845cat >>conftest.$ac_ext <<_ACEOF
36846/* end confdefs.h. */
36847#ifdef __linux__
36848 #include <linux/cdrom.h>
36849 #else
36850 /* For Solaris */
36851 #include <sys/cdio.h>
36852 #endif
36853
36854int
36855main ()
36856{
36857struct cdrom_tocentry entry, old_entry;
36858 ;
36859 return 0;
36860}
36861_ACEOF
36862rm -f conftest.$ac_objext
36863if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36864 (eval $ac_compile) 2>conftest.er1
a848cd7e 36865 ac_status=$?
ac1cb8d3
VS
36866 grep -v '^ *+' conftest.er1 >conftest.err
36867 rm -f conftest.er1
36868 cat conftest.err >&5
a848cd7e
SC
36869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36870 (exit $ac_status); } &&
5d7b7554 36871 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36873 (eval $ac_try) 2>&5
36874 ac_status=$?
36875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36876 (exit $ac_status); }; } &&
36877 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36879 (eval $ac_try) 2>&5
36880 ac_status=$?
36881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36882 (exit $ac_status); }; }; then
36883 echo "$as_me:$LINENO: result: yes" >&5
36884echo "${ECHO_T}yes" >&6
36885 cat >>confdefs.h <<\_ACEOF
36886#define HAVE_KNOWN_CDROM_INTERFACE 1
36887_ACEOF
36888
36889else
36890 echo "$as_me: failed program was:" >&5
36891sed 's/^/| /' conftest.$ac_ext >&5
36892
36893echo "$as_me:$LINENO: result: no" >&5
36894echo "${ECHO_T}no" >&6
36895fi
ac1cb8d3 36896rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36897
36898
36899cat >confcache <<\_ACEOF
36900# This file is a shell script that caches the results of configure
36901# tests run on this system so they can be shared between configure
36902# scripts and configure runs, see configure's option --config-cache.
36903# It is not useful on other systems. If it contains results you don't
36904# want to keep, you may remove or edit it.
36905#
36906# config.status only pays attention to the cache file if you give it
36907# the --recheck option to rerun configure.
36908#
36909# `ac_cv_env_foo' variables (set or unset) will be overridden when
36910# loading this file, other *unset* `ac_cv_foo' will be assigned the
36911# following values.
36912
36913_ACEOF
36914
36915# The following way of writing the cache mishandles newlines in values,
36916# but we know of no workaround that is simple, portable, and efficient.
36917# So, don't put newlines in cache variables' values.
36918# Ultrix sh set writes to stderr and can't be redirected directly,
36919# and sets the high bit in the cache file unless we assign to the vars.
36920{
36921 (set) 2>&1 |
36922 case `(ac_space=' '; set | grep ac_space) 2>&1` in
36923 *ac_space=\ *)
36924 # `set' does not quote correctly, so add quotes (double-quote
36925 # substitution turns \\\\ into \\, and sed turns \\ into \).
36926 sed -n \
ac1cb8d3
VS
36927 "s/'/'\\\\''/g;
36928 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
36929 ;;
36930 *)
36931 # `set' quotes correctly as required by POSIX, so do not add quotes.
36932 sed -n \
ac1cb8d3 36933 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
36934 ;;
36935 esac;
36936} |
36937 sed '
36938 t clear
36939 : clear
36940 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
36941 t end
36942 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
36943 : end' >>confcache
36944if diff $cache_file confcache >/dev/null 2>&1; then :; else
36945 if test -w $cache_file; then
36946 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
36947 cat confcache >$cache_file
36948 else
36949 echo "not updating unwritable cache $cache_file"
36950 fi
36951fi
36952rm -f confcache
36953
36954
a848cd7e
SC
36955if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
36956
36957
36958 THREADS_LINK=
e56f4f9e 36959 THREADS_CXXFLAGS=
a848cd7e
SC
36960
36961 if test "$wxUSE_THREADS" = "yes" ; then
36962 if test "$USE_BEOS" = 1; then
36963 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
36964echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
36965 wxUSE_THREADS="no"
36966 fi
36967 fi
36968
36969 if test "$wxUSE_THREADS" = "yes" ; then
36970
36971
36972 THREAD_OPTS="-pthread"
36973 case "${host}" in
36974 *-*-solaris2* | *-*-sunos4* )
36975 if test "x$GCC" = "xyes"; then
36976 THREAD_OPTS="-pthreads $THREAD_OPTS"
36977 else
36978 THREAD_OPTS="-mt $THREAD_OPTS"
36979 fi
36980 ;;
36981 *-*-freebsd*)
36982 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
36983 ;;
36984 *-*-darwin* | *-*-cygwin* )
36985 THREAD_OPTS=""
36986 ;;
36987 *-*-aix*)
36988 THREAD_OPTS="pthreads"
36989 ;;
36990 *-hp-hpux* )
00421666
MW
36991 if test "x$GCC" = "xyes"; then
36992 $CXX -dumpspecs | grep 'pthread:' >/dev/null ||
36993 THREAD_OPTS=""
36994 else
0093c2fc 36995 THREAD_OPTS="-mt"
a848cd7e
SC
36996 fi
36997 ;;
36998
36999 *-*-irix* )
37000 if test "x$GCC" = "xyes"; then
37001 THREAD_OPTS=""
37002 fi
37003 ;;
37004
37005 *-*-*UnixWare*)
37006 if test "x$GCC" != "xyes"; then
37007 THREAD_OPTS="-Ethread"
37008 fi
37009 ;;
37010 esac
37011
37012 THREAD_OPTS="$THREAD_OPTS pthread none"
37013
37014 THREADS_OK=no
37015 for flag in $THREAD_OPTS; do
37016 case $flag in
37017 none)
37018 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
37019echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
37020 ;;
37021
37022 -*)
37023 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
37024echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
e56f4f9e 37025 THREADS_CXXFLAGS="$flag"
a848cd7e
SC
37026 ;;
37027
37028 *)
37029 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
37030echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
37031 THREADS_LINK="-l$flag"
37032 ;;
37033 esac
37034
37035 save_LIBS="$LIBS"
e56f4f9e 37036 save_CXXFLAGS="$CXXFLAGS"
a848cd7e 37037 LIBS="$THREADS_LINK $LIBS"
e56f4f9e 37038 CXXFLAGS="$THREADS_CXXFLAGS $CXXFLAGS"
a848cd7e
SC
37039
37040 cat >conftest.$ac_ext <<_ACEOF
37041/* confdefs.h. */
37042_ACEOF
37043cat confdefs.h >>conftest.$ac_ext
37044cat >>conftest.$ac_ext <<_ACEOF
37045/* end confdefs.h. */
37046#include <pthread.h>
37047int
37048main ()
37049{
37050pthread_create(0,0,0,0);
37051 ;
37052 return 0;
37053}
37054_ACEOF
37055rm -f conftest.$ac_objext conftest$ac_exeext
37056if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37057 (eval $ac_link) 2>conftest.er1
a848cd7e 37058 ac_status=$?
ac1cb8d3
VS
37059 grep -v '^ *+' conftest.er1 >conftest.err
37060 rm -f conftest.er1
37061 cat conftest.err >&5
a848cd7e
SC
37062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37063 (exit $ac_status); } &&
5d7b7554 37064 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37066 (eval $ac_try) 2>&5
37067 ac_status=$?
37068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37069 (exit $ac_status); }; } &&
37070 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37072 (eval $ac_try) 2>&5
37073 ac_status=$?
37074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37075 (exit $ac_status); }; }; then
37076 THREADS_OK=yes
37077else
37078 echo "$as_me: failed program was:" >&5
37079sed 's/^/| /' conftest.$ac_ext >&5
37080
37081fi
ac1cb8d3
VS
37082rm -f conftest.err conftest.$ac_objext \
37083 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37084
37085 LIBS="$save_LIBS"
e56f4f9e 37086 CXXFLAGS="$save_CXXFLAGS"
a848cd7e
SC
37087
37088 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
37089echo "${ECHO_T}$THREADS_OK" >&6
37090 if test "x$THREADS_OK" = "xyes"; then
37091 break;
37092 fi
37093
37094 THREADS_LINK=""
e56f4f9e 37095 THREADS_CXXFLAGS=""
a848cd7e
SC
37096 done
37097
37098 if test "x$THREADS_OK" != "xyes"; then
37099 wxUSE_THREADS=no
37100 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
37101echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
37102 else
e56f4f9e 37103 LDFLAGS="$THREADS_CXXFLAGS $LDFLAGS"
a848cd7e
SC
37104 LIBS="$THREADS_LINK $LIBS"
37105
37106 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
37107echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
37108 flag=no
37109 case "${host}" in
37110 *-aix*)
37111 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
37112 flag="-D_THREAD_SAFE"
37113 ;;
37114 *-freebsd*)
37115 flag="-D_THREAD_SAFE"
37116 ;;
37117 *-hp-hpux* )
37118 flag="-D_REENTRANT"
37119 if test "x$GCC" != "xyes"; then
37120 flag="$flag -D_RWSTD_MULTI_THREAD"
37121 fi
37122 ;;
37123 *solaris* | alpha*-osf*)
37124 flag="-D_REENTRANT"
37125 ;;
37126 esac
37127 echo "$as_me:$LINENO: result: ${flag}" >&5
37128echo "${ECHO_T}${flag}" >&6
37129 if test "x$flag" != xno; then
e56f4f9e 37130 THREADS_CXXFLAGS="$THREADS_CXXFLAGS $flag"
a848cd7e
SC
37131 fi
37132
e56f4f9e 37133 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS $THREADS_CXXFLAGS"
a848cd7e
SC
37134 fi
37135 fi
37136
37137 if test "$wxUSE_THREADS" = "yes" ; then
37138
37139for ac_func in thr_setconcurrency
37140do
37141as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37142echo "$as_me:$LINENO: checking for $ac_func" >&5
37143echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37144if eval "test \"\${$as_ac_var+set}\" = set"; then
37145 echo $ECHO_N "(cached) $ECHO_C" >&6
37146else
37147 cat >conftest.$ac_ext <<_ACEOF
37148/* confdefs.h. */
37149_ACEOF
37150cat confdefs.h >>conftest.$ac_ext
37151cat >>conftest.$ac_ext <<_ACEOF
37152/* end confdefs.h. */
ac1cb8d3
VS
37153/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37154 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37155#define $ac_func innocuous_$ac_func
37156
a848cd7e
SC
37157/* System header to define __stub macros and hopefully few prototypes,
37158 which can conflict with char $ac_func (); below.
37159 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37160 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37161
a848cd7e
SC
37162#ifdef __STDC__
37163# include <limits.h>
37164#else
37165# include <assert.h>
37166#endif
ac1cb8d3
VS
37167
37168#undef $ac_func
37169
a848cd7e
SC
37170/* Override any gcc2 internal prototype to avoid an error. */
37171#ifdef __cplusplus
37172extern "C"
37173{
37174#endif
37175/* We use char because int might match the return type of a gcc2
37176 builtin and then its argument prototype would still apply. */
37177char $ac_func ();
37178/* The GNU C library defines this for functions which it implements
37179 to always fail with ENOSYS. Some functions are actually named
37180 something starting with __ and the normal name is an alias. */
37181#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37182choke me
37183#else
37184char (*f) () = $ac_func;
37185#endif
37186#ifdef __cplusplus
37187}
37188#endif
37189
37190int
37191main ()
37192{
37193return f != $ac_func;
37194 ;
37195 return 0;
37196}
37197_ACEOF
37198rm -f conftest.$ac_objext conftest$ac_exeext
37199if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37200 (eval $ac_link) 2>conftest.er1
a848cd7e 37201 ac_status=$?
ac1cb8d3
VS
37202 grep -v '^ *+' conftest.er1 >conftest.err
37203 rm -f conftest.er1
37204 cat conftest.err >&5
a848cd7e
SC
37205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37206 (exit $ac_status); } &&
5d7b7554 37207 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37209 (eval $ac_try) 2>&5
37210 ac_status=$?
37211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37212 (exit $ac_status); }; } &&
37213 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37215 (eval $ac_try) 2>&5
37216 ac_status=$?
37217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37218 (exit $ac_status); }; }; then
37219 eval "$as_ac_var=yes"
37220else
37221 echo "$as_me: failed program was:" >&5
37222sed 's/^/| /' conftest.$ac_ext >&5
37223
37224eval "$as_ac_var=no"
37225fi
ac1cb8d3
VS
37226rm -f conftest.err conftest.$ac_objext \
37227 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37228fi
37229echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37230echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37231if test `eval echo '${'$as_ac_var'}'` = yes; then
37232 cat >>confdefs.h <<_ACEOF
37233#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37234_ACEOF
37235
37236fi
37237done
37238
37239
6ebeb4c7
VZ
37240 echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5
37241echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6
37242if test "${wx_cv_func_pthread_cleanup+set}" = set; then
37243 echo $ECHO_N "(cached) $ECHO_C" >&6
37244else
37245
37246 cat >conftest.$ac_ext <<_ACEOF
37247/* confdefs.h. */
37248_ACEOF
37249cat confdefs.h >>conftest.$ac_ext
37250cat >>conftest.$ac_ext <<_ACEOF
37251/* end confdefs.h. */
37252#include <pthread.h>
37253 void ThreadCleanupFunc(void *p);
37254
37255int
37256main ()
37257{
37258
37259 void *p;
37260 pthread_cleanup_push(ThreadCleanupFunc, p);
37261 pthread_cleanup_pop(0);
37262
37263 ;
37264 return 0;
37265}
37266_ACEOF
37267rm -f conftest.$ac_objext
37268if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37269 (eval $ac_compile) 2>conftest.er1
37270 ac_status=$?
37271 grep -v '^ *+' conftest.er1 >conftest.err
37272 rm -f conftest.er1
37273 cat conftest.err >&5
37274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37275 (exit $ac_status); } &&
5d7b7554 37276 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6ebeb4c7
VZ
37277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37278 (eval $ac_try) 2>&5
37279 ac_status=$?
37280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37281 (exit $ac_status); }; } &&
37282 { ac_try='test -s conftest.$ac_objext'
37283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37284 (eval $ac_try) 2>&5
37285 ac_status=$?
37286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37287 (exit $ac_status); }; }; then
37288
37289 wx_cv_func_pthread_cleanup=yes
37290
37291else
37292 echo "$as_me: failed program was:" >&5
37293sed 's/^/| /' conftest.$ac_ext >&5
37294
37295
37296 wx_cv_func_pthread_cleanup=no
37297
37298
37299fi
37300rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37301
37302fi
37303echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup" >&5
37304echo "${ECHO_T}$wx_cv_func_pthread_cleanup" >&6
37305 if test "x$wx_cv_func_pthread_cleanup" = "xyes"; then
37306 cat >>confdefs.h <<\_ACEOF
37307#define wxHAVE_PTHREAD_CLEANUP 1
37308_ACEOF
37309
37310 fi
37311
a848cd7e
SC
37312
37313for ac_header in sched.h
37314do
37315as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37316if eval "test \"\${$as_ac_Header+set}\" = set"; then
37317 echo "$as_me:$LINENO: checking for $ac_header" >&5
37318echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37319if eval "test \"\${$as_ac_Header+set}\" = set"; then
37320 echo $ECHO_N "(cached) $ECHO_C" >&6
37321fi
37322echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37323echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37324else
37325 # Is the header compilable?
37326echo "$as_me:$LINENO: checking $ac_header usability" >&5
37327echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37328cat >conftest.$ac_ext <<_ACEOF
37329/* confdefs.h. */
37330_ACEOF
37331cat confdefs.h >>conftest.$ac_ext
37332cat >>conftest.$ac_ext <<_ACEOF
37333/* end confdefs.h. */
37334$ac_includes_default
37335#include <$ac_header>
37336_ACEOF
37337rm -f conftest.$ac_objext
37338if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37339 (eval $ac_compile) 2>conftest.er1
a848cd7e 37340 ac_status=$?
ac1cb8d3
VS
37341 grep -v '^ *+' conftest.er1 >conftest.err
37342 rm -f conftest.er1
37343 cat conftest.err >&5
a848cd7e
SC
37344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37345 (exit $ac_status); } &&
5d7b7554 37346 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37348 (eval $ac_try) 2>&5
37349 ac_status=$?
37350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37351 (exit $ac_status); }; } &&
37352 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37354 (eval $ac_try) 2>&5
37355 ac_status=$?
37356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37357 (exit $ac_status); }; }; then
37358 ac_header_compiler=yes
37359else
37360 echo "$as_me: failed program was:" >&5
37361sed 's/^/| /' conftest.$ac_ext >&5
37362
37363ac_header_compiler=no
37364fi
ac1cb8d3 37365rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37366echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37367echo "${ECHO_T}$ac_header_compiler" >&6
37368
37369# Is the header present?
37370echo "$as_me:$LINENO: checking $ac_header presence" >&5
37371echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37372cat >conftest.$ac_ext <<_ACEOF
37373/* confdefs.h. */
37374_ACEOF
37375cat confdefs.h >>conftest.$ac_ext
37376cat >>conftest.$ac_ext <<_ACEOF
37377/* end confdefs.h. */
37378#include <$ac_header>
37379_ACEOF
37380if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37381 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37382 ac_status=$?
37383 grep -v '^ *+' conftest.er1 >conftest.err
37384 rm -f conftest.er1
37385 cat conftest.err >&5
37386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37387 (exit $ac_status); } >/dev/null; then
37388 if test -s conftest.err; then
5d7b7554
VZ
37389 ac_cpp_err=$ac_cxx_preproc_warn_flag
37390 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
37391 else
37392 ac_cpp_err=
37393 fi
37394else
37395 ac_cpp_err=yes
37396fi
37397if test -z "$ac_cpp_err"; then
37398 ac_header_preproc=yes
37399else
37400 echo "$as_me: failed program was:" >&5
37401sed 's/^/| /' conftest.$ac_ext >&5
37402
37403 ac_header_preproc=no
37404fi
37405rm -f conftest.err conftest.$ac_ext
37406echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37407echo "${ECHO_T}$ac_header_preproc" >&6
37408
37409# So? What about this header?
5d7b7554 37410case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 37411 yes:no: )
a848cd7e
SC
37412 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37413echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
37414 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37415echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37416 ac_header_preproc=yes
a848cd7e 37417 ;;
ac1cb8d3 37418 no:yes:* )
a848cd7e
SC
37419 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37420echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
37421 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
37422echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
37423 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37424echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37425 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
37426echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
37427 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37428echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
37429 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37430echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
37431 (
37432 cat <<\_ASBOX
ac1cb8d3
VS
37433## ----------------------------------------- ##
37434## Report this to wx-dev@lists.wxwidgets.org ##
37435## ----------------------------------------- ##
a848cd7e
SC
37436_ASBOX
37437 ) |
37438 sed "s/^/$as_me: WARNING: /" >&2
37439 ;;
37440esac
37441echo "$as_me:$LINENO: checking for $ac_header" >&5
37442echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37443if eval "test \"\${$as_ac_Header+set}\" = set"; then
37444 echo $ECHO_N "(cached) $ECHO_C" >&6
37445else
ac1cb8d3 37446 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
37447fi
37448echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37449echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37450
37451fi
37452if test `eval echo '${'$as_ac_Header'}'` = yes; then
37453 cat >>confdefs.h <<_ACEOF
37454#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37455_ACEOF
37456
37457fi
37458
37459done
37460
37461 if test "$ac_cv_header_sched_h" = "yes"; then
37462 echo "$as_me:$LINENO: checking for sched_yield" >&5
37463echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
37464if test "${ac_cv_func_sched_yield+set}" = set; then
37465 echo $ECHO_N "(cached) $ECHO_C" >&6
37466else
37467 cat >conftest.$ac_ext <<_ACEOF
37468/* confdefs.h. */
37469_ACEOF
37470cat confdefs.h >>conftest.$ac_ext
37471cat >>conftest.$ac_ext <<_ACEOF
37472/* end confdefs.h. */
ac1cb8d3
VS
37473/* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
37474 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37475#define sched_yield innocuous_sched_yield
37476
a848cd7e
SC
37477/* System header to define __stub macros and hopefully few prototypes,
37478 which can conflict with char sched_yield (); below.
37479 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37480 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37481
a848cd7e
SC
37482#ifdef __STDC__
37483# include <limits.h>
37484#else
37485# include <assert.h>
37486#endif
ac1cb8d3
VS
37487
37488#undef sched_yield
37489
a848cd7e
SC
37490/* Override any gcc2 internal prototype to avoid an error. */
37491#ifdef __cplusplus
37492extern "C"
37493{
37494#endif
37495/* We use char because int might match the return type of a gcc2
37496 builtin and then its argument prototype would still apply. */
37497char sched_yield ();
37498/* The GNU C library defines this for functions which it implements
37499 to always fail with ENOSYS. Some functions are actually named
37500 something starting with __ and the normal name is an alias. */
37501#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
37502choke me
37503#else
37504char (*f) () = sched_yield;
37505#endif
37506#ifdef __cplusplus
37507}
37508#endif
37509
37510int
37511main ()
37512{
37513return f != sched_yield;
37514 ;
37515 return 0;
37516}
37517_ACEOF
37518rm -f conftest.$ac_objext conftest$ac_exeext
37519if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37520 (eval $ac_link) 2>conftest.er1
a848cd7e 37521 ac_status=$?
ac1cb8d3
VS
37522 grep -v '^ *+' conftest.er1 >conftest.err
37523 rm -f conftest.er1
37524 cat conftest.err >&5
a848cd7e
SC
37525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37526 (exit $ac_status); } &&
5d7b7554 37527 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37529 (eval $ac_try) 2>&5
37530 ac_status=$?
37531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37532 (exit $ac_status); }; } &&
37533 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37535 (eval $ac_try) 2>&5
37536 ac_status=$?
37537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37538 (exit $ac_status); }; }; then
37539 ac_cv_func_sched_yield=yes
37540else
37541 echo "$as_me: failed program was:" >&5
37542sed 's/^/| /' conftest.$ac_ext >&5
37543
37544ac_cv_func_sched_yield=no
37545fi
ac1cb8d3
VS
37546rm -f conftest.err conftest.$ac_objext \
37547 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37548fi
37549echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
37550echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
37551if test $ac_cv_func_sched_yield = yes; then
37552 cat >>confdefs.h <<\_ACEOF
37553#define HAVE_SCHED_YIELD 1
37554_ACEOF
37555
37556else
37557
37558 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
37559echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
37560if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
37561 echo $ECHO_N "(cached) $ECHO_C" >&6
37562else
37563 ac_check_lib_save_LIBS=$LIBS
37564LIBS="-lposix4 $LIBS"
37565cat >conftest.$ac_ext <<_ACEOF
37566/* confdefs.h. */
37567_ACEOF
37568cat confdefs.h >>conftest.$ac_ext
37569cat >>conftest.$ac_ext <<_ACEOF
37570/* end confdefs.h. */
37571
37572/* Override any gcc2 internal prototype to avoid an error. */
37573#ifdef __cplusplus
37574extern "C"
37575#endif
37576/* We use char because int might match the return type of a gcc2
37577 builtin and then its argument prototype would still apply. */
37578char sched_yield ();
37579int
37580main ()
37581{
37582sched_yield ();
37583 ;
37584 return 0;
37585}
37586_ACEOF
37587rm -f conftest.$ac_objext conftest$ac_exeext
37588if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37589 (eval $ac_link) 2>conftest.er1
a848cd7e 37590 ac_status=$?
ac1cb8d3
VS
37591 grep -v '^ *+' conftest.er1 >conftest.err
37592 rm -f conftest.er1
37593 cat conftest.err >&5
a848cd7e
SC
37594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37595 (exit $ac_status); } &&
5d7b7554 37596 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37598 (eval $ac_try) 2>&5
37599 ac_status=$?
37600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37601 (exit $ac_status); }; } &&
37602 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37604 (eval $ac_try) 2>&5
37605 ac_status=$?
37606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37607 (exit $ac_status); }; }; then
37608 ac_cv_lib_posix4_sched_yield=yes
37609else
37610 echo "$as_me: failed program was:" >&5
37611sed 's/^/| /' conftest.$ac_ext >&5
37612
37613ac_cv_lib_posix4_sched_yield=no
37614fi
ac1cb8d3
VS
37615rm -f conftest.err conftest.$ac_objext \
37616 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37617LIBS=$ac_check_lib_save_LIBS
37618fi
37619echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
37620echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
37621if test $ac_cv_lib_posix4_sched_yield = yes; then
37622 cat >>confdefs.h <<\_ACEOF
37623#define HAVE_SCHED_YIELD 1
37624_ACEOF
37625 POSIX4_LINK=" -lposix4"
37626else
37627 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
37628echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
37629
37630fi
37631
37632
37633
37634fi
37635
37636 fi
37637
37638 HAVE_PRIOR_FUNCS=0
37639 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
37640echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
37641if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
37642 echo $ECHO_N "(cached) $ECHO_C" >&6
37643else
37644 cat >conftest.$ac_ext <<_ACEOF
37645/* confdefs.h. */
37646_ACEOF
37647cat confdefs.h >>conftest.$ac_ext
37648cat >>conftest.$ac_ext <<_ACEOF
37649/* end confdefs.h. */
ac1cb8d3
VS
37650/* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
37651 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37652#define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
37653
a848cd7e
SC
37654/* System header to define __stub macros and hopefully few prototypes,
37655 which can conflict with char pthread_attr_getschedpolicy (); below.
37656 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37657 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37658
a848cd7e
SC
37659#ifdef __STDC__
37660# include <limits.h>
37661#else
37662# include <assert.h>
37663#endif
ac1cb8d3
VS
37664
37665#undef pthread_attr_getschedpolicy
37666
a848cd7e
SC
37667/* Override any gcc2 internal prototype to avoid an error. */
37668#ifdef __cplusplus
37669extern "C"
37670{
37671#endif
37672/* We use char because int might match the return type of a gcc2
37673 builtin and then its argument prototype would still apply. */
37674char pthread_attr_getschedpolicy ();
37675/* The GNU C library defines this for functions which it implements
37676 to always fail with ENOSYS. Some functions are actually named
37677 something starting with __ and the normal name is an alias. */
37678#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
37679choke me
37680#else
37681char (*f) () = pthread_attr_getschedpolicy;
37682#endif
37683#ifdef __cplusplus
37684}
37685#endif
37686
37687int
37688main ()
37689{
37690return f != pthread_attr_getschedpolicy;
37691 ;
37692 return 0;
37693}
37694_ACEOF
37695rm -f conftest.$ac_objext conftest$ac_exeext
37696if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37697 (eval $ac_link) 2>conftest.er1
a848cd7e 37698 ac_status=$?
ac1cb8d3
VS
37699 grep -v '^ *+' conftest.er1 >conftest.err
37700 rm -f conftest.er1
37701 cat conftest.err >&5
a848cd7e
SC
37702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37703 (exit $ac_status); } &&
5d7b7554 37704 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37706 (eval $ac_try) 2>&5
37707 ac_status=$?
37708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37709 (exit $ac_status); }; } &&
37710 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37712 (eval $ac_try) 2>&5
37713 ac_status=$?
37714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37715 (exit $ac_status); }; }; then
37716 ac_cv_func_pthread_attr_getschedpolicy=yes
37717else
37718 echo "$as_me: failed program was:" >&5
37719sed 's/^/| /' conftest.$ac_ext >&5
37720
37721ac_cv_func_pthread_attr_getschedpolicy=no
37722fi
ac1cb8d3
VS
37723rm -f conftest.err conftest.$ac_objext \
37724 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37725fi
37726echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
37727echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
37728if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
37729 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
37730echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
37731if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
37732 echo $ECHO_N "(cached) $ECHO_C" >&6
37733else
37734 cat >conftest.$ac_ext <<_ACEOF
37735/* confdefs.h. */
37736_ACEOF
37737cat confdefs.h >>conftest.$ac_ext
37738cat >>conftest.$ac_ext <<_ACEOF
37739/* end confdefs.h. */
ac1cb8d3
VS
37740/* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
37741 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37742#define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
37743
a848cd7e
SC
37744/* System header to define __stub macros and hopefully few prototypes,
37745 which can conflict with char pthread_attr_setschedparam (); below.
37746 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37747 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37748
a848cd7e
SC
37749#ifdef __STDC__
37750# include <limits.h>
37751#else
37752# include <assert.h>
37753#endif
ac1cb8d3
VS
37754
37755#undef pthread_attr_setschedparam
37756
a848cd7e
SC
37757/* Override any gcc2 internal prototype to avoid an error. */
37758#ifdef __cplusplus
37759extern "C"
37760{
37761#endif
37762/* We use char because int might match the return type of a gcc2
37763 builtin and then its argument prototype would still apply. */
37764char pthread_attr_setschedparam ();
37765/* The GNU C library defines this for functions which it implements
37766 to always fail with ENOSYS. Some functions are actually named
37767 something starting with __ and the normal name is an alias. */
37768#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
37769choke me
37770#else
37771char (*f) () = pthread_attr_setschedparam;
37772#endif
37773#ifdef __cplusplus
37774}
37775#endif
37776
37777int
37778main ()
37779{
37780return f != pthread_attr_setschedparam;
37781 ;
37782 return 0;
37783}
37784_ACEOF
37785rm -f conftest.$ac_objext conftest$ac_exeext
37786if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37787 (eval $ac_link) 2>conftest.er1
a848cd7e 37788 ac_status=$?
ac1cb8d3
VS
37789 grep -v '^ *+' conftest.er1 >conftest.err
37790 rm -f conftest.er1
37791 cat conftest.err >&5
a848cd7e
SC
37792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37793 (exit $ac_status); } &&
5d7b7554 37794 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37796 (eval $ac_try) 2>&5
37797 ac_status=$?
37798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37799 (exit $ac_status); }; } &&
37800 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37802 (eval $ac_try) 2>&5
37803 ac_status=$?
37804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37805 (exit $ac_status); }; }; then
37806 ac_cv_func_pthread_attr_setschedparam=yes
37807else
37808 echo "$as_me: failed program was:" >&5
37809sed 's/^/| /' conftest.$ac_ext >&5
37810
37811ac_cv_func_pthread_attr_setschedparam=no
37812fi
ac1cb8d3
VS
37813rm -f conftest.err conftest.$ac_objext \
37814 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37815fi
37816echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
37817echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
37818if test $ac_cv_func_pthread_attr_setschedparam = yes; then
37819 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
37820echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
37821if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
37822 echo $ECHO_N "(cached) $ECHO_C" >&6
37823else
37824 cat >conftest.$ac_ext <<_ACEOF
37825/* confdefs.h. */
37826_ACEOF
37827cat confdefs.h >>conftest.$ac_ext
37828cat >>conftest.$ac_ext <<_ACEOF
37829/* end confdefs.h. */
ac1cb8d3
VS
37830/* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
37831 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37832#define sched_get_priority_max innocuous_sched_get_priority_max
37833
a848cd7e
SC
37834/* System header to define __stub macros and hopefully few prototypes,
37835 which can conflict with char sched_get_priority_max (); below.
37836 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37837 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37838
a848cd7e
SC
37839#ifdef __STDC__
37840# include <limits.h>
37841#else
37842# include <assert.h>
37843#endif
ac1cb8d3
VS
37844
37845#undef sched_get_priority_max
37846
a848cd7e
SC
37847/* Override any gcc2 internal prototype to avoid an error. */
37848#ifdef __cplusplus
37849extern "C"
37850{
37851#endif
37852/* We use char because int might match the return type of a gcc2
37853 builtin and then its argument prototype would still apply. */
37854char sched_get_priority_max ();
37855/* The GNU C library defines this for functions which it implements
37856 to always fail with ENOSYS. Some functions are actually named
37857 something starting with __ and the normal name is an alias. */
37858#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
37859choke me
37860#else
37861char (*f) () = sched_get_priority_max;
37862#endif
37863#ifdef __cplusplus
37864}
37865#endif
37866
37867int
37868main ()
37869{
37870return f != sched_get_priority_max;
37871 ;
37872 return 0;
37873}
37874_ACEOF
37875rm -f conftest.$ac_objext conftest$ac_exeext
37876if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37877 (eval $ac_link) 2>conftest.er1
a848cd7e 37878 ac_status=$?
ac1cb8d3
VS
37879 grep -v '^ *+' conftest.er1 >conftest.err
37880 rm -f conftest.er1
37881 cat conftest.err >&5
a848cd7e
SC
37882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37883 (exit $ac_status); } &&
5d7b7554 37884 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37886 (eval $ac_try) 2>&5
37887 ac_status=$?
37888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37889 (exit $ac_status); }; } &&
37890 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37892 (eval $ac_try) 2>&5
37893 ac_status=$?
37894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37895 (exit $ac_status); }; }; then
37896 ac_cv_func_sched_get_priority_max=yes
37897else
37898 echo "$as_me: failed program was:" >&5
37899sed 's/^/| /' conftest.$ac_ext >&5
37900
37901ac_cv_func_sched_get_priority_max=no
37902fi
ac1cb8d3
VS
37903rm -f conftest.err conftest.$ac_objext \
37904 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37905fi
37906echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
37907echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
37908if test $ac_cv_func_sched_get_priority_max = yes; then
37909 HAVE_PRIOR_FUNCS=1
37910else
37911 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
37912echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
37913if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
37914 echo $ECHO_N "(cached) $ECHO_C" >&6
37915else
37916 ac_check_lib_save_LIBS=$LIBS
37917LIBS="-lposix4 $LIBS"
37918cat >conftest.$ac_ext <<_ACEOF
37919/* confdefs.h. */
37920_ACEOF
37921cat confdefs.h >>conftest.$ac_ext
37922cat >>conftest.$ac_ext <<_ACEOF
37923/* end confdefs.h. */
37924
37925/* Override any gcc2 internal prototype to avoid an error. */
37926#ifdef __cplusplus
37927extern "C"
37928#endif
37929/* We use char because int might match the return type of a gcc2
37930 builtin and then its argument prototype would still apply. */
37931char sched_get_priority_max ();
37932int
37933main ()
37934{
37935sched_get_priority_max ();
37936 ;
37937 return 0;
37938}
37939_ACEOF
37940rm -f conftest.$ac_objext conftest$ac_exeext
37941if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37942 (eval $ac_link) 2>conftest.er1
a848cd7e 37943 ac_status=$?
ac1cb8d3
VS
37944 grep -v '^ *+' conftest.er1 >conftest.err
37945 rm -f conftest.er1
37946 cat conftest.err >&5
a848cd7e
SC
37947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37948 (exit $ac_status); } &&
5d7b7554 37949 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37951 (eval $ac_try) 2>&5
37952 ac_status=$?
37953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37954 (exit $ac_status); }; } &&
37955 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37957 (eval $ac_try) 2>&5
37958 ac_status=$?
37959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37960 (exit $ac_status); }; }; then
37961 ac_cv_lib_posix4_sched_get_priority_max=yes
37962else
37963 echo "$as_me: failed program was:" >&5
37964sed 's/^/| /' conftest.$ac_ext >&5
37965
37966ac_cv_lib_posix4_sched_get_priority_max=no
37967fi
ac1cb8d3
VS
37968rm -f conftest.err conftest.$ac_objext \
37969 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37970LIBS=$ac_check_lib_save_LIBS
37971fi
37972echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
37973echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
37974if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
37975
37976 HAVE_PRIOR_FUNCS=1
37977 POSIX4_LINK=" -lposix4"
37978
37979fi
37980
37981
37982fi
37983
37984
37985fi
37986
37987
37988fi
37989
37990
37991 if test "$HAVE_PRIOR_FUNCS" = 1; then
37992 cat >>confdefs.h <<\_ACEOF
37993#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
37994_ACEOF
37995
37996 else
37997 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
37998echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
37999 fi
38000
38001 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
38002echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
38003if test "${ac_cv_func_pthread_cancel+set}" = set; then
38004 echo $ECHO_N "(cached) $ECHO_C" >&6
38005else
38006 cat >conftest.$ac_ext <<_ACEOF
38007/* confdefs.h. */
38008_ACEOF
38009cat confdefs.h >>conftest.$ac_ext
38010cat >>conftest.$ac_ext <<_ACEOF
38011/* end confdefs.h. */
ac1cb8d3
VS
38012/* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
38013 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38014#define pthread_cancel innocuous_pthread_cancel
38015
a848cd7e
SC
38016/* System header to define __stub macros and hopefully few prototypes,
38017 which can conflict with char pthread_cancel (); below.
38018 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38019 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38020
a848cd7e
SC
38021#ifdef __STDC__
38022# include <limits.h>
38023#else
38024# include <assert.h>
38025#endif
ac1cb8d3
VS
38026
38027#undef pthread_cancel
38028
a848cd7e
SC
38029/* Override any gcc2 internal prototype to avoid an error. */
38030#ifdef __cplusplus
38031extern "C"
38032{
38033#endif
38034/* We use char because int might match the return type of a gcc2
38035 builtin and then its argument prototype would still apply. */
38036char pthread_cancel ();
38037/* The GNU C library defines this for functions which it implements
38038 to always fail with ENOSYS. Some functions are actually named
38039 something starting with __ and the normal name is an alias. */
38040#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
38041choke me
38042#else
38043char (*f) () = pthread_cancel;
38044#endif
38045#ifdef __cplusplus
38046}
38047#endif
38048
38049int
38050main ()
38051{
38052return f != pthread_cancel;
38053 ;
38054 return 0;
38055}
38056_ACEOF
38057rm -f conftest.$ac_objext conftest$ac_exeext
38058if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38059 (eval $ac_link) 2>conftest.er1
a848cd7e 38060 ac_status=$?
ac1cb8d3
VS
38061 grep -v '^ *+' conftest.er1 >conftest.err
38062 rm -f conftest.er1
38063 cat conftest.err >&5
a848cd7e
SC
38064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38065 (exit $ac_status); } &&
5d7b7554 38066 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38068 (eval $ac_try) 2>&5
38069 ac_status=$?
38070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38071 (exit $ac_status); }; } &&
38072 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38074 (eval $ac_try) 2>&5
38075 ac_status=$?
38076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38077 (exit $ac_status); }; }; then
38078 ac_cv_func_pthread_cancel=yes
38079else
38080 echo "$as_me: failed program was:" >&5
38081sed 's/^/| /' conftest.$ac_ext >&5
38082
38083ac_cv_func_pthread_cancel=no
38084fi
ac1cb8d3
VS
38085rm -f conftest.err conftest.$ac_objext \
38086 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38087fi
38088echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
38089echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
38090if test $ac_cv_func_pthread_cancel = yes; then
38091 cat >>confdefs.h <<\_ACEOF
38092#define HAVE_PTHREAD_CANCEL 1
38093_ACEOF
38094
38095else
38096 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
38097echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
38098fi
38099
38100
abc736fd
MW
38101 echo "$as_me:$LINENO: checking for pthread_attr_setstacksize" >&5
38102echo $ECHO_N "checking for pthread_attr_setstacksize... $ECHO_C" >&6
38103if test "${ac_cv_func_pthread_attr_setstacksize+set}" = set; then
38104 echo $ECHO_N "(cached) $ECHO_C" >&6
38105else
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/* Define pthread_attr_setstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_setstacksize.
38113 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38114#define pthread_attr_setstacksize innocuous_pthread_attr_setstacksize
38115
38116/* System header to define __stub macros and hopefully few prototypes,
38117 which can conflict with char pthread_attr_setstacksize (); below.
38118 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38119 <limits.h> exists even on freestanding compilers. */
38120
38121#ifdef __STDC__
38122# include <limits.h>
38123#else
38124# include <assert.h>
38125#endif
38126
38127#undef pthread_attr_setstacksize
38128
38129/* Override any gcc2 internal prototype to avoid an error. */
38130#ifdef __cplusplus
38131extern "C"
38132{
38133#endif
38134/* We use char because int might match the return type of a gcc2
38135 builtin and then its argument prototype would still apply. */
38136char pthread_attr_setstacksize ();
38137/* The GNU C library defines this for functions which it implements
38138 to always fail with ENOSYS. Some functions are actually named
38139 something starting with __ and the normal name is an alias. */
38140#if defined (__stub_pthread_attr_setstacksize) || defined (__stub___pthread_attr_setstacksize)
38141choke me
38142#else
38143char (*f) () = pthread_attr_setstacksize;
38144#endif
38145#ifdef __cplusplus
38146}
38147#endif
38148
38149int
38150main ()
38151{
38152return f != pthread_attr_setstacksize;
38153 ;
38154 return 0;
38155}
38156_ACEOF
38157rm -f conftest.$ac_objext conftest$ac_exeext
38158if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38159 (eval $ac_link) 2>conftest.er1
38160 ac_status=$?
38161 grep -v '^ *+' conftest.er1 >conftest.err
38162 rm -f conftest.er1
38163 cat conftest.err >&5
38164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38165 (exit $ac_status); } &&
5d7b7554 38166 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
abc736fd
MW
38167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38168 (eval $ac_try) 2>&5
38169 ac_status=$?
38170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38171 (exit $ac_status); }; } &&
38172 { ac_try='test -s conftest$ac_exeext'
38173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38174 (eval $ac_try) 2>&5
38175 ac_status=$?
38176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38177 (exit $ac_status); }; }; then
38178 ac_cv_func_pthread_attr_setstacksize=yes
38179else
38180 echo "$as_me: failed program was:" >&5
38181sed 's/^/| /' conftest.$ac_ext >&5
38182
38183ac_cv_func_pthread_attr_setstacksize=no
38184fi
38185rm -f conftest.err conftest.$ac_objext \
38186 conftest$ac_exeext conftest.$ac_ext
38187fi
38188echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setstacksize" >&5
38189echo "${ECHO_T}$ac_cv_func_pthread_attr_setstacksize" >&6
38190if test $ac_cv_func_pthread_attr_setstacksize = yes; then
38191 cat >>confdefs.h <<\_ACEOF
38192#define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1
38193_ACEOF
38194
38195fi
38196
a848cd7e
SC
38197
38198
38199 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
38200echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
38201if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
38202 echo $ECHO_N "(cached) $ECHO_C" >&6
38203else
38204
38205 cat >conftest.$ac_ext <<_ACEOF
38206/* confdefs.h. */
38207_ACEOF
38208cat confdefs.h >>conftest.$ac_ext
38209cat >>conftest.$ac_ext <<_ACEOF
38210/* end confdefs.h. */
38211#include <pthread.h>
38212int
38213main ()
38214{
38215
38216 pthread_mutexattr_t attr;
38217 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
38218
38219 ;
38220 return 0;
38221}
38222_ACEOF
38223rm -f conftest.$ac_objext
38224if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38225 (eval $ac_compile) 2>conftest.er1
a848cd7e 38226 ac_status=$?
ac1cb8d3
VS
38227 grep -v '^ *+' conftest.er1 >conftest.err
38228 rm -f conftest.er1
38229 cat conftest.err >&5
a848cd7e
SC
38230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38231 (exit $ac_status); } &&
5d7b7554 38232 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38234 (eval $ac_try) 2>&5
38235 ac_status=$?
38236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38237 (exit $ac_status); }; } &&
38238 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
123dca7d 38244 wx_cv_type_pthread_mutexattr_t=yes
a848cd7e
SC
38245else
38246 echo "$as_me: failed program was:" >&5
38247sed 's/^/| /' conftest.$ac_ext >&5
38248
123dca7d 38249wx_cv_type_pthread_mutexattr_t=no
a848cd7e
SC
38250
38251fi
ac1cb8d3 38252rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38253
38254fi
38255echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
38256echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
38257
38258 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
38259 cat >>confdefs.h <<\_ACEOF
38260#define HAVE_PTHREAD_MUTEXATTR_T 1
38261_ACEOF
38262
123dca7d
VZ
38263
38264 echo "$as_me:$LINENO: checking for pthread_mutexattr_settype declaration" >&5
38265echo $ECHO_N "checking for pthread_mutexattr_settype declaration... $ECHO_C" >&6
38266if test "${wx_cv_func_pthread_mutexattr_settype_decl+set}" = set; then
38267 echo $ECHO_N "(cached) $ECHO_C" >&6
38268else
38269
38270 cat >conftest.$ac_ext <<_ACEOF
38271/* confdefs.h. */
38272_ACEOF
38273cat confdefs.h >>conftest.$ac_ext
38274cat >>conftest.$ac_ext <<_ACEOF
38275/* end confdefs.h. */
38276#include <pthread.h>
38277int
38278main ()
38279{
38280
38281 pthread_mutexattr_t attr;
38282 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
38283
38284 ;
38285 return 0;
38286}
38287_ACEOF
38288rm -f conftest.$ac_objext
38289if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38290 (eval $ac_compile) 2>conftest.er1
38291 ac_status=$?
38292 grep -v '^ *+' conftest.er1 >conftest.err
38293 rm -f conftest.er1
38294 cat conftest.err >&5
38295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38296 (exit $ac_status); } &&
5d7b7554 38297 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
123dca7d
VZ
38298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38299 (eval $ac_try) 2>&5
38300 ac_status=$?
38301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38302 (exit $ac_status); }; } &&
38303 { ac_try='test -s conftest.$ac_objext'
38304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38305 (eval $ac_try) 2>&5
38306 ac_status=$?
38307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38308 (exit $ac_status); }; }; then
38309 wx_cv_func_pthread_mutexattr_settype_decl=yes
38310else
38311 echo "$as_me: failed program was:" >&5
38312sed 's/^/| /' conftest.$ac_ext >&5
38313
38314wx_cv_func_pthread_mutexattr_settype_decl=no
38315
38316fi
38317rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38318
38319fi
38320echo "$as_me:$LINENO: result: $wx_cv_func_pthread_mutexattr_settype_decl" >&5
38321echo "${ECHO_T}$wx_cv_func_pthread_mutexattr_settype_decl" >&6
38322 if test "$wx_cv_func_pthread_mutexattr_settype_decl" = "yes"; then
38323 cat >>confdefs.h <<\_ACEOF
38324#define HAVE_PTHREAD_MUTEXATTR_SETTYPE_DECL 1
38325_ACEOF
38326
38327 fi
a848cd7e
SC
38328 else
38329 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
38330echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
38331if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
38332 echo $ECHO_N "(cached) $ECHO_C" >&6
38333else
38334
38335 cat >conftest.$ac_ext <<_ACEOF
38336/* confdefs.h. */
38337_ACEOF
38338cat confdefs.h >>conftest.$ac_ext
38339cat >>conftest.$ac_ext <<_ACEOF
38340/* end confdefs.h. */
38341#include <pthread.h>
38342int
38343main ()
38344{
38345
38346 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
38347
38348 ;
38349 return 0;
38350}
38351_ACEOF
38352rm -f conftest.$ac_objext
38353if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38354 (eval $ac_compile) 2>conftest.er1
a848cd7e 38355 ac_status=$?
ac1cb8d3
VS
38356 grep -v '^ *+' conftest.er1 >conftest.err
38357 rm -f conftest.er1
38358 cat conftest.err >&5
a848cd7e
SC
38359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38360 (exit $ac_status); } &&
5d7b7554 38361 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38363 (eval $ac_try) 2>&5
38364 ac_status=$?
38365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38366 (exit $ac_status); }; } &&
38367 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38369 (eval $ac_try) 2>&5
38370 ac_status=$?
38371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38372 (exit $ac_status); }; }; then
38373
38374 wx_cv_type_pthread_rec_mutex_init=yes
38375
38376else
38377 echo "$as_me: failed program was:" >&5
38378sed 's/^/| /' conftest.$ac_ext >&5
38379
38380
38381 wx_cv_type_pthread_rec_mutex_init=no
38382
38383
38384fi
ac1cb8d3 38385rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38386
38387fi
38388echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
38389echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
38390 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
38391 cat >>confdefs.h <<\_ACEOF
38392#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
38393_ACEOF
38394
38395 else
38396 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
38397echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
38398 fi
38399 fi
38400 fi
38401
38402else
38403 if test "$wxUSE_THREADS" = "yes" ; then
38404 case "${host}" in
38405 *-*-mingw32* )
38406 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
38407echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
38408if test "${wx_cv_cflags_mthread+set}" = set; then
38409 echo $ECHO_N "(cached) $ECHO_C" >&6
38410else
38411
e56f4f9e
VZ
38412 CXXFLAGS_OLD="$CXXFLAGS"
38413 CXXFLAGS="-mthreads $CXXFLAGS"
a848cd7e
SC
38414 cat >conftest.$ac_ext <<_ACEOF
38415/* confdefs.h. */
38416_ACEOF
38417cat confdefs.h >>conftest.$ac_ext
38418cat >>conftest.$ac_ext <<_ACEOF
38419/* end confdefs.h. */
38420
38421int
38422main ()
38423{
38424
38425 ;
38426 return 0;
38427}
38428_ACEOF
38429rm -f conftest.$ac_objext
38430if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38431 (eval $ac_compile) 2>conftest.er1
a848cd7e 38432 ac_status=$?
ac1cb8d3
VS
38433 grep -v '^ *+' conftest.er1 >conftest.err
38434 rm -f conftest.er1
38435 cat conftest.err >&5
a848cd7e
SC
38436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38437 (exit $ac_status); } &&
5d7b7554 38438 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38440 (eval $ac_try) 2>&5
38441 ac_status=$?
38442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38443 (exit $ac_status); }; } &&
38444 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38446 (eval $ac_try) 2>&5
38447 ac_status=$?
38448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38449 (exit $ac_status); }; }; then
38450 wx_cv_cflags_mthread=yes
38451else
38452 echo "$as_me: failed program was:" >&5
38453sed 's/^/| /' conftest.$ac_ext >&5
38454
38455wx_cv_cflags_mthread=no
38456
38457fi
ac1cb8d3 38458rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38459
38460
38461fi
38462echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
38463echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
38464
38465 if test "$wx_cv_cflags_mthread" = "yes"; then
e56f4f9e 38466 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -mthreads"
a848cd7e
SC
38467 LDFLAGS="$LDFLAGS -mthreads"
38468 else
e56f4f9e 38469 CXXFLAGS="$CXXFLAGS_OLD"
a848cd7e
SC
38470 fi
38471 ;;
38472 *-pc-os2*emx )
5ff751d6
VZ
38473 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -Zmt -D__ST_MT_ERRNO__"
38474 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
a848cd7e
SC
38475 LDFLAGS="$LDFLAGS -Zmt"
38476 ;;
38477 esac
38478 fi
38479fi
38480
004ee6da
RL
38481echo "$as_me:$LINENO: checking for localtime_r" >&5
38482echo $ECHO_N "checking for localtime_r... $ECHO_C" >&6
38483if test "${ac_cv_func_localtime_r+set}" = set; then
a848cd7e
SC
38484 echo $ECHO_N "(cached) $ECHO_C" >&6
38485else
38486 cat >conftest.$ac_ext <<_ACEOF
38487/* confdefs.h. */
38488_ACEOF
38489cat confdefs.h >>conftest.$ac_ext
38490cat >>conftest.$ac_ext <<_ACEOF
38491/* end confdefs.h. */
004ee6da 38492/* Define localtime_r to an innocuous variant, in case <limits.h> declares localtime_r.
ac1cb8d3 38493 For example, HP-UX 11i <limits.h> declares gettimeofday. */
004ee6da 38494#define localtime_r innocuous_localtime_r
ac1cb8d3 38495
a848cd7e 38496/* System header to define __stub macros and hopefully few prototypes,
004ee6da 38497 which can conflict with char localtime_r (); below.
a848cd7e
SC
38498 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38499 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38500
a848cd7e
SC
38501#ifdef __STDC__
38502# include <limits.h>
38503#else
38504# include <assert.h>
38505#endif
ac1cb8d3 38506
004ee6da 38507#undef localtime_r
ac1cb8d3 38508
a848cd7e
SC
38509/* Override any gcc2 internal prototype to avoid an error. */
38510#ifdef __cplusplus
38511extern "C"
38512{
38513#endif
38514/* We use char because int might match the return type of a gcc2
38515 builtin and then its argument prototype would still apply. */
004ee6da 38516char localtime_r ();
a848cd7e
SC
38517/* The GNU C library defines this for functions which it implements
38518 to always fail with ENOSYS. Some functions are actually named
38519 something starting with __ and the normal name is an alias. */
004ee6da 38520#if defined (__stub_localtime_r) || defined (__stub___localtime_r)
a848cd7e
SC
38521choke me
38522#else
004ee6da 38523char (*f) () = localtime_r;
a848cd7e
SC
38524#endif
38525#ifdef __cplusplus
38526}
38527#endif
38528
38529int
38530main ()
38531{
004ee6da
RL
38532return f != localtime_r;
38533 ;
38534 return 0;
38535}
38536_ACEOF
38537rm -f conftest.$ac_objext conftest$ac_exeext
38538if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38539 (eval $ac_link) 2>conftest.er1
38540 ac_status=$?
38541 grep -v '^ *+' conftest.er1 >conftest.err
38542 rm -f conftest.er1
38543 cat conftest.err >&5
38544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38545 (exit $ac_status); } &&
5d7b7554 38546 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
38547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38548 (eval $ac_try) 2>&5
38549 ac_status=$?
38550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38551 (exit $ac_status); }; } &&
38552 { ac_try='test -s conftest$ac_exeext'
38553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38554 (eval $ac_try) 2>&5
38555 ac_status=$?
38556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38557 (exit $ac_status); }; }; then
38558 ac_cv_func_localtime_r=yes
38559else
38560 echo "$as_me: failed program was:" >&5
38561sed 's/^/| /' conftest.$ac_ext >&5
38562
38563ac_cv_func_localtime_r=no
38564fi
38565rm -f conftest.err conftest.$ac_objext \
38566 conftest$ac_exeext conftest.$ac_ext
38567fi
38568echo "$as_me:$LINENO: result: $ac_cv_func_localtime_r" >&5
38569echo "${ECHO_T}$ac_cv_func_localtime_r" >&6
38570if test $ac_cv_func_localtime_r = yes; then
38571 cat >>confdefs.h <<\_ACEOF
38572#define HAVE_LOCALTIME_R 1
38573_ACEOF
38574
38575fi
38576
38577echo "$as_me:$LINENO: checking for gmtime_r" >&5
38578echo $ECHO_N "checking for gmtime_r... $ECHO_C" >&6
38579if test "${ac_cv_func_gmtime_r+set}" = set; then
38580 echo $ECHO_N "(cached) $ECHO_C" >&6
38581else
38582 cat >conftest.$ac_ext <<_ACEOF
38583/* confdefs.h. */
38584_ACEOF
38585cat confdefs.h >>conftest.$ac_ext
38586cat >>conftest.$ac_ext <<_ACEOF
38587/* end confdefs.h. */
38588/* Define gmtime_r to an innocuous variant, in case <limits.h> declares gmtime_r.
38589 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38590#define gmtime_r innocuous_gmtime_r
38591
38592/* System header to define __stub macros and hopefully few prototypes,
38593 which can conflict with char gmtime_r (); below.
38594 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38595 <limits.h> exists even on freestanding compilers. */
38596
38597#ifdef __STDC__
38598# include <limits.h>
38599#else
38600# include <assert.h>
38601#endif
38602
38603#undef gmtime_r
38604
38605/* Override any gcc2 internal prototype to avoid an error. */
38606#ifdef __cplusplus
38607extern "C"
38608{
38609#endif
38610/* We use char because int might match the return type of a gcc2
38611 builtin and then its argument prototype would still apply. */
38612char gmtime_r ();
38613/* The GNU C library defines this for functions which it implements
38614 to always fail with ENOSYS. Some functions are actually named
38615 something starting with __ and the normal name is an alias. */
38616#if defined (__stub_gmtime_r) || defined (__stub___gmtime_r)
38617choke me
38618#else
38619char (*f) () = gmtime_r;
38620#endif
38621#ifdef __cplusplus
38622}
38623#endif
38624
38625int
38626main ()
38627{
38628return f != gmtime_r;
38629 ;
38630 return 0;
38631}
38632_ACEOF
38633rm -f conftest.$ac_objext conftest$ac_exeext
38634if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38635 (eval $ac_link) 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); } &&
5d7b7554 38642 { ac_try='test -z "$ac_cxx_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_exeext'
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_gmtime_r=yes
38655else
38656 echo "$as_me: failed program was:" >&5
38657sed 's/^/| /' conftest.$ac_ext >&5
38658
38659ac_cv_func_gmtime_r=no
38660fi
38661rm -f conftest.err conftest.$ac_objext \
38662 conftest$ac_exeext conftest.$ac_ext
38663fi
38664echo "$as_me:$LINENO: result: $ac_cv_func_gmtime_r" >&5
38665echo "${ECHO_T}$ac_cv_func_gmtime_r" >&6
38666if test $ac_cv_func_gmtime_r = yes; then
38667 cat >>confdefs.h <<\_ACEOF
38668#define HAVE_GMTIME_R 1
38669_ACEOF
38670
38671fi
38672
38673echo "$as_me:$LINENO: checking for readdir_r" >&5
38674echo $ECHO_N "checking for readdir_r... $ECHO_C" >&6
38675if test "${ac_cv_func_readdir_r+set}" = set; then
38676 echo $ECHO_N "(cached) $ECHO_C" >&6
38677else
38678 cat >conftest.$ac_ext <<_ACEOF
38679/* confdefs.h. */
38680_ACEOF
38681cat confdefs.h >>conftest.$ac_ext
38682cat >>conftest.$ac_ext <<_ACEOF
38683/* end confdefs.h. */
38684/* Define readdir_r to an innocuous variant, in case <limits.h> declares readdir_r.
38685 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38686#define readdir_r innocuous_readdir_r
38687
38688/* System header to define __stub macros and hopefully few prototypes,
38689 which can conflict with char readdir_r (); below.
38690 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38691 <limits.h> exists even on freestanding compilers. */
38692
38693#ifdef __STDC__
38694# include <limits.h>
38695#else
38696# include <assert.h>
38697#endif
38698
38699#undef readdir_r
38700
38701/* Override any gcc2 internal prototype to avoid an error. */
38702#ifdef __cplusplus
38703extern "C"
38704{
38705#endif
38706/* We use char because int might match the return type of a gcc2
38707 builtin and then its argument prototype would still apply. */
38708char readdir_r ();
38709/* The GNU C library defines this for functions which it implements
38710 to always fail with ENOSYS. Some functions are actually named
38711 something starting with __ and the normal name is an alias. */
38712#if defined (__stub_readdir_r) || defined (__stub___readdir_r)
38713choke me
38714#else
38715char (*f) () = readdir_r;
38716#endif
38717#ifdef __cplusplus
38718}
38719#endif
38720
38721int
38722main ()
38723{
38724return f != readdir_r;
38725 ;
38726 return 0;
38727}
38728_ACEOF
38729rm -f conftest.$ac_objext conftest$ac_exeext
38730if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38731 (eval $ac_link) 2>conftest.er1
38732 ac_status=$?
38733 grep -v '^ *+' conftest.er1 >conftest.err
38734 rm -f conftest.er1
38735 cat conftest.err >&5
38736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38737 (exit $ac_status); } &&
5d7b7554 38738 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
38739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38740 (eval $ac_try) 2>&5
38741 ac_status=$?
38742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38743 (exit $ac_status); }; } &&
38744 { ac_try='test -s conftest$ac_exeext'
38745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38746 (eval $ac_try) 2>&5
38747 ac_status=$?
38748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38749 (exit $ac_status); }; }; then
38750 ac_cv_func_readdir_r=yes
38751else
38752 echo "$as_me: failed program was:" >&5
38753sed 's/^/| /' conftest.$ac_ext >&5
38754
38755ac_cv_func_readdir_r=no
38756fi
38757rm -f conftest.err conftest.$ac_objext \
38758 conftest$ac_exeext conftest.$ac_ext
38759fi
38760echo "$as_me:$LINENO: result: $ac_cv_func_readdir_r" >&5
38761echo "${ECHO_T}$ac_cv_func_readdir_r" >&6
38762if test $ac_cv_func_readdir_r = yes; then
38763 cat >>confdefs.h <<\_ACEOF
38764#define HAVE_READDIR_R 1
38765_ACEOF
38766
38767fi
38768
004ee6da 38769
004ee6da
RL
38770
38771
38772 ac_ext=c
38773ac_cpp='$CPP $CPPFLAGS'
38774ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38775ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38776ac_compiler_gnu=$ac_cv_c_compiler_gnu
38777
38778 echo "$as_me:$LINENO: checking how many arguments gethostbyname_r() takes" >&5
38779echo $ECHO_N "checking how many arguments gethostbyname_r() takes... $ECHO_C" >&6
38780
38781 if test "${ac_cv_func_which_gethostbyname_r+set}" = set; then
38782 echo $ECHO_N "(cached) $ECHO_C" >&6
38783else
38784
38785
38786################################################################
38787
38788ac_cv_func_which_gethostbyname_r=unknown
38789
38790#
38791# ONE ARGUMENT (sanity check)
38792#
38793
38794# This should fail, as there is no variant of gethostbyname_r() that takes
38795# a single argument. If it actually compiles, then we can assume that
38796# netdb.h is not declaring the function, and the compiler is thereby
38797# assuming an implicit prototype. In which case, we're out of luck.
38798#
38799cat >conftest.$ac_ext <<_ACEOF
38800/* confdefs.h. */
38801_ACEOF
38802cat confdefs.h >>conftest.$ac_ext
38803cat >>conftest.$ac_ext <<_ACEOF
38804/* end confdefs.h. */
38805#include <netdb.h>
38806int
38807main ()
38808{
38809
38810 char *name = "www.gnu.org";
38811 (void)gethostbyname_r(name) /* ; */
38812
38813 ;
38814 return 0;
38815}
38816_ACEOF
38817rm -f conftest.$ac_objext
38818if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38819 (eval $ac_compile) 2>conftest.er1
38820 ac_status=$?
38821 grep -v '^ *+' conftest.er1 >conftest.err
38822 rm -f conftest.er1
38823 cat conftest.err >&5
38824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38825 (exit $ac_status); } &&
5d7b7554 38826 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
004ee6da
RL
38827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38828 (eval $ac_try) 2>&5
38829 ac_status=$?
38830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38831 (exit $ac_status); }; } &&
38832 { ac_try='test -s conftest.$ac_objext'
38833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38834 (eval $ac_try) 2>&5
38835 ac_status=$?
38836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38837 (exit $ac_status); }; }; then
38838 ac_cv_func_which_gethostbyname_r=no
38839else
38840 echo "$as_me: failed program was:" >&5
38841sed 's/^/| /' conftest.$ac_ext >&5
38842
38843fi
38844rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38845
38846#
38847# SIX ARGUMENTS
38848# (e.g. Linux)
38849#
38850
38851if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
38852
38853cat >conftest.$ac_ext <<_ACEOF
38854/* confdefs.h. */
38855_ACEOF
38856cat confdefs.h >>conftest.$ac_ext
38857cat >>conftest.$ac_ext <<_ACEOF
38858/* end confdefs.h. */
38859#include <netdb.h>
38860int
38861main ()
38862{
38863
38864 char *name = "www.gnu.org";
38865 struct hostent ret, *retp;
38866 char buf[1024];
38867 int buflen = 1024;
38868 int my_h_errno;
38869 (void)gethostbyname_r(name, &ret, buf, buflen, &retp, &my_h_errno) /* ; */
38870
38871 ;
38872 return 0;
38873}
38874_ACEOF
38875rm -f conftest.$ac_objext
38876if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38877 (eval $ac_compile) 2>conftest.er1
38878 ac_status=$?
38879 grep -v '^ *+' conftest.er1 >conftest.err
38880 rm -f conftest.er1
38881 cat conftest.err >&5
38882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38883 (exit $ac_status); } &&
5d7b7554 38884 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
004ee6da
RL
38885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38886 (eval $ac_try) 2>&5
38887 ac_status=$?
38888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38889 (exit $ac_status); }; } &&
38890 { ac_try='test -s conftest.$ac_objext'
38891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38892 (eval $ac_try) 2>&5
38893 ac_status=$?
38894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38895 (exit $ac_status); }; }; then
38896 ac_cv_func_which_gethostbyname_r=six
38897else
38898 echo "$as_me: failed program was:" >&5
38899sed 's/^/| /' conftest.$ac_ext >&5
38900
38901fi
38902rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38903
38904fi
38905
38906#
38907# FIVE ARGUMENTS
38908# (e.g. Solaris)
38909#
38910
38911if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
38912
38913cat >conftest.$ac_ext <<_ACEOF
38914/* confdefs.h. */
38915_ACEOF
38916cat confdefs.h >>conftest.$ac_ext
38917cat >>conftest.$ac_ext <<_ACEOF
38918/* end confdefs.h. */
38919#include <netdb.h>
38920int
38921main ()
38922{
38923
38924 char *name = "www.gnu.org";
38925 struct hostent ret;
38926 char buf[1024];
38927 int buflen = 1024;
38928 int my_h_errno;
38929 (void)gethostbyname_r(name, &ret, buf, buflen, &my_h_errno) /* ; */
38930
38931 ;
38932 return 0;
38933}
38934_ACEOF
38935rm -f conftest.$ac_objext
38936if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38937 (eval $ac_compile) 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); } &&
5d7b7554 38944 { ac_try='test -z "$ac_c_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_objext'
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_which_gethostbyname_r=five
38957else
38958 echo "$as_me: failed program was:" >&5
38959sed 's/^/| /' conftest.$ac_ext >&5
38960
38961fi
38962rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38963
38964fi
38965
38966#
38967# THREE ARGUMENTS
38968# (e.g. AIX, HP-UX, Tru64)
38969#
38970
38971if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
38972
38973cat >conftest.$ac_ext <<_ACEOF
38974/* confdefs.h. */
38975_ACEOF
38976cat confdefs.h >>conftest.$ac_ext
38977cat >>conftest.$ac_ext <<_ACEOF
38978/* end confdefs.h. */
38979#include <netdb.h>
38980int
38981main ()
38982{
38983
38984 char *name = "www.gnu.org";
38985 struct hostent ret;
38986 struct hostent_data data;
38987 (void)gethostbyname_r(name, &ret, &data) /* ; */
38988
38989 ;
38990 return 0;
38991}
38992_ACEOF
38993rm -f conftest.$ac_objext
38994if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38995 (eval $ac_compile) 2>conftest.er1
38996 ac_status=$?
38997 grep -v '^ *+' conftest.er1 >conftest.err
38998 rm -f conftest.er1
38999 cat conftest.err >&5
39000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39001 (exit $ac_status); } &&
5d7b7554 39002 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
004ee6da
RL
39003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39004 (eval $ac_try) 2>&5
39005 ac_status=$?
39006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39007 (exit $ac_status); }; } &&
39008 { ac_try='test -s conftest.$ac_objext'
39009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39010 (eval $ac_try) 2>&5
39011 ac_status=$?
39012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39013 (exit $ac_status); }; }; then
39014 ac_cv_func_which_gethostbyname_r=three
39015else
39016 echo "$as_me: failed program was:" >&5
39017sed 's/^/| /' conftest.$ac_ext >&5
39018
39019fi
39020rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39021
39022fi
39023
39024################################################################
39025
39026
39027fi
39028
39029case "$ac_cv_func_which_gethostbyname_r" in
39030 three)
39031 echo "$as_me:$LINENO: result: three" >&5
39032echo "${ECHO_T}three" >&6
39033 cat >>confdefs.h <<\_ACEOF
39034#define HAVE_FUNC_GETHOSTBYNAME_R_3 1
39035_ACEOF
39036
39037 ;;
39038
39039 five)
39040 echo "$as_me:$LINENO: result: five" >&5
39041echo "${ECHO_T}five" >&6
39042 cat >>confdefs.h <<\_ACEOF
39043#define HAVE_FUNC_GETHOSTBYNAME_R_5 1
39044_ACEOF
39045
39046 ;;
39047
39048 six)
39049 echo "$as_me:$LINENO: result: six" >&5
39050echo "${ECHO_T}six" >&6
39051 cat >>confdefs.h <<\_ACEOF
39052#define HAVE_FUNC_GETHOSTBYNAME_R_6 1
39053_ACEOF
39054
39055 ;;
39056
39057 no)
39058 echo "$as_me:$LINENO: result: cannot find function declaration in netdb.h" >&5
39059echo "${ECHO_T}cannot find function declaration in netdb.h" >&6
39060 ;;
39061
39062 unknown)
39063 echo "$as_me:$LINENO: result: can't tell" >&5
39064echo "${ECHO_T}can't tell" >&6
39065 ;;
39066
39067 *)
39068 { { echo "$as_me:$LINENO: error: internal error" >&5
39069echo "$as_me: error: internal error" >&2;}
39070 { (exit 1); exit 1; }; }
39071 ;;
39072esac
39073
5ec3bc43
JS
39074ac_ext=cc
39075ac_cpp='$CXXCPP $CPPFLAGS'
39076ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39077ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39078ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
004ee6da
RL
39079
39080
39081
39082 if test "x$ac_cv_func_which_gethostbyname_r" = "xno" -o \
39083 "x$ac_cv_func_which_gethostbyname_r" = "xunknown" ; then
39084 echo "$as_me:$LINENO: checking for gethostbyname" >&5
39085echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
39086if test "${ac_cv_func_gethostbyname+set}" = set; then
39087 echo $ECHO_N "(cached) $ECHO_C" >&6
39088else
39089 cat >conftest.$ac_ext <<_ACEOF
39090/* confdefs.h. */
39091_ACEOF
39092cat confdefs.h >>conftest.$ac_ext
39093cat >>conftest.$ac_ext <<_ACEOF
39094/* end confdefs.h. */
39095/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
39096 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39097#define gethostbyname innocuous_gethostbyname
39098
39099/* System header to define __stub macros and hopefully few prototypes,
39100 which can conflict with char gethostbyname (); below.
39101 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39102 <limits.h> exists even on freestanding compilers. */
39103
39104#ifdef __STDC__
39105# include <limits.h>
39106#else
39107# include <assert.h>
39108#endif
39109
39110#undef gethostbyname
39111
39112/* Override any gcc2 internal prototype to avoid an error. */
39113#ifdef __cplusplus
39114extern "C"
39115{
39116#endif
39117/* We use char because int might match the return type of a gcc2
39118 builtin and then its argument prototype would still apply. */
39119char gethostbyname ();
39120/* The GNU C library defines this for functions which it implements
39121 to always fail with ENOSYS. Some functions are actually named
39122 something starting with __ and the normal name is an alias. */
39123#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
39124choke me
39125#else
39126char (*f) () = gethostbyname;
39127#endif
39128#ifdef __cplusplus
39129}
39130#endif
39131
39132int
39133main ()
39134{
39135return f != gethostbyname;
39136 ;
39137 return 0;
39138}
39139_ACEOF
39140rm -f conftest.$ac_objext conftest$ac_exeext
39141if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39142 (eval $ac_link) 2>conftest.er1
39143 ac_status=$?
39144 grep -v '^ *+' conftest.er1 >conftest.err
39145 rm -f conftest.er1
39146 cat conftest.err >&5
39147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39148 (exit $ac_status); } &&
5d7b7554 39149 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
39150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39151 (eval $ac_try) 2>&5
39152 ac_status=$?
39153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39154 (exit $ac_status); }; } &&
39155 { ac_try='test -s conftest$ac_exeext'
39156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39157 (eval $ac_try) 2>&5
39158 ac_status=$?
39159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39160 (exit $ac_status); }; }; then
39161 ac_cv_func_gethostbyname=yes
39162else
39163 echo "$as_me: failed program was:" >&5
39164sed 's/^/| /' conftest.$ac_ext >&5
39165
39166ac_cv_func_gethostbyname=no
39167fi
39168rm -f conftest.err conftest.$ac_objext \
39169 conftest$ac_exeext conftest.$ac_ext
39170fi
39171echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
39172echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
39173if test $ac_cv_func_gethostbyname = yes; then
39174 cat >>confdefs.h <<\_ACEOF
39175#define HAVE_GETHOSTBYNAME 1
39176_ACEOF
39177
39178fi
39179
39180 fi
39181 echo "$as_me:$LINENO: checking for getservbyname_r" >&5
39182echo $ECHO_N "checking for getservbyname_r... $ECHO_C" >&6
004ee6da
RL
39183if test "${ac_cv_func_getservbyname_r+set}" = set; then
39184 echo $ECHO_N "(cached) $ECHO_C" >&6
39185else
39186 cat >conftest.$ac_ext <<_ACEOF
39187/* confdefs.h. */
39188_ACEOF
39189cat confdefs.h >>conftest.$ac_ext
39190cat >>conftest.$ac_ext <<_ACEOF
39191/* end confdefs.h. */
39192/* Define getservbyname_r to an innocuous variant, in case <limits.h> declares getservbyname_r.
39193 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39194#define getservbyname_r innocuous_getservbyname_r
39195
39196/* System header to define __stub macros and hopefully few prototypes,
39197 which can conflict with char getservbyname_r (); below.
39198 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39199 <limits.h> exists even on freestanding compilers. */
39200
39201#ifdef __STDC__
39202# include <limits.h>
39203#else
39204# include <assert.h>
39205#endif
39206
39207#undef getservbyname_r
39208
39209/* Override any gcc2 internal prototype to avoid an error. */
39210#ifdef __cplusplus
39211extern "C"
39212{
39213#endif
39214/* We use char because int might match the return type of a gcc2
39215 builtin and then its argument prototype would still apply. */
39216char getservbyname_r ();
39217/* The GNU C library defines this for functions which it implements
39218 to always fail with ENOSYS. Some functions are actually named
39219 something starting with __ and the normal name is an alias. */
39220#if defined (__stub_getservbyname_r) || defined (__stub___getservbyname_r)
39221choke me
39222#else
39223char (*f) () = getservbyname_r;
39224#endif
39225#ifdef __cplusplus
39226}
39227#endif
39228
39229int
39230main ()
39231{
39232return f != getservbyname_r;
39233 ;
39234 return 0;
39235}
39236_ACEOF
39237rm -f conftest.$ac_objext conftest$ac_exeext
39238if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39239 (eval $ac_link) 2>conftest.er1
39240 ac_status=$?
39241 grep -v '^ *+' conftest.er1 >conftest.err
39242 rm -f conftest.er1
39243 cat conftest.err >&5
39244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39245 (exit $ac_status); } &&
5d7b7554 39246 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
39247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39248 (eval $ac_try) 2>&5
39249 ac_status=$?
39250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39251 (exit $ac_status); }; } &&
39252 { ac_try='test -s conftest$ac_exeext'
39253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39254 (eval $ac_try) 2>&5
39255 ac_status=$?
39256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39257 (exit $ac_status); }; }; then
39258 ac_cv_func_getservbyname_r=yes
39259else
39260 echo "$as_me: failed program was:" >&5
39261sed 's/^/| /' conftest.$ac_ext >&5
39262
39263ac_cv_func_getservbyname_r=no
39264fi
39265rm -f conftest.err conftest.$ac_objext \
39266 conftest$ac_exeext conftest.$ac_ext
39267fi
39268echo "$as_me:$LINENO: result: $ac_cv_func_getservbyname_r" >&5
39269echo "${ECHO_T}$ac_cv_func_getservbyname_r" >&6
39270if test $ac_cv_func_getservbyname_r = yes; then
99879bbf 39271 cat >conftest.$ac_ext <<_ACEOF
004ee6da
RL
39272/* confdefs.h. */
39273_ACEOF
39274cat confdefs.h >>conftest.$ac_ext
39275cat >>conftest.$ac_ext <<_ACEOF
39276/* end confdefs.h. */
99879bbf 39277#include <netdb.h>
004ee6da
RL
39278int
39279main ()
39280{
39281
99879bbf
MR
39282 char *name;
39283 char *proto;
39284 struct servent *se;
39285 struct servent_data data;
39286 (void) getservbyname_r(name, proto, se, &data);
004ee6da
RL
39287
39288 ;
39289 return 0;
39290}
39291_ACEOF
39292rm -f conftest.$ac_objext
39293if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39294 (eval $ac_compile) 2>conftest.er1
39295 ac_status=$?
39296 grep -v '^ *+' conftest.er1 >conftest.err
39297 rm -f conftest.er1
39298 cat conftest.err >&5
39299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39300 (exit $ac_status); } &&
5d7b7554 39301 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
39302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39303 (eval $ac_try) 2>&5
39304 ac_status=$?
39305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39306 (exit $ac_status); }; } &&
39307 { ac_try='test -s conftest.$ac_objext'
39308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39309 (eval $ac_try) 2>&5
39310 ac_status=$?
39311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39312 (exit $ac_status); }; }; then
39313 ac_cv_func_which_getservbyname_r=four
39314else
39315 echo "$as_me: failed program was:" >&5
39316sed 's/^/| /' conftest.$ac_ext >&5
39317
99879bbf 39318cat >conftest.$ac_ext <<_ACEOF
004ee6da
RL
39319/* confdefs.h. */
39320_ACEOF
39321cat confdefs.h >>conftest.$ac_ext
39322cat >>conftest.$ac_ext <<_ACEOF
39323/* end confdefs.h. */
99879bbf 39324#include <netdb.h>
004ee6da
RL
39325int
39326main ()
39327{
39328
99879bbf
MR
39329 char *name;
39330 char *proto;
39331 struct servent *se, *res;
39332 char buffer[2048];
39333 int buflen = 2048;
39334 (void) getservbyname_r(name, proto, se, buffer, buflen, &res);
004ee6da
RL
39335
39336 ;
39337 return 0;
39338}
39339_ACEOF
39340rm -f conftest.$ac_objext
39341if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39342 (eval $ac_compile) 2>conftest.er1
39343 ac_status=$?
39344 grep -v '^ *+' conftest.er1 >conftest.err
39345 rm -f conftest.er1
39346 cat conftest.err >&5
39347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39348 (exit $ac_status); } &&
5d7b7554 39349 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
39350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39351 (eval $ac_try) 2>&5
39352 ac_status=$?
39353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39354 (exit $ac_status); }; } &&
39355 { ac_try='test -s conftest.$ac_objext'
39356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39357 (eval $ac_try) 2>&5
39358 ac_status=$?
39359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39360 (exit $ac_status); }; }; then
39361 ac_cv_func_which_getservbyname_r=six
39362else
39363 echo "$as_me: failed program was:" >&5
39364sed 's/^/| /' conftest.$ac_ext >&5
39365
99879bbf 39366cat >conftest.$ac_ext <<_ACEOF
004ee6da
RL
39367/* confdefs.h. */
39368_ACEOF
39369cat confdefs.h >>conftest.$ac_ext
39370cat >>conftest.$ac_ext <<_ACEOF
39371/* end confdefs.h. */
99879bbf 39372#include <netdb.h>
004ee6da
RL
39373int
39374main ()
39375{
39376
99879bbf
MR
39377 char *name;
39378 char *proto;
39379 struct servent *se;
39380 char buffer[2048];
39381 int buflen = 2048;
39382 (void) getservbyname_r(name, proto, se, buffer, buflen)
004ee6da
RL
39383
39384 ;
39385 return 0;
39386}
39387_ACEOF
39388rm -f conftest.$ac_objext
39389if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39390 (eval $ac_compile) 2>conftest.er1
39391 ac_status=$?
39392 grep -v '^ *+' conftest.er1 >conftest.err
39393 rm -f conftest.er1
39394 cat conftest.err >&5
39395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39396 (exit $ac_status); } &&
5d7b7554 39397 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
39398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39399 (eval $ac_try) 2>&5
39400 ac_status=$?
39401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39402 (exit $ac_status); }; } &&
39403 { ac_try='test -s conftest.$ac_objext'
39404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39405 (eval $ac_try) 2>&5
39406 ac_status=$?
39407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39408 (exit $ac_status); }; }; then
39409 ac_cv_func_which_getservbyname_r=five
39410else
39411 echo "$as_me: failed program was:" >&5
39412sed 's/^/| /' conftest.$ac_ext >&5
39413
39414ac_cv_func_which_getservbyname_r=no
99879bbf 39415
004ee6da
RL
39416fi
39417rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39418
004ee6da
RL
39419fi
39420rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39421
004ee6da
RL
39422fi
39423rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
004ee6da
RL
39424else
39425 ac_cv_func_which_getservbyname_r=no
39426fi
39427
004ee6da
RL
39428
39429if test $ac_cv_func_which_getservbyname_r = six; then
39430 cat >>confdefs.h <<\_ACEOF
39431#define HAVE_FUNC_GETSERVBYNAME_R_6 1
39432_ACEOF
39433
39434elif test $ac_cv_func_which_getservbyname_r = five; then
39435 cat >>confdefs.h <<\_ACEOF
39436#define HAVE_FUNC_GETSERVBYNAME_R_5 1
39437_ACEOF
39438
39439elif test $ac_cv_func_which_getservbyname_r = four; then
39440 cat >>confdefs.h <<\_ACEOF
39441#define HAVE_FUNC_GETSERVBYNAME_R_4 1
39442_ACEOF
39443
004ee6da
RL
39444fi
39445
39446
39447 if test "x$ac_cv_func_which_getservbyname_r" = "xno" -o \
39448 "x$ac_cv_func_which_getservbyname_r" = "xunknown" ; then
39449
39450for ac_func in getservbyname
39451do
39452as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39453echo "$as_me:$LINENO: checking for $ac_func" >&5
39454echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39455if eval "test \"\${$as_ac_var+set}\" = set"; then
39456 echo $ECHO_N "(cached) $ECHO_C" >&6
39457else
39458 cat >conftest.$ac_ext <<_ACEOF
39459/* confdefs.h. */
39460_ACEOF
39461cat confdefs.h >>conftest.$ac_ext
39462cat >>conftest.$ac_ext <<_ACEOF
39463/* end confdefs.h. */
39464/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39465 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39466#define $ac_func innocuous_$ac_func
39467
39468/* System header to define __stub macros and hopefully few prototypes,
39469 which can conflict with char $ac_func (); below.
39470 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39471 <limits.h> exists even on freestanding compilers. */
39472
39473#ifdef __STDC__
39474# include <limits.h>
39475#else
39476# include <assert.h>
39477#endif
39478
39479#undef $ac_func
39480
39481/* Override any gcc2 internal prototype to avoid an error. */
39482#ifdef __cplusplus
39483extern "C"
39484{
39485#endif
39486/* We use char because int might match the return type of a gcc2
39487 builtin and then its argument prototype would still apply. */
39488char $ac_func ();
39489/* The GNU C library defines this for functions which it implements
39490 to always fail with ENOSYS. Some functions are actually named
39491 something starting with __ and the normal name is an alias. */
39492#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39493choke me
39494#else
39495char (*f) () = $ac_func;
39496#endif
39497#ifdef __cplusplus
39498}
39499#endif
39500
39501int
39502main ()
39503{
39504return f != $ac_func;
39505 ;
39506 return 0;
39507}
39508_ACEOF
39509rm -f conftest.$ac_objext conftest$ac_exeext
39510if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39511 (eval $ac_link) 2>conftest.er1
39512 ac_status=$?
39513 grep -v '^ *+' conftest.er1 >conftest.err
39514 rm -f conftest.er1
39515 cat conftest.err >&5
39516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39517 (exit $ac_status); } &&
5d7b7554 39518 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
39519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39520 (eval $ac_try) 2>&5
39521 ac_status=$?
39522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39523 (exit $ac_status); }; } &&
39524 { ac_try='test -s conftest$ac_exeext'
39525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39526 (eval $ac_try) 2>&5
39527 ac_status=$?
39528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39529 (exit $ac_status); }; }; then
39530 eval "$as_ac_var=yes"
39531else
39532 echo "$as_me: failed program was:" >&5
39533sed 's/^/| /' conftest.$ac_ext >&5
39534
39535eval "$as_ac_var=no"
39536fi
39537rm -f conftest.err conftest.$ac_objext \
39538 conftest$ac_exeext conftest.$ac_ext
39539fi
39540echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39541echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39542if test `eval echo '${'$as_ac_var'}'` = yes; then
39543 cat >>confdefs.h <<_ACEOF
39544#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39545_ACEOF
39546 cat >>confdefs.h <<\_ACEOF
39547#define HAVE_GETSERVBYNAME 1
39548_ACEOF
39549
39550fi
39551done
39552
39553 fi
39554
004ee6da
RL
39555if test "$wxUSE_THREADS" = "yes"; then
39556 cat >>confdefs.h <<\_ACEOF
39557#define wxUSE_THREADS 1
39558_ACEOF
39559
39560
39561 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
39562else
39563 if test "$ac_cv_func_strtok_r" = "yes"; then
39564 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
39565echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
39566 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
39567 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_REENTRANT"
39568 echo "$as_me:$LINENO: result: yes" >&5
39569echo "${ECHO_T}yes" >&6
39570 else
39571 echo "$as_me:$LINENO: result: no" >&5
39572echo "${ECHO_T}no" >&6
39573 fi
39574 fi
39575fi
39576
39577if test "$WXGTK20" = 1 ; then
39578 cat >>confdefs.h <<_ACEOF
39579#define __WXGTK20__ $WXGTK20
39580_ACEOF
39581
39582 WXGTK12=1
39583fi
39584
39585if test "$WXGTK12" = 1 ; then
39586 cat >>confdefs.h <<_ACEOF
39587#define __WXGTK12__ $WXGTK12
39588_ACEOF
39589
39590fi
39591
39592if test "$WXGTK127" = 1 ; then
39593 cat >>confdefs.h <<_ACEOF
39594#define __WXGTK127__ $WXGTK127
39595_ACEOF
39596
39597fi
39598
39599if test "$WXGPE" = 1 ; then
39600 cat >>confdefs.h <<_ACEOF
39601#define __WXGPE__ $WXGPE
39602_ACEOF
39603
39604fi
39605
39606DEBUG_CFLAGS=
39607if test "$wxUSE_DEBUG_INFO" = "yes" ; then
39608 DEBUG_CFLAGS="-g"
39609 wxUSE_OPTIMISE=no
39610fi
39611
39612if test "$wxUSE_DEBUG_GDB" = "yes" ; then
39613 wxUSE_DEBUG_INFO=yes
39614 if test "$GCC" = yes; then
39615 DEBUG_CFLAGS="-ggdb"
39616 fi
39617fi
39618
39619if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
39620 cat >>confdefs.h <<\_ACEOF
39621#define WXDEBUG 1
39622_ACEOF
39623
39624 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D__WXDEBUG__"
39625else
39626 if test "$wxUSE_GTK" = 1 ; then
99879bbf
MR
39627 if test "x$wxGTK_VERSION" = "x1" ; then
39628 CPPFLAGS="-DGTK_NO_CHECK_CASTS $CPPFLAGS"
39629 fi
004ee6da
RL
39630 fi
39631fi
39632
39633if test "$wxUSE_MEM_TRACING" = "yes" ; then
39634 cat >>confdefs.h <<\_ACEOF
39635#define wxUSE_MEMORY_TRACING 1
39636_ACEOF
39637
39638 cat >>confdefs.h <<\_ACEOF
39639#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
39640_ACEOF
39641
39642 cat >>confdefs.h <<\_ACEOF
39643#define wxUSE_DEBUG_NEW_ALWAYS 1
39644_ACEOF
39645
39646 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
39647fi
39648
39649if test "$wxUSE_DMALLOC" = "yes" ; then
39650 DMALLOC_LIBS="-ldmallocthcxx"
39651fi
39652
39653PROFILE_FLAGS=
39654if test "$wxUSE_PROFILE" = "yes" ; then
39655 PROFILE_FLAGS=" -pg"
39656fi
39657
39658if test "$GCC" = "yes" ; then
39659 if test "$wxUSE_NO_RTTI" = "yes" ; then
39660 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-rtti"
39661 fi
39662 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
39663 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-exceptions"
39664 fi
39665 if test "$wxUSE_PERMISSIVE" = "yes" ; then
39666 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -fpermissive"
39667 fi
39668
39669 case "${host}" in
39670 powerpc*-*-aix* )
39671 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mminimal-toc"
39672 ;;
39673 *-hppa* )
39674 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -ffunction-sections"
39675 ;;
39676 esac
39677fi
39678
39679OPTIMISE_CFLAGS=
39680if test "$wxUSE_OPTIMISE" = "no" ; then
39681 if test "$GCC" = yes ; then
39682 OPTIMISE_CFLAGS="-O0"
39683 fi
39684else
39685 if test "$GCC" = yes ; then
e5efa97e
VZ
39686 case "${host}" in
39687 *-pc-os2_emx | *-pc-os2-emx )
39688 OPTIMISE_CFLAGS="-O2"
39689 ;;
39690 *)
39691 OPTIMISE_CFLAGS="-O2 -fno-strict-aliasing"
39692 ;;
39693 esac
004ee6da
RL
39694 else
39695 OPTIMISE_CFLAGS="-O"
39696 fi
39697fi
39698
39699
39700if test "x$WXWIN_COMPATIBILITY_2_4" = "xyes"; then
39701 cat >>confdefs.h <<\_ACEOF
39702#define WXWIN_COMPATIBILITY_2_4 1
39703_ACEOF
39704
39705
39706 WXWIN_COMPATIBILITY_2_6="yes"
39707fi
39708
39709if test "x$WXWIN_COMPATIBILITY_2_6" != "xno"; then
39710 cat >>confdefs.h <<\_ACEOF
39711#define WXWIN_COMPATIBILITY_2_6 1
39712_ACEOF
39713
39714fi
39715
39716
39717if test "$wxUSE_GUI" = "yes"; then
39718 cat >>confdefs.h <<\_ACEOF
39719#define wxUSE_GUI 1
39720_ACEOF
39721
39722
39723 fi
39724
39725
39726if test "$wxUSE_UNIX" = "yes"; then
39727 cat >>confdefs.h <<\_ACEOF
39728#define wxUSE_UNIX 1
39729_ACEOF
39730
39731fi
39732
39733
39734if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
39735
39736 HAVE_DL_FUNCS=0
39737 HAVE_SHL_FUNCS=0
39738 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
39739 if test "$USE_DARWIN" = 1; then
39740 HAVE_DL_FUNCS=1
39741 elif test "$USE_DOS" = 1; then
39742 HAVE_DL_FUNCS=0
39743 else
39744
39745for ac_func in dlopen
39746do
39747as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39748echo "$as_me:$LINENO: checking for $ac_func" >&5
39749echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39750if eval "test \"\${$as_ac_var+set}\" = set"; then
39751 echo $ECHO_N "(cached) $ECHO_C" >&6
39752else
39753 cat >conftest.$ac_ext <<_ACEOF
39754/* confdefs.h. */
39755_ACEOF
39756cat confdefs.h >>conftest.$ac_ext
39757cat >>conftest.$ac_ext <<_ACEOF
39758/* end confdefs.h. */
39759/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39760 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39761#define $ac_func innocuous_$ac_func
39762
39763/* System header to define __stub macros and hopefully few prototypes,
39764 which can conflict with char $ac_func (); below.
39765 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39766 <limits.h> exists even on freestanding compilers. */
39767
39768#ifdef __STDC__
39769# include <limits.h>
39770#else
39771# include <assert.h>
39772#endif
39773
39774#undef $ac_func
39775
39776/* Override any gcc2 internal prototype to avoid an error. */
39777#ifdef __cplusplus
39778extern "C"
39779{
39780#endif
39781/* We use char because int might match the return type of a gcc2
39782 builtin and then its argument prototype would still apply. */
39783char $ac_func ();
39784/* The GNU C library defines this for functions which it implements
39785 to always fail with ENOSYS. Some functions are actually named
39786 something starting with __ and the normal name is an alias. */
39787#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39788choke me
39789#else
39790char (*f) () = $ac_func;
39791#endif
39792#ifdef __cplusplus
39793}
39794#endif
39795
39796int
39797main ()
39798{
39799return f != $ac_func;
a848cd7e
SC
39800 ;
39801 return 0;
39802}
39803_ACEOF
39804rm -f conftest.$ac_objext conftest$ac_exeext
39805if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39806 (eval $ac_link) 2>conftest.er1
a848cd7e 39807 ac_status=$?
ac1cb8d3
VS
39808 grep -v '^ *+' conftest.er1 >conftest.err
39809 rm -f conftest.er1
39810 cat conftest.err >&5
a848cd7e
SC
39811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39812 (exit $ac_status); } &&
5d7b7554 39813 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39815 (eval $ac_try) 2>&5
39816 ac_status=$?
39817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39818 (exit $ac_status); }; } &&
39819 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39821 (eval $ac_try) 2>&5
39822 ac_status=$?
39823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39824 (exit $ac_status); }; }; then
39825 eval "$as_ac_var=yes"
39826else
39827 echo "$as_me: failed program was:" >&5
39828sed 's/^/| /' conftest.$ac_ext >&5
39829
39830eval "$as_ac_var=no"
39831fi
ac1cb8d3
VS
39832rm -f conftest.err conftest.$ac_objext \
39833 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39834fi
39835echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39836echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39837if test `eval echo '${'$as_ac_var'}'` = yes; then
39838 cat >>confdefs.h <<_ACEOF
39839#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39840_ACEOF
39841
39842 cat >>confdefs.h <<\_ACEOF
39843#define HAVE_DLOPEN 1
39844_ACEOF
39845
39846 HAVE_DL_FUNCS=1
39847
39848else
39849
39850 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
39851echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
39852if test "${ac_cv_lib_dl_dlopen+set}" = set; then
39853 echo $ECHO_N "(cached) $ECHO_C" >&6
39854else
39855 ac_check_lib_save_LIBS=$LIBS
39856LIBS="-ldl $LIBS"
39857cat >conftest.$ac_ext <<_ACEOF
39858/* confdefs.h. */
39859_ACEOF
39860cat confdefs.h >>conftest.$ac_ext
39861cat >>conftest.$ac_ext <<_ACEOF
39862/* end confdefs.h. */
39863
39864/* Override any gcc2 internal prototype to avoid an error. */
39865#ifdef __cplusplus
39866extern "C"
39867#endif
39868/* We use char because int might match the return type of a gcc2
39869 builtin and then its argument prototype would still apply. */
39870char dlopen ();
39871int
39872main ()
39873{
39874dlopen ();
39875 ;
39876 return 0;
39877}
39878_ACEOF
39879rm -f conftest.$ac_objext conftest$ac_exeext
39880if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39881 (eval $ac_link) 2>conftest.er1
a848cd7e 39882 ac_status=$?
ac1cb8d3
VS
39883 grep -v '^ *+' conftest.er1 >conftest.err
39884 rm -f conftest.er1
39885 cat conftest.err >&5
a848cd7e
SC
39886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39887 (exit $ac_status); } &&
5d7b7554 39888 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39890 (eval $ac_try) 2>&5
39891 ac_status=$?
39892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39893 (exit $ac_status); }; } &&
39894 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39896 (eval $ac_try) 2>&5
39897 ac_status=$?
39898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39899 (exit $ac_status); }; }; then
39900 ac_cv_lib_dl_dlopen=yes
39901else
39902 echo "$as_me: failed program was:" >&5
39903sed 's/^/| /' conftest.$ac_ext >&5
39904
39905ac_cv_lib_dl_dlopen=no
39906fi
ac1cb8d3
VS
39907rm -f conftest.err conftest.$ac_objext \
39908 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39909LIBS=$ac_check_lib_save_LIBS
39910fi
39911echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
39912echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
39913if test $ac_cv_lib_dl_dlopen = yes; then
39914
39915 cat >>confdefs.h <<\_ACEOF
39916#define HAVE_DLOPEN 1
39917_ACEOF
39918
39919 HAVE_DL_FUNCS=1
39920 DL_LINK=" -ldl$DL_LINK"
39921
39922else
39923
39924
39925for ac_func in shl_load
39926do
39927as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39928echo "$as_me:$LINENO: checking for $ac_func" >&5
39929echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39930if eval "test \"\${$as_ac_var+set}\" = set"; then
39931 echo $ECHO_N "(cached) $ECHO_C" >&6
39932else
39933 cat >conftest.$ac_ext <<_ACEOF
39934/* confdefs.h. */
39935_ACEOF
39936cat confdefs.h >>conftest.$ac_ext
39937cat >>conftest.$ac_ext <<_ACEOF
39938/* end confdefs.h. */
ac1cb8d3
VS
39939/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39940 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39941#define $ac_func innocuous_$ac_func
39942
a848cd7e
SC
39943/* System header to define __stub macros and hopefully few prototypes,
39944 which can conflict with char $ac_func (); below.
39945 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39946 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 39947
a848cd7e
SC
39948#ifdef __STDC__
39949# include <limits.h>
39950#else
39951# include <assert.h>
39952#endif
ac1cb8d3
VS
39953
39954#undef $ac_func
39955
a848cd7e
SC
39956/* Override any gcc2 internal prototype to avoid an error. */
39957#ifdef __cplusplus
39958extern "C"
39959{
39960#endif
39961/* We use char because int might match the return type of a gcc2
39962 builtin and then its argument prototype would still apply. */
39963char $ac_func ();
39964/* The GNU C library defines this for functions which it implements
39965 to always fail with ENOSYS. Some functions are actually named
39966 something starting with __ and the normal name is an alias. */
39967#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39968choke me
39969#else
39970char (*f) () = $ac_func;
39971#endif
39972#ifdef __cplusplus
39973}
39974#endif
39975
39976int
39977main ()
39978{
39979return f != $ac_func;
39980 ;
39981 return 0;
39982}
39983_ACEOF
39984rm -f conftest.$ac_objext conftest$ac_exeext
39985if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39986 (eval $ac_link) 2>conftest.er1
a848cd7e 39987 ac_status=$?
ac1cb8d3
VS
39988 grep -v '^ *+' conftest.er1 >conftest.err
39989 rm -f conftest.er1
39990 cat conftest.err >&5
a848cd7e
SC
39991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39992 (exit $ac_status); } &&
5d7b7554 39993 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39995 (eval $ac_try) 2>&5
39996 ac_status=$?
39997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39998 (exit $ac_status); }; } &&
39999 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40001 (eval $ac_try) 2>&5
40002 ac_status=$?
40003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40004 (exit $ac_status); }; }; then
40005 eval "$as_ac_var=yes"
40006else
40007 echo "$as_me: failed program was:" >&5
40008sed 's/^/| /' conftest.$ac_ext >&5
40009
40010eval "$as_ac_var=no"
40011fi
ac1cb8d3
VS
40012rm -f conftest.err conftest.$ac_objext \
40013 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40014fi
40015echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40016echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40017if test `eval echo '${'$as_ac_var'}'` = yes; then
40018 cat >>confdefs.h <<_ACEOF
40019#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40020_ACEOF
40021
40022 cat >>confdefs.h <<\_ACEOF
40023#define HAVE_SHL_LOAD 1
40024_ACEOF
40025
40026 HAVE_SHL_FUNCS=1
40027
40028else
40029
40030 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
40031echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
40032if test "${ac_cv_lib_shl_load_dld+set}" = set; then
40033 echo $ECHO_N "(cached) $ECHO_C" >&6
40034else
40035 ac_check_lib_save_LIBS=$LIBS
40036LIBS="-lshl_load $LIBS"
40037cat >conftest.$ac_ext <<_ACEOF
40038/* confdefs.h. */
40039_ACEOF
40040cat confdefs.h >>conftest.$ac_ext
40041cat >>conftest.$ac_ext <<_ACEOF
40042/* end confdefs.h. */
40043
40044/* Override any gcc2 internal prototype to avoid an error. */
40045#ifdef __cplusplus
40046extern "C"
40047#endif
40048/* We use char because int might match the return type of a gcc2
40049 builtin and then its argument prototype would still apply. */
40050char dld ();
40051int
40052main ()
40053{
40054dld ();
40055 ;
40056 return 0;
40057}
40058_ACEOF
40059rm -f conftest.$ac_objext conftest$ac_exeext
40060if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40061 (eval $ac_link) 2>conftest.er1
a848cd7e 40062 ac_status=$?
ac1cb8d3
VS
40063 grep -v '^ *+' conftest.er1 >conftest.err
40064 rm -f conftest.er1
40065 cat conftest.err >&5
a848cd7e
SC
40066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40067 (exit $ac_status); } &&
5d7b7554 40068 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40070 (eval $ac_try) 2>&5
40071 ac_status=$?
40072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40073 (exit $ac_status); }; } &&
40074 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40076 (eval $ac_try) 2>&5
40077 ac_status=$?
40078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40079 (exit $ac_status); }; }; then
40080 ac_cv_lib_shl_load_dld=yes
40081else
40082 echo "$as_me: failed program was:" >&5
40083sed 's/^/| /' conftest.$ac_ext >&5
40084
40085ac_cv_lib_shl_load_dld=no
40086fi
ac1cb8d3
VS
40087rm -f conftest.err conftest.$ac_objext \
40088 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40089LIBS=$ac_check_lib_save_LIBS
40090fi
40091echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
40092echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
40093if test $ac_cv_lib_shl_load_dld = yes; then
40094
40095 HAVE_SHL_FUNCS=1
40096 DL_LINK=" -ldld$DL_LINK"
40097
40098fi
40099
40100
40101fi
40102done
40103
40104
40105fi
40106
40107
40108fi
40109done
40110
40111
40112 if test "$HAVE_DL_FUNCS" = 1; then
40113
40114for ac_func in dlerror
40115do
40116as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40117echo "$as_me:$LINENO: checking for $ac_func" >&5
40118echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40119if eval "test \"\${$as_ac_var+set}\" = set"; then
40120 echo $ECHO_N "(cached) $ECHO_C" >&6
40121else
40122 cat >conftest.$ac_ext <<_ACEOF
40123/* confdefs.h. */
40124_ACEOF
40125cat confdefs.h >>conftest.$ac_ext
40126cat >>conftest.$ac_ext <<_ACEOF
40127/* end confdefs.h. */
ac1cb8d3
VS
40128/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40129 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40130#define $ac_func innocuous_$ac_func
40131
a848cd7e
SC
40132/* System header to define __stub macros and hopefully few prototypes,
40133 which can conflict with char $ac_func (); below.
40134 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40135 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40136
a848cd7e
SC
40137#ifdef __STDC__
40138# include <limits.h>
40139#else
40140# include <assert.h>
40141#endif
ac1cb8d3
VS
40142
40143#undef $ac_func
40144
a848cd7e
SC
40145/* Override any gcc2 internal prototype to avoid an error. */
40146#ifdef __cplusplus
40147extern "C"
40148{
40149#endif
40150/* We use char because int might match the return type of a gcc2
40151 builtin and then its argument prototype would still apply. */
40152char $ac_func ();
40153/* The GNU C library defines this for functions which it implements
40154 to always fail with ENOSYS. Some functions are actually named
40155 something starting with __ and the normal name is an alias. */
40156#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40157choke me
40158#else
40159char (*f) () = $ac_func;
40160#endif
40161#ifdef __cplusplus
40162}
40163#endif
40164
40165int
40166main ()
40167{
40168return f != $ac_func;
40169 ;
40170 return 0;
40171}
40172_ACEOF
40173rm -f conftest.$ac_objext conftest$ac_exeext
40174if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40175 (eval $ac_link) 2>conftest.er1
a848cd7e 40176 ac_status=$?
ac1cb8d3
VS
40177 grep -v '^ *+' conftest.er1 >conftest.err
40178 rm -f conftest.er1
40179 cat conftest.err >&5
a848cd7e
SC
40180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40181 (exit $ac_status); } &&
5d7b7554 40182 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40184 (eval $ac_try) 2>&5
40185 ac_status=$?
40186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40187 (exit $ac_status); }; } &&
40188 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40190 (eval $ac_try) 2>&5
40191 ac_status=$?
40192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40193 (exit $ac_status); }; }; then
40194 eval "$as_ac_var=yes"
40195else
40196 echo "$as_me: failed program was:" >&5
40197sed 's/^/| /' conftest.$ac_ext >&5
40198
40199eval "$as_ac_var=no"
40200fi
ac1cb8d3
VS
40201rm -f conftest.err conftest.$ac_objext \
40202 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40203fi
40204echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40205echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40206if test `eval echo '${'$as_ac_var'}'` = yes; then
40207 cat >>confdefs.h <<_ACEOF
40208#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40209_ACEOF
40210 cat >>confdefs.h <<\_ACEOF
40211#define HAVE_DLERROR 1
40212_ACEOF
40213
40214else
40215
40216 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
40217echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
40218if test "${ac_cv_lib_dl_dlerror+set}" = set; then
40219 echo $ECHO_N "(cached) $ECHO_C" >&6
40220else
40221 ac_check_lib_save_LIBS=$LIBS
40222LIBS="-ldl $LIBS"
40223cat >conftest.$ac_ext <<_ACEOF
40224/* confdefs.h. */
40225_ACEOF
40226cat confdefs.h >>conftest.$ac_ext
40227cat >>conftest.$ac_ext <<_ACEOF
40228/* end confdefs.h. */
40229
40230/* Override any gcc2 internal prototype to avoid an error. */
40231#ifdef __cplusplus
40232extern "C"
40233#endif
40234/* We use char because int might match the return type of a gcc2
40235 builtin and then its argument prototype would still apply. */
40236char dlerror ();
40237int
40238main ()
40239{
40240dlerror ();
40241 ;
40242 return 0;
40243}
40244_ACEOF
40245rm -f conftest.$ac_objext conftest$ac_exeext
40246if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40247 (eval $ac_link) 2>conftest.er1
a848cd7e 40248 ac_status=$?
ac1cb8d3
VS
40249 grep -v '^ *+' conftest.er1 >conftest.err
40250 rm -f conftest.er1
40251 cat conftest.err >&5
a848cd7e
SC
40252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40253 (exit $ac_status); } &&
5d7b7554 40254 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40256 (eval $ac_try) 2>&5
40257 ac_status=$?
40258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40259 (exit $ac_status); }; } &&
40260 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40262 (eval $ac_try) 2>&5
40263 ac_status=$?
40264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40265 (exit $ac_status); }; }; then
40266 ac_cv_lib_dl_dlerror=yes
40267else
40268 echo "$as_me: failed program was:" >&5
40269sed 's/^/| /' conftest.$ac_ext >&5
40270
40271ac_cv_lib_dl_dlerror=no
40272fi
ac1cb8d3
VS
40273rm -f conftest.err conftest.$ac_objext \
40274 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40275LIBS=$ac_check_lib_save_LIBS
40276fi
40277echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
40278echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
40279if test $ac_cv_lib_dl_dlerror = yes; then
40280 cat >>confdefs.h <<\_ACEOF
40281#define HAVE_DLERROR 1
40282_ACEOF
40283
40284fi
40285
40286
40287
40288fi
40289done
40290
40291 fi
40292 fi
40293
40294 if test "$HAVE_DL_FUNCS" = 0; then
40295 if test "$HAVE_SHL_FUNCS" = 0; then
47a7e797 40296 if test "$USE_UNIX" = 1 -o "$USE_DOS" = 1; then
a848cd7e
SC
40297 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
40298echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
40299 wxUSE_DYNAMIC_LOADER=no
40300 wxUSE_DYNLIB_CLASS=no
40301 else
40302 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
40303echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
40304 fi
40305 fi
40306 fi
40307 fi
40308fi
40309
40310if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
40311 cat >>confdefs.h <<\_ACEOF
40312#define wxUSE_DYNAMIC_LOADER 1
40313_ACEOF
40314
40315fi
40316if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
40317 cat >>confdefs.h <<\_ACEOF
40318#define wxUSE_DYNLIB_CLASS 1
40319_ACEOF
40320
40321fi
40322
40323
40324
40325if test "$wxUSE_PLUGINS" = "yes" ; then
40326 if test "$wxUSE_SHARED" = "no" ; then
40327 { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
40328echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
40329 wxUSE_PLUGINS=no
40330 fi
40331 if test "$wxUSE_MONOLITHIC" = "yes" ; then
40332 { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
40333echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
40334 wxUSE_PLUGINS=no
40335 fi
40336 if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
40337 { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
40338echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
40339 wxUSE_PLUGINS=no
40340 fi
40341 if test "$wxUSE_PLUGINS" = "yes" ; then
40342 cat >>confdefs.h <<\_ACEOF
40343#define wxUSE_PLUGINS 1
40344_ACEOF
40345
40346 fi
40347fi
40348
40349
40350if test "$wxUSE_STL" = "yes"; then
40351 cat >>confdefs.h <<\_ACEOF
40352#define wxUSE_STL 1
40353_ACEOF
40354
40355fi
40356
40357if test "$wxUSE_APPLE_IEEE" = "yes"; then
40358 cat >>confdefs.h <<\_ACEOF
40359#define wxUSE_APPLE_IEEE 1
40360_ACEOF
40361
40362fi
40363
40364if test "$wxUSE_TIMER" = "yes"; then
40365 cat >>confdefs.h <<\_ACEOF
40366#define wxUSE_TIMER 1
40367_ACEOF
40368
40369fi
40370
9c112555 40371if test "$USE_UNIX" = "1" ; then
d12aef51
VZ
40372 echo "$as_me:$LINENO: checking for ioctl() in sys/soundcard.h" >&5
40373echo $ECHO_N "checking for ioctl() in sys/soundcard.h... $ECHO_C" >&6
40374if test "${ac_cv_header_sys_soundcard+set}" = set; then
a848cd7e 40375 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e 40376else
d12aef51
VZ
40377
40378 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
40379/* confdefs.h. */
40380_ACEOF
40381cat confdefs.h >>conftest.$ac_ext
40382cat >>conftest.$ac_ext <<_ACEOF
40383/* end confdefs.h. */
d12aef51
VZ
40384
40385 #include <sys/soundcard.h>
40386
40387int
40388main ()
40389{
40390
40391 ioctl(0, SNDCTL_DSP_SYNC, 0);
40392
40393 ;
40394 return 0;
40395}
a848cd7e 40396_ACEOF
d12aef51
VZ
40397rm -f conftest.$ac_objext conftest$ac_exeext
40398if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40399 (eval $ac_link) 2>conftest.er1
a848cd7e 40400 ac_status=$?
ac1cb8d3
VS
40401 grep -v '^ *+' conftest.er1 >conftest.err
40402 rm -f conftest.er1
40403 cat conftest.err >&5
a848cd7e
SC
40404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40405 (exit $ac_status); } &&
5d7b7554 40406 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40408 (eval $ac_try) 2>&5
40409 ac_status=$?
40410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40411 (exit $ac_status); }; } &&
d12aef51 40412 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40414 (eval $ac_try) 2>&5
40415 ac_status=$?
40416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40417 (exit $ac_status); }; }; then
d12aef51 40418 ac_cv_header_sys_soundcard=yes
a848cd7e
SC
40419else
40420 echo "$as_me: failed program was:" >&5
40421sed 's/^/| /' conftest.$ac_ext >&5
40422
a848cd7e 40423
d12aef51
VZ
40424 saveLibs="$LIBS"
40425 LIBS="$saveLibs -lossaudio"
40426 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
40427/* confdefs.h. */
40428_ACEOF
40429cat confdefs.h >>conftest.$ac_ext
40430cat >>conftest.$ac_ext <<_ACEOF
40431/* end confdefs.h. */
d12aef51
VZ
40432
40433 #include <sys/soundcard.h>
40434
40435int
40436main ()
40437{
40438
40439 ioctl(0, SNDCTL_DSP_SYNC, 0);
40440
40441 ;
40442 return 0;
40443}
a848cd7e 40444_ACEOF
d12aef51
VZ
40445rm -f conftest.$ac_objext conftest$ac_exeext
40446if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40447 (eval $ac_link) 2>conftest.er1
a848cd7e
SC
40448 ac_status=$?
40449 grep -v '^ *+' conftest.er1 >conftest.err
40450 rm -f conftest.er1
40451 cat conftest.err >&5
40452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d12aef51 40453 (exit $ac_status); } &&
5d7b7554 40454 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
d12aef51
VZ
40455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40456 (eval $ac_try) 2>&5
40457 ac_status=$?
40458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40459 (exit $ac_status); }; } &&
40460 { ac_try='test -s conftest$ac_exeext'
40461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40462 (eval $ac_try) 2>&5
40463 ac_status=$?
40464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40465 (exit $ac_status); }; }; then
40466 ac_cv_header_sys_soundcard=yes
a848cd7e
SC
40467else
40468 echo "$as_me: failed program was:" >&5
40469sed 's/^/| /' conftest.$ac_ext >&5
40470
a848cd7e 40471
d12aef51
VZ
40472 LIBS="$saveLibs"
40473 ac_cv_header_sys_soundcard=no
40474
40475
a848cd7e 40476fi
d12aef51
VZ
40477rm -f conftest.err conftest.$ac_objext \
40478 conftest$ac_exeext conftest.$ac_ext
40479
a848cd7e
SC
40480
40481fi
d12aef51
VZ
40482rm -f conftest.err conftest.$ac_objext \
40483 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40484
40485fi
d12aef51
VZ
40486echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard" >&5
40487echo "${ECHO_T}$ac_cv_header_sys_soundcard" >&6
a848cd7e 40488
d12aef51
VZ
40489 if test "$ac_cv_header_sys_soundcard" = "yes"; then
40490 cat >>confdefs.h <<\_ACEOF
40491#define HAVE_SYS_SOUNDCARD_H 1
40492_ACEOF
a848cd7e 40493
d12aef51
VZ
40494 else
40495 DISABLED_CONTRIB="$DISABLED_CONTRIB mmedia"
40496 fi
9c112555
MW
40497fi
40498WITH_PLUGIN_SDL=0
40499if test "$wxUSE_SOUND" = "yes"; then
40500 if test "$USE_UNIX" = "1" ; then
a848cd7e
SC
40501 if test "$wxUSE_LIBSDL" != "no"; then
40502
40503# Check whether --with-sdl-prefix or --without-sdl-prefix was given.
40504if test "${with_sdl_prefix+set}" = set; then
40505 withval="$with_sdl_prefix"
40506 sdl_prefix="$withval"
40507else
40508 sdl_prefix=""
40509fi;
40510
40511# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
40512if test "${with_sdl_exec_prefix+set}" = set; then
40513 withval="$with_sdl_exec_prefix"
40514 sdl_exec_prefix="$withval"
40515else
40516 sdl_exec_prefix=""
40517fi;
40518# Check whether --enable-sdltest or --disable-sdltest was given.
40519if test "${enable_sdltest+set}" = set; then
40520 enableval="$enable_sdltest"
40521
40522else
40523 enable_sdltest=yes
40524fi;
40525
40526 if test x$sdl_exec_prefix != x ; then
40527 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
40528 if test x${SDL_CONFIG+set} != xset ; then
40529 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
40530 fi
40531 fi
40532 if test x$sdl_prefix != x ; then
40533 sdl_args="$sdl_args --prefix=$sdl_prefix"
40534 if test x${SDL_CONFIG+set} != xset ; then
40535 SDL_CONFIG=$sdl_prefix/bin/sdl-config
40536 fi
40537 fi
40538
40539
40540 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
40541 # Extract the first word of "sdl-config", so it can be a program name with args.
40542set dummy sdl-config; ac_word=$2
40543echo "$as_me:$LINENO: checking for $ac_word" >&5
40544echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40545if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
40546 echo $ECHO_N "(cached) $ECHO_C" >&6
40547else
40548 case $SDL_CONFIG in
40549 [\\/]* | ?:[\\/]*)
40550 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
40551 ;;
40552 *)
40553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40554for as_dir in $PATH
40555do
40556 IFS=$as_save_IFS
40557 test -z "$as_dir" && as_dir=.
40558 for ac_exec_ext in '' $ac_executable_extensions; do
40559 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40560 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
40561 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40562 break 2
40563 fi
40564done
40565done
40566
40567 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
40568 ;;
40569esac
40570fi
40571SDL_CONFIG=$ac_cv_path_SDL_CONFIG
40572
40573if test -n "$SDL_CONFIG"; then
40574 echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
40575echo "${ECHO_T}$SDL_CONFIG" >&6
40576else
40577 echo "$as_me:$LINENO: result: no" >&5
40578echo "${ECHO_T}no" >&6
40579fi
40580
40581 min_sdl_version=1.2.0
40582 echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
40583echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
40584 no_sdl=""
40585 if test "$SDL_CONFIG" = "no" ; then
40586 no_sdl=yes
40587 else
40588 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
40589 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
40590
40591 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
40592 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
40593 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
40594 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
40595 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
40596 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
40597 if test "x$enable_sdltest" = "xyes" ; then
40598 ac_save_CFLAGS="$CFLAGS"
94acd38e 40599 ac_save_CXXFLAGS="$CXXFLAGS"
a848cd7e
SC
40600 ac_save_LIBS="$LIBS"
40601 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 40602 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
40603 LIBS="$LIBS $SDL_LIBS"
40604 rm -f conf.sdltest
40605 if test "$cross_compiling" = yes; then
40606 echo $ac_n "cross compiling; assumed OK... $ac_c"
40607else
40608 cat >conftest.$ac_ext <<_ACEOF
40609/* confdefs.h. */
40610_ACEOF
40611cat confdefs.h >>conftest.$ac_ext
40612cat >>conftest.$ac_ext <<_ACEOF
40613/* end confdefs.h. */
40614
40615#include <stdio.h>
40616#include <stdlib.h>
40617#include <string.h>
40618#include "SDL.h"
40619
40620char*
40621my_strdup (char *str)
40622{
40623 char *new_str;
40624
40625 if (str)
40626 {
40627 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
40628 strcpy (new_str, str);
40629 }
40630 else
40631 new_str = NULL;
40632
40633 return new_str;
40634}
40635
40636int main (int argc, char *argv[])
40637{
40638 int major, minor, micro;
40639 char *tmp_version;
40640
40641 /* This hangs on some systems (?)
40642 system ("touch conf.sdltest");
40643 */
40644 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
40645
40646 /* HP/UX 9 (%@#!) writes to sscanf strings */
40647 tmp_version = my_strdup("$min_sdl_version");
40648 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
40649 printf("%s, bad version string\n", "$min_sdl_version");
40650 exit(1);
40651 }
40652
40653 if (($sdl_major_version > major) ||
40654 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
40655 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
40656 {
40657 return 0;
40658 }
40659 else
40660 {
40661 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
40662 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
40663 printf("*** best to upgrade to the required version.\n");
40664 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
40665 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
40666 printf("*** config.cache before re-running configure\n");
40667 return 1;
40668 }
40669}
40670
40671
40672_ACEOF
40673rm -f conftest$ac_exeext
40674if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40675 (eval $ac_link) 2>&5
40676 ac_status=$?
40677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40678 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40680 (eval $ac_try) 2>&5
40681 ac_status=$?
40682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40683 (exit $ac_status); }; }; then
40684 :
40685else
40686 echo "$as_me: program exited with status $ac_status" >&5
40687echo "$as_me: failed program was:" >&5
40688sed 's/^/| /' conftest.$ac_ext >&5
40689
40690( exit $ac_status )
40691no_sdl=yes
40692fi
ac1cb8d3 40693rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
40694fi
40695 CFLAGS="$ac_save_CFLAGS"
94acd38e 40696 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
40697 LIBS="$ac_save_LIBS"
40698 fi
40699 fi
40700 if test "x$no_sdl" = x ; then
40701 echo "$as_me:$LINENO: result: yes" >&5
40702echo "${ECHO_T}yes" >&6
40703
40704 EXTRALIBS_SDL="$SDL_LIBS"
c92ad099 40705 CXXFLAGS="$SDL_CFLAGS $CXXFLAGS"
a848cd7e
SC
40706 cat >>confdefs.h <<\_ACEOF
40707#define wxUSE_LIBSDL 1
40708_ACEOF
40709
40710
40711 else
40712 echo "$as_me:$LINENO: result: no" >&5
40713echo "${ECHO_T}no" >&6
40714 if test "$SDL_CONFIG" = "no" ; then
40715 echo "*** The sdl-config script installed by SDL could not be found"
40716 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
40717 echo "*** your path, or set the SDL_CONFIG environment variable to the"
40718 echo "*** full path to sdl-config."
40719 else
40720 if test -f conf.sdltest ; then
40721 :
40722 else
40723 echo "*** Could not run SDL test program, checking why..."
40724 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 40725 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
40726 LIBS="$LIBS $SDL_LIBS"
40727 cat >conftest.$ac_ext <<_ACEOF
40728/* confdefs.h. */
40729_ACEOF
40730cat confdefs.h >>conftest.$ac_ext
40731cat >>conftest.$ac_ext <<_ACEOF
40732/* end confdefs.h. */
40733
40734#include <stdio.h>
40735#include "SDL.h"
40736
40737int main(int argc, char *argv[])
40738{ return 0; }
40739#undef main
40740#define main K_and_R_C_main
40741
40742int
40743main ()
40744{
40745 return 0;
40746 ;
40747 return 0;
40748}
40749_ACEOF
40750rm -f conftest.$ac_objext conftest$ac_exeext
40751if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40752 (eval $ac_link) 2>conftest.er1
a848cd7e 40753 ac_status=$?
ac1cb8d3
VS
40754 grep -v '^ *+' conftest.er1 >conftest.err
40755 rm -f conftest.er1
40756 cat conftest.err >&5
a848cd7e
SC
40757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40758 (exit $ac_status); } &&
5d7b7554 40759 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40761 (eval $ac_try) 2>&5
40762 ac_status=$?
40763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40764 (exit $ac_status); }; } &&
40765 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40767 (eval $ac_try) 2>&5
40768 ac_status=$?
40769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40770 (exit $ac_status); }; }; then
40771 echo "*** The test program compiled, but did not run. This usually means"
40772 echo "*** that the run-time linker is not finding SDL or finding the wrong"
40773 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
40774 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
40775 echo "*** to the installed location Also, make sure you have run ldconfig if that"
40776 echo "*** is required on your system"
40777 echo "***"
40778 echo "*** If you have an old version installed, it is best to remove it, although"
40779 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
40780else
40781 echo "$as_me: failed program was:" >&5
40782sed 's/^/| /' conftest.$ac_ext >&5
40783
40784 echo "*** The test program failed to compile or link. See the file config.log for the"
40785 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
40786 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
40787 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
40788fi
ac1cb8d3
VS
40789rm -f conftest.err conftest.$ac_objext \
40790 conftest$ac_exeext conftest.$ac_ext
a848cd7e 40791 CFLAGS="$ac_save_CFLAGS"
94acd38e 40792 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
40793 LIBS="$ac_save_LIBS"
40794 fi
40795 fi
40796 SDL_CFLAGS=""
40797 SDL_LIBS=""
40798 wxUSE_LIBSDL="no"
40799 fi
40800
40801
40802 rm -f conf.sdltest
40803
40804 if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
40805 WITH_PLUGIN_SDL=1
40806 fi
40807 fi
40808 fi
40809
40810 cat >>confdefs.h <<\_ACEOF
40811#define wxUSE_SOUND 1
40812_ACEOF
40813
40814 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
40815fi
40816
d1c38808
VZ
40817if test "$WXGTK20" = 1; then
40818 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
40819 if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
40820
40821
40822 succeeded=no
40823
40824 if test -z "$PKG_CONFIG"; then
40825 # Extract the first word of "pkg-config", so it can be a program name with args.
40826set dummy pkg-config; ac_word=$2
40827echo "$as_me:$LINENO: checking for $ac_word" >&5
40828echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40829if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
40830 echo $ECHO_N "(cached) $ECHO_C" >&6
40831else
40832 case $PKG_CONFIG in
40833 [\\/]* | ?:[\\/]*)
40834 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
40835 ;;
40836 *)
40837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40838for as_dir in $PATH
40839do
40840 IFS=$as_save_IFS
40841 test -z "$as_dir" && as_dir=.
40842 for ac_exec_ext in '' $ac_executable_extensions; do
40843 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40844 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
40845 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40846 break 2
40847 fi
40848done
40849done
40850
40851 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
40852 ;;
40853esac
40854fi
40855PKG_CONFIG=$ac_cv_path_PKG_CONFIG
40856
40857if test -n "$PKG_CONFIG"; then
40858 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
40859echo "${ECHO_T}$PKG_CONFIG" >&6
40860else
40861 echo "$as_me:$LINENO: result: no" >&5
40862echo "${ECHO_T}no" >&6
40863fi
40864
40865 fi
40866
40867 if test "$PKG_CONFIG" = "no" ; then
40868 echo "*** The pkg-config script could not be found. Make sure it is"
40869 echo "*** in your path, or set the PKG_CONFIG environment variable"
40870 echo "*** to the full path to pkg-config."
40871 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
40872 else
40873 PKG_CONFIG_MIN_VERSION=0.9.0
40874 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
ffa762ff
VS
40875 echo "$as_me:$LINENO: checking for libgnomeprintui-2.2 >= 2.8" >&5
40876echo $ECHO_N "checking for libgnomeprintui-2.2 >= 2.8... $ECHO_C" >&6
d1c38808 40877
ffa762ff 40878 if $PKG_CONFIG --exists "libgnomeprintui-2.2 >= 2.8" ; then
d1c38808
VZ
40879 echo "$as_me:$LINENO: result: yes" >&5
40880echo "${ECHO_T}yes" >&6
40881 succeeded=yes
40882
40883 echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_CFLAGS" >&5
40884echo $ECHO_N "checking LIBGNOMEPRINTUI_CFLAGS... $ECHO_C" >&6
ffa762ff 40885 LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
40886 echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_CFLAGS" >&5
40887echo "${ECHO_T}$LIBGNOMEPRINTUI_CFLAGS" >&6
40888
40889 echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_LIBS" >&5
40890echo $ECHO_N "checking LIBGNOMEPRINTUI_LIBS... $ECHO_C" >&6
ffa762ff 40891 LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
40892 echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_LIBS" >&5
40893echo "${ECHO_T}$LIBGNOMEPRINTUI_LIBS" >&6
40894 else
40895 LIBGNOMEPRINTUI_CFLAGS=""
40896 LIBGNOMEPRINTUI_LIBS=""
40897 ## If we have a custom action on failure, don't print errors, but
40898 ## do set a variable so people can do so.
ffa762ff 40899 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
40900
40901 fi
40902
40903
40904
40905 else
40906 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
40907 echo "*** See http://www.freedesktop.org/software/pkgconfig"
40908 fi
40909 fi
40910
40911 if test $succeeded = yes; then
40912
c92ad099 40913 CXXFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CXXFLAGS"
d1c38808
VZ
40914 cat >>confdefs.h <<\_ACEOF
40915#define wxUSE_LIBGNOMEPRINT 1
40916_ACEOF
40917
40918
40919 else
40920
40921 { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
40922echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
40923 wxUSE_LIBGNOMEPRINT="no"
40924
40925
40926 fi
40927
40928 fi
40929 fi
40930fi
40931
2b850ae1
RR
40932if test "$WXGTK20" = 1; then
40933 if test "$wxUSE_MIMETYPE" = "yes" ; then
40934 if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
40935
40936
40937 succeeded=no
40938
40939 if test -z "$PKG_CONFIG"; then
40940 # Extract the first word of "pkg-config", so it can be a program name with args.
40941set dummy pkg-config; ac_word=$2
40942echo "$as_me:$LINENO: checking for $ac_word" >&5
40943echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40944if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
40945 echo $ECHO_N "(cached) $ECHO_C" >&6
40946else
40947 case $PKG_CONFIG in
40948 [\\/]* | ?:[\\/]*)
40949 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
40950 ;;
40951 *)
40952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40953for as_dir in $PATH
40954do
40955 IFS=$as_save_IFS
40956 test -z "$as_dir" && as_dir=.
40957 for ac_exec_ext in '' $ac_executable_extensions; do
40958 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40959 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
40960 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40961 break 2
40962 fi
40963done
40964done
40965
40966 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
40967 ;;
40968esac
40969fi
40970PKG_CONFIG=$ac_cv_path_PKG_CONFIG
40971
40972if test -n "$PKG_CONFIG"; then
40973 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
40974echo "${ECHO_T}$PKG_CONFIG" >&6
40975else
40976 echo "$as_me:$LINENO: result: no" >&5
40977echo "${ECHO_T}no" >&6
40978fi
40979
40980 fi
40981
40982 if test "$PKG_CONFIG" = "no" ; then
40983 echo "*** The pkg-config script could not be found. Make sure it is"
40984 echo "*** in your path, or set the PKG_CONFIG environment variable"
40985 echo "*** to the full path to pkg-config."
40986 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
40987 else
40988 PKG_CONFIG_MIN_VERSION=0.9.0
40989 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
40990 echo "$as_me:$LINENO: checking for gnome-vfs-2.0 >= 2.0" >&5
40991echo $ECHO_N "checking for gnome-vfs-2.0 >= 2.0... $ECHO_C" >&6
40992
40993 if $PKG_CONFIG --exists "gnome-vfs-2.0 >= 2.0" ; then
40994 echo "$as_me:$LINENO: result: yes" >&5
40995echo "${ECHO_T}yes" >&6
40996 succeeded=yes
40997
40998 echo "$as_me:$LINENO: checking GNOMEVFS_CFLAGS" >&5
40999echo $ECHO_N "checking GNOMEVFS_CFLAGS... $ECHO_C" >&6
41000 GNOMEVFS_CFLAGS=`$PKG_CONFIG --cflags "gnome-vfs-2.0 >= 2.0"`
41001 echo "$as_me:$LINENO: result: $GNOMEVFS_CFLAGS" >&5
41002echo "${ECHO_T}$GNOMEVFS_CFLAGS" >&6
41003
41004 echo "$as_me:$LINENO: checking GNOMEVFS_LIBS" >&5
41005echo $ECHO_N "checking GNOMEVFS_LIBS... $ECHO_C" >&6
41006 GNOMEVFS_LIBS=`$PKG_CONFIG --libs "gnome-vfs-2.0 >= 2.0"`
41007 echo "$as_me:$LINENO: result: $GNOMEVFS_LIBS" >&5
41008echo "${ECHO_T}$GNOMEVFS_LIBS" >&6
41009 else
41010 GNOMEVFS_CFLAGS=""
41011 GNOMEVFS_LIBS=""
41012 ## If we have a custom action on failure, don't print errors, but
41013 ## do set a variable so people can do so.
41014 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
41015
41016 fi
41017
41018
41019
41020 else
41021 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
41022 echo "*** See http://www.freedesktop.org/software/pkgconfig"
41023 fi
41024 fi
41025
41026 if test $succeeded = yes; then
41027
41028 CXXFLAGS="$GNOMEVFS_CFLAGS $CXXFLAGS"
41029 cat >>confdefs.h <<\_ACEOF
41030#define wxUSE_LIBGNOMEVFS 1
41031_ACEOF
41032
41033
41034 else
41035
41036 { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
41037echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
41038 wxUSE_LIBGNOMEVFS="no"
41039
41040
41041 fi
41042
41043 fi
41044 fi
41045fi
41046
3565d135
RR
41047if test "$WXGTK20" = 1; then
41048 if test "$wxUSE_LIBHILDON" = "yes" ; then
41049
41050 succeeded=no
41051
41052 if test -z "$PKG_CONFIG"; then
41053 # Extract the first word of "pkg-config", so it can be a program name with args.
41054set dummy pkg-config; ac_word=$2
41055echo "$as_me:$LINENO: checking for $ac_word" >&5
41056echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41057if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
41058 echo $ECHO_N "(cached) $ECHO_C" >&6
41059else
41060 case $PKG_CONFIG in
41061 [\\/]* | ?:[\\/]*)
41062 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
41063 ;;
41064 *)
41065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41066for as_dir in $PATH
41067do
41068 IFS=$as_save_IFS
41069 test -z "$as_dir" && as_dir=.
41070 for ac_exec_ext in '' $ac_executable_extensions; do
41071 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41072 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
41073 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41074 break 2
41075 fi
41076done
41077done
41078
41079 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
41080 ;;
41081esac
41082fi
41083PKG_CONFIG=$ac_cv_path_PKG_CONFIG
41084
41085if test -n "$PKG_CONFIG"; then
41086 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
41087echo "${ECHO_T}$PKG_CONFIG" >&6
41088else
41089 echo "$as_me:$LINENO: result: no" >&5
41090echo "${ECHO_T}no" >&6
41091fi
41092
41093 fi
41094
41095 if test "$PKG_CONFIG" = "no" ; then
41096 echo "*** The pkg-config script could not be found. Make sure it is"
41097 echo "*** in your path, or set the PKG_CONFIG environment variable"
41098 echo "*** to the full path to pkg-config."
41099 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
41100 else
41101 PKG_CONFIG_MIN_VERSION=0.9.0
41102 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
41103 echo "$as_me:$LINENO: checking for hildon-lgpl >= 0.9" >&5
41104echo $ECHO_N "checking for hildon-lgpl >= 0.9... $ECHO_C" >&6
41105
41106 if $PKG_CONFIG --exists "hildon-lgpl >= 0.9" ; then
41107 echo "$as_me:$LINENO: result: yes" >&5
41108echo "${ECHO_T}yes" >&6
41109 succeeded=yes
41110
41111 echo "$as_me:$LINENO: checking HILDON_CFLAGS" >&5
41112echo $ECHO_N "checking HILDON_CFLAGS... $ECHO_C" >&6
41113 HILDON_CFLAGS=`$PKG_CONFIG --cflags "hildon-lgpl >= 0.9"`
41114 echo "$as_me:$LINENO: result: $HILDON_CFLAGS" >&5
41115echo "${ECHO_T}$HILDON_CFLAGS" >&6
41116
41117 echo "$as_me:$LINENO: checking HILDON_LIBS" >&5
41118echo $ECHO_N "checking HILDON_LIBS... $ECHO_C" >&6
41119 HILDON_LIBS=`$PKG_CONFIG --libs "hildon-lgpl >= 0.9"`
41120 echo "$as_me:$LINENO: result: $HILDON_LIBS" >&5
41121echo "${ECHO_T}$HILDON_LIBS" >&6
41122 else
41123 HILDON_CFLAGS=""
41124 HILDON_LIBS=""
41125 ## If we have a custom action on failure, don't print errors, but
41126 ## do set a variable so people can do so.
41127 HILDON_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
41128
41129 fi
41130
41131
41132
41133 else
41134 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
41135 echo "*** See http://www.freedesktop.org/software/pkgconfig"
41136 fi
41137 fi
41138
41139 if test $succeeded = yes; then
41140
41141 EXTRALIBS_HILDON="$HILDON_LIBS"
41142 CXXFLAGS="$CXXFLAGS $HILDON_CFLAGS"
41143 cat >>confdefs.h <<\_ACEOF
41144#define wxUSE_LIBHILDON 1
41145_ACEOF
41146
41147
41148 else
41149
41150 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
41151echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
41152 wxUSE_LIBHILDON="no"
41153
41154
41155 fi
41156
41157 fi
41158fi
d1c38808 41159
a848cd7e
SC
41160if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
41161 cat >>confdefs.h <<\_ACEOF
41162#define wxUSE_CMDLINE_PARSER 1
41163_ACEOF
41164
41165fi
41166
41167if test "$wxUSE_STOPWATCH" = "yes"; then
41168 cat >>confdefs.h <<\_ACEOF
41169#define wxUSE_STOPWATCH 1
41170_ACEOF
41171
41172fi
41173
41174if test "$wxUSE_DATETIME" = "yes"; then
41175 cat >>confdefs.h <<\_ACEOF
41176#define wxUSE_DATETIME 1
41177_ACEOF
41178
41179fi
41180
41181if test "$wxUSE_FILE" = "yes"; then
41182 cat >>confdefs.h <<\_ACEOF
41183#define wxUSE_FILE 1
41184_ACEOF
41185
41186fi
41187
41188if test "$wxUSE_FFILE" = "yes"; then
41189 cat >>confdefs.h <<\_ACEOF
41190#define wxUSE_FFILE 1
41191_ACEOF
41192
41193fi
41194
41195if test "$wxUSE_FILESYSTEM" = "yes"; then
41196 cat >>confdefs.h <<\_ACEOF
41197#define wxUSE_FILESYSTEM 1
41198_ACEOF
41199
41200fi
41201
41202if test "$wxUSE_FS_ZIP" = "yes"; then
41203 cat >>confdefs.h <<\_ACEOF
41204#define wxUSE_FS_ZIP 1
41205_ACEOF
41206
41207fi
41208
9e8e867f 41209if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then
a848cd7e 41210 cat >>confdefs.h <<\_ACEOF
9e8e867f 41211#define wxUSE_ARCHIVE_STREAMS 1
81f90336
MW
41212_ACEOF
41213
41214fi
41215
41216if test "$wxUSE_ZIPSTREAM" = "yes"; then
9e8e867f 41217 if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
81f90336
MW
41218 { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5
41219echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;}
41220 elif test "$wxUSE_ZLIB" = "no"; then
41221 { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5
41222echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;}
41223 else
41224 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
41225#define wxUSE_ZIPSTREAM 1
41226_ACEOF
41227
81f90336 41228 fi
a848cd7e
SC
41229fi
41230
a848cd7e 41231if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
18228ab4
MW
41232 if test "$USE_UNIX" != 1; then
41233 { echo "$as_me:$LINENO: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&5
41234echo "$as_me: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&2;}
41235 wxUSE_ON_FATAL_EXCEPTION=no
41236 else
41237 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
41238#define wxUSE_ON_FATAL_EXCEPTION 1
41239_ACEOF
41240
18228ab4 41241 fi
a848cd7e
SC
41242fi
41243
eaff0f0d
VZ
41244if test "$wxUSE_STACKWALKER" = "yes"; then
41245 cat >>confdefs.h <<\_ACEOF
41246#define wxUSE_STACKWALKER 1
41247_ACEOF
41248
41249fi
41250
36b6448c 41251if test "$wxUSE_DEBUGREPORT" = "yes"; then
18228ab4
MW
41252 if test "$USE_UNIX" != "1" -a "$USE_WIN32" != "1"; then
41253 { echo "$as_me:$LINENO: WARNING: Creating debug reports not currently supported on this system, disabled" >&5
41254echo "$as_me: WARNING: Creating debug reports not currently supported on this system, disabled" >&2;}
dfe0c803
JS
41255 wxUSE_DEBUGREPORT=no
41256 else
41257 cat >>confdefs.h <<\_ACEOF
36b6448c
VZ
41258#define wxUSE_DEBUGREPORT 1
41259_ACEOF
41260
21dfc162
MW
41261 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
41262 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt"
41263 fi
dfe0c803 41264 fi
36b6448c
VZ
41265fi
41266
a848cd7e
SC
41267if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
41268 cat >>confdefs.h <<\_ACEOF
41269#define wxUSE_SNGLINST_CHECKER 1
41270_ACEOF
41271
41272fi
41273
41274if test "$wxUSE_BUSYINFO" = "yes"; then
41275 cat >>confdefs.h <<\_ACEOF
41276#define wxUSE_BUSYINFO 1
41277_ACEOF
41278
41279fi
41280
41281if test "$wxUSE_STD_IOSTREAM" = "yes"; then
41282 cat >>confdefs.h <<\_ACEOF
41283#define wxUSE_STD_IOSTREAM 1
41284_ACEOF
41285
41286fi
41287
59746b65
MW
41288if test "$wxUSE_STD_STRING" = "yes"; then
41289 cat >>confdefs.h <<\_ACEOF
41290#define wxUSE_STD_STRING 1
41291_ACEOF
41292
41293fi
41294
07158944
VZ
41295if test "$wxUSE_STDPATHS" = "yes"; then
41296 cat >>confdefs.h <<\_ACEOF
41297#define wxUSE_STDPATHS 1
41298_ACEOF
41299
41300fi
41301
a848cd7e
SC
41302if test "$wxUSE_TEXTBUFFER" = "yes"; then
41303 cat >>confdefs.h <<\_ACEOF
41304#define wxUSE_TEXTBUFFER 1
41305_ACEOF
41306
41307fi
41308
41309if test "$wxUSE_TEXTFILE" = "yes"; then
41310 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
41311 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
41312echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
41313 else
41314 cat >>confdefs.h <<\_ACEOF
41315#define wxUSE_TEXTFILE 1
41316_ACEOF
41317
41318 fi
41319fi
41320
41321if test "$wxUSE_CONFIG" = "yes" ; then
41322 if test "$wxUSE_TEXTFILE" != "yes"; then
41323 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
41324echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
41325 else
41326 cat >>confdefs.h <<\_ACEOF
41327#define wxUSE_CONFIG 1
89be85c2
VS
41328_ACEOF
41329
41330 cat >>confdefs.h <<\_ACEOF
41331#define wxUSE_CONFIG_NATIVE 1
a848cd7e
SC
41332_ACEOF
41333
41334 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
41335 fi
41336fi
41337
41338if test "$wxUSE_INTL" = "yes" ; then
41339 if test "$wxUSE_FILE" != "yes"; then
41340 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
41341echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
41342 else
41343 cat >>confdefs.h <<\_ACEOF
41344#define wxUSE_INTL 1
41345_ACEOF
41346
41347 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
41348 GUIDIST="$GUIDIST INTL_DIST"
41349 fi
41350fi
41351
41352if test "$wxUSE_LOG" = "yes"; then
41353 cat >>confdefs.h <<\_ACEOF
41354#define wxUSE_LOG 1
41355_ACEOF
41356
41357
41358 if test "$wxUSE_LOGGUI" = "yes"; then
41359 cat >>confdefs.h <<\_ACEOF
41360#define wxUSE_LOGGUI 1
41361_ACEOF
41362
41363 fi
41364
41365 if test "$wxUSE_LOGWINDOW" = "yes"; then
41366 cat >>confdefs.h <<\_ACEOF
41367#define wxUSE_LOGWINDOW 1
41368_ACEOF
41369
41370 fi
41371
41372 if test "$wxUSE_LOGDIALOG" = "yes"; then
41373 cat >>confdefs.h <<\_ACEOF
41374#define wxUSE_LOG_DIALOG 1
41375_ACEOF
41376
41377 fi
0b78747f
MW
41378
41379 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard"
a848cd7e
SC
41380fi
41381
41382if test "$wxUSE_LONGLONG" = "yes"; then
41383 cat >>confdefs.h <<\_ACEOF
41384#define wxUSE_LONGLONG 1
41385_ACEOF
41386
41387fi
41388
41389if test "$wxUSE_GEOMETRY" = "yes"; then
41390 cat >>confdefs.h <<\_ACEOF
41391#define wxUSE_GEOMETRY 1
41392_ACEOF
41393
41394fi
41395
a848cd7e
SC
41396if test "$wxUSE_STREAMS" = "yes" ; then
41397 cat >>confdefs.h <<\_ACEOF
41398#define wxUSE_STREAMS 1
41399_ACEOF
41400
41401fi
41402
41403
41404if test "$wxUSE_DATETIME" = "yes"; then
41405
41406for ac_func in strptime
41407do
41408as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41409echo "$as_me:$LINENO: checking for $ac_func" >&5
41410echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41411if eval "test \"\${$as_ac_var+set}\" = set"; then
41412 echo $ECHO_N "(cached) $ECHO_C" >&6
41413else
41414 cat >conftest.$ac_ext <<_ACEOF
41415/* confdefs.h. */
41416_ACEOF
41417cat confdefs.h >>conftest.$ac_ext
41418cat >>conftest.$ac_ext <<_ACEOF
41419/* end confdefs.h. */
ac1cb8d3
VS
41420/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41421 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41422#define $ac_func innocuous_$ac_func
41423
a848cd7e
SC
41424/* System header to define __stub macros and hopefully few prototypes,
41425 which can conflict with char $ac_func (); below.
41426 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41427 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 41428
a848cd7e
SC
41429#ifdef __STDC__
41430# include <limits.h>
41431#else
41432# include <assert.h>
41433#endif
ac1cb8d3
VS
41434
41435#undef $ac_func
41436
a848cd7e
SC
41437/* Override any gcc2 internal prototype to avoid an error. */
41438#ifdef __cplusplus
41439extern "C"
41440{
41441#endif
41442/* We use char because int might match the return type of a gcc2
41443 builtin and then its argument prototype would still apply. */
41444char $ac_func ();
41445/* The GNU C library defines this for functions which it implements
41446 to always fail with ENOSYS. Some functions are actually named
41447 something starting with __ and the normal name is an alias. */
41448#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41449choke me
41450#else
41451char (*f) () = $ac_func;
41452#endif
41453#ifdef __cplusplus
41454}
41455#endif
41456
41457int
41458main ()
41459{
41460return f != $ac_func;
41461 ;
41462 return 0;
41463}
41464_ACEOF
41465rm -f conftest.$ac_objext conftest$ac_exeext
41466if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41467 (eval $ac_link) 2>conftest.er1
a848cd7e 41468 ac_status=$?
ac1cb8d3
VS
41469 grep -v '^ *+' conftest.er1 >conftest.err
41470 rm -f conftest.er1
41471 cat conftest.err >&5
a848cd7e
SC
41472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41473 (exit $ac_status); } &&
5d7b7554 41474 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41476 (eval $ac_try) 2>&5
41477 ac_status=$?
41478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41479 (exit $ac_status); }; } &&
41480 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41482 (eval $ac_try) 2>&5
41483 ac_status=$?
41484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41485 (exit $ac_status); }; }; then
41486 eval "$as_ac_var=yes"
41487else
41488 echo "$as_me: failed program was:" >&5
41489sed 's/^/| /' conftest.$ac_ext >&5
41490
41491eval "$as_ac_var=no"
41492fi
ac1cb8d3
VS
41493rm -f conftest.err conftest.$ac_objext \
41494 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41495fi
41496echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41497echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41498if test `eval echo '${'$as_ac_var'}'` = yes; then
41499 cat >>confdefs.h <<_ACEOF
41500#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41501_ACEOF
41502
41503fi
41504done
41505
f536f005
VZ
41506 if test "$ac_cv_func_strptime" = "yes"; then
41507 echo "$as_me:$LINENO: checking for strptime declaration" >&5
41508echo $ECHO_N "checking for strptime declaration... $ECHO_C" >&6
41509if test "${wx_cv_func_strptime_decl+set}" = set; then
41510 echo $ECHO_N "(cached) $ECHO_C" >&6
41511else
41512
f536f005
VZ
41513 cat >conftest.$ac_ext <<_ACEOF
41514/* confdefs.h. */
41515_ACEOF
41516cat confdefs.h >>conftest.$ac_ext
41517cat >>conftest.$ac_ext <<_ACEOF
41518/* end confdefs.h. */
41519
41520 #include <time.h>
41521
41522int
41523main ()
41524{
41525
41526 struct tm t;
41527 strptime("foo", "bar", &t);
41528
41529 ;
41530 return 0;
41531}
41532_ACEOF
41533rm -f conftest.$ac_objext
41534if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41535 (eval $ac_compile) 2>conftest.er1
41536 ac_status=$?
41537 grep -v '^ *+' conftest.er1 >conftest.err
41538 rm -f conftest.er1
41539 cat conftest.err >&5
41540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41541 (exit $ac_status); } &&
5d7b7554 41542 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
f536f005
VZ
41543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41544 (eval $ac_try) 2>&5
41545 ac_status=$?
41546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41547 (exit $ac_status); }; } &&
41548 { ac_try='test -s conftest.$ac_objext'
41549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41550 (eval $ac_try) 2>&5
41551 ac_status=$?
41552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41553 (exit $ac_status); }; }; then
41554 wx_cv_func_strptime_decl=yes
41555else
41556 echo "$as_me: failed program was:" >&5
41557sed 's/^/| /' conftest.$ac_ext >&5
41558
41559wx_cv_func_strptime_decl=no
41560
41561fi
41562rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f536f005
VZ
41563
41564
41565fi
41566echo "$as_me:$LINENO: result: $wx_cv_func_strptime_decl" >&5
41567echo "${ECHO_T}$wx_cv_func_strptime_decl" >&6
41568 fi
41569 if test "$wx_cv_func_strptime_decl" = "yes"; then
41570 cat >>confdefs.h <<\_ACEOF
41571#define HAVE_STRPTIME_DECL 1
41572_ACEOF
41573
41574 fi
a848cd7e
SC
41575
41576 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
41577echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
41578if test "${wx_cv_var_timezone+set}" = set; then
41579 echo $ECHO_N "(cached) $ECHO_C" >&6
41580else
41581
41582 cat >conftest.$ac_ext <<_ACEOF
41583/* confdefs.h. */
41584_ACEOF
41585cat confdefs.h >>conftest.$ac_ext
41586cat >>conftest.$ac_ext <<_ACEOF
41587/* end confdefs.h. */
41588
41589 #include <time.h>
41590
41591int
41592main ()
41593{
41594
41595 int tz;
41596 tz = timezone;
41597
41598 ;
41599 return 0;
41600}
41601_ACEOF
41602rm -f conftest.$ac_objext
41603if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 41604 (eval $ac_compile) 2>conftest.er1
a848cd7e 41605 ac_status=$?
ac1cb8d3
VS
41606 grep -v '^ *+' conftest.er1 >conftest.err
41607 rm -f conftest.er1
41608 cat conftest.err >&5
a848cd7e
SC
41609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41610 (exit $ac_status); } &&
5d7b7554 41611 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41613 (eval $ac_try) 2>&5
41614 ac_status=$?
41615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41616 (exit $ac_status); }; } &&
41617 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
41618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41619 (eval $ac_try) 2>&5
41620 ac_status=$?
41621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41622 (exit $ac_status); }; }; then
41623
41624 wx_cv_var_timezone=timezone
41625
41626else
41627 echo "$as_me: failed program was:" >&5
41628sed 's/^/| /' conftest.$ac_ext >&5
41629
41630
41631 cat >conftest.$ac_ext <<_ACEOF
41632/* confdefs.h. */
41633_ACEOF
41634cat confdefs.h >>conftest.$ac_ext
41635cat >>conftest.$ac_ext <<_ACEOF
41636/* end confdefs.h. */
41637
41638 #include <time.h>
41639
41640int
41641main ()
41642{
41643
41644 int tz;
41645 tz = _timezone;
41646
41647 ;
41648 return 0;
41649}
41650_ACEOF
41651rm -f conftest.$ac_objext
41652if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 41653 (eval $ac_compile) 2>conftest.er1
a848cd7e 41654 ac_status=$?
ac1cb8d3
VS
41655 grep -v '^ *+' conftest.er1 >conftest.err
41656 rm -f conftest.er1
41657 cat conftest.err >&5
a848cd7e
SC
41658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41659 (exit $ac_status); } &&
5d7b7554 41660 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41662 (eval $ac_try) 2>&5
41663 ac_status=$?
41664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41665 (exit $ac_status); }; } &&
41666 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
41667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41668 (eval $ac_try) 2>&5
41669 ac_status=$?
41670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41671 (exit $ac_status); }; }; then
41672
41673 wx_cv_var_timezone=_timezone
41674
41675else
41676 echo "$as_me: failed program was:" >&5
41677sed 's/^/| /' conftest.$ac_ext >&5
41678
41679
41680 cat >conftest.$ac_ext <<_ACEOF
41681/* confdefs.h. */
41682_ACEOF
41683cat confdefs.h >>conftest.$ac_ext
41684cat >>conftest.$ac_ext <<_ACEOF
41685/* end confdefs.h. */
41686
41687 #include <time.h>
41688
41689int
41690main ()
41691{
41692
41693 int tz;
41694 tz = __timezone;
41695
41696 ;
41697 return 0;
41698}
41699_ACEOF
41700rm -f conftest.$ac_objext
41701if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 41702 (eval $ac_compile) 2>conftest.er1
a848cd7e 41703 ac_status=$?
ac1cb8d3
VS
41704 grep -v '^ *+' conftest.er1 >conftest.err
41705 rm -f conftest.er1
41706 cat conftest.err >&5
a848cd7e
SC
41707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41708 (exit $ac_status); } &&
5d7b7554 41709 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41711 (eval $ac_try) 2>&5
41712 ac_status=$?
41713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41714 (exit $ac_status); }; } &&
41715 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
41716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41717 (eval $ac_try) 2>&5
41718 ac_status=$?
41719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41720 (exit $ac_status); }; }; then
41721
41722 wx_cv_var_timezone=__timezone
41723
41724else
41725 echo "$as_me: failed program was:" >&5
41726sed 's/^/| /' conftest.$ac_ext >&5
41727
41728
41729 if test "$USE_DOS" = 0 ; then
41730 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
41731echo "$as_me: WARNING: no timezone variable" >&2;}
41732 fi
41733
41734
41735fi
ac1cb8d3 41736rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
41737
41738
41739fi
ac1cb8d3 41740rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
41741
41742
41743fi
ac1cb8d3 41744rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
41745
41746
41747fi
41748echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
41749echo "${ECHO_T}$wx_cv_var_timezone" >&6
41750
41751 if test "x$wx_cv_var_timezone" != x ; then
41752 cat >>confdefs.h <<_ACEOF
41753#define WX_TIMEZONE $wx_cv_var_timezone
41754_ACEOF
41755
41756 fi
41757
41758
41759for ac_func in localtime
41760do
41761as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41762echo "$as_me:$LINENO: checking for $ac_func" >&5
41763echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41764if eval "test \"\${$as_ac_var+set}\" = set"; then
41765 echo $ECHO_N "(cached) $ECHO_C" >&6
41766else
41767 cat >conftest.$ac_ext <<_ACEOF
41768/* confdefs.h. */
41769_ACEOF
41770cat confdefs.h >>conftest.$ac_ext
41771cat >>conftest.$ac_ext <<_ACEOF
41772/* end confdefs.h. */
ac1cb8d3
VS
41773/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41774 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41775#define $ac_func innocuous_$ac_func
41776
a848cd7e
SC
41777/* System header to define __stub macros and hopefully few prototypes,
41778 which can conflict with char $ac_func (); below.
41779 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41780 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 41781
a848cd7e
SC
41782#ifdef __STDC__
41783# include <limits.h>
41784#else
41785# include <assert.h>
41786#endif
ac1cb8d3
VS
41787
41788#undef $ac_func
41789
a848cd7e
SC
41790/* Override any gcc2 internal prototype to avoid an error. */
41791#ifdef __cplusplus
41792extern "C"
41793{
41794#endif
41795/* We use char because int might match the return type of a gcc2
41796 builtin and then its argument prototype would still apply. */
41797char $ac_func ();
41798/* The GNU C library defines this for functions which it implements
41799 to always fail with ENOSYS. Some functions are actually named
41800 something starting with __ and the normal name is an alias. */
41801#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41802choke me
41803#else
41804char (*f) () = $ac_func;
41805#endif
41806#ifdef __cplusplus
41807}
41808#endif
41809
41810int
41811main ()
41812{
41813return f != $ac_func;
41814 ;
41815 return 0;
41816}
41817_ACEOF
41818rm -f conftest.$ac_objext conftest$ac_exeext
41819if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41820 (eval $ac_link) 2>conftest.er1
a848cd7e 41821 ac_status=$?
ac1cb8d3
VS
41822 grep -v '^ *+' conftest.er1 >conftest.err
41823 rm -f conftest.er1
41824 cat conftest.err >&5
a848cd7e
SC
41825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41826 (exit $ac_status); } &&
5d7b7554 41827 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41829 (eval $ac_try) 2>&5
41830 ac_status=$?
41831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41832 (exit $ac_status); }; } &&
41833 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41835 (eval $ac_try) 2>&5
41836 ac_status=$?
41837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41838 (exit $ac_status); }; }; then
41839 eval "$as_ac_var=yes"
41840else
41841 echo "$as_me: failed program was:" >&5
41842sed 's/^/| /' conftest.$ac_ext >&5
41843
41844eval "$as_ac_var=no"
41845fi
ac1cb8d3
VS
41846rm -f conftest.err conftest.$ac_objext \
41847 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41848fi
41849echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41850echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41851if test `eval echo '${'$as_ac_var'}'` = yes; then
41852 cat >>confdefs.h <<_ACEOF
41853#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41854_ACEOF
41855
41856fi
41857done
41858
41859
41860 if test "$ac_cv_func_localtime" = "yes"; then
41861 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
41862echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
41863if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
41864 echo $ECHO_N "(cached) $ECHO_C" >&6
41865else
41866
41867 cat >conftest.$ac_ext <<_ACEOF
41868/* confdefs.h. */
41869_ACEOF
41870cat confdefs.h >>conftest.$ac_ext
41871cat >>conftest.$ac_ext <<_ACEOF
41872/* end confdefs.h. */
41873
41874 #include <time.h>
41875
41876int
41877main ()
41878{
41879
41880 struct tm tm;
41881 tm.tm_gmtoff++;
41882
41883 ;
41884 return 0;
41885}
41886_ACEOF
41887rm -f conftest.$ac_objext
41888if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 41889 (eval $ac_compile) 2>conftest.er1
a848cd7e 41890 ac_status=$?
ac1cb8d3
VS
41891 grep -v '^ *+' conftest.er1 >conftest.err
41892 rm -f conftest.er1
41893 cat conftest.err >&5
a848cd7e
SC
41894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41895 (exit $ac_status); } &&
5d7b7554 41896 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41898 (eval $ac_try) 2>&5
41899 ac_status=$?
41900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41901 (exit $ac_status); }; } &&
41902 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
41903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41904 (eval $ac_try) 2>&5
41905 ac_status=$?
41906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41907 (exit $ac_status); }; }; then
41908
41909 wx_cv_struct_tm_has_gmtoff=yes
41910
41911else
41912 echo "$as_me: failed program was:" >&5
41913sed 's/^/| /' conftest.$ac_ext >&5
41914
41915wx_cv_struct_tm_has_gmtoff=no
41916
41917fi
ac1cb8d3 41918rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
41919
41920fi
41921echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
41922echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
41923 fi
41924
41925 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
41926 cat >>confdefs.h <<\_ACEOF
41927#define WX_GMTOFF_IN_TM 1
41928_ACEOF
41929
41930 fi
41931
41932
41933
41934for ac_func in gettimeofday ftime
41935do
41936as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41937echo "$as_me:$LINENO: checking for $ac_func" >&5
41938echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41939if eval "test \"\${$as_ac_var+set}\" = set"; then
41940 echo $ECHO_N "(cached) $ECHO_C" >&6
41941else
41942 cat >conftest.$ac_ext <<_ACEOF
41943/* confdefs.h. */
41944_ACEOF
41945cat confdefs.h >>conftest.$ac_ext
41946cat >>conftest.$ac_ext <<_ACEOF
41947/* end confdefs.h. */
ac1cb8d3
VS
41948/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41949 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41950#define $ac_func innocuous_$ac_func
41951
a848cd7e
SC
41952/* System header to define __stub macros and hopefully few prototypes,
41953 which can conflict with char $ac_func (); below.
41954 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41955 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 41956
a848cd7e
SC
41957#ifdef __STDC__
41958# include <limits.h>
41959#else
41960# include <assert.h>
41961#endif
ac1cb8d3
VS
41962
41963#undef $ac_func
41964
a848cd7e
SC
41965/* Override any gcc2 internal prototype to avoid an error. */
41966#ifdef __cplusplus
41967extern "C"
41968{
41969#endif
41970/* We use char because int might match the return type of a gcc2
41971 builtin and then its argument prototype would still apply. */
41972char $ac_func ();
41973/* The GNU C library defines this for functions which it implements
41974 to always fail with ENOSYS. Some functions are actually named
41975 something starting with __ and the normal name is an alias. */
41976#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41977choke me
41978#else
41979char (*f) () = $ac_func;
41980#endif
41981#ifdef __cplusplus
41982}
41983#endif
41984
41985int
41986main ()
41987{
41988return f != $ac_func;
41989 ;
41990 return 0;
41991}
41992_ACEOF
41993rm -f conftest.$ac_objext conftest$ac_exeext
41994if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41995 (eval $ac_link) 2>conftest.er1
a848cd7e 41996 ac_status=$?
ac1cb8d3
VS
41997 grep -v '^ *+' conftest.er1 >conftest.err
41998 rm -f conftest.er1
41999 cat conftest.err >&5
a848cd7e
SC
42000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42001 (exit $ac_status); } &&
5d7b7554 42002 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42004 (eval $ac_try) 2>&5
42005 ac_status=$?
42006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42007 (exit $ac_status); }; } &&
42008 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
42014 eval "$as_ac_var=yes"
42015else
42016 echo "$as_me: failed program was:" >&5
42017sed 's/^/| /' conftest.$ac_ext >&5
42018
42019eval "$as_ac_var=no"
42020fi
ac1cb8d3
VS
42021rm -f conftest.err conftest.$ac_objext \
42022 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
42023fi
42024echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42025echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42026if test `eval echo '${'$as_ac_var'}'` = yes; then
42027 cat >>confdefs.h <<_ACEOF
42028#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42029_ACEOF
42030 break
42031fi
42032done
42033
42034
42035 if test "$ac_cv_func_gettimeofday" = "yes"; then
42036 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
42037echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
42038if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
42039 echo $ECHO_N "(cached) $ECHO_C" >&6
42040else
42041
5d7b7554 42042 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
42043/* confdefs.h. */
42044_ACEOF
42045cat confdefs.h >>conftest.$ac_ext
42046cat >>conftest.$ac_ext <<_ACEOF
42047/* end confdefs.h. */
42048
42049 #include <sys/time.h>
42050 #include <unistd.h>
42051
42052int
42053main ()
42054{
42055
42056 struct timeval tv;
42057 gettimeofday(&tv, NULL);
42058
42059 ;
42060 return 0;
42061}
42062_ACEOF
42063rm -f conftest.$ac_objext
42064if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42065 (eval $ac_compile) 2>conftest.er1
a848cd7e 42066 ac_status=$?
ac1cb8d3
VS
42067 grep -v '^ *+' conftest.er1 >conftest.err
42068 rm -f conftest.er1
42069 cat conftest.err >&5
a848cd7e
SC
42070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42071 (exit $ac_status); } &&
5d7b7554 42072 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42074 (eval $ac_try) 2>&5
42075 ac_status=$?
42076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42077 (exit $ac_status); }; } &&
42078 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42080 (eval $ac_try) 2>&5
42081 ac_status=$?
42082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42083 (exit $ac_status); }; }; then
42084 wx_cv_func_gettimeofday_has_2_args=yes
42085else
42086 echo "$as_me: failed program was:" >&5
42087sed 's/^/| /' conftest.$ac_ext >&5
42088
42089cat >conftest.$ac_ext <<_ACEOF
42090/* confdefs.h. */
42091_ACEOF
42092cat confdefs.h >>conftest.$ac_ext
42093cat >>conftest.$ac_ext <<_ACEOF
42094/* end confdefs.h. */
42095
42096 #include <sys/time.h>
42097 #include <unistd.h>
42098
42099int
42100main ()
42101{
42102
42103 struct timeval tv;
42104 gettimeofday(&tv);
42105
42106 ;
42107 return 0;
42108}
42109_ACEOF
42110rm -f conftest.$ac_objext
42111if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42112 (eval $ac_compile) 2>conftest.er1
a848cd7e 42113 ac_status=$?
ac1cb8d3
VS
42114 grep -v '^ *+' conftest.er1 >conftest.err
42115 rm -f conftest.er1
42116 cat conftest.err >&5
a848cd7e
SC
42117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42118 (exit $ac_status); } &&
5d7b7554 42119 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42121 (eval $ac_try) 2>&5
42122 ac_status=$?
42123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42124 (exit $ac_status); }; } &&
42125 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42127 (eval $ac_try) 2>&5
42128 ac_status=$?
42129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42130 (exit $ac_status); }; }; then
42131 wx_cv_func_gettimeofday_has_2_args=no
42132else
42133 echo "$as_me: failed program was:" >&5
42134sed 's/^/| /' conftest.$ac_ext >&5
42135
42136
42137 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
42138echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
42139 wx_cv_func_gettimeofday_has_2_args=unknown
42140
42141
42142fi
ac1cb8d3 42143rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
42144
42145fi
ac1cb8d3 42146rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
42147
42148fi
42149echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
42150echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
42151
42152 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
42153 cat >>confdefs.h <<\_ACEOF
42154#define WX_GETTIMEOFDAY_NO_TZ 1
42155_ACEOF
42156
42157 fi
42158 fi
42159
42160 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
42161fi
42162
42163
42164if test "$wxUSE_SOCKETS" = "yes"; then
42165 if test "$wxUSE_MGL" = "1"; then
42166 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
42167echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
42168 wxUSE_SOCKETS="no"
42169 fi
42170fi
42171
42172if test "$wxUSE_SOCKETS" = "yes"; then
42173 if test "$TOOLKIT" != "MSW"; then
42174 echo "$as_me:$LINENO: checking for socket" >&5
42175echo $ECHO_N "checking for socket... $ECHO_C" >&6
42176if test "${ac_cv_func_socket+set}" = set; then
42177 echo $ECHO_N "(cached) $ECHO_C" >&6
42178else
42179 cat >conftest.$ac_ext <<_ACEOF
42180/* confdefs.h. */
42181_ACEOF
42182cat confdefs.h >>conftest.$ac_ext
42183cat >>conftest.$ac_ext <<_ACEOF
42184/* end confdefs.h. */
ac1cb8d3
VS
42185/* Define socket to an innocuous variant, in case <limits.h> declares socket.
42186 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42187#define socket innocuous_socket
42188
a848cd7e
SC
42189/* System header to define __stub macros and hopefully few prototypes,
42190 which can conflict with char socket (); below.
42191 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42192 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 42193
a848cd7e
SC
42194#ifdef __STDC__
42195# include <limits.h>
42196#else
42197# include <assert.h>
42198#endif
ac1cb8d3
VS
42199
42200#undef socket
42201
a848cd7e
SC
42202/* Override any gcc2 internal prototype to avoid an error. */
42203#ifdef __cplusplus
42204extern "C"
42205{
42206#endif
42207/* We use char because int might match the return type of a gcc2
42208 builtin and then its argument prototype would still apply. */
42209char socket ();
42210/* The GNU C library defines this for functions which it implements
42211 to always fail with ENOSYS. Some functions are actually named
42212 something starting with __ and the normal name is an alias. */
42213#if defined (__stub_socket) || defined (__stub___socket)
42214choke me
42215#else
42216char (*f) () = socket;
42217#endif
42218#ifdef __cplusplus
42219}
42220#endif
42221
42222int
42223main ()
42224{
42225return f != socket;
42226 ;
42227 return 0;
42228}
42229_ACEOF
42230rm -f conftest.$ac_objext conftest$ac_exeext
42231if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 42232 (eval $ac_link) 2>conftest.er1
a848cd7e 42233 ac_status=$?
ac1cb8d3
VS
42234 grep -v '^ *+' conftest.er1 >conftest.err
42235 rm -f conftest.er1
42236 cat conftest.err >&5
a848cd7e
SC
42237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42238 (exit $ac_status); } &&
5d7b7554 42239 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42241 (eval $ac_try) 2>&5
42242 ac_status=$?
42243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42244 (exit $ac_status); }; } &&
42245 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
42246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42247 (eval $ac_try) 2>&5
42248 ac_status=$?
42249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42250 (exit $ac_status); }; }; then
42251 ac_cv_func_socket=yes
42252else
42253 echo "$as_me: failed program was:" >&5
42254sed 's/^/| /' conftest.$ac_ext >&5
42255
42256ac_cv_func_socket=no
42257fi
ac1cb8d3
VS
42258rm -f conftest.err conftest.$ac_objext \
42259 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
42260fi
42261echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
42262echo "${ECHO_T}$ac_cv_func_socket" >&6
42263if test $ac_cv_func_socket = yes; then
42264 :
42265else
42266
42267 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
42268echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
42269if test "${ac_cv_lib_socket_socket+set}" = set; then
42270 echo $ECHO_N "(cached) $ECHO_C" >&6
42271else
42272 ac_check_lib_save_LIBS=$LIBS
42273LIBS="-lsocket $LIBS"
42274cat >conftest.$ac_ext <<_ACEOF
42275/* confdefs.h. */
42276_ACEOF
42277cat confdefs.h >>conftest.$ac_ext
42278cat >>conftest.$ac_ext <<_ACEOF
42279/* end confdefs.h. */
42280
42281/* Override any gcc2 internal prototype to avoid an error. */
42282#ifdef __cplusplus
42283extern "C"
42284#endif
42285/* We use char because int might match the return type of a gcc2
42286 builtin and then its argument prototype would still apply. */
42287char socket ();
42288int
42289main ()
42290{
42291socket ();
42292 ;
42293 return 0;
42294}
42295_ACEOF
42296rm -f conftest.$ac_objext conftest$ac_exeext
42297if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 42298 (eval $ac_link) 2>conftest.er1
a848cd7e 42299 ac_status=$?
ac1cb8d3
VS
42300 grep -v '^ *+' conftest.er1 >conftest.err
42301 rm -f conftest.er1
42302 cat conftest.err >&5
a848cd7e
SC
42303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42304 (exit $ac_status); } &&
5d7b7554 42305 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42307 (eval $ac_try) 2>&5
42308 ac_status=$?
42309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42310 (exit $ac_status); }; } &&
42311 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
42312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42313 (eval $ac_try) 2>&5
42314 ac_status=$?
42315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42316 (exit $ac_status); }; }; then
42317 ac_cv_lib_socket_socket=yes
42318else
42319 echo "$as_me: failed program was:" >&5
42320sed 's/^/| /' conftest.$ac_ext >&5
42321
42322ac_cv_lib_socket_socket=no
42323fi
ac1cb8d3
VS
42324rm -f conftest.err conftest.$ac_objext \
42325 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
42326LIBS=$ac_check_lib_save_LIBS
42327fi
42328echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
42329echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
42330if test $ac_cv_lib_socket_socket = yes; then
42331 if test "$INET_LINK" != " -lsocket"; then
42332 INET_LINK="$INET_LINK -lsocket"
42333 fi
42334else
42335
42336 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
42337echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
42338 wxUSE_SOCKETS=no
42339
42340
42341fi
42342
42343
42344
42345fi
42346
42347 fi
42348fi
42349
42350if test "$wxUSE_SOCKETS" = "yes" ; then
42351 if test "$TOOLKIT" != "MSW"; then
5d7b7554 42352 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
a848cd7e
SC
42353echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
42354if test "${wx_cv_type_getsockname3+set}" = set; then
42355 echo $ECHO_N "(cached) $ECHO_C" >&6
42356else
42357
42358 cat >conftest.$ac_ext <<_ACEOF
42359/* confdefs.h. */
42360_ACEOF
42361cat confdefs.h >>conftest.$ac_ext
42362cat >>conftest.$ac_ext <<_ACEOF
42363/* end confdefs.h. */
42364
42365 #include <sys/types.h>
42366 #include <sys/socket.h>
42367
42368int
42369main ()
42370{
42371
42372 socklen_t len;
42373 getsockname(0, 0, &len);
42374
42375 ;
42376 return 0;
42377}
42378_ACEOF
42379rm -f conftest.$ac_objext
42380if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42381 (eval $ac_compile) 2>conftest.er1
a848cd7e 42382 ac_status=$?
ac1cb8d3
VS
42383 grep -v '^ *+' conftest.er1 >conftest.err
42384 rm -f conftest.er1
42385 cat conftest.err >&5
a848cd7e
SC
42386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42387 (exit $ac_status); } &&
5d7b7554 42388 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42390 (eval $ac_try) 2>&5
42391 ac_status=$?
42392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42393 (exit $ac_status); }; } &&
42394 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42396 (eval $ac_try) 2>&5
42397 ac_status=$?
42398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42399 (exit $ac_status); }; }; then
42400 wx_cv_type_getsockname3=socklen_t
42401else
42402 echo "$as_me: failed program was:" >&5
42403sed 's/^/| /' conftest.$ac_ext >&5
42404
42405
6459a506 42406 CXXFLAGS_OLD="$CXXFLAGS"
a848cd7e 42407 if test "$GCC" = yes ; then
c92ad099 42408 CXXFLAGS="-Werror $CXXFLAGS"
a848cd7e
SC
42409 fi
42410
42411 cat >conftest.$ac_ext <<_ACEOF
42412/* confdefs.h. */
42413_ACEOF
42414cat confdefs.h >>conftest.$ac_ext
42415cat >>conftest.$ac_ext <<_ACEOF
42416/* end confdefs.h. */
42417
42418 #include <sys/types.h>
42419 #include <sys/socket.h>
42420
42421int
42422main ()
42423{
42424
42425 size_t len;
42426 getsockname(0, 0, &len);
42427
42428 ;
42429 return 0;
42430}
42431_ACEOF
42432rm -f conftest.$ac_objext
42433if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42434 (eval $ac_compile) 2>conftest.er1
a848cd7e 42435 ac_status=$?
ac1cb8d3
VS
42436 grep -v '^ *+' conftest.er1 >conftest.err
42437 rm -f conftest.er1
42438 cat conftest.err >&5
a848cd7e
SC
42439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42440 (exit $ac_status); } &&
5d7b7554 42441 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42443 (eval $ac_try) 2>&5
42444 ac_status=$?
42445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42446 (exit $ac_status); }; } &&
42447 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42449 (eval $ac_try) 2>&5
42450 ac_status=$?
42451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42452 (exit $ac_status); }; }; then
42453 wx_cv_type_getsockname3=size_t
42454else
42455 echo "$as_me: failed program was:" >&5
42456sed 's/^/| /' conftest.$ac_ext >&5
42457
42458cat >conftest.$ac_ext <<_ACEOF
42459/* confdefs.h. */
42460_ACEOF
42461cat confdefs.h >>conftest.$ac_ext
42462cat >>conftest.$ac_ext <<_ACEOF
42463/* end confdefs.h. */
42464
42465 #include <sys/types.h>
42466 #include <sys/socket.h>
42467
42468int
42469main ()
42470{
42471
42472 int len;
42473 getsockname(0, 0, &len);
42474
42475 ;
42476 return 0;
42477}
42478_ACEOF
42479rm -f conftest.$ac_objext
42480if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42481 (eval $ac_compile) 2>conftest.er1
a848cd7e 42482 ac_status=$?
ac1cb8d3
VS
42483 grep -v '^ *+' conftest.er1 >conftest.err
42484 rm -f conftest.er1
42485 cat conftest.err >&5
a848cd7e
SC
42486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42487 (exit $ac_status); } &&
5d7b7554 42488 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42490 (eval $ac_try) 2>&5
42491 ac_status=$?
42492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42493 (exit $ac_status); }; } &&
42494 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42496 (eval $ac_try) 2>&5
42497 ac_status=$?
42498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42499 (exit $ac_status); }; }; then
42500 wx_cv_type_getsockname3=int
42501else
42502 echo "$as_me: failed program was:" >&5
42503sed 's/^/| /' conftest.$ac_ext >&5
42504
42505wx_cv_type_getsockname3=unknown
42506
42507fi
ac1cb8d3 42508rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
42509
42510fi
ac1cb8d3 42511rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 42512
6459a506 42513 CXXFLAGS="$CXXFLAGS_OLD"
a848cd7e
SC
42514
42515
42516fi
ac1cb8d3 42517rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
42518
42519fi
42520echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
42521echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
42522
42523 if test "$wx_cv_type_getsockname3" = "unknown"; then
42524 wxUSE_SOCKETS=no
42525 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
42526echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
42527 else
42528 cat >>confdefs.h <<_ACEOF
9e03e02d 42529#define WX_SOCKLEN_T $wx_cv_type_getsockname3
5b674b9d
DE
42530_ACEOF
42531
42532 fi
42533 echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5
42534echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6
42535if test "${wx_cv_type_getsockopt5+set}" = set; then
42536 echo $ECHO_N "(cached) $ECHO_C" >&6
42537else
42538
42539 cat >conftest.$ac_ext <<_ACEOF
42540/* confdefs.h. */
42541_ACEOF
42542cat confdefs.h >>conftest.$ac_ext
42543cat >>conftest.$ac_ext <<_ACEOF
42544/* end confdefs.h. */
42545
42546 #include <sys/types.h>
42547 #include <sys/socket.h>
42548
42549int
42550main ()
42551{
42552
42553 socklen_t len;
42554 getsockopt(0, 0, 0, 0, &len);
42555
42556 ;
42557 return 0;
42558}
42559_ACEOF
42560rm -f conftest.$ac_objext
42561if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42562 (eval $ac_compile) 2>conftest.er1
42563 ac_status=$?
42564 grep -v '^ *+' conftest.er1 >conftest.err
42565 rm -f conftest.er1
42566 cat conftest.err >&5
42567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42568 (exit $ac_status); } &&
5d7b7554 42569 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
42570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42571 (eval $ac_try) 2>&5
42572 ac_status=$?
42573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42574 (exit $ac_status); }; } &&
42575 { ac_try='test -s conftest.$ac_objext'
42576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42577 (eval $ac_try) 2>&5
42578 ac_status=$?
42579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42580 (exit $ac_status); }; }; then
42581 wx_cv_type_getsockopt5=socklen_t
42582else
42583 echo "$as_me: failed program was:" >&5
42584sed 's/^/| /' conftest.$ac_ext >&5
42585
42586
6459a506 42587 CXXFLAGS_OLD="$CXXFLAGS"
5b674b9d 42588 if test "$GCC" = yes ; then
c92ad099 42589 CXXFLAGS="-Werror $CXXFLAGS"
5b674b9d
DE
42590 fi
42591
42592 cat >conftest.$ac_ext <<_ACEOF
42593/* confdefs.h. */
42594_ACEOF
42595cat confdefs.h >>conftest.$ac_ext
42596cat >>conftest.$ac_ext <<_ACEOF
42597/* end confdefs.h. */
42598
42599 #include <sys/types.h>
42600 #include <sys/socket.h>
42601
42602int
42603main ()
42604{
42605
42606 size_t len;
42607 getsockopt(0, 0, 0, 0, &len);
42608
42609 ;
42610 return 0;
42611}
42612_ACEOF
42613rm -f conftest.$ac_objext
42614if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42615 (eval $ac_compile) 2>conftest.er1
42616 ac_status=$?
42617 grep -v '^ *+' conftest.er1 >conftest.err
42618 rm -f conftest.er1
42619 cat conftest.err >&5
42620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42621 (exit $ac_status); } &&
5d7b7554 42622 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
42623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42624 (eval $ac_try) 2>&5
42625 ac_status=$?
42626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42627 (exit $ac_status); }; } &&
42628 { ac_try='test -s conftest.$ac_objext'
42629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42630 (eval $ac_try) 2>&5
42631 ac_status=$?
42632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42633 (exit $ac_status); }; }; then
42634 wx_cv_type_getsockopt5=size_t
42635else
42636 echo "$as_me: failed program was:" >&5
42637sed 's/^/| /' conftest.$ac_ext >&5
42638
42639cat >conftest.$ac_ext <<_ACEOF
42640/* confdefs.h. */
42641_ACEOF
42642cat confdefs.h >>conftest.$ac_ext
42643cat >>conftest.$ac_ext <<_ACEOF
42644/* end confdefs.h. */
42645
42646 #include <sys/types.h>
42647 #include <sys/socket.h>
42648
42649int
42650main ()
42651{
42652
42653 int len;
42654 getsockopt(0, 0, 0, 0, &len);
42655
42656 ;
42657 return 0;
42658}
42659_ACEOF
42660rm -f conftest.$ac_objext
42661if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42662 (eval $ac_compile) 2>conftest.er1
42663 ac_status=$?
42664 grep -v '^ *+' conftest.er1 >conftest.err
42665 rm -f conftest.er1
42666 cat conftest.err >&5
42667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42668 (exit $ac_status); } &&
5d7b7554 42669 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
42670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42671 (eval $ac_try) 2>&5
42672 ac_status=$?
42673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42674 (exit $ac_status); }; } &&
42675 { ac_try='test -s conftest.$ac_objext'
42676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42677 (eval $ac_try) 2>&5
42678 ac_status=$?
42679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42680 (exit $ac_status); }; }; then
42681 wx_cv_type_getsockopt5=int
42682else
42683 echo "$as_me: failed program was:" >&5
42684sed 's/^/| /' conftest.$ac_ext >&5
42685
42686wx_cv_type_getsockopt5=unknown
42687
42688fi
42689rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42690
42691fi
42692rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42693
6459a506 42694 CXXFLAGS="$CXXFLAGS_OLD"
5b674b9d
DE
42695
42696
42697fi
42698rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42699
42700fi
42701echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5
42702echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6
42703
42704 if test "$wx_cv_type_getsockopt5" = "unknown"; then
42705 wxUSE_SOCKETS=no
42706 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
42707echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
42708 else
42709 cat >>confdefs.h <<_ACEOF
42710#define SOCKOPTLEN_T $wx_cv_type_getsockopt5
a848cd7e
SC
42711_ACEOF
42712
42713 fi
42714 fi
42715fi
42716
42717if test "$wxUSE_SOCKETS" = "yes" ; then
42718 cat >>confdefs.h <<\_ACEOF
42719#define wxUSE_SOCKETS 1
42720_ACEOF
42721
42722 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
42723fi
42724
42725if test "$wxUSE_PROTOCOL" = "yes"; then
42726 if test "$wxUSE_SOCKETS" != "yes"; then
42727 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
42728echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
42729 wxUSE_PROTOCOL=no
42730 fi
42731fi
42732
42733if test "$wxUSE_PROTOCOL" = "yes"; then
42734 cat >>confdefs.h <<\_ACEOF
42735#define wxUSE_PROTOCOL 1
42736_ACEOF
42737
42738
42739 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
42740 cat >>confdefs.h <<\_ACEOF
42741#define wxUSE_PROTOCOL_HTTP 1
42742_ACEOF
42743
42744 fi
42745 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
42746 cat >>confdefs.h <<\_ACEOF
42747#define wxUSE_PROTOCOL_FTP 1
42748_ACEOF
42749
42750 fi
42751 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
42752 cat >>confdefs.h <<\_ACEOF
42753#define wxUSE_PROTOCOL_FILE 1
42754_ACEOF
42755
42756 fi
42757else
42758 if test "$wxUSE_FS_INET" = "yes"; then
42759 { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
42760echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
42761 wxUSE_FS_INET="no"
42762 fi
42763fi
42764
42765if test "$wxUSE_URL" = "yes"; then
42766 if test "$wxUSE_PROTOCOL" != "yes"; then
42767 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
42768echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
42769 wxUSE_URL=no
42770 fi
42771 if test "$wxUSE_URL" = "yes"; then
42772 cat >>confdefs.h <<\_ACEOF
42773#define wxUSE_URL 1
42774_ACEOF
42775
42776 fi
42777fi
42778
42779if test "$wxUSE_FS_INET" = "yes"; then
42780 cat >>confdefs.h <<\_ACEOF
42781#define wxUSE_FS_INET 1
42782_ACEOF
42783
42784fi
42785
42786
ee45c548
MW
42787if test "$wxUSE_GUI" = "yes" -a "$wxUSE_JOYSTICK" = "yes"; then
42788 wxUSE_JOYSTICK=no
42789
42790 if test "$TOOLKIT" = "MSW"; then
42791 wxUSE_JOYSTICK=yes
42792
42793 elif test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
42794 if test "$USE_DARWIN" = 1; then
42795 echo "$as_me:$LINENO: checking headers have declarations needed for joystick support" >&5
42796echo $ECHO_N "checking headers have declarations needed for joystick support... $ECHO_C" >&6
ee45c548
MW
42797 cat >conftest.$ac_ext <<_ACEOF
42798/* confdefs.h. */
42799_ACEOF
42800cat confdefs.h >>conftest.$ac_ext
42801cat >>conftest.$ac_ext <<_ACEOF
42802/* end confdefs.h. */
42803 #include <IOKit/hid/IOHIDLib.h>
42804int
42805main ()
42806{
42807 IOHIDQueueInterface *qi = NULL;
42808 IOHIDCallbackFunction cb = NULL;
42809 qi->setEventCallout(NULL, cb, NULL, NULL);
42810 ;
42811 return 0;
42812}
42813_ACEOF
42814rm -f conftest.$ac_objext
42815if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42816 (eval $ac_compile) 2>conftest.er1
42817 ac_status=$?
42818 grep -v '^ *+' conftest.er1 >conftest.err
42819 rm -f conftest.er1
42820 cat conftest.err >&5
42821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42822 (exit $ac_status); } &&
5d7b7554 42823 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ee45c548
MW
42824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42825 (eval $ac_try) 2>&5
42826 ac_status=$?
42827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42828 (exit $ac_status); }; } &&
42829 { ac_try='test -s conftest.$ac_objext'
42830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42831 (eval $ac_try) 2>&5
42832 ac_status=$?
42833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42834 (exit $ac_status); }; }; then
42835 wxUSE_JOYSTICK=yes
a848cd7e 42836
ee45c548
MW
42837else
42838 echo "$as_me: failed program was:" >&5
42839sed 's/^/| /' conftest.$ac_ext >&5
42840
42841fi
42842rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ee45c548
MW
42843 echo "$as_me:$LINENO: result: $wxUSE_JOYSTICK" >&5
42844echo "${ECHO_T}$wxUSE_JOYSTICK" >&6
42845 fi
42846
42847 else
a848cd7e
SC
42848
42849for ac_header in linux/joystick.h
42850do
42851as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
42852if eval "test \"\${$as_ac_Header+set}\" = set"; then
42853 echo "$as_me:$LINENO: checking for $ac_header" >&5
42854echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
42855if eval "test \"\${$as_ac_Header+set}\" = set"; then
42856 echo $ECHO_N "(cached) $ECHO_C" >&6
42857fi
42858echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
42859echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
42860else
42861 # Is the header compilable?
42862echo "$as_me:$LINENO: checking $ac_header usability" >&5
42863echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
42864cat >conftest.$ac_ext <<_ACEOF
42865/* confdefs.h. */
42866_ACEOF
42867cat confdefs.h >>conftest.$ac_ext
42868cat >>conftest.$ac_ext <<_ACEOF
42869/* end confdefs.h. */
42870$ac_includes_default
42871#include <$ac_header>
42872_ACEOF
42873rm -f conftest.$ac_objext
42874if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42875 (eval $ac_compile) 2>conftest.er1
a848cd7e 42876 ac_status=$?
ac1cb8d3
VS
42877 grep -v '^ *+' conftest.er1 >conftest.err
42878 rm -f conftest.er1
42879 cat conftest.err >&5
a848cd7e
SC
42880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42881 (exit $ac_status); } &&
5d7b7554 42882 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42884 (eval $ac_try) 2>&5
42885 ac_status=$?
42886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42887 (exit $ac_status); }; } &&
42888 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42890 (eval $ac_try) 2>&5
42891 ac_status=$?
42892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42893 (exit $ac_status); }; }; then
42894 ac_header_compiler=yes
42895else
42896 echo "$as_me: failed program was:" >&5
42897sed 's/^/| /' conftest.$ac_ext >&5
42898
42899ac_header_compiler=no
42900fi
ac1cb8d3 42901rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
42902echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42903echo "${ECHO_T}$ac_header_compiler" >&6
42904
42905# Is the header present?
42906echo "$as_me:$LINENO: checking $ac_header presence" >&5
42907echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
42908cat >conftest.$ac_ext <<_ACEOF
42909/* confdefs.h. */
42910_ACEOF
42911cat confdefs.h >>conftest.$ac_ext
42912cat >>conftest.$ac_ext <<_ACEOF
42913/* end confdefs.h. */
42914#include <$ac_header>
42915_ACEOF
42916if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
42917 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
42918 ac_status=$?
42919 grep -v '^ *+' conftest.er1 >conftest.err
42920 rm -f conftest.er1
42921 cat conftest.err >&5
42922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42923 (exit $ac_status); } >/dev/null; then
42924 if test -s conftest.err; then
5d7b7554
VZ
42925 ac_cpp_err=$ac_cxx_preproc_warn_flag
42926 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
42927 else
42928 ac_cpp_err=
42929 fi
42930else
42931 ac_cpp_err=yes
42932fi
42933if test -z "$ac_cpp_err"; then
42934 ac_header_preproc=yes
42935else
42936 echo "$as_me: failed program was:" >&5
42937sed 's/^/| /' conftest.$ac_ext >&5
42938
42939 ac_header_preproc=no
42940fi
42941rm -f conftest.err conftest.$ac_ext
42942echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42943echo "${ECHO_T}$ac_header_preproc" >&6
42944
42945# So? What about this header?
5d7b7554 42946case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 42947 yes:no: )
a848cd7e
SC
42948 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
42949echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
42950 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
42951echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
42952 ac_header_preproc=yes
a848cd7e 42953 ;;
ac1cb8d3 42954 no:yes:* )
a848cd7e
SC
42955 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
42956echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
42957 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
42958echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
42959 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
42960echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
42961 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
42962echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
42963 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
42964echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
42965 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
42966echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
42967 (
42968 cat <<\_ASBOX
ac1cb8d3
VS
42969## ----------------------------------------- ##
42970## Report this to wx-dev@lists.wxwidgets.org ##
42971## ----------------------------------------- ##
a848cd7e
SC
42972_ASBOX
42973 ) |
42974 sed "s/^/$as_me: WARNING: /" >&2
42975 ;;
42976esac
42977echo "$as_me:$LINENO: checking for $ac_header" >&5
42978echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
42979if eval "test \"\${$as_ac_Header+set}\" = set"; then
42980 echo $ECHO_N "(cached) $ECHO_C" >&6
42981else
ac1cb8d3 42982 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
42983fi
42984echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
42985echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
42986
42987fi
42988if test `eval echo '${'$as_ac_Header'}'` = yes; then
42989 cat >>confdefs.h <<_ACEOF
42990#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
42991_ACEOF
ee45c548 42992 wxUSE_JOYSTICK=yes
a848cd7e
SC
42993fi
42994
42995done
42996
ee45c548 42997 fi
4cb1d3da 42998
ee45c548
MW
42999 if test "$wxUSE_JOYSTICK" = "yes"; then
43000 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
43001#define wxUSE_JOYSTICK 1
43002_ACEOF
43003
ee45c548
MW
43004 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
43005 else
43006 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
43007echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
a848cd7e
SC
43008 fi
43009fi
43010
43011
43012
43013if test "$wxUSE_FONTMAP" = "yes" ; then
43014 cat >>confdefs.h <<\_ACEOF
43015#define wxUSE_FONTMAP 1
43016_ACEOF
43017
43018fi
43019
43020if test "$wxUSE_UNICODE" = "yes" ; then
43021 cat >>confdefs.h <<\_ACEOF
43022#define wxUSE_UNICODE 1
43023_ACEOF
43024
43025
43026 if test "$USE_WIN32" != 1; then
43027 wxUSE_UNICODE_MSLU=no
43028 fi
43029
43030 if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
43031 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
43032echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
43033if test "${ac_cv_lib_unicows_main+set}" = set; then
43034 echo $ECHO_N "(cached) $ECHO_C" >&6
43035else
43036 ac_check_lib_save_LIBS=$LIBS
43037LIBS="-lunicows $LIBS"
43038cat >conftest.$ac_ext <<_ACEOF
43039/* confdefs.h. */
43040_ACEOF
43041cat confdefs.h >>conftest.$ac_ext
43042cat >>conftest.$ac_ext <<_ACEOF
43043/* end confdefs.h. */
43044
43045
43046int
43047main ()
43048{
43049main ();
43050 ;
43051 return 0;
43052}
43053_ACEOF
43054rm -f conftest.$ac_objext conftest$ac_exeext
43055if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 43056 (eval $ac_link) 2>conftest.er1
a848cd7e 43057 ac_status=$?
ac1cb8d3
VS
43058 grep -v '^ *+' conftest.er1 >conftest.err
43059 rm -f conftest.er1
43060 cat conftest.err >&5
a848cd7e
SC
43061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43062 (exit $ac_status); } &&
5d7b7554 43063 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43065 (eval $ac_try) 2>&5
43066 ac_status=$?
43067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43068 (exit $ac_status); }; } &&
43069 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
43070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43071 (eval $ac_try) 2>&5
43072 ac_status=$?
43073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43074 (exit $ac_status); }; }; then
43075 ac_cv_lib_unicows_main=yes
43076else
43077 echo "$as_me: failed program was:" >&5
43078sed 's/^/| /' conftest.$ac_ext >&5
43079
43080ac_cv_lib_unicows_main=no
43081fi
ac1cb8d3
VS
43082rm -f conftest.err conftest.$ac_objext \
43083 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
43084LIBS=$ac_check_lib_save_LIBS
43085fi
43086echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
43087echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
43088if test $ac_cv_lib_unicows_main = yes; then
43089
43090 cat >>confdefs.h <<\_ACEOF
43091#define wxUSE_UNICODE_MSLU 1
43092_ACEOF
43093
43094
43095else
43096
43097 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
43098 Applications will only run on Windows NT/2000/XP!" >&5
43099echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
43100 Applications will only run on Windows NT/2000/XP!" >&2;}
43101 wxUSE_UNICODE_MSLU=no
43102
43103fi
43104
43105 fi
43106fi
43107
43108if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
43109 cat >>confdefs.h <<\_ACEOF
43110#define wxUSE_EXPERIMENTAL_PRINTF 1
43111_ACEOF
43112
43113fi
43114
43115
43116if test "$wxUSE_POSTSCRIPT" = "yes" ; then
43117 cat >>confdefs.h <<\_ACEOF
43118#define wxUSE_POSTSCRIPT 1
43119_ACEOF
43120
43121fi
43122
43123cat >>confdefs.h <<\_ACEOF
43124#define wxUSE_AFM_FOR_POSTSCRIPT 1
43125_ACEOF
43126
43127
43128cat >>confdefs.h <<\_ACEOF
43129#define wxUSE_NORMALIZED_PS_FONTS 1
43130_ACEOF
43131
43132
43133
43134if test "$wxUSE_CONSTRAINTS" = "yes"; then
43135 cat >>confdefs.h <<\_ACEOF
43136#define wxUSE_CONSTRAINTS 1
43137_ACEOF
43138
43139 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
43140fi
43141
8a7b1113
VZ
43142if test "$wxUSE_MDI" = "yes"; then
43143 cat >>confdefs.h <<\_ACEOF
43144#define wxUSE_MDI 1
43145_ACEOF
43146
43147
43148 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
43149 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
43150#define wxUSE_MDI_ARCHITECTURE 1
43151_ACEOF
43152
8a7b1113
VZ
43153 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
43154 fi
a848cd7e
SC
43155fi
43156
43157if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
43158 cat >>confdefs.h <<\_ACEOF
43159#define wxUSE_DOC_VIEW_ARCHITECTURE 1
43160_ACEOF
43161
43162 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
43163 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
43164 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
43165 fi
43166fi
43167
43168if test "$wxUSE_HELP" = "yes"; then
43169 cat >>confdefs.h <<\_ACEOF
43170#define wxUSE_HELP 1
43171_ACEOF
43172
43173 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
43174
43175 if test "$wxUSE_MSW" = 1; then
43176 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
43177 cat >>confdefs.h <<\_ACEOF
43178#define wxUSE_MS_HTML_HELP 1
43179_ACEOF
43180
43181 fi
43182 fi
43183
43184 if test "$wxUSE_WXHTML_HELP" = "yes"; then
43185 if test "$wxUSE_HTML" = "yes"; then
43186 cat >>confdefs.h <<\_ACEOF
43187#define wxUSE_WXHTML_HELP 1
43188_ACEOF
43189
43190 else
43191 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
43192echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
43193 wxUSE_WXHTML_HELP=no
43194 fi
43195 fi
43196fi
43197
43198if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
43199 if test "$wxUSE_CONSTRAINTS" != "yes"; then
43200 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
43201echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
43202 else
43203 cat >>confdefs.h <<\_ACEOF
43204#define wxUSE_PRINTING_ARCHITECTURE 1
43205_ACEOF
43206
43207 fi
43208 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
43209fi
43210
43211if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
43212 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
43213echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
43214 { (exit 1); exit 1; }; }
43215fi
43216
43217
efdf6afe
VZ
43218if test "$wxUSE_METAFILE" = "yes"; then
43219 if test "$wxUSE_MSW" != 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_PM" != 1; then
43220 { echo "$as_me:$LINENO: WARNING: wxMetafile is not available on this system... disabled" >&5
43221echo "$as_me: WARNING: wxMetafile is not available on this system... disabled" >&2;}
43222 wxUSE_METAFILE=no
43223 fi
43224fi
43225
43226
a848cd7e
SC
43227if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
43228 -o "$wxUSE_CLIPBOARD" = "yes" \
43229 -o "$wxUSE_OLE" = "yes" \
43230 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
43231
43232for ac_header in ole2.h
43233do
43234as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43235if eval "test \"\${$as_ac_Header+set}\" = set"; then
43236 echo "$as_me:$LINENO: checking for $ac_header" >&5
43237echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43238if eval "test \"\${$as_ac_Header+set}\" = set"; then
43239 echo $ECHO_N "(cached) $ECHO_C" >&6
43240fi
43241echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43242echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43243else
43244 # Is the header compilable?
43245echo "$as_me:$LINENO: checking $ac_header usability" >&5
43246echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
43247cat >conftest.$ac_ext <<_ACEOF
43248/* confdefs.h. */
43249_ACEOF
43250cat confdefs.h >>conftest.$ac_ext
43251cat >>conftest.$ac_ext <<_ACEOF
43252/* end confdefs.h. */
43253$ac_includes_default
43254#include <$ac_header>
43255_ACEOF
43256rm -f conftest.$ac_objext
43257if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43258 (eval $ac_compile) 2>conftest.er1
a848cd7e 43259 ac_status=$?
ac1cb8d3
VS
43260 grep -v '^ *+' conftest.er1 >conftest.err
43261 rm -f conftest.er1
43262 cat conftest.err >&5
a848cd7e
SC
43263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43264 (exit $ac_status); } &&
5d7b7554 43265 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43267 (eval $ac_try) 2>&5
43268 ac_status=$?
43269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43270 (exit $ac_status); }; } &&
43271 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43273 (eval $ac_try) 2>&5
43274 ac_status=$?
43275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43276 (exit $ac_status); }; }; then
43277 ac_header_compiler=yes
43278else
43279 echo "$as_me: failed program was:" >&5
43280sed 's/^/| /' conftest.$ac_ext >&5
43281
43282ac_header_compiler=no
43283fi
ac1cb8d3 43284rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
43285echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43286echo "${ECHO_T}$ac_header_compiler" >&6
43287
43288# Is the header present?
43289echo "$as_me:$LINENO: checking $ac_header presence" >&5
43290echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
43291cat >conftest.$ac_ext <<_ACEOF
43292/* confdefs.h. */
43293_ACEOF
43294cat confdefs.h >>conftest.$ac_ext
43295cat >>conftest.$ac_ext <<_ACEOF
43296/* end confdefs.h. */
43297#include <$ac_header>
43298_ACEOF
43299if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
43300 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
43301 ac_status=$?
43302 grep -v '^ *+' conftest.er1 >conftest.err
43303 rm -f conftest.er1
43304 cat conftest.err >&5
43305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43306 (exit $ac_status); } >/dev/null; then
43307 if test -s conftest.err; then
5d7b7554
VZ
43308 ac_cpp_err=$ac_cxx_preproc_warn_flag
43309 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
43310 else
43311 ac_cpp_err=
43312 fi
43313else
43314 ac_cpp_err=yes
43315fi
43316if test -z "$ac_cpp_err"; then
43317 ac_header_preproc=yes
43318else
43319 echo "$as_me: failed program was:" >&5
43320sed 's/^/| /' conftest.$ac_ext >&5
43321
43322 ac_header_preproc=no
43323fi
43324rm -f conftest.err conftest.$ac_ext
43325echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43326echo "${ECHO_T}$ac_header_preproc" >&6
43327
43328# So? What about this header?
5d7b7554 43329case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 43330 yes:no: )
a848cd7e
SC
43331 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
43332echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
43333 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
43334echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
43335 ac_header_preproc=yes
a848cd7e 43336 ;;
ac1cb8d3 43337 no:yes:* )
a848cd7e
SC
43338 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
43339echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
43340 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
43341echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
43342 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
43343echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
43344 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
43345echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
43346 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
43347echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
43348 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
43349echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
43350 (
43351 cat <<\_ASBOX
ac1cb8d3
VS
43352## ----------------------------------------- ##
43353## Report this to wx-dev@lists.wxwidgets.org ##
43354## ----------------------------------------- ##
a848cd7e
SC
43355_ASBOX
43356 ) |
43357 sed "s/^/$as_me: WARNING: /" >&2
43358 ;;
43359esac
43360echo "$as_me:$LINENO: checking for $ac_header" >&5
43361echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43362if eval "test \"\${$as_ac_Header+set}\" = set"; then
43363 echo $ECHO_N "(cached) $ECHO_C" >&6
43364else
ac1cb8d3 43365 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
43366fi
43367echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43368echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43369
43370fi
43371if test `eval echo '${'$as_ac_Header'}'` = yes; then
43372 cat >>confdefs.h <<_ACEOF
43373#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
43374_ACEOF
43375
43376fi
43377
43378done
43379
43380
43381 if test "$ac_cv_header_ole2_h" = "yes" ; then
43382 if test "$GCC" = yes ; then
a848cd7e
SC
43383 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
43384echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
43385 cat >conftest.$ac_ext <<_ACEOF
43386/* confdefs.h. */
43387_ACEOF
43388cat confdefs.h >>conftest.$ac_ext
43389cat >>conftest.$ac_ext <<_ACEOF
43390/* end confdefs.h. */
43391#include <windows.h>
43392 #include <ole2.h>
43393int
43394main ()
43395{
43396
43397 ;
43398 return 0;
43399}
43400_ACEOF
43401rm -f conftest.$ac_objext
43402if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43403 (eval $ac_compile) 2>conftest.er1
a848cd7e 43404 ac_status=$?
ac1cb8d3
VS
43405 grep -v '^ *+' conftest.er1 >conftest.err
43406 rm -f conftest.er1
43407 cat conftest.err >&5
a848cd7e
SC
43408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43409 (exit $ac_status); } &&
5d7b7554 43410 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43412 (eval $ac_try) 2>&5
43413 ac_status=$?
43414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43415 (exit $ac_status); }; } &&
43416 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43418 (eval $ac_try) 2>&5
43419 ac_status=$?
43420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43421 (exit $ac_status); }; }; then
43422 echo "$as_me:$LINENO: result: no" >&5
43423echo "${ECHO_T}no" >&6
43424else
43425 echo "$as_me: failed program was:" >&5
43426sed 's/^/| /' conftest.$ac_ext >&5
43427
43428echo "$as_me:$LINENO: result: yes" >&5
43429echo "${ECHO_T}yes" >&6
5ff751d6 43430 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fvtable-thunks"
a848cd7e 43431fi
ac1cb8d3 43432rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
43433 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
43434 if test "$wxUSE_OLE" = "yes" ; then
43435 cat >>confdefs.h <<\_ACEOF
43436#define wxUSE_OLE 1
43437_ACEOF
43438
0b78747f 43439 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto"
a848cd7e
SC
43440 fi
43441 fi
43442
43443 if test "$wxUSE_DATAOBJ" = "yes" ; then
43444 cat >>confdefs.h <<\_ACEOF
43445#define wxUSE_DATAOBJ 1
43446_ACEOF
43447
43448 fi
43449 else
43450 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
43451echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
43452
43453 wxUSE_CLIPBOARD=no
43454 wxUSE_DRAG_AND_DROP=no
43455 wxUSE_DATAOBJ=no
43456 wxUSE_OLE=no
43457 fi
43458
43459 if test "$wxUSE_METAFILE" = "yes"; then
43460 cat >>confdefs.h <<\_ACEOF
43461#define wxUSE_METAFILE 1
43462_ACEOF
43463
43464
43465 cat >>confdefs.h <<\_ACEOF
43466#define wxUSE_ENH_METAFILE 1
43467_ACEOF
43468
43469 fi
43470fi
43471
43472if test "$wxUSE_IPC" = "yes"; then
0b78747f 43473 if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then
77ffb593
JS
43474 { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
43475echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
0b78747f 43476 wxUSE_IPC=no
a848cd7e
SC
43477 fi
43478
0b78747f
MW
43479 if test "$wxUSE_IPC" = "yes"; then
43480 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
43481#define wxUSE_IPC 1
43482_ACEOF
43483
0b78747f
MW
43484 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
43485 fi
a848cd7e
SC
43486fi
43487
eb730a0c 43488if test "$wxUSE_DATAOBJ" = "yes"; then
2113bc77
MW
43489 if test "$wxUSE_MGL" = 1; then
43490 { echo "$as_me:$LINENO: WARNING: wxDataObject not yet supported under MGL... disabled" >&5
43491echo "$as_me: WARNING: wxDataObject not yet supported under MGL... disabled" >&2;}
43492 wxUSE_DATAOBJ=no
43493 else
43494 cat >>confdefs.h <<\_ACEOF
eb730a0c
JS
43495#define wxUSE_DATAOBJ 1
43496_ACEOF
43497
2113bc77 43498 fi
eb730a0c
JS
43499else
43500 { echo "$as_me:$LINENO: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&5
43501echo "$as_me: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&2;}
43502 wxUSE_CLIPBOARD=no
43503 wxUSE_DRAG_AND_DROP=no
43504fi
43505
a848cd7e
SC
43506if test "$wxUSE_CLIPBOARD" = "yes"; then
43507 if test "$wxUSE_MGL" = 1; then
43508 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
43509echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
43510 wxUSE_CLIPBOARD=no
43511 fi
43512
43513 if test "$wxUSE_CLIPBOARD" = "yes"; then
43514 cat >>confdefs.h <<\_ACEOF
43515#define wxUSE_CLIPBOARD 1
43516_ACEOF
43517
a848cd7e
SC
43518 fi
43519fi
43520
43521if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
43522 if test "$wxUSE_GTK" = 1; then
43523 if test "$WXGTK12" != 1; then
43524 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
43525echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
43526 wxUSE_DRAG_AND_DROP=no
43527 fi
43528 fi
43529
43530 if test "$wxUSE_MOTIF" = 1; then
43531 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
43532echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
43533 wxUSE_DRAG_AND_DROP=no
43534 fi
43535
43536 if test "$wxUSE_X11" = 1; then
43537 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
43538echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
43539 wxUSE_DRAG_AND_DROP=no
43540 fi
43541
43542 if test "$wxUSE_MGL" = 1; then
43543 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
43544echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
43545 wxUSE_DRAG_AND_DROP=no
43546 fi
43547
43548 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
43549 cat >>confdefs.h <<\_ACEOF
43550#define wxUSE_DRAG_AND_DROP 1
43551_ACEOF
43552
43553 fi
43554
43555fi
43556
43557if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
43558 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
43559fi
43560
43561if test "$wxUSE_SPLINES" = "yes" ; then
43562 cat >>confdefs.h <<\_ACEOF
43563#define wxUSE_SPLINES 1
43564_ACEOF
43565
43566fi
43567
fbe2ca43
SN
43568if test "$wxUSE_MOUSEWHEEL" = "yes" ; then
43569 cat >>confdefs.h <<\_ACEOF
43570#define wxUSE_MOUSEWHEEL 1
43571_ACEOF
43572
43573fi
43574
a848cd7e
SC
43575
43576USES_CONTROLS=0
43577if test "$wxUSE_CONTROLS" = "yes"; then
43578 USES_CONTROLS=1
43579fi
43580
43581if test "$wxUSE_ACCEL" = "yes"; then
43582 cat >>confdefs.h <<\_ACEOF
43583#define wxUSE_ACCEL 1
43584_ACEOF
43585
43586 USES_CONTROLS=1
43587fi
43588
43589if test "$wxUSE_BUTTON" = "yes"; then
43590 cat >>confdefs.h <<\_ACEOF
43591#define wxUSE_BUTTON 1
43592_ACEOF
43593
43594 USES_CONTROLS=1
43595fi
43596
43597if test "$wxUSE_BMPBUTTON" = "yes"; then
43598 cat >>confdefs.h <<\_ACEOF
43599#define wxUSE_BMPBUTTON 1
43600_ACEOF
43601
43602 USES_CONTROLS=1
43603fi
43604
43605if test "$wxUSE_CALCTRL" = "yes"; then
43606 cat >>confdefs.h <<\_ACEOF
43607#define wxUSE_CALENDARCTRL 1
43608_ACEOF
43609
43610 USES_CONTROLS=1
43611 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
43612fi
43613
43614if test "$wxUSE_CARET" = "yes"; then
43615 cat >>confdefs.h <<\_ACEOF
43616#define wxUSE_CARET 1
43617_ACEOF
43618
43619 USES_CONTROLS=1
43620 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
43621fi
43622
43623if test "$wxUSE_COMBOBOX" = "yes"; then
43624 cat >>confdefs.h <<\_ACEOF
43625#define wxUSE_COMBOBOX 1
43626_ACEOF
43627
43628 USES_CONTROLS=1
43629fi
43630
43631if test "$wxUSE_CHOICE" = "yes"; then
43632 cat >>confdefs.h <<\_ACEOF
43633#define wxUSE_CHOICE 1
43634_ACEOF
43635
43636 USES_CONTROLS=1
43637fi
43638
92bbdbcd
WS
43639if test "$wxUSE_CHOICEBOOK" = "yes"; then
43640 cat >>confdefs.h <<\_ACEOF
43641#define wxUSE_CHOICEBOOK 1
43642_ACEOF
43643
43644 USES_CONTROLS=1
43645fi
43646
a848cd7e
SC
43647if test "$wxUSE_CHECKBOX" = "yes"; then
43648 cat >>confdefs.h <<\_ACEOF
43649#define wxUSE_CHECKBOX 1
43650_ACEOF
43651
43652 USES_CONTROLS=1
43653fi
43654
43655if test "$wxUSE_CHECKLST" = "yes"; then
43656 cat >>confdefs.h <<\_ACEOF
43657#define wxUSE_CHECKLISTBOX 1
43658_ACEOF
43659
43660 USES_CONTROLS=1
43661 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
43662fi
43663
da98e9be
VZ
43664if test "$wxUSE_DATEPICKCTRL" = "yes"; then
43665 cat >>confdefs.h <<\_ACEOF
43666#define wxUSE_DATEPICKCTRL 1
43667_ACEOF
43668
43669 USES_CONTROLS=1
43670fi
43671
a848cd7e
SC
43672if test "$wxUSE_DISPLAY" = "yes"; then
43673 cat >>confdefs.h <<\_ACEOF
43674#define wxUSE_DISPLAY 1
43675_ACEOF
43676
0b78747f 43677 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display multimon"
a848cd7e
SC
43678fi
43679
43680if test "$wxUSE_GAUGE" = "yes"; then
43681 cat >>confdefs.h <<\_ACEOF
43682#define wxUSE_GAUGE 1
43683_ACEOF
43684
43685 USES_CONTROLS=1
43686fi
43687
43688if test "$wxUSE_GRID" = "yes"; then
43689 cat >>confdefs.h <<\_ACEOF
43690#define wxUSE_GRID 1
43691_ACEOF
43692
43693 USES_CONTROLS=1
43694 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
43695fi
43696
20e34ecc
RR
43697if test "$wxUSE_DATAVIEWCTRL" = "yes"; then
43698 cat >>confdefs.h <<\_ACEOF
43699#define wxUSE_DATAVIEWCTRL 1
43700_ACEOF
43701
43702 USES_CONTROLS=1
43703 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dataview"
43704fi
43705
a848cd7e
SC
43706if test "$wxUSE_IMAGLIST" = "yes"; then
43707 cat >>confdefs.h <<\_ACEOF
43708#define wxUSE_IMAGLIST 1
43709_ACEOF
43710
43711fi
43712
43713if test "$wxUSE_LISTBOOK" = "yes"; then
43714 cat >>confdefs.h <<\_ACEOF
43715#define wxUSE_LISTBOOK 1
43716_ACEOF
43717
43718 USES_CONTROLS=1
43719fi
43720
43721if test "$wxUSE_LISTBOX" = "yes"; then
43722 cat >>confdefs.h <<\_ACEOF
43723#define wxUSE_LISTBOX 1
43724_ACEOF
43725
43726 USES_CONTROLS=1
0b78747f 43727 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listbox"
a848cd7e
SC
43728fi
43729
43730if test "$wxUSE_LISTCTRL" = "yes"; then
43731 if test "$wxUSE_IMAGLIST" = "yes"; then
43732 cat >>confdefs.h <<\_ACEOF
43733#define wxUSE_LISTCTRL 1
43734_ACEOF
43735
43736 USES_CONTROLS=1
43737 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
43738 else
43739 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
43740echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
43741 fi
43742fi
43743
43744if test "$wxUSE_NOTEBOOK" = "yes"; then
43745 cat >>confdefs.h <<\_ACEOF
43746#define wxUSE_NOTEBOOK 1
43747_ACEOF
43748
43749 USES_CONTROLS=1
43750 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
43751fi
43752
43753
43754if test "$wxUSE_RADIOBOX" = "yes"; then
43755 cat >>confdefs.h <<\_ACEOF
43756#define wxUSE_RADIOBOX 1
43757_ACEOF
43758
43759 USES_CONTROLS=1
43760fi
43761
43762if test "$wxUSE_RADIOBTN" = "yes"; then
43763 cat >>confdefs.h <<\_ACEOF
43764#define wxUSE_RADIOBTN 1
43765_ACEOF
43766
43767 USES_CONTROLS=1
43768fi
43769
43770if test "$wxUSE_SASH" = "yes"; then
43771 cat >>confdefs.h <<\_ACEOF
43772#define wxUSE_SASH 1
43773_ACEOF
43774
43775 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
43776fi
43777
43778if test "$wxUSE_SCROLLBAR" = "yes"; then
43779 cat >>confdefs.h <<\_ACEOF
43780#define wxUSE_SCROLLBAR 1
43781_ACEOF
43782
43783 USES_CONTROLS=1
43784 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
43785fi
43786
43787if test "$wxUSE_SLIDER" = "yes"; then
43788 cat >>confdefs.h <<\_ACEOF
43789#define wxUSE_SLIDER 1
43790_ACEOF
43791
43792 USES_CONTROLS=1
43793fi
43794
43795if test "$wxUSE_SPINBTN" = "yes"; then
43796 cat >>confdefs.h <<\_ACEOF
43797#define wxUSE_SPINBTN 1
43798_ACEOF
43799
43800 USES_CONTROLS=1
43801fi
43802
43803if test "$wxUSE_SPINCTRL" = "yes"; then
43804 cat >>confdefs.h <<\_ACEOF
43805#define wxUSE_SPINCTRL 1
43806_ACEOF
43807
43808 USES_CONTROLS=1
43809fi
43810
43811if test "$wxUSE_SPLITTER" = "yes"; then
43812 cat >>confdefs.h <<\_ACEOF
43813#define wxUSE_SPLITTER 1
43814_ACEOF
43815
43816 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
43817fi
43818
43819if test "$wxUSE_STATBMP" = "yes"; then
43820 cat >>confdefs.h <<\_ACEOF
43821#define wxUSE_STATBMP 1
43822_ACEOF
43823
43824 USES_CONTROLS=1
43825fi
43826
43827if test "$wxUSE_STATBOX" = "yes"; then
43828 cat >>confdefs.h <<\_ACEOF
43829#define wxUSE_STATBOX 1
43830_ACEOF
43831
43832 USES_CONTROLS=1
43833fi
43834
43835if test "$wxUSE_STATTEXT" = "yes"; then
43836 cat >>confdefs.h <<\_ACEOF
43837#define wxUSE_STATTEXT 1
43838_ACEOF
43839
43840 USES_CONTROLS=1
43841fi
43842
43843if test "$wxUSE_STATLINE" = "yes"; then
43844 cat >>confdefs.h <<\_ACEOF
43845#define wxUSE_STATLINE 1
43846_ACEOF
43847
43848 USES_CONTROLS=1
43849fi
43850
43851if test "$wxUSE_STATUSBAR" = "yes"; then
da4486fb
VZ
43852 cat >>confdefs.h <<\_ACEOF
43853#define wxUSE_NATIVE_STATUSBAR 1
43854_ACEOF
43855
a848cd7e
SC
43856 cat >>confdefs.h <<\_ACEOF
43857#define wxUSE_STATUSBAR 1
43858_ACEOF
43859
43860 USES_CONTROLS=1
43861
43862 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
43863fi
43864
f10e38c4 43865if test "$wxUSE_TAB_DIALOG" = "yes"; then
a848cd7e
SC
43866 cat >>confdefs.h <<\_ACEOF
43867#define wxUSE_TAB_DIALOG 1
43868_ACEOF
43869
a848cd7e
SC
43870fi
43871
43872if test "$wxUSE_TEXTCTRL" = "yes"; then
43873 cat >>confdefs.h <<\_ACEOF
43874#define wxUSE_TEXTCTRL 1
43875_ACEOF
43876
43877 USES_CONTROLS=1
43878 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
43879fi
43880
43881if test "$wxUSE_TOGGLEBTN" = "yes"; then
43882 if test "$wxUSE_COCOA" = 1 ; then
43883 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
43884echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
43885 wxUSE_TOGGLEBTN=no
43886 fi
43887 if test "$wxUSE_UNIVERSAL" = "yes"; then
43888 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5
43889echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;}
43890 wxUSE_TOGGLEBTN=no
43891 fi
43892
43893 if test "$wxUSE_TOGGLEBTN" = "yes"; then
43894 cat >>confdefs.h <<\_ACEOF
43895#define wxUSE_TOGGLEBTN 1
43896_ACEOF
43897
43898 USES_CONTROLS=1
43899 fi
43900fi
43901
43902if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
43903 cat >>confdefs.h <<\_ACEOF
43904#define wxUSE_TOOLBAR_SIMPLE 1
43905_ACEOF
43906
43907 wxUSE_TOOLBAR="yes"
43908 USES_CONTROLS=1
43909fi
43910
43911if test "$wxUSE_TOOLBAR" = "yes"; then
43912 cat >>confdefs.h <<\_ACEOF
43913#define wxUSE_TOOLBAR 1
43914_ACEOF
43915
43916 USES_CONTROLS=1
43917
43918 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
43919 wxUSE_TOOLBAR_NATIVE="yes"
43920 fi
43921
43922 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
43923 cat >>confdefs.h <<\_ACEOF
43924#define wxUSE_TOOLBAR_NATIVE 1
43925_ACEOF
43926
43927 USES_CONTROLS=1
43928 fi
43929
43930 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
43931fi
43932
43933if test "$wxUSE_TOOLTIPS" = "yes"; then
43934 if test "$wxUSE_MOTIF" = 1; then
43935 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
43936echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
43937 else
43938 if test "$wxUSE_UNIVERSAL" = "yes"; then
43939 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
43940echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
43941 else
43942 cat >>confdefs.h <<\_ACEOF
43943#define wxUSE_TOOLTIPS 1
43944_ACEOF
43945
43946 fi
43947 fi
43948fi
43949
0093c2fc
VZ
43950if test "$wxUSE_TREEBOOK" = "yes"; then
43951 cat >>confdefs.h <<\_ACEOF
43952#define wxUSE_TREEBOOK 1
43953_ACEOF
43954
43955 USES_CONTROLS=1
43956fi
43957
5ec3bc43
JS
43958if test "$wxUSE_TOOLBOOK" = "yes"; then
43959 cat >>confdefs.h <<\_ACEOF
43960#define wxUSE_TOOLBOOK 1
43961_ACEOF
43962
43963 USES_CONTROLS=1
43964fi
43965
a848cd7e
SC
43966if test "$wxUSE_TREECTRL" = "yes"; then
43967 if test "$wxUSE_IMAGLIST" = "yes"; then
43968 cat >>confdefs.h <<\_ACEOF
43969#define wxUSE_TREECTRL 1
43970_ACEOF
43971
43972 USES_CONTROLS=1
43973 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
43974 else
43975 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
43976echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
43977 fi
43978fi
43979
43980if test "$wxUSE_POPUPWIN" = "yes"; then
43981 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
43982 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
43983echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
43984 else
43985 if test "$wxUSE_PM" = 1; then
43986 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
43987echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
43988 else
43989 cat >>confdefs.h <<\_ACEOF
43990#define wxUSE_POPUPWIN 1
43991_ACEOF
43992
0b78747f 43993 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup"
a848cd7e
SC
43994
43995 USES_CONTROLS=1
43996 fi
43997 fi
43998fi
43999
0dcd06dd 44000if test "$wxUSE_DIALUP_MANAGER" = "yes"; then
b843b628
MB
44001 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
44002 { echo "$as_me:$LINENO: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&5
44003echo "$as_me: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&2;}
44004 else
44005 cat >>confdefs.h <<\_ACEOF
44006#define wxUSE_DIALUP_MANAGER 1
44007_ACEOF
44008
44009 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
44010 fi
44011fi
44012
a848cd7e
SC
44013if test "$wxUSE_TIPWINDOW" = "yes"; then
44014 if test "$wxUSE_PM" = 1; then
44015 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
44016echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
44017 else
44018 cat >>confdefs.h <<\_ACEOF
44019#define wxUSE_TIPWINDOW 1
44020_ACEOF
44021
44022 fi
44023fi
44024
44025if test "$USES_CONTROLS" = 1; then
44026 cat >>confdefs.h <<\_ACEOF
44027#define wxUSE_CONTROLS 1
44028_ACEOF
44029
44030fi
44031
44032
44033if test "$wxUSE_ACCESSIBILITY" = "yes"; then
44034 cat >>confdefs.h <<\_ACEOF
44035#define wxUSE_ACCESSIBILITY 1
44036_ACEOF
44037
44038 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
44039fi
44040
38b4a946
VZ
44041if test "$wxUSE_DC_CACHEING" = "yes"; then
44042 cat >>confdefs.h <<\_ACEOF
44043#define wxUSE_DC_CACHEING 1
44044_ACEOF
44045
44046fi
44047
a848cd7e
SC
44048if test "$wxUSE_DRAGIMAGE" = "yes"; then
44049 cat >>confdefs.h <<\_ACEOF
44050#define wxUSE_DRAGIMAGE 1
44051_ACEOF
44052
44053 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
44054fi
44055
44056if test "$wxUSE_EXCEPTIONS" = "yes"; then
07bea8f0
VS
44057 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
44058 { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
44059echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
44060 else
44061 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
44062#define wxUSE_EXCEPTIONS 1
44063_ACEOF
44064
07bea8f0
VS
44065 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
44066 fi
a848cd7e
SC
44067fi
44068
44069USE_HTML=0
44070if test "$wxUSE_HTML" = "yes"; then
44071 cat >>confdefs.h <<\_ACEOF
44072#define wxUSE_HTML 1
44073_ACEOF
44074
44075 USE_HTML=1
44076 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
de59c161
RD
44077 if test "$wxUSE_MAC" = 1; then
44078 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
44079 fi
a848cd7e 44080fi
646b6ec1 44081if test "$wxUSE_WEBKIT" = "yes"; then
1e9e8aba 44082 if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
07bea8f0 44083 old_CPPFLAGS="$CPPFLAGS"
c92ad099 44084 CPPFLAGS="-x objective-c++ $CPPFLAGS"
07bea8f0
VS
44085 echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
44086echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6
44087if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
44088 echo $ECHO_N "(cached) $ECHO_C" >&6
44089else
44090 cat >conftest.$ac_ext <<_ACEOF
44091/* confdefs.h. */
44092_ACEOF
44093cat confdefs.h >>conftest.$ac_ext
44094cat >>conftest.$ac_ext <<_ACEOF
44095/* end confdefs.h. */
44096#include <Carbon/Carbon.h>
44097
44098#include <WebKit/HIWebView.h>
44099_ACEOF
44100rm -f conftest.$ac_objext
44101if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44102 (eval $ac_compile) 2>conftest.er1
44103 ac_status=$?
44104 grep -v '^ *+' conftest.er1 >conftest.err
44105 rm -f conftest.er1
44106 cat conftest.err >&5
44107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44108 (exit $ac_status); } &&
5d7b7554 44109 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
07bea8f0
VS
44110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44111 (eval $ac_try) 2>&5
44112 ac_status=$?
44113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44114 (exit $ac_status); }; } &&
44115 { ac_try='test -s conftest.$ac_objext'
44116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44117 (eval $ac_try) 2>&5
44118 ac_status=$?
44119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44120 (exit $ac_status); }; }; then
44121 ac_cv_header_WebKit_HIWebView_h=yes
44122else
44123 echo "$as_me: failed program was:" >&5
44124sed 's/^/| /' conftest.$ac_ext >&5
44125
44126ac_cv_header_WebKit_HIWebView_h=no
44127fi
44128rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44129fi
44130echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
44131echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6
44132if test $ac_cv_header_WebKit_HIWebView_h = yes; then
44133
44134 cat >>confdefs.h <<\_ACEOF
646b6ec1
VS
44135#define wxUSE_WEBKIT 1
44136_ACEOF
44137
07bea8f0
VS
44138 WEBKIT_LINK="-framework WebKit"
44139
44140else
44141
44142 { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
44143echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
44144 wxUSE_WEBKIT=no
44145
646b6ec1
VS
44146fi
44147
07bea8f0
VS
44148
44149 CPPFLAGS="$old_CPPFLAGS"
44150 elif test "$wxUSE_COCOA" = 1; then
44151 cat >>confdefs.h <<\_ACEOF
44152#define wxUSE_WEBKIT 1
44153_ACEOF
44154
44155 else
44156 wxUSE_WEBKIT=no
44157 fi
44158fi
44159
9a8f0513
VS
44160USE_XRC=0
44161if test "$wxUSE_XRC" = "yes"; then
d2ebf0b7
VS
44162 if test "$wxUSE_XML" != "yes"; then
44163 { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
44164echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
44165 wxUSE_XRC=no
44166 else
44167 cat >>confdefs.h <<\_ACEOF
9a8f0513
VS
44168#define wxUSE_XRC 1
44169_ACEOF
44170
d2ebf0b7
VS
44171 USE_XRC=1
44172 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
44173 fi
9a8f0513 44174fi
07bea8f0 44175
a848cd7e
SC
44176if test "$wxUSE_MENUS" = "yes"; then
44177 cat >>confdefs.h <<\_ACEOF
44178#define wxUSE_MENUS 1
44179_ACEOF
44180
44181 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
44182fi
44183
44184if test "$wxUSE_METAFILE" = "yes"; then
44185 cat >>confdefs.h <<\_ACEOF
44186#define wxUSE_METAFILE 1
44187_ACEOF
44188
44189fi
44190
44191if test "$wxUSE_MIMETYPE" = "yes"; then
44192 cat >>confdefs.h <<\_ACEOF
44193#define wxUSE_MIMETYPE 1
44194_ACEOF
44195
44196fi
44197
44198if test "$wxUSE_MINIFRAME" = "yes"; then
44199 cat >>confdefs.h <<\_ACEOF
44200#define wxUSE_MINIFRAME 1
44201_ACEOF
44202
44203 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
44204fi
44205
44206if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
44207 cat >>confdefs.h <<\_ACEOF
44208#define wxUSE_SYSTEM_OPTIONS 1
44209_ACEOF
44210
44211 if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
a49baeab 44212 "$TOOLKIT" = "MOTIF" -o "$TOOLKIT" = "COCOA"; then
a848cd7e
SC
44213 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
44214 fi
44215fi
44216
44217
44218if test "$wxUSE_VALIDATORS" = "yes"; then
44219 cat >>confdefs.h <<\_ACEOF
44220#define wxUSE_VALIDATORS 1
44221_ACEOF
44222
44223 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
44224fi
44225
44226if test "$wxUSE_PALETTE" = "yes" ; then
44227 cat >>confdefs.h <<\_ACEOF
44228#define wxUSE_PALETTE 1
44229_ACEOF
44230
44231fi
44232
44233if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
44234 LIBS=" -lunicows $LIBS"
44235fi
44236
91dea314
MW
44237USE_RICHTEXT=0
44238if test "$wxUSE_RICHTEXT" = "yes"; then
44239 cat >>confdefs.h <<\_ACEOF
44240#define wxUSE_RICHTEXT 1
44241_ACEOF
44242
44243 USE_RICHTEXT=1
44244 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS richtext"
44245fi
44246
a848cd7e
SC
44247
44248if test "$wxUSE_IMAGE" = "yes" ; then
44249 cat >>confdefs.h <<\_ACEOF
44250#define wxUSE_IMAGE 1
44251_ACEOF
44252
44253
44254 if test "$wxUSE_GIF" = "yes" ; then
44255 cat >>confdefs.h <<\_ACEOF
44256#define wxUSE_GIF 1
44257_ACEOF
44258
44259 fi
44260
44261 if test "$wxUSE_PCX" = "yes" ; then
44262 cat >>confdefs.h <<\_ACEOF
44263#define wxUSE_PCX 1
44264_ACEOF
44265
44266 fi
44267
44268 if test "$wxUSE_IFF" = "yes" ; then
44269 cat >>confdefs.h <<\_ACEOF
44270#define wxUSE_IFF 1
44271_ACEOF
44272
44273 fi
44274
44275 if test "$wxUSE_PNM" = "yes" ; then
44276 cat >>confdefs.h <<\_ACEOF
44277#define wxUSE_PNM 1
44278_ACEOF
44279
44280 fi
44281
44282 if test "$wxUSE_XPM" = "yes" ; then
44283 cat >>confdefs.h <<\_ACEOF
44284#define wxUSE_XPM 1
44285_ACEOF
44286
44287 fi
44288
44289 if test "$wxUSE_ICO_CUR" = "yes" ; then
44290 cat >>confdefs.h <<\_ACEOF
44291#define wxUSE_ICO_CUR 1
44292_ACEOF
44293
44294 fi
44295fi
44296
44297
44298if test "$wxUSE_CHOICEDLG" = "yes"; then
44299 cat >>confdefs.h <<\_ACEOF
44300#define wxUSE_CHOICEDLG 1
44301_ACEOF
44302
44303fi
44304
44305if test "$wxUSE_COLOURDLG" = "yes"; then
44306 cat >>confdefs.h <<\_ACEOF
44307#define wxUSE_COLOURDLG 1
44308_ACEOF
44309
44310fi
44311
44312if test "$wxUSE_FILEDLG" = "yes"; then
44313 cat >>confdefs.h <<\_ACEOF
44314#define wxUSE_FILEDLG 1
44315_ACEOF
44316
44317fi
44318
44319if test "$wxUSE_FINDREPLDLG" = "yes"; then
44320 cat >>confdefs.h <<\_ACEOF
44321#define wxUSE_FINDREPLDLG 1
44322_ACEOF
44323
44324fi
44325
44326if test "$wxUSE_FONTDLG" = "yes"; then
44327 cat >>confdefs.h <<\_ACEOF
44328#define wxUSE_FONTDLG 1
44329_ACEOF
44330
44331fi
44332
44333if test "$wxUSE_DIRDLG" = "yes"; then
44334 if test "$wxUSE_TREECTRL" != "yes"; then
44335 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
44336echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
44337 else
44338 cat >>confdefs.h <<\_ACEOF
44339#define wxUSE_DIRDLG 1
44340_ACEOF
44341
44342 fi
44343fi
44344
44345if test "$wxUSE_MSGDLG" = "yes"; then
44346 cat >>confdefs.h <<\_ACEOF
44347#define wxUSE_MSGDLG 1
44348_ACEOF
44349
44350fi
44351
44352if test "$wxUSE_NUMBERDLG" = "yes"; then
44353 cat >>confdefs.h <<\_ACEOF
44354#define wxUSE_NUMBERDLG 1
44355_ACEOF
44356
44357fi
44358
44359if test "$wxUSE_PROGRESSDLG" = "yes"; then
44360 if test "$wxUSE_CONSTRAINTS" != "yes"; then
44361 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
44362echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
44363 else
44364 cat >>confdefs.h <<\_ACEOF
44365#define wxUSE_PROGRESSDLG 1
44366_ACEOF
44367
44368 fi
44369fi
44370
44371if test "$wxUSE_SPLASH" = "yes"; then
44372 cat >>confdefs.h <<\_ACEOF
44373#define wxUSE_SPLASH 1
44374_ACEOF
44375
2057db16 44376 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
a848cd7e
SC
44377fi
44378
44379if test "$wxUSE_STARTUP_TIPS" = "yes"; then
44380 if test "$wxUSE_CONSTRAINTS" != "yes"; then
44381 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
44382echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
44383 else
44384 cat >>confdefs.h <<\_ACEOF
44385#define wxUSE_STARTUP_TIPS 1
44386_ACEOF
44387
44388 fi
44389fi
44390
44391if test "$wxUSE_TEXTDLG" = "yes"; then
44392 cat >>confdefs.h <<\_ACEOF
44393#define wxUSE_TEXTDLG 1
44394_ACEOF
44395
44396fi
44397
44398if test "$wxUSE_WIZARDDLG" = "yes"; then
44399 cat >>confdefs.h <<\_ACEOF
44400#define wxUSE_WIZARDDLG 1
44401_ACEOF
44402
44403 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
44404fi
44405
44406
f10e38c4
VZ
44407USE_MEDIA=0
44408
ce756cb0 44409if test "$wxUSE_MEDIACTRL" = "yes"; then
ce756cb0
RN
44410 if test "$wxUSE_GTK" = 1; then
44411 wxUSE_GSTREAMER="yes"
44412
f10e38c4
VZ
44413 GST_VERSION_MAJOR=0
44414 GST_VERSION_MINOR=10
44415 GST_VERSION_RELEASE=0
44416 GSTREAMER_REQ=$GST_VERSION_MAJOR.$GST_VERSION_MINOR.$GST_VERSION_RELEASE
44417 GST_MAJORMINOR=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
44418
44419 if test "$wxUSE_GSTREAMER8" = "no"; then
ce756cb0 44420
dae87f93 44421 succeeded=no
ce756cb0 44422
dae87f93
RN
44423 if test -z "$PKG_CONFIG"; then
44424 # Extract the first word of "pkg-config", so it can be a program name with args.
44425set dummy pkg-config; ac_word=$2
44426echo "$as_me:$LINENO: checking for $ac_word" >&5
44427echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
44428if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
44429 echo $ECHO_N "(cached) $ECHO_C" >&6
44430else
44431 case $PKG_CONFIG in
44432 [\\/]* | ?:[\\/]*)
44433 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
44434 ;;
44435 *)
44436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44437for as_dir in $PATH
44438do
44439 IFS=$as_save_IFS
44440 test -z "$as_dir" && as_dir=.
44441 for ac_exec_ext in '' $ac_executable_extensions; do
44442 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
44443 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
44444 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44445 break 2
44446 fi
44447done
44448done
44449
44450 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
44451 ;;
44452esac
44453fi
44454PKG_CONFIG=$ac_cv_path_PKG_CONFIG
44455
44456if test -n "$PKG_CONFIG"; then
44457 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
44458echo "${ECHO_T}$PKG_CONFIG" >&6
44459else
44460 echo "$as_me:$LINENO: result: no" >&5
44461echo "${ECHO_T}no" >&6
44462fi
44463
44464 fi
44465
44466 if test "$PKG_CONFIG" = "no" ; then
44467 echo "*** The pkg-config script could not be found. Make sure it is"
44468 echo "*** in your path, or set the PKG_CONFIG environment variable"
44469 echo "*** to the full path to pkg-config."
44470 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
44471 else
44472 PKG_CONFIG_MIN_VERSION=0.9.0
44473 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
f10e38c4
VZ
44474 echo "$as_me:$LINENO: checking for gstreamer-$GST_MAJORMINOR
44475 gstreamer-plugins-base-$GST_MAJORMINOR
44476 gconf-2.0" >&5
44477echo $ECHO_N "checking for gstreamer-$GST_MAJORMINOR
44478 gstreamer-plugins-base-$GST_MAJORMINOR
44479 gconf-2.0... $ECHO_C" >&6
44480
44481 if $PKG_CONFIG --exists "gstreamer-$GST_MAJORMINOR
44482 gstreamer-plugins-base-$GST_MAJORMINOR
44483 gconf-2.0" ; then
dae87f93 44484 echo "$as_me:$LINENO: result: yes" >&5
ce756cb0 44485echo "${ECHO_T}yes" >&6
dae87f93 44486 succeeded=yes
ce756cb0 44487
f10e38c4
VZ
44488 echo "$as_me:$LINENO: checking GST_CFLAGS" >&5
44489echo $ECHO_N "checking GST_CFLAGS... $ECHO_C" >&6
44490 GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_MAJORMINOR
44491 gstreamer-plugins-base-$GST_MAJORMINOR
44492 gconf-2.0"`
44493 echo "$as_me:$LINENO: result: $GST_CFLAGS" >&5
44494echo "${ECHO_T}$GST_CFLAGS" >&6
44495
44496 echo "$as_me:$LINENO: checking GST_LIBS" >&5
44497echo $ECHO_N "checking GST_LIBS... $ECHO_C" >&6
44498 GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_MAJORMINOR
44499 gstreamer-plugins-base-$GST_MAJORMINOR
44500 gconf-2.0"`
44501 echo "$as_me:$LINENO: result: $GST_LIBS" >&5
44502echo "${ECHO_T}$GST_LIBS" >&6
dae87f93 44503 else
f10e38c4
VZ
44504 GST_CFLAGS=""
44505 GST_LIBS=""
dae87f93
RN
44506 ## If we have a custom action on failure, don't print errors, but
44507 ## do set a variable so people can do so.
f10e38c4
VZ
44508 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_MAJORMINOR
44509 gstreamer-plugins-base-$GST_MAJORMINOR
44510 gconf-2.0"`
ce756cb0 44511
dae87f93
RN
44512 fi
44513
44514
44515
44516 else
44517 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
44518 echo "*** See http://www.freedesktop.org/software/pkgconfig"
44519 fi
44520 fi
44521
44522 if test $succeeded = yes; then
44523
f10e38c4
VZ
44524 CPPFLAGS="$GST_CFLAGS $CPPFLAGS"
44525 LIBS="$LIBS $GST_LIBS -lgstinterfaces-$GST_MAJORMINOR"
ce756cb0 44526
ce756cb0 44527 else
dae87f93 44528
f10e38c4 44529 GST_VERSION_MINOR=8
dae87f93
RN
44530
44531 fi
44532
f10e38c4
VZ
44533 else
44534 GST_VERSION_MINOR=8
44535 fi
dae87f93 44536
f10e38c4
VZ
44537 GSTREAMER_REQ=$GST_VERSION_MAJOR.$GST_VERSION_MINOR.$GST_VERSION_RELEASE
44538 GST_MAJORMINOR=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
dae87f93 44539
f10e38c4 44540 if test x$GST_VERSION_MINOR = x8; then
dae87f93 44541
f10e38c4 44542 succeeded=no
dae87f93 44543
f10e38c4
VZ
44544 if test -z "$PKG_CONFIG"; then
44545 # Extract the first word of "pkg-config", so it can be a program name with args.
44546set dummy pkg-config; ac_word=$2
dae87f93
RN
44547echo "$as_me:$LINENO: checking for $ac_word" >&5
44548echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
f10e38c4 44549if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
dae87f93
RN
44550 echo $ECHO_N "(cached) $ECHO_C" >&6
44551else
f10e38c4
VZ
44552 case $PKG_CONFIG in
44553 [\\/]* | ?:[\\/]*)
44554 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
44555 ;;
44556 *)
44557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
dae87f93
RN
44558for as_dir in $PATH
44559do
44560 IFS=$as_save_IFS
44561 test -z "$as_dir" && as_dir=.
44562 for ac_exec_ext in '' $ac_executable_extensions; do
44563 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
f10e38c4 44564 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
dae87f93
RN
44565 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44566 break 2
ce756cb0 44567 fi
dae87f93
RN
44568done
44569done
44570
f10e38c4
VZ
44571 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
44572 ;;
44573esac
dae87f93 44574fi
f10e38c4
VZ
44575PKG_CONFIG=$ac_cv_path_PKG_CONFIG
44576
44577if test -n "$PKG_CONFIG"; then
44578 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
44579echo "${ECHO_T}$PKG_CONFIG" >&6
dae87f93
RN
44580else
44581 echo "$as_me:$LINENO: result: no" >&5
44582echo "${ECHO_T}no" >&6
44583fi
44584
f10e38c4 44585 fi
ce756cb0 44586
f10e38c4
VZ
44587 if test "$PKG_CONFIG" = "no" ; then
44588 echo "*** The pkg-config script could not be found. Make sure it is"
44589 echo "*** in your path, or set the PKG_CONFIG environment variable"
44590 echo "*** to the full path to pkg-config."
44591 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
44592 else
44593 PKG_CONFIG_MIN_VERSION=0.9.0
44594 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
44595 echo "$as_me:$LINENO: checking for gstreamer-$GST_MAJORMINOR
44596 gstreamer-interfaces-$GST_MAJORMINOR
44597 gstreamer-gconf-$GST_MAJORMINOR" >&5
44598echo $ECHO_N "checking for gstreamer-$GST_MAJORMINOR
44599 gstreamer-interfaces-$GST_MAJORMINOR
44600 gstreamer-gconf-$GST_MAJORMINOR... $ECHO_C" >&6
44601
44602 if $PKG_CONFIG --exists "gstreamer-$GST_MAJORMINOR
44603 gstreamer-interfaces-$GST_MAJORMINOR
44604 gstreamer-gconf-$GST_MAJORMINOR" ; then
44605 echo "$as_me:$LINENO: result: yes" >&5
44606echo "${ECHO_T}yes" >&6
44607 succeeded=yes
dae87f93 44608
f10e38c4
VZ
44609 echo "$as_me:$LINENO: checking GST_CFLAGS" >&5
44610echo $ECHO_N "checking GST_CFLAGS... $ECHO_C" >&6
44611 GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_MAJORMINOR
44612 gstreamer-interfaces-$GST_MAJORMINOR
44613 gstreamer-gconf-$GST_MAJORMINOR"`
44614 echo "$as_me:$LINENO: result: $GST_CFLAGS" >&5
44615echo "${ECHO_T}$GST_CFLAGS" >&6
44616
44617 echo "$as_me:$LINENO: checking GST_LIBS" >&5
44618echo $ECHO_N "checking GST_LIBS... $ECHO_C" >&6
44619 GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_MAJORMINOR
44620 gstreamer-interfaces-$GST_MAJORMINOR
44621 gstreamer-gconf-$GST_MAJORMINOR"`
44622 echo "$as_me:$LINENO: result: $GST_LIBS" >&5
44623echo "${ECHO_T}$GST_LIBS" >&6
44624 else
44625 GST_CFLAGS=""
44626 GST_LIBS=""
44627 ## If we have a custom action on failure, don't print errors, but
44628 ## do set a variable so people can do so.
44629 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_MAJORMINOR
44630 gstreamer-interfaces-$GST_MAJORMINOR
44631 gstreamer-gconf-$GST_MAJORMINOR"`
dae87f93 44632
dae87f93
RN
44633 fi
44634
44635
ce756cb0 44636
f10e38c4
VZ
44637 else
44638 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
44639 echo "*** See http://www.freedesktop.org/software/pkgconfig"
44640 fi
44641 fi
ce756cb0 44642
f10e38c4 44643 if test $succeeded = yes; then
dae87f93 44644
f10e38c4
VZ
44645 CPPFLAGS="$GST_CFLAGS $CPPFLAGS"
44646 LIBS="$LIBS $GST_LIBS"
dae87f93 44647
f10e38c4 44648 else
ce756cb0 44649
f10e38c4
VZ
44650 { echo "$as_me:$LINENO: WARNING: Proper GStreamer .8/.10 installation not found" >&5
44651echo "$as_me: WARNING: Proper GStreamer .8/.10 installation not found" >&2;}
44652 wxUSE_GSTREAMER="no"
ce756cb0 44653
f10e38c4 44654 fi
ce756cb0 44655
dae87f93 44656 fi
ce756cb0 44657
f10e38c4 44658
dae87f93
RN
44659 if test "$wxUSE_GSTREAMER" = "yes"; then
44660 cat >>confdefs.h <<\_ACEOF
ce756cb0
RN
44661#define wxUSE_GSTREAMER 1
44662_ACEOF
44663
dae87f93
RN
44664 echo "$as_me:$LINENO: result: GStreamer detection successful" >&5
44665echo "${ECHO_T}GStreamer detection successful" >&6
ce756cb0
RN
44666 fi
44667 fi
f10e38c4 44668 USE_MEDIA=1
ce756cb0
RN
44669 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
44670 cat >>confdefs.h <<\_ACEOF
44671#define wxUSE_MEDIACTRL 1
44672_ACEOF
44673
44674fi
44675
44676
a848cd7e
SC
44677if test "$cross_compiling" = "yes"; then
44678 OSINFO="\"$host\""
44679else
44680 OSINFO=`uname -s -r -m`
44681 OSINFO="\"$OSINFO\""
44682fi
44683
44684cat >>confdefs.h <<_ACEOF
44685#define WXWIN_OS_DESCRIPTION $OSINFO
44686_ACEOF
44687
44688
44689
44690if test "x$prefix" != "xNONE"; then
44691 wxPREFIX=$prefix
44692else
44693 wxPREFIX=$ac_default_prefix
44694fi
44695
44696cat >>confdefs.h <<_ACEOF
44697#define wxINSTALL_PREFIX "$wxPREFIX"
44698_ACEOF
44699
44700
a848cd7e
SC
44701
44702
44703CORE_BASE_LIBS="net base"
44704CORE_GUI_LIBS="adv core"
44705
44706if test "$wxUSE_XML" = "yes" ; then
44707 CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
44708fi
44709if test "$wxUSE_ODBC" != "no" ; then
44710 CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
44711 CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
44712fi
44713if test "$wxUSE_HTML" = "yes" ; then
44714 CORE_GUI_LIBS="html $CORE_GUI_LIBS"
44715fi
61639efb
VZ
44716if test "$wxUSE_DEBUGREPORT" = "yes" ; then
44717 CORE_GUI_LIBS="qa $CORE_GUI_LIBS"
44718fi
9a8f0513
VS
44719if test "$wxUSE_XRC" = "yes" ; then
44720 CORE_GUI_LIBS="xrc $CORE_GUI_LIBS"
44721fi
a848cd7e
SC
44722
44723if test "$wxUSE_GUI" != "yes"; then
44724 CORE_GUI_LIBS=""
44725fi
44726
44727
44728
44729
44730
5d7b7554
VZ
44731ac_ext=c
44732ac_cpp='$CPP $CPPFLAGS'
44733ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44734ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44735ac_compiler_gnu=$ac_cv_c_compiler_gnu
44736
a848cd7e
SC
44737
44738
a848cd7e 44739if test "$wxUSE_MAC" = 1 ; then
a98bf0c0 44740 if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then
1e9e8aba
DE
44741 if test "$USE_DARWIN" = 1; then
44742 LDFLAGS="$LDFLAGS -framework QuickTime"
44743 else
44744 LDFLAGS="$LDFLAGS -lQuickTimeLib"
44745 fi
07bea8f0 44746 fi
5dcf30a0 44747 if test "$USE_DARWIN" = 1; then
1e9e8aba
DE
44748 LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System"
44749 else
44750 LDFLAGS="$LDFLAGS -lCarbonLib"
5dcf30a0 44751 fi
a848cd7e
SC
44752fi
44753if test "$wxUSE_COCOA" = 1 ; then
4cb1d3da 44754 LDFLAGS="$LDFLAGS -framework IOKit -framework Cocoa"
4fc81cbc
RN
44755 if test "$wxUSE_MEDIACTRL" = "yes"; then
44756 LDFLAGS="$LDFLAGS -framework QuickTime"
44757 fi
a848cd7e 44758fi
19b27e78
MW
44759if test "$USE_DARWIN" = 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1 ; then
44760 LDFLAGS="$LDFLAGS -framework IOKit -framework CoreServices -framework System -framework ApplicationServices"
44761fi
a848cd7e 44762
a848cd7e
SC
44763LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
44764
a848cd7e
SC
44765if test "$wxUSE_GUI" = "yes"; then
44766
44767
8bce5cda
MW
44768 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \
44769 dynamic erase event exec font image minimal mobile \
44770 mobile/wxedit mobile/styles propsize render \
9e39d889 44771 rotate shaped vscroll widgets"
a848cd7e
SC
44772
44773 if test "$wxUSE_MONOLITHIC" != "yes"; then
44774 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
44775 fi
0b78747f 44776 if test "$TOOLKIT" = "MSW"; then
8bce5cda
MW
44777 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest"
44778 if test "$wxUSE_UNIVERSAL" != "yes"; then
44779 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg"
44780 fi
44781 fi
44782 if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then
44783 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw"
0b78747f 44784 fi
a848cd7e
SC
44785else
44786 SAMPLES_SUBDIRS="console"
44787fi
44788
44789
48f625bc 44790if test "x$INTELCC" = "xyes" ; then
17a1ebd1
VZ
44791 CWARNINGS="-Wall -wd810,869,981,1418,1572,1684"
44792elif test "$GCC" = yes ; then
44793 CWARNINGS="-Wall -Wundef"
44794fi
44795
48f625bc 44796if test "x$INTELCXX" = "xyes" ; then
7f47faf4 44797 CXXWARNINGS="-Wall -wd279,383,444,810,869,981,1418,1419"
17a1ebd1
VZ
44798elif test "$GXX" = yes ; then
44799 CXXWARNINGS="-Wall -Wundef -Wno-ctor-dtor-privacy"
6ebeb4c7 44800fi
a848cd7e 44801
a848cd7e 44802
5ff751d6
VZ
44803WXCONFIG_CFLAGS=`echo $WXCONFIG_CFLAGS`
44804WXCONFIG_CXXFLAGS=`echo $WXCONFIG_CFLAGS $WXCONFIG_CXXFLAGS`
44805
44806
c92ad099 44807CPPFLAGS=`echo $WXCONFIG_CPPFLAGS \
bc6ee4ae 44808 -I\\${top_builddir}lib/wx/include/${TOOLCHAIN_FULLNAME} \
c92ad099
VZ
44809 -I\\${top_srcdir}/include $TOOLKIT_INCLUDE \
44810 $CPPFLAGS `
5ff751d6 44811
8aeeb05c 44812C_AND_CXX_FLAGS="$DEBUG_CFLAGS $PROFILE_FLAGS $OPTIMISE_CFLAGS"
c92ad099 44813CFLAGS=`echo $WXCONFIG_CFLAGS $CWARNINGS $C_AND_CXX_FLAGS $CFLAGS `
9cbac6d1 44814CXXFLAGS=`echo $WXCONFIG_CXXFLAGS $CXXWARNINGS $C_AND_CXX_FLAGS $CXXFLAGS `
5ff751d6
VZ
44815
44816WXCONFIG_CPPFLAGS=`echo $WXCONFIG_CPPFLAGS $WXCONFIG_ONLY_CPPFLAGS`
44817
a848cd7e 44818
95986553
DE
44819if test "x$MWCC" = "xyes"; then
44820
44821 CC="$CC -cwd source -I-"
44822 CXX="$CXX -cwd source -I-"
44823fi
44824
a848cd7e 44825
0c3c69fc 44826LIBS=`echo $LIBS`
a848cd7e
SC
44827EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
44828EXTRALIBS_XML="$EXPAT_LINK"
44829EXTRALIBS_HTML="$MSPACK_LINK"
44830EXTRALIBS_ODBC="$ODBC_LINK"
44831if test "$wxUSE_GUI" = "yes"; then
2b850ae1 44832 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_HILDON $EXTRALIBS_GNOMEVFS $EXTRALIBS_GNOMEPRINT`
a848cd7e
SC
44833fi
44834if test "$wxUSE_OPENGL" = "yes"; then
44835 EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
44836fi
44837
8aeeb05c 44838LDFLAGS="$LDFLAGS $PROFILE_FLAGS"
a848cd7e 44839
5ff751d6 44840WXCONFIG_LIBS="$LIBS"
a848cd7e
SC
44841
44842if test "$wxUSE_REGEX" = "builtin" ; then
74802184 44843 wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty"
a848cd7e
SC
44844fi
44845if test "$wxUSE_EXPAT" = "builtin" ; then
74802184 44846 wxconfig_3rdparty="expat $wxconfig_3rdparty"
a848cd7e
SC
44847fi
44848if test "$wxUSE_ODBC" = "builtin" ; then
74802184 44849 wxconfig_3rdparty="odbc $wxconfig_3rdparty"
a848cd7e
SC
44850fi
44851if test "$wxUSE_LIBTIFF" = "builtin" ; then
74802184 44852 wxconfig_3rdparty="tiff $wxconfig_3rdparty"
a848cd7e
SC
44853fi
44854if test "$wxUSE_LIBJPEG" = "builtin" ; then
74802184 44855 wxconfig_3rdparty="jpeg $wxconfig_3rdparty"
a848cd7e
SC
44856fi
44857if test "$wxUSE_LIBPNG" = "builtin" ; then
74802184 44858 wxconfig_3rdparty="png $wxconfig_3rdparty"
a848cd7e
SC
44859fi
44860if test "$wxUSE_ZLIB" = "builtin" ; then
74802184 44861 wxconfig_3rdparty="zlib $wxconfig_3rdparty"
a848cd7e
SC
44862fi
44863
44864for i in $wxconfig_3rdparty ; do
5ff751d6 44865 WXCONFIG_LIBS="-lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_LIBS"
a848cd7e
SC
44866done
44867
44868
44869if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
44870 WXUNIV=1
44871else
44872 WXUNIV=0
44873fi
44874
44875
44876
44877
44878
44879
44880
44881
44882
44883if test $wxUSE_MONOLITHIC = "yes" ; then
44884 MONOLITHIC=1
44885else
44886 MONOLITHIC=0
44887fi
44888
44889if test $wxUSE_PLUGINS = "yes" ; then
44890 USE_PLUGINS=1
44891else
44892 USE_PLUGINS=0
44893fi
44894
44895if test $wxUSE_ODBC != "no" ; then
44896 USE_ODBC=1
44897else
44898 USE_ODBC=0
44899fi
44900
16358932
VZ
44901if test "$wxUSE_DEBUGREPORT" = "yes" ; then
44902 USE_QA=1
44903else
44904 USE_QA=0
44905fi
44906
a848cd7e
SC
44907if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
44908 OFFICIAL_BUILD=1
44909else
44910 OFFICIAL_BUILD=0
44911fi
44912
44913
44914
44915
44916
44917
44918
44919
44920
44921
44922
44923
44924
44925
44926
44927
44928
44929
44930
ceec2216 44931
d1c38808 44932
3565d135 44933
2b850ae1 44934
a848cd7e
SC
44935
44936
44937TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
44938
44939
44940
44941
44942
44943
44944
44945
4d4ff94c
VZ
44946case "$TOOLKIT" in
44947 GTK)
44948 TOOLKIT_USER="GTK+"
44949 if test "$WXGTK20" = 1; then
44950 TOOLKIT_USER="$TOOLKIT_USER 2"
44951 fi
9a8f0513 44952 ;;
4d4ff94c
VZ
44953
44954 *)
44955 TOOLKIT_USER=$TOOLKIT_LOWERCASE
9a8f0513 44956 ;;
4d4ff94c 44957esac
a848cd7e 44958
fb00f58d
JS
44959if test "$wxUSE_WINE" = "yes"; then
44960 BAKEFILE_FORCE_PLATFORM=win32
44961fi
44962
7afc46ab
KO
44963if test "$wxUSE_MAC" = 1 ; then
44964 if test "$wxUSE_UNIVERSAL_BINARY" = "yes" ; then
44965 CXXFLAGS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch ppc -arch i386 $CXXFLAGS"
44966 CFLAGS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch ppc -arch i386 $CFLAGS"
44967 LDFLAGS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch ppc -arch i386 $LDFLAGS"
44968 bk_use_pch=no
44969 fi
44970 # TODO: where do we add "-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk" for libtool (static builds only)?
44971 # The makefile currently uses AR and RANLIB, which libtool apparently supercedes.
44972 # TODO: how can we avoid a hardwired reference to the SDK, above? (Someone used -lSystemStubs to avoid it)
44973fi
44974
9a8f0513 44975
1e9e8aba
DE
44976
44977
a848cd7e 44978 if test "x$BAKEFILE_HOST" = "x"; then
f10e38c4
VZ
44979 if test "x${host}" = "x" ; then
44980 { { echo "$as_me:$LINENO: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&5
44981echo "$as_me: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&2;}
44982 { (exit 1); exit 1; }; }
44983 fi
44984
a848cd7e
SC
44985 BAKEFILE_HOST="${host}"
44986 fi
44987
44988 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
44989
44990 if test -n "$ac_tool_prefix"; then
44991 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
44992set dummy ${ac_tool_prefix}ranlib; ac_word=$2
44993echo "$as_me:$LINENO: checking for $ac_word" >&5
44994echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
44995if test "${ac_cv_prog_RANLIB+set}" = set; then
44996 echo $ECHO_N "(cached) $ECHO_C" >&6
44997else
44998 if test -n "$RANLIB"; then
44999 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
45000else
45001as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45002for as_dir in $PATH
45003do
45004 IFS=$as_save_IFS
45005 test -z "$as_dir" && as_dir=.
45006 for ac_exec_ext in '' $ac_executable_extensions; do
45007 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45008 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
45009 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45010 break 2
45011 fi
45012done
45013done
45014
45015fi
45016fi
45017RANLIB=$ac_cv_prog_RANLIB
45018if test -n "$RANLIB"; then
45019 echo "$as_me:$LINENO: result: $RANLIB" >&5
45020echo "${ECHO_T}$RANLIB" >&6
45021else
45022 echo "$as_me:$LINENO: result: no" >&5
45023echo "${ECHO_T}no" >&6
45024fi
45025
45026fi
45027if test -z "$ac_cv_prog_RANLIB"; then
45028 ac_ct_RANLIB=$RANLIB
45029 # Extract the first word of "ranlib", so it can be a program name with args.
45030set dummy ranlib; ac_word=$2
45031echo "$as_me:$LINENO: checking for $ac_word" >&5
45032echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45033if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
45034 echo $ECHO_N "(cached) $ECHO_C" >&6
45035else
45036 if test -n "$ac_ct_RANLIB"; then
45037 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
45038else
45039as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45040for as_dir in $PATH
45041do
45042 IFS=$as_save_IFS
45043 test -z "$as_dir" && as_dir=.
45044 for ac_exec_ext in '' $ac_executable_extensions; do
45045 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45046 ac_cv_prog_ac_ct_RANLIB="ranlib"
45047 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45048 break 2
45049 fi
45050done
45051done
45052
45053 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
45054fi
45055fi
45056ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
45057if test -n "$ac_ct_RANLIB"; then
45058 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
45059echo "${ECHO_T}$ac_ct_RANLIB" >&6
45060else
45061 echo "$as_me:$LINENO: result: no" >&5
45062echo "${ECHO_T}no" >&6
45063fi
45064
45065 RANLIB=$ac_ct_RANLIB
45066else
45067 RANLIB="$ac_cv_prog_RANLIB"
45068fi
45069
45070 # Find a good install program. We prefer a C program (faster),
45071# so one script is as good as another. But avoid the broken or
45072# incompatible versions:
45073# SysV /etc/install, /usr/sbin/install
45074# SunOS /usr/etc/install
45075# IRIX /sbin/install
45076# AIX /bin/install
45077# AmigaOS /C/install, which installs bootblocks on floppy discs
45078# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
45079# AFS /usr/afsws/bin/install, which mishandles nonexistent args
45080# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 45081# OS/2's system install, which has a completely different semantic
a848cd7e
SC
45082# ./install, which can be erroneously created by make from ./install.sh.
45083echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
45084echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
45085if test -z "$INSTALL"; then
45086if test "${ac_cv_path_install+set}" = set; then
45087 echo $ECHO_N "(cached) $ECHO_C" >&6
45088else
45089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45090for as_dir in $PATH
45091do
45092 IFS=$as_save_IFS
45093 test -z "$as_dir" && as_dir=.
45094 # Account for people who put trailing slashes in PATH elements.
45095case $as_dir/ in
45096 ./ | .// | /cC/* | \
45097 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 45098 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
45099 /usr/ucb/* ) ;;
45100 *)
45101 # OSF1 and SCO ODT 3.0 have their own names for install.
45102 # Don't use installbsd from OSF since it installs stuff as root
45103 # by default.
45104 for ac_prog in ginstall scoinst install; do
45105 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
45106 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
45107 if test $ac_prog = install &&
45108 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
45109 # AIX install. It has an incompatible calling convention.
45110 :
45111 elif test $ac_prog = install &&
45112 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
45113 # program-specific install script used by HP pwplus--don't use.
45114 :
45115 else
45116 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
45117 break 3
45118 fi
45119 fi
a848cd7e
SC
45120 done
45121 done
45122 ;;
45123esac
45124done
45125
45126
45127fi
45128 if test "${ac_cv_path_install+set}" = set; then
45129 INSTALL=$ac_cv_path_install
45130 else
45131 # As a last resort, use the slow shell script. We don't cache a
45132 # path for INSTALL within a source directory, because that will
45133 # break other packages using the cache if that directory is
45134 # removed, or if the path is relative.
45135 INSTALL=$ac_install_sh
45136 fi
45137fi
45138echo "$as_me:$LINENO: result: $INSTALL" >&5
45139echo "${ECHO_T}$INSTALL" >&6
45140
45141# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
45142# It thinks the first close brace ends the variable substitution.
45143test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
45144
45145test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
45146
45147test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
45148
45149 echo "$as_me:$LINENO: checking whether ln -s works" >&5
45150echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
45151LN_S=$as_ln_s
45152if test "$LN_S" = "ln -s"; then
45153 echo "$as_me:$LINENO: result: yes" >&5
45154echo "${ECHO_T}yes" >&6
45155else
45156 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
45157echo "${ECHO_T}no, using $LN_S" >&6
45158fi
45159
45160
45161 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
45162echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 45163set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
45164if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
45165 echo $ECHO_N "(cached) $ECHO_C" >&6
45166else
45167 cat >conftest.make <<\_ACEOF
45168all:
45169 @echo 'ac_maketemp="$(MAKE)"'
45170_ACEOF
45171# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
45172eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
45173if test -n "$ac_maketemp"; then
45174 eval ac_cv_prog_make_${ac_make}_set=yes
45175else
45176 eval ac_cv_prog_make_${ac_make}_set=no
45177fi
45178rm -f conftest.make
45179fi
45180if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
45181 echo "$as_me:$LINENO: result: yes" >&5
45182echo "${ECHO_T}yes" >&6
45183 SET_MAKE=
45184else
45185 echo "$as_me:$LINENO: result: no" >&5
45186echo "${ECHO_T}no" >&6
45187 SET_MAKE="MAKE=${MAKE-make}"
45188fi
45189
45190
45191
45192 if test -n "$ac_tool_prefix"; then
45193 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
45194set dummy ${ac_tool_prefix}ar; ac_word=$2
45195echo "$as_me:$LINENO: checking for $ac_word" >&5
45196echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45197if test "${ac_cv_prog_AR+set}" = set; then
45198 echo $ECHO_N "(cached) $ECHO_C" >&6
45199else
45200 if test -n "$AR"; then
45201 ac_cv_prog_AR="$AR" # Let the user override the test.
45202else
45203as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45204for as_dir in $PATH
45205do
45206 IFS=$as_save_IFS
45207 test -z "$as_dir" && as_dir=.
45208 for ac_exec_ext in '' $ac_executable_extensions; do
45209 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45210 ac_cv_prog_AR="${ac_tool_prefix}ar"
45211 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45212 break 2
45213 fi
45214done
45215done
45216
45217fi
45218fi
45219AR=$ac_cv_prog_AR
45220if test -n "$AR"; then
45221 echo "$as_me:$LINENO: result: $AR" >&5
45222echo "${ECHO_T}$AR" >&6
45223else
45224 echo "$as_me:$LINENO: result: no" >&5
45225echo "${ECHO_T}no" >&6
45226fi
45227
45228fi
45229if test -z "$ac_cv_prog_AR"; then
45230 ac_ct_AR=$AR
45231 # Extract the first word of "ar", so it can be a program name with args.
45232set dummy ar; ac_word=$2
45233echo "$as_me:$LINENO: checking for $ac_word" >&5
45234echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45235if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
45236 echo $ECHO_N "(cached) $ECHO_C" >&6
45237else
45238 if test -n "$ac_ct_AR"; then
45239 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
45240else
45241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45242for as_dir in $PATH
45243do
45244 IFS=$as_save_IFS
45245 test -z "$as_dir" && as_dir=.
45246 for ac_exec_ext in '' $ac_executable_extensions; do
45247 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45248 ac_cv_prog_ac_ct_AR="ar"
45249 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45250 break 2
45251 fi
45252done
45253done
45254
45255 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
45256fi
45257fi
45258ac_ct_AR=$ac_cv_prog_ac_ct_AR
45259if test -n "$ac_ct_AR"; then
45260 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
45261echo "${ECHO_T}$ac_ct_AR" >&6
45262else
45263 echo "$as_me:$LINENO: result: no" >&5
45264echo "${ECHO_T}no" >&6
45265fi
45266
45267 AR=$ac_ct_AR
45268else
45269 AR="$ac_cv_prog_AR"
45270fi
45271
45272 if test -n "$ac_tool_prefix"; then
45273 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
45274set dummy ${ac_tool_prefix}strip; ac_word=$2
45275echo "$as_me:$LINENO: checking for $ac_word" >&5
45276echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45277if test "${ac_cv_prog_STRIP+set}" = set; then
45278 echo $ECHO_N "(cached) $ECHO_C" >&6
45279else
45280 if test -n "$STRIP"; then
45281 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
45282else
45283as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45284for as_dir in $PATH
45285do
45286 IFS=$as_save_IFS
45287 test -z "$as_dir" && as_dir=.
45288 for ac_exec_ext in '' $ac_executable_extensions; do
45289 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45290 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
45291 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45292 break 2
45293 fi
45294done
45295done
45296
45297fi
45298fi
45299STRIP=$ac_cv_prog_STRIP
45300if test -n "$STRIP"; then
45301 echo "$as_me:$LINENO: result: $STRIP" >&5
45302echo "${ECHO_T}$STRIP" >&6
45303else
45304 echo "$as_me:$LINENO: result: no" >&5
45305echo "${ECHO_T}no" >&6
45306fi
45307
45308fi
45309if test -z "$ac_cv_prog_STRIP"; then
45310 ac_ct_STRIP=$STRIP
45311 # Extract the first word of "strip", so it can be a program name with args.
45312set dummy strip; ac_word=$2
45313echo "$as_me:$LINENO: checking for $ac_word" >&5
45314echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45315if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
45316 echo $ECHO_N "(cached) $ECHO_C" >&6
45317else
45318 if test -n "$ac_ct_STRIP"; then
45319 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
45320else
45321as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45322for as_dir in $PATH
45323do
45324 IFS=$as_save_IFS
45325 test -z "$as_dir" && as_dir=.
45326 for ac_exec_ext in '' $ac_executable_extensions; do
45327 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45328 ac_cv_prog_ac_ct_STRIP="strip"
45329 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45330 break 2
45331 fi
45332done
45333done
45334
45335 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
45336fi
45337fi
45338ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
45339if test -n "$ac_ct_STRIP"; then
45340 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
45341echo "${ECHO_T}$ac_ct_STRIP" >&6
45342else
45343 echo "$as_me:$LINENO: result: no" >&5
45344echo "${ECHO_T}no" >&6
45345fi
45346
45347 STRIP=$ac_ct_STRIP
45348else
45349 STRIP="$ac_cv_prog_STRIP"
45350fi
45351
45352 if test -n "$ac_tool_prefix"; then
45353 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
45354set dummy ${ac_tool_prefix}nm; ac_word=$2
45355echo "$as_me:$LINENO: checking for $ac_word" >&5
45356echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45357if test "${ac_cv_prog_NM+set}" = set; then
45358 echo $ECHO_N "(cached) $ECHO_C" >&6
45359else
45360 if test -n "$NM"; then
45361 ac_cv_prog_NM="$NM" # Let the user override the test.
45362else
45363as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45364for as_dir in $PATH
45365do
45366 IFS=$as_save_IFS
45367 test -z "$as_dir" && as_dir=.
45368 for ac_exec_ext in '' $ac_executable_extensions; do
45369 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45370 ac_cv_prog_NM="${ac_tool_prefix}nm"
45371 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45372 break 2
45373 fi
45374done
45375done
45376
45377fi
45378fi
45379NM=$ac_cv_prog_NM
45380if test -n "$NM"; then
45381 echo "$as_me:$LINENO: result: $NM" >&5
45382echo "${ECHO_T}$NM" >&6
45383else
45384 echo "$as_me:$LINENO: result: no" >&5
45385echo "${ECHO_T}no" >&6
45386fi
45387
45388fi
45389if test -z "$ac_cv_prog_NM"; then
45390 ac_ct_NM=$NM
45391 # Extract the first word of "nm", so it can be a program name with args.
45392set dummy nm; ac_word=$2
45393echo "$as_me:$LINENO: checking for $ac_word" >&5
45394echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45395if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
45396 echo $ECHO_N "(cached) $ECHO_C" >&6
45397else
45398 if test -n "$ac_ct_NM"; then
45399 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
45400else
45401as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45402for as_dir in $PATH
45403do
45404 IFS=$as_save_IFS
45405 test -z "$as_dir" && as_dir=.
45406 for ac_exec_ext in '' $ac_executable_extensions; do
45407 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45408 ac_cv_prog_ac_ct_NM="nm"
45409 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45410 break 2
45411 fi
45412done
45413done
45414
45415 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
45416fi
45417fi
45418ac_ct_NM=$ac_cv_prog_ac_ct_NM
45419if test -n "$ac_ct_NM"; then
45420 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
45421echo "${ECHO_T}$ac_ct_NM" >&6
45422else
45423 echo "$as_me:$LINENO: result: no" >&5
45424echo "${ECHO_T}no" >&6
45425fi
45426
45427 NM=$ac_ct_NM
45428else
45429 NM="$ac_cv_prog_NM"
45430fi
45431
45432
45433 case ${BAKEFILE_HOST} in
45434 *-hp-hpux* )
1e9e8aba 45435 INSTALL_DIR="mkdir -p"
a848cd7e
SC
45436 ;;
45437 *) INSTALL_DIR="$INSTALL -d"
45438 ;;
45439 esac
45440
45441
45442 LDFLAGS_GUI=
45443 case ${BAKEFILE_HOST} in
45444 *-*-cygwin* | *-*-mingw32* )
45445 LDFLAGS_GUI="-mwindows"
45446 esac
45447
45448
45449 fi
45450
45451 echo "$as_me:$LINENO: checking if make is GNU make" >&5
45452echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
45453if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
45454 echo $ECHO_N "(cached) $ECHO_C" >&6
45455else
45456
45457 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
45458 egrep -s GNU > /dev/null); then
45459 bakefile_cv_prog_makeisgnu="yes"
45460 else
45461 bakefile_cv_prog_makeisgnu="no"
45462 fi
45463
45464fi
45465echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
45466echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
45467
45468 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
45469 IF_GNU_MAKE=""
45470 else
45471 IF_GNU_MAKE="#"
45472 fi
45473
45474
45475
45476 PLATFORM_UNIX=0
45477 PLATFORM_WIN32=0
45478 PLATFORM_MSDOS=0
45479 PLATFORM_MAC=0
1e9e8aba 45480 PLATFORM_MACOS=0
a848cd7e
SC
45481 PLATFORM_MACOSX=0
45482 PLATFORM_OS2=0
1e9e8aba 45483 PLATFORM_BEOS=0
a848cd7e
SC
45484
45485 if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
45486 case "${BAKEFILE_HOST}" in
810b94f0 45487 *-*-mingw32* )
a848cd7e
SC
45488 PLATFORM_WIN32=1
45489 ;;
45490 *-pc-msdosdjgpp )
45491 PLATFORM_MSDOS=1
45492 ;;
45493 *-pc-os2_emx | *-pc-os2-emx )
45494 PLATFORM_OS2=1
45495 ;;
47bd5406 45496 *-*-darwin* )
a848cd7e
SC
45497 PLATFORM_MAC=1
45498 PLATFORM_MACOSX=1
45499 ;;
1e9e8aba
DE
45500 *-*-beos* )
45501 PLATFORM_BEOS=1
45502 ;;
45503 powerpc-apple-macos* )
45504 PLATFORM_MAC=1
45505 PLATFORM_MACOS=1
45506 ;;
a848cd7e
SC
45507 * )
45508 PLATFORM_UNIX=1
45509 ;;
45510 esac
45511 else
45512 case "$BAKEFILE_FORCE_PLATFORM" in
45513 win32 )
45514 PLATFORM_WIN32=1
45515 ;;
45516 msdos )
45517 PLATFORM_MSDOS=1
45518 ;;
45519 os2 )
45520 PLATFORM_OS2=1
45521 ;;
45522 darwin )
45523 PLATFORM_MAC=1
45524 PLATFORM_MACOSX=1
45525 ;;
45526 unix )
45527 PLATFORM_UNIX=1
45528 ;;
1e9e8aba
DE
45529 beos )
45530 PLATFORM_BEOS=1
45531 ;;
a848cd7e
SC
45532 * )
45533 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
45534echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
45535 { (exit 1); exit 1; }; }
45536 ;;
45537 esac
45538 fi
45539
45540
45541
45542
45543
45544
45545
45546
45547
1e9e8aba
DE
45548
45549
a848cd7e
SC
45550 # Check whether --enable-omf or --disable-omf was given.
45551if test "${enable_omf+set}" = set; then
45552 enableval="$enable_omf"
45553 bk_os2_use_omf="$enableval"
45554fi;
45555
45556 case "${BAKEFILE_HOST}" in
45557 *-*-darwin* )
47bd5406
VZ
45558 if test "x$GCC" = "xyes"; then
45559 CFLAGS="$CFLAGS -fno-common"
45560 CXXFLAGS="$CXXFLAGS -fno-common"
45561 fi
45562 if test "x$XLCC" = "xyes"; then
45563 CFLAGS="$CFLAGS -qnocommon"
45564 CXXFLAGS="$CXXFLAGS -qnocommon"
45565 fi
a848cd7e
SC
45566 ;;
45567
45568 *-pc-os2_emx | *-pc-os2-emx )
45569 if test "x$bk_os2_use_omf" = "xyes" ; then
45570 AR=emxomfar
45571 RANLIB=:
45572 LDFLAGS="-Zomf $LDFLAGS"
45573 CFLAGS="-Zomf $CFLAGS"
45574 CXXFLAGS="-Zomf $CXXFLAGS"
45575 OS2_LIBEXT="lib"
45576 else
45577 OS2_LIBEXT="a"
45578 fi
45579 ;;
1e9e8aba
DE
45580
45581 i*86-*-beos* )
45582 LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
45583 ;;
a848cd7e
SC
45584 esac
45585
45586
45587 SO_SUFFIX="so"
45588 SO_SUFFIX_MODULE="so"
45589 EXEEXT=""
45590 LIBPREFIX="lib"
45591 LIBEXT=".a"
45592 DLLPREFIX="lib"
45593 DLLPREFIX_MODULE=""
45594 DLLIMP_SUFFIX=""
810b94f0 45595 dlldir="$libdir"
a848cd7e
SC
45596
45597 case "${BAKEFILE_HOST}" in
45598 *-hp-hpux* )
45599 SO_SUFFIX="sl"
45600 SO_SUFFIX_MODULE="sl"
45601 ;;
45602 *-*-aix* )
45603 SO_SUFFIX="a"
45604 SO_SUFFIX_MODULE="a"
45605 ;;
810b94f0
MW
45606 *-*-cygwin* )
45607 SO_SUFFIX="dll"
45608 SO_SUFFIX_MODULE="dll"
45609 DLLIMP_SUFFIX="dll.a"
45610 EXEEXT=".exe"
45611 DLLPREFIX="cyg"
45612 dlldir="$bindir"
45613 ;;
45614 *-*-mingw32* )
a848cd7e
SC
45615 SO_SUFFIX="dll"
45616 SO_SUFFIX_MODULE="dll"
45617 DLLIMP_SUFFIX="dll.a"
45618 EXEEXT=".exe"
45619 DLLPREFIX=""
810b94f0 45620 dlldir="$bindir"
a848cd7e
SC
45621 ;;
45622 *-pc-msdosdjgpp )
45623 EXEEXT=".exe"
45624 DLLPREFIX=""
810b94f0 45625 dlldir="$bindir"
a848cd7e
SC
45626 ;;
45627 *-pc-os2_emx | *-pc-os2-emx )
45628 SO_SUFFIX="dll"
45629 SO_SUFFIX_MODULE="dll"
45630 DLLIMP_SUFFIX=$OS2_LIBEXT
45631 EXEEXT=".exe"
45632 DLLPREFIX=""
45633 LIBPREFIX=""
45634 LIBEXT=".$OS2_LIBEXT"
810b94f0 45635 dlldir="$bindir"
a848cd7e 45636 ;;
47bd5406 45637 *-*-darwin* )
a848cd7e
SC
45638 SO_SUFFIX="dylib"
45639 SO_SUFFIX_MODULE="bundle"
45640 ;;
45641 esac
45642
45643 if test "x$DLLIMP_SUFFIX" = "x" ; then
45644 DLLIMP_SUFFIX="$SO_SUFFIX"
45645 fi
45646
45647
45648
45649
45650
45651
45652
45653
45654
45655
45656
810b94f0 45657
1e9e8aba
DE
45658 PIC_FLAG=""
45659 if test "x$GCC" = "xyes"; then
a848cd7e
SC
45660 PIC_FLAG="-fPIC"
45661 fi
45662
1e9e8aba
DE
45663 SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
45664 SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
810b94f0 45665 WINDOWS_IMPLIB=0
1e9e8aba 45666
a848cd7e
SC
45667 case "${BAKEFILE_HOST}" in
45668 *-hp-hpux* )
1e9e8aba 45669 if test "x$GCC" != "xyes"; then
a848cd7e
SC
45670 LDFLAGS="$LDFLAGS -L/usr/lib"
45671
45672 SHARED_LD_CC="${CC} -b -o"
45673 SHARED_LD_CXX="${CXX} -b -o"
45674 PIC_FLAG="+Z"
45675 fi
45676 ;;
45677
45678 *-*-linux* )
45679 if test "x$GCC" != "xyes"; then
45680 echo "$as_me:$LINENO: checking for Intel compiler" >&5
45681echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
45682if test "${bakefile_cv_prog_icc+set}" = set; then
45683 echo $ECHO_N "(cached) $ECHO_C" >&6
45684else
45685
45686 cat >conftest.$ac_ext <<_ACEOF
45687/* confdefs.h. */
45688_ACEOF
45689cat confdefs.h >>conftest.$ac_ext
45690cat >>conftest.$ac_ext <<_ACEOF
45691/* end confdefs.h. */
45692
45693int
45694main ()
45695{
45696
45697 #ifndef __INTEL_COMPILER
e5efa97e 45698 This is not ICC
a848cd7e
SC
45699 #endif
45700
45701 ;
45702 return 0;
45703}
45704_ACEOF
45705rm -f conftest.$ac_objext
45706if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 45707 (eval $ac_compile) 2>conftest.er1
a848cd7e 45708 ac_status=$?
ac1cb8d3
VS
45709 grep -v '^ *+' conftest.er1 >conftest.err
45710 rm -f conftest.er1
45711 cat conftest.err >&5
a848cd7e
SC
45712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45713 (exit $ac_status); } &&
5d7b7554 45714 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
45715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45716 (eval $ac_try) 2>&5
45717 ac_status=$?
45718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45719 (exit $ac_status); }; } &&
45720 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
45721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45722 (eval $ac_try) 2>&5
45723 ac_status=$?
45724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45725 (exit $ac_status); }; }; then
45726 bakefile_cv_prog_icc=yes
45727else
45728 echo "$as_me: failed program was:" >&5
45729sed 's/^/| /' conftest.$ac_ext >&5
45730
45731bakefile_cv_prog_icc=no
45732
45733fi
ac1cb8d3 45734rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
45735
45736fi
45737echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
45738echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
45739 if test "$bakefile_cv_prog_icc" = "yes"; then
45740 PIC_FLAG="-KPIC"
45741 fi
45742 fi
45743 ;;
45744
45745 *-*-solaris2* )
45746 if test "x$GCC" != xyes ; then
45747 SHARED_LD_CC="${CC} -G -o"
45748 SHARED_LD_CXX="${CXX} -G -o"
45749 PIC_FLAG="-KPIC"
45750 fi
45751 ;;
45752
45753 *-*-darwin* )
45754
473276a9
VS
45755D='$'
45756cat <<EOF >shared-ld-sh
a848cd7e
SC
45757#!/bin/sh
45758#-----------------------------------------------------------------------------
45759#-- Name: distrib/mac/shared-ld-sh
45760#-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
45761#-- Author: Gilles Depeyrot
45762#-- Copyright: (c) 2002 Gilles Depeyrot
45763#-- Licence: any use permitted
45764#-----------------------------------------------------------------------------
45765
45766verbose=0
45767args=""
45768objects=""
45769linking_flag="-dynamiclib"
810b94f0 45770ldargs="-r -keep_private_externs -nostdlib"
a848cd7e 45771
473276a9
VS
45772while test ${D}# -gt 0; do
45773 case ${D}1 in
a848cd7e
SC
45774
45775 -v)
45776 verbose=1
45777 ;;
45778
45779 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
45780 # collect these options and values
473276a9 45781 args="${D}{args} ${D}1 ${D}2"
a848cd7e
SC
45782 shift
45783 ;;
45784
810b94f0
MW
45785 -s|-Wl,*)
45786 # collect these load args
45787 ldargs="${D}{ldargs} ${D}1"
2113bc77 45788 ;;
810b94f0
MW
45789
45790 -l*|-L*|-flat_namespace|-headerpad_max_install_names)
a848cd7e 45791 # collect these options
473276a9 45792 args="${D}{args} ${D}1"
a848cd7e
SC
45793 ;;
45794
45795 -dynamiclib|-bundle)
473276a9 45796 linking_flag="${D}1"
a848cd7e
SC
45797 ;;
45798
45799 -*)
473276a9 45800 echo "shared-ld: unhandled option '${D}1'"
a848cd7e
SC
45801 exit 1
45802 ;;
45803
45804 *.o | *.a | *.dylib)
45805 # collect object files
473276a9 45806 objects="${D}{objects} ${D}1"
a848cd7e
SC
45807 ;;
45808
45809 *)
473276a9 45810 echo "shared-ld: unhandled argument '${D}1'"
a848cd7e
SC
45811 exit 1
45812 ;;
45813
45814 esac
45815 shift
45816done
45817
810b94f0
MW
45818status=0
45819
a848cd7e
SC
45820#
45821# Link one module containing all the others
45822#
473276a9 45823if test ${D}{verbose} = 1; then
810b94f0 45824 echo "c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o"
a848cd7e 45825fi
810b94f0 45826c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o
473276a9 45827status=${D}?
a848cd7e
SC
45828
45829#
810b94f0
MW
45830# Link the shared library from the single module created, but only if the
45831# previous command didn't fail:
a848cd7e 45832#
810b94f0
MW
45833if test ${D}{status} = 0; then
45834 if test ${D}{verbose} = 1; then
45835 echo "c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
45836 fi
45837 c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}
45838 status=${D}?
a848cd7e
SC
45839fi
45840
45841#
45842# Remove intermediate module
45843#
473276a9 45844rm -f master.${D}${D}.o
a848cd7e 45845
810b94f0 45846exit ${D}status
a848cd7e 45847EOF
473276a9 45848
583d6b4b
VZ
45849 chmod +x shared-ld-sh
45850
45851 SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
45852 SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
45853
45854
45855 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
45856echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
45857if test "${bakefile_cv_gcc31+set}" = set; then
45858 echo $ECHO_N "(cached) $ECHO_C" >&6
45859else
45860
45861 cat >conftest.$ac_ext <<_ACEOF
45862/* confdefs.h. */
45863_ACEOF
45864cat confdefs.h >>conftest.$ac_ext
45865cat >>conftest.$ac_ext <<_ACEOF
45866/* end confdefs.h. */
45867
45868int
45869main ()
45870{
45871
45872 #if (__GNUC__ < 3) || \
45873 ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
e5efa97e 45874 This is old gcc
583d6b4b 45875 #endif
a848cd7e 45876
583d6b4b
VZ
45877 ;
45878 return 0;
45879}
45880_ACEOF
45881rm -f conftest.$ac_objext
45882if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45883 (eval $ac_compile) 2>conftest.er1
45884 ac_status=$?
45885 grep -v '^ *+' conftest.er1 >conftest.err
45886 rm -f conftest.er1
45887 cat conftest.err >&5
45888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45889 (exit $ac_status); } &&
5d7b7554 45890 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
583d6b4b
VZ
45891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45892 (eval $ac_try) 2>&5
45893 ac_status=$?
45894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45895 (exit $ac_status); }; } &&
45896 { ac_try='test -s conftest.$ac_objext'
45897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45898 (eval $ac_try) 2>&5
45899 ac_status=$?
45900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45901 (exit $ac_status); }; }; then
45902
45903 bakefile_cv_gcc31=yes
45904
45905else
45906 echo "$as_me: failed program was:" >&5
45907sed 's/^/| /' conftest.$ac_ext >&5
45908
45909
45910 bakefile_cv_gcc31=no
45911
45912
45913fi
45914rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45915
45916fi
45917echo "$as_me:$LINENO: result: $bakefile_cv_gcc31" >&5
45918echo "${ECHO_T}$bakefile_cv_gcc31" >&6
45919 if test "$bakefile_cv_gcc31" = "no"; then
a848cd7e 45920 SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
a848cd7e 45921 SHARED_LD_CXX="$SHARED_LD_CC"
a848cd7e
SC
45922 else
45923 SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
a848cd7e 45924 SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
a848cd7e
SC
45925 fi
45926
47bd5406
VZ
45927 if test "x$GCC" == "xyes"; then
45928 PIC_FLAG="-dynamic -fPIC"
45929 fi
45930 if test "x$XLCC" = "xyes"; then
45931 PIC_FLAG="-dynamic -DPIC"
45932 fi
a848cd7e
SC
45933 ;;
45934
45935 *-*-aix* )
f6b50c59 45936 if test "x$GCC" = "xyes"; then
583d6b4b 45937 PIC_FLAG=""
f6b50c59 45938
583d6b4b
VZ
45939 case "${BAKEFILE_HOST}" in
45940 *-*-aix5* )
45941 LD_EXPFULL="-Wl,-bexpfull"
45942 ;;
45943 esac
f6b50c59 45944
583d6b4b
VZ
45945 SHARED_LD_CC="\$(CC) -shared $LD_EXPFULL -o"
45946 SHARED_LD_CXX="\$(CXX) -shared $LD_EXPFULL -o"
45947 else
45948 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
a848cd7e
SC
45949set dummy makeC++SharedLib; ac_word=$2
45950echo "$as_me:$LINENO: checking for $ac_word" >&5
45951echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45952if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
45953 echo $ECHO_N "(cached) $ECHO_C" >&6
45954else
45955 if test -n "$AIX_CXX_LD"; then
45956 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
45957else
45958as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45959for as_dir in $PATH
45960do
45961 IFS=$as_save_IFS
45962 test -z "$as_dir" && as_dir=.
45963 for ac_exec_ext in '' $ac_executable_extensions; do
45964 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45965 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
45966 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45967 break 2
45968 fi
45969done
45970done
45971
45972 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
45973fi
45974fi
45975AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
45976if test -n "$AIX_CXX_LD"; then
45977 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
45978echo "${ECHO_T}$AIX_CXX_LD" >&6
45979else
45980 echo "$as_me:$LINENO: result: no" >&5
45981echo "${ECHO_T}no" >&6
45982fi
45983
f6b50c59 45984 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
a848cd7e
SC
45985 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
45986 fi
45987 ;;
45988
45989 *-*-beos* )
1e9e8aba
DE
45990 SHARED_LD_CC="${LD} -nostart -o"
45991 SHARED_LD_CXX="${LD} -nostart -o"
a848cd7e
SC
45992 ;;
45993
45994 *-*-irix* )
45995 if test "x$GCC" != "xyes"; then
45996 PIC_FLAG="-KPIC"
45997 fi
45998 ;;
45999
46000 *-*-cygwin* | *-*-mingw32* )
46001 PIC_FLAG=""
1e9e8aba
DE
46002 SHARED_LD_CC="\$(CC) -shared -o"
46003 SHARED_LD_CXX="\$(CXX) -shared -o"
810b94f0 46004 WINDOWS_IMPLIB=1
a848cd7e
SC
46005 ;;
46006
46007 *-pc-os2_emx | *-pc-os2-emx )
b1d22ded
DE
46008 SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
46009 SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
a848cd7e 46010 PIC_FLAG=""
473276a9
VS
46011
46012D='$'
46013cat <<EOF >dllar.sh
46014#!/bin/sh
46015#
46016# dllar - a tool to build both a .dll and an .a file
46017# from a set of object (.o) files for EMX/OS2.
46018#
46019# Written by Andrew Zabolotny, bit@freya.etu.ru
46020# Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
46021#
46022# This script will accept a set of files on the command line.
46023# All the public symbols from the .o files will be exported into
46024# a .DEF file, then linker will be run (through gcc) against them to
46025# build a shared library consisting of all given .o files. All libraries
46026# (.a) will be first decompressed into component .o files then act as
46027# described above. You can optionally give a description (-d "description")
46028# which will be put into .DLL. To see the list of accepted options (as well
46029# as command-line format) simply run this program without options. The .DLL
46030# is built to be imported by name (there is no guarantee that new versions
46031# of the library you build will have same ordinals for same symbols).
46032#
46033# dllar is free software; you can redistribute it and/or modify
46034# it under the terms of the GNU General Public License as published by
46035# the Free Software Foundation; either version 2, or (at your option)
46036# any later version.
46037#
46038# dllar is distributed in the hope that it will be useful,
46039# but WITHOUT ANY WARRANTY; without even the implied warranty of
46040# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
46041# GNU General Public License for more details.
46042#
46043# You should have received a copy of the GNU General Public License
46044# along with dllar; see the file COPYING. If not, write to the Free
46045# Software Foundation, 59 Temple Place - Suite 330, Boston, MA
46046# 02111-1307, USA.
46047
46048# To successfuly run this program you will need:
46049# - Current drive should have LFN support (HPFS, ext2, network, etc)
46050# (Sometimes dllar generates filenames which won't fit 8.3 scheme)
46051# - gcc
46052# (used to build the .dll)
46053# - emxexp
46054# (used to create .def file from .o files)
46055# - emximp
46056# (used to create .a file from .def file)
46057# - GNU text utilites (cat, sort, uniq)
46058# used to process emxexp output
46059# - GNU file utilities (mv, rm)
46060# - GNU sed
46061# - lxlite (optional, see flag below)
46062# (used for general .dll cleanup)
46063#
46064
46065flag_USE_LXLITE=1;
46066
46067#
46068# helper functions
46069# basnam, variant of basename, which does _not_ remove the path, _iff_
46070# second argument (suffix to remove) is given
46071basnam(){
46072 case ${D}# in
46073 1)
1e9e8aba 46074 echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
473276a9
VS
46075 ;;
46076 2)
46077 echo ${D}1 | sed 's/'${D}2'${D}//'
46078 ;;
46079 *)
46080 echo "error in basnam ${D}*"
46081 exit 8
46082 ;;
46083 esac
46084}
46085
46086# Cleanup temporary files and output
46087CleanUp() {
46088 cd ${D}curDir
46089 for i in ${D}inputFiles ; do
46090 case ${D}i in
46091 *!)
46092 rm -rf \`basnam ${D}i !\`
46093 ;;
46094 *)
46095 ;;
46096 esac
46097 done
46098
46099 # Kill result in case of failure as there is just to many stupid make/nmake
46100 # things out there which doesn't do this.
1e9e8aba 46101 if [ ${D}# -eq 0 ]; then
473276a9
VS
46102 rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
46103 fi
46104}
46105
46106# Print usage and exit script with rc=1.
46107PrintHelp() {
b1d22ded
DE
46108 echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]'
46109 echo ' [-name-mangler-script script.sh]'
46110 echo ' [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]'
46111 echo ' [-ord[inals]] -ex[clude] "symbol(s)"'
46112 echo ' [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]'
1e9e8aba 46113 echo ' [*.o] [*.a]'
473276a9
VS
46114 echo '*> "output_file" should have no extension.'
46115 echo ' If it has the .o, .a or .dll extension, it is automatically removed.'
46116 echo ' The import library name is derived from this and is set to "name".a,'
46117 echo ' unless overridden by -import'
46118 echo '*> "importlib_name" should have no extension.'
46119 echo ' If it has the .o, or .a extension, it is automatically removed.'
46120 echo ' This name is used as the import library name and may be longer and'
46121 echo ' more descriptive than the DLL name which has to follow the old '
46122 echo ' 8.3 convention of FAT.'
b1d22ded
DE
46123 echo '*> "script.sh may be given to override the output_file name by a'
46124 echo ' different name. It is mainly useful if the regular make process'
46125 echo ' of some package does not take into account OS/2 restriction of'
46126 echo ' DLL name lengths. It takes the importlib name as input and is'
46127 echo ' supposed to procude a shorter name as output. The script should'
46128 echo ' expect to get importlib_name without extension and should produce'
46129 echo ' a (max.) 8 letter name without extension.'
473276a9
VS
46130 echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)'
46131 echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
46132 echo ' These flags will be put at the start of GCC command line.'
b1d22ded
DE
46133 echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.'
46134 echo '*> -ex[clude] defines symbols which will not be exported. You can define'
473276a9
VS
46135 echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
46136 echo ' If the last character of a symbol is "*", all symbols beginning'
46137 echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).'
b1d22ded 46138 echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or'
473276a9 46139 echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
b1d22ded 46140 echo '*> -nocrt[dll] switch will disable linking the library against emx''s'
473276a9 46141 echo ' C runtime DLLs.'
b1d22ded 46142 echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.'
473276a9
VS
46143 echo '*> All other switches (for example -L./ or -lmylib) will be passed'
46144 echo ' unchanged to GCC at the end of command line.'
46145 echo '*> If you create a DLL from a library and you do not specify -o,'
46146 echo ' the basename for DLL and import library will be set to library name,'
46147 echo ' the initial library will be renamed to 'name'_s.a (_s for static)'
46148 echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
46149 echo ' library will be renamed into gcc_s.a.'
46150 echo '--------'
46151 echo 'Example:'
46152 echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
46153 echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
46154 CleanUp
46155 exit 1
46156}
46157
46158# Execute a command.
46159# If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
46160# @Uses Whatever CleanUp() uses.
46161doCommand() {
46162 echo "${D}*"
46163 eval ${D}*
46164 rcCmd=${D}?
46165
1e9e8aba 46166 if [ ${D}rcCmd -ne 0 ]; then
473276a9
VS
46167 echo "command failed, exit code="${D}rcCmd
46168 CleanUp
46169 exit ${D}rcCmd
46170 fi
46171}
46172
46173# main routine
46174# setup globals
46175cmdLine=${D}*
46176outFile=""
46177outimpFile=""
46178inputFiles=""
b1d22ded 46179renameScript=""
473276a9
VS
46180description=""
46181CC=gcc.exe
46182CFLAGS="-s -Zcrtdll"
46183EXTRA_CFLAGS=""
46184EXPORT_BY_ORDINALS=0
46185exclude_symbols=""
46186library_flags=""
46187curDir=\`pwd\`
46188curDirS=curDir
46189case ${D}curDirS in
46190*/)
46191 ;;
46192*)
46193 curDirS=${D}{curDirS}"/"
46194 ;;
46195esac
46196# Parse commandline
46197libsToLink=0
b1d22ded 46198omfLinking=0
1e9e8aba 46199while [ ${D}1 ]; do
473276a9
VS
46200 case ${D}1 in
46201 -ord*)
46202 EXPORT_BY_ORDINALS=1;
46203 ;;
46204 -o*)
46205 shift
46206 outFile=${D}1
46207 ;;
46208 -i*)
46209 shift
46210 outimpFile=${D}1
46211 ;;
b1d22ded
DE
46212 -name-mangler-script)
46213 shift
46214 renameScript=${D}1
46215 ;;
473276a9
VS
46216 -d*)
46217 shift
46218 description=${D}1
46219 ;;
46220 -f*)
46221 shift
46222 CFLAGS=${D}1
46223 ;;
46224 -c*)
46225 shift
46226 CC=${D}1
46227 ;;
46228 -h*)
46229 PrintHelp
46230 ;;
46231 -ex*)
46232 shift
46233 exclude_symbols=${D}{exclude_symbols}${D}1" "
46234 ;;
46235 -libf*)
46236 shift
46237 library_flags=${D}{library_flags}${D}1" "
46238 ;;
46239 -nocrt*)
46240 CFLAGS="-s"
46241 ;;
46242 -nolxl*)
46243 flag_USE_LXLITE=0
46244 ;;
46245 -* | /*)
46246 case ${D}1 in
46247 -L* | -l*)
46248 libsToLink=1
46249 ;;
b1d22ded
DE
46250 -Zomf)
46251 omfLinking=1
46252 ;;
473276a9
VS
46253 *)
46254 ;;
46255 esac
46256 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
46257 ;;
b1d22ded
DE
46258 *.dll)
46259 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`"
46260 if [ ${D}omfLinking -eq 1 ]; then
46261 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib"
46262 else
46263 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a"
46264 fi
46265 ;;
473276a9
VS
46266 *)
46267 found=0;
1e9e8aba 46268 if [ ${D}libsToLink -ne 0 ]; then
473276a9
VS
46269 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
46270 else
46271 for file in ${D}1 ; do
1e9e8aba 46272 if [ -f ${D}file ]; then
473276a9
VS
46273 inputFiles="${D}{inputFiles} ${D}file"
46274 found=1
46275 fi
46276 done
1e9e8aba 46277 if [ ${D}found -eq 0 ]; then
473276a9
VS
46278 echo "ERROR: No file(s) found: "${D}1
46279 exit 8
46280 fi
46281 fi
46282 ;;
46283 esac
46284 shift
46285done # iterate cmdline words
46286
46287#
1e9e8aba 46288if [ -z "${D}inputFiles" ]; then
473276a9
VS
46289 echo "dllar: no input files"
46290 PrintHelp
46291fi
46292
46293# Now extract all .o files from .a files
46294newInputFiles=""
46295for file in ${D}inputFiles ; do
46296 case ${D}file in
46297 *.a | *.lib)
46298 case ${D}file in
46299 *.a)
46300 suffix=".a"
46301 AR="ar"
46302 ;;
46303 *.lib)
46304 suffix=".lib"
46305 AR="emxomfar"
46306 EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
46307 ;;
46308 *)
46309 ;;
46310 esac
46311 dirname=\`basnam ${D}file ${D}suffix\`"_%"
46312 mkdir ${D}dirname
1e9e8aba 46313 if [ ${D}? -ne 0 ]; then
473276a9
VS
46314 echo "Failed to create subdirectory ./${D}dirname"
46315 CleanUp
46316 exit 8;
46317 fi
46318 # Append '!' to indicate archive
46319 newInputFiles="${D}newInputFiles ${D}{dirname}!"
46320 doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
46321 cd ${D}curDir
46322 found=0;
46323 for subfile in ${D}dirname/*.o* ; do
1e9e8aba 46324 if [ -f ${D}subfile ]; then
473276a9 46325 found=1
1e9e8aba 46326 if [ -s ${D}subfile ]; then
473276a9
VS
46327 # FIXME: This should be: is file size > 32 byte, _not_ > 0!
46328 newInputFiles="${D}newInputFiles ${D}subfile"
46329 fi
46330 fi
46331 done
1e9e8aba
DE
46332 if [ ${D}found -eq 0 ]; then
46333 echo "WARNING: there are no files in archive \\'${D}file\\'"
473276a9
VS
46334 fi
46335 ;;
46336 *)
46337 newInputFiles="${D}{newInputFiles} ${D}file"
46338 ;;
46339 esac
46340done
46341inputFiles="${D}newInputFiles"
46342
46343# Output filename(s).
46344do_backup=0;
1e9e8aba 46345if [ -z ${D}outFile ]; then
473276a9
VS
46346 do_backup=1;
46347 set outFile ${D}inputFiles; outFile=${D}2
46348fi
46349
46350# If it is an archive, remove the '!' and the '_%' suffixes
46351case ${D}outFile in
46352*_%!)
46353 outFile=\`basnam ${D}outFile _%!\`
46354 ;;
46355*)
46356 ;;
46357esac
46358case ${D}outFile in
46359*.dll)
46360 outFile=\`basnam ${D}outFile .dll\`
46361 ;;
46362*.DLL)
46363 outFile=\`basnam ${D}outFile .DLL\`
46364 ;;
46365*.o)
46366 outFile=\`basnam ${D}outFile .o\`
46367 ;;
46368*.obj)
46369 outFile=\`basnam ${D}outFile .obj\`
46370 ;;
46371*.a)
46372 outFile=\`basnam ${D}outFile .a\`
46373 ;;
46374*.lib)
46375 outFile=\`basnam ${D}outFile .lib\`
46376 ;;
46377*)
46378 ;;
46379esac
46380case ${D}outimpFile in
46381*.a)
46382 outimpFile=\`basnam ${D}outimpFile .a\`
46383 ;;
46384*.lib)
46385 outimpFile=\`basnam ${D}outimpFile .lib\`
46386 ;;
46387*)
46388 ;;
46389esac
1e9e8aba 46390if [ -z ${D}outimpFile ]; then
473276a9
VS
46391 outimpFile=${D}outFile
46392fi
46393defFile="${D}{outFile}.def"
46394arcFile="${D}{outimpFile}.a"
46395arcFile2="${D}{outimpFile}.lib"
b1d22ded
DE
46396
46397#create ${D}dllFile as something matching 8.3 restrictions,
46398if [ -z ${D}renameScript ] ; then
46399 dllFile="${D}outFile"
46400else
46401 dllFile=\`${D}renameScript ${D}outimpFile\`
46402fi
473276a9 46403
1e9e8aba
DE
46404if [ ${D}do_backup -ne 0 ] ; then
46405 if [ -f ${D}arcFile ] ; then
473276a9
VS
46406 doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
46407 fi
1e9e8aba 46408 if [ -f ${D}arcFile2 ] ; then
473276a9
VS
46409 doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
46410 fi
46411fi
46412
46413# Extract public symbols from all the object files.
46414tmpdefFile=${D}{defFile}_%
46415rm -f ${D}tmpdefFile
46416for file in ${D}inputFiles ; do
46417 case ${D}file in
46418 *!)
46419 ;;
46420 *)
46421 doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
46422 ;;
46423 esac
46424done
46425
46426# Create the def file.
46427rm -f ${D}defFile
46428echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
b1d22ded
DE
46429dllFile="${D}{dllFile}.dll"
46430if [ ! -z ${D}description ]; then
1e9e8aba 46431 echo "DESCRIPTION \\"${D}{description}\\"" >> ${D}defFile
473276a9
VS
46432fi
46433echo "EXPORTS" >> ${D}defFile
46434
46435doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
46436grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
46437
46438# Checks if the export is ok or not.
46439for word in ${D}exclude_symbols; do
46440 grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
46441 mv ${D}{tmpdefFile}% ${D}tmpdefFile
46442done
46443
46444
1e9e8aba
DE
46445if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
46446 sed "=" < ${D}tmpdefFile | \\
473276a9
VS
46447 sed '
46448 N
46449 : loop
1e9e8aba 46450 s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
473276a9
VS
46451 t loop
46452 ' > ${D}{tmpdefFile}%
46453 grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
46454else
46455 rm -f ${D}{tmpdefFile}%
46456fi
46457cat ${D}tmpdefFile >> ${D}defFile
46458rm -f ${D}tmpdefFile
46459
46460# Do linking, create implib, and apply lxlite.
46461gccCmdl="";
46462for file in ${D}inputFiles ; do
46463 case ${D}file in
46464 *!)
46465 ;;
46466 *)
46467 gccCmdl="${D}gccCmdl ${D}file"
46468 ;;
46469 esac
46470done
46471doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
46472touch "${D}{outFile}.dll"
46473
46474doCommand "emximp -o ${D}arcFile ${D}defFile"
1e9e8aba 46475if [ ${D}flag_USE_LXLITE -ne 0 ]; then
473276a9 46476 add_flags="";
1e9e8aba 46477 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
473276a9
VS
46478 add_flags="-ynd"
46479 fi
46480 doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
46481fi
46482doCommand "emxomf -s -l ${D}arcFile"
46483
46484# Successful exit.
46485CleanUp 1
46486exit 0
46487EOF
46488
46489 chmod +x dllar.sh
a848cd7e
SC
46490 ;;
46491
1e9e8aba 46492 powerpc-apple-macos* | \
0ad5d837 46493 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | *-*-k*bsd*-gnu | \
a848cd7e
SC
46494 *-*-sunos4* | \
46495 *-*-osf* | \
46496 *-*-dgux5* | \
47a7e797
MW
46497 *-*-sysv5* | \
46498 *-pc-msdosdjgpp )
a848cd7e
SC
46499 ;;
46500
46501 *)
46502 { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
46503echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
46504 { (exit 1); exit 1; }; }
46505 esac
46506
2057db16
VS
46507 if test "x$PIC_FLAG" != "x" ; then
46508 PIC_FLAG="$PIC_FLAG -DPIC"
46509 fi
46510
a848cd7e
SC
46511 if test "x$SHARED_LD_MODULE_CC" = "x" ; then
46512 SHARED_LD_MODULE_CC="$SHARED_LD_CC"
46513 fi
46514 if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
46515 SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
46516 fi
46517
46518
46519
46520
46521
46522
46523
46524
810b94f0 46525
a848cd7e
SC
46526 USE_SOVERSION=0
46527 USE_SOVERLINUX=0
46528 USE_SOVERSOLARIS=0
810b94f0 46529 USE_SOVERCYGWIN=0
a848cd7e
SC
46530 USE_SOSYMLINKS=0
46531 USE_MACVERSION=0
46532 SONAME_FLAG=
46533
46534 case "${BAKEFILE_HOST}" in
0ad5d837 46535 *-*-linux* | *-*-freebsd* | *-*-k*bsd*-gnu )
5f652d0d
VS
46536 SONAME_FLAG="-Wl,-soname,"
46537 USE_SOVERSION=1
46538 USE_SOVERLINUX=1
46539 USE_SOSYMLINKS=1
46540 ;;
46541
a848cd7e
SC
46542 *-*-solaris2* )
46543 SONAME_FLAG="-h "
46544 USE_SOVERSION=1
46545 USE_SOVERSOLARIS=1
46546 USE_SOSYMLINKS=1
46547 ;;
46548
46549 *-*-darwin* )
46550 USE_MACVERSION=1
46551 USE_SOVERSION=1
46552 USE_SOSYMLINKS=1
46553 ;;
810b94f0
MW
46554
46555 *-*-cygwin* )
46556 USE_SOVERSION=1
46557 USE_SOVERCYGWIN=1
46558 ;;
a848cd7e
SC
46559 esac
46560
46561
46562
46563
46564
46565
46566
46567
46568
810b94f0 46569
f10e38c4
VZ
46570 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
46571if test "${enable_dependency_tracking+set}" = set; then
46572 enableval="$enable_dependency_tracking"
46573 bk_use_trackdeps="$enableval"
46574fi;
46575
a848cd7e
SC
46576 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
46577echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
a848cd7e 46578
f10e38c4
VZ
46579 if test "x$bk_use_trackdeps" = "xno" ; then
46580 DEPS_TRACKING=0
46581 echo "$as_me:$LINENO: result: disabled" >&5
46582echo "${ECHO_T}disabled" >&6
46583 else
46584 DEPS_TRACKING=1
46585
46586 if test "x$GCC" = "xyes"; then
46587 DEPSMODE=gcc
46588 case "${BAKEFILE_HOST}" in
46589 *-*-darwin* )
46590 DEPSFLAG="-no-cpp-precomp -MMD"
46591 ;;
46592 * )
46593 DEPSFLAG="-MMD"
46594 ;;
46595 esac
46596 echo "$as_me:$LINENO: result: gcc" >&5
a848cd7e 46597echo "${ECHO_T}gcc" >&6
f10e38c4
VZ
46598 elif test "x$MWCC" = "xyes"; then
46599 DEPSMODE=mwcc
46600 DEPSFLAG="-MM"
46601 echo "$as_me:$LINENO: result: mwcc" >&5
b1d22ded 46602echo "${ECHO_T}mwcc" >&6
f10e38c4
VZ
46603 elif test "x$SUNCC" = "xyes"; then
46604 DEPSMODE=unixcc
46605 DEPSFLAG="-xM1"
46606 echo "$as_me:$LINENO: result: Sun cc" >&5
0ad5d837 46607echo "${ECHO_T}Sun cc" >&6
f10e38c4
VZ
46608 elif test "x$SGICC" = "xyes"; then
46609 DEPSMODE=unixcc
46610 DEPSFLAG="-M"
46611 echo "$as_me:$LINENO: result: SGI cc" >&5
0ad5d837 46612echo "${ECHO_T}SGI cc" >&6
f10e38c4
VZ
46613 elif test "x$HPCC" = "xyes"; then
46614 DEPSMODE=unixcc
46615 DEPSFLAG="+make"
46616 echo "$as_me:$LINENO: result: HP cc" >&5
3006edc0 46617echo "${ECHO_T}HP cc" >&6
f10e38c4
VZ
46618 elif test "x$COMPAQCC" = "xyes"; then
46619 DEPSMODE=gcc
46620 DEPSFLAG="-MD"
46621 echo "$as_me:$LINENO: result: Compaq cc" >&5
a1aa0349 46622echo "${ECHO_T}Compaq cc" >&6
f10e38c4
VZ
46623 else
46624 DEPS_TRACKING=0
46625 echo "$as_me:$LINENO: result: none" >&5
a848cd7e 46626echo "${ECHO_T}none" >&6
f10e38c4 46627 fi
a848cd7e 46628
f10e38c4 46629 if test $DEPS_TRACKING = 1 ; then
473276a9
VS
46630
46631D='$'
46632cat <<EOF >bk-deps
a848cd7e
SC
46633#!/bin/sh
46634
46635# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
46636# script. It is used to track C/C++ files dependencies in portable way.
46637#
46638# Permission is given to use this file in any way.
46639
473276a9 46640DEPSMODE=${DEPSMODE}
a848cd7e 46641DEPSDIR=.deps
0ad5d837 46642DEPSFLAG="${DEPSFLAG}"
a848cd7e 46643
473276a9 46644mkdir -p ${D}DEPSDIR
a848cd7e 46645
473276a9 46646if test ${D}DEPSMODE = gcc ; then
0ad5d837 46647 ${D}* ${D}{DEPSFLAG}
473276a9
VS
46648 status=${D}?
46649 if test ${D}{status} != 0 ; then
46650 exit ${D}{status}
a848cd7e
SC
46651 fi
46652 # move created file to the location we want it in:
473276a9
VS
46653 while test ${D}# -gt 0; do
46654 case "${D}1" in
a848cd7e
SC
46655 -o )
46656 shift
473276a9 46657 objfile=${D}1
a848cd7e
SC
46658 ;;
46659 -* )
46660 ;;
46661 * )
473276a9 46662 srcfile=${D}1
a848cd7e
SC
46663 ;;
46664 esac
46665 shift
46666 done
1e9e8aba
DE
46667 depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
46668 depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
473276a9
VS
46669 if test -f ${D}depfile ; then
46670 sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
46671 rm -f ${D}depfile
a848cd7e 46672 else
a1aa0349 46673 # "g++ -MMD -o fooobj.o foosrc.cpp" produces fooobj.d
1e9e8aba 46674 depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\`
a1aa0349
VZ
46675 if test ! -f ${D}depfile ; then
46676 # "cxx -MD -o fooobj.o foosrc.cpp" creates fooobj.o.d (Compaq C++)
46677 depfile="${D}objfile.d"
46678 fi
473276a9
VS
46679 if test -f ${D}depfile ; then
46680 sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
46681 rm -f ${D}depfile
a848cd7e
SC
46682 fi
46683 fi
46684 exit 0
81f90336 46685elif test ${D}DEPSMODE = mwcc ; then
f6b50c59 46686 ${D}* || exit ${D}?
81f90336
MW
46687 # Run mwcc again with -MM and redirect into the dep file we want
46688 # NOTE: We can't use shift here because we need ${D}* to be valid
46689 prevarg=
46690 for arg in ${D}* ; do
46691 if test "${D}prevarg" = "-o"; then
46692 objfile=${D}arg
46693 else
46694 case "${D}arg" in
46695 -* )
46696 ;;
46697 * )
46698 srcfile=${D}arg
46699 ;;
46700 esac
46701 fi
46702 prevarg="${D}arg"
46703 done
0ad5d837 46704 ${D}* ${D}DEPSFLAG >${D}{DEPSDIR}/${D}{objfile}.d
81f90336 46705 exit 0
0ad5d837 46706elif test ${D}DEPSMODE = unixcc; then
f6b50c59 46707 ${D}* || exit ${D}?
a9e5b1f0
MW
46708 # Run compiler again with deps flag and redirect into the dep file.
46709 # It doesn't work if the '-o FILE' option is used, but without it the
46710 # dependency file will contain the wrong name for the object. So it is
46711 # removed from the command line, and the dep file is fixed with sed.
46712 cmd=""
46713 while test ${D}# -gt 0; do
46714 case "${D}1" in
46715 -o )
46716 shift
46717 objfile=${D}1
46718 ;;
46719 * )
46720 eval arg${D}#=\\${D}1
46721 cmd="${D}cmd \\${D}arg${D}#"
46722 ;;
46723 esac
46724 shift
46725 done
0ad5d837 46726 eval "${D}cmd ${D}DEPSFLAG" | sed "s|.*:|${D}objfile:|" >${D}{DEPSDIR}/${D}{objfile}.d
a9e5b1f0 46727 exit 0
a848cd7e 46728else
473276a9
VS
46729 ${D}*
46730 exit ${D}?
a848cd7e
SC
46731fi
46732EOF
473276a9 46733
f10e38c4
VZ
46734 chmod +x bk-deps
46735 fi
a848cd7e
SC
46736 fi
46737
46738
46739
46740
a848cd7e
SC
46741 case ${BAKEFILE_HOST} in
46742 *-*-cygwin* | *-*-mingw32* )
8ced02f6
DE
46743 if test -n "$ac_tool_prefix"; then
46744 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
46745set dummy ${ac_tool_prefix}windres; ac_word=$2
46746echo "$as_me:$LINENO: checking for $ac_word" >&5
46747echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
46748if test "${ac_cv_prog_WINDRES+set}" = set; then
46749 echo $ECHO_N "(cached) $ECHO_C" >&6
46750else
46751 if test -n "$WINDRES"; then
46752 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
46753else
46754as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46755for as_dir in $PATH
46756do
46757 IFS=$as_save_IFS
46758 test -z "$as_dir" && as_dir=.
46759 for ac_exec_ext in '' $ac_executable_extensions; do
46760 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46761 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
46762 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46763 break 2
46764 fi
46765done
46766done
46767
46768fi
46769fi
46770WINDRES=$ac_cv_prog_WINDRES
46771if test -n "$WINDRES"; then
46772 echo "$as_me:$LINENO: result: $WINDRES" >&5
46773echo "${ECHO_T}$WINDRES" >&6
46774else
46775 echo "$as_me:$LINENO: result: no" >&5
46776echo "${ECHO_T}no" >&6
46777fi
46778
46779fi
46780if test -z "$ac_cv_prog_WINDRES"; then
46781 ac_ct_WINDRES=$WINDRES
46782 # Extract the first word of "windres", so it can be a program name with args.
a848cd7e
SC
46783set dummy windres; ac_word=$2
46784echo "$as_me:$LINENO: checking for $ac_word" >&5
46785echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 46786if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
a848cd7e
SC
46787 echo $ECHO_N "(cached) $ECHO_C" >&6
46788else
8ced02f6
DE
46789 if test -n "$ac_ct_WINDRES"; then
46790 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
a848cd7e
SC
46791else
46792as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46793for as_dir in $PATH
46794do
46795 IFS=$as_save_IFS
46796 test -z "$as_dir" && as_dir=.
46797 for ac_exec_ext in '' $ac_executable_extensions; do
46798 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 46799 ac_cv_prog_ac_ct_WINDRES="windres"
a848cd7e
SC
46800 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46801 break 2
46802 fi
46803done
46804done
46805
a848cd7e
SC
46806fi
46807fi
8ced02f6
DE
46808ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
46809if test -n "$ac_ct_WINDRES"; then
46810 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
46811echo "${ECHO_T}$ac_ct_WINDRES" >&6
a848cd7e
SC
46812else
46813 echo "$as_me:$LINENO: result: no" >&5
46814echo "${ECHO_T}no" >&6
46815fi
46816
8ced02f6
DE
46817 WINDRES=$ac_ct_WINDRES
46818else
46819 WINDRES="$ac_cv_prog_WINDRES"
46820fi
46821
a848cd7e
SC
46822 ;;
46823
1e9e8aba 46824 *-*-darwin* | powerpc-apple-macos* )
a848cd7e
SC
46825 # Extract the first word of "Rez", so it can be a program name with args.
46826set dummy Rez; ac_word=$2
46827echo "$as_me:$LINENO: checking for $ac_word" >&5
46828echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 46829if test "${ac_cv_prog_REZ+set}" = set; then
a848cd7e
SC
46830 echo $ECHO_N "(cached) $ECHO_C" >&6
46831else
8ced02f6
DE
46832 if test -n "$REZ"; then
46833 ac_cv_prog_REZ="$REZ" # Let the user override the test.
a848cd7e
SC
46834else
46835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46836for as_dir in $PATH
46837do
46838 IFS=$as_save_IFS
46839 test -z "$as_dir" && as_dir=.
46840 for ac_exec_ext in '' $ac_executable_extensions; do
46841 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 46842 ac_cv_prog_REZ="Rez"
a848cd7e
SC
46843 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46844 break 2
46845 fi
46846done
46847done
46848
8ced02f6 46849 test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
a848cd7e
SC
46850fi
46851fi
8ced02f6
DE
46852REZ=$ac_cv_prog_REZ
46853if test -n "$REZ"; then
46854 echo "$as_me:$LINENO: result: $REZ" >&5
46855echo "${ECHO_T}$REZ" >&6
a848cd7e
SC
46856else
46857 echo "$as_me:$LINENO: result: no" >&5
46858echo "${ECHO_T}no" >&6
46859fi
46860
46861 # Extract the first word of "SetFile", so it can be a program name with args.
46862set dummy SetFile; ac_word=$2
46863echo "$as_me:$LINENO: checking for $ac_word" >&5
46864echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
46865if test "${ac_cv_prog_SETFILE+set}" = set; then
46866 echo $ECHO_N "(cached) $ECHO_C" >&6
46867else
46868 if test -n "$SETFILE"; then
46869 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
46870else
46871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46872for as_dir in $PATH
46873do
46874 IFS=$as_save_IFS
46875 test -z "$as_dir" && as_dir=.
46876 for ac_exec_ext in '' $ac_executable_extensions; do
46877 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46878 ac_cv_prog_SETFILE="SetFile"
46879 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46880 break 2
46881 fi
46882done
46883done
46884
46885 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
46886fi
46887fi
46888SETFILE=$ac_cv_prog_SETFILE
46889if test -n "$SETFILE"; then
46890 echo "$as_me:$LINENO: result: $SETFILE" >&5
46891echo "${ECHO_T}$SETFILE" >&6
46892else
46893 echo "$as_me:$LINENO: result: no" >&5
46894echo "${ECHO_T}no" >&6
46895fi
46896
46897 ;;
46898 esac
46899
46900
46901
46902
46903
8ced02f6 46904
f10e38c4 46905 BAKEFILE_BAKEFILE_M4_VERSION="0.2.0"
a848cd7e 46906
dcc1b6ad 46907
f10e38c4 46908BAKEFILE_AUTOCONF_INC_M4_VERSION="0.2.0"
a848cd7e 46909
646b6ec1 46910
74b84332 46911
a848cd7e
SC
46912 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
46913if test "${enable_precomp_headers+set}" = set; then
46914 enableval="$enable_precomp_headers"
46915 bk_use_pch="$enableval"
46916fi;
46917
46918 GCC_PCH=0
f10e38c4
VZ
46919 ICC_PCH=0
46920 USE_PCH=0
a848cd7e 46921
5c60e845
MW
46922 case ${BAKEFILE_HOST} in
46923 *-*-cygwin* )
46924 bk_use_pch="no"
46925 ;;
46926 esac
46927
a848cd7e
SC
46928 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
46929 if test "x$GCC" = "xyes"; then
46930 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
46931echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
46932 cat >conftest.$ac_ext <<_ACEOF
46933/* confdefs.h. */
46934_ACEOF
46935cat confdefs.h >>conftest.$ac_ext
46936cat >>conftest.$ac_ext <<_ACEOF
46937/* end confdefs.h. */
46938
46939int
46940main ()
46941{
46942
46943 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
e5efa97e 46944 There is no PCH support
a848cd7e
SC
46945 #endif
46946 #if (__GNUC__ < 3)
e5efa97e 46947 There is no PCH support
a848cd7e
SC
46948 #endif
46949 #if (__GNUC__ == 3) && \
46950 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
f10e38c4
VZ
46951 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) || \
46952 ( defined(__INTEL_COMPILER) )
e5efa97e 46953 There is no PCH support
a848cd7e
SC
46954 #endif
46955
46956 ;
46957 return 0;
46958}
46959_ACEOF
46960rm -f conftest.$ac_objext
46961if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 46962 (eval $ac_compile) 2>conftest.er1
a848cd7e 46963 ac_status=$?
ac1cb8d3
VS
46964 grep -v '^ *+' conftest.er1 >conftest.err
46965 rm -f conftest.er1
46966 cat conftest.err >&5
a848cd7e
SC
46967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46968 (exit $ac_status); } &&
5d7b7554 46969 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
46970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46971 (eval $ac_try) 2>&5
46972 ac_status=$?
46973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46974 (exit $ac_status); }; } &&
46975 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
46976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46977 (eval $ac_try) 2>&5
46978 ac_status=$?
46979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46980 (exit $ac_status); }; }; then
46981
46982 echo "$as_me:$LINENO: result: yes" >&5
46983echo "${ECHO_T}yes" >&6
a848cd7e
SC
46984 GCC_PCH=1
46985
46986else
46987 echo "$as_me: failed program was:" >&5
46988sed 's/^/| /' conftest.$ac_ext >&5
46989
46990
f10e38c4
VZ
46991 cat >conftest.$ac_ext <<_ACEOF
46992/* confdefs.h. */
46993_ACEOF
46994cat confdefs.h >>conftest.$ac_ext
46995cat >>conftest.$ac_ext <<_ACEOF
46996/* end confdefs.h. */
46997
46998int
46999main ()
47000{
47001
47002 #if !defined(__INTEL_COMPILER) || \
47003 (__INTEL_COMPILER < 800)
e5efa97e 47004 There is no PCH support
f10e38c4
VZ
47005 #endif
47006
47007 ;
47008 return 0;
47009}
47010_ACEOF
47011rm -f conftest.$ac_objext
47012if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47013 (eval $ac_compile) 2>conftest.er1
47014 ac_status=$?
47015 grep -v '^ *+' conftest.er1 >conftest.err
47016 rm -f conftest.er1
47017 cat conftest.err >&5
47018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47019 (exit $ac_status); } &&
5d7b7554 47020 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
f10e38c4
VZ
47021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47022 (eval $ac_try) 2>&5
47023 ac_status=$?
47024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47025 (exit $ac_status); }; } &&
47026 { ac_try='test -s conftest.$ac_objext'
47027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47028 (eval $ac_try) 2>&5
47029 ac_status=$?
47030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47031 (exit $ac_status); }; }; then
47032
47033 echo "$as_me:$LINENO: result: yes" >&5
47034echo "${ECHO_T}yes" >&6
47035 ICC_PCH=1
47036
47037else
47038 echo "$as_me: failed program was:" >&5
47039sed 's/^/| /' conftest.$ac_ext >&5
47040
47041
47042 echo "$as_me:$LINENO: result: no" >&5
a848cd7e
SC
47043echo "${ECHO_T}no" >&6
47044
47045fi
ac1cb8d3 47046rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f10e38c4
VZ
47047
47048fi
47049rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47050 if test $GCC_PCH = 1 -o $ICC_PCH = 1 ; then
47051 USE_PCH=1
1e9e8aba
DE
47052
47053D='$'
47054cat <<EOF >bk-make-pch
a848cd7e
SC
47055#!/bin/sh
47056
47057# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
47058# script. It is used to generated precompiled headers.
47059#
47060# Permission is given to use this file in any way.
47061
1e9e8aba
DE
47062outfile="${D}{1}"
47063header="${D}{2}"
a848cd7e
SC
47064shift
47065shift
47066
f10e38c4
VZ
47067compiler=""
47068headerfile=""
47069
1e9e8aba 47070while test ${D}{#} -gt 0; do
f10e38c4 47071 add_to_cmdline=1
1e9e8aba 47072 case "${D}{1}" in
a848cd7e 47073 -I* )
1e9e8aba
DE
47074 incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
47075 if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
47076 headerfile="${D}{incdir}/${D}{header}"
a848cd7e
SC
47077 fi
47078 ;;
f10e38c4
VZ
47079 -use-pch|-use_pch )
47080 shift
47081 add_to_cmdline=0
47082 ;;
a848cd7e 47083 esac
f10e38c4
VZ
47084 if test ${D}add_to_cmdline = 1 ; then
47085 compiler="${D}{compiler} ${D}{1}"
47086 fi
a848cd7e
SC
47087 shift
47088done
47089
1e9e8aba 47090if test "x${D}{headerfile}" = "x" ; then
f10e38c4 47091 echo "error: can't find header ${D}{header} in include paths" >&2
a848cd7e 47092else
1e9e8aba
DE
47093 if test -f ${D}{outfile} ; then
47094 rm -f ${D}{outfile}
a848cd7e 47095 else
1e9e8aba 47096 mkdir -p \`dirname ${D}{outfile}\`
a848cd7e 47097 fi
1e9e8aba 47098 depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
a848cd7e 47099 mkdir -p .deps
f10e38c4
VZ
47100 if test "x${GCC_PCH}" = "x1" ; then
47101 # can do this because gcc is >= 3.4:
47102 ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
47103 elif test "x${ICC_PCH}" = "x1" ; then
47104 filename=pch_gen-${D}${D}
47105 file=${D}{filename}.c
47106 dfile=${D}{filename}.d
47107 cat > ${D}file <<EOT
47108#include "${D}header"
47109EOT
47110 # using -MF icc complains about differing command lines in creation/use
47111 ${D}compiler -c -create_pch ${D}outfile -MMD ${D}file && \\
47112 sed -e "s,^.*:,${D}outfile:," -e "s, ${D}file,," < ${D}dfile > ${D}depsfile && \\
47113 rm -f ${D}file ${D}dfile ${D}{filename}.o
47114 fi
1e9e8aba 47115 exit ${D}{?}
a848cd7e
SC
47116fi
47117EOF
1e9e8aba 47118
a848cd7e
SC
47119 chmod +x bk-make-pch
47120 fi
47121 fi
47122 fi
47123
47124
47125
f10e38c4 47126
a848cd7e
SC
47127 COND_BUILD_DEBUG="#"
47128 if test "x$BUILD" = "xdebug" ; then
47129 COND_BUILD_DEBUG=""
47130 fi
47131
47132 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
47133 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
47134 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
47135 fi
47136
47137 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
47138 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
47139 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
47140 fi
47141
47142 COND_BUILD_DEBUG_UNICODE_0="#"
47143 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
47144 COND_BUILD_DEBUG_UNICODE_0=""
47145 fi
47146
47147 COND_BUILD_DEBUG_UNICODE_1="#"
47148 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
47149 COND_BUILD_DEBUG_UNICODE_1=""
47150 fi
47151
47152 COND_BUILD_RELEASE="#"
47153 if test "x$BUILD" = "xrelease" ; then
47154 COND_BUILD_RELEASE=""
47155 fi
47156
47157 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
47158 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
47159 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
47160 fi
47161
47162 COND_BUILD_RELEASE_UNICODE_0="#"
47163 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
47164 COND_BUILD_RELEASE_UNICODE_0=""
47165 fi
47166
47167 COND_BUILD_RELEASE_UNICODE_1="#"
47168 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
47169 COND_BUILD_RELEASE_UNICODE_1=""
47170 fi
47171
47172 COND_DEBUG_FLAG_1="#"
47173 if test "x$DEBUG_FLAG" = "x1" ; then
47174 COND_DEBUG_FLAG_1=""
47175 fi
47176
47177 COND_DEBUG_INFO_0="#"
47178 if test "x$DEBUG_INFO" = "x0" ; then
47179 COND_DEBUG_INFO_0=""
47180 fi
47181
47182 COND_DEBUG_INFO_1="#"
47183 if test "x$DEBUG_INFO" = "x1" ; then
47184 COND_DEBUG_INFO_1=""
47185 fi
47186
47187 COND_DEPS_TRACKING_0="#"
47188 if test "x$DEPS_TRACKING" = "x0" ; then
47189 COND_DEPS_TRACKING_0=""
47190 fi
47191
47192 COND_DEPS_TRACKING_1="#"
47193 if test "x$DEPS_TRACKING" = "x1" ; then
47194 COND_DEPS_TRACKING_1=""
47195 fi
47196
47197 COND_GCC_PCH_1="#"
47198 if test "x$GCC_PCH" = "x1" ; then
47199 COND_GCC_PCH_1=""
47200 fi
47201
f10e38c4
VZ
47202 COND_ICC_PCH_1="#"
47203 if test "x$ICC_PCH" = "x1" ; then
47204 COND_ICC_PCH_1=""
47205 fi
47206
a848cd7e
SC
47207 COND_MONOLITHIC_0="#"
47208 if test "x$MONOLITHIC" = "x0" ; then
47209 COND_MONOLITHIC_0=""
47210 fi
47211
47212 COND_MONOLITHIC_0_SHARED_0="#"
47213 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
47214 COND_MONOLITHIC_0_SHARED_0=""
47215 fi
47216
47217 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
47218 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
47219 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
47220 fi
47221
90970d69
DE
47222 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
47223 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
47224 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
47225 fi
47226
f10e38c4
VZ
47227 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1="#"
47228 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
47229 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1=""
47230 fi
47231
a848cd7e
SC
47232 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
47233 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
47234 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
47235 fi
47236
6671c68b
VZ
47237 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#"
47238 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
47239 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1=""
47240 fi
47241
a848cd7e
SC
47242 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
47243 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
47244 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
47245 fi
47246
ceec2216
RL
47247 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
47248 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
47249 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
47250 fi
47251
a848cd7e
SC
47252 COND_MONOLITHIC_0_SHARED_1="#"
47253 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
47254 COND_MONOLITHIC_0_SHARED_1=""
47255 fi
47256
47257 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
47258 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
47259 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
47260 fi
47261
90970d69
DE
47262 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
47263 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
47264 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
47265 fi
47266
f10e38c4
VZ
47267 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1="#"
47268 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
47269 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1=""
47270 fi
47271
a848cd7e
SC
47272 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
47273 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
47274 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
47275 fi
47276
6671c68b
VZ
47277 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#"
47278 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
47279 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1=""
47280 fi
47281
a848cd7e
SC
47282 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
47283 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
47284 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
47285 fi
47286
ceec2216
RL
47287 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
47288 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
47289 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
47290 fi
47291
e5efa97e
VZ
47292 COND_MONOLITHIC_0_USE_MEDIA_1="#"
47293 if test "x$MONOLITHIC" = "x0" -a "x$USE_MEDIA" = "x1" ; then
47294 COND_MONOLITHIC_0_USE_MEDIA_1=""
47295 fi
47296
a848cd7e
SC
47297 COND_MONOLITHIC_0_USE_ODBC_1="#"
47298 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
47299 COND_MONOLITHIC_0_USE_ODBC_1=""
47300 fi
47301
47302 COND_MONOLITHIC_1="#"
47303 if test "x$MONOLITHIC" = "x1" ; then
47304 COND_MONOLITHIC_1=""
47305 fi
47306
47307 COND_MONOLITHIC_1_SHARED_0="#"
47308 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
47309 COND_MONOLITHIC_1_SHARED_0=""
47310 fi
47311
47312 COND_MONOLITHIC_1_SHARED_1="#"
47313 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
47314 COND_MONOLITHIC_1_SHARED_1=""
47315 fi
47316
47317 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
47318 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
47319 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
47320 fi
47321
47322 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
47323 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
47324 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
47325 fi
47326
eb730a0c
JS
47327 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="#"
47328 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERCYGWIN" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
47329 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1=""
47330 fi
47331
a848cd7e
SC
47332 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
47333 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
47334 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
47335 fi
47336
47337 COND_PLATFORM_MACOSX_1="#"
47338 if test "x$PLATFORM_MACOSX" = "x1" ; then
47339 COND_PLATFORM_MACOSX_1=""
47340 fi
47341
a30f955f
VS
47342 COND_PLATFORM_MACOSX_1_TOOLKIT_="#"
47343 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then
47344 COND_PLATFORM_MACOSX_1_TOOLKIT_=""
47345 fi
47346
a848cd7e
SC
47347 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
47348 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
47349 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
47350 fi
47351
47352 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
47353 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
47354 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
47355 fi
47356
47357 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
47358 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
47359 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
47360 fi
47361
fc480dc1
DE
47362 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#"
47363 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
47364 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1=""
47365 fi
47366
1e9e8aba
DE
47367 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
47368 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
47369 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
47370 fi
47371
ebee3cd0
VS
47372 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
47373 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
47374 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
47375 fi
47376
47377 COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
47378 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
47379 COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
47380 fi
47381
a848cd7e
SC
47382 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
47383 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
47384 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
47385 fi
47386
47387 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
47388 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
47389 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
47390 fi
47391
b48a2016
DE
47392 COND_PLATFORM_MACOS_1="#"
47393 if test "x$PLATFORM_MACOS" = "x1" ; then
47394 COND_PLATFORM_MACOS_1=""
47395 fi
47396
083508af
MW
47397 COND_PLATFORM_MAC_1="#"
47398 if test "x$PLATFORM_MAC" = "x1" ; then
47399 COND_PLATFORM_MAC_1=""
47400 fi
47401
e5efa97e
VZ
47402 COND_PLATFORM_MSDOS_0="#"
47403 if test "x$PLATFORM_MSDOS" = "x0" ; then
47404 COND_PLATFORM_MSDOS_0=""
47405 fi
47406
83d8eb47
MW
47407 COND_PLATFORM_MSDOS_1="#"
47408 if test "x$PLATFORM_MSDOS" = "x1" ; then
47409 COND_PLATFORM_MSDOS_1=""
47410 fi
47411
a848cd7e
SC
47412 COND_PLATFORM_OS2_1="#"
47413 if test "x$PLATFORM_OS2" = "x1" ; then
47414 COND_PLATFORM_OS2_1=""
47415 fi
47416
47417 COND_PLATFORM_UNIX_0="#"
47418 if test "x$PLATFORM_UNIX" = "x0" ; then
47419 COND_PLATFORM_UNIX_0=""
47420 fi
47421
47422 COND_PLATFORM_UNIX_1="#"
47423 if test "x$PLATFORM_UNIX" = "x1" ; then
47424 COND_PLATFORM_UNIX_1=""
47425 fi
47426
47427 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
47428 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
47429 COND_PLATFORM_UNIX_1_USE_GUI_1=""
47430 fi
47431
47432 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
47433 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
47434 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
47435 fi
47436
47437 COND_PLATFORM_WIN32_0="#"
47438 if test "x$PLATFORM_WIN32" = "x0" ; then
47439 COND_PLATFORM_WIN32_0=""
47440 fi
47441
47442 COND_PLATFORM_WIN32_1="#"
47443 if test "x$PLATFORM_WIN32" = "x1" ; then
47444 COND_PLATFORM_WIN32_1=""
47445 fi
47446
47447 COND_SHARED_0="#"
47448 if test "x$SHARED" = "x0" ; then
47449 COND_SHARED_0=""
47450 fi
47451
083508af
MW
47452 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
47453 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
47454 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
47455 fi
47456
47457 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
47458 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
47459 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
47460 fi
47461
47462 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
47463 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
47464 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
47465 fi
47466
a848cd7e
SC
47467 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
47468 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
47469 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
47470 fi
47471
47472 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
47473 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
47474 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
47475 fi
47476
47477 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
47478 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
47479 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
47480 fi
47481
47482 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
47483 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
47484 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
47485 fi
47486
083508af
MW
47487 COND_SHARED_0_USE_XRC_1="#"
47488 if test "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
47489 COND_SHARED_0_USE_XRC_1=""
47490 fi
47491
a848cd7e
SC
47492 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
47493 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
47494 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
47495 fi
47496
47497 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
47498 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
47499 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
47500 fi
47501
47502 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
47503 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
47504 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
47505 fi
47506
47507 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
47508 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
47509 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
47510 fi
47511
47512 COND_SHARED_1="#"
47513 if test "x$SHARED" = "x1" ; then
47514 COND_SHARED_1=""
47515 fi
47516
47517 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
47518 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
47519 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
47520 fi
47521
083508af
MW
47522 COND_SHARED_1_USE_XRC_1="#"
47523 if test "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
47524 COND_SHARED_1_USE_XRC_1=""
47525 fi
47526
a30f955f
VS
47527 COND_TOOLKIT_="#"
47528 if test "x$TOOLKIT" = "x" ; then
47529 COND_TOOLKIT_=""
47530 fi
47531
a848cd7e
SC
47532 COND_TOOLKIT_COCOA="#"
47533 if test "x$TOOLKIT" = "xCOCOA" ; then
47534 COND_TOOLKIT_COCOA=""
47535 fi
47536
a49baeab
DE
47537 COND_TOOLKIT_COCOA_USE_GUI_1="#"
47538 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
47539 COND_TOOLKIT_COCOA_USE_GUI_1=""
47540 fi
47541
a848cd7e
SC
47542 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
47543 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
47544 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
47545 fi
47546
47547 COND_TOOLKIT_GTK="#"
47548 if test "x$TOOLKIT" = "xGTK" ; then
47549 COND_TOOLKIT_GTK=""
47550 fi
47551
d044deea
MW
47552 COND_TOOLKIT_GTK_TOOLKIT_VERSION_="#"
47553 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" ; then
47554 COND_TOOLKIT_GTK_TOOLKIT_VERSION_=""
47555 fi
47556
47557 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2="#"
47558 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" ; then
47559 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2=""
47560 fi
47561
47562 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1="#"
47563 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" ; then
47564 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1=""
47565 fi
47566
47567 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0="#"
47568 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
47569 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0=""
47570 fi
47571
47572 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1="#"
47573 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" ; then
47574 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1=""
47575 fi
47576
47577 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0="#"
47578 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
47579 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0=""
47580 fi
47581
a848cd7e
SC
47582 COND_TOOLKIT_GTK_USE_GUI_1="#"
47583 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
47584 COND_TOOLKIT_GTK_USE_GUI_1=""
47585 fi
47586
a848cd7e
SC
47587 COND_TOOLKIT_MAC="#"
47588 if test "x$TOOLKIT" = "xMAC" ; then
47589 COND_TOOLKIT_MAC=""
47590 fi
47591
47592 COND_TOOLKIT_MAC_USE_GUI_1="#"
47593 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
47594 COND_TOOLKIT_MAC_USE_GUI_1=""
47595 fi
47596
47597 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
47598 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
47599 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
47600 fi
47601
47602 COND_TOOLKIT_MGL="#"
47603 if test "x$TOOLKIT" = "xMGL" ; then
47604 COND_TOOLKIT_MGL=""
47605 fi
47606
47607 COND_TOOLKIT_MGL_USE_GUI_1="#"
47608 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
47609 COND_TOOLKIT_MGL_USE_GUI_1=""
47610 fi
47611
47612 COND_TOOLKIT_MOTIF="#"
47613 if test "x$TOOLKIT" = "xMOTIF" ; then
47614 COND_TOOLKIT_MOTIF=""
47615 fi
47616
47617 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
47618 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
47619 COND_TOOLKIT_MOTIF_USE_GUI_1=""
47620 fi
47621
47622 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
47623 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
47624 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
47625 fi
47626
47627 COND_TOOLKIT_MSW="#"
47628 if test "x$TOOLKIT" = "xMSW" ; then
47629 COND_TOOLKIT_MSW=""
47630 fi
47631
47632 COND_TOOLKIT_MSW_USE_GUI_1="#"
47633 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
47634 COND_TOOLKIT_MSW_USE_GUI_1=""
47635 fi
47636
47637 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
47638 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
47639 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
47640 fi
47641
0ee4059d
DE
47642 COND_TOOLKIT_MSW_WXUNIV_0="#"
47643 if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
47644 COND_TOOLKIT_MSW_WXUNIV_0=""
47645 fi
47646
a848cd7e
SC
47647 COND_TOOLKIT_PM="#"
47648 if test "x$TOOLKIT" = "xPM" ; then
47649 COND_TOOLKIT_PM=""
47650 fi
47651
47652 COND_TOOLKIT_PM_USE_GUI_1="#"
47653 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
47654 COND_TOOLKIT_PM_USE_GUI_1=""
47655 fi
47656
47657 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
47658 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
47659 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
47660 fi
47661
3fd9c298
DE
47662 COND_TOOLKIT_WINCE="#"
47663 if test "x$TOOLKIT" = "xWINCE" ; then
47664 COND_TOOLKIT_WINCE=""
47665 fi
47666
47667 COND_TOOLKIT_WINCE_USE_GUI_1="#"
47668 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
47669 COND_TOOLKIT_WINCE_USE_GUI_1=""
47670 fi
47671
47672 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
47673 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
47674 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
47675 fi
47676
0ee4059d
DE
47677 COND_TOOLKIT_WINCE_WXUNIV_0="#"
47678 if test "x$TOOLKIT" = "xWINCE" -a "x$WXUNIV" = "x0" ; then
47679 COND_TOOLKIT_WINCE_WXUNIV_0=""
47680 fi
47681
a848cd7e
SC
47682 COND_TOOLKIT_X11="#"
47683 if test "x$TOOLKIT" = "xX11" ; then
47684 COND_TOOLKIT_X11=""
47685 fi
47686
47687 COND_TOOLKIT_X11_USE_GUI_1="#"
47688 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
47689 COND_TOOLKIT_X11_USE_GUI_1=""
47690 fi
47691
47692 COND_UNICODE_1="#"
47693 if test "x$UNICODE" = "x1" ; then
47694 COND_UNICODE_1=""
47695 fi
47696
47697 COND_USE_EXCEPTIONS_0="#"
47698 if test "x$USE_EXCEPTIONS" = "x0" ; then
47699 COND_USE_EXCEPTIONS_0=""
47700 fi
47701
47702 COND_USE_EXCEPTIONS_1="#"
47703 if test "x$USE_EXCEPTIONS" = "x1" ; then
47704 COND_USE_EXCEPTIONS_1=""
47705 fi
47706
47707 COND_USE_GUI_0="#"
47708 if test "x$USE_GUI" = "x0" ; then
47709 COND_USE_GUI_0=""
47710 fi
47711
47712 COND_USE_GUI_1="#"
47713 if test "x$USE_GUI" = "x1" ; then
47714 COND_USE_GUI_1=""
47715 fi
47716
47717 COND_USE_GUI_1_WXUNIV_0="#"
47718 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
47719 COND_USE_GUI_1_WXUNIV_0=""
47720 fi
47721
47722 COND_USE_GUI_1_WXUNIV_1="#"
47723 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
47724 COND_USE_GUI_1_WXUNIV_1=""
47725 fi
47726
47727 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
47728 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
47729 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
47730 fi
47731
47732 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
47733 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
47734 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
47735 fi
47736
47737 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
47738 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
47739 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
47740 fi
47741
083508af
MW
47742 COND_USE_ODBC_1="#"
47743 if test "x$USE_ODBC" = "x1" ; then
47744 COND_USE_ODBC_1=""
47745 fi
47746
47747 COND_USE_OPENGL_1="#"
47748 if test "x$USE_OPENGL" = "x1" ; then
47749 COND_USE_OPENGL_1=""
47750 fi
47751
f10e38c4
VZ
47752 COND_USE_PCH_1="#"
47753 if test "x$USE_PCH" = "x1" ; then
47754 COND_USE_PCH_1=""
47755 fi
47756
a848cd7e
SC
47757 COND_USE_PLUGINS_0="#"
47758 if test "x$USE_PLUGINS" = "x0" ; then
47759 COND_USE_PLUGINS_0=""
47760 fi
47761
0b78747f
MW
47762 COND_USE_RTTI_0="#"
47763 if test "x$USE_RTTI" = "x0" ; then
47764 COND_USE_RTTI_0=""
47765 fi
47766
47767 COND_USE_RTTI_1="#"
47768 if test "x$USE_RTTI" = "x1" ; then
47769 COND_USE_RTTI_1=""
47770 fi
47771
a848cd7e
SC
47772 COND_USE_SOSYMLINKS_1="#"
47773 if test "x$USE_SOSYMLINKS" = "x1" ; then
47774 COND_USE_SOSYMLINKS_1=""
47775 fi
47776
eb730a0c
JS
47777 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="#"
47778 if test "x$USE_SOVERCYGWIN" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
47779 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1=""
47780 fi
47781
a848cd7e
SC
47782 COND_USE_SOVERLINUX_1="#"
47783 if test "x$USE_SOVERLINUX" = "x1" ; then
47784 COND_USE_SOVERLINUX_1=""
47785 fi
47786
47787 COND_USE_SOVERSION_0="#"
47788 if test "x$USE_SOVERSION" = "x0" ; then
47789 COND_USE_SOVERSION_0=""
47790 fi
47791
47792 COND_USE_SOVERSOLARIS_1="#"
47793 if test "x$USE_SOVERSOLARIS" = "x1" ; then
47794 COND_USE_SOVERSOLARIS_1=""
47795 fi
47796
0b78747f
MW
47797 COND_USE_THREADS_0="#"
47798 if test "x$USE_THREADS" = "x0" ; then
47799 COND_USE_THREADS_0=""
47800 fi
47801
47802 COND_USE_THREADS_1="#"
47803 if test "x$USE_THREADS" = "x1" ; then
47804 COND_USE_THREADS_1=""
47805 fi
47806
a13a7f89
RL
47807 COND_USE_XRC_1="#"
47808 if test "x$USE_XRC" = "x1" ; then
47809 COND_USE_XRC_1=""
47810 fi
47811
eb730a0c
JS
47812 COND_WINDOWS_IMPLIB_1="#"
47813 if test "x$WINDOWS_IMPLIB" = "x1" ; then
47814 COND_WINDOWS_IMPLIB_1=""
47815 fi
47816
a848cd7e
SC
47817 COND_WITH_PLUGIN_SDL_1="#"
47818 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
47819 COND_WITH_PLUGIN_SDL_1=""
47820 fi
47821
1e6eb025
VZ
47822 COND_WXUNIV_0="#"
47823 if test "x$WXUNIV" = "x0" ; then
47824 COND_WXUNIV_0=""
47825 fi
47826
a848cd7e
SC
47827 COND_WXUNIV_1="#"
47828 if test "x$WXUNIV" = "x1" ; then
47829 COND_WXUNIV_1=""
47830 fi
47831
47832 COND_WXUSE_EXPAT_BUILTIN="#"
47833 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
47834 COND_WXUSE_EXPAT_BUILTIN=""
47835 fi
47836
47837 COND_WXUSE_LIBJPEG_BUILTIN="#"
47838 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
47839 COND_WXUSE_LIBJPEG_BUILTIN=""
47840 fi
47841
47842 COND_WXUSE_LIBPNG_BUILTIN="#"
47843 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
47844 COND_WXUSE_LIBPNG_BUILTIN=""
47845 fi
47846
47847 COND_WXUSE_LIBTIFF_BUILTIN="#"
47848 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
47849 COND_WXUSE_LIBTIFF_BUILTIN=""
47850 fi
47851
47852 COND_WXUSE_ODBC_BUILTIN="#"
47853 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
47854 COND_WXUSE_ODBC_BUILTIN=""
47855 fi
47856
47857 COND_WXUSE_REGEX_BUILTIN="#"
47858 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
47859 COND_WXUSE_REGEX_BUILTIN=""
47860 fi
47861
47862 COND_WXUSE_ZLIB_BUILTIN="#"
47863 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
47864 COND_WXUSE_ZLIB_BUILTIN=""
47865 fi
47866
47867
47868
810b94f0
MW
47869 if test "$BAKEFILE_AUTOCONF_INC_M4_VERSION" = "" ; then
47870 { { 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
47871echo "$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;}
47872 { (exit 1); exit 1; }; }
47873 fi
47874
2057db16
VS
47875 if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
47876 { { 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
47877echo "$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;}
47878 { (exit 1); exit 1; }; }
47879 fi
47880
a848cd7e 47881
7afc46ab
KO
47882
47883if test "$wxUSE_MAC" = 1 ; then
47884 if test "$wxUSE_UNIVERSAL_BINARY" = "yes" ; then
47885 sed "s/DEPSMODE=gcc/DEPSMODE=none/" < bk-deps > temp
47886 mv temp bk-deps
47887 chmod +x bk-deps
47888 fi
47889fi
47890
ceec2216
RL
47891if test "$wxUSE_SHARED" = "yes"; then
47892
47893 sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'`
47894 EXE_LINKER=`eval echo "$sanitised_bakefile_mess"`
47895
5b674b9d
DE
47896 case "${host}" in
47897 *-pc-os2_emx | *-pc-os2-emx )
47898 SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
47899 SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
47900 cp -p ${srcdir}/src/os2/dllnames.sh .
47901 cp -p ${srcdir}/src/os2/dllar.sh .
47902 ;;
47903 esac
ceec2216
RL
47904else
47905
47906 EXE_LINKER="$CXX -o"
47907
47908fi
69120ee4
VZ
47909if test "$wxUSE_OMF" = "yes"; then
47910 case "${host}" in
47911 *-pc-os2_emx | *-pc-os2-emx )
47912 LDFLAGS="$LDFLAGS -Zlinker /EXEPACK"
47913 LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
47914 WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
47915 ;;
47916 esac
47917fi
a848cd7e 47918
c08ebc62 47919if test $GCC_PCH = 1 ; then
254e8e29 47920 CPPFLAGS="-DWX_PRECOMP $CPPFLAGS"
ddd14b14 47921fi
a848cd7e 47922
5ff751d6 47923WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS $TOOLCHAIN_DEFS"
a848cd7e
SC
47924
47925SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
47926
47927
47928
47929
47930
47931
47932
47933
47934
47935
47936
47937
47938
47939
47940
47941
47942
47943
47944
47945
47946
47947
47948
47949
47950
47951
47952
47953
47954
47955
47956
47957
47958
47959
47960
47961
47962
47963
47964
47965
47966
47967
a848cd7e
SC
47968
47969
47970
47971
47972
47973
47974
47975
47976
47977
47978
47979
a848cd7e
SC
47980
47981
ddd14b14 47982
370d2fd7 47983
8ced02f6 47984
a848cd7e
SC
47985
47986
47987echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
47988echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 47989set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
47990if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
47991 echo $ECHO_N "(cached) $ECHO_C" >&6
47992else
47993 cat >conftest.make <<\_ACEOF
47994all:
47995 @echo 'ac_maketemp="$(MAKE)"'
47996_ACEOF
47997# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
47998eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
47999if test -n "$ac_maketemp"; then
48000 eval ac_cv_prog_make_${ac_make}_set=yes
48001else
48002 eval ac_cv_prog_make_${ac_make}_set=no
48003fi
48004rm -f conftest.make
48005fi
48006if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
48007 echo "$as_me:$LINENO: result: yes" >&5
48008echo "${ECHO_T}yes" >&6
48009 SET_MAKE=
48010else
48011 echo "$as_me:$LINENO: result: no" >&5
48012echo "${ECHO_T}no" >&6
48013 SET_MAKE="MAKE=${MAKE-make}"
48014fi
48015
48016
a848cd7e 48017
ceec2216
RL
48018 ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
48019
a848cd7e 48020
5c60e845
MW
48021if test "$USE_WIN32" = 1; then
48022 ac_config_commands="$ac_config_commands
48023 rcdefs.h
48024 "
48025
48026fi
48027
ceec2216 48028 ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
a848cd7e 48029
a848cd7e 48030
ceec2216 48031 ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
a848cd7e 48032
ceec2216
RL
48033
48034 ac_config_files="$ac_config_files version-script Makefile"
48035
48036
5c60e845 48037 ac_config_commands="$ac_config_commands wx-config"
a848cd7e
SC
48038
48039
9103d280 48040
1c14217d 48041if test "$wxWITH_SUBDIRS" != "no"; then
a848cd7e
SC
48042if test "$wxUSE_GUI" = "yes"; then
48043 SUBDIRS="samples demos utils contrib"
48044else SUBDIRS="samples utils"
48045fi
48046
48047
48048
48049# Check whether --with-cppunit-prefix or --without-cppunit-prefix was given.
48050if test "${with_cppunit_prefix+set}" = set; then
48051 withval="$with_cppunit_prefix"
48052 cppunit_config_prefix="$withval"
48053else
48054 cppunit_config_prefix=""
48055fi;
48056
48057# Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given.
48058if test "${with_cppunit_exec_prefix+set}" = set; then
48059 withval="$with_cppunit_exec_prefix"
48060 cppunit_config_exec_prefix="$withval"
48061else
48062 cppunit_config_exec_prefix=""
48063fi;
48064
48065 if test x$cppunit_config_exec_prefix != x ; then
48066 cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
48067 if test x${CPPUNIT_CONFIG+set} != xset ; then
48068 CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
48069 fi
48070 fi
48071 if test x$cppunit_config_prefix != x ; then
48072 cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
48073 if test x${CPPUNIT_CONFIG+set} != xset ; then
48074 CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
48075 fi
48076 fi
48077
48078 # Extract the first word of "cppunit-config", so it can be a program name with args.
48079set dummy cppunit-config; ac_word=$2
48080echo "$as_me:$LINENO: checking for $ac_word" >&5
48081echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
48082if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
48083 echo $ECHO_N "(cached) $ECHO_C" >&6
48084else
48085 case $CPPUNIT_CONFIG in
48086 [\\/]* | ?:[\\/]*)
48087 ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
48088 ;;
48089 *)
48090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48091for as_dir in $PATH
48092do
48093 IFS=$as_save_IFS
48094 test -z "$as_dir" && as_dir=.
48095 for ac_exec_ext in '' $ac_executable_extensions; do
48096 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48097 ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
48098 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48099 break 2
48100 fi
48101done
48102done
48103
48104 test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
48105 ;;
48106esac
48107fi
48108CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
48109
48110if test -n "$CPPUNIT_CONFIG"; then
48111 echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
48112echo "${ECHO_T}$CPPUNIT_CONFIG" >&6
48113else
48114 echo "$as_me:$LINENO: result: no" >&5
48115echo "${ECHO_T}no" >&6
48116fi
48117
48118 cppunit_version_min=1.8.0
48119
48120 echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
48121echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6
48122 no_cppunit=""
48123 if test "$CPPUNIT_CONFIG" = "no" ; then
48124 no_cppunit=yes
48125 else
48126 CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
48127 CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
48128 cppunit_version=`$CPPUNIT_CONFIG --version`
48129
48130 cppunit_major_version=`echo $cppunit_version | \
48131 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
48132 cppunit_minor_version=`echo $cppunit_version | \
48133 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
48134 cppunit_micro_version=`echo $cppunit_version | \
48135 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
48136
48137 cppunit_major_min=`echo $cppunit_version_min | \
48138 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
48139 cppunit_minor_min=`echo $cppunit_version_min | \
48140 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
48141 cppunit_micro_min=`echo $cppunit_version_min | \
48142 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
48143
48144 cppunit_version_proper=`expr \
48145 $cppunit_major_version \> $cppunit_major_min \| \
48146 $cppunit_major_version \= $cppunit_major_min \& \
48147 $cppunit_minor_version \> $cppunit_minor_min \| \
48148 $cppunit_major_version \= $cppunit_major_min \& \
48149 $cppunit_minor_version \= $cppunit_minor_min \& \
48150 $cppunit_micro_version \>= $cppunit_micro_min `
48151
48152 if test "$cppunit_version_proper" = "1" ; then
48153 echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
48154echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6
48155 else
48156 echo "$as_me:$LINENO: result: no" >&5
48157echo "${ECHO_T}no" >&6
48158 no_cppunit=yes
48159 fi
48160 fi
48161
48162 if test "x$no_cppunit" = x ; then
c2218763 48163 SUBDIRS="$SUBDIRS tests"
a848cd7e
SC
48164 else
48165 CPPUNIT_CFLAGS=""
48166 CPPUNIT_LIBS=""
c2218763 48167 :
a848cd7e
SC
48168 fi
48169
48170
48171
48172
48173
48174for subdir in `echo $SUBDIRS`; do
48175 if test -d ${srcdir}/${subdir} ; then
48176 if test "$wxUSE_GUI" = "yes"; then
48177 if test ${subdir} = "samples"; then
48178 makefiles="samples/Makefile.in $makefiles"
48179 for sample in `echo $SAMPLES_SUBDIRS`; do
48180 if test -d $srcdir/samples/$sample; then
48181 makefiles="samples/$sample/Makefile.in $makefiles"
48182 fi
48183 done
9c112555
MW
48184 else
48185 disabled_var=DISABLED_`echo $subdir | tr [a-z] [A-Z]`;
48186 eval "disabled=\$$disabled_var"
48187 disabled=/`echo X $disabled | sed 's@ @/|/@g'`/
48188 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in) | egrep -v "$disabled"`
a848cd7e
SC
48189 fi
48190 else if test ${subdir} = "samples"; then
48191 makefiles="samples/Makefile.in samples/console/Makefile.in"
48192 elif test ${subdir} = "utils"; then
6537ccf8
VS
48193 makefiles=""
48194 for util in HelpGen tex2rtf ; do
48195 if test -d $srcdir/utils/$util ; then
48196 makefiles="utils/$util/Makefile.in \
48197 utils/$util/src/Makefile.in \
48198 $makefiles"
48199 fi
48200 done
a848cd7e
SC
48201 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
48202 fi
48203 fi
48204
48205 for mkin in $makefiles ; do
48206 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
48207 ac_config_files="$ac_config_files $mk"
48208
48209 done
48210 fi
48211done
1c14217d 48212fi
a848cd7e
SC
48213cat >confcache <<\_ACEOF
48214# This file is a shell script that caches the results of configure
48215# tests run on this system so they can be shared between configure
48216# scripts and configure runs, see configure's option --config-cache.
48217# It is not useful on other systems. If it contains results you don't
48218# want to keep, you may remove or edit it.
48219#
48220# config.status only pays attention to the cache file if you give it
48221# the --recheck option to rerun configure.
48222#
48223# `ac_cv_env_foo' variables (set or unset) will be overridden when
48224# loading this file, other *unset* `ac_cv_foo' will be assigned the
48225# following values.
48226
48227_ACEOF
48228
48229# The following way of writing the cache mishandles newlines in values,
48230# but we know of no workaround that is simple, portable, and efficient.
48231# So, don't put newlines in cache variables' values.
48232# Ultrix sh set writes to stderr and can't be redirected directly,
48233# and sets the high bit in the cache file unless we assign to the vars.
48234{
48235 (set) 2>&1 |
48236 case `(ac_space=' '; set | grep ac_space) 2>&1` in
48237 *ac_space=\ *)
48238 # `set' does not quote correctly, so add quotes (double-quote
48239 # substitution turns \\\\ into \\, and sed turns \\ into \).
48240 sed -n \
ac1cb8d3
VS
48241 "s/'/'\\\\''/g;
48242 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
48243 ;;
48244 *)
48245 # `set' quotes correctly as required by POSIX, so do not add quotes.
48246 sed -n \
ac1cb8d3 48247 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
48248 ;;
48249 esac;
48250} |
48251 sed '
48252 t clear
48253 : clear
48254 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
48255 t end
48256 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
48257 : end' >>confcache
48258if diff $cache_file confcache >/dev/null 2>&1; then :; else
48259 if test -w $cache_file; then
48260 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
48261 cat confcache >$cache_file
48262 else
48263 echo "not updating unwritable cache $cache_file"
48264 fi
48265fi
48266rm -f confcache
48267
48268test "x$prefix" = xNONE && prefix=$ac_default_prefix
48269# Let make expand exec_prefix.
48270test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
48271
48272# VPATH may cause trouble with some makes, so we remove $(srcdir),
48273# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
48274# trailing colons and then remove the whole line if VPATH becomes empty
48275# (actually we leave an empty line to preserve line numbers).
48276if test "x$srcdir" = x.; then
ac1cb8d3 48277 ac_vpsub='/^[ ]*VPATH[ ]*=/{
a848cd7e
SC
48278s/:*\$(srcdir):*/:/;
48279s/:*\${srcdir}:*/:/;
48280s/:*@srcdir@:*/:/;
ac1cb8d3 48281s/^\([^=]*=[ ]*\):*/\1/;
a848cd7e 48282s/:*$//;
ac1cb8d3 48283s/^[^=]*=[ ]*$//;
a848cd7e
SC
48284}'
48285fi
48286
48287DEFS=-DHAVE_CONFIG_H
48288
48289ac_libobjs=
48290ac_ltlibobjs=
48291for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
48292 # 1. Remove the extension, and $U if already installed.
48293 ac_i=`echo "$ac_i" |
ac1cb8d3 48294 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
a848cd7e
SC
48295 # 2. Add them.
48296 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
48297 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
48298done
48299LIBOBJS=$ac_libobjs
48300
48301LTLIBOBJS=$ac_ltlibobjs
48302
48303
48304
48305: ${CONFIG_STATUS=./config.status}
48306ac_clean_files_save=$ac_clean_files
48307ac_clean_files="$ac_clean_files $CONFIG_STATUS"
48308{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
48309echo "$as_me: creating $CONFIG_STATUS" >&6;}
48310cat >$CONFIG_STATUS <<_ACEOF
48311#! $SHELL
48312# Generated by $as_me.
48313# Run this file to recreate the current configuration.
48314# Compiler output produced by configure, useful for debugging
48315# configure, is in config.log if it exists.
48316
48317debug=false
48318ac_cs_recheck=false
48319ac_cs_silent=false
48320SHELL=\${CONFIG_SHELL-$SHELL}
48321_ACEOF
48322
48323cat >>$CONFIG_STATUS <<\_ACEOF
48324## --------------------- ##
48325## M4sh Initialization. ##
48326## --------------------- ##
48327
48328# Be Bourne compatible
48329if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
48330 emulate sh
48331 NULLCMD=:
48332 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
48333 # is contrary to our usage. Disable this feature.
48334 alias -g '${1+"$@"}'='"$@"'
48335elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
48336 set -o posix
48337fi
ac1cb8d3 48338DUALCASE=1; export DUALCASE # for MKS sh
a848cd7e
SC
48339
48340# Support unset when possible.
ac1cb8d3 48341if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a848cd7e
SC
48342 as_unset=unset
48343else
48344 as_unset=false
48345fi
48346
48347
48348# Work around bugs in pre-3.0 UWIN ksh.
48349$as_unset ENV MAIL MAILPATH
48350PS1='$ '
48351PS2='> '
48352PS4='+ '
48353
48354# NLS nuisances.
48355for as_var in \
48356 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
48357 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
48358 LC_TELEPHONE LC_TIME
48359do
ac1cb8d3 48360 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
48361 eval $as_var=C; export $as_var
48362 else
48363 $as_unset $as_var
48364 fi
48365done
48366
48367# Required to use basename.
48368if expr a : '\(a\)' >/dev/null 2>&1; then
48369 as_expr=expr
48370else
48371 as_expr=false
48372fi
48373
48374if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
48375 as_basename=basename
48376else
48377 as_basename=false
48378fi
48379
48380
48381# Name of the executable.
48382as_me=`$as_basename "$0" ||
48383$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
48384 X"$0" : 'X\(//\)$' \| \
48385 X"$0" : 'X\(/\)$' \| \
48386 . : '\(.\)' 2>/dev/null ||
48387echo X/"$0" |
48388 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
48389 /^X\/\(\/\/\)$/{ s//\1/; q; }
48390 /^X\/\(\/\).*/{ s//\1/; q; }
48391 s/.*/./; q'`
48392
48393
48394# PATH needs CR, and LINENO needs CR and PATH.
48395# Avoid depending upon Character Ranges.
48396as_cr_letters='abcdefghijklmnopqrstuvwxyz'
48397as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
48398as_cr_Letters=$as_cr_letters$as_cr_LETTERS
48399as_cr_digits='0123456789'
48400as_cr_alnum=$as_cr_Letters$as_cr_digits
48401
48402# The user is always right.
48403if test "${PATH_SEPARATOR+set}" != set; then
48404 echo "#! /bin/sh" >conf$$.sh
48405 echo "exit 0" >>conf$$.sh
48406 chmod +x conf$$.sh
48407 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48408 PATH_SEPARATOR=';'
48409 else
48410 PATH_SEPARATOR=:
48411 fi
48412 rm -f conf$$.sh
48413fi
48414
48415
48416 as_lineno_1=$LINENO
48417 as_lineno_2=$LINENO
48418 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
48419 test "x$as_lineno_1" != "x$as_lineno_2" &&
48420 test "x$as_lineno_3" = "x$as_lineno_2" || {
48421 # Find who we are. Look in the path if we contain no path at all
48422 # relative or not.
48423 case $0 in
48424 *[\\/]* ) as_myself=$0 ;;
48425 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48426for as_dir in $PATH
48427do
48428 IFS=$as_save_IFS
48429 test -z "$as_dir" && as_dir=.
48430 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
48431done
48432
48433 ;;
48434 esac
48435 # We did not find ourselves, most probably we were run as `sh COMMAND'
48436 # in which case we are not to be found in the path.
48437 if test "x$as_myself" = x; then
48438 as_myself=$0
48439 fi
48440 if test ! -f "$as_myself"; then
48441 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
48442echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
48443 { (exit 1); exit 1; }; }
48444 fi
48445 case $CONFIG_SHELL in
48446 '')
48447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48448for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
48449do
48450 IFS=$as_save_IFS
48451 test -z "$as_dir" && as_dir=.
48452 for as_base in sh bash ksh sh5; do
48453 case $as_dir in
48454 /*)
48455 if ("$as_dir/$as_base" -c '
48456 as_lineno_1=$LINENO
48457 as_lineno_2=$LINENO
48458 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
48459 test "x$as_lineno_1" != "x$as_lineno_2" &&
48460 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
48461 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
48462 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
48463 CONFIG_SHELL=$as_dir/$as_base
48464 export CONFIG_SHELL
48465 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
48466 fi;;
48467 esac
48468 done
48469done
48470;;
48471 esac
48472
48473 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
48474 # uniformly replaced by the line number. The first 'sed' inserts a
48475 # line-number line before each line; the second 'sed' does the real
48476 # work. The second script uses 'N' to pair each line-number line
48477 # with the numbered line, and appends trailing '-' during
48478 # substitution so that $LINENO is not a special case at line end.
48479 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
48480 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
48481 sed '=' <$as_myself |
48482 sed '
48483 N
48484 s,$,-,
48485 : loop
48486 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
48487 t loop
48488 s,-$,,
48489 s,^['$as_cr_digits']*\n,,
48490 ' >$as_me.lineno &&
48491 chmod +x $as_me.lineno ||
48492 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
48493echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
48494 { (exit 1); exit 1; }; }
48495
48496 # Don't try to exec as it changes $[0], causing all sort of problems
48497 # (the dirname of $[0] is not the place where we might find the
48498 # original and so on. Autoconf is especially sensible to this).
48499 . ./$as_me.lineno
48500 # Exit status is that of the last command.
48501 exit
48502}
48503
48504
48505case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
48506 *c*,-n*) ECHO_N= ECHO_C='
48507' ECHO_T=' ' ;;
48508 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
48509 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
48510esac
48511
48512if expr a : '\(a\)' >/dev/null 2>&1; then
48513 as_expr=expr
48514else
48515 as_expr=false
48516fi
48517
48518rm -f conf$$ conf$$.exe conf$$.file
48519echo >conf$$.file
48520if ln -s conf$$.file conf$$ 2>/dev/null; then
48521 # We could just check for DJGPP; but this test a) works b) is more generic
48522 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
48523 if test -f conf$$.exe; then
48524 # Don't use ln at all; we don't have any links
48525 as_ln_s='cp -p'
48526 else
48527 as_ln_s='ln -s'
48528 fi
48529elif ln conf$$.file conf$$ 2>/dev/null; then
48530 as_ln_s=ln
48531else
48532 as_ln_s='cp -p'
48533fi
48534rm -f conf$$ conf$$.exe conf$$.file
48535
48536if mkdir -p . 2>/dev/null; then
48537 as_mkdir_p=:
48538else
ac1cb8d3 48539 test -d ./-p && rmdir ./-p
a848cd7e
SC
48540 as_mkdir_p=false
48541fi
48542
48543as_executable_p="test -f"
48544
48545# Sed expression to map a string onto a valid CPP name.
ac1cb8d3 48546as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
48547
48548# Sed expression to map a string onto a valid variable name.
ac1cb8d3 48549as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
48550
48551
48552# IFS
48553# We need space, tab and new line, in precisely that order.
48554as_nl='
48555'
48556IFS=" $as_nl"
48557
48558# CDPATH.
48559$as_unset CDPATH
48560
48561exec 6>&1
48562
48563# Open the log real soon, to keep \$[0] and so on meaningful, and to
48564# report actual input values of CONFIG_FILES etc. instead of their
48565# values after options handling. Logging --version etc. is OK.
48566exec 5>>config.log
48567{
48568 echo
48569 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
48570## Running $as_me. ##
48571_ASBOX
48572} >&5
48573cat >&5 <<_CSEOF
48574
dd8df4fc 48575This file was extended by wxWidgets $as_me 2.7.0, which was
ac1cb8d3 48576generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
48577
48578 CONFIG_FILES = $CONFIG_FILES
48579 CONFIG_HEADERS = $CONFIG_HEADERS
48580 CONFIG_LINKS = $CONFIG_LINKS
48581 CONFIG_COMMANDS = $CONFIG_COMMANDS
48582 $ $0 $@
48583
48584_CSEOF
48585echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
48586echo >&5
48587_ACEOF
48588
48589# Files that config.status was made for.
48590if test -n "$ac_config_files"; then
48591 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
48592fi
48593
48594if test -n "$ac_config_headers"; then
48595 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
48596fi
48597
48598if test -n "$ac_config_links"; then
48599 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
48600fi
48601
48602if test -n "$ac_config_commands"; then
48603 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
48604fi
48605
48606cat >>$CONFIG_STATUS <<\_ACEOF
48607
48608ac_cs_usage="\
48609\`$as_me' instantiates files from templates according to the
48610current configuration.
48611
48612Usage: $0 [OPTIONS] [FILE]...
48613
48614 -h, --help print this help, then exit
48615 -V, --version print version number, then exit
48616 -q, --quiet do not print progress messages
48617 -d, --debug don't remove temporary files
48618 --recheck update $as_me by reconfiguring in the same conditions
48619 --file=FILE[:TEMPLATE]
ac1cb8d3 48620 instantiate the configuration file FILE
a848cd7e 48621 --header=FILE[:TEMPLATE]
ac1cb8d3 48622 instantiate the configuration header FILE
a848cd7e
SC
48623
48624Configuration files:
48625$config_files
48626
48627Configuration headers:
48628$config_headers
48629
48630Configuration commands:
48631$config_commands
48632
48633Report bugs to <bug-autoconf@gnu.org>."
48634_ACEOF
48635
48636cat >>$CONFIG_STATUS <<_ACEOF
48637ac_cs_version="\\
dd8df4fc 48638wxWidgets config.status 2.7.0
ac1cb8d3 48639configured by $0, generated by GNU Autoconf 2.59,
a848cd7e
SC
48640 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
48641
ac1cb8d3 48642Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
48643This config.status script is free software; the Free Software Foundation
48644gives unlimited permission to copy, distribute and modify it."
48645srcdir=$srcdir
48646INSTALL="$INSTALL"
48647_ACEOF
48648
48649cat >>$CONFIG_STATUS <<\_ACEOF
48650# If no file are specified by the user, then we need to provide default
48651# value. By we need to know if files were specified by the user.
48652ac_need_defaults=:
48653while test $# != 0
48654do
48655 case $1 in
48656 --*=*)
48657 ac_option=`expr "x$1" : 'x\([^=]*\)='`
48658 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
48659 ac_shift=:
48660 ;;
48661 -*)
48662 ac_option=$1
48663 ac_optarg=$2
48664 ac_shift=shift
48665 ;;
48666 *) # This is not an option, so the user has probably given explicit
48667 # arguments.
48668 ac_option=$1
48669 ac_need_defaults=false;;
48670 esac
48671
48672 case $ac_option in
48673 # Handling of the options.
48674_ACEOF
48675cat >>$CONFIG_STATUS <<\_ACEOF
48676 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
48677 ac_cs_recheck=: ;;
48678 --version | --vers* | -V )
48679 echo "$ac_cs_version"; exit 0 ;;
48680 --he | --h)
48681 # Conflict between --help and --header
48682 { { echo "$as_me:$LINENO: error: ambiguous option: $1
48683Try \`$0 --help' for more information." >&5
48684echo "$as_me: error: ambiguous option: $1
48685Try \`$0 --help' for more information." >&2;}
48686 { (exit 1); exit 1; }; };;
48687 --help | --hel | -h )
48688 echo "$ac_cs_usage"; exit 0 ;;
48689 --debug | --d* | -d )
48690 debug=: ;;
48691 --file | --fil | --fi | --f )
48692 $ac_shift
48693 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
48694 ac_need_defaults=false;;
48695 --header | --heade | --head | --hea )
48696 $ac_shift
48697 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
48698 ac_need_defaults=false;;
48699 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
48700 | -silent | --silent | --silen | --sile | --sil | --si | --s)
48701 ac_cs_silent=: ;;
48702
48703 # This is an error.
48704 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
48705Try \`$0 --help' for more information." >&5
48706echo "$as_me: error: unrecognized option: $1
48707Try \`$0 --help' for more information." >&2;}
48708 { (exit 1); exit 1; }; } ;;
48709
48710 *) ac_config_targets="$ac_config_targets $1" ;;
48711
48712 esac
48713 shift
48714done
48715
48716ac_configure_extra_args=
48717
48718if $ac_cs_silent; then
48719 exec 6>/dev/null
48720 ac_configure_extra_args="$ac_configure_extra_args --silent"
48721fi
48722
48723_ACEOF
48724cat >>$CONFIG_STATUS <<_ACEOF
48725if \$ac_cs_recheck; then
48726 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
48727 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
48728fi
48729
48730_ACEOF
48731
48732cat >>$CONFIG_STATUS <<_ACEOF
48733#
48734# INIT-COMMANDS section.
48735#
48736
5c60e845
MW
48737
48738 CPP="$CPP"
48739 infile="$srcdir/include/wx/msw/genrcdefs.h"
48740 outdir="lib/wx/include/$TOOLCHAIN_FULLNAME/wx/msw"
48741
48742
ceec2216
RL
48743 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
48744 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
48745 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
48746 LN_S="${LN_S}"
a848cd7e
SC
48747
48748
48749_ACEOF
48750
48751
48752
48753cat >>$CONFIG_STATUS <<\_ACEOF
48754for ac_config_target in $ac_config_targets
48755do
48756 case "$ac_config_target" in
48757 # Handling of arguments.
ceec2216
RL
48758 "lib/wx/config/${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
48759 "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
a848cd7e
SC
48760 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
48761 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
48762 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
5c60e845 48763 "rcdefs.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS rcdefs.h" ;;
ceec2216
RL
48764 "wx-config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
48765 "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
48766 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
48767echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
48768 { (exit 1); exit 1; }; };;
48769 esac
48770done
48771
48772# If the user did not use the arguments to specify the items to instantiate,
48773# then the envvar interface is used. Set only those that are not.
48774# We use the long form for the default assignment because of an extremely
48775# bizarre bug on SunOS 4.1.3.
48776if $ac_need_defaults; then
48777 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
48778 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
48779 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
48780fi
48781
48782# Have a temporary directory for convenience. Make it in the build tree
48783# simply because there is no reason to put it here, and in addition,
48784# creating and moving files from /tmp can sometimes cause problems.
48785# Create a temporary directory, and hook for its removal unless debugging.
48786$debug ||
48787{
48788 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
48789 trap '{ (exit 1); exit 1; }' 1 2 13 15
48790}
48791
48792# Create a (secure) tmp directory for tmp files.
48793
48794{
48795 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
48796 test -n "$tmp" && test -d "$tmp"
48797} ||
48798{
48799 tmp=./confstat$$-$RANDOM
48800 (umask 077 && mkdir $tmp)
48801} ||
48802{
48803 echo "$me: cannot create a temporary directory in ." >&2
48804 { (exit 1); exit 1; }
48805}
48806
48807_ACEOF
48808
48809cat >>$CONFIG_STATUS <<_ACEOF
48810
48811#
48812# CONFIG_FILES section.
48813#
48814
48815# No need to generate the scripts if there are no CONFIG_FILES.
48816# This happens for instance when ./config.status config.h
48817if test -n "\$CONFIG_FILES"; then
48818 # Protect against being on the right side of a sed subst in config.status.
48819 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
48820 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
48821s,@SHELL@,$SHELL,;t t
48822s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
48823s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
48824s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
48825s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
48826s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
48827s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
48828s,@exec_prefix@,$exec_prefix,;t t
48829s,@prefix@,$prefix,;t t
48830s,@program_transform_name@,$program_transform_name,;t t
48831s,@bindir@,$bindir,;t t
48832s,@sbindir@,$sbindir,;t t
48833s,@libexecdir@,$libexecdir,;t t
48834s,@datadir@,$datadir,;t t
48835s,@sysconfdir@,$sysconfdir,;t t
48836s,@sharedstatedir@,$sharedstatedir,;t t
48837s,@localstatedir@,$localstatedir,;t t
48838s,@libdir@,$libdir,;t t
48839s,@includedir@,$includedir,;t t
48840s,@oldincludedir@,$oldincludedir,;t t
48841s,@infodir@,$infodir,;t t
48842s,@mandir@,$mandir,;t t
48843s,@build_alias@,$build_alias,;t t
48844s,@host_alias@,$host_alias,;t t
48845s,@target_alias@,$target_alias,;t t
48846s,@DEFS@,$DEFS,;t t
48847s,@ECHO_C@,$ECHO_C,;t t
48848s,@ECHO_N@,$ECHO_N,;t t
48849s,@ECHO_T@,$ECHO_T,;t t
48850s,@LIBS@,$LIBS,;t t
48851s,@build@,$build,;t t
48852s,@build_cpu@,$build_cpu,;t t
48853s,@build_vendor@,$build_vendor,;t t
48854s,@build_os@,$build_os,;t t
48855s,@host@,$host,;t t
48856s,@host_cpu@,$host_cpu,;t t
48857s,@host_vendor@,$host_vendor,;t t
48858s,@host_os@,$host_os,;t t
48859s,@target@,$target,;t t
48860s,@target_cpu@,$target_cpu,;t t
48861s,@target_vendor@,$target_vendor,;t t
48862s,@target_os@,$target_os,;t t
48863s,@CC@,$CC,;t t
48864s,@CFLAGS@,$CFLAGS,;t t
48865s,@LDFLAGS@,$LDFLAGS,;t t
48866s,@CPPFLAGS@,$CPPFLAGS,;t t
48867s,@ac_ct_CC@,$ac_ct_CC,;t t
48868s,@EXEEXT@,$EXEEXT,;t t
48869s,@OBJEXT@,$OBJEXT,;t t
48870s,@CPP@,$CPP,;t t
48871s,@EGREP@,$EGREP,;t t
48872s,@CXX@,$CXX,;t t
48873s,@CXXFLAGS@,$CXXFLAGS,;t t
48874s,@ac_ct_CXX@,$ac_ct_CXX,;t t
48875s,@RANLIB@,$RANLIB,;t t
48876s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
48877s,@AR@,$AR,;t t
8c80d384 48878s,@ac_ct_AR@,$ac_ct_AR,;t t
a848cd7e
SC
48879s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
48880s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
48881s,@INSTALL_DATA@,$INSTALL_DATA,;t t
48882s,@STRIP@,$STRIP,;t t
8c80d384 48883s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
8ced02f6
DE
48884s,@WINDRES@,$WINDRES,;t t
48885s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
8c80d384
DE
48886s,@DLLTOOL@,$DLLTOOL,;t t
48887s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
a848cd7e
SC
48888s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
48889s,@LN_S@,$LN_S,;t t
48890s,@CXXCPP@,$CXXCPP,;t t
48891s,@subdirs@,$subdirs,;t t
48892s,@PKG_CONFIG@,$PKG_CONFIG,;t t
48893s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
48894s,@GTK_LIBS@,$GTK_LIBS,;t t
48895s,@GTK_CONFIG@,$GTK_CONFIG,;t t
a848cd7e
SC
48896s,@X_CFLAGS@,$X_CFLAGS,;t t
48897s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
48898s,@X_LIBS@,$X_LIBS,;t t
48899s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
48900s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
48901s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
d1c38808
VZ
48902s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
48903s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
a848cd7e
SC
48904s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
48905s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
8ced02f6 48906s,@REZ@,$REZ,;t t
a848cd7e
SC
48907s,@DEREZ@,$DEREZ,;t t
48908s,@SETFILE@,$SETFILE,;t t
48909s,@LIBICONV@,$LIBICONV,;t t
48910s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
48911s,@SDL_CONFIG@,$SDL_CONFIG,;t t
48912s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
48913s,@SDL_LIBS@,$SDL_LIBS,;t t
d1c38808
VZ
48914s,@LIBGNOMEPRINTUI_CFLAGS@,$LIBGNOMEPRINTUI_CFLAGS,;t t
48915s,@LIBGNOMEPRINTUI_LIBS@,$LIBGNOMEPRINTUI_LIBS,;t t
2b850ae1
RR
48916s,@GNOMEVFS_CFLAGS@,$GNOMEVFS_CFLAGS,;t t
48917s,@GNOMEVFS_LIBS@,$GNOMEVFS_LIBS,;t t
3565d135
RR
48918s,@HILDON_CFLAGS@,$HILDON_CFLAGS,;t t
48919s,@HILDON_LIBS@,$HILDON_LIBS,;t t
f10e38c4
VZ
48920s,@GST_CFLAGS@,$GST_CFLAGS,;t t
48921s,@GST_LIBS@,$GST_LIBS,;t t
a848cd7e
SC
48922s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
48923s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
48924s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
48925s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
48926s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
48927s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
48928s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
48929s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
48930s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
48931s,@VENDOR@,$VENDOR,;t t
48932s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
ceec2216
RL
48933s,@WX_FLAVOUR@,$WX_FLAVOUR,;t t
48934s,@WX_LIB_FLAVOUR@,$WX_LIB_FLAVOUR,;t t
a848cd7e
SC
48935s,@WXUNIV@,$WXUNIV,;t t
48936s,@MONOLITHIC@,$MONOLITHIC,;t t
48937s,@USE_PLUGINS@,$USE_PLUGINS,;t t
48938s,@EXTRALIBS@,$EXTRALIBS,;t t
48939s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
48940s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
48941s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
48942s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
48943s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
48944s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t
48945s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t
d1c38808 48946s,@EXTRALIBS_GNOMEPRINT@,$EXTRALIBS_GNOMEPRINT,;t t
2b850ae1 48947s,@EXTRALIBS_GNOMEVFS@,$EXTRALIBS_GNOMEVFS,;t t
3565d135 48948s,@EXTRALIBS_HILDON@,$EXTRALIBS_HILDON,;t t
a848cd7e
SC
48949s,@UNICODE@,$UNICODE,;t t
48950s,@BUILD@,$BUILD,;t t
48951s,@DEBUG_INFO@,$DEBUG_INFO,;t t
48952s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
a848cd7e
SC
48953s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
48954s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
48955s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
48956s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
48957s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
48958s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t
48959s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t
48960s,@SET_MAKE@,$SET_MAKE,;t t
48961s,@MAKE_SET@,$MAKE_SET,;t t
a848cd7e
SC
48962s,@NM@,$NM,;t t
48963s,@ac_ct_NM@,$ac_ct_NM,;t t
48964s,@INSTALL_DIR@,$INSTALL_DIR,;t t
48965s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
48966s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
48967s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
48968s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
48969s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
1e9e8aba 48970s,@PLATFORM_MACOS@,$PLATFORM_MACOS,;t t
a848cd7e
SC
48971s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
48972s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
1e9e8aba 48973s,@PLATFORM_BEOS@,$PLATFORM_BEOS,;t t
a848cd7e
SC
48974s,@SO_SUFFIX@,$SO_SUFFIX,;t t
48975s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
48976s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t
48977s,@LIBPREFIX@,$LIBPREFIX,;t t
48978s,@LIBEXT@,$LIBEXT,;t t
48979s,@DLLPREFIX@,$DLLPREFIX,;t t
48980s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
810b94f0 48981s,@dlldir@,$dlldir,;t t
a848cd7e
SC
48982s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
48983s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
48984s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
48985s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
48986s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
48987s,@PIC_FLAG@,$PIC_FLAG,;t t
810b94f0 48988s,@WINDOWS_IMPLIB@,$WINDOWS_IMPLIB,;t t
a848cd7e
SC
48989s,@USE_SOVERSION@,$USE_SOVERSION,;t t
48990s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
48991s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
810b94f0 48992s,@USE_SOVERCYGWIN@,$USE_SOVERCYGWIN,;t t
a848cd7e
SC
48993s,@USE_MACVERSION@,$USE_MACVERSION,;t t
48994s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
48995s,@SONAME_FLAG@,$SONAME_FLAG,;t t
48996s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
48997s,@GCC_PCH@,$GCC_PCH,;t t
f10e38c4 48998s,@ICC_PCH@,$ICC_PCH,;t t
a848cd7e
SC
48999s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
49000s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
49001s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
49002s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t
49003s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t
49004s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
49005s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
49006s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t
49007s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t
49008s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
49009s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
49010s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
49011s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
49012s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
49013s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
f10e38c4 49014s,@COND_ICC_PCH_1@,$COND_ICC_PCH_1,;t t
a848cd7e
SC
49015s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
49016s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
49017s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
90970d69 49018s,@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 49019s,@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 49020s,@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 49021s,@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 49022s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
ceec2216 49023s,@COND_MONOLITHIC_0_SHARED_0_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1,;t t
a848cd7e
SC
49024s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
49025s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
90970d69 49026s,@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 49027s,@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 49028s,@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 49029s,@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 49030s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
ceec2216 49031s,@COND_MONOLITHIC_0_SHARED_1_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1,;t t
e5efa97e 49032s,@COND_MONOLITHIC_0_USE_MEDIA_1@,$COND_MONOLITHIC_0_USE_MEDIA_1,;t t
a848cd7e
SC
49033s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t
49034s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
49035s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
49036s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
49037s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
49038s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
eb730a0c 49039s,@COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1,;t t
a848cd7e
SC
49040s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
49041s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
a30f955f 49042s,@COND_PLATFORM_MACOSX_1_TOOLKIT_@,$COND_PLATFORM_MACOSX_1_TOOLKIT_,;t t
a848cd7e
SC
49043s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
49044s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
49045s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
fc480dc1 49046s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1,;t t
1e9e8aba 49047s,@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
49048s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t
49049s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t
a848cd7e
SC
49050s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
49051s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
b48a2016 49052s,@COND_PLATFORM_MACOS_1@,$COND_PLATFORM_MACOS_1,;t t
083508af 49053s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
e5efa97e 49054s,@COND_PLATFORM_MSDOS_0@,$COND_PLATFORM_MSDOS_0,;t t
83d8eb47 49055s,@COND_PLATFORM_MSDOS_1@,$COND_PLATFORM_MSDOS_1,;t t
a848cd7e
SC
49056s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
49057s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
49058s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
49059s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
49060s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t
49061s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
49062s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
49063s,@COND_SHARED_0@,$COND_SHARED_0,;t t
083508af
MW
49064s,@COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0,;t t
49065s,@COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0,;t t
49066s,@COND_SHARED_0_TOOLKIT_PM_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0,;t t
a848cd7e
SC
49067s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
49068s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
49069s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
49070s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
083508af 49071s,@COND_SHARED_0_USE_XRC_1@,$COND_SHARED_0_USE_XRC_1,;t t
a848cd7e
SC
49072s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
49073s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
49074s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
49075s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
49076s,@COND_SHARED_1@,$COND_SHARED_1,;t t
49077s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
083508af 49078s,@COND_SHARED_1_USE_XRC_1@,$COND_SHARED_1_USE_XRC_1,;t t
a30f955f 49079s,@COND_TOOLKIT_@,$COND_TOOLKIT_,;t t
a848cd7e 49080s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
a49baeab 49081s,@COND_TOOLKIT_COCOA_USE_GUI_1@,$COND_TOOLKIT_COCOA_USE_GUI_1,;t t
a848cd7e
SC
49082s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
49083s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
d044deea
MW
49084s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_,;t t
49085s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2,;t t
49086s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1,;t t
49087s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0,;t t
49088s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1,;t t
49089s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0,;t t
a848cd7e 49090s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
a848cd7e
SC
49091s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
49092s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
49093s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
49094s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
49095s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
49096s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
49097s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
49098s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
49099s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
49100s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
49101s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
0ee4059d 49102s,@COND_TOOLKIT_MSW_WXUNIV_0@,$COND_TOOLKIT_MSW_WXUNIV_0,;t t
a848cd7e
SC
49103s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
49104s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
49105s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
3fd9c298
DE
49106s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t
49107s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t
49108s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t
0ee4059d 49109s,@COND_TOOLKIT_WINCE_WXUNIV_0@,$COND_TOOLKIT_WINCE_WXUNIV_0,;t t
a848cd7e
SC
49110s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
49111s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
49112s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
49113s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
49114s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
49115s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
49116s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
49117s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
49118s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
49119s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
49120s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
49121s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
083508af
MW
49122s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
49123s,@COND_USE_OPENGL_1@,$COND_USE_OPENGL_1,;t t
f10e38c4 49124s,@COND_USE_PCH_1@,$COND_USE_PCH_1,;t t
a848cd7e 49125s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t
0b78747f
MW
49126s,@COND_USE_RTTI_0@,$COND_USE_RTTI_0,;t t
49127s,@COND_USE_RTTI_1@,$COND_USE_RTTI_1,;t t
a848cd7e 49128s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
eb730a0c 49129s,@COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1@,$COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1,;t t
a848cd7e
SC
49130s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
49131s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
49132s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
0b78747f
MW
49133s,@COND_USE_THREADS_0@,$COND_USE_THREADS_0,;t t
49134s,@COND_USE_THREADS_1@,$COND_USE_THREADS_1,;t t
a13a7f89 49135s,@COND_USE_XRC_1@,$COND_USE_XRC_1,;t t
eb730a0c 49136s,@COND_WINDOWS_IMPLIB_1@,$COND_WINDOWS_IMPLIB_1,;t t
a848cd7e 49137s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t
1e6eb025 49138s,@COND_WXUNIV_0@,$COND_WXUNIV_0,;t t
a848cd7e
SC
49139s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
49140s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
49141s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
49142s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
49143s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
49144s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
49145s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
49146s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
ceec2216 49147s,@SHARED@,$SHARED,;t t
a848cd7e
SC
49148s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
49149s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
a848cd7e
SC
49150s,@USE_GUI@,$USE_GUI,;t t
49151s,@AFMINSTALL@,$AFMINSTALL,;t t
49152s,@WIN32INSTALL@,$WIN32INSTALL,;t t
49153s,@TOOLKIT@,$TOOLKIT,;t t
49154s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
a848cd7e 49155s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
ceec2216 49156s,@TOOLCHAIN_FULLNAME@,$TOOLCHAIN_FULLNAME,;t t
a848cd7e 49157s,@cross_compiling@,$cross_compiling,;t t
ceec2216
RL
49158s,@WIDGET_SET@,$WIDGET_SET,;t t
49159s,@WX_RELEASE@,$WX_RELEASE,;t t
49160s,@WX_VERSION@,$WX_VERSION,;t t
49161s,@WX_SUBVERSION@,$WX_SUBVERSION,;t t
49162s,@WX_CHARTYPE@,$WX_CHARTYPE,;t t
49163s,@WX_DEBUGTYPE@,$WX_DEBUGTYPE,;t t
5ff751d6
VZ
49164s,@WXCONFIG_CPPFLAGS@,$WXCONFIG_CPPFLAGS,;t t
49165s,@WXCONFIG_CFLAGS@,$WXCONFIG_CFLAGS,;t t
49166s,@WXCONFIG_CXXFLAGS@,$WXCONFIG_CXXFLAGS,;t t
49167s,@WXCONFIG_LIBS@,$WXCONFIG_LIBS,;t t
a848cd7e
SC
49168s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
49169s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
004ee6da 49170s,@WXCONFIG_RESFLAGS@,$WXCONFIG_RESFLAGS,;t t
ceec2216 49171s,@EXE_LINKER@,$EXE_LINKER,;t t
a848cd7e 49172s,@GUIDIST@,$GUIDIST,;t t
a848cd7e
SC
49173s,@DISTDIR@,$DISTDIR,;t t
49174s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
49175s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
a848cd7e
SC
49176s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
49177s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
49178s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
004ee6da 49179s,@RESCOMP@,$RESCOMP,;t t
a848cd7e
SC
49180s,@RESFLAGS@,$RESFLAGS,;t t
49181s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
49182s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
49183s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
49184s,@LIBWXMACRES@,$LIBWXMACRES,;t t
8ced02f6 49185s,@POSTLINK_COMMAND@,$POSTLINK_COMMAND,;t t
a848cd7e 49186s,@MACSETFILE@,$MACSETFILE,;t t
a848cd7e 49187s,@GCC@,$GCC,;t t
a848cd7e
SC
49188s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t
49189s,@LIBOBJS@,$LIBOBJS,;t t
49190s,@LTLIBOBJS@,$LTLIBOBJS,;t t
49191CEOF
49192
49193_ACEOF
49194
49195 cat >>$CONFIG_STATUS <<\_ACEOF
49196 # Split the substitutions into bite-sized pieces for seds with
49197 # small command number limits, like on Digital OSF/1 and HP-UX.
49198 ac_max_sed_lines=48
49199 ac_sed_frag=1 # Number of current file.
49200 ac_beg=1 # First line for current file.
49201 ac_end=$ac_max_sed_lines # Line after last line for current file.
49202 ac_more_lines=:
49203 ac_sed_cmds=
49204 while $ac_more_lines; do
49205 if test $ac_beg -gt 1; then
49206 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
49207 else
49208 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
49209 fi
49210 if test ! -s $tmp/subs.frag; then
49211 ac_more_lines=false
49212 else
49213 # The purpose of the label and of the branching condition is to
49214 # speed up the sed processing (if there are no `@' at all, there
49215 # is no need to browse any of the substitutions).
49216 # These are the two extra sed commands mentioned above.
49217 (echo ':t
49218 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
49219 if test -z "$ac_sed_cmds"; then
ac1cb8d3 49220 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e 49221 else
ac1cb8d3 49222 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e
SC
49223 fi
49224 ac_sed_frag=`expr $ac_sed_frag + 1`
49225 ac_beg=$ac_end
49226 ac_end=`expr $ac_end + $ac_max_sed_lines`
49227 fi
49228 done
49229 if test -z "$ac_sed_cmds"; then
49230 ac_sed_cmds=cat
49231 fi
49232fi # test -n "$CONFIG_FILES"
49233
49234_ACEOF
49235cat >>$CONFIG_STATUS <<\_ACEOF
49236for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
49237 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
49238 case $ac_file in
49239 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
49240 cat >$tmp/stdin
49241 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
49242 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 49243 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 49244 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
49245 * ) ac_file_in=$ac_file.in ;;
49246 esac
49247
49248 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
49249 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
49250$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
49251 X"$ac_file" : 'X\(//\)[^/]' \| \
49252 X"$ac_file" : 'X\(//\)$' \| \
49253 X"$ac_file" : 'X\(/\)' \| \
49254 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
49255echo X"$ac_file" |
49256 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
49257 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
49258 /^X\(\/\/\)$/{ s//\1/; q; }
49259 /^X\(\/\).*/{ s//\1/; q; }
49260 s/.*/./; q'`
49261 { if $as_mkdir_p; then
49262 mkdir -p "$ac_dir"
49263 else
49264 as_dir="$ac_dir"
49265 as_dirs=
49266 while test ! -d "$as_dir"; do
49267 as_dirs="$as_dir $as_dirs"
49268 as_dir=`(dirname "$as_dir") 2>/dev/null ||
49269$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
49270 X"$as_dir" : 'X\(//\)[^/]' \| \
49271 X"$as_dir" : 'X\(//\)$' \| \
49272 X"$as_dir" : 'X\(/\)' \| \
49273 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
49274echo X"$as_dir" |
49275 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
49276 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
49277 /^X\(\/\/\)$/{ s//\1/; q; }
49278 /^X\(\/\).*/{ s//\1/; q; }
49279 s/.*/./; q'`
49280 done
49281 test ! -n "$as_dirs" || mkdir $as_dirs
49282 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
49283echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
49284 { (exit 1); exit 1; }; }; }
49285
49286 ac_builddir=.
49287
49288if test "$ac_dir" != .; then
49289 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
49290 # A "../" for each directory in $ac_dir_suffix.
49291 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
49292else
49293 ac_dir_suffix= ac_top_builddir=
49294fi
49295
49296case $srcdir in
49297 .) # No --srcdir option. We are building in place.
49298 ac_srcdir=.
49299 if test -z "$ac_top_builddir"; then
49300 ac_top_srcdir=.
49301 else
49302 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
49303 fi ;;
49304 [\\/]* | ?:[\\/]* ) # Absolute path.
49305 ac_srcdir=$srcdir$ac_dir_suffix;
49306 ac_top_srcdir=$srcdir ;;
49307 *) # Relative path.
49308 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
49309 ac_top_srcdir=$ac_top_builddir$srcdir ;;
49310esac
ac1cb8d3
VS
49311
49312# Do not use `cd foo && pwd` to compute absolute paths, because
49313# the directories may not exist.
49314case `pwd` in
49315.) ac_abs_builddir="$ac_dir";;
49316*)
49317 case "$ac_dir" in
49318 .) ac_abs_builddir=`pwd`;;
49319 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
49320 *) ac_abs_builddir=`pwd`/"$ac_dir";;
49321 esac;;
49322esac
49323case $ac_abs_builddir in
49324.) ac_abs_top_builddir=${ac_top_builddir}.;;
49325*)
49326 case ${ac_top_builddir}. in
49327 .) ac_abs_top_builddir=$ac_abs_builddir;;
49328 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
49329 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
49330 esac;;
49331esac
49332case $ac_abs_builddir in
49333.) ac_abs_srcdir=$ac_srcdir;;
49334*)
49335 case $ac_srcdir in
49336 .) ac_abs_srcdir=$ac_abs_builddir;;
49337 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
49338 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
49339 esac;;
49340esac
49341case $ac_abs_builddir in
49342.) ac_abs_top_srcdir=$ac_top_srcdir;;
49343*)
49344 case $ac_top_srcdir in
49345 .) ac_abs_top_srcdir=$ac_abs_builddir;;
49346 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
49347 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
49348 esac;;
49349esac
a848cd7e
SC
49350
49351
49352 case $INSTALL in
49353 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
49354 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
49355 esac
49356
a848cd7e
SC
49357 # Let's still pretend it is `configure' which instantiates (i.e., don't
49358 # use $as_me), people would be surprised to read:
49359 # /* config.h. Generated by config.status. */
49360 if test x"$ac_file" = x-; then
49361 configure_input=
49362 else
49363 configure_input="$ac_file. "
49364 fi
49365 configure_input=$configure_input"Generated from `echo $ac_file_in |
ac1cb8d3 49366 sed 's,.*/,,'` by configure."
a848cd7e
SC
49367
49368 # First look for the input files in the build tree, otherwise in the
49369 # src tree.
49370 ac_file_inputs=`IFS=:
49371 for f in $ac_file_in; do
49372 case $f in
49373 -) echo $tmp/stdin ;;
49374 [\\/$]*)
ac1cb8d3
VS
49375 # Absolute (can't be DOS-style, as IFS=:)
49376 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
49377echo "$as_me: error: cannot find input file: $f" >&2;}
49378 { (exit 1); exit 1; }; }
ac1cb8d3 49379 echo "$f";;
a848cd7e 49380 *) # Relative
ac1cb8d3
VS
49381 if test -f "$f"; then
49382 # Build tree
49383 echo "$f"
49384 elif test -f "$srcdir/$f"; then
49385 # Source tree
49386 echo "$srcdir/$f"
49387 else
49388 # /dev/null tree
49389 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
49390echo "$as_me: error: cannot find input file: $f" >&2;}
49391 { (exit 1); exit 1; }; }
ac1cb8d3 49392 fi;;
a848cd7e
SC
49393 esac
49394 done` || { (exit 1); exit 1; }
5d7b7554
VZ
49395
49396 if test x"$ac_file" != x-; then
49397 { echo "$as_me:$LINENO: creating $ac_file" >&5
49398echo "$as_me: creating $ac_file" >&6;}
49399 rm -f "$ac_file"
49400 fi
a848cd7e
SC
49401_ACEOF
49402cat >>$CONFIG_STATUS <<_ACEOF
49403 sed "$ac_vpsub
49404$extrasub
49405_ACEOF
49406cat >>$CONFIG_STATUS <<\_ACEOF
49407:t
49408/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
49409s,@configure_input@,$configure_input,;t t
49410s,@srcdir@,$ac_srcdir,;t t
49411s,@abs_srcdir@,$ac_abs_srcdir,;t t
49412s,@top_srcdir@,$ac_top_srcdir,;t t
49413s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
49414s,@builddir@,$ac_builddir,;t t
49415s,@abs_builddir@,$ac_abs_builddir,;t t
49416s,@top_builddir@,$ac_top_builddir,;t t
49417s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
49418s,@INSTALL@,$ac_INSTALL,;t t
49419" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
49420 rm -f $tmp/stdin
49421 if test x"$ac_file" != x-; then
49422 mv $tmp/out $ac_file
49423 else
49424 cat $tmp/out
49425 rm -f $tmp/out
49426 fi
49427
ceec2216
RL
49428 # Run the commands associated with the file.
49429 case $ac_file in
49430 lib/wx/config/${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME} ;;
49431 lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ;;
49432 esac
a848cd7e
SC
49433done
49434_ACEOF
49435cat >>$CONFIG_STATUS <<\_ACEOF
49436
49437#
49438# CONFIG_HEADER section.
49439#
49440
49441# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
49442# NAME is the cpp macro being defined and VALUE is the value it is being given.
49443#
49444# ac_d sets the value in "#define NAME VALUE" lines.
ac1cb8d3
VS
49445ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
49446ac_dB='[ ].*$,\1#\2'
a848cd7e
SC
49447ac_dC=' '
49448ac_dD=',;t'
49449# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ac1cb8d3 49450ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
a848cd7e
SC
49451ac_uB='$,\1#\2define\3'
49452ac_uC=' '
49453ac_uD=',;t'
49454
49455for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
49456 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
49457 case $ac_file in
49458 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
49459 cat >$tmp/stdin
49460 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
49461 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 49462 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 49463 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
49464 * ) ac_file_in=$ac_file.in ;;
49465 esac
49466
49467 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
49468echo "$as_me: creating $ac_file" >&6;}
49469
49470 # First look for the input files in the build tree, otherwise in the
49471 # src tree.
49472 ac_file_inputs=`IFS=:
49473 for f in $ac_file_in; do
49474 case $f in
49475 -) echo $tmp/stdin ;;
49476 [\\/$]*)
ac1cb8d3
VS
49477 # Absolute (can't be DOS-style, as IFS=:)
49478 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
49479echo "$as_me: error: cannot find input file: $f" >&2;}
49480 { (exit 1); exit 1; }; }
ac1cb8d3
VS
49481 # Do quote $f, to prevent DOS paths from being IFS'd.
49482 echo "$f";;
a848cd7e 49483 *) # Relative
ac1cb8d3
VS
49484 if test -f "$f"; then
49485 # Build tree
49486 echo "$f"
49487 elif test -f "$srcdir/$f"; then
49488 # Source tree
49489 echo "$srcdir/$f"
49490 else
49491 # /dev/null tree
49492 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
49493echo "$as_me: error: cannot find input file: $f" >&2;}
49494 { (exit 1); exit 1; }; }
ac1cb8d3 49495 fi;;
a848cd7e
SC
49496 esac
49497 done` || { (exit 1); exit 1; }
49498 # Remove the trailing spaces.
ac1cb8d3 49499 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
a848cd7e
SC
49500
49501_ACEOF
49502
49503# Transform confdefs.h into two sed scripts, `conftest.defines' and
49504# `conftest.undefs', that substitutes the proper values into
49505# config.h.in to produce config.h. The first handles `#define'
49506# templates, and the second `#undef' templates.
49507# And first: Protect against being on the right side of a sed subst in
49508# config.status. Protect against being in an unquoted here document
49509# in config.status.
49510rm -f conftest.defines conftest.undefs
49511# Using a here document instead of a string reduces the quoting nightmare.
49512# Putting comments in sed scripts is not portable.
49513#
49514# `end' is used to avoid that the second main sed command (meant for
49515# 0-ary CPP macros) applies to n-ary macro definitions.
49516# See the Autoconf documentation for `clear'.
49517cat >confdef2sed.sed <<\_ACEOF
49518s/[\\&,]/\\&/g
49519s,[\\$`],\\&,g
49520t clear
49521: clear
ac1cb8d3 49522s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
a848cd7e 49523t end
ac1cb8d3 49524s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
a848cd7e
SC
49525: end
49526_ACEOF
49527# If some macros were called several times there might be several times
49528# the same #defines, which is useless. Nevertheless, we may not want to
49529# sort them, since we want the *last* AC-DEFINE to be honored.
49530uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
49531sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
49532rm -f confdef2sed.sed
49533
49534# This sed command replaces #undef with comments. This is necessary, for
49535# example, in the case of _POSIX_SOURCE, which is predefined and required
49536# on some systems where configure will not decide to define it.
49537cat >>conftest.undefs <<\_ACEOF
ac1cb8d3 49538s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
a848cd7e
SC
49539_ACEOF
49540
49541# Break up conftest.defines because some shells have a limit on the size
49542# of here documents, and old seds have small limits too (100 cmds).
49543echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
ac1cb8d3 49544echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
a848cd7e
SC
49545echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
49546echo ' :' >>$CONFIG_STATUS
49547rm -f conftest.tail
49548while grep . conftest.defines >/dev/null
49549do
49550 # Write a limited-size here document to $tmp/defines.sed.
49551 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
49552 # Speed up: don't consider the non `#define' lines.
ac1cb8d3 49553 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
a848cd7e
SC
49554 # Work around the forget-to-reset-the-flag bug.
49555 echo 't clr' >>$CONFIG_STATUS
49556 echo ': clr' >>$CONFIG_STATUS
49557 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
49558 echo 'CEOF
49559 sed -f $tmp/defines.sed $tmp/in >$tmp/out
49560 rm -f $tmp/in
49561 mv $tmp/out $tmp/in
49562' >>$CONFIG_STATUS
49563 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
49564 rm -f conftest.defines
49565 mv conftest.tail conftest.defines
49566done
49567rm -f conftest.defines
49568echo ' fi # grep' >>$CONFIG_STATUS
49569echo >>$CONFIG_STATUS
49570
49571# Break up conftest.undefs because some shells have a limit on the size
49572# of here documents, and old seds have small limits too (100 cmds).
49573echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
49574rm -f conftest.tail
49575while grep . conftest.undefs >/dev/null
49576do
49577 # Write a limited-size here document to $tmp/undefs.sed.
49578 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
49579 # Speed up: don't consider the non `#undef'
ac1cb8d3 49580 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
a848cd7e
SC
49581 # Work around the forget-to-reset-the-flag bug.
49582 echo 't clr' >>$CONFIG_STATUS
49583 echo ': clr' >>$CONFIG_STATUS
49584 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
49585 echo 'CEOF
49586 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
49587 rm -f $tmp/in
49588 mv $tmp/out $tmp/in
49589' >>$CONFIG_STATUS
49590 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
49591 rm -f conftest.undefs
49592 mv conftest.tail conftest.undefs
49593done
49594rm -f conftest.undefs
49595
49596cat >>$CONFIG_STATUS <<\_ACEOF
49597 # Let's still pretend it is `configure' which instantiates (i.e., don't
49598 # use $as_me), people would be surprised to read:
49599 # /* config.h. Generated by config.status. */
49600 if test x"$ac_file" = x-; then
49601 echo "/* Generated by configure. */" >$tmp/config.h
49602 else
49603 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
49604 fi
49605 cat $tmp/in >>$tmp/config.h
49606 rm -f $tmp/in
49607 if test x"$ac_file" != x-; then
49608 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
49609 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
49610echo "$as_me: $ac_file is unchanged" >&6;}
49611 else
49612 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
49613$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
49614 X"$ac_file" : 'X\(//\)[^/]' \| \
49615 X"$ac_file" : 'X\(//\)$' \| \
49616 X"$ac_file" : 'X\(/\)' \| \
49617 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
49618echo X"$ac_file" |
49619 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
49620 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
49621 /^X\(\/\/\)$/{ s//\1/; q; }
49622 /^X\(\/\).*/{ s//\1/; q; }
49623 s/.*/./; q'`
49624 { if $as_mkdir_p; then
49625 mkdir -p "$ac_dir"
49626 else
49627 as_dir="$ac_dir"
49628 as_dirs=
49629 while test ! -d "$as_dir"; do
49630 as_dirs="$as_dir $as_dirs"
49631 as_dir=`(dirname "$as_dir") 2>/dev/null ||
49632$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
49633 X"$as_dir" : 'X\(//\)[^/]' \| \
49634 X"$as_dir" : 'X\(//\)$' \| \
49635 X"$as_dir" : 'X\(/\)' \| \
49636 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
49637echo X"$as_dir" |
49638 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
49639 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
49640 /^X\(\/\/\)$/{ s//\1/; q; }
49641 /^X\(\/\).*/{ s//\1/; q; }
49642 s/.*/./; q'`
49643 done
49644 test ! -n "$as_dirs" || mkdir $as_dirs
49645 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
49646echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
49647 { (exit 1); exit 1; }; }; }
49648
49649 rm -f $ac_file
49650 mv $tmp/config.h $ac_file
49651 fi
49652 else
49653 cat $tmp/config.h
49654 rm -f $tmp/config.h
49655 fi
49656done
49657_ACEOF
49658cat >>$CONFIG_STATUS <<\_ACEOF
49659
49660#
49661# CONFIG_COMMANDS section.
49662#
49663for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
49664 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
49665 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
49666 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
49667$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
49668 X"$ac_dest" : 'X\(//\)[^/]' \| \
49669 X"$ac_dest" : 'X\(//\)$' \| \
49670 X"$ac_dest" : 'X\(/\)' \| \
49671 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
49672echo X"$ac_dest" |
49673 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
49674 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
49675 /^X\(\/\/\)$/{ s//\1/; q; }
49676 /^X\(\/\).*/{ s//\1/; q; }
49677 s/.*/./; q'`
ac1cb8d3
VS
49678 { if $as_mkdir_p; then
49679 mkdir -p "$ac_dir"
49680 else
49681 as_dir="$ac_dir"
49682 as_dirs=
49683 while test ! -d "$as_dir"; do
49684 as_dirs="$as_dir $as_dirs"
49685 as_dir=`(dirname "$as_dir") 2>/dev/null ||
49686$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
49687 X"$as_dir" : 'X\(//\)[^/]' \| \
49688 X"$as_dir" : 'X\(//\)$' \| \
49689 X"$as_dir" : 'X\(/\)' \| \
49690 . : '\(.\)' 2>/dev/null ||
49691echo X"$as_dir" |
49692 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
49693 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
49694 /^X\(\/\/\)$/{ s//\1/; q; }
49695 /^X\(\/\).*/{ s//\1/; q; }
49696 s/.*/./; q'`
49697 done
49698 test ! -n "$as_dirs" || mkdir $as_dirs
49699 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
49700echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
49701 { (exit 1); exit 1; }; }; }
49702
a848cd7e
SC
49703 ac_builddir=.
49704
49705if test "$ac_dir" != .; then
49706 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
49707 # A "../" for each directory in $ac_dir_suffix.
49708 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
49709else
49710 ac_dir_suffix= ac_top_builddir=
49711fi
49712
49713case $srcdir in
49714 .) # No --srcdir option. We are building in place.
49715 ac_srcdir=.
49716 if test -z "$ac_top_builddir"; then
49717 ac_top_srcdir=.
49718 else
49719 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
49720 fi ;;
49721 [\\/]* | ?:[\\/]* ) # Absolute path.
49722 ac_srcdir=$srcdir$ac_dir_suffix;
49723 ac_top_srcdir=$srcdir ;;
49724 *) # Relative path.
49725 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
49726 ac_top_srcdir=$ac_top_builddir$srcdir ;;
49727esac
ac1cb8d3
VS
49728
49729# Do not use `cd foo && pwd` to compute absolute paths, because
49730# the directories may not exist.
49731case `pwd` in
49732.) ac_abs_builddir="$ac_dir";;
49733*)
49734 case "$ac_dir" in
49735 .) ac_abs_builddir=`pwd`;;
49736 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
49737 *) ac_abs_builddir=`pwd`/"$ac_dir";;
49738 esac;;
49739esac
49740case $ac_abs_builddir in
49741.) ac_abs_top_builddir=${ac_top_builddir}.;;
49742*)
49743 case ${ac_top_builddir}. in
49744 .) ac_abs_top_builddir=$ac_abs_builddir;;
49745 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
49746 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
49747 esac;;
49748esac
49749case $ac_abs_builddir in
49750.) ac_abs_srcdir=$ac_srcdir;;
49751*)
49752 case $ac_srcdir in
49753 .) ac_abs_srcdir=$ac_abs_builddir;;
49754 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
49755 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
49756 esac;;
49757esac
49758case $ac_abs_builddir in
49759.) ac_abs_top_srcdir=$ac_top_srcdir;;
49760*)
49761 case $ac_top_srcdir in
49762 .) ac_abs_top_srcdir=$ac_abs_builddir;;
49763 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
49764 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
49765 esac;;
49766esac
a848cd7e
SC
49767
49768
49769 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
49770echo "$as_me: executing $ac_dest commands" >&6;}
49771 case $ac_dest in
5c60e845
MW
49772 rcdefs.h )
49773 mkdir -p $outdir &&
49774 $CPP $infile | sed 's/^# *[1-9].*//;s/^ *//;/./,/^$/!d' > $outdir/rcdefs.h
49775 ;;
ceec2216
RL
49776 wx-config ) rm -f wx-config
49777 ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
49778 ;;
a848cd7e
SC
49779 esac
49780done
49781_ACEOF
49782
49783cat >>$CONFIG_STATUS <<\_ACEOF
49784
49785{ (exit 0); exit 0; }
49786_ACEOF
49787chmod +x $CONFIG_STATUS
49788ac_clean_files=$ac_clean_files_save
49789
49790
49791# configure is writing to config.log, and then calls config.status.
49792# config.status does its own redirection, appending to config.log.
49793# Unfortunately, on DOS this fails, as config.log is still kept open
49794# by configure, so config.status won't be able to write to it; its
49795# output is simply discarded. So we exec the FD to /dev/null,
49796# effectively closing config.log, so it can be properly (re)opened and
49797# appended to by config.status. When coming back to configure, we
49798# need to make the FD available again.
49799if test "$no_create" != yes; then
49800 ac_cs_success=:
49801 ac_config_status_args=
49802 test "$silent" = yes &&
49803 ac_config_status_args="$ac_config_status_args --quiet"
49804 exec 5>/dev/null
49805 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
49806 exec 5>>config.log
49807 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
49808 # would make configure fail if this is the last instruction.
49809 $ac_cs_success || { (exit 1); exit 1; }
49810fi
49811
49812#
49813# CONFIG_SUBDIRS section.
49814#
49815if test "$no_recursion" != yes; then
49816
49817 # Remove --cache-file and --srcdir arguments so they do not pile up.
49818 ac_sub_configure_args=
49819 ac_prev=
49820 for ac_arg in $ac_configure_args; do
49821 if test -n "$ac_prev"; then
49822 ac_prev=
49823 continue
49824 fi
49825 case $ac_arg in
49826 -cache-file | --cache-file | --cache-fil | --cache-fi \
49827 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
49828 ac_prev=cache_file ;;
49829 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
49830 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
49831 | --c=*)
49832 ;;
49833 --config-cache | -C)
49834 ;;
49835 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
49836 ac_prev=srcdir ;;
49837 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
49838 ;;
49839 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
49840 ac_prev=prefix ;;
49841 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
49842 ;;
49843 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
49844 esac
49845 done
49846
49847 # Always prepend --prefix to ensure using the same prefix
49848 # in subdir configurations.
49849 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
49850
49851 ac_popdir=`pwd`
49852 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
49853
49854 # Do not complain, so a configure script can configure whichever
49855 # parts of a large source tree are present.
49856 test -d $srcdir/$ac_dir || continue
49857
49858 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
49859echo "$as_me: configuring in $ac_dir" >&6;}
49860 { if $as_mkdir_p; then
49861 mkdir -p "$ac_dir"
49862 else
49863 as_dir="$ac_dir"
49864 as_dirs=
49865 while test ! -d "$as_dir"; do
49866 as_dirs="$as_dir $as_dirs"
49867 as_dir=`(dirname "$as_dir") 2>/dev/null ||
49868$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
49869 X"$as_dir" : 'X\(//\)[^/]' \| \
49870 X"$as_dir" : 'X\(//\)$' \| \
49871 X"$as_dir" : 'X\(/\)' \| \
49872 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
49873echo X"$as_dir" |
49874 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
49875 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
49876 /^X\(\/\/\)$/{ s//\1/; q; }
49877 /^X\(\/\).*/{ s//\1/; q; }
49878 s/.*/./; q'`
49879 done
49880 test ! -n "$as_dirs" || mkdir $as_dirs
49881 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
49882echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
49883 { (exit 1); exit 1; }; }; }
49884
49885 ac_builddir=.
49886
49887if test "$ac_dir" != .; then
49888 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
49889 # A "../" for each directory in $ac_dir_suffix.
49890 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
49891else
49892 ac_dir_suffix= ac_top_builddir=
49893fi
49894
49895case $srcdir in
49896 .) # No --srcdir option. We are building in place.
49897 ac_srcdir=.
49898 if test -z "$ac_top_builddir"; then
49899 ac_top_srcdir=.
49900 else
49901 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
49902 fi ;;
49903 [\\/]* | ?:[\\/]* ) # Absolute path.
49904 ac_srcdir=$srcdir$ac_dir_suffix;
49905 ac_top_srcdir=$srcdir ;;
49906 *) # Relative path.
49907 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
49908 ac_top_srcdir=$ac_top_builddir$srcdir ;;
49909esac
ac1cb8d3
VS
49910
49911# Do not use `cd foo && pwd` to compute absolute paths, because
49912# the directories may not exist.
49913case `pwd` in
49914.) ac_abs_builddir="$ac_dir";;
49915*)
49916 case "$ac_dir" in
49917 .) ac_abs_builddir=`pwd`;;
49918 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
49919 *) ac_abs_builddir=`pwd`/"$ac_dir";;
49920 esac;;
49921esac
49922case $ac_abs_builddir in
49923.) ac_abs_top_builddir=${ac_top_builddir}.;;
49924*)
49925 case ${ac_top_builddir}. in
49926 .) ac_abs_top_builddir=$ac_abs_builddir;;
49927 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
49928 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
49929 esac;;
49930esac
49931case $ac_abs_builddir in
49932.) ac_abs_srcdir=$ac_srcdir;;
49933*)
49934 case $ac_srcdir in
49935 .) ac_abs_srcdir=$ac_abs_builddir;;
49936 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
49937 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
49938 esac;;
49939esac
49940case $ac_abs_builddir in
49941.) ac_abs_top_srcdir=$ac_top_srcdir;;
49942*)
49943 case $ac_top_srcdir in
49944 .) ac_abs_top_srcdir=$ac_abs_builddir;;
49945 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
49946 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
49947 esac;;
49948esac
a848cd7e
SC
49949
49950
49951 cd $ac_dir
49952
49953 # Check for guested configure; otherwise get Cygnus style configure.
49954 if test -f $ac_srcdir/configure.gnu; then
49955 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
49956 elif test -f $ac_srcdir/configure; then
49957 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
49958 elif test -f $ac_srcdir/configure.in; then
49959 ac_sub_configure=$ac_configure
49960 else
49961 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
49962echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
49963 ac_sub_configure=
49964 fi
49965
49966 # The recursion is here.
49967 if test -n "$ac_sub_configure"; then
49968 # Make the cache file name correct relative to the subdirectory.
49969 case $cache_file in
49970 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
49971 *) # Relative path.
ac1cb8d3 49972 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
a848cd7e
SC
49973 esac
49974
49975 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
49976echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
49977 # The eval makes quoting arguments work.
49978 eval $ac_sub_configure $ac_sub_configure_args \
ac1cb8d3
VS
49979 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
49980 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
a848cd7e
SC
49981echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
49982 { (exit 1); exit 1; }; }
49983 fi
49984
5d7b7554 49985 cd "$ac_popdir"
a848cd7e
SC
49986 done
49987fi
49988
49989
49990echo
77ffb593 49991echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
a848cd7e 49992echo ""
4d4ff94c 49993echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_USER:-base only}"
77ffb593 49994echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
a848cd7e 49995
77ffb593
JS
49996echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}"
49997echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}"
49998echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
a848cd7e 49999
77ffb593 50000echo " What level of wxWidgets compatibility should be enabled?"
dee1a63f
MB
50001echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-no}"
50002echo " wxWidgets 2.6 ${WXWIN_COMPATIBILITY_2_6:-yes}"
a848cd7e 50003
77ffb593 50004echo " Which libraries should wxWidgets use?"
a848cd7e
SC
50005echo " jpeg ${wxUSE_LIBJPEG-none}"
50006echo " png ${wxUSE_LIBPNG-none}"
50007echo " regex ${wxUSE_REGEX}"
50008echo " tiff ${wxUSE_LIBTIFF-none}"
50009if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
50010echo " xpm ${wxUSE_LIBXPM-none}"
50011fi
50012echo " zlib ${wxUSE_ZLIB}"
50013echo " odbc ${wxUSE_ODBC}"
50014echo " expat ${wxUSE_EXPAT}"
50015echo " libmspack ${wxUSE_LIBMSPACK}"
50016echo " sdl ${wxUSE_LIBSDL}"
6d1ce868 50017echo " gnomeprint ${wxUSE_LIBGNOMEPRINT-none}"
2b850ae1 50018echo " gnomevfs ${wxUSE_LIBGNOMEVFS-none}"
3565d135 50019echo " hildon ${wxUSE_LIBHILDON-none}"
a848cd7e
SC
50020
50021echo ""
50022